]>
Commit | Line | Data |
---|---|---|
50e1e10f | 1 | #! /bin/sh |
50e1e10f | 2 | # Guess values for system-dependent variables and create Makefiles. |
d6a4bcb5 | 3 | # Generated by GNU Autoconf 2.69. |
61ef2474 | 4 | # |
50e1e10f | 5 | # |
d6a4bcb5 | 6 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. |
61ef2474 | 7 | # |
57aa50d4 | 8 | # |
50e1e10f TT |
9 | # This configure script is free software; the Free Software Foundation |
10 | # gives unlimited permission to copy, distribute and modify it. | |
57aa50d4 TT |
11 | ## -------------------- ## |
12 | ## M4sh Initialization. ## | |
13 | ## -------------------- ## | |
b0cacab0 | 14 | |
29a5deed TT |
15 | # Be more Bourne compatible |
16 | DUALCASE=1; export DUALCASE # for MKS sh | |
57aa50d4 | 17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
b0cacab0 TT |
18 | emulate sh |
19 | NULLCMD=: | |
39fd3d4f | 20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
b0cacab0 TT |
21 | # is contrary to our usage. Disable this feature. |
22 | alias -g '${1+"$@"}'='"$@"' | |
e1052144 TT |
23 | setopt NO_GLOB_SUBST |
24 | else | |
57aa50d4 TT |
25 | case `(set -o) 2>/dev/null` in #( |
26 | *posix*) : | |
27 | set -o posix ;; #( | |
28 | *) : | |
29 | ;; | |
29a5deed | 30 | esac |
b0cacab0 | 31 | fi |
29a5deed TT |
32 | |
33 | ||
39fd3d4f SJR |
34 | as_nl=' |
35 | ' | |
36 | export as_nl | |
37 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
38 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
39 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
40 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
57aa50d4 TT |
41 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
42 | # but without wasting forks for bash or zsh. | |
43 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
44 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
45 | as_echo='print -r --' | |
46 | as_echo_n='print -rn --' | |
47 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
39fd3d4f SJR |
48 | as_echo='printf %s\n' |
49 | as_echo_n='printf %s' | |
50 | else | |
51 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
52 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
53 | as_echo_n='/usr/ucb/echo -n' | |
e1052144 | 54 | else |
39fd3d4f SJR |
55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
56 | as_echo_n_body='eval | |
57 | arg=$1; | |
57aa50d4 | 58 | case $arg in #( |
39fd3d4f SJR |
59 | *"$as_nl"*) |
60 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
62 | esac; | |
63 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
64 | ' | |
65 | export as_echo_n_body | |
66 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
e1052144 | 67 | fi |
39fd3d4f SJR |
68 | export as_echo_body |
69 | as_echo='sh -c $as_echo_body as_echo' | |
70 | fi | |
71 | ||
72 | # The user is always right. | |
73 | if test "${PATH_SEPARATOR+set}" != set; then | |
74 | PATH_SEPARATOR=: | |
75 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
76 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
77 | PATH_SEPARATOR=';' | |
78 | } | |
e1052144 TT |
79 | fi |
80 | ||
b0cacab0 | 81 | |
e1052144 TT |
82 | # IFS |
83 | # We need space, tab and new line, in precisely that order. Quoting is | |
84 | # there to prevent editors from complaining about space-tab. | |
85 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
86 | # splitting by setting IFS to empty value.) | |
e1052144 TT |
87 | IFS=" "" $as_nl" |
88 | ||
89 | # Find who we are. Look in the path if we contain no directory separator. | |
d6a4bcb5 | 90 | as_myself= |
57aa50d4 | 91 | case $0 in #(( |
e1052144 TT |
92 | *[\\/]* ) as_myself=$0 ;; |
93 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
94 | for as_dir in $PATH | |
95 | do | |
96 | IFS=$as_save_IFS | |
97 | test -z "$as_dir" && as_dir=. | |
57aa50d4 TT |
98 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
99 | done | |
e1052144 TT |
100 | IFS=$as_save_IFS |
101 | ||
102 | ;; | |
103 | esac | |
104 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
105 | # in which case we are not to be found in the path. | |
106 | if test "x$as_myself" = x; then | |
107 | as_myself=$0 | |
108 | fi | |
109 | if test ! -f "$as_myself"; then | |
39fd3d4f | 110 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
57aa50d4 | 111 | exit 1 |
e1052144 TT |
112 | fi |
113 | ||
57aa50d4 TT |
114 | # Unset variables that we do not need and which cause bugs (e.g. in |
115 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
116 | # suppresses any "Segmentation fault" message there. '((' could | |
117 | # trigger a bug in pdksh 5.2.14. | |
118 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
119 | do eval test x\${$as_var+set} = xset \ | |
120 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
e1052144 | 121 | done |
b0cacab0 TT |
122 | PS1='$ ' |
123 | PS2='> ' | |
124 | PS4='+ ' | |
125 | ||
126 | # NLS nuisances. | |
39fd3d4f SJR |
127 | LC_ALL=C |
128 | export LC_ALL | |
129 | LANGUAGE=C | |
130 | export LANGUAGE | |
b0cacab0 | 131 | |
57aa50d4 TT |
132 | # CDPATH. |
133 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
134 | ||
d6a4bcb5 TB |
135 | # Use a proper internal environment variable to ensure we don't fall |
136 | # into an infinite loop, continuously re-executing ourselves. | |
137 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then | |
138 | _as_can_reexec=no; export _as_can_reexec; | |
139 | # We cannot yet assume a decent shell, so we have to provide a | |
140 | # neutralization value for shells without unset; and this also | |
141 | # works around shells that cannot unset nonexistent variables. | |
142 | # Preserve -v and -x to the replacement shell. | |
143 | BASH_ENV=/dev/null | |
144 | ENV=/dev/null | |
145 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
146 | case $- in # (((( | |
147 | *v*x* | *x*v* ) as_opts=-vx ;; | |
148 | *v* ) as_opts=-v ;; | |
149 | *x* ) as_opts=-x ;; | |
150 | * ) as_opts= ;; | |
151 | esac | |
152 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
153 | # Admittedly, this is quite paranoid, since all the known shells bail | |
154 | # out after a failed `exec'. | |
155 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
156 | as_fn_exit 255 | |
157 | fi | |
158 | # We don't want this to propagate to other subprocesses. | |
159 | { _as_can_reexec=; unset _as_can_reexec;} | |
57aa50d4 TT |
160 | if test "x$CONFIG_SHELL" = x; then |
161 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
162 | emulate sh | |
163 | NULLCMD=: | |
164 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
165 | # is contrary to our usage. Disable this feature. | |
166 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
167 | setopt NO_GLOB_SUBST | |
168 | else | |
169 | case \`(set -o) 2>/dev/null\` in #( | |
170 | *posix*) : | |
171 | set -o posix ;; #( | |
172 | *) : | |
173 | ;; | |
174 | esac | |
175 | fi | |
176 | " | |
177 | as_required="as_fn_return () { (exit \$1); } | |
178 | as_fn_success () { as_fn_return 0; } | |
179 | as_fn_failure () { as_fn_return 1; } | |
180 | as_fn_ret_success () { return 0; } | |
181 | as_fn_ret_failure () { return 1; } | |
182 | ||
183 | exitcode=0 | |
184 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
185 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
186 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
187 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
188 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
189 | ||
190 | else | |
191 | exitcode=1; echo positional parameters were not saved. | |
192 | fi | |
d6a4bcb5 TB |
193 | test x\$exitcode = x0 || exit 1 |
194 | test -x / || exit 1" | |
57aa50d4 TT |
195 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
196 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
197 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
198 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
199 | test \$(( 1 + 1 )) = 2 || exit 1" | |
200 | if (eval "$as_required") 2>/dev/null; then : | |
201 | as_have_required=yes | |
202 | else | |
203 | as_have_required=no | |
204 | fi | |
205 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
206 | ||
207 | else | |
208 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
209 | as_found=false | |
210 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
211 | do | |
212 | IFS=$as_save_IFS | |
213 | test -z "$as_dir" && as_dir=. | |
214 | as_found=: | |
215 | case $as_dir in #( | |
216 | /*) | |
217 | for as_base in sh bash ksh sh5; do | |
218 | # Try only shells that exist, to save several forks. | |
219 | as_shell=$as_dir/$as_base | |
220 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
221 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
222 | CONFIG_SHELL=$as_shell as_have_required=yes | |
223 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
224 | break 2 | |
225 | fi | |
226 | fi | |
227 | done;; | |
228 | esac | |
229 | as_found=false | |
230 | done | |
231 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
232 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
233 | CONFIG_SHELL=$SHELL as_have_required=yes | |
234 | fi; } | |
235 | IFS=$as_save_IFS | |
236 | ||
237 | ||
238 | if test "x$CONFIG_SHELL" != x; then : | |
d6a4bcb5 TB |
239 | export CONFIG_SHELL |
240 | # We cannot yet assume a decent shell, so we have to provide a | |
241 | # neutralization value for shells without unset; and this also | |
242 | # works around shells that cannot unset nonexistent variables. | |
243 | # Preserve -v and -x to the replacement shell. | |
244 | BASH_ENV=/dev/null | |
245 | ENV=/dev/null | |
246 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
247 | case $- in # (((( | |
248 | *v*x* | *x*v* ) as_opts=-vx ;; | |
249 | *v* ) as_opts=-v ;; | |
250 | *x* ) as_opts=-x ;; | |
251 | * ) as_opts= ;; | |
252 | esac | |
253 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
254 | # Admittedly, this is quite paranoid, since all the known shells bail | |
255 | # out after a failed `exec'. | |
256 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
257 | exit 255 | |
57aa50d4 TT |
258 | fi |
259 | ||
260 | if test x$as_have_required = xno; then : | |
261 | $as_echo "$0: This script requires a shell more modern than all" | |
262 | $as_echo "$0: the shells that I found on your system." | |
263 | if test x${ZSH_VERSION+set} = xset ; then | |
264 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
265 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
266 | else | |
267 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, | |
268 | $0: including any error possibly output before this | |
269 | $0: message. Then install a modern shell, or manually run | |
270 | $0: the script under such a shell if you do have one." | |
271 | fi | |
272 | exit 1 | |
273 | fi | |
274 | fi | |
275 | fi | |
276 | SHELL=${CONFIG_SHELL-/bin/sh} | |
277 | export SHELL | |
278 | # Unset more variables known to interfere with behavior of common tools. | |
279 | CLICOLOR_FORCE= GREP_OPTIONS= | |
280 | unset CLICOLOR_FORCE GREP_OPTIONS | |
281 | ||
282 | ## --------------------- ## | |
283 | ## M4sh Shell Functions. ## | |
284 | ## --------------------- ## | |
285 | # as_fn_unset VAR | |
286 | # --------------- | |
287 | # Portably unset VAR. | |
288 | as_fn_unset () | |
289 | { | |
290 | { eval $1=; unset $1;} | |
291 | } | |
292 | as_unset=as_fn_unset | |
293 | ||
294 | # as_fn_set_status STATUS | |
295 | # ----------------------- | |
296 | # Set $? to STATUS, without forking. | |
297 | as_fn_set_status () | |
298 | { | |
299 | return $1 | |
300 | } # as_fn_set_status | |
301 | ||
302 | # as_fn_exit STATUS | |
303 | # ----------------- | |
304 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
305 | as_fn_exit () | |
306 | { | |
307 | set +e | |
308 | as_fn_set_status $1 | |
309 | exit $1 | |
310 | } # as_fn_exit | |
311 | ||
312 | # as_fn_mkdir_p | |
313 | # ------------- | |
314 | # Create "$as_dir" as a directory, including parents if necessary. | |
315 | as_fn_mkdir_p () | |
316 | { | |
317 | ||
318 | case $as_dir in #( | |
319 | -*) as_dir=./$as_dir;; | |
320 | esac | |
321 | test -d "$as_dir" || eval $as_mkdir_p || { | |
322 | as_dirs= | |
323 | while :; do | |
324 | case $as_dir in #( | |
325 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
326 | *) as_qdir=$as_dir;; | |
327 | esac | |
328 | as_dirs="'$as_qdir' $as_dirs" | |
329 | as_dir=`$as_dirname -- "$as_dir" || | |
330 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
331 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
332 | X"$as_dir" : 'X\(//\)$' \| \ | |
333 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
334 | $as_echo X"$as_dir" | | |
335 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
336 | s//\1/ | |
337 | q | |
338 | } | |
339 | /^X\(\/\/\)[^/].*/{ | |
340 | s//\1/ | |
341 | q | |
342 | } | |
343 | /^X\(\/\/\)$/{ | |
344 | s//\1/ | |
345 | q | |
346 | } | |
347 | /^X\(\/\).*/{ | |
348 | s//\1/ | |
349 | q | |
350 | } | |
351 | s/.*/./; q'` | |
352 | test -d "$as_dir" && break | |
353 | done | |
354 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
d6a4bcb5 | 355 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
57aa50d4 TT |
356 | |
357 | ||
358 | } # as_fn_mkdir_p | |
d6a4bcb5 TB |
359 | |
360 | # as_fn_executable_p FILE | |
361 | # ----------------------- | |
362 | # Test if FILE is an executable regular file. | |
363 | as_fn_executable_p () | |
364 | { | |
365 | test -f "$1" && test -x "$1" | |
366 | } # as_fn_executable_p | |
57aa50d4 TT |
367 | # as_fn_append VAR VALUE |
368 | # ---------------------- | |
369 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
370 | # advantage of any shell optimizations that allow amortized linear growth over | |
371 | # repeated appends, instead of the typical quadratic growth present in naive | |
372 | # implementations. | |
373 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
374 | eval 'as_fn_append () | |
375 | { | |
376 | eval $1+=\$2 | |
377 | }' | |
378 | else | |
379 | as_fn_append () | |
380 | { | |
381 | eval $1=\$$1\$2 | |
382 | } | |
383 | fi # as_fn_append | |
384 | ||
385 | # as_fn_arith ARG... | |
386 | # ------------------ | |
387 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
388 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
389 | # must be portable across $(()) and expr. | |
390 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
391 | eval 'as_fn_arith () | |
392 | { | |
393 | as_val=$(( $* )) | |
394 | }' | |
395 | else | |
396 | as_fn_arith () | |
397 | { | |
398 | as_val=`expr "$@" || test $? -eq 1` | |
399 | } | |
400 | fi # as_fn_arith | |
401 | ||
402 | ||
d6a4bcb5 TB |
403 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
404 | # ---------------------------------------- | |
57aa50d4 TT |
405 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
406 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
d6a4bcb5 | 407 | # script with STATUS, using 1 if that was 0. |
57aa50d4 TT |
408 | as_fn_error () |
409 | { | |
d6a4bcb5 TB |
410 | as_status=$1; test $as_status -eq 0 && as_status=1 |
411 | if test "$4"; then | |
412 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
413 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
57aa50d4 | 414 | fi |
d6a4bcb5 | 415 | $as_echo "$as_me: error: $2" >&2 |
57aa50d4 TT |
416 | as_fn_exit $as_status |
417 | } # as_fn_error | |
418 | ||
e1052144 TT |
419 | if expr a : '\(a\)' >/dev/null 2>&1 && |
420 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
b0cacab0 TT |
421 | as_expr=expr |
422 | else | |
423 | as_expr=false | |
424 | fi | |
425 | ||
e1052144 | 426 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
b0cacab0 TT |
427 | as_basename=basename |
428 | else | |
429 | as_basename=false | |
430 | fi | |
431 | ||
57aa50d4 TT |
432 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
433 | as_dirname=dirname | |
434 | else | |
435 | as_dirname=false | |
436 | fi | |
b0cacab0 | 437 | |
e1052144 | 438 | as_me=`$as_basename -- "$0" || |
b0cacab0 TT |
439 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
440 | X"$0" : 'X\(//\)$' \| \ | |
e1052144 | 441 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
39fd3d4f | 442 | $as_echo X/"$0" | |
e1052144 TT |
443 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
444 | s//\1/ | |
445 | q | |
446 | } | |
447 | /^X\/\(\/\/\)$/{ | |
448 | s//\1/ | |
449 | q | |
450 | } | |
451 | /^X\/\(\/\).*/{ | |
452 | s//\1/ | |
453 | q | |
454 | } | |
455 | s/.*/./; q'` | |
b0cacab0 | 456 | |
57aa50d4 TT |
457 | # Avoid depending upon Character Ranges. |
458 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
459 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
460 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
461 | as_cr_digits='0123456789' | |
462 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
b0cacab0 | 463 | |
b0cacab0 | 464 | |
57aa50d4 TT |
465 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
466 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
467 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
468 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
469 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
470 | sed -n ' | |
471 | p | |
472 | /[$]LINENO/= | |
473 | ' <$as_myself | | |
474 | sed ' | |
475 | s/[$]LINENO.*/&-/ | |
476 | t lineno | |
477 | b | |
478 | :lineno | |
479 | N | |
480 | :loop | |
481 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
482 | t loop | |
483 | s/-\n.*// | |
484 | ' >$as_me.lineno && | |
485 | chmod +x "$as_me.lineno" || | |
486 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
e1052144 | 487 | |
d6a4bcb5 TB |
488 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
489 | # already done that, so ensure we don't try to do so again and fall | |
490 | # in an infinite loop. This has already happened in practice. | |
491 | _as_can_reexec=no; export _as_can_reexec | |
57aa50d4 TT |
492 | # Don't try to exec as it changes $[0], causing all sort of problems |
493 | # (the dirname of $[0] is not the place where we might find the | |
494 | # original and so on. Autoconf is especially sensitive to this). | |
495 | . "./$as_me.lineno" | |
496 | # Exit status is that of the last command. | |
497 | exit | |
e1052144 TT |
498 | } |
499 | ||
57aa50d4 TT |
500 | ECHO_C= ECHO_N= ECHO_T= |
501 | case `echo -n x` in #((((( | |
502 | -n*) | |
503 | case `echo 'xy\c'` in | |
504 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
505 | xy) ECHO_C='\c';; | |
506 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
507 | ECHO_T=' ';; | |
508 | esac;; | |
509 | *) | |
510 | ECHO_N='-n';; | |
511 | esac | |
b0cacab0 | 512 | |
57aa50d4 TT |
513 | rm -f conf$$ conf$$.exe conf$$.file |
514 | if test -d conf$$.dir; then | |
515 | rm -f conf$$.dir/conf$$.file | |
516 | else | |
517 | rm -f conf$$.dir | |
518 | mkdir conf$$.dir 2>/dev/null | |
e1052144 | 519 | fi |
57aa50d4 TT |
520 | if (echo >conf$$.file) 2>/dev/null; then |
521 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
522 | as_ln_s='ln -s' | |
523 | # ... but there are two gotchas: | |
524 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
525 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
d6a4bcb5 | 526 | # In both cases, we have to default to `cp -pR'. |
57aa50d4 | 527 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
d6a4bcb5 | 528 | as_ln_s='cp -pR' |
57aa50d4 TT |
529 | elif ln conf$$.file conf$$ 2>/dev/null; then |
530 | as_ln_s=ln | |
531 | else | |
d6a4bcb5 | 532 | as_ln_s='cp -pR' |
57aa50d4 | 533 | fi |
e1052144 | 534 | else |
d6a4bcb5 | 535 | as_ln_s='cp -pR' |
e1052144 | 536 | fi |
57aa50d4 TT |
537 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
538 | rmdir conf$$.dir 2>/dev/null | |
b0cacab0 | 539 | |
57aa50d4 TT |
540 | if mkdir -p . 2>/dev/null; then |
541 | as_mkdir_p='mkdir -p "$as_dir"' | |
542 | else | |
543 | test -d ./-p && rmdir ./-p | |
544 | as_mkdir_p=false | |
e1052144 TT |
545 | fi |
546 | ||
d6a4bcb5 TB |
547 | as_test_x='test -x' |
548 | as_executable_p=as_fn_executable_p | |
e1052144 | 549 | |
57aa50d4 TT |
550 | # Sed expression to map a string onto a valid CPP name. |
551 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
e1052144 | 552 | |
57aa50d4 TT |
553 | # Sed expression to map a string onto a valid variable name. |
554 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
e1052144 | 555 | |
29a5deed | 556 | |
61ef2474 TT |
557 | test -n "$DJDIR" || exec 7<&0 </dev/null |
558 | exec 6>&1 | |
b0cacab0 TT |
559 | |
560 | # Name of the host. | |
d6a4bcb5 | 561 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
b0cacab0 TT |
562 | # so uname gets run too. |
563 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
50e1e10f | 564 | |
b0cacab0 TT |
565 | # |
566 | # Initializations. | |
567 | # | |
50e1e10f | 568 | ac_default_prefix=/usr/local |
e1052144 | 569 | ac_clean_files= |
b0cacab0 | 570 | ac_config_libobj_dir=. |
e1052144 | 571 | LIBOBJS= |
b0cacab0 TT |
572 | cross_compiling=no |
573 | subdirs= | |
574 | MFLAGS= | |
575 | MAKEFLAGS= | |
b0cacab0 | 576 | |
b0cacab0 TT |
577 | # Identity of this package. |
578 | PACKAGE_NAME= | |
579 | PACKAGE_TARNAME= | |
580 | PACKAGE_VERSION= | |
581 | PACKAGE_STRING= | |
582 | PACKAGE_BUGREPORT= | |
57aa50d4 | 583 | PACKAGE_URL= |
b0cacab0 TT |
584 | |
585 | ac_unique_file="version.h" | |
586 | # Factoring default headers for most tests. | |
587 | ac_includes_default="\ | |
588 | #include <stdio.h> | |
29a5deed | 589 | #ifdef HAVE_SYS_TYPES_H |
b0cacab0 TT |
590 | # include <sys/types.h> |
591 | #endif | |
29a5deed | 592 | #ifdef HAVE_SYS_STAT_H |
b0cacab0 TT |
593 | # include <sys/stat.h> |
594 | #endif | |
29a5deed | 595 | #ifdef STDC_HEADERS |
b0cacab0 TT |
596 | # include <stdlib.h> |
597 | # include <stddef.h> | |
598 | #else | |
29a5deed | 599 | # ifdef HAVE_STDLIB_H |
b0cacab0 TT |
600 | # include <stdlib.h> |
601 | # endif | |
602 | #endif | |
29a5deed TT |
603 | #ifdef HAVE_STRING_H |
604 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
b0cacab0 TT |
605 | # include <memory.h> |
606 | # endif | |
607 | # include <string.h> | |
608 | #endif | |
29a5deed | 609 | #ifdef HAVE_STRINGS_H |
b0cacab0 TT |
610 | # include <strings.h> |
611 | #endif | |
29a5deed | 612 | #ifdef HAVE_INTTYPES_H |
b0cacab0 | 613 | # include <inttypes.h> |
e1052144 | 614 | #endif |
29a5deed | 615 | #ifdef HAVE_STDINT_H |
e1052144 | 616 | # include <stdint.h> |
b0cacab0 | 617 | #endif |
29a5deed | 618 | #ifdef HAVE_UNISTD_H |
b0cacab0 TT |
619 | # include <unistd.h> |
620 | #endif" | |
621 | ||
93613951 | 622 | gt_needs= |
61ef2474 | 623 | ac_header_list= |
93613951 TT |
624 | gl_use_threads_default= |
625 | ac_func_list= | |
39fd3d4f | 626 | ac_subst_vars='LTLIBOBJS |
e1052144 | 627 | LIBOBJS |
fd1677e8 TT |
628 | LDFLAGS_SHLIB |
629 | CFLAGS_STLIB | |
630 | CFLAGS_SHLIB | |
39fd3d4f SJR |
631 | BUILD_LDFLAGS |
632 | BUILD_CFLAGS | |
5b5bd2c2 | 633 | MKINSTALLDIRS |
d1154eb4 | 634 | INCLUDES |
39fd3d4f | 635 | DO_TEST_SUITE |
fd1677e8 | 636 | LDFLAGS_STATIC |
39fd3d4f SJR |
637 | root_sysconfdir |
638 | root_libdir | |
639 | root_sbindir | |
640 | root_bindir | |
641 | root_prefix | |
642 | UNIX_CMT | |
643 | CYGWIN_CMT | |
644 | LINUX_CMT | |
645 | UNI_DIFF_OPTS | |
646 | SEM_INIT_LIB | |
81cbf1ef DW |
647 | FUSE_CMT |
648 | FUSE_LIB | |
c94da047 | 649 | CLOCK_GETTIME_LIB |
b291c11f | 650 | MAGIC_LIB |
39fd3d4f | 651 | SOCKET_LIB |
2dd680f3 | 652 | SIZEOF_TIME_T |
cc68e8a6 | 653 | SIZEOF_OFF_T |
39fd3d4f SJR |
654 | SIZEOF_LONG_LONG |
655 | SIZEOF_LONG | |
656 | SIZEOF_INT | |
657 | SIZEOF_SHORT | |
658 | BUILD_CC | |
659 | MAKEINFO | |
660 | STRIP | |
661 | AR | |
662 | LDCONFIG | |
663 | PERL | |
39fd3d4f SJR |
664 | AWK |
665 | CHMOD | |
666 | RM | |
667 | CP | |
668 | MV | |
669 | LN_S | |
670 | LN | |
bcb915b0 TT |
671 | ifNotGNUmake |
672 | ifGNUmake | |
39fd3d4f SJR |
673 | BINARY_TYPE |
674 | POSUB | |
675 | LTLIBINTL | |
676 | LIBINTL | |
677 | INTLLIBS | |
678 | INTL_LIBTOOL_SUFFIX_PREFIX | |
679 | INTLOBJS | |
680 | GENCAT | |
681 | INSTOBJEXT | |
682 | DATADIRNAME | |
683 | CATOBJEXT | |
684 | USE_INCLUDED_LIBINTL | |
685 | BUILD_INCLUDED_LIBINTL | |
93613951 TT |
686 | LTLIBC |
687 | WINDRES | |
688 | WOE32 | |
689 | WOE32DLL | |
39fd3d4f | 690 | HAVE_WPRINTF |
93613951 | 691 | HAVE_NEWLOCALE |
39fd3d4f SJR |
692 | HAVE_SNPRINTF |
693 | HAVE_ASPRINTF | |
694 | HAVE_POSIX_PRINTF | |
93613951 TT |
695 | INTL_DEFAULT_VERBOSITY |
696 | INTL_MACOSX_LIBS | |
39fd3d4f | 697 | GLIBC21 |
93613951 TT |
698 | INTLBISON |
699 | LTLIBICONV | |
700 | LIBICONV | |
701 | LTLIBMULTITHREAD | |
702 | LIBMULTITHREAD | |
703 | LTLIBTHREAD | |
704 | LIBTHREAD | |
705 | LIBPTH_PREFIX | |
706 | LTLIBPTH | |
707 | LIBPTH | |
708 | PRI_MACROS_BROKEN | |
39fd3d4f | 709 | ALLOCA |
93613951 TT |
710 | HAVE_VISIBILITY |
711 | CFLAG_VISIBILITY | |
39fd3d4f | 712 | RANLIB |
93613951 TT |
713 | GLIBC2 |
714 | XGETTEXT_EXTRA_OPTIONS | |
39fd3d4f | 715 | MSGMERGE |
93613951 | 716 | XGETTEXT_015 |
39fd3d4f | 717 | XGETTEXT |
93613951 TT |
718 | GMSGFMT_015 |
719 | MSGFMT_015 | |
39fd3d4f SJR |
720 | GMSGFMT |
721 | MSGFMT | |
93613951 | 722 | GETTEXT_MACRO_VERSION |
39fd3d4f | 723 | USE_NLS |
93613951 TT |
724 | SED |
725 | MKDIR_P | |
39fd3d4f SJR |
726 | INSTALL_DATA |
727 | INSTALL_SCRIPT | |
728 | INSTALL_PROGRAM | |
729 | SET_MAKE | |
730 | VERSION | |
731 | PACKAGE | |
732 | GETTEXT_PACKAGE | |
749f0712 TT |
733 | TDB_MAN_COMMENT |
734 | TDB_CMT | |
39fd3d4f SJR |
735 | UUIDD_CMT |
736 | E2INITRD_MAN | |
737 | E2INITRD_PROG | |
738 | FSCK_MAN | |
739 | FSCK_PROG | |
8d9c50c5 | 740 | DEFRAG_CMT |
39fd3d4f SJR |
741 | RESIZER_CMT |
742 | IMAGER_CMT | |
743 | DEBUGFS_CMT | |
744 | BLKID_CMT | |
745 | DEPPROFILED_LIBBLKID | |
746 | PROFILED_LIBBLKID | |
747 | DEPSTATIC_LIBBLKID | |
748 | STATIC_LIBBLKID | |
749 | DEPLIBBLKID | |
750 | LIBBLKID | |
751 | UUID_CMT | |
752 | DEPPROFILED_LIBUUID | |
753 | PROFILED_LIBUUID | |
754 | DEPSTATIC_LIBUUID | |
755 | STATIC_LIBUUID | |
756 | DEPLIBUUID | |
757 | LIBUUID | |
93613951 TT |
758 | PKG_CONFIG_LIBDIR |
759 | PKG_CONFIG_PATH | |
39fd3d4f SJR |
760 | PKG_CONFIG |
761 | TEST_IO_CMT | |
762 | PRIVATE_LIBS_CMT | |
763 | LDFLAG_DYNAMIC | |
764 | PROFILED_LIB_EXT | |
765 | STATIC_LIB_EXT | |
766 | LIB_EXT | |
39fd3d4f SJR |
767 | PROFILE_CMT |
768 | BSDLIB_CMT | |
769 | ELF_CMT | |
c13351f6 | 770 | Q |
c1986ecb | 771 | ES |
c13351f6 | 772 | E |
5aa6c3f6 | 773 | LINK_BUILD_FLAGS |
183c73b0 | 774 | SYMLINK_RELATIVE |
5aa6c3f6 | 775 | LINK_INSTALL_FLAGS |
39fd3d4f | 776 | MAINTAINER_CMT |
93613951 TT |
777 | EGREP |
778 | GREP | |
39fd3d4f | 779 | CPP |
9b3018a8 | 780 | RDYNAMIC |
57aa50d4 | 781 | DLOPEN_LIB |
39fd3d4f SJR |
782 | OBJEXT |
783 | EXEEXT | |
784 | ac_ct_CC | |
785 | CPPFLAGS | |
786 | LDFLAGS | |
787 | CFLAGS | |
788 | CC | |
789 | host_os | |
790 | host_vendor | |
791 | host_cpu | |
792 | host | |
793 | build_os | |
794 | build_vendor | |
795 | build_cpu | |
796 | build | |
797 | E2FSPROGS_PKGVER | |
798 | E2FSPROGS_VERSION | |
799 | E2FSPROGS_DAY | |
800 | E2FSPROGS_MONTH | |
801 | E2FSPROGS_YEAR | |
802 | target_alias | |
803 | host_alias | |
804 | build_alias | |
805 | LIBS | |
806 | ECHO_T | |
807 | ECHO_N | |
808 | ECHO_C | |
809 | DEFS | |
810 | mandir | |
811 | localedir | |
812 | libdir | |
813 | psdir | |
814 | pdfdir | |
815 | dvidir | |
816 | htmldir | |
817 | infodir | |
818 | docdir | |
819 | oldincludedir | |
820 | includedir | |
2ab53829 | 821 | runstatedir |
39fd3d4f SJR |
822 | localstatedir |
823 | sharedstatedir | |
824 | sysconfdir | |
825 | datadir | |
826 | datarootdir | |
827 | libexecdir | |
828 | sbindir | |
829 | bindir | |
830 | program_transform_name | |
831 | prefix | |
832 | exec_prefix | |
57aa50d4 | 833 | PACKAGE_URL |
39fd3d4f SJR |
834 | PACKAGE_BUGREPORT |
835 | PACKAGE_STRING | |
836 | PACKAGE_VERSION | |
837 | PACKAGE_TARNAME | |
838 | PACKAGE_NAME | |
839 | PATH_SEPARATOR | |
840 | SHELL' | |
e1052144 TT |
841 | ac_subst_files='MCONFIG |
842 | MAKEFILE_ELF | |
843 | MAKEFILE_BSDLIB | |
844 | MAKEFILE_PROFILE | |
e1052144 | 845 | MAKEFILE_LIBRARY |
488c75a6 TT |
846 | ASM_TYPES_HEADER |
847 | PUBLIC_CONFIG_HEADER' | |
39fd3d4f SJR |
848 | ac_user_opts=' |
849 | enable_option_checking | |
850 | with_diet_libc | |
851 | with_cc | |
39fd3d4f SJR |
852 | with_ccopts |
853 | with_ldopts | |
854 | with_root_prefix | |
855 | enable_maintainer_mode | |
5aa6c3f6 | 856 | enable_symlink_install |
91d11da1 | 857 | enable_relative_symlinks |
183c73b0 | 858 | enable_symlink_relative_symlinks |
5aa6c3f6 | 859 | enable_symlink_build |
c13351f6 | 860 | enable_verbose_makecmds |
39fd3d4f SJR |
861 | enable_elf_shlibs |
862 | enable_bsd_shlibs | |
863 | enable_profile | |
fedfb27f | 864 | enable_gcov |
fd1677e8 | 865 | enable_hardening |
39fd3d4f SJR |
866 | enable_jbd_debug |
867 | enable_blkid_debug | |
868 | enable_testio_debug | |
869 | enable_libuuid | |
870 | enable_libblkid | |
3df6014a | 871 | enable_backtrace |
39fd3d4f SJR |
872 | enable_debugfs |
873 | enable_imager | |
874 | enable_resizer | |
8d9c50c5 | 875 | enable_defrag |
39fd3d4f SJR |
876 | enable_fsck |
877 | enable_e2initrd_helper | |
878 | enable_tls | |
879 | enable_uuidd | |
d6a4bcb5 | 880 | enable_mmp |
749f0712 | 881 | enable_tdb |
1625bf42 TB |
882 | enable_bmap_stats |
883 | enable_bmap_stats_ops | |
39fd3d4f | 884 | enable_nls |
93613951 | 885 | enable_threads |
39fd3d4f SJR |
886 | with_gnu_ld |
887 | enable_rpath | |
93613951 | 888 | with_libpth_prefix |
39fd3d4f SJR |
889 | with_libiconv_prefix |
890 | with_included_gettext | |
891 | with_libintl_prefix | |
81cbf1ef | 892 | enable_fuse2fs |
55e00a25 | 893 | with_multiarch |
39fd3d4f | 894 | ' |
e1052144 TT |
895 | ac_precious_vars='build_alias |
896 | host_alias | |
897 | target_alias | |
898 | CC | |
899 | CFLAGS | |
900 | LDFLAGS | |
29a5deed | 901 | LIBS |
e1052144 | 902 | CPPFLAGS |
14b596d4 | 903 | CPP |
93613951 TT |
904 | PKG_CONFIG |
905 | PKG_CONFIG_PATH | |
906 | PKG_CONFIG_LIBDIR' | |
e1052144 | 907 | |
50e1e10f TT |
908 | |
909 | # Initialize some variables set by options. | |
b0cacab0 TT |
910 | ac_init_help= |
911 | ac_init_version=false | |
39fd3d4f SJR |
912 | ac_unrecognized_opts= |
913 | ac_unrecognized_sep= | |
50e1e10f TT |
914 | # The variables have the same names as the options, with |
915 | # dashes changed to underlines. | |
b0cacab0 | 916 | cache_file=/dev/null |
50e1e10f | 917 | exec_prefix=NONE |
50e1e10f | 918 | no_create= |
50e1e10f TT |
919 | no_recursion= |
920 | prefix=NONE | |
921 | program_prefix=NONE | |
922 | program_suffix=NONE | |
923 | program_transform_name=s,x,x, | |
924 | silent= | |
925 | site= | |
926 | srcdir= | |
50e1e10f TT |
927 | verbose= |
928 | x_includes=NONE | |
929 | x_libraries=NONE | |
b0cacab0 TT |
930 | |
931 | # Installation directory options. | |
932 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
933 | # and all the variables that are supposed to be based on exec_prefix | |
934 | # by default will actually change. | |
935 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
e1052144 | 936 | # (The list follows the same order as the GNU Coding Standards.) |
21c84b71 TT |
937 | bindir='${exec_prefix}/bin' |
938 | sbindir='${exec_prefix}/sbin' | |
939 | libexecdir='${exec_prefix}/libexec' | |
e1052144 TT |
940 | datarootdir='${prefix}/share' |
941 | datadir='${datarootdir}' | |
21c84b71 TT |
942 | sysconfdir='${prefix}/etc' |
943 | sharedstatedir='${prefix}/com' | |
944 | localstatedir='${prefix}/var' | |
2ab53829 | 945 | runstatedir='${localstatedir}/run' |
21c84b71 TT |
946 | includedir='${prefix}/include' |
947 | oldincludedir='/usr/include' | |
e1052144 TT |
948 | docdir='${datarootdir}/doc/${PACKAGE}' |
949 | infodir='${datarootdir}/info' | |
950 | htmldir='${docdir}' | |
951 | dvidir='${docdir}' | |
952 | pdfdir='${docdir}' | |
953 | psdir='${docdir}' | |
954 | libdir='${exec_prefix}/lib' | |
955 | localedir='${datarootdir}/locale' | |
956 | mandir='${datarootdir}/man' | |
50e1e10f | 957 | |
50e1e10f | 958 | ac_prev= |
e1052144 | 959 | ac_dashdash= |
50e1e10f TT |
960 | for ac_option |
961 | do | |
50e1e10f TT |
962 | # If the previous option needs an argument, assign it. |
963 | if test -n "$ac_prev"; then | |
e1052144 | 964 | eval $ac_prev=\$ac_option |
50e1e10f TT |
965 | ac_prev= |
966 | continue | |
967 | fi | |
968 | ||
e1052144 | 969 | case $ac_option in |
d6a4bcb5 TB |
970 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
971 | *=) ac_optarg= ;; | |
972 | *) ac_optarg=yes ;; | |
e1052144 | 973 | esac |
50e1e10f TT |
974 | |
975 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
976 | ||
e1052144 TT |
977 | case $ac_dashdash$ac_option in |
978 | --) | |
979 | ac_dashdash=yes ;; | |
50e1e10f | 980 | |
21c84b71 TT |
981 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
982 | ac_prev=bindir ;; | |
983 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
b0cacab0 | 984 | bindir=$ac_optarg ;; |
21c84b71 TT |
985 | |
986 | -build | --build | --buil | --bui | --bu) | |
b0cacab0 | 987 | ac_prev=build_alias ;; |
21c84b71 | 988 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
b0cacab0 | 989 | build_alias=$ac_optarg ;; |
50e1e10f TT |
990 | |
991 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
992 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
993 | ac_prev=cache_file ;; | |
994 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
995 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
b0cacab0 TT |
996 | cache_file=$ac_optarg ;; |
997 | ||
998 | --config-cache | -C) | |
999 | cache_file=config.cache ;; | |
50e1e10f | 1000 | |
e1052144 | 1001 | -datadir | --datadir | --datadi | --datad) |
21c84b71 | 1002 | ac_prev=datadir ;; |
e1052144 | 1003 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
b0cacab0 | 1004 | datadir=$ac_optarg ;; |
21c84b71 | 1005 | |
e1052144 TT |
1006 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
1007 | | --dataroo | --dataro | --datar) | |
1008 | ac_prev=datarootdir ;; | |
1009 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
1010 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
1011 | datarootdir=$ac_optarg ;; | |
1012 | ||
50e1e10f | 1013 | -disable-* | --disable-*) |
39fd3d4f | 1014 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
50e1e10f | 1015 | # Reject names that are not valid shell variable names. |
39fd3d4f | 1016 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d6a4bcb5 | 1017 | as_fn_error $? "invalid feature name: $ac_useropt" |
39fd3d4f SJR |
1018 | ac_useropt_orig=$ac_useropt |
1019 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1020 | case $ac_user_opts in | |
1021 | *" | |
1022 | "enable_$ac_useropt" | |
1023 | "*) ;; | |
1024 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
1025 | ac_unrecognized_sep=', ';; | |
1026 | esac | |
1027 | eval enable_$ac_useropt=no ;; | |
e1052144 TT |
1028 | |
1029 | -docdir | --docdir | --docdi | --doc | --do) | |
1030 | ac_prev=docdir ;; | |
1031 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1032 | docdir=$ac_optarg ;; | |
1033 | ||
1034 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1035 | ac_prev=dvidir ;; | |
1036 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1037 | dvidir=$ac_optarg ;; | |
50e1e10f TT |
1038 | |
1039 | -enable-* | --enable-*) | |
39fd3d4f | 1040 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
50e1e10f | 1041 | # Reject names that are not valid shell variable names. |
39fd3d4f | 1042 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d6a4bcb5 | 1043 | as_fn_error $? "invalid feature name: $ac_useropt" |
39fd3d4f SJR |
1044 | ac_useropt_orig=$ac_useropt |
1045 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1046 | case $ac_user_opts in | |
1047 | *" | |
1048 | "enable_$ac_useropt" | |
1049 | "*) ;; | |
1050 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1051 | ac_unrecognized_sep=', ';; | |
1052 | esac | |
1053 | eval enable_$ac_useropt=\$ac_optarg ;; | |
50e1e10f TT |
1054 | |
1055 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1056 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1057 | | --exec | --exe | --ex) | |
1058 | ac_prev=exec_prefix ;; | |
1059 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1060 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1061 | | --exec=* | --exe=* | --ex=*) | |
b0cacab0 | 1062 | exec_prefix=$ac_optarg ;; |
50e1e10f TT |
1063 | |
1064 | -gas | --gas | --ga | --g) | |
1065 | # Obsolete; use --with-gas. | |
1066 | with_gas=yes ;; | |
1067 | ||
b0cacab0 TT |
1068 | -help | --help | --hel | --he | -h) |
1069 | ac_init_help=long ;; | |
1070 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1071 | ac_init_help=recursive ;; | |
1072 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1073 | ac_init_help=short ;; | |
50e1e10f TT |
1074 | |
1075 | -host | --host | --hos | --ho) | |
b0cacab0 | 1076 | ac_prev=host_alias ;; |
50e1e10f | 1077 | -host=* | --host=* | --hos=* | --ho=*) |
b0cacab0 | 1078 | host_alias=$ac_optarg ;; |
50e1e10f | 1079 | |
e1052144 TT |
1080 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1081 | ac_prev=htmldir ;; | |
1082 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1083 | | --ht=*) | |
1084 | htmldir=$ac_optarg ;; | |
1085 | ||
21c84b71 TT |
1086 | -includedir | --includedir | --includedi | --included | --include \ |
1087 | | --includ | --inclu | --incl | --inc) | |
1088 | ac_prev=includedir ;; | |
1089 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1090 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
b0cacab0 | 1091 | includedir=$ac_optarg ;; |
21c84b71 TT |
1092 | |
1093 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1094 | ac_prev=infodir ;; | |
1095 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
b0cacab0 | 1096 | infodir=$ac_optarg ;; |
21c84b71 TT |
1097 | |
1098 | -libdir | --libdir | --libdi | --libd) | |
1099 | ac_prev=libdir ;; | |
1100 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
b0cacab0 | 1101 | libdir=$ac_optarg ;; |
21c84b71 TT |
1102 | |
1103 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1104 | | --libexe | --libex | --libe) | |
1105 | ac_prev=libexecdir ;; | |
1106 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1107 | | --libexe=* | --libex=* | --libe=*) | |
b0cacab0 | 1108 | libexecdir=$ac_optarg ;; |
21c84b71 | 1109 | |
e1052144 TT |
1110 | -localedir | --localedir | --localedi | --localed | --locale) |
1111 | ac_prev=localedir ;; | |
1112 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1113 | localedir=$ac_optarg ;; | |
1114 | ||
21c84b71 | 1115 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
e1052144 | 1116 | | --localstate | --localstat | --localsta | --localst | --locals) |
21c84b71 TT |
1117 | ac_prev=localstatedir ;; |
1118 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
e1052144 | 1119 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
b0cacab0 | 1120 | localstatedir=$ac_optarg ;; |
21c84b71 TT |
1121 | |
1122 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1123 | ac_prev=mandir ;; | |
1124 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
b0cacab0 | 1125 | mandir=$ac_optarg ;; |
21c84b71 | 1126 | |
50e1e10f TT |
1127 | -nfp | --nfp | --nf) |
1128 | # Obsolete; use --without-fp. | |
1129 | with_fp=no ;; | |
1130 | ||
1131 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
b0cacab0 | 1132 | | --no-cr | --no-c | -n) |
50e1e10f TT |
1133 | no_create=yes ;; |
1134 | ||
1135 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1136 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1137 | no_recursion=yes ;; | |
1138 | ||
21c84b71 TT |
1139 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
1140 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1141 | | --oldin | --oldi | --old | --ol | --o) | |
1142 | ac_prev=oldincludedir ;; | |
1143 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1144 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1145 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
b0cacab0 | 1146 | oldincludedir=$ac_optarg ;; |
21c84b71 | 1147 | |
50e1e10f TT |
1148 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
1149 | ac_prev=prefix ;; | |
1150 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
b0cacab0 | 1151 | prefix=$ac_optarg ;; |
50e1e10f TT |
1152 | |
1153 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1154 | | --program-pre | --program-pr | --program-p) | |
1155 | ac_prev=program_prefix ;; | |
1156 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1157 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
b0cacab0 | 1158 | program_prefix=$ac_optarg ;; |
50e1e10f TT |
1159 | |
1160 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1161 | | --program-suf | --program-su | --program-s) | |
1162 | ac_prev=program_suffix ;; | |
1163 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1164 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
b0cacab0 | 1165 | program_suffix=$ac_optarg ;; |
50e1e10f TT |
1166 | |
1167 | -program-transform-name | --program-transform-name \ | |
1168 | | --program-transform-nam | --program-transform-na \ | |
1169 | | --program-transform-n | --program-transform- \ | |
1170 | | --program-transform | --program-transfor \ | |
1171 | | --program-transfo | --program-transf \ | |
1172 | | --program-trans | --program-tran \ | |
1173 | | --progr-tra | --program-tr | --program-t) | |
1174 | ac_prev=program_transform_name ;; | |
1175 | -program-transform-name=* | --program-transform-name=* \ | |
1176 | | --program-transform-nam=* | --program-transform-na=* \ | |
1177 | | --program-transform-n=* | --program-transform-=* \ | |
1178 | | --program-transform=* | --program-transfor=* \ | |
1179 | | --program-transfo=* | --program-transf=* \ | |
1180 | | --program-trans=* | --program-tran=* \ | |
1181 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
b0cacab0 | 1182 | program_transform_name=$ac_optarg ;; |
50e1e10f | 1183 | |
e1052144 TT |
1184 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1185 | ac_prev=pdfdir ;; | |
1186 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1187 | pdfdir=$ac_optarg ;; | |
1188 | ||
1189 | -psdir | --psdir | --psdi | --psd | --ps) | |
1190 | ac_prev=psdir ;; | |
1191 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1192 | psdir=$ac_optarg ;; | |
1193 | ||
50e1e10f TT |
1194 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1195 | | -silent | --silent | --silen | --sile | --sil) | |
1196 | silent=yes ;; | |
1197 | ||
2ab53829 TT |
1198 | -runstatedir | --runstatedir | --runstatedi | --runstated \ |
1199 | | --runstate | --runstat | --runsta | --runst | --runs \ | |
1200 | | --run | --ru | --r) | |
1201 | ac_prev=runstatedir ;; | |
1202 | -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ | |
1203 | | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ | |
1204 | | --run=* | --ru=* | --r=*) | |
1205 | runstatedir=$ac_optarg ;; | |
1206 | ||
21c84b71 TT |
1207 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
1208 | ac_prev=sbindir ;; | |
1209 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1210 | | --sbi=* | --sb=*) | |
b0cacab0 | 1211 | sbindir=$ac_optarg ;; |
21c84b71 TT |
1212 | |
1213 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1214 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1215 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1216 | | --sha | --sh) | |
1217 | ac_prev=sharedstatedir ;; | |
1218 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1219 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1220 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1221 | | --sha=* | --sh=*) | |
b0cacab0 | 1222 | sharedstatedir=$ac_optarg ;; |
21c84b71 | 1223 | |
50e1e10f TT |
1224 | -site | --site | --sit) |
1225 | ac_prev=site ;; | |
1226 | -site=* | --site=* | --sit=*) | |
b0cacab0 | 1227 | site=$ac_optarg ;; |
50e1e10f TT |
1228 | |
1229 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1230 | ac_prev=srcdir ;; | |
1231 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
b0cacab0 | 1232 | srcdir=$ac_optarg ;; |
50e1e10f | 1233 | |
21c84b71 TT |
1234 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
1235 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1236 | ac_prev=sysconfdir ;; | |
1237 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1238 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
b0cacab0 | 1239 | sysconfdir=$ac_optarg ;; |
21c84b71 | 1240 | |
50e1e10f | 1241 | -target | --target | --targe | --targ | --tar | --ta | --t) |
b0cacab0 | 1242 | ac_prev=target_alias ;; |
50e1e10f | 1243 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
b0cacab0 | 1244 | target_alias=$ac_optarg ;; |
50e1e10f TT |
1245 | |
1246 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1247 | verbose=yes ;; | |
1248 | ||
b0cacab0 TT |
1249 | -version | --version | --versio | --versi | --vers | -V) |
1250 | ac_init_version=: ;; | |
50e1e10f TT |
1251 | |
1252 | -with-* | --with-*) | |
39fd3d4f | 1253 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
50e1e10f | 1254 | # Reject names that are not valid shell variable names. |
39fd3d4f | 1255 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d6a4bcb5 | 1256 | as_fn_error $? "invalid package name: $ac_useropt" |
39fd3d4f SJR |
1257 | ac_useropt_orig=$ac_useropt |
1258 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1259 | case $ac_user_opts in | |
1260 | *" | |
1261 | "with_$ac_useropt" | |
1262 | "*) ;; | |
1263 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1264 | ac_unrecognized_sep=', ';; | |
1265 | esac | |
1266 | eval with_$ac_useropt=\$ac_optarg ;; | |
50e1e10f TT |
1267 | |
1268 | -without-* | --without-*) | |
39fd3d4f | 1269 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
50e1e10f | 1270 | # Reject names that are not valid shell variable names. |
39fd3d4f | 1271 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d6a4bcb5 | 1272 | as_fn_error $? "invalid package name: $ac_useropt" |
39fd3d4f SJR |
1273 | ac_useropt_orig=$ac_useropt |
1274 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1275 | case $ac_user_opts in | |
1276 | *" | |
1277 | "with_$ac_useropt" | |
1278 | "*) ;; | |
1279 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1280 | ac_unrecognized_sep=', ';; | |
1281 | esac | |
1282 | eval with_$ac_useropt=no ;; | |
50e1e10f TT |
1283 | |
1284 | --x) | |
1285 | # Obsolete; use --with-x. | |
1286 | with_x=yes ;; | |
1287 | ||
1288 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1289 | | --x-incl | --x-inc | --x-in | --x-i) | |
1290 | ac_prev=x_includes ;; | |
1291 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1292 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
b0cacab0 | 1293 | x_includes=$ac_optarg ;; |
50e1e10f TT |
1294 | |
1295 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1296 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1297 | ac_prev=x_libraries ;; | |
1298 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1299 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
b0cacab0 | 1300 | x_libraries=$ac_optarg ;; |
50e1e10f | 1301 | |
d6a4bcb5 TB |
1302 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1303 | Try \`$0 --help' for more information" | |
50e1e10f TT |
1304 | ;; |
1305 | ||
b0cacab0 TT |
1306 | *=*) |
1307 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1308 | # Reject names that are not valid shell variable names. | |
57aa50d4 TT |
1309 | case $ac_envvar in #( |
1310 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
d6a4bcb5 | 1311 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
57aa50d4 | 1312 | esac |
e1052144 | 1313 | eval $ac_envvar=\$ac_optarg |
b0cacab0 TT |
1314 | export $ac_envvar ;; |
1315 | ||
21c84b71 | 1316 | *) |
b0cacab0 | 1317 | # FIXME: should be removed in autoconf 3.0. |
39fd3d4f | 1318 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
b0cacab0 | 1319 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
39fd3d4f | 1320 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
d6a4bcb5 | 1321 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
50e1e10f TT |
1322 | ;; |
1323 | ||
1324 | esac | |
1325 | done | |
1326 | ||
1327 | if test -n "$ac_prev"; then | |
b0cacab0 | 1328 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
d6a4bcb5 | 1329 | as_fn_error $? "missing argument to $ac_option" |
50e1e10f | 1330 | fi |
50e1e10f | 1331 | |
39fd3d4f SJR |
1332 | if test -n "$ac_unrecognized_opts"; then |
1333 | case $enable_option_checking in | |
1334 | no) ;; | |
d6a4bcb5 | 1335 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
39fd3d4f SJR |
1336 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
1337 | esac | |
1338 | fi | |
1339 | ||
1340 | # Check all directory arguments for consistency. | |
e1052144 TT |
1341 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1342 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1343 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
2ab53829 | 1344 | libdir localedir mandir runstatedir |
50e1e10f | 1345 | do |
e1052144 | 1346 | eval ac_val=\$$ac_var |
39fd3d4f SJR |
1347 | # Remove trailing slashes. |
1348 | case $ac_val in | |
1349 | */ ) | |
1350 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1351 | eval $ac_var=\$ac_val;; | |
1352 | esac | |
1353 | # Be sure to have absolute directory names. | |
b0cacab0 | 1354 | case $ac_val in |
e1052144 TT |
1355 | [\\/$]* | ?:[\\/]* ) continue;; |
1356 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
50e1e10f | 1357 | esac |
d6a4bcb5 | 1358 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
50e1e10f TT |
1359 | done |
1360 | ||
b0cacab0 TT |
1361 | # There might be people who depend on the old broken behavior: `$host' |
1362 | # used to hold the argument of --host etc. | |
1363 | # FIXME: To remove some day. | |
1364 | build=$build_alias | |
1365 | host=$host_alias | |
1366 | target=$target_alias | |
1367 | ||
1368 | # FIXME: To remove some day. | |
1369 | if test "x$host_alias" != x; then | |
1370 | if test "x$build_alias" = x; then | |
1371 | cross_compiling=maybe | |
b0cacab0 TT |
1372 | elif test "x$build_alias" != "x$host_alias"; then |
1373 | cross_compiling=yes | |
1374 | fi | |
1375 | fi | |
50e1e10f | 1376 | |
b0cacab0 TT |
1377 | ac_tool_prefix= |
1378 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1379 | ||
1380 | test "$silent" = yes && exec 6>/dev/null | |
50e1e10f | 1381 | |
50e1e10f | 1382 | |
e1052144 TT |
1383 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1384 | ac_ls_di=`ls -di .` && | |
1385 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
d6a4bcb5 | 1386 | as_fn_error $? "working directory cannot be determined" |
e1052144 | 1387 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
d6a4bcb5 | 1388 | as_fn_error $? "pwd does not report name of working directory" |
e1052144 TT |
1389 | |
1390 | ||
50e1e10f TT |
1391 | # Find the source files, if location was not specified. |
1392 | if test -z "$srcdir"; then | |
1393 | ac_srcdir_defaulted=yes | |
e1052144 | 1394 | # Try the directory containing this script, then the parent directory. |
39fd3d4f SJR |
1395 | ac_confdir=`$as_dirname -- "$as_myself" || |
1396 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1397 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1398 | X"$as_myself" : 'X\(//\)$' \| \ | |
1399 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1400 | $as_echo X"$as_myself" | | |
e1052144 TT |
1401 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1402 | s//\1/ | |
1403 | q | |
1404 | } | |
1405 | /^X\(\/\/\)[^/].*/{ | |
1406 | s//\1/ | |
1407 | q | |
1408 | } | |
1409 | /^X\(\/\/\)$/{ | |
1410 | s//\1/ | |
1411 | q | |
1412 | } | |
1413 | /^X\(\/\).*/{ | |
1414 | s//\1/ | |
1415 | q | |
1416 | } | |
1417 | s/.*/./; q'` | |
50e1e10f | 1418 | srcdir=$ac_confdir |
e1052144 | 1419 | if test ! -r "$srcdir/$ac_unique_file"; then |
50e1e10f TT |
1420 | srcdir=.. |
1421 | fi | |
1422 | else | |
1423 | ac_srcdir_defaulted=no | |
1424 | fi | |
e1052144 TT |
1425 | if test ! -r "$srcdir/$ac_unique_file"; then |
1426 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
d6a4bcb5 | 1427 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
50e1e10f | 1428 | fi |
e1052144 TT |
1429 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1430 | ac_abs_confdir=`( | |
d6a4bcb5 | 1431 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
e1052144 TT |
1432 | pwd)` |
1433 | # When building in place, set srcdir=. | |
1434 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1435 | srcdir=. | |
1436 | fi | |
1437 | # Remove unnecessary trailing slashes from srcdir. | |
1438 | # Double slashes in file names in object file debugging info | |
1439 | # mess up M-x gdb in Emacs. | |
1440 | case $srcdir in | |
1441 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1442 | esac | |
1443 | for ac_var in $ac_precious_vars; do | |
1444 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1445 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1446 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1447 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1448 | done | |
b0cacab0 TT |
1449 | |
1450 | # | |
1451 | # Report the --help message. | |
1452 | # | |
1453 | if test "$ac_init_help" = "long"; then | |
1454 | # Omit some internal or obsolete options to make the list less imposing. | |
1455 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1456 | cat <<_ACEOF | |
1457 | \`configure' configures this package to adapt to many kinds of systems. | |
1458 | ||
1459 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1460 | ||
1461 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1462 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1463 | ||
1464 | Defaults for the options are specified in brackets. | |
1465 | ||
1466 | Configuration: | |
1467 | -h, --help display this help and exit | |
1468 | --help=short display options specific to this package | |
1469 | --help=recursive display the short help of all the included packages | |
1470 | -V, --version display version information and exit | |
d6a4bcb5 | 1471 | -q, --quiet, --silent do not print \`checking ...' messages |
b0cacab0 TT |
1472 | --cache-file=FILE cache test results in FILE [disabled] |
1473 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1474 | -n, --no-create do not create output files | |
1475 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1476 | ||
b0cacab0 TT |
1477 | Installation directories: |
1478 | --prefix=PREFIX install architecture-independent files in PREFIX | |
39fd3d4f | 1479 | [$ac_default_prefix] |
b0cacab0 | 1480 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
39fd3d4f | 1481 | [PREFIX] |
b0cacab0 TT |
1482 | |
1483 | By default, \`make install' will install all the files in | |
1484 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1485 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1486 | for instance \`--prefix=\$HOME'. | |
1487 | ||
1488 | For better control, use the options below. | |
1489 | ||
1490 | Fine tuning of the installation directories: | |
39fd3d4f SJR |
1491 | --bindir=DIR user executables [EPREFIX/bin] |
1492 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1493 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1494 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1495 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1496 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
2ab53829 | 1497 | --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] |
39fd3d4f SJR |
1498 | --libdir=DIR object code libraries [EPREFIX/lib] |
1499 | --includedir=DIR C header files [PREFIX/include] | |
1500 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1501 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1502 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1503 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1504 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1505 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1506 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1507 | --htmldir=DIR html documentation [DOCDIR] | |
1508 | --dvidir=DIR dvi documentation [DOCDIR] | |
1509 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1510 | --psdir=DIR ps documentation [DOCDIR] | |
b0cacab0 TT |
1511 | _ACEOF |
1512 | ||
1513 | cat <<\_ACEOF | |
1514 | ||
1515 | System types: | |
1516 | --build=BUILD configure for building on BUILD [guessed] | |
1517 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1518 | _ACEOF | |
1519 | fi | |
1520 | ||
1521 | if test -n "$ac_init_help"; then | |
1522 | ||
1523 | cat <<\_ACEOF | |
1524 | ||
1525 | Optional Features: | |
39fd3d4f | 1526 | --disable-option-checking ignore unrecognized --enable/--with options |
b0cacab0 TT |
1527 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1528 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
98919bdb | 1529 | --enable-maintainer-mode enable makefile rules useful for maintainers |
5aa6c3f6 | 1530 | --enable-symlink-install use symlinks when installing instead of hard links |
183c73b0 | 1531 | --enable-relative-symlinks use relative symlinks when installing |
91d11da1 | 1532 | |
5aa6c3f6 TT |
1533 | --enable-symlink-build use symlinks while building instead of hard links |
1534 | --enable-verbose-makecmds enable verbose make command output | |
b0cacab0 TT |
1535 | --enable-elf-shlibs select ELF shared libraries |
1536 | --enable-bsd-shlibs select BSD shared libraries | |
1537 | --enable-profile build profiling libraries | |
fedfb27f | 1538 | --enable-gcov build for coverage testing using gcov |
fd1677e8 | 1539 | --enable-hardening build for coverage testing using gcov |
b0cacab0 TT |
1540 | --enable-jbd-debug enable journal debugging |
1541 | --enable-blkid-debug enable blkid debugging | |
af773654 | 1542 | --disable-testio-debug disable the use of the test I/O manager for debugging |
f5dffb81 TT |
1543 | --enable-libuuid build and use private uuid library |
1544 | --enable-libblkid build and use private blkid library | |
3df6014a | 1545 | --disable-backtrace disable use backtrace |
b0cacab0 TT |
1546 | --disable-debugfs disable support of debugfs program |
1547 | --disable-imager disable support of e2image program | |
1548 | --disable-resizer disable support of e2resize program | |
8d9c50c5 | 1549 | --disable-defrag disable support of e4defrag program |
b0cacab0 TT |
1550 | --enable-fsck build fsck wrapper program |
1551 | --enable-e2initrd-helper build e2initrd-helper program | |
3249394d | 1552 | --disable-tls disable use of thread local support |
5610f992 | 1553 | --disable-uuidd disable building the uuid daemon |
d6a4bcb5 | 1554 | --disable-mmp disable support mmp, Multi Mount Protection |
749f0712 | 1555 | --disable-tdb disable tdb support |
1625bf42 TB |
1556 | --disable-bmap-stats disable collection of bitmap stats. |
1557 | --enable-bmap-stats-ops enable collection of additional bitmap stats | |
b0cacab0 | 1558 | --disable-nls do not use Native Language Support |
93613951 TT |
1559 | --enable-threads={posix|solaris|pth|windows} |
1560 | specify multithreading API | |
1561 | --disable-threads build without multithread safety | |
b0cacab0 | 1562 | --disable-rpath do not hardcode runtime library paths |
f5dffb81 | 1563 | --disable-fuse2fs do not build fuse2fs |
b0cacab0 TT |
1564 | |
1565 | Optional Packages: | |
1566 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1567 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
3249394d | 1568 | --with-diet-libc use diet libc |
0b5b9f90 TT |
1569 | --with-cc no longer supported, use CC= instead |
1570 | --with-ccopts no longer supported, use CFLAGS= instead | |
1571 | --with-ldopts no longer supported, use LDFLAGS= instead | |
b0cacab0 | 1572 | --with-root-prefix=PREFIX override prefix variable for files to be placed in the root |
93613951 TT |
1573 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
1574 | --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib | |
1575 | --without-libpth-prefix don't search for libpth in includedir and libdir | |
b0cacab0 TT |
1576 | --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib |
1577 | --without-libiconv-prefix don't search for libiconv in includedir and libdir | |
1578 | --with-included-gettext use the GNU gettext library included here | |
1579 | --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib | |
1580 | --without-libintl-prefix don't search for libintl in includedir and libdir | |
55e00a25 | 1581 | --with-multiarch=ARCH specify the multiarch triplet |
b0cacab0 TT |
1582 | |
1583 | Some influential environment variables: | |
1584 | CC C compiler command | |
1585 | CFLAGS C compiler flags | |
1586 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1587 | nonstandard directory <lib dir> | |
29a5deed | 1588 | LIBS libraries to pass to the linker, e.g. -l<library> |
61ef2474 | 1589 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
e1052144 | 1590 | you have headers in a nonstandard directory <include dir> |
b0cacab0 | 1591 | CPP C preprocessor |
14b596d4 | 1592 | PKG_CONFIG path to pkg-config utility |
93613951 TT |
1593 | PKG_CONFIG_PATH |
1594 | directories to add to pkg-config's search path | |
1595 | PKG_CONFIG_LIBDIR | |
1596 | path overriding pkg-config's built-in search path | |
b0cacab0 TT |
1597 | |
1598 | Use these variables to override the choices made by `configure' or to help | |
1599 | it to find libraries and programs with nonstandard names/locations. | |
1600 | ||
57aa50d4 | 1601 | Report bugs to the package provider. |
b0cacab0 | 1602 | _ACEOF |
e1052144 | 1603 | ac_status=$? |
b0cacab0 TT |
1604 | fi |
1605 | ||
1606 | if test "$ac_init_help" = "recursive"; then | |
1607 | # If there are subdirs, report their specific --help. | |
b0cacab0 | 1608 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
39fd3d4f SJR |
1609 | test -d "$ac_dir" || |
1610 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1611 | continue | |
b0cacab0 TT |
1612 | ac_builddir=. |
1613 | ||
e1052144 TT |
1614 | case "$ac_dir" in |
1615 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1616 | *) | |
39fd3d4f | 1617 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
e1052144 | 1618 | # A ".." for each directory in $ac_dir_suffix. |
39fd3d4f | 1619 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
e1052144 TT |
1620 | case $ac_top_builddir_sub in |
1621 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1622 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1623 | esac ;; | |
1624 | esac | |
1625 | ac_abs_top_builddir=$ac_pwd | |
1626 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1627 | # for backward compatibility: | |
1628 | ac_top_builddir=$ac_top_build_prefix | |
b0cacab0 TT |
1629 | |
1630 | case $srcdir in | |
e1052144 | 1631 | .) # We are building in place. |
b0cacab0 | 1632 | ac_srcdir=. |
e1052144 TT |
1633 | ac_top_srcdir=$ac_top_builddir_sub |
1634 | ac_abs_top_srcdir=$ac_pwd ;; | |
1635 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
b0cacab0 | 1636 | ac_srcdir=$srcdir$ac_dir_suffix; |
e1052144 TT |
1637 | ac_top_srcdir=$srcdir |
1638 | ac_abs_top_srcdir=$srcdir ;; | |
1639 | *) # Relative name. | |
1640 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1641 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1642 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
b0cacab0 | 1643 | esac |
e1052144 TT |
1644 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1645 | ||
1646 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1647 | # Check for guested configure. | |
1648 | if test -f "$ac_srcdir/configure.gnu"; then | |
1649 | echo && | |
1650 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1651 | elif test -f "$ac_srcdir/configure"; then | |
1652 | echo && | |
1653 | $SHELL "$ac_srcdir/configure" --help=recursive | |
b0cacab0 | 1654 | else |
39fd3d4f | 1655 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
e1052144 TT |
1656 | fi || ac_status=$? |
1657 | cd "$ac_pwd" || { ac_status=$?; break; } | |
b0cacab0 TT |
1658 | done |
1659 | fi | |
1660 | ||
e1052144 | 1661 | test -n "$ac_init_help" && exit $ac_status |
b0cacab0 TT |
1662 | if $ac_init_version; then |
1663 | cat <<\_ACEOF | |
e1052144 | 1664 | configure |
d6a4bcb5 | 1665 | generated by GNU Autoconf 2.69 |
b0cacab0 | 1666 | |
d6a4bcb5 | 1667 | Copyright (C) 2012 Free Software Foundation, Inc. |
b0cacab0 TT |
1668 | This configure script is free software; the Free Software Foundation |
1669 | gives unlimited permission to copy, distribute and modify it. | |
1670 | _ACEOF | |
e1052144 | 1671 | exit |
b0cacab0 | 1672 | fi |
b0cacab0 | 1673 | |
57aa50d4 TT |
1674 | ## ------------------------ ## |
1675 | ## Autoconf initialization. ## | |
1676 | ## ------------------------ ## | |
b0cacab0 | 1677 | |
57aa50d4 TT |
1678 | # ac_fn_c_try_compile LINENO |
1679 | # -------------------------- | |
1680 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1681 | ac_fn_c_try_compile () | |
1682 | { | |
1683 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1684 | rm -f conftest.$ac_objext | |
1685 | if { { ac_try="$ac_compile" | |
1686 | case "(($ac_try" in | |
1687 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1688 | *) ac_try_echo=$ac_try;; | |
1689 | esac | |
1690 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1691 | $as_echo "$ac_try_echo"; } >&5 | |
1692 | (eval "$ac_compile") 2>conftest.err | |
1693 | ac_status=$? | |
1694 | if test -s conftest.err; then | |
1695 | grep -v '^ *+' conftest.err >conftest.er1 | |
1696 | cat conftest.er1 >&5 | |
1697 | mv -f conftest.er1 conftest.err | |
1698 | fi | |
1699 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1700 | test $ac_status = 0; } && { | |
1701 | test -z "$ac_c_werror_flag" || | |
1702 | test ! -s conftest.err | |
1703 | } && test -s conftest.$ac_objext; then : | |
1704 | ac_retval=0 | |
1705 | else | |
1706 | $as_echo "$as_me: failed program was:" >&5 | |
1707 | sed 's/^/| /' conftest.$ac_ext >&5 | |
b0cacab0 | 1708 | |
57aa50d4 TT |
1709 | ac_retval=1 |
1710 | fi | |
d6a4bcb5 | 1711 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
61ef2474 | 1712 | as_fn_set_status $ac_retval |
57aa50d4 TT |
1713 | |
1714 | } # ac_fn_c_try_compile | |
1715 | ||
1716 | # ac_fn_c_try_link LINENO | |
1717 | # ----------------------- | |
1718 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1719 | ac_fn_c_try_link () | |
b0cacab0 | 1720 | { |
57aa50d4 TT |
1721 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1722 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1723 | if { { ac_try="$ac_link" | |
1724 | case "(($ac_try" in | |
1725 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1726 | *) ac_try_echo=$ac_try;; | |
1727 | esac | |
1728 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1729 | $as_echo "$ac_try_echo"; } >&5 | |
1730 | (eval "$ac_link") 2>conftest.err | |
1731 | ac_status=$? | |
1732 | if test -s conftest.err; then | |
1733 | grep -v '^ *+' conftest.err >conftest.er1 | |
1734 | cat conftest.er1 >&5 | |
1735 | mv -f conftest.er1 conftest.err | |
1736 | fi | |
1737 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1738 | test $ac_status = 0; } && { | |
1739 | test -z "$ac_c_werror_flag" || | |
1740 | test ! -s conftest.err | |
1741 | } && test -s conftest$ac_exeext && { | |
1742 | test "$cross_compiling" = yes || | |
d6a4bcb5 | 1743 | test -x conftest$ac_exeext |
57aa50d4 TT |
1744 | }; then : |
1745 | ac_retval=0 | |
1746 | else | |
1747 | $as_echo "$as_me: failed program was:" >&5 | |
1748 | sed 's/^/| /' conftest.$ac_ext >&5 | |
b0cacab0 | 1749 | |
57aa50d4 TT |
1750 | ac_retval=1 |
1751 | fi | |
1752 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1753 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1754 | # interfere with the next link command; also delete a directory that is | |
1755 | # left behind by Apple's compiler. We do this before executing the actions. | |
1756 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
d6a4bcb5 | 1757 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
61ef2474 | 1758 | as_fn_set_status $ac_retval |
b0cacab0 | 1759 | |
57aa50d4 | 1760 | } # ac_fn_c_try_link |
b0cacab0 | 1761 | |
57aa50d4 TT |
1762 | # ac_fn_c_try_cpp LINENO |
1763 | # ---------------------- | |
1764 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1765 | ac_fn_c_try_cpp () | |
1766 | { | |
1767 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1768 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1769 | case "(($ac_try" in | |
1770 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1771 | *) ac_try_echo=$ac_try;; | |
1772 | esac | |
1773 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1774 | $as_echo "$ac_try_echo"; } >&5 | |
1775 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1776 | ac_status=$? | |
1777 | if test -s conftest.err; then | |
1778 | grep -v '^ *+' conftest.err >conftest.er1 | |
1779 | cat conftest.er1 >&5 | |
1780 | mv -f conftest.er1 conftest.err | |
1781 | fi | |
1782 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
d6a4bcb5 | 1783 | test $ac_status = 0; } > conftest.i && { |
57aa50d4 TT |
1784 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
1785 | test ! -s conftest.err | |
1786 | }; then : | |
1787 | ac_retval=0 | |
1788 | else | |
1789 | $as_echo "$as_me: failed program was:" >&5 | |
1790 | sed 's/^/| /' conftest.$ac_ext >&5 | |
b0cacab0 | 1791 | |
57aa50d4 TT |
1792 | ac_retval=1 |
1793 | fi | |
d6a4bcb5 | 1794 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
61ef2474 | 1795 | as_fn_set_status $ac_retval |
b0cacab0 | 1796 | |
57aa50d4 | 1797 | } # ac_fn_c_try_cpp |
b0cacab0 | 1798 | |
93613951 TT |
1799 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
1800 | # ------------------------------------------------------- | |
1801 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1802 | # the include files in INCLUDES and setting the cache variable VAR | |
1803 | # accordingly. | |
1804 | ac_fn_c_check_header_mongrel () | |
1805 | { | |
1806 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1807 | if eval \${$3+:} false; then : | |
1808 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1809 | $as_echo_n "checking for $2... " >&6; } | |
1810 | if eval \${$3+:} false; then : | |
1811 | $as_echo_n "(cached) " >&6 | |
1812 | fi | |
1813 | eval ac_res=\$$3 | |
1814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1815 | $as_echo "$ac_res" >&6; } | |
1816 | else | |
1817 | # Is the header compilable? | |
1818 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1819 | $as_echo_n "checking $2 usability... " >&6; } | |
1820 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1821 | /* end confdefs.h. */ | |
1822 | $4 | |
1823 | #include <$2> | |
1824 | _ACEOF | |
1825 | if ac_fn_c_try_compile "$LINENO"; then : | |
1826 | ac_header_compiler=yes | |
1827 | else | |
1828 | ac_header_compiler=no | |
1829 | fi | |
1830 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1832 | $as_echo "$ac_header_compiler" >&6; } | |
1833 | ||
1834 | # Is the header present? | |
1835 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1836 | $as_echo_n "checking $2 presence... " >&6; } | |
1837 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1838 | /* end confdefs.h. */ | |
1839 | #include <$2> | |
1840 | _ACEOF | |
1841 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1842 | ac_header_preproc=yes | |
1843 | else | |
1844 | ac_header_preproc=no | |
1845 | fi | |
1846 | rm -f conftest.err conftest.i conftest.$ac_ext | |
1847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
1848 | $as_echo "$ac_header_preproc" >&6; } | |
1849 | ||
1850 | # So? What about this header? | |
1851 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1852 | yes:no: ) | |
1853 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1854 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1855 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1856 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1857 | ;; | |
1858 | no:yes:* ) | |
1859 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1860 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1861 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1862 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1863 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1864 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1865 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1866 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1867 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1868 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1869 | ;; | |
1870 | esac | |
1871 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1872 | $as_echo_n "checking for $2... " >&6; } | |
1873 | if eval \${$3+:} false; then : | |
1874 | $as_echo_n "(cached) " >&6 | |
1875 | else | |
1876 | eval "$3=\$ac_header_compiler" | |
1877 | fi | |
1878 | eval ac_res=\$$3 | |
1879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1880 | $as_echo "$ac_res" >&6; } | |
1881 | fi | |
1882 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1883 | ||
1884 | } # ac_fn_c_check_header_mongrel | |
1885 | ||
57aa50d4 TT |
1886 | # ac_fn_c_try_run LINENO |
1887 | # ---------------------- | |
1888 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1889 | # that executables *can* be run. | |
1890 | ac_fn_c_try_run () | |
1891 | { | |
1892 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1893 | if { { ac_try="$ac_link" | |
1894 | case "(($ac_try" in | |
1895 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1896 | *) ac_try_echo=$ac_try;; | |
1897 | esac | |
1898 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1899 | $as_echo "$ac_try_echo"; } >&5 | |
1900 | (eval "$ac_link") 2>&5 | |
1901 | ac_status=$? | |
1902 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1903 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1904 | { { case "(($ac_try" in | |
1905 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1906 | *) ac_try_echo=$ac_try;; | |
1907 | esac | |
1908 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1909 | $as_echo "$ac_try_echo"; } >&5 | |
1910 | (eval "$ac_try") 2>&5 | |
1911 | ac_status=$? | |
1912 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1913 | test $ac_status = 0; }; }; then : | |
1914 | ac_retval=0 | |
1915 | else | |
1916 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1917 | $as_echo "$as_me: failed program was:" >&5 | |
1918 | sed 's/^/| /' conftest.$ac_ext >&5 | |
b0cacab0 | 1919 | |
57aa50d4 TT |
1920 | ac_retval=$ac_status |
1921 | fi | |
1922 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
d6a4bcb5 | 1923 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
61ef2474 | 1924 | as_fn_set_status $ac_retval |
b0cacab0 | 1925 | |
57aa50d4 | 1926 | } # ac_fn_c_try_run |
b0cacab0 | 1927 | |
93613951 TT |
1928 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
1929 | # ------------------------------------------------------- | |
1930 | # Tests whether HEADER exists and can be compiled using the include files in | |
1931 | # INCLUDES, setting the cache variable VAR accordingly. | |
1932 | ac_fn_c_check_header_compile () | |
1933 | { | |
1934 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1935 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1936 | $as_echo_n "checking for $2... " >&6; } | |
1937 | if eval \${$3+:} false; then : | |
1938 | $as_echo_n "(cached) " >&6 | |
1939 | else | |
1940 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1941 | /* end confdefs.h. */ | |
1942 | $4 | |
1943 | #include <$2> | |
1944 | _ACEOF | |
1945 | if ac_fn_c_try_compile "$LINENO"; then : | |
1946 | eval "$3=yes" | |
1947 | else | |
1948 | eval "$3=no" | |
1949 | fi | |
1950 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1951 | fi | |
1952 | eval ac_res=\$$3 | |
1953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1954 | $as_echo "$ac_res" >&6; } | |
1955 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1956 | ||
1957 | } # ac_fn_c_check_header_compile | |
1958 | ||
57aa50d4 TT |
1959 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
1960 | # ------------------------------------------- | |
1961 | # Tests whether TYPE exists after having included INCLUDES, setting cache | |
1962 | # variable VAR accordingly. | |
1963 | ac_fn_c_check_type () | |
1964 | { | |
1965 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1966 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1967 | $as_echo_n "checking for $2... " >&6; } | |
d6a4bcb5 | 1968 | if eval \${$3+:} false; then : |
57aa50d4 | 1969 | $as_echo_n "(cached) " >&6 |
e1052144 | 1970 | else |
57aa50d4 TT |
1971 | eval "$3=no" |
1972 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1973 | /* end confdefs.h. */ | |
1974 | $4 | |
1975 | int | |
1976 | main () | |
1977 | { | |
1978 | if (sizeof ($2)) | |
1979 | return 0; | |
1980 | ; | |
1981 | return 0; | |
1982 | } | |
1983 | _ACEOF | |
1984 | if ac_fn_c_try_compile "$LINENO"; then : | |
1985 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1986 | /* end confdefs.h. */ | |
1987 | $4 | |
1988 | int | |
1989 | main () | |
1990 | { | |
1991 | if (sizeof (($2))) | |
1992 | return 0; | |
1993 | ; | |
1994 | return 0; | |
1995 | } | |
1996 | _ACEOF | |
1997 | if ac_fn_c_try_compile "$LINENO"; then : | |
50e1e10f | 1998 | |
50e1e10f | 1999 | else |
57aa50d4 | 2000 | eval "$3=yes" |
b0cacab0 | 2001 | fi |
57aa50d4 | 2002 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
50e1e10f | 2003 | fi |
57aa50d4 TT |
2004 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2005 | fi | |
2006 | eval ac_res=\$$3 | |
2007 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2008 | $as_echo "$ac_res" >&6; } | |
d6a4bcb5 | 2009 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
50e1e10f | 2010 | |
57aa50d4 | 2011 | } # ac_fn_c_check_type |
b0cacab0 | 2012 | |
57aa50d4 TT |
2013 | # ac_fn_c_check_func LINENO FUNC VAR |
2014 | # ---------------------------------- | |
2015 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
2016 | ac_fn_c_check_func () | |
2017 | { | |
2018 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2019 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2020 | $as_echo_n "checking for $2... " >&6; } | |
d6a4bcb5 | 2021 | if eval \${$3+:} false; then : |
57aa50d4 TT |
2022 | $as_echo_n "(cached) " >&6 |
2023 | else | |
2024 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2025 | /* end confdefs.h. */ | |
2026 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
2027 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
2028 | #define $2 innocuous_$2 | |
b0cacab0 | 2029 | |
57aa50d4 TT |
2030 | /* System header to define __stub macros and hopefully few prototypes, |
2031 | which can conflict with char $2 (); below. | |
2032 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2033 | <limits.h> exists even on freestanding compilers. */ | |
b0cacab0 | 2034 | |
57aa50d4 TT |
2035 | #ifdef __STDC__ |
2036 | # include <limits.h> | |
2037 | #else | |
2038 | # include <assert.h> | |
2039 | #endif | |
a04eba3f | 2040 | |
57aa50d4 | 2041 | #undef $2 |
07a0db15 | 2042 | |
57aa50d4 TT |
2043 | /* Override any GCC internal prototype to avoid an error. |
2044 | Use char because int might match the return type of a GCC | |
2045 | builtin and then its argument prototype would still apply. */ | |
2046 | #ifdef __cplusplus | |
2047 | extern "C" | |
2048 | #endif | |
2049 | char $2 (); | |
2050 | /* The GNU C library defines this for functions which it implements | |
2051 | to always fail with ENOSYS. Some functions are actually named | |
2052 | something starting with __ and the normal name is an alias. */ | |
2053 | #if defined __stub_$2 || defined __stub___$2 | |
2054 | choke me | |
2055 | #endif | |
74becf3c | 2056 | |
57aa50d4 TT |
2057 | int |
2058 | main () | |
2059 | { | |
2060 | return $2 (); | |
2061 | ; | |
2062 | return 0; | |
2063 | } | |
2064 | _ACEOF | |
2065 | if ac_fn_c_try_link "$LINENO"; then : | |
2066 | eval "$3=yes" | |
2067 | else | |
2068 | eval "$3=no" | |
2069 | fi | |
2070 | rm -f core conftest.err conftest.$ac_objext \ | |
2071 | conftest$ac_exeext conftest.$ac_ext | |
2072 | fi | |
2073 | eval ac_res=\$$3 | |
2074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2075 | $as_echo "$ac_res" >&6; } | |
d6a4bcb5 | 2076 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
93636bde | 2077 | |
57aa50d4 | 2078 | } # ac_fn_c_check_func |
93636bde | 2079 | |
93613951 TT |
2080 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES |
2081 | # --------------------------------------------- | |
2082 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR | |
d1154eb4 | 2083 | # accordingly. |
93613951 | 2084 | ac_fn_c_check_decl () |
d1154eb4 TT |
2085 | { |
2086 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
93613951 TT |
2087 | as_decl_name=`echo $2|sed 's/ *(.*//'` |
2088 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | |
2089 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | |
2090 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | |
d6a4bcb5 | 2091 | if eval \${$3+:} false; then : |
d1154eb4 | 2092 | $as_echo_n "(cached) " >&6 |
d1154eb4 | 2093 | else |
93613951 | 2094 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d1154eb4 TT |
2095 | /* end confdefs.h. */ |
2096 | $4 | |
93613951 TT |
2097 | int |
2098 | main () | |
2099 | { | |
2100 | #ifndef $as_decl_name | |
2101 | #ifdef __cplusplus | |
2102 | (void) $as_decl_use; | |
2103 | #else | |
2104 | (void) $as_decl_name; | |
2105 | #endif | |
2106 | #endif | |
2107 | ||
2108 | ; | |
2109 | return 0; | |
2110 | } | |
d1154eb4 TT |
2111 | _ACEOF |
2112 | if ac_fn_c_try_compile "$LINENO"; then : | |
93613951 | 2113 | eval "$3=yes" |
d1154eb4 | 2114 | else |
93613951 | 2115 | eval "$3=no" |
d1154eb4 TT |
2116 | fi |
2117 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d1154eb4 TT |
2118 | fi |
2119 | eval ac_res=\$$3 | |
2120 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2121 | $as_echo "$ac_res" >&6; } | |
d6a4bcb5 | 2122 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
d1154eb4 | 2123 | |
93613951 | 2124 | } # ac_fn_c_check_decl |
d1154eb4 | 2125 | |
57aa50d4 TT |
2126 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
2127 | # -------------------------------------------- | |
2128 | # Tries to find the compile-time value of EXPR in a program that includes | |
2129 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | |
2130 | # computed | |
2131 | ac_fn_c_compute_int () | |
2132 | { | |
2133 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2134 | if test "$cross_compiling" = yes; then | |
2135 | # Depending upon the size, compute the lo and hi bounds. | |
2136 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2137 | /* end confdefs.h. */ | |
2138 | $4 | |
2139 | int | |
2140 | main () | |
2141 | { | |
2142 | static int test_array [1 - 2 * !(($2) >= 0)]; | |
d6a4bcb5 TB |
2143 | test_array [0] = 0; |
2144 | return test_array [0]; | |
93636bde | 2145 | |
57aa50d4 TT |
2146 | ; |
2147 | return 0; | |
2148 | } | |
2149 | _ACEOF | |
2150 | if ac_fn_c_try_compile "$LINENO"; then : | |
2151 | ac_lo=0 ac_mid=0 | |
2152 | while :; do | |
2153 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2154 | /* end confdefs.h. */ | |
2155 | $4 | |
2156 | int | |
2157 | main () | |
2158 | { | |
2159 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
d6a4bcb5 TB |
2160 | test_array [0] = 0; |
2161 | return test_array [0]; | |
93636bde | 2162 | |
57aa50d4 TT |
2163 | ; |
2164 | return 0; | |
2165 | } | |
2166 | _ACEOF | |
2167 | if ac_fn_c_try_compile "$LINENO"; then : | |
2168 | ac_hi=$ac_mid; break | |
2169 | else | |
2170 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val | |
2171 | if test $ac_lo -le $ac_mid; then | |
2172 | ac_lo= ac_hi= | |
2173 | break | |
2174 | fi | |
2175 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | |
b0cacab0 | 2176 | fi |
57aa50d4 TT |
2177 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2178 | done | |
2179 | else | |
2180 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2181 | /* end confdefs.h. */ | |
2182 | $4 | |
2183 | int | |
2184 | main () | |
2185 | { | |
2186 | static int test_array [1 - 2 * !(($2) < 0)]; | |
d6a4bcb5 TB |
2187 | test_array [0] = 0; |
2188 | return test_array [0]; | |
e1052144 | 2189 | |
57aa50d4 TT |
2190 | ; |
2191 | return 0; | |
2192 | } | |
2193 | _ACEOF | |
2194 | if ac_fn_c_try_compile "$LINENO"; then : | |
2195 | ac_hi=-1 ac_mid=-1 | |
2196 | while :; do | |
2197 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2198 | /* end confdefs.h. */ | |
2199 | $4 | |
2200 | int | |
2201 | main () | |
2202 | { | |
2203 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | |
d6a4bcb5 TB |
2204 | test_array [0] = 0; |
2205 | return test_array [0]; | |
93636bde | 2206 | |
57aa50d4 TT |
2207 | ; |
2208 | return 0; | |
2209 | } | |
2210 | _ACEOF | |
2211 | if ac_fn_c_try_compile "$LINENO"; then : | |
2212 | ac_lo=$ac_mid; break | |
93636bde | 2213 | else |
57aa50d4 TT |
2214 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val |
2215 | if test $ac_mid -le $ac_hi; then | |
2216 | ac_lo= ac_hi= | |
2217 | break | |
2218 | fi | |
2219 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | |
93636bde | 2220 | fi |
57aa50d4 TT |
2221 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2222 | done | |
2223 | else | |
2224 | ac_lo= ac_hi= | |
2225 | fi | |
2226 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2227 | fi | |
2228 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2229 | # Binary search between lo and hi bounds. | |
2230 | while test "x$ac_lo" != "x$ac_hi"; do | |
2231 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | |
2232 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2233 | /* end confdefs.h. */ | |
2234 | $4 | |
2235 | int | |
2236 | main () | |
2237 | { | |
2238 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
d6a4bcb5 TB |
2239 | test_array [0] = 0; |
2240 | return test_array [0]; | |
93636bde | 2241 | |
57aa50d4 TT |
2242 | ; |
2243 | return 0; | |
2244 | } | |
2245 | _ACEOF | |
2246 | if ac_fn_c_try_compile "$LINENO"; then : | |
2247 | ac_hi=$ac_mid | |
2248 | else | |
2249 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val | |
2250 | fi | |
2251 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2252 | done | |
2253 | case $ac_lo in #(( | |
2254 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | |
2255 | '') ac_retval=1 ;; | |
927566a3 | 2256 | esac |
57aa50d4 TT |
2257 | else |
2258 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2259 | /* end confdefs.h. */ | |
2260 | $4 | |
2261 | static long int longval () { return $2; } | |
2262 | static unsigned long int ulongval () { return $2; } | |
2263 | #include <stdio.h> | |
2264 | #include <stdlib.h> | |
2265 | int | |
2266 | main () | |
2267 | { | |
927566a3 | 2268 | |
57aa50d4 TT |
2269 | FILE *f = fopen ("conftest.val", "w"); |
2270 | if (! f) | |
2271 | return 1; | |
2272 | if (($2) < 0) | |
2273 | { | |
2274 | long int i = longval (); | |
2275 | if (i != ($2)) | |
2276 | return 1; | |
2277 | fprintf (f, "%ld", i); | |
2278 | } | |
2279 | else | |
2280 | { | |
2281 | unsigned long int i = ulongval (); | |
2282 | if (i != ($2)) | |
2283 | return 1; | |
2284 | fprintf (f, "%lu", i); | |
2285 | } | |
2286 | /* Do not output a trailing newline, as this causes \r\n confusion | |
2287 | on some platforms. */ | |
2288 | return ferror (f) || fclose (f) != 0; | |
93636bde | 2289 | |
57aa50d4 TT |
2290 | ; |
2291 | return 0; | |
2292 | } | |
2293 | _ACEOF | |
2294 | if ac_fn_c_try_run "$LINENO"; then : | |
2295 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | |
2296 | else | |
2297 | ac_retval=1 | |
2298 | fi | |
2299 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
2300 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
2301 | rm -f conftest.val | |
93636bde | 2302 | |
57aa50d4 | 2303 | fi |
d6a4bcb5 | 2304 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
61ef2474 | 2305 | as_fn_set_status $ac_retval |
927566a3 | 2306 | |
57aa50d4 | 2307 | } # ac_fn_c_compute_int |
b0cacab0 | 2308 | |
57aa50d4 TT |
2309 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
2310 | # ---------------------------------------------------- | |
2311 | # Tries to find if the field MEMBER exists in type AGGR, after including | |
2312 | # INCLUDES, setting cache variable VAR accordingly. | |
2313 | ac_fn_c_check_member () | |
2314 | { | |
2315 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2316 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 | |
2317 | $as_echo_n "checking for $2.$3... " >&6; } | |
d6a4bcb5 | 2318 | if eval \${$4+:} false; then : |
39fd3d4f | 2319 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 2320 | else |
57aa50d4 TT |
2321 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2322 | /* end confdefs.h. */ | |
2323 | $5 | |
2324 | int | |
2325 | main () | |
2326 | { | |
2327 | static $2 ac_aggr; | |
2328 | if (ac_aggr.$3) | |
2329 | return 0; | |
2330 | ; | |
2331 | return 0; | |
2332 | } | |
2333 | _ACEOF | |
2334 | if ac_fn_c_try_compile "$LINENO"; then : | |
2335 | eval "$4=yes" | |
2336 | else | |
2337 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2338 | /* end confdefs.h. */ | |
2339 | $5 | |
2340 | int | |
2341 | main () | |
2342 | { | |
2343 | static $2 ac_aggr; | |
2344 | if (sizeof ac_aggr.$3) | |
2345 | return 0; | |
2346 | ; | |
2347 | return 0; | |
2348 | } | |
2349 | _ACEOF | |
2350 | if ac_fn_c_try_compile "$LINENO"; then : | |
2351 | eval "$4=yes" | |
2352 | else | |
2353 | eval "$4=no" | |
b0cacab0 | 2354 | fi |
57aa50d4 TT |
2355 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2356 | fi | |
2357 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2358 | fi | |
2359 | eval ac_res=\$$4 | |
2360 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2361 | $as_echo "$ac_res" >&6; } | |
d6a4bcb5 | 2362 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
e1052144 | 2363 | |
57aa50d4 | 2364 | } # ac_fn_c_check_member |
57aa50d4 TT |
2365 | cat >config.log <<_ACEOF |
2366 | This file contains any messages produced by compilers while | |
2367 | running configure, to aid debugging if configure makes a mistake. | |
93636bde | 2368 | |
57aa50d4 | 2369 | It was created by $as_me, which was |
d6a4bcb5 | 2370 | generated by GNU Autoconf 2.69. Invocation command line was |
07a0db15 | 2371 | |
57aa50d4 | 2372 | $ $0 $@ |
e1052144 | 2373 | |
57aa50d4 TT |
2374 | _ACEOF |
2375 | exec 5>>config.log | |
2376 | { | |
2377 | cat <<_ASUNAME | |
2378 | ## --------- ## | |
2379 | ## Platform. ## | |
2380 | ## --------- ## | |
0b5b9f90 | 2381 | |
57aa50d4 TT |
2382 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
2383 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2384 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2385 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2386 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
0b5b9f90 | 2387 | |
57aa50d4 TT |
2388 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
2389 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
0b5b9f90 | 2390 | |
57aa50d4 TT |
2391 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
2392 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2393 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2394 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2395 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2396 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2397 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
0b5b9f90 | 2398 | |
57aa50d4 | 2399 | _ASUNAME |
b0cacab0 | 2400 | |
b0cacab0 TT |
2401 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2402 | for as_dir in $PATH | |
2403 | do | |
2404 | IFS=$as_save_IFS | |
2405 | test -z "$as_dir" && as_dir=. | |
57aa50d4 TT |
2406 | $as_echo "PATH: $as_dir" |
2407 | done | |
e1052144 | 2408 | IFS=$as_save_IFS |
b0cacab0 | 2409 | |
57aa50d4 | 2410 | } >&5 |
74becf3c | 2411 | |
57aa50d4 | 2412 | cat >&5 <<_ACEOF |
e1052144 | 2413 | |
b0cacab0 | 2414 | |
57aa50d4 TT |
2415 | ## ----------- ## |
2416 | ## Core tests. ## | |
2417 | ## ----------- ## | |
b0cacab0 | 2418 | |
57aa50d4 | 2419 | _ACEOF |
b0cacab0 | 2420 | |
57aa50d4 TT |
2421 | |
2422 | # Keep a trace of the command line. | |
2423 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2424 | # Strip out --silent because we don't want to record it for future runs. | |
2425 | # Also quote any args containing shell meta-characters. | |
2426 | # Make two passes to allow for proper duplicate-argument suppression. | |
2427 | ac_configure_args= | |
2428 | ac_configure_args0= | |
2429 | ac_configure_args1= | |
2430 | ac_must_keep_next=false | |
2431 | for ac_pass in 1 2 | |
b0cacab0 | 2432 | do |
57aa50d4 TT |
2433 | for ac_arg |
2434 | do | |
2435 | case $ac_arg in | |
2436 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2437 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2438 | | -silent | --silent | --silen | --sile | --sil) | |
2439 | continue ;; | |
2440 | *\'*) | |
2441 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2442 | esac | |
2443 | case $ac_pass in | |
2444 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2445 | 2) | |
2446 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
2447 | if test $ac_must_keep_next = true; then | |
2448 | ac_must_keep_next=false # Got value, back to normal. | |
2449 | else | |
2450 | case $ac_arg in | |
2451 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2452 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2453 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2454 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2455 | case "$ac_configure_args0 " in | |
2456 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2457 | esac | |
2458 | ;; | |
2459 | -* ) ac_must_keep_next=true ;; | |
2460 | esac | |
2461 | fi | |
2462 | as_fn_append ac_configure_args " '$ac_arg'" | |
2463 | ;; | |
2464 | esac | |
2465 | done | |
b0cacab0 | 2466 | done |
57aa50d4 TT |
2467 | { ac_configure_args0=; unset ac_configure_args0;} |
2468 | { ac_configure_args1=; unset ac_configure_args1;} | |
2469 | ||
2470 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2471 | # config.log. We remove comments because anyway the quotes in there | |
2472 | # would cause problems or look ugly. | |
2473 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2474 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2475 | trap 'exit_status=$? | |
2476 | # Save into config.log some information that might help in debugging. | |
2477 | { | |
2478 | echo | |
2479 | ||
d6a4bcb5 | 2480 | $as_echo "## ---------------- ## |
57aa50d4 | 2481 | ## Cache variables. ## |
d6a4bcb5 | 2482 | ## ---------------- ##" |
57aa50d4 TT |
2483 | echo |
2484 | # The following way of writing the cache mishandles newlines in values, | |
2485 | ( | |
2486 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2487 | eval ac_val=\$$ac_var | |
2488 | case $ac_val in #( | |
2489 | *${as_nl}*) | |
2490 | case $ac_var in #( | |
2491 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2492 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2493 | esac | |
2494 | case $ac_var in #( | |
2495 | _ | IFS | as_nl) ;; #( | |
2496 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2497 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2498 | esac ;; | |
2499 | esac | |
2500 | done | |
2501 | (set) 2>&1 | | |
2502 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2503 | *${as_nl}ac_space=\ *) | |
2504 | sed -n \ | |
2505 | "s/'\''/'\''\\\\'\'''\''/g; | |
2506 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2507 | ;; #( | |
2508 | *) | |
2509 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2510 | ;; | |
2511 | esac | | |
2512 | sort | |
2513 | ) | |
2514 | echo | |
2515 | ||
d6a4bcb5 | 2516 | $as_echo "## ----------------- ## |
57aa50d4 | 2517 | ## Output variables. ## |
d6a4bcb5 | 2518 | ## ----------------- ##" |
57aa50d4 TT |
2519 | echo |
2520 | for ac_var in $ac_subst_vars | |
2521 | do | |
2522 | eval ac_val=\$$ac_var | |
2523 | case $ac_val in | |
2524 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2525 | esac | |
2526 | $as_echo "$ac_var='\''$ac_val'\''" | |
2527 | done | sort | |
2528 | echo | |
2529 | ||
2530 | if test -n "$ac_subst_files"; then | |
d6a4bcb5 | 2531 | $as_echo "## ------------------- ## |
57aa50d4 | 2532 | ## File substitutions. ## |
d6a4bcb5 | 2533 | ## ------------------- ##" |
57aa50d4 TT |
2534 | echo |
2535 | for ac_var in $ac_subst_files | |
2536 | do | |
2537 | eval ac_val=\$$ac_var | |
2538 | case $ac_val in | |
2539 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2540 | esac | |
2541 | $as_echo "$ac_var='\''$ac_val'\''" | |
2542 | done | sort | |
2543 | echo | |
2544 | fi | |
2545 | ||
2546 | if test -s confdefs.h; then | |
d6a4bcb5 | 2547 | $as_echo "## ----------- ## |
57aa50d4 | 2548 | ## confdefs.h. ## |
d6a4bcb5 | 2549 | ## ----------- ##" |
57aa50d4 TT |
2550 | echo |
2551 | cat confdefs.h | |
2552 | echo | |
2553 | fi | |
2554 | test "$ac_signal" != 0 && | |
2555 | $as_echo "$as_me: caught signal $ac_signal" | |
2556 | $as_echo "$as_me: exit $exit_status" | |
2557 | } >&5 | |
2558 | rm -f core *.core core.conftest.* && | |
2559 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2560 | exit $exit_status | |
2561 | ' 0 | |
2562 | for ac_signal in 1 2 13 15; do | |
2563 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
b0cacab0 | 2564 | done |
57aa50d4 | 2565 | ac_signal=0 |
b0cacab0 | 2566 | |
57aa50d4 TT |
2567 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
2568 | rm -f -r conftest* confdefs.h | |
b0cacab0 | 2569 | |
57aa50d4 | 2570 | $as_echo "/* confdefs.h */" > confdefs.h |
73ae2d4a | 2571 | |
57aa50d4 TT |
2572 | # Predefined preprocessor variables. |
2573 | ||
2574 | cat >>confdefs.h <<_ACEOF | |
2575 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2576 | _ACEOF | |
2577 | ||
2578 | cat >>confdefs.h <<_ACEOF | |
2579 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2580 | _ACEOF | |
2581 | ||
2582 | cat >>confdefs.h <<_ACEOF | |
2583 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2584 | _ACEOF | |
2585 | ||
2586 | cat >>confdefs.h <<_ACEOF | |
2587 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2588 | _ACEOF | |
2589 | ||
2590 | cat >>confdefs.h <<_ACEOF | |
2591 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2592 | _ACEOF | |
2593 | ||
2594 | cat >>confdefs.h <<_ACEOF | |
2595 | #define PACKAGE_URL "$PACKAGE_URL" | |
2596 | _ACEOF | |
2597 | ||
2598 | ||
2599 | # Let the site file select an alternate cache file if it wants to. | |
2600 | # Prefer an explicitly selected file to automatically selected ones. | |
2601 | ac_site_file1=NONE | |
2602 | ac_site_file2=NONE | |
2603 | if test -n "$CONFIG_SITE"; then | |
d6a4bcb5 TB |
2604 | # We do not want a PATH search for config.site. |
2605 | case $CONFIG_SITE in #(( | |
2606 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2607 | */*) ac_site_file1=$CONFIG_SITE;; | |
2608 | *) ac_site_file1=./$CONFIG_SITE;; | |
2609 | esac | |
57aa50d4 TT |
2610 | elif test "x$prefix" != xNONE; then |
2611 | ac_site_file1=$prefix/share/config.site | |
2612 | ac_site_file2=$prefix/etc/config.site | |
73ae2d4a | 2613 | else |
57aa50d4 TT |
2614 | ac_site_file1=$ac_default_prefix/share/config.site |
2615 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2616 | fi | |
2617 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
b0cacab0 | 2618 | do |
57aa50d4 | 2619 | test "x$ac_site_file" = xNONE && continue |
61ef2474 | 2620 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
57aa50d4 TT |
2621 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2622 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2623 | sed 's/^/| /' "$ac_site_file" >&5 | |
d6a4bcb5 TB |
2624 | . "$ac_site_file" \ |
2625 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2626 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2627 | as_fn_error $? "failed to load site script $ac_site_file | |
2628 | See \`config.log' for more details" "$LINENO" 5; } | |
b0cacab0 TT |
2629 | fi |
2630 | done | |
b0cacab0 | 2631 | |
57aa50d4 | 2632 | if test -r "$cache_file"; then |
61ef2474 TT |
2633 | # Some versions of bash will fail to source /dev/null (special files |
2634 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2635 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
57aa50d4 TT |
2636 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2637 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2638 | case $cache_file in | |
2639 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2640 | *) . "./$cache_file";; | |
2641 | esac | |
73ae2d4a | 2642 | fi |
57aa50d4 TT |
2643 | else |
2644 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
2645 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2646 | >$cache_file | |
73ae2d4a | 2647 | fi |
57aa50d4 | 2648 | |
93613951 | 2649 | gt_needs="$gt_needs " |
61ef2474 TT |
2650 | as_fn_append ac_header_list " stdlib.h" |
2651 | as_fn_append ac_header_list " unistd.h" | |
2652 | as_fn_append ac_header_list " sys/param.h" | |
93613951 | 2653 | as_fn_append ac_func_list " symlink" |
57aa50d4 TT |
2654 | # Check that the precious variables saved in the cache have kept the same |
2655 | # value. | |
2656 | ac_cache_corrupted=false | |
2657 | for ac_var in $ac_precious_vars; do | |
2658 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2659 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2660 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2661 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2662 | case $ac_old_set,$ac_new_set in | |
2663 | set,) | |
2664 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2665 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2666 | ac_cache_corrupted=: ;; | |
2667 | ,set) | |
2668 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2669 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2670 | ac_cache_corrupted=: ;; | |
2671 | ,);; | |
2672 | *) | |
2673 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
2674 | # differences in whitespace do not lead to failure. | |
2675 | ac_old_val_w=`echo x $ac_old_val` | |
2676 | ac_new_val_w=`echo x $ac_new_val` | |
2677 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2678 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2679 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2680 | ac_cache_corrupted=: | |
2681 | else | |
2682 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2683 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2684 | eval $ac_var=\$ac_old_val | |
2685 | fi | |
2686 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2687 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2688 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2689 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2690 | fi;; | |
2691 | esac | |
2692 | # Pass precious variables to config.status. | |
2693 | if test "$ac_new_set" = set; then | |
2694 | case $ac_new_val in | |
2695 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2696 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2697 | esac | |
2698 | case " $ac_configure_args " in | |
2699 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2700 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2701 | esac | |
2702 | fi | |
2703 | done | |
2704 | if $ac_cache_corrupted; then | |
2705 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2706 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2707 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2708 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
d6a4bcb5 | 2709 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
73ae2d4a | 2710 | fi |
57aa50d4 TT |
2711 | ## -------------------- ## |
2712 | ## Main body of script. ## | |
2713 | ## -------------------- ## | |
2714 | ||
2715 | ac_ext=c | |
2716 | ac_cpp='$CPP $CPPFLAGS' | |
2717 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2718 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2719 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2720 | ||
2721 | ||
2722 | ||
2723 | ac_aux_dir= | |
2724 | for ac_dir in config "$srcdir"/config; do | |
d6a4bcb5 TB |
2725 | if test -f "$ac_dir/install-sh"; then |
2726 | ac_aux_dir=$ac_dir | |
2727 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2728 | break | |
2729 | elif test -f "$ac_dir/install.sh"; then | |
2730 | ac_aux_dir=$ac_dir | |
2731 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2732 | break | |
2733 | elif test -f "$ac_dir/shtool"; then | |
2734 | ac_aux_dir=$ac_dir | |
2735 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2736 | break | |
2737 | fi | |
57aa50d4 TT |
2738 | done |
2739 | if test -z "$ac_aux_dir"; then | |
d6a4bcb5 | 2740 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5 |
73ae2d4a | 2741 | fi |
57aa50d4 TT |
2742 | |
2743 | # These three variables are undocumented and unsupported, | |
2744 | # and are intended to be withdrawn in a future Autoconf release. | |
2745 | # They can cause serious problems if a builder's source tree is in a directory | |
2746 | # whose full name contains unusual characters. | |
2747 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2748 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2749 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2750 | ||
2751 | ||
d1154eb4 TT |
2752 | ac_config_headers="$ac_config_headers lib/config.h" |
2753 | ||
2754 | ||
57aa50d4 TT |
2755 | MCONFIG=./MCONFIG |
2756 | ||
2757 | BINARY_TYPE=bin | |
2758 | E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \ | |
2759 | | awk '{print $3}' | tr \" " " | awk '{print $1}'` | |
2760 | DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \ | |
2761 | | tr \" " "` | |
2ab53829 | 2762 | E2FSPROGS_DAY=$(echo $DATE | awk -F- '{print $1}' | sed -e '/^[1-9]$/s/^/0/') |
57aa50d4 TT |
2763 | MONTH=`echo $DATE | awk -F- '{print $2}'` |
2764 | YEAR=`echo $DATE | awk -F- '{print $3}'` | |
2765 | ||
2766 | if expr $YEAR ">" 1900 > /dev/null ; then | |
2767 | E2FSPROGS_YEAR=$YEAR | |
2768 | elif expr $YEAR ">" 90 >/dev/null ; then | |
2769 | E2FSPROGS_YEAR=19$YEAR | |
73ae2d4a | 2770 | else |
57aa50d4 TT |
2771 | E2FSPROGS_YEAR=20$YEAR |
2772 | fi | |
2773 | ||
2774 | case $MONTH in | |
2775 | Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;; | |
2776 | Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;; | |
2777 | Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;; | |
2778 | Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;; | |
2779 | May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;; | |
2780 | Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;; | |
2781 | Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;; | |
2782 | Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;; | |
2783 | Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;; | |
2784 | Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;; | |
2785 | Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;; | |
2786 | Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;; | |
2787 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5 | |
2788 | $as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;; | |
2789 | esac | |
2790 | ||
2791 | base_ver=`echo $E2FSPROGS_VERSION | \ | |
2792 | sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'` | |
2793 | ||
2794 | date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY} | |
2795 | ||
2796 | case $E2FSPROGS_VERSION in | |
2797 | *-WIP|pre-*) | |
2ab53829 | 2798 | E2FSPROGS_PKGVER="$base_ver~WIP.$date_spec" |
57aa50d4 TT |
2799 | ;; |
2800 | *) | |
2801 | E2FSPROGS_PKGVER="$base_ver" | |
2802 | ;; | |
2803 | esac | |
2804 | ||
2805 | unset DATE MONTH YEAR base_ver pre_vers date_spec | |
2806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5 | |
2807 | $as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; } | |
2808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5 | |
2809 | $as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; } | |
2810 | ||
2811 | ||
2812 | ||
2813 | ||
2814 | ||
6c59a665 TT |
2815 | WITH_DIET_LIBC= |
2816 | ||
2817 | # Check whether --with-diet-libc was given. | |
2818 | if test "${with_diet_libc+set}" = set; then : | |
2819 | withval=$with_diet_libc; CC="diet cc -nostdinc" | |
2820 | WITH_DIET_LIBC=yes | |
2821 | if test -z "$LIBS" | |
2822 | then | |
2823 | LIBS="-lcompat" | |
2824 | else | |
2825 | LIBS="$LIBS -lcompat" | |
2826 | fi | |
2827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5 | |
2828 | $as_echo "CC=$CC" >&6; } | |
2829 | fi | |
57aa50d4 TT |
2830 | # Make sure we can run config.sub. |
2831 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
d6a4bcb5 | 2832 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
57aa50d4 TT |
2833 | |
2834 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2835 | $as_echo_n "checking build system type... " >&6; } | |
d6a4bcb5 | 2836 | if ${ac_cv_build+:} false; then : |
57aa50d4 TT |
2837 | $as_echo_n "(cached) " >&6 |
2838 | else | |
2839 | ac_build_alias=$build_alias | |
2840 | test "x$ac_build_alias" = x && | |
2841 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2842 | test "x$ac_build_alias" = x && | |
d6a4bcb5 | 2843 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
57aa50d4 | 2844 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
d6a4bcb5 | 2845 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
57aa50d4 | 2846 | |
73ae2d4a | 2847 | fi |
57aa50d4 TT |
2848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
2849 | $as_echo "$ac_cv_build" >&6; } | |
2850 | case $ac_cv_build in | |
2851 | *-*-*) ;; | |
d6a4bcb5 | 2852 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
57aa50d4 TT |
2853 | esac |
2854 | build=$ac_cv_build | |
2855 | ac_save_IFS=$IFS; IFS='-' | |
2856 | set x $ac_cv_build | |
2857 | shift | |
2858 | build_cpu=$1 | |
2859 | build_vendor=$2 | |
2860 | shift; shift | |
2861 | # Remember, the first character of IFS is used to create $*, | |
2862 | # except with old shells: | |
2863 | build_os=$* | |
2864 | IFS=$ac_save_IFS | |
2865 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
73ae2d4a | 2866 | |
e1052144 | 2867 | |
57aa50d4 TT |
2868 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2869 | $as_echo_n "checking host system type... " >&6; } | |
d6a4bcb5 | 2870 | if ${ac_cv_host+:} false; then : |
57aa50d4 TT |
2871 | $as_echo_n "(cached) " >&6 |
2872 | else | |
2873 | if test "x$host_alias" = x; then | |
2874 | ac_cv_host=$ac_cv_build | |
2875 | else | |
2876 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
d6a4bcb5 | 2877 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
b0cacab0 | 2878 | fi |
57aa50d4 TT |
2879 | |
2880 | fi | |
2881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
2882 | $as_echo "$ac_cv_host" >&6; } | |
2883 | case $ac_cv_host in | |
2884 | *-*-*) ;; | |
d6a4bcb5 | 2885 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
57aa50d4 TT |
2886 | esac |
2887 | host=$ac_cv_host | |
2888 | ac_save_IFS=$IFS; IFS='-' | |
2889 | set x $ac_cv_host | |
2890 | shift | |
2891 | host_cpu=$1 | |
2892 | host_vendor=$2 | |
2893 | shift; shift | |
2894 | # Remember, the first character of IFS is used to create $*, | |
2895 | # except with old shells: | |
2896 | host_os=$* | |
2897 | IFS=$ac_save_IFS | |
2898 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
2899 | ||
2900 | ||
2901 | DLOPEN_LIB='' | |
2902 | ac_ext=c | |
2903 | ac_cpp='$CPP $CPPFLAGS' | |
2904 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2905 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2906 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2907 | if test -n "$ac_tool_prefix"; then | |
2908 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2909 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
2910 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
39fd3d4f | 2911 | $as_echo_n "checking for $ac_word... " >&6; } |
d6a4bcb5 | 2912 | if ${ac_cv_prog_CC+:} false; then : |
39fd3d4f | 2913 | $as_echo_n "(cached) " >&6 |
73ae2d4a TT |
2914 | else |
2915 | if test -n "$CC"; then | |
2916 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2917 | else | |
b0cacab0 TT |
2918 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2919 | for as_dir in $PATH | |
2920 | do | |
2921 | IFS=$as_save_IFS | |
2922 | test -z "$as_dir" && as_dir=. | |
57aa50d4 | 2923 | for ac_exec_ext in '' $ac_executable_extensions; do |
d6a4bcb5 | 2924 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
57aa50d4 TT |
2925 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
2926 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
b0cacab0 TT |
2927 | break 2 |
2928 | fi | |
2929 | done | |
57aa50d4 | 2930 | done |
e1052144 | 2931 | IFS=$as_save_IFS |
b0cacab0 | 2932 | |
73ae2d4a TT |
2933 | fi |
2934 | fi | |
b0cacab0 | 2935 | CC=$ac_cv_prog_CC |
73ae2d4a | 2936 | if test -n "$CC"; then |
57aa50d4 | 2937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
39fd3d4f | 2938 | $as_echo "$CC" >&6; } |
73ae2d4a | 2939 | else |
57aa50d4 | 2940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
39fd3d4f | 2941 | $as_echo "no" >&6; } |
73ae2d4a | 2942 | fi |
b0cacab0 | 2943 | |
e1052144 | 2944 | |
b0cacab0 | 2945 | fi |
57aa50d4 | 2946 | if test -z "$ac_cv_prog_CC"; then |
b0cacab0 | 2947 | ac_ct_CC=$CC |
57aa50d4 TT |
2948 | # Extract the first word of "gcc", so it can be a program name with args. |
2949 | set dummy gcc; ac_word=$2 | |
2950 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
39fd3d4f | 2951 | $as_echo_n "checking for $ac_word... " >&6; } |
d6a4bcb5 | 2952 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
39fd3d4f | 2953 | $as_echo_n "(cached) " >&6 |
b0cacab0 TT |
2954 | else |
2955 | if test -n "$ac_ct_CC"; then | |
2956 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2957 | else | |
2958 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2959 | for as_dir in $PATH | |
2960 | do | |
2961 | IFS=$as_save_IFS | |
2962 | test -z "$as_dir" && as_dir=. | |
57aa50d4 | 2963 | for ac_exec_ext in '' $ac_executable_extensions; do |
d6a4bcb5 | 2964 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
57aa50d4 TT |
2965 | ac_cv_prog_ac_ct_CC="gcc" |
2966 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
b0cacab0 | 2967 | break 2 |
93636bde | 2968 | fi |
b0cacab0 | 2969 | done |
57aa50d4 | 2970 | done |
e1052144 | 2971 | IFS=$as_save_IFS |
b0cacab0 TT |
2972 | |
2973 | fi | |
2974 | fi | |
2975 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2976 | if test -n "$ac_ct_CC"; then | |
57aa50d4 | 2977 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
39fd3d4f | 2978 | $as_echo "$ac_ct_CC" >&6; } |
b0cacab0 | 2979 | else |
57aa50d4 | 2980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
39fd3d4f | 2981 | $as_echo "no" >&6; } |
07a0db15 | 2982 | fi |
73ae2d4a | 2983 | |
e1052144 TT |
2984 | if test "x$ac_ct_CC" = x; then |
2985 | CC="" | |
2986 | else | |
2987 | case $cross_compiling:$ac_tool_warned in | |
2988 | yes:) | |
57aa50d4 | 2989 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
39fd3d4f | 2990 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
e1052144 TT |
2991 | ac_tool_warned=yes ;; |
2992 | esac | |
2993 | CC=$ac_ct_CC | |
2994 | fi | |
57aa50d4 TT |
2995 | else |
2996 | CC="$ac_cv_prog_CC" | |
b0cacab0 TT |
2997 | fi |
2998 | ||
57aa50d4 TT |
2999 | if test -z "$CC"; then |
3000 | if test -n "$ac_tool_prefix"; then | |
3001 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
3002 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
3003 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3004 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6a4bcb5 | 3005 | if ${ac_cv_prog_CC+:} false; then : |
57aa50d4 TT |
3006 | $as_echo_n "(cached) " >&6 |
3007 | else | |
3008 | if test -n "$CC"; then | |
3009 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3010 | else | |
3011 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3012 | for as_dir in $PATH | |
3013 | do | |
3014 | IFS=$as_save_IFS | |
3015 | test -z "$as_dir" && as_dir=. | |
3016 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d6a4bcb5 | 3017 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
57aa50d4 TT |
3018 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
3019 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3020 | break 2 | |
3021 | fi | |
3022 | done | |
3023 | done | |
3024 | IFS=$as_save_IFS | |
3025 | ||
3026 | fi | |
3027 | fi | |
3028 | CC=$ac_cv_prog_CC | |
3029 | if test -n "$CC"; then | |
3030 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3031 | $as_echo "$CC" >&6; } | |
3032 | else | |
3033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3034 | $as_echo "no" >&6; } | |
3035 | fi | |
3036 | ||
3037 | ||
3038 | fi | |
3039 | fi | |
3040 | if test -z "$CC"; then | |
3041 | # Extract the first word of "cc", so it can be a program name with args. | |
3042 | set dummy cc; ac_word=$2 | |
3043 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3044 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6a4bcb5 | 3045 | if ${ac_cv_prog_CC+:} false; then : |
57aa50d4 TT |
3046 | $as_echo_n "(cached) " >&6 |
3047 | else | |
3048 | if test -n "$CC"; then | |
3049 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3050 | else | |
3051 | ac_prog_rejected=no | |
3052 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3053 | for as_dir in $PATH | |
3054 | do | |
3055 | IFS=$as_save_IFS | |
3056 | test -z "$as_dir" && as_dir=. | |
3057 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d6a4bcb5 | 3058 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
57aa50d4 TT |
3059 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
3060 | ac_prog_rejected=yes | |
3061 | continue | |
3062 | fi | |
3063 | ac_cv_prog_CC="cc" | |
3064 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3065 | break 2 | |
3066 | fi | |
3067 | done | |
3068 | done | |
3069 | IFS=$as_save_IFS | |
3070 | ||
3071 | if test $ac_prog_rejected = yes; then | |
3072 | # We found a bogon in the path, so make sure we never use it. | |
3073 | set dummy $ac_cv_prog_CC | |
3074 | shift | |
3075 | if test $# != 0; then | |
3076 | # We chose a different compiler from the bogus one. | |
3077 | # However, it has the same basename, so the bogon will be chosen | |
3078 | # first if we set CC to just the basename; use the full file name. | |
3079 | shift | |
3080 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3081 | fi | |
3082 | fi | |
3083 | fi | |
3084 | fi | |
3085 | CC=$ac_cv_prog_CC | |
3086 | if test -n "$CC"; then | |
3087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3088 | $as_echo "$CC" >&6; } | |
3089 | else | |
3090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3091 | $as_echo "no" >&6; } | |
3092 | fi | |
3093 | ||
3094 | ||
3095 | fi | |
3096 | if test -z "$CC"; then | |
3097 | if test -n "$ac_tool_prefix"; then | |
3098 | for ac_prog in cl.exe | |
3099 | do | |
3100 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3101 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3102 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3103 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6a4bcb5 | 3104 | if ${ac_cv_prog_CC+:} false; then : |
57aa50d4 TT |
3105 | $as_echo_n "(cached) " >&6 |
3106 | else | |
3107 | if test -n "$CC"; then | |
3108 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3109 | else | |
3110 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3111 | for as_dir in $PATH | |
3112 | do | |
3113 | IFS=$as_save_IFS | |
3114 | test -z "$as_dir" && as_dir=. | |
3115 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d6a4bcb5 | 3116 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
57aa50d4 TT |
3117 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
3118 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3119 | break 2 | |
3120 | fi | |
3121 | done | |
3122 | done | |
3123 | IFS=$as_save_IFS | |
3124 | ||
3125 | fi | |
3126 | fi | |
3127 | CC=$ac_cv_prog_CC | |
3128 | if test -n "$CC"; then | |
3129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3130 | $as_echo "$CC" >&6; } | |
3131 | else | |
3132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3133 | $as_echo "no" >&6; } | |
3134 | fi | |
3135 | ||
3136 | ||
3137 | test -n "$CC" && break | |
3138 | done | |
3139 | fi | |
3140 | if test -z "$CC"; then | |
3141 | ac_ct_CC=$CC | |
3142 | for ac_prog in cl.exe | |
3143 | do | |
3144 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3145 | set dummy $ac_prog; ac_word=$2 | |
3146 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3147 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6a4bcb5 | 3148 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
57aa50d4 TT |
3149 | $as_echo_n "(cached) " >&6 |
3150 | else | |
3151 | if test -n "$ac_ct_CC"; then | |
3152 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3153 | else | |
3154 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3155 | for as_dir in $PATH | |
3156 | do | |
3157 | IFS=$as_save_IFS | |
3158 | test -z "$as_dir" && as_dir=. | |
3159 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d6a4bcb5 | 3160 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
57aa50d4 TT |
3161 | ac_cv_prog_ac_ct_CC="$ac_prog" |
3162 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3163 | break 2 | |
3164 | fi | |
3165 | done | |
3166 | done | |
3167 | IFS=$as_save_IFS | |
3168 | ||
3169 | fi | |
3170 | fi | |
3171 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3172 | if test -n "$ac_ct_CC"; then | |
3173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3174 | $as_echo "$ac_ct_CC" >&6; } | |
3175 | else | |
3176 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3177 | $as_echo "no" >&6; } | |
3178 | fi | |
3179 | ||
3180 | ||
3181 | test -n "$ac_ct_CC" && break | |
3182 | done | |
3183 | ||
3184 | if test "x$ac_ct_CC" = x; then | |
3185 | CC="" | |
3186 | else | |
3187 | case $cross_compiling:$ac_tool_warned in | |
3188 | yes:) | |
3189 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3190 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3191 | ac_tool_warned=yes ;; | |
3192 | esac | |
3193 | CC=$ac_ct_CC | |
3194 | fi | |
3195 | fi | |
3196 | ||
3197 | fi | |
3198 | ||
3199 | ||
3200 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3201 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d6a4bcb5 TB |
3202 | as_fn_error $? "no acceptable C compiler found in \$PATH |
3203 | See \`config.log' for more details" "$LINENO" 5; } | |
b0cacab0 TT |
3204 | |
3205 | # Provide some information about the compiler. | |
57aa50d4 | 3206 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
39fd3d4f SJR |
3207 | set X $ac_compile |
3208 | ac_compiler=$2 | |
57aa50d4 TT |
3209 | for ac_option in --version -v -V -qversion; do |
3210 | { { ac_try="$ac_compiler $ac_option >&5" | |
e1052144 TT |
3211 | case "(($ac_try" in |
3212 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3213 | *) ac_try_echo=$ac_try;; | |
3214 | esac | |
57aa50d4 TT |
3215 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3216 | $as_echo "$ac_try_echo"; } >&5 | |
3217 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
b0cacab0 | 3218 | ac_status=$? |
57aa50d4 TT |
3219 | if test -s conftest.err; then |
3220 | sed '10a\ | |
3221 | ... rest of stderr output deleted ... | |
3222 | 10q' conftest.err >conftest.er1 | |
3223 | cat conftest.er1 >&5 | |
57aa50d4 | 3224 | fi |
61ef2474 | 3225 | rm -f conftest.er1 conftest.err |
57aa50d4 TT |
3226 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3227 | test $ac_status = 0; } | |
3228 | done | |
b0cacab0 | 3229 | |
57aa50d4 | 3230 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b0cacab0 | 3231 | /* end confdefs.h. */ |
61ef2474 | 3232 | |
b0cacab0 TT |
3233 | int |
3234 | main () | |
3235 | { | |
3236 | ||
3237 | ; | |
3238 | return 0; | |
3239 | } | |
3240 | _ACEOF | |
3241 | ac_clean_files_save=$ac_clean_files | |
61ef2474 | 3242 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
b0cacab0 TT |
3243 | # Try to create an executable without -o first, disregard a.out. |
3244 | # It will help us diagnose broken compilers, and finding out an intuition | |
3245 | # of exeext. | |
61ef2474 TT |
3246 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
3247 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
39fd3d4f SJR |
3248 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
3249 | ||
3250 | # The possible output files: | |
3251 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3252 | ||
e1052144 TT |
3253 | ac_rmfiles= |
3254 | for ac_file in $ac_files | |
3255 | do | |
3256 | case $ac_file in | |
39fd3d4f | 3257 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
e1052144 TT |
3258 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
3259 | esac | |
3260 | done | |
3261 | rm -f $ac_rmfiles | |
3262 | ||
57aa50d4 | 3263 | if { { ac_try="$ac_link_default" |
e1052144 TT |
3264 | case "(($ac_try" in |
3265 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3266 | *) ac_try_echo=$ac_try;; | |
3267 | esac | |
57aa50d4 TT |
3268 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3269 | $as_echo "$ac_try_echo"; } >&5 | |
e1052144 | 3270 | (eval "$ac_link_default") 2>&5 |
b0cacab0 | 3271 | ac_status=$? |
57aa50d4 TT |
3272 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3273 | test $ac_status = 0; }; then : | |
e1052144 TT |
3274 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
3275 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3276 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3277 | # so that the user can short-circuit this test for compilers unknown to | |
3278 | # Autoconf. | |
29a5deed | 3279 | for ac_file in $ac_files '' |
b0cacab0 TT |
3280 | do |
3281 | test -f "$ac_file" || continue | |
3282 | case $ac_file in | |
39fd3d4f | 3283 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
b0cacab0 TT |
3284 | ;; |
3285 | [ab].out ) | |
3286 | # We found the default executable, but exeext='' is most | |
3287 | # certainly right. | |
3288 | break;; | |
3289 | *.* ) | |
57aa50d4 | 3290 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
e1052144 TT |
3291 | then :; else |
3292 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3293 | fi | |
3294 | # We set ac_cv_exeext here because the later test for it is not | |
3295 | # safe: cross compilers may not add the suffix if given an `-o' | |
3296 | # argument, so we may need to know it at that point already. | |
3297 | # Even if this section looks crufty: it has the advantage of | |
3298 | # actually working. | |
b0cacab0 TT |
3299 | break;; |
3300 | * ) | |
3301 | break;; | |
3302 | esac | |
3303 | done | |
e1052144 TT |
3304 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
3305 | ||
b0cacab0 | 3306 | else |
29a5deed TT |
3307 | ac_file='' |
3308 | fi | |
57aa50d4 | 3309 | if test -z "$ac_file"; then : |
61ef2474 TT |
3310 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3311 | $as_echo "no" >&6; } | |
3312 | $as_echo "$as_me: failed program was:" >&5 | |
b0cacab0 TT |
3313 | sed 's/^/| /' conftest.$ac_ext >&5 |
3314 | ||
57aa50d4 | 3315 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
39fd3d4f | 3316 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
d6a4bcb5 TB |
3317 | as_fn_error 77 "C compiler cannot create executables |
3318 | See \`config.log' for more details" "$LINENO" 5; } | |
61ef2474 TT |
3319 | else |
3320 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3321 | $as_echo "yes" >&6; } | |
b0cacab0 | 3322 | fi |
61ef2474 TT |
3323 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
3324 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3325 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3326 | $as_echo "$ac_file" >&6; } | |
b0cacab0 | 3327 | ac_exeext=$ac_cv_exeext |
b0cacab0 | 3328 | |
61ef2474 | 3329 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
b0cacab0 | 3330 | ac_clean_files=$ac_clean_files_save |
57aa50d4 | 3331 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
39fd3d4f | 3332 | $as_echo_n "checking for suffix of executables... " >&6; } |
57aa50d4 | 3333 | if { { ac_try="$ac_link" |
e1052144 TT |
3334 | case "(($ac_try" in |
3335 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3336 | *) ac_try_echo=$ac_try;; | |
3337 | esac | |
57aa50d4 TT |
3338 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3339 | $as_echo "$ac_try_echo"; } >&5 | |
e1052144 | 3340 | (eval "$ac_link") 2>&5 |
b0cacab0 | 3341 | ac_status=$? |
57aa50d4 TT |
3342 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3343 | test $ac_status = 0; }; then : | |
b0cacab0 TT |
3344 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
3345 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3346 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3347 | # `rm'. | |
3348 | for ac_file in conftest.exe conftest conftest.*; do | |
3349 | test -f "$ac_file" || continue | |
3350 | case $ac_file in | |
39fd3d4f | 3351 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
b0cacab0 | 3352 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
b0cacab0 TT |
3353 | break;; |
3354 | * ) break;; | |
3355 | esac | |
3356 | done | |
73ae2d4a | 3357 | else |
57aa50d4 | 3358 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
39fd3d4f | 3359 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
d6a4bcb5 TB |
3360 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
3361 | See \`config.log' for more details" "$LINENO" 5; } | |
73ae2d4a | 3362 | fi |
61ef2474 | 3363 | rm -f conftest conftest$ac_cv_exeext |
57aa50d4 | 3364 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
39fd3d4f | 3365 | $as_echo "$ac_cv_exeext" >&6; } |
73ae2d4a | 3366 | |
b0cacab0 TT |
3367 | rm -f conftest.$ac_ext |
3368 | EXEEXT=$ac_cv_exeext | |
3369 | ac_exeext=$EXEEXT | |
61ef2474 TT |
3370 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3371 | /* end confdefs.h. */ | |
3372 | #include <stdio.h> | |
3373 | int | |
3374 | main () | |
3375 | { | |
3376 | FILE *f = fopen ("conftest.out", "w"); | |
3377 | return ferror (f) || fclose (f) != 0; | |
3378 | ||
3379 | ; | |
3380 | return 0; | |
3381 | } | |
3382 | _ACEOF | |
3383 | ac_clean_files="$ac_clean_files conftest.out" | |
3384 | # Check that the compiler produces executables we can run. If not, either | |
3385 | # the compiler is broken, or we cross compile. | |
3386 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3387 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3388 | if test "$cross_compiling" != yes; then | |
3389 | { { ac_try="$ac_link" | |
3390 | case "(($ac_try" in | |
3391 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3392 | *) ac_try_echo=$ac_try;; | |
3393 | esac | |
3394 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3395 | $as_echo "$ac_try_echo"; } >&5 | |
3396 | (eval "$ac_link") 2>&5 | |
3397 | ac_status=$? | |
3398 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3399 | test $ac_status = 0; } | |
3400 | if { ac_try='./conftest$ac_cv_exeext' | |
3401 | { { case "(($ac_try" in | |
3402 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3403 | *) ac_try_echo=$ac_try;; | |
3404 | esac | |
3405 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3406 | $as_echo "$ac_try_echo"; } >&5 | |
3407 | (eval "$ac_try") 2>&5 | |
3408 | ac_status=$? | |
3409 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3410 | test $ac_status = 0; }; }; then | |
3411 | cross_compiling=no | |
3412 | else | |
3413 | if test "$cross_compiling" = maybe; then | |
3414 | cross_compiling=yes | |
3415 | else | |
3416 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3417 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d6a4bcb5 | 3418 | as_fn_error $? "cannot run C compiled programs. |
61ef2474 | 3419 | If you meant to cross compile, use \`--host'. |
d6a4bcb5 | 3420 | See \`config.log' for more details" "$LINENO" 5; } |
61ef2474 TT |
3421 | fi |
3422 | fi | |
3423 | fi | |
3424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3425 | $as_echo "$cross_compiling" >&6; } | |
3426 | ||
3427 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
3428 | ac_clean_files=$ac_clean_files_save | |
57aa50d4 | 3429 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
39fd3d4f | 3430 | $as_echo_n "checking for suffix of object files... " >&6; } |
d6a4bcb5 | 3431 | if ${ac_cv_objext+:} false; then : |
39fd3d4f | 3432 | $as_echo_n "(cached) " >&6 |
73ae2d4a | 3433 | else |
57aa50d4 | 3434 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b0cacab0 | 3435 | /* end confdefs.h. */ |
07a0db15 | 3436 | |
b0cacab0 TT |
3437 | int |
3438 | main () | |
3439 | { | |
07a0db15 | 3440 | |
b0cacab0 TT |
3441 | ; |
3442 | return 0; | |
3443 | } | |
3444 | _ACEOF | |
3445 | rm -f conftest.o conftest.obj | |
57aa50d4 | 3446 | if { { ac_try="$ac_compile" |
e1052144 TT |
3447 | case "(($ac_try" in |
3448 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3449 | *) ac_try_echo=$ac_try;; | |
3450 | esac | |
57aa50d4 TT |
3451 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3452 | $as_echo "$ac_try_echo"; } >&5 | |
e1052144 | 3453 | (eval "$ac_compile") 2>&5 |
b0cacab0 | 3454 | ac_status=$? |
57aa50d4 TT |
3455 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3456 | test $ac_status = 0; }; then : | |
e1052144 TT |
3457 | for ac_file in conftest.o conftest.obj conftest.*; do |
3458 | test -f "$ac_file" || continue; | |
b0cacab0 | 3459 | case $ac_file in |
39fd3d4f | 3460 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
b0cacab0 TT |
3461 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3462 | break;; | |
3463 | esac | |
3464 | done | |
93636bde | 3465 | else |
39fd3d4f | 3466 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 | 3467 | sed 's/^/| /' conftest.$ac_ext >&5 |
07a0db15 | 3468 | |
57aa50d4 | 3469 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
39fd3d4f | 3470 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
d6a4bcb5 TB |
3471 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
3472 | See \`config.log' for more details" "$LINENO" 5; } | |
73ae2d4a | 3473 | fi |
b0cacab0 | 3474 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
73ae2d4a | 3475 | fi |
57aa50d4 | 3476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
39fd3d4f | 3477 | $as_echo "$ac_cv_objext" >&6; } |
b0cacab0 TT |
3478 | OBJEXT=$ac_cv_objext |
3479 | ac_objext=$OBJEXT | |
57aa50d4 | 3480 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
39fd3d4f | 3481 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
d6a4bcb5 | 3482 | if ${ac_cv_c_compiler_gnu+:} false; then : |
39fd3d4f | 3483 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 3484 | else |
57aa50d4 | 3485 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b0cacab0 TT |
3486 | /* end confdefs.h. */ |
3487 | ||
3488 | int | |
3489 | main () | |
3490 | { | |
3491 | #ifndef __GNUC__ | |
3492 | choke me | |
3493 | #endif | |
3494 | ||
3495 | ; | |
3496 | return 0; | |
3497 | } | |
3498 | _ACEOF | |
57aa50d4 | 3499 | if ac_fn_c_try_compile "$LINENO"; then : |
b0cacab0 TT |
3500 | ac_compiler_gnu=yes |
3501 | else | |
57aa50d4 | 3502 | ac_compiler_gnu=no |
b0cacab0 | 3503 | fi |
e1052144 | 3504 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
b0cacab0 TT |
3505 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
3506 | ||
3507 | fi | |
57aa50d4 | 3508 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
39fd3d4f SJR |
3509 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
3510 | if test $ac_compiler_gnu = yes; then | |
3511 | GCC=yes | |
3512 | else | |
3513 | GCC= | |
3514 | fi | |
b0cacab0 TT |
3515 | ac_test_CFLAGS=${CFLAGS+set} |
3516 | ac_save_CFLAGS=$CFLAGS | |
57aa50d4 | 3517 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
39fd3d4f | 3518 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
d6a4bcb5 | 3519 | if ${ac_cv_prog_cc_g+:} false; then : |
39fd3d4f | 3520 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 3521 | else |
e1052144 TT |
3522 | ac_save_c_werror_flag=$ac_c_werror_flag |
3523 | ac_c_werror_flag=yes | |
3524 | ac_cv_prog_cc_g=no | |
3525 | CFLAGS="-g" | |
57aa50d4 | 3526 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e1052144 TT |
3527 | /* end confdefs.h. */ |
3528 | ||
3529 | int | |
3530 | main () | |
3531 | { | |
3532 | ||
3533 | ; | |
3534 | return 0; | |
3535 | } | |
3536 | _ACEOF | |
57aa50d4 | 3537 | if ac_fn_c_try_compile "$LINENO"; then : |
e1052144 TT |
3538 | ac_cv_prog_cc_g=yes |
3539 | else | |
57aa50d4 TT |
3540 | CFLAGS="" |
3541 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
e1052144 TT |
3542 | /* end confdefs.h. */ |
3543 | ||
3544 | int | |
3545 | main () | |
3546 | { | |
3547 | ||
3548 | ; | |
3549 | return 0; | |
3550 | } | |
3551 | _ACEOF | |
57aa50d4 | 3552 | if ac_fn_c_try_compile "$LINENO"; then : |
e1052144 | 3553 | |
57aa50d4 TT |
3554 | else |
3555 | ac_c_werror_flag=$ac_save_c_werror_flag | |
e1052144 | 3556 | CFLAGS="-g" |
57aa50d4 | 3557 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b0cacab0 TT |
3558 | /* end confdefs.h. */ |
3559 | ||
3560 | int | |
3561 | main () | |
3562 | { | |
3563 | ||
3564 | ; | |
3565 | return 0; | |
3566 | } | |
3567 | _ACEOF | |
57aa50d4 | 3568 | if ac_fn_c_try_compile "$LINENO"; then : |
b0cacab0 | 3569 | ac_cv_prog_cc_g=yes |
e1052144 | 3570 | fi |
e1052144 TT |
3571 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3572 | fi | |
e1052144 | 3573 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
b0cacab0 | 3574 | fi |
e1052144 TT |
3575 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3576 | ac_c_werror_flag=$ac_save_c_werror_flag | |
b0cacab0 | 3577 | fi |
57aa50d4 | 3578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
39fd3d4f | 3579 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
b0cacab0 TT |
3580 | if test "$ac_test_CFLAGS" = set; then |
3581 | CFLAGS=$ac_save_CFLAGS | |
3582 | elif test $ac_cv_prog_cc_g = yes; then | |
3583 | if test "$GCC" = yes; then | |
3584 | CFLAGS="-g -O2" | |
3585 | else | |
3586 | CFLAGS="-g" | |
3587 | fi | |
73ae2d4a TT |
3588 | else |
3589 | if test "$GCC" = yes; then | |
3590 | CFLAGS="-O2" | |
3591 | else | |
3592 | CFLAGS= | |
3593 | fi | |
3594 | fi | |
57aa50d4 | 3595 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
39fd3d4f | 3596 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
d6a4bcb5 | 3597 | if ${ac_cv_prog_cc_c89+:} false; then : |
39fd3d4f | 3598 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 3599 | else |
e1052144 | 3600 | ac_cv_prog_cc_c89=no |
b0cacab0 | 3601 | ac_save_CC=$CC |
57aa50d4 | 3602 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b0cacab0 TT |
3603 | /* end confdefs.h. */ |
3604 | #include <stdarg.h> | |
3605 | #include <stdio.h> | |
d6a4bcb5 | 3606 | struct stat; |
b0cacab0 TT |
3607 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
3608 | struct buf { int x; }; | |
3609 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3610 | static char *e (p, i) | |
3611 | char **p; | |
3612 | int i; | |
3613 | { | |
3614 | return p[i]; | |
3615 | } | |
3616 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3617 | { | |
3618 | char *s; | |
3619 | va_list v; | |
3620 | va_start (v,p); | |
3621 | s = g (p, va_arg (v,int)); | |
3622 | va_end (v); | |
3623 | return s; | |
3624 | } | |
3625 | ||
3626 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3627 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3628 | These don't provoke an error unfortunately, instead are silently treated | |
e1052144 | 3629 | as 'x'. The following induces an error, until -std is added to get |
b0cacab0 TT |
3630 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3631 | array size at least. It's necessary to write '\x00'==0 to get something | |
e1052144 | 3632 | that's true only with -std. */ |
b0cacab0 TT |
3633 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3634 | ||
e1052144 TT |
3635 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3636 | inside strings and character constants. */ | |
3637 | #define FOO(x) 'x' | |
3638 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3639 | ||
b0cacab0 TT |
3640 | int test (int i, double x); |
3641 | struct s1 {int (*f) (int a);}; | |
3642 | struct s2 {int (*f) (double a);}; | |
3643 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3644 | int argc; | |
3645 | char **argv; | |
3646 | int | |
3647 | main () | |
3648 | { | |
3649 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3650 | ; | |
3651 | return 0; | |
3652 | } | |
3653 | _ACEOF | |
e1052144 TT |
3654 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3655 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
b0cacab0 TT |
3656 | do |
3657 | CC="$ac_save_CC $ac_arg" | |
57aa50d4 | 3658 | if ac_fn_c_try_compile "$LINENO"; then : |
e1052144 | 3659 | ac_cv_prog_cc_c89=$ac_arg |
b0cacab0 | 3660 | fi |
e1052144 TT |
3661 | rm -f core conftest.err conftest.$ac_objext |
3662 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
b0cacab0 | 3663 | done |
e1052144 | 3664 | rm -f conftest.$ac_ext |
b0cacab0 TT |
3665 | CC=$ac_save_CC |
3666 | ||
3667 | fi | |
e1052144 TT |
3668 | # AC_CACHE_VAL |
3669 | case "x$ac_cv_prog_cc_c89" in | |
3670 | x) | |
57aa50d4 | 3671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
39fd3d4f | 3672 | $as_echo "none needed" >&6; } ;; |
e1052144 | 3673 | xno) |
57aa50d4 | 3674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
39fd3d4f | 3675 | $as_echo "unsupported" >&6; } ;; |
b0cacab0 | 3676 | *) |
e1052144 | 3677 | CC="$CC $ac_cv_prog_cc_c89" |
57aa50d4 | 3678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
39fd3d4f | 3679 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
b0cacab0 | 3680 | esac |
57aa50d4 | 3681 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
b0cacab0 | 3682 | |
57aa50d4 | 3683 | fi |
b0cacab0 | 3684 | |
b0cacab0 TT |
3685 | ac_ext=c |
3686 | ac_cpp='$CPP $CPPFLAGS' | |
3687 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3688 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3689 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3690 | ||
57aa50d4 TT |
3691 | |
3692 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
3693 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
d6a4bcb5 | 3694 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
39fd3d4f | 3695 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 3696 | else |
57aa50d4 TT |
3697 | ac_check_lib_save_LIBS=$LIBS |
3698 | LIBS="-ldl $LIBS" | |
3699 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b0cacab0 | 3700 | /* end confdefs.h. */ |
57aa50d4 TT |
3701 | |
3702 | /* Override any GCC internal prototype to avoid an error. | |
3703 | Use char because int might match the return type of a GCC | |
3704 | builtin and then its argument prototype would still apply. */ | |
3705 | #ifdef __cplusplus | |
3706 | extern "C" | |
b0cacab0 | 3707 | #endif |
57aa50d4 TT |
3708 | char dlopen (); |
3709 | int | |
3710 | main () | |
3711 | { | |
3712 | return dlopen (); | |
3713 | ; | |
3714 | return 0; | |
3715 | } | |
b0cacab0 | 3716 | _ACEOF |
57aa50d4 TT |
3717 | if ac_fn_c_try_link "$LINENO"; then : |
3718 | ac_cv_lib_dl_dlopen=yes | |
b0cacab0 | 3719 | else |
57aa50d4 | 3720 | ac_cv_lib_dl_dlopen=no |
b0cacab0 | 3721 | fi |
57aa50d4 TT |
3722 | rm -f core conftest.err conftest.$ac_objext \ |
3723 | conftest$ac_exeext conftest.$ac_ext | |
3724 | LIBS=$ac_check_lib_save_LIBS | |
b0cacab0 | 3725 | fi |
57aa50d4 TT |
3726 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
3727 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
d6a4bcb5 | 3728 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
57aa50d4 | 3729 | DLOPEN_LIB=-ldl |
b0cacab0 TT |
3730 | fi |
3731 | ||
b0cacab0 | 3732 | |
e1052144 | 3733 | |
57aa50d4 TT |
3734 | # Check whether --with-cc was given. |
3735 | if test "${with_cc+set}" = set; then : | |
d6a4bcb5 | 3736 | withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5 |
57aa50d4 | 3737 | fi |
b0cacab0 | 3738 | |
b0cacab0 | 3739 | |
57aa50d4 TT |
3740 | # Check whether --with-ccopts was given. |
3741 | if test "${with_ccopts+set}" = set; then : | |
d6a4bcb5 | 3742 | withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5 |
b0cacab0 | 3743 | fi |
e1052144 | 3744 | |
b0cacab0 | 3745 | |
57aa50d4 TT |
3746 | # Check whether --with-ldopts was given. |
3747 | if test "${with_ldopts+set}" = set; then : | |
d6a4bcb5 | 3748 | withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5 |
b0cacab0 TT |
3749 | fi |
3750 | ||
3751 | ac_ext=c | |
3752 | ac_cpp='$CPP $CPPFLAGS' | |
3753 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3754 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3755 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
57aa50d4 TT |
3756 | if test -n "$ac_tool_prefix"; then |
3757 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3758 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
3759 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3760 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6a4bcb5 | 3761 | if ${ac_cv_prog_CC+:} false; then : |
39fd3d4f | 3762 | $as_echo_n "(cached) " >&6 |
e1052144 | 3763 | else |
57aa50d4 TT |
3764 | if test -n "$CC"; then |
3765 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3766 | else | |
3767 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3768 | for as_dir in $PATH | |
e1052144 TT |
3769 | do |
3770 | IFS=$as_save_IFS | |
3771 | test -z "$as_dir" && as_dir=. | |
39fd3d4f | 3772 | for ac_exec_ext in '' $ac_executable_extensions; do |
d6a4bcb5 | 3773 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
57aa50d4 TT |
3774 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
3775 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3776 | break 2 | |
3777 | fi | |
e1052144 | 3778 | done |
57aa50d4 | 3779 | done |
e1052144 | 3780 | IFS=$as_save_IFS |
e1052144 | 3781 | |
e1052144 | 3782 | fi |
57aa50d4 TT |
3783 | fi |
3784 | CC=$ac_cv_prog_CC | |
3785 | if test -n "$CC"; then | |
3786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3787 | $as_echo "$CC" >&6; } | |
3788 | else | |
3789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3790 | $as_echo "no" >&6; } | |
3791 | fi | |
e1052144 TT |
3792 | |
3793 | ||
57aa50d4 TT |
3794 | fi |
3795 | if test -z "$ac_cv_prog_CC"; then | |
3796 | ac_ct_CC=$CC | |
3797 | # Extract the first word of "gcc", so it can be a program name with args. | |
3798 | set dummy gcc; ac_word=$2 | |
3799 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3800 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6a4bcb5 | 3801 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
39fd3d4f | 3802 | $as_echo_n "(cached) " >&6 |
e1052144 | 3803 | else |
57aa50d4 TT |
3804 | if test -n "$ac_ct_CC"; then |
3805 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3806 | else | |
3807 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3808 | for as_dir in $PATH | |
e1052144 TT |
3809 | do |
3810 | IFS=$as_save_IFS | |
3811 | test -z "$as_dir" && as_dir=. | |
39fd3d4f | 3812 | for ac_exec_ext in '' $ac_executable_extensions; do |
d6a4bcb5 | 3813 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
57aa50d4 TT |
3814 | ac_cv_prog_ac_ct_CC="gcc" |
3815 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3816 | break 2 | |
3817 | fi | |
e1052144 | 3818 | done |
57aa50d4 | 3819 | done |
e1052144 | 3820 | IFS=$as_save_IFS |
b0cacab0 | 3821 | |
e1052144 | 3822 | fi |
57aa50d4 TT |
3823 | fi |
3824 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3825 | if test -n "$ac_ct_CC"; then | |
3826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3827 | $as_echo "$ac_ct_CC" >&6; } | |
b0cacab0 | 3828 | else |
57aa50d4 TT |
3829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3830 | $as_echo "no" >&6; } | |
3831 | fi | |
b0cacab0 | 3832 | |
57aa50d4 TT |
3833 | if test "x$ac_ct_CC" = x; then |
3834 | CC="" | |
3835 | else | |
3836 | case $cross_compiling:$ac_tool_warned in | |
3837 | yes:) | |
3838 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3839 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3840 | ac_tool_warned=yes ;; | |
e1052144 | 3841 | esac |
57aa50d4 TT |
3842 | CC=$ac_ct_CC |
3843 | fi | |
b0cacab0 | 3844 | else |
57aa50d4 | 3845 | CC="$ac_cv_prog_CC" |
b0cacab0 | 3846 | fi |
e1052144 | 3847 | |
57aa50d4 TT |
3848 | if test -z "$CC"; then |
3849 | if test -n "$ac_tool_prefix"; then | |
3850 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
3851 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
3852 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3853 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6a4bcb5 | 3854 | if ${ac_cv_prog_CC+:} false; then : |
57aa50d4 | 3855 | $as_echo_n "(cached) " >&6 |
a64c9c13 | 3856 | else |
57aa50d4 TT |
3857 | if test -n "$CC"; then |
3858 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3859 | else | |
3860 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3861 | for as_dir in $PATH | |
3862 | do | |
3863 | IFS=$as_save_IFS | |
3864 | test -z "$as_dir" && as_dir=. | |
3865 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d6a4bcb5 | 3866 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
57aa50d4 TT |
3867 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
3868 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3869 | break 2 | |
3870 | fi | |
3871 | done | |
3872 | done | |
3873 | IFS=$as_save_IFS | |
b0cacab0 | 3874 | |
a64c9c13 | 3875 | fi |
57aa50d4 TT |
3876 | fi |
3877 | CC=$ac_cv_prog_CC | |
3878 | if test -n "$CC"; then | |
3879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3880 | $as_echo "$CC" >&6; } | |
b0cacab0 | 3881 | else |
57aa50d4 TT |
3882 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3883 | $as_echo "no" >&6; } | |
a64c9c13 | 3884 | fi |
b0cacab0 | 3885 | |
b0cacab0 | 3886 | |
57aa50d4 TT |
3887 | fi |
3888 | fi | |
3889 | if test -z "$CC"; then | |
3890 | # Extract the first word of "cc", so it can be a program name with args. | |
3891 | set dummy cc; ac_word=$2 | |
3892 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3893 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6a4bcb5 | 3894 | if ${ac_cv_prog_CC+:} false; then : |
57aa50d4 | 3895 | $as_echo_n "(cached) " >&6 |
a64c9c13 | 3896 | else |
57aa50d4 TT |
3897 | if test -n "$CC"; then |
3898 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
a64c9c13 | 3899 | else |
57aa50d4 TT |
3900 | ac_prog_rejected=no |
3901 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3902 | for as_dir in $PATH | |
3903 | do | |
3904 | IFS=$as_save_IFS | |
3905 | test -z "$as_dir" && as_dir=. | |
3906 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d6a4bcb5 | 3907 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
57aa50d4 TT |
3908 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
3909 | ac_prog_rejected=yes | |
3910 | continue | |
3911 | fi | |
3912 | ac_cv_prog_CC="cc" | |
3913 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3914 | break 2 | |
3915 | fi | |
3916 | done | |
3917 | done | |
3918 | IFS=$as_save_IFS | |
b0cacab0 | 3919 | |
57aa50d4 TT |
3920 | if test $ac_prog_rejected = yes; then |
3921 | # We found a bogon in the path, so make sure we never use it. | |
3922 | set dummy $ac_cv_prog_CC | |
3923 | shift | |
3924 | if test $# != 0; then | |
3925 | # We chose a different compiler from the bogus one. | |
3926 | # However, it has the same basename, so the bogon will be chosen | |
3927 | # first if we set CC to just the basename; use the full file name. | |
3928 | shift | |
3929 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3930 | fi | |
b0cacab0 | 3931 | fi |
b0cacab0 TT |
3932 | fi |
3933 | fi | |
57aa50d4 TT |
3934 | CC=$ac_cv_prog_CC |
3935 | if test -n "$CC"; then | |
3936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3937 | $as_echo "$CC" >&6; } | |
3938 | else | |
3939 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3940 | $as_echo "no" >&6; } | |
b0cacab0 | 3941 | fi |
b0cacab0 | 3942 | |
b0cacab0 TT |
3943 | |
3944 | fi | |
57aa50d4 TT |
3945 | if test -z "$CC"; then |
3946 | if test -n "$ac_tool_prefix"; then | |
3947 | for ac_prog in cl.exe | |
3948 | do | |
3949 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3950 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3951 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3952 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6a4bcb5 | 3953 | if ${ac_cv_prog_CC+:} false; then : |
57aa50d4 TT |
3954 | $as_echo_n "(cached) " >&6 |
3955 | else | |
3956 | if test -n "$CC"; then | |
3957 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3958 | else | |
3959 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3960 | for as_dir in $PATH | |
3961 | do | |
3962 | IFS=$as_save_IFS | |
3963 | test -z "$as_dir" && as_dir=. | |
3964 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d6a4bcb5 | 3965 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
57aa50d4 TT |
3966 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
3967 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3968 | break 2 | |
3969 | fi | |
3970 | done | |
3971 | done | |
3972 | IFS=$as_save_IFS | |
b0cacab0 | 3973 | |
57aa50d4 TT |
3974 | fi |
3975 | fi | |
3976 | CC=$ac_cv_prog_CC | |
3977 | if test -n "$CC"; then | |
3978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3979 | $as_echo "$CC" >&6; } | |
3980 | else | |
3981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3982 | $as_echo "no" >&6; } | |
3983 | fi | |
b0cacab0 TT |
3984 | |
3985 | ||
57aa50d4 TT |
3986 | test -n "$CC" && break |
3987 | done | |
3988 | fi | |
3989 | if test -z "$CC"; then | |
3990 | ac_ct_CC=$CC | |
3991 | for ac_prog in cl.exe | |
b0cacab0 | 3992 | do |
57aa50d4 TT |
3993 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
3994 | set dummy $ac_prog; ac_word=$2 | |
3995 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3996 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6a4bcb5 | 3997 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
39fd3d4f | 3998 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 3999 | else |
57aa50d4 TT |
4000 | if test -n "$ac_ct_CC"; then |
4001 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
b0cacab0 | 4002 | else |
57aa50d4 TT |
4003 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4004 | for as_dir in $PATH | |
4005 | do | |
4006 | IFS=$as_save_IFS | |
4007 | test -z "$as_dir" && as_dir=. | |
4008 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d6a4bcb5 | 4009 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
57aa50d4 TT |
4010 | ac_cv_prog_ac_ct_CC="$ac_prog" |
4011 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4012 | break 2 | |
4013 | fi | |
4014 | done | |
4015 | done | |
4016 | IFS=$as_save_IFS | |
b0cacab0 | 4017 | |
b0cacab0 | 4018 | fi |
b0cacab0 | 4019 | fi |
57aa50d4 TT |
4020 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
4021 | if test -n "$ac_ct_CC"; then | |
4022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
4023 | $as_echo "$ac_ct_CC" >&6; } | |
4024 | else | |
4025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4026 | $as_echo "no" >&6; } | |
b0cacab0 TT |
4027 | fi |
4028 | ||
b0cacab0 | 4029 | |
57aa50d4 TT |
4030 | test -n "$ac_ct_CC" && break |
4031 | done | |
b0cacab0 | 4032 | |
57aa50d4 TT |
4033 | if test "x$ac_ct_CC" = x; then |
4034 | CC="" | |
4035 | else | |
4036 | case $cross_compiling:$ac_tool_warned in | |
4037 | yes:) | |
4038 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4039 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4040 | ac_tool_warned=yes ;; | |
e1052144 | 4041 | esac |
57aa50d4 TT |
4042 | CC=$ac_ct_CC |
4043 | fi | |
4044 | fi | |
b0cacab0 | 4045 | |
b0cacab0 | 4046 | fi |
e1052144 | 4047 | |
b0cacab0 | 4048 | |
57aa50d4 TT |
4049 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4050 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d6a4bcb5 TB |
4051 | as_fn_error $? "no acceptable C compiler found in \$PATH |
4052 | See \`config.log' for more details" "$LINENO" 5; } | |
57aa50d4 TT |
4053 | |
4054 | # Provide some information about the compiler. | |
4055 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
4056 | set X $ac_compile | |
4057 | ac_compiler=$2 | |
4058 | for ac_option in --version -v -V -qversion; do | |
4059 | { { ac_try="$ac_compiler $ac_option >&5" | |
e1052144 TT |
4060 | case "(($ac_try" in |
4061 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4062 | *) ac_try_echo=$ac_try;; | |
4063 | esac | |
57aa50d4 TT |
4064 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
4065 | $as_echo "$ac_try_echo"; } >&5 | |
4066 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
b0cacab0 | 4067 | ac_status=$? |
57aa50d4 TT |
4068 | if test -s conftest.err; then |
4069 | sed '10a\ | |
4070 | ... rest of stderr output deleted ... | |
4071 | 10q' conftest.err >conftest.er1 | |
4072 | cat conftest.er1 >&5 | |
57aa50d4 | 4073 | fi |
61ef2474 | 4074 | rm -f conftest.er1 conftest.err |
57aa50d4 TT |
4075 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4076 | test $ac_status = 0; } | |
4077 | done | |
e1052144 | 4078 | |
57aa50d4 TT |
4079 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
4080 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
d6a4bcb5 | 4081 | if ${ac_cv_c_compiler_gnu+:} false; then : |
39fd3d4f | 4082 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 4083 | else |
57aa50d4 TT |
4084 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4085 | /* end confdefs.h. */ | |
b0cacab0 | 4086 | |
57aa50d4 TT |
4087 | int |
4088 | main () | |
4089 | { | |
4090 | #ifndef __GNUC__ | |
4091 | choke me | |
4092 | #endif | |
a64c9c13 | 4093 | |
57aa50d4 TT |
4094 | ; |
4095 | return 0; | |
4096 | } | |
4097 | _ACEOF | |
4098 | if ac_fn_c_try_compile "$LINENO"; then : | |
4099 | ac_compiler_gnu=yes | |
b1c92f91 | 4100 | else |
57aa50d4 | 4101 | ac_compiler_gnu=no |
b1c92f91 | 4102 | fi |
57aa50d4 TT |
4103 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4104 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
b0cacab0 | 4105 | |
e1052144 | 4106 | fi |
57aa50d4 TT |
4107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4108 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4109 | if test $ac_compiler_gnu = yes; then | |
4110 | GCC=yes | |
98919bdb | 4111 | else |
57aa50d4 | 4112 | GCC= |
98919bdb | 4113 | fi |
57aa50d4 TT |
4114 | ac_test_CFLAGS=${CFLAGS+set} |
4115 | ac_save_CFLAGS=$CFLAGS | |
4116 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
4117 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
d6a4bcb5 | 4118 | if ${ac_cv_prog_cc_g+:} false; then : |
57aa50d4 | 4119 | $as_echo_n "(cached) " >&6 |
98919bdb | 4120 | else |
57aa50d4 TT |
4121 | ac_save_c_werror_flag=$ac_c_werror_flag |
4122 | ac_c_werror_flag=yes | |
4123 | ac_cv_prog_cc_g=no | |
4124 | CFLAGS="-g" | |
4125 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4126 | /* end confdefs.h. */ | |
e1052144 | 4127 | |
57aa50d4 TT |
4128 | int |
4129 | main () | |
4130 | { | |
98919bdb | 4131 | |
57aa50d4 TT |
4132 | ; |
4133 | return 0; | |
4134 | } | |
4135 | _ACEOF | |
4136 | if ac_fn_c_try_compile "$LINENO"; then : | |
4137 | ac_cv_prog_cc_g=yes | |
c13351f6 | 4138 | else |
57aa50d4 TT |
4139 | CFLAGS="" |
4140 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4141 | /* end confdefs.h. */ | |
c13351f6 | 4142 | |
57aa50d4 TT |
4143 | int |
4144 | main () | |
4145 | { | |
c13351f6 | 4146 | |
57aa50d4 TT |
4147 | ; |
4148 | return 0; | |
4149 | } | |
4150 | _ACEOF | |
4151 | if ac_fn_c_try_compile "$LINENO"; then : | |
c13351f6 | 4152 | |
57aa50d4 TT |
4153 | else |
4154 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4155 | CFLAGS="-g" | |
4156 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4157 | /* end confdefs.h. */ | |
c13351f6 | 4158 | |
57aa50d4 TT |
4159 | int |
4160 | main () | |
4161 | { | |
c13351f6 | 4162 | |
57aa50d4 TT |
4163 | ; |
4164 | return 0; | |
4165 | } | |
b0cacab0 | 4166 | _ACEOF |
57aa50d4 TT |
4167 | if ac_fn_c_try_compile "$LINENO"; then : |
4168 | ac_cv_prog_cc_g=yes | |
1917875f | 4169 | fi |
57aa50d4 | 4170 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
e1052144 | 4171 | fi |
57aa50d4 | 4172 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8fdc9985 | 4173 | fi |
57aa50d4 TT |
4174 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4175 | ac_c_werror_flag=$ac_save_c_werror_flag | |
e1052144 | 4176 | fi |
57aa50d4 TT |
4177 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
4178 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
4179 | if test "$ac_test_CFLAGS" = set; then | |
4180 | CFLAGS=$ac_save_CFLAGS | |
4181 | elif test $ac_cv_prog_cc_g = yes; then | |
4182 | if test "$GCC" = yes; then | |
4183 | CFLAGS="-g -O2" | |
4184 | else | |
4185 | CFLAGS="-g" | |
4186 | fi | |
a64c9c13 | 4187 | else |
57aa50d4 TT |
4188 | if test "$GCC" = yes; then |
4189 | CFLAGS="-O2" | |
4190 | else | |
4191 | CFLAGS= | |
4192 | fi | |
a64c9c13 | 4193 | fi |
57aa50d4 TT |
4194 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
4195 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
d6a4bcb5 | 4196 | if ${ac_cv_prog_cc_c89+:} false; then : |
57aa50d4 | 4197 | $as_echo_n "(cached) " >&6 |
a64c9c13 | 4198 | else |
57aa50d4 TT |
4199 | ac_cv_prog_cc_c89=no |
4200 | ac_save_CC=$CC | |
4201 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4202 | /* end confdefs.h. */ | |
4203 | #include <stdarg.h> | |
4204 | #include <stdio.h> | |
d6a4bcb5 | 4205 | struct stat; |
57aa50d4 TT |
4206 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
4207 | struct buf { int x; }; | |
4208 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4209 | static char *e (p, i) | |
4210 | char **p; | |
4211 | int i; | |
4212 | { | |
4213 | return p[i]; | |
4214 | } | |
4215 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4216 | { | |
4217 | char *s; | |
4218 | va_list v; | |
4219 | va_start (v,p); | |
4220 | s = g (p, va_arg (v,int)); | |
4221 | va_end (v); | |
4222 | return s; | |
4223 | } | |
e1052144 | 4224 | |
57aa50d4 TT |
4225 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
4226 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4227 | These don't provoke an error unfortunately, instead are silently treated | |
4228 | as 'x'. The following induces an error, until -std is added to get | |
4229 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
4230 | array size at least. It's necessary to write '\x00'==0 to get something | |
4231 | that's true only with -std. */ | |
4232 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
93636bde | 4233 | |
57aa50d4 TT |
4234 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4235 | inside strings and character constants. */ | |
4236 | #define FOO(x) 'x' | |
4237 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
a64c9c13 | 4238 | |
57aa50d4 TT |
4239 | int test (int i, double x); |
4240 | struct s1 {int (*f) (int a);}; | |
4241 | struct s2 {int (*f) (double a);}; | |
4242 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4243 | int argc; | |
4244 | char **argv; | |
4245 | int | |
4246 | main () | |
4247 | { | |
4248 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4249 | ; | |
4250 | return 0; | |
4251 | } | |
4252 | _ACEOF | |
4253 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
4254 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
4255 | do | |
4256 | CC="$ac_save_CC $ac_arg" | |
4257 | if ac_fn_c_try_compile "$LINENO"; then : | |
4258 | ac_cv_prog_cc_c89=$ac_arg | |
a64c9c13 | 4259 | fi |
57aa50d4 TT |
4260 | rm -f core conftest.err conftest.$ac_objext |
4261 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
4262 | done | |
4263 | rm -f conftest.$ac_ext | |
4264 | CC=$ac_save_CC | |
a64c9c13 | 4265 | |
57aa50d4 TT |
4266 | fi |
4267 | # AC_CACHE_VAL | |
4268 | case "x$ac_cv_prog_cc_c89" in | |
4269 | x) | |
4270 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4271 | $as_echo "none needed" >&6; } ;; | |
4272 | xno) | |
4273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4274 | $as_echo "unsupported" >&6; } ;; | |
4275 | *) | |
4276 | CC="$CC $ac_cv_prog_cc_c89" | |
4277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4278 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
4279 | esac | |
4280 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
a64c9c13 | 4281 | |
e1052144 TT |
4282 | fi |
4283 | ||
57aa50d4 TT |
4284 | ac_ext=c |
4285 | ac_cpp='$CPP $CPPFLAGS' | |
4286 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4287 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4288 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
93636bde | 4289 | |
9b3018a8 TT |
4290 | if test "$GCC" = yes; then |
4291 | RDYNAMIC="-rdynamic" | |
4292 | ||
4293 | fi | |
57aa50d4 TT |
4294 | ac_ext=c |
4295 | ac_cpp='$CPP $CPPFLAGS' | |
4296 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4297 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4298 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4299 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
4300 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
4301 | # On Suns, sometimes $CPP names a directory. | |
4302 | if test -n "$CPP" && test -d "$CPP"; then | |
4303 | CPP= | |
4304 | fi | |
4305 | if test -z "$CPP"; then | |
d6a4bcb5 | 4306 | if ${ac_cv_prog_CPP+:} false; then : |
57aa50d4 TT |
4307 | $as_echo_n "(cached) " >&6 |
4308 | else | |
4309 | # Double quotes because CPP needs to be expanded | |
4310 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
4311 | do | |
4312 | ac_preproc_ok=false | |
4313 | for ac_c_preproc_warn_flag in '' yes | |
4314 | do | |
4315 | # Use a header file that comes with gcc, so configuring glibc | |
4316 | # with a fresh cross-compiler works. | |
4317 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4318 | # <limits.h> exists even on freestanding compilers. | |
4319 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4320 | # not just through cpp. "Syntax error" is here to catch this case. | |
4321 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4322 | /* end confdefs.h. */ | |
4323 | #ifdef __STDC__ | |
4324 | # include <limits.h> | |
4325 | #else | |
4326 | # include <assert.h> | |
4327 | #endif | |
4328 | Syntax error | |
4329 | _ACEOF | |
4330 | if ac_fn_c_try_cpp "$LINENO"; then : | |
a64c9c13 | 4331 | |
cdf186e4 | 4332 | else |
57aa50d4 TT |
4333 | # Broken: fails on valid input. |
4334 | continue | |
cdf186e4 | 4335 | fi |
d6a4bcb5 | 4336 | rm -f conftest.err conftest.i conftest.$ac_ext |
cdf186e4 | 4337 | |
57aa50d4 TT |
4338 | # OK, works on sane cases. Now check whether nonexistent headers |
4339 | # can be detected and how. | |
4340 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4341 | /* end confdefs.h. */ | |
4342 | #include <ac_nonexistent.h> | |
4343 | _ACEOF | |
4344 | if ac_fn_c_try_cpp "$LINENO"; then : | |
4345 | # Broken: success on invalid input. | |
4346 | continue | |
cdf186e4 | 4347 | else |
57aa50d4 TT |
4348 | # Passes both tests. |
4349 | ac_preproc_ok=: | |
4350 | break | |
4351 | fi | |
d6a4bcb5 | 4352 | rm -f conftest.err conftest.i conftest.$ac_ext |
cdf186e4 | 4353 | |
57aa50d4 TT |
4354 | done |
4355 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
d6a4bcb5 | 4356 | rm -f conftest.i conftest.err conftest.$ac_ext |
57aa50d4 TT |
4357 | if $ac_preproc_ok; then : |
4358 | break | |
e1052144 TT |
4359 | fi |
4360 | ||
57aa50d4 TT |
4361 | done |
4362 | ac_cv_prog_CPP=$CPP | |
93636bde | 4363 | |
cdf186e4 | 4364 | fi |
57aa50d4 | 4365 | CPP=$ac_cv_prog_CPP |
cdf186e4 | 4366 | else |
57aa50d4 | 4367 | ac_cv_prog_CPP=$CPP |
e1052144 | 4368 | fi |
57aa50d4 TT |
4369 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
4370 | $as_echo "$CPP" >&6; } | |
4371 | ac_preproc_ok=false | |
4372 | for ac_c_preproc_warn_flag in '' yes | |
4373 | do | |
4374 | # Use a header file that comes with gcc, so configuring glibc | |
4375 | # with a fresh cross-compiler works. | |
4376 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4377 | # <limits.h> exists even on freestanding compilers. | |
4378 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4379 | # not just through cpp. "Syntax error" is here to catch this case. | |
4380 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4381 | /* end confdefs.h. */ | |
4382 | #ifdef __STDC__ | |
4383 | # include <limits.h> | |
4384 | #else | |
4385 | # include <assert.h> | |
4386 | #endif | |
4387 | Syntax error | |
b0cacab0 | 4388 | _ACEOF |
57aa50d4 | 4389 | if ac_fn_c_try_cpp "$LINENO"; then : |
80bfaa3e TT |
4390 | |
4391 | else | |
57aa50d4 TT |
4392 | # Broken: fails on valid input. |
4393 | continue | |
e1052144 | 4394 | fi |
d6a4bcb5 | 4395 | rm -f conftest.err conftest.i conftest.$ac_ext |
e1052144 | 4396 | |
57aa50d4 TT |
4397 | # OK, works on sane cases. Now check whether nonexistent headers |
4398 | # can be detected and how. | |
4399 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4400 | /* end confdefs.h. */ | |
4401 | #include <ac_nonexistent.h> | |
b0cacab0 | 4402 | _ACEOF |
57aa50d4 TT |
4403 | if ac_fn_c_try_cpp "$LINENO"; then : |
4404 | # Broken: success on invalid input. | |
4405 | continue | |
f0a22d0f | 4406 | else |
57aa50d4 TT |
4407 | # Passes both tests. |
4408 | ac_preproc_ok=: | |
4409 | break | |
e1052144 | 4410 | fi |
d6a4bcb5 | 4411 | rm -f conftest.err conftest.i conftest.$ac_ext |
e1052144 | 4412 | |
57aa50d4 TT |
4413 | done |
4414 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
d6a4bcb5 | 4415 | rm -f conftest.i conftest.err conftest.$ac_ext |
57aa50d4 | 4416 | if $ac_preproc_ok; then : |
2a29f135 TT |
4417 | |
4418 | else | |
57aa50d4 TT |
4419 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4420 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d6a4bcb5 TB |
4421 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
4422 | See \`config.log' for more details" "$LINENO" 5; } | |
e1052144 TT |
4423 | fi |
4424 | ||
57aa50d4 TT |
4425 | ac_ext=c |
4426 | ac_cpp='$CPP $CPPFLAGS' | |
4427 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4428 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4429 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
af773654 | 4430 | |
57aa50d4 TT |
4431 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5 |
4432 | $as_echo_n "checking for additional special compiler flags... " >&6; } | |
4433 | if test "$GCC" = yes | |
4434 | then | |
4435 | case "$host_cpu" in | |
4436 | alpha) addcflags="-mieee" ;; | |
4437 | esac | |
14b596d4 | 4438 | fi |
57aa50d4 TT |
4439 | if test "x$addcflags" != x |
4440 | then | |
4441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5 | |
4442 | $as_echo "$addcflags" >&6; } | |
4443 | CFLAGS="$addcflags $CFLAGS" | |
14b596d4 | 4444 | else |
57aa50d4 TT |
4445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5 |
4446 | $as_echo "(none)" >&6; } | |
14b596d4 TT |
4447 | fi |
4448 | ||
93613951 TT |
4449 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
4450 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
4451 | if ${ac_cv_path_GREP+:} false; then : | |
4452 | $as_echo_n "(cached) " >&6 | |
57aa50d4 | 4453 | else |
93613951 TT |
4454 | if test -z "$GREP"; then |
4455 | ac_path_GREP_found=false | |
4456 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4457 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4458 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4459 | do | |
4460 | IFS=$as_save_IFS | |
4461 | test -z "$as_dir" && as_dir=. | |
4462 | for ac_prog in grep ggrep; do | |
4463 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4464 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
4465 | as_fn_executable_p "$ac_path_GREP" || continue | |
4466 | # Check for GNU ac_path_GREP and select it if it is found. | |
4467 | # Check for GNU $ac_path_GREP | |
4468 | case `"$ac_path_GREP" --version 2>&1` in | |
4469 | *GNU*) | |
4470 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
4471 | *) | |
4472 | ac_count=0 | |
4473 | $as_echo_n 0123456789 >"conftest.in" | |
4474 | while : | |
4475 | do | |
4476 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4477 | mv "conftest.tmp" "conftest.in" | |
4478 | cp "conftest.in" "conftest.nl" | |
4479 | $as_echo 'GREP' >> "conftest.nl" | |
4480 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4481 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4482 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4483 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
4484 | # Best one so far, save it but keep looking for a better one | |
4485 | ac_cv_path_GREP="$ac_path_GREP" | |
4486 | ac_path_GREP_max=$ac_count | |
4487 | fi | |
4488 | # 10*(2^10) chars as input seems more than enough | |
4489 | test $ac_count -gt 10 && break | |
4490 | done | |
4491 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4492 | esac | |
14b596d4 | 4493 | |
93613951 TT |
4494 | $ac_path_GREP_found && break 3 |
4495 | done | |
4496 | done | |
4497 | done | |
4498 | IFS=$as_save_IFS | |
4499 | if test -z "$ac_cv_path_GREP"; then | |
4500 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4501 | fi | |
57aa50d4 | 4502 | else |
93613951 TT |
4503 | ac_cv_path_GREP=$GREP |
4504 | fi | |
57aa50d4 | 4505 | |
14b596d4 | 4506 | fi |
93613951 TT |
4507 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
4508 | $as_echo "$ac_cv_path_GREP" >&6; } | |
4509 | GREP="$ac_cv_path_GREP" | |
14b596d4 | 4510 | |
14b596d4 | 4511 | |
93613951 TT |
4512 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
4513 | $as_echo_n "checking for egrep... " >&6; } | |
4514 | if ${ac_cv_path_EGREP+:} false; then : | |
4515 | $as_echo_n "(cached) " >&6 | |
5aa6c3f6 | 4516 | else |
93613951 TT |
4517 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
4518 | then ac_cv_path_EGREP="$GREP -E" | |
4519 | else | |
4520 | if test -z "$EGREP"; then | |
4521 | ac_path_EGREP_found=false | |
4522 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4523 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4524 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4525 | do | |
4526 | IFS=$as_save_IFS | |
4527 | test -z "$as_dir" && as_dir=. | |
4528 | for ac_prog in egrep; do | |
4529 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4530 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
4531 | as_fn_executable_p "$ac_path_EGREP" || continue | |
4532 | # Check for GNU ac_path_EGREP and select it if it is found. | |
4533 | # Check for GNU $ac_path_EGREP | |
4534 | case `"$ac_path_EGREP" --version 2>&1` in | |
4535 | *GNU*) | |
4536 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4537 | *) | |
4538 | ac_count=0 | |
4539 | $as_echo_n 0123456789 >"conftest.in" | |
4540 | while : | |
4541 | do | |
4542 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4543 | mv "conftest.tmp" "conftest.in" | |
4544 | cp "conftest.in" "conftest.nl" | |
4545 | $as_echo 'EGREP' >> "conftest.nl" | |
4546 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4547 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4548 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4549 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
4550 | # Best one so far, save it but keep looking for a better one | |
4551 | ac_cv_path_EGREP="$ac_path_EGREP" | |
4552 | ac_path_EGREP_max=$ac_count | |
4553 | fi | |
4554 | # 10*(2^10) chars as input seems more than enough | |
4555 | test $ac_count -gt 10 && break | |
4556 | done | |
4557 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4558 | esac | |
5aa6c3f6 | 4559 | |
93613951 TT |
4560 | $ac_path_EGREP_found && break 3 |
4561 | done | |
4562 | done | |
4563 | done | |
4564 | IFS=$as_save_IFS | |
4565 | if test -z "$ac_cv_path_EGREP"; then | |
4566 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4567 | fi | |
5aa6c3f6 | 4568 | else |
93613951 TT |
4569 | ac_cv_path_EGREP=$EGREP |
4570 | fi | |
183c73b0 | 4571 | |
93613951 | 4572 | fi |
183c73b0 | 4573 | fi |
93613951 TT |
4574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
4575 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
4576 | EGREP="$ac_cv_path_EGREP" | |
183c73b0 TT |
4577 | |
4578 | ||
93613951 TT |
4579 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
4580 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
4581 | if ${ac_cv_header_stdc+:} false; then : | |
4582 | $as_echo_n "(cached) " >&6 | |
91d11da1 | 4583 | else |
93613951 TT |
4584 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4585 | /* end confdefs.h. */ | |
4586 | #include <stdlib.h> | |
4587 | #include <stdarg.h> | |
4588 | #include <string.h> | |
4589 | #include <float.h> | |
91d11da1 | 4590 | |
93613951 TT |
4591 | int |
4592 | main () | |
4593 | { | |
183c73b0 | 4594 | |
93613951 TT |
4595 | ; |
4596 | return 0; | |
4597 | } | |
4598 | _ACEOF | |
4599 | if ac_fn_c_try_compile "$LINENO"; then : | |
4600 | ac_cv_header_stdc=yes | |
183c73b0 | 4601 | else |
93613951 | 4602 | ac_cv_header_stdc=no |
5aa6c3f6 | 4603 | fi |
93613951 | 4604 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5aa6c3f6 | 4605 | |
93613951 TT |
4606 | if test $ac_cv_header_stdc = yes; then |
4607 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4608 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4609 | /* end confdefs.h. */ | |
4610 | #include <string.h> | |
4611 | ||
4612 | _ACEOF | |
4613 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4614 | $EGREP "memchr" >/dev/null 2>&1; then : | |
4615 | ||
4616 | else | |
4617 | ac_cv_header_stdc=no | |
4618 | fi | |
4619 | rm -f conftest* | |
4620 | ||
4621 | fi | |
4622 | ||
4623 | if test $ac_cv_header_stdc = yes; then | |
4624 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4625 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4626 | /* end confdefs.h. */ | |
4627 | #include <stdlib.h> | |
4628 | ||
4629 | _ACEOF | |
4630 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4631 | $EGREP "free" >/dev/null 2>&1; then : | |
4632 | ||
4633 | else | |
4634 | ac_cv_header_stdc=no | |
4635 | fi | |
4636 | rm -f conftest* | |
4637 | ||
4638 | fi | |
4639 | ||
4640 | if test $ac_cv_header_stdc = yes; then | |
4641 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4642 | if test "$cross_compiling" = yes; then : | |
4643 | : | |
4644 | else | |
4645 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4646 | /* end confdefs.h. */ | |
4647 | #include <ctype.h> | |
4648 | #include <stdlib.h> | |
4649 | #if ((' ' & 0x0FF) == 0x020) | |
4650 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4651 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4652 | #else | |
4653 | # define ISLOWER(c) \ | |
4654 | (('a' <= (c) && (c) <= 'i') \ | |
4655 | || ('j' <= (c) && (c) <= 'r') \ | |
4656 | || ('s' <= (c) && (c) <= 'z')) | |
4657 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4658 | #endif | |
4659 | ||
4660 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4661 | int | |
4662 | main () | |
4663 | { | |
4664 | int i; | |
4665 | for (i = 0; i < 256; i++) | |
4666 | if (XOR (islower (i), ISLOWER (i)) | |
4667 | || toupper (i) != TOUPPER (i)) | |
4668 | return 2; | |
4669 | return 0; | |
4670 | } | |
4671 | _ACEOF | |
4672 | if ac_fn_c_try_run "$LINENO"; then : | |
4673 | ||
4674 | else | |
4675 | ac_cv_header_stdc=no | |
4676 | fi | |
4677 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
4678 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
4679 | fi | |
4680 | ||
4681 | fi | |
4682 | fi | |
4683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
4684 | $as_echo "$ac_cv_header_stdc" >&6; } | |
4685 | if test $ac_cv_header_stdc = yes; then | |
4686 | ||
4687 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
4688 | ||
4689 | fi | |
4690 | ||
4691 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
4692 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4693 | inttypes.h stdint.h unistd.h | |
4694 | do : | |
4695 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4696 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
4697 | " | |
4698 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
4699 | cat >>confdefs.h <<_ACEOF | |
4700 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4701 | _ACEOF | |
4702 | ||
4703 | fi | |
4704 | ||
4705 | done | |
4706 | ||
4707 | ||
4708 | ||
4709 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" | |
4710 | if test "x$ac_cv_header_minix_config_h" = xyes; then : | |
4711 | MINIX=yes | |
4712 | else | |
4713 | MINIX= | |
4714 | fi | |
4715 | ||
4716 | ||
4717 | if test "$MINIX" = yes; then | |
4718 | ||
4719 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h | |
4720 | ||
4721 | ||
4722 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h | |
4723 | ||
4724 | ||
4725 | $as_echo "#define _MINIX 1" >>confdefs.h | |
4726 | ||
4727 | fi | |
4728 | ||
4729 | ||
4730 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 | |
4731 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | |
4732 | if ${ac_cv_safe_to_define___extensions__+:} false; then : | |
4733 | $as_echo_n "(cached) " >&6 | |
4734 | else | |
4735 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4736 | /* end confdefs.h. */ | |
4737 | ||
4738 | # define __EXTENSIONS__ 1 | |
4739 | $ac_includes_default | |
4740 | int | |
4741 | main () | |
4742 | { | |
4743 | ||
4744 | ; | |
4745 | return 0; | |
4746 | } | |
4747 | _ACEOF | |
4748 | if ac_fn_c_try_compile "$LINENO"; then : | |
4749 | ac_cv_safe_to_define___extensions__=yes | |
4750 | else | |
4751 | ac_cv_safe_to_define___extensions__=no | |
4752 | fi | |
4753 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4754 | fi | |
4755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 | |
4756 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | |
4757 | test $ac_cv_safe_to_define___extensions__ = yes && | |
4758 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | |
4759 | ||
4760 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h | |
4761 | ||
4762 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h | |
4763 | ||
4764 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h | |
4765 | ||
4766 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h | |
4767 | ||
4768 | ||
4769 | LIB_EXT=.a | |
4770 | STATIC_LIB_EXT=.a | |
4771 | PROFILED_LIB_EXT=.a | |
4772 | ||
4773 | # Check whether --with-root-prefix was given. | |
4774 | if test "${with_root_prefix+set}" = set; then : | |
4775 | withval=$with_root_prefix; root_prefix=$withval | |
4776 | else | |
4777 | root_prefix=NONE | |
4778 | fi | |
4779 | # Check whether --enable-maintainer-mode was given. | |
4780 | if test "${enable_maintainer_mode+set}" = set; then : | |
4781 | enableval=$enable_maintainer_mode; if test "$enableval" = "no" | |
4782 | then | |
4783 | MAINTAINER_CMT=# | |
4784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5 | |
4785 | $as_echo "Disabling maintainer mode" >&6; } | |
4786 | else | |
4787 | MAINTAINER_CMT= | |
4788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5 | |
4789 | $as_echo "Enabling maintainer mode" >&6; } | |
4790 | fi | |
4791 | ||
4792 | else | |
4793 | MAINTAINER_CMT=# | |
4794 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5 | |
4795 | $as_echo "Disabling maintainer mode by default" >&6; } | |
4796 | ||
4797 | fi | |
4798 | ||
4799 | ||
4800 | # Check whether --enable-symlink-install was given. | |
4801 | if test "${enable_symlink_install+set}" = set; then : | |
4802 | enableval=$enable_symlink_install; if test "$enableval" = "no" | |
4803 | then | |
4804 | LINK_INSTALL_FLAGS=-f | |
4805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5 | |
4806 | $as_echo "Disabling symlinks for install" >&6; } | |
4807 | else | |
4808 | LINK_INSTALL_FLAGS=-sf | |
4809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5 | |
4810 | $as_echo "Enabling symlinks for install" >&6; } | |
4811 | fi | |
4812 | ||
4813 | else | |
4814 | LINK_INSTALL_FLAGS=-f | |
4815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5 | |
4816 | $as_echo "Disabling symlinks for install by default" >&6; } | |
4817 | ||
4818 | fi | |
4819 | ||
4820 | ||
4821 | relative_symlink_defined= | |
4822 | # Check whether --enable-relative-symlinks was given. | |
4823 | if test "${enable_relative_symlinks+set}" = set; then : | |
4824 | enableval=$enable_relative_symlinks; if test "$enableval" = "no" | |
4825 | then | |
4826 | SYMLINK_RELATIVE= | |
4827 | relative_symlink_defined=yes | |
4828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5 | |
4829 | $as_echo "Disabling relative symlinks for install" >&6; } | |
4830 | else | |
4831 | SYMLINK_RELATIVE=--relative | |
4832 | relative_symlink_defined=yes | |
4833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5 | |
4834 | $as_echo "Enabling relative symlinks for install" >&6; } | |
4835 | fi | |
4836 | fi | |
4837 | ||
4838 | # Check whether --enable-symlink-relative-symlinks was given. | |
4839 | if test "${enable_symlink_relative_symlinks+set}" = set; then : | |
4840 | enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no" | |
4841 | then | |
4842 | SYMLINK_RELATIVE=yes | |
4843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5 | |
4844 | $as_echo "Disabling relative symlinks for install" >&6; } | |
4845 | else | |
4846 | SYMLINK_RELATIVE=--relative | |
4847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5 | |
4848 | $as_echo "Enabling relative symlinks for install" >&6; } | |
4849 | fi | |
4850 | ||
4851 | else | |
4852 | if test -z "$relative_symlink_defined" | |
4853 | then | |
4854 | SYMLINK_RELATIVE= | |
4855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5 | |
4856 | $as_echo "Disabling relative symlinks for install by default" >&6; } | |
4857 | fi | |
4858 | ||
4859 | fi | |
4860 | ||
4861 | ||
4862 | # Check whether --enable-symlink-build was given. | |
4863 | if test "${enable_symlink_build+set}" = set; then : | |
5aa6c3f6 TT |
4864 | enableval=$enable_symlink_build; if test "$enableval" = "no" |
4865 | then | |
4866 | LINK_BUILD_FLAGS= | |
4867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5 | |
4868 | $as_echo "Disabling symlinks for build" >&6; } | |
4869 | else | |
4870 | LINK_BUILD_FLAGS=-s | |
4871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5 | |
4872 | $as_echo "Enabling symlinks for build" >&6; } | |
4873 | fi | |
4874 | ||
4875 | else | |
4876 | LINK_BUILD_FLAGS= | |
183c73b0 TT |
4877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5 |
4878 | $as_echo "Disabling symlinks for build by default" >&6; } | |
5aa6c3f6 TT |
4879 | |
4880 | fi | |
4881 | ||
4882 | ||
57aa50d4 TT |
4883 | # Check whether --enable-verbose-makecmds was given. |
4884 | if test "${enable_verbose_makecmds+set}" = set; then : | |
4885 | enableval=$enable_verbose_makecmds; if test "$enableval" = "no" | |
4886 | then | |
4887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5 | |
4888 | $as_echo "Disabling verbose make commands" >&6; } | |
4889 | E=@echo | |
c1986ecb | 4890 | ES=echo |
57aa50d4 | 4891 | Q=@ |
14b596d4 | 4892 | else |
57aa50d4 TT |
4893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5 |
4894 | $as_echo "Enabling verbose make commands" >&6; } | |
4895 | E=@\\# | |
c1986ecb | 4896 | ES=\\# |
57aa50d4 TT |
4897 | Q= |
4898 | fi | |
14b596d4 | 4899 | |
14b596d4 | 4900 | else |
57aa50d4 TT |
4901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5 |
4902 | $as_echo "Disabling verbose make commands" >&6; } | |
4903 | E=@echo | |
c1986ecb | 4904 | ES=echo |
57aa50d4 | 4905 | Q=@ |
14b596d4 | 4906 | |
14b596d4 TT |
4907 | fi |
4908 | ||
14b596d4 | 4909 | |
57aa50d4 | 4910 | |
c1986ecb | 4911 | |
57aa50d4 TT |
4912 | E2_PKG_CONFIG_STATIC=--static |
4913 | LDFLAG_DYNAMIC= | |
4914 | PRIVATE_LIBS_CMT= | |
4915 | # Check whether --enable-elf-shlibs was given. | |
4916 | if test "${enable_elf_shlibs+set}" = set; then : | |
4917 | enableval=$enable_elf_shlibs; if test "$enableval" = "no" | |
cdf186e4 | 4918 | then |
57aa50d4 TT |
4919 | ELF_CMT=# |
4920 | MAKEFILE_ELF=/dev/null | |
4921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5 | |
4922 | $as_echo "Disabling ELF shared libraries" >&6; } | |
cdf186e4 | 4923 | else |
57aa50d4 TT |
4924 | E2_PKG_CONFIG_STATIC= |
4925 | ELF_CMT= | |
4926 | MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib | |
4927 | case "$host_os" in | |
4928 | solaris2.*) | |
4929 | MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib | |
4930 | ;; | |
4931 | esac | |
4932 | BINARY_TYPE=elfbin | |
4933 | LIB_EXT=.so | |
4934 | PRIVATE_LIBS_CMT=# | |
4935 | LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib' | |
4936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5 | |
4937 | $as_echo "Enabling ELF shared libraries" >&6; } | |
cdf186e4 TT |
4938 | fi |
4939 | ||
4940 | else | |
57aa50d4 TT |
4941 | MAKEFILE_ELF=/dev/null |
4942 | ELF_CMT=# | |
4943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5 | |
4944 | $as_echo "Disabling ELF shared libraries by default" >&6; } | |
cdf186e4 | 4945 | |
e1052144 TT |
4946 | fi |
4947 | ||
cdf186e4 | 4948 | |
57aa50d4 TT |
4949 | |
4950 | # Check whether --enable-bsd-shlibs was given. | |
4951 | if test "${enable_bsd_shlibs+set}" = set; then : | |
4952 | enableval=$enable_bsd_shlibs; if test "$enableval" = "no" | |
cdf186e4 | 4953 | then |
57aa50d4 TT |
4954 | BSDLIB_CMT=# |
4955 | MAKEFILE_BSDLIB=/dev/null | |
4956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5 | |
4957 | $as_echo "Disabling BSD shared libraries" >&6; } | |
cdf186e4 | 4958 | else |
57aa50d4 TT |
4959 | E2_PKG_CONFIG_STATIC= |
4960 | BSDLIB_CMT= | |
4961 | MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib | |
4962 | LIB_EXT=.so | |
4963 | case "$host_os" in | |
4964 | darwin*) | |
4965 | MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib | |
4966 | LIB_EXT=.dylib | |
4967 | ;; | |
4968 | esac | |
4969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5 | |
4970 | $as_echo "Enabling BSD shared libraries" >&6; } | |
cdf186e4 TT |
4971 | fi |
4972 | ||
4973 | else | |
57aa50d4 TT |
4974 | MAKEFILE_BSDLIB=/dev/null |
4975 | BSDLIB_CMT=# | |
4976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5 | |
4977 | $as_echo "Disabling BSD shared libraries by default" >&6; } | |
cdf186e4 | 4978 | |
e1052144 TT |
4979 | fi |
4980 | ||
cdf186e4 | 4981 | |
57aa50d4 TT |
4982 | |
4983 | # Check whether --enable-profile was given. | |
4984 | if test "${enable_profile+set}" = set; then : | |
4985 | enableval=$enable_profile; if test "$enableval" = "no" | |
cdf186e4 | 4986 | then |
57aa50d4 TT |
4987 | PROFILE_CMT=# |
4988 | MAKEFILE_PROFILE=/dev/null | |
4989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5 | |
4990 | $as_echo "Disabling profiling libraries" >&6; } | |
cdf186e4 | 4991 | else |
57aa50d4 TT |
4992 | PROFILE_CMT= |
4993 | MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile | |
4994 | PROFILED_LIB_EXT=_p.a | |
4995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5 | |
4996 | $as_echo "Building profiling libraries" >&6; } | |
cdf186e4 TT |
4997 | fi |
4998 | ||
4999 | else | |
57aa50d4 TT |
5000 | PROFILE_CMT=# |
5001 | MAKEFILE_PROFILE=/dev/null | |
5002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5 | |
5003 | $as_echo "Disabling profiling libraries by default" >&6; } | |
cdf186e4 | 5004 | |
e1052144 TT |
5005 | fi |
5006 | ||
cdf186e4 | 5007 | |
57aa50d4 | 5008 | |
fedfb27f TT |
5009 | # Check whether --enable-gcov was given. |
5010 | if test "${enable_gcov+set}" = set; then : | |
5011 | enableval=$enable_gcov; if test "$enableval" = "yes" | |
5012 | then | |
5013 | CFLAGS="-g -fprofile-arcs -ftest-coverage" | |
5014 | LDFLAGS="-fprofile-arcs -ftest-coverage" | |
5015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling gcov support" >&5 | |
5016 | $as_echo "Enabling gcov support" >&6; } | |
5017 | fi | |
5018 | ||
5019 | fi | |
5020 | ||
fd1677e8 TT |
5021 | CFLAGS_SHLIB="${CFLAGS_SHLIB:-$CFLAGS}" |
5022 | CFLAGS_STLIB="${CFLAGS_STLIB:-$CFLAGS}" | |
5023 | LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS} | |
5024 | LDFLAGS_STATIC=${LDFLAGS_STATIC:-$LDFLAGS} | |
5025 | # Check whether --enable-hardening was given. | |
5026 | if test "${enable_hardening+set}" = set; then : | |
5027 | enableval=$enable_hardening; if test "$enableval" = "yes" | |
5028 | then | |
5029 | HARDEN_CFLAGS="-D_FORTIFY_SOURCE=2 -fstack-protector-strong" | |
5030 | HARDEN_LDFLAGS="-Wl,-z,relro -Wl,-z,now" | |
5031 | CFLAGS="$CFLAGS $HARDEN_CFLAGS -fPIE" | |
5032 | CFLAGS_SHLIB="$CFLAGS_SHLIB $HARDEN_CFLAGS" | |
5033 | CFLAGS_STLIB="$CFLAGS_STLIB $HARDEN_CFLAGS -fPIE" | |
5034 | LDFLAGS="$LDFLAGS $HARDEN_LDFLAGS -fPIE -pie" | |
5035 | LDFLAGS_STATIC="$LDFLAGS_STATIC $HARDEN_LDFLAGS" | |
5036 | LDFLAGS_SHLIB="$LDFLAGS_SHLIB $HARDEN_LDFLAGS" | |
5037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling hardening support" >&5 | |
5038 | $as_echo "Enabling hardening support" >&6; } | |
5039 | fi | |
5040 | ||
5041 | fi | |
cdf186e4 | 5042 | |
57aa50d4 TT |
5043 | |
5044 | ||
5045 | ||
5046 | ||
5047 | ||
5048 | # Check whether --enable-jbd-debug was given. | |
5049 | if test "${enable_jbd_debug+set}" = set; then : | |
5050 | enableval=$enable_jbd_debug; if test "$enableval" = "no" | |
5d40773b | 5051 | then |
57aa50d4 TT |
5052 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5 |
5053 | $as_echo "Disabling journal debugging" >&6; } | |
5d40773b | 5054 | else |
d1154eb4 TT |
5055 | |
5056 | $as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h | |
57aa50d4 TT |
5057 | |
5058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5 | |
5059 | $as_echo "Enabling journal debugging" >&6; } | |
5d40773b TT |
5060 | fi |
5061 | ||
5062 | else | |
57aa50d4 TT |
5063 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5 |
5064 | $as_echo "Disabling journal debugging by default" >&6; } | |
5d40773b | 5065 | |
e1052144 TT |
5066 | fi |
5067 | ||
57aa50d4 TT |
5068 | # Check whether --enable-blkid-debug was given. |
5069 | if test "${enable_blkid_debug+set}" = set; then : | |
5070 | enableval=$enable_blkid_debug; if test "$enableval" = "no" | |
3249394d | 5071 | then |
57aa50d4 TT |
5072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5 |
5073 | $as_echo "Disabling blkid debugging" >&6; } | |
3249394d | 5074 | else |
d1154eb4 TT |
5075 | |
5076 | $as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h | |
57aa50d4 TT |
5077 | |
5078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5 | |
5079 | $as_echo "Enabling blkid debugging" >&6; } | |
3249394d TT |
5080 | fi |
5081 | ||
5082 | else | |
57aa50d4 TT |
5083 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5 |
5084 | $as_echo "Disabling blkid debugging by default" >&6; } | |
3249394d TT |
5085 | |
5086 | fi | |
5087 | ||
57aa50d4 TT |
5088 | # Check whether --enable-testio-debug was given. |
5089 | if test "${enable_testio_debug+set}" = set; then : | |
d1154eb4 TT |
5090 | enableval=$enable_testio_debug; |
5091 | if test "$enableval" = "no" | |
3249394d | 5092 | then |
57aa50d4 TT |
5093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5 |
5094 | $as_echo "Disabling testio debugging" >&6; } | |
5095 | TEST_IO_CMT="#" | |
3249394d | 5096 | else |
57aa50d4 TT |
5097 | TEST_IO_CMT= |
5098 | $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h | |
3249394d | 5099 | |
57aa50d4 TT |
5100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5 |
5101 | $as_echo "Enabling testio debugging" >&6; } | |
5102 | fi | |
3249394d | 5103 | |
3249394d | 5104 | else |
57aa50d4 TT |
5105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5 |
5106 | $as_echo "Enabling testio debugging by default" >&6; } | |
5107 | $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h | |
3249394d | 5108 | |
57aa50d4 | 5109 | TEST_IO_CMT= |
3249394d TT |
5110 | |
5111 | fi | |
5112 | ||
3249394d | 5113 | |
57aa50d4 TT |
5114 | |
5115 | ||
93613951 TT |
5116 | |
5117 | ||
5118 | ||
5119 | ||
5120 | ||
57aa50d4 | 5121 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
93613951 | 5122 | if test -n "$ac_tool_prefix"; then |
57aa50d4 TT |
5123 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
5124 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
5125 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5126 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6a4bcb5 | 5127 | if ${ac_cv_path_PKG_CONFIG+:} false; then : |
57aa50d4 TT |
5128 | $as_echo_n "(cached) " >&6 |
5129 | else | |
5130 | case $PKG_CONFIG in | |
5131 | [\\/]* | ?:[\\/]*) | |
5132 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
5133 | ;; | |
5134 | *) | |
5135 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5136 | for as_dir in $PATH | |
5137 | do | |
5138 | IFS=$as_save_IFS | |
5139 | test -z "$as_dir" && as_dir=. | |
5140 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d6a4bcb5 | 5141 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
57aa50d4 TT |
5142 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
5143 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5144 | break 2 | |
5145 | fi | |
5146 | done | |
5147 | done | |
5148 | IFS=$as_save_IFS | |
5149 | ||
5150 | ;; | |
5151 | esac | |
5152 | fi | |
5153 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
5154 | if test -n "$PKG_CONFIG"; then | |
5155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | |
5156 | $as_echo "$PKG_CONFIG" >&6; } | |
5157 | else | |
5158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5159 | $as_echo "no" >&6; } | |
3249394d TT |
5160 | fi |
5161 | ||
5162 | ||
57aa50d4 TT |
5163 | fi |
5164 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
5165 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
5166 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
5167 | set dummy pkg-config; ac_word=$2 | |
5168 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5169 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6a4bcb5 | 5170 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : |
57aa50d4 TT |
5171 | $as_echo_n "(cached) " >&6 |
5172 | else | |
5173 | case $ac_pt_PKG_CONFIG in | |
5174 | [\\/]* | ?:[\\/]*) | |
5175 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
5176 | ;; | |
5177 | *) | |
5178 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5179 | for as_dir in $PATH | |
5180 | do | |
5181 | IFS=$as_save_IFS | |
5182 | test -z "$as_dir" && as_dir=. | |
5183 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d6a4bcb5 | 5184 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
57aa50d4 TT |
5185 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
5186 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5187 | break 2 | |
5188 | fi | |
5189 | done | |
5190 | done | |
5191 | IFS=$as_save_IFS | |
3249394d | 5192 | |
57aa50d4 TT |
5193 | ;; |
5194 | esac | |
5195 | fi | |
5196 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
5197 | if test -n "$ac_pt_PKG_CONFIG"; then | |
5198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | |
5199 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | |
5200 | else | |
5201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5202 | $as_echo "no" >&6; } | |
5203 | fi | |
3249394d | 5204 | |
57aa50d4 TT |
5205 | if test "x$ac_pt_PKG_CONFIG" = x; then |
5206 | PKG_CONFIG="" | |
5207 | else | |
5208 | case $cross_compiling:$ac_tool_warned in | |
5209 | yes:) | |
5210 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5211 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5212 | ac_tool_warned=yes ;; | |
5213 | esac | |
5214 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
3249394d | 5215 | fi |
57aa50d4 TT |
5216 | else |
5217 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
5218 | fi | |
3249394d TT |
5219 | |
5220 | fi | |
57aa50d4 | 5221 | if test -n "$PKG_CONFIG"; then |
93613951 TT |
5222 | _pkg_min_version=0.9.0 |
5223 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 | |
57aa50d4 | 5224 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } |
93613951 TT |
5225 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
5226 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
57aa50d4 | 5227 | $as_echo "yes" >&6; } |
93613951 TT |
5228 | else |
5229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
57aa50d4 | 5230 | $as_echo "no" >&6; } |
93613951 TT |
5231 | PKG_CONFIG="" |
5232 | fi | |
57aa50d4 TT |
5233 | fi |
5234 | LIBUUID= | |
5235 | DEPLIBUUID= | |
5236 | STATIC_LIBUUID= | |
5237 | DEPSTATIC_LIBUUID= | |
5238 | PROFILED_LIBUUID= | |
5239 | DEPPROFILED_LIBUUID= | |
5240 | UUID_CMT= | |
5241 | # Check whether --enable-libuuid was given. | |
5242 | if test "${enable_libuuid+set}" = set; then : | |
5243 | enableval=$enable_libuuid; if test "$enableval" = "no" | |
5610f992 | 5244 | then |
57aa50d4 | 5245 | if test -z "$PKG_CONFIG"; then |
d6a4bcb5 | 5246 | as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5 |
57aa50d4 TT |
5247 | fi |
5248 | ||
5249 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5 | |
5250 | $as_echo_n "checking for uuid_generate in -luuid... " >&6; } | |
d6a4bcb5 | 5251 | if ${ac_cv_lib_uuid_uuid_generate+:} false; then : |
57aa50d4 | 5252 | $as_echo_n "(cached) " >&6 |
5610f992 | 5253 | else |
57aa50d4 | 5254 | ac_check_lib_save_LIBS=$LIBS |
2d7583bd | 5255 | LIBS="-luuid $LIBS" |
57aa50d4 TT |
5256 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5257 | /* end confdefs.h. */ | |
5610f992 | 5258 | |
57aa50d4 TT |
5259 | /* Override any GCC internal prototype to avoid an error. |
5260 | Use char because int might match the return type of a GCC | |
5261 | builtin and then its argument prototype would still apply. */ | |
5262 | #ifdef __cplusplus | |
5263 | extern "C" | |
5264 | #endif | |
5265 | char uuid_generate (); | |
5266 | int | |
5267 | main () | |
5268 | { | |
5269 | return uuid_generate (); | |
5270 | ; | |
5271 | return 0; | |
5272 | } | |
5273 | _ACEOF | |
5274 | if ac_fn_c_try_link "$LINENO"; then : | |
5275 | ac_cv_lib_uuid_uuid_generate=yes | |
5276 | else | |
5277 | ac_cv_lib_uuid_uuid_generate=no | |
5278 | fi | |
5279 | rm -f core conftest.err conftest.$ac_objext \ | |
5280 | conftest$ac_exeext conftest.$ac_ext | |
5281 | LIBS=$ac_check_lib_save_LIBS | |
5282 | fi | |
5283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5 | |
5284 | $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; } | |
d6a4bcb5 | 5285 | if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then : |
57aa50d4 TT |
5286 | LIBUUID=`$PKG_CONFIG --libs uuid`; |
5287 | STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid` | |
5288 | else | |
d6a4bcb5 | 5289 | as_fn_error $? "external uuid library not found" "$LINENO" 5 |
5610f992 TT |
5290 | fi |
5291 | ||
5afdf37b | 5292 | PROFILED_LIBUUID=$LIBUUID |
57aa50d4 TT |
5293 | UUID_CMT=# |
5294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5 | |
5295 | $as_echo "Disabling private uuid library" >&6; } | |
5610f992 | 5296 | else |
57aa50d4 TT |
5297 | LIBUUID='$(LIB)/libuuid'$LIB_EXT |
5298 | DEPLIBUUID=$LIBUUID | |
5299 | STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT | |
5300 | DEPSTATIC_LIBUUID=$STATIC_LIBUUID | |
5301 | PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT | |
5302 | DEPPROFILED_LIBUUID=$PROFILED_LIBUUID | |
5303 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5 | |
5304 | $as_echo "Enabling private uuid library" >&6; } | |
5305 | fi | |
5610f992 | 5306 | |
57aa50d4 | 5307 | else |
f5dffb81 TT |
5308 | if test -n "$PKG_CONFIG"; then |
5309 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5 | |
5310 | $as_echo_n "checking for uuid_generate in -luuid... " >&6; } | |
5311 | if ${ac_cv_lib_uuid_uuid_generate+:} false; then : | |
5312 | $as_echo_n "(cached) " >&6 | |
5313 | else | |
5314 | ac_check_lib_save_LIBS=$LIBS | |
5315 | LIBS="-luuid $LIBS" | |
5316 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5317 | /* end confdefs.h. */ | |
5318 | ||
5319 | /* Override any GCC internal prototype to avoid an error. | |
5320 | Use char because int might match the return type of a GCC | |
5321 | builtin and then its argument prototype would still apply. */ | |
5322 | #ifdef __cplusplus | |
5323 | extern "C" | |
5324 | #endif | |
5325 | char uuid_generate (); | |
5326 | int | |
5327 | main () | |
5328 | { | |
5329 | return uuid_generate (); | |
5330 | ; | |
5331 | return 0; | |
5332 | } | |
5333 | _ACEOF | |
5334 | if ac_fn_c_try_link "$LINENO"; then : | |
5335 | ac_cv_lib_uuid_uuid_generate=yes | |
5336 | else | |
5337 | ac_cv_lib_uuid_uuid_generate=no | |
5338 | fi | |
5339 | rm -f core conftest.err conftest.$ac_objext \ | |
5340 | conftest$ac_exeext conftest.$ac_ext | |
5341 | LIBS=$ac_check_lib_save_LIBS | |
5342 | fi | |
5343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5 | |
5344 | $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; } | |
5345 | if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then : | |
5346 | LIBUUID=`$PKG_CONFIG --libs uuid`; | |
5347 | STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid` | |
5348 | fi | |
5349 | ||
5350 | fi | |
5351 | if test -n "$LIBUUID"; then | |
5352 | PROFILED_LIBUUID=$LIBUUID | |
5353 | UUID_CMT=# | |
5354 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system uuid by default" >&5 | |
5355 | $as_echo "Using system uuid by default" >&6; } | |
5356 | else | |
5357 | LIBUUID='$(LIB)/libuuid'$LIB_EXT | |
5358 | DEPLIBUUID=$LIBUUID | |
5359 | STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT | |
5360 | DEPSTATIC_LIBUUID=$STATIC_LIBUUID | |
5361 | PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT | |
5362 | DEPPROFILED_LIBUUID=$PROFILED_LIBUUID | |
5363 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5 | |
57aa50d4 | 5364 | $as_echo "Enabling private uuid library by default" >&6; } |
f5dffb81 | 5365 | fi |
5610f992 TT |
5366 | |
5367 | fi | |
5368 | ||
5369 | ||
cdf186e4 | 5370 | |
a64c9c13 | 5371 | |
93636bde TT |
5372 | |
5373 | ||
93636bde | 5374 | |
93636bde TT |
5375 | |
5376 | ||
57aa50d4 | 5377 | |
93613951 TT |
5378 | |
5379 | ||
5380 | ||
5381 | ||
5382 | ||
57aa50d4 | 5383 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
93613951 | 5384 | if test -n "$ac_tool_prefix"; then |
57aa50d4 TT |
5385 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
5386 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
5387 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5388 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6a4bcb5 | 5389 | if ${ac_cv_path_PKG_CONFIG+:} false; then : |
39fd3d4f | 5390 | $as_echo_n "(cached) " >&6 |
a64c9c13 | 5391 | else |
57aa50d4 TT |
5392 | case $PKG_CONFIG in |
5393 | [\\/]* | ?:[\\/]*) | |
5394 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
5395 | ;; | |
e1052144 | 5396 | *) |
b0cacab0 TT |
5397 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5398 | for as_dir in $PATH | |
5399 | do | |
5400 | IFS=$as_save_IFS | |
5401 | test -z "$as_dir" && as_dir=. | |
57aa50d4 | 5402 | for ac_exec_ext in '' $ac_executable_extensions; do |
d6a4bcb5 | 5403 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
57aa50d4 TT |
5404 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
5405 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5406 | break 2 | |
5407 | fi | |
b0cacab0 | 5408 | done |
57aa50d4 | 5409 | done |
e1052144 | 5410 | IFS=$as_save_IFS |
b0cacab0 | 5411 | |
57aa50d4 | 5412 | ;; |
b0cacab0 TT |
5413 | esac |
5414 | fi | |
57aa50d4 TT |
5415 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
5416 | if test -n "$PKG_CONFIG"; then | |
5417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | |
5418 | $as_echo "$PKG_CONFIG" >&6; } | |
07a0db15 | 5419 | else |
57aa50d4 | 5420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
39fd3d4f | 5421 | $as_echo "no" >&6; } |
07a0db15 | 5422 | fi |
07a0db15 | 5423 | |
57aa50d4 TT |
5424 | |
5425 | fi | |
5426 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
5427 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
5428 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
5429 | set dummy pkg-config; ac_word=$2 | |
5430 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
39fd3d4f | 5431 | $as_echo_n "checking for $ac_word... " >&6; } |
d6a4bcb5 | 5432 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : |
39fd3d4f | 5433 | $as_echo_n "(cached) " >&6 |
a64c9c13 | 5434 | else |
57aa50d4 | 5435 | case $ac_pt_PKG_CONFIG in |
b0cacab0 | 5436 | [\\/]* | ?:[\\/]*) |
57aa50d4 | 5437 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
b0cacab0 TT |
5438 | ;; |
5439 | *) | |
5440 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5441 | for as_dir in $PATH | |
5442 | do | |
5443 | IFS=$as_save_IFS | |
5444 | test -z "$as_dir" && as_dir=. | |
57aa50d4 | 5445 | for ac_exec_ext in '' $ac_executable_extensions; do |
d6a4bcb5 | 5446 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
57aa50d4 TT |
5447 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
5448 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
b0cacab0 TT |
5449 | break 2 |
5450 | fi | |
5451 | done | |
57aa50d4 | 5452 | done |
e1052144 | 5453 | IFS=$as_save_IFS |
a64c9c13 | 5454 | |
b0cacab0 TT |
5455 | ;; |
5456 | esac | |
a64c9c13 | 5457 | fi |
57aa50d4 TT |
5458 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
5459 | if test -n "$ac_pt_PKG_CONFIG"; then | |
5460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | |
5461 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | |
a64c9c13 | 5462 | else |
57aa50d4 | 5463 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
39fd3d4f | 5464 | $as_echo "no" >&6; } |
a64c9c13 | 5465 | fi |
a64c9c13 | 5466 | |
57aa50d4 TT |
5467 | if test "x$ac_pt_PKG_CONFIG" = x; then |
5468 | PKG_CONFIG="" | |
b0cacab0 | 5469 | else |
57aa50d4 TT |
5470 | case $cross_compiling:$ac_tool_warned in |
5471 | yes:) | |
5472 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5473 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5474 | ac_tool_warned=yes ;; | |
5475 | esac | |
5476 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
b0cacab0 | 5477 | fi |
57aa50d4 TT |
5478 | else |
5479 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
a64c9c13 | 5480 | fi |
93636bde | 5481 | |
a64c9c13 | 5482 | fi |
57aa50d4 | 5483 | if test -n "$PKG_CONFIG"; then |
93613951 TT |
5484 | _pkg_min_version=0.9.0 |
5485 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 | |
57aa50d4 | 5486 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } |
93613951 TT |
5487 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
5488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
57aa50d4 | 5489 | $as_echo "yes" >&6; } |
93613951 TT |
5490 | else |
5491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
57aa50d4 | 5492 | $as_echo "no" >&6; } |
93613951 TT |
5493 | PKG_CONFIG="" |
5494 | fi | |
57aa50d4 TT |
5495 | fi |
5496 | LIBBLKID= | |
5497 | DEPLIBBLKID= | |
5498 | STATIC_LIBBLKID= | |
5499 | DEPSTATIC_LIBBLKID= | |
5500 | PROFILED_LIBBLKID= | |
5501 | DEPPROFILED_LIBBLKID= | |
5502 | BLKID_CMT= | |
d1154eb4 | 5503 | |
57aa50d4 TT |
5504 | # Check whether --enable-libblkid was given. |
5505 | if test "${enable_libblkid+set}" = set; then : | |
5506 | enableval=$enable_libblkid; if test "$enableval" = "no" | |
5507 | then | |
5508 | if test -z "$PKG_CONFIG"; then | |
d6a4bcb5 | 5509 | as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5 |
57aa50d4 TT |
5510 | fi |
5511 | ||
5512 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5 | |
5513 | $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; } | |
d6a4bcb5 | 5514 | if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then : |
39fd3d4f | 5515 | $as_echo_n "(cached) " >&6 |
a64c9c13 | 5516 | else |
57aa50d4 | 5517 | ac_check_lib_save_LIBS=$LIBS |
2d7583bd | 5518 | LIBS="-lblkid -luuid $LIBS" |
57aa50d4 TT |
5519 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5520 | /* end confdefs.h. */ | |
5521 | ||
5522 | /* Override any GCC internal prototype to avoid an error. | |
5523 | Use char because int might match the return type of a GCC | |
5524 | builtin and then its argument prototype would still apply. */ | |
5525 | #ifdef __cplusplus | |
5526 | extern "C" | |
5527 | #endif | |
5528 | char blkid_get_cache (); | |
5529 | int | |
5530 | main () | |
5531 | { | |
5532 | return blkid_get_cache (); | |
5533 | ; | |
5534 | return 0; | |
5535 | } | |
5536 | _ACEOF | |
5537 | if ac_fn_c_try_link "$LINENO"; then : | |
5538 | ac_cv_lib_blkid_blkid_get_cache=yes | |
b0cacab0 | 5539 | else |
57aa50d4 | 5540 | ac_cv_lib_blkid_blkid_get_cache=no |
a64c9c13 | 5541 | fi |
57aa50d4 TT |
5542 | rm -f core conftest.err conftest.$ac_objext \ |
5543 | conftest$ac_exeext conftest.$ac_ext | |
5544 | LIBS=$ac_check_lib_save_LIBS | |
a64c9c13 | 5545 | fi |
57aa50d4 TT |
5546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5 |
5547 | $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; } | |
d6a4bcb5 | 5548 | if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then : |
57aa50d4 TT |
5549 | LIBBLKID=`$PKG_CONFIG --libs blkid`; |
5550 | STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid` | |
b0cacab0 | 5551 | else |
d6a4bcb5 | 5552 | as_fn_error $? "external blkid library not found" "$LINENO" 5 |
a64c9c13 | 5553 | fi |
93636bde | 5554 | |
57aa50d4 | 5555 | BLKID_CMT=# |
5afdf37b | 5556 | PROFILED_LIBBLKID=$LIBBLKID |
57aa50d4 TT |
5557 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5 |
5558 | $as_echo "Disabling private blkid library" >&6; } | |
07a0db15 | 5559 | else |
57aa50d4 TT |
5560 | LIBBLKID='$(LIB)/libblkid'$LIB_EXT |
5561 | DEPLIBBLKID=$LIBBLKID | |
5562 | STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT | |
5563 | DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID | |
5564 | PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT | |
5565 | DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID | |
5566 | $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h | |
5567 | ||
5568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5 | |
5569 | $as_echo "Enabling private blkid library" >&6; } | |
b0cacab0 | 5570 | fi |
57aa50d4 | 5571 | |
a64c9c13 | 5572 | else |
f5dffb81 TT |
5573 | if test -n "$PKG_CONFIG"; then |
5574 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5 | |
5575 | $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; } | |
5576 | if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then : | |
5577 | $as_echo_n "(cached) " >&6 | |
5578 | else | |
5579 | ac_check_lib_save_LIBS=$LIBS | |
5580 | LIBS="-lblkid $LIBS" | |
5581 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5582 | /* end confdefs.h. */ | |
5583 | ||
5584 | /* Override any GCC internal prototype to avoid an error. | |
5585 | Use char because int might match the return type of a GCC | |
5586 | builtin and then its argument prototype would still apply. */ | |
5587 | #ifdef __cplusplus | |
5588 | extern "C" | |
5589 | #endif | |
5590 | char blkid_get_cache (); | |
5591 | int | |
5592 | main () | |
5593 | { | |
5594 | return blkid_get_cache (); | |
5595 | ; | |
5596 | return 0; | |
5597 | } | |
5598 | _ACEOF | |
5599 | if ac_fn_c_try_link "$LINENO"; then : | |
5600 | ac_cv_lib_blkid_blkid_get_cache=yes | |
5601 | else | |
5602 | ac_cv_lib_blkid_blkid_get_cache=no | |
5603 | fi | |
5604 | rm -f core conftest.err conftest.$ac_objext \ | |
5605 | conftest$ac_exeext conftest.$ac_ext | |
5606 | LIBS=$ac_check_lib_save_LIBS | |
5607 | fi | |
5608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5 | |
5609 | $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; } | |
5610 | if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then : | |
5611 | LIBBLKID=`$PKG_CONFIG --libs blkid`; | |
5612 | STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid` | |
5613 | fi | |
5614 | ||
5615 | fi | |
5616 | if test -n "$LIBBLKID"; then | |
5617 | BLKID_CMT=# | |
5618 | PROFILED_LIBBLKID=$LIBBLKID | |
5619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system blkid library by default" >&5 | |
5620 | $as_echo "Using system blkid library by default" >&6; } | |
5621 | else | |
5622 | LIBBLKID='$(LIB)/libblkid'$LIB_EXT | |
5623 | DEPLIBBLKID=$LIBBLKID | |
5624 | STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT | |
5625 | DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID | |
5626 | PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT | |
5627 | DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID | |
5628 | $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h | |
57aa50d4 | 5629 | |
f5dffb81 | 5630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5 |
57aa50d4 | 5631 | $as_echo "Enabling private blkid library by default" >&6; } |
f5dffb81 | 5632 | fi |
57aa50d4 | 5633 | |
a64c9c13 | 5634 | fi |
07a0db15 | 5635 | |
a64c9c13 | 5636 | |
b0cacab0 | 5637 | |
b0cacab0 | 5638 | |
a64c9c13 | 5639 | |
b0cacab0 | 5640 | |
07a0db15 | 5641 | |
57aa50d4 | 5642 | |
3df6014a TT |
5643 | |
5644 | # Check whether --enable-backtrace was given. | |
5645 | if test "${enable_backtrace+set}" = set; then : | |
5646 | enableval=$enable_backtrace; if test "$enableval" = "no" | |
5647 | then | |
5648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5 | |
5649 | $as_echo "Disabling use of backtrace" >&6; } | |
5650 | $as_echo "#define DISABLE_BACKTRACE 1" >>confdefs.h | |
5651 | ||
5652 | else | |
5653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5 | |
5654 | $as_echo "Enabling use of backtrace" >&6; } | |
5655 | fi | |
5656 | ||
5657 | else | |
5658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5 | |
5659 | $as_echo "Enabling use of backtrace by default" >&6; } | |
5660 | ||
5661 | fi | |
5662 | ||
57aa50d4 TT |
5663 | # Check whether --enable-debugfs was given. |
5664 | if test "${enable_debugfs+set}" = set; then : | |
5665 | enableval=$enable_debugfs; if test "$enableval" = "no" | |
5666 | then | |
5667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5 | |
5668 | $as_echo "Disabling debugfs support" >&6; } | |
5669 | DEBUGFS_CMT="#" | |
b0cacab0 | 5670 | else |
57aa50d4 TT |
5671 | DEBUGFS_CMT= |
5672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5 | |
5673 | $as_echo "Enabling debugfs support" >&6; } | |
b0cacab0 | 5674 | fi |
a64c9c13 | 5675 | |
b0cacab0 | 5676 | else |
57aa50d4 TT |
5677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5 |
5678 | $as_echo "Enabling debugfs support by default" >&6; } | |
5679 | DEBUGFS_CMT= | |
a64c9c13 | 5680 | |
93636bde | 5681 | fi |
57aa50d4 TT |
5682 | |
5683 | ||
5684 | # Check whether --enable-imager was given. | |
5685 | if test "${enable_imager+set}" = set; then : | |
5686 | enableval=$enable_imager; if test "$enableval" = "no" | |
5687 | then | |
5688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5 | |
5689 | $as_echo "Disabling e2image support" >&6; } | |
5690 | IMAGER_CMT="#" | |
b0cacab0 | 5691 | else |
57aa50d4 TT |
5692 | IMAGER_CMT= |
5693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5 | |
5694 | $as_echo "Enabling e2image support" >&6; } | |
b0cacab0 TT |
5695 | fi |
5696 | ||
b0cacab0 | 5697 | else |
57aa50d4 TT |
5698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5 |
5699 | $as_echo "Enabling e2image support by default" >&6; } | |
5700 | IMAGER_CMT= | |
5701 | ||
93636bde TT |
5702 | fi |
5703 | ||
a64c9c13 | 5704 | |
57aa50d4 TT |
5705 | # Check whether --enable-resizer was given. |
5706 | if test "${enable_resizer+set}" = set; then : | |
5707 | enableval=$enable_resizer; if test "$enableval" = "no" | |
5708 | then | |
5709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5 | |
5710 | $as_echo "Disabling e2resize support" >&6; } | |
5711 | RESIZER_CMT="#" | |
b0cacab0 | 5712 | else |
57aa50d4 TT |
5713 | RESIZER_CMT= |
5714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5 | |
5715 | $as_echo "Enabling e2resize support" >&6; } | |
5716 | fi | |
b0cacab0 | 5717 | |
b0cacab0 | 5718 | else |
57aa50d4 TT |
5719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5 |
5720 | $as_echo "Enabling e2resize support by default" >&6; } | |
5721 | RESIZER_CMT= | |
b0cacab0 | 5722 | |
b0cacab0 | 5723 | fi |
e1052144 | 5724 | |
57aa50d4 | 5725 | |
8d9c50c5 TT |
5726 | # Check whether --enable-defrag was given. |
5727 | if test "${enable_defrag+set}" = set; then : | |
5728 | enableval=$enable_defrag; if test "$enableval" = "no" | |
5729 | then | |
5730 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5 | |
5731 | $as_echo "Disabling e4defrag support" >&6; } | |
5732 | DEFRAG_CMT="#" | |
5733 | else | |
5734 | DEFRAG_CMT= | |
5735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5 | |
5736 | $as_echo "Enabling e4defrag support" >&6; } | |
5737 | fi | |
5738 | ||
5739 | else | |
6c59a665 TT |
5740 | if test -z "$WITH_DIET_LIBC" |
5741 | then | |
5742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5 | |
8d9c50c5 | 5743 | $as_echo "Enabling e4defrag support by default" >&6; } |
6c59a665 TT |
5744 | DEFRAG_CMT= |
5745 | else | |
5746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5 | |
5747 | $as_echo "Disabling e4defrag support by default" >&6; } | |
5748 | DEFRAG_CMT="#" | |
5749 | fi | |
8d9c50c5 TT |
5750 | |
5751 | fi | |
5752 | ||
5753 | ||
57aa50d4 TT |
5754 | # Check whether --enable-fsck was given. |
5755 | if test "${enable_fsck+set}" = set; then : | |
5756 | enableval=$enable_fsck; if test "$enableval" = "no" | |
5757 | then | |
5758 | FSCK_PROG='' FSCK_MAN='' | |
5759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5 | |
5760 | $as_echo "Not building fsck wrapper" >&6; } | |
5761 | else | |
5762 | FSCK_PROG=fsck FSCK_MAN=fsck.8 | |
5763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5 | |
5764 | $as_echo "Building fsck wrapper" >&6; } | |
a64c9c13 TT |
5765 | fi |
5766 | ||
57aa50d4 TT |
5767 | else |
5768 | case "$host_os" in | |
5769 | gnu*) | |
5770 | FSCK_PROG='' FSCK_MAN='' | |
5771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5 | |
5772 | $as_echo "Not building fsck wrapper by default" >&6; } | |
5773 | ;; | |
5774 | *) | |
5775 | FSCK_PROG=fsck FSCK_MAN=fsck.8 | |
5776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5 | |
5777 | $as_echo "Building fsck wrapper by default" >&6; } | |
5778 | esac | |
b0cacab0 | 5779 | |
57aa50d4 | 5780 | fi |
b0cacab0 | 5781 | |
93636bde | 5782 | |
b0cacab0 | 5783 | |
57aa50d4 TT |
5784 | # Check whether --enable-e2initrd-helper was given. |
5785 | if test "${enable_e2initrd_helper+set}" = set; then : | |
5786 | enableval=$enable_e2initrd_helper; if test "$enableval" = "no" | |
5787 | then | |
5788 | E2INITRD_PROG='' E2INITRD_MAN='' | |
5789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5 | |
5790 | $as_echo "Not building e2initrd helper" >&6; } | |
5791 | else | |
5792 | E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8 | |
5793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5 | |
5794 | $as_echo "Building e2initrd helper" >&6; } | |
5795 | fi | |
a64c9c13 | 5796 | |
a64c9c13 | 5797 | else |
57aa50d4 TT |
5798 | E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8 |
5799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5 | |
5800 | $as_echo "Building e2initrd helper by default" >&6; } | |
b0cacab0 | 5801 | |
a64c9c13 | 5802 | fi |
e1052144 | 5803 | |
57aa50d4 TT |
5804 | |
5805 | ||
5806 | # Check whether --enable-tls was given. | |
5807 | if test "${enable_tls+set}" = set; then : | |
5808 | enableval=$enable_tls; if test "$enableval" = "no" | |
5809 | then | |
5810 | try_tls="" | |
5811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5 | |
5812 | $as_echo "Disabling thread local support" >&6; } | |
5813 | else | |
5814 | try_tls="yes" | |
5815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5 | |
5816 | $as_echo "Enabling thread local support" >&6; } | |
a64c9c13 TT |
5817 | fi |
5818 | ||
57aa50d4 TT |
5819 | else |
5820 | if test -n "$WITH_DIET_LIBC" | |
5821 | then | |
5822 | try_tls="" | |
5823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5 | |
5824 | $as_echo "Diet libc does not support thread local support" >&6; } | |
5825 | else | |
5826 | try_tls="yes" | |
5827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5 | |
5828 | $as_echo "Try using thread local support by default" >&6; } | |
5829 | fi | |
a64c9c13 | 5830 | |
93636bde | 5831 | fi |
07a0db15 | 5832 | |
57aa50d4 TT |
5833 | if test "$try_tls" = "yes" |
5834 | then | |
a64c9c13 | 5835 | |
57aa50d4 TT |
5836 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5 |
5837 | $as_echo_n "checking for thread local storage (TLS) class... " >&6; } | |
d6a4bcb5 | 5838 | if ${ac_cv_tls+:} false; then : |
39fd3d4f | 5839 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 5840 | else |
b0cacab0 | 5841 | |
57aa50d4 TT |
5842 | ax_tls_keywords="__thread __declspec(thread) none" |
5843 | for ax_tls_keyword in $ax_tls_keywords; do | |
5844 | case $ax_tls_keyword in | |
5845 | none) ac_cv_tls=none ; break ;; | |
5846 | *) | |
5847 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5848 | /* end confdefs.h. */ | |
5849 | #include <stdlib.h> | |
5850 | static void | |
5851 | foo(void) { | |
5852 | static $ax_tls_keyword int bar; | |
5853 | exit(1); | |
5854 | } | |
b0cacab0 TT |
5855 | int |
5856 | main () | |
5857 | { | |
57aa50d4 | 5858 | |
b0cacab0 TT |
5859 | ; |
5860 | return 0; | |
5861 | } | |
5862 | _ACEOF | |
57aa50d4 TT |
5863 | if ac_fn_c_try_compile "$LINENO"; then : |
5864 | ac_cv_tls=$ax_tls_keyword ; break | |
b0cacab0 | 5865 | else |
57aa50d4 | 5866 | ac_cv_tls=none |
b0cacab0 | 5867 | |
b0cacab0 | 5868 | fi |
e1052144 | 5869 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
57aa50d4 TT |
5870 | esac |
5871 | done | |
5872 | ||
b0cacab0 | 5873 | fi |
b0cacab0 | 5874 | |
57aa50d4 TT |
5875 | |
5876 | if test "$ac_cv_tls" != "none"; then | |
5877 | ||
5878 | cat >>confdefs.h <<_ACEOF | |
5879 | #define TLS $ac_cv_tls | |
b0cacab0 | 5880 | _ACEOF |
93636bde | 5881 | |
b0cacab0 | 5882 | fi |
57aa50d4 TT |
5883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5 |
5884 | $as_echo "$ac_cv_tls" >&6; } | |
b0cacab0 | 5885 | |
57aa50d4 | 5886 | fi |
d1154eb4 | 5887 | |
57aa50d4 TT |
5888 | # Check whether --enable-uuidd was given. |
5889 | if test "${enable_uuidd+set}" = set; then : | |
5890 | enableval=$enable_uuidd; if test "$enableval" = "no" | |
5891 | then | |
5892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5 | |
5893 | $as_echo "Not building uuidd" >&6; } | |
5894 | UUIDD_CMT="#" | |
a64c9c13 | 5895 | else |
57aa50d4 TT |
5896 | $as_echo "#define USE_UUIDD 1" >>confdefs.h |
5897 | ||
5898 | UUIDD_CMT="" | |
5899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5 | |
5900 | $as_echo "Building uuidd" >&6; } | |
5901 | fi | |
a64c9c13 | 5902 | |
a64c9c13 | 5903 | else |
57aa50d4 | 5904 | $as_echo "#define USE_UUIDD 1" >>confdefs.h |
a64c9c13 | 5905 | |
e3d10158 TT |
5906 | if test -z "$UUID_CMT" |
5907 | then | |
5908 | UUIDD_CMT="" | |
5909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5 | |
57aa50d4 | 5910 | $as_echo "Building uuidd by default" >&6; } |
e3d10158 TT |
5911 | else |
5912 | UUIDD_CMT="#" | |
5913 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling uuidd by default" >&5 | |
5914 | $as_echo "Disabling uuidd by default" >&6; } | |
5915 | fi | |
e1052144 | 5916 | |
a64c9c13 | 5917 | fi |
e1052144 | 5918 | |
93636bde | 5919 | |
d6a4bcb5 TB |
5920 | |
5921 | # Check whether --enable-mmp was given. | |
5922 | if test "${enable_mmp+set}" = set; then : | |
5923 | enableval=$enable_mmp; if test "$enableval" = "no" | |
5924 | then | |
5925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling mmp support" >&5 | |
5926 | $as_echo "Disabling mmp support" >&6; } | |
5927 | else | |
5928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support" >&5 | |
5929 | $as_echo "Enabling mmp support" >&6; } | |
5930 | $as_echo "#define CONFIG_MMP 1" >>confdefs.h | |
5931 | ||
5932 | fi | |
5933 | ||
5934 | else | |
5935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5 | |
5936 | $as_echo "Enabling mmp support by default" >&6; } | |
5937 | $as_echo "#define CONFIG_MMP 1" >>confdefs.h | |
5938 | ||
5939 | ||
1625bf42 TB |
5940 | fi |
5941 | ||
5942 | ||
749f0712 TT |
5943 | # Check whether --enable-tdb was given. |
5944 | if test "${enable_tdb+set}" = set; then : | |
5945 | enableval=$enable_tdb; if test "$enableval" = "no" | |
5946 | then | |
5947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling tdb support" >&5 | |
5948 | $as_echo "Disabling tdb support" >&6; } | |
5949 | TDB_CMT="#" | |
5950 | TDB_MAN_COMMENT='.\"' | |
5951 | else | |
5952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling tdb support" >&5 | |
5953 | $as_echo "Enabling tdb support" >&6; } | |
5954 | $as_echo "#define CONFIG_TDB 1" >>confdefs.h | |
5955 | ||
5956 | TDB_CMT="" | |
5957 | TDB_MAN_COMMENT="" | |
5958 | fi | |
5959 | ||
5960 | else | |
5961 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5 | |
5962 | $as_echo "Enabling mmp support by default" >&6; } | |
5963 | $as_echo "#define CONFIG_TDB 1" >>confdefs.h | |
5964 | ||
5965 | TDB_CMT="" | |
5966 | TDB_MAN_COMMENT="" | |
5967 | ||
5968 | fi | |
5969 | ||
5970 | ||
5971 | ||
5972 | ||
1625bf42 TB |
5973 | # Check whether --enable-bmap-stats was given. |
5974 | if test "${enable_bmap_stats+set}" = set; then : | |
5975 | enableval=$enable_bmap_stats; if test "$enableval" = "no" | |
5976 | then | |
5977 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling bitmap statistics support" >&5 | |
5978 | $as_echo "Disabling bitmap statistics support" >&6; } | |
5979 | else | |
5980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support" >&5 | |
5981 | $as_echo "Enabling bitmap statistics support" >&6; } | |
5982 | $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h | |
5983 | ||
5984 | fi | |
5985 | ||
5986 | else | |
5987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support by default" >&5 | |
5988 | $as_echo "Enabling bitmap statistics support by default" >&6; } | |
5989 | $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h | |
5990 | ||
5991 | ||
5992 | fi | |
5993 | ||
5994 | ||
5995 | # Check whether --enable-bmap-stats-ops was given. | |
5996 | if test "${enable_bmap_stats_ops+set}" = set; then : | |
5997 | enableval=$enable_bmap_stats_ops; if test "$enableval" = "no" | |
5998 | then | |
5999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics" >&5 | |
6000 | $as_echo "Disabling additional bitmap statistics" >&6; } | |
6001 | else | |
6002 | if test "x${enable_bmap_stats}" = "xno"; then : | |
6003 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
6004 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
6005 | as_fn_error $? "Error --enable-bmap-stats-ops requires bmap-stats | |
6006 | See \`config.log' for more details" "$LINENO" 5; } | |
6007 | fi | |
6008 | ||
6009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling additional bitmap statistics" >&5 | |
6010 | $as_echo "Enabling additional bitmap statistics" >&6; } | |
6011 | $as_echo "#define ENABLE_BMAP_STATS_OPS 1" >>confdefs.h | |
6012 | ||
6013 | fi | |
6014 | ||
6015 | else | |
6016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics by default" >&5 | |
6017 | $as_echo "Disabling additional bitmap statistics by default" >&6; } | |
6018 | ||
d6a4bcb5 TB |
6019 | fi |
6020 | ||
57aa50d4 | 6021 | MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library |
a64c9c13 | 6022 | |
57aa50d4 TT |
6023 | GETTEXT_PACKAGE=e2fsprogs |
6024 | PACKAGE=e2fsprogs | |
6025 | VERSION="$E2FSPROGS_VERSION" | |
6026 | VERSION=0.14.1 | |
d1154eb4 | 6027 | |
57aa50d4 TT |
6028 | cat >>confdefs.h <<_ACEOF |
6029 | #define PACKAGE "$PACKAGE" | |
b0cacab0 | 6030 | _ACEOF |
a64c9c13 | 6031 | |
d1154eb4 | 6032 | |
57aa50d4 TT |
6033 | cat >>confdefs.h <<_ACEOF |
6034 | #define VERSION "$VERSION" | |
6035 | _ACEOF | |
6036 | ||
6037 | ||
6038 | ||
6039 | ||
6040 | ||
6041 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
6042 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
6043 | set x ${MAKE-make} | |
6044 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
d6a4bcb5 | 6045 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
39fd3d4f | 6046 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 6047 | else |
57aa50d4 TT |
6048 | cat >conftest.make <<\_ACEOF |
6049 | SHELL = /bin/sh | |
6050 | all: | |
6051 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
b0cacab0 | 6052 | _ACEOF |
d6a4bcb5 | 6053 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
57aa50d4 TT |
6054 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
6055 | *@@@%%%=?*=@@@%%%*) | |
6056 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
6057 | *) | |
6058 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
e1052144 | 6059 | esac |
57aa50d4 TT |
6060 | rm -f conftest.make |
6061 | fi | |
6062 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
6063 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
6064 | $as_echo "yes" >&6; } | |
6065 | SET_MAKE= | |
39fd3d4f | 6066 | else |
57aa50d4 TT |
6067 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6068 | $as_echo "no" >&6; } | |
6069 | SET_MAKE="MAKE=${MAKE-make}" | |
39fd3d4f SJR |
6070 | fi |
6071 | ||
57aa50d4 TT |
6072 | # Find a good install program. We prefer a C program (faster), |
6073 | # so one script is as good as another. But avoid the broken or | |
6074 | # incompatible versions: | |
6075 | # SysV /etc/install, /usr/sbin/install | |
6076 | # SunOS /usr/etc/install | |
6077 | # IRIX /sbin/install | |
6078 | # AIX /bin/install | |
6079 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
6080 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
6081 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
6082 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
6083 | # OS/2's system install, which has a completely different semantic | |
6084 | # ./install, which can be erroneously created by make from ./install.sh. | |
6085 | # Reject install programs that cannot install multiple files. | |
6086 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
6087 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
6088 | if test -z "$INSTALL"; then | |
d6a4bcb5 | 6089 | if ${ac_cv_path_install+:} false; then : |
57aa50d4 | 6090 | $as_echo_n "(cached) " >&6 |
93636bde | 6091 | else |
57aa50d4 TT |
6092 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6093 | for as_dir in $PATH | |
6094 | do | |
6095 | IFS=$as_save_IFS | |
6096 | test -z "$as_dir" && as_dir=. | |
6097 | # Account for people who put trailing slashes in PATH elements. | |
6098 | case $as_dir/ in #(( | |
6099 | ./ | .// | /[cC]/* | \ | |
6100 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
6101 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
6102 | /usr/ucb/* ) ;; | |
6103 | *) | |
6104 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
6105 | # Don't use installbsd from OSF since it installs stuff as root | |
6106 | # by default. | |
6107 | for ac_prog in ginstall scoinst install; do | |
6108 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d6a4bcb5 | 6109 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
57aa50d4 TT |
6110 | if test $ac_prog = install && |
6111 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
6112 | # AIX install. It has an incompatible calling convention. | |
6113 | : | |
6114 | elif test $ac_prog = install && | |
6115 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
6116 | # program-specific install script used by HP pwplus--don't use. | |
6117 | : | |
6118 | else | |
6119 | rm -rf conftest.one conftest.two conftest.dir | |
6120 | echo one > conftest.one | |
6121 | echo two > conftest.two | |
6122 | mkdir conftest.dir | |
6123 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
6124 | test -s conftest.one && test -s conftest.two && | |
6125 | test -s conftest.dir/conftest.one && | |
6126 | test -s conftest.dir/conftest.two | |
6127 | then | |
6128 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
6129 | break 3 | |
6130 | fi | |
6131 | fi | |
6132 | fi | |
6133 | done | |
6134 | done | |
6135 | ;; | |
6136 | esac | |
6137 | ||
6138 | done | |
6139 | IFS=$as_save_IFS | |
b0cacab0 | 6140 | |
57aa50d4 | 6141 | rm -rf conftest.one conftest.two conftest.dir |
39fd3d4f | 6142 | |
93636bde | 6143 | fi |
57aa50d4 TT |
6144 | if test "${ac_cv_path_install+set}" = set; then |
6145 | INSTALL=$ac_cv_path_install | |
6146 | else | |
6147 | # As a last resort, use the slow shell script. Don't cache a | |
6148 | # value for INSTALL within a source directory, because that will | |
6149 | # break other packages using the cache if that directory is | |
6150 | # removed, or if the value is a relative name. | |
6151 | INSTALL=$ac_install_sh | |
6152 | fi | |
93636bde | 6153 | fi |
57aa50d4 TT |
6154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
6155 | $as_echo "$INSTALL" >&6; } | |
a64c9c13 | 6156 | |
57aa50d4 TT |
6157 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
6158 | # It thinks the first close brace ends the variable substitution. | |
6159 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
b0cacab0 | 6160 | |
57aa50d4 | 6161 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
a64c9c13 | 6162 | |
57aa50d4 | 6163 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
39fd3d4f | 6164 | |
93613951 TT |
6165 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
6166 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
6167 | if test -z "$MKDIR_P"; then | |
6168 | if ${ac_cv_path_mkdir+:} false; then : | |
6169 | $as_echo_n "(cached) " >&6 | |
6170 | else | |
6171 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6172 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
6173 | do | |
6174 | IFS=$as_save_IFS | |
6175 | test -z "$as_dir" && as_dir=. | |
6176 | for ac_prog in mkdir gmkdir; do | |
6177 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6178 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue | |
6179 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
6180 | 'mkdir (GNU coreutils) '* | \ | |
6181 | 'mkdir (coreutils) '* | \ | |
6182 | 'mkdir (fileutils) '4.1*) | |
6183 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
6184 | break 3;; | |
6185 | esac | |
6186 | done | |
6187 | done | |
6188 | done | |
6189 | IFS=$as_save_IFS | |
6190 | ||
6191 | fi | |
39fd3d4f | 6192 | |
93613951 TT |
6193 | test -d ./--version && rmdir ./--version |
6194 | if test "${ac_cv_path_mkdir+set}" = set; then | |
6195 | MKDIR_P="$ac_cv_path_mkdir -p" | |
6196 | else | |
6197 | # As a last resort, use the slow shell script. Don't cache a | |
6198 | # value for MKDIR_P within a source directory, because that will | |
6199 | # break other packages using the cache if that directory is | |
6200 | # removed, or if the value is a relative name. | |
6201 | MKDIR_P="$ac_install_sh -d" | |
57aa50d4 | 6202 | fi |
93613951 TT |
6203 | fi |
6204 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | |
6205 | $as_echo "$MKDIR_P" >&6; } | |
6206 | ||
6207 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 | |
6208 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
6209 | if ${ac_cv_path_SED+:} false; then : | |
6210 | $as_echo_n "(cached) " >&6 | |
6211 | else | |
6212 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
6213 | for ac_i in 1 2 3 4 5 6 7; do | |
6214 | ac_script="$ac_script$as_nl$ac_script" | |
6215 | done | |
6216 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
6217 | { ac_script=; unset ac_script;} | |
6218 | if test -z "$SED"; then | |
6219 | ac_path_SED_found=false | |
6220 | # Loop through the user's path and test for each of PROGNAME-LIST | |
6221 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6222 | for as_dir in $PATH | |
6223 | do | |
6224 | IFS=$as_save_IFS | |
6225 | test -z "$as_dir" && as_dir=. | |
6226 | for ac_prog in sed gsed; do | |
6227 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6228 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
6229 | as_fn_executable_p "$ac_path_SED" || continue | |
6230 | # Check for GNU ac_path_SED and select it if it is found. | |
6231 | # Check for GNU $ac_path_SED | |
6232 | case `"$ac_path_SED" --version 2>&1` in | |
6233 | *GNU*) | |
6234 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
6235 | *) | |
6236 | ac_count=0 | |
6237 | $as_echo_n 0123456789 >"conftest.in" | |
6238 | while : | |
6239 | do | |
6240 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
6241 | mv "conftest.tmp" "conftest.in" | |
6242 | cp "conftest.in" "conftest.nl" | |
6243 | $as_echo '' >> "conftest.nl" | |
6244 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
6245 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
6246 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
6247 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
6248 | # Best one so far, save it but keep looking for a better one | |
6249 | ac_cv_path_SED="$ac_path_SED" | |
6250 | ac_path_SED_max=$ac_count | |
6251 | fi | |
6252 | # 10*(2^10) chars as input seems more than enough | |
6253 | test $ac_count -gt 10 && break | |
6254 | done | |
6255 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
6256 | esac | |
6257 | ||
6258 | $ac_path_SED_found && break 3 | |
6259 | done | |
6260 | done | |
6261 | done | |
6262 | IFS=$as_save_IFS | |
6263 | if test -z "$ac_cv_path_SED"; then | |
6264 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
57aa50d4 | 6265 | fi |
93613951 TT |
6266 | else |
6267 | ac_cv_path_SED=$SED | |
6268 | fi | |
b0cacab0 | 6269 | |
93613951 TT |
6270 | fi |
6271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
6272 | $as_echo "$ac_cv_path_SED" >&6; } | |
6273 | SED="$ac_cv_path_SED" | |
6274 | rm -f conftest.sed | |
39fd3d4f | 6275 | |
e1052144 | 6276 | |
57aa50d4 TT |
6277 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 |
6278 | $as_echo_n "checking whether NLS is requested... " >&6; } | |
6279 | # Check whether --enable-nls was given. | |
6280 | if test "${enable_nls+set}" = set; then : | |
6281 | enableval=$enable_nls; USE_NLS=$enableval | |
b0cacab0 | 6282 | else |
57aa50d4 TT |
6283 | USE_NLS=yes |
6284 | fi | |
b0cacab0 | 6285 | |
57aa50d4 TT |
6286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 |
6287 | $as_echo "$USE_NLS" >&6; } | |
93636bde | 6288 | |
a64c9c13 | 6289 | |
a64c9c13 | 6290 | |
b0cacab0 | 6291 | |
93613951 TT |
6292 | GETTEXT_MACRO_VERSION=0.18 |
6293 | ||
6294 | ||
b0cacab0 | 6295 | |
a64c9c13 | 6296 | |
57aa50d4 TT |
6297 | # Prepare PATH_SEPARATOR. |
6298 | # The user is always right. | |
6299 | if test "${PATH_SEPARATOR+set}" != set; then | |
93613951 TT |
6300 | # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which |
6301 | # contains only /bin. Note that ksh looks also at the FPATH variable, | |
6302 | # so we have to set that as well for the test. | |
6303 | PATH_SEPARATOR=: | |
6304 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ | |
6305 | && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ | |
6306 | || PATH_SEPARATOR=';' | |
6307 | } | |
57aa50d4 | 6308 | fi |
b0cacab0 | 6309 | |
57aa50d4 TT |
6310 | # Find out how to test for executable files. Don't use a zero-byte file, |
6311 | # as systems may use methods other than mode bits to determine executability. | |
6312 | cat >conf$$.file <<_ASEOF | |
6313 | #! /bin/sh | |
6314 | exit 0 | |
6315 | _ASEOF | |
6316 | chmod +x conf$$.file | |
6317 | if test -x conf$$.file >/dev/null 2>&1; then | |
6318 | ac_executable_p="test -x" | |
6319 | else | |
6320 | ac_executable_p="test -f" | |
6321 | fi | |
6322 | rm -f conf$$.file | |
b0cacab0 | 6323 | |
57aa50d4 TT |
6324 | # Extract the first word of "msgfmt", so it can be a program name with args. |
6325 | set dummy msgfmt; ac_word=$2 | |
6326 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6327 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6a4bcb5 | 6328 | if ${ac_cv_path_MSGFMT+:} false; then : |
39fd3d4f | 6329 | $as_echo_n "(cached) " >&6 |
93636bde | 6330 | else |
57aa50d4 TT |
6331 | case "$MSGFMT" in |
6332 | [\\/]* | ?:[\\/]*) | |
6333 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
6334 | ;; | |
6335 | *) | |
6336 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
6337 | for ac_dir in $PATH; do | |
6338 | IFS="$ac_save_IFS" | |
6339 | test -z "$ac_dir" && ac_dir=. | |
6340 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6341 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
93613951 TT |
6342 | echo "$as_me: trying $ac_dir/$ac_word..." >&5 |
6343 | if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 && | |
57aa50d4 TT |
6344 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
6345 | ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" | |
6346 | break 2 | |
6347 | fi | |
6348 | fi | |
6349 | done | |
6350 | done | |
6351 | IFS="$ac_save_IFS" | |
6352 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" | |
6353 | ;; | |
e1052144 | 6354 | esac |
b0cacab0 | 6355 | fi |
57aa50d4 TT |
6356 | MSGFMT="$ac_cv_path_MSGFMT" |
6357 | if test "$MSGFMT" != ":"; then | |
6358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 | |
6359 | $as_echo "$MSGFMT" >&6; } | |
6360 | else | |
6361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6362 | $as_echo "no" >&6; } | |
b0cacab0 | 6363 | fi |
a64c9c13 | 6364 | |
57aa50d4 TT |
6365 | # Extract the first word of "gmsgfmt", so it can be a program name with args. |
6366 | set dummy gmsgfmt; ac_word=$2 | |
6367 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6368 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6a4bcb5 | 6369 | if ${ac_cv_path_GMSGFMT+:} false; then : |
39fd3d4f | 6370 | $as_echo_n "(cached) " >&6 |
93636bde | 6371 | else |
57aa50d4 TT |
6372 | case $GMSGFMT in |
6373 | [\\/]* | ?:[\\/]*) | |
6374 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
6375 | ;; | |
6376 | *) | |
6377 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6378 | for as_dir in $PATH | |
6379 | do | |
6380 | IFS=$as_save_IFS | |
6381 | test -z "$as_dir" && as_dir=. | |
6382 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d6a4bcb5 | 6383 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
57aa50d4 TT |
6384 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" |
6385 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6386 | break 2 | |
6387 | fi | |
6388 | done | |
6389 | done | |
6390 | IFS=$as_save_IFS | |
a64c9c13 | 6391 | |
57aa50d4 TT |
6392 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
6393 | ;; | |
e1052144 | 6394 | esac |
57aa50d4 TT |
6395 | fi |
6396 | GMSGFMT=$ac_cv_path_GMSGFMT | |
6397 | if test -n "$GMSGFMT"; then | |
6398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 | |
6399 | $as_echo "$GMSGFMT" >&6; } | |
b0cacab0 | 6400 | else |
57aa50d4 TT |
6401 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6402 | $as_echo "no" >&6; } | |
b0cacab0 | 6403 | fi |
e1052144 | 6404 | |
b0cacab0 | 6405 | |
b0cacab0 | 6406 | |
93613951 TT |
6407 | case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in |
6408 | '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;; | |
6409 | *) MSGFMT_015=$MSGFMT ;; | |
6410 | esac | |
6411 | ||
6412 | case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in | |
6413 | '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;; | |
6414 | *) GMSGFMT_015=$GMSGFMT ;; | |
6415 | esac | |
6416 | ||
6417 | ||
57aa50d4 TT |
6418 | |
6419 | # Prepare PATH_SEPARATOR. | |
6420 | # The user is always right. | |
6421 | if test "${PATH_SEPARATOR+set}" != set; then | |
93613951 TT |
6422 | # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which |
6423 | # contains only /bin. Note that ksh looks also at the FPATH variable, | |
6424 | # so we have to set that as well for the test. | |
6425 | PATH_SEPARATOR=: | |
6426 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ | |
6427 | && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ | |
6428 | || PATH_SEPARATOR=';' | |
6429 | } | |
57aa50d4 | 6430 | fi |
b0cacab0 | 6431 | |
57aa50d4 TT |
6432 | # Find out how to test for executable files. Don't use a zero-byte file, |
6433 | # as systems may use methods other than mode bits to determine executability. | |
6434 | cat >conf$$.file <<_ASEOF | |
6435 | #! /bin/sh | |
6436 | exit 0 | |
6437 | _ASEOF | |
6438 | chmod +x conf$$.file | |
6439 | if test -x conf$$.file >/dev/null 2>&1; then | |
6440 | ac_executable_p="test -x" | |
6441 | else | |
6442 | ac_executable_p="test -f" | |
6443 | fi | |
6444 | rm -f conf$$.file | |
b0cacab0 | 6445 | |
57aa50d4 TT |
6446 | # Extract the first word of "xgettext", so it can be a program name with args. |
6447 | set dummy xgettext; ac_word=$2 | |
6448 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6449 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6a4bcb5 | 6450 | if ${ac_cv_path_XGETTEXT+:} false; then : |
39fd3d4f | 6451 | $as_echo_n "(cached) " >&6 |
a64c9c13 | 6452 | else |
57aa50d4 TT |
6453 | case "$XGETTEXT" in |
6454 | [\\/]* | ?:[\\/]*) | |
6455 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
6456 | ;; | |
6457 | *) | |
6458 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
6459 | for ac_dir in $PATH; do | |
6460 | IFS="$ac_save_IFS" | |
6461 | test -z "$ac_dir" && ac_dir=. | |
6462 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6463 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
93613951 TT |
6464 | echo "$as_me: trying $ac_dir/$ac_word..." >&5 |
6465 | if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 && | |
57aa50d4 TT |
6466 | (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
6467 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" | |
6468 | break 2 | |
6469 | fi | |
6470 | fi | |
6471 | done | |
6472 | done | |
6473 | IFS="$ac_save_IFS" | |
6474 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
6475 | ;; | |
e1052144 | 6476 | esac |
b0cacab0 | 6477 | fi |
57aa50d4 TT |
6478 | XGETTEXT="$ac_cv_path_XGETTEXT" |
6479 | if test "$XGETTEXT" != ":"; then | |
6480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 | |
6481 | $as_echo "$XGETTEXT" >&6; } | |
6482 | else | |
6483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6484 | $as_echo "no" >&6; } | |
b0cacab0 | 6485 | fi |
b0cacab0 | 6486 | |
57aa50d4 | 6487 | rm -f messages.po |
a64c9c13 | 6488 | |
93613951 TT |
6489 | case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in |
6490 | '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;; | |
6491 | *) XGETTEXT_015=$XGETTEXT ;; | |
6492 | esac | |
6493 | ||
6494 | ||
b0cacab0 | 6495 | |
57aa50d4 TT |
6496 | # Prepare PATH_SEPARATOR. |
6497 | # The user is always right. | |
6498 | if test "${PATH_SEPARATOR+set}" != set; then | |
93613951 TT |
6499 | # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which |
6500 | # contains only /bin. Note that ksh looks also at the FPATH variable, | |
6501 | # so we have to set that as well for the test. | |
6502 | PATH_SEPARATOR=: | |
6503 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ | |
6504 | && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ | |
6505 | || PATH_SEPARATOR=';' | |
6506 | } | |
57aa50d4 | 6507 | fi |
b0cacab0 | 6508 | |
57aa50d4 TT |
6509 | # Find out how to test for executable files. Don't use a zero-byte file, |
6510 | # as systems may use methods other than mode bits to determine executability. | |
6511 | cat >conf$$.file <<_ASEOF | |
6512 | #! /bin/sh | |
6513 | exit 0 | |
6514 | _ASEOF | |
6515 | chmod +x conf$$.file | |
6516 | if test -x conf$$.file >/dev/null 2>&1; then | |
6517 | ac_executable_p="test -x" | |
6518 | else | |
6519 | ac_executable_p="test -f" | |
6520 | fi | |
6521 | rm -f conf$$.file | |
6522 | ||
6523 | # Extract the first word of "msgmerge", so it can be a program name with args. | |
6524 | set dummy msgmerge; ac_word=$2 | |
6525 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6526 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6a4bcb5 | 6527 | if ${ac_cv_path_MSGMERGE+:} false; then : |
39fd3d4f | 6528 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 6529 | else |
57aa50d4 TT |
6530 | case "$MSGMERGE" in |
6531 | [\\/]* | ?:[\\/]*) | |
6532 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. | |
6533 | ;; | |
6534 | *) | |
6535 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
6536 | for ac_dir in $PATH; do | |
6537 | IFS="$ac_save_IFS" | |
6538 | test -z "$ac_dir" && ac_dir=. | |
6539 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6540 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
93613951 TT |
6541 | echo "$as_me: trying $ac_dir/$ac_word..." >&5 |
6542 | if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then | |
57aa50d4 TT |
6543 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" |
6544 | break 2 | |
6545 | fi | |
6546 | fi | |
6547 | done | |
6548 | done | |
6549 | IFS="$ac_save_IFS" | |
6550 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" | |
6551 | ;; | |
e1052144 | 6552 | esac |
57aa50d4 TT |
6553 | fi |
6554 | MSGMERGE="$ac_cv_path_MSGMERGE" | |
6555 | if test "$MSGMERGE" != ":"; then | |
6556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 | |
6557 | $as_echo "$MSGMERGE" >&6; } | |
b0cacab0 | 6558 | else |
57aa50d4 TT |
6559 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6560 | $as_echo "no" >&6; } | |
b0cacab0 | 6561 | fi |
e1052144 | 6562 | |
93636bde | 6563 | |
93613951 TT |
6564 | test -n "$localedir" || localedir='${datadir}/locale' |
6565 | ||
6566 | ||
6567 | test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS= | |
6568 | ||
6569 | ||
6570 | ac_config_commands="$ac_config_commands po-directories" | |
a64c9c13 | 6571 | |
a64c9c13 | 6572 | |
93613951 TT |
6573 | |
6574 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5 | |
6575 | $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; } | |
6576 | if ${ac_cv_gnu_library_2+:} false; then : | |
6577 | $as_echo_n "(cached) " >&6 | |
6578 | else | |
6579 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6580 | /* end confdefs.h. */ | |
6581 | ||
6582 | #include <features.h> | |
6583 | #ifdef __GNU_LIBRARY__ | |
6584 | #if (__GLIBC__ >= 2) && !defined __UCLIBC__ | |
6585 | Lucky GNU user | |
6586 | #endif | |
6587 | #endif | |
6588 | ||
6589 | _ACEOF | |
6590 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6591 | $EGREP "Lucky GNU user" >/dev/null 2>&1; then : | |
6592 | ac_cv_gnu_library_2=yes | |
6593 | else | |
6594 | ac_cv_gnu_library_2=no | |
6595 | fi | |
6596 | rm -f conftest* | |
6597 | ||
a64c9c13 | 6598 | |
a64c9c13 | 6599 | |
93613951 TT |
6600 | fi |
6601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5 | |
6602 | $as_echo "$ac_cv_gnu_library_2" >&6; } | |
6603 | ||
6604 | GLIBC2="$ac_cv_gnu_library_2" | |
57aa50d4 | 6605 | |
a64c9c13 | 6606 | |
57aa50d4 TT |
6607 | if test -n "$ac_tool_prefix"; then |
6608 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
6609 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
6610 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6611 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6a4bcb5 | 6612 | if ${ac_cv_prog_RANLIB+:} false; then : |
39fd3d4f | 6613 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 6614 | else |
57aa50d4 TT |
6615 | if test -n "$RANLIB"; then |
6616 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
b0cacab0 | 6617 | else |
57aa50d4 TT |
6618 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6619 | for as_dir in $PATH | |
6620 | do | |
6621 | IFS=$as_save_IFS | |
6622 | test -z "$as_dir" && as_dir=. | |
6623 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d6a4bcb5 | 6624 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
57aa50d4 TT |
6625 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
6626 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6627 | break 2 | |
6628 | fi | |
6629 | done | |
6630 | done | |
6631 | IFS=$as_save_IFS | |
d1154eb4 TT |
6632 | |
6633 | fi | |
6634 | fi | |
6635 | RANLIB=$ac_cv_prog_RANLIB | |
6636 | if test -n "$RANLIB"; then | |
6637 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
6638 | $as_echo "$RANLIB" >&6; } | |
6639 | else | |
6640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6641 | $as_echo "no" >&6; } | |
6642 | fi | |
6643 | ||
6644 | ||
6645 | fi | |
6646 | if test -z "$ac_cv_prog_RANLIB"; then | |
6647 | ac_ct_RANLIB=$RANLIB | |
6648 | # Extract the first word of "ranlib", so it can be a program name with args. | |
6649 | set dummy ranlib; ac_word=$2 | |
6650 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6651 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6a4bcb5 | 6652 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
d1154eb4 TT |
6653 | $as_echo_n "(cached) " >&6 |
6654 | else | |
6655 | if test -n "$ac_ct_RANLIB"; then | |
6656 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
6657 | else | |
6658 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6659 | for as_dir in $PATH | |
6660 | do | |
6661 | IFS=$as_save_IFS | |
6662 | test -z "$as_dir" && as_dir=. | |
6663 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d6a4bcb5 | 6664 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d1154eb4 TT |
6665 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
6666 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6667 | break 2 | |
6668 | fi | |
6669 | done | |
6670 | done | |
6671 | IFS=$as_save_IFS | |
6672 | ||
6673 | fi | |
6674 | fi | |
6675 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
6676 | if test -n "$ac_ct_RANLIB"; then | |
6677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
6678 | $as_echo "$ac_ct_RANLIB" >&6; } | |
6679 | else | |
6680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6681 | $as_echo "no" >&6; } | |
6682 | fi | |
6683 | ||
6684 | if test "x$ac_ct_RANLIB" = x; then | |
6685 | RANLIB=":" | |
6686 | else | |
6687 | case $cross_compiling:$ac_tool_warned in | |
6688 | yes:) | |
6689 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6690 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6691 | ac_tool_warned=yes ;; | |
6692 | esac | |
6693 | RANLIB=$ac_ct_RANLIB | |
6694 | fi | |
6695 | else | |
6696 | RANLIB="$ac_cv_prog_RANLIB" | |
6697 | fi | |
6698 | ||
6699 | ||
93613951 TT |
6700 | |
6701 | CFLAG_VISIBILITY= | |
6702 | HAVE_VISIBILITY=0 | |
6703 | if test -n "$GCC"; then | |
6704 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5 | |
6705 | $as_echo_n "checking whether the -Werror option is usable... " >&6; } | |
6706 | if ${gl_cv_cc_vis_werror+:} false; then : | |
d1154eb4 TT |
6707 | $as_echo_n "(cached) " >&6 |
6708 | else | |
93613951 TT |
6709 | |
6710 | gl_save_CFLAGS="$CFLAGS" | |
6711 | CFLAGS="$CFLAGS -Werror" | |
6712 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
d1154eb4 TT |
6713 | /* end confdefs.h. */ |
6714 | ||
d1154eb4 TT |
6715 | int |
6716 | main () | |
6717 | { | |
93613951 | 6718 | |
d1154eb4 TT |
6719 | ; |
6720 | return 0; | |
6721 | } | |
6722 | _ACEOF | |
93613951 TT |
6723 | if ac_fn_c_try_compile "$LINENO"; then : |
6724 | gl_cv_cc_vis_werror=yes | |
d1154eb4 | 6725 | else |
93613951 | 6726 | gl_cv_cc_vis_werror=no |
d1154eb4 | 6727 | fi |
93613951 TT |
6728 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6729 | CFLAGS="$gl_save_CFLAGS" | |
d1154eb4 TT |
6730 | fi |
6731 | ||
93613951 TT |
6732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5 |
6733 | $as_echo "$gl_cv_cc_vis_werror" >&6; } | |
6734 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5 | |
6735 | $as_echo_n "checking for simple visibility declarations... " >&6; } | |
6736 | if ${gl_cv_cc_visibility+:} false; then : | |
6737 | $as_echo_n "(cached) " >&6 | |
6738 | else | |
d1154eb4 | 6739 | |
93613951 TT |
6740 | gl_save_CFLAGS="$CFLAGS" |
6741 | CFLAGS="$CFLAGS -fvisibility=hidden" | |
6742 | if test $gl_cv_cc_vis_werror = yes; then | |
6743 | CFLAGS="$CFLAGS -Werror" | |
6744 | fi | |
6745 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6746 | /* end confdefs.h. */ | |
6747 | extern __attribute__((__visibility__("hidden"))) int hiddenvar; | |
6748 | extern __attribute__((__visibility__("default"))) int exportedvar; | |
6749 | extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void); | |
6750 | extern __attribute__((__visibility__("default"))) int exportedfunc (void); | |
6751 | void dummyfunc (void) {} | |
d1154eb4 | 6752 | |
93613951 TT |
6753 | int |
6754 | main () | |
6755 | { | |
d1154eb4 | 6756 | |
93613951 TT |
6757 | ; |
6758 | return 0; | |
6759 | } | |
6760 | _ACEOF | |
6761 | if ac_fn_c_try_compile "$LINENO"; then : | |
6762 | gl_cv_cc_visibility=yes | |
d1154eb4 | 6763 | else |
93613951 TT |
6764 | gl_cv_cc_visibility=no |
6765 | fi | |
6766 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6767 | CFLAGS="$gl_save_CFLAGS" | |
6768 | fi | |
d1154eb4 | 6769 | |
93613951 TT |
6770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5 |
6771 | $as_echo "$gl_cv_cc_visibility" >&6; } | |
6772 | if test $gl_cv_cc_visibility = yes; then | |
6773 | CFLAG_VISIBILITY="-fvisibility=hidden" | |
6774 | HAVE_VISIBILITY=1 | |
6775 | fi | |
d1154eb4 | 6776 | fi |
d1154eb4 | 6777 | |
d1154eb4 TT |
6778 | |
6779 | ||
93613951 TT |
6780 | cat >>confdefs.h <<_ACEOF |
6781 | #define HAVE_VISIBILITY $HAVE_VISIBILITY | |
6782 | _ACEOF | |
6783 | ||
6784 | ||
6785 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 | |
6786 | $as_echo_n "checking for inline... " >&6; } | |
6787 | if ${ac_cv_c_inline+:} false; then : | |
57aa50d4 TT |
6788 | $as_echo_n "(cached) " >&6 |
6789 | else | |
93613951 TT |
6790 | ac_cv_c_inline=no |
6791 | for ac_kw in inline __inline__ __inline; do | |
d1154eb4 TT |
6792 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6793 | /* end confdefs.h. */ | |
93613951 TT |
6794 | #ifndef __cplusplus |
6795 | typedef int foo_t; | |
6796 | static $ac_kw foo_t static_foo () {return 0; } | |
6797 | $ac_kw foo_t foo () {return 0; } | |
6798 | #endif | |
d1154eb4 | 6799 | |
d1154eb4 TT |
6800 | _ACEOF |
6801 | if ac_fn_c_try_compile "$LINENO"; then : | |
93613951 | 6802 | ac_cv_c_inline=$ac_kw |
57aa50d4 | 6803 | fi |
d1154eb4 | 6804 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
93613951 TT |
6805 | test "$ac_cv_c_inline" != no && break |
6806 | done | |
d1154eb4 | 6807 | |
d1154eb4 | 6808 | fi |
93613951 TT |
6809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 |
6810 | $as_echo "$ac_cv_c_inline" >&6; } | |
d1154eb4 | 6811 | |
93613951 TT |
6812 | case $ac_cv_c_inline in |
6813 | inline | yes) ;; | |
6814 | *) | |
6815 | case $ac_cv_c_inline in | |
6816 | no) ac_val=;; | |
6817 | *) ac_val=$ac_cv_c_inline;; | |
6818 | esac | |
6819 | cat >>confdefs.h <<_ACEOF | |
6820 | #ifndef __cplusplus | |
6821 | #define inline $ac_val | |
6822 | #endif | |
d1154eb4 | 6823 | _ACEOF |
93613951 TT |
6824 | ;; |
6825 | esac | |
d1154eb4 | 6826 | |
93613951 TT |
6827 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
6828 | if test "x$ac_cv_type_size_t" = xyes; then : | |
d1154eb4 | 6829 | |
57aa50d4 | 6830 | else |
d1154eb4 | 6831 | |
93613951 TT |
6832 | cat >>confdefs.h <<_ACEOF |
6833 | #define size_t unsigned int | |
d1154eb4 | 6834 | _ACEOF |
b0cacab0 | 6835 | |
57aa50d4 | 6836 | fi |
b0cacab0 TT |
6837 | |
6838 | ||
93613951 TT |
6839 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5 |
6840 | $as_echo_n "checking for stdint.h... " >&6; } | |
6841 | if ${gl_cv_header_stdint_h+:} false; then : | |
57aa50d4 | 6842 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 6843 | else |
d1154eb4 | 6844 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b0cacab0 | 6845 | /* end confdefs.h. */ |
93613951 TT |
6846 | #include <sys/types.h> |
6847 | #include <stdint.h> | |
a64c9c13 | 6848 | int |
b0cacab0 TT |
6849 | main () |
6850 | { | |
93613951 | 6851 | uintmax_t i = (uintmax_t) -1; return !i; |
d1154eb4 | 6852 | ; |
b0cacab0 | 6853 | return 0; |
a64c9c13 | 6854 | } |
b0cacab0 | 6855 | _ACEOF |
d1154eb4 | 6856 | if ac_fn_c_try_compile "$LINENO"; then : |
93613951 | 6857 | gl_cv_header_stdint_h=yes |
b0cacab0 | 6858 | else |
93613951 | 6859 | gl_cv_header_stdint_h=no |
b0cacab0 | 6860 | fi |
d1154eb4 | 6861 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d1154eb4 | 6862 | fi |
93613951 TT |
6863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5 |
6864 | $as_echo "$gl_cv_header_stdint_h" >&6; } | |
6865 | if test $gl_cv_header_stdint_h = yes; then | |
b0cacab0 | 6866 | |
93613951 TT |
6867 | cat >>confdefs.h <<_ACEOF |
6868 | #define HAVE_STDINT_H_WITH_UINTMAX 1 | |
d1154eb4 | 6869 | _ACEOF |
b0cacab0 | 6870 | |
93613951 | 6871 | fi |
b0cacab0 | 6872 | |
93613951 TT |
6873 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
6874 | # for constant arguments. Useless! | |
6875 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 | |
6876 | $as_echo_n "checking for working alloca.h... " >&6; } | |
6877 | if ${ac_cv_working_alloca_h+:} false; then : | |
39fd3d4f | 6878 | $as_echo_n "(cached) " >&6 |
a64c9c13 | 6879 | else |
57aa50d4 | 6880 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b0cacab0 | 6881 | /* end confdefs.h. */ |
93613951 | 6882 | #include <alloca.h> |
57aa50d4 TT |
6883 | int |
6884 | main () | |
6885 | { | |
93613951 TT |
6886 | char *p = (char *) alloca (2 * sizeof (int)); |
6887 | if (p) return 0; | |
57aa50d4 TT |
6888 | ; |
6889 | return 0; | |
6890 | } | |
b0cacab0 | 6891 | _ACEOF |
93613951 TT |
6892 | if ac_fn_c_try_link "$LINENO"; then : |
6893 | ac_cv_working_alloca_h=yes | |
b0cacab0 | 6894 | else |
93613951 | 6895 | ac_cv_working_alloca_h=no |
57aa50d4 | 6896 | fi |
93613951 TT |
6897 | rm -f core conftest.err conftest.$ac_objext \ |
6898 | conftest$ac_exeext conftest.$ac_ext | |
57aa50d4 | 6899 | fi |
93613951 TT |
6900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 |
6901 | $as_echo "$ac_cv_working_alloca_h" >&6; } | |
6902 | if test $ac_cv_working_alloca_h = yes; then | |
57aa50d4 | 6903 | |
93613951 | 6904 | $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h |
57aa50d4 | 6905 | |
a64c9c13 | 6906 | fi |
b0cacab0 | 6907 | |
93613951 TT |
6908 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 |
6909 | $as_echo_n "checking for alloca... " >&6; } | |
6910 | if ${ac_cv_func_alloca_works+:} false; then : | |
57aa50d4 | 6911 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 6912 | else |
57aa50d4 | 6913 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b0cacab0 | 6914 | /* end confdefs.h. */ |
93613951 TT |
6915 | #ifdef __GNUC__ |
6916 | # define alloca __builtin_alloca | |
6917 | #else | |
6918 | # ifdef _MSC_VER | |
6919 | # include <malloc.h> | |
6920 | # define alloca _alloca | |
6921 | # else | |
6922 | # ifdef HAVE_ALLOCA_H | |
6923 | # include <alloca.h> | |
6924 | # else | |
6925 | # ifdef _AIX | |
6926 | #pragma alloca | |
6927 | # else | |
6928 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
6929 | void *alloca (size_t); | |
6930 | # endif | |
6931 | # endif | |
6932 | # endif | |
6933 | # endif | |
6934 | #endif | |
b0cacab0 | 6935 | |
57aa50d4 TT |
6936 | int |
6937 | main () | |
b0cacab0 | 6938 | { |
93613951 TT |
6939 | char *p = (char *) alloca (1); |
6940 | if (p) return 0; | |
57aa50d4 TT |
6941 | ; |
6942 | return 0; | |
b0cacab0 TT |
6943 | } |
6944 | _ACEOF | |
93613951 TT |
6945 | if ac_fn_c_try_link "$LINENO"; then : |
6946 | ac_cv_func_alloca_works=yes | |
b0cacab0 | 6947 | else |
93613951 | 6948 | ac_cv_func_alloca_works=no |
57aa50d4 | 6949 | fi |
93613951 TT |
6950 | rm -f core conftest.err conftest.$ac_objext \ |
6951 | conftest$ac_exeext conftest.$ac_ext | |
57aa50d4 | 6952 | fi |
93613951 TT |
6953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 |
6954 | $as_echo "$ac_cv_func_alloca_works" >&6; } | |
57aa50d4 | 6955 | |
93613951 | 6956 | if test $ac_cv_func_alloca_works = yes; then |
57aa50d4 | 6957 | |
93613951 | 6958 | $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h |
57aa50d4 | 6959 | |
b0cacab0 | 6960 | else |
93613951 TT |
6961 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
6962 | # that cause trouble. Some versions do not even contain alloca or | |
6963 | # contain a buggy version. If you still want to use their alloca, | |
6964 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
b0cacab0 | 6965 | |
93613951 | 6966 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
57aa50d4 | 6967 | |
93613951 | 6968 | $as_echo "#define C_ALLOCA 1" >>confdefs.h |
57aa50d4 | 6969 | |
57aa50d4 | 6970 | |
93613951 TT |
6971 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 |
6972 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } | |
6973 | if ${ac_cv_os_cray+:} false; then : | |
57aa50d4 TT |
6974 | $as_echo_n "(cached) " >&6 |
6975 | else | |
57aa50d4 TT |
6976 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6977 | /* end confdefs.h. */ | |
93613951 TT |
6978 | #if defined CRAY && ! defined CRAY2 |
6979 | webecray | |
6980 | #else | |
6981 | wenotbecray | |
57aa50d4 | 6982 | #endif |
b0cacab0 | 6983 | |
57aa50d4 | 6984 | _ACEOF |
93613951 TT |
6985 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
6986 | $EGREP "webecray" >/dev/null 2>&1; then : | |
6987 | ac_cv_os_cray=yes | |
6988 | else | |
6989 | ac_cv_os_cray=no | |
a64c9c13 | 6990 | fi |
93613951 | 6991 | rm -f conftest* |
d1154eb4 TT |
6992 | |
6993 | fi | |
93613951 TT |
6994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 |
6995 | $as_echo "$ac_cv_os_cray" >&6; } | |
6996 | if test $ac_cv_os_cray = yes; then | |
6997 | for ac_func in _getb67 GETB67 getb67; do | |
6998 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
6999 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
7000 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
e1052144 | 7001 | |
57aa50d4 | 7002 | cat >>confdefs.h <<_ACEOF |
93613951 | 7003 | #define CRAY_STACKSEG_END $ac_func |
57aa50d4 | 7004 | _ACEOF |
e1052144 | 7005 | |
93613951 | 7006 | break |
a64c9c13 | 7007 | fi |
07a0db15 | 7008 | |
93613951 | 7009 | done |
57aa50d4 | 7010 | fi |
b0cacab0 | 7011 | |
93613951 TT |
7012 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 |
7013 | $as_echo_n "checking stack direction for C alloca... " >&6; } | |
7014 | if ${ac_cv_c_stack_direction+:} false; then : | |
39fd3d4f | 7015 | $as_echo_n "(cached) " >&6 |
93613951 TT |
7016 | else |
7017 | if test "$cross_compiling" = yes; then : | |
7018 | ac_cv_c_stack_direction=0 | |
b0cacab0 | 7019 | else |
57aa50d4 | 7020 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b0cacab0 | 7021 | /* end confdefs.h. */ |
93613951 | 7022 | $ac_includes_default |
b0cacab0 | 7023 | int |
93613951 | 7024 | find_stack_direction (int *addr, int depth) |
b0cacab0 | 7025 | { |
93613951 TT |
7026 | int dir, dummy = 0; |
7027 | if (! addr) | |
7028 | addr = &dummy; | |
7029 | *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; | |
7030 | dir = depth ? find_stack_direction (addr, depth - 1) : 0; | |
7031 | return dir + dummy; | |
b0cacab0 | 7032 | } |
93636bde | 7033 | |
b0cacab0 | 7034 | int |
93613951 | 7035 | main (int argc, char **argv) |
b0cacab0 | 7036 | { |
93613951 | 7037 | return find_stack_direction (0, argc + !argv + 20) < 0; |
b0cacab0 TT |
7038 | } |
7039 | _ACEOF | |
93613951 TT |
7040 | if ac_fn_c_try_run "$LINENO"; then : |
7041 | ac_cv_c_stack_direction=1 | |
a64c9c13 | 7042 | else |
93613951 | 7043 | ac_cv_c_stack_direction=-1 |
b0cacab0 | 7044 | fi |
93613951 TT |
7045 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
7046 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
b0cacab0 | 7047 | fi |
b0cacab0 | 7048 | |
93613951 TT |
7049 | fi |
7050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 | |
7051 | $as_echo "$ac_cv_c_stack_direction" >&6; } | |
7052 | cat >>confdefs.h <<_ACEOF | |
7053 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
7054 | _ACEOF | |
57aa50d4 | 7055 | |
b0cacab0 | 7056 | |
57aa50d4 | 7057 | fi |
b0cacab0 | 7058 | |
57aa50d4 TT |
7059 | |
7060 | ||
b0cacab0 | 7061 | |
93613951 TT |
7062 | for ac_header in $ac_header_list |
7063 | do : | |
7064 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7065 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
7066 | " | |
7067 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
7068 | cat >>confdefs.h <<_ACEOF | |
7069 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
b0cacab0 | 7070 | _ACEOF |
93613951 | 7071 | |
a64c9c13 | 7072 | fi |
07a0db15 | 7073 | |
93613951 | 7074 | done |
a64c9c13 | 7075 | |
a64c9c13 | 7076 | |
b0cacab0 | 7077 | |
b0cacab0 | 7078 | |
a04eba3f | 7079 | |
a04eba3f | 7080 | |
b0cacab0 | 7081 | |
b0cacab0 | 7082 | |
93613951 TT |
7083 | for ac_func in getpagesize |
7084 | do : | |
7085 | ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" | |
7086 | if test "x$ac_cv_func_getpagesize" = xyes; then : | |
7087 | cat >>confdefs.h <<_ACEOF | |
7088 | #define HAVE_GETPAGESIZE 1 | |
b0cacab0 TT |
7089 | _ACEOF |
7090 | ||
93613951 TT |
7091 | fi |
7092 | done | |
b0cacab0 | 7093 | |
93613951 TT |
7094 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 |
7095 | $as_echo_n "checking for working mmap... " >&6; } | |
7096 | if ${ac_cv_func_mmap_fixed_mapped+:} false; then : | |
39fd3d4f | 7097 | $as_echo_n "(cached) " >&6 |
93613951 TT |
7098 | else |
7099 | if test "$cross_compiling" = yes; then : | |
7100 | ac_cv_func_mmap_fixed_mapped=no | |
b0cacab0 | 7101 | else |
57aa50d4 | 7102 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b0cacab0 | 7103 | /* end confdefs.h. */ |
93613951 TT |
7104 | $ac_includes_default |
7105 | /* malloc might have been renamed as rpl_malloc. */ | |
7106 | #undef malloc | |
57aa50d4 | 7107 | |
93613951 TT |
7108 | /* Thanks to Mike Haertel and Jim Avera for this test. |
7109 | Here is a matrix of mmap possibilities: | |
7110 | mmap private not fixed | |
7111 | mmap private fixed at somewhere currently unmapped | |
7112 | mmap private fixed at somewhere already mapped | |
7113 | mmap shared not fixed | |
7114 | mmap shared fixed at somewhere currently unmapped | |
7115 | mmap shared fixed at somewhere already mapped | |
7116 | For private mappings, we should verify that changes cannot be read() | |
7117 | back from the file, nor mmap's back from the file at a different | |
7118 | address. (There have been systems where private was not correctly | |
7119 | implemented like the infamous i386 svr4.0, and systems where the | |
7120 | VM page cache was not coherent with the file system buffer cache | |
7121 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
7122 | For shared mappings, we should conversely verify that changes get | |
7123 | propagated back to all the places they're supposed to be. | |
7124 | ||
7125 | Grep wants private fixed already mapped. | |
7126 | The main things grep needs to know about mmap are: | |
7127 | * does it exist and is it safe to write into the mmap'd area | |
7128 | * how to use it (BSD variants) */ | |
7129 | ||
7130 | #include <fcntl.h> | |
7131 | #include <sys/mman.h> | |
7132 | ||
7133 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H | |
7134 | char *malloc (); | |
57aa50d4 TT |
7135 | #endif |
7136 | ||
93613951 TT |
7137 | /* This mess was copied from the GNU getpagesize.h. */ |
7138 | #ifndef HAVE_GETPAGESIZE | |
7139 | # ifdef _SC_PAGESIZE | |
7140 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
7141 | # else /* no _SC_PAGESIZE */ | |
7142 | # ifdef HAVE_SYS_PARAM_H | |
7143 | # include <sys/param.h> | |
7144 | # ifdef EXEC_PAGESIZE | |
7145 | # define getpagesize() EXEC_PAGESIZE | |
7146 | # else /* no EXEC_PAGESIZE */ | |
7147 | # ifdef NBPG | |
7148 | # define getpagesize() NBPG * CLSIZE | |
7149 | # ifndef CLSIZE | |
7150 | # define CLSIZE 1 | |
7151 | # endif /* no CLSIZE */ | |
7152 | # else /* no NBPG */ | |
7153 | # ifdef NBPC | |
7154 | # define getpagesize() NBPC | |
7155 | # else /* no NBPC */ | |
7156 | # ifdef PAGESIZE | |
7157 | # define getpagesize() PAGESIZE | |
7158 | # endif /* PAGESIZE */ | |
7159 | # endif /* no NBPC */ | |
7160 | # endif /* no NBPG */ | |
7161 | # endif /* no EXEC_PAGESIZE */ | |
7162 | # else /* no HAVE_SYS_PARAM_H */ | |
7163 | # define getpagesize() 8192 /* punt totally */ | |
7164 | # endif /* no HAVE_SYS_PARAM_H */ | |
7165 | # endif /* no _SC_PAGESIZE */ | |
7166 | ||
7167 | #endif /* no HAVE_GETPAGESIZE */ | |
7168 | ||
57aa50d4 TT |
7169 | int |
7170 | main () | |
7171 | { | |
93613951 TT |
7172 | char *data, *data2, *data3; |
7173 | const char *cdata2; | |
7174 | int i, pagesize; | |
7175 | int fd, fd2; | |
7176 | ||
7177 | pagesize = getpagesize (); | |
7178 | ||
7179 | /* First, make a file with some known garbage in it. */ | |
7180 | data = (char *) malloc (pagesize); | |
7181 | if (!data) | |
7182 | return 1; | |
7183 | for (i = 0; i < pagesize; ++i) | |
7184 | *(data + i) = rand (); | |
7185 | umask (0); | |
7186 | fd = creat ("conftest.mmap", 0600); | |
7187 | if (fd < 0) | |
7188 | return 2; | |
7189 | if (write (fd, data, pagesize) != pagesize) | |
7190 | return 3; | |
7191 | close (fd); | |
7192 | ||
7193 | /* Next, check that the tail of a page is zero-filled. File must have | |
7194 | non-zero length, otherwise we risk SIGBUS for entire page. */ | |
7195 | fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); | |
7196 | if (fd2 < 0) | |
7197 | return 4; | |
7198 | cdata2 = ""; | |
7199 | if (write (fd2, cdata2, 1) != 1) | |
7200 | return 5; | |
7201 | data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); | |
7202 | if (data2 == MAP_FAILED) | |
7203 | return 6; | |
7204 | for (i = 0; i < pagesize; ++i) | |
7205 | if (*(data2 + i)) | |
7206 | return 7; | |
7207 | close (fd2); | |
7208 | if (munmap (data2, pagesize)) | |
7209 | return 8; | |
7210 | ||
7211 | /* Next, try to mmap the file at a fixed address which already has | |
7212 | something else allocated at it. If we can, also make sure that | |
7213 | we see the same garbage. */ | |
7214 | fd = open ("conftest.mmap", O_RDWR); | |
7215 | if (fd < 0) | |
7216 | return 9; | |
7217 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, | |
7218 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
7219 | return 10; | |
7220 | for (i = 0; i < pagesize; ++i) | |
7221 | if (*(data + i) != *(data2 + i)) | |
7222 | return 11; | |
7223 | ||
7224 | /* Finally, make sure that changes to the mapped area do not | |
7225 | percolate back to the file as seen by read(). (This is a bug on | |
7226 | some variants of i386 svr4.0.) */ | |
7227 | for (i = 0; i < pagesize; ++i) | |
7228 | *(data2 + i) = *(data2 + i) + 1; | |
7229 | data3 = (char *) malloc (pagesize); | |
7230 | if (!data3) | |
7231 | return 12; | |
7232 | if (read (fd, data3, pagesize) != pagesize) | |
7233 | return 13; | |
7234 | for (i = 0; i < pagesize; ++i) | |
7235 | if (*(data + i) != *(data3 + i)) | |
7236 | return 14; | |
7237 | close (fd); | |
57aa50d4 TT |
7238 | return 0; |
7239 | } | |
b0cacab0 | 7240 | _ACEOF |
93613951 TT |
7241 | if ac_fn_c_try_run "$LINENO"; then : |
7242 | ac_cv_func_mmap_fixed_mapped=yes | |
b0cacab0 | 7243 | else |
93613951 | 7244 | ac_cv_func_mmap_fixed_mapped=no |
b0cacab0 | 7245 | fi |
93613951 TT |
7246 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
7247 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
57aa50d4 | 7248 | fi |
b0cacab0 | 7249 | |
93613951 TT |
7250 | fi |
7251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 | |
7252 | $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } | |
7253 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | |
b0cacab0 | 7254 | |
93613951 | 7255 | $as_echo "#define HAVE_MMAP 1" >>confdefs.h |
e1052144 | 7256 | |
93613951 TT |
7257 | fi |
7258 | rm -f conftest.mmap conftest.txt | |
b0cacab0 | 7259 | |
e1052144 | 7260 | |
93613951 TT |
7261 | |
7262 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5 | |
7263 | $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; } | |
7264 | if ${gt_cv_int_divbyzero_sigfpe+:} false; then : | |
39fd3d4f | 7265 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 7266 | else |
b0cacab0 | 7267 | |
93613951 TT |
7268 | gt_cv_int_divbyzero_sigfpe= |
7269 | case "$host_os" in | |
7270 | macos* | darwin[6-9]* | darwin[1-9][0-9]*) | |
7271 | # On Mac OS X 10.2 or newer, just assume the same as when cross- | |
7272 | # compiling. If we were to perform the real test, 1 Crash Report | |
7273 | # dialog window would pop up. | |
7274 | case "$host_cpu" in | |
7275 | i[34567]86 | x86_64) | |
7276 | gt_cv_int_divbyzero_sigfpe="guessing yes" ;; | |
7277 | esac | |
7278 | ;; | |
7279 | esac | |
7280 | if test -z "$gt_cv_int_divbyzero_sigfpe"; then | |
7281 | if test "$cross_compiling" = yes; then : | |
7282 | ||
7283 | # Guess based on the CPU. | |
7284 | case "$host_cpu" in | |
7285 | alpha* | i[34567]86 | x86_64 | m68k | s390*) | |
7286 | gt_cv_int_divbyzero_sigfpe="guessing yes";; | |
7287 | *) | |
7288 | gt_cv_int_divbyzero_sigfpe="guessing no";; | |
7289 | esac | |
57aa50d4 | 7290 | |
93613951 TT |
7291 | else |
7292 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
57aa50d4 TT |
7293 | /* end confdefs.h. */ |
7294 | ||
93613951 TT |
7295 | #include <stdlib.h> |
7296 | #include <signal.h> | |
b0cacab0 | 7297 | |
93613951 TT |
7298 | static void |
7299 | sigfpe_handler (int sig) | |
7300 | { | |
7301 | /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */ | |
7302 | exit (sig != SIGFPE); | |
7303 | } | |
b0cacab0 | 7304 | |
93613951 TT |
7305 | int x = 1; |
7306 | int y = 0; | |
7307 | int z; | |
7308 | int nan; | |
b0cacab0 | 7309 | |
57aa50d4 TT |
7310 | int main () |
7311 | { | |
93613951 TT |
7312 | signal (SIGFPE, sigfpe_handler); |
7313 | /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */ | |
7314 | #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP) | |
7315 | signal (SIGTRAP, sigfpe_handler); | |
7316 | #endif | |
7317 | /* Linux/SPARC yields signal SIGILL. */ | |
7318 | #if defined (__sparc__) && defined (__linux__) | |
7319 | signal (SIGILL, sigfpe_handler); | |
7320 | #endif | |
7321 | ||
7322 | z = x / y; | |
7323 | nan = y / y; | |
7324 | exit (2); | |
57aa50d4 | 7325 | } |
93613951 | 7326 | |
57aa50d4 TT |
7327 | _ACEOF |
7328 | if ac_fn_c_try_run "$LINENO"; then : | |
93613951 | 7329 | gt_cv_int_divbyzero_sigfpe=yes |
57aa50d4 | 7330 | else |
93613951 | 7331 | gt_cv_int_divbyzero_sigfpe=no |
57aa50d4 TT |
7332 | fi |
7333 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
7334 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
7335 | fi | |
7336 | ||
93613951 | 7337 | fi |
57aa50d4 TT |
7338 | |
7339 | fi | |
93613951 TT |
7340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5 |
7341 | $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; } | |
7342 | case "$gt_cv_int_divbyzero_sigfpe" in | |
7343 | *yes) value=1;; | |
7344 | *) value=0;; | |
7345 | esac | |
57aa50d4 | 7346 | |
93613951 TT |
7347 | cat >>confdefs.h <<_ACEOF |
7348 | #define INTDIV0_RAISES_SIGFPE $value | |
7349 | _ACEOF | |
57aa50d4 | 7350 | |
57aa50d4 | 7351 | |
93613951 TT |
7352 | |
7353 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5 | |
7354 | $as_echo_n "checking for inttypes.h... " >&6; } | |
7355 | if ${gl_cv_header_inttypes_h+:} false; then : | |
39fd3d4f | 7356 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 7357 | else |
57aa50d4 | 7358 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b0cacab0 | 7359 | /* end confdefs.h. */ |
93613951 TT |
7360 | |
7361 | #include <sys/types.h> | |
7362 | #include <inttypes.h> | |
7363 | ||
57aa50d4 TT |
7364 | int |
7365 | main () | |
7366 | { | |
93613951 | 7367 | uintmax_t i = (uintmax_t) -1; return !i; |
57aa50d4 TT |
7368 | ; |
7369 | return 0; | |
7370 | } | |
7371 | _ACEOF | |
93613951 TT |
7372 | if ac_fn_c_try_compile "$LINENO"; then : |
7373 | gl_cv_header_inttypes_h=yes | |
57aa50d4 | 7374 | else |
93613951 | 7375 | gl_cv_header_inttypes_h=no |
57aa50d4 | 7376 | fi |
93613951 | 7377 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
57aa50d4 | 7378 | fi |
93613951 TT |
7379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5 |
7380 | $as_echo "$gl_cv_header_inttypes_h" >&6; } | |
7381 | if test $gl_cv_header_inttypes_h = yes; then | |
b0cacab0 | 7382 | |
93613951 TT |
7383 | cat >>confdefs.h <<_ACEOF |
7384 | #define HAVE_INTTYPES_H_WITH_UINTMAX 1 | |
7385 | _ACEOF | |
b0cacab0 | 7386 | |
93613951 | 7387 | fi |
57aa50d4 | 7388 | |
93613951 TT |
7389 | |
7390 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5 | |
7391 | $as_echo_n "checking for unsigned long long int... " >&6; } | |
7392 | if ${ac_cv_type_unsigned_long_long_int+:} false; then : | |
57aa50d4 TT |
7393 | $as_echo_n "(cached) " >&6 |
7394 | else | |
93613951 TT |
7395 | ac_cv_type_unsigned_long_long_int=yes |
7396 | if test "x${ac_cv_prog_cc_c99-no}" = xno; then | |
7397 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
57aa50d4 | 7398 | /* end confdefs.h. */ |
b0cacab0 | 7399 | |
93613951 TT |
7400 | /* For now, do not test the preprocessor; as of 2007 there are too many |
7401 | implementations with broken preprocessors. Perhaps this can | |
7402 | be revisited in 2012. In the meantime, code should not expect | |
7403 | #if to work with literals wider than 32 bits. */ | |
7404 | /* Test literals. */ | |
7405 | long long int ll = 9223372036854775807ll; | |
7406 | long long int nll = -9223372036854775807LL; | |
7407 | unsigned long long int ull = 18446744073709551615ULL; | |
7408 | /* Test constant expressions. */ | |
7409 | typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) | |
7410 | ? 1 : -1)]; | |
7411 | typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 | |
7412 | ? 1 : -1)]; | |
7413 | int i = 63; | |
57aa50d4 TT |
7414 | int |
7415 | main () | |
7416 | { | |
93613951 TT |
7417 | /* Test availability of runtime routines for shift and division. */ |
7418 | long long int llmax = 9223372036854775807ll; | |
7419 | unsigned long long int ullmax = 18446744073709551615ull; | |
7420 | return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) | |
7421 | | (llmax / ll) | (llmax % ll) | |
7422 | | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) | |
7423 | | (ullmax / ull) | (ullmax % ull)); | |
57aa50d4 TT |
7424 | ; |
7425 | return 0; | |
7426 | } | |
93613951 | 7427 | |
57aa50d4 TT |
7428 | _ACEOF |
7429 | if ac_fn_c_try_link "$LINENO"; then : | |
93613951 | 7430 | |
57aa50d4 | 7431 | else |
93613951 | 7432 | ac_cv_type_unsigned_long_long_int=no |
57aa50d4 TT |
7433 | fi |
7434 | rm -f core conftest.err conftest.$ac_objext \ | |
7435 | conftest$ac_exeext conftest.$ac_ext | |
93613951 | 7436 | fi |
57aa50d4 | 7437 | fi |
93613951 TT |
7438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5 |
7439 | $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; } | |
7440 | if test $ac_cv_type_unsigned_long_long_int = yes; then | |
b0cacab0 | 7441 | |
93613951 | 7442 | $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h |
57aa50d4 | 7443 | |
93613951 | 7444 | fi |
57aa50d4 | 7445 | |
57aa50d4 | 7446 | |
57aa50d4 | 7447 | |
57aa50d4 | 7448 | |
93613951 | 7449 | if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then |
57aa50d4 | 7450 | |
93613951 TT |
7451 | test $ac_cv_type_unsigned_long_long_int = yes \ |
7452 | && ac_type='unsigned long long' \ | |
7453 | || ac_type='unsigned long' | |
b0cacab0 | 7454 | |
93613951 TT |
7455 | cat >>confdefs.h <<_ACEOF |
7456 | #define uintmax_t $ac_type | |
57aa50d4 | 7457 | _ACEOF |
57aa50d4 | 7458 | |
93613951 | 7459 | else |
57aa50d4 | 7460 | |
93613951 TT |
7461 | $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h |
7462 | ||
7463 | fi | |
7464 | ||
7465 | ||
7466 | for ac_header in inttypes.h | |
7467 | do : | |
7468 | ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default" | |
7469 | if test "x$ac_cv_header_inttypes_h" = xyes; then : | |
7470 | cat >>confdefs.h <<_ACEOF | |
7471 | #define HAVE_INTTYPES_H 1 | |
57aa50d4 TT |
7472 | _ACEOF |
7473 | ||
57aa50d4 TT |
7474 | fi |
7475 | ||
93613951 | 7476 | done |
57aa50d4 | 7477 | |
93613951 TT |
7478 | if test $ac_cv_header_inttypes_h = yes; then |
7479 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5 | |
7480 | $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; } | |
7481 | if ${gt_cv_inttypes_pri_broken+:} false; then : | |
57aa50d4 TT |
7482 | $as_echo_n "(cached) " >&6 |
7483 | else | |
93613951 TT |
7484 | |
7485 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
57aa50d4 | 7486 | /* end confdefs.h. */ |
93613951 TT |
7487 | |
7488 | #include <inttypes.h> | |
7489 | #ifdef PRId32 | |
7490 | char *p = PRId32; | |
7491 | #endif | |
57aa50d4 | 7492 | |
b0cacab0 | 7493 | int |
93613951 | 7494 | main () |
b0cacab0 | 7495 | { |
93613951 TT |
7496 | |
7497 | ; | |
7498 | return 0; | |
b0cacab0 TT |
7499 | } |
7500 | _ACEOF | |
93613951 TT |
7501 | if ac_fn_c_try_compile "$LINENO"; then : |
7502 | gt_cv_inttypes_pri_broken=no | |
b0cacab0 | 7503 | else |
93613951 | 7504 | gt_cv_inttypes_pri_broken=yes |
57aa50d4 | 7505 | fi |
93613951 | 7506 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
57aa50d4 TT |
7507 | |
7508 | fi | |
93613951 TT |
7509 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5 |
7510 | $as_echo "$gt_cv_inttypes_pri_broken" >&6; } | |
7511 | fi | |
7512 | if test "$gt_cv_inttypes_pri_broken" = yes; then | |
7513 | ||
57aa50d4 | 7514 | cat >>confdefs.h <<_ACEOF |
93613951 | 7515 | #define PRI_MACROS_BROKEN 1 |
57aa50d4 TT |
7516 | _ACEOF |
7517 | ||
93613951 TT |
7518 | PRI_MACROS_BROKEN=1 |
7519 | else | |
7520 | PRI_MACROS_BROKEN=0 | |
7521 | fi | |
b0cacab0 | 7522 | |
e1052144 | 7523 | |
61ef2474 TT |
7524 | |
7525 | ||
7526 | ||
61ef2474 | 7527 | |
93613951 TT |
7528 | |
7529 | # Check whether --enable-threads was given. | |
7530 | if test "${enable_threads+set}" = set; then : | |
7531 | enableval=$enable_threads; gl_use_threads=$enableval | |
7532 | else | |
7533 | if test -n "$gl_use_threads_default"; then | |
7534 | gl_use_threads="$gl_use_threads_default" | |
7535 | else | |
7536 | case "$host_os" in | |
7537 | osf*) gl_use_threads=no ;; | |
7538 | cygwin*) | |
7539 | case `uname -r` in | |
7540 | 1.[0-5].*) gl_use_threads=no ;; | |
7541 | *) gl_use_threads=yes ;; | |
7542 | esac | |
7543 | ;; | |
7544 | *) gl_use_threads=yes ;; | |
7545 | esac | |
7546 | fi | |
57aa50d4 | 7547 | |
b0cacab0 | 7548 | fi |
57aa50d4 | 7549 | |
93613951 TT |
7550 | if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then |
7551 | # For using <pthread.h>: | |
7552 | case "$host_os" in | |
7553 | osf*) | |
7554 | # On OSF/1, the compiler needs the flag -D_REENTRANT so that it | |
7555 | # groks <pthread.h>. cc also understands the flag -pthread, but | |
7556 | # we don't use it because 1. gcc-2.95 doesn't understand -pthread, | |
7557 | # 2. putting a flag into CPPFLAGS that has an effect on the linker | |
7558 | # causes the AC_LINK_IFELSE test below to succeed unexpectedly, | |
7559 | # leading to wrong values of LIBTHREAD and LTLIBTHREAD. | |
7560 | CPPFLAGS="$CPPFLAGS -D_REENTRANT" | |
7561 | ;; | |
7562 | esac | |
7563 | # Some systems optimize for single-threaded programs by default, and | |
7564 | # need special flags to disable these optimizations. For example, the | |
7565 | # definition of 'errno' in <errno.h>. | |
7566 | case "$host_os" in | |
7567 | aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;; | |
7568 | solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;; | |
7569 | esac | |
7570 | fi | |
57aa50d4 | 7571 | |
61ef2474 TT |
7572 | |
7573 | ||
7574 | ||
7575 | ||
93613951 TT |
7576 | if test "X$prefix" = "XNONE"; then |
7577 | acl_final_prefix="$ac_default_prefix" | |
7578 | else | |
7579 | acl_final_prefix="$prefix" | |
7580 | fi | |
7581 | if test "X$exec_prefix" = "XNONE"; then | |
7582 | acl_final_exec_prefix='${prefix}' | |
7583 | else | |
7584 | acl_final_exec_prefix="$exec_prefix" | |
7585 | fi | |
7586 | acl_save_prefix="$prefix" | |
7587 | prefix="$acl_final_prefix" | |
7588 | eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" | |
7589 | prefix="$acl_save_prefix" | |
61ef2474 TT |
7590 | |
7591 | ||
7592 | ||
93613951 TT |
7593 | # Check whether --with-gnu-ld was given. |
7594 | if test "${with_gnu_ld+set}" = set; then : | |
7595 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
7596 | else | |
7597 | with_gnu_ld=no | |
7598 | fi | |
b0cacab0 | 7599 | |
93613951 TT |
7600 | # Prepare PATH_SEPARATOR. |
7601 | # The user is always right. | |
7602 | if test "${PATH_SEPARATOR+set}" != set; then | |
7603 | # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which | |
7604 | # contains only /bin. Note that ksh looks also at the FPATH variable, | |
7605 | # so we have to set that as well for the test. | |
7606 | PATH_SEPARATOR=: | |
7607 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ | |
7608 | && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ | |
7609 | || PATH_SEPARATOR=';' | |
7610 | } | |
b0cacab0 | 7611 | fi |
b0cacab0 | 7612 | |
93613951 TT |
7613 | ac_prog=ld |
7614 | if test "$GCC" = yes; then | |
7615 | # Check if gcc -print-prog-name=ld gives a path. | |
7616 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
7617 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
7618 | case $host in | |
7619 | *-*-mingw*) | |
7620 | # gcc leaves a trailing carriage return which upsets mingw | |
7621 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
7622 | *) | |
7623 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
7624 | esac | |
7625 | case $ac_prog in | |
7626 | # Accept absolute paths. | |
7627 | [\\/]* | ?:[\\/]*) | |
7628 | re_direlt='/[^/][^/]*/\.\./' | |
7629 | # Canonicalize the pathname of ld | |
7630 | ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'` | |
7631 | while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do | |
7632 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | |
7633 | done | |
7634 | test -z "$LD" && LD="$ac_prog" | |
7635 | ;; | |
7636 | "") | |
7637 | # If it fails, then pretend we aren't using GCC. | |
7638 | ac_prog=ld | |
7639 | ;; | |
7640 | *) | |
7641 | # If it is relative, then search for the first ld in PATH. | |
7642 | with_gnu_ld=unknown | |
7643 | ;; | |
7644 | esac | |
7645 | elif test "$with_gnu_ld" = yes; then | |
7646 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
7647 | $as_echo_n "checking for GNU ld... " >&6; } | |
b0cacab0 | 7648 | else |
93613951 TT |
7649 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
7650 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
7651 | fi | |
7652 | if ${acl_cv_path_LD+:} false; then : | |
7653 | $as_echo_n "(cached) " >&6 | |
b0cacab0 | 7654 | else |
93613951 TT |
7655 | if test -z "$LD"; then |
7656 | acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
7657 | for ac_dir in $PATH; do | |
7658 | IFS="$acl_save_ifs" | |
7659 | test -z "$ac_dir" && ac_dir=. | |
7660 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
7661 | acl_cv_path_LD="$ac_dir/$ac_prog" | |
7662 | # Check to see if the program is GNU ld. I'd rather use --version, | |
7663 | # but apparently some variants of GNU ld only accept -v. | |
7664 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
7665 | case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in | |
7666 | *GNU* | *'with BFD'*) | |
7667 | test "$with_gnu_ld" != no && break | |
7668 | ;; | |
7669 | *) | |
7670 | test "$with_gnu_ld" != yes && break | |
7671 | ;; | |
7672 | esac | |
7673 | fi | |
7674 | done | |
7675 | IFS="$acl_save_ifs" | |
7676 | else | |
7677 | acl_cv_path_LD="$LD" # Let the user override the test with a path. | |
7678 | fi | |
7679 | fi | |
b0cacab0 | 7680 | |
93613951 TT |
7681 | LD="$acl_cv_path_LD" |
7682 | if test -n "$LD"; then | |
7683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
7684 | $as_echo "$LD" >&6; } | |
7685 | else | |
7686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7687 | $as_echo "no" >&6; } | |
7688 | fi | |
7689 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 | |
7690 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
7691 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
7692 | if ${acl_cv_prog_gnu_ld+:} false; then : | |
7693 | $as_echo_n "(cached) " >&6 | |
7694 | else | |
7695 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
7696 | case `$LD -v 2>&1 </dev/null` in | |
7697 | *GNU* | *'with BFD'*) | |
7698 | acl_cv_prog_gnu_ld=yes | |
7699 | ;; | |
7700 | *) | |
7701 | acl_cv_prog_gnu_ld=no | |
7702 | ;; | |
7703 | esac | |
7704 | fi | |
7705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 | |
7706 | $as_echo "$acl_cv_prog_gnu_ld" >&6; } | |
7707 | with_gnu_ld=$acl_cv_prog_gnu_ld | |
b0cacab0 | 7708 | |
b0cacab0 | 7709 | |
b0cacab0 | 7710 | |
b0cacab0 | 7711 | |
93613951 TT |
7712 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 |
7713 | $as_echo_n "checking for shared library run path origin... " >&6; } | |
7714 | if ${acl_cv_rpath+:} false; then : | |
7715 | $as_echo_n "(cached) " >&6 | |
7716 | else | |
61ef2474 | 7717 | |
93613951 TT |
7718 | CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ |
7719 | ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh | |
7720 | . ./conftest.sh | |
7721 | rm -f ./conftest.sh | |
7722 | acl_cv_rpath=done | |
b0cacab0 | 7723 | |
b0cacab0 | 7724 | fi |
93613951 TT |
7725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 |
7726 | $as_echo "$acl_cv_rpath" >&6; } | |
7727 | wl="$acl_cv_wl" | |
7728 | acl_libext="$acl_cv_libext" | |
7729 | acl_shlibext="$acl_cv_shlibext" | |
7730 | acl_libname_spec="$acl_cv_libname_spec" | |
7731 | acl_library_names_spec="$acl_cv_library_names_spec" | |
7732 | acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" | |
7733 | acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" | |
7734 | acl_hardcode_direct="$acl_cv_hardcode_direct" | |
7735 | acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" | |
7736 | # Check whether --enable-rpath was given. | |
7737 | if test "${enable_rpath+set}" = set; then : | |
7738 | enableval=$enable_rpath; : | |
7739 | else | |
7740 | enable_rpath=yes | |
b0cacab0 | 7741 | fi |
b0cacab0 | 7742 | |
b0cacab0 | 7743 | |
b0cacab0 TT |
7744 | |
7745 | ||
93613951 TT |
7746 | acl_libdirstem=lib |
7747 | acl_libdirstem2= | |
7748 | case "$host_os" in | |
7749 | solaris*) | |
7750 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5 | |
7751 | $as_echo_n "checking for 64-bit host... " >&6; } | |
7752 | if ${gl_cv_solaris_64bit+:} false; then : | |
39fd3d4f | 7753 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 7754 | else |
57aa50d4 | 7755 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b0cacab0 TT |
7756 | /* end confdefs.h. */ |
7757 | ||
93613951 TT |
7758 | #ifdef _LP64 |
7759 | sixtyfour bits | |
b0cacab0 TT |
7760 | #endif |
7761 | ||
7762 | _ACEOF | |
7763 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
93613951 TT |
7764 | $EGREP "sixtyfour bits" >/dev/null 2>&1; then : |
7765 | gl_cv_solaris_64bit=yes | |
b0cacab0 | 7766 | else |
93613951 | 7767 | gl_cv_solaris_64bit=no |
b0cacab0 TT |
7768 | fi |
7769 | rm -f conftest* | |
7770 | ||
7771 | ||
b0cacab0 | 7772 | fi |
93613951 TT |
7773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5 |
7774 | $as_echo "$gl_cv_solaris_64bit" >&6; } | |
7775 | if test $gl_cv_solaris_64bit = yes; then | |
7776 | acl_libdirstem=lib/64 | |
7777 | case "$host_cpu" in | |
7778 | sparc*) acl_libdirstem2=lib/sparcv9 ;; | |
7779 | i*86 | x86_64) acl_libdirstem2=lib/amd64 ;; | |
7780 | esac | |
7781 | fi | |
7782 | ;; | |
7783 | *) | |
7784 | searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` | |
7785 | if test -n "$searchpath"; then | |
7786 | acl_save_IFS="${IFS= }"; IFS=":" | |
7787 | for searchdir in $searchpath; do | |
7788 | if test -d "$searchdir"; then | |
7789 | case "$searchdir" in | |
7790 | */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; | |
7791 | */../ | */.. ) | |
7792 | # Better ignore directories of this form. They are misleading. | |
7793 | ;; | |
7794 | *) searchdir=`cd "$searchdir" && pwd` | |
7795 | case "$searchdir" in | |
7796 | */lib64 ) acl_libdirstem=lib64 ;; | |
7797 | esac ;; | |
7798 | esac | |
7799 | fi | |
7800 | done | |
7801 | IFS="$acl_save_IFS" | |
7802 | fi | |
7803 | ;; | |
7804 | esac | |
7805 | test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem" | |
b0cacab0 TT |
7806 | |
7807 | ||
7808 | ||
93613951 TT |
7809 | gl_threads_api=none |
7810 | LIBTHREAD= | |
7811 | LTLIBTHREAD= | |
7812 | LIBMULTITHREAD= | |
7813 | LTLIBMULTITHREAD= | |
7814 | if test "$gl_use_threads" != no; then | |
7815 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5 | |
7816 | $as_echo_n "checking whether imported symbols can be declared weak... " >&6; } | |
7817 | if ${gl_cv_have_weak+:} false; then : | |
39fd3d4f | 7818 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 7819 | else |
93613951 TT |
7820 | gl_cv_have_weak=no |
7821 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b0cacab0 | 7822 | /* end confdefs.h. */ |
93613951 TT |
7823 | extern void xyzzy (); |
7824 | #pragma weak xyzzy | |
7825 | int | |
7826 | main () | |
b0cacab0 | 7827 | { |
93613951 TT |
7828 | xyzzy(); |
7829 | ; | |
7830 | return 0; | |
b0cacab0 | 7831 | } |
93613951 TT |
7832 | _ACEOF |
7833 | if ac_fn_c_try_link "$LINENO"; then : | |
7834 | gl_cv_have_weak=maybe | |
7835 | fi | |
7836 | rm -f core conftest.err conftest.$ac_objext \ | |
7837 | conftest$ac_exeext conftest.$ac_ext | |
7838 | if test $gl_cv_have_weak = maybe; then | |
7839 | if test "$cross_compiling" = yes; then : | |
7840 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7841 | /* end confdefs.h. */ | |
7842 | #ifdef __ELF__ | |
7843 | Extensible Linking Format | |
7844 | #endif | |
b0cacab0 | 7845 | |
93613951 TT |
7846 | _ACEOF |
7847 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7848 | $EGREP "Extensible Linking Format" >/dev/null 2>&1; then : | |
7849 | gl_cv_have_weak="guessing yes" | |
7850 | else | |
7851 | gl_cv_have_weak="guessing no" | |
7852 | fi | |
7853 | rm -f conftest* | |
b0cacab0 | 7854 | |
b0cacab0 TT |
7855 | |
7856 | else | |
57aa50d4 | 7857 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b0cacab0 | 7858 | /* end confdefs.h. */ |
b0cacab0 | 7859 | |
93613951 TT |
7860 | #include <stdio.h> |
7861 | #pragma weak fputs | |
b0cacab0 | 7862 | int main () |
a04eba3f | 7863 | { |
93613951 | 7864 | return (fputs == NULL); |
a04eba3f | 7865 | } |
b0cacab0 | 7866 | _ACEOF |
57aa50d4 | 7867 | if ac_fn_c_try_run "$LINENO"; then : |
93613951 | 7868 | gl_cv_have_weak=yes |
a64c9c13 | 7869 | else |
93613951 | 7870 | gl_cv_have_weak=no |
b0cacab0 | 7871 | fi |
57aa50d4 TT |
7872 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
7873 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
b0cacab0 TT |
7874 | fi |
7875 | ||
93613951 | 7876 | fi |
e1052144 | 7877 | |
b0cacab0 | 7878 | fi |
93613951 TT |
7879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5 |
7880 | $as_echo "$gl_cv_have_weak" >&6; } | |
7881 | if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then | |
7882 | # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that | |
7883 | # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY. | |
7884 | ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" | |
7885 | if test "x$ac_cv_header_pthread_h" = xyes; then : | |
7886 | gl_have_pthread_h=yes | |
7887 | else | |
7888 | gl_have_pthread_h=no | |
7889 | fi | |
b0cacab0 TT |
7890 | |
7891 | ||
93613951 TT |
7892 | if test "$gl_have_pthread_h" = yes; then |
7893 | # Other possible tests: | |
7894 | # -lpthreads (FSU threads, PCthreads) | |
7895 | # -lgthreads | |
7896 | gl_have_pthread= | |
7897 | # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist | |
7898 | # in libc. IRIX 6.5 has the first one in both libc and libpthread, but | |
7899 | # the second one only in libpthread, and lock.c needs it. | |
7900 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b0cacab0 | 7901 | /* end confdefs.h. */ |
93613951 | 7902 | #include <pthread.h> |
b0cacab0 TT |
7903 | int |
7904 | main () | |
7905 | { | |
93613951 TT |
7906 | pthread_mutex_lock((pthread_mutex_t*)0); |
7907 | pthread_mutexattr_init((pthread_mutexattr_t*)0); | |
b0cacab0 TT |
7908 | ; |
7909 | return 0; | |
7910 | } | |
7911 | _ACEOF | |
57aa50d4 | 7912 | if ac_fn_c_try_link "$LINENO"; then : |
93613951 | 7913 | gl_have_pthread=yes |
b0cacab0 | 7914 | fi |
57aa50d4 TT |
7915 | rm -f core conftest.err conftest.$ac_objext \ |
7916 | conftest$ac_exeext conftest.$ac_ext | |
93613951 TT |
7917 | # Test for libpthread by looking for pthread_kill. (Not pthread_self, |
7918 | # since it is defined as a macro on OSF/1.) | |
7919 | if test -n "$gl_have_pthread"; then | |
7920 | # The program links fine without libpthread. But it may actually | |
7921 | # need to link with libpthread in order to create multiple threads. | |
7922 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5 | |
7923 | $as_echo_n "checking for pthread_kill in -lpthread... " >&6; } | |
7924 | if ${ac_cv_lib_pthread_pthread_kill+:} false; then : | |
39fd3d4f | 7925 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 7926 | else |
93613951 TT |
7927 | ac_check_lib_save_LIBS=$LIBS |
7928 | LIBS="-lpthread $LIBS" | |
7929 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b0cacab0 | 7930 | /* end confdefs.h. */ |
93613951 TT |
7931 | |
7932 | /* Override any GCC internal prototype to avoid an error. | |
7933 | Use char because int might match the return type of a GCC | |
7934 | builtin and then its argument prototype would still apply. */ | |
7935 | #ifdef __cplusplus | |
7936 | extern "C" | |
7937 | #endif | |
7938 | char pthread_kill (); | |
b0cacab0 TT |
7939 | int |
7940 | main () | |
7941 | { | |
93613951 | 7942 | return pthread_kill (); |
b0cacab0 TT |
7943 | ; |
7944 | return 0; | |
7945 | } | |
7946 | _ACEOF | |
93613951 TT |
7947 | if ac_fn_c_try_link "$LINENO"; then : |
7948 | ac_cv_lib_pthread_pthread_kill=yes | |
b0cacab0 | 7949 | else |
93613951 | 7950 | ac_cv_lib_pthread_pthread_kill=no |
b0cacab0 | 7951 | fi |
93613951 TT |
7952 | rm -f core conftest.err conftest.$ac_objext \ |
7953 | conftest$ac_exeext conftest.$ac_ext | |
7954 | LIBS=$ac_check_lib_save_LIBS | |
b0cacab0 | 7955 | fi |
93613951 TT |
7956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5 |
7957 | $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; } | |
7958 | if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then : | |
7959 | LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread | |
7960 | # On Solaris and HP-UX, most pthread functions exist also in libc. | |
7961 | # Therefore pthread_in_use() needs to actually try to create a | |
7962 | # thread: pthread_create from libc will fail, whereas | |
7963 | # pthread_create will actually create a thread. | |
7964 | case "$host_os" in | |
7965 | solaris* | hpux*) | |
b0cacab0 | 7966 | |
93613951 | 7967 | $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h |
b0cacab0 | 7968 | |
93613951 | 7969 | esac |
b0cacab0 | 7970 | |
93613951 | 7971 | fi |
b0cacab0 | 7972 | |
93613951 TT |
7973 | else |
7974 | # Some library is needed. Try libpthread and libc_r. | |
7975 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5 | |
7976 | $as_echo_n "checking for pthread_kill in -lpthread... " >&6; } | |
7977 | if ${ac_cv_lib_pthread_pthread_kill+:} false; then : | |
39fd3d4f | 7978 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 7979 | else |
93613951 TT |
7980 | ac_check_lib_save_LIBS=$LIBS |
7981 | LIBS="-lpthread $LIBS" | |
7982 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b0cacab0 | 7983 | /* end confdefs.h. */ |
b0cacab0 | 7984 | |
93613951 TT |
7985 | /* Override any GCC internal prototype to avoid an error. |
7986 | Use char because int might match the return type of a GCC | |
7987 | builtin and then its argument prototype would still apply. */ | |
7988 | #ifdef __cplusplus | |
7989 | extern "C" | |
7990 | #endif | |
7991 | char pthread_kill (); | |
b0cacab0 TT |
7992 | int |
7993 | main () | |
7994 | { | |
93613951 | 7995 | return pthread_kill (); |
b0cacab0 TT |
7996 | ; |
7997 | return 0; | |
7998 | } | |
7999 | _ACEOF | |
93613951 TT |
8000 | if ac_fn_c_try_link "$LINENO"; then : |
8001 | ac_cv_lib_pthread_pthread_kill=yes | |
b0cacab0 | 8002 | else |
93613951 | 8003 | ac_cv_lib_pthread_pthread_kill=no |
b0cacab0 | 8004 | fi |
93613951 TT |
8005 | rm -f core conftest.err conftest.$ac_objext \ |
8006 | conftest$ac_exeext conftest.$ac_ext | |
8007 | LIBS=$ac_check_lib_save_LIBS | |
b0cacab0 | 8008 | fi |
93613951 TT |
8009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5 |
8010 | $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; } | |
8011 | if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then : | |
8012 | gl_have_pthread=yes | |
8013 | LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread | |
8014 | LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread | |
b0cacab0 TT |
8015 | fi |
8016 | ||
93613951 TT |
8017 | if test -z "$gl_have_pthread"; then |
8018 | # For FreeBSD 4. | |
8019 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5 | |
8020 | $as_echo_n "checking for pthread_kill in -lc_r... " >&6; } | |
8021 | if ${ac_cv_lib_c_r_pthread_kill+:} false; then : | |
8022 | $as_echo_n "(cached) " >&6 | |
8023 | else | |
8024 | ac_check_lib_save_LIBS=$LIBS | |
8025 | LIBS="-lc_r $LIBS" | |
8026 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b0cacab0 TT |
8027 | /* end confdefs.h. */ |
8028 | ||
93613951 TT |
8029 | /* Override any GCC internal prototype to avoid an error. |
8030 | Use char because int might match the return type of a GCC | |
8031 | builtin and then its argument prototype would still apply. */ | |
8032 | #ifdef __cplusplus | |
8033 | extern "C" | |
b0cacab0 | 8034 | #endif |
93613951 TT |
8035 | char pthread_kill (); |
8036 | int | |
8037 | main () | |
8038 | { | |
8039 | return pthread_kill (); | |
8040 | ; | |
8041 | return 0; | |
8042 | } | |
b0cacab0 | 8043 | _ACEOF |
93613951 TT |
8044 | if ac_fn_c_try_link "$LINENO"; then : |
8045 | ac_cv_lib_c_r_pthread_kill=yes | |
b0cacab0 | 8046 | else |
93613951 | 8047 | ac_cv_lib_c_r_pthread_kill=no |
57aa50d4 | 8048 | fi |
93613951 TT |
8049 | rm -f core conftest.err conftest.$ac_objext \ |
8050 | conftest$ac_exeext conftest.$ac_ext | |
8051 | LIBS=$ac_check_lib_save_LIBS | |
8052 | fi | |
8053 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5 | |
8054 | $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; } | |
8055 | if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then : | |
8056 | gl_have_pthread=yes | |
8057 | LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r | |
8058 | LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r | |
b0cacab0 | 8059 | fi |
e1052144 | 8060 | |
93613951 TT |
8061 | fi |
8062 | fi | |
8063 | if test -n "$gl_have_pthread"; then | |
8064 | gl_threads_api=posix | |
57aa50d4 | 8065 | |
93613951 | 8066 | $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h |
57aa50d4 | 8067 | |
93613951 TT |
8068 | if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then |
8069 | if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then | |
b0cacab0 | 8070 | |
93613951 | 8071 | $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h |
b0cacab0 | 8072 | |
93613951 TT |
8073 | LIBTHREAD= |
8074 | LTLIBTHREAD= | |
8075 | fi | |
8076 | fi | |
8077 | fi | |
8078 | fi | |
8079 | fi | |
8080 | if test -z "$gl_have_pthread"; then | |
8081 | if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then | |
8082 | gl_have_solaristhread= | |
8083 | gl_save_LIBS="$LIBS" | |
8084 | LIBS="$LIBS -lthread" | |
8085 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b0cacab0 | 8086 | /* end confdefs.h. */ |
93613951 TT |
8087 | |
8088 | #include <thread.h> | |
8089 | #include <synch.h> | |
57aa50d4 | 8090 | |
b0cacab0 TT |
8091 | int |
8092 | main () | |
8093 | { | |
93613951 | 8094 | thr_self(); |
b0cacab0 TT |
8095 | ; |
8096 | return 0; | |
8097 | } | |
8098 | _ACEOF | |
93613951 TT |
8099 | if ac_fn_c_try_link "$LINENO"; then : |
8100 | gl_have_solaristhread=yes | |
b0cacab0 | 8101 | fi |
93613951 TT |
8102 | rm -f core conftest.err conftest.$ac_objext \ |
8103 | conftest$ac_exeext conftest.$ac_ext | |
8104 | LIBS="$gl_save_LIBS" | |
8105 | if test -n "$gl_have_solaristhread"; then | |
8106 | gl_threads_api=solaris | |
8107 | LIBTHREAD=-lthread | |
8108 | LTLIBTHREAD=-lthread | |
8109 | LIBMULTITHREAD="$LIBTHREAD" | |
8110 | LTLIBMULTITHREAD="$LTLIBTHREAD" | |
8111 | ||
8112 | $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h | |
8113 | ||
8114 | if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then | |
8115 | ||
8116 | $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h | |
8117 | ||
8118 | LIBTHREAD= | |
8119 | LTLIBTHREAD= | |
8120 | fi | |
8121 | fi | |
57aa50d4 | 8122 | fi |
57aa50d4 | 8123 | fi |
93613951 TT |
8124 | if test "$gl_use_threads" = pth; then |
8125 | gl_save_CPPFLAGS="$CPPFLAGS" | |
b0cacab0 | 8126 | |
e1052144 | 8127 | |
e1052144 | 8128 | |
b0cacab0 | 8129 | |
57aa50d4 | 8130 | |
93613951 TT |
8131 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5 |
8132 | $as_echo_n "checking how to link with libpth... " >&6; } | |
8133 | if ${ac_cv_libpth_libs+:} false; then : | |
8134 | $as_echo_n "(cached) " >&6 | |
8135 | else | |
e1052144 | 8136 | |
b0cacab0 | 8137 | |
b0cacab0 | 8138 | |
29a5deed | 8139 | |
b0cacab0 | 8140 | |
b0cacab0 | 8141 | |
b0cacab0 | 8142 | |
e1052144 | 8143 | |
57aa50d4 | 8144 | use_additional=yes |
b0cacab0 | 8145 | |
57aa50d4 TT |
8146 | acl_save_prefix="$prefix" |
8147 | prefix="$acl_final_prefix" | |
8148 | acl_save_exec_prefix="$exec_prefix" | |
8149 | exec_prefix="$acl_final_exec_prefix" | |
b0cacab0 | 8150 | |
57aa50d4 TT |
8151 | eval additional_includedir=\"$includedir\" |
8152 | eval additional_libdir=\"$libdir\" | |
b0cacab0 | 8153 | |
57aa50d4 TT |
8154 | exec_prefix="$acl_save_exec_prefix" |
8155 | prefix="$acl_save_prefix" | |
b0cacab0 | 8156 | |
e1052144 | 8157 | |
93613951 TT |
8158 | # Check whether --with-libpth-prefix was given. |
8159 | if test "${with_libpth_prefix+set}" = set; then : | |
8160 | withval=$with_libpth_prefix; | |
57aa50d4 TT |
8161 | if test "X$withval" = "Xno"; then |
8162 | use_additional=no | |
8163 | else | |
8164 | if test "X$withval" = "X"; then | |
b0cacab0 | 8165 | |
57aa50d4 TT |
8166 | acl_save_prefix="$prefix" |
8167 | prefix="$acl_final_prefix" | |
8168 | acl_save_exec_prefix="$exec_prefix" | |
8169 | exec_prefix="$acl_final_exec_prefix" | |
e1052144 | 8170 | |
57aa50d4 TT |
8171 | eval additional_includedir=\"$includedir\" |
8172 | eval additional_libdir=\"$libdir\" | |
e1052144 | 8173 | |
57aa50d4 TT |
8174 | exec_prefix="$acl_save_exec_prefix" |
8175 | prefix="$acl_save_prefix" | |
b0cacab0 | 8176 | |
57aa50d4 TT |
8177 | else |
8178 | additional_includedir="$withval/include" | |
93613951 TT |
8179 | additional_libdir="$withval/$acl_libdirstem" |
8180 | if test "$acl_libdirstem2" != "$acl_libdirstem" \ | |
8181 | && ! test -d "$withval/$acl_libdirstem"; then | |
8182 | additional_libdir="$withval/$acl_libdirstem2" | |
8183 | fi | |
57aa50d4 TT |
8184 | fi |
8185 | fi | |
b0cacab0 | 8186 | |
b0cacab0 | 8187 | fi |
e1052144 | 8188 | |
93613951 TT |
8189 | LIBPTH= |
8190 | LTLIBPTH= | |
8191 | INCPTH= | |
8192 | LIBPTH_PREFIX= | |
8193 | HAVE_LIBPTH= | |
a04eba3f TT |
8194 | rpathdirs= |
8195 | ltrpathdirs= | |
8196 | names_already_handled= | |
93613951 | 8197 | names_next_round='pth ' |
a04eba3f TT |
8198 | while test -n "$names_next_round"; do |
8199 | names_this_round="$names_next_round" | |
8200 | names_next_round= | |
8201 | for name in $names_this_round; do | |
8202 | already_handled= | |
8203 | for n in $names_already_handled; do | |
8204 | if test "$n" = "$name"; then | |
8205 | already_handled=yes | |
8206 | break | |
8207 | fi | |
8208 | done | |
8209 | if test -z "$already_handled"; then | |
8210 | names_already_handled="$names_already_handled $name" | |
93613951 | 8211 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` |
a04eba3f TT |
8212 | eval value=\"\$HAVE_LIB$uppername\" |
8213 | if test -n "$value"; then | |
8214 | if test "$value" = yes; then | |
8215 | eval value=\"\$LIB$uppername\" | |
93613951 | 8216 | test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value" |
a04eba3f | 8217 | eval value=\"\$LTLIB$uppername\" |
93613951 | 8218 | test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value" |
a04eba3f TT |
8219 | else |
8220 | : | |
8221 | fi | |
8222 | else | |
8223 | found_dir= | |
8224 | found_la= | |
8225 | found_so= | |
8226 | found_a= | |
93613951 TT |
8227 | eval libname=\"$acl_libname_spec\" # typically: libname=lib$name |
8228 | if test -n "$acl_shlibext"; then | |
8229 | shrext=".$acl_shlibext" # typically: shrext=.so | |
8230 | else | |
8231 | shrext= | |
8232 | fi | |
a04eba3f | 8233 | if test $use_additional = yes; then |
93613951 TT |
8234 | dir="$additional_libdir" |
8235 | if test -n "$acl_shlibext"; then | |
8236 | if test -f "$dir/$libname$shrext"; then | |
8237 | found_dir="$dir" | |
8238 | found_so="$dir/$libname$shrext" | |
8239 | else | |
8240 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then | |
8241 | ver=`(cd "$dir" && \ | |
8242 | for f in "$libname$shrext".*; do echo "$f"; done \ | |
8243 | | sed -e "s,^$libname$shrext\\\\.,," \ | |
8244 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | |
8245 | | sed 1q ) 2>/dev/null` | |
8246 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then | |
8247 | found_dir="$dir" | |
8248 | found_so="$dir/$libname$shrext.$ver" | |
8249 | fi | |
8250 | else | |
8251 | eval library_names=\"$acl_library_names_spec\" | |
8252 | for f in $library_names; do | |
8253 | if test -f "$dir/$f"; then | |
8254 | found_dir="$dir" | |
8255 | found_so="$dir/$f" | |
8256 | break | |
8257 | fi | |
8258 | done | |
a04eba3f TT |
8259 | fi |
8260 | fi | |
93613951 TT |
8261 | fi |
8262 | if test "X$found_dir" = "X"; then | |
8263 | if test -f "$dir/$libname.$acl_libext"; then | |
8264 | found_dir="$dir" | |
8265 | found_a="$dir/$libname.$acl_libext" | |
8266 | fi | |
8267 | fi | |
8268 | if test "X$found_dir" != "X"; then | |
8269 | if test -f "$dir/$libname.la"; then | |
8270 | found_la="$dir/$libname.la" | |
8271 | fi | |
a04eba3f TT |
8272 | fi |
8273 | fi | |
8274 | if test "X$found_dir" = "X"; then | |
93613951 | 8275 | for x in $LDFLAGS $LTLIBPTH; do |
b0cacab0 | 8276 | |
a04eba3f TT |
8277 | acl_save_prefix="$prefix" |
8278 | prefix="$acl_final_prefix" | |
8279 | acl_save_exec_prefix="$exec_prefix" | |
8280 | exec_prefix="$acl_final_exec_prefix" | |
8281 | eval x=\"$x\" | |
8282 | exec_prefix="$acl_save_exec_prefix" | |
8283 | prefix="$acl_save_prefix" | |
8284 | ||
8285 | case "$x" in | |
8286 | -L*) | |
8287 | dir=`echo "X$x" | sed -e 's/^X-L//'` | |
93613951 TT |
8288 | if test -n "$acl_shlibext"; then |
8289 | if test -f "$dir/$libname$shrext"; then | |
a04eba3f | 8290 | found_dir="$dir" |
93613951 TT |
8291 | found_so="$dir/$libname$shrext" |
8292 | else | |
8293 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then | |
8294 | ver=`(cd "$dir" && \ | |
8295 | for f in "$libname$shrext".*; do echo "$f"; done \ | |
8296 | | sed -e "s,^$libname$shrext\\\\.,," \ | |
8297 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | |
8298 | | sed 1q ) 2>/dev/null` | |
8299 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then | |
8300 | found_dir="$dir" | |
8301 | found_so="$dir/$libname$shrext.$ver" | |
8302 | fi | |
8303 | else | |
8304 | eval library_names=\"$acl_library_names_spec\" | |
8305 | for f in $library_names; do | |
8306 | if test -f "$dir/$f"; then | |
8307 | found_dir="$dir" | |
8308 | found_so="$dir/$f" | |
8309 | break | |
8310 | fi | |
8311 | done | |
a04eba3f TT |
8312 | fi |
8313 | fi | |
93613951 TT |
8314 | fi |
8315 | if test "X$found_dir" = "X"; then | |
8316 | if test -f "$dir/$libname.$acl_libext"; then | |
8317 | found_dir="$dir" | |
8318 | found_a="$dir/$libname.$acl_libext" | |
8319 | fi | |
8320 | fi | |
8321 | if test "X$found_dir" != "X"; then | |
8322 | if test -f "$dir/$libname.la"; then | |
8323 | found_la="$dir/$libname.la" | |
8324 | fi | |
a04eba3f TT |
8325 | fi |
8326 | ;; | |
8327 | esac | |
8328 | if test "X$found_dir" != "X"; then | |
8329 | break | |
8330 | fi | |
8331 | done | |
8332 | fi | |
8333 | if test "X$found_dir" != "X"; then | |
93613951 | 8334 | LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name" |
a04eba3f | 8335 | if test "X$found_so" != "X"; then |
93613951 TT |
8336 | if test "$enable_rpath" = no \ |
8337 | || test "X$found_dir" = "X/usr/$acl_libdirstem" \ | |
8338 | || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then | |
8339 | LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so" | |
a04eba3f TT |
8340 | else |
8341 | haveit= | |
8342 | for x in $ltrpathdirs; do | |
8343 | if test "X$x" = "X$found_dir"; then | |
8344 | haveit=yes | |
8345 | break | |
8346 | fi | |
8347 | done | |
8348 | if test -z "$haveit"; then | |
8349 | ltrpathdirs="$ltrpathdirs $found_dir" | |
8350 | fi | |
93613951 TT |
8351 | if test "$acl_hardcode_direct" = yes; then |
8352 | LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so" | |
a04eba3f | 8353 | else |
93613951 TT |
8354 | if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then |
8355 | LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so" | |
a04eba3f TT |
8356 | haveit= |
8357 | for x in $rpathdirs; do | |
8358 | if test "X$x" = "X$found_dir"; then | |
8359 | haveit=yes | |
8360 | break | |
8361 | fi | |
8362 | done | |
8363 | if test -z "$haveit"; then | |
8364 | rpathdirs="$rpathdirs $found_dir" | |
8365 | fi | |
8366 | else | |
8367 | haveit= | |
93613951 | 8368 | for x in $LDFLAGS $LIBPTH; do |
b0cacab0 | 8369 | |
a04eba3f TT |
8370 | acl_save_prefix="$prefix" |
8371 | prefix="$acl_final_prefix" | |
8372 | acl_save_exec_prefix="$exec_prefix" | |
8373 | exec_prefix="$acl_final_exec_prefix" | |
8374 | eval x=\"$x\" | |
8375 | exec_prefix="$acl_save_exec_prefix" | |
8376 | prefix="$acl_save_prefix" | |
8377 | ||
8378 | if test "X$x" = "X-L$found_dir"; then | |
8379 | haveit=yes | |
8380 | break | |
8381 | fi | |
8382 | done | |
8383 | if test -z "$haveit"; then | |
93613951 | 8384 | LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir" |
a04eba3f | 8385 | fi |
93613951 TT |
8386 | if test "$acl_hardcode_minus_L" != no; then |
8387 | LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so" | |
a04eba3f | 8388 | else |
93613951 | 8389 | LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name" |
a04eba3f TT |
8390 | fi |
8391 | fi | |
8392 | fi | |
8393 | fi | |
8394 | else | |
8395 | if test "X$found_a" != "X"; then | |
93613951 | 8396 | LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a" |
a04eba3f | 8397 | else |
93613951 | 8398 | LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name" |
a04eba3f TT |
8399 | fi |
8400 | fi | |
8401 | additional_includedir= | |
8402 | case "$found_dir" in | |
93613951 TT |
8403 | */$acl_libdirstem | */$acl_libdirstem/) |
8404 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` | |
8405 | if test "$name" = 'pth'; then | |
8406 | LIBPTH_PREFIX="$basedir" | |
8407 | fi | |
8408 | additional_includedir="$basedir/include" | |
8409 | ;; | |
8410 | */$acl_libdirstem2 | */$acl_libdirstem2/) | |
8411 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` | |
8412 | if test "$name" = 'pth'; then | |
8413 | LIBPTH_PREFIX="$basedir" | |
8414 | fi | |
a04eba3f TT |
8415 | additional_includedir="$basedir/include" |
8416 | ;; | |
8417 | esac | |
8418 | if test "X$additional_includedir" != "X"; then | |
8419 | if test "X$additional_includedir" != "X/usr/include"; then | |
8420 | haveit= | |
8421 | if test "X$additional_includedir" = "X/usr/local/include"; then | |
8422 | if test -n "$GCC"; then | |
8423 | case $host_os in | |
93613951 | 8424 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; |
a04eba3f TT |
8425 | esac |
8426 | fi | |
8427 | fi | |
8428 | if test -z "$haveit"; then | |
93613951 | 8429 | for x in $CPPFLAGS $INCPTH; do |
b0cacab0 | 8430 | |
a04eba3f TT |
8431 | acl_save_prefix="$prefix" |
8432 | prefix="$acl_final_prefix" | |
8433 | acl_save_exec_prefix="$exec_prefix" | |
8434 | exec_prefix="$acl_final_exec_prefix" | |
8435 | eval x=\"$x\" | |
8436 | exec_prefix="$acl_save_exec_prefix" | |
8437 | prefix="$acl_save_prefix" | |
8438 | ||
8439 | if test "X$x" = "X-I$additional_includedir"; then | |
8440 | haveit=yes | |
8441 | break | |
8442 | fi | |
8443 | done | |
8444 | if test -z "$haveit"; then | |
8445 | if test -d "$additional_includedir"; then | |
93613951 | 8446 | INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir" |
a04eba3f TT |
8447 | fi |
8448 | fi | |
8449 | fi | |
8450 | fi | |
8451 | fi | |
8452 | if test -n "$found_la"; then | |
8453 | save_libdir="$libdir" | |
8454 | case "$found_la" in | |
8455 | */* | *\\*) . "$found_la" ;; | |
8456 | *) . "./$found_la" ;; | |
8457 | esac | |
8458 | libdir="$save_libdir" | |
8459 | for dep in $dependency_libs; do | |
8460 | case "$dep" in | |
8461 | -L*) | |
8462 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` | |
93613951 TT |
8463 | if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ |
8464 | && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then | |
a04eba3f | 8465 | haveit= |
93613951 TT |
8466 | if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ |
8467 | || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then | |
a04eba3f TT |
8468 | if test -n "$GCC"; then |
8469 | case $host_os in | |
93613951 | 8470 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; |
a04eba3f TT |
8471 | esac |
8472 | fi | |
8473 | fi | |
8474 | if test -z "$haveit"; then | |
8475 | haveit= | |
93613951 | 8476 | for x in $LDFLAGS $LIBPTH; do |
b0cacab0 | 8477 | |
a04eba3f TT |
8478 | acl_save_prefix="$prefix" |
8479 | prefix="$acl_final_prefix" | |
8480 | acl_save_exec_prefix="$exec_prefix" | |
8481 | exec_prefix="$acl_final_exec_prefix" | |
8482 | eval x=\"$x\" | |
8483 | exec_prefix="$acl_save_exec_prefix" | |
8484 | prefix="$acl_save_prefix" | |
8485 | ||
8486 | if test "X$x" = "X-L$additional_libdir"; then | |
8487 | haveit=yes | |
8488 | break | |
8489 | fi | |
8490 | done | |
8491 | if test -z "$haveit"; then | |
8492 | if test -d "$additional_libdir"; then | |
93613951 | 8493 | LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir" |
a04eba3f TT |
8494 | fi |
8495 | fi | |
8496 | haveit= | |
93613951 | 8497 | for x in $LDFLAGS $LTLIBPTH; do |
b0cacab0 | 8498 | |
a04eba3f TT |
8499 | acl_save_prefix="$prefix" |
8500 | prefix="$acl_final_prefix" | |
8501 | acl_save_exec_prefix="$exec_prefix" | |
8502 | exec_prefix="$acl_final_exec_prefix" | |
8503 | eval x=\"$x\" | |
8504 | exec_prefix="$acl_save_exec_prefix" | |
8505 | prefix="$acl_save_prefix" | |
8506 | ||
8507 | if test "X$x" = "X-L$additional_libdir"; then | |
8508 | haveit=yes | |
8509 | break | |
8510 | fi | |
8511 | done | |
8512 | if test -z "$haveit"; then | |
8513 | if test -d "$additional_libdir"; then | |
93613951 | 8514 | LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir" |
a04eba3f TT |
8515 | fi |
8516 | fi | |
8517 | fi | |
8518 | fi | |
8519 | ;; | |
8520 | -R*) | |
8521 | dir=`echo "X$dep" | sed -e 's/^X-R//'` | |
8522 | if test "$enable_rpath" != no; then | |
8523 | haveit= | |
8524 | for x in $rpathdirs; do | |
8525 | if test "X$x" = "X$dir"; then | |
8526 | haveit=yes | |
8527 | break | |
8528 | fi | |
8529 | done | |
8530 | if test -z "$haveit"; then | |
8531 | rpathdirs="$rpathdirs $dir" | |
8532 | fi | |
8533 | haveit= | |
8534 | for x in $ltrpathdirs; do | |
8535 | if test "X$x" = "X$dir"; then | |
8536 | haveit=yes | |
8537 | break | |
8538 | fi | |
8539 | done | |
8540 | if test -z "$haveit"; then | |
8541 | ltrpathdirs="$ltrpathdirs $dir" | |
8542 | fi | |
8543 | fi | |
8544 | ;; | |
8545 | -l*) | |
8546 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` | |
8547 | ;; | |
8548 | *.la) | |
8549 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` | |
8550 | ;; | |
8551 | *) | |
93613951 TT |
8552 | LIBPTH="${LIBPTH}${LIBPTH:+ }$dep" |
8553 | LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep" | |
a04eba3f TT |
8554 | ;; |
8555 | esac | |
8556 | done | |
8557 | fi | |
8558 | else | |
93613951 TT |
8559 | LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name" |
8560 | LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name" | |
a04eba3f TT |
8561 | fi |
8562 | fi | |
8563 | fi | |
8564 | done | |
8565 | done | |
8566 | if test "X$rpathdirs" != "X"; then | |
93613951 | 8567 | if test -n "$acl_hardcode_libdir_separator"; then |
a04eba3f TT |
8568 | alldirs= |
8569 | for found_dir in $rpathdirs; do | |
93613951 | 8570 | alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" |
a04eba3f TT |
8571 | done |
8572 | acl_save_libdir="$libdir" | |
8573 | libdir="$alldirs" | |
93613951 | 8574 | eval flag=\"$acl_hardcode_libdir_flag_spec\" |
a04eba3f | 8575 | libdir="$acl_save_libdir" |
93613951 | 8576 | LIBPTH="${LIBPTH}${LIBPTH:+ }$flag" |
a04eba3f TT |
8577 | else |
8578 | for found_dir in $rpathdirs; do | |
8579 | acl_save_libdir="$libdir" | |
8580 | libdir="$found_dir" | |
93613951 | 8581 | eval flag=\"$acl_hardcode_libdir_flag_spec\" |
a04eba3f | 8582 | libdir="$acl_save_libdir" |
93613951 | 8583 | LIBPTH="${LIBPTH}${LIBPTH:+ }$flag" |
a04eba3f TT |
8584 | done |
8585 | fi | |
8586 | fi | |
8587 | if test "X$ltrpathdirs" != "X"; then | |
8588 | for found_dir in $ltrpathdirs; do | |
93613951 | 8589 | LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir" |
a04eba3f | 8590 | done |
b0cacab0 | 8591 | fi |
b0cacab0 | 8592 | |
a04eba3f | 8593 | |
93636bde | 8594 | |
a64c9c13 | 8595 | |
93636bde | 8596 | |
b0cacab0 | 8597 | |
93613951 TT |
8598 | ac_cv_libpth_libs="$LIBPTH" |
8599 | ac_cv_libpth_ltlibs="$LTLIBPTH" | |
8600 | ac_cv_libpth_cppflags="$INCPTH" | |
8601 | ac_cv_libpth_prefix="$LIBPTH_PREFIX" | |
8602 | ||
8603 | fi | |
8604 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5 | |
8605 | $as_echo "$ac_cv_libpth_libs" >&6; } | |
8606 | LIBPTH="$ac_cv_libpth_libs" | |
8607 | LTLIBPTH="$ac_cv_libpth_ltlibs" | |
8608 | INCPTH="$ac_cv_libpth_cppflags" | |
8609 | LIBPTH_PREFIX="$ac_cv_libpth_prefix" | |
8610 | ||
8611 | for element in $INCPTH; do | |
8612 | haveit= | |
8613 | for x in $CPPFLAGS; do | |
8614 | ||
8615 | acl_save_prefix="$prefix" | |
8616 | prefix="$acl_final_prefix" | |
8617 | acl_save_exec_prefix="$exec_prefix" | |
8618 | exec_prefix="$acl_final_exec_prefix" | |
8619 | eval x=\"$x\" | |
8620 | exec_prefix="$acl_save_exec_prefix" | |
8621 | prefix="$acl_save_prefix" | |
8622 | ||
8623 | if test "X$x" = "X$element"; then | |
8624 | haveit=yes | |
8625 | break | |
8626 | fi | |
8627 | done | |
8628 | if test -z "$haveit"; then | |
8629 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | |
8630 | fi | |
8631 | done | |
8632 | ||
8633 | ||
8634 | ||
8635 | ||
8636 | HAVE_LIBPTH=yes | |
8637 | ||
8638 | ||
8639 | ||
8640 | gl_have_pth= | |
8641 | gl_save_LIBS="$LIBS" | |
8642 | LIBS="$LIBS $LIBPTH" | |
8643 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8644 | /* end confdefs.h. */ | |
8645 | #include <pth.h> | |
8646 | int | |
8647 | main () | |
8648 | { | |
8649 | pth_self(); | |
8650 | ; | |
8651 | return 0; | |
8652 | } | |
8653 | _ACEOF | |
8654 | if ac_fn_c_try_link "$LINENO"; then : | |
8655 | gl_have_pth=yes | |
8656 | fi | |
8657 | rm -f core conftest.err conftest.$ac_objext \ | |
8658 | conftest$ac_exeext conftest.$ac_ext | |
8659 | LIBS="$gl_save_LIBS" | |
8660 | if test -n "$gl_have_pth"; then | |
8661 | gl_threads_api=pth | |
8662 | LIBTHREAD="$LIBPTH" | |
8663 | LTLIBTHREAD="$LTLIBPTH" | |
8664 | LIBMULTITHREAD="$LIBTHREAD" | |
8665 | LTLIBMULTITHREAD="$LTLIBTHREAD" | |
8666 | ||
8667 | $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h | |
8668 | ||
8669 | if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then | |
8670 | if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then | |
8671 | ||
8672 | $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h | |
8673 | ||
8674 | LIBTHREAD= | |
8675 | LTLIBTHREAD= | |
8676 | fi | |
8677 | fi | |
8678 | else | |
8679 | CPPFLAGS="$gl_save_CPPFLAGS" | |
8680 | fi | |
8681 | fi | |
8682 | if test -z "$gl_have_pthread"; then | |
8683 | case "$gl_use_threads" in | |
8684 | yes | windows | win32) # The 'win32' is for backward compatibility. | |
8685 | if { case "$host_os" in | |
8686 | mingw*) true;; | |
8687 | *) false;; | |
8688 | esac | |
8689 | }; then | |
8690 | gl_threads_api=windows | |
8691 | ||
8692 | $as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h | |
8693 | ||
8694 | fi | |
8695 | ;; | |
8696 | esac | |
8697 | fi | |
8698 | fi | |
8699 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5 | |
8700 | $as_echo_n "checking for multithread API to use... " >&6; } | |
8701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5 | |
8702 | $as_echo "$gl_threads_api" >&6; } | |
8703 | ||
8704 | ||
8705 | ||
8706 | ||
8707 | ||
8708 | ||
8709 | ||
8710 | ||
8711 | ||
8712 | ||
8713 | ||
8714 | if test "$gl_threads_api" = posix; then | |
8715 | # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the | |
8716 | # pthread_rwlock_* functions. | |
8717 | ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h> | |
8718 | " | |
8719 | if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then : | |
8720 | ||
8721 | $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h | |
8722 | ||
8723 | fi | |
8724 | ||
8725 | # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro. | |
8726 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8727 | /* end confdefs.h. */ | |
8728 | ||
8729 | #include <pthread.h> | |
8730 | int | |
8731 | main () | |
8732 | { | |
8733 | ||
8734 | #if __FreeBSD__ == 4 | |
8735 | error "No, in FreeBSD 4.0 recursive mutexes actually don't work." | |
8736 | #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \ | |
8737 | && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070) | |
8738 | error "No, in Mac OS X < 10.7 recursive mutexes actually don't work." | |
8739 | #else | |
8740 | int x = (int)PTHREAD_MUTEX_RECURSIVE; | |
8741 | return !x; | |
8742 | #endif | |
8743 | ||
8744 | ; | |
8745 | return 0; | |
8746 | } | |
8747 | _ACEOF | |
8748 | if ac_fn_c_try_compile "$LINENO"; then : | |
8749 | ||
8750 | $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h | |
8751 | ||
8752 | fi | |
8753 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8754 | fi | |
8755 | : | |
8756 | ||
8757 | ||
8758 | ||
8759 | ||
8760 | ||
8761 | ||
8762 | ||
8763 | ||
8764 | ||
8765 | ||
8766 | ||
8767 | ||
8768 | use_additional=yes | |
8769 | ||
8770 | acl_save_prefix="$prefix" | |
8771 | prefix="$acl_final_prefix" | |
8772 | acl_save_exec_prefix="$exec_prefix" | |
8773 | exec_prefix="$acl_final_exec_prefix" | |
8774 | ||
8775 | eval additional_includedir=\"$includedir\" | |
8776 | eval additional_libdir=\"$libdir\" | |
8777 | ||
8778 | exec_prefix="$acl_save_exec_prefix" | |
8779 | prefix="$acl_save_prefix" | |
8780 | ||
8781 | ||
8782 | # Check whether --with-libiconv-prefix was given. | |
8783 | if test "${with_libiconv_prefix+set}" = set; then : | |
8784 | withval=$with_libiconv_prefix; | |
8785 | if test "X$withval" = "Xno"; then | |
8786 | use_additional=no | |
8787 | else | |
8788 | if test "X$withval" = "X"; then | |
8789 | ||
8790 | acl_save_prefix="$prefix" | |
8791 | prefix="$acl_final_prefix" | |
8792 | acl_save_exec_prefix="$exec_prefix" | |
8793 | exec_prefix="$acl_final_exec_prefix" | |
8794 | ||
8795 | eval additional_includedir=\"$includedir\" | |
8796 | eval additional_libdir=\"$libdir\" | |
8797 | ||
8798 | exec_prefix="$acl_save_exec_prefix" | |
8799 | prefix="$acl_save_prefix" | |
8800 | ||
8801 | else | |
8802 | additional_includedir="$withval/include" | |
8803 | additional_libdir="$withval/$acl_libdirstem" | |
8804 | if test "$acl_libdirstem2" != "$acl_libdirstem" \ | |
8805 | && ! test -d "$withval/$acl_libdirstem"; then | |
8806 | additional_libdir="$withval/$acl_libdirstem2" | |
8807 | fi | |
8808 | fi | |
8809 | fi | |
8810 | ||
8811 | fi | |
8812 | ||
8813 | LIBICONV= | |
8814 | LTLIBICONV= | |
8815 | INCICONV= | |
8816 | LIBICONV_PREFIX= | |
8817 | HAVE_LIBICONV= | |
8818 | rpathdirs= | |
8819 | ltrpathdirs= | |
8820 | names_already_handled= | |
8821 | names_next_round='iconv ' | |
8822 | while test -n "$names_next_round"; do | |
8823 | names_this_round="$names_next_round" | |
8824 | names_next_round= | |
8825 | for name in $names_this_round; do | |
8826 | already_handled= | |
8827 | for n in $names_already_handled; do | |
8828 | if test "$n" = "$name"; then | |
8829 | already_handled=yes | |
8830 | break | |
8831 | fi | |
8832 | done | |
8833 | if test -z "$already_handled"; then | |
8834 | names_already_handled="$names_already_handled $name" | |
8835 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` | |
8836 | eval value=\"\$HAVE_LIB$uppername\" | |
8837 | if test -n "$value"; then | |
8838 | if test "$value" = yes; then | |
8839 | eval value=\"\$LIB$uppername\" | |
8840 | test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" | |
8841 | eval value=\"\$LTLIB$uppername\" | |
8842 | test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" | |
8843 | else | |
8844 | : | |
8845 | fi | |
8846 | else | |
8847 | found_dir= | |
8848 | found_la= | |
8849 | found_so= | |
8850 | found_a= | |
8851 | eval libname=\"$acl_libname_spec\" # typically: libname=lib$name | |
8852 | if test -n "$acl_shlibext"; then | |
8853 | shrext=".$acl_shlibext" # typically: shrext=.so | |
8854 | else | |
8855 | shrext= | |
8856 | fi | |
8857 | if test $use_additional = yes; then | |
8858 | dir="$additional_libdir" | |
8859 | if test -n "$acl_shlibext"; then | |
8860 | if test -f "$dir/$libname$shrext"; then | |
8861 | found_dir="$dir" | |
8862 | found_so="$dir/$libname$shrext" | |
8863 | else | |
8864 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then | |
8865 | ver=`(cd "$dir" && \ | |
8866 | for f in "$libname$shrext".*; do echo "$f"; done \ | |
8867 | | sed -e "s,^$libname$shrext\\\\.,," \ | |
8868 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | |
8869 | | sed 1q ) 2>/dev/null` | |
8870 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then | |
8871 | found_dir="$dir" | |
8872 | found_so="$dir/$libname$shrext.$ver" | |
8873 | fi | |
8874 | else | |
8875 | eval library_names=\"$acl_library_names_spec\" | |
8876 | for f in $library_names; do | |
8877 | if test -f "$dir/$f"; then | |
8878 | found_dir="$dir" | |
8879 | found_so="$dir/$f" | |
8880 | break | |
8881 | fi | |
8882 | done | |
8883 | fi | |
8884 | fi | |
8885 | fi | |
8886 | if test "X$found_dir" = "X"; then | |
8887 | if test -f "$dir/$libname.$acl_libext"; then | |
8888 | found_dir="$dir" | |
8889 | found_a="$dir/$libname.$acl_libext" | |
8890 | fi | |
8891 | fi | |
8892 | if test "X$found_dir" != "X"; then | |
8893 | if test -f "$dir/$libname.la"; then | |
8894 | found_la="$dir/$libname.la" | |
8895 | fi | |
8896 | fi | |
8897 | fi | |
8898 | if test "X$found_dir" = "X"; then | |
8899 | for x in $LDFLAGS $LTLIBICONV; do | |
8900 | ||
8901 | acl_save_prefix="$prefix" | |
8902 | prefix="$acl_final_prefix" | |
8903 | acl_save_exec_prefix="$exec_prefix" | |
8904 | exec_prefix="$acl_final_exec_prefix" | |
8905 | eval x=\"$x\" | |
8906 | exec_prefix="$acl_save_exec_prefix" | |
8907 | prefix="$acl_save_prefix" | |
8908 | ||
8909 | case "$x" in | |
8910 | -L*) | |
8911 | dir=`echo "X$x" | sed -e 's/^X-L//'` | |
8912 | if test -n "$acl_shlibext"; then | |
8913 | if test -f "$dir/$libname$shrext"; then | |
8914 | found_dir="$dir" | |
8915 | found_so="$dir/$libname$shrext" | |
8916 | else | |
8917 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then | |
8918 | ver=`(cd "$dir" && \ | |
8919 | for f in "$libname$shrext".*; do echo "$f"; done \ | |
8920 | | sed -e "s,^$libname$shrext\\\\.,," \ | |
8921 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | |
8922 | | sed 1q ) 2>/dev/null` | |
8923 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then | |
8924 | found_dir="$dir" | |
8925 | found_so="$dir/$libname$shrext.$ver" | |
8926 | fi | |
8927 | else | |
8928 | eval library_names=\"$acl_library_names_spec\" | |
8929 | for f in $library_names; do | |
8930 | if test -f "$dir/$f"; then | |
8931 | found_dir="$dir" | |
8932 | found_so="$dir/$f" | |
8933 | break | |
8934 | fi | |
8935 | done | |
8936 | fi | |
8937 | fi | |
8938 | fi | |
8939 | if test "X$found_dir" = "X"; then | |
8940 | if test -f "$dir/$libname.$acl_libext"; then | |
8941 | found_dir="$dir" | |
8942 | found_a="$dir/$libname.$acl_libext" | |
8943 | fi | |
8944 | fi | |
8945 | if test "X$found_dir" != "X"; then | |
8946 | if test -f "$dir/$libname.la"; then | |
8947 | found_la="$dir/$libname.la" | |
8948 | fi | |
8949 | fi | |
8950 | ;; | |
8951 | esac | |
8952 | if test "X$found_dir" != "X"; then | |
8953 | break | |
8954 | fi | |
8955 | done | |
8956 | fi | |
8957 | if test "X$found_dir" != "X"; then | |
8958 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" | |
8959 | if test "X$found_so" != "X"; then | |
8960 | if test "$enable_rpath" = no \ | |
8961 | || test "X$found_dir" = "X/usr/$acl_libdirstem" \ | |
8962 | || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then | |
8963 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
8964 | else | |
8965 | haveit= | |
8966 | for x in $ltrpathdirs; do | |
8967 | if test "X$x" = "X$found_dir"; then | |
8968 | haveit=yes | |
8969 | break | |
8970 | fi | |
8971 | done | |
8972 | if test -z "$haveit"; then | |
8973 | ltrpathdirs="$ltrpathdirs $found_dir" | |
8974 | fi | |
8975 | if test "$acl_hardcode_direct" = yes; then | |
8976 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
8977 | else | |
8978 | if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then | |
8979 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
8980 | haveit= | |
8981 | for x in $rpathdirs; do | |
8982 | if test "X$x" = "X$found_dir"; then | |
8983 | haveit=yes | |
8984 | break | |
8985 | fi | |
8986 | done | |
8987 | if test -z "$haveit"; then | |
8988 | rpathdirs="$rpathdirs $found_dir" | |
8989 | fi | |
8990 | else | |
8991 | haveit= | |
8992 | for x in $LDFLAGS $LIBICONV; do | |
8993 | ||
8994 | acl_save_prefix="$prefix" | |
8995 | prefix="$acl_final_prefix" | |
8996 | acl_save_exec_prefix="$exec_prefix" | |
8997 | exec_prefix="$acl_final_exec_prefix" | |
8998 | eval x=\"$x\" | |
8999 | exec_prefix="$acl_save_exec_prefix" | |
9000 | prefix="$acl_save_prefix" | |
9001 | ||
9002 | if test "X$x" = "X-L$found_dir"; then | |
9003 | haveit=yes | |
9004 | break | |
9005 | fi | |
9006 | done | |
9007 | if test -z "$haveit"; then | |
9008 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" | |
9009 | fi | |
9010 | if test "$acl_hardcode_minus_L" != no; then | |
9011 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
9012 | else | |
9013 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" | |
9014 | fi | |
9015 | fi | |
9016 | fi | |
9017 | fi | |
9018 | else | |
9019 | if test "X$found_a" != "X"; then | |
9020 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" | |
9021 | else | |
9022 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" | |
9023 | fi | |
9024 | fi | |
9025 | additional_includedir= | |
9026 | case "$found_dir" in | |
9027 | */$acl_libdirstem | */$acl_libdirstem/) | |
9028 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` | |
9029 | if test "$name" = 'iconv'; then | |
9030 | LIBICONV_PREFIX="$basedir" | |
9031 | fi | |
9032 | additional_includedir="$basedir/include" | |
9033 | ;; | |
9034 | */$acl_libdirstem2 | */$acl_libdirstem2/) | |
9035 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` | |
9036 | if test "$name" = 'iconv'; then | |
9037 | LIBICONV_PREFIX="$basedir" | |
9038 | fi | |
9039 | additional_includedir="$basedir/include" | |
9040 | ;; | |
9041 | esac | |
9042 | if test "X$additional_includedir" != "X"; then | |
9043 | if test "X$additional_includedir" != "X/usr/include"; then | |
9044 | haveit= | |
9045 | if test "X$additional_includedir" = "X/usr/local/include"; then | |
9046 | if test -n "$GCC"; then | |
9047 | case $host_os in | |
9048 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; | |
9049 | esac | |
9050 | fi | |
9051 | fi | |
9052 | if test -z "$haveit"; then | |
9053 | for x in $CPPFLAGS $INCICONV; do | |
9054 | ||
9055 | acl_save_prefix="$prefix" | |
9056 | prefix="$acl_final_prefix" | |
9057 | acl_save_exec_prefix="$exec_prefix" | |
9058 | exec_prefix="$acl_final_exec_prefix" | |
9059 | eval x=\"$x\" | |
9060 | exec_prefix="$acl_save_exec_prefix" | |
9061 | prefix="$acl_save_prefix" | |
9062 | ||
9063 | if test "X$x" = "X-I$additional_includedir"; then | |
9064 | haveit=yes | |
9065 | break | |
9066 | fi | |
9067 | done | |
9068 | if test -z "$haveit"; then | |
9069 | if test -d "$additional_includedir"; then | |
9070 | INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" | |
9071 | fi | |
9072 | fi | |
9073 | fi | |
9074 | fi | |
9075 | fi | |
9076 | if test -n "$found_la"; then | |
9077 | save_libdir="$libdir" | |
9078 | case "$found_la" in | |
9079 | */* | *\\*) . "$found_la" ;; | |
9080 | *) . "./$found_la" ;; | |
9081 | esac | |
9082 | libdir="$save_libdir" | |
9083 | for dep in $dependency_libs; do | |
9084 | case "$dep" in | |
9085 | -L*) | |
9086 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` | |
9087 | if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ | |
9088 | && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then | |
9089 | haveit= | |
9090 | if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ | |
9091 | || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then | |
9092 | if test -n "$GCC"; then | |
9093 | case $host_os in | |
9094 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; | |
9095 | esac | |
9096 | fi | |
9097 | fi | |
9098 | if test -z "$haveit"; then | |
9099 | haveit= | |
9100 | for x in $LDFLAGS $LIBICONV; do | |
9101 | ||
9102 | acl_save_prefix="$prefix" | |
9103 | prefix="$acl_final_prefix" | |
9104 | acl_save_exec_prefix="$exec_prefix" | |
9105 | exec_prefix="$acl_final_exec_prefix" | |
9106 | eval x=\"$x\" | |
9107 | exec_prefix="$acl_save_exec_prefix" | |
9108 | prefix="$acl_save_prefix" | |
9109 | ||
9110 | if test "X$x" = "X-L$additional_libdir"; then | |
9111 | haveit=yes | |
9112 | break | |
9113 | fi | |
9114 | done | |
9115 | if test -z "$haveit"; then | |
9116 | if test -d "$additional_libdir"; then | |
9117 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" | |
9118 | fi | |
9119 | fi | |
9120 | haveit= | |
9121 | for x in $LDFLAGS $LTLIBICONV; do | |
9122 | ||
9123 | acl_save_prefix="$prefix" | |
9124 | prefix="$acl_final_prefix" | |
9125 | acl_save_exec_prefix="$exec_prefix" | |
9126 | exec_prefix="$acl_final_exec_prefix" | |
9127 | eval x=\"$x\" | |
9128 | exec_prefix="$acl_save_exec_prefix" | |
9129 | prefix="$acl_save_prefix" | |
9130 | ||
9131 | if test "X$x" = "X-L$additional_libdir"; then | |
9132 | haveit=yes | |
9133 | break | |
9134 | fi | |
9135 | done | |
9136 | if test -z "$haveit"; then | |
9137 | if test -d "$additional_libdir"; then | |
9138 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" | |
9139 | fi | |
9140 | fi | |
9141 | fi | |
9142 | fi | |
9143 | ;; | |
9144 | -R*) | |
9145 | dir=`echo "X$dep" | sed -e 's/^X-R//'` | |
9146 | if test "$enable_rpath" != no; then | |
9147 | haveit= | |
9148 | for x in $rpathdirs; do | |
9149 | if test "X$x" = "X$dir"; then | |
9150 | haveit=yes | |
9151 | break | |
9152 | fi | |
9153 | done | |
9154 | if test -z "$haveit"; then | |
9155 | rpathdirs="$rpathdirs $dir" | |
9156 | fi | |
9157 | haveit= | |
9158 | for x in $ltrpathdirs; do | |
9159 | if test "X$x" = "X$dir"; then | |
9160 | haveit=yes | |
9161 | break | |
9162 | fi | |
9163 | done | |
9164 | if test -z "$haveit"; then | |
9165 | ltrpathdirs="$ltrpathdirs $dir" | |
9166 | fi | |
9167 | fi | |
9168 | ;; | |
9169 | -l*) | |
9170 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` | |
9171 | ;; | |
9172 | *.la) | |
9173 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` | |
9174 | ;; | |
9175 | *) | |
9176 | LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" | |
9177 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" | |
9178 | ;; | |
9179 | esac | |
9180 | done | |
9181 | fi | |
9182 | else | |
9183 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" | |
9184 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" | |
9185 | fi | |
9186 | fi | |
9187 | fi | |
9188 | done | |
9189 | done | |
9190 | if test "X$rpathdirs" != "X"; then | |
9191 | if test -n "$acl_hardcode_libdir_separator"; then | |
9192 | alldirs= | |
9193 | for found_dir in $rpathdirs; do | |
9194 | alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" | |
9195 | done | |
9196 | acl_save_libdir="$libdir" | |
9197 | libdir="$alldirs" | |
9198 | eval flag=\"$acl_hardcode_libdir_flag_spec\" | |
9199 | libdir="$acl_save_libdir" | |
9200 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" | |
9201 | else | |
9202 | for found_dir in $rpathdirs; do | |
9203 | acl_save_libdir="$libdir" | |
9204 | libdir="$found_dir" | |
9205 | eval flag=\"$acl_hardcode_libdir_flag_spec\" | |
9206 | libdir="$acl_save_libdir" | |
9207 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" | |
9208 | done | |
9209 | fi | |
9210 | fi | |
9211 | if test "X$ltrpathdirs" != "X"; then | |
9212 | for found_dir in $ltrpathdirs; do | |
9213 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" | |
9214 | done | |
9215 | fi | |
9216 | ||
9217 | ||
9218 | ||
9219 | ||
9220 | ||
9221 | ||
9222 | ||
9223 | ||
9224 | ||
9225 | ||
9226 | ||
9227 | ||
9228 | am_save_CPPFLAGS="$CPPFLAGS" | |
9229 | ||
9230 | for element in $INCICONV; do | |
9231 | haveit= | |
9232 | for x in $CPPFLAGS; do | |
9233 | ||
9234 | acl_save_prefix="$prefix" | |
9235 | prefix="$acl_final_prefix" | |
9236 | acl_save_exec_prefix="$exec_prefix" | |
9237 | exec_prefix="$acl_final_exec_prefix" | |
9238 | eval x=\"$x\" | |
9239 | exec_prefix="$acl_save_exec_prefix" | |
9240 | prefix="$acl_save_prefix" | |
9241 | ||
9242 | if test "X$x" = "X$element"; then | |
9243 | haveit=yes | |
9244 | break | |
9245 | fi | |
9246 | done | |
9247 | if test -z "$haveit"; then | |
9248 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | |
9249 | fi | |
9250 | done | |
9251 | ||
9252 | ||
9253 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 | |
9254 | $as_echo_n "checking for iconv... " >&6; } | |
9255 | if ${am_cv_func_iconv+:} false; then : | |
9256 | $as_echo_n "(cached) " >&6 | |
9257 | else | |
9258 | ||
9259 | am_cv_func_iconv="no, consider installing GNU libiconv" | |
9260 | am_cv_lib_iconv=no | |
9261 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9262 | /* end confdefs.h. */ | |
9263 | ||
9264 | #include <stdlib.h> | |
9265 | #include <iconv.h> | |
9266 | ||
9267 | int | |
9268 | main () | |
9269 | { | |
9270 | iconv_t cd = iconv_open("",""); | |
9271 | iconv(cd,NULL,NULL,NULL,NULL); | |
9272 | iconv_close(cd); | |
9273 | ; | |
9274 | return 0; | |
9275 | } | |
9276 | _ACEOF | |
9277 | if ac_fn_c_try_link "$LINENO"; then : | |
9278 | am_cv_func_iconv=yes | |
9279 | fi | |
9280 | rm -f core conftest.err conftest.$ac_objext \ | |
9281 | conftest$ac_exeext conftest.$ac_ext | |
9282 | if test "$am_cv_func_iconv" != yes; then | |
9283 | am_save_LIBS="$LIBS" | |
9284 | LIBS="$LIBS $LIBICONV" | |
9285 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9286 | /* end confdefs.h. */ | |
9287 | ||
9288 | #include <stdlib.h> | |
9289 | #include <iconv.h> | |
9290 | ||
9291 | int | |
9292 | main () | |
9293 | { | |
9294 | iconv_t cd = iconv_open("",""); | |
9295 | iconv(cd,NULL,NULL,NULL,NULL); | |
9296 | iconv_close(cd); | |
9297 | ; | |
9298 | return 0; | |
9299 | } | |
9300 | _ACEOF | |
9301 | if ac_fn_c_try_link "$LINENO"; then : | |
9302 | am_cv_lib_iconv=yes | |
9303 | am_cv_func_iconv=yes | |
9304 | fi | |
9305 | rm -f core conftest.err conftest.$ac_objext \ | |
9306 | conftest$ac_exeext conftest.$ac_ext | |
9307 | LIBS="$am_save_LIBS" | |
9308 | fi | |
9309 | ||
9310 | fi | |
9311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 | |
9312 | $as_echo "$am_cv_func_iconv" >&6; } | |
9313 | if test "$am_cv_func_iconv" = yes; then | |
9314 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 | |
9315 | $as_echo_n "checking for working iconv... " >&6; } | |
9316 | if ${am_cv_func_iconv_works+:} false; then : | |
9317 | $as_echo_n "(cached) " >&6 | |
9318 | else | |
9319 | ||
9320 | am_save_LIBS="$LIBS" | |
9321 | if test $am_cv_lib_iconv = yes; then | |
9322 | LIBS="$LIBS $LIBICONV" | |
9323 | fi | |
9324 | if test "$cross_compiling" = yes; then : | |
9325 | ||
9326 | case "$host_os" in | |
9327 | aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; | |
9328 | *) am_cv_func_iconv_works="guessing yes" ;; | |
9329 | esac | |
9330 | ||
9331 | else | |
9332 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9333 | /* end confdefs.h. */ | |
9334 | ||
9335 | #include <iconv.h> | |
9336 | #include <string.h> | |
9337 | int main () | |
9338 | { | |
9339 | int result = 0; | |
9340 | /* Test against AIX 5.1 bug: Failures are not distinguishable from successful | |
9341 | returns. */ | |
9342 | { | |
9343 | iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); | |
9344 | if (cd_utf8_to_88591 != (iconv_t)(-1)) | |
9345 | { | |
9346 | static const char input[] = "\342\202\254"; /* EURO SIGN */ | |
9347 | char buf[10]; | |
9348 | const char *inptr = input; | |
9349 | size_t inbytesleft = strlen (input); | |
9350 | char *outptr = buf; | |
9351 | size_t outbytesleft = sizeof (buf); | |
9352 | size_t res = iconv (cd_utf8_to_88591, | |
9353 | (char **) &inptr, &inbytesleft, | |
9354 | &outptr, &outbytesleft); | |
9355 | if (res == 0) | |
9356 | result |= 1; | |
9357 | iconv_close (cd_utf8_to_88591); | |
9358 | } | |
9359 | } | |
9360 | /* Test against Solaris 10 bug: Failures are not distinguishable from | |
9361 | successful returns. */ | |
9362 | { | |
9363 | iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646"); | |
9364 | if (cd_ascii_to_88591 != (iconv_t)(-1)) | |
9365 | { | |
9366 | static const char input[] = "\263"; | |
9367 | char buf[10]; | |
9368 | const char *inptr = input; | |
9369 | size_t inbytesleft = strlen (input); | |
9370 | char *outptr = buf; | |
9371 | size_t outbytesleft = sizeof (buf); | |
9372 | size_t res = iconv (cd_ascii_to_88591, | |
9373 | (char **) &inptr, &inbytesleft, | |
9374 | &outptr, &outbytesleft); | |
9375 | if (res == 0) | |
9376 | result |= 2; | |
9377 | iconv_close (cd_ascii_to_88591); | |
9378 | } | |
9379 | } | |
9380 | /* Test against AIX 6.1..7.1 bug: Buffer overrun. */ | |
9381 | { | |
9382 | iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1"); | |
9383 | if (cd_88591_to_utf8 != (iconv_t)(-1)) | |
9384 | { | |
9385 | static const char input[] = "\304"; | |
9386 | static char buf[2] = { (char)0xDE, (char)0xAD }; | |
9387 | const char *inptr = input; | |
9388 | size_t inbytesleft = 1; | |
9389 | char *outptr = buf; | |
9390 | size_t outbytesleft = 1; | |
9391 | size_t res = iconv (cd_88591_to_utf8, | |
9392 | (char **) &inptr, &inbytesleft, | |
9393 | &outptr, &outbytesleft); | |
9394 | if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD) | |
9395 | result |= 4; | |
9396 | iconv_close (cd_88591_to_utf8); | |
9397 | } | |
9398 | } | |
9399 | #if 0 /* This bug could be worked around by the caller. */ | |
9400 | /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ | |
9401 | { | |
9402 | iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); | |
9403 | if (cd_88591_to_utf8 != (iconv_t)(-1)) | |
9404 | { | |
9405 | static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; | |
9406 | char buf[50]; | |
9407 | const char *inptr = input; | |
9408 | size_t inbytesleft = strlen (input); | |
9409 | char *outptr = buf; | |
9410 | size_t outbytesleft = sizeof (buf); | |
9411 | size_t res = iconv (cd_88591_to_utf8, | |
9412 | (char **) &inptr, &inbytesleft, | |
9413 | &outptr, &outbytesleft); | |
9414 | if ((int)res > 0) | |
9415 | result |= 8; | |
9416 | iconv_close (cd_88591_to_utf8); | |
9417 | } | |
9418 | } | |
9419 | #endif | |
9420 | /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is | |
9421 | provided. */ | |
9422 | if (/* Try standardized names. */ | |
9423 | iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) | |
9424 | /* Try IRIX, OSF/1 names. */ | |
9425 | && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) | |
9426 | /* Try AIX names. */ | |
9427 | && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) | |
9428 | /* Try HP-UX names. */ | |
9429 | && iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) | |
9430 | result |= 16; | |
9431 | return result; | |
9432 | } | |
9433 | _ACEOF | |
9434 | if ac_fn_c_try_run "$LINENO"; then : | |
9435 | am_cv_func_iconv_works=yes | |
9436 | else | |
9437 | am_cv_func_iconv_works=no | |
9438 | fi | |
9439 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
9440 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
9441 | fi | |
9442 | ||
9443 | LIBS="$am_save_LIBS" | |
9444 | ||
9445 | fi | |
9446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 | |
9447 | $as_echo "$am_cv_func_iconv_works" >&6; } | |
9448 | case "$am_cv_func_iconv_works" in | |
9449 | *no) am_func_iconv=no am_cv_lib_iconv=no ;; | |
9450 | *) am_func_iconv=yes ;; | |
9451 | esac | |
9452 | else | |
9453 | am_func_iconv=no am_cv_lib_iconv=no | |
9454 | fi | |
9455 | if test "$am_func_iconv" = yes; then | |
9456 | ||
9457 | $as_echo "#define HAVE_ICONV 1" >>confdefs.h | |
9458 | ||
9459 | fi | |
9460 | if test "$am_cv_lib_iconv" = yes; then | |
9461 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 | |
9462 | $as_echo_n "checking how to link with libiconv... " >&6; } | |
9463 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 | |
9464 | $as_echo "$LIBICONV" >&6; } | |
9465 | else | |
9466 | CPPFLAGS="$am_save_CPPFLAGS" | |
9467 | LIBICONV= | |
9468 | LTLIBICONV= | |
9469 | fi | |
9470 | ||
9471 | ||
9472 | ||
9473 | if test "$am_cv_func_iconv" = yes; then | |
9474 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5 | |
9475 | $as_echo_n "checking for iconv declaration... " >&6; } | |
9476 | if ${am_cv_proto_iconv+:} false; then : | |
9477 | $as_echo_n "(cached) " >&6 | |
9478 | else | |
9479 | ||
9480 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9481 | /* end confdefs.h. */ | |
9482 | ||
9483 | #include <stdlib.h> | |
9484 | #include <iconv.h> | |
9485 | extern | |
9486 | #ifdef __cplusplus | |
9487 | "C" | |
9488 | #endif | |
9489 | #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus) | |
9490 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
9491 | #else | |
9492 | size_t iconv(); | |
9493 | #endif | |
9494 | ||
9495 | int | |
9496 | main () | |
9497 | { | |
9498 | ||
9499 | ; | |
9500 | return 0; | |
9501 | } | |
9502 | _ACEOF | |
9503 | if ac_fn_c_try_compile "$LINENO"; then : | |
9504 | am_cv_proto_iconv_arg1="" | |
9505 | else | |
9506 | am_cv_proto_iconv_arg1="const" | |
9507 | fi | |
9508 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9509 | am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" | |
9510 | fi | |
9511 | ||
9512 | am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` | |
9513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: | |
9514 | $am_cv_proto_iconv" >&5 | |
9515 | $as_echo " | |
9516 | $am_cv_proto_iconv" >&6; } | |
9517 | ||
9518 | cat >>confdefs.h <<_ACEOF | |
9519 | #define ICONV_CONST $am_cv_proto_iconv_arg1 | |
9520 | _ACEOF | |
9521 | ||
9522 | ||
9523 | fi | |
9524 | ||
9525 | ||
9526 | ||
9527 | ||
9528 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9529 | /* end confdefs.h. */ | |
9530 | int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; } | |
9531 | int | |
9532 | main () | |
9533 | { | |
9534 | ||
9535 | ; | |
9536 | return 0; | |
9537 | } | |
9538 | _ACEOF | |
9539 | if ac_fn_c_try_link "$LINENO"; then : | |
9540 | ||
9541 | $as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h | |
9542 | ||
9543 | fi | |
9544 | rm -f core conftest.err conftest.$ac_objext \ | |
9545 | conftest$ac_exeext conftest.$ac_ext | |
9546 | ||
9547 | for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h | |
9548 | do : | |
9549 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9550 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
9551 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
9552 | cat >>confdefs.h <<_ACEOF | |
9553 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9554 | _ACEOF | |
9555 | ||
9556 | fi | |
9557 | ||
9558 | done | |
9559 | ||
9560 | for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \ | |
9561 | stpcpy strcasecmp strdup strtoul tsearch uselocale argz_count \ | |
9562 | argz_stringify argz_next __fsetlocking | |
9563 | do : | |
9564 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
9565 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
9566 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
9567 | cat >>confdefs.h <<_ACEOF | |
9568 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
9569 | _ACEOF | |
9570 | ||
9571 | fi | |
9572 | done | |
9573 | ||
9574 | ||
9575 | ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "#include <stdio.h> | |
9576 | " | |
9577 | if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then : | |
9578 | ac_have_decl=1 | |
9579 | else | |
9580 | ac_have_decl=0 | |
9581 | fi | |
9582 | ||
9583 | cat >>confdefs.h <<_ACEOF | |
9584 | #define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl | |
9585 | _ACEOF | |
9586 | ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "#include <stdio.h> | |
9587 | " | |
9588 | if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then : | |
9589 | ac_have_decl=1 | |
9590 | else | |
9591 | ac_have_decl=0 | |
9592 | fi | |
9593 | ||
9594 | cat >>confdefs.h <<_ACEOF | |
9595 | #define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl | |
9596 | _ACEOF | |
9597 | ||
9598 | ||
9599 | ||
9600 | ||
9601 | for ac_prog in bison | |
9602 | do | |
9603 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
9604 | set dummy $ac_prog; ac_word=$2 | |
9605 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9606 | $as_echo_n "checking for $ac_word... " >&6; } | |
9607 | if ${ac_cv_prog_INTLBISON+:} false; then : | |
9608 | $as_echo_n "(cached) " >&6 | |
9609 | else | |
9610 | if test -n "$INTLBISON"; then | |
9611 | ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test. | |
9612 | else | |
9613 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9614 | for as_dir in $PATH | |
9615 | do | |
9616 | IFS=$as_save_IFS | |
9617 | test -z "$as_dir" && as_dir=. | |
9618 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9619 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9620 | ac_cv_prog_INTLBISON="$ac_prog" | |
9621 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9622 | break 2 | |
9623 | fi | |
9624 | done | |
9625 | done | |
9626 | IFS=$as_save_IFS | |
9627 | ||
9628 | fi | |
9629 | fi | |
9630 | INTLBISON=$ac_cv_prog_INTLBISON | |
9631 | if test -n "$INTLBISON"; then | |
9632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5 | |
9633 | $as_echo "$INTLBISON" >&6; } | |
9634 | else | |
9635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9636 | $as_echo "no" >&6; } | |
9637 | fi | |
9638 | ||
9639 | ||
9640 | test -n "$INTLBISON" && break | |
9641 | done | |
9642 | ||
9643 | if test -z "$INTLBISON"; then | |
9644 | ac_verc_fail=yes | |
9645 | else | |
9646 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5 | |
9647 | $as_echo_n "checking version of bison... " >&6; } | |
9648 | ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` | |
9649 | case $ac_prog_version in | |
9650 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | |
9651 | 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) | |
9652 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; | |
9653 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; | |
9654 | esac | |
9655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5 | |
9656 | $as_echo "$ac_prog_version" >&6; } | |
9657 | fi | |
9658 | if test $ac_verc_fail = yes; then | |
9659 | INTLBISON=: | |
b0cacab0 | 9660 | fi |
b0cacab0 | 9661 | |
a04eba3f | 9662 | |
93636bde | 9663 | |
93613951 TT |
9664 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5 |
9665 | $as_echo_n "checking for long long int... " >&6; } | |
9666 | if ${ac_cv_type_long_long_int+:} false; then : | |
9667 | $as_echo_n "(cached) " >&6 | |
9668 | else | |
9669 | ac_cv_type_long_long_int=yes | |
9670 | if test "x${ac_cv_prog_cc_c99-no}" = xno; then | |
9671 | ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int | |
9672 | if test $ac_cv_type_long_long_int = yes; then | |
9673 | if test "$cross_compiling" = yes; then : | |
9674 | : | |
9675 | else | |
9676 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9677 | /* end confdefs.h. */ | |
9678 | #include <limits.h> | |
9679 | #ifndef LLONG_MAX | |
9680 | # define HALF \ | |
9681 | (1LL << (sizeof (long long int) * CHAR_BIT - 2)) | |
9682 | # define LLONG_MAX (HALF - 1 + HALF) | |
9683 | #endif | |
9684 | int | |
9685 | main () | |
9686 | { | |
9687 | long long int n = 1; | |
9688 | int i; | |
9689 | for (i = 0; ; i++) | |
9690 | { | |
9691 | long long int m = n << i; | |
9692 | if (m >> i != n) | |
9693 | return 1; | |
9694 | if (LLONG_MAX / 2 < m) | |
9695 | break; | |
9696 | } | |
9697 | return 0; | |
9698 | ; | |
9699 | return 0; | |
9700 | } | |
9701 | _ACEOF | |
9702 | if ac_fn_c_try_run "$LINENO"; then : | |
a64c9c13 | 9703 | |
93613951 TT |
9704 | else |
9705 | ac_cv_type_long_long_int=no | |
9706 | fi | |
9707 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
9708 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
9709 | fi | |
93636bde | 9710 | |
93613951 TT |
9711 | fi |
9712 | fi | |
9713 | fi | |
9714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5 | |
9715 | $as_echo "$ac_cv_type_long_long_int" >&6; } | |
9716 | if test $ac_cv_type_long_long_int = yes; then | |
b0cacab0 | 9717 | |
93613951 | 9718 | $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h |
b0cacab0 | 9719 | |
93613951 | 9720 | fi |
b0cacab0 TT |
9721 | |
9722 | ||
93613951 TT |
9723 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5 |
9724 | $as_echo_n "checking for wchar_t... " >&6; } | |
9725 | if ${gt_cv_c_wchar_t+:} false; then : | |
9726 | $as_echo_n "(cached) " >&6 | |
50e1e10f | 9727 | else |
93613951 TT |
9728 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9729 | /* end confdefs.h. */ | |
9730 | #include <stddef.h> | |
9731 | wchar_t foo = (wchar_t)'\0'; | |
9732 | int | |
9733 | main () | |
9734 | { | |
50e1e10f | 9735 | |
93613951 TT |
9736 | ; |
9737 | return 0; | |
9738 | } | |
57aa50d4 | 9739 | _ACEOF |
93613951 TT |
9740 | if ac_fn_c_try_compile "$LINENO"; then : |
9741 | gt_cv_c_wchar_t=yes | |
9742 | else | |
9743 | gt_cv_c_wchar_t=no | |
57aa50d4 | 9744 | fi |
93613951 | 9745 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
fc6d9d51 | 9746 | fi |
93613951 TT |
9747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5 |
9748 | $as_echo "$gt_cv_c_wchar_t" >&6; } | |
9749 | if test $gt_cv_c_wchar_t = yes; then | |
b0cacab0 | 9750 | |
93613951 | 9751 | $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h |
b0cacab0 | 9752 | |
93613951 | 9753 | fi |
50e1e10f | 9754 | |
e1052144 | 9755 | |
93613951 TT |
9756 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5 |
9757 | $as_echo_n "checking for wint_t... " >&6; } | |
9758 | if ${gt_cv_c_wint_t+:} false; then : | |
39fd3d4f | 9759 | $as_echo_n "(cached) " >&6 |
50e1e10f | 9760 | else |
57aa50d4 TT |
9761 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9762 | /* end confdefs.h. */ | |
bcb915b0 | 9763 | |
93613951 TT |
9764 | /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before |
9765 | <wchar.h>. | |
9766 | BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included | |
9767 | before <wchar.h>. */ | |
9768 | #include <stddef.h> | |
57aa50d4 | 9769 | #include <stdio.h> |
93613951 TT |
9770 | #include <time.h> |
9771 | #include <wchar.h> | |
9772 | wint_t foo = (wchar_t)'\0'; | |
57aa50d4 TT |
9773 | int |
9774 | main () | |
9775 | { | |
50e1e10f | 9776 | |
57aa50d4 TT |
9777 | ; |
9778 | return 0; | |
9779 | } | |
9780 | _ACEOF | |
9781 | if ac_fn_c_try_compile "$LINENO"; then : | |
93613951 | 9782 | gt_cv_c_wint_t=yes |
50e1e10f | 9783 | else |
93613951 | 9784 | gt_cv_c_wint_t=no |
50e1e10f | 9785 | fi |
57aa50d4 | 9786 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
50e1e10f | 9787 | fi |
93613951 TT |
9788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5 |
9789 | $as_echo "$gt_cv_c_wint_t" >&6; } | |
9790 | if test $gt_cv_c_wint_t = yes; then | |
bcb915b0 | 9791 | |
93613951 | 9792 | $as_echo "#define HAVE_WINT_T 1" >>confdefs.h |
50e1e10f | 9793 | |
57aa50d4 | 9794 | fi |
50e1e10f | 9795 | |
e1052144 | 9796 | |
e1052144 | 9797 | |
57aa50d4 | 9798 | |
93613951 TT |
9799 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5 |
9800 | $as_echo_n "checking for intmax_t... " >&6; } | |
9801 | if ${gt_cv_c_intmax_t+:} false; then : | |
39fd3d4f | 9802 | $as_echo_n "(cached) " >&6 |
50e1e10f | 9803 | else |
57aa50d4 TT |
9804 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9805 | /* end confdefs.h. */ | |
b0cacab0 | 9806 | |
93613951 TT |
9807 | #include <stddef.h> |
9808 | #include <stdlib.h> | |
9809 | #if HAVE_STDINT_H_WITH_UINTMAX | |
9810 | #include <stdint.h> | |
9811 | #endif | |
9812 | #if HAVE_INTTYPES_H_WITH_UINTMAX | |
9813 | #include <inttypes.h> | |
57aa50d4 TT |
9814 | #endif |
9815 | ||
93613951 TT |
9816 | int |
9817 | main () | |
9818 | { | |
9819 | intmax_t x = -1; | |
9820 | return !x; | |
57aa50d4 TT |
9821 | ; |
9822 | return 0; | |
9823 | } | |
9824 | _ACEOF | |
9825 | if ac_fn_c_try_compile "$LINENO"; then : | |
93613951 | 9826 | gt_cv_c_intmax_t=yes |
50e1e10f | 9827 | else |
93613951 | 9828 | gt_cv_c_intmax_t=no |
57aa50d4 TT |
9829 | fi |
9830 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
50e1e10f | 9831 | fi |
93613951 TT |
9832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5 |
9833 | $as_echo "$gt_cv_c_intmax_t" >&6; } | |
9834 | if test $gt_cv_c_intmax_t = yes; then | |
9835 | ||
9836 | $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h | |
9837 | ||
57aa50d4 | 9838 | fi |
50e1e10f | 9839 | |
93613951 TT |
9840 | |
9841 | ||
9842 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5 | |
9843 | $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; } | |
9844 | if ${gt_cv_func_printf_posix+:} false; then : | |
9845 | $as_echo_n "(cached) " >&6 | |
9846 | else | |
9847 | ||
9848 | if test "$cross_compiling" = yes; then : | |
9849 | ||
9850 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9851 | /* end confdefs.h. */ | |
9852 | ||
9853 | #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__ | |
9854 | notposix | |
9855 | #endif | |
9856 | ||
9857 | _ACEOF | |
9858 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
9859 | $EGREP "notposix" >/dev/null 2>&1; then : | |
9860 | gt_cv_func_printf_posix="guessing no" | |
9861 | else | |
9862 | gt_cv_func_printf_posix="guessing yes" | |
9863 | fi | |
9864 | rm -f conftest* | |
9865 | ||
9866 | ||
9867 | else | |
9868 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9869 | /* end confdefs.h. */ | |
9870 | ||
9871 | #include <stdio.h> | |
9872 | #include <string.h> | |
9873 | /* The string "%2$d %1$d", with dollar characters protected from the shell's | |
9874 | dollar expansion (possibly an autoconf bug). */ | |
9875 | static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' }; | |
9876 | static char buf[100]; | |
9877 | int main () | |
9878 | { | |
9879 | sprintf (buf, format, 33, 55); | |
9880 | return (strcmp (buf, "55 33") != 0); | |
9881 | } | |
9882 | _ACEOF | |
9883 | if ac_fn_c_try_run "$LINENO"; then : | |
9884 | gt_cv_func_printf_posix=yes | |
9885 | else | |
9886 | gt_cv_func_printf_posix=no | |
9887 | fi | |
9888 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
9889 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
9890 | fi | |
9891 | ||
9892 | ||
9893 | fi | |
9894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5 | |
9895 | $as_echo "$gt_cv_func_printf_posix" >&6; } | |
9896 | case $gt_cv_func_printf_posix in | |
9897 | *yes) | |
9898 | ||
9899 | $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h | |
9900 | ||
9901 | ;; | |
9902 | esac | |
9903 | ||
9904 | ||
9905 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5 | |
9906 | $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; } | |
9907 | if ${ac_cv_gnu_library_2_1+:} false; then : | |
9908 | $as_echo_n "(cached) " >&6 | |
9909 | else | |
9910 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9911 | /* end confdefs.h. */ | |
9912 | ||
9913 | #include <features.h> | |
9914 | #ifdef __GNU_LIBRARY__ | |
9915 | #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) | |
9916 | Lucky GNU user | |
9917 | #endif | |
9918 | #endif | |
9919 | #ifdef __UCLIBC__ | |
9920 | Lucky user | |
9921 | #endif | |
9922 | ||
9923 | _ACEOF | |
9924 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
9925 | $EGREP "Lucky" >/dev/null 2>&1; then : | |
9926 | ac_cv_gnu_library_2_1=yes | |
9927 | else | |
9928 | ac_cv_gnu_library_2_1=no | |
9929 | fi | |
9930 | rm -f conftest* | |
9931 | ||
9932 | ||
9933 | ||
9934 | fi | |
9935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5 | |
9936 | $as_echo "$ac_cv_gnu_library_2_1" >&6; } | |
9937 | ||
9938 | GLIBC21="$ac_cv_gnu_library_2_1" | |
9939 | ||
9940 | ||
9941 | ||
9942 | for ac_header in stdint.h | |
9943 | do : | |
9944 | ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" | |
9945 | if test "x$ac_cv_header_stdint_h" = xyes; then : | |
9946 | cat >>confdefs.h <<_ACEOF | |
9947 | #define HAVE_STDINT_H 1 | |
57aa50d4 | 9948 | _ACEOF |
e1052144 | 9949 | |
93613951 | 9950 | fi |
e1052144 | 9951 | |
93613951 | 9952 | done |
57aa50d4 | 9953 | |
93613951 TT |
9954 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5 |
9955 | $as_echo_n "checking for SIZE_MAX... " >&6; } | |
9956 | if ${gl_cv_size_max+:} false; then : | |
39fd3d4f | 9957 | $as_echo_n "(cached) " >&6 |
50e1e10f | 9958 | else |
93613951 TT |
9959 | |
9960 | gl_cv_size_max= | |
9961 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9962 | /* end confdefs.h. */ | |
9963 | ||
9964 | #include <limits.h> | |
9965 | #if HAVE_STDINT_H | |
9966 | #include <stdint.h> | |
9967 | #endif | |
9968 | #ifdef SIZE_MAX | |
9969 | Found it | |
9970 | #endif | |
9971 | ||
57aa50d4 | 9972 | _ACEOF |
93613951 TT |
9973 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
9974 | $EGREP "Found it" >/dev/null 2>&1; then : | |
9975 | gl_cv_size_max=yes | |
9976 | fi | |
9977 | rm -f conftest* | |
e1052144 | 9978 | |
93613951 TT |
9979 | if test -z "$gl_cv_size_max"; then |
9980 | if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h> | |
9981 | #include <limits.h>"; then : | |
e1052144 | 9982 | |
93613951 TT |
9983 | else |
9984 | size_t_bits_minus_1= | |
9985 | fi | |
57aa50d4 | 9986 | |
93613951 | 9987 | if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then : |
57aa50d4 | 9988 | |
50e1e10f | 9989 | else |
93613951 TT |
9990 | fits_in_uint= |
9991 | fi | |
9992 | ||
9993 | if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then | |
9994 | if test $fits_in_uint = 1; then | |
9995 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
57aa50d4 | 9996 | /* end confdefs.h. */ |
93613951 TT |
9997 | #include <stddef.h> |
9998 | extern size_t foo; | |
9999 | extern unsigned long foo; | |
10000 | ||
57aa50d4 TT |
10001 | int |
10002 | main () | |
10003 | { | |
b0cacab0 | 10004 | |
57aa50d4 TT |
10005 | ; |
10006 | return 0; | |
10007 | } | |
10008 | _ACEOF | |
10009 | if ac_fn_c_try_compile "$LINENO"; then : | |
93613951 | 10010 | fits_in_uint=0 |
93636bde | 10011 | fi |
57aa50d4 | 10012 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
93613951 TT |
10013 | fi |
10014 | if test $fits_in_uint = 1; then | |
10015 | gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)" | |
10016 | else | |
10017 | gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)" | |
10018 | fi | |
10019 | else | |
10020 | gl_cv_size_max='((size_t)~(size_t)0)' | |
10021 | fi | |
10022 | fi | |
10023 | ||
50e1e10f | 10024 | fi |
93613951 TT |
10025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5 |
10026 | $as_echo "$gl_cv_size_max" >&6; } | |
10027 | if test "$gl_cv_size_max" != yes; then | |
50e1e10f | 10028 | |
57aa50d4 | 10029 | cat >>confdefs.h <<_ACEOF |
93613951 | 10030 | #define SIZE_MAX $gl_cv_size_max |
57aa50d4 | 10031 | _ACEOF |
e1052144 | 10032 | |
93613951 | 10033 | fi |
32237014 | 10034 | |
57aa50d4 | 10035 | |
e1052144 | 10036 | |
57aa50d4 | 10037 | |
93613951 TT |
10038 | for ac_header in stdint.h |
10039 | do : | |
10040 | ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" | |
10041 | if test "x$ac_cv_header_stdint_h" = xyes; then : | |
10042 | cat >>confdefs.h <<_ACEOF | |
10043 | #define HAVE_STDINT_H 1 | |
57aa50d4 | 10044 | _ACEOF |
93613951 | 10045 | |
32237014 | 10046 | fi |
32237014 | 10047 | |
93613951 | 10048 | done |
e1052144 | 10049 | |
32237014 | 10050 | |
57aa50d4 | 10051 | |
e1052144 | 10052 | |
57aa50d4 | 10053 | |
93613951 TT |
10054 | for ac_func in $ac_func_list |
10055 | do : | |
10056 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
10057 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
10058 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
10059 | cat >>confdefs.h <<_ACEOF | |
10060 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
57aa50d4 | 10061 | _ACEOF |
32237014 | 10062 | |
32237014 | 10063 | fi |
93613951 TT |
10064 | done |
10065 | ||
10066 | ||
10067 | ||
e1052144 | 10068 | |
57aa50d4 | 10069 | |
e1052144 | 10070 | |
57aa50d4 | 10071 | |
93613951 TT |
10072 | |
10073 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5 | |
10074 | $as_echo_n "checking for working fcntl.h... " >&6; } | |
10075 | if ${gl_cv_header_working_fcntl_h+:} false; then : | |
39fd3d4f | 10076 | $as_echo_n "(cached) " >&6 |
93613951 TT |
10077 | else |
10078 | if test "$cross_compiling" = yes; then : | |
10079 | gl_cv_header_working_fcntl_h=cross-compiling | |
50e1e10f | 10080 | else |
57aa50d4 TT |
10081 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
10082 | /* end confdefs.h. */ | |
93613951 TT |
10083 | #include <sys/types.h> |
10084 | #include <sys/stat.h> | |
10085 | #if HAVE_UNISTD_H | |
10086 | # include <unistd.h> | |
10087 | #else /* on Windows with MSVC */ | |
10088 | # include <io.h> | |
10089 | # include <stdlib.h> | |
10090 | # defined sleep(n) _sleep ((n) * 1000) | |
10091 | #endif | |
10092 | #include <fcntl.h> | |
10093 | #ifndef O_NOATIME | |
10094 | #define O_NOATIME 0 | |
10095 | #endif | |
10096 | #ifndef O_NOFOLLOW | |
10097 | #define O_NOFOLLOW 0 | |
10098 | #endif | |
10099 | static int const constants[] = | |
10100 | { | |
10101 | O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND, | |
10102 | O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY | |
10103 | }; | |
10104 | ||
57aa50d4 TT |
10105 | int |
10106 | main () | |
10107 | { | |
b0cacab0 | 10108 | |
93613951 TT |
10109 | int result = !constants; |
10110 | #if HAVE_SYMLINK | |
10111 | { | |
10112 | static char const sym[] = "conftest.sym"; | |
10113 | if (symlink ("/dev/null", sym) != 0) | |
10114 | result |= 2; | |
10115 | else | |
10116 | { | |
10117 | int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0); | |
10118 | if (fd >= 0) | |
10119 | { | |
10120 | close (fd); | |
10121 | result |= 4; | |
10122 | } | |
10123 | } | |
10124 | if (unlink (sym) != 0 || symlink (".", sym) != 0) | |
10125 | result |= 2; | |
10126 | else | |
10127 | { | |
10128 | int fd = open (sym, O_RDONLY | O_NOFOLLOW); | |
10129 | if (fd >= 0) | |
10130 | { | |
10131 | close (fd); | |
10132 | result |= 4; | |
10133 | } | |
10134 | } | |
10135 | unlink (sym); | |
10136 | } | |
10137 | #endif | |
10138 | { | |
10139 | static char const file[] = "confdefs.h"; | |
10140 | int fd = open (file, O_RDONLY | O_NOATIME); | |
10141 | if (fd < 0) | |
10142 | result |= 8; | |
10143 | else | |
10144 | { | |
10145 | struct stat st0; | |
10146 | if (fstat (fd, &st0) != 0) | |
10147 | result |= 16; | |
10148 | else | |
10149 | { | |
10150 | char c; | |
10151 | sleep (1); | |
10152 | if (read (fd, &c, 1) != 1) | |
10153 | result |= 24; | |
10154 | else | |
10155 | { | |
10156 | if (close (fd) != 0) | |
10157 | result |= 32; | |
10158 | else | |
10159 | { | |
10160 | struct stat st1; | |
10161 | if (stat (file, &st1) != 0) | |
10162 | result |= 40; | |
10163 | else | |
10164 | if (st0.st_atime != st1.st_atime) | |
10165 | result |= 64; | |
10166 | } | |
10167 | } | |
10168 | } | |
10169 | } | |
10170 | } | |
10171 | return result; | |
57aa50d4 TT |
10172 | ; |
10173 | return 0; | |
10174 | } | |
10175 | _ACEOF | |
93613951 TT |
10176 | if ac_fn_c_try_run "$LINENO"; then : |
10177 | gl_cv_header_working_fcntl_h=yes | |
50e1e10f | 10178 | else |
93613951 TT |
10179 | case $? in #( |
10180 | 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #( | |
10181 | 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #( | |
10182 | 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #( | |
10183 | *) gl_cv_header_working_fcntl_h='no';; | |
10184 | esac | |
50e1e10f | 10185 | fi |
93613951 TT |
10186 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
10187 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
50e1e10f | 10188 | fi |
57aa50d4 | 10189 | |
93613951 TT |
10190 | fi |
10191 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5 | |
10192 | $as_echo "$gl_cv_header_working_fcntl_h" >&6; } | |
57aa50d4 | 10193 | |
93613951 TT |
10194 | case $gl_cv_header_working_fcntl_h in #( |
10195 | *O_NOATIME* | no | cross-compiling) ac_val=0;; #( | |
10196 | *) ac_val=1;; | |
57aa50d4 TT |
10197 | esac |
10198 | ||
93613951 TT |
10199 | cat >>confdefs.h <<_ACEOF |
10200 | #define HAVE_WORKING_O_NOATIME $ac_val | |
10201 | _ACEOF | |
57aa50d4 | 10202 | |
57aa50d4 | 10203 | |
93613951 TT |
10204 | case $gl_cv_header_working_fcntl_h in #( |
10205 | *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #( | |
10206 | *) ac_val=1;; | |
10207 | esac | |
57aa50d4 | 10208 | |
93613951 TT |
10209 | cat >>confdefs.h <<_ACEOF |
10210 | #define HAVE_WORKING_O_NOFOLLOW $ac_val | |
10211 | _ACEOF | |
57aa50d4 | 10212 | |
50e1e10f | 10213 | |
e1052144 | 10214 | |
93613951 TT |
10215 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5 |
10216 | $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; } | |
10217 | if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then : | |
39fd3d4f | 10218 | $as_echo_n "(cached) " >&6 |
9d564f73 | 10219 | else |
93613951 TT |
10220 | gt_save_LIBS="$LIBS" |
10221 | LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" | |
10222 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
57aa50d4 | 10223 | /* end confdefs.h. */ |
93613951 | 10224 | #include <CoreFoundation/CFPreferences.h> |
57aa50d4 TT |
10225 | int |
10226 | main () | |
10227 | { | |
93613951 | 10228 | CFPreferencesCopyAppValue(NULL, NULL) |
57aa50d4 TT |
10229 | ; |
10230 | return 0; | |
10231 | } | |
10232 | _ACEOF | |
10233 | if ac_fn_c_try_link "$LINENO"; then : | |
93613951 TT |
10234 | gt_cv_func_CFPreferencesCopyAppValue=yes |
10235 | else | |
10236 | gt_cv_func_CFPreferencesCopyAppValue=no | |
9d564f73 | 10237 | fi |
57aa50d4 TT |
10238 | rm -f core conftest.err conftest.$ac_objext \ |
10239 | conftest$ac_exeext conftest.$ac_ext | |
93613951 TT |
10240 | LIBS="$gt_save_LIBS" |
10241 | fi | |
10242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 | |
10243 | $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; } | |
10244 | if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then | |
10245 | ||
10246 | $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h | |
10247 | ||
10248 | fi | |
10249 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5 | |
10250 | $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; } | |
10251 | if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then : | |
10252 | $as_echo_n "(cached) " >&6 | |
10253 | else | |
10254 | gt_save_LIBS="$LIBS" | |
10255 | LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" | |
10256 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
57aa50d4 | 10257 | /* end confdefs.h. */ |
93613951 | 10258 | #include <CoreFoundation/CFLocale.h> |
57aa50d4 TT |
10259 | int |
10260 | main () | |
10261 | { | |
93613951 | 10262 | CFLocaleCopyCurrent(); |
57aa50d4 TT |
10263 | ; |
10264 | return 0; | |
10265 | } | |
10266 | _ACEOF | |
10267 | if ac_fn_c_try_link "$LINENO"; then : | |
93613951 TT |
10268 | gt_cv_func_CFLocaleCopyCurrent=yes |
10269 | else | |
10270 | gt_cv_func_CFLocaleCopyCurrent=no | |
9d564f73 | 10271 | fi |
57aa50d4 TT |
10272 | rm -f core conftest.err conftest.$ac_objext \ |
10273 | conftest$ac_exeext conftest.$ac_ext | |
93613951 | 10274 | LIBS="$gt_save_LIBS" |
50e1e10f | 10275 | fi |
93613951 TT |
10276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5 |
10277 | $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; } | |
10278 | if test $gt_cv_func_CFLocaleCopyCurrent = yes; then | |
50e1e10f | 10279 | |
93613951 | 10280 | $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h |
e1052144 | 10281 | |
b0cacab0 | 10282 | fi |
93613951 TT |
10283 | INTL_MACOSX_LIBS= |
10284 | if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then | |
10285 | INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" | |
e1052144 | 10286 | fi |
b0cacab0 | 10287 | |
93636bde | 10288 | |
e1052144 | 10289 | |
93613951 TT |
10290 | |
10291 | ||
10292 | ||
10293 | ||
10294 | ||
10295 | ||
10296 | ||
10297 | case "$enable_silent_rules" in | |
10298 | yes) INTL_DEFAULT_VERBOSITY=0;; | |
10299 | no) INTL_DEFAULT_VERBOSITY=1;; | |
10300 | *) INTL_DEFAULT_VERBOSITY=1;; | |
10301 | esac | |
10302 | ||
10303 | ||
10304 | ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" | |
10305 | if test "x$ac_cv_type_ptrdiff_t" = xyes; then : | |
10306 | ||
50e1e10f | 10307 | else |
b0cacab0 | 10308 | |
93613951 | 10309 | $as_echo "#define ptrdiff_t long" >>confdefs.h |
50e1e10f | 10310 | |
e1052144 | 10311 | |
93613951 | 10312 | fi |
b0cacab0 | 10313 | |
93613951 TT |
10314 | for ac_header in features.h stddef.h stdlib.h string.h |
10315 | do : | |
10316 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
10317 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
10318 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
10319 | cat >>confdefs.h <<_ACEOF | |
10320 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
57aa50d4 | 10321 | _ACEOF |
93613951 TT |
10322 | |
10323 | fi | |
10324 | ||
10325 | done | |
10326 | ||
10327 | for ac_func in asprintf fwprintf newlocale putenv setenv setlocale \ | |
10328 | snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb | |
10329 | do : | |
10330 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
10331 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
10332 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
10333 | cat >>confdefs.h <<_ACEOF | |
10334 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
57aa50d4 | 10335 | _ACEOF |
93613951 TT |
10336 | |
10337 | fi | |
10338 | done | |
10339 | ||
10340 | ||
10341 | ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h> | |
10342 | " | |
10343 | if test "x$ac_cv_have_decl__snprintf" = xyes; then : | |
10344 | ac_have_decl=1 | |
50e1e10f | 10345 | else |
93613951 | 10346 | ac_have_decl=0 |
50e1e10f | 10347 | fi |
93613951 TT |
10348 | |
10349 | cat >>confdefs.h <<_ACEOF | |
10350 | #define HAVE_DECL__SNPRINTF $ac_have_decl | |
10351 | _ACEOF | |
10352 | ac_fn_c_check_decl "$LINENO" "_snwprintf" "ac_cv_have_decl__snwprintf" "#include <stdio.h> | |
10353 | " | |
10354 | if test "x$ac_cv_have_decl__snwprintf" = xyes; then : | |
10355 | ac_have_decl=1 | |
10356 | else | |
10357 | ac_have_decl=0 | |
50e1e10f TT |
10358 | fi |
10359 | ||
93613951 TT |
10360 | cat >>confdefs.h <<_ACEOF |
10361 | #define HAVE_DECL__SNWPRINTF $ac_have_decl | |
10362 | _ACEOF | |
10363 | ||
10364 | ||
10365 | ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "#include <stdio.h> | |
10366 | " | |
10367 | if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then : | |
10368 | ac_have_decl=1 | |
10369 | else | |
10370 | ac_have_decl=0 | |
10371 | fi | |
57aa50d4 TT |
10372 | |
10373 | cat >>confdefs.h <<_ACEOF | |
93613951 | 10374 | #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl |
57aa50d4 TT |
10375 | _ACEOF |
10376 | ||
93613951 TT |
10377 | |
10378 | case $gt_cv_func_printf_posix in | |
10379 | *yes) HAVE_POSIX_PRINTF=1 ;; | |
10380 | *) HAVE_POSIX_PRINTF=0 ;; | |
10381 | esac | |
10382 | ||
10383 | if test "$ac_cv_func_asprintf" = yes; then | |
10384 | HAVE_ASPRINTF=1 | |
10385 | else | |
10386 | HAVE_ASPRINTF=0 | |
10387 | fi | |
10388 | ||
10389 | if test "$ac_cv_func_snprintf" = yes; then | |
10390 | HAVE_SNPRINTF=1 | |
10391 | else | |
10392 | HAVE_SNPRINTF=0 | |
10393 | fi | |
10394 | ||
10395 | if test "$ac_cv_func_newlocale" = yes; then | |
10396 | HAVE_NEWLOCALE=1 | |
10397 | else | |
10398 | HAVE_NEWLOCALE=0 | |
10399 | fi | |
10400 | ||
10401 | if test "$ac_cv_func_wprintf" = yes; then | |
10402 | HAVE_WPRINTF=1 | |
10403 | else | |
10404 | HAVE_WPRINTF=0 | |
e1052144 | 10405 | fi |
50e1e10f | 10406 | |
57aa50d4 | 10407 | |
93613951 | 10408 | |
57aa50d4 TT |
10409 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5 |
10410 | $as_echo_n "checking for nl_langinfo and CODESET... " >&6; } | |
d6a4bcb5 | 10411 | if ${am_cv_langinfo_codeset+:} false; then : |
39fd3d4f | 10412 | $as_echo_n "(cached) " >&6 |
50e1e10f | 10413 | else |
57aa50d4 TT |
10414 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
10415 | /* end confdefs.h. */ | |
10416 | #include <langinfo.h> | |
10417 | int | |
10418 | main () | |
10419 | { | |
93613951 | 10420 | char* cs = nl_langinfo(CODESET); return !cs; |
57aa50d4 TT |
10421 | ; |
10422 | return 0; | |
10423 | } | |
10424 | _ACEOF | |
10425 | if ac_fn_c_try_link "$LINENO"; then : | |
10426 | am_cv_langinfo_codeset=yes | |
50e1e10f | 10427 | else |
57aa50d4 | 10428 | am_cv_langinfo_codeset=no |
50e1e10f | 10429 | fi |
57aa50d4 TT |
10430 | rm -f core conftest.err conftest.$ac_objext \ |
10431 | conftest$ac_exeext conftest.$ac_ext | |
7321d94e | 10432 | |
50e1e10f | 10433 | fi |
57aa50d4 TT |
10434 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5 |
10435 | $as_echo "$am_cv_langinfo_codeset" >&6; } | |
10436 | if test $am_cv_langinfo_codeset = yes; then | |
50e1e10f | 10437 | |
57aa50d4 | 10438 | $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h |
e1052144 | 10439 | |
57aa50d4 | 10440 | fi |
b0cacab0 | 10441 | |
21c84b71 | 10442 | |
57aa50d4 TT |
10443 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5 |
10444 | $as_echo_n "checking for LC_MESSAGES... " >&6; } | |
93613951 | 10445 | if ${gt_cv_val_LC_MESSAGES+:} false; then : |
39fd3d4f | 10446 | $as_echo_n "(cached) " >&6 |
93636bde | 10447 | else |
57aa50d4 TT |
10448 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
10449 | /* end confdefs.h. */ | |
10450 | #include <locale.h> | |
10451 | int | |
10452 | main () | |
10453 | { | |
10454 | return LC_MESSAGES | |
10455 | ; | |
10456 | return 0; | |
10457 | } | |
10458 | _ACEOF | |
10459 | if ac_fn_c_try_link "$LINENO"; then : | |
93613951 | 10460 | gt_cv_val_LC_MESSAGES=yes |
93636bde | 10461 | else |
93613951 | 10462 | gt_cv_val_LC_MESSAGES=no |
50e1e10f | 10463 | fi |
57aa50d4 TT |
10464 | rm -f core conftest.err conftest.$ac_objext \ |
10465 | conftest$ac_exeext conftest.$ac_ext | |
50e1e10f | 10466 | fi |
93613951 TT |
10467 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5 |
10468 | $as_echo "$gt_cv_val_LC_MESSAGES" >&6; } | |
10469 | if test $gt_cv_val_LC_MESSAGES = yes; then | |
50e1e10f | 10470 | |
57aa50d4 | 10471 | $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h |
50e1e10f | 10472 | |
e1052144 | 10473 | fi |
50e1e10f | 10474 | |
93613951 TT |
10475 | |
10476 | if test "$enable_shared" = yes; then | |
10477 | case "$host_os" in | |
10478 | mingw* | cygwin*) is_woe32dll=yes ;; | |
10479 | *) is_woe32dll=no ;; | |
10480 | esac | |
10481 | else | |
10482 | is_woe32dll=no | |
57aa50d4 | 10483 | fi |
93613951 | 10484 | WOE32DLL=$is_woe32dll |
b0cacab0 | 10485 | |
93613951 TT |
10486 | |
10487 | case "$host_os" in | |
10488 | mingw* | cygwin*) is_woe32=yes ;; | |
10489 | *) is_woe32=no ;; | |
10490 | esac | |
10491 | WOE32=$is_woe32 | |
10492 | ||
10493 | if test $WOE32 = yes; then | |
10494 | if test -n "$ac_tool_prefix"; then | |
10495 | # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. | |
10496 | set dummy ${ac_tool_prefix}windres; ac_word=$2 | |
57aa50d4 | 10497 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
39fd3d4f | 10498 | $as_echo_n "checking for $ac_word... " >&6; } |
93613951 | 10499 | if ${ac_cv_prog_WINDRES+:} false; then : |
39fd3d4f | 10500 | $as_echo_n "(cached) " >&6 |
50e1e10f | 10501 | else |
93613951 TT |
10502 | if test -n "$WINDRES"; then |
10503 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
50e1e10f | 10504 | else |
b0cacab0 TT |
10505 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10506 | for as_dir in $PATH | |
10507 | do | |
10508 | IFS=$as_save_IFS | |
10509 | test -z "$as_dir" && as_dir=. | |
57aa50d4 | 10510 | for ac_exec_ext in '' $ac_executable_extensions; do |
d6a4bcb5 | 10511 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
93613951 | 10512 | ac_cv_prog_WINDRES="${ac_tool_prefix}windres" |
57aa50d4 | 10513 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b0cacab0 TT |
10514 | break 2 |
10515 | fi | |
10516 | done | |
57aa50d4 | 10517 | done |
e1052144 | 10518 | IFS=$as_save_IFS |
b0cacab0 | 10519 | |
50e1e10f TT |
10520 | fi |
10521 | fi | |
93613951 TT |
10522 | WINDRES=$ac_cv_prog_WINDRES |
10523 | if test -n "$WINDRES"; then | |
10524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 | |
10525 | $as_echo "$WINDRES" >&6; } | |
50e1e10f | 10526 | else |
57aa50d4 | 10527 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
39fd3d4f | 10528 | $as_echo "no" >&6; } |
50e1e10f TT |
10529 | fi |
10530 | ||
e1052144 | 10531 | |
93613951 TT |
10532 | fi |
10533 | if test -z "$ac_cv_prog_WINDRES"; then | |
10534 | ac_ct_WINDRES=$WINDRES | |
10535 | # Extract the first word of "windres", so it can be a program name with args. | |
10536 | set dummy windres; ac_word=$2 | |
10537 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10538 | $as_echo_n "checking for $ac_word... " >&6; } | |
10539 | if ${ac_cv_prog_ac_ct_WINDRES+:} false; then : | |
10540 | $as_echo_n "(cached) " >&6 | |
10541 | else | |
10542 | if test -n "$ac_ct_WINDRES"; then | |
10543 | ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. | |
10544 | else | |
10545 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10546 | for as_dir in $PATH | |
10547 | do | |
10548 | IFS=$as_save_IFS | |
10549 | test -z "$as_dir" && as_dir=. | |
10550 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10551 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10552 | ac_cv_prog_ac_ct_WINDRES="windres" | |
10553 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10554 | break 2 | |
10555 | fi | |
b0cacab0 | 10556 | done |
93613951 TT |
10557 | done |
10558 | IFS=$as_save_IFS | |
b0cacab0 | 10559 | |
93613951 TT |
10560 | fi |
10561 | fi | |
10562 | ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES | |
10563 | if test -n "$ac_ct_WINDRES"; then | |
10564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5 | |
10565 | $as_echo "$ac_ct_WINDRES" >&6; } | |
10566 | else | |
10567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10568 | $as_echo "no" >&6; } | |
10569 | fi | |
10570 | ||
10571 | if test "x$ac_ct_WINDRES" = x; then | |
10572 | WINDRES="" | |
57aa50d4 | 10573 | else |
93613951 TT |
10574 | case $cross_compiling:$ac_tool_warned in |
10575 | yes:) | |
10576 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
10577 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
10578 | ac_tool_warned=yes ;; | |
10579 | esac | |
10580 | WINDRES=$ac_ct_WINDRES | |
57aa50d4 | 10581 | fi |
93613951 TT |
10582 | else |
10583 | WINDRES="$ac_cv_prog_WINDRES" | |
10584 | fi | |
10585 | ||
57aa50d4 TT |
10586 | fi |
10587 | ||
93613951 TT |
10588 | case "$host_os" in |
10589 | hpux*) LTLIBC="" ;; | |
10590 | *) LTLIBC="-lc" ;; | |
10591 | esac | |
57aa50d4 TT |
10592 | |
10593 | ||
10594 | ||
10595 | ||
10596 | ||
10597 | ||
10598 | ||
10599 | ||
10600 | ||
10601 | ||
b0cacab0 | 10602 | |
740837de | 10603 | |
b0cacab0 TT |
10604 | |
10605 | ||
10606 | ||
93613951 TT |
10607 | |
10608 | ||
10609 | ||
10610 | ||
10611 | ||
10612 | ||
10613 | ||
10614 | ||
10615 | ||
10616 | ||
10617 | ||
10618 | ||
10619 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5 | |
10620 | $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; } | |
10621 | if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then : | |
10622 | $as_echo_n "(cached) " >&6 | |
50e1e10f | 10623 | else |
93613951 TT |
10624 | gt_save_LIBS="$LIBS" |
10625 | LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" | |
10626 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10627 | /* end confdefs.h. */ | |
10628 | #include <CoreFoundation/CFPreferences.h> | |
10629 | int | |
10630 | main () | |
10631 | { | |
10632 | CFPreferencesCopyAppValue(NULL, NULL) | |
10633 | ; | |
10634 | return 0; | |
10635 | } | |
10636 | _ACEOF | |
10637 | if ac_fn_c_try_link "$LINENO"; then : | |
10638 | gt_cv_func_CFPreferencesCopyAppValue=yes | |
10639 | else | |
10640 | gt_cv_func_CFPreferencesCopyAppValue=no | |
50e1e10f | 10641 | fi |
93613951 TT |
10642 | rm -f core conftest.err conftest.$ac_objext \ |
10643 | conftest$ac_exeext conftest.$ac_ext | |
10644 | LIBS="$gt_save_LIBS" | |
50e1e10f | 10645 | fi |
93613951 TT |
10646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 |
10647 | $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; } | |
10648 | if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then | |
10649 | ||
10650 | $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h | |
10651 | ||
10652 | fi | |
10653 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5 | |
10654 | $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; } | |
10655 | if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then : | |
10656 | $as_echo_n "(cached) " >&6 | |
10657 | else | |
10658 | gt_save_LIBS="$LIBS" | |
10659 | LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" | |
10660 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10661 | /* end confdefs.h. */ | |
10662 | #include <CoreFoundation/CFLocale.h> | |
10663 | int | |
10664 | main () | |
10665 | { | |
10666 | CFLocaleCopyCurrent(); | |
10667 | ; | |
10668 | return 0; | |
10669 | } | |
10670 | _ACEOF | |
10671 | if ac_fn_c_try_link "$LINENO"; then : | |
10672 | gt_cv_func_CFLocaleCopyCurrent=yes | |
10673 | else | |
10674 | gt_cv_func_CFLocaleCopyCurrent=no | |
10675 | fi | |
10676 | rm -f core conftest.err conftest.$ac_objext \ | |
10677 | conftest$ac_exeext conftest.$ac_ext | |
10678 | LIBS="$gt_save_LIBS" | |
10679 | fi | |
10680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5 | |
10681 | $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; } | |
10682 | if test $gt_cv_func_CFLocaleCopyCurrent = yes; then | |
10683 | ||
10684 | $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h | |
10685 | ||
10686 | fi | |
10687 | INTL_MACOSX_LIBS= | |
10688 | if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then | |
10689 | INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" | |
10690 | fi | |
10691 | ||
50e1e10f | 10692 | |
b0cacab0 TT |
10693 | |
10694 | ||
10695 | ||
10696 | ||
57aa50d4 TT |
10697 | BUILD_INCLUDED_LIBINTL=no |
10698 | USE_INCLUDED_LIBINTL=no | |
10699 | ||
10700 | LIBINTL= | |
10701 | LTLIBINTL= | |
10702 | POSUB= | |
10703 | ||
93613951 TT |
10704 | case " $gt_needs " in |
10705 | *" need-formatstring-macros "*) gt_api_version=3 ;; | |
10706 | *" need-ngettext "*) gt_api_version=2 ;; | |
10707 | *) gt_api_version=1 ;; | |
10708 | esac | |
10709 | gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc" | |
10710 | gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl" | |
10711 | ||
57aa50d4 TT |
10712 | if test "$USE_NLS" = "yes"; then |
10713 | gt_use_preinstalled_gnugettext=no | |
b0cacab0 | 10714 | |
57aa50d4 TT |
10715 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5 |
10716 | $as_echo_n "checking whether included gettext is requested... " >&6; } | |
b0cacab0 | 10717 | |
57aa50d4 TT |
10718 | # Check whether --with-included-gettext was given. |
10719 | if test "${with_included_gettext+set}" = set; then : | |
10720 | withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval | |
50e1e10f | 10721 | else |
57aa50d4 | 10722 | nls_cv_force_use_gnu_gettext=no |
50e1e10f TT |
10723 | fi |
10724 | ||
57aa50d4 TT |
10725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5 |
10726 | $as_echo "$nls_cv_force_use_gnu_gettext" >&6; } | |
b0cacab0 | 10727 | |
57aa50d4 TT |
10728 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" |
10729 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then | |
b0cacab0 TT |
10730 | |
10731 | ||
93613951 TT |
10732 | if test $gt_api_version -ge 3; then |
10733 | gt_revision_test_code=' | |
10734 | #ifndef __GNU_GETTEXT_SUPPORTED_REVISION | |
10735 | #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) | |
10736 | #endif | |
10737 | typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; | |
10738 | ' | |
10739 | else | |
10740 | gt_revision_test_code= | |
10741 | fi | |
10742 | if test $gt_api_version -ge 2; then | |
10743 | gt_expression_test_code=' + * ngettext ("", "", 0)' | |
10744 | else | |
10745 | gt_expression_test_code= | |
10746 | fi | |
b0cacab0 | 10747 | |
57aa50d4 TT |
10748 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5 |
10749 | $as_echo_n "checking for GNU gettext in libc... " >&6; } | |
93613951 | 10750 | if eval \${$gt_func_gnugettext_libc+:} false; then : |
39fd3d4f | 10751 | $as_echo_n "(cached) " >&6 |
7321d94e | 10752 | else |
57aa50d4 TT |
10753 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
10754 | /* end confdefs.h. */ | |
93613951 | 10755 | |
57aa50d4 | 10756 | #include <libintl.h> |
93613951 | 10757 | $gt_revision_test_code |
57aa50d4 TT |
10758 | extern int _nl_msg_cat_cntr; |
10759 | extern int *_nl_domain_bindings; | |
93613951 | 10760 | |
57aa50d4 TT |
10761 | int |
10762 | main () | |
10763 | { | |
93613951 | 10764 | |
57aa50d4 | 10765 | bindtextdomain ("", ""); |
93613951 TT |
10766 | return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings |
10767 | ||
57aa50d4 TT |
10768 | ; |
10769 | return 0; | |
10770 | } | |
10771 | _ACEOF | |
10772 | if ac_fn_c_try_link "$LINENO"; then : | |
93613951 | 10773 | eval "$gt_func_gnugettext_libc=yes" |
7321d94e | 10774 | else |
93613951 | 10775 | eval "$gt_func_gnugettext_libc=no" |
57aa50d4 TT |
10776 | fi |
10777 | rm -f core conftest.err conftest.$ac_objext \ | |
10778 | conftest$ac_exeext conftest.$ac_ext | |
10779 | fi | |
93613951 TT |
10780 | eval ac_res=\$$gt_func_gnugettext_libc |
10781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
10782 | $as_echo "$ac_res" >&6; } | |
10783 | ||
10784 | if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then | |
10785 | ||
10786 | ||
10787 | ||
10788 | ||
b0cacab0 TT |
10789 | |
10790 | ||
10791 | ||
10792 | ||
57aa50d4 | 10793 | use_additional=yes |
b0cacab0 | 10794 | |
57aa50d4 TT |
10795 | acl_save_prefix="$prefix" |
10796 | prefix="$acl_final_prefix" | |
10797 | acl_save_exec_prefix="$exec_prefix" | |
10798 | exec_prefix="$acl_final_exec_prefix" | |
b0cacab0 | 10799 | |
57aa50d4 TT |
10800 | eval additional_includedir=\"$includedir\" |
10801 | eval additional_libdir=\"$libdir\" | |
b0cacab0 | 10802 | |
57aa50d4 TT |
10803 | exec_prefix="$acl_save_exec_prefix" |
10804 | prefix="$acl_save_prefix" | |
b0cacab0 TT |
10805 | |
10806 | ||
57aa50d4 TT |
10807 | # Check whether --with-libintl-prefix was given. |
10808 | if test "${with_libintl_prefix+set}" = set; then : | |
10809 | withval=$with_libintl_prefix; | |
10810 | if test "X$withval" = "Xno"; then | |
10811 | use_additional=no | |
10812 | else | |
10813 | if test "X$withval" = "X"; then | |
b0cacab0 | 10814 | |
57aa50d4 TT |
10815 | acl_save_prefix="$prefix" |
10816 | prefix="$acl_final_prefix" | |
10817 | acl_save_exec_prefix="$exec_prefix" | |
10818 | exec_prefix="$acl_final_exec_prefix" | |
b0cacab0 | 10819 | |
57aa50d4 TT |
10820 | eval additional_includedir=\"$includedir\" |
10821 | eval additional_libdir=\"$libdir\" | |
7321d94e | 10822 | |
57aa50d4 TT |
10823 | exec_prefix="$acl_save_exec_prefix" |
10824 | prefix="$acl_save_prefix" | |
7321d94e | 10825 | |
57aa50d4 TT |
10826 | else |
10827 | additional_includedir="$withval/include" | |
93613951 TT |
10828 | additional_libdir="$withval/$acl_libdirstem" |
10829 | if test "$acl_libdirstem2" != "$acl_libdirstem" \ | |
10830 | && ! test -d "$withval/$acl_libdirstem"; then | |
10831 | additional_libdir="$withval/$acl_libdirstem2" | |
10832 | fi | |
57aa50d4 TT |
10833 | fi |
10834 | fi | |
7321d94e | 10835 | |
7321d94e MK |
10836 | fi |
10837 | ||
57aa50d4 TT |
10838 | LIBINTL= |
10839 | LTLIBINTL= | |
10840 | INCINTL= | |
93613951 TT |
10841 | LIBINTL_PREFIX= |
10842 | HAVE_LIBINTL= | |
57aa50d4 TT |
10843 | rpathdirs= |
10844 | ltrpathdirs= | |
10845 | names_already_handled= | |
10846 | names_next_round='intl ' | |
10847 | while test -n "$names_next_round"; do | |
10848 | names_this_round="$names_next_round" | |
10849 | names_next_round= | |
10850 | for name in $names_this_round; do | |
10851 | already_handled= | |
10852 | for n in $names_already_handled; do | |
10853 | if test "$n" = "$name"; then | |
10854 | already_handled=yes | |
10855 | break | |
10856 | fi | |
50e1e10f | 10857 | done |
57aa50d4 TT |
10858 | if test -z "$already_handled"; then |
10859 | names_already_handled="$names_already_handled $name" | |
93613951 | 10860 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` |
57aa50d4 TT |
10861 | eval value=\"\$HAVE_LIB$uppername\" |
10862 | if test -n "$value"; then | |
10863 | if test "$value" = yes; then | |
10864 | eval value=\"\$LIB$uppername\" | |
10865 | test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" | |
10866 | eval value=\"\$LTLIB$uppername\" | |
10867 | test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" | |
10868 | else | |
10869 | : | |
10870 | fi | |
10871 | else | |
10872 | found_dir= | |
10873 | found_la= | |
10874 | found_so= | |
10875 | found_a= | |
93613951 TT |
10876 | eval libname=\"$acl_libname_spec\" # typically: libname=lib$name |
10877 | if test -n "$acl_shlibext"; then | |
10878 | shrext=".$acl_shlibext" # typically: shrext=.so | |
10879 | else | |
10880 | shrext= | |
10881 | fi | |
57aa50d4 | 10882 | if test $use_additional = yes; then |
93613951 TT |
10883 | dir="$additional_libdir" |
10884 | if test -n "$acl_shlibext"; then | |
10885 | if test -f "$dir/$libname$shrext"; then | |
10886 | found_dir="$dir" | |
10887 | found_so="$dir/$libname$shrext" | |
10888 | else | |
10889 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then | |
10890 | ver=`(cd "$dir" && \ | |
10891 | for f in "$libname$shrext".*; do echo "$f"; done \ | |
10892 | | sed -e "s,^$libname$shrext\\\\.,," \ | |
10893 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | |
10894 | | sed 1q ) 2>/dev/null` | |
10895 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then | |
10896 | found_dir="$dir" | |
10897 | found_so="$dir/$libname$shrext.$ver" | |
10898 | fi | |
10899 | else | |
10900 | eval library_names=\"$acl_library_names_spec\" | |
10901 | for f in $library_names; do | |
10902 | if test -f "$dir/$f"; then | |
10903 | found_dir="$dir" | |
10904 | found_so="$dir/$f" | |
10905 | break | |
10906 | fi | |
10907 | done | |
57aa50d4 TT |
10908 | fi |
10909 | fi | |
93613951 TT |
10910 | fi |
10911 | if test "X$found_dir" = "X"; then | |
10912 | if test -f "$dir/$libname.$acl_libext"; then | |
10913 | found_dir="$dir" | |
10914 | found_a="$dir/$libname.$acl_libext" | |
10915 | fi | |
10916 | fi | |
10917 | if test "X$found_dir" != "X"; then | |
10918 | if test -f "$dir/$libname.la"; then | |
10919 | found_la="$dir/$libname.la" | |
10920 | fi | |
57aa50d4 TT |
10921 | fi |
10922 | fi | |
10923 | if test "X$found_dir" = "X"; then | |
10924 | for x in $LDFLAGS $LTLIBINTL; do | |
39fd3d4f | 10925 | |
57aa50d4 TT |
10926 | acl_save_prefix="$prefix" |
10927 | prefix="$acl_final_prefix" | |
10928 | acl_save_exec_prefix="$exec_prefix" | |
10929 | exec_prefix="$acl_final_exec_prefix" | |
10930 | eval x=\"$x\" | |
10931 | exec_prefix="$acl_save_exec_prefix" | |
10932 | prefix="$acl_save_prefix" | |
3d05802f | 10933 | |
57aa50d4 TT |
10934 | case "$x" in |
10935 | -L*) | |
10936 | dir=`echo "X$x" | sed -e 's/^X-L//'` | |
93613951 TT |
10937 | if test -n "$acl_shlibext"; then |
10938 | if test -f "$dir/$libname$shrext"; then | |
57aa50d4 | 10939 | found_dir="$dir" |
93613951 TT |
10940 | found_so="$dir/$libname$shrext" |
10941 | else | |
10942 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then | |
10943 | ver=`(cd "$dir" && \ | |
10944 | for f in "$libname$shrext".*; do echo "$f"; done \ | |
10945 | | sed -e "s,^$libname$shrext\\\\.,," \ | |
10946 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | |
10947 | | sed 1q ) 2>/dev/null` | |
10948 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then | |
10949 | found_dir="$dir" | |
10950 | found_so="$dir/$libname$shrext.$ver" | |
10951 | fi | |
10952 | else | |
10953 | eval library_names=\"$acl_library_names_spec\" | |
10954 | for f in $library_names; do | |
10955 | if test -f "$dir/$f"; then | |
10956 | found_dir="$dir" | |
10957 | found_so="$dir/$f" | |
10958 | break | |
10959 | fi | |
10960 | done | |
57aa50d4 TT |
10961 | fi |
10962 | fi | |
93613951 TT |
10963 | fi |
10964 | if test "X$found_dir" = "X"; then | |
10965 | if test -f "$dir/$libname.$acl_libext"; then | |
10966 | found_dir="$dir" | |
10967 | found_a="$dir/$libname.$acl_libext" | |
10968 | fi | |
10969 | fi | |
10970 | if test "X$found_dir" != "X"; then | |
10971 | if test -f "$dir/$libname.la"; then | |
10972 | found_la="$dir/$libname.la" | |
10973 | fi | |
57aa50d4 TT |
10974 | fi |
10975 | ;; | |
10976 | esac | |
10977 | if test "X$found_dir" != "X"; then | |
10978 | break | |
10979 | fi | |
10980 | done | |
10981 | fi | |
10982 | if test "X$found_dir" != "X"; then | |
10983 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" | |
10984 | if test "X$found_so" != "X"; then | |
93613951 TT |
10985 | if test "$enable_rpath" = no \ |
10986 | || test "X$found_dir" = "X/usr/$acl_libdirstem" \ | |
10987 | || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then | |
57aa50d4 TT |
10988 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
10989 | else | |
10990 | haveit= | |
10991 | for x in $ltrpathdirs; do | |
10992 | if test "X$x" = "X$found_dir"; then | |
10993 | haveit=yes | |
10994 | break | |
10995 | fi | |
10996 | done | |
10997 | if test -z "$haveit"; then | |
10998 | ltrpathdirs="$ltrpathdirs $found_dir" | |
10999 | fi | |
93613951 | 11000 | if test "$acl_hardcode_direct" = yes; then |
57aa50d4 TT |
11001 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
11002 | else | |
93613951 | 11003 | if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then |
57aa50d4 TT |
11004 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
11005 | haveit= | |
11006 | for x in $rpathdirs; do | |
11007 | if test "X$x" = "X$found_dir"; then | |
11008 | haveit=yes | |
11009 | break | |
11010 | fi | |
11011 | done | |
11012 | if test -z "$haveit"; then | |
11013 | rpathdirs="$rpathdirs $found_dir" | |
11014 | fi | |
11015 | else | |
11016 | haveit= | |
11017 | for x in $LDFLAGS $LIBINTL; do | |
6ec9ef18 | 11018 | |
57aa50d4 TT |
11019 | acl_save_prefix="$prefix" |
11020 | prefix="$acl_final_prefix" | |
11021 | acl_save_exec_prefix="$exec_prefix" | |
11022 | exec_prefix="$acl_final_exec_prefix" | |
11023 | eval x=\"$x\" | |
11024 | exec_prefix="$acl_save_exec_prefix" | |
11025 | prefix="$acl_save_prefix" | |
d7f45af8 | 11026 | |
57aa50d4 TT |
11027 | if test "X$x" = "X-L$found_dir"; then |
11028 | haveit=yes | |
11029 | break | |
11030 | fi | |
11031 | done | |
11032 | if test -z "$haveit"; then | |
11033 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" | |
11034 | fi | |
93613951 | 11035 | if test "$acl_hardcode_minus_L" != no; then |
57aa50d4 TT |
11036 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
11037 | else | |
11038 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" | |
11039 | fi | |
11040 | fi | |
11041 | fi | |
11042 | fi | |
11043 | else | |
11044 | if test "X$found_a" != "X"; then | |
11045 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" | |
11046 | else | |
11047 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" | |
11048 | fi | |
11049 | fi | |
11050 | additional_includedir= | |
11051 | case "$found_dir" in | |
93613951 TT |
11052 | */$acl_libdirstem | */$acl_libdirstem/) |
11053 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` | |
11054 | if test "$name" = 'intl'; then | |
11055 | LIBINTL_PREFIX="$basedir" | |
11056 | fi | |
11057 | additional_includedir="$basedir/include" | |
11058 | ;; | |
11059 | */$acl_libdirstem2 | */$acl_libdirstem2/) | |
11060 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` | |
11061 | if test "$name" = 'intl'; then | |
11062 | LIBINTL_PREFIX="$basedir" | |
11063 | fi | |
57aa50d4 TT |
11064 | additional_includedir="$basedir/include" |
11065 | ;; | |
11066 | esac | |
11067 | if test "X$additional_includedir" != "X"; then | |
11068 | if test "X$additional_includedir" != "X/usr/include"; then | |
11069 | haveit= | |
11070 | if test "X$additional_includedir" = "X/usr/local/include"; then | |
11071 | if test -n "$GCC"; then | |
11072 | case $host_os in | |
93613951 | 11073 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; |
57aa50d4 TT |
11074 | esac |
11075 | fi | |
11076 | fi | |
11077 | if test -z "$haveit"; then | |
11078 | for x in $CPPFLAGS $INCINTL; do | |
b0cacab0 | 11079 | |
57aa50d4 TT |
11080 | acl_save_prefix="$prefix" |
11081 | prefix="$acl_final_prefix" | |
11082 | acl_save_exec_prefix="$exec_prefix" | |
11083 | exec_prefix="$acl_final_exec_prefix" | |
11084 | eval x=\"$x\" | |
11085 | exec_prefix="$acl_save_exec_prefix" | |
11086 | prefix="$acl_save_prefix" | |
21c84b71 | 11087 | |
57aa50d4 TT |
11088 | if test "X$x" = "X-I$additional_includedir"; then |
11089 | haveit=yes | |
11090 | break | |
11091 | fi | |
11092 | done | |
11093 | if test -z "$haveit"; then | |
11094 | if test -d "$additional_includedir"; then | |
11095 | INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" | |
11096 | fi | |
11097 | fi | |
11098 | fi | |
11099 | fi | |
11100 | fi | |
11101 | if test -n "$found_la"; then | |
11102 | save_libdir="$libdir" | |
11103 | case "$found_la" in | |
11104 | */* | *\\*) . "$found_la" ;; | |
11105 | *) . "./$found_la" ;; | |
11106 | esac | |
11107 | libdir="$save_libdir" | |
11108 | for dep in $dependency_libs; do | |
11109 | case "$dep" in | |
11110 | -L*) | |
11111 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` | |
93613951 TT |
11112 | if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ |
11113 | && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then | |
57aa50d4 | 11114 | haveit= |
93613951 TT |
11115 | if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ |
11116 | || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then | |
57aa50d4 TT |
11117 | if test -n "$GCC"; then |
11118 | case $host_os in | |
93613951 | 11119 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; |
57aa50d4 TT |
11120 | esac |
11121 | fi | |
11122 | fi | |
11123 | if test -z "$haveit"; then | |
11124 | haveit= | |
11125 | for x in $LDFLAGS $LIBINTL; do | |
50e1e10f | 11126 | |
57aa50d4 TT |
11127 | acl_save_prefix="$prefix" |
11128 | prefix="$acl_final_prefix" | |
11129 | acl_save_exec_prefix="$exec_prefix" | |
11130 | exec_prefix="$acl_final_exec_prefix" | |
11131 | eval x=\"$x\" | |
11132 | exec_prefix="$acl_save_exec_prefix" | |
11133 | prefix="$acl_save_prefix" | |
50e1e10f | 11134 | |
57aa50d4 TT |
11135 | if test "X$x" = "X-L$additional_libdir"; then |
11136 | haveit=yes | |
11137 | break | |
11138 | fi | |
11139 | done | |
11140 | if test -z "$haveit"; then | |
11141 | if test -d "$additional_libdir"; then | |
11142 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" | |
11143 | fi | |
11144 | fi | |
11145 | haveit= | |
11146 | for x in $LDFLAGS $LTLIBINTL; do | |
a4bf69d9 | 11147 | |
57aa50d4 TT |
11148 | acl_save_prefix="$prefix" |
11149 | prefix="$acl_final_prefix" | |
11150 | acl_save_exec_prefix="$exec_prefix" | |
11151 | exec_prefix="$acl_final_exec_prefix" | |
11152 | eval x=\"$x\" | |
11153 | exec_prefix="$acl_save_exec_prefix" | |
11154 | prefix="$acl_save_prefix" | |
50e1e10f | 11155 | |
57aa50d4 TT |
11156 | if test "X$x" = "X-L$additional_libdir"; then |
11157 | haveit=yes | |
11158 | break | |
11159 | fi | |
11160 | done | |
11161 | if test -z "$haveit"; then | |
11162 | if test -d "$additional_libdir"; then | |
11163 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" | |
11164 | fi | |
11165 | fi | |
11166 | fi | |
11167 | fi | |
11168 | ;; | |
11169 | -R*) | |
11170 | dir=`echo "X$dep" | sed -e 's/^X-R//'` | |
11171 | if test "$enable_rpath" != no; then | |
11172 | haveit= | |
11173 | for x in $rpathdirs; do | |
11174 | if test "X$x" = "X$dir"; then | |
11175 | haveit=yes | |
11176 | break | |
11177 | fi | |
11178 | done | |
11179 | if test -z "$haveit"; then | |
11180 | rpathdirs="$rpathdirs $dir" | |
11181 | fi | |
11182 | haveit= | |
11183 | for x in $ltrpathdirs; do | |
11184 | if test "X$x" = "X$dir"; then | |
11185 | haveit=yes | |
11186 | break | |
11187 | fi | |
11188 | done | |
11189 | if test -z "$haveit"; then | |
11190 | ltrpathdirs="$ltrpathdirs $dir" | |
11191 | fi | |
11192 | fi | |
11193 | ;; | |
11194 | -l*) | |
11195 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` | |
11196 | ;; | |
11197 | *.la) | |
11198 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` | |
11199 | ;; | |
11200 | *) | |
11201 | LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" | |
11202 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" | |
11203 | ;; | |
11204 | esac | |
11205 | done | |
11206 | fi | |
11207 | else | |
11208 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" | |
11209 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" | |
11210 | fi | |
11211 | fi | |
11212 | fi | |
11213 | done | |
11214 | done | |
11215 | if test "X$rpathdirs" != "X"; then | |
93613951 | 11216 | if test -n "$acl_hardcode_libdir_separator"; then |
57aa50d4 TT |
11217 | alldirs= |
11218 | for found_dir in $rpathdirs; do | |
93613951 | 11219 | alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" |
57aa50d4 TT |
11220 | done |
11221 | acl_save_libdir="$libdir" | |
11222 | libdir="$alldirs" | |
93613951 | 11223 | eval flag=\"$acl_hardcode_libdir_flag_spec\" |
57aa50d4 TT |
11224 | libdir="$acl_save_libdir" |
11225 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" | |
11226 | else | |
11227 | for found_dir in $rpathdirs; do | |
11228 | acl_save_libdir="$libdir" | |
11229 | libdir="$found_dir" | |
93613951 | 11230 | eval flag=\"$acl_hardcode_libdir_flag_spec\" |
57aa50d4 TT |
11231 | libdir="$acl_save_libdir" |
11232 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" | |
11233 | done | |
11234 | fi | |
11235 | fi | |
11236 | if test "X$ltrpathdirs" != "X"; then | |
11237 | for found_dir in $ltrpathdirs; do | |
11238 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" | |
11239 | done | |
11240 | fi | |
b0cacab0 | 11241 | |
93613951 TT |
11242 | |
11243 | ||
11244 | ||
11245 | ||
11246 | ||
57aa50d4 TT |
11247 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5 |
11248 | $as_echo_n "checking for GNU gettext in libintl... " >&6; } | |
93613951 | 11249 | if eval \${$gt_func_gnugettext_libintl+:} false; then : |
39fd3d4f | 11250 | $as_echo_n "(cached) " >&6 |
6c133523 | 11251 | else |
57aa50d4 TT |
11252 | gt_save_CPPFLAGS="$CPPFLAGS" |
11253 | CPPFLAGS="$CPPFLAGS $INCINTL" | |
11254 | gt_save_LIBS="$LIBS" | |
11255 | LIBS="$LIBS $LIBINTL" | |
11256 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11257 | /* end confdefs.h. */ | |
93613951 | 11258 | |
57aa50d4 | 11259 | #include <libintl.h> |
93613951 | 11260 | $gt_revision_test_code |
57aa50d4 TT |
11261 | extern int _nl_msg_cat_cntr; |
11262 | extern | |
11263 | #ifdef __cplusplus | |
11264 | "C" | |
11265 | #endif | |
93613951 TT |
11266 | const char *_nl_expand_alias (const char *); |
11267 | ||
57aa50d4 TT |
11268 | int |
11269 | main () | |
11270 | { | |
93613951 | 11271 | |
57aa50d4 | 11272 | bindtextdomain ("", ""); |
93613951 TT |
11273 | return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") |
11274 | ||
57aa50d4 TT |
11275 | ; |
11276 | return 0; | |
11277 | } | |
b0cacab0 | 11278 | _ACEOF |
57aa50d4 | 11279 | if ac_fn_c_try_link "$LINENO"; then : |
93613951 | 11280 | eval "$gt_func_gnugettext_libintl=yes" |
6c133523 | 11281 | else |
93613951 | 11282 | eval "$gt_func_gnugettext_libintl=no" |
6c133523 | 11283 | fi |
57aa50d4 TT |
11284 | rm -f core conftest.err conftest.$ac_objext \ |
11285 | conftest$ac_exeext conftest.$ac_ext | |
93613951 | 11286 | if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then |
57aa50d4 TT |
11287 | LIBS="$LIBS $LIBICONV" |
11288 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
da76d6b7 | 11289 | /* end confdefs.h. */ |
93613951 | 11290 | |
57aa50d4 | 11291 | #include <libintl.h> |
93613951 | 11292 | $gt_revision_test_code |
57aa50d4 TT |
11293 | extern int _nl_msg_cat_cntr; |
11294 | extern | |
11295 | #ifdef __cplusplus | |
11296 | "C" | |
da76d6b7 | 11297 | #endif |
93613951 TT |
11298 | const char *_nl_expand_alias (const char *); |
11299 | ||
57aa50d4 TT |
11300 | int |
11301 | main () | |
11302 | { | |
93613951 | 11303 | |
57aa50d4 | 11304 | bindtextdomain ("", ""); |
93613951 TT |
11305 | return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") |
11306 | ||
57aa50d4 TT |
11307 | ; |
11308 | return 0; | |
11309 | } | |
da76d6b7 | 11310 | _ACEOF |
57aa50d4 TT |
11311 | if ac_fn_c_try_link "$LINENO"; then : |
11312 | LIBINTL="$LIBINTL $LIBICONV" | |
93613951 TT |
11313 | LTLIBINTL="$LTLIBINTL $LTLIBICONV" |
11314 | eval "$gt_func_gnugettext_libintl=yes" | |
6c133523 TT |
11315 | |
11316 | fi | |
57aa50d4 TT |
11317 | rm -f core conftest.err conftest.$ac_objext \ |
11318 | conftest$ac_exeext conftest.$ac_ext | |
11319 | fi | |
11320 | CPPFLAGS="$gt_save_CPPFLAGS" | |
11321 | LIBS="$gt_save_LIBS" | |
da76d6b7 | 11322 | fi |
93613951 TT |
11323 | eval ac_res=\$$gt_func_gnugettext_libintl |
11324 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
11325 | $as_echo "$ac_res" >&6; } | |
57aa50d4 | 11326 | fi |
b0cacab0 | 11327 | |
93613951 TT |
11328 | if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \ |
11329 | || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \ | |
57aa50d4 TT |
11330 | && test "$PACKAGE" != gettext-runtime \ |
11331 | && test "$PACKAGE" != gettext-tools; }; then | |
11332 | gt_use_preinstalled_gnugettext=yes | |
11333 | else | |
11334 | LIBINTL= | |
11335 | LTLIBINTL= | |
11336 | INCINTL= | |
11337 | fi | |
740837de | 11338 | |
b0cacab0 | 11339 | |
57aa50d4 TT |
11340 | if test "$gt_use_preinstalled_gnugettext" != "yes"; then |
11341 | nls_cv_use_gnu_gettext=yes | |
11342 | fi | |
11343 | fi | |
b0cacab0 | 11344 | |
57aa50d4 TT |
11345 | if test "$nls_cv_use_gnu_gettext" = "yes"; then |
11346 | BUILD_INCLUDED_LIBINTL=yes | |
11347 | USE_INCLUDED_LIBINTL=yes | |
93613951 TT |
11348 | LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD" |
11349 | LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD" | |
57aa50d4 TT |
11350 | LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` |
11351 | fi | |
b0cacab0 | 11352 | |
93613951 | 11353 | CATOBJEXT= |
57aa50d4 TT |
11354 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
11355 | || test "$nls_cv_use_gnu_gettext" = "yes"; then | |
11356 | CATOBJEXT=.gmo | |
11357 | fi | |
b0cacab0 TT |
11358 | |
11359 | ||
93613951 TT |
11360 | if test -n "$INTL_MACOSX_LIBS"; then |
11361 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ | |
11362 | || test "$nls_cv_use_gnu_gettext" = "yes"; then | |
11363 | LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" | |
11364 | LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" | |
11365 | fi | |
11366 | fi | |
11367 | ||
57aa50d4 TT |
11368 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
11369 | || test "$nls_cv_use_gnu_gettext" = "yes"; then | |
b0cacab0 | 11370 | |
57aa50d4 | 11371 | $as_echo "#define ENABLE_NLS 1" >>confdefs.h |
b0cacab0 | 11372 | |
57aa50d4 TT |
11373 | else |
11374 | USE_NLS=no | |
11375 | fi | |
11376 | fi | |
b0cacab0 | 11377 | |
57aa50d4 TT |
11378 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5 |
11379 | $as_echo_n "checking whether to use NLS... " >&6; } | |
11380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 | |
11381 | $as_echo "$USE_NLS" >&6; } | |
11382 | if test "$USE_NLS" = "yes"; then | |
11383 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5 | |
11384 | $as_echo_n "checking where the gettext function comes from... " >&6; } | |
11385 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then | |
93613951 | 11386 | if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then |
57aa50d4 TT |
11387 | gt_source="external libintl" |
11388 | else | |
11389 | gt_source="libc" | |
11390 | fi | |
11391 | else | |
11392 | gt_source="included intl directory" | |
11393 | fi | |
11394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5 | |
11395 | $as_echo "$gt_source" >&6; } | |
11396 | fi | |
b0cacab0 | 11397 | |
57aa50d4 | 11398 | if test "$USE_NLS" = "yes"; then |
b0cacab0 | 11399 | |
57aa50d4 | 11400 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then |
93613951 | 11401 | if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then |
57aa50d4 TT |
11402 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5 |
11403 | $as_echo_n "checking how to link with libintl... " >&6; } | |
11404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 | |
11405 | $as_echo "$LIBINTL" >&6; } | |
b0cacab0 | 11406 | |
57aa50d4 TT |
11407 | for element in $INCINTL; do |
11408 | haveit= | |
11409 | for x in $CPPFLAGS; do | |
b0cacab0 | 11410 | |
57aa50d4 TT |
11411 | acl_save_prefix="$prefix" |
11412 | prefix="$acl_final_prefix" | |
11413 | acl_save_exec_prefix="$exec_prefix" | |
11414 | exec_prefix="$acl_final_exec_prefix" | |
11415 | eval x=\"$x\" | |
11416 | exec_prefix="$acl_save_exec_prefix" | |
11417 | prefix="$acl_save_prefix" | |
b0cacab0 | 11418 | |
57aa50d4 TT |
11419 | if test "X$x" = "X$element"; then |
11420 | haveit=yes | |
11421 | break | |
11422 | fi | |
11423 | done | |
11424 | if test -z "$haveit"; then | |
11425 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | |
11426 | fi | |
11427 | done | |
b0cacab0 | 11428 | |
57aa50d4 | 11429 | fi |
b0cacab0 TT |
11430 | |
11431 | ||
57aa50d4 | 11432 | $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h |
b0cacab0 TT |
11433 | |
11434 | ||
57aa50d4 | 11435 | $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h |
b0cacab0 | 11436 | |
57aa50d4 | 11437 | fi |
b0cacab0 | 11438 | |
57aa50d4 TT |
11439 | POSUB=po |
11440 | fi | |
b0cacab0 TT |
11441 | |
11442 | ||
57aa50d4 TT |
11443 | if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then |
11444 | BUILD_INCLUDED_LIBINTL=yes | |
11445 | fi | |
b0cacab0 TT |
11446 | |
11447 | ||
11448 | ||
11449 | ||
11450 | ||
57aa50d4 TT |
11451 | nls_cv_header_intl= |
11452 | nls_cv_header_libgt= | |
b0cacab0 | 11453 | |
57aa50d4 | 11454 | DATADIRNAME=share |
762c7c65 | 11455 | |
106ad96d | 11456 | |
57aa50d4 | 11457 | INSTOBJEXT=.mo |
106ad96d | 11458 | |
e7cc6f7d | 11459 | |
57aa50d4 | 11460 | GENCAT=gencat |
e7cc6f7d | 11461 | |
3d05802f | 11462 | |
93613951 TT |
11463 | INTLOBJS= |
11464 | if test "$USE_INCLUDED_LIBINTL" = yes; then | |
57aa50d4 TT |
11465 | INTLOBJS="\$(GETTOBJS)" |
11466 | fi | |
6ec9ef18 | 11467 | |
d7f45af8 | 11468 | |
57aa50d4 | 11469 | INTL_LIBTOOL_SUFFIX_PREFIX= |
50e1e10f | 11470 | |
50e1e10f | 11471 | |
b0cacab0 | 11472 | |
57aa50d4 | 11473 | INTLLIBS="$LIBINTL" |
e1052144 | 11474 | |
b0cacab0 | 11475 | |
93636bde | 11476 | |
93636bde | 11477 | |
b0cacab0 | 11478 | |
93636bde | 11479 | |
50e1e10f | 11480 | |
57aa50d4 TT |
11481 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
11482 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
11483 | set x ${MAKE-make} | |
11484 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
d6a4bcb5 | 11485 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
57aa50d4 TT |
11486 | $as_echo_n "(cached) " >&6 |
11487 | else | |
11488 | cat >conftest.make <<\_ACEOF | |
11489 | SHELL = /bin/sh | |
11490 | all: | |
11491 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
b0cacab0 | 11492 | _ACEOF |
d6a4bcb5 | 11493 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
57aa50d4 TT |
11494 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
11495 | *@@@%%%=?*=@@@%%%*) | |
11496 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
11497 | *) | |
11498 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
e1052144 | 11499 | esac |
57aa50d4 | 11500 | rm -f conftest.make |
b0cacab0 | 11501 | fi |
57aa50d4 TT |
11502 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
11503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
11504 | $as_echo "yes" >&6; } | |
11505 | SET_MAKE= | |
b0b9c4de | 11506 | else |
57aa50d4 TT |
11507 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11508 | $as_echo "no" >&6; } | |
11509 | SET_MAKE="MAKE=${MAKE-make}" | |
b0cacab0 | 11510 | fi |
b0cacab0 | 11511 | |
57aa50d4 TT |
11512 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5 |
11513 | $as_echo_n "checking for GNU make... " >&6; } | |
d6a4bcb5 | 11514 | if ${_cv_gnu_make_command+:} false; then : |
57aa50d4 | 11515 | $as_echo_n "(cached) " >&6 |
39fd3d4f | 11516 | else |
57aa50d4 | 11517 | _cv_gnu_make_command='' ; |
e703ba4b | 11518 | if test -n "$FORCE_NATIVE_MAKE" ; then |
f3bc1561 TT |
11519 | MAKES="make" |
11520 | else | |
11521 | MAKES="make gmake gnumake" | |
11522 | fi | |
11523 | for a in "$MAKE" $MAKES ; do | |
57aa50d4 TT |
11524 | if test -z "$a" ; then continue ; fi ; |
11525 | if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then | |
11526 | _cv_gnu_make_command=$a ; | |
11527 | break; | |
11528 | fi | |
11529 | done ; | |
50e1e10f | 11530 | |
50e1e10f | 11531 | fi |
57aa50d4 TT |
11532 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5 |
11533 | $as_echo "$_cv_gnu_make_command" >&6; } ; | |
11534 | if test "x$_cv_gnu_make_command" != "x" ; then | |
11535 | ifGNUmake='' ; | |
11536 | ifNotGNUmake='#' ; | |
11537 | else | |
11538 | ifGNUmake='#' ; | |
11539 | ifNotGNUmake='' ; | |
11540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5 | |
11541 | $as_echo "\"Not found\"" >&6; }; | |
11542 | fi | |
50e1e10f | 11543 | |
50e1e10f | 11544 | |
b0cacab0 | 11545 | |
57aa50d4 TT |
11546 | # Extract the first word of "ln", so it can be a program name with args. |
11547 | set dummy ln; ac_word=$2 | |
11548 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11549 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6a4bcb5 | 11550 | if ${ac_cv_path_LN+:} false; then : |
39fd3d4f | 11551 | $as_echo_n "(cached) " >&6 |
fff45483 | 11552 | else |
57aa50d4 TT |
11553 | case $LN in |
11554 | [\\/]* | ?:[\\/]*) | |
11555 | ac_cv_path_LN="$LN" # Let the user override the test with a path. | |
11556 | ;; | |
11557 | *) | |
11558 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11559 | for as_dir in $PATH | |
11560 | do | |
11561 | IFS=$as_save_IFS | |
11562 | test -z "$as_dir" && as_dir=. | |
11563 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d6a4bcb5 | 11564 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
57aa50d4 TT |
11565 | ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" |
11566 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11567 | break 2 | |
11568 | fi | |
11569 | done | |
11570 | done | |
11571 | IFS=$as_save_IFS | |
6c65d251 | 11572 | |
57aa50d4 TT |
11573 | test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln" |
11574 | ;; | |
e1052144 | 11575 | esac |
fff45483 | 11576 | fi |
57aa50d4 TT |
11577 | LN=$ac_cv_path_LN |
11578 | if test -n "$LN"; then | |
11579 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 | |
11580 | $as_echo "$LN" >&6; } | |
11581 | else | |
11582 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11583 | $as_echo "no" >&6; } | |
fff45483 | 11584 | fi |
e1052144 | 11585 | |
fff45483 | 11586 | |
57aa50d4 TT |
11587 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
11588 | $as_echo_n "checking whether ln -s works... " >&6; } | |
11589 | LN_S=$as_ln_s | |
11590 | if test "$LN_S" = "ln -s"; then | |
11591 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
11592 | $as_echo "yes" >&6; } | |
11593 | else | |
11594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 | |
11595 | $as_echo "no, using $LN_S" >&6; } | |
fff45483 | 11596 | fi |
6c65d251 | 11597 | |
57aa50d4 TT |
11598 | # Extract the first word of "mv", so it can be a program name with args. |
11599 | set dummy mv; ac_word=$2 | |
11600 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11601 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6a4bcb5 | 11602 | if ${ac_cv_path_MV+:} false; then : |
39fd3d4f | 11603 | $as_echo_n "(cached) " >&6 |
fff45483 | 11604 | else |
57aa50d4 TT |
11605 | case $MV in |
11606 | [\\/]* | ?:[\\/]*) | |
11607 | ac_cv_path_MV="$MV" # Let the user override the test with a path. | |
11608 | ;; | |
11609 | *) | |
11610 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11611 | for as_dir in $PATH | |
11612 | do | |
11613 | IFS=$as_save_IFS | |
11614 | test -z "$as_dir" && as_dir=. | |
11615 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d6a4bcb5 | 11616 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
57aa50d4 TT |
11617 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
11618 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11619 | break 2 | |
11620 | fi | |
11621 | done | |
11622 | done | |
11623 | IFS=$as_save_IFS | |
6c65d251 | 11624 | |
57aa50d4 TT |
11625 | test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" |
11626 | ;; | |
e1052144 | 11627 | esac |
b0cacab0 | 11628 | fi |
57aa50d4 TT |
11629 | MV=$ac_cv_path_MV |
11630 | if test -n "$MV"; then | |
11631 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 | |
11632 | $as_echo "$MV" >&6; } | |
b0b9c4de | 11633 | else |
57aa50d4 TT |
11634 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11635 | $as_echo "no" >&6; } | |
39fd3d4f SJR |
11636 | fi |
11637 | ||
39fd3d4f | 11638 | |
57aa50d4 TT |
11639 | # Extract the first word of "cp", so it can be a program name with args. |
11640 | set dummy cp; ac_word=$2 | |
11641 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11642 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6a4bcb5 | 11643 | if ${ac_cv_path_CP+:} false; then : |
39fd3d4f | 11644 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 11645 | else |
57aa50d4 TT |
11646 | case $CP in |
11647 | [\\/]* | ?:[\\/]*) | |
11648 | ac_cv_path_CP="$CP" # Let the user override the test with a path. | |
11649 | ;; | |
11650 | *) | |
11651 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11652 | for as_dir in $PATH | |
11653 | do | |
11654 | IFS=$as_save_IFS | |
11655 | test -z "$as_dir" && as_dir=. | |
11656 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d6a4bcb5 | 11657 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
57aa50d4 TT |
11658 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" |
11659 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11660 | break 2 | |
11661 | fi | |
11662 | done | |
11663 | done | |
11664 | IFS=$as_save_IFS | |
39fd3d4f | 11665 | |
57aa50d4 TT |
11666 | test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" |
11667 | ;; | |
e1052144 | 11668 | esac |
b0b9c4de | 11669 | fi |
57aa50d4 TT |
11670 | CP=$ac_cv_path_CP |
11671 | if test -n "$CP"; then | |
11672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 | |
11673 | $as_echo "$CP" >&6; } | |
b0cacab0 | 11674 | else |
57aa50d4 TT |
11675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11676 | $as_echo "no" >&6; } | |
b0b9c4de | 11677 | fi |
b0b9c4de | 11678 | |
6c65d251 | 11679 | |
57aa50d4 TT |
11680 | # Extract the first word of "rm", so it can be a program name with args. |
11681 | set dummy rm; ac_word=$2 | |
11682 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11683 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6a4bcb5 | 11684 | if ${ac_cv_path_RM+:} false; then : |
39fd3d4f | 11685 | $as_echo_n "(cached) " >&6 |
6928adc9 | 11686 | else |
57aa50d4 TT |
11687 | case $RM in |
11688 | [\\/]* | ?:[\\/]*) | |
11689 | ac_cv_path_RM="$RM" # Let the user override the test with a path. | |
11690 | ;; | |
11691 | *) | |
11692 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11693 | for as_dir in $PATH | |
11694 | do | |
11695 | IFS=$as_save_IFS | |
11696 | test -z "$as_dir" && as_dir=. | |
11697 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d6a4bcb5 | 11698 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
57aa50d4 TT |
11699 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
11700 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11701 | break 2 | |
11702 | fi | |
11703 | done | |
b0cacab0 | 11704 | done |
57aa50d4 | 11705 | IFS=$as_save_IFS |
6c65d251 | 11706 | |
57aa50d4 TT |
11707 | test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" |
11708 | ;; | |
e1052144 | 11709 | esac |
6928adc9 | 11710 | fi |
57aa50d4 TT |
11711 | RM=$ac_cv_path_RM |
11712 | if test -n "$RM"; then | |
11713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 | |
11714 | $as_echo "$RM" >&6; } | |
b0cacab0 | 11715 | else |
57aa50d4 TT |
11716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11717 | $as_echo "no" >&6; } | |
6928adc9 | 11718 | fi |
6928adc9 | 11719 | |
6c65d251 | 11720 | |
57aa50d4 TT |
11721 | # Extract the first word of "chmod", so it can be a program name with args. |
11722 | set dummy chmod; ac_word=$2 | |
11723 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11724 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6a4bcb5 | 11725 | if ${ac_cv_path_CHMOD+:} false; then : |
39fd3d4f | 11726 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 11727 | else |
57aa50d4 TT |
11728 | case $CHMOD in |
11729 | [\\/]* | ?:[\\/]*) | |
11730 | ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. | |
11731 | ;; | |
11732 | *) | |
11733 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11734 | for as_dir in $PATH | |
11735 | do | |
11736 | IFS=$as_save_IFS | |
11737 | test -z "$as_dir" && as_dir=. | |
11738 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d6a4bcb5 | 11739 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
57aa50d4 TT |
11740 | ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" |
11741 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11742 | break 2 | |
11743 | fi | |
11744 | done | |
11745 | done | |
11746 | IFS=$as_save_IFS | |
39fd3d4f | 11747 | |
57aa50d4 TT |
11748 | test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":" |
11749 | ;; | |
e1052144 | 11750 | esac |
b0cacab0 | 11751 | fi |
57aa50d4 TT |
11752 | CHMOD=$ac_cv_path_CHMOD |
11753 | if test -n "$CHMOD"; then | |
11754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 | |
11755 | $as_echo "$CHMOD" >&6; } | |
b0cacab0 | 11756 | else |
57aa50d4 TT |
11757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11758 | $as_echo "no" >&6; } | |
b0cacab0 | 11759 | fi |
39fd3d4f | 11760 | |
b0cacab0 | 11761 | |
57aa50d4 TT |
11762 | for ac_prog in gawk mawk nawk awk |
11763 | do | |
11764 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
11765 | set dummy $ac_prog; ac_word=$2 | |
11766 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11767 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6a4bcb5 | 11768 | if ${ac_cv_prog_AWK+:} false; then : |
39fd3d4f | 11769 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 11770 | else |
57aa50d4 TT |
11771 | if test -n "$AWK"; then |
11772 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
b0cacab0 | 11773 | else |
57aa50d4 TT |
11774 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11775 | for as_dir in $PATH | |
11776 | do | |
11777 | IFS=$as_save_IFS | |
11778 | test -z "$as_dir" && as_dir=. | |
11779 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d6a4bcb5 | 11780 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
57aa50d4 TT |
11781 | ac_cv_prog_AWK="$ac_prog" |
11782 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11783 | break 2 | |
11784 | fi | |
11785 | done | |
11786 | done | |
11787 | IFS=$as_save_IFS | |
b0cacab0 | 11788 | |
b0cacab0 | 11789 | fi |
57aa50d4 TT |
11790 | fi |
11791 | AWK=$ac_cv_prog_AWK | |
11792 | if test -n "$AWK"; then | |
11793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
11794 | $as_echo "$AWK" >&6; } | |
b0cacab0 | 11795 | else |
57aa50d4 TT |
11796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11797 | $as_echo "no" >&6; } | |
b0cacab0 | 11798 | fi |
b0cacab0 | 11799 | |
b0cacab0 | 11800 | |
57aa50d4 TT |
11801 | test -n "$AWK" && break |
11802 | done | |
b0cacab0 | 11803 | |
57aa50d4 TT |
11804 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
11805 | $as_echo_n "checking for egrep... " >&6; } | |
d6a4bcb5 | 11806 | if ${ac_cv_path_EGREP+:} false; then : |
57aa50d4 | 11807 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 11808 | else |
57aa50d4 TT |
11809 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
11810 | then ac_cv_path_EGREP="$GREP -E" | |
11811 | else | |
11812 | if test -z "$EGREP"; then | |
11813 | ac_path_EGREP_found=false | |
11814 | # Loop through the user's path and test for each of PROGNAME-LIST | |
11815 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11816 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
11817 | do | |
11818 | IFS=$as_save_IFS | |
11819 | test -z "$as_dir" && as_dir=. | |
11820 | for ac_prog in egrep; do | |
11821 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11822 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
d6a4bcb5 | 11823 | as_fn_executable_p "$ac_path_EGREP" || continue |
57aa50d4 TT |
11824 | # Check for GNU ac_path_EGREP and select it if it is found. |
11825 | # Check for GNU $ac_path_EGREP | |
11826 | case `"$ac_path_EGREP" --version 2>&1` in | |
11827 | *GNU*) | |
11828 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
11829 | *) | |
11830 | ac_count=0 | |
11831 | $as_echo_n 0123456789 >"conftest.in" | |
11832 | while : | |
11833 | do | |
11834 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
11835 | mv "conftest.tmp" "conftest.in" | |
11836 | cp "conftest.in" "conftest.nl" | |
11837 | $as_echo 'EGREP' >> "conftest.nl" | |
11838 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
11839 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
11840 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
11841 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
11842 | # Best one so far, save it but keep looking for a better one | |
11843 | ac_cv_path_EGREP="$ac_path_EGREP" | |
11844 | ac_path_EGREP_max=$ac_count | |
11845 | fi | |
11846 | # 10*(2^10) chars as input seems more than enough | |
11847 | test $ac_count -gt 10 && break | |
11848 | done | |
11849 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
e1052144 | 11850 | esac |
e1052144 | 11851 | |
57aa50d4 TT |
11852 | $ac_path_EGREP_found && break 3 |
11853 | done | |
b0cacab0 | 11854 | done |
57aa50d4 TT |
11855 | done |
11856 | IFS=$as_save_IFS | |
11857 | if test -z "$ac_cv_path_EGREP"; then | |
d6a4bcb5 | 11858 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
57aa50d4 | 11859 | fi |
b0cacab0 | 11860 | else |
57aa50d4 | 11861 | ac_cv_path_EGREP=$EGREP |
b0cacab0 | 11862 | fi |
e1052144 | 11863 | |
57aa50d4 | 11864 | fi |
b0cacab0 | 11865 | fi |
57aa50d4 TT |
11866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
11867 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
11868 | EGREP="$ac_cv_path_EGREP" | |
e1052144 | 11869 | |
b0cacab0 | 11870 | |
57aa50d4 TT |
11871 | # Extract the first word of "sed", so it can be a program name with args. |
11872 | set dummy sed; ac_word=$2 | |
11873 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11874 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6a4bcb5 | 11875 | if ${ac_cv_path_SED+:} false; then : |
57aa50d4 | 11876 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 11877 | else |
57aa50d4 TT |
11878 | case $SED in |
11879 | [\\/]* | ?:[\\/]*) | |
11880 | ac_cv_path_SED="$SED" # Let the user override the test with a path. | |
11881 | ;; | |
11882 | *) | |
11883 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11884 | for as_dir in $PATH | |
11885 | do | |
11886 | IFS=$as_save_IFS | |
11887 | test -z "$as_dir" && as_dir=. | |
11888 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d6a4bcb5 | 11889 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
57aa50d4 TT |
11890 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
11891 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11892 | break 2 | |
11893 | fi | |
b0cacab0 | 11894 | done |
57aa50d4 TT |
11895 | done |
11896 | IFS=$as_save_IFS | |
b0cacab0 | 11897 | |
57aa50d4 TT |
11898 | test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" |
11899 | ;; | |
b0cacab0 | 11900 | esac |
57aa50d4 TT |
11901 | fi |
11902 | SED=$ac_cv_path_SED | |
11903 | if test -n "$SED"; then | |
11904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 | |
11905 | $as_echo "$SED" >&6; } | |
b0cacab0 | 11906 | else |
57aa50d4 TT |
11907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11908 | $as_echo "no" >&6; } | |
b0cacab0 | 11909 | fi |
e1052144 | 11910 | |
b0cacab0 | 11911 | |
57aa50d4 TT |
11912 | # Extract the first word of "perl", so it can be a program name with args. |
11913 | set dummy perl; ac_word=$2 | |
11914 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11915 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6a4bcb5 | 11916 | if ${ac_cv_path_PERL+:} false; then : |
57aa50d4 TT |
11917 | $as_echo_n "(cached) " >&6 |
11918 | else | |
11919 | case $PERL in | |
11920 | [\\/]* | ?:[\\/]*) | |
11921 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. | |
11922 | ;; | |
11923 | *) | |
11924 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11925 | for as_dir in $PATH | |
11926 | do | |
11927 | IFS=$as_save_IFS | |
11928 | test -z "$as_dir" && as_dir=. | |
11929 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d6a4bcb5 | 11930 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
57aa50d4 TT |
11931 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
11932 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11933 | break 2 | |
11934 | fi | |
b0cacab0 | 11935 | done |
57aa50d4 TT |
11936 | done |
11937 | IFS=$as_save_IFS | |
11938 | ||
11939 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl" | |
11940 | ;; | |
b0cacab0 | 11941 | esac |
57aa50d4 TT |
11942 | fi |
11943 | PERL=$ac_cv_path_PERL | |
11944 | if test -n "$PERL"; then | |
11945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 | |
11946 | $as_echo "$PERL" >&6; } | |
b0cacab0 | 11947 | else |
57aa50d4 TT |
11948 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11949 | $as_echo "no" >&6; } | |
11950 | fi | |
b0cacab0 | 11951 | |
b0cacab0 | 11952 | |
57aa50d4 TT |
11953 | # Extract the first word of "ldconfig", so it can be a program name with args. |
11954 | set dummy ldconfig; ac_word=$2 | |
11955 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11956 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6a4bcb5 | 11957 | if ${ac_cv_path_LDCONFIG+:} false; then : |
57aa50d4 | 11958 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 11959 | else |
57aa50d4 TT |
11960 | case $LDCONFIG in |
11961 | [\\/]* | ?:[\\/]*) | |
11962 | ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path. | |
11963 | ;; | |
11964 | *) | |
11965 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11966 | for as_dir in $PATH | |
11967 | do | |
11968 | IFS=$as_save_IFS | |
11969 | test -z "$as_dir" && as_dir=. | |
11970 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d6a4bcb5 | 11971 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
57aa50d4 TT |
11972 | ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext" |
11973 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11974 | break 2 | |
11975 | fi | |
11976 | done | |
11977 | done | |
11978 | IFS=$as_save_IFS | |
b0cacab0 | 11979 | |
57aa50d4 TT |
11980 | test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":" |
11981 | ;; | |
11982 | esac | |
39fd3d4f | 11983 | fi |
57aa50d4 TT |
11984 | LDCONFIG=$ac_cv_path_LDCONFIG |
11985 | if test -n "$LDCONFIG"; then | |
11986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5 | |
11987 | $as_echo "$LDCONFIG" >&6; } | |
11988 | else | |
11989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11990 | $as_echo "no" >&6; } | |
b0cacab0 | 11991 | fi |
39fd3d4f SJR |
11992 | |
11993 | ||
57aa50d4 TT |
11994 | if test -n "$ac_tool_prefix"; then |
11995 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
11996 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
11997 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11998 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6a4bcb5 | 11999 | if ${ac_cv_prog_AR+:} false; then : |
57aa50d4 TT |
12000 | $as_echo_n "(cached) " >&6 |
12001 | else | |
12002 | if test -n "$AR"; then | |
12003 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
12004 | else | |
12005 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12006 | for as_dir in $PATH | |
12007 | do | |
12008 | IFS=$as_save_IFS | |
12009 | test -z "$as_dir" && as_dir=. | |
12010 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d6a4bcb5 | 12011 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
57aa50d4 TT |
12012 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
12013 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12014 | break 2 | |
12015 | fi | |
12016 | done | |
12017 | done | |
12018 | IFS=$as_save_IFS | |
39fd3d4f | 12019 | |
57aa50d4 TT |
12020 | fi |
12021 | fi | |
12022 | AR=$ac_cv_prog_AR | |
12023 | if test -n "$AR"; then | |
12024 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
12025 | $as_echo "$AR" >&6; } | |
12026 | else | |
12027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12028 | $as_echo "no" >&6; } | |
12029 | fi | |
39fd3d4f | 12030 | |
b0cacab0 | 12031 | |
57aa50d4 TT |
12032 | fi |
12033 | if test -z "$ac_cv_prog_AR"; then | |
12034 | ac_ct_AR=$AR | |
12035 | # Extract the first word of "ar", so it can be a program name with args. | |
12036 | set dummy ar; ac_word=$2 | |
12037 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12038 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6a4bcb5 | 12039 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
39fd3d4f | 12040 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 12041 | else |
57aa50d4 TT |
12042 | if test -n "$ac_ct_AR"; then |
12043 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
b0cacab0 | 12044 | else |
57aa50d4 TT |
12045 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12046 | for as_dir in $PATH | |
12047 | do | |
12048 | IFS=$as_save_IFS | |
12049 | test -z "$as_dir" && as_dir=. | |
12050 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d6a4bcb5 | 12051 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
57aa50d4 TT |
12052 | ac_cv_prog_ac_ct_AR="ar" |
12053 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12054 | break 2 | |
12055 | fi | |
12056 | done | |
12057 | done | |
12058 | IFS=$as_save_IFS | |
b0cacab0 | 12059 | |
b0cacab0 | 12060 | fi |
57aa50d4 TT |
12061 | fi |
12062 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
12063 | if test -n "$ac_ct_AR"; then | |
12064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
12065 | $as_echo "$ac_ct_AR" >&6; } | |
b0cacab0 | 12066 | else |
57aa50d4 TT |
12067 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12068 | $as_echo "no" >&6; } | |
12069 | fi | |
b0cacab0 | 12070 | |
57aa50d4 TT |
12071 | if test "x$ac_ct_AR" = x; then |
12072 | AR="ar" | |
12073 | else | |
12074 | case $cross_compiling:$ac_tool_warned in | |
12075 | yes:) | |
12076 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
12077 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
12078 | ac_tool_warned=yes ;; | |
e1052144 | 12079 | esac |
57aa50d4 TT |
12080 | AR=$ac_ct_AR |
12081 | fi | |
b0cacab0 | 12082 | else |
57aa50d4 | 12083 | AR="$ac_cv_prog_AR" |
b0cacab0 | 12084 | fi |
e1052144 | 12085 | |
57aa50d4 TT |
12086 | if test -n "$ac_tool_prefix"; then |
12087 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
12088 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
12089 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12090 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6a4bcb5 | 12091 | if ${ac_cv_prog_RANLIB+:} false; then : |
57aa50d4 | 12092 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 12093 | else |
57aa50d4 TT |
12094 | if test -n "$RANLIB"; then |
12095 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
12096 | else | |
12097 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12098 | for as_dir in $PATH | |
12099 | do | |
12100 | IFS=$as_save_IFS | |
12101 | test -z "$as_dir" && as_dir=. | |
12102 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d6a4bcb5 | 12103 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
57aa50d4 TT |
12104 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
12105 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12106 | break 2 | |
12107 | fi | |
12108 | done | |
b0cacab0 | 12109 | done |
57aa50d4 | 12110 | IFS=$as_save_IFS |
b0cacab0 | 12111 | |
b0cacab0 | 12112 | fi |
57aa50d4 TT |
12113 | fi |
12114 | RANLIB=$ac_cv_prog_RANLIB | |
12115 | if test -n "$RANLIB"; then | |
12116 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
12117 | $as_echo "$RANLIB" >&6; } | |
b0cacab0 | 12118 | else |
57aa50d4 TT |
12119 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12120 | $as_echo "no" >&6; } | |
b0cacab0 | 12121 | fi |
b0cacab0 | 12122 | |
b0cacab0 | 12123 | |
57aa50d4 TT |
12124 | fi |
12125 | if test -z "$ac_cv_prog_RANLIB"; then | |
12126 | ac_ct_RANLIB=$RANLIB | |
12127 | # Extract the first word of "ranlib", so it can be a program name with args. | |
12128 | set dummy ranlib; ac_word=$2 | |
12129 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12130 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6a4bcb5 | 12131 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
57aa50d4 TT |
12132 | $as_echo_n "(cached) " >&6 |
12133 | else | |
12134 | if test -n "$ac_ct_RANLIB"; then | |
12135 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
b0cacab0 | 12136 | else |
57aa50d4 TT |
12137 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12138 | for as_dir in $PATH | |
12139 | do | |
12140 | IFS=$as_save_IFS | |
12141 | test -z "$as_dir" && as_dir=. | |
12142 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d6a4bcb5 | 12143 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
57aa50d4 TT |
12144 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
12145 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12146 | break 2 | |
12147 | fi | |
12148 | done | |
12149 | done | |
12150 | IFS=$as_save_IFS | |
29a5deed | 12151 | |
b0cacab0 | 12152 | fi |
57aa50d4 TT |
12153 | fi |
12154 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
12155 | if test -n "$ac_ct_RANLIB"; then | |
12156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
12157 | $as_echo "$ac_ct_RANLIB" >&6; } | |
b0cacab0 | 12158 | else |
57aa50d4 TT |
12159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12160 | $as_echo "no" >&6; } | |
12161 | fi | |
b0cacab0 | 12162 | |
57aa50d4 TT |
12163 | if test "x$ac_ct_RANLIB" = x; then |
12164 | RANLIB=":" | |
b0cacab0 | 12165 | else |
57aa50d4 TT |
12166 | case $cross_compiling:$ac_tool_warned in |
12167 | yes:) | |
12168 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
12169 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
12170 | ac_tool_warned=yes ;; | |
e1052144 | 12171 | esac |
57aa50d4 TT |
12172 | RANLIB=$ac_ct_RANLIB |
12173 | fi | |
b0cacab0 | 12174 | else |
57aa50d4 | 12175 | RANLIB="$ac_cv_prog_RANLIB" |
b0cacab0 | 12176 | fi |
e1052144 | 12177 | |
57aa50d4 TT |
12178 | if test -n "$ac_tool_prefix"; then |
12179 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
12180 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
12181 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12182 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6a4bcb5 | 12183 | if ${ac_cv_prog_STRIP+:} false; then : |
57aa50d4 | 12184 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 12185 | else |
57aa50d4 TT |
12186 | if test -n "$STRIP"; then |
12187 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
12188 | else | |
12189 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12190 | for as_dir in $PATH | |
12191 | do | |
12192 | IFS=$as_save_IFS | |
12193 | test -z "$as_dir" && as_dir=. | |
12194 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d6a4bcb5 | 12195 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
57aa50d4 TT |
12196 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
12197 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12198 | break 2 | |
12199 | fi | |
12200 | done | |
12201 | done | |
12202 | IFS=$as_save_IFS | |
b0cacab0 | 12203 | |
b0cacab0 | 12204 | fi |
b0cacab0 | 12205 | fi |
57aa50d4 TT |
12206 | STRIP=$ac_cv_prog_STRIP |
12207 | if test -n "$STRIP"; then | |
12208 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
12209 | $as_echo "$STRIP" >&6; } | |
12210 | else | |
12211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12212 | $as_echo "no" >&6; } | |
b0cacab0 | 12213 | fi |
e1052144 | 12214 | |
b0cacab0 | 12215 | |
57aa50d4 TT |
12216 | fi |
12217 | if test -z "$ac_cv_prog_STRIP"; then | |
12218 | ac_ct_STRIP=$STRIP | |
12219 | # Extract the first word of "strip", so it can be a program name with args. | |
12220 | set dummy strip; ac_word=$2 | |
12221 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12222 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6a4bcb5 | 12223 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
39fd3d4f | 12224 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 12225 | else |
57aa50d4 TT |
12226 | if test -n "$ac_ct_STRIP"; then |
12227 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
12228 | else | |
12229 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12230 | for as_dir in $PATH | |
12231 | do | |
12232 | IFS=$as_save_IFS | |
12233 | test -z "$as_dir" && as_dir=. | |
12234 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d6a4bcb5 | 12235 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
57aa50d4 TT |
12236 | ac_cv_prog_ac_ct_STRIP="strip" |
12237 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12238 | break 2 | |
12239 | fi | |
12240 | done | |
12241 | done | |
12242 | IFS=$as_save_IFS | |
b0cacab0 | 12243 | |
b0cacab0 | 12244 | fi |
57aa50d4 TT |
12245 | fi |
12246 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
12247 | if test -n "$ac_ct_STRIP"; then | |
12248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
12249 | $as_echo "$ac_ct_STRIP" >&6; } | |
b0cacab0 | 12250 | else |
57aa50d4 TT |
12251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12252 | $as_echo "no" >&6; } | |
12253 | fi | |
b0cacab0 | 12254 | |
57aa50d4 TT |
12255 | if test "x$ac_ct_STRIP" = x; then |
12256 | STRIP=":" | |
b0cacab0 | 12257 | else |
57aa50d4 TT |
12258 | case $cross_compiling:$ac_tool_warned in |
12259 | yes:) | |
12260 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
12261 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
12262 | ac_tool_warned=yes ;; | |
e1052144 | 12263 | esac |
57aa50d4 TT |
12264 | STRIP=$ac_ct_STRIP |
12265 | fi | |
b0cacab0 | 12266 | else |
57aa50d4 | 12267 | STRIP="$ac_cv_prog_STRIP" |
b0cacab0 | 12268 | fi |
e1052144 | 12269 | |
57aa50d4 TT |
12270 | # Extract the first word of "makeinfo", so it can be a program name with args. |
12271 | set dummy makeinfo; ac_word=$2 | |
12272 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12273 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6a4bcb5 | 12274 | if ${ac_cv_prog_MAKEINFO+:} false; then : |
57aa50d4 | 12275 | $as_echo_n "(cached) " >&6 |
07a0db15 | 12276 | else |
57aa50d4 TT |
12277 | if test -n "$MAKEINFO"; then |
12278 | ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. | |
12279 | else | |
12280 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12281 | for as_dir in $PATH | |
12282 | do | |
12283 | IFS=$as_save_IFS | |
12284 | test -z "$as_dir" && as_dir=. | |
12285 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d6a4bcb5 | 12286 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
57aa50d4 TT |
12287 | ac_cv_prog_MAKEINFO="makeinfo" |
12288 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12289 | break 2 | |
12290 | fi | |
12291 | done | |
12292 | done | |
12293 | IFS=$as_save_IFS | |
b0cacab0 | 12294 | |
b0cacab0 TT |
12295 | fi |
12296 | fi | |
57aa50d4 TT |
12297 | MAKEINFO=$ac_cv_prog_MAKEINFO |
12298 | if test -n "$MAKEINFO"; then | |
12299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 | |
12300 | $as_echo "$MAKEINFO" >&6; } | |
b0cacab0 | 12301 | else |
57aa50d4 TT |
12302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12303 | $as_echo "no" >&6; } | |
07a0db15 | 12304 | fi |
29a5deed TT |
12305 | |
12306 | ||
57aa50d4 | 12307 | if test "_$MAKEINFO" = "_"; then |
ca1de98a | 12308 | MAKEINFO="echo Makeinfo is missing. Info documentation will not be built." |
57aa50d4 TT |
12309 | else |
12310 | case "$MAKEINFO" in | |
12311 | */missing.*) | |
12312 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | |
12313 | *** Makeinfo is missing. Info documentation will not be built." >&5 | |
12314 | $as_echo "$as_me: WARNING: | |
12315 | *** Makeinfo is missing. Info documentation will not be built." >&2;} | |
12316 | ;; | |
12317 | *) | |
12318 | ;; | |
12319 | esac | |
b0cacab0 | 12320 | fi |
29a5deed | 12321 | |
b0cacab0 | 12322 | |
57aa50d4 TT |
12323 | # See if we need a separate native compiler. |
12324 | if test $cross_compiling = no; then | |
12325 | BUILD_CC="$CC" | |
b0cacab0 | 12326 | |
b0cacab0 | 12327 | else |
57aa50d4 TT |
12328 | for ac_prog in gcc cc |
12329 | do | |
12330 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
12331 | set dummy $ac_prog; ac_word=$2 | |
12332 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12333 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6a4bcb5 | 12334 | if ${ac_cv_prog_BUILD_CC+:} false; then : |
57aa50d4 | 12335 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 12336 | else |
57aa50d4 TT |
12337 | if test -n "$BUILD_CC"; then |
12338 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. | |
12339 | else | |
12340 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12341 | for as_dir in $PATH | |
12342 | do | |
12343 | IFS=$as_save_IFS | |
12344 | test -z "$as_dir" && as_dir=. | |
12345 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d6a4bcb5 | 12346 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
57aa50d4 TT |
12347 | ac_cv_prog_BUILD_CC="$ac_prog" |
12348 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12349 | break 2 | |
12350 | fi | |
12351 | done | |
12352 | done | |
12353 | IFS=$as_save_IFS | |
b0cacab0 | 12354 | |
b0cacab0 | 12355 | fi |
57aa50d4 TT |
12356 | fi |
12357 | BUILD_CC=$ac_cv_prog_BUILD_CC | |
12358 | if test -n "$BUILD_CC"; then | |
12359 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 | |
12360 | $as_echo "$BUILD_CC" >&6; } | |
07a0db15 | 12361 | else |
57aa50d4 TT |
12362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12363 | $as_echo "no" >&6; } | |
b0cacab0 | 12364 | fi |
b0cacab0 | 12365 | |
b0cacab0 | 12366 | |
57aa50d4 TT |
12367 | test -n "$BUILD_CC" && break |
12368 | done | |
b0cacab0 | 12369 | |
57aa50d4 | 12370 | fi |
74f2c4aa | 12371 | for ac_header in dirent.h errno.h execinfo.h getopt.h malloc.h mntent.h paths.h semaphore.h setjmp.h signal.h stdarg.h stdint.h stdlib.h termios.h termio.h unistd.h utime.h attr/xattr.h linux/falloc.h linux/fd.h linux/major.h linux/loop.h net/if_dl.h netinet/in.h sys/acl.h sys/disklabel.h sys/disk.h sys/file.h sys/ioctl.h sys/key.h sys/mkdev.h sys/mman.h sys/mount.h sys/prctl.h sys/resource.h sys/select.h sys/socket.h sys/sockio.h sys/stat.h sys/syscall.h sys/sysctl.h sys/sysmacros.h sys/time.h sys/types.h sys/un.h sys/wait.h |
57aa50d4 TT |
12372 | do : |
12373 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12374 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
d6a4bcb5 | 12375 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
57aa50d4 TT |
12376 | cat >>confdefs.h <<_ACEOF |
12377 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
b0cacab0 | 12378 | _ACEOF |
b0cacab0 | 12379 | |
b0cacab0 | 12380 | fi |
e1052144 | 12381 | |
b0cacab0 | 12382 | done |
93636bde | 12383 | |
57aa50d4 TT |
12384 | for ac_header in net/if.h |
12385 | do : | |
12386 | ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" " | |
12387 | #if HAVE_SYS_TYPES_H | |
12388 | #include <sys/types.h> | |
12389 | #endif | |
12390 | #if HAVE_SYS_SOCKET | |
12391 | #include <sys/socket.h> | |
12392 | #endif | |
29a5deed | 12393 | |
57aa50d4 | 12394 | " |
d6a4bcb5 | 12395 | if test "x$ac_cv_header_net_if_h" = xyes; then : |
57aa50d4 TT |
12396 | cat >>confdefs.h <<_ACEOF |
12397 | #define HAVE_NET_IF_H 1 | |
b0cacab0 | 12398 | _ACEOF |
b0cacab0 | 12399 | |
b0cacab0 | 12400 | fi |
e1052144 | 12401 | |
b0cacab0 | 12402 | done |
b0cacab0 | 12403 | |
57aa50d4 TT |
12404 | for ac_func in vprintf |
12405 | do : | |
12406 | ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" | |
d6a4bcb5 | 12407 | if test "x$ac_cv_func_vprintf" = xyes; then : |
57aa50d4 TT |
12408 | cat >>confdefs.h <<_ACEOF |
12409 | #define HAVE_VPRINTF 1 | |
b0cacab0 | 12410 | _ACEOF |
b0cacab0 | 12411 | |
57aa50d4 | 12412 | ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" |
d6a4bcb5 | 12413 | if test "x$ac_cv_func__doprnt" = xyes; then : |
b0cacab0 | 12414 | |
57aa50d4 | 12415 | $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h |
b0cacab0 | 12416 | |
50e1e10f | 12417 | fi |
29a5deed | 12418 | |
57aa50d4 TT |
12419 | fi |
12420 | done | |
29a5deed TT |
12421 | |
12422 | ||
57aa50d4 TT |
12423 | ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h> |
12424 | " | |
d6a4bcb5 | 12425 | if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then : |
d1154eb4 TT |
12426 | |
12427 | $as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h | |
50e1e10f | 12428 | |
2873927d TT |
12429 | fi |
12430 | ||
12431 | ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default" | |
12432 | if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then : | |
12433 | ||
12434 | cat >>confdefs.h <<_ACEOF | |
12435 | #define HAVE_STRUCT_STAT_ST_ATIM 1 | |
12436 | _ACEOF | |
12437 | ||
12438 | ||
b0cacab0 | 12439 | fi |
93636bde | 12440 | |
57aa50d4 TT |
12441 | ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h> |
12442 | " | |
d6a4bcb5 | 12443 | if test "x$ac_cv_type_ssize_t" = xyes; then : |
d1154eb4 TT |
12444 | |
12445 | $as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h | |
b0cacab0 | 12446 | |
57aa50d4 | 12447 | fi |
b0cacab0 | 12448 | |
57aa50d4 TT |
12449 | ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h> |
12450 | " | |
d6a4bcb5 | 12451 | if test "x$ac_cv_have_decl_llseek" = xyes; then : |
d1154eb4 TT |
12452 | |
12453 | $as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h | |
b0cacab0 | 12454 | |
b0cacab0 | 12455 | fi |
e1052144 | 12456 | |
57aa50d4 TT |
12457 | ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE |
12458 | #define _LARGEFILE64_SOURCE | |
12459 | #include <unistd.h> | |
12460 | " | |
d6a4bcb5 | 12461 | if test "x$ac_cv_have_decl_lseek64" = xyes; then : |
d1154eb4 TT |
12462 | |
12463 | $as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h | |
b0cacab0 | 12464 | |
b0cacab0 | 12465 | fi |
b0cacab0 | 12466 | |
57aa50d4 TT |
12467 | # The cast to long int works around a bug in the HP C Compiler |
12468 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
12469 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
12470 | # This bug is HP SR number 8606223364. | |
12471 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 | |
12472 | $as_echo_n "checking size of short... " >&6; } | |
d6a4bcb5 | 12473 | if ${ac_cv_sizeof_short+:} false; then : |
57aa50d4 | 12474 | $as_echo_n "(cached) " >&6 |
07a0db15 | 12475 | else |
57aa50d4 | 12476 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : |
b0cacab0 | 12477 | |
b0cacab0 | 12478 | else |
57aa50d4 TT |
12479 | if test "$ac_cv_type_short" = yes; then |
12480 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
12481 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d6a4bcb5 TB |
12482 | as_fn_error 77 "cannot compute sizeof (short) |
12483 | See \`config.log' for more details" "$LINENO" 5; } | |
57aa50d4 TT |
12484 | else |
12485 | ac_cv_sizeof_short=0 | |
12486 | fi | |
07a0db15 | 12487 | fi |
b0cacab0 | 12488 | |
b0cacab0 | 12489 | fi |
57aa50d4 TT |
12490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 |
12491 | $as_echo "$ac_cv_sizeof_short" >&6; } | |
e1052144 | 12492 | |
93636bde | 12493 | |
57aa50d4 TT |
12494 | |
12495 | cat >>confdefs.h <<_ACEOF | |
12496 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
b0cacab0 | 12497 | _ACEOF |
57aa50d4 TT |
12498 | |
12499 | ||
12500 | # The cast to long int works around a bug in the HP C Compiler | |
12501 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
12502 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
12503 | # This bug is HP SR number 8606223364. | |
12504 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 | |
12505 | $as_echo_n "checking size of int... " >&6; } | |
d6a4bcb5 | 12506 | if ${ac_cv_sizeof_int+:} false; then : |
57aa50d4 | 12507 | $as_echo_n "(cached) " >&6 |
07a0db15 | 12508 | else |
57aa50d4 | 12509 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : |
93636bde | 12510 | |
57aa50d4 TT |
12511 | else |
12512 | if test "$ac_cv_type_int" = yes; then | |
12513 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
12514 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d6a4bcb5 TB |
12515 | as_fn_error 77 "cannot compute sizeof (int) |
12516 | See \`config.log' for more details" "$LINENO" 5; } | |
57aa50d4 TT |
12517 | else |
12518 | ac_cv_sizeof_int=0 | |
12519 | fi | |
07a0db15 | 12520 | fi |
e1052144 | 12521 | |
b0cacab0 | 12522 | fi |
57aa50d4 TT |
12523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 |
12524 | $as_echo "$ac_cv_sizeof_int" >&6; } | |
e1052144 | 12525 | |
93636bde | 12526 | |
57aa50d4 TT |
12527 | |
12528 | cat >>confdefs.h <<_ACEOF | |
12529 | #define SIZEOF_INT $ac_cv_sizeof_int | |
b0cacab0 | 12530 | _ACEOF |
b0cacab0 | 12531 | |
e1052144 | 12532 | |
57aa50d4 TT |
12533 | # The cast to long int works around a bug in the HP C Compiler |
12534 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
12535 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
12536 | # This bug is HP SR number 8606223364. | |
12537 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 | |
12538 | $as_echo_n "checking size of long... " >&6; } | |
d6a4bcb5 | 12539 | if ${ac_cv_sizeof_long+:} false; then : |
57aa50d4 TT |
12540 | $as_echo_n "(cached) " >&6 |
12541 | else | |
12542 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : | |
12543 | ||
12544 | else | |
12545 | if test "$ac_cv_type_long" = yes; then | |
12546 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
39fd3d4f | 12547 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
d6a4bcb5 TB |
12548 | as_fn_error 77 "cannot compute sizeof (long) |
12549 | See \`config.log' for more details" "$LINENO" 5; } | |
29a5deed | 12550 | else |
57aa50d4 TT |
12551 | ac_cv_sizeof_long=0 |
12552 | fi | |
12553 | fi | |
39fd3d4f | 12554 | |
57aa50d4 TT |
12555 | fi |
12556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 | |
12557 | $as_echo "$ac_cv_sizeof_long" >&6; } | |
39fd3d4f | 12558 | |
57aa50d4 TT |
12559 | |
12560 | ||
12561 | cat >>confdefs.h <<_ACEOF | |
12562 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
39fd3d4f | 12563 | _ACEOF |
57aa50d4 TT |
12564 | |
12565 | ||
12566 | # The cast to long int works around a bug in the HP C Compiler | |
12567 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
12568 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
12569 | # This bug is HP SR number 8606223364. | |
12570 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 | |
12571 | $as_echo_n "checking size of long long... " >&6; } | |
d6a4bcb5 | 12572 | if ${ac_cv_sizeof_long_long+:} false; then : |
57aa50d4 | 12573 | $as_echo_n "(cached) " >&6 |
39fd3d4f | 12574 | else |
57aa50d4 | 12575 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : |
39fd3d4f | 12576 | |
57aa50d4 TT |
12577 | else |
12578 | if test "$ac_cv_type_long_long" = yes; then | |
12579 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
39fd3d4f | 12580 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
d6a4bcb5 TB |
12581 | as_fn_error 77 "cannot compute sizeof (long long) |
12582 | See \`config.log' for more details" "$LINENO" 5; } | |
39fd3d4f SJR |
12583 | else |
12584 | ac_cv_sizeof_long_long=0 | |
12585 | fi | |
12586 | fi | |
57aa50d4 | 12587 | |
39fd3d4f | 12588 | fi |
57aa50d4 | 12589 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 |
39fd3d4f SJR |
12590 | $as_echo "$ac_cv_sizeof_long_long" >&6; } |
12591 | ||
12592 | ||
12593 | ||
12594 | cat >>confdefs.h <<_ACEOF | |
12595 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
12596 | _ACEOF | |
12597 | ||
12598 | ||
cc68e8a6 TT |
12599 | # The cast to long int works around a bug in the HP C Compiler |
12600 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
12601 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
12602 | # This bug is HP SR number 8606223364. | |
12603 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 | |
12604 | $as_echo_n "checking size of off_t... " >&6; } | |
12605 | if ${ac_cv_sizeof_off_t+:} false; then : | |
12606 | $as_echo_n "(cached) " >&6 | |
12607 | else | |
12608 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then : | |
12609 | ||
12610 | else | |
12611 | if test "$ac_cv_type_off_t" = yes; then | |
12612 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
12613 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
12614 | as_fn_error 77 "cannot compute sizeof (off_t) | |
12615 | See \`config.log' for more details" "$LINENO" 5; } | |
12616 | else | |
12617 | ac_cv_sizeof_off_t=0 | |
12618 | fi | |
12619 | fi | |
12620 | ||
12621 | fi | |
12622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 | |
12623 | $as_echo "$ac_cv_sizeof_off_t" >&6; } | |
12624 | ||
12625 | ||
12626 | ||
12627 | cat >>confdefs.h <<_ACEOF | |
12628 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t | |
12629 | _ACEOF | |
12630 | ||
12631 | ||
2dd680f3 TT |
12632 | # The cast to long int works around a bug in the HP C Compiler |
12633 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
12634 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
12635 | # This bug is HP SR number 8606223364. | |
12636 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 | |
12637 | $as_echo_n "checking size of time_t... " >&6; } | |
12638 | if ${ac_cv_sizeof_time_t+:} false; then : | |
12639 | $as_echo_n "(cached) " >&6 | |
12640 | else | |
12641 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then : | |
12642 | ||
12643 | else | |
12644 | if test "$ac_cv_type_time_t" = yes; then | |
12645 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
12646 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
12647 | as_fn_error 77 "cannot compute sizeof (time_t) | |
12648 | See \`config.log' for more details" "$LINENO" 5; } | |
12649 | else | |
12650 | ac_cv_sizeof_time_t=0 | |
12651 | fi | |
12652 | fi | |
12653 | ||
12654 | fi | |
12655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 | |
12656 | $as_echo "$ac_cv_sizeof_time_t" >&6; } | |
12657 | ||
12658 | ||
12659 | ||
12660 | cat >>confdefs.h <<_ACEOF | |
12661 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t | |
12662 | _ACEOF | |
12663 | ||
12664 | ||
39fd3d4f SJR |
12665 | SIZEOF_SHORT=$ac_cv_sizeof_short |
12666 | SIZEOF_INT=$ac_cv_sizeof_int | |
12667 | SIZEOF_LONG=$ac_cv_sizeof_long | |
12668 | SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long | |
cc68e8a6 | 12669 | SIZEOF_OFF_T=$ac_cv_sizeof_off_t |
2dd680f3 TT |
12670 | SIZEOF_TIME_T=$ac_cv_sizeof_time_t |
12671 | ||
cc68e8a6 | 12672 | |
39fd3d4f SJR |
12673 | |
12674 | ||
12675 | ||
12676 | ||
57aa50d4 | 12677 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
39fd3d4f | 12678 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } |
d6a4bcb5 | 12679 | if ${ac_cv_c_bigendian+:} false; then : |
39fd3d4f SJR |
12680 | $as_echo_n "(cached) " >&6 |
12681 | else | |
12682 | ac_cv_c_bigendian=unknown | |
12683 | # See if we're dealing with a universal compiler. | |
57aa50d4 | 12684 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
39fd3d4f SJR |
12685 | /* end confdefs.h. */ |
12686 | #ifndef __APPLE_CC__ | |
12687 | not a universal capable compiler | |
12688 | #endif | |
12689 | typedef int dummy; | |
12690 | ||
12691 | _ACEOF | |
57aa50d4 | 12692 | if ac_fn_c_try_compile "$LINENO"; then : |
39fd3d4f SJR |
12693 | |
12694 | # Check for potential -arch flags. It is not universal unless | |
57aa50d4 TT |
12695 | # there are at least two -arch flags with different values. |
12696 | ac_arch= | |
12697 | ac_prev= | |
12698 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | |
12699 | if test -n "$ac_prev"; then | |
12700 | case $ac_word in | |
12701 | i?86 | x86_64 | ppc | ppc64) | |
12702 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | |
12703 | ac_arch=$ac_word | |
12704 | else | |
12705 | ac_cv_c_bigendian=universal | |
12706 | break | |
12707 | fi | |
12708 | ;; | |
12709 | esac | |
12710 | ac_prev= | |
12711 | elif test "x$ac_word" = "x-arch"; then | |
12712 | ac_prev=arch | |
12713 | fi | |
12714 | done | |
39fd3d4f | 12715 | fi |
39fd3d4f SJR |
12716 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
12717 | if test $ac_cv_c_bigendian = unknown; then | |
12718 | # See if sys/param.h defines the BYTE_ORDER macro. | |
57aa50d4 | 12719 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
39fd3d4f SJR |
12720 | /* end confdefs.h. */ |
12721 | #include <sys/types.h> | |
12722 | #include <sys/param.h> | |
12723 | ||
12724 | int | |
12725 | main () | |
12726 | { | |
12727 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ | |
12728 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | |
12729 | && LITTLE_ENDIAN) | |
12730 | bogus endian macros | |
12731 | #endif | |
12732 | ||
12733 | ; | |
12734 | return 0; | |
12735 | } | |
12736 | _ACEOF | |
57aa50d4 | 12737 | if ac_fn_c_try_compile "$LINENO"; then : |
39fd3d4f | 12738 | # It does; now see whether it defined to BIG_ENDIAN or not. |
57aa50d4 | 12739 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
39fd3d4f SJR |
12740 | /* end confdefs.h. */ |
12741 | #include <sys/types.h> | |
12742 | #include <sys/param.h> | |
12743 | ||
b0cacab0 TT |
12744 | int |
12745 | main () | |
07a0db15 | 12746 | { |
39fd3d4f SJR |
12747 | #if BYTE_ORDER != BIG_ENDIAN |
12748 | not big endian | |
12749 | #endif | |
b0cacab0 TT |
12750 | |
12751 | ; | |
12752 | return 0; | |
07a0db15 | 12753 | } |
b0cacab0 | 12754 | _ACEOF |
57aa50d4 | 12755 | if ac_fn_c_try_compile "$LINENO"; then : |
39fd3d4f | 12756 | ac_cv_c_bigendian=yes |
b0cacab0 | 12757 | else |
57aa50d4 | 12758 | ac_cv_c_bigendian=no |
fc6d9d51 | 12759 | fi |
39fd3d4f | 12760 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
39fd3d4f | 12761 | fi |
39fd3d4f SJR |
12762 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
12763 | fi | |
12764 | if test $ac_cv_c_bigendian = unknown; then | |
12765 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | |
57aa50d4 | 12766 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b0cacab0 | 12767 | /* end confdefs.h. */ |
39fd3d4f | 12768 | #include <limits.h> |
877eb6d9 | 12769 | |
b0cacab0 TT |
12770 | int |
12771 | main () | |
12772 | { | |
39fd3d4f SJR |
12773 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
12774 | bogus endian macros | |
12775 | #endif | |
b0cacab0 TT |
12776 | |
12777 | ; | |
12778 | return 0; | |
12779 | } | |
b0cacab0 | 12780 | _ACEOF |
57aa50d4 TT |
12781 | if ac_fn_c_try_compile "$LINENO"; then : |
12782 | # It does; now see whether it defined to _BIG_ENDIAN or not. | |
12783 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b0cacab0 | 12784 | /* end confdefs.h. */ |
39fd3d4f | 12785 | #include <limits.h> |
877eb6d9 | 12786 | |
b0cacab0 TT |
12787 | int |
12788 | main () | |
12789 | { | |
39fd3d4f SJR |
12790 | #ifndef _BIG_ENDIAN |
12791 | not big endian | |
12792 | #endif | |
b0cacab0 TT |
12793 | |
12794 | ; | |
12795 | return 0; | |
12796 | } | |
12797 | _ACEOF | |
57aa50d4 | 12798 | if ac_fn_c_try_compile "$LINENO"; then : |
877eb6d9 TT |
12799 | ac_cv_c_bigendian=yes |
12800 | else | |
57aa50d4 | 12801 | ac_cv_c_bigendian=no |
877eb6d9 | 12802 | fi |
e1052144 | 12803 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
39fd3d4f | 12804 | fi |
39fd3d4f SJR |
12805 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
12806 | fi | |
12807 | if test $ac_cv_c_bigendian = unknown; then | |
12808 | # Compile a test program. | |
57aa50d4 | 12809 | if test "$cross_compiling" = yes; then : |
39fd3d4f | 12810 | # Try to guess by grepping values from an object file. |
57aa50d4 | 12811 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b0cacab0 | 12812 | /* end confdefs.h. */ |
39fd3d4f SJR |
12813 | short int ascii_mm[] = |
12814 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | |
12815 | short int ascii_ii[] = | |
12816 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
12817 | int use_ascii (int i) { | |
12818 | return ascii_mm[i] + ascii_ii[i]; | |
12819 | } | |
12820 | short int ebcdic_ii[] = | |
12821 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
12822 | short int ebcdic_mm[] = | |
12823 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
12824 | int use_ebcdic (int i) { | |
12825 | return ebcdic_mm[i] + ebcdic_ii[i]; | |
12826 | } | |
12827 | extern int foo; | |
12828 | ||
b0cacab0 TT |
12829 | int |
12830 | main () | |
12831 | { | |
39fd3d4f | 12832 | return use_ascii (foo) == use_ebcdic (foo); |
b0cacab0 TT |
12833 | ; |
12834 | return 0; | |
12835 | } | |
12836 | _ACEOF | |
57aa50d4 | 12837 | if ac_fn_c_try_compile "$LINENO"; then : |
39fd3d4f SJR |
12838 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then |
12839 | ac_cv_c_bigendian=yes | |
12840 | fi | |
12841 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
12842 | if test "$ac_cv_c_bigendian" = unknown; then | |
12843 | ac_cv_c_bigendian=no | |
12844 | else | |
12845 | # finding both strings is unlikely to happen, but who knows? | |
12846 | ac_cv_c_bigendian=unknown | |
12847 | fi | |
12848 | fi | |
b0cacab0 | 12849 | fi |
e1052144 | 12850 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
877eb6d9 | 12851 | else |
57aa50d4 | 12852 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b0cacab0 | 12853 | /* end confdefs.h. */ |
e1052144 | 12854 | $ac_includes_default |
b0cacab0 TT |
12855 | int |
12856 | main () | |
12857 | { | |
e1052144 | 12858 | |
39fd3d4f SJR |
12859 | /* Are we little or big endian? From Harbison&Steele. */ |
12860 | union | |
12861 | { | |
12862 | long int l; | |
12863 | char c[sizeof (long int)]; | |
12864 | } u; | |
12865 | u.l = 1; | |
12866 | return u.c[sizeof (long int) - 1] == 1; | |
e1052144 TT |
12867 | |
12868 | ; | |
12869 | return 0; | |
877eb6d9 | 12870 | } |
b0cacab0 | 12871 | _ACEOF |
57aa50d4 | 12872 | if ac_fn_c_try_run "$LINENO"; then : |
877eb6d9 TT |
12873 | ac_cv_c_bigendian=no |
12874 | else | |
57aa50d4 | 12875 | ac_cv_c_bigendian=yes |
877eb6d9 | 12876 | fi |
57aa50d4 TT |
12877 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
12878 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
877eb6d9 | 12879 | fi |
e1052144 | 12880 | |
39fd3d4f | 12881 | fi |
877eb6d9 | 12882 | fi |
57aa50d4 | 12883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
39fd3d4f SJR |
12884 | $as_echo "$ac_cv_c_bigendian" >&6; } |
12885 | case $ac_cv_c_bigendian in #( | |
12886 | yes) | |
57aa50d4 | 12887 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h |
39fd3d4f SJR |
12888 | ;; #( |
12889 | no) | |
12890 | ;; #( | |
12891 | universal) | |
07a0db15 | 12892 | |
57aa50d4 | 12893 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
39fd3d4f SJR |
12894 | |
12895 | ;; #( | |
12896 | *) | |
d6a4bcb5 | 12897 | as_fn_error $? "unknown endianness |
57aa50d4 | 12898 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
39fd3d4f | 12899 | esac |
877eb6d9 | 12900 | |
91f04685 CQ |
12901 | if test $cross_compiling = no; then |
12902 | BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh | |
12903 | else | |
12904 | CROSS_COMPILE="1" BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh | |
12905 | fi | |
4ea7ea00 TT |
12906 | ASM_TYPES_HEADER=./asm_types.h |
12907 | ||
488c75a6 TT |
12908 | echo "/* These defines are needed for the public ext2fs.h header file */" \ |
12909 | > public_config.h | |
12910 | if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then | |
12911 | uniq tmp_config.$$ >> public_config.h | |
12912 | else | |
12913 | echo "#undef HAVE_SYS_TYPES_H" >> public_config.h | |
12914 | fi | |
12915 | if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then | |
12916 | uniq tmp_config.$$ >> public_config.h | |
12917 | else | |
12918 | echo "#undef WORDS_BIGENDIAN" >> public_config.h | |
12919 | fi | |
12920 | rm -f tmp_config.$$ | |
12921 | PUBLIC_CONFIG_HEADER=./public_config.h | |
12922 | ||
b0cacab0 | 12923 | for ac_header in inttypes.h |
57aa50d4 TT |
12924 | do : |
12925 | ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default" | |
d6a4bcb5 | 12926 | if test "x$ac_cv_header_inttypes_h" = xyes; then : |
b0cacab0 | 12927 | cat >>confdefs.h <<_ACEOF |
57aa50d4 | 12928 | #define HAVE_INTTYPES_H 1 |
b0cacab0 TT |
12929 | _ACEOF |
12930 | ||
12931 | fi | |
12932 | ||
0c193f82 TT |
12933 | done |
12934 | ||
57aa50d4 | 12935 | ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default" |
d6a4bcb5 | 12936 | if test "x$ac_cv_type_intptr_t" = xyes; then : |
b0cacab0 TT |
12937 | |
12938 | cat >>confdefs.h <<_ACEOF | |
d2ee56d8 | 12939 | #define HAVE_INTPTR_T 1 |
b0cacab0 | 12940 | _ACEOF |
0c193f82 | 12941 | |
d2ee56d8 | 12942 | |
0c193f82 TT |
12943 | fi |
12944 | ||
57aa50d4 | 12945 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5 |
39fd3d4f | 12946 | $as_echo_n "checking whether struct stat has a st_flags field... " >&6; } |
d6a4bcb5 | 12947 | if ${e2fsprogs_cv_struct_st_flags+:} false; then : |
39fd3d4f | 12948 | $as_echo_n "(cached) " >&6 |
50e1e10f | 12949 | else |
57aa50d4 | 12950 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b0cacab0 | 12951 | /* end confdefs.h. */ |
50e1e10f | 12952 | #include <sys/stat.h> |
b0cacab0 TT |
12953 | int |
12954 | main () | |
12955 | { | |
50e1e10f | 12956 | struct stat stat; stat.st_flags = 0; |
b0cacab0 TT |
12957 | ; |
12958 | return 0; | |
12959 | } | |
12960 | _ACEOF | |
57aa50d4 | 12961 | if ac_fn_c_try_compile "$LINENO"; then : |
50e1e10f TT |
12962 | e2fsprogs_cv_struct_st_flags=yes |
12963 | else | |
57aa50d4 | 12964 | e2fsprogs_cv_struct_st_flags=no |
50e1e10f | 12965 | fi |
e1052144 | 12966 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
50e1e10f TT |
12967 | fi |
12968 | ||
57aa50d4 | 12969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5 |
39fd3d4f | 12970 | $as_echo "$e2fsprogs_cv_struct_st_flags" >&6; } |
50e1e10f | 12971 | if test "$e2fsprogs_cv_struct_st_flags" = yes; then |
57aa50d4 | 12972 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5 |
39fd3d4f | 12973 | $as_echo_n "checking whether st_flags field is useful... " >&6; } |
d6a4bcb5 | 12974 | if ${e2fsprogs_cv_struct_st_flags_immut+:} false; then : |
39fd3d4f | 12975 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 12976 | else |
57aa50d4 | 12977 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b0cacab0 | 12978 | /* end confdefs.h. */ |
c03bc4e8 | 12979 | #include <sys/stat.h> |
b0cacab0 TT |
12980 | int |
12981 | main () | |
12982 | { | |
c03bc4e8 | 12983 | struct stat stat; stat.st_flags |= UF_IMMUTABLE; |
b0cacab0 TT |
12984 | ; |
12985 | return 0; | |
12986 | } | |
57aa50d4 TT |
12987 | _ACEOF |
12988 | if ac_fn_c_try_compile "$LINENO"; then : | |
12989 | e2fsprogs_cv_struct_st_flags_immut=yes | |
6c65d251 | 12990 | else |
57aa50d4 | 12991 | e2fsprogs_cv_struct_st_flags_immut=no |
84ea6e70 | 12992 | fi |
e1052144 | 12993 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
84ea6e70 | 12994 | fi |
e1052144 | 12995 | |
57aa50d4 TT |
12996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5 |
12997 | $as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; } | |
12998 | if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then | |
d1154eb4 TT |
12999 | |
13000 | $as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h | |
57aa50d4 TT |
13001 | |
13002 | fi | |
6c65d251 | 13003 | fi |
57aa50d4 TT |
13004 | ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h> |
13005 | #include <sys/socket.h> | |
13006 | " | |
d6a4bcb5 | 13007 | if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then : |
b0cacab0 TT |
13008 | |
13009 | cat >>confdefs.h <<_ACEOF | |
84ea6e70 | 13010 | #define HAVE_SA_LEN 1 |
b0cacab0 | 13011 | _ACEOF |
84ea6e70 | 13012 | |
50e1e10f | 13013 | fi |
b0cacab0 | 13014 | |
9ed8e5fe | 13015 | if test -n "$BLKID_CMT"; then |
57aa50d4 | 13016 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5 |
9ed8e5fe | 13017 | $as_echo_n "checking for library containing blkid_probe_all... " >&6; } |
d6a4bcb5 | 13018 | if ${ac_cv_search_blkid_probe_all+:} false; then : |
9ed8e5fe ES |
13019 | $as_echo_n "(cached) " >&6 |
13020 | else | |
13021 | ac_func_search_save_LIBS=$LIBS | |
57aa50d4 | 13022 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9ed8e5fe ES |
13023 | /* end confdefs.h. */ |
13024 | ||
13025 | /* Override any GCC internal prototype to avoid an error. | |
13026 | Use char because int might match the return type of a GCC | |
13027 | builtin and then its argument prototype would still apply. */ | |
13028 | #ifdef __cplusplus | |
13029 | extern "C" | |
13030 | #endif | |
13031 | char blkid_probe_all (); | |
13032 | int | |
13033 | main () | |
13034 | { | |
13035 | return blkid_probe_all (); | |
13036 | ; | |
13037 | return 0; | |
13038 | } | |
13039 | _ACEOF | |
13040 | for ac_lib in '' blkid; do | |
13041 | if test -z "$ac_lib"; then | |
13042 | ac_res="none required" | |
13043 | else | |
13044 | ac_res=-l$ac_lib | |
13045 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
13046 | fi | |
57aa50d4 | 13047 | if ac_fn_c_try_link "$LINENO"; then : |
9ed8e5fe | 13048 | ac_cv_search_blkid_probe_all=$ac_res |
9ed8e5fe | 13049 | fi |
57aa50d4 TT |
13050 | rm -f core conftest.err conftest.$ac_objext \ |
13051 | conftest$ac_exeext | |
d6a4bcb5 | 13052 | if ${ac_cv_search_blkid_probe_all+:} false; then : |
9ed8e5fe ES |
13053 | break |
13054 | fi | |
13055 | done | |
d6a4bcb5 | 13056 | if ${ac_cv_search_blkid_probe_all+:} false; then : |
57aa50d4 | 13057 | |
9ed8e5fe ES |
13058 | else |
13059 | ac_cv_search_blkid_probe_all=no | |
13060 | fi | |
13061 | rm conftest.$ac_ext | |
13062 | LIBS=$ac_func_search_save_LIBS | |
13063 | fi | |
57aa50d4 | 13064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5 |
9ed8e5fe ES |
13065 | $as_echo "$ac_cv_search_blkid_probe_all" >&6; } |
13066 | ac_res=$ac_cv_search_blkid_probe_all | |
57aa50d4 | 13067 | if test "$ac_res" != no; then : |
9ed8e5fe ES |
13068 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
13069 | ||
13070 | fi | |
13071 | ||
13072 | fi | |
32179ce2 TT |
13073 | if test -n "$DLOPEN_LIB" ; then |
13074 | ac_cv_func_dlopen=yes | |
13075 | fi | |
13076 | for ac_func in __secure_getenv add_key backtrace blkid_probe_get_topology blkid_probe_enable_partitions chflags dlopen fadvise64 fallocate fallocate64 fchown fdatasync fstat64 ftruncate64 futimes getcwd getdtablesize getmntinfo getpwuid_r getrlimit getrusage jrand48 keyctl llistxattr llseek lseek64 mallinfo mbstowcs memalign mempcpy mmap msync nanosleep open64 pathconf posix_fadvise posix_fadvise64 posix_memalign prctl pread pwrite pread64 pwrite64 secure_getenv setmntent setresgid setresuid snprintf srandom stpcpy strcasecmp strdup strnlen strptime strtoull sync_file_range sysconf usleep utime utimes valloc | |
57aa50d4 TT |
13077 | do : |
13078 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
13079 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
d6a4bcb5 | 13080 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
b0cacab0 | 13081 | cat >>confdefs.h <<_ACEOF |
39fd3d4f | 13082 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
b0cacab0 | 13083 | _ACEOF |
21c84b71 | 13084 | |
50e1e10f TT |
13085 | fi |
13086 | done | |
13087 | ||
fc6d9d51 | 13088 | SOCKET_LIB='' |
57aa50d4 | 13089 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 |
39fd3d4f | 13090 | $as_echo_n "checking for socket in -lsocket... " >&6; } |
d6a4bcb5 | 13091 | if ${ac_cv_lib_socket_socket+:} false; then : |
39fd3d4f | 13092 | $as_echo_n "(cached) " >&6 |
50e1e10f | 13093 | else |
b0cacab0 | 13094 | ac_check_lib_save_LIBS=$LIBS |
fc6d9d51 | 13095 | LIBS="-lsocket $LIBS" |
57aa50d4 | 13096 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b0cacab0 | 13097 | /* end confdefs.h. */ |
93636bde | 13098 | |
e1052144 TT |
13099 | /* Override any GCC internal prototype to avoid an error. |
13100 | Use char because int might match the return type of a GCC | |
13101 | builtin and then its argument prototype would still apply. */ | |
b0cacab0 TT |
13102 | #ifdef __cplusplus |
13103 | extern "C" | |
13104 | #endif | |
b0cacab0 TT |
13105 | char socket (); |
13106 | int | |
13107 | main () | |
13108 | { | |
e1052144 | 13109 | return socket (); |
b0cacab0 TT |
13110 | ; |
13111 | return 0; | |
13112 | } | |
13113 | _ACEOF | |
57aa50d4 | 13114 | if ac_fn_c_try_link "$LINENO"; then : |
b0cacab0 TT |
13115 | ac_cv_lib_socket_socket=yes |
13116 | else | |
57aa50d4 | 13117 | ac_cv_lib_socket_socket=no |
b0cacab0 | 13118 | fi |
57aa50d4 TT |
13119 | rm -f core conftest.err conftest.$ac_objext \ |
13120 | conftest$ac_exeext conftest.$ac_ext | |
b0cacab0 TT |
13121 | LIBS=$ac_check_lib_save_LIBS |
13122 | fi | |
57aa50d4 | 13123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 |
39fd3d4f | 13124 | $as_echo "$ac_cv_lib_socket_socket" >&6; } |
d6a4bcb5 | 13125 | if test "x$ac_cv_lib_socket_socket" = xyes; then : |
fc6d9d51 | 13126 | SOCKET_LIB=-lsocket |
50e1e10f | 13127 | fi |
fc6d9d51 | 13128 | |
93636bde | 13129 | |
b291c11f DW |
13130 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_file in -lmagic" >&5 |
13131 | $as_echo_n "checking for magic_file in -lmagic... " >&6; } | |
13132 | if ${ac_cv_lib_magic_magic_file+:} false; then : | |
13133 | $as_echo_n "(cached) " >&6 | |
13134 | else | |
13135 | ac_check_lib_save_LIBS=$LIBS | |
13136 | LIBS="-lmagic $LIBS" | |
13137 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13138 | /* end confdefs.h. */ | |
13139 | ||
13140 | /* Override any GCC internal prototype to avoid an error. | |
13141 | Use char because int might match the return type of a GCC | |
13142 | builtin and then its argument prototype would still apply. */ | |
13143 | #ifdef __cplusplus | |
13144 | extern "C" | |
13145 | #endif | |
13146 | char magic_file (); | |
13147 | int | |
13148 | main () | |
13149 | { | |
13150 | return magic_file (); | |
13151 | ; | |
13152 | return 0; | |
13153 | } | |
13154 | _ACEOF | |
13155 | if ac_fn_c_try_link "$LINENO"; then : | |
13156 | ac_cv_lib_magic_magic_file=yes | |
13157 | else | |
13158 | ac_cv_lib_magic_magic_file=no | |
13159 | fi | |
13160 | rm -f core conftest.err conftest.$ac_objext \ | |
13161 | conftest$ac_exeext conftest.$ac_ext | |
13162 | LIBS=$ac_check_lib_save_LIBS | |
13163 | fi | |
13164 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_file" >&5 | |
13165 | $as_echo "$ac_cv_lib_magic_magic_file" >&6; } | |
13166 | if test "x$ac_cv_lib_magic_magic_file" = xyes; then : | |
13167 | MAGIC_LIB=-lmagic | |
13168 | for ac_header in magic.h | |
13169 | do : | |
13170 | ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default" | |
13171 | if test "x$ac_cv_header_magic_h" = xyes; then : | |
13172 | cat >>confdefs.h <<_ACEOF | |
13173 | #define HAVE_MAGIC_H 1 | |
13174 | _ACEOF | |
13175 | ||
13176 | fi | |
13177 | ||
13178 | done | |
13179 | ||
13180 | fi | |
13181 | ||
32179ce2 | 13182 | if test "$ac_cv_func_dlopen" = yes ; then |
d2e3c0dc TT |
13183 | MAGIC_LIB=$DLOPEN_LIB |
13184 | fi | |
b291c11f | 13185 | |
c94da047 TT |
13186 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 |
13187 | $as_echo_n "checking for clock_gettime in -lrt... " >&6; } | |
13188 | if ${ac_cv_lib_rt_clock_gettime+:} false; then : | |
13189 | $as_echo_n "(cached) " >&6 | |
13190 | else | |
13191 | ac_check_lib_save_LIBS=$LIBS | |
13192 | LIBS="-lrt $LIBS" | |
13193 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13194 | /* end confdefs.h. */ | |
13195 | ||
13196 | /* Override any GCC internal prototype to avoid an error. | |
13197 | Use char because int might match the return type of a GCC | |
13198 | builtin and then its argument prototype would still apply. */ | |
13199 | #ifdef __cplusplus | |
13200 | extern "C" | |
13201 | #endif | |
13202 | char clock_gettime (); | |
13203 | int | |
13204 | main () | |
13205 | { | |
13206 | return clock_gettime (); | |
13207 | ; | |
13208 | return 0; | |
13209 | } | |
13210 | _ACEOF | |
13211 | if ac_fn_c_try_link "$LINENO"; then : | |
13212 | ac_cv_lib_rt_clock_gettime=yes | |
13213 | else | |
13214 | ac_cv_lib_rt_clock_gettime=no | |
13215 | fi | |
13216 | rm -f core conftest.err conftest.$ac_objext \ | |
13217 | conftest$ac_exeext conftest.$ac_ext | |
13218 | LIBS=$ac_check_lib_save_LIBS | |
13219 | fi | |
13220 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 | |
13221 | $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } | |
13222 | if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then : | |
13223 | CLOCK_GETTIME_LIB=-lrt | |
13224 | fi | |
13225 | ||
13226 | ||
81cbf1ef DW |
13227 | FUSE_CMT= |
13228 | FUSE_LIB= | |
13229 | # Check whether --enable-fuse2fs was given. | |
13230 | if test "${enable_fuse2fs+set}" = set; then : | |
13231 | enableval=$enable_fuse2fs; if test "$enableval" = "no" | |
13232 | then | |
13233 | FUSE_CMT="#" | |
13234 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling fuse2fs" >&5 | |
13235 | $as_echo "Disabling fuse2fs" >&6; } | |
13236 | else | |
13237 | for ac_header in pthread.h fuse.h | |
13238 | do : | |
13239 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13240 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64 | |
13241 | #define FUSE_USE_VERSION 29 | |
13242 | " | |
13243 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
13244 | cat >>confdefs.h <<_ACEOF | |
13245 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13246 | _ACEOF | |
13247 | ||
13248 | else | |
13249 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
13250 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
13251 | as_fn_error $? "Cannot find fuse2fs headers. | |
13252 | See \`config.log' for more details" "$LINENO" 5; } | |
13253 | fi | |
13254 | ||
13255 | done | |
13256 | ||
13257 | ||
13258 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13259 | /* end confdefs.h. */ | |
13260 | #define FUSE_USE_VERSION 29 | |
13261 | #ifdef __linux__ | |
13262 | #include <linux/fs.h> | |
13263 | #include <linux/falloc.h> | |
13264 | #include <linux/xattr.h> | |
13265 | #endif | |
13266 | ||
13267 | int | |
13268 | main () | |
13269 | { | |
13270 | ||
13271 | ; | |
13272 | return 0; | |
13273 | } | |
13274 | _ACEOF | |
13275 | if ac_fn_c_try_cpp "$LINENO"; then : | |
13276 | ||
13277 | else | |
13278 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
13279 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
13280 | as_fn_error $? "Cannot find fuse2fs Linux headers. | |
13281 | See \`config.log' for more details" "$LINENO" 5; } | |
13282 | fi | |
13283 | rm -f conftest.err conftest.i conftest.$ac_ext | |
13284 | ||
13285 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5 | |
13286 | $as_echo_n "checking for fuse_main in -losxfuse... " >&6; } | |
13287 | if ${ac_cv_lib_osxfuse_fuse_main+:} false; then : | |
13288 | $as_echo_n "(cached) " >&6 | |
13289 | else | |
13290 | ac_check_lib_save_LIBS=$LIBS | |
13291 | LIBS="-losxfuse $LIBS" | |
13292 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13293 | /* end confdefs.h. */ | |
13294 | ||
13295 | /* Override any GCC internal prototype to avoid an error. | |
13296 | Use char because int might match the return type of a GCC | |
13297 | builtin and then its argument prototype would still apply. */ | |
13298 | #ifdef __cplusplus | |
13299 | extern "C" | |
13300 | #endif | |
13301 | char fuse_main (); | |
13302 | int | |
13303 | main () | |
13304 | { | |
13305 | return fuse_main (); | |
13306 | ; | |
13307 | return 0; | |
13308 | } | |
13309 | _ACEOF | |
13310 | if ac_fn_c_try_link "$LINENO"; then : | |
13311 | ac_cv_lib_osxfuse_fuse_main=yes | |
13312 | else | |
13313 | ac_cv_lib_osxfuse_fuse_main=no | |
13314 | fi | |
13315 | rm -f core conftest.err conftest.$ac_objext \ | |
13316 | conftest$ac_exeext conftest.$ac_ext | |
13317 | LIBS=$ac_check_lib_save_LIBS | |
13318 | fi | |
13319 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5 | |
13320 | $as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; } | |
13321 | if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then : | |
13322 | FUSE_LIB=-losxfuse | |
13323 | else | |
13324 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5 | |
13325 | $as_echo_n "checking for fuse_main in -lfuse... " >&6; } | |
13326 | if ${ac_cv_lib_fuse_fuse_main+:} false; then : | |
13327 | $as_echo_n "(cached) " >&6 | |
13328 | else | |
13329 | ac_check_lib_save_LIBS=$LIBS | |
13330 | LIBS="-lfuse $LIBS" | |
13331 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13332 | /* end confdefs.h. */ | |
13333 | ||
13334 | /* Override any GCC internal prototype to avoid an error. | |
13335 | Use char because int might match the return type of a GCC | |
13336 | builtin and then its argument prototype would still apply. */ | |
13337 | #ifdef __cplusplus | |
13338 | extern "C" | |
13339 | #endif | |
13340 | char fuse_main (); | |
13341 | int | |
13342 | main () | |
13343 | { | |
13344 | return fuse_main (); | |
13345 | ; | |
13346 | return 0; | |
13347 | } | |
13348 | _ACEOF | |
13349 | if ac_fn_c_try_link "$LINENO"; then : | |
13350 | ac_cv_lib_fuse_fuse_main=yes | |
13351 | else | |
13352 | ac_cv_lib_fuse_fuse_main=no | |
13353 | fi | |
13354 | rm -f core conftest.err conftest.$ac_objext \ | |
13355 | conftest$ac_exeext conftest.$ac_ext | |
13356 | LIBS=$ac_check_lib_save_LIBS | |
13357 | fi | |
13358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5 | |
13359 | $as_echo "$ac_cv_lib_fuse_fuse_main" >&6; } | |
13360 | if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then : | |
13361 | FUSE_LIB=-lfuse | |
13362 | else | |
13363 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
13364 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
13365 | as_fn_error $? "Cannot find fuse library. | |
13366 | See \`config.log' for more details" "$LINENO" 5; } | |
13367 | fi | |
13368 | ||
13369 | fi | |
13370 | ||
13371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs" >&5 | |
13372 | $as_echo "Enabling fuse2fs" >&6; } | |
13373 | fi | |
13374 | ||
13375 | else | |
13376 | for ac_header in pthread.h fuse.h | |
13377 | do : | |
13378 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13379 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64 | |
13380 | #define FUSE_USE_VERSION 29 | |
13381 | #ifdef __linux__ | |
13382 | # include <linux/fs.h> | |
13383 | # include <linux/falloc.h> | |
13384 | # include <linux/xattr.h> | |
13385 | #endif | |
13386 | " | |
13387 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
13388 | cat >>confdefs.h <<_ACEOF | |
13389 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13390 | _ACEOF | |
13391 | ||
13392 | else | |
13393 | FUSE_CMT="#" | |
13394 | fi | |
13395 | ||
13396 | done | |
13397 | ||
13398 | if test -z "$FUSE_CMT" | |
13399 | then | |
13400 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5 | |
13401 | $as_echo_n "checking for fuse_main in -losxfuse... " >&6; } | |
13402 | if ${ac_cv_lib_osxfuse_fuse_main+:} false; then : | |
13403 | $as_echo_n "(cached) " >&6 | |
13404 | else | |
13405 | ac_check_lib_save_LIBS=$LIBS | |
13406 | LIBS="-losxfuse $LIBS" | |
13407 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13408 | /* end confdefs.h. */ | |
13409 | ||
13410 | /* Override any GCC internal prototype to avoid an error. | |
13411 | Use char because int might match the return type of a GCC | |
13412 | builtin and then its argument prototype would still apply. */ | |
13413 | #ifdef __cplusplus | |
13414 | extern "C" | |
13415 | #endif | |
13416 | char fuse_main (); | |
13417 | int | |
13418 | main () | |
13419 | { | |
13420 | return fuse_main (); | |
13421 | ; | |
13422 | return 0; | |
13423 | } | |
13424 | _ACEOF | |
13425 | if ac_fn_c_try_link "$LINENO"; then : | |
13426 | ac_cv_lib_osxfuse_fuse_main=yes | |
13427 | else | |
13428 | ac_cv_lib_osxfuse_fuse_main=no | |
13429 | fi | |
13430 | rm -f core conftest.err conftest.$ac_objext \ | |
13431 | conftest$ac_exeext conftest.$ac_ext | |
13432 | LIBS=$ac_check_lib_save_LIBS | |
13433 | fi | |
13434 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5 | |
13435 | $as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; } | |
13436 | if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then : | |
13437 | FUSE_LIB=-losxfuse | |
13438 | else | |
13439 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5 | |
13440 | $as_echo_n "checking for fuse_main in -lfuse... " >&6; } | |
13441 | if ${ac_cv_lib_fuse_fuse_main+:} false; then : | |
13442 | $as_echo_n "(cached) " >&6 | |
13443 | else | |
13444 | ac_check_lib_save_LIBS=$LIBS | |
13445 | LIBS="-lfuse $LIBS" | |
13446 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13447 | /* end confdefs.h. */ | |
13448 | ||
13449 | /* Override any GCC internal prototype to avoid an error. | |
13450 | Use char because int might match the return type of a GCC | |
13451 | builtin and then its argument prototype would still apply. */ | |
13452 | #ifdef __cplusplus | |
13453 | extern "C" | |
13454 | #endif | |
13455 | char fuse_main (); | |
13456 | int | |
13457 | main () | |
13458 | { | |
13459 | return fuse_main (); | |
13460 | ; | |
13461 | return 0; | |
13462 | } | |
13463 | _ACEOF | |
13464 | if ac_fn_c_try_link "$LINENO"; then : | |
13465 | ac_cv_lib_fuse_fuse_main=yes | |
13466 | else | |
13467 | ac_cv_lib_fuse_fuse_main=no | |
13468 | fi | |
13469 | rm -f core conftest.err conftest.$ac_objext \ | |
13470 | conftest$ac_exeext conftest.$ac_ext | |
13471 | LIBS=$ac_check_lib_save_LIBS | |
13472 | fi | |
13473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5 | |
13474 | $as_echo "$ac_cv_lib_fuse_fuse_main" >&6; } | |
13475 | if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then : | |
13476 | FUSE_LIB=-lfuse | |
13477 | else | |
13478 | FUSE_CMT="#" | |
13479 | fi | |
13480 | ||
13481 | fi | |
13482 | ||
13483 | fi | |
13484 | if test -z "$FUSE_CMT" | |
13485 | then | |
13486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs by default." >&5 | |
13487 | $as_echo "Enabling fuse2fs by default." >&6; } | |
13488 | fi | |
13489 | ||
13490 | fi | |
13491 | ||
13492 | ||
13493 | ||
57aa50d4 | 13494 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5 |
39fd3d4f | 13495 | $as_echo_n "checking for optreset... " >&6; } |
d6a4bcb5 | 13496 | if ${ac_cv_have_optreset+:} false; then : |
39fd3d4f | 13497 | $as_echo_n "(cached) " >&6 |
d7f45af8 | 13498 | else |
57aa50d4 | 13499 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d7f45af8 | 13500 | /* end confdefs.h. */ |
57aa50d4 TT |
13501 | #include <unistd.h> |
13502 | ||
13503 | _ACEOF | |
13504 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
13505 | $EGREP "optreset" >/dev/null 2>&1; then : | |
13506 | ac_cv_have_optreset=yes | |
d7f45af8 | 13507 | else |
57aa50d4 TT |
13508 | ac_cv_have_optreset=no |
13509 | fi | |
13510 | rm -f conftest* | |
d7f45af8 | 13511 | |
d7f45af8 | 13512 | fi |
57aa50d4 TT |
13513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5 |
13514 | $as_echo "$ac_cv_have_optreset" >&6; } | |
13515 | if test $ac_cv_have_optreset = yes; then | |
d1154eb4 TT |
13516 | |
13517 | $as_echo "#define HAVE_OPTRESET 1" >>confdefs.h | |
d7f45af8 | 13518 | |
d7f45af8 | 13519 | fi |
d1154eb4 | 13520 | |
57aa50d4 TT |
13521 | SEM_INIT_LIB='' |
13522 | ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init" | |
d6a4bcb5 | 13523 | if test "x$ac_cv_func_sem_init" = xyes; then : |
57aa50d4 | 13524 | |
d7f45af8 | 13525 | else |
57aa50d4 | 13526 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5 |
39fd3d4f | 13527 | $as_echo_n "checking for sem_init in -lpthread... " >&6; } |
d6a4bcb5 | 13528 | if ${ac_cv_lib_pthread_sem_init+:} false; then : |
39fd3d4f | 13529 | $as_echo_n "(cached) " >&6 |
d7f45af8 TT |
13530 | else |
13531 | ac_check_lib_save_LIBS=$LIBS | |
13532 | LIBS="-lpthread $LIBS" | |
57aa50d4 | 13533 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d7f45af8 TT |
13534 | /* end confdefs.h. */ |
13535 | ||
13536 | /* Override any GCC internal prototype to avoid an error. | |
13537 | Use char because int might match the return type of a GCC | |
13538 | builtin and then its argument prototype would still apply. */ | |
13539 | #ifdef __cplusplus | |
13540 | extern "C" | |
13541 | #endif | |
13542 | char sem_init (); | |
13543 | int | |
13544 | main () | |
13545 | { | |
13546 | return sem_init (); | |
13547 | ; | |
13548 | return 0; | |
13549 | } | |
13550 | _ACEOF | |
57aa50d4 | 13551 | if ac_fn_c_try_link "$LINENO"; then : |
d7f45af8 TT |
13552 | ac_cv_lib_pthread_sem_init=yes |
13553 | else | |
57aa50d4 | 13554 | ac_cv_lib_pthread_sem_init=no |
d7f45af8 | 13555 | fi |
57aa50d4 TT |
13556 | rm -f core conftest.err conftest.$ac_objext \ |
13557 | conftest$ac_exeext conftest.$ac_ext | |
d7f45af8 TT |
13558 | LIBS=$ac_check_lib_save_LIBS |
13559 | fi | |
57aa50d4 | 13560 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5 |
39fd3d4f | 13561 | $as_echo "$ac_cv_lib_pthread_sem_init" >&6; } |
d6a4bcb5 | 13562 | if test "x$ac_cv_lib_pthread_sem_init" = xyes; then : |
57aa50d4 | 13563 | $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h |
d7f45af8 TT |
13564 | |
13565 | SEM_INIT_LIB=-lpthread | |
13566 | else | |
57aa50d4 | 13567 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5 |
39fd3d4f | 13568 | $as_echo_n "checking for sem_init in -lrt... " >&6; } |
d6a4bcb5 | 13569 | if ${ac_cv_lib_rt_sem_init+:} false; then : |
39fd3d4f | 13570 | $as_echo_n "(cached) " >&6 |
d7f45af8 TT |
13571 | else |
13572 | ac_check_lib_save_LIBS=$LIBS | |
13573 | LIBS="-lrt $LIBS" | |
57aa50d4 | 13574 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d7f45af8 TT |
13575 | /* end confdefs.h. */ |
13576 | ||
13577 | /* Override any GCC internal prototype to avoid an error. | |
13578 | Use char because int might match the return type of a GCC | |
13579 | builtin and then its argument prototype would still apply. */ | |
13580 | #ifdef __cplusplus | |
13581 | extern "C" | |
13582 | #endif | |
13583 | char sem_init (); | |
13584 | int | |
13585 | main () | |
13586 | { | |
13587 | return sem_init (); | |
13588 | ; | |
13589 | return 0; | |
13590 | } | |
13591 | _ACEOF | |
57aa50d4 | 13592 | if ac_fn_c_try_link "$LINENO"; then : |
d7f45af8 TT |
13593 | ac_cv_lib_rt_sem_init=yes |
13594 | else | |
57aa50d4 | 13595 | ac_cv_lib_rt_sem_init=no |
d7f45af8 | 13596 | fi |
57aa50d4 TT |
13597 | rm -f core conftest.err conftest.$ac_objext \ |
13598 | conftest$ac_exeext conftest.$ac_ext | |
d7f45af8 TT |
13599 | LIBS=$ac_check_lib_save_LIBS |
13600 | fi | |
57aa50d4 | 13601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5 |
39fd3d4f | 13602 | $as_echo "$ac_cv_lib_rt_sem_init" >&6; } |
d6a4bcb5 | 13603 | if test "x$ac_cv_lib_rt_sem_init" = xyes; then : |
57aa50d4 | 13604 | $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h |
d7f45af8 TT |
13605 | |
13606 | SEM_INIT_LIB=-lrt | |
13607 | else | |
57aa50d4 | 13608 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5 |
39fd3d4f | 13609 | $as_echo_n "checking for sem_init in -lposix4... " >&6; } |
d6a4bcb5 | 13610 | if ${ac_cv_lib_posix4_sem_init+:} false; then : |
39fd3d4f | 13611 | $as_echo_n "(cached) " >&6 |
d7f45af8 TT |
13612 | else |
13613 | ac_check_lib_save_LIBS=$LIBS | |
13614 | LIBS="-lposix4 $LIBS" | |
57aa50d4 | 13615 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d7f45af8 TT |
13616 | /* end confdefs.h. */ |
13617 | ||
13618 | /* Override any GCC internal prototype to avoid an error. | |
13619 | Use char because int might match the return type of a GCC | |
13620 | builtin and then its argument prototype would still apply. */ | |
13621 | #ifdef __cplusplus | |
13622 | extern "C" | |
13623 | #endif | |
13624 | char sem_init (); | |
13625 | int | |
13626 | main () | |
13627 | { | |
13628 | return sem_init (); | |
13629 | ; | |
13630 | return 0; | |
13631 | } | |
13632 | _ACEOF | |
57aa50d4 | 13633 | if ac_fn_c_try_link "$LINENO"; then : |
d7f45af8 TT |
13634 | ac_cv_lib_posix4_sem_init=yes |
13635 | else | |
57aa50d4 | 13636 | ac_cv_lib_posix4_sem_init=no |
d7f45af8 | 13637 | fi |
57aa50d4 TT |
13638 | rm -f core conftest.err conftest.$ac_objext \ |
13639 | conftest$ac_exeext conftest.$ac_ext | |
d7f45af8 TT |
13640 | LIBS=$ac_check_lib_save_LIBS |
13641 | fi | |
57aa50d4 | 13642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5 |
39fd3d4f | 13643 | $as_echo "$ac_cv_lib_posix4_sem_init" >&6; } |
d6a4bcb5 | 13644 | if test "x$ac_cv_lib_posix4_sem_init" = xyes; then : |
57aa50d4 | 13645 | $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h |
d7f45af8 TT |
13646 | |
13647 | SEM_INIT_LIB=-lposix4 | |
13648 | fi | |
13649 | ||
13650 | fi | |
13651 | ||
13652 | fi | |
13653 | ||
13654 | fi | |
13655 | ||
57aa50d4 | 13656 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5 |
39fd3d4f | 13657 | $as_echo_n "checking for unified diff option... " >&6; } |
27f991b0 | 13658 | if diff -u $0 $0 > /dev/null 2>&1 ; then |
e54635de TT |
13659 | UNI_DIFF_OPTS=-u |
13660 | else | |
13661 | UNI_DIFF_OPTS=-c | |
13662 | fi | |
57aa50d4 | 13663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5 |
39fd3d4f | 13664 | $as_echo "$UNI_DIFF_OPTS" >&6; } |
e54635de | 13665 | |
8f3f29d3 TT |
13666 | case "$host_os" in |
13667 | linux*) | |
d1154eb4 TT |
13668 | |
13669 | $as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h | |
50e1e10f | 13670 | |
8f3f29d3 TT |
13671 | ;; |
13672 | esac | |
e6f2bda3 | 13673 | LINUX_CMT="#" |
fff45483 TT |
13674 | CYGWIN_CMT="#" |
13675 | UNIX_CMT= | |
e6f2bda3 TT |
13676 | case "$host_os" in |
13677 | linux*) | |
13678 | LINUX_CMT= | |
fff45483 TT |
13679 | ;; |
13680 | cygwin) | |
13681 | CYGWIN_CMT= | |
13682 | UNIX_CMT="#" | |
e6f2bda3 TT |
13683 | ;; |
13684 | esac | |
13685 | ||
93636bde TT |
13686 | |
13687 | ||
50e1e10f | 13688 | case "$host_os" in |
93636bde | 13689 | linux* | gnu* | k*bsd*-gnu) |
a4b2d3ce TT |
13690 | if test "$prefix" = NONE -a "$root_prefix" = NONE ; then |
13691 | root_prefix=""; | |
57aa50d4 | 13692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5 |
39fd3d4f | 13693 | $as_echo "On $host_os systems, root_prefix defaults to ''" >&6; } |
fc6d9d51 TT |
13694 | fi |
13695 | ;; | |
13696 | esac | |
fc6d9d51 | 13697 | case "$host_os" in |
93636bde | 13698 | linux* | gnu* | k*bsd*-gnu) |
fc6d9d51 | 13699 | if test "$prefix" = NONE ; then |
a4b2d3ce | 13700 | prefix="/usr"; |
57aa50d4 | 13701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5 |
39fd3d4f | 13702 | $as_echo "On $host_os systems, prefix defaults to /usr" >&6; } |
bff61a7a | 13703 | if test "$mandir" = '${prefix}/man' ; then |
57aa50d4 | 13704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5 |
39fd3d4f | 13705 | $as_echo "...and mandir defaults to /usr/share/man" >&6; } |
bff61a7a TT |
13706 | mandir=/usr/share/man |
13707 | fi | |
50e1e10f TT |
13708 | fi |
13709 | ;; | |
13710 | esac | |
a4b2d3ce | 13711 | if test "$root_prefix" = NONE ; then |
ffe1991f | 13712 | if test "$prefix" = NONE ; then |
a4b2d3ce TT |
13713 | root_prefix="$ac_default_prefix" |
13714 | else | |
13715 | root_prefix="$prefix" | |
13716 | fi | |
b5ffeade TT |
13717 | root_bindir=$bindir |
13718 | root_sbindir=$sbindir | |
13719 | root_libdir=$libdir | |
13720 | root_sysconfdir=$sysconfdir | |
13721 | else | |
13722 | root_bindir='${root_prefix}/bin' | |
13723 | root_sbindir='${root_prefix}/sbin' | |
13724 | root_libdir='${root_prefix}/lib' | |
13725 | root_sysconfdir='${root_prefix}/etc' | |
a4b2d3ce | 13726 | fi |
c4ef11c5 TT |
13727 | if test "$bindir" != '${exec_prefix}/bin'; then |
13728 | root_bindir=$bindir | |
57aa50d4 | 13729 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5 |
39fd3d4f | 13730 | $as_echo "Setting root_bindir to $root_bindir" >&6; } |
c4ef11c5 TT |
13731 | fi |
13732 | if test "$sbindir" != '${exec_prefix}/sbin'; then | |
13733 | root_sbindir=$sbindir | |
57aa50d4 | 13734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5 |
39fd3d4f | 13735 | $as_echo "Setting root_sbindir to $root_sbindir" >&6; } |
c4ef11c5 TT |
13736 | fi |
13737 | if test "$libdir" != '${exec_prefix}/lib'; then | |
13738 | root_libdir=$libdir | |
57aa50d4 | 13739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5 |
39fd3d4f | 13740 | $as_echo "Setting root_libdir to $root_libdir" >&6; } |
c4ef11c5 TT |
13741 | fi |
13742 | if test "$sysconfdir" != '${prefix}/etc'; then | |
13743 | root_sysconfdir=$sysconfdir | |
57aa50d4 | 13744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5 |
39fd3d4f | 13745 | $as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; } |
c4ef11c5 | 13746 | fi |
a4b2d3ce | 13747 | |
93636bde TT |
13748 | |
13749 | ||
13750 | ||
13751 | ||
55e00a25 TT |
13752 | |
13753 | # Check whether --with-multiarch was given. | |
13754 | if test "${with_multiarch+set}" = set; then : | |
d7fa4103 TT |
13755 | withval=$with_multiarch; if test "$withval" = "lib64"; then |
13756 | libdir=/usr/lib64 | |
13757 | root_libdir=/lib64 | |
13758 | else | |
13759 | libdir=$libdir/$withval | |
13760 | root_libdir=$root_libdir/$withval | |
13761 | fi | |
55e00a25 TT |
13762 | |
13763 | fi | |
d3de1a71 TT |
13764 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5 |
13765 | $as_echo_n "checking whether we can link with -static... " >&6; } | |
d6a4bcb5 | 13766 | if ${ac_cv_e2fsprogs_use_static+:} false; then : |
39fd3d4f | 13767 | $as_echo_n "(cached) " >&6 |
ae851482 | 13768 | else |
fd1677e8 | 13769 | SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS_STATIC -static" |
57aa50d4 | 13770 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b0cacab0 | 13771 | /* end confdefs.h. */ |
ae851482 | 13772 | #include <stdio.h> |
b0cacab0 TT |
13773 | int |
13774 | main () | |
13775 | { | |
ae851482 | 13776 | fflush(stdout); |
b0cacab0 TT |
13777 | ; |
13778 | return 0; | |
13779 | } | |
13780 | _ACEOF | |
57aa50d4 | 13781 | if ac_fn_c_try_link "$LINENO"; then : |
ae851482 TT |
13782 | ac_cv_e2fsprogs_use_static=yes |
13783 | else | |
57aa50d4 | 13784 | ac_cv_e2fsprogs_use_static=no |
ae851482 | 13785 | fi |
57aa50d4 TT |
13786 | rm -f core conftest.err conftest.$ac_objext \ |
13787 | conftest$ac_exeext conftest.$ac_ext | |
ae851482 TT |
13788 | LDFLAGS=$SAVE_LDFLAGS |
13789 | fi | |
50e1e10f | 13790 | |
defde784 TT |
13791 | case "$host_os" in |
13792 | solaris2.*) | |
b0cacab0 | 13793 | ac_cv_e2fsprogs_use_static=no |
defde784 TT |
13794 | ;; |
13795 | esac | |
57aa50d4 | 13796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5 |
39fd3d4f | 13797 | $as_echo "$ac_cv_e2fsprogs_use_static" >&6; } |
ae851482 | 13798 | if test $ac_cv_e2fsprogs_use_static = yes; then |
fd1677e8 | 13799 | LDFLAGS_STATIC="$LDFLAGS_STATIC -static" |
ae851482 | 13800 | fi |
50e1e10f | 13801 | |
07a0db15 TT |
13802 | case "$host_os" in |
13803 | darwin*) | |
57aa50d4 | 13804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5 |
39fd3d4f | 13805 | $as_echo "Using Apple Darwin / GNU libintl workaround" >&6; } |
d1154eb4 TT |
13806 | |
13807 | $as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h | |
07a0db15 TT |
13808 | |
13809 | ;; | |
13810 | esac | |
50e1e10f TT |
13811 | if test "$cross_compiling" = yes ; then |
13812 | DO_TEST_SUITE= | |
13813 | else | |
13814 | DO_TEST_SUITE=check | |
13815 | fi | |
13816 | ||
d1154eb4 TT |
13817 | INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib' |
13818 | if test -n "$CPPFLAGS" ; then | |
13819 | INCLUDES="$INCLUDES $CPPFLAGS" | |
13820 | fi | |
c6f35b8a | 13821 | if test "$USE_INCLUDED_LIBINTL" = "yes" ; then |
d1154eb4 | 13822 | INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl' |
c6f35b8a | 13823 | fi |
6c59a665 TT |
13824 | if test -n "$WITH_DIET_LIBC" ; then |
13825 | INCLUDES="$INCLUDES -D_REENTRANT" | |
13826 | fi | |
c6f35b8a | 13827 | |
5b5bd2c2 TT |
13828 | |
13829 | MKINSTALLDIRS= | |
13830 | if test -n "$ac_aux_dir"; then | |
13831 | case "$ac_aux_dir" in | |
13832 | /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; | |
13833 | *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; | |
13834 | esac | |
13835 | fi | |
13836 | if test -z "$MKINSTALLDIRS"; then | |
13837 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" | |
13838 | fi | |
13839 | ||
13840 | ||
dd947da2 | 13841 | if test $cross_compiling = no; then |
2873927d | 13842 | BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H" |
dd947da2 | 13843 | BUILD_LDFLAGS="$LDFLAGS" |
dd947da2 TT |
13844 | fi |
13845 | ||
13846 | ||
fd1677e8 TT |
13847 | CFLAGS_SHLIB=${CFLAGS_SHLIB:-$CFLAGS} |
13848 | CFLAGS_STLIB=${CFLAGS_STLIB:-$CFLAGS} | |
13849 | LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS} | |
13850 | ||
13851 | ||
13852 | ||
50e1e10f TT |
13853 | test -d lib || mkdir lib |
13854 | test -d include || mkdir include | |
13855 | test -d include/linux || mkdir include/linux | |
defde784 | 13856 | test -d include/asm || mkdir include/asm |
44dfb378 TT |
13857 | if test -z "$UUID_CMT" ; then |
13858 | uuid_out_list="lib/uuid/Makefile lib/uuid/uuid.pc \ | |
13859 | lib/uuid/uuid_types.h" | |
13860 | fi | |
13861 | if test -z "$BLKID_CMT" ; then | |
13862 | blkid_out_list="lib/blkid/Makefile lib/blkid/blkid.pc \ | |
13863 | lib/blkid/blkid_types.h" | |
13864 | fi | |
bff0cc95 | 13865 | for i in MCONFIG Makefile e2fsprogs.spec \ |
183c73b0 | 13866 | util/Makefile util/subst.conf util/gen-tarball util/install-symlink \ |
4ea7ea00 TT |
13867 | lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \ |
13868 | lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \ | |
f34af41b | 13869 | $uuid_out_list $blkid_out_list lib/support/Makefile \ |
44dfb378 | 13870 | lib/ss/ss.pc lib/et/com_err.pc lib/e2p/e2p.pc lib/ext2fs/ext2fs.pc \ |
921f4ad5 | 13871 | misc/Makefile ext2ed/Makefile e2fsck/Makefile \ |
94ba8c75 | 13872 | debugfs/Makefile tests/Makefile tests/progs/Makefile \ |
98a5ad61 MA |
13873 | resize/Makefile doc/Makefile intl/Makefile \ |
13874 | intl/libgnuintl.h po/Makefile.in ; do | |
94ba8c75 TT |
13875 | if test -d `dirname ${srcdir}/$i` ; then |
13876 | outlist="$outlist $i" | |
13877 | fi | |
13878 | done | |
e1052144 TT |
13879 | ac_config_files="$ac_config_files $outlist" |
13880 | ||
b0cacab0 | 13881 | cat >confcache <<\_ACEOF |
50e1e10f TT |
13882 | # This file is a shell script that caches the results of configure |
13883 | # tests run on this system so they can be shared between configure | |
b0cacab0 TT |
13884 | # scripts and configure runs, see configure's option --config-cache. |
13885 | # It is not useful on other systems. If it contains results you don't | |
13886 | # want to keep, you may remove or edit it. | |
50e1e10f | 13887 | # |
b0cacab0 TT |
13888 | # config.status only pays attention to the cache file if you give it |
13889 | # the --recheck option to rerun configure. | |
50e1e10f | 13890 | # |
b0cacab0 TT |
13891 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
13892 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
13893 | # following values. | |
13894 | ||
13895 | _ACEOF | |
13896 | ||
21c84b71 TT |
13897 | # The following way of writing the cache mishandles newlines in values, |
13898 | # but we know of no workaround that is simple, portable, and efficient. | |
e1052144 | 13899 | # So, we kill variables containing newlines. |
50e1e10f TT |
13900 | # Ultrix sh set writes to stderr and can't be redirected directly, |
13901 | # and sets the high bit in the cache file unless we assign to the vars. | |
e1052144 TT |
13902 | ( |
13903 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
13904 | eval ac_val=\$$ac_var | |
13905 | case $ac_val in #( | |
13906 | *${as_nl}*) | |
13907 | case $ac_var in #( | |
57aa50d4 | 13908 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
39fd3d4f | 13909 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
e1052144 TT |
13910 | esac |
13911 | case $ac_var in #( | |
13912 | _ | IFS | as_nl) ;; #( | |
39fd3d4f | 13913 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
57aa50d4 | 13914 | *) { eval $ac_var=; unset $ac_var;} ;; |
e1052144 TT |
13915 | esac ;; |
13916 | esac | |
13917 | done | |
13918 | ||
b0cacab0 | 13919 | (set) 2>&1 | |
e1052144 TT |
13920 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
13921 | *${as_nl}ac_space=\ *) | |
57aa50d4 TT |
13922 | # `set' does not quote correctly, so add quotes: double-quote |
13923 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
b0cacab0 TT |
13924 | sed -n \ |
13925 | "s/'/'\\\\''/g; | |
13926 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
e1052144 | 13927 | ;; #( |
b0cacab0 TT |
13928 | *) |
13929 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
e1052144 | 13930 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
b0cacab0 | 13931 | ;; |
e1052144 TT |
13932 | esac | |
13933 | sort | |
13934 | ) | | |
b0cacab0 | 13935 | sed ' |
e1052144 | 13936 | /^ac_cv_env_/b end |
b0cacab0 | 13937 | t clear |
e1052144 | 13938 | :clear |
b0cacab0 TT |
13939 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
13940 | t end | |
e1052144 TT |
13941 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
13942 | :end' >>confcache | |
13943 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
13944 | if test -w "$cache_file"; then | |
d6a4bcb5 | 13945 | if test "x$cache_file" != "x/dev/null"; then |
57aa50d4 | 13946 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
39fd3d4f | 13947 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
d6a4bcb5 TB |
13948 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
13949 | cat confcache >"$cache_file" | |
13950 | else | |
13951 | case $cache_file in #( | |
13952 | */* | ?:*) | |
13953 | mv -f confcache "$cache_file"$$ && | |
13954 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
13955 | *) | |
13956 | mv -f confcache "$cache_file" ;; | |
13957 | esac | |
13958 | fi | |
13959 | fi | |
50e1e10f | 13960 | else |
57aa50d4 | 13961 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
39fd3d4f | 13962 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
50e1e10f TT |
13963 | fi |
13964 | fi | |
13965 | rm -f confcache | |
13966 | ||
50e1e10f TT |
13967 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
13968 | # Let make expand exec_prefix. | |
13969 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
13970 | ||
d1154eb4 | 13971 | DEFS=-DHAVE_CONFIG_H |
b0cacab0 TT |
13972 | |
13973 | ac_libobjs= | |
13974 | ac_ltlibobjs= | |
d6a4bcb5 | 13975 | U= |
b0cacab0 TT |
13976 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
13977 | # 1. Remove the extension, and $U if already installed. | |
e1052144 | 13978 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
39fd3d4f | 13979 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
e1052144 TT |
13980 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
13981 | # will be set to the directory where LIBOBJS objects are built. | |
57aa50d4 TT |
13982 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
13983 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
b0cacab0 TT |
13984 | done |
13985 | LIBOBJS=$ac_libobjs | |
50e1e10f | 13986 | |
b0cacab0 TT |
13987 | LTLIBOBJS=$ac_ltlibobjs |
13988 | ||
13989 | ||
13990 | ||
39fd3d4f | 13991 | |
d6a4bcb5 | 13992 | : "${CONFIG_STATUS=./config.status}" |
39fd3d4f | 13993 | ac_write_fail=0 |
b0cacab0 TT |
13994 | ac_clean_files_save=$ac_clean_files |
13995 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
57aa50d4 | 13996 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
39fd3d4f | 13997 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
57aa50d4 TT |
13998 | as_write_fail=0 |
13999 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
b0cacab0 TT |
14000 | #! $SHELL |
14001 | # Generated by $as_me. | |
93636bde | 14002 | # Run this file to recreate the current configuration. |
93636bde | 14003 | # Compiler output produced by configure, useful for debugging |
b0cacab0 | 14004 | # configure, is in config.log if it exists. |
07a0db15 | 14005 | |
b0cacab0 TT |
14006 | debug=false |
14007 | ac_cs_recheck=false | |
14008 | ac_cs_silent=false | |
b0cacab0 | 14009 | |
57aa50d4 TT |
14010 | SHELL=\${CONFIG_SHELL-$SHELL} |
14011 | export SHELL | |
14012 | _ASEOF | |
14013 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
14014 | ## -------------------- ## | |
14015 | ## M4sh Initialization. ## | |
14016 | ## -------------------- ## | |
b0cacab0 | 14017 | |
29a5deed TT |
14018 | # Be more Bourne compatible |
14019 | DUALCASE=1; export DUALCASE # for MKS sh | |
57aa50d4 | 14020 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
b0cacab0 TT |
14021 | emulate sh |
14022 | NULLCMD=: | |
39fd3d4f | 14023 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
b0cacab0 TT |
14024 | # is contrary to our usage. Disable this feature. |
14025 | alias -g '${1+"$@"}'='"$@"' | |
e1052144 TT |
14026 | setopt NO_GLOB_SUBST |
14027 | else | |
57aa50d4 TT |
14028 | case `(set -o) 2>/dev/null` in #( |
14029 | *posix*) : | |
14030 | set -o posix ;; #( | |
14031 | *) : | |
14032 | ;; | |
29a5deed | 14033 | esac |
b0cacab0 | 14034 | fi |
29a5deed TT |
14035 | |
14036 | ||
39fd3d4f SJR |
14037 | as_nl=' |
14038 | ' | |
14039 | export as_nl | |
14040 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
14041 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
14042 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
14043 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
57aa50d4 TT |
14044 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
14045 | # but without wasting forks for bash or zsh. | |
14046 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
14047 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
14048 | as_echo='print -r --' | |
14049 | as_echo_n='print -rn --' | |
14050 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
39fd3d4f SJR |
14051 | as_echo='printf %s\n' |
14052 | as_echo_n='printf %s' | |
14053 | else | |
14054 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
14055 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
14056 | as_echo_n='/usr/ucb/echo -n' | |
e1052144 | 14057 | else |
39fd3d4f SJR |
14058 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
14059 | as_echo_n_body='eval | |
14060 | arg=$1; | |
57aa50d4 | 14061 | case $arg in #( |
39fd3d4f SJR |
14062 | *"$as_nl"*) |
14063 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
14064 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
14065 | esac; | |
14066 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
14067 | ' | |
14068 | export as_echo_n_body | |
14069 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
e1052144 | 14070 | fi |
39fd3d4f SJR |
14071 | export as_echo_body |
14072 | as_echo='sh -c $as_echo_body as_echo' | |
14073 | fi | |
14074 | ||
14075 | # The user is always right. | |
14076 | if test "${PATH_SEPARATOR+set}" != set; then | |
14077 | PATH_SEPARATOR=: | |
14078 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
14079 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
14080 | PATH_SEPARATOR=';' | |
14081 | } | |
e1052144 TT |
14082 | fi |
14083 | ||
b0cacab0 | 14084 | |
e1052144 TT |
14085 | # IFS |
14086 | # We need space, tab and new line, in precisely that order. Quoting is | |
14087 | # there to prevent editors from complaining about space-tab. | |
14088 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
14089 | # splitting by setting IFS to empty value.) | |
e1052144 TT |
14090 | IFS=" "" $as_nl" |
14091 | ||
14092 | # Find who we are. Look in the path if we contain no directory separator. | |
d6a4bcb5 | 14093 | as_myself= |
57aa50d4 | 14094 | case $0 in #(( |
e1052144 TT |
14095 | *[\\/]* ) as_myself=$0 ;; |
14096 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14097 | for as_dir in $PATH | |
14098 | do | |
14099 | IFS=$as_save_IFS | |
14100 | test -z "$as_dir" && as_dir=. | |
57aa50d4 TT |
14101 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
14102 | done | |
e1052144 TT |
14103 | IFS=$as_save_IFS |
14104 | ||
14105 | ;; | |
14106 | esac | |
14107 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
14108 | # in which case we are not to be found in the path. | |
14109 | if test "x$as_myself" = x; then | |
14110 | as_myself=$0 | |
14111 | fi | |
14112 | if test ! -f "$as_myself"; then | |
39fd3d4f | 14113 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
57aa50d4 | 14114 | exit 1 |
e1052144 TT |
14115 | fi |
14116 | ||
57aa50d4 TT |
14117 | # Unset variables that we do not need and which cause bugs (e.g. in |
14118 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
14119 | # suppresses any "Segmentation fault" message there. '((' could | |
14120 | # trigger a bug in pdksh 5.2.14. | |
14121 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
14122 | do eval test x\${$as_var+set} = xset \ | |
14123 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
e1052144 | 14124 | done |
b0cacab0 TT |
14125 | PS1='$ ' |
14126 | PS2='> ' | |
14127 | PS4='+ ' | |
14128 | ||
14129 | # NLS nuisances. | |
39fd3d4f SJR |
14130 | LC_ALL=C |
14131 | export LC_ALL | |
14132 | LANGUAGE=C | |
14133 | export LANGUAGE | |
b0cacab0 | 14134 | |
57aa50d4 TT |
14135 | # CDPATH. |
14136 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
14137 | ||
14138 | ||
d6a4bcb5 TB |
14139 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
14140 | # ---------------------------------------- | |
57aa50d4 TT |
14141 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
14142 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
d6a4bcb5 | 14143 | # script with STATUS, using 1 if that was 0. |
57aa50d4 TT |
14144 | as_fn_error () |
14145 | { | |
d6a4bcb5 TB |
14146 | as_status=$1; test $as_status -eq 0 && as_status=1 |
14147 | if test "$4"; then | |
14148 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
14149 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
57aa50d4 | 14150 | fi |
d6a4bcb5 | 14151 | $as_echo "$as_me: error: $2" >&2 |
57aa50d4 TT |
14152 | as_fn_exit $as_status |
14153 | } # as_fn_error | |
14154 | ||
14155 | ||
14156 | # as_fn_set_status STATUS | |
14157 | # ----------------------- | |
14158 | # Set $? to STATUS, without forking. | |
14159 | as_fn_set_status () | |
14160 | { | |
14161 | return $1 | |
14162 | } # as_fn_set_status | |
14163 | ||
14164 | # as_fn_exit STATUS | |
14165 | # ----------------- | |
14166 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
14167 | as_fn_exit () | |
14168 | { | |
14169 | set +e | |
14170 | as_fn_set_status $1 | |
14171 | exit $1 | |
14172 | } # as_fn_exit | |
14173 | ||
14174 | # as_fn_unset VAR | |
14175 | # --------------- | |
14176 | # Portably unset VAR. | |
14177 | as_fn_unset () | |
14178 | { | |
14179 | { eval $1=; unset $1;} | |
14180 | } | |
14181 | as_unset=as_fn_unset | |
14182 | # as_fn_append VAR VALUE | |
14183 | # ---------------------- | |
14184 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
14185 | # advantage of any shell optimizations that allow amortized linear growth over | |
14186 | # repeated appends, instead of the typical quadratic growth present in naive | |
14187 | # implementations. | |
14188 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
14189 | eval 'as_fn_append () | |
14190 | { | |
14191 | eval $1+=\$2 | |
14192 | }' | |
14193 | else | |
14194 | as_fn_append () | |
14195 | { | |
14196 | eval $1=\$$1\$2 | |
14197 | } | |
14198 | fi # as_fn_append | |
14199 | ||
14200 | # as_fn_arith ARG... | |
14201 | # ------------------ | |
14202 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
14203 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
14204 | # must be portable across $(()) and expr. | |
14205 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
14206 | eval 'as_fn_arith () | |
14207 | { | |
14208 | as_val=$(( $* )) | |
14209 | }' | |
14210 | else | |
14211 | as_fn_arith () | |
14212 | { | |
14213 | as_val=`expr "$@" || test $? -eq 1` | |
14214 | } | |
14215 | fi # as_fn_arith | |
14216 | ||
14217 | ||
e1052144 TT |
14218 | if expr a : '\(a\)' >/dev/null 2>&1 && |
14219 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
b0cacab0 TT |
14220 | as_expr=expr |
14221 | else | |
14222 | as_expr=false | |
14223 | fi | |
14224 | ||
e1052144 | 14225 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
b0cacab0 TT |
14226 | as_basename=basename |
14227 | else | |
14228 | as_basename=false | |
14229 | fi | |
14230 | ||
57aa50d4 TT |
14231 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
14232 | as_dirname=dirname | |
14233 | else | |
14234 | as_dirname=false | |
14235 | fi | |
b0cacab0 | 14236 | |
e1052144 | 14237 | as_me=`$as_basename -- "$0" || |
b0cacab0 TT |
14238 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
14239 | X"$0" : 'X\(//\)$' \| \ | |
e1052144 | 14240 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
39fd3d4f | 14241 | $as_echo X/"$0" | |
e1052144 TT |
14242 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
14243 | s//\1/ | |
14244 | q | |
14245 | } | |
14246 | /^X\/\(\/\/\)$/{ | |
14247 | s//\1/ | |
14248 | q | |
14249 | } | |
14250 | /^X\/\(\/\).*/{ | |
14251 | s//\1/ | |
14252 | q | |
14253 | } | |
14254 | s/.*/./; q'` | |
b0cacab0 | 14255 | |
57aa50d4 TT |
14256 | # Avoid depending upon Character Ranges. |
14257 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
14258 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
14259 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
14260 | as_cr_digits='0123456789' | |
14261 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
e1052144 TT |
14262 | |
14263 | ECHO_C= ECHO_N= ECHO_T= | |
57aa50d4 | 14264 | case `echo -n x` in #((((( |
e1052144 | 14265 | -n*) |
57aa50d4 | 14266 | case `echo 'xy\c'` in |
e1052144 | 14267 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
57aa50d4 TT |
14268 | xy) ECHO_C='\c';; |
14269 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
14270 | ECHO_T=' ';; | |
e1052144 TT |
14271 | esac;; |
14272 | *) | |
14273 | ECHO_N='-n';; | |
b0cacab0 | 14274 | esac |
b0cacab0 TT |
14275 | |
14276 | rm -f conf$$ conf$$.exe conf$$.file | |
e1052144 TT |
14277 | if test -d conf$$.dir; then |
14278 | rm -f conf$$.dir/conf$$.file | |
14279 | else | |
14280 | rm -f conf$$.dir | |
39fd3d4f SJR |
14281 | mkdir conf$$.dir 2>/dev/null |
14282 | fi | |
14283 | if (echo >conf$$.file) 2>/dev/null; then | |
14284 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
14285 | as_ln_s='ln -s' | |
14286 | # ... but there are two gotchas: | |
14287 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
14288 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
d6a4bcb5 | 14289 | # In both cases, we have to default to `cp -pR'. |
39fd3d4f | 14290 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
d6a4bcb5 | 14291 | as_ln_s='cp -pR' |
39fd3d4f SJR |
14292 | elif ln conf$$.file conf$$ 2>/dev/null; then |
14293 | as_ln_s=ln | |
14294 | else | |
d6a4bcb5 | 14295 | as_ln_s='cp -pR' |
39fd3d4f | 14296 | fi |
b0cacab0 | 14297 | else |
d6a4bcb5 | 14298 | as_ln_s='cp -pR' |
b0cacab0 | 14299 | fi |
e1052144 TT |
14300 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
14301 | rmdir conf$$.dir 2>/dev/null | |
b0cacab0 | 14302 | |
57aa50d4 TT |
14303 | |
14304 | # as_fn_mkdir_p | |
14305 | # ------------- | |
14306 | # Create "$as_dir" as a directory, including parents if necessary. | |
14307 | as_fn_mkdir_p () | |
14308 | { | |
14309 | ||
14310 | case $as_dir in #( | |
14311 | -*) as_dir=./$as_dir;; | |
14312 | esac | |
14313 | test -d "$as_dir" || eval $as_mkdir_p || { | |
14314 | as_dirs= | |
14315 | while :; do | |
14316 | case $as_dir in #( | |
14317 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
14318 | *) as_qdir=$as_dir;; | |
14319 | esac | |
14320 | as_dirs="'$as_qdir' $as_dirs" | |
14321 | as_dir=`$as_dirname -- "$as_dir" || | |
14322 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
14323 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
14324 | X"$as_dir" : 'X\(//\)$' \| \ | |
14325 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
14326 | $as_echo X"$as_dir" | | |
14327 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
14328 | s//\1/ | |
14329 | q | |
14330 | } | |
14331 | /^X\(\/\/\)[^/].*/{ | |
14332 | s//\1/ | |
14333 | q | |
14334 | } | |
14335 | /^X\(\/\/\)$/{ | |
14336 | s//\1/ | |
14337 | q | |
14338 | } | |
14339 | /^X\(\/\).*/{ | |
14340 | s//\1/ | |
14341 | q | |
14342 | } | |
14343 | s/.*/./; q'` | |
14344 | test -d "$as_dir" && break | |
14345 | done | |
14346 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
d6a4bcb5 | 14347 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
57aa50d4 TT |
14348 | |
14349 | ||
14350 | } # as_fn_mkdir_p | |
b0cacab0 | 14351 | if mkdir -p . 2>/dev/null; then |
57aa50d4 | 14352 | as_mkdir_p='mkdir -p "$as_dir"' |
b0cacab0 TT |
14353 | else |
14354 | test -d ./-p && rmdir ./-p | |
14355 | as_mkdir_p=false | |
14356 | fi | |
14357 | ||
d6a4bcb5 TB |
14358 | |
14359 | # as_fn_executable_p FILE | |
14360 | # ----------------------- | |
14361 | # Test if FILE is an executable regular file. | |
14362 | as_fn_executable_p () | |
14363 | { | |
14364 | test -f "$1" && test -x "$1" | |
14365 | } # as_fn_executable_p | |
14366 | as_test_x='test -x' | |
14367 | as_executable_p=as_fn_executable_p | |
b0cacab0 TT |
14368 | |
14369 | # Sed expression to map a string onto a valid CPP name. | |
14370 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
14371 | ||
14372 | # Sed expression to map a string onto a valid variable name. | |
14373 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
14374 | ||
14375 | ||
b0cacab0 | 14376 | exec 6>&1 |
57aa50d4 TT |
14377 | ## ----------------------------------- ## |
14378 | ## Main body of $CONFIG_STATUS script. ## | |
14379 | ## ----------------------------------- ## | |
14380 | _ASEOF | |
14381 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
b0cacab0 | 14382 | |
57aa50d4 TT |
14383 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
14384 | # Save the log message, to keep $0 and so on meaningful, and to | |
b0cacab0 | 14385 | # report actual input values of CONFIG_FILES etc. instead of their |
e1052144 TT |
14386 | # values after options handling. |
14387 | ac_log=" | |
b0cacab0 | 14388 | This file was extended by $as_me, which was |
d6a4bcb5 | 14389 | generated by GNU Autoconf 2.69. Invocation command line was |
b0cacab0 TT |
14390 | |
14391 | CONFIG_FILES = $CONFIG_FILES | |
14392 | CONFIG_HEADERS = $CONFIG_HEADERS | |
14393 | CONFIG_LINKS = $CONFIG_LINKS | |
14394 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
14395 | $ $0 $@ | |
14396 | ||
e1052144 TT |
14397 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
14398 | " | |
14399 | ||
b0cacab0 TT |
14400 | _ACEOF |
14401 | ||
39fd3d4f SJR |
14402 | case $ac_config_files in *" |
14403 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
14404 | esac | |
14405 | ||
d1154eb4 TT |
14406 | case $ac_config_headers in *" |
14407 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
14408 | esac | |
39fd3d4f SJR |
14409 | |
14410 | ||
14411 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
b0cacab0 | 14412 | # Files that config.status was made for. |
e1052144 | 14413 | config_files="$ac_config_files" |
d1154eb4 | 14414 | config_headers="$ac_config_headers" |
e1052144 | 14415 | config_commands="$ac_config_commands" |
b0cacab0 | 14416 | |
e1052144 | 14417 | _ACEOF |
b0cacab0 | 14418 | |
39fd3d4f | 14419 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
b0cacab0 | 14420 | ac_cs_usage="\ |
57aa50d4 TT |
14421 | \`$as_me' instantiates files and other configuration actions |
14422 | from templates according to the current configuration. Unless the files | |
14423 | and actions are specified as TAGs, all are instantiated by default. | |
b0cacab0 | 14424 | |
57aa50d4 | 14425 | Usage: $0 [OPTION]... [TAG]... |
b0cacab0 TT |
14426 | |
14427 | -h, --help print this help, then exit | |
29a5deed | 14428 | -V, --version print version number and configuration settings, then exit |
61ef2474 | 14429 | --config print configuration, then exit |
39fd3d4f SJR |
14430 | -q, --quiet, --silent |
14431 | do not print progress messages | |
b0cacab0 TT |
14432 | -d, --debug don't remove temporary files |
14433 | --recheck update $as_me by reconfiguring in the same conditions | |
39fd3d4f SJR |
14434 | --file=FILE[:TEMPLATE] |
14435 | instantiate the configuration file FILE | |
d1154eb4 TT |
14436 | --header=FILE[:TEMPLATE] |
14437 | instantiate the configuration header FILE | |
b0cacab0 TT |
14438 | |
14439 | Configuration files: | |
14440 | $config_files | |
14441 | ||
d1154eb4 TT |
14442 | Configuration headers: |
14443 | $config_headers | |
14444 | ||
b0cacab0 TT |
14445 | Configuration commands: |
14446 | $config_commands | |
14447 | ||
57aa50d4 | 14448 | Report bugs to the package provider." |
b0cacab0 | 14449 | |
e1052144 | 14450 | _ACEOF |
39fd3d4f | 14451 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
61ef2474 | 14452 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
b0cacab0 TT |
14453 | ac_cs_version="\\ |
14454 | config.status | |
d6a4bcb5 | 14455 | configured by $0, generated by GNU Autoconf 2.69, |
61ef2474 | 14456 | with options \\"\$ac_cs_config\\" |
b0cacab0 | 14457 | |
d6a4bcb5 | 14458 | Copyright (C) 2012 Free Software Foundation, Inc. |
b0cacab0 TT |
14459 | This config.status script is free software; the Free Software Foundation |
14460 | gives unlimited permission to copy, distribute and modify it." | |
e1052144 TT |
14461 | |
14462 | ac_pwd='$ac_pwd' | |
14463 | srcdir='$srcdir' | |
14464 | INSTALL='$INSTALL' | |
93613951 | 14465 | MKDIR_P='$MKDIR_P' |
39fd3d4f SJR |
14466 | AWK='$AWK' |
14467 | test -n "\$AWK" || AWK=awk | |
b0cacab0 TT |
14468 | _ACEOF |
14469 | ||
39fd3d4f SJR |
14470 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
14471 | # The default lists apply if the user does not specify any file. | |
b0cacab0 TT |
14472 | ac_need_defaults=: |
14473 | while test $# != 0 | |
07a0db15 | 14474 | do |
b0cacab0 | 14475 | case $1 in |
d6a4bcb5 | 14476 | --*=?*) |
e1052144 TT |
14477 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
14478 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
b0cacab0 TT |
14479 | ac_shift=: |
14480 | ;; | |
d6a4bcb5 TB |
14481 | --*=) |
14482 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
14483 | ac_optarg= | |
14484 | ac_shift=: | |
14485 | ;; | |
e1052144 | 14486 | *) |
b0cacab0 TT |
14487 | ac_option=$1 |
14488 | ac_optarg=$2 | |
14489 | ac_shift=shift | |
14490 | ;; | |
b0cacab0 TT |
14491 | esac |
14492 | ||
14493 | case $ac_option in | |
14494 | # Handling of the options. | |
93636bde | 14495 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
b0cacab0 | 14496 | ac_cs_recheck=: ;; |
e1052144 | 14497 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
39fd3d4f | 14498 | $as_echo "$ac_cs_version"; exit ;; |
61ef2474 TT |
14499 | --config | --confi | --conf | --con | --co | --c ) |
14500 | $as_echo "$ac_cs_config"; exit ;; | |
e1052144 | 14501 | --debug | --debu | --deb | --de | --d | -d ) |
b0cacab0 TT |
14502 | debug=: ;; |
14503 | --file | --fil | --fi | --f ) | |
14504 | $ac_shift | |
39fd3d4f SJR |
14505 | case $ac_optarg in |
14506 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
d6a4bcb5 | 14507 | '') as_fn_error $? "missing file argument" ;; |
39fd3d4f | 14508 | esac |
57aa50d4 | 14509 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
b0cacab0 | 14510 | ac_need_defaults=false;; |
d1154eb4 TT |
14511 | --header | --heade | --head | --hea ) |
14512 | $ac_shift | |
14513 | case $ac_optarg in | |
14514 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
14515 | esac | |
14516 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
14517 | ac_need_defaults=false;; | |
14518 | --he | --h) | |
14519 | # Conflict between --help and --header | |
d6a4bcb5 | 14520 | as_fn_error $? "ambiguous option: \`$1' |
d1154eb4 TT |
14521 | Try \`$0 --help' for more information.";; |
14522 | --help | --hel | -h ) | |
39fd3d4f | 14523 | $as_echo "$ac_cs_usage"; exit ;; |
b0cacab0 TT |
14524 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
14525 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
14526 | ac_cs_silent=: ;; | |
14527 | ||
14528 | # This is an error. | |
d6a4bcb5 | 14529 | -*) as_fn_error $? "unrecognized option: \`$1' |
57aa50d4 | 14530 | Try \`$0 --help' for more information." ;; |
b0cacab0 | 14531 | |
57aa50d4 | 14532 | *) as_fn_append ac_config_targets " $1" |
e1052144 | 14533 | ac_need_defaults=false ;; |
b0cacab0 | 14534 | |
07a0db15 | 14535 | esac |
b0cacab0 | 14536 | shift |
07a0db15 TT |
14537 | done |
14538 | ||
b0cacab0 TT |
14539 | ac_configure_extra_args= |
14540 | ||
14541 | if $ac_cs_silent; then | |
14542 | exec 6>/dev/null | |
14543 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
14544 | fi | |
14545 | ||
14546 | _ACEOF | |
39fd3d4f | 14547 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
b0cacab0 | 14548 | if \$ac_cs_recheck; then |
d6a4bcb5 | 14549 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
39fd3d4f SJR |
14550 | shift |
14551 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
14552 | CONFIG_SHELL='$SHELL' | |
e1052144 | 14553 | export CONFIG_SHELL |
39fd3d4f | 14554 | exec "\$@" |
b0cacab0 | 14555 | fi |
07a0db15 | 14556 | |
b0cacab0 | 14557 | _ACEOF |
39fd3d4f | 14558 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
e1052144 TT |
14559 | exec 5>>config.log |
14560 | { | |
14561 | echo | |
14562 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
14563 | ## Running $as_me. ## | |
14564 | _ASBOX | |
39fd3d4f | 14565 | $as_echo "$ac_log" |
e1052144 | 14566 | } >&5 |
07a0db15 | 14567 | |
e1052144 | 14568 | _ACEOF |
39fd3d4f | 14569 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
b0cacab0 | 14570 | # |
e1052144 | 14571 | # INIT-COMMANDS |
b0cacab0 | 14572 | # |
b0cacab0 TT |
14573 | # Capture the value of obsolete ALL_LINGUAS because we need it to compute |
14574 | # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it | |
93613951 | 14575 | # from automake < 1.5. |
b0cacab0 TT |
14576 | eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' |
14577 | # Capture the value of LINGUAS because we need it to compute CATALOGS. | |
14578 | LINGUAS="${LINGUAS-%UNSET%}" | |
14579 | ||
14580 | ||
14581 | _ACEOF | |
14582 | ||
39fd3d4f | 14583 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
e1052144 TT |
14584 | |
14585 | # Handling of arguments. | |
b0cacab0 TT |
14586 | for ac_config_target in $ac_config_targets |
14587 | do | |
e1052144 | 14588 | case $ac_config_target in |
d1154eb4 | 14589 | "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;; |
93613951 | 14590 | "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;; |
e1052144 TT |
14591 | "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;; |
14592 | ||
d6a4bcb5 | 14593 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
b0cacab0 TT |
14594 | esac |
14595 | done | |
14596 | ||
e1052144 | 14597 | |
b0cacab0 TT |
14598 | # If the user did not use the arguments to specify the items to instantiate, |
14599 | # then the envvar interface is used. Set only those that are not. | |
14600 | # We use the long form for the default assignment because of an extremely | |
14601 | # bizarre bug on SunOS 4.1.3. | |
14602 | if $ac_need_defaults; then | |
14603 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
d1154eb4 | 14604 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
b0cacab0 TT |
14605 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
14606 | fi | |
14607 | ||
14608 | # Have a temporary directory for convenience. Make it in the build tree | |
e1052144 | 14609 | # simply because there is no reason against having it here, and in addition, |
b0cacab0 | 14610 | # creating and moving files from /tmp can sometimes cause problems. |
e1052144 TT |
14611 | # Hook for its removal unless debugging. |
14612 | # Note that there is a small window in which the directory will not be cleaned: | |
14613 | # after its creation but before its name has been assigned to `$tmp'. | |
b0cacab0 TT |
14614 | $debug || |
14615 | { | |
d6a4bcb5 | 14616 | tmp= ac_tmp= |
e1052144 | 14617 | trap 'exit_status=$? |
d6a4bcb5 TB |
14618 | : "${ac_tmp:=$tmp}" |
14619 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
e1052144 | 14620 | ' 0 |
57aa50d4 | 14621 | trap 'as_fn_exit 1' 1 2 13 15 |
b0cacab0 | 14622 | } |
b0cacab0 TT |
14623 | # Create a (secure) tmp directory for tmp files. |
14624 | ||
14625 | { | |
e1052144 | 14626 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
d6a4bcb5 | 14627 | test -d "$tmp" |
b0cacab0 TT |
14628 | } || |
14629 | { | |
e1052144 TT |
14630 | tmp=./conf$$-$RANDOM |
14631 | (umask 077 && mkdir "$tmp") | |
d6a4bcb5 TB |
14632 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
14633 | ac_tmp=$tmp | |
b0cacab0 | 14634 | |
39fd3d4f SJR |
14635 | # Set up the scripts for CONFIG_FILES section. |
14636 | # No need to generate them if there are no CONFIG_FILES. | |
14637 | # This happens for instance with `./config.status config.h'. | |
e1052144 TT |
14638 | if test -n "$CONFIG_FILES"; then |
14639 | ||
39fd3d4f SJR |
14640 | if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then |
14641 | ac_cs_awk_getline=: | |
14642 | ac_cs_awk_pipe_init= | |
14643 | ac_cs_awk_read_file=' | |
14644 | while ((getline aline < (F[key])) > 0) | |
14645 | print(aline) | |
14646 | close(F[key])' | |
14647 | ac_cs_awk_pipe_fini= | |
14648 | else | |
14649 | ac_cs_awk_getline=false | |
14650 | ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" | |
14651 | ac_cs_awk_read_file=' | |
14652 | print "|#_!!_#|" | |
14653 | print "cat " F[key] " &&" | |
14654 | '$ac_cs_awk_pipe_init | |
14655 | # The final `:' finishes the AND list. | |
14656 | ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' | |
14657 | fi | |
57aa50d4 TT |
14658 | ac_cr=`echo X | tr X '\015'` |
14659 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
14660 | # But we know of no other shell where ac_cr would be empty at this | |
14661 | # point, so we can use a bashism as a fallback. | |
14662 | if test "x$ac_cr" = x; then | |
14663 | eval ac_cr=\$\'\\r\' | |
14664 | fi | |
39fd3d4f SJR |
14665 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
14666 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
d6a4bcb5 | 14667 | ac_cs_awk_cr='\\r' |
39fd3d4f SJR |
14668 | else |
14669 | ac_cs_awk_cr=$ac_cr | |
14670 | fi | |
e1052144 | 14671 | |
d6a4bcb5 | 14672 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
39fd3d4f | 14673 | _ACEOF |
e1052144 | 14674 | |
39fd3d4f SJR |
14675 | # Create commands to substitute file output variables. |
14676 | { | |
14677 | echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && | |
d6a4bcb5 | 14678 | echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' && |
39fd3d4f SJR |
14679 | echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && |
14680 | echo "_ACAWK" && | |
14681 | echo "_ACEOF" | |
14682 | } >conf$$files.sh && | |
14683 | . ./conf$$files.sh || | |
d6a4bcb5 | 14684 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
39fd3d4f | 14685 | rm -f conf$$files.sh |
e1052144 | 14686 | |
39fd3d4f SJR |
14687 | { |
14688 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
14689 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
14690 | echo "_ACEOF" | |
14691 | } >conf$$subs.sh || | |
d6a4bcb5 TB |
14692 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
14693 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
e1052144 TT |
14694 | ac_delim='%!_!# ' |
14695 | for ac_last_try in false false false false false :; do | |
39fd3d4f | 14696 | . ./conf$$subs.sh || |
d6a4bcb5 | 14697 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
39fd3d4f SJR |
14698 | |
14699 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
14700 | if test $ac_delim_n = $ac_delim_num; then | |
e1052144 TT |
14701 | break |
14702 | elif $ac_last_try; then | |
d6a4bcb5 | 14703 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
e1052144 TT |
14704 | else |
14705 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
21c84b71 | 14706 | fi |
e1052144 | 14707 | done |
39fd3d4f SJR |
14708 | rm -f conf$$subs.sh |
14709 | ||
14710 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
d6a4bcb5 | 14711 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
39fd3d4f SJR |
14712 | _ACEOF |
14713 | sed -n ' | |
14714 | h | |
14715 | s/^/S["/; s/!.*/"]=/ | |
14716 | p | |
14717 | g | |
14718 | s/^[^!]*!// | |
14719 | :repl | |
14720 | t repl | |
14721 | s/'"$ac_delim"'$// | |
14722 | t delim | |
14723 | :nl | |
14724 | h | |
61ef2474 | 14725 | s/\(.\{148\}\)..*/\1/ |
39fd3d4f SJR |
14726 | t more1 |
14727 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
14728 | p | |
14729 | n | |
14730 | b repl | |
14731 | :more1 | |
14732 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
14733 | p | |
14734 | g | |
14735 | s/.\{148\}// | |
14736 | t nl | |
14737 | :delim | |
14738 | h | |
61ef2474 | 14739 | s/\(.\{148\}\)..*/\1/ |
39fd3d4f SJR |
14740 | t more2 |
14741 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
14742 | p | |
14743 | b | |
14744 | :more2 | |
14745 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
14746 | p | |
14747 | g | |
14748 | s/.\{148\}// | |
14749 | t delim | |
14750 | ' <conf$$subs.awk | sed ' | |
14751 | /^[^""]/{ | |
14752 | N | |
14753 | s/\n// | |
e1052144 | 14754 | } |
39fd3d4f SJR |
14755 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
14756 | rm -f conf$$subs.awk | |
14757 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
14758 | _ACAWK | |
d6a4bcb5 | 14759 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
39fd3d4f SJR |
14760 | for (key in S) S_is_set[key] = 1 |
14761 | FS = "\a" | |
14762 | \$ac_cs_awk_pipe_init | |
e1052144 | 14763 | } |
39fd3d4f SJR |
14764 | { |
14765 | line = $ 0 | |
14766 | nfields = split(line, field, "@") | |
14767 | substed = 0 | |
14768 | len = length(field[1]) | |
14769 | for (i = 2; i < nfields; i++) { | |
14770 | key = field[i] | |
14771 | keylen = length(key) | |
14772 | if (S_is_set[key]) { | |
14773 | value = S[key] | |
14774 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
14775 | len += length(value) + length(field[++i]) | |
14776 | substed = 1 | |
14777 | } else | |
14778 | len += 1 + keylen | |
14779 | } | |
14780 | if (nfields == 3 && !substed) { | |
14781 | key = field[2] | |
14782 | if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { | |
14783 | \$ac_cs_awk_read_file | |
14784 | next | |
14785 | } | |
14786 | } | |
14787 | print line | |
488c75a6 | 14788 | } |
39fd3d4f SJR |
14789 | \$ac_cs_awk_pipe_fini |
14790 | _ACAWK | |
e1052144 | 14791 | _ACEOF |
39fd3d4f SJR |
14792 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
14793 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
14794 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
14795 | else | |
14796 | cat | |
d6a4bcb5 TB |
14797 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
14798 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
b0cacab0 | 14799 | _ACEOF |
e1052144 | 14800 | |
d6a4bcb5 TB |
14801 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
14802 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
e1052144 TT |
14803 | # trailing colons and then remove the whole line if VPATH becomes empty |
14804 | # (actually we leave an empty line to preserve line numbers). | |
14805 | if test "x$srcdir" = x.; then | |
d6a4bcb5 TB |
14806 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
14807 | h | |
14808 | s/// | |
14809 | s/^/:/ | |
14810 | s/[ ]*$/:/ | |
14811 | s/:\$(srcdir):/:/g | |
14812 | s/:\${srcdir}:/:/g | |
14813 | s/:@srcdir@:/:/g | |
14814 | s/^:*// | |
e1052144 | 14815 | s/:*$// |
d6a4bcb5 TB |
14816 | x |
14817 | s/\(=[ ]*\).*/\1/ | |
14818 | G | |
14819 | s/\n// | |
e1052144 TT |
14820 | s/^[^=]*=[ ]*$// |
14821 | }' | |
14822 | fi | |
14823 | ||
39fd3d4f | 14824 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
e1052144 TT |
14825 | fi # test -n "$CONFIG_FILES" |
14826 | ||
d1154eb4 TT |
14827 | # Set up the scripts for CONFIG_HEADERS section. |
14828 | # No need to generate them if there are no CONFIG_HEADERS. | |
14829 | # This happens for instance with `./config.status Makefile'. | |
14830 | if test -n "$CONFIG_HEADERS"; then | |
d6a4bcb5 | 14831 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
d1154eb4 TT |
14832 | BEGIN { |
14833 | _ACEOF | |
14834 | ||
14835 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
14836 | # here-document in config.status, that substitutes the proper values into | |
14837 | # config.h.in to produce config.h. | |
14838 | ||
14839 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
14840 | # handling of long lines. | |
14841 | ac_delim='%!_!# ' | |
14842 | for ac_last_try in false false :; do | |
d6a4bcb5 TB |
14843 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
14844 | if test -z "$ac_tt"; then | |
d1154eb4 TT |
14845 | break |
14846 | elif $ac_last_try; then | |
d6a4bcb5 | 14847 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
d1154eb4 TT |
14848 | else |
14849 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
14850 | fi | |
14851 | done | |
14852 | ||
14853 | # For the awk script, D is an array of macro values keyed by name, | |
14854 | # likewise P contains macro parameters if any. Preserve backslash | |
14855 | # newline sequences. | |
14856 | ||
14857 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
14858 | sed -n ' | |
14859 | s/.\{148\}/&'"$ac_delim"'/g | |
14860 | t rset | |
14861 | :rset | |
14862 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
14863 | t def | |
14864 | d | |
14865 | :def | |
14866 | s/\\$// | |
14867 | t bsnl | |
14868 | s/["\\]/\\&/g | |
14869 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
14870 | D["\1"]=" \3"/p | |
14871 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
14872 | d | |
14873 | :bsnl | |
14874 | s/["\\]/\\&/g | |
14875 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
14876 | D["\1"]=" \3\\\\\\n"\\/p | |
14877 | t cont | |
14878 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
14879 | t cont | |
14880 | d | |
14881 | :cont | |
14882 | n | |
14883 | s/.\{148\}/&'"$ac_delim"'/g | |
14884 | t clear | |
14885 | :clear | |
14886 | s/\\$// | |
14887 | t bsnlc | |
14888 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
14889 | d | |
14890 | :bsnlc | |
14891 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
14892 | b cont | |
14893 | ' <confdefs.h | sed ' | |
14894 | s/'"$ac_delim"'/"\\\ | |
14895 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
14896 | ||
14897 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
14898 | for (key in D) D_is_set[key] = 1 | |
14899 | FS = "\a" | |
14900 | } | |
14901 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
14902 | line = \$ 0 | |
14903 | split(line, arg, " ") | |
14904 | if (arg[1] == "#") { | |
14905 | defundef = arg[2] | |
14906 | mac1 = arg[3] | |
14907 | } else { | |
14908 | defundef = substr(arg[1], 2) | |
14909 | mac1 = arg[2] | |
14910 | } | |
14911 | split(mac1, mac2, "(") #) | |
14912 | macro = mac2[1] | |
14913 | prefix = substr(line, 1, index(line, defundef) - 1) | |
14914 | if (D_is_set[macro]) { | |
14915 | # Preserve the white space surrounding the "#". | |
14916 | print prefix "define", macro P[macro] D[macro] | |
14917 | next | |
14918 | } else { | |
14919 | # Replace #undef with comments. This is necessary, for example, | |
14920 | # in the case of _POSIX_SOURCE, which is predefined and required | |
14921 | # on some systems where configure will not decide to define it. | |
14922 | if (defundef == "undef") { | |
14923 | print "/*", prefix defundef, macro, "*/" | |
14924 | next | |
14925 | } | |
14926 | } | |
14927 | } | |
14928 | { print } | |
14929 | _ACAWK | |
14930 | _ACEOF | |
14931 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
d6a4bcb5 | 14932 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
d1154eb4 TT |
14933 | fi # test -n "$CONFIG_HEADERS" |
14934 | ||
e1052144 | 14935 | |
d1154eb4 | 14936 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
39fd3d4f SJR |
14937 | shift |
14938 | for ac_tag | |
e1052144 TT |
14939 | do |
14940 | case $ac_tag in | |
14941 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
14942 | esac | |
14943 | case $ac_mode$ac_tag in | |
14944 | :[FHL]*:*);; | |
d6a4bcb5 | 14945 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
e1052144 TT |
14946 | :[FH]-) ac_tag=-:-;; |
14947 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
14948 | esac | |
14949 | ac_save_IFS=$IFS | |
14950 | IFS=: | |
14951 | set x $ac_tag | |
14952 | IFS=$ac_save_IFS | |
14953 | shift | |
14954 | ac_file=$1 | |
14955 | shift | |
14956 | ||
14957 | case $ac_mode in | |
14958 | :L) ac_source=$1;; | |
14959 | :[FH]) | |
14960 | ac_file_inputs= | |
14961 | for ac_f | |
14962 | do | |
14963 | case $ac_f in | |
d6a4bcb5 | 14964 | -) ac_f="$ac_tmp/stdin";; |
e1052144 TT |
14965 | *) # Look for the file first in the build tree, then in the source tree |
14966 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
14967 | # because $ac_f cannot contain `:'. | |
14968 | test -f "$ac_f" || | |
14969 | case $ac_f in | |
14970 | [\\/$]*) false;; | |
14971 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
14972 | esac || | |
d6a4bcb5 | 14973 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
e1052144 | 14974 | esac |
39fd3d4f | 14975 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
57aa50d4 | 14976 | as_fn_append ac_file_inputs " '$ac_f'" |
e1052144 TT |
14977 | done |
14978 | ||
14979 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
14980 | # use $as_me), people would be surprised to read: | |
14981 | # /* config.h. Generated by config.status. */ | |
39fd3d4f SJR |
14982 | configure_input='Generated from '` |
14983 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
14984 | `' by configure.' | |
e1052144 TT |
14985 | if test x"$ac_file" != x-; then |
14986 | configure_input="$ac_file. $configure_input" | |
57aa50d4 | 14987 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
39fd3d4f | 14988 | $as_echo "$as_me: creating $ac_file" >&6;} |
e1052144 | 14989 | fi |
39fd3d4f SJR |
14990 | # Neutralize special characters interpreted by sed in replacement strings. |
14991 | case $configure_input in #( | |
14992 | *\&* | *\|* | *\\* ) | |
14993 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
14994 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
14995 | *) ac_sed_conf_input=$configure_input;; | |
14996 | esac | |
e1052144 TT |
14997 | |
14998 | case $ac_tag in | |
d6a4bcb5 TB |
14999 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
15000 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
e1052144 TT |
15001 | esac |
15002 | ;; | |
b0cacab0 TT |
15003 | esac |
15004 | ||
e1052144 | 15005 | ac_dir=`$as_dirname -- "$ac_file" || |
b0cacab0 TT |
15006 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
15007 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
15008 | X"$ac_file" : 'X\(//\)$' \| \ | |
e1052144 | 15009 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
39fd3d4f | 15010 | $as_echo X"$ac_file" | |
e1052144 TT |
15011 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
15012 | s//\1/ | |
15013 | q | |
15014 | } | |
15015 | /^X\(\/\/\)[^/].*/{ | |
15016 | s//\1/ | |
15017 | q | |
15018 | } | |
15019 | /^X\(\/\/\)$/{ | |
15020 | s//\1/ | |
15021 | q | |
15022 | } | |
15023 | /^X\(\/\).*/{ | |
15024 | s//\1/ | |
15025 | q | |
15026 | } | |
15027 | s/.*/./; q'` | |
57aa50d4 | 15028 | as_dir="$ac_dir"; as_fn_mkdir_p |
b0cacab0 TT |
15029 | ac_builddir=. |
15030 | ||
e1052144 TT |
15031 | case "$ac_dir" in |
15032 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
15033 | *) | |
39fd3d4f | 15034 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
e1052144 | 15035 | # A ".." for each directory in $ac_dir_suffix. |
39fd3d4f | 15036 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
e1052144 TT |
15037 | case $ac_top_builddir_sub in |
15038 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
15039 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
15040 | esac ;; | |
15041 | esac | |
15042 | ac_abs_top_builddir=$ac_pwd | |
15043 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
15044 | # for backward compatibility: | |
15045 | ac_top_builddir=$ac_top_build_prefix | |
93636bde | 15046 | |
b0cacab0 | 15047 | case $srcdir in |
e1052144 | 15048 | .) # We are building in place. |
b0cacab0 | 15049 | ac_srcdir=. |
e1052144 TT |
15050 | ac_top_srcdir=$ac_top_builddir_sub |
15051 | ac_abs_top_srcdir=$ac_pwd ;; | |
15052 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
b0cacab0 | 15053 | ac_srcdir=$srcdir$ac_dir_suffix; |
e1052144 TT |
15054 | ac_top_srcdir=$srcdir |
15055 | ac_abs_top_srcdir=$srcdir ;; | |
15056 | *) # Relative name. | |
15057 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
15058 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
15059 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
b0cacab0 | 15060 | esac |
e1052144 | 15061 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
b0cacab0 | 15062 | |
b0cacab0 | 15063 | |
e1052144 TT |
15064 | case $ac_mode in |
15065 | :F) | |
15066 | # | |
15067 | # CONFIG_FILE | |
15068 | # | |
50e1e10f | 15069 | |
b0cacab0 TT |
15070 | case $INSTALL in |
15071 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
e1052144 | 15072 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
50e1e10f | 15073 | esac |
93613951 TT |
15074 | ac_MKDIR_P=$MKDIR_P |
15075 | case $MKDIR_P in | |
15076 | [\\/$]* | ?:[\\/]* ) ;; | |
15077 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
15078 | esac | |
e1052144 | 15079 | _ACEOF |
50e1e10f | 15080 | |
39fd3d4f | 15081 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
e1052144 TT |
15082 | # If the template does not know about datarootdir, expand it. |
15083 | # FIXME: This hack should be removed a few years after 2.60. | |
15084 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
39fd3d4f SJR |
15085 | ac_sed_dataroot=' |
15086 | /datarootdir/ { | |
e1052144 TT |
15087 | p |
15088 | q | |
15089 | } | |
15090 | /@datadir@/p | |
15091 | /@docdir@/p | |
15092 | /@infodir@/p | |
15093 | /@localedir@/p | |
57aa50d4 | 15094 | /@mandir@/p' |
39fd3d4f | 15095 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
e1052144 TT |
15096 | *datarootdir*) ac_datarootdir_seen=yes;; |
15097 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
57aa50d4 | 15098 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
39fd3d4f | 15099 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
b0cacab0 | 15100 | _ACEOF |
39fd3d4f | 15101 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
e1052144 TT |
15102 | ac_datarootdir_hack=' |
15103 | s&@datadir@&$datadir&g | |
15104 | s&@docdir@&$docdir&g | |
15105 | s&@infodir@&$infodir&g | |
15106 | s&@localedir@&$localedir&g | |
15107 | s&@mandir@&$mandir&g | |
57aa50d4 | 15108 | s&\\\${datarootdir}&$datarootdir&g' ;; |
e1052144 TT |
15109 | esac |
15110 | _ACEOF | |
15111 | ||
15112 | # Neutralize VPATH when `$srcdir' = `.'. | |
15113 | # Shell code in configure.ac might set extrasub. | |
15114 | # FIXME: do we really want to maintain this feature? | |
39fd3d4f SJR |
15115 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
15116 | ac_sed_extra="$ac_vpsub | |
b0cacab0 TT |
15117 | $extrasub |
15118 | _ACEOF | |
39fd3d4f | 15119 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
b0cacab0 TT |
15120 | :t |
15121 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
39fd3d4f | 15122 | s|@configure_input@|$ac_sed_conf_input|;t t |
e1052144 | 15123 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
39fd3d4f | 15124 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
e1052144 TT |
15125 | s&@srcdir@&$ac_srcdir&;t t |
15126 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
15127 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
15128 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
15129 | s&@builddir@&$ac_builddir&;t t | |
15130 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
15131 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
15132 | s&@INSTALL@&$ac_INSTALL&;t t | |
93613951 | 15133 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
e1052144 | 15134 | $ac_datarootdir_hack |
39fd3d4f SJR |
15135 | " |
15136 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | | |
15137 | if $ac_cs_awk_getline; then | |
d6a4bcb5 | 15138 | $AWK -f "$ac_tmp/subs.awk" |
39fd3d4f | 15139 | else |
d6a4bcb5 TB |
15140 | $AWK -f "$ac_tmp/subs.awk" | $SHELL |
15141 | fi \ | |
15142 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
e1052144 TT |
15143 | |
15144 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
d6a4bcb5 TB |
15145 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
15146 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
15147 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
57aa50d4 | 15148 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
d6a4bcb5 | 15149 | which seems to be undefined. Please make sure it is defined" >&5 |
39fd3d4f | 15150 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
d6a4bcb5 | 15151 | which seems to be undefined. Please make sure it is defined" >&2;} |
e1052144 | 15152 | |
d6a4bcb5 | 15153 | rm -f "$ac_tmp/stdin" |
e1052144 | 15154 | case $ac_file in |
d6a4bcb5 TB |
15155 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
15156 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
39fd3d4f | 15157 | esac \ |
d6a4bcb5 | 15158 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
e1052144 | 15159 | ;; |
d1154eb4 TT |
15160 | :H) |
15161 | # | |
15162 | # CONFIG_HEADER | |
15163 | # | |
15164 | if test x"$ac_file" != x-; then | |
15165 | { | |
15166 | $as_echo "/* $configure_input */" \ | |
d6a4bcb5 TB |
15167 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
15168 | } >"$ac_tmp/config.h" \ | |
15169 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
15170 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
d1154eb4 TT |
15171 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
15172 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
15173 | else | |
15174 | rm -f "$ac_file" | |
d6a4bcb5 TB |
15175 | mv "$ac_tmp/config.h" "$ac_file" \ |
15176 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
d1154eb4 TT |
15177 | fi |
15178 | else | |
15179 | $as_echo "/* $configure_input */" \ | |
d6a4bcb5 TB |
15180 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
15181 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
d1154eb4 TT |
15182 | fi |
15183 | ;; | |
07a0db15 | 15184 | |
57aa50d4 | 15185 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
39fd3d4f | 15186 | $as_echo "$as_me: executing $ac_file commands" >&6;} |
e1052144 TT |
15187 | ;; |
15188 | esac | |
a04eba3f | 15189 | |
b0cacab0 | 15190 | |
e1052144 | 15191 | case $ac_file$ac_mode in |
93613951 | 15192 | "po-directories":C) |
a04eba3f TT |
15193 | for ac_file in $CONFIG_FILES; do |
15194 | # Support "outfile[:infile[:infile...]]" | |
15195 | case "$ac_file" in | |
15196 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
15197 | esac | |
15198 | # PO directories have a Makefile.in generated from Makefile.in.in. | |
15199 | case "$ac_file" in */Makefile.in) | |
15200 | # Adjust a relative srcdir. | |
15201 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` | |
93613951 | 15202 | ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'` |
a04eba3f TT |
15203 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` |
15204 | # In autoconf-2.13 it is called $ac_given_srcdir. | |
15205 | # In autoconf-2.50 it is called $srcdir. | |
15206 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" | |
15207 | case "$ac_given_srcdir" in | |
15208 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; | |
15209 | /*) top_srcdir="$ac_given_srcdir" ;; | |
15210 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
15211 | esac | |
93613951 TT |
15212 | # Treat a directory as a PO directory if and only if it has a |
15213 | # POTFILES.in file. This allows packages to have multiple PO | |
15214 | # directories under different names or in different locations. | |
a04eba3f TT |
15215 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then |
15216 | rm -f "$ac_dir/POTFILES" | |
15217 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" | |
93613951 TT |
15218 | gt_tab=`printf '\t'` |
15219 | cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" | |
b0cacab0 TT |
15220 | POMAKEFILEDEPS="POTFILES.in" |
15221 | # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend | |
a04eba3f TT |
15222 | # on $ac_dir but don't depend on user-specified configuration |
15223 | # parameters. | |
15224 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then | |
15225 | # The LINGUAS file contains the set of available languages. | |
b0cacab0 | 15226 | if test -n "$OBSOLETE_ALL_LINGUAS"; then |
a04eba3f TT |
15227 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" |
15228 | fi | |
93613951 TT |
15229 | ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` |
15230 | # Hide the ALL_LINGUAS assignment from automake < 1.5. | |
a04eba3f | 15231 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' |
b0cacab0 TT |
15232 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" |
15233 | else | |
15234 | # The set of available languages was given in configure.in. | |
93613951 | 15235 | # Hide the ALL_LINGUAS assignment from automake < 1.5. |
b0cacab0 | 15236 | eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' |
a04eba3f | 15237 | fi |
b0cacab0 TT |
15238 | # Compute POFILES |
15239 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) | |
15240 | # Compute UPDATEPOFILES | |
15241 | # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) | |
15242 | # Compute DUMMYPOFILES | |
15243 | # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) | |
15244 | # Compute GMOFILES | |
15245 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) | |
a04eba3f TT |
15246 | case "$ac_given_srcdir" in |
15247 | .) srcdirpre= ;; | |
15248 | *) srcdirpre='$(srcdir)/' ;; | |
15249 | esac | |
15250 | POFILES= | |
a04eba3f TT |
15251 | UPDATEPOFILES= |
15252 | DUMMYPOFILES= | |
b0cacab0 | 15253 | GMOFILES= |
a04eba3f TT |
15254 | for lang in $ALL_LINGUAS; do |
15255 | POFILES="$POFILES $srcdirpre$lang.po" | |
a04eba3f TT |
15256 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" |
15257 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" | |
b0cacab0 | 15258 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" |
a04eba3f TT |
15259 | done |
15260 | # CATALOGS depends on both $ac_dir and the user's LINGUAS | |
15261 | # environment variable. | |
15262 | INST_LINGUAS= | |
15263 | if test -n "$ALL_LINGUAS"; then | |
15264 | for presentlang in $ALL_LINGUAS; do | |
15265 | useit=no | |
15266 | if test "%UNSET%" != "$LINGUAS"; then | |
15267 | desiredlanguages="$LINGUAS" | |
15268 | else | |
15269 | desiredlanguages="$ALL_LINGUAS" | |
15270 | fi | |
15271 | for desiredlang in $desiredlanguages; do | |
15272 | # Use the presentlang catalog if desiredlang is | |
15273 | # a. equal to presentlang, or | |
15274 | # b. a variant of presentlang (because in this case, | |
15275 | # presentlang can be used as a fallback for messages | |
15276 | # which are not translated in the desiredlang catalog). | |
15277 | case "$desiredlang" in | |
15278 | "$presentlang"*) useit=yes;; | |
15279 | esac | |
15280 | done | |
15281 | if test $useit = yes; then | |
15282 | INST_LINGUAS="$INST_LINGUAS $presentlang" | |
15283 | fi | |
15284 | done | |
15285 | fi | |
15286 | CATALOGS= | |
15287 | if test -n "$INST_LINGUAS"; then | |
15288 | for lang in $INST_LINGUAS; do | |
15289 | CATALOGS="$CATALOGS $lang.gmo" | |
15290 | done | |
15291 | fi | |
15292 | test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" | |
b0cacab0 | 15293 | sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" |
a04eba3f TT |
15294 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do |
15295 | if test -f "$f"; then | |
15296 | case "$f" in | |
15297 | *.orig | *.bak | *~) ;; | |
15298 | *) cat "$f" >> "$ac_dir/Makefile" ;; | |
15299 | esac | |
15300 | fi | |
15301 | done | |
15302 | fi | |
15303 | ;; | |
a64c9c13 | 15304 | esac |
b0cacab0 | 15305 | done ;; |
e1052144 | 15306 | |
b0cacab0 | 15307 | esac |
e1052144 | 15308 | done # for ac_tag |
07a0db15 | 15309 | |
b0cacab0 | 15310 | |
57aa50d4 | 15311 | as_fn_exit 0 |
b0cacab0 | 15312 | _ACEOF |
b0cacab0 TT |
15313 | ac_clean_files=$ac_clean_files_save |
15314 | ||
39fd3d4f | 15315 | test $ac_write_fail = 0 || |
d6a4bcb5 | 15316 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
39fd3d4f | 15317 | |
b0cacab0 TT |
15318 | |
15319 | # configure is writing to config.log, and then calls config.status. | |
15320 | # config.status does its own redirection, appending to config.log. | |
15321 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
15322 | # by configure, so config.status won't be able to write to it; its | |
15323 | # output is simply discarded. So we exec the FD to /dev/null, | |
15324 | # effectively closing config.log, so it can be properly (re)opened and | |
15325 | # appended to by config.status. When coming back to configure, we | |
15326 | # need to make the FD available again. | |
15327 | if test "$no_create" != yes; then | |
15328 | ac_cs_success=: | |
15329 | ac_config_status_args= | |
15330 | test "$silent" = yes && | |
15331 | ac_config_status_args="$ac_config_status_args --quiet" | |
15332 | exec 5>/dev/null | |
15333 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
15334 | exec 5>>config.log | |
15335 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
15336 | # would make configure fail if this is the last instruction. | |
d6a4bcb5 | 15337 | $ac_cs_success || as_fn_exit 1 |
b0cacab0 | 15338 | fi |
39fd3d4f | 15339 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
57aa50d4 | 15340 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
39fd3d4f SJR |
15341 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
15342 | fi | |
50e1e10f | 15343 | |
ee683a13 | 15344 | if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi |