configure revision 1.1.1.8 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for libXtst 1.2.5.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxtst/-/issues>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21 then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else case e in #(
29 e) case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as 'sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed 'exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
144 then :
145 emulate sh
146 NULLCMD=:
147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
148 # is contrary to our usage. Disable this feature.
149 alias -g '\${1+\"\$@\"}'='\"\$@\"'
150 setopt NO_GLOB_SUBST
151 else case e in #(
152 e) case \`(set -o) 2>/dev/null\` in #(
153 *posix*) :
154 set -o posix ;; #(
155 *) :
156 ;;
157 esac ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else case e in #(
176 e) exitcode=1; echo positional parameters were not saved. ;;
177 esac
178 fi
179 test x\$exitcode = x0 || exit 1
180 blah=\$(echo \$(echo blah))
181 test x\"\$blah\" = xblah || exit 1
182 test -x / || exit 1"
183 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
184 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
187
188 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
189 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
192 PATH=/empty FPATH=/empty; export PATH FPATH
193 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
194 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
195 test \$(( 1 + 1 )) = 2 || exit 1"
196 if (eval "$as_required") 2>/dev/null
197 then :
198 as_have_required=yes
199 else case e in #(
200 e) as_have_required=no ;;
201 esac
202 fi
203 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
204 then :
205
206 else case e in #(
207 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
208 as_found=false
209 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
210 do
211 IFS=$as_save_IFS
212 case $as_dir in #(((
213 '') as_dir=./ ;;
214 */) ;;
215 *) as_dir=$as_dir/ ;;
216 esac
217 as_found=:
218 case $as_dir in #(
219 /*)
220 for as_base in sh bash ksh sh5; do
221 # Try only shells that exist, to save several forks.
222 as_shell=$as_dir$as_base
223 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
224 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
225 then :
226 CONFIG_SHELL=$as_shell as_have_required=yes
227 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
228 then :
229 break 2
230 fi
231 fi
232 done;;
233 esac
234 as_found=false
235 done
236 IFS=$as_save_IFS
237 if $as_found
238 then :
239
240 else case e in #(
241 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
243 then :
244 CONFIG_SHELL=$SHELL as_have_required=yes
245 fi ;;
246 esac
247 fi
248
249
250 if test "x$CONFIG_SHELL" != x
251 then :
252 export CONFIG_SHELL
253 # We cannot yet assume a decent shell, so we have to provide a
254 # neutralization value for shells without unset; and this also
255 # works around shells that cannot unset nonexistent variables.
256 # Preserve -v and -x to the replacement shell.
257 BASH_ENV=/dev/null
258 ENV=/dev/null
259 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
260 case $- in # ((((
261 *v*x* | *x*v* ) as_opts=-vx ;;
262 *v* ) as_opts=-v ;;
263 *x* ) as_opts=-x ;;
264 * ) as_opts= ;;
265 esac
266 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
267 # Admittedly, this is quite paranoid, since all the known shells bail
268 # out after a failed 'exec'.
269 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
270 exit 255
271 fi
272
273 if test x$as_have_required = xno
274 then :
275 printf "%s\n" "$0: This script requires a shell more modern than all"
276 printf "%s\n" "$0: the shells that I found on your system."
277 if test ${ZSH_VERSION+y} ; then
278 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
279 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
280 else
281 printf "%s\n" "$0: Please tell bug-autoconf (at] gnu.org and
282 $0: https://gitlab.freedesktop.org/xorg/lib/libxtst/-/issues
283 $0: about your system, including any error possibly output
284 $0: before this message. Then install a modern shell, or
285 $0: manually run the script under such a shell if you do
286 $0: have one."
287 fi
288 exit 1
289 fi ;;
290 esac
291 fi
292 fi
293 SHELL=${CONFIG_SHELL-/bin/sh}
294 export SHELL
295 # Unset more variables known to interfere with behavior of common tools.
296 CLICOLOR_FORCE= GREP_OPTIONS=
297 unset CLICOLOR_FORCE GREP_OPTIONS
298
299 ## --------------------- ##
300 ## M4sh Shell Functions. ##
301 ## --------------------- ##
302 # as_fn_unset VAR
303 # ---------------
304 # Portably unset VAR.
305 as_fn_unset ()
306 {
307 { eval $1=; unset $1;}
308 }
309 as_unset=as_fn_unset
310
311
312 # as_fn_set_status STATUS
313 # -----------------------
314 # Set $? to STATUS, without forking.
315 as_fn_set_status ()
316 {
317 return $1
318 } # as_fn_set_status
319
320 # as_fn_exit STATUS
321 # -----------------
322 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
323 as_fn_exit ()
324 {
325 set +e
326 as_fn_set_status $1
327 exit $1
328 } # as_fn_exit
329
330 # as_fn_mkdir_p
331 # -------------
332 # Create "$as_dir" as a directory, including parents if necessary.
333 as_fn_mkdir_p ()
334 {
335
336 case $as_dir in #(
337 -*) as_dir=./$as_dir;;
338 esac
339 test -d "$as_dir" || eval $as_mkdir_p || {
340 as_dirs=
341 while :; do
342 case $as_dir in #(
343 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
344 *) as_qdir=$as_dir;;
345 esac
346 as_dirs="'$as_qdir' $as_dirs"
347 as_dir=`$as_dirname -- "$as_dir" ||
348 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
349 X"$as_dir" : 'X\(//\)[^/]' \| \
350 X"$as_dir" : 'X\(//\)$' \| \
351 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
352 printf "%s\n" X"$as_dir" |
353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
354 s//\1/
355 q
356 }
357 /^X\(\/\/\)[^/].*/{
358 s//\1/
359 q
360 }
361 /^X\(\/\/\)$/{
362 s//\1/
363 q
364 }
365 /^X\(\/\).*/{
366 s//\1/
367 q
368 }
369 s/.*/./; q'`
370 test -d "$as_dir" && break
371 done
372 test -z "$as_dirs" || eval "mkdir $as_dirs"
373 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
374
375
376 } # as_fn_mkdir_p
377
378 # as_fn_executable_p FILE
379 # -----------------------
380 # Test if FILE is an executable regular file.
381 as_fn_executable_p ()
382 {
383 test -f "$1" && test -x "$1"
384 } # as_fn_executable_p
385 # as_fn_append VAR VALUE
386 # ----------------------
387 # Append the text in VALUE to the end of the definition contained in VAR. Take
388 # advantage of any shell optimizations that allow amortized linear growth over
389 # repeated appends, instead of the typical quadratic growth present in naive
390 # implementations.
391 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
392 then :
393 eval 'as_fn_append ()
394 {
395 eval $1+=\$2
396 }'
397 else case e in #(
398 e) as_fn_append ()
399 {
400 eval $1=\$$1\$2
401 } ;;
402 esac
403 fi # as_fn_append
404
405 # as_fn_arith ARG...
406 # ------------------
407 # Perform arithmetic evaluation on the ARGs, and store the result in the
408 # global $as_val. Take advantage of shells that can avoid forks. The arguments
409 # must be portable across $(()) and expr.
410 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
411 then :
412 eval 'as_fn_arith ()
413 {
414 as_val=$(( $* ))
415 }'
416 else case e in #(
417 e) as_fn_arith ()
418 {
419 as_val=`expr "$@" || test $? -eq 1`
420 } ;;
421 esac
422 fi # as_fn_arith
423
424
425 # as_fn_error STATUS ERROR [LINENO LOG_FD]
426 # ----------------------------------------
427 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
428 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
429 # script with STATUS, using 1 if that was 0.
430 as_fn_error ()
431 {
432 as_status=$1; test $as_status -eq 0 && as_status=1
433 if test "$4"; then
434 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
435 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
436 fi
437 printf "%s\n" "$as_me: error: $2" >&2
438 as_fn_exit $as_status
439 } # as_fn_error
440
441 if expr a : '\(a\)' >/dev/null 2>&1 &&
442 test "X`expr 00001 : '.*\(...\)'`" = X001; then
443 as_expr=expr
444 else
445 as_expr=false
446 fi
447
448 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
449 as_basename=basename
450 else
451 as_basename=false
452 fi
453
454 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
455 as_dirname=dirname
456 else
457 as_dirname=false
458 fi
459
460 as_me=`$as_basename -- "$0" ||
461 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
462 X"$0" : 'X\(//\)$' \| \
463 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
464 printf "%s\n" X/"$0" |
465 sed '/^.*\/\([^/][^/]*\)\/*$/{
466 s//\1/
467 q
468 }
469 /^X\/\(\/\/\)$/{
470 s//\1/
471 q
472 }
473 /^X\/\(\/\).*/{
474 s//\1/
475 q
476 }
477 s/.*/./; q'`
478
479 # Avoid depending upon Character Ranges.
480 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
481 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
482 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
483 as_cr_digits='0123456789'
484 as_cr_alnum=$as_cr_Letters$as_cr_digits
485
486
487 as_lineno_1=$LINENO as_lineno_1a=$LINENO
488 as_lineno_2=$LINENO as_lineno_2a=$LINENO
489 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
490 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
491 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
492 sed -n '
493 p
494 /[$]LINENO/=
495 ' <$as_myself |
496 sed '
497 t clear
498 :clear
499 s/[$]LINENO.*/&-/
500 t lineno
501 b
502 :lineno
503 N
504 :loop
505 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
506 t loop
507 s/-\n.*//
508 ' >$as_me.lineno &&
509 chmod +x "$as_me.lineno" ||
510 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
511
512 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
513 # already done that, so ensure we don't try to do so again and fall
514 # in an infinite loop. This has already happened in practice.
515 _as_can_reexec=no; export _as_can_reexec
516 # Don't try to exec as it changes $[0], causing all sort of problems
517 # (the dirname of $[0] is not the place where we might find the
518 # original and so on. Autoconf is especially sensitive to this).
519 . "./$as_me.lineno"
520 # Exit status is that of the last command.
521 exit
522 }
523
524
525 # Determine whether it's possible to make 'echo' print without a newline.
526 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
527 # for compatibility with existing Makefiles.
528 ECHO_C= ECHO_N= ECHO_T=
529 case `echo -n x` in #(((((
530 -n*)
531 case `echo 'xy\c'` in
532 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
533 xy) ECHO_C='\c';;
534 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
535 ECHO_T=' ';;
536 esac;;
537 *)
538 ECHO_N='-n';;
539 esac
540
541 # For backward compatibility with old third-party macros, we provide
542 # the shell variables $as_echo and $as_echo_n. New code should use
543 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
544 as_echo='printf %s\n'
545 as_echo_n='printf %s'
546
547 rm -f conf$$ conf$$.exe conf$$.file
548 if test -d conf$$.dir; then
549 rm -f conf$$.dir/conf$$.file
550 else
551 rm -f conf$$.dir
552 mkdir conf$$.dir 2>/dev/null
553 fi
554 if (echo >conf$$.file) 2>/dev/null; then
555 if ln -s conf$$.file conf$$ 2>/dev/null; then
556 as_ln_s='ln -s'
557 # ... but there are two gotchas:
558 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
559 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
560 # In both cases, we have to default to 'cp -pR'.
561 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
562 as_ln_s='cp -pR'
563 elif ln conf$$.file conf$$ 2>/dev/null; then
564 as_ln_s=ln
565 else
566 as_ln_s='cp -pR'
567 fi
568 else
569 as_ln_s='cp -pR'
570 fi
571 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
572 rmdir conf$$.dir 2>/dev/null
573
574 if mkdir -p . 2>/dev/null; then
575 as_mkdir_p='mkdir -p "$as_dir"'
576 else
577 test -d ./-p && rmdir ./-p
578 as_mkdir_p=false
579 fi
580
581 as_test_x='test -x'
582 as_executable_p=as_fn_executable_p
583
584 # Sed expression to map a string onto a valid CPP name.
585 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
586 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
587
588 # Sed expression to map a string onto a valid variable name.
589 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
590 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
591
592 SHELL=${CONFIG_SHELL-/bin/sh}
593
594 as_awk_strverscmp='
595 # Use only awk features that work with 7th edition Unix awk (1978).
596 # My, what an old awk you have, Mr. Solaris!
597 END {
598 while (length(v1) && length(v2)) {
599 # Set d1 to be the next thing to compare from v1, and likewise for d2.
600 # Normally this is a single character, but if v1 and v2 contain digits,
601 # compare them as integers and fractions as strverscmp does.
602 if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) {
603 # Split v1 and v2 into their leading digit string components d1 and d2,
604 # and advance v1 and v2 past the leading digit strings.
605 for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue
606 for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue
607 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
608 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
609 if (d1 ~ /^0/) {
610 if (d2 ~ /^0/) {
611 # Compare two fractions.
612 while (d1 ~ /^0/ && d2 ~ /^0/) {
613 d1 = substr(d1, 2); len1--
614 d2 = substr(d2, 2); len2--
615 }
616 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
617 # The two components differ in length, and the common prefix
618 # contains only leading zeros. Consider the longer to be less.
619 d1 = -len1
620 d2 = -len2
621 } else {
622 # Otherwise, compare as strings.
623 d1 = "x" d1
624 d2 = "x" d2
625 }
626 } else {
627 # A fraction is less than an integer.
628 exit 1
629 }
630 } else {
631 if (d2 ~ /^0/) {
632 # An integer is greater than a fraction.
633 exit 2
634 } else {
635 # Compare two integers.
636 d1 += 0
637 d2 += 0
638 }
639 }
640 } else {
641 # The normal case, without worrying about digits.
642 d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
643 d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
644 }
645 if (d1 < d2) exit 1
646 if (d1 > d2) exit 2
647 }
648 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
649 # which mishandles some comparisons of empty strings to integers.
650 if (length(v2)) exit 1
651 if (length(v1)) exit 2
652 }
653 '
654
655 test -n "$DJDIR" || exec 7<&0 </dev/null
656 exec 6>&1
657
658 # Name of the host.
659 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
660 # so uname gets run too.
661 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
662
663 #
664 # Initializations.
665 #
666 ac_default_prefix=/usr/local
667 ac_clean_files=
668 ac_config_libobj_dir=.
669 LIBOBJS=
670 cross_compiling=no
671 subdirs=
672 MFLAGS=
673 MAKEFLAGS=
674
675 # Identity of this package.
676 PACKAGE_NAME='libXtst'
677 PACKAGE_TARNAME='libXtst'
678 PACKAGE_VERSION='1.2.5'
679 PACKAGE_STRING='libXtst 1.2.5'
680 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libxtst/-/issues'
681 PACKAGE_URL=''
682
683 ac_unique_file="Makefile.am"
684 # Factoring default headers for most tests.
685 ac_includes_default="\
686 #include <stddef.h>
687 #ifdef HAVE_STDIO_H
688 # include <stdio.h>
689 #endif
690 #ifdef HAVE_STDLIB_H
691 # include <stdlib.h>
692 #endif
693 #ifdef HAVE_STRING_H
694 # include <string.h>
695 #endif
696 #ifdef HAVE_INTTYPES_H
697 # include <inttypes.h>
698 #endif
699 #ifdef HAVE_STDINT_H
700 # include <stdint.h>
701 #endif
702 #ifdef HAVE_STRINGS_H
703 # include <strings.h>
704 #endif
705 #ifdef HAVE_SYS_TYPES_H
706 # include <sys/types.h>
707 #endif
708 #ifdef HAVE_SYS_STAT_H
709 # include <sys/stat.h>
710 #endif
711 #ifdef HAVE_UNISTD_H
712 # include <unistd.h>
713 #endif"
714
715 ac_header_c_list=
716 ac_subst_vars='am__EXEEXT_FALSE
717 am__EXEEXT_TRUE
718 LTLIBOBJS
719 LIBOBJS
720 MAKE_LINT_LIB_FALSE
721 MAKE_LINT_LIB_TRUE
722 LINTLIB
723 LINT_FALSE
724 LINT_TRUE
725 LINT_FLAGS
726 LINT
727 INSTALL_MANPAGES_FALSE
728 INSTALL_MANPAGES_TRUE
729 XTST_LIBS
730 XTST_CFLAGS
731 HAVE_STYLESHEETS_FALSE
732 HAVE_STYLESHEETS_TRUE
733 XSL_STYLESHEET
734 STYLESHEET_SRCDIR
735 XORG_SGML_PATH
736 HAVE_XSLTPROC_FALSE
737 HAVE_XSLTPROC_TRUE
738 XSLTPROC
739 HAVE_FOP_FALSE
740 HAVE_FOP_TRUE
741 FOP
742 HAVE_XMLTO_FALSE
743 HAVE_XMLTO_TRUE
744 HAVE_XMLTO_TEXT_FALSE
745 HAVE_XMLTO_TEXT_TRUE
746 XMLTO
747 ENABLE_SPECS_FALSE
748 ENABLE_SPECS_TRUE
749 MAN_SUBSTS
750 XORG_MAN_PAGE
751 ADMIN_MAN_DIR
752 DRIVER_MAN_DIR
753 MISC_MAN_DIR
754 FILE_MAN_DIR
755 LIB_MAN_DIR
756 APP_MAN_DIR
757 ADMIN_MAN_SUFFIX
758 DRIVER_MAN_SUFFIX
759 MISC_MAN_SUFFIX
760 FILE_MAN_SUFFIX
761 LIB_MAN_SUFFIX
762 APP_MAN_SUFFIX
763 INSTALL_CMD
764 PKG_CONFIG_LIBDIR
765 PKG_CONFIG_PATH
766 PKG_CONFIG
767 CHANGELOG_CMD
768 STRICT_CFLAGS
769 CWARNFLAGS
770 BASE_CFLAGS
771 LT_SYS_LIBRARY_PATH
772 OTOOL64
773 OTOOL
774 LIPO
775 NMEDIT
776 DSYMUTIL
777 MANIFEST_TOOL
778 RANLIB
779 ac_ct_AR
780 AR
781 DLLTOOL
782 OBJDUMP
783 FILECMD
784 LN_S
785 NM
786 ac_ct_DUMPBIN
787 DUMPBIN
788 LD
789 FGREP
790 EGREP
791 GREP
792 SED
793 am__fastdepCC_FALSE
794 am__fastdepCC_TRUE
795 CCDEPMODE
796 am__nodep
797 AMDEPBACKSLASH
798 AMDEP_FALSE
799 AMDEP_TRUE
800 am__include
801 DEPDIR
802 OBJEXT
803 EXEEXT
804 ac_ct_CC
805 CPPFLAGS
806 LDFLAGS
807 CFLAGS
808 CC
809 host_os
810 host_vendor
811 host_cpu
812 host
813 build_os
814 build_vendor
815 build_cpu
816 build
817 LIBTOOL
818 am__xargs_n
819 am__rm_f_notfound
820 AM_BACKSLASH
821 AM_DEFAULT_VERBOSITY
822 AM_DEFAULT_V
823 AM_V
824 CSCOPE
825 ETAGS
826 CTAGS
827 am__untar
828 am__tar
829 AMTAR
830 am__leading_dot
831 SET_MAKE
832 AWK
833 mkdir_p
834 MKDIR_P
835 INSTALL_STRIP_PROGRAM
836 STRIP
837 install_sh
838 MAKEINFO
839 AUTOHEADER
840 AUTOMAKE
841 AUTOCONF
842 ACLOCAL
843 VERSION
844 PACKAGE
845 CYGPATH_W
846 am__isrc
847 INSTALL_DATA
848 INSTALL_SCRIPT
849 INSTALL_PROGRAM
850 target_alias
851 host_alias
852 build_alias
853 LIBS
854 ECHO_T
855 ECHO_N
856 ECHO_C
857 DEFS
858 mandir
859 localedir
860 libdir
861 psdir
862 pdfdir
863 dvidir
864 htmldir
865 infodir
866 docdir
867 oldincludedir
868 includedir
869 runstatedir
870 localstatedir
871 sharedstatedir
872 sysconfdir
873 datadir
874 datarootdir
875 libexecdir
876 sbindir
877 bindir
878 program_transform_name
879 prefix
880 exec_prefix
881 PACKAGE_URL
882 PACKAGE_BUGREPORT
883 PACKAGE_STRING
884 PACKAGE_VERSION
885 PACKAGE_TARNAME
886 PACKAGE_NAME
887 PATH_SEPARATOR
888 SHELL
889 am__quote'
890 ac_subst_files=''
891 ac_user_opts='
892 enable_option_checking
893 enable_silent_rules
894 enable_shared
895 enable_static
896 with_pic
897 enable_fast_install
898 with_aix_soname
899 enable_dependency_tracking
900 with_gnu_ld
901 with_sysroot
902 enable_libtool_lock
903 enable_selective_werror
904 enable_strict_compilation
905 enable_specs
906 with_xmlto
907 with_fop
908 with_xsltproc
909 with_lint
910 enable_lint_library
911 '
912 ac_precious_vars='build_alias
913 host_alias
914 target_alias
915 CC
916 CFLAGS
917 LDFLAGS
918 LIBS
919 CPPFLAGS
920 LT_SYS_LIBRARY_PATH
921 PKG_CONFIG
922 PKG_CONFIG_PATH
923 PKG_CONFIG_LIBDIR
924 XMLTO
925 FOP
926 XSLTPROC
927 XTST_CFLAGS
928 XTST_LIBS
929 LINT
930 LINT_FLAGS'
931
932
933 # Initialize some variables set by options.
934 ac_init_help=
935 ac_init_version=false
936 ac_unrecognized_opts=
937 ac_unrecognized_sep=
938 # The variables have the same names as the options, with
939 # dashes changed to underlines.
940 cache_file=/dev/null
941 exec_prefix=NONE
942 no_create=
943 no_recursion=
944 prefix=NONE
945 program_prefix=NONE
946 program_suffix=NONE
947 program_transform_name=s,x,x,
948 silent=
949 site=
950 srcdir=
951 verbose=
952 x_includes=NONE
953 x_libraries=NONE
954
955 # Installation directory options.
956 # These are left unexpanded so users can "make install exec_prefix=/foo"
957 # and all the variables that are supposed to be based on exec_prefix
958 # by default will actually change.
959 # Use braces instead of parens because sh, perl, etc. also accept them.
960 # (The list follows the same order as the GNU Coding Standards.)
961 bindir='${exec_prefix}/bin'
962 sbindir='${exec_prefix}/sbin'
963 libexecdir='${exec_prefix}/libexec'
964 datarootdir='${prefix}/share'
965 datadir='${datarootdir}'
966 sysconfdir='${prefix}/etc'
967 sharedstatedir='${prefix}/com'
968 localstatedir='${prefix}/var'
969 runstatedir='${localstatedir}/run'
970 includedir='${prefix}/include'
971 oldincludedir='/usr/include'
972 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
973 infodir='${datarootdir}/info'
974 htmldir='${docdir}'
975 dvidir='${docdir}'
976 pdfdir='${docdir}'
977 psdir='${docdir}'
978 libdir='${exec_prefix}/lib'
979 localedir='${datarootdir}/locale'
980 mandir='${datarootdir}/man'
981
982 ac_prev=
983 ac_dashdash=
984 for ac_option
985 do
986 # If the previous option needs an argument, assign it.
987 if test -n "$ac_prev"; then
988 eval $ac_prev=\$ac_option
989 ac_prev=
990 continue
991 fi
992
993 case $ac_option in
994 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
995 *=) ac_optarg= ;;
996 *) ac_optarg=yes ;;
997 esac
998
999 case $ac_dashdash$ac_option in
1000 --)
1001 ac_dashdash=yes ;;
1002
1003 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1004 ac_prev=bindir ;;
1005 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1006 bindir=$ac_optarg ;;
1007
1008 -build | --build | --buil | --bui | --bu)
1009 ac_prev=build_alias ;;
1010 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1011 build_alias=$ac_optarg ;;
1012
1013 -cache-file | --cache-file | --cache-fil | --cache-fi \
1014 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1015 ac_prev=cache_file ;;
1016 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1017 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1018 cache_file=$ac_optarg ;;
1019
1020 --config-cache | -C)
1021 cache_file=config.cache ;;
1022
1023 -datadir | --datadir | --datadi | --datad)
1024 ac_prev=datadir ;;
1025 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1026 datadir=$ac_optarg ;;
1027
1028 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1029 | --dataroo | --dataro | --datar)
1030 ac_prev=datarootdir ;;
1031 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1032 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1033 datarootdir=$ac_optarg ;;
1034
1035 -disable-* | --disable-*)
1036 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1037 # Reject names that are not valid shell variable names.
1038 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1039 as_fn_error $? "invalid feature name: '$ac_useropt'"
1040 ac_useropt_orig=$ac_useropt
1041 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1042 case $ac_user_opts in
1043 *"
1044 "enable_$ac_useropt"
1045 "*) ;;
1046 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1047 ac_unrecognized_sep=', ';;
1048 esac
1049 eval enable_$ac_useropt=no ;;
1050
1051 -docdir | --docdir | --docdi | --doc | --do)
1052 ac_prev=docdir ;;
1053 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1054 docdir=$ac_optarg ;;
1055
1056 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1057 ac_prev=dvidir ;;
1058 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1059 dvidir=$ac_optarg ;;
1060
1061 -enable-* | --enable-*)
1062 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1063 # Reject names that are not valid shell variable names.
1064 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1065 as_fn_error $? "invalid feature name: '$ac_useropt'"
1066 ac_useropt_orig=$ac_useropt
1067 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1068 case $ac_user_opts in
1069 *"
1070 "enable_$ac_useropt"
1071 "*) ;;
1072 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1073 ac_unrecognized_sep=', ';;
1074 esac
1075 eval enable_$ac_useropt=\$ac_optarg ;;
1076
1077 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1078 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1079 | --exec | --exe | --ex)
1080 ac_prev=exec_prefix ;;
1081 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1082 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1083 | --exec=* | --exe=* | --ex=*)
1084 exec_prefix=$ac_optarg ;;
1085
1086 -gas | --gas | --ga | --g)
1087 # Obsolete; use --with-gas.
1088 with_gas=yes ;;
1089
1090 -help | --help | --hel | --he | -h)
1091 ac_init_help=long ;;
1092 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1093 ac_init_help=recursive ;;
1094 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1095 ac_init_help=short ;;
1096
1097 -host | --host | --hos | --ho)
1098 ac_prev=host_alias ;;
1099 -host=* | --host=* | --hos=* | --ho=*)
1100 host_alias=$ac_optarg ;;
1101
1102 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1103 ac_prev=htmldir ;;
1104 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1105 | --ht=*)
1106 htmldir=$ac_optarg ;;
1107
1108 -includedir | --includedir | --includedi | --included | --include \
1109 | --includ | --inclu | --incl | --inc)
1110 ac_prev=includedir ;;
1111 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1112 | --includ=* | --inclu=* | --incl=* | --inc=*)
1113 includedir=$ac_optarg ;;
1114
1115 -infodir | --infodir | --infodi | --infod | --info | --inf)
1116 ac_prev=infodir ;;
1117 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1118 infodir=$ac_optarg ;;
1119
1120 -libdir | --libdir | --libdi | --libd)
1121 ac_prev=libdir ;;
1122 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1123 libdir=$ac_optarg ;;
1124
1125 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1126 | --libexe | --libex | --libe)
1127 ac_prev=libexecdir ;;
1128 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1129 | --libexe=* | --libex=* | --libe=*)
1130 libexecdir=$ac_optarg ;;
1131
1132 -localedir | --localedir | --localedi | --localed | --locale)
1133 ac_prev=localedir ;;
1134 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1135 localedir=$ac_optarg ;;
1136
1137 -localstatedir | --localstatedir | --localstatedi | --localstated \
1138 | --localstate | --localstat | --localsta | --localst | --locals)
1139 ac_prev=localstatedir ;;
1140 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1141 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1142 localstatedir=$ac_optarg ;;
1143
1144 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1145 ac_prev=mandir ;;
1146 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1147 mandir=$ac_optarg ;;
1148
1149 -nfp | --nfp | --nf)
1150 # Obsolete; use --without-fp.
1151 with_fp=no ;;
1152
1153 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1154 | --no-cr | --no-c | -n)
1155 no_create=yes ;;
1156
1157 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1158 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1159 no_recursion=yes ;;
1160
1161 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1162 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1163 | --oldin | --oldi | --old | --ol | --o)
1164 ac_prev=oldincludedir ;;
1165 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1166 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1167 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1168 oldincludedir=$ac_optarg ;;
1169
1170 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1171 ac_prev=prefix ;;
1172 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1173 prefix=$ac_optarg ;;
1174
1175 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1176 | --program-pre | --program-pr | --program-p)
1177 ac_prev=program_prefix ;;
1178 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1179 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1180 program_prefix=$ac_optarg ;;
1181
1182 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1183 | --program-suf | --program-su | --program-s)
1184 ac_prev=program_suffix ;;
1185 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1186 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1187 program_suffix=$ac_optarg ;;
1188
1189 -program-transform-name | --program-transform-name \
1190 | --program-transform-nam | --program-transform-na \
1191 | --program-transform-n | --program-transform- \
1192 | --program-transform | --program-transfor \
1193 | --program-transfo | --program-transf \
1194 | --program-trans | --program-tran \
1195 | --progr-tra | --program-tr | --program-t)
1196 ac_prev=program_transform_name ;;
1197 -program-transform-name=* | --program-transform-name=* \
1198 | --program-transform-nam=* | --program-transform-na=* \
1199 | --program-transform-n=* | --program-transform-=* \
1200 | --program-transform=* | --program-transfor=* \
1201 | --program-transfo=* | --program-transf=* \
1202 | --program-trans=* | --program-tran=* \
1203 | --progr-tra=* | --program-tr=* | --program-t=*)
1204 program_transform_name=$ac_optarg ;;
1205
1206 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1207 ac_prev=pdfdir ;;
1208 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1209 pdfdir=$ac_optarg ;;
1210
1211 -psdir | --psdir | --psdi | --psd | --ps)
1212 ac_prev=psdir ;;
1213 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1214 psdir=$ac_optarg ;;
1215
1216 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1217 | -silent | --silent | --silen | --sile | --sil)
1218 silent=yes ;;
1219
1220 -runstatedir | --runstatedir | --runstatedi | --runstated \
1221 | --runstate | --runstat | --runsta | --runst | --runs \
1222 | --run | --ru | --r)
1223 ac_prev=runstatedir ;;
1224 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1225 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1226 | --run=* | --ru=* | --r=*)
1227 runstatedir=$ac_optarg ;;
1228
1229 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1230 ac_prev=sbindir ;;
1231 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1232 | --sbi=* | --sb=*)
1233 sbindir=$ac_optarg ;;
1234
1235 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1236 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1237 | --sharedst | --shareds | --shared | --share | --shar \
1238 | --sha | --sh)
1239 ac_prev=sharedstatedir ;;
1240 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1241 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1242 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1243 | --sha=* | --sh=*)
1244 sharedstatedir=$ac_optarg ;;
1245
1246 -site | --site | --sit)
1247 ac_prev=site ;;
1248 -site=* | --site=* | --sit=*)
1249 site=$ac_optarg ;;
1250
1251 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1252 ac_prev=srcdir ;;
1253 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1254 srcdir=$ac_optarg ;;
1255
1256 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1257 | --syscon | --sysco | --sysc | --sys | --sy)
1258 ac_prev=sysconfdir ;;
1259 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1260 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1261 sysconfdir=$ac_optarg ;;
1262
1263 -target | --target | --targe | --targ | --tar | --ta | --t)
1264 ac_prev=target_alias ;;
1265 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1266 target_alias=$ac_optarg ;;
1267
1268 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1269 verbose=yes ;;
1270
1271 -version | --version | --versio | --versi | --vers | -V)
1272 ac_init_version=: ;;
1273
1274 -with-* | --with-*)
1275 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1276 # Reject names that are not valid shell variable names.
1277 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1278 as_fn_error $? "invalid package name: '$ac_useropt'"
1279 ac_useropt_orig=$ac_useropt
1280 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1281 case $ac_user_opts in
1282 *"
1283 "with_$ac_useropt"
1284 "*) ;;
1285 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1286 ac_unrecognized_sep=', ';;
1287 esac
1288 eval with_$ac_useropt=\$ac_optarg ;;
1289
1290 -without-* | --without-*)
1291 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1292 # Reject names that are not valid shell variable names.
1293 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1294 as_fn_error $? "invalid package name: '$ac_useropt'"
1295 ac_useropt_orig=$ac_useropt
1296 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1297 case $ac_user_opts in
1298 *"
1299 "with_$ac_useropt"
1300 "*) ;;
1301 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1302 ac_unrecognized_sep=', ';;
1303 esac
1304 eval with_$ac_useropt=no ;;
1305
1306 --x)
1307 # Obsolete; use --with-x.
1308 with_x=yes ;;
1309
1310 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1311 | --x-incl | --x-inc | --x-in | --x-i)
1312 ac_prev=x_includes ;;
1313 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1314 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1315 x_includes=$ac_optarg ;;
1316
1317 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1318 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1319 ac_prev=x_libraries ;;
1320 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1321 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1322 x_libraries=$ac_optarg ;;
1323
1324 -*) as_fn_error $? "unrecognized option: '$ac_option'
1325 Try '$0 --help' for more information"
1326 ;;
1327
1328 *=*)
1329 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1330 # Reject names that are not valid shell variable names.
1331 case $ac_envvar in #(
1332 '' | [0-9]* | *[!_$as_cr_alnum]* )
1333 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1334 esac
1335 eval $ac_envvar=\$ac_optarg
1336 export $ac_envvar ;;
1337
1338 *)
1339 # FIXME: should be removed in autoconf 3.0.
1340 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1341 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1342 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1343 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1344 ;;
1345
1346 esac
1347 done
1348
1349 if test -n "$ac_prev"; then
1350 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1351 as_fn_error $? "missing argument to $ac_option"
1352 fi
1353
1354 if test -n "$ac_unrecognized_opts"; then
1355 case $enable_option_checking in
1356 no) ;;
1357 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1358 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1359 esac
1360 fi
1361
1362 # Check all directory arguments for consistency.
1363 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1364 datadir sysconfdir sharedstatedir localstatedir includedir \
1365 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1366 libdir localedir mandir runstatedir
1367 do
1368 eval ac_val=\$$ac_var
1369 # Remove trailing slashes.
1370 case $ac_val in
1371 */ )
1372 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1373 eval $ac_var=\$ac_val;;
1374 esac
1375 # Be sure to have absolute directory names.
1376 case $ac_val in
1377 [\\/$]* | ?:[\\/]* ) continue;;
1378 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1379 esac
1380 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1381 done
1382
1383 # There might be people who depend on the old broken behavior: '$host'
1384 # used to hold the argument of --host etc.
1385 # FIXME: To remove some day.
1386 build=$build_alias
1387 host=$host_alias
1388 target=$target_alias
1389
1390 # FIXME: To remove some day.
1391 if test "x$host_alias" != x; then
1392 if test "x$build_alias" = x; then
1393 cross_compiling=maybe
1394 elif test "x$build_alias" != "x$host_alias"; then
1395 cross_compiling=yes
1396 fi
1397 fi
1398
1399 ac_tool_prefix=
1400 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1401
1402 test "$silent" = yes && exec 6>/dev/null
1403
1404
1405 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1406 ac_ls_di=`ls -di .` &&
1407 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1408 as_fn_error $? "working directory cannot be determined"
1409 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1410 as_fn_error $? "pwd does not report name of working directory"
1411
1412
1413 # Find the source files, if location was not specified.
1414 if test -z "$srcdir"; then
1415 ac_srcdir_defaulted=yes
1416 # Try the directory containing this script, then the parent directory.
1417 ac_confdir=`$as_dirname -- "$as_myself" ||
1418 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1419 X"$as_myself" : 'X\(//\)[^/]' \| \
1420 X"$as_myself" : 'X\(//\)$' \| \
1421 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1422 printf "%s\n" X"$as_myself" |
1423 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1424 s//\1/
1425 q
1426 }
1427 /^X\(\/\/\)[^/].*/{
1428 s//\1/
1429 q
1430 }
1431 /^X\(\/\/\)$/{
1432 s//\1/
1433 q
1434 }
1435 /^X\(\/\).*/{
1436 s//\1/
1437 q
1438 }
1439 s/.*/./; q'`
1440 srcdir=$ac_confdir
1441 if test ! -r "$srcdir/$ac_unique_file"; then
1442 srcdir=..
1443 fi
1444 else
1445 ac_srcdir_defaulted=no
1446 fi
1447 if test ! -r "$srcdir/$ac_unique_file"; then
1448 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1449 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1450 fi
1451 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1452 ac_abs_confdir=`(
1453 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1454 pwd)`
1455 # When building in place, set srcdir=.
1456 if test "$ac_abs_confdir" = "$ac_pwd"; then
1457 srcdir=.
1458 fi
1459 # Remove unnecessary trailing slashes from srcdir.
1460 # Double slashes in file names in object file debugging info
1461 # mess up M-x gdb in Emacs.
1462 case $srcdir in
1463 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1464 esac
1465 for ac_var in $ac_precious_vars; do
1466 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1467 eval ac_env_${ac_var}_value=\$${ac_var}
1468 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1469 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1470 done
1471
1472 #
1473 # Report the --help message.
1474 #
1475 if test "$ac_init_help" = "long"; then
1476 # Omit some internal or obsolete options to make the list less imposing.
1477 # This message is too long to be a string in the A/UX 3.1 sh.
1478 cat <<_ACEOF
1479 'configure' configures libXtst 1.2.5 to adapt to many kinds of systems.
1480
1481 Usage: $0 [OPTION]... [VAR=VALUE]...
1482
1483 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1484 VAR=VALUE. See below for descriptions of some of the useful variables.
1485
1486 Defaults for the options are specified in brackets.
1487
1488 Configuration:
1489 -h, --help display this help and exit
1490 --help=short display options specific to this package
1491 --help=recursive display the short help of all the included packages
1492 -V, --version display version information and exit
1493 -q, --quiet, --silent do not print 'checking ...' messages
1494 --cache-file=FILE cache test results in FILE [disabled]
1495 -C, --config-cache alias for '--cache-file=config.cache'
1496 -n, --no-create do not create output files
1497 --srcdir=DIR find the sources in DIR [configure dir or '..']
1498
1499 Installation directories:
1500 --prefix=PREFIX install architecture-independent files in PREFIX
1501 [$ac_default_prefix]
1502 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1503 [PREFIX]
1504
1505 By default, 'make install' will install all the files in
1506 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1507 an installation prefix other than '$ac_default_prefix' using '--prefix',
1508 for instance '--prefix=\$HOME'.
1509
1510 For better control, use the options below.
1511
1512 Fine tuning of the installation directories:
1513 --bindir=DIR user executables [EPREFIX/bin]
1514 --sbindir=DIR system admin executables [EPREFIX/sbin]
1515 --libexecdir=DIR program executables [EPREFIX/libexec]
1516 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1517 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1518 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1519 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1520 --libdir=DIR object code libraries [EPREFIX/lib]
1521 --includedir=DIR C header files [PREFIX/include]
1522 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1523 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1524 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1525 --infodir=DIR info documentation [DATAROOTDIR/info]
1526 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1527 --mandir=DIR man documentation [DATAROOTDIR/man]
1528 --docdir=DIR documentation root [DATAROOTDIR/doc/libXtst]
1529 --htmldir=DIR html documentation [DOCDIR]
1530 --dvidir=DIR dvi documentation [DOCDIR]
1531 --pdfdir=DIR pdf documentation [DOCDIR]
1532 --psdir=DIR ps documentation [DOCDIR]
1533 _ACEOF
1534
1535 cat <<\_ACEOF
1536
1537 Program names:
1538 --program-prefix=PREFIX prepend PREFIX to installed program names
1539 --program-suffix=SUFFIX append SUFFIX to installed program names
1540 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1541
1542 System types:
1543 --build=BUILD configure for building on BUILD [guessed]
1544 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1545 _ACEOF
1546 fi
1547
1548 if test -n "$ac_init_help"; then
1549 case $ac_init_help in
1550 short | recursive ) echo "Configuration of libXtst 1.2.5:";;
1551 esac
1552 cat <<\_ACEOF
1553
1554 Optional Features:
1555 --disable-option-checking ignore unrecognized --enable/--with options
1556 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1557 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1558 --enable-silent-rules less verbose build output (undo: "make V=1")
1559 --disable-silent-rules verbose build output (undo: "make V=0")
1560 --enable-shared[=PKGS] build shared libraries [default=yes]
1561 --enable-static[=PKGS] build static libraries [default=yes]
1562 --enable-fast-install[=PKGS]
1563 optimize for fast installation [default=yes]
1564 --enable-dependency-tracking
1565 do not reject slow dependency extractors
1566 --disable-dependency-tracking
1567 speeds up one-time build
1568 --disable-libtool-lock avoid locking (might break parallel builds)
1569 --disable-selective-werror
1570 Turn off selective compiler errors. (default:
1571 enabled)
1572 --enable-strict-compilation
1573 Enable all warnings from compiler and make them
1574 errors (default: disabled)
1575 --enable-specs Enable building the specs (default: yes)
1576 --enable-lint-library Create lint library (default: disabled)
1577
1578 Optional Packages:
1579 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1580 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1581 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1582 both]
1583 --with-aix-soname=aix|svr4|both
1584 shared library versioning (aka "SONAME") variant to
1585 provide on AIX, [default=aix].
1586 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1587 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1588 compiler's sysroot if not specified).
1589 --with-xmlto Use xmlto to regenerate documentation (default:
1590 auto)
1591 --with-fop Use fop to regenerate documentation (default: auto)
1592 --with-xsltproc Use xsltproc for the transformation of XML documents
1593 (default: auto)
1594 --with-lint Use a lint-style source code checker (default:
1595 disabled)
1596
1597 Some influential environment variables:
1598 CC C compiler command
1599 CFLAGS C compiler flags
1600 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1601 nonstandard directory <lib dir>
1602 LIBS libraries to pass to the linker, e.g. -l<library>
1603 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1604 you have headers in a nonstandard directory <include dir>
1605 LT_SYS_LIBRARY_PATH
1606 User-defined run-time library search path.
1607 PKG_CONFIG path to pkg-config utility
1608 PKG_CONFIG_PATH
1609 directories to add to pkg-config's search path
1610 PKG_CONFIG_LIBDIR
1611 path overriding pkg-config's built-in search path
1612 XMLTO Path to xmlto command
1613 FOP Path to fop command
1614 XSLTPROC Path to xsltproc command
1615 XTST_CFLAGS C compiler flags for XTST, overriding pkg-config
1616 XTST_LIBS linker flags for XTST, overriding pkg-config
1617 LINT Path to a lint-style command
1618 LINT_FLAGS Flags for the lint-style command
1619
1620 Use these variables to override the choices made by 'configure' or to help
1621 it to find libraries and programs with nonstandard names/locations.
1622
1623 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxtst/-/issues>.
1624 _ACEOF
1625 ac_status=$?
1626 fi
1627
1628 if test "$ac_init_help" = "recursive"; then
1629 # If there are subdirs, report their specific --help.
1630 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1631 test -d "$ac_dir" ||
1632 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1633 continue
1634 ac_builddir=.
1635
1636 case "$ac_dir" in
1637 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1638 *)
1639 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1640 # A ".." for each directory in $ac_dir_suffix.
1641 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1642 case $ac_top_builddir_sub in
1643 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1644 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1645 esac ;;
1646 esac
1647 ac_abs_top_builddir=$ac_pwd
1648 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1649 # for backward compatibility:
1650 ac_top_builddir=$ac_top_build_prefix
1651
1652 case $srcdir in
1653 .) # We are building in place.
1654 ac_srcdir=.
1655 ac_top_srcdir=$ac_top_builddir_sub
1656 ac_abs_top_srcdir=$ac_pwd ;;
1657 [\\/]* | ?:[\\/]* ) # Absolute name.
1658 ac_srcdir=$srcdir$ac_dir_suffix;
1659 ac_top_srcdir=$srcdir
1660 ac_abs_top_srcdir=$srcdir ;;
1661 *) # Relative name.
1662 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1663 ac_top_srcdir=$ac_top_build_prefix$srcdir
1664 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1665 esac
1666 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1667
1668 cd "$ac_dir" || { ac_status=$?; continue; }
1669 # Check for configure.gnu first; this name is used for a wrapper for
1670 # Metaconfig's "Configure" on case-insensitive file systems.
1671 if test -f "$ac_srcdir/configure.gnu"; then
1672 echo &&
1673 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1674 elif test -f "$ac_srcdir/configure"; then
1675 echo &&
1676 $SHELL "$ac_srcdir/configure" --help=recursive
1677 else
1678 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1679 fi || ac_status=$?
1680 cd "$ac_pwd" || { ac_status=$?; break; }
1681 done
1682 fi
1683
1684 test -n "$ac_init_help" && exit $ac_status
1685 if $ac_init_version; then
1686 cat <<\_ACEOF
1687 libXtst configure 1.2.5
1688 generated by GNU Autoconf 2.72
1689
1690 Copyright (C) 2023 Free Software Foundation, Inc.
1691 This configure script is free software; the Free Software Foundation
1692 gives unlimited permission to copy, distribute and modify it.
1693 _ACEOF
1694 exit
1695 fi
1696
1697 ## ------------------------ ##
1698 ## Autoconf initialization. ##
1699 ## ------------------------ ##
1700
1701 # ac_fn_c_try_compile LINENO
1702 # --------------------------
1703 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1704 ac_fn_c_try_compile ()
1705 {
1706 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1707 rm -f conftest.$ac_objext conftest.beam
1708 if { { ac_try="$ac_compile"
1709 case "(($ac_try" in
1710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1711 *) ac_try_echo=$ac_try;;
1712 esac
1713 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1714 printf "%s\n" "$ac_try_echo"; } >&5
1715 (eval "$ac_compile") 2>conftest.err
1716 ac_status=$?
1717 if test -s conftest.err; then
1718 grep -v '^ *+' conftest.err >conftest.er1
1719 cat conftest.er1 >&5
1720 mv -f conftest.er1 conftest.err
1721 fi
1722 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1723 test $ac_status = 0; } && {
1724 test -z "$ac_c_werror_flag" ||
1725 test ! -s conftest.err
1726 } && test -s conftest.$ac_objext
1727 then :
1728 ac_retval=0
1729 else case e in #(
1730 e) printf "%s\n" "$as_me: failed program was:" >&5
1731 sed 's/^/| /' conftest.$ac_ext >&5
1732
1733 ac_retval=1 ;;
1734 esac
1735 fi
1736 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1737 as_fn_set_status $ac_retval
1738
1739 } # ac_fn_c_try_compile
1740
1741 # ac_fn_c_try_link LINENO
1742 # -----------------------
1743 # Try to link conftest.$ac_ext, and return whether this succeeded.
1744 ac_fn_c_try_link ()
1745 {
1746 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1747 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1748 if { { ac_try="$ac_link"
1749 case "(($ac_try" in
1750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1751 *) ac_try_echo=$ac_try;;
1752 esac
1753 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1754 printf "%s\n" "$ac_try_echo"; } >&5
1755 (eval "$ac_link") 2>conftest.err
1756 ac_status=$?
1757 if test -s conftest.err; then
1758 grep -v '^ *+' conftest.err >conftest.er1
1759 cat conftest.er1 >&5
1760 mv -f conftest.er1 conftest.err
1761 fi
1762 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1763 test $ac_status = 0; } && {
1764 test -z "$ac_c_werror_flag" ||
1765 test ! -s conftest.err
1766 } && test -s conftest$ac_exeext && {
1767 test "$cross_compiling" = yes ||
1768 test -x conftest$ac_exeext
1769 }
1770 then :
1771 ac_retval=0
1772 else case e in #(
1773 e) printf "%s\n" "$as_me: failed program was:" >&5
1774 sed 's/^/| /' conftest.$ac_ext >&5
1775
1776 ac_retval=1 ;;
1777 esac
1778 fi
1779 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1780 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1781 # interfere with the next link command; also delete a directory that is
1782 # left behind by Apple's compiler. We do this before executing the actions.
1783 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1784 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1785 as_fn_set_status $ac_retval
1786
1787 } # ac_fn_c_try_link
1788
1789 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1790 # -------------------------------------------------------
1791 # Tests whether HEADER exists and can be compiled using the include files in
1792 # INCLUDES, setting the cache variable VAR accordingly.
1793 ac_fn_c_check_header_compile ()
1794 {
1795 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1797 printf %s "checking for $2... " >&6; }
1798 if eval test \${$3+y}
1799 then :
1800 printf %s "(cached) " >&6
1801 else case e in #(
1802 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1803 /* end confdefs.h. */
1804 $4
1805 #include <$2>
1806 _ACEOF
1807 if ac_fn_c_try_compile "$LINENO"
1808 then :
1809 eval "$3=yes"
1810 else case e in #(
1811 e) eval "$3=no" ;;
1812 esac
1813 fi
1814 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1815 esac
1816 fi
1817 eval ac_res=\$$3
1818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1819 printf "%s\n" "$ac_res" >&6; }
1820 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1821
1822 } # ac_fn_c_check_header_compile
1823
1824 # ac_fn_c_check_func LINENO FUNC VAR
1825 # ----------------------------------
1826 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1827 ac_fn_c_check_func ()
1828 {
1829 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1831 printf %s "checking for $2... " >&6; }
1832 if eval test \${$3+y}
1833 then :
1834 printf %s "(cached) " >&6
1835 else case e in #(
1836 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1837 /* end confdefs.h. */
1838 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1839 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1840 #define $2 innocuous_$2
1841
1842 /* System header to define __stub macros and hopefully few prototypes,
1843 which can conflict with char $2 (void); below. */
1844
1845 #include <limits.h>
1846 #undef $2
1847
1848 /* Override any GCC internal prototype to avoid an error.
1849 Use char because int might match the return type of a GCC
1850 builtin and then its argument prototype would still apply. */
1851 #ifdef __cplusplus
1852 extern "C"
1853 #endif
1854 char $2 (void);
1855 /* The GNU C library defines this for functions which it implements
1856 to always fail with ENOSYS. Some functions are actually named
1857 something starting with __ and the normal name is an alias. */
1858 #if defined __stub_$2 || defined __stub___$2
1859 choke me
1860 #endif
1861
1862 int
1863 main (void)
1864 {
1865 return $2 ();
1866 ;
1867 return 0;
1868 }
1869 _ACEOF
1870 if ac_fn_c_try_link "$LINENO"
1871 then :
1872 eval "$3=yes"
1873 else case e in #(
1874 e) eval "$3=no" ;;
1875 esac
1876 fi
1877 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1878 conftest$ac_exeext conftest.$ac_ext ;;
1879 esac
1880 fi
1881 eval ac_res=\$$3
1882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1883 printf "%s\n" "$ac_res" >&6; }
1884 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1885
1886 } # ac_fn_c_check_func
1887
1888 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1889 # ------------------------------------------------------------------
1890 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1891 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1892 ac_fn_check_decl ()
1893 {
1894 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1895 as_decl_name=`echo $2|sed 's/ *(.*//'`
1896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1897 printf %s "checking whether $as_decl_name is declared... " >&6; }
1898 if eval test \${$3+y}
1899 then :
1900 printf %s "(cached) " >&6
1901 else case e in #(
1902 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1903 eval ac_save_FLAGS=\$$6
1904 as_fn_append $6 " $5"
1905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1906 /* end confdefs.h. */
1907 $4
1908 int
1909 main (void)
1910 {
1911 #ifndef $as_decl_name
1912 #ifdef __cplusplus
1913 (void) $as_decl_use;
1914 #else
1915 (void) $as_decl_name;
1916 #endif
1917 #endif
1918
1919 ;
1920 return 0;
1921 }
1922 _ACEOF
1923 if ac_fn_c_try_compile "$LINENO"
1924 then :
1925 eval "$3=yes"
1926 else case e in #(
1927 e) eval "$3=no" ;;
1928 esac
1929 fi
1930 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1931 eval $6=\$ac_save_FLAGS
1932 ;;
1933 esac
1934 fi
1935 eval ac_res=\$$3
1936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1937 printf "%s\n" "$ac_res" >&6; }
1938 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1939
1940 } # ac_fn_check_decl
1941 ac_configure_args_raw=
1942 for ac_arg
1943 do
1944 case $ac_arg in
1945 *\'*)
1946 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1947 esac
1948 as_fn_append ac_configure_args_raw " '$ac_arg'"
1949 done
1950
1951 case $ac_configure_args_raw in
1952 *$as_nl*)
1953 ac_safe_unquote= ;;
1954 *)
1955 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1956 ac_unsafe_a="$ac_unsafe_z#~"
1957 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1958 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1959 esac
1960
1961 cat >config.log <<_ACEOF
1962 This file contains any messages produced by compilers while
1963 running configure, to aid debugging if configure makes a mistake.
1964
1965 It was created by libXtst $as_me 1.2.5, which was
1966 generated by GNU Autoconf 2.72. Invocation command line was
1967
1968 $ $0$ac_configure_args_raw
1969
1970 _ACEOF
1971 exec 5>>config.log
1972 {
1973 cat <<_ASUNAME
1974 ## --------- ##
1975 ## Platform. ##
1976 ## --------- ##
1977
1978 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1979 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1980 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1981 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1982 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1983
1984 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1985 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1986
1987 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1988 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1989 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1990 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1991 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1992 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1993 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1994
1995 _ASUNAME
1996
1997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1998 for as_dir in $PATH
1999 do
2000 IFS=$as_save_IFS
2001 case $as_dir in #(((
2002 '') as_dir=./ ;;
2003 */) ;;
2004 *) as_dir=$as_dir/ ;;
2005 esac
2006 printf "%s\n" "PATH: $as_dir"
2007 done
2008 IFS=$as_save_IFS
2009
2010 } >&5
2011
2012 cat >&5 <<_ACEOF
2013
2014
2015 ## ----------- ##
2016 ## Core tests. ##
2017 ## ----------- ##
2018
2019 _ACEOF
2020
2021
2022 # Keep a trace of the command line.
2023 # Strip out --no-create and --no-recursion so they do not pile up.
2024 # Strip out --silent because we don't want to record it for future runs.
2025 # Also quote any args containing shell meta-characters.
2026 # Make two passes to allow for proper duplicate-argument suppression.
2027 ac_configure_args=
2028 ac_configure_args0=
2029 ac_configure_args1=
2030 ac_must_keep_next=false
2031 for ac_pass in 1 2
2032 do
2033 for ac_arg
2034 do
2035 case $ac_arg in
2036 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2037 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2038 | -silent | --silent | --silen | --sile | --sil)
2039 continue ;;
2040 *\'*)
2041 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2042 esac
2043 case $ac_pass in
2044 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2045 2)
2046 as_fn_append ac_configure_args1 " '$ac_arg'"
2047 if test $ac_must_keep_next = true; then
2048 ac_must_keep_next=false # Got value, back to normal.
2049 else
2050 case $ac_arg in
2051 *=* | --config-cache | -C | -disable-* | --disable-* \
2052 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2053 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2054 | -with-* | --with-* | -without-* | --without-* | --x)
2055 case "$ac_configure_args0 " in
2056 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2057 esac
2058 ;;
2059 -* ) ac_must_keep_next=true ;;
2060 esac
2061 fi
2062 as_fn_append ac_configure_args " '$ac_arg'"
2063 ;;
2064 esac
2065 done
2066 done
2067 { ac_configure_args0=; unset ac_configure_args0;}
2068 { ac_configure_args1=; unset ac_configure_args1;}
2069
2070 # When interrupted or exit'd, cleanup temporary files, and complete
2071 # config.log. We remove comments because anyway the quotes in there
2072 # would cause problems or look ugly.
2073 # WARNING: Use '\'' to represent an apostrophe within the trap.
2074 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2075 trap 'exit_status=$?
2076 # Sanitize IFS.
2077 IFS=" "" $as_nl"
2078 # Save into config.log some information that might help in debugging.
2079 {
2080 echo
2081
2082 printf "%s\n" "## ---------------- ##
2083 ## Cache variables. ##
2084 ## ---------------- ##"
2085 echo
2086 # The following way of writing the cache mishandles newlines in values,
2087 (
2088 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2089 eval ac_val=\$$ac_var
2090 case $ac_val in #(
2091 *${as_nl}*)
2092 case $ac_var in #(
2093 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2094 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2095 esac
2096 case $ac_var in #(
2097 _ | IFS | as_nl) ;; #(
2098 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2099 *) { eval $ac_var=; unset $ac_var;} ;;
2100 esac ;;
2101 esac
2102 done
2103 (set) 2>&1 |
2104 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2105 *${as_nl}ac_space=\ *)
2106 sed -n \
2107 "s/'\''/'\''\\\\'\'''\''/g;
2108 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2109 ;; #(
2110 *)
2111 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2112 ;;
2113 esac |
2114 sort
2115 )
2116 echo
2117
2118 printf "%s\n" "## ----------------- ##
2119 ## Output variables. ##
2120 ## ----------------- ##"
2121 echo
2122 for ac_var in $ac_subst_vars
2123 do
2124 eval ac_val=\$$ac_var
2125 case $ac_val in
2126 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2127 esac
2128 printf "%s\n" "$ac_var='\''$ac_val'\''"
2129 done | sort
2130 echo
2131
2132 if test -n "$ac_subst_files"; then
2133 printf "%s\n" "## ------------------- ##
2134 ## File substitutions. ##
2135 ## ------------------- ##"
2136 echo
2137 for ac_var in $ac_subst_files
2138 do
2139 eval ac_val=\$$ac_var
2140 case $ac_val in
2141 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2142 esac
2143 printf "%s\n" "$ac_var='\''$ac_val'\''"
2144 done | sort
2145 echo
2146 fi
2147
2148 if test -s confdefs.h; then
2149 printf "%s\n" "## ----------- ##
2150 ## confdefs.h. ##
2151 ## ----------- ##"
2152 echo
2153 cat confdefs.h
2154 echo
2155 fi
2156 test "$ac_signal" != 0 &&
2157 printf "%s\n" "$as_me: caught signal $ac_signal"
2158 printf "%s\n" "$as_me: exit $exit_status"
2159 } >&5
2160 rm -f core *.core core.conftest.* &&
2161 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2162 exit $exit_status
2163 ' 0
2164 for ac_signal in 1 2 13 15; do
2165 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2166 done
2167 ac_signal=0
2168
2169 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2170 rm -f -r conftest* confdefs.h
2171
2172 printf "%s\n" "/* confdefs.h */" > confdefs.h
2173
2174 # Predefined preprocessor variables.
2175
2176 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2177
2178 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2179
2180 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2181
2182 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2183
2184 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2185
2186 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2187
2188
2189 # Let the site file select an alternate cache file if it wants to.
2190 # Prefer an explicitly selected file to automatically selected ones.
2191 if test -n "$CONFIG_SITE"; then
2192 ac_site_files="$CONFIG_SITE"
2193 elif test "x$prefix" != xNONE; then
2194 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2195 else
2196 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2197 fi
2198
2199 for ac_site_file in $ac_site_files
2200 do
2201 case $ac_site_file in #(
2202 */*) :
2203 ;; #(
2204 *) :
2205 ac_site_file=./$ac_site_file ;;
2206 esac
2207 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2209 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2210 sed 's/^/| /' "$ac_site_file" >&5
2211 . "$ac_site_file" \
2212 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2213 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2214 as_fn_error $? "failed to load site script $ac_site_file
2215 See 'config.log' for more details" "$LINENO" 5; }
2216 fi
2217 done
2218
2219 if test -r "$cache_file"; then
2220 # Some versions of bash will fail to source /dev/null (special files
2221 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2222 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2224 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2225 case $cache_file in
2226 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2227 *) . "./$cache_file";;
2228 esac
2229 fi
2230 else
2231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2232 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2233 >$cache_file
2234 fi
2235
2236 # Test code for whether the C compiler supports C89 (global declarations)
2237 ac_c_conftest_c89_globals='
2238 /* Does the compiler advertise C89 conformance?
2239 Do not test the value of __STDC__, because some compilers set it to 0
2240 while being otherwise adequately conformant. */
2241 #if !defined __STDC__
2242 # error "Compiler does not advertise C89 conformance"
2243 #endif
2244
2245 #include <stddef.h>
2246 #include <stdarg.h>
2247 struct stat;
2248 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2249 struct buf { int x; };
2250 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2251 static char *e (char **p, int i)
2252 {
2253 return p[i];
2254 }
2255 static char *f (char * (*g) (char **, int), char **p, ...)
2256 {
2257 char *s;
2258 va_list v;
2259 va_start (v,p);
2260 s = g (p, va_arg (v,int));
2261 va_end (v);
2262 return s;
2263 }
2264
2265 /* C89 style stringification. */
2266 #define noexpand_stringify(a) #a
2267 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2268
2269 /* C89 style token pasting. Exercises some of the corner cases that
2270 e.g. old MSVC gets wrong, but not very hard. */
2271 #define noexpand_concat(a,b) a##b
2272 #define expand_concat(a,b) noexpand_concat(a,b)
2273 extern int vA;
2274 extern int vbee;
2275 #define aye A
2276 #define bee B
2277 int *pvA = &expand_concat(v,aye);
2278 int *pvbee = &noexpand_concat(v,bee);
2279
2280 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2281 function prototypes and stuff, but not \xHH hex character constants.
2282 These do not provoke an error unfortunately, instead are silently treated
2283 as an "x". The following induces an error, until -std is added to get
2284 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2285 array size at least. It is necessary to write \x00 == 0 to get something
2286 that is true only with -std. */
2287 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2288
2289 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2290 inside strings and character constants. */
2291 #define FOO(x) '\''x'\''
2292 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2293
2294 int test (int i, double x);
2295 struct s1 {int (*f) (int a);};
2296 struct s2 {int (*f) (double a);};
2297 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2298 int, int);'
2299
2300 # Test code for whether the C compiler supports C89 (body of main).
2301 ac_c_conftest_c89_main='
2302 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2303 '
2304
2305 # Test code for whether the C compiler supports C99 (global declarations)
2306 ac_c_conftest_c99_globals='
2307 /* Does the compiler advertise C99 conformance? */
2308 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2309 # error "Compiler does not advertise C99 conformance"
2310 #endif
2311
2312 // See if C++-style comments work.
2313
2314 #include <stdbool.h>
2315 extern int puts (const char *);
2316 extern int printf (const char *, ...);
2317 extern int dprintf (int, const char *, ...);
2318 extern void *malloc (size_t);
2319 extern void free (void *);
2320
2321 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2322 // dprintf is used instead of fprintf to avoid needing to declare
2323 // FILE and stderr.
2324 #define debug(...) dprintf (2, __VA_ARGS__)
2325 #define showlist(...) puts (#__VA_ARGS__)
2326 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2327 static void
2328 test_varargs_macros (void)
2329 {
2330 int x = 1234;
2331 int y = 5678;
2332 debug ("Flag");
2333 debug ("X = %d\n", x);
2334 showlist (The first, second, and third items.);
2335 report (x>y, "x is %d but y is %d", x, y);
2336 }
2337
2338 // Check long long types.
2339 #define BIG64 18446744073709551615ull
2340 #define BIG32 4294967295ul
2341 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2342 #if !BIG_OK
2343 #error "your preprocessor is broken"
2344 #endif
2345 #if BIG_OK
2346 #else
2347 #error "your preprocessor is broken"
2348 #endif
2349 static long long int bignum = -9223372036854775807LL;
2350 static unsigned long long int ubignum = BIG64;
2351
2352 struct incomplete_array
2353 {
2354 int datasize;
2355 double data[];
2356 };
2357
2358 struct named_init {
2359 int number;
2360 const wchar_t *name;
2361 double average;
2362 };
2363
2364 typedef const char *ccp;
2365
2366 static inline int
2367 test_restrict (ccp restrict text)
2368 {
2369 // Iterate through items via the restricted pointer.
2370 // Also check for declarations in for loops.
2371 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2372 continue;
2373 return 0;
2374 }
2375
2376 // Check varargs and va_copy.
2377 static bool
2378 test_varargs (const char *format, ...)
2379 {
2380 va_list args;
2381 va_start (args, format);
2382 va_list args_copy;
2383 va_copy (args_copy, args);
2384
2385 const char *str = "";
2386 int number = 0;
2387 float fnumber = 0;
2388
2389 while (*format)
2390 {
2391 switch (*format++)
2392 {
2393 case '\''s'\'': // string
2394 str = va_arg (args_copy, const char *);
2395 break;
2396 case '\''d'\'': // int
2397 number = va_arg (args_copy, int);
2398 break;
2399 case '\''f'\'': // float
2400 fnumber = va_arg (args_copy, double);
2401 break;
2402 default:
2403 break;
2404 }
2405 }
2406 va_end (args_copy);
2407 va_end (args);
2408
2409 return *str && number && fnumber;
2410 }
2411 '
2412
2413 # Test code for whether the C compiler supports C99 (body of main).
2414 ac_c_conftest_c99_main='
2415 // Check bool.
2416 _Bool success = false;
2417 success |= (argc != 0);
2418
2419 // Check restrict.
2420 if (test_restrict ("String literal") == 0)
2421 success = true;
2422 char *restrict newvar = "Another string";
2423
2424 // Check varargs.
2425 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2426 test_varargs_macros ();
2427
2428 // Check flexible array members.
2429 struct incomplete_array *ia =
2430 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2431 ia->datasize = 10;
2432 for (int i = 0; i < ia->datasize; ++i)
2433 ia->data[i] = i * 1.234;
2434 // Work around memory leak warnings.
2435 free (ia);
2436
2437 // Check named initializers.
2438 struct named_init ni = {
2439 .number = 34,
2440 .name = L"Test wide string",
2441 .average = 543.34343,
2442 };
2443
2444 ni.number = 58;
2445
2446 int dynamic_array[ni.number];
2447 dynamic_array[0] = argv[0][0];
2448 dynamic_array[ni.number - 1] = 543;
2449
2450 // work around unused variable warnings
2451 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2452 || dynamic_array[ni.number - 1] != 543);
2453 '
2454
2455 # Test code for whether the C compiler supports C11 (global declarations)
2456 ac_c_conftest_c11_globals='
2457 /* Does the compiler advertise C11 conformance? */
2458 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2459 # error "Compiler does not advertise C11 conformance"
2460 #endif
2461
2462 // Check _Alignas.
2463 char _Alignas (double) aligned_as_double;
2464 char _Alignas (0) no_special_alignment;
2465 extern char aligned_as_int;
2466 char _Alignas (0) _Alignas (int) aligned_as_int;
2467
2468 // Check _Alignof.
2469 enum
2470 {
2471 int_alignment = _Alignof (int),
2472 int_array_alignment = _Alignof (int[100]),
2473 char_alignment = _Alignof (char)
2474 };
2475 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2476
2477 // Check _Noreturn.
2478 int _Noreturn does_not_return (void) { for (;;) continue; }
2479
2480 // Check _Static_assert.
2481 struct test_static_assert
2482 {
2483 int x;
2484 _Static_assert (sizeof (int) <= sizeof (long int),
2485 "_Static_assert does not work in struct");
2486 long int y;
2487 };
2488
2489 // Check UTF-8 literals.
2490 #define u8 syntax error!
2491 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2492
2493 // Check duplicate typedefs.
2494 typedef long *long_ptr;
2495 typedef long int *long_ptr;
2496 typedef long_ptr long_ptr;
2497
2498 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2499 struct anonymous
2500 {
2501 union {
2502 struct { int i; int j; };
2503 struct { int k; long int l; } w;
2504 };
2505 int m;
2506 } v1;
2507 '
2508
2509 # Test code for whether the C compiler supports C11 (body of main).
2510 ac_c_conftest_c11_main='
2511 _Static_assert ((offsetof (struct anonymous, i)
2512 == offsetof (struct anonymous, w.k)),
2513 "Anonymous union alignment botch");
2514 v1.i = 2;
2515 v1.w.k = 5;
2516 ok |= v1.i != 5;
2517 '
2518
2519 # Test code for whether the C compiler supports C11 (complete).
2520 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2521 ${ac_c_conftest_c99_globals}
2522 ${ac_c_conftest_c11_globals}
2523
2524 int
2525 main (int argc, char **argv)
2526 {
2527 int ok = 0;
2528 ${ac_c_conftest_c89_main}
2529 ${ac_c_conftest_c99_main}
2530 ${ac_c_conftest_c11_main}
2531 return ok;
2532 }
2533 "
2534
2535 # Test code for whether the C compiler supports C99 (complete).
2536 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2537 ${ac_c_conftest_c99_globals}
2538
2539 int
2540 main (int argc, char **argv)
2541 {
2542 int ok = 0;
2543 ${ac_c_conftest_c89_main}
2544 ${ac_c_conftest_c99_main}
2545 return ok;
2546 }
2547 "
2548
2549 # Test code for whether the C compiler supports C89 (complete).
2550 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2551
2552 int
2553 main (int argc, char **argv)
2554 {
2555 int ok = 0;
2556 ${ac_c_conftest_c89_main}
2557 return ok;
2558 }
2559 "
2560
2561 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2562 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2563 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2564 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2565 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2566 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2567 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2568 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2569 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2570
2571 # Auxiliary files required by this configure script.
2572 ac_aux_files="compile config.guess config.sub ltmain.sh missing install-sh"
2573
2574 # Locations in which to look for auxiliary files.
2575 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2576
2577 # Search for a directory containing all of the required auxiliary files,
2578 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2579 # If we don't find one directory that contains all the files we need,
2580 # we report the set of missing files from the *first* directory in
2581 # $ac_aux_dir_candidates and give up.
2582 ac_missing_aux_files=""
2583 ac_first_candidate=:
2584 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2586 as_found=false
2587 for as_dir in $ac_aux_dir_candidates
2588 do
2589 IFS=$as_save_IFS
2590 case $as_dir in #(((
2591 '') as_dir=./ ;;
2592 */) ;;
2593 *) as_dir=$as_dir/ ;;
2594 esac
2595 as_found=:
2596
2597 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2598 ac_aux_dir_found=yes
2599 ac_install_sh=
2600 for ac_aux in $ac_aux_files
2601 do
2602 # As a special case, if "install-sh" is required, that requirement
2603 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2604 # and $ac_install_sh is set appropriately for whichever one is found.
2605 if test x"$ac_aux" = x"install-sh"
2606 then
2607 if test -f "${as_dir}install-sh"; then
2608 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2609 ac_install_sh="${as_dir}install-sh -c"
2610 elif test -f "${as_dir}install.sh"; then
2611 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2612 ac_install_sh="${as_dir}install.sh -c"
2613 elif test -f "${as_dir}shtool"; then
2614 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2615 ac_install_sh="${as_dir}shtool install -c"
2616 else
2617 ac_aux_dir_found=no
2618 if $ac_first_candidate; then
2619 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2620 else
2621 break
2622 fi
2623 fi
2624 else
2625 if test -f "${as_dir}${ac_aux}"; then
2626 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2627 else
2628 ac_aux_dir_found=no
2629 if $ac_first_candidate; then
2630 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2631 else
2632 break
2633 fi
2634 fi
2635 fi
2636 done
2637 if test "$ac_aux_dir_found" = yes; then
2638 ac_aux_dir="$as_dir"
2639 break
2640 fi
2641 ac_first_candidate=false
2642
2643 as_found=false
2644 done
2645 IFS=$as_save_IFS
2646 if $as_found
2647 then :
2648
2649 else case e in #(
2650 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2651 esac
2652 fi
2653
2654
2655 # These three variables are undocumented and unsupported,
2656 # and are intended to be withdrawn in a future Autoconf release.
2657 # They can cause serious problems if a builder's source tree is in a directory
2658 # whose full name contains unusual characters.
2659 if test -f "${ac_aux_dir}config.guess"; then
2660 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2661 fi
2662 if test -f "${ac_aux_dir}config.sub"; then
2663 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2664 fi
2665 if test -f "$ac_aux_dir/configure"; then
2666 ac_configure="$SHELL ${ac_aux_dir}configure"
2667 fi
2668
2669 # Check that the precious variables saved in the cache have kept the same
2670 # value.
2671 ac_cache_corrupted=false
2672 for ac_var in $ac_precious_vars; do
2673 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2674 eval ac_new_set=\$ac_env_${ac_var}_set
2675 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2676 eval ac_new_val=\$ac_env_${ac_var}_value
2677 case $ac_old_set,$ac_new_set in
2678 set,)
2679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2680 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2681 ac_cache_corrupted=: ;;
2682 ,set)
2683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2684 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2685 ac_cache_corrupted=: ;;
2686 ,);;
2687 *)
2688 if test "x$ac_old_val" != "x$ac_new_val"; then
2689 # differences in whitespace do not lead to failure.
2690 ac_old_val_w=`echo x $ac_old_val`
2691 ac_new_val_w=`echo x $ac_new_val`
2692 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2694 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2695 ac_cache_corrupted=:
2696 else
2697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2698 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2699 eval $ac_var=\$ac_old_val
2700 fi
2701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2702 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2704 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2705 fi;;
2706 esac
2707 # Pass precious variables to config.status.
2708 if test "$ac_new_set" = set; then
2709 case $ac_new_val in
2710 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2711 *) ac_arg=$ac_var=$ac_new_val ;;
2712 esac
2713 case " $ac_configure_args " in
2714 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2715 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2716 esac
2717 fi
2718 done
2719 if $ac_cache_corrupted; then
2720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2721 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2723 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2724 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2725 and start over" "$LINENO" 5
2726 fi
2727 ## -------------------- ##
2728 ## Main body of script. ##
2729 ## -------------------- ##
2730
2731 ac_ext=c
2732 ac_cpp='$CPP $CPPFLAGS'
2733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2736
2737
2738
2739 ac_config_headers="$ac_config_headers config.h"
2740
2741
2742
2743 # Initialize Automake
2744 am__api_version='1.17'
2745
2746
2747
2748 # Find a good install program. We prefer a C program (faster),
2749 # so one script is as good as another. But avoid the broken or
2750 # incompatible versions:
2751 # SysV /etc/install, /usr/sbin/install
2752 # SunOS /usr/etc/install
2753 # IRIX /sbin/install
2754 # AIX /bin/install
2755 # AmigaOS /C/install, which installs bootblocks on floppy discs
2756 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2757 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2758 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2759 # OS/2's system install, which has a completely different semantic
2760 # ./install, which can be erroneously created by make from ./install.sh.
2761 # Reject install programs that cannot install multiple files.
2762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2763 printf %s "checking for a BSD-compatible install... " >&6; }
2764 if test -z "$INSTALL"; then
2765 if test ${ac_cv_path_install+y}
2766 then :
2767 printf %s "(cached) " >&6
2768 else case e in #(
2769 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2770 for as_dir in $PATH
2771 do
2772 IFS=$as_save_IFS
2773 case $as_dir in #(((
2774 '') as_dir=./ ;;
2775 */) ;;
2776 *) as_dir=$as_dir/ ;;
2777 esac
2778 # Account for fact that we put trailing slashes in our PATH walk.
2779 case $as_dir in #((
2780 ./ | /[cC]/* | \
2781 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2782 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2783 /usr/ucb/* ) ;;
2784 *)
2785 # OSF1 and SCO ODT 3.0 have their own names for install.
2786 # Don't use installbsd from OSF since it installs stuff as root
2787 # by default.
2788 for ac_prog in ginstall scoinst install; do
2789 for ac_exec_ext in '' $ac_executable_extensions; do
2790 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2791 if test $ac_prog = install &&
2792 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2793 # AIX install. It has an incompatible calling convention.
2794 :
2795 elif test $ac_prog = install &&
2796 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2797 # program-specific install script used by HP pwplus--don't use.
2798 :
2799 else
2800 rm -rf conftest.one conftest.two conftest.dir
2801 echo one > conftest.one
2802 echo two > conftest.two
2803 mkdir conftest.dir
2804 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2805 test -s conftest.one && test -s conftest.two &&
2806 test -s conftest.dir/conftest.one &&
2807 test -s conftest.dir/conftest.two
2808 then
2809 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2810 break 3
2811 fi
2812 fi
2813 fi
2814 done
2815 done
2816 ;;
2817 esac
2818
2819 done
2820 IFS=$as_save_IFS
2821
2822 rm -rf conftest.one conftest.two conftest.dir
2823 ;;
2824 esac
2825 fi
2826 if test ${ac_cv_path_install+y}; then
2827 INSTALL=$ac_cv_path_install
2828 else
2829 # As a last resort, use the slow shell script. Don't cache a
2830 # value for INSTALL within a source directory, because that will
2831 # break other packages using the cache if that directory is
2832 # removed, or if the value is a relative name.
2833 INSTALL=$ac_install_sh
2834 fi
2835 fi
2836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2837 printf "%s\n" "$INSTALL" >&6; }
2838
2839 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2840 # It thinks the first close brace ends the variable substitution.
2841 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2842
2843 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2844
2845 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2846
2847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
2848 printf %s "checking whether sleep supports fractional seconds... " >&6; }
2849 if test ${am_cv_sleep_fractional_seconds+y}
2850 then :
2851 printf %s "(cached) " >&6
2852 else case e in #(
2853 e) if sleep 0.001 2>/dev/null
2854 then :
2855 am_cv_sleep_fractional_seconds=yes
2856 else case e in #(
2857 e) am_cv_sleep_fractional_seconds=no ;;
2858 esac
2859 fi
2860 ;;
2861 esac
2862 fi
2863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
2864 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
2865
2866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
2867 printf %s "checking filesystem timestamp resolution... " >&6; }
2868 if test ${am_cv_filesystem_timestamp_resolution+y}
2869 then :
2870 printf %s "(cached) " >&6
2871 else case e in #(
2872 e) # Default to the worst case.
2873 am_cv_filesystem_timestamp_resolution=2
2874
2875 # Only try to go finer than 1 sec if sleep can do it.
2876 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
2877 # - 1 sec is not much of a win compared to 2 sec, and
2878 # - it takes 2 seconds to perform the test whether 1 sec works.
2879 #
2880 # Instead, just use the default 2s on platforms that have 1s resolution,
2881 # accept the extra 1s delay when using $sleep in the Automake tests, in
2882 # exchange for not incurring the 2s delay for running the test for all
2883 # packages.
2884 #
2885 am_try_resolutions=
2886 if test "$am_cv_sleep_fractional_seconds" = yes; then
2887 # Even a millisecond often causes a bunch of false positives,
2888 # so just try a hundredth of a second. The time saved between .001 and
2889 # .01 is not terribly consequential.
2890 am_try_resolutions="0.01 0.1 $am_try_resolutions"
2891 fi
2892
2893 # In order to catch current-generation FAT out, we must *modify* files
2894 # that already exist; the *creation* timestamp is finer. Use names
2895 # that make ls -t sort them differently when they have equal
2896 # timestamps than when they have distinct timestamps, keeping
2897 # in mind that ls -t prints the *newest* file first.
2898 rm -f conftest.ts?
2899 : > conftest.ts1
2900 : > conftest.ts2
2901 : > conftest.ts3
2902
2903 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
2904 # clobber the current shell's arguments. (Outer-level square brackets
2905 # are removed by m4; they're present so that m4 does not expand
2906 # <dollar><star>; be careful, easy to get confused.)
2907 if (
2908 set X `ls -t conftest.ts[12]` &&
2909 {
2910 test "$*" != "X conftest.ts1 conftest.ts2" ||
2911 test "$*" != "X conftest.ts2 conftest.ts1";
2912 }
2913 ); then :; else
2914 # If neither matched, then we have a broken ls. This can happen
2915 # if, for instance, CONFIG_SHELL is bash and it inherits a
2916 # broken ls alias from the environment. This has actually
2917 # happened. Such a system could not be considered "sane".
2918 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
2919 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2920 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2921 as_fn_error $? "ls -t produces unexpected output.
2922 Make sure there is not a broken ls alias in your environment.
2923 See 'config.log' for more details" "$LINENO" 5; }
2924 fi
2925
2926 for am_try_res in $am_try_resolutions; do
2927 # Any one fine-grained sleep might happen to cross the boundary
2928 # between two values of a coarser actual resolution, but if we do
2929 # two fine-grained sleeps in a row, at least one of them will fall
2930 # entirely within a coarse interval.
2931 echo alpha > conftest.ts1
2932 sleep $am_try_res
2933 echo beta > conftest.ts2
2934 sleep $am_try_res
2935 echo gamma > conftest.ts3
2936
2937 # We assume that 'ls -t' will make use of high-resolution
2938 # timestamps if the operating system supports them at all.
2939 if (set X `ls -t conftest.ts?` &&
2940 test "$2" = conftest.ts3 &&
2941 test "$3" = conftest.ts2 &&
2942 test "$4" = conftest.ts1); then
2943 #
2944 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
2945 # because we don't need to test make.
2946 make_ok=true
2947 if test $am_try_res != 1; then
2948 # But if we've succeeded so far with a subsecond resolution, we
2949 # have one more thing to check: make. It can happen that
2950 # everything else supports the subsecond mtimes, but make doesn't;
2951 # notably on macOS, which ships make 3.81 from 2006 (the last one
2952 # released under GPLv2). https://bugs.gnu.org/68808
2953 #
2954 # We test $MAKE if it is defined in the environment, else "make".
2955 # It might get overridden later, but our hope is that in practice
2956 # it does not matter: it is the system "make" which is (by far)
2957 # the most likely to be broken, whereas if the user overrides it,
2958 # probably they did so with a better, or at least not worse, make.
2959 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
2960 #
2961 # Create a Makefile (real tab character here):
2962 rm -f conftest.mk
2963 echo 'conftest.ts1: conftest.ts2' >conftest.mk
2964 echo ' touch conftest.ts2' >>conftest.mk
2965 #
2966 # Now, running
2967 # touch conftest.ts1; touch conftest.ts2; make
2968 # should touch ts1 because ts2 is newer. This could happen by luck,
2969 # but most often, it will fail if make's support is insufficient. So
2970 # test for several consecutive successes.
2971 #
2972 # (We reuse conftest.ts[12] because we still want to modify existing
2973 # files, not create new ones, per above.)
2974 n=0
2975 make=${MAKE-make}
2976 until test $n -eq 3; do
2977 echo one > conftest.ts1
2978 sleep $am_try_res
2979 echo two > conftest.ts2 # ts2 should now be newer than ts1
2980 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
2981 make_ok=false
2982 break # out of $n loop
2983 fi
2984 n=`expr $n + 1`
2985 done
2986 fi
2987 #
2988 if $make_ok; then
2989 # Everything we know to check worked out, so call this resolution good.
2990 am_cv_filesystem_timestamp_resolution=$am_try_res
2991 break # out of $am_try_res loop
2992 fi
2993 # Otherwise, we'll go on to check the next resolution.
2994 fi
2995 done
2996 rm -f conftest.ts?
2997 # (end _am_filesystem_timestamp_resolution)
2998 ;;
2999 esac
3000 fi
3001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
3002 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
3003
3004 # This check should not be cached, as it may vary across builds of
3005 # different projects.
3006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3007 printf %s "checking whether build environment is sane... " >&6; }
3008 # Reject unsafe characters in $srcdir or the absolute working directory
3009 # name. Accept space and tab only in the latter.
3010 am_lf='
3011 '
3012 case `pwd` in
3013 *[\\\"\#\$\&\'\`$am_lf]*)
3014 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3015 esac
3016 case $srcdir in
3017 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3018 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3019 esac
3020
3021 # Do 'set' in a subshell so we don't clobber the current shell's
3022 # arguments. Must try -L first in case configure is actually a
3023 # symlink; some systems play weird games with the mod time of symlinks
3024 # (eg FreeBSD returns the mod time of the symlink's containing
3025 # directory).
3026 am_build_env_is_sane=no
3027 am_has_slept=no
3028 rm -f conftest.file
3029 for am_try in 1 2; do
3030 echo "timestamp, slept: $am_has_slept" > conftest.file
3031 if (
3032 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3033 if test "$*" = "X"; then
3034 # -L didn't work.
3035 set X `ls -t "$srcdir/configure" conftest.file`
3036 fi
3037 test "$2" = conftest.file
3038 ); then
3039 am_build_env_is_sane=yes
3040 break
3041 fi
3042 # Just in case.
3043 sleep "$am_cv_filesystem_timestamp_resolution"
3044 am_has_slept=yes
3045 done
3046
3047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
3048 printf "%s\n" "$am_build_env_is_sane" >&6; }
3049 if test "$am_build_env_is_sane" = no; then
3050 as_fn_error $? "newly created file is older than distributed files!
3051 Check your system clock" "$LINENO" 5
3052 fi
3053
3054 # If we didn't sleep, we still need to ensure time stamps of config.status and
3055 # generated files are strictly newer.
3056 am_sleep_pid=
3057 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
3058 then :
3059
3060 else case e in #(
3061 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
3062 am_sleep_pid=$!
3063 ;;
3064 esac
3065 fi
3066
3067 rm -f conftest.file
3068
3069 test "$program_prefix" != NONE &&
3070 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3071 # Use a double $ so make ignores it.
3072 test "$program_suffix" != NONE &&
3073 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3074 # Double any \ or $.
3075 # By default was 's,x,x', remove it if useless.
3076 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3077 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3078
3079
3080 # Expand $ac_aux_dir to an absolute path.
3081 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3082
3083
3084 if test x"${MISSING+set}" != xset; then
3085 MISSING="\${SHELL} '$am_aux_dir/missing'"
3086 fi
3087 # Use eval to expand $SHELL
3088 if eval "$MISSING --is-lightweight"; then
3089 am_missing_run="$MISSING "
3090 else
3091 am_missing_run=
3092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3093 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3094 fi
3095
3096 if test x"${install_sh+set}" != xset; then
3097 case $am_aux_dir in
3098 *\ * | *\ *)
3099 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3100 *)
3101 install_sh="\${SHELL} $am_aux_dir/install-sh"
3102 esac
3103 fi
3104
3105 # Installed binaries are usually stripped using 'strip' when the user
3106 # run "make install-strip". However 'strip' might not be the right
3107 # tool to use in cross-compilation environments, therefore Automake
3108 # will honor the 'STRIP' environment variable to overrule this program.
3109 if test "$cross_compiling" != no; then
3110 if test -n "$ac_tool_prefix"; then
3111 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3112 set dummy ${ac_tool_prefix}strip; ac_word=$2
3113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3114 printf %s "checking for $ac_word... " >&6; }
3115 if test ${ac_cv_prog_STRIP+y}
3116 then :
3117 printf %s "(cached) " >&6
3118 else case e in #(
3119 e) if test -n "$STRIP"; then
3120 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3121 else
3122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3123 for as_dir in $PATH
3124 do
3125 IFS=$as_save_IFS
3126 case $as_dir in #(((
3127 '') as_dir=./ ;;
3128 */) ;;
3129 *) as_dir=$as_dir/ ;;
3130 esac
3131 for ac_exec_ext in '' $ac_executable_extensions; do
3132 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3133 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3134 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3135 break 2
3136 fi
3137 done
3138 done
3139 IFS=$as_save_IFS
3140
3141 fi ;;
3142 esac
3143 fi
3144 STRIP=$ac_cv_prog_STRIP
3145 if test -n "$STRIP"; then
3146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3147 printf "%s\n" "$STRIP" >&6; }
3148 else
3149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3150 printf "%s\n" "no" >&6; }
3151 fi
3152
3153
3154 fi
3155 if test -z "$ac_cv_prog_STRIP"; then
3156 ac_ct_STRIP=$STRIP
3157 # Extract the first word of "strip", so it can be a program name with args.
3158 set dummy strip; ac_word=$2
3159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3160 printf %s "checking for $ac_word... " >&6; }
3161 if test ${ac_cv_prog_ac_ct_STRIP+y}
3162 then :
3163 printf %s "(cached) " >&6
3164 else case e in #(
3165 e) if test -n "$ac_ct_STRIP"; then
3166 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3167 else
3168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3169 for as_dir in $PATH
3170 do
3171 IFS=$as_save_IFS
3172 case $as_dir in #(((
3173 '') as_dir=./ ;;
3174 */) ;;
3175 *) as_dir=$as_dir/ ;;
3176 esac
3177 for ac_exec_ext in '' $ac_executable_extensions; do
3178 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3179 ac_cv_prog_ac_ct_STRIP="strip"
3180 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3181 break 2
3182 fi
3183 done
3184 done
3185 IFS=$as_save_IFS
3186
3187 fi ;;
3188 esac
3189 fi
3190 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3191 if test -n "$ac_ct_STRIP"; then
3192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3193 printf "%s\n" "$ac_ct_STRIP" >&6; }
3194 else
3195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3196 printf "%s\n" "no" >&6; }
3197 fi
3198
3199 if test "x$ac_ct_STRIP" = x; then
3200 STRIP=":"
3201 else
3202 case $cross_compiling:$ac_tool_warned in
3203 yes:)
3204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3205 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3206 ac_tool_warned=yes ;;
3207 esac
3208 STRIP=$ac_ct_STRIP
3209 fi
3210 else
3211 STRIP="$ac_cv_prog_STRIP"
3212 fi
3213
3214 fi
3215 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3216
3217
3218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3219 printf %s "checking for a race-free mkdir -p... " >&6; }
3220 if test -z "$MKDIR_P"; then
3221 if test ${ac_cv_path_mkdir+y}
3222 then :
3223 printf %s "(cached) " >&6
3224 else case e in #(
3225 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3226 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3227 do
3228 IFS=$as_save_IFS
3229 case $as_dir in #(((
3230 '') as_dir=./ ;;
3231 */) ;;
3232 *) as_dir=$as_dir/ ;;
3233 esac
3234 for ac_prog in mkdir gmkdir; do
3235 for ac_exec_ext in '' $ac_executable_extensions; do
3236 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3237 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3238 'mkdir ('*'coreutils) '* | \
3239 *'BusyBox '* | \
3240 'mkdir (fileutils) '4.1*)
3241 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3242 break 3;;
3243 esac
3244 done
3245 done
3246 done
3247 IFS=$as_save_IFS
3248 ;;
3249 esac
3250 fi
3251
3252 test -d ./--version && rmdir ./--version
3253 if test ${ac_cv_path_mkdir+y}; then
3254 MKDIR_P="$ac_cv_path_mkdir -p"
3255 else
3256 # As a last resort, use plain mkdir -p,
3257 # in the hope it doesn't have the bugs of ancient mkdir.
3258 MKDIR_P='mkdir -p'
3259 fi
3260 fi
3261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3262 printf "%s\n" "$MKDIR_P" >&6; }
3263
3264 for ac_prog in gawk mawk nawk awk
3265 do
3266 # Extract the first word of "$ac_prog", so it can be a program name with args.
3267 set dummy $ac_prog; ac_word=$2
3268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3269 printf %s "checking for $ac_word... " >&6; }
3270 if test ${ac_cv_prog_AWK+y}
3271 then :
3272 printf %s "(cached) " >&6
3273 else case e in #(
3274 e) if test -n "$AWK"; then
3275 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3276 else
3277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3278 for as_dir in $PATH
3279 do
3280 IFS=$as_save_IFS
3281 case $as_dir in #(((
3282 '') as_dir=./ ;;
3283 */) ;;
3284 *) as_dir=$as_dir/ ;;
3285 esac
3286 for ac_exec_ext in '' $ac_executable_extensions; do
3287 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3288 ac_cv_prog_AWK="$ac_prog"
3289 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3290 break 2
3291 fi
3292 done
3293 done
3294 IFS=$as_save_IFS
3295
3296 fi ;;
3297 esac
3298 fi
3299 AWK=$ac_cv_prog_AWK
3300 if test -n "$AWK"; then
3301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3302 printf "%s\n" "$AWK" >&6; }
3303 else
3304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3305 printf "%s\n" "no" >&6; }
3306 fi
3307
3308
3309 test -n "$AWK" && break
3310 done
3311
3312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3313 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3314 set x ${MAKE-make}
3315 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3316 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3317 then :
3318 printf %s "(cached) " >&6
3319 else case e in #(
3320 e) cat >conftest.make <<\_ACEOF
3321 SHELL = /bin/sh
3322 all:
3323 @echo '@@@%%%=$(MAKE)=@@@%%%'
3324 _ACEOF
3325 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3326 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3327 *@@@%%%=?*=@@@%%%*)
3328 eval ac_cv_prog_make_${ac_make}_set=yes;;
3329 *)
3330 eval ac_cv_prog_make_${ac_make}_set=no;;
3331 esac
3332 rm -f conftest.make ;;
3333 esac
3334 fi
3335 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3337 printf "%s\n" "yes" >&6; }
3338 SET_MAKE=
3339 else
3340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3341 printf "%s\n" "no" >&6; }
3342 SET_MAKE="MAKE=${MAKE-make}"
3343 fi
3344
3345 rm -rf .tst 2>/dev/null
3346 mkdir .tst 2>/dev/null
3347 if test -d .tst; then
3348 am__leading_dot=.
3349 else
3350 am__leading_dot=_
3351 fi
3352 rmdir .tst 2>/dev/null
3353
3354 AM_DEFAULT_VERBOSITY=1
3355 # Check whether --enable-silent-rules was given.
3356 if test ${enable_silent_rules+y}
3357 then :
3358 enableval=$enable_silent_rules;
3359 fi
3360
3361 am_make=${MAKE-make}
3362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3363 printf %s "checking whether $am_make supports nested variables... " >&6; }
3364 if test ${am_cv_make_support_nested_variables+y}
3365 then :
3366 printf %s "(cached) " >&6
3367 else case e in #(
3368 e) if printf "%s\n" 'TRUE=$(BAR$(V))
3369 BAR0=false
3370 BAR1=true
3371 V=1
3372 am__doit:
3373 @$(TRUE)
3374 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3375 am_cv_make_support_nested_variables=yes
3376 else
3377 am_cv_make_support_nested_variables=no
3378 fi ;;
3379 esac
3380 fi
3381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3382 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3383 AM_BACKSLASH='\'
3384
3385 am__rm_f_notfound=
3386 if (rm -f && rm -fr && rm -rf) 2>/dev/null
3387 then :
3388
3389 else case e in #(
3390 e) am__rm_f_notfound='""' ;;
3391 esac
3392 fi
3393
3394
3395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
3396 printf %s "checking xargs -n works... " >&6; }
3397 if test ${am_cv_xargs_n_works+y}
3398 then :
3399 printf %s "(cached) " >&6
3400 else case e in #(
3401 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
3402 3"
3403 then :
3404 am_cv_xargs_n_works=yes
3405 else case e in #(
3406 e) am_cv_xargs_n_works=no ;;
3407 esac
3408 fi ;;
3409 esac
3410 fi
3411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
3412 printf "%s\n" "$am_cv_xargs_n_works" >&6; }
3413 if test "$am_cv_xargs_n_works" = yes
3414 then :
3415 am__xargs_n='xargs -n'
3416 else case e in #(
3417 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
3418 ;;
3419 esac
3420 fi
3421
3422 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3423 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3424 # is not polluted with repeated "-I."
3425 am__isrc=' -I$(srcdir)'
3426 # test to see if srcdir already configured
3427 if test -f $srcdir/config.status; then
3428 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3429 fi
3430 fi
3431
3432 # test whether we have cygpath
3433 if test -z "$CYGPATH_W"; then
3434 if (cygpath --version) >/dev/null 2>/dev/null; then
3435 CYGPATH_W='cygpath -w'
3436 else
3437 CYGPATH_W=echo
3438 fi
3439 fi
3440
3441
3442 # Define the identity of the package.
3443 PACKAGE='libXtst'
3444 VERSION='1.2.5'
3445
3446
3447 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3448
3449
3450 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3451
3452 # Some tools Automake needs.
3453
3454 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3455
3456
3457 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3458
3459
3460 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3461
3462
3463 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3464
3465
3466 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3467
3468 # For better backward compatibility. To be removed once Automake 1.9.x
3469 # dies out for good. For more background, see:
3470 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3471 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3472 mkdir_p='$(MKDIR_P)'
3473
3474 # We need awk for the "check" target (and possibly the TAP driver). The
3475 # system "awk" is bad on some platforms.
3476 # Always define AMTAR for backward compatibility. Yes, it's still used
3477 # in the wild :-( We should find a proper way to deprecate it ...
3478 AMTAR='$${TAR-tar}'
3479
3480
3481 # We'll loop over all known methods to create a tar archive until one works.
3482 _am_tools='gnutar pax cpio none'
3483
3484 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3485
3486
3487
3488
3489
3490 # Variables for tags utilities; see am/tags.am
3491 if test -z "$CTAGS"; then
3492 CTAGS=ctags
3493 fi
3494
3495 if test -z "$ETAGS"; then
3496 ETAGS=etags
3497 fi
3498
3499 if test -z "$CSCOPE"; then
3500 CSCOPE=cscope
3501 fi
3502
3503
3504
3505
3506
3507
3508
3509
3510 # Initialize libtool
3511 case `pwd` in
3512 *\ * | *\ *)
3513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3514 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3515 esac
3516
3517
3518
3519 macro_version='2.4.7'
3520 macro_revision='2.4.7'
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535 ltmain=$ac_aux_dir/ltmain.sh
3536
3537
3538
3539 # Make sure we can run config.sub.
3540 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3541 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3542
3543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3544 printf %s "checking build system type... " >&6; }
3545 if test ${ac_cv_build+y}
3546 then :
3547 printf %s "(cached) " >&6
3548 else case e in #(
3549 e) ac_build_alias=$build_alias
3550 test "x$ac_build_alias" = x &&
3551 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3552 test "x$ac_build_alias" = x &&
3553 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3554 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3555 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3556 ;;
3557 esac
3558 fi
3559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3560 printf "%s\n" "$ac_cv_build" >&6; }
3561 case $ac_cv_build in
3562 *-*-*) ;;
3563 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3564 esac
3565 build=$ac_cv_build
3566 ac_save_IFS=$IFS; IFS='-'
3567 set x $ac_cv_build
3568 shift
3569 build_cpu=$1
3570 build_vendor=$2
3571 shift; shift
3572 # Remember, the first character of IFS is used to create $*,
3573 # except with old shells:
3574 build_os=$*
3575 IFS=$ac_save_IFS
3576 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3577
3578
3579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3580 printf %s "checking host system type... " >&6; }
3581 if test ${ac_cv_host+y}
3582 then :
3583 printf %s "(cached) " >&6
3584 else case e in #(
3585 e) if test "x$host_alias" = x; then
3586 ac_cv_host=$ac_cv_build
3587 else
3588 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3589 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3590 fi
3591 ;;
3592 esac
3593 fi
3594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3595 printf "%s\n" "$ac_cv_host" >&6; }
3596 case $ac_cv_host in
3597 *-*-*) ;;
3598 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3599 esac
3600 host=$ac_cv_host
3601 ac_save_IFS=$IFS; IFS='-'
3602 set x $ac_cv_host
3603 shift
3604 host_cpu=$1
3605 host_vendor=$2
3606 shift; shift
3607 # Remember, the first character of IFS is used to create $*,
3608 # except with old shells:
3609 host_os=$*
3610 IFS=$ac_save_IFS
3611 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3612
3613
3614 # Backslashify metacharacters that are still active within
3615 # double-quoted strings.
3616 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3617
3618 # Same as above, but do not quote variable references.
3619 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3620
3621 # Sed substitution to delay expansion of an escaped shell variable in a
3622 # double_quote_subst'ed string.
3623 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3624
3625 # Sed substitution to delay expansion of an escaped single quote.
3626 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3627
3628 # Sed substitution to avoid accidental globbing in evaled expressions
3629 no_glob_subst='s/\*/\\\*/g'
3630
3631 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3632 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3633 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3634
3635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3636 printf %s "checking how to print strings... " >&6; }
3637 # Test print first, because it will be a builtin if present.
3638 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3639 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3640 ECHO='print -r --'
3641 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3642 ECHO='printf %s\n'
3643 else
3644 # Use this function as a fallback that always works.
3645 func_fallback_echo ()
3646 {
3647 eval 'cat <<_LTECHO_EOF
3648 $1
3649 _LTECHO_EOF'
3650 }
3651 ECHO='func_fallback_echo'
3652 fi
3653
3654 # func_echo_all arg...
3655 # Invoke $ECHO with all args, space-separated.
3656 func_echo_all ()
3657 {
3658 $ECHO ""
3659 }
3660
3661 case $ECHO in
3662 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3663 printf "%s\n" "printf" >&6; } ;;
3664 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3665 printf "%s\n" "print -r" >&6; } ;;
3666 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3667 printf "%s\n" "cat" >&6; } ;;
3668 esac
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692 DEPDIR="${am__leading_dot}deps"
3693
3694 ac_config_commands="$ac_config_commands depfiles"
3695
3696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3697 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3698 cat > confinc.mk << 'END'
3699 am__doit:
3700 @echo this is the am__doit target >confinc.out
3701 .PHONY: am__doit
3702 END
3703 am__include="#"
3704 am__quote=
3705 # BSD make does it like this.
3706 echo '.include "confinc.mk" # ignored' > confmf.BSD
3707 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3708 echo 'include confinc.mk # ignored' > confmf.GNU
3709 _am_result=no
3710 for s in GNU BSD; do
3711 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3712 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3713 ac_status=$?
3714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715 (exit $ac_status); }
3716 case $?:`cat confinc.out 2>/dev/null` in #(
3717 '0:this is the am__doit target') :
3718 case $s in #(
3719 BSD) :
3720 am__include='.include' am__quote='"' ;; #(
3721 *) :
3722 am__include='include' am__quote='' ;;
3723 esac ;; #(
3724 *) :
3725 ;;
3726 esac
3727 if test "$am__include" != "#"; then
3728 _am_result="yes ($s style)"
3729 break
3730 fi
3731 done
3732 rm -f confinc.* confmf.*
3733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3734 printf "%s\n" "${_am_result}" >&6; }
3735
3736 # Check whether --enable-dependency-tracking was given.
3737 if test ${enable_dependency_tracking+y}
3738 then :
3739 enableval=$enable_dependency_tracking;
3740 fi
3741
3742 if test "x$enable_dependency_tracking" != xno; then
3743 am_depcomp="$ac_aux_dir/depcomp"
3744 AMDEPBACKSLASH='\'
3745 am__nodep='_no'
3746 fi
3747 if test "x$enable_dependency_tracking" != xno; then
3748 AMDEP_TRUE=
3749 AMDEP_FALSE='#'
3750 else
3751 AMDEP_TRUE='#'
3752 AMDEP_FALSE=
3753 fi
3754
3755
3756 ac_ext=c
3757 ac_cpp='$CPP $CPPFLAGS'
3758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3761 if test -n "$ac_tool_prefix"; then
3762 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3763 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3765 printf %s "checking for $ac_word... " >&6; }
3766 if test ${ac_cv_prog_CC+y}
3767 then :
3768 printf %s "(cached) " >&6
3769 else case e in #(
3770 e) if test -n "$CC"; then
3771 ac_cv_prog_CC="$CC" # Let the user override the test.
3772 else
3773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3774 for as_dir in $PATH
3775 do
3776 IFS=$as_save_IFS
3777 case $as_dir in #(((
3778 '') as_dir=./ ;;
3779 */) ;;
3780 *) as_dir=$as_dir/ ;;
3781 esac
3782 for ac_exec_ext in '' $ac_executable_extensions; do
3783 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3784 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3785 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3786 break 2
3787 fi
3788 done
3789 done
3790 IFS=$as_save_IFS
3791
3792 fi ;;
3793 esac
3794 fi
3795 CC=$ac_cv_prog_CC
3796 if test -n "$CC"; then
3797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3798 printf "%s\n" "$CC" >&6; }
3799 else
3800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3801 printf "%s\n" "no" >&6; }
3802 fi
3803
3804
3805 fi
3806 if test -z "$ac_cv_prog_CC"; then
3807 ac_ct_CC=$CC
3808 # Extract the first word of "gcc", so it can be a program name with args.
3809 set dummy gcc; ac_word=$2
3810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3811 printf %s "checking for $ac_word... " >&6; }
3812 if test ${ac_cv_prog_ac_ct_CC+y}
3813 then :
3814 printf %s "(cached) " >&6
3815 else case e in #(
3816 e) if test -n "$ac_ct_CC"; then
3817 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3818 else
3819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3820 for as_dir in $PATH
3821 do
3822 IFS=$as_save_IFS
3823 case $as_dir in #(((
3824 '') as_dir=./ ;;
3825 */) ;;
3826 *) as_dir=$as_dir/ ;;
3827 esac
3828 for ac_exec_ext in '' $ac_executable_extensions; do
3829 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3830 ac_cv_prog_ac_ct_CC="gcc"
3831 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3832 break 2
3833 fi
3834 done
3835 done
3836 IFS=$as_save_IFS
3837
3838 fi ;;
3839 esac
3840 fi
3841 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3842 if test -n "$ac_ct_CC"; then
3843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3844 printf "%s\n" "$ac_ct_CC" >&6; }
3845 else
3846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3847 printf "%s\n" "no" >&6; }
3848 fi
3849
3850 if test "x$ac_ct_CC" = x; then
3851 CC=""
3852 else
3853 case $cross_compiling:$ac_tool_warned in
3854 yes:)
3855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3856 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3857 ac_tool_warned=yes ;;
3858 esac
3859 CC=$ac_ct_CC
3860 fi
3861 else
3862 CC="$ac_cv_prog_CC"
3863 fi
3864
3865 if test -z "$CC"; then
3866 if test -n "$ac_tool_prefix"; then
3867 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3868 set dummy ${ac_tool_prefix}cc; ac_word=$2
3869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3870 printf %s "checking for $ac_word... " >&6; }
3871 if test ${ac_cv_prog_CC+y}
3872 then :
3873 printf %s "(cached) " >&6
3874 else case e in #(
3875 e) if test -n "$CC"; then
3876 ac_cv_prog_CC="$CC" # Let the user override the test.
3877 else
3878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3879 for as_dir in $PATH
3880 do
3881 IFS=$as_save_IFS
3882 case $as_dir in #(((
3883 '') as_dir=./ ;;
3884 */) ;;
3885 *) as_dir=$as_dir/ ;;
3886 esac
3887 for ac_exec_ext in '' $ac_executable_extensions; do
3888 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3889 ac_cv_prog_CC="${ac_tool_prefix}cc"
3890 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3891 break 2
3892 fi
3893 done
3894 done
3895 IFS=$as_save_IFS
3896
3897 fi ;;
3898 esac
3899 fi
3900 CC=$ac_cv_prog_CC
3901 if test -n "$CC"; then
3902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3903 printf "%s\n" "$CC" >&6; }
3904 else
3905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3906 printf "%s\n" "no" >&6; }
3907 fi
3908
3909
3910 fi
3911 fi
3912 if test -z "$CC"; then
3913 # Extract the first word of "cc", so it can be a program name with args.
3914 set dummy cc; ac_word=$2
3915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3916 printf %s "checking for $ac_word... " >&6; }
3917 if test ${ac_cv_prog_CC+y}
3918 then :
3919 printf %s "(cached) " >&6
3920 else case e in #(
3921 e) if test -n "$CC"; then
3922 ac_cv_prog_CC="$CC" # Let the user override the test.
3923 else
3924 ac_prog_rejected=no
3925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3926 for as_dir in $PATH
3927 do
3928 IFS=$as_save_IFS
3929 case $as_dir in #(((
3930 '') as_dir=./ ;;
3931 */) ;;
3932 *) as_dir=$as_dir/ ;;
3933 esac
3934 for ac_exec_ext in '' $ac_executable_extensions; do
3935 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3936 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3937 ac_prog_rejected=yes
3938 continue
3939 fi
3940 ac_cv_prog_CC="cc"
3941 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3942 break 2
3943 fi
3944 done
3945 done
3946 IFS=$as_save_IFS
3947
3948 if test $ac_prog_rejected = yes; then
3949 # We found a bogon in the path, so make sure we never use it.
3950 set dummy $ac_cv_prog_CC
3951 shift
3952 if test $# != 0; then
3953 # We chose a different compiler from the bogus one.
3954 # However, it has the same basename, so the bogon will be chosen
3955 # first if we set CC to just the basename; use the full file name.
3956 shift
3957 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3958 fi
3959 fi
3960 fi ;;
3961 esac
3962 fi
3963 CC=$ac_cv_prog_CC
3964 if test -n "$CC"; then
3965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3966 printf "%s\n" "$CC" >&6; }
3967 else
3968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3969 printf "%s\n" "no" >&6; }
3970 fi
3971
3972
3973 fi
3974 if test -z "$CC"; then
3975 if test -n "$ac_tool_prefix"; then
3976 for ac_prog in cl.exe
3977 do
3978 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3979 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3981 printf %s "checking for $ac_word... " >&6; }
3982 if test ${ac_cv_prog_CC+y}
3983 then :
3984 printf %s "(cached) " >&6
3985 else case e in #(
3986 e) if test -n "$CC"; then
3987 ac_cv_prog_CC="$CC" # Let the user override the test.
3988 else
3989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3990 for as_dir in $PATH
3991 do
3992 IFS=$as_save_IFS
3993 case $as_dir in #(((
3994 '') as_dir=./ ;;
3995 */) ;;
3996 *) as_dir=$as_dir/ ;;
3997 esac
3998 for ac_exec_ext in '' $ac_executable_extensions; do
3999 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4000 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4001 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4002 break 2
4003 fi
4004 done
4005 done
4006 IFS=$as_save_IFS
4007
4008 fi ;;
4009 esac
4010 fi
4011 CC=$ac_cv_prog_CC
4012 if test -n "$CC"; then
4013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4014 printf "%s\n" "$CC" >&6; }
4015 else
4016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4017 printf "%s\n" "no" >&6; }
4018 fi
4019
4020
4021 test -n "$CC" && break
4022 done
4023 fi
4024 if test -z "$CC"; then
4025 ac_ct_CC=$CC
4026 for ac_prog in cl.exe
4027 do
4028 # Extract the first word of "$ac_prog", so it can be a program name with args.
4029 set dummy $ac_prog; ac_word=$2
4030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4031 printf %s "checking for $ac_word... " >&6; }
4032 if test ${ac_cv_prog_ac_ct_CC+y}
4033 then :
4034 printf %s "(cached) " >&6
4035 else case e in #(
4036 e) if test -n "$ac_ct_CC"; then
4037 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4038 else
4039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4040 for as_dir in $PATH
4041 do
4042 IFS=$as_save_IFS
4043 case $as_dir in #(((
4044 '') as_dir=./ ;;
4045 */) ;;
4046 *) as_dir=$as_dir/ ;;
4047 esac
4048 for ac_exec_ext in '' $ac_executable_extensions; do
4049 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4050 ac_cv_prog_ac_ct_CC="$ac_prog"
4051 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4052 break 2
4053 fi
4054 done
4055 done
4056 IFS=$as_save_IFS
4057
4058 fi ;;
4059 esac
4060 fi
4061 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4062 if test -n "$ac_ct_CC"; then
4063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4064 printf "%s\n" "$ac_ct_CC" >&6; }
4065 else
4066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4067 printf "%s\n" "no" >&6; }
4068 fi
4069
4070
4071 test -n "$ac_ct_CC" && break
4072 done
4073
4074 if test "x$ac_ct_CC" = x; then
4075 CC=""
4076 else
4077 case $cross_compiling:$ac_tool_warned in
4078 yes:)
4079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4080 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4081 ac_tool_warned=yes ;;
4082 esac
4083 CC=$ac_ct_CC
4084 fi
4085 fi
4086
4087 fi
4088 if test -z "$CC"; then
4089 if test -n "$ac_tool_prefix"; then
4090 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4091 set dummy ${ac_tool_prefix}clang; ac_word=$2
4092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4093 printf %s "checking for $ac_word... " >&6; }
4094 if test ${ac_cv_prog_CC+y}
4095 then :
4096 printf %s "(cached) " >&6
4097 else case e in #(
4098 e) if test -n "$CC"; then
4099 ac_cv_prog_CC="$CC" # Let the user override the test.
4100 else
4101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4102 for as_dir in $PATH
4103 do
4104 IFS=$as_save_IFS
4105 case $as_dir in #(((
4106 '') as_dir=./ ;;
4107 */) ;;
4108 *) as_dir=$as_dir/ ;;
4109 esac
4110 for ac_exec_ext in '' $ac_executable_extensions; do
4111 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4112 ac_cv_prog_CC="${ac_tool_prefix}clang"
4113 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4114 break 2
4115 fi
4116 done
4117 done
4118 IFS=$as_save_IFS
4119
4120 fi ;;
4121 esac
4122 fi
4123 CC=$ac_cv_prog_CC
4124 if test -n "$CC"; then
4125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4126 printf "%s\n" "$CC" >&6; }
4127 else
4128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4129 printf "%s\n" "no" >&6; }
4130 fi
4131
4132
4133 fi
4134 if test -z "$ac_cv_prog_CC"; then
4135 ac_ct_CC=$CC
4136 # Extract the first word of "clang", so it can be a program name with args.
4137 set dummy clang; ac_word=$2
4138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4139 printf %s "checking for $ac_word... " >&6; }
4140 if test ${ac_cv_prog_ac_ct_CC+y}
4141 then :
4142 printf %s "(cached) " >&6
4143 else case e in #(
4144 e) if test -n "$ac_ct_CC"; then
4145 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4146 else
4147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4148 for as_dir in $PATH
4149 do
4150 IFS=$as_save_IFS
4151 case $as_dir in #(((
4152 '') as_dir=./ ;;
4153 */) ;;
4154 *) as_dir=$as_dir/ ;;
4155 esac
4156 for ac_exec_ext in '' $ac_executable_extensions; do
4157 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4158 ac_cv_prog_ac_ct_CC="clang"
4159 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4160 break 2
4161 fi
4162 done
4163 done
4164 IFS=$as_save_IFS
4165
4166 fi ;;
4167 esac
4168 fi
4169 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4170 if test -n "$ac_ct_CC"; then
4171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4172 printf "%s\n" "$ac_ct_CC" >&6; }
4173 else
4174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4175 printf "%s\n" "no" >&6; }
4176 fi
4177
4178 if test "x$ac_ct_CC" = x; then
4179 CC=""
4180 else
4181 case $cross_compiling:$ac_tool_warned in
4182 yes:)
4183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4184 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4185 ac_tool_warned=yes ;;
4186 esac
4187 CC=$ac_ct_CC
4188 fi
4189 else
4190 CC="$ac_cv_prog_CC"
4191 fi
4192
4193 fi
4194
4195
4196 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4197 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4198 as_fn_error $? "no acceptable C compiler found in \$PATH
4199 See 'config.log' for more details" "$LINENO" 5; }
4200
4201 # Provide some information about the compiler.
4202 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4203 set X $ac_compile
4204 ac_compiler=$2
4205 for ac_option in --version -v -V -qversion -version; do
4206 { { ac_try="$ac_compiler $ac_option >&5"
4207 case "(($ac_try" in
4208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4209 *) ac_try_echo=$ac_try;;
4210 esac
4211 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4212 printf "%s\n" "$ac_try_echo"; } >&5
4213 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4214 ac_status=$?
4215 if test -s conftest.err; then
4216 sed '10a\
4217 ... rest of stderr output deleted ...
4218 10q' conftest.err >conftest.er1
4219 cat conftest.er1 >&5
4220 fi
4221 rm -f conftest.er1 conftest.err
4222 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4223 test $ac_status = 0; }
4224 done
4225
4226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4227 /* end confdefs.h. */
4228
4229 int
4230 main (void)
4231 {
4232
4233 ;
4234 return 0;
4235 }
4236 _ACEOF
4237 ac_clean_files_save=$ac_clean_files
4238 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4239 # Try to create an executable without -o first, disregard a.out.
4240 # It will help us diagnose broken compilers, and finding out an intuition
4241 # of exeext.
4242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4243 printf %s "checking whether the C compiler works... " >&6; }
4244 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4245
4246 # The possible output files:
4247 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4248
4249 ac_rmfiles=
4250 for ac_file in $ac_files
4251 do
4252 case $ac_file in
4253 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4254 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4255 esac
4256 done
4257 rm -f $ac_rmfiles
4258
4259 if { { ac_try="$ac_link_default"
4260 case "(($ac_try" in
4261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4262 *) ac_try_echo=$ac_try;;
4263 esac
4264 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4265 printf "%s\n" "$ac_try_echo"; } >&5
4266 (eval "$ac_link_default") 2>&5
4267 ac_status=$?
4268 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4269 test $ac_status = 0; }
4270 then :
4271 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
4272 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
4273 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4274 # so that the user can short-circuit this test for compilers unknown to
4275 # Autoconf.
4276 for ac_file in $ac_files ''
4277 do
4278 test -f "$ac_file" || continue
4279 case $ac_file in
4280 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4281 ;;
4282 [ab].out )
4283 # We found the default executable, but exeext='' is most
4284 # certainly right.
4285 break;;
4286 *.* )
4287 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4288 then :; else
4289 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4290 fi
4291 # We set ac_cv_exeext here because the later test for it is not
4292 # safe: cross compilers may not add the suffix if given an '-o'
4293 # argument, so we may need to know it at that point already.
4294 # Even if this section looks crufty: it has the advantage of
4295 # actually working.
4296 break;;
4297 * )
4298 break;;
4299 esac
4300 done
4301 test "$ac_cv_exeext" = no && ac_cv_exeext=
4302
4303 else case e in #(
4304 e) ac_file='' ;;
4305 esac
4306 fi
4307 if test -z "$ac_file"
4308 then :
4309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4310 printf "%s\n" "no" >&6; }
4311 printf "%s\n" "$as_me: failed program was:" >&5
4312 sed 's/^/| /' conftest.$ac_ext >&5
4313
4314 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4315 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4316 as_fn_error 77 "C compiler cannot create executables
4317 See 'config.log' for more details" "$LINENO" 5; }
4318 else case e in #(
4319 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4320 printf "%s\n" "yes" >&6; } ;;
4321 esac
4322 fi
4323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4324 printf %s "checking for C compiler default output file name... " >&6; }
4325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4326 printf "%s\n" "$ac_file" >&6; }
4327 ac_exeext=$ac_cv_exeext
4328
4329 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4330 ac_clean_files=$ac_clean_files_save
4331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4332 printf %s "checking for suffix of executables... " >&6; }
4333 if { { ac_try="$ac_link"
4334 case "(($ac_try" in
4335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4336 *) ac_try_echo=$ac_try;;
4337 esac
4338 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4339 printf "%s\n" "$ac_try_echo"; } >&5
4340 (eval "$ac_link") 2>&5
4341 ac_status=$?
4342 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4343 test $ac_status = 0; }
4344 then :
4345 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
4346 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
4347 # work properly (i.e., refer to 'conftest.exe'), while it won't with
4348 # 'rm'.
4349 for ac_file in conftest.exe conftest conftest.*; do
4350 test -f "$ac_file" || continue
4351 case $ac_file in
4352 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4353 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4354 break;;
4355 * ) break;;
4356 esac
4357 done
4358 else case e in #(
4359 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4360 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4361 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4362 See 'config.log' for more details" "$LINENO" 5; } ;;
4363 esac
4364 fi
4365 rm -f conftest conftest$ac_cv_exeext
4366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4367 printf "%s\n" "$ac_cv_exeext" >&6; }
4368
4369 rm -f conftest.$ac_ext
4370 EXEEXT=$ac_cv_exeext
4371 ac_exeext=$EXEEXT
4372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4373 /* end confdefs.h. */
4374 #include <stdio.h>
4375 int
4376 main (void)
4377 {
4378 FILE *f = fopen ("conftest.out", "w");
4379 if (!f)
4380 return 1;
4381 return ferror (f) || fclose (f) != 0;
4382
4383 ;
4384 return 0;
4385 }
4386 _ACEOF
4387 ac_clean_files="$ac_clean_files conftest.out"
4388 # Check that the compiler produces executables we can run. If not, either
4389 # the compiler is broken, or we cross compile.
4390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4391 printf %s "checking whether we are cross compiling... " >&6; }
4392 if test "$cross_compiling" != yes; then
4393 { { ac_try="$ac_link"
4394 case "(($ac_try" in
4395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4396 *) ac_try_echo=$ac_try;;
4397 esac
4398 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4399 printf "%s\n" "$ac_try_echo"; } >&5
4400 (eval "$ac_link") 2>&5
4401 ac_status=$?
4402 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4403 test $ac_status = 0; }
4404 if { ac_try='./conftest$ac_cv_exeext'
4405 { { case "(($ac_try" in
4406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4407 *) ac_try_echo=$ac_try;;
4408 esac
4409 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4410 printf "%s\n" "$ac_try_echo"; } >&5
4411 (eval "$ac_try") 2>&5
4412 ac_status=$?
4413 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4414 test $ac_status = 0; }; }; then
4415 cross_compiling=no
4416 else
4417 if test "$cross_compiling" = maybe; then
4418 cross_compiling=yes
4419 else
4420 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4421 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4422 as_fn_error 77 "cannot run C compiled programs.
4423 If you meant to cross compile, use '--host'.
4424 See 'config.log' for more details" "$LINENO" 5; }
4425 fi
4426 fi
4427 fi
4428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4429 printf "%s\n" "$cross_compiling" >&6; }
4430
4431 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4432 conftest.o conftest.obj conftest.out
4433 ac_clean_files=$ac_clean_files_save
4434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4435 printf %s "checking for suffix of object files... " >&6; }
4436 if test ${ac_cv_objext+y}
4437 then :
4438 printf %s "(cached) " >&6
4439 else case e in #(
4440 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4441 /* end confdefs.h. */
4442
4443 int
4444 main (void)
4445 {
4446
4447 ;
4448 return 0;
4449 }
4450 _ACEOF
4451 rm -f conftest.o conftest.obj
4452 if { { ac_try="$ac_compile"
4453 case "(($ac_try" in
4454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4455 *) ac_try_echo=$ac_try;;
4456 esac
4457 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4458 printf "%s\n" "$ac_try_echo"; } >&5
4459 (eval "$ac_compile") 2>&5
4460 ac_status=$?
4461 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4462 test $ac_status = 0; }
4463 then :
4464 for ac_file in conftest.o conftest.obj conftest.*; do
4465 test -f "$ac_file" || continue;
4466 case $ac_file in
4467 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4468 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4469 break;;
4470 esac
4471 done
4472 else case e in #(
4473 e) printf "%s\n" "$as_me: failed program was:" >&5
4474 sed 's/^/| /' conftest.$ac_ext >&5
4475
4476 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4477 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4478 as_fn_error $? "cannot compute suffix of object files: cannot compile
4479 See 'config.log' for more details" "$LINENO" 5; } ;;
4480 esac
4481 fi
4482 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4483 esac
4484 fi
4485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4486 printf "%s\n" "$ac_cv_objext" >&6; }
4487 OBJEXT=$ac_cv_objext
4488 ac_objext=$OBJEXT
4489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4490 printf %s "checking whether the compiler supports GNU C... " >&6; }
4491 if test ${ac_cv_c_compiler_gnu+y}
4492 then :
4493 printf %s "(cached) " >&6
4494 else case e in #(
4495 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4496 /* end confdefs.h. */
4497
4498 int
4499 main (void)
4500 {
4501 #ifndef __GNUC__
4502 choke me
4503 #endif
4504
4505 ;
4506 return 0;
4507 }
4508 _ACEOF
4509 if ac_fn_c_try_compile "$LINENO"
4510 then :
4511 ac_compiler_gnu=yes
4512 else case e in #(
4513 e) ac_compiler_gnu=no ;;
4514 esac
4515 fi
4516 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4517 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4518 ;;
4519 esac
4520 fi
4521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4522 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4524
4525 if test $ac_compiler_gnu = yes; then
4526 GCC=yes
4527 else
4528 GCC=
4529 fi
4530 ac_test_CFLAGS=${CFLAGS+y}
4531 ac_save_CFLAGS=$CFLAGS
4532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4533 printf %s "checking whether $CC accepts -g... " >&6; }
4534 if test ${ac_cv_prog_cc_g+y}
4535 then :
4536 printf %s "(cached) " >&6
4537 else case e in #(
4538 e) ac_save_c_werror_flag=$ac_c_werror_flag
4539 ac_c_werror_flag=yes
4540 ac_cv_prog_cc_g=no
4541 CFLAGS="-g"
4542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4543 /* end confdefs.h. */
4544
4545 int
4546 main (void)
4547 {
4548
4549 ;
4550 return 0;
4551 }
4552 _ACEOF
4553 if ac_fn_c_try_compile "$LINENO"
4554 then :
4555 ac_cv_prog_cc_g=yes
4556 else case e in #(
4557 e) CFLAGS=""
4558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4559 /* end confdefs.h. */
4560
4561 int
4562 main (void)
4563 {
4564
4565 ;
4566 return 0;
4567 }
4568 _ACEOF
4569 if ac_fn_c_try_compile "$LINENO"
4570 then :
4571
4572 else case e in #(
4573 e) ac_c_werror_flag=$ac_save_c_werror_flag
4574 CFLAGS="-g"
4575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4576 /* end confdefs.h. */
4577
4578 int
4579 main (void)
4580 {
4581
4582 ;
4583 return 0;
4584 }
4585 _ACEOF
4586 if ac_fn_c_try_compile "$LINENO"
4587 then :
4588 ac_cv_prog_cc_g=yes
4589 fi
4590 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4591 esac
4592 fi
4593 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4594 esac
4595 fi
4596 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4597 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4598 esac
4599 fi
4600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4601 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4602 if test $ac_test_CFLAGS; then
4603 CFLAGS=$ac_save_CFLAGS
4604 elif test $ac_cv_prog_cc_g = yes; then
4605 if test "$GCC" = yes; then
4606 CFLAGS="-g -O2"
4607 else
4608 CFLAGS="-g"
4609 fi
4610 else
4611 if test "$GCC" = yes; then
4612 CFLAGS="-O2"
4613 else
4614 CFLAGS=
4615 fi
4616 fi
4617 ac_prog_cc_stdc=no
4618 if test x$ac_prog_cc_stdc = xno
4619 then :
4620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4621 printf %s "checking for $CC option to enable C11 features... " >&6; }
4622 if test ${ac_cv_prog_cc_c11+y}
4623 then :
4624 printf %s "(cached) " >&6
4625 else case e in #(
4626 e) ac_cv_prog_cc_c11=no
4627 ac_save_CC=$CC
4628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4629 /* end confdefs.h. */
4630 $ac_c_conftest_c11_program
4631 _ACEOF
4632 for ac_arg in '' -std=gnu11
4633 do
4634 CC="$ac_save_CC $ac_arg"
4635 if ac_fn_c_try_compile "$LINENO"
4636 then :
4637 ac_cv_prog_cc_c11=$ac_arg
4638 fi
4639 rm -f core conftest.err conftest.$ac_objext conftest.beam
4640 test "x$ac_cv_prog_cc_c11" != "xno" && break
4641 done
4642 rm -f conftest.$ac_ext
4643 CC=$ac_save_CC ;;
4644 esac
4645 fi
4646
4647 if test "x$ac_cv_prog_cc_c11" = xno
4648 then :
4649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4650 printf "%s\n" "unsupported" >&6; }
4651 else case e in #(
4652 e) if test "x$ac_cv_prog_cc_c11" = x
4653 then :
4654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4655 printf "%s\n" "none needed" >&6; }
4656 else case e in #(
4657 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4658 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4659 CC="$CC $ac_cv_prog_cc_c11" ;;
4660 esac
4661 fi
4662 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4663 ac_prog_cc_stdc=c11 ;;
4664 esac
4665 fi
4666 fi
4667 if test x$ac_prog_cc_stdc = xno
4668 then :
4669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4670 printf %s "checking for $CC option to enable C99 features... " >&6; }
4671 if test ${ac_cv_prog_cc_c99+y}
4672 then :
4673 printf %s "(cached) " >&6
4674 else case e in #(
4675 e) ac_cv_prog_cc_c99=no
4676 ac_save_CC=$CC
4677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4678 /* end confdefs.h. */
4679 $ac_c_conftest_c99_program
4680 _ACEOF
4681 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4682 do
4683 CC="$ac_save_CC $ac_arg"
4684 if ac_fn_c_try_compile "$LINENO"
4685 then :
4686 ac_cv_prog_cc_c99=$ac_arg
4687 fi
4688 rm -f core conftest.err conftest.$ac_objext conftest.beam
4689 test "x$ac_cv_prog_cc_c99" != "xno" && break
4690 done
4691 rm -f conftest.$ac_ext
4692 CC=$ac_save_CC ;;
4693 esac
4694 fi
4695
4696 if test "x$ac_cv_prog_cc_c99" = xno
4697 then :
4698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4699 printf "%s\n" "unsupported" >&6; }
4700 else case e in #(
4701 e) if test "x$ac_cv_prog_cc_c99" = x
4702 then :
4703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4704 printf "%s\n" "none needed" >&6; }
4705 else case e in #(
4706 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4707 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4708 CC="$CC $ac_cv_prog_cc_c99" ;;
4709 esac
4710 fi
4711 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4712 ac_prog_cc_stdc=c99 ;;
4713 esac
4714 fi
4715 fi
4716 if test x$ac_prog_cc_stdc = xno
4717 then :
4718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4719 printf %s "checking for $CC option to enable C89 features... " >&6; }
4720 if test ${ac_cv_prog_cc_c89+y}
4721 then :
4722 printf %s "(cached) " >&6
4723 else case e in #(
4724 e) ac_cv_prog_cc_c89=no
4725 ac_save_CC=$CC
4726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4727 /* end confdefs.h. */
4728 $ac_c_conftest_c89_program
4729 _ACEOF
4730 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4731 do
4732 CC="$ac_save_CC $ac_arg"
4733 if ac_fn_c_try_compile "$LINENO"
4734 then :
4735 ac_cv_prog_cc_c89=$ac_arg
4736 fi
4737 rm -f core conftest.err conftest.$ac_objext conftest.beam
4738 test "x$ac_cv_prog_cc_c89" != "xno" && break
4739 done
4740 rm -f conftest.$ac_ext
4741 CC=$ac_save_CC ;;
4742 esac
4743 fi
4744
4745 if test "x$ac_cv_prog_cc_c89" = xno
4746 then :
4747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4748 printf "%s\n" "unsupported" >&6; }
4749 else case e in #(
4750 e) if test "x$ac_cv_prog_cc_c89" = x
4751 then :
4752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4753 printf "%s\n" "none needed" >&6; }
4754 else case e in #(
4755 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4756 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4757 CC="$CC $ac_cv_prog_cc_c89" ;;
4758 esac
4759 fi
4760 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4761 ac_prog_cc_stdc=c89 ;;
4762 esac
4763 fi
4764 fi
4765
4766 ac_ext=c
4767 ac_cpp='$CPP $CPPFLAGS'
4768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4770 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4771
4772
4773 ac_ext=c
4774 ac_cpp='$CPP $CPPFLAGS'
4775 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4776 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4777 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4779 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4780 if test ${am_cv_prog_cc_c_o+y}
4781 then :
4782 printf %s "(cached) " >&6
4783 else case e in #(
4784 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4785 /* end confdefs.h. */
4786
4787 int
4788 main (void)
4789 {
4790
4791 ;
4792 return 0;
4793 }
4794 _ACEOF
4795 # Make sure it works both with $CC and with simple cc.
4796 # Following AC_PROG_CC_C_O, we do the test twice because some
4797 # compilers refuse to overwrite an existing .o file with -o,
4798 # though they will create one.
4799 am_cv_prog_cc_c_o=yes
4800 for am_i in 1 2; do
4801 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4802 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4803 ac_status=$?
4804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4805 (exit $ac_status); } \
4806 && test -f conftest2.$ac_objext; then
4807 : OK
4808 else
4809 am_cv_prog_cc_c_o=no
4810 break
4811 fi
4812 done
4813 rm -f core conftest*
4814 unset am_i ;;
4815 esac
4816 fi
4817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4818 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4819 if test "$am_cv_prog_cc_c_o" != yes; then
4820 # Losing compiler, so override with the script.
4821 # FIXME: It is wrong to rewrite CC.
4822 # But if we don't then we get into trouble of one sort or another.
4823 # A longer-term fix would be to have automake use am__CC in this case,
4824 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4825 CC="$am_aux_dir/compile $CC"
4826 fi
4827 ac_ext=c
4828 ac_cpp='$CPP $CPPFLAGS'
4829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4832
4833
4834 depcc="$CC" am_compiler_list=
4835
4836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4837 printf %s "checking dependency style of $depcc... " >&6; }
4838 if test ${am_cv_CC_dependencies_compiler_type+y}
4839 then :
4840 printf %s "(cached) " >&6
4841 else case e in #(
4842 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4843 # We make a subdir and do the tests there. Otherwise we can end up
4844 # making bogus files that we don't know about and never remove. For
4845 # instance it was reported that on HP-UX the gcc test will end up
4846 # making a dummy file named 'D' -- because '-MD' means "put the output
4847 # in D".
4848 rm -rf conftest.dir
4849 mkdir conftest.dir
4850 # Copy depcomp to subdir because otherwise we won't find it if we're
4851 # using a relative directory.
4852 cp "$am_depcomp" conftest.dir
4853 cd conftest.dir
4854 # We will build objects and dependencies in a subdirectory because
4855 # it helps to detect inapplicable dependency modes. For instance
4856 # both Tru64's cc and ICC support -MD to output dependencies as a
4857 # side effect of compilation, but ICC will put the dependencies in
4858 # the current directory while Tru64 will put them in the object
4859 # directory.
4860 mkdir sub
4861
4862 am_cv_CC_dependencies_compiler_type=none
4863 if test "$am_compiler_list" = ""; then
4864 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4865 fi
4866 am__universal=false
4867 case " $depcc " in #(
4868 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4869 esac
4870
4871 for depmode in $am_compiler_list; do
4872 # Setup a source with many dependencies, because some compilers
4873 # like to wrap large dependency lists on column 80 (with \), and
4874 # we should not choose a depcomp mode which is confused by this.
4875 #
4876 # We need to recreate these files for each test, as the compiler may
4877 # overwrite some of them when testing with obscure command lines.
4878 # This happens at least with the AIX C compiler.
4879 : > sub/conftest.c
4880 for i in 1 2 3 4 5 6; do
4881 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4882 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4883 # Solaris 10 /bin/sh.
4884 echo '/* dummy */' > sub/conftst$i.h
4885 done
4886 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4887
4888 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4889 # mode. It turns out that the SunPro C++ compiler does not properly
4890 # handle '-M -o', and we need to detect this. Also, some Intel
4891 # versions had trouble with output in subdirs.
4892 am__obj=sub/conftest.${OBJEXT-o}
4893 am__minus_obj="-o $am__obj"
4894 case $depmode in
4895 gcc)
4896 # This depmode causes a compiler race in universal mode.
4897 test "$am__universal" = false || continue
4898 ;;
4899 nosideeffect)
4900 # After this tag, mechanisms are not by side-effect, so they'll
4901 # only be used when explicitly requested.
4902 if test "x$enable_dependency_tracking" = xyes; then
4903 continue
4904 else
4905 break
4906 fi
4907 ;;
4908 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4909 # This compiler won't grok '-c -o', but also, the minuso test has
4910 # not run yet. These depmodes are late enough in the game, and
4911 # so weak that their functioning should not be impacted.
4912 am__obj=conftest.${OBJEXT-o}
4913 am__minus_obj=
4914 ;;
4915 none) break ;;
4916 esac
4917 if depmode=$depmode \
4918 source=sub/conftest.c object=$am__obj \
4919 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4920 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4921 >/dev/null 2>conftest.err &&
4922 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4923 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4924 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4925 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4926 # icc doesn't choke on unknown options, it will just issue warnings
4927 # or remarks (even with -Werror). So we grep stderr for any message
4928 # that says an option was ignored or not supported.
4929 # When given -MP, icc 7.0 and 7.1 complain thus:
4930 # icc: Command line warning: ignoring option '-M'; no argument required
4931 # The diagnosis changed in icc 8.0:
4932 # icc: Command line remark: option '-MP' not supported
4933 if (grep 'ignoring option' conftest.err ||
4934 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4935 am_cv_CC_dependencies_compiler_type=$depmode
4936 break
4937 fi
4938 fi
4939 done
4940
4941 cd ..
4942 rm -rf conftest.dir
4943 else
4944 am_cv_CC_dependencies_compiler_type=none
4945 fi
4946 ;;
4947 esac
4948 fi
4949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4950 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4951 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4952
4953 if
4954 test "x$enable_dependency_tracking" != xno \
4955 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4956 am__fastdepCC_TRUE=
4957 am__fastdepCC_FALSE='#'
4958 else
4959 am__fastdepCC_TRUE='#'
4960 am__fastdepCC_FALSE=
4961 fi
4962
4963
4964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4965 printf %s "checking for a sed that does not truncate output... " >&6; }
4966 if test ${ac_cv_path_SED+y}
4967 then :
4968 printf %s "(cached) " >&6
4969 else case e in #(
4970 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4971 for ac_i in 1 2 3 4 5 6 7; do
4972 ac_script="$ac_script$as_nl$ac_script"
4973 done
4974 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4975 { ac_script=; unset ac_script;}
4976 if test -z "$SED"; then
4977 ac_path_SED_found=false
4978 # Loop through the user's path and test for each of PROGNAME-LIST
4979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4980 for as_dir in $PATH
4981 do
4982 IFS=$as_save_IFS
4983 case $as_dir in #(((
4984 '') as_dir=./ ;;
4985 */) ;;
4986 *) as_dir=$as_dir/ ;;
4987 esac
4988 for ac_prog in sed gsed
4989 do
4990 for ac_exec_ext in '' $ac_executable_extensions; do
4991 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4992 as_fn_executable_p "$ac_path_SED" || continue
4993 # Check for GNU ac_path_SED and select it if it is found.
4994 # Check for GNU $ac_path_SED
4995 case `"$ac_path_SED" --version 2>&1` in #(
4996 *GNU*)
4997 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4998 #(
4999 *)
5000 ac_count=0
5001 printf %s 0123456789 >"conftest.in"
5002 while :
5003 do
5004 cat "conftest.in" "conftest.in" >"conftest.tmp"
5005 mv "conftest.tmp" "conftest.in"
5006 cp "conftest.in" "conftest.nl"
5007 printf "%s\n" '' >> "conftest.nl"
5008 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5009 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5010 as_fn_arith $ac_count + 1 && ac_count=$as_val
5011 if test $ac_count -gt ${ac_path_SED_max-0}; then
5012 # Best one so far, save it but keep looking for a better one
5013 ac_cv_path_SED="$ac_path_SED"
5014 ac_path_SED_max=$ac_count
5015 fi
5016 # 10*(2^10) chars as input seems more than enough
5017 test $ac_count -gt 10 && break
5018 done
5019 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5020 esac
5021
5022 $ac_path_SED_found && break 3
5023 done
5024 done
5025 done
5026 IFS=$as_save_IFS
5027 if test -z "$ac_cv_path_SED"; then
5028 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5029 fi
5030 else
5031 ac_cv_path_SED=$SED
5032 fi
5033 ;;
5034 esac
5035 fi
5036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5037 printf "%s\n" "$ac_cv_path_SED" >&6; }
5038 SED="$ac_cv_path_SED"
5039 rm -f conftest.sed
5040
5041 test -z "$SED" && SED=sed
5042 Xsed="$SED -e 1s/^X//"
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5055 printf %s "checking for grep that handles long lines and -e... " >&6; }
5056 if test ${ac_cv_path_GREP+y}
5057 then :
5058 printf %s "(cached) " >&6
5059 else case e in #(
5060 e) if test -z "$GREP"; then
5061 ac_path_GREP_found=false
5062 # Loop through the user's path and test for each of PROGNAME-LIST
5063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5064 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5065 do
5066 IFS=$as_save_IFS
5067 case $as_dir in #(((
5068 '') as_dir=./ ;;
5069 */) ;;
5070 *) as_dir=$as_dir/ ;;
5071 esac
5072 for ac_prog in grep ggrep
5073 do
5074 for ac_exec_ext in '' $ac_executable_extensions; do
5075 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5076 as_fn_executable_p "$ac_path_GREP" || continue
5077 # Check for GNU ac_path_GREP and select it if it is found.
5078 # Check for GNU $ac_path_GREP
5079 case `"$ac_path_GREP" --version 2>&1` in #(
5080 *GNU*)
5081 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5082 #(
5083 *)
5084 ac_count=0
5085 printf %s 0123456789 >"conftest.in"
5086 while :
5087 do
5088 cat "conftest.in" "conftest.in" >"conftest.tmp"
5089 mv "conftest.tmp" "conftest.in"
5090 cp "conftest.in" "conftest.nl"
5091 printf "%s\n" 'GREP' >> "conftest.nl"
5092 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5093 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5094 as_fn_arith $ac_count + 1 && ac_count=$as_val
5095 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5096 # Best one so far, save it but keep looking for a better one
5097 ac_cv_path_GREP="$ac_path_GREP"
5098 ac_path_GREP_max=$ac_count
5099 fi
5100 # 10*(2^10) chars as input seems more than enough
5101 test $ac_count -gt 10 && break
5102 done
5103 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5104 esac
5105
5106 $ac_path_GREP_found && break 3
5107 done
5108 done
5109 done
5110 IFS=$as_save_IFS
5111 if test -z "$ac_cv_path_GREP"; then
5112 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5113 fi
5114 else
5115 ac_cv_path_GREP=$GREP
5116 fi
5117 ;;
5118 esac
5119 fi
5120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5121 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5122 GREP="$ac_cv_path_GREP"
5123
5124
5125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5126 printf %s "checking for egrep... " >&6; }
5127 if test ${ac_cv_path_EGREP+y}
5128 then :
5129 printf %s "(cached) " >&6
5130 else case e in #(
5131 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5132 then ac_cv_path_EGREP="$GREP -E"
5133 else
5134 if test -z "$EGREP"; then
5135 ac_path_EGREP_found=false
5136 # Loop through the user's path and test for each of PROGNAME-LIST
5137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5138 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5139 do
5140 IFS=$as_save_IFS
5141 case $as_dir in #(((
5142 '') as_dir=./ ;;
5143 */) ;;
5144 *) as_dir=$as_dir/ ;;
5145 esac
5146 for ac_prog in egrep
5147 do
5148 for ac_exec_ext in '' $ac_executable_extensions; do
5149 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5150 as_fn_executable_p "$ac_path_EGREP" || continue
5151 # Check for GNU ac_path_EGREP and select it if it is found.
5152 # Check for GNU $ac_path_EGREP
5153 case `"$ac_path_EGREP" --version 2>&1` in #(
5154 *GNU*)
5155 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5156 #(
5157 *)
5158 ac_count=0
5159 printf %s 0123456789 >"conftest.in"
5160 while :
5161 do
5162 cat "conftest.in" "conftest.in" >"conftest.tmp"
5163 mv "conftest.tmp" "conftest.in"
5164 cp "conftest.in" "conftest.nl"
5165 printf "%s\n" 'EGREP' >> "conftest.nl"
5166 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5167 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5168 as_fn_arith $ac_count + 1 && ac_count=$as_val
5169 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5170 # Best one so far, save it but keep looking for a better one
5171 ac_cv_path_EGREP="$ac_path_EGREP"
5172 ac_path_EGREP_max=$ac_count
5173 fi
5174 # 10*(2^10) chars as input seems more than enough
5175 test $ac_count -gt 10 && break
5176 done
5177 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5178 esac
5179
5180 $ac_path_EGREP_found && break 3
5181 done
5182 done
5183 done
5184 IFS=$as_save_IFS
5185 if test -z "$ac_cv_path_EGREP"; then
5186 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5187 fi
5188 else
5189 ac_cv_path_EGREP=$EGREP
5190 fi
5191
5192 fi ;;
5193 esac
5194 fi
5195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5196 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5197 EGREP="$ac_cv_path_EGREP"
5198
5199 EGREP_TRADITIONAL=$EGREP
5200 ac_cv_path_EGREP_TRADITIONAL=$EGREP
5201
5202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5203 printf %s "checking for fgrep... " >&6; }
5204 if test ${ac_cv_path_FGREP+y}
5205 then :
5206 printf %s "(cached) " >&6
5207 else case e in #(
5208 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5209 then ac_cv_path_FGREP="$GREP -F"
5210 else
5211 if test -z "$FGREP"; then
5212 ac_path_FGREP_found=false
5213 # Loop through the user's path and test for each of PROGNAME-LIST
5214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5215 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5216 do
5217 IFS=$as_save_IFS
5218 case $as_dir in #(((
5219 '') as_dir=./ ;;
5220 */) ;;
5221 *) as_dir=$as_dir/ ;;
5222 esac
5223 for ac_prog in fgrep
5224 do
5225 for ac_exec_ext in '' $ac_executable_extensions; do
5226 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5227 as_fn_executable_p "$ac_path_FGREP" || continue
5228 # Check for GNU ac_path_FGREP and select it if it is found.
5229 # Check for GNU $ac_path_FGREP
5230 case `"$ac_path_FGREP" --version 2>&1` in #(
5231 *GNU*)
5232 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5233 #(
5234 *)
5235 ac_count=0
5236 printf %s 0123456789 >"conftest.in"
5237 while :
5238 do
5239 cat "conftest.in" "conftest.in" >"conftest.tmp"
5240 mv "conftest.tmp" "conftest.in"
5241 cp "conftest.in" "conftest.nl"
5242 printf "%s\n" 'FGREP' >> "conftest.nl"
5243 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5244 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5245 as_fn_arith $ac_count + 1 && ac_count=$as_val
5246 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5247 # Best one so far, save it but keep looking for a better one
5248 ac_cv_path_FGREP="$ac_path_FGREP"
5249 ac_path_FGREP_max=$ac_count
5250 fi
5251 # 10*(2^10) chars as input seems more than enough
5252 test $ac_count -gt 10 && break
5253 done
5254 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5255 esac
5256
5257 $ac_path_FGREP_found && break 3
5258 done
5259 done
5260 done
5261 IFS=$as_save_IFS
5262 if test -z "$ac_cv_path_FGREP"; then
5263 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5264 fi
5265 else
5266 ac_cv_path_FGREP=$FGREP
5267 fi
5268
5269 fi ;;
5270 esac
5271 fi
5272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5273 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5274 FGREP="$ac_cv_path_FGREP"
5275
5276
5277 test -z "$GREP" && GREP=grep
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297 # Check whether --with-gnu-ld was given.
5298 if test ${with_gnu_ld+y}
5299 then :
5300 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5301 else case e in #(
5302 e) with_gnu_ld=no ;;
5303 esac
5304 fi
5305
5306 ac_prog=ld
5307 if test yes = "$GCC"; then
5308 # Check if gcc -print-prog-name=ld gives a path.
5309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5310 printf %s "checking for ld used by $CC... " >&6; }
5311 case $host in
5312 *-*-mingw*)
5313 # gcc leaves a trailing carriage return, which upsets mingw
5314 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5315 *)
5316 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5317 esac
5318 case $ac_prog in
5319 # Accept absolute paths.
5320 [\\/]* | ?:[\\/]*)
5321 re_direlt='/[^/][^/]*/\.\./'
5322 # Canonicalize the pathname of ld
5323 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5324 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5325 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5326 done
5327 test -z "$LD" && LD=$ac_prog
5328 ;;
5329 "")
5330 # If it fails, then pretend we aren't using GCC.
5331 ac_prog=ld
5332 ;;
5333 *)
5334 # If it is relative, then search for the first ld in PATH.
5335 with_gnu_ld=unknown
5336 ;;
5337 esac
5338 elif test yes = "$with_gnu_ld"; then
5339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5340 printf %s "checking for GNU ld... " >&6; }
5341 else
5342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5343 printf %s "checking for non-GNU ld... " >&6; }
5344 fi
5345 if test ${lt_cv_path_LD+y}
5346 then :
5347 printf %s "(cached) " >&6
5348 else case e in #(
5349 e) if test -z "$LD"; then
5350 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5351 for ac_dir in $PATH; do
5352 IFS=$lt_save_ifs
5353 test -z "$ac_dir" && ac_dir=.
5354 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5355 lt_cv_path_LD=$ac_dir/$ac_prog
5356 # Check to see if the program is GNU ld. I'd rather use --version,
5357 # but apparently some variants of GNU ld only accept -v.
5358 # Break only if it was the GNU/non-GNU ld that we prefer.
5359 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5360 *GNU* | *'with BFD'*)
5361 test no != "$with_gnu_ld" && break
5362 ;;
5363 *)
5364 test yes != "$with_gnu_ld" && break
5365 ;;
5366 esac
5367 fi
5368 done
5369 IFS=$lt_save_ifs
5370 else
5371 lt_cv_path_LD=$LD # Let the user override the test with a path.
5372 fi ;;
5373 esac
5374 fi
5375
5376 LD=$lt_cv_path_LD
5377 if test -n "$LD"; then
5378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5379 printf "%s\n" "$LD" >&6; }
5380 else
5381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5382 printf "%s\n" "no" >&6; }
5383 fi
5384 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5386 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5387 if test ${lt_cv_prog_gnu_ld+y}
5388 then :
5389 printf %s "(cached) " >&6
5390 else case e in #(
5391 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
5392 case `$LD -v 2>&1 </dev/null` in
5393 *GNU* | *'with BFD'*)
5394 lt_cv_prog_gnu_ld=yes
5395 ;;
5396 *)
5397 lt_cv_prog_gnu_ld=no
5398 ;;
5399 esac ;;
5400 esac
5401 fi
5402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5403 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5404 with_gnu_ld=$lt_cv_prog_gnu_ld
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5415 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5416 if test ${lt_cv_path_NM+y}
5417 then :
5418 printf %s "(cached) " >&6
5419 else case e in #(
5420 e) if test -n "$NM"; then
5421 # Let the user override the test.
5422 lt_cv_path_NM=$NM
5423 else
5424 lt_nm_to_check=${ac_tool_prefix}nm
5425 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5426 lt_nm_to_check="$lt_nm_to_check nm"
5427 fi
5428 for lt_tmp_nm in $lt_nm_to_check; do
5429 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5430 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5431 IFS=$lt_save_ifs
5432 test -z "$ac_dir" && ac_dir=.
5433 tmp_nm=$ac_dir/$lt_tmp_nm
5434 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5435 # Check to see if the nm accepts a BSD-compat flag.
5436 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5437 # nm: unknown option "B" ignored
5438 # Tru64's nm complains that /dev/null is an invalid object file
5439 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5440 case $build_os in
5441 mingw*) lt_bad_file=conftest.nm/nofile ;;
5442 *) lt_bad_file=/dev/null ;;
5443 esac
5444 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5445 *$lt_bad_file* | *'Invalid file or object type'*)
5446 lt_cv_path_NM="$tmp_nm -B"
5447 break 2
5448 ;;
5449 *)
5450 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5451 */dev/null*)
5452 lt_cv_path_NM="$tmp_nm -p"
5453 break 2
5454 ;;
5455 *)
5456 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5457 continue # so that we can try to find one that supports BSD flags
5458 ;;
5459 esac
5460 ;;
5461 esac
5462 fi
5463 done
5464 IFS=$lt_save_ifs
5465 done
5466 : ${lt_cv_path_NM=no}
5467 fi ;;
5468 esac
5469 fi
5470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5471 printf "%s\n" "$lt_cv_path_NM" >&6; }
5472 if test no != "$lt_cv_path_NM"; then
5473 NM=$lt_cv_path_NM
5474 else
5475 # Didn't find any BSD compatible name lister, look for dumpbin.
5476 if test -n "$DUMPBIN"; then :
5477 # Let the user override the test.
5478 else
5479 if test -n "$ac_tool_prefix"; then
5480 for ac_prog in dumpbin "link -dump"
5481 do
5482 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5483 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5485 printf %s "checking for $ac_word... " >&6; }
5486 if test ${ac_cv_prog_DUMPBIN+y}
5487 then :
5488 printf %s "(cached) " >&6
5489 else case e in #(
5490 e) if test -n "$DUMPBIN"; then
5491 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5492 else
5493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5494 for as_dir in $PATH
5495 do
5496 IFS=$as_save_IFS
5497 case $as_dir in #(((
5498 '') as_dir=./ ;;
5499 */) ;;
5500 *) as_dir=$as_dir/ ;;
5501 esac
5502 for ac_exec_ext in '' $ac_executable_extensions; do
5503 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5504 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5505 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5506 break 2
5507 fi
5508 done
5509 done
5510 IFS=$as_save_IFS
5511
5512 fi ;;
5513 esac
5514 fi
5515 DUMPBIN=$ac_cv_prog_DUMPBIN
5516 if test -n "$DUMPBIN"; then
5517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5518 printf "%s\n" "$DUMPBIN" >&6; }
5519 else
5520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5521 printf "%s\n" "no" >&6; }
5522 fi
5523
5524
5525 test -n "$DUMPBIN" && break
5526 done
5527 fi
5528 if test -z "$DUMPBIN"; then
5529 ac_ct_DUMPBIN=$DUMPBIN
5530 for ac_prog in dumpbin "link -dump"
5531 do
5532 # Extract the first word of "$ac_prog", so it can be a program name with args.
5533 set dummy $ac_prog; ac_word=$2
5534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5535 printf %s "checking for $ac_word... " >&6; }
5536 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5537 then :
5538 printf %s "(cached) " >&6
5539 else case e in #(
5540 e) if test -n "$ac_ct_DUMPBIN"; then
5541 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5542 else
5543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5544 for as_dir in $PATH
5545 do
5546 IFS=$as_save_IFS
5547 case $as_dir in #(((
5548 '') as_dir=./ ;;
5549 */) ;;
5550 *) as_dir=$as_dir/ ;;
5551 esac
5552 for ac_exec_ext in '' $ac_executable_extensions; do
5553 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5554 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5555 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5556 break 2
5557 fi
5558 done
5559 done
5560 IFS=$as_save_IFS
5561
5562 fi ;;
5563 esac
5564 fi
5565 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5566 if test -n "$ac_ct_DUMPBIN"; then
5567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5568 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5569 else
5570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5571 printf "%s\n" "no" >&6; }
5572 fi
5573
5574
5575 test -n "$ac_ct_DUMPBIN" && break
5576 done
5577
5578 if test "x$ac_ct_DUMPBIN" = x; then
5579 DUMPBIN=":"
5580 else
5581 case $cross_compiling:$ac_tool_warned in
5582 yes:)
5583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5584 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5585 ac_tool_warned=yes ;;
5586 esac
5587 DUMPBIN=$ac_ct_DUMPBIN
5588 fi
5589 fi
5590
5591 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5592 *COFF*)
5593 DUMPBIN="$DUMPBIN -symbols -headers"
5594 ;;
5595 *)
5596 DUMPBIN=:
5597 ;;
5598 esac
5599 fi
5600
5601 if test : != "$DUMPBIN"; then
5602 NM=$DUMPBIN
5603 fi
5604 fi
5605 test -z "$NM" && NM=nm
5606
5607
5608
5609
5610
5611
5612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5613 printf %s "checking the name lister ($NM) interface... " >&6; }
5614 if test ${lt_cv_nm_interface+y}
5615 then :
5616 printf %s "(cached) " >&6
5617 else case e in #(
5618 e) lt_cv_nm_interface="BSD nm"
5619 echo "int some_variable = 0;" > conftest.$ac_ext
5620 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5621 (eval "$ac_compile" 2>conftest.err)
5622 cat conftest.err >&5
5623 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5624 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5625 cat conftest.err >&5
5626 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5627 cat conftest.out >&5
5628 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5629 lt_cv_nm_interface="MS dumpbin"
5630 fi
5631 rm -f conftest* ;;
5632 esac
5633 fi
5634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5635 printf "%s\n" "$lt_cv_nm_interface" >&6; }
5636
5637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5638 printf %s "checking whether ln -s works... " >&6; }
5639 LN_S=$as_ln_s
5640 if test "$LN_S" = "ln -s"; then
5641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5642 printf "%s\n" "yes" >&6; }
5643 else
5644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5645 printf "%s\n" "no, using $LN_S" >&6; }
5646 fi
5647
5648 # find the maximum length of command line arguments
5649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5650 printf %s "checking the maximum length of command line arguments... " >&6; }
5651 if test ${lt_cv_sys_max_cmd_len+y}
5652 then :
5653 printf %s "(cached) " >&6
5654 else case e in #(
5655 e) i=0
5656 teststring=ABCD
5657
5658 case $build_os in
5659 msdosdjgpp*)
5660 # On DJGPP, this test can blow up pretty badly due to problems in libc
5661 # (any single argument exceeding 2000 bytes causes a buffer overrun
5662 # during glob expansion). Even if it were fixed, the result of this
5663 # check would be larger than it should be.
5664 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5665 ;;
5666
5667 gnu*)
5668 # Under GNU Hurd, this test is not required because there is
5669 # no limit to the length of command line arguments.
5670 # Libtool will interpret -1 as no limit whatsoever
5671 lt_cv_sys_max_cmd_len=-1;
5672 ;;
5673
5674 cygwin* | mingw* | cegcc*)
5675 # On Win9x/ME, this test blows up -- it succeeds, but takes
5676 # about 5 minutes as the teststring grows exponentially.
5677 # Worse, since 9x/ME are not pre-emptively multitasking,
5678 # you end up with a "frozen" computer, even though with patience
5679 # the test eventually succeeds (with a max line length of 256k).
5680 # Instead, let's just punt: use the minimum linelength reported by
5681 # all of the supported platforms: 8192 (on NT/2K/XP).
5682 lt_cv_sys_max_cmd_len=8192;
5683 ;;
5684
5685 mint*)
5686 # On MiNT this can take a long time and run out of memory.
5687 lt_cv_sys_max_cmd_len=8192;
5688 ;;
5689
5690 amigaos*)
5691 # On AmigaOS with pdksh, this test takes hours, literally.
5692 # So we just punt and use a minimum line length of 8192.
5693 lt_cv_sys_max_cmd_len=8192;
5694 ;;
5695
5696 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5697 # This has been around since 386BSD, at least. Likely further.
5698 if test -x /sbin/sysctl; then
5699 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5700 elif test -x /usr/sbin/sysctl; then
5701 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5702 else
5703 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5704 fi
5705 # And add a safety zone
5706 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5707 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5708 ;;
5709
5710 interix*)
5711 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5712 lt_cv_sys_max_cmd_len=196608
5713 ;;
5714
5715 os2*)
5716 # The test takes a long time on OS/2.
5717 lt_cv_sys_max_cmd_len=8192
5718 ;;
5719
5720 osf*)
5721 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5722 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5723 # nice to cause kernel panics so lets avoid the loop below.
5724 # First set a reasonable default.
5725 lt_cv_sys_max_cmd_len=16384
5726 #
5727 if test -x /sbin/sysconfig; then
5728 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5729 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5730 esac
5731 fi
5732 ;;
5733 sco3.2v5*)
5734 lt_cv_sys_max_cmd_len=102400
5735 ;;
5736 sysv5* | sco5v6* | sysv4.2uw2*)
5737 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5738 if test -n "$kargmax"; then
5739 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
5740 else
5741 lt_cv_sys_max_cmd_len=32768
5742 fi
5743 ;;
5744 *)
5745 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5746 if test -n "$lt_cv_sys_max_cmd_len" && \
5747 test undefined != "$lt_cv_sys_max_cmd_len"; then
5748 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5749 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5750 else
5751 # Make teststring a little bigger before we do anything with it.
5752 # a 1K string should be a reasonable start.
5753 for i in 1 2 3 4 5 6 7 8; do
5754 teststring=$teststring$teststring
5755 done
5756 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5757 # If test is not a shell built-in, we'll probably end up computing a
5758 # maximum length that is only half of the actual maximum length, but
5759 # we can't tell.
5760 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5761 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5762 test 17 != "$i" # 1/2 MB should be enough
5763 do
5764 i=`expr $i + 1`
5765 teststring=$teststring$teststring
5766 done
5767 # Only check the string length outside the loop.
5768 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5769 teststring=
5770 # Add a significant safety factor because C++ compilers can tack on
5771 # massive amounts of additional arguments before passing them to the
5772 # linker. It appears as though 1/2 is a usable value.
5773 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5774 fi
5775 ;;
5776 esac
5777 ;;
5778 esac
5779 fi
5780
5781 if test -n "$lt_cv_sys_max_cmd_len"; then
5782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5783 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5784 else
5785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5786 printf "%s\n" "none" >&6; }
5787 fi
5788 max_cmd_len=$lt_cv_sys_max_cmd_len
5789
5790
5791
5792
5793
5794
5795 : ${CP="cp -f"}
5796 : ${MV="mv -f"}
5797 : ${RM="rm -f"}
5798
5799 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5800 lt_unset=unset
5801 else
5802 lt_unset=false
5803 fi
5804
5805
5806
5807
5808
5809 # test EBCDIC or ASCII
5810 case `echo X|tr X '\101'` in
5811 A) # ASCII based system
5812 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5813 lt_SP2NL='tr \040 \012'
5814 lt_NL2SP='tr \015\012 \040\040'
5815 ;;
5816 *) # EBCDIC based system
5817 lt_SP2NL='tr \100 \n'
5818 lt_NL2SP='tr \r\n \100\100'
5819 ;;
5820 esac
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5831 printf %s "checking how to convert $build file names to $host format... " >&6; }
5832 if test ${lt_cv_to_host_file_cmd+y}
5833 then :
5834 printf %s "(cached) " >&6
5835 else case e in #(
5836 e) case $host in
5837 *-*-mingw* )
5838 case $build in
5839 *-*-mingw* ) # actually msys
5840 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5841 ;;
5842 *-*-cygwin* )
5843 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5844 ;;
5845 * ) # otherwise, assume *nix
5846 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5847 ;;
5848 esac
5849 ;;
5850 *-*-cygwin* )
5851 case $build in
5852 *-*-mingw* ) # actually msys
5853 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5854 ;;
5855 *-*-cygwin* )
5856 lt_cv_to_host_file_cmd=func_convert_file_noop
5857 ;;
5858 * ) # otherwise, assume *nix
5859 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5860 ;;
5861 esac
5862 ;;
5863 * ) # unhandled hosts (and "normal" native builds)
5864 lt_cv_to_host_file_cmd=func_convert_file_noop
5865 ;;
5866 esac
5867 ;;
5868 esac
5869 fi
5870
5871 to_host_file_cmd=$lt_cv_to_host_file_cmd
5872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5873 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
5874
5875
5876
5877
5878
5879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5880 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5881 if test ${lt_cv_to_tool_file_cmd+y}
5882 then :
5883 printf %s "(cached) " >&6
5884 else case e in #(
5885 e) #assume ordinary cross tools, or native build.
5886 lt_cv_to_tool_file_cmd=func_convert_file_noop
5887 case $host in
5888 *-*-mingw* )
5889 case $build in
5890 *-*-mingw* ) # actually msys
5891 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5892 ;;
5893 esac
5894 ;;
5895 esac
5896 ;;
5897 esac
5898 fi
5899
5900 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5902 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
5903
5904
5905
5906
5907
5908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5909 printf %s "checking for $LD option to reload object files... " >&6; }
5910 if test ${lt_cv_ld_reload_flag+y}
5911 then :
5912 printf %s "(cached) " >&6
5913 else case e in #(
5914 e) lt_cv_ld_reload_flag='-r' ;;
5915 esac
5916 fi
5917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5918 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
5919 reload_flag=$lt_cv_ld_reload_flag
5920 case $reload_flag in
5921 "" | " "*) ;;
5922 *) reload_flag=" $reload_flag" ;;
5923 esac
5924 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5925 case $host_os in
5926 cygwin* | mingw* | pw32* | cegcc*)
5927 if test yes != "$GCC"; then
5928 reload_cmds=false
5929 fi
5930 ;;
5931 darwin*)
5932 if test yes = "$GCC"; then
5933 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5934 else
5935 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5936 fi
5937 ;;
5938 esac
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948 if test -n "$ac_tool_prefix"; then
5949 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
5950 set dummy ${ac_tool_prefix}file; ac_word=$2
5951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5952 printf %s "checking for $ac_word... " >&6; }
5953 if test ${ac_cv_prog_FILECMD+y}
5954 then :
5955 printf %s "(cached) " >&6
5956 else case e in #(
5957 e) if test -n "$FILECMD"; then
5958 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
5959 else
5960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5961 for as_dir in $PATH
5962 do
5963 IFS=$as_save_IFS
5964 case $as_dir in #(((
5965 '') as_dir=./ ;;
5966 */) ;;
5967 *) as_dir=$as_dir/ ;;
5968 esac
5969 for ac_exec_ext in '' $ac_executable_extensions; do
5970 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5971 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
5972 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5973 break 2
5974 fi
5975 done
5976 done
5977 IFS=$as_save_IFS
5978
5979 fi ;;
5980 esac
5981 fi
5982 FILECMD=$ac_cv_prog_FILECMD
5983 if test -n "$FILECMD"; then
5984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
5985 printf "%s\n" "$FILECMD" >&6; }
5986 else
5987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5988 printf "%s\n" "no" >&6; }
5989 fi
5990
5991
5992 fi
5993 if test -z "$ac_cv_prog_FILECMD"; then
5994 ac_ct_FILECMD=$FILECMD
5995 # Extract the first word of "file", so it can be a program name with args.
5996 set dummy file; ac_word=$2
5997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5998 printf %s "checking for $ac_word... " >&6; }
5999 if test ${ac_cv_prog_ac_ct_FILECMD+y}
6000 then :
6001 printf %s "(cached) " >&6
6002 else case e in #(
6003 e) if test -n "$ac_ct_FILECMD"; then
6004 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
6005 else
6006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6007 for as_dir in $PATH
6008 do
6009 IFS=$as_save_IFS
6010 case $as_dir in #(((
6011 '') as_dir=./ ;;
6012 */) ;;
6013 *) as_dir=$as_dir/ ;;
6014 esac
6015 for ac_exec_ext in '' $ac_executable_extensions; do
6016 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6017 ac_cv_prog_ac_ct_FILECMD="file"
6018 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6019 break 2
6020 fi
6021 done
6022 done
6023 IFS=$as_save_IFS
6024
6025 fi ;;
6026 esac
6027 fi
6028 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
6029 if test -n "$ac_ct_FILECMD"; then
6030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
6031 printf "%s\n" "$ac_ct_FILECMD" >&6; }
6032 else
6033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6034 printf "%s\n" "no" >&6; }
6035 fi
6036
6037 if test "x$ac_ct_FILECMD" = x; then
6038 FILECMD=":"
6039 else
6040 case $cross_compiling:$ac_tool_warned in
6041 yes:)
6042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6043 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6044 ac_tool_warned=yes ;;
6045 esac
6046 FILECMD=$ac_ct_FILECMD
6047 fi
6048 else
6049 FILECMD="$ac_cv_prog_FILECMD"
6050 fi
6051
6052
6053
6054
6055
6056
6057
6058 if test -n "$ac_tool_prefix"; then
6059 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6060 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6062 printf %s "checking for $ac_word... " >&6; }
6063 if test ${ac_cv_prog_OBJDUMP+y}
6064 then :
6065 printf %s "(cached) " >&6
6066 else case e in #(
6067 e) if test -n "$OBJDUMP"; then
6068 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6069 else
6070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6071 for as_dir in $PATH
6072 do
6073 IFS=$as_save_IFS
6074 case $as_dir in #(((
6075 '') as_dir=./ ;;
6076 */) ;;
6077 *) as_dir=$as_dir/ ;;
6078 esac
6079 for ac_exec_ext in '' $ac_executable_extensions; do
6080 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6081 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6082 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6083 break 2
6084 fi
6085 done
6086 done
6087 IFS=$as_save_IFS
6088
6089 fi ;;
6090 esac
6091 fi
6092 OBJDUMP=$ac_cv_prog_OBJDUMP
6093 if test -n "$OBJDUMP"; then
6094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6095 printf "%s\n" "$OBJDUMP" >&6; }
6096 else
6097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6098 printf "%s\n" "no" >&6; }
6099 fi
6100
6101
6102 fi
6103 if test -z "$ac_cv_prog_OBJDUMP"; then
6104 ac_ct_OBJDUMP=$OBJDUMP
6105 # Extract the first word of "objdump", so it can be a program name with args.
6106 set dummy objdump; ac_word=$2
6107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6108 printf %s "checking for $ac_word... " >&6; }
6109 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6110 then :
6111 printf %s "(cached) " >&6
6112 else case e in #(
6113 e) if test -n "$ac_ct_OBJDUMP"; then
6114 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6115 else
6116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6117 for as_dir in $PATH
6118 do
6119 IFS=$as_save_IFS
6120 case $as_dir in #(((
6121 '') as_dir=./ ;;
6122 */) ;;
6123 *) as_dir=$as_dir/ ;;
6124 esac
6125 for ac_exec_ext in '' $ac_executable_extensions; do
6126 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6127 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6128 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6129 break 2
6130 fi
6131 done
6132 done
6133 IFS=$as_save_IFS
6134
6135 fi ;;
6136 esac
6137 fi
6138 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6139 if test -n "$ac_ct_OBJDUMP"; then
6140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6141 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6142 else
6143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6144 printf "%s\n" "no" >&6; }
6145 fi
6146
6147 if test "x$ac_ct_OBJDUMP" = x; then
6148 OBJDUMP="false"
6149 else
6150 case $cross_compiling:$ac_tool_warned in
6151 yes:)
6152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6153 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6154 ac_tool_warned=yes ;;
6155 esac
6156 OBJDUMP=$ac_ct_OBJDUMP
6157 fi
6158 else
6159 OBJDUMP="$ac_cv_prog_OBJDUMP"
6160 fi
6161
6162 test -z "$OBJDUMP" && OBJDUMP=objdump
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6173 printf %s "checking how to recognize dependent libraries... " >&6; }
6174 if test ${lt_cv_deplibs_check_method+y}
6175 then :
6176 printf %s "(cached) " >&6
6177 else case e in #(
6178 e) lt_cv_file_magic_cmd='$MAGIC_CMD'
6179 lt_cv_file_magic_test_file=
6180 lt_cv_deplibs_check_method='unknown'
6181 # Need to set the preceding variable on all platforms that support
6182 # interlibrary dependencies.
6183 # 'none' -- dependencies not supported.
6184 # 'unknown' -- same as none, but documents that we really don't know.
6185 # 'pass_all' -- all dependencies passed with no checks.
6186 # 'test_compile' -- check by making test program.
6187 # 'file_magic [[regex]]' -- check by looking for files in library path
6188 # that responds to the $file_magic_cmd with a given extended regex.
6189 # If you have 'file' or equivalent on your system and you're not sure
6190 # whether 'pass_all' will *always* work, you probably want this one.
6191
6192 case $host_os in
6193 aix[4-9]*)
6194 lt_cv_deplibs_check_method=pass_all
6195 ;;
6196
6197 beos*)
6198 lt_cv_deplibs_check_method=pass_all
6199 ;;
6200
6201 bsdi[45]*)
6202 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6203 lt_cv_file_magic_cmd='$FILECMD -L'
6204 lt_cv_file_magic_test_file=/shlib/libc.so
6205 ;;
6206
6207 cygwin*)
6208 # func_win32_libid is a shell function defined in ltmain.sh
6209 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6210 lt_cv_file_magic_cmd='func_win32_libid'
6211 ;;
6212
6213 mingw* | pw32*)
6214 # Base MSYS/MinGW do not provide the 'file' command needed by
6215 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6216 # unless we find 'file', for example because we are cross-compiling.
6217 if ( file / ) >/dev/null 2>&1; then
6218 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6219 lt_cv_file_magic_cmd='func_win32_libid'
6220 else
6221 # Keep this pattern in sync with the one in func_win32_libid.
6222 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6223 lt_cv_file_magic_cmd='$OBJDUMP -f'
6224 fi
6225 ;;
6226
6227 cegcc*)
6228 # use the weaker test based on 'objdump'. See mingw*.
6229 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6230 lt_cv_file_magic_cmd='$OBJDUMP -f'
6231 ;;
6232
6233 darwin* | rhapsody*)
6234 lt_cv_deplibs_check_method=pass_all
6235 ;;
6236
6237 freebsd* | dragonfly* | midnightbsd*)
6238 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6239 case $host_cpu in
6240 i*86 )
6241 # Not sure whether the presence of OpenBSD here was a mistake.
6242 # Let's accept both of them until this is cleared up.
6243 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6244 lt_cv_file_magic_cmd=$FILECMD
6245 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6246 ;;
6247 esac
6248 else
6249 lt_cv_deplibs_check_method=pass_all
6250 fi
6251 ;;
6252
6253 haiku*)
6254 lt_cv_deplibs_check_method=pass_all
6255 ;;
6256
6257 hpux10.20* | hpux11*)
6258 lt_cv_file_magic_cmd=$FILECMD
6259 case $host_cpu in
6260 ia64*)
6261 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6262 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6263 ;;
6264 hppa*64*)
6265 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
6266 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6267 ;;
6268 *)
6269 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6270 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6271 ;;
6272 esac
6273 ;;
6274
6275 interix[3-9]*)
6276 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6277 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6278 ;;
6279
6280 irix5* | irix6* | nonstopux*)
6281 case $LD in
6282 *-32|*"-32 ") libmagic=32-bit;;
6283 *-n32|*"-n32 ") libmagic=N32;;
6284 *-64|*"-64 ") libmagic=64-bit;;
6285 *) libmagic=never-match;;
6286 esac
6287 lt_cv_deplibs_check_method=pass_all
6288 ;;
6289
6290 # This must be glibc/ELF.
6291 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6292 lt_cv_deplibs_check_method=pass_all
6293 ;;
6294
6295 netbsd*)
6296 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6297 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6298 else
6299 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6300 fi
6301 ;;
6302
6303 newos6*)
6304 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6305 lt_cv_file_magic_cmd=$FILECMD
6306 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6307 ;;
6308
6309 *nto* | *qnx*)
6310 lt_cv_deplibs_check_method=pass_all
6311 ;;
6312
6313 openbsd* | bitrig*)
6314 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6315 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6316 else
6317 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6318 fi
6319 ;;
6320
6321 osf3* | osf4* | osf5*)
6322 lt_cv_deplibs_check_method=pass_all
6323 ;;
6324
6325 rdos*)
6326 lt_cv_deplibs_check_method=pass_all
6327 ;;
6328
6329 solaris*)
6330 lt_cv_deplibs_check_method=pass_all
6331 ;;
6332
6333 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6334 lt_cv_deplibs_check_method=pass_all
6335 ;;
6336
6337 sysv4 | sysv4.3*)
6338 case $host_vendor in
6339 motorola)
6340 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
6341 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6342 ;;
6343 ncr)
6344 lt_cv_deplibs_check_method=pass_all
6345 ;;
6346 sequent)
6347 lt_cv_file_magic_cmd='/bin/file'
6348 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6349 ;;
6350 sni)
6351 lt_cv_file_magic_cmd='/bin/file'
6352 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6353 lt_cv_file_magic_test_file=/lib/libc.so
6354 ;;
6355 siemens)
6356 lt_cv_deplibs_check_method=pass_all
6357 ;;
6358 pc)
6359 lt_cv_deplibs_check_method=pass_all
6360 ;;
6361 esac
6362 ;;
6363
6364 tpf*)
6365 lt_cv_deplibs_check_method=pass_all
6366 ;;
6367 os2*)
6368 lt_cv_deplibs_check_method=pass_all
6369 ;;
6370 esac
6371 ;;
6372 esac
6373 fi
6374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6375 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6376
6377 file_magic_glob=
6378 want_nocaseglob=no
6379 if test "$build" = "$host"; then
6380 case $host_os in
6381 mingw* | pw32*)
6382 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6383 want_nocaseglob=yes
6384 else
6385 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6386 fi
6387 ;;
6388 esac
6389 fi
6390
6391 file_magic_cmd=$lt_cv_file_magic_cmd
6392 deplibs_check_method=$lt_cv_deplibs_check_method
6393 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416 if test -n "$ac_tool_prefix"; then
6417 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6418 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6420 printf %s "checking for $ac_word... " >&6; }
6421 if test ${ac_cv_prog_DLLTOOL+y}
6422 then :
6423 printf %s "(cached) " >&6
6424 else case e in #(
6425 e) if test -n "$DLLTOOL"; then
6426 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6427 else
6428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6429 for as_dir in $PATH
6430 do
6431 IFS=$as_save_IFS
6432 case $as_dir in #(((
6433 '') as_dir=./ ;;
6434 */) ;;
6435 *) as_dir=$as_dir/ ;;
6436 esac
6437 for ac_exec_ext in '' $ac_executable_extensions; do
6438 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6439 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6440 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6441 break 2
6442 fi
6443 done
6444 done
6445 IFS=$as_save_IFS
6446
6447 fi ;;
6448 esac
6449 fi
6450 DLLTOOL=$ac_cv_prog_DLLTOOL
6451 if test -n "$DLLTOOL"; then
6452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6453 printf "%s\n" "$DLLTOOL" >&6; }
6454 else
6455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6456 printf "%s\n" "no" >&6; }
6457 fi
6458
6459
6460 fi
6461 if test -z "$ac_cv_prog_DLLTOOL"; then
6462 ac_ct_DLLTOOL=$DLLTOOL
6463 # Extract the first word of "dlltool", so it can be a program name with args.
6464 set dummy dlltool; ac_word=$2
6465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6466 printf %s "checking for $ac_word... " >&6; }
6467 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6468 then :
6469 printf %s "(cached) " >&6
6470 else case e in #(
6471 e) if test -n "$ac_ct_DLLTOOL"; then
6472 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6473 else
6474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6475 for as_dir in $PATH
6476 do
6477 IFS=$as_save_IFS
6478 case $as_dir in #(((
6479 '') as_dir=./ ;;
6480 */) ;;
6481 *) as_dir=$as_dir/ ;;
6482 esac
6483 for ac_exec_ext in '' $ac_executable_extensions; do
6484 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6485 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6486 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6487 break 2
6488 fi
6489 done
6490 done
6491 IFS=$as_save_IFS
6492
6493 fi ;;
6494 esac
6495 fi
6496 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6497 if test -n "$ac_ct_DLLTOOL"; then
6498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6499 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6500 else
6501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6502 printf "%s\n" "no" >&6; }
6503 fi
6504
6505 if test "x$ac_ct_DLLTOOL" = x; then
6506 DLLTOOL="false"
6507 else
6508 case $cross_compiling:$ac_tool_warned in
6509 yes:)
6510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6511 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6512 ac_tool_warned=yes ;;
6513 esac
6514 DLLTOOL=$ac_ct_DLLTOOL
6515 fi
6516 else
6517 DLLTOOL="$ac_cv_prog_DLLTOOL"
6518 fi
6519
6520 test -z "$DLLTOOL" && DLLTOOL=dlltool
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6532 printf %s "checking how to associate runtime and link libraries... " >&6; }
6533 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6534 then :
6535 printf %s "(cached) " >&6
6536 else case e in #(
6537 e) lt_cv_sharedlib_from_linklib_cmd='unknown'
6538
6539 case $host_os in
6540 cygwin* | mingw* | pw32* | cegcc*)
6541 # two different shell functions defined in ltmain.sh;
6542 # decide which one to use based on capabilities of $DLLTOOL
6543 case `$DLLTOOL --help 2>&1` in
6544 *--identify-strict*)
6545 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6546 ;;
6547 *)
6548 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6549 ;;
6550 esac
6551 ;;
6552 *)
6553 # fallback: assume linklib IS sharedlib
6554 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6555 ;;
6556 esac
6557 ;;
6558 esac
6559 fi
6560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6561 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6562 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6563 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6564
6565
6566
6567
6568
6569
6570
6571
6572 if test -n "$ac_tool_prefix"; then
6573 for ac_prog in ar
6574 do
6575 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6576 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6578 printf %s "checking for $ac_word... " >&6; }
6579 if test ${ac_cv_prog_AR+y}
6580 then :
6581 printf %s "(cached) " >&6
6582 else case e in #(
6583 e) if test -n "$AR"; then
6584 ac_cv_prog_AR="$AR" # Let the user override the test.
6585 else
6586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6587 for as_dir in $PATH
6588 do
6589 IFS=$as_save_IFS
6590 case $as_dir in #(((
6591 '') as_dir=./ ;;
6592 */) ;;
6593 *) as_dir=$as_dir/ ;;
6594 esac
6595 for ac_exec_ext in '' $ac_executable_extensions; do
6596 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6597 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6598 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6599 break 2
6600 fi
6601 done
6602 done
6603 IFS=$as_save_IFS
6604
6605 fi ;;
6606 esac
6607 fi
6608 AR=$ac_cv_prog_AR
6609 if test -n "$AR"; then
6610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6611 printf "%s\n" "$AR" >&6; }
6612 else
6613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6614 printf "%s\n" "no" >&6; }
6615 fi
6616
6617
6618 test -n "$AR" && break
6619 done
6620 fi
6621 if test -z "$AR"; then
6622 ac_ct_AR=$AR
6623 for ac_prog in ar
6624 do
6625 # Extract the first word of "$ac_prog", so it can be a program name with args.
6626 set dummy $ac_prog; ac_word=$2
6627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6628 printf %s "checking for $ac_word... " >&6; }
6629 if test ${ac_cv_prog_ac_ct_AR+y}
6630 then :
6631 printf %s "(cached) " >&6
6632 else case e in #(
6633 e) if test -n "$ac_ct_AR"; then
6634 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6635 else
6636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6637 for as_dir in $PATH
6638 do
6639 IFS=$as_save_IFS
6640 case $as_dir in #(((
6641 '') as_dir=./ ;;
6642 */) ;;
6643 *) as_dir=$as_dir/ ;;
6644 esac
6645 for ac_exec_ext in '' $ac_executable_extensions; do
6646 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6647 ac_cv_prog_ac_ct_AR="$ac_prog"
6648 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6649 break 2
6650 fi
6651 done
6652 done
6653 IFS=$as_save_IFS
6654
6655 fi ;;
6656 esac
6657 fi
6658 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6659 if test -n "$ac_ct_AR"; then
6660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6661 printf "%s\n" "$ac_ct_AR" >&6; }
6662 else
6663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6664 printf "%s\n" "no" >&6; }
6665 fi
6666
6667
6668 test -n "$ac_ct_AR" && break
6669 done
6670
6671 if test "x$ac_ct_AR" = x; then
6672 AR="false"
6673 else
6674 case $cross_compiling:$ac_tool_warned in
6675 yes:)
6676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6677 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6678 ac_tool_warned=yes ;;
6679 esac
6680 AR=$ac_ct_AR
6681 fi
6682 fi
6683
6684 : ${AR=ar}
6685
6686
6687
6688
6689
6690
6691 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
6692 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6693 # higher priority because thats what people were doing historically (setting
6694 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
6695 # variable obsoleted/removed.
6696
6697 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6698 lt_ar_flags=$AR_FLAGS
6699
6700
6701
6702
6703
6704
6705 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
6706 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6707
6708
6709
6710
6711
6712
6713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6714 printf %s "checking for archiver @FILE support... " >&6; }
6715 if test ${lt_cv_ar_at_file+y}
6716 then :
6717 printf %s "(cached) " >&6
6718 else case e in #(
6719 e) lt_cv_ar_at_file=no
6720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6721 /* end confdefs.h. */
6722
6723 int
6724 main (void)
6725 {
6726
6727 ;
6728 return 0;
6729 }
6730 _ACEOF
6731 if ac_fn_c_try_compile "$LINENO"
6732 then :
6733 echo conftest.$ac_objext > conftest.lst
6734 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6735 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6736 (eval $lt_ar_try) 2>&5
6737 ac_status=$?
6738 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6739 test $ac_status = 0; }
6740 if test 0 -eq "$ac_status"; then
6741 # Ensure the archiver fails upon bogus file names.
6742 rm -f conftest.$ac_objext libconftest.a
6743 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6744 (eval $lt_ar_try) 2>&5
6745 ac_status=$?
6746 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6747 test $ac_status = 0; }
6748 if test 0 -ne "$ac_status"; then
6749 lt_cv_ar_at_file=@
6750 fi
6751 fi
6752 rm -f conftest.* libconftest.a
6753
6754 fi
6755 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6756 ;;
6757 esac
6758 fi
6759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6760 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6761
6762 if test no = "$lt_cv_ar_at_file"; then
6763 archiver_list_spec=
6764 else
6765 archiver_list_spec=$lt_cv_ar_at_file
6766 fi
6767
6768
6769
6770
6771
6772
6773
6774 if test -n "$ac_tool_prefix"; then
6775 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6776 set dummy ${ac_tool_prefix}strip; ac_word=$2
6777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6778 printf %s "checking for $ac_word... " >&6; }
6779 if test ${ac_cv_prog_STRIP+y}
6780 then :
6781 printf %s "(cached) " >&6
6782 else case e in #(
6783 e) if test -n "$STRIP"; then
6784 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6785 else
6786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6787 for as_dir in $PATH
6788 do
6789 IFS=$as_save_IFS
6790 case $as_dir in #(((
6791 '') as_dir=./ ;;
6792 */) ;;
6793 *) as_dir=$as_dir/ ;;
6794 esac
6795 for ac_exec_ext in '' $ac_executable_extensions; do
6796 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6797 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6798 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6799 break 2
6800 fi
6801 done
6802 done
6803 IFS=$as_save_IFS
6804
6805 fi ;;
6806 esac
6807 fi
6808 STRIP=$ac_cv_prog_STRIP
6809 if test -n "$STRIP"; then
6810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6811 printf "%s\n" "$STRIP" >&6; }
6812 else
6813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6814 printf "%s\n" "no" >&6; }
6815 fi
6816
6817
6818 fi
6819 if test -z "$ac_cv_prog_STRIP"; then
6820 ac_ct_STRIP=$STRIP
6821 # Extract the first word of "strip", so it can be a program name with args.
6822 set dummy strip; ac_word=$2
6823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6824 printf %s "checking for $ac_word... " >&6; }
6825 if test ${ac_cv_prog_ac_ct_STRIP+y}
6826 then :
6827 printf %s "(cached) " >&6
6828 else case e in #(
6829 e) if test -n "$ac_ct_STRIP"; then
6830 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6831 else
6832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6833 for as_dir in $PATH
6834 do
6835 IFS=$as_save_IFS
6836 case $as_dir in #(((
6837 '') as_dir=./ ;;
6838 */) ;;
6839 *) as_dir=$as_dir/ ;;
6840 esac
6841 for ac_exec_ext in '' $ac_executable_extensions; do
6842 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6843 ac_cv_prog_ac_ct_STRIP="strip"
6844 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6845 break 2
6846 fi
6847 done
6848 done
6849 IFS=$as_save_IFS
6850
6851 fi ;;
6852 esac
6853 fi
6854 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6855 if test -n "$ac_ct_STRIP"; then
6856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6857 printf "%s\n" "$ac_ct_STRIP" >&6; }
6858 else
6859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6860 printf "%s\n" "no" >&6; }
6861 fi
6862
6863 if test "x$ac_ct_STRIP" = x; then
6864 STRIP=":"
6865 else
6866 case $cross_compiling:$ac_tool_warned in
6867 yes:)
6868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6869 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6870 ac_tool_warned=yes ;;
6871 esac
6872 STRIP=$ac_ct_STRIP
6873 fi
6874 else
6875 STRIP="$ac_cv_prog_STRIP"
6876 fi
6877
6878 test -z "$STRIP" && STRIP=:
6879
6880
6881
6882
6883
6884
6885 if test -n "$ac_tool_prefix"; then
6886 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6887 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6889 printf %s "checking for $ac_word... " >&6; }
6890 if test ${ac_cv_prog_RANLIB+y}
6891 then :
6892 printf %s "(cached) " >&6
6893 else case e in #(
6894 e) if test -n "$RANLIB"; then
6895 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6896 else
6897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6898 for as_dir in $PATH
6899 do
6900 IFS=$as_save_IFS
6901 case $as_dir in #(((
6902 '') as_dir=./ ;;
6903 */) ;;
6904 *) as_dir=$as_dir/ ;;
6905 esac
6906 for ac_exec_ext in '' $ac_executable_extensions; do
6907 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6908 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6909 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6910 break 2
6911 fi
6912 done
6913 done
6914 IFS=$as_save_IFS
6915
6916 fi ;;
6917 esac
6918 fi
6919 RANLIB=$ac_cv_prog_RANLIB
6920 if test -n "$RANLIB"; then
6921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6922 printf "%s\n" "$RANLIB" >&6; }
6923 else
6924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6925 printf "%s\n" "no" >&6; }
6926 fi
6927
6928
6929 fi
6930 if test -z "$ac_cv_prog_RANLIB"; then
6931 ac_ct_RANLIB=$RANLIB
6932 # Extract the first word of "ranlib", so it can be a program name with args.
6933 set dummy ranlib; ac_word=$2
6934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6935 printf %s "checking for $ac_word... " >&6; }
6936 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6937 then :
6938 printf %s "(cached) " >&6
6939 else case e in #(
6940 e) if test -n "$ac_ct_RANLIB"; then
6941 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6942 else
6943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6944 for as_dir in $PATH
6945 do
6946 IFS=$as_save_IFS
6947 case $as_dir in #(((
6948 '') as_dir=./ ;;
6949 */) ;;
6950 *) as_dir=$as_dir/ ;;
6951 esac
6952 for ac_exec_ext in '' $ac_executable_extensions; do
6953 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6954 ac_cv_prog_ac_ct_RANLIB="ranlib"
6955 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6956 break 2
6957 fi
6958 done
6959 done
6960 IFS=$as_save_IFS
6961
6962 fi ;;
6963 esac
6964 fi
6965 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6966 if test -n "$ac_ct_RANLIB"; then
6967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6968 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6969 else
6970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6971 printf "%s\n" "no" >&6; }
6972 fi
6973
6974 if test "x$ac_ct_RANLIB" = x; then
6975 RANLIB=":"
6976 else
6977 case $cross_compiling:$ac_tool_warned in
6978 yes:)
6979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6980 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6981 ac_tool_warned=yes ;;
6982 esac
6983 RANLIB=$ac_ct_RANLIB
6984 fi
6985 else
6986 RANLIB="$ac_cv_prog_RANLIB"
6987 fi
6988
6989 test -z "$RANLIB" && RANLIB=:
6990
6991
6992
6993
6994
6995
6996 # Determine commands to create old-style static archives.
6997 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6998 old_postinstall_cmds='chmod 644 $oldlib'
6999 old_postuninstall_cmds=
7000
7001 if test -n "$RANLIB"; then
7002 case $host_os in
7003 bitrig* | openbsd*)
7004 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7005 ;;
7006 *)
7007 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7008 ;;
7009 esac
7010 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7011 fi
7012
7013 case $host_os in
7014 darwin*)
7015 lock_old_archive_extraction=yes ;;
7016 *)
7017 lock_old_archive_extraction=no ;;
7018 esac
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058 # If no C compiler was specified, use CC.
7059 LTCC=${LTCC-"$CC"}
7060
7061 # If no C compiler flags were specified, use CFLAGS.
7062 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7063
7064 # Allow CC to be a program name with arguments.
7065 compiler=$CC
7066
7067
7068 # Check for command to grab the raw symbol name followed by C symbol from nm.
7069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7070 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7071 if test ${lt_cv_sys_global_symbol_pipe+y}
7072 then :
7073 printf %s "(cached) " >&6
7074 else case e in #(
7075 e)
7076 # These are sane defaults that work on at least a few old systems.
7077 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7078
7079 # Character class describing NM global symbol codes.
7080 symcode='[BCDEGRST]'
7081
7082 # Regexp to match symbols that can be accessed directly from C.
7083 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7084
7085 # Define system-specific variables.
7086 case $host_os in
7087 aix*)
7088 symcode='[BCDT]'
7089 ;;
7090 cygwin* | mingw* | pw32* | cegcc*)
7091 symcode='[ABCDGISTW]'
7092 ;;
7093 hpux*)
7094 if test ia64 = "$host_cpu"; then
7095 symcode='[ABCDEGRST]'
7096 fi
7097 ;;
7098 irix* | nonstopux*)
7099 symcode='[BCDEGRST]'
7100 ;;
7101 osf*)
7102 symcode='[BCDEGQRST]'
7103 ;;
7104 solaris*)
7105 symcode='[BDRT]'
7106 ;;
7107 sco3.2v5*)
7108 symcode='[DT]'
7109 ;;
7110 sysv4.2uw2*)
7111 symcode='[DT]'
7112 ;;
7113 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7114 symcode='[ABDT]'
7115 ;;
7116 sysv4)
7117 symcode='[DFNSTU]'
7118 ;;
7119 esac
7120
7121 # If we're using GNU nm, then use its standard symbol codes.
7122 case `$NM -V 2>&1` in
7123 *GNU* | *'with BFD'*)
7124 symcode='[ABCDGIRSTW]' ;;
7125 esac
7126
7127 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7128 # Gets list of data symbols to import.
7129 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7130 # Adjust the below global symbol transforms to fixup imported variables.
7131 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7132 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7133 lt_c_name_lib_hook="\
7134 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7135 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7136 else
7137 # Disable hooks by default.
7138 lt_cv_sys_global_symbol_to_import=
7139 lt_cdecl_hook=
7140 lt_c_name_hook=
7141 lt_c_name_lib_hook=
7142 fi
7143
7144 # Transform an extracted symbol line into a proper C declaration.
7145 # Some systems (esp. on ia64) link data and code symbols differently,
7146 # so use this general approach.
7147 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7148 $lt_cdecl_hook\
7149 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7150 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7151
7152 # Transform an extracted symbol line into symbol name and symbol address
7153 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7154 $lt_c_name_hook\
7155 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7156 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7157
7158 # Transform an extracted symbol line into symbol name with lib prefix and
7159 # symbol address.
7160 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7161 $lt_c_name_lib_hook\
7162 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7163 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7164 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7165
7166 # Handle CRLF in mingw tool chain
7167 opt_cr=
7168 case $build_os in
7169 mingw*)
7170 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7171 ;;
7172 esac
7173
7174 # Try without a prefix underscore, then with it.
7175 for ac_symprfx in "" "_"; do
7176
7177 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7178 symxfrm="\\1 $ac_symprfx\\2 \\2"
7179
7180 # Write the raw and C identifiers.
7181 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7182 # Fake it for dumpbin and say T for any non-static function,
7183 # D for any global variable and I for any imported variable.
7184 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7185 # which start with @ or ?.
7186 lt_cv_sys_global_symbol_pipe="$AWK '"\
7187 " {last_section=section; section=\$ 3};"\
7188 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7189 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7190 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7191 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7192 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7193 " \$ 0!~/External *\|/{next};"\
7194 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7195 " {if(hide[section]) next};"\
7196 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7197 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7198 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7199 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7200 " ' prfx=^$ac_symprfx"
7201 else
7202 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7203 fi
7204 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7205
7206 # Check to see that the pipe works correctly.
7207 pipe_works=no
7208
7209 rm -f conftest*
7210 cat > conftest.$ac_ext <<_LT_EOF
7211 #ifdef __cplusplus
7212 extern "C" {
7213 #endif
7214 char nm_test_var;
7215 void nm_test_func(void);
7216 void nm_test_func(void){}
7217 #ifdef __cplusplus
7218 }
7219 #endif
7220 int main(){nm_test_var='a';nm_test_func();return(0);}
7221 _LT_EOF
7222
7223 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7224 (eval $ac_compile) 2>&5
7225 ac_status=$?
7226 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7227 test $ac_status = 0; }; then
7228 # Now try to grab the symbols.
7229 nlist=conftest.nm
7230 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7231 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7232 ac_status=$?
7233 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7234 test $ac_status = 0; } && test -s "$nlist"; then
7235 # Try sorting and uniquifying the output.
7236 if sort "$nlist" | uniq > "$nlist"T; then
7237 mv -f "$nlist"T "$nlist"
7238 else
7239 rm -f "$nlist"T
7240 fi
7241
7242 # Make sure that we snagged all the symbols we need.
7243 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7244 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7245 cat <<_LT_EOF > conftest.$ac_ext
7246 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7247 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7248 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7249 relocations are performed -- see ld's documentation on pseudo-relocs. */
7250 # define LT_DLSYM_CONST
7251 #elif defined __osf__
7252 /* This system does not cope well with relocations in const data. */
7253 # define LT_DLSYM_CONST
7254 #else
7255 # define LT_DLSYM_CONST const
7256 #endif
7257
7258 #ifdef __cplusplus
7259 extern "C" {
7260 #endif
7261
7262 _LT_EOF
7263 # Now generate the symbol file.
7264 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7265
7266 cat <<_LT_EOF >> conftest.$ac_ext
7267
7268 /* The mapping between symbol names and symbols. */
7269 LT_DLSYM_CONST struct {
7270 const char *name;
7271 void *address;
7272 }
7273 lt__PROGRAM__LTX_preloaded_symbols[] =
7274 {
7275 { "@PROGRAM@", (void *) 0 },
7276 _LT_EOF
7277 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7278 cat <<\_LT_EOF >> conftest.$ac_ext
7279 {0, (void *) 0}
7280 };
7281
7282 /* This works around a problem in FreeBSD linker */
7283 #ifdef FREEBSD_WORKAROUND
7284 static const void *lt_preloaded_setup() {
7285 return lt__PROGRAM__LTX_preloaded_symbols;
7286 }
7287 #endif
7288
7289 #ifdef __cplusplus
7290 }
7291 #endif
7292 _LT_EOF
7293 # Now try linking the two files.
7294 mv conftest.$ac_objext conftstm.$ac_objext
7295 lt_globsym_save_LIBS=$LIBS
7296 lt_globsym_save_CFLAGS=$CFLAGS
7297 LIBS=conftstm.$ac_objext
7298 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7299 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7300 (eval $ac_link) 2>&5
7301 ac_status=$?
7302 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7303 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7304 pipe_works=yes
7305 fi
7306 LIBS=$lt_globsym_save_LIBS
7307 CFLAGS=$lt_globsym_save_CFLAGS
7308 else
7309 echo "cannot find nm_test_func in $nlist" >&5
7310 fi
7311 else
7312 echo "cannot find nm_test_var in $nlist" >&5
7313 fi
7314 else
7315 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7316 fi
7317 else
7318 echo "$progname: failed program was:" >&5
7319 cat conftest.$ac_ext >&5
7320 fi
7321 rm -rf conftest* conftst*
7322
7323 # Do not use the global_symbol_pipe unless it works.
7324 if test yes = "$pipe_works"; then
7325 break
7326 else
7327 lt_cv_sys_global_symbol_pipe=
7328 fi
7329 done
7330 ;;
7331 esac
7332 fi
7333
7334 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7335 lt_cv_sys_global_symbol_to_cdecl=
7336 fi
7337 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7339 printf "%s\n" "failed" >&6; }
7340 else
7341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7342 printf "%s\n" "ok" >&6; }
7343 fi
7344
7345 # Response file support.
7346 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7347 nm_file_list_spec='@'
7348 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7349 nm_file_list_spec='@'
7350 fi
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7389 printf %s "checking for sysroot... " >&6; }
7390
7391 # Check whether --with-sysroot was given.
7392 if test ${with_sysroot+y}
7393 then :
7394 withval=$with_sysroot;
7395 else case e in #(
7396 e) with_sysroot=no ;;
7397 esac
7398 fi
7399
7400
7401 lt_sysroot=
7402 case $with_sysroot in #(
7403 yes)
7404 if test yes = "$GCC"; then
7405 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7406 fi
7407 ;; #(
7408 /*)
7409 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7410 ;; #(
7411 no|'')
7412 ;; #(
7413 *)
7414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7415 printf "%s\n" "$with_sysroot" >&6; }
7416 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7417 ;;
7418 esac
7419
7420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7421 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7422
7423
7424
7425
7426
7427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7428 printf %s "checking for a working dd... " >&6; }
7429 if test ${ac_cv_path_lt_DD+y}
7430 then :
7431 printf %s "(cached) " >&6
7432 else case e in #(
7433 e) printf 0123456789abcdef0123456789abcdef >conftest.i
7434 cat conftest.i conftest.i >conftest2.i
7435 : ${lt_DD:=$DD}
7436 if test -z "$lt_DD"; then
7437 ac_path_lt_DD_found=false
7438 # Loop through the user's path and test for each of PROGNAME-LIST
7439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7440 for as_dir in $PATH
7441 do
7442 IFS=$as_save_IFS
7443 case $as_dir in #(((
7444 '') as_dir=./ ;;
7445 */) ;;
7446 *) as_dir=$as_dir/ ;;
7447 esac
7448 for ac_prog in dd
7449 do
7450 for ac_exec_ext in '' $ac_executable_extensions; do
7451 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7452 as_fn_executable_p "$ac_path_lt_DD" || continue
7453 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7454 cmp -s conftest.i conftest.out \
7455 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7456 fi
7457 $ac_path_lt_DD_found && break 3
7458 done
7459 done
7460 done
7461 IFS=$as_save_IFS
7462 if test -z "$ac_cv_path_lt_DD"; then
7463 :
7464 fi
7465 else
7466 ac_cv_path_lt_DD=$lt_DD
7467 fi
7468
7469 rm -f conftest.i conftest2.i conftest.out ;;
7470 esac
7471 fi
7472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7473 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7474
7475
7476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7477 printf %s "checking how to truncate binary pipes... " >&6; }
7478 if test ${lt_cv_truncate_bin+y}
7479 then :
7480 printf %s "(cached) " >&6
7481 else case e in #(
7482 e) printf 0123456789abcdef0123456789abcdef >conftest.i
7483 cat conftest.i conftest.i >conftest2.i
7484 lt_cv_truncate_bin=
7485 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7486 cmp -s conftest.i conftest.out \
7487 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7488 fi
7489 rm -f conftest.i conftest2.i conftest.out
7490 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
7491 esac
7492 fi
7493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7494 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7495
7496
7497
7498
7499
7500
7501
7502 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7503 func_cc_basename ()
7504 {
7505 for cc_temp in $*""; do
7506 case $cc_temp in
7507 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7508 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7509 \-*) ;;
7510 *) break;;
7511 esac
7512 done
7513 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7514 }
7515
7516 # Check whether --enable-libtool-lock was given.
7517 if test ${enable_libtool_lock+y}
7518 then :
7519 enableval=$enable_libtool_lock;
7520 fi
7521
7522 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7523
7524 # Some flags need to be propagated to the compiler or linker for good
7525 # libtool support.
7526 case $host in
7527 ia64-*-hpux*)
7528 # Find out what ABI is being produced by ac_compile, and set mode
7529 # options accordingly.
7530 echo 'int i;' > conftest.$ac_ext
7531 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7532 (eval $ac_compile) 2>&5
7533 ac_status=$?
7534 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7535 test $ac_status = 0; }; then
7536 case `$FILECMD conftest.$ac_objext` in
7537 *ELF-32*)
7538 HPUX_IA64_MODE=32
7539 ;;
7540 *ELF-64*)
7541 HPUX_IA64_MODE=64
7542 ;;
7543 esac
7544 fi
7545 rm -rf conftest*
7546 ;;
7547 *-*-irix6*)
7548 # Find out what ABI is being produced by ac_compile, and set linker
7549 # options accordingly.
7550 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7551 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7552 (eval $ac_compile) 2>&5
7553 ac_status=$?
7554 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7555 test $ac_status = 0; }; then
7556 if test yes = "$lt_cv_prog_gnu_ld"; then
7557 case `$FILECMD conftest.$ac_objext` in
7558 *32-bit*)
7559 LD="${LD-ld} -melf32bsmip"
7560 ;;
7561 *N32*)
7562 LD="${LD-ld} -melf32bmipn32"
7563 ;;
7564 *64-bit*)
7565 LD="${LD-ld} -melf64bmip"
7566 ;;
7567 esac
7568 else
7569 case `$FILECMD conftest.$ac_objext` in
7570 *32-bit*)
7571 LD="${LD-ld} -32"
7572 ;;
7573 *N32*)
7574 LD="${LD-ld} -n32"
7575 ;;
7576 *64-bit*)
7577 LD="${LD-ld} -64"
7578 ;;
7579 esac
7580 fi
7581 fi
7582 rm -rf conftest*
7583 ;;
7584
7585 mips64*-*linux*)
7586 # Find out what ABI is being produced by ac_compile, and set linker
7587 # options accordingly.
7588 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7589 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7590 (eval $ac_compile) 2>&5
7591 ac_status=$?
7592 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7593 test $ac_status = 0; }; then
7594 emul=elf
7595 case `$FILECMD conftest.$ac_objext` in
7596 *32-bit*)
7597 emul="${emul}32"
7598 ;;
7599 *64-bit*)
7600 emul="${emul}64"
7601 ;;
7602 esac
7603 case `$FILECMD conftest.$ac_objext` in
7604 *MSB*)
7605 emul="${emul}btsmip"
7606 ;;
7607 *LSB*)
7608 emul="${emul}ltsmip"
7609 ;;
7610 esac
7611 case `$FILECMD conftest.$ac_objext` in
7612 *N32*)
7613 emul="${emul}n32"
7614 ;;
7615 esac
7616 LD="${LD-ld} -m $emul"
7617 fi
7618 rm -rf conftest*
7619 ;;
7620
7621 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7622 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7623 # Find out what ABI is being produced by ac_compile, and set linker
7624 # options accordingly. Note that the listed cases only cover the
7625 # situations where additional linker options are needed (such as when
7626 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7627 # vice versa); the common cases where no linker options are needed do
7628 # not appear in the list.
7629 echo 'int i;' > conftest.$ac_ext
7630 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7631 (eval $ac_compile) 2>&5
7632 ac_status=$?
7633 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7634 test $ac_status = 0; }; then
7635 case `$FILECMD conftest.o` in
7636 *32-bit*)
7637 case $host in
7638 x86_64-*kfreebsd*-gnu)
7639 LD="${LD-ld} -m elf_i386_fbsd"
7640 ;;
7641 x86_64-*linux*)
7642 case `$FILECMD conftest.o` in
7643 *x86-64*)
7644 LD="${LD-ld} -m elf32_x86_64"
7645 ;;
7646 *)
7647 LD="${LD-ld} -m elf_i386"
7648 ;;
7649 esac
7650 ;;
7651 powerpc64le-*linux*)
7652 LD="${LD-ld} -m elf32lppclinux"
7653 ;;
7654 powerpc64-*linux*)
7655 LD="${LD-ld} -m elf32ppclinux"
7656 ;;
7657 s390x-*linux*)
7658 LD="${LD-ld} -m elf_s390"
7659 ;;
7660 sparc64-*linux*)
7661 LD="${LD-ld} -m elf32_sparc"
7662 ;;
7663 esac
7664 ;;
7665 *64-bit*)
7666 case $host in
7667 x86_64-*kfreebsd*-gnu)
7668 LD="${LD-ld} -m elf_x86_64_fbsd"
7669 ;;
7670 x86_64-*linux*)
7671 LD="${LD-ld} -m elf_x86_64"
7672 ;;
7673 powerpcle-*linux*)
7674 LD="${LD-ld} -m elf64lppc"
7675 ;;
7676 powerpc-*linux*)
7677 LD="${LD-ld} -m elf64ppc"
7678 ;;
7679 s390*-*linux*|s390*-*tpf*)
7680 LD="${LD-ld} -m elf64_s390"
7681 ;;
7682 sparc*-*linux*)
7683 LD="${LD-ld} -m elf64_sparc"
7684 ;;
7685 esac
7686 ;;
7687 esac
7688 fi
7689 rm -rf conftest*
7690 ;;
7691
7692 *-*-sco3.2v5*)
7693 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7694 SAVE_CFLAGS=$CFLAGS
7695 CFLAGS="$CFLAGS -belf"
7696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7697 printf %s "checking whether the C compiler needs -belf... " >&6; }
7698 if test ${lt_cv_cc_needs_belf+y}
7699 then :
7700 printf %s "(cached) " >&6
7701 else case e in #(
7702 e) ac_ext=c
7703 ac_cpp='$CPP $CPPFLAGS'
7704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7707
7708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7709 /* end confdefs.h. */
7710
7711 int
7712 main (void)
7713 {
7714
7715 ;
7716 return 0;
7717 }
7718 _ACEOF
7719 if ac_fn_c_try_link "$LINENO"
7720 then :
7721 lt_cv_cc_needs_belf=yes
7722 else case e in #(
7723 e) lt_cv_cc_needs_belf=no ;;
7724 esac
7725 fi
7726 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7727 conftest$ac_exeext conftest.$ac_ext
7728 ac_ext=c
7729 ac_cpp='$CPP $CPPFLAGS'
7730 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7731 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7732 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7733 ;;
7734 esac
7735 fi
7736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7737 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7738 if test yes != "$lt_cv_cc_needs_belf"; then
7739 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7740 CFLAGS=$SAVE_CFLAGS
7741 fi
7742 ;;
7743 *-*solaris*)
7744 # Find out what ABI is being produced by ac_compile, and set linker
7745 # options accordingly.
7746 echo 'int i;' > conftest.$ac_ext
7747 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7748 (eval $ac_compile) 2>&5
7749 ac_status=$?
7750 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7751 test $ac_status = 0; }; then
7752 case `$FILECMD conftest.o` in
7753 *64-bit*)
7754 case $lt_cv_prog_gnu_ld in
7755 yes*)
7756 case $host in
7757 i?86-*-solaris*|x86_64-*-solaris*)
7758 LD="${LD-ld} -m elf_x86_64"
7759 ;;
7760 sparc*-*-solaris*)
7761 LD="${LD-ld} -m elf64_sparc"
7762 ;;
7763 esac
7764 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7765 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7766 LD=${LD-ld}_sol2
7767 fi
7768 ;;
7769 *)
7770 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7771 LD="${LD-ld} -64"
7772 fi
7773 ;;
7774 esac
7775 ;;
7776 esac
7777 fi
7778 rm -rf conftest*
7779 ;;
7780 esac
7781
7782 need_locks=$enable_libtool_lock
7783
7784 if test -n "$ac_tool_prefix"; then
7785 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7786 set dummy ${ac_tool_prefix}mt; ac_word=$2
7787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7788 printf %s "checking for $ac_word... " >&6; }
7789 if test ${ac_cv_prog_MANIFEST_TOOL+y}
7790 then :
7791 printf %s "(cached) " >&6
7792 else case e in #(
7793 e) if test -n "$MANIFEST_TOOL"; then
7794 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7795 else
7796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7797 for as_dir in $PATH
7798 do
7799 IFS=$as_save_IFS
7800 case $as_dir in #(((
7801 '') as_dir=./ ;;
7802 */) ;;
7803 *) as_dir=$as_dir/ ;;
7804 esac
7805 for ac_exec_ext in '' $ac_executable_extensions; do
7806 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7807 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7808 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7809 break 2
7810 fi
7811 done
7812 done
7813 IFS=$as_save_IFS
7814
7815 fi ;;
7816 esac
7817 fi
7818 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7819 if test -n "$MANIFEST_TOOL"; then
7820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7821 printf "%s\n" "$MANIFEST_TOOL" >&6; }
7822 else
7823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7824 printf "%s\n" "no" >&6; }
7825 fi
7826
7827
7828 fi
7829 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7830 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7831 # Extract the first word of "mt", so it can be a program name with args.
7832 set dummy mt; ac_word=$2
7833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7834 printf %s "checking for $ac_word... " >&6; }
7835 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7836 then :
7837 printf %s "(cached) " >&6
7838 else case e in #(
7839 e) if test -n "$ac_ct_MANIFEST_TOOL"; then
7840 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7841 else
7842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7843 for as_dir in $PATH
7844 do
7845 IFS=$as_save_IFS
7846 case $as_dir in #(((
7847 '') as_dir=./ ;;
7848 */) ;;
7849 *) as_dir=$as_dir/ ;;
7850 esac
7851 for ac_exec_ext in '' $ac_executable_extensions; do
7852 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7853 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7854 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7855 break 2
7856 fi
7857 done
7858 done
7859 IFS=$as_save_IFS
7860
7861 fi ;;
7862 esac
7863 fi
7864 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7865 if test -n "$ac_ct_MANIFEST_TOOL"; then
7866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7867 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7868 else
7869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7870 printf "%s\n" "no" >&6; }
7871 fi
7872
7873 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7874 MANIFEST_TOOL=":"
7875 else
7876 case $cross_compiling:$ac_tool_warned in
7877 yes:)
7878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7879 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7880 ac_tool_warned=yes ;;
7881 esac
7882 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7883 fi
7884 else
7885 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7886 fi
7887
7888 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7890 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7891 if test ${lt_cv_path_mainfest_tool+y}
7892 then :
7893 printf %s "(cached) " >&6
7894 else case e in #(
7895 e) lt_cv_path_mainfest_tool=no
7896 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7897 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7898 cat conftest.err >&5
7899 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7900 lt_cv_path_mainfest_tool=yes
7901 fi
7902 rm -f conftest* ;;
7903 esac
7904 fi
7905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7906 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
7907 if test yes != "$lt_cv_path_mainfest_tool"; then
7908 MANIFEST_TOOL=:
7909 fi
7910
7911
7912
7913
7914
7915
7916 case $host_os in
7917 rhapsody* | darwin*)
7918 if test -n "$ac_tool_prefix"; then
7919 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7920 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7922 printf %s "checking for $ac_word... " >&6; }
7923 if test ${ac_cv_prog_DSYMUTIL+y}
7924 then :
7925 printf %s "(cached) " >&6
7926 else case e in #(
7927 e) if test -n "$DSYMUTIL"; then
7928 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7929 else
7930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7931 for as_dir in $PATH
7932 do
7933 IFS=$as_save_IFS
7934 case $as_dir in #(((
7935 '') as_dir=./ ;;
7936 */) ;;
7937 *) as_dir=$as_dir/ ;;
7938 esac
7939 for ac_exec_ext in '' $ac_executable_extensions; do
7940 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7941 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7942 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7943 break 2
7944 fi
7945 done
7946 done
7947 IFS=$as_save_IFS
7948
7949 fi ;;
7950 esac
7951 fi
7952 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7953 if test -n "$DSYMUTIL"; then
7954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7955 printf "%s\n" "$DSYMUTIL" >&6; }
7956 else
7957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7958 printf "%s\n" "no" >&6; }
7959 fi
7960
7961
7962 fi
7963 if test -z "$ac_cv_prog_DSYMUTIL"; then
7964 ac_ct_DSYMUTIL=$DSYMUTIL
7965 # Extract the first word of "dsymutil", so it can be a program name with args.
7966 set dummy dsymutil; ac_word=$2
7967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7968 printf %s "checking for $ac_word... " >&6; }
7969 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
7970 then :
7971 printf %s "(cached) " >&6
7972 else case e in #(
7973 e) if test -n "$ac_ct_DSYMUTIL"; then
7974 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7975 else
7976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7977 for as_dir in $PATH
7978 do
7979 IFS=$as_save_IFS
7980 case $as_dir in #(((
7981 '') as_dir=./ ;;
7982 */) ;;
7983 *) as_dir=$as_dir/ ;;
7984 esac
7985 for ac_exec_ext in '' $ac_executable_extensions; do
7986 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7987 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7988 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7989 break 2
7990 fi
7991 done
7992 done
7993 IFS=$as_save_IFS
7994
7995 fi ;;
7996 esac
7997 fi
7998 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7999 if test -n "$ac_ct_DSYMUTIL"; then
8000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8001 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8002 else
8003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8004 printf "%s\n" "no" >&6; }
8005 fi
8006
8007 if test "x$ac_ct_DSYMUTIL" = x; then
8008 DSYMUTIL=":"
8009 else
8010 case $cross_compiling:$ac_tool_warned in
8011 yes:)
8012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8013 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8014 ac_tool_warned=yes ;;
8015 esac
8016 DSYMUTIL=$ac_ct_DSYMUTIL
8017 fi
8018 else
8019 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8020 fi
8021
8022 if test -n "$ac_tool_prefix"; then
8023 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8024 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8026 printf %s "checking for $ac_word... " >&6; }
8027 if test ${ac_cv_prog_NMEDIT+y}
8028 then :
8029 printf %s "(cached) " >&6
8030 else case e in #(
8031 e) if test -n "$NMEDIT"; then
8032 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8033 else
8034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8035 for as_dir in $PATH
8036 do
8037 IFS=$as_save_IFS
8038 case $as_dir in #(((
8039 '') as_dir=./ ;;
8040 */) ;;
8041 *) as_dir=$as_dir/ ;;
8042 esac
8043 for ac_exec_ext in '' $ac_executable_extensions; do
8044 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8045 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8046 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8047 break 2
8048 fi
8049 done
8050 done
8051 IFS=$as_save_IFS
8052
8053 fi ;;
8054 esac
8055 fi
8056 NMEDIT=$ac_cv_prog_NMEDIT
8057 if test -n "$NMEDIT"; then
8058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8059 printf "%s\n" "$NMEDIT" >&6; }
8060 else
8061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8062 printf "%s\n" "no" >&6; }
8063 fi
8064
8065
8066 fi
8067 if test -z "$ac_cv_prog_NMEDIT"; then
8068 ac_ct_NMEDIT=$NMEDIT
8069 # Extract the first word of "nmedit", so it can be a program name with args.
8070 set dummy nmedit; ac_word=$2
8071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8072 printf %s "checking for $ac_word... " >&6; }
8073 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8074 then :
8075 printf %s "(cached) " >&6
8076 else case e in #(
8077 e) if test -n "$ac_ct_NMEDIT"; then
8078 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8079 else
8080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8081 for as_dir in $PATH
8082 do
8083 IFS=$as_save_IFS
8084 case $as_dir in #(((
8085 '') as_dir=./ ;;
8086 */) ;;
8087 *) as_dir=$as_dir/ ;;
8088 esac
8089 for ac_exec_ext in '' $ac_executable_extensions; do
8090 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8091 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8092 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8093 break 2
8094 fi
8095 done
8096 done
8097 IFS=$as_save_IFS
8098
8099 fi ;;
8100 esac
8101 fi
8102 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8103 if test -n "$ac_ct_NMEDIT"; then
8104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8105 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8106 else
8107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8108 printf "%s\n" "no" >&6; }
8109 fi
8110
8111 if test "x$ac_ct_NMEDIT" = x; then
8112 NMEDIT=":"
8113 else
8114 case $cross_compiling:$ac_tool_warned in
8115 yes:)
8116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8117 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8118 ac_tool_warned=yes ;;
8119 esac
8120 NMEDIT=$ac_ct_NMEDIT
8121 fi
8122 else
8123 NMEDIT="$ac_cv_prog_NMEDIT"
8124 fi
8125
8126 if test -n "$ac_tool_prefix"; then
8127 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8128 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8130 printf %s "checking for $ac_word... " >&6; }
8131 if test ${ac_cv_prog_LIPO+y}
8132 then :
8133 printf %s "(cached) " >&6
8134 else case e in #(
8135 e) if test -n "$LIPO"; then
8136 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8137 else
8138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8139 for as_dir in $PATH
8140 do
8141 IFS=$as_save_IFS
8142 case $as_dir in #(((
8143 '') as_dir=./ ;;
8144 */) ;;
8145 *) as_dir=$as_dir/ ;;
8146 esac
8147 for ac_exec_ext in '' $ac_executable_extensions; do
8148 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8149 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8150 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8151 break 2
8152 fi
8153 done
8154 done
8155 IFS=$as_save_IFS
8156
8157 fi ;;
8158 esac
8159 fi
8160 LIPO=$ac_cv_prog_LIPO
8161 if test -n "$LIPO"; then
8162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8163 printf "%s\n" "$LIPO" >&6; }
8164 else
8165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8166 printf "%s\n" "no" >&6; }
8167 fi
8168
8169
8170 fi
8171 if test -z "$ac_cv_prog_LIPO"; then
8172 ac_ct_LIPO=$LIPO
8173 # Extract the first word of "lipo", so it can be a program name with args.
8174 set dummy lipo; ac_word=$2
8175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8176 printf %s "checking for $ac_word... " >&6; }
8177 if test ${ac_cv_prog_ac_ct_LIPO+y}
8178 then :
8179 printf %s "(cached) " >&6
8180 else case e in #(
8181 e) if test -n "$ac_ct_LIPO"; then
8182 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8183 else
8184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8185 for as_dir in $PATH
8186 do
8187 IFS=$as_save_IFS
8188 case $as_dir in #(((
8189 '') as_dir=./ ;;
8190 */) ;;
8191 *) as_dir=$as_dir/ ;;
8192 esac
8193 for ac_exec_ext in '' $ac_executable_extensions; do
8194 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8195 ac_cv_prog_ac_ct_LIPO="lipo"
8196 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8197 break 2
8198 fi
8199 done
8200 done
8201 IFS=$as_save_IFS
8202
8203 fi ;;
8204 esac
8205 fi
8206 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8207 if test -n "$ac_ct_LIPO"; then
8208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8209 printf "%s\n" "$ac_ct_LIPO" >&6; }
8210 else
8211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8212 printf "%s\n" "no" >&6; }
8213 fi
8214
8215 if test "x$ac_ct_LIPO" = x; then
8216 LIPO=":"
8217 else
8218 case $cross_compiling:$ac_tool_warned in
8219 yes:)
8220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8221 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8222 ac_tool_warned=yes ;;
8223 esac
8224 LIPO=$ac_ct_LIPO
8225 fi
8226 else
8227 LIPO="$ac_cv_prog_LIPO"
8228 fi
8229
8230 if test -n "$ac_tool_prefix"; then
8231 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8232 set dummy ${ac_tool_prefix}otool; ac_word=$2
8233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8234 printf %s "checking for $ac_word... " >&6; }
8235 if test ${ac_cv_prog_OTOOL+y}
8236 then :
8237 printf %s "(cached) " >&6
8238 else case e in #(
8239 e) if test -n "$OTOOL"; then
8240 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8241 else
8242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8243 for as_dir in $PATH
8244 do
8245 IFS=$as_save_IFS
8246 case $as_dir in #(((
8247 '') as_dir=./ ;;
8248 */) ;;
8249 *) as_dir=$as_dir/ ;;
8250 esac
8251 for ac_exec_ext in '' $ac_executable_extensions; do
8252 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8253 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8254 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8255 break 2
8256 fi
8257 done
8258 done
8259 IFS=$as_save_IFS
8260
8261 fi ;;
8262 esac
8263 fi
8264 OTOOL=$ac_cv_prog_OTOOL
8265 if test -n "$OTOOL"; then
8266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8267 printf "%s\n" "$OTOOL" >&6; }
8268 else
8269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8270 printf "%s\n" "no" >&6; }
8271 fi
8272
8273
8274 fi
8275 if test -z "$ac_cv_prog_OTOOL"; then
8276 ac_ct_OTOOL=$OTOOL
8277 # Extract the first word of "otool", so it can be a program name with args.
8278 set dummy otool; ac_word=$2
8279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8280 printf %s "checking for $ac_word... " >&6; }
8281 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8282 then :
8283 printf %s "(cached) " >&6
8284 else case e in #(
8285 e) if test -n "$ac_ct_OTOOL"; then
8286 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8287 else
8288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8289 for as_dir in $PATH
8290 do
8291 IFS=$as_save_IFS
8292 case $as_dir in #(((
8293 '') as_dir=./ ;;
8294 */) ;;
8295 *) as_dir=$as_dir/ ;;
8296 esac
8297 for ac_exec_ext in '' $ac_executable_extensions; do
8298 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8299 ac_cv_prog_ac_ct_OTOOL="otool"
8300 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8301 break 2
8302 fi
8303 done
8304 done
8305 IFS=$as_save_IFS
8306
8307 fi ;;
8308 esac
8309 fi
8310 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8311 if test -n "$ac_ct_OTOOL"; then
8312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8313 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8314 else
8315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8316 printf "%s\n" "no" >&6; }
8317 fi
8318
8319 if test "x$ac_ct_OTOOL" = x; then
8320 OTOOL=":"
8321 else
8322 case $cross_compiling:$ac_tool_warned in
8323 yes:)
8324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8325 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8326 ac_tool_warned=yes ;;
8327 esac
8328 OTOOL=$ac_ct_OTOOL
8329 fi
8330 else
8331 OTOOL="$ac_cv_prog_OTOOL"
8332 fi
8333
8334 if test -n "$ac_tool_prefix"; then
8335 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8336 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8338 printf %s "checking for $ac_word... " >&6; }
8339 if test ${ac_cv_prog_OTOOL64+y}
8340 then :
8341 printf %s "(cached) " >&6
8342 else case e in #(
8343 e) if test -n "$OTOOL64"; then
8344 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8345 else
8346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8347 for as_dir in $PATH
8348 do
8349 IFS=$as_save_IFS
8350 case $as_dir in #(((
8351 '') as_dir=./ ;;
8352 */) ;;
8353 *) as_dir=$as_dir/ ;;
8354 esac
8355 for ac_exec_ext in '' $ac_executable_extensions; do
8356 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8357 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8358 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8359 break 2
8360 fi
8361 done
8362 done
8363 IFS=$as_save_IFS
8364
8365 fi ;;
8366 esac
8367 fi
8368 OTOOL64=$ac_cv_prog_OTOOL64
8369 if test -n "$OTOOL64"; then
8370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8371 printf "%s\n" "$OTOOL64" >&6; }
8372 else
8373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8374 printf "%s\n" "no" >&6; }
8375 fi
8376
8377
8378 fi
8379 if test -z "$ac_cv_prog_OTOOL64"; then
8380 ac_ct_OTOOL64=$OTOOL64
8381 # Extract the first word of "otool64", so it can be a program name with args.
8382 set dummy otool64; ac_word=$2
8383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8384 printf %s "checking for $ac_word... " >&6; }
8385 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8386 then :
8387 printf %s "(cached) " >&6
8388 else case e in #(
8389 e) if test -n "$ac_ct_OTOOL64"; then
8390 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8391 else
8392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8393 for as_dir in $PATH
8394 do
8395 IFS=$as_save_IFS
8396 case $as_dir in #(((
8397 '') as_dir=./ ;;
8398 */) ;;
8399 *) as_dir=$as_dir/ ;;
8400 esac
8401 for ac_exec_ext in '' $ac_executable_extensions; do
8402 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8403 ac_cv_prog_ac_ct_OTOOL64="otool64"
8404 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8405 break 2
8406 fi
8407 done
8408 done
8409 IFS=$as_save_IFS
8410
8411 fi ;;
8412 esac
8413 fi
8414 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8415 if test -n "$ac_ct_OTOOL64"; then
8416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8417 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8418 else
8419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8420 printf "%s\n" "no" >&6; }
8421 fi
8422
8423 if test "x$ac_ct_OTOOL64" = x; then
8424 OTOOL64=":"
8425 else
8426 case $cross_compiling:$ac_tool_warned in
8427 yes:)
8428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8429 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8430 ac_tool_warned=yes ;;
8431 esac
8432 OTOOL64=$ac_ct_OTOOL64
8433 fi
8434 else
8435 OTOOL64="$ac_cv_prog_OTOOL64"
8436 fi
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8465 printf %s "checking for -single_module linker flag... " >&6; }
8466 if test ${lt_cv_apple_cc_single_mod+y}
8467 then :
8468 printf %s "(cached) " >&6
8469 else case e in #(
8470 e) lt_cv_apple_cc_single_mod=no
8471 if test -z "$LT_MULTI_MODULE"; then
8472 # By default we will add the -single_module flag. You can override
8473 # by either setting the environment variable LT_MULTI_MODULE
8474 # non-empty at configure time, or by adding -multi_module to the
8475 # link flags.
8476 rm -rf libconftest.dylib*
8477 echo "int foo(void){return 1;}" > conftest.c
8478 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8479 -dynamiclib -Wl,-single_module conftest.c" >&5
8480 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8481 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8482 _lt_result=$?
8483 # If there is a non-empty error log, and "single_module"
8484 # appears in it, assume the flag caused a linker warning
8485 if test -s conftest.err && $GREP single_module conftest.err; then
8486 cat conftest.err >&5
8487 # Otherwise, if the output was created with a 0 exit code from
8488 # the compiler, it worked.
8489 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8490 lt_cv_apple_cc_single_mod=yes
8491 else
8492 cat conftest.err >&5
8493 fi
8494 rm -rf libconftest.dylib*
8495 rm -f conftest.*
8496 fi ;;
8497 esac
8498 fi
8499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8500 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8501
8502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8503 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8504 if test ${lt_cv_ld_exported_symbols_list+y}
8505 then :
8506 printf %s "(cached) " >&6
8507 else case e in #(
8508 e) lt_cv_ld_exported_symbols_list=no
8509 save_LDFLAGS=$LDFLAGS
8510 echo "_main" > conftest.sym
8511 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8513 /* end confdefs.h. */
8514
8515 int
8516 main (void)
8517 {
8518
8519 ;
8520 return 0;
8521 }
8522 _ACEOF
8523 if ac_fn_c_try_link "$LINENO"
8524 then :
8525 lt_cv_ld_exported_symbols_list=yes
8526 else case e in #(
8527 e) lt_cv_ld_exported_symbols_list=no ;;
8528 esac
8529 fi
8530 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8531 conftest$ac_exeext conftest.$ac_ext
8532 LDFLAGS=$save_LDFLAGS
8533 ;;
8534 esac
8535 fi
8536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8537 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8538
8539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8540 printf %s "checking for -force_load linker flag... " >&6; }
8541 if test ${lt_cv_ld_force_load+y}
8542 then :
8543 printf %s "(cached) " >&6
8544 else case e in #(
8545 e) lt_cv_ld_force_load=no
8546 cat > conftest.c << _LT_EOF
8547 int forced_loaded() { return 2;}
8548 _LT_EOF
8549 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8550 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8551 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8552 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8553 echo "$RANLIB libconftest.a" >&5
8554 $RANLIB libconftest.a 2>&5
8555 cat > conftest.c << _LT_EOF
8556 int main() { return 0;}
8557 _LT_EOF
8558 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8559 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8560 _lt_result=$?
8561 if test -s conftest.err && $GREP force_load conftest.err; then
8562 cat conftest.err >&5
8563 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8564 lt_cv_ld_force_load=yes
8565 else
8566 cat conftest.err >&5
8567 fi
8568 rm -f conftest.err libconftest.a conftest conftest.c
8569 rm -rf conftest.dSYM
8570 ;;
8571 esac
8572 fi
8573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8574 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8575 case $host_os in
8576 rhapsody* | darwin1.[012])
8577 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8578 darwin1.*)
8579 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8580 darwin*)
8581 case $MACOSX_DEPLOYMENT_TARGET,$host in
8582 10.[012],*|,*powerpc*-darwin[5-8]*)
8583 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8584 *)
8585 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8586 esac
8587 ;;
8588 esac
8589 if test yes = "$lt_cv_apple_cc_single_mod"; then
8590 _lt_dar_single_mod='$single_module'
8591 fi
8592 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8593 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8594 else
8595 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8596 fi
8597 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8598 _lt_dsymutil='~$DSYMUTIL $lib || :'
8599 else
8600 _lt_dsymutil=
8601 fi
8602 ;;
8603 esac
8604
8605 # func_munge_path_list VARIABLE PATH
8606 # -----------------------------------
8607 # VARIABLE is name of variable containing _space_ separated list of
8608 # directories to be munged by the contents of PATH, which is string
8609 # having a format:
8610 # "DIR[:DIR]:"
8611 # string "DIR[ DIR]" will be prepended to VARIABLE
8612 # ":DIR[:DIR]"
8613 # string "DIR[ DIR]" will be appended to VARIABLE
8614 # "DIRP[:DIRP]::[DIRA:]DIRA"
8615 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8616 # "DIRA[ DIRA]" will be appended to VARIABLE
8617 # "DIR[:DIR]"
8618 # VARIABLE will be replaced by "DIR[ DIR]"
8619 func_munge_path_list ()
8620 {
8621 case x$2 in
8622 x)
8623 ;;
8624 *:)
8625 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8626 ;;
8627 x:*)
8628 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8629 ;;
8630 *::*)
8631 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8632 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8633 ;;
8634 *)
8635 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8636 ;;
8637 esac
8638 }
8639
8640 ac_header= ac_cache=
8641 for ac_item in $ac_header_c_list
8642 do
8643 if test $ac_cache; then
8644 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
8645 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
8646 printf "%s\n" "#define $ac_item 1" >> confdefs.h
8647 fi
8648 ac_header= ac_cache=
8649 elif test $ac_header; then
8650 ac_cache=$ac_item
8651 else
8652 ac_header=$ac_item
8653 fi
8654 done
8655
8656
8657
8658
8659
8660
8661
8662
8663 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
8664 then :
8665
8666 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
8667
8668 fi
8669 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8670 "
8671 if test "x$ac_cv_header_dlfcn_h" = xyes
8672 then :
8673 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8674
8675 fi
8676
8677
8678
8679
8680
8681 # Set options
8682
8683
8684
8685 enable_dlopen=no
8686
8687
8688 enable_win32_dll=no
8689
8690
8691 # Check whether --enable-shared was given.
8692 if test ${enable_shared+y}
8693 then :
8694 enableval=$enable_shared; p=${PACKAGE-default}
8695 case $enableval in
8696 yes) enable_shared=yes ;;
8697 no) enable_shared=no ;;
8698 *)
8699 enable_shared=no
8700 # Look at the argument we got. We use all the common list separators.
8701 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8702 for pkg in $enableval; do
8703 IFS=$lt_save_ifs
8704 if test "X$pkg" = "X$p"; then
8705 enable_shared=yes
8706 fi
8707 done
8708 IFS=$lt_save_ifs
8709 ;;
8710 esac
8711 else case e in #(
8712 e) enable_shared=yes ;;
8713 esac
8714 fi
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724 # Check whether --enable-static was given.
8725 if test ${enable_static+y}
8726 then :
8727 enableval=$enable_static; p=${PACKAGE-default}
8728 case $enableval in
8729 yes) enable_static=yes ;;
8730 no) enable_static=no ;;
8731 *)
8732 enable_static=no
8733 # Look at the argument we got. We use all the common list separators.
8734 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8735 for pkg in $enableval; do
8736 IFS=$lt_save_ifs
8737 if test "X$pkg" = "X$p"; then
8738 enable_static=yes
8739 fi
8740 done
8741 IFS=$lt_save_ifs
8742 ;;
8743 esac
8744 else case e in #(
8745 e) enable_static=yes ;;
8746 esac
8747 fi
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758 # Check whether --with-pic was given.
8759 if test ${with_pic+y}
8760 then :
8761 withval=$with_pic; lt_p=${PACKAGE-default}
8762 case $withval in
8763 yes|no) pic_mode=$withval ;;
8764 *)
8765 pic_mode=default
8766 # Look at the argument we got. We use all the common list separators.
8767 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8768 for lt_pkg in $withval; do
8769 IFS=$lt_save_ifs
8770 if test "X$lt_pkg" = "X$lt_p"; then
8771 pic_mode=yes
8772 fi
8773 done
8774 IFS=$lt_save_ifs
8775 ;;
8776 esac
8777 else case e in #(
8778 e) pic_mode=default ;;
8779 esac
8780 fi
8781
8782
8783
8784
8785
8786
8787
8788
8789 # Check whether --enable-fast-install was given.
8790 if test ${enable_fast_install+y}
8791 then :
8792 enableval=$enable_fast_install; p=${PACKAGE-default}
8793 case $enableval in
8794 yes) enable_fast_install=yes ;;
8795 no) enable_fast_install=no ;;
8796 *)
8797 enable_fast_install=no
8798 # Look at the argument we got. We use all the common list separators.
8799 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8800 for pkg in $enableval; do
8801 IFS=$lt_save_ifs
8802 if test "X$pkg" = "X$p"; then
8803 enable_fast_install=yes
8804 fi
8805 done
8806 IFS=$lt_save_ifs
8807 ;;
8808 esac
8809 else case e in #(
8810 e) enable_fast_install=yes ;;
8811 esac
8812 fi
8813
8814
8815
8816
8817
8818
8819
8820
8821 shared_archive_member_spec=
8822 case $host,$enable_shared in
8823 power*-*-aix[5-9]*,yes)
8824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8825 printf %s "checking which variant of shared library versioning to provide... " >&6; }
8826
8827 # Check whether --with-aix-soname was given.
8828 if test ${with_aix_soname+y}
8829 then :
8830 withval=$with_aix_soname; case $withval in
8831 aix|svr4|both)
8832 ;;
8833 *)
8834 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8835 ;;
8836 esac
8837 lt_cv_with_aix_soname=$with_aix_soname
8838 else case e in #(
8839 e) if test ${lt_cv_with_aix_soname+y}
8840 then :
8841 printf %s "(cached) " >&6
8842 else case e in #(
8843 e) lt_cv_with_aix_soname=aix ;;
8844 esac
8845 fi
8846
8847 with_aix_soname=$lt_cv_with_aix_soname ;;
8848 esac
8849 fi
8850
8851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8852 printf "%s\n" "$with_aix_soname" >&6; }
8853 if test aix != "$with_aix_soname"; then
8854 # For the AIX way of multilib, we name the shared archive member
8855 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8856 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8857 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8858 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8859 if test 64 = "${OBJECT_MODE-32}"; then
8860 shared_archive_member_spec=shr_64
8861 else
8862 shared_archive_member_spec=shr
8863 fi
8864 fi
8865 ;;
8866 *)
8867 with_aix_soname=aix
8868 ;;
8869 esac
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880 # This can be used to rebuild libtool when needed
8881 LIBTOOL_DEPS=$ltmain
8882
8883 # Always use our own libtool.
8884 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915 test -z "$LN_S" && LN_S="ln -s"
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930 if test -n "${ZSH_VERSION+set}"; then
8931 setopt NO_GLOB_SUBST
8932 fi
8933
8934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8935 printf %s "checking for objdir... " >&6; }
8936 if test ${lt_cv_objdir+y}
8937 then :
8938 printf %s "(cached) " >&6
8939 else case e in #(
8940 e) rm -f .libs 2>/dev/null
8941 mkdir .libs 2>/dev/null
8942 if test -d .libs; then
8943 lt_cv_objdir=.libs
8944 else
8945 # MS-DOS does not allow filenames that begin with a dot.
8946 lt_cv_objdir=_libs
8947 fi
8948 rmdir .libs 2>/dev/null ;;
8949 esac
8950 fi
8951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8952 printf "%s\n" "$lt_cv_objdir" >&6; }
8953 objdir=$lt_cv_objdir
8954
8955
8956
8957
8958
8959 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
8960
8961
8962
8963
8964 case $host_os in
8965 aix3*)
8966 # AIX sometimes has problems with the GCC collect2 program. For some
8967 # reason, if we set the COLLECT_NAMES environment variable, the problems
8968 # vanish in a puff of smoke.
8969 if test set != "${COLLECT_NAMES+set}"; then
8970 COLLECT_NAMES=
8971 export COLLECT_NAMES
8972 fi
8973 ;;
8974 esac
8975
8976 # Global variables:
8977 ofile=libtool
8978 can_build_shared=yes
8979
8980 # All known linkers require a '.a' archive for static linking (except MSVC and
8981 # ICC, which need '.lib').
8982 libext=a
8983
8984 with_gnu_ld=$lt_cv_prog_gnu_ld
8985
8986 old_CC=$CC
8987 old_CFLAGS=$CFLAGS
8988
8989 # Set sane defaults for various variables
8990 test -z "$CC" && CC=cc
8991 test -z "$LTCC" && LTCC=$CC
8992 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8993 test -z "$LD" && LD=ld
8994 test -z "$ac_objext" && ac_objext=o
8995
8996 func_cc_basename $compiler
8997 cc_basename=$func_cc_basename_result
8998
8999
9000 # Only perform the check for file, if the check method requires it
9001 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9002 case $deplibs_check_method in
9003 file_magic*)
9004 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9006 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9007 if test ${lt_cv_path_MAGIC_CMD+y}
9008 then :
9009 printf %s "(cached) " >&6
9010 else case e in #(
9011 e) case $MAGIC_CMD in
9012 [\\/*] | ?:[\\/]*)
9013 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9014 ;;
9015 *)
9016 lt_save_MAGIC_CMD=$MAGIC_CMD
9017 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9018 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9019 for ac_dir in $ac_dummy; do
9020 IFS=$lt_save_ifs
9021 test -z "$ac_dir" && ac_dir=.
9022 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9023 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9024 if test -n "$file_magic_test_file"; then
9025 case $deplibs_check_method in
9026 "file_magic "*)
9027 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9028 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9029 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9030 $EGREP "$file_magic_regex" > /dev/null; then
9031 :
9032 else
9033 cat <<_LT_EOF 1>&2
9034
9035 *** Warning: the command libtool uses to detect shared libraries,
9036 *** $file_magic_cmd, produces output that libtool cannot recognize.
9037 *** The result is that libtool may fail to recognize shared libraries
9038 *** as such. This will affect the creation of libtool libraries that
9039 *** depend on shared libraries, but programs linked with such libtool
9040 *** libraries will work regardless of this problem. Nevertheless, you
9041 *** may want to report the problem to your system manager and/or to
9042 *** bug-libtool@gnu.org
9043
9044 _LT_EOF
9045 fi ;;
9046 esac
9047 fi
9048 break
9049 fi
9050 done
9051 IFS=$lt_save_ifs
9052 MAGIC_CMD=$lt_save_MAGIC_CMD
9053 ;;
9054 esac ;;
9055 esac
9056 fi
9057
9058 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9059 if test -n "$MAGIC_CMD"; then
9060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9061 printf "%s\n" "$MAGIC_CMD" >&6; }
9062 else
9063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9064 printf "%s\n" "no" >&6; }
9065 fi
9066
9067
9068
9069
9070
9071 if test -z "$lt_cv_path_MAGIC_CMD"; then
9072 if test -n "$ac_tool_prefix"; then
9073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9074 printf %s "checking for file... " >&6; }
9075 if test ${lt_cv_path_MAGIC_CMD+y}
9076 then :
9077 printf %s "(cached) " >&6
9078 else case e in #(
9079 e) case $MAGIC_CMD in
9080 [\\/*] | ?:[\\/]*)
9081 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9082 ;;
9083 *)
9084 lt_save_MAGIC_CMD=$MAGIC_CMD
9085 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9086 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9087 for ac_dir in $ac_dummy; do
9088 IFS=$lt_save_ifs
9089 test -z "$ac_dir" && ac_dir=.
9090 if test -f "$ac_dir/file"; then
9091 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9092 if test -n "$file_magic_test_file"; then
9093 case $deplibs_check_method in
9094 "file_magic "*)
9095 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9096 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9097 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9098 $EGREP "$file_magic_regex" > /dev/null; then
9099 :
9100 else
9101 cat <<_LT_EOF 1>&2
9102
9103 *** Warning: the command libtool uses to detect shared libraries,
9104 *** $file_magic_cmd, produces output that libtool cannot recognize.
9105 *** The result is that libtool may fail to recognize shared libraries
9106 *** as such. This will affect the creation of libtool libraries that
9107 *** depend on shared libraries, but programs linked with such libtool
9108 *** libraries will work regardless of this problem. Nevertheless, you
9109 *** may want to report the problem to your system manager and/or to
9110 *** bug-libtool@gnu.org
9111
9112 _LT_EOF
9113 fi ;;
9114 esac
9115 fi
9116 break
9117 fi
9118 done
9119 IFS=$lt_save_ifs
9120 MAGIC_CMD=$lt_save_MAGIC_CMD
9121 ;;
9122 esac ;;
9123 esac
9124 fi
9125
9126 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9127 if test -n "$MAGIC_CMD"; then
9128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9129 printf "%s\n" "$MAGIC_CMD" >&6; }
9130 else
9131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9132 printf "%s\n" "no" >&6; }
9133 fi
9134
9135
9136 else
9137 MAGIC_CMD=:
9138 fi
9139 fi
9140
9141 fi
9142 ;;
9143 esac
9144
9145 # Use C for the default configuration in the libtool script
9146
9147 lt_save_CC=$CC
9148 ac_ext=c
9149 ac_cpp='$CPP $CPPFLAGS'
9150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9153
9154
9155 # Source file extension for C test sources.
9156 ac_ext=c
9157
9158 # Object file extension for compiled C test sources.
9159 objext=o
9160 objext=$objext
9161
9162 # Code to be used in simple compile tests
9163 lt_simple_compile_test_code="int some_variable = 0;"
9164
9165 # Code to be used in simple link tests
9166 lt_simple_link_test_code='int main(){return(0);}'
9167
9168
9169
9170
9171
9172
9173
9174 # If no C compiler was specified, use CC.
9175 LTCC=${LTCC-"$CC"}
9176
9177 # If no C compiler flags were specified, use CFLAGS.
9178 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9179
9180 # Allow CC to be a program name with arguments.
9181 compiler=$CC
9182
9183 # Save the default compiler, since it gets overwritten when the other
9184 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9185 compiler_DEFAULT=$CC
9186
9187 # save warnings/boilerplate of simple test code
9188 ac_outfile=conftest.$ac_objext
9189 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9190 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9191 _lt_compiler_boilerplate=`cat conftest.err`
9192 $RM conftest*
9193
9194 ac_outfile=conftest.$ac_objext
9195 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9196 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9197 _lt_linker_boilerplate=`cat conftest.err`
9198 $RM -r conftest*
9199
9200
9201 ## CAVEAT EMPTOR:
9202 ## There is no encapsulation within the following macros, do not change
9203 ## the running order or otherwise move them around unless you know exactly
9204 ## what you are doing...
9205 if test -n "$compiler"; then
9206
9207 lt_prog_compiler_no_builtin_flag=
9208
9209 if test yes = "$GCC"; then
9210 case $cc_basename in
9211 nvcc*)
9212 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9213 *)
9214 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9215 esac
9216
9217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9218 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9219 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9220 then :
9221 printf %s "(cached) " >&6
9222 else case e in #(
9223 e) lt_cv_prog_compiler_rtti_exceptions=no
9224 ac_outfile=conftest.$ac_objext
9225 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9226 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9227 # Insert the option either (1) after the last *FLAGS variable, or
9228 # (2) before a word containing "conftest.", or (3) at the end.
9229 # Note that $ac_compile itself does not contain backslashes and begins
9230 # with a dollar sign (not a hyphen), so the echo should work correctly.
9231 # The option is referenced via a variable to avoid confusing sed.
9232 lt_compile=`echo "$ac_compile" | $SED \
9233 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9234 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9235 -e 's:$: $lt_compiler_flag:'`
9236 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9237 (eval "$lt_compile" 2>conftest.err)
9238 ac_status=$?
9239 cat conftest.err >&5
9240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9241 if (exit $ac_status) && test -s "$ac_outfile"; then
9242 # The compiler can only warn and ignore the option if not recognized
9243 # So say no if there are warnings other than the usual output.
9244 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9245 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9246 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9247 lt_cv_prog_compiler_rtti_exceptions=yes
9248 fi
9249 fi
9250 $RM conftest*
9251 ;;
9252 esac
9253 fi
9254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9255 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9256
9257 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9258 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9259 else
9260 :
9261 fi
9262
9263 fi
9264
9265
9266
9267
9268
9269
9270 lt_prog_compiler_wl=
9271 lt_prog_compiler_pic=
9272 lt_prog_compiler_static=
9273
9274
9275 if test yes = "$GCC"; then
9276 lt_prog_compiler_wl='-Wl,'
9277 lt_prog_compiler_static='-static'
9278
9279 case $host_os in
9280 aix*)
9281 # All AIX code is PIC.
9282 if test ia64 = "$host_cpu"; then
9283 # AIX 5 now supports IA64 processor
9284 lt_prog_compiler_static='-Bstatic'
9285 fi
9286 lt_prog_compiler_pic='-fPIC'
9287 ;;
9288
9289 amigaos*)
9290 case $host_cpu in
9291 powerpc)
9292 # see comment about AmigaOS4 .so support
9293 lt_prog_compiler_pic='-fPIC'
9294 ;;
9295 m68k)
9296 # FIXME: we need at least 68020 code to build shared libraries, but
9297 # adding the '-m68020' flag to GCC prevents building anything better,
9298 # like '-m68040'.
9299 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9300 ;;
9301 esac
9302 ;;
9303
9304 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9305 # PIC is the default for these OSes.
9306 ;;
9307
9308 mingw* | cygwin* | pw32* | os2* | cegcc*)
9309 # This hack is so that the source file can tell whether it is being
9310 # built for inclusion in a dll (and should export symbols for example).
9311 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9312 # (--disable-auto-import) libraries
9313 lt_prog_compiler_pic='-DDLL_EXPORT'
9314 case $host_os in
9315 os2*)
9316 lt_prog_compiler_static='$wl-static'
9317 ;;
9318 esac
9319 ;;
9320
9321 darwin* | rhapsody*)
9322 # PIC is the default on this platform
9323 # Common symbols not allowed in MH_DYLIB files
9324 lt_prog_compiler_pic='-fno-common'
9325 ;;
9326
9327 haiku*)
9328 # PIC is the default for Haiku.
9329 # The "-static" flag exists, but is broken.
9330 lt_prog_compiler_static=
9331 ;;
9332
9333 hpux*)
9334 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9335 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9336 # sets the default TLS model and affects inlining.
9337 case $host_cpu in
9338 hppa*64*)
9339 # +Z the default
9340 ;;
9341 *)
9342 lt_prog_compiler_pic='-fPIC'
9343 ;;
9344 esac
9345 ;;
9346
9347 interix[3-9]*)
9348 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9349 # Instead, we relocate shared libraries at runtime.
9350 ;;
9351
9352 msdosdjgpp*)
9353 # Just because we use GCC doesn't mean we suddenly get shared libraries
9354 # on systems that don't support them.
9355 lt_prog_compiler_can_build_shared=no
9356 enable_shared=no
9357 ;;
9358
9359 *nto* | *qnx*)
9360 # QNX uses GNU C++, but need to define -shared option too, otherwise
9361 # it will coredump.
9362 lt_prog_compiler_pic='-fPIC -shared'
9363 ;;
9364
9365 sysv4*MP*)
9366 if test -d /usr/nec; then
9367 lt_prog_compiler_pic=-Kconform_pic
9368 fi
9369 ;;
9370
9371 *)
9372 lt_prog_compiler_pic='-fPIC'
9373 ;;
9374 esac
9375
9376 case $cc_basename in
9377 nvcc*) # Cuda Compiler Driver 2.2
9378 lt_prog_compiler_wl='-Xlinker '
9379 if test -n "$lt_prog_compiler_pic"; then
9380 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9381 fi
9382 ;;
9383 esac
9384 else
9385 # PORTME Check for flag to pass linker flags through the system compiler.
9386 case $host_os in
9387 aix*)
9388 lt_prog_compiler_wl='-Wl,'
9389 if test ia64 = "$host_cpu"; then
9390 # AIX 5 now supports IA64 processor
9391 lt_prog_compiler_static='-Bstatic'
9392 else
9393 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9394 fi
9395 ;;
9396
9397 darwin* | rhapsody*)
9398 # PIC is the default on this platform
9399 # Common symbols not allowed in MH_DYLIB files
9400 lt_prog_compiler_pic='-fno-common'
9401 case $cc_basename in
9402 nagfor*)
9403 # NAG Fortran compiler
9404 lt_prog_compiler_wl='-Wl,-Wl,,'
9405 lt_prog_compiler_pic='-PIC'
9406 lt_prog_compiler_static='-Bstatic'
9407 ;;
9408 esac
9409 ;;
9410
9411 mingw* | cygwin* | pw32* | os2* | cegcc*)
9412 # This hack is so that the source file can tell whether it is being
9413 # built for inclusion in a dll (and should export symbols for example).
9414 lt_prog_compiler_pic='-DDLL_EXPORT'
9415 case $host_os in
9416 os2*)
9417 lt_prog_compiler_static='$wl-static'
9418 ;;
9419 esac
9420 ;;
9421
9422 hpux9* | hpux10* | hpux11*)
9423 lt_prog_compiler_wl='-Wl,'
9424 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9425 # not for PA HP-UX.
9426 case $host_cpu in
9427 hppa*64*|ia64*)
9428 # +Z the default
9429 ;;
9430 *)
9431 lt_prog_compiler_pic='+Z'
9432 ;;
9433 esac
9434 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9435 lt_prog_compiler_static='$wl-a ${wl}archive'
9436 ;;
9437
9438 irix5* | irix6* | nonstopux*)
9439 lt_prog_compiler_wl='-Wl,'
9440 # PIC (with -KPIC) is the default.
9441 lt_prog_compiler_static='-non_shared'
9442 ;;
9443
9444 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9445 case $cc_basename in
9446 # old Intel for x86_64, which still supported -KPIC.
9447 ecc*)
9448 lt_prog_compiler_wl='-Wl,'
9449 lt_prog_compiler_pic='-KPIC'
9450 lt_prog_compiler_static='-static'
9451 ;;
9452 # icc used to be incompatible with GCC.
9453 # ICC 10 doesn't accept -KPIC any more.
9454 icc* | ifort*)
9455 lt_prog_compiler_wl='-Wl,'
9456 lt_prog_compiler_pic='-fPIC'
9457 lt_prog_compiler_static='-static'
9458 ;;
9459 # Lahey Fortran 8.1.
9460 lf95*)
9461 lt_prog_compiler_wl='-Wl,'
9462 lt_prog_compiler_pic='--shared'
9463 lt_prog_compiler_static='--static'
9464 ;;
9465 nagfor*)
9466 # NAG Fortran compiler
9467 lt_prog_compiler_wl='-Wl,-Wl,,'
9468 lt_prog_compiler_pic='-PIC'
9469 lt_prog_compiler_static='-Bstatic'
9470 ;;
9471 tcc*)
9472 # Fabrice Bellard et al's Tiny C Compiler
9473 lt_prog_compiler_wl='-Wl,'
9474 lt_prog_compiler_pic='-fPIC'
9475 lt_prog_compiler_static='-static'
9476 ;;
9477 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9478 # Portland Group compilers (*not* the Pentium gcc compiler,
9479 # which looks to be a dead project)
9480 lt_prog_compiler_wl='-Wl,'
9481 lt_prog_compiler_pic='-fpic'
9482 lt_prog_compiler_static='-Bstatic'
9483 ;;
9484 ccc*)
9485 lt_prog_compiler_wl='-Wl,'
9486 # All Alpha code is PIC.
9487 lt_prog_compiler_static='-non_shared'
9488 ;;
9489 xl* | bgxl* | bgf* | mpixl*)
9490 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9491 lt_prog_compiler_wl='-Wl,'
9492 lt_prog_compiler_pic='-qpic'
9493 lt_prog_compiler_static='-qstaticlink'
9494 ;;
9495 *)
9496 case `$CC -V 2>&1 | $SED 5q` in
9497 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9498 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9499 lt_prog_compiler_pic='-KPIC'
9500 lt_prog_compiler_static='-Bstatic'
9501 lt_prog_compiler_wl=''
9502 ;;
9503 *Sun\ F* | *Sun*Fortran*)
9504 lt_prog_compiler_pic='-KPIC'
9505 lt_prog_compiler_static='-Bstatic'
9506 lt_prog_compiler_wl='-Qoption ld '
9507 ;;
9508 *Sun\ C*)
9509 # Sun C 5.9
9510 lt_prog_compiler_pic='-KPIC'
9511 lt_prog_compiler_static='-Bstatic'
9512 lt_prog_compiler_wl='-Wl,'
9513 ;;
9514 *Intel*\ [CF]*Compiler*)
9515 lt_prog_compiler_wl='-Wl,'
9516 lt_prog_compiler_pic='-fPIC'
9517 lt_prog_compiler_static='-static'
9518 ;;
9519 *Portland\ Group*)
9520 lt_prog_compiler_wl='-Wl,'
9521 lt_prog_compiler_pic='-fpic'
9522 lt_prog_compiler_static='-Bstatic'
9523 ;;
9524 esac
9525 ;;
9526 esac
9527 ;;
9528
9529 newsos6)
9530 lt_prog_compiler_pic='-KPIC'
9531 lt_prog_compiler_static='-Bstatic'
9532 ;;
9533
9534 *nto* | *qnx*)
9535 # QNX uses GNU C++, but need to define -shared option too, otherwise
9536 # it will coredump.
9537 lt_prog_compiler_pic='-fPIC -shared'
9538 ;;
9539
9540 osf3* | osf4* | osf5*)
9541 lt_prog_compiler_wl='-Wl,'
9542 # All OSF/1 code is PIC.
9543 lt_prog_compiler_static='-non_shared'
9544 ;;
9545
9546 rdos*)
9547 lt_prog_compiler_static='-non_shared'
9548 ;;
9549
9550 solaris*)
9551 lt_prog_compiler_pic='-KPIC'
9552 lt_prog_compiler_static='-Bstatic'
9553 case $cc_basename in
9554 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9555 lt_prog_compiler_wl='-Qoption ld ';;
9556 *)
9557 lt_prog_compiler_wl='-Wl,';;
9558 esac
9559 ;;
9560
9561 sunos4*)
9562 lt_prog_compiler_wl='-Qoption ld '
9563 lt_prog_compiler_pic='-PIC'
9564 lt_prog_compiler_static='-Bstatic'
9565 ;;
9566
9567 sysv4 | sysv4.2uw2* | sysv4.3*)
9568 lt_prog_compiler_wl='-Wl,'
9569 lt_prog_compiler_pic='-KPIC'
9570 lt_prog_compiler_static='-Bstatic'
9571 ;;
9572
9573 sysv4*MP*)
9574 if test -d /usr/nec; then
9575 lt_prog_compiler_pic='-Kconform_pic'
9576 lt_prog_compiler_static='-Bstatic'
9577 fi
9578 ;;
9579
9580 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9581 lt_prog_compiler_wl='-Wl,'
9582 lt_prog_compiler_pic='-KPIC'
9583 lt_prog_compiler_static='-Bstatic'
9584 ;;
9585
9586 unicos*)
9587 lt_prog_compiler_wl='-Wl,'
9588 lt_prog_compiler_can_build_shared=no
9589 ;;
9590
9591 uts4*)
9592 lt_prog_compiler_pic='-pic'
9593 lt_prog_compiler_static='-Bstatic'
9594 ;;
9595
9596 *)
9597 lt_prog_compiler_can_build_shared=no
9598 ;;
9599 esac
9600 fi
9601
9602 case $host_os in
9603 # For platforms that do not support PIC, -DPIC is meaningless:
9604 *djgpp*)
9605 lt_prog_compiler_pic=
9606 ;;
9607 *)
9608 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9609 ;;
9610 esac
9611
9612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9613 printf %s "checking for $compiler option to produce PIC... " >&6; }
9614 if test ${lt_cv_prog_compiler_pic+y}
9615 then :
9616 printf %s "(cached) " >&6
9617 else case e in #(
9618 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
9619 esac
9620 fi
9621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9622 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9623 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9624
9625 #
9626 # Check to make sure the PIC flag actually works.
9627 #
9628 if test -n "$lt_prog_compiler_pic"; then
9629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9630 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9631 if test ${lt_cv_prog_compiler_pic_works+y}
9632 then :
9633 printf %s "(cached) " >&6
9634 else case e in #(
9635 e) lt_cv_prog_compiler_pic_works=no
9636 ac_outfile=conftest.$ac_objext
9637 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9638 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9639 # Insert the option either (1) after the last *FLAGS variable, or
9640 # (2) before a word containing "conftest.", or (3) at the end.
9641 # Note that $ac_compile itself does not contain backslashes and begins
9642 # with a dollar sign (not a hyphen), so the echo should work correctly.
9643 # The option is referenced via a variable to avoid confusing sed.
9644 lt_compile=`echo "$ac_compile" | $SED \
9645 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9646 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9647 -e 's:$: $lt_compiler_flag:'`
9648 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9649 (eval "$lt_compile" 2>conftest.err)
9650 ac_status=$?
9651 cat conftest.err >&5
9652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9653 if (exit $ac_status) && test -s "$ac_outfile"; then
9654 # The compiler can only warn and ignore the option if not recognized
9655 # So say no if there are warnings other than the usual output.
9656 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9657 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9658 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9659 lt_cv_prog_compiler_pic_works=yes
9660 fi
9661 fi
9662 $RM conftest*
9663 ;;
9664 esac
9665 fi
9666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9667 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9668
9669 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9670 case $lt_prog_compiler_pic in
9671 "" | " "*) ;;
9672 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9673 esac
9674 else
9675 lt_prog_compiler_pic=
9676 lt_prog_compiler_can_build_shared=no
9677 fi
9678
9679 fi
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691 #
9692 # Check to make sure the static flag actually works.
9693 #
9694 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9696 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9697 if test ${lt_cv_prog_compiler_static_works+y}
9698 then :
9699 printf %s "(cached) " >&6
9700 else case e in #(
9701 e) lt_cv_prog_compiler_static_works=no
9702 save_LDFLAGS=$LDFLAGS
9703 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9704 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9705 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9706 # The linker can only warn and ignore the option if not recognized
9707 # So say no if there are warnings
9708 if test -s conftest.err; then
9709 # Append any errors to the config.log.
9710 cat conftest.err 1>&5
9711 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9712 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9713 if diff conftest.exp conftest.er2 >/dev/null; then
9714 lt_cv_prog_compiler_static_works=yes
9715 fi
9716 else
9717 lt_cv_prog_compiler_static_works=yes
9718 fi
9719 fi
9720 $RM -r conftest*
9721 LDFLAGS=$save_LDFLAGS
9722 ;;
9723 esac
9724 fi
9725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9726 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9727
9728 if test yes = "$lt_cv_prog_compiler_static_works"; then
9729 :
9730 else
9731 lt_prog_compiler_static=
9732 fi
9733
9734
9735
9736
9737
9738
9739
9740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9741 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9742 if test ${lt_cv_prog_compiler_c_o+y}
9743 then :
9744 printf %s "(cached) " >&6
9745 else case e in #(
9746 e) lt_cv_prog_compiler_c_o=no
9747 $RM -r conftest 2>/dev/null
9748 mkdir conftest
9749 cd conftest
9750 mkdir out
9751 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9752
9753 lt_compiler_flag="-o out/conftest2.$ac_objext"
9754 # Insert the option either (1) after the last *FLAGS variable, or
9755 # (2) before a word containing "conftest.", or (3) at the end.
9756 # Note that $ac_compile itself does not contain backslashes and begins
9757 # with a dollar sign (not a hyphen), so the echo should work correctly.
9758 lt_compile=`echo "$ac_compile" | $SED \
9759 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9760 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9761 -e 's:$: $lt_compiler_flag:'`
9762 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9763 (eval "$lt_compile" 2>out/conftest.err)
9764 ac_status=$?
9765 cat out/conftest.err >&5
9766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9767 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9768 then
9769 # The compiler can only warn and ignore the option if not recognized
9770 # So say no if there are warnings
9771 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9772 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9773 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9774 lt_cv_prog_compiler_c_o=yes
9775 fi
9776 fi
9777 chmod u+w . 2>&5
9778 $RM conftest*
9779 # SGI C++ compiler will create directory out/ii_files/ for
9780 # template instantiation
9781 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9782 $RM out/* && rmdir out
9783 cd ..
9784 $RM -r conftest
9785 $RM conftest*
9786 ;;
9787 esac
9788 fi
9789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9790 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9791
9792
9793
9794
9795
9796
9797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9798 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9799 if test ${lt_cv_prog_compiler_c_o+y}
9800 then :
9801 printf %s "(cached) " >&6
9802 else case e in #(
9803 e) lt_cv_prog_compiler_c_o=no
9804 $RM -r conftest 2>/dev/null
9805 mkdir conftest
9806 cd conftest
9807 mkdir out
9808 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9809
9810 lt_compiler_flag="-o out/conftest2.$ac_objext"
9811 # Insert the option either (1) after the last *FLAGS variable, or
9812 # (2) before a word containing "conftest.", or (3) at the end.
9813 # Note that $ac_compile itself does not contain backslashes and begins
9814 # with a dollar sign (not a hyphen), so the echo should work correctly.
9815 lt_compile=`echo "$ac_compile" | $SED \
9816 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9817 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9818 -e 's:$: $lt_compiler_flag:'`
9819 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9820 (eval "$lt_compile" 2>out/conftest.err)
9821 ac_status=$?
9822 cat out/conftest.err >&5
9823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9824 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9825 then
9826 # The compiler can only warn and ignore the option if not recognized
9827 # So say no if there are warnings
9828 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9829 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9830 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9831 lt_cv_prog_compiler_c_o=yes
9832 fi
9833 fi
9834 chmod u+w . 2>&5
9835 $RM conftest*
9836 # SGI C++ compiler will create directory out/ii_files/ for
9837 # template instantiation
9838 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9839 $RM out/* && rmdir out
9840 cd ..
9841 $RM -r conftest
9842 $RM conftest*
9843 ;;
9844 esac
9845 fi
9846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9847 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9848
9849
9850
9851
9852 hard_links=nottested
9853 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9854 # do not overwrite the value of need_locks provided by the user
9855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9856 printf %s "checking if we can lock with hard links... " >&6; }
9857 hard_links=yes
9858 $RM conftest*
9859 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9860 touch conftest.a
9861 ln conftest.a conftest.b 2>&5 || hard_links=no
9862 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9864 printf "%s\n" "$hard_links" >&6; }
9865 if test no = "$hard_links"; then
9866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9867 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9868 need_locks=warn
9869 fi
9870 else
9871 need_locks=no
9872 fi
9873
9874
9875
9876
9877
9878
9879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9880 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9881
9882 runpath_var=
9883 allow_undefined_flag=
9884 always_export_symbols=no
9885 archive_cmds=
9886 archive_expsym_cmds=
9887 compiler_needs_object=no
9888 enable_shared_with_static_runtimes=no
9889 export_dynamic_flag_spec=
9890 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9891 hardcode_automatic=no
9892 hardcode_direct=no
9893 hardcode_direct_absolute=no
9894 hardcode_libdir_flag_spec=
9895 hardcode_libdir_separator=
9896 hardcode_minus_L=no
9897 hardcode_shlibpath_var=unsupported
9898 inherit_rpath=no
9899 link_all_deplibs=unknown
9900 module_cmds=
9901 module_expsym_cmds=
9902 old_archive_from_new_cmds=
9903 old_archive_from_expsyms_cmds=
9904 thread_safe_flag_spec=
9905 whole_archive_flag_spec=
9906 # include_expsyms should be a list of space-separated symbols to be *always*
9907 # included in the symbol list
9908 include_expsyms=
9909 # exclude_expsyms can be an extended regexp of symbols to exclude
9910 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9911 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9912 # as well as any symbol that contains 'd'.
9913 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9914 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9915 # platforms (ab)use it in PIC code, but their linkers get confused if
9916 # the symbol is explicitly referenced. Since portable code cannot
9917 # rely on this symbol name, it's probably fine to never include it in
9918 # preloaded symbol tables.
9919 # Exclude shared library initialization/finalization symbols.
9920 extract_expsyms_cmds=
9921
9922 case $host_os in
9923 cygwin* | mingw* | pw32* | cegcc*)
9924 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
9925 # When not using gcc, we currently assume that we are using
9926 # Microsoft Visual C++ or Intel C++ Compiler.
9927 if test yes != "$GCC"; then
9928 with_gnu_ld=no
9929 fi
9930 ;;
9931 interix*)
9932 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
9933 with_gnu_ld=yes
9934 ;;
9935 openbsd* | bitrig*)
9936 with_gnu_ld=no
9937 ;;
9938 esac
9939
9940 ld_shlibs=yes
9941
9942 # On some targets, GNU ld is compatible enough with the native linker
9943 # that we're better off using the native interface for both.
9944 lt_use_gnu_ld_interface=no
9945 if test yes = "$with_gnu_ld"; then
9946 case $host_os in
9947 aix*)
9948 # The AIX port of GNU ld has always aspired to compatibility
9949 # with the native linker. However, as the warning in the GNU ld
9950 # block says, versions before 2.19.5* couldn't really create working
9951 # shared libraries, regardless of the interface used.
9952 case `$LD -v 2>&1` in
9953 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9954 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9955 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9956 *)
9957 lt_use_gnu_ld_interface=yes
9958 ;;
9959 esac
9960 ;;
9961 *)
9962 lt_use_gnu_ld_interface=yes
9963 ;;
9964 esac
9965 fi
9966
9967 if test yes = "$lt_use_gnu_ld_interface"; then
9968 # If archive_cmds runs LD, not CC, wlarc should be empty
9969 wlarc='$wl'
9970
9971 # Set some defaults for GNU ld with shared library support. These
9972 # are reset later if shared libraries are not supported. Putting them
9973 # here allows them to be overridden if necessary.
9974 runpath_var=LD_RUN_PATH
9975 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9976 export_dynamic_flag_spec='$wl--export-dynamic'
9977 # ancient GNU ld didn't support --whole-archive et. al.
9978 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9979 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9980 else
9981 whole_archive_flag_spec=
9982 fi
9983 supports_anon_versioning=no
9984 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
9985 *GNU\ gold*) supports_anon_versioning=yes ;;
9986 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9987 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9988 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9989 *\ 2.11.*) ;; # other 2.11 versions
9990 *) supports_anon_versioning=yes ;;
9991 esac
9992
9993 # See if GNU ld supports shared libraries.
9994 case $host_os in
9995 aix[3-9]*)
9996 # On AIX/PPC, the GNU linker is very broken
9997 if test ia64 != "$host_cpu"; then
9998 ld_shlibs=no
9999 cat <<_LT_EOF 1>&2
10000
10001 *** Warning: the GNU linker, at least up to release 2.19, is reported
10002 *** to be unable to reliably create shared libraries on AIX.
10003 *** Therefore, libtool is disabling shared libraries support. If you
10004 *** really care for shared libraries, you may want to install binutils
10005 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10006 *** You will then need to restart the configuration process.
10007
10008 _LT_EOF
10009 fi
10010 ;;
10011
10012 amigaos*)
10013 case $host_cpu in
10014 powerpc)
10015 # see comment about AmigaOS4 .so support
10016 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10017 archive_expsym_cmds=''
10018 ;;
10019 m68k)
10020 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
10021 hardcode_libdir_flag_spec='-L$libdir'
10022 hardcode_minus_L=yes
10023 ;;
10024 esac
10025 ;;
10026
10027 beos*)
10028 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10029 allow_undefined_flag=unsupported
10030 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
10031 # support --undefined. This deserves some investigation. FIXME
10032 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10033 else
10034 ld_shlibs=no
10035 fi
10036 ;;
10037
10038 cygwin* | mingw* | pw32* | cegcc*)
10039 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10040 # as there is no search path for DLLs.
10041 hardcode_libdir_flag_spec='-L$libdir'
10042 export_dynamic_flag_spec='$wl--export-all-symbols'
10043 allow_undefined_flag=unsupported
10044 always_export_symbols=no
10045 enable_shared_with_static_runtimes=yes
10046 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
10047 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10048
10049 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10050 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10051 # If the export-symbols file already is a .def file, use it as
10052 # is; otherwise, prepend EXPORTS...
10053 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10054 cp $export_symbols $output_objdir/$soname.def;
10055 else
10056 echo EXPORTS > $output_objdir/$soname.def;
10057 cat $export_symbols >> $output_objdir/$soname.def;
10058 fi~
10059 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10060 else
10061 ld_shlibs=no
10062 fi
10063 ;;
10064
10065 haiku*)
10066 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10067 link_all_deplibs=yes
10068 ;;
10069
10070 os2*)
10071 hardcode_libdir_flag_spec='-L$libdir'
10072 hardcode_minus_L=yes
10073 allow_undefined_flag=unsupported
10074 shrext_cmds=.dll
10075 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10076 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10077 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10078 $ECHO EXPORTS >> $output_objdir/$libname.def~
10079 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10080 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10081 emximp -o $lib $output_objdir/$libname.def'
10082 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10083 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10084 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10085 $ECHO EXPORTS >> $output_objdir/$libname.def~
10086 prefix_cmds="$SED"~
10087 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10088 prefix_cmds="$prefix_cmds -e 1d";
10089 fi~
10090 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10091 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10092 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10093 emximp -o $lib $output_objdir/$libname.def'
10094 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10095 enable_shared_with_static_runtimes=yes
10096 file_list_spec='@'
10097 ;;
10098
10099 interix[3-9]*)
10100 hardcode_direct=no
10101 hardcode_shlibpath_var=no
10102 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10103 export_dynamic_flag_spec='$wl-E'
10104 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10105 # Instead, shared libraries are loaded at an image base (0x10000000 by
10106 # default) and relocated if they conflict, which is a slow very memory
10107 # consuming and fragmenting process. To avoid this, we pick a random,
10108 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10109 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10110 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10111 archive_expsym_cmds='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10112 ;;
10113
10114 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10115 tmp_diet=no
10116 if test linux-dietlibc = "$host_os"; then
10117 case $cc_basename in
10118 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10119 esac
10120 fi
10121 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10122 && test no = "$tmp_diet"
10123 then
10124 tmp_addflag=' $pic_flag'
10125 tmp_sharedflag='-shared'
10126 case $cc_basename,$host_cpu in
10127 pgcc*) # Portland Group C compiler
10128 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10129 tmp_addflag=' $pic_flag'
10130 ;;
10131 pgf77* | pgf90* | pgf95* | pgfortran*)
10132 # Portland Group f77 and f90 compilers
10133 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10134 tmp_addflag=' $pic_flag -Mnomain' ;;
10135 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10136 tmp_addflag=' -i_dynamic' ;;
10137 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10138 tmp_addflag=' -i_dynamic -nofor_main' ;;
10139 ifc* | ifort*) # Intel Fortran compiler
10140 tmp_addflag=' -nofor_main' ;;
10141 lf95*) # Lahey Fortran 8.1
10142 whole_archive_flag_spec=
10143 tmp_sharedflag='--shared' ;;
10144 nagfor*) # NAGFOR 5.3
10145 tmp_sharedflag='-Wl,-shared' ;;
10146 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10147 tmp_sharedflag='-qmkshrobj'
10148 tmp_addflag= ;;
10149 nvcc*) # Cuda Compiler Driver 2.2
10150 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10151 compiler_needs_object=yes
10152 ;;
10153 esac
10154 case `$CC -V 2>&1 | $SED 5q` in
10155 *Sun\ C*) # Sun C 5.9
10156 whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10157 compiler_needs_object=yes
10158 tmp_sharedflag='-G' ;;
10159 *Sun\ F*) # Sun Fortran 8.3
10160 tmp_sharedflag='-G' ;;
10161 esac
10162 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10163
10164 if test yes = "$supports_anon_versioning"; then
10165 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10166 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10167 echo "local: *; };" >> $output_objdir/$libname.ver~
10168 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10169 fi
10170
10171 case $cc_basename in
10172 tcc*)
10173 export_dynamic_flag_spec='-rdynamic'
10174 ;;
10175 xlf* | bgf* | bgxlf* | mpixlf*)
10176 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10177 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10178 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10179 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10180 if test yes = "$supports_anon_versioning"; then
10181 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10182 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10183 echo "local: *; };" >> $output_objdir/$libname.ver~
10184 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10185 fi
10186 ;;
10187 esac
10188 else
10189 ld_shlibs=no
10190 fi
10191 ;;
10192
10193 netbsd*)
10194 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10195 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10196 wlarc=
10197 else
10198 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10199 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10200 fi
10201 ;;
10202
10203 solaris*)
10204 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10205 ld_shlibs=no
10206 cat <<_LT_EOF 1>&2
10207
10208 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10209 *** create shared libraries on Solaris systems. Therefore, libtool
10210 *** is disabling shared libraries support. We urge you to upgrade GNU
10211 *** binutils to release 2.9.1 or newer. Another option is to modify
10212 *** your PATH or compiler configuration so that the native linker is
10213 *** used, and then restart.
10214
10215 _LT_EOF
10216 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10217 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10218 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10219 else
10220 ld_shlibs=no
10221 fi
10222 ;;
10223
10224 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10225 case `$LD -v 2>&1` in
10226 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10227 ld_shlibs=no
10228 cat <<_LT_EOF 1>&2
10229
10230 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10231 *** reliably create shared libraries on SCO systems. Therefore, libtool
10232 *** is disabling shared libraries support. We urge you to upgrade GNU
10233 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10234 *** your PATH or compiler configuration so that the native linker is
10235 *** used, and then restart.
10236
10237 _LT_EOF
10238 ;;
10239 *)
10240 # For security reasons, it is highly recommended that you always
10241 # use absolute paths for naming shared libraries, and exclude the
10242 # DT_RUNPATH tag from executables and libraries. But doing so
10243 # requires that you compile everything twice, which is a pain.
10244 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10245 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10246 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10247 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10248 else
10249 ld_shlibs=no
10250 fi
10251 ;;
10252 esac
10253 ;;
10254
10255 sunos4*)
10256 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10257 wlarc=
10258 hardcode_direct=yes
10259 hardcode_shlibpath_var=no
10260 ;;
10261
10262 *)
10263 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10264 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10265 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10266 else
10267 ld_shlibs=no
10268 fi
10269 ;;
10270 esac
10271
10272 if test no = "$ld_shlibs"; then
10273 runpath_var=
10274 hardcode_libdir_flag_spec=
10275 export_dynamic_flag_spec=
10276 whole_archive_flag_spec=
10277 fi
10278 else
10279 # PORTME fill in a description of your system's linker (not GNU ld)
10280 case $host_os in
10281 aix3*)
10282 allow_undefined_flag=unsupported
10283 always_export_symbols=yes
10284 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
10285 # Note: this linker hardcodes the directories in LIBPATH if there
10286 # are no directories specified by -L.
10287 hardcode_minus_L=yes
10288 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10289 # Neither direct hardcoding nor static linking is supported with a
10290 # broken collect2.
10291 hardcode_direct=unsupported
10292 fi
10293 ;;
10294
10295 aix[4-9]*)
10296 if test ia64 = "$host_cpu"; then
10297 # On IA64, the linker does run time linking by default, so we don't
10298 # have to do anything special.
10299 aix_use_runtimelinking=no
10300 exp_sym_flag='-Bexport'
10301 no_entry_flag=
10302 else
10303 # If we're using GNU nm, then we don't want the "-C" option.
10304 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10305 # Without the "-l" option, or with the "-B" option, AIX nm treats
10306 # weak defined symbols like other global defined symbols, whereas
10307 # GNU nm marks them as "W".
10308 # While the 'weak' keyword is ignored in the Export File, we need
10309 # it in the Import File for the 'aix-soname' feature, so we have
10310 # to replace the "-B" option with "-P" for AIX nm.
10311 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10312 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
10313 else
10314 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10315 fi
10316 aix_use_runtimelinking=no
10317
10318 # Test if we are trying to use run time linking or normal
10319 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10320 # have runtime linking enabled, and use it for executables.
10321 # For shared libraries, we enable/disable runtime linking
10322 # depending on the kind of the shared library created -
10323 # when "with_aix_soname,aix_use_runtimelinking" is:
10324 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10325 # "aix,yes" lib.so shared, rtl:yes, for executables
10326 # lib.a static archive
10327 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10328 # lib.a(lib.so.V) shared, rtl:no, for executables
10329 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10330 # lib.a(lib.so.V) shared, rtl:no
10331 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10332 # lib.a static archive
10333 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10334 for ld_flag in $LDFLAGS; do
10335 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10336 aix_use_runtimelinking=yes
10337 break
10338 fi
10339 done
10340 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10341 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10342 # so we don't have lib.a shared libs to link our executables.
10343 # We have to force runtime linking in this case.
10344 aix_use_runtimelinking=yes
10345 LDFLAGS="$LDFLAGS -Wl,-brtl"
10346 fi
10347 ;;
10348 esac
10349
10350 exp_sym_flag='-bexport'
10351 no_entry_flag='-bnoentry'
10352 fi
10353
10354 # When large executables or shared objects are built, AIX ld can
10355 # have problems creating the table of contents. If linking a library
10356 # or program results in "error TOC overflow" add -mminimal-toc to
10357 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10358 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10359
10360 archive_cmds=''
10361 hardcode_direct=yes
10362 hardcode_direct_absolute=yes
10363 hardcode_libdir_separator=':'
10364 link_all_deplibs=yes
10365 file_list_spec='$wl-f,'
10366 case $with_aix_soname,$aix_use_runtimelinking in
10367 aix,*) ;; # traditional, no import file
10368 svr4,* | *,yes) # use import file
10369 # The Import File defines what to hardcode.
10370 hardcode_direct=no
10371 hardcode_direct_absolute=no
10372 ;;
10373 esac
10374
10375 if test yes = "$GCC"; then
10376 case $host_os in aix4.[012]|aix4.[012].*)
10377 # We only want to do this on AIX 4.2 and lower, the check
10378 # below for broken collect2 doesn't work under 4.3+
10379 collect2name=`$CC -print-prog-name=collect2`
10380 if test -f "$collect2name" &&
10381 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10382 then
10383 # We have reworked collect2
10384 :
10385 else
10386 # We have old collect2
10387 hardcode_direct=unsupported
10388 # It fails to find uninstalled libraries when the uninstalled
10389 # path is not listed in the libpath. Setting hardcode_minus_L
10390 # to unsupported forces relinking
10391 hardcode_minus_L=yes
10392 hardcode_libdir_flag_spec='-L$libdir'
10393 hardcode_libdir_separator=
10394 fi
10395 ;;
10396 esac
10397 shared_flag='-shared'
10398 if test yes = "$aix_use_runtimelinking"; then
10399 shared_flag="$shared_flag "'$wl-G'
10400 fi
10401 # Need to ensure runtime linking is disabled for the traditional
10402 # shared library, or the linker may eventually find shared libraries
10403 # /with/ Import File - we do not want to mix them.
10404 shared_flag_aix='-shared'
10405 shared_flag_svr4='-shared $wl-G'
10406 else
10407 # not using gcc
10408 if test ia64 = "$host_cpu"; then
10409 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10410 # chokes on -Wl,-G. The following line is correct:
10411 shared_flag='-G'
10412 else
10413 if test yes = "$aix_use_runtimelinking"; then
10414 shared_flag='$wl-G'
10415 else
10416 shared_flag='$wl-bM:SRE'
10417 fi
10418 shared_flag_aix='$wl-bM:SRE'
10419 shared_flag_svr4='$wl-G'
10420 fi
10421 fi
10422
10423 export_dynamic_flag_spec='$wl-bexpall'
10424 # It seems that -bexpall does not export symbols beginning with
10425 # underscore (_), so it is better to generate a list of symbols to export.
10426 always_export_symbols=yes
10427 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10428 # Warning - without using the other runtime loading flags (-brtl),
10429 # -berok will link without error, but may produce a broken library.
10430 allow_undefined_flag='-berok'
10431 # Determine the default libpath from the value encoded in an
10432 # empty executable.
10433 if test set = "${lt_cv_aix_libpath+set}"; then
10434 aix_libpath=$lt_cv_aix_libpath
10435 else
10436 if test ${lt_cv_aix_libpath_+y}
10437 then :
10438 printf %s "(cached) " >&6
10439 else case e in #(
10440 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10441 /* end confdefs.h. */
10442
10443 int
10444 main (void)
10445 {
10446
10447 ;
10448 return 0;
10449 }
10450 _ACEOF
10451 if ac_fn_c_try_link "$LINENO"
10452 then :
10453
10454 lt_aix_libpath_sed='
10455 /Import File Strings/,/^$/ {
10456 /^0/ {
10457 s/^0 *\([^ ]*\) *$/\1/
10458 p
10459 }
10460 }'
10461 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10462 # Check for a 64-bit object if we didn't find anything.
10463 if test -z "$lt_cv_aix_libpath_"; then
10464 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10465 fi
10466 fi
10467 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10468 conftest$ac_exeext conftest.$ac_ext
10469 if test -z "$lt_cv_aix_libpath_"; then
10470 lt_cv_aix_libpath_=/usr/lib:/lib
10471 fi
10472 ;;
10473 esac
10474 fi
10475
10476 aix_libpath=$lt_cv_aix_libpath_
10477 fi
10478
10479 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10480 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10481 else
10482 if test ia64 = "$host_cpu"; then
10483 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10484 allow_undefined_flag="-z nodefs"
10485 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
10486 else
10487 # Determine the default libpath from the value encoded in an
10488 # empty executable.
10489 if test set = "${lt_cv_aix_libpath+set}"; then
10490 aix_libpath=$lt_cv_aix_libpath
10491 else
10492 if test ${lt_cv_aix_libpath_+y}
10493 then :
10494 printf %s "(cached) " >&6
10495 else case e in #(
10496 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10497 /* end confdefs.h. */
10498
10499 int
10500 main (void)
10501 {
10502
10503 ;
10504 return 0;
10505 }
10506 _ACEOF
10507 if ac_fn_c_try_link "$LINENO"
10508 then :
10509
10510 lt_aix_libpath_sed='
10511 /Import File Strings/,/^$/ {
10512 /^0/ {
10513 s/^0 *\([^ ]*\) *$/\1/
10514 p
10515 }
10516 }'
10517 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10518 # Check for a 64-bit object if we didn't find anything.
10519 if test -z "$lt_cv_aix_libpath_"; then
10520 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10521 fi
10522 fi
10523 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10524 conftest$ac_exeext conftest.$ac_ext
10525 if test -z "$lt_cv_aix_libpath_"; then
10526 lt_cv_aix_libpath_=/usr/lib:/lib
10527 fi
10528 ;;
10529 esac
10530 fi
10531
10532 aix_libpath=$lt_cv_aix_libpath_
10533 fi
10534
10535 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10536 # Warning - without using the other run time loading flags,
10537 # -berok will link without error, but may produce a broken library.
10538 no_undefined_flag=' $wl-bernotok'
10539 allow_undefined_flag=' $wl-berok'
10540 if test yes = "$with_gnu_ld"; then
10541 # We only use this code for GNU lds that support --whole-archive.
10542 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10543 else
10544 # Exported symbols can be pulled into shared objects from archives
10545 whole_archive_flag_spec='$convenience'
10546 fi
10547 archive_cmds_need_lc=yes
10548 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10549 # -brtl affects multiple linker settings, -berok does not and is overridden later
10550 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10551 if test svr4 != "$with_aix_soname"; then
10552 # This is similar to how AIX traditionally builds its shared libraries.
10553 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10554 fi
10555 if test aix != "$with_aix_soname"; then
10556 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10557 else
10558 # used by -dlpreopen to get the symbols
10559 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10560 fi
10561 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10562 fi
10563 fi
10564 ;;
10565
10566 amigaos*)
10567 case $host_cpu in
10568 powerpc)
10569 # see comment about AmigaOS4 .so support
10570 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10571 archive_expsym_cmds=''
10572 ;;
10573 m68k)
10574 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
10575 hardcode_libdir_flag_spec='-L$libdir'
10576 hardcode_minus_L=yes
10577 ;;
10578 esac
10579 ;;
10580
10581 bsdi[45]*)
10582 export_dynamic_flag_spec=-rdynamic
10583 ;;
10584
10585 cygwin* | mingw* | pw32* | cegcc*)
10586 # When not using gcc, we currently assume that we are using
10587 # Microsoft Visual C++ or Intel C++ Compiler.
10588 # hardcode_libdir_flag_spec is actually meaningless, as there is
10589 # no search path for DLLs.
10590 case $cc_basename in
10591 cl* | icl*)
10592 # Native MSVC or ICC
10593 hardcode_libdir_flag_spec=' '
10594 allow_undefined_flag=unsupported
10595 always_export_symbols=yes
10596 file_list_spec='@'
10597 # Tell ltmain to make .lib files, not .a files.
10598 libext=lib
10599 # Tell ltmain to make .dll files, not .so files.
10600 shrext_cmds=.dll
10601 # FIXME: Setting linknames here is a bad hack.
10602 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10603 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10604 cp "$export_symbols" "$output_objdir/$soname.def";
10605 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10606 else
10607 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10608 fi~
10609 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10610 linknames='
10611 # The linker will not automatically build a static lib if we build a DLL.
10612 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10613 enable_shared_with_static_runtimes=yes
10614 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10615 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10616 # Don't use ranlib
10617 old_postinstall_cmds='chmod 644 $oldlib'
10618 postlink_cmds='lt_outputfile="@OUTPUT@"~
10619 lt_tool_outputfile="@TOOL_OUTPUT@"~
10620 case $lt_outputfile in
10621 *.exe|*.EXE) ;;
10622 *)
10623 lt_outputfile=$lt_outputfile.exe
10624 lt_tool_outputfile=$lt_tool_outputfile.exe
10625 ;;
10626 esac~
10627 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10628 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10629 $RM "$lt_outputfile.manifest";
10630 fi'
10631 ;;
10632 *)
10633 # Assume MSVC and ICC wrapper
10634 hardcode_libdir_flag_spec=' '
10635 allow_undefined_flag=unsupported
10636 # Tell ltmain to make .lib files, not .a files.
10637 libext=lib
10638 # Tell ltmain to make .dll files, not .so files.
10639 shrext_cmds=.dll
10640 # FIXME: Setting linknames here is a bad hack.
10641 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10642 # The linker will automatically build a .lib file if we build a DLL.
10643 old_archive_from_new_cmds='true'
10644 # FIXME: Should let the user specify the lib program.
10645 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10646 enable_shared_with_static_runtimes=yes
10647 ;;
10648 esac
10649 ;;
10650
10651 darwin* | rhapsody*)
10652
10653
10654 archive_cmds_need_lc=no
10655 hardcode_direct=no
10656 hardcode_automatic=yes
10657 hardcode_shlibpath_var=unsupported
10658 if test yes = "$lt_cv_ld_force_load"; then
10659 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
10660
10661 else
10662 whole_archive_flag_spec=''
10663 fi
10664 link_all_deplibs=yes
10665 allow_undefined_flag=$_lt_dar_allow_undefined
10666 case $cc_basename in
10667 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10668 *) _lt_dar_can_shared=$GCC ;;
10669 esac
10670 if test yes = "$_lt_dar_can_shared"; then
10671 output_verbose_link_cmd=func_echo_all
10672 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10673 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10674 archive_expsym_cmds="$SED 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
10675 module_expsym_cmds="$SED -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
10676
10677 else
10678 ld_shlibs=no
10679 fi
10680
10681 ;;
10682
10683 dgux*)
10684 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10685 hardcode_libdir_flag_spec='-L$libdir'
10686 hardcode_shlibpath_var=no
10687 ;;
10688
10689 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10690 # support. Future versions do this automatically, but an explicit c++rt0.o
10691 # does not break anything, and helps significantly (at the cost of a little
10692 # extra space).
10693 freebsd2.2*)
10694 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10695 hardcode_libdir_flag_spec='-R$libdir'
10696 hardcode_direct=yes
10697 hardcode_shlibpath_var=no
10698 ;;
10699
10700 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10701 freebsd2.*)
10702 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10703 hardcode_direct=yes
10704 hardcode_minus_L=yes
10705 hardcode_shlibpath_var=no
10706 ;;
10707
10708 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10709 freebsd* | dragonfly* | midnightbsd*)
10710 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10711 hardcode_libdir_flag_spec='-R$libdir'
10712 hardcode_direct=yes
10713 hardcode_shlibpath_var=no
10714 ;;
10715
10716 hpux9*)
10717 if test yes = "$GCC"; then
10718 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10719 else
10720 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10721 fi
10722 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10723 hardcode_libdir_separator=:
10724 hardcode_direct=yes
10725
10726 # hardcode_minus_L: Not really in the search PATH,
10727 # but as the default location of the library.
10728 hardcode_minus_L=yes
10729 export_dynamic_flag_spec='$wl-E'
10730 ;;
10731
10732 hpux10*)
10733 if test yes,no = "$GCC,$with_gnu_ld"; then
10734 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10735 else
10736 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10737 fi
10738 if test no = "$with_gnu_ld"; then
10739 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10740 hardcode_libdir_separator=:
10741 hardcode_direct=yes
10742 hardcode_direct_absolute=yes
10743 export_dynamic_flag_spec='$wl-E'
10744 # hardcode_minus_L: Not really in the search PATH,
10745 # but as the default location of the library.
10746 hardcode_minus_L=yes
10747 fi
10748 ;;
10749
10750 hpux11*)
10751 if test yes,no = "$GCC,$with_gnu_ld"; then
10752 case $host_cpu in
10753 hppa*64*)
10754 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10755 ;;
10756 ia64*)
10757 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10758 ;;
10759 *)
10760 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10761 ;;
10762 esac
10763 else
10764 case $host_cpu in
10765 hppa*64*)
10766 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10767 ;;
10768 ia64*)
10769 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10770 ;;
10771 *)
10772
10773 # Older versions of the 11.00 compiler do not understand -b yet
10774 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10776 printf %s "checking if $CC understands -b... " >&6; }
10777 if test ${lt_cv_prog_compiler__b+y}
10778 then :
10779 printf %s "(cached) " >&6
10780 else case e in #(
10781 e) lt_cv_prog_compiler__b=no
10782 save_LDFLAGS=$LDFLAGS
10783 LDFLAGS="$LDFLAGS -b"
10784 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10785 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10786 # The linker can only warn and ignore the option if not recognized
10787 # So say no if there are warnings
10788 if test -s conftest.err; then
10789 # Append any errors to the config.log.
10790 cat conftest.err 1>&5
10791 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10792 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10793 if diff conftest.exp conftest.er2 >/dev/null; then
10794 lt_cv_prog_compiler__b=yes
10795 fi
10796 else
10797 lt_cv_prog_compiler__b=yes
10798 fi
10799 fi
10800 $RM -r conftest*
10801 LDFLAGS=$save_LDFLAGS
10802 ;;
10803 esac
10804 fi
10805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10806 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10807
10808 if test yes = "$lt_cv_prog_compiler__b"; then
10809 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10810 else
10811 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10812 fi
10813
10814 ;;
10815 esac
10816 fi
10817 if test no = "$with_gnu_ld"; then
10818 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10819 hardcode_libdir_separator=:
10820
10821 case $host_cpu in
10822 hppa*64*|ia64*)
10823 hardcode_direct=no
10824 hardcode_shlibpath_var=no
10825 ;;
10826 *)
10827 hardcode_direct=yes
10828 hardcode_direct_absolute=yes
10829 export_dynamic_flag_spec='$wl-E'
10830
10831 # hardcode_minus_L: Not really in the search PATH,
10832 # but as the default location of the library.
10833 hardcode_minus_L=yes
10834 ;;
10835 esac
10836 fi
10837 ;;
10838
10839 irix5* | irix6* | nonstopux*)
10840 if test yes = "$GCC"; then
10841 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10842 # Try to use the -exported_symbol ld option, if it does not
10843 # work, assume that -exports_file does not work either and
10844 # implicitly export all symbols.
10845 # This should be the same for all languages, so no per-tag cache variable.
10846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10847 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10848 if test ${lt_cv_irix_exported_symbol+y}
10849 then :
10850 printf %s "(cached) " >&6
10851 else case e in #(
10852 e) save_LDFLAGS=$LDFLAGS
10853 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10855 /* end confdefs.h. */
10856 int foo (void) { return 0; }
10857 _ACEOF
10858 if ac_fn_c_try_link "$LINENO"
10859 then :
10860 lt_cv_irix_exported_symbol=yes
10861 else case e in #(
10862 e) lt_cv_irix_exported_symbol=no ;;
10863 esac
10864 fi
10865 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10866 conftest$ac_exeext conftest.$ac_ext
10867 LDFLAGS=$save_LDFLAGS ;;
10868 esac
10869 fi
10870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10871 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10872 if test yes = "$lt_cv_irix_exported_symbol"; then
10873 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
10874 fi
10875 else
10876 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10877 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
10878 fi
10879 archive_cmds_need_lc='no'
10880 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10881 hardcode_libdir_separator=:
10882 inherit_rpath=yes
10883 link_all_deplibs=yes
10884 ;;
10885
10886 linux*)
10887 case $cc_basename in
10888 tcc*)
10889 # Fabrice Bellard et al's Tiny C Compiler
10890 ld_shlibs=yes
10891 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10892 ;;
10893 esac
10894 ;;
10895
10896 netbsd*)
10897 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10898 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10899 else
10900 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10901 fi
10902 hardcode_libdir_flag_spec='-R$libdir'
10903 hardcode_direct=yes
10904 hardcode_shlibpath_var=no
10905 ;;
10906
10907 newsos6)
10908 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10909 hardcode_direct=yes
10910 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10911 hardcode_libdir_separator=:
10912 hardcode_shlibpath_var=no
10913 ;;
10914
10915 *nto* | *qnx*)
10916 ;;
10917
10918 openbsd* | bitrig*)
10919 if test -f /usr/libexec/ld.so; then
10920 hardcode_direct=yes
10921 hardcode_shlibpath_var=no
10922 hardcode_direct_absolute=yes
10923 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10924 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10925 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10926 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10927 export_dynamic_flag_spec='$wl-E'
10928 else
10929 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10930 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10931 fi
10932 else
10933 ld_shlibs=no
10934 fi
10935 ;;
10936
10937 os2*)
10938 hardcode_libdir_flag_spec='-L$libdir'
10939 hardcode_minus_L=yes
10940 allow_undefined_flag=unsupported
10941 shrext_cmds=.dll
10942 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10943 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10944 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10945 $ECHO EXPORTS >> $output_objdir/$libname.def~
10946 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10947 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10948 emximp -o $lib $output_objdir/$libname.def'
10949 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10950 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10951 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10952 $ECHO EXPORTS >> $output_objdir/$libname.def~
10953 prefix_cmds="$SED"~
10954 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10955 prefix_cmds="$prefix_cmds -e 1d";
10956 fi~
10957 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10958 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10959 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10960 emximp -o $lib $output_objdir/$libname.def'
10961 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10962 enable_shared_with_static_runtimes=yes
10963 file_list_spec='@'
10964 ;;
10965
10966 osf3*)
10967 if test yes = "$GCC"; then
10968 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10969 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10970 else
10971 allow_undefined_flag=' -expect_unresolved \*'
10972 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10973 fi
10974 archive_cmds_need_lc='no'
10975 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10976 hardcode_libdir_separator=:
10977 ;;
10978
10979 osf4* | osf5*) # as osf3* with the addition of -msym flag
10980 if test yes = "$GCC"; then
10981 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10982 archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10983 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10984 else
10985 allow_undefined_flag=' -expect_unresolved \*'
10986 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10987 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
10988 $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
10989
10990 # Both c and cxx compiler support -rpath directly
10991 hardcode_libdir_flag_spec='-rpath $libdir'
10992 fi
10993 archive_cmds_need_lc='no'
10994 hardcode_libdir_separator=:
10995 ;;
10996
10997 solaris*)
10998 no_undefined_flag=' -z defs'
10999 if test yes = "$GCC"; then
11000 wlarc='$wl'
11001 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11002 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11003 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11004 else
11005 case `$CC -V 2>&1` in
11006 *"Compilers 5.0"*)
11007 wlarc=''
11008 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11009 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11010 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11011 ;;
11012 *)
11013 wlarc='$wl'
11014 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11015 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11016 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11017 ;;
11018 esac
11019 fi
11020 hardcode_libdir_flag_spec='-R$libdir'
11021 hardcode_shlibpath_var=no
11022 case $host_os in
11023 solaris2.[0-5] | solaris2.[0-5].*) ;;
11024 *)
11025 # The compiler driver will combine and reorder linker options,
11026 # but understands '-z linker_flag'. GCC discards it without '$wl',
11027 # but is careful enough not to reorder.
11028 # Supported since Solaris 2.6 (maybe 2.5.1?)
11029 if test yes = "$GCC"; then
11030 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11031 else
11032 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11033 fi
11034 ;;
11035 esac
11036 link_all_deplibs=yes
11037 ;;
11038
11039 sunos4*)
11040 if test sequent = "$host_vendor"; then
11041 # Use $CC to link under sequent, because it throws in some extra .o
11042 # files that make .init and .fini sections work.
11043 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11044 else
11045 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11046 fi
11047 hardcode_libdir_flag_spec='-L$libdir'
11048 hardcode_direct=yes
11049 hardcode_minus_L=yes
11050 hardcode_shlibpath_var=no
11051 ;;
11052
11053 sysv4)
11054 case $host_vendor in
11055 sni)
11056 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11057 hardcode_direct=yes # is this really true???
11058 ;;
11059 siemens)
11060 ## LD is ld it makes a PLAMLIB
11061 ## CC just makes a GrossModule.
11062 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11063 reload_cmds='$CC -r -o $output$reload_objs'
11064 hardcode_direct=no
11065 ;;
11066 motorola)
11067 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11068 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11069 ;;
11070 esac
11071 runpath_var='LD_RUN_PATH'
11072 hardcode_shlibpath_var=no
11073 ;;
11074
11075 sysv4.3*)
11076 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11077 hardcode_shlibpath_var=no
11078 export_dynamic_flag_spec='-Bexport'
11079 ;;
11080
11081 sysv4*MP*)
11082 if test -d /usr/nec; then
11083 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11084 hardcode_shlibpath_var=no
11085 runpath_var=LD_RUN_PATH
11086 hardcode_runpath_var=yes
11087 ld_shlibs=yes
11088 fi
11089 ;;
11090
11091 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11092 no_undefined_flag='$wl-z,text'
11093 archive_cmds_need_lc=no
11094 hardcode_shlibpath_var=no
11095 runpath_var='LD_RUN_PATH'
11096
11097 if test yes = "$GCC"; then
11098 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11099 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11100 else
11101 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11102 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11103 fi
11104 ;;
11105
11106 sysv5* | sco3.2v5* | sco5v6*)
11107 # Note: We CANNOT use -z defs as we might desire, because we do not
11108 # link with -lc, and that would cause any symbols used from libc to
11109 # always be unresolved, which means just about no library would
11110 # ever link correctly. If we're not using GNU ld we use -z text
11111 # though, which does catch some bad symbols but isn't as heavy-handed
11112 # as -z defs.
11113 no_undefined_flag='$wl-z,text'
11114 allow_undefined_flag='$wl-z,nodefs'
11115 archive_cmds_need_lc=no
11116 hardcode_shlibpath_var=no
11117 hardcode_libdir_flag_spec='$wl-R,$libdir'
11118 hardcode_libdir_separator=':'
11119 link_all_deplibs=yes
11120 export_dynamic_flag_spec='$wl-Bexport'
11121 runpath_var='LD_RUN_PATH'
11122
11123 if test yes = "$GCC"; then
11124 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11125 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11126 else
11127 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11128 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11129 fi
11130 ;;
11131
11132 uts4*)
11133 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11134 hardcode_libdir_flag_spec='-L$libdir'
11135 hardcode_shlibpath_var=no
11136 ;;
11137
11138 *)
11139 ld_shlibs=no
11140 ;;
11141 esac
11142
11143 if test sni = "$host_vendor"; then
11144 case $host in
11145 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11146 export_dynamic_flag_spec='$wl-Blargedynsym'
11147 ;;
11148 esac
11149 fi
11150 fi
11151
11152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11153 printf "%s\n" "$ld_shlibs" >&6; }
11154 test no = "$ld_shlibs" && can_build_shared=no
11155
11156 with_gnu_ld=$with_gnu_ld
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172 #
11173 # Do we need to explicitly link libc?
11174 #
11175 case "x$archive_cmds_need_lc" in
11176 x|xyes)
11177 # Assume -lc should be added
11178 archive_cmds_need_lc=yes
11179
11180 if test yes,yes = "$GCC,$enable_shared"; then
11181 case $archive_cmds in
11182 *'~'*)
11183 # FIXME: we may have to deal with multi-command sequences.
11184 ;;
11185 '$CC '*)
11186 # Test whether the compiler implicitly links with -lc since on some
11187 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11188 # to ld, don't add -lc before -lgcc.
11189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11190 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11191 if test ${lt_cv_archive_cmds_need_lc+y}
11192 then :
11193 printf %s "(cached) " >&6
11194 else case e in #(
11195 e) $RM conftest*
11196 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11197
11198 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11199 (eval $ac_compile) 2>&5
11200 ac_status=$?
11201 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11202 test $ac_status = 0; } 2>conftest.err; then
11203 soname=conftest
11204 lib=conftest
11205 libobjs=conftest.$ac_objext
11206 deplibs=
11207 wl=$lt_prog_compiler_wl
11208 pic_flag=$lt_prog_compiler_pic
11209 compiler_flags=-v
11210 linker_flags=-v
11211 verstring=
11212 output_objdir=.
11213 libname=conftest
11214 lt_save_allow_undefined_flag=$allow_undefined_flag
11215 allow_undefined_flag=
11216 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11217 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11218 ac_status=$?
11219 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11220 test $ac_status = 0; }
11221 then
11222 lt_cv_archive_cmds_need_lc=no
11223 else
11224 lt_cv_archive_cmds_need_lc=yes
11225 fi
11226 allow_undefined_flag=$lt_save_allow_undefined_flag
11227 else
11228 cat conftest.err 1>&5
11229 fi
11230 $RM conftest*
11231 ;;
11232 esac
11233 fi
11234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11235 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11236 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11237 ;;
11238 esac
11239 fi
11240 ;;
11241 esac
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11395 printf %s "checking dynamic linker characteristics... " >&6; }
11396
11397 if test yes = "$GCC"; then
11398 case $host_os in
11399 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11400 *) lt_awk_arg='/^libraries:/' ;;
11401 esac
11402 case $host_os in
11403 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11404 *) lt_sed_strip_eq='s|=/|/|g' ;;
11405 esac
11406 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11407 case $lt_search_path_spec in
11408 *\;*)
11409 # if the path contains ";" then we assume it to be the separator
11410 # otherwise default to the standard path separator (i.e. ":") - it is
11411 # assumed that no part of a normal pathname contains ";" but that should
11412 # okay in the real world where ";" in dirpaths is itself problematic.
11413 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11414 ;;
11415 *)
11416 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11417 ;;
11418 esac
11419 # Ok, now we have the path, separated by spaces, we can step through it
11420 # and add multilib dir if necessary...
11421 lt_tmp_lt_search_path_spec=
11422 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11423 # ...but if some path component already ends with the multilib dir we assume
11424 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11425 case "$lt_multi_os_dir; $lt_search_path_spec " in
11426 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11427 lt_multi_os_dir=
11428 ;;
11429 esac
11430 for lt_sys_path in $lt_search_path_spec; do
11431 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11432 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11433 elif test -n "$lt_multi_os_dir"; then
11434 test -d "$lt_sys_path" && \
11435 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11436 fi
11437 done
11438 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11439 BEGIN {RS = " "; FS = "/|\n";} {
11440 lt_foo = "";
11441 lt_count = 0;
11442 for (lt_i = NF; lt_i > 0; lt_i--) {
11443 if ($lt_i != "" && $lt_i != ".") {
11444 if ($lt_i == "..") {
11445 lt_count++;
11446 } else {
11447 if (lt_count == 0) {
11448 lt_foo = "/" $lt_i lt_foo;
11449 } else {
11450 lt_count--;
11451 }
11452 }
11453 }
11454 }
11455 if (lt_foo != "") { lt_freq[lt_foo]++; }
11456 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11457 }'`
11458 # AWK program above erroneously prepends '/' to C:/dos/paths
11459 # for these hosts.
11460 case $host_os in
11461 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11462 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11463 esac
11464 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11465 else
11466 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11467 fi
11468 library_names_spec=
11469 libname_spec='lib$name'
11470 soname_spec=
11471 shrext_cmds=.so
11472 postinstall_cmds=
11473 postuninstall_cmds=
11474 finish_cmds=
11475 finish_eval=
11476 shlibpath_var=
11477 shlibpath_overrides_runpath=unknown
11478 version_type=none
11479 dynamic_linker="$host_os ld.so"
11480 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11481 need_lib_prefix=unknown
11482 hardcode_into_libs=no
11483
11484 # when you set need_version to no, make sure it does not cause -set_version
11485 # flags to be left without arguments
11486 need_version=unknown
11487
11488
11489
11490 case $host_os in
11491 aix3*)
11492 version_type=linux # correct to gnu/linux during the next big refactor
11493 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11494 shlibpath_var=LIBPATH
11495
11496 # AIX 3 has no versioning support, so we append a major version to the name.
11497 soname_spec='$libname$release$shared_ext$major'
11498 ;;
11499
11500 aix[4-9]*)
11501 version_type=linux # correct to gnu/linux during the next big refactor
11502 need_lib_prefix=no
11503 need_version=no
11504 hardcode_into_libs=yes
11505 if test ia64 = "$host_cpu"; then
11506 # AIX 5 supports IA64
11507 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11508 shlibpath_var=LD_LIBRARY_PATH
11509 else
11510 # With GCC up to 2.95.x, collect2 would create an import file
11511 # for dependence libraries. The import file would start with
11512 # the line '#! .'. This would cause the generated library to
11513 # depend on '.', always an invalid library. This was fixed in
11514 # development snapshots of GCC prior to 3.0.
11515 case $host_os in
11516 aix4 | aix4.[01] | aix4.[01].*)
11517 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11518 echo ' yes '
11519 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11520 :
11521 else
11522 can_build_shared=no
11523 fi
11524 ;;
11525 esac
11526 # Using Import Files as archive members, it is possible to support
11527 # filename-based versioning of shared library archives on AIX. While
11528 # this would work for both with and without runtime linking, it will
11529 # prevent static linking of such archives. So we do filename-based
11530 # shared library versioning with .so extension only, which is used
11531 # when both runtime linking and shared linking is enabled.
11532 # Unfortunately, runtime linking may impact performance, so we do
11533 # not want this to be the default eventually. Also, we use the
11534 # versioned .so libs for executables only if there is the -brtl
11535 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11536 # To allow for filename-based versioning support, we need to create
11537 # libNAME.so.V as an archive file, containing:
11538 # *) an Import File, referring to the versioned filename of the
11539 # archive as well as the shared archive member, telling the
11540 # bitwidth (32 or 64) of that shared object, and providing the
11541 # list of exported symbols of that shared object, eventually
11542 # decorated with the 'weak' keyword
11543 # *) the shared object with the F_LOADONLY flag set, to really avoid
11544 # it being seen by the linker.
11545 # At run time we better use the real file rather than another symlink,
11546 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11547
11548 case $with_aix_soname,$aix_use_runtimelinking in
11549 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11550 # soname into executable. Probably we can add versioning support to
11551 # collect2, so additional links can be useful in future.
11552 aix,yes) # traditional libtool
11553 dynamic_linker='AIX unversionable lib.so'
11554 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11555 # instead of lib<name>.a to let people know that these are not
11556 # typical AIX shared libraries.
11557 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11558 ;;
11559 aix,no) # traditional AIX only
11560 dynamic_linker='AIX lib.a(lib.so.V)'
11561 # We preserve .a as extension for shared libraries through AIX4.2
11562 # and later when we are not doing run time linking.
11563 library_names_spec='$libname$release.a $libname.a'
11564 soname_spec='$libname$release$shared_ext$major'
11565 ;;
11566 svr4,*) # full svr4 only
11567 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11568 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11569 # We do not specify a path in Import Files, so LIBPATH fires.
11570 shlibpath_overrides_runpath=yes
11571 ;;
11572 *,yes) # both, prefer svr4
11573 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11574 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11575 # unpreferred sharedlib libNAME.a needs extra handling
11576 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11577 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11578 # We do not specify a path in Import Files, so LIBPATH fires.
11579 shlibpath_overrides_runpath=yes
11580 ;;
11581 *,no) # both, prefer aix
11582 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11583 library_names_spec='$libname$release.a $libname.a'
11584 soname_spec='$libname$release$shared_ext$major'
11585 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11586 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11587 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11588 ;;
11589 esac
11590 shlibpath_var=LIBPATH
11591 fi
11592 ;;
11593
11594 amigaos*)
11595 case $host_cpu in
11596 powerpc)
11597 # Since July 2007 AmigaOS4 officially supports .so libraries.
11598 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11599 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11600 ;;
11601 m68k)
11602 library_names_spec='$libname.ixlibrary $libname.a'
11603 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11604 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11605 ;;
11606 esac
11607 ;;
11608
11609 beos*)
11610 library_names_spec='$libname$shared_ext'
11611 dynamic_linker="$host_os ld.so"
11612 shlibpath_var=LIBRARY_PATH
11613 ;;
11614
11615 bsdi[45]*)
11616 version_type=linux # correct to gnu/linux during the next big refactor
11617 need_version=no
11618 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11619 soname_spec='$libname$release$shared_ext$major'
11620 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11621 shlibpath_var=LD_LIBRARY_PATH
11622 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11623 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11624 # the default ld.so.conf also contains /usr/contrib/lib and
11625 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11626 # libtool to hard-code these into programs
11627 ;;
11628
11629 cygwin* | mingw* | pw32* | cegcc*)
11630 version_type=windows
11631 shrext_cmds=.dll
11632 need_version=no
11633 need_lib_prefix=no
11634
11635 case $GCC,$cc_basename in
11636 yes,*)
11637 # gcc
11638 library_names_spec='$libname.dll.a'
11639 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11640 postinstall_cmds='base_file=`basename \$file`~
11641 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11642 dldir=$destdir/`dirname \$dlpath`~
11643 test -d \$dldir || mkdir -p \$dldir~
11644 $install_prog $dir/$dlname \$dldir/$dlname~
11645 chmod a+x \$dldir/$dlname~
11646 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11647 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11648 fi'
11649 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11650 dlpath=$dir/\$dldll~
11651 $RM \$dlpath'
11652 shlibpath_overrides_runpath=yes
11653
11654 case $host_os in
11655 cygwin*)
11656 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11657 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11658
11659 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11660 ;;
11661 mingw* | cegcc*)
11662 # MinGW DLLs use traditional 'lib' prefix
11663 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11664 ;;
11665 pw32*)
11666 # pw32 DLLs use 'pw' prefix rather than 'lib'
11667 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11668 ;;
11669 esac
11670 dynamic_linker='Win32 ld.exe'
11671 ;;
11672
11673 *,cl* | *,icl*)
11674 # Native MSVC or ICC
11675 libname_spec='$name'
11676 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11677 library_names_spec='$libname.dll.lib'
11678
11679 case $build_os in
11680 mingw*)
11681 sys_lib_search_path_spec=
11682 lt_save_ifs=$IFS
11683 IFS=';'
11684 for lt_path in $LIB
11685 do
11686 IFS=$lt_save_ifs
11687 # Let DOS variable expansion print the short 8.3 style file name.
11688 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11689 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11690 done
11691 IFS=$lt_save_ifs
11692 # Convert to MSYS style.
11693 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11694 ;;
11695 cygwin*)
11696 # Convert to unix form, then to dos form, then back to unix form
11697 # but this time dos style (no spaces!) so that the unix form looks
11698 # like /cygdrive/c/PROGRA~1:/cygdr...
11699 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11700 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11701 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11702 ;;
11703 *)
11704 sys_lib_search_path_spec=$LIB
11705 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11706 # It is most probably a Windows format PATH.
11707 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11708 else
11709 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11710 fi
11711 # FIXME: find the short name or the path components, as spaces are
11712 # common. (e.g. "Program Files" -> "PROGRA~1")
11713 ;;
11714 esac
11715
11716 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11717 postinstall_cmds='base_file=`basename \$file`~
11718 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11719 dldir=$destdir/`dirname \$dlpath`~
11720 test -d \$dldir || mkdir -p \$dldir~
11721 $install_prog $dir/$dlname \$dldir/$dlname'
11722 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11723 dlpath=$dir/\$dldll~
11724 $RM \$dlpath'
11725 shlibpath_overrides_runpath=yes
11726 dynamic_linker='Win32 link.exe'
11727 ;;
11728
11729 *)
11730 # Assume MSVC and ICC wrapper
11731 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11732 dynamic_linker='Win32 ld.exe'
11733 ;;
11734 esac
11735 # FIXME: first we should search . and the directory the executable is in
11736 shlibpath_var=PATH
11737 ;;
11738
11739 darwin* | rhapsody*)
11740 dynamic_linker="$host_os dyld"
11741 version_type=darwin
11742 need_lib_prefix=no
11743 need_version=no
11744 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11745 soname_spec='$libname$release$major$shared_ext'
11746 shlibpath_overrides_runpath=yes
11747 shlibpath_var=DYLD_LIBRARY_PATH
11748 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11749
11750 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11751 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11752 ;;
11753
11754 dgux*)
11755 version_type=linux # correct to gnu/linux during the next big refactor
11756 need_lib_prefix=no
11757 need_version=no
11758 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11759 soname_spec='$libname$release$shared_ext$major'
11760 shlibpath_var=LD_LIBRARY_PATH
11761 ;;
11762
11763 freebsd* | dragonfly* | midnightbsd*)
11764 # DragonFly does not have aout. When/if they implement a new
11765 # versioning mechanism, adjust this.
11766 if test -x /usr/bin/objformat; then
11767 objformat=`/usr/bin/objformat`
11768 else
11769 case $host_os in
11770 freebsd[23].*) objformat=aout ;;
11771 *) objformat=elf ;;
11772 esac
11773 fi
11774 version_type=freebsd-$objformat
11775 case $version_type in
11776 freebsd-elf*)
11777 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11778 soname_spec='$libname$release$shared_ext$major'
11779 need_version=no
11780 need_lib_prefix=no
11781 ;;
11782 freebsd-*)
11783 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11784 need_version=yes
11785 ;;
11786 esac
11787 shlibpath_var=LD_LIBRARY_PATH
11788 case $host_os in
11789 freebsd2.*)
11790 shlibpath_overrides_runpath=yes
11791 ;;
11792 freebsd3.[01]* | freebsdelf3.[01]*)
11793 shlibpath_overrides_runpath=yes
11794 hardcode_into_libs=yes
11795 ;;
11796 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11797 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11798 shlibpath_overrides_runpath=no
11799 hardcode_into_libs=yes
11800 ;;
11801 *) # from 4.6 on, and DragonFly
11802 shlibpath_overrides_runpath=yes
11803 hardcode_into_libs=yes
11804 ;;
11805 esac
11806 ;;
11807
11808 haiku*)
11809 version_type=linux # correct to gnu/linux during the next big refactor
11810 need_lib_prefix=no
11811 need_version=no
11812 dynamic_linker="$host_os runtime_loader"
11813 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11814 soname_spec='$libname$release$shared_ext$major'
11815 shlibpath_var=LIBRARY_PATH
11816 shlibpath_overrides_runpath=no
11817 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11818 hardcode_into_libs=yes
11819 ;;
11820
11821 hpux9* | hpux10* | hpux11*)
11822 # Give a soname corresponding to the major version so that dld.sl refuses to
11823 # link against other versions.
11824 version_type=sunos
11825 need_lib_prefix=no
11826 need_version=no
11827 case $host_cpu in
11828 ia64*)
11829 shrext_cmds='.so'
11830 hardcode_into_libs=yes
11831 dynamic_linker="$host_os dld.so"
11832 shlibpath_var=LD_LIBRARY_PATH
11833 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11834 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11835 soname_spec='$libname$release$shared_ext$major'
11836 if test 32 = "$HPUX_IA64_MODE"; then
11837 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11838 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11839 else
11840 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11841 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11842 fi
11843 ;;
11844 hppa*64*)
11845 shrext_cmds='.sl'
11846 hardcode_into_libs=yes
11847 dynamic_linker="$host_os dld.sl"
11848 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11849 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11850 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11851 soname_spec='$libname$release$shared_ext$major'
11852 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11853 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11854 ;;
11855 *)
11856 shrext_cmds='.sl'
11857 dynamic_linker="$host_os dld.sl"
11858 shlibpath_var=SHLIB_PATH
11859 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11860 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11861 soname_spec='$libname$release$shared_ext$major'
11862 ;;
11863 esac
11864 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11865 postinstall_cmds='chmod 555 $lib'
11866 # or fails outright, so override atomically:
11867 install_override_mode=555
11868 ;;
11869
11870 interix[3-9]*)
11871 version_type=linux # correct to gnu/linux during the next big refactor
11872 need_lib_prefix=no
11873 need_version=no
11874 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11875 soname_spec='$libname$release$shared_ext$major'
11876 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11877 shlibpath_var=LD_LIBRARY_PATH
11878 shlibpath_overrides_runpath=no
11879 hardcode_into_libs=yes
11880 ;;
11881
11882 irix5* | irix6* | nonstopux*)
11883 case $host_os in
11884 nonstopux*) version_type=nonstopux ;;
11885 *)
11886 if test yes = "$lt_cv_prog_gnu_ld"; then
11887 version_type=linux # correct to gnu/linux during the next big refactor
11888 else
11889 version_type=irix
11890 fi ;;
11891 esac
11892 need_lib_prefix=no
11893 need_version=no
11894 soname_spec='$libname$release$shared_ext$major'
11895 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11896 case $host_os in
11897 irix5* | nonstopux*)
11898 libsuff= shlibsuff=
11899 ;;
11900 *)
11901 case $LD in # libtool.m4 will add one of these switches to LD
11902 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11903 libsuff= shlibsuff= libmagic=32-bit;;
11904 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11905 libsuff=32 shlibsuff=N32 libmagic=N32;;
11906 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11907 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11908 *) libsuff= shlibsuff= libmagic=never-match;;
11909 esac
11910 ;;
11911 esac
11912 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11913 shlibpath_overrides_runpath=no
11914 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11915 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11916 hardcode_into_libs=yes
11917 ;;
11918
11919 # No shared lib support for Linux oldld, aout, or coff.
11920 linux*oldld* | linux*aout* | linux*coff*)
11921 dynamic_linker=no
11922 ;;
11923
11924 linux*android*)
11925 version_type=none # Android doesn't support versioned libraries.
11926 need_lib_prefix=no
11927 need_version=no
11928 library_names_spec='$libname$release$shared_ext'
11929 soname_spec='$libname$release$shared_ext'
11930 finish_cmds=
11931 shlibpath_var=LD_LIBRARY_PATH
11932 shlibpath_overrides_runpath=yes
11933
11934 # This implies no fast_install, which is unacceptable.
11935 # Some rework will be needed to allow for fast_install
11936 # before this can be enabled.
11937 hardcode_into_libs=yes
11938
11939 dynamic_linker='Android linker'
11940 # Don't embed -rpath directories since the linker doesn't support them.
11941 hardcode_libdir_flag_spec='-L$libdir'
11942 ;;
11943
11944 # This must be glibc/ELF.
11945 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11946 version_type=linux # correct to gnu/linux during the next big refactor
11947 need_lib_prefix=no
11948 need_version=no
11949 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11950 soname_spec='$libname$release$shared_ext$major'
11951 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11952 shlibpath_var=LD_LIBRARY_PATH
11953 shlibpath_overrides_runpath=no
11954
11955 # Some binutils ld are patched to set DT_RUNPATH
11956 if test ${lt_cv_shlibpath_overrides_runpath+y}
11957 then :
11958 printf %s "(cached) " >&6
11959 else case e in #(
11960 e) lt_cv_shlibpath_overrides_runpath=no
11961 save_LDFLAGS=$LDFLAGS
11962 save_libdir=$libdir
11963 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11964 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11966 /* end confdefs.h. */
11967
11968 int
11969 main (void)
11970 {
11971
11972 ;
11973 return 0;
11974 }
11975 _ACEOF
11976 if ac_fn_c_try_link "$LINENO"
11977 then :
11978 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
11979 then :
11980 lt_cv_shlibpath_overrides_runpath=yes
11981 fi
11982 fi
11983 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11984 conftest$ac_exeext conftest.$ac_ext
11985 LDFLAGS=$save_LDFLAGS
11986 libdir=$save_libdir
11987 ;;
11988 esac
11989 fi
11990
11991 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11992
11993 # This implies no fast_install, which is unacceptable.
11994 # Some rework will be needed to allow for fast_install
11995 # before this can be enabled.
11996 hardcode_into_libs=yes
11997
11998 # Ideally, we could use ldconfig to report *all* directores which are
11999 # searched for libraries, however this is still not possible. Aside from not
12000 # being certain /sbin/ldconfig is available, command
12001 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12002 # even though it is searched at run-time. Try to do the best guess by
12003 # appending ld.so.conf contents (and includes) to the search path.
12004 if test -f /etc/ld.so.conf; then
12005 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
12006 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12007 fi
12008
12009 # We used to test for /lib/ld.so.1 and disable shared libraries on
12010 # powerpc, because MkLinux only supported shared libraries with the
12011 # GNU dynamic linker. Since this was broken with cross compilers,
12012 # most powerpc-linux boxes support dynamic linking these days and
12013 # people can always --disable-shared, the test was removed, and we
12014 # assume the GNU/Linux dynamic linker is in use.
12015 dynamic_linker='GNU/Linux ld.so'
12016 ;;
12017
12018 netbsd*)
12019 version_type=sunos
12020 need_lib_prefix=no
12021 need_version=no
12022 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12023 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12024 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12025 dynamic_linker='NetBSD (a.out) ld.so'
12026 else
12027 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12028 soname_spec='$libname$release$shared_ext$major'
12029 dynamic_linker='NetBSD ld.elf_so'
12030 fi
12031 shlibpath_var=LD_LIBRARY_PATH
12032 shlibpath_overrides_runpath=yes
12033 hardcode_into_libs=yes
12034 ;;
12035
12036 newsos6)
12037 version_type=linux # correct to gnu/linux during the next big refactor
12038 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12039 shlibpath_var=LD_LIBRARY_PATH
12040 shlibpath_overrides_runpath=yes
12041 ;;
12042
12043 *nto* | *qnx*)
12044 version_type=qnx
12045 need_lib_prefix=no
12046 need_version=no
12047 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12048 soname_spec='$libname$release$shared_ext$major'
12049 shlibpath_var=LD_LIBRARY_PATH
12050 shlibpath_overrides_runpath=no
12051 hardcode_into_libs=yes
12052 dynamic_linker='ldqnx.so'
12053 ;;
12054
12055 openbsd* | bitrig*)
12056 version_type=sunos
12057 sys_lib_dlsearch_path_spec=/usr/lib
12058 need_lib_prefix=no
12059 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12060 need_version=no
12061 else
12062 need_version=yes
12063 fi
12064 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12065 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12066 shlibpath_var=LD_LIBRARY_PATH
12067 shlibpath_overrides_runpath=yes
12068 ;;
12069
12070 os2*)
12071 libname_spec='$name'
12072 version_type=windows
12073 shrext_cmds=.dll
12074 need_version=no
12075 need_lib_prefix=no
12076 # OS/2 can only load a DLL with a base name of 8 characters or less.
12077 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12078 v=$($ECHO $release$versuffix | tr -d .-);
12079 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12080 $ECHO $n$v`$shared_ext'
12081 library_names_spec='${libname}_dll.$libext'
12082 dynamic_linker='OS/2 ld.exe'
12083 shlibpath_var=BEGINLIBPATH
12084 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12085 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12086 postinstall_cmds='base_file=`basename \$file`~
12087 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12088 dldir=$destdir/`dirname \$dlpath`~
12089 test -d \$dldir || mkdir -p \$dldir~
12090 $install_prog $dir/$dlname \$dldir/$dlname~
12091 chmod a+x \$dldir/$dlname~
12092 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12093 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12094 fi'
12095 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12096 dlpath=$dir/\$dldll~
12097 $RM \$dlpath'
12098 ;;
12099
12100 osf3* | osf4* | osf5*)
12101 version_type=osf
12102 need_lib_prefix=no
12103 need_version=no
12104 soname_spec='$libname$release$shared_ext$major'
12105 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12106 shlibpath_var=LD_LIBRARY_PATH
12107 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12108 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12109 ;;
12110
12111 rdos*)
12112 dynamic_linker=no
12113 ;;
12114
12115 solaris*)
12116 version_type=linux # correct to gnu/linux during the next big refactor
12117 need_lib_prefix=no
12118 need_version=no
12119 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12120 soname_spec='$libname$release$shared_ext$major'
12121 shlibpath_var=LD_LIBRARY_PATH
12122 shlibpath_overrides_runpath=yes
12123 hardcode_into_libs=yes
12124 # ldd complains unless libraries are executable
12125 postinstall_cmds='chmod +x $lib'
12126 ;;
12127
12128 sunos4*)
12129 version_type=sunos
12130 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12131 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12132 shlibpath_var=LD_LIBRARY_PATH
12133 shlibpath_overrides_runpath=yes
12134 if test yes = "$with_gnu_ld"; then
12135 need_lib_prefix=no
12136 fi
12137 need_version=yes
12138 ;;
12139
12140 sysv4 | sysv4.3*)
12141 version_type=linux # correct to gnu/linux during the next big refactor
12142 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12143 soname_spec='$libname$release$shared_ext$major'
12144 shlibpath_var=LD_LIBRARY_PATH
12145 case $host_vendor in
12146 sni)
12147 shlibpath_overrides_runpath=no
12148 need_lib_prefix=no
12149 runpath_var=LD_RUN_PATH
12150 ;;
12151 siemens)
12152 need_lib_prefix=no
12153 ;;
12154 motorola)
12155 need_lib_prefix=no
12156 need_version=no
12157 shlibpath_overrides_runpath=no
12158 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12159 ;;
12160 esac
12161 ;;
12162
12163 sysv4*MP*)
12164 if test -d /usr/nec; then
12165 version_type=linux # correct to gnu/linux during the next big refactor
12166 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12167 soname_spec='$libname$shared_ext.$major'
12168 shlibpath_var=LD_LIBRARY_PATH
12169 fi
12170 ;;
12171
12172 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12173 version_type=sco
12174 need_lib_prefix=no
12175 need_version=no
12176 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12177 soname_spec='$libname$release$shared_ext$major'
12178 shlibpath_var=LD_LIBRARY_PATH
12179 shlibpath_overrides_runpath=yes
12180 hardcode_into_libs=yes
12181 if test yes = "$with_gnu_ld"; then
12182 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12183 else
12184 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12185 case $host_os in
12186 sco3.2v5*)
12187 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12188 ;;
12189 esac
12190 fi
12191 sys_lib_dlsearch_path_spec='/usr/lib'
12192 ;;
12193
12194 tpf*)
12195 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12196 version_type=linux # correct to gnu/linux during the next big refactor
12197 need_lib_prefix=no
12198 need_version=no
12199 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12200 shlibpath_var=LD_LIBRARY_PATH
12201 shlibpath_overrides_runpath=no
12202 hardcode_into_libs=yes
12203 ;;
12204
12205 uts4*)
12206 version_type=linux # correct to gnu/linux during the next big refactor
12207 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12208 soname_spec='$libname$release$shared_ext$major'
12209 shlibpath_var=LD_LIBRARY_PATH
12210 ;;
12211
12212 *)
12213 dynamic_linker=no
12214 ;;
12215 esac
12216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12217 printf "%s\n" "$dynamic_linker" >&6; }
12218 test no = "$dynamic_linker" && can_build_shared=no
12219
12220 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12221 if test yes = "$GCC"; then
12222 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12223 fi
12224
12225 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12226 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12227 fi
12228
12229 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12230 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12231 fi
12232
12233 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12234 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12235
12236 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12237 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12238
12239 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12240 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12241
12242
12243
12244
12245
12246
12247
12248
12249
12250
12251
12252
12253
12254
12255
12256
12257
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267
12268
12269
12270
12271
12272
12273
12274
12275
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310
12311
12312
12313
12314
12315
12316
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12339 printf %s "checking how to hardcode library paths into programs... " >&6; }
12340 hardcode_action=
12341 if test -n "$hardcode_libdir_flag_spec" ||
12342 test -n "$runpath_var" ||
12343 test yes = "$hardcode_automatic"; then
12344
12345 # We can hardcode non-existent directories.
12346 if test no != "$hardcode_direct" &&
12347 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12348 # have to relink, otherwise we might link with an installed library
12349 # when we should be linking with a yet-to-be-installed one
12350 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12351 test no != "$hardcode_minus_L"; then
12352 # Linking always hardcodes the temporary library directory.
12353 hardcode_action=relink
12354 else
12355 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12356 hardcode_action=immediate
12357 fi
12358 else
12359 # We cannot hardcode anything, or else we can only hardcode existing
12360 # directories.
12361 hardcode_action=unsupported
12362 fi
12363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12364 printf "%s\n" "$hardcode_action" >&6; }
12365
12366 if test relink = "$hardcode_action" ||
12367 test yes = "$inherit_rpath"; then
12368 # Fast installation is not supported
12369 enable_fast_install=no
12370 elif test yes = "$shlibpath_overrides_runpath" ||
12371 test no = "$enable_shared"; then
12372 # Fast installation is not necessary
12373 enable_fast_install=needless
12374 fi
12375
12376
12377
12378
12379
12380
12381 if test yes != "$enable_dlopen"; then
12382 enable_dlopen=unknown
12383 enable_dlopen_self=unknown
12384 enable_dlopen_self_static=unknown
12385 else
12386 lt_cv_dlopen=no
12387 lt_cv_dlopen_libs=
12388
12389 case $host_os in
12390 beos*)
12391 lt_cv_dlopen=load_add_on
12392 lt_cv_dlopen_libs=
12393 lt_cv_dlopen_self=yes
12394 ;;
12395
12396 mingw* | pw32* | cegcc*)
12397 lt_cv_dlopen=LoadLibrary
12398 lt_cv_dlopen_libs=
12399 ;;
12400
12401 cygwin*)
12402 lt_cv_dlopen=dlopen
12403 lt_cv_dlopen_libs=
12404 ;;
12405
12406 darwin*)
12407 # if libdl is installed we need to link against it
12408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12409 printf %s "checking for dlopen in -ldl... " >&6; }
12410 if test ${ac_cv_lib_dl_dlopen+y}
12411 then :
12412 printf %s "(cached) " >&6
12413 else case e in #(
12414 e) ac_check_lib_save_LIBS=$LIBS
12415 LIBS="-ldl $LIBS"
12416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12417 /* end confdefs.h. */
12418
12419 /* Override any GCC internal prototype to avoid an error.
12420 Use char because int might match the return type of a GCC
12421 builtin and then its argument prototype would still apply.
12422 The 'extern "C"' is for builds by C++ compilers;
12423 although this is not generally supported in C code supporting it here
12424 has little cost and some practical benefit (sr 110532). */
12425 #ifdef __cplusplus
12426 extern "C"
12427 #endif
12428 char dlopen (void);
12429 int
12430 main (void)
12431 {
12432 return dlopen ();
12433 ;
12434 return 0;
12435 }
12436 _ACEOF
12437 if ac_fn_c_try_link "$LINENO"
12438 then :
12439 ac_cv_lib_dl_dlopen=yes
12440 else case e in #(
12441 e) ac_cv_lib_dl_dlopen=no ;;
12442 esac
12443 fi
12444 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12445 conftest$ac_exeext conftest.$ac_ext
12446 LIBS=$ac_check_lib_save_LIBS ;;
12447 esac
12448 fi
12449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12450 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12451 if test "x$ac_cv_lib_dl_dlopen" = xyes
12452 then :
12453 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12454 else case e in #(
12455 e)
12456 lt_cv_dlopen=dyld
12457 lt_cv_dlopen_libs=
12458 lt_cv_dlopen_self=yes
12459 ;;
12460 esac
12461 fi
12462
12463 ;;
12464
12465 tpf*)
12466 # Don't try to run any link tests for TPF. We know it's impossible
12467 # because TPF is a cross-compiler, and we know how we open DSOs.
12468 lt_cv_dlopen=dlopen
12469 lt_cv_dlopen_libs=
12470 lt_cv_dlopen_self=no
12471 ;;
12472
12473 *)
12474 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12475 if test "x$ac_cv_func_shl_load" = xyes
12476 then :
12477 lt_cv_dlopen=shl_load
12478 else case e in #(
12479 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12480 printf %s "checking for shl_load in -ldld... " >&6; }
12481 if test ${ac_cv_lib_dld_shl_load+y}
12482 then :
12483 printf %s "(cached) " >&6
12484 else case e in #(
12485 e) ac_check_lib_save_LIBS=$LIBS
12486 LIBS="-ldld $LIBS"
12487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12488 /* end confdefs.h. */
12489
12490 /* Override any GCC internal prototype to avoid an error.
12491 Use char because int might match the return type of a GCC
12492 builtin and then its argument prototype would still apply.
12493 The 'extern "C"' is for builds by C++ compilers;
12494 although this is not generally supported in C code supporting it here
12495 has little cost and some practical benefit (sr 110532). */
12496 #ifdef __cplusplus
12497 extern "C"
12498 #endif
12499 char shl_load (void);
12500 int
12501 main (void)
12502 {
12503 return shl_load ();
12504 ;
12505 return 0;
12506 }
12507 _ACEOF
12508 if ac_fn_c_try_link "$LINENO"
12509 then :
12510 ac_cv_lib_dld_shl_load=yes
12511 else case e in #(
12512 e) ac_cv_lib_dld_shl_load=no ;;
12513 esac
12514 fi
12515 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12516 conftest$ac_exeext conftest.$ac_ext
12517 LIBS=$ac_check_lib_save_LIBS ;;
12518 esac
12519 fi
12520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12521 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12522 if test "x$ac_cv_lib_dld_shl_load" = xyes
12523 then :
12524 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12525 else case e in #(
12526 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12527 if test "x$ac_cv_func_dlopen" = xyes
12528 then :
12529 lt_cv_dlopen=dlopen
12530 else case e in #(
12531 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12532 printf %s "checking for dlopen in -ldl... " >&6; }
12533 if test ${ac_cv_lib_dl_dlopen+y}
12534 then :
12535 printf %s "(cached) " >&6
12536 else case e in #(
12537 e) ac_check_lib_save_LIBS=$LIBS
12538 LIBS="-ldl $LIBS"
12539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12540 /* end confdefs.h. */
12541
12542 /* Override any GCC internal prototype to avoid an error.
12543 Use char because int might match the return type of a GCC
12544 builtin and then its argument prototype would still apply.
12545 The 'extern "C"' is for builds by C++ compilers;
12546 although this is not generally supported in C code supporting it here
12547 has little cost and some practical benefit (sr 110532). */
12548 #ifdef __cplusplus
12549 extern "C"
12550 #endif
12551 char dlopen (void);
12552 int
12553 main (void)
12554 {
12555 return dlopen ();
12556 ;
12557 return 0;
12558 }
12559 _ACEOF
12560 if ac_fn_c_try_link "$LINENO"
12561 then :
12562 ac_cv_lib_dl_dlopen=yes
12563 else case e in #(
12564 e) ac_cv_lib_dl_dlopen=no ;;
12565 esac
12566 fi
12567 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12568 conftest$ac_exeext conftest.$ac_ext
12569 LIBS=$ac_check_lib_save_LIBS ;;
12570 esac
12571 fi
12572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12573 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12574 if test "x$ac_cv_lib_dl_dlopen" = xyes
12575 then :
12576 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12577 else case e in #(
12578 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12579 printf %s "checking for dlopen in -lsvld... " >&6; }
12580 if test ${ac_cv_lib_svld_dlopen+y}
12581 then :
12582 printf %s "(cached) " >&6
12583 else case e in #(
12584 e) ac_check_lib_save_LIBS=$LIBS
12585 LIBS="-lsvld $LIBS"
12586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12587 /* end confdefs.h. */
12588
12589 /* Override any GCC internal prototype to avoid an error.
12590 Use char because int might match the return type of a GCC
12591 builtin and then its argument prototype would still apply.
12592 The 'extern "C"' is for builds by C++ compilers;
12593 although this is not generally supported in C code supporting it here
12594 has little cost and some practical benefit (sr 110532). */
12595 #ifdef __cplusplus
12596 extern "C"
12597 #endif
12598 char dlopen (void);
12599 int
12600 main (void)
12601 {
12602 return dlopen ();
12603 ;
12604 return 0;
12605 }
12606 _ACEOF
12607 if ac_fn_c_try_link "$LINENO"
12608 then :
12609 ac_cv_lib_svld_dlopen=yes
12610 else case e in #(
12611 e) ac_cv_lib_svld_dlopen=no ;;
12612 esac
12613 fi
12614 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12615 conftest$ac_exeext conftest.$ac_ext
12616 LIBS=$ac_check_lib_save_LIBS ;;
12617 esac
12618 fi
12619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12620 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12621 if test "x$ac_cv_lib_svld_dlopen" = xyes
12622 then :
12623 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12624 else case e in #(
12625 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12626 printf %s "checking for dld_link in -ldld... " >&6; }
12627 if test ${ac_cv_lib_dld_dld_link+y}
12628 then :
12629 printf %s "(cached) " >&6
12630 else case e in #(
12631 e) ac_check_lib_save_LIBS=$LIBS
12632 LIBS="-ldld $LIBS"
12633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12634 /* end confdefs.h. */
12635
12636 /* Override any GCC internal prototype to avoid an error.
12637 Use char because int might match the return type of a GCC
12638 builtin and then its argument prototype would still apply.
12639 The 'extern "C"' is for builds by C++ compilers;
12640 although this is not generally supported in C code supporting it here
12641 has little cost and some practical benefit (sr 110532). */
12642 #ifdef __cplusplus
12643 extern "C"
12644 #endif
12645 char dld_link (void);
12646 int
12647 main (void)
12648 {
12649 return dld_link ();
12650 ;
12651 return 0;
12652 }
12653 _ACEOF
12654 if ac_fn_c_try_link "$LINENO"
12655 then :
12656 ac_cv_lib_dld_dld_link=yes
12657 else case e in #(
12658 e) ac_cv_lib_dld_dld_link=no ;;
12659 esac
12660 fi
12661 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12662 conftest$ac_exeext conftest.$ac_ext
12663 LIBS=$ac_check_lib_save_LIBS ;;
12664 esac
12665 fi
12666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12667 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12668 if test "x$ac_cv_lib_dld_dld_link" = xyes
12669 then :
12670 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12671 fi
12672
12673 ;;
12674 esac
12675 fi
12676
12677 ;;
12678 esac
12679 fi
12680
12681 ;;
12682 esac
12683 fi
12684
12685 ;;
12686 esac
12687 fi
12688
12689 ;;
12690 esac
12691 fi
12692
12693 ;;
12694 esac
12695
12696 if test no = "$lt_cv_dlopen"; then
12697 enable_dlopen=no
12698 else
12699 enable_dlopen=yes
12700 fi
12701
12702 case $lt_cv_dlopen in
12703 dlopen)
12704 save_CPPFLAGS=$CPPFLAGS
12705 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12706
12707 save_LDFLAGS=$LDFLAGS
12708 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12709
12710 save_LIBS=$LIBS
12711 LIBS="$lt_cv_dlopen_libs $LIBS"
12712
12713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12714 printf %s "checking whether a program can dlopen itself... " >&6; }
12715 if test ${lt_cv_dlopen_self+y}
12716 then :
12717 printf %s "(cached) " >&6
12718 else case e in #(
12719 e) if test yes = "$cross_compiling"; then :
12720 lt_cv_dlopen_self=cross
12721 else
12722 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12723 lt_status=$lt_dlunknown
12724 cat > conftest.$ac_ext <<_LT_EOF
12725 #line $LINENO "configure"
12726 #include "confdefs.h"
12727
12728 #if HAVE_DLFCN_H
12729 #include <dlfcn.h>
12730 #endif
12731
12732 #include <stdio.h>
12733
12734 #ifdef RTLD_GLOBAL
12735 # define LT_DLGLOBAL RTLD_GLOBAL
12736 #else
12737 # ifdef DL_GLOBAL
12738 # define LT_DLGLOBAL DL_GLOBAL
12739 # else
12740 # define LT_DLGLOBAL 0
12741 # endif
12742 #endif
12743
12744 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12745 find out it does not work in some platform. */
12746 #ifndef LT_DLLAZY_OR_NOW
12747 # ifdef RTLD_LAZY
12748 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12749 # else
12750 # ifdef DL_LAZY
12751 # define LT_DLLAZY_OR_NOW DL_LAZY
12752 # else
12753 # ifdef RTLD_NOW
12754 # define LT_DLLAZY_OR_NOW RTLD_NOW
12755 # else
12756 # ifdef DL_NOW
12757 # define LT_DLLAZY_OR_NOW DL_NOW
12758 # else
12759 # define LT_DLLAZY_OR_NOW 0
12760 # endif
12761 # endif
12762 # endif
12763 # endif
12764 #endif
12765
12766 /* When -fvisibility=hidden is used, assume the code has been annotated
12767 correspondingly for the symbols needed. */
12768 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12769 int fnord () __attribute__((visibility("default")));
12770 #endif
12771
12772 int fnord () { return 42; }
12773 int main ()
12774 {
12775 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12776 int status = $lt_dlunknown;
12777
12778 if (self)
12779 {
12780 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12781 else
12782 {
12783 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12784 else puts (dlerror ());
12785 }
12786 /* dlclose (self); */
12787 }
12788 else
12789 puts (dlerror ());
12790
12791 return status;
12792 }
12793 _LT_EOF
12794 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12795 (eval $ac_link) 2>&5
12796 ac_status=$?
12797 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12798 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12799 (./conftest; exit; ) >&5 2>/dev/null
12800 lt_status=$?
12801 case x$lt_status in
12802 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12803 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12804 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12805 esac
12806 else :
12807 # compilation failed
12808 lt_cv_dlopen_self=no
12809 fi
12810 fi
12811 rm -fr conftest*
12812
12813 ;;
12814 esac
12815 fi
12816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12817 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12818
12819 if test yes = "$lt_cv_dlopen_self"; then
12820 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12822 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12823 if test ${lt_cv_dlopen_self_static+y}
12824 then :
12825 printf %s "(cached) " >&6
12826 else case e in #(
12827 e) if test yes = "$cross_compiling"; then :
12828 lt_cv_dlopen_self_static=cross
12829 else
12830 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12831 lt_status=$lt_dlunknown
12832 cat > conftest.$ac_ext <<_LT_EOF
12833 #line $LINENO "configure"
12834 #include "confdefs.h"
12835
12836 #if HAVE_DLFCN_H
12837 #include <dlfcn.h>
12838 #endif
12839
12840 #include <stdio.h>
12841
12842 #ifdef RTLD_GLOBAL
12843 # define LT_DLGLOBAL RTLD_GLOBAL
12844 #else
12845 # ifdef DL_GLOBAL
12846 # define LT_DLGLOBAL DL_GLOBAL
12847 # else
12848 # define LT_DLGLOBAL 0
12849 # endif
12850 #endif
12851
12852 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12853 find out it does not work in some platform. */
12854 #ifndef LT_DLLAZY_OR_NOW
12855 # ifdef RTLD_LAZY
12856 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12857 # else
12858 # ifdef DL_LAZY
12859 # define LT_DLLAZY_OR_NOW DL_LAZY
12860 # else
12861 # ifdef RTLD_NOW
12862 # define LT_DLLAZY_OR_NOW RTLD_NOW
12863 # else
12864 # ifdef DL_NOW
12865 # define LT_DLLAZY_OR_NOW DL_NOW
12866 # else
12867 # define LT_DLLAZY_OR_NOW 0
12868 # endif
12869 # endif
12870 # endif
12871 # endif
12872 #endif
12873
12874 /* When -fvisibility=hidden is used, assume the code has been annotated
12875 correspondingly for the symbols needed. */
12876 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12877 int fnord () __attribute__((visibility("default")));
12878 #endif
12879
12880 int fnord () { return 42; }
12881 int main ()
12882 {
12883 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12884 int status = $lt_dlunknown;
12885
12886 if (self)
12887 {
12888 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12889 else
12890 {
12891 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12892 else puts (dlerror ());
12893 }
12894 /* dlclose (self); */
12895 }
12896 else
12897 puts (dlerror ());
12898
12899 return status;
12900 }
12901 _LT_EOF
12902 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12903 (eval $ac_link) 2>&5
12904 ac_status=$?
12905 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12906 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12907 (./conftest; exit; ) >&5 2>/dev/null
12908 lt_status=$?
12909 case x$lt_status in
12910 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12911 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12912 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12913 esac
12914 else :
12915 # compilation failed
12916 lt_cv_dlopen_self_static=no
12917 fi
12918 fi
12919 rm -fr conftest*
12920
12921 ;;
12922 esac
12923 fi
12924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12925 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
12926 fi
12927
12928 CPPFLAGS=$save_CPPFLAGS
12929 LDFLAGS=$save_LDFLAGS
12930 LIBS=$save_LIBS
12931 ;;
12932 esac
12933
12934 case $lt_cv_dlopen_self in
12935 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12936 *) enable_dlopen_self=unknown ;;
12937 esac
12938
12939 case $lt_cv_dlopen_self_static in
12940 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12941 *) enable_dlopen_self_static=unknown ;;
12942 esac
12943 fi
12944
12945
12946
12947
12948
12949
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961 striplib=
12962 old_striplib=
12963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12964 printf %s "checking whether stripping libraries is possible... " >&6; }
12965 if test -z "$STRIP"; then
12966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12967 printf "%s\n" "no" >&6; }
12968 else
12969 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12970 old_striplib="$STRIP --strip-debug"
12971 striplib="$STRIP --strip-unneeded"
12972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12973 printf "%s\n" "yes" >&6; }
12974 else
12975 case $host_os in
12976 darwin*)
12977 # FIXME - insert some real tests, host_os isn't really good enough
12978 striplib="$STRIP -x"
12979 old_striplib="$STRIP -S"
12980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12981 printf "%s\n" "yes" >&6; }
12982 ;;
12983 freebsd*)
12984 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
12985 old_striplib="$STRIP --strip-debug"
12986 striplib="$STRIP --strip-unneeded"
12987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12988 printf "%s\n" "yes" >&6; }
12989 else
12990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12991 printf "%s\n" "no" >&6; }
12992 fi
12993 ;;
12994 *)
12995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12996 printf "%s\n" "no" >&6; }
12997 ;;
12998 esac
12999 fi
13000 fi
13001
13002
13003
13004
13005
13006
13007
13008
13009
13010
13011
13012
13013 # Report what library types will actually be built
13014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13015 printf %s "checking if libtool supports shared libraries... " >&6; }
13016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13017 printf "%s\n" "$can_build_shared" >&6; }
13018
13019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13020 printf %s "checking whether to build shared libraries... " >&6; }
13021 test no = "$can_build_shared" && enable_shared=no
13022
13023 # On AIX, shared libraries and static libraries use the same namespace, and
13024 # are all built from PIC.
13025 case $host_os in
13026 aix3*)
13027 test yes = "$enable_shared" && enable_static=no
13028 if test -n "$RANLIB"; then
13029 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13030 postinstall_cmds='$RANLIB $lib'
13031 fi
13032 ;;
13033
13034 aix[4-9]*)
13035 if test ia64 != "$host_cpu"; then
13036 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13037 yes,aix,yes) ;; # shared object as lib.so file only
13038 yes,svr4,*) ;; # shared object as lib.so archive member only
13039 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13040 esac
13041 fi
13042 ;;
13043 esac
13044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13045 printf "%s\n" "$enable_shared" >&6; }
13046
13047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13048 printf %s "checking whether to build static libraries... " >&6; }
13049 # Make sure either enable_shared or enable_static is yes.
13050 test yes = "$enable_shared" || enable_static=yes
13051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13052 printf "%s\n" "$enable_static" >&6; }
13053
13054
13055
13056
13057 fi
13058 ac_ext=c
13059 ac_cpp='$CPP $CPPFLAGS'
13060 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13061 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13062 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13063
13064 CC=$lt_save_CC
13065
13066
13067
13068
13069
13070
13071
13072
13073
13074
13075
13076
13077
13078
13079
13080 ac_config_commands="$ac_config_commands libtool"
13081
13082
13083
13084
13085 # Only expand once:
13086
13087
13088
13089 # Require xorg-macros minimum of 1.12 for DocBook external references
13090
13091
13092
13093
13094
13095
13096
13097
13098
13099
13100
13101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
13102 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
13103 if test ${ac_cv_c_undeclared_builtin_options+y}
13104 then :
13105 printf %s "(cached) " >&6
13106 else case e in #(
13107 e) ac_save_CFLAGS=$CFLAGS
13108 ac_cv_c_undeclared_builtin_options='cannot detect'
13109 for ac_arg in '' -fno-builtin; do
13110 CFLAGS="$ac_save_CFLAGS $ac_arg"
13111 # This test program should *not* compile successfully.
13112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13113 /* end confdefs.h. */
13114
13115 int
13116 main (void)
13117 {
13118 (void) strchr;
13119 ;
13120 return 0;
13121 }
13122 _ACEOF
13123 if ac_fn_c_try_compile "$LINENO"
13124 then :
13125
13126 else case e in #(
13127 e) # This test program should compile successfully.
13128 # No library function is consistently available on
13129 # freestanding implementations, so test against a dummy
13130 # declaration. Include always-available headers on the
13131 # off chance that they somehow elicit warnings.
13132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13133 /* end confdefs.h. */
13134 #include <float.h>
13135 #include <limits.h>
13136 #include <stdarg.h>
13137 #include <stddef.h>
13138 extern void ac_decl (int, char *);
13139
13140 int
13141 main (void)
13142 {
13143 (void) ac_decl (0, (char *) 0);
13144 (void) ac_decl;
13145
13146 ;
13147 return 0;
13148 }
13149 _ACEOF
13150 if ac_fn_c_try_compile "$LINENO"
13151 then :
13152 if test x"$ac_arg" = x
13153 then :
13154 ac_cv_c_undeclared_builtin_options='none needed'
13155 else case e in #(
13156 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
13157 esac
13158 fi
13159 break
13160 fi
13161 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
13162 esac
13163 fi
13164 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13165 done
13166 CFLAGS=$ac_save_CFLAGS
13167 ;;
13168 esac
13169 fi
13170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
13171 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
13172 case $ac_cv_c_undeclared_builtin_options in #(
13173 'cannot detect') :
13174 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
13175 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
13176 as_fn_error $? "cannot make $CC report undeclared builtins
13177 See 'config.log' for more details" "$LINENO" 5; } ;; #(
13178 'none needed') :
13179 ac_c_undeclared_builtin_options='' ;; #(
13180 *) :
13181 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
13182 esac
13183
13184
13185
13186
13187
13188 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13189 if test "x$ac_cv_have_decl___clang__" = xyes
13190 then :
13191 CLANGCC="yes"
13192 else case e in #(
13193 e) CLANGCC="no" ;;
13194 esac
13195 fi
13196 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13197 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
13198 then :
13199 INTELCC="yes"
13200 else case e in #(
13201 e) INTELCC="no" ;;
13202 esac
13203 fi
13204 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13205 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
13206 then :
13207 SUNCC="yes"
13208 else case e in #(
13209 e) SUNCC="no" ;;
13210 esac
13211 fi
13212
13213
13214
13215
13216
13217
13218
13219
13220 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13221 if test -n "$ac_tool_prefix"; then
13222 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13223 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13225 printf %s "checking for $ac_word... " >&6; }
13226 if test ${ac_cv_path_PKG_CONFIG+y}
13227 then :
13228 printf %s "(cached) " >&6
13229 else case e in #(
13230 e) case $PKG_CONFIG in
13231 [\\/]* | ?:[\\/]*)
13232 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13233 ;;
13234 *)
13235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13236 for as_dir in $PATH
13237 do
13238 IFS=$as_save_IFS
13239 case $as_dir in #(((
13240 '') as_dir=./ ;;
13241 */) ;;
13242 *) as_dir=$as_dir/ ;;
13243 esac
13244 for ac_exec_ext in '' $ac_executable_extensions; do
13245 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13246 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13247 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13248 break 2
13249 fi
13250 done
13251 done
13252 IFS=$as_save_IFS
13253
13254 ;;
13255 esac ;;
13256 esac
13257 fi
13258 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13259 if test -n "$PKG_CONFIG"; then
13260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13261 printf "%s\n" "$PKG_CONFIG" >&6; }
13262 else
13263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13264 printf "%s\n" "no" >&6; }
13265 fi
13266
13267
13268 fi
13269 if test -z "$ac_cv_path_PKG_CONFIG"; then
13270 ac_pt_PKG_CONFIG=$PKG_CONFIG
13271 # Extract the first word of "pkg-config", so it can be a program name with args.
13272 set dummy pkg-config; ac_word=$2
13273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13274 printf %s "checking for $ac_word... " >&6; }
13275 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
13276 then :
13277 printf %s "(cached) " >&6
13278 else case e in #(
13279 e) case $ac_pt_PKG_CONFIG in
13280 [\\/]* | ?:[\\/]*)
13281 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13282 ;;
13283 *)
13284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13285 for as_dir in $PATH
13286 do
13287 IFS=$as_save_IFS
13288 case $as_dir in #(((
13289 '') as_dir=./ ;;
13290 */) ;;
13291 *) as_dir=$as_dir/ ;;
13292 esac
13293 for ac_exec_ext in '' $ac_executable_extensions; do
13294 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13295 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13296 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13297 break 2
13298 fi
13299 done
13300 done
13301 IFS=$as_save_IFS
13302
13303 ;;
13304 esac ;;
13305 esac
13306 fi
13307 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13308 if test -n "$ac_pt_PKG_CONFIG"; then
13309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13310 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
13311 else
13312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13313 printf "%s\n" "no" >&6; }
13314 fi
13315
13316 if test "x$ac_pt_PKG_CONFIG" = x; then
13317 PKG_CONFIG=""
13318 else
13319 case $cross_compiling:$ac_tool_warned in
13320 yes:)
13321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13322 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13323 ac_tool_warned=yes ;;
13324 esac
13325 PKG_CONFIG=$ac_pt_PKG_CONFIG
13326 fi
13327 else
13328 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13329 fi
13330
13331 fi
13332 if test -n "$PKG_CONFIG"; then
13333 _pkg_min_version=0.9.0
13334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13335 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13336 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13338 printf "%s\n" "yes" >&6; }
13339 else
13340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13341 printf "%s\n" "no" >&6; }
13342 PKG_CONFIG=""
13343 fi
13344 fi
13345
13346
13347
13348
13349
13350 # Check whether --enable-selective-werror was given.
13351 if test ${enable_selective_werror+y}
13352 then :
13353 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
13354 else case e in #(
13355 e) SELECTIVE_WERROR=yes ;;
13356 esac
13357 fi
13358
13359
13360
13361
13362
13363 # -v is too short to test reliably with XORG_TESTSET_CFLAG
13364 if test "x$SUNCC" = "xyes"; then
13365 BASE_CFLAGS="-v"
13366 else
13367 BASE_CFLAGS=""
13368 fi
13369
13370 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
13371
13372
13373
13374
13375
13376
13377
13378
13379
13380
13381
13382
13383
13384 xorg_testset_save_CFLAGS="$CFLAGS"
13385
13386 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13387 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13389 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13390 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13391 then :
13392 printf %s "(cached) " >&6
13393 else case e in #(
13394 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13395 /* end confdefs.h. */
13396 int i;
13397 _ACEOF
13398 if ac_fn_c_try_compile "$LINENO"
13399 then :
13400 xorg_cv_cc_flag_unknown_warning_option=yes
13401 else case e in #(
13402 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
13403 esac
13404 fi
13405 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
13406 esac
13407 fi
13408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13409 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13410 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13411 CFLAGS="$xorg_testset_save_CFLAGS"
13412 fi
13413
13414 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13415 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13416 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13417 fi
13418 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13420 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13421 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13422 then :
13423 printf %s "(cached) " >&6
13424 else case e in #(
13425 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13426 /* end confdefs.h. */
13427 int i;
13428 _ACEOF
13429 if ac_fn_c_try_compile "$LINENO"
13430 then :
13431 xorg_cv_cc_flag_unused_command_line_argument=yes
13432 else case e in #(
13433 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
13434 esac
13435 fi
13436 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
13437 esac
13438 fi
13439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13440 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13441 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13442 CFLAGS="$xorg_testset_save_CFLAGS"
13443 fi
13444
13445 found="no"
13446
13447 if test $found = "no" ; then
13448 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13449 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13450 fi
13451
13452 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13453 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13454 fi
13455
13456 CFLAGS="$CFLAGS -Wall"
13457
13458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
13459 printf %s "checking if $CC supports -Wall... " >&6; }
13460 cacheid=xorg_cv_cc_flag__Wall
13461 if eval test \${$cacheid+y}
13462 then :
13463 printf %s "(cached) " >&6
13464 else case e in #(
13465 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13466 /* end confdefs.h. */
13467 int i;
13468 int
13469 main (void)
13470 {
13471
13472 ;
13473 return 0;
13474 }
13475 _ACEOF
13476 if ac_fn_c_try_link "$LINENO"
13477 then :
13478 eval $cacheid=yes
13479 else case e in #(
13480 e) eval $cacheid=no ;;
13481 esac
13482 fi
13483 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13484 conftest$ac_exeext conftest.$ac_ext ;;
13485 esac
13486 fi
13487
13488
13489 CFLAGS="$xorg_testset_save_CFLAGS"
13490
13491 eval supported=\$$cacheid
13492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13493 printf "%s\n" "$supported" >&6; }
13494 if test "$supported" = "yes" ; then
13495 BASE_CFLAGS="$BASE_CFLAGS -Wall"
13496 found="yes"
13497 fi
13498 fi
13499
13500
13501
13502
13503
13504
13505
13506
13507
13508
13509
13510
13511
13512
13513
13514 xorg_testset_save_CFLAGS="$CFLAGS"
13515
13516 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13517 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13519 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13520 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13521 then :
13522 printf %s "(cached) " >&6
13523 else case e in #(
13524 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13525 /* end confdefs.h. */
13526 int i;
13527 _ACEOF
13528 if ac_fn_c_try_compile "$LINENO"
13529 then :
13530 xorg_cv_cc_flag_unknown_warning_option=yes
13531 else case e in #(
13532 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
13533 esac
13534 fi
13535 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
13536 esac
13537 fi
13538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13539 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13540 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13541 CFLAGS="$xorg_testset_save_CFLAGS"
13542 fi
13543
13544 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13545 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13546 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13547 fi
13548 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13550 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13551 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13552 then :
13553 printf %s "(cached) " >&6
13554 else case e in #(
13555 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13556 /* end confdefs.h. */
13557 int i;
13558 _ACEOF
13559 if ac_fn_c_try_compile "$LINENO"
13560 then :
13561 xorg_cv_cc_flag_unused_command_line_argument=yes
13562 else case e in #(
13563 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
13564 esac
13565 fi
13566 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
13567 esac
13568 fi
13569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13570 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13571 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13572 CFLAGS="$xorg_testset_save_CFLAGS"
13573 fi
13574
13575 found="no"
13576
13577 if test $found = "no" ; then
13578 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13579 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13580 fi
13581
13582 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13583 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13584 fi
13585
13586 CFLAGS="$CFLAGS -Wpointer-arith"
13587
13588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
13589 printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
13590 cacheid=xorg_cv_cc_flag__Wpointer_arith
13591 if eval test \${$cacheid+y}
13592 then :
13593 printf %s "(cached) " >&6
13594 else case e in #(
13595 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13596 /* end confdefs.h. */
13597 int i;
13598 int
13599 main (void)
13600 {
13601
13602 ;
13603 return 0;
13604 }
13605 _ACEOF
13606 if ac_fn_c_try_link "$LINENO"
13607 then :
13608 eval $cacheid=yes
13609 else case e in #(
13610 e) eval $cacheid=no ;;
13611 esac
13612 fi
13613 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13614 conftest$ac_exeext conftest.$ac_ext ;;
13615 esac
13616 fi
13617
13618
13619 CFLAGS="$xorg_testset_save_CFLAGS"
13620
13621 eval supported=\$$cacheid
13622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13623 printf "%s\n" "$supported" >&6; }
13624 if test "$supported" = "yes" ; then
13625 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
13626 found="yes"
13627 fi
13628 fi
13629
13630
13631
13632
13633
13634
13635
13636
13637
13638
13639
13640
13641
13642
13643
13644 xorg_testset_save_CFLAGS="$CFLAGS"
13645
13646 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13647 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13649 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13650 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13651 then :
13652 printf %s "(cached) " >&6
13653 else case e in #(
13654 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13655 /* end confdefs.h. */
13656 int i;
13657 _ACEOF
13658 if ac_fn_c_try_compile "$LINENO"
13659 then :
13660 xorg_cv_cc_flag_unknown_warning_option=yes
13661 else case e in #(
13662 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
13663 esac
13664 fi
13665 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
13666 esac
13667 fi
13668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13669 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13670 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13671 CFLAGS="$xorg_testset_save_CFLAGS"
13672 fi
13673
13674 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13675 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13676 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13677 fi
13678 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13680 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13681 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13682 then :
13683 printf %s "(cached) " >&6
13684 else case e in #(
13685 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13686 /* end confdefs.h. */
13687 int i;
13688 _ACEOF
13689 if ac_fn_c_try_compile "$LINENO"
13690 then :
13691 xorg_cv_cc_flag_unused_command_line_argument=yes
13692 else case e in #(
13693 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
13694 esac
13695 fi
13696 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
13697 esac
13698 fi
13699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13700 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13701 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13702 CFLAGS="$xorg_testset_save_CFLAGS"
13703 fi
13704
13705 found="no"
13706
13707 if test $found = "no" ; then
13708 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13709 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13710 fi
13711
13712 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13713 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13714 fi
13715
13716 CFLAGS="$CFLAGS -Wmissing-declarations"
13717
13718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
13719 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
13720 cacheid=xorg_cv_cc_flag__Wmissing_declarations
13721 if eval test \${$cacheid+y}
13722 then :
13723 printf %s "(cached) " >&6
13724 else case e in #(
13725 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13726 /* end confdefs.h. */
13727 int i;
13728 int
13729 main (void)
13730 {
13731
13732 ;
13733 return 0;
13734 }
13735 _ACEOF
13736 if ac_fn_c_try_link "$LINENO"
13737 then :
13738 eval $cacheid=yes
13739 else case e in #(
13740 e) eval $cacheid=no ;;
13741 esac
13742 fi
13743 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13744 conftest$ac_exeext conftest.$ac_ext ;;
13745 esac
13746 fi
13747
13748
13749 CFLAGS="$xorg_testset_save_CFLAGS"
13750
13751 eval supported=\$$cacheid
13752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13753 printf "%s\n" "$supported" >&6; }
13754 if test "$supported" = "yes" ; then
13755 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
13756 found="yes"
13757 fi
13758 fi
13759
13760
13761
13762
13763
13764
13765
13766
13767
13768
13769
13770
13771
13772
13773
13774 xorg_testset_save_CFLAGS="$CFLAGS"
13775
13776 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13777 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13779 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13780 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13781 then :
13782 printf %s "(cached) " >&6
13783 else case e in #(
13784 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13785 /* end confdefs.h. */
13786 int i;
13787 _ACEOF
13788 if ac_fn_c_try_compile "$LINENO"
13789 then :
13790 xorg_cv_cc_flag_unknown_warning_option=yes
13791 else case e in #(
13792 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
13793 esac
13794 fi
13795 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
13796 esac
13797 fi
13798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13799 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13800 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13801 CFLAGS="$xorg_testset_save_CFLAGS"
13802 fi
13803
13804 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13805 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13806 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13807 fi
13808 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13810 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13811 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13812 then :
13813 printf %s "(cached) " >&6
13814 else case e in #(
13815 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13816 /* end confdefs.h. */
13817 int i;
13818 _ACEOF
13819 if ac_fn_c_try_compile "$LINENO"
13820 then :
13821 xorg_cv_cc_flag_unused_command_line_argument=yes
13822 else case e in #(
13823 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
13824 esac
13825 fi
13826 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
13827 esac
13828 fi
13829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13830 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13831 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13832 CFLAGS="$xorg_testset_save_CFLAGS"
13833 fi
13834
13835 found="no"
13836
13837 if test $found = "no" ; then
13838 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13839 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13840 fi
13841
13842 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13843 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13844 fi
13845
13846 CFLAGS="$CFLAGS -Wformat=2"
13847
13848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
13849 printf %s "checking if $CC supports -Wformat=2... " >&6; }
13850 cacheid=xorg_cv_cc_flag__Wformat_2
13851 if eval test \${$cacheid+y}
13852 then :
13853 printf %s "(cached) " >&6
13854 else case e in #(
13855 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13856 /* end confdefs.h. */
13857 int i;
13858 int
13859 main (void)
13860 {
13861
13862 ;
13863 return 0;
13864 }
13865 _ACEOF
13866 if ac_fn_c_try_link "$LINENO"
13867 then :
13868 eval $cacheid=yes
13869 else case e in #(
13870 e) eval $cacheid=no ;;
13871 esac
13872 fi
13873 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13874 conftest$ac_exeext conftest.$ac_ext ;;
13875 esac
13876 fi
13877
13878
13879 CFLAGS="$xorg_testset_save_CFLAGS"
13880
13881 eval supported=\$$cacheid
13882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13883 printf "%s\n" "$supported" >&6; }
13884 if test "$supported" = "yes" ; then
13885 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
13886 found="yes"
13887 fi
13888 fi
13889
13890 if test $found = "no" ; then
13891 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13892 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13893 fi
13894
13895 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13896 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13897 fi
13898
13899 CFLAGS="$CFLAGS -Wformat"
13900
13901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
13902 printf %s "checking if $CC supports -Wformat... " >&6; }
13903 cacheid=xorg_cv_cc_flag__Wformat
13904 if eval test \${$cacheid+y}
13905 then :
13906 printf %s "(cached) " >&6
13907 else case e in #(
13908 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13909 /* end confdefs.h. */
13910 int i;
13911 int
13912 main (void)
13913 {
13914
13915 ;
13916 return 0;
13917 }
13918 _ACEOF
13919 if ac_fn_c_try_link "$LINENO"
13920 then :
13921 eval $cacheid=yes
13922 else case e in #(
13923 e) eval $cacheid=no ;;
13924 esac
13925 fi
13926 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13927 conftest$ac_exeext conftest.$ac_ext ;;
13928 esac
13929 fi
13930
13931
13932 CFLAGS="$xorg_testset_save_CFLAGS"
13933
13934 eval supported=\$$cacheid
13935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13936 printf "%s\n" "$supported" >&6; }
13937 if test "$supported" = "yes" ; then
13938 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
13939 found="yes"
13940 fi
13941 fi
13942
13943
13944
13945
13946
13947
13948
13949
13950
13951
13952
13953
13954
13955
13956
13957
13958
13959 xorg_testset_save_CFLAGS="$CFLAGS"
13960
13961 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13962 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13964 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13965 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13966 then :
13967 printf %s "(cached) " >&6
13968 else case e in #(
13969 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13970 /* end confdefs.h. */
13971 int i;
13972 _ACEOF
13973 if ac_fn_c_try_compile "$LINENO"
13974 then :
13975 xorg_cv_cc_flag_unknown_warning_option=yes
13976 else case e in #(
13977 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
13978 esac
13979 fi
13980 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
13981 esac
13982 fi
13983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13984 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13985 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13986 CFLAGS="$xorg_testset_save_CFLAGS"
13987 fi
13988
13989 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13990 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13991 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13992 fi
13993 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13995 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13996 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13997 then :
13998 printf %s "(cached) " >&6
13999 else case e in #(
14000 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14001 /* end confdefs.h. */
14002 int i;
14003 _ACEOF
14004 if ac_fn_c_try_compile "$LINENO"
14005 then :
14006 xorg_cv_cc_flag_unused_command_line_argument=yes
14007 else case e in #(
14008 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14009 esac
14010 fi
14011 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14012 esac
14013 fi
14014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14015 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14016 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14017 CFLAGS="$xorg_testset_save_CFLAGS"
14018 fi
14019
14020 found="no"
14021
14022 if test $found = "no" ; then
14023 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14024 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14025 fi
14026
14027 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14028 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14029 fi
14030
14031 CFLAGS="$CFLAGS -Wstrict-prototypes"
14032
14033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
14034 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
14035 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
14036 if eval test \${$cacheid+y}
14037 then :
14038 printf %s "(cached) " >&6
14039 else case e in #(
14040 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14041 /* end confdefs.h. */
14042 int i;
14043 int
14044 main (void)
14045 {
14046
14047 ;
14048 return 0;
14049 }
14050 _ACEOF
14051 if ac_fn_c_try_link "$LINENO"
14052 then :
14053 eval $cacheid=yes
14054 else case e in #(
14055 e) eval $cacheid=no ;;
14056 esac
14057 fi
14058 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14059 conftest$ac_exeext conftest.$ac_ext ;;
14060 esac
14061 fi
14062
14063
14064 CFLAGS="$xorg_testset_save_CFLAGS"
14065
14066 eval supported=\$$cacheid
14067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14068 printf "%s\n" "$supported" >&6; }
14069 if test "$supported" = "yes" ; then
14070 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
14071 found="yes"
14072 fi
14073 fi
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089 xorg_testset_save_CFLAGS="$CFLAGS"
14090
14091 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14092 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14094 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14095 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14096 then :
14097 printf %s "(cached) " >&6
14098 else case e in #(
14099 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14100 /* end confdefs.h. */
14101 int i;
14102 _ACEOF
14103 if ac_fn_c_try_compile "$LINENO"
14104 then :
14105 xorg_cv_cc_flag_unknown_warning_option=yes
14106 else case e in #(
14107 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14108 esac
14109 fi
14110 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14111 esac
14112 fi
14113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14114 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14115 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14116 CFLAGS="$xorg_testset_save_CFLAGS"
14117 fi
14118
14119 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14120 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14121 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14122 fi
14123 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14125 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14126 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14127 then :
14128 printf %s "(cached) " >&6
14129 else case e in #(
14130 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14131 /* end confdefs.h. */
14132 int i;
14133 _ACEOF
14134 if ac_fn_c_try_compile "$LINENO"
14135 then :
14136 xorg_cv_cc_flag_unused_command_line_argument=yes
14137 else case e in #(
14138 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14139 esac
14140 fi
14141 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14142 esac
14143 fi
14144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14145 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14146 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14147 CFLAGS="$xorg_testset_save_CFLAGS"
14148 fi
14149
14150 found="no"
14151
14152 if test $found = "no" ; then
14153 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14154 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14155 fi
14156
14157 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14158 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14159 fi
14160
14161 CFLAGS="$CFLAGS -Wmissing-prototypes"
14162
14163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
14164 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
14165 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
14166 if eval test \${$cacheid+y}
14167 then :
14168 printf %s "(cached) " >&6
14169 else case e in #(
14170 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14171 /* end confdefs.h. */
14172 int i;
14173 int
14174 main (void)
14175 {
14176
14177 ;
14178 return 0;
14179 }
14180 _ACEOF
14181 if ac_fn_c_try_link "$LINENO"
14182 then :
14183 eval $cacheid=yes
14184 else case e in #(
14185 e) eval $cacheid=no ;;
14186 esac
14187 fi
14188 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14189 conftest$ac_exeext conftest.$ac_ext ;;
14190 esac
14191 fi
14192
14193
14194 CFLAGS="$xorg_testset_save_CFLAGS"
14195
14196 eval supported=\$$cacheid
14197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14198 printf "%s\n" "$supported" >&6; }
14199 if test "$supported" = "yes" ; then
14200 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
14201 found="yes"
14202 fi
14203 fi
14204
14205
14206
14207
14208
14209
14210
14211
14212
14213
14214
14215
14216
14217
14218
14219 xorg_testset_save_CFLAGS="$CFLAGS"
14220
14221 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14222 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14224 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14225 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14226 then :
14227 printf %s "(cached) " >&6
14228 else case e in #(
14229 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14230 /* end confdefs.h. */
14231 int i;
14232 _ACEOF
14233 if ac_fn_c_try_compile "$LINENO"
14234 then :
14235 xorg_cv_cc_flag_unknown_warning_option=yes
14236 else case e in #(
14237 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14238 esac
14239 fi
14240 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14241 esac
14242 fi
14243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14244 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14245 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14246 CFLAGS="$xorg_testset_save_CFLAGS"
14247 fi
14248
14249 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14250 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14251 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14252 fi
14253 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14255 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14256 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14257 then :
14258 printf %s "(cached) " >&6
14259 else case e in #(
14260 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14261 /* end confdefs.h. */
14262 int i;
14263 _ACEOF
14264 if ac_fn_c_try_compile "$LINENO"
14265 then :
14266 xorg_cv_cc_flag_unused_command_line_argument=yes
14267 else case e in #(
14268 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14269 esac
14270 fi
14271 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14272 esac
14273 fi
14274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14275 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14276 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14277 CFLAGS="$xorg_testset_save_CFLAGS"
14278 fi
14279
14280 found="no"
14281
14282 if test $found = "no" ; then
14283 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14284 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14285 fi
14286
14287 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14288 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14289 fi
14290
14291 CFLAGS="$CFLAGS -Wnested-externs"
14292
14293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
14294 printf %s "checking if $CC supports -Wnested-externs... " >&6; }
14295 cacheid=xorg_cv_cc_flag__Wnested_externs
14296 if eval test \${$cacheid+y}
14297 then :
14298 printf %s "(cached) " >&6
14299 else case e in #(
14300 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14301 /* end confdefs.h. */
14302 int i;
14303 int
14304 main (void)
14305 {
14306
14307 ;
14308 return 0;
14309 }
14310 _ACEOF
14311 if ac_fn_c_try_link "$LINENO"
14312 then :
14313 eval $cacheid=yes
14314 else case e in #(
14315 e) eval $cacheid=no ;;
14316 esac
14317 fi
14318 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14319 conftest$ac_exeext conftest.$ac_ext ;;
14320 esac
14321 fi
14322
14323
14324 CFLAGS="$xorg_testset_save_CFLAGS"
14325
14326 eval supported=\$$cacheid
14327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14328 printf "%s\n" "$supported" >&6; }
14329 if test "$supported" = "yes" ; then
14330 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
14331 found="yes"
14332 fi
14333 fi
14334
14335
14336
14337
14338
14339
14340
14341
14342
14343
14344
14345
14346
14347
14348
14349 xorg_testset_save_CFLAGS="$CFLAGS"
14350
14351 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14352 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14354 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14355 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14356 then :
14357 printf %s "(cached) " >&6
14358 else case e in #(
14359 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14360 /* end confdefs.h. */
14361 int i;
14362 _ACEOF
14363 if ac_fn_c_try_compile "$LINENO"
14364 then :
14365 xorg_cv_cc_flag_unknown_warning_option=yes
14366 else case e in #(
14367 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14368 esac
14369 fi
14370 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14371 esac
14372 fi
14373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14374 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14375 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14376 CFLAGS="$xorg_testset_save_CFLAGS"
14377 fi
14378
14379 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14380 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14381 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14382 fi
14383 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14385 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14386 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14387 then :
14388 printf %s "(cached) " >&6
14389 else case e in #(
14390 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14391 /* end confdefs.h. */
14392 int i;
14393 _ACEOF
14394 if ac_fn_c_try_compile "$LINENO"
14395 then :
14396 xorg_cv_cc_flag_unused_command_line_argument=yes
14397 else case e in #(
14398 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14399 esac
14400 fi
14401 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14402 esac
14403 fi
14404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14405 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14406 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14407 CFLAGS="$xorg_testset_save_CFLAGS"
14408 fi
14409
14410 found="no"
14411
14412 if test $found = "no" ; then
14413 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14414 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14415 fi
14416
14417 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14418 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14419 fi
14420
14421 CFLAGS="$CFLAGS -Wbad-function-cast"
14422
14423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
14424 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
14425 cacheid=xorg_cv_cc_flag__Wbad_function_cast
14426 if eval test \${$cacheid+y}
14427 then :
14428 printf %s "(cached) " >&6
14429 else case e in #(
14430 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14431 /* end confdefs.h. */
14432 int i;
14433 int
14434 main (void)
14435 {
14436
14437 ;
14438 return 0;
14439 }
14440 _ACEOF
14441 if ac_fn_c_try_link "$LINENO"
14442 then :
14443 eval $cacheid=yes
14444 else case e in #(
14445 e) eval $cacheid=no ;;
14446 esac
14447 fi
14448 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14449 conftest$ac_exeext conftest.$ac_ext ;;
14450 esac
14451 fi
14452
14453
14454 CFLAGS="$xorg_testset_save_CFLAGS"
14455
14456 eval supported=\$$cacheid
14457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14458 printf "%s\n" "$supported" >&6; }
14459 if test "$supported" = "yes" ; then
14460 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
14461 found="yes"
14462 fi
14463 fi
14464
14465
14466
14467
14468
14469
14470
14471
14472
14473
14474
14475
14476
14477
14478
14479 xorg_testset_save_CFLAGS="$CFLAGS"
14480
14481 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14482 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14484 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14485 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14486 then :
14487 printf %s "(cached) " >&6
14488 else case e in #(
14489 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14490 /* end confdefs.h. */
14491 int i;
14492 _ACEOF
14493 if ac_fn_c_try_compile "$LINENO"
14494 then :
14495 xorg_cv_cc_flag_unknown_warning_option=yes
14496 else case e in #(
14497 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14498 esac
14499 fi
14500 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14501 esac
14502 fi
14503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14504 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14505 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14506 CFLAGS="$xorg_testset_save_CFLAGS"
14507 fi
14508
14509 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14510 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14511 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14512 fi
14513 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14515 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14516 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14517 then :
14518 printf %s "(cached) " >&6
14519 else case e in #(
14520 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14521 /* end confdefs.h. */
14522 int i;
14523 _ACEOF
14524 if ac_fn_c_try_compile "$LINENO"
14525 then :
14526 xorg_cv_cc_flag_unused_command_line_argument=yes
14527 else case e in #(
14528 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14529 esac
14530 fi
14531 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14532 esac
14533 fi
14534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14535 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14536 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14537 CFLAGS="$xorg_testset_save_CFLAGS"
14538 fi
14539
14540 found="no"
14541
14542 if test $found = "no" ; then
14543 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14544 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14545 fi
14546
14547 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14548 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14549 fi
14550
14551 CFLAGS="$CFLAGS -Wold-style-definition"
14552
14553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
14554 printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
14555 cacheid=xorg_cv_cc_flag__Wold_style_definition
14556 if eval test \${$cacheid+y}
14557 then :
14558 printf %s "(cached) " >&6
14559 else case e in #(
14560 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14561 /* end confdefs.h. */
14562 int i;
14563 int
14564 main (void)
14565 {
14566
14567 ;
14568 return 0;
14569 }
14570 _ACEOF
14571 if ac_fn_c_try_link "$LINENO"
14572 then :
14573 eval $cacheid=yes
14574 else case e in #(
14575 e) eval $cacheid=no ;;
14576 esac
14577 fi
14578 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14579 conftest$ac_exeext conftest.$ac_ext ;;
14580 esac
14581 fi
14582
14583
14584 CFLAGS="$xorg_testset_save_CFLAGS"
14585
14586 eval supported=\$$cacheid
14587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14588 printf "%s\n" "$supported" >&6; }
14589 if test "$supported" = "yes" ; then
14590 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
14591 found="yes"
14592 fi
14593 fi
14594
14595 if test $found = "no" ; then
14596 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14597 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14598 fi
14599
14600 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14601 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14602 fi
14603
14604 CFLAGS="$CFLAGS -fd"
14605
14606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
14607 printf %s "checking if $CC supports -fd... " >&6; }
14608 cacheid=xorg_cv_cc_flag__fd
14609 if eval test \${$cacheid+y}
14610 then :
14611 printf %s "(cached) " >&6
14612 else case e in #(
14613 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14614 /* end confdefs.h. */
14615 int i;
14616 int
14617 main (void)
14618 {
14619
14620 ;
14621 return 0;
14622 }
14623 _ACEOF
14624 if ac_fn_c_try_link "$LINENO"
14625 then :
14626 eval $cacheid=yes
14627 else case e in #(
14628 e) eval $cacheid=no ;;
14629 esac
14630 fi
14631 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14632 conftest$ac_exeext conftest.$ac_ext ;;
14633 esac
14634 fi
14635
14636
14637 CFLAGS="$xorg_testset_save_CFLAGS"
14638
14639 eval supported=\$$cacheid
14640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14641 printf "%s\n" "$supported" >&6; }
14642 if test "$supported" = "yes" ; then
14643 BASE_CFLAGS="$BASE_CFLAGS -fd"
14644 found="yes"
14645 fi
14646 fi
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662 xorg_testset_save_CFLAGS="$CFLAGS"
14663
14664 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14665 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14667 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14668 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14669 then :
14670 printf %s "(cached) " >&6
14671 else case e in #(
14672 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14673 /* end confdefs.h. */
14674 int i;
14675 _ACEOF
14676 if ac_fn_c_try_compile "$LINENO"
14677 then :
14678 xorg_cv_cc_flag_unknown_warning_option=yes
14679 else case e in #(
14680 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14681 esac
14682 fi
14683 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14684 esac
14685 fi
14686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14687 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14688 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14689 CFLAGS="$xorg_testset_save_CFLAGS"
14690 fi
14691
14692 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14693 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14694 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14695 fi
14696 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14698 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14699 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14700 then :
14701 printf %s "(cached) " >&6
14702 else case e in #(
14703 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14704 /* end confdefs.h. */
14705 int i;
14706 _ACEOF
14707 if ac_fn_c_try_compile "$LINENO"
14708 then :
14709 xorg_cv_cc_flag_unused_command_line_argument=yes
14710 else case e in #(
14711 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14712 esac
14713 fi
14714 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14715 esac
14716 fi
14717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14718 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14719 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14720 CFLAGS="$xorg_testset_save_CFLAGS"
14721 fi
14722
14723 found="no"
14724
14725 if test $found = "no" ; then
14726 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14727 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14728 fi
14729
14730 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14731 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14732 fi
14733
14734 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
14735
14736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
14737 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
14738 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
14739 if eval test \${$cacheid+y}
14740 then :
14741 printf %s "(cached) " >&6
14742 else case e in #(
14743 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14744 /* end confdefs.h. */
14745 int i;
14746 int
14747 main (void)
14748 {
14749
14750 ;
14751 return 0;
14752 }
14753 _ACEOF
14754 if ac_fn_c_try_link "$LINENO"
14755 then :
14756 eval $cacheid=yes
14757 else case e in #(
14758 e) eval $cacheid=no ;;
14759 esac
14760 fi
14761 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14762 conftest$ac_exeext conftest.$ac_ext ;;
14763 esac
14764 fi
14765
14766
14767 CFLAGS="$xorg_testset_save_CFLAGS"
14768
14769 eval supported=\$$cacheid
14770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14771 printf "%s\n" "$supported" >&6; }
14772 if test "$supported" = "yes" ; then
14773 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
14774 found="yes"
14775 fi
14776 fi
14777
14778
14779
14780
14781
14782 # This chunk adds additional warnings that could catch undesired effects.
14783
14784
14785
14786
14787
14788
14789
14790
14791
14792
14793
14794
14795
14796 xorg_testset_save_CFLAGS="$CFLAGS"
14797
14798 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14799 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14801 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14802 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14803 then :
14804 printf %s "(cached) " >&6
14805 else case e in #(
14806 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14807 /* end confdefs.h. */
14808 int i;
14809 _ACEOF
14810 if ac_fn_c_try_compile "$LINENO"
14811 then :
14812 xorg_cv_cc_flag_unknown_warning_option=yes
14813 else case e in #(
14814 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14815 esac
14816 fi
14817 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14818 esac
14819 fi
14820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14821 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14822 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14823 CFLAGS="$xorg_testset_save_CFLAGS"
14824 fi
14825
14826 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14827 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14828 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14829 fi
14830 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14832 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14833 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14834 then :
14835 printf %s "(cached) " >&6
14836 else case e in #(
14837 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14838 /* end confdefs.h. */
14839 int i;
14840 _ACEOF
14841 if ac_fn_c_try_compile "$LINENO"
14842 then :
14843 xorg_cv_cc_flag_unused_command_line_argument=yes
14844 else case e in #(
14845 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14846 esac
14847 fi
14848 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14849 esac
14850 fi
14851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14852 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14853 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14854 CFLAGS="$xorg_testset_save_CFLAGS"
14855 fi
14856
14857 found="no"
14858
14859 if test $found = "no" ; then
14860 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14861 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14862 fi
14863
14864 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14865 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14866 fi
14867
14868 CFLAGS="$CFLAGS -Wunused"
14869
14870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
14871 printf %s "checking if $CC supports -Wunused... " >&6; }
14872 cacheid=xorg_cv_cc_flag__Wunused
14873 if eval test \${$cacheid+y}
14874 then :
14875 printf %s "(cached) " >&6
14876 else case e in #(
14877 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14878 /* end confdefs.h. */
14879 int i;
14880 int
14881 main (void)
14882 {
14883
14884 ;
14885 return 0;
14886 }
14887 _ACEOF
14888 if ac_fn_c_try_link "$LINENO"
14889 then :
14890 eval $cacheid=yes
14891 else case e in #(
14892 e) eval $cacheid=no ;;
14893 esac
14894 fi
14895 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14896 conftest$ac_exeext conftest.$ac_ext ;;
14897 esac
14898 fi
14899
14900
14901 CFLAGS="$xorg_testset_save_CFLAGS"
14902
14903 eval supported=\$$cacheid
14904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14905 printf "%s\n" "$supported" >&6; }
14906 if test "$supported" = "yes" ; then
14907 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
14908 found="yes"
14909 fi
14910 fi
14911
14912
14913
14914
14915
14916
14917
14918
14919
14920
14921
14922
14923
14924
14925
14926 xorg_testset_save_CFLAGS="$CFLAGS"
14927
14928 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14929 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14931 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14932 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14933 then :
14934 printf %s "(cached) " >&6
14935 else case e in #(
14936 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14937 /* end confdefs.h. */
14938 int i;
14939 _ACEOF
14940 if ac_fn_c_try_compile "$LINENO"
14941 then :
14942 xorg_cv_cc_flag_unknown_warning_option=yes
14943 else case e in #(
14944 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14945 esac
14946 fi
14947 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14948 esac
14949 fi
14950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14951 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14952 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14953 CFLAGS="$xorg_testset_save_CFLAGS"
14954 fi
14955
14956 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14957 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14958 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14959 fi
14960 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14962 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14963 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14964 then :
14965 printf %s "(cached) " >&6
14966 else case e in #(
14967 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14968 /* end confdefs.h. */
14969 int i;
14970 _ACEOF
14971 if ac_fn_c_try_compile "$LINENO"
14972 then :
14973 xorg_cv_cc_flag_unused_command_line_argument=yes
14974 else case e in #(
14975 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14976 esac
14977 fi
14978 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14979 esac
14980 fi
14981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14982 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14983 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14984 CFLAGS="$xorg_testset_save_CFLAGS"
14985 fi
14986
14987 found="no"
14988
14989 if test $found = "no" ; then
14990 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14991 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14992 fi
14993
14994 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14995 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14996 fi
14997
14998 CFLAGS="$CFLAGS -Wuninitialized"
14999
15000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
15001 printf %s "checking if $CC supports -Wuninitialized... " >&6; }
15002 cacheid=xorg_cv_cc_flag__Wuninitialized
15003 if eval test \${$cacheid+y}
15004 then :
15005 printf %s "(cached) " >&6
15006 else case e in #(
15007 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15008 /* end confdefs.h. */
15009 int i;
15010 int
15011 main (void)
15012 {
15013
15014 ;
15015 return 0;
15016 }
15017 _ACEOF
15018 if ac_fn_c_try_link "$LINENO"
15019 then :
15020 eval $cacheid=yes
15021 else case e in #(
15022 e) eval $cacheid=no ;;
15023 esac
15024 fi
15025 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15026 conftest$ac_exeext conftest.$ac_ext ;;
15027 esac
15028 fi
15029
15030
15031 CFLAGS="$xorg_testset_save_CFLAGS"
15032
15033 eval supported=\$$cacheid
15034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15035 printf "%s\n" "$supported" >&6; }
15036 if test "$supported" = "yes" ; then
15037 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
15038 found="yes"
15039 fi
15040 fi
15041
15042
15043
15044
15045
15046
15047
15048
15049
15050
15051
15052
15053
15054
15055
15056 xorg_testset_save_CFLAGS="$CFLAGS"
15057
15058 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15059 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15061 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15062 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15063 then :
15064 printf %s "(cached) " >&6
15065 else case e in #(
15066 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15067 /* end confdefs.h. */
15068 int i;
15069 _ACEOF
15070 if ac_fn_c_try_compile "$LINENO"
15071 then :
15072 xorg_cv_cc_flag_unknown_warning_option=yes
15073 else case e in #(
15074 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15075 esac
15076 fi
15077 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15078 esac
15079 fi
15080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15081 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15082 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15083 CFLAGS="$xorg_testset_save_CFLAGS"
15084 fi
15085
15086 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15087 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15088 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15089 fi
15090 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15092 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15093 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15094 then :
15095 printf %s "(cached) " >&6
15096 else case e in #(
15097 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15098 /* end confdefs.h. */
15099 int i;
15100 _ACEOF
15101 if ac_fn_c_try_compile "$LINENO"
15102 then :
15103 xorg_cv_cc_flag_unused_command_line_argument=yes
15104 else case e in #(
15105 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15106 esac
15107 fi
15108 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15109 esac
15110 fi
15111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15112 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15113 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15114 CFLAGS="$xorg_testset_save_CFLAGS"
15115 fi
15116
15117 found="no"
15118
15119 if test $found = "no" ; then
15120 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15121 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15122 fi
15123
15124 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15125 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15126 fi
15127
15128 CFLAGS="$CFLAGS -Wshadow"
15129
15130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
15131 printf %s "checking if $CC supports -Wshadow... " >&6; }
15132 cacheid=xorg_cv_cc_flag__Wshadow
15133 if eval test \${$cacheid+y}
15134 then :
15135 printf %s "(cached) " >&6
15136 else case e in #(
15137 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15138 /* end confdefs.h. */
15139 int i;
15140 int
15141 main (void)
15142 {
15143
15144 ;
15145 return 0;
15146 }
15147 _ACEOF
15148 if ac_fn_c_try_link "$LINENO"
15149 then :
15150 eval $cacheid=yes
15151 else case e in #(
15152 e) eval $cacheid=no ;;
15153 esac
15154 fi
15155 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15156 conftest$ac_exeext conftest.$ac_ext ;;
15157 esac
15158 fi
15159
15160
15161 CFLAGS="$xorg_testset_save_CFLAGS"
15162
15163 eval supported=\$$cacheid
15164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15165 printf "%s\n" "$supported" >&6; }
15166 if test "$supported" = "yes" ; then
15167 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
15168 found="yes"
15169 fi
15170 fi
15171
15172
15173
15174
15175
15176
15177
15178
15179
15180
15181
15182
15183
15184
15185
15186 xorg_testset_save_CFLAGS="$CFLAGS"
15187
15188 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15189 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15191 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15192 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15193 then :
15194 printf %s "(cached) " >&6
15195 else case e in #(
15196 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15197 /* end confdefs.h. */
15198 int i;
15199 _ACEOF
15200 if ac_fn_c_try_compile "$LINENO"
15201 then :
15202 xorg_cv_cc_flag_unknown_warning_option=yes
15203 else case e in #(
15204 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15205 esac
15206 fi
15207 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15208 esac
15209 fi
15210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15211 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15212 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15213 CFLAGS="$xorg_testset_save_CFLAGS"
15214 fi
15215
15216 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15217 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15218 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15219 fi
15220 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15222 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15223 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15224 then :
15225 printf %s "(cached) " >&6
15226 else case e in #(
15227 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15228 /* end confdefs.h. */
15229 int i;
15230 _ACEOF
15231 if ac_fn_c_try_compile "$LINENO"
15232 then :
15233 xorg_cv_cc_flag_unused_command_line_argument=yes
15234 else case e in #(
15235 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15236 esac
15237 fi
15238 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15239 esac
15240 fi
15241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15242 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15243 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15244 CFLAGS="$xorg_testset_save_CFLAGS"
15245 fi
15246
15247 found="no"
15248
15249 if test $found = "no" ; then
15250 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15251 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15252 fi
15253
15254 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15255 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15256 fi
15257
15258 CFLAGS="$CFLAGS -Wmissing-noreturn"
15259
15260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
15261 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
15262 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
15263 if eval test \${$cacheid+y}
15264 then :
15265 printf %s "(cached) " >&6
15266 else case e in #(
15267 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15268 /* end confdefs.h. */
15269 int i;
15270 int
15271 main (void)
15272 {
15273
15274 ;
15275 return 0;
15276 }
15277 _ACEOF
15278 if ac_fn_c_try_link "$LINENO"
15279 then :
15280 eval $cacheid=yes
15281 else case e in #(
15282 e) eval $cacheid=no ;;
15283 esac
15284 fi
15285 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15286 conftest$ac_exeext conftest.$ac_ext ;;
15287 esac
15288 fi
15289
15290
15291 CFLAGS="$xorg_testset_save_CFLAGS"
15292
15293 eval supported=\$$cacheid
15294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15295 printf "%s\n" "$supported" >&6; }
15296 if test "$supported" = "yes" ; then
15297 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
15298 found="yes"
15299 fi
15300 fi
15301
15302
15303
15304
15305
15306
15307
15308
15309
15310
15311
15312
15313
15314
15315
15316 xorg_testset_save_CFLAGS="$CFLAGS"
15317
15318 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15319 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15321 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15322 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15323 then :
15324 printf %s "(cached) " >&6
15325 else case e in #(
15326 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15327 /* end confdefs.h. */
15328 int i;
15329 _ACEOF
15330 if ac_fn_c_try_compile "$LINENO"
15331 then :
15332 xorg_cv_cc_flag_unknown_warning_option=yes
15333 else case e in #(
15334 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15335 esac
15336 fi
15337 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15338 esac
15339 fi
15340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15341 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15342 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15343 CFLAGS="$xorg_testset_save_CFLAGS"
15344 fi
15345
15346 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15347 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15348 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15349 fi
15350 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15352 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15353 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15354 then :
15355 printf %s "(cached) " >&6
15356 else case e in #(
15357 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15358 /* end confdefs.h. */
15359 int i;
15360 _ACEOF
15361 if ac_fn_c_try_compile "$LINENO"
15362 then :
15363 xorg_cv_cc_flag_unused_command_line_argument=yes
15364 else case e in #(
15365 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15366 esac
15367 fi
15368 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15369 esac
15370 fi
15371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15372 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15373 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15374 CFLAGS="$xorg_testset_save_CFLAGS"
15375 fi
15376
15377 found="no"
15378
15379 if test $found = "no" ; then
15380 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15381 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15382 fi
15383
15384 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15385 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15386 fi
15387
15388 CFLAGS="$CFLAGS -Wmissing-format-attribute"
15389
15390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
15391 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
15392 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
15393 if eval test \${$cacheid+y}
15394 then :
15395 printf %s "(cached) " >&6
15396 else case e in #(
15397 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15398 /* end confdefs.h. */
15399 int i;
15400 int
15401 main (void)
15402 {
15403
15404 ;
15405 return 0;
15406 }
15407 _ACEOF
15408 if ac_fn_c_try_link "$LINENO"
15409 then :
15410 eval $cacheid=yes
15411 else case e in #(
15412 e) eval $cacheid=no ;;
15413 esac
15414 fi
15415 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15416 conftest$ac_exeext conftest.$ac_ext ;;
15417 esac
15418 fi
15419
15420
15421 CFLAGS="$xorg_testset_save_CFLAGS"
15422
15423 eval supported=\$$cacheid
15424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15425 printf "%s\n" "$supported" >&6; }
15426 if test "$supported" = "yes" ; then
15427 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
15428 found="yes"
15429 fi
15430 fi
15431
15432
15433
15434
15435
15436
15437
15438
15439
15440
15441
15442
15443
15444
15445
15446 xorg_testset_save_CFLAGS="$CFLAGS"
15447
15448 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15449 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15451 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15452 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15453 then :
15454 printf %s "(cached) " >&6
15455 else case e in #(
15456 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15457 /* end confdefs.h. */
15458 int i;
15459 _ACEOF
15460 if ac_fn_c_try_compile "$LINENO"
15461 then :
15462 xorg_cv_cc_flag_unknown_warning_option=yes
15463 else case e in #(
15464 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15465 esac
15466 fi
15467 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15468 esac
15469 fi
15470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15471 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15472 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15473 CFLAGS="$xorg_testset_save_CFLAGS"
15474 fi
15475
15476 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15477 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15478 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15479 fi
15480 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15482 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15483 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15484 then :
15485 printf %s "(cached) " >&6
15486 else case e in #(
15487 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15488 /* end confdefs.h. */
15489 int i;
15490 _ACEOF
15491 if ac_fn_c_try_compile "$LINENO"
15492 then :
15493 xorg_cv_cc_flag_unused_command_line_argument=yes
15494 else case e in #(
15495 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15496 esac
15497 fi
15498 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15499 esac
15500 fi
15501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15502 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15503 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15504 CFLAGS="$xorg_testset_save_CFLAGS"
15505 fi
15506
15507 found="no"
15508
15509 if test $found = "no" ; then
15510 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15511 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15512 fi
15513
15514 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15515 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15516 fi
15517
15518 CFLAGS="$CFLAGS -Wredundant-decls"
15519
15520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
15521 printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
15522 cacheid=xorg_cv_cc_flag__Wredundant_decls
15523 if eval test \${$cacheid+y}
15524 then :
15525 printf %s "(cached) " >&6
15526 else case e in #(
15527 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15528 /* end confdefs.h. */
15529 int i;
15530 int
15531 main (void)
15532 {
15533
15534 ;
15535 return 0;
15536 }
15537 _ACEOF
15538 if ac_fn_c_try_link "$LINENO"
15539 then :
15540 eval $cacheid=yes
15541 else case e in #(
15542 e) eval $cacheid=no ;;
15543 esac
15544 fi
15545 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15546 conftest$ac_exeext conftest.$ac_ext ;;
15547 esac
15548 fi
15549
15550
15551 CFLAGS="$xorg_testset_save_CFLAGS"
15552
15553 eval supported=\$$cacheid
15554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15555 printf "%s\n" "$supported" >&6; }
15556 if test "$supported" = "yes" ; then
15557 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
15558 found="yes"
15559 fi
15560 fi
15561
15562
15563
15564
15565
15566
15567
15568
15569
15570
15571
15572
15573
15574
15575
15576 xorg_testset_save_CFLAGS="$CFLAGS"
15577
15578 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15579 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15581 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15582 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15583 then :
15584 printf %s "(cached) " >&6
15585 else case e in #(
15586 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15587 /* end confdefs.h. */
15588 int i;
15589 _ACEOF
15590 if ac_fn_c_try_compile "$LINENO"
15591 then :
15592 xorg_cv_cc_flag_unknown_warning_option=yes
15593 else case e in #(
15594 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15595 esac
15596 fi
15597 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15598 esac
15599 fi
15600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15601 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15602 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15603 CFLAGS="$xorg_testset_save_CFLAGS"
15604 fi
15605
15606 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15607 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15608 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15609 fi
15610 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15612 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15613 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15614 then :
15615 printf %s "(cached) " >&6
15616 else case e in #(
15617 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15618 /* end confdefs.h. */
15619 int i;
15620 _ACEOF
15621 if ac_fn_c_try_compile "$LINENO"
15622 then :
15623 xorg_cv_cc_flag_unused_command_line_argument=yes
15624 else case e in #(
15625 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15626 esac
15627 fi
15628 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15629 esac
15630 fi
15631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15632 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15633 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15634 CFLAGS="$xorg_testset_save_CFLAGS"
15635 fi
15636
15637 found="no"
15638
15639 if test $found = "no" ; then
15640 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15641 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15642 fi
15643
15644 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15645 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15646 fi
15647
15648 CFLAGS="$CFLAGS -Wlogical-op"
15649
15650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
15651 printf %s "checking if $CC supports -Wlogical-op... " >&6; }
15652 cacheid=xorg_cv_cc_flag__Wlogical_op
15653 if eval test \${$cacheid+y}
15654 then :
15655 printf %s "(cached) " >&6
15656 else case e in #(
15657 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15658 /* end confdefs.h. */
15659 int i;
15660 int
15661 main (void)
15662 {
15663
15664 ;
15665 return 0;
15666 }
15667 _ACEOF
15668 if ac_fn_c_try_link "$LINENO"
15669 then :
15670 eval $cacheid=yes
15671 else case e in #(
15672 e) eval $cacheid=no ;;
15673 esac
15674 fi
15675 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15676 conftest$ac_exeext conftest.$ac_ext ;;
15677 esac
15678 fi
15679
15680
15681 CFLAGS="$xorg_testset_save_CFLAGS"
15682
15683 eval supported=\$$cacheid
15684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15685 printf "%s\n" "$supported" >&6; }
15686 if test "$supported" = "yes" ; then
15687 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
15688 found="yes"
15689 fi
15690 fi
15691
15692
15693
15694 # These are currently disabled because they are noisy. They will be enabled
15695 # in the future once the codebase is sufficiently modernized to silence
15696 # them. For now, I don't want them to drown out the other warnings.
15697 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
15698 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
15699 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
15700
15701 # Turn some warnings into errors, so we don't accidentally get successful builds
15702 # when there are problems that should be fixed.
15703
15704 if test "x$SELECTIVE_WERROR" = "xyes" ; then
15705
15706
15707
15708
15709
15710
15711
15712
15713
15714
15715
15716
15717
15718 xorg_testset_save_CFLAGS="$CFLAGS"
15719
15720 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15721 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15723 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15724 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15725 then :
15726 printf %s "(cached) " >&6
15727 else case e in #(
15728 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15729 /* end confdefs.h. */
15730 int i;
15731 _ACEOF
15732 if ac_fn_c_try_compile "$LINENO"
15733 then :
15734 xorg_cv_cc_flag_unknown_warning_option=yes
15735 else case e in #(
15736 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15737 esac
15738 fi
15739 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15740 esac
15741 fi
15742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15743 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15744 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15745 CFLAGS="$xorg_testset_save_CFLAGS"
15746 fi
15747
15748 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15749 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15750 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15751 fi
15752 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15754 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15755 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15756 then :
15757 printf %s "(cached) " >&6
15758 else case e in #(
15759 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15760 /* end confdefs.h. */
15761 int i;
15762 _ACEOF
15763 if ac_fn_c_try_compile "$LINENO"
15764 then :
15765 xorg_cv_cc_flag_unused_command_line_argument=yes
15766 else case e in #(
15767 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15768 esac
15769 fi
15770 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15771 esac
15772 fi
15773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15774 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15775 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15776 CFLAGS="$xorg_testset_save_CFLAGS"
15777 fi
15778
15779 found="no"
15780
15781 if test $found = "no" ; then
15782 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15783 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15784 fi
15785
15786 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15787 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15788 fi
15789
15790 CFLAGS="$CFLAGS -Werror=implicit"
15791
15792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
15793 printf %s "checking if $CC supports -Werror=implicit... " >&6; }
15794 cacheid=xorg_cv_cc_flag__Werror_implicit
15795 if eval test \${$cacheid+y}
15796 then :
15797 printf %s "(cached) " >&6
15798 else case e in #(
15799 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15800 /* end confdefs.h. */
15801 int i;
15802 int
15803 main (void)
15804 {
15805
15806 ;
15807 return 0;
15808 }
15809 _ACEOF
15810 if ac_fn_c_try_link "$LINENO"
15811 then :
15812 eval $cacheid=yes
15813 else case e in #(
15814 e) eval $cacheid=no ;;
15815 esac
15816 fi
15817 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15818 conftest$ac_exeext conftest.$ac_ext ;;
15819 esac
15820 fi
15821
15822
15823 CFLAGS="$xorg_testset_save_CFLAGS"
15824
15825 eval supported=\$$cacheid
15826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15827 printf "%s\n" "$supported" >&6; }
15828 if test "$supported" = "yes" ; then
15829 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
15830 found="yes"
15831 fi
15832 fi
15833
15834 if test $found = "no" ; then
15835 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15836 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15837 fi
15838
15839 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15840 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15841 fi
15842
15843 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15844
15845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
15846 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
15847 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
15848 if eval test \${$cacheid+y}
15849 then :
15850 printf %s "(cached) " >&6
15851 else case e in #(
15852 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15853 /* end confdefs.h. */
15854 int i;
15855 int
15856 main (void)
15857 {
15858
15859 ;
15860 return 0;
15861 }
15862 _ACEOF
15863 if ac_fn_c_try_link "$LINENO"
15864 then :
15865 eval $cacheid=yes
15866 else case e in #(
15867 e) eval $cacheid=no ;;
15868 esac
15869 fi
15870 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15871 conftest$ac_exeext conftest.$ac_ext ;;
15872 esac
15873 fi
15874
15875
15876 CFLAGS="$xorg_testset_save_CFLAGS"
15877
15878 eval supported=\$$cacheid
15879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15880 printf "%s\n" "$supported" >&6; }
15881 if test "$supported" = "yes" ; then
15882 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15883 found="yes"
15884 fi
15885 fi
15886
15887
15888
15889
15890
15891
15892
15893
15894
15895
15896
15897
15898
15899
15900
15901 xorg_testset_save_CFLAGS="$CFLAGS"
15902
15903 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15904 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15906 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15907 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15908 then :
15909 printf %s "(cached) " >&6
15910 else case e in #(
15911 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15912 /* end confdefs.h. */
15913 int i;
15914 _ACEOF
15915 if ac_fn_c_try_compile "$LINENO"
15916 then :
15917 xorg_cv_cc_flag_unknown_warning_option=yes
15918 else case e in #(
15919 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15920 esac
15921 fi
15922 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15923 esac
15924 fi
15925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15926 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15927 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15928 CFLAGS="$xorg_testset_save_CFLAGS"
15929 fi
15930
15931 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15932 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15933 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15934 fi
15935 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15937 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15938 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15939 then :
15940 printf %s "(cached) " >&6
15941 else case e in #(
15942 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15943 /* end confdefs.h. */
15944 int i;
15945 _ACEOF
15946 if ac_fn_c_try_compile "$LINENO"
15947 then :
15948 xorg_cv_cc_flag_unused_command_line_argument=yes
15949 else case e in #(
15950 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15951 esac
15952 fi
15953 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15954 esac
15955 fi
15956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15957 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15958 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15959 CFLAGS="$xorg_testset_save_CFLAGS"
15960 fi
15961
15962 found="no"
15963
15964 if test $found = "no" ; then
15965 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15966 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15967 fi
15968
15969 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15970 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15971 fi
15972
15973 CFLAGS="$CFLAGS -Werror=nonnull"
15974
15975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
15976 printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
15977 cacheid=xorg_cv_cc_flag__Werror_nonnull
15978 if eval test \${$cacheid+y}
15979 then :
15980 printf %s "(cached) " >&6
15981 else case e in #(
15982 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15983 /* end confdefs.h. */
15984 int i;
15985 int
15986 main (void)
15987 {
15988
15989 ;
15990 return 0;
15991 }
15992 _ACEOF
15993 if ac_fn_c_try_link "$LINENO"
15994 then :
15995 eval $cacheid=yes
15996 else case e in #(
15997 e) eval $cacheid=no ;;
15998 esac
15999 fi
16000 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16001 conftest$ac_exeext conftest.$ac_ext ;;
16002 esac
16003 fi
16004
16005
16006 CFLAGS="$xorg_testset_save_CFLAGS"
16007
16008 eval supported=\$$cacheid
16009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16010 printf "%s\n" "$supported" >&6; }
16011 if test "$supported" = "yes" ; then
16012 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
16013 found="yes"
16014 fi
16015 fi
16016
16017
16018
16019
16020
16021
16022
16023
16024
16025
16026
16027
16028
16029
16030
16031 xorg_testset_save_CFLAGS="$CFLAGS"
16032
16033 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16034 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16036 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16037 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16038 then :
16039 printf %s "(cached) " >&6
16040 else case e in #(
16041 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16042 /* end confdefs.h. */
16043 int i;
16044 _ACEOF
16045 if ac_fn_c_try_compile "$LINENO"
16046 then :
16047 xorg_cv_cc_flag_unknown_warning_option=yes
16048 else case e in #(
16049 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16050 esac
16051 fi
16052 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16053 esac
16054 fi
16055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16056 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16057 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16058 CFLAGS="$xorg_testset_save_CFLAGS"
16059 fi
16060
16061 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16062 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16063 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16064 fi
16065 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16067 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16068 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16069 then :
16070 printf %s "(cached) " >&6
16071 else case e in #(
16072 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16073 /* end confdefs.h. */
16074 int i;
16075 _ACEOF
16076 if ac_fn_c_try_compile "$LINENO"
16077 then :
16078 xorg_cv_cc_flag_unused_command_line_argument=yes
16079 else case e in #(
16080 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16081 esac
16082 fi
16083 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16084 esac
16085 fi
16086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16087 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16088 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16089 CFLAGS="$xorg_testset_save_CFLAGS"
16090 fi
16091
16092 found="no"
16093
16094 if test $found = "no" ; then
16095 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16096 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16097 fi
16098
16099 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16100 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16101 fi
16102
16103 CFLAGS="$CFLAGS -Werror=init-self"
16104
16105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
16106 printf %s "checking if $CC supports -Werror=init-self... " >&6; }
16107 cacheid=xorg_cv_cc_flag__Werror_init_self
16108 if eval test \${$cacheid+y}
16109 then :
16110 printf %s "(cached) " >&6
16111 else case e in #(
16112 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16113 /* end confdefs.h. */
16114 int i;
16115 int
16116 main (void)
16117 {
16118
16119 ;
16120 return 0;
16121 }
16122 _ACEOF
16123 if ac_fn_c_try_link "$LINENO"
16124 then :
16125 eval $cacheid=yes
16126 else case e in #(
16127 e) eval $cacheid=no ;;
16128 esac
16129 fi
16130 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16131 conftest$ac_exeext conftest.$ac_ext ;;
16132 esac
16133 fi
16134
16135
16136 CFLAGS="$xorg_testset_save_CFLAGS"
16137
16138 eval supported=\$$cacheid
16139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16140 printf "%s\n" "$supported" >&6; }
16141 if test "$supported" = "yes" ; then
16142 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
16143 found="yes"
16144 fi
16145 fi
16146
16147
16148
16149
16150
16151
16152
16153
16154
16155
16156
16157
16158
16159
16160
16161 xorg_testset_save_CFLAGS="$CFLAGS"
16162
16163 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16164 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16166 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16167 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16168 then :
16169 printf %s "(cached) " >&6
16170 else case e in #(
16171 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16172 /* end confdefs.h. */
16173 int i;
16174 _ACEOF
16175 if ac_fn_c_try_compile "$LINENO"
16176 then :
16177 xorg_cv_cc_flag_unknown_warning_option=yes
16178 else case e in #(
16179 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16180 esac
16181 fi
16182 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16183 esac
16184 fi
16185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16186 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16187 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16188 CFLAGS="$xorg_testset_save_CFLAGS"
16189 fi
16190
16191 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16192 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16193 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16194 fi
16195 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16197 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16198 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16199 then :
16200 printf %s "(cached) " >&6
16201 else case e in #(
16202 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16203 /* end confdefs.h. */
16204 int i;
16205 _ACEOF
16206 if ac_fn_c_try_compile "$LINENO"
16207 then :
16208 xorg_cv_cc_flag_unused_command_line_argument=yes
16209 else case e in #(
16210 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16211 esac
16212 fi
16213 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16214 esac
16215 fi
16216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16217 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16218 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16219 CFLAGS="$xorg_testset_save_CFLAGS"
16220 fi
16221
16222 found="no"
16223
16224 if test $found = "no" ; then
16225 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16226 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16227 fi
16228
16229 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16230 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16231 fi
16232
16233 CFLAGS="$CFLAGS -Werror=main"
16234
16235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
16236 printf %s "checking if $CC supports -Werror=main... " >&6; }
16237 cacheid=xorg_cv_cc_flag__Werror_main
16238 if eval test \${$cacheid+y}
16239 then :
16240 printf %s "(cached) " >&6
16241 else case e in #(
16242 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16243 /* end confdefs.h. */
16244 int i;
16245 int
16246 main (void)
16247 {
16248
16249 ;
16250 return 0;
16251 }
16252 _ACEOF
16253 if ac_fn_c_try_link "$LINENO"
16254 then :
16255 eval $cacheid=yes
16256 else case e in #(
16257 e) eval $cacheid=no ;;
16258 esac
16259 fi
16260 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16261 conftest$ac_exeext conftest.$ac_ext ;;
16262 esac
16263 fi
16264
16265
16266 CFLAGS="$xorg_testset_save_CFLAGS"
16267
16268 eval supported=\$$cacheid
16269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16270 printf "%s\n" "$supported" >&6; }
16271 if test "$supported" = "yes" ; then
16272 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
16273 found="yes"
16274 fi
16275 fi
16276
16277
16278
16279
16280
16281
16282
16283
16284
16285
16286
16287
16288
16289
16290
16291 xorg_testset_save_CFLAGS="$CFLAGS"
16292
16293 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16294 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16296 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16297 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16298 then :
16299 printf %s "(cached) " >&6
16300 else case e in #(
16301 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16302 /* end confdefs.h. */
16303 int i;
16304 _ACEOF
16305 if ac_fn_c_try_compile "$LINENO"
16306 then :
16307 xorg_cv_cc_flag_unknown_warning_option=yes
16308 else case e in #(
16309 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16310 esac
16311 fi
16312 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16313 esac
16314 fi
16315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16316 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16317 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16318 CFLAGS="$xorg_testset_save_CFLAGS"
16319 fi
16320
16321 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16322 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16323 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16324 fi
16325 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16327 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16328 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16329 then :
16330 printf %s "(cached) " >&6
16331 else case e in #(
16332 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16333 /* end confdefs.h. */
16334 int i;
16335 _ACEOF
16336 if ac_fn_c_try_compile "$LINENO"
16337 then :
16338 xorg_cv_cc_flag_unused_command_line_argument=yes
16339 else case e in #(
16340 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16341 esac
16342 fi
16343 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16344 esac
16345 fi
16346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16347 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16348 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16349 CFLAGS="$xorg_testset_save_CFLAGS"
16350 fi
16351
16352 found="no"
16353
16354 if test $found = "no" ; then
16355 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16356 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16357 fi
16358
16359 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16360 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16361 fi
16362
16363 CFLAGS="$CFLAGS -Werror=missing-braces"
16364
16365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
16366 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
16367 cacheid=xorg_cv_cc_flag__Werror_missing_braces
16368 if eval test \${$cacheid+y}
16369 then :
16370 printf %s "(cached) " >&6
16371 else case e in #(
16372 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16373 /* end confdefs.h. */
16374 int i;
16375 int
16376 main (void)
16377 {
16378
16379 ;
16380 return 0;
16381 }
16382 _ACEOF
16383 if ac_fn_c_try_link "$LINENO"
16384 then :
16385 eval $cacheid=yes
16386 else case e in #(
16387 e) eval $cacheid=no ;;
16388 esac
16389 fi
16390 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16391 conftest$ac_exeext conftest.$ac_ext ;;
16392 esac
16393 fi
16394
16395
16396 CFLAGS="$xorg_testset_save_CFLAGS"
16397
16398 eval supported=\$$cacheid
16399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16400 printf "%s\n" "$supported" >&6; }
16401 if test "$supported" = "yes" ; then
16402 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
16403 found="yes"
16404 fi
16405 fi
16406
16407
16408
16409
16410
16411
16412
16413
16414
16415
16416
16417
16418
16419
16420
16421 xorg_testset_save_CFLAGS="$CFLAGS"
16422
16423 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16424 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16426 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16427 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16428 then :
16429 printf %s "(cached) " >&6
16430 else case e in #(
16431 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16432 /* end confdefs.h. */
16433 int i;
16434 _ACEOF
16435 if ac_fn_c_try_compile "$LINENO"
16436 then :
16437 xorg_cv_cc_flag_unknown_warning_option=yes
16438 else case e in #(
16439 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16440 esac
16441 fi
16442 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16443 esac
16444 fi
16445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16446 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16447 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16448 CFLAGS="$xorg_testset_save_CFLAGS"
16449 fi
16450
16451 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16452 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16453 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16454 fi
16455 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16457 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16458 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16459 then :
16460 printf %s "(cached) " >&6
16461 else case e in #(
16462 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16463 /* end confdefs.h. */
16464 int i;
16465 _ACEOF
16466 if ac_fn_c_try_compile "$LINENO"
16467 then :
16468 xorg_cv_cc_flag_unused_command_line_argument=yes
16469 else case e in #(
16470 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16471 esac
16472 fi
16473 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16474 esac
16475 fi
16476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16477 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16478 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16479 CFLAGS="$xorg_testset_save_CFLAGS"
16480 fi
16481
16482 found="no"
16483
16484 if test $found = "no" ; then
16485 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16486 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16487 fi
16488
16489 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16490 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16491 fi
16492
16493 CFLAGS="$CFLAGS -Werror=sequence-point"
16494
16495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
16496 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
16497 cacheid=xorg_cv_cc_flag__Werror_sequence_point
16498 if eval test \${$cacheid+y}
16499 then :
16500 printf %s "(cached) " >&6
16501 else case e in #(
16502 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16503 /* end confdefs.h. */
16504 int i;
16505 int
16506 main (void)
16507 {
16508
16509 ;
16510 return 0;
16511 }
16512 _ACEOF
16513 if ac_fn_c_try_link "$LINENO"
16514 then :
16515 eval $cacheid=yes
16516 else case e in #(
16517 e) eval $cacheid=no ;;
16518 esac
16519 fi
16520 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16521 conftest$ac_exeext conftest.$ac_ext ;;
16522 esac
16523 fi
16524
16525
16526 CFLAGS="$xorg_testset_save_CFLAGS"
16527
16528 eval supported=\$$cacheid
16529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16530 printf "%s\n" "$supported" >&6; }
16531 if test "$supported" = "yes" ; then
16532 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
16533 found="yes"
16534 fi
16535 fi
16536
16537
16538
16539
16540
16541
16542
16543
16544
16545
16546
16547
16548
16549
16550
16551 xorg_testset_save_CFLAGS="$CFLAGS"
16552
16553 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16554 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16556 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16557 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16558 then :
16559 printf %s "(cached) " >&6
16560 else case e in #(
16561 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16562 /* end confdefs.h. */
16563 int i;
16564 _ACEOF
16565 if ac_fn_c_try_compile "$LINENO"
16566 then :
16567 xorg_cv_cc_flag_unknown_warning_option=yes
16568 else case e in #(
16569 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16570 esac
16571 fi
16572 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16573 esac
16574 fi
16575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16576 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16577 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16578 CFLAGS="$xorg_testset_save_CFLAGS"
16579 fi
16580
16581 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16582 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16583 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16584 fi
16585 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16587 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16588 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16589 then :
16590 printf %s "(cached) " >&6
16591 else case e in #(
16592 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16593 /* end confdefs.h. */
16594 int i;
16595 _ACEOF
16596 if ac_fn_c_try_compile "$LINENO"
16597 then :
16598 xorg_cv_cc_flag_unused_command_line_argument=yes
16599 else case e in #(
16600 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16601 esac
16602 fi
16603 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16604 esac
16605 fi
16606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16607 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16608 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16609 CFLAGS="$xorg_testset_save_CFLAGS"
16610 fi
16611
16612 found="no"
16613
16614 if test $found = "no" ; then
16615 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16616 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16617 fi
16618
16619 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16620 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16621 fi
16622
16623 CFLAGS="$CFLAGS -Werror=return-type"
16624
16625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
16626 printf %s "checking if $CC supports -Werror=return-type... " >&6; }
16627 cacheid=xorg_cv_cc_flag__Werror_return_type
16628 if eval test \${$cacheid+y}
16629 then :
16630 printf %s "(cached) " >&6
16631 else case e in #(
16632 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16633 /* end confdefs.h. */
16634 int i;
16635 int
16636 main (void)
16637 {
16638
16639 ;
16640 return 0;
16641 }
16642 _ACEOF
16643 if ac_fn_c_try_link "$LINENO"
16644 then :
16645 eval $cacheid=yes
16646 else case e in #(
16647 e) eval $cacheid=no ;;
16648 esac
16649 fi
16650 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16651 conftest$ac_exeext conftest.$ac_ext ;;
16652 esac
16653 fi
16654
16655
16656 CFLAGS="$xorg_testset_save_CFLAGS"
16657
16658 eval supported=\$$cacheid
16659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16660 printf "%s\n" "$supported" >&6; }
16661 if test "$supported" = "yes" ; then
16662 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
16663 found="yes"
16664 fi
16665 fi
16666
16667 if test $found = "no" ; then
16668 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16669 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16670 fi
16671
16672 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16673 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16674 fi
16675
16676 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16677
16678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
16679 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
16680 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
16681 if eval test \${$cacheid+y}
16682 then :
16683 printf %s "(cached) " >&6
16684 else case e in #(
16685 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16686 /* end confdefs.h. */
16687 int i;
16688 int
16689 main (void)
16690 {
16691
16692 ;
16693 return 0;
16694 }
16695 _ACEOF
16696 if ac_fn_c_try_link "$LINENO"
16697 then :
16698 eval $cacheid=yes
16699 else case e in #(
16700 e) eval $cacheid=no ;;
16701 esac
16702 fi
16703 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16704 conftest$ac_exeext conftest.$ac_ext ;;
16705 esac
16706 fi
16707
16708
16709 CFLAGS="$xorg_testset_save_CFLAGS"
16710
16711 eval supported=\$$cacheid
16712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16713 printf "%s\n" "$supported" >&6; }
16714 if test "$supported" = "yes" ; then
16715 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16716 found="yes"
16717 fi
16718 fi
16719
16720
16721
16722
16723
16724
16725
16726
16727
16728
16729
16730
16731
16732
16733
16734 xorg_testset_save_CFLAGS="$CFLAGS"
16735
16736 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16737 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16739 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16740 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16741 then :
16742 printf %s "(cached) " >&6
16743 else case e in #(
16744 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16745 /* end confdefs.h. */
16746 int i;
16747 _ACEOF
16748 if ac_fn_c_try_compile "$LINENO"
16749 then :
16750 xorg_cv_cc_flag_unknown_warning_option=yes
16751 else case e in #(
16752 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16753 esac
16754 fi
16755 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16756 esac
16757 fi
16758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16759 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16760 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16761 CFLAGS="$xorg_testset_save_CFLAGS"
16762 fi
16763
16764 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16765 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16766 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16767 fi
16768 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16770 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16771 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16772 then :
16773 printf %s "(cached) " >&6
16774 else case e in #(
16775 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16776 /* end confdefs.h. */
16777 int i;
16778 _ACEOF
16779 if ac_fn_c_try_compile "$LINENO"
16780 then :
16781 xorg_cv_cc_flag_unused_command_line_argument=yes
16782 else case e in #(
16783 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16784 esac
16785 fi
16786 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16787 esac
16788 fi
16789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16790 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16791 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16792 CFLAGS="$xorg_testset_save_CFLAGS"
16793 fi
16794
16795 found="no"
16796
16797 if test $found = "no" ; then
16798 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16799 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16800 fi
16801
16802 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16803 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16804 fi
16805
16806 CFLAGS="$CFLAGS -Werror=trigraphs"
16807
16808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
16809 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
16810 cacheid=xorg_cv_cc_flag__Werror_trigraphs
16811 if eval test \${$cacheid+y}
16812 then :
16813 printf %s "(cached) " >&6
16814 else case e in #(
16815 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16816 /* end confdefs.h. */
16817 int i;
16818 int
16819 main (void)
16820 {
16821
16822 ;
16823 return 0;
16824 }
16825 _ACEOF
16826 if ac_fn_c_try_link "$LINENO"
16827 then :
16828 eval $cacheid=yes
16829 else case e in #(
16830 e) eval $cacheid=no ;;
16831 esac
16832 fi
16833 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16834 conftest$ac_exeext conftest.$ac_ext ;;
16835 esac
16836 fi
16837
16838
16839 CFLAGS="$xorg_testset_save_CFLAGS"
16840
16841 eval supported=\$$cacheid
16842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16843 printf "%s\n" "$supported" >&6; }
16844 if test "$supported" = "yes" ; then
16845 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
16846 found="yes"
16847 fi
16848 fi
16849
16850
16851
16852
16853
16854
16855
16856
16857
16858
16859
16860
16861
16862
16863
16864 xorg_testset_save_CFLAGS="$CFLAGS"
16865
16866 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16867 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16869 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16870 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16871 then :
16872 printf %s "(cached) " >&6
16873 else case e in #(
16874 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16875 /* end confdefs.h. */
16876 int i;
16877 _ACEOF
16878 if ac_fn_c_try_compile "$LINENO"
16879 then :
16880 xorg_cv_cc_flag_unknown_warning_option=yes
16881 else case e in #(
16882 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16883 esac
16884 fi
16885 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16886 esac
16887 fi
16888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16889 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16890 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16891 CFLAGS="$xorg_testset_save_CFLAGS"
16892 fi
16893
16894 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16895 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16896 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16897 fi
16898 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16900 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16901 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16902 then :
16903 printf %s "(cached) " >&6
16904 else case e in #(
16905 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16906 /* end confdefs.h. */
16907 int i;
16908 _ACEOF
16909 if ac_fn_c_try_compile "$LINENO"
16910 then :
16911 xorg_cv_cc_flag_unused_command_line_argument=yes
16912 else case e in #(
16913 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16914 esac
16915 fi
16916 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16917 esac
16918 fi
16919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16920 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16921 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16922 CFLAGS="$xorg_testset_save_CFLAGS"
16923 fi
16924
16925 found="no"
16926
16927 if test $found = "no" ; then
16928 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16929 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16930 fi
16931
16932 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16933 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16934 fi
16935
16936 CFLAGS="$CFLAGS -Werror=array-bounds"
16937
16938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
16939 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
16940 cacheid=xorg_cv_cc_flag__Werror_array_bounds
16941 if eval test \${$cacheid+y}
16942 then :
16943 printf %s "(cached) " >&6
16944 else case e in #(
16945 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16946 /* end confdefs.h. */
16947 int i;
16948 int
16949 main (void)
16950 {
16951
16952 ;
16953 return 0;
16954 }
16955 _ACEOF
16956 if ac_fn_c_try_link "$LINENO"
16957 then :
16958 eval $cacheid=yes
16959 else case e in #(
16960 e) eval $cacheid=no ;;
16961 esac
16962 fi
16963 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16964 conftest$ac_exeext conftest.$ac_ext ;;
16965 esac
16966 fi
16967
16968
16969 CFLAGS="$xorg_testset_save_CFLAGS"
16970
16971 eval supported=\$$cacheid
16972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16973 printf "%s\n" "$supported" >&6; }
16974 if test "$supported" = "yes" ; then
16975 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
16976 found="yes"
16977 fi
16978 fi
16979
16980
16981
16982
16983
16984
16985
16986
16987
16988
16989
16990
16991
16992
16993
16994 xorg_testset_save_CFLAGS="$CFLAGS"
16995
16996 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16997 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16999 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17000 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17001 then :
17002 printf %s "(cached) " >&6
17003 else case e in #(
17004 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17005 /* end confdefs.h. */
17006 int i;
17007 _ACEOF
17008 if ac_fn_c_try_compile "$LINENO"
17009 then :
17010 xorg_cv_cc_flag_unknown_warning_option=yes
17011 else case e in #(
17012 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17013 esac
17014 fi
17015 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17016 esac
17017 fi
17018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17019 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17020 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17021 CFLAGS="$xorg_testset_save_CFLAGS"
17022 fi
17023
17024 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17025 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17026 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17027 fi
17028 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17030 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17031 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17032 then :
17033 printf %s "(cached) " >&6
17034 else case e in #(
17035 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17036 /* end confdefs.h. */
17037 int i;
17038 _ACEOF
17039 if ac_fn_c_try_compile "$LINENO"
17040 then :
17041 xorg_cv_cc_flag_unused_command_line_argument=yes
17042 else case e in #(
17043 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17044 esac
17045 fi
17046 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17047 esac
17048 fi
17049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17050 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17051 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17052 CFLAGS="$xorg_testset_save_CFLAGS"
17053 fi
17054
17055 found="no"
17056
17057 if test $found = "no" ; then
17058 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17059 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17060 fi
17061
17062 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17063 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17064 fi
17065
17066 CFLAGS="$CFLAGS -Werror=write-strings"
17067
17068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
17069 printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
17070 cacheid=xorg_cv_cc_flag__Werror_write_strings
17071 if eval test \${$cacheid+y}
17072 then :
17073 printf %s "(cached) " >&6
17074 else case e in #(
17075 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17076 /* end confdefs.h. */
17077 int i;
17078 int
17079 main (void)
17080 {
17081
17082 ;
17083 return 0;
17084 }
17085 _ACEOF
17086 if ac_fn_c_try_link "$LINENO"
17087 then :
17088 eval $cacheid=yes
17089 else case e in #(
17090 e) eval $cacheid=no ;;
17091 esac
17092 fi
17093 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17094 conftest$ac_exeext conftest.$ac_ext ;;
17095 esac
17096 fi
17097
17098
17099 CFLAGS="$xorg_testset_save_CFLAGS"
17100
17101 eval supported=\$$cacheid
17102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17103 printf "%s\n" "$supported" >&6; }
17104 if test "$supported" = "yes" ; then
17105 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
17106 found="yes"
17107 fi
17108 fi
17109
17110
17111
17112
17113
17114
17115
17116
17117
17118
17119
17120
17121
17122
17123
17124 xorg_testset_save_CFLAGS="$CFLAGS"
17125
17126 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17127 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17129 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17130 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17131 then :
17132 printf %s "(cached) " >&6
17133 else case e in #(
17134 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17135 /* end confdefs.h. */
17136 int i;
17137 _ACEOF
17138 if ac_fn_c_try_compile "$LINENO"
17139 then :
17140 xorg_cv_cc_flag_unknown_warning_option=yes
17141 else case e in #(
17142 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17143 esac
17144 fi
17145 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17146 esac
17147 fi
17148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17149 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17150 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17151 CFLAGS="$xorg_testset_save_CFLAGS"
17152 fi
17153
17154 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17155 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17156 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17157 fi
17158 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17160 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17161 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17162 then :
17163 printf %s "(cached) " >&6
17164 else case e in #(
17165 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17166 /* end confdefs.h. */
17167 int i;
17168 _ACEOF
17169 if ac_fn_c_try_compile "$LINENO"
17170 then :
17171 xorg_cv_cc_flag_unused_command_line_argument=yes
17172 else case e in #(
17173 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17174 esac
17175 fi
17176 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17177 esac
17178 fi
17179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17180 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17181 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17182 CFLAGS="$xorg_testset_save_CFLAGS"
17183 fi
17184
17185 found="no"
17186
17187 if test $found = "no" ; then
17188 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17189 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17190 fi
17191
17192 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17193 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17194 fi
17195
17196 CFLAGS="$CFLAGS -Werror=address"
17197
17198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
17199 printf %s "checking if $CC supports -Werror=address... " >&6; }
17200 cacheid=xorg_cv_cc_flag__Werror_address
17201 if eval test \${$cacheid+y}
17202 then :
17203 printf %s "(cached) " >&6
17204 else case e in #(
17205 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17206 /* end confdefs.h. */
17207 int i;
17208 int
17209 main (void)
17210 {
17211
17212 ;
17213 return 0;
17214 }
17215 _ACEOF
17216 if ac_fn_c_try_link "$LINENO"
17217 then :
17218 eval $cacheid=yes
17219 else case e in #(
17220 e) eval $cacheid=no ;;
17221 esac
17222 fi
17223 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17224 conftest$ac_exeext conftest.$ac_ext ;;
17225 esac
17226 fi
17227
17228
17229 CFLAGS="$xorg_testset_save_CFLAGS"
17230
17231 eval supported=\$$cacheid
17232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17233 printf "%s\n" "$supported" >&6; }
17234 if test "$supported" = "yes" ; then
17235 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
17236 found="yes"
17237 fi
17238 fi
17239
17240
17241
17242
17243
17244
17245
17246
17247
17248
17249
17250
17251
17252
17253
17254 xorg_testset_save_CFLAGS="$CFLAGS"
17255
17256 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17257 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17259 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17260 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17261 then :
17262 printf %s "(cached) " >&6
17263 else case e in #(
17264 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17265 /* end confdefs.h. */
17266 int i;
17267 _ACEOF
17268 if ac_fn_c_try_compile "$LINENO"
17269 then :
17270 xorg_cv_cc_flag_unknown_warning_option=yes
17271 else case e in #(
17272 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17273 esac
17274 fi
17275 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17276 esac
17277 fi
17278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17279 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17280 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17281 CFLAGS="$xorg_testset_save_CFLAGS"
17282 fi
17283
17284 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17285 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17286 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17287 fi
17288 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17290 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17291 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17292 then :
17293 printf %s "(cached) " >&6
17294 else case e in #(
17295 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17296 /* end confdefs.h. */
17297 int i;
17298 _ACEOF
17299 if ac_fn_c_try_compile "$LINENO"
17300 then :
17301 xorg_cv_cc_flag_unused_command_line_argument=yes
17302 else case e in #(
17303 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17304 esac
17305 fi
17306 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17307 esac
17308 fi
17309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17310 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17311 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17312 CFLAGS="$xorg_testset_save_CFLAGS"
17313 fi
17314
17315 found="no"
17316
17317 if test $found = "no" ; then
17318 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17319 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17320 fi
17321
17322 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17323 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17324 fi
17325
17326 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
17327
17328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
17329 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
17330 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
17331 if eval test \${$cacheid+y}
17332 then :
17333 printf %s "(cached) " >&6
17334 else case e in #(
17335 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17336 /* end confdefs.h. */
17337 int i;
17338 int
17339 main (void)
17340 {
17341
17342 ;
17343 return 0;
17344 }
17345 _ACEOF
17346 if ac_fn_c_try_link "$LINENO"
17347 then :
17348 eval $cacheid=yes
17349 else case e in #(
17350 e) eval $cacheid=no ;;
17351 esac
17352 fi
17353 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17354 conftest$ac_exeext conftest.$ac_ext ;;
17355 esac
17356 fi
17357
17358
17359 CFLAGS="$xorg_testset_save_CFLAGS"
17360
17361 eval supported=\$$cacheid
17362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17363 printf "%s\n" "$supported" >&6; }
17364 if test "$supported" = "yes" ; then
17365 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
17366 found="yes"
17367 fi
17368 fi
17369
17370 if test $found = "no" ; then
17371 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17372 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17373 fi
17374
17375 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17376 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17377 fi
17378
17379 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
17380
17381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
17382 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
17383 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
17384 if eval test \${$cacheid+y}
17385 then :
17386 printf %s "(cached) " >&6
17387 else case e in #(
17388 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17389 /* end confdefs.h. */
17390 int i;
17391 int
17392 main (void)
17393 {
17394
17395 ;
17396 return 0;
17397 }
17398 _ACEOF
17399 if ac_fn_c_try_link "$LINENO"
17400 then :
17401 eval $cacheid=yes
17402 else case e in #(
17403 e) eval $cacheid=no ;;
17404 esac
17405 fi
17406 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17407 conftest$ac_exeext conftest.$ac_ext ;;
17408 esac
17409 fi
17410
17411
17412 CFLAGS="$xorg_testset_save_CFLAGS"
17413
17414 eval supported=\$$cacheid
17415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17416 printf "%s\n" "$supported" >&6; }
17417 if test "$supported" = "yes" ; then
17418 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
17419 found="yes"
17420 fi
17421 fi
17422
17423
17424
17425
17426
17427
17428
17429
17430
17431
17432
17433
17434
17435
17436
17437 xorg_testset_save_CFLAGS="$CFLAGS"
17438
17439 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17440 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17442 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17443 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17444 then :
17445 printf %s "(cached) " >&6
17446 else case e in #(
17447 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17448 /* end confdefs.h. */
17449 int i;
17450 _ACEOF
17451 if ac_fn_c_try_compile "$LINENO"
17452 then :
17453 xorg_cv_cc_flag_unknown_warning_option=yes
17454 else case e in #(
17455 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17456 esac
17457 fi
17458 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17459 esac
17460 fi
17461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17462 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17463 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17464 CFLAGS="$xorg_testset_save_CFLAGS"
17465 fi
17466
17467 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17468 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17469 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17470 fi
17471 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17473 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17474 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17475 then :
17476 printf %s "(cached) " >&6
17477 else case e in #(
17478 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17479 /* end confdefs.h. */
17480 int i;
17481 _ACEOF
17482 if ac_fn_c_try_compile "$LINENO"
17483 then :
17484 xorg_cv_cc_flag_unused_command_line_argument=yes
17485 else case e in #(
17486 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17487 esac
17488 fi
17489 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17490 esac
17491 fi
17492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17493 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17494 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17495 CFLAGS="$xorg_testset_save_CFLAGS"
17496 fi
17497
17498 found="no"
17499
17500 if test $found = "no" ; then
17501 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17502 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17503 fi
17504
17505 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17506 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17507 fi
17508
17509 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
17510
17511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
17512 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
17513 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
17514 if eval test \${$cacheid+y}
17515 then :
17516 printf %s "(cached) " >&6
17517 else case e in #(
17518 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17519 /* end confdefs.h. */
17520 int i;
17521 int
17522 main (void)
17523 {
17524
17525 ;
17526 return 0;
17527 }
17528 _ACEOF
17529 if ac_fn_c_try_link "$LINENO"
17530 then :
17531 eval $cacheid=yes
17532 else case e in #(
17533 e) eval $cacheid=no ;;
17534 esac
17535 fi
17536 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17537 conftest$ac_exeext conftest.$ac_ext ;;
17538 esac
17539 fi
17540
17541
17542 CFLAGS="$xorg_testset_save_CFLAGS"
17543
17544 eval supported=\$$cacheid
17545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17546 printf "%s\n" "$supported" >&6; }
17547 if test "$supported" = "yes" ; then
17548 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
17549 found="yes"
17550 fi
17551 fi
17552
17553 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
17554 else
17555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&5
17556 printf "%s\n" "$as_me: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&2;}
17557
17558
17559
17560
17561
17562
17563
17564
17565
17566
17567
17568
17569
17570 xorg_testset_save_CFLAGS="$CFLAGS"
17571
17572 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17573 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17575 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17576 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17577 then :
17578 printf %s "(cached) " >&6
17579 else case e in #(
17580 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17581 /* end confdefs.h. */
17582 int i;
17583 _ACEOF
17584 if ac_fn_c_try_compile "$LINENO"
17585 then :
17586 xorg_cv_cc_flag_unknown_warning_option=yes
17587 else case e in #(
17588 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17589 esac
17590 fi
17591 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17592 esac
17593 fi
17594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17595 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17596 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17597 CFLAGS="$xorg_testset_save_CFLAGS"
17598 fi
17599
17600 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17601 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17602 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17603 fi
17604 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17606 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17607 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17608 then :
17609 printf %s "(cached) " >&6
17610 else case e in #(
17611 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17612 /* end confdefs.h. */
17613 int i;
17614 _ACEOF
17615 if ac_fn_c_try_compile "$LINENO"
17616 then :
17617 xorg_cv_cc_flag_unused_command_line_argument=yes
17618 else case e in #(
17619 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17620 esac
17621 fi
17622 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17623 esac
17624 fi
17625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17626 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17627 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17628 CFLAGS="$xorg_testset_save_CFLAGS"
17629 fi
17630
17631 found="no"
17632
17633 if test $found = "no" ; then
17634 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17635 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17636 fi
17637
17638 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17639 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17640 fi
17641
17642 CFLAGS="$CFLAGS -Wimplicit"
17643
17644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
17645 printf %s "checking if $CC supports -Wimplicit... " >&6; }
17646 cacheid=xorg_cv_cc_flag__Wimplicit
17647 if eval test \${$cacheid+y}
17648 then :
17649 printf %s "(cached) " >&6
17650 else case e in #(
17651 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17652 /* end confdefs.h. */
17653 int i;
17654 int
17655 main (void)
17656 {
17657
17658 ;
17659 return 0;
17660 }
17661 _ACEOF
17662 if ac_fn_c_try_link "$LINENO"
17663 then :
17664 eval $cacheid=yes
17665 else case e in #(
17666 e) eval $cacheid=no ;;
17667 esac
17668 fi
17669 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17670 conftest$ac_exeext conftest.$ac_ext ;;
17671 esac
17672 fi
17673
17674
17675 CFLAGS="$xorg_testset_save_CFLAGS"
17676
17677 eval supported=\$$cacheid
17678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17679 printf "%s\n" "$supported" >&6; }
17680 if test "$supported" = "yes" ; then
17681 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
17682 found="yes"
17683 fi
17684 fi
17685
17686
17687
17688
17689
17690
17691
17692
17693
17694
17695
17696
17697
17698
17699
17700 xorg_testset_save_CFLAGS="$CFLAGS"
17701
17702 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17703 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17705 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17706 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17707 then :
17708 printf %s "(cached) " >&6
17709 else case e in #(
17710 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17711 /* end confdefs.h. */
17712 int i;
17713 _ACEOF
17714 if ac_fn_c_try_compile "$LINENO"
17715 then :
17716 xorg_cv_cc_flag_unknown_warning_option=yes
17717 else case e in #(
17718 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17719 esac
17720 fi
17721 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17722 esac
17723 fi
17724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17725 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17726 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17727 CFLAGS="$xorg_testset_save_CFLAGS"
17728 fi
17729
17730 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17731 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17732 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17733 fi
17734 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17736 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17737 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17738 then :
17739 printf %s "(cached) " >&6
17740 else case e in #(
17741 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17742 /* end confdefs.h. */
17743 int i;
17744 _ACEOF
17745 if ac_fn_c_try_compile "$LINENO"
17746 then :
17747 xorg_cv_cc_flag_unused_command_line_argument=yes
17748 else case e in #(
17749 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17750 esac
17751 fi
17752 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17753 esac
17754 fi
17755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17756 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17757 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17758 CFLAGS="$xorg_testset_save_CFLAGS"
17759 fi
17760
17761 found="no"
17762
17763 if test $found = "no" ; then
17764 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17765 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17766 fi
17767
17768 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17769 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17770 fi
17771
17772 CFLAGS="$CFLAGS -Wnonnull"
17773
17774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
17775 printf %s "checking if $CC supports -Wnonnull... " >&6; }
17776 cacheid=xorg_cv_cc_flag__Wnonnull
17777 if eval test \${$cacheid+y}
17778 then :
17779 printf %s "(cached) " >&6
17780 else case e in #(
17781 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17782 /* end confdefs.h. */
17783 int i;
17784 int
17785 main (void)
17786 {
17787
17788 ;
17789 return 0;
17790 }
17791 _ACEOF
17792 if ac_fn_c_try_link "$LINENO"
17793 then :
17794 eval $cacheid=yes
17795 else case e in #(
17796 e) eval $cacheid=no ;;
17797 esac
17798 fi
17799 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17800 conftest$ac_exeext conftest.$ac_ext ;;
17801 esac
17802 fi
17803
17804
17805 CFLAGS="$xorg_testset_save_CFLAGS"
17806
17807 eval supported=\$$cacheid
17808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17809 printf "%s\n" "$supported" >&6; }
17810 if test "$supported" = "yes" ; then
17811 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
17812 found="yes"
17813 fi
17814 fi
17815
17816
17817
17818
17819
17820
17821
17822
17823
17824
17825
17826
17827
17828
17829
17830 xorg_testset_save_CFLAGS="$CFLAGS"
17831
17832 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17833 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17835 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17836 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17837 then :
17838 printf %s "(cached) " >&6
17839 else case e in #(
17840 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17841 /* end confdefs.h. */
17842 int i;
17843 _ACEOF
17844 if ac_fn_c_try_compile "$LINENO"
17845 then :
17846 xorg_cv_cc_flag_unknown_warning_option=yes
17847 else case e in #(
17848 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17849 esac
17850 fi
17851 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17852 esac
17853 fi
17854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17855 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17856 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17857 CFLAGS="$xorg_testset_save_CFLAGS"
17858 fi
17859
17860 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17861 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17862 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17863 fi
17864 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17866 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17867 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17868 then :
17869 printf %s "(cached) " >&6
17870 else case e in #(
17871 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17872 /* end confdefs.h. */
17873 int i;
17874 _ACEOF
17875 if ac_fn_c_try_compile "$LINENO"
17876 then :
17877 xorg_cv_cc_flag_unused_command_line_argument=yes
17878 else case e in #(
17879 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17880 esac
17881 fi
17882 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17883 esac
17884 fi
17885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17886 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17887 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17888 CFLAGS="$xorg_testset_save_CFLAGS"
17889 fi
17890
17891 found="no"
17892
17893 if test $found = "no" ; then
17894 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17895 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17896 fi
17897
17898 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17899 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17900 fi
17901
17902 CFLAGS="$CFLAGS -Winit-self"
17903
17904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
17905 printf %s "checking if $CC supports -Winit-self... " >&6; }
17906 cacheid=xorg_cv_cc_flag__Winit_self
17907 if eval test \${$cacheid+y}
17908 then :
17909 printf %s "(cached) " >&6
17910 else case e in #(
17911 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17912 /* end confdefs.h. */
17913 int i;
17914 int
17915 main (void)
17916 {
17917
17918 ;
17919 return 0;
17920 }
17921 _ACEOF
17922 if ac_fn_c_try_link "$LINENO"
17923 then :
17924 eval $cacheid=yes
17925 else case e in #(
17926 e) eval $cacheid=no ;;
17927 esac
17928 fi
17929 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17930 conftest$ac_exeext conftest.$ac_ext ;;
17931 esac
17932 fi
17933
17934
17935 CFLAGS="$xorg_testset_save_CFLAGS"
17936
17937 eval supported=\$$cacheid
17938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17939 printf "%s\n" "$supported" >&6; }
17940 if test "$supported" = "yes" ; then
17941 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
17942 found="yes"
17943 fi
17944 fi
17945
17946
17947
17948
17949
17950
17951
17952
17953
17954
17955
17956
17957
17958
17959
17960 xorg_testset_save_CFLAGS="$CFLAGS"
17961
17962 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17963 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17965 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17966 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17967 then :
17968 printf %s "(cached) " >&6
17969 else case e in #(
17970 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17971 /* end confdefs.h. */
17972 int i;
17973 _ACEOF
17974 if ac_fn_c_try_compile "$LINENO"
17975 then :
17976 xorg_cv_cc_flag_unknown_warning_option=yes
17977 else case e in #(
17978 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17979 esac
17980 fi
17981 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17982 esac
17983 fi
17984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17985 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17986 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17987 CFLAGS="$xorg_testset_save_CFLAGS"
17988 fi
17989
17990 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17991 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17992 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17993 fi
17994 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17996 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17997 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17998 then :
17999 printf %s "(cached) " >&6
18000 else case e in #(
18001 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18002 /* end confdefs.h. */
18003 int i;
18004 _ACEOF
18005 if ac_fn_c_try_compile "$LINENO"
18006 then :
18007 xorg_cv_cc_flag_unused_command_line_argument=yes
18008 else case e in #(
18009 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18010 esac
18011 fi
18012 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18013 esac
18014 fi
18015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18016 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18017 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18018 CFLAGS="$xorg_testset_save_CFLAGS"
18019 fi
18020
18021 found="no"
18022
18023 if test $found = "no" ; then
18024 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18025 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18026 fi
18027
18028 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18029 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18030 fi
18031
18032 CFLAGS="$CFLAGS -Wmain"
18033
18034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
18035 printf %s "checking if $CC supports -Wmain... " >&6; }
18036 cacheid=xorg_cv_cc_flag__Wmain
18037 if eval test \${$cacheid+y}
18038 then :
18039 printf %s "(cached) " >&6
18040 else case e in #(
18041 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18042 /* end confdefs.h. */
18043 int i;
18044 int
18045 main (void)
18046 {
18047
18048 ;
18049 return 0;
18050 }
18051 _ACEOF
18052 if ac_fn_c_try_link "$LINENO"
18053 then :
18054 eval $cacheid=yes
18055 else case e in #(
18056 e) eval $cacheid=no ;;
18057 esac
18058 fi
18059 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18060 conftest$ac_exeext conftest.$ac_ext ;;
18061 esac
18062 fi
18063
18064
18065 CFLAGS="$xorg_testset_save_CFLAGS"
18066
18067 eval supported=\$$cacheid
18068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18069 printf "%s\n" "$supported" >&6; }
18070 if test "$supported" = "yes" ; then
18071 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
18072 found="yes"
18073 fi
18074 fi
18075
18076
18077
18078
18079
18080
18081
18082
18083
18084
18085
18086
18087
18088
18089
18090 xorg_testset_save_CFLAGS="$CFLAGS"
18091
18092 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18093 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18095 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18096 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18097 then :
18098 printf %s "(cached) " >&6
18099 else case e in #(
18100 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18101 /* end confdefs.h. */
18102 int i;
18103 _ACEOF
18104 if ac_fn_c_try_compile "$LINENO"
18105 then :
18106 xorg_cv_cc_flag_unknown_warning_option=yes
18107 else case e in #(
18108 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18109 esac
18110 fi
18111 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18112 esac
18113 fi
18114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18115 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18116 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18117 CFLAGS="$xorg_testset_save_CFLAGS"
18118 fi
18119
18120 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18121 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18122 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18123 fi
18124 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18126 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18127 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18128 then :
18129 printf %s "(cached) " >&6
18130 else case e in #(
18131 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18132 /* end confdefs.h. */
18133 int i;
18134 _ACEOF
18135 if ac_fn_c_try_compile "$LINENO"
18136 then :
18137 xorg_cv_cc_flag_unused_command_line_argument=yes
18138 else case e in #(
18139 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18140 esac
18141 fi
18142 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18143 esac
18144 fi
18145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18146 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18147 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18148 CFLAGS="$xorg_testset_save_CFLAGS"
18149 fi
18150
18151 found="no"
18152
18153 if test $found = "no" ; then
18154 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18155 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18156 fi
18157
18158 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18159 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18160 fi
18161
18162 CFLAGS="$CFLAGS -Wmissing-braces"
18163
18164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
18165 printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
18166 cacheid=xorg_cv_cc_flag__Wmissing_braces
18167 if eval test \${$cacheid+y}
18168 then :
18169 printf %s "(cached) " >&6
18170 else case e in #(
18171 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18172 /* end confdefs.h. */
18173 int i;
18174 int
18175 main (void)
18176 {
18177
18178 ;
18179 return 0;
18180 }
18181 _ACEOF
18182 if ac_fn_c_try_link "$LINENO"
18183 then :
18184 eval $cacheid=yes
18185 else case e in #(
18186 e) eval $cacheid=no ;;
18187 esac
18188 fi
18189 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18190 conftest$ac_exeext conftest.$ac_ext ;;
18191 esac
18192 fi
18193
18194
18195 CFLAGS="$xorg_testset_save_CFLAGS"
18196
18197 eval supported=\$$cacheid
18198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18199 printf "%s\n" "$supported" >&6; }
18200 if test "$supported" = "yes" ; then
18201 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
18202 found="yes"
18203 fi
18204 fi
18205
18206
18207
18208
18209
18210
18211
18212
18213
18214
18215
18216
18217
18218
18219
18220 xorg_testset_save_CFLAGS="$CFLAGS"
18221
18222 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18223 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18225 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18226 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18227 then :
18228 printf %s "(cached) " >&6
18229 else case e in #(
18230 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18231 /* end confdefs.h. */
18232 int i;
18233 _ACEOF
18234 if ac_fn_c_try_compile "$LINENO"
18235 then :
18236 xorg_cv_cc_flag_unknown_warning_option=yes
18237 else case e in #(
18238 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18239 esac
18240 fi
18241 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18242 esac
18243 fi
18244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18245 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18246 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18247 CFLAGS="$xorg_testset_save_CFLAGS"
18248 fi
18249
18250 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18251 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18252 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18253 fi
18254 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18256 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18257 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18258 then :
18259 printf %s "(cached) " >&6
18260 else case e in #(
18261 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18262 /* end confdefs.h. */
18263 int i;
18264 _ACEOF
18265 if ac_fn_c_try_compile "$LINENO"
18266 then :
18267 xorg_cv_cc_flag_unused_command_line_argument=yes
18268 else case e in #(
18269 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18270 esac
18271 fi
18272 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18273 esac
18274 fi
18275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18276 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18277 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18278 CFLAGS="$xorg_testset_save_CFLAGS"
18279 fi
18280
18281 found="no"
18282
18283 if test $found = "no" ; then
18284 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18285 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18286 fi
18287
18288 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18289 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18290 fi
18291
18292 CFLAGS="$CFLAGS -Wsequence-point"
18293
18294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
18295 printf %s "checking if $CC supports -Wsequence-point... " >&6; }
18296 cacheid=xorg_cv_cc_flag__Wsequence_point
18297 if eval test \${$cacheid+y}
18298 then :
18299 printf %s "(cached) " >&6
18300 else case e in #(
18301 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18302 /* end confdefs.h. */
18303 int i;
18304 int
18305 main (void)
18306 {
18307
18308 ;
18309 return 0;
18310 }
18311 _ACEOF
18312 if ac_fn_c_try_link "$LINENO"
18313 then :
18314 eval $cacheid=yes
18315 else case e in #(
18316 e) eval $cacheid=no ;;
18317 esac
18318 fi
18319 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18320 conftest$ac_exeext conftest.$ac_ext ;;
18321 esac
18322 fi
18323
18324
18325 CFLAGS="$xorg_testset_save_CFLAGS"
18326
18327 eval supported=\$$cacheid
18328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18329 printf "%s\n" "$supported" >&6; }
18330 if test "$supported" = "yes" ; then
18331 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
18332 found="yes"
18333 fi
18334 fi
18335
18336
18337
18338
18339
18340
18341
18342
18343
18344
18345
18346
18347
18348
18349
18350 xorg_testset_save_CFLAGS="$CFLAGS"
18351
18352 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18353 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18355 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18356 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18357 then :
18358 printf %s "(cached) " >&6
18359 else case e in #(
18360 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18361 /* end confdefs.h. */
18362 int i;
18363 _ACEOF
18364 if ac_fn_c_try_compile "$LINENO"
18365 then :
18366 xorg_cv_cc_flag_unknown_warning_option=yes
18367 else case e in #(
18368 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18369 esac
18370 fi
18371 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18372 esac
18373 fi
18374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18375 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18376 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18377 CFLAGS="$xorg_testset_save_CFLAGS"
18378 fi
18379
18380 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18381 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18382 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18383 fi
18384 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18386 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18387 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18388 then :
18389 printf %s "(cached) " >&6
18390 else case e in #(
18391 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18392 /* end confdefs.h. */
18393 int i;
18394 _ACEOF
18395 if ac_fn_c_try_compile "$LINENO"
18396 then :
18397 xorg_cv_cc_flag_unused_command_line_argument=yes
18398 else case e in #(
18399 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18400 esac
18401 fi
18402 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18403 esac
18404 fi
18405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18406 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18407 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18408 CFLAGS="$xorg_testset_save_CFLAGS"
18409 fi
18410
18411 found="no"
18412
18413 if test $found = "no" ; then
18414 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18415 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18416 fi
18417
18418 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18419 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18420 fi
18421
18422 CFLAGS="$CFLAGS -Wreturn-type"
18423
18424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
18425 printf %s "checking if $CC supports -Wreturn-type... " >&6; }
18426 cacheid=xorg_cv_cc_flag__Wreturn_type
18427 if eval test \${$cacheid+y}
18428 then :
18429 printf %s "(cached) " >&6
18430 else case e in #(
18431 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18432 /* end confdefs.h. */
18433 int i;
18434 int
18435 main (void)
18436 {
18437
18438 ;
18439 return 0;
18440 }
18441 _ACEOF
18442 if ac_fn_c_try_link "$LINENO"
18443 then :
18444 eval $cacheid=yes
18445 else case e in #(
18446 e) eval $cacheid=no ;;
18447 esac
18448 fi
18449 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18450 conftest$ac_exeext conftest.$ac_ext ;;
18451 esac
18452 fi
18453
18454
18455 CFLAGS="$xorg_testset_save_CFLAGS"
18456
18457 eval supported=\$$cacheid
18458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18459 printf "%s\n" "$supported" >&6; }
18460 if test "$supported" = "yes" ; then
18461 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
18462 found="yes"
18463 fi
18464 fi
18465
18466
18467
18468
18469
18470
18471
18472
18473
18474
18475
18476
18477
18478
18479
18480 xorg_testset_save_CFLAGS="$CFLAGS"
18481
18482 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18483 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18485 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18486 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18487 then :
18488 printf %s "(cached) " >&6
18489 else case e in #(
18490 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18491 /* end confdefs.h. */
18492 int i;
18493 _ACEOF
18494 if ac_fn_c_try_compile "$LINENO"
18495 then :
18496 xorg_cv_cc_flag_unknown_warning_option=yes
18497 else case e in #(
18498 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18499 esac
18500 fi
18501 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18502 esac
18503 fi
18504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18505 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18506 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18507 CFLAGS="$xorg_testset_save_CFLAGS"
18508 fi
18509
18510 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18511 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18512 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18513 fi
18514 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18516 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18517 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18518 then :
18519 printf %s "(cached) " >&6
18520 else case e in #(
18521 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18522 /* end confdefs.h. */
18523 int i;
18524 _ACEOF
18525 if ac_fn_c_try_compile "$LINENO"
18526 then :
18527 xorg_cv_cc_flag_unused_command_line_argument=yes
18528 else case e in #(
18529 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18530 esac
18531 fi
18532 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18533 esac
18534 fi
18535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18536 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18537 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18538 CFLAGS="$xorg_testset_save_CFLAGS"
18539 fi
18540
18541 found="no"
18542
18543 if test $found = "no" ; then
18544 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18545 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18546 fi
18547
18548 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18549 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18550 fi
18551
18552 CFLAGS="$CFLAGS -Wtrigraphs"
18553
18554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
18555 printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
18556 cacheid=xorg_cv_cc_flag__Wtrigraphs
18557 if eval test \${$cacheid+y}
18558 then :
18559 printf %s "(cached) " >&6
18560 else case e in #(
18561 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18562 /* end confdefs.h. */
18563 int i;
18564 int
18565 main (void)
18566 {
18567
18568 ;
18569 return 0;
18570 }
18571 _ACEOF
18572 if ac_fn_c_try_link "$LINENO"
18573 then :
18574 eval $cacheid=yes
18575 else case e in #(
18576 e) eval $cacheid=no ;;
18577 esac
18578 fi
18579 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18580 conftest$ac_exeext conftest.$ac_ext ;;
18581 esac
18582 fi
18583
18584
18585 CFLAGS="$xorg_testset_save_CFLAGS"
18586
18587 eval supported=\$$cacheid
18588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18589 printf "%s\n" "$supported" >&6; }
18590 if test "$supported" = "yes" ; then
18591 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
18592 found="yes"
18593 fi
18594 fi
18595
18596
18597
18598
18599
18600
18601
18602
18603
18604
18605
18606
18607
18608
18609
18610 xorg_testset_save_CFLAGS="$CFLAGS"
18611
18612 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18613 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18615 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18616 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18617 then :
18618 printf %s "(cached) " >&6
18619 else case e in #(
18620 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18621 /* end confdefs.h. */
18622 int i;
18623 _ACEOF
18624 if ac_fn_c_try_compile "$LINENO"
18625 then :
18626 xorg_cv_cc_flag_unknown_warning_option=yes
18627 else case e in #(
18628 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18629 esac
18630 fi
18631 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18632 esac
18633 fi
18634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18635 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18636 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18637 CFLAGS="$xorg_testset_save_CFLAGS"
18638 fi
18639
18640 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18641 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18642 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18643 fi
18644 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18646 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18647 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18648 then :
18649 printf %s "(cached) " >&6
18650 else case e in #(
18651 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18652 /* end confdefs.h. */
18653 int i;
18654 _ACEOF
18655 if ac_fn_c_try_compile "$LINENO"
18656 then :
18657 xorg_cv_cc_flag_unused_command_line_argument=yes
18658 else case e in #(
18659 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18660 esac
18661 fi
18662 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18663 esac
18664 fi
18665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18666 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18667 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18668 CFLAGS="$xorg_testset_save_CFLAGS"
18669 fi
18670
18671 found="no"
18672
18673 if test $found = "no" ; then
18674 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18675 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18676 fi
18677
18678 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18679 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18680 fi
18681
18682 CFLAGS="$CFLAGS -Warray-bounds"
18683
18684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
18685 printf %s "checking if $CC supports -Warray-bounds... " >&6; }
18686 cacheid=xorg_cv_cc_flag__Warray_bounds
18687 if eval test \${$cacheid+y}
18688 then :
18689 printf %s "(cached) " >&6
18690 else case e in #(
18691 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18692 /* end confdefs.h. */
18693 int i;
18694 int
18695 main (void)
18696 {
18697
18698 ;
18699 return 0;
18700 }
18701 _ACEOF
18702 if ac_fn_c_try_link "$LINENO"
18703 then :
18704 eval $cacheid=yes
18705 else case e in #(
18706 e) eval $cacheid=no ;;
18707 esac
18708 fi
18709 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18710 conftest$ac_exeext conftest.$ac_ext ;;
18711 esac
18712 fi
18713
18714
18715 CFLAGS="$xorg_testset_save_CFLAGS"
18716
18717 eval supported=\$$cacheid
18718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18719 printf "%s\n" "$supported" >&6; }
18720 if test "$supported" = "yes" ; then
18721 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
18722 found="yes"
18723 fi
18724 fi
18725
18726
18727
18728
18729
18730
18731
18732
18733
18734
18735
18736
18737
18738
18739
18740 xorg_testset_save_CFLAGS="$CFLAGS"
18741
18742 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18743 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18745 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18746 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18747 then :
18748 printf %s "(cached) " >&6
18749 else case e in #(
18750 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18751 /* end confdefs.h. */
18752 int i;
18753 _ACEOF
18754 if ac_fn_c_try_compile "$LINENO"
18755 then :
18756 xorg_cv_cc_flag_unknown_warning_option=yes
18757 else case e in #(
18758 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18759 esac
18760 fi
18761 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18762 esac
18763 fi
18764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18765 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18766 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18767 CFLAGS="$xorg_testset_save_CFLAGS"
18768 fi
18769
18770 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18771 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18772 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18773 fi
18774 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18776 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18777 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18778 then :
18779 printf %s "(cached) " >&6
18780 else case e in #(
18781 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18782 /* end confdefs.h. */
18783 int i;
18784 _ACEOF
18785 if ac_fn_c_try_compile "$LINENO"
18786 then :
18787 xorg_cv_cc_flag_unused_command_line_argument=yes
18788 else case e in #(
18789 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18790 esac
18791 fi
18792 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18793 esac
18794 fi
18795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18796 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18797 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18798 CFLAGS="$xorg_testset_save_CFLAGS"
18799 fi
18800
18801 found="no"
18802
18803 if test $found = "no" ; then
18804 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18805 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18806 fi
18807
18808 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18809 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18810 fi
18811
18812 CFLAGS="$CFLAGS -Wwrite-strings"
18813
18814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
18815 printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
18816 cacheid=xorg_cv_cc_flag__Wwrite_strings
18817 if eval test \${$cacheid+y}
18818 then :
18819 printf %s "(cached) " >&6
18820 else case e in #(
18821 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18822 /* end confdefs.h. */
18823 int i;
18824 int
18825 main (void)
18826 {
18827
18828 ;
18829 return 0;
18830 }
18831 _ACEOF
18832 if ac_fn_c_try_link "$LINENO"
18833 then :
18834 eval $cacheid=yes
18835 else case e in #(
18836 e) eval $cacheid=no ;;
18837 esac
18838 fi
18839 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18840 conftest$ac_exeext conftest.$ac_ext ;;
18841 esac
18842 fi
18843
18844
18845 CFLAGS="$xorg_testset_save_CFLAGS"
18846
18847 eval supported=\$$cacheid
18848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18849 printf "%s\n" "$supported" >&6; }
18850 if test "$supported" = "yes" ; then
18851 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
18852 found="yes"
18853 fi
18854 fi
18855
18856
18857
18858
18859
18860
18861
18862
18863
18864
18865
18866
18867
18868
18869
18870 xorg_testset_save_CFLAGS="$CFLAGS"
18871
18872 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18873 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18875 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18876 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18877 then :
18878 printf %s "(cached) " >&6
18879 else case e in #(
18880 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18881 /* end confdefs.h. */
18882 int i;
18883 _ACEOF
18884 if ac_fn_c_try_compile "$LINENO"
18885 then :
18886 xorg_cv_cc_flag_unknown_warning_option=yes
18887 else case e in #(
18888 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18889 esac
18890 fi
18891 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18892 esac
18893 fi
18894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18895 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18896 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18897 CFLAGS="$xorg_testset_save_CFLAGS"
18898 fi
18899
18900 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18901 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18902 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18903 fi
18904 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18906 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18907 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18908 then :
18909 printf %s "(cached) " >&6
18910 else case e in #(
18911 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18912 /* end confdefs.h. */
18913 int i;
18914 _ACEOF
18915 if ac_fn_c_try_compile "$LINENO"
18916 then :
18917 xorg_cv_cc_flag_unused_command_line_argument=yes
18918 else case e in #(
18919 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18920 esac
18921 fi
18922 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18923 esac
18924 fi
18925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18926 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18927 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18928 CFLAGS="$xorg_testset_save_CFLAGS"
18929 fi
18930
18931 found="no"
18932
18933 if test $found = "no" ; then
18934 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18935 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18936 fi
18937
18938 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18939 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18940 fi
18941
18942 CFLAGS="$CFLAGS -Waddress"
18943
18944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
18945 printf %s "checking if $CC supports -Waddress... " >&6; }
18946 cacheid=xorg_cv_cc_flag__Waddress
18947 if eval test \${$cacheid+y}
18948 then :
18949 printf %s "(cached) " >&6
18950 else case e in #(
18951 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18952 /* end confdefs.h. */
18953 int i;
18954 int
18955 main (void)
18956 {
18957
18958 ;
18959 return 0;
18960 }
18961 _ACEOF
18962 if ac_fn_c_try_link "$LINENO"
18963 then :
18964 eval $cacheid=yes
18965 else case e in #(
18966 e) eval $cacheid=no ;;
18967 esac
18968 fi
18969 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18970 conftest$ac_exeext conftest.$ac_ext ;;
18971 esac
18972 fi
18973
18974
18975 CFLAGS="$xorg_testset_save_CFLAGS"
18976
18977 eval supported=\$$cacheid
18978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18979 printf "%s\n" "$supported" >&6; }
18980 if test "$supported" = "yes" ; then
18981 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
18982 found="yes"
18983 fi
18984 fi
18985
18986
18987
18988
18989
18990
18991
18992
18993
18994
18995
18996
18997
18998
18999
19000 xorg_testset_save_CFLAGS="$CFLAGS"
19001
19002 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19003 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19005 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19006 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19007 then :
19008 printf %s "(cached) " >&6
19009 else case e in #(
19010 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19011 /* end confdefs.h. */
19012 int i;
19013 _ACEOF
19014 if ac_fn_c_try_compile "$LINENO"
19015 then :
19016 xorg_cv_cc_flag_unknown_warning_option=yes
19017 else case e in #(
19018 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19019 esac
19020 fi
19021 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19022 esac
19023 fi
19024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19025 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19026 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19027 CFLAGS="$xorg_testset_save_CFLAGS"
19028 fi
19029
19030 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19031 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19032 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19033 fi
19034 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19036 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19037 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19038 then :
19039 printf %s "(cached) " >&6
19040 else case e in #(
19041 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19042 /* end confdefs.h. */
19043 int i;
19044 _ACEOF
19045 if ac_fn_c_try_compile "$LINENO"
19046 then :
19047 xorg_cv_cc_flag_unused_command_line_argument=yes
19048 else case e in #(
19049 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19050 esac
19051 fi
19052 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19053 esac
19054 fi
19055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19056 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19057 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19058 CFLAGS="$xorg_testset_save_CFLAGS"
19059 fi
19060
19061 found="no"
19062
19063 if test $found = "no" ; then
19064 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19065 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19066 fi
19067
19068 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19069 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19070 fi
19071
19072 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
19073
19074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
19075 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
19076 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
19077 if eval test \${$cacheid+y}
19078 then :
19079 printf %s "(cached) " >&6
19080 else case e in #(
19081 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19082 /* end confdefs.h. */
19083 int i;
19084 int
19085 main (void)
19086 {
19087
19088 ;
19089 return 0;
19090 }
19091 _ACEOF
19092 if ac_fn_c_try_link "$LINENO"
19093 then :
19094 eval $cacheid=yes
19095 else case e in #(
19096 e) eval $cacheid=no ;;
19097 esac
19098 fi
19099 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19100 conftest$ac_exeext conftest.$ac_ext ;;
19101 esac
19102 fi
19103
19104
19105 CFLAGS="$xorg_testset_save_CFLAGS"
19106
19107 eval supported=\$$cacheid
19108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19109 printf "%s\n" "$supported" >&6; }
19110 if test "$supported" = "yes" ; then
19111 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
19112 found="yes"
19113 fi
19114 fi
19115
19116
19117
19118
19119
19120
19121
19122
19123
19124
19125
19126
19127
19128
19129
19130 xorg_testset_save_CFLAGS="$CFLAGS"
19131
19132 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19133 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19135 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19136 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19137 then :
19138 printf %s "(cached) " >&6
19139 else case e in #(
19140 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19141 /* end confdefs.h. */
19142 int i;
19143 _ACEOF
19144 if ac_fn_c_try_compile "$LINENO"
19145 then :
19146 xorg_cv_cc_flag_unknown_warning_option=yes
19147 else case e in #(
19148 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19149 esac
19150 fi
19151 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19152 esac
19153 fi
19154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19155 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19156 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19157 CFLAGS="$xorg_testset_save_CFLAGS"
19158 fi
19159
19160 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19161 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19162 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19163 fi
19164 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19166 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19167 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19168 then :
19169 printf %s "(cached) " >&6
19170 else case e in #(
19171 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19172 /* end confdefs.h. */
19173 int i;
19174 _ACEOF
19175 if ac_fn_c_try_compile "$LINENO"
19176 then :
19177 xorg_cv_cc_flag_unused_command_line_argument=yes
19178 else case e in #(
19179 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19180 esac
19181 fi
19182 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19183 esac
19184 fi
19185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19186 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19187 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19188 CFLAGS="$xorg_testset_save_CFLAGS"
19189 fi
19190
19191 found="no"
19192
19193 if test $found = "no" ; then
19194 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19195 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19196 fi
19197
19198 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19199 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19200 fi
19201
19202 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
19203
19204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
19205 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
19206 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
19207 if eval test \${$cacheid+y}
19208 then :
19209 printf %s "(cached) " >&6
19210 else case e in #(
19211 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19212 /* end confdefs.h. */
19213 int i;
19214 int
19215 main (void)
19216 {
19217
19218 ;
19219 return 0;
19220 }
19221 _ACEOF
19222 if ac_fn_c_try_link "$LINENO"
19223 then :
19224 eval $cacheid=yes
19225 else case e in #(
19226 e) eval $cacheid=no ;;
19227 esac
19228 fi
19229 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19230 conftest$ac_exeext conftest.$ac_ext ;;
19231 esac
19232 fi
19233
19234
19235 CFLAGS="$xorg_testset_save_CFLAGS"
19236
19237 eval supported=\$$cacheid
19238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19239 printf "%s\n" "$supported" >&6; }
19240 if test "$supported" = "yes" ; then
19241 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
19242 found="yes"
19243 fi
19244 fi
19245
19246
19247 fi
19248
19249
19250
19251
19252
19253
19254
19255 CWARNFLAGS="$BASE_CFLAGS"
19256 if test "x$GCC" = xyes ; then
19257 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
19258 fi
19259
19260
19261
19262
19263
19264
19265
19266
19267 # Check whether --enable-strict-compilation was given.
19268 if test ${enable_strict_compilation+y}
19269 then :
19270 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
19271 else case e in #(
19272 e) STRICT_COMPILE=no ;;
19273 esac
19274 fi
19275
19276
19277
19278
19279
19280
19281 STRICT_CFLAGS=""
19282
19283
19284
19285
19286
19287
19288
19289
19290
19291
19292
19293
19294
19295 xorg_testset_save_CFLAGS="$CFLAGS"
19296
19297 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19298 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19300 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19301 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19302 then :
19303 printf %s "(cached) " >&6
19304 else case e in #(
19305 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19306 /* end confdefs.h. */
19307 int i;
19308 _ACEOF
19309 if ac_fn_c_try_compile "$LINENO"
19310 then :
19311 xorg_cv_cc_flag_unknown_warning_option=yes
19312 else case e in #(
19313 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19314 esac
19315 fi
19316 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19317 esac
19318 fi
19319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19320 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19321 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19322 CFLAGS="$xorg_testset_save_CFLAGS"
19323 fi
19324
19325 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19326 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19327 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19328 fi
19329 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19331 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19332 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19333 then :
19334 printf %s "(cached) " >&6
19335 else case e in #(
19336 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19337 /* end confdefs.h. */
19338 int i;
19339 _ACEOF
19340 if ac_fn_c_try_compile "$LINENO"
19341 then :
19342 xorg_cv_cc_flag_unused_command_line_argument=yes
19343 else case e in #(
19344 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19345 esac
19346 fi
19347 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19348 esac
19349 fi
19350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19351 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19352 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19353 CFLAGS="$xorg_testset_save_CFLAGS"
19354 fi
19355
19356 found="no"
19357
19358 if test $found = "no" ; then
19359 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19360 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19361 fi
19362
19363 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19364 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19365 fi
19366
19367 CFLAGS="$CFLAGS -pedantic"
19368
19369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
19370 printf %s "checking if $CC supports -pedantic... " >&6; }
19371 cacheid=xorg_cv_cc_flag__pedantic
19372 if eval test \${$cacheid+y}
19373 then :
19374 printf %s "(cached) " >&6
19375 else case e in #(
19376 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19377 /* end confdefs.h. */
19378 int i;
19379 int
19380 main (void)
19381 {
19382
19383 ;
19384 return 0;
19385 }
19386 _ACEOF
19387 if ac_fn_c_try_link "$LINENO"
19388 then :
19389 eval $cacheid=yes
19390 else case e in #(
19391 e) eval $cacheid=no ;;
19392 esac
19393 fi
19394 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19395 conftest$ac_exeext conftest.$ac_ext ;;
19396 esac
19397 fi
19398
19399
19400 CFLAGS="$xorg_testset_save_CFLAGS"
19401
19402 eval supported=\$$cacheid
19403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19404 printf "%s\n" "$supported" >&6; }
19405 if test "$supported" = "yes" ; then
19406 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
19407 found="yes"
19408 fi
19409 fi
19410
19411
19412
19413
19414
19415
19416
19417
19418
19419
19420
19421
19422
19423
19424
19425 xorg_testset_save_CFLAGS="$CFLAGS"
19426
19427 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19428 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19430 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19431 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19432 then :
19433 printf %s "(cached) " >&6
19434 else case e in #(
19435 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19436 /* end confdefs.h. */
19437 int i;
19438 _ACEOF
19439 if ac_fn_c_try_compile "$LINENO"
19440 then :
19441 xorg_cv_cc_flag_unknown_warning_option=yes
19442 else case e in #(
19443 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19444 esac
19445 fi
19446 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19447 esac
19448 fi
19449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19450 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19451 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19452 CFLAGS="$xorg_testset_save_CFLAGS"
19453 fi
19454
19455 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19456 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19457 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19458 fi
19459 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19461 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19462 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19463 then :
19464 printf %s "(cached) " >&6
19465 else case e in #(
19466 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19467 /* end confdefs.h. */
19468 int i;
19469 _ACEOF
19470 if ac_fn_c_try_compile "$LINENO"
19471 then :
19472 xorg_cv_cc_flag_unused_command_line_argument=yes
19473 else case e in #(
19474 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19475 esac
19476 fi
19477 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19478 esac
19479 fi
19480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19481 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19482 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19483 CFLAGS="$xorg_testset_save_CFLAGS"
19484 fi
19485
19486 found="no"
19487
19488 if test $found = "no" ; then
19489 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19490 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19491 fi
19492
19493 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19494 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19495 fi
19496
19497 CFLAGS="$CFLAGS -Werror"
19498
19499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
19500 printf %s "checking if $CC supports -Werror... " >&6; }
19501 cacheid=xorg_cv_cc_flag__Werror
19502 if eval test \${$cacheid+y}
19503 then :
19504 printf %s "(cached) " >&6
19505 else case e in #(
19506 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19507 /* end confdefs.h. */
19508 int i;
19509 int
19510 main (void)
19511 {
19512
19513 ;
19514 return 0;
19515 }
19516 _ACEOF
19517 if ac_fn_c_try_link "$LINENO"
19518 then :
19519 eval $cacheid=yes
19520 else case e in #(
19521 e) eval $cacheid=no ;;
19522 esac
19523 fi
19524 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19525 conftest$ac_exeext conftest.$ac_ext ;;
19526 esac
19527 fi
19528
19529
19530 CFLAGS="$xorg_testset_save_CFLAGS"
19531
19532 eval supported=\$$cacheid
19533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19534 printf "%s\n" "$supported" >&6; }
19535 if test "$supported" = "yes" ; then
19536 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
19537 found="yes"
19538 fi
19539 fi
19540
19541 if test $found = "no" ; then
19542 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19543 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19544 fi
19545
19546 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19547 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19548 fi
19549
19550 CFLAGS="$CFLAGS -errwarn"
19551
19552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
19553 printf %s "checking if $CC supports -errwarn... " >&6; }
19554 cacheid=xorg_cv_cc_flag__errwarn
19555 if eval test \${$cacheid+y}
19556 then :
19557 printf %s "(cached) " >&6
19558 else case e in #(
19559 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19560 /* end confdefs.h. */
19561 int i;
19562 int
19563 main (void)
19564 {
19565
19566 ;
19567 return 0;
19568 }
19569 _ACEOF
19570 if ac_fn_c_try_link "$LINENO"
19571 then :
19572 eval $cacheid=yes
19573 else case e in #(
19574 e) eval $cacheid=no ;;
19575 esac
19576 fi
19577 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19578 conftest$ac_exeext conftest.$ac_ext ;;
19579 esac
19580 fi
19581
19582
19583 CFLAGS="$xorg_testset_save_CFLAGS"
19584
19585 eval supported=\$$cacheid
19586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19587 printf "%s\n" "$supported" >&6; }
19588 if test "$supported" = "yes" ; then
19589 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
19590 found="yes"
19591 fi
19592 fi
19593
19594
19595
19596 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
19597 # activate it with -Werror, so we add it here explicitly.
19598
19599
19600
19601
19602
19603
19604
19605
19606
19607
19608
19609
19610
19611 xorg_testset_save_CFLAGS="$CFLAGS"
19612
19613 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19614 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19616 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19617 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19618 then :
19619 printf %s "(cached) " >&6
19620 else case e in #(
19621 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19622 /* end confdefs.h. */
19623 int i;
19624 _ACEOF
19625 if ac_fn_c_try_compile "$LINENO"
19626 then :
19627 xorg_cv_cc_flag_unknown_warning_option=yes
19628 else case e in #(
19629 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19630 esac
19631 fi
19632 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19633 esac
19634 fi
19635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19636 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19637 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19638 CFLAGS="$xorg_testset_save_CFLAGS"
19639 fi
19640
19641 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19642 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19643 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19644 fi
19645 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19647 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19648 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19649 then :
19650 printf %s "(cached) " >&6
19651 else case e in #(
19652 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19653 /* end confdefs.h. */
19654 int i;
19655 _ACEOF
19656 if ac_fn_c_try_compile "$LINENO"
19657 then :
19658 xorg_cv_cc_flag_unused_command_line_argument=yes
19659 else case e in #(
19660 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19661 esac
19662 fi
19663 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19664 esac
19665 fi
19666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19667 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19668 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19669 CFLAGS="$xorg_testset_save_CFLAGS"
19670 fi
19671
19672 found="no"
19673
19674 if test $found = "no" ; then
19675 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19676 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19677 fi
19678
19679 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19680 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19681 fi
19682
19683 CFLAGS="$CFLAGS -Werror=attributes"
19684
19685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
19686 printf %s "checking if $CC supports -Werror=attributes... " >&6; }
19687 cacheid=xorg_cv_cc_flag__Werror_attributes
19688 if eval test \${$cacheid+y}
19689 then :
19690 printf %s "(cached) " >&6
19691 else case e in #(
19692 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19693 /* end confdefs.h. */
19694 int i;
19695 int
19696 main (void)
19697 {
19698
19699 ;
19700 return 0;
19701 }
19702 _ACEOF
19703 if ac_fn_c_try_link "$LINENO"
19704 then :
19705 eval $cacheid=yes
19706 else case e in #(
19707 e) eval $cacheid=no ;;
19708 esac
19709 fi
19710 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19711 conftest$ac_exeext conftest.$ac_ext ;;
19712 esac
19713 fi
19714
19715
19716 CFLAGS="$xorg_testset_save_CFLAGS"
19717
19718 eval supported=\$$cacheid
19719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19720 printf "%s\n" "$supported" >&6; }
19721 if test "$supported" = "yes" ; then
19722 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
19723 found="yes"
19724 fi
19725 fi
19726
19727
19728
19729 if test "x$STRICT_COMPILE" = "xyes"; then
19730 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
19731 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
19732 fi
19733
19734
19735
19736
19737
19738
19739
19740
19741 cat >>confdefs.h <<_ACEOF
19742 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
19743 _ACEOF
19744
19745 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
19746 if test "x$PVM" = "x"; then
19747 PVM="0"
19748 fi
19749
19750 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
19751
19752 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
19753 if test "x$PVP" = "x"; then
19754 PVP="0"
19755 fi
19756
19757 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
19758
19759
19760
19761 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
19762 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
19763 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
19764 touch \$(top_srcdir)/ChangeLog; \
19765 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
19766
19767
19768
19769
19770 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
19771 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
19772 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
19773 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
19774 touch \$(top_srcdir)/INSTALL; \
19775 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
19776
19777
19778
19779
19780
19781
19782 case $host_os in
19783 solaris*)
19784 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
19785 # check for a man page file found in later versions that use
19786 # traditional section numbers instead
19787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
19788 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
19789 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
19790 then :
19791 printf %s "(cached) " >&6
19792 else case e in #(
19793 e) test "$cross_compiling" = yes &&
19794 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
19795 if test -r "/usr/share/man/man7/attributes.7"; then
19796 ac_cv_file__usr_share_man_man7_attributes_7=yes
19797 else
19798 ac_cv_file__usr_share_man_man7_attributes_7=no
19799 fi ;;
19800 esac
19801 fi
19802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
19803 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
19804 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
19805 then :
19806 SYSV_MAN_SECTIONS=false
19807 else case e in #(
19808 e) SYSV_MAN_SECTIONS=true ;;
19809 esac
19810 fi
19811
19812 ;;
19813 *) SYSV_MAN_SECTIONS=false ;;
19814 esac
19815
19816 if test x$APP_MAN_SUFFIX = x ; then
19817 APP_MAN_SUFFIX=1
19818 fi
19819 if test x$APP_MAN_DIR = x ; then
19820 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
19821 fi
19822
19823 if test x$LIB_MAN_SUFFIX = x ; then
19824 LIB_MAN_SUFFIX=3
19825 fi
19826 if test x$LIB_MAN_DIR = x ; then
19827 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
19828 fi
19829
19830 if test x$FILE_MAN_SUFFIX = x ; then
19831 case $SYSV_MAN_SECTIONS in
19832 true) FILE_MAN_SUFFIX=4 ;;
19833 *) FILE_MAN_SUFFIX=5 ;;
19834 esac
19835 fi
19836 if test x$FILE_MAN_DIR = x ; then
19837 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
19838 fi
19839
19840 if test x$MISC_MAN_SUFFIX = x ; then
19841 case $SYSV_MAN_SECTIONS in
19842 true) MISC_MAN_SUFFIX=5 ;;
19843 *) MISC_MAN_SUFFIX=7 ;;
19844 esac
19845 fi
19846 if test x$MISC_MAN_DIR = x ; then
19847 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
19848 fi
19849
19850 if test x$DRIVER_MAN_SUFFIX = x ; then
19851 case $SYSV_MAN_SECTIONS in
19852 true) DRIVER_MAN_SUFFIX=7 ;;
19853 *) DRIVER_MAN_SUFFIX=4 ;;
19854 esac
19855 fi
19856 if test x$DRIVER_MAN_DIR = x ; then
19857 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
19858 fi
19859
19860 if test x$ADMIN_MAN_SUFFIX = x ; then
19861 case $SYSV_MAN_SECTIONS in
19862 true) ADMIN_MAN_SUFFIX=1m ;;
19863 *) ADMIN_MAN_SUFFIX=8 ;;
19864 esac
19865 fi
19866 if test x$ADMIN_MAN_DIR = x ; then
19867 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
19868 fi
19869
19870
19871
19872
19873
19874
19875
19876
19877
19878
19879
19880
19881
19882
19883
19884 XORG_MAN_PAGE="X Version 11"
19885
19886 MAN_SUBSTS="\
19887 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19888 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19889 -e 's|__xservername__|Xorg|g' \
19890 -e 's|__xconfigfile__|xorg.conf|g' \
19891 -e 's|__projectroot__|\$(prefix)|g' \
19892 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
19893 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
19894 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
19895 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
19896 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
19897 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
19898 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
19899
19900
19901
19902
19903 AM_DEFAULT_VERBOSITY=0
19904
19905
19906
19907
19908 # Check whether --enable-specs was given.
19909 if test ${enable_specs+y}
19910 then :
19911 enableval=$enable_specs; build_specs=$enableval
19912 else case e in #(
19913 e) build_specs=yes ;;
19914 esac
19915 fi
19916
19917
19918 if test x$build_specs = xyes; then
19919 ENABLE_SPECS_TRUE=
19920 ENABLE_SPECS_FALSE='#'
19921 else
19922 ENABLE_SPECS_TRUE='#'
19923 ENABLE_SPECS_FALSE=
19924 fi
19925
19926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build functional specifications" >&5
19927 printf %s "checking whether to build functional specifications... " >&6; }
19928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $build_specs" >&5
19929 printf "%s\n" "$build_specs" >&6; }
19930
19931
19932
19933
19934
19935 # Check whether --with-xmlto was given.
19936 if test ${with_xmlto+y}
19937 then :
19938 withval=$with_xmlto; use_xmlto=$withval
19939 else case e in #(
19940 e) use_xmlto=auto ;;
19941 esac
19942 fi
19943
19944
19945
19946 if test "x$use_xmlto" = x"auto"; then
19947 # Extract the first word of "xmlto", so it can be a program name with args.
19948 set dummy xmlto; ac_word=$2
19949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19950 printf %s "checking for $ac_word... " >&6; }
19951 if test ${ac_cv_path_XMLTO+y}
19952 then :
19953 printf %s "(cached) " >&6
19954 else case e in #(
19955 e) case $XMLTO in
19956 [\\/]* | ?:[\\/]*)
19957 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
19958 ;;
19959 *)
19960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19961 for as_dir in $PATH
19962 do
19963 IFS=$as_save_IFS
19964 case $as_dir in #(((
19965 '') as_dir=./ ;;
19966 */) ;;
19967 *) as_dir=$as_dir/ ;;
19968 esac
19969 for ac_exec_ext in '' $ac_executable_extensions; do
19970 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19971 ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext"
19972 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19973 break 2
19974 fi
19975 done
19976 done
19977 IFS=$as_save_IFS
19978
19979 ;;
19980 esac ;;
19981 esac
19982 fi
19983 XMLTO=$ac_cv_path_XMLTO
19984 if test -n "$XMLTO"; then
19985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
19986 printf "%s\n" "$XMLTO" >&6; }
19987 else
19988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19989 printf "%s\n" "no" >&6; }
19990 fi
19991
19992
19993 if test "x$XMLTO" = "x"; then
19994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5
19995 printf "%s\n" "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;}
19996 have_xmlto=no
19997 else
19998 have_xmlto=yes
19999 fi
20000 elif test "x$use_xmlto" = x"yes" ; then
20001 # Extract the first word of "xmlto", so it can be a program name with args.
20002 set dummy xmlto; ac_word=$2
20003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20004 printf %s "checking for $ac_word... " >&6; }
20005 if test ${ac_cv_path_XMLTO+y}
20006 then :
20007 printf %s "(cached) " >&6
20008 else case e in #(
20009 e) case $XMLTO in
20010 [\\/]* | ?:[\\/]*)
20011 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
20012 ;;
20013 *)
20014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20015 for as_dir in $PATH
20016 do
20017 IFS=$as_save_IFS
20018 case $as_dir in #(((
20019 '') as_dir=./ ;;
20020 */) ;;
20021 *) as_dir=$as_dir/ ;;
20022 esac
20023 for ac_exec_ext in '' $ac_executable_extensions; do
20024 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20025 ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext"
20026 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20027 break 2
20028 fi
20029 done
20030 done
20031 IFS=$as_save_IFS
20032
20033 ;;
20034 esac ;;
20035 esac
20036 fi
20037 XMLTO=$ac_cv_path_XMLTO
20038 if test -n "$XMLTO"; then
20039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
20040 printf "%s\n" "$XMLTO" >&6; }
20041 else
20042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20043 printf "%s\n" "no" >&6; }
20044 fi
20045
20046
20047 if test "x$XMLTO" = "x"; then
20048 as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5
20049 fi
20050 have_xmlto=yes
20051 elif test "x$use_xmlto" = x"no" ; then
20052 if test "x$XMLTO" != "x"; then
20053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5
20054 printf "%s\n" "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;}
20055 fi
20056 have_xmlto=no
20057 else
20058 as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5
20059 fi
20060
20061 # Test for a minimum version of xmlto, if provided.
20062 if test "$have_xmlto" = yes; then
20063 # scrape the xmlto version
20064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5
20065 printf %s "checking the xmlto version... " >&6; }
20066 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3`
20067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5
20068 printf "%s\n" "$xmlto_version" >&6; }
20069 as_arg_v1=$xmlto_version
20070 as_arg_v2=0.0.22
20071 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
20072 case $? in #(
20073 1) :
20074 if test "x$use_xmlto" = xauto; then
20075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5
20076 printf "%s\n" "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;}
20077 have_xmlto=no
20078 else
20079 as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5
20080 fi ;; #(
20081 0) :
20082 ;; #(
20083 2) :
20084 ;; #(
20085 *) :
20086 ;;
20087 esac
20088 fi
20089
20090 # Test for the ability of xmlto to generate a text target
20091 #
20092 # NOTE: xmlto 0.0.27 or higher return a non-zero return code in the
20093 # following test for empty XML docbook files.
20094 # For compatibility reasons use the following empty XML docbook file and if
20095 # it fails try it again with a non-empty XML file.
20096 have_xmlto_text=no
20097 cat > conftest.xml << "EOF"
20098 EOF
20099 if test "$have_xmlto" = yes
20100 then :
20101 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1
20102 then :
20103 have_xmlto_text=yes
20104 else case e in #(
20105 e) # Try it again with a non-empty XML file.
20106 cat > conftest.xml << "EOF"
20107 <x></x>
20108 EOF
20109 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1
20110 then :
20111 have_xmlto_text=yes
20112 else case e in #(
20113 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5
20114 printf "%s\n" "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;} ;;
20115 esac
20116 fi ;;
20117 esac
20118 fi
20119 fi
20120 rm -f conftest.xml
20121 if test $have_xmlto_text = yes; then
20122 HAVE_XMLTO_TEXT_TRUE=
20123 HAVE_XMLTO_TEXT_FALSE='#'
20124 else
20125 HAVE_XMLTO_TEXT_TRUE='#'
20126 HAVE_XMLTO_TEXT_FALSE=
20127 fi
20128
20129 if test "$have_xmlto" = yes; then
20130 HAVE_XMLTO_TRUE=
20131 HAVE_XMLTO_FALSE='#'
20132 else
20133 HAVE_XMLTO_TRUE='#'
20134 HAVE_XMLTO_FALSE=
20135 fi
20136
20137
20138
20139
20140
20141
20142 # Check whether --with-fop was given.
20143 if test ${with_fop+y}
20144 then :
20145 withval=$with_fop; use_fop=$withval
20146 else case e in #(
20147 e) use_fop=auto ;;
20148 esac
20149 fi
20150
20151
20152
20153 if test "x$use_fop" = x"auto"; then
20154 # Extract the first word of "fop", so it can be a program name with args.
20155 set dummy fop; ac_word=$2
20156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20157 printf %s "checking for $ac_word... " >&6; }
20158 if test ${ac_cv_path_FOP+y}
20159 then :
20160 printf %s "(cached) " >&6
20161 else case e in #(
20162 e) case $FOP in
20163 [\\/]* | ?:[\\/]*)
20164 ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
20165 ;;
20166 *)
20167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20168 for as_dir in $PATH
20169 do
20170 IFS=$as_save_IFS
20171 case $as_dir in #(((
20172 '') as_dir=./ ;;
20173 */) ;;
20174 *) as_dir=$as_dir/ ;;
20175 esac
20176 for ac_exec_ext in '' $ac_executable_extensions; do
20177 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20178 ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext"
20179 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20180 break 2
20181 fi
20182 done
20183 done
20184 IFS=$as_save_IFS
20185
20186 ;;
20187 esac ;;
20188 esac
20189 fi
20190 FOP=$ac_cv_path_FOP
20191 if test -n "$FOP"; then
20192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
20193 printf "%s\n" "$FOP" >&6; }
20194 else
20195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20196 printf "%s\n" "no" >&6; }
20197 fi
20198
20199
20200 if test "x$FOP" = "x"; then
20201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5
20202 printf "%s\n" "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;}
20203 have_fop=no
20204 else
20205 have_fop=yes
20206 fi
20207 elif test "x$use_fop" = x"yes" ; then
20208 # Extract the first word of "fop", so it can be a program name with args.
20209 set dummy fop; ac_word=$2
20210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20211 printf %s "checking for $ac_word... " >&6; }
20212 if test ${ac_cv_path_FOP+y}
20213 then :
20214 printf %s "(cached) " >&6
20215 else case e in #(
20216 e) case $FOP in
20217 [\\/]* | ?:[\\/]*)
20218 ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
20219 ;;
20220 *)
20221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20222 for as_dir in $PATH
20223 do
20224 IFS=$as_save_IFS
20225 case $as_dir in #(((
20226 '') as_dir=./ ;;
20227 */) ;;
20228 *) as_dir=$as_dir/ ;;
20229 esac
20230 for ac_exec_ext in '' $ac_executable_extensions; do
20231 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20232 ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext"
20233 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20234 break 2
20235 fi
20236 done
20237 done
20238 IFS=$as_save_IFS
20239
20240 ;;
20241 esac ;;
20242 esac
20243 fi
20244 FOP=$ac_cv_path_FOP
20245 if test -n "$FOP"; then
20246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
20247 printf "%s\n" "$FOP" >&6; }
20248 else
20249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20250 printf "%s\n" "no" >&6; }
20251 fi
20252
20253
20254 if test "x$FOP" = "x"; then
20255 as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5
20256 fi
20257 have_fop=yes
20258 elif test "x$use_fop" = x"no" ; then
20259 if test "x$FOP" != "x"; then
20260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5
20261 printf "%s\n" "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;}
20262 fi
20263 have_fop=no
20264 else
20265 as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5
20266 fi
20267
20268 # Test for a minimum version of fop, if provided.
20269
20270 if test "$have_fop" = yes; then
20271 HAVE_FOP_TRUE=
20272 HAVE_FOP_FALSE='#'
20273 else
20274 HAVE_FOP_TRUE='#'
20275 HAVE_FOP_FALSE=
20276 fi
20277
20278
20279
20280
20281 # Preserves the interface, should it be implemented later
20282
20283
20284
20285 # Check whether --with-xsltproc was given.
20286 if test ${with_xsltproc+y}
20287 then :
20288 withval=$with_xsltproc; use_xsltproc=$withval
20289 else case e in #(
20290 e) use_xsltproc=auto ;;
20291 esac
20292 fi
20293
20294
20295
20296 if test "x$use_xsltproc" = x"auto"; then
20297 # Extract the first word of "xsltproc", so it can be a program name with args.
20298 set dummy xsltproc; ac_word=$2
20299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20300 printf %s "checking for $ac_word... " >&6; }
20301 if test ${ac_cv_path_XSLTPROC+y}
20302 then :
20303 printf %s "(cached) " >&6
20304 else case e in #(
20305 e) case $XSLTPROC in
20306 [\\/]* | ?:[\\/]*)
20307 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
20308 ;;
20309 *)
20310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20311 for as_dir in $PATH
20312 do
20313 IFS=$as_save_IFS
20314 case $as_dir in #(((
20315 '') as_dir=./ ;;
20316 */) ;;
20317 *) as_dir=$as_dir/ ;;
20318 esac
20319 for ac_exec_ext in '' $ac_executable_extensions; do
20320 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20321 ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext"
20322 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20323 break 2
20324 fi
20325 done
20326 done
20327 IFS=$as_save_IFS
20328
20329 ;;
20330 esac ;;
20331 esac
20332 fi
20333 XSLTPROC=$ac_cv_path_XSLTPROC
20334 if test -n "$XSLTPROC"; then
20335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
20336 printf "%s\n" "$XSLTPROC" >&6; }
20337 else
20338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20339 printf "%s\n" "no" >&6; }
20340 fi
20341
20342
20343 if test "x$XSLTPROC" = "x"; then
20344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5
20345 printf "%s\n" "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;}
20346 have_xsltproc=no
20347 else
20348 have_xsltproc=yes
20349 fi
20350 elif test "x$use_xsltproc" = x"yes" ; then
20351 # Extract the first word of "xsltproc", so it can be a program name with args.
20352 set dummy xsltproc; ac_word=$2
20353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20354 printf %s "checking for $ac_word... " >&6; }
20355 if test ${ac_cv_path_XSLTPROC+y}
20356 then :
20357 printf %s "(cached) " >&6
20358 else case e in #(
20359 e) case $XSLTPROC in
20360 [\\/]* | ?:[\\/]*)
20361 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
20362 ;;
20363 *)
20364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20365 for as_dir in $PATH
20366 do
20367 IFS=$as_save_IFS
20368 case $as_dir in #(((
20369 '') as_dir=./ ;;
20370 */) ;;
20371 *) as_dir=$as_dir/ ;;
20372 esac
20373 for ac_exec_ext in '' $ac_executable_extensions; do
20374 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20375 ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext"
20376 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20377 break 2
20378 fi
20379 done
20380 done
20381 IFS=$as_save_IFS
20382
20383 ;;
20384 esac ;;
20385 esac
20386 fi
20387 XSLTPROC=$ac_cv_path_XSLTPROC
20388 if test -n "$XSLTPROC"; then
20389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
20390 printf "%s\n" "$XSLTPROC" >&6; }
20391 else
20392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20393 printf "%s\n" "no" >&6; }
20394 fi
20395
20396
20397 if test "x$XSLTPROC" = "x"; then
20398 as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5
20399 fi
20400 have_xsltproc=yes
20401 elif test "x$use_xsltproc" = x"no" ; then
20402 if test "x$XSLTPROC" != "x"; then
20403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5
20404 printf "%s\n" "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;}
20405 fi
20406 have_xsltproc=no
20407 else
20408 as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5
20409 fi
20410
20411 if test "$have_xsltproc" = yes; then
20412 HAVE_XSLTPROC_TRUE=
20413 HAVE_XSLTPROC_FALSE='#'
20414 else
20415 HAVE_XSLTPROC_TRUE='#'
20416 HAVE_XSLTPROC_FALSE=
20417 fi
20418
20419
20420
20421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.8" >&5
20422 printf %s "checking for X.Org SGML entities >= 1.8... " >&6; }
20423 XORG_SGML_PATH=
20424 if test -n "$PKG_CONFIG" && \
20425 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.8\""; } >&5
20426 ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.8") 2>&5
20427 ac_status=$?
20428 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20429 test $ac_status = 0; }; then
20430 XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`
20431 else
20432 :
20433
20434 fi
20435
20436 # Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing
20437 # the path and the name of the doc stylesheet
20438 if test "x$XORG_SGML_PATH" != "x" ; then
20439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5
20440 printf "%s\n" "$XORG_SGML_PATH" >&6; }
20441 STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11
20442 XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl
20443 else
20444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20445 printf "%s\n" "no" >&6; }
20446 fi
20447
20448
20449
20450
20451 if test "x$XSL_STYLESHEET" != "x"; then
20452 HAVE_STYLESHEETS_TRUE=
20453 HAVE_STYLESHEETS_FALSE='#'
20454 else
20455 HAVE_STYLESHEETS_TRUE='#'
20456 HAVE_STYLESHEETS_FALSE=
20457 fi
20458
20459
20460
20461 # Obtain compiler/linker options for dependencies
20462
20463 pkg_failed=no
20464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XTST" >&5
20465 printf %s "checking for XTST... " >&6; }
20466
20467 if test -n "$XTST_CFLAGS"; then
20468 pkg_cv_XTST_CFLAGS="$XTST_CFLAGS"
20469 elif test -n "$PKG_CONFIG"; then
20470 if test -n "$PKG_CONFIG" && \
20471 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 >= 1.6 xext >= 1.0.99.4 xi recordproto >= 1.13.99.1 xextproto >= 7.0.99.3 inputproto\""; } >&5
20472 ($PKG_CONFIG --exists --print-errors "x11 >= 1.6 xext >= 1.0.99.4 xi recordproto >= 1.13.99.1 xextproto >= 7.0.99.3 inputproto") 2>&5
20473 ac_status=$?
20474 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20475 test $ac_status = 0; }; then
20476 pkg_cv_XTST_CFLAGS=`$PKG_CONFIG --cflags "x11 >= 1.6 xext >= 1.0.99.4 xi recordproto >= 1.13.99.1 xextproto >= 7.0.99.3 inputproto" 2>/dev/null`
20477 test "x$?" != "x0" && pkg_failed=yes
20478 else
20479 pkg_failed=yes
20480 fi
20481 else
20482 pkg_failed=untried
20483 fi
20484 if test -n "$XTST_LIBS"; then
20485 pkg_cv_XTST_LIBS="$XTST_LIBS"
20486 elif test -n "$PKG_CONFIG"; then
20487 if test -n "$PKG_CONFIG" && \
20488 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 >= 1.6 xext >= 1.0.99.4 xi recordproto >= 1.13.99.1 xextproto >= 7.0.99.3 inputproto\""; } >&5
20489 ($PKG_CONFIG --exists --print-errors "x11 >= 1.6 xext >= 1.0.99.4 xi recordproto >= 1.13.99.1 xextproto >= 7.0.99.3 inputproto") 2>&5
20490 ac_status=$?
20491 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20492 test $ac_status = 0; }; then
20493 pkg_cv_XTST_LIBS=`$PKG_CONFIG --libs "x11 >= 1.6 xext >= 1.0.99.4 xi recordproto >= 1.13.99.1 xextproto >= 7.0.99.3 inputproto" 2>/dev/null`
20494 test "x$?" != "x0" && pkg_failed=yes
20495 else
20496 pkg_failed=yes
20497 fi
20498 else
20499 pkg_failed=untried
20500 fi
20501
20502
20503
20504 if test $pkg_failed = yes; then
20505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20506 printf "%s\n" "no" >&6; }
20507
20508 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20509 _pkg_short_errors_supported=yes
20510 else
20511 _pkg_short_errors_supported=no
20512 fi
20513 if test $_pkg_short_errors_supported = yes; then
20514 XTST_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 >= 1.6 xext >= 1.0.99.4 xi recordproto >= 1.13.99.1 xextproto >= 7.0.99.3 inputproto" 2>&1`
20515 else
20516 XTST_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 >= 1.6 xext >= 1.0.99.4 xi recordproto >= 1.13.99.1 xextproto >= 7.0.99.3 inputproto" 2>&1`
20517 fi
20518 # Put the nasty error message in config.log where it belongs
20519 echo "$XTST_PKG_ERRORS" >&5
20520
20521 as_fn_error $? "Package requirements (x11 >= 1.6 xext >= 1.0.99.4 xi recordproto >= 1.13.99.1 xextproto >= 7.0.99.3 inputproto) were not met:
20522
20523 $XTST_PKG_ERRORS
20524
20525 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20526 installed software in a non-standard prefix.
20527
20528 Alternatively, you may set the environment variables XTST_CFLAGS
20529 and XTST_LIBS to avoid the need to call pkg-config.
20530 See the pkg-config man page for more details." "$LINENO" 5
20531 elif test $pkg_failed = untried; then
20532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20533 printf "%s\n" "no" >&6; }
20534 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
20535 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
20536 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
20537 is in your PATH or set the PKG_CONFIG environment variable to the full
20538 path to pkg-config.
20539
20540 Alternatively, you may set the environment variables XTST_CFLAGS
20541 and XTST_LIBS to avoid the need to call pkg-config.
20542 See the pkg-config man page for more details.
20543
20544 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20545 See 'config.log' for more details" "$LINENO" 5; }
20546 else
20547 XTST_CFLAGS=$pkg_cv_XTST_CFLAGS
20548 XTST_LIBS=$pkg_cv_XTST_LIBS
20549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20550 printf "%s\n" "yes" >&6; }
20551
20552 fi
20553
20554 # Determine if the source for man pages is available
20555 # It may already be present (tarball) or can be generated using xmlto
20556 if test -f "$srcdir/man/XTestQueryExtension.man" || test "x$have_xmlto" = xyes; then
20557 INSTALL_MANPAGES_TRUE=
20558 INSTALL_MANPAGES_FALSE='#'
20559 else
20560 INSTALL_MANPAGES_TRUE='#'
20561 INSTALL_MANPAGES_FALSE=
20562 fi
20563
20564
20565 # Allow checking code with lint, sparse, etc.
20566
20567
20568
20569
20570
20571 # Check whether --with-lint was given.
20572 if test ${with_lint+y}
20573 then :
20574 withval=$with_lint; use_lint=$withval
20575 else case e in #(
20576 e) use_lint=no ;;
20577 esac
20578 fi
20579
20580
20581 # Obtain platform specific info like program name and options
20582 # The lint program on FreeBSD and NetBSD is different from the one on Solaris
20583 case $host_os in
20584 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
20585 lint_name=splint
20586 lint_options="-badflag"
20587 ;;
20588 *freebsd* | *netbsd*)
20589 lint_name=lint
20590 lint_options="-u -b"
20591 ;;
20592 *solaris*)
20593 lint_name=lint
20594 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
20595 ;;
20596 esac
20597
20598 # Test for the presence of the program (either guessed by the code or spelled out by the user)
20599 if test "x$use_lint" = x"yes" ; then
20600 # Extract the first word of "$lint_name", so it can be a program name with args.
20601 set dummy $lint_name; ac_word=$2
20602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20603 printf %s "checking for $ac_word... " >&6; }
20604 if test ${ac_cv_path_LINT+y}
20605 then :
20606 printf %s "(cached) " >&6
20607 else case e in #(
20608 e) case $LINT in
20609 [\\/]* | ?:[\\/]*)
20610 ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
20611 ;;
20612 *)
20613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20614 for as_dir in $PATH
20615 do
20616 IFS=$as_save_IFS
20617 case $as_dir in #(((
20618 '') as_dir=./ ;;
20619 */) ;;
20620 *) as_dir=$as_dir/ ;;
20621 esac
20622 for ac_exec_ext in '' $ac_executable_extensions; do
20623 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20624 ac_cv_path_LINT="$as_dir$ac_word$ac_exec_ext"
20625 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20626 break 2
20627 fi
20628 done
20629 done
20630 IFS=$as_save_IFS
20631
20632 ;;
20633 esac ;;
20634 esac
20635 fi
20636 LINT=$ac_cv_path_LINT
20637 if test -n "$LINT"; then
20638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
20639 printf "%s\n" "$LINT" >&6; }
20640 else
20641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20642 printf "%s\n" "no" >&6; }
20643 fi
20644
20645
20646 if test "x$LINT" = "x"; then
20647 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
20648 fi
20649 elif test "x$use_lint" = x"no" ; then
20650 if test "x$LINT" != "x"; then
20651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
20652 printf "%s\n" "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
20653 fi
20654 else
20655 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
20656 fi
20657
20658 # User supplied flags override default flags
20659 if test "x$LINT_FLAGS" != "x"; then
20660 lint_options=$LINT_FLAGS
20661 fi
20662
20663 LINT_FLAGS=$lint_options
20664
20665 if test "x$LINT" != x; then
20666 LINT_TRUE=
20667 LINT_FALSE='#'
20668 else
20669 LINT_TRUE='#'
20670 LINT_FALSE=
20671 fi
20672
20673
20674
20675
20676
20677 # Check whether --enable-lint-library was given.
20678 if test ${enable_lint_library+y}
20679 then :
20680 enableval=$enable_lint_library; make_lint_lib=$enableval
20681 else case e in #(
20682 e) make_lint_lib=no ;;
20683 esac
20684 fi
20685
20686
20687 if test "x$make_lint_lib" = x"yes" ; then
20688 LINTLIB=llib-lXtst.ln
20689 if test "x$LINT" = "x"; then
20690 as_fn_error $? "Cannot make lint library without --with-lint" "$LINENO" 5
20691 fi
20692 elif test "x$make_lint_lib" != x"no" ; then
20693 as_fn_error $? "--enable-lint-library expects 'yes' or 'no'." "$LINENO" 5
20694 fi
20695
20696
20697 if test x$make_lint_lib != xno; then
20698 MAKE_LINT_LIB_TRUE=
20699 MAKE_LINT_LIB_FALSE='#'
20700 else
20701 MAKE_LINT_LIB_TRUE='#'
20702 MAKE_LINT_LIB_FALSE=
20703 fi
20704
20705
20706
20707 LINT_FLAGS="${LINT_FLAGS} ${XTST_CFLAGS}"
20708
20709 ac_config_files="$ac_config_files Makefile man/Makefile src/Makefile specs/Makefile xtst.pc"
20710
20711 cat >confcache <<\_ACEOF
20712 # This file is a shell script that caches the results of configure
20713 # tests run on this system so they can be shared between configure
20714 # scripts and configure runs, see configure's option --config-cache.
20715 # It is not useful on other systems. If it contains results you don't
20716 # want to keep, you may remove or edit it.
20717 #
20718 # config.status only pays attention to the cache file if you give it
20719 # the --recheck option to rerun configure.
20720 #
20721 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
20722 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
20723 # following values.
20724
20725 _ACEOF
20726
20727 # The following way of writing the cache mishandles newlines in values,
20728 # but we know of no workaround that is simple, portable, and efficient.
20729 # So, we kill variables containing newlines.
20730 # Ultrix sh set writes to stderr and can't be redirected directly,
20731 # and sets the high bit in the cache file unless we assign to the vars.
20732 (
20733 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20734 eval ac_val=\$$ac_var
20735 case $ac_val in #(
20736 *${as_nl}*)
20737 case $ac_var in #(
20738 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20739 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20740 esac
20741 case $ac_var in #(
20742 _ | IFS | as_nl) ;; #(
20743 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20744 *) { eval $ac_var=; unset $ac_var;} ;;
20745 esac ;;
20746 esac
20747 done
20748
20749 (set) 2>&1 |
20750 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20751 *${as_nl}ac_space=\ *)
20752 # 'set' does not quote correctly, so add quotes: double-quote
20753 # substitution turns \\\\ into \\, and sed turns \\ into \.
20754 sed -n \
20755 "s/'/'\\\\''/g;
20756 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20757 ;; #(
20758 *)
20759 # 'set' quotes correctly as required by POSIX, so do not add quotes.
20760 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20761 ;;
20762 esac |
20763 sort
20764 ) |
20765 sed '
20766 /^ac_cv_env_/b end
20767 t clear
20768 :clear
20769 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
20770 t end
20771 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20772 :end' >>confcache
20773 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20774 if test -w "$cache_file"; then
20775 if test "x$cache_file" != "x/dev/null"; then
20776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20777 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
20778 if test ! -f "$cache_file" || test -h "$cache_file"; then
20779 cat confcache >"$cache_file"
20780 else
20781 case $cache_file in #(
20782 */* | ?:*)
20783 mv -f confcache "$cache_file"$$ &&
20784 mv -f "$cache_file"$$ "$cache_file" ;; #(
20785 *)
20786 mv -f confcache "$cache_file" ;;
20787 esac
20788 fi
20789 fi
20790 else
20791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20792 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
20793 fi
20794 fi
20795 rm -f confcache
20796
20797 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20798 # Let make expand exec_prefix.
20799 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20800
20801 DEFS=-DHAVE_CONFIG_H
20802
20803 ac_libobjs=
20804 ac_ltlibobjs=
20805 U=
20806 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20807 # 1. Remove the extension, and $U if already installed.
20808 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20809 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
20810 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20811 # will be set to the directory where LIBOBJS objects are built.
20812 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20813 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20814 done
20815 LIBOBJS=$ac_libobjs
20816
20817 LTLIBOBJS=$ac_ltlibobjs
20818
20819
20820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20821 printf %s "checking that generated files are newer than configure... " >&6; }
20822 if test -n "$am_sleep_pid"; then
20823 # Hide warnings about reused PIDs.
20824 wait $am_sleep_pid 2>/dev/null
20825 fi
20826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
20827 printf "%s\n" "done" >&6; }
20828 case $enable_silent_rules in # (((
20829 yes) AM_DEFAULT_VERBOSITY=0;;
20830 no) AM_DEFAULT_VERBOSITY=1;;
20831 esac
20832 if test $am_cv_make_support_nested_variables = yes; then
20833 AM_V='$(V)'
20834 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
20835 else
20836 AM_V=$AM_DEFAULT_VERBOSITY
20837 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
20838 fi
20839
20840 if test -n "$EXEEXT"; then
20841 am__EXEEXT_TRUE=
20842 am__EXEEXT_FALSE='#'
20843 else
20844 am__EXEEXT_TRUE='#'
20845 am__EXEEXT_FALSE=
20846 fi
20847
20848 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20849 as_fn_error $? "conditional \"AMDEP\" was never defined.
20850 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20851 fi
20852 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20853 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20854 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20855 fi
20856 if test -z "${ENABLE_SPECS_TRUE}" && test -z "${ENABLE_SPECS_FALSE}"; then
20857 as_fn_error $? "conditional \"ENABLE_SPECS\" was never defined.
20858 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20859 fi
20860 if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then
20861 as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined.
20862 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20863 fi
20864 if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
20865 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
20866 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20867 fi
20868 if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
20869 as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
20870 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20871 fi
20872 if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then
20873 as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined.
20874 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20875 fi
20876 if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then
20877 as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined.
20878 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20879 fi
20880 if test -z "${INSTALL_MANPAGES_TRUE}" && test -z "${INSTALL_MANPAGES_FALSE}"; then
20881 as_fn_error $? "conditional \"INSTALL_MANPAGES\" was never defined.
20882 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20883 fi
20884 if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
20885 as_fn_error $? "conditional \"LINT\" was never defined.
20886 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20887 fi
20888 if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then
20889 as_fn_error $? "conditional \"MAKE_LINT_LIB\" was never defined.
20890 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20891 fi
20892
20893 : "${CONFIG_STATUS=./config.status}"
20894 ac_write_fail=0
20895 ac_clean_files_save=$ac_clean_files
20896 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20898 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
20899 as_write_fail=0
20900 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20901 #! $SHELL
20902 # Generated by $as_me.
20903 # Run this file to recreate the current configuration.
20904 # Compiler output produced by configure, useful for debugging
20905 # configure, is in config.log if it exists.
20906
20907 debug=false
20908 ac_cs_recheck=false
20909 ac_cs_silent=false
20910
20911 SHELL=\${CONFIG_SHELL-$SHELL}
20912 export SHELL
20913 _ASEOF
20914 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20915 ## -------------------- ##
20916 ## M4sh Initialization. ##
20917 ## -------------------- ##
20918
20919 # Be more Bourne compatible
20920 DUALCASE=1; export DUALCASE # for MKS sh
20921 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20922 then :
20923 emulate sh
20924 NULLCMD=:
20925 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20926 # is contrary to our usage. Disable this feature.
20927 alias -g '${1+"$@"}'='"$@"'
20928 setopt NO_GLOB_SUBST
20929 else case e in #(
20930 e) case `(set -o) 2>/dev/null` in #(
20931 *posix*) :
20932 set -o posix ;; #(
20933 *) :
20934 ;;
20935 esac ;;
20936 esac
20937 fi
20938
20939
20940
20941 # Reset variables that may have inherited troublesome values from
20942 # the environment.
20943
20944 # IFS needs to be set, to space, tab, and newline, in precisely that order.
20945 # (If _AS_PATH_WALK were called with IFS unset, it would have the
20946 # side effect of setting IFS to empty, thus disabling word splitting.)
20947 # Quoting is to prevent editors from complaining about space-tab.
20948 as_nl='
20949 '
20950 export as_nl
20951 IFS=" "" $as_nl"
20952
20953 PS1='$ '
20954 PS2='> '
20955 PS4='+ '
20956
20957 # Ensure predictable behavior from utilities with locale-dependent output.
20958 LC_ALL=C
20959 export LC_ALL
20960 LANGUAGE=C
20961 export LANGUAGE
20962
20963 # We cannot yet rely on "unset" to work, but we need these variables
20964 # to be unset--not just set to an empty or harmless value--now, to
20965 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
20966 # also avoids known problems related to "unset" and subshell syntax
20967 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
20968 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
20969 do eval test \${$as_var+y} \
20970 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20971 done
20972
20973 # Ensure that fds 0, 1, and 2 are open.
20974 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
20975 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
20976 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
20977
20978 # The user is always right.
20979 if ${PATH_SEPARATOR+false} :; then
20980 PATH_SEPARATOR=:
20981 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20982 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20983 PATH_SEPARATOR=';'
20984 }
20985 fi
20986
20987
20988 # Find who we are. Look in the path if we contain no directory separator.
20989 as_myself=
20990 case $0 in #((
20991 *[\\/]* ) as_myself=$0 ;;
20992 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20993 for as_dir in $PATH
20994 do
20995 IFS=$as_save_IFS
20996 case $as_dir in #(((
20997 '') as_dir=./ ;;
20998 */) ;;
20999 *) as_dir=$as_dir/ ;;
21000 esac
21001 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
21002 done
21003 IFS=$as_save_IFS
21004
21005 ;;
21006 esac
21007 # We did not find ourselves, most probably we were run as 'sh COMMAND'
21008 # in which case we are not to be found in the path.
21009 if test "x$as_myself" = x; then
21010 as_myself=$0
21011 fi
21012 if test ! -f "$as_myself"; then
21013 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21014 exit 1
21015 fi
21016
21017
21018
21019 # as_fn_error STATUS ERROR [LINENO LOG_FD]
21020 # ----------------------------------------
21021 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21022 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21023 # script with STATUS, using 1 if that was 0.
21024 as_fn_error ()
21025 {
21026 as_status=$1; test $as_status -eq 0 && as_status=1
21027 if test "$4"; then
21028 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21029 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21030 fi
21031 printf "%s\n" "$as_me: error: $2" >&2
21032 as_fn_exit $as_status
21033 } # as_fn_error
21034
21035
21036 # as_fn_set_status STATUS
21037 # -----------------------
21038 # Set $? to STATUS, without forking.
21039 as_fn_set_status ()
21040 {
21041 return $1
21042 } # as_fn_set_status
21043
21044 # as_fn_exit STATUS
21045 # -----------------
21046 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21047 as_fn_exit ()
21048 {
21049 set +e
21050 as_fn_set_status $1
21051 exit $1
21052 } # as_fn_exit
21053
21054 # as_fn_unset VAR
21055 # ---------------
21056 # Portably unset VAR.
21057 as_fn_unset ()
21058 {
21059 { eval $1=; unset $1;}
21060 }
21061 as_unset=as_fn_unset
21062
21063 # as_fn_append VAR VALUE
21064 # ----------------------
21065 # Append the text in VALUE to the end of the definition contained in VAR. Take
21066 # advantage of any shell optimizations that allow amortized linear growth over
21067 # repeated appends, instead of the typical quadratic growth present in naive
21068 # implementations.
21069 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
21070 then :
21071 eval 'as_fn_append ()
21072 {
21073 eval $1+=\$2
21074 }'
21075 else case e in #(
21076 e) as_fn_append ()
21077 {
21078 eval $1=\$$1\$2
21079 } ;;
21080 esac
21081 fi # as_fn_append
21082
21083 # as_fn_arith ARG...
21084 # ------------------
21085 # Perform arithmetic evaluation on the ARGs, and store the result in the
21086 # global $as_val. Take advantage of shells that can avoid forks. The arguments
21087 # must be portable across $(()) and expr.
21088 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
21089 then :
21090 eval 'as_fn_arith ()
21091 {
21092 as_val=$(( $* ))
21093 }'
21094 else case e in #(
21095 e) as_fn_arith ()
21096 {
21097 as_val=`expr "$@" || test $? -eq 1`
21098 } ;;
21099 esac
21100 fi # as_fn_arith
21101
21102
21103 if expr a : '\(a\)' >/dev/null 2>&1 &&
21104 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21105 as_expr=expr
21106 else
21107 as_expr=false
21108 fi
21109
21110 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21111 as_basename=basename
21112 else
21113 as_basename=false
21114 fi
21115
21116 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21117 as_dirname=dirname
21118 else
21119 as_dirname=false
21120 fi
21121
21122 as_me=`$as_basename -- "$0" ||
21123 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21124 X"$0" : 'X\(//\)$' \| \
21125 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21126 printf "%s\n" X/"$0" |
21127 sed '/^.*\/\([^/][^/]*\)\/*$/{
21128 s//\1/
21129 q
21130 }
21131 /^X\/\(\/\/\)$/{
21132 s//\1/
21133 q
21134 }
21135 /^X\/\(\/\).*/{
21136 s//\1/
21137 q
21138 }
21139 s/.*/./; q'`
21140
21141 # Avoid depending upon Character Ranges.
21142 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21143 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21144 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21145 as_cr_digits='0123456789'
21146 as_cr_alnum=$as_cr_Letters$as_cr_digits
21147
21148
21149 # Determine whether it's possible to make 'echo' print without a newline.
21150 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
21151 # for compatibility with existing Makefiles.
21152 ECHO_C= ECHO_N= ECHO_T=
21153 case `echo -n x` in #(((((
21154 -n*)
21155 case `echo 'xy\c'` in
21156 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21157 xy) ECHO_C='\c';;
21158 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
21159 ECHO_T=' ';;
21160 esac;;
21161 *)
21162 ECHO_N='-n';;
21163 esac
21164
21165 # For backward compatibility with old third-party macros, we provide
21166 # the shell variables $as_echo and $as_echo_n. New code should use
21167 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
21168 as_echo='printf %s\n'
21169 as_echo_n='printf %s'
21170
21171 rm -f conf$$ conf$$.exe conf$$.file
21172 if test -d conf$$.dir; then
21173 rm -f conf$$.dir/conf$$.file
21174 else
21175 rm -f conf$$.dir
21176 mkdir conf$$.dir 2>/dev/null
21177 fi
21178 if (echo >conf$$.file) 2>/dev/null; then
21179 if ln -s conf$$.file conf$$ 2>/dev/null; then
21180 as_ln_s='ln -s'
21181 # ... but there are two gotchas:
21182 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
21183 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
21184 # In both cases, we have to default to 'cp -pR'.
21185 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21186 as_ln_s='cp -pR'
21187 elif ln conf$$.file conf$$ 2>/dev/null; then
21188 as_ln_s=ln
21189 else
21190 as_ln_s='cp -pR'
21191 fi
21192 else
21193 as_ln_s='cp -pR'
21194 fi
21195 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21196 rmdir conf$$.dir 2>/dev/null
21197
21198
21199 # as_fn_mkdir_p
21200 # -------------
21201 # Create "$as_dir" as a directory, including parents if necessary.
21202 as_fn_mkdir_p ()
21203 {
21204
21205 case $as_dir in #(
21206 -*) as_dir=./$as_dir;;
21207 esac
21208 test -d "$as_dir" || eval $as_mkdir_p || {
21209 as_dirs=
21210 while :; do
21211 case $as_dir in #(
21212 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21213 *) as_qdir=$as_dir;;
21214 esac
21215 as_dirs="'$as_qdir' $as_dirs"
21216 as_dir=`$as_dirname -- "$as_dir" ||
21217 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21218 X"$as_dir" : 'X\(//\)[^/]' \| \
21219 X"$as_dir" : 'X\(//\)$' \| \
21220 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21221 printf "%s\n" X"$as_dir" |
21222 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21223 s//\1/
21224 q
21225 }
21226 /^X\(\/\/\)[^/].*/{
21227 s//\1/
21228 q
21229 }
21230 /^X\(\/\/\)$/{
21231 s//\1/
21232 q
21233 }
21234 /^X\(\/\).*/{
21235 s//\1/
21236 q
21237 }
21238 s/.*/./; q'`
21239 test -d "$as_dir" && break
21240 done
21241 test -z "$as_dirs" || eval "mkdir $as_dirs"
21242 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21243
21244
21245 } # as_fn_mkdir_p
21246 if mkdir -p . 2>/dev/null; then
21247 as_mkdir_p='mkdir -p "$as_dir"'
21248 else
21249 test -d ./-p && rmdir ./-p
21250 as_mkdir_p=false
21251 fi
21252
21253
21254 # as_fn_executable_p FILE
21255 # -----------------------
21256 # Test if FILE is an executable regular file.
21257 as_fn_executable_p ()
21258 {
21259 test -f "$1" && test -x "$1"
21260 } # as_fn_executable_p
21261 as_test_x='test -x'
21262 as_executable_p=as_fn_executable_p
21263
21264 # Sed expression to map a string onto a valid CPP name.
21265 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
21266 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
21267
21268 # Sed expression to map a string onto a valid variable name.
21269 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
21270 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
21271
21272
21273 exec 6>&1
21274 ## ----------------------------------- ##
21275 ## Main body of $CONFIG_STATUS script. ##
21276 ## ----------------------------------- ##
21277 _ASEOF
21278 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21279
21280 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21281 # Save the log message, to keep $0 and so on meaningful, and to
21282 # report actual input values of CONFIG_FILES etc. instead of their
21283 # values after options handling.
21284 ac_log="
21285 This file was extended by libXtst $as_me 1.2.5, which was
21286 generated by GNU Autoconf 2.72. Invocation command line was
21287
21288 CONFIG_FILES = $CONFIG_FILES
21289 CONFIG_HEADERS = $CONFIG_HEADERS
21290 CONFIG_LINKS = $CONFIG_LINKS
21291 CONFIG_COMMANDS = $CONFIG_COMMANDS
21292 $ $0 $@
21293
21294 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21295 "
21296
21297 _ACEOF
21298
21299 case $ac_config_files in *"
21300 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21301 esac
21302
21303 case $ac_config_headers in *"
21304 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21305 esac
21306
21307
21308 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21309 # Files that config.status was made for.
21310 config_files="$ac_config_files"
21311 config_headers="$ac_config_headers"
21312 config_commands="$ac_config_commands"
21313
21314 _ACEOF
21315
21316 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21317 ac_cs_usage="\
21318 '$as_me' instantiates files and other configuration actions
21319 from templates according to the current configuration. Unless the files
21320 and actions are specified as TAGs, all are instantiated by default.
21321
21322 Usage: $0 [OPTION]... [TAG]...
21323
21324 -h, --help print this help, then exit
21325 -V, --version print version number and configuration settings, then exit
21326 --config print configuration, then exit
21327 -q, --quiet, --silent
21328 do not print progress messages
21329 -d, --debug don't remove temporary files
21330 --recheck update $as_me by reconfiguring in the same conditions
21331 --file=FILE[:TEMPLATE]
21332 instantiate the configuration file FILE
21333 --header=FILE[:TEMPLATE]
21334 instantiate the configuration header FILE
21335
21336 Configuration files:
21337 $config_files
21338
21339 Configuration headers:
21340 $config_headers
21341
21342 Configuration commands:
21343 $config_commands
21344
21345 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxtst/-/issues>."
21346
21347 _ACEOF
21348 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
21349 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
21350 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21351 ac_cs_config='$ac_cs_config_escaped'
21352 ac_cs_version="\\
21353 libXtst config.status 1.2.5
21354 configured by $0, generated by GNU Autoconf 2.72,
21355 with options \\"\$ac_cs_config\\"
21356
21357 Copyright (C) 2023 Free Software Foundation, Inc.
21358 This config.status script is free software; the Free Software Foundation
21359 gives unlimited permission to copy, distribute and modify it."
21360
21361 ac_pwd='$ac_pwd'
21362 srcdir='$srcdir'
21363 INSTALL='$INSTALL'
21364 MKDIR_P='$MKDIR_P'
21365 AWK='$AWK'
21366 test -n "\$AWK" || AWK=awk
21367 _ACEOF
21368
21369 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21370 # The default lists apply if the user does not specify any file.
21371 ac_need_defaults=:
21372 while test $# != 0
21373 do
21374 case $1 in
21375 --*=?*)
21376 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21377 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21378 ac_shift=:
21379 ;;
21380 --*=)
21381 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21382 ac_optarg=
21383 ac_shift=:
21384 ;;
21385 *)
21386 ac_option=$1
21387 ac_optarg=$2
21388 ac_shift=shift
21389 ;;
21390 esac
21391
21392 case $ac_option in
21393 # Handling of the options.
21394 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21395 ac_cs_recheck=: ;;
21396 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21397 printf "%s\n" "$ac_cs_version"; exit ;;
21398 --config | --confi | --conf | --con | --co | --c )
21399 printf "%s\n" "$ac_cs_config"; exit ;;
21400 --debug | --debu | --deb | --de | --d | -d )
21401 debug=: ;;
21402 --file | --fil | --fi | --f )
21403 $ac_shift
21404 case $ac_optarg in
21405 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21406 '') as_fn_error $? "missing file argument" ;;
21407 esac
21408 as_fn_append CONFIG_FILES " '$ac_optarg'"
21409 ac_need_defaults=false;;
21410 --header | --heade | --head | --hea )
21411 $ac_shift
21412 case $ac_optarg in
21413 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21414 esac
21415 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21416 ac_need_defaults=false;;
21417 --he | --h)
21418 # Conflict between --help and --header
21419 as_fn_error $? "ambiguous option: '$1'
21420 Try '$0 --help' for more information.";;
21421 --help | --hel | -h )
21422 printf "%s\n" "$ac_cs_usage"; exit ;;
21423 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21424 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21425 ac_cs_silent=: ;;
21426
21427 # This is an error.
21428 -*) as_fn_error $? "unrecognized option: '$1'
21429 Try '$0 --help' for more information." ;;
21430
21431 *) as_fn_append ac_config_targets " $1"
21432 ac_need_defaults=false ;;
21433
21434 esac
21435 shift
21436 done
21437
21438 ac_configure_extra_args=
21439
21440 if $ac_cs_silent; then
21441 exec 6>/dev/null
21442 ac_configure_extra_args="$ac_configure_extra_args --silent"
21443 fi
21444
21445 _ACEOF
21446 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21447 if \$ac_cs_recheck; then
21448 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21449 shift
21450 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
21451 CONFIG_SHELL='$SHELL'
21452 export CONFIG_SHELL
21453 exec "\$@"
21454 fi
21455
21456 _ACEOF
21457 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21458 exec 5>>config.log
21459 {
21460 echo
21461 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21462 ## Running $as_me. ##
21463 _ASBOX
21464 printf "%s\n" "$ac_log"
21465 } >&5
21466
21467 _ACEOF
21468 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21469 #
21470 # INIT-COMMANDS
21471 #
21472 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
21473
21474
21475 # The HP-UX ksh and POSIX shell print the target directory to stdout
21476 # if CDPATH is set.
21477 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21478
21479 sed_quote_subst='$sed_quote_subst'
21480 double_quote_subst='$double_quote_subst'
21481 delay_variable_subst='$delay_variable_subst'
21482 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21483 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21484 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21485 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21486 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21487 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21488 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
21489 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21490 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21491 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
21492 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21493 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21494 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21495 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21496 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21497 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21498 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21499 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21500 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21501 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21502 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21503 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21504 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21505 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21506 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21507 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21508 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21509 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21510 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21511 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21512 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21513 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21514 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21515 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21516 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
21517 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21518 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21519 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21520 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21521 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21522 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21523 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21524 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21525 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
21526 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21527 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21528 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21529 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21530 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21531 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21532 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21533 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21534 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21535 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21536 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21537 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21538 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21539 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21540 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
21541 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21542 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
21543 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
21544 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21545 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21546 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
21547 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21548 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21549 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21550 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21551 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21552 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21553 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21554 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21555 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21556 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21557 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21558 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21559 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21560 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21561 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21562 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21563 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21564 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21565 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21566 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21567 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21568 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21569 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21570 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21571 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21572 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21573 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21574 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21575 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21576 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21577 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21578 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21579 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21580 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21581 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21582 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21583 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21584 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21585 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21586 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21587 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21588 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21589 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21590 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21591 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21592 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21593 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21594 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21595 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21596 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21597 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21598 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21599 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21600 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21601 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21602 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21603 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21604 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21605 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21606 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21607 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21608 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21609 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21610 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21611 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
21612 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
21613 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21614 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21615 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21616 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21617 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21618 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21619
21620 LTCC='$LTCC'
21621 LTCFLAGS='$LTCFLAGS'
21622 compiler='$compiler_DEFAULT'
21623
21624 # A function that is used when there is no print builtin or printf.
21625 func_fallback_echo ()
21626 {
21627 eval 'cat <<_LTECHO_EOF
21628 \$1
21629 _LTECHO_EOF'
21630 }
21631
21632 # Quote evaled strings.
21633 for var in SHELL \
21634 ECHO \
21635 PATH_SEPARATOR \
21636 SED \
21637 GREP \
21638 EGREP \
21639 FGREP \
21640 LD \
21641 NM \
21642 LN_S \
21643 lt_SP2NL \
21644 lt_NL2SP \
21645 reload_flag \
21646 FILECMD \
21647 OBJDUMP \
21648 deplibs_check_method \
21649 file_magic_cmd \
21650 file_magic_glob \
21651 want_nocaseglob \
21652 DLLTOOL \
21653 sharedlib_from_linklib_cmd \
21654 AR \
21655 archiver_list_spec \
21656 STRIP \
21657 RANLIB \
21658 CC \
21659 CFLAGS \
21660 compiler \
21661 lt_cv_sys_global_symbol_pipe \
21662 lt_cv_sys_global_symbol_to_cdecl \
21663 lt_cv_sys_global_symbol_to_import \
21664 lt_cv_sys_global_symbol_to_c_name_address \
21665 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21666 lt_cv_nm_interface \
21667 nm_file_list_spec \
21668 lt_cv_truncate_bin \
21669 lt_prog_compiler_no_builtin_flag \
21670 lt_prog_compiler_pic \
21671 lt_prog_compiler_wl \
21672 lt_prog_compiler_static \
21673 lt_cv_prog_compiler_c_o \
21674 need_locks \
21675 MANIFEST_TOOL \
21676 DSYMUTIL \
21677 NMEDIT \
21678 LIPO \
21679 OTOOL \
21680 OTOOL64 \
21681 shrext_cmds \
21682 export_dynamic_flag_spec \
21683 whole_archive_flag_spec \
21684 compiler_needs_object \
21685 with_gnu_ld \
21686 allow_undefined_flag \
21687 no_undefined_flag \
21688 hardcode_libdir_flag_spec \
21689 hardcode_libdir_separator \
21690 exclude_expsyms \
21691 include_expsyms \
21692 file_list_spec \
21693 variables_saved_for_relink \
21694 libname_spec \
21695 library_names_spec \
21696 soname_spec \
21697 install_override_mode \
21698 finish_eval \
21699 old_striplib \
21700 striplib; do
21701 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21702 *[\\\\\\\`\\"\\\$]*)
21703 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21704 ;;
21705 *)
21706 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21707 ;;
21708 esac
21709 done
21710
21711 # Double-quote double-evaled strings.
21712 for var in reload_cmds \
21713 old_postinstall_cmds \
21714 old_postuninstall_cmds \
21715 old_archive_cmds \
21716 extract_expsyms_cmds \
21717 old_archive_from_new_cmds \
21718 old_archive_from_expsyms_cmds \
21719 archive_cmds \
21720 archive_expsym_cmds \
21721 module_cmds \
21722 module_expsym_cmds \
21723 export_symbols_cmds \
21724 prelink_cmds \
21725 postlink_cmds \
21726 postinstall_cmds \
21727 postuninstall_cmds \
21728 finish_cmds \
21729 sys_lib_search_path_spec \
21730 configure_time_dlsearch_path \
21731 configure_time_lt_sys_library_path; do
21732 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21733 *[\\\\\\\`\\"\\\$]*)
21734 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21735 ;;
21736 *)
21737 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21738 ;;
21739 esac
21740 done
21741
21742 ac_aux_dir='$ac_aux_dir'
21743
21744 # See if we are running on zsh, and set the options that allow our
21745 # commands through without removal of \ escapes INIT.
21746 if test -n "\${ZSH_VERSION+set}"; then
21747 setopt NO_GLOB_SUBST
21748 fi
21749
21750
21751 PACKAGE='$PACKAGE'
21752 VERSION='$VERSION'
21753 RM='$RM'
21754 ofile='$ofile'
21755
21756
21757
21758
21759 _ACEOF
21760
21761 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21762
21763 # Handling of arguments.
21764 for ac_config_target in $ac_config_targets
21765 do
21766 case $ac_config_target in
21767 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21768 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21769 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21770 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21771 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
21772 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21773 "specs/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Makefile" ;;
21774 "xtst.pc") CONFIG_FILES="$CONFIG_FILES xtst.pc" ;;
21775
21776 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
21777 esac
21778 done
21779
21780
21781 # If the user did not use the arguments to specify the items to instantiate,
21782 # then the envvar interface is used. Set only those that are not.
21783 # We use the long form for the default assignment because of an extremely
21784 # bizarre bug on SunOS 4.1.3.
21785 if $ac_need_defaults; then
21786 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
21787 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
21788 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
21789 fi
21790
21791 # Have a temporary directory for convenience. Make it in the build tree
21792 # simply because there is no reason against having it here, and in addition,
21793 # creating and moving files from /tmp can sometimes cause problems.
21794 # Hook for its removal unless debugging.
21795 # Note that there is a small window in which the directory will not be cleaned:
21796 # after its creation but before its name has been assigned to '$tmp'.
21797 $debug ||
21798 {
21799 tmp= ac_tmp=
21800 trap 'exit_status=$?
21801 : "${ac_tmp:=$tmp}"
21802 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21803 ' 0
21804 trap 'as_fn_exit 1' 1 2 13 15
21805 }
21806 # Create a (secure) tmp directory for tmp files.
21807
21808 {
21809 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21810 test -d "$tmp"
21811 } ||
21812 {
21813 tmp=./conf$$-$RANDOM
21814 (umask 077 && mkdir "$tmp")
21815 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21816 ac_tmp=$tmp
21817
21818 # Set up the scripts for CONFIG_FILES section.
21819 # No need to generate them if there are no CONFIG_FILES.
21820 # This happens for instance with './config.status config.h'.
21821 if test -n "$CONFIG_FILES"; then
21822
21823
21824 ac_cr=`echo X | tr X '\015'`
21825 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21826 # But we know of no other shell where ac_cr would be empty at this
21827 # point, so we can use a bashism as a fallback.
21828 if test "x$ac_cr" = x; then
21829 eval ac_cr=\$\'\\r\'
21830 fi
21831 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21832 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21833 ac_cs_awk_cr='\\r'
21834 else
21835 ac_cs_awk_cr=$ac_cr
21836 fi
21837
21838 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21839 _ACEOF
21840
21841
21842 {
21843 echo "cat >conf$$subs.awk <<_ACEOF" &&
21844 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21845 echo "_ACEOF"
21846 } >conf$$subs.sh ||
21847 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21848 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21849 ac_delim='%!_!# '
21850 for ac_last_try in false false false false false :; do
21851 . ./conf$$subs.sh ||
21852 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21853
21854 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21855 if test $ac_delim_n = $ac_delim_num; then
21856 break
21857 elif $ac_last_try; then
21858 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21859 else
21860 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21861 fi
21862 done
21863 rm -f conf$$subs.sh
21864
21865 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21866 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21867 _ACEOF
21868 sed -n '
21869 h
21870 s/^/S["/; s/!.*/"]=/
21871 p
21872 g
21873 s/^[^!]*!//
21874 :repl
21875 t repl
21876 s/'"$ac_delim"'$//
21877 t delim
21878 :nl
21879 h
21880 s/\(.\{148\}\)..*/\1/
21881 t more1
21882 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21883 p
21884 n
21885 b repl
21886 :more1
21887 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21888 p
21889 g
21890 s/.\{148\}//
21891 t nl
21892 :delim
21893 h
21894 s/\(.\{148\}\)..*/\1/
21895 t more2
21896 s/["\\]/\\&/g; s/^/"/; s/$/"/
21897 p
21898 b
21899 :more2
21900 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21901 p
21902 g
21903 s/.\{148\}//
21904 t delim
21905 ' <conf$$subs.awk | sed '
21906 /^[^""]/{
21907 N
21908 s/\n//
21909 }
21910 ' >>$CONFIG_STATUS || ac_write_fail=1
21911 rm -f conf$$subs.awk
21912 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21913 _ACAWK
21914 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21915 for (key in S) S_is_set[key] = 1
21916 FS = ""
21917
21918 }
21919 {
21920 line = $ 0
21921 nfields = split(line, field, "@")
21922 substed = 0
21923 len = length(field[1])
21924 for (i = 2; i < nfields; i++) {
21925 key = field[i]
21926 keylen = length(key)
21927 if (S_is_set[key]) {
21928 value = S[key]
21929 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21930 len += length(value) + length(field[++i])
21931 substed = 1
21932 } else
21933 len += 1 + keylen
21934 }
21935
21936 print line
21937 }
21938
21939 _ACAWK
21940 _ACEOF
21941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21942 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21943 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21944 else
21945 cat
21946 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21947 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21948 _ACEOF
21949
21950 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21951 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21952 # trailing colons and then remove the whole line if VPATH becomes empty
21953 # (actually we leave an empty line to preserve line numbers).
21954 if test "x$srcdir" = x.; then
21955 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
21956 h
21957 s///
21958 s/^/:/
21959 s/[ ]*$/:/
21960 s/:\$(srcdir):/:/g
21961 s/:\${srcdir}:/:/g
21962 s/:@srcdir@:/:/g
21963 s/^:*//
21964 s/:*$//
21965 x
21966 s/\(=[ ]*\).*/\1/
21967 G
21968 s/\n//
21969 s/^[^=]*=[ ]*$//
21970 }'
21971 fi
21972
21973 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21974 fi # test -n "$CONFIG_FILES"
21975
21976 # Set up the scripts for CONFIG_HEADERS section.
21977 # No need to generate them if there are no CONFIG_HEADERS.
21978 # This happens for instance with './config.status Makefile'.
21979 if test -n "$CONFIG_HEADERS"; then
21980 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21981 BEGIN {
21982 _ACEOF
21983
21984 # Transform confdefs.h into an awk script 'defines.awk', embedded as
21985 # here-document in config.status, that substitutes the proper values into
21986 # config.h.in to produce config.h.
21987
21988 # Create a delimiter string that does not exist in confdefs.h, to ease
21989 # handling of long lines.
21990 ac_delim='%!_!# '
21991 for ac_last_try in false false :; do
21992 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21993 if test -z "$ac_tt"; then
21994 break
21995 elif $ac_last_try; then
21996 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21997 else
21998 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21999 fi
22000 done
22001
22002 # For the awk script, D is an array of macro values keyed by name,
22003 # likewise P contains macro parameters if any. Preserve backslash
22004 # newline sequences.
22005
22006 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22007 sed -n '
22008 s/.\{148\}/&'"$ac_delim"'/g
22009 t rset
22010 :rset
22011 s/^[ ]*#[ ]*define[ ][ ]*/ /
22012 t def
22013 d
22014 :def
22015 s/\\$//
22016 t bsnl
22017 s/["\\]/\\&/g
22018 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22019 D["\1"]=" \3"/p
22020 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
22021 d
22022 :bsnl
22023 s/["\\]/\\&/g
22024 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22025 D["\1"]=" \3\\\\\\n"\\/p
22026 t cont
22027 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22028 t cont
22029 d
22030 :cont
22031 n
22032 s/.\{148\}/&'"$ac_delim"'/g
22033 t clear
22034 :clear
22035 s/\\$//
22036 t bsnlc
22037 s/["\\]/\\&/g; s/^/"/; s/$/"/p
22038 d
22039 :bsnlc
22040 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22041 b cont
22042 ' <confdefs.h | sed '
22043 s/'"$ac_delim"'/"\\\
22044 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22045
22046 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22047 for (key in D) D_is_set[key] = 1
22048 FS = ""
22049 }
22050 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22051 line = \$ 0
22052 split(line, arg, " ")
22053 if (arg[1] == "#") {
22054 defundef = arg[2]
22055 mac1 = arg[3]
22056 } else {
22057 defundef = substr(arg[1], 2)
22058 mac1 = arg[2]
22059 }
22060 split(mac1, mac2, "(") #)
22061 macro = mac2[1]
22062 prefix = substr(line, 1, index(line, defundef) - 1)
22063 if (D_is_set[macro]) {
22064 # Preserve the white space surrounding the "#".
22065 print prefix "define", macro P[macro] D[macro]
22066 next
22067 } else {
22068 # Replace #undef with comments. This is necessary, for example,
22069 # in the case of _POSIX_SOURCE, which is predefined and required
22070 # on some systems where configure will not decide to define it.
22071 if (defundef == "undef") {
22072 print "/*", prefix defundef, macro, "*/"
22073 next
22074 }
22075 }
22076 }
22077 { print }
22078 _ACAWK
22079 _ACEOF
22080 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22081 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22082 fi # test -n "$CONFIG_HEADERS"
22083
22084
22085 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
22086 shift
22087 for ac_tag
22088 do
22089 case $ac_tag in
22090 :[FHLC]) ac_mode=$ac_tag; continue;;
22091 esac
22092 case $ac_mode$ac_tag in
22093 :[FHL]*:*);;
22094 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
22095 :[FH]-) ac_tag=-:-;;
22096 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22097 esac
22098 ac_save_IFS=$IFS
22099 IFS=:
22100 set x $ac_tag
22101 IFS=$ac_save_IFS
22102 shift
22103 ac_file=$1
22104 shift
22105
22106 case $ac_mode in
22107 :L) ac_source=$1;;
22108 :[FH])
22109 ac_file_inputs=
22110 for ac_f
22111 do
22112 case $ac_f in
22113 -) ac_f="$ac_tmp/stdin";;
22114 *) # Look for the file first in the build tree, then in the source tree
22115 # (if the path is not absolute). The absolute path cannot be DOS-style,
22116 # because $ac_f cannot contain ':'.
22117 test -f "$ac_f" ||
22118 case $ac_f in
22119 [\\/$]*) false;;
22120 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22121 esac ||
22122 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
22123 esac
22124 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22125 as_fn_append ac_file_inputs " '$ac_f'"
22126 done
22127
22128 # Let's still pretend it is 'configure' which instantiates (i.e., don't
22129 # use $as_me), people would be surprised to read:
22130 # /* config.h. Generated by config.status. */
22131 configure_input='Generated from '`
22132 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22133 `' by configure.'
22134 if test x"$ac_file" != x-; then
22135 configure_input="$ac_file. $configure_input"
22136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22137 printf "%s\n" "$as_me: creating $ac_file" >&6;}
22138 fi
22139 # Neutralize special characters interpreted by sed in replacement strings.
22140 case $configure_input in #(
22141 *\&* | *\|* | *\\* )
22142 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
22143 sed 's/[\\\\&|]/\\\\&/g'`;; #(
22144 *) ac_sed_conf_input=$configure_input;;
22145 esac
22146
22147 case $ac_tag in
22148 *:-:* | *:-) cat >"$ac_tmp/stdin" \
22149 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22150 esac
22151 ;;
22152 esac
22153
22154 ac_dir=`$as_dirname -- "$ac_file" ||
22155 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22156 X"$ac_file" : 'X\(//\)[^/]' \| \
22157 X"$ac_file" : 'X\(//\)$' \| \
22158 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22159 printf "%s\n" X"$ac_file" |
22160 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22161 s//\1/
22162 q
22163 }
22164 /^X\(\/\/\)[^/].*/{
22165 s//\1/
22166 q
22167 }
22168 /^X\(\/\/\)$/{
22169 s//\1/
22170 q
22171 }
22172 /^X\(\/\).*/{
22173 s//\1/
22174 q
22175 }
22176 s/.*/./; q'`
22177 as_dir="$ac_dir"; as_fn_mkdir_p
22178 ac_builddir=.
22179
22180 case "$ac_dir" in
22181 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22182 *)
22183 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
22184 # A ".." for each directory in $ac_dir_suffix.
22185 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22186 case $ac_top_builddir_sub in
22187 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22188 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22189 esac ;;
22190 esac
22191 ac_abs_top_builddir=$ac_pwd
22192 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22193 # for backward compatibility:
22194 ac_top_builddir=$ac_top_build_prefix
22195
22196 case $srcdir in
22197 .) # We are building in place.
22198 ac_srcdir=.
22199 ac_top_srcdir=$ac_top_builddir_sub
22200 ac_abs_top_srcdir=$ac_pwd ;;
22201 [\\/]* | ?:[\\/]* ) # Absolute name.
22202 ac_srcdir=$srcdir$ac_dir_suffix;
22203 ac_top_srcdir=$srcdir
22204 ac_abs_top_srcdir=$srcdir ;;
22205 *) # Relative name.
22206 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22207 ac_top_srcdir=$ac_top_build_prefix$srcdir
22208 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22209 esac
22210 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22211
22212
22213 case $ac_mode in
22214 :F)
22215 #
22216 # CONFIG_FILE
22217 #
22218
22219 case $INSTALL in
22220 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22221 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22222 esac
22223 ac_MKDIR_P=$MKDIR_P
22224 case $MKDIR_P in
22225 [\\/$]* | ?:[\\/]* ) ;;
22226 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22227 esac
22228 _ACEOF
22229
22230 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22231 # If the template does not know about datarootdir, expand it.
22232 # FIXME: This hack should be removed a few years after 2.60.
22233 ac_datarootdir_hack=; ac_datarootdir_seen=
22234 ac_sed_dataroot='
22235 /datarootdir/ {
22236 p
22237 q
22238 }
22239 /@datadir@/p
22240 /@docdir@/p
22241 /@infodir@/p
22242 /@localedir@/p
22243 /@mandir@/p'
22244 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22245 *datarootdir*) ac_datarootdir_seen=yes;;
22246 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22248 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22249 _ACEOF
22250 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22251 ac_datarootdir_hack='
22252 s&@datadir@&$datadir&g
22253 s&@docdir@&$docdir&g
22254 s&@infodir@&$infodir&g
22255 s&@localedir@&$localedir&g
22256 s&@mandir@&$mandir&g
22257 s&\\\${datarootdir}&$datarootdir&g' ;;
22258 esac
22259 _ACEOF
22260
22261 # Neutralize VPATH when '$srcdir' = '.'.
22262 # Shell code in configure.ac might set extrasub.
22263 # FIXME: do we really want to maintain this feature?
22264 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22265 ac_sed_extra="$ac_vpsub
22266 $extrasub
22267 _ACEOF
22268 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22269 :t
22270 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22271 s|@configure_input@|$ac_sed_conf_input|;t t
22272 s&@top_builddir@&$ac_top_builddir_sub&;t t
22273 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22274 s&@srcdir@&$ac_srcdir&;t t
22275 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22276 s&@top_srcdir@&$ac_top_srcdir&;t t
22277 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22278 s&@builddir@&$ac_builddir&;t t
22279 s&@abs_builddir@&$ac_abs_builddir&;t t
22280 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22281 s&@INSTALL@&$ac_INSTALL&;t t
22282 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22283 $ac_datarootdir_hack
22284 "
22285 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22286 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22287
22288 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22289 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22290 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
22291 "$ac_tmp/out"`; test -z "$ac_out"; } &&
22292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
22293 which seems to be undefined. Please make sure it is defined" >&5
22294 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
22295 which seems to be undefined. Please make sure it is defined" >&2;}
22296
22297 rm -f "$ac_tmp/stdin"
22298 case $ac_file in
22299 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22300 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22301 esac \
22302 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22303 ;;
22304 :H)
22305 #
22306 # CONFIG_HEADER
22307 #
22308 if test x"$ac_file" != x-; then
22309 {
22310 printf "%s\n" "/* $configure_input */" >&1 \
22311 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22312 } >"$ac_tmp/config.h" \
22313 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22314 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22316 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
22317 else
22318 rm -f "$ac_file"
22319 mv "$ac_tmp/config.h" "$ac_file" \
22320 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22321 fi
22322 else
22323 printf "%s\n" "/* $configure_input */" >&1 \
22324 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22325 || as_fn_error $? "could not create -" "$LINENO" 5
22326 fi
22327 # Compute "$ac_file"'s index in $config_headers.
22328 _am_arg="$ac_file"
22329 _am_stamp_count=1
22330 for _am_header in $config_headers :; do
22331 case $_am_header in
22332 $_am_arg | $_am_arg:* )
22333 break ;;
22334 * )
22335 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22336 esac
22337 done
22338 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22339 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22340 X"$_am_arg" : 'X\(//\)[^/]' \| \
22341 X"$_am_arg" : 'X\(//\)$' \| \
22342 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22343 printf "%s\n" X"$_am_arg" |
22344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22345 s//\1/
22346 q
22347 }
22348 /^X\(\/\/\)[^/].*/{
22349 s//\1/
22350 q
22351 }
22352 /^X\(\/\/\)$/{
22353 s//\1/
22354 q
22355 }
22356 /^X\(\/\).*/{
22357 s//\1/
22358 q
22359 }
22360 s/.*/./; q'`/stamp-h$_am_stamp_count
22361 ;;
22362
22363 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22364 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
22365 ;;
22366 esac
22367
22368
22369 case $ac_file$ac_mode in
22370 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22371 # Older Autoconf quotes --file arguments for eval, but not when files
22372 # are listed without --file. Let's play safe and only enable the eval
22373 # if we detect the quoting.
22374 # TODO: see whether this extra hack can be removed once we start
22375 # requiring Autoconf 2.70 or later.
22376 case $CONFIG_FILES in #(
22377 *\'*) :
22378 eval set x "$CONFIG_FILES" ;; #(
22379 *) :
22380 set x $CONFIG_FILES ;; #(
22381 *) :
22382 ;;
22383 esac
22384 shift
22385 # Used to flag and report bootstrapping failures.
22386 am_rc=0
22387 for am_mf
22388 do
22389 # Strip MF so we end up with the name of the file.
22390 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
22391 # Check whether this is an Automake generated Makefile which includes
22392 # dependency-tracking related rules and includes.
22393 # Grep'ing the whole file directly is not great: AIX grep has a line
22394 # limit of 2048, but all sed's we know have understand at least 4000.
22395 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
22396 || continue
22397 am_dirpart=`$as_dirname -- "$am_mf" ||
22398 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22399 X"$am_mf" : 'X\(//\)[^/]' \| \
22400 X"$am_mf" : 'X\(//\)$' \| \
22401 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22402 printf "%s\n" X"$am_mf" |
22403 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22404 s//\1/
22405 q
22406 }
22407 /^X\(\/\/\)[^/].*/{
22408 s//\1/
22409 q
22410 }
22411 /^X\(\/\/\)$/{
22412 s//\1/
22413 q
22414 }
22415 /^X\(\/\).*/{
22416 s//\1/
22417 q
22418 }
22419 s/.*/./; q'`
22420 am_filepart=`$as_basename -- "$am_mf" ||
22421 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
22422 X"$am_mf" : 'X\(//\)$' \| \
22423 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22424 printf "%s\n" X/"$am_mf" |
22425 sed '/^.*\/\([^/][^/]*\)\/*$/{
22426 s//\1/
22427 q
22428 }
22429 /^X\/\(\/\/\)$/{
22430 s//\1/
22431 q
22432 }
22433 /^X\/\(\/\).*/{
22434 s//\1/
22435 q
22436 }
22437 s/.*/./; q'`
22438 { echo "$as_me:$LINENO: cd "$am_dirpart" \
22439 && sed -e '/# am--include-marker/d' "$am_filepart" \
22440 | $MAKE -f - am--depfiles" >&5
22441 (cd "$am_dirpart" \
22442 && sed -e '/# am--include-marker/d' "$am_filepart" \
22443 | $MAKE -f - am--depfiles) >&5 2>&5
22444 ac_status=$?
22445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22446 (exit $ac_status); } || am_rc=$?
22447 done
22448 if test $am_rc -ne 0; then
22449 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
22450 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
22451 as_fn_error $? "Something went wrong bootstrapping makefile fragments
22452 for automatic dependency tracking. If GNU make was not used, consider
22453 re-running the configure script with MAKE=\"gmake\" (or whatever is
22454 necessary). You can also try re-running configure with the
22455 '--disable-dependency-tracking' option to at least be able to build
22456 the package (albeit without support for automatic dependency tracking).
22457 See 'config.log' for more details" "$LINENO" 5; }
22458 fi
22459 { am_dirpart=; unset am_dirpart;}
22460 { am_filepart=; unset am_filepart;}
22461 { am_mf=; unset am_mf;}
22462 { am_rc=; unset am_rc;}
22463 rm -f conftest-deps.mk
22464 }
22465 ;;
22466 "libtool":C)
22467
22468 # See if we are running on zsh, and set the options that allow our
22469 # commands through without removal of \ escapes.
22470 if test -n "${ZSH_VERSION+set}"; then
22471 setopt NO_GLOB_SUBST
22472 fi
22473
22474 cfgfile=${ofile}T
22475 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22476 $RM "$cfgfile"
22477
22478 cat <<_LT_EOF >> "$cfgfile"
22479 #! $SHELL
22480 # Generated automatically by $as_me ($PACKAGE) $VERSION
22481 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22482 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
22483
22484 # Provide generalized library-building support services.
22485 # Written by Gordon Matzigkeit, 1996
22486
22487 # Copyright (C) 2014 Free Software Foundation, Inc.
22488 # This is free software; see the source for copying conditions. There is NO
22489 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
22490
22491 # GNU Libtool is free software; you can redistribute it and/or modify
22492 # it under the terms of the GNU General Public License as published by
22493 # the Free Software Foundation; either version 2 of of the License, or
22494 # (at your option) any later version.
22495 #
22496 # As a special exception to the GNU General Public License, if you
22497 # distribute this file as part of a program or library that is built
22498 # using GNU Libtool, you may include this file under the same
22499 # distribution terms that you use for the rest of that program.
22500 #
22501 # GNU Libtool is distributed in the hope that it will be useful, but
22502 # WITHOUT ANY WARRANTY; without even the implied warranty of
22503 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22504 # GNU General Public License for more details.
22505 #
22506 # You should have received a copy of the GNU General Public License
22507 # along with this program. If not, see <http://www.gnu.org/licenses/>.
22508
22509
22510 # The names of the tagged configurations supported by this script.
22511 available_tags=''
22512
22513 # Configured defaults for sys_lib_dlsearch_path munging.
22514 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
22515
22516 # ### BEGIN LIBTOOL CONFIG
22517
22518 # Which release of libtool.m4 was used?
22519 macro_version=$macro_version
22520 macro_revision=$macro_revision
22521
22522 # Whether or not to build shared libraries.
22523 build_libtool_libs=$enable_shared
22524
22525 # Whether or not to build static libraries.
22526 build_old_libs=$enable_static
22527
22528 # What type of objects to build.
22529 pic_mode=$pic_mode
22530
22531 # Whether or not to optimize for fast installation.
22532 fast_install=$enable_fast_install
22533
22534 # Shared archive member basename,for filename based shared library versioning on AIX.
22535 shared_archive_member_spec=$shared_archive_member_spec
22536
22537 # Shell to use when invoking shell scripts.
22538 SHELL=$lt_SHELL
22539
22540 # An echo program that protects backslashes.
22541 ECHO=$lt_ECHO
22542
22543 # The PATH separator for the build system.
22544 PATH_SEPARATOR=$lt_PATH_SEPARATOR
22545
22546 # The host system.
22547 host_alias=$host_alias
22548 host=$host
22549 host_os=$host_os
22550
22551 # The build system.
22552 build_alias=$build_alias
22553 build=$build
22554 build_os=$build_os
22555
22556 # A sed program that does not truncate output.
22557 SED=$lt_SED
22558
22559 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
22560 Xsed="\$SED -e 1s/^X//"
22561
22562 # A grep program that handles long lines.
22563 GREP=$lt_GREP
22564
22565 # An ERE matcher.
22566 EGREP=$lt_EGREP
22567
22568 # A literal string matcher.
22569 FGREP=$lt_FGREP
22570
22571 # A BSD- or MS-compatible name lister.
22572 NM=$lt_NM
22573
22574 # Whether we need soft or hard links.
22575 LN_S=$lt_LN_S
22576
22577 # What is the maximum length of a command?
22578 max_cmd_len=$max_cmd_len
22579
22580 # Object file suffix (normally "o").
22581 objext=$ac_objext
22582
22583 # Executable file suffix (normally "").
22584 exeext=$exeext
22585
22586 # whether the shell understands "unset".
22587 lt_unset=$lt_unset
22588
22589 # turn spaces into newlines.
22590 SP2NL=$lt_lt_SP2NL
22591
22592 # turn newlines into spaces.
22593 NL2SP=$lt_lt_NL2SP
22594
22595 # convert \$build file names to \$host format.
22596 to_host_file_cmd=$lt_cv_to_host_file_cmd
22597
22598 # convert \$build files to toolchain format.
22599 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
22600
22601 # A file(cmd) program that detects file types.
22602 FILECMD=$lt_FILECMD
22603
22604 # An object symbol dumper.
22605 OBJDUMP=$lt_OBJDUMP
22606
22607 # Method to check whether dependent libraries are shared objects.
22608 deplibs_check_method=$lt_deplibs_check_method
22609
22610 # Command to use when deplibs_check_method = "file_magic".
22611 file_magic_cmd=$lt_file_magic_cmd
22612
22613 # How to find potential files when deplibs_check_method = "file_magic".
22614 file_magic_glob=$lt_file_magic_glob
22615
22616 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22617 want_nocaseglob=$lt_want_nocaseglob
22618
22619 # DLL creation program.
22620 DLLTOOL=$lt_DLLTOOL
22621
22622 # Command to associate shared and link libraries.
22623 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22624
22625 # The archiver.
22626 AR=$lt_AR
22627
22628 # Flags to create an archive (by configure).
22629 lt_ar_flags=$lt_ar_flags
22630
22631 # Flags to create an archive.
22632 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
22633
22634 # How to feed a file listing to the archiver.
22635 archiver_list_spec=$lt_archiver_list_spec
22636
22637 # A symbol stripping program.
22638 STRIP=$lt_STRIP
22639
22640 # Commands used to install an old-style archive.
22641 RANLIB=$lt_RANLIB
22642 old_postinstall_cmds=$lt_old_postinstall_cmds
22643 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22644
22645 # Whether to use a lock for old archive extraction.
22646 lock_old_archive_extraction=$lock_old_archive_extraction
22647
22648 # A C compiler.
22649 LTCC=$lt_CC
22650
22651 # LTCC compiler flags.
22652 LTCFLAGS=$lt_CFLAGS
22653
22654 # Take the output of nm and produce a listing of raw symbols and C names.
22655 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22656
22657 # Transform the output of nm in a proper C declaration.
22658 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22659
22660 # Transform the output of nm into a list of symbols to manually relocate.
22661 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
22662
22663 # Transform the output of nm in a C name address pair.
22664 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22665
22666 # Transform the output of nm in a C name address pair when lib prefix is needed.
22667 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22668
22669 # The name lister interface.
22670 nm_interface=$lt_lt_cv_nm_interface
22671
22672 # Specify filename containing input files for \$NM.
22673 nm_file_list_spec=$lt_nm_file_list_spec
22674
22675 # The root where to search for dependent libraries,and where our libraries should be installed.
22676 lt_sysroot=$lt_sysroot
22677
22678 # Command to truncate a binary pipe.
22679 lt_truncate_bin=$lt_lt_cv_truncate_bin
22680
22681 # The name of the directory that contains temporary libtool files.
22682 objdir=$objdir
22683
22684 # Used to examine libraries when file_magic_cmd begins with "file".
22685 MAGIC_CMD=$MAGIC_CMD
22686
22687 # Must we lock files when doing compilation?
22688 need_locks=$lt_need_locks
22689
22690 # Manifest tool.
22691 MANIFEST_TOOL=$lt_MANIFEST_TOOL
22692
22693 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22694 DSYMUTIL=$lt_DSYMUTIL
22695
22696 # Tool to change global to local symbols on Mac OS X.
22697 NMEDIT=$lt_NMEDIT
22698
22699 # Tool to manipulate fat objects and archives on Mac OS X.
22700 LIPO=$lt_LIPO
22701
22702 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
22703 OTOOL=$lt_OTOOL
22704
22705 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22706 OTOOL64=$lt_OTOOL64
22707
22708 # Old archive suffix (normally "a").
22709 libext=$libext
22710
22711 # Shared library suffix (normally ".so").
22712 shrext_cmds=$lt_shrext_cmds
22713
22714 # The commands to extract the exported symbol list from a shared archive.
22715 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22716
22717 # Variables whose values should be saved in libtool wrapper scripts and
22718 # restored at link time.
22719 variables_saved_for_relink=$lt_variables_saved_for_relink
22720
22721 # Do we need the "lib" prefix for modules?
22722 need_lib_prefix=$need_lib_prefix
22723
22724 # Do we need a version for libraries?
22725 need_version=$need_version
22726
22727 # Library versioning type.
22728 version_type=$version_type
22729
22730 # Shared library runtime path variable.
22731 runpath_var=$runpath_var
22732
22733 # Shared library path variable.
22734 shlibpath_var=$shlibpath_var
22735
22736 # Is shlibpath searched before the hard-coded library search path?
22737 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22738
22739 # Format of library name prefix.
22740 libname_spec=$lt_libname_spec
22741
22742 # List of archive names. First name is the real one, the rest are links.
22743 # The last name is the one that the linker finds with -lNAME
22744 library_names_spec=$lt_library_names_spec
22745
22746 # The coded name of the library, if different from the real name.
22747 soname_spec=$lt_soname_spec
22748
22749 # Permission mode override for installation of shared libraries.
22750 install_override_mode=$lt_install_override_mode
22751
22752 # Command to use after installation of a shared archive.
22753 postinstall_cmds=$lt_postinstall_cmds
22754
22755 # Command to use after uninstallation of a shared archive.
22756 postuninstall_cmds=$lt_postuninstall_cmds
22757
22758 # Commands used to finish a libtool library installation in a directory.
22759 finish_cmds=$lt_finish_cmds
22760
22761 # As "finish_cmds", except a single script fragment to be evaled but
22762 # not shown.
22763 finish_eval=$lt_finish_eval
22764
22765 # Whether we should hardcode library paths into libraries.
22766 hardcode_into_libs=$hardcode_into_libs
22767
22768 # Compile-time system search path for libraries.
22769 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22770
22771 # Detected run-time system search path for libraries.
22772 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
22773
22774 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
22775 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
22776
22777 # Whether dlopen is supported.
22778 dlopen_support=$enable_dlopen
22779
22780 # Whether dlopen of programs is supported.
22781 dlopen_self=$enable_dlopen_self
22782
22783 # Whether dlopen of statically linked programs is supported.
22784 dlopen_self_static=$enable_dlopen_self_static
22785
22786 # Commands to strip libraries.
22787 old_striplib=$lt_old_striplib
22788 striplib=$lt_striplib
22789
22790
22791 # The linker used to build libraries.
22792 LD=$lt_LD
22793
22794 # How to create reloadable object files.
22795 reload_flag=$lt_reload_flag
22796 reload_cmds=$lt_reload_cmds
22797
22798 # Commands used to build an old-style archive.
22799 old_archive_cmds=$lt_old_archive_cmds
22800
22801 # A language specific compiler.
22802 CC=$lt_compiler
22803
22804 # Is the compiler the GNU compiler?
22805 with_gcc=$GCC
22806
22807 # Compiler flag to turn off builtin functions.
22808 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22809
22810 # Additional compiler flags for building library objects.
22811 pic_flag=$lt_lt_prog_compiler_pic
22812
22813 # How to pass a linker flag through the compiler.
22814 wl=$lt_lt_prog_compiler_wl
22815
22816 # Compiler flag to prevent dynamic linking.
22817 link_static_flag=$lt_lt_prog_compiler_static
22818
22819 # Does compiler simultaneously support -c and -o options?
22820 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22821
22822 # Whether or not to add -lc for building shared libraries.
22823 build_libtool_need_lc=$archive_cmds_need_lc
22824
22825 # Whether or not to disallow shared libs when runtime libs are static.
22826 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22827
22828 # Compiler flag to allow reflexive dlopens.
22829 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22830
22831 # Compiler flag to generate shared objects directly from archives.
22832 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22833
22834 # Whether the compiler copes with passing no objects directly.
22835 compiler_needs_object=$lt_compiler_needs_object
22836
22837 # Create an old-style archive from a shared archive.
22838 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22839
22840 # Create a temporary old-style archive to link instead of a shared archive.
22841 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22842
22843 # Commands used to build a shared archive.
22844 archive_cmds=$lt_archive_cmds
22845 archive_expsym_cmds=$lt_archive_expsym_cmds
22846
22847 # Commands used to build a loadable module if different from building
22848 # a shared archive.
22849 module_cmds=$lt_module_cmds
22850 module_expsym_cmds=$lt_module_expsym_cmds
22851
22852 # Whether we are building with GNU ld or not.
22853 with_gnu_ld=$lt_with_gnu_ld
22854
22855 # Flag that allows shared libraries with undefined symbols to be built.
22856 allow_undefined_flag=$lt_allow_undefined_flag
22857
22858 # Flag that enforces no undefined symbols.
22859 no_undefined_flag=$lt_no_undefined_flag
22860
22861 # Flag to hardcode \$libdir into a binary during linking.
22862 # This must work even if \$libdir does not exist
22863 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22864
22865 # Whether we need a single "-rpath" flag with a separated argument.
22866 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22867
22868 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22869 # DIR into the resulting binary.
22870 hardcode_direct=$hardcode_direct
22871
22872 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22873 # DIR into the resulting binary and the resulting library dependency is
22874 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
22875 # library is relocated.
22876 hardcode_direct_absolute=$hardcode_direct_absolute
22877
22878 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22879 # into the resulting binary.
22880 hardcode_minus_L=$hardcode_minus_L
22881
22882 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22883 # into the resulting binary.
22884 hardcode_shlibpath_var=$hardcode_shlibpath_var
22885
22886 # Set to "yes" if building a shared library automatically hardcodes DIR
22887 # into the library and all subsequent libraries and executables linked
22888 # against it.
22889 hardcode_automatic=$hardcode_automatic
22890
22891 # Set to yes if linker adds runtime paths of dependent libraries
22892 # to runtime path list.
22893 inherit_rpath=$inherit_rpath
22894
22895 # Whether libtool must link a program against all its dependency libraries.
22896 link_all_deplibs=$link_all_deplibs
22897
22898 # Set to "yes" if exported symbols are required.
22899 always_export_symbols=$always_export_symbols
22900
22901 # The commands to list exported symbols.
22902 export_symbols_cmds=$lt_export_symbols_cmds
22903
22904 # Symbols that should not be listed in the preloaded symbols.
22905 exclude_expsyms=$lt_exclude_expsyms
22906
22907 # Symbols that must always be exported.
22908 include_expsyms=$lt_include_expsyms
22909
22910 # Commands necessary for linking programs (against libraries) with templates.
22911 prelink_cmds=$lt_prelink_cmds
22912
22913 # Commands necessary for finishing linking programs.
22914 postlink_cmds=$lt_postlink_cmds
22915
22916 # Specify filename containing input files.
22917 file_list_spec=$lt_file_list_spec
22918
22919 # How to hardcode a shared library path into an executable.
22920 hardcode_action=$hardcode_action
22921
22922 # ### END LIBTOOL CONFIG
22923
22924 _LT_EOF
22925
22926 cat <<'_LT_EOF' >> "$cfgfile"
22927
22928 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
22929
22930 # func_munge_path_list VARIABLE PATH
22931 # -----------------------------------
22932 # VARIABLE is name of variable containing _space_ separated list of
22933 # directories to be munged by the contents of PATH, which is string
22934 # having a format:
22935 # "DIR[:DIR]:"
22936 # string "DIR[ DIR]" will be prepended to VARIABLE
22937 # ":DIR[:DIR]"
22938 # string "DIR[ DIR]" will be appended to VARIABLE
22939 # "DIRP[:DIRP]::[DIRA:]DIRA"
22940 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
22941 # "DIRA[ DIRA]" will be appended to VARIABLE
22942 # "DIR[:DIR]"
22943 # VARIABLE will be replaced by "DIR[ DIR]"
22944 func_munge_path_list ()
22945 {
22946 case x$2 in
22947 x)
22948 ;;
22949 *:)
22950 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
22951 ;;
22952 x:*)
22953 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
22954 ;;
22955 *::*)
22956 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
22957 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
22958 ;;
22959 *)
22960 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
22961 ;;
22962 esac
22963 }
22964
22965
22966 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
22967 func_cc_basename ()
22968 {
22969 for cc_temp in $*""; do
22970 case $cc_temp in
22971 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22972 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22973 \-*) ;;
22974 *) break;;
22975 esac
22976 done
22977 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
22978 }
22979
22980
22981 # ### END FUNCTIONS SHARED WITH CONFIGURE
22982
22983 _LT_EOF
22984
22985 case $host_os in
22986 aix3*)
22987 cat <<\_LT_EOF >> "$cfgfile"
22988 # AIX sometimes has problems with the GCC collect2 program. For some
22989 # reason, if we set the COLLECT_NAMES environment variable, the problems
22990 # vanish in a puff of smoke.
22991 if test set != "${COLLECT_NAMES+set}"; then
22992 COLLECT_NAMES=
22993 export COLLECT_NAMES
22994 fi
22995 _LT_EOF
22996 ;;
22997 esac
22998
22999
23000
23001 ltmain=$ac_aux_dir/ltmain.sh
23002
23003
23004 # We use sed instead of cat because bash on DJGPP gets confused if
23005 # if finds mixed CR/LF and LF-only lines. Since sed operates in
23006 # text mode, it properly converts lines to CR/LF. This bash problem
23007 # is reportedly fixed, but why not run on old versions too?
23008 $SED '$q' "$ltmain" >> "$cfgfile" \
23009 || (rm -f "$cfgfile"; exit 1)
23010
23011 mv -f "$cfgfile" "$ofile" ||
23012 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23013 chmod +x "$ofile"
23014
23015 ;;
23016
23017 esac
23018 done # for ac_tag
23019
23020
23021 as_fn_exit 0
23022 _ACEOF
23023 ac_clean_files=$ac_clean_files_save
23024
23025 test $ac_write_fail = 0 ||
23026 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23027
23028
23029 # configure is writing to config.log, and then calls config.status.
23030 # config.status does its own redirection, appending to config.log.
23031 # Unfortunately, on DOS this fails, as config.log is still kept open
23032 # by configure, so config.status won't be able to write to it; its
23033 # output is simply discarded. So we exec the FD to /dev/null,
23034 # effectively closing config.log, so it can be properly (re)opened and
23035 # appended to by config.status. When coming back to configure, we
23036 # need to make the FD available again.
23037 if test "$no_create" != yes; then
23038 ac_cs_success=:
23039 ac_config_status_args=
23040 test "$silent" = yes &&
23041 ac_config_status_args="$ac_config_status_args --quiet"
23042 exec 5>/dev/null
23043 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23044 exec 5>>config.log
23045 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23046 # would make configure fail if this is the last instruction.
23047 $ac_cs_success || as_fn_exit 1
23048 fi
23049 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23051 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23052 fi
23053
23054
23055