]>
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 | |
d1154eb4 | 633 | INCLUDES |
39fd3d4f | 634 | DO_TEST_SUITE |
fd1677e8 | 635 | LDFLAGS_STATIC |
39fd3d4f SJR |
636 | root_sysconfdir |
637 | root_libdir | |
638 | root_sbindir | |
639 | root_bindir | |
640 | root_prefix | |
641 | UNIX_CMT | |
642 | CYGWIN_CMT | |
643 | LINUX_CMT | |
644 | UNI_DIFF_OPTS | |
645 | SEM_INIT_LIB | |
81cbf1ef DW |
646 | FUSE_CMT |
647 | FUSE_LIB | |
c94da047 | 648 | CLOCK_GETTIME_LIB |
b291c11f | 649 | MAGIC_LIB |
39fd3d4f | 650 | SOCKET_LIB |
2dd680f3 | 651 | SIZEOF_TIME_T |
cc68e8a6 | 652 | SIZEOF_OFF_T |
39fd3d4f SJR |
653 | SIZEOF_LONG_LONG |
654 | SIZEOF_LONG | |
655 | SIZEOF_INT | |
656 | SIZEOF_SHORT | |
ec3a69bb | 657 | DD |
39fd3d4f SJR |
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 | |
feb235e0 | 744 | SUBSET_CMT |
0afb9be6 | 745 | ALL_CMT |
39fd3d4f SJR |
746 | BLKID_CMT |
747 | DEPPROFILED_LIBBLKID | |
748 | PROFILED_LIBBLKID | |
749 | DEPSTATIC_LIBBLKID | |
750 | STATIC_LIBBLKID | |
751 | DEPLIBBLKID | |
752 | LIBBLKID | |
753 | UUID_CMT | |
754 | DEPPROFILED_LIBUUID | |
755 | PROFILED_LIBUUID | |
756 | DEPSTATIC_LIBUUID | |
757 | STATIC_LIBUUID | |
758 | DEPLIBUUID | |
759 | LIBUUID | |
93613951 TT |
760 | PKG_CONFIG_LIBDIR |
761 | PKG_CONFIG_PATH | |
39fd3d4f SJR |
762 | PKG_CONFIG |
763 | TEST_IO_CMT | |
764 | PRIVATE_LIBS_CMT | |
765 | LDFLAG_DYNAMIC | |
766 | PROFILED_LIB_EXT | |
767 | STATIC_LIB_EXT | |
768 | LIB_EXT | |
39fd3d4f SJR |
769 | PROFILE_CMT |
770 | BSDLIB_CMT | |
771 | ELF_CMT | |
c13351f6 | 772 | Q |
c1986ecb | 773 | ES |
c13351f6 | 774 | E |
5aa6c3f6 | 775 | LINK_BUILD_FLAGS |
183c73b0 | 776 | SYMLINK_RELATIVE |
5aa6c3f6 | 777 | LINK_INSTALL_FLAGS |
39fd3d4f | 778 | MAINTAINER_CMT |
93613951 TT |
779 | EGREP |
780 | GREP | |
39fd3d4f | 781 | CPP |
9b3018a8 | 782 | RDYNAMIC |
57aa50d4 | 783 | DLOPEN_LIB |
39fd3d4f SJR |
784 | OBJEXT |
785 | EXEEXT | |
786 | ac_ct_CC | |
787 | CPPFLAGS | |
788 | LDFLAGS | |
789 | CFLAGS | |
790 | CC | |
791 | host_os | |
792 | host_vendor | |
793 | host_cpu | |
794 | host | |
795 | build_os | |
796 | build_vendor | |
797 | build_cpu | |
798 | build | |
799 | E2FSPROGS_PKGVER | |
800 | E2FSPROGS_VERSION | |
801 | E2FSPROGS_DAY | |
802 | E2FSPROGS_MONTH | |
803 | E2FSPROGS_YEAR | |
804 | target_alias | |
805 | host_alias | |
806 | build_alias | |
807 | LIBS | |
808 | ECHO_T | |
809 | ECHO_N | |
810 | ECHO_C | |
811 | DEFS | |
812 | mandir | |
813 | localedir | |
814 | libdir | |
815 | psdir | |
816 | pdfdir | |
817 | dvidir | |
818 | htmldir | |
819 | infodir | |
820 | docdir | |
821 | oldincludedir | |
822 | includedir | |
2ab53829 | 823 | runstatedir |
39fd3d4f SJR |
824 | localstatedir |
825 | sharedstatedir | |
826 | sysconfdir | |
827 | datadir | |
828 | datarootdir | |
829 | libexecdir | |
830 | sbindir | |
831 | bindir | |
832 | program_transform_name | |
833 | prefix | |
834 | exec_prefix | |
57aa50d4 | 835 | PACKAGE_URL |
39fd3d4f SJR |
836 | PACKAGE_BUGREPORT |
837 | PACKAGE_STRING | |
838 | PACKAGE_VERSION | |
839 | PACKAGE_TARNAME | |
840 | PACKAGE_NAME | |
841 | PATH_SEPARATOR | |
842 | SHELL' | |
e1052144 TT |
843 | ac_subst_files='MCONFIG |
844 | MAKEFILE_ELF | |
845 | MAKEFILE_BSDLIB | |
846 | MAKEFILE_PROFILE | |
e1052144 | 847 | MAKEFILE_LIBRARY |
488c75a6 TT |
848 | ASM_TYPES_HEADER |
849 | PUBLIC_CONFIG_HEADER' | |
39fd3d4f SJR |
850 | ac_user_opts=' |
851 | enable_option_checking | |
852 | with_diet_libc | |
853 | with_cc | |
39fd3d4f SJR |
854 | with_ccopts |
855 | with_ldopts | |
856 | with_root_prefix | |
857 | enable_maintainer_mode | |
5aa6c3f6 | 858 | enable_symlink_install |
91d11da1 | 859 | enable_relative_symlinks |
183c73b0 | 860 | enable_symlink_relative_symlinks |
5aa6c3f6 | 861 | enable_symlink_build |
c13351f6 | 862 | enable_verbose_makecmds |
39fd3d4f SJR |
863 | enable_elf_shlibs |
864 | enable_bsd_shlibs | |
865 | enable_profile | |
fedfb27f | 866 | enable_gcov |
fd1677e8 | 867 | enable_hardening |
39fd3d4f SJR |
868 | enable_jbd_debug |
869 | enable_blkid_debug | |
870 | enable_testio_debug | |
871 | enable_libuuid | |
872 | enable_libblkid | |
0afb9be6 | 873 | enable_subset |
3df6014a | 874 | enable_backtrace |
39fd3d4f SJR |
875 | enable_debugfs |
876 | enable_imager | |
877 | enable_resizer | |
8d9c50c5 | 878 | enable_defrag |
39fd3d4f SJR |
879 | enable_fsck |
880 | enable_e2initrd_helper | |
881 | enable_tls | |
882 | enable_uuidd | |
d6a4bcb5 | 883 | enable_mmp |
749f0712 | 884 | enable_tdb |
1625bf42 TB |
885 | enable_bmap_stats |
886 | enable_bmap_stats_ops | |
39fd3d4f | 887 | enable_nls |
93613951 | 888 | enable_threads |
39fd3d4f SJR |
889 | with_gnu_ld |
890 | enable_rpath | |
93613951 | 891 | with_libpth_prefix |
39fd3d4f SJR |
892 | with_libiconv_prefix |
893 | with_included_gettext | |
894 | with_libintl_prefix | |
81cbf1ef | 895 | enable_fuse2fs |
55e00a25 | 896 | with_multiarch |
39fd3d4f | 897 | ' |
e1052144 TT |
898 | ac_precious_vars='build_alias |
899 | host_alias | |
900 | target_alias | |
901 | CC | |
902 | CFLAGS | |
903 | LDFLAGS | |
29a5deed | 904 | LIBS |
e1052144 | 905 | CPPFLAGS |
14b596d4 | 906 | CPP |
93613951 TT |
907 | PKG_CONFIG |
908 | PKG_CONFIG_PATH | |
909 | PKG_CONFIG_LIBDIR' | |
e1052144 | 910 | |
50e1e10f TT |
911 | |
912 | # Initialize some variables set by options. | |
b0cacab0 TT |
913 | ac_init_help= |
914 | ac_init_version=false | |
39fd3d4f SJR |
915 | ac_unrecognized_opts= |
916 | ac_unrecognized_sep= | |
50e1e10f TT |
917 | # The variables have the same names as the options, with |
918 | # dashes changed to underlines. | |
b0cacab0 | 919 | cache_file=/dev/null |
50e1e10f | 920 | exec_prefix=NONE |
50e1e10f | 921 | no_create= |
50e1e10f TT |
922 | no_recursion= |
923 | prefix=NONE | |
924 | program_prefix=NONE | |
925 | program_suffix=NONE | |
926 | program_transform_name=s,x,x, | |
927 | silent= | |
928 | site= | |
929 | srcdir= | |
50e1e10f TT |
930 | verbose= |
931 | x_includes=NONE | |
932 | x_libraries=NONE | |
b0cacab0 TT |
933 | |
934 | # Installation directory options. | |
935 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
936 | # and all the variables that are supposed to be based on exec_prefix | |
937 | # by default will actually change. | |
938 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
e1052144 | 939 | # (The list follows the same order as the GNU Coding Standards.) |
21c84b71 TT |
940 | bindir='${exec_prefix}/bin' |
941 | sbindir='${exec_prefix}/sbin' | |
942 | libexecdir='${exec_prefix}/libexec' | |
e1052144 TT |
943 | datarootdir='${prefix}/share' |
944 | datadir='${datarootdir}' | |
21c84b71 TT |
945 | sysconfdir='${prefix}/etc' |
946 | sharedstatedir='${prefix}/com' | |
947 | localstatedir='${prefix}/var' | |
2ab53829 | 948 | runstatedir='${localstatedir}/run' |
21c84b71 TT |
949 | includedir='${prefix}/include' |
950 | oldincludedir='/usr/include' | |
e1052144 TT |
951 | docdir='${datarootdir}/doc/${PACKAGE}' |
952 | infodir='${datarootdir}/info' | |
953 | htmldir='${docdir}' | |
954 | dvidir='${docdir}' | |
955 | pdfdir='${docdir}' | |
956 | psdir='${docdir}' | |
957 | libdir='${exec_prefix}/lib' | |
958 | localedir='${datarootdir}/locale' | |
959 | mandir='${datarootdir}/man' | |
50e1e10f | 960 | |
50e1e10f | 961 | ac_prev= |
e1052144 | 962 | ac_dashdash= |
50e1e10f TT |
963 | for ac_option |
964 | do | |
50e1e10f TT |
965 | # If the previous option needs an argument, assign it. |
966 | if test -n "$ac_prev"; then | |
e1052144 | 967 | eval $ac_prev=\$ac_option |
50e1e10f TT |
968 | ac_prev= |
969 | continue | |
970 | fi | |
971 | ||
e1052144 | 972 | case $ac_option in |
d6a4bcb5 TB |
973 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
974 | *=) ac_optarg= ;; | |
975 | *) ac_optarg=yes ;; | |
e1052144 | 976 | esac |
50e1e10f TT |
977 | |
978 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
979 | ||
e1052144 TT |
980 | case $ac_dashdash$ac_option in |
981 | --) | |
982 | ac_dashdash=yes ;; | |
50e1e10f | 983 | |
21c84b71 TT |
984 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
985 | ac_prev=bindir ;; | |
986 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
b0cacab0 | 987 | bindir=$ac_optarg ;; |
21c84b71 TT |
988 | |
989 | -build | --build | --buil | --bui | --bu) | |
b0cacab0 | 990 | ac_prev=build_alias ;; |
21c84b71 | 991 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
b0cacab0 | 992 | build_alias=$ac_optarg ;; |
50e1e10f TT |
993 | |
994 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
995 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
996 | ac_prev=cache_file ;; | |
997 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
998 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
b0cacab0 TT |
999 | cache_file=$ac_optarg ;; |
1000 | ||
1001 | --config-cache | -C) | |
1002 | cache_file=config.cache ;; | |
50e1e10f | 1003 | |
e1052144 | 1004 | -datadir | --datadir | --datadi | --datad) |
21c84b71 | 1005 | ac_prev=datadir ;; |
e1052144 | 1006 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
b0cacab0 | 1007 | datadir=$ac_optarg ;; |
21c84b71 | 1008 | |
e1052144 TT |
1009 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
1010 | | --dataroo | --dataro | --datar) | |
1011 | ac_prev=datarootdir ;; | |
1012 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
1013 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
1014 | datarootdir=$ac_optarg ;; | |
1015 | ||
50e1e10f | 1016 | -disable-* | --disable-*) |
39fd3d4f | 1017 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
50e1e10f | 1018 | # Reject names that are not valid shell variable names. |
39fd3d4f | 1019 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d6a4bcb5 | 1020 | as_fn_error $? "invalid feature name: $ac_useropt" |
39fd3d4f SJR |
1021 | ac_useropt_orig=$ac_useropt |
1022 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1023 | case $ac_user_opts in | |
1024 | *" | |
1025 | "enable_$ac_useropt" | |
1026 | "*) ;; | |
1027 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
1028 | ac_unrecognized_sep=', ';; | |
1029 | esac | |
1030 | eval enable_$ac_useropt=no ;; | |
e1052144 TT |
1031 | |
1032 | -docdir | --docdir | --docdi | --doc | --do) | |
1033 | ac_prev=docdir ;; | |
1034 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1035 | docdir=$ac_optarg ;; | |
1036 | ||
1037 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1038 | ac_prev=dvidir ;; | |
1039 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1040 | dvidir=$ac_optarg ;; | |
50e1e10f TT |
1041 | |
1042 | -enable-* | --enable-*) | |
39fd3d4f | 1043 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
50e1e10f | 1044 | # Reject names that are not valid shell variable names. |
39fd3d4f | 1045 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d6a4bcb5 | 1046 | as_fn_error $? "invalid feature name: $ac_useropt" |
39fd3d4f SJR |
1047 | ac_useropt_orig=$ac_useropt |
1048 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1049 | case $ac_user_opts in | |
1050 | *" | |
1051 | "enable_$ac_useropt" | |
1052 | "*) ;; | |
1053 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1054 | ac_unrecognized_sep=', ';; | |
1055 | esac | |
1056 | eval enable_$ac_useropt=\$ac_optarg ;; | |
50e1e10f TT |
1057 | |
1058 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1059 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1060 | | --exec | --exe | --ex) | |
1061 | ac_prev=exec_prefix ;; | |
1062 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1063 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1064 | | --exec=* | --exe=* | --ex=*) | |
b0cacab0 | 1065 | exec_prefix=$ac_optarg ;; |
50e1e10f TT |
1066 | |
1067 | -gas | --gas | --ga | --g) | |
1068 | # Obsolete; use --with-gas. | |
1069 | with_gas=yes ;; | |
1070 | ||
b0cacab0 TT |
1071 | -help | --help | --hel | --he | -h) |
1072 | ac_init_help=long ;; | |
1073 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1074 | ac_init_help=recursive ;; | |
1075 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1076 | ac_init_help=short ;; | |
50e1e10f TT |
1077 | |
1078 | -host | --host | --hos | --ho) | |
b0cacab0 | 1079 | ac_prev=host_alias ;; |
50e1e10f | 1080 | -host=* | --host=* | --hos=* | --ho=*) |
b0cacab0 | 1081 | host_alias=$ac_optarg ;; |
50e1e10f | 1082 | |
e1052144 TT |
1083 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1084 | ac_prev=htmldir ;; | |
1085 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1086 | | --ht=*) | |
1087 | htmldir=$ac_optarg ;; | |
1088 | ||
21c84b71 TT |
1089 | -includedir | --includedir | --includedi | --included | --include \ |
1090 | | --includ | --inclu | --incl | --inc) | |
1091 | ac_prev=includedir ;; | |
1092 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1093 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
b0cacab0 | 1094 | includedir=$ac_optarg ;; |
21c84b71 TT |
1095 | |
1096 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1097 | ac_prev=infodir ;; | |
1098 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
b0cacab0 | 1099 | infodir=$ac_optarg ;; |
21c84b71 TT |
1100 | |
1101 | -libdir | --libdir | --libdi | --libd) | |
1102 | ac_prev=libdir ;; | |
1103 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
b0cacab0 | 1104 | libdir=$ac_optarg ;; |
21c84b71 TT |
1105 | |
1106 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1107 | | --libexe | --libex | --libe) | |
1108 | ac_prev=libexecdir ;; | |
1109 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1110 | | --libexe=* | --libex=* | --libe=*) | |
b0cacab0 | 1111 | libexecdir=$ac_optarg ;; |
21c84b71 | 1112 | |
e1052144 TT |
1113 | -localedir | --localedir | --localedi | --localed | --locale) |
1114 | ac_prev=localedir ;; | |
1115 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1116 | localedir=$ac_optarg ;; | |
1117 | ||
21c84b71 | 1118 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
e1052144 | 1119 | | --localstate | --localstat | --localsta | --localst | --locals) |
21c84b71 TT |
1120 | ac_prev=localstatedir ;; |
1121 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
e1052144 | 1122 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
b0cacab0 | 1123 | localstatedir=$ac_optarg ;; |
21c84b71 TT |
1124 | |
1125 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1126 | ac_prev=mandir ;; | |
1127 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
b0cacab0 | 1128 | mandir=$ac_optarg ;; |
21c84b71 | 1129 | |
50e1e10f TT |
1130 | -nfp | --nfp | --nf) |
1131 | # Obsolete; use --without-fp. | |
1132 | with_fp=no ;; | |
1133 | ||
1134 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
b0cacab0 | 1135 | | --no-cr | --no-c | -n) |
50e1e10f TT |
1136 | no_create=yes ;; |
1137 | ||
1138 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1139 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1140 | no_recursion=yes ;; | |
1141 | ||
21c84b71 TT |
1142 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
1143 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1144 | | --oldin | --oldi | --old | --ol | --o) | |
1145 | ac_prev=oldincludedir ;; | |
1146 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1147 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1148 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
b0cacab0 | 1149 | oldincludedir=$ac_optarg ;; |
21c84b71 | 1150 | |
50e1e10f TT |
1151 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
1152 | ac_prev=prefix ;; | |
1153 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
b0cacab0 | 1154 | prefix=$ac_optarg ;; |
50e1e10f TT |
1155 | |
1156 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1157 | | --program-pre | --program-pr | --program-p) | |
1158 | ac_prev=program_prefix ;; | |
1159 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1160 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
b0cacab0 | 1161 | program_prefix=$ac_optarg ;; |
50e1e10f TT |
1162 | |
1163 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1164 | | --program-suf | --program-su | --program-s) | |
1165 | ac_prev=program_suffix ;; | |
1166 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1167 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
b0cacab0 | 1168 | program_suffix=$ac_optarg ;; |
50e1e10f TT |
1169 | |
1170 | -program-transform-name | --program-transform-name \ | |
1171 | | --program-transform-nam | --program-transform-na \ | |
1172 | | --program-transform-n | --program-transform- \ | |
1173 | | --program-transform | --program-transfor \ | |
1174 | | --program-transfo | --program-transf \ | |
1175 | | --program-trans | --program-tran \ | |
1176 | | --progr-tra | --program-tr | --program-t) | |
1177 | ac_prev=program_transform_name ;; | |
1178 | -program-transform-name=* | --program-transform-name=* \ | |
1179 | | --program-transform-nam=* | --program-transform-na=* \ | |
1180 | | --program-transform-n=* | --program-transform-=* \ | |
1181 | | --program-transform=* | --program-transfor=* \ | |
1182 | | --program-transfo=* | --program-transf=* \ | |
1183 | | --program-trans=* | --program-tran=* \ | |
1184 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
b0cacab0 | 1185 | program_transform_name=$ac_optarg ;; |
50e1e10f | 1186 | |
e1052144 TT |
1187 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1188 | ac_prev=pdfdir ;; | |
1189 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1190 | pdfdir=$ac_optarg ;; | |
1191 | ||
1192 | -psdir | --psdir | --psdi | --psd | --ps) | |
1193 | ac_prev=psdir ;; | |
1194 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1195 | psdir=$ac_optarg ;; | |
1196 | ||
50e1e10f TT |
1197 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1198 | | -silent | --silent | --silen | --sile | --sil) | |
1199 | silent=yes ;; | |
1200 | ||
2ab53829 TT |
1201 | -runstatedir | --runstatedir | --runstatedi | --runstated \ |
1202 | | --runstate | --runstat | --runsta | --runst | --runs \ | |
1203 | | --run | --ru | --r) | |
1204 | ac_prev=runstatedir ;; | |
1205 | -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ | |
1206 | | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ | |
1207 | | --run=* | --ru=* | --r=*) | |
1208 | runstatedir=$ac_optarg ;; | |
1209 | ||
21c84b71 TT |
1210 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
1211 | ac_prev=sbindir ;; | |
1212 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1213 | | --sbi=* | --sb=*) | |
b0cacab0 | 1214 | sbindir=$ac_optarg ;; |
21c84b71 TT |
1215 | |
1216 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1217 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1218 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1219 | | --sha | --sh) | |
1220 | ac_prev=sharedstatedir ;; | |
1221 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1222 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1223 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1224 | | --sha=* | --sh=*) | |
b0cacab0 | 1225 | sharedstatedir=$ac_optarg ;; |
21c84b71 | 1226 | |
50e1e10f TT |
1227 | -site | --site | --sit) |
1228 | ac_prev=site ;; | |
1229 | -site=* | --site=* | --sit=*) | |
b0cacab0 | 1230 | site=$ac_optarg ;; |
50e1e10f TT |
1231 | |
1232 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1233 | ac_prev=srcdir ;; | |
1234 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
b0cacab0 | 1235 | srcdir=$ac_optarg ;; |
50e1e10f | 1236 | |
21c84b71 TT |
1237 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
1238 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1239 | ac_prev=sysconfdir ;; | |
1240 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1241 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
b0cacab0 | 1242 | sysconfdir=$ac_optarg ;; |
21c84b71 | 1243 | |
50e1e10f | 1244 | -target | --target | --targe | --targ | --tar | --ta | --t) |
b0cacab0 | 1245 | ac_prev=target_alias ;; |
50e1e10f | 1246 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
b0cacab0 | 1247 | target_alias=$ac_optarg ;; |
50e1e10f TT |
1248 | |
1249 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1250 | verbose=yes ;; | |
1251 | ||
b0cacab0 TT |
1252 | -version | --version | --versio | --versi | --vers | -V) |
1253 | ac_init_version=: ;; | |
50e1e10f TT |
1254 | |
1255 | -with-* | --with-*) | |
39fd3d4f | 1256 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
50e1e10f | 1257 | # Reject names that are not valid shell variable names. |
39fd3d4f | 1258 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d6a4bcb5 | 1259 | as_fn_error $? "invalid package name: $ac_useropt" |
39fd3d4f SJR |
1260 | ac_useropt_orig=$ac_useropt |
1261 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1262 | case $ac_user_opts in | |
1263 | *" | |
1264 | "with_$ac_useropt" | |
1265 | "*) ;; | |
1266 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1267 | ac_unrecognized_sep=', ';; | |
1268 | esac | |
1269 | eval with_$ac_useropt=\$ac_optarg ;; | |
50e1e10f TT |
1270 | |
1271 | -without-* | --without-*) | |
39fd3d4f | 1272 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
50e1e10f | 1273 | # Reject names that are not valid shell variable names. |
39fd3d4f | 1274 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d6a4bcb5 | 1275 | as_fn_error $? "invalid package name: $ac_useropt" |
39fd3d4f SJR |
1276 | ac_useropt_orig=$ac_useropt |
1277 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1278 | case $ac_user_opts in | |
1279 | *" | |
1280 | "with_$ac_useropt" | |
1281 | "*) ;; | |
1282 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1283 | ac_unrecognized_sep=', ';; | |
1284 | esac | |
1285 | eval with_$ac_useropt=no ;; | |
50e1e10f TT |
1286 | |
1287 | --x) | |
1288 | # Obsolete; use --with-x. | |
1289 | with_x=yes ;; | |
1290 | ||
1291 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1292 | | --x-incl | --x-inc | --x-in | --x-i) | |
1293 | ac_prev=x_includes ;; | |
1294 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1295 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
b0cacab0 | 1296 | x_includes=$ac_optarg ;; |
50e1e10f TT |
1297 | |
1298 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1299 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1300 | ac_prev=x_libraries ;; | |
1301 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1302 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
b0cacab0 | 1303 | x_libraries=$ac_optarg ;; |
50e1e10f | 1304 | |
d6a4bcb5 TB |
1305 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1306 | Try \`$0 --help' for more information" | |
50e1e10f TT |
1307 | ;; |
1308 | ||
b0cacab0 TT |
1309 | *=*) |
1310 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1311 | # Reject names that are not valid shell variable names. | |
57aa50d4 TT |
1312 | case $ac_envvar in #( |
1313 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
d6a4bcb5 | 1314 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
57aa50d4 | 1315 | esac |
e1052144 | 1316 | eval $ac_envvar=\$ac_optarg |
b0cacab0 TT |
1317 | export $ac_envvar ;; |
1318 | ||
21c84b71 | 1319 | *) |
b0cacab0 | 1320 | # FIXME: should be removed in autoconf 3.0. |
39fd3d4f | 1321 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
b0cacab0 | 1322 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
39fd3d4f | 1323 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
d6a4bcb5 | 1324 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
50e1e10f TT |
1325 | ;; |
1326 | ||
1327 | esac | |
1328 | done | |
1329 | ||
1330 | if test -n "$ac_prev"; then | |
b0cacab0 | 1331 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
d6a4bcb5 | 1332 | as_fn_error $? "missing argument to $ac_option" |
50e1e10f | 1333 | fi |
50e1e10f | 1334 | |
39fd3d4f SJR |
1335 | if test -n "$ac_unrecognized_opts"; then |
1336 | case $enable_option_checking in | |
1337 | no) ;; | |
d6a4bcb5 | 1338 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
39fd3d4f SJR |
1339 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
1340 | esac | |
1341 | fi | |
1342 | ||
1343 | # Check all directory arguments for consistency. | |
e1052144 TT |
1344 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1345 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1346 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
2ab53829 | 1347 | libdir localedir mandir runstatedir |
50e1e10f | 1348 | do |
e1052144 | 1349 | eval ac_val=\$$ac_var |
39fd3d4f SJR |
1350 | # Remove trailing slashes. |
1351 | case $ac_val in | |
1352 | */ ) | |
1353 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1354 | eval $ac_var=\$ac_val;; | |
1355 | esac | |
1356 | # Be sure to have absolute directory names. | |
b0cacab0 | 1357 | case $ac_val in |
e1052144 TT |
1358 | [\\/$]* | ?:[\\/]* ) continue;; |
1359 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
50e1e10f | 1360 | esac |
d6a4bcb5 | 1361 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
50e1e10f TT |
1362 | done |
1363 | ||
b0cacab0 TT |
1364 | # There might be people who depend on the old broken behavior: `$host' |
1365 | # used to hold the argument of --host etc. | |
1366 | # FIXME: To remove some day. | |
1367 | build=$build_alias | |
1368 | host=$host_alias | |
1369 | target=$target_alias | |
1370 | ||
1371 | # FIXME: To remove some day. | |
1372 | if test "x$host_alias" != x; then | |
1373 | if test "x$build_alias" = x; then | |
1374 | cross_compiling=maybe | |
b0cacab0 TT |
1375 | elif test "x$build_alias" != "x$host_alias"; then |
1376 | cross_compiling=yes | |
1377 | fi | |
1378 | fi | |
50e1e10f | 1379 | |
b0cacab0 TT |
1380 | ac_tool_prefix= |
1381 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1382 | ||
1383 | test "$silent" = yes && exec 6>/dev/null | |
50e1e10f | 1384 | |
50e1e10f | 1385 | |
e1052144 TT |
1386 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1387 | ac_ls_di=`ls -di .` && | |
1388 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
d6a4bcb5 | 1389 | as_fn_error $? "working directory cannot be determined" |
e1052144 | 1390 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
d6a4bcb5 | 1391 | as_fn_error $? "pwd does not report name of working directory" |
e1052144 TT |
1392 | |
1393 | ||
50e1e10f TT |
1394 | # Find the source files, if location was not specified. |
1395 | if test -z "$srcdir"; then | |
1396 | ac_srcdir_defaulted=yes | |
e1052144 | 1397 | # Try the directory containing this script, then the parent directory. |
39fd3d4f SJR |
1398 | ac_confdir=`$as_dirname -- "$as_myself" || |
1399 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1400 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1401 | X"$as_myself" : 'X\(//\)$' \| \ | |
1402 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1403 | $as_echo X"$as_myself" | | |
e1052144 TT |
1404 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1405 | s//\1/ | |
1406 | q | |
1407 | } | |
1408 | /^X\(\/\/\)[^/].*/{ | |
1409 | s//\1/ | |
1410 | q | |
1411 | } | |
1412 | /^X\(\/\/\)$/{ | |
1413 | s//\1/ | |
1414 | q | |
1415 | } | |
1416 | /^X\(\/\).*/{ | |
1417 | s//\1/ | |
1418 | q | |
1419 | } | |
1420 | s/.*/./; q'` | |
50e1e10f | 1421 | srcdir=$ac_confdir |
e1052144 | 1422 | if test ! -r "$srcdir/$ac_unique_file"; then |
50e1e10f TT |
1423 | srcdir=.. |
1424 | fi | |
1425 | else | |
1426 | ac_srcdir_defaulted=no | |
1427 | fi | |
e1052144 TT |
1428 | if test ! -r "$srcdir/$ac_unique_file"; then |
1429 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
d6a4bcb5 | 1430 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
50e1e10f | 1431 | fi |
e1052144 TT |
1432 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1433 | ac_abs_confdir=`( | |
d6a4bcb5 | 1434 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
e1052144 TT |
1435 | pwd)` |
1436 | # When building in place, set srcdir=. | |
1437 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1438 | srcdir=. | |
1439 | fi | |
1440 | # Remove unnecessary trailing slashes from srcdir. | |
1441 | # Double slashes in file names in object file debugging info | |
1442 | # mess up M-x gdb in Emacs. | |
1443 | case $srcdir in | |
1444 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1445 | esac | |
1446 | for ac_var in $ac_precious_vars; do | |
1447 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1448 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1449 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1450 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1451 | done | |
b0cacab0 TT |
1452 | |
1453 | # | |
1454 | # Report the --help message. | |
1455 | # | |
1456 | if test "$ac_init_help" = "long"; then | |
1457 | # Omit some internal or obsolete options to make the list less imposing. | |
1458 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1459 | cat <<_ACEOF | |
1460 | \`configure' configures this package to adapt to many kinds of systems. | |
1461 | ||
1462 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1463 | ||
1464 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1465 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1466 | ||
1467 | Defaults for the options are specified in brackets. | |
1468 | ||
1469 | Configuration: | |
1470 | -h, --help display this help and exit | |
1471 | --help=short display options specific to this package | |
1472 | --help=recursive display the short help of all the included packages | |
1473 | -V, --version display version information and exit | |
d6a4bcb5 | 1474 | -q, --quiet, --silent do not print \`checking ...' messages |
b0cacab0 TT |
1475 | --cache-file=FILE cache test results in FILE [disabled] |
1476 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1477 | -n, --no-create do not create output files | |
1478 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1479 | ||
b0cacab0 TT |
1480 | Installation directories: |
1481 | --prefix=PREFIX install architecture-independent files in PREFIX | |
39fd3d4f | 1482 | [$ac_default_prefix] |
b0cacab0 | 1483 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
39fd3d4f | 1484 | [PREFIX] |
b0cacab0 TT |
1485 | |
1486 | By default, \`make install' will install all the files in | |
1487 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1488 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1489 | for instance \`--prefix=\$HOME'. | |
1490 | ||
1491 | For better control, use the options below. | |
1492 | ||
1493 | Fine tuning of the installation directories: | |
39fd3d4f SJR |
1494 | --bindir=DIR user executables [EPREFIX/bin] |
1495 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1496 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1497 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1498 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1499 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
2ab53829 | 1500 | --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] |
39fd3d4f SJR |
1501 | --libdir=DIR object code libraries [EPREFIX/lib] |
1502 | --includedir=DIR C header files [PREFIX/include] | |
1503 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1504 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1505 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1506 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1507 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1508 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1509 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1510 | --htmldir=DIR html documentation [DOCDIR] | |
1511 | --dvidir=DIR dvi documentation [DOCDIR] | |
1512 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1513 | --psdir=DIR ps documentation [DOCDIR] | |
b0cacab0 TT |
1514 | _ACEOF |
1515 | ||
1516 | cat <<\_ACEOF | |
1517 | ||
1518 | System types: | |
1519 | --build=BUILD configure for building on BUILD [guessed] | |
1520 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1521 | _ACEOF | |
1522 | fi | |
1523 | ||
1524 | if test -n "$ac_init_help"; then | |
1525 | ||
1526 | cat <<\_ACEOF | |
1527 | ||
1528 | Optional Features: | |
39fd3d4f | 1529 | --disable-option-checking ignore unrecognized --enable/--with options |
b0cacab0 TT |
1530 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1531 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
98919bdb | 1532 | --enable-maintainer-mode enable makefile rules useful for maintainers |
5aa6c3f6 | 1533 | --enable-symlink-install use symlinks when installing instead of hard links |
183c73b0 | 1534 | --enable-relative-symlinks use relative symlinks when installing |
91d11da1 | 1535 | |
5aa6c3f6 TT |
1536 | --enable-symlink-build use symlinks while building instead of hard links |
1537 | --enable-verbose-makecmds enable verbose make command output | |
b0cacab0 TT |
1538 | --enable-elf-shlibs select ELF shared libraries |
1539 | --enable-bsd-shlibs select BSD shared libraries | |
1540 | --enable-profile build profiling libraries | |
fedfb27f | 1541 | --enable-gcov build for coverage testing using gcov |
fd1677e8 | 1542 | --enable-hardening build for coverage testing using gcov |
b0cacab0 TT |
1543 | --enable-jbd-debug enable journal debugging |
1544 | --enable-blkid-debug enable blkid debugging | |
af773654 | 1545 | --disable-testio-debug disable the use of the test I/O manager for debugging |
f5dffb81 TT |
1546 | --enable-libuuid build and use private uuid library |
1547 | --enable-libblkid build and use private blkid library | |
0afb9be6 | 1548 | --enable-subset enable subset-only build |
3df6014a | 1549 | --disable-backtrace disable use backtrace |
b0cacab0 TT |
1550 | --disable-debugfs disable support of debugfs program |
1551 | --disable-imager disable support of e2image program | |
1552 | --disable-resizer disable support of e2resize program | |
8d9c50c5 | 1553 | --disable-defrag disable support of e4defrag program |
b0cacab0 TT |
1554 | --enable-fsck build fsck wrapper program |
1555 | --enable-e2initrd-helper build e2initrd-helper program | |
3249394d | 1556 | --disable-tls disable use of thread local support |
5610f992 | 1557 | --disable-uuidd disable building the uuid daemon |
d6a4bcb5 | 1558 | --disable-mmp disable support mmp, Multi Mount Protection |
749f0712 | 1559 | --disable-tdb disable tdb support |
1625bf42 TB |
1560 | --disable-bmap-stats disable collection of bitmap stats. |
1561 | --enable-bmap-stats-ops enable collection of additional bitmap stats | |
b0cacab0 | 1562 | --disable-nls do not use Native Language Support |
93613951 TT |
1563 | --enable-threads={posix|solaris|pth|windows} |
1564 | specify multithreading API | |
1565 | --disable-threads build without multithread safety | |
b0cacab0 | 1566 | --disable-rpath do not hardcode runtime library paths |
f5dffb81 | 1567 | --disable-fuse2fs do not build fuse2fs |
b0cacab0 TT |
1568 | |
1569 | Optional Packages: | |
1570 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1571 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
3249394d | 1572 | --with-diet-libc use diet libc |
0b5b9f90 TT |
1573 | --with-cc no longer supported, use CC= instead |
1574 | --with-ccopts no longer supported, use CFLAGS= instead | |
1575 | --with-ldopts no longer supported, use LDFLAGS= instead | |
b0cacab0 | 1576 | --with-root-prefix=PREFIX override prefix variable for files to be placed in the root |
93613951 TT |
1577 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
1578 | --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib | |
1579 | --without-libpth-prefix don't search for libpth in includedir and libdir | |
b0cacab0 TT |
1580 | --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib |
1581 | --without-libiconv-prefix don't search for libiconv in includedir and libdir | |
1582 | --with-included-gettext use the GNU gettext library included here | |
1583 | --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib | |
1584 | --without-libintl-prefix don't search for libintl in includedir and libdir | |
55e00a25 | 1585 | --with-multiarch=ARCH specify the multiarch triplet |
b0cacab0 TT |
1586 | |
1587 | Some influential environment variables: | |
1588 | CC C compiler command | |
1589 | CFLAGS C compiler flags | |
1590 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1591 | nonstandard directory <lib dir> | |
29a5deed | 1592 | LIBS libraries to pass to the linker, e.g. -l<library> |
61ef2474 | 1593 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
e1052144 | 1594 | you have headers in a nonstandard directory <include dir> |
b0cacab0 | 1595 | CPP C preprocessor |
14b596d4 | 1596 | PKG_CONFIG path to pkg-config utility |
93613951 TT |
1597 | PKG_CONFIG_PATH |
1598 | directories to add to pkg-config's search path | |
1599 | PKG_CONFIG_LIBDIR | |
1600 | path overriding pkg-config's built-in search path | |
b0cacab0 TT |
1601 | |
1602 | Use these variables to override the choices made by `configure' or to help | |
1603 | it to find libraries and programs with nonstandard names/locations. | |
1604 | ||
57aa50d4 | 1605 | Report bugs to the package provider. |
b0cacab0 | 1606 | _ACEOF |
e1052144 | 1607 | ac_status=$? |
b0cacab0 TT |
1608 | fi |
1609 | ||
1610 | if test "$ac_init_help" = "recursive"; then | |
1611 | # If there are subdirs, report their specific --help. | |
b0cacab0 | 1612 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
39fd3d4f SJR |
1613 | test -d "$ac_dir" || |
1614 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1615 | continue | |
b0cacab0 TT |
1616 | ac_builddir=. |
1617 | ||
e1052144 TT |
1618 | case "$ac_dir" in |
1619 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1620 | *) | |
39fd3d4f | 1621 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
e1052144 | 1622 | # A ".." for each directory in $ac_dir_suffix. |
39fd3d4f | 1623 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
e1052144 TT |
1624 | case $ac_top_builddir_sub in |
1625 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1626 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1627 | esac ;; | |
1628 | esac | |
1629 | ac_abs_top_builddir=$ac_pwd | |
1630 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1631 | # for backward compatibility: | |
1632 | ac_top_builddir=$ac_top_build_prefix | |
b0cacab0 TT |
1633 | |
1634 | case $srcdir in | |
e1052144 | 1635 | .) # We are building in place. |
b0cacab0 | 1636 | ac_srcdir=. |
e1052144 TT |
1637 | ac_top_srcdir=$ac_top_builddir_sub |
1638 | ac_abs_top_srcdir=$ac_pwd ;; | |
1639 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
b0cacab0 | 1640 | ac_srcdir=$srcdir$ac_dir_suffix; |
e1052144 TT |
1641 | ac_top_srcdir=$srcdir |
1642 | ac_abs_top_srcdir=$srcdir ;; | |
1643 | *) # Relative name. | |
1644 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1645 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1646 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
b0cacab0 | 1647 | esac |
e1052144 TT |
1648 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1649 | ||
1650 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1651 | # Check for guested configure. | |
1652 | if test -f "$ac_srcdir/configure.gnu"; then | |
1653 | echo && | |
1654 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1655 | elif test -f "$ac_srcdir/configure"; then | |
1656 | echo && | |
1657 | $SHELL "$ac_srcdir/configure" --help=recursive | |
b0cacab0 | 1658 | else |
39fd3d4f | 1659 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
e1052144 TT |
1660 | fi || ac_status=$? |
1661 | cd "$ac_pwd" || { ac_status=$?; break; } | |
b0cacab0 TT |
1662 | done |
1663 | fi | |
1664 | ||
e1052144 | 1665 | test -n "$ac_init_help" && exit $ac_status |
b0cacab0 TT |
1666 | if $ac_init_version; then |
1667 | cat <<\_ACEOF | |
e1052144 | 1668 | configure |
d6a4bcb5 | 1669 | generated by GNU Autoconf 2.69 |
b0cacab0 | 1670 | |
d6a4bcb5 | 1671 | Copyright (C) 2012 Free Software Foundation, Inc. |
b0cacab0 TT |
1672 | This configure script is free software; the Free Software Foundation |
1673 | gives unlimited permission to copy, distribute and modify it. | |
1674 | _ACEOF | |
e1052144 | 1675 | exit |
b0cacab0 | 1676 | fi |
b0cacab0 | 1677 | |
57aa50d4 TT |
1678 | ## ------------------------ ## |
1679 | ## Autoconf initialization. ## | |
1680 | ## ------------------------ ## | |
b0cacab0 | 1681 | |
57aa50d4 TT |
1682 | # ac_fn_c_try_compile LINENO |
1683 | # -------------------------- | |
1684 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1685 | ac_fn_c_try_compile () | |
1686 | { | |
1687 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1688 | rm -f conftest.$ac_objext | |
1689 | if { { ac_try="$ac_compile" | |
1690 | case "(($ac_try" in | |
1691 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1692 | *) ac_try_echo=$ac_try;; | |
1693 | esac | |
1694 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1695 | $as_echo "$ac_try_echo"; } >&5 | |
1696 | (eval "$ac_compile") 2>conftest.err | |
1697 | ac_status=$? | |
1698 | if test -s conftest.err; then | |
1699 | grep -v '^ *+' conftest.err >conftest.er1 | |
1700 | cat conftest.er1 >&5 | |
1701 | mv -f conftest.er1 conftest.err | |
1702 | fi | |
1703 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1704 | test $ac_status = 0; } && { | |
1705 | test -z "$ac_c_werror_flag" || | |
1706 | test ! -s conftest.err | |
1707 | } && test -s conftest.$ac_objext; then : | |
1708 | ac_retval=0 | |
1709 | else | |
1710 | $as_echo "$as_me: failed program was:" >&5 | |
1711 | sed 's/^/| /' conftest.$ac_ext >&5 | |
b0cacab0 | 1712 | |
57aa50d4 TT |
1713 | ac_retval=1 |
1714 | fi | |
d6a4bcb5 | 1715 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
61ef2474 | 1716 | as_fn_set_status $ac_retval |
57aa50d4 TT |
1717 | |
1718 | } # ac_fn_c_try_compile | |
1719 | ||
1720 | # ac_fn_c_try_link LINENO | |
1721 | # ----------------------- | |
1722 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1723 | ac_fn_c_try_link () | |
b0cacab0 | 1724 | { |
57aa50d4 TT |
1725 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1726 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1727 | if { { ac_try="$ac_link" | |
1728 | case "(($ac_try" in | |
1729 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1730 | *) ac_try_echo=$ac_try;; | |
1731 | esac | |
1732 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1733 | $as_echo "$ac_try_echo"; } >&5 | |
1734 | (eval "$ac_link") 2>conftest.err | |
1735 | ac_status=$? | |
1736 | if test -s conftest.err; then | |
1737 | grep -v '^ *+' conftest.err >conftest.er1 | |
1738 | cat conftest.er1 >&5 | |
1739 | mv -f conftest.er1 conftest.err | |
1740 | fi | |
1741 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1742 | test $ac_status = 0; } && { | |
1743 | test -z "$ac_c_werror_flag" || | |
1744 | test ! -s conftest.err | |
1745 | } && test -s conftest$ac_exeext && { | |
1746 | test "$cross_compiling" = yes || | |
d6a4bcb5 | 1747 | test -x conftest$ac_exeext |
57aa50d4 TT |
1748 | }; then : |
1749 | ac_retval=0 | |
1750 | else | |
1751 | $as_echo "$as_me: failed program was:" >&5 | |
1752 | sed 's/^/| /' conftest.$ac_ext >&5 | |
b0cacab0 | 1753 | |
57aa50d4 TT |
1754 | ac_retval=1 |
1755 | fi | |
1756 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1757 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1758 | # interfere with the next link command; also delete a directory that is | |
1759 | # left behind by Apple's compiler. We do this before executing the actions. | |
1760 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
d6a4bcb5 | 1761 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
61ef2474 | 1762 | as_fn_set_status $ac_retval |
b0cacab0 | 1763 | |
57aa50d4 | 1764 | } # ac_fn_c_try_link |
b0cacab0 | 1765 | |
57aa50d4 TT |
1766 | # ac_fn_c_try_cpp LINENO |
1767 | # ---------------------- | |
1768 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1769 | ac_fn_c_try_cpp () | |
1770 | { | |
1771 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1772 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1773 | case "(($ac_try" in | |
1774 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1775 | *) ac_try_echo=$ac_try;; | |
1776 | esac | |
1777 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1778 | $as_echo "$ac_try_echo"; } >&5 | |
1779 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1780 | ac_status=$? | |
1781 | if test -s conftest.err; then | |
1782 | grep -v '^ *+' conftest.err >conftest.er1 | |
1783 | cat conftest.er1 >&5 | |
1784 | mv -f conftest.er1 conftest.err | |
1785 | fi | |
1786 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
d6a4bcb5 | 1787 | test $ac_status = 0; } > conftest.i && { |
57aa50d4 TT |
1788 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
1789 | test ! -s conftest.err | |
1790 | }; then : | |
1791 | ac_retval=0 | |
1792 | else | |
1793 | $as_echo "$as_me: failed program was:" >&5 | |
1794 | sed 's/^/| /' conftest.$ac_ext >&5 | |
b0cacab0 | 1795 | |
57aa50d4 TT |
1796 | ac_retval=1 |
1797 | fi | |
d6a4bcb5 | 1798 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
61ef2474 | 1799 | as_fn_set_status $ac_retval |
b0cacab0 | 1800 | |
57aa50d4 | 1801 | } # ac_fn_c_try_cpp |
b0cacab0 | 1802 | |
93613951 TT |
1803 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
1804 | # ------------------------------------------------------- | |
1805 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1806 | # the include files in INCLUDES and setting the cache variable VAR | |
1807 | # accordingly. | |
1808 | ac_fn_c_check_header_mongrel () | |
1809 | { | |
1810 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1811 | if eval \${$3+:} false; then : | |
1812 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1813 | $as_echo_n "checking for $2... " >&6; } | |
1814 | if eval \${$3+:} false; then : | |
1815 | $as_echo_n "(cached) " >&6 | |
1816 | fi | |
1817 | eval ac_res=\$$3 | |
1818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1819 | $as_echo "$ac_res" >&6; } | |
1820 | else | |
1821 | # Is the header compilable? | |
1822 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1823 | $as_echo_n "checking $2 usability... " >&6; } | |
1824 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1825 | /* end confdefs.h. */ | |
1826 | $4 | |
1827 | #include <$2> | |
1828 | _ACEOF | |
1829 | if ac_fn_c_try_compile "$LINENO"; then : | |
1830 | ac_header_compiler=yes | |
1831 | else | |
1832 | ac_header_compiler=no | |
1833 | fi | |
1834 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1836 | $as_echo "$ac_header_compiler" >&6; } | |
1837 | ||
1838 | # Is the header present? | |
1839 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1840 | $as_echo_n "checking $2 presence... " >&6; } | |
1841 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1842 | /* end confdefs.h. */ | |
1843 | #include <$2> | |
1844 | _ACEOF | |
1845 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1846 | ac_header_preproc=yes | |
1847 | else | |
1848 | ac_header_preproc=no | |
1849 | fi | |
1850 | rm -f conftest.err conftest.i conftest.$ac_ext | |
1851 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
1852 | $as_echo "$ac_header_preproc" >&6; } | |
1853 | ||
1854 | # So? What about this header? | |
1855 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1856 | yes:no: ) | |
1857 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1858 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1859 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1860 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1861 | ;; | |
1862 | no:yes:* ) | |
1863 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1864 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1865 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1866 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1867 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1868 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1869 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1870 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1871 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1872 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1873 | ;; | |
1874 | esac | |
1875 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1876 | $as_echo_n "checking for $2... " >&6; } | |
1877 | if eval \${$3+:} false; then : | |
1878 | $as_echo_n "(cached) " >&6 | |
1879 | else | |
1880 | eval "$3=\$ac_header_compiler" | |
1881 | fi | |
1882 | eval ac_res=\$$3 | |
1883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1884 | $as_echo "$ac_res" >&6; } | |
1885 | fi | |
1886 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1887 | ||
1888 | } # ac_fn_c_check_header_mongrel | |
1889 | ||
57aa50d4 TT |
1890 | # ac_fn_c_try_run LINENO |
1891 | # ---------------------- | |
1892 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1893 | # that executables *can* be run. | |
1894 | ac_fn_c_try_run () | |
1895 | { | |
1896 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1897 | if { { ac_try="$ac_link" | |
1898 | case "(($ac_try" in | |
1899 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1900 | *) ac_try_echo=$ac_try;; | |
1901 | esac | |
1902 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1903 | $as_echo "$ac_try_echo"; } >&5 | |
1904 | (eval "$ac_link") 2>&5 | |
1905 | ac_status=$? | |
1906 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1907 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1908 | { { case "(($ac_try" in | |
1909 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1910 | *) ac_try_echo=$ac_try;; | |
1911 | esac | |
1912 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1913 | $as_echo "$ac_try_echo"; } >&5 | |
1914 | (eval "$ac_try") 2>&5 | |
1915 | ac_status=$? | |
1916 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1917 | test $ac_status = 0; }; }; then : | |
1918 | ac_retval=0 | |
1919 | else | |
1920 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1921 | $as_echo "$as_me: failed program was:" >&5 | |
1922 | sed 's/^/| /' conftest.$ac_ext >&5 | |
b0cacab0 | 1923 | |
57aa50d4 TT |
1924 | ac_retval=$ac_status |
1925 | fi | |
1926 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
d6a4bcb5 | 1927 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
61ef2474 | 1928 | as_fn_set_status $ac_retval |
b0cacab0 | 1929 | |
57aa50d4 | 1930 | } # ac_fn_c_try_run |
b0cacab0 | 1931 | |
93613951 TT |
1932 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
1933 | # ------------------------------------------------------- | |
1934 | # Tests whether HEADER exists and can be compiled using the include files in | |
1935 | # INCLUDES, setting the cache variable VAR accordingly. | |
1936 | ac_fn_c_check_header_compile () | |
1937 | { | |
1938 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1939 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1940 | $as_echo_n "checking for $2... " >&6; } | |
1941 | if eval \${$3+:} false; then : | |
1942 | $as_echo_n "(cached) " >&6 | |
1943 | else | |
1944 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1945 | /* end confdefs.h. */ | |
1946 | $4 | |
1947 | #include <$2> | |
1948 | _ACEOF | |
1949 | if ac_fn_c_try_compile "$LINENO"; then : | |
1950 | eval "$3=yes" | |
1951 | else | |
1952 | eval "$3=no" | |
1953 | fi | |
1954 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1955 | fi | |
1956 | eval ac_res=\$$3 | |
1957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1958 | $as_echo "$ac_res" >&6; } | |
1959 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1960 | ||
1961 | } # ac_fn_c_check_header_compile | |
1962 | ||
57aa50d4 TT |
1963 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
1964 | # ------------------------------------------- | |
1965 | # Tests whether TYPE exists after having included INCLUDES, setting cache | |
1966 | # variable VAR accordingly. | |
1967 | ac_fn_c_check_type () | |
1968 | { | |
1969 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1970 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1971 | $as_echo_n "checking for $2... " >&6; } | |
d6a4bcb5 | 1972 | if eval \${$3+:} false; then : |
57aa50d4 | 1973 | $as_echo_n "(cached) " >&6 |
e1052144 | 1974 | else |
57aa50d4 TT |
1975 | eval "$3=no" |
1976 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1977 | /* end confdefs.h. */ | |
1978 | $4 | |
1979 | int | |
1980 | main () | |
1981 | { | |
1982 | if (sizeof ($2)) | |
1983 | return 0; | |
1984 | ; | |
1985 | return 0; | |
1986 | } | |
1987 | _ACEOF | |
1988 | if ac_fn_c_try_compile "$LINENO"; then : | |
1989 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1990 | /* end confdefs.h. */ | |
1991 | $4 | |
1992 | int | |
1993 | main () | |
1994 | { | |
1995 | if (sizeof (($2))) | |
1996 | return 0; | |
1997 | ; | |
1998 | return 0; | |
1999 | } | |
2000 | _ACEOF | |
2001 | if ac_fn_c_try_compile "$LINENO"; then : | |
50e1e10f | 2002 | |
50e1e10f | 2003 | else |
57aa50d4 | 2004 | eval "$3=yes" |
b0cacab0 | 2005 | fi |
57aa50d4 | 2006 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
50e1e10f | 2007 | fi |
57aa50d4 TT |
2008 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2009 | fi | |
2010 | eval ac_res=\$$3 | |
2011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2012 | $as_echo "$ac_res" >&6; } | |
d6a4bcb5 | 2013 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
50e1e10f | 2014 | |
57aa50d4 | 2015 | } # ac_fn_c_check_type |
b0cacab0 | 2016 | |
57aa50d4 TT |
2017 | # ac_fn_c_check_func LINENO FUNC VAR |
2018 | # ---------------------------------- | |
2019 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
2020 | ac_fn_c_check_func () | |
2021 | { | |
2022 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2023 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2024 | $as_echo_n "checking for $2... " >&6; } | |
d6a4bcb5 | 2025 | if eval \${$3+:} false; then : |
57aa50d4 TT |
2026 | $as_echo_n "(cached) " >&6 |
2027 | else | |
2028 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2029 | /* end confdefs.h. */ | |
2030 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
2031 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
2032 | #define $2 innocuous_$2 | |
b0cacab0 | 2033 | |
57aa50d4 TT |
2034 | /* System header to define __stub macros and hopefully few prototypes, |
2035 | which can conflict with char $2 (); below. | |
2036 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2037 | <limits.h> exists even on freestanding compilers. */ | |
b0cacab0 | 2038 | |
57aa50d4 TT |
2039 | #ifdef __STDC__ |
2040 | # include <limits.h> | |
2041 | #else | |
2042 | # include <assert.h> | |
2043 | #endif | |
a04eba3f | 2044 | |
57aa50d4 | 2045 | #undef $2 |
07a0db15 | 2046 | |
57aa50d4 TT |
2047 | /* Override any GCC internal prototype to avoid an error. |
2048 | Use char because int might match the return type of a GCC | |
2049 | builtin and then its argument prototype would still apply. */ | |
2050 | #ifdef __cplusplus | |
2051 | extern "C" | |
2052 | #endif | |
2053 | char $2 (); | |
2054 | /* The GNU C library defines this for functions which it implements | |
2055 | to always fail with ENOSYS. Some functions are actually named | |
2056 | something starting with __ and the normal name is an alias. */ | |
2057 | #if defined __stub_$2 || defined __stub___$2 | |
2058 | choke me | |
2059 | #endif | |
74becf3c | 2060 | |
57aa50d4 TT |
2061 | int |
2062 | main () | |
2063 | { | |
2064 | return $2 (); | |
2065 | ; | |
2066 | return 0; | |
2067 | } | |
2068 | _ACEOF | |
2069 | if ac_fn_c_try_link "$LINENO"; then : | |
2070 | eval "$3=yes" | |
2071 | else | |
2072 | eval "$3=no" | |
2073 | fi | |
2074 | rm -f core conftest.err conftest.$ac_objext \ | |
2075 | conftest$ac_exeext conftest.$ac_ext | |
2076 | fi | |
2077 | eval ac_res=\$$3 | |
2078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2079 | $as_echo "$ac_res" >&6; } | |
d6a4bcb5 | 2080 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
93636bde | 2081 | |
57aa50d4 | 2082 | } # ac_fn_c_check_func |
93636bde | 2083 | |
93613951 TT |
2084 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES |
2085 | # --------------------------------------------- | |
2086 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR | |
d1154eb4 | 2087 | # accordingly. |
93613951 | 2088 | ac_fn_c_check_decl () |
d1154eb4 TT |
2089 | { |
2090 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
93613951 TT |
2091 | as_decl_name=`echo $2|sed 's/ *(.*//'` |
2092 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | |
2093 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | |
2094 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | |
d6a4bcb5 | 2095 | if eval \${$3+:} false; then : |
d1154eb4 | 2096 | $as_echo_n "(cached) " >&6 |
d1154eb4 | 2097 | else |
93613951 | 2098 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d1154eb4 TT |
2099 | /* end confdefs.h. */ |
2100 | $4 | |
93613951 TT |
2101 | int |
2102 | main () | |
2103 | { | |
2104 | #ifndef $as_decl_name | |
2105 | #ifdef __cplusplus | |
2106 | (void) $as_decl_use; | |
2107 | #else | |
2108 | (void) $as_decl_name; | |
2109 | #endif | |
2110 | #endif | |
2111 | ||
2112 | ; | |
2113 | return 0; | |
2114 | } | |
d1154eb4 TT |
2115 | _ACEOF |
2116 | if ac_fn_c_try_compile "$LINENO"; then : | |
93613951 | 2117 | eval "$3=yes" |
d1154eb4 | 2118 | else |
93613951 | 2119 | eval "$3=no" |
d1154eb4 TT |
2120 | fi |
2121 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d1154eb4 TT |
2122 | fi |
2123 | eval ac_res=\$$3 | |
2124 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2125 | $as_echo "$ac_res" >&6; } | |
d6a4bcb5 | 2126 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
d1154eb4 | 2127 | |
93613951 | 2128 | } # ac_fn_c_check_decl |
d1154eb4 | 2129 | |
57aa50d4 TT |
2130 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
2131 | # -------------------------------------------- | |
2132 | # Tries to find the compile-time value of EXPR in a program that includes | |
2133 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | |
2134 | # computed | |
2135 | ac_fn_c_compute_int () | |
2136 | { | |
2137 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2138 | if test "$cross_compiling" = yes; then | |
2139 | # Depending upon the size, compute the lo and hi bounds. | |
2140 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2141 | /* end confdefs.h. */ | |
2142 | $4 | |
2143 | int | |
2144 | main () | |
2145 | { | |
2146 | static int test_array [1 - 2 * !(($2) >= 0)]; | |
d6a4bcb5 TB |
2147 | test_array [0] = 0; |
2148 | return test_array [0]; | |
93636bde | 2149 | |
57aa50d4 TT |
2150 | ; |
2151 | return 0; | |
2152 | } | |
2153 | _ACEOF | |
2154 | if ac_fn_c_try_compile "$LINENO"; then : | |
2155 | ac_lo=0 ac_mid=0 | |
2156 | while :; do | |
2157 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2158 | /* end confdefs.h. */ | |
2159 | $4 | |
2160 | int | |
2161 | main () | |
2162 | { | |
2163 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
d6a4bcb5 TB |
2164 | test_array [0] = 0; |
2165 | return test_array [0]; | |
93636bde | 2166 | |
57aa50d4 TT |
2167 | ; |
2168 | return 0; | |
2169 | } | |
2170 | _ACEOF | |
2171 | if ac_fn_c_try_compile "$LINENO"; then : | |
2172 | ac_hi=$ac_mid; break | |
2173 | else | |
2174 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val | |
2175 | if test $ac_lo -le $ac_mid; then | |
2176 | ac_lo= ac_hi= | |
2177 | break | |
2178 | fi | |
2179 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | |
b0cacab0 | 2180 | fi |
57aa50d4 TT |
2181 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2182 | done | |
2183 | else | |
2184 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2185 | /* end confdefs.h. */ | |
2186 | $4 | |
2187 | int | |
2188 | main () | |
2189 | { | |
2190 | static int test_array [1 - 2 * !(($2) < 0)]; | |
d6a4bcb5 TB |
2191 | test_array [0] = 0; |
2192 | return test_array [0]; | |
e1052144 | 2193 | |
57aa50d4 TT |
2194 | ; |
2195 | return 0; | |
2196 | } | |
2197 | _ACEOF | |
2198 | if ac_fn_c_try_compile "$LINENO"; then : | |
2199 | ac_hi=-1 ac_mid=-1 | |
2200 | while :; do | |
2201 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2202 | /* end confdefs.h. */ | |
2203 | $4 | |
2204 | int | |
2205 | main () | |
2206 | { | |
2207 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | |
d6a4bcb5 TB |
2208 | test_array [0] = 0; |
2209 | return test_array [0]; | |
93636bde | 2210 | |
57aa50d4 TT |
2211 | ; |
2212 | return 0; | |
2213 | } | |
2214 | _ACEOF | |
2215 | if ac_fn_c_try_compile "$LINENO"; then : | |
2216 | ac_lo=$ac_mid; break | |
93636bde | 2217 | else |
57aa50d4 TT |
2218 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val |
2219 | if test $ac_mid -le $ac_hi; then | |
2220 | ac_lo= ac_hi= | |
2221 | break | |
2222 | fi | |
2223 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | |
93636bde | 2224 | fi |
57aa50d4 TT |
2225 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2226 | done | |
2227 | else | |
2228 | ac_lo= ac_hi= | |
2229 | fi | |
2230 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2231 | fi | |
2232 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2233 | # Binary search between lo and hi bounds. | |
2234 | while test "x$ac_lo" != "x$ac_hi"; do | |
2235 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | |
2236 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2237 | /* end confdefs.h. */ | |
2238 | $4 | |
2239 | int | |
2240 | main () | |
2241 | { | |
2242 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
d6a4bcb5 TB |
2243 | test_array [0] = 0; |
2244 | return test_array [0]; | |
93636bde | 2245 | |
57aa50d4 TT |
2246 | ; |
2247 | return 0; | |
2248 | } | |
2249 | _ACEOF | |
2250 | if ac_fn_c_try_compile "$LINENO"; then : | |
2251 | ac_hi=$ac_mid | |
2252 | else | |
2253 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val | |
2254 | fi | |
2255 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2256 | done | |
2257 | case $ac_lo in #(( | |
2258 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | |
2259 | '') ac_retval=1 ;; | |
927566a3 | 2260 | esac |
57aa50d4 TT |
2261 | else |
2262 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2263 | /* end confdefs.h. */ | |
2264 | $4 | |
2265 | static long int longval () { return $2; } | |
2266 | static unsigned long int ulongval () { return $2; } | |
2267 | #include <stdio.h> | |
2268 | #include <stdlib.h> | |
2269 | int | |
2270 | main () | |
2271 | { | |
927566a3 | 2272 | |
57aa50d4 TT |
2273 | FILE *f = fopen ("conftest.val", "w"); |
2274 | if (! f) | |
2275 | return 1; | |
2276 | if (($2) < 0) | |
2277 | { | |
2278 | long int i = longval (); | |
2279 | if (i != ($2)) | |
2280 | return 1; | |
2281 | fprintf (f, "%ld", i); | |
2282 | } | |
2283 | else | |
2284 | { | |
2285 | unsigned long int i = ulongval (); | |
2286 | if (i != ($2)) | |
2287 | return 1; | |
2288 | fprintf (f, "%lu", i); | |
2289 | } | |
2290 | /* Do not output a trailing newline, as this causes \r\n confusion | |
2291 | on some platforms. */ | |
2292 | return ferror (f) || fclose (f) != 0; | |
93636bde | 2293 | |
57aa50d4 TT |
2294 | ; |
2295 | return 0; | |
2296 | } | |
2297 | _ACEOF | |
2298 | if ac_fn_c_try_run "$LINENO"; then : | |
2299 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | |
2300 | else | |
2301 | ac_retval=1 | |
2302 | fi | |
2303 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
2304 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
2305 | rm -f conftest.val | |
93636bde | 2306 | |
57aa50d4 | 2307 | fi |
d6a4bcb5 | 2308 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
61ef2474 | 2309 | as_fn_set_status $ac_retval |
927566a3 | 2310 | |
57aa50d4 | 2311 | } # ac_fn_c_compute_int |
b0cacab0 | 2312 | |
57aa50d4 TT |
2313 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
2314 | # ---------------------------------------------------- | |
2315 | # Tries to find if the field MEMBER exists in type AGGR, after including | |
2316 | # INCLUDES, setting cache variable VAR accordingly. | |
2317 | ac_fn_c_check_member () | |
2318 | { | |
2319 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2320 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 | |
2321 | $as_echo_n "checking for $2.$3... " >&6; } | |
d6a4bcb5 | 2322 | if eval \${$4+:} false; then : |
39fd3d4f | 2323 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 2324 | else |
57aa50d4 TT |
2325 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2326 | /* end confdefs.h. */ | |
2327 | $5 | |
2328 | int | |
2329 | main () | |
2330 | { | |
2331 | static $2 ac_aggr; | |
2332 | if (ac_aggr.$3) | |
2333 | return 0; | |
2334 | ; | |
2335 | return 0; | |
2336 | } | |
2337 | _ACEOF | |
2338 | if ac_fn_c_try_compile "$LINENO"; then : | |
2339 | eval "$4=yes" | |
2340 | else | |
2341 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2342 | /* end confdefs.h. */ | |
2343 | $5 | |
2344 | int | |
2345 | main () | |
2346 | { | |
2347 | static $2 ac_aggr; | |
2348 | if (sizeof ac_aggr.$3) | |
2349 | return 0; | |
2350 | ; | |
2351 | return 0; | |
2352 | } | |
2353 | _ACEOF | |
2354 | if ac_fn_c_try_compile "$LINENO"; then : | |
2355 | eval "$4=yes" | |
2356 | else | |
2357 | eval "$4=no" | |
b0cacab0 | 2358 | fi |
57aa50d4 TT |
2359 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2360 | fi | |
2361 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2362 | fi | |
2363 | eval ac_res=\$$4 | |
2364 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2365 | $as_echo "$ac_res" >&6; } | |
d6a4bcb5 | 2366 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
e1052144 | 2367 | |
57aa50d4 | 2368 | } # ac_fn_c_check_member |
57aa50d4 TT |
2369 | cat >config.log <<_ACEOF |
2370 | This file contains any messages produced by compilers while | |
2371 | running configure, to aid debugging if configure makes a mistake. | |
93636bde | 2372 | |
57aa50d4 | 2373 | It was created by $as_me, which was |
d6a4bcb5 | 2374 | generated by GNU Autoconf 2.69. Invocation command line was |
07a0db15 | 2375 | |
57aa50d4 | 2376 | $ $0 $@ |
e1052144 | 2377 | |
57aa50d4 TT |
2378 | _ACEOF |
2379 | exec 5>>config.log | |
2380 | { | |
2381 | cat <<_ASUNAME | |
2382 | ## --------- ## | |
2383 | ## Platform. ## | |
2384 | ## --------- ## | |
0b5b9f90 | 2385 | |
57aa50d4 TT |
2386 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
2387 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2388 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2389 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2390 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
0b5b9f90 | 2391 | |
57aa50d4 TT |
2392 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
2393 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
0b5b9f90 | 2394 | |
57aa50d4 TT |
2395 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
2396 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2397 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2398 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2399 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2400 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2401 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
0b5b9f90 | 2402 | |
57aa50d4 | 2403 | _ASUNAME |
b0cacab0 | 2404 | |
b0cacab0 TT |
2405 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2406 | for as_dir in $PATH | |
2407 | do | |
2408 | IFS=$as_save_IFS | |
2409 | test -z "$as_dir" && as_dir=. | |
57aa50d4 TT |
2410 | $as_echo "PATH: $as_dir" |
2411 | done | |
e1052144 | 2412 | IFS=$as_save_IFS |
b0cacab0 | 2413 | |
57aa50d4 | 2414 | } >&5 |
74becf3c | 2415 | |
57aa50d4 | 2416 | cat >&5 <<_ACEOF |
e1052144 | 2417 | |
b0cacab0 | 2418 | |
57aa50d4 TT |
2419 | ## ----------- ## |
2420 | ## Core tests. ## | |
2421 | ## ----------- ## | |
b0cacab0 | 2422 | |
57aa50d4 | 2423 | _ACEOF |
b0cacab0 | 2424 | |
57aa50d4 TT |
2425 | |
2426 | # Keep a trace of the command line. | |
2427 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2428 | # Strip out --silent because we don't want to record it for future runs. | |
2429 | # Also quote any args containing shell meta-characters. | |
2430 | # Make two passes to allow for proper duplicate-argument suppression. | |
2431 | ac_configure_args= | |
2432 | ac_configure_args0= | |
2433 | ac_configure_args1= | |
2434 | ac_must_keep_next=false | |
2435 | for ac_pass in 1 2 | |
b0cacab0 | 2436 | do |
57aa50d4 TT |
2437 | for ac_arg |
2438 | do | |
2439 | case $ac_arg in | |
2440 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2441 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2442 | | -silent | --silent | --silen | --sile | --sil) | |
2443 | continue ;; | |
2444 | *\'*) | |
2445 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2446 | esac | |
2447 | case $ac_pass in | |
2448 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2449 | 2) | |
2450 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
2451 | if test $ac_must_keep_next = true; then | |
2452 | ac_must_keep_next=false # Got value, back to normal. | |
2453 | else | |
2454 | case $ac_arg in | |
2455 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2456 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2457 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2458 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2459 | case "$ac_configure_args0 " in | |
2460 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2461 | esac | |
2462 | ;; | |
2463 | -* ) ac_must_keep_next=true ;; | |
2464 | esac | |
2465 | fi | |
2466 | as_fn_append ac_configure_args " '$ac_arg'" | |
2467 | ;; | |
2468 | esac | |
2469 | done | |
b0cacab0 | 2470 | done |
57aa50d4 TT |
2471 | { ac_configure_args0=; unset ac_configure_args0;} |
2472 | { ac_configure_args1=; unset ac_configure_args1;} | |
2473 | ||
2474 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2475 | # config.log. We remove comments because anyway the quotes in there | |
2476 | # would cause problems or look ugly. | |
2477 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2478 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2479 | trap 'exit_status=$? | |
2480 | # Save into config.log some information that might help in debugging. | |
2481 | { | |
2482 | echo | |
2483 | ||
d6a4bcb5 | 2484 | $as_echo "## ---------------- ## |
57aa50d4 | 2485 | ## Cache variables. ## |
d6a4bcb5 | 2486 | ## ---------------- ##" |
57aa50d4 TT |
2487 | echo |
2488 | # The following way of writing the cache mishandles newlines in values, | |
2489 | ( | |
2490 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2491 | eval ac_val=\$$ac_var | |
2492 | case $ac_val in #( | |
2493 | *${as_nl}*) | |
2494 | case $ac_var in #( | |
2495 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2496 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2497 | esac | |
2498 | case $ac_var in #( | |
2499 | _ | IFS | as_nl) ;; #( | |
2500 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2501 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2502 | esac ;; | |
2503 | esac | |
2504 | done | |
2505 | (set) 2>&1 | | |
2506 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2507 | *${as_nl}ac_space=\ *) | |
2508 | sed -n \ | |
2509 | "s/'\''/'\''\\\\'\'''\''/g; | |
2510 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2511 | ;; #( | |
2512 | *) | |
2513 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2514 | ;; | |
2515 | esac | | |
2516 | sort | |
2517 | ) | |
2518 | echo | |
2519 | ||
d6a4bcb5 | 2520 | $as_echo "## ----------------- ## |
57aa50d4 | 2521 | ## Output variables. ## |
d6a4bcb5 | 2522 | ## ----------------- ##" |
57aa50d4 TT |
2523 | echo |
2524 | for ac_var in $ac_subst_vars | |
2525 | do | |
2526 | eval ac_val=\$$ac_var | |
2527 | case $ac_val in | |
2528 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2529 | esac | |
2530 | $as_echo "$ac_var='\''$ac_val'\''" | |
2531 | done | sort | |
2532 | echo | |
2533 | ||
2534 | if test -n "$ac_subst_files"; then | |
d6a4bcb5 | 2535 | $as_echo "## ------------------- ## |
57aa50d4 | 2536 | ## File substitutions. ## |
d6a4bcb5 | 2537 | ## ------------------- ##" |
57aa50d4 TT |
2538 | echo |
2539 | for ac_var in $ac_subst_files | |
2540 | do | |
2541 | eval ac_val=\$$ac_var | |
2542 | case $ac_val in | |
2543 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2544 | esac | |
2545 | $as_echo "$ac_var='\''$ac_val'\''" | |
2546 | done | sort | |
2547 | echo | |
2548 | fi | |
2549 | ||
2550 | if test -s confdefs.h; then | |
d6a4bcb5 | 2551 | $as_echo "## ----------- ## |
57aa50d4 | 2552 | ## confdefs.h. ## |
d6a4bcb5 | 2553 | ## ----------- ##" |
57aa50d4 TT |
2554 | echo |
2555 | cat confdefs.h | |
2556 | echo | |
2557 | fi | |
2558 | test "$ac_signal" != 0 && | |
2559 | $as_echo "$as_me: caught signal $ac_signal" | |
2560 | $as_echo "$as_me: exit $exit_status" | |
2561 | } >&5 | |
2562 | rm -f core *.core core.conftest.* && | |
2563 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2564 | exit $exit_status | |
2565 | ' 0 | |
2566 | for ac_signal in 1 2 13 15; do | |
2567 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
b0cacab0 | 2568 | done |
57aa50d4 | 2569 | ac_signal=0 |
b0cacab0 | 2570 | |
57aa50d4 TT |
2571 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
2572 | rm -f -r conftest* confdefs.h | |
b0cacab0 | 2573 | |
57aa50d4 | 2574 | $as_echo "/* confdefs.h */" > confdefs.h |
73ae2d4a | 2575 | |
57aa50d4 TT |
2576 | # Predefined preprocessor variables. |
2577 | ||
2578 | cat >>confdefs.h <<_ACEOF | |
2579 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2580 | _ACEOF | |
2581 | ||
2582 | cat >>confdefs.h <<_ACEOF | |
2583 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2584 | _ACEOF | |
2585 | ||
2586 | cat >>confdefs.h <<_ACEOF | |
2587 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2588 | _ACEOF | |
2589 | ||
2590 | cat >>confdefs.h <<_ACEOF | |
2591 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2592 | _ACEOF | |
2593 | ||
2594 | cat >>confdefs.h <<_ACEOF | |
2595 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2596 | _ACEOF | |
2597 | ||
2598 | cat >>confdefs.h <<_ACEOF | |
2599 | #define PACKAGE_URL "$PACKAGE_URL" | |
2600 | _ACEOF | |
2601 | ||
2602 | ||
2603 | # Let the site file select an alternate cache file if it wants to. | |
2604 | # Prefer an explicitly selected file to automatically selected ones. | |
2605 | ac_site_file1=NONE | |
2606 | ac_site_file2=NONE | |
2607 | if test -n "$CONFIG_SITE"; then | |
d6a4bcb5 TB |
2608 | # We do not want a PATH search for config.site. |
2609 | case $CONFIG_SITE in #(( | |
2610 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2611 | */*) ac_site_file1=$CONFIG_SITE;; | |
2612 | *) ac_site_file1=./$CONFIG_SITE;; | |
2613 | esac | |
57aa50d4 TT |
2614 | elif test "x$prefix" != xNONE; then |
2615 | ac_site_file1=$prefix/share/config.site | |
2616 | ac_site_file2=$prefix/etc/config.site | |
73ae2d4a | 2617 | else |
57aa50d4 TT |
2618 | ac_site_file1=$ac_default_prefix/share/config.site |
2619 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2620 | fi | |
2621 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
b0cacab0 | 2622 | do |
57aa50d4 | 2623 | test "x$ac_site_file" = xNONE && continue |
61ef2474 | 2624 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
57aa50d4 TT |
2625 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2626 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2627 | sed 's/^/| /' "$ac_site_file" >&5 | |
d6a4bcb5 TB |
2628 | . "$ac_site_file" \ |
2629 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2630 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2631 | as_fn_error $? "failed to load site script $ac_site_file | |
2632 | See \`config.log' for more details" "$LINENO" 5; } | |
b0cacab0 TT |
2633 | fi |
2634 | done | |
b0cacab0 | 2635 | |
57aa50d4 | 2636 | if test -r "$cache_file"; then |
61ef2474 TT |
2637 | # Some versions of bash will fail to source /dev/null (special files |
2638 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2639 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
57aa50d4 TT |
2640 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2641 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2642 | case $cache_file in | |
2643 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2644 | *) . "./$cache_file";; | |
2645 | esac | |
73ae2d4a | 2646 | fi |
57aa50d4 TT |
2647 | else |
2648 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
2649 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2650 | >$cache_file | |
73ae2d4a | 2651 | fi |
57aa50d4 | 2652 | |
93613951 | 2653 | gt_needs="$gt_needs " |
61ef2474 TT |
2654 | as_fn_append ac_header_list " stdlib.h" |
2655 | as_fn_append ac_header_list " unistd.h" | |
2656 | as_fn_append ac_header_list " sys/param.h" | |
93613951 | 2657 | as_fn_append ac_func_list " symlink" |
57aa50d4 TT |
2658 | # Check that the precious variables saved in the cache have kept the same |
2659 | # value. | |
2660 | ac_cache_corrupted=false | |
2661 | for ac_var in $ac_precious_vars; do | |
2662 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2663 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2664 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2665 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2666 | case $ac_old_set,$ac_new_set in | |
2667 | set,) | |
2668 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2669 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2670 | ac_cache_corrupted=: ;; | |
2671 | ,set) | |
2672 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2673 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2674 | ac_cache_corrupted=: ;; | |
2675 | ,);; | |
2676 | *) | |
2677 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
2678 | # differences in whitespace do not lead to failure. | |
2679 | ac_old_val_w=`echo x $ac_old_val` | |
2680 | ac_new_val_w=`echo x $ac_new_val` | |
2681 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2682 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2683 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2684 | ac_cache_corrupted=: | |
2685 | else | |
2686 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2687 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2688 | eval $ac_var=\$ac_old_val | |
2689 | fi | |
2690 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2691 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2692 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2693 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2694 | fi;; | |
2695 | esac | |
2696 | # Pass precious variables to config.status. | |
2697 | if test "$ac_new_set" = set; then | |
2698 | case $ac_new_val in | |
2699 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2700 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2701 | esac | |
2702 | case " $ac_configure_args " in | |
2703 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2704 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2705 | esac | |
2706 | fi | |
2707 | done | |
2708 | if $ac_cache_corrupted; then | |
2709 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2710 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2711 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2712 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
d6a4bcb5 | 2713 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
73ae2d4a | 2714 | fi |
57aa50d4 TT |
2715 | ## -------------------- ## |
2716 | ## Main body of script. ## | |
2717 | ## -------------------- ## | |
2718 | ||
2719 | ac_ext=c | |
2720 | ac_cpp='$CPP $CPPFLAGS' | |
2721 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2722 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2723 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2724 | ||
2725 | ||
2726 | ||
2727 | ac_aux_dir= | |
2728 | for ac_dir in config "$srcdir"/config; do | |
d6a4bcb5 TB |
2729 | if 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/install.sh"; then | |
2734 | ac_aux_dir=$ac_dir | |
2735 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2736 | break | |
2737 | elif test -f "$ac_dir/shtool"; then | |
2738 | ac_aux_dir=$ac_dir | |
2739 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2740 | break | |
2741 | fi | |
57aa50d4 TT |
2742 | done |
2743 | if test -z "$ac_aux_dir"; then | |
d6a4bcb5 | 2744 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5 |
73ae2d4a | 2745 | fi |
57aa50d4 TT |
2746 | |
2747 | # These three variables are undocumented and unsupported, | |
2748 | # and are intended to be withdrawn in a future Autoconf release. | |
2749 | # They can cause serious problems if a builder's source tree is in a directory | |
2750 | # whose full name contains unusual characters. | |
2751 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2752 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2753 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2754 | ||
2755 | ||
d1154eb4 TT |
2756 | ac_config_headers="$ac_config_headers lib/config.h" |
2757 | ||
2758 | ||
57aa50d4 TT |
2759 | MCONFIG=./MCONFIG |
2760 | ||
2761 | BINARY_TYPE=bin | |
2762 | E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \ | |
2763 | | awk '{print $3}' | tr \" " " | awk '{print $1}'` | |
2764 | DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \ | |
2765 | | tr \" " "` | |
2ab53829 | 2766 | E2FSPROGS_DAY=$(echo $DATE | awk -F- '{print $1}' | sed -e '/^[1-9]$/s/^/0/') |
57aa50d4 TT |
2767 | MONTH=`echo $DATE | awk -F- '{print $2}'` |
2768 | YEAR=`echo $DATE | awk -F- '{print $3}'` | |
2769 | ||
2770 | if expr $YEAR ">" 1900 > /dev/null ; then | |
2771 | E2FSPROGS_YEAR=$YEAR | |
2772 | elif expr $YEAR ">" 90 >/dev/null ; then | |
2773 | E2FSPROGS_YEAR=19$YEAR | |
73ae2d4a | 2774 | else |
57aa50d4 TT |
2775 | E2FSPROGS_YEAR=20$YEAR |
2776 | fi | |
2777 | ||
2778 | case $MONTH in | |
2779 | Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;; | |
2780 | Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;; | |
2781 | Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;; | |
2782 | Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;; | |
2783 | May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;; | |
2784 | Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;; | |
2785 | Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;; | |
2786 | Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;; | |
2787 | Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;; | |
2788 | Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;; | |
2789 | Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;; | |
2790 | Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;; | |
2791 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5 | |
2792 | $as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;; | |
2793 | esac | |
2794 | ||
2795 | base_ver=`echo $E2FSPROGS_VERSION | \ | |
2796 | sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'` | |
2797 | ||
2798 | date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY} | |
2799 | ||
2800 | case $E2FSPROGS_VERSION in | |
2801 | *-WIP|pre-*) | |
2ab53829 | 2802 | E2FSPROGS_PKGVER="$base_ver~WIP.$date_spec" |
57aa50d4 TT |
2803 | ;; |
2804 | *) | |
2805 | E2FSPROGS_PKGVER="$base_ver" | |
2806 | ;; | |
2807 | esac | |
2808 | ||
2809 | unset DATE MONTH YEAR base_ver pre_vers date_spec | |
2810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5 | |
2811 | $as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; } | |
2812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5 | |
2813 | $as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; } | |
2814 | ||
2815 | ||
2816 | ||
2817 | ||
2818 | ||
6c59a665 TT |
2819 | WITH_DIET_LIBC= |
2820 | ||
2821 | # Check whether --with-diet-libc was given. | |
2822 | if test "${with_diet_libc+set}" = set; then : | |
2823 | withval=$with_diet_libc; CC="diet cc -nostdinc" | |
2824 | WITH_DIET_LIBC=yes | |
2825 | if test -z "$LIBS" | |
2826 | then | |
2827 | LIBS="-lcompat" | |
2828 | else | |
2829 | LIBS="$LIBS -lcompat" | |
2830 | fi | |
2831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5 | |
2832 | $as_echo "CC=$CC" >&6; } | |
2833 | fi | |
57aa50d4 TT |
2834 | # Make sure we can run config.sub. |
2835 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
d6a4bcb5 | 2836 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
57aa50d4 TT |
2837 | |
2838 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2839 | $as_echo_n "checking build system type... " >&6; } | |
d6a4bcb5 | 2840 | if ${ac_cv_build+:} false; then : |
57aa50d4 TT |
2841 | $as_echo_n "(cached) " >&6 |
2842 | else | |
2843 | ac_build_alias=$build_alias | |
2844 | test "x$ac_build_alias" = x && | |
2845 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2846 | test "x$ac_build_alias" = x && | |
d6a4bcb5 | 2847 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
57aa50d4 | 2848 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
d6a4bcb5 | 2849 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
57aa50d4 | 2850 | |
73ae2d4a | 2851 | fi |
57aa50d4 TT |
2852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
2853 | $as_echo "$ac_cv_build" >&6; } | |
2854 | case $ac_cv_build in | |
2855 | *-*-*) ;; | |
d6a4bcb5 | 2856 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
57aa50d4 TT |
2857 | esac |
2858 | build=$ac_cv_build | |
2859 | ac_save_IFS=$IFS; IFS='-' | |
2860 | set x $ac_cv_build | |
2861 | shift | |
2862 | build_cpu=$1 | |
2863 | build_vendor=$2 | |
2864 | shift; shift | |
2865 | # Remember, the first character of IFS is used to create $*, | |
2866 | # except with old shells: | |
2867 | build_os=$* | |
2868 | IFS=$ac_save_IFS | |
2869 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
73ae2d4a | 2870 | |
e1052144 | 2871 | |
57aa50d4 TT |
2872 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2873 | $as_echo_n "checking host system type... " >&6; } | |
d6a4bcb5 | 2874 | if ${ac_cv_host+:} false; then : |
57aa50d4 TT |
2875 | $as_echo_n "(cached) " >&6 |
2876 | else | |
2877 | if test "x$host_alias" = x; then | |
2878 | ac_cv_host=$ac_cv_build | |
2879 | else | |
2880 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
d6a4bcb5 | 2881 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
b0cacab0 | 2882 | fi |
57aa50d4 TT |
2883 | |
2884 | fi | |
2885 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
2886 | $as_echo "$ac_cv_host" >&6; } | |
2887 | case $ac_cv_host in | |
2888 | *-*-*) ;; | |
d6a4bcb5 | 2889 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
57aa50d4 TT |
2890 | esac |
2891 | host=$ac_cv_host | |
2892 | ac_save_IFS=$IFS; IFS='-' | |
2893 | set x $ac_cv_host | |
2894 | shift | |
2895 | host_cpu=$1 | |
2896 | host_vendor=$2 | |
2897 | shift; shift | |
2898 | # Remember, the first character of IFS is used to create $*, | |
2899 | # except with old shells: | |
2900 | host_os=$* | |
2901 | IFS=$ac_save_IFS | |
2902 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
2903 | ||
2904 | ||
2905 | DLOPEN_LIB='' | |
2906 | ac_ext=c | |
2907 | ac_cpp='$CPP $CPPFLAGS' | |
2908 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2909 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2910 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2911 | if test -n "$ac_tool_prefix"; then | |
2912 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2913 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
2914 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
39fd3d4f | 2915 | $as_echo_n "checking for $ac_word... " >&6; } |
d6a4bcb5 | 2916 | if ${ac_cv_prog_CC+:} false; then : |
39fd3d4f | 2917 | $as_echo_n "(cached) " >&6 |
73ae2d4a TT |
2918 | else |
2919 | if test -n "$CC"; then | |
2920 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2921 | else | |
b0cacab0 TT |
2922 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2923 | for as_dir in $PATH | |
2924 | do | |
2925 | IFS=$as_save_IFS | |
2926 | test -z "$as_dir" && as_dir=. | |
57aa50d4 | 2927 | for ac_exec_ext in '' $ac_executable_extensions; do |
d6a4bcb5 | 2928 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
57aa50d4 TT |
2929 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
2930 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
b0cacab0 TT |
2931 | break 2 |
2932 | fi | |
2933 | done | |
57aa50d4 | 2934 | done |
e1052144 | 2935 | IFS=$as_save_IFS |
b0cacab0 | 2936 | |
73ae2d4a TT |
2937 | fi |
2938 | fi | |
b0cacab0 | 2939 | CC=$ac_cv_prog_CC |
73ae2d4a | 2940 | if test -n "$CC"; then |
57aa50d4 | 2941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
39fd3d4f | 2942 | $as_echo "$CC" >&6; } |
73ae2d4a | 2943 | else |
57aa50d4 | 2944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
39fd3d4f | 2945 | $as_echo "no" >&6; } |
73ae2d4a | 2946 | fi |
b0cacab0 | 2947 | |
e1052144 | 2948 | |
b0cacab0 | 2949 | fi |
57aa50d4 | 2950 | if test -z "$ac_cv_prog_CC"; then |
b0cacab0 | 2951 | ac_ct_CC=$CC |
57aa50d4 TT |
2952 | # Extract the first word of "gcc", so it can be a program name with args. |
2953 | set dummy gcc; ac_word=$2 | |
2954 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
39fd3d4f | 2955 | $as_echo_n "checking for $ac_word... " >&6; } |
d6a4bcb5 | 2956 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
39fd3d4f | 2957 | $as_echo_n "(cached) " >&6 |
b0cacab0 TT |
2958 | else |
2959 | if test -n "$ac_ct_CC"; then | |
2960 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2961 | else | |
2962 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2963 | for as_dir in $PATH | |
2964 | do | |
2965 | IFS=$as_save_IFS | |
2966 | test -z "$as_dir" && as_dir=. | |
57aa50d4 | 2967 | for ac_exec_ext in '' $ac_executable_extensions; do |
d6a4bcb5 | 2968 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
57aa50d4 TT |
2969 | ac_cv_prog_ac_ct_CC="gcc" |
2970 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
b0cacab0 | 2971 | break 2 |
93636bde | 2972 | fi |
b0cacab0 | 2973 | done |
57aa50d4 | 2974 | done |
e1052144 | 2975 | IFS=$as_save_IFS |
b0cacab0 TT |
2976 | |
2977 | fi | |
2978 | fi | |
2979 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2980 | if test -n "$ac_ct_CC"; then | |
57aa50d4 | 2981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
39fd3d4f | 2982 | $as_echo "$ac_ct_CC" >&6; } |
b0cacab0 | 2983 | else |
57aa50d4 | 2984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
39fd3d4f | 2985 | $as_echo "no" >&6; } |
07a0db15 | 2986 | fi |
73ae2d4a | 2987 | |
e1052144 TT |
2988 | if test "x$ac_ct_CC" = x; then |
2989 | CC="" | |
2990 | else | |
2991 | case $cross_compiling:$ac_tool_warned in | |
2992 | yes:) | |
57aa50d4 | 2993 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
39fd3d4f | 2994 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
e1052144 TT |
2995 | ac_tool_warned=yes ;; |
2996 | esac | |
2997 | CC=$ac_ct_CC | |
2998 | fi | |
57aa50d4 TT |
2999 | else |
3000 | CC="$ac_cv_prog_CC" | |
b0cacab0 TT |
3001 | fi |
3002 | ||
57aa50d4 TT |
3003 | if test -z "$CC"; then |
3004 | if test -n "$ac_tool_prefix"; then | |
3005 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
3006 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
3007 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3008 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6a4bcb5 | 3009 | if ${ac_cv_prog_CC+:} false; then : |
57aa50d4 TT |
3010 | $as_echo_n "(cached) " >&6 |
3011 | else | |
3012 | if test -n "$CC"; then | |
3013 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3014 | else | |
3015 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3016 | for as_dir in $PATH | |
3017 | do | |
3018 | IFS=$as_save_IFS | |
3019 | test -z "$as_dir" && as_dir=. | |
3020 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d6a4bcb5 | 3021 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
57aa50d4 TT |
3022 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
3023 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3024 | break 2 | |
3025 | fi | |
3026 | done | |
3027 | done | |
3028 | IFS=$as_save_IFS | |
3029 | ||
3030 | fi | |
3031 | fi | |
3032 | CC=$ac_cv_prog_CC | |
3033 | if test -n "$CC"; then | |
3034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3035 | $as_echo "$CC" >&6; } | |
3036 | else | |
3037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3038 | $as_echo "no" >&6; } | |
3039 | fi | |
3040 | ||
3041 | ||
3042 | fi | |
3043 | fi | |
3044 | if test -z "$CC"; then | |
3045 | # Extract the first word of "cc", so it can be a program name with args. | |
3046 | set dummy cc; ac_word=$2 | |
3047 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3048 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6a4bcb5 | 3049 | if ${ac_cv_prog_CC+:} false; then : |
57aa50d4 TT |
3050 | $as_echo_n "(cached) " >&6 |
3051 | else | |
3052 | if test -n "$CC"; then | |
3053 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3054 | else | |
3055 | ac_prog_rejected=no | |
3056 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3057 | for as_dir in $PATH | |
3058 | do | |
3059 | IFS=$as_save_IFS | |
3060 | test -z "$as_dir" && as_dir=. | |
3061 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d6a4bcb5 | 3062 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
57aa50d4 TT |
3063 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
3064 | ac_prog_rejected=yes | |
3065 | continue | |
3066 | fi | |
3067 | ac_cv_prog_CC="cc" | |
3068 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3069 | break 2 | |
3070 | fi | |
3071 | done | |
3072 | done | |
3073 | IFS=$as_save_IFS | |
3074 | ||
3075 | if test $ac_prog_rejected = yes; then | |
3076 | # We found a bogon in the path, so make sure we never use it. | |
3077 | set dummy $ac_cv_prog_CC | |
3078 | shift | |
3079 | if test $# != 0; then | |
3080 | # We chose a different compiler from the bogus one. | |
3081 | # However, it has the same basename, so the bogon will be chosen | |
3082 | # first if we set CC to just the basename; use the full file name. | |
3083 | shift | |
3084 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3085 | fi | |
3086 | fi | |
3087 | fi | |
3088 | fi | |
3089 | CC=$ac_cv_prog_CC | |
3090 | if test -n "$CC"; then | |
3091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3092 | $as_echo "$CC" >&6; } | |
3093 | else | |
3094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3095 | $as_echo "no" >&6; } | |
3096 | fi | |
3097 | ||
3098 | ||
3099 | fi | |
3100 | if test -z "$CC"; then | |
3101 | if test -n "$ac_tool_prefix"; then | |
3102 | for ac_prog in cl.exe | |
3103 | do | |
3104 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3105 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3106 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3107 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6a4bcb5 | 3108 | if ${ac_cv_prog_CC+:} false; then : |
57aa50d4 TT |
3109 | $as_echo_n "(cached) " >&6 |
3110 | else | |
3111 | if test -n "$CC"; then | |
3112 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3113 | else | |
3114 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3115 | for as_dir in $PATH | |
3116 | do | |
3117 | IFS=$as_save_IFS | |
3118 | test -z "$as_dir" && as_dir=. | |
3119 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d6a4bcb5 | 3120 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
57aa50d4 TT |
3121 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
3122 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3123 | break 2 | |
3124 | fi | |
3125 | done | |
3126 | done | |
3127 | IFS=$as_save_IFS | |
3128 | ||
3129 | fi | |
3130 | fi | |
3131 | CC=$ac_cv_prog_CC | |
3132 | if test -n "$CC"; then | |
3133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3134 | $as_echo "$CC" >&6; } | |
3135 | else | |
3136 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3137 | $as_echo "no" >&6; } | |
3138 | fi | |
3139 | ||
3140 | ||
3141 | test -n "$CC" && break | |
3142 | done | |
3143 | fi | |
3144 | if test -z "$CC"; then | |
3145 | ac_ct_CC=$CC | |
3146 | for ac_prog in cl.exe | |
3147 | do | |
3148 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3149 | set dummy $ac_prog; ac_word=$2 | |
3150 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3151 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6a4bcb5 | 3152 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
57aa50d4 TT |
3153 | $as_echo_n "(cached) " >&6 |
3154 | else | |
3155 | if test -n "$ac_ct_CC"; then | |
3156 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3157 | else | |
3158 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3159 | for as_dir in $PATH | |
3160 | do | |
3161 | IFS=$as_save_IFS | |
3162 | test -z "$as_dir" && as_dir=. | |
3163 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d6a4bcb5 | 3164 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
57aa50d4 TT |
3165 | ac_cv_prog_ac_ct_CC="$ac_prog" |
3166 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3167 | break 2 | |
3168 | fi | |
3169 | done | |
3170 | done | |
3171 | IFS=$as_save_IFS | |
3172 | ||
3173 | fi | |
3174 | fi | |
3175 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3176 | if test -n "$ac_ct_CC"; then | |
3177 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3178 | $as_echo "$ac_ct_CC" >&6; } | |
3179 | else | |
3180 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3181 | $as_echo "no" >&6; } | |
3182 | fi | |
3183 | ||
3184 | ||
3185 | test -n "$ac_ct_CC" && break | |
3186 | done | |
3187 | ||
3188 | if test "x$ac_ct_CC" = x; then | |
3189 | CC="" | |
3190 | else | |
3191 | case $cross_compiling:$ac_tool_warned in | |
3192 | yes:) | |
3193 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3194 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3195 | ac_tool_warned=yes ;; | |
3196 | esac | |
3197 | CC=$ac_ct_CC | |
3198 | fi | |
3199 | fi | |
3200 | ||
3201 | fi | |
3202 | ||
3203 | ||
3204 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3205 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d6a4bcb5 TB |
3206 | as_fn_error $? "no acceptable C compiler found in \$PATH |
3207 | See \`config.log' for more details" "$LINENO" 5; } | |
b0cacab0 TT |
3208 | |
3209 | # Provide some information about the compiler. | |
57aa50d4 | 3210 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
39fd3d4f SJR |
3211 | set X $ac_compile |
3212 | ac_compiler=$2 | |
57aa50d4 TT |
3213 | for ac_option in --version -v -V -qversion; do |
3214 | { { ac_try="$ac_compiler $ac_option >&5" | |
e1052144 TT |
3215 | case "(($ac_try" in |
3216 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3217 | *) ac_try_echo=$ac_try;; | |
3218 | esac | |
57aa50d4 TT |
3219 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3220 | $as_echo "$ac_try_echo"; } >&5 | |
3221 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
b0cacab0 | 3222 | ac_status=$? |
57aa50d4 TT |
3223 | if test -s conftest.err; then |
3224 | sed '10a\ | |
3225 | ... rest of stderr output deleted ... | |
3226 | 10q' conftest.err >conftest.er1 | |
3227 | cat conftest.er1 >&5 | |
57aa50d4 | 3228 | fi |
61ef2474 | 3229 | rm -f conftest.er1 conftest.err |
57aa50d4 TT |
3230 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3231 | test $ac_status = 0; } | |
3232 | done | |
b0cacab0 | 3233 | |
57aa50d4 | 3234 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b0cacab0 | 3235 | /* end confdefs.h. */ |
61ef2474 | 3236 | |
b0cacab0 TT |
3237 | int |
3238 | main () | |
3239 | { | |
3240 | ||
3241 | ; | |
3242 | return 0; | |
3243 | } | |
3244 | _ACEOF | |
3245 | ac_clean_files_save=$ac_clean_files | |
61ef2474 | 3246 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
b0cacab0 TT |
3247 | # Try to create an executable without -o first, disregard a.out. |
3248 | # It will help us diagnose broken compilers, and finding out an intuition | |
3249 | # of exeext. | |
61ef2474 TT |
3250 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
3251 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
39fd3d4f SJR |
3252 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
3253 | ||
3254 | # The possible output files: | |
3255 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3256 | ||
e1052144 TT |
3257 | ac_rmfiles= |
3258 | for ac_file in $ac_files | |
3259 | do | |
3260 | case $ac_file in | |
39fd3d4f | 3261 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
e1052144 TT |
3262 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
3263 | esac | |
3264 | done | |
3265 | rm -f $ac_rmfiles | |
3266 | ||
57aa50d4 | 3267 | if { { ac_try="$ac_link_default" |
e1052144 TT |
3268 | case "(($ac_try" in |
3269 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3270 | *) ac_try_echo=$ac_try;; | |
3271 | esac | |
57aa50d4 TT |
3272 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3273 | $as_echo "$ac_try_echo"; } >&5 | |
e1052144 | 3274 | (eval "$ac_link_default") 2>&5 |
b0cacab0 | 3275 | ac_status=$? |
57aa50d4 TT |
3276 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3277 | test $ac_status = 0; }; then : | |
e1052144 TT |
3278 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
3279 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3280 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3281 | # so that the user can short-circuit this test for compilers unknown to | |
3282 | # Autoconf. | |
29a5deed | 3283 | for ac_file in $ac_files '' |
b0cacab0 TT |
3284 | do |
3285 | test -f "$ac_file" || continue | |
3286 | case $ac_file in | |
39fd3d4f | 3287 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
b0cacab0 TT |
3288 | ;; |
3289 | [ab].out ) | |
3290 | # We found the default executable, but exeext='' is most | |
3291 | # certainly right. | |
3292 | break;; | |
3293 | *.* ) | |
57aa50d4 | 3294 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
e1052144 TT |
3295 | then :; else |
3296 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3297 | fi | |
3298 | # We set ac_cv_exeext here because the later test for it is not | |
3299 | # safe: cross compilers may not add the suffix if given an `-o' | |
3300 | # argument, so we may need to know it at that point already. | |
3301 | # Even if this section looks crufty: it has the advantage of | |
3302 | # actually working. | |
b0cacab0 TT |
3303 | break;; |
3304 | * ) | |
3305 | break;; | |
3306 | esac | |
3307 | done | |
e1052144 TT |
3308 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
3309 | ||
b0cacab0 | 3310 | else |
29a5deed TT |
3311 | ac_file='' |
3312 | fi | |
57aa50d4 | 3313 | if test -z "$ac_file"; then : |
61ef2474 TT |
3314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3315 | $as_echo "no" >&6; } | |
3316 | $as_echo "$as_me: failed program was:" >&5 | |
b0cacab0 TT |
3317 | sed 's/^/| /' conftest.$ac_ext >&5 |
3318 | ||
57aa50d4 | 3319 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
39fd3d4f | 3320 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
d6a4bcb5 TB |
3321 | as_fn_error 77 "C compiler cannot create executables |
3322 | See \`config.log' for more details" "$LINENO" 5; } | |
61ef2474 TT |
3323 | else |
3324 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3325 | $as_echo "yes" >&6; } | |
b0cacab0 | 3326 | fi |
61ef2474 TT |
3327 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
3328 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3330 | $as_echo "$ac_file" >&6; } | |
b0cacab0 | 3331 | ac_exeext=$ac_cv_exeext |
b0cacab0 | 3332 | |
61ef2474 | 3333 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
b0cacab0 | 3334 | ac_clean_files=$ac_clean_files_save |
57aa50d4 | 3335 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
39fd3d4f | 3336 | $as_echo_n "checking for suffix of executables... " >&6; } |
57aa50d4 | 3337 | if { { ac_try="$ac_link" |
e1052144 TT |
3338 | case "(($ac_try" in |
3339 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3340 | *) ac_try_echo=$ac_try;; | |
3341 | esac | |
57aa50d4 TT |
3342 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3343 | $as_echo "$ac_try_echo"; } >&5 | |
e1052144 | 3344 | (eval "$ac_link") 2>&5 |
b0cacab0 | 3345 | ac_status=$? |
57aa50d4 TT |
3346 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3347 | test $ac_status = 0; }; then : | |
b0cacab0 TT |
3348 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
3349 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3350 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3351 | # `rm'. | |
3352 | for ac_file in conftest.exe conftest conftest.*; do | |
3353 | test -f "$ac_file" || continue | |
3354 | case $ac_file in | |
39fd3d4f | 3355 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
b0cacab0 | 3356 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
b0cacab0 TT |
3357 | break;; |
3358 | * ) break;; | |
3359 | esac | |
3360 | done | |
73ae2d4a | 3361 | else |
57aa50d4 | 3362 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
39fd3d4f | 3363 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
d6a4bcb5 TB |
3364 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
3365 | See \`config.log' for more details" "$LINENO" 5; } | |
73ae2d4a | 3366 | fi |
61ef2474 | 3367 | rm -f conftest conftest$ac_cv_exeext |
57aa50d4 | 3368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
39fd3d4f | 3369 | $as_echo "$ac_cv_exeext" >&6; } |
73ae2d4a | 3370 | |
b0cacab0 TT |
3371 | rm -f conftest.$ac_ext |
3372 | EXEEXT=$ac_cv_exeext | |
3373 | ac_exeext=$EXEEXT | |
61ef2474 TT |
3374 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3375 | /* end confdefs.h. */ | |
3376 | #include <stdio.h> | |
3377 | int | |
3378 | main () | |
3379 | { | |
3380 | FILE *f = fopen ("conftest.out", "w"); | |
3381 | return ferror (f) || fclose (f) != 0; | |
3382 | ||
3383 | ; | |
3384 | return 0; | |
3385 | } | |
3386 | _ACEOF | |
3387 | ac_clean_files="$ac_clean_files conftest.out" | |
3388 | # Check that the compiler produces executables we can run. If not, either | |
3389 | # the compiler is broken, or we cross compile. | |
3390 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3391 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3392 | if test "$cross_compiling" != yes; then | |
3393 | { { ac_try="$ac_link" | |
3394 | case "(($ac_try" in | |
3395 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3396 | *) ac_try_echo=$ac_try;; | |
3397 | esac | |
3398 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3399 | $as_echo "$ac_try_echo"; } >&5 | |
3400 | (eval "$ac_link") 2>&5 | |
3401 | ac_status=$? | |
3402 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3403 | test $ac_status = 0; } | |
3404 | if { ac_try='./conftest$ac_cv_exeext' | |
3405 | { { case "(($ac_try" in | |
3406 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3407 | *) ac_try_echo=$ac_try;; | |
3408 | esac | |
3409 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3410 | $as_echo "$ac_try_echo"; } >&5 | |
3411 | (eval "$ac_try") 2>&5 | |
3412 | ac_status=$? | |
3413 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3414 | test $ac_status = 0; }; }; then | |
3415 | cross_compiling=no | |
3416 | else | |
3417 | if test "$cross_compiling" = maybe; then | |
3418 | cross_compiling=yes | |
3419 | else | |
3420 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3421 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d6a4bcb5 | 3422 | as_fn_error $? "cannot run C compiled programs. |
61ef2474 | 3423 | If you meant to cross compile, use \`--host'. |
d6a4bcb5 | 3424 | See \`config.log' for more details" "$LINENO" 5; } |
61ef2474 TT |
3425 | fi |
3426 | fi | |
3427 | fi | |
3428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3429 | $as_echo "$cross_compiling" >&6; } | |
3430 | ||
3431 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
3432 | ac_clean_files=$ac_clean_files_save | |
57aa50d4 | 3433 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
39fd3d4f | 3434 | $as_echo_n "checking for suffix of object files... " >&6; } |
d6a4bcb5 | 3435 | if ${ac_cv_objext+:} false; then : |
39fd3d4f | 3436 | $as_echo_n "(cached) " >&6 |
73ae2d4a | 3437 | else |
57aa50d4 | 3438 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b0cacab0 | 3439 | /* end confdefs.h. */ |
07a0db15 | 3440 | |
b0cacab0 TT |
3441 | int |
3442 | main () | |
3443 | { | |
07a0db15 | 3444 | |
b0cacab0 TT |
3445 | ; |
3446 | return 0; | |
3447 | } | |
3448 | _ACEOF | |
3449 | rm -f conftest.o conftest.obj | |
57aa50d4 | 3450 | if { { ac_try="$ac_compile" |
e1052144 TT |
3451 | case "(($ac_try" in |
3452 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3453 | *) ac_try_echo=$ac_try;; | |
3454 | esac | |
57aa50d4 TT |
3455 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3456 | $as_echo "$ac_try_echo"; } >&5 | |
e1052144 | 3457 | (eval "$ac_compile") 2>&5 |
b0cacab0 | 3458 | ac_status=$? |
57aa50d4 TT |
3459 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3460 | test $ac_status = 0; }; then : | |
e1052144 TT |
3461 | for ac_file in conftest.o conftest.obj conftest.*; do |
3462 | test -f "$ac_file" || continue; | |
b0cacab0 | 3463 | case $ac_file in |
39fd3d4f | 3464 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
b0cacab0 TT |
3465 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3466 | break;; | |
3467 | esac | |
3468 | done | |
93636bde | 3469 | else |
39fd3d4f | 3470 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 | 3471 | sed 's/^/| /' conftest.$ac_ext >&5 |
07a0db15 | 3472 | |
57aa50d4 | 3473 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
39fd3d4f | 3474 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
d6a4bcb5 TB |
3475 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
3476 | See \`config.log' for more details" "$LINENO" 5; } | |
73ae2d4a | 3477 | fi |
b0cacab0 | 3478 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
73ae2d4a | 3479 | fi |
57aa50d4 | 3480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
39fd3d4f | 3481 | $as_echo "$ac_cv_objext" >&6; } |
b0cacab0 TT |
3482 | OBJEXT=$ac_cv_objext |
3483 | ac_objext=$OBJEXT | |
57aa50d4 | 3484 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
39fd3d4f | 3485 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
d6a4bcb5 | 3486 | if ${ac_cv_c_compiler_gnu+:} false; then : |
39fd3d4f | 3487 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 3488 | else |
57aa50d4 | 3489 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b0cacab0 TT |
3490 | /* end confdefs.h. */ |
3491 | ||
3492 | int | |
3493 | main () | |
3494 | { | |
3495 | #ifndef __GNUC__ | |
3496 | choke me | |
3497 | #endif | |
3498 | ||
3499 | ; | |
3500 | return 0; | |
3501 | } | |
3502 | _ACEOF | |
57aa50d4 | 3503 | if ac_fn_c_try_compile "$LINENO"; then : |
b0cacab0 TT |
3504 | ac_compiler_gnu=yes |
3505 | else | |
57aa50d4 | 3506 | ac_compiler_gnu=no |
b0cacab0 | 3507 | fi |
e1052144 | 3508 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
b0cacab0 TT |
3509 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
3510 | ||
3511 | fi | |
57aa50d4 | 3512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
39fd3d4f SJR |
3513 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
3514 | if test $ac_compiler_gnu = yes; then | |
3515 | GCC=yes | |
3516 | else | |
3517 | GCC= | |
3518 | fi | |
b0cacab0 TT |
3519 | ac_test_CFLAGS=${CFLAGS+set} |
3520 | ac_save_CFLAGS=$CFLAGS | |
57aa50d4 | 3521 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
39fd3d4f | 3522 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
d6a4bcb5 | 3523 | if ${ac_cv_prog_cc_g+:} false; then : |
39fd3d4f | 3524 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 3525 | else |
e1052144 TT |
3526 | ac_save_c_werror_flag=$ac_c_werror_flag |
3527 | ac_c_werror_flag=yes | |
3528 | ac_cv_prog_cc_g=no | |
3529 | CFLAGS="-g" | |
57aa50d4 | 3530 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e1052144 TT |
3531 | /* end confdefs.h. */ |
3532 | ||
3533 | int | |
3534 | main () | |
3535 | { | |
3536 | ||
3537 | ; | |
3538 | return 0; | |
3539 | } | |
3540 | _ACEOF | |
57aa50d4 | 3541 | if ac_fn_c_try_compile "$LINENO"; then : |
e1052144 TT |
3542 | ac_cv_prog_cc_g=yes |
3543 | else | |
57aa50d4 TT |
3544 | CFLAGS="" |
3545 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
e1052144 TT |
3546 | /* end confdefs.h. */ |
3547 | ||
3548 | int | |
3549 | main () | |
3550 | { | |
3551 | ||
3552 | ; | |
3553 | return 0; | |
3554 | } | |
3555 | _ACEOF | |
57aa50d4 | 3556 | if ac_fn_c_try_compile "$LINENO"; then : |
e1052144 | 3557 | |
57aa50d4 TT |
3558 | else |
3559 | ac_c_werror_flag=$ac_save_c_werror_flag | |
e1052144 | 3560 | CFLAGS="-g" |
57aa50d4 | 3561 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b0cacab0 TT |
3562 | /* end confdefs.h. */ |
3563 | ||
3564 | int | |
3565 | main () | |
3566 | { | |
3567 | ||
3568 | ; | |
3569 | return 0; | |
3570 | } | |
3571 | _ACEOF | |
57aa50d4 | 3572 | if ac_fn_c_try_compile "$LINENO"; then : |
b0cacab0 | 3573 | ac_cv_prog_cc_g=yes |
e1052144 | 3574 | fi |
e1052144 TT |
3575 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3576 | fi | |
e1052144 | 3577 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
b0cacab0 | 3578 | fi |
e1052144 TT |
3579 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3580 | ac_c_werror_flag=$ac_save_c_werror_flag | |
b0cacab0 | 3581 | fi |
57aa50d4 | 3582 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
39fd3d4f | 3583 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
b0cacab0 TT |
3584 | if test "$ac_test_CFLAGS" = set; then |
3585 | CFLAGS=$ac_save_CFLAGS | |
3586 | elif test $ac_cv_prog_cc_g = yes; then | |
3587 | if test "$GCC" = yes; then | |
3588 | CFLAGS="-g -O2" | |
3589 | else | |
3590 | CFLAGS="-g" | |
3591 | fi | |
73ae2d4a TT |
3592 | else |
3593 | if test "$GCC" = yes; then | |
3594 | CFLAGS="-O2" | |
3595 | else | |
3596 | CFLAGS= | |
3597 | fi | |
3598 | fi | |
57aa50d4 | 3599 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
39fd3d4f | 3600 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
d6a4bcb5 | 3601 | if ${ac_cv_prog_cc_c89+:} false; then : |
39fd3d4f | 3602 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 3603 | else |
e1052144 | 3604 | ac_cv_prog_cc_c89=no |
b0cacab0 | 3605 | ac_save_CC=$CC |
57aa50d4 | 3606 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b0cacab0 TT |
3607 | /* end confdefs.h. */ |
3608 | #include <stdarg.h> | |
3609 | #include <stdio.h> | |
d6a4bcb5 | 3610 | struct stat; |
b0cacab0 TT |
3611 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
3612 | struct buf { int x; }; | |
3613 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3614 | static char *e (p, i) | |
3615 | char **p; | |
3616 | int i; | |
3617 | { | |
3618 | return p[i]; | |
3619 | } | |
3620 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3621 | { | |
3622 | char *s; | |
3623 | va_list v; | |
3624 | va_start (v,p); | |
3625 | s = g (p, va_arg (v,int)); | |
3626 | va_end (v); | |
3627 | return s; | |
3628 | } | |
3629 | ||
3630 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3631 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3632 | These don't provoke an error unfortunately, instead are silently treated | |
e1052144 | 3633 | as 'x'. The following induces an error, until -std is added to get |
b0cacab0 TT |
3634 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3635 | array size at least. It's necessary to write '\x00'==0 to get something | |
e1052144 | 3636 | that's true only with -std. */ |
b0cacab0 TT |
3637 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3638 | ||
e1052144 TT |
3639 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3640 | inside strings and character constants. */ | |
3641 | #define FOO(x) 'x' | |
3642 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3643 | ||
b0cacab0 TT |
3644 | int test (int i, double x); |
3645 | struct s1 {int (*f) (int a);}; | |
3646 | struct s2 {int (*f) (double a);}; | |
3647 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3648 | int argc; | |
3649 | char **argv; | |
3650 | int | |
3651 | main () | |
3652 | { | |
3653 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3654 | ; | |
3655 | return 0; | |
3656 | } | |
3657 | _ACEOF | |
e1052144 TT |
3658 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3659 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
b0cacab0 TT |
3660 | do |
3661 | CC="$ac_save_CC $ac_arg" | |
57aa50d4 | 3662 | if ac_fn_c_try_compile "$LINENO"; then : |
e1052144 | 3663 | ac_cv_prog_cc_c89=$ac_arg |
b0cacab0 | 3664 | fi |
e1052144 TT |
3665 | rm -f core conftest.err conftest.$ac_objext |
3666 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
b0cacab0 | 3667 | done |
e1052144 | 3668 | rm -f conftest.$ac_ext |
b0cacab0 TT |
3669 | CC=$ac_save_CC |
3670 | ||
3671 | fi | |
e1052144 TT |
3672 | # AC_CACHE_VAL |
3673 | case "x$ac_cv_prog_cc_c89" in | |
3674 | x) | |
57aa50d4 | 3675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
39fd3d4f | 3676 | $as_echo "none needed" >&6; } ;; |
e1052144 | 3677 | xno) |
57aa50d4 | 3678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
39fd3d4f | 3679 | $as_echo "unsupported" >&6; } ;; |
b0cacab0 | 3680 | *) |
e1052144 | 3681 | CC="$CC $ac_cv_prog_cc_c89" |
57aa50d4 | 3682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
39fd3d4f | 3683 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
b0cacab0 | 3684 | esac |
57aa50d4 | 3685 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
b0cacab0 | 3686 | |
57aa50d4 | 3687 | fi |
b0cacab0 | 3688 | |
b0cacab0 TT |
3689 | ac_ext=c |
3690 | ac_cpp='$CPP $CPPFLAGS' | |
3691 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3692 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3693 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3694 | ||
57aa50d4 TT |
3695 | |
3696 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
3697 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
d6a4bcb5 | 3698 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
39fd3d4f | 3699 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 3700 | else |
57aa50d4 TT |
3701 | ac_check_lib_save_LIBS=$LIBS |
3702 | LIBS="-ldl $LIBS" | |
3703 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b0cacab0 | 3704 | /* end confdefs.h. */ |
57aa50d4 TT |
3705 | |
3706 | /* Override any GCC internal prototype to avoid an error. | |
3707 | Use char because int might match the return type of a GCC | |
3708 | builtin and then its argument prototype would still apply. */ | |
3709 | #ifdef __cplusplus | |
3710 | extern "C" | |
b0cacab0 | 3711 | #endif |
57aa50d4 TT |
3712 | char dlopen (); |
3713 | int | |
3714 | main () | |
3715 | { | |
3716 | return dlopen (); | |
3717 | ; | |
3718 | return 0; | |
3719 | } | |
b0cacab0 | 3720 | _ACEOF |
57aa50d4 TT |
3721 | if ac_fn_c_try_link "$LINENO"; then : |
3722 | ac_cv_lib_dl_dlopen=yes | |
b0cacab0 | 3723 | else |
57aa50d4 | 3724 | ac_cv_lib_dl_dlopen=no |
b0cacab0 | 3725 | fi |
57aa50d4 TT |
3726 | rm -f core conftest.err conftest.$ac_objext \ |
3727 | conftest$ac_exeext conftest.$ac_ext | |
3728 | LIBS=$ac_check_lib_save_LIBS | |
b0cacab0 | 3729 | fi |
57aa50d4 TT |
3730 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
3731 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
d6a4bcb5 | 3732 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
57aa50d4 | 3733 | DLOPEN_LIB=-ldl |
b0cacab0 TT |
3734 | fi |
3735 | ||
b0cacab0 | 3736 | |
e1052144 | 3737 | |
57aa50d4 TT |
3738 | # Check whether --with-cc was given. |
3739 | if test "${with_cc+set}" = set; then : | |
d6a4bcb5 | 3740 | withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5 |
57aa50d4 | 3741 | fi |
b0cacab0 | 3742 | |
b0cacab0 | 3743 | |
57aa50d4 TT |
3744 | # Check whether --with-ccopts was given. |
3745 | if test "${with_ccopts+set}" = set; then : | |
d6a4bcb5 | 3746 | withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5 |
b0cacab0 | 3747 | fi |
e1052144 | 3748 | |
b0cacab0 | 3749 | |
57aa50d4 TT |
3750 | # Check whether --with-ldopts was given. |
3751 | if test "${with_ldopts+set}" = set; then : | |
d6a4bcb5 | 3752 | withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5 |
b0cacab0 TT |
3753 | fi |
3754 | ||
3755 | ac_ext=c | |
3756 | ac_cpp='$CPP $CPPFLAGS' | |
3757 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3758 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3759 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
57aa50d4 TT |
3760 | if test -n "$ac_tool_prefix"; then |
3761 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3762 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
3763 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3764 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6a4bcb5 | 3765 | if ${ac_cv_prog_CC+:} false; then : |
39fd3d4f | 3766 | $as_echo_n "(cached) " >&6 |
e1052144 | 3767 | else |
57aa50d4 TT |
3768 | if test -n "$CC"; then |
3769 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3770 | else | |
3771 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3772 | for as_dir in $PATH | |
e1052144 TT |
3773 | do |
3774 | IFS=$as_save_IFS | |
3775 | test -z "$as_dir" && as_dir=. | |
39fd3d4f | 3776 | for ac_exec_ext in '' $ac_executable_extensions; do |
d6a4bcb5 | 3777 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
57aa50d4 TT |
3778 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
3779 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3780 | break 2 | |
3781 | fi | |
e1052144 | 3782 | done |
57aa50d4 | 3783 | done |
e1052144 | 3784 | IFS=$as_save_IFS |
e1052144 | 3785 | |
e1052144 | 3786 | fi |
57aa50d4 TT |
3787 | fi |
3788 | CC=$ac_cv_prog_CC | |
3789 | if test -n "$CC"; then | |
3790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3791 | $as_echo "$CC" >&6; } | |
3792 | else | |
3793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3794 | $as_echo "no" >&6; } | |
3795 | fi | |
e1052144 TT |
3796 | |
3797 | ||
57aa50d4 TT |
3798 | fi |
3799 | if test -z "$ac_cv_prog_CC"; then | |
3800 | ac_ct_CC=$CC | |
3801 | # Extract the first word of "gcc", so it can be a program name with args. | |
3802 | set dummy gcc; ac_word=$2 | |
3803 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3804 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6a4bcb5 | 3805 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
39fd3d4f | 3806 | $as_echo_n "(cached) " >&6 |
e1052144 | 3807 | else |
57aa50d4 TT |
3808 | if test -n "$ac_ct_CC"; then |
3809 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3810 | else | |
3811 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3812 | for as_dir in $PATH | |
e1052144 TT |
3813 | do |
3814 | IFS=$as_save_IFS | |
3815 | test -z "$as_dir" && as_dir=. | |
39fd3d4f | 3816 | for ac_exec_ext in '' $ac_executable_extensions; do |
d6a4bcb5 | 3817 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
57aa50d4 TT |
3818 | ac_cv_prog_ac_ct_CC="gcc" |
3819 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3820 | break 2 | |
3821 | fi | |
e1052144 | 3822 | done |
57aa50d4 | 3823 | done |
e1052144 | 3824 | IFS=$as_save_IFS |
b0cacab0 | 3825 | |
e1052144 | 3826 | fi |
57aa50d4 TT |
3827 | fi |
3828 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3829 | if test -n "$ac_ct_CC"; then | |
3830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3831 | $as_echo "$ac_ct_CC" >&6; } | |
b0cacab0 | 3832 | else |
57aa50d4 TT |
3833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3834 | $as_echo "no" >&6; } | |
3835 | fi | |
b0cacab0 | 3836 | |
57aa50d4 TT |
3837 | if test "x$ac_ct_CC" = x; then |
3838 | CC="" | |
3839 | else | |
3840 | case $cross_compiling:$ac_tool_warned in | |
3841 | yes:) | |
3842 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3843 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3844 | ac_tool_warned=yes ;; | |
e1052144 | 3845 | esac |
57aa50d4 TT |
3846 | CC=$ac_ct_CC |
3847 | fi | |
b0cacab0 | 3848 | else |
57aa50d4 | 3849 | CC="$ac_cv_prog_CC" |
b0cacab0 | 3850 | fi |
e1052144 | 3851 | |
57aa50d4 TT |
3852 | if test -z "$CC"; then |
3853 | if test -n "$ac_tool_prefix"; then | |
3854 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
3855 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
3856 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3857 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6a4bcb5 | 3858 | if ${ac_cv_prog_CC+:} false; then : |
57aa50d4 | 3859 | $as_echo_n "(cached) " >&6 |
a64c9c13 | 3860 | else |
57aa50d4 TT |
3861 | if test -n "$CC"; then |
3862 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3863 | else | |
3864 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3865 | for as_dir in $PATH | |
3866 | do | |
3867 | IFS=$as_save_IFS | |
3868 | test -z "$as_dir" && as_dir=. | |
3869 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d6a4bcb5 | 3870 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
57aa50d4 TT |
3871 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
3872 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3873 | break 2 | |
3874 | fi | |
3875 | done | |
3876 | done | |
3877 | IFS=$as_save_IFS | |
b0cacab0 | 3878 | |
a64c9c13 | 3879 | fi |
57aa50d4 TT |
3880 | fi |
3881 | CC=$ac_cv_prog_CC | |
3882 | if test -n "$CC"; then | |
3883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3884 | $as_echo "$CC" >&6; } | |
b0cacab0 | 3885 | else |
57aa50d4 TT |
3886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3887 | $as_echo "no" >&6; } | |
a64c9c13 | 3888 | fi |
b0cacab0 | 3889 | |
b0cacab0 | 3890 | |
57aa50d4 TT |
3891 | fi |
3892 | fi | |
3893 | if test -z "$CC"; then | |
3894 | # Extract the first word of "cc", so it can be a program name with args. | |
3895 | set dummy cc; ac_word=$2 | |
3896 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3897 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6a4bcb5 | 3898 | if ${ac_cv_prog_CC+:} false; then : |
57aa50d4 | 3899 | $as_echo_n "(cached) " >&6 |
a64c9c13 | 3900 | else |
57aa50d4 TT |
3901 | if test -n "$CC"; then |
3902 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
a64c9c13 | 3903 | else |
57aa50d4 TT |
3904 | ac_prog_rejected=no |
3905 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3906 | for as_dir in $PATH | |
3907 | do | |
3908 | IFS=$as_save_IFS | |
3909 | test -z "$as_dir" && as_dir=. | |
3910 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d6a4bcb5 | 3911 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
57aa50d4 TT |
3912 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
3913 | ac_prog_rejected=yes | |
3914 | continue | |
3915 | fi | |
3916 | ac_cv_prog_CC="cc" | |
3917 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3918 | break 2 | |
3919 | fi | |
3920 | done | |
3921 | done | |
3922 | IFS=$as_save_IFS | |
b0cacab0 | 3923 | |
57aa50d4 TT |
3924 | if test $ac_prog_rejected = yes; then |
3925 | # We found a bogon in the path, so make sure we never use it. | |
3926 | set dummy $ac_cv_prog_CC | |
3927 | shift | |
3928 | if test $# != 0; then | |
3929 | # We chose a different compiler from the bogus one. | |
3930 | # However, it has the same basename, so the bogon will be chosen | |
3931 | # first if we set CC to just the basename; use the full file name. | |
3932 | shift | |
3933 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3934 | fi | |
b0cacab0 | 3935 | fi |
b0cacab0 TT |
3936 | fi |
3937 | fi | |
57aa50d4 TT |
3938 | CC=$ac_cv_prog_CC |
3939 | if test -n "$CC"; then | |
3940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3941 | $as_echo "$CC" >&6; } | |
3942 | else | |
3943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3944 | $as_echo "no" >&6; } | |
b0cacab0 | 3945 | fi |
b0cacab0 | 3946 | |
b0cacab0 TT |
3947 | |
3948 | fi | |
57aa50d4 TT |
3949 | if test -z "$CC"; then |
3950 | if test -n "$ac_tool_prefix"; then | |
3951 | for ac_prog in cl.exe | |
3952 | do | |
3953 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3954 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3955 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3956 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6a4bcb5 | 3957 | if ${ac_cv_prog_CC+:} false; then : |
57aa50d4 TT |
3958 | $as_echo_n "(cached) " >&6 |
3959 | else | |
3960 | if test -n "$CC"; then | |
3961 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3962 | else | |
3963 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3964 | for as_dir in $PATH | |
3965 | do | |
3966 | IFS=$as_save_IFS | |
3967 | test -z "$as_dir" && as_dir=. | |
3968 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d6a4bcb5 | 3969 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
57aa50d4 TT |
3970 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
3971 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3972 | break 2 | |
3973 | fi | |
3974 | done | |
3975 | done | |
3976 | IFS=$as_save_IFS | |
b0cacab0 | 3977 | |
57aa50d4 TT |
3978 | fi |
3979 | fi | |
3980 | CC=$ac_cv_prog_CC | |
3981 | if test -n "$CC"; then | |
3982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3983 | $as_echo "$CC" >&6; } | |
3984 | else | |
3985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3986 | $as_echo "no" >&6; } | |
3987 | fi | |
b0cacab0 TT |
3988 | |
3989 | ||
57aa50d4 TT |
3990 | test -n "$CC" && break |
3991 | done | |
3992 | fi | |
3993 | if test -z "$CC"; then | |
3994 | ac_ct_CC=$CC | |
3995 | for ac_prog in cl.exe | |
b0cacab0 | 3996 | do |
57aa50d4 TT |
3997 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
3998 | set dummy $ac_prog; ac_word=$2 | |
3999 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4000 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6a4bcb5 | 4001 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
39fd3d4f | 4002 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 4003 | else |
57aa50d4 TT |
4004 | if test -n "$ac_ct_CC"; then |
4005 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
b0cacab0 | 4006 | else |
57aa50d4 TT |
4007 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4008 | for as_dir in $PATH | |
4009 | do | |
4010 | IFS=$as_save_IFS | |
4011 | test -z "$as_dir" && as_dir=. | |
4012 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d6a4bcb5 | 4013 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
57aa50d4 TT |
4014 | ac_cv_prog_ac_ct_CC="$ac_prog" |
4015 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4016 | break 2 | |
4017 | fi | |
4018 | done | |
4019 | done | |
4020 | IFS=$as_save_IFS | |
b0cacab0 | 4021 | |
b0cacab0 | 4022 | fi |
b0cacab0 | 4023 | fi |
57aa50d4 TT |
4024 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
4025 | if test -n "$ac_ct_CC"; then | |
4026 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
4027 | $as_echo "$ac_ct_CC" >&6; } | |
4028 | else | |
4029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4030 | $as_echo "no" >&6; } | |
b0cacab0 TT |
4031 | fi |
4032 | ||
b0cacab0 | 4033 | |
57aa50d4 TT |
4034 | test -n "$ac_ct_CC" && break |
4035 | done | |
b0cacab0 | 4036 | |
57aa50d4 TT |
4037 | if test "x$ac_ct_CC" = x; then |
4038 | CC="" | |
4039 | else | |
4040 | case $cross_compiling:$ac_tool_warned in | |
4041 | yes:) | |
4042 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4043 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4044 | ac_tool_warned=yes ;; | |
e1052144 | 4045 | esac |
57aa50d4 TT |
4046 | CC=$ac_ct_CC |
4047 | fi | |
4048 | fi | |
b0cacab0 | 4049 | |
b0cacab0 | 4050 | fi |
e1052144 | 4051 | |
b0cacab0 | 4052 | |
57aa50d4 TT |
4053 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4054 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d6a4bcb5 TB |
4055 | as_fn_error $? "no acceptable C compiler found in \$PATH |
4056 | See \`config.log' for more details" "$LINENO" 5; } | |
57aa50d4 TT |
4057 | |
4058 | # Provide some information about the compiler. | |
4059 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
4060 | set X $ac_compile | |
4061 | ac_compiler=$2 | |
4062 | for ac_option in --version -v -V -qversion; do | |
4063 | { { ac_try="$ac_compiler $ac_option >&5" | |
e1052144 TT |
4064 | case "(($ac_try" in |
4065 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4066 | *) ac_try_echo=$ac_try;; | |
4067 | esac | |
57aa50d4 TT |
4068 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
4069 | $as_echo "$ac_try_echo"; } >&5 | |
4070 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
b0cacab0 | 4071 | ac_status=$? |
57aa50d4 TT |
4072 | if test -s conftest.err; then |
4073 | sed '10a\ | |
4074 | ... rest of stderr output deleted ... | |
4075 | 10q' conftest.err >conftest.er1 | |
4076 | cat conftest.er1 >&5 | |
57aa50d4 | 4077 | fi |
61ef2474 | 4078 | rm -f conftest.er1 conftest.err |
57aa50d4 TT |
4079 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4080 | test $ac_status = 0; } | |
4081 | done | |
e1052144 | 4082 | |
57aa50d4 TT |
4083 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
4084 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
d6a4bcb5 | 4085 | if ${ac_cv_c_compiler_gnu+:} false; then : |
39fd3d4f | 4086 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 4087 | else |
57aa50d4 TT |
4088 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4089 | /* end confdefs.h. */ | |
b0cacab0 | 4090 | |
57aa50d4 TT |
4091 | int |
4092 | main () | |
4093 | { | |
4094 | #ifndef __GNUC__ | |
4095 | choke me | |
4096 | #endif | |
a64c9c13 | 4097 | |
57aa50d4 TT |
4098 | ; |
4099 | return 0; | |
4100 | } | |
4101 | _ACEOF | |
4102 | if ac_fn_c_try_compile "$LINENO"; then : | |
4103 | ac_compiler_gnu=yes | |
b1c92f91 | 4104 | else |
57aa50d4 | 4105 | ac_compiler_gnu=no |
b1c92f91 | 4106 | fi |
57aa50d4 TT |
4107 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4108 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
b0cacab0 | 4109 | |
e1052144 | 4110 | fi |
57aa50d4 TT |
4111 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4112 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4113 | if test $ac_compiler_gnu = yes; then | |
4114 | GCC=yes | |
98919bdb | 4115 | else |
57aa50d4 | 4116 | GCC= |
98919bdb | 4117 | fi |
57aa50d4 TT |
4118 | ac_test_CFLAGS=${CFLAGS+set} |
4119 | ac_save_CFLAGS=$CFLAGS | |
4120 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
4121 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
d6a4bcb5 | 4122 | if ${ac_cv_prog_cc_g+:} false; then : |
57aa50d4 | 4123 | $as_echo_n "(cached) " >&6 |
98919bdb | 4124 | else |
57aa50d4 TT |
4125 | ac_save_c_werror_flag=$ac_c_werror_flag |
4126 | ac_c_werror_flag=yes | |
4127 | ac_cv_prog_cc_g=no | |
4128 | CFLAGS="-g" | |
4129 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4130 | /* end confdefs.h. */ | |
e1052144 | 4131 | |
57aa50d4 TT |
4132 | int |
4133 | main () | |
4134 | { | |
98919bdb | 4135 | |
57aa50d4 TT |
4136 | ; |
4137 | return 0; | |
4138 | } | |
4139 | _ACEOF | |
4140 | if ac_fn_c_try_compile "$LINENO"; then : | |
4141 | ac_cv_prog_cc_g=yes | |
c13351f6 | 4142 | else |
57aa50d4 TT |
4143 | CFLAGS="" |
4144 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4145 | /* end confdefs.h. */ | |
c13351f6 | 4146 | |
57aa50d4 TT |
4147 | int |
4148 | main () | |
4149 | { | |
c13351f6 | 4150 | |
57aa50d4 TT |
4151 | ; |
4152 | return 0; | |
4153 | } | |
4154 | _ACEOF | |
4155 | if ac_fn_c_try_compile "$LINENO"; then : | |
c13351f6 | 4156 | |
57aa50d4 TT |
4157 | else |
4158 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4159 | CFLAGS="-g" | |
4160 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4161 | /* end confdefs.h. */ | |
c13351f6 | 4162 | |
57aa50d4 TT |
4163 | int |
4164 | main () | |
4165 | { | |
c13351f6 | 4166 | |
57aa50d4 TT |
4167 | ; |
4168 | return 0; | |
4169 | } | |
b0cacab0 | 4170 | _ACEOF |
57aa50d4 TT |
4171 | if ac_fn_c_try_compile "$LINENO"; then : |
4172 | ac_cv_prog_cc_g=yes | |
1917875f | 4173 | fi |
57aa50d4 | 4174 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
e1052144 | 4175 | fi |
57aa50d4 | 4176 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8fdc9985 | 4177 | fi |
57aa50d4 TT |
4178 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4179 | ac_c_werror_flag=$ac_save_c_werror_flag | |
e1052144 | 4180 | fi |
57aa50d4 TT |
4181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
4182 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
4183 | if test "$ac_test_CFLAGS" = set; then | |
4184 | CFLAGS=$ac_save_CFLAGS | |
4185 | elif test $ac_cv_prog_cc_g = yes; then | |
4186 | if test "$GCC" = yes; then | |
4187 | CFLAGS="-g -O2" | |
4188 | else | |
4189 | CFLAGS="-g" | |
4190 | fi | |
a64c9c13 | 4191 | else |
57aa50d4 TT |
4192 | if test "$GCC" = yes; then |
4193 | CFLAGS="-O2" | |
4194 | else | |
4195 | CFLAGS= | |
4196 | fi | |
a64c9c13 | 4197 | fi |
57aa50d4 TT |
4198 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
4199 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
d6a4bcb5 | 4200 | if ${ac_cv_prog_cc_c89+:} false; then : |
57aa50d4 | 4201 | $as_echo_n "(cached) " >&6 |
a64c9c13 | 4202 | else |
57aa50d4 TT |
4203 | ac_cv_prog_cc_c89=no |
4204 | ac_save_CC=$CC | |
4205 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4206 | /* end confdefs.h. */ | |
4207 | #include <stdarg.h> | |
4208 | #include <stdio.h> | |
d6a4bcb5 | 4209 | struct stat; |
57aa50d4 TT |
4210 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
4211 | struct buf { int x; }; | |
4212 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4213 | static char *e (p, i) | |
4214 | char **p; | |
4215 | int i; | |
4216 | { | |
4217 | return p[i]; | |
4218 | } | |
4219 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4220 | { | |
4221 | char *s; | |
4222 | va_list v; | |
4223 | va_start (v,p); | |
4224 | s = g (p, va_arg (v,int)); | |
4225 | va_end (v); | |
4226 | return s; | |
4227 | } | |
e1052144 | 4228 | |
57aa50d4 TT |
4229 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
4230 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4231 | These don't provoke an error unfortunately, instead are silently treated | |
4232 | as 'x'. The following induces an error, until -std is added to get | |
4233 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
4234 | array size at least. It's necessary to write '\x00'==0 to get something | |
4235 | that's true only with -std. */ | |
4236 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
93636bde | 4237 | |
57aa50d4 TT |
4238 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4239 | inside strings and character constants. */ | |
4240 | #define FOO(x) 'x' | |
4241 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
a64c9c13 | 4242 | |
57aa50d4 TT |
4243 | int test (int i, double x); |
4244 | struct s1 {int (*f) (int a);}; | |
4245 | struct s2 {int (*f) (double a);}; | |
4246 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4247 | int argc; | |
4248 | char **argv; | |
4249 | int | |
4250 | main () | |
4251 | { | |
4252 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4253 | ; | |
4254 | return 0; | |
4255 | } | |
4256 | _ACEOF | |
4257 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
4258 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
4259 | do | |
4260 | CC="$ac_save_CC $ac_arg" | |
4261 | if ac_fn_c_try_compile "$LINENO"; then : | |
4262 | ac_cv_prog_cc_c89=$ac_arg | |
a64c9c13 | 4263 | fi |
57aa50d4 TT |
4264 | rm -f core conftest.err conftest.$ac_objext |
4265 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
4266 | done | |
4267 | rm -f conftest.$ac_ext | |
4268 | CC=$ac_save_CC | |
a64c9c13 | 4269 | |
57aa50d4 TT |
4270 | fi |
4271 | # AC_CACHE_VAL | |
4272 | case "x$ac_cv_prog_cc_c89" in | |
4273 | x) | |
4274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4275 | $as_echo "none needed" >&6; } ;; | |
4276 | xno) | |
4277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4278 | $as_echo "unsupported" >&6; } ;; | |
4279 | *) | |
4280 | CC="$CC $ac_cv_prog_cc_c89" | |
4281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4282 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
4283 | esac | |
4284 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
a64c9c13 | 4285 | |
e1052144 TT |
4286 | fi |
4287 | ||
57aa50d4 TT |
4288 | ac_ext=c |
4289 | ac_cpp='$CPP $CPPFLAGS' | |
4290 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4291 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4292 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
93636bde | 4293 | |
9b3018a8 TT |
4294 | if test "$GCC" = yes; then |
4295 | RDYNAMIC="-rdynamic" | |
4296 | ||
4297 | fi | |
57aa50d4 TT |
4298 | ac_ext=c |
4299 | ac_cpp='$CPP $CPPFLAGS' | |
4300 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4301 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4302 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4303 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
4304 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
4305 | # On Suns, sometimes $CPP names a directory. | |
4306 | if test -n "$CPP" && test -d "$CPP"; then | |
4307 | CPP= | |
4308 | fi | |
4309 | if test -z "$CPP"; then | |
d6a4bcb5 | 4310 | if ${ac_cv_prog_CPP+:} false; then : |
57aa50d4 TT |
4311 | $as_echo_n "(cached) " >&6 |
4312 | else | |
4313 | # Double quotes because CPP needs to be expanded | |
4314 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
4315 | do | |
4316 | ac_preproc_ok=false | |
4317 | for ac_c_preproc_warn_flag in '' yes | |
4318 | do | |
4319 | # Use a header file that comes with gcc, so configuring glibc | |
4320 | # with a fresh cross-compiler works. | |
4321 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4322 | # <limits.h> exists even on freestanding compilers. | |
4323 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4324 | # not just through cpp. "Syntax error" is here to catch this case. | |
4325 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4326 | /* end confdefs.h. */ | |
4327 | #ifdef __STDC__ | |
4328 | # include <limits.h> | |
4329 | #else | |
4330 | # include <assert.h> | |
4331 | #endif | |
4332 | Syntax error | |
4333 | _ACEOF | |
4334 | if ac_fn_c_try_cpp "$LINENO"; then : | |
a64c9c13 | 4335 | |
cdf186e4 | 4336 | else |
57aa50d4 TT |
4337 | # Broken: fails on valid input. |
4338 | continue | |
cdf186e4 | 4339 | fi |
d6a4bcb5 | 4340 | rm -f conftest.err conftest.i conftest.$ac_ext |
cdf186e4 | 4341 | |
57aa50d4 TT |
4342 | # OK, works on sane cases. Now check whether nonexistent headers |
4343 | # can be detected and how. | |
4344 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4345 | /* end confdefs.h. */ | |
4346 | #include <ac_nonexistent.h> | |
4347 | _ACEOF | |
4348 | if ac_fn_c_try_cpp "$LINENO"; then : | |
4349 | # Broken: success on invalid input. | |
4350 | continue | |
cdf186e4 | 4351 | else |
57aa50d4 TT |
4352 | # Passes both tests. |
4353 | ac_preproc_ok=: | |
4354 | break | |
4355 | fi | |
d6a4bcb5 | 4356 | rm -f conftest.err conftest.i conftest.$ac_ext |
cdf186e4 | 4357 | |
57aa50d4 TT |
4358 | done |
4359 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
d6a4bcb5 | 4360 | rm -f conftest.i conftest.err conftest.$ac_ext |
57aa50d4 TT |
4361 | if $ac_preproc_ok; then : |
4362 | break | |
e1052144 TT |
4363 | fi |
4364 | ||
57aa50d4 TT |
4365 | done |
4366 | ac_cv_prog_CPP=$CPP | |
93636bde | 4367 | |
cdf186e4 | 4368 | fi |
57aa50d4 | 4369 | CPP=$ac_cv_prog_CPP |
cdf186e4 | 4370 | else |
57aa50d4 | 4371 | ac_cv_prog_CPP=$CPP |
e1052144 | 4372 | fi |
57aa50d4 TT |
4373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
4374 | $as_echo "$CPP" >&6; } | |
4375 | ac_preproc_ok=false | |
4376 | for ac_c_preproc_warn_flag in '' yes | |
4377 | do | |
4378 | # Use a header file that comes with gcc, so configuring glibc | |
4379 | # with a fresh cross-compiler works. | |
4380 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4381 | # <limits.h> exists even on freestanding compilers. | |
4382 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4383 | # not just through cpp. "Syntax error" is here to catch this case. | |
4384 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4385 | /* end confdefs.h. */ | |
4386 | #ifdef __STDC__ | |
4387 | # include <limits.h> | |
4388 | #else | |
4389 | # include <assert.h> | |
4390 | #endif | |
4391 | Syntax error | |
b0cacab0 | 4392 | _ACEOF |
57aa50d4 | 4393 | if ac_fn_c_try_cpp "$LINENO"; then : |
80bfaa3e TT |
4394 | |
4395 | else | |
57aa50d4 TT |
4396 | # Broken: fails on valid input. |
4397 | continue | |
e1052144 | 4398 | fi |
d6a4bcb5 | 4399 | rm -f conftest.err conftest.i conftest.$ac_ext |
e1052144 | 4400 | |
57aa50d4 TT |
4401 | # OK, works on sane cases. Now check whether nonexistent headers |
4402 | # can be detected and how. | |
4403 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4404 | /* end confdefs.h. */ | |
4405 | #include <ac_nonexistent.h> | |
b0cacab0 | 4406 | _ACEOF |
57aa50d4 TT |
4407 | if ac_fn_c_try_cpp "$LINENO"; then : |
4408 | # Broken: success on invalid input. | |
4409 | continue | |
f0a22d0f | 4410 | else |
57aa50d4 TT |
4411 | # Passes both tests. |
4412 | ac_preproc_ok=: | |
4413 | break | |
e1052144 | 4414 | fi |
d6a4bcb5 | 4415 | rm -f conftest.err conftest.i conftest.$ac_ext |
e1052144 | 4416 | |
57aa50d4 TT |
4417 | done |
4418 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
d6a4bcb5 | 4419 | rm -f conftest.i conftest.err conftest.$ac_ext |
57aa50d4 | 4420 | if $ac_preproc_ok; then : |
2a29f135 TT |
4421 | |
4422 | else | |
57aa50d4 TT |
4423 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4424 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d6a4bcb5 TB |
4425 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
4426 | See \`config.log' for more details" "$LINENO" 5; } | |
e1052144 TT |
4427 | fi |
4428 | ||
57aa50d4 TT |
4429 | ac_ext=c |
4430 | ac_cpp='$CPP $CPPFLAGS' | |
4431 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4432 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4433 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
af773654 | 4434 | |
57aa50d4 TT |
4435 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5 |
4436 | $as_echo_n "checking for additional special compiler flags... " >&6; } | |
4437 | if test "$GCC" = yes | |
4438 | then | |
4439 | case "$host_cpu" in | |
4440 | alpha) addcflags="-mieee" ;; | |
4441 | esac | |
14b596d4 | 4442 | fi |
57aa50d4 TT |
4443 | if test "x$addcflags" != x |
4444 | then | |
4445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5 | |
4446 | $as_echo "$addcflags" >&6; } | |
4447 | CFLAGS="$addcflags $CFLAGS" | |
14b596d4 | 4448 | else |
57aa50d4 TT |
4449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5 |
4450 | $as_echo "(none)" >&6; } | |
14b596d4 TT |
4451 | fi |
4452 | ||
93613951 TT |
4453 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
4454 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
4455 | if ${ac_cv_path_GREP+:} false; then : | |
4456 | $as_echo_n "(cached) " >&6 | |
57aa50d4 | 4457 | else |
93613951 TT |
4458 | if test -z "$GREP"; then |
4459 | ac_path_GREP_found=false | |
4460 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4461 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4462 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4463 | do | |
4464 | IFS=$as_save_IFS | |
4465 | test -z "$as_dir" && as_dir=. | |
4466 | for ac_prog in grep ggrep; do | |
4467 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4468 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
4469 | as_fn_executable_p "$ac_path_GREP" || continue | |
4470 | # Check for GNU ac_path_GREP and select it if it is found. | |
4471 | # Check for GNU $ac_path_GREP | |
4472 | case `"$ac_path_GREP" --version 2>&1` in | |
4473 | *GNU*) | |
4474 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
4475 | *) | |
4476 | ac_count=0 | |
4477 | $as_echo_n 0123456789 >"conftest.in" | |
4478 | while : | |
4479 | do | |
4480 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4481 | mv "conftest.tmp" "conftest.in" | |
4482 | cp "conftest.in" "conftest.nl" | |
4483 | $as_echo 'GREP' >> "conftest.nl" | |
4484 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4485 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4486 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4487 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
4488 | # Best one so far, save it but keep looking for a better one | |
4489 | ac_cv_path_GREP="$ac_path_GREP" | |
4490 | ac_path_GREP_max=$ac_count | |
4491 | fi | |
4492 | # 10*(2^10) chars as input seems more than enough | |
4493 | test $ac_count -gt 10 && break | |
4494 | done | |
4495 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4496 | esac | |
14b596d4 | 4497 | |
93613951 TT |
4498 | $ac_path_GREP_found && break 3 |
4499 | done | |
4500 | done | |
4501 | done | |
4502 | IFS=$as_save_IFS | |
4503 | if test -z "$ac_cv_path_GREP"; then | |
4504 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4505 | fi | |
57aa50d4 | 4506 | else |
93613951 TT |
4507 | ac_cv_path_GREP=$GREP |
4508 | fi | |
57aa50d4 | 4509 | |
14b596d4 | 4510 | fi |
93613951 TT |
4511 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
4512 | $as_echo "$ac_cv_path_GREP" >&6; } | |
4513 | GREP="$ac_cv_path_GREP" | |
14b596d4 | 4514 | |
14b596d4 | 4515 | |
93613951 TT |
4516 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
4517 | $as_echo_n "checking for egrep... " >&6; } | |
4518 | if ${ac_cv_path_EGREP+:} false; then : | |
4519 | $as_echo_n "(cached) " >&6 | |
5aa6c3f6 | 4520 | else |
93613951 TT |
4521 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
4522 | then ac_cv_path_EGREP="$GREP -E" | |
4523 | else | |
4524 | if test -z "$EGREP"; then | |
4525 | ac_path_EGREP_found=false | |
4526 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4527 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4528 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4529 | do | |
4530 | IFS=$as_save_IFS | |
4531 | test -z "$as_dir" && as_dir=. | |
4532 | for ac_prog in egrep; do | |
4533 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4534 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
4535 | as_fn_executable_p "$ac_path_EGREP" || continue | |
4536 | # Check for GNU ac_path_EGREP and select it if it is found. | |
4537 | # Check for GNU $ac_path_EGREP | |
4538 | case `"$ac_path_EGREP" --version 2>&1` in | |
4539 | *GNU*) | |
4540 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4541 | *) | |
4542 | ac_count=0 | |
4543 | $as_echo_n 0123456789 >"conftest.in" | |
4544 | while : | |
4545 | do | |
4546 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4547 | mv "conftest.tmp" "conftest.in" | |
4548 | cp "conftest.in" "conftest.nl" | |
4549 | $as_echo 'EGREP' >> "conftest.nl" | |
4550 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4551 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4552 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4553 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
4554 | # Best one so far, save it but keep looking for a better one | |
4555 | ac_cv_path_EGREP="$ac_path_EGREP" | |
4556 | ac_path_EGREP_max=$ac_count | |
4557 | fi | |
4558 | # 10*(2^10) chars as input seems more than enough | |
4559 | test $ac_count -gt 10 && break | |
4560 | done | |
4561 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4562 | esac | |
5aa6c3f6 | 4563 | |
93613951 TT |
4564 | $ac_path_EGREP_found && break 3 |
4565 | done | |
4566 | done | |
4567 | done | |
4568 | IFS=$as_save_IFS | |
4569 | if test -z "$ac_cv_path_EGREP"; then | |
4570 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4571 | fi | |
5aa6c3f6 | 4572 | else |
93613951 TT |
4573 | ac_cv_path_EGREP=$EGREP |
4574 | fi | |
183c73b0 | 4575 | |
93613951 | 4576 | fi |
183c73b0 | 4577 | fi |
93613951 TT |
4578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
4579 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
4580 | EGREP="$ac_cv_path_EGREP" | |
183c73b0 TT |
4581 | |
4582 | ||
93613951 TT |
4583 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
4584 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
4585 | if ${ac_cv_header_stdc+:} false; then : | |
4586 | $as_echo_n "(cached) " >&6 | |
91d11da1 | 4587 | else |
93613951 TT |
4588 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4589 | /* end confdefs.h. */ | |
4590 | #include <stdlib.h> | |
4591 | #include <stdarg.h> | |
4592 | #include <string.h> | |
4593 | #include <float.h> | |
91d11da1 | 4594 | |
93613951 TT |
4595 | int |
4596 | main () | |
4597 | { | |
183c73b0 | 4598 | |
93613951 TT |
4599 | ; |
4600 | return 0; | |
4601 | } | |
4602 | _ACEOF | |
4603 | if ac_fn_c_try_compile "$LINENO"; then : | |
4604 | ac_cv_header_stdc=yes | |
183c73b0 | 4605 | else |
93613951 | 4606 | ac_cv_header_stdc=no |
5aa6c3f6 | 4607 | fi |
93613951 | 4608 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5aa6c3f6 | 4609 | |
93613951 TT |
4610 | if test $ac_cv_header_stdc = yes; then |
4611 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4612 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4613 | /* end confdefs.h. */ | |
4614 | #include <string.h> | |
4615 | ||
4616 | _ACEOF | |
4617 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4618 | $EGREP "memchr" >/dev/null 2>&1; then : | |
4619 | ||
4620 | else | |
4621 | ac_cv_header_stdc=no | |
4622 | fi | |
4623 | rm -f conftest* | |
4624 | ||
4625 | fi | |
4626 | ||
4627 | if test $ac_cv_header_stdc = yes; then | |
4628 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4629 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4630 | /* end confdefs.h. */ | |
4631 | #include <stdlib.h> | |
4632 | ||
4633 | _ACEOF | |
4634 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4635 | $EGREP "free" >/dev/null 2>&1; then : | |
4636 | ||
4637 | else | |
4638 | ac_cv_header_stdc=no | |
4639 | fi | |
4640 | rm -f conftest* | |
4641 | ||
4642 | fi | |
4643 | ||
4644 | if test $ac_cv_header_stdc = yes; then | |
4645 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4646 | if test "$cross_compiling" = yes; then : | |
4647 | : | |
4648 | else | |
4649 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4650 | /* end confdefs.h. */ | |
4651 | #include <ctype.h> | |
4652 | #include <stdlib.h> | |
4653 | #if ((' ' & 0x0FF) == 0x020) | |
4654 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4655 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4656 | #else | |
4657 | # define ISLOWER(c) \ | |
4658 | (('a' <= (c) && (c) <= 'i') \ | |
4659 | || ('j' <= (c) && (c) <= 'r') \ | |
4660 | || ('s' <= (c) && (c) <= 'z')) | |
4661 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4662 | #endif | |
4663 | ||
4664 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4665 | int | |
4666 | main () | |
4667 | { | |
4668 | int i; | |
4669 | for (i = 0; i < 256; i++) | |
4670 | if (XOR (islower (i), ISLOWER (i)) | |
4671 | || toupper (i) != TOUPPER (i)) | |
4672 | return 2; | |
4673 | return 0; | |
4674 | } | |
4675 | _ACEOF | |
4676 | if ac_fn_c_try_run "$LINENO"; then : | |
4677 | ||
4678 | else | |
4679 | ac_cv_header_stdc=no | |
4680 | fi | |
4681 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
4682 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
4683 | fi | |
4684 | ||
4685 | fi | |
4686 | fi | |
4687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
4688 | $as_echo "$ac_cv_header_stdc" >&6; } | |
4689 | if test $ac_cv_header_stdc = yes; then | |
4690 | ||
4691 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
4692 | ||
4693 | fi | |
4694 | ||
4695 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
4696 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4697 | inttypes.h stdint.h unistd.h | |
4698 | do : | |
4699 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4700 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
4701 | " | |
4702 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
4703 | cat >>confdefs.h <<_ACEOF | |
4704 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4705 | _ACEOF | |
4706 | ||
4707 | fi | |
4708 | ||
4709 | done | |
4710 | ||
4711 | ||
4712 | ||
4713 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" | |
4714 | if test "x$ac_cv_header_minix_config_h" = xyes; then : | |
4715 | MINIX=yes | |
4716 | else | |
4717 | MINIX= | |
4718 | fi | |
4719 | ||
4720 | ||
4721 | if test "$MINIX" = yes; then | |
4722 | ||
4723 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h | |
4724 | ||
4725 | ||
4726 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h | |
4727 | ||
4728 | ||
4729 | $as_echo "#define _MINIX 1" >>confdefs.h | |
4730 | ||
4731 | fi | |
4732 | ||
4733 | ||
4734 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 | |
4735 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | |
4736 | if ${ac_cv_safe_to_define___extensions__+:} false; then : | |
4737 | $as_echo_n "(cached) " >&6 | |
4738 | else | |
4739 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4740 | /* end confdefs.h. */ | |
4741 | ||
4742 | # define __EXTENSIONS__ 1 | |
4743 | $ac_includes_default | |
4744 | int | |
4745 | main () | |
4746 | { | |
4747 | ||
4748 | ; | |
4749 | return 0; | |
4750 | } | |
4751 | _ACEOF | |
4752 | if ac_fn_c_try_compile "$LINENO"; then : | |
4753 | ac_cv_safe_to_define___extensions__=yes | |
4754 | else | |
4755 | ac_cv_safe_to_define___extensions__=no | |
4756 | fi | |
4757 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4758 | fi | |
4759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 | |
4760 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | |
4761 | test $ac_cv_safe_to_define___extensions__ = yes && | |
4762 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | |
4763 | ||
4764 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h | |
4765 | ||
4766 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h | |
4767 | ||
4768 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h | |
4769 | ||
4770 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h | |
4771 | ||
4772 | ||
4773 | LIB_EXT=.a | |
4774 | STATIC_LIB_EXT=.a | |
4775 | PROFILED_LIB_EXT=.a | |
4776 | ||
4777 | # Check whether --with-root-prefix was given. | |
4778 | if test "${with_root_prefix+set}" = set; then : | |
4779 | withval=$with_root_prefix; root_prefix=$withval | |
4780 | else | |
4781 | root_prefix=NONE | |
4782 | fi | |
4783 | # Check whether --enable-maintainer-mode was given. | |
4784 | if test "${enable_maintainer_mode+set}" = set; then : | |
4785 | enableval=$enable_maintainer_mode; if test "$enableval" = "no" | |
4786 | then | |
4787 | MAINTAINER_CMT=# | |
4788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5 | |
4789 | $as_echo "Disabling maintainer mode" >&6; } | |
4790 | else | |
4791 | MAINTAINER_CMT= | |
4792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5 | |
4793 | $as_echo "Enabling maintainer mode" >&6; } | |
4794 | fi | |
4795 | ||
4796 | else | |
4797 | MAINTAINER_CMT=# | |
4798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5 | |
4799 | $as_echo "Disabling maintainer mode by default" >&6; } | |
4800 | ||
4801 | fi | |
4802 | ||
4803 | ||
4804 | # Check whether --enable-symlink-install was given. | |
4805 | if test "${enable_symlink_install+set}" = set; then : | |
4806 | enableval=$enable_symlink_install; if test "$enableval" = "no" | |
4807 | then | |
4808 | LINK_INSTALL_FLAGS=-f | |
4809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5 | |
4810 | $as_echo "Disabling symlinks for install" >&6; } | |
4811 | else | |
4812 | LINK_INSTALL_FLAGS=-sf | |
4813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5 | |
4814 | $as_echo "Enabling symlinks for install" >&6; } | |
4815 | fi | |
4816 | ||
4817 | else | |
4818 | LINK_INSTALL_FLAGS=-f | |
4819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5 | |
4820 | $as_echo "Disabling symlinks for install by default" >&6; } | |
4821 | ||
4822 | fi | |
4823 | ||
4824 | ||
4825 | relative_symlink_defined= | |
4826 | # Check whether --enable-relative-symlinks was given. | |
4827 | if test "${enable_relative_symlinks+set}" = set; then : | |
4828 | enableval=$enable_relative_symlinks; if test "$enableval" = "no" | |
4829 | then | |
4830 | SYMLINK_RELATIVE= | |
4831 | relative_symlink_defined=yes | |
4832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5 | |
4833 | $as_echo "Disabling relative symlinks for install" >&6; } | |
4834 | else | |
4835 | SYMLINK_RELATIVE=--relative | |
4836 | relative_symlink_defined=yes | |
4837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5 | |
4838 | $as_echo "Enabling relative symlinks for install" >&6; } | |
4839 | fi | |
4840 | fi | |
4841 | ||
4842 | # Check whether --enable-symlink-relative-symlinks was given. | |
4843 | if test "${enable_symlink_relative_symlinks+set}" = set; then : | |
4844 | enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no" | |
4845 | then | |
4846 | SYMLINK_RELATIVE=yes | |
4847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5 | |
4848 | $as_echo "Disabling relative symlinks for install" >&6; } | |
4849 | else | |
4850 | SYMLINK_RELATIVE=--relative | |
4851 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5 | |
4852 | $as_echo "Enabling relative symlinks for install" >&6; } | |
4853 | fi | |
4854 | ||
4855 | else | |
4856 | if test -z "$relative_symlink_defined" | |
4857 | then | |
4858 | SYMLINK_RELATIVE= | |
4859 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5 | |
4860 | $as_echo "Disabling relative symlinks for install by default" >&6; } | |
4861 | fi | |
4862 | ||
4863 | fi | |
4864 | ||
4865 | ||
4866 | # Check whether --enable-symlink-build was given. | |
4867 | if test "${enable_symlink_build+set}" = set; then : | |
5aa6c3f6 TT |
4868 | enableval=$enable_symlink_build; if test "$enableval" = "no" |
4869 | then | |
4870 | LINK_BUILD_FLAGS= | |
4871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5 | |
4872 | $as_echo "Disabling symlinks for build" >&6; } | |
4873 | else | |
4874 | LINK_BUILD_FLAGS=-s | |
4875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5 | |
4876 | $as_echo "Enabling symlinks for build" >&6; } | |
4877 | fi | |
4878 | ||
4879 | else | |
4880 | LINK_BUILD_FLAGS= | |
183c73b0 TT |
4881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5 |
4882 | $as_echo "Disabling symlinks for build by default" >&6; } | |
5aa6c3f6 TT |
4883 | |
4884 | fi | |
4885 | ||
4886 | ||
57aa50d4 TT |
4887 | # Check whether --enable-verbose-makecmds was given. |
4888 | if test "${enable_verbose_makecmds+set}" = set; then : | |
4889 | enableval=$enable_verbose_makecmds; if test "$enableval" = "no" | |
4890 | then | |
4891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5 | |
4892 | $as_echo "Disabling verbose make commands" >&6; } | |
4893 | E=@echo | |
c1986ecb | 4894 | ES=echo |
57aa50d4 | 4895 | Q=@ |
14b596d4 | 4896 | else |
57aa50d4 TT |
4897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5 |
4898 | $as_echo "Enabling verbose make commands" >&6; } | |
4899 | E=@\\# | |
c1986ecb | 4900 | ES=\\# |
57aa50d4 TT |
4901 | Q= |
4902 | fi | |
14b596d4 | 4903 | |
14b596d4 | 4904 | else |
57aa50d4 TT |
4905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5 |
4906 | $as_echo "Disabling verbose make commands" >&6; } | |
4907 | E=@echo | |
c1986ecb | 4908 | ES=echo |
57aa50d4 | 4909 | Q=@ |
14b596d4 | 4910 | |
14b596d4 TT |
4911 | fi |
4912 | ||
14b596d4 | 4913 | |
57aa50d4 | 4914 | |
c1986ecb | 4915 | |
57aa50d4 TT |
4916 | E2_PKG_CONFIG_STATIC=--static |
4917 | LDFLAG_DYNAMIC= | |
4918 | PRIVATE_LIBS_CMT= | |
4919 | # Check whether --enable-elf-shlibs was given. | |
4920 | if test "${enable_elf_shlibs+set}" = set; then : | |
4921 | enableval=$enable_elf_shlibs; if test "$enableval" = "no" | |
cdf186e4 | 4922 | then |
57aa50d4 TT |
4923 | ELF_CMT=# |
4924 | MAKEFILE_ELF=/dev/null | |
4925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5 | |
4926 | $as_echo "Disabling ELF shared libraries" >&6; } | |
cdf186e4 | 4927 | else |
57aa50d4 TT |
4928 | E2_PKG_CONFIG_STATIC= |
4929 | ELF_CMT= | |
4930 | MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib | |
4931 | case "$host_os" in | |
4932 | solaris2.*) | |
4933 | MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib | |
4934 | ;; | |
4935 | esac | |
4936 | BINARY_TYPE=elfbin | |
4937 | LIB_EXT=.so | |
4938 | PRIVATE_LIBS_CMT=# | |
4939 | LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib' | |
4940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5 | |
4941 | $as_echo "Enabling ELF shared libraries" >&6; } | |
cdf186e4 TT |
4942 | fi |
4943 | ||
4944 | else | |
57aa50d4 TT |
4945 | MAKEFILE_ELF=/dev/null |
4946 | ELF_CMT=# | |
4947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5 | |
4948 | $as_echo "Disabling ELF shared libraries by default" >&6; } | |
cdf186e4 | 4949 | |
e1052144 TT |
4950 | fi |
4951 | ||
cdf186e4 | 4952 | |
57aa50d4 TT |
4953 | |
4954 | # Check whether --enable-bsd-shlibs was given. | |
4955 | if test "${enable_bsd_shlibs+set}" = set; then : | |
4956 | enableval=$enable_bsd_shlibs; if test "$enableval" = "no" | |
cdf186e4 | 4957 | then |
57aa50d4 TT |
4958 | BSDLIB_CMT=# |
4959 | MAKEFILE_BSDLIB=/dev/null | |
4960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5 | |
4961 | $as_echo "Disabling BSD shared libraries" >&6; } | |
cdf186e4 | 4962 | else |
57aa50d4 TT |
4963 | E2_PKG_CONFIG_STATIC= |
4964 | BSDLIB_CMT= | |
4965 | MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib | |
4966 | LIB_EXT=.so | |
4967 | case "$host_os" in | |
4968 | darwin*) | |
4969 | MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib | |
4970 | LIB_EXT=.dylib | |
4971 | ;; | |
4972 | esac | |
4973 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5 | |
4974 | $as_echo "Enabling BSD shared libraries" >&6; } | |
cdf186e4 TT |
4975 | fi |
4976 | ||
4977 | else | |
57aa50d4 TT |
4978 | MAKEFILE_BSDLIB=/dev/null |
4979 | BSDLIB_CMT=# | |
4980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5 | |
4981 | $as_echo "Disabling BSD shared libraries by default" >&6; } | |
cdf186e4 | 4982 | |
e1052144 TT |
4983 | fi |
4984 | ||
cdf186e4 | 4985 | |
57aa50d4 TT |
4986 | |
4987 | # Check whether --enable-profile was given. | |
4988 | if test "${enable_profile+set}" = set; then : | |
4989 | enableval=$enable_profile; if test "$enableval" = "no" | |
cdf186e4 | 4990 | then |
57aa50d4 TT |
4991 | PROFILE_CMT=# |
4992 | MAKEFILE_PROFILE=/dev/null | |
4993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5 | |
4994 | $as_echo "Disabling profiling libraries" >&6; } | |
cdf186e4 | 4995 | else |
57aa50d4 TT |
4996 | PROFILE_CMT= |
4997 | MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile | |
4998 | PROFILED_LIB_EXT=_p.a | |
4999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5 | |
5000 | $as_echo "Building profiling libraries" >&6; } | |
cdf186e4 TT |
5001 | fi |
5002 | ||
5003 | else | |
57aa50d4 TT |
5004 | PROFILE_CMT=# |
5005 | MAKEFILE_PROFILE=/dev/null | |
5006 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5 | |
5007 | $as_echo "Disabling profiling libraries by default" >&6; } | |
cdf186e4 | 5008 | |
e1052144 TT |
5009 | fi |
5010 | ||
cdf186e4 | 5011 | |
57aa50d4 | 5012 | |
fedfb27f TT |
5013 | # Check whether --enable-gcov was given. |
5014 | if test "${enable_gcov+set}" = set; then : | |
5015 | enableval=$enable_gcov; if test "$enableval" = "yes" | |
5016 | then | |
5017 | CFLAGS="-g -fprofile-arcs -ftest-coverage" | |
5018 | LDFLAGS="-fprofile-arcs -ftest-coverage" | |
5019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling gcov support" >&5 | |
5020 | $as_echo "Enabling gcov support" >&6; } | |
5021 | fi | |
5022 | ||
5023 | fi | |
5024 | ||
fd1677e8 TT |
5025 | CFLAGS_SHLIB="${CFLAGS_SHLIB:-$CFLAGS}" |
5026 | CFLAGS_STLIB="${CFLAGS_STLIB:-$CFLAGS}" | |
5027 | LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS} | |
5028 | LDFLAGS_STATIC=${LDFLAGS_STATIC:-$LDFLAGS} | |
5029 | # Check whether --enable-hardening was given. | |
5030 | if test "${enable_hardening+set}" = set; then : | |
5031 | enableval=$enable_hardening; if test "$enableval" = "yes" | |
5032 | then | |
5033 | HARDEN_CFLAGS="-D_FORTIFY_SOURCE=2 -fstack-protector-strong" | |
5034 | HARDEN_LDFLAGS="-Wl,-z,relro -Wl,-z,now" | |
5035 | CFLAGS="$CFLAGS $HARDEN_CFLAGS -fPIE" | |
5036 | CFLAGS_SHLIB="$CFLAGS_SHLIB $HARDEN_CFLAGS" | |
5037 | CFLAGS_STLIB="$CFLAGS_STLIB $HARDEN_CFLAGS -fPIE" | |
5038 | LDFLAGS="$LDFLAGS $HARDEN_LDFLAGS -fPIE -pie" | |
5039 | LDFLAGS_STATIC="$LDFLAGS_STATIC $HARDEN_LDFLAGS" | |
5040 | LDFLAGS_SHLIB="$LDFLAGS_SHLIB $HARDEN_LDFLAGS" | |
5041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling hardening support" >&5 | |
5042 | $as_echo "Enabling hardening support" >&6; } | |
5043 | fi | |
5044 | ||
5045 | fi | |
cdf186e4 | 5046 | |
57aa50d4 TT |
5047 | |
5048 | ||
5049 | ||
5050 | ||
5051 | ||
5052 | # Check whether --enable-jbd-debug was given. | |
5053 | if test "${enable_jbd_debug+set}" = set; then : | |
5054 | enableval=$enable_jbd_debug; if test "$enableval" = "no" | |
5d40773b | 5055 | then |
57aa50d4 TT |
5056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5 |
5057 | $as_echo "Disabling journal debugging" >&6; } | |
5d40773b | 5058 | else |
d1154eb4 TT |
5059 | |
5060 | $as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h | |
57aa50d4 TT |
5061 | |
5062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5 | |
5063 | $as_echo "Enabling journal debugging" >&6; } | |
5d40773b TT |
5064 | fi |
5065 | ||
5066 | else | |
57aa50d4 TT |
5067 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5 |
5068 | $as_echo "Disabling journal debugging by default" >&6; } | |
5d40773b | 5069 | |
e1052144 TT |
5070 | fi |
5071 | ||
57aa50d4 TT |
5072 | # Check whether --enable-blkid-debug was given. |
5073 | if test "${enable_blkid_debug+set}" = set; then : | |
5074 | enableval=$enable_blkid_debug; if test "$enableval" = "no" | |
3249394d | 5075 | then |
57aa50d4 TT |
5076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5 |
5077 | $as_echo "Disabling blkid debugging" >&6; } | |
3249394d | 5078 | else |
d1154eb4 TT |
5079 | |
5080 | $as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h | |
57aa50d4 TT |
5081 | |
5082 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5 | |
5083 | $as_echo "Enabling blkid debugging" >&6; } | |
3249394d TT |
5084 | fi |
5085 | ||
5086 | else | |
57aa50d4 TT |
5087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5 |
5088 | $as_echo "Disabling blkid debugging by default" >&6; } | |
3249394d TT |
5089 | |
5090 | fi | |
5091 | ||
57aa50d4 TT |
5092 | # Check whether --enable-testio-debug was given. |
5093 | if test "${enable_testio_debug+set}" = set; then : | |
d1154eb4 TT |
5094 | enableval=$enable_testio_debug; |
5095 | if test "$enableval" = "no" | |
3249394d | 5096 | then |
57aa50d4 TT |
5097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5 |
5098 | $as_echo "Disabling testio debugging" >&6; } | |
5099 | TEST_IO_CMT="#" | |
3249394d | 5100 | else |
57aa50d4 TT |
5101 | TEST_IO_CMT= |
5102 | $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h | |
3249394d | 5103 | |
57aa50d4 TT |
5104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5 |
5105 | $as_echo "Enabling testio debugging" >&6; } | |
5106 | fi | |
3249394d | 5107 | |
3249394d | 5108 | else |
57aa50d4 TT |
5109 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5 |
5110 | $as_echo "Enabling testio debugging by default" >&6; } | |
5111 | $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h | |
3249394d | 5112 | |
57aa50d4 | 5113 | TEST_IO_CMT= |
3249394d TT |
5114 | |
5115 | fi | |
5116 | ||
3249394d | 5117 | |
57aa50d4 TT |
5118 | |
5119 | ||
93613951 TT |
5120 | |
5121 | ||
5122 | ||
5123 | ||
5124 | ||
57aa50d4 | 5125 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
93613951 | 5126 | if test -n "$ac_tool_prefix"; then |
57aa50d4 TT |
5127 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
5128 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
5129 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5130 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6a4bcb5 | 5131 | if ${ac_cv_path_PKG_CONFIG+:} false; then : |
57aa50d4 TT |
5132 | $as_echo_n "(cached) " >&6 |
5133 | else | |
5134 | case $PKG_CONFIG in | |
5135 | [\\/]* | ?:[\\/]*) | |
5136 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
5137 | ;; | |
5138 | *) | |
5139 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5140 | for as_dir in $PATH | |
5141 | do | |
5142 | IFS=$as_save_IFS | |
5143 | test -z "$as_dir" && as_dir=. | |
5144 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d6a4bcb5 | 5145 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
57aa50d4 TT |
5146 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
5147 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5148 | break 2 | |
5149 | fi | |
5150 | done | |
5151 | done | |
5152 | IFS=$as_save_IFS | |
5153 | ||
5154 | ;; | |
5155 | esac | |
5156 | fi | |
5157 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
5158 | if test -n "$PKG_CONFIG"; then | |
5159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | |
5160 | $as_echo "$PKG_CONFIG" >&6; } | |
5161 | else | |
5162 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5163 | $as_echo "no" >&6; } | |
3249394d TT |
5164 | fi |
5165 | ||
5166 | ||
57aa50d4 TT |
5167 | fi |
5168 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
5169 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
5170 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
5171 | set dummy pkg-config; ac_word=$2 | |
5172 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5173 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6a4bcb5 | 5174 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : |
57aa50d4 TT |
5175 | $as_echo_n "(cached) " >&6 |
5176 | else | |
5177 | case $ac_pt_PKG_CONFIG in | |
5178 | [\\/]* | ?:[\\/]*) | |
5179 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
5180 | ;; | |
5181 | *) | |
5182 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5183 | for as_dir in $PATH | |
5184 | do | |
5185 | IFS=$as_save_IFS | |
5186 | test -z "$as_dir" && as_dir=. | |
5187 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d6a4bcb5 | 5188 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
57aa50d4 TT |
5189 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
5190 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5191 | break 2 | |
5192 | fi | |
5193 | done | |
5194 | done | |
5195 | IFS=$as_save_IFS | |
3249394d | 5196 | |
57aa50d4 TT |
5197 | ;; |
5198 | esac | |
5199 | fi | |
5200 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
5201 | if test -n "$ac_pt_PKG_CONFIG"; then | |
5202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | |
5203 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | |
5204 | else | |
5205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5206 | $as_echo "no" >&6; } | |
5207 | fi | |
3249394d | 5208 | |
57aa50d4 TT |
5209 | if test "x$ac_pt_PKG_CONFIG" = x; then |
5210 | PKG_CONFIG="" | |
5211 | else | |
5212 | case $cross_compiling:$ac_tool_warned in | |
5213 | yes:) | |
5214 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5215 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5216 | ac_tool_warned=yes ;; | |
5217 | esac | |
5218 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
3249394d | 5219 | fi |
57aa50d4 TT |
5220 | else |
5221 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
5222 | fi | |
3249394d TT |
5223 | |
5224 | fi | |
57aa50d4 | 5225 | if test -n "$PKG_CONFIG"; then |
93613951 TT |
5226 | _pkg_min_version=0.9.0 |
5227 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 | |
57aa50d4 | 5228 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } |
93613951 TT |
5229 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
5230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
57aa50d4 | 5231 | $as_echo "yes" >&6; } |
93613951 TT |
5232 | else |
5233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
57aa50d4 | 5234 | $as_echo "no" >&6; } |
93613951 TT |
5235 | PKG_CONFIG="" |
5236 | fi | |
57aa50d4 TT |
5237 | fi |
5238 | LIBUUID= | |
5239 | DEPLIBUUID= | |
5240 | STATIC_LIBUUID= | |
5241 | DEPSTATIC_LIBUUID= | |
5242 | PROFILED_LIBUUID= | |
5243 | DEPPROFILED_LIBUUID= | |
5244 | UUID_CMT= | |
5245 | # Check whether --enable-libuuid was given. | |
5246 | if test "${enable_libuuid+set}" = set; then : | |
5247 | enableval=$enable_libuuid; if test "$enableval" = "no" | |
5610f992 | 5248 | then |
57aa50d4 | 5249 | if test -z "$PKG_CONFIG"; then |
d6a4bcb5 | 5250 | as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5 |
57aa50d4 TT |
5251 | fi |
5252 | ||
5253 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5 | |
5254 | $as_echo_n "checking for uuid_generate in -luuid... " >&6; } | |
d6a4bcb5 | 5255 | if ${ac_cv_lib_uuid_uuid_generate+:} false; then : |
57aa50d4 | 5256 | $as_echo_n "(cached) " >&6 |
5610f992 | 5257 | else |
57aa50d4 | 5258 | ac_check_lib_save_LIBS=$LIBS |
2d7583bd | 5259 | LIBS="-luuid $LIBS" |
57aa50d4 TT |
5260 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5261 | /* end confdefs.h. */ | |
5610f992 | 5262 | |
57aa50d4 TT |
5263 | /* Override any GCC internal prototype to avoid an error. |
5264 | Use char because int might match the return type of a GCC | |
5265 | builtin and then its argument prototype would still apply. */ | |
5266 | #ifdef __cplusplus | |
5267 | extern "C" | |
5268 | #endif | |
5269 | char uuid_generate (); | |
5270 | int | |
5271 | main () | |
5272 | { | |
5273 | return uuid_generate (); | |
5274 | ; | |
5275 | return 0; | |
5276 | } | |
5277 | _ACEOF | |
5278 | if ac_fn_c_try_link "$LINENO"; then : | |
5279 | ac_cv_lib_uuid_uuid_generate=yes | |
5280 | else | |
5281 | ac_cv_lib_uuid_uuid_generate=no | |
5282 | fi | |
5283 | rm -f core conftest.err conftest.$ac_objext \ | |
5284 | conftest$ac_exeext conftest.$ac_ext | |
5285 | LIBS=$ac_check_lib_save_LIBS | |
5286 | fi | |
5287 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5 | |
5288 | $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; } | |
d6a4bcb5 | 5289 | if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then : |
57aa50d4 TT |
5290 | LIBUUID=`$PKG_CONFIG --libs uuid`; |
5291 | STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid` | |
5292 | else | |
d6a4bcb5 | 5293 | as_fn_error $? "external uuid library not found" "$LINENO" 5 |
5610f992 TT |
5294 | fi |
5295 | ||
5afdf37b | 5296 | PROFILED_LIBUUID=$LIBUUID |
57aa50d4 TT |
5297 | UUID_CMT=# |
5298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5 | |
5299 | $as_echo "Disabling private uuid library" >&6; } | |
5610f992 | 5300 | else |
57aa50d4 TT |
5301 | LIBUUID='$(LIB)/libuuid'$LIB_EXT |
5302 | DEPLIBUUID=$LIBUUID | |
5303 | STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT | |
5304 | DEPSTATIC_LIBUUID=$STATIC_LIBUUID | |
5305 | PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT | |
5306 | DEPPROFILED_LIBUUID=$PROFILED_LIBUUID | |
5307 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5 | |
5308 | $as_echo "Enabling private uuid library" >&6; } | |
5309 | fi | |
5610f992 | 5310 | |
57aa50d4 | 5311 | else |
f5dffb81 TT |
5312 | if test -n "$PKG_CONFIG"; then |
5313 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5 | |
5314 | $as_echo_n "checking for uuid_generate in -luuid... " >&6; } | |
5315 | if ${ac_cv_lib_uuid_uuid_generate+:} false; then : | |
5316 | $as_echo_n "(cached) " >&6 | |
5317 | else | |
5318 | ac_check_lib_save_LIBS=$LIBS | |
5319 | LIBS="-luuid $LIBS" | |
5320 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5321 | /* end confdefs.h. */ | |
5322 | ||
5323 | /* Override any GCC internal prototype to avoid an error. | |
5324 | Use char because int might match the return type of a GCC | |
5325 | builtin and then its argument prototype would still apply. */ | |
5326 | #ifdef __cplusplus | |
5327 | extern "C" | |
5328 | #endif | |
5329 | char uuid_generate (); | |
5330 | int | |
5331 | main () | |
5332 | { | |
5333 | return uuid_generate (); | |
5334 | ; | |
5335 | return 0; | |
5336 | } | |
5337 | _ACEOF | |
5338 | if ac_fn_c_try_link "$LINENO"; then : | |
5339 | ac_cv_lib_uuid_uuid_generate=yes | |
5340 | else | |
5341 | ac_cv_lib_uuid_uuid_generate=no | |
5342 | fi | |
5343 | rm -f core conftest.err conftest.$ac_objext \ | |
5344 | conftest$ac_exeext conftest.$ac_ext | |
5345 | LIBS=$ac_check_lib_save_LIBS | |
5346 | fi | |
5347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5 | |
5348 | $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; } | |
5349 | if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then : | |
5350 | LIBUUID=`$PKG_CONFIG --libs uuid`; | |
5351 | STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid` | |
5352 | fi | |
5353 | ||
5354 | fi | |
5355 | if test -n "$LIBUUID"; then | |
5356 | PROFILED_LIBUUID=$LIBUUID | |
5357 | UUID_CMT=# | |
5358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system uuid by default" >&5 | |
5359 | $as_echo "Using system uuid by default" >&6; } | |
5360 | else | |
5361 | LIBUUID='$(LIB)/libuuid'$LIB_EXT | |
5362 | DEPLIBUUID=$LIBUUID | |
5363 | STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT | |
5364 | DEPSTATIC_LIBUUID=$STATIC_LIBUUID | |
5365 | PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT | |
5366 | DEPPROFILED_LIBUUID=$PROFILED_LIBUUID | |
5367 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5 | |
57aa50d4 | 5368 | $as_echo "Enabling private uuid library by default" >&6; } |
f5dffb81 | 5369 | fi |
5610f992 TT |
5370 | |
5371 | fi | |
5372 | ||
5373 | ||
cdf186e4 | 5374 | |
a64c9c13 | 5375 | |
93636bde TT |
5376 | |
5377 | ||
93636bde | 5378 | |
93636bde TT |
5379 | |
5380 | ||
57aa50d4 | 5381 | |
93613951 TT |
5382 | |
5383 | ||
5384 | ||
5385 | ||
5386 | ||
57aa50d4 | 5387 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
93613951 | 5388 | if test -n "$ac_tool_prefix"; then |
57aa50d4 TT |
5389 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
5390 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
5391 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5392 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6a4bcb5 | 5393 | if ${ac_cv_path_PKG_CONFIG+:} false; then : |
39fd3d4f | 5394 | $as_echo_n "(cached) " >&6 |
a64c9c13 | 5395 | else |
57aa50d4 TT |
5396 | case $PKG_CONFIG in |
5397 | [\\/]* | ?:[\\/]*) | |
5398 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
5399 | ;; | |
e1052144 | 5400 | *) |
b0cacab0 TT |
5401 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5402 | for as_dir in $PATH | |
5403 | do | |
5404 | IFS=$as_save_IFS | |
5405 | test -z "$as_dir" && as_dir=. | |
57aa50d4 | 5406 | for ac_exec_ext in '' $ac_executable_extensions; do |
d6a4bcb5 | 5407 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
57aa50d4 TT |
5408 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
5409 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5410 | break 2 | |
5411 | fi | |
b0cacab0 | 5412 | done |
57aa50d4 | 5413 | done |
e1052144 | 5414 | IFS=$as_save_IFS |
b0cacab0 | 5415 | |
57aa50d4 | 5416 | ;; |
b0cacab0 TT |
5417 | esac |
5418 | fi | |
57aa50d4 TT |
5419 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
5420 | if test -n "$PKG_CONFIG"; then | |
5421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | |
5422 | $as_echo "$PKG_CONFIG" >&6; } | |
07a0db15 | 5423 | else |
57aa50d4 | 5424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
39fd3d4f | 5425 | $as_echo "no" >&6; } |
07a0db15 | 5426 | fi |
07a0db15 | 5427 | |
57aa50d4 TT |
5428 | |
5429 | fi | |
5430 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
5431 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
5432 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
5433 | set dummy pkg-config; ac_word=$2 | |
5434 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
39fd3d4f | 5435 | $as_echo_n "checking for $ac_word... " >&6; } |
d6a4bcb5 | 5436 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : |
39fd3d4f | 5437 | $as_echo_n "(cached) " >&6 |
a64c9c13 | 5438 | else |
57aa50d4 | 5439 | case $ac_pt_PKG_CONFIG in |
b0cacab0 | 5440 | [\\/]* | ?:[\\/]*) |
57aa50d4 | 5441 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
b0cacab0 TT |
5442 | ;; |
5443 | *) | |
5444 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5445 | for as_dir in $PATH | |
5446 | do | |
5447 | IFS=$as_save_IFS | |
5448 | test -z "$as_dir" && as_dir=. | |
57aa50d4 | 5449 | for ac_exec_ext in '' $ac_executable_extensions; do |
d6a4bcb5 | 5450 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
57aa50d4 TT |
5451 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
5452 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
b0cacab0 TT |
5453 | break 2 |
5454 | fi | |
5455 | done | |
57aa50d4 | 5456 | done |
e1052144 | 5457 | IFS=$as_save_IFS |
a64c9c13 | 5458 | |
b0cacab0 TT |
5459 | ;; |
5460 | esac | |
a64c9c13 | 5461 | fi |
57aa50d4 TT |
5462 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
5463 | if test -n "$ac_pt_PKG_CONFIG"; then | |
5464 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | |
5465 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | |
a64c9c13 | 5466 | else |
57aa50d4 | 5467 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
39fd3d4f | 5468 | $as_echo "no" >&6; } |
a64c9c13 | 5469 | fi |
a64c9c13 | 5470 | |
57aa50d4 TT |
5471 | if test "x$ac_pt_PKG_CONFIG" = x; then |
5472 | PKG_CONFIG="" | |
b0cacab0 | 5473 | else |
57aa50d4 TT |
5474 | case $cross_compiling:$ac_tool_warned in |
5475 | yes:) | |
5476 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5477 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5478 | ac_tool_warned=yes ;; | |
5479 | esac | |
5480 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
b0cacab0 | 5481 | fi |
57aa50d4 TT |
5482 | else |
5483 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
a64c9c13 | 5484 | fi |
93636bde | 5485 | |
a64c9c13 | 5486 | fi |
57aa50d4 | 5487 | if test -n "$PKG_CONFIG"; then |
93613951 TT |
5488 | _pkg_min_version=0.9.0 |
5489 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 | |
57aa50d4 | 5490 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } |
93613951 TT |
5491 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
5492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
57aa50d4 | 5493 | $as_echo "yes" >&6; } |
93613951 TT |
5494 | else |
5495 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
57aa50d4 | 5496 | $as_echo "no" >&6; } |
93613951 TT |
5497 | PKG_CONFIG="" |
5498 | fi | |
57aa50d4 TT |
5499 | fi |
5500 | LIBBLKID= | |
5501 | DEPLIBBLKID= | |
5502 | STATIC_LIBBLKID= | |
5503 | DEPSTATIC_LIBBLKID= | |
5504 | PROFILED_LIBBLKID= | |
5505 | DEPPROFILED_LIBBLKID= | |
5506 | BLKID_CMT= | |
d1154eb4 | 5507 | |
57aa50d4 TT |
5508 | # Check whether --enable-libblkid was given. |
5509 | if test "${enable_libblkid+set}" = set; then : | |
5510 | enableval=$enable_libblkid; if test "$enableval" = "no" | |
5511 | then | |
5512 | if test -z "$PKG_CONFIG"; then | |
d6a4bcb5 | 5513 | as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5 |
57aa50d4 TT |
5514 | fi |
5515 | ||
5516 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5 | |
5517 | $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; } | |
d6a4bcb5 | 5518 | if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then : |
39fd3d4f | 5519 | $as_echo_n "(cached) " >&6 |
a64c9c13 | 5520 | else |
57aa50d4 | 5521 | ac_check_lib_save_LIBS=$LIBS |
2d7583bd | 5522 | LIBS="-lblkid -luuid $LIBS" |
57aa50d4 TT |
5523 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5524 | /* end confdefs.h. */ | |
5525 | ||
5526 | /* Override any GCC internal prototype to avoid an error. | |
5527 | Use char because int might match the return type of a GCC | |
5528 | builtin and then its argument prototype would still apply. */ | |
5529 | #ifdef __cplusplus | |
5530 | extern "C" | |
5531 | #endif | |
5532 | char blkid_get_cache (); | |
5533 | int | |
5534 | main () | |
5535 | { | |
5536 | return blkid_get_cache (); | |
5537 | ; | |
5538 | return 0; | |
5539 | } | |
5540 | _ACEOF | |
5541 | if ac_fn_c_try_link "$LINENO"; then : | |
5542 | ac_cv_lib_blkid_blkid_get_cache=yes | |
b0cacab0 | 5543 | else |
57aa50d4 | 5544 | ac_cv_lib_blkid_blkid_get_cache=no |
a64c9c13 | 5545 | fi |
57aa50d4 TT |
5546 | rm -f core conftest.err conftest.$ac_objext \ |
5547 | conftest$ac_exeext conftest.$ac_ext | |
5548 | LIBS=$ac_check_lib_save_LIBS | |
a64c9c13 | 5549 | fi |
57aa50d4 TT |
5550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5 |
5551 | $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; } | |
d6a4bcb5 | 5552 | if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then : |
57aa50d4 TT |
5553 | LIBBLKID=`$PKG_CONFIG --libs blkid`; |
5554 | STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid` | |
b0cacab0 | 5555 | else |
d6a4bcb5 | 5556 | as_fn_error $? "external blkid library not found" "$LINENO" 5 |
a64c9c13 | 5557 | fi |
93636bde | 5558 | |
57aa50d4 | 5559 | BLKID_CMT=# |
5afdf37b | 5560 | PROFILED_LIBBLKID=$LIBBLKID |
57aa50d4 TT |
5561 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5 |
5562 | $as_echo "Disabling private blkid library" >&6; } | |
07a0db15 | 5563 | else |
57aa50d4 TT |
5564 | LIBBLKID='$(LIB)/libblkid'$LIB_EXT |
5565 | DEPLIBBLKID=$LIBBLKID | |
5566 | STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT | |
5567 | DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID | |
5568 | PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT | |
5569 | DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID | |
5570 | $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h | |
5571 | ||
5572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5 | |
5573 | $as_echo "Enabling private blkid library" >&6; } | |
b0cacab0 | 5574 | fi |
57aa50d4 | 5575 | |
a64c9c13 | 5576 | else |
f5dffb81 TT |
5577 | if test -n "$PKG_CONFIG"; then |
5578 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5 | |
5579 | $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; } | |
5580 | if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then : | |
5581 | $as_echo_n "(cached) " >&6 | |
5582 | else | |
5583 | ac_check_lib_save_LIBS=$LIBS | |
5584 | LIBS="-lblkid $LIBS" | |
5585 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5586 | /* end confdefs.h. */ | |
5587 | ||
5588 | /* Override any GCC internal prototype to avoid an error. | |
5589 | Use char because int might match the return type of a GCC | |
5590 | builtin and then its argument prototype would still apply. */ | |
5591 | #ifdef __cplusplus | |
5592 | extern "C" | |
5593 | #endif | |
5594 | char blkid_get_cache (); | |
5595 | int | |
5596 | main () | |
5597 | { | |
5598 | return blkid_get_cache (); | |
5599 | ; | |
5600 | return 0; | |
5601 | } | |
5602 | _ACEOF | |
5603 | if ac_fn_c_try_link "$LINENO"; then : | |
5604 | ac_cv_lib_blkid_blkid_get_cache=yes | |
5605 | else | |
5606 | ac_cv_lib_blkid_blkid_get_cache=no | |
5607 | fi | |
5608 | rm -f core conftest.err conftest.$ac_objext \ | |
5609 | conftest$ac_exeext conftest.$ac_ext | |
5610 | LIBS=$ac_check_lib_save_LIBS | |
5611 | fi | |
5612 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5 | |
5613 | $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; } | |
5614 | if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then : | |
5615 | LIBBLKID=`$PKG_CONFIG --libs blkid`; | |
5616 | STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid` | |
5617 | fi | |
5618 | ||
5619 | fi | |
5620 | if test -n "$LIBBLKID"; then | |
5621 | BLKID_CMT=# | |
5622 | PROFILED_LIBBLKID=$LIBBLKID | |
5623 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system blkid library by default" >&5 | |
5624 | $as_echo "Using system blkid library by default" >&6; } | |
5625 | else | |
5626 | LIBBLKID='$(LIB)/libblkid'$LIB_EXT | |
5627 | DEPLIBBLKID=$LIBBLKID | |
5628 | STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT | |
5629 | DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID | |
5630 | PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT | |
5631 | DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID | |
5632 | $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h | |
57aa50d4 | 5633 | |
f5dffb81 | 5634 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5 |
57aa50d4 | 5635 | $as_echo "Enabling private blkid library by default" >&6; } |
f5dffb81 | 5636 | fi |
57aa50d4 | 5637 | |
a64c9c13 | 5638 | fi |
07a0db15 | 5639 | |
a64c9c13 | 5640 | |
b0cacab0 | 5641 | |
b0cacab0 | 5642 | |
a64c9c13 | 5643 | |
b0cacab0 | 5644 | |
07a0db15 | 5645 | |
57aa50d4 | 5646 | |
0afb9be6 | 5647 | ALL_CMT= |
feb235e0 | 5648 | SUBSET_CMT= |
0afb9be6 TT |
5649 | # Check whether --enable-subset was given. |
5650 | if test "${enable_subset+set}" = set; then : | |
5651 | enableval=$enable_subset; if test "$enableval" = "no" | |
5652 | then | |
feb235e0 | 5653 | SUBSET_CMT=# |
0afb9be6 TT |
5654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling subset-only build" >&5 |
5655 | $as_echo "Disabling subset-only build" >&6; } | |
5656 | else | |
5657 | ALL_CMT=# | |
5658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling subset-only-build" >&5 | |
5659 | $as_echo "Enabling subset-only-build" >&6; } | |
5660 | fi | |
5661 | ||
5662 | fi | |
5663 | ||
5664 | ||
3df6014a | 5665 | |
feb235e0 | 5666 | |
3df6014a TT |
5667 | # Check whether --enable-backtrace was given. |
5668 | if test "${enable_backtrace+set}" = set; then : | |
5669 | enableval=$enable_backtrace; if test "$enableval" = "no" | |
5670 | then | |
5671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5 | |
5672 | $as_echo "Disabling use of backtrace" >&6; } | |
5673 | $as_echo "#define DISABLE_BACKTRACE 1" >>confdefs.h | |
5674 | ||
5675 | else | |
5676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5 | |
5677 | $as_echo "Enabling use of backtrace" >&6; } | |
5678 | fi | |
5679 | ||
5680 | else | |
5681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5 | |
5682 | $as_echo "Enabling use of backtrace by default" >&6; } | |
5683 | ||
5684 | fi | |
5685 | ||
57aa50d4 TT |
5686 | # Check whether --enable-debugfs was given. |
5687 | if test "${enable_debugfs+set}" = set; then : | |
5688 | enableval=$enable_debugfs; if test "$enableval" = "no" | |
5689 | then | |
5690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5 | |
5691 | $as_echo "Disabling debugfs support" >&6; } | |
5692 | DEBUGFS_CMT="#" | |
b0cacab0 | 5693 | else |
57aa50d4 TT |
5694 | DEBUGFS_CMT= |
5695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5 | |
5696 | $as_echo "Enabling debugfs support" >&6; } | |
b0cacab0 | 5697 | fi |
a64c9c13 | 5698 | |
b0cacab0 | 5699 | else |
57aa50d4 TT |
5700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5 |
5701 | $as_echo "Enabling debugfs support by default" >&6; } | |
5702 | DEBUGFS_CMT= | |
a64c9c13 | 5703 | |
93636bde | 5704 | fi |
57aa50d4 TT |
5705 | |
5706 | ||
5707 | # Check whether --enable-imager was given. | |
5708 | if test "${enable_imager+set}" = set; then : | |
5709 | enableval=$enable_imager; if test "$enableval" = "no" | |
5710 | then | |
5711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5 | |
5712 | $as_echo "Disabling e2image support" >&6; } | |
5713 | IMAGER_CMT="#" | |
b0cacab0 | 5714 | else |
57aa50d4 TT |
5715 | IMAGER_CMT= |
5716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5 | |
5717 | $as_echo "Enabling e2image support" >&6; } | |
b0cacab0 TT |
5718 | fi |
5719 | ||
b0cacab0 | 5720 | else |
57aa50d4 TT |
5721 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5 |
5722 | $as_echo "Enabling e2image support by default" >&6; } | |
5723 | IMAGER_CMT= | |
5724 | ||
93636bde TT |
5725 | fi |
5726 | ||
a64c9c13 | 5727 | |
57aa50d4 TT |
5728 | # Check whether --enable-resizer was given. |
5729 | if test "${enable_resizer+set}" = set; then : | |
5730 | enableval=$enable_resizer; if test "$enableval" = "no" | |
5731 | then | |
5732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5 | |
5733 | $as_echo "Disabling e2resize support" >&6; } | |
5734 | RESIZER_CMT="#" | |
b0cacab0 | 5735 | else |
57aa50d4 TT |
5736 | RESIZER_CMT= |
5737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5 | |
5738 | $as_echo "Enabling e2resize support" >&6; } | |
5739 | fi | |
b0cacab0 | 5740 | |
b0cacab0 | 5741 | else |
57aa50d4 TT |
5742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5 |
5743 | $as_echo "Enabling e2resize support by default" >&6; } | |
5744 | RESIZER_CMT= | |
b0cacab0 | 5745 | |
b0cacab0 | 5746 | fi |
e1052144 | 5747 | |
57aa50d4 | 5748 | |
8d9c50c5 TT |
5749 | # Check whether --enable-defrag was given. |
5750 | if test "${enable_defrag+set}" = set; then : | |
5751 | enableval=$enable_defrag; if test "$enableval" = "no" | |
5752 | then | |
5753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5 | |
5754 | $as_echo "Disabling e4defrag support" >&6; } | |
5755 | DEFRAG_CMT="#" | |
5756 | else | |
5757 | DEFRAG_CMT= | |
5758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5 | |
5759 | $as_echo "Enabling e4defrag support" >&6; } | |
5760 | fi | |
5761 | ||
5762 | else | |
6c59a665 TT |
5763 | if test -z "$WITH_DIET_LIBC" |
5764 | then | |
5765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5 | |
8d9c50c5 | 5766 | $as_echo "Enabling e4defrag support by default" >&6; } |
6c59a665 TT |
5767 | DEFRAG_CMT= |
5768 | else | |
5769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5 | |
5770 | $as_echo "Disabling e4defrag support by default" >&6; } | |
5771 | DEFRAG_CMT="#" | |
5772 | fi | |
8d9c50c5 TT |
5773 | |
5774 | fi | |
5775 | ||
5776 | ||
57aa50d4 TT |
5777 | # Check whether --enable-fsck was given. |
5778 | if test "${enable_fsck+set}" = set; then : | |
5779 | enableval=$enable_fsck; if test "$enableval" = "no" | |
5780 | then | |
5781 | FSCK_PROG='' FSCK_MAN='' | |
5782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5 | |
5783 | $as_echo "Not building fsck wrapper" >&6; } | |
5784 | else | |
5785 | FSCK_PROG=fsck FSCK_MAN=fsck.8 | |
5786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5 | |
5787 | $as_echo "Building fsck wrapper" >&6; } | |
a64c9c13 TT |
5788 | fi |
5789 | ||
57aa50d4 TT |
5790 | else |
5791 | case "$host_os" in | |
5792 | gnu*) | |
5793 | FSCK_PROG='' FSCK_MAN='' | |
5794 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5 | |
5795 | $as_echo "Not building fsck wrapper by default" >&6; } | |
5796 | ;; | |
5797 | *) | |
5798 | FSCK_PROG=fsck FSCK_MAN=fsck.8 | |
5799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5 | |
5800 | $as_echo "Building fsck wrapper by default" >&6; } | |
5801 | esac | |
b0cacab0 | 5802 | |
57aa50d4 | 5803 | fi |
b0cacab0 | 5804 | |
93636bde | 5805 | |
b0cacab0 | 5806 | |
57aa50d4 TT |
5807 | # Check whether --enable-e2initrd-helper was given. |
5808 | if test "${enable_e2initrd_helper+set}" = set; then : | |
5809 | enableval=$enable_e2initrd_helper; if test "$enableval" = "no" | |
5810 | then | |
5811 | E2INITRD_PROG='' E2INITRD_MAN='' | |
5812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5 | |
5813 | $as_echo "Not building e2initrd helper" >&6; } | |
5814 | else | |
5815 | E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8 | |
5816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5 | |
5817 | $as_echo "Building e2initrd helper" >&6; } | |
5818 | fi | |
a64c9c13 | 5819 | |
a64c9c13 | 5820 | else |
57aa50d4 TT |
5821 | E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8 |
5822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5 | |
5823 | $as_echo "Building e2initrd helper by default" >&6; } | |
b0cacab0 | 5824 | |
a64c9c13 | 5825 | fi |
e1052144 | 5826 | |
57aa50d4 TT |
5827 | |
5828 | ||
5829 | # Check whether --enable-tls was given. | |
5830 | if test "${enable_tls+set}" = set; then : | |
5831 | enableval=$enable_tls; if test "$enableval" = "no" | |
5832 | then | |
5833 | try_tls="" | |
5834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5 | |
5835 | $as_echo "Disabling thread local support" >&6; } | |
5836 | else | |
5837 | try_tls="yes" | |
5838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5 | |
5839 | $as_echo "Enabling thread local support" >&6; } | |
a64c9c13 TT |
5840 | fi |
5841 | ||
57aa50d4 TT |
5842 | else |
5843 | if test -n "$WITH_DIET_LIBC" | |
5844 | then | |
5845 | try_tls="" | |
5846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5 | |
5847 | $as_echo "Diet libc does not support thread local support" >&6; } | |
5848 | else | |
5849 | try_tls="yes" | |
5850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5 | |
5851 | $as_echo "Try using thread local support by default" >&6; } | |
5852 | fi | |
a64c9c13 | 5853 | |
93636bde | 5854 | fi |
07a0db15 | 5855 | |
57aa50d4 TT |
5856 | if test "$try_tls" = "yes" |
5857 | then | |
a64c9c13 | 5858 | |
57aa50d4 TT |
5859 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5 |
5860 | $as_echo_n "checking for thread local storage (TLS) class... " >&6; } | |
d6a4bcb5 | 5861 | if ${ac_cv_tls+:} false; then : |
39fd3d4f | 5862 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 5863 | else |
b0cacab0 | 5864 | |
57aa50d4 TT |
5865 | ax_tls_keywords="__thread __declspec(thread) none" |
5866 | for ax_tls_keyword in $ax_tls_keywords; do | |
5867 | case $ax_tls_keyword in | |
5868 | none) ac_cv_tls=none ; break ;; | |
5869 | *) | |
5870 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5871 | /* end confdefs.h. */ | |
5872 | #include <stdlib.h> | |
5873 | static void | |
5874 | foo(void) { | |
5875 | static $ax_tls_keyword int bar; | |
5876 | exit(1); | |
5877 | } | |
b0cacab0 TT |
5878 | int |
5879 | main () | |
5880 | { | |
57aa50d4 | 5881 | |
b0cacab0 TT |
5882 | ; |
5883 | return 0; | |
5884 | } | |
5885 | _ACEOF | |
57aa50d4 TT |
5886 | if ac_fn_c_try_compile "$LINENO"; then : |
5887 | ac_cv_tls=$ax_tls_keyword ; break | |
b0cacab0 | 5888 | else |
57aa50d4 | 5889 | ac_cv_tls=none |
b0cacab0 | 5890 | |
b0cacab0 | 5891 | fi |
e1052144 | 5892 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
57aa50d4 TT |
5893 | esac |
5894 | done | |
5895 | ||
b0cacab0 | 5896 | fi |
b0cacab0 | 5897 | |
57aa50d4 TT |
5898 | |
5899 | if test "$ac_cv_tls" != "none"; then | |
5900 | ||
5901 | cat >>confdefs.h <<_ACEOF | |
5902 | #define TLS $ac_cv_tls | |
b0cacab0 | 5903 | _ACEOF |
93636bde | 5904 | |
b0cacab0 | 5905 | fi |
57aa50d4 TT |
5906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5 |
5907 | $as_echo "$ac_cv_tls" >&6; } | |
b0cacab0 | 5908 | |
57aa50d4 | 5909 | fi |
d1154eb4 | 5910 | |
57aa50d4 TT |
5911 | # Check whether --enable-uuidd was given. |
5912 | if test "${enable_uuidd+set}" = set; then : | |
5913 | enableval=$enable_uuidd; if test "$enableval" = "no" | |
5914 | then | |
5915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5 | |
5916 | $as_echo "Not building uuidd" >&6; } | |
5917 | UUIDD_CMT="#" | |
a64c9c13 | 5918 | else |
57aa50d4 TT |
5919 | $as_echo "#define USE_UUIDD 1" >>confdefs.h |
5920 | ||
5921 | UUIDD_CMT="" | |
5922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5 | |
5923 | $as_echo "Building uuidd" >&6; } | |
5924 | fi | |
a64c9c13 | 5925 | |
a64c9c13 | 5926 | else |
57aa50d4 | 5927 | $as_echo "#define USE_UUIDD 1" >>confdefs.h |
a64c9c13 | 5928 | |
e3d10158 TT |
5929 | if test -z "$UUID_CMT" |
5930 | then | |
5931 | UUIDD_CMT="" | |
5932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5 | |
57aa50d4 | 5933 | $as_echo "Building uuidd by default" >&6; } |
e3d10158 TT |
5934 | else |
5935 | UUIDD_CMT="#" | |
5936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling uuidd by default" >&5 | |
5937 | $as_echo "Disabling uuidd by default" >&6; } | |
5938 | fi | |
e1052144 | 5939 | |
a64c9c13 | 5940 | fi |
e1052144 | 5941 | |
93636bde | 5942 | |
d6a4bcb5 TB |
5943 | |
5944 | # Check whether --enable-mmp was given. | |
5945 | if test "${enable_mmp+set}" = set; then : | |
5946 | enableval=$enable_mmp; if test "$enableval" = "no" | |
5947 | then | |
5948 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling mmp support" >&5 | |
5949 | $as_echo "Disabling mmp support" >&6; } | |
5950 | else | |
5951 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support" >&5 | |
5952 | $as_echo "Enabling mmp support" >&6; } | |
5953 | $as_echo "#define CONFIG_MMP 1" >>confdefs.h | |
5954 | ||
5955 | fi | |
5956 | ||
5957 | else | |
5958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5 | |
5959 | $as_echo "Enabling mmp support by default" >&6; } | |
5960 | $as_echo "#define CONFIG_MMP 1" >>confdefs.h | |
5961 | ||
5962 | ||
1625bf42 TB |
5963 | fi |
5964 | ||
5965 | ||
749f0712 TT |
5966 | # Check whether --enable-tdb was given. |
5967 | if test "${enable_tdb+set}" = set; then : | |
5968 | enableval=$enable_tdb; if test "$enableval" = "no" | |
5969 | then | |
5970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling tdb support" >&5 | |
5971 | $as_echo "Disabling tdb support" >&6; } | |
5972 | TDB_CMT="#" | |
5973 | TDB_MAN_COMMENT='.\"' | |
5974 | else | |
5975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling tdb support" >&5 | |
5976 | $as_echo "Enabling tdb support" >&6; } | |
5977 | $as_echo "#define CONFIG_TDB 1" >>confdefs.h | |
5978 | ||
5979 | TDB_CMT="" | |
5980 | TDB_MAN_COMMENT="" | |
5981 | fi | |
5982 | ||
5983 | else | |
5984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5 | |
5985 | $as_echo "Enabling mmp support by default" >&6; } | |
5986 | $as_echo "#define CONFIG_TDB 1" >>confdefs.h | |
5987 | ||
5988 | TDB_CMT="" | |
5989 | TDB_MAN_COMMENT="" | |
5990 | ||
5991 | fi | |
5992 | ||
5993 | ||
5994 | ||
5995 | ||
1625bf42 TB |
5996 | # Check whether --enable-bmap-stats was given. |
5997 | if test "${enable_bmap_stats+set}" = set; then : | |
5998 | enableval=$enable_bmap_stats; if test "$enableval" = "no" | |
5999 | then | |
6000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling bitmap statistics support" >&5 | |
6001 | $as_echo "Disabling bitmap statistics support" >&6; } | |
6002 | else | |
6003 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support" >&5 | |
6004 | $as_echo "Enabling bitmap statistics support" >&6; } | |
6005 | $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h | |
6006 | ||
6007 | fi | |
6008 | ||
6009 | else | |
6010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support by default" >&5 | |
6011 | $as_echo "Enabling bitmap statistics support by default" >&6; } | |
6012 | $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h | |
6013 | ||
6014 | ||
6015 | fi | |
6016 | ||
6017 | ||
6018 | # Check whether --enable-bmap-stats-ops was given. | |
6019 | if test "${enable_bmap_stats_ops+set}" = set; then : | |
6020 | enableval=$enable_bmap_stats_ops; if test "$enableval" = "no" | |
6021 | then | |
6022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics" >&5 | |
6023 | $as_echo "Disabling additional bitmap statistics" >&6; } | |
6024 | else | |
6025 | if test "x${enable_bmap_stats}" = "xno"; then : | |
6026 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
6027 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
6028 | as_fn_error $? "Error --enable-bmap-stats-ops requires bmap-stats | |
6029 | See \`config.log' for more details" "$LINENO" 5; } | |
6030 | fi | |
6031 | ||
6032 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling additional bitmap statistics" >&5 | |
6033 | $as_echo "Enabling additional bitmap statistics" >&6; } | |
6034 | $as_echo "#define ENABLE_BMAP_STATS_OPS 1" >>confdefs.h | |
6035 | ||
6036 | fi | |
6037 | ||
6038 | else | |
6039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics by default" >&5 | |
6040 | $as_echo "Disabling additional bitmap statistics by default" >&6; } | |
6041 | ||
d6a4bcb5 TB |
6042 | fi |
6043 | ||
57aa50d4 | 6044 | MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library |
a64c9c13 | 6045 | |
57aa50d4 TT |
6046 | GETTEXT_PACKAGE=e2fsprogs |
6047 | PACKAGE=e2fsprogs | |
6048 | VERSION="$E2FSPROGS_VERSION" | |
6049 | VERSION=0.14.1 | |
d1154eb4 | 6050 | |
57aa50d4 TT |
6051 | cat >>confdefs.h <<_ACEOF |
6052 | #define PACKAGE "$PACKAGE" | |
b0cacab0 | 6053 | _ACEOF |
a64c9c13 | 6054 | |
d1154eb4 | 6055 | |
57aa50d4 TT |
6056 | cat >>confdefs.h <<_ACEOF |
6057 | #define VERSION "$VERSION" | |
6058 | _ACEOF | |
6059 | ||
6060 | ||
6061 | ||
6062 | ||
6063 | ||
6064 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
6065 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
6066 | set x ${MAKE-make} | |
6067 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
d6a4bcb5 | 6068 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
39fd3d4f | 6069 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 6070 | else |
57aa50d4 TT |
6071 | cat >conftest.make <<\_ACEOF |
6072 | SHELL = /bin/sh | |
6073 | all: | |
6074 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
b0cacab0 | 6075 | _ACEOF |
d6a4bcb5 | 6076 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
57aa50d4 TT |
6077 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
6078 | *@@@%%%=?*=@@@%%%*) | |
6079 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
6080 | *) | |
6081 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
e1052144 | 6082 | esac |
57aa50d4 TT |
6083 | rm -f conftest.make |
6084 | fi | |
6085 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
6086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
6087 | $as_echo "yes" >&6; } | |
6088 | SET_MAKE= | |
39fd3d4f | 6089 | else |
57aa50d4 TT |
6090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6091 | $as_echo "no" >&6; } | |
6092 | SET_MAKE="MAKE=${MAKE-make}" | |
39fd3d4f SJR |
6093 | fi |
6094 | ||
57aa50d4 TT |
6095 | # Find a good install program. We prefer a C program (faster), |
6096 | # so one script is as good as another. But avoid the broken or | |
6097 | # incompatible versions: | |
6098 | # SysV /etc/install, /usr/sbin/install | |
6099 | # SunOS /usr/etc/install | |
6100 | # IRIX /sbin/install | |
6101 | # AIX /bin/install | |
6102 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
6103 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
6104 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
6105 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
6106 | # OS/2's system install, which has a completely different semantic | |
6107 | # ./install, which can be erroneously created by make from ./install.sh. | |
6108 | # Reject install programs that cannot install multiple files. | |
6109 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
6110 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
6111 | if test -z "$INSTALL"; then | |
d6a4bcb5 | 6112 | if ${ac_cv_path_install+:} false; then : |
57aa50d4 | 6113 | $as_echo_n "(cached) " >&6 |
93636bde | 6114 | else |
57aa50d4 TT |
6115 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6116 | for as_dir in $PATH | |
6117 | do | |
6118 | IFS=$as_save_IFS | |
6119 | test -z "$as_dir" && as_dir=. | |
6120 | # Account for people who put trailing slashes in PATH elements. | |
6121 | case $as_dir/ in #(( | |
6122 | ./ | .// | /[cC]/* | \ | |
6123 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
6124 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
6125 | /usr/ucb/* ) ;; | |
6126 | *) | |
6127 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
6128 | # Don't use installbsd from OSF since it installs stuff as root | |
6129 | # by default. | |
6130 | for ac_prog in ginstall scoinst install; do | |
6131 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d6a4bcb5 | 6132 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
57aa50d4 TT |
6133 | if test $ac_prog = install && |
6134 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
6135 | # AIX install. It has an incompatible calling convention. | |
6136 | : | |
6137 | elif test $ac_prog = install && | |
6138 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
6139 | # program-specific install script used by HP pwplus--don't use. | |
6140 | : | |
6141 | else | |
6142 | rm -rf conftest.one conftest.two conftest.dir | |
6143 | echo one > conftest.one | |
6144 | echo two > conftest.two | |
6145 | mkdir conftest.dir | |
6146 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
6147 | test -s conftest.one && test -s conftest.two && | |
6148 | test -s conftest.dir/conftest.one && | |
6149 | test -s conftest.dir/conftest.two | |
6150 | then | |
6151 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
6152 | break 3 | |
6153 | fi | |
6154 | fi | |
6155 | fi | |
6156 | done | |
6157 | done | |
6158 | ;; | |
6159 | esac | |
6160 | ||
6161 | done | |
6162 | IFS=$as_save_IFS | |
b0cacab0 | 6163 | |
57aa50d4 | 6164 | rm -rf conftest.one conftest.two conftest.dir |
39fd3d4f | 6165 | |
93636bde | 6166 | fi |
57aa50d4 TT |
6167 | if test "${ac_cv_path_install+set}" = set; then |
6168 | INSTALL=$ac_cv_path_install | |
6169 | else | |
6170 | # As a last resort, use the slow shell script. Don't cache a | |
6171 | # value for INSTALL within a source directory, because that will | |
6172 | # break other packages using the cache if that directory is | |
6173 | # removed, or if the value is a relative name. | |
6174 | INSTALL=$ac_install_sh | |
6175 | fi | |
93636bde | 6176 | fi |
57aa50d4 TT |
6177 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
6178 | $as_echo "$INSTALL" >&6; } | |
a64c9c13 | 6179 | |
57aa50d4 TT |
6180 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
6181 | # It thinks the first close brace ends the variable substitution. | |
6182 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
b0cacab0 | 6183 | |
57aa50d4 | 6184 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
a64c9c13 | 6185 | |
57aa50d4 | 6186 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
39fd3d4f | 6187 | |
93613951 TT |
6188 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
6189 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
6190 | if test -z "$MKDIR_P"; then | |
6191 | if ${ac_cv_path_mkdir+:} false; then : | |
6192 | $as_echo_n "(cached) " >&6 | |
6193 | else | |
6194 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6195 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
6196 | do | |
6197 | IFS=$as_save_IFS | |
6198 | test -z "$as_dir" && as_dir=. | |
6199 | for ac_prog in mkdir gmkdir; do | |
6200 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6201 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue | |
6202 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
6203 | 'mkdir (GNU coreutils) '* | \ | |
6204 | 'mkdir (coreutils) '* | \ | |
6205 | 'mkdir (fileutils) '4.1*) | |
6206 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
6207 | break 3;; | |
6208 | esac | |
6209 | done | |
6210 | done | |
6211 | done | |
6212 | IFS=$as_save_IFS | |
6213 | ||
6214 | fi | |
39fd3d4f | 6215 | |
93613951 TT |
6216 | test -d ./--version && rmdir ./--version |
6217 | if test "${ac_cv_path_mkdir+set}" = set; then | |
6218 | MKDIR_P="$ac_cv_path_mkdir -p" | |
6219 | else | |
6220 | # As a last resort, use the slow shell script. Don't cache a | |
6221 | # value for MKDIR_P within a source directory, because that will | |
6222 | # break other packages using the cache if that directory is | |
6223 | # removed, or if the value is a relative name. | |
6224 | MKDIR_P="$ac_install_sh -d" | |
57aa50d4 | 6225 | fi |
93613951 TT |
6226 | fi |
6227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | |
6228 | $as_echo "$MKDIR_P" >&6; } | |
6229 | ||
6230 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 | |
6231 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
6232 | if ${ac_cv_path_SED+:} false; then : | |
6233 | $as_echo_n "(cached) " >&6 | |
6234 | else | |
6235 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
6236 | for ac_i in 1 2 3 4 5 6 7; do | |
6237 | ac_script="$ac_script$as_nl$ac_script" | |
6238 | done | |
6239 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
6240 | { ac_script=; unset ac_script;} | |
6241 | if test -z "$SED"; then | |
6242 | ac_path_SED_found=false | |
6243 | # Loop through the user's path and test for each of PROGNAME-LIST | |
6244 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6245 | for as_dir in $PATH | |
6246 | do | |
6247 | IFS=$as_save_IFS | |
6248 | test -z "$as_dir" && as_dir=. | |
6249 | for ac_prog in sed gsed; do | |
6250 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6251 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
6252 | as_fn_executable_p "$ac_path_SED" || continue | |
6253 | # Check for GNU ac_path_SED and select it if it is found. | |
6254 | # Check for GNU $ac_path_SED | |
6255 | case `"$ac_path_SED" --version 2>&1` in | |
6256 | *GNU*) | |
6257 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
6258 | *) | |
6259 | ac_count=0 | |
6260 | $as_echo_n 0123456789 >"conftest.in" | |
6261 | while : | |
6262 | do | |
6263 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
6264 | mv "conftest.tmp" "conftest.in" | |
6265 | cp "conftest.in" "conftest.nl" | |
6266 | $as_echo '' >> "conftest.nl" | |
6267 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
6268 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
6269 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
6270 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
6271 | # Best one so far, save it but keep looking for a better one | |
6272 | ac_cv_path_SED="$ac_path_SED" | |
6273 | ac_path_SED_max=$ac_count | |
6274 | fi | |
6275 | # 10*(2^10) chars as input seems more than enough | |
6276 | test $ac_count -gt 10 && break | |
6277 | done | |
6278 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
6279 | esac | |
6280 | ||
6281 | $ac_path_SED_found && break 3 | |
6282 | done | |
6283 | done | |
6284 | done | |
6285 | IFS=$as_save_IFS | |
6286 | if test -z "$ac_cv_path_SED"; then | |
6287 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
57aa50d4 | 6288 | fi |
93613951 TT |
6289 | else |
6290 | ac_cv_path_SED=$SED | |
6291 | fi | |
b0cacab0 | 6292 | |
93613951 TT |
6293 | fi |
6294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
6295 | $as_echo "$ac_cv_path_SED" >&6; } | |
6296 | SED="$ac_cv_path_SED" | |
6297 | rm -f conftest.sed | |
39fd3d4f | 6298 | |
e1052144 | 6299 | |
57aa50d4 TT |
6300 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 |
6301 | $as_echo_n "checking whether NLS is requested... " >&6; } | |
6302 | # Check whether --enable-nls was given. | |
6303 | if test "${enable_nls+set}" = set; then : | |
6304 | enableval=$enable_nls; USE_NLS=$enableval | |
b0cacab0 | 6305 | else |
57aa50d4 TT |
6306 | USE_NLS=yes |
6307 | fi | |
b0cacab0 | 6308 | |
57aa50d4 TT |
6309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 |
6310 | $as_echo "$USE_NLS" >&6; } | |
93636bde | 6311 | |
a64c9c13 | 6312 | |
a64c9c13 | 6313 | |
b0cacab0 | 6314 | |
93613951 TT |
6315 | GETTEXT_MACRO_VERSION=0.18 |
6316 | ||
6317 | ||
b0cacab0 | 6318 | |
a64c9c13 | 6319 | |
57aa50d4 TT |
6320 | # Prepare PATH_SEPARATOR. |
6321 | # The user is always right. | |
6322 | if test "${PATH_SEPARATOR+set}" != set; then | |
93613951 TT |
6323 | # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which |
6324 | # contains only /bin. Note that ksh looks also at the FPATH variable, | |
6325 | # so we have to set that as well for the test. | |
6326 | PATH_SEPARATOR=: | |
6327 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ | |
6328 | && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ | |
6329 | || PATH_SEPARATOR=';' | |
6330 | } | |
57aa50d4 | 6331 | fi |
b0cacab0 | 6332 | |
57aa50d4 TT |
6333 | # Find out how to test for executable files. Don't use a zero-byte file, |
6334 | # as systems may use methods other than mode bits to determine executability. | |
6335 | cat >conf$$.file <<_ASEOF | |
6336 | #! /bin/sh | |
6337 | exit 0 | |
6338 | _ASEOF | |
6339 | chmod +x conf$$.file | |
6340 | if test -x conf$$.file >/dev/null 2>&1; then | |
6341 | ac_executable_p="test -x" | |
6342 | else | |
6343 | ac_executable_p="test -f" | |
6344 | fi | |
6345 | rm -f conf$$.file | |
b0cacab0 | 6346 | |
57aa50d4 TT |
6347 | # Extract the first word of "msgfmt", so it can be a program name with args. |
6348 | set dummy msgfmt; ac_word=$2 | |
6349 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6350 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6a4bcb5 | 6351 | if ${ac_cv_path_MSGFMT+:} false; then : |
39fd3d4f | 6352 | $as_echo_n "(cached) " >&6 |
93636bde | 6353 | else |
57aa50d4 TT |
6354 | case "$MSGFMT" in |
6355 | [\\/]* | ?:[\\/]*) | |
6356 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
6357 | ;; | |
6358 | *) | |
6359 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
6360 | for ac_dir in $PATH; do | |
6361 | IFS="$ac_save_IFS" | |
6362 | test -z "$ac_dir" && ac_dir=. | |
6363 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6364 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
93613951 TT |
6365 | echo "$as_me: trying $ac_dir/$ac_word..." >&5 |
6366 | if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 && | |
57aa50d4 TT |
6367 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
6368 | ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" | |
6369 | break 2 | |
6370 | fi | |
6371 | fi | |
6372 | done | |
6373 | done | |
6374 | IFS="$ac_save_IFS" | |
6375 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" | |
6376 | ;; | |
e1052144 | 6377 | esac |
b0cacab0 | 6378 | fi |
57aa50d4 TT |
6379 | MSGFMT="$ac_cv_path_MSGFMT" |
6380 | if test "$MSGFMT" != ":"; then | |
6381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 | |
6382 | $as_echo "$MSGFMT" >&6; } | |
6383 | else | |
6384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6385 | $as_echo "no" >&6; } | |
b0cacab0 | 6386 | fi |
a64c9c13 | 6387 | |
57aa50d4 TT |
6388 | # Extract the first word of "gmsgfmt", so it can be a program name with args. |
6389 | set dummy gmsgfmt; ac_word=$2 | |
6390 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6391 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6a4bcb5 | 6392 | if ${ac_cv_path_GMSGFMT+:} false; then : |
39fd3d4f | 6393 | $as_echo_n "(cached) " >&6 |
93636bde | 6394 | else |
57aa50d4 TT |
6395 | case $GMSGFMT in |
6396 | [\\/]* | ?:[\\/]*) | |
6397 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
6398 | ;; | |
6399 | *) | |
6400 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6401 | for as_dir in $PATH | |
6402 | do | |
6403 | IFS=$as_save_IFS | |
6404 | test -z "$as_dir" && as_dir=. | |
6405 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d6a4bcb5 | 6406 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
57aa50d4 TT |
6407 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" |
6408 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6409 | break 2 | |
6410 | fi | |
6411 | done | |
6412 | done | |
6413 | IFS=$as_save_IFS | |
a64c9c13 | 6414 | |
57aa50d4 TT |
6415 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
6416 | ;; | |
e1052144 | 6417 | esac |
57aa50d4 TT |
6418 | fi |
6419 | GMSGFMT=$ac_cv_path_GMSGFMT | |
6420 | if test -n "$GMSGFMT"; then | |
6421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 | |
6422 | $as_echo "$GMSGFMT" >&6; } | |
b0cacab0 | 6423 | else |
57aa50d4 TT |
6424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6425 | $as_echo "no" >&6; } | |
b0cacab0 | 6426 | fi |
e1052144 | 6427 | |
b0cacab0 | 6428 | |
b0cacab0 | 6429 | |
93613951 TT |
6430 | case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in |
6431 | '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;; | |
6432 | *) MSGFMT_015=$MSGFMT ;; | |
6433 | esac | |
6434 | ||
6435 | case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in | |
6436 | '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;; | |
6437 | *) GMSGFMT_015=$GMSGFMT ;; | |
6438 | esac | |
6439 | ||
6440 | ||
57aa50d4 TT |
6441 | |
6442 | # Prepare PATH_SEPARATOR. | |
6443 | # The user is always right. | |
6444 | if test "${PATH_SEPARATOR+set}" != set; then | |
93613951 TT |
6445 | # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which |
6446 | # contains only /bin. Note that ksh looks also at the FPATH variable, | |
6447 | # so we have to set that as well for the test. | |
6448 | PATH_SEPARATOR=: | |
6449 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ | |
6450 | && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ | |
6451 | || PATH_SEPARATOR=';' | |
6452 | } | |
57aa50d4 | 6453 | fi |
b0cacab0 | 6454 | |
57aa50d4 TT |
6455 | # Find out how to test for executable files. Don't use a zero-byte file, |
6456 | # as systems may use methods other than mode bits to determine executability. | |
6457 | cat >conf$$.file <<_ASEOF | |
6458 | #! /bin/sh | |
6459 | exit 0 | |
6460 | _ASEOF | |
6461 | chmod +x conf$$.file | |
6462 | if test -x conf$$.file >/dev/null 2>&1; then | |
6463 | ac_executable_p="test -x" | |
6464 | else | |
6465 | ac_executable_p="test -f" | |
6466 | fi | |
6467 | rm -f conf$$.file | |
b0cacab0 | 6468 | |
57aa50d4 TT |
6469 | # Extract the first word of "xgettext", so it can be a program name with args. |
6470 | set dummy xgettext; ac_word=$2 | |
6471 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6472 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6a4bcb5 | 6473 | if ${ac_cv_path_XGETTEXT+:} false; then : |
39fd3d4f | 6474 | $as_echo_n "(cached) " >&6 |
a64c9c13 | 6475 | else |
57aa50d4 TT |
6476 | case "$XGETTEXT" in |
6477 | [\\/]* | ?:[\\/]*) | |
6478 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
6479 | ;; | |
6480 | *) | |
6481 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
6482 | for ac_dir in $PATH; do | |
6483 | IFS="$ac_save_IFS" | |
6484 | test -z "$ac_dir" && ac_dir=. | |
6485 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6486 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
93613951 TT |
6487 | echo "$as_me: trying $ac_dir/$ac_word..." >&5 |
6488 | if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 && | |
57aa50d4 TT |
6489 | (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 |
6490 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" | |
6491 | break 2 | |
6492 | fi | |
6493 | fi | |
6494 | done | |
6495 | done | |
6496 | IFS="$ac_save_IFS" | |
6497 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
6498 | ;; | |
e1052144 | 6499 | esac |
b0cacab0 | 6500 | fi |
57aa50d4 TT |
6501 | XGETTEXT="$ac_cv_path_XGETTEXT" |
6502 | if test "$XGETTEXT" != ":"; then | |
6503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 | |
6504 | $as_echo "$XGETTEXT" >&6; } | |
6505 | else | |
6506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6507 | $as_echo "no" >&6; } | |
b0cacab0 | 6508 | fi |
b0cacab0 | 6509 | |
57aa50d4 | 6510 | rm -f messages.po |
a64c9c13 | 6511 | |
93613951 TT |
6512 | case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in |
6513 | '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;; | |
6514 | *) XGETTEXT_015=$XGETTEXT ;; | |
6515 | esac | |
6516 | ||
6517 | ||
b0cacab0 | 6518 | |
57aa50d4 TT |
6519 | # Prepare PATH_SEPARATOR. |
6520 | # The user is always right. | |
6521 | if test "${PATH_SEPARATOR+set}" != set; then | |
93613951 TT |
6522 | # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which |
6523 | # contains only /bin. Note that ksh looks also at the FPATH variable, | |
6524 | # so we have to set that as well for the test. | |
6525 | PATH_SEPARATOR=: | |
6526 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ | |
6527 | && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ | |
6528 | || PATH_SEPARATOR=';' | |
6529 | } | |
57aa50d4 | 6530 | fi |
b0cacab0 | 6531 | |
57aa50d4 TT |
6532 | # Find out how to test for executable files. Don't use a zero-byte file, |
6533 | # as systems may use methods other than mode bits to determine executability. | |
6534 | cat >conf$$.file <<_ASEOF | |
6535 | #! /bin/sh | |
6536 | exit 0 | |
6537 | _ASEOF | |
6538 | chmod +x conf$$.file | |
6539 | if test -x conf$$.file >/dev/null 2>&1; then | |
6540 | ac_executable_p="test -x" | |
6541 | else | |
6542 | ac_executable_p="test -f" | |
6543 | fi | |
6544 | rm -f conf$$.file | |
6545 | ||
6546 | # Extract the first word of "msgmerge", so it can be a program name with args. | |
6547 | set dummy msgmerge; ac_word=$2 | |
6548 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6549 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6a4bcb5 | 6550 | if ${ac_cv_path_MSGMERGE+:} false; then : |
39fd3d4f | 6551 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 6552 | else |
57aa50d4 TT |
6553 | case "$MSGMERGE" in |
6554 | [\\/]* | ?:[\\/]*) | |
6555 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. | |
6556 | ;; | |
6557 | *) | |
6558 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
6559 | for ac_dir in $PATH; do | |
6560 | IFS="$ac_save_IFS" | |
6561 | test -z "$ac_dir" && ac_dir=. | |
6562 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6563 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
93613951 TT |
6564 | echo "$as_me: trying $ac_dir/$ac_word..." >&5 |
6565 | if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then | |
57aa50d4 TT |
6566 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" |
6567 | break 2 | |
6568 | fi | |
6569 | fi | |
6570 | done | |
6571 | done | |
6572 | IFS="$ac_save_IFS" | |
6573 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" | |
6574 | ;; | |
e1052144 | 6575 | esac |
57aa50d4 TT |
6576 | fi |
6577 | MSGMERGE="$ac_cv_path_MSGMERGE" | |
6578 | if test "$MSGMERGE" != ":"; then | |
6579 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 | |
6580 | $as_echo "$MSGMERGE" >&6; } | |
b0cacab0 | 6581 | else |
57aa50d4 TT |
6582 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6583 | $as_echo "no" >&6; } | |
b0cacab0 | 6584 | fi |
e1052144 | 6585 | |
93636bde | 6586 | |
93613951 TT |
6587 | test -n "$localedir" || localedir='${datadir}/locale' |
6588 | ||
6589 | ||
6590 | test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS= | |
6591 | ||
6592 | ||
6593 | ac_config_commands="$ac_config_commands po-directories" | |
a64c9c13 | 6594 | |
a64c9c13 | 6595 | |
93613951 TT |
6596 | |
6597 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5 | |
6598 | $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; } | |
6599 | if ${ac_cv_gnu_library_2+:} false; then : | |
6600 | $as_echo_n "(cached) " >&6 | |
6601 | else | |
6602 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6603 | /* end confdefs.h. */ | |
6604 | ||
6605 | #include <features.h> | |
6606 | #ifdef __GNU_LIBRARY__ | |
6607 | #if (__GLIBC__ >= 2) && !defined __UCLIBC__ | |
6608 | Lucky GNU user | |
6609 | #endif | |
6610 | #endif | |
6611 | ||
6612 | _ACEOF | |
6613 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6614 | $EGREP "Lucky GNU user" >/dev/null 2>&1; then : | |
6615 | ac_cv_gnu_library_2=yes | |
6616 | else | |
6617 | ac_cv_gnu_library_2=no | |
6618 | fi | |
6619 | rm -f conftest* | |
6620 | ||
a64c9c13 | 6621 | |
a64c9c13 | 6622 | |
93613951 TT |
6623 | fi |
6624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5 | |
6625 | $as_echo "$ac_cv_gnu_library_2" >&6; } | |
6626 | ||
6627 | GLIBC2="$ac_cv_gnu_library_2" | |
57aa50d4 | 6628 | |
a64c9c13 | 6629 | |
57aa50d4 TT |
6630 | if test -n "$ac_tool_prefix"; then |
6631 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
6632 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
6633 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6634 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6a4bcb5 | 6635 | if ${ac_cv_prog_RANLIB+:} false; then : |
39fd3d4f | 6636 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 6637 | else |
57aa50d4 TT |
6638 | if test -n "$RANLIB"; then |
6639 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
b0cacab0 | 6640 | else |
57aa50d4 TT |
6641 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6642 | for as_dir in $PATH | |
6643 | do | |
6644 | IFS=$as_save_IFS | |
6645 | test -z "$as_dir" && as_dir=. | |
6646 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d6a4bcb5 | 6647 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
57aa50d4 TT |
6648 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
6649 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6650 | break 2 | |
6651 | fi | |
6652 | done | |
6653 | done | |
6654 | IFS=$as_save_IFS | |
d1154eb4 TT |
6655 | |
6656 | fi | |
6657 | fi | |
6658 | RANLIB=$ac_cv_prog_RANLIB | |
6659 | if test -n "$RANLIB"; then | |
6660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
6661 | $as_echo "$RANLIB" >&6; } | |
6662 | else | |
6663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6664 | $as_echo "no" >&6; } | |
6665 | fi | |
6666 | ||
6667 | ||
6668 | fi | |
6669 | if test -z "$ac_cv_prog_RANLIB"; then | |
6670 | ac_ct_RANLIB=$RANLIB | |
6671 | # Extract the first word of "ranlib", so it can be a program name with args. | |
6672 | set dummy ranlib; ac_word=$2 | |
6673 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6674 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6a4bcb5 | 6675 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
d1154eb4 TT |
6676 | $as_echo_n "(cached) " >&6 |
6677 | else | |
6678 | if test -n "$ac_ct_RANLIB"; then | |
6679 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
6680 | else | |
6681 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6682 | for as_dir in $PATH | |
6683 | do | |
6684 | IFS=$as_save_IFS | |
6685 | test -z "$as_dir" && as_dir=. | |
6686 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d6a4bcb5 | 6687 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d1154eb4 TT |
6688 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
6689 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6690 | break 2 | |
6691 | fi | |
6692 | done | |
6693 | done | |
6694 | IFS=$as_save_IFS | |
6695 | ||
6696 | fi | |
6697 | fi | |
6698 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
6699 | if test -n "$ac_ct_RANLIB"; then | |
6700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
6701 | $as_echo "$ac_ct_RANLIB" >&6; } | |
6702 | else | |
6703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6704 | $as_echo "no" >&6; } | |
6705 | fi | |
6706 | ||
6707 | if test "x$ac_ct_RANLIB" = x; then | |
6708 | RANLIB=":" | |
6709 | else | |
6710 | case $cross_compiling:$ac_tool_warned in | |
6711 | yes:) | |
6712 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6713 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6714 | ac_tool_warned=yes ;; | |
6715 | esac | |
6716 | RANLIB=$ac_ct_RANLIB | |
6717 | fi | |
6718 | else | |
6719 | RANLIB="$ac_cv_prog_RANLIB" | |
6720 | fi | |
6721 | ||
6722 | ||
93613951 TT |
6723 | |
6724 | CFLAG_VISIBILITY= | |
6725 | HAVE_VISIBILITY=0 | |
6726 | if test -n "$GCC"; then | |
6727 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5 | |
6728 | $as_echo_n "checking whether the -Werror option is usable... " >&6; } | |
6729 | if ${gl_cv_cc_vis_werror+:} false; then : | |
d1154eb4 TT |
6730 | $as_echo_n "(cached) " >&6 |
6731 | else | |
93613951 TT |
6732 | |
6733 | gl_save_CFLAGS="$CFLAGS" | |
6734 | CFLAGS="$CFLAGS -Werror" | |
6735 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
d1154eb4 TT |
6736 | /* end confdefs.h. */ |
6737 | ||
d1154eb4 TT |
6738 | int |
6739 | main () | |
6740 | { | |
93613951 | 6741 | |
d1154eb4 TT |
6742 | ; |
6743 | return 0; | |
6744 | } | |
6745 | _ACEOF | |
93613951 TT |
6746 | if ac_fn_c_try_compile "$LINENO"; then : |
6747 | gl_cv_cc_vis_werror=yes | |
d1154eb4 | 6748 | else |
93613951 | 6749 | gl_cv_cc_vis_werror=no |
d1154eb4 | 6750 | fi |
93613951 TT |
6751 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6752 | CFLAGS="$gl_save_CFLAGS" | |
d1154eb4 TT |
6753 | fi |
6754 | ||
93613951 TT |
6755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5 |
6756 | $as_echo "$gl_cv_cc_vis_werror" >&6; } | |
6757 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5 | |
6758 | $as_echo_n "checking for simple visibility declarations... " >&6; } | |
6759 | if ${gl_cv_cc_visibility+:} false; then : | |
6760 | $as_echo_n "(cached) " >&6 | |
6761 | else | |
d1154eb4 | 6762 | |
93613951 TT |
6763 | gl_save_CFLAGS="$CFLAGS" |
6764 | CFLAGS="$CFLAGS -fvisibility=hidden" | |
6765 | if test $gl_cv_cc_vis_werror = yes; then | |
6766 | CFLAGS="$CFLAGS -Werror" | |
6767 | fi | |
6768 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6769 | /* end confdefs.h. */ | |
6770 | extern __attribute__((__visibility__("hidden"))) int hiddenvar; | |
6771 | extern __attribute__((__visibility__("default"))) int exportedvar; | |
6772 | extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void); | |
6773 | extern __attribute__((__visibility__("default"))) int exportedfunc (void); | |
6774 | void dummyfunc (void) {} | |
d1154eb4 | 6775 | |
93613951 TT |
6776 | int |
6777 | main () | |
6778 | { | |
d1154eb4 | 6779 | |
93613951 TT |
6780 | ; |
6781 | return 0; | |
6782 | } | |
6783 | _ACEOF | |
6784 | if ac_fn_c_try_compile "$LINENO"; then : | |
6785 | gl_cv_cc_visibility=yes | |
d1154eb4 | 6786 | else |
93613951 TT |
6787 | gl_cv_cc_visibility=no |
6788 | fi | |
6789 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6790 | CFLAGS="$gl_save_CFLAGS" | |
6791 | fi | |
d1154eb4 | 6792 | |
93613951 TT |
6793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5 |
6794 | $as_echo "$gl_cv_cc_visibility" >&6; } | |
6795 | if test $gl_cv_cc_visibility = yes; then | |
6796 | CFLAG_VISIBILITY="-fvisibility=hidden" | |
6797 | HAVE_VISIBILITY=1 | |
6798 | fi | |
d1154eb4 | 6799 | fi |
d1154eb4 | 6800 | |
d1154eb4 TT |
6801 | |
6802 | ||
93613951 TT |
6803 | cat >>confdefs.h <<_ACEOF |
6804 | #define HAVE_VISIBILITY $HAVE_VISIBILITY | |
6805 | _ACEOF | |
6806 | ||
6807 | ||
6808 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 | |
6809 | $as_echo_n "checking for inline... " >&6; } | |
6810 | if ${ac_cv_c_inline+:} false; then : | |
57aa50d4 TT |
6811 | $as_echo_n "(cached) " >&6 |
6812 | else | |
93613951 TT |
6813 | ac_cv_c_inline=no |
6814 | for ac_kw in inline __inline__ __inline; do | |
d1154eb4 TT |
6815 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6816 | /* end confdefs.h. */ | |
93613951 TT |
6817 | #ifndef __cplusplus |
6818 | typedef int foo_t; | |
6819 | static $ac_kw foo_t static_foo () {return 0; } | |
6820 | $ac_kw foo_t foo () {return 0; } | |
6821 | #endif | |
d1154eb4 | 6822 | |
d1154eb4 TT |
6823 | _ACEOF |
6824 | if ac_fn_c_try_compile "$LINENO"; then : | |
93613951 | 6825 | ac_cv_c_inline=$ac_kw |
57aa50d4 | 6826 | fi |
d1154eb4 | 6827 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
93613951 TT |
6828 | test "$ac_cv_c_inline" != no && break |
6829 | done | |
d1154eb4 | 6830 | |
d1154eb4 | 6831 | fi |
93613951 TT |
6832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 |
6833 | $as_echo "$ac_cv_c_inline" >&6; } | |
d1154eb4 | 6834 | |
93613951 TT |
6835 | case $ac_cv_c_inline in |
6836 | inline | yes) ;; | |
6837 | *) | |
6838 | case $ac_cv_c_inline in | |
6839 | no) ac_val=;; | |
6840 | *) ac_val=$ac_cv_c_inline;; | |
6841 | esac | |
6842 | cat >>confdefs.h <<_ACEOF | |
6843 | #ifndef __cplusplus | |
6844 | #define inline $ac_val | |
6845 | #endif | |
d1154eb4 | 6846 | _ACEOF |
93613951 TT |
6847 | ;; |
6848 | esac | |
d1154eb4 | 6849 | |
93613951 TT |
6850 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
6851 | if test "x$ac_cv_type_size_t" = xyes; then : | |
d1154eb4 | 6852 | |
57aa50d4 | 6853 | else |
d1154eb4 | 6854 | |
93613951 TT |
6855 | cat >>confdefs.h <<_ACEOF |
6856 | #define size_t unsigned int | |
d1154eb4 | 6857 | _ACEOF |
b0cacab0 | 6858 | |
57aa50d4 | 6859 | fi |
b0cacab0 TT |
6860 | |
6861 | ||
93613951 TT |
6862 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5 |
6863 | $as_echo_n "checking for stdint.h... " >&6; } | |
6864 | if ${gl_cv_header_stdint_h+:} false; then : | |
57aa50d4 | 6865 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 6866 | else |
d1154eb4 | 6867 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b0cacab0 | 6868 | /* end confdefs.h. */ |
93613951 TT |
6869 | #include <sys/types.h> |
6870 | #include <stdint.h> | |
a64c9c13 | 6871 | int |
b0cacab0 TT |
6872 | main () |
6873 | { | |
93613951 | 6874 | uintmax_t i = (uintmax_t) -1; return !i; |
d1154eb4 | 6875 | ; |
b0cacab0 | 6876 | return 0; |
a64c9c13 | 6877 | } |
b0cacab0 | 6878 | _ACEOF |
d1154eb4 | 6879 | if ac_fn_c_try_compile "$LINENO"; then : |
93613951 | 6880 | gl_cv_header_stdint_h=yes |
b0cacab0 | 6881 | else |
93613951 | 6882 | gl_cv_header_stdint_h=no |
b0cacab0 | 6883 | fi |
d1154eb4 | 6884 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d1154eb4 | 6885 | fi |
93613951 TT |
6886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5 |
6887 | $as_echo "$gl_cv_header_stdint_h" >&6; } | |
6888 | if test $gl_cv_header_stdint_h = yes; then | |
b0cacab0 | 6889 | |
93613951 TT |
6890 | cat >>confdefs.h <<_ACEOF |
6891 | #define HAVE_STDINT_H_WITH_UINTMAX 1 | |
d1154eb4 | 6892 | _ACEOF |
b0cacab0 | 6893 | |
93613951 | 6894 | fi |
b0cacab0 | 6895 | |
93613951 TT |
6896 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
6897 | # for constant arguments. Useless! | |
6898 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 | |
6899 | $as_echo_n "checking for working alloca.h... " >&6; } | |
6900 | if ${ac_cv_working_alloca_h+:} false; then : | |
39fd3d4f | 6901 | $as_echo_n "(cached) " >&6 |
a64c9c13 | 6902 | else |
57aa50d4 | 6903 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b0cacab0 | 6904 | /* end confdefs.h. */ |
93613951 | 6905 | #include <alloca.h> |
57aa50d4 TT |
6906 | int |
6907 | main () | |
6908 | { | |
93613951 TT |
6909 | char *p = (char *) alloca (2 * sizeof (int)); |
6910 | if (p) return 0; | |
57aa50d4 TT |
6911 | ; |
6912 | return 0; | |
6913 | } | |
b0cacab0 | 6914 | _ACEOF |
93613951 TT |
6915 | if ac_fn_c_try_link "$LINENO"; then : |
6916 | ac_cv_working_alloca_h=yes | |
b0cacab0 | 6917 | else |
93613951 | 6918 | ac_cv_working_alloca_h=no |
57aa50d4 | 6919 | fi |
93613951 TT |
6920 | rm -f core conftest.err conftest.$ac_objext \ |
6921 | conftest$ac_exeext conftest.$ac_ext | |
57aa50d4 | 6922 | fi |
93613951 TT |
6923 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 |
6924 | $as_echo "$ac_cv_working_alloca_h" >&6; } | |
6925 | if test $ac_cv_working_alloca_h = yes; then | |
57aa50d4 | 6926 | |
93613951 | 6927 | $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h |
57aa50d4 | 6928 | |
a64c9c13 | 6929 | fi |
b0cacab0 | 6930 | |
93613951 TT |
6931 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 |
6932 | $as_echo_n "checking for alloca... " >&6; } | |
6933 | if ${ac_cv_func_alloca_works+:} false; then : | |
57aa50d4 | 6934 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 6935 | else |
57aa50d4 | 6936 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b0cacab0 | 6937 | /* end confdefs.h. */ |
93613951 TT |
6938 | #ifdef __GNUC__ |
6939 | # define alloca __builtin_alloca | |
6940 | #else | |
6941 | # ifdef _MSC_VER | |
6942 | # include <malloc.h> | |
6943 | # define alloca _alloca | |
6944 | # else | |
6945 | # ifdef HAVE_ALLOCA_H | |
6946 | # include <alloca.h> | |
6947 | # else | |
6948 | # ifdef _AIX | |
6949 | #pragma alloca | |
6950 | # else | |
6951 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
6952 | void *alloca (size_t); | |
6953 | # endif | |
6954 | # endif | |
6955 | # endif | |
6956 | # endif | |
6957 | #endif | |
b0cacab0 | 6958 | |
57aa50d4 TT |
6959 | int |
6960 | main () | |
b0cacab0 | 6961 | { |
93613951 TT |
6962 | char *p = (char *) alloca (1); |
6963 | if (p) return 0; | |
57aa50d4 TT |
6964 | ; |
6965 | return 0; | |
b0cacab0 TT |
6966 | } |
6967 | _ACEOF | |
93613951 TT |
6968 | if ac_fn_c_try_link "$LINENO"; then : |
6969 | ac_cv_func_alloca_works=yes | |
b0cacab0 | 6970 | else |
93613951 | 6971 | ac_cv_func_alloca_works=no |
57aa50d4 | 6972 | fi |
93613951 TT |
6973 | rm -f core conftest.err conftest.$ac_objext \ |
6974 | conftest$ac_exeext conftest.$ac_ext | |
57aa50d4 | 6975 | fi |
93613951 TT |
6976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 |
6977 | $as_echo "$ac_cv_func_alloca_works" >&6; } | |
57aa50d4 | 6978 | |
93613951 | 6979 | if test $ac_cv_func_alloca_works = yes; then |
57aa50d4 | 6980 | |
93613951 | 6981 | $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h |
57aa50d4 | 6982 | |
b0cacab0 | 6983 | else |
93613951 TT |
6984 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
6985 | # that cause trouble. Some versions do not even contain alloca or | |
6986 | # contain a buggy version. If you still want to use their alloca, | |
6987 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
b0cacab0 | 6988 | |
93613951 | 6989 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
57aa50d4 | 6990 | |
93613951 | 6991 | $as_echo "#define C_ALLOCA 1" >>confdefs.h |
57aa50d4 | 6992 | |
57aa50d4 | 6993 | |
93613951 TT |
6994 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 |
6995 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } | |
6996 | if ${ac_cv_os_cray+:} false; then : | |
57aa50d4 TT |
6997 | $as_echo_n "(cached) " >&6 |
6998 | else | |
57aa50d4 TT |
6999 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7000 | /* end confdefs.h. */ | |
93613951 TT |
7001 | #if defined CRAY && ! defined CRAY2 |
7002 | webecray | |
7003 | #else | |
7004 | wenotbecray | |
57aa50d4 | 7005 | #endif |
b0cacab0 | 7006 | |
57aa50d4 | 7007 | _ACEOF |
93613951 TT |
7008 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
7009 | $EGREP "webecray" >/dev/null 2>&1; then : | |
7010 | ac_cv_os_cray=yes | |
7011 | else | |
7012 | ac_cv_os_cray=no | |
a64c9c13 | 7013 | fi |
93613951 | 7014 | rm -f conftest* |
d1154eb4 TT |
7015 | |
7016 | fi | |
93613951 TT |
7017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 |
7018 | $as_echo "$ac_cv_os_cray" >&6; } | |
7019 | if test $ac_cv_os_cray = yes; then | |
7020 | for ac_func in _getb67 GETB67 getb67; do | |
7021 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
7022 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
7023 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
e1052144 | 7024 | |
57aa50d4 | 7025 | cat >>confdefs.h <<_ACEOF |
93613951 | 7026 | #define CRAY_STACKSEG_END $ac_func |
57aa50d4 | 7027 | _ACEOF |
e1052144 | 7028 | |
93613951 | 7029 | break |
a64c9c13 | 7030 | fi |
07a0db15 | 7031 | |
93613951 | 7032 | done |
57aa50d4 | 7033 | fi |
b0cacab0 | 7034 | |
93613951 TT |
7035 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 |
7036 | $as_echo_n "checking stack direction for C alloca... " >&6; } | |
7037 | if ${ac_cv_c_stack_direction+:} false; then : | |
39fd3d4f | 7038 | $as_echo_n "(cached) " >&6 |
93613951 TT |
7039 | else |
7040 | if test "$cross_compiling" = yes; then : | |
7041 | ac_cv_c_stack_direction=0 | |
b0cacab0 | 7042 | else |
57aa50d4 | 7043 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b0cacab0 | 7044 | /* end confdefs.h. */ |
93613951 | 7045 | $ac_includes_default |
b0cacab0 | 7046 | int |
93613951 | 7047 | find_stack_direction (int *addr, int depth) |
b0cacab0 | 7048 | { |
93613951 TT |
7049 | int dir, dummy = 0; |
7050 | if (! addr) | |
7051 | addr = &dummy; | |
7052 | *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; | |
7053 | dir = depth ? find_stack_direction (addr, depth - 1) : 0; | |
7054 | return dir + dummy; | |
b0cacab0 | 7055 | } |
93636bde | 7056 | |
b0cacab0 | 7057 | int |
93613951 | 7058 | main (int argc, char **argv) |
b0cacab0 | 7059 | { |
93613951 | 7060 | return find_stack_direction (0, argc + !argv + 20) < 0; |
b0cacab0 TT |
7061 | } |
7062 | _ACEOF | |
93613951 TT |
7063 | if ac_fn_c_try_run "$LINENO"; then : |
7064 | ac_cv_c_stack_direction=1 | |
a64c9c13 | 7065 | else |
93613951 | 7066 | ac_cv_c_stack_direction=-1 |
b0cacab0 | 7067 | fi |
93613951 TT |
7068 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
7069 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
b0cacab0 | 7070 | fi |
b0cacab0 | 7071 | |
93613951 TT |
7072 | fi |
7073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 | |
7074 | $as_echo "$ac_cv_c_stack_direction" >&6; } | |
7075 | cat >>confdefs.h <<_ACEOF | |
7076 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
7077 | _ACEOF | |
57aa50d4 | 7078 | |
b0cacab0 | 7079 | |
57aa50d4 | 7080 | fi |
b0cacab0 | 7081 | |
57aa50d4 TT |
7082 | |
7083 | ||
b0cacab0 | 7084 | |
93613951 TT |
7085 | for ac_header in $ac_header_list |
7086 | do : | |
7087 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7088 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
7089 | " | |
7090 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
7091 | cat >>confdefs.h <<_ACEOF | |
7092 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
b0cacab0 | 7093 | _ACEOF |
93613951 | 7094 | |
a64c9c13 | 7095 | fi |
07a0db15 | 7096 | |
93613951 | 7097 | done |
a64c9c13 | 7098 | |
a64c9c13 | 7099 | |
b0cacab0 | 7100 | |
b0cacab0 | 7101 | |
a04eba3f | 7102 | |
a04eba3f | 7103 | |
b0cacab0 | 7104 | |
b0cacab0 | 7105 | |
93613951 TT |
7106 | for ac_func in getpagesize |
7107 | do : | |
7108 | ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" | |
7109 | if test "x$ac_cv_func_getpagesize" = xyes; then : | |
7110 | cat >>confdefs.h <<_ACEOF | |
7111 | #define HAVE_GETPAGESIZE 1 | |
b0cacab0 TT |
7112 | _ACEOF |
7113 | ||
93613951 TT |
7114 | fi |
7115 | done | |
b0cacab0 | 7116 | |
93613951 TT |
7117 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 |
7118 | $as_echo_n "checking for working mmap... " >&6; } | |
7119 | if ${ac_cv_func_mmap_fixed_mapped+:} false; then : | |
39fd3d4f | 7120 | $as_echo_n "(cached) " >&6 |
93613951 TT |
7121 | else |
7122 | if test "$cross_compiling" = yes; then : | |
7123 | ac_cv_func_mmap_fixed_mapped=no | |
b0cacab0 | 7124 | else |
57aa50d4 | 7125 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b0cacab0 | 7126 | /* end confdefs.h. */ |
93613951 TT |
7127 | $ac_includes_default |
7128 | /* malloc might have been renamed as rpl_malloc. */ | |
7129 | #undef malloc | |
57aa50d4 | 7130 | |
93613951 TT |
7131 | /* Thanks to Mike Haertel and Jim Avera for this test. |
7132 | Here is a matrix of mmap possibilities: | |
7133 | mmap private not fixed | |
7134 | mmap private fixed at somewhere currently unmapped | |
7135 | mmap private fixed at somewhere already mapped | |
7136 | mmap shared not fixed | |
7137 | mmap shared fixed at somewhere currently unmapped | |
7138 | mmap shared fixed at somewhere already mapped | |
7139 | For private mappings, we should verify that changes cannot be read() | |
7140 | back from the file, nor mmap's back from the file at a different | |
7141 | address. (There have been systems where private was not correctly | |
7142 | implemented like the infamous i386 svr4.0, and systems where the | |
7143 | VM page cache was not coherent with the file system buffer cache | |
7144 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
7145 | For shared mappings, we should conversely verify that changes get | |
7146 | propagated back to all the places they're supposed to be. | |
7147 | ||
7148 | Grep wants private fixed already mapped. | |
7149 | The main things grep needs to know about mmap are: | |
7150 | * does it exist and is it safe to write into the mmap'd area | |
7151 | * how to use it (BSD variants) */ | |
7152 | ||
7153 | #include <fcntl.h> | |
7154 | #include <sys/mman.h> | |
7155 | ||
7156 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H | |
7157 | char *malloc (); | |
57aa50d4 TT |
7158 | #endif |
7159 | ||
93613951 TT |
7160 | /* This mess was copied from the GNU getpagesize.h. */ |
7161 | #ifndef HAVE_GETPAGESIZE | |
7162 | # ifdef _SC_PAGESIZE | |
7163 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
7164 | # else /* no _SC_PAGESIZE */ | |
7165 | # ifdef HAVE_SYS_PARAM_H | |
7166 | # include <sys/param.h> | |
7167 | # ifdef EXEC_PAGESIZE | |
7168 | # define getpagesize() EXEC_PAGESIZE | |
7169 | # else /* no EXEC_PAGESIZE */ | |
7170 | # ifdef NBPG | |
7171 | # define getpagesize() NBPG * CLSIZE | |
7172 | # ifndef CLSIZE | |
7173 | # define CLSIZE 1 | |
7174 | # endif /* no CLSIZE */ | |
7175 | # else /* no NBPG */ | |
7176 | # ifdef NBPC | |
7177 | # define getpagesize() NBPC | |
7178 | # else /* no NBPC */ | |
7179 | # ifdef PAGESIZE | |
7180 | # define getpagesize() PAGESIZE | |
7181 | # endif /* PAGESIZE */ | |
7182 | # endif /* no NBPC */ | |
7183 | # endif /* no NBPG */ | |
7184 | # endif /* no EXEC_PAGESIZE */ | |
7185 | # else /* no HAVE_SYS_PARAM_H */ | |
7186 | # define getpagesize() 8192 /* punt totally */ | |
7187 | # endif /* no HAVE_SYS_PARAM_H */ | |
7188 | # endif /* no _SC_PAGESIZE */ | |
7189 | ||
7190 | #endif /* no HAVE_GETPAGESIZE */ | |
7191 | ||
57aa50d4 TT |
7192 | int |
7193 | main () | |
7194 | { | |
93613951 TT |
7195 | char *data, *data2, *data3; |
7196 | const char *cdata2; | |
7197 | int i, pagesize; | |
7198 | int fd, fd2; | |
7199 | ||
7200 | pagesize = getpagesize (); | |
7201 | ||
7202 | /* First, make a file with some known garbage in it. */ | |
7203 | data = (char *) malloc (pagesize); | |
7204 | if (!data) | |
7205 | return 1; | |
7206 | for (i = 0; i < pagesize; ++i) | |
7207 | *(data + i) = rand (); | |
7208 | umask (0); | |
7209 | fd = creat ("conftest.mmap", 0600); | |
7210 | if (fd < 0) | |
7211 | return 2; | |
7212 | if (write (fd, data, pagesize) != pagesize) | |
7213 | return 3; | |
7214 | close (fd); | |
7215 | ||
7216 | /* Next, check that the tail of a page is zero-filled. File must have | |
7217 | non-zero length, otherwise we risk SIGBUS for entire page. */ | |
7218 | fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); | |
7219 | if (fd2 < 0) | |
7220 | return 4; | |
7221 | cdata2 = ""; | |
7222 | if (write (fd2, cdata2, 1) != 1) | |
7223 | return 5; | |
7224 | data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); | |
7225 | if (data2 == MAP_FAILED) | |
7226 | return 6; | |
7227 | for (i = 0; i < pagesize; ++i) | |
7228 | if (*(data2 + i)) | |
7229 | return 7; | |
7230 | close (fd2); | |
7231 | if (munmap (data2, pagesize)) | |
7232 | return 8; | |
7233 | ||
7234 | /* Next, try to mmap the file at a fixed address which already has | |
7235 | something else allocated at it. If we can, also make sure that | |
7236 | we see the same garbage. */ | |
7237 | fd = open ("conftest.mmap", O_RDWR); | |
7238 | if (fd < 0) | |
7239 | return 9; | |
7240 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, | |
7241 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
7242 | return 10; | |
7243 | for (i = 0; i < pagesize; ++i) | |
7244 | if (*(data + i) != *(data2 + i)) | |
7245 | return 11; | |
7246 | ||
7247 | /* Finally, make sure that changes to the mapped area do not | |
7248 | percolate back to the file as seen by read(). (This is a bug on | |
7249 | some variants of i386 svr4.0.) */ | |
7250 | for (i = 0; i < pagesize; ++i) | |
7251 | *(data2 + i) = *(data2 + i) + 1; | |
7252 | data3 = (char *) malloc (pagesize); | |
7253 | if (!data3) | |
7254 | return 12; | |
7255 | if (read (fd, data3, pagesize) != pagesize) | |
7256 | return 13; | |
7257 | for (i = 0; i < pagesize; ++i) | |
7258 | if (*(data + i) != *(data3 + i)) | |
7259 | return 14; | |
7260 | close (fd); | |
d7de3f3d DL |
7261 | free (data); |
7262 | free (data3); | |
57aa50d4 TT |
7263 | return 0; |
7264 | } | |
b0cacab0 | 7265 | _ACEOF |
93613951 TT |
7266 | if ac_fn_c_try_run "$LINENO"; then : |
7267 | ac_cv_func_mmap_fixed_mapped=yes | |
b0cacab0 | 7268 | else |
93613951 | 7269 | ac_cv_func_mmap_fixed_mapped=no |
b0cacab0 | 7270 | fi |
93613951 TT |
7271 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
7272 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
57aa50d4 | 7273 | fi |
b0cacab0 | 7274 | |
93613951 TT |
7275 | fi |
7276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 | |
7277 | $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } | |
7278 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | |
b0cacab0 | 7279 | |
93613951 | 7280 | $as_echo "#define HAVE_MMAP 1" >>confdefs.h |
e1052144 | 7281 | |
93613951 TT |
7282 | fi |
7283 | rm -f conftest.mmap conftest.txt | |
b0cacab0 | 7284 | |
e1052144 | 7285 | |
93613951 TT |
7286 | |
7287 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5 | |
7288 | $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; } | |
7289 | if ${gt_cv_int_divbyzero_sigfpe+:} false; then : | |
39fd3d4f | 7290 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 7291 | else |
b0cacab0 | 7292 | |
93613951 TT |
7293 | gt_cv_int_divbyzero_sigfpe= |
7294 | case "$host_os" in | |
7295 | macos* | darwin[6-9]* | darwin[1-9][0-9]*) | |
7296 | # On Mac OS X 10.2 or newer, just assume the same as when cross- | |
7297 | # compiling. If we were to perform the real test, 1 Crash Report | |
7298 | # dialog window would pop up. | |
7299 | case "$host_cpu" in | |
7300 | i[34567]86 | x86_64) | |
7301 | gt_cv_int_divbyzero_sigfpe="guessing yes" ;; | |
7302 | esac | |
7303 | ;; | |
7304 | esac | |
7305 | if test -z "$gt_cv_int_divbyzero_sigfpe"; then | |
7306 | if test "$cross_compiling" = yes; then : | |
7307 | ||
7308 | # Guess based on the CPU. | |
7309 | case "$host_cpu" in | |
7310 | alpha* | i[34567]86 | x86_64 | m68k | s390*) | |
7311 | gt_cv_int_divbyzero_sigfpe="guessing yes";; | |
7312 | *) | |
7313 | gt_cv_int_divbyzero_sigfpe="guessing no";; | |
7314 | esac | |
57aa50d4 | 7315 | |
93613951 TT |
7316 | else |
7317 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
57aa50d4 TT |
7318 | /* end confdefs.h. */ |
7319 | ||
93613951 TT |
7320 | #include <stdlib.h> |
7321 | #include <signal.h> | |
b0cacab0 | 7322 | |
93613951 TT |
7323 | static void |
7324 | sigfpe_handler (int sig) | |
7325 | { | |
7326 | /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */ | |
7327 | exit (sig != SIGFPE); | |
7328 | } | |
b0cacab0 | 7329 | |
93613951 TT |
7330 | int x = 1; |
7331 | int y = 0; | |
7332 | int z; | |
7333 | int nan; | |
b0cacab0 | 7334 | |
57aa50d4 TT |
7335 | int main () |
7336 | { | |
93613951 TT |
7337 | signal (SIGFPE, sigfpe_handler); |
7338 | /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */ | |
7339 | #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP) | |
7340 | signal (SIGTRAP, sigfpe_handler); | |
7341 | #endif | |
7342 | /* Linux/SPARC yields signal SIGILL. */ | |
7343 | #if defined (__sparc__) && defined (__linux__) | |
7344 | signal (SIGILL, sigfpe_handler); | |
7345 | #endif | |
7346 | ||
7347 | z = x / y; | |
7348 | nan = y / y; | |
7349 | exit (2); | |
57aa50d4 | 7350 | } |
93613951 | 7351 | |
57aa50d4 TT |
7352 | _ACEOF |
7353 | if ac_fn_c_try_run "$LINENO"; then : | |
93613951 | 7354 | gt_cv_int_divbyzero_sigfpe=yes |
57aa50d4 | 7355 | else |
93613951 | 7356 | gt_cv_int_divbyzero_sigfpe=no |
57aa50d4 TT |
7357 | fi |
7358 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
7359 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
7360 | fi | |
7361 | ||
93613951 | 7362 | fi |
57aa50d4 TT |
7363 | |
7364 | fi | |
93613951 TT |
7365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5 |
7366 | $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; } | |
7367 | case "$gt_cv_int_divbyzero_sigfpe" in | |
7368 | *yes) value=1;; | |
7369 | *) value=0;; | |
7370 | esac | |
57aa50d4 | 7371 | |
93613951 TT |
7372 | cat >>confdefs.h <<_ACEOF |
7373 | #define INTDIV0_RAISES_SIGFPE $value | |
7374 | _ACEOF | |
57aa50d4 | 7375 | |
57aa50d4 | 7376 | |
93613951 TT |
7377 | |
7378 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5 | |
7379 | $as_echo_n "checking for inttypes.h... " >&6; } | |
7380 | if ${gl_cv_header_inttypes_h+:} false; then : | |
39fd3d4f | 7381 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 7382 | else |
57aa50d4 | 7383 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b0cacab0 | 7384 | /* end confdefs.h. */ |
93613951 TT |
7385 | |
7386 | #include <sys/types.h> | |
7387 | #include <inttypes.h> | |
7388 | ||
57aa50d4 TT |
7389 | int |
7390 | main () | |
7391 | { | |
93613951 | 7392 | uintmax_t i = (uintmax_t) -1; return !i; |
57aa50d4 TT |
7393 | ; |
7394 | return 0; | |
7395 | } | |
7396 | _ACEOF | |
93613951 TT |
7397 | if ac_fn_c_try_compile "$LINENO"; then : |
7398 | gl_cv_header_inttypes_h=yes | |
57aa50d4 | 7399 | else |
93613951 | 7400 | gl_cv_header_inttypes_h=no |
57aa50d4 | 7401 | fi |
93613951 | 7402 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
57aa50d4 | 7403 | fi |
93613951 TT |
7404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5 |
7405 | $as_echo "$gl_cv_header_inttypes_h" >&6; } | |
7406 | if test $gl_cv_header_inttypes_h = yes; then | |
b0cacab0 | 7407 | |
93613951 TT |
7408 | cat >>confdefs.h <<_ACEOF |
7409 | #define HAVE_INTTYPES_H_WITH_UINTMAX 1 | |
7410 | _ACEOF | |
b0cacab0 | 7411 | |
93613951 | 7412 | fi |
57aa50d4 | 7413 | |
93613951 TT |
7414 | |
7415 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5 | |
7416 | $as_echo_n "checking for unsigned long long int... " >&6; } | |
7417 | if ${ac_cv_type_unsigned_long_long_int+:} false; then : | |
57aa50d4 TT |
7418 | $as_echo_n "(cached) " >&6 |
7419 | else | |
93613951 TT |
7420 | ac_cv_type_unsigned_long_long_int=yes |
7421 | if test "x${ac_cv_prog_cc_c99-no}" = xno; then | |
7422 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
57aa50d4 | 7423 | /* end confdefs.h. */ |
b0cacab0 | 7424 | |
93613951 TT |
7425 | /* For now, do not test the preprocessor; as of 2007 there are too many |
7426 | implementations with broken preprocessors. Perhaps this can | |
7427 | be revisited in 2012. In the meantime, code should not expect | |
7428 | #if to work with literals wider than 32 bits. */ | |
7429 | /* Test literals. */ | |
7430 | long long int ll = 9223372036854775807ll; | |
7431 | long long int nll = -9223372036854775807LL; | |
7432 | unsigned long long int ull = 18446744073709551615ULL; | |
7433 | /* Test constant expressions. */ | |
7434 | typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) | |
7435 | ? 1 : -1)]; | |
7436 | typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 | |
7437 | ? 1 : -1)]; | |
7438 | int i = 63; | |
57aa50d4 TT |
7439 | int |
7440 | main () | |
7441 | { | |
93613951 TT |
7442 | /* Test availability of runtime routines for shift and division. */ |
7443 | long long int llmax = 9223372036854775807ll; | |
7444 | unsigned long long int ullmax = 18446744073709551615ull; | |
7445 | return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) | |
7446 | | (llmax / ll) | (llmax % ll) | |
7447 | | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) | |
7448 | | (ullmax / ull) | (ullmax % ull)); | |
57aa50d4 TT |
7449 | ; |
7450 | return 0; | |
7451 | } | |
93613951 | 7452 | |
57aa50d4 TT |
7453 | _ACEOF |
7454 | if ac_fn_c_try_link "$LINENO"; then : | |
93613951 | 7455 | |
57aa50d4 | 7456 | else |
93613951 | 7457 | ac_cv_type_unsigned_long_long_int=no |
57aa50d4 TT |
7458 | fi |
7459 | rm -f core conftest.err conftest.$ac_objext \ | |
7460 | conftest$ac_exeext conftest.$ac_ext | |
93613951 | 7461 | fi |
57aa50d4 | 7462 | fi |
93613951 TT |
7463 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5 |
7464 | $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; } | |
7465 | if test $ac_cv_type_unsigned_long_long_int = yes; then | |
b0cacab0 | 7466 | |
93613951 | 7467 | $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h |
57aa50d4 | 7468 | |
93613951 | 7469 | fi |
57aa50d4 | 7470 | |
57aa50d4 | 7471 | |
57aa50d4 | 7472 | |
57aa50d4 | 7473 | |
93613951 | 7474 | if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then |
57aa50d4 | 7475 | |
93613951 TT |
7476 | test $ac_cv_type_unsigned_long_long_int = yes \ |
7477 | && ac_type='unsigned long long' \ | |
7478 | || ac_type='unsigned long' | |
b0cacab0 | 7479 | |
93613951 TT |
7480 | cat >>confdefs.h <<_ACEOF |
7481 | #define uintmax_t $ac_type | |
57aa50d4 | 7482 | _ACEOF |
57aa50d4 | 7483 | |
93613951 | 7484 | else |
57aa50d4 | 7485 | |
93613951 TT |
7486 | $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h |
7487 | ||
7488 | fi | |
7489 | ||
7490 | ||
7491 | for ac_header in inttypes.h | |
7492 | do : | |
7493 | ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default" | |
7494 | if test "x$ac_cv_header_inttypes_h" = xyes; then : | |
7495 | cat >>confdefs.h <<_ACEOF | |
7496 | #define HAVE_INTTYPES_H 1 | |
57aa50d4 TT |
7497 | _ACEOF |
7498 | ||
57aa50d4 TT |
7499 | fi |
7500 | ||
93613951 | 7501 | done |
57aa50d4 | 7502 | |
93613951 TT |
7503 | if test $ac_cv_header_inttypes_h = yes; then |
7504 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5 | |
7505 | $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; } | |
7506 | if ${gt_cv_inttypes_pri_broken+:} false; then : | |
57aa50d4 TT |
7507 | $as_echo_n "(cached) " >&6 |
7508 | else | |
93613951 TT |
7509 | |
7510 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
57aa50d4 | 7511 | /* end confdefs.h. */ |
93613951 TT |
7512 | |
7513 | #include <inttypes.h> | |
7514 | #ifdef PRId32 | |
7515 | char *p = PRId32; | |
7516 | #endif | |
57aa50d4 | 7517 | |
b0cacab0 | 7518 | int |
93613951 | 7519 | main () |
b0cacab0 | 7520 | { |
93613951 TT |
7521 | |
7522 | ; | |
7523 | return 0; | |
b0cacab0 TT |
7524 | } |
7525 | _ACEOF | |
93613951 TT |
7526 | if ac_fn_c_try_compile "$LINENO"; then : |
7527 | gt_cv_inttypes_pri_broken=no | |
b0cacab0 | 7528 | else |
93613951 | 7529 | gt_cv_inttypes_pri_broken=yes |
57aa50d4 | 7530 | fi |
93613951 | 7531 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
57aa50d4 TT |
7532 | |
7533 | fi | |
93613951 TT |
7534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5 |
7535 | $as_echo "$gt_cv_inttypes_pri_broken" >&6; } | |
7536 | fi | |
7537 | if test "$gt_cv_inttypes_pri_broken" = yes; then | |
7538 | ||
57aa50d4 | 7539 | cat >>confdefs.h <<_ACEOF |
93613951 | 7540 | #define PRI_MACROS_BROKEN 1 |
57aa50d4 TT |
7541 | _ACEOF |
7542 | ||
93613951 TT |
7543 | PRI_MACROS_BROKEN=1 |
7544 | else | |
7545 | PRI_MACROS_BROKEN=0 | |
7546 | fi | |
b0cacab0 | 7547 | |
e1052144 | 7548 | |
61ef2474 TT |
7549 | |
7550 | ||
7551 | ||
61ef2474 | 7552 | |
93613951 TT |
7553 | |
7554 | # Check whether --enable-threads was given. | |
7555 | if test "${enable_threads+set}" = set; then : | |
7556 | enableval=$enable_threads; gl_use_threads=$enableval | |
7557 | else | |
7558 | if test -n "$gl_use_threads_default"; then | |
7559 | gl_use_threads="$gl_use_threads_default" | |
7560 | else | |
7561 | case "$host_os" in | |
7562 | osf*) gl_use_threads=no ;; | |
7563 | cygwin*) | |
7564 | case `uname -r` in | |
7565 | 1.[0-5].*) gl_use_threads=no ;; | |
7566 | *) gl_use_threads=yes ;; | |
7567 | esac | |
7568 | ;; | |
7569 | *) gl_use_threads=yes ;; | |
7570 | esac | |
7571 | fi | |
57aa50d4 | 7572 | |
b0cacab0 | 7573 | fi |
57aa50d4 | 7574 | |
93613951 TT |
7575 | if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then |
7576 | # For using <pthread.h>: | |
7577 | case "$host_os" in | |
7578 | osf*) | |
7579 | # On OSF/1, the compiler needs the flag -D_REENTRANT so that it | |
7580 | # groks <pthread.h>. cc also understands the flag -pthread, but | |
7581 | # we don't use it because 1. gcc-2.95 doesn't understand -pthread, | |
7582 | # 2. putting a flag into CPPFLAGS that has an effect on the linker | |
7583 | # causes the AC_LINK_IFELSE test below to succeed unexpectedly, | |
7584 | # leading to wrong values of LIBTHREAD and LTLIBTHREAD. | |
7585 | CPPFLAGS="$CPPFLAGS -D_REENTRANT" | |
7586 | ;; | |
7587 | esac | |
7588 | # Some systems optimize for single-threaded programs by default, and | |
7589 | # need special flags to disable these optimizations. For example, the | |
7590 | # definition of 'errno' in <errno.h>. | |
7591 | case "$host_os" in | |
7592 | aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;; | |
7593 | solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;; | |
7594 | esac | |
7595 | fi | |
57aa50d4 | 7596 | |
61ef2474 TT |
7597 | |
7598 | ||
7599 | ||
7600 | ||
93613951 TT |
7601 | if test "X$prefix" = "XNONE"; then |
7602 | acl_final_prefix="$ac_default_prefix" | |
7603 | else | |
7604 | acl_final_prefix="$prefix" | |
7605 | fi | |
7606 | if test "X$exec_prefix" = "XNONE"; then | |
7607 | acl_final_exec_prefix='${prefix}' | |
7608 | else | |
7609 | acl_final_exec_prefix="$exec_prefix" | |
7610 | fi | |
7611 | acl_save_prefix="$prefix" | |
7612 | prefix="$acl_final_prefix" | |
7613 | eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" | |
7614 | prefix="$acl_save_prefix" | |
61ef2474 TT |
7615 | |
7616 | ||
7617 | ||
93613951 TT |
7618 | # Check whether --with-gnu-ld was given. |
7619 | if test "${with_gnu_ld+set}" = set; then : | |
7620 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
7621 | else | |
7622 | with_gnu_ld=no | |
7623 | fi | |
b0cacab0 | 7624 | |
93613951 TT |
7625 | # Prepare PATH_SEPARATOR. |
7626 | # The user is always right. | |
7627 | if test "${PATH_SEPARATOR+set}" != set; then | |
7628 | # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which | |
7629 | # contains only /bin. Note that ksh looks also at the FPATH variable, | |
7630 | # so we have to set that as well for the test. | |
7631 | PATH_SEPARATOR=: | |
7632 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ | |
7633 | && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ | |
7634 | || PATH_SEPARATOR=';' | |
7635 | } | |
b0cacab0 | 7636 | fi |
b0cacab0 | 7637 | |
93613951 TT |
7638 | ac_prog=ld |
7639 | if test "$GCC" = yes; then | |
7640 | # Check if gcc -print-prog-name=ld gives a path. | |
7641 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
7642 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
7643 | case $host in | |
7644 | *-*-mingw*) | |
7645 | # gcc leaves a trailing carriage return which upsets mingw | |
7646 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
7647 | *) | |
7648 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
7649 | esac | |
7650 | case $ac_prog in | |
7651 | # Accept absolute paths. | |
7652 | [\\/]* | ?:[\\/]*) | |
7653 | re_direlt='/[^/][^/]*/\.\./' | |
7654 | # Canonicalize the pathname of ld | |
7655 | ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'` | |
7656 | while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do | |
7657 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | |
7658 | done | |
7659 | test -z "$LD" && LD="$ac_prog" | |
7660 | ;; | |
7661 | "") | |
7662 | # If it fails, then pretend we aren't using GCC. | |
7663 | ac_prog=ld | |
7664 | ;; | |
7665 | *) | |
7666 | # If it is relative, then search for the first ld in PATH. | |
7667 | with_gnu_ld=unknown | |
7668 | ;; | |
7669 | esac | |
7670 | elif test "$with_gnu_ld" = yes; then | |
7671 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
7672 | $as_echo_n "checking for GNU ld... " >&6; } | |
b0cacab0 | 7673 | else |
93613951 TT |
7674 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
7675 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
7676 | fi | |
7677 | if ${acl_cv_path_LD+:} false; then : | |
7678 | $as_echo_n "(cached) " >&6 | |
b0cacab0 | 7679 | else |
93613951 TT |
7680 | if test -z "$LD"; then |
7681 | acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
7682 | for ac_dir in $PATH; do | |
7683 | IFS="$acl_save_ifs" | |
7684 | test -z "$ac_dir" && ac_dir=. | |
7685 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
7686 | acl_cv_path_LD="$ac_dir/$ac_prog" | |
7687 | # Check to see if the program is GNU ld. I'd rather use --version, | |
7688 | # but apparently some variants of GNU ld only accept -v. | |
7689 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
7690 | case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in | |
7691 | *GNU* | *'with BFD'*) | |
7692 | test "$with_gnu_ld" != no && break | |
7693 | ;; | |
7694 | *) | |
7695 | test "$with_gnu_ld" != yes && break | |
7696 | ;; | |
7697 | esac | |
7698 | fi | |
7699 | done | |
7700 | IFS="$acl_save_ifs" | |
7701 | else | |
7702 | acl_cv_path_LD="$LD" # Let the user override the test with a path. | |
7703 | fi | |
7704 | fi | |
b0cacab0 | 7705 | |
93613951 TT |
7706 | LD="$acl_cv_path_LD" |
7707 | if test -n "$LD"; then | |
7708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
7709 | $as_echo "$LD" >&6; } | |
7710 | else | |
7711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7712 | $as_echo "no" >&6; } | |
7713 | fi | |
7714 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 | |
7715 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
7716 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
7717 | if ${acl_cv_prog_gnu_ld+:} false; then : | |
7718 | $as_echo_n "(cached) " >&6 | |
7719 | else | |
7720 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
7721 | case `$LD -v 2>&1 </dev/null` in | |
7722 | *GNU* | *'with BFD'*) | |
7723 | acl_cv_prog_gnu_ld=yes | |
7724 | ;; | |
7725 | *) | |
7726 | acl_cv_prog_gnu_ld=no | |
7727 | ;; | |
7728 | esac | |
7729 | fi | |
7730 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 | |
7731 | $as_echo "$acl_cv_prog_gnu_ld" >&6; } | |
7732 | with_gnu_ld=$acl_cv_prog_gnu_ld | |
b0cacab0 | 7733 | |
b0cacab0 | 7734 | |
b0cacab0 | 7735 | |
b0cacab0 | 7736 | |
93613951 TT |
7737 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 |
7738 | $as_echo_n "checking for shared library run path origin... " >&6; } | |
7739 | if ${acl_cv_rpath+:} false; then : | |
7740 | $as_echo_n "(cached) " >&6 | |
7741 | else | |
61ef2474 | 7742 | |
93613951 TT |
7743 | CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ |
7744 | ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh | |
7745 | . ./conftest.sh | |
7746 | rm -f ./conftest.sh | |
7747 | acl_cv_rpath=done | |
b0cacab0 | 7748 | |
b0cacab0 | 7749 | fi |
93613951 TT |
7750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 |
7751 | $as_echo "$acl_cv_rpath" >&6; } | |
7752 | wl="$acl_cv_wl" | |
7753 | acl_libext="$acl_cv_libext" | |
7754 | acl_shlibext="$acl_cv_shlibext" | |
7755 | acl_libname_spec="$acl_cv_libname_spec" | |
7756 | acl_library_names_spec="$acl_cv_library_names_spec" | |
7757 | acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" | |
7758 | acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" | |
7759 | acl_hardcode_direct="$acl_cv_hardcode_direct" | |
7760 | acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" | |
7761 | # Check whether --enable-rpath was given. | |
7762 | if test "${enable_rpath+set}" = set; then : | |
7763 | enableval=$enable_rpath; : | |
7764 | else | |
7765 | enable_rpath=yes | |
b0cacab0 | 7766 | fi |
b0cacab0 | 7767 | |
b0cacab0 | 7768 | |
b0cacab0 TT |
7769 | |
7770 | ||
93613951 TT |
7771 | acl_libdirstem=lib |
7772 | acl_libdirstem2= | |
7773 | case "$host_os" in | |
7774 | solaris*) | |
7775 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5 | |
7776 | $as_echo_n "checking for 64-bit host... " >&6; } | |
7777 | if ${gl_cv_solaris_64bit+:} false; then : | |
39fd3d4f | 7778 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 7779 | else |
57aa50d4 | 7780 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b0cacab0 TT |
7781 | /* end confdefs.h. */ |
7782 | ||
93613951 TT |
7783 | #ifdef _LP64 |
7784 | sixtyfour bits | |
b0cacab0 TT |
7785 | #endif |
7786 | ||
7787 | _ACEOF | |
7788 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
93613951 TT |
7789 | $EGREP "sixtyfour bits" >/dev/null 2>&1; then : |
7790 | gl_cv_solaris_64bit=yes | |
b0cacab0 | 7791 | else |
93613951 | 7792 | gl_cv_solaris_64bit=no |
b0cacab0 TT |
7793 | fi |
7794 | rm -f conftest* | |
7795 | ||
7796 | ||
b0cacab0 | 7797 | fi |
93613951 TT |
7798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5 |
7799 | $as_echo "$gl_cv_solaris_64bit" >&6; } | |
7800 | if test $gl_cv_solaris_64bit = yes; then | |
7801 | acl_libdirstem=lib/64 | |
7802 | case "$host_cpu" in | |
7803 | sparc*) acl_libdirstem2=lib/sparcv9 ;; | |
7804 | i*86 | x86_64) acl_libdirstem2=lib/amd64 ;; | |
7805 | esac | |
7806 | fi | |
7807 | ;; | |
7808 | *) | |
7809 | searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` | |
7810 | if test -n "$searchpath"; then | |
7811 | acl_save_IFS="${IFS= }"; IFS=":" | |
7812 | for searchdir in $searchpath; do | |
7813 | if test -d "$searchdir"; then | |
7814 | case "$searchdir" in | |
7815 | */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; | |
7816 | */../ | */.. ) | |
7817 | # Better ignore directories of this form. They are misleading. | |
7818 | ;; | |
7819 | *) searchdir=`cd "$searchdir" && pwd` | |
7820 | case "$searchdir" in | |
7821 | */lib64 ) acl_libdirstem=lib64 ;; | |
7822 | esac ;; | |
7823 | esac | |
7824 | fi | |
7825 | done | |
7826 | IFS="$acl_save_IFS" | |
7827 | fi | |
7828 | ;; | |
7829 | esac | |
7830 | test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem" | |
b0cacab0 TT |
7831 | |
7832 | ||
7833 | ||
93613951 TT |
7834 | gl_threads_api=none |
7835 | LIBTHREAD= | |
7836 | LTLIBTHREAD= | |
7837 | LIBMULTITHREAD= | |
7838 | LTLIBMULTITHREAD= | |
7839 | if test "$gl_use_threads" != no; then | |
7840 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5 | |
7841 | $as_echo_n "checking whether imported symbols can be declared weak... " >&6; } | |
7842 | if ${gl_cv_have_weak+:} false; then : | |
39fd3d4f | 7843 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 7844 | else |
93613951 TT |
7845 | gl_cv_have_weak=no |
7846 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b0cacab0 | 7847 | /* end confdefs.h. */ |
93613951 TT |
7848 | extern void xyzzy (); |
7849 | #pragma weak xyzzy | |
7850 | int | |
7851 | main () | |
b0cacab0 | 7852 | { |
93613951 TT |
7853 | xyzzy(); |
7854 | ; | |
7855 | return 0; | |
b0cacab0 | 7856 | } |
93613951 TT |
7857 | _ACEOF |
7858 | if ac_fn_c_try_link "$LINENO"; then : | |
7859 | gl_cv_have_weak=maybe | |
7860 | fi | |
7861 | rm -f core conftest.err conftest.$ac_objext \ | |
7862 | conftest$ac_exeext conftest.$ac_ext | |
7863 | if test $gl_cv_have_weak = maybe; then | |
7864 | if test "$cross_compiling" = yes; then : | |
7865 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7866 | /* end confdefs.h. */ | |
7867 | #ifdef __ELF__ | |
7868 | Extensible Linking Format | |
7869 | #endif | |
b0cacab0 | 7870 | |
93613951 TT |
7871 | _ACEOF |
7872 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7873 | $EGREP "Extensible Linking Format" >/dev/null 2>&1; then : | |
7874 | gl_cv_have_weak="guessing yes" | |
7875 | else | |
7876 | gl_cv_have_weak="guessing no" | |
7877 | fi | |
7878 | rm -f conftest* | |
b0cacab0 | 7879 | |
b0cacab0 TT |
7880 | |
7881 | else | |
57aa50d4 | 7882 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b0cacab0 | 7883 | /* end confdefs.h. */ |
b0cacab0 | 7884 | |
93613951 TT |
7885 | #include <stdio.h> |
7886 | #pragma weak fputs | |
b0cacab0 | 7887 | int main () |
a04eba3f | 7888 | { |
93613951 | 7889 | return (fputs == NULL); |
a04eba3f | 7890 | } |
b0cacab0 | 7891 | _ACEOF |
57aa50d4 | 7892 | if ac_fn_c_try_run "$LINENO"; then : |
93613951 | 7893 | gl_cv_have_weak=yes |
a64c9c13 | 7894 | else |
93613951 | 7895 | gl_cv_have_weak=no |
b0cacab0 | 7896 | fi |
57aa50d4 TT |
7897 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
7898 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
b0cacab0 TT |
7899 | fi |
7900 | ||
93613951 | 7901 | fi |
e1052144 | 7902 | |
b0cacab0 | 7903 | fi |
93613951 TT |
7904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5 |
7905 | $as_echo "$gl_cv_have_weak" >&6; } | |
7906 | if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then | |
7907 | # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that | |
7908 | # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY. | |
7909 | ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" | |
7910 | if test "x$ac_cv_header_pthread_h" = xyes; then : | |
7911 | gl_have_pthread_h=yes | |
7912 | else | |
7913 | gl_have_pthread_h=no | |
7914 | fi | |
b0cacab0 TT |
7915 | |
7916 | ||
93613951 TT |
7917 | if test "$gl_have_pthread_h" = yes; then |
7918 | # Other possible tests: | |
7919 | # -lpthreads (FSU threads, PCthreads) | |
7920 | # -lgthreads | |
7921 | gl_have_pthread= | |
7922 | # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist | |
7923 | # in libc. IRIX 6.5 has the first one in both libc and libpthread, but | |
7924 | # the second one only in libpthread, and lock.c needs it. | |
7925 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b0cacab0 | 7926 | /* end confdefs.h. */ |
93613951 | 7927 | #include <pthread.h> |
b0cacab0 TT |
7928 | int |
7929 | main () | |
7930 | { | |
93613951 TT |
7931 | pthread_mutex_lock((pthread_mutex_t*)0); |
7932 | pthread_mutexattr_init((pthread_mutexattr_t*)0); | |
b0cacab0 TT |
7933 | ; |
7934 | return 0; | |
7935 | } | |
7936 | _ACEOF | |
57aa50d4 | 7937 | if ac_fn_c_try_link "$LINENO"; then : |
93613951 | 7938 | gl_have_pthread=yes |
b0cacab0 | 7939 | fi |
57aa50d4 TT |
7940 | rm -f core conftest.err conftest.$ac_objext \ |
7941 | conftest$ac_exeext conftest.$ac_ext | |
93613951 TT |
7942 | # Test for libpthread by looking for pthread_kill. (Not pthread_self, |
7943 | # since it is defined as a macro on OSF/1.) | |
7944 | if test -n "$gl_have_pthread"; then | |
7945 | # The program links fine without libpthread. But it may actually | |
7946 | # need to link with libpthread in order to create multiple threads. | |
7947 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5 | |
7948 | $as_echo_n "checking for pthread_kill in -lpthread... " >&6; } | |
7949 | if ${ac_cv_lib_pthread_pthread_kill+:} false; then : | |
39fd3d4f | 7950 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 7951 | else |
93613951 TT |
7952 | ac_check_lib_save_LIBS=$LIBS |
7953 | LIBS="-lpthread $LIBS" | |
7954 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b0cacab0 | 7955 | /* end confdefs.h. */ |
93613951 TT |
7956 | |
7957 | /* Override any GCC internal prototype to avoid an error. | |
7958 | Use char because int might match the return type of a GCC | |
7959 | builtin and then its argument prototype would still apply. */ | |
7960 | #ifdef __cplusplus | |
7961 | extern "C" | |
7962 | #endif | |
7963 | char pthread_kill (); | |
b0cacab0 TT |
7964 | int |
7965 | main () | |
7966 | { | |
93613951 | 7967 | return pthread_kill (); |
b0cacab0 TT |
7968 | ; |
7969 | return 0; | |
7970 | } | |
7971 | _ACEOF | |
93613951 TT |
7972 | if ac_fn_c_try_link "$LINENO"; then : |
7973 | ac_cv_lib_pthread_pthread_kill=yes | |
b0cacab0 | 7974 | else |
93613951 | 7975 | ac_cv_lib_pthread_pthread_kill=no |
b0cacab0 | 7976 | fi |
93613951 TT |
7977 | rm -f core conftest.err conftest.$ac_objext \ |
7978 | conftest$ac_exeext conftest.$ac_ext | |
7979 | LIBS=$ac_check_lib_save_LIBS | |
b0cacab0 | 7980 | fi |
93613951 TT |
7981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5 |
7982 | $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; } | |
7983 | if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then : | |
7984 | LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread | |
7985 | # On Solaris and HP-UX, most pthread functions exist also in libc. | |
7986 | # Therefore pthread_in_use() needs to actually try to create a | |
7987 | # thread: pthread_create from libc will fail, whereas | |
7988 | # pthread_create will actually create a thread. | |
7989 | case "$host_os" in | |
7990 | solaris* | hpux*) | |
b0cacab0 | 7991 | |
93613951 | 7992 | $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h |
b0cacab0 | 7993 | |
93613951 | 7994 | esac |
b0cacab0 | 7995 | |
93613951 | 7996 | fi |
b0cacab0 | 7997 | |
93613951 TT |
7998 | else |
7999 | # Some library is needed. Try libpthread and libc_r. | |
8000 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5 | |
8001 | $as_echo_n "checking for pthread_kill in -lpthread... " >&6; } | |
8002 | if ${ac_cv_lib_pthread_pthread_kill+:} false; then : | |
39fd3d4f | 8003 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 8004 | else |
93613951 TT |
8005 | ac_check_lib_save_LIBS=$LIBS |
8006 | LIBS="-lpthread $LIBS" | |
8007 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b0cacab0 | 8008 | /* end confdefs.h. */ |
b0cacab0 | 8009 | |
93613951 TT |
8010 | /* Override any GCC internal prototype to avoid an error. |
8011 | Use char because int might match the return type of a GCC | |
8012 | builtin and then its argument prototype would still apply. */ | |
8013 | #ifdef __cplusplus | |
8014 | extern "C" | |
8015 | #endif | |
8016 | char pthread_kill (); | |
b0cacab0 TT |
8017 | int |
8018 | main () | |
8019 | { | |
93613951 | 8020 | return pthread_kill (); |
b0cacab0 TT |
8021 | ; |
8022 | return 0; | |
8023 | } | |
8024 | _ACEOF | |
93613951 TT |
8025 | if ac_fn_c_try_link "$LINENO"; then : |
8026 | ac_cv_lib_pthread_pthread_kill=yes | |
b0cacab0 | 8027 | else |
93613951 | 8028 | ac_cv_lib_pthread_pthread_kill=no |
b0cacab0 | 8029 | fi |
93613951 TT |
8030 | rm -f core conftest.err conftest.$ac_objext \ |
8031 | conftest$ac_exeext conftest.$ac_ext | |
8032 | LIBS=$ac_check_lib_save_LIBS | |
b0cacab0 | 8033 | fi |
93613951 TT |
8034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5 |
8035 | $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; } | |
8036 | if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then : | |
8037 | gl_have_pthread=yes | |
8038 | LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread | |
8039 | LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread | |
b0cacab0 TT |
8040 | fi |
8041 | ||
93613951 TT |
8042 | if test -z "$gl_have_pthread"; then |
8043 | # For FreeBSD 4. | |
8044 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5 | |
8045 | $as_echo_n "checking for pthread_kill in -lc_r... " >&6; } | |
8046 | if ${ac_cv_lib_c_r_pthread_kill+:} false; then : | |
8047 | $as_echo_n "(cached) " >&6 | |
8048 | else | |
8049 | ac_check_lib_save_LIBS=$LIBS | |
8050 | LIBS="-lc_r $LIBS" | |
8051 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b0cacab0 TT |
8052 | /* end confdefs.h. */ |
8053 | ||
93613951 TT |
8054 | /* Override any GCC internal prototype to avoid an error. |
8055 | Use char because int might match the return type of a GCC | |
8056 | builtin and then its argument prototype would still apply. */ | |
8057 | #ifdef __cplusplus | |
8058 | extern "C" | |
b0cacab0 | 8059 | #endif |
93613951 TT |
8060 | char pthread_kill (); |
8061 | int | |
8062 | main () | |
8063 | { | |
8064 | return pthread_kill (); | |
8065 | ; | |
8066 | return 0; | |
8067 | } | |
b0cacab0 | 8068 | _ACEOF |
93613951 TT |
8069 | if ac_fn_c_try_link "$LINENO"; then : |
8070 | ac_cv_lib_c_r_pthread_kill=yes | |
b0cacab0 | 8071 | else |
93613951 | 8072 | ac_cv_lib_c_r_pthread_kill=no |
57aa50d4 | 8073 | fi |
93613951 TT |
8074 | rm -f core conftest.err conftest.$ac_objext \ |
8075 | conftest$ac_exeext conftest.$ac_ext | |
8076 | LIBS=$ac_check_lib_save_LIBS | |
8077 | fi | |
8078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5 | |
8079 | $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; } | |
8080 | if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then : | |
8081 | gl_have_pthread=yes | |
8082 | LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r | |
8083 | LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r | |
b0cacab0 | 8084 | fi |
e1052144 | 8085 | |
93613951 TT |
8086 | fi |
8087 | fi | |
8088 | if test -n "$gl_have_pthread"; then | |
8089 | gl_threads_api=posix | |
57aa50d4 | 8090 | |
93613951 | 8091 | $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h |
57aa50d4 | 8092 | |
93613951 TT |
8093 | if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then |
8094 | if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then | |
b0cacab0 | 8095 | |
93613951 | 8096 | $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h |
b0cacab0 | 8097 | |
93613951 TT |
8098 | LIBTHREAD= |
8099 | LTLIBTHREAD= | |
8100 | fi | |
8101 | fi | |
8102 | fi | |
8103 | fi | |
8104 | fi | |
8105 | if test -z "$gl_have_pthread"; then | |
8106 | if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then | |
8107 | gl_have_solaristhread= | |
8108 | gl_save_LIBS="$LIBS" | |
8109 | LIBS="$LIBS -lthread" | |
8110 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b0cacab0 | 8111 | /* end confdefs.h. */ |
93613951 TT |
8112 | |
8113 | #include <thread.h> | |
8114 | #include <synch.h> | |
57aa50d4 | 8115 | |
b0cacab0 TT |
8116 | int |
8117 | main () | |
8118 | { | |
93613951 | 8119 | thr_self(); |
b0cacab0 TT |
8120 | ; |
8121 | return 0; | |
8122 | } | |
8123 | _ACEOF | |
93613951 TT |
8124 | if ac_fn_c_try_link "$LINENO"; then : |
8125 | gl_have_solaristhread=yes | |
b0cacab0 | 8126 | fi |
93613951 TT |
8127 | rm -f core conftest.err conftest.$ac_objext \ |
8128 | conftest$ac_exeext conftest.$ac_ext | |
8129 | LIBS="$gl_save_LIBS" | |
8130 | if test -n "$gl_have_solaristhread"; then | |
8131 | gl_threads_api=solaris | |
8132 | LIBTHREAD=-lthread | |
8133 | LTLIBTHREAD=-lthread | |
8134 | LIBMULTITHREAD="$LIBTHREAD" | |
8135 | LTLIBMULTITHREAD="$LTLIBTHREAD" | |
8136 | ||
8137 | $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h | |
8138 | ||
8139 | if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then | |
8140 | ||
8141 | $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h | |
8142 | ||
8143 | LIBTHREAD= | |
8144 | LTLIBTHREAD= | |
8145 | fi | |
8146 | fi | |
57aa50d4 | 8147 | fi |
57aa50d4 | 8148 | fi |
93613951 TT |
8149 | if test "$gl_use_threads" = pth; then |
8150 | gl_save_CPPFLAGS="$CPPFLAGS" | |
b0cacab0 | 8151 | |
e1052144 | 8152 | |
e1052144 | 8153 | |
b0cacab0 | 8154 | |
57aa50d4 | 8155 | |
93613951 TT |
8156 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5 |
8157 | $as_echo_n "checking how to link with libpth... " >&6; } | |
8158 | if ${ac_cv_libpth_libs+:} false; then : | |
8159 | $as_echo_n "(cached) " >&6 | |
8160 | else | |
e1052144 | 8161 | |
b0cacab0 | 8162 | |
b0cacab0 | 8163 | |
29a5deed | 8164 | |
b0cacab0 | 8165 | |
b0cacab0 | 8166 | |
b0cacab0 | 8167 | |
e1052144 | 8168 | |
57aa50d4 | 8169 | use_additional=yes |
b0cacab0 | 8170 | |
57aa50d4 TT |
8171 | acl_save_prefix="$prefix" |
8172 | prefix="$acl_final_prefix" | |
8173 | acl_save_exec_prefix="$exec_prefix" | |
8174 | exec_prefix="$acl_final_exec_prefix" | |
b0cacab0 | 8175 | |
57aa50d4 TT |
8176 | eval additional_includedir=\"$includedir\" |
8177 | eval additional_libdir=\"$libdir\" | |
b0cacab0 | 8178 | |
57aa50d4 TT |
8179 | exec_prefix="$acl_save_exec_prefix" |
8180 | prefix="$acl_save_prefix" | |
b0cacab0 | 8181 | |
e1052144 | 8182 | |
93613951 TT |
8183 | # Check whether --with-libpth-prefix was given. |
8184 | if test "${with_libpth_prefix+set}" = set; then : | |
8185 | withval=$with_libpth_prefix; | |
57aa50d4 TT |
8186 | if test "X$withval" = "Xno"; then |
8187 | use_additional=no | |
8188 | else | |
8189 | if test "X$withval" = "X"; then | |
b0cacab0 | 8190 | |
57aa50d4 TT |
8191 | acl_save_prefix="$prefix" |
8192 | prefix="$acl_final_prefix" | |
8193 | acl_save_exec_prefix="$exec_prefix" | |
8194 | exec_prefix="$acl_final_exec_prefix" | |
e1052144 | 8195 | |
57aa50d4 TT |
8196 | eval additional_includedir=\"$includedir\" |
8197 | eval additional_libdir=\"$libdir\" | |
e1052144 | 8198 | |
57aa50d4 TT |
8199 | exec_prefix="$acl_save_exec_prefix" |
8200 | prefix="$acl_save_prefix" | |
b0cacab0 | 8201 | |
57aa50d4 TT |
8202 | else |
8203 | additional_includedir="$withval/include" | |
93613951 TT |
8204 | additional_libdir="$withval/$acl_libdirstem" |
8205 | if test "$acl_libdirstem2" != "$acl_libdirstem" \ | |
8206 | && ! test -d "$withval/$acl_libdirstem"; then | |
8207 | additional_libdir="$withval/$acl_libdirstem2" | |
8208 | fi | |
57aa50d4 TT |
8209 | fi |
8210 | fi | |
b0cacab0 | 8211 | |
b0cacab0 | 8212 | fi |
e1052144 | 8213 | |
93613951 TT |
8214 | LIBPTH= |
8215 | LTLIBPTH= | |
8216 | INCPTH= | |
8217 | LIBPTH_PREFIX= | |
8218 | HAVE_LIBPTH= | |
a04eba3f TT |
8219 | rpathdirs= |
8220 | ltrpathdirs= | |
8221 | names_already_handled= | |
93613951 | 8222 | names_next_round='pth ' |
a04eba3f TT |
8223 | while test -n "$names_next_round"; do |
8224 | names_this_round="$names_next_round" | |
8225 | names_next_round= | |
8226 | for name in $names_this_round; do | |
8227 | already_handled= | |
8228 | for n in $names_already_handled; do | |
8229 | if test "$n" = "$name"; then | |
8230 | already_handled=yes | |
8231 | break | |
8232 | fi | |
8233 | done | |
8234 | if test -z "$already_handled"; then | |
8235 | names_already_handled="$names_already_handled $name" | |
93613951 | 8236 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` |
a04eba3f TT |
8237 | eval value=\"\$HAVE_LIB$uppername\" |
8238 | if test -n "$value"; then | |
8239 | if test "$value" = yes; then | |
8240 | eval value=\"\$LIB$uppername\" | |
93613951 | 8241 | test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value" |
a04eba3f | 8242 | eval value=\"\$LTLIB$uppername\" |
93613951 | 8243 | test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value" |
a04eba3f TT |
8244 | else |
8245 | : | |
8246 | fi | |
8247 | else | |
8248 | found_dir= | |
8249 | found_la= | |
8250 | found_so= | |
8251 | found_a= | |
93613951 TT |
8252 | eval libname=\"$acl_libname_spec\" # typically: libname=lib$name |
8253 | if test -n "$acl_shlibext"; then | |
8254 | shrext=".$acl_shlibext" # typically: shrext=.so | |
8255 | else | |
8256 | shrext= | |
8257 | fi | |
a04eba3f | 8258 | if test $use_additional = yes; then |
93613951 TT |
8259 | dir="$additional_libdir" |
8260 | if test -n "$acl_shlibext"; then | |
8261 | if test -f "$dir/$libname$shrext"; then | |
8262 | found_dir="$dir" | |
8263 | found_so="$dir/$libname$shrext" | |
8264 | else | |
8265 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then | |
8266 | ver=`(cd "$dir" && \ | |
8267 | for f in "$libname$shrext".*; do echo "$f"; done \ | |
8268 | | sed -e "s,^$libname$shrext\\\\.,," \ | |
8269 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | |
8270 | | sed 1q ) 2>/dev/null` | |
8271 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then | |
8272 | found_dir="$dir" | |
8273 | found_so="$dir/$libname$shrext.$ver" | |
8274 | fi | |
8275 | else | |
8276 | eval library_names=\"$acl_library_names_spec\" | |
8277 | for f in $library_names; do | |
8278 | if test -f "$dir/$f"; then | |
8279 | found_dir="$dir" | |
8280 | found_so="$dir/$f" | |
8281 | break | |
8282 | fi | |
8283 | done | |
a04eba3f TT |
8284 | fi |
8285 | fi | |
93613951 TT |
8286 | fi |
8287 | if test "X$found_dir" = "X"; then | |
8288 | if test -f "$dir/$libname.$acl_libext"; then | |
8289 | found_dir="$dir" | |
8290 | found_a="$dir/$libname.$acl_libext" | |
8291 | fi | |
8292 | fi | |
8293 | if test "X$found_dir" != "X"; then | |
8294 | if test -f "$dir/$libname.la"; then | |
8295 | found_la="$dir/$libname.la" | |
8296 | fi | |
a04eba3f TT |
8297 | fi |
8298 | fi | |
8299 | if test "X$found_dir" = "X"; then | |
93613951 | 8300 | for x in $LDFLAGS $LTLIBPTH; do |
b0cacab0 | 8301 | |
a04eba3f TT |
8302 | acl_save_prefix="$prefix" |
8303 | prefix="$acl_final_prefix" | |
8304 | acl_save_exec_prefix="$exec_prefix" | |
8305 | exec_prefix="$acl_final_exec_prefix" | |
8306 | eval x=\"$x\" | |
8307 | exec_prefix="$acl_save_exec_prefix" | |
8308 | prefix="$acl_save_prefix" | |
8309 | ||
8310 | case "$x" in | |
8311 | -L*) | |
8312 | dir=`echo "X$x" | sed -e 's/^X-L//'` | |
93613951 TT |
8313 | if test -n "$acl_shlibext"; then |
8314 | if test -f "$dir/$libname$shrext"; then | |
a04eba3f | 8315 | found_dir="$dir" |
93613951 TT |
8316 | found_so="$dir/$libname$shrext" |
8317 | else | |
8318 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then | |
8319 | ver=`(cd "$dir" && \ | |
8320 | for f in "$libname$shrext".*; do echo "$f"; done \ | |
8321 | | sed -e "s,^$libname$shrext\\\\.,," \ | |
8322 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | |
8323 | | sed 1q ) 2>/dev/null` | |
8324 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then | |
8325 | found_dir="$dir" | |
8326 | found_so="$dir/$libname$shrext.$ver" | |
8327 | fi | |
8328 | else | |
8329 | eval library_names=\"$acl_library_names_spec\" | |
8330 | for f in $library_names; do | |
8331 | if test -f "$dir/$f"; then | |
8332 | found_dir="$dir" | |
8333 | found_so="$dir/$f" | |
8334 | break | |
8335 | fi | |
8336 | done | |
a04eba3f TT |
8337 | fi |
8338 | fi | |
93613951 TT |
8339 | fi |
8340 | if test "X$found_dir" = "X"; then | |
8341 | if test -f "$dir/$libname.$acl_libext"; then | |
8342 | found_dir="$dir" | |
8343 | found_a="$dir/$libname.$acl_libext" | |
8344 | fi | |
8345 | fi | |
8346 | if test "X$found_dir" != "X"; then | |
8347 | if test -f "$dir/$libname.la"; then | |
8348 | found_la="$dir/$libname.la" | |
8349 | fi | |
a04eba3f TT |
8350 | fi |
8351 | ;; | |
8352 | esac | |
8353 | if test "X$found_dir" != "X"; then | |
8354 | break | |
8355 | fi | |
8356 | done | |
8357 | fi | |
8358 | if test "X$found_dir" != "X"; then | |
93613951 | 8359 | LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name" |
a04eba3f | 8360 | if test "X$found_so" != "X"; then |
93613951 TT |
8361 | if test "$enable_rpath" = no \ |
8362 | || test "X$found_dir" = "X/usr/$acl_libdirstem" \ | |
8363 | || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then | |
8364 | LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so" | |
a04eba3f TT |
8365 | else |
8366 | haveit= | |
8367 | for x in $ltrpathdirs; do | |
8368 | if test "X$x" = "X$found_dir"; then | |
8369 | haveit=yes | |
8370 | break | |
8371 | fi | |
8372 | done | |
8373 | if test -z "$haveit"; then | |
8374 | ltrpathdirs="$ltrpathdirs $found_dir" | |
8375 | fi | |
93613951 TT |
8376 | if test "$acl_hardcode_direct" = yes; then |
8377 | LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so" | |
a04eba3f | 8378 | else |
93613951 TT |
8379 | if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then |
8380 | LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so" | |
a04eba3f TT |
8381 | haveit= |
8382 | for x in $rpathdirs; do | |
8383 | if test "X$x" = "X$found_dir"; then | |
8384 | haveit=yes | |
8385 | break | |
8386 | fi | |
8387 | done | |
8388 | if test -z "$haveit"; then | |
8389 | rpathdirs="$rpathdirs $found_dir" | |
8390 | fi | |
8391 | else | |
8392 | haveit= | |
93613951 | 8393 | for x in $LDFLAGS $LIBPTH; do |
b0cacab0 | 8394 | |
a04eba3f TT |
8395 | acl_save_prefix="$prefix" |
8396 | prefix="$acl_final_prefix" | |
8397 | acl_save_exec_prefix="$exec_prefix" | |
8398 | exec_prefix="$acl_final_exec_prefix" | |
8399 | eval x=\"$x\" | |
8400 | exec_prefix="$acl_save_exec_prefix" | |
8401 | prefix="$acl_save_prefix" | |
8402 | ||
8403 | if test "X$x" = "X-L$found_dir"; then | |
8404 | haveit=yes | |
8405 | break | |
8406 | fi | |
8407 | done | |
8408 | if test -z "$haveit"; then | |
93613951 | 8409 | LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir" |
a04eba3f | 8410 | fi |
93613951 TT |
8411 | if test "$acl_hardcode_minus_L" != no; then |
8412 | LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so" | |
a04eba3f | 8413 | else |
93613951 | 8414 | LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name" |
a04eba3f TT |
8415 | fi |
8416 | fi | |
8417 | fi | |
8418 | fi | |
8419 | else | |
8420 | if test "X$found_a" != "X"; then | |
93613951 | 8421 | LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a" |
a04eba3f | 8422 | else |
93613951 | 8423 | LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name" |
a04eba3f TT |
8424 | fi |
8425 | fi | |
8426 | additional_includedir= | |
8427 | case "$found_dir" in | |
93613951 TT |
8428 | */$acl_libdirstem | */$acl_libdirstem/) |
8429 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` | |
8430 | if test "$name" = 'pth'; then | |
8431 | LIBPTH_PREFIX="$basedir" | |
8432 | fi | |
8433 | additional_includedir="$basedir/include" | |
8434 | ;; | |
8435 | */$acl_libdirstem2 | */$acl_libdirstem2/) | |
8436 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` | |
8437 | if test "$name" = 'pth'; then | |
8438 | LIBPTH_PREFIX="$basedir" | |
8439 | fi | |
a04eba3f TT |
8440 | additional_includedir="$basedir/include" |
8441 | ;; | |
8442 | esac | |
8443 | if test "X$additional_includedir" != "X"; then | |
8444 | if test "X$additional_includedir" != "X/usr/include"; then | |
8445 | haveit= | |
8446 | if test "X$additional_includedir" = "X/usr/local/include"; then | |
8447 | if test -n "$GCC"; then | |
8448 | case $host_os in | |
93613951 | 8449 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; |
a04eba3f TT |
8450 | esac |
8451 | fi | |
8452 | fi | |
8453 | if test -z "$haveit"; then | |
93613951 | 8454 | for x in $CPPFLAGS $INCPTH; do |
b0cacab0 | 8455 | |
a04eba3f TT |
8456 | acl_save_prefix="$prefix" |
8457 | prefix="$acl_final_prefix" | |
8458 | acl_save_exec_prefix="$exec_prefix" | |
8459 | exec_prefix="$acl_final_exec_prefix" | |
8460 | eval x=\"$x\" | |
8461 | exec_prefix="$acl_save_exec_prefix" | |
8462 | prefix="$acl_save_prefix" | |
8463 | ||
8464 | if test "X$x" = "X-I$additional_includedir"; then | |
8465 | haveit=yes | |
8466 | break | |
8467 | fi | |
8468 | done | |
8469 | if test -z "$haveit"; then | |
8470 | if test -d "$additional_includedir"; then | |
93613951 | 8471 | INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir" |
a04eba3f TT |
8472 | fi |
8473 | fi | |
8474 | fi | |
8475 | fi | |
8476 | fi | |
8477 | if test -n "$found_la"; then | |
8478 | save_libdir="$libdir" | |
8479 | case "$found_la" in | |
8480 | */* | *\\*) . "$found_la" ;; | |
8481 | *) . "./$found_la" ;; | |
8482 | esac | |
8483 | libdir="$save_libdir" | |
8484 | for dep in $dependency_libs; do | |
8485 | case "$dep" in | |
8486 | -L*) | |
8487 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` | |
93613951 TT |
8488 | if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ |
8489 | && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then | |
a04eba3f | 8490 | haveit= |
93613951 TT |
8491 | if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ |
8492 | || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then | |
a04eba3f TT |
8493 | if test -n "$GCC"; then |
8494 | case $host_os in | |
93613951 | 8495 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; |
a04eba3f TT |
8496 | esac |
8497 | fi | |
8498 | fi | |
8499 | if test -z "$haveit"; then | |
8500 | haveit= | |
93613951 | 8501 | for x in $LDFLAGS $LIBPTH; do |
b0cacab0 | 8502 | |
a04eba3f TT |
8503 | acl_save_prefix="$prefix" |
8504 | prefix="$acl_final_prefix" | |
8505 | acl_save_exec_prefix="$exec_prefix" | |
8506 | exec_prefix="$acl_final_exec_prefix" | |
8507 | eval x=\"$x\" | |
8508 | exec_prefix="$acl_save_exec_prefix" | |
8509 | prefix="$acl_save_prefix" | |
8510 | ||
8511 | if test "X$x" = "X-L$additional_libdir"; then | |
8512 | haveit=yes | |
8513 | break | |
8514 | fi | |
8515 | done | |
8516 | if test -z "$haveit"; then | |
8517 | if test -d "$additional_libdir"; then | |
93613951 | 8518 | LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir" |
a04eba3f TT |
8519 | fi |
8520 | fi | |
8521 | haveit= | |
93613951 | 8522 | for x in $LDFLAGS $LTLIBPTH; do |
b0cacab0 | 8523 | |
a04eba3f TT |
8524 | acl_save_prefix="$prefix" |
8525 | prefix="$acl_final_prefix" | |
8526 | acl_save_exec_prefix="$exec_prefix" | |
8527 | exec_prefix="$acl_final_exec_prefix" | |
8528 | eval x=\"$x\" | |
8529 | exec_prefix="$acl_save_exec_prefix" | |
8530 | prefix="$acl_save_prefix" | |
8531 | ||
8532 | if test "X$x" = "X-L$additional_libdir"; then | |
8533 | haveit=yes | |
8534 | break | |
8535 | fi | |
8536 | done | |
8537 | if test -z "$haveit"; then | |
8538 | if test -d "$additional_libdir"; then | |
93613951 | 8539 | LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir" |
a04eba3f TT |
8540 | fi |
8541 | fi | |
8542 | fi | |
8543 | fi | |
8544 | ;; | |
8545 | -R*) | |
8546 | dir=`echo "X$dep" | sed -e 's/^X-R//'` | |
8547 | if test "$enable_rpath" != no; then | |
8548 | haveit= | |
8549 | for x in $rpathdirs; do | |
8550 | if test "X$x" = "X$dir"; then | |
8551 | haveit=yes | |
8552 | break | |
8553 | fi | |
8554 | done | |
8555 | if test -z "$haveit"; then | |
8556 | rpathdirs="$rpathdirs $dir" | |
8557 | fi | |
8558 | haveit= | |
8559 | for x in $ltrpathdirs; do | |
8560 | if test "X$x" = "X$dir"; then | |
8561 | haveit=yes | |
8562 | break | |
8563 | fi | |
8564 | done | |
8565 | if test -z "$haveit"; then | |
8566 | ltrpathdirs="$ltrpathdirs $dir" | |
8567 | fi | |
8568 | fi | |
8569 | ;; | |
8570 | -l*) | |
8571 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` | |
8572 | ;; | |
8573 | *.la) | |
8574 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` | |
8575 | ;; | |
8576 | *) | |
93613951 TT |
8577 | LIBPTH="${LIBPTH}${LIBPTH:+ }$dep" |
8578 | LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep" | |
a04eba3f TT |
8579 | ;; |
8580 | esac | |
8581 | done | |
8582 | fi | |
8583 | else | |
93613951 TT |
8584 | LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name" |
8585 | LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name" | |
a04eba3f TT |
8586 | fi |
8587 | fi | |
8588 | fi | |
8589 | done | |
8590 | done | |
8591 | if test "X$rpathdirs" != "X"; then | |
93613951 | 8592 | if test -n "$acl_hardcode_libdir_separator"; then |
a04eba3f TT |
8593 | alldirs= |
8594 | for found_dir in $rpathdirs; do | |
93613951 | 8595 | alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" |
a04eba3f TT |
8596 | done |
8597 | acl_save_libdir="$libdir" | |
8598 | libdir="$alldirs" | |
93613951 | 8599 | eval flag=\"$acl_hardcode_libdir_flag_spec\" |
a04eba3f | 8600 | libdir="$acl_save_libdir" |
93613951 | 8601 | LIBPTH="${LIBPTH}${LIBPTH:+ }$flag" |
a04eba3f TT |
8602 | else |
8603 | for found_dir in $rpathdirs; do | |
8604 | acl_save_libdir="$libdir" | |
8605 | libdir="$found_dir" | |
93613951 | 8606 | eval flag=\"$acl_hardcode_libdir_flag_spec\" |
a04eba3f | 8607 | libdir="$acl_save_libdir" |
93613951 | 8608 | LIBPTH="${LIBPTH}${LIBPTH:+ }$flag" |
a04eba3f TT |
8609 | done |
8610 | fi | |
8611 | fi | |
8612 | if test "X$ltrpathdirs" != "X"; then | |
8613 | for found_dir in $ltrpathdirs; do | |
93613951 | 8614 | LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir" |
a04eba3f | 8615 | done |
b0cacab0 | 8616 | fi |
b0cacab0 | 8617 | |
a04eba3f | 8618 | |
93636bde | 8619 | |
a64c9c13 | 8620 | |
93636bde | 8621 | |
b0cacab0 | 8622 | |
93613951 TT |
8623 | ac_cv_libpth_libs="$LIBPTH" |
8624 | ac_cv_libpth_ltlibs="$LTLIBPTH" | |
8625 | ac_cv_libpth_cppflags="$INCPTH" | |
8626 | ac_cv_libpth_prefix="$LIBPTH_PREFIX" | |
8627 | ||
8628 | fi | |
8629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5 | |
8630 | $as_echo "$ac_cv_libpth_libs" >&6; } | |
8631 | LIBPTH="$ac_cv_libpth_libs" | |
8632 | LTLIBPTH="$ac_cv_libpth_ltlibs" | |
8633 | INCPTH="$ac_cv_libpth_cppflags" | |
8634 | LIBPTH_PREFIX="$ac_cv_libpth_prefix" | |
8635 | ||
8636 | for element in $INCPTH; do | |
8637 | haveit= | |
8638 | for x in $CPPFLAGS; do | |
8639 | ||
8640 | acl_save_prefix="$prefix" | |
8641 | prefix="$acl_final_prefix" | |
8642 | acl_save_exec_prefix="$exec_prefix" | |
8643 | exec_prefix="$acl_final_exec_prefix" | |
8644 | eval x=\"$x\" | |
8645 | exec_prefix="$acl_save_exec_prefix" | |
8646 | prefix="$acl_save_prefix" | |
8647 | ||
8648 | if test "X$x" = "X$element"; then | |
8649 | haveit=yes | |
8650 | break | |
8651 | fi | |
8652 | done | |
8653 | if test -z "$haveit"; then | |
8654 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | |
8655 | fi | |
8656 | done | |
8657 | ||
8658 | ||
8659 | ||
8660 | ||
8661 | HAVE_LIBPTH=yes | |
8662 | ||
8663 | ||
8664 | ||
8665 | gl_have_pth= | |
8666 | gl_save_LIBS="$LIBS" | |
8667 | LIBS="$LIBS $LIBPTH" | |
8668 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8669 | /* end confdefs.h. */ | |
8670 | #include <pth.h> | |
8671 | int | |
8672 | main () | |
8673 | { | |
8674 | pth_self(); | |
8675 | ; | |
8676 | return 0; | |
8677 | } | |
8678 | _ACEOF | |
8679 | if ac_fn_c_try_link "$LINENO"; then : | |
8680 | gl_have_pth=yes | |
8681 | fi | |
8682 | rm -f core conftest.err conftest.$ac_objext \ | |
8683 | conftest$ac_exeext conftest.$ac_ext | |
8684 | LIBS="$gl_save_LIBS" | |
8685 | if test -n "$gl_have_pth"; then | |
8686 | gl_threads_api=pth | |
8687 | LIBTHREAD="$LIBPTH" | |
8688 | LTLIBTHREAD="$LTLIBPTH" | |
8689 | LIBMULTITHREAD="$LIBTHREAD" | |
8690 | LTLIBMULTITHREAD="$LTLIBTHREAD" | |
8691 | ||
8692 | $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h | |
8693 | ||
8694 | if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then | |
8695 | if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then | |
8696 | ||
8697 | $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h | |
8698 | ||
8699 | LIBTHREAD= | |
8700 | LTLIBTHREAD= | |
8701 | fi | |
8702 | fi | |
8703 | else | |
8704 | CPPFLAGS="$gl_save_CPPFLAGS" | |
8705 | fi | |
8706 | fi | |
8707 | if test -z "$gl_have_pthread"; then | |
8708 | case "$gl_use_threads" in | |
8709 | yes | windows | win32) # The 'win32' is for backward compatibility. | |
8710 | if { case "$host_os" in | |
8711 | mingw*) true;; | |
8712 | *) false;; | |
8713 | esac | |
8714 | }; then | |
8715 | gl_threads_api=windows | |
8716 | ||
8717 | $as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h | |
8718 | ||
8719 | fi | |
8720 | ;; | |
8721 | esac | |
8722 | fi | |
8723 | fi | |
8724 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5 | |
8725 | $as_echo_n "checking for multithread API to use... " >&6; } | |
8726 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5 | |
8727 | $as_echo "$gl_threads_api" >&6; } | |
8728 | ||
8729 | ||
8730 | ||
8731 | ||
8732 | ||
8733 | ||
8734 | ||
8735 | ||
8736 | ||
8737 | ||
8738 | ||
8739 | if test "$gl_threads_api" = posix; then | |
8740 | # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the | |
8741 | # pthread_rwlock_* functions. | |
8742 | ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h> | |
8743 | " | |
8744 | if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then : | |
8745 | ||
8746 | $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h | |
8747 | ||
8748 | fi | |
8749 | ||
8750 | # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro. | |
8751 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8752 | /* end confdefs.h. */ | |
8753 | ||
8754 | #include <pthread.h> | |
8755 | int | |
8756 | main () | |
8757 | { | |
8758 | ||
8759 | #if __FreeBSD__ == 4 | |
8760 | error "No, in FreeBSD 4.0 recursive mutexes actually don't work." | |
8761 | #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \ | |
8762 | && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070) | |
8763 | error "No, in Mac OS X < 10.7 recursive mutexes actually don't work." | |
8764 | #else | |
8765 | int x = (int)PTHREAD_MUTEX_RECURSIVE; | |
8766 | return !x; | |
8767 | #endif | |
8768 | ||
8769 | ; | |
8770 | return 0; | |
8771 | } | |
8772 | _ACEOF | |
8773 | if ac_fn_c_try_compile "$LINENO"; then : | |
8774 | ||
8775 | $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h | |
8776 | ||
8777 | fi | |
8778 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8779 | fi | |
8780 | : | |
8781 | ||
8782 | ||
8783 | ||
8784 | ||
8785 | ||
8786 | ||
8787 | ||
8788 | ||
8789 | ||
8790 | ||
8791 | ||
8792 | ||
8793 | use_additional=yes | |
8794 | ||
8795 | acl_save_prefix="$prefix" | |
8796 | prefix="$acl_final_prefix" | |
8797 | acl_save_exec_prefix="$exec_prefix" | |
8798 | exec_prefix="$acl_final_exec_prefix" | |
8799 | ||
8800 | eval additional_includedir=\"$includedir\" | |
8801 | eval additional_libdir=\"$libdir\" | |
8802 | ||
8803 | exec_prefix="$acl_save_exec_prefix" | |
8804 | prefix="$acl_save_prefix" | |
8805 | ||
8806 | ||
8807 | # Check whether --with-libiconv-prefix was given. | |
8808 | if test "${with_libiconv_prefix+set}" = set; then : | |
8809 | withval=$with_libiconv_prefix; | |
8810 | if test "X$withval" = "Xno"; then | |
8811 | use_additional=no | |
8812 | else | |
8813 | if test "X$withval" = "X"; then | |
8814 | ||
8815 | acl_save_prefix="$prefix" | |
8816 | prefix="$acl_final_prefix" | |
8817 | acl_save_exec_prefix="$exec_prefix" | |
8818 | exec_prefix="$acl_final_exec_prefix" | |
8819 | ||
8820 | eval additional_includedir=\"$includedir\" | |
8821 | eval additional_libdir=\"$libdir\" | |
8822 | ||
8823 | exec_prefix="$acl_save_exec_prefix" | |
8824 | prefix="$acl_save_prefix" | |
8825 | ||
8826 | else | |
8827 | additional_includedir="$withval/include" | |
8828 | additional_libdir="$withval/$acl_libdirstem" | |
8829 | if test "$acl_libdirstem2" != "$acl_libdirstem" \ | |
8830 | && ! test -d "$withval/$acl_libdirstem"; then | |
8831 | additional_libdir="$withval/$acl_libdirstem2" | |
8832 | fi | |
8833 | fi | |
8834 | fi | |
8835 | ||
8836 | fi | |
8837 | ||
8838 | LIBICONV= | |
8839 | LTLIBICONV= | |
8840 | INCICONV= | |
8841 | LIBICONV_PREFIX= | |
8842 | HAVE_LIBICONV= | |
8843 | rpathdirs= | |
8844 | ltrpathdirs= | |
8845 | names_already_handled= | |
8846 | names_next_round='iconv ' | |
8847 | while test -n "$names_next_round"; do | |
8848 | names_this_round="$names_next_round" | |
8849 | names_next_round= | |
8850 | for name in $names_this_round; do | |
8851 | already_handled= | |
8852 | for n in $names_already_handled; do | |
8853 | if test "$n" = "$name"; then | |
8854 | already_handled=yes | |
8855 | break | |
8856 | fi | |
8857 | done | |
8858 | if test -z "$already_handled"; then | |
8859 | names_already_handled="$names_already_handled $name" | |
8860 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` | |
8861 | eval value=\"\$HAVE_LIB$uppername\" | |
8862 | if test -n "$value"; then | |
8863 | if test "$value" = yes; then | |
8864 | eval value=\"\$LIB$uppername\" | |
8865 | test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" | |
8866 | eval value=\"\$LTLIB$uppername\" | |
8867 | test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" | |
8868 | else | |
8869 | : | |
8870 | fi | |
8871 | else | |
8872 | found_dir= | |
8873 | found_la= | |
8874 | found_so= | |
8875 | found_a= | |
8876 | eval libname=\"$acl_libname_spec\" # typically: libname=lib$name | |
8877 | if test -n "$acl_shlibext"; then | |
8878 | shrext=".$acl_shlibext" # typically: shrext=.so | |
8879 | else | |
8880 | shrext= | |
8881 | fi | |
8882 | if test $use_additional = yes; then | |
8883 | dir="$additional_libdir" | |
8884 | if test -n "$acl_shlibext"; then | |
8885 | if test -f "$dir/$libname$shrext"; then | |
8886 | found_dir="$dir" | |
8887 | found_so="$dir/$libname$shrext" | |
8888 | else | |
8889 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then | |
8890 | ver=`(cd "$dir" && \ | |
8891 | for f in "$libname$shrext".*; do echo "$f"; done \ | |
8892 | | sed -e "s,^$libname$shrext\\\\.,," \ | |
8893 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | |
8894 | | sed 1q ) 2>/dev/null` | |
8895 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then | |
8896 | found_dir="$dir" | |
8897 | found_so="$dir/$libname$shrext.$ver" | |
8898 | fi | |
8899 | else | |
8900 | eval library_names=\"$acl_library_names_spec\" | |
8901 | for f in $library_names; do | |
8902 | if test -f "$dir/$f"; then | |
8903 | found_dir="$dir" | |
8904 | found_so="$dir/$f" | |
8905 | break | |
8906 | fi | |
8907 | done | |
8908 | fi | |
8909 | fi | |
8910 | fi | |
8911 | if test "X$found_dir" = "X"; then | |
8912 | if test -f "$dir/$libname.$acl_libext"; then | |
8913 | found_dir="$dir" | |
8914 | found_a="$dir/$libname.$acl_libext" | |
8915 | fi | |
8916 | fi | |
8917 | if test "X$found_dir" != "X"; then | |
8918 | if test -f "$dir/$libname.la"; then | |
8919 | found_la="$dir/$libname.la" | |
8920 | fi | |
8921 | fi | |
8922 | fi | |
8923 | if test "X$found_dir" = "X"; then | |
8924 | for x in $LDFLAGS $LTLIBICONV; do | |
8925 | ||
8926 | acl_save_prefix="$prefix" | |
8927 | prefix="$acl_final_prefix" | |
8928 | acl_save_exec_prefix="$exec_prefix" | |
8929 | exec_prefix="$acl_final_exec_prefix" | |
8930 | eval x=\"$x\" | |
8931 | exec_prefix="$acl_save_exec_prefix" | |
8932 | prefix="$acl_save_prefix" | |
8933 | ||
8934 | case "$x" in | |
8935 | -L*) | |
8936 | dir=`echo "X$x" | sed -e 's/^X-L//'` | |
8937 | if test -n "$acl_shlibext"; then | |
8938 | if test -f "$dir/$libname$shrext"; then | |
8939 | found_dir="$dir" | |
8940 | found_so="$dir/$libname$shrext" | |
8941 | else | |
8942 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then | |
8943 | ver=`(cd "$dir" && \ | |
8944 | for f in "$libname$shrext".*; do echo "$f"; done \ | |
8945 | | sed -e "s,^$libname$shrext\\\\.,," \ | |
8946 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | |
8947 | | sed 1q ) 2>/dev/null` | |
8948 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then | |
8949 | found_dir="$dir" | |
8950 | found_so="$dir/$libname$shrext.$ver" | |
8951 | fi | |
8952 | else | |
8953 | eval library_names=\"$acl_library_names_spec\" | |
8954 | for f in $library_names; do | |
8955 | if test -f "$dir/$f"; then | |
8956 | found_dir="$dir" | |
8957 | found_so="$dir/$f" | |
8958 | break | |
8959 | fi | |
8960 | done | |
8961 | fi | |
8962 | fi | |
8963 | fi | |
8964 | if test "X$found_dir" = "X"; then | |
8965 | if test -f "$dir/$libname.$acl_libext"; then | |
8966 | found_dir="$dir" | |
8967 | found_a="$dir/$libname.$acl_libext" | |
8968 | fi | |
8969 | fi | |
8970 | if test "X$found_dir" != "X"; then | |
8971 | if test -f "$dir/$libname.la"; then | |
8972 | found_la="$dir/$libname.la" | |
8973 | fi | |
8974 | fi | |
8975 | ;; | |
8976 | esac | |
8977 | if test "X$found_dir" != "X"; then | |
8978 | break | |
8979 | fi | |
8980 | done | |
8981 | fi | |
8982 | if test "X$found_dir" != "X"; then | |
8983 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" | |
8984 | if test "X$found_so" != "X"; then | |
8985 | if test "$enable_rpath" = no \ | |
8986 | || test "X$found_dir" = "X/usr/$acl_libdirstem" \ | |
8987 | || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then | |
8988 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
8989 | else | |
8990 | haveit= | |
8991 | for x in $ltrpathdirs; do | |
8992 | if test "X$x" = "X$found_dir"; then | |
8993 | haveit=yes | |
8994 | break | |
8995 | fi | |
8996 | done | |
8997 | if test -z "$haveit"; then | |
8998 | ltrpathdirs="$ltrpathdirs $found_dir" | |
8999 | fi | |
9000 | if test "$acl_hardcode_direct" = yes; then | |
9001 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
9002 | else | |
9003 | if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then | |
9004 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
9005 | haveit= | |
9006 | for x in $rpathdirs; do | |
9007 | if test "X$x" = "X$found_dir"; then | |
9008 | haveit=yes | |
9009 | break | |
9010 | fi | |
9011 | done | |
9012 | if test -z "$haveit"; then | |
9013 | rpathdirs="$rpathdirs $found_dir" | |
9014 | fi | |
9015 | else | |
9016 | haveit= | |
9017 | for x in $LDFLAGS $LIBICONV; do | |
9018 | ||
9019 | acl_save_prefix="$prefix" | |
9020 | prefix="$acl_final_prefix" | |
9021 | acl_save_exec_prefix="$exec_prefix" | |
9022 | exec_prefix="$acl_final_exec_prefix" | |
9023 | eval x=\"$x\" | |
9024 | exec_prefix="$acl_save_exec_prefix" | |
9025 | prefix="$acl_save_prefix" | |
9026 | ||
9027 | if test "X$x" = "X-L$found_dir"; then | |
9028 | haveit=yes | |
9029 | break | |
9030 | fi | |
9031 | done | |
9032 | if test -z "$haveit"; then | |
9033 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" | |
9034 | fi | |
9035 | if test "$acl_hardcode_minus_L" != no; then | |
9036 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
9037 | else | |
9038 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" | |
9039 | fi | |
9040 | fi | |
9041 | fi | |
9042 | fi | |
9043 | else | |
9044 | if test "X$found_a" != "X"; then | |
9045 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" | |
9046 | else | |
9047 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" | |
9048 | fi | |
9049 | fi | |
9050 | additional_includedir= | |
9051 | case "$found_dir" in | |
9052 | */$acl_libdirstem | */$acl_libdirstem/) | |
9053 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` | |
9054 | if test "$name" = 'iconv'; then | |
9055 | LIBICONV_PREFIX="$basedir" | |
9056 | fi | |
9057 | additional_includedir="$basedir/include" | |
9058 | ;; | |
9059 | */$acl_libdirstem2 | */$acl_libdirstem2/) | |
9060 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` | |
9061 | if test "$name" = 'iconv'; then | |
9062 | LIBICONV_PREFIX="$basedir" | |
9063 | fi | |
9064 | additional_includedir="$basedir/include" | |
9065 | ;; | |
9066 | esac | |
9067 | if test "X$additional_includedir" != "X"; then | |
9068 | if test "X$additional_includedir" != "X/usr/include"; then | |
9069 | haveit= | |
9070 | if test "X$additional_includedir" = "X/usr/local/include"; then | |
9071 | if test -n "$GCC"; then | |
9072 | case $host_os in | |
9073 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; | |
9074 | esac | |
9075 | fi | |
9076 | fi | |
9077 | if test -z "$haveit"; then | |
9078 | for x in $CPPFLAGS $INCICONV; do | |
9079 | ||
9080 | acl_save_prefix="$prefix" | |
9081 | prefix="$acl_final_prefix" | |
9082 | acl_save_exec_prefix="$exec_prefix" | |
9083 | exec_prefix="$acl_final_exec_prefix" | |
9084 | eval x=\"$x\" | |
9085 | exec_prefix="$acl_save_exec_prefix" | |
9086 | prefix="$acl_save_prefix" | |
9087 | ||
9088 | if test "X$x" = "X-I$additional_includedir"; then | |
9089 | haveit=yes | |
9090 | break | |
9091 | fi | |
9092 | done | |
9093 | if test -z "$haveit"; then | |
9094 | if test -d "$additional_includedir"; then | |
9095 | INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" | |
9096 | fi | |
9097 | fi | |
9098 | fi | |
9099 | fi | |
9100 | fi | |
9101 | if test -n "$found_la"; then | |
9102 | save_libdir="$libdir" | |
9103 | case "$found_la" in | |
9104 | */* | *\\*) . "$found_la" ;; | |
9105 | *) . "./$found_la" ;; | |
9106 | esac | |
9107 | libdir="$save_libdir" | |
9108 | for dep in $dependency_libs; do | |
9109 | case "$dep" in | |
9110 | -L*) | |
9111 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` | |
9112 | if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ | |
9113 | && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then | |
9114 | haveit= | |
9115 | if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ | |
9116 | || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then | |
9117 | if test -n "$GCC"; then | |
9118 | case $host_os in | |
9119 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; | |
9120 | esac | |
9121 | fi | |
9122 | fi | |
9123 | if test -z "$haveit"; then | |
9124 | haveit= | |
9125 | for x in $LDFLAGS $LIBICONV; do | |
9126 | ||
9127 | acl_save_prefix="$prefix" | |
9128 | prefix="$acl_final_prefix" | |
9129 | acl_save_exec_prefix="$exec_prefix" | |
9130 | exec_prefix="$acl_final_exec_prefix" | |
9131 | eval x=\"$x\" | |
9132 | exec_prefix="$acl_save_exec_prefix" | |
9133 | prefix="$acl_save_prefix" | |
9134 | ||
9135 | if test "X$x" = "X-L$additional_libdir"; then | |
9136 | haveit=yes | |
9137 | break | |
9138 | fi | |
9139 | done | |
9140 | if test -z "$haveit"; then | |
9141 | if test -d "$additional_libdir"; then | |
9142 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" | |
9143 | fi | |
9144 | fi | |
9145 | haveit= | |
9146 | for x in $LDFLAGS $LTLIBICONV; do | |
9147 | ||
9148 | acl_save_prefix="$prefix" | |
9149 | prefix="$acl_final_prefix" | |
9150 | acl_save_exec_prefix="$exec_prefix" | |
9151 | exec_prefix="$acl_final_exec_prefix" | |
9152 | eval x=\"$x\" | |
9153 | exec_prefix="$acl_save_exec_prefix" | |
9154 | prefix="$acl_save_prefix" | |
9155 | ||
9156 | if test "X$x" = "X-L$additional_libdir"; then | |
9157 | haveit=yes | |
9158 | break | |
9159 | fi | |
9160 | done | |
9161 | if test -z "$haveit"; then | |
9162 | if test -d "$additional_libdir"; then | |
9163 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" | |
9164 | fi | |
9165 | fi | |
9166 | fi | |
9167 | fi | |
9168 | ;; | |
9169 | -R*) | |
9170 | dir=`echo "X$dep" | sed -e 's/^X-R//'` | |
9171 | if test "$enable_rpath" != no; then | |
9172 | haveit= | |
9173 | for x in $rpathdirs; do | |
9174 | if test "X$x" = "X$dir"; then | |
9175 | haveit=yes | |
9176 | break | |
9177 | fi | |
9178 | done | |
9179 | if test -z "$haveit"; then | |
9180 | rpathdirs="$rpathdirs $dir" | |
9181 | fi | |
9182 | haveit= | |
9183 | for x in $ltrpathdirs; do | |
9184 | if test "X$x" = "X$dir"; then | |
9185 | haveit=yes | |
9186 | break | |
9187 | fi | |
9188 | done | |
9189 | if test -z "$haveit"; then | |
9190 | ltrpathdirs="$ltrpathdirs $dir" | |
9191 | fi | |
9192 | fi | |
9193 | ;; | |
9194 | -l*) | |
9195 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` | |
9196 | ;; | |
9197 | *.la) | |
9198 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` | |
9199 | ;; | |
9200 | *) | |
9201 | LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" | |
9202 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" | |
9203 | ;; | |
9204 | esac | |
9205 | done | |
9206 | fi | |
9207 | else | |
9208 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" | |
9209 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" | |
9210 | fi | |
9211 | fi | |
9212 | fi | |
9213 | done | |
9214 | done | |
9215 | if test "X$rpathdirs" != "X"; then | |
9216 | if test -n "$acl_hardcode_libdir_separator"; then | |
9217 | alldirs= | |
9218 | for found_dir in $rpathdirs; do | |
9219 | alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" | |
9220 | done | |
9221 | acl_save_libdir="$libdir" | |
9222 | libdir="$alldirs" | |
9223 | eval flag=\"$acl_hardcode_libdir_flag_spec\" | |
9224 | libdir="$acl_save_libdir" | |
9225 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" | |
9226 | else | |
9227 | for found_dir in $rpathdirs; do | |
9228 | acl_save_libdir="$libdir" | |
9229 | libdir="$found_dir" | |
9230 | eval flag=\"$acl_hardcode_libdir_flag_spec\" | |
9231 | libdir="$acl_save_libdir" | |
9232 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" | |
9233 | done | |
9234 | fi | |
9235 | fi | |
9236 | if test "X$ltrpathdirs" != "X"; then | |
9237 | for found_dir in $ltrpathdirs; do | |
9238 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" | |
9239 | done | |
9240 | fi | |
9241 | ||
9242 | ||
9243 | ||
9244 | ||
9245 | ||
9246 | ||
9247 | ||
9248 | ||
9249 | ||
9250 | ||
9251 | ||
9252 | ||
9253 | am_save_CPPFLAGS="$CPPFLAGS" | |
9254 | ||
9255 | for element in $INCICONV; do | |
9256 | haveit= | |
9257 | for x in $CPPFLAGS; do | |
9258 | ||
9259 | acl_save_prefix="$prefix" | |
9260 | prefix="$acl_final_prefix" | |
9261 | acl_save_exec_prefix="$exec_prefix" | |
9262 | exec_prefix="$acl_final_exec_prefix" | |
9263 | eval x=\"$x\" | |
9264 | exec_prefix="$acl_save_exec_prefix" | |
9265 | prefix="$acl_save_prefix" | |
9266 | ||
9267 | if test "X$x" = "X$element"; then | |
9268 | haveit=yes | |
9269 | break | |
9270 | fi | |
9271 | done | |
9272 | if test -z "$haveit"; then | |
9273 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | |
9274 | fi | |
9275 | done | |
9276 | ||
9277 | ||
9278 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 | |
9279 | $as_echo_n "checking for iconv... " >&6; } | |
9280 | if ${am_cv_func_iconv+:} false; then : | |
9281 | $as_echo_n "(cached) " >&6 | |
9282 | else | |
9283 | ||
9284 | am_cv_func_iconv="no, consider installing GNU libiconv" | |
9285 | am_cv_lib_iconv=no | |
9286 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9287 | /* end confdefs.h. */ | |
9288 | ||
9289 | #include <stdlib.h> | |
9290 | #include <iconv.h> | |
9291 | ||
9292 | int | |
9293 | main () | |
9294 | { | |
9295 | iconv_t cd = iconv_open("",""); | |
9296 | iconv(cd,NULL,NULL,NULL,NULL); | |
9297 | iconv_close(cd); | |
9298 | ; | |
9299 | return 0; | |
9300 | } | |
9301 | _ACEOF | |
9302 | if ac_fn_c_try_link "$LINENO"; then : | |
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 | if test "$am_cv_func_iconv" != yes; then | |
9308 | am_save_LIBS="$LIBS" | |
9309 | LIBS="$LIBS $LIBICONV" | |
9310 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9311 | /* end confdefs.h. */ | |
9312 | ||
9313 | #include <stdlib.h> | |
9314 | #include <iconv.h> | |
9315 | ||
9316 | int | |
9317 | main () | |
9318 | { | |
9319 | iconv_t cd = iconv_open("",""); | |
9320 | iconv(cd,NULL,NULL,NULL,NULL); | |
9321 | iconv_close(cd); | |
9322 | ; | |
9323 | return 0; | |
9324 | } | |
9325 | _ACEOF | |
9326 | if ac_fn_c_try_link "$LINENO"; then : | |
9327 | am_cv_lib_iconv=yes | |
9328 | am_cv_func_iconv=yes | |
9329 | fi | |
9330 | rm -f core conftest.err conftest.$ac_objext \ | |
9331 | conftest$ac_exeext conftest.$ac_ext | |
9332 | LIBS="$am_save_LIBS" | |
9333 | fi | |
9334 | ||
9335 | fi | |
9336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 | |
9337 | $as_echo "$am_cv_func_iconv" >&6; } | |
9338 | if test "$am_cv_func_iconv" = yes; then | |
9339 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 | |
9340 | $as_echo_n "checking for working iconv... " >&6; } | |
9341 | if ${am_cv_func_iconv_works+:} false; then : | |
9342 | $as_echo_n "(cached) " >&6 | |
9343 | else | |
9344 | ||
9345 | am_save_LIBS="$LIBS" | |
9346 | if test $am_cv_lib_iconv = yes; then | |
9347 | LIBS="$LIBS $LIBICONV" | |
9348 | fi | |
9349 | if test "$cross_compiling" = yes; then : | |
9350 | ||
9351 | case "$host_os" in | |
9352 | aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; | |
9353 | *) am_cv_func_iconv_works="guessing yes" ;; | |
9354 | esac | |
9355 | ||
9356 | else | |
9357 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9358 | /* end confdefs.h. */ | |
9359 | ||
9360 | #include <iconv.h> | |
9361 | #include <string.h> | |
9362 | int main () | |
9363 | { | |
9364 | int result = 0; | |
9365 | /* Test against AIX 5.1 bug: Failures are not distinguishable from successful | |
9366 | returns. */ | |
9367 | { | |
9368 | iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); | |
9369 | if (cd_utf8_to_88591 != (iconv_t)(-1)) | |
9370 | { | |
9371 | static const char input[] = "\342\202\254"; /* EURO SIGN */ | |
9372 | char buf[10]; | |
9373 | const char *inptr = input; | |
9374 | size_t inbytesleft = strlen (input); | |
9375 | char *outptr = buf; | |
9376 | size_t outbytesleft = sizeof (buf); | |
9377 | size_t res = iconv (cd_utf8_to_88591, | |
9378 | (char **) &inptr, &inbytesleft, | |
9379 | &outptr, &outbytesleft); | |
9380 | if (res == 0) | |
9381 | result |= 1; | |
9382 | iconv_close (cd_utf8_to_88591); | |
9383 | } | |
9384 | } | |
9385 | /* Test against Solaris 10 bug: Failures are not distinguishable from | |
9386 | successful returns. */ | |
9387 | { | |
9388 | iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646"); | |
9389 | if (cd_ascii_to_88591 != (iconv_t)(-1)) | |
9390 | { | |
9391 | static const char input[] = "\263"; | |
9392 | char buf[10]; | |
9393 | const char *inptr = input; | |
9394 | size_t inbytesleft = strlen (input); | |
9395 | char *outptr = buf; | |
9396 | size_t outbytesleft = sizeof (buf); | |
9397 | size_t res = iconv (cd_ascii_to_88591, | |
9398 | (char **) &inptr, &inbytesleft, | |
9399 | &outptr, &outbytesleft); | |
9400 | if (res == 0) | |
9401 | result |= 2; | |
9402 | iconv_close (cd_ascii_to_88591); | |
9403 | } | |
9404 | } | |
9405 | /* Test against AIX 6.1..7.1 bug: Buffer overrun. */ | |
9406 | { | |
9407 | iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1"); | |
9408 | if (cd_88591_to_utf8 != (iconv_t)(-1)) | |
9409 | { | |
9410 | static const char input[] = "\304"; | |
9411 | static char buf[2] = { (char)0xDE, (char)0xAD }; | |
9412 | const char *inptr = input; | |
9413 | size_t inbytesleft = 1; | |
9414 | char *outptr = buf; | |
9415 | size_t outbytesleft = 1; | |
9416 | size_t res = iconv (cd_88591_to_utf8, | |
9417 | (char **) &inptr, &inbytesleft, | |
9418 | &outptr, &outbytesleft); | |
9419 | if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD) | |
9420 | result |= 4; | |
9421 | iconv_close (cd_88591_to_utf8); | |
9422 | } | |
9423 | } | |
9424 | #if 0 /* This bug could be worked around by the caller. */ | |
9425 | /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ | |
9426 | { | |
9427 | iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); | |
9428 | if (cd_88591_to_utf8 != (iconv_t)(-1)) | |
9429 | { | |
9430 | static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; | |
9431 | char buf[50]; | |
9432 | const char *inptr = input; | |
9433 | size_t inbytesleft = strlen (input); | |
9434 | char *outptr = buf; | |
9435 | size_t outbytesleft = sizeof (buf); | |
9436 | size_t res = iconv (cd_88591_to_utf8, | |
9437 | (char **) &inptr, &inbytesleft, | |
9438 | &outptr, &outbytesleft); | |
9439 | if ((int)res > 0) | |
9440 | result |= 8; | |
9441 | iconv_close (cd_88591_to_utf8); | |
9442 | } | |
9443 | } | |
9444 | #endif | |
9445 | /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is | |
9446 | provided. */ | |
9447 | if (/* Try standardized names. */ | |
9448 | iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) | |
9449 | /* Try IRIX, OSF/1 names. */ | |
9450 | && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) | |
9451 | /* Try AIX names. */ | |
9452 | && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) | |
9453 | /* Try HP-UX names. */ | |
9454 | && iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) | |
9455 | result |= 16; | |
9456 | return result; | |
9457 | } | |
9458 | _ACEOF | |
9459 | if ac_fn_c_try_run "$LINENO"; then : | |
9460 | am_cv_func_iconv_works=yes | |
9461 | else | |
9462 | am_cv_func_iconv_works=no | |
9463 | fi | |
9464 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
9465 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
9466 | fi | |
9467 | ||
9468 | LIBS="$am_save_LIBS" | |
9469 | ||
9470 | fi | |
9471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 | |
9472 | $as_echo "$am_cv_func_iconv_works" >&6; } | |
9473 | case "$am_cv_func_iconv_works" in | |
9474 | *no) am_func_iconv=no am_cv_lib_iconv=no ;; | |
9475 | *) am_func_iconv=yes ;; | |
9476 | esac | |
9477 | else | |
9478 | am_func_iconv=no am_cv_lib_iconv=no | |
9479 | fi | |
9480 | if test "$am_func_iconv" = yes; then | |
9481 | ||
9482 | $as_echo "#define HAVE_ICONV 1" >>confdefs.h | |
9483 | ||
9484 | fi | |
9485 | if test "$am_cv_lib_iconv" = yes; then | |
9486 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 | |
9487 | $as_echo_n "checking how to link with libiconv... " >&6; } | |
9488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 | |
9489 | $as_echo "$LIBICONV" >&6; } | |
9490 | else | |
9491 | CPPFLAGS="$am_save_CPPFLAGS" | |
9492 | LIBICONV= | |
9493 | LTLIBICONV= | |
9494 | fi | |
9495 | ||
9496 | ||
9497 | ||
9498 | if test "$am_cv_func_iconv" = yes; then | |
9499 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5 | |
9500 | $as_echo_n "checking for iconv declaration... " >&6; } | |
9501 | if ${am_cv_proto_iconv+:} false; then : | |
9502 | $as_echo_n "(cached) " >&6 | |
9503 | else | |
9504 | ||
9505 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9506 | /* end confdefs.h. */ | |
9507 | ||
9508 | #include <stdlib.h> | |
9509 | #include <iconv.h> | |
9510 | extern | |
9511 | #ifdef __cplusplus | |
9512 | "C" | |
9513 | #endif | |
9514 | #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus) | |
9515 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
9516 | #else | |
9517 | size_t iconv(); | |
9518 | #endif | |
9519 | ||
9520 | int | |
9521 | main () | |
9522 | { | |
9523 | ||
9524 | ; | |
9525 | return 0; | |
9526 | } | |
9527 | _ACEOF | |
9528 | if ac_fn_c_try_compile "$LINENO"; then : | |
9529 | am_cv_proto_iconv_arg1="" | |
9530 | else | |
9531 | am_cv_proto_iconv_arg1="const" | |
9532 | fi | |
9533 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9534 | 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);" | |
9535 | fi | |
9536 | ||
9537 | am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` | |
9538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: | |
9539 | $am_cv_proto_iconv" >&5 | |
9540 | $as_echo " | |
9541 | $am_cv_proto_iconv" >&6; } | |
9542 | ||
9543 | cat >>confdefs.h <<_ACEOF | |
9544 | #define ICONV_CONST $am_cv_proto_iconv_arg1 | |
9545 | _ACEOF | |
9546 | ||
9547 | ||
9548 | fi | |
9549 | ||
9550 | ||
9551 | ||
9552 | ||
9553 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9554 | /* end confdefs.h. */ | |
9555 | int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; } | |
9556 | int | |
9557 | main () | |
9558 | { | |
9559 | ||
9560 | ; | |
9561 | return 0; | |
9562 | } | |
9563 | _ACEOF | |
9564 | if ac_fn_c_try_link "$LINENO"; then : | |
9565 | ||
9566 | $as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h | |
9567 | ||
9568 | fi | |
9569 | rm -f core conftest.err conftest.$ac_objext \ | |
9570 | conftest$ac_exeext conftest.$ac_ext | |
9571 | ||
9572 | for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h | |
9573 | do : | |
9574 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9575 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
9576 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
9577 | cat >>confdefs.h <<_ACEOF | |
9578 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9579 | _ACEOF | |
9580 | ||
9581 | fi | |
9582 | ||
9583 | done | |
9584 | ||
9585 | for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \ | |
9586 | stpcpy strcasecmp strdup strtoul tsearch uselocale argz_count \ | |
9587 | argz_stringify argz_next __fsetlocking | |
9588 | do : | |
9589 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
9590 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
9591 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
9592 | cat >>confdefs.h <<_ACEOF | |
9593 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
9594 | _ACEOF | |
9595 | ||
9596 | fi | |
9597 | done | |
9598 | ||
9599 | ||
9600 | ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "#include <stdio.h> | |
9601 | " | |
9602 | if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then : | |
9603 | ac_have_decl=1 | |
9604 | else | |
9605 | ac_have_decl=0 | |
9606 | fi | |
9607 | ||
9608 | cat >>confdefs.h <<_ACEOF | |
9609 | #define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl | |
9610 | _ACEOF | |
9611 | ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "#include <stdio.h> | |
9612 | " | |
9613 | if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then : | |
9614 | ac_have_decl=1 | |
9615 | else | |
9616 | ac_have_decl=0 | |
9617 | fi | |
9618 | ||
9619 | cat >>confdefs.h <<_ACEOF | |
9620 | #define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl | |
9621 | _ACEOF | |
9622 | ||
9623 | ||
9624 | ||
9625 | ||
9626 | for ac_prog in bison | |
9627 | do | |
9628 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
9629 | set dummy $ac_prog; ac_word=$2 | |
9630 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9631 | $as_echo_n "checking for $ac_word... " >&6; } | |
9632 | if ${ac_cv_prog_INTLBISON+:} false; then : | |
9633 | $as_echo_n "(cached) " >&6 | |
9634 | else | |
9635 | if test -n "$INTLBISON"; then | |
9636 | ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test. | |
9637 | else | |
9638 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9639 | for as_dir in $PATH | |
9640 | do | |
9641 | IFS=$as_save_IFS | |
9642 | test -z "$as_dir" && as_dir=. | |
9643 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9644 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9645 | ac_cv_prog_INTLBISON="$ac_prog" | |
9646 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9647 | break 2 | |
9648 | fi | |
9649 | done | |
9650 | done | |
9651 | IFS=$as_save_IFS | |
9652 | ||
9653 | fi | |
9654 | fi | |
9655 | INTLBISON=$ac_cv_prog_INTLBISON | |
9656 | if test -n "$INTLBISON"; then | |
9657 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5 | |
9658 | $as_echo "$INTLBISON" >&6; } | |
9659 | else | |
9660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9661 | $as_echo "no" >&6; } | |
9662 | fi | |
9663 | ||
9664 | ||
9665 | test -n "$INTLBISON" && break | |
9666 | done | |
9667 | ||
9668 | if test -z "$INTLBISON"; then | |
9669 | ac_verc_fail=yes | |
9670 | else | |
9671 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5 | |
9672 | $as_echo_n "checking version of bison... " >&6; } | |
9673 | ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` | |
9674 | case $ac_prog_version in | |
9675 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | |
9676 | 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) | |
9677 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; | |
9678 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; | |
9679 | esac | |
9680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5 | |
9681 | $as_echo "$ac_prog_version" >&6; } | |
9682 | fi | |
9683 | if test $ac_verc_fail = yes; then | |
9684 | INTLBISON=: | |
b0cacab0 | 9685 | fi |
b0cacab0 | 9686 | |
a04eba3f | 9687 | |
93636bde | 9688 | |
93613951 TT |
9689 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5 |
9690 | $as_echo_n "checking for long long int... " >&6; } | |
9691 | if ${ac_cv_type_long_long_int+:} false; then : | |
9692 | $as_echo_n "(cached) " >&6 | |
9693 | else | |
9694 | ac_cv_type_long_long_int=yes | |
9695 | if test "x${ac_cv_prog_cc_c99-no}" = xno; then | |
9696 | ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int | |
9697 | if test $ac_cv_type_long_long_int = yes; then | |
9698 | if test "$cross_compiling" = yes; then : | |
9699 | : | |
9700 | else | |
9701 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9702 | /* end confdefs.h. */ | |
9703 | #include <limits.h> | |
9704 | #ifndef LLONG_MAX | |
9705 | # define HALF \ | |
9706 | (1LL << (sizeof (long long int) * CHAR_BIT - 2)) | |
9707 | # define LLONG_MAX (HALF - 1 + HALF) | |
9708 | #endif | |
9709 | int | |
9710 | main () | |
9711 | { | |
9712 | long long int n = 1; | |
9713 | int i; | |
9714 | for (i = 0; ; i++) | |
9715 | { | |
9716 | long long int m = n << i; | |
9717 | if (m >> i != n) | |
9718 | return 1; | |
9719 | if (LLONG_MAX / 2 < m) | |
9720 | break; | |
9721 | } | |
9722 | return 0; | |
9723 | ; | |
9724 | return 0; | |
9725 | } | |
9726 | _ACEOF | |
9727 | if ac_fn_c_try_run "$LINENO"; then : | |
a64c9c13 | 9728 | |
93613951 TT |
9729 | else |
9730 | ac_cv_type_long_long_int=no | |
9731 | fi | |
9732 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
9733 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
9734 | fi | |
93636bde | 9735 | |
93613951 TT |
9736 | fi |
9737 | fi | |
9738 | fi | |
9739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5 | |
9740 | $as_echo "$ac_cv_type_long_long_int" >&6; } | |
9741 | if test $ac_cv_type_long_long_int = yes; then | |
b0cacab0 | 9742 | |
93613951 | 9743 | $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h |
b0cacab0 | 9744 | |
93613951 | 9745 | fi |
b0cacab0 TT |
9746 | |
9747 | ||
93613951 TT |
9748 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5 |
9749 | $as_echo_n "checking for wchar_t... " >&6; } | |
9750 | if ${gt_cv_c_wchar_t+:} false; then : | |
9751 | $as_echo_n "(cached) " >&6 | |
50e1e10f | 9752 | else |
93613951 TT |
9753 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9754 | /* end confdefs.h. */ | |
9755 | #include <stddef.h> | |
9756 | wchar_t foo = (wchar_t)'\0'; | |
9757 | int | |
9758 | main () | |
9759 | { | |
50e1e10f | 9760 | |
93613951 TT |
9761 | ; |
9762 | return 0; | |
9763 | } | |
57aa50d4 | 9764 | _ACEOF |
93613951 TT |
9765 | if ac_fn_c_try_compile "$LINENO"; then : |
9766 | gt_cv_c_wchar_t=yes | |
9767 | else | |
9768 | gt_cv_c_wchar_t=no | |
57aa50d4 | 9769 | fi |
93613951 | 9770 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
fc6d9d51 | 9771 | fi |
93613951 TT |
9772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5 |
9773 | $as_echo "$gt_cv_c_wchar_t" >&6; } | |
9774 | if test $gt_cv_c_wchar_t = yes; then | |
b0cacab0 | 9775 | |
93613951 | 9776 | $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h |
b0cacab0 | 9777 | |
93613951 | 9778 | fi |
50e1e10f | 9779 | |
e1052144 | 9780 | |
93613951 TT |
9781 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5 |
9782 | $as_echo_n "checking for wint_t... " >&6; } | |
9783 | if ${gt_cv_c_wint_t+:} false; then : | |
39fd3d4f | 9784 | $as_echo_n "(cached) " >&6 |
50e1e10f | 9785 | else |
57aa50d4 TT |
9786 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9787 | /* end confdefs.h. */ | |
bcb915b0 | 9788 | |
93613951 TT |
9789 | /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before |
9790 | <wchar.h>. | |
9791 | BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included | |
9792 | before <wchar.h>. */ | |
9793 | #include <stddef.h> | |
57aa50d4 | 9794 | #include <stdio.h> |
93613951 TT |
9795 | #include <time.h> |
9796 | #include <wchar.h> | |
9797 | wint_t foo = (wchar_t)'\0'; | |
57aa50d4 TT |
9798 | int |
9799 | main () | |
9800 | { | |
50e1e10f | 9801 | |
57aa50d4 TT |
9802 | ; |
9803 | return 0; | |
9804 | } | |
9805 | _ACEOF | |
9806 | if ac_fn_c_try_compile "$LINENO"; then : | |
93613951 | 9807 | gt_cv_c_wint_t=yes |
50e1e10f | 9808 | else |
93613951 | 9809 | gt_cv_c_wint_t=no |
50e1e10f | 9810 | fi |
57aa50d4 | 9811 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
50e1e10f | 9812 | fi |
93613951 TT |
9813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5 |
9814 | $as_echo "$gt_cv_c_wint_t" >&6; } | |
9815 | if test $gt_cv_c_wint_t = yes; then | |
bcb915b0 | 9816 | |
93613951 | 9817 | $as_echo "#define HAVE_WINT_T 1" >>confdefs.h |
50e1e10f | 9818 | |
57aa50d4 | 9819 | fi |
50e1e10f | 9820 | |
e1052144 | 9821 | |
e1052144 | 9822 | |
57aa50d4 | 9823 | |
93613951 TT |
9824 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5 |
9825 | $as_echo_n "checking for intmax_t... " >&6; } | |
9826 | if ${gt_cv_c_intmax_t+:} false; then : | |
39fd3d4f | 9827 | $as_echo_n "(cached) " >&6 |
50e1e10f | 9828 | else |
57aa50d4 TT |
9829 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9830 | /* end confdefs.h. */ | |
b0cacab0 | 9831 | |
93613951 TT |
9832 | #include <stddef.h> |
9833 | #include <stdlib.h> | |
9834 | #if HAVE_STDINT_H_WITH_UINTMAX | |
9835 | #include <stdint.h> | |
9836 | #endif | |
9837 | #if HAVE_INTTYPES_H_WITH_UINTMAX | |
9838 | #include <inttypes.h> | |
57aa50d4 TT |
9839 | #endif |
9840 | ||
93613951 TT |
9841 | int |
9842 | main () | |
9843 | { | |
9844 | intmax_t x = -1; | |
9845 | return !x; | |
57aa50d4 TT |
9846 | ; |
9847 | return 0; | |
9848 | } | |
9849 | _ACEOF | |
9850 | if ac_fn_c_try_compile "$LINENO"; then : | |
93613951 | 9851 | gt_cv_c_intmax_t=yes |
50e1e10f | 9852 | else |
93613951 | 9853 | gt_cv_c_intmax_t=no |
57aa50d4 TT |
9854 | fi |
9855 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
50e1e10f | 9856 | fi |
93613951 TT |
9857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5 |
9858 | $as_echo "$gt_cv_c_intmax_t" >&6; } | |
9859 | if test $gt_cv_c_intmax_t = yes; then | |
9860 | ||
9861 | $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h | |
9862 | ||
57aa50d4 | 9863 | fi |
50e1e10f | 9864 | |
93613951 TT |
9865 | |
9866 | ||
9867 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5 | |
9868 | $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; } | |
9869 | if ${gt_cv_func_printf_posix+:} false; then : | |
9870 | $as_echo_n "(cached) " >&6 | |
9871 | else | |
9872 | ||
9873 | if test "$cross_compiling" = yes; then : | |
9874 | ||
9875 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9876 | /* end confdefs.h. */ | |
9877 | ||
9878 | #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__ | |
9879 | notposix | |
9880 | #endif | |
9881 | ||
9882 | _ACEOF | |
9883 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
9884 | $EGREP "notposix" >/dev/null 2>&1; then : | |
9885 | gt_cv_func_printf_posix="guessing no" | |
9886 | else | |
9887 | gt_cv_func_printf_posix="guessing yes" | |
9888 | fi | |
9889 | rm -f conftest* | |
9890 | ||
9891 | ||
9892 | else | |
9893 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9894 | /* end confdefs.h. */ | |
9895 | ||
9896 | #include <stdio.h> | |
9897 | #include <string.h> | |
9898 | /* The string "%2$d %1$d", with dollar characters protected from the shell's | |
9899 | dollar expansion (possibly an autoconf bug). */ | |
9900 | static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' }; | |
9901 | static char buf[100]; | |
9902 | int main () | |
9903 | { | |
9904 | sprintf (buf, format, 33, 55); | |
9905 | return (strcmp (buf, "55 33") != 0); | |
9906 | } | |
9907 | _ACEOF | |
9908 | if ac_fn_c_try_run "$LINENO"; then : | |
9909 | gt_cv_func_printf_posix=yes | |
9910 | else | |
9911 | gt_cv_func_printf_posix=no | |
9912 | fi | |
9913 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
9914 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
9915 | fi | |
9916 | ||
9917 | ||
9918 | fi | |
9919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5 | |
9920 | $as_echo "$gt_cv_func_printf_posix" >&6; } | |
9921 | case $gt_cv_func_printf_posix in | |
9922 | *yes) | |
9923 | ||
9924 | $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h | |
9925 | ||
9926 | ;; | |
9927 | esac | |
9928 | ||
9929 | ||
9930 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5 | |
9931 | $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; } | |
9932 | if ${ac_cv_gnu_library_2_1+:} false; then : | |
9933 | $as_echo_n "(cached) " >&6 | |
9934 | else | |
9935 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9936 | /* end confdefs.h. */ | |
9937 | ||
9938 | #include <features.h> | |
9939 | #ifdef __GNU_LIBRARY__ | |
9940 | #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) | |
9941 | Lucky GNU user | |
9942 | #endif | |
9943 | #endif | |
9944 | #ifdef __UCLIBC__ | |
9945 | Lucky user | |
9946 | #endif | |
9947 | ||
9948 | _ACEOF | |
9949 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
9950 | $EGREP "Lucky" >/dev/null 2>&1; then : | |
9951 | ac_cv_gnu_library_2_1=yes | |
9952 | else | |
9953 | ac_cv_gnu_library_2_1=no | |
9954 | fi | |
9955 | rm -f conftest* | |
9956 | ||
9957 | ||
9958 | ||
9959 | fi | |
9960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5 | |
9961 | $as_echo "$ac_cv_gnu_library_2_1" >&6; } | |
9962 | ||
9963 | GLIBC21="$ac_cv_gnu_library_2_1" | |
9964 | ||
9965 | ||
9966 | ||
9967 | for ac_header in stdint.h | |
9968 | do : | |
9969 | ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" | |
9970 | if test "x$ac_cv_header_stdint_h" = xyes; then : | |
9971 | cat >>confdefs.h <<_ACEOF | |
9972 | #define HAVE_STDINT_H 1 | |
57aa50d4 | 9973 | _ACEOF |
e1052144 | 9974 | |
93613951 | 9975 | fi |
e1052144 | 9976 | |
93613951 | 9977 | done |
57aa50d4 | 9978 | |
93613951 TT |
9979 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5 |
9980 | $as_echo_n "checking for SIZE_MAX... " >&6; } | |
9981 | if ${gl_cv_size_max+:} false; then : | |
39fd3d4f | 9982 | $as_echo_n "(cached) " >&6 |
50e1e10f | 9983 | else |
93613951 TT |
9984 | |
9985 | gl_cv_size_max= | |
9986 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9987 | /* end confdefs.h. */ | |
9988 | ||
9989 | #include <limits.h> | |
9990 | #if HAVE_STDINT_H | |
9991 | #include <stdint.h> | |
9992 | #endif | |
9993 | #ifdef SIZE_MAX | |
9994 | Found it | |
9995 | #endif | |
9996 | ||
57aa50d4 | 9997 | _ACEOF |
93613951 TT |
9998 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
9999 | $EGREP "Found it" >/dev/null 2>&1; then : | |
10000 | gl_cv_size_max=yes | |
10001 | fi | |
10002 | rm -f conftest* | |
e1052144 | 10003 | |
93613951 TT |
10004 | if test -z "$gl_cv_size_max"; then |
10005 | if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h> | |
10006 | #include <limits.h>"; then : | |
e1052144 | 10007 | |
93613951 TT |
10008 | else |
10009 | size_t_bits_minus_1= | |
10010 | fi | |
57aa50d4 | 10011 | |
93613951 | 10012 | if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then : |
57aa50d4 | 10013 | |
50e1e10f | 10014 | else |
93613951 TT |
10015 | fits_in_uint= |
10016 | fi | |
10017 | ||
10018 | if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then | |
10019 | if test $fits_in_uint = 1; then | |
10020 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
57aa50d4 | 10021 | /* end confdefs.h. */ |
93613951 TT |
10022 | #include <stddef.h> |
10023 | extern size_t foo; | |
10024 | extern unsigned long foo; | |
10025 | ||
57aa50d4 TT |
10026 | int |
10027 | main () | |
10028 | { | |
b0cacab0 | 10029 | |
57aa50d4 TT |
10030 | ; |
10031 | return 0; | |
10032 | } | |
10033 | _ACEOF | |
10034 | if ac_fn_c_try_compile "$LINENO"; then : | |
93613951 | 10035 | fits_in_uint=0 |
93636bde | 10036 | fi |
57aa50d4 | 10037 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
93613951 TT |
10038 | fi |
10039 | if test $fits_in_uint = 1; then | |
10040 | gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)" | |
10041 | else | |
10042 | gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)" | |
10043 | fi | |
10044 | else | |
10045 | gl_cv_size_max='((size_t)~(size_t)0)' | |
10046 | fi | |
10047 | fi | |
10048 | ||
50e1e10f | 10049 | fi |
93613951 TT |
10050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5 |
10051 | $as_echo "$gl_cv_size_max" >&6; } | |
10052 | if test "$gl_cv_size_max" != yes; then | |
50e1e10f | 10053 | |
57aa50d4 | 10054 | cat >>confdefs.h <<_ACEOF |
93613951 | 10055 | #define SIZE_MAX $gl_cv_size_max |
57aa50d4 | 10056 | _ACEOF |
e1052144 | 10057 | |
93613951 | 10058 | fi |
32237014 | 10059 | |
57aa50d4 | 10060 | |
e1052144 | 10061 | |
57aa50d4 | 10062 | |
93613951 TT |
10063 | for ac_header in stdint.h |
10064 | do : | |
10065 | ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" | |
10066 | if test "x$ac_cv_header_stdint_h" = xyes; then : | |
10067 | cat >>confdefs.h <<_ACEOF | |
10068 | #define HAVE_STDINT_H 1 | |
57aa50d4 | 10069 | _ACEOF |
93613951 | 10070 | |
32237014 | 10071 | fi |
32237014 | 10072 | |
93613951 | 10073 | done |
e1052144 | 10074 | |
32237014 | 10075 | |
57aa50d4 | 10076 | |
e1052144 | 10077 | |
57aa50d4 | 10078 | |
93613951 TT |
10079 | for ac_func in $ac_func_list |
10080 | do : | |
10081 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
10082 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
10083 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
10084 | cat >>confdefs.h <<_ACEOF | |
10085 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
57aa50d4 | 10086 | _ACEOF |
32237014 | 10087 | |
32237014 | 10088 | fi |
93613951 TT |
10089 | done |
10090 | ||
10091 | ||
10092 | ||
e1052144 | 10093 | |
57aa50d4 | 10094 | |
e1052144 | 10095 | |
57aa50d4 | 10096 | |
93613951 TT |
10097 | |
10098 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5 | |
10099 | $as_echo_n "checking for working fcntl.h... " >&6; } | |
10100 | if ${gl_cv_header_working_fcntl_h+:} false; then : | |
39fd3d4f | 10101 | $as_echo_n "(cached) " >&6 |
93613951 TT |
10102 | else |
10103 | if test "$cross_compiling" = yes; then : | |
10104 | gl_cv_header_working_fcntl_h=cross-compiling | |
50e1e10f | 10105 | else |
57aa50d4 TT |
10106 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
10107 | /* end confdefs.h. */ | |
93613951 TT |
10108 | #include <sys/types.h> |
10109 | #include <sys/stat.h> | |
10110 | #if HAVE_UNISTD_H | |
10111 | # include <unistd.h> | |
10112 | #else /* on Windows with MSVC */ | |
10113 | # include <io.h> | |
10114 | # include <stdlib.h> | |
10115 | # defined sleep(n) _sleep ((n) * 1000) | |
10116 | #endif | |
10117 | #include <fcntl.h> | |
10118 | #ifndef O_NOATIME | |
10119 | #define O_NOATIME 0 | |
10120 | #endif | |
10121 | #ifndef O_NOFOLLOW | |
10122 | #define O_NOFOLLOW 0 | |
10123 | #endif | |
10124 | static int const constants[] = | |
10125 | { | |
10126 | O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND, | |
10127 | O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY | |
10128 | }; | |
10129 | ||
57aa50d4 TT |
10130 | int |
10131 | main () | |
10132 | { | |
b0cacab0 | 10133 | |
93613951 TT |
10134 | int result = !constants; |
10135 | #if HAVE_SYMLINK | |
10136 | { | |
10137 | static char const sym[] = "conftest.sym"; | |
10138 | if (symlink ("/dev/null", sym) != 0) | |
10139 | result |= 2; | |
10140 | else | |
10141 | { | |
10142 | int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0); | |
10143 | if (fd >= 0) | |
10144 | { | |
10145 | close (fd); | |
10146 | result |= 4; | |
10147 | } | |
10148 | } | |
10149 | if (unlink (sym) != 0 || symlink (".", sym) != 0) | |
10150 | result |= 2; | |
10151 | else | |
10152 | { | |
10153 | int fd = open (sym, O_RDONLY | O_NOFOLLOW); | |
10154 | if (fd >= 0) | |
10155 | { | |
10156 | close (fd); | |
10157 | result |= 4; | |
10158 | } | |
10159 | } | |
10160 | unlink (sym); | |
10161 | } | |
10162 | #endif | |
10163 | { | |
10164 | static char const file[] = "confdefs.h"; | |
10165 | int fd = open (file, O_RDONLY | O_NOATIME); | |
10166 | if (fd < 0) | |
10167 | result |= 8; | |
10168 | else | |
10169 | { | |
10170 | struct stat st0; | |
10171 | if (fstat (fd, &st0) != 0) | |
10172 | result |= 16; | |
10173 | else | |
10174 | { | |
10175 | char c; | |
10176 | sleep (1); | |
10177 | if (read (fd, &c, 1) != 1) | |
10178 | result |= 24; | |
10179 | else | |
10180 | { | |
10181 | if (close (fd) != 0) | |
10182 | result |= 32; | |
10183 | else | |
10184 | { | |
10185 | struct stat st1; | |
10186 | if (stat (file, &st1) != 0) | |
10187 | result |= 40; | |
10188 | else | |
10189 | if (st0.st_atime != st1.st_atime) | |
10190 | result |= 64; | |
10191 | } | |
10192 | } | |
10193 | } | |
10194 | } | |
10195 | } | |
10196 | return result; | |
57aa50d4 TT |
10197 | ; |
10198 | return 0; | |
10199 | } | |
10200 | _ACEOF | |
93613951 TT |
10201 | if ac_fn_c_try_run "$LINENO"; then : |
10202 | gl_cv_header_working_fcntl_h=yes | |
50e1e10f | 10203 | else |
93613951 TT |
10204 | case $? in #( |
10205 | 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #( | |
10206 | 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #( | |
10207 | 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #( | |
10208 | *) gl_cv_header_working_fcntl_h='no';; | |
10209 | esac | |
50e1e10f | 10210 | fi |
93613951 TT |
10211 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
10212 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
50e1e10f | 10213 | fi |
57aa50d4 | 10214 | |
93613951 TT |
10215 | fi |
10216 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5 | |
10217 | $as_echo "$gl_cv_header_working_fcntl_h" >&6; } | |
57aa50d4 | 10218 | |
93613951 TT |
10219 | case $gl_cv_header_working_fcntl_h in #( |
10220 | *O_NOATIME* | no | cross-compiling) ac_val=0;; #( | |
10221 | *) ac_val=1;; | |
57aa50d4 TT |
10222 | esac |
10223 | ||
93613951 TT |
10224 | cat >>confdefs.h <<_ACEOF |
10225 | #define HAVE_WORKING_O_NOATIME $ac_val | |
10226 | _ACEOF | |
57aa50d4 | 10227 | |
57aa50d4 | 10228 | |
93613951 TT |
10229 | case $gl_cv_header_working_fcntl_h in #( |
10230 | *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #( | |
10231 | *) ac_val=1;; | |
10232 | esac | |
57aa50d4 | 10233 | |
93613951 TT |
10234 | cat >>confdefs.h <<_ACEOF |
10235 | #define HAVE_WORKING_O_NOFOLLOW $ac_val | |
10236 | _ACEOF | |
57aa50d4 | 10237 | |
50e1e10f | 10238 | |
e1052144 | 10239 | |
93613951 TT |
10240 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5 |
10241 | $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; } | |
10242 | if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then : | |
39fd3d4f | 10243 | $as_echo_n "(cached) " >&6 |
9d564f73 | 10244 | else |
93613951 TT |
10245 | gt_save_LIBS="$LIBS" |
10246 | LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" | |
10247 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
57aa50d4 | 10248 | /* end confdefs.h. */ |
93613951 | 10249 | #include <CoreFoundation/CFPreferences.h> |
57aa50d4 TT |
10250 | int |
10251 | main () | |
10252 | { | |
93613951 | 10253 | CFPreferencesCopyAppValue(NULL, NULL) |
57aa50d4 TT |
10254 | ; |
10255 | return 0; | |
10256 | } | |
10257 | _ACEOF | |
10258 | if ac_fn_c_try_link "$LINENO"; then : | |
93613951 TT |
10259 | gt_cv_func_CFPreferencesCopyAppValue=yes |
10260 | else | |
10261 | gt_cv_func_CFPreferencesCopyAppValue=no | |
9d564f73 | 10262 | fi |
57aa50d4 TT |
10263 | rm -f core conftest.err conftest.$ac_objext \ |
10264 | conftest$ac_exeext conftest.$ac_ext | |
93613951 TT |
10265 | LIBS="$gt_save_LIBS" |
10266 | fi | |
10267 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 | |
10268 | $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; } | |
10269 | if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then | |
10270 | ||
10271 | $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h | |
10272 | ||
10273 | fi | |
10274 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5 | |
10275 | $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; } | |
10276 | if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then : | |
10277 | $as_echo_n "(cached) " >&6 | |
10278 | else | |
10279 | gt_save_LIBS="$LIBS" | |
10280 | LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" | |
10281 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
57aa50d4 | 10282 | /* end confdefs.h. */ |
93613951 | 10283 | #include <CoreFoundation/CFLocale.h> |
57aa50d4 TT |
10284 | int |
10285 | main () | |
10286 | { | |
93613951 | 10287 | CFLocaleCopyCurrent(); |
57aa50d4 TT |
10288 | ; |
10289 | return 0; | |
10290 | } | |
10291 | _ACEOF | |
10292 | if ac_fn_c_try_link "$LINENO"; then : | |
93613951 TT |
10293 | gt_cv_func_CFLocaleCopyCurrent=yes |
10294 | else | |
10295 | gt_cv_func_CFLocaleCopyCurrent=no | |
9d564f73 | 10296 | fi |
57aa50d4 TT |
10297 | rm -f core conftest.err conftest.$ac_objext \ |
10298 | conftest$ac_exeext conftest.$ac_ext | |
93613951 | 10299 | LIBS="$gt_save_LIBS" |
50e1e10f | 10300 | fi |
93613951 TT |
10301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5 |
10302 | $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; } | |
10303 | if test $gt_cv_func_CFLocaleCopyCurrent = yes; then | |
50e1e10f | 10304 | |
93613951 | 10305 | $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h |
e1052144 | 10306 | |
b0cacab0 | 10307 | fi |
93613951 TT |
10308 | INTL_MACOSX_LIBS= |
10309 | if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then | |
10310 | INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" | |
e1052144 | 10311 | fi |
b0cacab0 | 10312 | |
93636bde | 10313 | |
e1052144 | 10314 | |
93613951 TT |
10315 | |
10316 | ||
10317 | ||
10318 | ||
10319 | ||
10320 | ||
10321 | ||
10322 | case "$enable_silent_rules" in | |
10323 | yes) INTL_DEFAULT_VERBOSITY=0;; | |
10324 | no) INTL_DEFAULT_VERBOSITY=1;; | |
10325 | *) INTL_DEFAULT_VERBOSITY=1;; | |
10326 | esac | |
10327 | ||
10328 | ||
10329 | ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" | |
10330 | if test "x$ac_cv_type_ptrdiff_t" = xyes; then : | |
10331 | ||
50e1e10f | 10332 | else |
b0cacab0 | 10333 | |
93613951 | 10334 | $as_echo "#define ptrdiff_t long" >>confdefs.h |
50e1e10f | 10335 | |
e1052144 | 10336 | |
93613951 | 10337 | fi |
b0cacab0 | 10338 | |
93613951 TT |
10339 | for ac_header in features.h stddef.h stdlib.h string.h |
10340 | do : | |
10341 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
10342 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
10343 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
10344 | cat >>confdefs.h <<_ACEOF | |
10345 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
57aa50d4 | 10346 | _ACEOF |
93613951 TT |
10347 | |
10348 | fi | |
10349 | ||
10350 | done | |
10351 | ||
10352 | for ac_func in asprintf fwprintf newlocale putenv setenv setlocale \ | |
10353 | snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb | |
10354 | do : | |
10355 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
10356 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
10357 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
10358 | cat >>confdefs.h <<_ACEOF | |
10359 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
57aa50d4 | 10360 | _ACEOF |
93613951 TT |
10361 | |
10362 | fi | |
10363 | done | |
10364 | ||
10365 | ||
10366 | ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h> | |
10367 | " | |
10368 | if test "x$ac_cv_have_decl__snprintf" = xyes; then : | |
10369 | ac_have_decl=1 | |
50e1e10f | 10370 | else |
93613951 | 10371 | ac_have_decl=0 |
50e1e10f | 10372 | fi |
93613951 TT |
10373 | |
10374 | cat >>confdefs.h <<_ACEOF | |
10375 | #define HAVE_DECL__SNPRINTF $ac_have_decl | |
10376 | _ACEOF | |
10377 | ac_fn_c_check_decl "$LINENO" "_snwprintf" "ac_cv_have_decl__snwprintf" "#include <stdio.h> | |
10378 | " | |
10379 | if test "x$ac_cv_have_decl__snwprintf" = xyes; then : | |
10380 | ac_have_decl=1 | |
10381 | else | |
10382 | ac_have_decl=0 | |
50e1e10f TT |
10383 | fi |
10384 | ||
93613951 TT |
10385 | cat >>confdefs.h <<_ACEOF |
10386 | #define HAVE_DECL__SNWPRINTF $ac_have_decl | |
10387 | _ACEOF | |
10388 | ||
10389 | ||
10390 | ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "#include <stdio.h> | |
10391 | " | |
10392 | if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then : | |
10393 | ac_have_decl=1 | |
10394 | else | |
10395 | ac_have_decl=0 | |
10396 | fi | |
57aa50d4 TT |
10397 | |
10398 | cat >>confdefs.h <<_ACEOF | |
93613951 | 10399 | #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl |
57aa50d4 TT |
10400 | _ACEOF |
10401 | ||
93613951 TT |
10402 | |
10403 | case $gt_cv_func_printf_posix in | |
10404 | *yes) HAVE_POSIX_PRINTF=1 ;; | |
10405 | *) HAVE_POSIX_PRINTF=0 ;; | |
10406 | esac | |
10407 | ||
10408 | if test "$ac_cv_func_asprintf" = yes; then | |
10409 | HAVE_ASPRINTF=1 | |
10410 | else | |
10411 | HAVE_ASPRINTF=0 | |
10412 | fi | |
10413 | ||
10414 | if test "$ac_cv_func_snprintf" = yes; then | |
10415 | HAVE_SNPRINTF=1 | |
10416 | else | |
10417 | HAVE_SNPRINTF=0 | |
10418 | fi | |
10419 | ||
10420 | if test "$ac_cv_func_newlocale" = yes; then | |
10421 | HAVE_NEWLOCALE=1 | |
10422 | else | |
10423 | HAVE_NEWLOCALE=0 | |
10424 | fi | |
10425 | ||
10426 | if test "$ac_cv_func_wprintf" = yes; then | |
10427 | HAVE_WPRINTF=1 | |
10428 | else | |
10429 | HAVE_WPRINTF=0 | |
e1052144 | 10430 | fi |
50e1e10f | 10431 | |
57aa50d4 | 10432 | |
93613951 | 10433 | |
57aa50d4 TT |
10434 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5 |
10435 | $as_echo_n "checking for nl_langinfo and CODESET... " >&6; } | |
d6a4bcb5 | 10436 | if ${am_cv_langinfo_codeset+:} false; then : |
39fd3d4f | 10437 | $as_echo_n "(cached) " >&6 |
50e1e10f | 10438 | else |
57aa50d4 TT |
10439 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
10440 | /* end confdefs.h. */ | |
10441 | #include <langinfo.h> | |
10442 | int | |
10443 | main () | |
10444 | { | |
93613951 | 10445 | char* cs = nl_langinfo(CODESET); return !cs; |
57aa50d4 TT |
10446 | ; |
10447 | return 0; | |
10448 | } | |
10449 | _ACEOF | |
10450 | if ac_fn_c_try_link "$LINENO"; then : | |
10451 | am_cv_langinfo_codeset=yes | |
50e1e10f | 10452 | else |
57aa50d4 | 10453 | am_cv_langinfo_codeset=no |
50e1e10f | 10454 | fi |
57aa50d4 TT |
10455 | rm -f core conftest.err conftest.$ac_objext \ |
10456 | conftest$ac_exeext conftest.$ac_ext | |
7321d94e | 10457 | |
50e1e10f | 10458 | fi |
57aa50d4 TT |
10459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5 |
10460 | $as_echo "$am_cv_langinfo_codeset" >&6; } | |
10461 | if test $am_cv_langinfo_codeset = yes; then | |
50e1e10f | 10462 | |
57aa50d4 | 10463 | $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h |
e1052144 | 10464 | |
57aa50d4 | 10465 | fi |
b0cacab0 | 10466 | |
21c84b71 | 10467 | |
57aa50d4 TT |
10468 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5 |
10469 | $as_echo_n "checking for LC_MESSAGES... " >&6; } | |
93613951 | 10470 | if ${gt_cv_val_LC_MESSAGES+:} false; then : |
39fd3d4f | 10471 | $as_echo_n "(cached) " >&6 |
93636bde | 10472 | else |
57aa50d4 TT |
10473 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
10474 | /* end confdefs.h. */ | |
10475 | #include <locale.h> | |
10476 | int | |
10477 | main () | |
10478 | { | |
10479 | return LC_MESSAGES | |
10480 | ; | |
10481 | return 0; | |
10482 | } | |
10483 | _ACEOF | |
10484 | if ac_fn_c_try_link "$LINENO"; then : | |
93613951 | 10485 | gt_cv_val_LC_MESSAGES=yes |
93636bde | 10486 | else |
93613951 | 10487 | gt_cv_val_LC_MESSAGES=no |
50e1e10f | 10488 | fi |
57aa50d4 TT |
10489 | rm -f core conftest.err conftest.$ac_objext \ |
10490 | conftest$ac_exeext conftest.$ac_ext | |
50e1e10f | 10491 | fi |
93613951 TT |
10492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5 |
10493 | $as_echo "$gt_cv_val_LC_MESSAGES" >&6; } | |
10494 | if test $gt_cv_val_LC_MESSAGES = yes; then | |
50e1e10f | 10495 | |
57aa50d4 | 10496 | $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h |
50e1e10f | 10497 | |
e1052144 | 10498 | fi |
50e1e10f | 10499 | |
93613951 TT |
10500 | |
10501 | if test "$enable_shared" = yes; then | |
10502 | case "$host_os" in | |
10503 | mingw* | cygwin*) is_woe32dll=yes ;; | |
10504 | *) is_woe32dll=no ;; | |
10505 | esac | |
10506 | else | |
10507 | is_woe32dll=no | |
57aa50d4 | 10508 | fi |
93613951 | 10509 | WOE32DLL=$is_woe32dll |
b0cacab0 | 10510 | |
93613951 TT |
10511 | |
10512 | case "$host_os" in | |
10513 | mingw* | cygwin*) is_woe32=yes ;; | |
10514 | *) is_woe32=no ;; | |
10515 | esac | |
10516 | WOE32=$is_woe32 | |
10517 | ||
10518 | if test $WOE32 = yes; then | |
10519 | if test -n "$ac_tool_prefix"; then | |
10520 | # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. | |
10521 | set dummy ${ac_tool_prefix}windres; ac_word=$2 | |
57aa50d4 | 10522 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
39fd3d4f | 10523 | $as_echo_n "checking for $ac_word... " >&6; } |
93613951 | 10524 | if ${ac_cv_prog_WINDRES+:} false; then : |
39fd3d4f | 10525 | $as_echo_n "(cached) " >&6 |
50e1e10f | 10526 | else |
93613951 TT |
10527 | if test -n "$WINDRES"; then |
10528 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
50e1e10f | 10529 | else |
b0cacab0 TT |
10530 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10531 | for as_dir in $PATH | |
10532 | do | |
10533 | IFS=$as_save_IFS | |
10534 | test -z "$as_dir" && as_dir=. | |
57aa50d4 | 10535 | for ac_exec_ext in '' $ac_executable_extensions; do |
d6a4bcb5 | 10536 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
93613951 | 10537 | ac_cv_prog_WINDRES="${ac_tool_prefix}windres" |
57aa50d4 | 10538 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b0cacab0 TT |
10539 | break 2 |
10540 | fi | |
10541 | done | |
57aa50d4 | 10542 | done |
e1052144 | 10543 | IFS=$as_save_IFS |
b0cacab0 | 10544 | |
50e1e10f TT |
10545 | fi |
10546 | fi | |
93613951 TT |
10547 | WINDRES=$ac_cv_prog_WINDRES |
10548 | if test -n "$WINDRES"; then | |
10549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 | |
10550 | $as_echo "$WINDRES" >&6; } | |
50e1e10f | 10551 | else |
57aa50d4 | 10552 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
39fd3d4f | 10553 | $as_echo "no" >&6; } |
50e1e10f TT |
10554 | fi |
10555 | ||
e1052144 | 10556 | |
93613951 TT |
10557 | fi |
10558 | if test -z "$ac_cv_prog_WINDRES"; then | |
10559 | ac_ct_WINDRES=$WINDRES | |
10560 | # Extract the first word of "windres", so it can be a program name with args. | |
10561 | set dummy windres; ac_word=$2 | |
10562 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10563 | $as_echo_n "checking for $ac_word... " >&6; } | |
10564 | if ${ac_cv_prog_ac_ct_WINDRES+:} false; then : | |
10565 | $as_echo_n "(cached) " >&6 | |
10566 | else | |
10567 | if test -n "$ac_ct_WINDRES"; then | |
10568 | ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. | |
10569 | else | |
10570 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10571 | for as_dir in $PATH | |
10572 | do | |
10573 | IFS=$as_save_IFS | |
10574 | test -z "$as_dir" && as_dir=. | |
10575 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10576 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10577 | ac_cv_prog_ac_ct_WINDRES="windres" | |
10578 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10579 | break 2 | |
10580 | fi | |
b0cacab0 | 10581 | done |
93613951 TT |
10582 | done |
10583 | IFS=$as_save_IFS | |
b0cacab0 | 10584 | |
93613951 TT |
10585 | fi |
10586 | fi | |
10587 | ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES | |
10588 | if test -n "$ac_ct_WINDRES"; then | |
10589 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5 | |
10590 | $as_echo "$ac_ct_WINDRES" >&6; } | |
10591 | else | |
10592 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10593 | $as_echo "no" >&6; } | |
10594 | fi | |
10595 | ||
10596 | if test "x$ac_ct_WINDRES" = x; then | |
10597 | WINDRES="" | |
57aa50d4 | 10598 | else |
93613951 TT |
10599 | case $cross_compiling:$ac_tool_warned in |
10600 | yes:) | |
10601 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
10602 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
10603 | ac_tool_warned=yes ;; | |
10604 | esac | |
10605 | WINDRES=$ac_ct_WINDRES | |
57aa50d4 | 10606 | fi |
93613951 TT |
10607 | else |
10608 | WINDRES="$ac_cv_prog_WINDRES" | |
10609 | fi | |
10610 | ||
57aa50d4 TT |
10611 | fi |
10612 | ||
93613951 TT |
10613 | case "$host_os" in |
10614 | hpux*) LTLIBC="" ;; | |
10615 | *) LTLIBC="-lc" ;; | |
10616 | esac | |
57aa50d4 TT |
10617 | |
10618 | ||
10619 | ||
10620 | ||
10621 | ||
10622 | ||
10623 | ||
10624 | ||
10625 | ||
10626 | ||
b0cacab0 | 10627 | |
740837de | 10628 | |
b0cacab0 TT |
10629 | |
10630 | ||
10631 | ||
93613951 TT |
10632 | |
10633 | ||
10634 | ||
10635 | ||
10636 | ||
10637 | ||
10638 | ||
10639 | ||
10640 | ||
10641 | ||
10642 | ||
10643 | ||
10644 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5 | |
10645 | $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; } | |
10646 | if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then : | |
10647 | $as_echo_n "(cached) " >&6 | |
50e1e10f | 10648 | else |
93613951 TT |
10649 | gt_save_LIBS="$LIBS" |
10650 | LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" | |
10651 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10652 | /* end confdefs.h. */ | |
10653 | #include <CoreFoundation/CFPreferences.h> | |
10654 | int | |
10655 | main () | |
10656 | { | |
10657 | CFPreferencesCopyAppValue(NULL, NULL) | |
10658 | ; | |
10659 | return 0; | |
10660 | } | |
10661 | _ACEOF | |
10662 | if ac_fn_c_try_link "$LINENO"; then : | |
10663 | gt_cv_func_CFPreferencesCopyAppValue=yes | |
10664 | else | |
10665 | gt_cv_func_CFPreferencesCopyAppValue=no | |
50e1e10f | 10666 | fi |
93613951 TT |
10667 | rm -f core conftest.err conftest.$ac_objext \ |
10668 | conftest$ac_exeext conftest.$ac_ext | |
10669 | LIBS="$gt_save_LIBS" | |
50e1e10f | 10670 | fi |
93613951 TT |
10671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 |
10672 | $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; } | |
10673 | if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then | |
10674 | ||
10675 | $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h | |
10676 | ||
10677 | fi | |
10678 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5 | |
10679 | $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; } | |
10680 | if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then : | |
10681 | $as_echo_n "(cached) " >&6 | |
10682 | else | |
10683 | gt_save_LIBS="$LIBS" | |
10684 | LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" | |
10685 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10686 | /* end confdefs.h. */ | |
10687 | #include <CoreFoundation/CFLocale.h> | |
10688 | int | |
10689 | main () | |
10690 | { | |
10691 | CFLocaleCopyCurrent(); | |
10692 | ; | |
10693 | return 0; | |
10694 | } | |
10695 | _ACEOF | |
10696 | if ac_fn_c_try_link "$LINENO"; then : | |
10697 | gt_cv_func_CFLocaleCopyCurrent=yes | |
10698 | else | |
10699 | gt_cv_func_CFLocaleCopyCurrent=no | |
10700 | fi | |
10701 | rm -f core conftest.err conftest.$ac_objext \ | |
10702 | conftest$ac_exeext conftest.$ac_ext | |
10703 | LIBS="$gt_save_LIBS" | |
10704 | fi | |
10705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5 | |
10706 | $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; } | |
10707 | if test $gt_cv_func_CFLocaleCopyCurrent = yes; then | |
10708 | ||
10709 | $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h | |
10710 | ||
10711 | fi | |
10712 | INTL_MACOSX_LIBS= | |
10713 | if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then | |
10714 | INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" | |
10715 | fi | |
10716 | ||
50e1e10f | 10717 | |
b0cacab0 TT |
10718 | |
10719 | ||
10720 | ||
10721 | ||
57aa50d4 TT |
10722 | BUILD_INCLUDED_LIBINTL=no |
10723 | USE_INCLUDED_LIBINTL=no | |
10724 | ||
10725 | LIBINTL= | |
10726 | LTLIBINTL= | |
10727 | POSUB= | |
10728 | ||
93613951 TT |
10729 | case " $gt_needs " in |
10730 | *" need-formatstring-macros "*) gt_api_version=3 ;; | |
10731 | *" need-ngettext "*) gt_api_version=2 ;; | |
10732 | *) gt_api_version=1 ;; | |
10733 | esac | |
10734 | gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc" | |
10735 | gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl" | |
10736 | ||
57aa50d4 TT |
10737 | if test "$USE_NLS" = "yes"; then |
10738 | gt_use_preinstalled_gnugettext=no | |
b0cacab0 | 10739 | |
57aa50d4 TT |
10740 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5 |
10741 | $as_echo_n "checking whether included gettext is requested... " >&6; } | |
b0cacab0 | 10742 | |
57aa50d4 TT |
10743 | # Check whether --with-included-gettext was given. |
10744 | if test "${with_included_gettext+set}" = set; then : | |
10745 | withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval | |
50e1e10f | 10746 | else |
57aa50d4 | 10747 | nls_cv_force_use_gnu_gettext=no |
50e1e10f TT |
10748 | fi |
10749 | ||
57aa50d4 TT |
10750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5 |
10751 | $as_echo "$nls_cv_force_use_gnu_gettext" >&6; } | |
b0cacab0 | 10752 | |
57aa50d4 TT |
10753 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" |
10754 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then | |
b0cacab0 TT |
10755 | |
10756 | ||
93613951 TT |
10757 | if test $gt_api_version -ge 3; then |
10758 | gt_revision_test_code=' | |
10759 | #ifndef __GNU_GETTEXT_SUPPORTED_REVISION | |
10760 | #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) | |
10761 | #endif | |
10762 | typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; | |
10763 | ' | |
10764 | else | |
10765 | gt_revision_test_code= | |
10766 | fi | |
10767 | if test $gt_api_version -ge 2; then | |
10768 | gt_expression_test_code=' + * ngettext ("", "", 0)' | |
10769 | else | |
10770 | gt_expression_test_code= | |
10771 | fi | |
b0cacab0 | 10772 | |
57aa50d4 TT |
10773 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5 |
10774 | $as_echo_n "checking for GNU gettext in libc... " >&6; } | |
93613951 | 10775 | if eval \${$gt_func_gnugettext_libc+:} false; then : |
39fd3d4f | 10776 | $as_echo_n "(cached) " >&6 |
7321d94e | 10777 | else |
57aa50d4 TT |
10778 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
10779 | /* end confdefs.h. */ | |
93613951 | 10780 | |
57aa50d4 | 10781 | #include <libintl.h> |
93613951 | 10782 | $gt_revision_test_code |
57aa50d4 TT |
10783 | extern int _nl_msg_cat_cntr; |
10784 | extern int *_nl_domain_bindings; | |
93613951 | 10785 | |
57aa50d4 TT |
10786 | int |
10787 | main () | |
10788 | { | |
93613951 | 10789 | |
57aa50d4 | 10790 | bindtextdomain ("", ""); |
93613951 TT |
10791 | return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings |
10792 | ||
57aa50d4 TT |
10793 | ; |
10794 | return 0; | |
10795 | } | |
10796 | _ACEOF | |
10797 | if ac_fn_c_try_link "$LINENO"; then : | |
93613951 | 10798 | eval "$gt_func_gnugettext_libc=yes" |
7321d94e | 10799 | else |
93613951 | 10800 | eval "$gt_func_gnugettext_libc=no" |
57aa50d4 TT |
10801 | fi |
10802 | rm -f core conftest.err conftest.$ac_objext \ | |
10803 | conftest$ac_exeext conftest.$ac_ext | |
10804 | fi | |
93613951 TT |
10805 | eval ac_res=\$$gt_func_gnugettext_libc |
10806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
10807 | $as_echo "$ac_res" >&6; } | |
10808 | ||
10809 | if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then | |
10810 | ||
10811 | ||
10812 | ||
10813 | ||
b0cacab0 TT |
10814 | |
10815 | ||
10816 | ||
10817 | ||
57aa50d4 | 10818 | use_additional=yes |
b0cacab0 | 10819 | |
57aa50d4 TT |
10820 | acl_save_prefix="$prefix" |
10821 | prefix="$acl_final_prefix" | |
10822 | acl_save_exec_prefix="$exec_prefix" | |
10823 | exec_prefix="$acl_final_exec_prefix" | |
b0cacab0 | 10824 | |
57aa50d4 TT |
10825 | eval additional_includedir=\"$includedir\" |
10826 | eval additional_libdir=\"$libdir\" | |
b0cacab0 | 10827 | |
57aa50d4 TT |
10828 | exec_prefix="$acl_save_exec_prefix" |
10829 | prefix="$acl_save_prefix" | |
b0cacab0 TT |
10830 | |
10831 | ||
57aa50d4 TT |
10832 | # Check whether --with-libintl-prefix was given. |
10833 | if test "${with_libintl_prefix+set}" = set; then : | |
10834 | withval=$with_libintl_prefix; | |
10835 | if test "X$withval" = "Xno"; then | |
10836 | use_additional=no | |
10837 | else | |
10838 | if test "X$withval" = "X"; then | |
b0cacab0 | 10839 | |
57aa50d4 TT |
10840 | acl_save_prefix="$prefix" |
10841 | prefix="$acl_final_prefix" | |
10842 | acl_save_exec_prefix="$exec_prefix" | |
10843 | exec_prefix="$acl_final_exec_prefix" | |
b0cacab0 | 10844 | |
57aa50d4 TT |
10845 | eval additional_includedir=\"$includedir\" |
10846 | eval additional_libdir=\"$libdir\" | |
7321d94e | 10847 | |
57aa50d4 TT |
10848 | exec_prefix="$acl_save_exec_prefix" |
10849 | prefix="$acl_save_prefix" | |
7321d94e | 10850 | |
57aa50d4 TT |
10851 | else |
10852 | additional_includedir="$withval/include" | |
93613951 TT |
10853 | additional_libdir="$withval/$acl_libdirstem" |
10854 | if test "$acl_libdirstem2" != "$acl_libdirstem" \ | |
10855 | && ! test -d "$withval/$acl_libdirstem"; then | |
10856 | additional_libdir="$withval/$acl_libdirstem2" | |
10857 | fi | |
57aa50d4 TT |
10858 | fi |
10859 | fi | |
7321d94e | 10860 | |
7321d94e MK |
10861 | fi |
10862 | ||
57aa50d4 TT |
10863 | LIBINTL= |
10864 | LTLIBINTL= | |
10865 | INCINTL= | |
93613951 TT |
10866 | LIBINTL_PREFIX= |
10867 | HAVE_LIBINTL= | |
57aa50d4 TT |
10868 | rpathdirs= |
10869 | ltrpathdirs= | |
10870 | names_already_handled= | |
10871 | names_next_round='intl ' | |
10872 | while test -n "$names_next_round"; do | |
10873 | names_this_round="$names_next_round" | |
10874 | names_next_round= | |
10875 | for name in $names_this_round; do | |
10876 | already_handled= | |
10877 | for n in $names_already_handled; do | |
10878 | if test "$n" = "$name"; then | |
10879 | already_handled=yes | |
10880 | break | |
10881 | fi | |
50e1e10f | 10882 | done |
57aa50d4 TT |
10883 | if test -z "$already_handled"; then |
10884 | names_already_handled="$names_already_handled $name" | |
93613951 | 10885 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` |
57aa50d4 TT |
10886 | eval value=\"\$HAVE_LIB$uppername\" |
10887 | if test -n "$value"; then | |
10888 | if test "$value" = yes; then | |
10889 | eval value=\"\$LIB$uppername\" | |
10890 | test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" | |
10891 | eval value=\"\$LTLIB$uppername\" | |
10892 | test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" | |
10893 | else | |
10894 | : | |
10895 | fi | |
10896 | else | |
10897 | found_dir= | |
10898 | found_la= | |
10899 | found_so= | |
10900 | found_a= | |
93613951 TT |
10901 | eval libname=\"$acl_libname_spec\" # typically: libname=lib$name |
10902 | if test -n "$acl_shlibext"; then | |
10903 | shrext=".$acl_shlibext" # typically: shrext=.so | |
10904 | else | |
10905 | shrext= | |
10906 | fi | |
57aa50d4 | 10907 | if test $use_additional = yes; then |
93613951 TT |
10908 | dir="$additional_libdir" |
10909 | if test -n "$acl_shlibext"; then | |
10910 | if test -f "$dir/$libname$shrext"; then | |
10911 | found_dir="$dir" | |
10912 | found_so="$dir/$libname$shrext" | |
10913 | else | |
10914 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then | |
10915 | ver=`(cd "$dir" && \ | |
10916 | for f in "$libname$shrext".*; do echo "$f"; done \ | |
10917 | | sed -e "s,^$libname$shrext\\\\.,," \ | |
10918 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | |
10919 | | sed 1q ) 2>/dev/null` | |
10920 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then | |
10921 | found_dir="$dir" | |
10922 | found_so="$dir/$libname$shrext.$ver" | |
10923 | fi | |
10924 | else | |
10925 | eval library_names=\"$acl_library_names_spec\" | |
10926 | for f in $library_names; do | |
10927 | if test -f "$dir/$f"; then | |
10928 | found_dir="$dir" | |
10929 | found_so="$dir/$f" | |
10930 | break | |
10931 | fi | |
10932 | done | |
57aa50d4 TT |
10933 | fi |
10934 | fi | |
93613951 TT |
10935 | fi |
10936 | if test "X$found_dir" = "X"; then | |
10937 | if test -f "$dir/$libname.$acl_libext"; then | |
10938 | found_dir="$dir" | |
10939 | found_a="$dir/$libname.$acl_libext" | |
10940 | fi | |
10941 | fi | |
10942 | if test "X$found_dir" != "X"; then | |
10943 | if test -f "$dir/$libname.la"; then | |
10944 | found_la="$dir/$libname.la" | |
10945 | fi | |
57aa50d4 TT |
10946 | fi |
10947 | fi | |
10948 | if test "X$found_dir" = "X"; then | |
10949 | for x in $LDFLAGS $LTLIBINTL; do | |
39fd3d4f | 10950 | |
57aa50d4 TT |
10951 | acl_save_prefix="$prefix" |
10952 | prefix="$acl_final_prefix" | |
10953 | acl_save_exec_prefix="$exec_prefix" | |
10954 | exec_prefix="$acl_final_exec_prefix" | |
10955 | eval x=\"$x\" | |
10956 | exec_prefix="$acl_save_exec_prefix" | |
10957 | prefix="$acl_save_prefix" | |
3d05802f | 10958 | |
57aa50d4 TT |
10959 | case "$x" in |
10960 | -L*) | |
10961 | dir=`echo "X$x" | sed -e 's/^X-L//'` | |
93613951 TT |
10962 | if test -n "$acl_shlibext"; then |
10963 | if test -f "$dir/$libname$shrext"; then | |
57aa50d4 | 10964 | found_dir="$dir" |
93613951 TT |
10965 | found_so="$dir/$libname$shrext" |
10966 | else | |
10967 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then | |
10968 | ver=`(cd "$dir" && \ | |
10969 | for f in "$libname$shrext".*; do echo "$f"; done \ | |
10970 | | sed -e "s,^$libname$shrext\\\\.,," \ | |
10971 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | |
10972 | | sed 1q ) 2>/dev/null` | |
10973 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then | |
10974 | found_dir="$dir" | |
10975 | found_so="$dir/$libname$shrext.$ver" | |
10976 | fi | |
10977 | else | |
10978 | eval library_names=\"$acl_library_names_spec\" | |
10979 | for f in $library_names; do | |
10980 | if test -f "$dir/$f"; then | |
10981 | found_dir="$dir" | |
10982 | found_so="$dir/$f" | |
10983 | break | |
10984 | fi | |
10985 | done | |
57aa50d4 TT |
10986 | fi |
10987 | fi | |
93613951 TT |
10988 | fi |
10989 | if test "X$found_dir" = "X"; then | |
10990 | if test -f "$dir/$libname.$acl_libext"; then | |
10991 | found_dir="$dir" | |
10992 | found_a="$dir/$libname.$acl_libext" | |
10993 | fi | |
10994 | fi | |
10995 | if test "X$found_dir" != "X"; then | |
10996 | if test -f "$dir/$libname.la"; then | |
10997 | found_la="$dir/$libname.la" | |
10998 | fi | |
57aa50d4 TT |
10999 | fi |
11000 | ;; | |
11001 | esac | |
11002 | if test "X$found_dir" != "X"; then | |
11003 | break | |
11004 | fi | |
11005 | done | |
11006 | fi | |
11007 | if test "X$found_dir" != "X"; then | |
11008 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" | |
11009 | if test "X$found_so" != "X"; then | |
93613951 TT |
11010 | if test "$enable_rpath" = no \ |
11011 | || test "X$found_dir" = "X/usr/$acl_libdirstem" \ | |
11012 | || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then | |
57aa50d4 TT |
11013 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
11014 | else | |
11015 | haveit= | |
11016 | for x in $ltrpathdirs; do | |
11017 | if test "X$x" = "X$found_dir"; then | |
11018 | haveit=yes | |
11019 | break | |
11020 | fi | |
11021 | done | |
11022 | if test -z "$haveit"; then | |
11023 | ltrpathdirs="$ltrpathdirs $found_dir" | |
11024 | fi | |
93613951 | 11025 | if test "$acl_hardcode_direct" = yes; then |
57aa50d4 TT |
11026 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
11027 | else | |
93613951 | 11028 | if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then |
57aa50d4 TT |
11029 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
11030 | haveit= | |
11031 | for x in $rpathdirs; do | |
11032 | if test "X$x" = "X$found_dir"; then | |
11033 | haveit=yes | |
11034 | break | |
11035 | fi | |
11036 | done | |
11037 | if test -z "$haveit"; then | |
11038 | rpathdirs="$rpathdirs $found_dir" | |
11039 | fi | |
11040 | else | |
11041 | haveit= | |
11042 | for x in $LDFLAGS $LIBINTL; do | |
6ec9ef18 | 11043 | |
57aa50d4 TT |
11044 | acl_save_prefix="$prefix" |
11045 | prefix="$acl_final_prefix" | |
11046 | acl_save_exec_prefix="$exec_prefix" | |
11047 | exec_prefix="$acl_final_exec_prefix" | |
11048 | eval x=\"$x\" | |
11049 | exec_prefix="$acl_save_exec_prefix" | |
11050 | prefix="$acl_save_prefix" | |
d7f45af8 | 11051 | |
57aa50d4 TT |
11052 | if test "X$x" = "X-L$found_dir"; then |
11053 | haveit=yes | |
11054 | break | |
11055 | fi | |
11056 | done | |
11057 | if test -z "$haveit"; then | |
11058 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" | |
11059 | fi | |
93613951 | 11060 | if test "$acl_hardcode_minus_L" != no; then |
57aa50d4 TT |
11061 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
11062 | else | |
11063 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" | |
11064 | fi | |
11065 | fi | |
11066 | fi | |
11067 | fi | |
11068 | else | |
11069 | if test "X$found_a" != "X"; then | |
11070 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" | |
11071 | else | |
11072 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" | |
11073 | fi | |
11074 | fi | |
11075 | additional_includedir= | |
11076 | case "$found_dir" in | |
93613951 TT |
11077 | */$acl_libdirstem | */$acl_libdirstem/) |
11078 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` | |
11079 | if test "$name" = 'intl'; then | |
11080 | LIBINTL_PREFIX="$basedir" | |
11081 | fi | |
11082 | additional_includedir="$basedir/include" | |
11083 | ;; | |
11084 | */$acl_libdirstem2 | */$acl_libdirstem2/) | |
11085 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` | |
11086 | if test "$name" = 'intl'; then | |
11087 | LIBINTL_PREFIX="$basedir" | |
11088 | fi | |
57aa50d4 TT |
11089 | additional_includedir="$basedir/include" |
11090 | ;; | |
11091 | esac | |
11092 | if test "X$additional_includedir" != "X"; then | |
11093 | if test "X$additional_includedir" != "X/usr/include"; then | |
11094 | haveit= | |
11095 | if test "X$additional_includedir" = "X/usr/local/include"; then | |
11096 | if test -n "$GCC"; then | |
11097 | case $host_os in | |
93613951 | 11098 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; |
57aa50d4 TT |
11099 | esac |
11100 | fi | |
11101 | fi | |
11102 | if test -z "$haveit"; then | |
11103 | for x in $CPPFLAGS $INCINTL; do | |
b0cacab0 | 11104 | |
57aa50d4 TT |
11105 | acl_save_prefix="$prefix" |
11106 | prefix="$acl_final_prefix" | |
11107 | acl_save_exec_prefix="$exec_prefix" | |
11108 | exec_prefix="$acl_final_exec_prefix" | |
11109 | eval x=\"$x\" | |
11110 | exec_prefix="$acl_save_exec_prefix" | |
11111 | prefix="$acl_save_prefix" | |
21c84b71 | 11112 | |
57aa50d4 TT |
11113 | if test "X$x" = "X-I$additional_includedir"; then |
11114 | haveit=yes | |
11115 | break | |
11116 | fi | |
11117 | done | |
11118 | if test -z "$haveit"; then | |
11119 | if test -d "$additional_includedir"; then | |
11120 | INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" | |
11121 | fi | |
11122 | fi | |
11123 | fi | |
11124 | fi | |
11125 | fi | |
11126 | if test -n "$found_la"; then | |
11127 | save_libdir="$libdir" | |
11128 | case "$found_la" in | |
11129 | */* | *\\*) . "$found_la" ;; | |
11130 | *) . "./$found_la" ;; | |
11131 | esac | |
11132 | libdir="$save_libdir" | |
11133 | for dep in $dependency_libs; do | |
11134 | case "$dep" in | |
11135 | -L*) | |
11136 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` | |
93613951 TT |
11137 | if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ |
11138 | && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then | |
57aa50d4 | 11139 | haveit= |
93613951 TT |
11140 | if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ |
11141 | || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then | |
57aa50d4 TT |
11142 | if test -n "$GCC"; then |
11143 | case $host_os in | |
93613951 | 11144 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; |
57aa50d4 TT |
11145 | esac |
11146 | fi | |
11147 | fi | |
11148 | if test -z "$haveit"; then | |
11149 | haveit= | |
11150 | for x in $LDFLAGS $LIBINTL; do | |
50e1e10f | 11151 | |
57aa50d4 TT |
11152 | acl_save_prefix="$prefix" |
11153 | prefix="$acl_final_prefix" | |
11154 | acl_save_exec_prefix="$exec_prefix" | |
11155 | exec_prefix="$acl_final_exec_prefix" | |
11156 | eval x=\"$x\" | |
11157 | exec_prefix="$acl_save_exec_prefix" | |
11158 | prefix="$acl_save_prefix" | |
50e1e10f | 11159 | |
57aa50d4 TT |
11160 | if test "X$x" = "X-L$additional_libdir"; then |
11161 | haveit=yes | |
11162 | break | |
11163 | fi | |
11164 | done | |
11165 | if test -z "$haveit"; then | |
11166 | if test -d "$additional_libdir"; then | |
11167 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" | |
11168 | fi | |
11169 | fi | |
11170 | haveit= | |
11171 | for x in $LDFLAGS $LTLIBINTL; do | |
a4bf69d9 | 11172 | |
57aa50d4 TT |
11173 | acl_save_prefix="$prefix" |
11174 | prefix="$acl_final_prefix" | |
11175 | acl_save_exec_prefix="$exec_prefix" | |
11176 | exec_prefix="$acl_final_exec_prefix" | |
11177 | eval x=\"$x\" | |
11178 | exec_prefix="$acl_save_exec_prefix" | |
11179 | prefix="$acl_save_prefix" | |
50e1e10f | 11180 | |
57aa50d4 TT |
11181 | if test "X$x" = "X-L$additional_libdir"; then |
11182 | haveit=yes | |
11183 | break | |
11184 | fi | |
11185 | done | |
11186 | if test -z "$haveit"; then | |
11187 | if test -d "$additional_libdir"; then | |
11188 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" | |
11189 | fi | |
11190 | fi | |
11191 | fi | |
11192 | fi | |
11193 | ;; | |
11194 | -R*) | |
11195 | dir=`echo "X$dep" | sed -e 's/^X-R//'` | |
11196 | if test "$enable_rpath" != no; then | |
11197 | haveit= | |
11198 | for x in $rpathdirs; do | |
11199 | if test "X$x" = "X$dir"; then | |
11200 | haveit=yes | |
11201 | break | |
11202 | fi | |
11203 | done | |
11204 | if test -z "$haveit"; then | |
11205 | rpathdirs="$rpathdirs $dir" | |
11206 | fi | |
11207 | haveit= | |
11208 | for x in $ltrpathdirs; do | |
11209 | if test "X$x" = "X$dir"; then | |
11210 | haveit=yes | |
11211 | break | |
11212 | fi | |
11213 | done | |
11214 | if test -z "$haveit"; then | |
11215 | ltrpathdirs="$ltrpathdirs $dir" | |
11216 | fi | |
11217 | fi | |
11218 | ;; | |
11219 | -l*) | |
11220 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` | |
11221 | ;; | |
11222 | *.la) | |
11223 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` | |
11224 | ;; | |
11225 | *) | |
11226 | LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" | |
11227 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" | |
11228 | ;; | |
11229 | esac | |
11230 | done | |
11231 | fi | |
11232 | else | |
11233 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" | |
11234 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" | |
11235 | fi | |
11236 | fi | |
11237 | fi | |
11238 | done | |
11239 | done | |
11240 | if test "X$rpathdirs" != "X"; then | |
93613951 | 11241 | if test -n "$acl_hardcode_libdir_separator"; then |
57aa50d4 TT |
11242 | alldirs= |
11243 | for found_dir in $rpathdirs; do | |
93613951 | 11244 | alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" |
57aa50d4 TT |
11245 | done |
11246 | acl_save_libdir="$libdir" | |
11247 | libdir="$alldirs" | |
93613951 | 11248 | eval flag=\"$acl_hardcode_libdir_flag_spec\" |
57aa50d4 TT |
11249 | libdir="$acl_save_libdir" |
11250 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" | |
11251 | else | |
11252 | for found_dir in $rpathdirs; do | |
11253 | acl_save_libdir="$libdir" | |
11254 | libdir="$found_dir" | |
93613951 | 11255 | eval flag=\"$acl_hardcode_libdir_flag_spec\" |
57aa50d4 TT |
11256 | libdir="$acl_save_libdir" |
11257 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" | |
11258 | done | |
11259 | fi | |
11260 | fi | |
11261 | if test "X$ltrpathdirs" != "X"; then | |
11262 | for found_dir in $ltrpathdirs; do | |
11263 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" | |
11264 | done | |
11265 | fi | |
b0cacab0 | 11266 | |
93613951 TT |
11267 | |
11268 | ||
11269 | ||
11270 | ||
11271 | ||
57aa50d4 TT |
11272 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5 |
11273 | $as_echo_n "checking for GNU gettext in libintl... " >&6; } | |
93613951 | 11274 | if eval \${$gt_func_gnugettext_libintl+:} false; then : |
39fd3d4f | 11275 | $as_echo_n "(cached) " >&6 |
6c133523 | 11276 | else |
57aa50d4 TT |
11277 | gt_save_CPPFLAGS="$CPPFLAGS" |
11278 | CPPFLAGS="$CPPFLAGS $INCINTL" | |
11279 | gt_save_LIBS="$LIBS" | |
11280 | LIBS="$LIBS $LIBINTL" | |
11281 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11282 | /* end confdefs.h. */ | |
93613951 | 11283 | |
57aa50d4 | 11284 | #include <libintl.h> |
93613951 | 11285 | $gt_revision_test_code |
57aa50d4 TT |
11286 | extern int _nl_msg_cat_cntr; |
11287 | extern | |
11288 | #ifdef __cplusplus | |
11289 | "C" | |
11290 | #endif | |
93613951 TT |
11291 | const char *_nl_expand_alias (const char *); |
11292 | ||
57aa50d4 TT |
11293 | int |
11294 | main () | |
11295 | { | |
93613951 | 11296 | |
57aa50d4 | 11297 | bindtextdomain ("", ""); |
93613951 TT |
11298 | return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") |
11299 | ||
57aa50d4 TT |
11300 | ; |
11301 | return 0; | |
11302 | } | |
b0cacab0 | 11303 | _ACEOF |
57aa50d4 | 11304 | if ac_fn_c_try_link "$LINENO"; then : |
93613951 | 11305 | eval "$gt_func_gnugettext_libintl=yes" |
6c133523 | 11306 | else |
93613951 | 11307 | eval "$gt_func_gnugettext_libintl=no" |
6c133523 | 11308 | fi |
57aa50d4 TT |
11309 | rm -f core conftest.err conftest.$ac_objext \ |
11310 | conftest$ac_exeext conftest.$ac_ext | |
93613951 | 11311 | if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then |
57aa50d4 TT |
11312 | LIBS="$LIBS $LIBICONV" |
11313 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
da76d6b7 | 11314 | /* end confdefs.h. */ |
93613951 | 11315 | |
57aa50d4 | 11316 | #include <libintl.h> |
93613951 | 11317 | $gt_revision_test_code |
57aa50d4 TT |
11318 | extern int _nl_msg_cat_cntr; |
11319 | extern | |
11320 | #ifdef __cplusplus | |
11321 | "C" | |
da76d6b7 | 11322 | #endif |
93613951 TT |
11323 | const char *_nl_expand_alias (const char *); |
11324 | ||
57aa50d4 TT |
11325 | int |
11326 | main () | |
11327 | { | |
93613951 | 11328 | |
57aa50d4 | 11329 | bindtextdomain ("", ""); |
93613951 TT |
11330 | return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") |
11331 | ||
57aa50d4 TT |
11332 | ; |
11333 | return 0; | |
11334 | } | |
da76d6b7 | 11335 | _ACEOF |
57aa50d4 TT |
11336 | if ac_fn_c_try_link "$LINENO"; then : |
11337 | LIBINTL="$LIBINTL $LIBICONV" | |
93613951 TT |
11338 | LTLIBINTL="$LTLIBINTL $LTLIBICONV" |
11339 | eval "$gt_func_gnugettext_libintl=yes" | |
6c133523 TT |
11340 | |
11341 | fi | |
57aa50d4 TT |
11342 | rm -f core conftest.err conftest.$ac_objext \ |
11343 | conftest$ac_exeext conftest.$ac_ext | |
11344 | fi | |
11345 | CPPFLAGS="$gt_save_CPPFLAGS" | |
11346 | LIBS="$gt_save_LIBS" | |
da76d6b7 | 11347 | fi |
93613951 TT |
11348 | eval ac_res=\$$gt_func_gnugettext_libintl |
11349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
11350 | $as_echo "$ac_res" >&6; } | |
57aa50d4 | 11351 | fi |
b0cacab0 | 11352 | |
93613951 TT |
11353 | if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \ |
11354 | || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \ | |
57aa50d4 TT |
11355 | && test "$PACKAGE" != gettext-runtime \ |
11356 | && test "$PACKAGE" != gettext-tools; }; then | |
11357 | gt_use_preinstalled_gnugettext=yes | |
11358 | else | |
11359 | LIBINTL= | |
11360 | LTLIBINTL= | |
11361 | INCINTL= | |
11362 | fi | |
740837de | 11363 | |
b0cacab0 | 11364 | |
57aa50d4 TT |
11365 | if test "$gt_use_preinstalled_gnugettext" != "yes"; then |
11366 | nls_cv_use_gnu_gettext=yes | |
11367 | fi | |
11368 | fi | |
b0cacab0 | 11369 | |
57aa50d4 TT |
11370 | if test "$nls_cv_use_gnu_gettext" = "yes"; then |
11371 | BUILD_INCLUDED_LIBINTL=yes | |
11372 | USE_INCLUDED_LIBINTL=yes | |
93613951 TT |
11373 | LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD" |
11374 | LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD" | |
57aa50d4 TT |
11375 | LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` |
11376 | fi | |
b0cacab0 | 11377 | |
93613951 | 11378 | CATOBJEXT= |
57aa50d4 TT |
11379 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
11380 | || test "$nls_cv_use_gnu_gettext" = "yes"; then | |
11381 | CATOBJEXT=.gmo | |
11382 | fi | |
b0cacab0 TT |
11383 | |
11384 | ||
93613951 TT |
11385 | if test -n "$INTL_MACOSX_LIBS"; then |
11386 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ | |
11387 | || test "$nls_cv_use_gnu_gettext" = "yes"; then | |
11388 | LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" | |
11389 | LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" | |
11390 | fi | |
11391 | fi | |
11392 | ||
57aa50d4 TT |
11393 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
11394 | || test "$nls_cv_use_gnu_gettext" = "yes"; then | |
b0cacab0 | 11395 | |
57aa50d4 | 11396 | $as_echo "#define ENABLE_NLS 1" >>confdefs.h |
b0cacab0 | 11397 | |
57aa50d4 TT |
11398 | else |
11399 | USE_NLS=no | |
11400 | fi | |
11401 | fi | |
b0cacab0 | 11402 | |
57aa50d4 TT |
11403 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5 |
11404 | $as_echo_n "checking whether to use NLS... " >&6; } | |
11405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 | |
11406 | $as_echo "$USE_NLS" >&6; } | |
11407 | if test "$USE_NLS" = "yes"; then | |
11408 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5 | |
11409 | $as_echo_n "checking where the gettext function comes from... " >&6; } | |
11410 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then | |
93613951 | 11411 | if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then |
57aa50d4 TT |
11412 | gt_source="external libintl" |
11413 | else | |
11414 | gt_source="libc" | |
11415 | fi | |
11416 | else | |
11417 | gt_source="included intl directory" | |
11418 | fi | |
11419 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5 | |
11420 | $as_echo "$gt_source" >&6; } | |
11421 | fi | |
b0cacab0 | 11422 | |
57aa50d4 | 11423 | if test "$USE_NLS" = "yes"; then |
b0cacab0 | 11424 | |
57aa50d4 | 11425 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then |
93613951 | 11426 | if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then |
57aa50d4 TT |
11427 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5 |
11428 | $as_echo_n "checking how to link with libintl... " >&6; } | |
11429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 | |
11430 | $as_echo "$LIBINTL" >&6; } | |
b0cacab0 | 11431 | |
57aa50d4 TT |
11432 | for element in $INCINTL; do |
11433 | haveit= | |
11434 | for x in $CPPFLAGS; do | |
b0cacab0 | 11435 | |
57aa50d4 TT |
11436 | acl_save_prefix="$prefix" |
11437 | prefix="$acl_final_prefix" | |
11438 | acl_save_exec_prefix="$exec_prefix" | |
11439 | exec_prefix="$acl_final_exec_prefix" | |
11440 | eval x=\"$x\" | |
11441 | exec_prefix="$acl_save_exec_prefix" | |
11442 | prefix="$acl_save_prefix" | |
b0cacab0 | 11443 | |
57aa50d4 TT |
11444 | if test "X$x" = "X$element"; then |
11445 | haveit=yes | |
11446 | break | |
11447 | fi | |
11448 | done | |
11449 | if test -z "$haveit"; then | |
11450 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | |
11451 | fi | |
11452 | done | |
b0cacab0 | 11453 | |
57aa50d4 | 11454 | fi |
b0cacab0 TT |
11455 | |
11456 | ||
57aa50d4 | 11457 | $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h |
b0cacab0 TT |
11458 | |
11459 | ||
57aa50d4 | 11460 | $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h |
b0cacab0 | 11461 | |
57aa50d4 | 11462 | fi |
b0cacab0 | 11463 | |
57aa50d4 TT |
11464 | POSUB=po |
11465 | fi | |
b0cacab0 TT |
11466 | |
11467 | ||
57aa50d4 TT |
11468 | if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then |
11469 | BUILD_INCLUDED_LIBINTL=yes | |
11470 | fi | |
b0cacab0 TT |
11471 | |
11472 | ||
11473 | ||
11474 | ||
11475 | ||
57aa50d4 TT |
11476 | nls_cv_header_intl= |
11477 | nls_cv_header_libgt= | |
b0cacab0 | 11478 | |
57aa50d4 | 11479 | DATADIRNAME=share |
762c7c65 | 11480 | |
106ad96d | 11481 | |
57aa50d4 | 11482 | INSTOBJEXT=.mo |
106ad96d | 11483 | |
e7cc6f7d | 11484 | |
57aa50d4 | 11485 | GENCAT=gencat |
e7cc6f7d | 11486 | |
3d05802f | 11487 | |
93613951 TT |
11488 | INTLOBJS= |
11489 | if test "$USE_INCLUDED_LIBINTL" = yes; then | |
57aa50d4 TT |
11490 | INTLOBJS="\$(GETTOBJS)" |
11491 | fi | |
6ec9ef18 | 11492 | |
d7f45af8 | 11493 | |
57aa50d4 | 11494 | INTL_LIBTOOL_SUFFIX_PREFIX= |
50e1e10f | 11495 | |
50e1e10f | 11496 | |
b0cacab0 | 11497 | |
57aa50d4 | 11498 | INTLLIBS="$LIBINTL" |
e1052144 | 11499 | |
b0cacab0 | 11500 | |
93636bde | 11501 | |
93636bde | 11502 | |
b0cacab0 | 11503 | |
93636bde | 11504 | |
50e1e10f | 11505 | |
57aa50d4 TT |
11506 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
11507 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
11508 | set x ${MAKE-make} | |
11509 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
d6a4bcb5 | 11510 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
57aa50d4 TT |
11511 | $as_echo_n "(cached) " >&6 |
11512 | else | |
11513 | cat >conftest.make <<\_ACEOF | |
11514 | SHELL = /bin/sh | |
11515 | all: | |
11516 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
b0cacab0 | 11517 | _ACEOF |
d6a4bcb5 | 11518 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
57aa50d4 TT |
11519 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
11520 | *@@@%%%=?*=@@@%%%*) | |
11521 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
11522 | *) | |
11523 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
e1052144 | 11524 | esac |
57aa50d4 | 11525 | rm -f conftest.make |
b0cacab0 | 11526 | fi |
57aa50d4 TT |
11527 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
11528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
11529 | $as_echo "yes" >&6; } | |
11530 | SET_MAKE= | |
b0b9c4de | 11531 | else |
57aa50d4 TT |
11532 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11533 | $as_echo "no" >&6; } | |
11534 | SET_MAKE="MAKE=${MAKE-make}" | |
b0cacab0 | 11535 | fi |
b0cacab0 | 11536 | |
57aa50d4 TT |
11537 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5 |
11538 | $as_echo_n "checking for GNU make... " >&6; } | |
d6a4bcb5 | 11539 | if ${_cv_gnu_make_command+:} false; then : |
57aa50d4 | 11540 | $as_echo_n "(cached) " >&6 |
39fd3d4f | 11541 | else |
57aa50d4 | 11542 | _cv_gnu_make_command='' ; |
e703ba4b | 11543 | if test -n "$FORCE_NATIVE_MAKE" ; then |
f3bc1561 TT |
11544 | MAKES="make" |
11545 | else | |
11546 | MAKES="make gmake gnumake" | |
11547 | fi | |
11548 | for a in "$MAKE" $MAKES ; do | |
57aa50d4 TT |
11549 | if test -z "$a" ; then continue ; fi ; |
11550 | if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then | |
11551 | _cv_gnu_make_command=$a ; | |
11552 | break; | |
11553 | fi | |
11554 | done ; | |
50e1e10f | 11555 | |
50e1e10f | 11556 | fi |
57aa50d4 TT |
11557 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5 |
11558 | $as_echo "$_cv_gnu_make_command" >&6; } ; | |
11559 | if test "x$_cv_gnu_make_command" != "x" ; then | |
11560 | ifGNUmake='' ; | |
11561 | ifNotGNUmake='#' ; | |
11562 | else | |
11563 | ifGNUmake='#' ; | |
11564 | ifNotGNUmake='' ; | |
11565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5 | |
11566 | $as_echo "\"Not found\"" >&6; }; | |
11567 | fi | |
50e1e10f | 11568 | |
50e1e10f | 11569 | |
b0cacab0 | 11570 | |
57aa50d4 TT |
11571 | # Extract the first word of "ln", so it can be a program name with args. |
11572 | set dummy ln; ac_word=$2 | |
11573 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11574 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6a4bcb5 | 11575 | if ${ac_cv_path_LN+:} false; then : |
39fd3d4f | 11576 | $as_echo_n "(cached) " >&6 |
fff45483 | 11577 | else |
57aa50d4 TT |
11578 | case $LN in |
11579 | [\\/]* | ?:[\\/]*) | |
11580 | ac_cv_path_LN="$LN" # Let the user override the test with a path. | |
11581 | ;; | |
11582 | *) | |
11583 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11584 | for as_dir in $PATH | |
11585 | do | |
11586 | IFS=$as_save_IFS | |
11587 | test -z "$as_dir" && as_dir=. | |
11588 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d6a4bcb5 | 11589 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
57aa50d4 TT |
11590 | ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" |
11591 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11592 | break 2 | |
11593 | fi | |
11594 | done | |
11595 | done | |
11596 | IFS=$as_save_IFS | |
6c65d251 | 11597 | |
57aa50d4 TT |
11598 | test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln" |
11599 | ;; | |
e1052144 | 11600 | esac |
fff45483 | 11601 | fi |
57aa50d4 TT |
11602 | LN=$ac_cv_path_LN |
11603 | if test -n "$LN"; then | |
11604 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 | |
11605 | $as_echo "$LN" >&6; } | |
11606 | else | |
11607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11608 | $as_echo "no" >&6; } | |
fff45483 | 11609 | fi |
e1052144 | 11610 | |
fff45483 | 11611 | |
5abc0414 | 11612 | |
57aa50d4 TT |
11613 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
11614 | $as_echo_n "checking whether ln -s works... " >&6; } | |
11615 | LN_S=$as_ln_s | |
11616 | if test "$LN_S" = "ln -s"; then | |
11617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
11618 | $as_echo "yes" >&6; } | |
11619 | else | |
11620 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 | |
11621 | $as_echo "no, using $LN_S" >&6; } | |
fff45483 | 11622 | fi |
6c65d251 | 11623 | |
57aa50d4 TT |
11624 | # Extract the first word of "mv", so it can be a program name with args. |
11625 | set dummy mv; ac_word=$2 | |
11626 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11627 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6a4bcb5 | 11628 | if ${ac_cv_path_MV+:} false; then : |
39fd3d4f | 11629 | $as_echo_n "(cached) " >&6 |
fff45483 | 11630 | else |
57aa50d4 TT |
11631 | case $MV in |
11632 | [\\/]* | ?:[\\/]*) | |
11633 | ac_cv_path_MV="$MV" # Let the user override the test with a path. | |
11634 | ;; | |
11635 | *) | |
11636 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11637 | for as_dir in $PATH | |
11638 | do | |
11639 | IFS=$as_save_IFS | |
11640 | test -z "$as_dir" && as_dir=. | |
11641 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d6a4bcb5 | 11642 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
57aa50d4 TT |
11643 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
11644 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11645 | break 2 | |
11646 | fi | |
11647 | done | |
11648 | done | |
11649 | IFS=$as_save_IFS | |
6c65d251 | 11650 | |
57aa50d4 TT |
11651 | test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" |
11652 | ;; | |
e1052144 | 11653 | esac |
b0cacab0 | 11654 | fi |
57aa50d4 TT |
11655 | MV=$ac_cv_path_MV |
11656 | if test -n "$MV"; then | |
11657 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 | |
11658 | $as_echo "$MV" >&6; } | |
b0b9c4de | 11659 | else |
57aa50d4 TT |
11660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11661 | $as_echo "no" >&6; } | |
39fd3d4f SJR |
11662 | fi |
11663 | ||
39fd3d4f | 11664 | |
57aa50d4 TT |
11665 | # Extract the first word of "cp", so it can be a program name with args. |
11666 | set dummy cp; ac_word=$2 | |
11667 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11668 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6a4bcb5 | 11669 | if ${ac_cv_path_CP+:} false; then : |
39fd3d4f | 11670 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 11671 | else |
57aa50d4 TT |
11672 | case $CP in |
11673 | [\\/]* | ?:[\\/]*) | |
11674 | ac_cv_path_CP="$CP" # Let the user override the test with a path. | |
11675 | ;; | |
11676 | *) | |
11677 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11678 | for as_dir in $PATH | |
11679 | do | |
11680 | IFS=$as_save_IFS | |
11681 | test -z "$as_dir" && as_dir=. | |
11682 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d6a4bcb5 | 11683 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
57aa50d4 TT |
11684 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" |
11685 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11686 | break 2 | |
11687 | fi | |
11688 | done | |
11689 | done | |
11690 | IFS=$as_save_IFS | |
39fd3d4f | 11691 | |
57aa50d4 TT |
11692 | test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" |
11693 | ;; | |
e1052144 | 11694 | esac |
b0b9c4de | 11695 | fi |
57aa50d4 TT |
11696 | CP=$ac_cv_path_CP |
11697 | if test -n "$CP"; then | |
11698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 | |
11699 | $as_echo "$CP" >&6; } | |
b0cacab0 | 11700 | else |
57aa50d4 TT |
11701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11702 | $as_echo "no" >&6; } | |
b0b9c4de | 11703 | fi |
b0b9c4de | 11704 | |
6c65d251 | 11705 | |
57aa50d4 TT |
11706 | # Extract the first word of "rm", so it can be a program name with args. |
11707 | set dummy rm; ac_word=$2 | |
11708 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11709 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6a4bcb5 | 11710 | if ${ac_cv_path_RM+:} false; then : |
39fd3d4f | 11711 | $as_echo_n "(cached) " >&6 |
6928adc9 | 11712 | else |
57aa50d4 TT |
11713 | case $RM in |
11714 | [\\/]* | ?:[\\/]*) | |
11715 | ac_cv_path_RM="$RM" # Let the user override the test with a path. | |
11716 | ;; | |
11717 | *) | |
11718 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11719 | for as_dir in $PATH | |
11720 | do | |
11721 | IFS=$as_save_IFS | |
11722 | test -z "$as_dir" && as_dir=. | |
11723 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d6a4bcb5 | 11724 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
57aa50d4 TT |
11725 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
11726 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11727 | break 2 | |
11728 | fi | |
11729 | done | |
b0cacab0 | 11730 | done |
57aa50d4 | 11731 | IFS=$as_save_IFS |
6c65d251 | 11732 | |
57aa50d4 TT |
11733 | test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" |
11734 | ;; | |
e1052144 | 11735 | esac |
6928adc9 | 11736 | fi |
57aa50d4 TT |
11737 | RM=$ac_cv_path_RM |
11738 | if test -n "$RM"; then | |
11739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 | |
11740 | $as_echo "$RM" >&6; } | |
b0cacab0 | 11741 | else |
57aa50d4 TT |
11742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11743 | $as_echo "no" >&6; } | |
6928adc9 | 11744 | fi |
6928adc9 | 11745 | |
6c65d251 | 11746 | |
57aa50d4 TT |
11747 | # Extract the first word of "chmod", so it can be a program name with args. |
11748 | set dummy chmod; ac_word=$2 | |
11749 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11750 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6a4bcb5 | 11751 | if ${ac_cv_path_CHMOD+:} false; then : |
39fd3d4f | 11752 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 11753 | else |
57aa50d4 TT |
11754 | case $CHMOD in |
11755 | [\\/]* | ?:[\\/]*) | |
11756 | ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. | |
11757 | ;; | |
11758 | *) | |
11759 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11760 | for as_dir in $PATH | |
11761 | do | |
11762 | IFS=$as_save_IFS | |
11763 | test -z "$as_dir" && as_dir=. | |
11764 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d6a4bcb5 | 11765 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
57aa50d4 TT |
11766 | ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" |
11767 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11768 | break 2 | |
11769 | fi | |
11770 | done | |
11771 | done | |
11772 | IFS=$as_save_IFS | |
39fd3d4f | 11773 | |
57aa50d4 TT |
11774 | test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":" |
11775 | ;; | |
e1052144 | 11776 | esac |
b0cacab0 | 11777 | fi |
57aa50d4 TT |
11778 | CHMOD=$ac_cv_path_CHMOD |
11779 | if test -n "$CHMOD"; then | |
11780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 | |
11781 | $as_echo "$CHMOD" >&6; } | |
b0cacab0 | 11782 | else |
57aa50d4 TT |
11783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11784 | $as_echo "no" >&6; } | |
b0cacab0 | 11785 | fi |
39fd3d4f | 11786 | |
b0cacab0 | 11787 | |
57aa50d4 TT |
11788 | for ac_prog in gawk mawk nawk awk |
11789 | do | |
11790 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
11791 | set dummy $ac_prog; ac_word=$2 | |
11792 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11793 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6a4bcb5 | 11794 | if ${ac_cv_prog_AWK+:} false; then : |
39fd3d4f | 11795 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 11796 | else |
57aa50d4 TT |
11797 | if test -n "$AWK"; then |
11798 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
b0cacab0 | 11799 | else |
57aa50d4 TT |
11800 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11801 | for as_dir in $PATH | |
11802 | do | |
11803 | IFS=$as_save_IFS | |
11804 | test -z "$as_dir" && as_dir=. | |
11805 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d6a4bcb5 | 11806 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
57aa50d4 TT |
11807 | ac_cv_prog_AWK="$ac_prog" |
11808 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11809 | break 2 | |
11810 | fi | |
11811 | done | |
11812 | done | |
11813 | IFS=$as_save_IFS | |
b0cacab0 | 11814 | |
b0cacab0 | 11815 | fi |
57aa50d4 TT |
11816 | fi |
11817 | AWK=$ac_cv_prog_AWK | |
11818 | if test -n "$AWK"; then | |
11819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
11820 | $as_echo "$AWK" >&6; } | |
b0cacab0 | 11821 | else |
57aa50d4 TT |
11822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11823 | $as_echo "no" >&6; } | |
b0cacab0 | 11824 | fi |
b0cacab0 | 11825 | |
b0cacab0 | 11826 | |
57aa50d4 TT |
11827 | test -n "$AWK" && break |
11828 | done | |
b0cacab0 | 11829 | |
57aa50d4 TT |
11830 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
11831 | $as_echo_n "checking for egrep... " >&6; } | |
d6a4bcb5 | 11832 | if ${ac_cv_path_EGREP+:} false; then : |
57aa50d4 | 11833 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 11834 | else |
57aa50d4 TT |
11835 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
11836 | then ac_cv_path_EGREP="$GREP -E" | |
11837 | else | |
11838 | if test -z "$EGREP"; then | |
11839 | ac_path_EGREP_found=false | |
11840 | # Loop through the user's path and test for each of PROGNAME-LIST | |
11841 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11842 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
11843 | do | |
11844 | IFS=$as_save_IFS | |
11845 | test -z "$as_dir" && as_dir=. | |
11846 | for ac_prog in egrep; do | |
11847 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11848 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
d6a4bcb5 | 11849 | as_fn_executable_p "$ac_path_EGREP" || continue |
57aa50d4 TT |
11850 | # Check for GNU ac_path_EGREP and select it if it is found. |
11851 | # Check for GNU $ac_path_EGREP | |
11852 | case `"$ac_path_EGREP" --version 2>&1` in | |
11853 | *GNU*) | |
11854 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
11855 | *) | |
11856 | ac_count=0 | |
11857 | $as_echo_n 0123456789 >"conftest.in" | |
11858 | while : | |
11859 | do | |
11860 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
11861 | mv "conftest.tmp" "conftest.in" | |
11862 | cp "conftest.in" "conftest.nl" | |
11863 | $as_echo 'EGREP' >> "conftest.nl" | |
11864 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
11865 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
11866 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
11867 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
11868 | # Best one so far, save it but keep looking for a better one | |
11869 | ac_cv_path_EGREP="$ac_path_EGREP" | |
11870 | ac_path_EGREP_max=$ac_count | |
11871 | fi | |
11872 | # 10*(2^10) chars as input seems more than enough | |
11873 | test $ac_count -gt 10 && break | |
11874 | done | |
11875 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
e1052144 | 11876 | esac |
e1052144 | 11877 | |
57aa50d4 TT |
11878 | $ac_path_EGREP_found && break 3 |
11879 | done | |
b0cacab0 | 11880 | done |
57aa50d4 TT |
11881 | done |
11882 | IFS=$as_save_IFS | |
11883 | if test -z "$ac_cv_path_EGREP"; then | |
d6a4bcb5 | 11884 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
57aa50d4 | 11885 | fi |
b0cacab0 | 11886 | else |
57aa50d4 | 11887 | ac_cv_path_EGREP=$EGREP |
b0cacab0 | 11888 | fi |
e1052144 | 11889 | |
57aa50d4 | 11890 | fi |
b0cacab0 | 11891 | fi |
57aa50d4 TT |
11892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
11893 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
11894 | EGREP="$ac_cv_path_EGREP" | |
e1052144 | 11895 | |
b0cacab0 | 11896 | |
57aa50d4 TT |
11897 | # Extract the first word of "sed", so it can be a program name with args. |
11898 | set dummy sed; ac_word=$2 | |
11899 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11900 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6a4bcb5 | 11901 | if ${ac_cv_path_SED+:} false; then : |
57aa50d4 | 11902 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 11903 | else |
57aa50d4 TT |
11904 | case $SED in |
11905 | [\\/]* | ?:[\\/]*) | |
11906 | ac_cv_path_SED="$SED" # Let the user override the test with a path. | |
11907 | ;; | |
11908 | *) | |
11909 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11910 | for as_dir in $PATH | |
11911 | do | |
11912 | IFS=$as_save_IFS | |
11913 | test -z "$as_dir" && as_dir=. | |
11914 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d6a4bcb5 | 11915 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
57aa50d4 TT |
11916 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
11917 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11918 | break 2 | |
11919 | fi | |
b0cacab0 | 11920 | done |
57aa50d4 TT |
11921 | done |
11922 | IFS=$as_save_IFS | |
b0cacab0 | 11923 | |
57aa50d4 TT |
11924 | test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" |
11925 | ;; | |
b0cacab0 | 11926 | esac |
57aa50d4 TT |
11927 | fi |
11928 | SED=$ac_cv_path_SED | |
11929 | if test -n "$SED"; then | |
11930 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 | |
11931 | $as_echo "$SED" >&6; } | |
b0cacab0 | 11932 | else |
57aa50d4 TT |
11933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11934 | $as_echo "no" >&6; } | |
b0cacab0 | 11935 | fi |
e1052144 | 11936 | |
b0cacab0 | 11937 | |
57aa50d4 TT |
11938 | # Extract the first word of "perl", so it can be a program name with args. |
11939 | set dummy perl; ac_word=$2 | |
11940 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11941 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6a4bcb5 | 11942 | if ${ac_cv_path_PERL+:} false; then : |
57aa50d4 TT |
11943 | $as_echo_n "(cached) " >&6 |
11944 | else | |
11945 | case $PERL in | |
11946 | [\\/]* | ?:[\\/]*) | |
11947 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. | |
11948 | ;; | |
11949 | *) | |
11950 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11951 | for as_dir in $PATH | |
11952 | do | |
11953 | IFS=$as_save_IFS | |
11954 | test -z "$as_dir" && as_dir=. | |
11955 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d6a4bcb5 | 11956 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
57aa50d4 TT |
11957 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
11958 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11959 | break 2 | |
11960 | fi | |
b0cacab0 | 11961 | done |
57aa50d4 TT |
11962 | done |
11963 | IFS=$as_save_IFS | |
11964 | ||
11965 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl" | |
11966 | ;; | |
b0cacab0 | 11967 | esac |
57aa50d4 TT |
11968 | fi |
11969 | PERL=$ac_cv_path_PERL | |
11970 | if test -n "$PERL"; then | |
11971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 | |
11972 | $as_echo "$PERL" >&6; } | |
b0cacab0 | 11973 | else |
57aa50d4 TT |
11974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11975 | $as_echo "no" >&6; } | |
11976 | fi | |
b0cacab0 | 11977 | |
b0cacab0 | 11978 | |
57aa50d4 TT |
11979 | # Extract the first word of "ldconfig", so it can be a program name with args. |
11980 | set dummy ldconfig; ac_word=$2 | |
11981 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11982 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6a4bcb5 | 11983 | if ${ac_cv_path_LDCONFIG+:} false; then : |
57aa50d4 | 11984 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 11985 | else |
57aa50d4 TT |
11986 | case $LDCONFIG in |
11987 | [\\/]* | ?:[\\/]*) | |
11988 | ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path. | |
11989 | ;; | |
11990 | *) | |
11991 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11992 | for as_dir in $PATH | |
11993 | do | |
11994 | IFS=$as_save_IFS | |
11995 | test -z "$as_dir" && as_dir=. | |
11996 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d6a4bcb5 | 11997 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
57aa50d4 TT |
11998 | ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext" |
11999 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12000 | break 2 | |
12001 | fi | |
12002 | done | |
12003 | done | |
12004 | IFS=$as_save_IFS | |
b0cacab0 | 12005 | |
57aa50d4 TT |
12006 | test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":" |
12007 | ;; | |
12008 | esac | |
39fd3d4f | 12009 | fi |
57aa50d4 TT |
12010 | LDCONFIG=$ac_cv_path_LDCONFIG |
12011 | if test -n "$LDCONFIG"; then | |
12012 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5 | |
12013 | $as_echo "$LDCONFIG" >&6; } | |
12014 | else | |
12015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12016 | $as_echo "no" >&6; } | |
b0cacab0 | 12017 | fi |
39fd3d4f SJR |
12018 | |
12019 | ||
57aa50d4 TT |
12020 | if test -n "$ac_tool_prefix"; then |
12021 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
12022 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
12023 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12024 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6a4bcb5 | 12025 | if ${ac_cv_prog_AR+:} false; then : |
57aa50d4 TT |
12026 | $as_echo_n "(cached) " >&6 |
12027 | else | |
12028 | if test -n "$AR"; then | |
12029 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
12030 | else | |
12031 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12032 | for as_dir in $PATH | |
12033 | do | |
12034 | IFS=$as_save_IFS | |
12035 | test -z "$as_dir" && as_dir=. | |
12036 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d6a4bcb5 | 12037 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
57aa50d4 TT |
12038 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
12039 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12040 | break 2 | |
12041 | fi | |
12042 | done | |
12043 | done | |
12044 | IFS=$as_save_IFS | |
39fd3d4f | 12045 | |
57aa50d4 TT |
12046 | fi |
12047 | fi | |
12048 | AR=$ac_cv_prog_AR | |
12049 | if test -n "$AR"; then | |
12050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
12051 | $as_echo "$AR" >&6; } | |
12052 | else | |
12053 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12054 | $as_echo "no" >&6; } | |
12055 | fi | |
39fd3d4f | 12056 | |
b0cacab0 | 12057 | |
57aa50d4 TT |
12058 | fi |
12059 | if test -z "$ac_cv_prog_AR"; then | |
12060 | ac_ct_AR=$AR | |
12061 | # Extract the first word of "ar", so it can be a program name with args. | |
12062 | set dummy ar; ac_word=$2 | |
12063 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12064 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6a4bcb5 | 12065 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
39fd3d4f | 12066 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 12067 | else |
57aa50d4 TT |
12068 | if test -n "$ac_ct_AR"; then |
12069 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
b0cacab0 | 12070 | else |
57aa50d4 TT |
12071 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12072 | for as_dir in $PATH | |
12073 | do | |
12074 | IFS=$as_save_IFS | |
12075 | test -z "$as_dir" && as_dir=. | |
12076 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d6a4bcb5 | 12077 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
57aa50d4 TT |
12078 | ac_cv_prog_ac_ct_AR="ar" |
12079 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12080 | break 2 | |
12081 | fi | |
12082 | done | |
12083 | done | |
12084 | IFS=$as_save_IFS | |
b0cacab0 | 12085 | |
b0cacab0 | 12086 | fi |
57aa50d4 TT |
12087 | fi |
12088 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
12089 | if test -n "$ac_ct_AR"; then | |
12090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
12091 | $as_echo "$ac_ct_AR" >&6; } | |
b0cacab0 | 12092 | else |
57aa50d4 TT |
12093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12094 | $as_echo "no" >&6; } | |
12095 | fi | |
b0cacab0 | 12096 | |
57aa50d4 TT |
12097 | if test "x$ac_ct_AR" = x; then |
12098 | AR="ar" | |
12099 | else | |
12100 | case $cross_compiling:$ac_tool_warned in | |
12101 | yes:) | |
12102 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
12103 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
12104 | ac_tool_warned=yes ;; | |
e1052144 | 12105 | esac |
57aa50d4 TT |
12106 | AR=$ac_ct_AR |
12107 | fi | |
b0cacab0 | 12108 | else |
57aa50d4 | 12109 | AR="$ac_cv_prog_AR" |
b0cacab0 | 12110 | fi |
e1052144 | 12111 | |
57aa50d4 TT |
12112 | if test -n "$ac_tool_prefix"; then |
12113 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
12114 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
12115 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12116 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6a4bcb5 | 12117 | if ${ac_cv_prog_RANLIB+:} false; then : |
57aa50d4 | 12118 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 12119 | else |
57aa50d4 TT |
12120 | if test -n "$RANLIB"; then |
12121 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
12122 | else | |
12123 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12124 | for as_dir in $PATH | |
12125 | do | |
12126 | IFS=$as_save_IFS | |
12127 | test -z "$as_dir" && as_dir=. | |
12128 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d6a4bcb5 | 12129 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
57aa50d4 TT |
12130 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
12131 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12132 | break 2 | |
12133 | fi | |
12134 | done | |
b0cacab0 | 12135 | done |
57aa50d4 | 12136 | IFS=$as_save_IFS |
b0cacab0 | 12137 | |
b0cacab0 | 12138 | fi |
57aa50d4 TT |
12139 | fi |
12140 | RANLIB=$ac_cv_prog_RANLIB | |
12141 | if test -n "$RANLIB"; then | |
12142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
12143 | $as_echo "$RANLIB" >&6; } | |
b0cacab0 | 12144 | else |
57aa50d4 TT |
12145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12146 | $as_echo "no" >&6; } | |
b0cacab0 | 12147 | fi |
b0cacab0 | 12148 | |
b0cacab0 | 12149 | |
57aa50d4 TT |
12150 | fi |
12151 | if test -z "$ac_cv_prog_RANLIB"; then | |
12152 | ac_ct_RANLIB=$RANLIB | |
12153 | # Extract the first word of "ranlib", so it can be a program name with args. | |
12154 | set dummy ranlib; ac_word=$2 | |
12155 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12156 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6a4bcb5 | 12157 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
57aa50d4 TT |
12158 | $as_echo_n "(cached) " >&6 |
12159 | else | |
12160 | if test -n "$ac_ct_RANLIB"; then | |
12161 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
b0cacab0 | 12162 | else |
57aa50d4 TT |
12163 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12164 | for as_dir in $PATH | |
12165 | do | |
12166 | IFS=$as_save_IFS | |
12167 | test -z "$as_dir" && as_dir=. | |
12168 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d6a4bcb5 | 12169 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
57aa50d4 TT |
12170 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
12171 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12172 | break 2 | |
12173 | fi | |
12174 | done | |
12175 | done | |
12176 | IFS=$as_save_IFS | |
29a5deed | 12177 | |
b0cacab0 | 12178 | fi |
57aa50d4 TT |
12179 | fi |
12180 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
12181 | if test -n "$ac_ct_RANLIB"; then | |
12182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
12183 | $as_echo "$ac_ct_RANLIB" >&6; } | |
b0cacab0 | 12184 | else |
57aa50d4 TT |
12185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12186 | $as_echo "no" >&6; } | |
12187 | fi | |
b0cacab0 | 12188 | |
57aa50d4 TT |
12189 | if test "x$ac_ct_RANLIB" = x; then |
12190 | RANLIB=":" | |
b0cacab0 | 12191 | else |
57aa50d4 TT |
12192 | case $cross_compiling:$ac_tool_warned in |
12193 | yes:) | |
12194 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
12195 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
12196 | ac_tool_warned=yes ;; | |
e1052144 | 12197 | esac |
57aa50d4 TT |
12198 | RANLIB=$ac_ct_RANLIB |
12199 | fi | |
b0cacab0 | 12200 | else |
57aa50d4 | 12201 | RANLIB="$ac_cv_prog_RANLIB" |
b0cacab0 | 12202 | fi |
e1052144 | 12203 | |
57aa50d4 TT |
12204 | if test -n "$ac_tool_prefix"; then |
12205 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
12206 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
12207 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12208 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6a4bcb5 | 12209 | if ${ac_cv_prog_STRIP+:} false; then : |
57aa50d4 | 12210 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 12211 | else |
57aa50d4 TT |
12212 | if test -n "$STRIP"; then |
12213 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
12214 | else | |
12215 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12216 | for as_dir in $PATH | |
12217 | do | |
12218 | IFS=$as_save_IFS | |
12219 | test -z "$as_dir" && as_dir=. | |
12220 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d6a4bcb5 | 12221 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
57aa50d4 TT |
12222 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
12223 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12224 | break 2 | |
12225 | fi | |
12226 | done | |
12227 | done | |
12228 | IFS=$as_save_IFS | |
b0cacab0 | 12229 | |
b0cacab0 | 12230 | fi |
b0cacab0 | 12231 | fi |
57aa50d4 TT |
12232 | STRIP=$ac_cv_prog_STRIP |
12233 | if test -n "$STRIP"; then | |
12234 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
12235 | $as_echo "$STRIP" >&6; } | |
12236 | else | |
12237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12238 | $as_echo "no" >&6; } | |
b0cacab0 | 12239 | fi |
e1052144 | 12240 | |
b0cacab0 | 12241 | |
57aa50d4 TT |
12242 | fi |
12243 | if test -z "$ac_cv_prog_STRIP"; then | |
12244 | ac_ct_STRIP=$STRIP | |
12245 | # Extract the first word of "strip", so it can be a program name with args. | |
12246 | set dummy strip; ac_word=$2 | |
12247 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12248 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6a4bcb5 | 12249 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
39fd3d4f | 12250 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 12251 | else |
57aa50d4 TT |
12252 | if test -n "$ac_ct_STRIP"; then |
12253 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
12254 | else | |
12255 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12256 | for as_dir in $PATH | |
12257 | do | |
12258 | IFS=$as_save_IFS | |
12259 | test -z "$as_dir" && as_dir=. | |
12260 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d6a4bcb5 | 12261 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
57aa50d4 TT |
12262 | ac_cv_prog_ac_ct_STRIP="strip" |
12263 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12264 | break 2 | |
12265 | fi | |
12266 | done | |
12267 | done | |
12268 | IFS=$as_save_IFS | |
b0cacab0 | 12269 | |
b0cacab0 | 12270 | fi |
57aa50d4 TT |
12271 | fi |
12272 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
12273 | if test -n "$ac_ct_STRIP"; then | |
12274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
12275 | $as_echo "$ac_ct_STRIP" >&6; } | |
b0cacab0 | 12276 | else |
57aa50d4 TT |
12277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12278 | $as_echo "no" >&6; } | |
12279 | fi | |
b0cacab0 | 12280 | |
57aa50d4 TT |
12281 | if test "x$ac_ct_STRIP" = x; then |
12282 | STRIP=":" | |
b0cacab0 | 12283 | else |
57aa50d4 TT |
12284 | case $cross_compiling:$ac_tool_warned in |
12285 | yes:) | |
12286 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
12287 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
12288 | ac_tool_warned=yes ;; | |
e1052144 | 12289 | esac |
57aa50d4 TT |
12290 | STRIP=$ac_ct_STRIP |
12291 | fi | |
b0cacab0 | 12292 | else |
57aa50d4 | 12293 | STRIP="$ac_cv_prog_STRIP" |
b0cacab0 | 12294 | fi |
e1052144 | 12295 | |
57aa50d4 TT |
12296 | # Extract the first word of "makeinfo", so it can be a program name with args. |
12297 | set dummy makeinfo; ac_word=$2 | |
12298 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12299 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6a4bcb5 | 12300 | if ${ac_cv_prog_MAKEINFO+:} false; then : |
57aa50d4 | 12301 | $as_echo_n "(cached) " >&6 |
07a0db15 | 12302 | else |
57aa50d4 TT |
12303 | if test -n "$MAKEINFO"; then |
12304 | ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. | |
12305 | else | |
12306 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12307 | for as_dir in $PATH | |
12308 | do | |
12309 | IFS=$as_save_IFS | |
12310 | test -z "$as_dir" && as_dir=. | |
12311 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d6a4bcb5 | 12312 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
57aa50d4 TT |
12313 | ac_cv_prog_MAKEINFO="makeinfo" |
12314 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12315 | break 2 | |
12316 | fi | |
12317 | done | |
12318 | done | |
12319 | IFS=$as_save_IFS | |
b0cacab0 | 12320 | |
b0cacab0 TT |
12321 | fi |
12322 | fi | |
57aa50d4 TT |
12323 | MAKEINFO=$ac_cv_prog_MAKEINFO |
12324 | if test -n "$MAKEINFO"; then | |
12325 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 | |
12326 | $as_echo "$MAKEINFO" >&6; } | |
b0cacab0 | 12327 | else |
57aa50d4 TT |
12328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12329 | $as_echo "no" >&6; } | |
07a0db15 | 12330 | fi |
29a5deed TT |
12331 | |
12332 | ||
57aa50d4 | 12333 | if test "_$MAKEINFO" = "_"; then |
ca1de98a | 12334 | MAKEINFO="echo Makeinfo is missing. Info documentation will not be built." |
57aa50d4 TT |
12335 | else |
12336 | case "$MAKEINFO" in | |
12337 | */missing.*) | |
12338 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | |
12339 | *** Makeinfo is missing. Info documentation will not be built." >&5 | |
12340 | $as_echo "$as_me: WARNING: | |
12341 | *** Makeinfo is missing. Info documentation will not be built." >&2;} | |
12342 | ;; | |
12343 | *) | |
12344 | ;; | |
12345 | esac | |
b0cacab0 | 12346 | fi |
29a5deed | 12347 | |
b0cacab0 | 12348 | |
57aa50d4 TT |
12349 | # See if we need a separate native compiler. |
12350 | if test $cross_compiling = no; then | |
12351 | BUILD_CC="$CC" | |
b0cacab0 | 12352 | |
b0cacab0 | 12353 | else |
57aa50d4 TT |
12354 | for ac_prog in gcc cc |
12355 | do | |
12356 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
12357 | set dummy $ac_prog; ac_word=$2 | |
12358 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12359 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6a4bcb5 | 12360 | if ${ac_cv_prog_BUILD_CC+:} false; then : |
57aa50d4 | 12361 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 12362 | else |
57aa50d4 TT |
12363 | if test -n "$BUILD_CC"; then |
12364 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. | |
12365 | else | |
12366 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12367 | for as_dir in $PATH | |
12368 | do | |
12369 | IFS=$as_save_IFS | |
12370 | test -z "$as_dir" && as_dir=. | |
12371 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d6a4bcb5 | 12372 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
57aa50d4 TT |
12373 | ac_cv_prog_BUILD_CC="$ac_prog" |
12374 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12375 | break 2 | |
12376 | fi | |
12377 | done | |
12378 | done | |
12379 | IFS=$as_save_IFS | |
b0cacab0 | 12380 | |
b0cacab0 | 12381 | fi |
57aa50d4 TT |
12382 | fi |
12383 | BUILD_CC=$ac_cv_prog_BUILD_CC | |
12384 | if test -n "$BUILD_CC"; then | |
12385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 | |
12386 | $as_echo "$BUILD_CC" >&6; } | |
07a0db15 | 12387 | else |
57aa50d4 TT |
12388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12389 | $as_echo "no" >&6; } | |
b0cacab0 | 12390 | fi |
b0cacab0 | 12391 | |
b0cacab0 | 12392 | |
57aa50d4 TT |
12393 | test -n "$BUILD_CC" && break |
12394 | done | |
b0cacab0 | 12395 | |
57aa50d4 | 12396 | fi |
3829c16c | 12397 | 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/fsmap.h linux/major.h linux/loop.h linux/types.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 sys/xattr.h |
57aa50d4 TT |
12398 | do : |
12399 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12400 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
d6a4bcb5 | 12401 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
57aa50d4 TT |
12402 | cat >>confdefs.h <<_ACEOF |
12403 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
b0cacab0 | 12404 | _ACEOF |
b0cacab0 | 12405 | |
b0cacab0 | 12406 | fi |
e1052144 | 12407 | |
b0cacab0 | 12408 | done |
93636bde | 12409 | |
ec3a69bb MA |
12410 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a dd(1) program that supports iflag=fullblock" >&5 |
12411 | $as_echo_n "checking for a dd(1) program that supports iflag=fullblock... " >&6; } | |
12412 | DD= | |
12413 | for i in dd gdd ; do | |
12414 | if "$i" if=/dev/null of=/dev/null count=1 bs=10k 2>/dev/null iflag=fullblock oflag=append ; then | |
12415 | DD=$i | |
12416 | break | |
12417 | fi | |
12418 | done | |
12419 | if test -n "$DD" ; then | |
12420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5 | |
12421 | $as_echo "$DD" >&6; } | |
12422 | else | |
12423 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found, using dd" >&5 | |
12424 | $as_echo "not found, using dd" >&6; } | |
12425 | DD=dd | |
12426 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&5 | |
12427 | $as_echo "$as_me: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&2;} | |
12428 | fi | |
12429 | ||
12430 | ||
57aa50d4 TT |
12431 | for ac_header in net/if.h |
12432 | do : | |
12433 | ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" " | |
12434 | #if HAVE_SYS_TYPES_H | |
12435 | #include <sys/types.h> | |
12436 | #endif | |
12437 | #if HAVE_SYS_SOCKET | |
12438 | #include <sys/socket.h> | |
12439 | #endif | |
29a5deed | 12440 | |
57aa50d4 | 12441 | " |
d6a4bcb5 | 12442 | if test "x$ac_cv_header_net_if_h" = xyes; then : |
57aa50d4 TT |
12443 | cat >>confdefs.h <<_ACEOF |
12444 | #define HAVE_NET_IF_H 1 | |
b0cacab0 | 12445 | _ACEOF |
b0cacab0 | 12446 | |
b0cacab0 | 12447 | fi |
e1052144 | 12448 | |
b0cacab0 | 12449 | done |
b0cacab0 | 12450 | |
57aa50d4 TT |
12451 | for ac_func in vprintf |
12452 | do : | |
12453 | ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" | |
d6a4bcb5 | 12454 | if test "x$ac_cv_func_vprintf" = xyes; then : |
57aa50d4 TT |
12455 | cat >>confdefs.h <<_ACEOF |
12456 | #define HAVE_VPRINTF 1 | |
b0cacab0 | 12457 | _ACEOF |
b0cacab0 | 12458 | |
57aa50d4 | 12459 | ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" |
d6a4bcb5 | 12460 | if test "x$ac_cv_func__doprnt" = xyes; then : |
b0cacab0 | 12461 | |
57aa50d4 | 12462 | $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h |
b0cacab0 | 12463 | |
50e1e10f | 12464 | fi |
29a5deed | 12465 | |
57aa50d4 TT |
12466 | fi |
12467 | done | |
29a5deed TT |
12468 | |
12469 | ||
57aa50d4 TT |
12470 | ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h> |
12471 | " | |
d6a4bcb5 | 12472 | if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then : |
d1154eb4 TT |
12473 | |
12474 | $as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h | |
50e1e10f | 12475 | |
2873927d TT |
12476 | fi |
12477 | ||
12478 | ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default" | |
12479 | if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then : | |
12480 | ||
12481 | cat >>confdefs.h <<_ACEOF | |
12482 | #define HAVE_STRUCT_STAT_ST_ATIM 1 | |
12483 | _ACEOF | |
12484 | ||
12485 | ||
b0cacab0 | 12486 | fi |
93636bde | 12487 | |
57aa50d4 TT |
12488 | ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h> |
12489 | " | |
d6a4bcb5 | 12490 | if test "x$ac_cv_type_ssize_t" = xyes; then : |
d1154eb4 TT |
12491 | |
12492 | $as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h | |
b0cacab0 | 12493 | |
57aa50d4 | 12494 | fi |
b0cacab0 | 12495 | |
57aa50d4 TT |
12496 | ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h> |
12497 | " | |
d6a4bcb5 | 12498 | if test "x$ac_cv_have_decl_llseek" = xyes; then : |
d1154eb4 TT |
12499 | |
12500 | $as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h | |
b0cacab0 | 12501 | |
b0cacab0 | 12502 | fi |
e1052144 | 12503 | |
57aa50d4 TT |
12504 | ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE |
12505 | #define _LARGEFILE64_SOURCE | |
12506 | #include <unistd.h> | |
12507 | " | |
d6a4bcb5 | 12508 | if test "x$ac_cv_have_decl_lseek64" = xyes; then : |
d1154eb4 TT |
12509 | |
12510 | $as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h | |
b0cacab0 | 12511 | |
b0cacab0 | 12512 | fi |
b0cacab0 | 12513 | |
57aa50d4 TT |
12514 | # The cast to long int works around a bug in the HP C Compiler |
12515 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
12516 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
12517 | # This bug is HP SR number 8606223364. | |
12518 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 | |
12519 | $as_echo_n "checking size of short... " >&6; } | |
d6a4bcb5 | 12520 | if ${ac_cv_sizeof_short+:} false; then : |
57aa50d4 | 12521 | $as_echo_n "(cached) " >&6 |
07a0db15 | 12522 | else |
57aa50d4 | 12523 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : |
b0cacab0 | 12524 | |
b0cacab0 | 12525 | else |
57aa50d4 TT |
12526 | if test "$ac_cv_type_short" = yes; then |
12527 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
12528 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d6a4bcb5 TB |
12529 | as_fn_error 77 "cannot compute sizeof (short) |
12530 | See \`config.log' for more details" "$LINENO" 5; } | |
57aa50d4 TT |
12531 | else |
12532 | ac_cv_sizeof_short=0 | |
12533 | fi | |
07a0db15 | 12534 | fi |
b0cacab0 | 12535 | |
b0cacab0 | 12536 | fi |
57aa50d4 TT |
12537 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 |
12538 | $as_echo "$ac_cv_sizeof_short" >&6; } | |
e1052144 | 12539 | |
93636bde | 12540 | |
57aa50d4 TT |
12541 | |
12542 | cat >>confdefs.h <<_ACEOF | |
12543 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
b0cacab0 | 12544 | _ACEOF |
57aa50d4 TT |
12545 | |
12546 | ||
12547 | # The cast to long int works around a bug in the HP C Compiler | |
12548 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
12549 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
12550 | # This bug is HP SR number 8606223364. | |
12551 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 | |
12552 | $as_echo_n "checking size of int... " >&6; } | |
d6a4bcb5 | 12553 | if ${ac_cv_sizeof_int+:} false; then : |
57aa50d4 | 12554 | $as_echo_n "(cached) " >&6 |
07a0db15 | 12555 | else |
57aa50d4 | 12556 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : |
93636bde | 12557 | |
57aa50d4 TT |
12558 | else |
12559 | if test "$ac_cv_type_int" = yes; then | |
12560 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
12561 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d6a4bcb5 TB |
12562 | as_fn_error 77 "cannot compute sizeof (int) |
12563 | See \`config.log' for more details" "$LINENO" 5; } | |
57aa50d4 TT |
12564 | else |
12565 | ac_cv_sizeof_int=0 | |
12566 | fi | |
07a0db15 | 12567 | fi |
e1052144 | 12568 | |
b0cacab0 | 12569 | fi |
57aa50d4 TT |
12570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 |
12571 | $as_echo "$ac_cv_sizeof_int" >&6; } | |
e1052144 | 12572 | |
93636bde | 12573 | |
57aa50d4 TT |
12574 | |
12575 | cat >>confdefs.h <<_ACEOF | |
12576 | #define SIZEOF_INT $ac_cv_sizeof_int | |
b0cacab0 | 12577 | _ACEOF |
b0cacab0 | 12578 | |
e1052144 | 12579 | |
57aa50d4 TT |
12580 | # The cast to long int works around a bug in the HP C Compiler |
12581 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
12582 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
12583 | # This bug is HP SR number 8606223364. | |
12584 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 | |
12585 | $as_echo_n "checking size of long... " >&6; } | |
d6a4bcb5 | 12586 | if ${ac_cv_sizeof_long+:} false; then : |
57aa50d4 TT |
12587 | $as_echo_n "(cached) " >&6 |
12588 | else | |
12589 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : | |
12590 | ||
12591 | else | |
12592 | if test "$ac_cv_type_long" = yes; then | |
12593 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
39fd3d4f | 12594 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
d6a4bcb5 TB |
12595 | as_fn_error 77 "cannot compute sizeof (long) |
12596 | See \`config.log' for more details" "$LINENO" 5; } | |
29a5deed | 12597 | else |
57aa50d4 TT |
12598 | ac_cv_sizeof_long=0 |
12599 | fi | |
12600 | fi | |
39fd3d4f | 12601 | |
57aa50d4 TT |
12602 | fi |
12603 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 | |
12604 | $as_echo "$ac_cv_sizeof_long" >&6; } | |
39fd3d4f | 12605 | |
57aa50d4 TT |
12606 | |
12607 | ||
12608 | cat >>confdefs.h <<_ACEOF | |
12609 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
39fd3d4f | 12610 | _ACEOF |
57aa50d4 TT |
12611 | |
12612 | ||
12613 | # The cast to long int works around a bug in the HP C Compiler | |
12614 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
12615 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
12616 | # This bug is HP SR number 8606223364. | |
12617 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 | |
12618 | $as_echo_n "checking size of long long... " >&6; } | |
d6a4bcb5 | 12619 | if ${ac_cv_sizeof_long_long+:} false; then : |
57aa50d4 | 12620 | $as_echo_n "(cached) " >&6 |
39fd3d4f | 12621 | else |
57aa50d4 | 12622 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : |
39fd3d4f | 12623 | |
57aa50d4 TT |
12624 | else |
12625 | if test "$ac_cv_type_long_long" = yes; then | |
12626 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
39fd3d4f | 12627 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
d6a4bcb5 TB |
12628 | as_fn_error 77 "cannot compute sizeof (long long) |
12629 | See \`config.log' for more details" "$LINENO" 5; } | |
39fd3d4f SJR |
12630 | else |
12631 | ac_cv_sizeof_long_long=0 | |
12632 | fi | |
12633 | fi | |
57aa50d4 | 12634 | |
39fd3d4f | 12635 | fi |
57aa50d4 | 12636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 |
39fd3d4f SJR |
12637 | $as_echo "$ac_cv_sizeof_long_long" >&6; } |
12638 | ||
12639 | ||
12640 | ||
12641 | cat >>confdefs.h <<_ACEOF | |
12642 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
12643 | _ACEOF | |
12644 | ||
12645 | ||
cc68e8a6 TT |
12646 | # The cast to long int works around a bug in the HP C Compiler |
12647 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
12648 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
12649 | # This bug is HP SR number 8606223364. | |
12650 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 | |
12651 | $as_echo_n "checking size of off_t... " >&6; } | |
12652 | if ${ac_cv_sizeof_off_t+:} false; then : | |
12653 | $as_echo_n "(cached) " >&6 | |
12654 | else | |
12655 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then : | |
12656 | ||
12657 | else | |
12658 | if test "$ac_cv_type_off_t" = yes; then | |
12659 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
12660 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
12661 | as_fn_error 77 "cannot compute sizeof (off_t) | |
12662 | See \`config.log' for more details" "$LINENO" 5; } | |
12663 | else | |
12664 | ac_cv_sizeof_off_t=0 | |
12665 | fi | |
12666 | fi | |
12667 | ||
12668 | fi | |
12669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 | |
12670 | $as_echo "$ac_cv_sizeof_off_t" >&6; } | |
12671 | ||
12672 | ||
12673 | ||
12674 | cat >>confdefs.h <<_ACEOF | |
12675 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t | |
12676 | _ACEOF | |
12677 | ||
12678 | ||
2dd680f3 TT |
12679 | # The cast to long int works around a bug in the HP C Compiler |
12680 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
12681 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
12682 | # This bug is HP SR number 8606223364. | |
12683 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 | |
12684 | $as_echo_n "checking size of time_t... " >&6; } | |
12685 | if ${ac_cv_sizeof_time_t+:} false; then : | |
12686 | $as_echo_n "(cached) " >&6 | |
12687 | else | |
12688 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then : | |
12689 | ||
12690 | else | |
12691 | if test "$ac_cv_type_time_t" = yes; then | |
12692 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
12693 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
12694 | as_fn_error 77 "cannot compute sizeof (time_t) | |
12695 | See \`config.log' for more details" "$LINENO" 5; } | |
12696 | else | |
12697 | ac_cv_sizeof_time_t=0 | |
12698 | fi | |
12699 | fi | |
12700 | ||
12701 | fi | |
12702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 | |
12703 | $as_echo "$ac_cv_sizeof_time_t" >&6; } | |
12704 | ||
12705 | ||
12706 | ||
12707 | cat >>confdefs.h <<_ACEOF | |
12708 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t | |
12709 | _ACEOF | |
12710 | ||
12711 | ||
39fd3d4f SJR |
12712 | SIZEOF_SHORT=$ac_cv_sizeof_short |
12713 | SIZEOF_INT=$ac_cv_sizeof_int | |
12714 | SIZEOF_LONG=$ac_cv_sizeof_long | |
12715 | SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long | |
cc68e8a6 | 12716 | SIZEOF_OFF_T=$ac_cv_sizeof_off_t |
2dd680f3 TT |
12717 | SIZEOF_TIME_T=$ac_cv_sizeof_time_t |
12718 | ||
cc68e8a6 | 12719 | |
39fd3d4f SJR |
12720 | |
12721 | ||
12722 | ||
12723 | ||
57aa50d4 | 12724 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
39fd3d4f | 12725 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } |
d6a4bcb5 | 12726 | if ${ac_cv_c_bigendian+:} false; then : |
39fd3d4f SJR |
12727 | $as_echo_n "(cached) " >&6 |
12728 | else | |
12729 | ac_cv_c_bigendian=unknown | |
12730 | # See if we're dealing with a universal compiler. | |
57aa50d4 | 12731 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
39fd3d4f SJR |
12732 | /* end confdefs.h. */ |
12733 | #ifndef __APPLE_CC__ | |
12734 | not a universal capable compiler | |
12735 | #endif | |
12736 | typedef int dummy; | |
12737 | ||
12738 | _ACEOF | |
57aa50d4 | 12739 | if ac_fn_c_try_compile "$LINENO"; then : |
39fd3d4f SJR |
12740 | |
12741 | # Check for potential -arch flags. It is not universal unless | |
57aa50d4 TT |
12742 | # there are at least two -arch flags with different values. |
12743 | ac_arch= | |
12744 | ac_prev= | |
12745 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | |
12746 | if test -n "$ac_prev"; then | |
12747 | case $ac_word in | |
12748 | i?86 | x86_64 | ppc | ppc64) | |
12749 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | |
12750 | ac_arch=$ac_word | |
12751 | else | |
12752 | ac_cv_c_bigendian=universal | |
12753 | break | |
12754 | fi | |
12755 | ;; | |
12756 | esac | |
12757 | ac_prev= | |
12758 | elif test "x$ac_word" = "x-arch"; then | |
12759 | ac_prev=arch | |
12760 | fi | |
12761 | done | |
39fd3d4f | 12762 | fi |
39fd3d4f SJR |
12763 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
12764 | if test $ac_cv_c_bigendian = unknown; then | |
12765 | # See if sys/param.h defines the BYTE_ORDER macro. | |
57aa50d4 | 12766 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
39fd3d4f SJR |
12767 | /* end confdefs.h. */ |
12768 | #include <sys/types.h> | |
12769 | #include <sys/param.h> | |
12770 | ||
12771 | int | |
12772 | main () | |
12773 | { | |
12774 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ | |
12775 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | |
12776 | && LITTLE_ENDIAN) | |
12777 | bogus endian macros | |
12778 | #endif | |
12779 | ||
12780 | ; | |
12781 | return 0; | |
12782 | } | |
12783 | _ACEOF | |
57aa50d4 | 12784 | if ac_fn_c_try_compile "$LINENO"; then : |
39fd3d4f | 12785 | # It does; now see whether it defined to BIG_ENDIAN or not. |
57aa50d4 | 12786 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
39fd3d4f SJR |
12787 | /* end confdefs.h. */ |
12788 | #include <sys/types.h> | |
12789 | #include <sys/param.h> | |
12790 | ||
b0cacab0 TT |
12791 | int |
12792 | main () | |
07a0db15 | 12793 | { |
39fd3d4f SJR |
12794 | #if BYTE_ORDER != BIG_ENDIAN |
12795 | not big endian | |
12796 | #endif | |
b0cacab0 TT |
12797 | |
12798 | ; | |
12799 | return 0; | |
07a0db15 | 12800 | } |
b0cacab0 | 12801 | _ACEOF |
57aa50d4 | 12802 | if ac_fn_c_try_compile "$LINENO"; then : |
39fd3d4f | 12803 | ac_cv_c_bigendian=yes |
b0cacab0 | 12804 | else |
57aa50d4 | 12805 | ac_cv_c_bigendian=no |
fc6d9d51 | 12806 | fi |
39fd3d4f | 12807 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
39fd3d4f | 12808 | fi |
39fd3d4f SJR |
12809 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
12810 | fi | |
12811 | if test $ac_cv_c_bigendian = unknown; then | |
12812 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | |
57aa50d4 | 12813 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b0cacab0 | 12814 | /* end confdefs.h. */ |
39fd3d4f | 12815 | #include <limits.h> |
877eb6d9 | 12816 | |
b0cacab0 TT |
12817 | int |
12818 | main () | |
12819 | { | |
39fd3d4f SJR |
12820 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
12821 | bogus endian macros | |
12822 | #endif | |
b0cacab0 TT |
12823 | |
12824 | ; | |
12825 | return 0; | |
12826 | } | |
b0cacab0 | 12827 | _ACEOF |
57aa50d4 TT |
12828 | if ac_fn_c_try_compile "$LINENO"; then : |
12829 | # It does; now see whether it defined to _BIG_ENDIAN or not. | |
12830 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b0cacab0 | 12831 | /* end confdefs.h. */ |
39fd3d4f | 12832 | #include <limits.h> |
877eb6d9 | 12833 | |
b0cacab0 TT |
12834 | int |
12835 | main () | |
12836 | { | |
39fd3d4f SJR |
12837 | #ifndef _BIG_ENDIAN |
12838 | not big endian | |
12839 | #endif | |
b0cacab0 TT |
12840 | |
12841 | ; | |
12842 | return 0; | |
12843 | } | |
12844 | _ACEOF | |
57aa50d4 | 12845 | if ac_fn_c_try_compile "$LINENO"; then : |
877eb6d9 TT |
12846 | ac_cv_c_bigendian=yes |
12847 | else | |
57aa50d4 | 12848 | ac_cv_c_bigendian=no |
877eb6d9 | 12849 | fi |
e1052144 | 12850 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
39fd3d4f | 12851 | fi |
39fd3d4f SJR |
12852 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
12853 | fi | |
12854 | if test $ac_cv_c_bigendian = unknown; then | |
12855 | # Compile a test program. | |
57aa50d4 | 12856 | if test "$cross_compiling" = yes; then : |
39fd3d4f | 12857 | # Try to guess by grepping values from an object file. |
57aa50d4 | 12858 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b0cacab0 | 12859 | /* end confdefs.h. */ |
39fd3d4f SJR |
12860 | short int ascii_mm[] = |
12861 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | |
12862 | short int ascii_ii[] = | |
12863 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
12864 | int use_ascii (int i) { | |
12865 | return ascii_mm[i] + ascii_ii[i]; | |
12866 | } | |
12867 | short int ebcdic_ii[] = | |
12868 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
12869 | short int ebcdic_mm[] = | |
12870 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
12871 | int use_ebcdic (int i) { | |
12872 | return ebcdic_mm[i] + ebcdic_ii[i]; | |
12873 | } | |
12874 | extern int foo; | |
12875 | ||
b0cacab0 TT |
12876 | int |
12877 | main () | |
12878 | { | |
39fd3d4f | 12879 | return use_ascii (foo) == use_ebcdic (foo); |
b0cacab0 TT |
12880 | ; |
12881 | return 0; | |
12882 | } | |
12883 | _ACEOF | |
57aa50d4 | 12884 | if ac_fn_c_try_compile "$LINENO"; then : |
39fd3d4f SJR |
12885 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then |
12886 | ac_cv_c_bigendian=yes | |
12887 | fi | |
12888 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
12889 | if test "$ac_cv_c_bigendian" = unknown; then | |
12890 | ac_cv_c_bigendian=no | |
12891 | else | |
12892 | # finding both strings is unlikely to happen, but who knows? | |
12893 | ac_cv_c_bigendian=unknown | |
12894 | fi | |
12895 | fi | |
b0cacab0 | 12896 | fi |
e1052144 | 12897 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
877eb6d9 | 12898 | else |
57aa50d4 | 12899 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b0cacab0 | 12900 | /* end confdefs.h. */ |
e1052144 | 12901 | $ac_includes_default |
b0cacab0 TT |
12902 | int |
12903 | main () | |
12904 | { | |
e1052144 | 12905 | |
39fd3d4f SJR |
12906 | /* Are we little or big endian? From Harbison&Steele. */ |
12907 | union | |
12908 | { | |
12909 | long int l; | |
12910 | char c[sizeof (long int)]; | |
12911 | } u; | |
12912 | u.l = 1; | |
12913 | return u.c[sizeof (long int) - 1] == 1; | |
e1052144 TT |
12914 | |
12915 | ; | |
12916 | return 0; | |
877eb6d9 | 12917 | } |
b0cacab0 | 12918 | _ACEOF |
57aa50d4 | 12919 | if ac_fn_c_try_run "$LINENO"; then : |
877eb6d9 TT |
12920 | ac_cv_c_bigendian=no |
12921 | else | |
57aa50d4 | 12922 | ac_cv_c_bigendian=yes |
877eb6d9 | 12923 | fi |
57aa50d4 TT |
12924 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
12925 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
877eb6d9 | 12926 | fi |
e1052144 | 12927 | |
39fd3d4f | 12928 | fi |
877eb6d9 | 12929 | fi |
57aa50d4 | 12930 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
39fd3d4f SJR |
12931 | $as_echo "$ac_cv_c_bigendian" >&6; } |
12932 | case $ac_cv_c_bigendian in #( | |
12933 | yes) | |
57aa50d4 | 12934 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h |
39fd3d4f SJR |
12935 | ;; #( |
12936 | no) | |
12937 | ;; #( | |
12938 | universal) | |
07a0db15 | 12939 | |
57aa50d4 | 12940 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
39fd3d4f SJR |
12941 | |
12942 | ;; #( | |
12943 | *) | |
d6a4bcb5 | 12944 | as_fn_error $? "unknown endianness |
57aa50d4 | 12945 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
39fd3d4f | 12946 | esac |
877eb6d9 | 12947 | |
91f04685 CQ |
12948 | if test $cross_compiling = no; then |
12949 | BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh | |
12950 | else | |
12951 | CROSS_COMPILE="1" BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh | |
12952 | fi | |
4ea7ea00 TT |
12953 | ASM_TYPES_HEADER=./asm_types.h |
12954 | ||
488c75a6 TT |
12955 | echo "/* These defines are needed for the public ext2fs.h header file */" \ |
12956 | > public_config.h | |
12957 | if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then | |
12958 | uniq tmp_config.$$ >> public_config.h | |
12959 | else | |
12960 | echo "#undef HAVE_SYS_TYPES_H" >> public_config.h | |
12961 | fi | |
12962 | if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then | |
12963 | uniq tmp_config.$$ >> public_config.h | |
12964 | else | |
12965 | echo "#undef WORDS_BIGENDIAN" >> public_config.h | |
12966 | fi | |
12967 | rm -f tmp_config.$$ | |
12968 | PUBLIC_CONFIG_HEADER=./public_config.h | |
12969 | ||
b0cacab0 | 12970 | for ac_header in inttypes.h |
57aa50d4 TT |
12971 | do : |
12972 | ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default" | |
d6a4bcb5 | 12973 | if test "x$ac_cv_header_inttypes_h" = xyes; then : |
b0cacab0 | 12974 | cat >>confdefs.h <<_ACEOF |
57aa50d4 | 12975 | #define HAVE_INTTYPES_H 1 |
b0cacab0 TT |
12976 | _ACEOF |
12977 | ||
12978 | fi | |
12979 | ||
0c193f82 TT |
12980 | done |
12981 | ||
57aa50d4 | 12982 | ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default" |
d6a4bcb5 | 12983 | if test "x$ac_cv_type_intptr_t" = xyes; then : |
b0cacab0 TT |
12984 | |
12985 | cat >>confdefs.h <<_ACEOF | |
d2ee56d8 | 12986 | #define HAVE_INTPTR_T 1 |
b0cacab0 | 12987 | _ACEOF |
0c193f82 | 12988 | |
d2ee56d8 | 12989 | |
0c193f82 TT |
12990 | fi |
12991 | ||
57aa50d4 | 12992 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5 |
39fd3d4f | 12993 | $as_echo_n "checking whether struct stat has a st_flags field... " >&6; } |
d6a4bcb5 | 12994 | if ${e2fsprogs_cv_struct_st_flags+:} false; then : |
39fd3d4f | 12995 | $as_echo_n "(cached) " >&6 |
50e1e10f | 12996 | else |
57aa50d4 | 12997 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b0cacab0 | 12998 | /* end confdefs.h. */ |
50e1e10f | 12999 | #include <sys/stat.h> |
b0cacab0 TT |
13000 | int |
13001 | main () | |
13002 | { | |
50e1e10f | 13003 | struct stat stat; stat.st_flags = 0; |
b0cacab0 TT |
13004 | ; |
13005 | return 0; | |
13006 | } | |
13007 | _ACEOF | |
57aa50d4 | 13008 | if ac_fn_c_try_compile "$LINENO"; then : |
50e1e10f TT |
13009 | e2fsprogs_cv_struct_st_flags=yes |
13010 | else | |
57aa50d4 | 13011 | e2fsprogs_cv_struct_st_flags=no |
50e1e10f | 13012 | fi |
e1052144 | 13013 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
50e1e10f TT |
13014 | fi |
13015 | ||
57aa50d4 | 13016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5 |
39fd3d4f | 13017 | $as_echo "$e2fsprogs_cv_struct_st_flags" >&6; } |
50e1e10f | 13018 | if test "$e2fsprogs_cv_struct_st_flags" = yes; then |
57aa50d4 | 13019 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5 |
39fd3d4f | 13020 | $as_echo_n "checking whether st_flags field is useful... " >&6; } |
d6a4bcb5 | 13021 | if ${e2fsprogs_cv_struct_st_flags_immut+:} false; then : |
39fd3d4f | 13022 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 13023 | else |
57aa50d4 | 13024 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b0cacab0 | 13025 | /* end confdefs.h. */ |
c03bc4e8 | 13026 | #include <sys/stat.h> |
b0cacab0 TT |
13027 | int |
13028 | main () | |
13029 | { | |
c03bc4e8 | 13030 | struct stat stat; stat.st_flags |= UF_IMMUTABLE; |
b0cacab0 TT |
13031 | ; |
13032 | return 0; | |
13033 | } | |
57aa50d4 TT |
13034 | _ACEOF |
13035 | if ac_fn_c_try_compile "$LINENO"; then : | |
13036 | e2fsprogs_cv_struct_st_flags_immut=yes | |
6c65d251 | 13037 | else |
57aa50d4 | 13038 | e2fsprogs_cv_struct_st_flags_immut=no |
84ea6e70 | 13039 | fi |
e1052144 | 13040 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
84ea6e70 | 13041 | fi |
e1052144 | 13042 | |
57aa50d4 TT |
13043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5 |
13044 | $as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; } | |
13045 | if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then | |
d1154eb4 TT |
13046 | |
13047 | $as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h | |
57aa50d4 TT |
13048 | |
13049 | fi | |
6c65d251 | 13050 | fi |
57aa50d4 TT |
13051 | ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h> |
13052 | #include <sys/socket.h> | |
13053 | " | |
d6a4bcb5 | 13054 | if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then : |
b0cacab0 TT |
13055 | |
13056 | cat >>confdefs.h <<_ACEOF | |
84ea6e70 | 13057 | #define HAVE_SA_LEN 1 |
b0cacab0 | 13058 | _ACEOF |
84ea6e70 | 13059 | |
50e1e10f | 13060 | fi |
b0cacab0 | 13061 | |
9ed8e5fe | 13062 | if test -n "$BLKID_CMT"; then |
7154d974 TT |
13063 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_probe_get_topology in -lblkid" >&5 |
13064 | $as_echo_n "checking for blkid_probe_get_topology in -lblkid... " >&6; } | |
13065 | if ${ac_cv_lib_blkid_blkid_probe_get_topology+:} false; then : | |
9ed8e5fe ES |
13066 | $as_echo_n "(cached) " >&6 |
13067 | else | |
7154d974 TT |
13068 | ac_check_lib_save_LIBS=$LIBS |
13069 | LIBS="-lblkid $LIBS" | |
57aa50d4 | 13070 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9ed8e5fe ES |
13071 | /* end confdefs.h. */ |
13072 | ||
13073 | /* Override any GCC internal prototype to avoid an error. | |
13074 | Use char because int might match the return type of a GCC | |
13075 | builtin and then its argument prototype would still apply. */ | |
13076 | #ifdef __cplusplus | |
13077 | extern "C" | |
13078 | #endif | |
7154d974 | 13079 | char blkid_probe_get_topology (); |
9ed8e5fe ES |
13080 | int |
13081 | main () | |
13082 | { | |
7154d974 | 13083 | return blkid_probe_get_topology (); |
9ed8e5fe ES |
13084 | ; |
13085 | return 0; | |
13086 | } | |
13087 | _ACEOF | |
7154d974 TT |
13088 | if ac_fn_c_try_link "$LINENO"; then : |
13089 | ac_cv_lib_blkid_blkid_probe_get_topology=yes | |
13090 | else | |
13091 | ac_cv_lib_blkid_blkid_probe_get_topology=no | |
9ed8e5fe | 13092 | fi |
57aa50d4 | 13093 | rm -f core conftest.err conftest.$ac_objext \ |
7154d974 TT |
13094 | conftest$ac_exeext conftest.$ac_ext |
13095 | LIBS=$ac_check_lib_save_LIBS | |
9ed8e5fe | 13096 | fi |
7154d974 TT |
13097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_probe_get_topology" >&5 |
13098 | $as_echo "$ac_cv_lib_blkid_blkid_probe_get_topology" >&6; } | |
13099 | if test "x$ac_cv_lib_blkid_blkid_probe_get_topology" = xyes; then : | |
13100 | $as_echo "#define HAVE_BLKID_PROBE_GET_TOPOLOGY 1" >>confdefs.h | |
13101 | ||
13102 | fi | |
13103 | ||
13104 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_probe_enable_partitions in -lblkid" >&5 | |
13105 | $as_echo_n "checking for blkid_probe_enable_partitions in -lblkid... " >&6; } | |
13106 | if ${ac_cv_lib_blkid_blkid_probe_enable_partitions+:} false; then : | |
13107 | $as_echo_n "(cached) " >&6 | |
13108 | else | |
13109 | ac_check_lib_save_LIBS=$LIBS | |
13110 | LIBS="-lblkid $LIBS" | |
13111 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13112 | /* end confdefs.h. */ | |
57aa50d4 | 13113 | |
7154d974 TT |
13114 | /* Override any GCC internal prototype to avoid an error. |
13115 | Use char because int might match the return type of a GCC | |
13116 | builtin and then its argument prototype would still apply. */ | |
13117 | #ifdef __cplusplus | |
13118 | extern "C" | |
13119 | #endif | |
13120 | char blkid_probe_enable_partitions (); | |
13121 | int | |
13122 | main () | |
13123 | { | |
13124 | return blkid_probe_enable_partitions (); | |
13125 | ; | |
13126 | return 0; | |
13127 | } | |
13128 | _ACEOF | |
13129 | if ac_fn_c_try_link "$LINENO"; then : | |
13130 | ac_cv_lib_blkid_blkid_probe_enable_partitions=yes | |
9ed8e5fe | 13131 | else |
7154d974 | 13132 | ac_cv_lib_blkid_blkid_probe_enable_partitions=no |
9ed8e5fe | 13133 | fi |
7154d974 TT |
13134 | rm -f core conftest.err conftest.$ac_objext \ |
13135 | conftest$ac_exeext conftest.$ac_ext | |
13136 | LIBS=$ac_check_lib_save_LIBS | |
9ed8e5fe | 13137 | fi |
7154d974 TT |
13138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_probe_enable_partitions" >&5 |
13139 | $as_echo "$ac_cv_lib_blkid_blkid_probe_enable_partitions" >&6; } | |
13140 | if test "x$ac_cv_lib_blkid_blkid_probe_enable_partitions" = xyes; then : | |
13141 | $as_echo "#define HAVE_BLKID_PROBE_ENABLE_PARTITIONS 1" >>confdefs.h | |
9ed8e5fe ES |
13142 | |
13143 | fi | |
13144 | ||
13145 | fi | |
32179ce2 TT |
13146 | if test -n "$DLOPEN_LIB" ; then |
13147 | ac_cv_func_dlopen=yes | |
13148 | fi | |
7154d974 | 13149 | for ac_func in __secure_getenv add_key backtrace chflags dlopen fadvise64 fallocate fallocate64 fchown fcntl fdatasync fstat64 fsync ftruncate64 futimes getcwd getdtablesize gethostname 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 |
13150 | do : |
13151 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
13152 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
d6a4bcb5 | 13153 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
b0cacab0 | 13154 | cat >>confdefs.h <<_ACEOF |
39fd3d4f | 13155 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
b0cacab0 | 13156 | _ACEOF |
21c84b71 | 13157 | |
50e1e10f TT |
13158 | fi |
13159 | done | |
13160 | ||
fc6d9d51 | 13161 | SOCKET_LIB='' |
57aa50d4 | 13162 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 |
39fd3d4f | 13163 | $as_echo_n "checking for socket in -lsocket... " >&6; } |
d6a4bcb5 | 13164 | if ${ac_cv_lib_socket_socket+:} false; then : |
39fd3d4f | 13165 | $as_echo_n "(cached) " >&6 |
50e1e10f | 13166 | else |
b0cacab0 | 13167 | ac_check_lib_save_LIBS=$LIBS |
fc6d9d51 | 13168 | LIBS="-lsocket $LIBS" |
57aa50d4 | 13169 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b0cacab0 | 13170 | /* end confdefs.h. */ |
93636bde | 13171 | |
e1052144 TT |
13172 | /* Override any GCC internal prototype to avoid an error. |
13173 | Use char because int might match the return type of a GCC | |
13174 | builtin and then its argument prototype would still apply. */ | |
b0cacab0 TT |
13175 | #ifdef __cplusplus |
13176 | extern "C" | |
13177 | #endif | |
b0cacab0 TT |
13178 | char socket (); |
13179 | int | |
13180 | main () | |
13181 | { | |
e1052144 | 13182 | return socket (); |
b0cacab0 TT |
13183 | ; |
13184 | return 0; | |
13185 | } | |
13186 | _ACEOF | |
57aa50d4 | 13187 | if ac_fn_c_try_link "$LINENO"; then : |
b0cacab0 TT |
13188 | ac_cv_lib_socket_socket=yes |
13189 | else | |
57aa50d4 | 13190 | ac_cv_lib_socket_socket=no |
b0cacab0 | 13191 | fi |
57aa50d4 TT |
13192 | rm -f core conftest.err conftest.$ac_objext \ |
13193 | conftest$ac_exeext conftest.$ac_ext | |
b0cacab0 TT |
13194 | LIBS=$ac_check_lib_save_LIBS |
13195 | fi | |
57aa50d4 | 13196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 |
39fd3d4f | 13197 | $as_echo "$ac_cv_lib_socket_socket" >&6; } |
d6a4bcb5 | 13198 | if test "x$ac_cv_lib_socket_socket" = xyes; then : |
fc6d9d51 | 13199 | SOCKET_LIB=-lsocket |
50e1e10f | 13200 | fi |
fc6d9d51 | 13201 | |
93636bde | 13202 | |
b291c11f DW |
13203 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_file in -lmagic" >&5 |
13204 | $as_echo_n "checking for magic_file in -lmagic... " >&6; } | |
13205 | if ${ac_cv_lib_magic_magic_file+:} false; then : | |
13206 | $as_echo_n "(cached) " >&6 | |
13207 | else | |
13208 | ac_check_lib_save_LIBS=$LIBS | |
13209 | LIBS="-lmagic $LIBS" | |
13210 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13211 | /* end confdefs.h. */ | |
13212 | ||
13213 | /* Override any GCC internal prototype to avoid an error. | |
13214 | Use char because int might match the return type of a GCC | |
13215 | builtin and then its argument prototype would still apply. */ | |
13216 | #ifdef __cplusplus | |
13217 | extern "C" | |
13218 | #endif | |
13219 | char magic_file (); | |
13220 | int | |
13221 | main () | |
13222 | { | |
13223 | return magic_file (); | |
13224 | ; | |
13225 | return 0; | |
13226 | } | |
13227 | _ACEOF | |
13228 | if ac_fn_c_try_link "$LINENO"; then : | |
13229 | ac_cv_lib_magic_magic_file=yes | |
13230 | else | |
13231 | ac_cv_lib_magic_magic_file=no | |
13232 | fi | |
13233 | rm -f core conftest.err conftest.$ac_objext \ | |
13234 | conftest$ac_exeext conftest.$ac_ext | |
13235 | LIBS=$ac_check_lib_save_LIBS | |
13236 | fi | |
13237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_file" >&5 | |
13238 | $as_echo "$ac_cv_lib_magic_magic_file" >&6; } | |
13239 | if test "x$ac_cv_lib_magic_magic_file" = xyes; then : | |
13240 | MAGIC_LIB=-lmagic | |
13241 | for ac_header in magic.h | |
13242 | do : | |
13243 | ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default" | |
13244 | if test "x$ac_cv_header_magic_h" = xyes; then : | |
13245 | cat >>confdefs.h <<_ACEOF | |
13246 | #define HAVE_MAGIC_H 1 | |
13247 | _ACEOF | |
13248 | ||
13249 | fi | |
13250 | ||
13251 | done | |
13252 | ||
13253 | fi | |
13254 | ||
32179ce2 | 13255 | if test "$ac_cv_func_dlopen" = yes ; then |
d2e3c0dc TT |
13256 | MAGIC_LIB=$DLOPEN_LIB |
13257 | fi | |
b291c11f | 13258 | |
c94da047 TT |
13259 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 |
13260 | $as_echo_n "checking for clock_gettime in -lrt... " >&6; } | |
13261 | if ${ac_cv_lib_rt_clock_gettime+:} false; then : | |
13262 | $as_echo_n "(cached) " >&6 | |
13263 | else | |
13264 | ac_check_lib_save_LIBS=$LIBS | |
13265 | LIBS="-lrt $LIBS" | |
13266 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13267 | /* end confdefs.h. */ | |
13268 | ||
13269 | /* Override any GCC internal prototype to avoid an error. | |
13270 | Use char because int might match the return type of a GCC | |
13271 | builtin and then its argument prototype would still apply. */ | |
13272 | #ifdef __cplusplus | |
13273 | extern "C" | |
13274 | #endif | |
13275 | char clock_gettime (); | |
13276 | int | |
13277 | main () | |
13278 | { | |
13279 | return clock_gettime (); | |
13280 | ; | |
13281 | return 0; | |
13282 | } | |
13283 | _ACEOF | |
13284 | if ac_fn_c_try_link "$LINENO"; then : | |
13285 | ac_cv_lib_rt_clock_gettime=yes | |
13286 | else | |
13287 | ac_cv_lib_rt_clock_gettime=no | |
13288 | fi | |
13289 | rm -f core conftest.err conftest.$ac_objext \ | |
13290 | conftest$ac_exeext conftest.$ac_ext | |
13291 | LIBS=$ac_check_lib_save_LIBS | |
13292 | fi | |
13293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 | |
13294 | $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } | |
13295 | if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then : | |
13296 | CLOCK_GETTIME_LIB=-lrt | |
13297 | fi | |
13298 | ||
13299 | ||
81cbf1ef DW |
13300 | FUSE_CMT= |
13301 | FUSE_LIB= | |
13302 | # Check whether --enable-fuse2fs was given. | |
13303 | if test "${enable_fuse2fs+set}" = set; then : | |
13304 | enableval=$enable_fuse2fs; if test "$enableval" = "no" | |
13305 | then | |
13306 | FUSE_CMT="#" | |
13307 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling fuse2fs" >&5 | |
13308 | $as_echo "Disabling fuse2fs" >&6; } | |
13309 | else | |
13310 | for ac_header in pthread.h fuse.h | |
13311 | do : | |
13312 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13313 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64 | |
13314 | #define FUSE_USE_VERSION 29 | |
13315 | " | |
13316 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
13317 | cat >>confdefs.h <<_ACEOF | |
13318 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13319 | _ACEOF | |
13320 | ||
13321 | else | |
13322 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
13323 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
13324 | as_fn_error $? "Cannot find fuse2fs headers. | |
13325 | See \`config.log' for more details" "$LINENO" 5; } | |
13326 | fi | |
13327 | ||
13328 | done | |
13329 | ||
13330 | ||
13331 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13332 | /* end confdefs.h. */ | |
13333 | #define FUSE_USE_VERSION 29 | |
13334 | #ifdef __linux__ | |
13335 | #include <linux/fs.h> | |
13336 | #include <linux/falloc.h> | |
13337 | #include <linux/xattr.h> | |
13338 | #endif | |
13339 | ||
13340 | int | |
13341 | main () | |
13342 | { | |
13343 | ||
13344 | ; | |
13345 | return 0; | |
13346 | } | |
13347 | _ACEOF | |
13348 | if ac_fn_c_try_cpp "$LINENO"; then : | |
13349 | ||
13350 | else | |
13351 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
13352 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
13353 | as_fn_error $? "Cannot find fuse2fs Linux headers. | |
13354 | See \`config.log' for more details" "$LINENO" 5; } | |
13355 | fi | |
13356 | rm -f conftest.err conftest.i conftest.$ac_ext | |
13357 | ||
13358 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5 | |
13359 | $as_echo_n "checking for fuse_main in -losxfuse... " >&6; } | |
13360 | if ${ac_cv_lib_osxfuse_fuse_main+:} false; then : | |
13361 | $as_echo_n "(cached) " >&6 | |
13362 | else | |
13363 | ac_check_lib_save_LIBS=$LIBS | |
13364 | LIBS="-losxfuse $LIBS" | |
13365 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13366 | /* end confdefs.h. */ | |
13367 | ||
13368 | /* Override any GCC internal prototype to avoid an error. | |
13369 | Use char because int might match the return type of a GCC | |
13370 | builtin and then its argument prototype would still apply. */ | |
13371 | #ifdef __cplusplus | |
13372 | extern "C" | |
13373 | #endif | |
13374 | char fuse_main (); | |
13375 | int | |
13376 | main () | |
13377 | { | |
13378 | return fuse_main (); | |
13379 | ; | |
13380 | return 0; | |
13381 | } | |
13382 | _ACEOF | |
13383 | if ac_fn_c_try_link "$LINENO"; then : | |
13384 | ac_cv_lib_osxfuse_fuse_main=yes | |
13385 | else | |
13386 | ac_cv_lib_osxfuse_fuse_main=no | |
13387 | fi | |
13388 | rm -f core conftest.err conftest.$ac_objext \ | |
13389 | conftest$ac_exeext conftest.$ac_ext | |
13390 | LIBS=$ac_check_lib_save_LIBS | |
13391 | fi | |
13392 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5 | |
13393 | $as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; } | |
13394 | if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then : | |
13395 | FUSE_LIB=-losxfuse | |
13396 | else | |
13397 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5 | |
13398 | $as_echo_n "checking for fuse_main in -lfuse... " >&6; } | |
13399 | if ${ac_cv_lib_fuse_fuse_main+:} false; then : | |
13400 | $as_echo_n "(cached) " >&6 | |
13401 | else | |
13402 | ac_check_lib_save_LIBS=$LIBS | |
13403 | LIBS="-lfuse $LIBS" | |
13404 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13405 | /* end confdefs.h. */ | |
13406 | ||
13407 | /* Override any GCC internal prototype to avoid an error. | |
13408 | Use char because int might match the return type of a GCC | |
13409 | builtin and then its argument prototype would still apply. */ | |
13410 | #ifdef __cplusplus | |
13411 | extern "C" | |
13412 | #endif | |
13413 | char fuse_main (); | |
13414 | int | |
13415 | main () | |
13416 | { | |
13417 | return fuse_main (); | |
13418 | ; | |
13419 | return 0; | |
13420 | } | |
13421 | _ACEOF | |
13422 | if ac_fn_c_try_link "$LINENO"; then : | |
13423 | ac_cv_lib_fuse_fuse_main=yes | |
13424 | else | |
13425 | ac_cv_lib_fuse_fuse_main=no | |
13426 | fi | |
13427 | rm -f core conftest.err conftest.$ac_objext \ | |
13428 | conftest$ac_exeext conftest.$ac_ext | |
13429 | LIBS=$ac_check_lib_save_LIBS | |
13430 | fi | |
13431 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5 | |
13432 | $as_echo "$ac_cv_lib_fuse_fuse_main" >&6; } | |
13433 | if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then : | |
13434 | FUSE_LIB=-lfuse | |
13435 | else | |
13436 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
13437 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
13438 | as_fn_error $? "Cannot find fuse library. | |
13439 | See \`config.log' for more details" "$LINENO" 5; } | |
13440 | fi | |
13441 | ||
13442 | fi | |
13443 | ||
13444 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs" >&5 | |
13445 | $as_echo "Enabling fuse2fs" >&6; } | |
13446 | fi | |
13447 | ||
13448 | else | |
13449 | for ac_header in pthread.h fuse.h | |
13450 | do : | |
13451 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13452 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64 | |
13453 | #define FUSE_USE_VERSION 29 | |
13454 | #ifdef __linux__ | |
13455 | # include <linux/fs.h> | |
13456 | # include <linux/falloc.h> | |
13457 | # include <linux/xattr.h> | |
13458 | #endif | |
13459 | " | |
13460 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
13461 | cat >>confdefs.h <<_ACEOF | |
13462 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13463 | _ACEOF | |
13464 | ||
13465 | else | |
13466 | FUSE_CMT="#" | |
13467 | fi | |
13468 | ||
13469 | done | |
13470 | ||
13471 | if test -z "$FUSE_CMT" | |
13472 | then | |
13473 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5 | |
13474 | $as_echo_n "checking for fuse_main in -losxfuse... " >&6; } | |
13475 | if ${ac_cv_lib_osxfuse_fuse_main+:} false; then : | |
13476 | $as_echo_n "(cached) " >&6 | |
13477 | else | |
13478 | ac_check_lib_save_LIBS=$LIBS | |
13479 | LIBS="-losxfuse $LIBS" | |
13480 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13481 | /* end confdefs.h. */ | |
13482 | ||
13483 | /* Override any GCC internal prototype to avoid an error. | |
13484 | Use char because int might match the return type of a GCC | |
13485 | builtin and then its argument prototype would still apply. */ | |
13486 | #ifdef __cplusplus | |
13487 | extern "C" | |
13488 | #endif | |
13489 | char fuse_main (); | |
13490 | int | |
13491 | main () | |
13492 | { | |
13493 | return fuse_main (); | |
13494 | ; | |
13495 | return 0; | |
13496 | } | |
13497 | _ACEOF | |
13498 | if ac_fn_c_try_link "$LINENO"; then : | |
13499 | ac_cv_lib_osxfuse_fuse_main=yes | |
13500 | else | |
13501 | ac_cv_lib_osxfuse_fuse_main=no | |
13502 | fi | |
13503 | rm -f core conftest.err conftest.$ac_objext \ | |
13504 | conftest$ac_exeext conftest.$ac_ext | |
13505 | LIBS=$ac_check_lib_save_LIBS | |
13506 | fi | |
13507 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5 | |
13508 | $as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; } | |
13509 | if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then : | |
13510 | FUSE_LIB=-losxfuse | |
13511 | else | |
13512 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5 | |
13513 | $as_echo_n "checking for fuse_main in -lfuse... " >&6; } | |
13514 | if ${ac_cv_lib_fuse_fuse_main+:} false; then : | |
13515 | $as_echo_n "(cached) " >&6 | |
13516 | else | |
13517 | ac_check_lib_save_LIBS=$LIBS | |
13518 | LIBS="-lfuse $LIBS" | |
13519 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13520 | /* end confdefs.h. */ | |
13521 | ||
13522 | /* Override any GCC internal prototype to avoid an error. | |
13523 | Use char because int might match the return type of a GCC | |
13524 | builtin and then its argument prototype would still apply. */ | |
13525 | #ifdef __cplusplus | |
13526 | extern "C" | |
13527 | #endif | |
13528 | char fuse_main (); | |
13529 | int | |
13530 | main () | |
13531 | { | |
13532 | return fuse_main (); | |
13533 | ; | |
13534 | return 0; | |
13535 | } | |
13536 | _ACEOF | |
13537 | if ac_fn_c_try_link "$LINENO"; then : | |
13538 | ac_cv_lib_fuse_fuse_main=yes | |
13539 | else | |
13540 | ac_cv_lib_fuse_fuse_main=no | |
13541 | fi | |
13542 | rm -f core conftest.err conftest.$ac_objext \ | |
13543 | conftest$ac_exeext conftest.$ac_ext | |
13544 | LIBS=$ac_check_lib_save_LIBS | |
13545 | fi | |
13546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5 | |
13547 | $as_echo "$ac_cv_lib_fuse_fuse_main" >&6; } | |
13548 | if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then : | |
13549 | FUSE_LIB=-lfuse | |
13550 | else | |
13551 | FUSE_CMT="#" | |
13552 | fi | |
13553 | ||
13554 | fi | |
13555 | ||
13556 | fi | |
13557 | if test -z "$FUSE_CMT" | |
13558 | then | |
13559 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs by default." >&5 | |
13560 | $as_echo "Enabling fuse2fs by default." >&6; } | |
13561 | fi | |
13562 | ||
13563 | fi | |
13564 | ||
13565 | ||
13566 | ||
57aa50d4 | 13567 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5 |
39fd3d4f | 13568 | $as_echo_n "checking for optreset... " >&6; } |
d6a4bcb5 | 13569 | if ${ac_cv_have_optreset+:} false; then : |
39fd3d4f | 13570 | $as_echo_n "(cached) " >&6 |
d7f45af8 | 13571 | else |
57aa50d4 | 13572 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d7f45af8 | 13573 | /* end confdefs.h. */ |
57aa50d4 TT |
13574 | #include <unistd.h> |
13575 | ||
13576 | _ACEOF | |
13577 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
13578 | $EGREP "optreset" >/dev/null 2>&1; then : | |
13579 | ac_cv_have_optreset=yes | |
d7f45af8 | 13580 | else |
57aa50d4 TT |
13581 | ac_cv_have_optreset=no |
13582 | fi | |
13583 | rm -f conftest* | |
d7f45af8 | 13584 | |
d7f45af8 | 13585 | fi |
57aa50d4 TT |
13586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5 |
13587 | $as_echo "$ac_cv_have_optreset" >&6; } | |
13588 | if test $ac_cv_have_optreset = yes; then | |
d1154eb4 TT |
13589 | |
13590 | $as_echo "#define HAVE_OPTRESET 1" >>confdefs.h | |
d7f45af8 | 13591 | |
d7f45af8 | 13592 | fi |
d1154eb4 | 13593 | |
57aa50d4 | 13594 | SEM_INIT_LIB='' |
cfb8e0bd TT |
13595 | echo GL_THREADS_API: ${gl_threads_api} |
13596 | if test "${gl_threads_api}" != none | |
13597 | then | |
13598 | ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init" | |
d6a4bcb5 | 13599 | if test "x$ac_cv_func_sem_init" = xyes; then : |
57aa50d4 | 13600 | |
d7f45af8 | 13601 | else |
57aa50d4 | 13602 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5 |
39fd3d4f | 13603 | $as_echo_n "checking for sem_init in -lpthread... " >&6; } |
d6a4bcb5 | 13604 | if ${ac_cv_lib_pthread_sem_init+:} false; then : |
39fd3d4f | 13605 | $as_echo_n "(cached) " >&6 |
d7f45af8 TT |
13606 | else |
13607 | ac_check_lib_save_LIBS=$LIBS | |
13608 | LIBS="-lpthread $LIBS" | |
57aa50d4 | 13609 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d7f45af8 TT |
13610 | /* end confdefs.h. */ |
13611 | ||
13612 | /* Override any GCC internal prototype to avoid an error. | |
13613 | Use char because int might match the return type of a GCC | |
13614 | builtin and then its argument prototype would still apply. */ | |
13615 | #ifdef __cplusplus | |
13616 | extern "C" | |
13617 | #endif | |
13618 | char sem_init (); | |
13619 | int | |
13620 | main () | |
13621 | { | |
13622 | return sem_init (); | |
13623 | ; | |
13624 | return 0; | |
13625 | } | |
13626 | _ACEOF | |
57aa50d4 | 13627 | if ac_fn_c_try_link "$LINENO"; then : |
d7f45af8 TT |
13628 | ac_cv_lib_pthread_sem_init=yes |
13629 | else | |
57aa50d4 | 13630 | ac_cv_lib_pthread_sem_init=no |
d7f45af8 | 13631 | fi |
57aa50d4 TT |
13632 | rm -f core conftest.err conftest.$ac_objext \ |
13633 | conftest$ac_exeext conftest.$ac_ext | |
d7f45af8 TT |
13634 | LIBS=$ac_check_lib_save_LIBS |
13635 | fi | |
57aa50d4 | 13636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5 |
39fd3d4f | 13637 | $as_echo "$ac_cv_lib_pthread_sem_init" >&6; } |
d6a4bcb5 | 13638 | if test "x$ac_cv_lib_pthread_sem_init" = xyes; then : |
57aa50d4 | 13639 | $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h |
d7f45af8 TT |
13640 | |
13641 | SEM_INIT_LIB=-lpthread | |
13642 | else | |
57aa50d4 | 13643 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5 |
39fd3d4f | 13644 | $as_echo_n "checking for sem_init in -lrt... " >&6; } |
d6a4bcb5 | 13645 | if ${ac_cv_lib_rt_sem_init+:} false; then : |
39fd3d4f | 13646 | $as_echo_n "(cached) " >&6 |
d7f45af8 TT |
13647 | else |
13648 | ac_check_lib_save_LIBS=$LIBS | |
13649 | LIBS="-lrt $LIBS" | |
57aa50d4 | 13650 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d7f45af8 TT |
13651 | /* end confdefs.h. */ |
13652 | ||
13653 | /* Override any GCC internal prototype to avoid an error. | |
13654 | Use char because int might match the return type of a GCC | |
13655 | builtin and then its argument prototype would still apply. */ | |
13656 | #ifdef __cplusplus | |
13657 | extern "C" | |
13658 | #endif | |
13659 | char sem_init (); | |
13660 | int | |
13661 | main () | |
13662 | { | |
13663 | return sem_init (); | |
13664 | ; | |
13665 | return 0; | |
13666 | } | |
13667 | _ACEOF | |
57aa50d4 | 13668 | if ac_fn_c_try_link "$LINENO"; then : |
d7f45af8 TT |
13669 | ac_cv_lib_rt_sem_init=yes |
13670 | else | |
57aa50d4 | 13671 | ac_cv_lib_rt_sem_init=no |
d7f45af8 | 13672 | fi |
57aa50d4 TT |
13673 | rm -f core conftest.err conftest.$ac_objext \ |
13674 | conftest$ac_exeext conftest.$ac_ext | |
d7f45af8 TT |
13675 | LIBS=$ac_check_lib_save_LIBS |
13676 | fi | |
57aa50d4 | 13677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5 |
39fd3d4f | 13678 | $as_echo "$ac_cv_lib_rt_sem_init" >&6; } |
d6a4bcb5 | 13679 | if test "x$ac_cv_lib_rt_sem_init" = xyes; then : |
57aa50d4 | 13680 | $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h |
d7f45af8 TT |
13681 | |
13682 | SEM_INIT_LIB=-lrt | |
13683 | else | |
57aa50d4 | 13684 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5 |
39fd3d4f | 13685 | $as_echo_n "checking for sem_init in -lposix4... " >&6; } |
d6a4bcb5 | 13686 | if ${ac_cv_lib_posix4_sem_init+:} false; then : |
39fd3d4f | 13687 | $as_echo_n "(cached) " >&6 |
d7f45af8 TT |
13688 | else |
13689 | ac_check_lib_save_LIBS=$LIBS | |
13690 | LIBS="-lposix4 $LIBS" | |
57aa50d4 | 13691 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d7f45af8 TT |
13692 | /* end confdefs.h. */ |
13693 | ||
13694 | /* Override any GCC internal prototype to avoid an error. | |
13695 | Use char because int might match the return type of a GCC | |
13696 | builtin and then its argument prototype would still apply. */ | |
13697 | #ifdef __cplusplus | |
13698 | extern "C" | |
13699 | #endif | |
13700 | char sem_init (); | |
13701 | int | |
13702 | main () | |
13703 | { | |
13704 | return sem_init (); | |
13705 | ; | |
13706 | return 0; | |
13707 | } | |
13708 | _ACEOF | |
57aa50d4 | 13709 | if ac_fn_c_try_link "$LINENO"; then : |
d7f45af8 TT |
13710 | ac_cv_lib_posix4_sem_init=yes |
13711 | else | |
57aa50d4 | 13712 | ac_cv_lib_posix4_sem_init=no |
d7f45af8 | 13713 | fi |
57aa50d4 TT |
13714 | rm -f core conftest.err conftest.$ac_objext \ |
13715 | conftest$ac_exeext conftest.$ac_ext | |
d7f45af8 TT |
13716 | LIBS=$ac_check_lib_save_LIBS |
13717 | fi | |
57aa50d4 | 13718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5 |
39fd3d4f | 13719 | $as_echo "$ac_cv_lib_posix4_sem_init" >&6; } |
d6a4bcb5 | 13720 | if test "x$ac_cv_lib_posix4_sem_init" = xyes; then : |
57aa50d4 | 13721 | $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h |
d7f45af8 TT |
13722 | |
13723 | SEM_INIT_LIB=-lposix4 | |
13724 | fi | |
13725 | ||
13726 | fi | |
13727 | ||
13728 | fi | |
13729 | ||
cfb8e0bd | 13730 | fi |
d7f45af8 TT |
13731 | fi |
13732 | ||
57aa50d4 | 13733 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5 |
39fd3d4f | 13734 | $as_echo_n "checking for unified diff option... " >&6; } |
27f991b0 | 13735 | if diff -u $0 $0 > /dev/null 2>&1 ; then |
e54635de TT |
13736 | UNI_DIFF_OPTS=-u |
13737 | else | |
13738 | UNI_DIFF_OPTS=-c | |
13739 | fi | |
57aa50d4 | 13740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5 |
39fd3d4f | 13741 | $as_echo "$UNI_DIFF_OPTS" >&6; } |
e54635de | 13742 | |
8f3f29d3 TT |
13743 | case "$host_os" in |
13744 | linux*) | |
d1154eb4 TT |
13745 | |
13746 | $as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h | |
50e1e10f | 13747 | |
8f3f29d3 TT |
13748 | ;; |
13749 | esac | |
e6f2bda3 | 13750 | LINUX_CMT="#" |
fff45483 TT |
13751 | CYGWIN_CMT="#" |
13752 | UNIX_CMT= | |
e6f2bda3 TT |
13753 | case "$host_os" in |
13754 | linux*) | |
13755 | LINUX_CMT= | |
fff45483 TT |
13756 | ;; |
13757 | cygwin) | |
13758 | CYGWIN_CMT= | |
13759 | UNIX_CMT="#" | |
e6f2bda3 TT |
13760 | ;; |
13761 | esac | |
13762 | ||
93636bde TT |
13763 | |
13764 | ||
50e1e10f | 13765 | case "$host_os" in |
93636bde | 13766 | linux* | gnu* | k*bsd*-gnu) |
a4b2d3ce TT |
13767 | if test "$prefix" = NONE -a "$root_prefix" = NONE ; then |
13768 | root_prefix=""; | |
57aa50d4 | 13769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5 |
39fd3d4f | 13770 | $as_echo "On $host_os systems, root_prefix defaults to ''" >&6; } |
fc6d9d51 TT |
13771 | fi |
13772 | ;; | |
13773 | esac | |
fc6d9d51 | 13774 | case "$host_os" in |
93636bde | 13775 | linux* | gnu* | k*bsd*-gnu) |
fc6d9d51 | 13776 | if test "$prefix" = NONE ; then |
a4b2d3ce | 13777 | prefix="/usr"; |
57aa50d4 | 13778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5 |
39fd3d4f | 13779 | $as_echo "On $host_os systems, prefix defaults to /usr" >&6; } |
bff61a7a | 13780 | if test "$mandir" = '${prefix}/man' ; then |
57aa50d4 | 13781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5 |
39fd3d4f | 13782 | $as_echo "...and mandir defaults to /usr/share/man" >&6; } |
bff61a7a TT |
13783 | mandir=/usr/share/man |
13784 | fi | |
50e1e10f TT |
13785 | fi |
13786 | ;; | |
13787 | esac | |
a4b2d3ce | 13788 | if test "$root_prefix" = NONE ; then |
ffe1991f | 13789 | if test "$prefix" = NONE ; then |
a4b2d3ce TT |
13790 | root_prefix="$ac_default_prefix" |
13791 | else | |
13792 | root_prefix="$prefix" | |
13793 | fi | |
b5ffeade TT |
13794 | root_bindir=$bindir |
13795 | root_sbindir=$sbindir | |
13796 | root_libdir=$libdir | |
13797 | root_sysconfdir=$sysconfdir | |
13798 | else | |
13799 | root_bindir='${root_prefix}/bin' | |
13800 | root_sbindir='${root_prefix}/sbin' | |
13801 | root_libdir='${root_prefix}/lib' | |
13802 | root_sysconfdir='${root_prefix}/etc' | |
a4b2d3ce | 13803 | fi |
c4ef11c5 TT |
13804 | if test "$bindir" != '${exec_prefix}/bin'; then |
13805 | root_bindir=$bindir | |
57aa50d4 | 13806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5 |
39fd3d4f | 13807 | $as_echo "Setting root_bindir to $root_bindir" >&6; } |
c4ef11c5 TT |
13808 | fi |
13809 | if test "$sbindir" != '${exec_prefix}/sbin'; then | |
13810 | root_sbindir=$sbindir | |
57aa50d4 | 13811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5 |
39fd3d4f | 13812 | $as_echo "Setting root_sbindir to $root_sbindir" >&6; } |
c4ef11c5 TT |
13813 | fi |
13814 | if test "$libdir" != '${exec_prefix}/lib'; then | |
13815 | root_libdir=$libdir | |
57aa50d4 | 13816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5 |
39fd3d4f | 13817 | $as_echo "Setting root_libdir to $root_libdir" >&6; } |
c4ef11c5 TT |
13818 | fi |
13819 | if test "$sysconfdir" != '${prefix}/etc'; then | |
13820 | root_sysconfdir=$sysconfdir | |
57aa50d4 | 13821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5 |
39fd3d4f | 13822 | $as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; } |
c4ef11c5 | 13823 | fi |
a4b2d3ce | 13824 | |
93636bde TT |
13825 | |
13826 | ||
13827 | ||
13828 | ||
55e00a25 TT |
13829 | |
13830 | # Check whether --with-multiarch was given. | |
13831 | if test "${with_multiarch+set}" = set; then : | |
d7fa4103 TT |
13832 | withval=$with_multiarch; if test "$withval" = "lib64"; then |
13833 | libdir=/usr/lib64 | |
13834 | root_libdir=/lib64 | |
13835 | else | |
13836 | libdir=$libdir/$withval | |
13837 | root_libdir=$root_libdir/$withval | |
13838 | fi | |
55e00a25 TT |
13839 | |
13840 | fi | |
d3de1a71 TT |
13841 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5 |
13842 | $as_echo_n "checking whether we can link with -static... " >&6; } | |
d6a4bcb5 | 13843 | if ${ac_cv_e2fsprogs_use_static+:} false; then : |
39fd3d4f | 13844 | $as_echo_n "(cached) " >&6 |
ae851482 | 13845 | else |
fd1677e8 | 13846 | SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS_STATIC -static" |
57aa50d4 | 13847 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b0cacab0 | 13848 | /* end confdefs.h. */ |
ae851482 | 13849 | #include <stdio.h> |
b0cacab0 TT |
13850 | int |
13851 | main () | |
13852 | { | |
ae851482 | 13853 | fflush(stdout); |
b0cacab0 TT |
13854 | ; |
13855 | return 0; | |
13856 | } | |
13857 | _ACEOF | |
57aa50d4 | 13858 | if ac_fn_c_try_link "$LINENO"; then : |
ae851482 TT |
13859 | ac_cv_e2fsprogs_use_static=yes |
13860 | else | |
57aa50d4 | 13861 | ac_cv_e2fsprogs_use_static=no |
ae851482 | 13862 | fi |
57aa50d4 TT |
13863 | rm -f core conftest.err conftest.$ac_objext \ |
13864 | conftest$ac_exeext conftest.$ac_ext | |
ae851482 TT |
13865 | LDFLAGS=$SAVE_LDFLAGS |
13866 | fi | |
50e1e10f | 13867 | |
defde784 TT |
13868 | case "$host_os" in |
13869 | solaris2.*) | |
b0cacab0 | 13870 | ac_cv_e2fsprogs_use_static=no |
defde784 TT |
13871 | ;; |
13872 | esac | |
57aa50d4 | 13873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5 |
39fd3d4f | 13874 | $as_echo "$ac_cv_e2fsprogs_use_static" >&6; } |
ae851482 | 13875 | if test $ac_cv_e2fsprogs_use_static = yes; then |
fd1677e8 | 13876 | LDFLAGS_STATIC="$LDFLAGS_STATIC -static" |
ae851482 | 13877 | fi |
50e1e10f | 13878 | |
07a0db15 TT |
13879 | case "$host_os" in |
13880 | darwin*) | |
57aa50d4 | 13881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5 |
39fd3d4f | 13882 | $as_echo "Using Apple Darwin / GNU libintl workaround" >&6; } |
d1154eb4 TT |
13883 | |
13884 | $as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h | |
07a0db15 TT |
13885 | |
13886 | ;; | |
13887 | esac | |
50e1e10f TT |
13888 | if test "$cross_compiling" = yes ; then |
13889 | DO_TEST_SUITE= | |
13890 | else | |
13891 | DO_TEST_SUITE=check | |
13892 | fi | |
13893 | ||
d1154eb4 TT |
13894 | INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib' |
13895 | if test -n "$CPPFLAGS" ; then | |
13896 | INCLUDES="$INCLUDES $CPPFLAGS" | |
13897 | fi | |
c6f35b8a | 13898 | if test "$USE_INCLUDED_LIBINTL" = "yes" ; then |
d1154eb4 | 13899 | INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl' |
c6f35b8a | 13900 | fi |
6c59a665 TT |
13901 | if test -n "$WITH_DIET_LIBC" ; then |
13902 | INCLUDES="$INCLUDES -D_REENTRANT" | |
13903 | fi | |
c6f35b8a | 13904 | |
dd947da2 | 13905 | if test $cross_compiling = no; then |
2873927d | 13906 | BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H" |
dd947da2 | 13907 | BUILD_LDFLAGS="$LDFLAGS" |
dd947da2 TT |
13908 | fi |
13909 | ||
13910 | ||
fd1677e8 TT |
13911 | CFLAGS_SHLIB=${CFLAGS_SHLIB:-$CFLAGS} |
13912 | CFLAGS_STLIB=${CFLAGS_STLIB:-$CFLAGS} | |
13913 | LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS} | |
13914 | ||
13915 | ||
13916 | ||
50e1e10f TT |
13917 | test -d lib || mkdir lib |
13918 | test -d include || mkdir include | |
13919 | test -d include/linux || mkdir include/linux | |
defde784 | 13920 | test -d include/asm || mkdir include/asm |
44dfb378 TT |
13921 | if test -z "$UUID_CMT" ; then |
13922 | uuid_out_list="lib/uuid/Makefile lib/uuid/uuid.pc \ | |
13923 | lib/uuid/uuid_types.h" | |
13924 | fi | |
13925 | if test -z "$BLKID_CMT" ; then | |
13926 | blkid_out_list="lib/blkid/Makefile lib/blkid/blkid.pc \ | |
13927 | lib/blkid/blkid_types.h" | |
13928 | fi | |
e5f0f3ee | 13929 | for i in MCONFIG Makefile \ |
183c73b0 | 13930 | util/Makefile util/subst.conf util/gen-tarball util/install-symlink \ |
4ea7ea00 TT |
13931 | lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \ |
13932 | lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \ | |
f34af41b | 13933 | $uuid_out_list $blkid_out_list lib/support/Makefile \ |
44dfb378 | 13934 | lib/ss/ss.pc lib/et/com_err.pc lib/e2p/e2p.pc lib/ext2fs/ext2fs.pc \ |
921f4ad5 | 13935 | misc/Makefile ext2ed/Makefile e2fsck/Makefile \ |
94ba8c75 | 13936 | debugfs/Makefile tests/Makefile tests/progs/Makefile \ |
98a5ad61 MA |
13937 | resize/Makefile doc/Makefile intl/Makefile \ |
13938 | intl/libgnuintl.h po/Makefile.in ; do | |
94ba8c75 TT |
13939 | if test -d `dirname ${srcdir}/$i` ; then |
13940 | outlist="$outlist $i" | |
13941 | fi | |
13942 | done | |
e1052144 TT |
13943 | ac_config_files="$ac_config_files $outlist" |
13944 | ||
b0cacab0 | 13945 | cat >confcache <<\_ACEOF |
50e1e10f TT |
13946 | # This file is a shell script that caches the results of configure |
13947 | # tests run on this system so they can be shared between configure | |
b0cacab0 TT |
13948 | # scripts and configure runs, see configure's option --config-cache. |
13949 | # It is not useful on other systems. If it contains results you don't | |
13950 | # want to keep, you may remove or edit it. | |
50e1e10f | 13951 | # |
b0cacab0 TT |
13952 | # config.status only pays attention to the cache file if you give it |
13953 | # the --recheck option to rerun configure. | |
50e1e10f | 13954 | # |
b0cacab0 TT |
13955 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
13956 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
13957 | # following values. | |
13958 | ||
13959 | _ACEOF | |
13960 | ||
21c84b71 TT |
13961 | # The following way of writing the cache mishandles newlines in values, |
13962 | # but we know of no workaround that is simple, portable, and efficient. | |
e1052144 | 13963 | # So, we kill variables containing newlines. |
50e1e10f TT |
13964 | # Ultrix sh set writes to stderr and can't be redirected directly, |
13965 | # and sets the high bit in the cache file unless we assign to the vars. | |
e1052144 TT |
13966 | ( |
13967 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
13968 | eval ac_val=\$$ac_var | |
13969 | case $ac_val in #( | |
13970 | *${as_nl}*) | |
13971 | case $ac_var in #( | |
57aa50d4 | 13972 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
39fd3d4f | 13973 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
e1052144 TT |
13974 | esac |
13975 | case $ac_var in #( | |
13976 | _ | IFS | as_nl) ;; #( | |
39fd3d4f | 13977 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
57aa50d4 | 13978 | *) { eval $ac_var=; unset $ac_var;} ;; |
e1052144 TT |
13979 | esac ;; |
13980 | esac | |
13981 | done | |
13982 | ||
b0cacab0 | 13983 | (set) 2>&1 | |
e1052144 TT |
13984 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
13985 | *${as_nl}ac_space=\ *) | |
57aa50d4 TT |
13986 | # `set' does not quote correctly, so add quotes: double-quote |
13987 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
b0cacab0 TT |
13988 | sed -n \ |
13989 | "s/'/'\\\\''/g; | |
13990 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
e1052144 | 13991 | ;; #( |
b0cacab0 TT |
13992 | *) |
13993 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
e1052144 | 13994 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
b0cacab0 | 13995 | ;; |
e1052144 TT |
13996 | esac | |
13997 | sort | |
13998 | ) | | |
b0cacab0 | 13999 | sed ' |
e1052144 | 14000 | /^ac_cv_env_/b end |
b0cacab0 | 14001 | t clear |
e1052144 | 14002 | :clear |
b0cacab0 TT |
14003 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
14004 | t end | |
e1052144 TT |
14005 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
14006 | :end' >>confcache | |
14007 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
14008 | if test -w "$cache_file"; then | |
d6a4bcb5 | 14009 | if test "x$cache_file" != "x/dev/null"; then |
57aa50d4 | 14010 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
39fd3d4f | 14011 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
d6a4bcb5 TB |
14012 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
14013 | cat confcache >"$cache_file" | |
14014 | else | |
14015 | case $cache_file in #( | |
14016 | */* | ?:*) | |
14017 | mv -f confcache "$cache_file"$$ && | |
14018 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
14019 | *) | |
14020 | mv -f confcache "$cache_file" ;; | |
14021 | esac | |
14022 | fi | |
14023 | fi | |
50e1e10f | 14024 | else |
57aa50d4 | 14025 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
39fd3d4f | 14026 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
50e1e10f TT |
14027 | fi |
14028 | fi | |
14029 | rm -f confcache | |
14030 | ||
50e1e10f TT |
14031 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
14032 | # Let make expand exec_prefix. | |
14033 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
14034 | ||
d1154eb4 | 14035 | DEFS=-DHAVE_CONFIG_H |
b0cacab0 TT |
14036 | |
14037 | ac_libobjs= | |
14038 | ac_ltlibobjs= | |
d6a4bcb5 | 14039 | U= |
b0cacab0 TT |
14040 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
14041 | # 1. Remove the extension, and $U if already installed. | |
e1052144 | 14042 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
39fd3d4f | 14043 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
e1052144 TT |
14044 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
14045 | # will be set to the directory where LIBOBJS objects are built. | |
57aa50d4 TT |
14046 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
14047 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
b0cacab0 TT |
14048 | done |
14049 | LIBOBJS=$ac_libobjs | |
50e1e10f | 14050 | |
b0cacab0 TT |
14051 | LTLIBOBJS=$ac_ltlibobjs |
14052 | ||
14053 | ||
14054 | ||
39fd3d4f | 14055 | |
d6a4bcb5 | 14056 | : "${CONFIG_STATUS=./config.status}" |
39fd3d4f | 14057 | ac_write_fail=0 |
b0cacab0 TT |
14058 | ac_clean_files_save=$ac_clean_files |
14059 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
57aa50d4 | 14060 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
39fd3d4f | 14061 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
57aa50d4 TT |
14062 | as_write_fail=0 |
14063 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
b0cacab0 TT |
14064 | #! $SHELL |
14065 | # Generated by $as_me. | |
93636bde | 14066 | # Run this file to recreate the current configuration. |
93636bde | 14067 | # Compiler output produced by configure, useful for debugging |
b0cacab0 | 14068 | # configure, is in config.log if it exists. |
07a0db15 | 14069 | |
b0cacab0 TT |
14070 | debug=false |
14071 | ac_cs_recheck=false | |
14072 | ac_cs_silent=false | |
b0cacab0 | 14073 | |
57aa50d4 TT |
14074 | SHELL=\${CONFIG_SHELL-$SHELL} |
14075 | export SHELL | |
14076 | _ASEOF | |
14077 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
14078 | ## -------------------- ## | |
14079 | ## M4sh Initialization. ## | |
14080 | ## -------------------- ## | |
b0cacab0 | 14081 | |
29a5deed TT |
14082 | # Be more Bourne compatible |
14083 | DUALCASE=1; export DUALCASE # for MKS sh | |
57aa50d4 | 14084 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
b0cacab0 TT |
14085 | emulate sh |
14086 | NULLCMD=: | |
39fd3d4f | 14087 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
b0cacab0 TT |
14088 | # is contrary to our usage. Disable this feature. |
14089 | alias -g '${1+"$@"}'='"$@"' | |
e1052144 TT |
14090 | setopt NO_GLOB_SUBST |
14091 | else | |
57aa50d4 TT |
14092 | case `(set -o) 2>/dev/null` in #( |
14093 | *posix*) : | |
14094 | set -o posix ;; #( | |
14095 | *) : | |
14096 | ;; | |
29a5deed | 14097 | esac |
b0cacab0 | 14098 | fi |
29a5deed TT |
14099 | |
14100 | ||
39fd3d4f SJR |
14101 | as_nl=' |
14102 | ' | |
14103 | export as_nl | |
14104 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
14105 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
14106 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
14107 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
57aa50d4 TT |
14108 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
14109 | # but without wasting forks for bash or zsh. | |
14110 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
14111 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
14112 | as_echo='print -r --' | |
14113 | as_echo_n='print -rn --' | |
14114 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
39fd3d4f SJR |
14115 | as_echo='printf %s\n' |
14116 | as_echo_n='printf %s' | |
14117 | else | |
14118 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
14119 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
14120 | as_echo_n='/usr/ucb/echo -n' | |
e1052144 | 14121 | else |
39fd3d4f SJR |
14122 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
14123 | as_echo_n_body='eval | |
14124 | arg=$1; | |
57aa50d4 | 14125 | case $arg in #( |
39fd3d4f SJR |
14126 | *"$as_nl"*) |
14127 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
14128 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
14129 | esac; | |
14130 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
14131 | ' | |
14132 | export as_echo_n_body | |
14133 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
e1052144 | 14134 | fi |
39fd3d4f SJR |
14135 | export as_echo_body |
14136 | as_echo='sh -c $as_echo_body as_echo' | |
14137 | fi | |
14138 | ||
14139 | # The user is always right. | |
14140 | if test "${PATH_SEPARATOR+set}" != set; then | |
14141 | PATH_SEPARATOR=: | |
14142 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
14143 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
14144 | PATH_SEPARATOR=';' | |
14145 | } | |
e1052144 TT |
14146 | fi |
14147 | ||
b0cacab0 | 14148 | |
e1052144 TT |
14149 | # IFS |
14150 | # We need space, tab and new line, in precisely that order. Quoting is | |
14151 | # there to prevent editors from complaining about space-tab. | |
14152 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
14153 | # splitting by setting IFS to empty value.) | |
e1052144 TT |
14154 | IFS=" "" $as_nl" |
14155 | ||
14156 | # Find who we are. Look in the path if we contain no directory separator. | |
d6a4bcb5 | 14157 | as_myself= |
57aa50d4 | 14158 | case $0 in #(( |
e1052144 TT |
14159 | *[\\/]* ) as_myself=$0 ;; |
14160 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14161 | for as_dir in $PATH | |
14162 | do | |
14163 | IFS=$as_save_IFS | |
14164 | test -z "$as_dir" && as_dir=. | |
57aa50d4 TT |
14165 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
14166 | done | |
e1052144 TT |
14167 | IFS=$as_save_IFS |
14168 | ||
14169 | ;; | |
14170 | esac | |
14171 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
14172 | # in which case we are not to be found in the path. | |
14173 | if test "x$as_myself" = x; then | |
14174 | as_myself=$0 | |
14175 | fi | |
14176 | if test ! -f "$as_myself"; then | |
39fd3d4f | 14177 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
57aa50d4 | 14178 | exit 1 |
e1052144 TT |
14179 | fi |
14180 | ||
57aa50d4 TT |
14181 | # Unset variables that we do not need and which cause bugs (e.g. in |
14182 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
14183 | # suppresses any "Segmentation fault" message there. '((' could | |
14184 | # trigger a bug in pdksh 5.2.14. | |
14185 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
14186 | do eval test x\${$as_var+set} = xset \ | |
14187 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
e1052144 | 14188 | done |
b0cacab0 TT |
14189 | PS1='$ ' |
14190 | PS2='> ' | |
14191 | PS4='+ ' | |
14192 | ||
14193 | # NLS nuisances. | |
39fd3d4f SJR |
14194 | LC_ALL=C |
14195 | export LC_ALL | |
14196 | LANGUAGE=C | |
14197 | export LANGUAGE | |
b0cacab0 | 14198 | |
57aa50d4 TT |
14199 | # CDPATH. |
14200 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
14201 | ||
14202 | ||
d6a4bcb5 TB |
14203 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
14204 | # ---------------------------------------- | |
57aa50d4 TT |
14205 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
14206 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
d6a4bcb5 | 14207 | # script with STATUS, using 1 if that was 0. |
57aa50d4 TT |
14208 | as_fn_error () |
14209 | { | |
d6a4bcb5 TB |
14210 | as_status=$1; test $as_status -eq 0 && as_status=1 |
14211 | if test "$4"; then | |
14212 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
14213 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
57aa50d4 | 14214 | fi |
d6a4bcb5 | 14215 | $as_echo "$as_me: error: $2" >&2 |
57aa50d4 TT |
14216 | as_fn_exit $as_status |
14217 | } # as_fn_error | |
14218 | ||
14219 | ||
14220 | # as_fn_set_status STATUS | |
14221 | # ----------------------- | |
14222 | # Set $? to STATUS, without forking. | |
14223 | as_fn_set_status () | |
14224 | { | |
14225 | return $1 | |
14226 | } # as_fn_set_status | |
14227 | ||
14228 | # as_fn_exit STATUS | |
14229 | # ----------------- | |
14230 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
14231 | as_fn_exit () | |
14232 | { | |
14233 | set +e | |
14234 | as_fn_set_status $1 | |
14235 | exit $1 | |
14236 | } # as_fn_exit | |
14237 | ||
14238 | # as_fn_unset VAR | |
14239 | # --------------- | |
14240 | # Portably unset VAR. | |
14241 | as_fn_unset () | |
14242 | { | |
14243 | { eval $1=; unset $1;} | |
14244 | } | |
14245 | as_unset=as_fn_unset | |
14246 | # as_fn_append VAR VALUE | |
14247 | # ---------------------- | |
14248 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
14249 | # advantage of any shell optimizations that allow amortized linear growth over | |
14250 | # repeated appends, instead of the typical quadratic growth present in naive | |
14251 | # implementations. | |
14252 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
14253 | eval 'as_fn_append () | |
14254 | { | |
14255 | eval $1+=\$2 | |
14256 | }' | |
14257 | else | |
14258 | as_fn_append () | |
14259 | { | |
14260 | eval $1=\$$1\$2 | |
14261 | } | |
14262 | fi # as_fn_append | |
14263 | ||
14264 | # as_fn_arith ARG... | |
14265 | # ------------------ | |
14266 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
14267 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
14268 | # must be portable across $(()) and expr. | |
14269 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
14270 | eval 'as_fn_arith () | |
14271 | { | |
14272 | as_val=$(( $* )) | |
14273 | }' | |
14274 | else | |
14275 | as_fn_arith () | |
14276 | { | |
14277 | as_val=`expr "$@" || test $? -eq 1` | |
14278 | } | |
14279 | fi # as_fn_arith | |
14280 | ||
14281 | ||
e1052144 TT |
14282 | if expr a : '\(a\)' >/dev/null 2>&1 && |
14283 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
b0cacab0 TT |
14284 | as_expr=expr |
14285 | else | |
14286 | as_expr=false | |
14287 | fi | |
14288 | ||
e1052144 | 14289 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
b0cacab0 TT |
14290 | as_basename=basename |
14291 | else | |
14292 | as_basename=false | |
14293 | fi | |
14294 | ||
57aa50d4 TT |
14295 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
14296 | as_dirname=dirname | |
14297 | else | |
14298 | as_dirname=false | |
14299 | fi | |
b0cacab0 | 14300 | |
e1052144 | 14301 | as_me=`$as_basename -- "$0" || |
b0cacab0 TT |
14302 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
14303 | X"$0" : 'X\(//\)$' \| \ | |
e1052144 | 14304 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
39fd3d4f | 14305 | $as_echo X/"$0" | |
e1052144 TT |
14306 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
14307 | s//\1/ | |
14308 | q | |
14309 | } | |
14310 | /^X\/\(\/\/\)$/{ | |
14311 | s//\1/ | |
14312 | q | |
14313 | } | |
14314 | /^X\/\(\/\).*/{ | |
14315 | s//\1/ | |
14316 | q | |
14317 | } | |
14318 | s/.*/./; q'` | |
b0cacab0 | 14319 | |
57aa50d4 TT |
14320 | # Avoid depending upon Character Ranges. |
14321 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
14322 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
14323 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
14324 | as_cr_digits='0123456789' | |
14325 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
e1052144 TT |
14326 | |
14327 | ECHO_C= ECHO_N= ECHO_T= | |
57aa50d4 | 14328 | case `echo -n x` in #((((( |
e1052144 | 14329 | -n*) |
57aa50d4 | 14330 | case `echo 'xy\c'` in |
e1052144 | 14331 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
57aa50d4 TT |
14332 | xy) ECHO_C='\c';; |
14333 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
14334 | ECHO_T=' ';; | |
e1052144 TT |
14335 | esac;; |
14336 | *) | |
14337 | ECHO_N='-n';; | |
b0cacab0 | 14338 | esac |
b0cacab0 TT |
14339 | |
14340 | rm -f conf$$ conf$$.exe conf$$.file | |
e1052144 TT |
14341 | if test -d conf$$.dir; then |
14342 | rm -f conf$$.dir/conf$$.file | |
14343 | else | |
14344 | rm -f conf$$.dir | |
39fd3d4f SJR |
14345 | mkdir conf$$.dir 2>/dev/null |
14346 | fi | |
14347 | if (echo >conf$$.file) 2>/dev/null; then | |
14348 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
14349 | as_ln_s='ln -s' | |
14350 | # ... but there are two gotchas: | |
14351 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
14352 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
d6a4bcb5 | 14353 | # In both cases, we have to default to `cp -pR'. |
39fd3d4f | 14354 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
d6a4bcb5 | 14355 | as_ln_s='cp -pR' |
39fd3d4f SJR |
14356 | elif ln conf$$.file conf$$ 2>/dev/null; then |
14357 | as_ln_s=ln | |
14358 | else | |
d6a4bcb5 | 14359 | as_ln_s='cp -pR' |
39fd3d4f | 14360 | fi |
b0cacab0 | 14361 | else |
d6a4bcb5 | 14362 | as_ln_s='cp -pR' |
b0cacab0 | 14363 | fi |
e1052144 TT |
14364 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
14365 | rmdir conf$$.dir 2>/dev/null | |
b0cacab0 | 14366 | |
57aa50d4 TT |
14367 | |
14368 | # as_fn_mkdir_p | |
14369 | # ------------- | |
14370 | # Create "$as_dir" as a directory, including parents if necessary. | |
14371 | as_fn_mkdir_p () | |
14372 | { | |
14373 | ||
14374 | case $as_dir in #( | |
14375 | -*) as_dir=./$as_dir;; | |
14376 | esac | |
14377 | test -d "$as_dir" || eval $as_mkdir_p || { | |
14378 | as_dirs= | |
14379 | while :; do | |
14380 | case $as_dir in #( | |
14381 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
14382 | *) as_qdir=$as_dir;; | |
14383 | esac | |
14384 | as_dirs="'$as_qdir' $as_dirs" | |
14385 | as_dir=`$as_dirname -- "$as_dir" || | |
14386 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
14387 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
14388 | X"$as_dir" : 'X\(//\)$' \| \ | |
14389 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
14390 | $as_echo X"$as_dir" | | |
14391 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
14392 | s//\1/ | |
14393 | q | |
14394 | } | |
14395 | /^X\(\/\/\)[^/].*/{ | |
14396 | s//\1/ | |
14397 | q | |
14398 | } | |
14399 | /^X\(\/\/\)$/{ | |
14400 | s//\1/ | |
14401 | q | |
14402 | } | |
14403 | /^X\(\/\).*/{ | |
14404 | s//\1/ | |
14405 | q | |
14406 | } | |
14407 | s/.*/./; q'` | |
14408 | test -d "$as_dir" && break | |
14409 | done | |
14410 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
d6a4bcb5 | 14411 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
57aa50d4 TT |
14412 | |
14413 | ||
14414 | } # as_fn_mkdir_p | |
b0cacab0 | 14415 | if mkdir -p . 2>/dev/null; then |
57aa50d4 | 14416 | as_mkdir_p='mkdir -p "$as_dir"' |
b0cacab0 TT |
14417 | else |
14418 | test -d ./-p && rmdir ./-p | |
14419 | as_mkdir_p=false | |
14420 | fi | |
14421 | ||
d6a4bcb5 TB |
14422 | |
14423 | # as_fn_executable_p FILE | |
14424 | # ----------------------- | |
14425 | # Test if FILE is an executable regular file. | |
14426 | as_fn_executable_p () | |
14427 | { | |
14428 | test -f "$1" && test -x "$1" | |
14429 | } # as_fn_executable_p | |
14430 | as_test_x='test -x' | |
14431 | as_executable_p=as_fn_executable_p | |
b0cacab0 TT |
14432 | |
14433 | # Sed expression to map a string onto a valid CPP name. | |
14434 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
14435 | ||
14436 | # Sed expression to map a string onto a valid variable name. | |
14437 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
14438 | ||
14439 | ||
b0cacab0 | 14440 | exec 6>&1 |
57aa50d4 TT |
14441 | ## ----------------------------------- ## |
14442 | ## Main body of $CONFIG_STATUS script. ## | |
14443 | ## ----------------------------------- ## | |
14444 | _ASEOF | |
14445 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
b0cacab0 | 14446 | |
57aa50d4 TT |
14447 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
14448 | # Save the log message, to keep $0 and so on meaningful, and to | |
b0cacab0 | 14449 | # report actual input values of CONFIG_FILES etc. instead of their |
e1052144 TT |
14450 | # values after options handling. |
14451 | ac_log=" | |
b0cacab0 | 14452 | This file was extended by $as_me, which was |
d6a4bcb5 | 14453 | generated by GNU Autoconf 2.69. Invocation command line was |
b0cacab0 TT |
14454 | |
14455 | CONFIG_FILES = $CONFIG_FILES | |
14456 | CONFIG_HEADERS = $CONFIG_HEADERS | |
14457 | CONFIG_LINKS = $CONFIG_LINKS | |
14458 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
14459 | $ $0 $@ | |
14460 | ||
e1052144 TT |
14461 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
14462 | " | |
14463 | ||
b0cacab0 TT |
14464 | _ACEOF |
14465 | ||
39fd3d4f SJR |
14466 | case $ac_config_files in *" |
14467 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
14468 | esac | |
14469 | ||
d1154eb4 TT |
14470 | case $ac_config_headers in *" |
14471 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
14472 | esac | |
39fd3d4f SJR |
14473 | |
14474 | ||
14475 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
b0cacab0 | 14476 | # Files that config.status was made for. |
e1052144 | 14477 | config_files="$ac_config_files" |
d1154eb4 | 14478 | config_headers="$ac_config_headers" |
e1052144 | 14479 | config_commands="$ac_config_commands" |
b0cacab0 | 14480 | |
e1052144 | 14481 | _ACEOF |
b0cacab0 | 14482 | |
39fd3d4f | 14483 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
b0cacab0 | 14484 | ac_cs_usage="\ |
57aa50d4 TT |
14485 | \`$as_me' instantiates files and other configuration actions |
14486 | from templates according to the current configuration. Unless the files | |
14487 | and actions are specified as TAGs, all are instantiated by default. | |
b0cacab0 | 14488 | |
57aa50d4 | 14489 | Usage: $0 [OPTION]... [TAG]... |
b0cacab0 TT |
14490 | |
14491 | -h, --help print this help, then exit | |
29a5deed | 14492 | -V, --version print version number and configuration settings, then exit |
61ef2474 | 14493 | --config print configuration, then exit |
39fd3d4f SJR |
14494 | -q, --quiet, --silent |
14495 | do not print progress messages | |
b0cacab0 TT |
14496 | -d, --debug don't remove temporary files |
14497 | --recheck update $as_me by reconfiguring in the same conditions | |
39fd3d4f SJR |
14498 | --file=FILE[:TEMPLATE] |
14499 | instantiate the configuration file FILE | |
d1154eb4 TT |
14500 | --header=FILE[:TEMPLATE] |
14501 | instantiate the configuration header FILE | |
b0cacab0 TT |
14502 | |
14503 | Configuration files: | |
14504 | $config_files | |
14505 | ||
d1154eb4 TT |
14506 | Configuration headers: |
14507 | $config_headers | |
14508 | ||
b0cacab0 TT |
14509 | Configuration commands: |
14510 | $config_commands | |
14511 | ||
57aa50d4 | 14512 | Report bugs to the package provider." |
b0cacab0 | 14513 | |
e1052144 | 14514 | _ACEOF |
39fd3d4f | 14515 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
61ef2474 | 14516 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
b0cacab0 TT |
14517 | ac_cs_version="\\ |
14518 | config.status | |
d6a4bcb5 | 14519 | configured by $0, generated by GNU Autoconf 2.69, |
61ef2474 | 14520 | with options \\"\$ac_cs_config\\" |
b0cacab0 | 14521 | |
d6a4bcb5 | 14522 | Copyright (C) 2012 Free Software Foundation, Inc. |
b0cacab0 TT |
14523 | This config.status script is free software; the Free Software Foundation |
14524 | gives unlimited permission to copy, distribute and modify it." | |
e1052144 TT |
14525 | |
14526 | ac_pwd='$ac_pwd' | |
14527 | srcdir='$srcdir' | |
14528 | INSTALL='$INSTALL' | |
93613951 | 14529 | MKDIR_P='$MKDIR_P' |
39fd3d4f SJR |
14530 | AWK='$AWK' |
14531 | test -n "\$AWK" || AWK=awk | |
b0cacab0 TT |
14532 | _ACEOF |
14533 | ||
39fd3d4f SJR |
14534 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
14535 | # The default lists apply if the user does not specify any file. | |
b0cacab0 TT |
14536 | ac_need_defaults=: |
14537 | while test $# != 0 | |
07a0db15 | 14538 | do |
b0cacab0 | 14539 | case $1 in |
d6a4bcb5 | 14540 | --*=?*) |
e1052144 TT |
14541 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
14542 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
b0cacab0 TT |
14543 | ac_shift=: |
14544 | ;; | |
d6a4bcb5 TB |
14545 | --*=) |
14546 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
14547 | ac_optarg= | |
14548 | ac_shift=: | |
14549 | ;; | |
e1052144 | 14550 | *) |
b0cacab0 TT |
14551 | ac_option=$1 |
14552 | ac_optarg=$2 | |
14553 | ac_shift=shift | |
14554 | ;; | |
b0cacab0 TT |
14555 | esac |
14556 | ||
14557 | case $ac_option in | |
14558 | # Handling of the options. | |
93636bde | 14559 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
b0cacab0 | 14560 | ac_cs_recheck=: ;; |
e1052144 | 14561 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
39fd3d4f | 14562 | $as_echo "$ac_cs_version"; exit ;; |
61ef2474 TT |
14563 | --config | --confi | --conf | --con | --co | --c ) |
14564 | $as_echo "$ac_cs_config"; exit ;; | |
e1052144 | 14565 | --debug | --debu | --deb | --de | --d | -d ) |
b0cacab0 TT |
14566 | debug=: ;; |
14567 | --file | --fil | --fi | --f ) | |
14568 | $ac_shift | |
39fd3d4f SJR |
14569 | case $ac_optarg in |
14570 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
d6a4bcb5 | 14571 | '') as_fn_error $? "missing file argument" ;; |
39fd3d4f | 14572 | esac |
57aa50d4 | 14573 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
b0cacab0 | 14574 | ac_need_defaults=false;; |
d1154eb4 TT |
14575 | --header | --heade | --head | --hea ) |
14576 | $ac_shift | |
14577 | case $ac_optarg in | |
14578 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
14579 | esac | |
14580 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
14581 | ac_need_defaults=false;; | |
14582 | --he | --h) | |
14583 | # Conflict between --help and --header | |
d6a4bcb5 | 14584 | as_fn_error $? "ambiguous option: \`$1' |
d1154eb4 TT |
14585 | Try \`$0 --help' for more information.";; |
14586 | --help | --hel | -h ) | |
39fd3d4f | 14587 | $as_echo "$ac_cs_usage"; exit ;; |
b0cacab0 TT |
14588 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
14589 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
14590 | ac_cs_silent=: ;; | |
14591 | ||
14592 | # This is an error. | |
d6a4bcb5 | 14593 | -*) as_fn_error $? "unrecognized option: \`$1' |
57aa50d4 | 14594 | Try \`$0 --help' for more information." ;; |
b0cacab0 | 14595 | |
57aa50d4 | 14596 | *) as_fn_append ac_config_targets " $1" |
e1052144 | 14597 | ac_need_defaults=false ;; |
b0cacab0 | 14598 | |
07a0db15 | 14599 | esac |
b0cacab0 | 14600 | shift |
07a0db15 TT |
14601 | done |
14602 | ||
b0cacab0 TT |
14603 | ac_configure_extra_args= |
14604 | ||
14605 | if $ac_cs_silent; then | |
14606 | exec 6>/dev/null | |
14607 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
14608 | fi | |
14609 | ||
14610 | _ACEOF | |
39fd3d4f | 14611 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
b0cacab0 | 14612 | if \$ac_cs_recheck; then |
d6a4bcb5 | 14613 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
39fd3d4f SJR |
14614 | shift |
14615 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
14616 | CONFIG_SHELL='$SHELL' | |
e1052144 | 14617 | export CONFIG_SHELL |
39fd3d4f | 14618 | exec "\$@" |
b0cacab0 | 14619 | fi |
07a0db15 | 14620 | |
b0cacab0 | 14621 | _ACEOF |
39fd3d4f | 14622 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
e1052144 TT |
14623 | exec 5>>config.log |
14624 | { | |
14625 | echo | |
14626 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
14627 | ## Running $as_me. ## | |
14628 | _ASBOX | |
39fd3d4f | 14629 | $as_echo "$ac_log" |
e1052144 | 14630 | } >&5 |
07a0db15 | 14631 | |
e1052144 | 14632 | _ACEOF |
39fd3d4f | 14633 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
b0cacab0 | 14634 | # |
e1052144 | 14635 | # INIT-COMMANDS |
b0cacab0 | 14636 | # |
b0cacab0 TT |
14637 | # Capture the value of obsolete ALL_LINGUAS because we need it to compute |
14638 | # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it | |
93613951 | 14639 | # from automake < 1.5. |
b0cacab0 TT |
14640 | eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' |
14641 | # Capture the value of LINGUAS because we need it to compute CATALOGS. | |
14642 | LINGUAS="${LINGUAS-%UNSET%}" | |
14643 | ||
14644 | ||
14645 | _ACEOF | |
14646 | ||
39fd3d4f | 14647 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
e1052144 TT |
14648 | |
14649 | # Handling of arguments. | |
b0cacab0 TT |
14650 | for ac_config_target in $ac_config_targets |
14651 | do | |
e1052144 | 14652 | case $ac_config_target in |
d1154eb4 | 14653 | "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;; |
93613951 | 14654 | "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;; |
e1052144 TT |
14655 | "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;; |
14656 | ||
d6a4bcb5 | 14657 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
b0cacab0 TT |
14658 | esac |
14659 | done | |
14660 | ||
e1052144 | 14661 | |
b0cacab0 TT |
14662 | # If the user did not use the arguments to specify the items to instantiate, |
14663 | # then the envvar interface is used. Set only those that are not. | |
14664 | # We use the long form for the default assignment because of an extremely | |
14665 | # bizarre bug on SunOS 4.1.3. | |
14666 | if $ac_need_defaults; then | |
14667 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
d1154eb4 | 14668 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
b0cacab0 TT |
14669 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
14670 | fi | |
14671 | ||
14672 | # Have a temporary directory for convenience. Make it in the build tree | |
e1052144 | 14673 | # simply because there is no reason against having it here, and in addition, |
b0cacab0 | 14674 | # creating and moving files from /tmp can sometimes cause problems. |
e1052144 TT |
14675 | # Hook for its removal unless debugging. |
14676 | # Note that there is a small window in which the directory will not be cleaned: | |
14677 | # after its creation but before its name has been assigned to `$tmp'. | |
b0cacab0 TT |
14678 | $debug || |
14679 | { | |
d6a4bcb5 | 14680 | tmp= ac_tmp= |
e1052144 | 14681 | trap 'exit_status=$? |
d6a4bcb5 TB |
14682 | : "${ac_tmp:=$tmp}" |
14683 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
e1052144 | 14684 | ' 0 |
57aa50d4 | 14685 | trap 'as_fn_exit 1' 1 2 13 15 |
b0cacab0 | 14686 | } |
b0cacab0 TT |
14687 | # Create a (secure) tmp directory for tmp files. |
14688 | ||
14689 | { | |
e1052144 | 14690 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
d6a4bcb5 | 14691 | test -d "$tmp" |
b0cacab0 TT |
14692 | } || |
14693 | { | |
e1052144 TT |
14694 | tmp=./conf$$-$RANDOM |
14695 | (umask 077 && mkdir "$tmp") | |
d6a4bcb5 TB |
14696 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
14697 | ac_tmp=$tmp | |
b0cacab0 | 14698 | |
39fd3d4f SJR |
14699 | # Set up the scripts for CONFIG_FILES section. |
14700 | # No need to generate them if there are no CONFIG_FILES. | |
14701 | # This happens for instance with `./config.status config.h'. | |
e1052144 TT |
14702 | if test -n "$CONFIG_FILES"; then |
14703 | ||
39fd3d4f SJR |
14704 | if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then |
14705 | ac_cs_awk_getline=: | |
14706 | ac_cs_awk_pipe_init= | |
14707 | ac_cs_awk_read_file=' | |
14708 | while ((getline aline < (F[key])) > 0) | |
14709 | print(aline) | |
14710 | close(F[key])' | |
14711 | ac_cs_awk_pipe_fini= | |
14712 | else | |
14713 | ac_cs_awk_getline=false | |
14714 | ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" | |
14715 | ac_cs_awk_read_file=' | |
14716 | print "|#_!!_#|" | |
14717 | print "cat " F[key] " &&" | |
14718 | '$ac_cs_awk_pipe_init | |
14719 | # The final `:' finishes the AND list. | |
14720 | ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' | |
14721 | fi | |
57aa50d4 TT |
14722 | ac_cr=`echo X | tr X '\015'` |
14723 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
14724 | # But we know of no other shell where ac_cr would be empty at this | |
14725 | # point, so we can use a bashism as a fallback. | |
14726 | if test "x$ac_cr" = x; then | |
14727 | eval ac_cr=\$\'\\r\' | |
14728 | fi | |
39fd3d4f SJR |
14729 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
14730 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
d6a4bcb5 | 14731 | ac_cs_awk_cr='\\r' |
39fd3d4f SJR |
14732 | else |
14733 | ac_cs_awk_cr=$ac_cr | |
14734 | fi | |
e1052144 | 14735 | |
d6a4bcb5 | 14736 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
39fd3d4f | 14737 | _ACEOF |
e1052144 | 14738 | |
39fd3d4f SJR |
14739 | # Create commands to substitute file output variables. |
14740 | { | |
14741 | echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && | |
d6a4bcb5 | 14742 | echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' && |
39fd3d4f SJR |
14743 | echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && |
14744 | echo "_ACAWK" && | |
14745 | echo "_ACEOF" | |
14746 | } >conf$$files.sh && | |
14747 | . ./conf$$files.sh || | |
d6a4bcb5 | 14748 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
39fd3d4f | 14749 | rm -f conf$$files.sh |
e1052144 | 14750 | |
39fd3d4f SJR |
14751 | { |
14752 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
14753 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
14754 | echo "_ACEOF" | |
14755 | } >conf$$subs.sh || | |
d6a4bcb5 TB |
14756 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
14757 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
e1052144 TT |
14758 | ac_delim='%!_!# ' |
14759 | for ac_last_try in false false false false false :; do | |
39fd3d4f | 14760 | . ./conf$$subs.sh || |
d6a4bcb5 | 14761 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
39fd3d4f SJR |
14762 | |
14763 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
14764 | if test $ac_delim_n = $ac_delim_num; then | |
e1052144 TT |
14765 | break |
14766 | elif $ac_last_try; then | |
d6a4bcb5 | 14767 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
e1052144 TT |
14768 | else |
14769 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
21c84b71 | 14770 | fi |
e1052144 | 14771 | done |
39fd3d4f SJR |
14772 | rm -f conf$$subs.sh |
14773 | ||
14774 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
d6a4bcb5 | 14775 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
39fd3d4f SJR |
14776 | _ACEOF |
14777 | sed -n ' | |
14778 | h | |
14779 | s/^/S["/; s/!.*/"]=/ | |
14780 | p | |
14781 | g | |
14782 | s/^[^!]*!// | |
14783 | :repl | |
14784 | t repl | |
14785 | s/'"$ac_delim"'$// | |
14786 | t delim | |
14787 | :nl | |
14788 | h | |
61ef2474 | 14789 | s/\(.\{148\}\)..*/\1/ |
39fd3d4f SJR |
14790 | t more1 |
14791 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
14792 | p | |
14793 | n | |
14794 | b repl | |
14795 | :more1 | |
14796 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
14797 | p | |
14798 | g | |
14799 | s/.\{148\}// | |
14800 | t nl | |
14801 | :delim | |
14802 | h | |
61ef2474 | 14803 | s/\(.\{148\}\)..*/\1/ |
39fd3d4f SJR |
14804 | t more2 |
14805 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
14806 | p | |
14807 | b | |
14808 | :more2 | |
14809 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
14810 | p | |
14811 | g | |
14812 | s/.\{148\}// | |
14813 | t delim | |
14814 | ' <conf$$subs.awk | sed ' | |
14815 | /^[^""]/{ | |
14816 | N | |
14817 | s/\n// | |
e1052144 | 14818 | } |
39fd3d4f SJR |
14819 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
14820 | rm -f conf$$subs.awk | |
14821 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
14822 | _ACAWK | |
d6a4bcb5 | 14823 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
39fd3d4f SJR |
14824 | for (key in S) S_is_set[key] = 1 |
14825 | FS = "\a" | |
14826 | \$ac_cs_awk_pipe_init | |
e1052144 | 14827 | } |
39fd3d4f SJR |
14828 | { |
14829 | line = $ 0 | |
14830 | nfields = split(line, field, "@") | |
14831 | substed = 0 | |
14832 | len = length(field[1]) | |
14833 | for (i = 2; i < nfields; i++) { | |
14834 | key = field[i] | |
14835 | keylen = length(key) | |
14836 | if (S_is_set[key]) { | |
14837 | value = S[key] | |
14838 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
14839 | len += length(value) + length(field[++i]) | |
14840 | substed = 1 | |
14841 | } else | |
14842 | len += 1 + keylen | |
14843 | } | |
14844 | if (nfields == 3 && !substed) { | |
14845 | key = field[2] | |
14846 | if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { | |
14847 | \$ac_cs_awk_read_file | |
14848 | next | |
14849 | } | |
14850 | } | |
14851 | print line | |
488c75a6 | 14852 | } |
39fd3d4f SJR |
14853 | \$ac_cs_awk_pipe_fini |
14854 | _ACAWK | |
e1052144 | 14855 | _ACEOF |
39fd3d4f SJR |
14856 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
14857 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
14858 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
14859 | else | |
14860 | cat | |
d6a4bcb5 TB |
14861 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
14862 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
b0cacab0 | 14863 | _ACEOF |
e1052144 | 14864 | |
d6a4bcb5 TB |
14865 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
14866 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
e1052144 TT |
14867 | # trailing colons and then remove the whole line if VPATH becomes empty |
14868 | # (actually we leave an empty line to preserve line numbers). | |
14869 | if test "x$srcdir" = x.; then | |
d6a4bcb5 TB |
14870 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
14871 | h | |
14872 | s/// | |
14873 | s/^/:/ | |
14874 | s/[ ]*$/:/ | |
14875 | s/:\$(srcdir):/:/g | |
14876 | s/:\${srcdir}:/:/g | |
14877 | s/:@srcdir@:/:/g | |
14878 | s/^:*// | |
e1052144 | 14879 | s/:*$// |
d6a4bcb5 TB |
14880 | x |
14881 | s/\(=[ ]*\).*/\1/ | |
14882 | G | |
14883 | s/\n// | |
e1052144 TT |
14884 | s/^[^=]*=[ ]*$// |
14885 | }' | |
14886 | fi | |
14887 | ||
39fd3d4f | 14888 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
e1052144 TT |
14889 | fi # test -n "$CONFIG_FILES" |
14890 | ||
d1154eb4 TT |
14891 | # Set up the scripts for CONFIG_HEADERS section. |
14892 | # No need to generate them if there are no CONFIG_HEADERS. | |
14893 | # This happens for instance with `./config.status Makefile'. | |
14894 | if test -n "$CONFIG_HEADERS"; then | |
d6a4bcb5 | 14895 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
d1154eb4 TT |
14896 | BEGIN { |
14897 | _ACEOF | |
14898 | ||
14899 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
14900 | # here-document in config.status, that substitutes the proper values into | |
14901 | # config.h.in to produce config.h. | |
14902 | ||
14903 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
14904 | # handling of long lines. | |
14905 | ac_delim='%!_!# ' | |
14906 | for ac_last_try in false false :; do | |
d6a4bcb5 TB |
14907 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
14908 | if test -z "$ac_tt"; then | |
d1154eb4 TT |
14909 | break |
14910 | elif $ac_last_try; then | |
d6a4bcb5 | 14911 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
d1154eb4 TT |
14912 | else |
14913 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
14914 | fi | |
14915 | done | |
14916 | ||
14917 | # For the awk script, D is an array of macro values keyed by name, | |
14918 | # likewise P contains macro parameters if any. Preserve backslash | |
14919 | # newline sequences. | |
14920 | ||
14921 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
14922 | sed -n ' | |
14923 | s/.\{148\}/&'"$ac_delim"'/g | |
14924 | t rset | |
14925 | :rset | |
14926 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
14927 | t def | |
14928 | d | |
14929 | :def | |
14930 | s/\\$// | |
14931 | t bsnl | |
14932 | s/["\\]/\\&/g | |
14933 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
14934 | D["\1"]=" \3"/p | |
14935 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
14936 | d | |
14937 | :bsnl | |
14938 | s/["\\]/\\&/g | |
14939 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
14940 | D["\1"]=" \3\\\\\\n"\\/p | |
14941 | t cont | |
14942 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
14943 | t cont | |
14944 | d | |
14945 | :cont | |
14946 | n | |
14947 | s/.\{148\}/&'"$ac_delim"'/g | |
14948 | t clear | |
14949 | :clear | |
14950 | s/\\$// | |
14951 | t bsnlc | |
14952 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
14953 | d | |
14954 | :bsnlc | |
14955 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
14956 | b cont | |
14957 | ' <confdefs.h | sed ' | |
14958 | s/'"$ac_delim"'/"\\\ | |
14959 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
14960 | ||
14961 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
14962 | for (key in D) D_is_set[key] = 1 | |
14963 | FS = "\a" | |
14964 | } | |
14965 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
14966 | line = \$ 0 | |
14967 | split(line, arg, " ") | |
14968 | if (arg[1] == "#") { | |
14969 | defundef = arg[2] | |
14970 | mac1 = arg[3] | |
14971 | } else { | |
14972 | defundef = substr(arg[1], 2) | |
14973 | mac1 = arg[2] | |
14974 | } | |
14975 | split(mac1, mac2, "(") #) | |
14976 | macro = mac2[1] | |
14977 | prefix = substr(line, 1, index(line, defundef) - 1) | |
14978 | if (D_is_set[macro]) { | |
14979 | # Preserve the white space surrounding the "#". | |
14980 | print prefix "define", macro P[macro] D[macro] | |
14981 | next | |
14982 | } else { | |
14983 | # Replace #undef with comments. This is necessary, for example, | |
14984 | # in the case of _POSIX_SOURCE, which is predefined and required | |
14985 | # on some systems where configure will not decide to define it. | |
14986 | if (defundef == "undef") { | |
14987 | print "/*", prefix defundef, macro, "*/" | |
14988 | next | |
14989 | } | |
14990 | } | |
14991 | } | |
14992 | { print } | |
14993 | _ACAWK | |
14994 | _ACEOF | |
14995 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
d6a4bcb5 | 14996 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
d1154eb4 TT |
14997 | fi # test -n "$CONFIG_HEADERS" |
14998 | ||
e1052144 | 14999 | |
d1154eb4 | 15000 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
39fd3d4f SJR |
15001 | shift |
15002 | for ac_tag | |
e1052144 TT |
15003 | do |
15004 | case $ac_tag in | |
15005 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
15006 | esac | |
15007 | case $ac_mode$ac_tag in | |
15008 | :[FHL]*:*);; | |
d6a4bcb5 | 15009 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
e1052144 TT |
15010 | :[FH]-) ac_tag=-:-;; |
15011 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
15012 | esac | |
15013 | ac_save_IFS=$IFS | |
15014 | IFS=: | |
15015 | set x $ac_tag | |
15016 | IFS=$ac_save_IFS | |
15017 | shift | |
15018 | ac_file=$1 | |
15019 | shift | |
15020 | ||
15021 | case $ac_mode in | |
15022 | :L) ac_source=$1;; | |
15023 | :[FH]) | |
15024 | ac_file_inputs= | |
15025 | for ac_f | |
15026 | do | |
15027 | case $ac_f in | |
d6a4bcb5 | 15028 | -) ac_f="$ac_tmp/stdin";; |
e1052144 TT |
15029 | *) # Look for the file first in the build tree, then in the source tree |
15030 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
15031 | # because $ac_f cannot contain `:'. | |
15032 | test -f "$ac_f" || | |
15033 | case $ac_f in | |
15034 | [\\/$]*) false;; | |
15035 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
15036 | esac || | |
d6a4bcb5 | 15037 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
e1052144 | 15038 | esac |
39fd3d4f | 15039 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
57aa50d4 | 15040 | as_fn_append ac_file_inputs " '$ac_f'" |
e1052144 TT |
15041 | done |
15042 | ||
15043 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
15044 | # use $as_me), people would be surprised to read: | |
15045 | # /* config.h. Generated by config.status. */ | |
39fd3d4f SJR |
15046 | configure_input='Generated from '` |
15047 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
15048 | `' by configure.' | |
e1052144 TT |
15049 | if test x"$ac_file" != x-; then |
15050 | configure_input="$ac_file. $configure_input" | |
57aa50d4 | 15051 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
39fd3d4f | 15052 | $as_echo "$as_me: creating $ac_file" >&6;} |
e1052144 | 15053 | fi |
39fd3d4f SJR |
15054 | # Neutralize special characters interpreted by sed in replacement strings. |
15055 | case $configure_input in #( | |
15056 | *\&* | *\|* | *\\* ) | |
15057 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
15058 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
15059 | *) ac_sed_conf_input=$configure_input;; | |
15060 | esac | |
e1052144 TT |
15061 | |
15062 | case $ac_tag in | |
d6a4bcb5 TB |
15063 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
15064 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
e1052144 TT |
15065 | esac |
15066 | ;; | |
b0cacab0 TT |
15067 | esac |
15068 | ||
e1052144 | 15069 | ac_dir=`$as_dirname -- "$ac_file" || |
b0cacab0 TT |
15070 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
15071 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
15072 | X"$ac_file" : 'X\(//\)$' \| \ | |
e1052144 | 15073 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
39fd3d4f | 15074 | $as_echo X"$ac_file" | |
e1052144 TT |
15075 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
15076 | s//\1/ | |
15077 | q | |
15078 | } | |
15079 | /^X\(\/\/\)[^/].*/{ | |
15080 | s//\1/ | |
15081 | q | |
15082 | } | |
15083 | /^X\(\/\/\)$/{ | |
15084 | s//\1/ | |
15085 | q | |
15086 | } | |
15087 | /^X\(\/\).*/{ | |
15088 | s//\1/ | |
15089 | q | |
15090 | } | |
15091 | s/.*/./; q'` | |
57aa50d4 | 15092 | as_dir="$ac_dir"; as_fn_mkdir_p |
b0cacab0 TT |
15093 | ac_builddir=. |
15094 | ||
e1052144 TT |
15095 | case "$ac_dir" in |
15096 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
15097 | *) | |
39fd3d4f | 15098 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
e1052144 | 15099 | # A ".." for each directory in $ac_dir_suffix. |
39fd3d4f | 15100 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
e1052144 TT |
15101 | case $ac_top_builddir_sub in |
15102 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
15103 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
15104 | esac ;; | |
15105 | esac | |
15106 | ac_abs_top_builddir=$ac_pwd | |
15107 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
15108 | # for backward compatibility: | |
15109 | ac_top_builddir=$ac_top_build_prefix | |
93636bde | 15110 | |
b0cacab0 | 15111 | case $srcdir in |
e1052144 | 15112 | .) # We are building in place. |
b0cacab0 | 15113 | ac_srcdir=. |
e1052144 TT |
15114 | ac_top_srcdir=$ac_top_builddir_sub |
15115 | ac_abs_top_srcdir=$ac_pwd ;; | |
15116 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
b0cacab0 | 15117 | ac_srcdir=$srcdir$ac_dir_suffix; |
e1052144 TT |
15118 | ac_top_srcdir=$srcdir |
15119 | ac_abs_top_srcdir=$srcdir ;; | |
15120 | *) # Relative name. | |
15121 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
15122 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
15123 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
b0cacab0 | 15124 | esac |
e1052144 | 15125 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
b0cacab0 | 15126 | |
b0cacab0 | 15127 | |
e1052144 TT |
15128 | case $ac_mode in |
15129 | :F) | |
15130 | # | |
15131 | # CONFIG_FILE | |
15132 | # | |
50e1e10f | 15133 | |
b0cacab0 TT |
15134 | case $INSTALL in |
15135 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
e1052144 | 15136 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
50e1e10f | 15137 | esac |
93613951 TT |
15138 | ac_MKDIR_P=$MKDIR_P |
15139 | case $MKDIR_P in | |
15140 | [\\/$]* | ?:[\\/]* ) ;; | |
15141 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
15142 | esac | |
e1052144 | 15143 | _ACEOF |
50e1e10f | 15144 | |
39fd3d4f | 15145 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
e1052144 TT |
15146 | # If the template does not know about datarootdir, expand it. |
15147 | # FIXME: This hack should be removed a few years after 2.60. | |
15148 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
39fd3d4f SJR |
15149 | ac_sed_dataroot=' |
15150 | /datarootdir/ { | |
e1052144 TT |
15151 | p |
15152 | q | |
15153 | } | |
15154 | /@datadir@/p | |
15155 | /@docdir@/p | |
15156 | /@infodir@/p | |
15157 | /@localedir@/p | |
57aa50d4 | 15158 | /@mandir@/p' |
39fd3d4f | 15159 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
e1052144 TT |
15160 | *datarootdir*) ac_datarootdir_seen=yes;; |
15161 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
57aa50d4 | 15162 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
39fd3d4f | 15163 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
b0cacab0 | 15164 | _ACEOF |
39fd3d4f | 15165 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
e1052144 TT |
15166 | ac_datarootdir_hack=' |
15167 | s&@datadir@&$datadir&g | |
15168 | s&@docdir@&$docdir&g | |
15169 | s&@infodir@&$infodir&g | |
15170 | s&@localedir@&$localedir&g | |
15171 | s&@mandir@&$mandir&g | |
57aa50d4 | 15172 | s&\\\${datarootdir}&$datarootdir&g' ;; |
e1052144 TT |
15173 | esac |
15174 | _ACEOF | |
15175 | ||
15176 | # Neutralize VPATH when `$srcdir' = `.'. | |
15177 | # Shell code in configure.ac might set extrasub. | |
15178 | # FIXME: do we really want to maintain this feature? | |
39fd3d4f SJR |
15179 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
15180 | ac_sed_extra="$ac_vpsub | |
b0cacab0 TT |
15181 | $extrasub |
15182 | _ACEOF | |
39fd3d4f | 15183 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
b0cacab0 TT |
15184 | :t |
15185 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
39fd3d4f | 15186 | s|@configure_input@|$ac_sed_conf_input|;t t |
e1052144 | 15187 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
39fd3d4f | 15188 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
e1052144 TT |
15189 | s&@srcdir@&$ac_srcdir&;t t |
15190 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
15191 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
15192 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
15193 | s&@builddir@&$ac_builddir&;t t | |
15194 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
15195 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
15196 | s&@INSTALL@&$ac_INSTALL&;t t | |
93613951 | 15197 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
e1052144 | 15198 | $ac_datarootdir_hack |
39fd3d4f SJR |
15199 | " |
15200 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | | |
15201 | if $ac_cs_awk_getline; then | |
d6a4bcb5 | 15202 | $AWK -f "$ac_tmp/subs.awk" |
39fd3d4f | 15203 | else |
d6a4bcb5 TB |
15204 | $AWK -f "$ac_tmp/subs.awk" | $SHELL |
15205 | fi \ | |
15206 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
e1052144 TT |
15207 | |
15208 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
d6a4bcb5 TB |
15209 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
15210 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
15211 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
57aa50d4 | 15212 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
d6a4bcb5 | 15213 | which seems to be undefined. Please make sure it is defined" >&5 |
39fd3d4f | 15214 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
d6a4bcb5 | 15215 | which seems to be undefined. Please make sure it is defined" >&2;} |
e1052144 | 15216 | |
d6a4bcb5 | 15217 | rm -f "$ac_tmp/stdin" |
e1052144 | 15218 | case $ac_file in |
d6a4bcb5 TB |
15219 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
15220 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
39fd3d4f | 15221 | esac \ |
d6a4bcb5 | 15222 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
e1052144 | 15223 | ;; |
d1154eb4 TT |
15224 | :H) |
15225 | # | |
15226 | # CONFIG_HEADER | |
15227 | # | |
15228 | if test x"$ac_file" != x-; then | |
15229 | { | |
15230 | $as_echo "/* $configure_input */" \ | |
d6a4bcb5 TB |
15231 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
15232 | } >"$ac_tmp/config.h" \ | |
15233 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
15234 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
d1154eb4 TT |
15235 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
15236 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
15237 | else | |
15238 | rm -f "$ac_file" | |
d6a4bcb5 TB |
15239 | mv "$ac_tmp/config.h" "$ac_file" \ |
15240 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
d1154eb4 TT |
15241 | fi |
15242 | else | |
15243 | $as_echo "/* $configure_input */" \ | |
d6a4bcb5 TB |
15244 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
15245 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
d1154eb4 TT |
15246 | fi |
15247 | ;; | |
07a0db15 | 15248 | |
57aa50d4 | 15249 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
39fd3d4f | 15250 | $as_echo "$as_me: executing $ac_file commands" >&6;} |
e1052144 TT |
15251 | ;; |
15252 | esac | |
a04eba3f | 15253 | |
b0cacab0 | 15254 | |
e1052144 | 15255 | case $ac_file$ac_mode in |
93613951 | 15256 | "po-directories":C) |
a04eba3f TT |
15257 | for ac_file in $CONFIG_FILES; do |
15258 | # Support "outfile[:infile[:infile...]]" | |
15259 | case "$ac_file" in | |
15260 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
15261 | esac | |
15262 | # PO directories have a Makefile.in generated from Makefile.in.in. | |
15263 | case "$ac_file" in */Makefile.in) | |
15264 | # Adjust a relative srcdir. | |
15265 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` | |
93613951 | 15266 | ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'` |
a04eba3f TT |
15267 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` |
15268 | # In autoconf-2.13 it is called $ac_given_srcdir. | |
15269 | # In autoconf-2.50 it is called $srcdir. | |
15270 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" | |
15271 | case "$ac_given_srcdir" in | |
15272 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; | |
15273 | /*) top_srcdir="$ac_given_srcdir" ;; | |
15274 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
15275 | esac | |
93613951 TT |
15276 | # Treat a directory as a PO directory if and only if it has a |
15277 | # POTFILES.in file. This allows packages to have multiple PO | |
15278 | # directories under different names or in different locations. | |
a04eba3f TT |
15279 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then |
15280 | rm -f "$ac_dir/POTFILES" | |
15281 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" | |
93613951 TT |
15282 | gt_tab=`printf '\t'` |
15283 | 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 |
15284 | POMAKEFILEDEPS="POTFILES.in" |
15285 | # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend | |
a04eba3f TT |
15286 | # on $ac_dir but don't depend on user-specified configuration |
15287 | # parameters. | |
15288 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then | |
15289 | # The LINGUAS file contains the set of available languages. | |
b0cacab0 | 15290 | if test -n "$OBSOLETE_ALL_LINGUAS"; then |
a04eba3f TT |
15291 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" |
15292 | fi | |
93613951 TT |
15293 | ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` |
15294 | # Hide the ALL_LINGUAS assignment from automake < 1.5. | |
a04eba3f | 15295 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' |
b0cacab0 TT |
15296 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" |
15297 | else | |
15298 | # The set of available languages was given in configure.in. | |
93613951 | 15299 | # Hide the ALL_LINGUAS assignment from automake < 1.5. |
b0cacab0 | 15300 | eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' |
a04eba3f | 15301 | fi |
b0cacab0 TT |
15302 | # Compute POFILES |
15303 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) | |
15304 | # Compute UPDATEPOFILES | |
15305 | # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) | |
15306 | # Compute DUMMYPOFILES | |
15307 | # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) | |
15308 | # Compute GMOFILES | |
15309 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) | |
a04eba3f TT |
15310 | case "$ac_given_srcdir" in |
15311 | .) srcdirpre= ;; | |
15312 | *) srcdirpre='$(srcdir)/' ;; | |
15313 | esac | |
15314 | POFILES= | |
a04eba3f TT |
15315 | UPDATEPOFILES= |
15316 | DUMMYPOFILES= | |
b0cacab0 | 15317 | GMOFILES= |
a04eba3f TT |
15318 | for lang in $ALL_LINGUAS; do |
15319 | POFILES="$POFILES $srcdirpre$lang.po" | |
a04eba3f TT |
15320 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" |
15321 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" | |
b0cacab0 | 15322 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" |
a04eba3f TT |
15323 | done |
15324 | # CATALOGS depends on both $ac_dir and the user's LINGUAS | |
15325 | # environment variable. | |
15326 | INST_LINGUAS= | |
15327 | if test -n "$ALL_LINGUAS"; then | |
15328 | for presentlang in $ALL_LINGUAS; do | |
15329 | useit=no | |
15330 | if test "%UNSET%" != "$LINGUAS"; then | |
15331 | desiredlanguages="$LINGUAS" | |
15332 | else | |
15333 | desiredlanguages="$ALL_LINGUAS" | |
15334 | fi | |
15335 | for desiredlang in $desiredlanguages; do | |
15336 | # Use the presentlang catalog if desiredlang is | |
15337 | # a. equal to presentlang, or | |
15338 | # b. a variant of presentlang (because in this case, | |
15339 | # presentlang can be used as a fallback for messages | |
15340 | # which are not translated in the desiredlang catalog). | |
15341 | case "$desiredlang" in | |
15342 | "$presentlang"*) useit=yes;; | |
15343 | esac | |
15344 | done | |
15345 | if test $useit = yes; then | |
15346 | INST_LINGUAS="$INST_LINGUAS $presentlang" | |
15347 | fi | |
15348 | done | |
15349 | fi | |
15350 | CATALOGS= | |
15351 | if test -n "$INST_LINGUAS"; then | |
15352 | for lang in $INST_LINGUAS; do | |
15353 | CATALOGS="$CATALOGS $lang.gmo" | |
15354 | done | |
15355 | fi | |
15356 | test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" | |
b0cacab0 | 15357 | 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 |
15358 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do |
15359 | if test -f "$f"; then | |
15360 | case "$f" in | |
15361 | *.orig | *.bak | *~) ;; | |
15362 | *) cat "$f" >> "$ac_dir/Makefile" ;; | |
15363 | esac | |
15364 | fi | |
15365 | done | |
15366 | fi | |
15367 | ;; | |
a64c9c13 | 15368 | esac |
b0cacab0 | 15369 | done ;; |
e1052144 | 15370 | |
b0cacab0 | 15371 | esac |
e1052144 | 15372 | done # for ac_tag |
07a0db15 | 15373 | |
b0cacab0 | 15374 | |
57aa50d4 | 15375 | as_fn_exit 0 |
b0cacab0 | 15376 | _ACEOF |
b0cacab0 TT |
15377 | ac_clean_files=$ac_clean_files_save |
15378 | ||
39fd3d4f | 15379 | test $ac_write_fail = 0 || |
d6a4bcb5 | 15380 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
39fd3d4f | 15381 | |
b0cacab0 TT |
15382 | |
15383 | # configure is writing to config.log, and then calls config.status. | |
15384 | # config.status does its own redirection, appending to config.log. | |
15385 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
15386 | # by configure, so config.status won't be able to write to it; its | |
15387 | # output is simply discarded. So we exec the FD to /dev/null, | |
15388 | # effectively closing config.log, so it can be properly (re)opened and | |
15389 | # appended to by config.status. When coming back to configure, we | |
15390 | # need to make the FD available again. | |
15391 | if test "$no_create" != yes; then | |
15392 | ac_cs_success=: | |
15393 | ac_config_status_args= | |
15394 | test "$silent" = yes && | |
15395 | ac_config_status_args="$ac_config_status_args --quiet" | |
15396 | exec 5>/dev/null | |
15397 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
15398 | exec 5>>config.log | |
15399 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
15400 | # would make configure fail if this is the last instruction. | |
d6a4bcb5 | 15401 | $ac_cs_success || as_fn_exit 1 |
b0cacab0 | 15402 | fi |
39fd3d4f | 15403 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
57aa50d4 | 15404 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
39fd3d4f SJR |
15405 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
15406 | fi | |
50e1e10f | 15407 | |
ee683a13 | 15408 | if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi |