]>
Commit | Line | Data |
---|---|---|
50e1e10f | 1 | #! /bin/sh |
50e1e10f | 2 | # Guess values for system-dependent variables and create Makefiles. |
54445dc2 | 3 | # Generated by GNU Autoconf 2.71. |
61ef2474 | 4 | # |
50e1e10f | 5 | # |
54445dc2 TT |
6 | # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, |
7 | # Inc. | |
61ef2474 | 8 | # |
57aa50d4 | 9 | # |
50e1e10f TT |
10 | # This configure script is free software; the Free Software Foundation |
11 | # gives unlimited permission to copy, distribute and modify it. | |
57aa50d4 TT |
12 | ## -------------------- ## |
13 | ## M4sh Initialization. ## | |
14 | ## -------------------- ## | |
b0cacab0 | 15 | |
29a5deed TT |
16 | # Be more Bourne compatible |
17 | DUALCASE=1; export DUALCASE # for MKS sh | |
54445dc2 TT |
18 | as_nop=: |
19 | if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 | |
20 | then : | |
b0cacab0 TT |
21 | emulate sh |
22 | NULLCMD=: | |
39fd3d4f | 23 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
b0cacab0 TT |
24 | # is contrary to our usage. Disable this feature. |
25 | alias -g '${1+"$@"}'='"$@"' | |
e1052144 | 26 | setopt NO_GLOB_SUBST |
54445dc2 | 27 | else $as_nop |
57aa50d4 TT |
28 | case `(set -o) 2>/dev/null` in #( |
29 | *posix*) : | |
30 | set -o posix ;; #( | |
31 | *) : | |
32 | ;; | |
29a5deed | 33 | esac |
b0cacab0 | 34 | fi |
29a5deed TT |
35 | |
36 | ||
54445dc2 TT |
37 | |
38 | # Reset variables that may have inherited troublesome values from | |
39 | # the environment. | |
40 | ||
41 | # IFS needs to be set, to space, tab, and newline, in precisely that order. | |
42 | # (If _AS_PATH_WALK were called with IFS unset, it would have the | |
43 | # side effect of setting IFS to empty, thus disabling word splitting.) | |
44 | # Quoting is to prevent editors from complaining about space-tab. | |
39fd3d4f SJR |
45 | as_nl=' |
46 | ' | |
47 | export as_nl | |
54445dc2 TT |
48 | IFS=" "" $as_nl" |
49 | ||
50 | PS1='$ ' | |
51 | PS2='> ' | |
52 | PS4='+ ' | |
53 | ||
54 | # Ensure predictable behavior from utilities with locale-dependent output. | |
55 | LC_ALL=C | |
56 | export LC_ALL | |
57 | LANGUAGE=C | |
58 | export LANGUAGE | |
59 | ||
60 | # We cannot yet rely on "unset" to work, but we need these variables | |
61 | # to be unset--not just set to an empty or harmless value--now, to | |
62 | # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct | |
63 | # also avoids known problems related to "unset" and subshell syntax | |
64 | # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). | |
65 | for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH | |
66 | do eval test \${$as_var+y} \ | |
67 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
68 | done | |
69 | ||
70 | # Ensure that fds 0, 1, and 2 are open. | |
71 | if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi | |
72 | if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi | |
73 | if (exec 3>&2) ; then :; else exec 2>/dev/null; fi | |
39fd3d4f SJR |
74 | |
75 | # The user is always right. | |
54445dc2 | 76 | if ${PATH_SEPARATOR+false} :; then |
39fd3d4f SJR |
77 | PATH_SEPARATOR=: |
78 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
79 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
80 | PATH_SEPARATOR=';' | |
81 | } | |
e1052144 TT |
82 | fi |
83 | ||
b0cacab0 | 84 | |
e1052144 | 85 | # Find who we are. Look in the path if we contain no directory separator. |
d6a4bcb5 | 86 | as_myself= |
57aa50d4 | 87 | case $0 in #(( |
e1052144 TT |
88 | *[\\/]* ) as_myself=$0 ;; |
89 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
90 | for as_dir in $PATH | |
91 | do | |
92 | IFS=$as_save_IFS | |
54445dc2 TT |
93 | case $as_dir in #((( |
94 | '') as_dir=./ ;; | |
95 | */) ;; | |
96 | *) as_dir=$as_dir/ ;; | |
97 | esac | |
98 | test -r "$as_dir$0" && as_myself=$as_dir$0 && break | |
57aa50d4 | 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 | |
54445dc2 | 110 | printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
57aa50d4 | 111 | exit 1 |
e1052144 TT |
112 | fi |
113 | ||
57aa50d4 | 114 | |
d6a4bcb5 TB |
115 | # Use a proper internal environment variable to ensure we don't fall |
116 | # into an infinite loop, continuously re-executing ourselves. | |
117 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then | |
118 | _as_can_reexec=no; export _as_can_reexec; | |
119 | # We cannot yet assume a decent shell, so we have to provide a | |
120 | # neutralization value for shells without unset; and this also | |
121 | # works around shells that cannot unset nonexistent variables. | |
122 | # Preserve -v and -x to the replacement shell. | |
123 | BASH_ENV=/dev/null | |
124 | ENV=/dev/null | |
125 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
126 | case $- in # (((( | |
127 | *v*x* | *x*v* ) as_opts=-vx ;; | |
128 | *v* ) as_opts=-v ;; | |
129 | *x* ) as_opts=-x ;; | |
130 | * ) as_opts= ;; | |
131 | esac | |
132 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
133 | # Admittedly, this is quite paranoid, since all the known shells bail | |
134 | # out after a failed `exec'. | |
54445dc2 TT |
135 | printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 |
136 | exit 255 | |
d6a4bcb5 TB |
137 | fi |
138 | # We don't want this to propagate to other subprocesses. | |
139 | { _as_can_reexec=; unset _as_can_reexec;} | |
57aa50d4 | 140 | if test "x$CONFIG_SHELL" = x; then |
54445dc2 TT |
141 | as_bourne_compatible="as_nop=: |
142 | if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 | |
143 | then : | |
57aa50d4 TT |
144 | emulate sh |
145 | NULLCMD=: | |
146 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
147 | # is contrary to our usage. Disable this feature. | |
148 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
149 | setopt NO_GLOB_SUBST | |
54445dc2 | 150 | else \$as_nop |
57aa50d4 TT |
151 | case \`(set -o) 2>/dev/null\` in #( |
152 | *posix*) : | |
153 | set -o posix ;; #( | |
154 | *) : | |
155 | ;; | |
156 | esac | |
157 | fi | |
158 | " | |
159 | as_required="as_fn_return () { (exit \$1); } | |
160 | as_fn_success () { as_fn_return 0; } | |
161 | as_fn_failure () { as_fn_return 1; } | |
162 | as_fn_ret_success () { return 0; } | |
163 | as_fn_ret_failure () { return 1; } | |
164 | ||
165 | exitcode=0 | |
166 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
167 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
168 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
169 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
54445dc2 TT |
170 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ) |
171 | then : | |
57aa50d4 | 172 | |
54445dc2 | 173 | else \$as_nop |
57aa50d4 TT |
174 | exitcode=1; echo positional parameters were not saved. |
175 | fi | |
d6a4bcb5 | 176 | test x\$exitcode = x0 || exit 1 |
54445dc2 TT |
177 | blah=\$(echo \$(echo blah)) |
178 | test x\"\$blah\" = xblah || exit 1 | |
d6a4bcb5 | 179 | test -x / || exit 1" |
57aa50d4 TT |
180 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
181 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
182 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
183 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
184 | test \$(( 1 + 1 )) = 2 || exit 1" | |
54445dc2 TT |
185 | if (eval "$as_required") 2>/dev/null |
186 | then : | |
57aa50d4 | 187 | as_have_required=yes |
54445dc2 | 188 | else $as_nop |
57aa50d4 TT |
189 | as_have_required=no |
190 | fi | |
54445dc2 TT |
191 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null |
192 | then : | |
57aa50d4 | 193 | |
54445dc2 | 194 | else $as_nop |
57aa50d4 TT |
195 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
196 | as_found=false | |
197 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
198 | do | |
199 | IFS=$as_save_IFS | |
54445dc2 TT |
200 | case $as_dir in #((( |
201 | '') as_dir=./ ;; | |
202 | */) ;; | |
203 | *) as_dir=$as_dir/ ;; | |
204 | esac | |
57aa50d4 TT |
205 | as_found=: |
206 | case $as_dir in #( | |
207 | /*) | |
208 | for as_base in sh bash ksh sh5; do | |
209 | # Try only shells that exist, to save several forks. | |
54445dc2 | 210 | as_shell=$as_dir$as_base |
57aa50d4 | 211 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
54445dc2 TT |
212 | as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null |
213 | then : | |
57aa50d4 | 214 | CONFIG_SHELL=$as_shell as_have_required=yes |
54445dc2 TT |
215 | if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null |
216 | then : | |
57aa50d4 TT |
217 | break 2 |
218 | fi | |
219 | fi | |
220 | done;; | |
221 | esac | |
222 | as_found=false | |
223 | done | |
57aa50d4 | 224 | IFS=$as_save_IFS |
54445dc2 TT |
225 | if $as_found |
226 | then : | |
227 | ||
228 | else $as_nop | |
229 | if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
230 | as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null | |
231 | then : | |
232 | CONFIG_SHELL=$SHELL as_have_required=yes | |
233 | fi | |
234 | fi | |
57aa50d4 TT |
235 | |
236 | ||
54445dc2 TT |
237 | if test "x$CONFIG_SHELL" != x |
238 | 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'. | |
54445dc2 | 256 | printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 |
d6a4bcb5 | 257 | exit 255 |
57aa50d4 TT |
258 | fi |
259 | ||
54445dc2 TT |
260 | if test x$as_have_required = xno |
261 | then : | |
262 | printf "%s\n" "$0: This script requires a shell more modern than all" | |
263 | printf "%s\n" "$0: the shells that I found on your system." | |
264 | if test ${ZSH_VERSION+y} ; then | |
265 | printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
266 | printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." | |
57aa50d4 | 267 | else |
54445dc2 | 268 | printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system, |
57aa50d4 TT |
269 | $0: including any error possibly output before this |
270 | $0: message. Then install a modern shell, or manually run | |
271 | $0: the script under such a shell if you do have one." | |
272 | fi | |
273 | exit 1 | |
274 | fi | |
275 | fi | |
276 | fi | |
277 | SHELL=${CONFIG_SHELL-/bin/sh} | |
278 | export SHELL | |
279 | # Unset more variables known to interfere with behavior of common tools. | |
280 | CLICOLOR_FORCE= GREP_OPTIONS= | |
281 | unset CLICOLOR_FORCE GREP_OPTIONS | |
282 | ||
283 | ## --------------------- ## | |
284 | ## M4sh Shell Functions. ## | |
285 | ## --------------------- ## | |
286 | # as_fn_unset VAR | |
287 | # --------------- | |
288 | # Portably unset VAR. | |
289 | as_fn_unset () | |
290 | { | |
291 | { eval $1=; unset $1;} | |
292 | } | |
293 | as_unset=as_fn_unset | |
294 | ||
54445dc2 | 295 | |
57aa50d4 TT |
296 | # as_fn_set_status STATUS |
297 | # ----------------------- | |
298 | # Set $? to STATUS, without forking. | |
299 | as_fn_set_status () | |
300 | { | |
301 | return $1 | |
302 | } # as_fn_set_status | |
303 | ||
304 | # as_fn_exit STATUS | |
305 | # ----------------- | |
306 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
307 | as_fn_exit () | |
308 | { | |
309 | set +e | |
310 | as_fn_set_status $1 | |
311 | exit $1 | |
312 | } # as_fn_exit | |
54445dc2 TT |
313 | # as_fn_nop |
314 | # --------- | |
315 | # Do nothing but, unlike ":", preserve the value of $?. | |
316 | as_fn_nop () | |
317 | { | |
318 | return $? | |
319 | } | |
320 | as_nop=as_fn_nop | |
57aa50d4 TT |
321 | |
322 | # as_fn_mkdir_p | |
323 | # ------------- | |
324 | # Create "$as_dir" as a directory, including parents if necessary. | |
325 | as_fn_mkdir_p () | |
326 | { | |
327 | ||
328 | case $as_dir in #( | |
329 | -*) as_dir=./$as_dir;; | |
330 | esac | |
331 | test -d "$as_dir" || eval $as_mkdir_p || { | |
332 | as_dirs= | |
333 | while :; do | |
334 | case $as_dir in #( | |
54445dc2 | 335 | *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
57aa50d4 TT |
336 | *) as_qdir=$as_dir;; |
337 | esac | |
338 | as_dirs="'$as_qdir' $as_dirs" | |
339 | as_dir=`$as_dirname -- "$as_dir" || | |
340 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
341 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
342 | X"$as_dir" : 'X\(//\)$' \| \ | |
343 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
54445dc2 | 344 | printf "%s\n" X"$as_dir" | |
57aa50d4 TT |
345 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
346 | s//\1/ | |
347 | q | |
348 | } | |
349 | /^X\(\/\/\)[^/].*/{ | |
350 | s//\1/ | |
351 | q | |
352 | } | |
353 | /^X\(\/\/\)$/{ | |
354 | s//\1/ | |
355 | q | |
356 | } | |
357 | /^X\(\/\).*/{ | |
358 | s//\1/ | |
359 | q | |
360 | } | |
361 | s/.*/./; q'` | |
362 | test -d "$as_dir" && break | |
363 | done | |
364 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
d6a4bcb5 | 365 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
57aa50d4 TT |
366 | |
367 | ||
368 | } # as_fn_mkdir_p | |
d6a4bcb5 TB |
369 | |
370 | # as_fn_executable_p FILE | |
371 | # ----------------------- | |
372 | # Test if FILE is an executable regular file. | |
373 | as_fn_executable_p () | |
374 | { | |
375 | test -f "$1" && test -x "$1" | |
376 | } # as_fn_executable_p | |
57aa50d4 TT |
377 | # as_fn_append VAR VALUE |
378 | # ---------------------- | |
379 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
380 | # advantage of any shell optimizations that allow amortized linear growth over | |
381 | # repeated appends, instead of the typical quadratic growth present in naive | |
382 | # implementations. | |
54445dc2 TT |
383 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null |
384 | then : | |
57aa50d4 TT |
385 | eval 'as_fn_append () |
386 | { | |
387 | eval $1+=\$2 | |
388 | }' | |
54445dc2 | 389 | else $as_nop |
57aa50d4 TT |
390 | as_fn_append () |
391 | { | |
392 | eval $1=\$$1\$2 | |
393 | } | |
394 | fi # as_fn_append | |
395 | ||
396 | # as_fn_arith ARG... | |
397 | # ------------------ | |
398 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
399 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
400 | # must be portable across $(()) and expr. | |
54445dc2 TT |
401 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null |
402 | then : | |
57aa50d4 TT |
403 | eval 'as_fn_arith () |
404 | { | |
405 | as_val=$(( $* )) | |
406 | }' | |
54445dc2 | 407 | else $as_nop |
57aa50d4 TT |
408 | as_fn_arith () |
409 | { | |
410 | as_val=`expr "$@" || test $? -eq 1` | |
411 | } | |
412 | fi # as_fn_arith | |
413 | ||
54445dc2 TT |
414 | # as_fn_nop |
415 | # --------- | |
416 | # Do nothing but, unlike ":", preserve the value of $?. | |
417 | as_fn_nop () | |
418 | { | |
419 | return $? | |
420 | } | |
421 | as_nop=as_fn_nop | |
57aa50d4 | 422 | |
d6a4bcb5 TB |
423 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
424 | # ---------------------------------------- | |
57aa50d4 TT |
425 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
426 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
d6a4bcb5 | 427 | # script with STATUS, using 1 if that was 0. |
57aa50d4 TT |
428 | as_fn_error () |
429 | { | |
d6a4bcb5 TB |
430 | as_status=$1; test $as_status -eq 0 && as_status=1 |
431 | if test "$4"; then | |
432 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
54445dc2 | 433 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
57aa50d4 | 434 | fi |
54445dc2 | 435 | printf "%s\n" "$as_me: error: $2" >&2 |
57aa50d4 TT |
436 | as_fn_exit $as_status |
437 | } # as_fn_error | |
438 | ||
e1052144 TT |
439 | if expr a : '\(a\)' >/dev/null 2>&1 && |
440 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
b0cacab0 TT |
441 | as_expr=expr |
442 | else | |
443 | as_expr=false | |
444 | fi | |
445 | ||
e1052144 | 446 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
b0cacab0 TT |
447 | as_basename=basename |
448 | else | |
449 | as_basename=false | |
450 | fi | |
451 | ||
57aa50d4 TT |
452 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
453 | as_dirname=dirname | |
454 | else | |
455 | as_dirname=false | |
456 | fi | |
b0cacab0 | 457 | |
e1052144 | 458 | as_me=`$as_basename -- "$0" || |
b0cacab0 TT |
459 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
460 | X"$0" : 'X\(//\)$' \| \ | |
e1052144 | 461 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
54445dc2 | 462 | printf "%s\n" X/"$0" | |
e1052144 TT |
463 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
464 | s//\1/ | |
465 | q | |
466 | } | |
467 | /^X\/\(\/\/\)$/{ | |
468 | s//\1/ | |
469 | q | |
470 | } | |
471 | /^X\/\(\/\).*/{ | |
472 | s//\1/ | |
473 | q | |
474 | } | |
475 | s/.*/./; q'` | |
b0cacab0 | 476 | |
57aa50d4 TT |
477 | # Avoid depending upon Character Ranges. |
478 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
479 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
480 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
481 | as_cr_digits='0123456789' | |
482 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
b0cacab0 | 483 | |
b0cacab0 | 484 | |
57aa50d4 TT |
485 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
486 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
487 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
488 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
489 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
490 | sed -n ' | |
491 | p | |
492 | /[$]LINENO/= | |
493 | ' <$as_myself | | |
494 | sed ' | |
495 | s/[$]LINENO.*/&-/ | |
496 | t lineno | |
497 | b | |
498 | :lineno | |
499 | N | |
500 | :loop | |
501 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
502 | t loop | |
503 | s/-\n.*// | |
504 | ' >$as_me.lineno && | |
505 | chmod +x "$as_me.lineno" || | |
54445dc2 | 506 | { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
e1052144 | 507 | |
d6a4bcb5 TB |
508 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
509 | # already done that, so ensure we don't try to do so again and fall | |
510 | # in an infinite loop. This has already happened in practice. | |
511 | _as_can_reexec=no; export _as_can_reexec | |
57aa50d4 TT |
512 | # Don't try to exec as it changes $[0], causing all sort of problems |
513 | # (the dirname of $[0] is not the place where we might find the | |
514 | # original and so on. Autoconf is especially sensitive to this). | |
515 | . "./$as_me.lineno" | |
516 | # Exit status is that of the last command. | |
517 | exit | |
e1052144 TT |
518 | } |
519 | ||
54445dc2 TT |
520 | |
521 | # Determine whether it's possible to make 'echo' print without a newline. | |
522 | # These variables are no longer used directly by Autoconf, but are AC_SUBSTed | |
523 | # for compatibility with existing Makefiles. | |
57aa50d4 TT |
524 | ECHO_C= ECHO_N= ECHO_T= |
525 | case `echo -n x` in #((((( | |
526 | -n*) | |
527 | case `echo 'xy\c'` in | |
528 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
529 | xy) ECHO_C='\c';; | |
530 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
531 | ECHO_T=' ';; | |
532 | esac;; | |
533 | *) | |
534 | ECHO_N='-n';; | |
535 | esac | |
b0cacab0 | 536 | |
54445dc2 TT |
537 | # For backward compatibility with old third-party macros, we provide |
538 | # the shell variables $as_echo and $as_echo_n. New code should use | |
539 | # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. | |
540 | as_echo='printf %s\n' | |
541 | as_echo_n='printf %s' | |
542 | ||
543 | ||
57aa50d4 TT |
544 | rm -f conf$$ conf$$.exe conf$$.file |
545 | if test -d conf$$.dir; then | |
546 | rm -f conf$$.dir/conf$$.file | |
547 | else | |
548 | rm -f conf$$.dir | |
549 | mkdir conf$$.dir 2>/dev/null | |
e1052144 | 550 | fi |
57aa50d4 TT |
551 | if (echo >conf$$.file) 2>/dev/null; then |
552 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
553 | as_ln_s='ln -s' | |
554 | # ... but there are two gotchas: | |
555 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
556 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
d6a4bcb5 | 557 | # In both cases, we have to default to `cp -pR'. |
57aa50d4 | 558 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
d6a4bcb5 | 559 | as_ln_s='cp -pR' |
57aa50d4 TT |
560 | elif ln conf$$.file conf$$ 2>/dev/null; then |
561 | as_ln_s=ln | |
562 | else | |
d6a4bcb5 | 563 | as_ln_s='cp -pR' |
57aa50d4 | 564 | fi |
e1052144 | 565 | else |
d6a4bcb5 | 566 | as_ln_s='cp -pR' |
e1052144 | 567 | fi |
57aa50d4 TT |
568 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
569 | rmdir conf$$.dir 2>/dev/null | |
b0cacab0 | 570 | |
57aa50d4 TT |
571 | if mkdir -p . 2>/dev/null; then |
572 | as_mkdir_p='mkdir -p "$as_dir"' | |
573 | else | |
574 | test -d ./-p && rmdir ./-p | |
575 | as_mkdir_p=false | |
e1052144 TT |
576 | fi |
577 | ||
d6a4bcb5 TB |
578 | as_test_x='test -x' |
579 | as_executable_p=as_fn_executable_p | |
e1052144 | 580 | |
57aa50d4 TT |
581 | # Sed expression to map a string onto a valid CPP name. |
582 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
e1052144 | 583 | |
57aa50d4 TT |
584 | # Sed expression to map a string onto a valid variable name. |
585 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
e1052144 | 586 | |
29a5deed | 587 | |
61ef2474 TT |
588 | test -n "$DJDIR" || exec 7<&0 </dev/null |
589 | exec 6>&1 | |
b0cacab0 TT |
590 | |
591 | # Name of the host. | |
d6a4bcb5 | 592 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
b0cacab0 TT |
593 | # so uname gets run too. |
594 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
50e1e10f | 595 | |
b0cacab0 TT |
596 | # |
597 | # Initializations. | |
598 | # | |
50e1e10f | 599 | ac_default_prefix=/usr/local |
e1052144 | 600 | ac_clean_files= |
b0cacab0 | 601 | ac_config_libobj_dir=. |
e1052144 | 602 | LIBOBJS= |
b0cacab0 TT |
603 | cross_compiling=no |
604 | subdirs= | |
605 | MFLAGS= | |
606 | MAKEFLAGS= | |
b0cacab0 | 607 | |
b0cacab0 | 608 | # Identity of this package. |
54445dc2 TT |
609 | PACKAGE_NAME='' |
610 | PACKAGE_TARNAME='' | |
611 | PACKAGE_VERSION='' | |
612 | PACKAGE_STRING='' | |
613 | PACKAGE_BUGREPORT='' | |
614 | PACKAGE_URL='' | |
b0cacab0 TT |
615 | |
616 | ac_unique_file="version.h" | |
617 | # Factoring default headers for most tests. | |
618 | ac_includes_default="\ | |
54445dc2 TT |
619 | #include <stddef.h> |
620 | #ifdef HAVE_STDIO_H | |
621 | # include <stdio.h> | |
b0cacab0 | 622 | #endif |
54445dc2 | 623 | #ifdef HAVE_STDLIB_H |
b0cacab0 | 624 | # include <stdlib.h> |
b0cacab0 | 625 | #endif |
29a5deed | 626 | #ifdef HAVE_STRING_H |
b0cacab0 TT |
627 | # include <string.h> |
628 | #endif | |
29a5deed | 629 | #ifdef HAVE_INTTYPES_H |
b0cacab0 | 630 | # include <inttypes.h> |
e1052144 | 631 | #endif |
29a5deed | 632 | #ifdef HAVE_STDINT_H |
e1052144 | 633 | # include <stdint.h> |
b0cacab0 | 634 | #endif |
54445dc2 TT |
635 | #ifdef HAVE_STRINGS_H |
636 | # include <strings.h> | |
637 | #endif | |
638 | #ifdef HAVE_SYS_TYPES_H | |
639 | # include <sys/types.h> | |
640 | #endif | |
641 | #ifdef HAVE_SYS_STAT_H | |
642 | # include <sys/stat.h> | |
643 | #endif | |
29a5deed | 644 | #ifdef HAVE_UNISTD_H |
b0cacab0 TT |
645 | # include <unistd.h> |
646 | #endif" | |
647 | ||
54445dc2 | 648 | ac_header_c_list= |
93613951 | 649 | gt_needs= |
54445dc2 | 650 | ac_func_c_list= |
39fd3d4f | 651 | ac_subst_vars='LTLIBOBJS |
e1052144 | 652 | LIBOBJS |
d1d44c14 | 653 | OS_IO_FILE |
a2df5894 DW |
654 | systemd_system_unit_dir |
655 | have_systemd | |
656 | systemd_LIBS | |
657 | systemd_CFLAGS | |
658 | crond_dir | |
659 | have_crond | |
5ce368f0 DW |
660 | pkg_udev_rules_dir |
661 | have_udev | |
662 | udev_LIBS | |
663 | udev_CFLAGS | |
fd1677e8 TT |
664 | LDFLAGS_SHLIB |
665 | CFLAGS_STLIB | |
666 | CFLAGS_SHLIB | |
39fd3d4f SJR |
667 | BUILD_LDFLAGS |
668 | BUILD_CFLAGS | |
d1154eb4 | 669 | INCLUDES |
39fd3d4f | 670 | DO_TEST_SUITE |
fd1677e8 | 671 | LDFLAGS_STATIC |
39fd3d4f SJR |
672 | root_sysconfdir |
673 | root_libdir | |
674 | root_sbindir | |
675 | root_bindir | |
676 | root_prefix | |
5ce368f0 | 677 | E2SCRUB_CMT |
39fd3d4f SJR |
678 | UNIX_CMT |
679 | CYGWIN_CMT | |
680 | LINUX_CMT | |
2869485b TT |
681 | FUZZING_CMT |
682 | fuzzer_ldflags | |
683 | fuzzer_cflags | |
684 | have_fuzzer | |
685 | ac_ct_CXX | |
686 | CXXFLAGS | |
687 | CXX | |
bcca786b DW |
688 | threadsan_ldflags |
689 | threadsan_cflags | |
690 | have_threadsan | |
5e666e3d DW |
691 | addrsan_ldflags |
692 | addrsan_cflags | |
693 | have_addrsan | |
1c2a76ae DW |
694 | ubsan_ldflags |
695 | ubsan_cflags | |
696 | have_ubsan | |
4aece328 DW |
697 | lto_ldflags |
698 | lto_cflags | |
699 | have_lto | |
700 | gcc_ranlib | |
701 | gcc_ar | |
39fd3d4f SJR |
702 | UNI_DIFF_OPTS |
703 | SEM_INIT_LIB | |
81cbf1ef DW |
704 | FUSE_CMT |
705 | FUSE_LIB | |
448a3f8b DD |
706 | fuse3_LIBS |
707 | fuse3_CFLAGS | |
c94da047 | 708 | CLOCK_GETTIME_LIB |
7e3a4f0a | 709 | ARCHIVE_LIB |
b291c11f | 710 | MAGIC_LIB |
39fd3d4f | 711 | SOCKET_LIB |
2dd680f3 | 712 | SIZEOF_TIME_T |
cc68e8a6 | 713 | SIZEOF_OFF_T |
39fd3d4f SJR |
714 | SIZEOF_LONG_LONG |
715 | SIZEOF_LONG | |
716 | SIZEOF_INT | |
717 | SIZEOF_SHORT | |
ec3a69bb | 718 | DD |
39fd3d4f SJR |
719 | BUILD_CC |
720 | MAKEINFO | |
721 | STRIP | |
e598c29b | 722 | RANLIB |
39fd3d4f SJR |
723 | AR |
724 | LDCONFIG | |
725 | PERL | |
39fd3d4f SJR |
726 | AWK |
727 | CHMOD | |
728 | RM | |
729 | CP | |
730 | MV | |
731 | LN_S | |
3fb16e74 | 732 | mkdir_p |
39fd3d4f | 733 | LN |
bcb915b0 TT |
734 | ifNotGNUmake |
735 | ifGNUmake | |
39fd3d4f SJR |
736 | BINARY_TYPE |
737 | POSUB | |
738 | LTLIBINTL | |
739 | LIBINTL | |
740 | INTLLIBS | |
93613951 TT |
741 | LTLIBICONV |
742 | LIBICONV | |
e598c29b | 743 | INTL_MACOSX_LIBS |
93613951 | 744 | XGETTEXT_EXTRA_OPTIONS |
bdcd5f22 | 745 | MSGMERGE_FOR_MSGFMT_OPTION |
39fd3d4f | 746 | MSGMERGE |
93613951 | 747 | XGETTEXT_015 |
39fd3d4f | 748 | XGETTEXT |
93613951 | 749 | GMSGFMT_015 |
39fd3d4f SJR |
750 | GMSGFMT |
751 | MSGFMT | |
93613951 | 752 | GETTEXT_MACRO_VERSION |
39fd3d4f | 753 | USE_NLS |
93613951 | 754 | MKDIR_P |
39fd3d4f SJR |
755 | INSTALL_DATA |
756 | INSTALL_SCRIPT | |
757 | INSTALL_PROGRAM | |
758 | SET_MAKE | |
759 | VERSION | |
760 | PACKAGE | |
761 | GETTEXT_PACKAGE | |
749f0712 TT |
762 | TDB_MAN_COMMENT |
763 | TDB_CMT | |
39fd3d4f | 764 | UUIDD_CMT |
bdcd5f22 TT |
765 | PTHREAD_CFLAGS |
766 | PTHREAD_LIBS | |
54445dc2 | 767 | PTHREAD_CXX |
bdcd5f22 TT |
768 | PTHREAD_CC |
769 | ax_pthread_config | |
54445dc2 TT |
770 | EGREP |
771 | GREP | |
bdcd5f22 | 772 | SED |
39fd3d4f SJR |
773 | E2INITRD_MAN |
774 | E2INITRD_PROG | |
775 | FSCK_MAN | |
776 | FSCK_PROG | |
8d9c50c5 | 777 | DEFRAG_CMT |
39fd3d4f SJR |
778 | RESIZER_CMT |
779 | IMAGER_CMT | |
780 | DEBUGFS_CMT | |
feb235e0 | 781 | SUBSET_CMT |
0afb9be6 | 782 | ALL_CMT |
39fd3d4f SJR |
783 | BLKID_CMT |
784 | DEPPROFILED_LIBBLKID | |
785 | PROFILED_LIBBLKID | |
786 | DEPSTATIC_LIBBLKID | |
787 | STATIC_LIBBLKID | |
788 | DEPLIBBLKID | |
789 | LIBBLKID | |
790 | UUID_CMT | |
791 | DEPPROFILED_LIBUUID | |
792 | PROFILED_LIBUUID | |
793 | DEPSTATIC_LIBUUID | |
794 | STATIC_LIBUUID | |
795 | DEPLIBUUID | |
796 | LIBUUID | |
93613951 TT |
797 | PKG_CONFIG_LIBDIR |
798 | PKG_CONFIG_PATH | |
39fd3d4f | 799 | PKG_CONFIG |
b9e66a18 | 800 | DEV_FEATURES_CMT |
39fd3d4f SJR |
801 | TEST_IO_CMT |
802 | PRIVATE_LIBS_CMT | |
803 | LDFLAG_DYNAMIC | |
804 | PROFILED_LIB_EXT | |
805 | STATIC_LIB_EXT | |
806 | LIB_EXT | |
39fd3d4f SJR |
807 | PROFILE_CMT |
808 | BSDLIB_CMT | |
809 | ELF_CMT | |
c13351f6 | 810 | Q |
c1986ecb | 811 | ES |
c13351f6 | 812 | E |
5aa6c3f6 | 813 | LINK_BUILD_FLAGS |
183c73b0 | 814 | SYMLINK_RELATIVE |
5aa6c3f6 | 815 | LINK_INSTALL_FLAGS |
39fd3d4f | 816 | MAINTAINER_CMT |
39fd3d4f | 817 | CPP |
9b3018a8 | 818 | RDYNAMIC |
57aa50d4 | 819 | DLOPEN_LIB |
39fd3d4f SJR |
820 | host_os |
821 | host_vendor | |
822 | host_cpu | |
823 | host | |
824 | build_os | |
825 | build_vendor | |
826 | build_cpu | |
827 | build | |
5ce368f0 | 828 | E2FSPROGS_DATE |
39fd3d4f | 829 | E2FSPROGS_PKGVER |
1ac00616 | 830 | E2FSPROGS_PKGREL |
39fd3d4f SJR |
831 | E2FSPROGS_VERSION |
832 | E2FSPROGS_DAY | |
833 | E2FSPROGS_MONTH | |
834 | E2FSPROGS_YEAR | |
54445dc2 TT |
835 | OBJEXT |
836 | EXEEXT | |
837 | ac_ct_CC | |
838 | CPPFLAGS | |
839 | LDFLAGS | |
840 | CFLAGS | |
841 | CC | |
39fd3d4f SJR |
842 | target_alias |
843 | host_alias | |
844 | build_alias | |
845 | LIBS | |
846 | ECHO_T | |
847 | ECHO_N | |
848 | ECHO_C | |
849 | DEFS | |
850 | mandir | |
851 | localedir | |
852 | libdir | |
853 | psdir | |
854 | pdfdir | |
855 | dvidir | |
856 | htmldir | |
857 | infodir | |
858 | docdir | |
859 | oldincludedir | |
860 | includedir | |
2ab53829 | 861 | runstatedir |
39fd3d4f SJR |
862 | localstatedir |
863 | sharedstatedir | |
864 | sysconfdir | |
865 | datadir | |
866 | datarootdir | |
867 | libexecdir | |
868 | sbindir | |
869 | bindir | |
870 | program_transform_name | |
871 | prefix | |
872 | exec_prefix | |
57aa50d4 | 873 | PACKAGE_URL |
39fd3d4f SJR |
874 | PACKAGE_BUGREPORT |
875 | PACKAGE_STRING | |
876 | PACKAGE_VERSION | |
877 | PACKAGE_TARNAME | |
878 | PACKAGE_NAME | |
879 | PATH_SEPARATOR | |
880 | SHELL' | |
e1052144 TT |
881 | ac_subst_files='MCONFIG |
882 | MAKEFILE_ELF | |
883 | MAKEFILE_BSDLIB | |
884 | MAKEFILE_PROFILE | |
e1052144 | 885 | MAKEFILE_LIBRARY |
488c75a6 TT |
886 | ASM_TYPES_HEADER |
887 | PUBLIC_CONFIG_HEADER' | |
39fd3d4f SJR |
888 | ac_user_opts=' |
889 | enable_option_checking | |
890 | with_diet_libc | |
891 | with_cc | |
39fd3d4f SJR |
892 | with_ccopts |
893 | with_ldopts | |
894 | with_root_prefix | |
895 | enable_maintainer_mode | |
5aa6c3f6 | 896 | enable_symlink_install |
91d11da1 | 897 | enable_relative_symlinks |
183c73b0 | 898 | enable_symlink_relative_symlinks |
5aa6c3f6 | 899 | enable_symlink_build |
c13351f6 | 900 | enable_verbose_makecmds |
39fd3d4f SJR |
901 | enable_elf_shlibs |
902 | enable_bsd_shlibs | |
903 | enable_profile | |
fedfb27f | 904 | enable_gcov |
fd1677e8 | 905 | enable_hardening |
39fd3d4f SJR |
906 | enable_jbd_debug |
907 | enable_blkid_debug | |
908 | enable_testio_debug | |
b9e66a18 | 909 | enable_developer_features |
39fd3d4f SJR |
910 | enable_libuuid |
911 | enable_libblkid | |
0afb9be6 | 912 | enable_subset |
3df6014a | 913 | enable_backtrace |
39fd3d4f SJR |
914 | enable_debugfs |
915 | enable_imager | |
916 | enable_resizer | |
8d9c50c5 | 917 | enable_defrag |
39fd3d4f SJR |
918 | enable_fsck |
919 | enable_e2initrd_helper | |
920 | enable_tls | |
bdcd5f22 | 921 | with_pthread |
39fd3d4f | 922 | enable_uuidd |
d6a4bcb5 | 923 | enable_mmp |
749f0712 | 924 | enable_tdb |
1625bf42 TB |
925 | enable_bmap_stats |
926 | enable_bmap_stats_ops | |
39fd3d4f SJR |
927 | enable_nls |
928 | with_gnu_ld | |
929 | enable_rpath | |
930 | with_libiconv_prefix | |
39fd3d4f | 931 | with_libintl_prefix |
fed000ae | 932 | enable_largefile |
81cbf1ef | 933 | enable_fuse2fs |
4aece328 | 934 | enable_lto |
1c2a76ae | 935 | enable_ubsan |
5e666e3d | 936 | enable_addrsan |
bcca786b | 937 | enable_threadsan |
2869485b | 938 | enable_fuzzing |
55e00a25 | 939 | with_multiarch |
5ce368f0 | 940 | with_udev_rules_dir |
a2df5894 DW |
941 | with_crond_dir |
942 | with_systemd_unit_dir | |
39fd3d4f | 943 | ' |
e1052144 TT |
944 | ac_precious_vars='build_alias |
945 | host_alias | |
946 | target_alias | |
947 | CC | |
948 | CFLAGS | |
949 | LDFLAGS | |
29a5deed | 950 | LIBS |
e1052144 | 951 | CPPFLAGS |
14b596d4 | 952 | CPP |
93613951 TT |
953 | PKG_CONFIG |
954 | PKG_CONFIG_PATH | |
5ce368f0 | 955 | PKG_CONFIG_LIBDIR |
448a3f8b DD |
956 | fuse3_CFLAGS |
957 | fuse3_LIBS | |
2869485b TT |
958 | CXX |
959 | CXXFLAGS | |
960 | CCC | |
5ce368f0 | 961 | udev_CFLAGS |
a2df5894 DW |
962 | udev_LIBS |
963 | systemd_CFLAGS | |
964 | systemd_LIBS' | |
e1052144 | 965 | |
50e1e10f TT |
966 | |
967 | # Initialize some variables set by options. | |
b0cacab0 TT |
968 | ac_init_help= |
969 | ac_init_version=false | |
39fd3d4f SJR |
970 | ac_unrecognized_opts= |
971 | ac_unrecognized_sep= | |
50e1e10f TT |
972 | # The variables have the same names as the options, with |
973 | # dashes changed to underlines. | |
b0cacab0 | 974 | cache_file=/dev/null |
50e1e10f | 975 | exec_prefix=NONE |
50e1e10f | 976 | no_create= |
50e1e10f TT |
977 | no_recursion= |
978 | prefix=NONE | |
979 | program_prefix=NONE | |
980 | program_suffix=NONE | |
981 | program_transform_name=s,x,x, | |
982 | silent= | |
983 | site= | |
984 | srcdir= | |
50e1e10f TT |
985 | verbose= |
986 | x_includes=NONE | |
987 | x_libraries=NONE | |
b0cacab0 TT |
988 | |
989 | # Installation directory options. | |
990 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
991 | # and all the variables that are supposed to be based on exec_prefix | |
992 | # by default will actually change. | |
993 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
e1052144 | 994 | # (The list follows the same order as the GNU Coding Standards.) |
21c84b71 TT |
995 | bindir='${exec_prefix}/bin' |
996 | sbindir='${exec_prefix}/sbin' | |
997 | libexecdir='${exec_prefix}/libexec' | |
e1052144 TT |
998 | datarootdir='${prefix}/share' |
999 | datadir='${datarootdir}' | |
21c84b71 TT |
1000 | sysconfdir='${prefix}/etc' |
1001 | sharedstatedir='${prefix}/com' | |
1002 | localstatedir='${prefix}/var' | |
2ab53829 | 1003 | runstatedir='${localstatedir}/run' |
21c84b71 TT |
1004 | includedir='${prefix}/include' |
1005 | oldincludedir='/usr/include' | |
e1052144 TT |
1006 | docdir='${datarootdir}/doc/${PACKAGE}' |
1007 | infodir='${datarootdir}/info' | |
1008 | htmldir='${docdir}' | |
1009 | dvidir='${docdir}' | |
1010 | pdfdir='${docdir}' | |
1011 | psdir='${docdir}' | |
1012 | libdir='${exec_prefix}/lib' | |
1013 | localedir='${datarootdir}/locale' | |
1014 | mandir='${datarootdir}/man' | |
50e1e10f | 1015 | |
50e1e10f | 1016 | ac_prev= |
e1052144 | 1017 | ac_dashdash= |
50e1e10f TT |
1018 | for ac_option |
1019 | do | |
50e1e10f TT |
1020 | # If the previous option needs an argument, assign it. |
1021 | if test -n "$ac_prev"; then | |
e1052144 | 1022 | eval $ac_prev=\$ac_option |
50e1e10f TT |
1023 | ac_prev= |
1024 | continue | |
1025 | fi | |
1026 | ||
e1052144 | 1027 | case $ac_option in |
d6a4bcb5 TB |
1028 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
1029 | *=) ac_optarg= ;; | |
1030 | *) ac_optarg=yes ;; | |
e1052144 | 1031 | esac |
50e1e10f | 1032 | |
e1052144 TT |
1033 | case $ac_dashdash$ac_option in |
1034 | --) | |
1035 | ac_dashdash=yes ;; | |
50e1e10f | 1036 | |
21c84b71 TT |
1037 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
1038 | ac_prev=bindir ;; | |
1039 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
b0cacab0 | 1040 | bindir=$ac_optarg ;; |
21c84b71 TT |
1041 | |
1042 | -build | --build | --buil | --bui | --bu) | |
b0cacab0 | 1043 | ac_prev=build_alias ;; |
21c84b71 | 1044 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
b0cacab0 | 1045 | build_alias=$ac_optarg ;; |
50e1e10f TT |
1046 | |
1047 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
1048 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
1049 | ac_prev=cache_file ;; | |
1050 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
1051 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
b0cacab0 TT |
1052 | cache_file=$ac_optarg ;; |
1053 | ||
1054 | --config-cache | -C) | |
1055 | cache_file=config.cache ;; | |
50e1e10f | 1056 | |
e1052144 | 1057 | -datadir | --datadir | --datadi | --datad) |
21c84b71 | 1058 | ac_prev=datadir ;; |
e1052144 | 1059 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
b0cacab0 | 1060 | datadir=$ac_optarg ;; |
21c84b71 | 1061 | |
e1052144 TT |
1062 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
1063 | | --dataroo | --dataro | --datar) | |
1064 | ac_prev=datarootdir ;; | |
1065 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
1066 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
1067 | datarootdir=$ac_optarg ;; | |
1068 | ||
50e1e10f | 1069 | -disable-* | --disable-*) |
39fd3d4f | 1070 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
50e1e10f | 1071 | # Reject names that are not valid shell variable names. |
39fd3d4f | 1072 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
54445dc2 | 1073 | as_fn_error $? "invalid feature name: \`$ac_useropt'" |
39fd3d4f | 1074 | ac_useropt_orig=$ac_useropt |
54445dc2 | 1075 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
39fd3d4f SJR |
1076 | case $ac_user_opts in |
1077 | *" | |
1078 | "enable_$ac_useropt" | |
1079 | "*) ;; | |
1080 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
1081 | ac_unrecognized_sep=', ';; | |
1082 | esac | |
1083 | eval enable_$ac_useropt=no ;; | |
e1052144 TT |
1084 | |
1085 | -docdir | --docdir | --docdi | --doc | --do) | |
1086 | ac_prev=docdir ;; | |
1087 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1088 | docdir=$ac_optarg ;; | |
1089 | ||
1090 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1091 | ac_prev=dvidir ;; | |
1092 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1093 | dvidir=$ac_optarg ;; | |
50e1e10f TT |
1094 | |
1095 | -enable-* | --enable-*) | |
39fd3d4f | 1096 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
50e1e10f | 1097 | # Reject names that are not valid shell variable names. |
39fd3d4f | 1098 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
54445dc2 | 1099 | as_fn_error $? "invalid feature name: \`$ac_useropt'" |
39fd3d4f | 1100 | ac_useropt_orig=$ac_useropt |
54445dc2 | 1101 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
39fd3d4f SJR |
1102 | case $ac_user_opts in |
1103 | *" | |
1104 | "enable_$ac_useropt" | |
1105 | "*) ;; | |
1106 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1107 | ac_unrecognized_sep=', ';; | |
1108 | esac | |
1109 | eval enable_$ac_useropt=\$ac_optarg ;; | |
50e1e10f TT |
1110 | |
1111 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1112 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1113 | | --exec | --exe | --ex) | |
1114 | ac_prev=exec_prefix ;; | |
1115 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1116 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1117 | | --exec=* | --exe=* | --ex=*) | |
b0cacab0 | 1118 | exec_prefix=$ac_optarg ;; |
50e1e10f TT |
1119 | |
1120 | -gas | --gas | --ga | --g) | |
1121 | # Obsolete; use --with-gas. | |
1122 | with_gas=yes ;; | |
1123 | ||
b0cacab0 TT |
1124 | -help | --help | --hel | --he | -h) |
1125 | ac_init_help=long ;; | |
1126 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1127 | ac_init_help=recursive ;; | |
1128 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1129 | ac_init_help=short ;; | |
50e1e10f TT |
1130 | |
1131 | -host | --host | --hos | --ho) | |
b0cacab0 | 1132 | ac_prev=host_alias ;; |
50e1e10f | 1133 | -host=* | --host=* | --hos=* | --ho=*) |
b0cacab0 | 1134 | host_alias=$ac_optarg ;; |
50e1e10f | 1135 | |
e1052144 TT |
1136 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1137 | ac_prev=htmldir ;; | |
1138 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1139 | | --ht=*) | |
1140 | htmldir=$ac_optarg ;; | |
1141 | ||
21c84b71 TT |
1142 | -includedir | --includedir | --includedi | --included | --include \ |
1143 | | --includ | --inclu | --incl | --inc) | |
1144 | ac_prev=includedir ;; | |
1145 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1146 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
b0cacab0 | 1147 | includedir=$ac_optarg ;; |
21c84b71 TT |
1148 | |
1149 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1150 | ac_prev=infodir ;; | |
1151 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
b0cacab0 | 1152 | infodir=$ac_optarg ;; |
21c84b71 TT |
1153 | |
1154 | -libdir | --libdir | --libdi | --libd) | |
1155 | ac_prev=libdir ;; | |
1156 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
b0cacab0 | 1157 | libdir=$ac_optarg ;; |
21c84b71 TT |
1158 | |
1159 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1160 | | --libexe | --libex | --libe) | |
1161 | ac_prev=libexecdir ;; | |
1162 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1163 | | --libexe=* | --libex=* | --libe=*) | |
b0cacab0 | 1164 | libexecdir=$ac_optarg ;; |
21c84b71 | 1165 | |
e1052144 TT |
1166 | -localedir | --localedir | --localedi | --localed | --locale) |
1167 | ac_prev=localedir ;; | |
1168 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1169 | localedir=$ac_optarg ;; | |
1170 | ||
21c84b71 | 1171 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
e1052144 | 1172 | | --localstate | --localstat | --localsta | --localst | --locals) |
21c84b71 TT |
1173 | ac_prev=localstatedir ;; |
1174 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
e1052144 | 1175 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
b0cacab0 | 1176 | localstatedir=$ac_optarg ;; |
21c84b71 TT |
1177 | |
1178 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1179 | ac_prev=mandir ;; | |
1180 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
b0cacab0 | 1181 | mandir=$ac_optarg ;; |
21c84b71 | 1182 | |
50e1e10f TT |
1183 | -nfp | --nfp | --nf) |
1184 | # Obsolete; use --without-fp. | |
1185 | with_fp=no ;; | |
1186 | ||
1187 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
b0cacab0 | 1188 | | --no-cr | --no-c | -n) |
50e1e10f TT |
1189 | no_create=yes ;; |
1190 | ||
1191 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1192 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1193 | no_recursion=yes ;; | |
1194 | ||
21c84b71 TT |
1195 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
1196 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1197 | | --oldin | --oldi | --old | --ol | --o) | |
1198 | ac_prev=oldincludedir ;; | |
1199 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1200 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1201 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
b0cacab0 | 1202 | oldincludedir=$ac_optarg ;; |
21c84b71 | 1203 | |
50e1e10f TT |
1204 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
1205 | ac_prev=prefix ;; | |
1206 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
b0cacab0 | 1207 | prefix=$ac_optarg ;; |
50e1e10f TT |
1208 | |
1209 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1210 | | --program-pre | --program-pr | --program-p) | |
1211 | ac_prev=program_prefix ;; | |
1212 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1213 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
b0cacab0 | 1214 | program_prefix=$ac_optarg ;; |
50e1e10f TT |
1215 | |
1216 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1217 | | --program-suf | --program-su | --program-s) | |
1218 | ac_prev=program_suffix ;; | |
1219 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1220 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
b0cacab0 | 1221 | program_suffix=$ac_optarg ;; |
50e1e10f TT |
1222 | |
1223 | -program-transform-name | --program-transform-name \ | |
1224 | | --program-transform-nam | --program-transform-na \ | |
1225 | | --program-transform-n | --program-transform- \ | |
1226 | | --program-transform | --program-transfor \ | |
1227 | | --program-transfo | --program-transf \ | |
1228 | | --program-trans | --program-tran \ | |
1229 | | --progr-tra | --program-tr | --program-t) | |
1230 | ac_prev=program_transform_name ;; | |
1231 | -program-transform-name=* | --program-transform-name=* \ | |
1232 | | --program-transform-nam=* | --program-transform-na=* \ | |
1233 | | --program-transform-n=* | --program-transform-=* \ | |
1234 | | --program-transform=* | --program-transfor=* \ | |
1235 | | --program-transfo=* | --program-transf=* \ | |
1236 | | --program-trans=* | --program-tran=* \ | |
1237 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
b0cacab0 | 1238 | program_transform_name=$ac_optarg ;; |
50e1e10f | 1239 | |
e1052144 TT |
1240 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1241 | ac_prev=pdfdir ;; | |
1242 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1243 | pdfdir=$ac_optarg ;; | |
1244 | ||
1245 | -psdir | --psdir | --psdi | --psd | --ps) | |
1246 | ac_prev=psdir ;; | |
1247 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1248 | psdir=$ac_optarg ;; | |
1249 | ||
50e1e10f TT |
1250 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1251 | | -silent | --silent | --silen | --sile | --sil) | |
1252 | silent=yes ;; | |
1253 | ||
2ab53829 TT |
1254 | -runstatedir | --runstatedir | --runstatedi | --runstated \ |
1255 | | --runstate | --runstat | --runsta | --runst | --runs \ | |
1256 | | --run | --ru | --r) | |
1257 | ac_prev=runstatedir ;; | |
1258 | -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ | |
1259 | | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ | |
1260 | | --run=* | --ru=* | --r=*) | |
1261 | runstatedir=$ac_optarg ;; | |
1262 | ||
21c84b71 TT |
1263 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
1264 | ac_prev=sbindir ;; | |
1265 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1266 | | --sbi=* | --sb=*) | |
b0cacab0 | 1267 | sbindir=$ac_optarg ;; |
21c84b71 TT |
1268 | |
1269 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1270 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1271 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1272 | | --sha | --sh) | |
1273 | ac_prev=sharedstatedir ;; | |
1274 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1275 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1276 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1277 | | --sha=* | --sh=*) | |
b0cacab0 | 1278 | sharedstatedir=$ac_optarg ;; |
21c84b71 | 1279 | |
50e1e10f TT |
1280 | -site | --site | --sit) |
1281 | ac_prev=site ;; | |
1282 | -site=* | --site=* | --sit=*) | |
b0cacab0 | 1283 | site=$ac_optarg ;; |
50e1e10f TT |
1284 | |
1285 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1286 | ac_prev=srcdir ;; | |
1287 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
b0cacab0 | 1288 | srcdir=$ac_optarg ;; |
50e1e10f | 1289 | |
21c84b71 TT |
1290 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
1291 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1292 | ac_prev=sysconfdir ;; | |
1293 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1294 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
b0cacab0 | 1295 | sysconfdir=$ac_optarg ;; |
21c84b71 | 1296 | |
50e1e10f | 1297 | -target | --target | --targe | --targ | --tar | --ta | --t) |
b0cacab0 | 1298 | ac_prev=target_alias ;; |
50e1e10f | 1299 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
b0cacab0 | 1300 | target_alias=$ac_optarg ;; |
50e1e10f TT |
1301 | |
1302 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1303 | verbose=yes ;; | |
1304 | ||
b0cacab0 TT |
1305 | -version | --version | --versio | --versi | --vers | -V) |
1306 | ac_init_version=: ;; | |
50e1e10f TT |
1307 | |
1308 | -with-* | --with-*) | |
39fd3d4f | 1309 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
50e1e10f | 1310 | # Reject names that are not valid shell variable names. |
39fd3d4f | 1311 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
54445dc2 | 1312 | as_fn_error $? "invalid package name: \`$ac_useropt'" |
39fd3d4f | 1313 | ac_useropt_orig=$ac_useropt |
54445dc2 | 1314 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
39fd3d4f SJR |
1315 | case $ac_user_opts in |
1316 | *" | |
1317 | "with_$ac_useropt" | |
1318 | "*) ;; | |
1319 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1320 | ac_unrecognized_sep=', ';; | |
1321 | esac | |
1322 | eval with_$ac_useropt=\$ac_optarg ;; | |
50e1e10f TT |
1323 | |
1324 | -without-* | --without-*) | |
39fd3d4f | 1325 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
50e1e10f | 1326 | # Reject names that are not valid shell variable names. |
39fd3d4f | 1327 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
54445dc2 | 1328 | as_fn_error $? "invalid package name: \`$ac_useropt'" |
39fd3d4f | 1329 | ac_useropt_orig=$ac_useropt |
54445dc2 | 1330 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
39fd3d4f SJR |
1331 | case $ac_user_opts in |
1332 | *" | |
1333 | "with_$ac_useropt" | |
1334 | "*) ;; | |
1335 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1336 | ac_unrecognized_sep=', ';; | |
1337 | esac | |
1338 | eval with_$ac_useropt=no ;; | |
50e1e10f TT |
1339 | |
1340 | --x) | |
1341 | # Obsolete; use --with-x. | |
1342 | with_x=yes ;; | |
1343 | ||
1344 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1345 | | --x-incl | --x-inc | --x-in | --x-i) | |
1346 | ac_prev=x_includes ;; | |
1347 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1348 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
b0cacab0 | 1349 | x_includes=$ac_optarg ;; |
50e1e10f TT |
1350 | |
1351 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1352 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1353 | ac_prev=x_libraries ;; | |
1354 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1355 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
b0cacab0 | 1356 | x_libraries=$ac_optarg ;; |
50e1e10f | 1357 | |
d6a4bcb5 TB |
1358 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1359 | Try \`$0 --help' for more information" | |
50e1e10f TT |
1360 | ;; |
1361 | ||
b0cacab0 TT |
1362 | *=*) |
1363 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1364 | # Reject names that are not valid shell variable names. | |
57aa50d4 TT |
1365 | case $ac_envvar in #( |
1366 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
d6a4bcb5 | 1367 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
57aa50d4 | 1368 | esac |
e1052144 | 1369 | eval $ac_envvar=\$ac_optarg |
b0cacab0 TT |
1370 | export $ac_envvar ;; |
1371 | ||
21c84b71 | 1372 | *) |
b0cacab0 | 1373 | # FIXME: should be removed in autoconf 3.0. |
54445dc2 | 1374 | printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 |
b0cacab0 | 1375 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
54445dc2 | 1376 | printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 |
d6a4bcb5 | 1377 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
50e1e10f TT |
1378 | ;; |
1379 | ||
1380 | esac | |
1381 | done | |
1382 | ||
1383 | if test -n "$ac_prev"; then | |
b0cacab0 | 1384 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
d6a4bcb5 | 1385 | as_fn_error $? "missing argument to $ac_option" |
50e1e10f | 1386 | fi |
50e1e10f | 1387 | |
39fd3d4f SJR |
1388 | if test -n "$ac_unrecognized_opts"; then |
1389 | case $enable_option_checking in | |
1390 | no) ;; | |
d6a4bcb5 | 1391 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
54445dc2 | 1392 | *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
39fd3d4f SJR |
1393 | esac |
1394 | fi | |
1395 | ||
1396 | # Check all directory arguments for consistency. | |
e1052144 TT |
1397 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1398 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1399 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
2ab53829 | 1400 | libdir localedir mandir runstatedir |
50e1e10f | 1401 | do |
e1052144 | 1402 | eval ac_val=\$$ac_var |
39fd3d4f SJR |
1403 | # Remove trailing slashes. |
1404 | case $ac_val in | |
1405 | */ ) | |
1406 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1407 | eval $ac_var=\$ac_val;; | |
1408 | esac | |
1409 | # Be sure to have absolute directory names. | |
b0cacab0 | 1410 | case $ac_val in |
e1052144 TT |
1411 | [\\/$]* | ?:[\\/]* ) continue;; |
1412 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
50e1e10f | 1413 | esac |
d6a4bcb5 | 1414 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
50e1e10f TT |
1415 | done |
1416 | ||
b0cacab0 TT |
1417 | # There might be people who depend on the old broken behavior: `$host' |
1418 | # used to hold the argument of --host etc. | |
1419 | # FIXME: To remove some day. | |
1420 | build=$build_alias | |
1421 | host=$host_alias | |
1422 | target=$target_alias | |
1423 | ||
1424 | # FIXME: To remove some day. | |
1425 | if test "x$host_alias" != x; then | |
1426 | if test "x$build_alias" = x; then | |
1427 | cross_compiling=maybe | |
b0cacab0 TT |
1428 | elif test "x$build_alias" != "x$host_alias"; then |
1429 | cross_compiling=yes | |
1430 | fi | |
1431 | fi | |
50e1e10f | 1432 | |
b0cacab0 TT |
1433 | ac_tool_prefix= |
1434 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1435 | ||
1436 | test "$silent" = yes && exec 6>/dev/null | |
50e1e10f | 1437 | |
50e1e10f | 1438 | |
e1052144 TT |
1439 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1440 | ac_ls_di=`ls -di .` && | |
1441 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
d6a4bcb5 | 1442 | as_fn_error $? "working directory cannot be determined" |
e1052144 | 1443 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
d6a4bcb5 | 1444 | as_fn_error $? "pwd does not report name of working directory" |
e1052144 TT |
1445 | |
1446 | ||
50e1e10f TT |
1447 | # Find the source files, if location was not specified. |
1448 | if test -z "$srcdir"; then | |
1449 | ac_srcdir_defaulted=yes | |
e1052144 | 1450 | # Try the directory containing this script, then the parent directory. |
39fd3d4f SJR |
1451 | ac_confdir=`$as_dirname -- "$as_myself" || |
1452 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1453 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1454 | X"$as_myself" : 'X\(//\)$' \| \ | |
1455 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
54445dc2 | 1456 | printf "%s\n" X"$as_myself" | |
e1052144 TT |
1457 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1458 | s//\1/ | |
1459 | q | |
1460 | } | |
1461 | /^X\(\/\/\)[^/].*/{ | |
1462 | s//\1/ | |
1463 | q | |
1464 | } | |
1465 | /^X\(\/\/\)$/{ | |
1466 | s//\1/ | |
1467 | q | |
1468 | } | |
1469 | /^X\(\/\).*/{ | |
1470 | s//\1/ | |
1471 | q | |
1472 | } | |
1473 | s/.*/./; q'` | |
50e1e10f | 1474 | srcdir=$ac_confdir |
e1052144 | 1475 | if test ! -r "$srcdir/$ac_unique_file"; then |
50e1e10f TT |
1476 | srcdir=.. |
1477 | fi | |
1478 | else | |
1479 | ac_srcdir_defaulted=no | |
1480 | fi | |
e1052144 TT |
1481 | if test ! -r "$srcdir/$ac_unique_file"; then |
1482 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
d6a4bcb5 | 1483 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
50e1e10f | 1484 | fi |
e1052144 TT |
1485 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1486 | ac_abs_confdir=`( | |
d6a4bcb5 | 1487 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
e1052144 TT |
1488 | pwd)` |
1489 | # When building in place, set srcdir=. | |
1490 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1491 | srcdir=. | |
1492 | fi | |
1493 | # Remove unnecessary trailing slashes from srcdir. | |
1494 | # Double slashes in file names in object file debugging info | |
1495 | # mess up M-x gdb in Emacs. | |
1496 | case $srcdir in | |
1497 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1498 | esac | |
1499 | for ac_var in $ac_precious_vars; do | |
1500 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1501 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1502 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1503 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1504 | done | |
b0cacab0 TT |
1505 | |
1506 | # | |
1507 | # Report the --help message. | |
1508 | # | |
1509 | if test "$ac_init_help" = "long"; then | |
1510 | # Omit some internal or obsolete options to make the list less imposing. | |
1511 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1512 | cat <<_ACEOF | |
1513 | \`configure' configures this package to adapt to many kinds of systems. | |
1514 | ||
1515 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1516 | ||
1517 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1518 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1519 | ||
1520 | Defaults for the options are specified in brackets. | |
1521 | ||
1522 | Configuration: | |
1523 | -h, --help display this help and exit | |
1524 | --help=short display options specific to this package | |
1525 | --help=recursive display the short help of all the included packages | |
1526 | -V, --version display version information and exit | |
d6a4bcb5 | 1527 | -q, --quiet, --silent do not print \`checking ...' messages |
b0cacab0 TT |
1528 | --cache-file=FILE cache test results in FILE [disabled] |
1529 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1530 | -n, --no-create do not create output files | |
1531 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1532 | ||
b0cacab0 TT |
1533 | Installation directories: |
1534 | --prefix=PREFIX install architecture-independent files in PREFIX | |
39fd3d4f | 1535 | [$ac_default_prefix] |
b0cacab0 | 1536 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
39fd3d4f | 1537 | [PREFIX] |
b0cacab0 TT |
1538 | |
1539 | By default, \`make install' will install all the files in | |
1540 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1541 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1542 | for instance \`--prefix=\$HOME'. | |
1543 | ||
1544 | For better control, use the options below. | |
1545 | ||
1546 | Fine tuning of the installation directories: | |
39fd3d4f SJR |
1547 | --bindir=DIR user executables [EPREFIX/bin] |
1548 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1549 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1550 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1551 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1552 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
2ab53829 | 1553 | --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] |
39fd3d4f SJR |
1554 | --libdir=DIR object code libraries [EPREFIX/lib] |
1555 | --includedir=DIR C header files [PREFIX/include] | |
1556 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1557 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1558 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1559 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1560 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1561 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1562 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1563 | --htmldir=DIR html documentation [DOCDIR] | |
1564 | --dvidir=DIR dvi documentation [DOCDIR] | |
1565 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1566 | --psdir=DIR ps documentation [DOCDIR] | |
b0cacab0 TT |
1567 | _ACEOF |
1568 | ||
1569 | cat <<\_ACEOF | |
1570 | ||
1571 | System types: | |
1572 | --build=BUILD configure for building on BUILD [guessed] | |
1573 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1574 | _ACEOF | |
1575 | fi | |
1576 | ||
1577 | if test -n "$ac_init_help"; then | |
1578 | ||
1579 | cat <<\_ACEOF | |
1580 | ||
1581 | Optional Features: | |
39fd3d4f | 1582 | --disable-option-checking ignore unrecognized --enable/--with options |
b0cacab0 TT |
1583 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1584 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
8c9e2921 TT |
1585 | --enable-maintainer-mode |
1586 | enable makefile rules useful for maintainers | |
1587 | --enable-symlink-install | |
1588 | use symlinks when installing instead of hard links | |
1589 | --enable-relative-symlinks | |
1590 | use relative symlinks when installing | |
91d11da1 | 1591 | |
5aa6c3f6 | 1592 | --enable-symlink-build use symlinks while building instead of hard links |
8c9e2921 TT |
1593 | --enable-verbose-makecmds |
1594 | enable verbose make command output | |
1595 | --enable-elf-shlibs select ELF shared libraries | |
1596 | --enable-bsd-shlibs select BSD shared libraries | |
1597 | --enable-profile build profiling libraries | |
1598 | --enable-gcov build for coverage testing using gcov | |
1599 | --enable-hardening build for coverage testing using gcov | |
1600 | --enable-jbd-debug enable journal debugging | |
b0cacab0 | 1601 | --enable-blkid-debug enable blkid debugging |
8c9e2921 TT |
1602 | --disable-testio-debug disable the use of the test I/O manager for |
1603 | debugging | |
1604 | --enable-developer-features | |
1605 | enable features for use by ext4 developers | |
1606 | --enable-libuuid build and use private uuid library | |
1607 | --enable-libblkid build and use private blkid library | |
1608 | --enable-subset enable subset-only build | |
1609 | --disable-backtrace disable use backtrace | |
1610 | --disable-debugfs disable support of debugfs program | |
1611 | --disable-imager disable support of e2image program | |
1612 | --disable-resizer disable support of e2resize program | |
1613 | --disable-defrag disable support of e4defrag program | |
b0cacab0 | 1614 | --enable-fsck build fsck wrapper program |
8c9e2921 TT |
1615 | --enable-e2initrd-helper |
1616 | build e2initrd-helper program | |
3249394d | 1617 | --disable-tls disable use of thread local support |
5610f992 | 1618 | --disable-uuidd disable building the uuid daemon |
d6a4bcb5 | 1619 | --disable-mmp disable support mmp, Multi Mount Protection |
749f0712 | 1620 | --disable-tdb disable tdb support |
8c9e2921 | 1621 | --disable-bmap-stats disable collection of bitmap stats |
1625bf42 | 1622 | --enable-bmap-stats-ops enable collection of additional bitmap stats |
b0cacab0 TT |
1623 | --disable-nls do not use Native Language Support |
1624 | --disable-rpath do not hardcode runtime library paths | |
fed000ae | 1625 | --disable-largefile omit support for large files |
8c9e2921 TT |
1626 | --disable-fuse2fs do not build fuse2fs |
1627 | --enable-lto enable link time optimization | |
1628 | --enable-ubsan enable undefined behavior sanitizer | |
1629 | --enable-addrsan enable address sanitizer | |
1630 | --enable-threadsan enable thread sanitizer | |
2869485b | 1631 | --enable-fuzzing enable fuzzing sanitizer |
b0cacab0 TT |
1632 | |
1633 | Optional Packages: | |
1634 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1635 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
3249394d | 1636 | --with-diet-libc use diet libc |
0b5b9f90 TT |
1637 | --with-cc no longer supported, use CC= instead |
1638 | --with-ccopts no longer supported, use CFLAGS= instead | |
1639 | --with-ldopts no longer supported, use LDFLAGS= instead | |
8c9e2921 TT |
1640 | --with-root-prefix=PREFIX |
1641 | override prefix variable for files to be placed in | |
1642 | the root | |
bdcd5f22 | 1643 | --without-pthread disable use of pthread support |
93613951 | 1644 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
b0cacab0 TT |
1645 | --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib |
1646 | --without-libiconv-prefix don't search for libiconv in includedir and libdir | |
b0cacab0 TT |
1647 | --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib |
1648 | --without-libintl-prefix don't search for libintl in includedir and libdir | |
8c9e2921 | 1649 | --with-multiarch=ARCH specify the multiarch triplet |
5ce368f0 DW |
1650 | --with-udev-rules-dir[=DIR] |
1651 | Install udev rules into DIR. | |
a2df5894 DW |
1652 | --with-crond-dir[=DIR] Install system crontabs into DIR. |
1653 | --with-systemd-unit-dir[=DIR] | |
1654 | Install systemd system units into DIR. | |
b0cacab0 TT |
1655 | |
1656 | Some influential environment variables: | |
1657 | CC C compiler command | |
1658 | CFLAGS C compiler flags | |
1659 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1660 | nonstandard directory <lib dir> | |
29a5deed | 1661 | LIBS libraries to pass to the linker, e.g. -l<library> |
61ef2474 | 1662 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
e1052144 | 1663 | you have headers in a nonstandard directory <include dir> |
b0cacab0 | 1664 | CPP C preprocessor |
14b596d4 | 1665 | PKG_CONFIG path to pkg-config utility |
93613951 TT |
1666 | PKG_CONFIG_PATH |
1667 | directories to add to pkg-config's search path | |
1668 | PKG_CONFIG_LIBDIR | |
1669 | path overriding pkg-config's built-in search path | |
2869485b TT |
1670 | CXX C++ compiler command |
1671 | CXXFLAGS C++ compiler flags | |
5ce368f0 DW |
1672 | udev_CFLAGS C compiler flags for udev, overriding pkg-config |
1673 | udev_LIBS linker flags for udev, overriding pkg-config | |
a2df5894 DW |
1674 | systemd_CFLAGS |
1675 | C compiler flags for systemd, overriding pkg-config | |
1676 | systemd_LIBS | |
1677 | linker flags for systemd, overriding pkg-config | |
b0cacab0 TT |
1678 | |
1679 | Use these variables to override the choices made by `configure' or to help | |
1680 | it to find libraries and programs with nonstandard names/locations. | |
1681 | ||
57aa50d4 | 1682 | Report bugs to the package provider. |
b0cacab0 | 1683 | _ACEOF |
e1052144 | 1684 | ac_status=$? |
b0cacab0 TT |
1685 | fi |
1686 | ||
1687 | if test "$ac_init_help" = "recursive"; then | |
1688 | # If there are subdirs, report their specific --help. | |
b0cacab0 | 1689 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
39fd3d4f SJR |
1690 | test -d "$ac_dir" || |
1691 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1692 | continue | |
b0cacab0 TT |
1693 | ac_builddir=. |
1694 | ||
e1052144 TT |
1695 | case "$ac_dir" in |
1696 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1697 | *) | |
54445dc2 | 1698 | ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` |
e1052144 | 1699 | # A ".." for each directory in $ac_dir_suffix. |
54445dc2 | 1700 | ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
e1052144 TT |
1701 | case $ac_top_builddir_sub in |
1702 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1703 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1704 | esac ;; | |
1705 | esac | |
1706 | ac_abs_top_builddir=$ac_pwd | |
1707 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1708 | # for backward compatibility: | |
1709 | ac_top_builddir=$ac_top_build_prefix | |
b0cacab0 TT |
1710 | |
1711 | case $srcdir in | |
e1052144 | 1712 | .) # We are building in place. |
b0cacab0 | 1713 | ac_srcdir=. |
e1052144 TT |
1714 | ac_top_srcdir=$ac_top_builddir_sub |
1715 | ac_abs_top_srcdir=$ac_pwd ;; | |
1716 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
b0cacab0 | 1717 | ac_srcdir=$srcdir$ac_dir_suffix; |
e1052144 TT |
1718 | ac_top_srcdir=$srcdir |
1719 | ac_abs_top_srcdir=$srcdir ;; | |
1720 | *) # Relative name. | |
1721 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1722 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1723 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
b0cacab0 | 1724 | esac |
e1052144 TT |
1725 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1726 | ||
1727 | cd "$ac_dir" || { ac_status=$?; continue; } | |
54445dc2 TT |
1728 | # Check for configure.gnu first; this name is used for a wrapper for |
1729 | # Metaconfig's "Configure" on case-insensitive file systems. | |
e1052144 TT |
1730 | if test -f "$ac_srcdir/configure.gnu"; then |
1731 | echo && | |
1732 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1733 | elif test -f "$ac_srcdir/configure"; then | |
1734 | echo && | |
1735 | $SHELL "$ac_srcdir/configure" --help=recursive | |
b0cacab0 | 1736 | else |
54445dc2 | 1737 | printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
e1052144 TT |
1738 | fi || ac_status=$? |
1739 | cd "$ac_pwd" || { ac_status=$?; break; } | |
b0cacab0 TT |
1740 | done |
1741 | fi | |
1742 | ||
e1052144 | 1743 | test -n "$ac_init_help" && exit $ac_status |
b0cacab0 TT |
1744 | if $ac_init_version; then |
1745 | cat <<\_ACEOF | |
e1052144 | 1746 | configure |
54445dc2 | 1747 | generated by GNU Autoconf 2.71 |
b0cacab0 | 1748 | |
54445dc2 | 1749 | Copyright (C) 2021 Free Software Foundation, Inc. |
b0cacab0 TT |
1750 | This configure script is free software; the Free Software Foundation |
1751 | gives unlimited permission to copy, distribute and modify it. | |
1752 | _ACEOF | |
e1052144 | 1753 | exit |
b0cacab0 | 1754 | fi |
b0cacab0 | 1755 | |
57aa50d4 TT |
1756 | ## ------------------------ ## |
1757 | ## Autoconf initialization. ## | |
1758 | ## ------------------------ ## | |
b0cacab0 | 1759 | |
57aa50d4 TT |
1760 | # ac_fn_c_try_compile LINENO |
1761 | # -------------------------- | |
1762 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1763 | ac_fn_c_try_compile () | |
1764 | { | |
1765 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
54445dc2 | 1766 | rm -f conftest.$ac_objext conftest.beam |
57aa50d4 TT |
1767 | if { { ac_try="$ac_compile" |
1768 | case "(($ac_try" in | |
1769 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1770 | *) ac_try_echo=$ac_try;; | |
1771 | esac | |
1772 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
54445dc2 | 1773 | printf "%s\n" "$ac_try_echo"; } >&5 |
57aa50d4 TT |
1774 | (eval "$ac_compile") 2>conftest.err |
1775 | ac_status=$? | |
1776 | if test -s conftest.err; then | |
1777 | grep -v '^ *+' conftest.err >conftest.er1 | |
1778 | cat conftest.er1 >&5 | |
1779 | mv -f conftest.er1 conftest.err | |
1780 | fi | |
54445dc2 | 1781 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
57aa50d4 TT |
1782 | test $ac_status = 0; } && { |
1783 | test -z "$ac_c_werror_flag" || | |
1784 | test ! -s conftest.err | |
54445dc2 TT |
1785 | } && test -s conftest.$ac_objext |
1786 | then : | |
57aa50d4 | 1787 | ac_retval=0 |
54445dc2 TT |
1788 | else $as_nop |
1789 | printf "%s\n" "$as_me: failed program was:" >&5 | |
57aa50d4 | 1790 | sed 's/^/| /' conftest.$ac_ext >&5 |
b0cacab0 | 1791 | |
57aa50d4 TT |
1792 | ac_retval=1 |
1793 | fi | |
d6a4bcb5 | 1794 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
61ef2474 | 1795 | as_fn_set_status $ac_retval |
57aa50d4 TT |
1796 | |
1797 | } # ac_fn_c_try_compile | |
1798 | ||
54445dc2 TT |
1799 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
1800 | # ------------------------------------------------------- | |
1801 | # Tests whether HEADER exists and can be compiled using the include files in | |
1802 | # INCLUDES, setting the cache variable VAR accordingly. | |
1803 | ac_fn_c_check_header_compile () | |
1804 | { | |
1805 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1806 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1807 | printf %s "checking for $2... " >&6; } | |
1808 | if eval test \${$3+y} | |
1809 | then : | |
1810 | printf %s "(cached) " >&6 | |
1811 | else $as_nop | |
1812 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1813 | /* end confdefs.h. */ | |
1814 | $4 | |
1815 | #include <$2> | |
1816 | _ACEOF | |
1817 | if ac_fn_c_try_compile "$LINENO" | |
1818 | then : | |
1819 | eval "$3=yes" | |
1820 | else $as_nop | |
1821 | eval "$3=no" | |
1822 | fi | |
1823 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
1824 | fi | |
1825 | eval ac_res=\$$3 | |
1826 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1827 | printf "%s\n" "$ac_res" >&6; } | |
1828 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1829 | ||
1830 | } # ac_fn_c_check_header_compile | |
1831 | ||
57aa50d4 TT |
1832 | # ac_fn_c_try_link LINENO |
1833 | # ----------------------- | |
1834 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1835 | ac_fn_c_try_link () | |
b0cacab0 | 1836 | { |
57aa50d4 | 1837 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
54445dc2 | 1838 | rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext |
57aa50d4 TT |
1839 | if { { ac_try="$ac_link" |
1840 | case "(($ac_try" in | |
1841 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1842 | *) ac_try_echo=$ac_try;; | |
1843 | esac | |
1844 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
54445dc2 | 1845 | printf "%s\n" "$ac_try_echo"; } >&5 |
57aa50d4 TT |
1846 | (eval "$ac_link") 2>conftest.err |
1847 | ac_status=$? | |
1848 | if test -s conftest.err; then | |
1849 | grep -v '^ *+' conftest.err >conftest.er1 | |
1850 | cat conftest.er1 >&5 | |
1851 | mv -f conftest.er1 conftest.err | |
1852 | fi | |
54445dc2 | 1853 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
57aa50d4 TT |
1854 | test $ac_status = 0; } && { |
1855 | test -z "$ac_c_werror_flag" || | |
1856 | test ! -s conftest.err | |
1857 | } && test -s conftest$ac_exeext && { | |
1858 | test "$cross_compiling" = yes || | |
d6a4bcb5 | 1859 | test -x conftest$ac_exeext |
54445dc2 TT |
1860 | } |
1861 | then : | |
57aa50d4 | 1862 | ac_retval=0 |
54445dc2 TT |
1863 | else $as_nop |
1864 | printf "%s\n" "$as_me: failed program was:" >&5 | |
57aa50d4 | 1865 | sed 's/^/| /' conftest.$ac_ext >&5 |
b0cacab0 | 1866 | |
57aa50d4 TT |
1867 | ac_retval=1 |
1868 | fi | |
1869 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1870 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1871 | # interfere with the next link command; also delete a directory that is | |
1872 | # left behind by Apple's compiler. We do this before executing the actions. | |
1873 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
d6a4bcb5 | 1874 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
61ef2474 | 1875 | as_fn_set_status $ac_retval |
b0cacab0 | 1876 | |
57aa50d4 | 1877 | } # ac_fn_c_try_link |
b0cacab0 | 1878 | |
57aa50d4 TT |
1879 | # ac_fn_c_try_cpp LINENO |
1880 | # ---------------------- | |
1881 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1882 | ac_fn_c_try_cpp () | |
1883 | { | |
1884 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1885 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1886 | case "(($ac_try" in | |
1887 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1888 | *) ac_try_echo=$ac_try;; | |
1889 | esac | |
1890 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
54445dc2 | 1891 | printf "%s\n" "$ac_try_echo"; } >&5 |
57aa50d4 TT |
1892 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
1893 | ac_status=$? | |
1894 | if test -s conftest.err; then | |
1895 | grep -v '^ *+' conftest.err >conftest.er1 | |
1896 | cat conftest.er1 >&5 | |
1897 | mv -f conftest.er1 conftest.err | |
1898 | fi | |
54445dc2 | 1899 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
d6a4bcb5 | 1900 | test $ac_status = 0; } > conftest.i && { |
57aa50d4 TT |
1901 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
1902 | test ! -s conftest.err | |
54445dc2 TT |
1903 | } |
1904 | then : | |
57aa50d4 | 1905 | ac_retval=0 |
54445dc2 TT |
1906 | else $as_nop |
1907 | printf "%s\n" "$as_me: failed program was:" >&5 | |
57aa50d4 | 1908 | sed 's/^/| /' conftest.$ac_ext >&5 |
b0cacab0 | 1909 | |
57aa50d4 TT |
1910 | ac_retval=1 |
1911 | fi | |
d6a4bcb5 | 1912 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
61ef2474 | 1913 | as_fn_set_status $ac_retval |
b0cacab0 | 1914 | |
57aa50d4 | 1915 | } # ac_fn_c_try_cpp |
b0cacab0 | 1916 | |
57aa50d4 TT |
1917 | # ac_fn_c_try_run LINENO |
1918 | # ---------------------- | |
54445dc2 TT |
1919 | # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that |
1920 | # executables *can* be run. | |
57aa50d4 TT |
1921 | ac_fn_c_try_run () |
1922 | { | |
1923 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1924 | if { { ac_try="$ac_link" | |
1925 | case "(($ac_try" in | |
1926 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1927 | *) ac_try_echo=$ac_try;; | |
1928 | esac | |
1929 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
54445dc2 | 1930 | printf "%s\n" "$ac_try_echo"; } >&5 |
57aa50d4 TT |
1931 | (eval "$ac_link") 2>&5 |
1932 | ac_status=$? | |
54445dc2 | 1933 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
57aa50d4 TT |
1934 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
1935 | { { case "(($ac_try" in | |
1936 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1937 | *) ac_try_echo=$ac_try;; | |
1938 | esac | |
1939 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
54445dc2 | 1940 | printf "%s\n" "$ac_try_echo"; } >&5 |
57aa50d4 TT |
1941 | (eval "$ac_try") 2>&5 |
1942 | ac_status=$? | |
54445dc2 TT |
1943 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1944 | test $ac_status = 0; }; } | |
1945 | then : | |
57aa50d4 | 1946 | ac_retval=0 |
54445dc2 TT |
1947 | else $as_nop |
1948 | printf "%s\n" "$as_me: program exited with status $ac_status" >&5 | |
1949 | printf "%s\n" "$as_me: failed program was:" >&5 | |
57aa50d4 | 1950 | sed 's/^/| /' conftest.$ac_ext >&5 |
b0cacab0 | 1951 | |
57aa50d4 TT |
1952 | ac_retval=$ac_status |
1953 | fi | |
1954 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
d6a4bcb5 | 1955 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
61ef2474 | 1956 | as_fn_set_status $ac_retval |
b0cacab0 | 1957 | |
57aa50d4 | 1958 | } # ac_fn_c_try_run |
b0cacab0 | 1959 | |
57aa50d4 TT |
1960 | # ac_fn_c_check_func LINENO FUNC VAR |
1961 | # ---------------------------------- | |
1962 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1963 | ac_fn_c_check_func () | |
1964 | { | |
1965 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
54445dc2 TT |
1966 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1967 | printf %s "checking for $2... " >&6; } | |
1968 | if eval test \${$3+y} | |
1969 | then : | |
1970 | printf %s "(cached) " >&6 | |
1971 | else $as_nop | |
57aa50d4 TT |
1972 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1973 | /* end confdefs.h. */ | |
1974 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1975 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1976 | #define $2 innocuous_$2 | |
b0cacab0 | 1977 | |
57aa50d4 | 1978 | /* System header to define __stub macros and hopefully few prototypes, |
54445dc2 | 1979 | which can conflict with char $2 (); below. */ |
a04eba3f | 1980 | |
54445dc2 | 1981 | #include <limits.h> |
57aa50d4 | 1982 | #undef $2 |
07a0db15 | 1983 | |
57aa50d4 TT |
1984 | /* Override any GCC internal prototype to avoid an error. |
1985 | Use char because int might match the return type of a GCC | |
1986 | builtin and then its argument prototype would still apply. */ | |
1987 | #ifdef __cplusplus | |
1988 | extern "C" | |
1989 | #endif | |
1990 | char $2 (); | |
1991 | /* The GNU C library defines this for functions which it implements | |
1992 | to always fail with ENOSYS. Some functions are actually named | |
1993 | something starting with __ and the normal name is an alias. */ | |
1994 | #if defined __stub_$2 || defined __stub___$2 | |
1995 | choke me | |
1996 | #endif | |
74becf3c | 1997 | |
57aa50d4 | 1998 | int |
54445dc2 | 1999 | main (void) |
57aa50d4 TT |
2000 | { |
2001 | return $2 (); | |
2002 | ; | |
2003 | return 0; | |
2004 | } | |
2005 | _ACEOF | |
54445dc2 TT |
2006 | if ac_fn_c_try_link "$LINENO" |
2007 | then : | |
57aa50d4 | 2008 | eval "$3=yes" |
54445dc2 | 2009 | else $as_nop |
57aa50d4 TT |
2010 | eval "$3=no" |
2011 | fi | |
54445dc2 | 2012 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
57aa50d4 TT |
2013 | conftest$ac_exeext conftest.$ac_ext |
2014 | fi | |
2015 | eval ac_res=\$$3 | |
54445dc2 TT |
2016 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
2017 | printf "%s\n" "$ac_res" >&6; } | |
d6a4bcb5 | 2018 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
93636bde | 2019 | |
57aa50d4 | 2020 | } # ac_fn_c_check_func |
93636bde | 2021 | |
e598c29b TT |
2022 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
2023 | # ---------------------------------------------------- | |
2024 | # Tries to find if the field MEMBER exists in type AGGR, after including | |
2025 | # INCLUDES, setting cache variable VAR accordingly. | |
2026 | ac_fn_c_check_member () | |
2027 | { | |
2028 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
54445dc2 TT |
2029 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 |
2030 | printf %s "checking for $2.$3... " >&6; } | |
2031 | if eval test \${$4+y} | |
2032 | then : | |
2033 | printf %s "(cached) " >&6 | |
2034 | else $as_nop | |
e598c29b TT |
2035 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2036 | /* end confdefs.h. */ | |
2037 | $5 | |
2038 | int | |
54445dc2 | 2039 | main (void) |
e598c29b TT |
2040 | { |
2041 | static $2 ac_aggr; | |
2042 | if (ac_aggr.$3) | |
2043 | return 0; | |
2044 | ; | |
2045 | return 0; | |
2046 | } | |
2047 | _ACEOF | |
54445dc2 TT |
2048 | if ac_fn_c_try_compile "$LINENO" |
2049 | then : | |
e598c29b | 2050 | eval "$4=yes" |
54445dc2 | 2051 | else $as_nop |
e598c29b TT |
2052 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2053 | /* end confdefs.h. */ | |
2054 | $5 | |
2055 | int | |
54445dc2 | 2056 | main (void) |
e598c29b TT |
2057 | { |
2058 | static $2 ac_aggr; | |
2059 | if (sizeof ac_aggr.$3) | |
2060 | return 0; | |
2061 | ; | |
2062 | return 0; | |
2063 | } | |
2064 | _ACEOF | |
54445dc2 TT |
2065 | if ac_fn_c_try_compile "$LINENO" |
2066 | then : | |
e598c29b | 2067 | eval "$4=yes" |
54445dc2 | 2068 | else $as_nop |
e598c29b TT |
2069 | eval "$4=no" |
2070 | fi | |
54445dc2 | 2071 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
e598c29b | 2072 | fi |
54445dc2 | 2073 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
e598c29b TT |
2074 | fi |
2075 | eval ac_res=\$$4 | |
54445dc2 TT |
2076 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
2077 | printf "%s\n" "$ac_res" >&6; } | |
e598c29b TT |
2078 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
2079 | ||
2080 | } # ac_fn_c_check_member | |
2081 | ||
2082 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES | |
2083 | # ------------------------------------------- | |
2084 | # Tests whether TYPE exists after having included INCLUDES, setting cache | |
2085 | # variable VAR accordingly. | |
2086 | ac_fn_c_check_type () | |
2087 | { | |
2088 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
54445dc2 TT |
2089 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
2090 | printf %s "checking for $2... " >&6; } | |
2091 | if eval test \${$3+y} | |
2092 | then : | |
2093 | printf %s "(cached) " >&6 | |
2094 | else $as_nop | |
e598c29b TT |
2095 | eval "$3=no" |
2096 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2097 | /* end confdefs.h. */ | |
2098 | $4 | |
2099 | int | |
54445dc2 | 2100 | main (void) |
e598c29b TT |
2101 | { |
2102 | if (sizeof ($2)) | |
2103 | return 0; | |
2104 | ; | |
2105 | return 0; | |
2106 | } | |
2107 | _ACEOF | |
54445dc2 TT |
2108 | if ac_fn_c_try_compile "$LINENO" |
2109 | then : | |
e598c29b TT |
2110 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2111 | /* end confdefs.h. */ | |
2112 | $4 | |
2113 | int | |
54445dc2 | 2114 | main (void) |
e598c29b TT |
2115 | { |
2116 | if (sizeof (($2))) | |
2117 | return 0; | |
2118 | ; | |
2119 | return 0; | |
2120 | } | |
2121 | _ACEOF | |
54445dc2 TT |
2122 | if ac_fn_c_try_compile "$LINENO" |
2123 | then : | |
e598c29b | 2124 | |
54445dc2 | 2125 | else $as_nop |
e598c29b TT |
2126 | eval "$3=yes" |
2127 | fi | |
54445dc2 | 2128 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
e598c29b | 2129 | fi |
54445dc2 | 2130 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
e598c29b TT |
2131 | fi |
2132 | eval ac_res=\$$3 | |
54445dc2 TT |
2133 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
2134 | printf "%s\n" "$ac_res" >&6; } | |
e598c29b TT |
2135 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
2136 | ||
2137 | } # ac_fn_c_check_type | |
2138 | ||
54445dc2 TT |
2139 | # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR |
2140 | # ------------------------------------------------------------------ | |
93613951 | 2141 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR |
54445dc2 TT |
2142 | # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. |
2143 | ac_fn_check_decl () | |
d1154eb4 TT |
2144 | { |
2145 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
93613951 | 2146 | as_decl_name=`echo $2|sed 's/ *(.*//'` |
54445dc2 TT |
2147 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 |
2148 | printf %s "checking whether $as_decl_name is declared... " >&6; } | |
2149 | if eval test \${$3+y} | |
2150 | then : | |
2151 | printf %s "(cached) " >&6 | |
2152 | else $as_nop | |
93613951 | 2153 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` |
54445dc2 TT |
2154 | eval ac_save_FLAGS=\$$6 |
2155 | as_fn_append $6 " $5" | |
93613951 | 2156 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d1154eb4 TT |
2157 | /* end confdefs.h. */ |
2158 | $4 | |
93613951 | 2159 | int |
54445dc2 | 2160 | main (void) |
93613951 TT |
2161 | { |
2162 | #ifndef $as_decl_name | |
2163 | #ifdef __cplusplus | |
2164 | (void) $as_decl_use; | |
2165 | #else | |
2166 | (void) $as_decl_name; | |
2167 | #endif | |
2168 | #endif | |
2169 | ||
2170 | ; | |
2171 | return 0; | |
2172 | } | |
d1154eb4 | 2173 | _ACEOF |
54445dc2 TT |
2174 | if ac_fn_c_try_compile "$LINENO" |
2175 | then : | |
93613951 | 2176 | eval "$3=yes" |
54445dc2 | 2177 | else $as_nop |
93613951 | 2178 | eval "$3=no" |
d1154eb4 | 2179 | fi |
54445dc2 TT |
2180 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
2181 | eval $6=\$ac_save_FLAGS | |
2182 | ||
d1154eb4 TT |
2183 | fi |
2184 | eval ac_res=\$$3 | |
54445dc2 TT |
2185 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
2186 | printf "%s\n" "$ac_res" >&6; } | |
d6a4bcb5 | 2187 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
d1154eb4 | 2188 | |
54445dc2 | 2189 | } # ac_fn_check_decl |
d1154eb4 | 2190 | |
57aa50d4 TT |
2191 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
2192 | # -------------------------------------------- | |
2193 | # Tries to find the compile-time value of EXPR in a program that includes | |
2194 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | |
2195 | # computed | |
2196 | ac_fn_c_compute_int () | |
2197 | { | |
2198 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2199 | if test "$cross_compiling" = yes; then | |
2200 | # Depending upon the size, compute the lo and hi bounds. | |
2201 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2202 | /* end confdefs.h. */ | |
2203 | $4 | |
2204 | int | |
54445dc2 | 2205 | main (void) |
57aa50d4 TT |
2206 | { |
2207 | static int test_array [1 - 2 * !(($2) >= 0)]; | |
d6a4bcb5 TB |
2208 | test_array [0] = 0; |
2209 | return test_array [0]; | |
93636bde | 2210 | |
57aa50d4 TT |
2211 | ; |
2212 | return 0; | |
2213 | } | |
2214 | _ACEOF | |
54445dc2 TT |
2215 | if ac_fn_c_try_compile "$LINENO" |
2216 | then : | |
57aa50d4 TT |
2217 | ac_lo=0 ac_mid=0 |
2218 | while :; do | |
2219 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2220 | /* end confdefs.h. */ | |
2221 | $4 | |
2222 | int | |
54445dc2 | 2223 | main (void) |
57aa50d4 TT |
2224 | { |
2225 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
d6a4bcb5 TB |
2226 | test_array [0] = 0; |
2227 | return test_array [0]; | |
93636bde | 2228 | |
57aa50d4 TT |
2229 | ; |
2230 | return 0; | |
2231 | } | |
2232 | _ACEOF | |
54445dc2 TT |
2233 | if ac_fn_c_try_compile "$LINENO" |
2234 | then : | |
57aa50d4 | 2235 | ac_hi=$ac_mid; break |
54445dc2 | 2236 | else $as_nop |
57aa50d4 TT |
2237 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val |
2238 | if test $ac_lo -le $ac_mid; then | |
2239 | ac_lo= ac_hi= | |
2240 | break | |
2241 | fi | |
2242 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | |
b0cacab0 | 2243 | fi |
54445dc2 | 2244 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
57aa50d4 | 2245 | done |
54445dc2 | 2246 | else $as_nop |
57aa50d4 TT |
2247 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2248 | /* end confdefs.h. */ | |
2249 | $4 | |
2250 | int | |
54445dc2 | 2251 | main (void) |
57aa50d4 TT |
2252 | { |
2253 | static int test_array [1 - 2 * !(($2) < 0)]; | |
d6a4bcb5 TB |
2254 | test_array [0] = 0; |
2255 | return test_array [0]; | |
e1052144 | 2256 | |
57aa50d4 TT |
2257 | ; |
2258 | return 0; | |
2259 | } | |
2260 | _ACEOF | |
54445dc2 TT |
2261 | if ac_fn_c_try_compile "$LINENO" |
2262 | then : | |
57aa50d4 TT |
2263 | ac_hi=-1 ac_mid=-1 |
2264 | while :; do | |
2265 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2266 | /* end confdefs.h. */ | |
2267 | $4 | |
2268 | int | |
54445dc2 | 2269 | main (void) |
57aa50d4 TT |
2270 | { |
2271 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | |
d6a4bcb5 TB |
2272 | test_array [0] = 0; |
2273 | return test_array [0]; | |
93636bde | 2274 | |
57aa50d4 TT |
2275 | ; |
2276 | return 0; | |
2277 | } | |
2278 | _ACEOF | |
54445dc2 TT |
2279 | if ac_fn_c_try_compile "$LINENO" |
2280 | then : | |
57aa50d4 | 2281 | ac_lo=$ac_mid; break |
54445dc2 | 2282 | else $as_nop |
57aa50d4 TT |
2283 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val |
2284 | if test $ac_mid -le $ac_hi; then | |
2285 | ac_lo= ac_hi= | |
2286 | break | |
2287 | fi | |
2288 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | |
93636bde | 2289 | fi |
54445dc2 | 2290 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
57aa50d4 | 2291 | done |
54445dc2 | 2292 | else $as_nop |
57aa50d4 TT |
2293 | ac_lo= ac_hi= |
2294 | fi | |
54445dc2 | 2295 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
57aa50d4 | 2296 | fi |
54445dc2 | 2297 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
57aa50d4 TT |
2298 | # Binary search between lo and hi bounds. |
2299 | while test "x$ac_lo" != "x$ac_hi"; do | |
2300 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | |
2301 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2302 | /* end confdefs.h. */ | |
2303 | $4 | |
2304 | int | |
54445dc2 | 2305 | main (void) |
57aa50d4 TT |
2306 | { |
2307 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
d6a4bcb5 TB |
2308 | test_array [0] = 0; |
2309 | return test_array [0]; | |
93636bde | 2310 | |
57aa50d4 TT |
2311 | ; |
2312 | return 0; | |
2313 | } | |
2314 | _ACEOF | |
54445dc2 TT |
2315 | if ac_fn_c_try_compile "$LINENO" |
2316 | then : | |
57aa50d4 | 2317 | ac_hi=$ac_mid |
54445dc2 | 2318 | else $as_nop |
57aa50d4 TT |
2319 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val |
2320 | fi | |
54445dc2 | 2321 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
57aa50d4 TT |
2322 | done |
2323 | case $ac_lo in #(( | |
2324 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | |
2325 | '') ac_retval=1 ;; | |
927566a3 | 2326 | esac |
57aa50d4 TT |
2327 | else |
2328 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2329 | /* end confdefs.h. */ | |
2330 | $4 | |
54445dc2 TT |
2331 | static long int longval (void) { return $2; } |
2332 | static unsigned long int ulongval (void) { return $2; } | |
57aa50d4 TT |
2333 | #include <stdio.h> |
2334 | #include <stdlib.h> | |
2335 | int | |
54445dc2 | 2336 | main (void) |
57aa50d4 | 2337 | { |
927566a3 | 2338 | |
57aa50d4 TT |
2339 | FILE *f = fopen ("conftest.val", "w"); |
2340 | if (! f) | |
2341 | return 1; | |
2342 | if (($2) < 0) | |
2343 | { | |
2344 | long int i = longval (); | |
2345 | if (i != ($2)) | |
2346 | return 1; | |
2347 | fprintf (f, "%ld", i); | |
2348 | } | |
2349 | else | |
2350 | { | |
2351 | unsigned long int i = ulongval (); | |
2352 | if (i != ($2)) | |
2353 | return 1; | |
2354 | fprintf (f, "%lu", i); | |
2355 | } | |
2356 | /* Do not output a trailing newline, as this causes \r\n confusion | |
2357 | on some platforms. */ | |
2358 | return ferror (f) || fclose (f) != 0; | |
93636bde | 2359 | |
57aa50d4 TT |
2360 | ; |
2361 | return 0; | |
2362 | } | |
2363 | _ACEOF | |
54445dc2 TT |
2364 | if ac_fn_c_try_run "$LINENO" |
2365 | then : | |
57aa50d4 | 2366 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 |
54445dc2 | 2367 | else $as_nop |
57aa50d4 TT |
2368 | ac_retval=1 |
2369 | fi | |
2370 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
2371 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
2372 | rm -f conftest.val | |
93636bde | 2373 | |
57aa50d4 | 2374 | fi |
d6a4bcb5 | 2375 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
61ef2474 | 2376 | as_fn_set_status $ac_retval |
927566a3 | 2377 | |
57aa50d4 | 2378 | } # ac_fn_c_compute_int |
2869485b TT |
2379 | |
2380 | # ac_fn_cxx_try_compile LINENO | |
2381 | # ---------------------------- | |
2382 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
2383 | ac_fn_cxx_try_compile () | |
2384 | { | |
2385 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2386 | rm -f conftest.$ac_objext conftest.beam | |
2387 | if { { ac_try="$ac_compile" | |
2388 | case "(($ac_try" in | |
2389 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2390 | *) ac_try_echo=$ac_try;; | |
2391 | esac | |
2392 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2393 | printf "%s\n" "$ac_try_echo"; } >&5 | |
2394 | (eval "$ac_compile") 2>conftest.err | |
2395 | ac_status=$? | |
2396 | if test -s conftest.err; then | |
2397 | grep -v '^ *+' conftest.err >conftest.er1 | |
2398 | cat conftest.er1 >&5 | |
2399 | mv -f conftest.er1 conftest.err | |
2400 | fi | |
2401 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2402 | test $ac_status = 0; } && { | |
2403 | test -z "$ac_cxx_werror_flag" || | |
2404 | test ! -s conftest.err | |
2405 | } && test -s conftest.$ac_objext | |
2406 | then : | |
2407 | ac_retval=0 | |
2408 | else $as_nop | |
2409 | printf "%s\n" "$as_me: failed program was:" >&5 | |
2410 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2411 | ||
2412 | ac_retval=1 | |
2413 | fi | |
2414 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2415 | as_fn_set_status $ac_retval | |
2416 | ||
2417 | } # ac_fn_cxx_try_compile | |
54445dc2 TT |
2418 | ac_configure_args_raw= |
2419 | for ac_arg | |
2420 | do | |
2421 | case $ac_arg in | |
2422 | *\'*) | |
2423 | ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2424 | esac | |
2425 | as_fn_append ac_configure_args_raw " '$ac_arg'" | |
2426 | done | |
2427 | ||
2428 | case $ac_configure_args_raw in | |
2429 | *$as_nl*) | |
2430 | ac_safe_unquote= ;; | |
2431 | *) | |
2432 | ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. | |
2433 | ac_unsafe_a="$ac_unsafe_z#~" | |
2434 | ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" | |
2435 | ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; | |
2436 | esac | |
2437 | ||
57aa50d4 TT |
2438 | cat >config.log <<_ACEOF |
2439 | This file contains any messages produced by compilers while | |
2440 | running configure, to aid debugging if configure makes a mistake. | |
93636bde | 2441 | |
57aa50d4 | 2442 | It was created by $as_me, which was |
54445dc2 | 2443 | generated by GNU Autoconf 2.71. Invocation command line was |
07a0db15 | 2444 | |
54445dc2 | 2445 | $ $0$ac_configure_args_raw |
e1052144 | 2446 | |
57aa50d4 TT |
2447 | _ACEOF |
2448 | exec 5>>config.log | |
2449 | { | |
2450 | cat <<_ASUNAME | |
2451 | ## --------- ## | |
2452 | ## Platform. ## | |
2453 | ## --------- ## | |
0b5b9f90 | 2454 | |
57aa50d4 TT |
2455 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
2456 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2457 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2458 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2459 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
0b5b9f90 | 2460 | |
57aa50d4 TT |
2461 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
2462 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
0b5b9f90 | 2463 | |
57aa50d4 TT |
2464 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
2465 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2466 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2467 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2468 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2469 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2470 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
0b5b9f90 | 2471 | |
57aa50d4 | 2472 | _ASUNAME |
b0cacab0 | 2473 | |
b0cacab0 TT |
2474 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2475 | for as_dir in $PATH | |
2476 | do | |
2477 | IFS=$as_save_IFS | |
54445dc2 TT |
2478 | case $as_dir in #((( |
2479 | '') as_dir=./ ;; | |
2480 | */) ;; | |
2481 | *) as_dir=$as_dir/ ;; | |
2482 | esac | |
2483 | printf "%s\n" "PATH: $as_dir" | |
57aa50d4 | 2484 | done |
e1052144 | 2485 | IFS=$as_save_IFS |
b0cacab0 | 2486 | |
57aa50d4 | 2487 | } >&5 |
74becf3c | 2488 | |
57aa50d4 | 2489 | cat >&5 <<_ACEOF |
e1052144 | 2490 | |
b0cacab0 | 2491 | |
57aa50d4 TT |
2492 | ## ----------- ## |
2493 | ## Core tests. ## | |
2494 | ## ----------- ## | |
b0cacab0 | 2495 | |
57aa50d4 | 2496 | _ACEOF |
b0cacab0 | 2497 | |
57aa50d4 TT |
2498 | |
2499 | # Keep a trace of the command line. | |
2500 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2501 | # Strip out --silent because we don't want to record it for future runs. | |
2502 | # Also quote any args containing shell meta-characters. | |
2503 | # Make two passes to allow for proper duplicate-argument suppression. | |
2504 | ac_configure_args= | |
2505 | ac_configure_args0= | |
2506 | ac_configure_args1= | |
2507 | ac_must_keep_next=false | |
2508 | for ac_pass in 1 2 | |
b0cacab0 | 2509 | do |
57aa50d4 TT |
2510 | for ac_arg |
2511 | do | |
2512 | case $ac_arg in | |
2513 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2514 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2515 | | -silent | --silent | --silen | --sile | --sil) | |
2516 | continue ;; | |
2517 | *\'*) | |
54445dc2 | 2518 | ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
57aa50d4 TT |
2519 | esac |
2520 | case $ac_pass in | |
2521 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2522 | 2) | |
2523 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
2524 | if test $ac_must_keep_next = true; then | |
2525 | ac_must_keep_next=false # Got value, back to normal. | |
2526 | else | |
2527 | case $ac_arg in | |
2528 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2529 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2530 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2531 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2532 | case "$ac_configure_args0 " in | |
2533 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2534 | esac | |
2535 | ;; | |
2536 | -* ) ac_must_keep_next=true ;; | |
2537 | esac | |
2538 | fi | |
2539 | as_fn_append ac_configure_args " '$ac_arg'" | |
2540 | ;; | |
2541 | esac | |
2542 | done | |
b0cacab0 | 2543 | done |
57aa50d4 TT |
2544 | { ac_configure_args0=; unset ac_configure_args0;} |
2545 | { ac_configure_args1=; unset ac_configure_args1;} | |
2546 | ||
2547 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2548 | # config.log. We remove comments because anyway the quotes in there | |
2549 | # would cause problems or look ugly. | |
2550 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2551 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2552 | trap 'exit_status=$? | |
54445dc2 TT |
2553 | # Sanitize IFS. |
2554 | IFS=" "" $as_nl" | |
57aa50d4 TT |
2555 | # Save into config.log some information that might help in debugging. |
2556 | { | |
2557 | echo | |
2558 | ||
54445dc2 | 2559 | printf "%s\n" "## ---------------- ## |
57aa50d4 | 2560 | ## Cache variables. ## |
d6a4bcb5 | 2561 | ## ---------------- ##" |
57aa50d4 TT |
2562 | echo |
2563 | # The following way of writing the cache mishandles newlines in values, | |
2564 | ( | |
2565 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2566 | eval ac_val=\$$ac_var | |
2567 | case $ac_val in #( | |
2568 | *${as_nl}*) | |
2569 | case $ac_var in #( | |
54445dc2 TT |
2570 | *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
2571 | printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
57aa50d4 TT |
2572 | esac |
2573 | case $ac_var in #( | |
2574 | _ | IFS | as_nl) ;; #( | |
2575 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2576 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2577 | esac ;; | |
2578 | esac | |
2579 | done | |
2580 | (set) 2>&1 | | |
2581 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2582 | *${as_nl}ac_space=\ *) | |
2583 | sed -n \ | |
2584 | "s/'\''/'\''\\\\'\'''\''/g; | |
2585 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2586 | ;; #( | |
2587 | *) | |
2588 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2589 | ;; | |
2590 | esac | | |
2591 | sort | |
2592 | ) | |
2593 | echo | |
2594 | ||
54445dc2 | 2595 | printf "%s\n" "## ----------------- ## |
57aa50d4 | 2596 | ## Output variables. ## |
d6a4bcb5 | 2597 | ## ----------------- ##" |
57aa50d4 TT |
2598 | echo |
2599 | for ac_var in $ac_subst_vars | |
2600 | do | |
2601 | eval ac_val=\$$ac_var | |
2602 | case $ac_val in | |
54445dc2 | 2603 | *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
57aa50d4 | 2604 | esac |
54445dc2 | 2605 | printf "%s\n" "$ac_var='\''$ac_val'\''" |
57aa50d4 TT |
2606 | done | sort |
2607 | echo | |
2608 | ||
2609 | if test -n "$ac_subst_files"; then | |
54445dc2 | 2610 | printf "%s\n" "## ------------------- ## |
57aa50d4 | 2611 | ## File substitutions. ## |
d6a4bcb5 | 2612 | ## ------------------- ##" |
57aa50d4 TT |
2613 | echo |
2614 | for ac_var in $ac_subst_files | |
2615 | do | |
2616 | eval ac_val=\$$ac_var | |
2617 | case $ac_val in | |
54445dc2 | 2618 | *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
57aa50d4 | 2619 | esac |
54445dc2 | 2620 | printf "%s\n" "$ac_var='\''$ac_val'\''" |
57aa50d4 TT |
2621 | done | sort |
2622 | echo | |
2623 | fi | |
2624 | ||
2625 | if test -s confdefs.h; then | |
54445dc2 | 2626 | printf "%s\n" "## ----------- ## |
57aa50d4 | 2627 | ## confdefs.h. ## |
d6a4bcb5 | 2628 | ## ----------- ##" |
57aa50d4 TT |
2629 | echo |
2630 | cat confdefs.h | |
2631 | echo | |
2632 | fi | |
2633 | test "$ac_signal" != 0 && | |
54445dc2 TT |
2634 | printf "%s\n" "$as_me: caught signal $ac_signal" |
2635 | printf "%s\n" "$as_me: exit $exit_status" | |
57aa50d4 TT |
2636 | } >&5 |
2637 | rm -f core *.core core.conftest.* && | |
2638 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2639 | exit $exit_status | |
2640 | ' 0 | |
2641 | for ac_signal in 1 2 13 15; do | |
2642 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
b0cacab0 | 2643 | done |
57aa50d4 | 2644 | ac_signal=0 |
b0cacab0 | 2645 | |
57aa50d4 TT |
2646 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
2647 | rm -f -r conftest* confdefs.h | |
b0cacab0 | 2648 | |
54445dc2 | 2649 | printf "%s\n" "/* confdefs.h */" > confdefs.h |
73ae2d4a | 2650 | |
57aa50d4 TT |
2651 | # Predefined preprocessor variables. |
2652 | ||
54445dc2 | 2653 | printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h |
57aa50d4 | 2654 | |
54445dc2 | 2655 | printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h |
57aa50d4 | 2656 | |
54445dc2 | 2657 | printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h |
57aa50d4 | 2658 | |
54445dc2 | 2659 | printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h |
57aa50d4 | 2660 | |
54445dc2 | 2661 | printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h |
57aa50d4 | 2662 | |
54445dc2 | 2663 | printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h |
57aa50d4 TT |
2664 | |
2665 | ||
2666 | # Let the site file select an alternate cache file if it wants to. | |
2667 | # Prefer an explicitly selected file to automatically selected ones. | |
57aa50d4 | 2668 | if test -n "$CONFIG_SITE"; then |
54445dc2 | 2669 | ac_site_files="$CONFIG_SITE" |
57aa50d4 | 2670 | elif test "x$prefix" != xNONE; then |
54445dc2 | 2671 | ac_site_files="$prefix/share/config.site $prefix/etc/config.site" |
73ae2d4a | 2672 | else |
54445dc2 | 2673 | ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
57aa50d4 | 2674 | fi |
54445dc2 TT |
2675 | |
2676 | for ac_site_file in $ac_site_files | |
b0cacab0 | 2677 | do |
54445dc2 TT |
2678 | case $ac_site_file in #( |
2679 | */*) : | |
2680 | ;; #( | |
2681 | *) : | |
2682 | ac_site_file=./$ac_site_file ;; | |
2683 | esac | |
2684 | if test -f "$ac_site_file" && test -r "$ac_site_file"; then | |
2685 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | |
2686 | printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} | |
57aa50d4 | 2687 | sed 's/^/| /' "$ac_site_file" >&5 |
d6a4bcb5 | 2688 | . "$ac_site_file" \ |
54445dc2 TT |
2689 | || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2690 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} | |
d6a4bcb5 TB |
2691 | as_fn_error $? "failed to load site script $ac_site_file |
2692 | See \`config.log' for more details" "$LINENO" 5; } | |
b0cacab0 TT |
2693 | fi |
2694 | done | |
b0cacab0 | 2695 | |
57aa50d4 | 2696 | if test -r "$cache_file"; then |
61ef2474 TT |
2697 | # Some versions of bash will fail to source /dev/null (special files |
2698 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2699 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
54445dc2 TT |
2700 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2701 | printf "%s\n" "$as_me: loading cache $cache_file" >&6;} | |
57aa50d4 TT |
2702 | case $cache_file in |
2703 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2704 | *) . "./$cache_file";; | |
2705 | esac | |
73ae2d4a | 2706 | fi |
57aa50d4 | 2707 | else |
54445dc2 TT |
2708 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2709 | printf "%s\n" "$as_me: creating cache $cache_file" >&6;} | |
57aa50d4 | 2710 | >$cache_file |
73ae2d4a | 2711 | fi |
57aa50d4 | 2712 | |
54445dc2 TT |
2713 | as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" |
2714 | # Test code for whether the C compiler supports C89 (global declarations) | |
2715 | ac_c_conftest_c89_globals=' | |
2716 | /* Does the compiler advertise C89 conformance? | |
2717 | Do not test the value of __STDC__, because some compilers set it to 0 | |
2718 | while being otherwise adequately conformant. */ | |
2719 | #if !defined __STDC__ | |
2720 | # error "Compiler does not advertise C89 conformance" | |
2721 | #endif | |
57aa50d4 | 2722 | |
54445dc2 TT |
2723 | #include <stddef.h> |
2724 | #include <stdarg.h> | |
2725 | struct stat; | |
2726 | /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ | |
2727 | struct buf { int x; }; | |
2728 | struct buf * (*rcsopen) (struct buf *, struct stat *, int); | |
2729 | static char *e (p, i) | |
2730 | char **p; | |
2731 | int i; | |
2732 | { | |
2733 | return p[i]; | |
2734 | } | |
2735 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2736 | { | |
2737 | char *s; | |
2738 | va_list v; | |
2739 | va_start (v,p); | |
2740 | s = g (p, va_arg (v,int)); | |
2741 | va_end (v); | |
2742 | return s; | |
2743 | } | |
57aa50d4 | 2744 | |
54445dc2 TT |
2745 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
2746 | function prototypes and stuff, but not \xHH hex character constants. | |
2747 | These do not provoke an error unfortunately, instead are silently treated | |
2748 | as an "x". The following induces an error, until -std is added to get | |
2749 | proper ANSI mode. Curiously \x00 != x always comes out true, for an | |
2750 | array size at least. It is necessary to write \x00 == 0 to get something | |
2751 | that is true only with -std. */ | |
2752 | int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; | |
57aa50d4 | 2753 | |
54445dc2 TT |
2754 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
2755 | inside strings and character constants. */ | |
2756 | #define FOO(x) '\''x'\'' | |
2757 | int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; | |
57aa50d4 | 2758 | |
54445dc2 TT |
2759 | int test (int i, double x); |
2760 | struct s1 {int (*f) (int a);}; | |
2761 | struct s2 {int (*f) (double a);}; | |
2762 | int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), | |
2763 | int, int);' | |
57aa50d4 | 2764 | |
54445dc2 TT |
2765 | # Test code for whether the C compiler supports C89 (body of main). |
2766 | ac_c_conftest_c89_main=' | |
2767 | ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); | |
2768 | ' | |
57aa50d4 | 2769 | |
54445dc2 TT |
2770 | # Test code for whether the C compiler supports C99 (global declarations) |
2771 | ac_c_conftest_c99_globals=' | |
2772 | // Does the compiler advertise C99 conformance? | |
2773 | #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L | |
2774 | # error "Compiler does not advertise C99 conformance" | |
2775 | #endif | |
57aa50d4 | 2776 | |
54445dc2 TT |
2777 | #include <stdbool.h> |
2778 | extern int puts (const char *); | |
2779 | extern int printf (const char *, ...); | |
2780 | extern int dprintf (int, const char *, ...); | |
2781 | extern void *malloc (size_t); | |
2782 | ||
2783 | // Check varargs macros. These examples are taken from C99 6.10.3.5. | |
2784 | // dprintf is used instead of fprintf to avoid needing to declare | |
2785 | // FILE and stderr. | |
2786 | #define debug(...) dprintf (2, __VA_ARGS__) | |
2787 | #define showlist(...) puts (#__VA_ARGS__) | |
2788 | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) | |
2789 | static void | |
2790 | test_varargs_macros (void) | |
2791 | { | |
2792 | int x = 1234; | |
2793 | int y = 5678; | |
2794 | debug ("Flag"); | |
2795 | debug ("X = %d\n", x); | |
2796 | showlist (The first, second, and third items.); | |
2797 | report (x>y, "x is %d but y is %d", x, y); | |
2798 | } | |
d1154eb4 | 2799 | |
54445dc2 TT |
2800 | // Check long long types. |
2801 | #define BIG64 18446744073709551615ull | |
2802 | #define BIG32 4294967295ul | |
2803 | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) | |
2804 | #if !BIG_OK | |
2805 | #error "your preprocessor is broken" | |
2806 | #endif | |
2807 | #if BIG_OK | |
2808 | #else | |
2809 | #error "your preprocessor is broken" | |
2810 | #endif | |
2811 | static long long int bignum = -9223372036854775807LL; | |
2812 | static unsigned long long int ubignum = BIG64; | |
d1154eb4 | 2813 | |
54445dc2 TT |
2814 | struct incomplete_array |
2815 | { | |
2816 | int datasize; | |
2817 | double data[]; | |
2818 | }; | |
57aa50d4 | 2819 | |
54445dc2 TT |
2820 | struct named_init { |
2821 | int number; | |
2822 | const wchar_t *name; | |
2823 | double average; | |
2824 | }; | |
57aa50d4 | 2825 | |
54445dc2 | 2826 | typedef const char *ccp; |
57aa50d4 | 2827 | |
54445dc2 TT |
2828 | static inline int |
2829 | test_restrict (ccp restrict text) | |
2830 | { | |
2831 | // See if C++-style comments work. | |
2832 | // Iterate through items via the restricted pointer. | |
2833 | // Also check for declarations in for loops. | |
2834 | for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) | |
2835 | continue; | |
2836 | return 0; | |
2837 | } | |
57aa50d4 | 2838 | |
54445dc2 TT |
2839 | // Check varargs and va_copy. |
2840 | static bool | |
2841 | test_varargs (const char *format, ...) | |
2842 | { | |
2843 | va_list args; | |
2844 | va_start (args, format); | |
2845 | va_list args_copy; | |
2846 | va_copy (args_copy, args); | |
57aa50d4 | 2847 | |
54445dc2 TT |
2848 | const char *str = ""; |
2849 | int number = 0; | |
2850 | float fnumber = 0; | |
57aa50d4 | 2851 | |
54445dc2 TT |
2852 | while (*format) |
2853 | { | |
2854 | switch (*format++) | |
2855 | { | |
2856 | case '\''s'\'': // string | |
2857 | str = va_arg (args_copy, const char *); | |
2858 | break; | |
2859 | case '\''d'\'': // int | |
2860 | number = va_arg (args_copy, int); | |
2861 | break; | |
2862 | case '\''f'\'': // float | |
2863 | fnumber = va_arg (args_copy, double); | |
2864 | break; | |
2865 | default: | |
2866 | break; | |
2867 | } | |
2868 | } | |
2869 | va_end (args_copy); | |
2870 | va_end (args); | |
57aa50d4 | 2871 | |
54445dc2 TT |
2872 | return *str && number && fnumber; |
2873 | } | |
2874 | ' | |
57aa50d4 | 2875 | |
54445dc2 TT |
2876 | # Test code for whether the C compiler supports C99 (body of main). |
2877 | ac_c_conftest_c99_main=' | |
2878 | // Check bool. | |
2879 | _Bool success = false; | |
2880 | success |= (argc != 0); | |
2881 | ||
2882 | // Check restrict. | |
2883 | if (test_restrict ("String literal") == 0) | |
2884 | success = true; | |
2885 | char *restrict newvar = "Another string"; | |
2886 | ||
2887 | // Check varargs. | |
2888 | success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); | |
2889 | test_varargs_macros (); | |
2890 | ||
2891 | // Check flexible array members. | |
2892 | struct incomplete_array *ia = | |
2893 | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); | |
2894 | ia->datasize = 10; | |
2895 | for (int i = 0; i < ia->datasize; ++i) | |
2896 | ia->data[i] = i * 1.234; | |
2897 | ||
2898 | // Check named initializers. | |
2899 | struct named_init ni = { | |
2900 | .number = 34, | |
2901 | .name = L"Test wide string", | |
2902 | .average = 543.34343, | |
2903 | }; | |
2904 | ||
2905 | ni.number = 58; | |
2906 | ||
2907 | int dynamic_array[ni.number]; | |
2908 | dynamic_array[0] = argv[0][0]; | |
2909 | dynamic_array[ni.number - 1] = 543; | |
2910 | ||
2911 | // work around unused variable warnings | |
2912 | ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' | |
2913 | || dynamic_array[ni.number - 1] != 543); | |
2914 | ' | |
57aa50d4 | 2915 | |
54445dc2 TT |
2916 | # Test code for whether the C compiler supports C11 (global declarations) |
2917 | ac_c_conftest_c11_globals=' | |
2918 | // Does the compiler advertise C11 conformance? | |
2919 | #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L | |
2920 | # error "Compiler does not advertise C11 conformance" | |
2921 | #endif | |
57aa50d4 | 2922 | |
54445dc2 TT |
2923 | // Check _Alignas. |
2924 | char _Alignas (double) aligned_as_double; | |
2925 | char _Alignas (0) no_special_alignment; | |
2926 | extern char aligned_as_int; | |
2927 | char _Alignas (0) _Alignas (int) aligned_as_int; | |
57aa50d4 | 2928 | |
54445dc2 TT |
2929 | // Check _Alignof. |
2930 | enum | |
2931 | { | |
2932 | int_alignment = _Alignof (int), | |
2933 | int_array_alignment = _Alignof (int[100]), | |
2934 | char_alignment = _Alignof (char) | |
2935 | }; | |
2936 | _Static_assert (0 < -_Alignof (int), "_Alignof is signed"); | |
57aa50d4 | 2937 | |
54445dc2 TT |
2938 | // Check _Noreturn. |
2939 | int _Noreturn does_not_return (void) { for (;;) continue; } | |
5ce368f0 | 2940 | |
54445dc2 TT |
2941 | // Check _Static_assert. |
2942 | struct test_static_assert | |
2943 | { | |
2944 | int x; | |
2945 | _Static_assert (sizeof (int) <= sizeof (long int), | |
2946 | "_Static_assert does not work in struct"); | |
2947 | long int y; | |
2948 | }; | |
2949 | ||
2950 | // Check UTF-8 literals. | |
2951 | #define u8 syntax error! | |
2952 | char const utf8_literal[] = u8"happens to be ASCII" "another string"; | |
2953 | ||
2954 | // Check duplicate typedefs. | |
2955 | typedef long *long_ptr; | |
2956 | typedef long int *long_ptr; | |
2957 | typedef long_ptr long_ptr; | |
2958 | ||
2959 | // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. | |
2960 | struct anonymous | |
2961 | { | |
2962 | union { | |
2963 | struct { int i; int j; }; | |
2964 | struct { int k; long int l; } w; | |
2965 | }; | |
2966 | int m; | |
2967 | } v1; | |
2968 | ' | |
6c59a665 | 2969 | |
54445dc2 TT |
2970 | # Test code for whether the C compiler supports C11 (body of main). |
2971 | ac_c_conftest_c11_main=' | |
2972 | _Static_assert ((offsetof (struct anonymous, i) | |
2973 | == offsetof (struct anonymous, w.k)), | |
2974 | "Anonymous union alignment botch"); | |
2975 | v1.i = 2; | |
2976 | v1.w.k = 5; | |
2977 | ok |= v1.i != 5; | |
2978 | ' | |
57aa50d4 | 2979 | |
54445dc2 TT |
2980 | # Test code for whether the C compiler supports C11 (complete). |
2981 | ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} | |
2982 | ${ac_c_conftest_c99_globals} | |
2983 | ${ac_c_conftest_c11_globals} | |
57aa50d4 | 2984 | |
54445dc2 TT |
2985 | int |
2986 | main (int argc, char **argv) | |
2987 | { | |
2988 | int ok = 0; | |
2989 | ${ac_c_conftest_c89_main} | |
2990 | ${ac_c_conftest_c99_main} | |
2991 | ${ac_c_conftest_c11_main} | |
2992 | return ok; | |
2993 | } | |
2994 | " | |
73ae2d4a | 2995 | |
54445dc2 TT |
2996 | # Test code for whether the C compiler supports C99 (complete). |
2997 | ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} | |
2998 | ${ac_c_conftest_c99_globals} | |
e1052144 | 2999 | |
54445dc2 TT |
3000 | int |
3001 | main (int argc, char **argv) | |
3002 | { | |
3003 | int ok = 0; | |
3004 | ${ac_c_conftest_c89_main} | |
3005 | ${ac_c_conftest_c99_main} | |
3006 | return ok; | |
3007 | } | |
3008 | " | |
57aa50d4 | 3009 | |
54445dc2 TT |
3010 | # Test code for whether the C compiler supports C89 (complete). |
3011 | ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} | |
57aa50d4 | 3012 | |
54445dc2 TT |
3013 | int |
3014 | main (int argc, char **argv) | |
3015 | { | |
3016 | int ok = 0; | |
3017 | ${ac_c_conftest_c89_main} | |
3018 | return ok; | |
3019 | } | |
3020 | " | |
57aa50d4 | 3021 | |
54445dc2 TT |
3022 | as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" |
3023 | as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" | |
3024 | as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" | |
3025 | as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" | |
3026 | as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" | |
3027 | as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" | |
3028 | as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" | |
3029 | as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" | |
3030 | as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" | |
3031 | as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" | |
3032 | gt_needs="$gt_needs " | |
3033 | as_fn_append ac_func_c_list " vprintf HAVE_VPRINTF" | |
2869485b TT |
3034 | # Test code for whether the C++ compiler supports C++98 (global declarations) |
3035 | ac_cxx_conftest_cxx98_globals=' | |
3036 | // Does the compiler advertise C++98 conformance? | |
3037 | #if !defined __cplusplus || __cplusplus < 199711L | |
3038 | # error "Compiler does not advertise C++98 conformance" | |
3039 | #endif | |
3040 | ||
3041 | // These inclusions are to reject old compilers that | |
3042 | // lack the unsuffixed header files. | |
3043 | #include <cstdlib> | |
3044 | #include <exception> | |
3045 | ||
3046 | // <cassert> and <cstring> are *not* freestanding headers in C++98. | |
3047 | extern void assert (int); | |
3048 | namespace std { | |
3049 | extern int strcmp (const char *, const char *); | |
3050 | } | |
3051 | ||
3052 | // Namespaces, exceptions, and templates were all added after "C++ 2.0". | |
3053 | using std::exception; | |
3054 | using std::strcmp; | |
3055 | ||
3056 | namespace { | |
3057 | ||
3058 | void test_exception_syntax() | |
3059 | { | |
3060 | try { | |
3061 | throw "test"; | |
3062 | } catch (const char *s) { | |
3063 | // Extra parentheses suppress a warning when building autoconf itself, | |
3064 | // due to lint rules shared with more typical C programs. | |
3065 | assert (!(strcmp) (s, "test")); | |
3066 | } | |
3067 | } | |
3068 | ||
3069 | template <typename T> struct test_template | |
3070 | { | |
3071 | T const val; | |
3072 | explicit test_template(T t) : val(t) {} | |
3073 | template <typename U> T add(U u) { return static_cast<T>(u) + val; } | |
3074 | }; | |
3075 | ||
3076 | } // anonymous namespace | |
3077 | ' | |
3078 | ||
3079 | # Test code for whether the C++ compiler supports C++98 (body of main) | |
3080 | ac_cxx_conftest_cxx98_main=' | |
3081 | assert (argc); | |
3082 | assert (! argv[0]); | |
3083 | { | |
3084 | test_exception_syntax (); | |
3085 | test_template<double> tt (2.0); | |
3086 | assert (tt.add (4) == 6.0); | |
3087 | assert (true && !false); | |
3088 | } | |
3089 | ' | |
3090 | ||
3091 | # Test code for whether the C++ compiler supports C++11 (global declarations) | |
3092 | ac_cxx_conftest_cxx11_globals=' | |
3093 | // Does the compiler advertise C++ 2011 conformance? | |
3094 | #if !defined __cplusplus || __cplusplus < 201103L | |
3095 | # error "Compiler does not advertise C++11 conformance" | |
3096 | #endif | |
3097 | ||
3098 | namespace cxx11test | |
3099 | { | |
3100 | constexpr int get_val() { return 20; } | |
3101 | ||
3102 | struct testinit | |
3103 | { | |
3104 | int i; | |
3105 | double d; | |
3106 | }; | |
3107 | ||
3108 | class delegate | |
3109 | { | |
3110 | public: | |
3111 | delegate(int n) : n(n) {} | |
3112 | delegate(): delegate(2354) {} | |
3113 | ||
3114 | virtual int getval() { return this->n; }; | |
3115 | protected: | |
3116 | int n; | |
3117 | }; | |
3118 | ||
3119 | class overridden : public delegate | |
3120 | { | |
3121 | public: | |
3122 | overridden(int n): delegate(n) {} | |
3123 | virtual int getval() override final { return this->n * 2; } | |
3124 | }; | |
3125 | ||
3126 | class nocopy | |
3127 | { | |
3128 | public: | |
3129 | nocopy(int i): i(i) {} | |
3130 | nocopy() = default; | |
3131 | nocopy(const nocopy&) = delete; | |
3132 | nocopy & operator=(const nocopy&) = delete; | |
3133 | private: | |
3134 | int i; | |
3135 | }; | |
3136 | ||
3137 | // for testing lambda expressions | |
3138 | template <typename Ret, typename Fn> Ret eval(Fn f, Ret v) | |
3139 | { | |
3140 | return f(v); | |
3141 | } | |
3142 | ||
3143 | // for testing variadic templates and trailing return types | |
3144 | template <typename V> auto sum(V first) -> V | |
3145 | { | |
3146 | return first; | |
3147 | } | |
3148 | template <typename V, typename... Args> auto sum(V first, Args... rest) -> V | |
3149 | { | |
3150 | return first + sum(rest...); | |
3151 | } | |
3152 | } | |
3153 | ' | |
3154 | ||
3155 | # Test code for whether the C++ compiler supports C++11 (body of main) | |
3156 | ac_cxx_conftest_cxx11_main=' | |
3157 | { | |
3158 | // Test auto and decltype | |
3159 | auto a1 = 6538; | |
3160 | auto a2 = 48573953.4; | |
3161 | auto a3 = "String literal"; | |
3162 | ||
3163 | int total = 0; | |
3164 | for (auto i = a3; *i; ++i) { total += *i; } | |
3165 | ||
3166 | decltype(a2) a4 = 34895.034; | |
3167 | } | |
3168 | { | |
3169 | // Test constexpr | |
3170 | short sa[cxx11test::get_val()] = { 0 }; | |
3171 | } | |
3172 | { | |
3173 | // Test initializer lists | |
3174 | cxx11test::testinit il = { 4323, 435234.23544 }; | |
3175 | } | |
3176 | { | |
3177 | // Test range-based for | |
3178 | int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3, | |
3179 | 14, 19, 17, 8, 6, 20, 16, 2, 11, 1}; | |
3180 | for (auto &x : array) { x += 23; } | |
3181 | } | |
3182 | { | |
3183 | // Test lambda expressions | |
3184 | using cxx11test::eval; | |
3185 | assert (eval ([](int x) { return x*2; }, 21) == 42); | |
3186 | double d = 2.0; | |
3187 | assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0); | |
3188 | assert (d == 5.0); | |
3189 | assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0); | |
3190 | assert (d == 5.0); | |
3191 | } | |
3192 | { | |
3193 | // Test use of variadic templates | |
3194 | using cxx11test::sum; | |
3195 | auto a = sum(1); | |
3196 | auto b = sum(1, 2); | |
3197 | auto c = sum(1.0, 2.0, 3.0); | |
3198 | } | |
3199 | { | |
3200 | // Test constructor delegation | |
3201 | cxx11test::delegate d1; | |
3202 | cxx11test::delegate d2(); | |
3203 | cxx11test::delegate d3(45); | |
3204 | } | |
3205 | { | |
3206 | // Test override and final | |
3207 | cxx11test::overridden o1(55464); | |
3208 | } | |
3209 | { | |
3210 | // Test nullptr | |
3211 | char *c = nullptr; | |
3212 | } | |
3213 | { | |
3214 | // Test template brackets | |
3215 | test_template<::test_template<int>> v(test_template<int>(12)); | |
3216 | } | |
3217 | { | |
3218 | // Unicode literals | |
3219 | char const *utf8 = u8"UTF-8 string \u2500"; | |
3220 | char16_t const *utf16 = u"UTF-8 string \u2500"; | |
3221 | char32_t const *utf32 = U"UTF-32 string \u2500"; | |
3222 | } | |
3223 | ' | |
3224 | ||
3225 | # Test code for whether the C compiler supports C++11 (complete). | |
3226 | ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals} | |
3227 | ${ac_cxx_conftest_cxx11_globals} | |
3228 | ||
3229 | int | |
3230 | main (int argc, char **argv) | |
3231 | { | |
3232 | int ok = 0; | |
3233 | ${ac_cxx_conftest_cxx98_main} | |
3234 | ${ac_cxx_conftest_cxx11_main} | |
3235 | return ok; | |
3236 | } | |
3237 | " | |
3238 | ||
3239 | # Test code for whether the C compiler supports C++98 (complete). | |
3240 | ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals} | |
3241 | int | |
3242 | main (int argc, char **argv) | |
3243 | { | |
3244 | int ok = 0; | |
3245 | ${ac_cxx_conftest_cxx98_main} | |
3246 | return ok; | |
3247 | } | |
3248 | " | |
3249 | ||
54445dc2 TT |
3250 | |
3251 | # Auxiliary files required by this configure script. | |
3252 | ac_aux_files="config.rpath install-sh config.guess config.sub" | |
3253 | ||
3254 | # Locations in which to look for auxiliary files. | |
3255 | ac_aux_dir_candidates="${srcdir}/config" | |
3256 | ||
3257 | # Search for a directory containing all of the required auxiliary files, | |
3258 | # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. | |
3259 | # If we don't find one directory that contains all the files we need, | |
3260 | # we report the set of missing files from the *first* directory in | |
3261 | # $ac_aux_dir_candidates and give up. | |
3262 | ac_missing_aux_files="" | |
3263 | ac_first_candidate=: | |
3264 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 | |
b0cacab0 | 3265 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
54445dc2 TT |
3266 | as_found=false |
3267 | for as_dir in $ac_aux_dir_candidates | |
b0cacab0 TT |
3268 | do |
3269 | IFS=$as_save_IFS | |
54445dc2 TT |
3270 | case $as_dir in #((( |
3271 | '') as_dir=./ ;; | |
3272 | */) ;; | |
3273 | *) as_dir=$as_dir/ ;; | |
3274 | esac | |
3275 | as_found=: | |
3276 | ||
3277 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 | |
3278 | ac_aux_dir_found=yes | |
3279 | ac_install_sh= | |
3280 | for ac_aux in $ac_aux_files | |
3281 | do | |
3282 | # As a special case, if "install-sh" is required, that requirement | |
3283 | # can be satisfied by any of "install-sh", "install.sh", or "shtool", | |
3284 | # and $ac_install_sh is set appropriately for whichever one is found. | |
3285 | if test x"$ac_aux" = x"install-sh" | |
3286 | then | |
3287 | if test -f "${as_dir}install-sh"; then | |
3288 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 | |
3289 | ac_install_sh="${as_dir}install-sh -c" | |
3290 | elif test -f "${as_dir}install.sh"; then | |
3291 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 | |
3292 | ac_install_sh="${as_dir}install.sh -c" | |
3293 | elif test -f "${as_dir}shtool"; then | |
3294 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 | |
3295 | ac_install_sh="${as_dir}shtool install -c" | |
3296 | else | |
3297 | ac_aux_dir_found=no | |
3298 | if $ac_first_candidate; then | |
3299 | ac_missing_aux_files="${ac_missing_aux_files} install-sh" | |
3300 | else | |
3301 | break | |
3302 | fi | |
3303 | fi | |
3304 | else | |
3305 | if test -f "${as_dir}${ac_aux}"; then | |
3306 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 | |
3307 | else | |
3308 | ac_aux_dir_found=no | |
3309 | if $ac_first_candidate; then | |
3310 | ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" | |
3311 | else | |
3312 | break | |
3313 | fi | |
3314 | fi | |
3315 | fi | |
3316 | done | |
3317 | if test "$ac_aux_dir_found" = yes; then | |
3318 | ac_aux_dir="$as_dir" | |
3319 | break | |
b0cacab0 | 3320 | fi |
54445dc2 TT |
3321 | ac_first_candidate=false |
3322 | ||
3323 | as_found=false | |
b0cacab0 | 3324 | done |
e1052144 | 3325 | IFS=$as_save_IFS |
54445dc2 TT |
3326 | if $as_found |
3327 | then : | |
b0cacab0 | 3328 | |
54445dc2 TT |
3329 | else $as_nop |
3330 | as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 | |
73ae2d4a | 3331 | fi |
b0cacab0 | 3332 | |
e1052144 | 3333 | |
54445dc2 TT |
3334 | # These three variables are undocumented and unsupported, |
3335 | # and are intended to be withdrawn in a future Autoconf release. | |
3336 | # They can cause serious problems if a builder's source tree is in a directory | |
3337 | # whose full name contains unusual characters. | |
3338 | if test -f "${ac_aux_dir}config.guess"; then | |
3339 | ac_config_guess="$SHELL ${ac_aux_dir}config.guess" | |
b0cacab0 | 3340 | fi |
54445dc2 TT |
3341 | if test -f "${ac_aux_dir}config.sub"; then |
3342 | ac_config_sub="$SHELL ${ac_aux_dir}config.sub" | |
b0cacab0 | 3343 | fi |
54445dc2 TT |
3344 | if test -f "$ac_aux_dir/configure"; then |
3345 | ac_configure="$SHELL ${ac_aux_dir}configure" | |
07a0db15 | 3346 | fi |
73ae2d4a | 3347 | |
54445dc2 TT |
3348 | # Check that the precious variables saved in the cache have kept the same |
3349 | # value. | |
3350 | ac_cache_corrupted=false | |
3351 | for ac_var in $ac_precious_vars; do | |
3352 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
3353 | eval ac_new_set=\$ac_env_${ac_var}_set | |
3354 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
3355 | eval ac_new_val=\$ac_env_${ac_var}_value | |
3356 | case $ac_old_set,$ac_new_set in | |
3357 | set,) | |
3358 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
3359 | printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
3360 | ac_cache_corrupted=: ;; | |
3361 | ,set) | |
3362 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
3363 | printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
3364 | ac_cache_corrupted=: ;; | |
3365 | ,);; | |
3366 | *) | |
3367 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
3368 | # differences in whitespace do not lead to failure. | |
3369 | ac_old_val_w=`echo x $ac_old_val` | |
3370 | ac_new_val_w=`echo x $ac_new_val` | |
3371 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
3372 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
3373 | printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
3374 | ac_cache_corrupted=: | |
3375 | else | |
3376 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
3377 | printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
3378 | eval $ac_var=\$ac_old_val | |
3379 | fi | |
3380 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
3381 | printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} | |
3382 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
3383 | printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} | |
3384 | fi;; | |
3385 | esac | |
3386 | # Pass precious variables to config.status. | |
3387 | if test "$ac_new_set" = set; then | |
3388 | case $ac_new_val in | |
3389 | *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
3390 | *) ac_arg=$ac_var=$ac_new_val ;; | |
3391 | esac | |
3392 | case " $ac_configure_args " in | |
3393 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
3394 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
3395 | esac | |
3396 | fi | |
3397 | done | |
3398 | if $ac_cache_corrupted; then | |
3399 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3400 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} | |
3401 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
3402 | printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} | |
3403 | as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' | |
3404 | and start over" "$LINENO" 5 | |
3405 | fi | |
3406 | ## -------------------- ## | |
3407 | ## Main body of script. ## | |
3408 | ## -------------------- ## | |
3409 | ||
3410 | ac_ext=c | |
3411 | ac_cpp='$CPP $CPPFLAGS' | |
3412 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3413 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3414 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3415 | ||
3416 | ||
3417 | ||
3418 | ||
3419 | ||
3420 | ac_config_headers="$ac_config_headers lib/config.h" | |
3421 | ||
3422 | ||
3423 | ||
3424 | ||
3425 | ||
3426 | ||
3427 | ||
3428 | ||
3429 | ||
3430 | ||
3431 | ||
3432 | ac_ext=c | |
3433 | ac_cpp='$CPP $CPPFLAGS' | |
3434 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3435 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3436 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3437 | if test -n "$ac_tool_prefix"; then | |
3438 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3439 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
3440 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3441 | printf %s "checking for $ac_word... " >&6; } | |
3442 | if test ${ac_cv_prog_CC+y} | |
3443 | then : | |
3444 | printf %s "(cached) " >&6 | |
3445 | else $as_nop | |
3446 | if test -n "$CC"; then | |
3447 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3448 | else | |
3449 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3450 | for as_dir in $PATH | |
3451 | do | |
3452 | IFS=$as_save_IFS | |
3453 | case $as_dir in #((( | |
3454 | '') as_dir=./ ;; | |
3455 | */) ;; | |
3456 | *) as_dir=$as_dir/ ;; | |
3457 | esac | |
3458 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3459 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
3460 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
3461 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
3462 | break 2 | |
3463 | fi | |
3464 | done | |
3465 | done | |
3466 | IFS=$as_save_IFS | |
3467 | ||
3468 | fi | |
3469 | fi | |
3470 | CC=$ac_cv_prog_CC | |
3471 | if test -n "$CC"; then | |
3472 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3473 | printf "%s\n" "$CC" >&6; } | |
3474 | else | |
3475 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3476 | printf "%s\n" "no" >&6; } | |
3477 | fi | |
3478 | ||
3479 | ||
3480 | fi | |
3481 | if test -z "$ac_cv_prog_CC"; then | |
3482 | ac_ct_CC=$CC | |
3483 | # Extract the first word of "gcc", so it can be a program name with args. | |
3484 | set dummy gcc; ac_word=$2 | |
3485 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3486 | printf %s "checking for $ac_word... " >&6; } | |
3487 | if test ${ac_cv_prog_ac_ct_CC+y} | |
3488 | then : | |
3489 | printf %s "(cached) " >&6 | |
3490 | else $as_nop | |
3491 | if test -n "$ac_ct_CC"; then | |
3492 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3493 | else | |
3494 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3495 | for as_dir in $PATH | |
3496 | do | |
3497 | IFS=$as_save_IFS | |
3498 | case $as_dir in #((( | |
3499 | '') as_dir=./ ;; | |
3500 | */) ;; | |
3501 | *) as_dir=$as_dir/ ;; | |
3502 | esac | |
3503 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3504 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
3505 | ac_cv_prog_ac_ct_CC="gcc" | |
3506 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
3507 | break 2 | |
3508 | fi | |
3509 | done | |
3510 | done | |
3511 | IFS=$as_save_IFS | |
3512 | ||
3513 | fi | |
3514 | fi | |
3515 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3516 | if test -n "$ac_ct_CC"; then | |
3517 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3518 | printf "%s\n" "$ac_ct_CC" >&6; } | |
3519 | else | |
3520 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3521 | printf "%s\n" "no" >&6; } | |
3522 | fi | |
3523 | ||
3524 | if test "x$ac_ct_CC" = x; then | |
3525 | CC="" | |
3526 | else | |
3527 | case $cross_compiling:$ac_tool_warned in | |
3528 | yes:) | |
3529 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3530 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3531 | ac_tool_warned=yes ;; | |
3532 | esac | |
3533 | CC=$ac_ct_CC | |
e1052144 | 3534 | fi |
57aa50d4 TT |
3535 | else |
3536 | CC="$ac_cv_prog_CC" | |
b0cacab0 TT |
3537 | fi |
3538 | ||
57aa50d4 TT |
3539 | if test -z "$CC"; then |
3540 | if test -n "$ac_tool_prefix"; then | |
3541 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
3542 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
54445dc2 TT |
3543 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3544 | printf %s "checking for $ac_word... " >&6; } | |
3545 | if test ${ac_cv_prog_CC+y} | |
3546 | then : | |
3547 | printf %s "(cached) " >&6 | |
3548 | else $as_nop | |
57aa50d4 TT |
3549 | if test -n "$CC"; then |
3550 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3551 | else | |
3552 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3553 | for as_dir in $PATH | |
3554 | do | |
3555 | IFS=$as_save_IFS | |
54445dc2 TT |
3556 | case $as_dir in #((( |
3557 | '') as_dir=./ ;; | |
3558 | */) ;; | |
3559 | *) as_dir=$as_dir/ ;; | |
3560 | esac | |
57aa50d4 | 3561 | for ac_exec_ext in '' $ac_executable_extensions; do |
54445dc2 | 3562 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
57aa50d4 | 3563 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
54445dc2 | 3564 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
57aa50d4 TT |
3565 | break 2 |
3566 | fi | |
3567 | done | |
3568 | done | |
3569 | IFS=$as_save_IFS | |
3570 | ||
3571 | fi | |
3572 | fi | |
3573 | CC=$ac_cv_prog_CC | |
3574 | if test -n "$CC"; then | |
54445dc2 TT |
3575 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3576 | printf "%s\n" "$CC" >&6; } | |
57aa50d4 | 3577 | else |
54445dc2 TT |
3578 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3579 | printf "%s\n" "no" >&6; } | |
57aa50d4 TT |
3580 | fi |
3581 | ||
3582 | ||
3583 | fi | |
3584 | fi | |
3585 | if test -z "$CC"; then | |
3586 | # Extract the first word of "cc", so it can be a program name with args. | |
3587 | set dummy cc; ac_word=$2 | |
54445dc2 TT |
3588 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3589 | printf %s "checking for $ac_word... " >&6; } | |
3590 | if test ${ac_cv_prog_CC+y} | |
3591 | then : | |
3592 | printf %s "(cached) " >&6 | |
3593 | else $as_nop | |
57aa50d4 TT |
3594 | if test -n "$CC"; then |
3595 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3596 | else | |
3597 | ac_prog_rejected=no | |
3598 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3599 | for as_dir in $PATH | |
3600 | do | |
3601 | IFS=$as_save_IFS | |
54445dc2 TT |
3602 | case $as_dir in #((( |
3603 | '') as_dir=./ ;; | |
3604 | */) ;; | |
3605 | *) as_dir=$as_dir/ ;; | |
3606 | esac | |
57aa50d4 | 3607 | for ac_exec_ext in '' $ac_executable_extensions; do |
54445dc2 TT |
3608 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
3609 | if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
57aa50d4 TT |
3610 | ac_prog_rejected=yes |
3611 | continue | |
3612 | fi | |
3613 | ac_cv_prog_CC="cc" | |
54445dc2 | 3614 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
57aa50d4 TT |
3615 | break 2 |
3616 | fi | |
3617 | done | |
3618 | done | |
3619 | IFS=$as_save_IFS | |
3620 | ||
3621 | if test $ac_prog_rejected = yes; then | |
3622 | # We found a bogon in the path, so make sure we never use it. | |
3623 | set dummy $ac_cv_prog_CC | |
3624 | shift | |
3625 | if test $# != 0; then | |
3626 | # We chose a different compiler from the bogus one. | |
3627 | # However, it has the same basename, so the bogon will be chosen | |
3628 | # first if we set CC to just the basename; use the full file name. | |
3629 | shift | |
54445dc2 | 3630 | ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" |
57aa50d4 TT |
3631 | fi |
3632 | fi | |
3633 | fi | |
3634 | fi | |
3635 | CC=$ac_cv_prog_CC | |
3636 | if test -n "$CC"; then | |
54445dc2 TT |
3637 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3638 | printf "%s\n" "$CC" >&6; } | |
57aa50d4 | 3639 | else |
54445dc2 TT |
3640 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3641 | printf "%s\n" "no" >&6; } | |
57aa50d4 TT |
3642 | fi |
3643 | ||
3644 | ||
3645 | fi | |
3646 | if test -z "$CC"; then | |
3647 | if test -n "$ac_tool_prefix"; then | |
3648 | for ac_prog in cl.exe | |
3649 | do | |
3650 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3651 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
54445dc2 TT |
3652 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3653 | printf %s "checking for $ac_word... " >&6; } | |
3654 | if test ${ac_cv_prog_CC+y} | |
3655 | then : | |
3656 | printf %s "(cached) " >&6 | |
3657 | else $as_nop | |
57aa50d4 TT |
3658 | if test -n "$CC"; then |
3659 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3660 | else | |
3661 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3662 | for as_dir in $PATH | |
3663 | do | |
3664 | IFS=$as_save_IFS | |
54445dc2 TT |
3665 | case $as_dir in #((( |
3666 | '') as_dir=./ ;; | |
3667 | */) ;; | |
3668 | *) as_dir=$as_dir/ ;; | |
3669 | esac | |
57aa50d4 | 3670 | for ac_exec_ext in '' $ac_executable_extensions; do |
54445dc2 | 3671 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
57aa50d4 | 3672 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
54445dc2 | 3673 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
57aa50d4 TT |
3674 | break 2 |
3675 | fi | |
3676 | done | |
3677 | done | |
3678 | IFS=$as_save_IFS | |
3679 | ||
3680 | fi | |
3681 | fi | |
3682 | CC=$ac_cv_prog_CC | |
3683 | if test -n "$CC"; then | |
54445dc2 TT |
3684 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3685 | printf "%s\n" "$CC" >&6; } | |
57aa50d4 | 3686 | else |
54445dc2 TT |
3687 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3688 | printf "%s\n" "no" >&6; } | |
57aa50d4 TT |
3689 | fi |
3690 | ||
3691 | ||
3692 | test -n "$CC" && break | |
3693 | done | |
3694 | fi | |
3695 | if test -z "$CC"; then | |
3696 | ac_ct_CC=$CC | |
3697 | for ac_prog in cl.exe | |
3698 | do | |
3699 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3700 | set dummy $ac_prog; ac_word=$2 | |
54445dc2 TT |
3701 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3702 | printf %s "checking for $ac_word... " >&6; } | |
3703 | if test ${ac_cv_prog_ac_ct_CC+y} | |
3704 | then : | |
3705 | printf %s "(cached) " >&6 | |
3706 | else $as_nop | |
57aa50d4 TT |
3707 | if test -n "$ac_ct_CC"; then |
3708 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3709 | else | |
3710 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3711 | for as_dir in $PATH | |
3712 | do | |
3713 | IFS=$as_save_IFS | |
54445dc2 TT |
3714 | case $as_dir in #((( |
3715 | '') as_dir=./ ;; | |
3716 | */) ;; | |
3717 | *) as_dir=$as_dir/ ;; | |
3718 | esac | |
57aa50d4 | 3719 | for ac_exec_ext in '' $ac_executable_extensions; do |
54445dc2 | 3720 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
57aa50d4 | 3721 | ac_cv_prog_ac_ct_CC="$ac_prog" |
54445dc2 | 3722 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
57aa50d4 TT |
3723 | break 2 |
3724 | fi | |
3725 | done | |
3726 | done | |
3727 | IFS=$as_save_IFS | |
3728 | ||
3729 | fi | |
3730 | fi | |
3731 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3732 | if test -n "$ac_ct_CC"; then | |
54445dc2 TT |
3733 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3734 | printf "%s\n" "$ac_ct_CC" >&6; } | |
57aa50d4 | 3735 | else |
54445dc2 TT |
3736 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3737 | printf "%s\n" "no" >&6; } | |
57aa50d4 TT |
3738 | fi |
3739 | ||
3740 | ||
3741 | test -n "$ac_ct_CC" && break | |
3742 | done | |
3743 | ||
3744 | if test "x$ac_ct_CC" = x; then | |
3745 | CC="" | |
3746 | else | |
3747 | case $cross_compiling:$ac_tool_warned in | |
3748 | yes:) | |
54445dc2 TT |
3749 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
3750 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3751 | ac_tool_warned=yes ;; | |
3752 | esac | |
3753 | CC=$ac_ct_CC | |
3754 | fi | |
3755 | fi | |
3756 | ||
3757 | fi | |
3758 | if test -z "$CC"; then | |
3759 | if test -n "$ac_tool_prefix"; then | |
3760 | # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. | |
3761 | set dummy ${ac_tool_prefix}clang; ac_word=$2 | |
3762 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3763 | printf %s "checking for $ac_word... " >&6; } | |
3764 | if test ${ac_cv_prog_CC+y} | |
3765 | then : | |
3766 | printf %s "(cached) " >&6 | |
3767 | else $as_nop | |
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 | |
3773 | do | |
3774 | IFS=$as_save_IFS | |
3775 | case $as_dir in #((( | |
3776 | '') as_dir=./ ;; | |
3777 | */) ;; | |
3778 | *) as_dir=$as_dir/ ;; | |
3779 | esac | |
3780 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3781 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
3782 | ac_cv_prog_CC="${ac_tool_prefix}clang" | |
3783 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
3784 | break 2 | |
3785 | fi | |
3786 | done | |
3787 | done | |
3788 | IFS=$as_save_IFS | |
3789 | ||
3790 | fi | |
3791 | fi | |
3792 | CC=$ac_cv_prog_CC | |
3793 | if test -n "$CC"; then | |
3794 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3795 | printf "%s\n" "$CC" >&6; } | |
3796 | else | |
3797 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3798 | printf "%s\n" "no" >&6; } | |
3799 | fi | |
3800 | ||
3801 | ||
3802 | fi | |
3803 | if test -z "$ac_cv_prog_CC"; then | |
3804 | ac_ct_CC=$CC | |
3805 | # Extract the first word of "clang", so it can be a program name with args. | |
3806 | set dummy clang; ac_word=$2 | |
3807 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3808 | printf %s "checking for $ac_word... " >&6; } | |
3809 | if test ${ac_cv_prog_ac_ct_CC+y} | |
3810 | then : | |
3811 | printf %s "(cached) " >&6 | |
3812 | else $as_nop | |
3813 | if test -n "$ac_ct_CC"; then | |
3814 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3815 | else | |
3816 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3817 | for as_dir in $PATH | |
3818 | do | |
3819 | IFS=$as_save_IFS | |
3820 | case $as_dir in #((( | |
3821 | '') as_dir=./ ;; | |
3822 | */) ;; | |
3823 | *) as_dir=$as_dir/ ;; | |
3824 | esac | |
3825 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3826 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
3827 | ac_cv_prog_ac_ct_CC="clang" | |
3828 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
3829 | break 2 | |
3830 | fi | |
3831 | done | |
3832 | done | |
3833 | IFS=$as_save_IFS | |
3834 | ||
3835 | fi | |
3836 | fi | |
3837 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3838 | if test -n "$ac_ct_CC"; then | |
3839 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3840 | printf "%s\n" "$ac_ct_CC" >&6; } | |
3841 | else | |
3842 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3843 | printf "%s\n" "no" >&6; } | |
3844 | fi | |
3845 | ||
3846 | if test "x$ac_ct_CC" = x; then | |
3847 | CC="" | |
3848 | else | |
3849 | case $cross_compiling:$ac_tool_warned in | |
3850 | yes:) | |
3851 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3852 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
57aa50d4 TT |
3853 | ac_tool_warned=yes ;; |
3854 | esac | |
3855 | CC=$ac_ct_CC | |
3856 | fi | |
54445dc2 TT |
3857 | else |
3858 | CC="$ac_cv_prog_CC" | |
57aa50d4 TT |
3859 | fi |
3860 | ||
3861 | fi | |
3862 | ||
3863 | ||
54445dc2 TT |
3864 | test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3865 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} | |
d6a4bcb5 TB |
3866 | as_fn_error $? "no acceptable C compiler found in \$PATH |
3867 | See \`config.log' for more details" "$LINENO" 5; } | |
b0cacab0 TT |
3868 | |
3869 | # Provide some information about the compiler. | |
54445dc2 | 3870 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
39fd3d4f SJR |
3871 | set X $ac_compile |
3872 | ac_compiler=$2 | |
54445dc2 | 3873 | for ac_option in --version -v -V -qversion -version; do |
57aa50d4 | 3874 | { { ac_try="$ac_compiler $ac_option >&5" |
e1052144 TT |
3875 | case "(($ac_try" in |
3876 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3877 | *) ac_try_echo=$ac_try;; | |
3878 | esac | |
57aa50d4 | 3879 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
54445dc2 | 3880 | printf "%s\n" "$ac_try_echo"; } >&5 |
57aa50d4 | 3881 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
b0cacab0 | 3882 | ac_status=$? |
57aa50d4 TT |
3883 | if test -s conftest.err; then |
3884 | sed '10a\ | |
3885 | ... rest of stderr output deleted ... | |
3886 | 10q' conftest.err >conftest.er1 | |
3887 | cat conftest.er1 >&5 | |
57aa50d4 | 3888 | fi |
61ef2474 | 3889 | rm -f conftest.er1 conftest.err |
54445dc2 | 3890 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
57aa50d4 TT |
3891 | test $ac_status = 0; } |
3892 | done | |
b0cacab0 | 3893 | |
57aa50d4 | 3894 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b0cacab0 | 3895 | /* end confdefs.h. */ |
61ef2474 | 3896 | |
b0cacab0 | 3897 | int |
54445dc2 | 3898 | main (void) |
b0cacab0 TT |
3899 | { |
3900 | ||
3901 | ; | |
3902 | return 0; | |
3903 | } | |
3904 | _ACEOF | |
3905 | ac_clean_files_save=$ac_clean_files | |
61ef2474 | 3906 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
b0cacab0 TT |
3907 | # Try to create an executable without -o first, disregard a.out. |
3908 | # It will help us diagnose broken compilers, and finding out an intuition | |
3909 | # of exeext. | |
54445dc2 TT |
3910 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
3911 | printf %s "checking whether the C compiler works... " >&6; } | |
3912 | ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
39fd3d4f SJR |
3913 | |
3914 | # The possible output files: | |
3915 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3916 | ||
e1052144 TT |
3917 | ac_rmfiles= |
3918 | for ac_file in $ac_files | |
3919 | do | |
3920 | case $ac_file in | |
39fd3d4f | 3921 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
e1052144 TT |
3922 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
3923 | esac | |
3924 | done | |
3925 | rm -f $ac_rmfiles | |
3926 | ||
57aa50d4 | 3927 | if { { ac_try="$ac_link_default" |
e1052144 TT |
3928 | case "(($ac_try" in |
3929 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3930 | *) ac_try_echo=$ac_try;; | |
3931 | esac | |
57aa50d4 | 3932 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
54445dc2 | 3933 | printf "%s\n" "$ac_try_echo"; } >&5 |
e1052144 | 3934 | (eval "$ac_link_default") 2>&5 |
b0cacab0 | 3935 | ac_status=$? |
54445dc2 TT |
3936 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3937 | test $ac_status = 0; } | |
3938 | then : | |
e1052144 TT |
3939 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
3940 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3941 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3942 | # so that the user can short-circuit this test for compilers unknown to | |
3943 | # Autoconf. | |
29a5deed | 3944 | for ac_file in $ac_files '' |
b0cacab0 TT |
3945 | do |
3946 | test -f "$ac_file" || continue | |
3947 | case $ac_file in | |
39fd3d4f | 3948 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
b0cacab0 TT |
3949 | ;; |
3950 | [ab].out ) | |
3951 | # We found the default executable, but exeext='' is most | |
3952 | # certainly right. | |
3953 | break;; | |
3954 | *.* ) | |
54445dc2 | 3955 | if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; |
e1052144 TT |
3956 | then :; else |
3957 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3958 | fi | |
3959 | # We set ac_cv_exeext here because the later test for it is not | |
3960 | # safe: cross compilers may not add the suffix if given an `-o' | |
3961 | # argument, so we may need to know it at that point already. | |
3962 | # Even if this section looks crufty: it has the advantage of | |
3963 | # actually working. | |
b0cacab0 TT |
3964 | break;; |
3965 | * ) | |
3966 | break;; | |
3967 | esac | |
3968 | done | |
e1052144 TT |
3969 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
3970 | ||
54445dc2 | 3971 | else $as_nop |
29a5deed TT |
3972 | ac_file='' |
3973 | fi | |
54445dc2 TT |
3974 | if test -z "$ac_file" |
3975 | then : | |
3976 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3977 | printf "%s\n" "no" >&6; } | |
3978 | printf "%s\n" "$as_me: failed program was:" >&5 | |
b0cacab0 TT |
3979 | sed 's/^/| /' conftest.$ac_ext >&5 |
3980 | ||
54445dc2 TT |
3981 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3982 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} | |
d6a4bcb5 TB |
3983 | as_fn_error 77 "C compiler cannot create executables |
3984 | See \`config.log' for more details" "$LINENO" 5; } | |
54445dc2 TT |
3985 | else $as_nop |
3986 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3987 | printf "%s\n" "yes" >&6; } | |
3988 | fi | |
3989 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | |
3990 | printf %s "checking for C compiler default output file name... " >&6; } | |
3991 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3992 | printf "%s\n" "$ac_file" >&6; } | |
b0cacab0 | 3993 | ac_exeext=$ac_cv_exeext |
b0cacab0 | 3994 | |
61ef2474 | 3995 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
b0cacab0 | 3996 | ac_clean_files=$ac_clean_files_save |
54445dc2 TT |
3997 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
3998 | printf %s "checking for suffix of executables... " >&6; } | |
57aa50d4 | 3999 | if { { ac_try="$ac_link" |
e1052144 TT |
4000 | case "(($ac_try" in |
4001 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4002 | *) ac_try_echo=$ac_try;; | |
4003 | esac | |
57aa50d4 | 4004 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
54445dc2 | 4005 | printf "%s\n" "$ac_try_echo"; } >&5 |
e1052144 | 4006 | (eval "$ac_link") 2>&5 |
b0cacab0 | 4007 | ac_status=$? |
54445dc2 TT |
4008 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4009 | test $ac_status = 0; } | |
4010 | then : | |
b0cacab0 TT |
4011 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
4012 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
4013 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
4014 | # `rm'. | |
4015 | for ac_file in conftest.exe conftest conftest.*; do | |
4016 | test -f "$ac_file" || continue | |
4017 | case $ac_file in | |
39fd3d4f | 4018 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
b0cacab0 | 4019 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
b0cacab0 TT |
4020 | break;; |
4021 | * ) break;; | |
4022 | esac | |
4023 | done | |
54445dc2 TT |
4024 | else $as_nop |
4025 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4026 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} | |
d6a4bcb5 TB |
4027 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
4028 | See \`config.log' for more details" "$LINENO" 5; } | |
73ae2d4a | 4029 | fi |
61ef2474 | 4030 | rm -f conftest conftest$ac_cv_exeext |
54445dc2 TT |
4031 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
4032 | printf "%s\n" "$ac_cv_exeext" >&6; } | |
73ae2d4a | 4033 | |
b0cacab0 TT |
4034 | rm -f conftest.$ac_ext |
4035 | EXEEXT=$ac_cv_exeext | |
4036 | ac_exeext=$EXEEXT | |
61ef2474 TT |
4037 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4038 | /* end confdefs.h. */ | |
4039 | #include <stdio.h> | |
4040 | int | |
54445dc2 | 4041 | main (void) |
61ef2474 TT |
4042 | { |
4043 | FILE *f = fopen ("conftest.out", "w"); | |
4044 | return ferror (f) || fclose (f) != 0; | |
4045 | ||
4046 | ; | |
4047 | return 0; | |
4048 | } | |
4049 | _ACEOF | |
4050 | ac_clean_files="$ac_clean_files conftest.out" | |
4051 | # Check that the compiler produces executables we can run. If not, either | |
4052 | # the compiler is broken, or we cross compile. | |
54445dc2 TT |
4053 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
4054 | printf %s "checking whether we are cross compiling... " >&6; } | |
61ef2474 TT |
4055 | if test "$cross_compiling" != yes; then |
4056 | { { ac_try="$ac_link" | |
4057 | case "(($ac_try" in | |
4058 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4059 | *) ac_try_echo=$ac_try;; | |
4060 | esac | |
4061 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
54445dc2 | 4062 | printf "%s\n" "$ac_try_echo"; } >&5 |
61ef2474 TT |
4063 | (eval "$ac_link") 2>&5 |
4064 | ac_status=$? | |
54445dc2 | 4065 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
61ef2474 TT |
4066 | test $ac_status = 0; } |
4067 | if { ac_try='./conftest$ac_cv_exeext' | |
4068 | { { case "(($ac_try" in | |
4069 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4070 | *) ac_try_echo=$ac_try;; | |
4071 | esac | |
4072 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
54445dc2 | 4073 | printf "%s\n" "$ac_try_echo"; } >&5 |
61ef2474 TT |
4074 | (eval "$ac_try") 2>&5 |
4075 | ac_status=$? | |
54445dc2 | 4076 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
61ef2474 TT |
4077 | test $ac_status = 0; }; }; then |
4078 | cross_compiling=no | |
4079 | else | |
4080 | if test "$cross_compiling" = maybe; then | |
4081 | cross_compiling=yes | |
4082 | else | |
54445dc2 TT |
4083 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4084 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} | |
4085 | as_fn_error 77 "cannot run C compiled programs. | |
61ef2474 | 4086 | If you meant to cross compile, use \`--host'. |
d6a4bcb5 | 4087 | See \`config.log' for more details" "$LINENO" 5; } |
61ef2474 TT |
4088 | fi |
4089 | fi | |
4090 | fi | |
54445dc2 TT |
4091 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
4092 | printf "%s\n" "$cross_compiling" >&6; } | |
61ef2474 TT |
4093 | |
4094 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
4095 | ac_clean_files=$ac_clean_files_save | |
54445dc2 TT |
4096 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
4097 | printf %s "checking for suffix of object files... " >&6; } | |
4098 | if test ${ac_cv_objext+y} | |
4099 | then : | |
4100 | printf %s "(cached) " >&6 | |
4101 | else $as_nop | |
57aa50d4 | 4102 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b0cacab0 | 4103 | /* end confdefs.h. */ |
07a0db15 | 4104 | |
b0cacab0 | 4105 | int |
54445dc2 | 4106 | main (void) |
b0cacab0 | 4107 | { |
07a0db15 | 4108 | |
b0cacab0 TT |
4109 | ; |
4110 | return 0; | |
4111 | } | |
4112 | _ACEOF | |
4113 | rm -f conftest.o conftest.obj | |
57aa50d4 | 4114 | if { { ac_try="$ac_compile" |
e1052144 TT |
4115 | case "(($ac_try" in |
4116 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4117 | *) ac_try_echo=$ac_try;; | |
4118 | esac | |
57aa50d4 | 4119 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
54445dc2 | 4120 | printf "%s\n" "$ac_try_echo"; } >&5 |
e1052144 | 4121 | (eval "$ac_compile") 2>&5 |
b0cacab0 | 4122 | ac_status=$? |
54445dc2 TT |
4123 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4124 | test $ac_status = 0; } | |
4125 | then : | |
e1052144 TT |
4126 | for ac_file in conftest.o conftest.obj conftest.*; do |
4127 | test -f "$ac_file" || continue; | |
b0cacab0 | 4128 | case $ac_file in |
39fd3d4f | 4129 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
b0cacab0 TT |
4130 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
4131 | break;; | |
4132 | esac | |
4133 | done | |
54445dc2 TT |
4134 | else $as_nop |
4135 | printf "%s\n" "$as_me: failed program was:" >&5 | |
b0cacab0 | 4136 | sed 's/^/| /' conftest.$ac_ext >&5 |
07a0db15 | 4137 | |
54445dc2 TT |
4138 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4139 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} | |
d6a4bcb5 TB |
4140 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
4141 | See \`config.log' for more details" "$LINENO" 5; } | |
73ae2d4a | 4142 | fi |
b0cacab0 | 4143 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
73ae2d4a | 4144 | fi |
54445dc2 TT |
4145 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
4146 | printf "%s\n" "$ac_cv_objext" >&6; } | |
b0cacab0 TT |
4147 | OBJEXT=$ac_cv_objext |
4148 | ac_objext=$OBJEXT | |
54445dc2 TT |
4149 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 |
4150 | printf %s "checking whether the compiler supports GNU C... " >&6; } | |
4151 | if test ${ac_cv_c_compiler_gnu+y} | |
4152 | then : | |
4153 | printf %s "(cached) " >&6 | |
4154 | else $as_nop | |
57aa50d4 | 4155 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b0cacab0 TT |
4156 | /* end confdefs.h. */ |
4157 | ||
4158 | int | |
54445dc2 | 4159 | main (void) |
b0cacab0 TT |
4160 | { |
4161 | #ifndef __GNUC__ | |
4162 | choke me | |
4163 | #endif | |
4164 | ||
4165 | ; | |
4166 | return 0; | |
4167 | } | |
4168 | _ACEOF | |
54445dc2 TT |
4169 | if ac_fn_c_try_compile "$LINENO" |
4170 | then : | |
b0cacab0 | 4171 | ac_compiler_gnu=yes |
54445dc2 | 4172 | else $as_nop |
57aa50d4 | 4173 | ac_compiler_gnu=no |
b0cacab0 | 4174 | fi |
54445dc2 | 4175 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
b0cacab0 TT |
4176 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
4177 | ||
4178 | fi | |
54445dc2 TT |
4179 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4180 | printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } | |
4181 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4182 | ||
39fd3d4f SJR |
4183 | if test $ac_compiler_gnu = yes; then |
4184 | GCC=yes | |
4185 | else | |
4186 | GCC= | |
4187 | fi | |
54445dc2 | 4188 | ac_test_CFLAGS=${CFLAGS+y} |
b0cacab0 | 4189 | ac_save_CFLAGS=$CFLAGS |
54445dc2 TT |
4190 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
4191 | printf %s "checking whether $CC accepts -g... " >&6; } | |
4192 | if test ${ac_cv_prog_cc_g+y} | |
4193 | then : | |
4194 | printf %s "(cached) " >&6 | |
4195 | else $as_nop | |
e1052144 TT |
4196 | ac_save_c_werror_flag=$ac_c_werror_flag |
4197 | ac_c_werror_flag=yes | |
4198 | ac_cv_prog_cc_g=no | |
4199 | CFLAGS="-g" | |
57aa50d4 | 4200 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e1052144 TT |
4201 | /* end confdefs.h. */ |
4202 | ||
4203 | int | |
54445dc2 | 4204 | main (void) |
e1052144 TT |
4205 | { |
4206 | ||
4207 | ; | |
4208 | return 0; | |
4209 | } | |
4210 | _ACEOF | |
54445dc2 TT |
4211 | if ac_fn_c_try_compile "$LINENO" |
4212 | then : | |
e1052144 | 4213 | ac_cv_prog_cc_g=yes |
54445dc2 | 4214 | else $as_nop |
57aa50d4 TT |
4215 | CFLAGS="" |
4216 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
e1052144 TT |
4217 | /* end confdefs.h. */ |
4218 | ||
4219 | int | |
54445dc2 | 4220 | main (void) |
e1052144 TT |
4221 | { |
4222 | ||
4223 | ; | |
4224 | return 0; | |
4225 | } | |
4226 | _ACEOF | |
54445dc2 TT |
4227 | if ac_fn_c_try_compile "$LINENO" |
4228 | then : | |
e1052144 | 4229 | |
54445dc2 | 4230 | else $as_nop |
57aa50d4 | 4231 | ac_c_werror_flag=$ac_save_c_werror_flag |
e1052144 | 4232 | CFLAGS="-g" |
57aa50d4 | 4233 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b0cacab0 TT |
4234 | /* end confdefs.h. */ |
4235 | ||
4236 | int | |
54445dc2 | 4237 | main (void) |
b0cacab0 TT |
4238 | { |
4239 | ||
4240 | ; | |
4241 | return 0; | |
4242 | } | |
4243 | _ACEOF | |
54445dc2 TT |
4244 | if ac_fn_c_try_compile "$LINENO" |
4245 | then : | |
b0cacab0 | 4246 | ac_cv_prog_cc_g=yes |
e1052144 | 4247 | fi |
54445dc2 | 4248 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
e1052144 | 4249 | fi |
54445dc2 | 4250 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
b0cacab0 | 4251 | fi |
54445dc2 | 4252 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
e1052144 | 4253 | ac_c_werror_flag=$ac_save_c_werror_flag |
b0cacab0 | 4254 | fi |
54445dc2 TT |
4255 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
4256 | printf "%s\n" "$ac_cv_prog_cc_g" >&6; } | |
4257 | if test $ac_test_CFLAGS; then | |
b0cacab0 TT |
4258 | CFLAGS=$ac_save_CFLAGS |
4259 | elif test $ac_cv_prog_cc_g = yes; then | |
4260 | if test "$GCC" = yes; then | |
4261 | CFLAGS="-g -O2" | |
4262 | else | |
4263 | CFLAGS="-g" | |
4264 | fi | |
73ae2d4a TT |
4265 | else |
4266 | if test "$GCC" = yes; then | |
4267 | CFLAGS="-O2" | |
4268 | else | |
4269 | CFLAGS= | |
4270 | fi | |
4271 | fi | |
54445dc2 TT |
4272 | ac_prog_cc_stdc=no |
4273 | if test x$ac_prog_cc_stdc = xno | |
4274 | then : | |
4275 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 | |
4276 | printf %s "checking for $CC option to enable C11 features... " >&6; } | |
4277 | if test ${ac_cv_prog_cc_c11+y} | |
4278 | then : | |
4279 | printf %s "(cached) " >&6 | |
4280 | else $as_nop | |
4281 | ac_cv_prog_cc_c11=no | |
b0cacab0 | 4282 | ac_save_CC=$CC |
57aa50d4 | 4283 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b0cacab0 | 4284 | /* end confdefs.h. */ |
54445dc2 | 4285 | $ac_c_conftest_c11_program |
b0cacab0 | 4286 | _ACEOF |
54445dc2 | 4287 | for ac_arg in '' -std=gnu11 |
b0cacab0 TT |
4288 | do |
4289 | CC="$ac_save_CC $ac_arg" | |
54445dc2 TT |
4290 | if ac_fn_c_try_compile "$LINENO" |
4291 | then : | |
4292 | ac_cv_prog_cc_c11=$ac_arg | |
4293 | fi | |
4294 | rm -f core conftest.err conftest.$ac_objext conftest.beam | |
4295 | test "x$ac_cv_prog_cc_c11" != "xno" && break | |
4296 | done | |
4297 | rm -f conftest.$ac_ext | |
4298 | CC=$ac_save_CC | |
4299 | fi | |
4300 | ||
4301 | if test "x$ac_cv_prog_cc_c11" = xno | |
4302 | then : | |
4303 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4304 | printf "%s\n" "unsupported" >&6; } | |
4305 | else $as_nop | |
4306 | if test "x$ac_cv_prog_cc_c11" = x | |
4307 | then : | |
4308 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4309 | printf "%s\n" "none needed" >&6; } | |
4310 | else $as_nop | |
4311 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 | |
4312 | printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } | |
4313 | CC="$CC $ac_cv_prog_cc_c11" | |
4314 | fi | |
4315 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 | |
4316 | ac_prog_cc_stdc=c11 | |
4317 | fi | |
4318 | fi | |
4319 | if test x$ac_prog_cc_stdc = xno | |
4320 | then : | |
4321 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 | |
4322 | printf %s "checking for $CC option to enable C99 features... " >&6; } | |
4323 | if test ${ac_cv_prog_cc_c99+y} | |
4324 | then : | |
4325 | printf %s "(cached) " >&6 | |
4326 | else $as_nop | |
4327 | ac_cv_prog_cc_c99=no | |
4328 | ac_save_CC=$CC | |
4329 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4330 | /* end confdefs.h. */ | |
4331 | $ac_c_conftest_c99_program | |
4332 | _ACEOF | |
4333 | for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= | |
4334 | do | |
4335 | CC="$ac_save_CC $ac_arg" | |
4336 | if ac_fn_c_try_compile "$LINENO" | |
4337 | then : | |
4338 | ac_cv_prog_cc_c99=$ac_arg | |
4339 | fi | |
4340 | rm -f core conftest.err conftest.$ac_objext conftest.beam | |
4341 | test "x$ac_cv_prog_cc_c99" != "xno" && break | |
4342 | done | |
4343 | rm -f conftest.$ac_ext | |
4344 | CC=$ac_save_CC | |
4345 | fi | |
4346 | ||
4347 | if test "x$ac_cv_prog_cc_c99" = xno | |
4348 | then : | |
4349 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4350 | printf "%s\n" "unsupported" >&6; } | |
4351 | else $as_nop | |
4352 | if test "x$ac_cv_prog_cc_c99" = x | |
4353 | then : | |
4354 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4355 | printf "%s\n" "none needed" >&6; } | |
4356 | else $as_nop | |
4357 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 | |
4358 | printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } | |
4359 | CC="$CC $ac_cv_prog_cc_c99" | |
4360 | fi | |
4361 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 | |
4362 | ac_prog_cc_stdc=c99 | |
4363 | fi | |
4364 | fi | |
4365 | if test x$ac_prog_cc_stdc = xno | |
4366 | then : | |
4367 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 | |
4368 | printf %s "checking for $CC option to enable C89 features... " >&6; } | |
4369 | if test ${ac_cv_prog_cc_c89+y} | |
4370 | then : | |
4371 | printf %s "(cached) " >&6 | |
4372 | else $as_nop | |
4373 | ac_cv_prog_cc_c89=no | |
4374 | ac_save_CC=$CC | |
4375 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4376 | /* end confdefs.h. */ | |
4377 | $ac_c_conftest_c89_program | |
4378 | _ACEOF | |
4379 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
4380 | do | |
4381 | CC="$ac_save_CC $ac_arg" | |
4382 | if ac_fn_c_try_compile "$LINENO" | |
4383 | then : | |
e1052144 | 4384 | ac_cv_prog_cc_c89=$ac_arg |
b0cacab0 | 4385 | fi |
54445dc2 | 4386 | rm -f core conftest.err conftest.$ac_objext conftest.beam |
e1052144 | 4387 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
b0cacab0 | 4388 | done |
e1052144 | 4389 | rm -f conftest.$ac_ext |
b0cacab0 | 4390 | CC=$ac_save_CC |
b0cacab0 | 4391 | fi |
b0cacab0 | 4392 | |
54445dc2 TT |
4393 | if test "x$ac_cv_prog_cc_c89" = xno |
4394 | then : | |
4395 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4396 | printf "%s\n" "unsupported" >&6; } | |
4397 | else $as_nop | |
4398 | if test "x$ac_cv_prog_cc_c89" = x | |
4399 | then : | |
4400 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4401 | printf "%s\n" "none needed" >&6; } | |
4402 | else $as_nop | |
4403 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4404 | printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } | |
4405 | CC="$CC $ac_cv_prog_cc_c89" | |
4406 | fi | |
4407 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 | |
4408 | ac_prog_cc_stdc=c89 | |
4409 | fi | |
57aa50d4 | 4410 | fi |
b0cacab0 | 4411 | |
b0cacab0 TT |
4412 | ac_ext=c |
4413 | ac_cpp='$CPP $CPPFLAGS' | |
4414 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4415 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4416 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4417 | ||
57aa50d4 | 4418 | |
54445dc2 TT |
4419 | ac_header= ac_cache= |
4420 | for ac_item in $ac_header_c_list | |
4421 | do | |
4422 | if test $ac_cache; then | |
4423 | ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" | |
4424 | if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then | |
4425 | printf "%s\n" "#define $ac_item 1" >> confdefs.h | |
4426 | fi | |
4427 | ac_header= ac_cache= | |
4428 | elif test $ac_header; then | |
4429 | ac_cache=$ac_item | |
4430 | else | |
4431 | ac_header=$ac_item | |
4432 | fi | |
4433 | done | |
4434 | ||
4435 | ||
4436 | ||
4437 | ||
4438 | ||
4439 | ||
4440 | ||
4441 | ||
4442 | if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes | |
4443 | then : | |
4444 | ||
4445 | printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h | |
4446 | ||
4447 | fi | |
4448 | ||
4449 | ||
4450 | ||
4451 | ||
4452 | ||
4453 | ||
4454 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 | |
4455 | printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } | |
4456 | if test ${ac_cv_safe_to_define___extensions__+y} | |
4457 | then : | |
4458 | printf %s "(cached) " >&6 | |
4459 | else $as_nop | |
4460 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4461 | /* end confdefs.h. */ | |
4462 | ||
4463 | # define __EXTENSIONS__ 1 | |
4464 | $ac_includes_default | |
4465 | int | |
4466 | main (void) | |
4467 | { | |
4468 | ||
4469 | ; | |
4470 | return 0; | |
4471 | } | |
4472 | _ACEOF | |
4473 | if ac_fn_c_try_compile "$LINENO" | |
4474 | then : | |
4475 | ac_cv_safe_to_define___extensions__=yes | |
4476 | else $as_nop | |
4477 | ac_cv_safe_to_define___extensions__=no | |
4478 | fi | |
4479 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
4480 | fi | |
4481 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 | |
4482 | printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } | |
4483 | ||
4484 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 | |
4485 | printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } | |
4486 | if test ${ac_cv_should_define__xopen_source+y} | |
4487 | then : | |
4488 | printf %s "(cached) " >&6 | |
4489 | else $as_nop | |
4490 | ac_cv_should_define__xopen_source=no | |
4491 | if test $ac_cv_header_wchar_h = yes | |
4492 | then : | |
4493 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4494 | /* end confdefs.h. */ | |
4495 | ||
4496 | #include <wchar.h> | |
4497 | mbstate_t x; | |
4498 | int | |
4499 | main (void) | |
4500 | { | |
4501 | ||
4502 | ; | |
4503 | return 0; | |
4504 | } | |
4505 | _ACEOF | |
4506 | if ac_fn_c_try_compile "$LINENO" | |
4507 | then : | |
4508 | ||
4509 | else $as_nop | |
4510 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4511 | /* end confdefs.h. */ | |
4512 | ||
4513 | #define _XOPEN_SOURCE 500 | |
4514 | #include <wchar.h> | |
4515 | mbstate_t x; | |
4516 | int | |
4517 | main (void) | |
4518 | { | |
4519 | ||
4520 | ; | |
4521 | return 0; | |
4522 | } | |
4523 | _ACEOF | |
4524 | if ac_fn_c_try_compile "$LINENO" | |
4525 | then : | |
4526 | ac_cv_should_define__xopen_source=yes | |
4527 | fi | |
4528 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
4529 | fi | |
4530 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
4531 | fi | |
4532 | fi | |
4533 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 | |
4534 | printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } | |
4535 | ||
4536 | printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h | |
4537 | ||
4538 | printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h | |
4539 | ||
4540 | printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h | |
4541 | ||
4542 | printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h | |
4543 | ||
4544 | printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h | |
4545 | ||
4546 | printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h | |
4547 | ||
4548 | printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h | |
4549 | ||
4550 | printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h | |
4551 | ||
4552 | printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h | |
4553 | ||
4554 | printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h | |
4555 | ||
4556 | printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h | |
4557 | ||
4558 | printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h | |
4559 | ||
4560 | printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h | |
4561 | ||
4562 | printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h | |
4563 | ||
4564 | printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h | |
4565 | ||
4566 | if test $ac_cv_header_minix_config_h = yes | |
4567 | then : | |
4568 | MINIX=yes | |
4569 | printf "%s\n" "#define _MINIX 1" >>confdefs.h | |
4570 | ||
4571 | printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h | |
4572 | ||
4573 | printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h | |
4574 | ||
4575 | else $as_nop | |
4576 | MINIX= | |
4577 | fi | |
4578 | if test $ac_cv_safe_to_define___extensions__ = yes | |
4579 | then : | |
4580 | printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h | |
4581 | ||
4582 | fi | |
4583 | if test $ac_cv_should_define__xopen_source = yes | |
4584 | then : | |
4585 | printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h | |
4586 | ||
4587 | fi | |
4588 | ||
4589 | MCONFIG=./MCONFIG | |
4590 | ||
4591 | BINARY_TYPE=bin | |
1ac00616 AD |
4592 | E2FSPROGS_VERSION=`awk -F\" '/E2FSPROGS_VERS/ { print $2 }' ${srcdir}/version.h` |
4593 | E2FSPROGS_DATE=`awk -F\" '/E2FSPROGS_DATE/ { print $2 }' ${srcdir}/version.h` | |
4594 | E2FSPROGS_DAY=$(echo $E2FSPROGS_DATE | awk -F- '{ printf "%02d", $1 }') | |
54445dc2 TT |
4595 | MONTH=`echo $E2FSPROGS_DATE | awk -F- '{print $2}'` |
4596 | YEAR=`echo $E2FSPROGS_DATE | awk -F- '{print $3}'` | |
4597 | ||
4598 | if expr $YEAR ">" 1900 > /dev/null ; then | |
4599 | E2FSPROGS_YEAR=$YEAR | |
4600 | elif expr $YEAR ">" 90 >/dev/null ; then | |
4601 | E2FSPROGS_YEAR=19$YEAR | |
4602 | else | |
4603 | E2FSPROGS_YEAR=20$YEAR | |
4604 | fi | |
4605 | ||
4606 | case $MONTH in | |
4607 | Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;; | |
4608 | Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;; | |
4609 | Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;; | |
4610 | Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;; | |
4611 | May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;; | |
4612 | Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;; | |
4613 | Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;; | |
4614 | Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;; | |
4615 | Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;; | |
4616 | Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;; | |
4617 | Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;; | |
4618 | Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;; | |
4619 | *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5 | |
4620 | printf "%s\n" "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;; | |
4621 | esac | |
4622 | ||
1ac00616 AD |
4623 | base_ver=`echo $E2FSPROGS_VERSION | sed -e 's/pre-//' -e 's/-.*//'` |
4624 | base_rel=`echo $E2FSPROGS_VERSION | awk -F- '{ print $2 }'` | |
54445dc2 TT |
4625 | |
4626 | date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY} | |
4627 | ||
4628 | case $E2FSPROGS_VERSION in | |
4629 | *-WIP|pre-*) | |
1ac00616 AD |
4630 | E2FSPROGS_PKGVER="$base_ver" |
4631 | E2FSPROGS_PKGREL="WIP.$date_spec" | |
54445dc2 TT |
4632 | ;; |
4633 | *) | |
4634 | E2FSPROGS_PKGVER="$base_ver" | |
1ac00616 | 4635 | E2FSPROGS_PKGREL="$base_rel" |
54445dc2 TT |
4636 | ;; |
4637 | esac | |
4638 | ||
4639 | unset DATE MONTH YEAR base_ver pre_vers date_spec | |
4640 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5 | |
4641 | printf "%s\n" "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; } | |
a30e56b9 TT |
4642 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Package version ${E2FSPROGS_PKGVER} release ${E2FSPROGS_PKGREL}" >&5 |
4643 | printf "%s\n" "Package version ${E2FSPROGS_PKGVER} release ${E2FSPROGS_PKGREL}" >&6; } | |
54445dc2 TT |
4644 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5 |
4645 | printf "%s\n" "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; } | |
4646 | ||
4647 | ||
4648 | ||
4649 | ||
4650 | ||
4651 | ||
a30e56b9 | 4652 | |
54445dc2 TT |
4653 | WITH_DIET_LIBC= |
4654 | ||
4655 | # Check whether --with-diet-libc was given. | |
4656 | if test ${with_diet_libc+y} | |
4657 | then : | |
4658 | withval=$with_diet_libc; CC="diet cc -nostdinc" | |
4659 | WITH_DIET_LIBC=yes | |
4660 | if test -z "$LIBS" | |
4661 | then | |
4662 | LIBS="-lcompat" | |
4663 | else | |
4664 | LIBS="$LIBS -lcompat" | |
4665 | fi | |
4666 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5 | |
4667 | printf "%s\n" "CC=$CC" >&6; } | |
4668 | fi | |
4669 | ||
4670 | ||
4671 | ||
4672 | # Make sure we can run config.sub. | |
4673 | $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || | |
4674 | as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 | |
4675 | ||
4676 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
4677 | printf %s "checking build system type... " >&6; } | |
4678 | if test ${ac_cv_build+y} | |
4679 | then : | |
4680 | printf %s "(cached) " >&6 | |
4681 | else $as_nop | |
4682 | ac_build_alias=$build_alias | |
4683 | test "x$ac_build_alias" = x && | |
4684 | ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` | |
4685 | test "x$ac_build_alias" = x && | |
4686 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | |
4687 | ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || | |
4688 | as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 | |
4689 | ||
4690 | fi | |
4691 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
4692 | printf "%s\n" "$ac_cv_build" >&6; } | |
4693 | case $ac_cv_build in | |
4694 | *-*-*) ;; | |
4695 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | |
4696 | esac | |
4697 | build=$ac_cv_build | |
4698 | ac_save_IFS=$IFS; IFS='-' | |
4699 | set x $ac_cv_build | |
4700 | shift | |
4701 | build_cpu=$1 | |
4702 | build_vendor=$2 | |
4703 | shift; shift | |
4704 | # Remember, the first character of IFS is used to create $*, | |
4705 | # except with old shells: | |
4706 | build_os=$* | |
4707 | IFS=$ac_save_IFS | |
4708 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
4709 | ||
4710 | ||
4711 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | |
4712 | printf %s "checking host system type... " >&6; } | |
4713 | if test ${ac_cv_host+y} | |
4714 | then : | |
4715 | printf %s "(cached) " >&6 | |
4716 | else $as_nop | |
4717 | if test "x$host_alias" = x; then | |
4718 | ac_cv_host=$ac_cv_build | |
b0cacab0 | 4719 | else |
54445dc2 TT |
4720 | ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || |
4721 | as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 | |
4722 | fi | |
4723 | ||
4724 | fi | |
4725 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
4726 | printf "%s\n" "$ac_cv_host" >&6; } | |
4727 | case $ac_cv_host in | |
4728 | *-*-*) ;; | |
4729 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | |
4730 | esac | |
4731 | host=$ac_cv_host | |
4732 | ac_save_IFS=$IFS; IFS='-' | |
4733 | set x $ac_cv_host | |
4734 | shift | |
4735 | host_cpu=$1 | |
4736 | host_vendor=$2 | |
4737 | shift; shift | |
4738 | # Remember, the first character of IFS is used to create $*, | |
4739 | # except with old shells: | |
4740 | host_os=$* | |
4741 | IFS=$ac_save_IFS | |
4742 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
4743 | ||
4744 | ||
4745 | DLOPEN_LIB='' | |
4746 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
4747 | printf %s "checking for dlopen in -ldl... " >&6; } | |
4748 | if test ${ac_cv_lib_dl_dlopen+y} | |
4749 | then : | |
4750 | printf %s "(cached) " >&6 | |
4751 | else $as_nop | |
57aa50d4 TT |
4752 | ac_check_lib_save_LIBS=$LIBS |
4753 | LIBS="-ldl $LIBS" | |
4754 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b0cacab0 | 4755 | /* end confdefs.h. */ |
57aa50d4 TT |
4756 | |
4757 | /* Override any GCC internal prototype to avoid an error. | |
4758 | Use char because int might match the return type of a GCC | |
4759 | builtin and then its argument prototype would still apply. */ | |
57aa50d4 TT |
4760 | char dlopen (); |
4761 | int | |
54445dc2 | 4762 | main (void) |
57aa50d4 TT |
4763 | { |
4764 | return dlopen (); | |
4765 | ; | |
4766 | return 0; | |
4767 | } | |
b0cacab0 | 4768 | _ACEOF |
54445dc2 TT |
4769 | if ac_fn_c_try_link "$LINENO" |
4770 | then : | |
57aa50d4 | 4771 | ac_cv_lib_dl_dlopen=yes |
54445dc2 | 4772 | else $as_nop |
57aa50d4 | 4773 | ac_cv_lib_dl_dlopen=no |
b0cacab0 | 4774 | fi |
54445dc2 | 4775 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
57aa50d4 TT |
4776 | conftest$ac_exeext conftest.$ac_ext |
4777 | LIBS=$ac_check_lib_save_LIBS | |
b0cacab0 | 4778 | fi |
54445dc2 TT |
4779 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
4780 | printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } | |
4781 | if test "x$ac_cv_lib_dl_dlopen" = xyes | |
4782 | then : | |
57aa50d4 | 4783 | DLOPEN_LIB=-ldl |
b0cacab0 TT |
4784 | fi |
4785 | ||
b0cacab0 | 4786 | |
e1052144 | 4787 | |
57aa50d4 | 4788 | # Check whether --with-cc was given. |
54445dc2 TT |
4789 | if test ${with_cc+y} |
4790 | then : | |
d6a4bcb5 | 4791 | withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5 |
57aa50d4 | 4792 | fi |
b0cacab0 | 4793 | |
b0cacab0 | 4794 | |
57aa50d4 | 4795 | # Check whether --with-ccopts was given. |
54445dc2 TT |
4796 | if test ${with_ccopts+y} |
4797 | then : | |
d6a4bcb5 | 4798 | withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5 |
b0cacab0 | 4799 | fi |
e1052144 | 4800 | |
b0cacab0 | 4801 | |
57aa50d4 | 4802 | # Check whether --with-ldopts was given. |
54445dc2 TT |
4803 | if test ${with_ldopts+y} |
4804 | then : | |
d6a4bcb5 | 4805 | withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5 |
b0cacab0 TT |
4806 | fi |
4807 | ||
4808 | ac_ext=c | |
4809 | ac_cpp='$CPP $CPPFLAGS' | |
4810 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4811 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4812 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
57aa50d4 TT |
4813 | if test -n "$ac_tool_prefix"; then |
4814 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
4815 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
54445dc2 TT |
4816 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4817 | printf %s "checking for $ac_word... " >&6; } | |
4818 | if test ${ac_cv_prog_CC+y} | |
4819 | then : | |
4820 | printf %s "(cached) " >&6 | |
4821 | else $as_nop | |
57aa50d4 TT |
4822 | if test -n "$CC"; then |
4823 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4824 | else | |
4825 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4826 | for as_dir in $PATH | |
e1052144 TT |
4827 | do |
4828 | IFS=$as_save_IFS | |
54445dc2 TT |
4829 | case $as_dir in #((( |
4830 | '') as_dir=./ ;; | |
4831 | */) ;; | |
4832 | *) as_dir=$as_dir/ ;; | |
4833 | esac | |
39fd3d4f | 4834 | for ac_exec_ext in '' $ac_executable_extensions; do |
54445dc2 | 4835 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
57aa50d4 | 4836 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
54445dc2 | 4837 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
57aa50d4 TT |
4838 | break 2 |
4839 | fi | |
e1052144 | 4840 | done |
57aa50d4 | 4841 | done |
e1052144 | 4842 | IFS=$as_save_IFS |
e1052144 | 4843 | |
e1052144 | 4844 | fi |
57aa50d4 TT |
4845 | fi |
4846 | CC=$ac_cv_prog_CC | |
4847 | if test -n "$CC"; then | |
54445dc2 TT |
4848 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4849 | printf "%s\n" "$CC" >&6; } | |
57aa50d4 | 4850 | else |
54445dc2 TT |
4851 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4852 | printf "%s\n" "no" >&6; } | |
57aa50d4 | 4853 | fi |
e1052144 TT |
4854 | |
4855 | ||
57aa50d4 TT |
4856 | fi |
4857 | if test -z "$ac_cv_prog_CC"; then | |
4858 | ac_ct_CC=$CC | |
4859 | # Extract the first word of "gcc", so it can be a program name with args. | |
4860 | set dummy gcc; ac_word=$2 | |
54445dc2 TT |
4861 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4862 | printf %s "checking for $ac_word... " >&6; } | |
4863 | if test ${ac_cv_prog_ac_ct_CC+y} | |
4864 | then : | |
4865 | printf %s "(cached) " >&6 | |
4866 | else $as_nop | |
57aa50d4 TT |
4867 | if test -n "$ac_ct_CC"; then |
4868 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4869 | else | |
4870 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4871 | for as_dir in $PATH | |
e1052144 TT |
4872 | do |
4873 | IFS=$as_save_IFS | |
54445dc2 TT |
4874 | case $as_dir in #((( |
4875 | '') as_dir=./ ;; | |
4876 | */) ;; | |
4877 | *) as_dir=$as_dir/ ;; | |
4878 | esac | |
39fd3d4f | 4879 | for ac_exec_ext in '' $ac_executable_extensions; do |
54445dc2 | 4880 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
57aa50d4 | 4881 | ac_cv_prog_ac_ct_CC="gcc" |
54445dc2 | 4882 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
57aa50d4 TT |
4883 | break 2 |
4884 | fi | |
e1052144 | 4885 | done |
57aa50d4 | 4886 | done |
e1052144 | 4887 | IFS=$as_save_IFS |
b0cacab0 | 4888 | |
e1052144 | 4889 | fi |
57aa50d4 TT |
4890 | fi |
4891 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4892 | if test -n "$ac_ct_CC"; then | |
54445dc2 TT |
4893 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4894 | printf "%s\n" "$ac_ct_CC" >&6; } | |
b0cacab0 | 4895 | else |
54445dc2 TT |
4896 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4897 | printf "%s\n" "no" >&6; } | |
57aa50d4 | 4898 | fi |
b0cacab0 | 4899 | |
57aa50d4 TT |
4900 | if test "x$ac_ct_CC" = x; then |
4901 | CC="" | |
4902 | else | |
4903 | case $cross_compiling:$ac_tool_warned in | |
4904 | yes:) | |
54445dc2 TT |
4905 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
4906 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
57aa50d4 | 4907 | ac_tool_warned=yes ;; |
e1052144 | 4908 | esac |
57aa50d4 TT |
4909 | CC=$ac_ct_CC |
4910 | fi | |
b0cacab0 | 4911 | else |
57aa50d4 | 4912 | CC="$ac_cv_prog_CC" |
b0cacab0 | 4913 | fi |
e1052144 | 4914 | |
57aa50d4 TT |
4915 | if test -z "$CC"; then |
4916 | if test -n "$ac_tool_prefix"; then | |
4917 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
4918 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
54445dc2 TT |
4919 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4920 | printf %s "checking for $ac_word... " >&6; } | |
4921 | if test ${ac_cv_prog_CC+y} | |
4922 | then : | |
4923 | printf %s "(cached) " >&6 | |
4924 | else $as_nop | |
57aa50d4 TT |
4925 | if test -n "$CC"; then |
4926 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4927 | else | |
4928 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4929 | for as_dir in $PATH | |
4930 | do | |
4931 | IFS=$as_save_IFS | |
54445dc2 TT |
4932 | case $as_dir in #((( |
4933 | '') as_dir=./ ;; | |
4934 | */) ;; | |
4935 | *) as_dir=$as_dir/ ;; | |
4936 | esac | |
57aa50d4 | 4937 | for ac_exec_ext in '' $ac_executable_extensions; do |
54445dc2 | 4938 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
57aa50d4 | 4939 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
54445dc2 | 4940 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
57aa50d4 TT |
4941 | break 2 |
4942 | fi | |
4943 | done | |
4944 | done | |
4945 | IFS=$as_save_IFS | |
b0cacab0 | 4946 | |
a64c9c13 | 4947 | fi |
57aa50d4 TT |
4948 | fi |
4949 | CC=$ac_cv_prog_CC | |
4950 | if test -n "$CC"; then | |
54445dc2 TT |
4951 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4952 | printf "%s\n" "$CC" >&6; } | |
b0cacab0 | 4953 | else |
54445dc2 TT |
4954 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4955 | printf "%s\n" "no" >&6; } | |
a64c9c13 | 4956 | fi |
b0cacab0 | 4957 | |
b0cacab0 | 4958 | |
57aa50d4 TT |
4959 | fi |
4960 | fi | |
4961 | if test -z "$CC"; then | |
4962 | # Extract the first word of "cc", so it can be a program name with args. | |
4963 | set dummy cc; ac_word=$2 | |
54445dc2 TT |
4964 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4965 | printf %s "checking for $ac_word... " >&6; } | |
4966 | if test ${ac_cv_prog_CC+y} | |
4967 | then : | |
4968 | printf %s "(cached) " >&6 | |
4969 | else $as_nop | |
57aa50d4 TT |
4970 | if test -n "$CC"; then |
4971 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
a64c9c13 | 4972 | else |
57aa50d4 TT |
4973 | ac_prog_rejected=no |
4974 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4975 | for as_dir in $PATH | |
4976 | do | |
4977 | IFS=$as_save_IFS | |
54445dc2 TT |
4978 | case $as_dir in #((( |
4979 | '') as_dir=./ ;; | |
4980 | */) ;; | |
4981 | *) as_dir=$as_dir/ ;; | |
4982 | esac | |
57aa50d4 | 4983 | for ac_exec_ext in '' $ac_executable_extensions; do |
54445dc2 TT |
4984 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
4985 | if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
57aa50d4 TT |
4986 | ac_prog_rejected=yes |
4987 | continue | |
4988 | fi | |
4989 | ac_cv_prog_CC="cc" | |
54445dc2 | 4990 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
57aa50d4 TT |
4991 | break 2 |
4992 | fi | |
4993 | done | |
4994 | done | |
4995 | IFS=$as_save_IFS | |
b0cacab0 | 4996 | |
57aa50d4 TT |
4997 | if test $ac_prog_rejected = yes; then |
4998 | # We found a bogon in the path, so make sure we never use it. | |
4999 | set dummy $ac_cv_prog_CC | |
5000 | shift | |
5001 | if test $# != 0; then | |
5002 | # We chose a different compiler from the bogus one. | |
5003 | # However, it has the same basename, so the bogon will be chosen | |
5004 | # first if we set CC to just the basename; use the full file name. | |
5005 | shift | |
54445dc2 | 5006 | ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" |
57aa50d4 | 5007 | fi |
b0cacab0 | 5008 | fi |
b0cacab0 TT |
5009 | fi |
5010 | fi | |
57aa50d4 TT |
5011 | CC=$ac_cv_prog_CC |
5012 | if test -n "$CC"; then | |
54445dc2 TT |
5013 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
5014 | printf "%s\n" "$CC" >&6; } | |
57aa50d4 | 5015 | else |
54445dc2 TT |
5016 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5017 | printf "%s\n" "no" >&6; } | |
b0cacab0 | 5018 | fi |
b0cacab0 | 5019 | |
b0cacab0 TT |
5020 | |
5021 | fi | |
57aa50d4 TT |
5022 | if test -z "$CC"; then |
5023 | if test -n "$ac_tool_prefix"; then | |
5024 | for ac_prog in cl.exe | |
5025 | do | |
5026 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5027 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
54445dc2 TT |
5028 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5029 | printf %s "checking for $ac_word... " >&6; } | |
5030 | if test ${ac_cv_prog_CC+y} | |
5031 | then : | |
5032 | printf %s "(cached) " >&6 | |
5033 | else $as_nop | |
57aa50d4 TT |
5034 | if test -n "$CC"; then |
5035 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
5036 | else | |
5037 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5038 | for as_dir in $PATH | |
5039 | do | |
5040 | IFS=$as_save_IFS | |
54445dc2 TT |
5041 | case $as_dir in #((( |
5042 | '') as_dir=./ ;; | |
5043 | */) ;; | |
5044 | *) as_dir=$as_dir/ ;; | |
5045 | esac | |
57aa50d4 | 5046 | for ac_exec_ext in '' $ac_executable_extensions; do |
54445dc2 | 5047 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
57aa50d4 | 5048 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
54445dc2 | 5049 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
57aa50d4 TT |
5050 | break 2 |
5051 | fi | |
5052 | done | |
5053 | done | |
5054 | IFS=$as_save_IFS | |
b0cacab0 | 5055 | |
57aa50d4 TT |
5056 | fi |
5057 | fi | |
5058 | CC=$ac_cv_prog_CC | |
5059 | if test -n "$CC"; then | |
54445dc2 TT |
5060 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
5061 | printf "%s\n" "$CC" >&6; } | |
57aa50d4 | 5062 | else |
54445dc2 TT |
5063 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5064 | printf "%s\n" "no" >&6; } | |
57aa50d4 | 5065 | fi |
b0cacab0 TT |
5066 | |
5067 | ||
57aa50d4 TT |
5068 | test -n "$CC" && break |
5069 | done | |
5070 | fi | |
5071 | if test -z "$CC"; then | |
5072 | ac_ct_CC=$CC | |
5073 | for ac_prog in cl.exe | |
b0cacab0 | 5074 | do |
57aa50d4 TT |
5075 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
5076 | set dummy $ac_prog; ac_word=$2 | |
54445dc2 TT |
5077 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5078 | printf %s "checking for $ac_word... " >&6; } | |
5079 | if test ${ac_cv_prog_ac_ct_CC+y} | |
5080 | then : | |
5081 | printf %s "(cached) " >&6 | |
5082 | else $as_nop | |
57aa50d4 TT |
5083 | if test -n "$ac_ct_CC"; then |
5084 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
b0cacab0 | 5085 | else |
57aa50d4 TT |
5086 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5087 | for as_dir in $PATH | |
5088 | do | |
5089 | IFS=$as_save_IFS | |
54445dc2 TT |
5090 | case $as_dir in #((( |
5091 | '') as_dir=./ ;; | |
5092 | */) ;; | |
5093 | *) as_dir=$as_dir/ ;; | |
5094 | esac | |
57aa50d4 | 5095 | for ac_exec_ext in '' $ac_executable_extensions; do |
54445dc2 | 5096 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
57aa50d4 | 5097 | ac_cv_prog_ac_ct_CC="$ac_prog" |
54445dc2 | 5098 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
57aa50d4 TT |
5099 | break 2 |
5100 | fi | |
5101 | done | |
5102 | done | |
5103 | IFS=$as_save_IFS | |
b0cacab0 | 5104 | |
b0cacab0 | 5105 | fi |
b0cacab0 | 5106 | fi |
57aa50d4 TT |
5107 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
5108 | if test -n "$ac_ct_CC"; then | |
54445dc2 TT |
5109 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
5110 | printf "%s\n" "$ac_ct_CC" >&6; } | |
57aa50d4 | 5111 | else |
54445dc2 TT |
5112 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5113 | printf "%s\n" "no" >&6; } | |
b0cacab0 TT |
5114 | fi |
5115 | ||
b0cacab0 | 5116 | |
57aa50d4 TT |
5117 | test -n "$ac_ct_CC" && break |
5118 | done | |
b0cacab0 | 5119 | |
57aa50d4 TT |
5120 | if test "x$ac_ct_CC" = x; then |
5121 | CC="" | |
5122 | else | |
5123 | case $cross_compiling:$ac_tool_warned in | |
5124 | yes:) | |
54445dc2 TT |
5125 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
5126 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
57aa50d4 | 5127 | ac_tool_warned=yes ;; |
e1052144 | 5128 | esac |
57aa50d4 TT |
5129 | CC=$ac_ct_CC |
5130 | fi | |
5131 | fi | |
b0cacab0 | 5132 | |
b0cacab0 | 5133 | fi |
54445dc2 TT |
5134 | if test -z "$CC"; then |
5135 | if test -n "$ac_tool_prefix"; then | |
5136 | # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. | |
5137 | set dummy ${ac_tool_prefix}clang; ac_word=$2 | |
5138 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5139 | printf %s "checking for $ac_word... " >&6; } | |
5140 | if test ${ac_cv_prog_CC+y} | |
5141 | then : | |
5142 | printf %s "(cached) " >&6 | |
5143 | else $as_nop | |
5144 | if test -n "$CC"; then | |
5145 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
cdf186e4 | 5146 | else |
54445dc2 TT |
5147 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5148 | for as_dir in $PATH | |
57aa50d4 | 5149 | do |
54445dc2 TT |
5150 | IFS=$as_save_IFS |
5151 | case $as_dir in #((( | |
5152 | '') as_dir=./ ;; | |
5153 | */) ;; | |
5154 | *) as_dir=$as_dir/ ;; | |
5155 | esac | |
5156 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5157 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
5158 | ac_cv_prog_CC="${ac_tool_prefix}clang" | |
5159 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
5160 | break 2 | |
5161 | fi | |
57aa50d4 | 5162 | done |
54445dc2 TT |
5163 | done |
5164 | IFS=$as_save_IFS | |
2a29f135 | 5165 | |
e1052144 | 5166 | fi |
14b596d4 | 5167 | fi |
54445dc2 TT |
5168 | CC=$ac_cv_prog_CC |
5169 | if test -n "$CC"; then | |
5170 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
5171 | printf "%s\n" "$CC" >&6; } | |
14b596d4 | 5172 | else |
54445dc2 TT |
5173 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5174 | printf "%s\n" "no" >&6; } | |
14b596d4 TT |
5175 | fi |
5176 | ||
57aa50d4 | 5177 | |
14b596d4 | 5178 | fi |
54445dc2 TT |
5179 | if test -z "$ac_cv_prog_CC"; then |
5180 | ac_ct_CC=$CC | |
5181 | # Extract the first word of "clang", so it can be a program name with args. | |
5182 | set dummy clang; ac_word=$2 | |
5183 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5184 | printf %s "checking for $ac_word... " >&6; } | |
5185 | if test ${ac_cv_prog_ac_ct_CC+y} | |
5186 | then : | |
5187 | printf %s "(cached) " >&6 | |
5188 | else $as_nop | |
5189 | if test -n "$ac_ct_CC"; then | |
5190 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
5aa6c3f6 | 5191 | else |
54445dc2 TT |
5192 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5193 | for as_dir in $PATH | |
93613951 TT |
5194 | do |
5195 | IFS=$as_save_IFS | |
54445dc2 TT |
5196 | case $as_dir in #((( |
5197 | '') as_dir=./ ;; | |
5198 | */) ;; | |
5199 | *) as_dir=$as_dir/ ;; | |
5200 | esac | |
93613951 | 5201 | for ac_exec_ext in '' $ac_executable_extensions; do |
54445dc2 TT |
5202 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
5203 | ac_cv_prog_ac_ct_CC="clang" | |
5204 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
5205 | break 2 | |
5206 | fi | |
5207 | done | |
93613951 TT |
5208 | done |
5209 | IFS=$as_save_IFS | |
54445dc2 TT |
5210 | |
5211 | fi | |
5212 | fi | |
5213 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
5214 | if test -n "$ac_ct_CC"; then | |
5215 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
5216 | printf "%s\n" "$ac_ct_CC" >&6; } | |
5217 | else | |
5218 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5219 | printf "%s\n" "no" >&6; } | |
5220 | fi | |
5221 | ||
5222 | if test "x$ac_ct_CC" = x; then | |
5223 | CC="" | |
5224 | else | |
5225 | case $cross_compiling:$ac_tool_warned in | |
5226 | yes:) | |
5227 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5228 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5229 | ac_tool_warned=yes ;; | |
5230 | esac | |
5231 | CC=$ac_ct_CC | |
93613951 | 5232 | fi |
5aa6c3f6 | 5233 | else |
54445dc2 | 5234 | CC="$ac_cv_prog_CC" |
93613951 | 5235 | fi |
183c73b0 TT |
5236 | |
5237 | fi | |
5238 | ||
5239 | ||
54445dc2 TT |
5240 | test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
5241 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} | |
5242 | as_fn_error $? "no acceptable C compiler found in \$PATH | |
5243 | See \`config.log' for more details" "$LINENO" 5; } | |
5244 | ||
5245 | # Provide some information about the compiler. | |
5246 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
5247 | set X $ac_compile | |
5248 | ac_compiler=$2 | |
5249 | for ac_option in --version -v -V -qversion -version; do | |
5250 | { { ac_try="$ac_compiler $ac_option >&5" | |
5251 | case "(($ac_try" in | |
5252 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5253 | *) ac_try_echo=$ac_try;; | |
5254 | esac | |
5255 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
5256 | printf "%s\n" "$ac_try_echo"; } >&5 | |
5257 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
5258 | ac_status=$? | |
5259 | if test -s conftest.err; then | |
5260 | sed '10a\ | |
5261 | ... rest of stderr output deleted ... | |
5262 | 10q' conftest.err >conftest.er1 | |
5263 | cat conftest.er1 >&5 | |
5264 | fi | |
5265 | rm -f conftest.er1 conftest.err | |
5266 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5267 | test $ac_status = 0; } | |
5268 | done | |
5269 | ||
5270 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 | |
5271 | printf %s "checking whether the compiler supports GNU C... " >&6; } | |
5272 | if test ${ac_cv_c_compiler_gnu+y} | |
5273 | then : | |
5274 | printf %s "(cached) " >&6 | |
5275 | else $as_nop | |
93613951 TT |
5276 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5277 | /* end confdefs.h. */ | |
91d11da1 | 5278 | |
93613951 | 5279 | int |
54445dc2 | 5280 | main (void) |
93613951 | 5281 | { |
54445dc2 TT |
5282 | #ifndef __GNUC__ |
5283 | choke me | |
5284 | #endif | |
183c73b0 | 5285 | |
93613951 TT |
5286 | ; |
5287 | return 0; | |
5288 | } | |
5289 | _ACEOF | |
54445dc2 TT |
5290 | if ac_fn_c_try_compile "$LINENO" |
5291 | then : | |
5292 | ac_compiler_gnu=yes | |
5293 | else $as_nop | |
5294 | ac_compiler_gnu=no | |
5aa6c3f6 | 5295 | fi |
54445dc2 TT |
5296 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
5297 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
93613951 | 5298 | |
93613951 | 5299 | fi |
54445dc2 TT |
5300 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
5301 | printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } | |
5302 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
93613951 | 5303 | |
54445dc2 TT |
5304 | if test $ac_compiler_gnu = yes; then |
5305 | GCC=yes | |
5306 | else | |
5307 | GCC= | |
93613951 | 5308 | fi |
54445dc2 TT |
5309 | ac_test_CFLAGS=${CFLAGS+y} |
5310 | ac_save_CFLAGS=$CFLAGS | |
5311 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
5312 | printf %s "checking whether $CC accepts -g... " >&6; } | |
5313 | if test ${ac_cv_prog_cc_g+y} | |
5314 | then : | |
5315 | printf %s "(cached) " >&6 | |
5316 | else $as_nop | |
5317 | ac_save_c_werror_flag=$ac_c_werror_flag | |
5318 | ac_c_werror_flag=yes | |
5319 | ac_cv_prog_cc_g=no | |
5320 | CFLAGS="-g" | |
5321 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
93613951 | 5322 | /* end confdefs.h. */ |
93613951 | 5323 | |
54445dc2 TT |
5324 | int |
5325 | main (void) | |
5326 | { | |
5327 | ||
5328 | ; | |
5329 | return 0; | |
5330 | } | |
93613951 | 5331 | _ACEOF |
54445dc2 TT |
5332 | if ac_fn_c_try_compile "$LINENO" |
5333 | then : | |
5334 | ac_cv_prog_cc_g=yes | |
5335 | else $as_nop | |
5336 | CFLAGS="" | |
5337 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5338 | /* end confdefs.h. */ | |
93613951 | 5339 | |
54445dc2 TT |
5340 | int |
5341 | main (void) | |
5342 | { | |
93613951 | 5343 | |
54445dc2 TT |
5344 | ; |
5345 | return 0; | |
5346 | } | |
5347 | _ACEOF | |
5348 | if ac_fn_c_try_compile "$LINENO" | |
5349 | then : | |
93613951 | 5350 | |
54445dc2 TT |
5351 | else $as_nop |
5352 | ac_c_werror_flag=$ac_save_c_werror_flag | |
5353 | CFLAGS="-g" | |
5354 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
93613951 | 5355 | /* end confdefs.h. */ |
93613951 | 5356 | |
93613951 | 5357 | int |
54445dc2 | 5358 | main (void) |
93613951 | 5359 | { |
54445dc2 TT |
5360 | |
5361 | ; | |
93613951 TT |
5362 | return 0; |
5363 | } | |
5364 | _ACEOF | |
54445dc2 TT |
5365 | if ac_fn_c_try_compile "$LINENO" |
5366 | then : | |
5367 | ac_cv_prog_cc_g=yes | |
5368 | fi | |
5369 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
5370 | fi | |
5371 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
5372 | fi | |
5373 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
5374 | ac_c_werror_flag=$ac_save_c_werror_flag | |
5375 | fi | |
5376 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
5377 | printf "%s\n" "$ac_cv_prog_cc_g" >&6; } | |
5378 | if test $ac_test_CFLAGS; then | |
5379 | CFLAGS=$ac_save_CFLAGS | |
5380 | elif test $ac_cv_prog_cc_g = yes; then | |
5381 | if test "$GCC" = yes; then | |
5382 | CFLAGS="-g -O2" | |
5383 | else | |
5384 | CFLAGS="-g" | |
5385 | fi | |
93613951 | 5386 | else |
54445dc2 TT |
5387 | if test "$GCC" = yes; then |
5388 | CFLAGS="-O2" | |
5389 | else | |
5390 | CFLAGS= | |
5391 | fi | |
93613951 | 5392 | fi |
54445dc2 TT |
5393 | ac_prog_cc_stdc=no |
5394 | if test x$ac_prog_cc_stdc = xno | |
5395 | then : | |
5396 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 | |
5397 | printf %s "checking for $CC option to enable C11 features... " >&6; } | |
5398 | if test ${ac_cv_prog_cc_c11+y} | |
5399 | then : | |
5400 | printf %s "(cached) " >&6 | |
5401 | else $as_nop | |
5402 | ac_cv_prog_cc_c11=no | |
5403 | ac_save_CC=$CC | |
5404 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5405 | /* end confdefs.h. */ | |
5406 | $ac_c_conftest_c11_program | |
5407 | _ACEOF | |
5408 | for ac_arg in '' -std=gnu11 | |
5409 | do | |
5410 | CC="$ac_save_CC $ac_arg" | |
5411 | if ac_fn_c_try_compile "$LINENO" | |
5412 | then : | |
5413 | ac_cv_prog_cc_c11=$ac_arg | |
5414 | fi | |
5415 | rm -f core conftest.err conftest.$ac_objext conftest.beam | |
5416 | test "x$ac_cv_prog_cc_c11" != "xno" && break | |
5417 | done | |
5418 | rm -f conftest.$ac_ext | |
5419 | CC=$ac_save_CC | |
5420 | fi | |
5421 | ||
5422 | if test "x$ac_cv_prog_cc_c11" = xno | |
5423 | then : | |
5424 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
5425 | printf "%s\n" "unsupported" >&6; } | |
5426 | else $as_nop | |
5427 | if test "x$ac_cv_prog_cc_c11" = x | |
5428 | then : | |
5429 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
5430 | printf "%s\n" "none needed" >&6; } | |
5431 | else $as_nop | |
5432 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 | |
5433 | printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } | |
5434 | CC="$CC $ac_cv_prog_cc_c11" | |
5435 | fi | |
5436 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 | |
5437 | ac_prog_cc_stdc=c11 | |
5438 | fi | |
5439 | fi | |
5440 | if test x$ac_prog_cc_stdc = xno | |
5441 | then : | |
5442 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 | |
5443 | printf %s "checking for $CC option to enable C99 features... " >&6; } | |
5444 | if test ${ac_cv_prog_cc_c99+y} | |
5445 | then : | |
5446 | printf %s "(cached) " >&6 | |
5447 | else $as_nop | |
5448 | ac_cv_prog_cc_c99=no | |
5449 | ac_save_CC=$CC | |
5450 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5451 | /* end confdefs.h. */ | |
5452 | $ac_c_conftest_c99_program | |
5453 | _ACEOF | |
5454 | for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= | |
5455 | do | |
5456 | CC="$ac_save_CC $ac_arg" | |
5457 | if ac_fn_c_try_compile "$LINENO" | |
5458 | then : | |
5459 | ac_cv_prog_cc_c99=$ac_arg | |
5460 | fi | |
5461 | rm -f core conftest.err conftest.$ac_objext conftest.beam | |
5462 | test "x$ac_cv_prog_cc_c99" != "xno" && break | |
5463 | done | |
5464 | rm -f conftest.$ac_ext | |
5465 | CC=$ac_save_CC | |
5466 | fi | |
5467 | ||
5468 | if test "x$ac_cv_prog_cc_c99" = xno | |
5469 | then : | |
5470 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
5471 | printf "%s\n" "unsupported" >&6; } | |
5472 | else $as_nop | |
5473 | if test "x$ac_cv_prog_cc_c99" = x | |
5474 | then : | |
5475 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
5476 | printf "%s\n" "none needed" >&6; } | |
5477 | else $as_nop | |
5478 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 | |
5479 | printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } | |
5480 | CC="$CC $ac_cv_prog_cc_c99" | |
5481 | fi | |
5482 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 | |
5483 | ac_prog_cc_stdc=c99 | |
5484 | fi | |
5485 | fi | |
5486 | if test x$ac_prog_cc_stdc = xno | |
5487 | then : | |
5488 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 | |
5489 | printf %s "checking for $CC option to enable C89 features... " >&6; } | |
5490 | if test ${ac_cv_prog_cc_c89+y} | |
5491 | then : | |
5492 | printf %s "(cached) " >&6 | |
5493 | else $as_nop | |
5494 | ac_cv_prog_cc_c89=no | |
5495 | ac_save_CC=$CC | |
5496 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5497 | /* end confdefs.h. */ | |
5498 | $ac_c_conftest_c89_program | |
5499 | _ACEOF | |
5500 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
5501 | do | |
5502 | CC="$ac_save_CC $ac_arg" | |
5503 | if ac_fn_c_try_compile "$LINENO" | |
5504 | then : | |
5505 | ac_cv_prog_cc_c89=$ac_arg | |
5506 | fi | |
5507 | rm -f core conftest.err conftest.$ac_objext conftest.beam | |
5508 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
5509 | done | |
5510 | rm -f conftest.$ac_ext | |
5511 | CC=$ac_save_CC | |
93613951 TT |
5512 | fi |
5513 | ||
54445dc2 TT |
5514 | if test "x$ac_cv_prog_cc_c89" = xno |
5515 | then : | |
5516 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
5517 | printf "%s\n" "unsupported" >&6; } | |
5518 | else $as_nop | |
5519 | if test "x$ac_cv_prog_cc_c89" = x | |
5520 | then : | |
5521 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
5522 | printf "%s\n" "none needed" >&6; } | |
5523 | else $as_nop | |
5524 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
5525 | printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } | |
5526 | CC="$CC $ac_cv_prog_cc_c89" | |
5527 | fi | |
5528 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 | |
5529 | ac_prog_cc_stdc=c89 | |
93613951 TT |
5530 | fi |
5531 | fi | |
93613951 | 5532 | |
54445dc2 TT |
5533 | ac_ext=c |
5534 | ac_cpp='$CPP $CPPFLAGS' | |
5535 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5536 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5537 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5538 | ||
5539 | if test "$GCC" = yes; then | |
5540 | RDYNAMIC="-rdynamic" | |
5541 | ||
5542 | fi | |
5543 | ac_ext=c | |
5544 | ac_cpp='$CPP $CPPFLAGS' | |
5545 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5546 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5547 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5548 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
5549 | printf %s "checking how to run the C preprocessor... " >&6; } | |
5550 | # On Suns, sometimes $CPP names a directory. | |
5551 | if test -n "$CPP" && test -d "$CPP"; then | |
5552 | CPP= | |
5553 | fi | |
5554 | if test -z "$CPP"; then | |
5555 | if test ${ac_cv_prog_CPP+y} | |
5556 | then : | |
5557 | printf %s "(cached) " >&6 | |
5558 | else $as_nop | |
5559 | # Double quotes because $CC needs to be expanded | |
5560 | for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp | |
5561 | do | |
5562 | ac_preproc_ok=false | |
5563 | for ac_c_preproc_warn_flag in '' yes | |
5564 | do | |
5565 | # Use a header file that comes with gcc, so configuring glibc | |
5566 | # with a fresh cross-compiler works. | |
5567 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
5568 | # not just through cpp. "Syntax error" is here to catch this case. | |
5569 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5570 | /* end confdefs.h. */ | |
5571 | #include <limits.h> | |
5572 | Syntax error | |
5573 | _ACEOF | |
5574 | if ac_fn_c_try_cpp "$LINENO" | |
5575 | then : | |
93613951 | 5576 | |
54445dc2 TT |
5577 | else $as_nop |
5578 | # Broken: fails on valid input. | |
5579 | continue | |
93613951 | 5580 | fi |
54445dc2 | 5581 | rm -f conftest.err conftest.i conftest.$ac_ext |
93613951 | 5582 | |
54445dc2 TT |
5583 | # OK, works on sane cases. Now check whether nonexistent headers |
5584 | # can be detected and how. | |
5585 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5586 | /* end confdefs.h. */ | |
5587 | #include <ac_nonexistent.h> | |
93613951 | 5588 | _ACEOF |
54445dc2 TT |
5589 | if ac_fn_c_try_cpp "$LINENO" |
5590 | then : | |
5591 | # Broken: success on invalid input. | |
5592 | continue | |
5593 | else $as_nop | |
5594 | # Passes both tests. | |
5595 | ac_preproc_ok=: | |
5596 | break | |
93613951 | 5597 | fi |
54445dc2 | 5598 | rm -f conftest.err conftest.i conftest.$ac_ext |
93613951 TT |
5599 | |
5600 | done | |
54445dc2 TT |
5601 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
5602 | rm -f conftest.i conftest.err conftest.$ac_ext | |
5603 | if $ac_preproc_ok | |
5604 | then : | |
5605 | break | |
93613951 TT |
5606 | fi |
5607 | ||
54445dc2 TT |
5608 | done |
5609 | ac_cv_prog_CPP=$CPP | |
93613951 | 5610 | |
54445dc2 TT |
5611 | fi |
5612 | CPP=$ac_cv_prog_CPP | |
93613951 | 5613 | else |
54445dc2 TT |
5614 | ac_cv_prog_CPP=$CPP |
5615 | fi | |
5616 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
5617 | printf "%s\n" "$CPP" >&6; } | |
5618 | ac_preproc_ok=false | |
5619 | for ac_c_preproc_warn_flag in '' yes | |
5620 | do | |
5621 | # Use a header file that comes with gcc, so configuring glibc | |
5622 | # with a fresh cross-compiler works. | |
5623 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
5624 | # not just through cpp. "Syntax error" is here to catch this case. | |
93613951 TT |
5625 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5626 | /* end confdefs.h. */ | |
54445dc2 TT |
5627 | #include <limits.h> |
5628 | Syntax error | |
5629 | _ACEOF | |
5630 | if ac_fn_c_try_cpp "$LINENO" | |
5631 | then : | |
93613951 | 5632 | |
54445dc2 TT |
5633 | else $as_nop |
5634 | # Broken: fails on valid input. | |
5635 | continue | |
5636 | fi | |
5637 | rm -f conftest.err conftest.i conftest.$ac_ext | |
93613951 | 5638 | |
54445dc2 TT |
5639 | # OK, works on sane cases. Now check whether nonexistent headers |
5640 | # can be detected and how. | |
5641 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5642 | /* end confdefs.h. */ | |
5643 | #include <ac_nonexistent.h> | |
93613951 | 5644 | _ACEOF |
54445dc2 TT |
5645 | if ac_fn_c_try_cpp "$LINENO" |
5646 | then : | |
5647 | # Broken: success on invalid input. | |
5648 | continue | |
5649 | else $as_nop | |
5650 | # Passes both tests. | |
5651 | ac_preproc_ok=: | |
5652 | break | |
93613951 | 5653 | fi |
54445dc2 | 5654 | rm -f conftest.err conftest.i conftest.$ac_ext |
93613951 | 5655 | |
54445dc2 TT |
5656 | done |
5657 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
5658 | rm -f conftest.i conftest.err conftest.$ac_ext | |
5659 | if $ac_preproc_ok | |
5660 | then : | |
93613951 | 5661 | |
54445dc2 TT |
5662 | else $as_nop |
5663 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
5664 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} | |
5665 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | |
5666 | See \`config.log' for more details" "$LINENO" 5; } | |
5667 | fi | |
93613951 | 5668 | |
54445dc2 TT |
5669 | ac_ext=c |
5670 | ac_cpp='$CPP $CPPFLAGS' | |
5671 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5672 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5673 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
93613951 | 5674 | |
54445dc2 TT |
5675 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5 |
5676 | printf %s "checking for additional special compiler flags... " >&6; } | |
5677 | if test "$GCC" = yes | |
5678 | then | |
5679 | case "$host_cpu" in | |
5680 | alpha) addcflags="-mieee" ;; | |
5681 | esac | |
5682 | fi | |
5683 | if test "x$addcflags" != x | |
5684 | then | |
5685 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5 | |
5686 | printf "%s\n" "$addcflags" >&6; } | |
5687 | CFLAGS="$addcflags $CFLAGS" | |
5688 | else | |
5689 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (none)" >&5 | |
5690 | printf "%s\n" "(none)" >&6; } | |
5691 | fi | |
93613951 TT |
5692 | LIB_EXT=.a |
5693 | STATIC_LIB_EXT=.a | |
5694 | PROFILED_LIB_EXT=.a | |
5695 | ||
5696 | # Check whether --with-root-prefix was given. | |
54445dc2 TT |
5697 | if test ${with_root_prefix+y} |
5698 | then : | |
93613951 | 5699 | withval=$with_root_prefix; root_prefix=$withval |
54445dc2 | 5700 | else $as_nop |
93613951 TT |
5701 | root_prefix=NONE |
5702 | fi | |
5703 | # Check whether --enable-maintainer-mode was given. | |
54445dc2 TT |
5704 | if test ${enable_maintainer_mode+y} |
5705 | then : | |
93613951 TT |
5706 | enableval=$enable_maintainer_mode; if test "$enableval" = "no" |
5707 | then | |
5708 | MAINTAINER_CMT=# | |
54445dc2 TT |
5709 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5 |
5710 | printf "%s\n" "Disabling maintainer mode" >&6; } | |
93613951 TT |
5711 | else |
5712 | MAINTAINER_CMT= | |
54445dc2 TT |
5713 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5 |
5714 | printf "%s\n" "Enabling maintainer mode" >&6; } | |
93613951 TT |
5715 | fi |
5716 | ||
54445dc2 | 5717 | else $as_nop |
93613951 | 5718 | MAINTAINER_CMT=# |
54445dc2 TT |
5719 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5 |
5720 | printf "%s\n" "Disabling maintainer mode by default" >&6; } | |
93613951 TT |
5721 | |
5722 | fi | |
5723 | ||
5724 | ||
5725 | # Check whether --enable-symlink-install was given. | |
54445dc2 TT |
5726 | if test ${enable_symlink_install+y} |
5727 | then : | |
93613951 TT |
5728 | enableval=$enable_symlink_install; if test "$enableval" = "no" |
5729 | then | |
5730 | LINK_INSTALL_FLAGS=-f | |
54445dc2 TT |
5731 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5 |
5732 | printf "%s\n" "Disabling symlinks for install" >&6; } | |
93613951 TT |
5733 | else |
5734 | LINK_INSTALL_FLAGS=-sf | |
54445dc2 TT |
5735 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5 |
5736 | printf "%s\n" "Enabling symlinks for install" >&6; } | |
93613951 TT |
5737 | fi |
5738 | ||
54445dc2 | 5739 | else $as_nop |
93613951 | 5740 | LINK_INSTALL_FLAGS=-f |
54445dc2 TT |
5741 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5 |
5742 | printf "%s\n" "Disabling symlinks for install by default" >&6; } | |
93613951 TT |
5743 | |
5744 | fi | |
5745 | ||
5746 | ||
5747 | relative_symlink_defined= | |
5748 | # Check whether --enable-relative-symlinks was given. | |
54445dc2 TT |
5749 | if test ${enable_relative_symlinks+y} |
5750 | then : | |
93613951 TT |
5751 | enableval=$enable_relative_symlinks; if test "$enableval" = "no" |
5752 | then | |
5753 | SYMLINK_RELATIVE= | |
5754 | relative_symlink_defined=yes | |
54445dc2 TT |
5755 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5 |
5756 | printf "%s\n" "Disabling relative symlinks for install" >&6; } | |
93613951 TT |
5757 | else |
5758 | SYMLINK_RELATIVE=--relative | |
5759 | relative_symlink_defined=yes | |
54445dc2 TT |
5760 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5 |
5761 | printf "%s\n" "Enabling relative symlinks for install" >&6; } | |
93613951 TT |
5762 | fi |
5763 | fi | |
5764 | ||
5765 | # Check whether --enable-symlink-relative-symlinks was given. | |
54445dc2 TT |
5766 | if test ${enable_symlink_relative_symlinks+y} |
5767 | then : | |
93613951 TT |
5768 | enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no" |
5769 | then | |
5770 | SYMLINK_RELATIVE=yes | |
54445dc2 TT |
5771 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5 |
5772 | printf "%s\n" "Disabling relative symlinks for install" >&6; } | |
93613951 TT |
5773 | else |
5774 | SYMLINK_RELATIVE=--relative | |
54445dc2 TT |
5775 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5 |
5776 | printf "%s\n" "Enabling relative symlinks for install" >&6; } | |
93613951 TT |
5777 | fi |
5778 | ||
54445dc2 | 5779 | else $as_nop |
93613951 TT |
5780 | if test -z "$relative_symlink_defined" |
5781 | then | |
5782 | SYMLINK_RELATIVE= | |
54445dc2 TT |
5783 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5 |
5784 | printf "%s\n" "Disabling relative symlinks for install by default" >&6; } | |
93613951 TT |
5785 | fi |
5786 | ||
5787 | fi | |
5788 | ||
5789 | ||
5790 | # Check whether --enable-symlink-build was given. | |
54445dc2 TT |
5791 | if test ${enable_symlink_build+y} |
5792 | then : | |
5aa6c3f6 TT |
5793 | enableval=$enable_symlink_build; if test "$enableval" = "no" |
5794 | then | |
5795 | LINK_BUILD_FLAGS= | |
54445dc2 TT |
5796 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5 |
5797 | printf "%s\n" "Disabling symlinks for build" >&6; } | |
5aa6c3f6 TT |
5798 | else |
5799 | LINK_BUILD_FLAGS=-s | |
54445dc2 TT |
5800 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5 |
5801 | printf "%s\n" "Enabling symlinks for build" >&6; } | |
5aa6c3f6 TT |
5802 | fi |
5803 | ||
54445dc2 | 5804 | else $as_nop |
5aa6c3f6 | 5805 | LINK_BUILD_FLAGS= |
54445dc2 TT |
5806 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5 |
5807 | printf "%s\n" "Disabling symlinks for build by default" >&6; } | |
5aa6c3f6 TT |
5808 | |
5809 | fi | |
5810 | ||
5811 | ||
57aa50d4 | 5812 | # Check whether --enable-verbose-makecmds was given. |
54445dc2 TT |
5813 | if test ${enable_verbose_makecmds+y} |
5814 | then : | |
57aa50d4 TT |
5815 | enableval=$enable_verbose_makecmds; if test "$enableval" = "no" |
5816 | then | |
54445dc2 TT |
5817 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5 |
5818 | printf "%s\n" "Disabling verbose make commands" >&6; } | |
57aa50d4 | 5819 | E=@echo |
c1986ecb | 5820 | ES=echo |
57aa50d4 | 5821 | Q=@ |
14b596d4 | 5822 | else |
54445dc2 TT |
5823 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5 |
5824 | printf "%s\n" "Enabling verbose make commands" >&6; } | |
57aa50d4 | 5825 | E=@\\# |
c1986ecb | 5826 | ES=\\# |
57aa50d4 TT |
5827 | Q= |
5828 | fi | |
14b596d4 | 5829 | |
54445dc2 TT |
5830 | else $as_nop |
5831 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5 | |
5832 | printf "%s\n" "Disabling verbose make commands" >&6; } | |
57aa50d4 | 5833 | E=@echo |
c1986ecb | 5834 | ES=echo |
57aa50d4 | 5835 | Q=@ |
14b596d4 | 5836 | |
14b596d4 TT |
5837 | fi |
5838 | ||
14b596d4 | 5839 | |
57aa50d4 | 5840 | |
c1986ecb | 5841 | |
57aa50d4 TT |
5842 | E2_PKG_CONFIG_STATIC=--static |
5843 | LDFLAG_DYNAMIC= | |
5844 | PRIVATE_LIBS_CMT= | |
5845 | # Check whether --enable-elf-shlibs was given. | |
54445dc2 TT |
5846 | if test ${enable_elf_shlibs+y} |
5847 | then : | |
57aa50d4 | 5848 | enableval=$enable_elf_shlibs; if test "$enableval" = "no" |
cdf186e4 | 5849 | then |
57aa50d4 TT |
5850 | ELF_CMT=# |
5851 | MAKEFILE_ELF=/dev/null | |
54445dc2 TT |
5852 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5 |
5853 | printf "%s\n" "Disabling ELF shared libraries" >&6; } | |
cdf186e4 | 5854 | else |
57aa50d4 TT |
5855 | E2_PKG_CONFIG_STATIC= |
5856 | ELF_CMT= | |
5857 | MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib | |
5858 | case "$host_os" in | |
5859 | solaris2.*) | |
5860 | MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib | |
5861 | ;; | |
5862 | esac | |
5863 | BINARY_TYPE=elfbin | |
5864 | LIB_EXT=.so | |
5865 | PRIVATE_LIBS_CMT=# | |
5866 | LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib' | |
54445dc2 TT |
5867 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5 |
5868 | printf "%s\n" "Enabling ELF shared libraries" >&6; } | |
cdf186e4 TT |
5869 | fi |
5870 | ||
54445dc2 | 5871 | else $as_nop |
57aa50d4 TT |
5872 | MAKEFILE_ELF=/dev/null |
5873 | ELF_CMT=# | |
54445dc2 TT |
5874 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5 |
5875 | printf "%s\n" "Disabling ELF shared libraries by default" >&6; } | |
cdf186e4 | 5876 | |
e1052144 TT |
5877 | fi |
5878 | ||
cdf186e4 | 5879 | |
57aa50d4 TT |
5880 | |
5881 | # Check whether --enable-bsd-shlibs was given. | |
54445dc2 TT |
5882 | if test ${enable_bsd_shlibs+y} |
5883 | then : | |
57aa50d4 | 5884 | enableval=$enable_bsd_shlibs; if test "$enableval" = "no" |
cdf186e4 | 5885 | then |
57aa50d4 TT |
5886 | BSDLIB_CMT=# |
5887 | MAKEFILE_BSDLIB=/dev/null | |
54445dc2 TT |
5888 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5 |
5889 | printf "%s\n" "Disabling BSD shared libraries" >&6; } | |
cdf186e4 | 5890 | else |
57aa50d4 TT |
5891 | E2_PKG_CONFIG_STATIC= |
5892 | BSDLIB_CMT= | |
5893 | MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib | |
5894 | LIB_EXT=.so | |
5895 | case "$host_os" in | |
5896 | darwin*) | |
5897 | MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib | |
5898 | LIB_EXT=.dylib | |
5899 | ;; | |
5900 | esac | |
54445dc2 TT |
5901 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5 |
5902 | printf "%s\n" "Enabling BSD shared libraries" >&6; } | |
cdf186e4 TT |
5903 | fi |
5904 | ||
54445dc2 | 5905 | else $as_nop |
57aa50d4 TT |
5906 | MAKEFILE_BSDLIB=/dev/null |
5907 | BSDLIB_CMT=# | |
54445dc2 TT |
5908 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5 |
5909 | printf "%s\n" "Disabling BSD shared libraries by default" >&6; } | |
cdf186e4 | 5910 | |
e1052144 TT |
5911 | fi |
5912 | ||
cdf186e4 | 5913 | |
57aa50d4 TT |
5914 | |
5915 | # Check whether --enable-profile was given. | |
54445dc2 TT |
5916 | if test ${enable_profile+y} |
5917 | then : | |
57aa50d4 | 5918 | enableval=$enable_profile; if test "$enableval" = "no" |
cdf186e4 | 5919 | then |
57aa50d4 TT |
5920 | PROFILE_CMT=# |
5921 | MAKEFILE_PROFILE=/dev/null | |
54445dc2 TT |
5922 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5 |
5923 | printf "%s\n" "Disabling profiling libraries" >&6; } | |
cdf186e4 | 5924 | else |
57aa50d4 TT |
5925 | PROFILE_CMT= |
5926 | MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile | |
5927 | PROFILED_LIB_EXT=_p.a | |
54445dc2 TT |
5928 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5 |
5929 | printf "%s\n" "Building profiling libraries" >&6; } | |
cdf186e4 TT |
5930 | fi |
5931 | ||
54445dc2 | 5932 | else $as_nop |
57aa50d4 TT |
5933 | PROFILE_CMT=# |
5934 | MAKEFILE_PROFILE=/dev/null | |
54445dc2 TT |
5935 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5 |
5936 | printf "%s\n" "Disabling profiling libraries by default" >&6; } | |
cdf186e4 | 5937 | |
e1052144 TT |
5938 | fi |
5939 | ||
cdf186e4 | 5940 | |
57aa50d4 | 5941 | |
fedfb27f | 5942 | # Check whether --enable-gcov was given. |
54445dc2 TT |
5943 | if test ${enable_gcov+y} |
5944 | then : | |
fedfb27f TT |
5945 | enableval=$enable_gcov; if test "$enableval" = "yes" |
5946 | then | |
5947 | CFLAGS="-g -fprofile-arcs -ftest-coverage" | |
5948 | LDFLAGS="-fprofile-arcs -ftest-coverage" | |
54445dc2 TT |
5949 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling gcov support" >&5 |
5950 | printf "%s\n" "Enabling gcov support" >&6; } | |
fedfb27f TT |
5951 | fi |
5952 | ||
5953 | fi | |
5954 | ||
fd1677e8 TT |
5955 | CFLAGS_SHLIB="${CFLAGS_SHLIB:-$CFLAGS}" |
5956 | CFLAGS_STLIB="${CFLAGS_STLIB:-$CFLAGS}" | |
5957 | LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS} | |
5958 | LDFLAGS_STATIC=${LDFLAGS_STATIC:-$LDFLAGS} | |
5959 | # Check whether --enable-hardening was given. | |
54445dc2 TT |
5960 | if test ${enable_hardening+y} |
5961 | then : | |
fd1677e8 TT |
5962 | enableval=$enable_hardening; if test "$enableval" = "yes" |
5963 | then | |
5964 | HARDEN_CFLAGS="-D_FORTIFY_SOURCE=2 -fstack-protector-strong" | |
5965 | HARDEN_LDFLAGS="-Wl,-z,relro -Wl,-z,now" | |
5966 | CFLAGS="$CFLAGS $HARDEN_CFLAGS -fPIE" | |
5967 | CFLAGS_SHLIB="$CFLAGS_SHLIB $HARDEN_CFLAGS" | |
5968 | CFLAGS_STLIB="$CFLAGS_STLIB $HARDEN_CFLAGS -fPIE" | |
5969 | LDFLAGS="$LDFLAGS $HARDEN_LDFLAGS -fPIE -pie" | |
5970 | LDFLAGS_STATIC="$LDFLAGS_STATIC $HARDEN_LDFLAGS" | |
5971 | LDFLAGS_SHLIB="$LDFLAGS_SHLIB $HARDEN_LDFLAGS" | |
54445dc2 TT |
5972 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling hardening support" >&5 |
5973 | printf "%s\n" "Enabling hardening support" >&6; } | |
fd1677e8 TT |
5974 | fi |
5975 | ||
5976 | fi | |
cdf186e4 | 5977 | |
57aa50d4 TT |
5978 | |
5979 | ||
5980 | ||
5981 | ||
5982 | ||
5983 | # Check whether --enable-jbd-debug was given. | |
54445dc2 TT |
5984 | if test ${enable_jbd_debug+y} |
5985 | then : | |
57aa50d4 | 5986 | enableval=$enable_jbd_debug; if test "$enableval" = "no" |
5d40773b | 5987 | then |
54445dc2 TT |
5988 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5 |
5989 | printf "%s\n" "Disabling journal debugging" >&6; } | |
5d40773b | 5990 | else |
d1154eb4 | 5991 | |
54445dc2 | 5992 | printf "%s\n" "#define CONFIG_JBD_DEBUG 1" >>confdefs.h |
57aa50d4 | 5993 | |
54445dc2 TT |
5994 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5 |
5995 | printf "%s\n" "Enabling journal debugging" >&6; } | |
5d40773b TT |
5996 | fi |
5997 | ||
54445dc2 TT |
5998 | else $as_nop |
5999 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5 | |
6000 | printf "%s\n" "Disabling journal debugging by default" >&6; } | |
5d40773b | 6001 | |
e1052144 TT |
6002 | fi |
6003 | ||
57aa50d4 | 6004 | # Check whether --enable-blkid-debug was given. |
54445dc2 TT |
6005 | if test ${enable_blkid_debug+y} |
6006 | then : | |
57aa50d4 | 6007 | enableval=$enable_blkid_debug; if test "$enableval" = "no" |
3249394d | 6008 | then |
54445dc2 TT |
6009 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5 |
6010 | printf "%s\n" "Disabling blkid debugging" >&6; } | |
3249394d | 6011 | else |
d1154eb4 | 6012 | |
54445dc2 | 6013 | printf "%s\n" "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h |
57aa50d4 | 6014 | |
54445dc2 TT |
6015 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5 |
6016 | printf "%s\n" "Enabling blkid debugging" >&6; } | |
3249394d TT |
6017 | fi |
6018 | ||
54445dc2 TT |
6019 | else $as_nop |
6020 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5 | |
6021 | printf "%s\n" "Disabling blkid debugging by default" >&6; } | |
3249394d TT |
6022 | |
6023 | fi | |
6024 | ||
57aa50d4 | 6025 | # Check whether --enable-testio-debug was given. |
54445dc2 TT |
6026 | if test ${enable_testio_debug+y} |
6027 | then : | |
d1154eb4 TT |
6028 | enableval=$enable_testio_debug; |
6029 | if test "$enableval" = "no" | |
3249394d | 6030 | then |
54445dc2 TT |
6031 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5 |
6032 | printf "%s\n" "Disabling testio debugging" >&6; } | |
57aa50d4 | 6033 | TEST_IO_CMT="#" |
3249394d | 6034 | else |
57aa50d4 | 6035 | TEST_IO_CMT= |
54445dc2 | 6036 | printf "%s\n" "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h |
3249394d | 6037 | |
54445dc2 TT |
6038 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5 |
6039 | printf "%s\n" "Enabling testio debugging" >&6; } | |
57aa50d4 | 6040 | fi |
3249394d | 6041 | |
54445dc2 TT |
6042 | else $as_nop |
6043 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5 | |
6044 | printf "%s\n" "Enabling testio debugging by default" >&6; } | |
6045 | printf "%s\n" "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h | |
3249394d | 6046 | |
57aa50d4 | 6047 | TEST_IO_CMT= |
3249394d TT |
6048 | |
6049 | fi | |
6050 | ||
3249394d | 6051 | |
b9e66a18 | 6052 | # Check whether --enable-developer-features was given. |
54445dc2 TT |
6053 | if test ${enable_developer_features+y} |
6054 | then : | |
b9e66a18 TT |
6055 | enableval=$enable_developer_features; |
6056 | if test "$enableval" = "yes" | |
6057 | then | |
6058 | DEV_FEATURES_CMT= | |
54445dc2 | 6059 | printf "%s\n" "#define CONFIG_DEVELOPER_FEATURES 1" >>confdefs.h |
b9e66a18 | 6060 | |
54445dc2 TT |
6061 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling ext4 developer features" >&5 |
6062 | printf "%s\n" "Enabling ext4 developer features" >&6; } | |
b9e66a18 | 6063 | else |
54445dc2 TT |
6064 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling ext4 developer features" >&5 |
6065 | printf "%s\n" "Disabling ext4 developer features" >&6; } | |
b9e66a18 TT |
6066 | DEV_FEATURES_CMT="#" |
6067 | fi | |
6068 | ||
54445dc2 TT |
6069 | else $as_nop |
6070 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling ext4 developer features by default" >&5 | |
6071 | printf "%s\n" "Disabling ext4 developer features by default" >&6; } | |
b9e66a18 TT |
6072 | DEV_FEATURES_CMT= |
6073 | ||
6074 | fi | |
6075 | ||
6076 | ||
57aa50d4 TT |
6077 | |
6078 | ||
93613951 TT |
6079 | |
6080 | ||
6081 | ||
6082 | ||
6083 | ||
57aa50d4 | 6084 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
93613951 | 6085 | if test -n "$ac_tool_prefix"; then |
57aa50d4 TT |
6086 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
6087 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
54445dc2 TT |
6088 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6089 | printf %s "checking for $ac_word... " >&6; } | |
6090 | if test ${ac_cv_path_PKG_CONFIG+y} | |
6091 | then : | |
6092 | printf %s "(cached) " >&6 | |
6093 | else $as_nop | |
57aa50d4 TT |
6094 | case $PKG_CONFIG in |
6095 | [\\/]* | ?:[\\/]*) | |
6096 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
6097 | ;; | |
6098 | *) | |
6099 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6100 | for as_dir in $PATH | |
6101 | do | |
6102 | IFS=$as_save_IFS | |
54445dc2 TT |
6103 | case $as_dir in #((( |
6104 | '') as_dir=./ ;; | |
6105 | */) ;; | |
6106 | *) as_dir=$as_dir/ ;; | |
6107 | esac | |
57aa50d4 | 6108 | for ac_exec_ext in '' $ac_executable_extensions; do |
54445dc2 TT |
6109 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
6110 | ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" | |
6111 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
57aa50d4 TT |
6112 | break 2 |
6113 | fi | |
6114 | done | |
6115 | done | |
6116 | IFS=$as_save_IFS | |
6117 | ||
6118 | ;; | |
6119 | esac | |
6120 | fi | |
6121 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
6122 | if test -n "$PKG_CONFIG"; then | |
54445dc2 TT |
6123 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
6124 | printf "%s\n" "$PKG_CONFIG" >&6; } | |
57aa50d4 | 6125 | else |
54445dc2 TT |
6126 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6127 | printf "%s\n" "no" >&6; } | |
3249394d TT |
6128 | fi |
6129 | ||
6130 | ||
57aa50d4 TT |
6131 | fi |
6132 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
6133 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
6134 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
6135 | set dummy pkg-config; ac_word=$2 | |
54445dc2 TT |
6136 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6137 | printf %s "checking for $ac_word... " >&6; } | |
6138 | if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} | |
6139 | then : | |
6140 | printf %s "(cached) " >&6 | |
6141 | else $as_nop | |
57aa50d4 TT |
6142 | case $ac_pt_PKG_CONFIG in |
6143 | [\\/]* | ?:[\\/]*) | |
6144 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
6145 | ;; | |
6146 | *) | |
6147 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6148 | for as_dir in $PATH | |
6149 | do | |
6150 | IFS=$as_save_IFS | |
54445dc2 TT |
6151 | case $as_dir in #((( |
6152 | '') as_dir=./ ;; | |
6153 | */) ;; | |
6154 | *) as_dir=$as_dir/ ;; | |
6155 | esac | |
57aa50d4 | 6156 | for ac_exec_ext in '' $ac_executable_extensions; do |
54445dc2 TT |
6157 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
6158 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" | |
6159 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
57aa50d4 TT |
6160 | break 2 |
6161 | fi | |
6162 | done | |
6163 | done | |
6164 | IFS=$as_save_IFS | |
3249394d | 6165 | |
57aa50d4 TT |
6166 | ;; |
6167 | esac | |
6168 | fi | |
6169 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
6170 | if test -n "$ac_pt_PKG_CONFIG"; then | |
54445dc2 TT |
6171 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 |
6172 | printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } | |
57aa50d4 | 6173 | else |
54445dc2 TT |
6174 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6175 | printf "%s\n" "no" >&6; } | |
57aa50d4 | 6176 | fi |
3249394d | 6177 | |
57aa50d4 TT |
6178 | if test "x$ac_pt_PKG_CONFIG" = x; then |
6179 | PKG_CONFIG="" | |
6180 | else | |
6181 | case $cross_compiling:$ac_tool_warned in | |
6182 | yes:) | |
54445dc2 TT |
6183 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
6184 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
57aa50d4 TT |
6185 | ac_tool_warned=yes ;; |
6186 | esac | |
6187 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
3249394d | 6188 | fi |
57aa50d4 TT |
6189 | else |
6190 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
6191 | fi | |
3249394d TT |
6192 | |
6193 | fi | |
57aa50d4 | 6194 | if test -n "$PKG_CONFIG"; then |
93613951 | 6195 | _pkg_min_version=0.9.0 |
54445dc2 TT |
6196 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 |
6197 | printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } | |
93613951 | 6198 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
54445dc2 TT |
6199 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
6200 | printf "%s\n" "yes" >&6; } | |
93613951 | 6201 | else |
54445dc2 TT |
6202 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6203 | printf "%s\n" "no" >&6; } | |
93613951 TT |
6204 | PKG_CONFIG="" |
6205 | fi | |
57aa50d4 TT |
6206 | fi |
6207 | LIBUUID= | |
6208 | DEPLIBUUID= | |
6209 | STATIC_LIBUUID= | |
6210 | DEPSTATIC_LIBUUID= | |
6211 | PROFILED_LIBUUID= | |
6212 | DEPPROFILED_LIBUUID= | |
6213 | UUID_CMT= | |
6214 | # Check whether --enable-libuuid was given. | |
54445dc2 TT |
6215 | if test ${enable_libuuid+y} |
6216 | then : | |
57aa50d4 | 6217 | enableval=$enable_libuuid; if test "$enableval" = "no" |
5610f992 | 6218 | then |
57aa50d4 | 6219 | if test -z "$PKG_CONFIG"; then |
d6a4bcb5 | 6220 | as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5 |
57aa50d4 TT |
6221 | fi |
6222 | ||
54445dc2 TT |
6223 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5 |
6224 | printf %s "checking for uuid_generate in -luuid... " >&6; } | |
6225 | if test ${ac_cv_lib_uuid_uuid_generate+y} | |
6226 | then : | |
6227 | printf %s "(cached) " >&6 | |
6228 | else $as_nop | |
57aa50d4 | 6229 | ac_check_lib_save_LIBS=$LIBS |
2d7583bd | 6230 | LIBS="-luuid $LIBS" |
57aa50d4 TT |
6231 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6232 | /* end confdefs.h. */ | |
5610f992 | 6233 | |
57aa50d4 TT |
6234 | /* Override any GCC internal prototype to avoid an error. |
6235 | Use char because int might match the return type of a GCC | |
6236 | builtin and then its argument prototype would still apply. */ | |
57aa50d4 TT |
6237 | char uuid_generate (); |
6238 | int | |
54445dc2 | 6239 | main (void) |
57aa50d4 TT |
6240 | { |
6241 | return uuid_generate (); | |
6242 | ; | |
6243 | return 0; | |
6244 | } | |
6245 | _ACEOF | |
54445dc2 TT |
6246 | if ac_fn_c_try_link "$LINENO" |
6247 | then : | |
57aa50d4 | 6248 | ac_cv_lib_uuid_uuid_generate=yes |
54445dc2 | 6249 | else $as_nop |
57aa50d4 TT |
6250 | ac_cv_lib_uuid_uuid_generate=no |
6251 | fi | |
54445dc2 | 6252 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
57aa50d4 TT |
6253 | conftest$ac_exeext conftest.$ac_ext |
6254 | LIBS=$ac_check_lib_save_LIBS | |
6255 | fi | |
54445dc2 TT |
6256 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5 |
6257 | printf "%s\n" "$ac_cv_lib_uuid_uuid_generate" >&6; } | |
6258 | if test "x$ac_cv_lib_uuid_uuid_generate" = xyes | |
6259 | then : | |
57aa50d4 TT |
6260 | LIBUUID=`$PKG_CONFIG --libs uuid`; |
6261 | STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid` | |
54445dc2 | 6262 | else $as_nop |
d6a4bcb5 | 6263 | as_fn_error $? "external uuid library not found" "$LINENO" 5 |
5610f992 TT |
6264 | fi |
6265 | ||
5afdf37b | 6266 | PROFILED_LIBUUID=$LIBUUID |
57aa50d4 | 6267 | UUID_CMT=# |
54445dc2 TT |
6268 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5 |
6269 | printf "%s\n" "Disabling private uuid library" >&6; } | |
5610f992 | 6270 | else |
57aa50d4 TT |
6271 | LIBUUID='$(LIB)/libuuid'$LIB_EXT |
6272 | DEPLIBUUID=$LIBUUID | |
6273 | STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT | |
6274 | DEPSTATIC_LIBUUID=$STATIC_LIBUUID | |
6275 | PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT | |
6276 | DEPPROFILED_LIBUUID=$PROFILED_LIBUUID | |
54445dc2 TT |
6277 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5 |
6278 | printf "%s\n" "Enabling private uuid library" >&6; } | |
57aa50d4 | 6279 | fi |
5610f992 | 6280 | |
54445dc2 | 6281 | else $as_nop |
f5dffb81 | 6282 | if test -n "$PKG_CONFIG"; then |
54445dc2 TT |
6283 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5 |
6284 | printf %s "checking for uuid_generate in -luuid... " >&6; } | |
6285 | if test ${ac_cv_lib_uuid_uuid_generate+y} | |
6286 | then : | |
6287 | printf %s "(cached) " >&6 | |
6288 | else $as_nop | |
f5dffb81 TT |
6289 | ac_check_lib_save_LIBS=$LIBS |
6290 | LIBS="-luuid $LIBS" | |
6291 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6292 | /* end confdefs.h. */ | |
6293 | ||
6294 | /* Override any GCC internal prototype to avoid an error. | |
6295 | Use char because int might match the return type of a GCC | |
6296 | builtin and then its argument prototype would still apply. */ | |
f5dffb81 TT |
6297 | char uuid_generate (); |
6298 | int | |
54445dc2 | 6299 | main (void) |
f5dffb81 TT |
6300 | { |
6301 | return uuid_generate (); | |
6302 | ; | |
6303 | return 0; | |
6304 | } | |
6305 | _ACEOF | |
54445dc2 TT |
6306 | if ac_fn_c_try_link "$LINENO" |
6307 | then : | |
f5dffb81 | 6308 | ac_cv_lib_uuid_uuid_generate=yes |
54445dc2 | 6309 | else $as_nop |
f5dffb81 TT |
6310 | ac_cv_lib_uuid_uuid_generate=no |
6311 | fi | |
54445dc2 | 6312 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
f5dffb81 TT |
6313 | conftest$ac_exeext conftest.$ac_ext |
6314 | LIBS=$ac_check_lib_save_LIBS | |
6315 | fi | |
54445dc2 TT |
6316 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5 |
6317 | printf "%s\n" "$ac_cv_lib_uuid_uuid_generate" >&6; } | |
6318 | if test "x$ac_cv_lib_uuid_uuid_generate" = xyes | |
6319 | then : | |
f5dffb81 TT |
6320 | LIBUUID=`$PKG_CONFIG --libs uuid`; |
6321 | STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid` | |
6322 | fi | |
6323 | ||
6324 | fi | |
6325 | if test -n "$LIBUUID"; then | |
6326 | PROFILED_LIBUUID=$LIBUUID | |
6327 | UUID_CMT=# | |
54445dc2 TT |
6328 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using system uuid by default" >&5 |
6329 | printf "%s\n" "Using system uuid by default" >&6; } | |
f5dffb81 TT |
6330 | else |
6331 | LIBUUID='$(LIB)/libuuid'$LIB_EXT | |
6332 | DEPLIBUUID=$LIBUUID | |
6333 | STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT | |
6334 | DEPSTATIC_LIBUUID=$STATIC_LIBUUID | |
6335 | PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT | |
6336 | DEPPROFILED_LIBUUID=$PROFILED_LIBUUID | |
54445dc2 TT |
6337 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5 |
6338 | printf "%s\n" "Enabling private uuid library by default" >&6; } | |
f5dffb81 | 6339 | fi |
5610f992 TT |
6340 | |
6341 | fi | |
6342 | ||
6343 | ||
cdf186e4 | 6344 | |
a64c9c13 | 6345 | |
93636bde TT |
6346 | |
6347 | ||
93636bde | 6348 | |
93636bde TT |
6349 | |
6350 | ||
57aa50d4 | 6351 | |
93613951 TT |
6352 | |
6353 | ||
6354 | ||
6355 | ||
6356 | ||
57aa50d4 | 6357 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
93613951 | 6358 | if test -n "$ac_tool_prefix"; then |
57aa50d4 TT |
6359 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
6360 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
54445dc2 TT |
6361 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6362 | printf %s "checking for $ac_word... " >&6; } | |
6363 | if test ${ac_cv_path_PKG_CONFIG+y} | |
6364 | then : | |
6365 | printf %s "(cached) " >&6 | |
6366 | else $as_nop | |
57aa50d4 TT |
6367 | case $PKG_CONFIG in |
6368 | [\\/]* | ?:[\\/]*) | |
6369 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
6370 | ;; | |
e1052144 | 6371 | *) |
b0cacab0 TT |
6372 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6373 | for as_dir in $PATH | |
6374 | do | |
6375 | IFS=$as_save_IFS | |
54445dc2 TT |
6376 | case $as_dir in #((( |
6377 | '') as_dir=./ ;; | |
6378 | */) ;; | |
6379 | *) as_dir=$as_dir/ ;; | |
6380 | esac | |
57aa50d4 | 6381 | for ac_exec_ext in '' $ac_executable_extensions; do |
54445dc2 TT |
6382 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
6383 | ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" | |
6384 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
57aa50d4 TT |
6385 | break 2 |
6386 | fi | |
b0cacab0 | 6387 | done |
57aa50d4 | 6388 | done |
e1052144 | 6389 | IFS=$as_save_IFS |
b0cacab0 | 6390 | |
57aa50d4 | 6391 | ;; |
b0cacab0 TT |
6392 | esac |
6393 | fi | |
57aa50d4 TT |
6394 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
6395 | if test -n "$PKG_CONFIG"; then | |
54445dc2 TT |
6396 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
6397 | printf "%s\n" "$PKG_CONFIG" >&6; } | |
07a0db15 | 6398 | else |
54445dc2 TT |
6399 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6400 | printf "%s\n" "no" >&6; } | |
07a0db15 | 6401 | fi |
07a0db15 | 6402 | |
57aa50d4 TT |
6403 | |
6404 | fi | |
6405 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
6406 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
6407 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
6408 | set dummy pkg-config; ac_word=$2 | |
54445dc2 TT |
6409 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6410 | printf %s "checking for $ac_word... " >&6; } | |
6411 | if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} | |
6412 | then : | |
6413 | printf %s "(cached) " >&6 | |
6414 | else $as_nop | |
57aa50d4 | 6415 | case $ac_pt_PKG_CONFIG in |
b0cacab0 | 6416 | [\\/]* | ?:[\\/]*) |
57aa50d4 | 6417 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
b0cacab0 TT |
6418 | ;; |
6419 | *) | |
6420 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6421 | for as_dir in $PATH | |
6422 | do | |
6423 | IFS=$as_save_IFS | |
54445dc2 TT |
6424 | case $as_dir in #((( |
6425 | '') as_dir=./ ;; | |
6426 | */) ;; | |
6427 | *) as_dir=$as_dir/ ;; | |
6428 | esac | |
57aa50d4 | 6429 | for ac_exec_ext in '' $ac_executable_extensions; do |
54445dc2 TT |
6430 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
6431 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" | |
6432 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
b0cacab0 TT |
6433 | break 2 |
6434 | fi | |
6435 | done | |
57aa50d4 | 6436 | done |
e1052144 | 6437 | IFS=$as_save_IFS |
a64c9c13 | 6438 | |
b0cacab0 TT |
6439 | ;; |
6440 | esac | |
a64c9c13 | 6441 | fi |
57aa50d4 TT |
6442 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
6443 | if test -n "$ac_pt_PKG_CONFIG"; then | |
54445dc2 TT |
6444 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 |
6445 | printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } | |
a64c9c13 | 6446 | else |
54445dc2 TT |
6447 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6448 | printf "%s\n" "no" >&6; } | |
a64c9c13 | 6449 | fi |
a64c9c13 | 6450 | |
57aa50d4 TT |
6451 | if test "x$ac_pt_PKG_CONFIG" = x; then |
6452 | PKG_CONFIG="" | |
b0cacab0 | 6453 | else |
57aa50d4 TT |
6454 | case $cross_compiling:$ac_tool_warned in |
6455 | yes:) | |
54445dc2 TT |
6456 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
6457 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
57aa50d4 TT |
6458 | ac_tool_warned=yes ;; |
6459 | esac | |
6460 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
b0cacab0 | 6461 | fi |
57aa50d4 TT |
6462 | else |
6463 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
a64c9c13 | 6464 | fi |
93636bde | 6465 | |
a64c9c13 | 6466 | fi |
57aa50d4 | 6467 | if test -n "$PKG_CONFIG"; then |
93613951 | 6468 | _pkg_min_version=0.9.0 |
54445dc2 TT |
6469 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 |
6470 | printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } | |
93613951 | 6471 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
54445dc2 TT |
6472 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
6473 | printf "%s\n" "yes" >&6; } | |
93613951 | 6474 | else |
54445dc2 TT |
6475 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6476 | printf "%s\n" "no" >&6; } | |
93613951 TT |
6477 | PKG_CONFIG="" |
6478 | fi | |
57aa50d4 TT |
6479 | fi |
6480 | LIBBLKID= | |
6481 | DEPLIBBLKID= | |
6482 | STATIC_LIBBLKID= | |
6483 | DEPSTATIC_LIBBLKID= | |
6484 | PROFILED_LIBBLKID= | |
6485 | DEPPROFILED_LIBBLKID= | |
6486 | BLKID_CMT= | |
d1154eb4 | 6487 | |
57aa50d4 | 6488 | # Check whether --enable-libblkid was given. |
54445dc2 TT |
6489 | if test ${enable_libblkid+y} |
6490 | then : | |
57aa50d4 TT |
6491 | enableval=$enable_libblkid; if test "$enableval" = "no" |
6492 | then | |
6493 | if test -z "$PKG_CONFIG"; then | |
d6a4bcb5 | 6494 | as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5 |
57aa50d4 TT |
6495 | fi |
6496 | ||
54445dc2 TT |
6497 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5 |
6498 | printf %s "checking for blkid_get_cache in -lblkid... " >&6; } | |
6499 | if test ${ac_cv_lib_blkid_blkid_get_cache+y} | |
6500 | then : | |
6501 | printf %s "(cached) " >&6 | |
6502 | else $as_nop | |
57aa50d4 | 6503 | ac_check_lib_save_LIBS=$LIBS |
2d7583bd | 6504 | LIBS="-lblkid -luuid $LIBS" |
57aa50d4 TT |
6505 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6506 | /* end confdefs.h. */ | |
6507 | ||
6508 | /* Override any GCC internal prototype to avoid an error. | |
6509 | Use char because int might match the return type of a GCC | |
6510 | builtin and then its argument prototype would still apply. */ | |
57aa50d4 TT |
6511 | char blkid_get_cache (); |
6512 | int | |
54445dc2 | 6513 | main (void) |
57aa50d4 TT |
6514 | { |
6515 | return blkid_get_cache (); | |
6516 | ; | |
6517 | return 0; | |
6518 | } | |
6519 | _ACEOF | |
54445dc2 TT |
6520 | if ac_fn_c_try_link "$LINENO" |
6521 | then : | |
57aa50d4 | 6522 | ac_cv_lib_blkid_blkid_get_cache=yes |
54445dc2 | 6523 | else $as_nop |
57aa50d4 | 6524 | ac_cv_lib_blkid_blkid_get_cache=no |
a64c9c13 | 6525 | fi |
54445dc2 | 6526 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
57aa50d4 TT |
6527 | conftest$ac_exeext conftest.$ac_ext |
6528 | LIBS=$ac_check_lib_save_LIBS | |
a64c9c13 | 6529 | fi |
54445dc2 TT |
6530 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5 |
6531 | printf "%s\n" "$ac_cv_lib_blkid_blkid_get_cache" >&6; } | |
6532 | if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes | |
6533 | then : | |
57aa50d4 TT |
6534 | LIBBLKID=`$PKG_CONFIG --libs blkid`; |
6535 | STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid` | |
54445dc2 | 6536 | else $as_nop |
d6a4bcb5 | 6537 | as_fn_error $? "external blkid library not found" "$LINENO" 5 |
a64c9c13 | 6538 | fi |
93636bde | 6539 | |
57aa50d4 | 6540 | BLKID_CMT=# |
5afdf37b | 6541 | PROFILED_LIBBLKID=$LIBBLKID |
54445dc2 TT |
6542 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5 |
6543 | printf "%s\n" "Disabling private blkid library" >&6; } | |
07a0db15 | 6544 | else |
57aa50d4 TT |
6545 | LIBBLKID='$(LIB)/libblkid'$LIB_EXT |
6546 | DEPLIBBLKID=$LIBBLKID | |
6547 | STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT | |
6548 | DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID | |
6549 | PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT | |
6550 | DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID | |
54445dc2 | 6551 | printf "%s\n" "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h |
57aa50d4 | 6552 | |
54445dc2 TT |
6553 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5 |
6554 | printf "%s\n" "Enabling private blkid library" >&6; } | |
b0cacab0 | 6555 | fi |
57aa50d4 | 6556 | |
54445dc2 | 6557 | else $as_nop |
f5dffb81 | 6558 | if test -n "$PKG_CONFIG"; then |
54445dc2 TT |
6559 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5 |
6560 | printf %s "checking for blkid_get_cache in -lblkid... " >&6; } | |
6561 | if test ${ac_cv_lib_blkid_blkid_get_cache+y} | |
6562 | then : | |
6563 | printf %s "(cached) " >&6 | |
6564 | else $as_nop | |
f5dffb81 TT |
6565 | ac_check_lib_save_LIBS=$LIBS |
6566 | LIBS="-lblkid $LIBS" | |
6567 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6568 | /* end confdefs.h. */ | |
6569 | ||
6570 | /* Override any GCC internal prototype to avoid an error. | |
6571 | Use char because int might match the return type of a GCC | |
6572 | builtin and then its argument prototype would still apply. */ | |
f5dffb81 TT |
6573 | char blkid_get_cache (); |
6574 | int | |
54445dc2 | 6575 | main (void) |
f5dffb81 TT |
6576 | { |
6577 | return blkid_get_cache (); | |
6578 | ; | |
6579 | return 0; | |
6580 | } | |
6581 | _ACEOF | |
54445dc2 TT |
6582 | if ac_fn_c_try_link "$LINENO" |
6583 | then : | |
f5dffb81 | 6584 | ac_cv_lib_blkid_blkid_get_cache=yes |
54445dc2 | 6585 | else $as_nop |
f5dffb81 TT |
6586 | ac_cv_lib_blkid_blkid_get_cache=no |
6587 | fi | |
54445dc2 | 6588 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
f5dffb81 TT |
6589 | conftest$ac_exeext conftest.$ac_ext |
6590 | LIBS=$ac_check_lib_save_LIBS | |
6591 | fi | |
54445dc2 TT |
6592 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5 |
6593 | printf "%s\n" "$ac_cv_lib_blkid_blkid_get_cache" >&6; } | |
6594 | if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes | |
6595 | then : | |
f5dffb81 TT |
6596 | LIBBLKID=`$PKG_CONFIG --libs blkid`; |
6597 | STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid` | |
6598 | fi | |
6599 | ||
6600 | fi | |
6601 | if test -n "$LIBBLKID"; then | |
6602 | BLKID_CMT=# | |
6603 | PROFILED_LIBBLKID=$LIBBLKID | |
54445dc2 TT |
6604 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using system blkid library by default" >&5 |
6605 | printf "%s\n" "Using system blkid library by default" >&6; } | |
f5dffb81 TT |
6606 | else |
6607 | LIBBLKID='$(LIB)/libblkid'$LIB_EXT | |
6608 | DEPLIBBLKID=$LIBBLKID | |
6609 | STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT | |
6610 | DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID | |
6611 | PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT | |
6612 | DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID | |
54445dc2 | 6613 | printf "%s\n" "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h |
57aa50d4 | 6614 | |
54445dc2 TT |
6615 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5 |
6616 | printf "%s\n" "Enabling private blkid library by default" >&6; } | |
f5dffb81 | 6617 | fi |
57aa50d4 | 6618 | |
a64c9c13 | 6619 | fi |
07a0db15 | 6620 | |
a64c9c13 | 6621 | |
b0cacab0 | 6622 | |
b0cacab0 | 6623 | |
a64c9c13 | 6624 | |
b0cacab0 | 6625 | |
07a0db15 | 6626 | |
57aa50d4 | 6627 | |
0afb9be6 | 6628 | ALL_CMT= |
feb235e0 | 6629 | SUBSET_CMT= |
0afb9be6 | 6630 | # Check whether --enable-subset was given. |
54445dc2 TT |
6631 | if test ${enable_subset+y} |
6632 | then : | |
0afb9be6 TT |
6633 | enableval=$enable_subset; if test "$enableval" = "no" |
6634 | then | |
feb235e0 | 6635 | SUBSET_CMT=# |
54445dc2 TT |
6636 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling subset-only build" >&5 |
6637 | printf "%s\n" "Disabling subset-only build" >&6; } | |
0afb9be6 TT |
6638 | else |
6639 | ALL_CMT=# | |
54445dc2 TT |
6640 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling subset-only-build" >&5 |
6641 | printf "%s\n" "Enabling subset-only-build" >&6; } | |
0afb9be6 TT |
6642 | fi |
6643 | ||
6644 | fi | |
6645 | ||
6646 | ||
3df6014a | 6647 | |
feb235e0 | 6648 | |
3df6014a | 6649 | # Check whether --enable-backtrace was given. |
54445dc2 TT |
6650 | if test ${enable_backtrace+y} |
6651 | then : | |
3df6014a TT |
6652 | enableval=$enable_backtrace; if test "$enableval" = "no" |
6653 | then | |
54445dc2 TT |
6654 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5 |
6655 | printf "%s\n" "Disabling use of backtrace" >&6; } | |
6656 | printf "%s\n" "#define DISABLE_BACKTRACE 1" >>confdefs.h | |
3df6014a TT |
6657 | |
6658 | else | |
54445dc2 TT |
6659 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5 |
6660 | printf "%s\n" "Enabling use of backtrace" >&6; } | |
3df6014a TT |
6661 | fi |
6662 | ||
54445dc2 TT |
6663 | else $as_nop |
6664 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5 | |
6665 | printf "%s\n" "Enabling use of backtrace by default" >&6; } | |
3df6014a TT |
6666 | |
6667 | fi | |
6668 | ||
57aa50d4 | 6669 | # Check whether --enable-debugfs was given. |
54445dc2 TT |
6670 | if test ${enable_debugfs+y} |
6671 | then : | |
57aa50d4 TT |
6672 | enableval=$enable_debugfs; if test "$enableval" = "no" |
6673 | then | |
54445dc2 TT |
6674 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5 |
6675 | printf "%s\n" "Disabling debugfs support" >&6; } | |
57aa50d4 | 6676 | DEBUGFS_CMT="#" |
b0cacab0 | 6677 | else |
57aa50d4 | 6678 | DEBUGFS_CMT= |
54445dc2 TT |
6679 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5 |
6680 | printf "%s\n" "Enabling debugfs support" >&6; } | |
b0cacab0 | 6681 | fi |
a64c9c13 | 6682 | |
54445dc2 TT |
6683 | else $as_nop |
6684 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5 | |
6685 | printf "%s\n" "Enabling debugfs support by default" >&6; } | |
57aa50d4 | 6686 | DEBUGFS_CMT= |
a64c9c13 | 6687 | |
93636bde | 6688 | fi |
57aa50d4 TT |
6689 | |
6690 | ||
6691 | # Check whether --enable-imager was given. | |
54445dc2 TT |
6692 | if test ${enable_imager+y} |
6693 | then : | |
57aa50d4 TT |
6694 | enableval=$enable_imager; if test "$enableval" = "no" |
6695 | then | |
54445dc2 TT |
6696 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5 |
6697 | printf "%s\n" "Disabling e2image support" >&6; } | |
57aa50d4 | 6698 | IMAGER_CMT="#" |
b0cacab0 | 6699 | else |
57aa50d4 | 6700 | IMAGER_CMT= |
54445dc2 TT |
6701 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5 |
6702 | printf "%s\n" "Enabling e2image support" >&6; } | |
b0cacab0 TT |
6703 | fi |
6704 | ||
54445dc2 TT |
6705 | else $as_nop |
6706 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5 | |
6707 | printf "%s\n" "Enabling e2image support by default" >&6; } | |
57aa50d4 TT |
6708 | IMAGER_CMT= |
6709 | ||
93636bde TT |
6710 | fi |
6711 | ||
a64c9c13 | 6712 | |
57aa50d4 | 6713 | # Check whether --enable-resizer was given. |
54445dc2 TT |
6714 | if test ${enable_resizer+y} |
6715 | then : | |
57aa50d4 TT |
6716 | enableval=$enable_resizer; if test "$enableval" = "no" |
6717 | then | |
54445dc2 TT |
6718 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5 |
6719 | printf "%s\n" "Disabling e2resize support" >&6; } | |
57aa50d4 | 6720 | RESIZER_CMT="#" |
b0cacab0 | 6721 | else |
57aa50d4 | 6722 | RESIZER_CMT= |
54445dc2 TT |
6723 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5 |
6724 | printf "%s\n" "Enabling e2resize support" >&6; } | |
57aa50d4 | 6725 | fi |
b0cacab0 | 6726 | |
54445dc2 TT |
6727 | else $as_nop |
6728 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5 | |
6729 | printf "%s\n" "Enabling e2resize support by default" >&6; } | |
57aa50d4 | 6730 | RESIZER_CMT= |
b0cacab0 | 6731 | |
b0cacab0 | 6732 | fi |
e1052144 | 6733 | |
57aa50d4 | 6734 | |
8d9c50c5 | 6735 | # Check whether --enable-defrag was given. |
54445dc2 TT |
6736 | if test ${enable_defrag+y} |
6737 | then : | |
8d9c50c5 TT |
6738 | enableval=$enable_defrag; if test "$enableval" = "no" |
6739 | then | |
54445dc2 TT |
6740 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5 |
6741 | printf "%s\n" "Disabling e4defrag support" >&6; } | |
8d9c50c5 TT |
6742 | DEFRAG_CMT="#" |
6743 | else | |
6744 | DEFRAG_CMT= | |
54445dc2 TT |
6745 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5 |
6746 | printf "%s\n" "Enabling e4defrag support" >&6; } | |
8d9c50c5 TT |
6747 | fi |
6748 | ||
54445dc2 | 6749 | else $as_nop |
6c59a665 TT |
6750 | if test -z "$WITH_DIET_LIBC" |
6751 | then | |
54445dc2 TT |
6752 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5 |
6753 | printf "%s\n" "Enabling e4defrag support by default" >&6; } | |
6c59a665 TT |
6754 | DEFRAG_CMT= |
6755 | else | |
54445dc2 TT |
6756 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5 |
6757 | printf "%s\n" "Disabling e4defrag support by default" >&6; } | |
6c59a665 TT |
6758 | DEFRAG_CMT="#" |
6759 | fi | |
8d9c50c5 TT |
6760 | |
6761 | fi | |
6762 | ||
6763 | ||
57aa50d4 | 6764 | # Check whether --enable-fsck was given. |
54445dc2 TT |
6765 | if test ${enable_fsck+y} |
6766 | then : | |
57aa50d4 TT |
6767 | enableval=$enable_fsck; if test "$enableval" = "no" |
6768 | then | |
6769 | FSCK_PROG='' FSCK_MAN='' | |
54445dc2 TT |
6770 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5 |
6771 | printf "%s\n" "Not building fsck wrapper" >&6; } | |
57aa50d4 TT |
6772 | else |
6773 | FSCK_PROG=fsck FSCK_MAN=fsck.8 | |
54445dc2 TT |
6774 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5 |
6775 | printf "%s\n" "Building fsck wrapper" >&6; } | |
a64c9c13 TT |
6776 | fi |
6777 | ||
54445dc2 | 6778 | else $as_nop |
57aa50d4 TT |
6779 | case "$host_os" in |
6780 | gnu*) | |
6781 | FSCK_PROG='' FSCK_MAN='' | |
54445dc2 TT |
6782 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5 |
6783 | printf "%s\n" "Not building fsck wrapper by default" >&6; } | |
57aa50d4 TT |
6784 | ;; |
6785 | *) | |
6786 | FSCK_PROG=fsck FSCK_MAN=fsck.8 | |
54445dc2 TT |
6787 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5 |
6788 | printf "%s\n" "Building fsck wrapper by default" >&6; } | |
57aa50d4 | 6789 | esac |
b0cacab0 | 6790 | |
57aa50d4 | 6791 | fi |
b0cacab0 | 6792 | |
93636bde | 6793 | |
b0cacab0 | 6794 | |
57aa50d4 | 6795 | # Check whether --enable-e2initrd-helper was given. |
54445dc2 TT |
6796 | if test ${enable_e2initrd_helper+y} |
6797 | then : | |
57aa50d4 TT |
6798 | enableval=$enable_e2initrd_helper; if test "$enableval" = "no" |
6799 | then | |
6800 | E2INITRD_PROG='' E2INITRD_MAN='' | |
54445dc2 TT |
6801 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5 |
6802 | printf "%s\n" "Not building e2initrd helper" >&6; } | |
57aa50d4 TT |
6803 | else |
6804 | E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8 | |
54445dc2 TT |
6805 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5 |
6806 | printf "%s\n" "Building e2initrd helper" >&6; } | |
57aa50d4 | 6807 | fi |
a64c9c13 | 6808 | |
54445dc2 | 6809 | else $as_nop |
57aa50d4 | 6810 | E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8 |
54445dc2 TT |
6811 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5 |
6812 | printf "%s\n" "Building e2initrd helper by default" >&6; } | |
b0cacab0 | 6813 | |
a64c9c13 | 6814 | fi |
e1052144 | 6815 | |
57aa50d4 TT |
6816 | |
6817 | ||
6818 | # Check whether --enable-tls was given. | |
54445dc2 TT |
6819 | if test ${enable_tls+y} |
6820 | then : | |
57aa50d4 TT |
6821 | enableval=$enable_tls; if test "$enableval" = "no" |
6822 | then | |
6823 | try_tls="" | |
54445dc2 TT |
6824 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5 |
6825 | printf "%s\n" "Disabling thread local support" >&6; } | |
57aa50d4 TT |
6826 | else |
6827 | try_tls="yes" | |
54445dc2 TT |
6828 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5 |
6829 | printf "%s\n" "Enabling thread local support" >&6; } | |
a64c9c13 TT |
6830 | fi |
6831 | ||
54445dc2 | 6832 | else $as_nop |
57aa50d4 TT |
6833 | if test -n "$WITH_DIET_LIBC" |
6834 | then | |
6835 | try_tls="" | |
54445dc2 TT |
6836 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5 |
6837 | printf "%s\n" "Diet libc does not support thread local support" >&6; } | |
57aa50d4 TT |
6838 | else |
6839 | try_tls="yes" | |
54445dc2 TT |
6840 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5 |
6841 | printf "%s\n" "Try using thread local support by default" >&6; } | |
57aa50d4 | 6842 | fi |
a64c9c13 | 6843 | |
93636bde | 6844 | fi |
07a0db15 | 6845 | |
57aa50d4 TT |
6846 | if test "$try_tls" = "yes" |
6847 | then | |
a64c9c13 | 6848 | |
54445dc2 TT |
6849 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5 |
6850 | printf %s "checking for thread local storage (TLS) class... " >&6; } | |
6851 | if test ${ac_cv_tls+y} | |
6852 | then : | |
6853 | printf %s "(cached) " >&6 | |
6854 | else $as_nop | |
b0cacab0 | 6855 | |
57aa50d4 TT |
6856 | ax_tls_keywords="__thread __declspec(thread) none" |
6857 | for ax_tls_keyword in $ax_tls_keywords; do | |
6858 | case $ax_tls_keyword in | |
6859 | none) ac_cv_tls=none ; break ;; | |
6860 | *) | |
6861 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6862 | /* end confdefs.h. */ | |
6863 | #include <stdlib.h> | |
6864 | static void | |
6865 | foo(void) { | |
6866 | static $ax_tls_keyword int bar; | |
6867 | exit(1); | |
6868 | } | |
b0cacab0 | 6869 | int |
54445dc2 | 6870 | main (void) |
b0cacab0 | 6871 | { |
57aa50d4 | 6872 | |
b0cacab0 TT |
6873 | ; |
6874 | return 0; | |
6875 | } | |
6876 | _ACEOF | |
54445dc2 TT |
6877 | if ac_fn_c_try_compile "$LINENO" |
6878 | then : | |
57aa50d4 | 6879 | ac_cv_tls=$ax_tls_keyword ; break |
54445dc2 | 6880 | else $as_nop |
57aa50d4 | 6881 | ac_cv_tls=none |
b0cacab0 | 6882 | |
b0cacab0 | 6883 | fi |
54445dc2 | 6884 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
57aa50d4 TT |
6885 | esac |
6886 | done | |
6887 | ||
b0cacab0 | 6888 | fi |
b0cacab0 | 6889 | |
57aa50d4 TT |
6890 | |
6891 | if test "$ac_cv_tls" != "none"; then | |
6892 | ||
54445dc2 | 6893 | printf "%s\n" "#define TLS $ac_cv_tls" >>confdefs.h |
93636bde | 6894 | |
b0cacab0 | 6895 | fi |
54445dc2 TT |
6896 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5 |
6897 | printf "%s\n" "$ac_cv_tls" >&6; } | |
b0cacab0 | 6898 | |
57aa50d4 | 6899 | fi |
d1154eb4 | 6900 | |
bdcd5f22 | 6901 | # Check whether --with-pthread was given. |
54445dc2 TT |
6902 | if test ${with_pthread+y} |
6903 | then : | |
bdcd5f22 | 6904 | withval=$with_pthread; if test "$withval" = "no" |
57aa50d4 | 6905 | then |
bdcd5f22 | 6906 | try_pthread="" |
54445dc2 TT |
6907 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling pthread support" >&5 |
6908 | printf "%s\n" "Disabling pthread support" >&6; } | |
a64c9c13 | 6909 | else |
bdcd5f22 | 6910 | try_pthread="yes" |
54445dc2 TT |
6911 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Testing for pthread support" >&5 |
6912 | printf "%s\n" "Testing for pthread support" >&6; } | |
57aa50d4 | 6913 | fi |
a64c9c13 | 6914 | |
54445dc2 | 6915 | else $as_nop |
bdcd5f22 | 6916 | try_pthread="yes" |
54445dc2 TT |
6917 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Try testing for pthread support by default" >&5 |
6918 | printf "%s\n" "Try testing for pthread support by default" >&6; } | |
a64c9c13 | 6919 | |
bdcd5f22 TT |
6920 | fi |
6921 | ||
6922 | if test "$try_pthread" = "yes" | |
e3d10158 | 6923 | then |
54445dc2 TT |
6924 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
6925 | printf %s "checking for a sed that does not truncate output... " >&6; } | |
6926 | if test ${ac_cv_path_SED+y} | |
6927 | then : | |
6928 | printf %s "(cached) " >&6 | |
6929 | else $as_nop | |
bdcd5f22 TT |
6930 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
6931 | for ac_i in 1 2 3 4 5 6 7; do | |
6932 | ac_script="$ac_script$as_nl$ac_script" | |
6933 | done | |
6934 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
6935 | { ac_script=; unset ac_script;} | |
6936 | if test -z "$SED"; then | |
6937 | ac_path_SED_found=false | |
6938 | # Loop through the user's path and test for each of PROGNAME-LIST | |
6939 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
54445dc2 TT |
6940 | for as_dir in $PATH |
6941 | do | |
6942 | IFS=$as_save_IFS | |
6943 | case $as_dir in #((( | |
6944 | '') as_dir=./ ;; | |
6945 | */) ;; | |
6946 | *) as_dir=$as_dir/ ;; | |
6947 | esac | |
6948 | for ac_prog in sed gsed | |
6949 | do | |
6950 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6951 | ac_path_SED="$as_dir$ac_prog$ac_exec_ext" | |
6952 | as_fn_executable_p "$ac_path_SED" || continue | |
6953 | # Check for GNU ac_path_SED and select it if it is found. | |
6954 | # Check for GNU $ac_path_SED | |
6955 | case `"$ac_path_SED" --version 2>&1` in | |
6956 | *GNU*) | |
6957 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
6958 | *) | |
6959 | ac_count=0 | |
6960 | printf %s 0123456789 >"conftest.in" | |
6961 | while : | |
6962 | do | |
6963 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
6964 | mv "conftest.tmp" "conftest.in" | |
6965 | cp "conftest.in" "conftest.nl" | |
6966 | printf "%s\n" '' >> "conftest.nl" | |
6967 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
6968 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
6969 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
6970 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
6971 | # Best one so far, save it but keep looking for a better one | |
6972 | ac_cv_path_SED="$ac_path_SED" | |
6973 | ac_path_SED_max=$ac_count | |
6974 | fi | |
6975 | # 10*(2^10) chars as input seems more than enough | |
6976 | test $ac_count -gt 10 && break | |
6977 | done | |
6978 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
6979 | esac | |
6980 | ||
6981 | $ac_path_SED_found && break 3 | |
6982 | done | |
6983 | done | |
6984 | done | |
6985 | IFS=$as_save_IFS | |
6986 | if test -z "$ac_cv_path_SED"; then | |
6987 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
6988 | fi | |
6989 | else | |
6990 | ac_cv_path_SED=$SED | |
6991 | fi | |
6992 | ||
6993 | fi | |
6994 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
6995 | printf "%s\n" "$ac_cv_path_SED" >&6; } | |
6996 | SED="$ac_cv_path_SED" | |
6997 | rm -f conftest.sed | |
6998 | ||
6999 | ||
7000 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | |
7001 | printf %s "checking for grep that handles long lines and -e... " >&6; } | |
7002 | if test ${ac_cv_path_GREP+y} | |
7003 | then : | |
7004 | printf %s "(cached) " >&6 | |
7005 | else $as_nop | |
7006 | if test -z "$GREP"; then | |
7007 | ac_path_GREP_found=false | |
7008 | # Loop through the user's path and test for each of PROGNAME-LIST | |
7009 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7010 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
7011 | do | |
7012 | IFS=$as_save_IFS | |
7013 | case $as_dir in #((( | |
7014 | '') as_dir=./ ;; | |
7015 | */) ;; | |
7016 | *) as_dir=$as_dir/ ;; | |
7017 | esac | |
7018 | for ac_prog in grep ggrep | |
7019 | do | |
7020 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7021 | ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" | |
7022 | as_fn_executable_p "$ac_path_GREP" || continue | |
7023 | # Check for GNU ac_path_GREP and select it if it is found. | |
7024 | # Check for GNU $ac_path_GREP | |
7025 | case `"$ac_path_GREP" --version 2>&1` in | |
7026 | *GNU*) | |
7027 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
7028 | *) | |
7029 | ac_count=0 | |
7030 | printf %s 0123456789 >"conftest.in" | |
7031 | while : | |
7032 | do | |
7033 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
7034 | mv "conftest.tmp" "conftest.in" | |
7035 | cp "conftest.in" "conftest.nl" | |
7036 | printf "%s\n" 'GREP' >> "conftest.nl" | |
7037 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
7038 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
7039 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
7040 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
7041 | # Best one so far, save it but keep looking for a better one | |
7042 | ac_cv_path_GREP="$ac_path_GREP" | |
7043 | ac_path_GREP_max=$ac_count | |
7044 | fi | |
7045 | # 10*(2^10) chars as input seems more than enough | |
7046 | test $ac_count -gt 10 && break | |
7047 | done | |
7048 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
7049 | esac | |
7050 | ||
7051 | $ac_path_GREP_found && break 3 | |
7052 | done | |
7053 | done | |
7054 | done | |
7055 | IFS=$as_save_IFS | |
7056 | if test -z "$ac_cv_path_GREP"; then | |
7057 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
7058 | fi | |
7059 | else | |
7060 | ac_cv_path_GREP=$GREP | |
7061 | fi | |
7062 | ||
7063 | fi | |
7064 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
7065 | printf "%s\n" "$ac_cv_path_GREP" >&6; } | |
7066 | GREP="$ac_cv_path_GREP" | |
7067 | ||
7068 | ||
7069 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
7070 | printf %s "checking for egrep... " >&6; } | |
7071 | if test ${ac_cv_path_EGREP+y} | |
7072 | then : | |
7073 | printf %s "(cached) " >&6 | |
7074 | else $as_nop | |
7075 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
7076 | then ac_cv_path_EGREP="$GREP -E" | |
7077 | else | |
7078 | if test -z "$EGREP"; then | |
7079 | ac_path_EGREP_found=false | |
7080 | # Loop through the user's path and test for each of PROGNAME-LIST | |
7081 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7082 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
bdcd5f22 TT |
7083 | do |
7084 | IFS=$as_save_IFS | |
54445dc2 TT |
7085 | case $as_dir in #((( |
7086 | '') as_dir=./ ;; | |
7087 | */) ;; | |
7088 | *) as_dir=$as_dir/ ;; | |
7089 | esac | |
7090 | for ac_prog in egrep | |
7091 | do | |
bdcd5f22 | 7092 | for ac_exec_ext in '' $ac_executable_extensions; do |
54445dc2 TT |
7093 | ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" |
7094 | as_fn_executable_p "$ac_path_EGREP" || continue | |
7095 | # Check for GNU ac_path_EGREP and select it if it is found. | |
7096 | # Check for GNU $ac_path_EGREP | |
7097 | case `"$ac_path_EGREP" --version 2>&1` in | |
bdcd5f22 | 7098 | *GNU*) |
54445dc2 | 7099 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
bdcd5f22 TT |
7100 | *) |
7101 | ac_count=0 | |
54445dc2 | 7102 | printf %s 0123456789 >"conftest.in" |
bdcd5f22 TT |
7103 | while : |
7104 | do | |
7105 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
7106 | mv "conftest.tmp" "conftest.in" | |
7107 | cp "conftest.in" "conftest.nl" | |
54445dc2 TT |
7108 | printf "%s\n" 'EGREP' >> "conftest.nl" |
7109 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
bdcd5f22 TT |
7110 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
7111 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
54445dc2 | 7112 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
bdcd5f22 | 7113 | # Best one so far, save it but keep looking for a better one |
54445dc2 TT |
7114 | ac_cv_path_EGREP="$ac_path_EGREP" |
7115 | ac_path_EGREP_max=$ac_count | |
bdcd5f22 TT |
7116 | fi |
7117 | # 10*(2^10) chars as input seems more than enough | |
7118 | test $ac_count -gt 10 && break | |
7119 | done | |
7120 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
7121 | esac | |
7122 | ||
54445dc2 | 7123 | $ac_path_EGREP_found && break 3 |
bdcd5f22 TT |
7124 | done |
7125 | done | |
7126 | done | |
7127 | IFS=$as_save_IFS | |
54445dc2 TT |
7128 | if test -z "$ac_cv_path_EGREP"; then |
7129 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
bdcd5f22 TT |
7130 | fi |
7131 | else | |
54445dc2 | 7132 | ac_cv_path_EGREP=$EGREP |
e3d10158 | 7133 | fi |
e1052144 | 7134 | |
54445dc2 | 7135 | fi |
a64c9c13 | 7136 | fi |
54445dc2 TT |
7137 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
7138 | printf "%s\n" "$ac_cv_path_EGREP" >&6; } | |
7139 | EGREP="$ac_cv_path_EGREP" | |
7140 | ||
e1052144 | 7141 | |
93636bde | 7142 | |
d6a4bcb5 | 7143 | |
d6a4bcb5 | 7144 | |
d6a4bcb5 | 7145 | |
bdcd5f22 TT |
7146 | ac_ext=c |
7147 | ac_cpp='$CPP $CPPFLAGS' | |
7148 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7149 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7150 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d6a4bcb5 | 7151 | |
bdcd5f22 TT |
7152 | ax_pthread_ok=no |
7153 | ||
7154 | # We used to check for pthread.h first, but this fails if pthread.h | |
7155 | # requires special compiler flags (e.g. on Tru64 or Sequent). | |
7156 | # It gets checked for in the link test anyway. | |
7157 | ||
7158 | # First of all, check if the user has set any of the PTHREAD_LIBS, | |
7159 | # etcetera environment variables, and if threads linking works using | |
7160 | # them: | |
7161 | if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then | |
7162 | ax_pthread_save_CC="$CC" | |
7163 | ax_pthread_save_CFLAGS="$CFLAGS" | |
7164 | ax_pthread_save_LIBS="$LIBS" | |
54445dc2 TT |
7165 | if test "x$PTHREAD_CC" != "x" |
7166 | then : | |
bdcd5f22 | 7167 | CC="$PTHREAD_CC" |
54445dc2 TT |
7168 | fi |
7169 | if test "x$PTHREAD_CXX" != "x" | |
7170 | then : | |
7171 | CXX="$PTHREAD_CXX" | |
bdcd5f22 TT |
7172 | fi |
7173 | CFLAGS="$CFLAGS $PTHREAD_CFLAGS" | |
7174 | LIBS="$PTHREAD_LIBS $LIBS" | |
54445dc2 TT |
7175 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5 |
7176 | printf %s "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; } | |
bdcd5f22 TT |
7177 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7178 | /* end confdefs.h. */ | |
d6a4bcb5 | 7179 | |
bdcd5f22 TT |
7180 | /* Override any GCC internal prototype to avoid an error. |
7181 | Use char because int might match the return type of a GCC | |
7182 | builtin and then its argument prototype would still apply. */ | |
bdcd5f22 TT |
7183 | char pthread_join (); |
7184 | int | |
54445dc2 | 7185 | main (void) |
bdcd5f22 TT |
7186 | { |
7187 | return pthread_join (); | |
7188 | ; | |
7189 | return 0; | |
7190 | } | |
7191 | _ACEOF | |
54445dc2 TT |
7192 | if ac_fn_c_try_link "$LINENO" |
7193 | then : | |
bdcd5f22 | 7194 | ax_pthread_ok=yes |
1625bf42 | 7195 | fi |
54445dc2 | 7196 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
bdcd5f22 | 7197 | conftest$ac_exeext conftest.$ac_ext |
54445dc2 TT |
7198 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 |
7199 | printf "%s\n" "$ax_pthread_ok" >&6; } | |
bdcd5f22 TT |
7200 | if test "x$ax_pthread_ok" = "xno"; then |
7201 | PTHREAD_LIBS="" | |
7202 | PTHREAD_CFLAGS="" | |
7203 | fi | |
7204 | CC="$ax_pthread_save_CC" | |
7205 | CFLAGS="$ax_pthread_save_CFLAGS" | |
7206 | LIBS="$ax_pthread_save_LIBS" | |
7207 | fi | |
7208 | ||
7209 | # We must check for the threads library under a number of different | |
7210 | # names; the ordering is very important because some systems | |
7211 | # (e.g. DEC) have both -lpthread and -lpthreads, where one of the | |
7212 | # libraries is broken (non-POSIX). | |
7213 | ||
54445dc2 TT |
7214 | # Create a list of thread flags to try. Items with a "," contain both |
7215 | # C compiler flags (before ",") and linker flags (after ","). Other items | |
7216 | # starting with a "-" are C compiler flags, and remaining items are | |
7217 | # library names, except for "none" which indicates that we try without | |
7218 | # any flags at all, and "pthread-config" which is a program returning | |
7219 | # the flags for the Pth emulation library. | |
bdcd5f22 TT |
7220 | |
7221 | ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" | |
7222 | ||
7223 | # The ordering *is* (sometimes) important. Some notes on the | |
7224 | # individual items follow: | |
7225 | ||
7226 | # pthreads: AIX (must check this before -lpthread) | |
7227 | # none: in case threads are in libc; should be tried before -Kthread and | |
7228 | # other compiler flags to prevent continual compiler warnings | |
7229 | # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) | |
7230 | # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64 | |
7231 | # (Note: HP C rejects this with "bad form for `-t' option") | |
7232 | # -pthreads: Solaris/gcc (Note: HP C also rejects) | |
7233 | # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it | |
7234 | # doesn't hurt to check since this sometimes defines pthreads and | |
7235 | # -D_REENTRANT too), HP C (must be checked before -lpthread, which | |
7236 | # is present but should not be used directly; and before -mthreads, | |
7237 | # because the compiler interprets this as "-mt" + "-hreads") | |
7238 | # -mthreads: Mingw32/gcc, Lynx/gcc | |
7239 | # pthread: Linux, etcetera | |
7240 | # --thread-safe: KAI C++ | |
7241 | # pthread-config: use pthread-config program (for GNU Pth library) | |
7242 | ||
7243 | case $host_os in | |
7244 | ||
7245 | freebsd*) | |
7246 | ||
7247 | # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) | |
7248 | # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) | |
7249 | ||
7250 | ax_pthread_flags="-kthread lthread $ax_pthread_flags" | |
7251 | ;; | |
1625bf42 | 7252 | |
bdcd5f22 | 7253 | hpux*) |
1625bf42 | 7254 | |
bdcd5f22 TT |
7255 | # From the cc(1) man page: "[-mt] Sets various -D flags to enable |
7256 | # multi-threading and also sets -lpthread." | |
749f0712 | 7257 | |
bdcd5f22 TT |
7258 | ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags" |
7259 | ;; | |
749f0712 | 7260 | |
bdcd5f22 | 7261 | openedition*) |
749f0712 | 7262 | |
bdcd5f22 TT |
7263 | # IBM z/OS requires a feature-test macro to be defined in order to |
7264 | # enable POSIX threads at all, so give the user a hint if this is | |
7265 | # not set. (We don't define these ourselves, as they can affect | |
7266 | # other portions of the system API in unpredictable ways.) | |
749f0712 | 7267 | |
bdcd5f22 TT |
7268 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7269 | /* end confdefs.h. */ | |
7270 | ||
7271 | # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS) | |
7272 | AX_PTHREAD_ZOS_MISSING | |
7273 | # endif | |
7274 | ||
7275 | _ACEOF | |
7276 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
54445dc2 TT |
7277 | $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1 |
7278 | then : | |
7279 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5 | |
7280 | printf "%s\n" "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;} | |
749f0712 | 7281 | fi |
54445dc2 | 7282 | rm -rf conftest* |
749f0712 | 7283 | |
bdcd5f22 | 7284 | ;; |
749f0712 | 7285 | |
bdcd5f22 | 7286 | solaris*) |
749f0712 | 7287 | |
bdcd5f22 TT |
7288 | # On Solaris (at least, for some versions), libc contains stubbed |
7289 | # (non-functional) versions of the pthreads routines, so link-based | |
7290 | # tests will erroneously succeed. (N.B.: The stubs are missing | |
7291 | # pthread_cleanup_push, or rather a function called by this macro, | |
7292 | # so we could check for that, but who knows whether they'll stub | |
7293 | # that too in a future libc.) So we'll check first for the | |
7294 | # standard Solaris way of linking pthreads (-mt -lpthread). | |
749f0712 | 7295 | |
54445dc2 | 7296 | ax_pthread_flags="-mt,-lpthread pthread $ax_pthread_flags" |
bdcd5f22 TT |
7297 | ;; |
7298 | esac | |
1625bf42 | 7299 | |
bdcd5f22 | 7300 | # Are we compiling with Clang? |
1625bf42 | 7301 | |
54445dc2 TT |
7302 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5 |
7303 | printf %s "checking whether $CC is Clang... " >&6; } | |
7304 | if test ${ax_cv_PTHREAD_CLANG+y} | |
7305 | then : | |
7306 | printf %s "(cached) " >&6 | |
7307 | else $as_nop | |
bdcd5f22 TT |
7308 | ax_cv_PTHREAD_CLANG=no |
7309 | # Note that Autoconf sets GCC=yes for Clang as well as GCC | |
7310 | if test "x$GCC" = "xyes"; then | |
7311 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7312 | /* end confdefs.h. */ | |
7313 | /* Note: Clang 2.7 lacks __clang_[a-z]+__ */ | |
7314 | # if defined(__clang__) && defined(__llvm__) | |
7315 | AX_PTHREAD_CC_IS_CLANG | |
7316 | # endif | |
7317 | ||
7318 | _ACEOF | |
7319 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
54445dc2 TT |
7320 | $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1 |
7321 | then : | |
bdcd5f22 | 7322 | ax_cv_PTHREAD_CLANG=yes |
1625bf42 | 7323 | fi |
54445dc2 | 7324 | rm -rf conftest* |
1625bf42 | 7325 | |
bdcd5f22 | 7326 | fi |
1625bf42 TB |
7327 | |
7328 | fi | |
54445dc2 TT |
7329 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5 |
7330 | printf "%s\n" "$ax_cv_PTHREAD_CLANG" >&6; } | |
bdcd5f22 TT |
7331 | ax_pthread_clang="$ax_cv_PTHREAD_CLANG" |
7332 | ||
bdcd5f22 | 7333 | |
54445dc2 | 7334 | # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC) |
bdcd5f22 | 7335 | |
54445dc2 TT |
7336 | # Note that for GCC and Clang -pthread generally implies -lpthread, |
7337 | # except when -nostdlib is passed. | |
7338 | # This is problematic using libtool to build C++ shared libraries with pthread: | |
7339 | # [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25460 | |
7340 | # [2] https://bugzilla.redhat.com/show_bug.cgi?id=661333 | |
7341 | # [3] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=468555 | |
7342 | # To solve this, first try -pthread together with -lpthread for GCC | |
bdcd5f22 | 7343 | |
54445dc2 TT |
7344 | if test "x$GCC" = "xyes" |
7345 | then : | |
7346 | ax_pthread_flags="-pthread,-lpthread -pthread -pthreads $ax_pthread_flags" | |
7347 | fi | |
bdcd5f22 | 7348 | |
54445dc2 | 7349 | # Clang takes -pthread (never supported any other flag), but we'll try with -lpthread first |
bdcd5f22 | 7350 | |
54445dc2 TT |
7351 | if test "x$ax_pthread_clang" = "xyes" |
7352 | then : | |
7353 | ax_pthread_flags="-pthread,-lpthread -pthread" | |
7354 | fi | |
bdcd5f22 | 7355 | |
bdcd5f22 | 7356 | |
54445dc2 TT |
7357 | # The presence of a feature test macro requesting re-entrant function |
7358 | # definitions is, on some systems, a strong hint that pthreads support is | |
7359 | # correctly enabled | |
bdcd5f22 | 7360 | |
54445dc2 TT |
7361 | case $host_os in |
7362 | darwin* | hpux* | linux* | osf* | solaris*) | |
7363 | ax_pthread_check_macro="_REENTRANT" | |
7364 | ;; | |
d6a4bcb5 | 7365 | |
54445dc2 TT |
7366 | aix*) |
7367 | ax_pthread_check_macro="_THREAD_SAFE" | |
7368 | ;; | |
d1154eb4 | 7369 | |
54445dc2 TT |
7370 | *) |
7371 | ax_pthread_check_macro="--" | |
7372 | ;; | |
7373 | esac | |
7374 | if test "x$ax_pthread_check_macro" = "x--" | |
7375 | then : | |
7376 | ax_pthread_check_cond=0 | |
7377 | else $as_nop | |
7378 | ax_pthread_check_cond="!defined($ax_pthread_check_macro)" | |
bdcd5f22 | 7379 | fi |
d1154eb4 | 7380 | |
57aa50d4 | 7381 | |
bdcd5f22 TT |
7382 | if test "x$ax_pthread_ok" = "xno"; then |
7383 | for ax_pthread_try_flag in $ax_pthread_flags; do | |
57aa50d4 | 7384 | |
bdcd5f22 TT |
7385 | case $ax_pthread_try_flag in |
7386 | none) | |
54445dc2 TT |
7387 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 |
7388 | printf %s "checking whether pthreads work without any flags... " >&6; } | |
bdcd5f22 | 7389 | ;; |
57aa50d4 | 7390 | |
54445dc2 TT |
7391 | *,*) |
7392 | PTHREAD_CFLAGS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\1/"` | |
7393 | PTHREAD_LIBS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\2/"` | |
7394 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"" >&5 | |
7395 | printf %s "checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"... " >&6; } | |
bdcd5f22 | 7396 | ;; |
57aa50d4 | 7397 | |
bdcd5f22 | 7398 | -*) |
54445dc2 TT |
7399 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5 |
7400 | printf %s "checking whether pthreads work with $ax_pthread_try_flag... " >&6; } | |
bdcd5f22 TT |
7401 | PTHREAD_CFLAGS="$ax_pthread_try_flag" |
7402 | ;; | |
57aa50d4 | 7403 | |
bdcd5f22 TT |
7404 | pthread-config) |
7405 | # Extract the first word of "pthread-config", so it can be a program name with args. | |
7406 | set dummy pthread-config; ac_word=$2 | |
54445dc2 TT |
7407 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7408 | printf %s "checking for $ac_word... " >&6; } | |
7409 | if test ${ac_cv_prog_ax_pthread_config+y} | |
7410 | then : | |
7411 | printf %s "(cached) " >&6 | |
7412 | else $as_nop | |
bdcd5f22 TT |
7413 | if test -n "$ax_pthread_config"; then |
7414 | ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. | |
7415 | else | |
7416 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7417 | for as_dir in $PATH | |
7418 | do | |
7419 | IFS=$as_save_IFS | |
54445dc2 TT |
7420 | case $as_dir in #((( |
7421 | '') as_dir=./ ;; | |
7422 | */) ;; | |
7423 | *) as_dir=$as_dir/ ;; | |
7424 | esac | |
bdcd5f22 | 7425 | for ac_exec_ext in '' $ac_executable_extensions; do |
54445dc2 | 7426 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
bdcd5f22 | 7427 | ac_cv_prog_ax_pthread_config="yes" |
54445dc2 | 7428 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
bdcd5f22 TT |
7429 | break 2 |
7430 | fi | |
7431 | done | |
7432 | done | |
7433 | IFS=$as_save_IFS | |
7434 | ||
7435 | test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" | |
7436 | fi | |
7437 | fi | |
7438 | ax_pthread_config=$ac_cv_prog_ax_pthread_config | |
7439 | if test -n "$ax_pthread_config"; then | |
54445dc2 TT |
7440 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 |
7441 | printf "%s\n" "$ax_pthread_config" >&6; } | |
bdcd5f22 | 7442 | else |
54445dc2 TT |
7443 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7444 | printf "%s\n" "no" >&6; } | |
bdcd5f22 TT |
7445 | fi |
7446 | ||
7447 | ||
54445dc2 TT |
7448 | if test "x$ax_pthread_config" = "xno" |
7449 | then : | |
bdcd5f22 TT |
7450 | continue |
7451 | fi | |
7452 | PTHREAD_CFLAGS="`pthread-config --cflags`" | |
7453 | PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" | |
7454 | ;; | |
7455 | ||
7456 | *) | |
54445dc2 TT |
7457 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5 |
7458 | printf %s "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; } | |
bdcd5f22 TT |
7459 | PTHREAD_LIBS="-l$ax_pthread_try_flag" |
7460 | ;; | |
7461 | esac | |
7462 | ||
7463 | ax_pthread_save_CFLAGS="$CFLAGS" | |
7464 | ax_pthread_save_LIBS="$LIBS" | |
7465 | CFLAGS="$CFLAGS $PTHREAD_CFLAGS" | |
7466 | LIBS="$PTHREAD_LIBS $LIBS" | |
7467 | ||
7468 | # Check for various functions. We must include pthread.h, | |
7469 | # since some functions may be macros. (On the Sequent, we | |
7470 | # need a special flag -Kthread to make this header compile.) | |
7471 | # We check for pthread_join because it is in -lpthread on IRIX | |
7472 | # while pthread_create is in libc. We check for pthread_attr_init | |
7473 | # due to DEC craziness with -lpthreads. We check for | |
7474 | # pthread_cleanup_push because it is one of the few pthread | |
7475 | # functions on Solaris that doesn't have a non-functional libc stub. | |
7476 | # We try pthread_create on general principles. | |
7477 | ||
7478 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7479 | /* end confdefs.h. */ | |
7480 | #include <pthread.h> | |
7481 | # if $ax_pthread_check_cond | |
7482 | # error "$ax_pthread_check_macro must be defined" | |
7483 | # endif | |
54445dc2 TT |
7484 | static void *some_global = NULL; |
7485 | static void routine(void *a) | |
7486 | { | |
7487 | /* To avoid any unused-parameter or | |
7488 | unused-but-set-parameter warning. */ | |
7489 | some_global = a; | |
7490 | } | |
bdcd5f22 TT |
7491 | static void *start_routine(void *a) { return a; } |
7492 | int | |
54445dc2 | 7493 | main (void) |
bdcd5f22 TT |
7494 | { |
7495 | pthread_t th; pthread_attr_t attr; | |
7496 | pthread_create(&th, 0, start_routine, 0); | |
7497 | pthread_join(th, 0); | |
7498 | pthread_attr_init(&attr); | |
7499 | pthread_cleanup_push(routine, 0); | |
7500 | pthread_cleanup_pop(0) /* ; */ | |
7501 | ; | |
7502 | return 0; | |
7503 | } | |
7504 | _ACEOF | |
54445dc2 TT |
7505 | if ac_fn_c_try_link "$LINENO" |
7506 | then : | |
bdcd5f22 TT |
7507 | ax_pthread_ok=yes |
7508 | fi | |
54445dc2 | 7509 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
bdcd5f22 TT |
7510 | conftest$ac_exeext conftest.$ac_ext |
7511 | ||
7512 | CFLAGS="$ax_pthread_save_CFLAGS" | |
7513 | LIBS="$ax_pthread_save_LIBS" | |
7514 | ||
54445dc2 TT |
7515 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 |
7516 | printf "%s\n" "$ax_pthread_ok" >&6; } | |
7517 | if test "x$ax_pthread_ok" = "xyes" | |
7518 | then : | |
bdcd5f22 TT |
7519 | break |
7520 | fi | |
7521 | ||
7522 | PTHREAD_LIBS="" | |
7523 | PTHREAD_CFLAGS="" | |
7524 | done | |
7525 | fi | |
7526 | ||
54445dc2 TT |
7527 | |
7528 | # Clang needs special handling, because older versions handle the -pthread | |
7529 | # option in a rather... idiosyncratic way | |
7530 | ||
7531 | if test "x$ax_pthread_clang" = "xyes"; then | |
7532 | ||
7533 | # Clang takes -pthread; it has never supported any other flag | |
7534 | ||
7535 | # (Note 1: This will need to be revisited if a system that Clang | |
7536 | # supports has POSIX threads in a separate library. This tends not | |
7537 | # to be the way of modern systems, but it's conceivable.) | |
7538 | ||
7539 | # (Note 2: On some systems, notably Darwin, -pthread is not needed | |
7540 | # to get POSIX threads support; the API is always present and | |
7541 | # active. We could reasonably leave PTHREAD_CFLAGS empty. But | |
7542 | # -pthread does define _REENTRANT, and while the Darwin headers | |
7543 | # ignore this macro, third-party headers might not.) | |
7544 | ||
7545 | # However, older versions of Clang make a point of warning the user | |
7546 | # that, in an invocation where only linking and no compilation is | |
7547 | # taking place, the -pthread option has no effect ("argument unused | |
7548 | # during compilation"). They expect -pthread to be passed in only | |
7549 | # when source code is being compiled. | |
7550 | # | |
7551 | # Problem is, this is at odds with the way Automake and most other | |
7552 | # C build frameworks function, which is that the same flags used in | |
7553 | # compilation (CFLAGS) are also used in linking. Many systems | |
7554 | # supported by AX_PTHREAD require exactly this for POSIX threads | |
7555 | # support, and in fact it is often not straightforward to specify a | |
7556 | # flag that is used only in the compilation phase and not in | |
7557 | # linking. Such a scenario is extremely rare in practice. | |
7558 | # | |
7559 | # Even though use of the -pthread flag in linking would only print | |
7560 | # a warning, this can be a nuisance for well-run software projects | |
7561 | # that build with -Werror. So if the active version of Clang has | |
7562 | # this misfeature, we search for an option to squash it. | |
7563 | ||
7564 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5 | |
7565 | printf %s "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; } | |
7566 | if test ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+y} | |
7567 | then : | |
7568 | printf %s "(cached) " >&6 | |
7569 | else $as_nop | |
7570 | ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown | |
7571 | # Create an alternate version of $ac_link that compiles and | |
7572 | # links in two steps (.c -> .o, .o -> exe) instead of one | |
7573 | # (.c -> exe), because the warning occurs only in the second | |
7574 | # step | |
7575 | ax_pthread_save_ac_link="$ac_link" | |
7576 | ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g' | |
7577 | ax_pthread_link_step=`printf "%s\n" "$ac_link" | sed "$ax_pthread_sed"` | |
7578 | ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)" | |
7579 | ax_pthread_save_CFLAGS="$CFLAGS" | |
7580 | for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do | |
7581 | if test "x$ax_pthread_try" = "xunknown" | |
7582 | then : | |
7583 | break | |
7584 | fi | |
7585 | CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS" | |
7586 | ac_link="$ax_pthread_save_ac_link" | |
7587 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7588 | /* end confdefs.h. */ | |
7589 | int main(void){return 0;} | |
7590 | _ACEOF | |
7591 | if ac_fn_c_try_link "$LINENO" | |
7592 | then : | |
7593 | ac_link="$ax_pthread_2step_ac_link" | |
7594 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7595 | /* end confdefs.h. */ | |
7596 | int main(void){return 0;} | |
7597 | _ACEOF | |
7598 | if ac_fn_c_try_link "$LINENO" | |
7599 | then : | |
7600 | break | |
7601 | fi | |
7602 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ | |
7603 | conftest$ac_exeext conftest.$ac_ext | |
7604 | ||
7605 | fi | |
7606 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ | |
7607 | conftest$ac_exeext conftest.$ac_ext | |
7608 | done | |
7609 | ac_link="$ax_pthread_save_ac_link" | |
7610 | CFLAGS="$ax_pthread_save_CFLAGS" | |
7611 | if test "x$ax_pthread_try" = "x" | |
7612 | then : | |
7613 | ax_pthread_try=no | |
7614 | fi | |
7615 | ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try" | |
7616 | ||
7617 | fi | |
7618 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5 | |
7619 | printf "%s\n" "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; } | |
7620 | ||
7621 | case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in | |
7622 | no | unknown) ;; | |
7623 | *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;; | |
7624 | esac | |
7625 | ||
7626 | fi # $ax_pthread_clang = yes | |
7627 | ||
7628 | ||
7629 | ||
bdcd5f22 TT |
7630 | # Various other checks: |
7631 | if test "x$ax_pthread_ok" = "xyes"; then | |
7632 | ax_pthread_save_CFLAGS="$CFLAGS" | |
7633 | ax_pthread_save_LIBS="$LIBS" | |
7634 | CFLAGS="$CFLAGS $PTHREAD_CFLAGS" | |
7635 | LIBS="$PTHREAD_LIBS $LIBS" | |
7636 | ||
7637 | # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. | |
54445dc2 TT |
7638 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 |
7639 | printf %s "checking for joinable pthread attribute... " >&6; } | |
7640 | if test ${ax_cv_PTHREAD_JOINABLE_ATTR+y} | |
7641 | then : | |
7642 | printf %s "(cached) " >&6 | |
7643 | else $as_nop | |
bdcd5f22 TT |
7644 | ax_cv_PTHREAD_JOINABLE_ATTR=unknown |
7645 | for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do | |
7646 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7647 | /* end confdefs.h. */ | |
7648 | #include <pthread.h> | |
7649 | int | |
54445dc2 | 7650 | main (void) |
bdcd5f22 TT |
7651 | { |
7652 | int attr = $ax_pthread_attr; return attr /* ; */ | |
7653 | ; | |
7654 | return 0; | |
7655 | } | |
7656 | _ACEOF | |
54445dc2 TT |
7657 | if ac_fn_c_try_link "$LINENO" |
7658 | then : | |
bdcd5f22 TT |
7659 | ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break |
7660 | fi | |
54445dc2 | 7661 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
bdcd5f22 TT |
7662 | conftest$ac_exeext conftest.$ac_ext |
7663 | done | |
7664 | ||
7665 | fi | |
54445dc2 TT |
7666 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5 |
7667 | printf "%s\n" "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; } | |
bdcd5f22 TT |
7668 | if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \ |
7669 | test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \ | |
54445dc2 TT |
7670 | test "x$ax_pthread_joinable_attr_defined" != "xyes" |
7671 | then : | |
bdcd5f22 | 7672 | |
54445dc2 | 7673 | printf "%s\n" "#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR" >>confdefs.h |
bdcd5f22 TT |
7674 | |
7675 | ax_pthread_joinable_attr_defined=yes | |
7676 | ||
7677 | fi | |
7678 | ||
54445dc2 TT |
7679 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5 |
7680 | printf %s "checking whether more special flags are required for pthreads... " >&6; } | |
7681 | if test ${ax_cv_PTHREAD_SPECIAL_FLAGS+y} | |
7682 | then : | |
7683 | printf %s "(cached) " >&6 | |
7684 | else $as_nop | |
bdcd5f22 TT |
7685 | ax_cv_PTHREAD_SPECIAL_FLAGS=no |
7686 | case $host_os in | |
7687 | solaris*) | |
7688 | ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS" | |
7689 | ;; | |
7690 | esac | |
7691 | ||
7692 | fi | |
54445dc2 TT |
7693 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5 |
7694 | printf "%s\n" "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; } | |
bdcd5f22 | 7695 | if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \ |
54445dc2 TT |
7696 | test "x$ax_pthread_special_flags_added" != "xyes" |
7697 | then : | |
bdcd5f22 TT |
7698 | PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS" |
7699 | ax_pthread_special_flags_added=yes | |
7700 | fi | |
7701 | ||
54445dc2 TT |
7702 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5 |
7703 | printf %s "checking for PTHREAD_PRIO_INHERIT... " >&6; } | |
7704 | if test ${ax_cv_PTHREAD_PRIO_INHERIT+y} | |
7705 | then : | |
7706 | printf %s "(cached) " >&6 | |
7707 | else $as_nop | |
bdcd5f22 TT |
7708 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7709 | /* end confdefs.h. */ | |
7710 | #include <pthread.h> | |
7711 | int | |
54445dc2 | 7712 | main (void) |
bdcd5f22 TT |
7713 | { |
7714 | int i = PTHREAD_PRIO_INHERIT; | |
54445dc2 | 7715 | return i; |
bdcd5f22 TT |
7716 | ; |
7717 | return 0; | |
7718 | } | |
7719 | _ACEOF | |
54445dc2 TT |
7720 | if ac_fn_c_try_link "$LINENO" |
7721 | then : | |
bdcd5f22 | 7722 | ax_cv_PTHREAD_PRIO_INHERIT=yes |
54445dc2 | 7723 | else $as_nop |
bdcd5f22 TT |
7724 | ax_cv_PTHREAD_PRIO_INHERIT=no |
7725 | fi | |
54445dc2 | 7726 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
bdcd5f22 TT |
7727 | conftest$ac_exeext conftest.$ac_ext |
7728 | ||
7729 | fi | |
54445dc2 TT |
7730 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5 |
7731 | printf "%s\n" "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; } | |
bdcd5f22 | 7732 | if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \ |
54445dc2 TT |
7733 | test "x$ax_pthread_prio_inherit_defined" != "xyes" |
7734 | then : | |
bdcd5f22 | 7735 | |
54445dc2 | 7736 | printf "%s\n" "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h |
bdcd5f22 TT |
7737 | |
7738 | ax_pthread_prio_inherit_defined=yes | |
7739 | ||
7740 | fi | |
7741 | ||
7742 | CFLAGS="$ax_pthread_save_CFLAGS" | |
7743 | LIBS="$ax_pthread_save_LIBS" | |
7744 | ||
7745 | # More AIX lossage: compile with *_r variant | |
7746 | if test "x$GCC" != "xyes"; then | |
7747 | case $host_os in | |
7748 | aix*) | |
7749 | case "x/$CC" in #( | |
7750 | x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) : | |
7751 | #handle absolute path differently from PATH based program lookup | |
7752 | case "x$CC" in #( | |
7753 | x/*) : | |
54445dc2 TT |
7754 | |
7755 | if as_fn_executable_p ${CC}_r | |
7756 | then : | |
bdcd5f22 | 7757 | PTHREAD_CC="${CC}_r" |
54445dc2 TT |
7758 | fi |
7759 | if test "x${CXX}" != "x" | |
7760 | then : | |
7761 | if as_fn_executable_p ${CXX}_r | |
7762 | then : | |
7763 | PTHREAD_CXX="${CXX}_r" | |
7764 | fi | |
7765 | fi | |
7766 | ;; #( | |
bdcd5f22 | 7767 | *) : |
54445dc2 TT |
7768 | |
7769 | for ac_prog in ${CC}_r | |
bdcd5f22 TT |
7770 | do |
7771 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
7772 | set dummy $ac_prog; ac_word=$2 | |
54445dc2 TT |
7773 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7774 | printf %s "checking for $ac_word... " >&6; } | |
7775 | if test ${ac_cv_prog_PTHREAD_CC+y} | |
7776 | then : | |
7777 | printf %s "(cached) " >&6 | |
7778 | else $as_nop | |
bdcd5f22 TT |
7779 | if test -n "$PTHREAD_CC"; then |
7780 | ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. | |
7781 | else | |
7782 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7783 | for as_dir in $PATH | |
7784 | do | |
7785 | IFS=$as_save_IFS | |
54445dc2 TT |
7786 | case $as_dir in #((( |
7787 | '') as_dir=./ ;; | |
7788 | */) ;; | |
7789 | *) as_dir=$as_dir/ ;; | |
7790 | esac | |
bdcd5f22 | 7791 | for ac_exec_ext in '' $ac_executable_extensions; do |
54445dc2 | 7792 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
bdcd5f22 | 7793 | ac_cv_prog_PTHREAD_CC="$ac_prog" |
54445dc2 | 7794 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
bdcd5f22 TT |
7795 | break 2 |
7796 | fi | |
7797 | done | |
7798 | done | |
7799 | IFS=$as_save_IFS | |
7800 | ||
7801 | fi | |
7802 | fi | |
7803 | PTHREAD_CC=$ac_cv_prog_PTHREAD_CC | |
7804 | if test -n "$PTHREAD_CC"; then | |
54445dc2 TT |
7805 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 |
7806 | printf "%s\n" "$PTHREAD_CC" >&6; } | |
bdcd5f22 | 7807 | else |
54445dc2 TT |
7808 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7809 | printf "%s\n" "no" >&6; } | |
bdcd5f22 TT |
7810 | fi |
7811 | ||
7812 | ||
7813 | test -n "$PTHREAD_CC" && break | |
7814 | done | |
7815 | test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" | |
54445dc2 TT |
7816 | |
7817 | if test "x${CXX}" != "x" | |
7818 | then : | |
7819 | for ac_prog in ${CXX}_r | |
7820 | do | |
7821 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
7822 | set dummy $ac_prog; ac_word=$2 | |
7823 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7824 | printf %s "checking for $ac_word... " >&6; } | |
7825 | if test ${ac_cv_prog_PTHREAD_CXX+y} | |
7826 | then : | |
7827 | printf %s "(cached) " >&6 | |
7828 | else $as_nop | |
7829 | if test -n "$PTHREAD_CXX"; then | |
7830 | ac_cv_prog_PTHREAD_CXX="$PTHREAD_CXX" # Let the user override the test. | |
7831 | else | |
7832 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7833 | for as_dir in $PATH | |
7834 | do | |
7835 | IFS=$as_save_IFS | |
7836 | case $as_dir in #((( | |
7837 | '') as_dir=./ ;; | |
7838 | */) ;; | |
7839 | *) as_dir=$as_dir/ ;; | |
7840 | esac | |
7841 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7842 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
7843 | ac_cv_prog_PTHREAD_CXX="$ac_prog" | |
7844 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
7845 | break 2 | |
7846 | fi | |
7847 | done | |
7848 | done | |
7849 | IFS=$as_save_IFS | |
7850 | ||
7851 | fi | |
7852 | fi | |
7853 | PTHREAD_CXX=$ac_cv_prog_PTHREAD_CXX | |
7854 | if test -n "$PTHREAD_CXX"; then | |
7855 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CXX" >&5 | |
7856 | printf "%s\n" "$PTHREAD_CXX" >&6; } | |
7857 | else | |
7858 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7859 | printf "%s\n" "no" >&6; } | |
7860 | fi | |
7861 | ||
7862 | ||
7863 | test -n "$PTHREAD_CXX" && break | |
7864 | done | |
7865 | test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX" | |
7866 | ||
7867 | fi | |
7868 | ||
7869 | ;; | |
7870 | esac | |
7871 | ;; #( | |
bdcd5f22 TT |
7872 | *) : |
7873 | ;; | |
7874 | esac | |
7875 | ;; | |
7876 | esac | |
7877 | fi | |
7878 | fi | |
7879 | ||
7880 | test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" | |
54445dc2 TT |
7881 | test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX" |
7882 | ||
bdcd5f22 TT |
7883 | |
7884 | ||
7885 | ||
7886 | ||
7887 | ||
7888 | # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: | |
7889 | if test "x$ax_pthread_ok" = "xyes"; then | |
7890 | ||
54445dc2 | 7891 | printf "%s\n" "#define HAVE_PTHREAD 1" >>confdefs.h |
bdcd5f22 TT |
7892 | |
7893 | : | |
7894 | else | |
7895 | ax_pthread_ok=no | |
7896 | ||
7897 | fi | |
7898 | ac_ext=c | |
7899 | ac_cpp='$CPP $CPPFLAGS' | |
7900 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7901 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7902 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7903 | ||
7904 | ||
7905 | else | |
7906 | test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" | |
7907 | ||
7908 | fi | |
7909 | ||
7910 | # Check whether --enable-uuidd was given. | |
54445dc2 TT |
7911 | if test ${enable_uuidd+y} |
7912 | then : | |
bdcd5f22 TT |
7913 | enableval=$enable_uuidd; if test "$enableval" = "no" |
7914 | then | |
54445dc2 TT |
7915 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5 |
7916 | printf "%s\n" "Not building uuidd" >&6; } | |
bdcd5f22 TT |
7917 | UUIDD_CMT="#" |
7918 | else | |
54445dc2 | 7919 | printf "%s\n" "#define USE_UUIDD 1" >>confdefs.h |
bdcd5f22 TT |
7920 | |
7921 | UUIDD_CMT="" | |
54445dc2 TT |
7922 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5 |
7923 | printf "%s\n" "Building uuidd" >&6; } | |
bdcd5f22 TT |
7924 | fi |
7925 | ||
54445dc2 TT |
7926 | else $as_nop |
7927 | printf "%s\n" "#define USE_UUIDD 1" >>confdefs.h | |
bdcd5f22 TT |
7928 | |
7929 | if test -z "$UUID_CMT" | |
7930 | then | |
7931 | UUIDD_CMT="" | |
54445dc2 TT |
7932 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5 |
7933 | printf "%s\n" "Building uuidd by default" >&6; } | |
bdcd5f22 TT |
7934 | else |
7935 | UUIDD_CMT="#" | |
54445dc2 TT |
7936 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling uuidd by default" >&5 |
7937 | printf "%s\n" "Disabling uuidd by default" >&6; } | |
bdcd5f22 TT |
7938 | fi |
7939 | ||
7940 | fi | |
7941 | ||
7942 | ||
7943 | ||
7944 | # Check whether --enable-mmp was given. | |
54445dc2 TT |
7945 | if test ${enable_mmp+y} |
7946 | then : | |
bdcd5f22 TT |
7947 | enableval=$enable_mmp; if test "$enableval" = "no" |
7948 | then | |
54445dc2 TT |
7949 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling mmp support" >&5 |
7950 | printf "%s\n" "Disabling mmp support" >&6; } | |
bdcd5f22 | 7951 | else |
54445dc2 TT |
7952 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support" >&5 |
7953 | printf "%s\n" "Enabling mmp support" >&6; } | |
7954 | printf "%s\n" "#define CONFIG_MMP 1" >>confdefs.h | |
bdcd5f22 TT |
7955 | |
7956 | fi | |
7957 | ||
54445dc2 TT |
7958 | else $as_nop |
7959 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5 | |
7960 | printf "%s\n" "Enabling mmp support by default" >&6; } | |
7961 | printf "%s\n" "#define CONFIG_MMP 1" >>confdefs.h | |
bdcd5f22 TT |
7962 | |
7963 | ||
7964 | fi | |
7965 | ||
7966 | ||
7967 | # Check whether --enable-tdb was given. | |
54445dc2 TT |
7968 | if test ${enable_tdb+y} |
7969 | then : | |
6eb00fb7 EB |
7970 | enableval=$enable_tdb; |
7971 | if test "$enableval" = "no" | |
bdcd5f22 | 7972 | then |
54445dc2 TT |
7973 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling tdb support" >&5 |
7974 | printf "%s\n" "Disabling tdb support" >&6; } | |
6eb00fb7 | 7975 | CONFIG_TDB=0 |
bdcd5f22 | 7976 | else |
54445dc2 TT |
7977 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling tdb support" >&5 |
7978 | printf "%s\n" "Enabling tdb support" >&6; } | |
6eb00fb7 | 7979 | CONFIG_TDB=1 |
bdcd5f22 TT |
7980 | fi |
7981 | ||
6eb00fb7 | 7982 | |
54445dc2 | 7983 | else $as_nop |
bdcd5f22 | 7984 | |
6eb00fb7 EB |
7985 | case "$host_os" in |
7986 | mingw*) | |
7987 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling tdb support by default" >&5 | |
7988 | printf "%s\n" "Disabling tdb support by default" >&6; } | |
7989 | CONFIG_TDB=0 | |
7990 | ;; | |
7991 | *) | |
7992 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling tdb support by default" >&5 | |
7993 | printf "%s\n" "Enabling tdb support by default" >&6; } | |
7994 | CONFIG_TDB=1 | |
7995 | ;; | |
7996 | esac | |
7997 | ||
bdcd5f22 TT |
7998 | |
7999 | fi | |
8000 | ||
6eb00fb7 EB |
8001 | if test "$CONFIG_TDB" = "1" |
8002 | then | |
8003 | printf "%s\n" "#define CONFIG_TDB 1" >>confdefs.h | |
8004 | ||
8005 | TDB_CMT="" | |
8006 | TDB_MAN_COMMENT="" | |
8007 | else | |
8008 | TDB_CMT="#" | |
8009 | TDB_MAN_COMMENT='.\"' | |
8010 | fi | |
bdcd5f22 TT |
8011 | |
8012 | ||
8013 | ||
8014 | # Check whether --enable-bmap-stats was given. | |
54445dc2 TT |
8015 | if test ${enable_bmap_stats+y} |
8016 | then : | |
bdcd5f22 TT |
8017 | enableval=$enable_bmap_stats; if test "$enableval" = "no" |
8018 | then | |
54445dc2 TT |
8019 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling bitmap statistics support" >&5 |
8020 | printf "%s\n" "Disabling bitmap statistics support" >&6; } | |
bdcd5f22 | 8021 | else |
54445dc2 TT |
8022 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support" >&5 |
8023 | printf "%s\n" "Enabling bitmap statistics support" >&6; } | |
8024 | printf "%s\n" "#define ENABLE_BMAP_STATS 1" >>confdefs.h | |
bdcd5f22 TT |
8025 | |
8026 | fi | |
8027 | ||
54445dc2 TT |
8028 | else $as_nop |
8029 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support by default" >&5 | |
8030 | printf "%s\n" "Enabling bitmap statistics support by default" >&6; } | |
8031 | printf "%s\n" "#define ENABLE_BMAP_STATS 1" >>confdefs.h | |
bdcd5f22 TT |
8032 | |
8033 | ||
8034 | fi | |
8035 | ||
8036 | ||
8037 | # Check whether --enable-bmap-stats-ops was given. | |
54445dc2 TT |
8038 | if test ${enable_bmap_stats_ops+y} |
8039 | then : | |
bdcd5f22 TT |
8040 | enableval=$enable_bmap_stats_ops; if test "$enableval" = "no" |
8041 | then | |
54445dc2 TT |
8042 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics" >&5 |
8043 | printf "%s\n" "Disabling additional bitmap statistics" >&6; } | |
bdcd5f22 | 8044 | else |
54445dc2 TT |
8045 | if test "x${enable_bmap_stats}" = "xno" |
8046 | then : | |
8047 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
8048 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} | |
bdcd5f22 TT |
8049 | as_fn_error $? "Error --enable-bmap-stats-ops requires bmap-stats |
8050 | See \`config.log' for more details" "$LINENO" 5; } | |
8051 | fi | |
8052 | ||
54445dc2 TT |
8053 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling additional bitmap statistics" >&5 |
8054 | printf "%s\n" "Enabling additional bitmap statistics" >&6; } | |
8055 | printf "%s\n" "#define ENABLE_BMAP_STATS_OPS 1" >>confdefs.h | |
bdcd5f22 TT |
8056 | |
8057 | fi | |
8058 | ||
54445dc2 TT |
8059 | else $as_nop |
8060 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics by default" >&5 | |
8061 | printf "%s\n" "Disabling additional bitmap statistics by default" >&6; } | |
bdcd5f22 TT |
8062 | |
8063 | fi | |
8064 | ||
8065 | MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library | |
8066 | ||
8067 | GETTEXT_PACKAGE=e2fsprogs | |
8068 | PACKAGE=e2fsprogs | |
8069 | VERSION="$E2FSPROGS_VERSION" | |
8070 | VERSION=0.14.1 | |
8071 | ||
54445dc2 | 8072 | printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h |
bdcd5f22 TT |
8073 | |
8074 | ||
54445dc2 | 8075 | printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h |
bdcd5f22 TT |
8076 | |
8077 | ||
8078 | ||
8079 | ||
8080 | ||
54445dc2 TT |
8081 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
8082 | printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
bdcd5f22 | 8083 | set x ${MAKE-make} |
54445dc2 TT |
8084 | ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
8085 | if eval test \${ac_cv_prog_make_${ac_make}_set+y} | |
8086 | then : | |
8087 | printf %s "(cached) " >&6 | |
8088 | else $as_nop | |
bdcd5f22 TT |
8089 | cat >conftest.make <<\_ACEOF |
8090 | SHELL = /bin/sh | |
8091 | all: | |
8092 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
8093 | _ACEOF | |
8094 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | |
8095 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
8096 | *@@@%%%=?*=@@@%%%*) | |
8097 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
8098 | *) | |
8099 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
8100 | esac | |
57aa50d4 TT |
8101 | rm -f conftest.make |
8102 | fi | |
8103 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
54445dc2 TT |
8104 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
8105 | printf "%s\n" "yes" >&6; } | |
57aa50d4 | 8106 | SET_MAKE= |
39fd3d4f | 8107 | else |
54445dc2 TT |
8108 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8109 | printf "%s\n" "no" >&6; } | |
57aa50d4 | 8110 | SET_MAKE="MAKE=${MAKE-make}" |
39fd3d4f SJR |
8111 | fi |
8112 | ||
54445dc2 TT |
8113 | |
8114 | # Find a good install program. We prefer a C program (faster), | |
57aa50d4 TT |
8115 | # so one script is as good as another. But avoid the broken or |
8116 | # incompatible versions: | |
8117 | # SysV /etc/install, /usr/sbin/install | |
8118 | # SunOS /usr/etc/install | |
8119 | # IRIX /sbin/install | |
8120 | # AIX /bin/install | |
8121 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
8122 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
8123 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
8124 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
8125 | # OS/2's system install, which has a completely different semantic | |
8126 | # ./install, which can be erroneously created by make from ./install.sh. | |
8127 | # Reject install programs that cannot install multiple files. | |
54445dc2 TT |
8128 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
8129 | printf %s "checking for a BSD-compatible install... " >&6; } | |
57aa50d4 | 8130 | if test -z "$INSTALL"; then |
54445dc2 TT |
8131 | if test ${ac_cv_path_install+y} |
8132 | then : | |
8133 | printf %s "(cached) " >&6 | |
8134 | else $as_nop | |
57aa50d4 TT |
8135 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8136 | for as_dir in $PATH | |
8137 | do | |
8138 | IFS=$as_save_IFS | |
54445dc2 TT |
8139 | case $as_dir in #((( |
8140 | '') as_dir=./ ;; | |
8141 | */) ;; | |
8142 | *) as_dir=$as_dir/ ;; | |
8143 | esac | |
8144 | # Account for fact that we put trailing slashes in our PATH walk. | |
8145 | case $as_dir in #(( | |
8146 | ./ | /[cC]/* | \ | |
57aa50d4 TT |
8147 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
8148 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
8149 | /usr/ucb/* ) ;; | |
8150 | *) | |
8151 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
8152 | # Don't use installbsd from OSF since it installs stuff as root | |
8153 | # by default. | |
8154 | for ac_prog in ginstall scoinst install; do | |
8155 | for ac_exec_ext in '' $ac_executable_extensions; do | |
54445dc2 | 8156 | if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then |
57aa50d4 | 8157 | if test $ac_prog = install && |
54445dc2 | 8158 | grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
57aa50d4 TT |
8159 | # AIX install. It has an incompatible calling convention. |
8160 | : | |
8161 | elif test $ac_prog = install && | |
54445dc2 | 8162 | grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
57aa50d4 TT |
8163 | # program-specific install script used by HP pwplus--don't use. |
8164 | : | |
8165 | else | |
8166 | rm -rf conftest.one conftest.two conftest.dir | |
8167 | echo one > conftest.one | |
8168 | echo two > conftest.two | |
8169 | mkdir conftest.dir | |
54445dc2 | 8170 | if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && |
57aa50d4 TT |
8171 | test -s conftest.one && test -s conftest.two && |
8172 | test -s conftest.dir/conftest.one && | |
8173 | test -s conftest.dir/conftest.two | |
8174 | then | |
54445dc2 | 8175 | ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" |
57aa50d4 TT |
8176 | break 3 |
8177 | fi | |
8178 | fi | |
8179 | fi | |
8180 | done | |
8181 | done | |
8182 | ;; | |
8183 | esac | |
8184 | ||
8185 | done | |
8186 | IFS=$as_save_IFS | |
b0cacab0 | 8187 | |
57aa50d4 | 8188 | rm -rf conftest.one conftest.two conftest.dir |
39fd3d4f | 8189 | |
93636bde | 8190 | fi |
54445dc2 | 8191 | if test ${ac_cv_path_install+y}; then |
57aa50d4 TT |
8192 | INSTALL=$ac_cv_path_install |
8193 | else | |
8194 | # As a last resort, use the slow shell script. Don't cache a | |
8195 | # value for INSTALL within a source directory, because that will | |
8196 | # break other packages using the cache if that directory is | |
8197 | # removed, or if the value is a relative name. | |
8198 | INSTALL=$ac_install_sh | |
8199 | fi | |
93636bde | 8200 | fi |
54445dc2 TT |
8201 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
8202 | printf "%s\n" "$INSTALL" >&6; } | |
a64c9c13 | 8203 | |
57aa50d4 TT |
8204 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
8205 | # It thinks the first close brace ends the variable substitution. | |
8206 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
b0cacab0 | 8207 | |
57aa50d4 | 8208 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
a64c9c13 | 8209 | |
57aa50d4 | 8210 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
39fd3d4f | 8211 | |
54445dc2 TT |
8212 | |
8213 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 | |
8214 | printf %s "checking for a race-free mkdir -p... " >&6; } | |
93613951 | 8215 | if test -z "$MKDIR_P"; then |
54445dc2 TT |
8216 | if test ${ac_cv_path_mkdir+y} |
8217 | then : | |
8218 | printf %s "(cached) " >&6 | |
8219 | else $as_nop | |
93613951 TT |
8220 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8221 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
8222 | do | |
8223 | IFS=$as_save_IFS | |
54445dc2 TT |
8224 | case $as_dir in #((( |
8225 | '') as_dir=./ ;; | |
8226 | */) ;; | |
8227 | *) as_dir=$as_dir/ ;; | |
8228 | esac | |
93613951 TT |
8229 | for ac_prog in mkdir gmkdir; do |
8230 | for ac_exec_ext in '' $ac_executable_extensions; do | |
54445dc2 TT |
8231 | as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue |
8232 | case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
8233 | 'mkdir ('*'coreutils) '* | \ | |
8234 | 'BusyBox '* | \ | |
93613951 | 8235 | 'mkdir (fileutils) '4.1*) |
54445dc2 | 8236 | ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext |
93613951 TT |
8237 | break 3;; |
8238 | esac | |
8239 | done | |
8240 | done | |
8241 | done | |
8242 | IFS=$as_save_IFS | |
8243 | ||
8244 | fi | |
39fd3d4f | 8245 | |
93613951 | 8246 | test -d ./--version && rmdir ./--version |
54445dc2 | 8247 | if test ${ac_cv_path_mkdir+y}; then |
93613951 TT |
8248 | MKDIR_P="$ac_cv_path_mkdir -p" |
8249 | else | |
8250 | # As a last resort, use the slow shell script. Don't cache a | |
8251 | # value for MKDIR_P within a source directory, because that will | |
8252 | # break other packages using the cache if that directory is | |
8253 | # removed, or if the value is a relative name. | |
8254 | MKDIR_P="$ac_install_sh -d" | |
57aa50d4 | 8255 | fi |
93613951 | 8256 | fi |
54445dc2 TT |
8257 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
8258 | printf "%s\n" "$MKDIR_P" >&6; } | |
93613951 | 8259 | |
e1052144 | 8260 | |
54445dc2 TT |
8261 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 |
8262 | printf %s "checking whether NLS is requested... " >&6; } | |
57aa50d4 | 8263 | # Check whether --enable-nls was given. |
54445dc2 TT |
8264 | if test ${enable_nls+y} |
8265 | then : | |
57aa50d4 | 8266 | enableval=$enable_nls; USE_NLS=$enableval |
54445dc2 | 8267 | else $as_nop |
57aa50d4 TT |
8268 | USE_NLS=yes |
8269 | fi | |
b0cacab0 | 8270 | |
54445dc2 TT |
8271 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 |
8272 | printf "%s\n" "$USE_NLS" >&6; } | |
93636bde | 8273 | |
a64c9c13 | 8274 | |
a64c9c13 | 8275 | |
b0cacab0 | 8276 | |
bdcd5f22 | 8277 | GETTEXT_MACRO_VERSION=0.20 |
93613951 TT |
8278 | |
8279 | ||
b0cacab0 | 8280 | |
a64c9c13 | 8281 | |
57aa50d4 TT |
8282 | # Prepare PATH_SEPARATOR. |
8283 | # The user is always right. | |
8284 | if test "${PATH_SEPARATOR+set}" != set; then | |
93613951 TT |
8285 | # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which |
8286 | # contains only /bin. Note that ksh looks also at the FPATH variable, | |
8287 | # so we have to set that as well for the test. | |
8288 | PATH_SEPARATOR=: | |
8289 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ | |
8290 | && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ | |
8291 | || PATH_SEPARATOR=';' | |
8292 | } | |
57aa50d4 | 8293 | fi |
b0cacab0 | 8294 | |
57aa50d4 TT |
8295 | # Find out how to test for executable files. Don't use a zero-byte file, |
8296 | # as systems may use methods other than mode bits to determine executability. | |
8297 | cat >conf$$.file <<_ASEOF | |
8298 | #! /bin/sh | |
8299 | exit 0 | |
8300 | _ASEOF | |
8301 | chmod +x conf$$.file | |
8302 | if test -x conf$$.file >/dev/null 2>&1; then | |
8303 | ac_executable_p="test -x" | |
8304 | else | |
8305 | ac_executable_p="test -f" | |
8306 | fi | |
8307 | rm -f conf$$.file | |
b0cacab0 | 8308 | |
57aa50d4 TT |
8309 | # Extract the first word of "msgfmt", so it can be a program name with args. |
8310 | set dummy msgfmt; ac_word=$2 | |
54445dc2 TT |
8311 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8312 | printf %s "checking for $ac_word... " >&6; } | |
8313 | if test ${ac_cv_path_MSGFMT+y} | |
8314 | then : | |
8315 | printf %s "(cached) " >&6 | |
8316 | else $as_nop | |
57aa50d4 TT |
8317 | case "$MSGFMT" in |
8318 | [\\/]* | ?:[\\/]*) | |
8319 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
8320 | ;; | |
8321 | *) | |
8322 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
8323 | for ac_dir in $PATH; do | |
8324 | IFS="$ac_save_IFS" | |
8325 | test -z "$ac_dir" && ac_dir=. | |
8326 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8327 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
93613951 TT |
8328 | echo "$as_me: trying $ac_dir/$ac_word..." >&5 |
8329 | if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 && | |
57aa50d4 TT |
8330 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
8331 | ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" | |
8332 | break 2 | |
8333 | fi | |
8334 | fi | |
8335 | done | |
8336 | done | |
8337 | IFS="$ac_save_IFS" | |
8338 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" | |
8339 | ;; | |
e1052144 | 8340 | esac |
b0cacab0 | 8341 | fi |
57aa50d4 TT |
8342 | MSGFMT="$ac_cv_path_MSGFMT" |
8343 | if test "$MSGFMT" != ":"; then | |
54445dc2 TT |
8344 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 |
8345 | printf "%s\n" "$MSGFMT" >&6; } | |
57aa50d4 | 8346 | else |
54445dc2 TT |
8347 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8348 | printf "%s\n" "no" >&6; } | |
b0cacab0 | 8349 | fi |
a64c9c13 | 8350 | |
57aa50d4 TT |
8351 | # Extract the first word of "gmsgfmt", so it can be a program name with args. |
8352 | set dummy gmsgfmt; ac_word=$2 | |
54445dc2 TT |
8353 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8354 | printf %s "checking for $ac_word... " >&6; } | |
8355 | if test ${ac_cv_path_GMSGFMT+y} | |
8356 | then : | |
8357 | printf %s "(cached) " >&6 | |
8358 | else $as_nop | |
57aa50d4 TT |
8359 | case $GMSGFMT in |
8360 | [\\/]* | ?:[\\/]*) | |
8361 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
8362 | ;; | |
8363 | *) | |
8364 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8365 | for as_dir in $PATH | |
8366 | do | |
8367 | IFS=$as_save_IFS | |
54445dc2 TT |
8368 | case $as_dir in #((( |
8369 | '') as_dir=./ ;; | |
8370 | */) ;; | |
8371 | *) as_dir=$as_dir/ ;; | |
8372 | esac | |
57aa50d4 | 8373 | for ac_exec_ext in '' $ac_executable_extensions; do |
54445dc2 TT |
8374 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
8375 | ac_cv_path_GMSGFMT="$as_dir$ac_word$ac_exec_ext" | |
8376 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
57aa50d4 TT |
8377 | break 2 |
8378 | fi | |
8379 | done | |
8380 | done | |
8381 | IFS=$as_save_IFS | |
a64c9c13 | 8382 | |
57aa50d4 TT |
8383 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
8384 | ;; | |
e1052144 | 8385 | esac |
57aa50d4 TT |
8386 | fi |
8387 | GMSGFMT=$ac_cv_path_GMSGFMT | |
8388 | if test -n "$GMSGFMT"; then | |
54445dc2 TT |
8389 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 |
8390 | printf "%s\n" "$GMSGFMT" >&6; } | |
b0cacab0 | 8391 | else |
54445dc2 TT |
8392 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8393 | printf "%s\n" "no" >&6; } | |
b0cacab0 | 8394 | fi |
e1052144 | 8395 | |
b0cacab0 | 8396 | |
b0cacab0 | 8397 | |
bdcd5f22 | 8398 | case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in |
93613951 TT |
8399 | '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;; |
8400 | *) GMSGFMT_015=$GMSGFMT ;; | |
8401 | esac | |
8402 | ||
8403 | ||
57aa50d4 TT |
8404 | |
8405 | # Prepare PATH_SEPARATOR. | |
8406 | # The user is always right. | |
8407 | if test "${PATH_SEPARATOR+set}" != set; then | |
93613951 TT |
8408 | # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which |
8409 | # contains only /bin. Note that ksh looks also at the FPATH variable, | |
8410 | # so we have to set that as well for the test. | |
8411 | PATH_SEPARATOR=: | |
8412 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ | |
8413 | && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ | |
8414 | || PATH_SEPARATOR=';' | |
8415 | } | |
57aa50d4 | 8416 | fi |
b0cacab0 | 8417 | |
57aa50d4 TT |
8418 | # Find out how to test for executable files. Don't use a zero-byte file, |
8419 | # as systems may use methods other than mode bits to determine executability. | |
8420 | cat >conf$$.file <<_ASEOF | |
8421 | #! /bin/sh | |
8422 | exit 0 | |
8423 | _ASEOF | |
8424 | chmod +x conf$$.file | |
8425 | if test -x conf$$.file >/dev/null 2>&1; then | |
8426 | ac_executable_p="test -x" | |
8427 | else | |
8428 | ac_executable_p="test -f" | |
8429 | fi | |
8430 | rm -f conf$$.file | |
b0cacab0 | 8431 | |
57aa50d4 TT |
8432 | # Extract the first word of "xgettext", so it can be a program name with args. |
8433 | set dummy xgettext; ac_word=$2 | |
54445dc2 TT |
8434 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8435 | printf %s "checking for $ac_word... " >&6; } | |
8436 | if test ${ac_cv_path_XGETTEXT+y} | |
8437 | then : | |
8438 | printf %s "(cached) " >&6 | |
8439 | else $as_nop | |
57aa50d4 TT |
8440 | case "$XGETTEXT" in |
8441 | [\\/]* | ?:[\\/]*) | |
8442 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
8443 | ;; | |
8444 | *) | |
8445 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
8446 | for ac_dir in $PATH; do | |
8447 | IFS="$ac_save_IFS" | |
8448 | test -z "$ac_dir" && ac_dir=. | |
8449 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8450 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
93613951 TT |
8451 | echo "$as_me: trying $ac_dir/$ac_word..." >&5 |
8452 | if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 && | |
57aa50d4 TT |
8453 | (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 |
8454 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" | |
8455 | break 2 | |
8456 | fi | |
8457 | fi | |
8458 | done | |
8459 | done | |
8460 | IFS="$ac_save_IFS" | |
8461 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
8462 | ;; | |
e1052144 | 8463 | esac |
b0cacab0 | 8464 | fi |
57aa50d4 TT |
8465 | XGETTEXT="$ac_cv_path_XGETTEXT" |
8466 | if test "$XGETTEXT" != ":"; then | |
54445dc2 TT |
8467 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 |
8468 | printf "%s\n" "$XGETTEXT" >&6; } | |
57aa50d4 | 8469 | else |
54445dc2 TT |
8470 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8471 | printf "%s\n" "no" >&6; } | |
b0cacab0 | 8472 | fi |
b0cacab0 | 8473 | |
57aa50d4 | 8474 | rm -f messages.po |
a64c9c13 | 8475 | |
93613951 TT |
8476 | case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in |
8477 | '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;; | |
8478 | *) XGETTEXT_015=$XGETTEXT ;; | |
8479 | esac | |
8480 | ||
8481 | ||
b0cacab0 | 8482 | |
57aa50d4 TT |
8483 | # Prepare PATH_SEPARATOR. |
8484 | # The user is always right. | |
8485 | if test "${PATH_SEPARATOR+set}" != set; then | |
93613951 TT |
8486 | # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which |
8487 | # contains only /bin. Note that ksh looks also at the FPATH variable, | |
8488 | # so we have to set that as well for the test. | |
8489 | PATH_SEPARATOR=: | |
8490 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ | |
8491 | && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ | |
8492 | || PATH_SEPARATOR=';' | |
8493 | } | |
57aa50d4 | 8494 | fi |
b0cacab0 | 8495 | |
57aa50d4 TT |
8496 | # Find out how to test for executable files. Don't use a zero-byte file, |
8497 | # as systems may use methods other than mode bits to determine executability. | |
8498 | cat >conf$$.file <<_ASEOF | |
8499 | #! /bin/sh | |
8500 | exit 0 | |
8501 | _ASEOF | |
8502 | chmod +x conf$$.file | |
8503 | if test -x conf$$.file >/dev/null 2>&1; then | |
8504 | ac_executable_p="test -x" | |
8505 | else | |
8506 | ac_executable_p="test -f" | |
8507 | fi | |
8508 | rm -f conf$$.file | |
8509 | ||
8510 | # Extract the first word of "msgmerge", so it can be a program name with args. | |
8511 | set dummy msgmerge; ac_word=$2 | |
54445dc2 TT |
8512 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8513 | printf %s "checking for $ac_word... " >&6; } | |
8514 | if test ${ac_cv_path_MSGMERGE+y} | |
8515 | then : | |
8516 | printf %s "(cached) " >&6 | |
8517 | else $as_nop | |
57aa50d4 TT |
8518 | case "$MSGMERGE" in |
8519 | [\\/]* | ?:[\\/]*) | |
8520 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. | |
8521 | ;; | |
8522 | *) | |
8523 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
8524 | for ac_dir in $PATH; do | |
8525 | IFS="$ac_save_IFS" | |
8526 | test -z "$ac_dir" && ac_dir=. | |
8527 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8528 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
93613951 TT |
8529 | echo "$as_me: trying $ac_dir/$ac_word..." >&5 |
8530 | if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then | |
57aa50d4 TT |
8531 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" |
8532 | break 2 | |
8533 | fi | |
8534 | fi | |
8535 | done | |
8536 | done | |
8537 | IFS="$ac_save_IFS" | |
8538 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" | |
8539 | ;; | |
e1052144 | 8540 | esac |
57aa50d4 TT |
8541 | fi |
8542 | MSGMERGE="$ac_cv_path_MSGMERGE" | |
8543 | if test "$MSGMERGE" != ":"; then | |
54445dc2 TT |
8544 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 |
8545 | printf "%s\n" "$MSGMERGE" >&6; } | |
b0cacab0 | 8546 | else |
54445dc2 TT |
8547 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8548 | printf "%s\n" "no" >&6; } | |
b0cacab0 | 8549 | fi |
e1052144 | 8550 | |
93636bde | 8551 | |
bdcd5f22 TT |
8552 | if LC_ALL=C $MSGMERGE --help | grep ' --for-msgfmt ' >/dev/null; then |
8553 | MSGMERGE_FOR_MSGFMT_OPTION='--for-msgfmt' | |
8554 | else | |
8555 | if LC_ALL=C $MSGMERGE --help | grep ' --no-fuzzy-matching ' >/dev/null; then | |
8556 | MSGMERGE_FOR_MSGFMT_OPTION='--no-fuzzy-matching --no-location --quiet' | |
8557 | else | |
8558 | MSGMERGE_FOR_MSGFMT_OPTION='--no-location --quiet' | |
8559 | fi | |
8560 | fi | |
93613951 TT |
8561 | |
8562 | ||
8563 | test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS= | |
8564 | ||
8565 | ||
8566 | ac_config_commands="$ac_config_commands po-directories" | |
a64c9c13 | 8567 | |
a64c9c13 | 8568 | |
93613951 | 8569 | |
e598c29b TT |
8570 | if test "X$prefix" = "XNONE"; then |
8571 | acl_final_prefix="$ac_default_prefix" | |
8572 | else | |
8573 | acl_final_prefix="$prefix" | |
8574 | fi | |
8575 | if test "X$exec_prefix" = "XNONE"; then | |
8576 | acl_final_exec_prefix='${prefix}' | |
8577 | else | |
8578 | acl_final_exec_prefix="$exec_prefix" | |
8579 | fi | |
8580 | acl_save_prefix="$prefix" | |
8581 | prefix="$acl_final_prefix" | |
8582 | eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" | |
8583 | prefix="$acl_save_prefix" | |
93613951 | 8584 | |
93613951 | 8585 | |
e598c29b TT |
8586 | |
8587 | # Check whether --with-gnu-ld was given. | |
54445dc2 TT |
8588 | if test ${with_gnu_ld+y} |
8589 | then : | |
e598c29b | 8590 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
54445dc2 | 8591 | else $as_nop |
e598c29b | 8592 | with_gnu_ld=no |
93613951 | 8593 | fi |
a64c9c13 | 8594 | |
e598c29b TT |
8595 | # Prepare PATH_SEPARATOR. |
8596 | # The user is always right. | |
8597 | if test "${PATH_SEPARATOR+set}" != set; then | |
8598 | # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which | |
8599 | # contains only /bin. Note that ksh looks also at the FPATH variable, | |
8600 | # so we have to set that as well for the test. | |
8601 | PATH_SEPARATOR=: | |
8602 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ | |
8603 | && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ | |
8604 | || PATH_SEPARATOR=';' | |
8605 | } | |
d1154eb4 TT |
8606 | fi |
8607 | ||
bdcd5f22 | 8608 | if test -n "$LD"; then |
54445dc2 TT |
8609 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld" >&5 |
8610 | printf %s "checking for ld... " >&6; } | |
bdcd5f22 | 8611 | elif test "$GCC" = yes; then |
54445dc2 TT |
8612 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
8613 | printf %s "checking for ld used by $CC... " >&6; } | |
e598c29b | 8614 | elif test "$with_gnu_ld" = yes; then |
54445dc2 TT |
8615 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
8616 | printf %s "checking for GNU ld... " >&6; } | |
e598c29b | 8617 | else |
54445dc2 TT |
8618 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
8619 | printf %s "checking for non-GNU ld... " >&6; } | |
d1154eb4 | 8620 | fi |
bdcd5f22 TT |
8621 | if test -n "$LD"; then |
8622 | # Let the user override the test with a path. | |
8623 | : | |
8624 | else | |
54445dc2 TT |
8625 | if test ${acl_cv_path_LD+y} |
8626 | then : | |
8627 | printf %s "(cached) " >&6 | |
8628 | else $as_nop | |
bdcd5f22 TT |
8629 | |
8630 | acl_cv_path_LD= # Final result of this test | |
8631 | ac_prog=ld # Program to search in $PATH | |
8632 | if test "$GCC" = yes; then | |
8633 | # Check if gcc -print-prog-name=ld gives a path. | |
8634 | case $host in | |
8635 | *-*-mingw*) | |
8636 | # gcc leaves a trailing carriage return which upsets mingw | |
8637 | acl_output=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
8638 | *) | |
8639 | acl_output=`($CC -print-prog-name=ld) 2>&5` ;; | |
8640 | esac | |
8641 | case $acl_output in | |
8642 | # Accept absolute paths. | |
8643 | [\\/]* | ?:[\\/]*) | |
8644 | re_direlt='/[^/][^/]*/\.\./' | |
8645 | # Canonicalize the pathname of ld | |
8646 | acl_output=`echo "$acl_output" | sed 's%\\\\%/%g'` | |
8647 | while echo "$acl_output" | grep "$re_direlt" > /dev/null 2>&1; do | |
8648 | acl_output=`echo $acl_output | sed "s%$re_direlt%/%"` | |
8649 | done | |
8650 | # Got the pathname. No search in PATH is needed. | |
8651 | acl_cv_path_LD="$acl_output" | |
8652 | ac_prog= | |
8653 | ;; | |
8654 | "") | |
8655 | # If it fails, then pretend we aren't using GCC. | |
8656 | ;; | |
8657 | *) | |
8658 | # If it is relative, then search for the first ld in PATH. | |
8659 | with_gnu_ld=unknown | |
8660 | ;; | |
e598c29b TT |
8661 | esac |
8662 | fi | |
bdcd5f22 TT |
8663 | if test -n "$ac_prog"; then |
8664 | # Search for $ac_prog in $PATH. | |
8665 | acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
8666 | for ac_dir in $PATH; do | |
8667 | IFS="$acl_save_ifs" | |
8668 | test -z "$ac_dir" && ac_dir=. | |
8669 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
8670 | acl_cv_path_LD="$ac_dir/$ac_prog" | |
8671 | # Check to see if the program is GNU ld. I'd rather use --version, | |
8672 | # but apparently some variants of GNU ld only accept -v. | |
8673 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
8674 | case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in | |
8675 | *GNU* | *'with BFD'*) | |
8676 | test "$with_gnu_ld" != no && break | |
8677 | ;; | |
8678 | *) | |
8679 | test "$with_gnu_ld" != yes && break | |
8680 | ;; | |
8681 | esac | |
8682 | fi | |
8683 | done | |
8684 | IFS="$acl_save_ifs" | |
8685 | fi | |
8686 | case $host in | |
8687 | *-*-aix*) | |
8688 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8689 | /* end confdefs.h. */ | |
a30e56b9 | 8690 | #if defined __powerpc64__ || defined _ARCH_PPC64 |
bdcd5f22 TT |
8691 | int ok; |
8692 | #else | |
8693 | error fail | |
8694 | #endif | |
8695 | ||
8696 | _ACEOF | |
54445dc2 TT |
8697 | if ac_fn_c_try_compile "$LINENO" |
8698 | then : | |
bdcd5f22 TT |
8699 | # The compiler produces 64-bit code. Add option '-b64' so that the |
8700 | # linker groks 64-bit object files. | |
8701 | case "$acl_cv_path_LD " in | |
8702 | *" -b64 "*) ;; | |
8703 | *) acl_cv_path_LD="$acl_cv_path_LD -b64" ;; | |
8704 | esac | |
8705 | ||
8706 | fi | |
54445dc2 | 8707 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
bdcd5f22 TT |
8708 | ;; |
8709 | sparc64-*-netbsd*) | |
8710 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8711 | /* end confdefs.h. */ | |
8712 | #if defined __sparcv9 || defined __arch64__ | |
8713 | int ok; | |
8714 | #else | |
8715 | error fail | |
8716 | #endif | |
8717 | ||
8718 | _ACEOF | |
54445dc2 TT |
8719 | if ac_fn_c_try_compile "$LINENO" |
8720 | then : | |
bdcd5f22 | 8721 | |
54445dc2 | 8722 | else $as_nop |
bdcd5f22 TT |
8723 | # The compiler produces 32-bit code. Add option '-m elf32_sparc' |
8724 | # so that the linker groks 32-bit object files. | |
8725 | case "$acl_cv_path_LD " in | |
8726 | *" -m elf32_sparc "*) ;; | |
8727 | *) acl_cv_path_LD="$acl_cv_path_LD -m elf32_sparc" ;; | |
8728 | esac | |
8729 | ||
d1154eb4 | 8730 | fi |
54445dc2 | 8731 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
bdcd5f22 TT |
8732 | ;; |
8733 | esac | |
8734 | ||
d1154eb4 | 8735 | fi |
e598c29b | 8736 | |
bdcd5f22 TT |
8737 | LD="$acl_cv_path_LD" |
8738 | fi | |
e598c29b | 8739 | if test -n "$LD"; then |
54445dc2 TT |
8740 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8741 | printf "%s\n" "$LD" >&6; } | |
d1154eb4 | 8742 | else |
54445dc2 TT |
8743 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8744 | printf "%s\n" "no" >&6; } | |
bdcd5f22 | 8745 | as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
d1154eb4 | 8746 | fi |
54445dc2 TT |
8747 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
8748 | printf %s "checking if the linker ($LD) is GNU ld... " >&6; } | |
8749 | if test ${acl_cv_prog_gnu_ld+y} | |
8750 | then : | |
8751 | printf %s "(cached) " >&6 | |
8752 | else $as_nop | |
e598c29b TT |
8753 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
8754 | case `$LD -v 2>&1 </dev/null` in | |
8755 | *GNU* | *'with BFD'*) | |
8756 | acl_cv_prog_gnu_ld=yes | |
8757 | ;; | |
8758 | *) | |
8759 | acl_cv_prog_gnu_ld=no | |
8760 | ;; | |
8761 | esac | |
8762 | fi | |
54445dc2 TT |
8763 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 |
8764 | printf "%s\n" "$acl_cv_prog_gnu_ld" >&6; } | |
e598c29b | 8765 | with_gnu_ld=$acl_cv_prog_gnu_ld |
93613951 | 8766 | |
d1154eb4 | 8767 | |
93613951 | 8768 | |
d1154eb4 | 8769 | |
54445dc2 TT |
8770 | |
8771 | ||
8772 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 | |
8773 | printf %s "checking for shared library run path origin... " >&6; } | |
8774 | if test ${acl_cv_rpath+y} | |
8775 | then : | |
8776 | printf %s "(cached) " >&6 | |
8777 | else $as_nop | |
d1154eb4 | 8778 | |
e598c29b TT |
8779 | CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ |
8780 | ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh | |
8781 | . ./conftest.sh | |
8782 | rm -f ./conftest.sh | |
8783 | acl_cv_rpath=done | |
d1154eb4 | 8784 | |
93613951 | 8785 | fi |
54445dc2 TT |
8786 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 |
8787 | printf "%s\n" "$acl_cv_rpath" >&6; } | |
e598c29b TT |
8788 | wl="$acl_cv_wl" |
8789 | acl_libext="$acl_cv_libext" | |
8790 | acl_shlibext="$acl_cv_shlibext" | |
8791 | acl_libname_spec="$acl_cv_libname_spec" | |
8792 | acl_library_names_spec="$acl_cv_library_names_spec" | |
8793 | acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" | |
8794 | acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" | |
8795 | acl_hardcode_direct="$acl_cv_hardcode_direct" | |
8796 | acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" | |
8797 | # Check whether --enable-rpath was given. | |
54445dc2 TT |
8798 | if test ${enable_rpath+y} |
8799 | then : | |
e598c29b | 8800 | enableval=$enable_rpath; : |
54445dc2 | 8801 | else $as_nop |
e598c29b | 8802 | enable_rpath=yes |
93613951 | 8803 | fi |
d1154eb4 | 8804 | |
d1154eb4 TT |
8805 | |
8806 | ||
93613951 | 8807 | |
54445dc2 TT |
8808 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking 32-bit host C ABI" >&5 |
8809 | printf %s "checking 32-bit host C ABI... " >&6; } | |
8810 | if test ${gl_cv_host_cpu_c_abi_32bit+y} | |
8811 | then : | |
8812 | printf %s "(cached) " >&6 | |
8813 | else $as_nop | |
bdcd5f22 TT |
8814 | if test -n "$gl_cv_host_cpu_c_abi"; then |
8815 | case "$gl_cv_host_cpu_c_abi" in | |
8816 | i386 | x86_64-x32 | arm | armhf | arm64-ilp32 | hppa | ia64-ilp32 | mips | mipsn32 | powerpc | riscv*-ilp32* | s390 | sparc) | |
8817 | gl_cv_host_cpu_c_abi_32bit=yes ;; | |
8818 | x86_64 | alpha | arm64 | hppa64 | ia64 | mips64 | powerpc64 | powerpc64-elfv2 | riscv*-lp64* | s390x | sparc64 ) | |
8819 | gl_cv_host_cpu_c_abi_32bit=no ;; | |
8820 | *) | |
8821 | gl_cv_host_cpu_c_abi_32bit=unknown ;; | |
8822 | esac | |
8823 | else | |
8824 | case "$host_cpu" in | |
8825 | ||
8826 | # CPUs that only support a 32-bit ABI. | |
8827 | arc \ | |
8828 | | bfin \ | |
8829 | | cris* \ | |
8830 | | csky \ | |
8831 | | epiphany \ | |
8832 | | ft32 \ | |
8833 | | h8300 \ | |
8834 | | m68k \ | |
8835 | | microblaze | microblazeel \ | |
8836 | | nds32 | nds32le | nds32be \ | |
8837 | | nios2 | nios2eb | nios2el \ | |
8838 | | or1k* \ | |
8839 | | or32 \ | |
8840 | | sh | sh1234 | sh1234elb \ | |
8841 | | tic6x \ | |
8842 | | xtensa* ) | |
8843 | gl_cv_host_cpu_c_abi_32bit=yes | |
8844 | ;; | |
8845 | ||
8846 | # CPUs that only support a 64-bit ABI. | |
8847 | alpha | alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] \ | |
8848 | | mmix ) | |
8849 | gl_cv_host_cpu_c_abi_32bit=no | |
8850 | ;; | |
8851 | ||
8852 | i[34567]86 ) | |
8853 | gl_cv_host_cpu_c_abi_32bit=yes | |
8854 | ;; | |
8855 | ||
8856 | x86_64 ) | |
8857 | # On x86_64 systems, the C compiler may be generating code in one of | |
8858 | # these ABIs: | |
8859 | # - 64-bit instruction set, 64-bit pointers, 64-bit 'long': x86_64. | |
8860 | # - 64-bit instruction set, 64-bit pointers, 32-bit 'long': x86_64 | |
8861 | # with native Windows (mingw, MSVC). | |
8862 | # - 64-bit instruction set, 32-bit pointers, 32-bit 'long': x86_64-x32. | |
8863 | # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': i386. | |
8864 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
d1154eb4 | 8865 | /* end confdefs.h. */ |
bdcd5f22 TT |
8866 | #if (defined __x86_64__ || defined __amd64__ \ |
8867 | || defined _M_X64 || defined _M_AMD64) \ | |
8868 | && !(defined __ILP32__ || defined _ILP32) | |
8869 | int ok; | |
8870 | #else | |
8871 | error fail | |
8872 | #endif | |
e598c29b | 8873 | |
bdcd5f22 | 8874 | _ACEOF |
54445dc2 TT |
8875 | if ac_fn_c_try_compile "$LINENO" |
8876 | then : | |
bdcd5f22 | 8877 | gl_cv_host_cpu_c_abi_32bit=no |
54445dc2 | 8878 | else $as_nop |
bdcd5f22 TT |
8879 | gl_cv_host_cpu_c_abi_32bit=yes |
8880 | fi | |
54445dc2 | 8881 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
bdcd5f22 TT |
8882 | ;; |
8883 | ||
8884 | arm* | aarch64 ) | |
8885 | # Assume arm with EABI. | |
8886 | # On arm64 systems, the C compiler may be generating code in one of | |
8887 | # these ABIs: | |
8888 | # - aarch64 instruction set, 64-bit pointers, 64-bit 'long': arm64. | |
8889 | # - aarch64 instruction set, 32-bit pointers, 32-bit 'long': arm64-ilp32. | |
8890 | # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': arm or armhf. | |
8891 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8892 | /* end confdefs.h. */ | |
8893 | #if defined __aarch64__ && !(defined __ILP32__ || defined _ILP32) | |
8894 | int ok; | |
8895 | #else | |
8896 | error fail | |
8897 | #endif | |
8898 | ||
8899 | _ACEOF | |
54445dc2 TT |
8900 | if ac_fn_c_try_compile "$LINENO" |
8901 | then : | |
bdcd5f22 | 8902 | gl_cv_host_cpu_c_abi_32bit=no |
54445dc2 | 8903 | else $as_nop |
bdcd5f22 TT |
8904 | gl_cv_host_cpu_c_abi_32bit=yes |
8905 | fi | |
54445dc2 | 8906 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
bdcd5f22 TT |
8907 | ;; |
8908 | ||
8909 | hppa1.0 | hppa1.1 | hppa2.0* | hppa64 ) | |
8910 | # On hppa, the C compiler may be generating 32-bit code or 64-bit | |
8911 | # code. In the latter case, it defines _LP64 and __LP64__. | |
8912 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8913 | /* end confdefs.h. */ | |
8914 | #ifdef __LP64__ | |
8915 | int ok; | |
8916 | #else | |
8917 | error fail | |
8918 | #endif | |
8919 | ||
8920 | _ACEOF | |
54445dc2 TT |
8921 | if ac_fn_c_try_compile "$LINENO" |
8922 | then : | |
bdcd5f22 | 8923 | gl_cv_host_cpu_c_abi_32bit=no |
54445dc2 | 8924 | else $as_nop |
bdcd5f22 TT |
8925 | gl_cv_host_cpu_c_abi_32bit=yes |
8926 | fi | |
54445dc2 | 8927 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
bdcd5f22 TT |
8928 | ;; |
8929 | ||
8930 | ia64* ) | |
8931 | # On ia64 on HP-UX, the C compiler may be generating 64-bit code or | |
8932 | # 32-bit code. In the latter case, it defines _ILP32. | |
8933 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8934 | /* end confdefs.h. */ | |
8935 | #ifdef _ILP32 | |
8936 | int ok; | |
8937 | #else | |
8938 | error fail | |
8939 | #endif | |
8940 | ||
8941 | _ACEOF | |
54445dc2 TT |
8942 | if ac_fn_c_try_compile "$LINENO" |
8943 | then : | |
bdcd5f22 | 8944 | gl_cv_host_cpu_c_abi_32bit=yes |
54445dc2 | 8945 | else $as_nop |
bdcd5f22 TT |
8946 | gl_cv_host_cpu_c_abi_32bit=no |
8947 | fi | |
54445dc2 | 8948 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
bdcd5f22 TT |
8949 | ;; |
8950 | ||
8951 | mips* ) | |
8952 | # We should also check for (_MIPS_SZPTR == 64), but gcc keeps this | |
8953 | # at 32. | |
8954 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8955 | /* end confdefs.h. */ | |
8956 | #if defined _MIPS_SZLONG && (_MIPS_SZLONG == 64) | |
8957 | int ok; | |
8958 | #else | |
8959 | error fail | |
8960 | #endif | |
8961 | ||
8962 | _ACEOF | |
54445dc2 TT |
8963 | if ac_fn_c_try_compile "$LINENO" |
8964 | then : | |
bdcd5f22 | 8965 | gl_cv_host_cpu_c_abi_32bit=no |
54445dc2 | 8966 | else $as_nop |
bdcd5f22 TT |
8967 | gl_cv_host_cpu_c_abi_32bit=yes |
8968 | fi | |
54445dc2 | 8969 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
bdcd5f22 TT |
8970 | ;; |
8971 | ||
8972 | powerpc* ) | |
8973 | # Different ABIs are in use on AIX vs. Mac OS X vs. Linux,*BSD. | |
8974 | # No need to distinguish them here; the caller may distinguish | |
8975 | # them based on the OS. | |
8976 | # On powerpc64 systems, the C compiler may still be generating | |
8977 | # 32-bit code. And on powerpc-ibm-aix systems, the C compiler may | |
8978 | # be generating 64-bit code. | |
8979 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8980 | /* end confdefs.h. */ | |
a30e56b9 | 8981 | #if defined __powerpc64__ || defined _ARCH_PPC64 |
bdcd5f22 TT |
8982 | int ok; |
8983 | #else | |
8984 | error fail | |
8985 | #endif | |
8986 | ||
8987 | _ACEOF | |
54445dc2 TT |
8988 | if ac_fn_c_try_compile "$LINENO" |
8989 | then : | |
bdcd5f22 | 8990 | gl_cv_host_cpu_c_abi_32bit=no |
54445dc2 | 8991 | else $as_nop |
bdcd5f22 TT |
8992 | gl_cv_host_cpu_c_abi_32bit=yes |
8993 | fi | |
54445dc2 | 8994 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
bdcd5f22 TT |
8995 | ;; |
8996 | ||
8997 | rs6000 ) | |
8998 | gl_cv_host_cpu_c_abi_32bit=yes | |
8999 | ;; | |
9000 | ||
9001 | riscv32 | riscv64 ) | |
9002 | # There are 6 ABIs: ilp32, ilp32f, ilp32d, lp64, lp64f, lp64d. | |
9003 | # Size of 'long' and 'void *': | |
9004 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9005 | /* end confdefs.h. */ | |
9006 | #if defined __LP64__ | |
9007 | int ok; | |
9008 | #else | |
9009 | error fail | |
9010 | #endif | |
9011 | ||
9012 | _ACEOF | |
54445dc2 TT |
9013 | if ac_fn_c_try_compile "$LINENO" |
9014 | then : | |
bdcd5f22 | 9015 | gl_cv_host_cpu_c_abi_32bit=no |
54445dc2 | 9016 | else $as_nop |
bdcd5f22 TT |
9017 | gl_cv_host_cpu_c_abi_32bit=yes |
9018 | fi | |
54445dc2 | 9019 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
bdcd5f22 TT |
9020 | ;; |
9021 | ||
9022 | s390* ) | |
9023 | # On s390x, the C compiler may be generating 64-bit (= s390x) code | |
9024 | # or 31-bit (= s390) code. | |
9025 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9026 | /* end confdefs.h. */ | |
9027 | #if defined __LP64__ || defined __s390x__ | |
9028 | int ok; | |
9029 | #else | |
9030 | error fail | |
9031 | #endif | |
9032 | ||
9033 | _ACEOF | |
54445dc2 TT |
9034 | if ac_fn_c_try_compile "$LINENO" |
9035 | then : | |
bdcd5f22 | 9036 | gl_cv_host_cpu_c_abi_32bit=no |
54445dc2 | 9037 | else $as_nop |
bdcd5f22 TT |
9038 | gl_cv_host_cpu_c_abi_32bit=yes |
9039 | fi | |
54445dc2 | 9040 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
bdcd5f22 TT |
9041 | ;; |
9042 | ||
9043 | sparc | sparc64 ) | |
9044 | # UltraSPARCs running Linux have `uname -m` = "sparc64", but the | |
9045 | # C compiler still generates 32-bit code. | |
9046 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9047 | /* end confdefs.h. */ | |
9048 | #if defined __sparcv9 || defined __arch64__ | |
9049 | int ok; | |
9050 | #else | |
9051 | error fail | |
9052 | #endif | |
9053 | ||
9054 | _ACEOF | |
54445dc2 TT |
9055 | if ac_fn_c_try_compile "$LINENO" |
9056 | then : | |
bdcd5f22 | 9057 | gl_cv_host_cpu_c_abi_32bit=no |
54445dc2 | 9058 | else $as_nop |
bdcd5f22 TT |
9059 | gl_cv_host_cpu_c_abi_32bit=yes |
9060 | fi | |
54445dc2 | 9061 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
bdcd5f22 TT |
9062 | ;; |
9063 | ||
9064 | *) | |
9065 | gl_cv_host_cpu_c_abi_32bit=unknown | |
9066 | ;; | |
9067 | esac | |
9068 | fi | |
9069 | ||
9070 | fi | |
54445dc2 TT |
9071 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_host_cpu_c_abi_32bit" >&5 |
9072 | printf "%s\n" "$gl_cv_host_cpu_c_abi_32bit" >&6; } | |
bdcd5f22 TT |
9073 | |
9074 | HOST_CPU_C_ABI_32BIT="$gl_cv_host_cpu_c_abi_32bit" | |
9075 | ||
9076 | ||
9077 | ||
9078 | ||
9079 | ||
54445dc2 TT |
9080 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ELF binary format" >&5 |
9081 | printf %s "checking for ELF binary format... " >&6; } | |
9082 | if test ${gl_cv_elf+y} | |
9083 | then : | |
9084 | printf %s "(cached) " >&6 | |
9085 | else $as_nop | |
bdcd5f22 TT |
9086 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9087 | /* end confdefs.h. */ | |
a30e56b9 | 9088 | #ifdef __ELF__ |
bdcd5f22 TT |
9089 | Extensible Linking Format |
9090 | #endif | |
d1154eb4 | 9091 | |
d1154eb4 | 9092 | _ACEOF |
e598c29b | 9093 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
54445dc2 TT |
9094 | $EGREP "Extensible Linking Format" >/dev/null 2>&1 |
9095 | then : | |
bdcd5f22 | 9096 | gl_cv_elf=yes |
54445dc2 | 9097 | else $as_nop |
bdcd5f22 | 9098 | gl_cv_elf=no |
57aa50d4 | 9099 | fi |
54445dc2 | 9100 | rm -rf conftest* |
d1154eb4 | 9101 | |
d1154eb4 | 9102 | |
e598c29b | 9103 | fi |
54445dc2 TT |
9104 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_elf" >&5 |
9105 | printf "%s\n" "$gl_cv_elf" >&6; } | |
a30e56b9 | 9106 | if test $gl_cv_elf; then |
bdcd5f22 TT |
9107 | # Extract the ELF class of a file (5th byte) in decimal. |
9108 | # Cf. https://en.wikipedia.org/wiki/Executable_and_Linkable_Format#File_header | |
9109 | if od -A x < /dev/null >/dev/null 2>/dev/null; then | |
9110 | # Use POSIX od. | |
9111 | func_elfclass () | |
9112 | { | |
9113 | od -A n -t d1 -j 4 -N 1 | |
9114 | } | |
9115 | else | |
9116 | # Use BSD hexdump. | |
9117 | func_elfclass () | |
9118 | { | |
9119 | dd bs=1 count=1 skip=4 2>/dev/null | hexdump -e '1/1 "%3d "' | |
9120 | echo | |
9121 | } | |
9122 | fi | |
9123 | case $HOST_CPU_C_ABI_32BIT in | |
9124 | yes) | |
9125 | # 32-bit ABI. | |
9126 | acl_is_expected_elfclass () | |
9127 | { | |
a30e56b9 | 9128 | test "`func_elfclass | sed -e 's/[ ]//g'`" = 1 |
bdcd5f22 TT |
9129 | } |
9130 | ;; | |
9131 | no) | |
9132 | # 64-bit ABI. | |
9133 | acl_is_expected_elfclass () | |
9134 | { | |
a30e56b9 | 9135 | test "`func_elfclass | sed -e 's/[ ]//g'`" = 2 |
bdcd5f22 TT |
9136 | } |
9137 | ;; | |
9138 | *) | |
9139 | # Unknown. | |
9140 | acl_is_expected_elfclass () | |
9141 | { | |
9142 | : | |
9143 | } | |
9144 | ;; | |
9145 | esac | |
9146 | else | |
9147 | acl_is_expected_elfclass () | |
9148 | { | |
9149 | : | |
9150 | } | |
9151 | fi | |
d1154eb4 | 9152 | |
54445dc2 TT |
9153 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the common suffixes of directories in the library search path" >&5 |
9154 | printf %s "checking for the common suffixes of directories in the library search path... " >&6; } | |
9155 | if test ${acl_cv_libdirstems+y} | |
9156 | then : | |
9157 | printf %s "(cached) " >&6 | |
9158 | else $as_nop | |
bdcd5f22 TT |
9159 | acl_libdirstem=lib |
9160 | acl_libdirstem2= | |
9161 | acl_libdirstem3= | |
9162 | case "$host_os" in | |
9163 | solaris*) | |
9164 | if test $HOST_CPU_C_ABI_32BIT = no; then | |
9165 | acl_libdirstem2=lib/64 | |
9166 | case "$host_cpu" in | |
9167 | sparc*) acl_libdirstem3=lib/sparcv9 ;; | |
9168 | i*86 | x86_64) acl_libdirstem3=lib/amd64 ;; | |
9169 | esac | |
9170 | fi | |
9171 | ;; | |
9172 | *) | |
9173 | searchpath=`(LC_ALL=C $CC $CPPFLAGS $CFLAGS -print-search-dirs) 2>/dev/null \ | |
9174 | | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` | |
9175 | if test $HOST_CPU_C_ABI_32BIT != no; then | |
9176 | # 32-bit or unknown ABI. | |
9177 | if test -d /usr/lib32; then | |
9178 | acl_libdirstem2=lib32 | |
9179 | fi | |
9180 | fi | |
9181 | if test $HOST_CPU_C_ABI_32BIT != yes; then | |
9182 | # 64-bit or unknown ABI. | |
9183 | if test -d /usr/lib64; then | |
9184 | acl_libdirstem3=lib64 | |
9185 | fi | |
9186 | fi | |
9187 | if test -n "$searchpath"; then | |
9188 | acl_save_IFS="${IFS= }"; IFS=":" | |
9189 | for searchdir in $searchpath; do | |
9190 | if test -d "$searchdir"; then | |
9191 | case "$searchdir" in | |
9192 | */lib32/ | */lib32 ) acl_libdirstem2=lib32 ;; | |
9193 | */lib64/ | */lib64 ) acl_libdirstem3=lib64 ;; | |
9194 | */../ | */.. ) | |
9195 | # Better ignore directories of this form. They are misleading. | |
9196 | ;; | |
9197 | *) searchdir=`cd "$searchdir" && pwd` | |
9198 | case "$searchdir" in | |
9199 | */lib32 ) acl_libdirstem2=lib32 ;; | |
9200 | */lib64 ) acl_libdirstem3=lib64 ;; | |
9201 | esac ;; | |
9202 | esac | |
9203 | fi | |
9204 | done | |
9205 | IFS="$acl_save_IFS" | |
9206 | if test $HOST_CPU_C_ABI_32BIT = yes; then | |
9207 | # 32-bit ABI. | |
9208 | acl_libdirstem3= | |
9209 | fi | |
9210 | if test $HOST_CPU_C_ABI_32BIT = no; then | |
9211 | # 64-bit ABI. | |
9212 | acl_libdirstem2= | |
9213 | fi | |
9214 | fi | |
9215 | ;; | |
9216 | esac | |
9217 | test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem" | |
9218 | test -n "$acl_libdirstem3" || acl_libdirstem3="$acl_libdirstem" | |
9219 | acl_cv_libdirstems="$acl_libdirstem,$acl_libdirstem2,$acl_libdirstem3" | |
9220 | ||
9221 | fi | |
54445dc2 TT |
9222 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libdirstems" >&5 |
9223 | printf "%s\n" "$acl_cv_libdirstems" >&6; } | |
bdcd5f22 TT |
9224 | acl_libdirstem=`echo "$acl_cv_libdirstems" | sed -e 's/,.*//'` |
9225 | acl_libdirstem2=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,//' -e 's/,.*//'` | |
9226 | acl_libdirstem3=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,[^,]*,//' -e 's/,.*//'` | |
d1154eb4 | 9227 | |
d1154eb4 | 9228 | |
b0cacab0 TT |
9229 | |
9230 | ||
9231 | ||
b0cacab0 TT |
9232 | |
9233 | ||
9234 | ||
57aa50d4 | 9235 | |
57aa50d4 | 9236 | |
b0cacab0 | 9237 | |
e598c29b | 9238 | use_additional=yes |
b0cacab0 | 9239 | |
e598c29b TT |
9240 | acl_save_prefix="$prefix" |
9241 | prefix="$acl_final_prefix" | |
9242 | acl_save_exec_prefix="$exec_prefix" | |
9243 | exec_prefix="$acl_final_exec_prefix" | |
57aa50d4 | 9244 | |
e598c29b TT |
9245 | eval additional_includedir=\"$includedir\" |
9246 | eval additional_libdir=\"$libdir\" | |
bdcd5f22 TT |
9247 | eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\" |
9248 | eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\" | |
57aa50d4 | 9249 | |
e598c29b TT |
9250 | exec_prefix="$acl_save_exec_prefix" |
9251 | prefix="$acl_save_prefix" | |
57aa50d4 | 9252 | |
b0cacab0 | 9253 | |
e598c29b | 9254 | # Check whether --with-libiconv-prefix was given. |
54445dc2 TT |
9255 | if test ${with_libiconv_prefix+y} |
9256 | then : | |
e598c29b TT |
9257 | withval=$with_libiconv_prefix; |
9258 | if test "X$withval" = "Xno"; then | |
9259 | use_additional=no | |
9260 | else | |
9261 | if test "X$withval" = "X"; then | |
57aa50d4 | 9262 | |
e598c29b TT |
9263 | acl_save_prefix="$prefix" |
9264 | prefix="$acl_final_prefix" | |
9265 | acl_save_exec_prefix="$exec_prefix" | |
9266 | exec_prefix="$acl_final_exec_prefix" | |
57aa50d4 | 9267 | |
e598c29b TT |
9268 | eval additional_includedir=\"$includedir\" |
9269 | eval additional_libdir=\"$libdir\" | |
bdcd5f22 TT |
9270 | eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\" |
9271 | eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\" | |
57aa50d4 | 9272 | |
e598c29b TT |
9273 | exec_prefix="$acl_save_exec_prefix" |
9274 | prefix="$acl_save_prefix" | |
b0cacab0 | 9275 | |
e598c29b TT |
9276 | else |
9277 | additional_includedir="$withval/include" | |
9278 | additional_libdir="$withval/$acl_libdirstem" | |
bdcd5f22 TT |
9279 | additional_libdir2="$withval/$acl_libdirstem2" |
9280 | additional_libdir3="$withval/$acl_libdirstem3" | |
e598c29b TT |
9281 | fi |
9282 | fi | |
d1154eb4 TT |
9283 | |
9284 | fi | |
e1052144 | 9285 | |
bdcd5f22 TT |
9286 | if test "X$additional_libdir2" = "X$additional_libdir"; then |
9287 | additional_libdir2= | |
9288 | fi | |
9289 | if test "X$additional_libdir3" = "X$additional_libdir"; then | |
9290 | additional_libdir3= | |
9291 | fi | |
e598c29b TT |
9292 | LIBICONV= |
9293 | LTLIBICONV= | |
9294 | INCICONV= | |
9295 | LIBICONV_PREFIX= | |
9296 | HAVE_LIBICONV= | |
9297 | rpathdirs= | |
9298 | ltrpathdirs= | |
9299 | names_already_handled= | |
9300 | names_next_round='iconv ' | |
9301 | while test -n "$names_next_round"; do | |
9302 | names_this_round="$names_next_round" | |
9303 | names_next_round= | |
9304 | for name in $names_this_round; do | |
9305 | already_handled= | |
9306 | for n in $names_already_handled; do | |
9307 | if test "$n" = "$name"; then | |
9308 | already_handled=yes | |
9309 | break | |
9310 | fi | |
9311 | done | |
9312 | if test -z "$already_handled"; then | |
9313 | names_already_handled="$names_already_handled $name" | |
9314 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` | |
9315 | eval value=\"\$HAVE_LIB$uppername\" | |
9316 | if test -n "$value"; then | |
9317 | if test "$value" = yes; then | |
9318 | eval value=\"\$LIB$uppername\" | |
9319 | test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" | |
9320 | eval value=\"\$LTLIB$uppername\" | |
9321 | test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" | |
9322 | else | |
9323 | : | |
9324 | fi | |
9325 | else | |
9326 | found_dir= | |
9327 | found_la= | |
9328 | found_so= | |
9329 | found_a= | |
9330 | eval libname=\"$acl_libname_spec\" # typically: libname=lib$name | |
9331 | if test -n "$acl_shlibext"; then | |
9332 | shrext=".$acl_shlibext" # typically: shrext=.so | |
9333 | else | |
9334 | shrext= | |
9335 | fi | |
9336 | if test $use_additional = yes; then | |
bdcd5f22 TT |
9337 | for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do |
9338 | if test "X$found_dir" = "X"; then | |
9339 | eval dir=\$$additional_libdir_variable | |
9340 | if test -n "$dir"; then | |
9341 | if test -n "$acl_shlibext"; then | |
9342 | if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then | |
9343 | found_dir="$dir" | |
9344 | found_so="$dir/$libname$shrext" | |
9345 | else | |
9346 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then | |
9347 | ver=`(cd "$dir" && \ | |
9348 | for f in "$libname$shrext".*; do echo "$f"; done \ | |
9349 | | sed -e "s,^$libname$shrext\\\\.,," \ | |
9350 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | |
9351 | | sed 1q ) 2>/dev/null` | |
9352 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then | |
9353 | found_dir="$dir" | |
9354 | found_so="$dir/$libname$shrext.$ver" | |
9355 | fi | |
9356 | else | |
9357 | eval library_names=\"$acl_library_names_spec\" | |
9358 | for f in $library_names; do | |
9359 | if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then | |
9360 | found_dir="$dir" | |
9361 | found_so="$dir/$f" | |
9362 | break | |
9363 | fi | |
9364 | done | |
9365 | fi | |
9366 | fi | |
e598c29b | 9367 | fi |
bdcd5f22 TT |
9368 | if test "X$found_dir" = "X"; then |
9369 | if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then | |
e598c29b | 9370 | found_dir="$dir" |
bdcd5f22 | 9371 | found_a="$dir/$libname.$acl_libext" |
e598c29b | 9372 | fi |
bdcd5f22 TT |
9373 | fi |
9374 | if test "X$found_dir" != "X"; then | |
9375 | if test -f "$dir/$libname.la"; then | |
9376 | found_la="$dir/$libname.la" | |
9377 | fi | |
9378 | fi | |
e598c29b TT |
9379 | fi |
9380 | fi | |
bdcd5f22 | 9381 | done |
e598c29b TT |
9382 | fi |
9383 | if test "X$found_dir" = "X"; then | |
9384 | for x in $LDFLAGS $LTLIBICONV; do | |
07a0db15 | 9385 | |
e598c29b TT |
9386 | acl_save_prefix="$prefix" |
9387 | prefix="$acl_final_prefix" | |
9388 | acl_save_exec_prefix="$exec_prefix" | |
9389 | exec_prefix="$acl_final_exec_prefix" | |
9390 | eval x=\"$x\" | |
9391 | exec_prefix="$acl_save_exec_prefix" | |
9392 | prefix="$acl_save_prefix" | |
50e1e10f | 9393 | |
e598c29b TT |
9394 | case "$x" in |
9395 | -L*) | |
9396 | dir=`echo "X$x" | sed -e 's/^X-L//'` | |
9397 | if test -n "$acl_shlibext"; then | |
bdcd5f22 | 9398 | if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then |
e598c29b TT |
9399 | found_dir="$dir" |
9400 | found_so="$dir/$libname$shrext" | |
9401 | else | |
9402 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then | |
9403 | ver=`(cd "$dir" && \ | |
9404 | for f in "$libname$shrext".*; do echo "$f"; done \ | |
9405 | | sed -e "s,^$libname$shrext\\\\.,," \ | |
9406 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | |
9407 | | sed 1q ) 2>/dev/null` | |
bdcd5f22 | 9408 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then |
e598c29b TT |
9409 | found_dir="$dir" |
9410 | found_so="$dir/$libname$shrext.$ver" | |
9411 | fi | |
9412 | else | |
9413 | eval library_names=\"$acl_library_names_spec\" | |
9414 | for f in $library_names; do | |
bdcd5f22 | 9415 | if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then |
e598c29b TT |
9416 | found_dir="$dir" |
9417 | found_so="$dir/$f" | |
9418 | break | |
9419 | fi | |
9420 | done | |
9421 | fi | |
9422 | fi | |
9423 | fi | |
9424 | if test "X$found_dir" = "X"; then | |
bdcd5f22 | 9425 | if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then |
e598c29b TT |
9426 | found_dir="$dir" |
9427 | found_a="$dir/$libname.$acl_libext" | |
9428 | fi | |
9429 | fi | |
9430 | if test "X$found_dir" != "X"; then | |
9431 | if test -f "$dir/$libname.la"; then | |
9432 | found_la="$dir/$libname.la" | |
9433 | fi | |
9434 | fi | |
9435 | ;; | |
9436 | esac | |
9437 | if test "X$found_dir" != "X"; then | |
9438 | break | |
9439 | fi | |
9440 | done | |
9441 | fi | |
9442 | if test "X$found_dir" != "X"; then | |
9443 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" | |
9444 | if test "X$found_so" != "X"; then | |
9445 | if test "$enable_rpath" = no \ | |
9446 | || test "X$found_dir" = "X/usr/$acl_libdirstem" \ | |
bdcd5f22 TT |
9447 | || test "X$found_dir" = "X/usr/$acl_libdirstem2" \ |
9448 | || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then | |
e598c29b TT |
9449 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
9450 | else | |
9451 | haveit= | |
9452 | for x in $ltrpathdirs; do | |
9453 | if test "X$x" = "X$found_dir"; then | |
9454 | haveit=yes | |
9455 | break | |
9456 | fi | |
9457 | done | |
9458 | if test -z "$haveit"; then | |
9459 | ltrpathdirs="$ltrpathdirs $found_dir" | |
9460 | fi | |
9461 | if test "$acl_hardcode_direct" = yes; then | |
9462 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
9463 | else | |
9464 | if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then | |
9465 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
9466 | haveit= | |
9467 | for x in $rpathdirs; do | |
9468 | if test "X$x" = "X$found_dir"; then | |
9469 | haveit=yes | |
9470 | break | |
9471 | fi | |
9472 | done | |
9473 | if test -z "$haveit"; then | |
9474 | rpathdirs="$rpathdirs $found_dir" | |
9475 | fi | |
9476 | else | |
9477 | haveit= | |
9478 | for x in $LDFLAGS $LIBICONV; do | |
93613951 | 9479 | |
e598c29b TT |
9480 | acl_save_prefix="$prefix" |
9481 | prefix="$acl_final_prefix" | |
9482 | acl_save_exec_prefix="$exec_prefix" | |
9483 | exec_prefix="$acl_final_exec_prefix" | |
9484 | eval x=\"$x\" | |
9485 | exec_prefix="$acl_save_exec_prefix" | |
9486 | prefix="$acl_save_prefix" | |
b0cacab0 | 9487 | |
e598c29b TT |
9488 | if test "X$x" = "X-L$found_dir"; then |
9489 | haveit=yes | |
9490 | break | |
9491 | fi | |
9492 | done | |
9493 | if test -z "$haveit"; then | |
9494 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" | |
9495 | fi | |
9496 | if test "$acl_hardcode_minus_L" != no; then | |
9497 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
9498 | else | |
9499 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" | |
9500 | fi | |
9501 | fi | |
9502 | fi | |
9503 | fi | |
9504 | else | |
9505 | if test "X$found_a" != "X"; then | |
9506 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" | |
9507 | else | |
9508 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" | |
9509 | fi | |
9510 | fi | |
9511 | additional_includedir= | |
9512 | case "$found_dir" in | |
9513 | */$acl_libdirstem | */$acl_libdirstem/) | |
9514 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` | |
9515 | if test "$name" = 'iconv'; then | |
9516 | LIBICONV_PREFIX="$basedir" | |
9517 | fi | |
9518 | additional_includedir="$basedir/include" | |
9519 | ;; | |
9520 | */$acl_libdirstem2 | */$acl_libdirstem2/) | |
9521 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` | |
9522 | if test "$name" = 'iconv'; then | |
9523 | LIBICONV_PREFIX="$basedir" | |
9524 | fi | |
9525 | additional_includedir="$basedir/include" | |
9526 | ;; | |
bdcd5f22 TT |
9527 | */$acl_libdirstem3 | */$acl_libdirstem3/) |
9528 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'` | |
9529 | if test "$name" = 'iconv'; then | |
9530 | LIBICONV_PREFIX="$basedir" | |
9531 | fi | |
9532 | additional_includedir="$basedir/include" | |
9533 | ;; | |
e598c29b TT |
9534 | esac |
9535 | if test "X$additional_includedir" != "X"; then | |
9536 | if test "X$additional_includedir" != "X/usr/include"; then | |
9537 | haveit= | |
9538 | if test "X$additional_includedir" = "X/usr/local/include"; then | |
9539 | if test -n "$GCC"; then | |
9540 | case $host_os in | |
9541 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; | |
9542 | esac | |
9543 | fi | |
9544 | fi | |
9545 | if test -z "$haveit"; then | |
9546 | for x in $CPPFLAGS $INCICONV; do | |
93613951 | 9547 | |
e598c29b TT |
9548 | acl_save_prefix="$prefix" |
9549 | prefix="$acl_final_prefix" | |
9550 | acl_save_exec_prefix="$exec_prefix" | |
9551 | exec_prefix="$acl_final_exec_prefix" | |
9552 | eval x=\"$x\" | |
9553 | exec_prefix="$acl_save_exec_prefix" | |
9554 | prefix="$acl_save_prefix" | |
93613951 | 9555 | |
e598c29b TT |
9556 | if test "X$x" = "X-I$additional_includedir"; then |
9557 | haveit=yes | |
9558 | break | |
9559 | fi | |
9560 | done | |
9561 | if test -z "$haveit"; then | |
9562 | if test -d "$additional_includedir"; then | |
9563 | INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" | |
9564 | fi | |
9565 | fi | |
9566 | fi | |
9567 | fi | |
9568 | fi | |
9569 | if test -n "$found_la"; then | |
9570 | save_libdir="$libdir" | |
9571 | case "$found_la" in | |
9572 | */* | *\\*) . "$found_la" ;; | |
9573 | *) . "./$found_la" ;; | |
9574 | esac | |
9575 | libdir="$save_libdir" | |
9576 | for dep in $dependency_libs; do | |
9577 | case "$dep" in | |
9578 | -L*) | |
bdcd5f22 TT |
9579 | dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
9580 | if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \ | |
9581 | && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \ | |
9582 | && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then | |
e598c29b | 9583 | haveit= |
bdcd5f22 TT |
9584 | if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \ |
9585 | || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \ | |
9586 | || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then | |
e598c29b TT |
9587 | if test -n "$GCC"; then |
9588 | case $host_os in | |
9589 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; | |
9590 | esac | |
9591 | fi | |
9592 | fi | |
9593 | if test -z "$haveit"; then | |
9594 | haveit= | |
9595 | for x in $LDFLAGS $LIBICONV; do | |
b0cacab0 | 9596 | |
e598c29b TT |
9597 | acl_save_prefix="$prefix" |
9598 | prefix="$acl_final_prefix" | |
9599 | acl_save_exec_prefix="$exec_prefix" | |
9600 | exec_prefix="$acl_final_exec_prefix" | |
9601 | eval x=\"$x\" | |
9602 | exec_prefix="$acl_save_exec_prefix" | |
9603 | prefix="$acl_save_prefix" | |
50e1e10f | 9604 | |
bdcd5f22 | 9605 | if test "X$x" = "X-L$dependency_libdir"; then |
e598c29b TT |
9606 | haveit=yes |
9607 | break | |
9608 | fi | |
9609 | done | |
9610 | if test -z "$haveit"; then | |
bdcd5f22 TT |
9611 | if test -d "$dependency_libdir"; then |
9612 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$dependency_libdir" | |
e598c29b TT |
9613 | fi |
9614 | fi | |
9615 | haveit= | |
9616 | for x in $LDFLAGS $LTLIBICONV; do | |
e1052144 | 9617 | |
e598c29b TT |
9618 | acl_save_prefix="$prefix" |
9619 | prefix="$acl_final_prefix" | |
9620 | acl_save_exec_prefix="$exec_prefix" | |
9621 | exec_prefix="$acl_final_exec_prefix" | |
9622 | eval x=\"$x\" | |
9623 | exec_prefix="$acl_save_exec_prefix" | |
9624 | prefix="$acl_save_prefix" | |
9625 | ||
bdcd5f22 | 9626 | if test "X$x" = "X-L$dependency_libdir"; then |
e598c29b TT |
9627 | haveit=yes |
9628 | break | |
9629 | fi | |
9630 | done | |
9631 | if test -z "$haveit"; then | |
bdcd5f22 TT |
9632 | if test -d "$dependency_libdir"; then |
9633 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$dependency_libdir" | |
e598c29b TT |
9634 | fi |
9635 | fi | |
9636 | fi | |
9637 | fi | |
9638 | ;; | |
9639 | -R*) | |
9640 | dir=`echo "X$dep" | sed -e 's/^X-R//'` | |
9641 | if test "$enable_rpath" != no; then | |
9642 | haveit= | |
9643 | for x in $rpathdirs; do | |
9644 | if test "X$x" = "X$dir"; then | |
9645 | haveit=yes | |
9646 | break | |
9647 | fi | |
9648 | done | |
9649 | if test -z "$haveit"; then | |
9650 | rpathdirs="$rpathdirs $dir" | |
9651 | fi | |
9652 | haveit= | |
9653 | for x in $ltrpathdirs; do | |
9654 | if test "X$x" = "X$dir"; then | |
9655 | haveit=yes | |
9656 | break | |
9657 | fi | |
9658 | done | |
9659 | if test -z "$haveit"; then | |
9660 | ltrpathdirs="$ltrpathdirs $dir" | |
9661 | fi | |
9662 | fi | |
9663 | ;; | |
9664 | -l*) | |
a30e56b9 | 9665 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
e598c29b TT |
9666 | ;; |
9667 | *.la) | |
9668 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` | |
9669 | ;; | |
9670 | *) | |
9671 | LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" | |
9672 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" | |
9673 | ;; | |
9674 | esac | |
9675 | done | |
9676 | fi | |
9677 | else | |
9678 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" | |
9679 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" | |
9680 | fi | |
9681 | fi | |
9682 | fi | |
9683 | done | |
93613951 | 9684 | done |
e598c29b TT |
9685 | if test "X$rpathdirs" != "X"; then |
9686 | if test -n "$acl_hardcode_libdir_separator"; then | |
9687 | alldirs= | |
9688 | for found_dir in $rpathdirs; do | |
9689 | alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" | |
9690 | done | |
9691 | acl_save_libdir="$libdir" | |
9692 | libdir="$alldirs" | |
9693 | eval flag=\"$acl_hardcode_libdir_flag_spec\" | |
9694 | libdir="$acl_save_libdir" | |
9695 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" | |
9696 | else | |
9697 | for found_dir in $rpathdirs; do | |
9698 | acl_save_libdir="$libdir" | |
9699 | libdir="$found_dir" | |
9700 | eval flag=\"$acl_hardcode_libdir_flag_spec\" | |
9701 | libdir="$acl_save_libdir" | |
9702 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" | |
9703 | done | |
9704 | fi | |
9705 | fi | |
9706 | if test "X$ltrpathdirs" != "X"; then | |
9707 | for found_dir in $ltrpathdirs; do | |
9708 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" | |
9709 | done | |
9710 | fi | |
b0cacab0 | 9711 | |
93613951 | 9712 | |
93613951 | 9713 | |
57aa50d4 TT |
9714 | |
9715 | ||
9716 | ||
9717 | ||
9718 | ||
9719 | ||
9720 | ||
9721 | ||
9722 | ||
9723 | ||
9724 | ||
b0cacab0 | 9725 | |
740837de | 9726 | |
b0cacab0 TT |
9727 | |
9728 | ||
9729 | ||
93613951 TT |
9730 | |
9731 | ||
9732 | ||
9733 | ||
9734 | ||
9735 | ||
9736 | ||
93613951 TT |
9737 | |
9738 | ||
9739 | ||
54445dc2 TT |
9740 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5 |
9741 | printf %s "checking for CFPreferencesCopyAppValue... " >&6; } | |
9742 | if test ${gt_cv_func_CFPreferencesCopyAppValue+y} | |
9743 | then : | |
9744 | printf %s "(cached) " >&6 | |
9745 | else $as_nop | |
93613951 TT |
9746 | gt_save_LIBS="$LIBS" |
9747 | LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" | |
9748 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9749 | /* end confdefs.h. */ | |
9750 | #include <CoreFoundation/CFPreferences.h> | |
9751 | int | |
54445dc2 | 9752 | main (void) |
93613951 TT |
9753 | { |
9754 | CFPreferencesCopyAppValue(NULL, NULL) | |
9755 | ; | |
9756 | return 0; | |
9757 | } | |
9758 | _ACEOF | |
54445dc2 TT |
9759 | if ac_fn_c_try_link "$LINENO" |
9760 | then : | |
93613951 | 9761 | gt_cv_func_CFPreferencesCopyAppValue=yes |
54445dc2 | 9762 | else $as_nop |
93613951 | 9763 | gt_cv_func_CFPreferencesCopyAppValue=no |
50e1e10f | 9764 | fi |
54445dc2 | 9765 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
93613951 TT |
9766 | conftest$ac_exeext conftest.$ac_ext |
9767 | LIBS="$gt_save_LIBS" | |
50e1e10f | 9768 | fi |
54445dc2 TT |
9769 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 |
9770 | printf "%s\n" "$gt_cv_func_CFPreferencesCopyAppValue" >&6; } | |
93613951 TT |
9771 | if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then |
9772 | ||
54445dc2 | 9773 | printf "%s\n" "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h |
93613951 TT |
9774 | |
9775 | fi | |
54445dc2 TT |
9776 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5 |
9777 | printf %s "checking for CFLocaleCopyPreferredLanguages... " >&6; } | |
9778 | if test ${gt_cv_func_CFLocaleCopyPreferredLanguages+y} | |
9779 | then : | |
9780 | printf %s "(cached) " >&6 | |
9781 | else $as_nop | |
93613951 TT |
9782 | gt_save_LIBS="$LIBS" |
9783 | LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" | |
9784 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9785 | /* end confdefs.h. */ | |
9786 | #include <CoreFoundation/CFLocale.h> | |
9787 | int | |
54445dc2 | 9788 | main (void) |
93613951 | 9789 | { |
bdcd5f22 | 9790 | CFLocaleCopyPreferredLanguages(); |
93613951 TT |
9791 | ; |
9792 | return 0; | |
9793 | } | |
9794 | _ACEOF | |
54445dc2 TT |
9795 | if ac_fn_c_try_link "$LINENO" |
9796 | then : | |
bdcd5f22 | 9797 | gt_cv_func_CFLocaleCopyPreferredLanguages=yes |
54445dc2 | 9798 | else $as_nop |
bdcd5f22 | 9799 | gt_cv_func_CFLocaleCopyPreferredLanguages=no |
93613951 | 9800 | fi |
54445dc2 | 9801 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
93613951 TT |
9802 | conftest$ac_exeext conftest.$ac_ext |
9803 | LIBS="$gt_save_LIBS" | |
9804 | fi | |
54445dc2 TT |
9805 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5 |
9806 | printf "%s\n" "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; } | |
bdcd5f22 | 9807 | if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then |
93613951 | 9808 | |
54445dc2 | 9809 | printf "%s\n" "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h |
93613951 TT |
9810 | |
9811 | fi | |
9812 | INTL_MACOSX_LIBS= | |
bdcd5f22 TT |
9813 | if test $gt_cv_func_CFPreferencesCopyAppValue = yes \ |
9814 | || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then | |
93613951 TT |
9815 | INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" |
9816 | fi | |
9817 | ||
50e1e10f | 9818 | |
b0cacab0 TT |
9819 | |
9820 | ||
9821 | ||
9822 | ||
57aa50d4 TT |
9823 | LIBINTL= |
9824 | LTLIBINTL= | |
9825 | POSUB= | |
9826 | ||
93613951 TT |
9827 | case " $gt_needs " in |
9828 | *" need-formatstring-macros "*) gt_api_version=3 ;; | |
9829 | *" need-ngettext "*) gt_api_version=2 ;; | |
9830 | *) gt_api_version=1 ;; | |
9831 | esac | |
9832 | gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc" | |
9833 | gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl" | |
9834 | ||
57aa50d4 TT |
9835 | if test "$USE_NLS" = "yes"; then |
9836 | gt_use_preinstalled_gnugettext=no | |
b0cacab0 TT |
9837 | |
9838 | ||
e598c29b TT |
9839 | if test $gt_api_version -ge 3; then |
9840 | gt_revision_test_code=' | |
9841 | #ifndef __GNU_GETTEXT_SUPPORTED_REVISION | |
9842 | #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) | |
9843 | #endif | |
9844 | typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; | |
9845 | ' | |
9846 | else | |
9847 | gt_revision_test_code= | |
9848 | fi | |
9849 | if test $gt_api_version -ge 2; then | |
9850 | gt_expression_test_code=' + * ngettext ("", "", 0)' | |
9851 | else | |
9852 | gt_expression_test_code= | |
9853 | fi | |
9854 | ||
54445dc2 TT |
9855 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5 |
9856 | printf %s "checking for GNU gettext in libc... " >&6; } | |
9857 | if eval test \${$gt_func_gnugettext_libc+y} | |
9858 | then : | |
9859 | printf %s "(cached) " >&6 | |
9860 | else $as_nop | |
e598c29b TT |
9861 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9862 | /* end confdefs.h. */ | |
9863 | ||
9864 | #include <libintl.h> | |
9865 | #ifndef __GNU_GETTEXT_SUPPORTED_REVISION | |
9866 | extern int _nl_msg_cat_cntr; | |
9867 | extern int *_nl_domain_bindings; | |
9868 | #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings) | |
9869 | #else | |
9870 | #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0 | |
9871 | #endif | |
9872 | $gt_revision_test_code | |
9873 | ||
9874 | int | |
54445dc2 | 9875 | main (void) |
e598c29b TT |
9876 | { |
9877 | ||
9878 | bindtextdomain ("", ""); | |
9879 | return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION | |
9880 | ||
9881 | ; | |
9882 | return 0; | |
9883 | } | |
9884 | _ACEOF | |
54445dc2 TT |
9885 | if ac_fn_c_try_link "$LINENO" |
9886 | then : | |
e598c29b | 9887 | eval "$gt_func_gnugettext_libc=yes" |
54445dc2 | 9888 | else $as_nop |
e598c29b TT |
9889 | eval "$gt_func_gnugettext_libc=no" |
9890 | fi | |
54445dc2 | 9891 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
e598c29b | 9892 | conftest$ac_exeext conftest.$ac_ext |
50e1e10f | 9893 | fi |
e598c29b | 9894 | eval ac_res=\$$gt_func_gnugettext_libc |
54445dc2 TT |
9895 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
9896 | printf "%s\n" "$ac_res" >&6; } | |
50e1e10f | 9897 | |
e598c29b TT |
9898 | if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then |
9899 | ||
9900 | ||
9901 | ||
9902 | ||
9903 | ||
9904 | am_save_CPPFLAGS="$CPPFLAGS" | |
9905 | ||
9906 | for element in $INCICONV; do | |
9907 | haveit= | |
9908 | for x in $CPPFLAGS; do | |
9909 | ||
9910 | acl_save_prefix="$prefix" | |
9911 | prefix="$acl_final_prefix" | |
9912 | acl_save_exec_prefix="$exec_prefix" | |
9913 | exec_prefix="$acl_final_exec_prefix" | |
9914 | eval x=\"$x\" | |
9915 | exec_prefix="$acl_save_exec_prefix" | |
9916 | prefix="$acl_save_prefix" | |
9917 | ||
9918 | if test "X$x" = "X$element"; then | |
9919 | haveit=yes | |
9920 | break | |
9921 | fi | |
9922 | done | |
9923 | if test -z "$haveit"; then | |
9924 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | |
9925 | fi | |
9926 | done | |
9927 | ||
9928 | ||
54445dc2 TT |
9929 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 |
9930 | printf %s "checking for iconv... " >&6; } | |
9931 | if test ${am_cv_func_iconv+y} | |
9932 | then : | |
9933 | printf %s "(cached) " >&6 | |
9934 | else $as_nop | |
e598c29b TT |
9935 | |
9936 | am_cv_func_iconv="no, consider installing GNU libiconv" | |
9937 | am_cv_lib_iconv=no | |
9938 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9939 | /* end confdefs.h. */ | |
9940 | ||
9941 | #include <stdlib.h> | |
9942 | #include <iconv.h> | |
b0cacab0 | 9943 | |
e598c29b | 9944 | int |
54445dc2 | 9945 | main (void) |
e598c29b TT |
9946 | { |
9947 | iconv_t cd = iconv_open("",""); | |
9948 | iconv(cd,NULL,NULL,NULL,NULL); | |
9949 | iconv_close(cd); | |
9950 | ; | |
9951 | return 0; | |
9952 | } | |
9953 | _ACEOF | |
54445dc2 TT |
9954 | if ac_fn_c_try_link "$LINENO" |
9955 | then : | |
e598c29b TT |
9956 | am_cv_func_iconv=yes |
9957 | fi | |
54445dc2 | 9958 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
e598c29b TT |
9959 | conftest$ac_exeext conftest.$ac_ext |
9960 | if test "$am_cv_func_iconv" != yes; then | |
9961 | am_save_LIBS="$LIBS" | |
9962 | LIBS="$LIBS $LIBICONV" | |
9963 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9964 | /* end confdefs.h. */ | |
b0cacab0 | 9965 | |
e598c29b TT |
9966 | #include <stdlib.h> |
9967 | #include <iconv.h> | |
b0cacab0 | 9968 | |
e598c29b | 9969 | int |
54445dc2 | 9970 | main (void) |
e598c29b TT |
9971 | { |
9972 | iconv_t cd = iconv_open("",""); | |
9973 | iconv(cd,NULL,NULL,NULL,NULL); | |
9974 | iconv_close(cd); | |
9975 | ; | |
9976 | return 0; | |
9977 | } | |
9978 | _ACEOF | |
54445dc2 TT |
9979 | if ac_fn_c_try_link "$LINENO" |
9980 | then : | |
e598c29b TT |
9981 | am_cv_lib_iconv=yes |
9982 | am_cv_func_iconv=yes | |
9983 | fi | |
54445dc2 | 9984 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
e598c29b TT |
9985 | conftest$ac_exeext conftest.$ac_ext |
9986 | LIBS="$am_save_LIBS" | |
9987 | fi | |
b0cacab0 | 9988 | |
e598c29b | 9989 | fi |
54445dc2 TT |
9990 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 |
9991 | printf "%s\n" "$am_cv_func_iconv" >&6; } | |
e598c29b | 9992 | if test "$am_cv_func_iconv" = yes; then |
54445dc2 TT |
9993 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 |
9994 | printf %s "checking for working iconv... " >&6; } | |
9995 | if test ${am_cv_func_iconv_works+y} | |
9996 | then : | |
9997 | printf %s "(cached) " >&6 | |
9998 | else $as_nop | |
e598c29b TT |
9999 | |
10000 | am_save_LIBS="$LIBS" | |
10001 | if test $am_cv_lib_iconv = yes; then | |
10002 | LIBS="$LIBS $LIBICONV" | |
10003 | fi | |
10004 | am_cv_func_iconv_works=no | |
10005 | for ac_iconv_const in '' 'const'; do | |
54445dc2 TT |
10006 | if test "$cross_compiling" = yes |
10007 | then : | |
e598c29b TT |
10008 | case "$host_os" in |
10009 | aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; | |
10010 | *) am_cv_func_iconv_works="guessing yes" ;; | |
10011 | esac | |
54445dc2 | 10012 | else $as_nop |
57aa50d4 TT |
10013 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
10014 | /* end confdefs.h. */ | |
93613951 | 10015 | |
e598c29b TT |
10016 | #include <iconv.h> |
10017 | #include <string.h> | |
10018 | ||
10019 | #ifndef ICONV_CONST | |
10020 | # define ICONV_CONST $ac_iconv_const | |
10021 | #endif | |
93613951 | 10022 | |
57aa50d4 | 10023 | int |
54445dc2 | 10024 | main (void) |
57aa50d4 | 10025 | { |
e598c29b | 10026 | int result = 0; |
a30e56b9 TT |
10027 | /* Test against AIX 5.1 bug: Failures are not distinguishable from successful |
10028 | returns. */ | |
e598c29b TT |
10029 | { |
10030 | iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); | |
10031 | if (cd_utf8_to_88591 != (iconv_t)(-1)) | |
10032 | { | |
10033 | static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */ | |
10034 | char buf[10]; | |
10035 | ICONV_CONST char *inptr = input; | |
10036 | size_t inbytesleft = strlen (input); | |
10037 | char *outptr = buf; | |
10038 | size_t outbytesleft = sizeof (buf); | |
10039 | size_t res = iconv (cd_utf8_to_88591, | |
10040 | &inptr, &inbytesleft, | |
10041 | &outptr, &outbytesleft); | |
10042 | if (res == 0) | |
10043 | result |= 1; | |
10044 | iconv_close (cd_utf8_to_88591); | |
10045 | } | |
10046 | } | |
10047 | /* Test against Solaris 10 bug: Failures are not distinguishable from | |
10048 | successful returns. */ | |
10049 | { | |
10050 | iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646"); | |
10051 | if (cd_ascii_to_88591 != (iconv_t)(-1)) | |
10052 | { | |
10053 | static ICONV_CONST char input[] = "\263"; | |
10054 | char buf[10]; | |
10055 | ICONV_CONST char *inptr = input; | |
10056 | size_t inbytesleft = strlen (input); | |
10057 | char *outptr = buf; | |
10058 | size_t outbytesleft = sizeof (buf); | |
10059 | size_t res = iconv (cd_ascii_to_88591, | |
10060 | &inptr, &inbytesleft, | |
10061 | &outptr, &outbytesleft); | |
10062 | if (res == 0) | |
10063 | result |= 2; | |
10064 | iconv_close (cd_ascii_to_88591); | |
10065 | } | |
10066 | } | |
10067 | /* Test against AIX 6.1..7.1 bug: Buffer overrun. */ | |
10068 | { | |
10069 | iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1"); | |
10070 | if (cd_88591_to_utf8 != (iconv_t)(-1)) | |
10071 | { | |
10072 | static ICONV_CONST char input[] = "\304"; | |
10073 | static char buf[2] = { (char)0xDE, (char)0xAD }; | |
10074 | ICONV_CONST char *inptr = input; | |
10075 | size_t inbytesleft = 1; | |
10076 | char *outptr = buf; | |
10077 | size_t outbytesleft = 1; | |
10078 | size_t res = iconv (cd_88591_to_utf8, | |
10079 | &inptr, &inbytesleft, | |
10080 | &outptr, &outbytesleft); | |
10081 | if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD) | |
10082 | result |= 4; | |
10083 | iconv_close (cd_88591_to_utf8); | |
10084 | } | |
10085 | } | |
10086 | #if 0 /* This bug could be worked around by the caller. */ | |
10087 | /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ | |
10088 | { | |
10089 | iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); | |
10090 | if (cd_88591_to_utf8 != (iconv_t)(-1)) | |
10091 | { | |
10092 | static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; | |
10093 | char buf[50]; | |
10094 | ICONV_CONST char *inptr = input; | |
10095 | size_t inbytesleft = strlen (input); | |
10096 | char *outptr = buf; | |
10097 | size_t outbytesleft = sizeof (buf); | |
10098 | size_t res = iconv (cd_88591_to_utf8, | |
10099 | &inptr, &inbytesleft, | |
10100 | &outptr, &outbytesleft); | |
10101 | if ((int)res > 0) | |
10102 | result |= 8; | |
10103 | iconv_close (cd_88591_to_utf8); | |
10104 | } | |
10105 | } | |
10106 | #endif | |
10107 | /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is | |
10108 | provided. */ | |
bdcd5f22 TT |
10109 | { |
10110 | /* Try standardized names. */ | |
10111 | iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP"); | |
10112 | /* Try IRIX, OSF/1 names. */ | |
10113 | iconv_t cd2 = iconv_open ("UTF-8", "eucJP"); | |
10114 | /* Try AIX names. */ | |
10115 | iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP"); | |
10116 | /* Try HP-UX names. */ | |
10117 | iconv_t cd4 = iconv_open ("utf8", "eucJP"); | |
10118 | if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1) | |
10119 | && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1)) | |
10120 | result |= 16; | |
10121 | if (cd1 != (iconv_t)(-1)) | |
10122 | iconv_close (cd1); | |
10123 | if (cd2 != (iconv_t)(-1)) | |
10124 | iconv_close (cd2); | |
10125 | if (cd3 != (iconv_t)(-1)) | |
10126 | iconv_close (cd3); | |
10127 | if (cd4 != (iconv_t)(-1)) | |
10128 | iconv_close (cd4); | |
10129 | } | |
e598c29b | 10130 | return result; |
93613951 | 10131 | |
57aa50d4 TT |
10132 | ; |
10133 | return 0; | |
10134 | } | |
10135 | _ACEOF | |
54445dc2 TT |
10136 | if ac_fn_c_try_run "$LINENO" |
10137 | then : | |
e598c29b | 10138 | am_cv_func_iconv_works=yes |
57aa50d4 | 10139 | fi |
e598c29b TT |
10140 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
10141 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
57aa50d4 | 10142 | fi |
93613951 | 10143 | |
e598c29b TT |
10144 | test "$am_cv_func_iconv_works" = no || break |
10145 | done | |
10146 | LIBS="$am_save_LIBS" | |
10147 | ||
10148 | fi | |
54445dc2 TT |
10149 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 |
10150 | printf "%s\n" "$am_cv_func_iconv_works" >&6; } | |
e598c29b TT |
10151 | case "$am_cv_func_iconv_works" in |
10152 | *no) am_func_iconv=no am_cv_lib_iconv=no ;; | |
10153 | *) am_func_iconv=yes ;; | |
10154 | esac | |
10155 | else | |
10156 | am_func_iconv=no am_cv_lib_iconv=no | |
10157 | fi | |
10158 | if test "$am_func_iconv" = yes; then | |
10159 | ||
54445dc2 | 10160 | printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h |
e598c29b TT |
10161 | |
10162 | fi | |
10163 | if test "$am_cv_lib_iconv" = yes; then | |
54445dc2 TT |
10164 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 |
10165 | printf %s "checking how to link with libiconv... " >&6; } | |
10166 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 | |
10167 | printf "%s\n" "$LIBICONV" >&6; } | |
e598c29b TT |
10168 | else |
10169 | CPPFLAGS="$am_save_CPPFLAGS" | |
10170 | LIBICONV= | |
10171 | LTLIBICONV= | |
10172 | fi | |
10173 | ||
10174 | ||
10175 | ||
93613951 TT |
10176 | |
10177 | ||
10178 | ||
10179 | ||
b0cacab0 TT |
10180 | |
10181 | ||
10182 | ||
57aa50d4 | 10183 | use_additional=yes |
b0cacab0 | 10184 | |
57aa50d4 TT |
10185 | acl_save_prefix="$prefix" |
10186 | prefix="$acl_final_prefix" | |
10187 | acl_save_exec_prefix="$exec_prefix" | |
10188 | exec_prefix="$acl_final_exec_prefix" | |
b0cacab0 | 10189 | |
57aa50d4 TT |
10190 | eval additional_includedir=\"$includedir\" |
10191 | eval additional_libdir=\"$libdir\" | |
bdcd5f22 TT |
10192 | eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\" |
10193 | eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\" | |
b0cacab0 | 10194 | |
57aa50d4 TT |
10195 | exec_prefix="$acl_save_exec_prefix" |
10196 | prefix="$acl_save_prefix" | |
b0cacab0 TT |
10197 | |
10198 | ||
57aa50d4 | 10199 | # Check whether --with-libintl-prefix was given. |
54445dc2 TT |
10200 | if test ${with_libintl_prefix+y} |
10201 | then : | |
57aa50d4 TT |
10202 | withval=$with_libintl_prefix; |
10203 | if test "X$withval" = "Xno"; then | |
10204 | use_additional=no | |
10205 | else | |
10206 | if test "X$withval" = "X"; then | |
b0cacab0 | 10207 | |
57aa50d4 TT |
10208 | acl_save_prefix="$prefix" |
10209 | prefix="$acl_final_prefix" | |
10210 | acl_save_exec_prefix="$exec_prefix" | |
10211 | exec_prefix="$acl_final_exec_prefix" | |
b0cacab0 | 10212 | |
57aa50d4 TT |
10213 | eval additional_includedir=\"$includedir\" |
10214 | eval additional_libdir=\"$libdir\" | |
bdcd5f22 TT |
10215 | eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\" |
10216 | eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\" | |
7321d94e | 10217 | |
57aa50d4 TT |
10218 | exec_prefix="$acl_save_exec_prefix" |
10219 | prefix="$acl_save_prefix" | |
7321d94e | 10220 | |
57aa50d4 TT |
10221 | else |
10222 | additional_includedir="$withval/include" | |
93613951 | 10223 | additional_libdir="$withval/$acl_libdirstem" |
bdcd5f22 TT |
10224 | additional_libdir2="$withval/$acl_libdirstem2" |
10225 | additional_libdir3="$withval/$acl_libdirstem3" | |
57aa50d4 TT |
10226 | fi |
10227 | fi | |
7321d94e | 10228 | |
7321d94e MK |
10229 | fi |
10230 | ||
bdcd5f22 TT |
10231 | if test "X$additional_libdir2" = "X$additional_libdir"; then |
10232 | additional_libdir2= | |
10233 | fi | |
10234 | if test "X$additional_libdir3" = "X$additional_libdir"; then | |
10235 | additional_libdir3= | |
10236 | fi | |
57aa50d4 TT |
10237 | LIBINTL= |
10238 | LTLIBINTL= | |
10239 | INCINTL= | |
93613951 TT |
10240 | LIBINTL_PREFIX= |
10241 | HAVE_LIBINTL= | |
57aa50d4 TT |
10242 | rpathdirs= |
10243 | ltrpathdirs= | |
10244 | names_already_handled= | |
10245 | names_next_round='intl ' | |
10246 | while test -n "$names_next_round"; do | |
10247 | names_this_round="$names_next_round" | |
10248 | names_next_round= | |
10249 | for name in $names_this_round; do | |
10250 | already_handled= | |
10251 | for n in $names_already_handled; do | |
10252 | if test "$n" = "$name"; then | |
10253 | already_handled=yes | |
10254 | break | |
10255 | fi | |
50e1e10f | 10256 | done |
57aa50d4 TT |
10257 | if test -z "$already_handled"; then |
10258 | names_already_handled="$names_already_handled $name" | |
93613951 | 10259 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` |
57aa50d4 TT |
10260 | eval value=\"\$HAVE_LIB$uppername\" |
10261 | if test -n "$value"; then | |
10262 | if test "$value" = yes; then | |
10263 | eval value=\"\$LIB$uppername\" | |
10264 | test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" | |
10265 | eval value=\"\$LTLIB$uppername\" | |
10266 | test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" | |
10267 | else | |
10268 | : | |
10269 | fi | |
10270 | else | |
10271 | found_dir= | |
10272 | found_la= | |
10273 | found_so= | |
10274 | found_a= | |
93613951 TT |
10275 | eval libname=\"$acl_libname_spec\" # typically: libname=lib$name |
10276 | if test -n "$acl_shlibext"; then | |
10277 | shrext=".$acl_shlibext" # typically: shrext=.so | |
10278 | else | |
10279 | shrext= | |
10280 | fi | |
57aa50d4 | 10281 | if test $use_additional = yes; then |
bdcd5f22 TT |
10282 | for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do |
10283 | if test "X$found_dir" = "X"; then | |
10284 | eval dir=\$$additional_libdir_variable | |
10285 | if test -n "$dir"; then | |
10286 | if test -n "$acl_shlibext"; then | |
10287 | if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then | |
10288 | found_dir="$dir" | |
10289 | found_so="$dir/$libname$shrext" | |
10290 | else | |
10291 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then | |
10292 | ver=`(cd "$dir" && \ | |
10293 | for f in "$libname$shrext".*; do echo "$f"; done \ | |
10294 | | sed -e "s,^$libname$shrext\\\\.,," \ | |
10295 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | |
10296 | | sed 1q ) 2>/dev/null` | |
10297 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then | |
10298 | found_dir="$dir" | |
10299 | found_so="$dir/$libname$shrext.$ver" | |
10300 | fi | |
10301 | else | |
10302 | eval library_names=\"$acl_library_names_spec\" | |
10303 | for f in $library_names; do | |
10304 | if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then | |
10305 | found_dir="$dir" | |
10306 | found_so="$dir/$f" | |
10307 | break | |
10308 | fi | |
10309 | done | |
10310 | fi | |
10311 | fi | |
93613951 | 10312 | fi |
bdcd5f22 TT |
10313 | if test "X$found_dir" = "X"; then |
10314 | if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then | |
93613951 | 10315 | found_dir="$dir" |
bdcd5f22 | 10316 | found_a="$dir/$libname.$acl_libext" |
93613951 | 10317 | fi |
bdcd5f22 TT |
10318 | fi |
10319 | if test "X$found_dir" != "X"; then | |
10320 | if test -f "$dir/$libname.la"; then | |
10321 | found_la="$dir/$libname.la" | |
10322 | fi | |
10323 | fi | |
57aa50d4 TT |
10324 | fi |
10325 | fi | |
bdcd5f22 | 10326 | done |
57aa50d4 TT |
10327 | fi |
10328 | if test "X$found_dir" = "X"; then | |
10329 | for x in $LDFLAGS $LTLIBINTL; do | |
39fd3d4f | 10330 | |
57aa50d4 TT |
10331 | acl_save_prefix="$prefix" |
10332 | prefix="$acl_final_prefix" | |
10333 | acl_save_exec_prefix="$exec_prefix" | |
10334 | exec_prefix="$acl_final_exec_prefix" | |
10335 | eval x=\"$x\" | |
10336 | exec_prefix="$acl_save_exec_prefix" | |
10337 | prefix="$acl_save_prefix" | |
3d05802f | 10338 | |
57aa50d4 TT |
10339 | case "$x" in |
10340 | -L*) | |
10341 | dir=`echo "X$x" | sed -e 's/^X-L//'` | |
93613951 | 10342 | if test -n "$acl_shlibext"; then |
bdcd5f22 | 10343 | if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then |
57aa50d4 | 10344 | found_dir="$dir" |
93613951 TT |
10345 | found_so="$dir/$libname$shrext" |
10346 | else | |
10347 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then | |
10348 | ver=`(cd "$dir" && \ | |
10349 | for f in "$libname$shrext".*; do echo "$f"; done \ | |
10350 | | sed -e "s,^$libname$shrext\\\\.,," \ | |
10351 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | |
10352 | | sed 1q ) 2>/dev/null` | |
bdcd5f22 | 10353 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then |
93613951 TT |
10354 | found_dir="$dir" |
10355 | found_so="$dir/$libname$shrext.$ver" | |
10356 | fi | |
10357 | else | |
10358 | eval library_names=\"$acl_library_names_spec\" | |
10359 | for f in $library_names; do | |
bdcd5f22 | 10360 | if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then |
93613951 TT |
10361 | found_dir="$dir" |
10362 | found_so="$dir/$f" | |
10363 | break | |
10364 | fi | |
10365 | done | |
57aa50d4 TT |
10366 | fi |
10367 | fi | |
93613951 TT |
10368 | fi |
10369 | if test "X$found_dir" = "X"; then | |
bdcd5f22 | 10370 | if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then |
93613951 TT |
10371 | found_dir="$dir" |
10372 | found_a="$dir/$libname.$acl_libext" | |
10373 | fi | |
10374 | fi | |
10375 | if test "X$found_dir" != "X"; then | |
10376 | if test -f "$dir/$libname.la"; then | |
10377 | found_la="$dir/$libname.la" | |
10378 | fi | |
57aa50d4 TT |
10379 | fi |
10380 | ;; | |
10381 | esac | |
10382 | if test "X$found_dir" != "X"; then | |
10383 | break | |
10384 | fi | |
10385 | done | |
10386 | fi | |
10387 | if test "X$found_dir" != "X"; then | |
10388 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" | |
10389 | if test "X$found_so" != "X"; then | |
93613951 TT |
10390 | if test "$enable_rpath" = no \ |
10391 | || test "X$found_dir" = "X/usr/$acl_libdirstem" \ | |
bdcd5f22 TT |
10392 | || test "X$found_dir" = "X/usr/$acl_libdirstem2" \ |
10393 | || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then | |
57aa50d4 TT |
10394 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
10395 | else | |
10396 | haveit= | |
10397 | for x in $ltrpathdirs; do | |
10398 | if test "X$x" = "X$found_dir"; then | |
10399 | haveit=yes | |
10400 | break | |
10401 | fi | |
10402 | done | |
10403 | if test -z "$haveit"; then | |
10404 | ltrpathdirs="$ltrpathdirs $found_dir" | |
10405 | fi | |
93613951 | 10406 | if test "$acl_hardcode_direct" = yes; then |
57aa50d4 TT |
10407 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
10408 | else | |
93613951 | 10409 | if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then |
57aa50d4 TT |
10410 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
10411 | haveit= | |
10412 | for x in $rpathdirs; do | |
10413 | if test "X$x" = "X$found_dir"; then | |
10414 | haveit=yes | |
10415 | break | |
10416 | fi | |
10417 | done | |
10418 | if test -z "$haveit"; then | |
10419 | rpathdirs="$rpathdirs $found_dir" | |
10420 | fi | |
10421 | else | |
10422 | haveit= | |
10423 | for x in $LDFLAGS $LIBINTL; do | |
6ec9ef18 | 10424 | |
57aa50d4 TT |
10425 | acl_save_prefix="$prefix" |
10426 | prefix="$acl_final_prefix" | |
10427 | acl_save_exec_prefix="$exec_prefix" | |
10428 | exec_prefix="$acl_final_exec_prefix" | |
10429 | eval x=\"$x\" | |
10430 | exec_prefix="$acl_save_exec_prefix" | |
10431 | prefix="$acl_save_prefix" | |
d7f45af8 | 10432 | |
57aa50d4 TT |
10433 | if test "X$x" = "X-L$found_dir"; then |
10434 | haveit=yes | |
10435 | break | |
10436 | fi | |
10437 | done | |
10438 | if test -z "$haveit"; then | |
10439 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" | |
10440 | fi | |
93613951 | 10441 | if test "$acl_hardcode_minus_L" != no; then |
57aa50d4 TT |
10442 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
10443 | else | |
10444 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" | |
10445 | fi | |
10446 | fi | |
10447 | fi | |
10448 | fi | |
10449 | else | |
10450 | if test "X$found_a" != "X"; then | |
10451 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" | |
10452 | else | |
10453 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" | |
10454 | fi | |
10455 | fi | |
10456 | additional_includedir= | |
10457 | case "$found_dir" in | |
93613951 TT |
10458 | */$acl_libdirstem | */$acl_libdirstem/) |
10459 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` | |
10460 | if test "$name" = 'intl'; then | |
10461 | LIBINTL_PREFIX="$basedir" | |
10462 | fi | |
10463 | additional_includedir="$basedir/include" | |
10464 | ;; | |
10465 | */$acl_libdirstem2 | */$acl_libdirstem2/) | |
10466 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` | |
10467 | if test "$name" = 'intl'; then | |
10468 | LIBINTL_PREFIX="$basedir" | |
10469 | fi | |
57aa50d4 TT |
10470 | additional_includedir="$basedir/include" |
10471 | ;; | |
bdcd5f22 TT |
10472 | */$acl_libdirstem3 | */$acl_libdirstem3/) |
10473 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'` | |
10474 | if test "$name" = 'intl'; then | |
10475 | LIBINTL_PREFIX="$basedir" | |
10476 | fi | |
10477 | additional_includedir="$basedir/include" | |
10478 | ;; | |
57aa50d4 TT |
10479 | esac |
10480 | if test "X$additional_includedir" != "X"; then | |
10481 | if test "X$additional_includedir" != "X/usr/include"; then | |
10482 | haveit= | |
10483 | if test "X$additional_includedir" = "X/usr/local/include"; then | |
10484 | if test -n "$GCC"; then | |
10485 | case $host_os in | |
93613951 | 10486 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; |
57aa50d4 TT |
10487 | esac |
10488 | fi | |
10489 | fi | |
10490 | if test -z "$haveit"; then | |
10491 | for x in $CPPFLAGS $INCINTL; do | |
b0cacab0 | 10492 | |
57aa50d4 TT |
10493 | acl_save_prefix="$prefix" |
10494 | prefix="$acl_final_prefix" | |
10495 | acl_save_exec_prefix="$exec_prefix" | |
10496 | exec_prefix="$acl_final_exec_prefix" | |
10497 | eval x=\"$x\" | |
10498 | exec_prefix="$acl_save_exec_prefix" | |
10499 | prefix="$acl_save_prefix" | |
21c84b71 | 10500 | |
57aa50d4 TT |
10501 | if test "X$x" = "X-I$additional_includedir"; then |
10502 | haveit=yes | |
10503 | break | |
10504 | fi | |
10505 | done | |
10506 | if test -z "$haveit"; then | |
10507 | if test -d "$additional_includedir"; then | |
10508 | INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" | |
10509 | fi | |
10510 | fi | |
10511 | fi | |
10512 | fi | |
10513 | fi | |
10514 | if test -n "$found_la"; then | |
10515 | save_libdir="$libdir" | |
10516 | case "$found_la" in | |
10517 | */* | *\\*) . "$found_la" ;; | |
10518 | *) . "./$found_la" ;; | |
10519 | esac | |
10520 | libdir="$save_libdir" | |
10521 | for dep in $dependency_libs; do | |
10522 | case "$dep" in | |
10523 | -L*) | |
bdcd5f22 TT |
10524 | dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
10525 | if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \ | |
10526 | && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \ | |
10527 | && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then | |
57aa50d4 | 10528 | haveit= |
bdcd5f22 TT |
10529 | if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \ |
10530 | || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \ | |
10531 | || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then | |
57aa50d4 TT |
10532 | if test -n "$GCC"; then |
10533 | case $host_os in | |
93613951 | 10534 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; |
57aa50d4 TT |
10535 | esac |
10536 | fi | |
10537 | fi | |
10538 | if test -z "$haveit"; then | |
10539 | haveit= | |
10540 | for x in $LDFLAGS $LIBINTL; do | |
50e1e10f | 10541 | |
57aa50d4 TT |
10542 | acl_save_prefix="$prefix" |
10543 | prefix="$acl_final_prefix" | |
10544 | acl_save_exec_prefix="$exec_prefix" | |
10545 | exec_prefix="$acl_final_exec_prefix" | |
10546 | eval x=\"$x\" | |
10547 | exec_prefix="$acl_save_exec_prefix" | |
10548 | prefix="$acl_save_prefix" | |
50e1e10f | 10549 | |
bdcd5f22 | 10550 | if test "X$x" = "X-L$dependency_libdir"; then |
57aa50d4 TT |
10551 | haveit=yes |
10552 | break | |
10553 | fi | |
10554 | done | |
10555 | if test -z "$haveit"; then | |
bdcd5f22 TT |
10556 | if test -d "$dependency_libdir"; then |
10557 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$dependency_libdir" | |
57aa50d4 TT |
10558 | fi |
10559 | fi | |
10560 | haveit= | |
10561 | for x in $LDFLAGS $LTLIBINTL; do | |
a4bf69d9 | 10562 | |
57aa50d4 TT |
10563 | acl_save_prefix="$prefix" |
10564 | prefix="$acl_final_prefix" | |
10565 | acl_save_exec_prefix="$exec_prefix" | |
10566 | exec_prefix="$acl_final_exec_prefix" | |
10567 | eval x=\"$x\" | |
10568 | exec_prefix="$acl_save_exec_prefix" | |
10569 | prefix="$acl_save_prefix" | |
50e1e10f | 10570 | |
bdcd5f22 | 10571 | if test "X$x" = "X-L$dependency_libdir"; then |
57aa50d4 TT |
10572 | haveit=yes |
10573 | break | |
10574 | fi | |
10575 | done | |
10576 | if test -z "$haveit"; then | |
bdcd5f22 TT |
10577 | if test -d "$dependency_libdir"; then |
10578 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$dependency_libdir" | |
57aa50d4 TT |
10579 | fi |
10580 | fi | |
10581 | fi | |
10582 | fi | |
10583 | ;; | |
10584 | -R*) | |
10585 | dir=`echo "X$dep" | sed -e 's/^X-R//'` | |
10586 | if test "$enable_rpath" != no; then | |
10587 | haveit= | |
10588 | for x in $rpathdirs; do | |
10589 | if test "X$x" = "X$dir"; then | |
10590 | haveit=yes | |
10591 | break | |
10592 | fi | |
10593 | done | |
10594 | if test -z "$haveit"; then | |
10595 | rpathdirs="$rpathdirs $dir" | |
10596 | fi | |
10597 | haveit= | |
10598 | for x in $ltrpathdirs; do | |
10599 | if test "X$x" = "X$dir"; then | |
10600 | haveit=yes | |
10601 | break | |
10602 | fi | |
10603 | done | |
10604 | if test -z "$haveit"; then | |
10605 | ltrpathdirs="$ltrpathdirs $dir" | |
10606 | fi | |
10607 | fi | |
10608 | ;; | |
10609 | -l*) | |
a30e56b9 | 10610 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
57aa50d4 TT |
10611 | ;; |
10612 | *.la) | |
10613 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` | |
10614 | ;; | |
10615 | *) | |
10616 | LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" | |
10617 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" | |
10618 | ;; | |
10619 | esac | |
10620 | done | |
10621 | fi | |
10622 | else | |
10623 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" | |
10624 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" | |
10625 | fi | |
10626 | fi | |
10627 | fi | |
10628 | done | |
10629 | done | |
10630 | if test "X$rpathdirs" != "X"; then | |
93613951 | 10631 | if test -n "$acl_hardcode_libdir_separator"; then |
57aa50d4 TT |
10632 | alldirs= |
10633 | for found_dir in $rpathdirs; do | |
93613951 | 10634 | alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" |
57aa50d4 TT |
10635 | done |
10636 | acl_save_libdir="$libdir" | |
10637 | libdir="$alldirs" | |
93613951 | 10638 | eval flag=\"$acl_hardcode_libdir_flag_spec\" |
57aa50d4 TT |
10639 | libdir="$acl_save_libdir" |
10640 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" | |
10641 | else | |
10642 | for found_dir in $rpathdirs; do | |
10643 | acl_save_libdir="$libdir" | |
10644 | libdir="$found_dir" | |
93613951 | 10645 | eval flag=\"$acl_hardcode_libdir_flag_spec\" |
57aa50d4 TT |
10646 | libdir="$acl_save_libdir" |
10647 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" | |
10648 | done | |
10649 | fi | |
10650 | fi | |
10651 | if test "X$ltrpathdirs" != "X"; then | |
10652 | for found_dir in $ltrpathdirs; do | |
10653 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" | |
10654 | done | |
10655 | fi | |
b0cacab0 | 10656 | |
93613951 TT |
10657 | |
10658 | ||
10659 | ||
10660 | ||
54445dc2 TT |
10661 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5 |
10662 | printf %s "checking for GNU gettext in libintl... " >&6; } | |
10663 | if eval test \${$gt_func_gnugettext_libintl+y} | |
10664 | then : | |
10665 | printf %s "(cached) " >&6 | |
10666 | else $as_nop | |
57aa50d4 TT |
10667 | gt_save_CPPFLAGS="$CPPFLAGS" |
10668 | CPPFLAGS="$CPPFLAGS $INCINTL" | |
10669 | gt_save_LIBS="$LIBS" | |
10670 | LIBS="$LIBS $LIBINTL" | |
10671 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10672 | /* end confdefs.h. */ | |
93613951 | 10673 | |
57aa50d4 | 10674 | #include <libintl.h> |
e598c29b | 10675 | #ifndef __GNU_GETTEXT_SUPPORTED_REVISION |
57aa50d4 TT |
10676 | extern int _nl_msg_cat_cntr; |
10677 | extern | |
10678 | #ifdef __cplusplus | |
10679 | "C" | |
10680 | #endif | |
93613951 | 10681 | const char *_nl_expand_alias (const char *); |
e598c29b TT |
10682 | #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias ("")) |
10683 | #else | |
10684 | #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0 | |
10685 | #endif | |
10686 | $gt_revision_test_code | |
93613951 | 10687 | |
57aa50d4 | 10688 | int |
54445dc2 | 10689 | main (void) |
57aa50d4 | 10690 | { |
93613951 | 10691 | |
57aa50d4 | 10692 | bindtextdomain ("", ""); |
e598c29b | 10693 | return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION |
93613951 | 10694 | |
57aa50d4 TT |
10695 | ; |
10696 | return 0; | |
10697 | } | |
b0cacab0 | 10698 | _ACEOF |
54445dc2 TT |
10699 | if ac_fn_c_try_link "$LINENO" |
10700 | then : | |
93613951 | 10701 | eval "$gt_func_gnugettext_libintl=yes" |
54445dc2 | 10702 | else $as_nop |
93613951 | 10703 | eval "$gt_func_gnugettext_libintl=no" |
6c133523 | 10704 | fi |
54445dc2 | 10705 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
57aa50d4 | 10706 | conftest$ac_exeext conftest.$ac_ext |
93613951 | 10707 | if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then |
57aa50d4 TT |
10708 | LIBS="$LIBS $LIBICONV" |
10709 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
da76d6b7 | 10710 | /* end confdefs.h. */ |
93613951 | 10711 | |
57aa50d4 | 10712 | #include <libintl.h> |
e598c29b | 10713 | #ifndef __GNU_GETTEXT_SUPPORTED_REVISION |
57aa50d4 TT |
10714 | extern int _nl_msg_cat_cntr; |
10715 | extern | |
10716 | #ifdef __cplusplus | |
10717 | "C" | |
da76d6b7 | 10718 | #endif |
93613951 | 10719 | const char *_nl_expand_alias (const char *); |
e598c29b TT |
10720 | #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias ("")) |
10721 | #else | |
10722 | #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0 | |
10723 | #endif | |
10724 | $gt_revision_test_code | |
93613951 | 10725 | |
57aa50d4 | 10726 | int |
54445dc2 | 10727 | main (void) |
57aa50d4 | 10728 | { |
93613951 | 10729 | |
57aa50d4 | 10730 | bindtextdomain ("", ""); |
e598c29b | 10731 | return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION |
93613951 | 10732 | |
57aa50d4 TT |
10733 | ; |
10734 | return 0; | |
10735 | } | |
da76d6b7 | 10736 | _ACEOF |
54445dc2 TT |
10737 | if ac_fn_c_try_link "$LINENO" |
10738 | then : | |
57aa50d4 | 10739 | LIBINTL="$LIBINTL $LIBICONV" |
93613951 TT |
10740 | LTLIBINTL="$LTLIBINTL $LTLIBICONV" |
10741 | eval "$gt_func_gnugettext_libintl=yes" | |
6c133523 TT |
10742 | |
10743 | fi | |
54445dc2 | 10744 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
57aa50d4 TT |
10745 | conftest$ac_exeext conftest.$ac_ext |
10746 | fi | |
10747 | CPPFLAGS="$gt_save_CPPFLAGS" | |
10748 | LIBS="$gt_save_LIBS" | |
da76d6b7 | 10749 | fi |
93613951 | 10750 | eval ac_res=\$$gt_func_gnugettext_libintl |
54445dc2 TT |
10751 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
10752 | printf "%s\n" "$ac_res" >&6; } | |
57aa50d4 | 10753 | fi |
b0cacab0 | 10754 | |
93613951 TT |
10755 | if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \ |
10756 | || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \ | |
57aa50d4 TT |
10757 | && test "$PACKAGE" != gettext-runtime \ |
10758 | && test "$PACKAGE" != gettext-tools; }; then | |
10759 | gt_use_preinstalled_gnugettext=yes | |
10760 | else | |
10761 | LIBINTL= | |
10762 | LTLIBINTL= | |
10763 | INCINTL= | |
10764 | fi | |
740837de | 10765 | |
b0cacab0 | 10766 | |
b0cacab0 | 10767 | |
93613951 TT |
10768 | if test -n "$INTL_MACOSX_LIBS"; then |
10769 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ | |
10770 | || test "$nls_cv_use_gnu_gettext" = "yes"; then | |
10771 | LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" | |
10772 | LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" | |
10773 | fi | |
10774 | fi | |
10775 | ||
57aa50d4 TT |
10776 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
10777 | || test "$nls_cv_use_gnu_gettext" = "yes"; then | |
b0cacab0 | 10778 | |
54445dc2 | 10779 | printf "%s\n" "#define ENABLE_NLS 1" >>confdefs.h |
b0cacab0 | 10780 | |
57aa50d4 TT |
10781 | else |
10782 | USE_NLS=no | |
10783 | fi | |
10784 | fi | |
b0cacab0 | 10785 | |
54445dc2 TT |
10786 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5 |
10787 | printf %s "checking whether to use NLS... " >&6; } | |
10788 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 | |
10789 | printf "%s\n" "$USE_NLS" >&6; } | |
57aa50d4 | 10790 | if test "$USE_NLS" = "yes"; then |
54445dc2 TT |
10791 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5 |
10792 | printf %s "checking where the gettext function comes from... " >&6; } | |
57aa50d4 | 10793 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then |
93613951 | 10794 | if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then |
57aa50d4 TT |
10795 | gt_source="external libintl" |
10796 | else | |
10797 | gt_source="libc" | |
10798 | fi | |
10799 | else | |
10800 | gt_source="included intl directory" | |
10801 | fi | |
54445dc2 TT |
10802 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5 |
10803 | printf "%s\n" "$gt_source" >&6; } | |
57aa50d4 | 10804 | fi |
b0cacab0 | 10805 | |
57aa50d4 | 10806 | if test "$USE_NLS" = "yes"; then |
b0cacab0 | 10807 | |
57aa50d4 | 10808 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then |
93613951 | 10809 | if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then |
54445dc2 TT |
10810 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5 |
10811 | printf %s "checking how to link with libintl... " >&6; } | |
10812 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 | |
10813 | printf "%s\n" "$LIBINTL" >&6; } | |
b0cacab0 | 10814 | |
57aa50d4 TT |
10815 | for element in $INCINTL; do |
10816 | haveit= | |
10817 | for x in $CPPFLAGS; do | |
b0cacab0 | 10818 | |
57aa50d4 TT |
10819 | acl_save_prefix="$prefix" |
10820 | prefix="$acl_final_prefix" | |
10821 | acl_save_exec_prefix="$exec_prefix" | |
10822 | exec_prefix="$acl_final_exec_prefix" | |
10823 | eval x=\"$x\" | |
10824 | exec_prefix="$acl_save_exec_prefix" | |
10825 | prefix="$acl_save_prefix" | |
b0cacab0 | 10826 | |
57aa50d4 TT |
10827 | if test "X$x" = "X$element"; then |
10828 | haveit=yes | |
10829 | break | |
10830 | fi | |
10831 | done | |
10832 | if test -z "$haveit"; then | |
10833 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | |
10834 | fi | |
10835 | done | |
b0cacab0 | 10836 | |
57aa50d4 | 10837 | fi |
b0cacab0 TT |
10838 | |
10839 | ||
54445dc2 | 10840 | printf "%s\n" "#define HAVE_GETTEXT 1" >>confdefs.h |
b0cacab0 TT |
10841 | |
10842 | ||
54445dc2 | 10843 | printf "%s\n" "#define HAVE_DCGETTEXT 1" >>confdefs.h |
b0cacab0 | 10844 | |
57aa50d4 | 10845 | fi |
b0cacab0 | 10846 | |
57aa50d4 TT |
10847 | POSUB=po |
10848 | fi | |
b0cacab0 TT |
10849 | |
10850 | ||
b0cacab0 | 10851 | |
57aa50d4 | 10852 | INTLLIBS="$LIBINTL" |
e1052144 | 10853 | |
b0cacab0 | 10854 | |
93636bde | 10855 | |
93636bde | 10856 | |
b0cacab0 | 10857 | |
93636bde | 10858 | |
50e1e10f | 10859 | |
54445dc2 TT |
10860 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
10861 | printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
57aa50d4 | 10862 | set x ${MAKE-make} |
54445dc2 TT |
10863 | ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
10864 | if eval test \${ac_cv_prog_make_${ac_make}_set+y} | |
10865 | then : | |
10866 | printf %s "(cached) " >&6 | |
10867 | else $as_nop | |
57aa50d4 TT |
10868 | cat >conftest.make <<\_ACEOF |
10869 | SHELL = /bin/sh | |
10870 | all: | |
10871 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
b0cacab0 | 10872 | _ACEOF |
d6a4bcb5 | 10873 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
57aa50d4 TT |
10874 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
10875 | *@@@%%%=?*=@@@%%%*) | |
10876 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
10877 | *) | |
10878 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
e1052144 | 10879 | esac |
57aa50d4 | 10880 | rm -f conftest.make |
b0cacab0 | 10881 | fi |
57aa50d4 | 10882 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
54445dc2 TT |
10883 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10884 | printf "%s\n" "yes" >&6; } | |
57aa50d4 | 10885 | SET_MAKE= |
b0b9c4de | 10886 | else |
54445dc2 TT |
10887 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10888 | printf "%s\n" "no" >&6; } | |
57aa50d4 | 10889 | SET_MAKE="MAKE=${MAKE-make}" |
b0cacab0 | 10890 | fi |
b0cacab0 | 10891 | |
54445dc2 TT |
10892 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5 |
10893 | printf %s "checking for GNU make... " >&6; } | |
10894 | if test ${_cv_gnu_make_command+y} | |
10895 | then : | |
10896 | printf %s "(cached) " >&6 | |
10897 | else $as_nop | |
57aa50d4 | 10898 | _cv_gnu_make_command='' ; |
e703ba4b | 10899 | if test -n "$FORCE_NATIVE_MAKE" ; then |
f3bc1561 TT |
10900 | MAKES="make" |
10901 | else | |
10902 | MAKES="make gmake gnumake" | |
10903 | fi | |
10904 | for a in "$MAKE" $MAKES ; do | |
57aa50d4 TT |
10905 | if test -z "$a" ; then continue ; fi ; |
10906 | if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then | |
10907 | _cv_gnu_make_command=$a ; | |
10908 | break; | |
10909 | fi | |
10910 | done ; | |
50e1e10f | 10911 | |
50e1e10f | 10912 | fi |
54445dc2 TT |
10913 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5 |
10914 | printf "%s\n" "$_cv_gnu_make_command" >&6; } ; | |
57aa50d4 TT |
10915 | if test "x$_cv_gnu_make_command" != "x" ; then |
10916 | ifGNUmake='' ; | |
10917 | ifNotGNUmake='#' ; | |
10918 | else | |
10919 | ifGNUmake='#' ; | |
10920 | ifNotGNUmake='' ; | |
54445dc2 TT |
10921 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5 |
10922 | printf "%s\n" "\"Not found\"" >&6; }; | |
57aa50d4 | 10923 | fi |
50e1e10f | 10924 | |
50e1e10f | 10925 | |
b0cacab0 | 10926 | |
57aa50d4 TT |
10927 | # Extract the first word of "ln", so it can be a program name with args. |
10928 | set dummy ln; ac_word=$2 | |
54445dc2 TT |
10929 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10930 | printf %s "checking for $ac_word... " >&6; } | |
10931 | if test ${ac_cv_path_LN+y} | |
10932 | then : | |
10933 | printf %s "(cached) " >&6 | |
10934 | else $as_nop | |
57aa50d4 TT |
10935 | case $LN in |
10936 | [\\/]* | ?:[\\/]*) | |
10937 | ac_cv_path_LN="$LN" # Let the user override the test with a path. | |
10938 | ;; | |
10939 | *) | |
10940 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10941 | for as_dir in $PATH | |
10942 | do | |
10943 | IFS=$as_save_IFS | |
54445dc2 TT |
10944 | case $as_dir in #((( |
10945 | '') as_dir=./ ;; | |
10946 | */) ;; | |
10947 | *) as_dir=$as_dir/ ;; | |
10948 | esac | |
57aa50d4 | 10949 | for ac_exec_ext in '' $ac_executable_extensions; do |
54445dc2 TT |
10950 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
10951 | ac_cv_path_LN="$as_dir$ac_word$ac_exec_ext" | |
10952 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
57aa50d4 TT |
10953 | break 2 |
10954 | fi | |
10955 | done | |
10956 | done | |
10957 | IFS=$as_save_IFS | |
6c65d251 | 10958 | |
57aa50d4 TT |
10959 | test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln" |
10960 | ;; | |
e1052144 | 10961 | esac |
fff45483 | 10962 | fi |
57aa50d4 TT |
10963 | LN=$ac_cv_path_LN |
10964 | if test -n "$LN"; then | |
54445dc2 TT |
10965 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 |
10966 | printf "%s\n" "$LN" >&6; } | |
57aa50d4 | 10967 | else |
54445dc2 TT |
10968 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10969 | printf "%s\n" "no" >&6; } | |
fff45483 | 10970 | fi |
e1052144 | 10971 | |
fff45483 | 10972 | |
5abc0414 | 10973 | |
3fb16e74 TT |
10974 | mkdir_p=$MKDIR_P |
10975 | ||
54445dc2 TT |
10976 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
10977 | printf %s "checking whether ln -s works... " >&6; } | |
57aa50d4 TT |
10978 | LN_S=$as_ln_s |
10979 | if test "$LN_S" = "ln -s"; then | |
54445dc2 TT |
10980 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10981 | printf "%s\n" "yes" >&6; } | |
57aa50d4 | 10982 | else |
54445dc2 TT |
10983 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
10984 | printf "%s\n" "no, using $LN_S" >&6; } | |
fff45483 | 10985 | fi |
6c65d251 | 10986 | |
57aa50d4 TT |
10987 | # Extract the first word of "mv", so it can be a program name with args. |
10988 | set dummy mv; ac_word=$2 | |
54445dc2 TT |
10989 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10990 | printf %s "checking for $ac_word... " >&6; } | |
10991 | if test ${ac_cv_path_MV+y} | |
10992 | then : | |
10993 | printf %s "(cached) " >&6 | |
10994 | else $as_nop | |
57aa50d4 TT |
10995 | case $MV in |
10996 | [\\/]* | ?:[\\/]*) | |
10997 | ac_cv_path_MV="$MV" # Let the user override the test with a path. | |
10998 | ;; | |
10999 | *) | |
11000 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11001 | for as_dir in $PATH | |
11002 | do | |
11003 | IFS=$as_save_IFS | |
54445dc2 TT |
11004 | case $as_dir in #((( |
11005 | '') as_dir=./ ;; | |
11006 | */) ;; | |
11007 | *) as_dir=$as_dir/ ;; | |
11008 | esac | |
57aa50d4 | 11009 | for ac_exec_ext in '' $ac_executable_extensions; do |
54445dc2 TT |
11010 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
11011 | ac_cv_path_MV="$as_dir$ac_word$ac_exec_ext" | |
11012 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
57aa50d4 TT |
11013 | break 2 |
11014 | fi | |
11015 | done | |
11016 | done | |
11017 | IFS=$as_save_IFS | |
6c65d251 | 11018 | |
57aa50d4 TT |
11019 | test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" |
11020 | ;; | |
e1052144 | 11021 | esac |
b0cacab0 | 11022 | fi |
57aa50d4 TT |
11023 | MV=$ac_cv_path_MV |
11024 | if test -n "$MV"; then | |
54445dc2 TT |
11025 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 |
11026 | printf "%s\n" "$MV" >&6; } | |
b0b9c4de | 11027 | else |
54445dc2 TT |
11028 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11029 | printf "%s\n" "no" >&6; } | |
39fd3d4f SJR |
11030 | fi |
11031 | ||
39fd3d4f | 11032 | |
57aa50d4 TT |
11033 | # Extract the first word of "cp", so it can be a program name with args. |
11034 | set dummy cp; ac_word=$2 | |
54445dc2 TT |
11035 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11036 | printf %s "checking for $ac_word... " >&6; } | |
11037 | if test ${ac_cv_path_CP+y} | |
11038 | then : | |
11039 | printf %s "(cached) " >&6 | |
11040 | else $as_nop | |
57aa50d4 TT |
11041 | case $CP in |
11042 | [\\/]* | ?:[\\/]*) | |
11043 | ac_cv_path_CP="$CP" # Let the user override the test with a path. | |
11044 | ;; | |
11045 | *) | |
11046 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11047 | for as_dir in $PATH | |
11048 | do | |
11049 | IFS=$as_save_IFS | |
54445dc2 TT |
11050 | case $as_dir in #((( |
11051 | '') as_dir=./ ;; | |
11052 | */) ;; | |
11053 | *) as_dir=$as_dir/ ;; | |
11054 | esac | |
57aa50d4 | 11055 | for ac_exec_ext in '' $ac_executable_extensions; do |
54445dc2 TT |
11056 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
11057 | ac_cv_path_CP="$as_dir$ac_word$ac_exec_ext" | |
11058 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
57aa50d4 TT |
11059 | break 2 |
11060 | fi | |
11061 | done | |
11062 | done | |
11063 | IFS=$as_save_IFS | |
39fd3d4f | 11064 | |
57aa50d4 TT |
11065 | test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" |
11066 | ;; | |
e1052144 | 11067 | esac |
b0b9c4de | 11068 | fi |
57aa50d4 TT |
11069 | CP=$ac_cv_path_CP |
11070 | if test -n "$CP"; then | |
54445dc2 TT |
11071 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 |
11072 | printf "%s\n" "$CP" >&6; } | |
b0cacab0 | 11073 | else |
54445dc2 TT |
11074 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11075 | printf "%s\n" "no" >&6; } | |
b0b9c4de | 11076 | fi |
b0b9c4de | 11077 | |
6c65d251 | 11078 | |
57aa50d4 TT |
11079 | # Extract the first word of "rm", so it can be a program name with args. |
11080 | set dummy rm; ac_word=$2 | |
54445dc2 TT |
11081 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11082 | printf %s "checking for $ac_word... " >&6; } | |
11083 | if test ${ac_cv_path_RM+y} | |
11084 | then : | |
11085 | printf %s "(cached) " >&6 | |
11086 | else $as_nop | |
57aa50d4 TT |
11087 | case $RM in |
11088 | [\\/]* | ?:[\\/]*) | |
11089 | ac_cv_path_RM="$RM" # Let the user override the test with a path. | |
11090 | ;; | |
11091 | *) | |
11092 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11093 | for as_dir in $PATH | |
11094 | do | |
11095 | IFS=$as_save_IFS | |
54445dc2 TT |
11096 | case $as_dir in #((( |
11097 | '') as_dir=./ ;; | |
11098 | */) ;; | |
11099 | *) as_dir=$as_dir/ ;; | |
11100 | esac | |
57aa50d4 | 11101 | for ac_exec_ext in '' $ac_executable_extensions; do |
54445dc2 TT |
11102 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
11103 | ac_cv_path_RM="$as_dir$ac_word$ac_exec_ext" | |
11104 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
57aa50d4 TT |
11105 | break 2 |
11106 | fi | |
11107 | done | |
b0cacab0 | 11108 | done |
57aa50d4 | 11109 | IFS=$as_save_IFS |
6c65d251 | 11110 | |
57aa50d4 TT |
11111 | test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" |
11112 | ;; | |
e1052144 | 11113 | esac |
6928adc9 | 11114 | fi |
57aa50d4 TT |
11115 | RM=$ac_cv_path_RM |
11116 | if test -n "$RM"; then | |
54445dc2 TT |
11117 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 |
11118 | printf "%s\n" "$RM" >&6; } | |
b0cacab0 | 11119 | else |
54445dc2 TT |
11120 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11121 | printf "%s\n" "no" >&6; } | |
6928adc9 | 11122 | fi |
6928adc9 | 11123 | |
6c65d251 | 11124 | |
57aa50d4 TT |
11125 | # Extract the first word of "chmod", so it can be a program name with args. |
11126 | set dummy chmod; ac_word=$2 | |
54445dc2 TT |
11127 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11128 | printf %s "checking for $ac_word... " >&6; } | |
11129 | if test ${ac_cv_path_CHMOD+y} | |
11130 | then : | |
11131 | printf %s "(cached) " >&6 | |
11132 | else $as_nop | |
57aa50d4 TT |
11133 | case $CHMOD in |
11134 | [\\/]* | ?:[\\/]*) | |
11135 | ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. | |
11136 | ;; | |
11137 | *) | |
11138 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11139 | for as_dir in $PATH | |
11140 | do | |
11141 | IFS=$as_save_IFS | |
54445dc2 TT |
11142 | case $as_dir in #((( |
11143 | '') as_dir=./ ;; | |
11144 | */) ;; | |
11145 | *) as_dir=$as_dir/ ;; | |
11146 | esac | |
57aa50d4 | 11147 | for ac_exec_ext in '' $ac_executable_extensions; do |
54445dc2 TT |
11148 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
11149 | ac_cv_path_CHMOD="$as_dir$ac_word$ac_exec_ext" | |
11150 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
57aa50d4 TT |
11151 | break 2 |
11152 | fi | |
11153 | done | |
11154 | done | |
11155 | IFS=$as_save_IFS | |
39fd3d4f | 11156 | |
57aa50d4 TT |
11157 | test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":" |
11158 | ;; | |
e1052144 | 11159 | esac |
b0cacab0 | 11160 | fi |
57aa50d4 TT |
11161 | CHMOD=$ac_cv_path_CHMOD |
11162 | if test -n "$CHMOD"; then | |
54445dc2 TT |
11163 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 |
11164 | printf "%s\n" "$CHMOD" >&6; } | |
b0cacab0 | 11165 | else |
54445dc2 TT |
11166 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11167 | printf "%s\n" "no" >&6; } | |
b0cacab0 | 11168 | fi |
39fd3d4f | 11169 | |
b0cacab0 | 11170 | |
57aa50d4 TT |
11171 | for ac_prog in gawk mawk nawk awk |
11172 | do | |
11173 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
11174 | set dummy $ac_prog; ac_word=$2 | |
54445dc2 TT |
11175 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11176 | printf %s "checking for $ac_word... " >&6; } | |
11177 | if test ${ac_cv_prog_AWK+y} | |
11178 | then : | |
11179 | printf %s "(cached) " >&6 | |
11180 | else $as_nop | |
57aa50d4 TT |
11181 | if test -n "$AWK"; then |
11182 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
b0cacab0 | 11183 | else |
57aa50d4 TT |
11184 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11185 | for as_dir in $PATH | |
11186 | do | |
11187 | IFS=$as_save_IFS | |
54445dc2 TT |
11188 | case $as_dir in #((( |
11189 | '') as_dir=./ ;; | |
11190 | */) ;; | |
11191 | *) as_dir=$as_dir/ ;; | |
11192 | esac | |
57aa50d4 | 11193 | for ac_exec_ext in '' $ac_executable_extensions; do |
54445dc2 | 11194 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
57aa50d4 | 11195 | ac_cv_prog_AWK="$ac_prog" |
54445dc2 | 11196 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
57aa50d4 TT |
11197 | break 2 |
11198 | fi | |
11199 | done | |
11200 | done | |
11201 | IFS=$as_save_IFS | |
b0cacab0 | 11202 | |
b0cacab0 | 11203 | fi |
57aa50d4 TT |
11204 | fi |
11205 | AWK=$ac_cv_prog_AWK | |
11206 | if test -n "$AWK"; then | |
54445dc2 TT |
11207 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
11208 | printf "%s\n" "$AWK" >&6; } | |
b0cacab0 | 11209 | else |
54445dc2 TT |
11210 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11211 | printf "%s\n" "no" >&6; } | |
b0cacab0 | 11212 | fi |
b0cacab0 | 11213 | |
b0cacab0 | 11214 | |
57aa50d4 TT |
11215 | test -n "$AWK" && break |
11216 | done | |
b0cacab0 | 11217 | |
54445dc2 TT |
11218 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
11219 | printf %s "checking for egrep... " >&6; } | |
11220 | if test ${ac_cv_path_EGREP+y} | |
11221 | then : | |
11222 | printf %s "(cached) " >&6 | |
11223 | else $as_nop | |
57aa50d4 TT |
11224 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
11225 | then ac_cv_path_EGREP="$GREP -E" | |
11226 | else | |
11227 | if test -z "$EGREP"; then | |
11228 | ac_path_EGREP_found=false | |
11229 | # Loop through the user's path and test for each of PROGNAME-LIST | |
11230 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11231 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
11232 | do | |
11233 | IFS=$as_save_IFS | |
54445dc2 TT |
11234 | case $as_dir in #((( |
11235 | '') as_dir=./ ;; | |
11236 | */) ;; | |
11237 | *) as_dir=$as_dir/ ;; | |
11238 | esac | |
11239 | for ac_prog in egrep | |
11240 | do | |
57aa50d4 | 11241 | for ac_exec_ext in '' $ac_executable_extensions; do |
54445dc2 | 11242 | ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" |
d6a4bcb5 | 11243 | as_fn_executable_p "$ac_path_EGREP" || continue |
57aa50d4 TT |
11244 | # Check for GNU ac_path_EGREP and select it if it is found. |
11245 | # Check for GNU $ac_path_EGREP | |
11246 | case `"$ac_path_EGREP" --version 2>&1` in | |
11247 | *GNU*) | |
11248 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
11249 | *) | |
11250 | ac_count=0 | |
54445dc2 | 11251 | printf %s 0123456789 >"conftest.in" |
57aa50d4 TT |
11252 | while : |
11253 | do | |
11254 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
11255 | mv "conftest.tmp" "conftest.in" | |
11256 | cp "conftest.in" "conftest.nl" | |
54445dc2 | 11257 | printf "%s\n" 'EGREP' >> "conftest.nl" |
57aa50d4 TT |
11258 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
11259 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
11260 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
11261 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
11262 | # Best one so far, save it but keep looking for a better one | |
11263 | ac_cv_path_EGREP="$ac_path_EGREP" | |
11264 | ac_path_EGREP_max=$ac_count | |
11265 | fi | |
11266 | # 10*(2^10) chars as input seems more than enough | |
11267 | test $ac_count -gt 10 && break | |
11268 | done | |
11269 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
e1052144 | 11270 | esac |
e1052144 | 11271 | |
57aa50d4 TT |
11272 | $ac_path_EGREP_found && break 3 |
11273 | done | |
b0cacab0 | 11274 | done |
57aa50d4 TT |
11275 | done |
11276 | IFS=$as_save_IFS | |
11277 | if test -z "$ac_cv_path_EGREP"; then | |
d6a4bcb5 | 11278 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
57aa50d4 | 11279 | fi |
b0cacab0 | 11280 | else |
57aa50d4 | 11281 | ac_cv_path_EGREP=$EGREP |
b0cacab0 | 11282 | fi |
e1052144 | 11283 | |
57aa50d4 | 11284 | fi |
b0cacab0 | 11285 | fi |
54445dc2 TT |
11286 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
11287 | printf "%s\n" "$ac_cv_path_EGREP" >&6; } | |
57aa50d4 | 11288 | EGREP="$ac_cv_path_EGREP" |
e1052144 | 11289 | |
b0cacab0 | 11290 | |
57aa50d4 TT |
11291 | # Extract the first word of "sed", so it can be a program name with args. |
11292 | set dummy sed; ac_word=$2 | |
54445dc2 TT |
11293 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11294 | printf %s "checking for $ac_word... " >&6; } | |
11295 | if test ${ac_cv_path_SED+y} | |
11296 | then : | |
11297 | printf %s "(cached) " >&6 | |
11298 | else $as_nop | |
57aa50d4 TT |
11299 | case $SED in |
11300 | [\\/]* | ?:[\\/]*) | |
11301 | ac_cv_path_SED="$SED" # Let the user override the test with a path. | |
11302 | ;; | |
11303 | *) | |
11304 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11305 | for as_dir in $PATH | |
11306 | do | |
11307 | IFS=$as_save_IFS | |
54445dc2 TT |
11308 | case $as_dir in #((( |
11309 | '') as_dir=./ ;; | |
11310 | */) ;; | |
11311 | *) as_dir=$as_dir/ ;; | |
11312 | esac | |
57aa50d4 | 11313 | for ac_exec_ext in '' $ac_executable_extensions; do |
54445dc2 TT |
11314 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
11315 | ac_cv_path_SED="$as_dir$ac_word$ac_exec_ext" | |
11316 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
57aa50d4 TT |
11317 | break 2 |
11318 | fi | |
b0cacab0 | 11319 | done |
57aa50d4 TT |
11320 | done |
11321 | IFS=$as_save_IFS | |
b0cacab0 | 11322 | |
57aa50d4 TT |
11323 | test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" |
11324 | ;; | |
b0cacab0 | 11325 | esac |
57aa50d4 TT |
11326 | fi |
11327 | SED=$ac_cv_path_SED | |
11328 | if test -n "$SED"; then | |
54445dc2 TT |
11329 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 |
11330 | printf "%s\n" "$SED" >&6; } | |
b0cacab0 | 11331 | else |
54445dc2 TT |
11332 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11333 | printf "%s\n" "no" >&6; } | |
b0cacab0 | 11334 | fi |
e1052144 | 11335 | |
b0cacab0 | 11336 | |
57aa50d4 TT |
11337 | # Extract the first word of "perl", so it can be a program name with args. |
11338 | set dummy perl; ac_word=$2 | |
54445dc2 TT |
11339 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11340 | printf %s "checking for $ac_word... " >&6; } | |
11341 | if test ${ac_cv_path_PERL+y} | |
11342 | then : | |
11343 | printf %s "(cached) " >&6 | |
11344 | else $as_nop | |
57aa50d4 TT |
11345 | case $PERL in |
11346 | [\\/]* | ?:[\\/]*) | |
11347 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. | |
11348 | ;; | |
11349 | *) | |
11350 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11351 | for as_dir in $PATH | |
11352 | do | |
11353 | IFS=$as_save_IFS | |
54445dc2 TT |
11354 | case $as_dir in #((( |
11355 | '') as_dir=./ ;; | |
11356 | */) ;; | |
11357 | *) as_dir=$as_dir/ ;; | |
11358 | esac | |
57aa50d4 | 11359 | for ac_exec_ext in '' $ac_executable_extensions; do |
54445dc2 TT |
11360 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
11361 | ac_cv_path_PERL="$as_dir$ac_word$ac_exec_ext" | |
11362 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
57aa50d4 TT |
11363 | break 2 |
11364 | fi | |
b0cacab0 | 11365 | done |
57aa50d4 TT |
11366 | done |
11367 | IFS=$as_save_IFS | |
11368 | ||
11369 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl" | |
11370 | ;; | |
b0cacab0 | 11371 | esac |
57aa50d4 TT |
11372 | fi |
11373 | PERL=$ac_cv_path_PERL | |
11374 | if test -n "$PERL"; then | |
54445dc2 TT |
11375 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 |
11376 | printf "%s\n" "$PERL" >&6; } | |
b0cacab0 | 11377 | else |
54445dc2 TT |
11378 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11379 | printf "%s\n" "no" >&6; } | |
57aa50d4 | 11380 | fi |
b0cacab0 | 11381 | |
b0cacab0 | 11382 | |
57aa50d4 TT |
11383 | # Extract the first word of "ldconfig", so it can be a program name with args. |
11384 | set dummy ldconfig; ac_word=$2 | |
54445dc2 TT |
11385 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11386 | printf %s "checking for $ac_word... " >&6; } | |
11387 | if test ${ac_cv_path_LDCONFIG+y} | |
11388 | then : | |
11389 | printf %s "(cached) " >&6 | |
11390 | else $as_nop | |
57aa50d4 TT |
11391 | case $LDCONFIG in |
11392 | [\\/]* | ?:[\\/]*) | |
11393 | ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path. | |
11394 | ;; | |
11395 | *) | |
11396 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11397 | for as_dir in $PATH | |
11398 | do | |
11399 | IFS=$as_save_IFS | |
54445dc2 TT |
11400 | case $as_dir in #((( |
11401 | '') as_dir=./ ;; | |
11402 | */) ;; | |
11403 | *) as_dir=$as_dir/ ;; | |
11404 | esac | |
57aa50d4 | 11405 | for ac_exec_ext in '' $ac_executable_extensions; do |
54445dc2 TT |
11406 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
11407 | ac_cv_path_LDCONFIG="$as_dir$ac_word$ac_exec_ext" | |
11408 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
57aa50d4 TT |
11409 | break 2 |
11410 | fi | |
11411 | done | |
11412 | done | |
11413 | IFS=$as_save_IFS | |
b0cacab0 | 11414 | |
57aa50d4 TT |
11415 | test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":" |
11416 | ;; | |
11417 | esac | |
39fd3d4f | 11418 | fi |
57aa50d4 TT |
11419 | LDCONFIG=$ac_cv_path_LDCONFIG |
11420 | if test -n "$LDCONFIG"; then | |
54445dc2 TT |
11421 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5 |
11422 | printf "%s\n" "$LDCONFIG" >&6; } | |
57aa50d4 | 11423 | else |
54445dc2 TT |
11424 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11425 | printf "%s\n" "no" >&6; } | |
b0cacab0 | 11426 | fi |
39fd3d4f SJR |
11427 | |
11428 | ||
57aa50d4 TT |
11429 | if test -n "$ac_tool_prefix"; then |
11430 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
11431 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
54445dc2 TT |
11432 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11433 | printf %s "checking for $ac_word... " >&6; } | |
11434 | if test ${ac_cv_prog_AR+y} | |
11435 | then : | |
11436 | printf %s "(cached) " >&6 | |
11437 | else $as_nop | |
57aa50d4 TT |
11438 | if test -n "$AR"; then |
11439 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
11440 | else | |
11441 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11442 | for as_dir in $PATH | |
11443 | do | |
11444 | IFS=$as_save_IFS | |
54445dc2 TT |
11445 | case $as_dir in #((( |
11446 | '') as_dir=./ ;; | |
11447 | */) ;; | |
11448 | *) as_dir=$as_dir/ ;; | |
11449 | esac | |
57aa50d4 | 11450 | for ac_exec_ext in '' $ac_executable_extensions; do |
54445dc2 | 11451 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
57aa50d4 | 11452 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
54445dc2 | 11453 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
57aa50d4 TT |
11454 | break 2 |
11455 | fi | |
11456 | done | |
11457 | done | |
11458 | IFS=$as_save_IFS | |
39fd3d4f | 11459 | |
57aa50d4 TT |
11460 | fi |
11461 | fi | |
11462 | AR=$ac_cv_prog_AR | |
11463 | if test -n "$AR"; then | |
54445dc2 TT |
11464 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
11465 | printf "%s\n" "$AR" >&6; } | |
57aa50d4 | 11466 | else |
54445dc2 TT |
11467 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11468 | printf "%s\n" "no" >&6; } | |
57aa50d4 | 11469 | fi |
39fd3d4f | 11470 | |
b0cacab0 | 11471 | |
57aa50d4 TT |
11472 | fi |
11473 | if test -z "$ac_cv_prog_AR"; then | |
11474 | ac_ct_AR=$AR | |
11475 | # Extract the first word of "ar", so it can be a program name with args. | |
11476 | set dummy ar; ac_word=$2 | |
54445dc2 TT |
11477 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11478 | printf %s "checking for $ac_word... " >&6; } | |
11479 | if test ${ac_cv_prog_ac_ct_AR+y} | |
11480 | then : | |
11481 | printf %s "(cached) " >&6 | |
11482 | else $as_nop | |
57aa50d4 TT |
11483 | if test -n "$ac_ct_AR"; then |
11484 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
b0cacab0 | 11485 | else |
57aa50d4 TT |
11486 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11487 | for as_dir in $PATH | |
11488 | do | |
11489 | IFS=$as_save_IFS | |
54445dc2 TT |
11490 | case $as_dir in #((( |
11491 | '') as_dir=./ ;; | |
11492 | */) ;; | |
11493 | *) as_dir=$as_dir/ ;; | |
11494 | esac | |
57aa50d4 | 11495 | for ac_exec_ext in '' $ac_executable_extensions; do |
54445dc2 | 11496 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
57aa50d4 | 11497 | ac_cv_prog_ac_ct_AR="ar" |
54445dc2 | 11498 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
57aa50d4 TT |
11499 | break 2 |
11500 | fi | |
11501 | done | |
11502 | done | |
11503 | IFS=$as_save_IFS | |
b0cacab0 | 11504 | |
b0cacab0 | 11505 | fi |
57aa50d4 TT |
11506 | fi |
11507 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
11508 | if test -n "$ac_ct_AR"; then | |
54445dc2 TT |
11509 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
11510 | printf "%s\n" "$ac_ct_AR" >&6; } | |
b0cacab0 | 11511 | else |
54445dc2 TT |
11512 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11513 | printf "%s\n" "no" >&6; } | |
57aa50d4 | 11514 | fi |
b0cacab0 | 11515 | |
57aa50d4 TT |
11516 | if test "x$ac_ct_AR" = x; then |
11517 | AR="ar" | |
11518 | else | |
11519 | case $cross_compiling:$ac_tool_warned in | |
11520 | yes:) | |
54445dc2 TT |
11521 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
11522 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
57aa50d4 | 11523 | ac_tool_warned=yes ;; |
e1052144 | 11524 | esac |
57aa50d4 TT |
11525 | AR=$ac_ct_AR |
11526 | fi | |
b0cacab0 | 11527 | else |
57aa50d4 | 11528 | AR="$ac_cv_prog_AR" |
b0cacab0 | 11529 | fi |
e1052144 | 11530 | |
57aa50d4 TT |
11531 | if test -n "$ac_tool_prefix"; then |
11532 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
11533 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
54445dc2 TT |
11534 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11535 | printf %s "checking for $ac_word... " >&6; } | |
11536 | if test ${ac_cv_prog_RANLIB+y} | |
11537 | then : | |
11538 | printf %s "(cached) " >&6 | |
11539 | else $as_nop | |
57aa50d4 TT |
11540 | if test -n "$RANLIB"; then |
11541 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
11542 | else | |
11543 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11544 | for as_dir in $PATH | |
11545 | do | |
11546 | IFS=$as_save_IFS | |
54445dc2 TT |
11547 | case $as_dir in #((( |
11548 | '') as_dir=./ ;; | |
11549 | */) ;; | |
11550 | *) as_dir=$as_dir/ ;; | |
11551 | esac | |
57aa50d4 | 11552 | for ac_exec_ext in '' $ac_executable_extensions; do |
54445dc2 | 11553 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
57aa50d4 | 11554 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
54445dc2 | 11555 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
57aa50d4 TT |
11556 | break 2 |
11557 | fi | |
11558 | done | |
b0cacab0 | 11559 | done |
57aa50d4 | 11560 | IFS=$as_save_IFS |
b0cacab0 | 11561 | |
b0cacab0 | 11562 | fi |
57aa50d4 TT |
11563 | fi |
11564 | RANLIB=$ac_cv_prog_RANLIB | |
11565 | if test -n "$RANLIB"; then | |
54445dc2 TT |
11566 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
11567 | printf "%s\n" "$RANLIB" >&6; } | |
b0cacab0 | 11568 | else |
54445dc2 TT |
11569 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11570 | printf "%s\n" "no" >&6; } | |
b0cacab0 | 11571 | fi |
b0cacab0 | 11572 | |
b0cacab0 | 11573 | |
57aa50d4 TT |
11574 | fi |
11575 | if test -z "$ac_cv_prog_RANLIB"; then | |
11576 | ac_ct_RANLIB=$RANLIB | |
11577 | # Extract the first word of "ranlib", so it can be a program name with args. | |
11578 | set dummy ranlib; ac_word=$2 | |
54445dc2 TT |
11579 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11580 | printf %s "checking for $ac_word... " >&6; } | |
11581 | if test ${ac_cv_prog_ac_ct_RANLIB+y} | |
11582 | then : | |
11583 | printf %s "(cached) " >&6 | |
11584 | else $as_nop | |
57aa50d4 TT |
11585 | if test -n "$ac_ct_RANLIB"; then |
11586 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
b0cacab0 | 11587 | else |
57aa50d4 TT |
11588 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11589 | for as_dir in $PATH | |
11590 | do | |
11591 | IFS=$as_save_IFS | |
54445dc2 TT |
11592 | case $as_dir in #((( |
11593 | '') as_dir=./ ;; | |
11594 | */) ;; | |
11595 | *) as_dir=$as_dir/ ;; | |
11596 | esac | |
57aa50d4 | 11597 | for ac_exec_ext in '' $ac_executable_extensions; do |
54445dc2 | 11598 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
57aa50d4 | 11599 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
54445dc2 | 11600 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
57aa50d4 TT |
11601 | break 2 |
11602 | fi | |
11603 | done | |
11604 | done | |
11605 | IFS=$as_save_IFS | |
29a5deed | 11606 | |
b0cacab0 | 11607 | fi |
57aa50d4 TT |
11608 | fi |
11609 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
11610 | if test -n "$ac_ct_RANLIB"; then | |
54445dc2 TT |
11611 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
11612 | printf "%s\n" "$ac_ct_RANLIB" >&6; } | |
b0cacab0 | 11613 | else |
54445dc2 TT |
11614 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11615 | printf "%s\n" "no" >&6; } | |
57aa50d4 | 11616 | fi |
b0cacab0 | 11617 | |
57aa50d4 TT |
11618 | if test "x$ac_ct_RANLIB" = x; then |
11619 | RANLIB=":" | |
b0cacab0 | 11620 | else |
57aa50d4 TT |
11621 | case $cross_compiling:$ac_tool_warned in |
11622 | yes:) | |
54445dc2 TT |
11623 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
11624 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
57aa50d4 | 11625 | ac_tool_warned=yes ;; |
e1052144 | 11626 | esac |
57aa50d4 TT |
11627 | RANLIB=$ac_ct_RANLIB |
11628 | fi | |
b0cacab0 | 11629 | else |
57aa50d4 | 11630 | RANLIB="$ac_cv_prog_RANLIB" |
b0cacab0 | 11631 | fi |
e1052144 | 11632 | |
57aa50d4 TT |
11633 | if test -n "$ac_tool_prefix"; then |
11634 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
11635 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
54445dc2 TT |
11636 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11637 | printf %s "checking for $ac_word... " >&6; } | |
11638 | if test ${ac_cv_prog_STRIP+y} | |
11639 | then : | |
11640 | printf %s "(cached) " >&6 | |
11641 | else $as_nop | |
57aa50d4 TT |
11642 | if test -n "$STRIP"; then |
11643 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
11644 | else | |
11645 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11646 | for as_dir in $PATH | |
11647 | do | |
11648 | IFS=$as_save_IFS | |
54445dc2 TT |
11649 | case $as_dir in #((( |
11650 | '') as_dir=./ ;; | |
11651 | */) ;; | |
11652 | *) as_dir=$as_dir/ ;; | |
11653 | esac | |
57aa50d4 | 11654 | for ac_exec_ext in '' $ac_executable_extensions; do |
54445dc2 | 11655 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
57aa50d4 | 11656 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
54445dc2 | 11657 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
57aa50d4 TT |
11658 | break 2 |
11659 | fi | |
11660 | done | |
11661 | done | |
11662 | IFS=$as_save_IFS | |
b0cacab0 | 11663 | |
b0cacab0 | 11664 | fi |
b0cacab0 | 11665 | fi |
57aa50d4 TT |
11666 | STRIP=$ac_cv_prog_STRIP |
11667 | if test -n "$STRIP"; then | |
54445dc2 TT |
11668 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
11669 | printf "%s\n" "$STRIP" >&6; } | |
57aa50d4 | 11670 | else |
54445dc2 TT |
11671 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11672 | printf "%s\n" "no" >&6; } | |
b0cacab0 | 11673 | fi |
e1052144 | 11674 | |
b0cacab0 | 11675 | |
57aa50d4 TT |
11676 | fi |
11677 | if test -z "$ac_cv_prog_STRIP"; then | |
11678 | ac_ct_STRIP=$STRIP | |
11679 | # Extract the first word of "strip", so it can be a program name with args. | |
11680 | set dummy strip; ac_word=$2 | |
54445dc2 TT |
11681 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11682 | printf %s "checking for $ac_word... " >&6; } | |
11683 | if test ${ac_cv_prog_ac_ct_STRIP+y} | |
11684 | then : | |
11685 | printf %s "(cached) " >&6 | |
11686 | else $as_nop | |
57aa50d4 TT |
11687 | if test -n "$ac_ct_STRIP"; then |
11688 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
11689 | else | |
11690 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11691 | for as_dir in $PATH | |
11692 | do | |
11693 | IFS=$as_save_IFS | |
54445dc2 TT |
11694 | case $as_dir in #((( |
11695 | '') as_dir=./ ;; | |
11696 | */) ;; | |
11697 | *) as_dir=$as_dir/ ;; | |
11698 | esac | |
57aa50d4 | 11699 | for ac_exec_ext in '' $ac_executable_extensions; do |
54445dc2 | 11700 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
57aa50d4 | 11701 | ac_cv_prog_ac_ct_STRIP="strip" |
54445dc2 | 11702 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
57aa50d4 TT |
11703 | break 2 |
11704 | fi | |
11705 | done | |
11706 | done | |
11707 | IFS=$as_save_IFS | |
b0cacab0 | 11708 | |
b0cacab0 | 11709 | fi |
57aa50d4 TT |
11710 | fi |
11711 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
11712 | if test -n "$ac_ct_STRIP"; then | |
54445dc2 TT |
11713 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
11714 | printf "%s\n" "$ac_ct_STRIP" >&6; } | |
b0cacab0 | 11715 | else |
54445dc2 TT |
11716 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11717 | printf "%s\n" "no" >&6; } | |
57aa50d4 | 11718 | fi |
b0cacab0 | 11719 | |
57aa50d4 TT |
11720 | if test "x$ac_ct_STRIP" = x; then |
11721 | STRIP=":" | |
b0cacab0 | 11722 | else |
57aa50d4 TT |
11723 | case $cross_compiling:$ac_tool_warned in |
11724 | yes:) | |
54445dc2 TT |
11725 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
11726 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
57aa50d4 | 11727 | ac_tool_warned=yes ;; |
e1052144 | 11728 | esac |
57aa50d4 TT |
11729 | STRIP=$ac_ct_STRIP |
11730 | fi | |
b0cacab0 | 11731 | else |
57aa50d4 | 11732 | STRIP="$ac_cv_prog_STRIP" |
b0cacab0 | 11733 | fi |
e1052144 | 11734 | |
57aa50d4 TT |
11735 | # Extract the first word of "makeinfo", so it can be a program name with args. |
11736 | set dummy makeinfo; ac_word=$2 | |
54445dc2 TT |
11737 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11738 | printf %s "checking for $ac_word... " >&6; } | |
11739 | if test ${ac_cv_prog_MAKEINFO+y} | |
11740 | then : | |
11741 | printf %s "(cached) " >&6 | |
11742 | else $as_nop | |
57aa50d4 TT |
11743 | if test -n "$MAKEINFO"; then |
11744 | ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. | |
11745 | else | |
11746 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11747 | for as_dir in $PATH | |
11748 | do | |
11749 | IFS=$as_save_IFS | |
54445dc2 TT |
11750 | case $as_dir in #((( |
11751 | '') as_dir=./ ;; | |
11752 | */) ;; | |
11753 | *) as_dir=$as_dir/ ;; | |
11754 | esac | |
57aa50d4 | 11755 | for ac_exec_ext in '' $ac_executable_extensions; do |
54445dc2 | 11756 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
57aa50d4 | 11757 | ac_cv_prog_MAKEINFO="makeinfo" |
54445dc2 | 11758 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
57aa50d4 TT |
11759 | break 2 |
11760 | fi | |
11761 | done | |
11762 | done | |
11763 | IFS=$as_save_IFS | |
b0cacab0 | 11764 | |
b0cacab0 TT |
11765 | fi |
11766 | fi | |
57aa50d4 TT |
11767 | MAKEINFO=$ac_cv_prog_MAKEINFO |
11768 | if test -n "$MAKEINFO"; then | |
54445dc2 TT |
11769 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 |
11770 | printf "%s\n" "$MAKEINFO" >&6; } | |
b0cacab0 | 11771 | else |
54445dc2 TT |
11772 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11773 | printf "%s\n" "no" >&6; } | |
07a0db15 | 11774 | fi |
29a5deed TT |
11775 | |
11776 | ||
57aa50d4 | 11777 | if test "_$MAKEINFO" = "_"; then |
ca1de98a | 11778 | MAKEINFO="echo Makeinfo is missing. Info documentation will not be built." |
57aa50d4 TT |
11779 | else |
11780 | case "$MAKEINFO" in | |
11781 | */missing.*) | |
54445dc2 | 11782 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: |
57aa50d4 | 11783 | *** Makeinfo is missing. Info documentation will not be built." >&5 |
54445dc2 | 11784 | printf "%s\n" "$as_me: WARNING: |
57aa50d4 TT |
11785 | *** Makeinfo is missing. Info documentation will not be built." >&2;} |
11786 | ;; | |
11787 | *) | |
11788 | ;; | |
11789 | esac | |
b0cacab0 | 11790 | fi |
29a5deed | 11791 | |
b0cacab0 | 11792 | |
57aa50d4 TT |
11793 | # See if we need a separate native compiler. |
11794 | if test $cross_compiling = no; then | |
11795 | BUILD_CC="$CC" | |
b0cacab0 | 11796 | |
b0cacab0 | 11797 | else |
57aa50d4 TT |
11798 | for ac_prog in gcc cc |
11799 | do | |
11800 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
11801 | set dummy $ac_prog; ac_word=$2 | |
54445dc2 TT |
11802 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11803 | printf %s "checking for $ac_word... " >&6; } | |
11804 | if test ${ac_cv_prog_BUILD_CC+y} | |
11805 | then : | |
11806 | printf %s "(cached) " >&6 | |
11807 | else $as_nop | |
57aa50d4 TT |
11808 | if test -n "$BUILD_CC"; then |
11809 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. | |
11810 | else | |
11811 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11812 | for as_dir in $PATH | |
11813 | do | |
11814 | IFS=$as_save_IFS | |
54445dc2 TT |
11815 | case $as_dir in #((( |
11816 | '') as_dir=./ ;; | |
11817 | */) ;; | |
11818 | *) as_dir=$as_dir/ ;; | |
11819 | esac | |
57aa50d4 | 11820 | for ac_exec_ext in '' $ac_executable_extensions; do |
54445dc2 | 11821 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
57aa50d4 | 11822 | ac_cv_prog_BUILD_CC="$ac_prog" |
54445dc2 | 11823 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
57aa50d4 TT |
11824 | break 2 |
11825 | fi | |
11826 | done | |
11827 | done | |
11828 | IFS=$as_save_IFS | |
b0cacab0 | 11829 | |
b0cacab0 | 11830 | fi |
57aa50d4 TT |
11831 | fi |
11832 | BUILD_CC=$ac_cv_prog_BUILD_CC | |
11833 | if test -n "$BUILD_CC"; then | |
54445dc2 TT |
11834 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 |
11835 | printf "%s\n" "$BUILD_CC" >&6; } | |
07a0db15 | 11836 | else |
54445dc2 TT |
11837 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11838 | printf "%s\n" "no" >&6; } | |
b0cacab0 | 11839 | fi |
b0cacab0 | 11840 | |
b0cacab0 | 11841 | |
57aa50d4 TT |
11842 | test -n "$BUILD_CC" && break |
11843 | done | |
b0cacab0 | 11844 | |
57aa50d4 | 11845 | fi |
54445dc2 TT |
11846 | ac_fn_c_check_header_compile "$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default" |
11847 | if test "x$ac_cv_header_dirent_h" = xyes | |
11848 | then : | |
11849 | printf "%s\n" "#define HAVE_DIRENT_H 1" >>confdefs.h | |
b0cacab0 | 11850 | |
b0cacab0 | 11851 | fi |
54445dc2 TT |
11852 | ac_fn_c_check_header_compile "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default" |
11853 | if test "x$ac_cv_header_errno_h" = xyes | |
11854 | then : | |
11855 | printf "%s\n" "#define HAVE_ERRNO_H 1" >>confdefs.h | |
e1052144 | 11856 | |
54445dc2 TT |
11857 | fi |
11858 | ac_fn_c_check_header_compile "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default" | |
11859 | if test "x$ac_cv_header_execinfo_h" = xyes | |
11860 | then : | |
11861 | printf "%s\n" "#define HAVE_EXECINFO_H 1" >>confdefs.h | |
11862 | ||
11863 | fi | |
11864 | ac_fn_c_check_header_compile "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default" | |
11865 | if test "x$ac_cv_header_getopt_h" = xyes | |
11866 | then : | |
11867 | printf "%s\n" "#define HAVE_GETOPT_H 1" >>confdefs.h | |
93636bde | 11868 | |
54445dc2 TT |
11869 | fi |
11870 | ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default" | |
11871 | if test "x$ac_cv_header_malloc_h" = xyes | |
11872 | then : | |
11873 | printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h | |
11874 | ||
11875 | fi | |
11876 | ac_fn_c_check_header_compile "$LINENO" "mntent.h" "ac_cv_header_mntent_h" "$ac_includes_default" | |
11877 | if test "x$ac_cv_header_mntent_h" = xyes | |
11878 | then : | |
11879 | printf "%s\n" "#define HAVE_MNTENT_H 1" >>confdefs.h | |
11880 | ||
11881 | fi | |
11882 | ac_fn_c_check_header_compile "$LINENO" "paths.h" "ac_cv_header_paths_h" "$ac_includes_default" | |
11883 | if test "x$ac_cv_header_paths_h" = xyes | |
11884 | then : | |
11885 | printf "%s\n" "#define HAVE_PATHS_H 1" >>confdefs.h | |
11886 | ||
11887 | fi | |
11888 | ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" | |
11889 | if test "x$ac_cv_header_pthread_h" = xyes | |
11890 | then : | |
11891 | printf "%s\n" "#define HAVE_PTHREAD_H 1" >>confdefs.h | |
11892 | ||
11893 | fi | |
11894 | ac_fn_c_check_header_compile "$LINENO" "semaphore.h" "ac_cv_header_semaphore_h" "$ac_includes_default" | |
11895 | if test "x$ac_cv_header_semaphore_h" = xyes | |
11896 | then : | |
11897 | printf "%s\n" "#define HAVE_SEMAPHORE_H 1" >>confdefs.h | |
11898 | ||
11899 | fi | |
11900 | ac_fn_c_check_header_compile "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$ac_includes_default" | |
11901 | if test "x$ac_cv_header_setjmp_h" = xyes | |
11902 | then : | |
11903 | printf "%s\n" "#define HAVE_SETJMP_H 1" >>confdefs.h | |
11904 | ||
11905 | fi | |
11906 | ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default" | |
11907 | if test "x$ac_cv_header_signal_h" = xyes | |
11908 | then : | |
11909 | printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h | |
11910 | ||
11911 | fi | |
11912 | ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default" | |
11913 | if test "x$ac_cv_header_stdarg_h" = xyes | |
11914 | then : | |
11915 | printf "%s\n" "#define HAVE_STDARG_H 1" >>confdefs.h | |
11916 | ||
11917 | fi | |
11918 | ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" | |
11919 | if test "x$ac_cv_header_stdint_h" = xyes | |
11920 | then : | |
11921 | printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h | |
11922 | ||
11923 | fi | |
11924 | ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" | |
11925 | if test "x$ac_cv_header_stdlib_h" = xyes | |
11926 | then : | |
11927 | printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h | |
11928 | ||
11929 | fi | |
11930 | ac_fn_c_check_header_compile "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default" | |
11931 | if test "x$ac_cv_header_termios_h" = xyes | |
11932 | then : | |
11933 | printf "%s\n" "#define HAVE_TERMIOS_H 1" >>confdefs.h | |
11934 | ||
11935 | fi | |
11936 | ac_fn_c_check_header_compile "$LINENO" "termio.h" "ac_cv_header_termio_h" "$ac_includes_default" | |
11937 | if test "x$ac_cv_header_termio_h" = xyes | |
11938 | then : | |
11939 | printf "%s\n" "#define HAVE_TERMIO_H 1" >>confdefs.h | |
11940 | ||
11941 | fi | |
11942 | ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" | |
11943 | if test "x$ac_cv_header_unistd_h" = xyes | |
11944 | then : | |
11945 | printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h | |
11946 | ||
11947 | fi | |
11948 | ac_fn_c_check_header_compile "$LINENO" "utime.h" "ac_cv_header_utime_h" "$ac_includes_default" | |
11949 | if test "x$ac_cv_header_utime_h" = xyes | |
11950 | then : | |
11951 | printf "%s\n" "#define HAVE_UTIME_H 1" >>confdefs.h | |
11952 | ||
11953 | fi | |
11954 | ac_fn_c_check_header_compile "$LINENO" "attr/xattr.h" "ac_cv_header_attr_xattr_h" "$ac_includes_default" | |
11955 | if test "x$ac_cv_header_attr_xattr_h" = xyes | |
11956 | then : | |
11957 | printf "%s\n" "#define HAVE_ATTR_XATTR_H 1" >>confdefs.h | |
11958 | ||
11959 | fi | |
11960 | ac_fn_c_check_header_compile "$LINENO" "linux/falloc.h" "ac_cv_header_linux_falloc_h" "$ac_includes_default" | |
11961 | if test "x$ac_cv_header_linux_falloc_h" = xyes | |
11962 | then : | |
11963 | printf "%s\n" "#define HAVE_LINUX_FALLOC_H 1" >>confdefs.h | |
11964 | ||
11965 | fi | |
11966 | ac_fn_c_check_header_compile "$LINENO" "linux/fd.h" "ac_cv_header_linux_fd_h" "$ac_includes_default" | |
11967 | if test "x$ac_cv_header_linux_fd_h" = xyes | |
11968 | then : | |
11969 | printf "%s\n" "#define HAVE_LINUX_FD_H 1" >>confdefs.h | |
11970 | ||
11971 | fi | |
11972 | ac_fn_c_check_header_compile "$LINENO" "linux/fsmap.h" "ac_cv_header_linux_fsmap_h" "$ac_includes_default" | |
11973 | if test "x$ac_cv_header_linux_fsmap_h" = xyes | |
11974 | then : | |
11975 | printf "%s\n" "#define HAVE_LINUX_FSMAP_H 1" >>confdefs.h | |
11976 | ||
11977 | fi | |
11978 | ac_fn_c_check_header_compile "$LINENO" "linux/major.h" "ac_cv_header_linux_major_h" "$ac_includes_default" | |
11979 | if test "x$ac_cv_header_linux_major_h" = xyes | |
11980 | then : | |
11981 | printf "%s\n" "#define HAVE_LINUX_MAJOR_H 1" >>confdefs.h | |
11982 | ||
11983 | fi | |
11984 | ac_fn_c_check_header_compile "$LINENO" "linux/loop.h" "ac_cv_header_linux_loop_h" "$ac_includes_default" | |
11985 | if test "x$ac_cv_header_linux_loop_h" = xyes | |
11986 | then : | |
11987 | printf "%s\n" "#define HAVE_LINUX_LOOP_H 1" >>confdefs.h | |
11988 | ||
11989 | fi | |
11990 | ac_fn_c_check_header_compile "$LINENO" "linux/types.h" "ac_cv_header_linux_types_h" "$ac_includes_default" | |
11991 | if test "x$ac_cv_header_linux_types_h" = xyes | |
11992 | then : | |
11993 | printf "%s\n" "#define HAVE_LINUX_TYPES_H 1" >>confdefs.h | |
11994 | ||
11995 | fi | |
11996 | ac_fn_c_check_header_compile "$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default" | |
11997 | if test "x$ac_cv_header_net_if_dl_h" = xyes | |
11998 | then : | |
11999 | printf "%s\n" "#define HAVE_NET_IF_DL_H 1" >>confdefs.h | |
12000 | ||
12001 | fi | |
12002 | ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default" | |
12003 | if test "x$ac_cv_header_netinet_in_h" = xyes | |
12004 | then : | |
12005 | printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h | |
12006 | ||
12007 | fi | |
12008 | ac_fn_c_check_header_compile "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default" | |
12009 | if test "x$ac_cv_header_sys_acl_h" = xyes | |
12010 | then : | |
12011 | printf "%s\n" "#define HAVE_SYS_ACL_H 1" >>confdefs.h | |
12012 | ||
12013 | fi | |
12014 | ac_fn_c_check_header_compile "$LINENO" "sys/disklabel.h" "ac_cv_header_sys_disklabel_h" "$ac_includes_default" | |
12015 | if test "x$ac_cv_header_sys_disklabel_h" = xyes | |
12016 | then : | |
12017 | printf "%s\n" "#define HAVE_SYS_DISKLABEL_H 1" >>confdefs.h | |
12018 | ||
12019 | fi | |
12020 | ac_fn_c_check_header_compile "$LINENO" "sys/disk.h" "ac_cv_header_sys_disk_h" "$ac_includes_default" | |
12021 | if test "x$ac_cv_header_sys_disk_h" = xyes | |
12022 | then : | |
12023 | printf "%s\n" "#define HAVE_SYS_DISK_H 1" >>confdefs.h | |
12024 | ||
12025 | fi | |
12026 | ac_fn_c_check_header_compile "$LINENO" "sys/file.h" "ac_cv_header_sys_file_h" "$ac_includes_default" | |
12027 | if test "x$ac_cv_header_sys_file_h" = xyes | |
12028 | then : | |
12029 | printf "%s\n" "#define HAVE_SYS_FILE_H 1" >>confdefs.h | |
12030 | ||
12031 | fi | |
12032 | ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default" | |
12033 | if test "x$ac_cv_header_sys_ioctl_h" = xyes | |
12034 | then : | |
12035 | printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h | |
12036 | ||
12037 | fi | |
12038 | ac_fn_c_check_header_compile "$LINENO" "sys/key.h" "ac_cv_header_sys_key_h" "$ac_includes_default" | |
12039 | if test "x$ac_cv_header_sys_key_h" = xyes | |
12040 | then : | |
12041 | printf "%s\n" "#define HAVE_SYS_KEY_H 1" >>confdefs.h | |
12042 | ||
12043 | fi | |
12044 | ac_fn_c_check_header_compile "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default" | |
12045 | if test "x$ac_cv_header_sys_mkdev_h" = xyes | |
12046 | then : | |
12047 | printf "%s\n" "#define HAVE_SYS_MKDEV_H 1" >>confdefs.h | |
12048 | ||
12049 | fi | |
12050 | ac_fn_c_check_header_compile "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default" | |
12051 | if test "x$ac_cv_header_sys_mman_h" = xyes | |
12052 | then : | |
12053 | printf "%s\n" "#define HAVE_SYS_MMAN_H 1" >>confdefs.h | |
12054 | ||
12055 | fi | |
12056 | ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$ac_includes_default" | |
12057 | if test "x$ac_cv_header_sys_mount_h" = xyes | |
12058 | then : | |
12059 | printf "%s\n" "#define HAVE_SYS_MOUNT_H 1" >>confdefs.h | |
12060 | ||
12061 | fi | |
12062 | ac_fn_c_check_header_compile "$LINENO" "sys/prctl.h" "ac_cv_header_sys_prctl_h" "$ac_includes_default" | |
12063 | if test "x$ac_cv_header_sys_prctl_h" = xyes | |
12064 | then : | |
12065 | printf "%s\n" "#define HAVE_SYS_PRCTL_H 1" >>confdefs.h | |
12066 | ||
12067 | fi | |
12068 | ac_fn_c_check_header_compile "$LINENO" "sys/random.h" "ac_cv_header_sys_random_h" "$ac_includes_default" | |
12069 | if test "x$ac_cv_header_sys_random_h" = xyes | |
12070 | then : | |
12071 | printf "%s\n" "#define HAVE_SYS_RANDOM_H 1" >>confdefs.h | |
12072 | ||
12073 | fi | |
12074 | ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "$ac_includes_default" | |
12075 | if test "x$ac_cv_header_sys_resource_h" = xyes | |
12076 | then : | |
12077 | printf "%s\n" "#define HAVE_SYS_RESOURCE_H 1" >>confdefs.h | |
12078 | ||
12079 | fi | |
12080 | ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default" | |
12081 | if test "x$ac_cv_header_sys_select_h" = xyes | |
12082 | then : | |
12083 | printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h | |
12084 | ||
12085 | fi | |
12086 | ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default" | |
12087 | if test "x$ac_cv_header_sys_socket_h" = xyes | |
12088 | then : | |
12089 | printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h | |
12090 | ||
12091 | fi | |
12092 | ac_fn_c_check_header_compile "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default" | |
12093 | if test "x$ac_cv_header_sys_sockio_h" = xyes | |
12094 | then : | |
12095 | printf "%s\n" "#define HAVE_SYS_SOCKIO_H 1" >>confdefs.h | |
12096 | ||
12097 | fi | |
12098 | ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default" | |
12099 | if test "x$ac_cv_header_sys_stat_h" = xyes | |
12100 | then : | |
12101 | printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h | |
12102 | ||
12103 | fi | |
12104 | ac_fn_c_check_header_compile "$LINENO" "sys/syscall.h" "ac_cv_header_sys_syscall_h" "$ac_includes_default" | |
12105 | if test "x$ac_cv_header_sys_syscall_h" = xyes | |
12106 | then : | |
12107 | printf "%s\n" "#define HAVE_SYS_SYSCALL_H 1" >>confdefs.h | |
12108 | ||
12109 | fi | |
12110 | ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default" | |
12111 | if test "x$ac_cv_header_sys_sysmacros_h" = xyes | |
12112 | then : | |
12113 | printf "%s\n" "#define HAVE_SYS_SYSMACROS_H 1" >>confdefs.h | |
12114 | ||
12115 | fi | |
12116 | ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default" | |
12117 | if test "x$ac_cv_header_sys_time_h" = xyes | |
12118 | then : | |
12119 | printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h | |
12120 | ||
12121 | fi | |
12122 | ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default" | |
12123 | if test "x$ac_cv_header_sys_types_h" = xyes | |
12124 | then : | |
12125 | printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h | |
12126 | ||
12127 | fi | |
12128 | ac_fn_c_check_header_compile "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default" | |
12129 | if test "x$ac_cv_header_sys_un_h" = xyes | |
12130 | then : | |
12131 | printf "%s\n" "#define HAVE_SYS_UN_H 1" >>confdefs.h | |
12132 | ||
12133 | fi | |
12134 | ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default" | |
12135 | if test "x$ac_cv_header_sys_wait_h" = xyes | |
12136 | then : | |
12137 | printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h | |
12138 | ||
12139 | fi | |
12140 | ac_fn_c_check_header_compile "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default" | |
12141 | if test "x$ac_cv_header_sys_xattr_h" = xyes | |
12142 | then : | |
12143 | printf "%s\n" "#define HAVE_SYS_XATTR_H 1" >>confdefs.h | |
12144 | ||
12145 | fi | |
12146 | ||
6eb00fb7 EB |
12147 | case "$host_os" in |
12148 | mingw*) | |
12149 | # The above checks only detect system headers, not the headers in | |
12150 | # ./include/mingw/, so explicitly define them to be available. | |
12151 | printf "%s\n" "#define HAVE_LINUX_TYPES_H 1" >>confdefs.h | |
12152 | ||
12153 | printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h | |
12154 | ||
12155 | printf "%s\n" "#define HAVE_SYS_SYSMACROS_H 1" >>confdefs.h | |
12156 | ||
12157 | printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h | |
12158 | ||
12159 | printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h | |
12160 | ||
12161 | ;; | |
12162 | esac | |
54445dc2 TT |
12163 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a dd(1) program that supports iflag=fullblock" >&5 |
12164 | printf %s "checking for a dd(1) program that supports iflag=fullblock... " >&6; } | |
ec3a69bb MA |
12165 | DD= |
12166 | for i in dd gdd ; do | |
12167 | if "$i" if=/dev/null of=/dev/null count=1 bs=10k 2>/dev/null iflag=fullblock oflag=append ; then | |
12168 | DD=$i | |
12169 | break | |
12170 | fi | |
12171 | done | |
12172 | if test -n "$DD" ; then | |
54445dc2 TT |
12173 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DD" >&5 |
12174 | printf "%s\n" "$DD" >&6; } | |
ec3a69bb | 12175 | else |
54445dc2 TT |
12176 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found, using dd" >&5 |
12177 | printf "%s\n" "not found, using dd" >&6; } | |
ec3a69bb | 12178 | DD=dd |
54445dc2 TT |
12179 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&5 |
12180 | printf "%s\n" "$as_me: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&2;} | |
ec3a69bb MA |
12181 | fi |
12182 | ||
12183 | ||
54445dc2 | 12184 | ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" " |
57aa50d4 TT |
12185 | #if HAVE_SYS_TYPES_H |
12186 | #include <sys/types.h> | |
12187 | #endif | |
12188 | #if HAVE_SYS_SOCKET | |
12189 | #include <sys/socket.h> | |
12190 | #endif | |
29a5deed | 12191 | |
57aa50d4 | 12192 | " |
54445dc2 TT |
12193 | if test "x$ac_cv_header_net_if_h" = xyes |
12194 | then : | |
12195 | printf "%s\n" "#define HAVE_NET_IF_H 1" >>confdefs.h | |
b0cacab0 | 12196 | |
b0cacab0 | 12197 | fi |
e1052144 | 12198 | |
54445dc2 TT |
12199 | ac_func= |
12200 | for ac_item in $ac_func_c_list | |
12201 | do | |
12202 | if test $ac_func; then | |
12203 | ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func | |
12204 | if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then | |
12205 | echo "#define $ac_item 1" >> confdefs.h | |
12206 | fi | |
12207 | ac_func= | |
12208 | else | |
12209 | ac_func=$ac_item | |
12210 | fi | |
b0cacab0 | 12211 | done |
b0cacab0 | 12212 | |
54445dc2 TT |
12213 | if test "x$ac_cv_func_vprintf" = xno |
12214 | then : | |
12215 | ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" | |
12216 | if test "x$ac_cv_func__doprnt" = xyes | |
12217 | then : | |
b0cacab0 | 12218 | |
54445dc2 | 12219 | printf "%s\n" "#define HAVE_DOPRNT 1" >>confdefs.h |
b0cacab0 | 12220 | |
54445dc2 | 12221 | fi |
b0cacab0 | 12222 | |
50e1e10f | 12223 | fi |
54445dc2 TT |
12224 | ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h> |
12225 | " | |
12226 | if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes | |
12227 | then : | |
12228 | ||
12229 | printf "%s\n" "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h | |
29a5deed | 12230 | |
57aa50d4 | 12231 | fi |
29a5deed | 12232 | |
54445dc2 TT |
12233 | ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default" |
12234 | if test "x$ac_cv_member_struct_stat_st_atim" = xyes | |
12235 | then : | |
12236 | ||
12237 | printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIM 1" >>confdefs.h | |
29a5deed | 12238 | |
54445dc2 TT |
12239 | |
12240 | fi | |
12241 | ||
12242 | ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h> | |
57aa50d4 | 12243 | " |
54445dc2 TT |
12244 | if test "x$ac_cv_type_ssize_t" = xyes |
12245 | then : | |
12246 | ||
12247 | printf "%s\n" "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h | |
12248 | ||
12249 | fi | |
12250 | ||
12251 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 | |
12252 | printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } | |
12253 | if test ${ac_cv_c_undeclared_builtin_options+y} | |
12254 | then : | |
12255 | printf %s "(cached) " >&6 | |
12256 | else $as_nop | |
12257 | ac_save_CFLAGS=$CFLAGS | |
12258 | ac_cv_c_undeclared_builtin_options='cannot detect' | |
12259 | for ac_arg in '' -fno-builtin; do | |
12260 | CFLAGS="$ac_save_CFLAGS $ac_arg" | |
12261 | # This test program should *not* compile successfully. | |
12262 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12263 | /* end confdefs.h. */ | |
d1154eb4 | 12264 | |
54445dc2 TT |
12265 | int |
12266 | main (void) | |
12267 | { | |
12268 | (void) strchr; | |
12269 | ; | |
12270 | return 0; | |
12271 | } | |
12272 | _ACEOF | |
12273 | if ac_fn_c_try_compile "$LINENO" | |
12274 | then : | |
50e1e10f | 12275 | |
54445dc2 TT |
12276 | else $as_nop |
12277 | # This test program should compile successfully. | |
12278 | # No library function is consistently available on | |
12279 | # freestanding implementations, so test against a dummy | |
12280 | # declaration. Include always-available headers on the | |
12281 | # off chance that they somehow elicit warnings. | |
12282 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12283 | /* end confdefs.h. */ | |
12284 | #include <float.h> | |
12285 | #include <limits.h> | |
12286 | #include <stdarg.h> | |
12287 | #include <stddef.h> | |
12288 | extern void ac_decl (int, char *); | |
2873927d | 12289 | |
54445dc2 TT |
12290 | int |
12291 | main (void) | |
12292 | { | |
12293 | (void) ac_decl (0, (char *) 0); | |
12294 | (void) ac_decl; | |
2873927d | 12295 | |
54445dc2 TT |
12296 | ; |
12297 | return 0; | |
12298 | } | |
2873927d | 12299 | _ACEOF |
54445dc2 TT |
12300 | if ac_fn_c_try_compile "$LINENO" |
12301 | then : | |
12302 | if test x"$ac_arg" = x | |
12303 | then : | |
12304 | ac_cv_c_undeclared_builtin_options='none needed' | |
12305 | else $as_nop | |
12306 | ac_cv_c_undeclared_builtin_options=$ac_arg | |
b0cacab0 | 12307 | fi |
54445dc2 | 12308 | break |
57aa50d4 | 12309 | fi |
54445dc2 TT |
12310 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
12311 | fi | |
12312 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
12313 | done | |
12314 | CFLAGS=$ac_save_CFLAGS | |
12315 | ||
12316 | fi | |
12317 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 | |
12318 | printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } | |
12319 | case $ac_cv_c_undeclared_builtin_options in #( | |
12320 | 'cannot detect') : | |
12321 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
12322 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} | |
12323 | as_fn_error $? "cannot make $CC report undeclared builtins | |
12324 | See \`config.log' for more details" "$LINENO" 5; } ;; #( | |
12325 | 'none needed') : | |
12326 | ac_c_undeclared_builtin_options='' ;; #( | |
12327 | *) : | |
12328 | ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; | |
12329 | esac | |
b0cacab0 | 12330 | |
54445dc2 TT |
12331 | ac_fn_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h> |
12332 | " "$ac_c_undeclared_builtin_options" "CFLAGS" | |
12333 | if test "x$ac_cv_have_decl_llseek" = xyes | |
12334 | then : | |
d1154eb4 | 12335 | |
54445dc2 | 12336 | printf "%s\n" "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h |
b0cacab0 | 12337 | |
b0cacab0 | 12338 | fi |
54445dc2 | 12339 | ac_fn_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE |
57aa50d4 TT |
12340 | #define _LARGEFILE64_SOURCE |
12341 | #include <unistd.h> | |
54445dc2 TT |
12342 | " "$ac_c_undeclared_builtin_options" "CFLAGS" |
12343 | if test "x$ac_cv_have_decl_lseek64" = xyes | |
12344 | then : | |
d1154eb4 | 12345 | |
54445dc2 | 12346 | printf "%s\n" "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h |
b0cacab0 | 12347 | |
5598a968 EB |
12348 | fi |
12349 | ||
12350 | ac_fn_check_decl "$LINENO" "fsmap_sizeof" "ac_cv_have_decl_fsmap_sizeof" "#include <linux/fsmap.h> | |
12351 | " "$ac_c_undeclared_builtin_options" "CFLAGS" | |
12352 | if test "x$ac_cv_have_decl_fsmap_sizeof" = xyes | |
12353 | then : | |
12354 | ||
12355 | printf "%s\n" "#define HAVE_FSMAP_SIZEOF 1" >>confdefs.h | |
12356 | ||
b0cacab0 | 12357 | fi |
fed000ae MG |
12358 | # Check whether --enable-largefile was given. |
12359 | if test ${enable_largefile+y} | |
12360 | then : | |
12361 | enableval=$enable_largefile; | |
12362 | fi | |
12363 | ||
12364 | if test "$enable_largefile" != no; then | |
12365 | ||
12366 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 | |
12367 | printf %s "checking for special C compiler options needed for large files... " >&6; } | |
12368 | if test ${ac_cv_sys_largefile_CC+y} | |
12369 | then : | |
12370 | printf %s "(cached) " >&6 | |
12371 | else $as_nop | |
12372 | ac_cv_sys_largefile_CC=no | |
12373 | if test "$GCC" != yes; then | |
12374 | ac_save_CC=$CC | |
12375 | while :; do | |
12376 | # IRIX 6.2 and later do not support large files by default, | |
12377 | # so use the C compiler's -n32 option if that helps. | |
12378 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12379 | /* end confdefs.h. */ | |
12380 | #include <sys/types.h> | |
12381 | /* Check that off_t can represent 2**63 - 1 correctly. | |
12382 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
12383 | since some C++ compilers masquerading as C compilers | |
12384 | incorrectly reject 9223372036854775807. */ | |
12385 | #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) | |
12386 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
12387 | && LARGE_OFF_T % 2147483647 == 1) | |
12388 | ? 1 : -1]; | |
12389 | int | |
12390 | main (void) | |
12391 | { | |
12392 | ||
12393 | ; | |
12394 | return 0; | |
12395 | } | |
12396 | _ACEOF | |
12397 | if ac_fn_c_try_compile "$LINENO" | |
12398 | then : | |
12399 | break | |
12400 | fi | |
12401 | rm -f core conftest.err conftest.$ac_objext conftest.beam | |
12402 | CC="$CC -n32" | |
12403 | if ac_fn_c_try_compile "$LINENO" | |
12404 | then : | |
12405 | ac_cv_sys_largefile_CC=' -n32'; break | |
12406 | fi | |
12407 | rm -f core conftest.err conftest.$ac_objext conftest.beam | |
12408 | break | |
12409 | done | |
12410 | CC=$ac_save_CC | |
12411 | rm -f conftest.$ac_ext | |
12412 | fi | |
12413 | fi | |
12414 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 | |
12415 | printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; } | |
12416 | if test "$ac_cv_sys_largefile_CC" != no; then | |
12417 | CC=$CC$ac_cv_sys_largefile_CC | |
12418 | fi | |
12419 | ||
12420 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
12421 | printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } | |
12422 | if test ${ac_cv_sys_file_offset_bits+y} | |
12423 | then : | |
12424 | printf %s "(cached) " >&6 | |
12425 | else $as_nop | |
12426 | while :; do | |
12427 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12428 | /* end confdefs.h. */ | |
12429 | #include <sys/types.h> | |
12430 | /* Check that off_t can represent 2**63 - 1 correctly. | |
12431 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
12432 | since some C++ compilers masquerading as C compilers | |
12433 | incorrectly reject 9223372036854775807. */ | |
12434 | #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) | |
12435 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
12436 | && LARGE_OFF_T % 2147483647 == 1) | |
12437 | ? 1 : -1]; | |
12438 | int | |
12439 | main (void) | |
12440 | { | |
12441 | ||
12442 | ; | |
12443 | return 0; | |
12444 | } | |
12445 | _ACEOF | |
12446 | if ac_fn_c_try_compile "$LINENO" | |
12447 | then : | |
12448 | ac_cv_sys_file_offset_bits=no; break | |
12449 | fi | |
12450 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
12451 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12452 | /* end confdefs.h. */ | |
12453 | #define _FILE_OFFSET_BITS 64 | |
12454 | #include <sys/types.h> | |
12455 | /* Check that off_t can represent 2**63 - 1 correctly. | |
12456 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
12457 | since some C++ compilers masquerading as C compilers | |
12458 | incorrectly reject 9223372036854775807. */ | |
12459 | #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) | |
12460 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
12461 | && LARGE_OFF_T % 2147483647 == 1) | |
12462 | ? 1 : -1]; | |
12463 | int | |
12464 | main (void) | |
12465 | { | |
12466 | ||
12467 | ; | |
12468 | return 0; | |
12469 | } | |
12470 | _ACEOF | |
12471 | if ac_fn_c_try_compile "$LINENO" | |
12472 | then : | |
12473 | ac_cv_sys_file_offset_bits=64; break | |
12474 | fi | |
12475 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
12476 | ac_cv_sys_file_offset_bits=unknown | |
12477 | break | |
12478 | done | |
12479 | fi | |
12480 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 | |
12481 | printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; } | |
12482 | case $ac_cv_sys_file_offset_bits in #( | |
12483 | no | unknown) ;; | |
12484 | *) | |
12485 | printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h | |
12486 | ;; | |
12487 | esac | |
12488 | rm -rf conftest* | |
12489 | if test $ac_cv_sys_file_offset_bits = unknown; then | |
12490 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 | |
12491 | printf %s "checking for _LARGE_FILES value needed for large files... " >&6; } | |
12492 | if test ${ac_cv_sys_large_files+y} | |
12493 | then : | |
12494 | printf %s "(cached) " >&6 | |
12495 | else $as_nop | |
12496 | while :; do | |
12497 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12498 | /* end confdefs.h. */ | |
12499 | #include <sys/types.h> | |
12500 | /* Check that off_t can represent 2**63 - 1 correctly. | |
12501 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
12502 | since some C++ compilers masquerading as C compilers | |
12503 | incorrectly reject 9223372036854775807. */ | |
12504 | #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) | |
12505 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
12506 | && LARGE_OFF_T % 2147483647 == 1) | |
12507 | ? 1 : -1]; | |
12508 | int | |
12509 | main (void) | |
12510 | { | |
12511 | ||
12512 | ; | |
12513 | return 0; | |
12514 | } | |
12515 | _ACEOF | |
12516 | if ac_fn_c_try_compile "$LINENO" | |
12517 | then : | |
12518 | ac_cv_sys_large_files=no; break | |
12519 | fi | |
12520 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
12521 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12522 | /* end confdefs.h. */ | |
12523 | #define _LARGE_FILES 1 | |
12524 | #include <sys/types.h> | |
12525 | /* Check that off_t can represent 2**63 - 1 correctly. | |
12526 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
12527 | since some C++ compilers masquerading as C compilers | |
12528 | incorrectly reject 9223372036854775807. */ | |
12529 | #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) | |
12530 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
12531 | && LARGE_OFF_T % 2147483647 == 1) | |
12532 | ? 1 : -1]; | |
12533 | int | |
12534 | main (void) | |
12535 | { | |
12536 | ||
12537 | ; | |
12538 | return 0; | |
12539 | } | |
12540 | _ACEOF | |
12541 | if ac_fn_c_try_compile "$LINENO" | |
12542 | then : | |
12543 | ac_cv_sys_large_files=1; break | |
12544 | fi | |
12545 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
12546 | ac_cv_sys_large_files=unknown | |
12547 | break | |
12548 | done | |
12549 | fi | |
12550 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 | |
12551 | printf "%s\n" "$ac_cv_sys_large_files" >&6; } | |
12552 | case $ac_cv_sys_large_files in #( | |
12553 | no | unknown) ;; | |
12554 | *) | |
12555 | printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h | |
12556 | ;; | |
12557 | esac | |
12558 | rm -rf conftest* | |
12559 | fi | |
12560 | fi | |
12561 | ||
57aa50d4 TT |
12562 | # The cast to long int works around a bug in the HP C Compiler |
12563 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
12564 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
12565 | # This bug is HP SR number 8606223364. | |
54445dc2 TT |
12566 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 |
12567 | printf %s "checking size of short... " >&6; } | |
12568 | if test ${ac_cv_sizeof_short+y} | |
12569 | then : | |
12570 | printf %s "(cached) " >&6 | |
12571 | else $as_nop | |
12572 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default" | |
12573 | then : | |
12574 | ||
12575 | else $as_nop | |
57aa50d4 | 12576 | if test "$ac_cv_type_short" = yes; then |
54445dc2 TT |
12577 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
12578 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} | |
d6a4bcb5 TB |
12579 | as_fn_error 77 "cannot compute sizeof (short) |
12580 | See \`config.log' for more details" "$LINENO" 5; } | |
57aa50d4 TT |
12581 | else |
12582 | ac_cv_sizeof_short=0 | |
12583 | fi | |
07a0db15 | 12584 | fi |
b0cacab0 | 12585 | |
b0cacab0 | 12586 | fi |
54445dc2 TT |
12587 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 |
12588 | printf "%s\n" "$ac_cv_sizeof_short" >&6; } | |
e1052144 | 12589 | |
93636bde | 12590 | |
57aa50d4 | 12591 | |
54445dc2 | 12592 | printf "%s\n" "#define SIZEOF_SHORT $ac_cv_sizeof_short" >>confdefs.h |
57aa50d4 TT |
12593 | |
12594 | ||
12595 | # The cast to long int works around a bug in the HP C Compiler | |
12596 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
12597 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
12598 | # This bug is HP SR number 8606223364. | |
54445dc2 TT |
12599 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 |
12600 | printf %s "checking size of int... " >&6; } | |
12601 | if test ${ac_cv_sizeof_int+y} | |
12602 | then : | |
12603 | printf %s "(cached) " >&6 | |
12604 | else $as_nop | |
12605 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default" | |
12606 | then : | |
12607 | ||
12608 | else $as_nop | |
57aa50d4 | 12609 | if test "$ac_cv_type_int" = yes; then |
54445dc2 TT |
12610 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
12611 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} | |
d6a4bcb5 TB |
12612 | as_fn_error 77 "cannot compute sizeof (int) |
12613 | See \`config.log' for more details" "$LINENO" 5; } | |
57aa50d4 TT |
12614 | else |
12615 | ac_cv_sizeof_int=0 | |
12616 | fi | |
07a0db15 | 12617 | fi |
e1052144 | 12618 | |
b0cacab0 | 12619 | fi |
54445dc2 TT |
12620 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 |
12621 | printf "%s\n" "$ac_cv_sizeof_int" >&6; } | |
e1052144 | 12622 | |
93636bde | 12623 | |
57aa50d4 | 12624 | |
54445dc2 | 12625 | printf "%s\n" "#define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h |
b0cacab0 | 12626 | |
e1052144 | 12627 | |
57aa50d4 TT |
12628 | # The cast to long int works around a bug in the HP C Compiler |
12629 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
12630 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
12631 | # This bug is HP SR number 8606223364. | |
54445dc2 TT |
12632 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 |
12633 | printf %s "checking size of long... " >&6; } | |
12634 | if test ${ac_cv_sizeof_long+y} | |
12635 | then : | |
12636 | printf %s "(cached) " >&6 | |
12637 | else $as_nop | |
12638 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default" | |
12639 | then : | |
12640 | ||
12641 | else $as_nop | |
57aa50d4 | 12642 | if test "$ac_cv_type_long" = yes; then |
54445dc2 TT |
12643 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
12644 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} | |
d6a4bcb5 TB |
12645 | as_fn_error 77 "cannot compute sizeof (long) |
12646 | See \`config.log' for more details" "$LINENO" 5; } | |
29a5deed | 12647 | else |
57aa50d4 TT |
12648 | ac_cv_sizeof_long=0 |
12649 | fi | |
12650 | fi | |
39fd3d4f | 12651 | |
57aa50d4 | 12652 | fi |
54445dc2 TT |
12653 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 |
12654 | printf "%s\n" "$ac_cv_sizeof_long" >&6; } | |
39fd3d4f | 12655 | |
57aa50d4 TT |
12656 | |
12657 | ||
54445dc2 | 12658 | printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h |
57aa50d4 TT |
12659 | |
12660 | ||
12661 | # The cast to long int works around a bug in the HP C Compiler | |
12662 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
12663 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
12664 | # This bug is HP SR number 8606223364. | |
54445dc2 TT |
12665 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 |
12666 | printf %s "checking size of long long... " >&6; } | |
12667 | if test ${ac_cv_sizeof_long_long+y} | |
12668 | then : | |
12669 | printf %s "(cached) " >&6 | |
12670 | else $as_nop | |
12671 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default" | |
12672 | then : | |
12673 | ||
12674 | else $as_nop | |
57aa50d4 | 12675 | if test "$ac_cv_type_long_long" = yes; then |
54445dc2 TT |
12676 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
12677 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} | |
d6a4bcb5 TB |
12678 | as_fn_error 77 "cannot compute sizeof (long long) |
12679 | See \`config.log' for more details" "$LINENO" 5; } | |
39fd3d4f SJR |
12680 | else |
12681 | ac_cv_sizeof_long_long=0 | |
12682 | fi | |
12683 | fi | |
57aa50d4 | 12684 | |
39fd3d4f | 12685 | fi |
54445dc2 TT |
12686 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 |
12687 | printf "%s\n" "$ac_cv_sizeof_long_long" >&6; } | |
39fd3d4f SJR |
12688 | |
12689 | ||
12690 | ||
54445dc2 | 12691 | printf "%s\n" "#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long" >>confdefs.h |
39fd3d4f SJR |
12692 | |
12693 | ||
cc68e8a6 TT |
12694 | # The cast to long int works around a bug in the HP C Compiler |
12695 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
12696 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
12697 | # This bug is HP SR number 8606223364. | |
54445dc2 TT |
12698 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 |
12699 | printf %s "checking size of off_t... " >&6; } | |
12700 | if test ${ac_cv_sizeof_off_t+y} | |
12701 | then : | |
12702 | printf %s "(cached) " >&6 | |
12703 | else $as_nop | |
12704 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default" | |
12705 | then : | |
12706 | ||
12707 | else $as_nop | |
cc68e8a6 | 12708 | if test "$ac_cv_type_off_t" = yes; then |
54445dc2 TT |
12709 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
12710 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} | |
cc68e8a6 TT |
12711 | as_fn_error 77 "cannot compute sizeof (off_t) |
12712 | See \`config.log' for more details" "$LINENO" 5; } | |
12713 | else | |
12714 | ac_cv_sizeof_off_t=0 | |
12715 | fi | |
12716 | fi | |
12717 | ||
12718 | fi | |
54445dc2 TT |
12719 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 |
12720 | printf "%s\n" "$ac_cv_sizeof_off_t" >&6; } | |
cc68e8a6 TT |
12721 | |
12722 | ||
12723 | ||
54445dc2 | 12724 | printf "%s\n" "#define SIZEOF_OFF_T $ac_cv_sizeof_off_t" >>confdefs.h |
cc68e8a6 TT |
12725 | |
12726 | ||
2dd680f3 TT |
12727 | # The cast to long int works around a bug in the HP C Compiler |
12728 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
12729 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
12730 | # This bug is HP SR number 8606223364. | |
54445dc2 TT |
12731 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 |
12732 | printf %s "checking size of time_t... " >&6; } | |
12733 | if test ${ac_cv_sizeof_time_t+y} | |
12734 | then : | |
12735 | printf %s "(cached) " >&6 | |
12736 | else $as_nop | |
12737 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default" | |
12738 | then : | |
12739 | ||
12740 | else $as_nop | |
2dd680f3 | 12741 | if test "$ac_cv_type_time_t" = yes; then |
54445dc2 TT |
12742 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
12743 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} | |
2dd680f3 TT |
12744 | as_fn_error 77 "cannot compute sizeof (time_t) |
12745 | See \`config.log' for more details" "$LINENO" 5; } | |
12746 | else | |
12747 | ac_cv_sizeof_time_t=0 | |
12748 | fi | |
12749 | fi | |
12750 | ||
12751 | fi | |
54445dc2 TT |
12752 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 |
12753 | printf "%s\n" "$ac_cv_sizeof_time_t" >&6; } | |
2dd680f3 TT |
12754 | |
12755 | ||
12756 | ||
54445dc2 | 12757 | printf "%s\n" "#define SIZEOF_TIME_T $ac_cv_sizeof_time_t" >>confdefs.h |
2dd680f3 TT |
12758 | |
12759 | ||
39fd3d4f SJR |
12760 | SIZEOF_SHORT=$ac_cv_sizeof_short |
12761 | SIZEOF_INT=$ac_cv_sizeof_int | |
12762 | SIZEOF_LONG=$ac_cv_sizeof_long | |
12763 | SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long | |
cc68e8a6 | 12764 | SIZEOF_OFF_T=$ac_cv_sizeof_off_t |
2dd680f3 TT |
12765 | SIZEOF_TIME_T=$ac_cv_sizeof_time_t |
12766 | ||
cc68e8a6 | 12767 | |
39fd3d4f SJR |
12768 | |
12769 | ||
12770 | ||
12771 | ||
54445dc2 TT |
12772 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
12773 | printf %s "checking whether byte ordering is bigendian... " >&6; } | |
12774 | if test ${ac_cv_c_bigendian+y} | |
12775 | then : | |
12776 | printf %s "(cached) " >&6 | |
12777 | else $as_nop | |
39fd3d4f SJR |
12778 | ac_cv_c_bigendian=unknown |
12779 | # See if we're dealing with a universal compiler. | |
57aa50d4 | 12780 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
39fd3d4f SJR |
12781 | /* end confdefs.h. */ |
12782 | #ifndef __APPLE_CC__ | |
12783 | not a universal capable compiler | |
12784 | #endif | |
12785 | typedef int dummy; | |
12786 | ||
12787 | _ACEOF | |
54445dc2 TT |
12788 | if ac_fn_c_try_compile "$LINENO" |
12789 | then : | |
39fd3d4f SJR |
12790 | |
12791 | # Check for potential -arch flags. It is not universal unless | |
57aa50d4 TT |
12792 | # there are at least two -arch flags with different values. |
12793 | ac_arch= | |
12794 | ac_prev= | |
12795 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | |
12796 | if test -n "$ac_prev"; then | |
12797 | case $ac_word in | |
12798 | i?86 | x86_64 | ppc | ppc64) | |
12799 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | |
12800 | ac_arch=$ac_word | |
12801 | else | |
12802 | ac_cv_c_bigendian=universal | |
12803 | break | |
12804 | fi | |
12805 | ;; | |
12806 | esac | |
12807 | ac_prev= | |
12808 | elif test "x$ac_word" = "x-arch"; then | |
12809 | ac_prev=arch | |
12810 | fi | |
12811 | done | |
39fd3d4f | 12812 | fi |
54445dc2 | 12813 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
39fd3d4f SJR |
12814 | if test $ac_cv_c_bigendian = unknown; then |
12815 | # See if sys/param.h defines the BYTE_ORDER macro. | |
57aa50d4 | 12816 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
39fd3d4f SJR |
12817 | /* end confdefs.h. */ |
12818 | #include <sys/types.h> | |
12819 | #include <sys/param.h> | |
12820 | ||
12821 | int | |
54445dc2 | 12822 | main (void) |
39fd3d4f SJR |
12823 | { |
12824 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ | |
12825 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | |
12826 | && LITTLE_ENDIAN) | |
12827 | bogus endian macros | |
12828 | #endif | |
12829 | ||
12830 | ; | |
12831 | return 0; | |
12832 | } | |
12833 | _ACEOF | |
54445dc2 TT |
12834 | if ac_fn_c_try_compile "$LINENO" |
12835 | then : | |
39fd3d4f | 12836 | # It does; now see whether it defined to BIG_ENDIAN or not. |
57aa50d4 | 12837 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
39fd3d4f SJR |
12838 | /* end confdefs.h. */ |
12839 | #include <sys/types.h> | |
12840 | #include <sys/param.h> | |
12841 | ||
b0cacab0 | 12842 | int |
54445dc2 | 12843 | main (void) |
07a0db15 | 12844 | { |
39fd3d4f SJR |
12845 | #if BYTE_ORDER != BIG_ENDIAN |
12846 | not big endian | |
12847 | #endif | |
b0cacab0 TT |
12848 | |
12849 | ; | |
12850 | return 0; | |
07a0db15 | 12851 | } |
b0cacab0 | 12852 | _ACEOF |
54445dc2 TT |
12853 | if ac_fn_c_try_compile "$LINENO" |
12854 | then : | |
39fd3d4f | 12855 | ac_cv_c_bigendian=yes |
54445dc2 | 12856 | else $as_nop |
57aa50d4 | 12857 | ac_cv_c_bigendian=no |
fc6d9d51 | 12858 | fi |
54445dc2 | 12859 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
39fd3d4f | 12860 | fi |
54445dc2 | 12861 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
39fd3d4f SJR |
12862 | fi |
12863 | if test $ac_cv_c_bigendian = unknown; then | |
12864 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | |
57aa50d4 | 12865 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b0cacab0 | 12866 | /* end confdefs.h. */ |
39fd3d4f | 12867 | #include <limits.h> |
877eb6d9 | 12868 | |
b0cacab0 | 12869 | int |
54445dc2 | 12870 | main (void) |
b0cacab0 | 12871 | { |
39fd3d4f SJR |
12872 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
12873 | bogus endian macros | |
12874 | #endif | |
b0cacab0 TT |
12875 | |
12876 | ; | |
12877 | return 0; | |
12878 | } | |
b0cacab0 | 12879 | _ACEOF |
54445dc2 TT |
12880 | if ac_fn_c_try_compile "$LINENO" |
12881 | then : | |
57aa50d4 TT |
12882 | # It does; now see whether it defined to _BIG_ENDIAN or not. |
12883 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b0cacab0 | 12884 | /* end confdefs.h. */ |
39fd3d4f | 12885 | #include <limits.h> |
877eb6d9 | 12886 | |
b0cacab0 | 12887 | int |
54445dc2 | 12888 | main (void) |
b0cacab0 | 12889 | { |
39fd3d4f SJR |
12890 | #ifndef _BIG_ENDIAN |
12891 | not big endian | |
12892 | #endif | |
b0cacab0 TT |
12893 | |
12894 | ; | |
12895 | return 0; | |
12896 | } | |
12897 | _ACEOF | |
54445dc2 TT |
12898 | if ac_fn_c_try_compile "$LINENO" |
12899 | then : | |
877eb6d9 | 12900 | ac_cv_c_bigendian=yes |
54445dc2 | 12901 | else $as_nop |
57aa50d4 | 12902 | ac_cv_c_bigendian=no |
877eb6d9 | 12903 | fi |
54445dc2 | 12904 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
39fd3d4f | 12905 | fi |
54445dc2 | 12906 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
39fd3d4f SJR |
12907 | fi |
12908 | if test $ac_cv_c_bigendian = unknown; then | |
12909 | # Compile a test program. | |
54445dc2 TT |
12910 | if test "$cross_compiling" = yes |
12911 | then : | |
39fd3d4f | 12912 | # Try to guess by grepping values from an object file. |
57aa50d4 | 12913 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b0cacab0 | 12914 | /* end confdefs.h. */ |
54445dc2 | 12915 | unsigned short int ascii_mm[] = |
39fd3d4f | 12916 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
54445dc2 | 12917 | unsigned short int ascii_ii[] = |
39fd3d4f SJR |
12918 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
12919 | int use_ascii (int i) { | |
12920 | return ascii_mm[i] + ascii_ii[i]; | |
12921 | } | |
54445dc2 | 12922 | unsigned short int ebcdic_ii[] = |
39fd3d4f | 12923 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
54445dc2 | 12924 | unsigned short int ebcdic_mm[] = |
39fd3d4f SJR |
12925 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
12926 | int use_ebcdic (int i) { | |
12927 | return ebcdic_mm[i] + ebcdic_ii[i]; | |
12928 | } | |
12929 | extern int foo; | |
12930 | ||
b0cacab0 | 12931 | int |
54445dc2 | 12932 | main (void) |
b0cacab0 | 12933 | { |
39fd3d4f | 12934 | return use_ascii (foo) == use_ebcdic (foo); |
b0cacab0 TT |
12935 | ; |
12936 | return 0; | |
12937 | } | |
12938 | _ACEOF | |
54445dc2 TT |
12939 | if ac_fn_c_try_compile "$LINENO" |
12940 | then : | |
39fd3d4f SJR |
12941 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then |
12942 | ac_cv_c_bigendian=yes | |
12943 | fi | |
12944 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
12945 | if test "$ac_cv_c_bigendian" = unknown; then | |
12946 | ac_cv_c_bigendian=no | |
12947 | else | |
12948 | # finding both strings is unlikely to happen, but who knows? | |
12949 | ac_cv_c_bigendian=unknown | |
12950 | fi | |
12951 | fi | |
b0cacab0 | 12952 | fi |
54445dc2 TT |
12953 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
12954 | else $as_nop | |
57aa50d4 | 12955 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b0cacab0 | 12956 | /* end confdefs.h. */ |
e1052144 | 12957 | $ac_includes_default |
b0cacab0 | 12958 | int |
54445dc2 | 12959 | main (void) |
b0cacab0 | 12960 | { |
e1052144 | 12961 | |
39fd3d4f SJR |
12962 | /* Are we little or big endian? From Harbison&Steele. */ |
12963 | union | |
12964 | { | |
12965 | long int l; | |
12966 | char c[sizeof (long int)]; | |
12967 | } u; | |
12968 | u.l = 1; | |
12969 | return u.c[sizeof (long int) - 1] == 1; | |
e1052144 TT |
12970 | |
12971 | ; | |
12972 | return 0; | |
877eb6d9 | 12973 | } |
b0cacab0 | 12974 | _ACEOF |
54445dc2 TT |
12975 | if ac_fn_c_try_run "$LINENO" |
12976 | then : | |
877eb6d9 | 12977 | ac_cv_c_bigendian=no |
54445dc2 | 12978 | else $as_nop |
57aa50d4 | 12979 | ac_cv_c_bigendian=yes |
877eb6d9 | 12980 | fi |
57aa50d4 TT |
12981 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
12982 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
877eb6d9 | 12983 | fi |
e1052144 | 12984 | |
39fd3d4f | 12985 | fi |
877eb6d9 | 12986 | fi |
54445dc2 TT |
12987 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
12988 | printf "%s\n" "$ac_cv_c_bigendian" >&6; } | |
39fd3d4f SJR |
12989 | case $ac_cv_c_bigendian in #( |
12990 | yes) | |
54445dc2 | 12991 | printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h |
39fd3d4f SJR |
12992 | ;; #( |
12993 | no) | |
12994 | ;; #( | |
12995 | universal) | |
07a0db15 | 12996 | |
54445dc2 | 12997 | printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
39fd3d4f SJR |
12998 | |
12999 | ;; #( | |
13000 | *) | |
d6a4bcb5 | 13001 | as_fn_error $? "unknown endianness |
57aa50d4 | 13002 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
39fd3d4f | 13003 | esac |
877eb6d9 | 13004 | |
91f04685 CQ |
13005 | if test $cross_compiling = no; then |
13006 | BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh | |
13007 | else | |
13008 | CROSS_COMPILE="1" BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh | |
13009 | fi | |
4ea7ea00 TT |
13010 | ASM_TYPES_HEADER=./asm_types.h |
13011 | ||
488c75a6 TT |
13012 | echo "/* These defines are needed for the public ext2fs.h header file */" \ |
13013 | > public_config.h | |
13014 | if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then | |
13015 | uniq tmp_config.$$ >> public_config.h | |
13016 | else | |
13017 | echo "#undef HAVE_SYS_TYPES_H" >> public_config.h | |
13018 | fi | |
13019 | if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then | |
13020 | uniq tmp_config.$$ >> public_config.h | |
13021 | else | |
13022 | echo "#undef WORDS_BIGENDIAN" >> public_config.h | |
13023 | fi | |
13024 | rm -f tmp_config.$$ | |
13025 | PUBLIC_CONFIG_HEADER=./public_config.h | |
13026 | ||
54445dc2 TT |
13027 | ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default" |
13028 | if test "x$ac_cv_header_inttypes_h" = xyes | |
13029 | then : | |
13030 | printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h | |
b0cacab0 TT |
13031 | |
13032 | fi | |
13033 | ||
57aa50d4 | 13034 | ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default" |
54445dc2 TT |
13035 | if test "x$ac_cv_type_intptr_t" = xyes |
13036 | then : | |
b0cacab0 | 13037 | |
54445dc2 | 13038 | printf "%s\n" "#define HAVE_INTPTR_T 1" >>confdefs.h |
0c193f82 | 13039 | |
d2ee56d8 | 13040 | |
0c193f82 TT |
13041 | fi |
13042 | ||
54445dc2 TT |
13043 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5 |
13044 | printf %s "checking whether struct stat has a st_flags field... " >&6; } | |
13045 | if test ${e2fsprogs_cv_struct_st_flags+y} | |
13046 | then : | |
13047 | printf %s "(cached) " >&6 | |
13048 | else $as_nop | |
57aa50d4 | 13049 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b0cacab0 | 13050 | /* end confdefs.h. */ |
50e1e10f | 13051 | #include <sys/stat.h> |
b0cacab0 | 13052 | int |
54445dc2 | 13053 | main (void) |
b0cacab0 | 13054 | { |
50e1e10f | 13055 | struct stat stat; stat.st_flags = 0; |
b0cacab0 TT |
13056 | ; |
13057 | return 0; | |
13058 | } | |
13059 | _ACEOF | |
54445dc2 TT |
13060 | if ac_fn_c_try_compile "$LINENO" |
13061 | then : | |
50e1e10f | 13062 | e2fsprogs_cv_struct_st_flags=yes |
54445dc2 | 13063 | else $as_nop |
57aa50d4 | 13064 | e2fsprogs_cv_struct_st_flags=no |
50e1e10f | 13065 | fi |
54445dc2 TT |
13066 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
13067 | fi | |
13068 | ||
13069 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5 | |
13070 | printf "%s\n" "$e2fsprogs_cv_struct_st_flags" >&6; } | |
13071 | if test "$e2fsprogs_cv_struct_st_flags" = yes; then | |
13072 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5 | |
13073 | printf %s "checking whether st_flags field is useful... " >&6; } | |
13074 | if test ${e2fsprogs_cv_struct_st_flags_immut+y} | |
13075 | then : | |
13076 | printf %s "(cached) " >&6 | |
13077 | else $as_nop | |
13078 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13079 | /* end confdefs.h. */ | |
13080 | #include <sys/stat.h> | |
13081 | int | |
13082 | main (void) | |
13083 | { | |
13084 | struct stat stat; stat.st_flags |= UF_IMMUTABLE; | |
13085 | ; | |
13086 | return 0; | |
13087 | } | |
13088 | _ACEOF | |
13089 | if ac_fn_c_try_compile "$LINENO" | |
13090 | then : | |
13091 | e2fsprogs_cv_struct_st_flags_immut=yes | |
13092 | else $as_nop | |
13093 | e2fsprogs_cv_struct_st_flags_immut=no | |
13094 | fi | |
13095 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
13096 | fi | |
13097 | ||
13098 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5 | |
13099 | printf "%s\n" "$e2fsprogs_cv_struct_st_flags_immut" >&6; } | |
13100 | if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then | |
13101 | ||
13102 | printf "%s\n" "#define HAVE_STAT_FLAGS 1" >>confdefs.h | |
13103 | ||
13104 | fi | |
13105 | fi | |
13106 | ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h> | |
13107 | #include <sys/socket.h> | |
13108 | " | |
13109 | if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes | |
13110 | then : | |
13111 | ||
13112 | printf "%s\n" "#define HAVE_SA_LEN 1" >>confdefs.h | |
13113 | ||
13114 | fi | |
13115 | ||
13116 | if test -n "$BLKID_CMT"; then | |
13117 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid_probe_get_topology in -lblkid" >&5 | |
13118 | printf %s "checking for blkid_probe_get_topology in -lblkid... " >&6; } | |
13119 | if test ${ac_cv_lib_blkid_blkid_probe_get_topology+y} | |
13120 | then : | |
13121 | printf %s "(cached) " >&6 | |
13122 | else $as_nop | |
13123 | ac_check_lib_save_LIBS=$LIBS | |
13124 | LIBS="-lblkid $LIBS" | |
13125 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13126 | /* end confdefs.h. */ | |
13127 | ||
13128 | /* Override any GCC internal prototype to avoid an error. | |
13129 | Use char because int might match the return type of a GCC | |
13130 | builtin and then its argument prototype would still apply. */ | |
13131 | char blkid_probe_get_topology (); | |
13132 | int | |
13133 | main (void) | |
13134 | { | |
13135 | return blkid_probe_get_topology (); | |
13136 | ; | |
13137 | return 0; | |
13138 | } | |
13139 | _ACEOF | |
13140 | if ac_fn_c_try_link "$LINENO" | |
13141 | then : | |
13142 | ac_cv_lib_blkid_blkid_probe_get_topology=yes | |
13143 | else $as_nop | |
13144 | ac_cv_lib_blkid_blkid_probe_get_topology=no | |
13145 | fi | |
13146 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ | |
13147 | conftest$ac_exeext conftest.$ac_ext | |
13148 | LIBS=$ac_check_lib_save_LIBS | |
13149 | fi | |
13150 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_probe_get_topology" >&5 | |
13151 | printf "%s\n" "$ac_cv_lib_blkid_blkid_probe_get_topology" >&6; } | |
13152 | if test "x$ac_cv_lib_blkid_blkid_probe_get_topology" = xyes | |
13153 | then : | |
13154 | ||
13155 | printf "%s\n" "#define HAVE_BLKID_PROBE_GET_TOPOLOGY 1" >>confdefs.h | |
13156 | ||
13157 | fi | |
13158 | ||
13159 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid_topology_get_dax in -lblkid" >&5 | |
13160 | printf %s "checking for blkid_topology_get_dax in -lblkid... " >&6; } | |
13161 | if test ${ac_cv_lib_blkid_blkid_topology_get_dax+y} | |
13162 | then : | |
13163 | printf %s "(cached) " >&6 | |
13164 | else $as_nop | |
13165 | ac_check_lib_save_LIBS=$LIBS | |
13166 | LIBS="-lblkid $LIBS" | |
13167 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13168 | /* end confdefs.h. */ | |
13169 | ||
13170 | /* Override any GCC internal prototype to avoid an error. | |
13171 | Use char because int might match the return type of a GCC | |
13172 | builtin and then its argument prototype would still apply. */ | |
13173 | char blkid_topology_get_dax (); | |
13174 | int | |
13175 | main (void) | |
13176 | { | |
13177 | return blkid_topology_get_dax (); | |
13178 | ; | |
13179 | return 0; | |
13180 | } | |
13181 | _ACEOF | |
13182 | if ac_fn_c_try_link "$LINENO" | |
13183 | then : | |
13184 | ac_cv_lib_blkid_blkid_topology_get_dax=yes | |
13185 | else $as_nop | |
13186 | ac_cv_lib_blkid_blkid_topology_get_dax=no | |
13187 | fi | |
13188 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ | |
13189 | conftest$ac_exeext conftest.$ac_ext | |
13190 | LIBS=$ac_check_lib_save_LIBS | |
13191 | fi | |
13192 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_topology_get_dax" >&5 | |
13193 | printf "%s\n" "$ac_cv_lib_blkid_blkid_topology_get_dax" >&6; } | |
13194 | if test "x$ac_cv_lib_blkid_blkid_topology_get_dax" = xyes | |
13195 | then : | |
13196 | ||
13197 | printf "%s\n" "#define HAVE_BLKID_TOPOLOGY_GET_DAX 1" >>confdefs.h | |
13198 | ||
13199 | fi | |
13200 | ||
13201 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid_probe_enable_partitions in -lblkid" >&5 | |
13202 | printf %s "checking for blkid_probe_enable_partitions in -lblkid... " >&6; } | |
13203 | if test ${ac_cv_lib_blkid_blkid_probe_enable_partitions+y} | |
13204 | then : | |
13205 | printf %s "(cached) " >&6 | |
13206 | else $as_nop | |
13207 | ac_check_lib_save_LIBS=$LIBS | |
13208 | LIBS="-lblkid $LIBS" | |
13209 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13210 | /* end confdefs.h. */ | |
13211 | ||
13212 | /* Override any GCC internal prototype to avoid an error. | |
13213 | Use char because int might match the return type of a GCC | |
13214 | builtin and then its argument prototype would still apply. */ | |
13215 | char blkid_probe_enable_partitions (); | |
13216 | int | |
13217 | main (void) | |
13218 | { | |
13219 | return blkid_probe_enable_partitions (); | |
13220 | ; | |
13221 | return 0; | |
13222 | } | |
13223 | _ACEOF | |
13224 | if ac_fn_c_try_link "$LINENO" | |
13225 | then : | |
13226 | ac_cv_lib_blkid_blkid_probe_enable_partitions=yes | |
13227 | else $as_nop | |
13228 | ac_cv_lib_blkid_blkid_probe_enable_partitions=no | |
13229 | fi | |
13230 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ | |
13231 | conftest$ac_exeext conftest.$ac_ext | |
13232 | LIBS=$ac_check_lib_save_LIBS | |
13233 | fi | |
13234 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_probe_enable_partitions" >&5 | |
13235 | printf "%s\n" "$ac_cv_lib_blkid_blkid_probe_enable_partitions" >&6; } | |
13236 | if test "x$ac_cv_lib_blkid_blkid_probe_enable_partitions" = xyes | |
13237 | then : | |
13238 | ||
13239 | printf "%s\n" "#define HAVE_BLKID_PROBE_ENABLE_PARTITIONS 1" >>confdefs.h | |
13240 | ||
13241 | fi | |
13242 | ||
13243 | fi | |
13244 | if test -n "$DLOPEN_LIB" ; then | |
13245 | ac_cv_func_dlopen=yes | |
13246 | fi | |
13247 | ac_fn_c_check_func "$LINENO" "__secure_getenv" "ac_cv_func___secure_getenv" | |
13248 | if test "x$ac_cv_func___secure_getenv" = xyes | |
13249 | then : | |
13250 | printf "%s\n" "#define HAVE___SECURE_GETENV 1" >>confdefs.h | |
13251 | ||
13252 | fi | |
13253 | ac_fn_c_check_func "$LINENO" "add_key" "ac_cv_func_add_key" | |
13254 | if test "x$ac_cv_func_add_key" = xyes | |
13255 | then : | |
13256 | printf "%s\n" "#define HAVE_ADD_KEY 1" >>confdefs.h | |
13257 | ||
13258 | fi | |
13259 | ac_fn_c_check_func "$LINENO" "backtrace" "ac_cv_func_backtrace" | |
13260 | if test "x$ac_cv_func_backtrace" = xyes | |
13261 | then : | |
13262 | printf "%s\n" "#define HAVE_BACKTRACE 1" >>confdefs.h | |
13263 | ||
13264 | fi | |
13265 | ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags" | |
13266 | if test "x$ac_cv_func_chflags" = xyes | |
13267 | then : | |
13268 | printf "%s\n" "#define HAVE_CHFLAGS 1" >>confdefs.h | |
13269 | ||
13270 | fi | |
13271 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | |
13272 | if test "x$ac_cv_func_dlopen" = xyes | |
13273 | then : | |
13274 | printf "%s\n" "#define HAVE_DLOPEN 1" >>confdefs.h | |
13275 | ||
13276 | fi | |
13277 | ac_fn_c_check_func "$LINENO" "fadvise64" "ac_cv_func_fadvise64" | |
13278 | if test "x$ac_cv_func_fadvise64" = xyes | |
13279 | then : | |
13280 | printf "%s\n" "#define HAVE_FADVISE64 1" >>confdefs.h | |
13281 | ||
13282 | fi | |
13283 | ac_fn_c_check_func "$LINENO" "fallocate" "ac_cv_func_fallocate" | |
13284 | if test "x$ac_cv_func_fallocate" = xyes | |
13285 | then : | |
13286 | printf "%s\n" "#define HAVE_FALLOCATE 1" >>confdefs.h | |
13287 | ||
13288 | fi | |
13289 | ac_fn_c_check_func "$LINENO" "fallocate64" "ac_cv_func_fallocate64" | |
13290 | if test "x$ac_cv_func_fallocate64" = xyes | |
13291 | then : | |
13292 | printf "%s\n" "#define HAVE_FALLOCATE64 1" >>confdefs.h | |
13293 | ||
13294 | fi | |
13295 | ac_fn_c_check_func "$LINENO" "fchown" "ac_cv_func_fchown" | |
13296 | if test "x$ac_cv_func_fchown" = xyes | |
13297 | then : | |
13298 | printf "%s\n" "#define HAVE_FCHOWN 1" >>confdefs.h | |
13299 | ||
13300 | fi | |
13301 | ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl" | |
13302 | if test "x$ac_cv_func_fcntl" = xyes | |
13303 | then : | |
13304 | printf "%s\n" "#define HAVE_FCNTL 1" >>confdefs.h | |
13305 | ||
13306 | fi | |
13307 | ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync" | |
13308 | if test "x$ac_cv_func_fdatasync" = xyes | |
13309 | then : | |
13310 | printf "%s\n" "#define HAVE_FDATASYNC 1" >>confdefs.h | |
13311 | ||
13312 | fi | |
13313 | ac_fn_c_check_func "$LINENO" "fstat64" "ac_cv_func_fstat64" | |
13314 | if test "x$ac_cv_func_fstat64" = xyes | |
13315 | then : | |
13316 | printf "%s\n" "#define HAVE_FSTAT64 1" >>confdefs.h | |
13317 | ||
13318 | fi | |
13319 | ac_fn_c_check_func "$LINENO" "fsync" "ac_cv_func_fsync" | |
13320 | if test "x$ac_cv_func_fsync" = xyes | |
13321 | then : | |
13322 | printf "%s\n" "#define HAVE_FSYNC 1" >>confdefs.h | |
13323 | ||
13324 | fi | |
13325 | ac_fn_c_check_func "$LINENO" "ftruncate64" "ac_cv_func_ftruncate64" | |
13326 | if test "x$ac_cv_func_ftruncate64" = xyes | |
13327 | then : | |
13328 | printf "%s\n" "#define HAVE_FTRUNCATE64 1" >>confdefs.h | |
13329 | ||
13330 | fi | |
13331 | ac_fn_c_check_func "$LINENO" "futimes" "ac_cv_func_futimes" | |
13332 | if test "x$ac_cv_func_futimes" = xyes | |
13333 | then : | |
13334 | printf "%s\n" "#define HAVE_FUTIMES 1" >>confdefs.h | |
13335 | ||
13336 | fi | |
13337 | ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd" | |
13338 | if test "x$ac_cv_func_getcwd" = xyes | |
13339 | then : | |
13340 | printf "%s\n" "#define HAVE_GETCWD 1" >>confdefs.h | |
13341 | ||
13342 | fi | |
13343 | ac_fn_c_check_func "$LINENO" "getdtablesize" "ac_cv_func_getdtablesize" | |
13344 | if test "x$ac_cv_func_getdtablesize" = xyes | |
13345 | then : | |
13346 | printf "%s\n" "#define HAVE_GETDTABLESIZE 1" >>confdefs.h | |
13347 | ||
13348 | fi | |
13349 | ac_fn_c_check_func "$LINENO" "getentropy" "ac_cv_func_getentropy" | |
13350 | if test "x$ac_cv_func_getentropy" = xyes | |
13351 | then : | |
13352 | printf "%s\n" "#define HAVE_GETENTROPY 1" >>confdefs.h | |
13353 | ||
13354 | fi | |
13355 | ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname" | |
13356 | if test "x$ac_cv_func_gethostname" = xyes | |
13357 | then : | |
13358 | printf "%s\n" "#define HAVE_GETHOSTNAME 1" >>confdefs.h | |
13359 | ||
13360 | fi | |
13361 | ac_fn_c_check_func "$LINENO" "getmntinfo" "ac_cv_func_getmntinfo" | |
13362 | if test "x$ac_cv_func_getmntinfo" = xyes | |
13363 | then : | |
13364 | printf "%s\n" "#define HAVE_GETMNTINFO 1" >>confdefs.h | |
13365 | ||
13366 | fi | |
13367 | ac_fn_c_check_func "$LINENO" "getpwuid_r" "ac_cv_func_getpwuid_r" | |
13368 | if test "x$ac_cv_func_getpwuid_r" = xyes | |
13369 | then : | |
13370 | printf "%s\n" "#define HAVE_GETPWUID_R 1" >>confdefs.h | |
13371 | ||
13372 | fi | |
13373 | ac_fn_c_check_func "$LINENO" "getrandom" "ac_cv_func_getrandom" | |
13374 | if test "x$ac_cv_func_getrandom" = xyes | |
13375 | then : | |
13376 | printf "%s\n" "#define HAVE_GETRANDOM 1" >>confdefs.h | |
13377 | ||
13378 | fi | |
13379 | ac_fn_c_check_func "$LINENO" "getrlimit" "ac_cv_func_getrlimit" | |
13380 | if test "x$ac_cv_func_getrlimit" = xyes | |
13381 | then : | |
13382 | printf "%s\n" "#define HAVE_GETRLIMIT 1" >>confdefs.h | |
13383 | ||
13384 | fi | |
13385 | ac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage" | |
13386 | if test "x$ac_cv_func_getrusage" = xyes | |
13387 | then : | |
13388 | printf "%s\n" "#define HAVE_GETRUSAGE 1" >>confdefs.h | |
13389 | ||
13390 | fi | |
13391 | ac_fn_c_check_func "$LINENO" "jrand48" "ac_cv_func_jrand48" | |
13392 | if test "x$ac_cv_func_jrand48" = xyes | |
13393 | then : | |
13394 | printf "%s\n" "#define HAVE_JRAND48 1" >>confdefs.h | |
13395 | ||
13396 | fi | |
13397 | ac_fn_c_check_func "$LINENO" "keyctl" "ac_cv_func_keyctl" | |
13398 | if test "x$ac_cv_func_keyctl" = xyes | |
13399 | then : | |
13400 | printf "%s\n" "#define HAVE_KEYCTL 1" >>confdefs.h | |
13401 | ||
13402 | fi | |
13403 | ac_fn_c_check_func "$LINENO" "llistxattr" "ac_cv_func_llistxattr" | |
13404 | if test "x$ac_cv_func_llistxattr" = xyes | |
13405 | then : | |
13406 | printf "%s\n" "#define HAVE_LLISTXATTR 1" >>confdefs.h | |
13407 | ||
13408 | fi | |
13409 | ac_fn_c_check_func "$LINENO" "llseek" "ac_cv_func_llseek" | |
13410 | if test "x$ac_cv_func_llseek" = xyes | |
13411 | then : | |
13412 | printf "%s\n" "#define HAVE_LLSEEK 1" >>confdefs.h | |
13413 | ||
13414 | fi | |
13415 | ac_fn_c_check_func "$LINENO" "lseek64" "ac_cv_func_lseek64" | |
13416 | if test "x$ac_cv_func_lseek64" = xyes | |
13417 | then : | |
13418 | printf "%s\n" "#define HAVE_LSEEK64 1" >>confdefs.h | |
13419 | ||
13420 | fi | |
13421 | ac_fn_c_check_func "$LINENO" "mallinfo" "ac_cv_func_mallinfo" | |
13422 | if test "x$ac_cv_func_mallinfo" = xyes | |
13423 | then : | |
13424 | printf "%s\n" "#define HAVE_MALLINFO 1" >>confdefs.h | |
13425 | ||
13426 | fi | |
13427 | ac_fn_c_check_func "$LINENO" "mallinfo2" "ac_cv_func_mallinfo2" | |
13428 | if test "x$ac_cv_func_mallinfo2" = xyes | |
13429 | then : | |
13430 | printf "%s\n" "#define HAVE_MALLINFO2 1" >>confdefs.h | |
13431 | ||
13432 | fi | |
13433 | ac_fn_c_check_func "$LINENO" "mbstowcs" "ac_cv_func_mbstowcs" | |
13434 | if test "x$ac_cv_func_mbstowcs" = xyes | |
13435 | then : | |
13436 | printf "%s\n" "#define HAVE_MBSTOWCS 1" >>confdefs.h | |
13437 | ||
13438 | fi | |
13439 | ac_fn_c_check_func "$LINENO" "memalign" "ac_cv_func_memalign" | |
13440 | if test "x$ac_cv_func_memalign" = xyes | |
13441 | then : | |
13442 | printf "%s\n" "#define HAVE_MEMALIGN 1" >>confdefs.h | |
13443 | ||
13444 | fi | |
13445 | ac_fn_c_check_func "$LINENO" "mempcpy" "ac_cv_func_mempcpy" | |
13446 | if test "x$ac_cv_func_mempcpy" = xyes | |
13447 | then : | |
13448 | printf "%s\n" "#define HAVE_MEMPCPY 1" >>confdefs.h | |
13449 | ||
13450 | fi | |
13451 | ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap" | |
13452 | if test "x$ac_cv_func_mmap" = xyes | |
13453 | then : | |
13454 | printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h | |
13455 | ||
13456 | fi | |
13457 | ac_fn_c_check_func "$LINENO" "msync" "ac_cv_func_msync" | |
13458 | if test "x$ac_cv_func_msync" = xyes | |
13459 | then : | |
13460 | printf "%s\n" "#define HAVE_MSYNC 1" >>confdefs.h | |
13461 | ||
13462 | fi | |
13463 | ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep" | |
13464 | if test "x$ac_cv_func_nanosleep" = xyes | |
13465 | then : | |
13466 | printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h | |
13467 | ||
13468 | fi | |
13469 | ac_fn_c_check_func "$LINENO" "open64" "ac_cv_func_open64" | |
13470 | if test "x$ac_cv_func_open64" = xyes | |
13471 | then : | |
13472 | printf "%s\n" "#define HAVE_OPEN64 1" >>confdefs.h | |
13473 | ||
13474 | fi | |
13475 | ac_fn_c_check_func "$LINENO" "pathconf" "ac_cv_func_pathconf" | |
13476 | if test "x$ac_cv_func_pathconf" = xyes | |
13477 | then : | |
13478 | printf "%s\n" "#define HAVE_PATHCONF 1" >>confdefs.h | |
13479 | ||
13480 | fi | |
13481 | ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise" | |
13482 | if test "x$ac_cv_func_posix_fadvise" = xyes | |
13483 | then : | |
13484 | printf "%s\n" "#define HAVE_POSIX_FADVISE 1" >>confdefs.h | |
13485 | ||
50e1e10f | 13486 | fi |
54445dc2 TT |
13487 | ac_fn_c_check_func "$LINENO" "posix_fadvise64" "ac_cv_func_posix_fadvise64" |
13488 | if test "x$ac_cv_func_posix_fadvise64" = xyes | |
13489 | then : | |
13490 | printf "%s\n" "#define HAVE_POSIX_FADVISE64 1" >>confdefs.h | |
50e1e10f | 13491 | |
84ea6e70 | 13492 | fi |
54445dc2 TT |
13493 | ac_fn_c_check_func "$LINENO" "posix_memalign" "ac_cv_func_posix_memalign" |
13494 | if test "x$ac_cv_func_posix_memalign" = xyes | |
13495 | then : | |
13496 | printf "%s\n" "#define HAVE_POSIX_MEMALIGN 1" >>confdefs.h | |
13497 | ||
84ea6e70 | 13498 | fi |
54445dc2 TT |
13499 | ac_fn_c_check_func "$LINENO" "prctl" "ac_cv_func_prctl" |
13500 | if test "x$ac_cv_func_prctl" = xyes | |
13501 | then : | |
13502 | printf "%s\n" "#define HAVE_PRCTL 1" >>confdefs.h | |
e1052144 | 13503 | |
54445dc2 TT |
13504 | fi |
13505 | ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread" | |
13506 | if test "x$ac_cv_func_pread" = xyes | |
13507 | then : | |
13508 | printf "%s\n" "#define HAVE_PREAD 1" >>confdefs.h | |
d1154eb4 | 13509 | |
54445dc2 TT |
13510 | fi |
13511 | ac_fn_c_check_func "$LINENO" "pwrite" "ac_cv_func_pwrite" | |
13512 | if test "x$ac_cv_func_pwrite" = xyes | |
13513 | then : | |
13514 | printf "%s\n" "#define HAVE_PWRITE 1" >>confdefs.h | |
57aa50d4 | 13515 | |
6c65d251 | 13516 | fi |
54445dc2 TT |
13517 | ac_fn_c_check_func "$LINENO" "pread64" "ac_cv_func_pread64" |
13518 | if test "x$ac_cv_func_pread64" = xyes | |
13519 | then : | |
13520 | printf "%s\n" "#define HAVE_PREAD64 1" >>confdefs.h | |
b0cacab0 | 13521 | |
54445dc2 TT |
13522 | fi |
13523 | ac_fn_c_check_func "$LINENO" "pwrite64" "ac_cv_func_pwrite64" | |
13524 | if test "x$ac_cv_func_pwrite64" = xyes | |
13525 | then : | |
13526 | printf "%s\n" "#define HAVE_PWRITE64 1" >>confdefs.h | |
84ea6e70 | 13527 | |
4e5f24ae TT |
13528 | fi |
13529 | ac_fn_c_check_func "$LINENO" "qsort_r" "ac_cv_func_qsort_r" | |
13530 | if test "x$ac_cv_func_qsort_r" = xyes | |
13531 | then : | |
13532 | printf "%s\n" "#define HAVE_QSORT_R 1" >>confdefs.h | |
13533 | ||
50e1e10f | 13534 | fi |
54445dc2 TT |
13535 | ac_fn_c_check_func "$LINENO" "secure_getenv" "ac_cv_func_secure_getenv" |
13536 | if test "x$ac_cv_func_secure_getenv" = xyes | |
13537 | then : | |
13538 | printf "%s\n" "#define HAVE_SECURE_GETENV 1" >>confdefs.h | |
b0cacab0 | 13539 | |
54445dc2 TT |
13540 | fi |
13541 | ac_fn_c_check_func "$LINENO" "setmntent" "ac_cv_func_setmntent" | |
13542 | if test "x$ac_cv_func_setmntent" = xyes | |
13543 | then : | |
13544 | printf "%s\n" "#define HAVE_SETMNTENT 1" >>confdefs.h | |
9ed8e5fe | 13545 | |
9ed8e5fe | 13546 | fi |
54445dc2 TT |
13547 | ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid" |
13548 | if test "x$ac_cv_func_setresgid" = xyes | |
13549 | then : | |
13550 | printf "%s\n" "#define HAVE_SETRESGID 1" >>confdefs.h | |
13551 | ||
9ed8e5fe | 13552 | fi |
54445dc2 TT |
13553 | ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid" |
13554 | if test "x$ac_cv_func_setresuid" = xyes | |
13555 | then : | |
13556 | printf "%s\n" "#define HAVE_SETRESUID 1" >>confdefs.h | |
188bf39a | 13557 | |
54445dc2 TT |
13558 | fi |
13559 | ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf" | |
13560 | if test "x$ac_cv_func_snprintf" = xyes | |
13561 | then : | |
13562 | printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h | |
7154d974 | 13563 | |
e598c29b | 13564 | fi |
54445dc2 TT |
13565 | ac_fn_c_check_func "$LINENO" "srandom" "ac_cv_func_srandom" |
13566 | if test "x$ac_cv_func_srandom" = xyes | |
13567 | then : | |
13568 | printf "%s\n" "#define HAVE_SRANDOM 1" >>confdefs.h | |
e598c29b | 13569 | |
54445dc2 TT |
13570 | fi |
13571 | ac_fn_c_check_func "$LINENO" "stpcpy" "ac_cv_func_stpcpy" | |
13572 | if test "x$ac_cv_func_stpcpy" = xyes | |
13573 | then : | |
13574 | printf "%s\n" "#define HAVE_STPCPY 1" >>confdefs.h | |
e598c29b | 13575 | |
e598c29b | 13576 | fi |
54445dc2 TT |
13577 | ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" |
13578 | if test "x$ac_cv_func_strcasecmp" = xyes | |
13579 | then : | |
13580 | printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h | |
13581 | ||
e598c29b | 13582 | fi |
54445dc2 TT |
13583 | ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup" |
13584 | if test "x$ac_cv_func_strdup" = xyes | |
13585 | then : | |
13586 | printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h | |
e598c29b | 13587 | |
54445dc2 TT |
13588 | fi |
13589 | ac_fn_c_check_func "$LINENO" "strnlen" "ac_cv_func_strnlen" | |
13590 | if test "x$ac_cv_func_strnlen" = xyes | |
13591 | then : | |
13592 | printf "%s\n" "#define HAVE_STRNLEN 1" >>confdefs.h | |
e598c29b | 13593 | |
7154d974 | 13594 | fi |
54445dc2 TT |
13595 | ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime" |
13596 | if test "x$ac_cv_func_strptime" = xyes | |
13597 | then : | |
13598 | printf "%s\n" "#define HAVE_STRPTIME 1" >>confdefs.h | |
7154d974 | 13599 | |
54445dc2 TT |
13600 | fi |
13601 | ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull" | |
13602 | if test "x$ac_cv_func_strtoull" = xyes | |
13603 | then : | |
13604 | printf "%s\n" "#define HAVE_STRTOULL 1" >>confdefs.h | |
57aa50d4 | 13605 | |
9ed8e5fe | 13606 | fi |
54445dc2 TT |
13607 | ac_fn_c_check_func "$LINENO" "sync_file_range" "ac_cv_func_sync_file_range" |
13608 | if test "x$ac_cv_func_sync_file_range" = xyes | |
13609 | then : | |
13610 | printf "%s\n" "#define HAVE_SYNC_FILE_RANGE 1" >>confdefs.h | |
13611 | ||
9ed8e5fe | 13612 | fi |
54445dc2 TT |
13613 | ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf" |
13614 | if test "x$ac_cv_func_sysconf" = xyes | |
13615 | then : | |
13616 | printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h | |
188bf39a | 13617 | |
54445dc2 TT |
13618 | fi |
13619 | ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep" | |
13620 | if test "x$ac_cv_func_usleep" = xyes | |
13621 | then : | |
13622 | printf "%s\n" "#define HAVE_USLEEP 1" >>confdefs.h | |
9ed8e5fe ES |
13623 | |
13624 | fi | |
54445dc2 TT |
13625 | ac_fn_c_check_func "$LINENO" "utime" "ac_cv_func_utime" |
13626 | if test "x$ac_cv_func_utime" = xyes | |
13627 | then : | |
13628 | printf "%s\n" "#define HAVE_UTIME 1" >>confdefs.h | |
9ed8e5fe ES |
13629 | |
13630 | fi | |
54445dc2 TT |
13631 | ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes" |
13632 | if test "x$ac_cv_func_utimes" = xyes | |
13633 | then : | |
13634 | printf "%s\n" "#define HAVE_UTIMES 1" >>confdefs.h | |
13635 | ||
32179ce2 | 13636 | fi |
54445dc2 TT |
13637 | ac_fn_c_check_func "$LINENO" "valloc" "ac_cv_func_valloc" |
13638 | if test "x$ac_cv_func_valloc" = xyes | |
13639 | then : | |
13640 | printf "%s\n" "#define HAVE_VALLOC 1" >>confdefs.h | |
21c84b71 | 13641 | |
50e1e10f | 13642 | fi |
50e1e10f | 13643 | |
fc6d9d51 | 13644 | SOCKET_LIB='' |
54445dc2 TT |
13645 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 |
13646 | printf %s "checking for socket in -lsocket... " >&6; } | |
13647 | if test ${ac_cv_lib_socket_socket+y} | |
13648 | then : | |
13649 | printf %s "(cached) " >&6 | |
13650 | else $as_nop | |
b0cacab0 | 13651 | ac_check_lib_save_LIBS=$LIBS |
fc6d9d51 | 13652 | LIBS="-lsocket $LIBS" |
57aa50d4 | 13653 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b0cacab0 | 13654 | /* end confdefs.h. */ |
93636bde | 13655 | |
e1052144 TT |
13656 | /* Override any GCC internal prototype to avoid an error. |
13657 | Use char because int might match the return type of a GCC | |
13658 | builtin and then its argument prototype would still apply. */ | |
b0cacab0 TT |
13659 | char socket (); |
13660 | int | |
54445dc2 | 13661 | main (void) |
b0cacab0 | 13662 | { |
e1052144 | 13663 | return socket (); |
b0cacab0 TT |
13664 | ; |
13665 | return 0; | |
13666 | } | |
13667 | _ACEOF | |
54445dc2 TT |
13668 | if ac_fn_c_try_link "$LINENO" |
13669 | then : | |
b0cacab0 | 13670 | ac_cv_lib_socket_socket=yes |
54445dc2 | 13671 | else $as_nop |
57aa50d4 | 13672 | ac_cv_lib_socket_socket=no |
b0cacab0 | 13673 | fi |
54445dc2 | 13674 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
57aa50d4 | 13675 | conftest$ac_exeext conftest.$ac_ext |
b0cacab0 TT |
13676 | LIBS=$ac_check_lib_save_LIBS |
13677 | fi | |
54445dc2 TT |
13678 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 |
13679 | printf "%s\n" "$ac_cv_lib_socket_socket" >&6; } | |
13680 | if test "x$ac_cv_lib_socket_socket" = xyes | |
13681 | then : | |
fc6d9d51 | 13682 | SOCKET_LIB=-lsocket |
50e1e10f | 13683 | fi |
fc6d9d51 | 13684 | |
93636bde | 13685 | |
54445dc2 TT |
13686 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for magic_file in -lmagic" >&5 |
13687 | printf %s "checking for magic_file in -lmagic... " >&6; } | |
13688 | if test ${ac_cv_lib_magic_magic_file+y} | |
13689 | then : | |
13690 | printf %s "(cached) " >&6 | |
13691 | else $as_nop | |
b291c11f DW |
13692 | ac_check_lib_save_LIBS=$LIBS |
13693 | LIBS="-lmagic $LIBS" | |
13694 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13695 | /* end confdefs.h. */ | |
13696 | ||
13697 | /* Override any GCC internal prototype to avoid an error. | |
13698 | Use char because int might match the return type of a GCC | |
13699 | builtin and then its argument prototype would still apply. */ | |
b291c11f DW |
13700 | char magic_file (); |
13701 | int | |
54445dc2 | 13702 | main (void) |
b291c11f DW |
13703 | { |
13704 | return magic_file (); | |
13705 | ; | |
13706 | return 0; | |
13707 | } | |
13708 | _ACEOF | |
54445dc2 TT |
13709 | if ac_fn_c_try_link "$LINENO" |
13710 | then : | |
b291c11f | 13711 | ac_cv_lib_magic_magic_file=yes |
54445dc2 | 13712 | else $as_nop |
b291c11f DW |
13713 | ac_cv_lib_magic_magic_file=no |
13714 | fi | |
54445dc2 | 13715 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
b291c11f DW |
13716 | conftest$ac_exeext conftest.$ac_ext |
13717 | LIBS=$ac_check_lib_save_LIBS | |
13718 | fi | |
54445dc2 TT |
13719 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_file" >&5 |
13720 | printf "%s\n" "$ac_cv_lib_magic_magic_file" >&6; } | |
13721 | if test "x$ac_cv_lib_magic_magic_file" = xyes | |
13722 | then : | |
b291c11f | 13723 | MAGIC_LIB=-lmagic |
54445dc2 TT |
13724 | ac_fn_c_check_header_compile "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default" |
13725 | if test "x$ac_cv_header_magic_h" = xyes | |
13726 | then : | |
13727 | printf "%s\n" "#define HAVE_MAGIC_H 1" >>confdefs.h | |
b291c11f DW |
13728 | |
13729 | fi | |
13730 | ||
b291c11f DW |
13731 | fi |
13732 | ||
32179ce2 | 13733 | if test "$ac_cv_func_dlopen" = yes ; then |
d2e3c0dc TT |
13734 | MAGIC_LIB=$DLOPEN_LIB |
13735 | fi | |
b291c11f | 13736 | |
7e3a4f0a JSMR |
13737 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archive_read_new in -larchive" >&5 |
13738 | printf %s "checking for archive_read_new in -larchive... " >&6; } | |
13739 | if test ${ac_cv_lib_archive_archive_read_new+y} | |
13740 | then : | |
13741 | printf %s "(cached) " >&6 | |
13742 | else $as_nop | |
13743 | ac_check_lib_save_LIBS=$LIBS | |
13744 | LIBS="-larchive $LIBS" | |
13745 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13746 | /* end confdefs.h. */ | |
13747 | ||
13748 | /* Override any GCC internal prototype to avoid an error. | |
13749 | Use char because int might match the return type of a GCC | |
13750 | builtin and then its argument prototype would still apply. */ | |
13751 | char archive_read_new (); | |
13752 | int | |
13753 | main (void) | |
13754 | { | |
13755 | return archive_read_new (); | |
13756 | ; | |
13757 | return 0; | |
13758 | } | |
13759 | _ACEOF | |
13760 | if ac_fn_c_try_link "$LINENO" | |
13761 | then : | |
13762 | ac_cv_lib_archive_archive_read_new=yes | |
13763 | else $as_nop | |
13764 | ac_cv_lib_archive_archive_read_new=no | |
13765 | fi | |
13766 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ | |
13767 | conftest$ac_exeext conftest.$ac_ext | |
13768 | LIBS=$ac_check_lib_save_LIBS | |
13769 | fi | |
13770 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_archive_archive_read_new" >&5 | |
13771 | printf "%s\n" "$ac_cv_lib_archive_archive_read_new" >&6; } | |
13772 | if test "x$ac_cv_lib_archive_archive_read_new" = xyes | |
13773 | then : | |
13774 | ARCHIVE_LIB=-larchive | |
13775 | ac_fn_c_check_header_compile "$LINENO" "archive.h" "ac_cv_header_archive_h" "$ac_includes_default" | |
13776 | if test "x$ac_cv_header_archive_h" = xyes | |
13777 | then : | |
13778 | printf "%s\n" "#define HAVE_ARCHIVE_H 1" >>confdefs.h | |
13779 | ||
13780 | fi | |
13781 | ||
13782 | fi | |
13783 | ||
13784 | if test "$ac_cv_func_dlopen" = yes ; then | |
13785 | ARCHIVE_LIB=$DLOPEN_LIB | |
13786 | fi | |
13787 | ||
54445dc2 TT |
13788 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 |
13789 | printf %s "checking for clock_gettime in -lrt... " >&6; } | |
13790 | if test ${ac_cv_lib_rt_clock_gettime+y} | |
13791 | then : | |
13792 | printf %s "(cached) " >&6 | |
13793 | else $as_nop | |
c94da047 TT |
13794 | ac_check_lib_save_LIBS=$LIBS |
13795 | LIBS="-lrt $LIBS" | |
13796 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13797 | /* end confdefs.h. */ | |
13798 | ||
13799 | /* Override any GCC internal prototype to avoid an error. | |
13800 | Use char because int might match the return type of a GCC | |
13801 | builtin and then its argument prototype would still apply. */ | |
c94da047 TT |
13802 | char clock_gettime (); |
13803 | int | |
54445dc2 | 13804 | main (void) |
c94da047 TT |
13805 | { |
13806 | return clock_gettime (); | |
13807 | ; | |
13808 | return 0; | |
13809 | } | |
13810 | _ACEOF | |
54445dc2 TT |
13811 | if ac_fn_c_try_link "$LINENO" |
13812 | then : | |
c94da047 | 13813 | ac_cv_lib_rt_clock_gettime=yes |
54445dc2 | 13814 | else $as_nop |
c94da047 TT |
13815 | ac_cv_lib_rt_clock_gettime=no |
13816 | fi | |
54445dc2 | 13817 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
c94da047 TT |
13818 | conftest$ac_exeext conftest.$ac_ext |
13819 | LIBS=$ac_check_lib_save_LIBS | |
13820 | fi | |
54445dc2 TT |
13821 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 |
13822 | printf "%s\n" "$ac_cv_lib_rt_clock_gettime" >&6; } | |
13823 | if test "x$ac_cv_lib_rt_clock_gettime" = xyes | |
13824 | then : | |
c94da047 TT |
13825 | CLOCK_GETTIME_LIB=-lrt |
13826 | fi | |
13827 | ||
13828 | ||
81cbf1ef DW |
13829 | FUSE_CMT= |
13830 | FUSE_LIB= | |
13831 | # Check whether --enable-fuse2fs was given. | |
54445dc2 TT |
13832 | if test ${enable_fuse2fs+y} |
13833 | then : | |
81cbf1ef DW |
13834 | enableval=$enable_fuse2fs; if test "$enableval" = "no" |
13835 | then | |
13836 | FUSE_CMT="#" | |
54445dc2 TT |
13837 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling fuse2fs" >&5 |
13838 | printf "%s\n" "Disabling fuse2fs" >&6; } | |
81cbf1ef | 13839 | else |
448a3f8b DD |
13840 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13841 | /* end confdefs.h. */ | |
13842 | #ifdef __linux__ | |
13843 | #include <linux/fs.h> | |
13844 | #include <linux/falloc.h> | |
13845 | #include <linux/xattr.h> | |
13846 | #endif | |
13847 | ||
13848 | int | |
13849 | main (void) | |
13850 | { | |
13851 | ||
13852 | ; | |
13853 | return 0; | |
13854 | } | |
13855 | _ACEOF | |
13856 | if ac_fn_c_try_cpp "$LINENO" | |
13857 | then : | |
13858 | ||
13859 | else $as_nop | |
13860 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
13861 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} | |
13862 | as_fn_error $? "Cannot find fuse2fs Linux headers. | |
13863 | See \`config.log' for more details" "$LINENO" 5; } | |
13864 | fi | |
13865 | rm -f conftest.err conftest.i conftest.$ac_ext | |
13866 | ||
13867 | fuse3_CFLAGS | |
13868 | C compiler flags for fuse3, overriding pkg-config | |
13869 | fuse3_LIBS linker flags for fuse3, overriding pkg-config | |
13870 | ||
13871 | pkg_failed=no | |
13872 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse3" >&5 | |
13873 | printf %s "checking for fuse3... " >&6; } | |
13874 | ||
13875 | if test -n "$fuse3_CFLAGS"; then | |
13876 | pkg_cv_fuse3_CFLAGS="$fuse3_CFLAGS" | |
13877 | elif test -n "$PKG_CONFIG"; then | |
13878 | if test -n "$PKG_CONFIG" && \ | |
13879 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fuse3\""; } >&5 | |
13880 | ($PKG_CONFIG --exists --print-errors "fuse3") 2>&5 | |
13881 | ac_status=$? | |
13882 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13883 | test $ac_status = 0; }; then | |
13884 | pkg_cv_fuse3_CFLAGS=`$PKG_CONFIG --cflags "fuse3" 2>/dev/null` | |
13885 | test "x$?" != "x0" && pkg_failed=yes | |
13886 | else | |
13887 | pkg_failed=yes | |
13888 | fi | |
13889 | else | |
13890 | pkg_failed=untried | |
13891 | fi | |
13892 | if test -n "$fuse3_LIBS"; then | |
13893 | pkg_cv_fuse3_LIBS="$fuse3_LIBS" | |
13894 | elif test -n "$PKG_CONFIG"; then | |
13895 | if test -n "$PKG_CONFIG" && \ | |
13896 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fuse3\""; } >&5 | |
13897 | ($PKG_CONFIG --exists --print-errors "fuse3") 2>&5 | |
13898 | ac_status=$? | |
13899 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13900 | test $ac_status = 0; }; then | |
13901 | pkg_cv_fuse3_LIBS=`$PKG_CONFIG --libs "fuse3" 2>/dev/null` | |
13902 | test "x$?" != "x0" && pkg_failed=yes | |
13903 | else | |
13904 | pkg_failed=yes | |
13905 | fi | |
13906 | else | |
13907 | pkg_failed=untried | |
13908 | fi | |
13909 | ||
13910 | ||
13911 | ||
13912 | if test $pkg_failed = yes; then | |
13913 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13914 | printf "%s\n" "no" >&6; } | |
13915 | ||
13916 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
13917 | _pkg_short_errors_supported=yes | |
13918 | else | |
13919 | _pkg_short_errors_supported=no | |
13920 | fi | |
13921 | if test $_pkg_short_errors_supported = yes; then | |
13922 | fuse3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fuse3" 2>&1` | |
13923 | else | |
13924 | fuse3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fuse3" 2>&1` | |
13925 | fi | |
13926 | # Put the nasty error message in config.log where it belongs | |
13927 | echo "$fuse3_PKG_ERRORS" >&5 | |
13928 | ||
13929 | ||
13930 | for ac_header in pthread.h fuse.h | |
81cbf1ef | 13931 | do : |
54445dc2 | 13932 | as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh` |
81cbf1ef DW |
13933 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64 |
13934 | #define FUSE_USE_VERSION 29 | |
13935 | " | |
54445dc2 TT |
13936 | if eval test \"x\$"$as_ac_Header"\" = x"yes" |
13937 | then : | |
81cbf1ef | 13938 | cat >>confdefs.h <<_ACEOF |
54445dc2 | 13939 | #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1 |
81cbf1ef DW |
13940 | _ACEOF |
13941 | ||
54445dc2 TT |
13942 | else $as_nop |
13943 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
13944 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} | |
81cbf1ef DW |
13945 | as_fn_error $? "Cannot find fuse2fs headers. |
13946 | See \`config.log' for more details" "$LINENO" 5; } | |
13947 | fi | |
13948 | ||
13949 | done | |
13950 | ||
448a3f8b DD |
13951 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5 |
13952 | printf %s "checking for fuse_main in -losxfuse... " >&6; } | |
13953 | if test ${ac_cv_lib_osxfuse_fuse_main+y} | |
13954 | then : | |
13955 | printf %s "(cached) " >&6 | |
13956 | else $as_nop | |
13957 | ac_check_lib_save_LIBS=$LIBS | |
13958 | LIBS="-losxfuse $LIBS" | |
13959 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
81cbf1ef | 13960 | /* end confdefs.h. */ |
81cbf1ef | 13961 | |
448a3f8b DD |
13962 | /* Override any GCC internal prototype to avoid an error. |
13963 | Use char because int might match the return type of a GCC | |
13964 | builtin and then its argument prototype would still apply. */ | |
13965 | char fuse_main (); | |
81cbf1ef | 13966 | int |
54445dc2 | 13967 | main (void) |
81cbf1ef | 13968 | { |
448a3f8b DD |
13969 | return fuse_main (); |
13970 | ; | |
13971 | return 0; | |
13972 | } | |
13973 | _ACEOF | |
13974 | if ac_fn_c_try_link "$LINENO" | |
13975 | then : | |
13976 | ac_cv_lib_osxfuse_fuse_main=yes | |
13977 | else $as_nop | |
13978 | ac_cv_lib_osxfuse_fuse_main=no | |
13979 | fi | |
13980 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ | |
13981 | conftest$ac_exeext conftest.$ac_ext | |
13982 | LIBS=$ac_check_lib_save_LIBS | |
13983 | fi | |
13984 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5 | |
13985 | printf "%s\n" "$ac_cv_lib_osxfuse_fuse_main" >&6; } | |
13986 | if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes | |
13987 | then : | |
13988 | FUSE_LIB=-losxfuse | |
13989 | else $as_nop | |
13990 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5 | |
13991 | printf %s "checking for fuse_main in -lfuse... " >&6; } | |
13992 | if test ${ac_cv_lib_fuse_fuse_main+y} | |
13993 | then : | |
13994 | printf %s "(cached) " >&6 | |
13995 | else $as_nop | |
13996 | ac_check_lib_save_LIBS=$LIBS | |
13997 | LIBS="-lfuse $LIBS" | |
13998 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13999 | /* end confdefs.h. */ | |
81cbf1ef | 14000 | |
448a3f8b DD |
14001 | /* Override any GCC internal prototype to avoid an error. |
14002 | Use char because int might match the return type of a GCC | |
14003 | builtin and then its argument prototype would still apply. */ | |
14004 | char fuse_main (); | |
14005 | int | |
14006 | main (void) | |
14007 | { | |
14008 | return fuse_main (); | |
81cbf1ef DW |
14009 | ; |
14010 | return 0; | |
14011 | } | |
14012 | _ACEOF | |
448a3f8b DD |
14013 | if ac_fn_c_try_link "$LINENO" |
14014 | then : | |
14015 | ac_cv_lib_fuse_fuse_main=yes | |
14016 | else $as_nop | |
14017 | ac_cv_lib_fuse_fuse_main=no | |
14018 | fi | |
14019 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ | |
14020 | conftest$ac_exeext conftest.$ac_ext | |
14021 | LIBS=$ac_check_lib_save_LIBS | |
14022 | fi | |
14023 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5 | |
14024 | printf "%s\n" "$ac_cv_lib_fuse_fuse_main" >&6; } | |
14025 | if test "x$ac_cv_lib_fuse_fuse_main" = xyes | |
54445dc2 | 14026 | then : |
448a3f8b DD |
14027 | FUSE_LIB=-lfuse |
14028 | else $as_nop | |
14029 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
14030 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} | |
14031 | as_fn_error $? "Cannot find fuse library. | |
14032 | See \`config.log' for more details" "$LINENO" 5; } | |
14033 | fi | |
14034 | ||
14035 | fi | |
14036 | ||
14037 | ||
14038 | elif test $pkg_failed = untried; then | |
14039 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14040 | printf "%s\n" "no" >&6; } | |
14041 | ||
14042 | for ac_header in pthread.h fuse.h | |
14043 | do : | |
14044 | as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh` | |
14045 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64 | |
14046 | #define FUSE_USE_VERSION 29 | |
14047 | " | |
14048 | if eval test \"x\$"$as_ac_Header"\" = x"yes" | |
14049 | then : | |
14050 | cat >>confdefs.h <<_ACEOF | |
14051 | #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14052 | _ACEOF | |
81cbf1ef | 14053 | |
54445dc2 TT |
14054 | else $as_nop |
14055 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
14056 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} | |
448a3f8b | 14057 | as_fn_error $? "Cannot find fuse2fs headers. |
81cbf1ef DW |
14058 | See \`config.log' for more details" "$LINENO" 5; } |
14059 | fi | |
81cbf1ef | 14060 | |
448a3f8b DD |
14061 | done |
14062 | ||
14063 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5 | |
54445dc2 TT |
14064 | printf %s "checking for fuse_main in -losxfuse... " >&6; } |
14065 | if test ${ac_cv_lib_osxfuse_fuse_main+y} | |
14066 | then : | |
14067 | printf %s "(cached) " >&6 | |
14068 | else $as_nop | |
81cbf1ef DW |
14069 | ac_check_lib_save_LIBS=$LIBS |
14070 | LIBS="-losxfuse $LIBS" | |
14071 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14072 | /* end confdefs.h. */ | |
14073 | ||
14074 | /* Override any GCC internal prototype to avoid an error. | |
14075 | Use char because int might match the return type of a GCC | |
14076 | builtin and then its argument prototype would still apply. */ | |
81cbf1ef DW |
14077 | char fuse_main (); |
14078 | int | |
54445dc2 | 14079 | main (void) |
81cbf1ef DW |
14080 | { |
14081 | return fuse_main (); | |
14082 | ; | |
14083 | return 0; | |
14084 | } | |
14085 | _ACEOF | |
54445dc2 TT |
14086 | if ac_fn_c_try_link "$LINENO" |
14087 | then : | |
81cbf1ef | 14088 | ac_cv_lib_osxfuse_fuse_main=yes |
54445dc2 | 14089 | else $as_nop |
81cbf1ef DW |
14090 | ac_cv_lib_osxfuse_fuse_main=no |
14091 | fi | |
54445dc2 | 14092 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
81cbf1ef DW |
14093 | conftest$ac_exeext conftest.$ac_ext |
14094 | LIBS=$ac_check_lib_save_LIBS | |
14095 | fi | |
54445dc2 TT |
14096 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5 |
14097 | printf "%s\n" "$ac_cv_lib_osxfuse_fuse_main" >&6; } | |
14098 | if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes | |
14099 | then : | |
81cbf1ef | 14100 | FUSE_LIB=-losxfuse |
54445dc2 TT |
14101 | else $as_nop |
14102 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5 | |
14103 | printf %s "checking for fuse_main in -lfuse... " >&6; } | |
14104 | if test ${ac_cv_lib_fuse_fuse_main+y} | |
14105 | then : | |
14106 | printf %s "(cached) " >&6 | |
14107 | else $as_nop | |
81cbf1ef DW |
14108 | ac_check_lib_save_LIBS=$LIBS |
14109 | LIBS="-lfuse $LIBS" | |
14110 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14111 | /* end confdefs.h. */ | |
14112 | ||
14113 | /* Override any GCC internal prototype to avoid an error. | |
14114 | Use char because int might match the return type of a GCC | |
14115 | builtin and then its argument prototype would still apply. */ | |
81cbf1ef DW |
14116 | char fuse_main (); |
14117 | int | |
54445dc2 | 14118 | main (void) |
81cbf1ef DW |
14119 | { |
14120 | return fuse_main (); | |
14121 | ; | |
14122 | return 0; | |
14123 | } | |
14124 | _ACEOF | |
54445dc2 TT |
14125 | if ac_fn_c_try_link "$LINENO" |
14126 | then : | |
81cbf1ef | 14127 | ac_cv_lib_fuse_fuse_main=yes |
54445dc2 | 14128 | else $as_nop |
81cbf1ef DW |
14129 | ac_cv_lib_fuse_fuse_main=no |
14130 | fi | |
54445dc2 | 14131 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
81cbf1ef DW |
14132 | conftest$ac_exeext conftest.$ac_ext |
14133 | LIBS=$ac_check_lib_save_LIBS | |
14134 | fi | |
54445dc2 TT |
14135 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5 |
14136 | printf "%s\n" "$ac_cv_lib_fuse_fuse_main" >&6; } | |
14137 | if test "x$ac_cv_lib_fuse_fuse_main" = xyes | |
14138 | then : | |
81cbf1ef | 14139 | FUSE_LIB=-lfuse |
54445dc2 TT |
14140 | else $as_nop |
14141 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
14142 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} | |
81cbf1ef DW |
14143 | as_fn_error $? "Cannot find fuse library. |
14144 | See \`config.log' for more details" "$LINENO" 5; } | |
14145 | fi | |
14146 | ||
14147 | fi | |
14148 | ||
448a3f8b DD |
14149 | |
14150 | else | |
14151 | fuse3_CFLAGS=$pkg_cv_fuse3_CFLAGS | |
14152 | fuse3_LIBS=$pkg_cv_fuse3_LIBS | |
14153 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14154 | printf "%s\n" "yes" >&6; } | |
14155 | ||
14156 | FUSE_LIB=-lfuse3 | |
14157 | ||
14158 | fi | |
54445dc2 TT |
14159 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs" >&5 |
14160 | printf "%s\n" "Enabling fuse2fs" >&6; } | |
81cbf1ef DW |
14161 | fi |
14162 | ||
54445dc2 | 14163 | else $as_nop |
448a3f8b DD |
14164 | |
14165 | pkg_failed=no | |
14166 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse3" >&5 | |
14167 | printf %s "checking for fuse3... " >&6; } | |
14168 | ||
14169 | if test -n "$fuse3_CFLAGS"; then | |
14170 | pkg_cv_fuse3_CFLAGS="$fuse3_CFLAGS" | |
14171 | elif test -n "$PKG_CONFIG"; then | |
14172 | if test -n "$PKG_CONFIG" && \ | |
14173 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fuse3\""; } >&5 | |
14174 | ($PKG_CONFIG --exists --print-errors "fuse3") 2>&5 | |
14175 | ac_status=$? | |
14176 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14177 | test $ac_status = 0; }; then | |
14178 | pkg_cv_fuse3_CFLAGS=`$PKG_CONFIG --cflags "fuse3" 2>/dev/null` | |
14179 | test "x$?" != "x0" && pkg_failed=yes | |
14180 | else | |
14181 | pkg_failed=yes | |
14182 | fi | |
14183 | else | |
14184 | pkg_failed=untried | |
14185 | fi | |
14186 | if test -n "$fuse3_LIBS"; then | |
14187 | pkg_cv_fuse3_LIBS="$fuse3_LIBS" | |
14188 | elif test -n "$PKG_CONFIG"; then | |
14189 | if test -n "$PKG_CONFIG" && \ | |
14190 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fuse3\""; } >&5 | |
14191 | ($PKG_CONFIG --exists --print-errors "fuse3") 2>&5 | |
14192 | ac_status=$? | |
14193 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14194 | test $ac_status = 0; }; then | |
14195 | pkg_cv_fuse3_LIBS=`$PKG_CONFIG --libs "fuse3" 2>/dev/null` | |
14196 | test "x$?" != "x0" && pkg_failed=yes | |
14197 | else | |
14198 | pkg_failed=yes | |
14199 | fi | |
14200 | else | |
14201 | pkg_failed=untried | |
14202 | fi | |
14203 | ||
14204 | ||
14205 | ||
14206 | if test $pkg_failed = yes; then | |
14207 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14208 | printf "%s\n" "no" >&6; } | |
14209 | ||
14210 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
14211 | _pkg_short_errors_supported=yes | |
14212 | else | |
14213 | _pkg_short_errors_supported=no | |
14214 | fi | |
14215 | if test $_pkg_short_errors_supported = yes; then | |
14216 | fuse3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fuse3" 2>&1` | |
14217 | else | |
14218 | fuse3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fuse3" 2>&1` | |
14219 | fi | |
14220 | # Put the nasty error message in config.log where it belongs | |
14221 | echo "$fuse3_PKG_ERRORS" >&5 | |
14222 | ||
14223 | ||
14224 | for ac_header in pthread.h fuse.h | |
81cbf1ef | 14225 | do : |
54445dc2 | 14226 | as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh` |
81cbf1ef DW |
14227 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64 |
14228 | #define FUSE_USE_VERSION 29 | |
14229 | #ifdef __linux__ | |
14230 | # include <linux/fs.h> | |
14231 | # include <linux/falloc.h> | |
14232 | # include <linux/xattr.h> | |
14233 | #endif | |
14234 | " | |
54445dc2 TT |
14235 | if eval test \"x\$"$as_ac_Header"\" = x"yes" |
14236 | then : | |
81cbf1ef | 14237 | cat >>confdefs.h <<_ACEOF |
54445dc2 | 14238 | #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1 |
81cbf1ef DW |
14239 | _ACEOF |
14240 | ||
54445dc2 | 14241 | else $as_nop |
81cbf1ef DW |
14242 | FUSE_CMT="#" |
14243 | fi | |
14244 | ||
14245 | done | |
448a3f8b DD |
14246 | if test -z "$FUSE_CMT" |
14247 | then | |
14248 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5 | |
54445dc2 TT |
14249 | printf %s "checking for fuse_main in -losxfuse... " >&6; } |
14250 | if test ${ac_cv_lib_osxfuse_fuse_main+y} | |
14251 | then : | |
14252 | printf %s "(cached) " >&6 | |
14253 | else $as_nop | |
81cbf1ef DW |
14254 | ac_check_lib_save_LIBS=$LIBS |
14255 | LIBS="-losxfuse $LIBS" | |
14256 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14257 | /* end confdefs.h. */ | |
14258 | ||
14259 | /* Override any GCC internal prototype to avoid an error. | |
14260 | Use char because int might match the return type of a GCC | |
14261 | builtin and then its argument prototype would still apply. */ | |
81cbf1ef DW |
14262 | char fuse_main (); |
14263 | int | |
54445dc2 | 14264 | main (void) |
81cbf1ef DW |
14265 | { |
14266 | return fuse_main (); | |
14267 | ; | |
14268 | return 0; | |
14269 | } | |
14270 | _ACEOF | |
54445dc2 TT |
14271 | if ac_fn_c_try_link "$LINENO" |
14272 | then : | |
81cbf1ef | 14273 | ac_cv_lib_osxfuse_fuse_main=yes |
54445dc2 | 14274 | else $as_nop |
81cbf1ef DW |
14275 | ac_cv_lib_osxfuse_fuse_main=no |
14276 | fi | |
54445dc2 | 14277 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
81cbf1ef DW |
14278 | conftest$ac_exeext conftest.$ac_ext |
14279 | LIBS=$ac_check_lib_save_LIBS | |
14280 | fi | |
54445dc2 TT |
14281 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5 |
14282 | printf "%s\n" "$ac_cv_lib_osxfuse_fuse_main" >&6; } | |
14283 | if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes | |
14284 | then : | |
81cbf1ef | 14285 | FUSE_LIB=-losxfuse |
54445dc2 TT |
14286 | else $as_nop |
14287 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5 | |
14288 | printf %s "checking for fuse_main in -lfuse... " >&6; } | |
14289 | if test ${ac_cv_lib_fuse_fuse_main+y} | |
14290 | then : | |
14291 | printf %s "(cached) " >&6 | |
14292 | else $as_nop | |
81cbf1ef DW |
14293 | ac_check_lib_save_LIBS=$LIBS |
14294 | LIBS="-lfuse $LIBS" | |
14295 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14296 | /* end confdefs.h. */ | |
14297 | ||
14298 | /* Override any GCC internal prototype to avoid an error. | |
14299 | Use char because int might match the return type of a GCC | |
14300 | builtin and then its argument prototype would still apply. */ | |
81cbf1ef DW |
14301 | char fuse_main (); |
14302 | int | |
54445dc2 | 14303 | main (void) |
81cbf1ef DW |
14304 | { |
14305 | return fuse_main (); | |
14306 | ; | |
14307 | return 0; | |
14308 | } | |
14309 | _ACEOF | |
54445dc2 TT |
14310 | if ac_fn_c_try_link "$LINENO" |
14311 | then : | |
81cbf1ef | 14312 | ac_cv_lib_fuse_fuse_main=yes |
54445dc2 | 14313 | else $as_nop |
81cbf1ef DW |
14314 | ac_cv_lib_fuse_fuse_main=no |
14315 | fi | |
54445dc2 | 14316 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
81cbf1ef DW |
14317 | conftest$ac_exeext conftest.$ac_ext |
14318 | LIBS=$ac_check_lib_save_LIBS | |
14319 | fi | |
54445dc2 TT |
14320 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5 |
14321 | printf "%s\n" "$ac_cv_lib_fuse_fuse_main" >&6; } | |
14322 | if test "x$ac_cv_lib_fuse_fuse_main" = xyes | |
14323 | then : | |
81cbf1ef | 14324 | FUSE_LIB=-lfuse |
54445dc2 | 14325 | else $as_nop |
81cbf1ef DW |
14326 | FUSE_CMT="#" |
14327 | fi | |
14328 | ||
14329 | fi | |
14330 | ||
448a3f8b DD |
14331 | fi |
14332 | ||
14333 | elif test $pkg_failed = untried; then | |
14334 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14335 | printf "%s\n" "no" >&6; } | |
14336 | ||
14337 | for ac_header in pthread.h fuse.h | |
14338 | do : | |
14339 | as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh` | |
14340 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64 | |
14341 | #define FUSE_USE_VERSION 29 | |
14342 | #ifdef __linux__ | |
14343 | # include <linux/fs.h> | |
14344 | # include <linux/falloc.h> | |
14345 | # include <linux/xattr.h> | |
14346 | #endif | |
14347 | " | |
14348 | if eval test \"x\$"$as_ac_Header"\" = x"yes" | |
14349 | then : | |
14350 | cat >>confdefs.h <<_ACEOF | |
14351 | #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14352 | _ACEOF | |
14353 | ||
14354 | else $as_nop | |
14355 | FUSE_CMT="#" | |
14356 | fi | |
14357 | ||
14358 | done | |
14359 | if test -z "$FUSE_CMT" | |
14360 | then | |
14361 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5 | |
14362 | printf %s "checking for fuse_main in -losxfuse... " >&6; } | |
14363 | if test ${ac_cv_lib_osxfuse_fuse_main+y} | |
14364 | then : | |
14365 | printf %s "(cached) " >&6 | |
14366 | else $as_nop | |
14367 | ac_check_lib_save_LIBS=$LIBS | |
14368 | LIBS="-losxfuse $LIBS" | |
14369 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14370 | /* end confdefs.h. */ | |
14371 | ||
14372 | /* Override any GCC internal prototype to avoid an error. | |
14373 | Use char because int might match the return type of a GCC | |
14374 | builtin and then its argument prototype would still apply. */ | |
14375 | char fuse_main (); | |
14376 | int | |
14377 | main (void) | |
14378 | { | |
14379 | return fuse_main (); | |
14380 | ; | |
14381 | return 0; | |
14382 | } | |
14383 | _ACEOF | |
14384 | if ac_fn_c_try_link "$LINENO" | |
14385 | then : | |
14386 | ac_cv_lib_osxfuse_fuse_main=yes | |
14387 | else $as_nop | |
14388 | ac_cv_lib_osxfuse_fuse_main=no | |
14389 | fi | |
14390 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ | |
14391 | conftest$ac_exeext conftest.$ac_ext | |
14392 | LIBS=$ac_check_lib_save_LIBS | |
14393 | fi | |
14394 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5 | |
14395 | printf "%s\n" "$ac_cv_lib_osxfuse_fuse_main" >&6; } | |
14396 | if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes | |
14397 | then : | |
14398 | FUSE_LIB=-losxfuse | |
14399 | else $as_nop | |
14400 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5 | |
14401 | printf %s "checking for fuse_main in -lfuse... " >&6; } | |
14402 | if test ${ac_cv_lib_fuse_fuse_main+y} | |
14403 | then : | |
14404 | printf %s "(cached) " >&6 | |
14405 | else $as_nop | |
14406 | ac_check_lib_save_LIBS=$LIBS | |
14407 | LIBS="-lfuse $LIBS" | |
14408 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14409 | /* end confdefs.h. */ | |
14410 | ||
14411 | /* Override any GCC internal prototype to avoid an error. | |
14412 | Use char because int might match the return type of a GCC | |
14413 | builtin and then its argument prototype would still apply. */ | |
14414 | char fuse_main (); | |
14415 | int | |
14416 | main (void) | |
14417 | { | |
14418 | return fuse_main (); | |
14419 | ; | |
14420 | return 0; | |
14421 | } | |
14422 | _ACEOF | |
14423 | if ac_fn_c_try_link "$LINENO" | |
14424 | then : | |
14425 | ac_cv_lib_fuse_fuse_main=yes | |
14426 | else $as_nop | |
14427 | ac_cv_lib_fuse_fuse_main=no | |
14428 | fi | |
14429 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ | |
14430 | conftest$ac_exeext conftest.$ac_ext | |
14431 | LIBS=$ac_check_lib_save_LIBS | |
14432 | fi | |
14433 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5 | |
14434 | printf "%s\n" "$ac_cv_lib_fuse_fuse_main" >&6; } | |
14435 | if test "x$ac_cv_lib_fuse_fuse_main" = xyes | |
14436 | then : | |
14437 | FUSE_LIB=-lfuse | |
14438 | else $as_nop | |
14439 | FUSE_CMT="#" | |
14440 | fi | |
14441 | ||
14442 | fi | |
14443 | ||
14444 | fi | |
14445 | ||
14446 | else | |
14447 | fuse3_CFLAGS=$pkg_cv_fuse3_CFLAGS | |
14448 | fuse3_LIBS=$pkg_cv_fuse3_LIBS | |
14449 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14450 | printf "%s\n" "yes" >&6; } | |
14451 | ||
14452 | FUSE_LIB=-lfuse3 | |
14453 | ||
81cbf1ef DW |
14454 | fi |
14455 | if test -z "$FUSE_CMT" | |
14456 | then | |
54445dc2 TT |
14457 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs by default." >&5 |
14458 | printf "%s\n" "Enabling fuse2fs by default." >&6; } | |
81cbf1ef DW |
14459 | fi |
14460 | ||
14461 | fi | |
14462 | ||
14463 | ||
14464 | ||
448a3f8b DD |
14465 | if test "$FUSE_LIB" = "-lfuse3" |
14466 | then | |
14467 | FUSE_USE_VERSION=35 | |
14468 | CFLAGS="$CFLAGS $fuse3_CFLAGS" | |
14469 | LDFLAGS="$LDFLAGS $fuse3_LDFLAGS" | |
14470 | for ac_header in pthread.h fuse.h | |
14471 | do : | |
14472 | as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh` | |
14473 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64 | |
14474 | #define FUSE_USE_VERSION 35 | |
14475 | #ifdef __linux__ | |
14476 | #include <linux/fs.h> | |
14477 | #include <linux/falloc.h> | |
14478 | #include <linux/xattr.h> | |
14479 | #endif | |
14480 | " | |
14481 | if eval test \"x\$"$as_ac_Header"\" = x"yes" | |
14482 | then : | |
14483 | cat >>confdefs.h <<_ACEOF | |
14484 | #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14485 | _ACEOF | |
14486 | ||
14487 | else $as_nop | |
14488 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
14489 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} | |
14490 | as_fn_error $? "Cannot find fuse3 fuse2fs headers. | |
14491 | See \`config.log' for more details" "$LINENO" 5; } | |
14492 | fi | |
14493 | ||
14494 | done | |
14495 | elif test -n "$FUSE_LIB" | |
14496 | then | |
14497 | FUSE_USE_VERSION=29 | |
14498 | fi | |
14499 | if test -n "$FUSE_USE_VERSION" | |
14500 | then | |
14501 | ||
14502 | printf "%s\n" "#define FUSE_USE_VERSION $FUSE_USE_VERSION" >>confdefs.h | |
14503 | ||
14504 | fi | |
54445dc2 TT |
14505 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5 |
14506 | printf %s "checking for optreset... " >&6; } | |
14507 | if test ${ac_cv_have_optreset+y} | |
14508 | then : | |
14509 | printf %s "(cached) " >&6 | |
14510 | else $as_nop | |
57aa50d4 | 14511 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d7f45af8 | 14512 | /* end confdefs.h. */ |
57aa50d4 TT |
14513 | #include <unistd.h> |
14514 | ||
14515 | _ACEOF | |
14516 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
54445dc2 TT |
14517 | $EGREP "optreset" >/dev/null 2>&1 |
14518 | then : | |
57aa50d4 | 14519 | ac_cv_have_optreset=yes |
54445dc2 | 14520 | else $as_nop |
57aa50d4 TT |
14521 | ac_cv_have_optreset=no |
14522 | fi | |
54445dc2 | 14523 | rm -rf conftest* |
d7f45af8 | 14524 | |
d7f45af8 | 14525 | fi |
54445dc2 TT |
14526 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5 |
14527 | printf "%s\n" "$ac_cv_have_optreset" >&6; } | |
57aa50d4 | 14528 | if test $ac_cv_have_optreset = yes; then |
d1154eb4 | 14529 | |
54445dc2 | 14530 | printf "%s\n" "#define HAVE_OPTRESET 1" >>confdefs.h |
d7f45af8 | 14531 | |
d7f45af8 | 14532 | fi |
d1154eb4 | 14533 | |
57aa50d4 | 14534 | SEM_INIT_LIB='' |
cfb8e0bd TT |
14535 | echo GL_THREADS_API: ${gl_threads_api} |
14536 | if test "${gl_threads_api}" != none | |
14537 | then | |
14538 | ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init" | |
54445dc2 TT |
14539 | if test "x$ac_cv_func_sem_init" = xyes |
14540 | then : | |
14541 | ||
14542 | else $as_nop | |
14543 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5 | |
14544 | printf %s "checking for sem_init in -lpthread... " >&6; } | |
14545 | if test ${ac_cv_lib_pthread_sem_init+y} | |
14546 | then : | |
14547 | printf %s "(cached) " >&6 | |
14548 | else $as_nop | |
d7f45af8 TT |
14549 | ac_check_lib_save_LIBS=$LIBS |
14550 | LIBS="-lpthread $LIBS" | |
57aa50d4 | 14551 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d7f45af8 TT |
14552 | /* end confdefs.h. */ |
14553 | ||
14554 | /* Override any GCC internal prototype to avoid an error. | |
14555 | Use char because int might match the return type of a GCC | |
14556 | builtin and then its argument prototype would still apply. */ | |
d7f45af8 TT |
14557 | char sem_init (); |
14558 | int | |
54445dc2 | 14559 | main (void) |
d7f45af8 TT |
14560 | { |
14561 | return sem_init (); | |
14562 | ; | |
14563 | return 0; | |
14564 | } | |
14565 | _ACEOF | |
54445dc2 TT |
14566 | if ac_fn_c_try_link "$LINENO" |
14567 | then : | |
d7f45af8 | 14568 | ac_cv_lib_pthread_sem_init=yes |
54445dc2 | 14569 | else $as_nop |
57aa50d4 | 14570 | ac_cv_lib_pthread_sem_init=no |
d7f45af8 | 14571 | fi |
54445dc2 | 14572 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
57aa50d4 | 14573 | conftest$ac_exeext conftest.$ac_ext |
d7f45af8 TT |
14574 | LIBS=$ac_check_lib_save_LIBS |
14575 | fi | |
54445dc2 TT |
14576 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5 |
14577 | printf "%s\n" "$ac_cv_lib_pthread_sem_init" >&6; } | |
14578 | if test "x$ac_cv_lib_pthread_sem_init" = xyes | |
14579 | then : | |
14580 | printf "%s\n" "#define HAVE_SEM_INIT 1" >>confdefs.h | |
d7f45af8 TT |
14581 | |
14582 | SEM_INIT_LIB=-lpthread | |
54445dc2 TT |
14583 | else $as_nop |
14584 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5 | |
14585 | printf %s "checking for sem_init in -lrt... " >&6; } | |
14586 | if test ${ac_cv_lib_rt_sem_init+y} | |
14587 | then : | |
14588 | printf %s "(cached) " >&6 | |
14589 | else $as_nop | |
d7f45af8 TT |
14590 | ac_check_lib_save_LIBS=$LIBS |
14591 | LIBS="-lrt $LIBS" | |
57aa50d4 | 14592 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d7f45af8 TT |
14593 | /* end confdefs.h. */ |
14594 | ||
14595 | /* Override any GCC internal prototype to avoid an error. | |
14596 | Use char because int might match the return type of a GCC | |
14597 | builtin and then its argument prototype would still apply. */ | |
d7f45af8 TT |
14598 | char sem_init (); |
14599 | int | |
54445dc2 | 14600 | main (void) |
d7f45af8 TT |
14601 | { |
14602 | return sem_init (); | |
14603 | ; | |
14604 | return 0; | |
14605 | } | |
14606 | _ACEOF | |
54445dc2 TT |
14607 | if ac_fn_c_try_link "$LINENO" |
14608 | then : | |
d7f45af8 | 14609 | ac_cv_lib_rt_sem_init=yes |
54445dc2 | 14610 | else $as_nop |
57aa50d4 | 14611 | ac_cv_lib_rt_sem_init=no |
d7f45af8 | 14612 | fi |
54445dc2 | 14613 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
57aa50d4 | 14614 | conftest$ac_exeext conftest.$ac_ext |
d7f45af8 TT |
14615 | LIBS=$ac_check_lib_save_LIBS |
14616 | fi | |
54445dc2 TT |
14617 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5 |
14618 | printf "%s\n" "$ac_cv_lib_rt_sem_init" >&6; } | |
14619 | if test "x$ac_cv_lib_rt_sem_init" = xyes | |
14620 | then : | |
14621 | printf "%s\n" "#define HAVE_SEM_INIT 1" >>confdefs.h | |
d7f45af8 TT |
14622 | |
14623 | SEM_INIT_LIB=-lrt | |
54445dc2 TT |
14624 | else $as_nop |
14625 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5 | |
14626 | printf %s "checking for sem_init in -lposix4... " >&6; } | |
14627 | if test ${ac_cv_lib_posix4_sem_init+y} | |
14628 | then : | |
14629 | printf %s "(cached) " >&6 | |
14630 | else $as_nop | |
d7f45af8 TT |
14631 | ac_check_lib_save_LIBS=$LIBS |
14632 | LIBS="-lposix4 $LIBS" | |
57aa50d4 | 14633 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d7f45af8 TT |
14634 | /* end confdefs.h. */ |
14635 | ||
14636 | /* Override any GCC internal prototype to avoid an error. | |
14637 | Use char because int might match the return type of a GCC | |
14638 | builtin and then its argument prototype would still apply. */ | |
d7f45af8 TT |
14639 | char sem_init (); |
14640 | int | |
54445dc2 | 14641 | main (void) |
d7f45af8 TT |
14642 | { |
14643 | return sem_init (); | |
14644 | ; | |
14645 | return 0; | |
14646 | } | |
14647 | _ACEOF | |
54445dc2 TT |
14648 | if ac_fn_c_try_link "$LINENO" |
14649 | then : | |
d7f45af8 | 14650 | ac_cv_lib_posix4_sem_init=yes |
54445dc2 | 14651 | else $as_nop |
57aa50d4 | 14652 | ac_cv_lib_posix4_sem_init=no |
d7f45af8 | 14653 | fi |
54445dc2 | 14654 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
57aa50d4 | 14655 | conftest$ac_exeext conftest.$ac_ext |
d7f45af8 TT |
14656 | LIBS=$ac_check_lib_save_LIBS |
14657 | fi | |
54445dc2 TT |
14658 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5 |
14659 | printf "%s\n" "$ac_cv_lib_posix4_sem_init" >&6; } | |
14660 | if test "x$ac_cv_lib_posix4_sem_init" = xyes | |
14661 | then : | |
14662 | printf "%s\n" "#define HAVE_SEM_INIT 1" >>confdefs.h | |
d7f45af8 TT |
14663 | |
14664 | SEM_INIT_LIB=-lposix4 | |
14665 | fi | |
14666 | ||
14667 | fi | |
14668 | ||
14669 | fi | |
14670 | ||
cfb8e0bd | 14671 | fi |
d7f45af8 TT |
14672 | fi |
14673 | ||
4e5f24ae TT |
14674 | if test "$ac_cv_func_qsort_r" != no |
14675 | then : | |
14676 | ||
14677 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether qsort_r is GNU version" >&5 | |
14678 | printf %s "checking whether qsort_r is GNU version... " >&6; } | |
14679 | if test ${e2_cv_gnu_qsort_r+y} | |
14680 | then : | |
14681 | printf %s "(cached) " >&6 | |
14682 | else $as_nop | |
14683 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14684 | /* end confdefs.h. */ | |
14685 | ||
14686 | #include <stdlib.h> | |
14687 | void (qsort_r)(void *base, size_t nmemb, size_t size, | |
14688 | int (*compar)(const void *, const void *, void *), | |
14689 | void *arg); | |
14690 | ||
14691 | int | |
14692 | main (void) | |
14693 | { | |
14694 | ||
14695 | ; | |
14696 | return 0; | |
14697 | } | |
14698 | _ACEOF | |
14699 | if ac_fn_c_try_compile "$LINENO" | |
14700 | then : | |
14701 | e2_cv_gnu_qsort_r=yes | |
14702 | else $as_nop | |
14703 | e2_cv_gnu_qsort_r=no | |
14704 | fi | |
14705 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
14706 | ||
14707 | fi | |
14708 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $e2_cv_gnu_qsort_r" >&5 | |
14709 | printf "%s\n" "$e2_cv_gnu_qsort_r" >&6; } | |
14710 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether qsort_r is BSD version" >&5 | |
14711 | printf %s "checking whether qsort_r is BSD version... " >&6; } | |
14712 | if test ${e2_cv_bsd_qsort_r+y} | |
14713 | then : | |
14714 | printf %s "(cached) " >&6 | |
14715 | else $as_nop | |
14716 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14717 | /* end confdefs.h. */ | |
14718 | ||
14719 | #include <stdlib.h> | |
14720 | void (qsort_r)(void *base, size_t nmemb, size_t size, | |
14721 | void *arg, int (*compar)(void *, const void *, const void *)); | |
14722 | ||
14723 | int | |
14724 | main (void) | |
14725 | { | |
14726 | ||
14727 | ; | |
14728 | return 0; | |
14729 | } | |
14730 | _ACEOF | |
14731 | if ac_fn_c_try_compile "$LINENO" | |
14732 | then : | |
14733 | e2_cv_bsd_qsort_r=yes | |
14734 | else $as_nop | |
14735 | e2_cv_bsd_qsort_r=no | |
14736 | fi | |
14737 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
14738 | ||
14739 | fi | |
14740 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $e2_cv_bsd_qsort_r" >&5 | |
14741 | printf "%s\n" "$e2_cv_bsd_qsort_r" >&6; } | |
14742 | case "$e2_cv_gnu_qsort_r:$e2_cv_bsd_qsort_r" in #( | |
14743 | yes:no) : | |
14744 | ||
6eb00fb7 EB |
14745 | |
14746 | printf "%s\n" "#define HAVE_GNU_QSORT_R 1" >>confdefs.h | |
4e5f24ae TT |
14747 | |
14748 | ;; #( | |
14749 | no:yes) : | |
14750 | ||
6eb00fb7 EB |
14751 | |
14752 | printf "%s\n" "#define HAVE_BSD_QSORT_R 1" >>confdefs.h | |
4e5f24ae TT |
14753 | |
14754 | ;; #( | |
14755 | *) : | |
14756 | ;; | |
14757 | esac | |
14758 | ||
14759 | fi | |
54445dc2 TT |
14760 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5 |
14761 | printf %s "checking for unified diff option... " >&6; } | |
27f991b0 | 14762 | if diff -u $0 $0 > /dev/null 2>&1 ; then |
e54635de TT |
14763 | UNI_DIFF_OPTS=-u |
14764 | else | |
14765 | UNI_DIFF_OPTS=-c | |
14766 | fi | |
54445dc2 TT |
14767 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5 |
14768 | printf "%s\n" "$UNI_DIFF_OPTS" >&6; } | |
e54635de | 14769 | |
8f3f29d3 TT |
14770 | case "$host_os" in |
14771 | linux*) | |
d1154eb4 | 14772 | |
54445dc2 | 14773 | printf "%s\n" "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h |
50e1e10f | 14774 | |
8f3f29d3 TT |
14775 | ;; |
14776 | esac | |
ea1a3fa2 | 14777 | |
54445dc2 | 14778 | printf %s "checking for mount 'nosuid' option... " |
ea1a3fa2 NC |
14779 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
14780 | /* end confdefs.h. */ | |
14781 | #include <sys/mount.h> | |
14782 | int | |
54445dc2 | 14783 | main (void) |
ea1a3fa2 NC |
14784 | { |
14785 | void *temp = (void *)(MS_NOSUID); (void) temp; | |
14786 | ; | |
14787 | return 0; | |
14788 | } | |
14789 | _ACEOF | |
54445dc2 TT |
14790 | if ac_fn_c_try_compile "$LINENO" |
14791 | then : | |
ea1a3fa2 | 14792 | |
54445dc2 | 14793 | printf "%s\n" "#define HAVE_MOUNT_NOSUID 1" >>confdefs.h |
ea1a3fa2 NC |
14794 | |
14795 | ac_cv_mount_nosuid=yes | |
54445dc2 TT |
14796 | printf "%s\n" "yes" |
14797 | else $as_nop | |
ea1a3fa2 NC |
14798 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
14799 | /* end confdefs.h. */ | |
14800 | #include <sys/mount.h> | |
14801 | int | |
54445dc2 | 14802 | main (void) |
ea1a3fa2 NC |
14803 | { |
14804 | void *temp = (void *)(MNT_NOSUID); (void) temp; | |
14805 | ; | |
14806 | return 0; | |
14807 | } | |
14808 | _ACEOF | |
54445dc2 TT |
14809 | if ac_fn_c_try_compile "$LINENO" |
14810 | then : | |
ea1a3fa2 | 14811 | |
54445dc2 | 14812 | printf "%s\n" "#define HAVE_MOUNT_NOSUID 1" >>confdefs.h |
ea1a3fa2 NC |
14813 | |
14814 | ac_cv_mount_nosuid=yes | |
54445dc2 TT |
14815 | printf "%s\n" "yes" |
14816 | else $as_nop | |
ea1a3fa2 | 14817 | ac_cv_mount_nosuid=no |
54445dc2 | 14818 | printf "%s\n" "no" |
ea1a3fa2 NC |
14819 | |
14820 | fi | |
54445dc2 | 14821 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
ea1a3fa2 NC |
14822 | |
14823 | fi | |
54445dc2 | 14824 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
ea1a3fa2 NC |
14825 | |
14826 | ||
54445dc2 | 14827 | printf %s "checking for mount 'nodev' option... " |
ea1a3fa2 NC |
14828 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
14829 | /* end confdefs.h. */ | |
14830 | #include <sys/mount.h> | |
14831 | int | |
54445dc2 | 14832 | main (void) |
ea1a3fa2 NC |
14833 | { |
14834 | void *temp = (void *)(MS_NODEV); (void) temp; | |
14835 | ; | |
14836 | return 0; | |
14837 | } | |
14838 | _ACEOF | |
54445dc2 TT |
14839 | if ac_fn_c_try_compile "$LINENO" |
14840 | then : | |
ea1a3fa2 | 14841 | |
54445dc2 | 14842 | printf "%s\n" "#define HAVE_MOUNT_NODEV 1" >>confdefs.h |
ea1a3fa2 NC |
14843 | |
14844 | ac_cv_mount_nodev=yes | |
54445dc2 TT |
14845 | printf "%s\n" "yes" |
14846 | else $as_nop | |
ea1a3fa2 NC |
14847 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
14848 | /* end confdefs.h. */ | |
14849 | #include <sys/mount.h> | |
14850 | int | |
54445dc2 | 14851 | main (void) |
ea1a3fa2 NC |
14852 | { |
14853 | void *temp = (void *)(MNT_NODEV); (void) temp; | |
14854 | ; | |
14855 | return 0; | |
14856 | } | |
14857 | _ACEOF | |
54445dc2 TT |
14858 | if ac_fn_c_try_compile "$LINENO" |
14859 | then : | |
ea1a3fa2 | 14860 | |
54445dc2 | 14861 | printf "%s\n" "#define HAVE_MOUNT_NODEV 1" >>confdefs.h |
ea1a3fa2 NC |
14862 | |
14863 | ac_cv_mount_nodev=yes | |
54445dc2 TT |
14864 | printf "%s\n" "yes" |
14865 | else $as_nop | |
ea1a3fa2 | 14866 | ac_cv_mount_nodev=no |
54445dc2 | 14867 | printf "%s\n" "no" |
ea1a3fa2 NC |
14868 | |
14869 | fi | |
54445dc2 | 14870 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
ea1a3fa2 NC |
14871 | |
14872 | fi | |
54445dc2 | 14873 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
ea1a3fa2 | 14874 | |
4aece328 | 14875 | # Check whether --enable-lto was given. |
54445dc2 TT |
14876 | if test ${enable_lto+y} |
14877 | then : | |
4aece328 | 14878 | enableval=$enable_lto; |
54445dc2 | 14879 | else $as_nop |
139a3092 | 14880 | enable_lto=no |
4aece328 DW |
14881 | fi |
14882 | ||
14883 | if test "$enable_lto" = "yes" || test "$enable_lto" = "probe"; then | |
54445dc2 TT |
14884 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C compiler supports LTO" >&5 |
14885 | printf %s "checking if C compiler supports LTO... " >&6; } | |
4aece328 DW |
14886 | OLD_CFLAGS="$CFLAGS" |
14887 | OLD_LDFLAGS="$LDFLAGS" | |
49715704 | 14888 | LTO_FLAGS="-g -flto -ffat-lto-objects" |
4aece328 DW |
14889 | CFLAGS="$CFLAGS $LTO_FLAGS" |
14890 | LDFLAGS="$LDFLAGS $LTO_FLAGS" | |
14891 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14892 | /* end confdefs.h. */ | |
14893 | ||
14894 | int | |
54445dc2 | 14895 | main (void) |
4aece328 DW |
14896 | { |
14897 | ||
14898 | ; | |
14899 | return 0; | |
14900 | } | |
14901 | _ACEOF | |
54445dc2 TT |
14902 | if ac_fn_c_try_link "$LINENO" |
14903 | then : | |
14904 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14905 | printf "%s\n" "yes" >&6; } | |
4aece328 DW |
14906 | lto_cflags=$LTO_FLAGS |
14907 | lto_ldflags=$LTO_FLAGS | |
14908 | # Extract the first word of "gcc-ar", so it can be a program name with args. | |
14909 | set dummy gcc-ar; ac_word=$2 | |
54445dc2 TT |
14910 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14911 | printf %s "checking for $ac_word... " >&6; } | |
14912 | if test ${ac_cv_path_gcc_ar+y} | |
14913 | then : | |
14914 | printf %s "(cached) " >&6 | |
14915 | else $as_nop | |
4aece328 DW |
14916 | case $gcc_ar in |
14917 | [\\/]* | ?:[\\/]*) | |
14918 | ac_cv_path_gcc_ar="$gcc_ar" # Let the user override the test with a path. | |
14919 | ;; | |
14920 | *) | |
14921 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14922 | for as_dir in $PATH | |
14923 | do | |
14924 | IFS=$as_save_IFS | |
54445dc2 TT |
14925 | case $as_dir in #((( |
14926 | '') as_dir=./ ;; | |
14927 | */) ;; | |
14928 | *) as_dir=$as_dir/ ;; | |
14929 | esac | |
4aece328 | 14930 | for ac_exec_ext in '' $ac_executable_extensions; do |
54445dc2 TT |
14931 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
14932 | ac_cv_path_gcc_ar="$as_dir$ac_word$ac_exec_ext" | |
14933 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
4aece328 DW |
14934 | break 2 |
14935 | fi | |
14936 | done | |
14937 | done | |
14938 | IFS=$as_save_IFS | |
14939 | ||
14940 | ;; | |
14941 | esac | |
14942 | fi | |
14943 | gcc_ar=$ac_cv_path_gcc_ar | |
14944 | if test -n "$gcc_ar"; then | |
54445dc2 TT |
14945 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcc_ar" >&5 |
14946 | printf "%s\n" "$gcc_ar" >&6; } | |
4aece328 | 14947 | else |
54445dc2 TT |
14948 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14949 | printf "%s\n" "no" >&6; } | |
4aece328 DW |
14950 | fi |
14951 | ||
14952 | ||
14953 | # Extract the first word of "gcc-ranlib", so it can be a program name with args. | |
14954 | set dummy gcc-ranlib; ac_word=$2 | |
54445dc2 TT |
14955 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14956 | printf %s "checking for $ac_word... " >&6; } | |
14957 | if test ${ac_cv_path_gcc_ranlib+y} | |
14958 | then : | |
14959 | printf %s "(cached) " >&6 | |
14960 | else $as_nop | |
4aece328 DW |
14961 | case $gcc_ranlib in |
14962 | [\\/]* | ?:[\\/]*) | |
14963 | ac_cv_path_gcc_ranlib="$gcc_ranlib" # Let the user override the test with a path. | |
14964 | ;; | |
14965 | *) | |
14966 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14967 | for as_dir in $PATH | |
14968 | do | |
14969 | IFS=$as_save_IFS | |
54445dc2 TT |
14970 | case $as_dir in #((( |
14971 | '') as_dir=./ ;; | |
14972 | */) ;; | |
14973 | *) as_dir=$as_dir/ ;; | |
14974 | esac | |
4aece328 | 14975 | for ac_exec_ext in '' $ac_executable_extensions; do |
54445dc2 TT |
14976 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
14977 | ac_cv_path_gcc_ranlib="$as_dir$ac_word$ac_exec_ext" | |
14978 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
4aece328 DW |
14979 | break 2 |
14980 | fi | |
14981 | done | |
14982 | done | |
14983 | IFS=$as_save_IFS | |
14984 | ||
14985 | ;; | |
14986 | esac | |
14987 | fi | |
14988 | gcc_ranlib=$ac_cv_path_gcc_ranlib | |
14989 | if test -n "$gcc_ranlib"; then | |
54445dc2 TT |
14990 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcc_ranlib" >&5 |
14991 | printf "%s\n" "$gcc_ranlib" >&6; } | |
4aece328 | 14992 | else |
54445dc2 TT |
14993 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14994 | printf "%s\n" "no" >&6; } | |
4aece328 DW |
14995 | fi |
14996 | ||
14997 | ||
54445dc2 TT |
14998 | else $as_nop |
14999 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15000 | printf "%s\n" "no" >&6; } | |
4aece328 | 15001 | fi |
54445dc2 | 15002 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
4aece328 DW |
15003 | conftest$ac_exeext conftest.$ac_ext |
15004 | if test -x "$gcc_ar" && test -x "$gcc_ranlib"; then | |
15005 | have_lto=yes | |
15006 | AR="${gcc_ar}" | |
15007 | RANLIB="${gcc_ranlib}" | |
15008 | fi | |
15009 | CFLAGS="${OLD_CFLAGS}" | |
15010 | LDFLAGS="${OLD_LDFLAGS}" | |
15011 | ||
15012 | ||
15013 | ||
15014 | fi | |
15015 | if test "$enable_lto" = "yes" && test "$have_lto" != "yes"; then | |
15016 | as_fn_error $? "LTO not supported by compiler." "$LINENO" 5 | |
15017 | fi | |
1c2a76ae | 15018 | # Check whether --enable-ubsan was given. |
54445dc2 TT |
15019 | if test ${enable_ubsan+y} |
15020 | then : | |
1c2a76ae | 15021 | enableval=$enable_ubsan; |
54445dc2 | 15022 | else $as_nop |
1c2a76ae DW |
15023 | enable_ubsan=no |
15024 | fi | |
15025 | ||
15026 | if test "$enable_ubsan" = "yes" || test "$enable_ubsan" = "probe"; then | |
54445dc2 TT |
15027 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C compiler supports UBSAN" >&5 |
15028 | printf %s "checking if C compiler supports UBSAN... " >&6; } | |
1c2a76ae DW |
15029 | OLD_CFLAGS="$CFLAGS" |
15030 | OLD_LDFLAGS="$LDFLAGS" | |
15031 | UBSAN_FLAGS="-fsanitize=undefined" | |
15032 | CFLAGS="$CFLAGS $UBSAN_FLAGS" | |
15033 | LDFLAGS="$LDFLAGS $UBSAN_FLAGS" | |
15034 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15035 | /* end confdefs.h. */ | |
15036 | ||
15037 | int | |
54445dc2 | 15038 | main (void) |
1c2a76ae DW |
15039 | { |
15040 | ||
15041 | ; | |
15042 | return 0; | |
15043 | } | |
15044 | _ACEOF | |
54445dc2 TT |
15045 | if ac_fn_c_try_link "$LINENO" |
15046 | then : | |
15047 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15048 | printf "%s\n" "yes" >&6; } | |
1c2a76ae DW |
15049 | ubsan_cflags=$UBSAN_FLAGS |
15050 | ubsan_ldflags=$UBSAN_FLAGS | |
15051 | have_ubsan=yes | |
54445dc2 TT |
15052 | else $as_nop |
15053 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15054 | printf "%s\n" "no" >&6; } | |
1c2a76ae | 15055 | fi |
54445dc2 | 15056 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
1c2a76ae DW |
15057 | conftest$ac_exeext conftest.$ac_ext |
15058 | CFLAGS="${OLD_CFLAGS}" | |
15059 | LDFLAGS="${OLD_LDFLAGS}" | |
15060 | ||
15061 | ||
15062 | ||
15063 | fi | |
15064 | if test "$enable_ubsan" = "yes" && test "$have_ubsan" != "yes"; then | |
15065 | as_fn_error $? "UBSAN not supported by compiler." "$LINENO" 5 | |
15066 | fi | |
5e666e3d | 15067 | # Check whether --enable-addrsan was given. |
54445dc2 TT |
15068 | if test ${enable_addrsan+y} |
15069 | then : | |
5e666e3d | 15070 | enableval=$enable_addrsan; |
54445dc2 | 15071 | else $as_nop |
5e666e3d DW |
15072 | enable_addrsan=no |
15073 | fi | |
15074 | ||
15075 | if test "$enable_addrsan" = "yes" || test "$enable_addrsan" = "probe"; then | |
54445dc2 TT |
15076 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C compiler supports ADDRSAN" >&5 |
15077 | printf %s "checking if C compiler supports ADDRSAN... " >&6; } | |
5e666e3d DW |
15078 | OLD_CFLAGS="$CFLAGS" |
15079 | OLD_LDFLAGS="$LDFLAGS" | |
15080 | ADDRSAN_FLAGS="-fsanitize=address" | |
15081 | CFLAGS="$CFLAGS $ADDRSAN_FLAGS" | |
15082 | LDFLAGS="$LDFLAGS $ADDRSAN_FLAGS" | |
15083 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15084 | /* end confdefs.h. */ | |
15085 | ||
15086 | int | |
54445dc2 | 15087 | main (void) |
5e666e3d DW |
15088 | { |
15089 | ||
15090 | ; | |
15091 | return 0; | |
15092 | } | |
15093 | _ACEOF | |
54445dc2 TT |
15094 | if ac_fn_c_try_link "$LINENO" |
15095 | then : | |
15096 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15097 | printf "%s\n" "yes" >&6; } | |
5e666e3d DW |
15098 | addrsan_cflags=$ADDRSAN_FLAGS |
15099 | addrsan_ldflags=$ADDRSAN_FLAGS | |
15100 | have_addrsan=yes | |
54445dc2 TT |
15101 | else $as_nop |
15102 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15103 | printf "%s\n" "no" >&6; } | |
5e666e3d | 15104 | fi |
54445dc2 | 15105 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
5e666e3d DW |
15106 | conftest$ac_exeext conftest.$ac_ext |
15107 | CFLAGS="${OLD_CFLAGS}" | |
15108 | LDFLAGS="${OLD_LDFLAGS}" | |
15109 | ||
15110 | ||
15111 | ||
15112 | fi | |
15113 | if test "$enable_addrsan" = "yes" && test "$have_addrsan" != "yes"; then | |
15114 | as_fn_error $? "ADDRSAN not supported by compiler." "$LINENO" 5 | |
15115 | fi | |
bcca786b | 15116 | # Check whether --enable-threadsan was given. |
54445dc2 TT |
15117 | if test ${enable_threadsan+y} |
15118 | then : | |
bcca786b | 15119 | enableval=$enable_threadsan; |
54445dc2 | 15120 | else $as_nop |
bcca786b DW |
15121 | enable_threadsan=no |
15122 | fi | |
15123 | ||
15124 | if test "$enable_threadsan" = "yes" || test "$enable_threadsan" = "probe"; then | |
54445dc2 TT |
15125 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C compiler supports THREADSAN" >&5 |
15126 | printf %s "checking if C compiler supports THREADSAN... " >&6; } | |
bcca786b DW |
15127 | OLD_CFLAGS="$CFLAGS" |
15128 | OLD_LDFLAGS="$LDFLAGS" | |
15129 | THREADSAN_FLAGS="-fsanitize=thread" | |
15130 | CFLAGS="$CFLAGS $THREADSAN_FLAGS" | |
15131 | LDFLAGS="$LDFLAGS $THREADSAN_FLAGS" | |
15132 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15133 | /* end confdefs.h. */ | |
15134 | ||
15135 | int | |
54445dc2 | 15136 | main (void) |
bcca786b DW |
15137 | { |
15138 | ||
15139 | ; | |
15140 | return 0; | |
15141 | } | |
15142 | _ACEOF | |
54445dc2 TT |
15143 | if ac_fn_c_try_link "$LINENO" |
15144 | then : | |
15145 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15146 | printf "%s\n" "yes" >&6; } | |
bcca786b DW |
15147 | threadsan_cflags=$THREADSAN_FLAGS |
15148 | threadsan_ldflags=$THREADSAN_FLAGS | |
15149 | have_threadsan=yes | |
54445dc2 TT |
15150 | else $as_nop |
15151 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15152 | printf "%s\n" "no" >&6; } | |
bcca786b | 15153 | fi |
54445dc2 | 15154 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
bcca786b DW |
15155 | conftest$ac_exeext conftest.$ac_ext |
15156 | CFLAGS="${OLD_CFLAGS}" | |
15157 | LDFLAGS="${OLD_LDFLAGS}" | |
15158 | ||
15159 | ||
15160 | ||
15161 | fi | |
15162 | if test "$enable_threadsan" = "yes" && test "$have_threadsan" != "yes"; then | |
15163 | as_fn_error $? "THREADSAN not supported by compiler." "$LINENO" 5 | |
15164 | fi | |
15165 | if test "$have_threadsan" = "yes" && test "$have_addrsan" = "yes"; then | |
54445dc2 TT |
15166 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ADDRSAN and THREADSAN are not known to work together." >&5 |
15167 | printf "%s\n" "$as_me: WARNING: ADDRSAN and THREADSAN are not known to work together." >&2;} | |
bcca786b | 15168 | fi |
2869485b TT |
15169 | FUZZING_CMT="#" |
15170 | # Check whether --enable-fuzzing was given. | |
15171 | if test ${enable_fuzzing+y} | |
15172 | then : | |
15173 | enableval=$enable_fuzzing; | |
15174 | else $as_nop | |
15175 | enable_fuzzing=no | |
15176 | fi | |
15177 | ||
15178 | if test "$enable_fuzzing" = "yes" || test "$enable_fuzzing" = "probe"; then | |
15179 | ||
15180 | ||
15181 | ||
15182 | ||
15183 | ||
15184 | ||
15185 | ac_ext=cpp | |
15186 | ac_cpp='$CXXCPP $CPPFLAGS' | |
15187 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15188 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15189 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
15190 | if test -z "$CXX"; then | |
15191 | if test -n "$CCC"; then | |
15192 | CXX=$CCC | |
15193 | else | |
15194 | if test -n "$ac_tool_prefix"; then | |
15195 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++ | |
15196 | do | |
15197 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
15198 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
15199 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15200 | printf %s "checking for $ac_word... " >&6; } | |
15201 | if test ${ac_cv_prog_CXX+y} | |
15202 | then : | |
15203 | printf %s "(cached) " >&6 | |
15204 | else $as_nop | |
15205 | if test -n "$CXX"; then | |
15206 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
15207 | else | |
15208 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15209 | for as_dir in $PATH | |
15210 | do | |
15211 | IFS=$as_save_IFS | |
15212 | case $as_dir in #((( | |
15213 | '') as_dir=./ ;; | |
15214 | */) ;; | |
15215 | *) as_dir=$as_dir/ ;; | |
15216 | esac | |
15217 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15218 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
15219 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
15220 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
15221 | break 2 | |
15222 | fi | |
15223 | done | |
15224 | done | |
15225 | IFS=$as_save_IFS | |
15226 | ||
15227 | fi | |
15228 | fi | |
15229 | CXX=$ac_cv_prog_CXX | |
15230 | if test -n "$CXX"; then | |
15231 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | |
15232 | printf "%s\n" "$CXX" >&6; } | |
15233 | else | |
15234 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15235 | printf "%s\n" "no" >&6; } | |
15236 | fi | |
15237 | ||
15238 | ||
15239 | test -n "$CXX" && break | |
15240 | done | |
15241 | fi | |
15242 | if test -z "$CXX"; then | |
15243 | ac_ct_CXX=$CXX | |
15244 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++ | |
15245 | do | |
15246 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
15247 | set dummy $ac_prog; ac_word=$2 | |
15248 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15249 | printf %s "checking for $ac_word... " >&6; } | |
15250 | if test ${ac_cv_prog_ac_ct_CXX+y} | |
15251 | then : | |
15252 | printf %s "(cached) " >&6 | |
15253 | else $as_nop | |
15254 | if test -n "$ac_ct_CXX"; then | |
15255 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
15256 | else | |
15257 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15258 | for as_dir in $PATH | |
15259 | do | |
15260 | IFS=$as_save_IFS | |
15261 | case $as_dir in #((( | |
15262 | '') as_dir=./ ;; | |
15263 | */) ;; | |
15264 | *) as_dir=$as_dir/ ;; | |
15265 | esac | |
15266 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15267 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
15268 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
15269 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
15270 | break 2 | |
15271 | fi | |
15272 | done | |
15273 | done | |
15274 | IFS=$as_save_IFS | |
15275 | ||
15276 | fi | |
15277 | fi | |
15278 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
15279 | if test -n "$ac_ct_CXX"; then | |
15280 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | |
15281 | printf "%s\n" "$ac_ct_CXX" >&6; } | |
15282 | else | |
15283 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15284 | printf "%s\n" "no" >&6; } | |
15285 | fi | |
15286 | ||
15287 | ||
15288 | test -n "$ac_ct_CXX" && break | |
15289 | done | |
15290 | ||
15291 | if test "x$ac_ct_CXX" = x; then | |
15292 | CXX="g++" | |
15293 | else | |
15294 | case $cross_compiling:$ac_tool_warned in | |
15295 | yes:) | |
15296 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
15297 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
15298 | ac_tool_warned=yes ;; | |
15299 | esac | |
15300 | CXX=$ac_ct_CXX | |
15301 | fi | |
15302 | fi | |
15303 | ||
15304 | fi | |
15305 | fi | |
15306 | # Provide some information about the compiler. | |
15307 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 | |
15308 | set X $ac_compile | |
15309 | ac_compiler=$2 | |
15310 | for ac_option in --version -v -V -qversion; do | |
15311 | { { ac_try="$ac_compiler $ac_option >&5" | |
15312 | case "(($ac_try" in | |
15313 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15314 | *) ac_try_echo=$ac_try;; | |
15315 | esac | |
15316 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
15317 | printf "%s\n" "$ac_try_echo"; } >&5 | |
15318 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
15319 | ac_status=$? | |
15320 | if test -s conftest.err; then | |
15321 | sed '10a\ | |
15322 | ... rest of stderr output deleted ... | |
15323 | 10q' conftest.err >conftest.er1 | |
15324 | cat conftest.er1 >&5 | |
15325 | fi | |
15326 | rm -f conftest.er1 conftest.err | |
15327 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15328 | test $ac_status = 0; } | |
15329 | done | |
15330 | ||
15331 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5 | |
15332 | printf %s "checking whether the compiler supports GNU C++... " >&6; } | |
15333 | if test ${ac_cv_cxx_compiler_gnu+y} | |
15334 | then : | |
15335 | printf %s "(cached) " >&6 | |
15336 | else $as_nop | |
15337 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15338 | /* end confdefs.h. */ | |
15339 | ||
15340 | int | |
15341 | main (void) | |
15342 | { | |
15343 | #ifndef __GNUC__ | |
15344 | choke me | |
15345 | #endif | |
15346 | ||
15347 | ; | |
15348 | return 0; | |
15349 | } | |
15350 | _ACEOF | |
15351 | if ac_fn_cxx_try_compile "$LINENO" | |
15352 | then : | |
15353 | ac_compiler_gnu=yes | |
15354 | else $as_nop | |
15355 | ac_compiler_gnu=no | |
15356 | fi | |
15357 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
15358 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
15359 | ||
15360 | fi | |
15361 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 | |
15362 | printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; } | |
15363 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
15364 | ||
15365 | if test $ac_compiler_gnu = yes; then | |
15366 | GXX=yes | |
15367 | else | |
15368 | GXX= | |
15369 | fi | |
15370 | ac_test_CXXFLAGS=${CXXFLAGS+y} | |
15371 | ac_save_CXXFLAGS=$CXXFLAGS | |
15372 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 | |
15373 | printf %s "checking whether $CXX accepts -g... " >&6; } | |
15374 | if test ${ac_cv_prog_cxx_g+y} | |
15375 | then : | |
15376 | printf %s "(cached) " >&6 | |
15377 | else $as_nop | |
15378 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
15379 | ac_cxx_werror_flag=yes | |
15380 | ac_cv_prog_cxx_g=no | |
15381 | CXXFLAGS="-g" | |
15382 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15383 | /* end confdefs.h. */ | |
15384 | ||
15385 | int | |
15386 | main (void) | |
15387 | { | |
15388 | ||
15389 | ; | |
15390 | return 0; | |
15391 | } | |
15392 | _ACEOF | |
15393 | if ac_fn_cxx_try_compile "$LINENO" | |
15394 | then : | |
15395 | ac_cv_prog_cxx_g=yes | |
15396 | else $as_nop | |
15397 | CXXFLAGS="" | |
15398 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15399 | /* end confdefs.h. */ | |
15400 | ||
15401 | int | |
15402 | main (void) | |
15403 | { | |
15404 | ||
15405 | ; | |
15406 | return 0; | |
15407 | } | |
15408 | _ACEOF | |
15409 | if ac_fn_cxx_try_compile "$LINENO" | |
15410 | then : | |
15411 | ||
15412 | else $as_nop | |
15413 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
15414 | CXXFLAGS="-g" | |
15415 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15416 | /* end confdefs.h. */ | |
15417 | ||
15418 | int | |
15419 | main (void) | |
15420 | { | |
15421 | ||
15422 | ; | |
15423 | return 0; | |
15424 | } | |
15425 | _ACEOF | |
15426 | if ac_fn_cxx_try_compile "$LINENO" | |
15427 | then : | |
15428 | ac_cv_prog_cxx_g=yes | |
15429 | fi | |
15430 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
15431 | fi | |
15432 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
15433 | fi | |
15434 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
15435 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
15436 | fi | |
15437 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
15438 | printf "%s\n" "$ac_cv_prog_cxx_g" >&6; } | |
15439 | if test $ac_test_CXXFLAGS; then | |
15440 | CXXFLAGS=$ac_save_CXXFLAGS | |
15441 | elif test $ac_cv_prog_cxx_g = yes; then | |
15442 | if test "$GXX" = yes; then | |
15443 | CXXFLAGS="-g -O2" | |
15444 | else | |
15445 | CXXFLAGS="-g" | |
15446 | fi | |
15447 | else | |
15448 | if test "$GXX" = yes; then | |
15449 | CXXFLAGS="-O2" | |
15450 | else | |
15451 | CXXFLAGS= | |
15452 | fi | |
15453 | fi | |
15454 | ac_prog_cxx_stdcxx=no | |
15455 | if test x$ac_prog_cxx_stdcxx = xno | |
15456 | then : | |
15457 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5 | |
15458 | printf %s "checking for $CXX option to enable C++11 features... " >&6; } | |
a30e56b9 | 15459 | if test ${ac_cv_prog_cxx_cxx11+y} |
2869485b TT |
15460 | then : |
15461 | printf %s "(cached) " >&6 | |
15462 | else $as_nop | |
a30e56b9 | 15463 | ac_cv_prog_cxx_cxx11=no |
2869485b TT |
15464 | ac_save_CXX=$CXX |
15465 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15466 | /* end confdefs.h. */ | |
15467 | $ac_cxx_conftest_cxx11_program | |
15468 | _ACEOF | |
15469 | for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA | |
15470 | do | |
15471 | CXX="$ac_save_CXX $ac_arg" | |
15472 | if ac_fn_cxx_try_compile "$LINENO" | |
15473 | then : | |
15474 | ac_cv_prog_cxx_cxx11=$ac_arg | |
15475 | fi | |
15476 | rm -f core conftest.err conftest.$ac_objext conftest.beam | |
15477 | test "x$ac_cv_prog_cxx_cxx11" != "xno" && break | |
15478 | done | |
15479 | rm -f conftest.$ac_ext | |
15480 | CXX=$ac_save_CXX | |
15481 | fi | |
15482 | ||
15483 | if test "x$ac_cv_prog_cxx_cxx11" = xno | |
15484 | then : | |
15485 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
15486 | printf "%s\n" "unsupported" >&6; } | |
15487 | else $as_nop | |
15488 | if test "x$ac_cv_prog_cxx_cxx11" = x | |
15489 | then : | |
15490 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
15491 | printf "%s\n" "none needed" >&6; } | |
15492 | else $as_nop | |
15493 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5 | |
15494 | printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; } | |
15495 | CXX="$CXX $ac_cv_prog_cxx_cxx11" | |
15496 | fi | |
15497 | ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11 | |
15498 | ac_prog_cxx_stdcxx=cxx11 | |
15499 | fi | |
15500 | fi | |
15501 | if test x$ac_prog_cxx_stdcxx = xno | |
15502 | then : | |
15503 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5 | |
15504 | printf %s "checking for $CXX option to enable C++98 features... " >&6; } | |
a30e56b9 | 15505 | if test ${ac_cv_prog_cxx_cxx98+y} |
2869485b TT |
15506 | then : |
15507 | printf %s "(cached) " >&6 | |
15508 | else $as_nop | |
a30e56b9 | 15509 | ac_cv_prog_cxx_cxx98=no |
2869485b TT |
15510 | ac_save_CXX=$CXX |
15511 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15512 | /* end confdefs.h. */ | |
15513 | $ac_cxx_conftest_cxx98_program | |
15514 | _ACEOF | |
15515 | for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA | |
15516 | do | |
15517 | CXX="$ac_save_CXX $ac_arg" | |
15518 | if ac_fn_cxx_try_compile "$LINENO" | |
15519 | then : | |
15520 | ac_cv_prog_cxx_cxx98=$ac_arg | |
15521 | fi | |
15522 | rm -f core conftest.err conftest.$ac_objext conftest.beam | |
15523 | test "x$ac_cv_prog_cxx_cxx98" != "xno" && break | |
15524 | done | |
15525 | rm -f conftest.$ac_ext | |
15526 | CXX=$ac_save_CXX | |
15527 | fi | |
15528 | ||
15529 | if test "x$ac_cv_prog_cxx_cxx98" = xno | |
15530 | then : | |
15531 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
15532 | printf "%s\n" "unsupported" >&6; } | |
15533 | else $as_nop | |
15534 | if test "x$ac_cv_prog_cxx_cxx98" = x | |
15535 | then : | |
15536 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
15537 | printf "%s\n" "none needed" >&6; } | |
15538 | else $as_nop | |
15539 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5 | |
15540 | printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; } | |
15541 | CXX="$CXX $ac_cv_prog_cxx_cxx98" | |
15542 | fi | |
15543 | ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98 | |
15544 | ac_prog_cxx_stdcxx=cxx98 | |
15545 | fi | |
15546 | fi | |
15547 | ||
15548 | ac_ext=c | |
15549 | ac_cpp='$CPP $CPPFLAGS' | |
15550 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15551 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15552 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
15553 | ||
15554 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C compiler supports fuzzing sanitizer" >&5 | |
15555 | printf %s "checking if C compiler supports fuzzing sanitizer... " >&6; } | |
15556 | ac_ext=cpp | |
15557 | ac_cpp='$CXXCPP $CPPFLAGS' | |
15558 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15559 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15560 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
15561 | ||
15562 | OLD_CXXFLAGS="$CXXFLAGS" | |
15563 | OLD_LDFLAGS="$LDFLAGS" | |
15564 | FUZZER_FLAGS="-fsanitize=fuzzer" | |
15565 | CXXFLAGS="$CXXFLAGS $FUZZER_FLAGS" | |
15566 | LDFLAGS="$LDFLAGS $FUZZER_FLAGS" | |
15567 | ||
15568 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15569 | /* end confdefs.h. */ | |
15570 | ||
15571 | #include <stddef.h> | |
15572 | #include <stdint.h> | |
15573 | ||
15574 | int | |
15575 | main (void) | |
15576 | { | |
15577 | return 0; | |
15578 | ; | |
15579 | return 0; | |
15580 | } | |
15581 | _ACEOF | |
15582 | if ac_fn_cxx_try_compile "$LINENO" | |
15583 | then : | |
15584 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15585 | printf "%s\n" "yes" >&6; } | |
15586 | fuzzer_cflags=$FUZZER_FLAGS | |
15587 | fuzzer_ldflags=$FUZZER_FLAGS | |
15588 | FUZZING_CMT= | |
15589 | have_fuzzer=yes | |
15590 | else $as_nop | |
15591 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15592 | printf "%s\n" "no" >&6; } | |
15593 | as_fn_error $? "fuzzing requested but not available" "$LINENO" 5 | |
15594 | fi | |
15595 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
15596 | CXXFLAGS="${OLD_CXXFLAGS}" | |
15597 | LDFLAGS="${OLD_LDFLAGS}" | |
15598 | ac_ext=c | |
15599 | ac_cpp='$CPP $CPPFLAGS' | |
15600 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15601 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15602 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
15603 | ||
15604 | ||
15605 | ||
15606 | ||
15607 | fi | |
15608 | if test "$enable_fuzzer" = "yes" && test "$have_fuzzer" != "yes"; then | |
15609 | as_fn_error $? "Fuzzing not supported by compiler." "$LINENO" 5 | |
15610 | fi | |
15611 | ||
e6f2bda3 | 15612 | LINUX_CMT="#" |
fff45483 TT |
15613 | CYGWIN_CMT="#" |
15614 | UNIX_CMT= | |
e6f2bda3 TT |
15615 | case "$host_os" in |
15616 | linux*) | |
15617 | LINUX_CMT= | |
fff45483 TT |
15618 | ;; |
15619 | cygwin) | |
15620 | CYGWIN_CMT= | |
15621 | UNIX_CMT="#" | |
e6f2bda3 TT |
15622 | ;; |
15623 | esac | |
15624 | ||
93636bde TT |
15625 | |
15626 | ||
5ce368f0 DW |
15627 | E2SCRUB_CMT="$LINUX_CMT" |
15628 | ||
50e1e10f | 15629 | case "$host_os" in |
93636bde | 15630 | linux* | gnu* | k*bsd*-gnu) |
a4b2d3ce TT |
15631 | if test "$prefix" = NONE -a "$root_prefix" = NONE ; then |
15632 | root_prefix=""; | |
54445dc2 TT |
15633 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5 |
15634 | printf "%s\n" "On $host_os systems, root_prefix defaults to ''" >&6; } | |
fc6d9d51 TT |
15635 | fi |
15636 | ;; | |
15637 | esac | |
fc6d9d51 | 15638 | case "$host_os" in |
93636bde | 15639 | linux* | gnu* | k*bsd*-gnu) |
fc6d9d51 | 15640 | if test "$prefix" = NONE ; then |
a4b2d3ce | 15641 | prefix="/usr"; |
54445dc2 TT |
15642 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5 |
15643 | printf "%s\n" "On $host_os systems, prefix defaults to /usr" >&6; } | |
bff61a7a | 15644 | if test "$mandir" = '${prefix}/man' ; then |
54445dc2 TT |
15645 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5 |
15646 | printf "%s\n" "...and mandir defaults to /usr/share/man" >&6; } | |
bff61a7a TT |
15647 | mandir=/usr/share/man |
15648 | fi | |
50e1e10f TT |
15649 | fi |
15650 | ;; | |
15651 | esac | |
a4b2d3ce | 15652 | if test "$root_prefix" = NONE ; then |
ffe1991f | 15653 | if test "$prefix" = NONE ; then |
a4b2d3ce TT |
15654 | root_prefix="$ac_default_prefix" |
15655 | else | |
15656 | root_prefix="$prefix" | |
15657 | fi | |
b5ffeade TT |
15658 | root_bindir=$bindir |
15659 | root_sbindir=$sbindir | |
15660 | root_libdir=$libdir | |
15661 | root_sysconfdir=$sysconfdir | |
15662 | else | |
15663 | root_bindir='${root_prefix}/bin' | |
15664 | root_sbindir='${root_prefix}/sbin' | |
15665 | root_libdir='${root_prefix}/lib' | |
15666 | root_sysconfdir='${root_prefix}/etc' | |
a4b2d3ce | 15667 | fi |
c4ef11c5 TT |
15668 | if test "$bindir" != '${exec_prefix}/bin'; then |
15669 | root_bindir=$bindir | |
54445dc2 TT |
15670 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5 |
15671 | printf "%s\n" "Setting root_bindir to $root_bindir" >&6; } | |
c4ef11c5 TT |
15672 | fi |
15673 | if test "$sbindir" != '${exec_prefix}/sbin'; then | |
15674 | root_sbindir=$sbindir | |
54445dc2 TT |
15675 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5 |
15676 | printf "%s\n" "Setting root_sbindir to $root_sbindir" >&6; } | |
c4ef11c5 TT |
15677 | fi |
15678 | if test "$libdir" != '${exec_prefix}/lib'; then | |
15679 | root_libdir=$libdir | |
54445dc2 TT |
15680 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5 |
15681 | printf "%s\n" "Setting root_libdir to $root_libdir" >&6; } | |
c4ef11c5 TT |
15682 | fi |
15683 | if test "$sysconfdir" != '${prefix}/etc'; then | |
15684 | root_sysconfdir=$sysconfdir | |
54445dc2 TT |
15685 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5 |
15686 | printf "%s\n" "Setting root_sysconfdir to $root_sysconfdir" >&6; } | |
c4ef11c5 | 15687 | fi |
a4b2d3ce | 15688 | |
93636bde TT |
15689 | |
15690 | ||
15691 | ||
15692 | ||
55e00a25 TT |
15693 | |
15694 | # Check whether --with-multiarch was given. | |
54445dc2 TT |
15695 | if test ${with_multiarch+y} |
15696 | then : | |
d7fa4103 TT |
15697 | withval=$with_multiarch; if test "$withval" = "lib64"; then |
15698 | libdir=/usr/lib64 | |
15699 | root_libdir=/lib64 | |
15700 | else | |
15701 | libdir=$libdir/$withval | |
15702 | root_libdir=$root_libdir/$withval | |
15703 | fi | |
55e00a25 TT |
15704 | |
15705 | fi | |
a2df5894 | 15706 | |
54445dc2 TT |
15707 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5 |
15708 | printf %s "checking whether we can link with -static... " >&6; } | |
15709 | if test ${ac_cv_e2fsprogs_use_static+y} | |
15710 | then : | |
15711 | printf %s "(cached) " >&6 | |
15712 | else $as_nop | |
fd1677e8 | 15713 | SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS_STATIC -static" |
57aa50d4 | 15714 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b0cacab0 | 15715 | /* end confdefs.h. */ |
ae851482 | 15716 | #include <stdio.h> |
b0cacab0 | 15717 | int |
54445dc2 | 15718 | main (void) |
b0cacab0 | 15719 | { |
ae851482 | 15720 | fflush(stdout); |
b0cacab0 TT |
15721 | ; |
15722 | return 0; | |
15723 | } | |
15724 | _ACEOF | |
54445dc2 TT |
15725 | if ac_fn_c_try_link "$LINENO" |
15726 | then : | |
ae851482 | 15727 | ac_cv_e2fsprogs_use_static=yes |
54445dc2 | 15728 | else $as_nop |
57aa50d4 | 15729 | ac_cv_e2fsprogs_use_static=no |
ae851482 | 15730 | fi |
54445dc2 | 15731 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
57aa50d4 | 15732 | conftest$ac_exeext conftest.$ac_ext |
ae851482 TT |
15733 | LDFLAGS=$SAVE_LDFLAGS |
15734 | fi | |
50e1e10f | 15735 | |
defde784 TT |
15736 | case "$host_os" in |
15737 | solaris2.*) | |
b0cacab0 | 15738 | ac_cv_e2fsprogs_use_static=no |
defde784 TT |
15739 | ;; |
15740 | esac | |
54445dc2 TT |
15741 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5 |
15742 | printf "%s\n" "$ac_cv_e2fsprogs_use_static" >&6; } | |
ae851482 | 15743 | if test $ac_cv_e2fsprogs_use_static = yes; then |
fd1677e8 | 15744 | LDFLAGS_STATIC="$LDFLAGS_STATIC -static" |
ae851482 | 15745 | fi |
50e1e10f | 15746 | |
07a0db15 TT |
15747 | case "$host_os" in |
15748 | darwin*) | |
54445dc2 TT |
15749 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5 |
15750 | printf "%s\n" "Using Apple Darwin / GNU libintl workaround" >&6; } | |
d1154eb4 | 15751 | |
54445dc2 | 15752 | printf "%s\n" "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h |
07a0db15 TT |
15753 | |
15754 | ;; | |
15755 | esac | |
50e1e10f TT |
15756 | if test "$cross_compiling" = yes ; then |
15757 | DO_TEST_SUITE= | |
15758 | else | |
15759 | DO_TEST_SUITE=check | |
15760 | fi | |
15761 | ||
d1154eb4 TT |
15762 | INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib' |
15763 | if test -n "$CPPFLAGS" ; then | |
15764 | INCLUDES="$INCLUDES $CPPFLAGS" | |
15765 | fi | |
c6f35b8a | 15766 | if test "$USE_INCLUDED_LIBINTL" = "yes" ; then |
d1154eb4 | 15767 | INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl' |
c6f35b8a | 15768 | fi |
6c59a665 TT |
15769 | if test -n "$WITH_DIET_LIBC" ; then |
15770 | INCLUDES="$INCLUDES -D_REENTRANT" | |
15771 | fi | |
6eb00fb7 EB |
15772 | case "$host_os" in |
15773 | mingw*) | |
15774 | INCLUDES=$INCLUDES' -I$(top_srcdir)/include/mingw' | |
15775 | ;; | |
15776 | esac | |
c6f35b8a | 15777 | |
dd947da2 | 15778 | if test $cross_compiling = no; then |
2873927d | 15779 | BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H" |
dd947da2 | 15780 | BUILD_LDFLAGS="$LDFLAGS" |
dd947da2 TT |
15781 | fi |
15782 | ||
15783 | ||
fd1677e8 TT |
15784 | CFLAGS_SHLIB=${CFLAGS_SHLIB:-$CFLAGS} |
15785 | CFLAGS_STLIB=${CFLAGS_STLIB:-$CFLAGS} | |
15786 | LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS} | |
15787 | ||
15788 | ||
15789 | ||
5ce368f0 DW |
15790 | |
15791 | ||
15792 | # Check whether --with-udev_rules_dir was given. | |
54445dc2 TT |
15793 | if test ${with_udev_rules_dir+y} |
15794 | then : | |
5ce368f0 | 15795 | withval=$with_udev_rules_dir; |
54445dc2 | 15796 | else $as_nop |
5ce368f0 DW |
15797 | with_udev_rules_dir=yes |
15798 | fi | |
15799 | ||
54445dc2 TT |
15800 | if test "x${with_udev_rules_dir}" != "xno" |
15801 | then : | |
5ce368f0 | 15802 | |
54445dc2 TT |
15803 | if test "x${with_udev_rules_dir}" = "xyes" |
15804 | then : | |
5ce368f0 DW |
15805 | |
15806 | ||
15807 | pkg_failed=no | |
54445dc2 TT |
15808 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for udev" >&5 |
15809 | printf %s "checking for udev... " >&6; } | |
5ce368f0 DW |
15810 | |
15811 | if test -n "$udev_CFLAGS"; then | |
15812 | pkg_cv_udev_CFLAGS="$udev_CFLAGS" | |
15813 | elif test -n "$PKG_CONFIG"; then | |
15814 | if test -n "$PKG_CONFIG" && \ | |
54445dc2 | 15815 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udev\""; } >&5 |
5ce368f0 DW |
15816 | ($PKG_CONFIG --exists --print-errors "udev") 2>&5 |
15817 | ac_status=$? | |
54445dc2 | 15818 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
5ce368f0 DW |
15819 | test $ac_status = 0; }; then |
15820 | pkg_cv_udev_CFLAGS=`$PKG_CONFIG --cflags "udev" 2>/dev/null` | |
15821 | test "x$?" != "x0" && pkg_failed=yes | |
15822 | else | |
15823 | pkg_failed=yes | |
15824 | fi | |
15825 | else | |
15826 | pkg_failed=untried | |
15827 | fi | |
15828 | if test -n "$udev_LIBS"; then | |
15829 | pkg_cv_udev_LIBS="$udev_LIBS" | |
15830 | elif test -n "$PKG_CONFIG"; then | |
15831 | if test -n "$PKG_CONFIG" && \ | |
54445dc2 | 15832 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udev\""; } >&5 |
5ce368f0 DW |
15833 | ($PKG_CONFIG --exists --print-errors "udev") 2>&5 |
15834 | ac_status=$? | |
54445dc2 | 15835 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
5ce368f0 DW |
15836 | test $ac_status = 0; }; then |
15837 | pkg_cv_udev_LIBS=`$PKG_CONFIG --libs "udev" 2>/dev/null` | |
15838 | test "x$?" != "x0" && pkg_failed=yes | |
15839 | else | |
15840 | pkg_failed=yes | |
15841 | fi | |
15842 | else | |
15843 | pkg_failed=untried | |
15844 | fi | |
15845 | ||
15846 | ||
15847 | ||
15848 | if test $pkg_failed = yes; then | |
a30e56b9 | 15849 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
54445dc2 | 15850 | printf "%s\n" "no" >&6; } |
5ce368f0 DW |
15851 | |
15852 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
15853 | _pkg_short_errors_supported=yes | |
15854 | else | |
15855 | _pkg_short_errors_supported=no | |
15856 | fi | |
15857 | if test $_pkg_short_errors_supported = yes; then | |
a30e56b9 | 15858 | udev_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "udev" 2>&1` |
5ce368f0 | 15859 | else |
a30e56b9 | 15860 | udev_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "udev" 2>&1` |
5ce368f0 | 15861 | fi |
a30e56b9 TT |
15862 | # Put the nasty error message in config.log where it belongs |
15863 | echo "$udev_PKG_ERRORS" >&5 | |
5ce368f0 DW |
15864 | |
15865 | ||
15866 | with_udev_rules_dir="" | |
15867 | ||
15868 | elif test $pkg_failed = untried; then | |
a30e56b9 | 15869 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
54445dc2 | 15870 | printf "%s\n" "no" >&6; } |
5ce368f0 DW |
15871 | |
15872 | with_udev_rules_dir="" | |
15873 | ||
15874 | else | |
a30e56b9 TT |
15875 | udev_CFLAGS=$pkg_cv_udev_CFLAGS |
15876 | udev_LIBS=$pkg_cv_udev_LIBS | |
54445dc2 TT |
15877 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
15878 | printf "%s\n" "yes" >&6; } | |
5ce368f0 DW |
15879 | |
15880 | with_udev_rules_dir="$($PKG_CONFIG --variable=udevdir udev)/rules.d" | |
15881 | ||
15882 | fi | |
15883 | ||
15884 | fi | |
54445dc2 TT |
15885 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for udev rules dir" >&5 |
15886 | printf %s "checking for udev rules dir... " >&6; } | |
5ce368f0 | 15887 | pkg_udev_rules_dir="${with_udev_rules_dir}" |
54445dc2 TT |
15888 | if test -n "${pkg_udev_rules_dir}" |
15889 | then : | |
5ce368f0 | 15890 | |
54445dc2 TT |
15891 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${pkg_udev_rules_dir}" >&5 |
15892 | printf "%s\n" "${pkg_udev_rules_dir}" >&6; } | |
5ce368f0 DW |
15893 | have_udev="yes" |
15894 | ||
54445dc2 | 15895 | else $as_nop |
5ce368f0 | 15896 | |
54445dc2 TT |
15897 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15898 | printf "%s\n" "no" >&6; } | |
5ce368f0 DW |
15899 | have_udev="no" |
15900 | ||
15901 | fi | |
15902 | ||
54445dc2 | 15903 | else $as_nop |
5ce368f0 DW |
15904 | |
15905 | have_udev="disabled" | |
15906 | ||
15907 | fi | |
15908 | ||
15909 | ||
15910 | ||
a2df5894 DW |
15911 | |
15912 | # Check whether --with-crond_dir was given. | |
54445dc2 TT |
15913 | if test ${with_crond_dir+y} |
15914 | then : | |
a2df5894 | 15915 | withval=$with_crond_dir; |
54445dc2 | 15916 | else $as_nop |
a2df5894 DW |
15917 | with_crond_dir=yes |
15918 | fi | |
15919 | ||
54445dc2 TT |
15920 | if test "x${with_crond_dir}" != "xno" |
15921 | then : | |
a2df5894 | 15922 | |
54445dc2 TT |
15923 | if test "x${with_crond_dir}" = "xyes" |
15924 | then : | |
a2df5894 | 15925 | |
54445dc2 TT |
15926 | if test -d "/etc/cron.d" |
15927 | then : | |
a2df5894 | 15928 | with_crond_dir="/etc/cron.d" |
54445dc2 | 15929 | else $as_nop |
188bf39a | 15930 | have_crond="no"; with_crond_dir="" |
a2df5894 DW |
15931 | fi |
15932 | ||
15933 | fi | |
54445dc2 TT |
15934 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for system crontab dir" >&5 |
15935 | printf %s "checking for system crontab dir... " >&6; } | |
a2df5894 | 15936 | crond_dir="${with_crond_dir}" |
54445dc2 TT |
15937 | if test -n "${crond_dir}" |
15938 | then : | |
a2df5894 | 15939 | |
54445dc2 TT |
15940 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${crond_dir}" >&5 |
15941 | printf "%s\n" "${crond_dir}" >&6; } | |
a2df5894 DW |
15942 | have_crond="yes" |
15943 | ||
54445dc2 | 15944 | else $as_nop |
a2df5894 | 15945 | |
54445dc2 TT |
15946 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15947 | printf "%s\n" "no" >&6; } | |
a2df5894 DW |
15948 | have_crond="no" |
15949 | ||
15950 | fi | |
15951 | ||
54445dc2 | 15952 | else $as_nop |
a2df5894 DW |
15953 | |
15954 | have_crond="disabled" | |
15955 | ||
15956 | fi | |
15957 | ||
15958 | ||
15959 | ||
15960 | ||
15961 | # Check whether --with-systemd_unit_dir was given. | |
54445dc2 TT |
15962 | if test ${with_systemd_unit_dir+y} |
15963 | then : | |
a2df5894 | 15964 | withval=$with_systemd_unit_dir; |
54445dc2 | 15965 | else $as_nop |
a2df5894 DW |
15966 | with_systemd_unit_dir=yes |
15967 | fi | |
15968 | ||
54445dc2 TT |
15969 | if test "x${with_systemd_unit_dir}" != "xno" |
15970 | then : | |
a2df5894 | 15971 | |
54445dc2 TT |
15972 | if test "x${with_systemd_unit_dir}" = "xyes" |
15973 | then : | |
a2df5894 DW |
15974 | |
15975 | ||
15976 | pkg_failed=no | |
54445dc2 TT |
15977 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for systemd" >&5 |
15978 | printf %s "checking for systemd... " >&6; } | |
a2df5894 DW |
15979 | |
15980 | if test -n "$systemd_CFLAGS"; then | |
15981 | pkg_cv_systemd_CFLAGS="$systemd_CFLAGS" | |
15982 | elif test -n "$PKG_CONFIG"; then | |
15983 | if test -n "$PKG_CONFIG" && \ | |
54445dc2 | 15984 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5 |
a2df5894 DW |
15985 | ($PKG_CONFIG --exists --print-errors "systemd") 2>&5 |
15986 | ac_status=$? | |
54445dc2 | 15987 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
a2df5894 DW |
15988 | test $ac_status = 0; }; then |
15989 | pkg_cv_systemd_CFLAGS=`$PKG_CONFIG --cflags "systemd" 2>/dev/null` | |
15990 | test "x$?" != "x0" && pkg_failed=yes | |
15991 | else | |
15992 | pkg_failed=yes | |
15993 | fi | |
15994 | else | |
15995 | pkg_failed=untried | |
15996 | fi | |
15997 | if test -n "$systemd_LIBS"; then | |
15998 | pkg_cv_systemd_LIBS="$systemd_LIBS" | |
15999 | elif test -n "$PKG_CONFIG"; then | |
16000 | if test -n "$PKG_CONFIG" && \ | |
54445dc2 | 16001 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5 |
a2df5894 DW |
16002 | ($PKG_CONFIG --exists --print-errors "systemd") 2>&5 |
16003 | ac_status=$? | |
54445dc2 | 16004 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
a2df5894 DW |
16005 | test $ac_status = 0; }; then |
16006 | pkg_cv_systemd_LIBS=`$PKG_CONFIG --libs "systemd" 2>/dev/null` | |
16007 | test "x$?" != "x0" && pkg_failed=yes | |
16008 | else | |
16009 | pkg_failed=yes | |
16010 | fi | |
16011 | else | |
16012 | pkg_failed=untried | |
16013 | fi | |
16014 | ||
16015 | ||
16016 | ||
16017 | if test $pkg_failed = yes; then | |
a30e56b9 | 16018 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
54445dc2 | 16019 | printf "%s\n" "no" >&6; } |
a2df5894 DW |
16020 | |
16021 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
16022 | _pkg_short_errors_supported=yes | |
16023 | else | |
16024 | _pkg_short_errors_supported=no | |
16025 | fi | |
16026 | if test $_pkg_short_errors_supported = yes; then | |
a30e56b9 | 16027 | systemd_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "systemd" 2>&1` |
a2df5894 | 16028 | else |
a30e56b9 | 16029 | systemd_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "systemd" 2>&1` |
a2df5894 | 16030 | fi |
a30e56b9 TT |
16031 | # Put the nasty error message in config.log where it belongs |
16032 | echo "$systemd_PKG_ERRORS" >&5 | |
a2df5894 DW |
16033 | |
16034 | ||
16035 | with_systemd_unit_dir="" | |
16036 | ||
16037 | elif test $pkg_failed = untried; then | |
a30e56b9 | 16038 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
54445dc2 | 16039 | printf "%s\n" "no" >&6; } |
a2df5894 DW |
16040 | |
16041 | with_systemd_unit_dir="" | |
16042 | ||
16043 | else | |
a30e56b9 TT |
16044 | systemd_CFLAGS=$pkg_cv_systemd_CFLAGS |
16045 | systemd_LIBS=$pkg_cv_systemd_LIBS | |
54445dc2 TT |
16046 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
16047 | printf "%s\n" "yes" >&6; } | |
a2df5894 DW |
16048 | |
16049 | with_systemd_unit_dir="$($PKG_CONFIG --variable=systemdsystemunitdir systemd)" | |
16050 | ||
16051 | fi | |
16052 | ||
16053 | ||
16054 | fi | |
54445dc2 TT |
16055 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for systemd system unit dir" >&5 |
16056 | printf %s "checking for systemd system unit dir... " >&6; } | |
a2df5894 | 16057 | systemd_system_unit_dir="${with_systemd_unit_dir}" |
54445dc2 TT |
16058 | if test -n "${systemd_system_unit_dir}" |
16059 | then : | |
a2df5894 | 16060 | |
54445dc2 TT |
16061 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${systemd_system_unit_dir}" >&5 |
16062 | printf "%s\n" "${systemd_system_unit_dir}" >&6; } | |
a2df5894 DW |
16063 | have_systemd="yes" |
16064 | ||
54445dc2 | 16065 | else $as_nop |
a2df5894 | 16066 | |
54445dc2 TT |
16067 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16068 | printf "%s\n" "no" >&6; } | |
a2df5894 DW |
16069 | have_systemd="no" |
16070 | ||
16071 | fi | |
16072 | ||
54445dc2 | 16073 | else $as_nop |
a2df5894 DW |
16074 | |
16075 | have_systemd="disabled" | |
16076 | ||
16077 | fi | |
16078 | ||
16079 | ||
d1d44c14 PAA |
16080 | OS_IO_FILE="" |
16081 | case "$host_os" in | |
6eb00fb7 | 16082 | mingw*) |
d1d44c14 PAA |
16083 | OS_IO_FILE=windows_io |
16084 | ;; | |
16085 | *) | |
16086 | OS_IO_FILE=unix_io | |
16087 | ;; | |
16088 | esac | |
a2df5894 | 16089 | |
a22e7f16 | 16090 | |
50e1e10f TT |
16091 | test -d lib || mkdir lib |
16092 | test -d include || mkdir include | |
16093 | test -d include/linux || mkdir include/linux | |
defde784 | 16094 | test -d include/asm || mkdir include/asm |
44dfb378 TT |
16095 | if test -z "$UUID_CMT" ; then |
16096 | uuid_out_list="lib/uuid/Makefile lib/uuid/uuid.pc \ | |
16097 | lib/uuid/uuid_types.h" | |
16098 | fi | |
16099 | if test -z "$BLKID_CMT" ; then | |
16100 | blkid_out_list="lib/blkid/Makefile lib/blkid/blkid.pc \ | |
16101 | lib/blkid/blkid_types.h" | |
16102 | fi | |
e5f0f3ee | 16103 | for i in MCONFIG Makefile \ |
183c73b0 | 16104 | util/Makefile util/subst.conf util/gen-tarball util/install-symlink \ |
4ea7ea00 TT |
16105 | lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \ |
16106 | lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \ | |
f34af41b | 16107 | $uuid_out_list $blkid_out_list lib/support/Makefile \ |
44dfb378 | 16108 | lib/ss/ss.pc lib/et/com_err.pc lib/e2p/e2p.pc lib/ext2fs/ext2fs.pc \ |
921f4ad5 | 16109 | misc/Makefile ext2ed/Makefile e2fsck/Makefile \ |
94ba8c75 | 16110 | debugfs/Makefile tests/Makefile tests/progs/Makefile \ |
2869485b TT |
16111 | tests/fuzz/Makefile resize/Makefile doc/Makefile \ |
16112 | po/Makefile.in scrub/Makefile; do | |
94ba8c75 TT |
16113 | if test -d `dirname ${srcdir}/$i` ; then |
16114 | outlist="$outlist $i" | |
16115 | fi | |
16116 | done | |
e1052144 TT |
16117 | ac_config_files="$ac_config_files $outlist" |
16118 | ||
b0cacab0 | 16119 | cat >confcache <<\_ACEOF |
50e1e10f TT |
16120 | # This file is a shell script that caches the results of configure |
16121 | # tests run on this system so they can be shared between configure | |
b0cacab0 TT |
16122 | # scripts and configure runs, see configure's option --config-cache. |
16123 | # It is not useful on other systems. If it contains results you don't | |
16124 | # want to keep, you may remove or edit it. | |
50e1e10f | 16125 | # |
b0cacab0 TT |
16126 | # config.status only pays attention to the cache file if you give it |
16127 | # the --recheck option to rerun configure. | |
50e1e10f | 16128 | # |
b0cacab0 TT |
16129 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
16130 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
16131 | # following values. | |
16132 | ||
16133 | _ACEOF | |
16134 | ||
21c84b71 TT |
16135 | # The following way of writing the cache mishandles newlines in values, |
16136 | # but we know of no workaround that is simple, portable, and efficient. | |
e1052144 | 16137 | # So, we kill variables containing newlines. |
50e1e10f TT |
16138 | # Ultrix sh set writes to stderr and can't be redirected directly, |
16139 | # and sets the high bit in the cache file unless we assign to the vars. | |
e1052144 TT |
16140 | ( |
16141 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
16142 | eval ac_val=\$$ac_var | |
16143 | case $ac_val in #( | |
16144 | *${as_nl}*) | |
16145 | case $ac_var in #( | |
54445dc2 TT |
16146 | *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
16147 | printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
e1052144 TT |
16148 | esac |
16149 | case $ac_var in #( | |
16150 | _ | IFS | as_nl) ;; #( | |
39fd3d4f | 16151 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
57aa50d4 | 16152 | *) { eval $ac_var=; unset $ac_var;} ;; |
e1052144 TT |
16153 | esac ;; |
16154 | esac | |
16155 | done | |
16156 | ||
b0cacab0 | 16157 | (set) 2>&1 | |
e1052144 TT |
16158 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
16159 | *${as_nl}ac_space=\ *) | |
57aa50d4 TT |
16160 | # `set' does not quote correctly, so add quotes: double-quote |
16161 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
b0cacab0 TT |
16162 | sed -n \ |
16163 | "s/'/'\\\\''/g; | |
16164 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
e1052144 | 16165 | ;; #( |
b0cacab0 TT |
16166 | *) |
16167 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
e1052144 | 16168 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
b0cacab0 | 16169 | ;; |
e1052144 TT |
16170 | esac | |
16171 | sort | |
16172 | ) | | |
b0cacab0 | 16173 | sed ' |
e1052144 | 16174 | /^ac_cv_env_/b end |
b0cacab0 | 16175 | t clear |
e1052144 | 16176 | :clear |
54445dc2 | 16177 | s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ |
b0cacab0 | 16178 | t end |
e1052144 TT |
16179 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
16180 | :end' >>confcache | |
16181 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
16182 | if test -w "$cache_file"; then | |
d6a4bcb5 | 16183 | if test "x$cache_file" != "x/dev/null"; then |
54445dc2 TT |
16184 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
16185 | printf "%s\n" "$as_me: updating cache $cache_file" >&6;} | |
d6a4bcb5 TB |
16186 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
16187 | cat confcache >"$cache_file" | |
16188 | else | |
16189 | case $cache_file in #( | |
16190 | */* | ?:*) | |
16191 | mv -f confcache "$cache_file"$$ && | |
16192 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
16193 | *) | |
16194 | mv -f confcache "$cache_file" ;; | |
16195 | esac | |
16196 | fi | |
16197 | fi | |
50e1e10f | 16198 | else |
54445dc2 TT |
16199 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
16200 | printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} | |
50e1e10f TT |
16201 | fi |
16202 | fi | |
16203 | rm -f confcache | |
16204 | ||
50e1e10f TT |
16205 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
16206 | # Let make expand exec_prefix. | |
16207 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
16208 | ||
d1154eb4 | 16209 | DEFS=-DHAVE_CONFIG_H |
b0cacab0 TT |
16210 | |
16211 | ac_libobjs= | |
16212 | ac_ltlibobjs= | |
d6a4bcb5 | 16213 | U= |
b0cacab0 TT |
16214 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
16215 | # 1. Remove the extension, and $U if already installed. | |
e1052144 | 16216 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
54445dc2 | 16217 | ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` |
e1052144 TT |
16218 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
16219 | # will be set to the directory where LIBOBJS objects are built. | |
57aa50d4 TT |
16220 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
16221 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
b0cacab0 TT |
16222 | done |
16223 | LIBOBJS=$ac_libobjs | |
50e1e10f | 16224 | |
b0cacab0 TT |
16225 | LTLIBOBJS=$ac_ltlibobjs |
16226 | ||
16227 | ||
16228 | ||
39fd3d4f | 16229 | |
d6a4bcb5 | 16230 | : "${CONFIG_STATUS=./config.status}" |
39fd3d4f | 16231 | ac_write_fail=0 |
b0cacab0 TT |
16232 | ac_clean_files_save=$ac_clean_files |
16233 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
54445dc2 TT |
16234 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
16235 | printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} | |
57aa50d4 TT |
16236 | as_write_fail=0 |
16237 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
b0cacab0 TT |
16238 | #! $SHELL |
16239 | # Generated by $as_me. | |
93636bde | 16240 | # Run this file to recreate the current configuration. |
93636bde | 16241 | # Compiler output produced by configure, useful for debugging |
b0cacab0 | 16242 | # configure, is in config.log if it exists. |
07a0db15 | 16243 | |
b0cacab0 TT |
16244 | debug=false |
16245 | ac_cs_recheck=false | |
16246 | ac_cs_silent=false | |
b0cacab0 | 16247 | |
57aa50d4 TT |
16248 | SHELL=\${CONFIG_SHELL-$SHELL} |
16249 | export SHELL | |
16250 | _ASEOF | |
16251 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
16252 | ## -------------------- ## | |
16253 | ## M4sh Initialization. ## | |
16254 | ## -------------------- ## | |
b0cacab0 | 16255 | |
29a5deed TT |
16256 | # Be more Bourne compatible |
16257 | DUALCASE=1; export DUALCASE # for MKS sh | |
54445dc2 TT |
16258 | as_nop=: |
16259 | if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 | |
16260 | then : | |
b0cacab0 TT |
16261 | emulate sh |
16262 | NULLCMD=: | |
39fd3d4f | 16263 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
b0cacab0 TT |
16264 | # is contrary to our usage. Disable this feature. |
16265 | alias -g '${1+"$@"}'='"$@"' | |
e1052144 | 16266 | setopt NO_GLOB_SUBST |
54445dc2 | 16267 | else $as_nop |
57aa50d4 TT |
16268 | case `(set -o) 2>/dev/null` in #( |
16269 | *posix*) : | |
16270 | set -o posix ;; #( | |
16271 | *) : | |
16272 | ;; | |
29a5deed | 16273 | esac |
b0cacab0 | 16274 | fi |
29a5deed TT |
16275 | |
16276 | ||
54445dc2 TT |
16277 | |
16278 | # Reset variables that may have inherited troublesome values from | |
16279 | # the environment. | |
16280 | ||
16281 | # IFS needs to be set, to space, tab, and newline, in precisely that order. | |
16282 | # (If _AS_PATH_WALK were called with IFS unset, it would have the | |
16283 | # side effect of setting IFS to empty, thus disabling word splitting.) | |
16284 | # Quoting is to prevent editors from complaining about space-tab. | |
39fd3d4f SJR |
16285 | as_nl=' |
16286 | ' | |
16287 | export as_nl | |
54445dc2 TT |
16288 | IFS=" "" $as_nl" |
16289 | ||
16290 | PS1='$ ' | |
16291 | PS2='> ' | |
16292 | PS4='+ ' | |
16293 | ||
16294 | # Ensure predictable behavior from utilities with locale-dependent output. | |
16295 | LC_ALL=C | |
16296 | export LC_ALL | |
16297 | LANGUAGE=C | |
16298 | export LANGUAGE | |
16299 | ||
16300 | # We cannot yet rely on "unset" to work, but we need these variables | |
16301 | # to be unset--not just set to an empty or harmless value--now, to | |
16302 | # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct | |
16303 | # also avoids known problems related to "unset" and subshell syntax | |
16304 | # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). | |
16305 | for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH | |
16306 | do eval test \${$as_var+y} \ | |
16307 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
16308 | done | |
16309 | ||
16310 | # Ensure that fds 0, 1, and 2 are open. | |
16311 | if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi | |
16312 | if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi | |
16313 | if (exec 3>&2) ; then :; else exec 2>/dev/null; fi | |
39fd3d4f SJR |
16314 | |
16315 | # The user is always right. | |
54445dc2 | 16316 | if ${PATH_SEPARATOR+false} :; then |
39fd3d4f SJR |
16317 | PATH_SEPARATOR=: |
16318 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
16319 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
16320 | PATH_SEPARATOR=';' | |
16321 | } | |
e1052144 TT |
16322 | fi |
16323 | ||
b0cacab0 | 16324 | |
e1052144 | 16325 | # Find who we are. Look in the path if we contain no directory separator. |
d6a4bcb5 | 16326 | as_myself= |
57aa50d4 | 16327 | case $0 in #(( |
e1052144 TT |
16328 | *[\\/]* ) as_myself=$0 ;; |
16329 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16330 | for as_dir in $PATH | |
16331 | do | |
16332 | IFS=$as_save_IFS | |
54445dc2 TT |
16333 | case $as_dir in #((( |
16334 | '') as_dir=./ ;; | |
16335 | */) ;; | |
16336 | *) as_dir=$as_dir/ ;; | |
16337 | esac | |
16338 | test -r "$as_dir$0" && as_myself=$as_dir$0 && break | |
57aa50d4 | 16339 | done |
e1052144 TT |
16340 | IFS=$as_save_IFS |
16341 | ||
16342 | ;; | |
16343 | esac | |
16344 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
16345 | # in which case we are not to be found in the path. | |
16346 | if test "x$as_myself" = x; then | |
16347 | as_myself=$0 | |
16348 | fi | |
16349 | if test ! -f "$as_myself"; then | |
54445dc2 | 16350 | printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
57aa50d4 | 16351 | exit 1 |
e1052144 TT |
16352 | fi |
16353 | ||
57aa50d4 TT |
16354 | |
16355 | ||
d6a4bcb5 TB |
16356 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
16357 | # ---------------------------------------- | |
57aa50d4 TT |
16358 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
16359 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
d6a4bcb5 | 16360 | # script with STATUS, using 1 if that was 0. |
57aa50d4 TT |
16361 | as_fn_error () |
16362 | { | |
d6a4bcb5 TB |
16363 | as_status=$1; test $as_status -eq 0 && as_status=1 |
16364 | if test "$4"; then | |
16365 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
54445dc2 | 16366 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
57aa50d4 | 16367 | fi |
54445dc2 | 16368 | printf "%s\n" "$as_me: error: $2" >&2 |
57aa50d4 TT |
16369 | as_fn_exit $as_status |
16370 | } # as_fn_error | |
16371 | ||
16372 | ||
54445dc2 | 16373 | |
57aa50d4 TT |
16374 | # as_fn_set_status STATUS |
16375 | # ----------------------- | |
16376 | # Set $? to STATUS, without forking. | |
16377 | as_fn_set_status () | |
16378 | { | |
16379 | return $1 | |
16380 | } # as_fn_set_status | |
16381 | ||
16382 | # as_fn_exit STATUS | |
16383 | # ----------------- | |
16384 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
16385 | as_fn_exit () | |
16386 | { | |
16387 | set +e | |
16388 | as_fn_set_status $1 | |
16389 | exit $1 | |
16390 | } # as_fn_exit | |
16391 | ||
16392 | # as_fn_unset VAR | |
16393 | # --------------- | |
16394 | # Portably unset VAR. | |
16395 | as_fn_unset () | |
16396 | { | |
16397 | { eval $1=; unset $1;} | |
16398 | } | |
16399 | as_unset=as_fn_unset | |
54445dc2 | 16400 | |
57aa50d4 TT |
16401 | # as_fn_append VAR VALUE |
16402 | # ---------------------- | |
16403 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
16404 | # advantage of any shell optimizations that allow amortized linear growth over | |
16405 | # repeated appends, instead of the typical quadratic growth present in naive | |
16406 | # implementations. | |
54445dc2 TT |
16407 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null |
16408 | then : | |
57aa50d4 TT |
16409 | eval 'as_fn_append () |
16410 | { | |
16411 | eval $1+=\$2 | |
16412 | }' | |
54445dc2 | 16413 | else $as_nop |
57aa50d4 TT |
16414 | as_fn_append () |
16415 | { | |
16416 | eval $1=\$$1\$2 | |
16417 | } | |
16418 | fi # as_fn_append | |
16419 | ||
16420 | # as_fn_arith ARG... | |
16421 | # ------------------ | |
16422 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
16423 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
16424 | # must be portable across $(()) and expr. | |
54445dc2 TT |
16425 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null |
16426 | then : | |
57aa50d4 TT |
16427 | eval 'as_fn_arith () |
16428 | { | |
16429 | as_val=$(( $* )) | |
16430 | }' | |
54445dc2 | 16431 | else $as_nop |
57aa50d4 TT |
16432 | as_fn_arith () |
16433 | { | |
16434 | as_val=`expr "$@" || test $? -eq 1` | |
16435 | } | |
16436 | fi # as_fn_arith | |
16437 | ||
16438 | ||
e1052144 TT |
16439 | if expr a : '\(a\)' >/dev/null 2>&1 && |
16440 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
b0cacab0 TT |
16441 | as_expr=expr |
16442 | else | |
16443 | as_expr=false | |
16444 | fi | |
16445 | ||
e1052144 | 16446 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
b0cacab0 TT |
16447 | as_basename=basename |
16448 | else | |
16449 | as_basename=false | |
16450 | fi | |
16451 | ||
57aa50d4 TT |
16452 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
16453 | as_dirname=dirname | |
16454 | else | |
16455 | as_dirname=false | |
16456 | fi | |
b0cacab0 | 16457 | |
e1052144 | 16458 | as_me=`$as_basename -- "$0" || |
b0cacab0 TT |
16459 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
16460 | X"$0" : 'X\(//\)$' \| \ | |
e1052144 | 16461 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
54445dc2 | 16462 | printf "%s\n" X/"$0" | |
e1052144 TT |
16463 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
16464 | s//\1/ | |
16465 | q | |
16466 | } | |
16467 | /^X\/\(\/\/\)$/{ | |
16468 | s//\1/ | |
16469 | q | |
16470 | } | |
16471 | /^X\/\(\/\).*/{ | |
16472 | s//\1/ | |
16473 | q | |
16474 | } | |
16475 | s/.*/./; q'` | |
b0cacab0 | 16476 | |
57aa50d4 TT |
16477 | # Avoid depending upon Character Ranges. |
16478 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
16479 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
16480 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
16481 | as_cr_digits='0123456789' | |
16482 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
e1052144 | 16483 | |
54445dc2 TT |
16484 | |
16485 | # Determine whether it's possible to make 'echo' print without a newline. | |
16486 | # These variables are no longer used directly by Autoconf, but are AC_SUBSTed | |
16487 | # for compatibility with existing Makefiles. | |
e1052144 | 16488 | ECHO_C= ECHO_N= ECHO_T= |
57aa50d4 | 16489 | case `echo -n x` in #((((( |
e1052144 | 16490 | -n*) |
57aa50d4 | 16491 | case `echo 'xy\c'` in |
e1052144 | 16492 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
57aa50d4 TT |
16493 | xy) ECHO_C='\c';; |
16494 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
16495 | ECHO_T=' ';; | |
e1052144 TT |
16496 | esac;; |
16497 | *) | |
16498 | ECHO_N='-n';; | |
b0cacab0 | 16499 | esac |
b0cacab0 | 16500 | |
54445dc2 TT |
16501 | # For backward compatibility with old third-party macros, we provide |
16502 | # the shell variables $as_echo and $as_echo_n. New code should use | |
16503 | # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. | |
16504 | as_echo='printf %s\n' | |
16505 | as_echo_n='printf %s' | |
16506 | ||
b0cacab0 | 16507 | rm -f conf$$ conf$$.exe conf$$.file |
e1052144 TT |
16508 | if test -d conf$$.dir; then |
16509 | rm -f conf$$.dir/conf$$.file | |
16510 | else | |
16511 | rm -f conf$$.dir | |
39fd3d4f SJR |
16512 | mkdir conf$$.dir 2>/dev/null |
16513 | fi | |
16514 | if (echo >conf$$.file) 2>/dev/null; then | |
16515 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
16516 | as_ln_s='ln -s' | |
16517 | # ... but there are two gotchas: | |
16518 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
16519 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
d6a4bcb5 | 16520 | # In both cases, we have to default to `cp -pR'. |
39fd3d4f | 16521 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
d6a4bcb5 | 16522 | as_ln_s='cp -pR' |
39fd3d4f SJR |
16523 | elif ln conf$$.file conf$$ 2>/dev/null; then |
16524 | as_ln_s=ln | |
16525 | else | |
d6a4bcb5 | 16526 | as_ln_s='cp -pR' |
39fd3d4f | 16527 | fi |
b0cacab0 | 16528 | else |
d6a4bcb5 | 16529 | as_ln_s='cp -pR' |
b0cacab0 | 16530 | fi |
e1052144 TT |
16531 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
16532 | rmdir conf$$.dir 2>/dev/null | |
b0cacab0 | 16533 | |
57aa50d4 TT |
16534 | |
16535 | # as_fn_mkdir_p | |
16536 | # ------------- | |
16537 | # Create "$as_dir" as a directory, including parents if necessary. | |
16538 | as_fn_mkdir_p () | |
16539 | { | |
16540 | ||
16541 | case $as_dir in #( | |
16542 | -*) as_dir=./$as_dir;; | |
16543 | esac | |
16544 | test -d "$as_dir" || eval $as_mkdir_p || { | |
16545 | as_dirs= | |
16546 | while :; do | |
16547 | case $as_dir in #( | |
54445dc2 | 16548 | *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
57aa50d4 TT |
16549 | *) as_qdir=$as_dir;; |
16550 | esac | |
16551 | as_dirs="'$as_qdir' $as_dirs" | |
16552 | as_dir=`$as_dirname -- "$as_dir" || | |
16553 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
16554 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
16555 | X"$as_dir" : 'X\(//\)$' \| \ | |
16556 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
54445dc2 | 16557 | printf "%s\n" X"$as_dir" | |
57aa50d4 TT |
16558 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
16559 | s//\1/ | |
16560 | q | |
16561 | } | |
16562 | /^X\(\/\/\)[^/].*/{ | |
16563 | s//\1/ | |
16564 | q | |
16565 | } | |
16566 | /^X\(\/\/\)$/{ | |
16567 | s//\1/ | |
16568 | q | |
16569 | } | |
16570 | /^X\(\/\).*/{ | |
16571 | s//\1/ | |
16572 | q | |
16573 | } | |
16574 | s/.*/./; q'` | |
16575 | test -d "$as_dir" && break | |
16576 | done | |
16577 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
d6a4bcb5 | 16578 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
57aa50d4 TT |
16579 | |
16580 | ||
16581 | } # as_fn_mkdir_p | |
b0cacab0 | 16582 | if mkdir -p . 2>/dev/null; then |
57aa50d4 | 16583 | as_mkdir_p='mkdir -p "$as_dir"' |
b0cacab0 TT |
16584 | else |
16585 | test -d ./-p && rmdir ./-p | |
16586 | as_mkdir_p=false | |
16587 | fi | |
16588 | ||
d6a4bcb5 TB |
16589 | |
16590 | # as_fn_executable_p FILE | |
16591 | # ----------------------- | |
16592 | # Test if FILE is an executable regular file. | |
16593 | as_fn_executable_p () | |
16594 | { | |
16595 | test -f "$1" && test -x "$1" | |
16596 | } # as_fn_executable_p | |
16597 | as_test_x='test -x' | |
16598 | as_executable_p=as_fn_executable_p | |
b0cacab0 TT |
16599 | |
16600 | # Sed expression to map a string onto a valid CPP name. | |
16601 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
16602 | ||
16603 | # Sed expression to map a string onto a valid variable name. | |
16604 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
16605 | ||
16606 | ||
b0cacab0 | 16607 | exec 6>&1 |
57aa50d4 TT |
16608 | ## ----------------------------------- ## |
16609 | ## Main body of $CONFIG_STATUS script. ## | |
16610 | ## ----------------------------------- ## | |
16611 | _ASEOF | |
16612 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
b0cacab0 | 16613 | |
57aa50d4 TT |
16614 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
16615 | # Save the log message, to keep $0 and so on meaningful, and to | |
b0cacab0 | 16616 | # report actual input values of CONFIG_FILES etc. instead of their |
e1052144 TT |
16617 | # values after options handling. |
16618 | ac_log=" | |
b0cacab0 | 16619 | This file was extended by $as_me, which was |
54445dc2 | 16620 | generated by GNU Autoconf 2.71. Invocation command line was |
b0cacab0 TT |
16621 | |
16622 | CONFIG_FILES = $CONFIG_FILES | |
16623 | CONFIG_HEADERS = $CONFIG_HEADERS | |
16624 | CONFIG_LINKS = $CONFIG_LINKS | |
16625 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
16626 | $ $0 $@ | |
16627 | ||
e1052144 TT |
16628 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
16629 | " | |
16630 | ||
b0cacab0 TT |
16631 | _ACEOF |
16632 | ||
39fd3d4f SJR |
16633 | case $ac_config_files in *" |
16634 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
16635 | esac | |
16636 | ||
d1154eb4 TT |
16637 | case $ac_config_headers in *" |
16638 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
16639 | esac | |
39fd3d4f SJR |
16640 | |
16641 | ||
16642 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
b0cacab0 | 16643 | # Files that config.status was made for. |
e1052144 | 16644 | config_files="$ac_config_files" |
d1154eb4 | 16645 | config_headers="$ac_config_headers" |
e1052144 | 16646 | config_commands="$ac_config_commands" |
b0cacab0 | 16647 | |
e1052144 | 16648 | _ACEOF |
b0cacab0 | 16649 | |
39fd3d4f | 16650 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
b0cacab0 | 16651 | ac_cs_usage="\ |
57aa50d4 TT |
16652 | \`$as_me' instantiates files and other configuration actions |
16653 | from templates according to the current configuration. Unless the files | |
16654 | and actions are specified as TAGs, all are instantiated by default. | |
b0cacab0 | 16655 | |
57aa50d4 | 16656 | Usage: $0 [OPTION]... [TAG]... |
b0cacab0 TT |
16657 | |
16658 | -h, --help print this help, then exit | |
29a5deed | 16659 | -V, --version print version number and configuration settings, then exit |
61ef2474 | 16660 | --config print configuration, then exit |
39fd3d4f SJR |
16661 | -q, --quiet, --silent |
16662 | do not print progress messages | |
b0cacab0 TT |
16663 | -d, --debug don't remove temporary files |
16664 | --recheck update $as_me by reconfiguring in the same conditions | |
39fd3d4f SJR |
16665 | --file=FILE[:TEMPLATE] |
16666 | instantiate the configuration file FILE | |
d1154eb4 TT |
16667 | --header=FILE[:TEMPLATE] |
16668 | instantiate the configuration header FILE | |
b0cacab0 TT |
16669 | |
16670 | Configuration files: | |
16671 | $config_files | |
16672 | ||
d1154eb4 TT |
16673 | Configuration headers: |
16674 | $config_headers | |
16675 | ||
b0cacab0 TT |
16676 | Configuration commands: |
16677 | $config_commands | |
16678 | ||
57aa50d4 | 16679 | Report bugs to the package provider." |
b0cacab0 | 16680 | |
e1052144 | 16681 | _ACEOF |
54445dc2 TT |
16682 | ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` |
16683 | ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` | |
39fd3d4f | 16684 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
54445dc2 | 16685 | ac_cs_config='$ac_cs_config_escaped' |
b0cacab0 TT |
16686 | ac_cs_version="\\ |
16687 | config.status | |
54445dc2 | 16688 | configured by $0, generated by GNU Autoconf 2.71, |
61ef2474 | 16689 | with options \\"\$ac_cs_config\\" |
b0cacab0 | 16690 | |
54445dc2 | 16691 | Copyright (C) 2021 Free Software Foundation, Inc. |
b0cacab0 TT |
16692 | This config.status script is free software; the Free Software Foundation |
16693 | gives unlimited permission to copy, distribute and modify it." | |
e1052144 TT |
16694 | |
16695 | ac_pwd='$ac_pwd' | |
16696 | srcdir='$srcdir' | |
16697 | INSTALL='$INSTALL' | |
93613951 | 16698 | MKDIR_P='$MKDIR_P' |
39fd3d4f SJR |
16699 | AWK='$AWK' |
16700 | test -n "\$AWK" || AWK=awk | |
b0cacab0 TT |
16701 | _ACEOF |
16702 | ||
39fd3d4f SJR |
16703 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
16704 | # The default lists apply if the user does not specify any file. | |
b0cacab0 TT |
16705 | ac_need_defaults=: |
16706 | while test $# != 0 | |
07a0db15 | 16707 | do |
b0cacab0 | 16708 | case $1 in |
d6a4bcb5 | 16709 | --*=?*) |
e1052144 TT |
16710 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
16711 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
b0cacab0 TT |
16712 | ac_shift=: |
16713 | ;; | |
d6a4bcb5 TB |
16714 | --*=) |
16715 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
16716 | ac_optarg= | |
16717 | ac_shift=: | |
16718 | ;; | |
e1052144 | 16719 | *) |
b0cacab0 TT |
16720 | ac_option=$1 |
16721 | ac_optarg=$2 | |
16722 | ac_shift=shift | |
16723 | ;; | |
b0cacab0 TT |
16724 | esac |
16725 | ||
16726 | case $ac_option in | |
16727 | # Handling of the options. | |
93636bde | 16728 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
b0cacab0 | 16729 | ac_cs_recheck=: ;; |
e1052144 | 16730 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
54445dc2 | 16731 | printf "%s\n" "$ac_cs_version"; exit ;; |
61ef2474 | 16732 | --config | --confi | --conf | --con | --co | --c ) |
54445dc2 | 16733 | printf "%s\n" "$ac_cs_config"; exit ;; |
e1052144 | 16734 | --debug | --debu | --deb | --de | --d | -d ) |
b0cacab0 TT |
16735 | debug=: ;; |
16736 | --file | --fil | --fi | --f ) | |
16737 | $ac_shift | |
39fd3d4f | 16738 | case $ac_optarg in |
54445dc2 | 16739 | *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
d6a4bcb5 | 16740 | '') as_fn_error $? "missing file argument" ;; |
39fd3d4f | 16741 | esac |
57aa50d4 | 16742 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
b0cacab0 | 16743 | ac_need_defaults=false;; |
d1154eb4 TT |
16744 | --header | --heade | --head | --hea ) |
16745 | $ac_shift | |
16746 | case $ac_optarg in | |
54445dc2 | 16747 | *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
d1154eb4 TT |
16748 | esac |
16749 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
16750 | ac_need_defaults=false;; | |
16751 | --he | --h) | |
16752 | # Conflict between --help and --header | |
d6a4bcb5 | 16753 | as_fn_error $? "ambiguous option: \`$1' |
d1154eb4 TT |
16754 | Try \`$0 --help' for more information.";; |
16755 | --help | --hel | -h ) | |
54445dc2 | 16756 | printf "%s\n" "$ac_cs_usage"; exit ;; |
b0cacab0 TT |
16757 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
16758 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
16759 | ac_cs_silent=: ;; | |
16760 | ||
16761 | # This is an error. | |
d6a4bcb5 | 16762 | -*) as_fn_error $? "unrecognized option: \`$1' |
57aa50d4 | 16763 | Try \`$0 --help' for more information." ;; |
b0cacab0 | 16764 | |
57aa50d4 | 16765 | *) as_fn_append ac_config_targets " $1" |
e1052144 | 16766 | ac_need_defaults=false ;; |
b0cacab0 | 16767 | |
07a0db15 | 16768 | esac |
b0cacab0 | 16769 | shift |
07a0db15 TT |
16770 | done |
16771 | ||
b0cacab0 TT |
16772 | ac_configure_extra_args= |
16773 | ||
16774 | if $ac_cs_silent; then | |
16775 | exec 6>/dev/null | |
16776 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
16777 | fi | |
16778 | ||
16779 | _ACEOF | |
39fd3d4f | 16780 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
b0cacab0 | 16781 | if \$ac_cs_recheck; then |
d6a4bcb5 | 16782 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
39fd3d4f | 16783 | shift |
54445dc2 | 16784 | \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 |
39fd3d4f | 16785 | CONFIG_SHELL='$SHELL' |
e1052144 | 16786 | export CONFIG_SHELL |
39fd3d4f | 16787 | exec "\$@" |
b0cacab0 | 16788 | fi |
07a0db15 | 16789 | |
b0cacab0 | 16790 | _ACEOF |
39fd3d4f | 16791 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
e1052144 TT |
16792 | exec 5>>config.log |
16793 | { | |
16794 | echo | |
16795 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
16796 | ## Running $as_me. ## | |
16797 | _ASBOX | |
54445dc2 | 16798 | printf "%s\n" "$ac_log" |
e1052144 | 16799 | } >&5 |
07a0db15 | 16800 | |
e1052144 | 16801 | _ACEOF |
39fd3d4f | 16802 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
b0cacab0 | 16803 | # |
e1052144 | 16804 | # INIT-COMMANDS |
b0cacab0 | 16805 | # |
b0cacab0 | 16806 | # Capture the value of obsolete ALL_LINGUAS because we need it to compute |
bdcd5f22 TT |
16807 | # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. |
16808 | OBSOLETE_ALL_LINGUAS="$ALL_LINGUAS" | |
b0cacab0 TT |
16809 | # Capture the value of LINGUAS because we need it to compute CATALOGS. |
16810 | LINGUAS="${LINGUAS-%UNSET%}" | |
16811 | ||
16812 | ||
16813 | _ACEOF | |
16814 | ||
39fd3d4f | 16815 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
e1052144 TT |
16816 | |
16817 | # Handling of arguments. | |
b0cacab0 TT |
16818 | for ac_config_target in $ac_config_targets |
16819 | do | |
e1052144 | 16820 | case $ac_config_target in |
d1154eb4 | 16821 | "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;; |
93613951 | 16822 | "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;; |
e1052144 TT |
16823 | "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;; |
16824 | ||
d6a4bcb5 | 16825 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
b0cacab0 TT |
16826 | esac |
16827 | done | |
16828 | ||
e1052144 | 16829 | |
b0cacab0 TT |
16830 | # If the user did not use the arguments to specify the items to instantiate, |
16831 | # then the envvar interface is used. Set only those that are not. | |
16832 | # We use the long form for the default assignment because of an extremely | |
16833 | # bizarre bug on SunOS 4.1.3. | |
16834 | if $ac_need_defaults; then | |
54445dc2 TT |
16835 | test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files |
16836 | test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers | |
16837 | test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands | |
b0cacab0 TT |
16838 | fi |
16839 | ||
16840 | # Have a temporary directory for convenience. Make it in the build tree | |
e1052144 | 16841 | # simply because there is no reason against having it here, and in addition, |
b0cacab0 | 16842 | # creating and moving files from /tmp can sometimes cause problems. |
e1052144 TT |
16843 | # Hook for its removal unless debugging. |
16844 | # Note that there is a small window in which the directory will not be cleaned: | |
16845 | # after its creation but before its name has been assigned to `$tmp'. | |
b0cacab0 TT |
16846 | $debug || |
16847 | { | |
d6a4bcb5 | 16848 | tmp= ac_tmp= |
e1052144 | 16849 | trap 'exit_status=$? |
d6a4bcb5 TB |
16850 | : "${ac_tmp:=$tmp}" |
16851 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
e1052144 | 16852 | ' 0 |
57aa50d4 | 16853 | trap 'as_fn_exit 1' 1 2 13 15 |
b0cacab0 | 16854 | } |
b0cacab0 TT |
16855 | # Create a (secure) tmp directory for tmp files. |
16856 | ||
16857 | { | |
e1052144 | 16858 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
d6a4bcb5 | 16859 | test -d "$tmp" |
b0cacab0 TT |
16860 | } || |
16861 | { | |
e1052144 TT |
16862 | tmp=./conf$$-$RANDOM |
16863 | (umask 077 && mkdir "$tmp") | |
d6a4bcb5 TB |
16864 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
16865 | ac_tmp=$tmp | |
b0cacab0 | 16866 | |
39fd3d4f SJR |
16867 | # Set up the scripts for CONFIG_FILES section. |
16868 | # No need to generate them if there are no CONFIG_FILES. | |
16869 | # This happens for instance with `./config.status config.h'. | |
e1052144 TT |
16870 | if test -n "$CONFIG_FILES"; then |
16871 | ||
39fd3d4f SJR |
16872 | if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then |
16873 | ac_cs_awk_getline=: | |
16874 | ac_cs_awk_pipe_init= | |
16875 | ac_cs_awk_read_file=' | |
16876 | while ((getline aline < (F[key])) > 0) | |
16877 | print(aline) | |
16878 | close(F[key])' | |
16879 | ac_cs_awk_pipe_fini= | |
16880 | else | |
16881 | ac_cs_awk_getline=false | |
16882 | ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" | |
16883 | ac_cs_awk_read_file=' | |
16884 | print "|#_!!_#|" | |
16885 | print "cat " F[key] " &&" | |
16886 | '$ac_cs_awk_pipe_init | |
16887 | # The final `:' finishes the AND list. | |
16888 | ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' | |
16889 | fi | |
57aa50d4 TT |
16890 | ac_cr=`echo X | tr X '\015'` |
16891 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
16892 | # But we know of no other shell where ac_cr would be empty at this | |
16893 | # point, so we can use a bashism as a fallback. | |
16894 | if test "x$ac_cr" = x; then | |
16895 | eval ac_cr=\$\'\\r\' | |
16896 | fi | |
39fd3d4f SJR |
16897 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
16898 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
d6a4bcb5 | 16899 | ac_cs_awk_cr='\\r' |
39fd3d4f SJR |
16900 | else |
16901 | ac_cs_awk_cr=$ac_cr | |
16902 | fi | |
e1052144 | 16903 | |
d6a4bcb5 | 16904 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
39fd3d4f | 16905 | _ACEOF |
e1052144 | 16906 | |
39fd3d4f SJR |
16907 | # Create commands to substitute file output variables. |
16908 | { | |
16909 | echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && | |
d6a4bcb5 | 16910 | echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' && |
39fd3d4f SJR |
16911 | echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && |
16912 | echo "_ACAWK" && | |
16913 | echo "_ACEOF" | |
16914 | } >conf$$files.sh && | |
16915 | . ./conf$$files.sh || | |
d6a4bcb5 | 16916 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
39fd3d4f | 16917 | rm -f conf$$files.sh |
e1052144 | 16918 | |
39fd3d4f SJR |
16919 | { |
16920 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
16921 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
16922 | echo "_ACEOF" | |
16923 | } >conf$$subs.sh || | |
d6a4bcb5 TB |
16924 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
16925 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
e1052144 TT |
16926 | ac_delim='%!_!# ' |
16927 | for ac_last_try in false false false false false :; do | |
39fd3d4f | 16928 | . ./conf$$subs.sh || |
d6a4bcb5 | 16929 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
39fd3d4f SJR |
16930 | |
16931 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
16932 | if test $ac_delim_n = $ac_delim_num; then | |
e1052144 TT |
16933 | break |
16934 | elif $ac_last_try; then | |
d6a4bcb5 | 16935 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
e1052144 TT |
16936 | else |
16937 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
21c84b71 | 16938 | fi |
e1052144 | 16939 | done |
39fd3d4f SJR |
16940 | rm -f conf$$subs.sh |
16941 | ||
16942 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
d6a4bcb5 | 16943 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
39fd3d4f SJR |
16944 | _ACEOF |
16945 | sed -n ' | |
16946 | h | |
16947 | s/^/S["/; s/!.*/"]=/ | |
16948 | p | |
16949 | g | |
16950 | s/^[^!]*!// | |
16951 | :repl | |
16952 | t repl | |
16953 | s/'"$ac_delim"'$// | |
16954 | t delim | |
16955 | :nl | |
16956 | h | |
61ef2474 | 16957 | s/\(.\{148\}\)..*/\1/ |
39fd3d4f SJR |
16958 | t more1 |
16959 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
16960 | p | |
16961 | n | |
16962 | b repl | |
16963 | :more1 | |
16964 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
16965 | p | |
16966 | g | |
16967 | s/.\{148\}// | |
16968 | t nl | |
16969 | :delim | |
16970 | h | |
61ef2474 | 16971 | s/\(.\{148\}\)..*/\1/ |
39fd3d4f SJR |
16972 | t more2 |
16973 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
16974 | p | |
16975 | b | |
16976 | :more2 | |
16977 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
16978 | p | |
16979 | g | |
16980 | s/.\{148\}// | |
16981 | t delim | |
16982 | ' <conf$$subs.awk | sed ' | |
16983 | /^[^""]/{ | |
16984 | N | |
16985 | s/\n// | |
e1052144 | 16986 | } |
39fd3d4f SJR |
16987 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
16988 | rm -f conf$$subs.awk | |
16989 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16990 | _ACAWK | |
d6a4bcb5 | 16991 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
39fd3d4f SJR |
16992 | for (key in S) S_is_set[key] = 1 |
16993 | FS = "\a" | |
16994 | \$ac_cs_awk_pipe_init | |
e1052144 | 16995 | } |
39fd3d4f SJR |
16996 | { |
16997 | line = $ 0 | |
16998 | nfields = split(line, field, "@") | |
16999 | substed = 0 | |
17000 | len = length(field[1]) | |
17001 | for (i = 2; i < nfields; i++) { | |
17002 | key = field[i] | |
17003 | keylen = length(key) | |
17004 | if (S_is_set[key]) { | |
17005 | value = S[key] | |
17006 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
17007 | len += length(value) + length(field[++i]) | |
17008 | substed = 1 | |
17009 | } else | |
17010 | len += 1 + keylen | |
17011 | } | |
17012 | if (nfields == 3 && !substed) { | |
17013 | key = field[2] | |
17014 | if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { | |
17015 | \$ac_cs_awk_read_file | |
17016 | next | |
17017 | } | |
17018 | } | |
17019 | print line | |
488c75a6 | 17020 | } |
39fd3d4f SJR |
17021 | \$ac_cs_awk_pipe_fini |
17022 | _ACAWK | |
e1052144 | 17023 | _ACEOF |
39fd3d4f SJR |
17024 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
17025 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
17026 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
17027 | else | |
17028 | cat | |
d6a4bcb5 TB |
17029 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
17030 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
b0cacab0 | 17031 | _ACEOF |
e1052144 | 17032 | |
d6a4bcb5 TB |
17033 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
17034 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
e1052144 TT |
17035 | # trailing colons and then remove the whole line if VPATH becomes empty |
17036 | # (actually we leave an empty line to preserve line numbers). | |
17037 | if test "x$srcdir" = x.; then | |
d6a4bcb5 TB |
17038 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
17039 | h | |
17040 | s/// | |
17041 | s/^/:/ | |
17042 | s/[ ]*$/:/ | |
17043 | s/:\$(srcdir):/:/g | |
17044 | s/:\${srcdir}:/:/g | |
17045 | s/:@srcdir@:/:/g | |
17046 | s/^:*// | |
e1052144 | 17047 | s/:*$// |
d6a4bcb5 TB |
17048 | x |
17049 | s/\(=[ ]*\).*/\1/ | |
17050 | G | |
17051 | s/\n// | |
e1052144 TT |
17052 | s/^[^=]*=[ ]*$// |
17053 | }' | |
17054 | fi | |
17055 | ||
39fd3d4f | 17056 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
e1052144 TT |
17057 | fi # test -n "$CONFIG_FILES" |
17058 | ||
d1154eb4 TT |
17059 | # Set up the scripts for CONFIG_HEADERS section. |
17060 | # No need to generate them if there are no CONFIG_HEADERS. | |
17061 | # This happens for instance with `./config.status Makefile'. | |
17062 | if test -n "$CONFIG_HEADERS"; then | |
d6a4bcb5 | 17063 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
d1154eb4 TT |
17064 | BEGIN { |
17065 | _ACEOF | |
17066 | ||
17067 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
17068 | # here-document in config.status, that substitutes the proper values into | |
17069 | # config.h.in to produce config.h. | |
17070 | ||
17071 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
17072 | # handling of long lines. | |
17073 | ac_delim='%!_!# ' | |
17074 | for ac_last_try in false false :; do | |
d6a4bcb5 TB |
17075 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
17076 | if test -z "$ac_tt"; then | |
d1154eb4 TT |
17077 | break |
17078 | elif $ac_last_try; then | |
d6a4bcb5 | 17079 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
d1154eb4 TT |
17080 | else |
17081 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
17082 | fi | |
17083 | done | |
17084 | ||
17085 | # For the awk script, D is an array of macro values keyed by name, | |
17086 | # likewise P contains macro parameters if any. Preserve backslash | |
17087 | # newline sequences. | |
17088 | ||
17089 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
17090 | sed -n ' | |
17091 | s/.\{148\}/&'"$ac_delim"'/g | |
17092 | t rset | |
17093 | :rset | |
17094 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
17095 | t def | |
17096 | d | |
17097 | :def | |
17098 | s/\\$// | |
17099 | t bsnl | |
17100 | s/["\\]/\\&/g | |
17101 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
17102 | D["\1"]=" \3"/p | |
17103 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
17104 | d | |
17105 | :bsnl | |
17106 | s/["\\]/\\&/g | |
17107 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
17108 | D["\1"]=" \3\\\\\\n"\\/p | |
17109 | t cont | |
17110 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
17111 | t cont | |
17112 | d | |
17113 | :cont | |
17114 | n | |
17115 | s/.\{148\}/&'"$ac_delim"'/g | |
17116 | t clear | |
17117 | :clear | |
17118 | s/\\$// | |
17119 | t bsnlc | |
17120 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
17121 | d | |
17122 | :bsnlc | |
17123 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
17124 | b cont | |
17125 | ' <confdefs.h | sed ' | |
17126 | s/'"$ac_delim"'/"\\\ | |
17127 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
17128 | ||
17129 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
17130 | for (key in D) D_is_set[key] = 1 | |
17131 | FS = "\a" | |
17132 | } | |
17133 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
17134 | line = \$ 0 | |
17135 | split(line, arg, " ") | |
17136 | if (arg[1] == "#") { | |
17137 | defundef = arg[2] | |
17138 | mac1 = arg[3] | |
17139 | } else { | |
17140 | defundef = substr(arg[1], 2) | |
17141 | mac1 = arg[2] | |
17142 | } | |
17143 | split(mac1, mac2, "(") #) | |
17144 | macro = mac2[1] | |
17145 | prefix = substr(line, 1, index(line, defundef) - 1) | |
17146 | if (D_is_set[macro]) { | |
17147 | # Preserve the white space surrounding the "#". | |
17148 | print prefix "define", macro P[macro] D[macro] | |
17149 | next | |
17150 | } else { | |
17151 | # Replace #undef with comments. This is necessary, for example, | |
17152 | # in the case of _POSIX_SOURCE, which is predefined and required | |
17153 | # on some systems where configure will not decide to define it. | |
17154 | if (defundef == "undef") { | |
17155 | print "/*", prefix defundef, macro, "*/" | |
17156 | next | |
17157 | } | |
17158 | } | |
17159 | } | |
17160 | { print } | |
17161 | _ACAWK | |
17162 | _ACEOF | |
17163 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
d6a4bcb5 | 17164 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
d1154eb4 TT |
17165 | fi # test -n "$CONFIG_HEADERS" |
17166 | ||
e1052144 | 17167 | |
d1154eb4 | 17168 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
39fd3d4f SJR |
17169 | shift |
17170 | for ac_tag | |
e1052144 TT |
17171 | do |
17172 | case $ac_tag in | |
17173 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
17174 | esac | |
17175 | case $ac_mode$ac_tag in | |
17176 | :[FHL]*:*);; | |
d6a4bcb5 | 17177 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
e1052144 TT |
17178 | :[FH]-) ac_tag=-:-;; |
17179 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
17180 | esac | |
17181 | ac_save_IFS=$IFS | |
17182 | IFS=: | |
17183 | set x $ac_tag | |
17184 | IFS=$ac_save_IFS | |
17185 | shift | |
17186 | ac_file=$1 | |
17187 | shift | |
17188 | ||
17189 | case $ac_mode in | |
17190 | :L) ac_source=$1;; | |
17191 | :[FH]) | |
17192 | ac_file_inputs= | |
17193 | for ac_f | |
17194 | do | |
17195 | case $ac_f in | |
d6a4bcb5 | 17196 | -) ac_f="$ac_tmp/stdin";; |
e1052144 TT |
17197 | *) # Look for the file first in the build tree, then in the source tree |
17198 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
17199 | # because $ac_f cannot contain `:'. | |
17200 | test -f "$ac_f" || | |
17201 | case $ac_f in | |
17202 | [\\/$]*) false;; | |
17203 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
17204 | esac || | |
d6a4bcb5 | 17205 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
e1052144 | 17206 | esac |
54445dc2 | 17207 | case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
57aa50d4 | 17208 | as_fn_append ac_file_inputs " '$ac_f'" |
e1052144 TT |
17209 | done |
17210 | ||
17211 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
17212 | # use $as_me), people would be surprised to read: | |
17213 | # /* config.h. Generated by config.status. */ | |
39fd3d4f | 17214 | configure_input='Generated from '` |
54445dc2 | 17215 | printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
39fd3d4f | 17216 | `' by configure.' |
e1052144 TT |
17217 | if test x"$ac_file" != x-; then |
17218 | configure_input="$ac_file. $configure_input" | |
54445dc2 TT |
17219 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
17220 | printf "%s\n" "$as_me: creating $ac_file" >&6;} | |
e1052144 | 17221 | fi |
39fd3d4f SJR |
17222 | # Neutralize special characters interpreted by sed in replacement strings. |
17223 | case $configure_input in #( | |
17224 | *\&* | *\|* | *\\* ) | |
54445dc2 | 17225 | ac_sed_conf_input=`printf "%s\n" "$configure_input" | |
39fd3d4f SJR |
17226 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
17227 | *) ac_sed_conf_input=$configure_input;; | |
17228 | esac | |
e1052144 TT |
17229 | |
17230 | case $ac_tag in | |
d6a4bcb5 TB |
17231 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
17232 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
e1052144 TT |
17233 | esac |
17234 | ;; | |
b0cacab0 TT |
17235 | esac |
17236 | ||
e1052144 | 17237 | ac_dir=`$as_dirname -- "$ac_file" || |
b0cacab0 TT |
17238 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
17239 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
17240 | X"$ac_file" : 'X\(//\)$' \| \ | |
e1052144 | 17241 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
54445dc2 | 17242 | printf "%s\n" X"$ac_file" | |
e1052144 TT |
17243 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
17244 | s//\1/ | |
17245 | q | |
17246 | } | |
17247 | /^X\(\/\/\)[^/].*/{ | |
17248 | s//\1/ | |
17249 | q | |
17250 | } | |
17251 | /^X\(\/\/\)$/{ | |
17252 | s//\1/ | |
17253 | q | |
17254 | } | |
17255 | /^X\(\/\).*/{ | |
17256 | s//\1/ | |
17257 | q | |
17258 | } | |
17259 | s/.*/./; q'` | |
57aa50d4 | 17260 | as_dir="$ac_dir"; as_fn_mkdir_p |
b0cacab0 TT |
17261 | ac_builddir=. |
17262 | ||
e1052144 TT |
17263 | case "$ac_dir" in |
17264 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
17265 | *) | |
54445dc2 | 17266 | ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` |
e1052144 | 17267 | # A ".." for each directory in $ac_dir_suffix. |
54445dc2 | 17268 | ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
e1052144 TT |
17269 | case $ac_top_builddir_sub in |
17270 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
17271 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
17272 | esac ;; | |
17273 | esac | |
17274 | ac_abs_top_builddir=$ac_pwd | |
17275 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
17276 | # for backward compatibility: | |
17277 | ac_top_builddir=$ac_top_build_prefix | |
93636bde | 17278 | |
b0cacab0 | 17279 | case $srcdir in |
e1052144 | 17280 | .) # We are building in place. |
b0cacab0 | 17281 | ac_srcdir=. |
e1052144 TT |
17282 | ac_top_srcdir=$ac_top_builddir_sub |
17283 | ac_abs_top_srcdir=$ac_pwd ;; | |
17284 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
b0cacab0 | 17285 | ac_srcdir=$srcdir$ac_dir_suffix; |
e1052144 TT |
17286 | ac_top_srcdir=$srcdir |
17287 | ac_abs_top_srcdir=$srcdir ;; | |
17288 | *) # Relative name. | |
17289 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
17290 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
17291 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
b0cacab0 | 17292 | esac |
e1052144 | 17293 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
b0cacab0 | 17294 | |
b0cacab0 | 17295 | |
e1052144 TT |
17296 | case $ac_mode in |
17297 | :F) | |
17298 | # | |
17299 | # CONFIG_FILE | |
17300 | # | |
50e1e10f | 17301 | |
b0cacab0 TT |
17302 | case $INSTALL in |
17303 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
e1052144 | 17304 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
50e1e10f | 17305 | esac |
93613951 TT |
17306 | ac_MKDIR_P=$MKDIR_P |
17307 | case $MKDIR_P in | |
17308 | [\\/$]* | ?:[\\/]* ) ;; | |
17309 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
17310 | esac | |
e1052144 | 17311 | _ACEOF |
50e1e10f | 17312 | |
39fd3d4f | 17313 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
e1052144 TT |
17314 | # If the template does not know about datarootdir, expand it. |
17315 | # FIXME: This hack should be removed a few years after 2.60. | |
17316 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
39fd3d4f SJR |
17317 | ac_sed_dataroot=' |
17318 | /datarootdir/ { | |
e1052144 TT |
17319 | p |
17320 | q | |
17321 | } | |
17322 | /@datadir@/p | |
17323 | /@docdir@/p | |
17324 | /@infodir@/p | |
17325 | /@localedir@/p | |
57aa50d4 | 17326 | /@mandir@/p' |
39fd3d4f | 17327 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
e1052144 TT |
17328 | *datarootdir*) ac_datarootdir_seen=yes;; |
17329 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
54445dc2 TT |
17330 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
17331 | printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
b0cacab0 | 17332 | _ACEOF |
39fd3d4f | 17333 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
e1052144 TT |
17334 | ac_datarootdir_hack=' |
17335 | s&@datadir@&$datadir&g | |
17336 | s&@docdir@&$docdir&g | |
17337 | s&@infodir@&$infodir&g | |
17338 | s&@localedir@&$localedir&g | |
17339 | s&@mandir@&$mandir&g | |
57aa50d4 | 17340 | s&\\\${datarootdir}&$datarootdir&g' ;; |
e1052144 TT |
17341 | esac |
17342 | _ACEOF | |
17343 | ||
17344 | # Neutralize VPATH when `$srcdir' = `.'. | |
17345 | # Shell code in configure.ac might set extrasub. | |
17346 | # FIXME: do we really want to maintain this feature? | |
39fd3d4f SJR |
17347 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
17348 | ac_sed_extra="$ac_vpsub | |
b0cacab0 TT |
17349 | $extrasub |
17350 | _ACEOF | |
39fd3d4f | 17351 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
b0cacab0 TT |
17352 | :t |
17353 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
39fd3d4f | 17354 | s|@configure_input@|$ac_sed_conf_input|;t t |
e1052144 | 17355 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
39fd3d4f | 17356 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
e1052144 TT |
17357 | s&@srcdir@&$ac_srcdir&;t t |
17358 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
17359 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
17360 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
17361 | s&@builddir@&$ac_builddir&;t t | |
17362 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
17363 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
17364 | s&@INSTALL@&$ac_INSTALL&;t t | |
93613951 | 17365 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
e1052144 | 17366 | $ac_datarootdir_hack |
39fd3d4f SJR |
17367 | " |
17368 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | | |
17369 | if $ac_cs_awk_getline; then | |
d6a4bcb5 | 17370 | $AWK -f "$ac_tmp/subs.awk" |
39fd3d4f | 17371 | else |
d6a4bcb5 TB |
17372 | $AWK -f "$ac_tmp/subs.awk" | $SHELL |
17373 | fi \ | |
17374 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
e1052144 TT |
17375 | |
17376 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
d6a4bcb5 TB |
17377 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
17378 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
17379 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
54445dc2 | 17380 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
d6a4bcb5 | 17381 | which seems to be undefined. Please make sure it is defined" >&5 |
54445dc2 | 17382 | printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
d6a4bcb5 | 17383 | which seems to be undefined. Please make sure it is defined" >&2;} |
e1052144 | 17384 | |
d6a4bcb5 | 17385 | rm -f "$ac_tmp/stdin" |
e1052144 | 17386 | case $ac_file in |
d6a4bcb5 TB |
17387 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
17388 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
39fd3d4f | 17389 | esac \ |
d6a4bcb5 | 17390 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
e1052144 | 17391 | ;; |
d1154eb4 TT |
17392 | :H) |
17393 | # | |
17394 | # CONFIG_HEADER | |
17395 | # | |
17396 | if test x"$ac_file" != x-; then | |
17397 | { | |
54445dc2 | 17398 | printf "%s\n" "/* $configure_input */" >&1 \ |
d6a4bcb5 TB |
17399 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
17400 | } >"$ac_tmp/config.h" \ | |
17401 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
17402 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
54445dc2 TT |
17403 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
17404 | printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} | |
d1154eb4 TT |
17405 | else |
17406 | rm -f "$ac_file" | |
d6a4bcb5 TB |
17407 | mv "$ac_tmp/config.h" "$ac_file" \ |
17408 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
d1154eb4 TT |
17409 | fi |
17410 | else | |
54445dc2 | 17411 | printf "%s\n" "/* $configure_input */" >&1 \ |
d6a4bcb5 TB |
17412 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
17413 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
d1154eb4 TT |
17414 | fi |
17415 | ;; | |
07a0db15 | 17416 | |
54445dc2 TT |
17417 | :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
17418 | printf "%s\n" "$as_me: executing $ac_file commands" >&6;} | |
e1052144 TT |
17419 | ;; |
17420 | esac | |
a04eba3f | 17421 | |
b0cacab0 | 17422 | |
e1052144 | 17423 | case $ac_file$ac_mode in |
93613951 | 17424 | "po-directories":C) |
a04eba3f TT |
17425 | for ac_file in $CONFIG_FILES; do |
17426 | # Support "outfile[:infile[:infile...]]" | |
17427 | case "$ac_file" in | |
17428 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
17429 | esac | |
17430 | # PO directories have a Makefile.in generated from Makefile.in.in. | |
17431 | case "$ac_file" in */Makefile.in) | |
17432 | # Adjust a relative srcdir. | |
17433 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` | |
93613951 | 17434 | ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'` |
a04eba3f TT |
17435 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` |
17436 | # In autoconf-2.13 it is called $ac_given_srcdir. | |
17437 | # In autoconf-2.50 it is called $srcdir. | |
17438 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" | |
17439 | case "$ac_given_srcdir" in | |
17440 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; | |
17441 | /*) top_srcdir="$ac_given_srcdir" ;; | |
17442 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
17443 | esac | |
93613951 TT |
17444 | # Treat a directory as a PO directory if and only if it has a |
17445 | # POTFILES.in file. This allows packages to have multiple PO | |
17446 | # directories under different names or in different locations. | |
a04eba3f TT |
17447 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then |
17448 | rm -f "$ac_dir/POTFILES" | |
17449 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" | |
93613951 TT |
17450 | gt_tab=`printf '\t'` |
17451 | 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 |
17452 | POMAKEFILEDEPS="POTFILES.in" |
17453 | # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend | |
a04eba3f TT |
17454 | # on $ac_dir but don't depend on user-specified configuration |
17455 | # parameters. | |
17456 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then | |
17457 | # The LINGUAS file contains the set of available languages. | |
b0cacab0 | 17458 | if test -n "$OBSOLETE_ALL_LINGUAS"; then |
a04eba3f TT |
17459 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" |
17460 | fi | |
bdcd5f22 | 17461 | ALL_LINGUAS=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` |
b0cacab0 TT |
17462 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" |
17463 | else | |
17464 | # The set of available languages was given in configure.in. | |
bdcd5f22 | 17465 | ALL_LINGUAS=$OBSOLETE_ALL_LINGUAS |
a04eba3f | 17466 | fi |
b0cacab0 TT |
17467 | # Compute POFILES |
17468 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) | |
17469 | # Compute UPDATEPOFILES | |
17470 | # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) | |
17471 | # Compute DUMMYPOFILES | |
17472 | # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) | |
17473 | # Compute GMOFILES | |
17474 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) | |
a04eba3f TT |
17475 | case "$ac_given_srcdir" in |
17476 | .) srcdirpre= ;; | |
17477 | *) srcdirpre='$(srcdir)/' ;; | |
17478 | esac | |
17479 | POFILES= | |
a04eba3f TT |
17480 | UPDATEPOFILES= |
17481 | DUMMYPOFILES= | |
b0cacab0 | 17482 | GMOFILES= |
a04eba3f TT |
17483 | for lang in $ALL_LINGUAS; do |
17484 | POFILES="$POFILES $srcdirpre$lang.po" | |
a04eba3f TT |
17485 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" |
17486 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" | |
b0cacab0 | 17487 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" |
a04eba3f TT |
17488 | done |
17489 | # CATALOGS depends on both $ac_dir and the user's LINGUAS | |
17490 | # environment variable. | |
17491 | INST_LINGUAS= | |
17492 | if test -n "$ALL_LINGUAS"; then | |
17493 | for presentlang in $ALL_LINGUAS; do | |
17494 | useit=no | |
17495 | if test "%UNSET%" != "$LINGUAS"; then | |
17496 | desiredlanguages="$LINGUAS" | |
17497 | else | |
17498 | desiredlanguages="$ALL_LINGUAS" | |
17499 | fi | |
17500 | for desiredlang in $desiredlanguages; do | |
17501 | # Use the presentlang catalog if desiredlang is | |
17502 | # a. equal to presentlang, or | |
17503 | # b. a variant of presentlang (because in this case, | |
17504 | # presentlang can be used as a fallback for messages | |
17505 | # which are not translated in the desiredlang catalog). | |
17506 | case "$desiredlang" in | |
a30e56b9 | 17507 | "$presentlang"*) useit=yes;; |
a04eba3f TT |
17508 | esac |
17509 | done | |
17510 | if test $useit = yes; then | |
17511 | INST_LINGUAS="$INST_LINGUAS $presentlang" | |
17512 | fi | |
17513 | done | |
17514 | fi | |
17515 | CATALOGS= | |
17516 | if test -n "$INST_LINGUAS"; then | |
17517 | for lang in $INST_LINGUAS; do | |
17518 | CATALOGS="$CATALOGS $lang.gmo" | |
17519 | done | |
17520 | fi | |
17521 | test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" | |
b0cacab0 | 17522 | 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 |
17523 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do |
17524 | if test -f "$f"; then | |
17525 | case "$f" in | |
17526 | *.orig | *.bak | *~) ;; | |
17527 | *) cat "$f" >> "$ac_dir/Makefile" ;; | |
17528 | esac | |
17529 | fi | |
17530 | done | |
17531 | fi | |
17532 | ;; | |
a64c9c13 | 17533 | esac |
b0cacab0 | 17534 | done ;; |
e1052144 | 17535 | |
b0cacab0 | 17536 | esac |
e1052144 | 17537 | done # for ac_tag |
07a0db15 | 17538 | |
b0cacab0 | 17539 | |
57aa50d4 | 17540 | as_fn_exit 0 |
b0cacab0 | 17541 | _ACEOF |
b0cacab0 TT |
17542 | ac_clean_files=$ac_clean_files_save |
17543 | ||
39fd3d4f | 17544 | test $ac_write_fail = 0 || |
d6a4bcb5 | 17545 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
39fd3d4f | 17546 | |
b0cacab0 TT |
17547 | |
17548 | # configure is writing to config.log, and then calls config.status. | |
17549 | # config.status does its own redirection, appending to config.log. | |
17550 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
17551 | # by configure, so config.status won't be able to write to it; its | |
17552 | # output is simply discarded. So we exec the FD to /dev/null, | |
17553 | # effectively closing config.log, so it can be properly (re)opened and | |
17554 | # appended to by config.status. When coming back to configure, we | |
17555 | # need to make the FD available again. | |
17556 | if test "$no_create" != yes; then | |
17557 | ac_cs_success=: | |
17558 | ac_config_status_args= | |
17559 | test "$silent" = yes && | |
17560 | ac_config_status_args="$ac_config_status_args --quiet" | |
17561 | exec 5>/dev/null | |
17562 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
17563 | exec 5>>config.log | |
17564 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
17565 | # would make configure fail if this is the last instruction. | |
d6a4bcb5 | 17566 | $ac_cs_success || as_fn_exit 1 |
b0cacab0 | 17567 | fi |
39fd3d4f | 17568 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
54445dc2 TT |
17569 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
17570 | printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
39fd3d4f | 17571 | fi |
50e1e10f | 17572 | |
ee683a13 | 17573 | if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi |
54445dc2 | 17574 |