configure revision 1.1.1.7 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libICE 1.0.10.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libICE/issues>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
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 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
202
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
214 fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235 fi
236 fi
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
278 $0: https://gitlab.freedesktop.org/xorg/lib/libICE/issues
279 $0: about your system, including any error possibly output
280 $0: before this message. Then install a modern shell, or
281 $0: manually run the script under such a shell if you do
282 $0: have one."
283 fi
284 exit 1
285 fi
286 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302 { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
309 as_fn_set_status ()
310 {
311 return $1
312 } # as_fn_set_status
313
314 # as_fn_exit STATUS
315 # -----------------
316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 as_fn_exit ()
318 {
319 set +e
320 as_fn_set_status $1
321 exit $1
322 } # as_fn_exit
323
324 # as_fn_mkdir_p
325 # -------------
326 # Create "$as_dir" as a directory, including parents if necessary.
327 as_fn_mkdir_p ()
328 {
329
330 case $as_dir in #(
331 -*) as_dir=./$as_dir;;
332 esac
333 test -d "$as_dir" || eval $as_mkdir_p || {
334 as_dirs=
335 while :; do
336 case $as_dir in #(
337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338 *) as_qdir=$as_dir;;
339 esac
340 as_dirs="'$as_qdir' $as_dirs"
341 as_dir=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343 X"$as_dir" : 'X\(//\)[^/]' \| \
344 X"$as_dir" : 'X\(//\)$' \| \
345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 $as_echo X"$as_dir" |
347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)[^/].*/{
352 s//\1/
353 q
354 }
355 /^X\(\/\/\)$/{
356 s//\1/
357 q
358 }
359 /^X\(\/\).*/{
360 s//\1/
361 q
362 }
363 s/.*/./; q'`
364 test -d "$as_dir" && break
365 done
366 test -z "$as_dirs" || eval "mkdir $as_dirs"
367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370 } # as_fn_mkdir_p
371
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
376 {
377 test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
384 # implementations.
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386 eval 'as_fn_append ()
387 {
388 eval $1+=\$2
389 }'
390 else
391 as_fn_append ()
392 {
393 eval $1=\$$1\$2
394 }
395 fi # as_fn_append
396
397 # as_fn_arith ARG...
398 # ------------------
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403 eval 'as_fn_arith ()
404 {
405 as_val=$(( $* ))
406 }'
407 else
408 as_fn_arith ()
409 {
410 as_val=`expr "$@" || test $? -eq 1`
411 }
412 fi # as_fn_arith
413
414
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
420 as_fn_error ()
421 {
422 as_status=$1; test $as_status -eq 0 && as_status=1
423 if test "$4"; then
424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 fi
427 $as_echo "$as_me: error: $2" >&2
428 as_fn_exit $as_status
429 } # as_fn_error
430
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432 test "X`expr 00001 : '.*\(...\)'`" = X001; then
433 as_expr=expr
434 else
435 as_expr=false
436 fi
437
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439 as_basename=basename
440 else
441 as_basename=false
442 fi
443
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445 as_dirname=dirname
446 else
447 as_dirname=false
448 fi
449
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452 X"$0" : 'X\(//\)$' \| \
453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 $as_echo X/"$0" |
455 sed '/^.*\/\([^/][^/]*\)\/*$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\/\)$/{
460 s//\1/
461 q
462 }
463 /^X\/\(\/\).*/{
464 s//\1/
465 q
466 }
467 s/.*/./; q'`
468
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477 as_lineno_1=$LINENO as_lineno_1a=$LINENO
478 as_lineno_2=$LINENO as_lineno_2a=$LINENO
479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
482 sed -n '
483 p
484 /[$]LINENO/=
485 ' <$as_myself |
486 sed '
487 s/[$]LINENO.*/&-/
488 t lineno
489 b
490 :lineno
491 N
492 :loop
493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494 t loop
495 s/-\n.*//
496 ' >$as_me.lineno &&
497 chmod +x "$as_me.lineno" ||
498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501 # already done that, so ensure we don't try to do so again and fall
502 # in an infinite loop. This has already happened in practice.
503 _as_can_reexec=no; export _as_can_reexec
504 # Don't try to exec as it changes $[0], causing all sort of problems
505 # (the dirname of $[0] is not the place where we might find the
506 # original and so on. Autoconf is especially sensitive to this).
507 . "./$as_me.lineno"
508 # Exit status is that of the last command.
509 exit
510 }
511
512 ECHO_C= ECHO_N= ECHO_T=
513 case `echo -n x` in #(((((
514 -n*)
515 case `echo 'xy\c'` in
516 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 xy) ECHO_C='\c';;
518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
519 ECHO_T=' ';;
520 esac;;
521 *)
522 ECHO_N='-n';;
523 esac
524
525 rm -f conf$$ conf$$.exe conf$$.file
526 if test -d conf$$.dir; then
527 rm -f conf$$.dir/conf$$.file
528 else
529 rm -f conf$$.dir
530 mkdir conf$$.dir 2>/dev/null
531 fi
532 if (echo >conf$$.file) 2>/dev/null; then
533 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 as_ln_s='ln -s'
535 # ... but there are two gotchas:
536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538 # In both cases, we have to default to `cp -pR'.
539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 as_ln_s='cp -pR'
541 elif ln conf$$.file conf$$ 2>/dev/null; then
542 as_ln_s=ln
543 else
544 as_ln_s='cp -pR'
545 fi
546 else
547 as_ln_s='cp -pR'
548 fi
549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550 rmdir conf$$.dir 2>/dev/null
551
552 if mkdir -p . 2>/dev/null; then
553 as_mkdir_p='mkdir -p "$as_dir"'
554 else
555 test -d ./-p && rmdir ./-p
556 as_mkdir_p=false
557 fi
558
559 as_test_x='test -x'
560 as_executable_p=as_fn_executable_p
561
562 # Sed expression to map a string onto a valid CPP name.
563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565 # Sed expression to map a string onto a valid variable name.
566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568 SHELL=${CONFIG_SHELL-/bin/sh}
569
570 as_awk_strverscmp='
571 # Use only awk features that work with 7th edition Unix awk (1978).
572 # My, what an old awk you have, Mr. Solaris!
573 END {
574 while (length(v1) && length(v2)) {
575 # Set d1 to be the next thing to compare from v1, and likewise for d2.
576 # Normally this is a single character, but if v1 and v2 contain digits,
577 # compare them as integers and fractions as strverscmp does.
578 if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) {
579 # Split v1 and v2 into their leading digit string components d1 and d2,
580 # and advance v1 and v2 past the leading digit strings.
581 for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue
582 for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue
583 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
584 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
585 if (d1 ~ /^0/) {
586 if (d2 ~ /^0/) {
587 # Compare two fractions.
588 while (d1 ~ /^0/ && d2 ~ /^0/) {
589 d1 = substr(d1, 2); len1--
590 d2 = substr(d2, 2); len2--
591 }
592 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
593 # The two components differ in length, and the common prefix
594 # contains only leading zeros. Consider the longer to be less.
595 d1 = -len1
596 d2 = -len2
597 } else {
598 # Otherwise, compare as strings.
599 d1 = "x" d1
600 d2 = "x" d2
601 }
602 } else {
603 # A fraction is less than an integer.
604 exit 1
605 }
606 } else {
607 if (d2 ~ /^0/) {
608 # An integer is greater than a fraction.
609 exit 2
610 } else {
611 # Compare two integers.
612 d1 += 0
613 d2 += 0
614 }
615 }
616 } else {
617 # The normal case, without worrying about digits.
618 d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
619 d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
620 }
621 if (d1 < d2) exit 1
622 if (d1 > d2) exit 2
623 }
624 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
625 # which mishandles some comparisons of empty strings to integers.
626 if (length(v2)) exit 1
627 if (length(v1)) exit 2
628 }
629 '
630
631 test -n "$DJDIR" || exec 7<&0 </dev/null
632 exec 6>&1
633
634 # Name of the host.
635 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
636 # so uname gets run too.
637 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
638
639 #
640 # Initializations.
641 #
642 ac_default_prefix=/usr/local
643 ac_clean_files=
644 ac_config_libobj_dir=.
645 LIBOBJS=
646 cross_compiling=no
647 subdirs=
648 MFLAGS=
649 MAKEFLAGS=
650
651 # Identity of this package.
652 PACKAGE_NAME='libICE'
653 PACKAGE_TARNAME='libICE'
654 PACKAGE_VERSION='1.0.10'
655 PACKAGE_STRING='libICE 1.0.10'
656 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libICE/issues'
657 PACKAGE_URL=''
658
659 ac_unique_file="Makefile.am"
660 # Factoring default headers for most tests.
661 ac_includes_default="\
662 #include <stdio.h>
663 #ifdef HAVE_SYS_TYPES_H
664 # include <sys/types.h>
665 #endif
666 #ifdef HAVE_SYS_STAT_H
667 # include <sys/stat.h>
668 #endif
669 #ifdef STDC_HEADERS
670 # include <stdlib.h>
671 # include <stddef.h>
672 #else
673 # ifdef HAVE_STDLIB_H
674 # include <stdlib.h>
675 # endif
676 #endif
677 #ifdef HAVE_STRING_H
678 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
679 # include <memory.h>
680 # endif
681 # include <string.h>
682 #endif
683 #ifdef HAVE_STRINGS_H
684 # include <strings.h>
685 #endif
686 #ifdef HAVE_INTTYPES_H
687 # include <inttypes.h>
688 #endif
689 #ifdef HAVE_STDINT_H
690 # include <stdint.h>
691 #endif
692 #ifdef HAVE_UNISTD_H
693 # include <unistd.h>
694 #endif"
695
696 ac_subst_vars='am__EXEEXT_FALSE
697 am__EXEEXT_TRUE
698 LTLIBOBJS
699 LIBOBJS
700 MAKE_LINT_LIB_FALSE
701 MAKE_LINT_LIB_TRUE
702 LINTLIB
703 LINT_FALSE
704 LINT_TRUE
705 LINT_FLAGS
706 LINT
707 ICE_LIBS
708 ICE_CFLAGS
709 HAVE_STYLESHEETS_FALSE
710 HAVE_STYLESHEETS_TRUE
711 XSL_STYLESHEET
712 STYLESHEET_SRCDIR
713 XORG_SGML_PATH
714 HAVE_XSLTPROC_FALSE
715 HAVE_XSLTPROC_TRUE
716 XSLTPROC
717 HAVE_FOP_FALSE
718 HAVE_FOP_TRUE
719 FOP
720 HAVE_XMLTO_FALSE
721 HAVE_XMLTO_TRUE
722 HAVE_XMLTO_TEXT_FALSE
723 HAVE_XMLTO_TEXT_TRUE
724 XMLTO
725 ENABLE_SPECS_FALSE
726 ENABLE_SPECS_TRUE
727 ENABLE_DOCS_FALSE
728 ENABLE_DOCS_TRUE
729 MAN_SUBSTS
730 XORG_MAN_PAGE
731 ADMIN_MAN_DIR
732 DRIVER_MAN_DIR
733 MISC_MAN_DIR
734 FILE_MAN_DIR
735 LIB_MAN_DIR
736 APP_MAN_DIR
737 ADMIN_MAN_SUFFIX
738 DRIVER_MAN_SUFFIX
739 MISC_MAN_SUFFIX
740 FILE_MAN_SUFFIX
741 LIB_MAN_SUFFIX
742 APP_MAN_SUFFIX
743 INSTALL_CMD
744 PKG_CONFIG_LIBDIR
745 PKG_CONFIG_PATH
746 PKG_CONFIG
747 CHANGELOG_CMD
748 STRICT_CFLAGS
749 CWARNFLAGS
750 BASE_CFLAGS
751 LT_SYS_LIBRARY_PATH
752 OTOOL64
753 OTOOL
754 LIPO
755 NMEDIT
756 DSYMUTIL
757 MANIFEST_TOOL
758 RANLIB
759 ac_ct_AR
760 AR
761 DLLTOOL
762 OBJDUMP
763 LN_S
764 NM
765 ac_ct_DUMPBIN
766 DUMPBIN
767 LD
768 FGREP
769 SED
770 host_os
771 host_vendor
772 host_cpu
773 host
774 build_os
775 build_vendor
776 build_cpu
777 build
778 LIBTOOL
779 AM_BACKSLASH
780 AM_DEFAULT_VERBOSITY
781 AM_DEFAULT_V
782 AM_V
783 am__fastdepCC_FALSE
784 am__fastdepCC_TRUE
785 CCDEPMODE
786 am__nodep
787 AMDEPBACKSLASH
788 AMDEP_FALSE
789 AMDEP_TRUE
790 am__quote
791 am__include
792 DEPDIR
793 am__untar
794 am__tar
795 AMTAR
796 am__leading_dot
797 SET_MAKE
798 AWK
799 mkdir_p
800 MKDIR_P
801 INSTALL_STRIP_PROGRAM
802 STRIP
803 install_sh
804 MAKEINFO
805 AUTOHEADER
806 AUTOMAKE
807 AUTOCONF
808 ACLOCAL
809 VERSION
810 PACKAGE
811 CYGPATH_W
812 am__isrc
813 INSTALL_DATA
814 INSTALL_SCRIPT
815 INSTALL_PROGRAM
816 EGREP
817 GREP
818 CPP
819 OBJEXT
820 EXEEXT
821 ac_ct_CC
822 CPPFLAGS
823 LDFLAGS
824 CFLAGS
825 CC
826 target_alias
827 host_alias
828 build_alias
829 LIBS
830 ECHO_T
831 ECHO_N
832 ECHO_C
833 DEFS
834 mandir
835 localedir
836 libdir
837 psdir
838 pdfdir
839 dvidir
840 htmldir
841 infodir
842 docdir
843 oldincludedir
844 includedir
845 localstatedir
846 sharedstatedir
847 sysconfdir
848 datadir
849 datarootdir
850 libexecdir
851 sbindir
852 bindir
853 program_transform_name
854 prefix
855 exec_prefix
856 PACKAGE_URL
857 PACKAGE_BUGREPORT
858 PACKAGE_STRING
859 PACKAGE_VERSION
860 PACKAGE_TARNAME
861 PACKAGE_NAME
862 PATH_SEPARATOR
863 SHELL'
864 ac_subst_files=''
865 ac_user_opts='
866 enable_option_checking
867 enable_dependency_tracking
868 enable_silent_rules
869 enable_shared
870 enable_static
871 with_pic
872 enable_fast_install
873 with_aix_soname
874 with_gnu_ld
875 with_sysroot
876 enable_libtool_lock
877 enable_selective_werror
878 enable_strict_compilation
879 enable_docs
880 enable_specs
881 with_xmlto
882 with_fop
883 with_xsltproc
884 enable_unix_transport
885 enable_tcp_transport
886 enable_ipv6
887 enable_local_transport
888 with_lint
889 enable_lint_library
890 '
891 ac_precious_vars='build_alias
892 host_alias
893 target_alias
894 CC
895 CFLAGS
896 LDFLAGS
897 LIBS
898 CPPFLAGS
899 CPP
900 LT_SYS_LIBRARY_PATH
901 PKG_CONFIG
902 PKG_CONFIG_PATH
903 PKG_CONFIG_LIBDIR
904 XMLTO
905 FOP
906 XSLTPROC
907 ICE_CFLAGS
908 ICE_LIBS
909 LINT
910 LINT_FLAGS'
911
912
913 # Initialize some variables set by options.
914 ac_init_help=
915 ac_init_version=false
916 ac_unrecognized_opts=
917 ac_unrecognized_sep=
918 # The variables have the same names as the options, with
919 # dashes changed to underlines.
920 cache_file=/dev/null
921 exec_prefix=NONE
922 no_create=
923 no_recursion=
924 prefix=NONE
925 program_prefix=NONE
926 program_suffix=NONE
927 program_transform_name=s,x,x,
928 silent=
929 site=
930 srcdir=
931 verbose=
932 x_includes=NONE
933 x_libraries=NONE
934
935 # Installation directory options.
936 # These are left unexpanded so users can "make install exec_prefix=/foo"
937 # and all the variables that are supposed to be based on exec_prefix
938 # by default will actually change.
939 # Use braces instead of parens because sh, perl, etc. also accept them.
940 # (The list follows the same order as the GNU Coding Standards.)
941 bindir='${exec_prefix}/bin'
942 sbindir='${exec_prefix}/sbin'
943 libexecdir='${exec_prefix}/libexec'
944 datarootdir='${prefix}/share'
945 datadir='${datarootdir}'
946 sysconfdir='${prefix}/etc'
947 sharedstatedir='${prefix}/com'
948 localstatedir='${prefix}/var'
949 includedir='${prefix}/include'
950 oldincludedir='/usr/include'
951 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
952 infodir='${datarootdir}/info'
953 htmldir='${docdir}'
954 dvidir='${docdir}'
955 pdfdir='${docdir}'
956 psdir='${docdir}'
957 libdir='${exec_prefix}/lib'
958 localedir='${datarootdir}/locale'
959 mandir='${datarootdir}/man'
960
961 ac_prev=
962 ac_dashdash=
963 for ac_option
964 do
965 # If the previous option needs an argument, assign it.
966 if test -n "$ac_prev"; then
967 eval $ac_prev=\$ac_option
968 ac_prev=
969 continue
970 fi
971
972 case $ac_option in
973 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
974 *=) ac_optarg= ;;
975 *) ac_optarg=yes ;;
976 esac
977
978 # Accept the important Cygnus configure options, so we can diagnose typos.
979
980 case $ac_dashdash$ac_option in
981 --)
982 ac_dashdash=yes ;;
983
984 -bindir | --bindir | --bindi | --bind | --bin | --bi)
985 ac_prev=bindir ;;
986 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
987 bindir=$ac_optarg ;;
988
989 -build | --build | --buil | --bui | --bu)
990 ac_prev=build_alias ;;
991 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
992 build_alias=$ac_optarg ;;
993
994 -cache-file | --cache-file | --cache-fil | --cache-fi \
995 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
996 ac_prev=cache_file ;;
997 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
998 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
999 cache_file=$ac_optarg ;;
1000
1001 --config-cache | -C)
1002 cache_file=config.cache ;;
1003
1004 -datadir | --datadir | --datadi | --datad)
1005 ac_prev=datadir ;;
1006 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1007 datadir=$ac_optarg ;;
1008
1009 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1010 | --dataroo | --dataro | --datar)
1011 ac_prev=datarootdir ;;
1012 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1013 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1014 datarootdir=$ac_optarg ;;
1015
1016 -disable-* | --disable-*)
1017 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1018 # Reject names that are not valid shell variable names.
1019 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1020 as_fn_error $? "invalid feature name: $ac_useropt"
1021 ac_useropt_orig=$ac_useropt
1022 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1023 case $ac_user_opts in
1024 *"
1025 "enable_$ac_useropt"
1026 "*) ;;
1027 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1028 ac_unrecognized_sep=', ';;
1029 esac
1030 eval enable_$ac_useropt=no ;;
1031
1032 -docdir | --docdir | --docdi | --doc | --do)
1033 ac_prev=docdir ;;
1034 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1035 docdir=$ac_optarg ;;
1036
1037 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1038 ac_prev=dvidir ;;
1039 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1040 dvidir=$ac_optarg ;;
1041
1042 -enable-* | --enable-*)
1043 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1044 # Reject names that are not valid shell variable names.
1045 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1046 as_fn_error $? "invalid feature name: $ac_useropt"
1047 ac_useropt_orig=$ac_useropt
1048 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1049 case $ac_user_opts in
1050 *"
1051 "enable_$ac_useropt"
1052 "*) ;;
1053 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1054 ac_unrecognized_sep=', ';;
1055 esac
1056 eval enable_$ac_useropt=\$ac_optarg ;;
1057
1058 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1059 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1060 | --exec | --exe | --ex)
1061 ac_prev=exec_prefix ;;
1062 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1063 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1064 | --exec=* | --exe=* | --ex=*)
1065 exec_prefix=$ac_optarg ;;
1066
1067 -gas | --gas | --ga | --g)
1068 # Obsolete; use --with-gas.
1069 with_gas=yes ;;
1070
1071 -help | --help | --hel | --he | -h)
1072 ac_init_help=long ;;
1073 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1074 ac_init_help=recursive ;;
1075 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1076 ac_init_help=short ;;
1077
1078 -host | --host | --hos | --ho)
1079 ac_prev=host_alias ;;
1080 -host=* | --host=* | --hos=* | --ho=*)
1081 host_alias=$ac_optarg ;;
1082
1083 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1084 ac_prev=htmldir ;;
1085 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1086 | --ht=*)
1087 htmldir=$ac_optarg ;;
1088
1089 -includedir | --includedir | --includedi | --included | --include \
1090 | --includ | --inclu | --incl | --inc)
1091 ac_prev=includedir ;;
1092 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1093 | --includ=* | --inclu=* | --incl=* | --inc=*)
1094 includedir=$ac_optarg ;;
1095
1096 -infodir | --infodir | --infodi | --infod | --info | --inf)
1097 ac_prev=infodir ;;
1098 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1099 infodir=$ac_optarg ;;
1100
1101 -libdir | --libdir | --libdi | --libd)
1102 ac_prev=libdir ;;
1103 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1104 libdir=$ac_optarg ;;
1105
1106 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1107 | --libexe | --libex | --libe)
1108 ac_prev=libexecdir ;;
1109 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1110 | --libexe=* | --libex=* | --libe=*)
1111 libexecdir=$ac_optarg ;;
1112
1113 -localedir | --localedir | --localedi | --localed | --locale)
1114 ac_prev=localedir ;;
1115 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1116 localedir=$ac_optarg ;;
1117
1118 -localstatedir | --localstatedir | --localstatedi | --localstated \
1119 | --localstate | --localstat | --localsta | --localst | --locals)
1120 ac_prev=localstatedir ;;
1121 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1122 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1123 localstatedir=$ac_optarg ;;
1124
1125 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1126 ac_prev=mandir ;;
1127 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1128 mandir=$ac_optarg ;;
1129
1130 -nfp | --nfp | --nf)
1131 # Obsolete; use --without-fp.
1132 with_fp=no ;;
1133
1134 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1135 | --no-cr | --no-c | -n)
1136 no_create=yes ;;
1137
1138 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1139 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1140 no_recursion=yes ;;
1141
1142 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1143 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1144 | --oldin | --oldi | --old | --ol | --o)
1145 ac_prev=oldincludedir ;;
1146 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1147 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1148 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1149 oldincludedir=$ac_optarg ;;
1150
1151 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1152 ac_prev=prefix ;;
1153 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1154 prefix=$ac_optarg ;;
1155
1156 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1157 | --program-pre | --program-pr | --program-p)
1158 ac_prev=program_prefix ;;
1159 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1160 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1161 program_prefix=$ac_optarg ;;
1162
1163 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1164 | --program-suf | --program-su | --program-s)
1165 ac_prev=program_suffix ;;
1166 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1167 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1168 program_suffix=$ac_optarg ;;
1169
1170 -program-transform-name | --program-transform-name \
1171 | --program-transform-nam | --program-transform-na \
1172 | --program-transform-n | --program-transform- \
1173 | --program-transform | --program-transfor \
1174 | --program-transfo | --program-transf \
1175 | --program-trans | --program-tran \
1176 | --progr-tra | --program-tr | --program-t)
1177 ac_prev=program_transform_name ;;
1178 -program-transform-name=* | --program-transform-name=* \
1179 | --program-transform-nam=* | --program-transform-na=* \
1180 | --program-transform-n=* | --program-transform-=* \
1181 | --program-transform=* | --program-transfor=* \
1182 | --program-transfo=* | --program-transf=* \
1183 | --program-trans=* | --program-tran=* \
1184 | --progr-tra=* | --program-tr=* | --program-t=*)
1185 program_transform_name=$ac_optarg ;;
1186
1187 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1188 ac_prev=pdfdir ;;
1189 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1190 pdfdir=$ac_optarg ;;
1191
1192 -psdir | --psdir | --psdi | --psd | --ps)
1193 ac_prev=psdir ;;
1194 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1195 psdir=$ac_optarg ;;
1196
1197 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1198 | -silent | --silent | --silen | --sile | --sil)
1199 silent=yes ;;
1200
1201 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1202 ac_prev=sbindir ;;
1203 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1204 | --sbi=* | --sb=*)
1205 sbindir=$ac_optarg ;;
1206
1207 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1208 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1209 | --sharedst | --shareds | --shared | --share | --shar \
1210 | --sha | --sh)
1211 ac_prev=sharedstatedir ;;
1212 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1213 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1214 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1215 | --sha=* | --sh=*)
1216 sharedstatedir=$ac_optarg ;;
1217
1218 -site | --site | --sit)
1219 ac_prev=site ;;
1220 -site=* | --site=* | --sit=*)
1221 site=$ac_optarg ;;
1222
1223 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1224 ac_prev=srcdir ;;
1225 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1226 srcdir=$ac_optarg ;;
1227
1228 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1229 | --syscon | --sysco | --sysc | --sys | --sy)
1230 ac_prev=sysconfdir ;;
1231 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1232 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1233 sysconfdir=$ac_optarg ;;
1234
1235 -target | --target | --targe | --targ | --tar | --ta | --t)
1236 ac_prev=target_alias ;;
1237 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1238 target_alias=$ac_optarg ;;
1239
1240 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1241 verbose=yes ;;
1242
1243 -version | --version | --versio | --versi | --vers | -V)
1244 ac_init_version=: ;;
1245
1246 -with-* | --with-*)
1247 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1248 # Reject names that are not valid shell variable names.
1249 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1250 as_fn_error $? "invalid package name: $ac_useropt"
1251 ac_useropt_orig=$ac_useropt
1252 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1253 case $ac_user_opts in
1254 *"
1255 "with_$ac_useropt"
1256 "*) ;;
1257 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1258 ac_unrecognized_sep=', ';;
1259 esac
1260 eval with_$ac_useropt=\$ac_optarg ;;
1261
1262 -without-* | --without-*)
1263 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1264 # Reject names that are not valid shell variable names.
1265 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1266 as_fn_error $? "invalid package name: $ac_useropt"
1267 ac_useropt_orig=$ac_useropt
1268 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1269 case $ac_user_opts in
1270 *"
1271 "with_$ac_useropt"
1272 "*) ;;
1273 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1274 ac_unrecognized_sep=', ';;
1275 esac
1276 eval with_$ac_useropt=no ;;
1277
1278 --x)
1279 # Obsolete; use --with-x.
1280 with_x=yes ;;
1281
1282 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1283 | --x-incl | --x-inc | --x-in | --x-i)
1284 ac_prev=x_includes ;;
1285 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1286 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1287 x_includes=$ac_optarg ;;
1288
1289 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1290 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1291 ac_prev=x_libraries ;;
1292 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1293 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1294 x_libraries=$ac_optarg ;;
1295
1296 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1297 Try \`$0 --help' for more information"
1298 ;;
1299
1300 *=*)
1301 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1302 # Reject names that are not valid shell variable names.
1303 case $ac_envvar in #(
1304 '' | [0-9]* | *[!_$as_cr_alnum]* )
1305 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1306 esac
1307 eval $ac_envvar=\$ac_optarg
1308 export $ac_envvar ;;
1309
1310 *)
1311 # FIXME: should be removed in autoconf 3.0.
1312 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1313 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1314 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1315 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1316 ;;
1317
1318 esac
1319 done
1320
1321 if test -n "$ac_prev"; then
1322 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1323 as_fn_error $? "missing argument to $ac_option"
1324 fi
1325
1326 if test -n "$ac_unrecognized_opts"; then
1327 case $enable_option_checking in
1328 no) ;;
1329 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1330 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1331 esac
1332 fi
1333
1334 # Check all directory arguments for consistency.
1335 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1336 datadir sysconfdir sharedstatedir localstatedir includedir \
1337 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1338 libdir localedir mandir
1339 do
1340 eval ac_val=\$$ac_var
1341 # Remove trailing slashes.
1342 case $ac_val in
1343 */ )
1344 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1345 eval $ac_var=\$ac_val;;
1346 esac
1347 # Be sure to have absolute directory names.
1348 case $ac_val in
1349 [\\/$]* | ?:[\\/]* ) continue;;
1350 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1351 esac
1352 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1353 done
1354
1355 # There might be people who depend on the old broken behavior: `$host'
1356 # used to hold the argument of --host etc.
1357 # FIXME: To remove some day.
1358 build=$build_alias
1359 host=$host_alias
1360 target=$target_alias
1361
1362 # FIXME: To remove some day.
1363 if test "x$host_alias" != x; then
1364 if test "x$build_alias" = x; then
1365 cross_compiling=maybe
1366 elif test "x$build_alias" != "x$host_alias"; then
1367 cross_compiling=yes
1368 fi
1369 fi
1370
1371 ac_tool_prefix=
1372 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1373
1374 test "$silent" = yes && exec 6>/dev/null
1375
1376
1377 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1378 ac_ls_di=`ls -di .` &&
1379 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1380 as_fn_error $? "working directory cannot be determined"
1381 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1382 as_fn_error $? "pwd does not report name of working directory"
1383
1384
1385 # Find the source files, if location was not specified.
1386 if test -z "$srcdir"; then
1387 ac_srcdir_defaulted=yes
1388 # Try the directory containing this script, then the parent directory.
1389 ac_confdir=`$as_dirname -- "$as_myself" ||
1390 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1391 X"$as_myself" : 'X\(//\)[^/]' \| \
1392 X"$as_myself" : 'X\(//\)$' \| \
1393 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1394 $as_echo X"$as_myself" |
1395 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1396 s//\1/
1397 q
1398 }
1399 /^X\(\/\/\)[^/].*/{
1400 s//\1/
1401 q
1402 }
1403 /^X\(\/\/\)$/{
1404 s//\1/
1405 q
1406 }
1407 /^X\(\/\).*/{
1408 s//\1/
1409 q
1410 }
1411 s/.*/./; q'`
1412 srcdir=$ac_confdir
1413 if test ! -r "$srcdir/$ac_unique_file"; then
1414 srcdir=..
1415 fi
1416 else
1417 ac_srcdir_defaulted=no
1418 fi
1419 if test ! -r "$srcdir/$ac_unique_file"; then
1420 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1421 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1422 fi
1423 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1424 ac_abs_confdir=`(
1425 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1426 pwd)`
1427 # When building in place, set srcdir=.
1428 if test "$ac_abs_confdir" = "$ac_pwd"; then
1429 srcdir=.
1430 fi
1431 # Remove unnecessary trailing slashes from srcdir.
1432 # Double slashes in file names in object file debugging info
1433 # mess up M-x gdb in Emacs.
1434 case $srcdir in
1435 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1436 esac
1437 for ac_var in $ac_precious_vars; do
1438 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1439 eval ac_env_${ac_var}_value=\$${ac_var}
1440 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1441 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1442 done
1443
1444 #
1445 # Report the --help message.
1446 #
1447 if test "$ac_init_help" = "long"; then
1448 # Omit some internal or obsolete options to make the list less imposing.
1449 # This message is too long to be a string in the A/UX 3.1 sh.
1450 cat <<_ACEOF
1451 \`configure' configures libICE 1.0.10 to adapt to many kinds of systems.
1452
1453 Usage: $0 [OPTION]... [VAR=VALUE]...
1454
1455 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1456 VAR=VALUE. See below for descriptions of some of the useful variables.
1457
1458 Defaults for the options are specified in brackets.
1459
1460 Configuration:
1461 -h, --help display this help and exit
1462 --help=short display options specific to this package
1463 --help=recursive display the short help of all the included packages
1464 -V, --version display version information and exit
1465 -q, --quiet, --silent do not print \`checking ...' messages
1466 --cache-file=FILE cache test results in FILE [disabled]
1467 -C, --config-cache alias for \`--cache-file=config.cache'
1468 -n, --no-create do not create output files
1469 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1470
1471 Installation directories:
1472 --prefix=PREFIX install architecture-independent files in PREFIX
1473 [$ac_default_prefix]
1474 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1475 [PREFIX]
1476
1477 By default, \`make install' will install all the files in
1478 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1479 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1480 for instance \`--prefix=\$HOME'.
1481
1482 For better control, use the options below.
1483
1484 Fine tuning of the installation directories:
1485 --bindir=DIR user executables [EPREFIX/bin]
1486 --sbindir=DIR system admin executables [EPREFIX/sbin]
1487 --libexecdir=DIR program executables [EPREFIX/libexec]
1488 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1489 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1490 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1491 --libdir=DIR object code libraries [EPREFIX/lib]
1492 --includedir=DIR C header files [PREFIX/include]
1493 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1494 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1495 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1496 --infodir=DIR info documentation [DATAROOTDIR/info]
1497 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1498 --mandir=DIR man documentation [DATAROOTDIR/man]
1499 --docdir=DIR documentation root [DATAROOTDIR/doc/libICE]
1500 --htmldir=DIR html documentation [DOCDIR]
1501 --dvidir=DIR dvi documentation [DOCDIR]
1502 --pdfdir=DIR pdf documentation [DOCDIR]
1503 --psdir=DIR ps documentation [DOCDIR]
1504 _ACEOF
1505
1506 cat <<\_ACEOF
1507
1508 Program names:
1509 --program-prefix=PREFIX prepend PREFIX to installed program names
1510 --program-suffix=SUFFIX append SUFFIX to installed program names
1511 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1512
1513 System types:
1514 --build=BUILD configure for building on BUILD [guessed]
1515 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1516 _ACEOF
1517 fi
1518
1519 if test -n "$ac_init_help"; then
1520 case $ac_init_help in
1521 short | recursive ) echo "Configuration of libICE 1.0.10:";;
1522 esac
1523 cat <<\_ACEOF
1524
1525 Optional Features:
1526 --disable-option-checking ignore unrecognized --enable/--with options
1527 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1528 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1529 --enable-dependency-tracking
1530 do not reject slow dependency extractors
1531 --disable-dependency-tracking
1532 speeds up one-time build
1533 --enable-silent-rules less verbose build output (undo: "make V=1")
1534 --disable-silent-rules verbose build output (undo: "make V=0")
1535 --enable-shared[=PKGS] build shared libraries [default=yes]
1536 --enable-static[=PKGS] build static libraries [default=yes]
1537 --enable-fast-install[=PKGS]
1538 optimize for fast installation [default=yes]
1539 --disable-libtool-lock avoid locking (might break parallel builds)
1540 --disable-selective-werror
1541 Turn off selective compiler errors. (default:
1542 enabled)
1543 --enable-strict-compilation
1544 Enable all warnings from compiler and make them
1545 errors (default: disabled)
1546 --enable-docs Enable building the documentation (default: yes)
1547 --enable-specs Enable building the specs (default: yes)
1548 --enable-unix-transport Enable UNIX domain socket transport
1549 --enable-tcp-transport Enable TCP socket transport
1550 --enable-ipv6 Enable IPv6 support
1551 --enable-local-transport
1552 Enable os-specific local transport
1553 --enable-lint-library Create lint library (default: disabled)
1554
1555 Optional Packages:
1556 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1557 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1558 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1559 both]
1560 --with-aix-soname=aix|svr4|both
1561 shared library versioning (aka "SONAME") variant to
1562 provide on AIX, [default=aix].
1563 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1564 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1565 compiler's sysroot if not specified).
1566 --with-xmlto Use xmlto to regenerate documentation (default:
1567 auto)
1568 --with-fop Use fop to regenerate documentation (default: auto)
1569 --with-xsltproc Use xsltproc for the transformation of XML documents
1570 (default: auto)
1571 --with-lint Use a lint-style source code checker (default:
1572 disabled)
1573
1574 Some influential environment variables:
1575 CC C compiler command
1576 CFLAGS C compiler flags
1577 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1578 nonstandard directory <lib dir>
1579 LIBS libraries to pass to the linker, e.g. -l<library>
1580 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1581 you have headers in a nonstandard directory <include dir>
1582 CPP C preprocessor
1583 LT_SYS_LIBRARY_PATH
1584 User-defined run-time library search path.
1585 PKG_CONFIG path to pkg-config utility
1586 PKG_CONFIG_PATH
1587 directories to add to pkg-config's search path
1588 PKG_CONFIG_LIBDIR
1589 path overriding pkg-config's built-in search path
1590 XMLTO Path to xmlto command
1591 FOP Path to fop command
1592 XSLTPROC Path to xsltproc command
1593 ICE_CFLAGS C compiler flags for ICE, overriding pkg-config
1594 ICE_LIBS linker flags for ICE, overriding pkg-config
1595 LINT Path to a lint-style command
1596 LINT_FLAGS Flags for the lint-style command
1597
1598 Use these variables to override the choices made by `configure' or to help
1599 it to find libraries and programs with nonstandard names/locations.
1600
1601 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libICE/issues>.
1602 _ACEOF
1603 ac_status=$?
1604 fi
1605
1606 if test "$ac_init_help" = "recursive"; then
1607 # If there are subdirs, report their specific --help.
1608 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1609 test -d "$ac_dir" ||
1610 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1611 continue
1612 ac_builddir=.
1613
1614 case "$ac_dir" in
1615 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1616 *)
1617 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1618 # A ".." for each directory in $ac_dir_suffix.
1619 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1620 case $ac_top_builddir_sub in
1621 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1622 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1623 esac ;;
1624 esac
1625 ac_abs_top_builddir=$ac_pwd
1626 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1627 # for backward compatibility:
1628 ac_top_builddir=$ac_top_build_prefix
1629
1630 case $srcdir in
1631 .) # We are building in place.
1632 ac_srcdir=.
1633 ac_top_srcdir=$ac_top_builddir_sub
1634 ac_abs_top_srcdir=$ac_pwd ;;
1635 [\\/]* | ?:[\\/]* ) # Absolute name.
1636 ac_srcdir=$srcdir$ac_dir_suffix;
1637 ac_top_srcdir=$srcdir
1638 ac_abs_top_srcdir=$srcdir ;;
1639 *) # Relative name.
1640 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1641 ac_top_srcdir=$ac_top_build_prefix$srcdir
1642 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1643 esac
1644 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1645
1646 cd "$ac_dir" || { ac_status=$?; continue; }
1647 # Check for guested configure.
1648 if test -f "$ac_srcdir/configure.gnu"; then
1649 echo &&
1650 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1651 elif test -f "$ac_srcdir/configure"; then
1652 echo &&
1653 $SHELL "$ac_srcdir/configure" --help=recursive
1654 else
1655 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1656 fi || ac_status=$?
1657 cd "$ac_pwd" || { ac_status=$?; break; }
1658 done
1659 fi
1660
1661 test -n "$ac_init_help" && exit $ac_status
1662 if $ac_init_version; then
1663 cat <<\_ACEOF
1664 libICE configure 1.0.10
1665 generated by GNU Autoconf 2.69
1666
1667 Copyright (C) 2012 Free Software Foundation, Inc.
1668 This configure script is free software; the Free Software Foundation
1669 gives unlimited permission to copy, distribute and modify it.
1670 _ACEOF
1671 exit
1672 fi
1673
1674 ## ------------------------ ##
1675 ## Autoconf initialization. ##
1676 ## ------------------------ ##
1677
1678 # ac_fn_c_try_compile LINENO
1679 # --------------------------
1680 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1681 ac_fn_c_try_compile ()
1682 {
1683 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1684 rm -f conftest.$ac_objext
1685 if { { ac_try="$ac_compile"
1686 case "(($ac_try" in
1687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1688 *) ac_try_echo=$ac_try;;
1689 esac
1690 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1691 $as_echo "$ac_try_echo"; } >&5
1692 (eval "$ac_compile") 2>conftest.err
1693 ac_status=$?
1694 if test -s conftest.err; then
1695 grep -v '^ *+' conftest.err >conftest.er1
1696 cat conftest.er1 >&5
1697 mv -f conftest.er1 conftest.err
1698 fi
1699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1700 test $ac_status = 0; } && {
1701 test -z "$ac_c_werror_flag" ||
1702 test ! -s conftest.err
1703 } && test -s conftest.$ac_objext; then :
1704 ac_retval=0
1705 else
1706 $as_echo "$as_me: failed program was:" >&5
1707 sed 's/^/| /' conftest.$ac_ext >&5
1708
1709 ac_retval=1
1710 fi
1711 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1712 as_fn_set_status $ac_retval
1713
1714 } # ac_fn_c_try_compile
1715
1716 # ac_fn_c_try_cpp LINENO
1717 # ----------------------
1718 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1719 ac_fn_c_try_cpp ()
1720 {
1721 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1722 if { { ac_try="$ac_cpp conftest.$ac_ext"
1723 case "(($ac_try" in
1724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1725 *) ac_try_echo=$ac_try;;
1726 esac
1727 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1728 $as_echo "$ac_try_echo"; } >&5
1729 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1730 ac_status=$?
1731 if test -s conftest.err; then
1732 grep -v '^ *+' conftest.err >conftest.er1
1733 cat conftest.er1 >&5
1734 mv -f conftest.er1 conftest.err
1735 fi
1736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1737 test $ac_status = 0; } > conftest.i && {
1738 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1739 test ! -s conftest.err
1740 }; then :
1741 ac_retval=0
1742 else
1743 $as_echo "$as_me: failed program was:" >&5
1744 sed 's/^/| /' conftest.$ac_ext >&5
1745
1746 ac_retval=1
1747 fi
1748 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1749 as_fn_set_status $ac_retval
1750
1751 } # ac_fn_c_try_cpp
1752
1753 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1754 # -------------------------------------------------------
1755 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1756 # the include files in INCLUDES and setting the cache variable VAR
1757 # accordingly.
1758 ac_fn_c_check_header_mongrel ()
1759 {
1760 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1761 if eval \${$3+:} false; then :
1762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1763 $as_echo_n "checking for $2... " >&6; }
1764 if eval \${$3+:} false; then :
1765 $as_echo_n "(cached) " >&6
1766 fi
1767 eval ac_res=\$$3
1768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1769 $as_echo "$ac_res" >&6; }
1770 else
1771 # Is the header compilable?
1772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1773 $as_echo_n "checking $2 usability... " >&6; }
1774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1775 /* end confdefs.h. */
1776 $4
1777 #include <$2>
1778 _ACEOF
1779 if ac_fn_c_try_compile "$LINENO"; then :
1780 ac_header_compiler=yes
1781 else
1782 ac_header_compiler=no
1783 fi
1784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1786 $as_echo "$ac_header_compiler" >&6; }
1787
1788 # Is the header present?
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1790 $as_echo_n "checking $2 presence... " >&6; }
1791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1792 /* end confdefs.h. */
1793 #include <$2>
1794 _ACEOF
1795 if ac_fn_c_try_cpp "$LINENO"; then :
1796 ac_header_preproc=yes
1797 else
1798 ac_header_preproc=no
1799 fi
1800 rm -f conftest.err conftest.i conftest.$ac_ext
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1802 $as_echo "$ac_header_preproc" >&6; }
1803
1804 # So? What about this header?
1805 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1806 yes:no: )
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1808 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1810 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1811 ;;
1812 no:yes:* )
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1814 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1816 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1818 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1820 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1822 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1823 ( $as_echo "## -------------------------------------------------------------------- ##
1824 ## Report this to https://gitlab.freedesktop.org/xorg/lib/libICE/issues ##
1825 ## -------------------------------------------------------------------- ##"
1826 ) | sed "s/^/$as_me: WARNING: /" >&2
1827 ;;
1828 esac
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1830 $as_echo_n "checking for $2... " >&6; }
1831 if eval \${$3+:} false; then :
1832 $as_echo_n "(cached) " >&6
1833 else
1834 eval "$3=\$ac_header_compiler"
1835 fi
1836 eval ac_res=\$$3
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1838 $as_echo "$ac_res" >&6; }
1839 fi
1840 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1841
1842 } # ac_fn_c_check_header_mongrel
1843
1844 # ac_fn_c_try_run LINENO
1845 # ----------------------
1846 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1847 # that executables *can* be run.
1848 ac_fn_c_try_run ()
1849 {
1850 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1851 if { { ac_try="$ac_link"
1852 case "(($ac_try" in
1853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1854 *) ac_try_echo=$ac_try;;
1855 esac
1856 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1857 $as_echo "$ac_try_echo"; } >&5
1858 (eval "$ac_link") 2>&5
1859 ac_status=$?
1860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1861 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1862 { { case "(($ac_try" in
1863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1864 *) ac_try_echo=$ac_try;;
1865 esac
1866 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1867 $as_echo "$ac_try_echo"; } >&5
1868 (eval "$ac_try") 2>&5
1869 ac_status=$?
1870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1871 test $ac_status = 0; }; }; then :
1872 ac_retval=0
1873 else
1874 $as_echo "$as_me: program exited with status $ac_status" >&5
1875 $as_echo "$as_me: failed program was:" >&5
1876 sed 's/^/| /' conftest.$ac_ext >&5
1877
1878 ac_retval=$ac_status
1879 fi
1880 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1881 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1882 as_fn_set_status $ac_retval
1883
1884 } # ac_fn_c_try_run
1885
1886 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1887 # -------------------------------------------------------
1888 # Tests whether HEADER exists and can be compiled using the include files in
1889 # INCLUDES, setting the cache variable VAR accordingly.
1890 ac_fn_c_check_header_compile ()
1891 {
1892 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1894 $as_echo_n "checking for $2... " >&6; }
1895 if eval \${$3+:} false; then :
1896 $as_echo_n "(cached) " >&6
1897 else
1898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1899 /* end confdefs.h. */
1900 $4
1901 #include <$2>
1902 _ACEOF
1903 if ac_fn_c_try_compile "$LINENO"; then :
1904 eval "$3=yes"
1905 else
1906 eval "$3=no"
1907 fi
1908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1909 fi
1910 eval ac_res=\$$3
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1912 $as_echo "$ac_res" >&6; }
1913 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1914
1915 } # ac_fn_c_check_header_compile
1916
1917 # ac_fn_c_try_link LINENO
1918 # -----------------------
1919 # Try to link conftest.$ac_ext, and return whether this succeeded.
1920 ac_fn_c_try_link ()
1921 {
1922 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1923 rm -f conftest.$ac_objext conftest$ac_exeext
1924 if { { ac_try="$ac_link"
1925 case "(($ac_try" in
1926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1927 *) ac_try_echo=$ac_try;;
1928 esac
1929 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1930 $as_echo "$ac_try_echo"; } >&5
1931 (eval "$ac_link") 2>conftest.err
1932 ac_status=$?
1933 if test -s conftest.err; then
1934 grep -v '^ *+' conftest.err >conftest.er1
1935 cat conftest.er1 >&5
1936 mv -f conftest.er1 conftest.err
1937 fi
1938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1939 test $ac_status = 0; } && {
1940 test -z "$ac_c_werror_flag" ||
1941 test ! -s conftest.err
1942 } && test -s conftest$ac_exeext && {
1943 test "$cross_compiling" = yes ||
1944 test -x conftest$ac_exeext
1945 }; then :
1946 ac_retval=0
1947 else
1948 $as_echo "$as_me: failed program was:" >&5
1949 sed 's/^/| /' conftest.$ac_ext >&5
1950
1951 ac_retval=1
1952 fi
1953 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1954 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1955 # interfere with the next link command; also delete a directory that is
1956 # left behind by Apple's compiler. We do this before executing the actions.
1957 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1958 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1959 as_fn_set_status $ac_retval
1960
1961 } # ac_fn_c_try_link
1962
1963 # ac_fn_c_check_func LINENO FUNC VAR
1964 # ----------------------------------
1965 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1966 ac_fn_c_check_func ()
1967 {
1968 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1970 $as_echo_n "checking for $2... " >&6; }
1971 if eval \${$3+:} false; then :
1972 $as_echo_n "(cached) " >&6
1973 else
1974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1975 /* end confdefs.h. */
1976 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1977 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1978 #define $2 innocuous_$2
1979
1980 /* System header to define __stub macros and hopefully few prototypes,
1981 which can conflict with char $2 (); below.
1982 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1983 <limits.h> exists even on freestanding compilers. */
1984
1985 #ifdef __STDC__
1986 # include <limits.h>
1987 #else
1988 # include <assert.h>
1989 #endif
1990
1991 #undef $2
1992
1993 /* Override any GCC internal prototype to avoid an error.
1994 Use char because int might match the return type of a GCC
1995 builtin and then its argument prototype would still apply. */
1996 #ifdef __cplusplus
1997 extern "C"
1998 #endif
1999 char $2 ();
2000 /* The GNU C library defines this for functions which it implements
2001 to always fail with ENOSYS. Some functions are actually named
2002 something starting with __ and the normal name is an alias. */
2003 #if defined __stub_$2 || defined __stub___$2
2004 choke me
2005 #endif
2006
2007 int
2008 main ()
2009 {
2010 return $2 ();
2011 ;
2012 return 0;
2013 }
2014 _ACEOF
2015 if ac_fn_c_try_link "$LINENO"; then :
2016 eval "$3=yes"
2017 else
2018 eval "$3=no"
2019 fi
2020 rm -f core conftest.err conftest.$ac_objext \
2021 conftest$ac_exeext conftest.$ac_ext
2022 fi
2023 eval ac_res=\$$3
2024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2025 $as_echo "$ac_res" >&6; }
2026 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2027
2028 } # ac_fn_c_check_func
2029
2030 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2031 # ---------------------------------------------
2032 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2033 # accordingly.
2034 ac_fn_c_check_decl ()
2035 {
2036 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2037 as_decl_name=`echo $2|sed 's/ *(.*//'`
2038 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2040 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2041 if eval \${$3+:} false; then :
2042 $as_echo_n "(cached) " >&6
2043 else
2044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2045 /* end confdefs.h. */
2046 $4
2047 int
2048 main ()
2049 {
2050 #ifndef $as_decl_name
2051 #ifdef __cplusplus
2052 (void) $as_decl_use;
2053 #else
2054 (void) $as_decl_name;
2055 #endif
2056 #endif
2057
2058 ;
2059 return 0;
2060 }
2061 _ACEOF
2062 if ac_fn_c_try_compile "$LINENO"; then :
2063 eval "$3=yes"
2064 else
2065 eval "$3=no"
2066 fi
2067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2068 fi
2069 eval ac_res=\$$3
2070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2071 $as_echo "$ac_res" >&6; }
2072 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2073
2074 } # ac_fn_c_check_decl
2075
2076 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2077 # ----------------------------------------------------
2078 # Tries to find if the field MEMBER exists in type AGGR, after including
2079 # INCLUDES, setting cache variable VAR accordingly.
2080 ac_fn_c_check_member ()
2081 {
2082 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2084 $as_echo_n "checking for $2.$3... " >&6; }
2085 if eval \${$4+:} false; then :
2086 $as_echo_n "(cached) " >&6
2087 else
2088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2089 /* end confdefs.h. */
2090 $5
2091 int
2092 main ()
2093 {
2094 static $2 ac_aggr;
2095 if (ac_aggr.$3)
2096 return 0;
2097 ;
2098 return 0;
2099 }
2100 _ACEOF
2101 if ac_fn_c_try_compile "$LINENO"; then :
2102 eval "$4=yes"
2103 else
2104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2105 /* end confdefs.h. */
2106 $5
2107 int
2108 main ()
2109 {
2110 static $2 ac_aggr;
2111 if (sizeof ac_aggr.$3)
2112 return 0;
2113 ;
2114 return 0;
2115 }
2116 _ACEOF
2117 if ac_fn_c_try_compile "$LINENO"; then :
2118 eval "$4=yes"
2119 else
2120 eval "$4=no"
2121 fi
2122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2123 fi
2124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2125 fi
2126 eval ac_res=\$$4
2127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2128 $as_echo "$ac_res" >&6; }
2129 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2130
2131 } # ac_fn_c_check_member
2132
2133 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2134 # -------------------------------------------
2135 # Tests whether TYPE exists after having included INCLUDES, setting cache
2136 # variable VAR accordingly.
2137 ac_fn_c_check_type ()
2138 {
2139 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2141 $as_echo_n "checking for $2... " >&6; }
2142 if eval \${$3+:} false; then :
2143 $as_echo_n "(cached) " >&6
2144 else
2145 eval "$3=no"
2146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2147 /* end confdefs.h. */
2148 $4
2149 int
2150 main ()
2151 {
2152 if (sizeof ($2))
2153 return 0;
2154 ;
2155 return 0;
2156 }
2157 _ACEOF
2158 if ac_fn_c_try_compile "$LINENO"; then :
2159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2160 /* end confdefs.h. */
2161 $4
2162 int
2163 main ()
2164 {
2165 if (sizeof (($2)))
2166 return 0;
2167 ;
2168 return 0;
2169 }
2170 _ACEOF
2171 if ac_fn_c_try_compile "$LINENO"; then :
2172
2173 else
2174 eval "$3=yes"
2175 fi
2176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2177 fi
2178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2179 fi
2180 eval ac_res=\$$3
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2182 $as_echo "$ac_res" >&6; }
2183 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2184
2185 } # ac_fn_c_check_type
2186 cat >config.log <<_ACEOF
2187 This file contains any messages produced by compilers while
2188 running configure, to aid debugging if configure makes a mistake.
2189
2190 It was created by libICE $as_me 1.0.10, which was
2191 generated by GNU Autoconf 2.69. Invocation command line was
2192
2193 $ $0 $@
2194
2195 _ACEOF
2196 exec 5>>config.log
2197 {
2198 cat <<_ASUNAME
2199 ## --------- ##
2200 ## Platform. ##
2201 ## --------- ##
2202
2203 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2204 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2205 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2206 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2207 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2208
2209 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2210 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2211
2212 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2213 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2214 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2215 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2216 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2217 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2218 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2219
2220 _ASUNAME
2221
2222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2223 for as_dir in $PATH
2224 do
2225 IFS=$as_save_IFS
2226 test -z "$as_dir" && as_dir=.
2227 $as_echo "PATH: $as_dir"
2228 done
2229 IFS=$as_save_IFS
2230
2231 } >&5
2232
2233 cat >&5 <<_ACEOF
2234
2235
2236 ## ----------- ##
2237 ## Core tests. ##
2238 ## ----------- ##
2239
2240 _ACEOF
2241
2242
2243 # Keep a trace of the command line.
2244 # Strip out --no-create and --no-recursion so they do not pile up.
2245 # Strip out --silent because we don't want to record it for future runs.
2246 # Also quote any args containing shell meta-characters.
2247 # Make two passes to allow for proper duplicate-argument suppression.
2248 ac_configure_args=
2249 ac_configure_args0=
2250 ac_configure_args1=
2251 ac_must_keep_next=false
2252 for ac_pass in 1 2
2253 do
2254 for ac_arg
2255 do
2256 case $ac_arg in
2257 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2258 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2259 | -silent | --silent | --silen | --sile | --sil)
2260 continue ;;
2261 *\'*)
2262 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2263 esac
2264 case $ac_pass in
2265 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2266 2)
2267 as_fn_append ac_configure_args1 " '$ac_arg'"
2268 if test $ac_must_keep_next = true; then
2269 ac_must_keep_next=false # Got value, back to normal.
2270 else
2271 case $ac_arg in
2272 *=* | --config-cache | -C | -disable-* | --disable-* \
2273 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2274 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2275 | -with-* | --with-* | -without-* | --without-* | --x)
2276 case "$ac_configure_args0 " in
2277 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2278 esac
2279 ;;
2280 -* ) ac_must_keep_next=true ;;
2281 esac
2282 fi
2283 as_fn_append ac_configure_args " '$ac_arg'"
2284 ;;
2285 esac
2286 done
2287 done
2288 { ac_configure_args0=; unset ac_configure_args0;}
2289 { ac_configure_args1=; unset ac_configure_args1;}
2290
2291 # When interrupted or exit'd, cleanup temporary files, and complete
2292 # config.log. We remove comments because anyway the quotes in there
2293 # would cause problems or look ugly.
2294 # WARNING: Use '\'' to represent an apostrophe within the trap.
2295 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2296 trap 'exit_status=$?
2297 # Save into config.log some information that might help in debugging.
2298 {
2299 echo
2300
2301 $as_echo "## ---------------- ##
2302 ## Cache variables. ##
2303 ## ---------------- ##"
2304 echo
2305 # The following way of writing the cache mishandles newlines in values,
2306 (
2307 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2308 eval ac_val=\$$ac_var
2309 case $ac_val in #(
2310 *${as_nl}*)
2311 case $ac_var in #(
2312 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2313 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2314 esac
2315 case $ac_var in #(
2316 _ | IFS | as_nl) ;; #(
2317 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2318 *) { eval $ac_var=; unset $ac_var;} ;;
2319 esac ;;
2320 esac
2321 done
2322 (set) 2>&1 |
2323 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2324 *${as_nl}ac_space=\ *)
2325 sed -n \
2326 "s/'\''/'\''\\\\'\'''\''/g;
2327 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2328 ;; #(
2329 *)
2330 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2331 ;;
2332 esac |
2333 sort
2334 )
2335 echo
2336
2337 $as_echo "## ----------------- ##
2338 ## Output variables. ##
2339 ## ----------------- ##"
2340 echo
2341 for ac_var in $ac_subst_vars
2342 do
2343 eval ac_val=\$$ac_var
2344 case $ac_val in
2345 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2346 esac
2347 $as_echo "$ac_var='\''$ac_val'\''"
2348 done | sort
2349 echo
2350
2351 if test -n "$ac_subst_files"; then
2352 $as_echo "## ------------------- ##
2353 ## File substitutions. ##
2354 ## ------------------- ##"
2355 echo
2356 for ac_var in $ac_subst_files
2357 do
2358 eval ac_val=\$$ac_var
2359 case $ac_val in
2360 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2361 esac
2362 $as_echo "$ac_var='\''$ac_val'\''"
2363 done | sort
2364 echo
2365 fi
2366
2367 if test -s confdefs.h; then
2368 $as_echo "## ----------- ##
2369 ## confdefs.h. ##
2370 ## ----------- ##"
2371 echo
2372 cat confdefs.h
2373 echo
2374 fi
2375 test "$ac_signal" != 0 &&
2376 $as_echo "$as_me: caught signal $ac_signal"
2377 $as_echo "$as_me: exit $exit_status"
2378 } >&5
2379 rm -f core *.core core.conftest.* &&
2380 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2381 exit $exit_status
2382 ' 0
2383 for ac_signal in 1 2 13 15; do
2384 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2385 done
2386 ac_signal=0
2387
2388 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2389 rm -f -r conftest* confdefs.h
2390
2391 $as_echo "/* confdefs.h */" > confdefs.h
2392
2393 # Predefined preprocessor variables.
2394
2395 cat >>confdefs.h <<_ACEOF
2396 #define PACKAGE_NAME "$PACKAGE_NAME"
2397 _ACEOF
2398
2399 cat >>confdefs.h <<_ACEOF
2400 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2401 _ACEOF
2402
2403 cat >>confdefs.h <<_ACEOF
2404 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2405 _ACEOF
2406
2407 cat >>confdefs.h <<_ACEOF
2408 #define PACKAGE_STRING "$PACKAGE_STRING"
2409 _ACEOF
2410
2411 cat >>confdefs.h <<_ACEOF
2412 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2413 _ACEOF
2414
2415 cat >>confdefs.h <<_ACEOF
2416 #define PACKAGE_URL "$PACKAGE_URL"
2417 _ACEOF
2418
2419
2420 # Let the site file select an alternate cache file if it wants to.
2421 # Prefer an explicitly selected file to automatically selected ones.
2422 ac_site_file1=NONE
2423 ac_site_file2=NONE
2424 if test -n "$CONFIG_SITE"; then
2425 # We do not want a PATH search for config.site.
2426 case $CONFIG_SITE in #((
2427 -*) ac_site_file1=./$CONFIG_SITE;;
2428 */*) ac_site_file1=$CONFIG_SITE;;
2429 *) ac_site_file1=./$CONFIG_SITE;;
2430 esac
2431 elif test "x$prefix" != xNONE; then
2432 ac_site_file1=$prefix/share/config.site
2433 ac_site_file2=$prefix/etc/config.site
2434 else
2435 ac_site_file1=$ac_default_prefix/share/config.site
2436 ac_site_file2=$ac_default_prefix/etc/config.site
2437 fi
2438 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2439 do
2440 test "x$ac_site_file" = xNONE && continue
2441 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2443 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2444 sed 's/^/| /' "$ac_site_file" >&5
2445 . "$ac_site_file" \
2446 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2447 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2448 as_fn_error $? "failed to load site script $ac_site_file
2449 See \`config.log' for more details" "$LINENO" 5; }
2450 fi
2451 done
2452
2453 if test -r "$cache_file"; then
2454 # Some versions of bash will fail to source /dev/null (special files
2455 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2456 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2458 $as_echo "$as_me: loading cache $cache_file" >&6;}
2459 case $cache_file in
2460 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2461 *) . "./$cache_file";;
2462 esac
2463 fi
2464 else
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2466 $as_echo "$as_me: creating cache $cache_file" >&6;}
2467 >$cache_file
2468 fi
2469
2470 # Check that the precious variables saved in the cache have kept the same
2471 # value.
2472 ac_cache_corrupted=false
2473 for ac_var in $ac_precious_vars; do
2474 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2475 eval ac_new_set=\$ac_env_${ac_var}_set
2476 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2477 eval ac_new_val=\$ac_env_${ac_var}_value
2478 case $ac_old_set,$ac_new_set in
2479 set,)
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2481 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2482 ac_cache_corrupted=: ;;
2483 ,set)
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2485 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2486 ac_cache_corrupted=: ;;
2487 ,);;
2488 *)
2489 if test "x$ac_old_val" != "x$ac_new_val"; then
2490 # differences in whitespace do not lead to failure.
2491 ac_old_val_w=`echo x $ac_old_val`
2492 ac_new_val_w=`echo x $ac_new_val`
2493 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2495 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2496 ac_cache_corrupted=:
2497 else
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2499 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2500 eval $ac_var=\$ac_old_val
2501 fi
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2503 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2505 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2506 fi;;
2507 esac
2508 # Pass precious variables to config.status.
2509 if test "$ac_new_set" = set; then
2510 case $ac_new_val in
2511 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2512 *) ac_arg=$ac_var=$ac_new_val ;;
2513 esac
2514 case " $ac_configure_args " in
2515 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2516 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2517 esac
2518 fi
2519 done
2520 if $ac_cache_corrupted; then
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2522 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2524 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2525 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2526 fi
2527 ## -------------------- ##
2528 ## Main body of script. ##
2529 ## -------------------- ##
2530
2531 ac_ext=c
2532 ac_cpp='$CPP $CPPFLAGS'
2533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2536
2537
2538
2539 ac_config_headers="$ac_config_headers config.h"
2540
2541
2542 # Set common system defines for POSIX extensions, such as _GNU_SOURCE
2543 # Must be called before any macros that run the compiler (like
2544 # AC_PROG_LIBTOOL or XORG_DEFAULT_OPTIONS) to avoid autoconf errors.
2545 ac_aux_dir=
2546 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2547 if test -f "$ac_dir/install-sh"; then
2548 ac_aux_dir=$ac_dir
2549 ac_install_sh="$ac_aux_dir/install-sh -c"
2550 break
2551 elif test -f "$ac_dir/install.sh"; then
2552 ac_aux_dir=$ac_dir
2553 ac_install_sh="$ac_aux_dir/install.sh -c"
2554 break
2555 elif test -f "$ac_dir/shtool"; then
2556 ac_aux_dir=$ac_dir
2557 ac_install_sh="$ac_aux_dir/shtool install -c"
2558 break
2559 fi
2560 done
2561 if test -z "$ac_aux_dir"; then
2562 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2563 fi
2564
2565 # These three variables are undocumented and unsupported,
2566 # and are intended to be withdrawn in a future Autoconf release.
2567 # They can cause serious problems if a builder's source tree is in a directory
2568 # whose full name contains unusual characters.
2569 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2570 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2571 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2572
2573
2574 # Expand $ac_aux_dir to an absolute path.
2575 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2576
2577 ac_ext=c
2578 ac_cpp='$CPP $CPPFLAGS'
2579 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2580 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2581 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2582 if test -n "$ac_tool_prefix"; then
2583 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2584 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2586 $as_echo_n "checking for $ac_word... " >&6; }
2587 if ${ac_cv_prog_CC+:} false; then :
2588 $as_echo_n "(cached) " >&6
2589 else
2590 if test -n "$CC"; then
2591 ac_cv_prog_CC="$CC" # Let the user override the test.
2592 else
2593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2594 for as_dir in $PATH
2595 do
2596 IFS=$as_save_IFS
2597 test -z "$as_dir" && as_dir=.
2598 for ac_exec_ext in '' $ac_executable_extensions; do
2599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2600 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2602 break 2
2603 fi
2604 done
2605 done
2606 IFS=$as_save_IFS
2607
2608 fi
2609 fi
2610 CC=$ac_cv_prog_CC
2611 if test -n "$CC"; then
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2613 $as_echo "$CC" >&6; }
2614 else
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2616 $as_echo "no" >&6; }
2617 fi
2618
2619
2620 fi
2621 if test -z "$ac_cv_prog_CC"; then
2622 ac_ct_CC=$CC
2623 # Extract the first word of "gcc", so it can be a program name with args.
2624 set dummy gcc; ac_word=$2
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2626 $as_echo_n "checking for $ac_word... " >&6; }
2627 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2628 $as_echo_n "(cached) " >&6
2629 else
2630 if test -n "$ac_ct_CC"; then
2631 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2632 else
2633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2634 for as_dir in $PATH
2635 do
2636 IFS=$as_save_IFS
2637 test -z "$as_dir" && as_dir=.
2638 for ac_exec_ext in '' $ac_executable_extensions; do
2639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2640 ac_cv_prog_ac_ct_CC="gcc"
2641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2642 break 2
2643 fi
2644 done
2645 done
2646 IFS=$as_save_IFS
2647
2648 fi
2649 fi
2650 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2651 if test -n "$ac_ct_CC"; then
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2653 $as_echo "$ac_ct_CC" >&6; }
2654 else
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2656 $as_echo "no" >&6; }
2657 fi
2658
2659 if test "x$ac_ct_CC" = x; then
2660 CC=""
2661 else
2662 case $cross_compiling:$ac_tool_warned in
2663 yes:)
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2665 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2666 ac_tool_warned=yes ;;
2667 esac
2668 CC=$ac_ct_CC
2669 fi
2670 else
2671 CC="$ac_cv_prog_CC"
2672 fi
2673
2674 if test -z "$CC"; then
2675 if test -n "$ac_tool_prefix"; then
2676 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2677 set dummy ${ac_tool_prefix}cc; ac_word=$2
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2679 $as_echo_n "checking for $ac_word... " >&6; }
2680 if ${ac_cv_prog_CC+:} false; then :
2681 $as_echo_n "(cached) " >&6
2682 else
2683 if test -n "$CC"; then
2684 ac_cv_prog_CC="$CC" # Let the user override the test.
2685 else
2686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2687 for as_dir in $PATH
2688 do
2689 IFS=$as_save_IFS
2690 test -z "$as_dir" && as_dir=.
2691 for ac_exec_ext in '' $ac_executable_extensions; do
2692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2693 ac_cv_prog_CC="${ac_tool_prefix}cc"
2694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2695 break 2
2696 fi
2697 done
2698 done
2699 IFS=$as_save_IFS
2700
2701 fi
2702 fi
2703 CC=$ac_cv_prog_CC
2704 if test -n "$CC"; then
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2706 $as_echo "$CC" >&6; }
2707 else
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2709 $as_echo "no" >&6; }
2710 fi
2711
2712
2713 fi
2714 fi
2715 if test -z "$CC"; then
2716 # Extract the first word of "cc", so it can be a program name with args.
2717 set dummy cc; ac_word=$2
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2719 $as_echo_n "checking for $ac_word... " >&6; }
2720 if ${ac_cv_prog_CC+:} false; then :
2721 $as_echo_n "(cached) " >&6
2722 else
2723 if test -n "$CC"; then
2724 ac_cv_prog_CC="$CC" # Let the user override the test.
2725 else
2726 ac_prog_rejected=no
2727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2728 for as_dir in $PATH
2729 do
2730 IFS=$as_save_IFS
2731 test -z "$as_dir" && as_dir=.
2732 for ac_exec_ext in '' $ac_executable_extensions; do
2733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2734 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2735 ac_prog_rejected=yes
2736 continue
2737 fi
2738 ac_cv_prog_CC="cc"
2739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2740 break 2
2741 fi
2742 done
2743 done
2744 IFS=$as_save_IFS
2745
2746 if test $ac_prog_rejected = yes; then
2747 # We found a bogon in the path, so make sure we never use it.
2748 set dummy $ac_cv_prog_CC
2749 shift
2750 if test $# != 0; then
2751 # We chose a different compiler from the bogus one.
2752 # However, it has the same basename, so the bogon will be chosen
2753 # first if we set CC to just the basename; use the full file name.
2754 shift
2755 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2756 fi
2757 fi
2758 fi
2759 fi
2760 CC=$ac_cv_prog_CC
2761 if test -n "$CC"; then
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2763 $as_echo "$CC" >&6; }
2764 else
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2766 $as_echo "no" >&6; }
2767 fi
2768
2769
2770 fi
2771 if test -z "$CC"; then
2772 if test -n "$ac_tool_prefix"; then
2773 for ac_prog in cl.exe
2774 do
2775 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2776 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2778 $as_echo_n "checking for $ac_word... " >&6; }
2779 if ${ac_cv_prog_CC+:} false; then :
2780 $as_echo_n "(cached) " >&6
2781 else
2782 if test -n "$CC"; then
2783 ac_cv_prog_CC="$CC" # Let the user override the test.
2784 else
2785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2786 for as_dir in $PATH
2787 do
2788 IFS=$as_save_IFS
2789 test -z "$as_dir" && as_dir=.
2790 for ac_exec_ext in '' $ac_executable_extensions; do
2791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2792 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2794 break 2
2795 fi
2796 done
2797 done
2798 IFS=$as_save_IFS
2799
2800 fi
2801 fi
2802 CC=$ac_cv_prog_CC
2803 if test -n "$CC"; then
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2805 $as_echo "$CC" >&6; }
2806 else
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2808 $as_echo "no" >&6; }
2809 fi
2810
2811
2812 test -n "$CC" && break
2813 done
2814 fi
2815 if test -z "$CC"; then
2816 ac_ct_CC=$CC
2817 for ac_prog in cl.exe
2818 do
2819 # Extract the first word of "$ac_prog", so it can be a program name with args.
2820 set dummy $ac_prog; ac_word=$2
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2822 $as_echo_n "checking for $ac_word... " >&6; }
2823 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2824 $as_echo_n "(cached) " >&6
2825 else
2826 if test -n "$ac_ct_CC"; then
2827 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2828 else
2829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2830 for as_dir in $PATH
2831 do
2832 IFS=$as_save_IFS
2833 test -z "$as_dir" && as_dir=.
2834 for ac_exec_ext in '' $ac_executable_extensions; do
2835 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2836 ac_cv_prog_ac_ct_CC="$ac_prog"
2837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2838 break 2
2839 fi
2840 done
2841 done
2842 IFS=$as_save_IFS
2843
2844 fi
2845 fi
2846 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2847 if test -n "$ac_ct_CC"; then
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2849 $as_echo "$ac_ct_CC" >&6; }
2850 else
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2852 $as_echo "no" >&6; }
2853 fi
2854
2855
2856 test -n "$ac_ct_CC" && break
2857 done
2858
2859 if test "x$ac_ct_CC" = x; then
2860 CC=""
2861 else
2862 case $cross_compiling:$ac_tool_warned in
2863 yes:)
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2865 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2866 ac_tool_warned=yes ;;
2867 esac
2868 CC=$ac_ct_CC
2869 fi
2870 fi
2871
2872 fi
2873
2874
2875 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2876 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2877 as_fn_error $? "no acceptable C compiler found in \$PATH
2878 See \`config.log' for more details" "$LINENO" 5; }
2879
2880 # Provide some information about the compiler.
2881 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2882 set X $ac_compile
2883 ac_compiler=$2
2884 for ac_option in --version -v -V -qversion; do
2885 { { ac_try="$ac_compiler $ac_option >&5"
2886 case "(($ac_try" in
2887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2888 *) ac_try_echo=$ac_try;;
2889 esac
2890 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2891 $as_echo "$ac_try_echo"; } >&5
2892 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2893 ac_status=$?
2894 if test -s conftest.err; then
2895 sed '10a\
2896 ... rest of stderr output deleted ...
2897 10q' conftest.err >conftest.er1
2898 cat conftest.er1 >&5
2899 fi
2900 rm -f conftest.er1 conftest.err
2901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2902 test $ac_status = 0; }
2903 done
2904
2905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2906 /* end confdefs.h. */
2907
2908 int
2909 main ()
2910 {
2911
2912 ;
2913 return 0;
2914 }
2915 _ACEOF
2916 ac_clean_files_save=$ac_clean_files
2917 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2918 # Try to create an executable without -o first, disregard a.out.
2919 # It will help us diagnose broken compilers, and finding out an intuition
2920 # of exeext.
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2922 $as_echo_n "checking whether the C compiler works... " >&6; }
2923 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2924
2925 # The possible output files:
2926 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2927
2928 ac_rmfiles=
2929 for ac_file in $ac_files
2930 do
2931 case $ac_file in
2932 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2933 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2934 esac
2935 done
2936 rm -f $ac_rmfiles
2937
2938 if { { ac_try="$ac_link_default"
2939 case "(($ac_try" in
2940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2941 *) ac_try_echo=$ac_try;;
2942 esac
2943 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2944 $as_echo "$ac_try_echo"; } >&5
2945 (eval "$ac_link_default") 2>&5
2946 ac_status=$?
2947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2948 test $ac_status = 0; }; then :
2949 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2950 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2951 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2952 # so that the user can short-circuit this test for compilers unknown to
2953 # Autoconf.
2954 for ac_file in $ac_files ''
2955 do
2956 test -f "$ac_file" || continue
2957 case $ac_file in
2958 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2959 ;;
2960 [ab].out )
2961 # We found the default executable, but exeext='' is most
2962 # certainly right.
2963 break;;
2964 *.* )
2965 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2966 then :; else
2967 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2968 fi
2969 # We set ac_cv_exeext here because the later test for it is not
2970 # safe: cross compilers may not add the suffix if given an `-o'
2971 # argument, so we may need to know it at that point already.
2972 # Even if this section looks crufty: it has the advantage of
2973 # actually working.
2974 break;;
2975 * )
2976 break;;
2977 esac
2978 done
2979 test "$ac_cv_exeext" = no && ac_cv_exeext=
2980
2981 else
2982 ac_file=''
2983 fi
2984 if test -z "$ac_file"; then :
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2986 $as_echo "no" >&6; }
2987 $as_echo "$as_me: failed program was:" >&5
2988 sed 's/^/| /' conftest.$ac_ext >&5
2989
2990 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2991 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2992 as_fn_error 77 "C compiler cannot create executables
2993 See \`config.log' for more details" "$LINENO" 5; }
2994 else
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2996 $as_echo "yes" >&6; }
2997 fi
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2999 $as_echo_n "checking for C compiler default output file name... " >&6; }
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3001 $as_echo "$ac_file" >&6; }
3002 ac_exeext=$ac_cv_exeext
3003
3004 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3005 ac_clean_files=$ac_clean_files_save
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3007 $as_echo_n "checking for suffix of executables... " >&6; }
3008 if { { ac_try="$ac_link"
3009 case "(($ac_try" in
3010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3011 *) ac_try_echo=$ac_try;;
3012 esac
3013 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3014 $as_echo "$ac_try_echo"; } >&5
3015 (eval "$ac_link") 2>&5
3016 ac_status=$?
3017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3018 test $ac_status = 0; }; then :
3019 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3020 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3021 # work properly (i.e., refer to `conftest.exe'), while it won't with
3022 # `rm'.
3023 for ac_file in conftest.exe conftest conftest.*; do
3024 test -f "$ac_file" || continue
3025 case $ac_file in
3026 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3027 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3028 break;;
3029 * ) break;;
3030 esac
3031 done
3032 else
3033 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3034 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3035 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3036 See \`config.log' for more details" "$LINENO" 5; }
3037 fi
3038 rm -f conftest conftest$ac_cv_exeext
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3040 $as_echo "$ac_cv_exeext" >&6; }
3041
3042 rm -f conftest.$ac_ext
3043 EXEEXT=$ac_cv_exeext
3044 ac_exeext=$EXEEXT
3045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3046 /* end confdefs.h. */
3047 #include <stdio.h>
3048 int
3049 main ()
3050 {
3051 FILE *f = fopen ("conftest.out", "w");
3052 return ferror (f) || fclose (f) != 0;
3053
3054 ;
3055 return 0;
3056 }
3057 _ACEOF
3058 ac_clean_files="$ac_clean_files conftest.out"
3059 # Check that the compiler produces executables we can run. If not, either
3060 # the compiler is broken, or we cross compile.
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3062 $as_echo_n "checking whether we are cross compiling... " >&6; }
3063 if test "$cross_compiling" != yes; then
3064 { { ac_try="$ac_link"
3065 case "(($ac_try" in
3066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3067 *) ac_try_echo=$ac_try;;
3068 esac
3069 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3070 $as_echo "$ac_try_echo"; } >&5
3071 (eval "$ac_link") 2>&5
3072 ac_status=$?
3073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3074 test $ac_status = 0; }
3075 if { ac_try='./conftest$ac_cv_exeext'
3076 { { case "(($ac_try" in
3077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3078 *) ac_try_echo=$ac_try;;
3079 esac
3080 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3081 $as_echo "$ac_try_echo"; } >&5
3082 (eval "$ac_try") 2>&5
3083 ac_status=$?
3084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3085 test $ac_status = 0; }; }; then
3086 cross_compiling=no
3087 else
3088 if test "$cross_compiling" = maybe; then
3089 cross_compiling=yes
3090 else
3091 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3092 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3093 as_fn_error $? "cannot run C compiled programs.
3094 If you meant to cross compile, use \`--host'.
3095 See \`config.log' for more details" "$LINENO" 5; }
3096 fi
3097 fi
3098 fi
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3100 $as_echo "$cross_compiling" >&6; }
3101
3102 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3103 ac_clean_files=$ac_clean_files_save
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3105 $as_echo_n "checking for suffix of object files... " >&6; }
3106 if ${ac_cv_objext+:} false; then :
3107 $as_echo_n "(cached) " >&6
3108 else
3109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3110 /* end confdefs.h. */
3111
3112 int
3113 main ()
3114 {
3115
3116 ;
3117 return 0;
3118 }
3119 _ACEOF
3120 rm -f conftest.o conftest.obj
3121 if { { ac_try="$ac_compile"
3122 case "(($ac_try" in
3123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3124 *) ac_try_echo=$ac_try;;
3125 esac
3126 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3127 $as_echo "$ac_try_echo"; } >&5
3128 (eval "$ac_compile") 2>&5
3129 ac_status=$?
3130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3131 test $ac_status = 0; }; then :
3132 for ac_file in conftest.o conftest.obj conftest.*; do
3133 test -f "$ac_file" || continue;
3134 case $ac_file in
3135 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3136 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3137 break;;
3138 esac
3139 done
3140 else
3141 $as_echo "$as_me: failed program was:" >&5
3142 sed 's/^/| /' conftest.$ac_ext >&5
3143
3144 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3145 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3146 as_fn_error $? "cannot compute suffix of object files: cannot compile
3147 See \`config.log' for more details" "$LINENO" 5; }
3148 fi
3149 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3150 fi
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3152 $as_echo "$ac_cv_objext" >&6; }
3153 OBJEXT=$ac_cv_objext
3154 ac_objext=$OBJEXT
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3156 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3157 if ${ac_cv_c_compiler_gnu+:} false; then :
3158 $as_echo_n "(cached) " >&6
3159 else
3160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3161 /* end confdefs.h. */
3162
3163 int
3164 main ()
3165 {
3166 #ifndef __GNUC__
3167 choke me
3168 #endif
3169
3170 ;
3171 return 0;
3172 }
3173 _ACEOF
3174 if ac_fn_c_try_compile "$LINENO"; then :
3175 ac_compiler_gnu=yes
3176 else
3177 ac_compiler_gnu=no
3178 fi
3179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3180 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3181
3182 fi
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3184 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3185 if test $ac_compiler_gnu = yes; then
3186 GCC=yes
3187 else
3188 GCC=
3189 fi
3190 ac_test_CFLAGS=${CFLAGS+set}
3191 ac_save_CFLAGS=$CFLAGS
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3193 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3194 if ${ac_cv_prog_cc_g+:} false; then :
3195 $as_echo_n "(cached) " >&6
3196 else
3197 ac_save_c_werror_flag=$ac_c_werror_flag
3198 ac_c_werror_flag=yes
3199 ac_cv_prog_cc_g=no
3200 CFLAGS="-g"
3201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3202 /* end confdefs.h. */
3203
3204 int
3205 main ()
3206 {
3207
3208 ;
3209 return 0;
3210 }
3211 _ACEOF
3212 if ac_fn_c_try_compile "$LINENO"; then :
3213 ac_cv_prog_cc_g=yes
3214 else
3215 CFLAGS=""
3216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3217 /* end confdefs.h. */
3218
3219 int
3220 main ()
3221 {
3222
3223 ;
3224 return 0;
3225 }
3226 _ACEOF
3227 if ac_fn_c_try_compile "$LINENO"; then :
3228
3229 else
3230 ac_c_werror_flag=$ac_save_c_werror_flag
3231 CFLAGS="-g"
3232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3233 /* end confdefs.h. */
3234
3235 int
3236 main ()
3237 {
3238
3239 ;
3240 return 0;
3241 }
3242 _ACEOF
3243 if ac_fn_c_try_compile "$LINENO"; then :
3244 ac_cv_prog_cc_g=yes
3245 fi
3246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3247 fi
3248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3249 fi
3250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3251 ac_c_werror_flag=$ac_save_c_werror_flag
3252 fi
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3254 $as_echo "$ac_cv_prog_cc_g" >&6; }
3255 if test "$ac_test_CFLAGS" = set; then
3256 CFLAGS=$ac_save_CFLAGS
3257 elif test $ac_cv_prog_cc_g = yes; then
3258 if test "$GCC" = yes; then
3259 CFLAGS="-g -O2"
3260 else
3261 CFLAGS="-g"
3262 fi
3263 else
3264 if test "$GCC" = yes; then
3265 CFLAGS="-O2"
3266 else
3267 CFLAGS=
3268 fi
3269 fi
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3271 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3272 if ${ac_cv_prog_cc_c89+:} false; then :
3273 $as_echo_n "(cached) " >&6
3274 else
3275 ac_cv_prog_cc_c89=no
3276 ac_save_CC=$CC
3277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3278 /* end confdefs.h. */
3279 #include <stdarg.h>
3280 #include <stdio.h>
3281 struct stat;
3282 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3283 struct buf { int x; };
3284 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3285 static char *e (p, i)
3286 char **p;
3287 int i;
3288 {
3289 return p[i];
3290 }
3291 static char *f (char * (*g) (char **, int), char **p, ...)
3292 {
3293 char *s;
3294 va_list v;
3295 va_start (v,p);
3296 s = g (p, va_arg (v,int));
3297 va_end (v);
3298 return s;
3299 }
3300
3301 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3302 function prototypes and stuff, but not '\xHH' hex character constants.
3303 These don't provoke an error unfortunately, instead are silently treated
3304 as 'x'. The following induces an error, until -std is added to get
3305 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3306 array size at least. It's necessary to write '\x00'==0 to get something
3307 that's true only with -std. */
3308 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3309
3310 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3311 inside strings and character constants. */
3312 #define FOO(x) 'x'
3313 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3314
3315 int test (int i, double x);
3316 struct s1 {int (*f) (int a);};
3317 struct s2 {int (*f) (double a);};
3318 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3319 int argc;
3320 char **argv;
3321 int
3322 main ()
3323 {
3324 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3325 ;
3326 return 0;
3327 }
3328 _ACEOF
3329 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3330 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3331 do
3332 CC="$ac_save_CC $ac_arg"
3333 if ac_fn_c_try_compile "$LINENO"; then :
3334 ac_cv_prog_cc_c89=$ac_arg
3335 fi
3336 rm -f core conftest.err conftest.$ac_objext
3337 test "x$ac_cv_prog_cc_c89" != "xno" && break
3338 done
3339 rm -f conftest.$ac_ext
3340 CC=$ac_save_CC
3341
3342 fi
3343 # AC_CACHE_VAL
3344 case "x$ac_cv_prog_cc_c89" in
3345 x)
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3347 $as_echo "none needed" >&6; } ;;
3348 xno)
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3350 $as_echo "unsupported" >&6; } ;;
3351 *)
3352 CC="$CC $ac_cv_prog_cc_c89"
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3354 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3355 esac
3356 if test "x$ac_cv_prog_cc_c89" != xno; then :
3357
3358 fi
3359
3360 ac_ext=c
3361 ac_cpp='$CPP $CPPFLAGS'
3362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3365
3366 ac_ext=c
3367 ac_cpp='$CPP $CPPFLAGS'
3368 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3369 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3370 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3372 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3373 if ${am_cv_prog_cc_c_o+:} false; then :
3374 $as_echo_n "(cached) " >&6
3375 else
3376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3377 /* end confdefs.h. */
3378
3379 int
3380 main ()
3381 {
3382
3383 ;
3384 return 0;
3385 }
3386 _ACEOF
3387 # Make sure it works both with $CC and with simple cc.
3388 # Following AC_PROG_CC_C_O, we do the test twice because some
3389 # compilers refuse to overwrite an existing .o file with -o,
3390 # though they will create one.
3391 am_cv_prog_cc_c_o=yes
3392 for am_i in 1 2; do
3393 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3394 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3395 ac_status=$?
3396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397 (exit $ac_status); } \
3398 && test -f conftest2.$ac_objext; then
3399 : OK
3400 else
3401 am_cv_prog_cc_c_o=no
3402 break
3403 fi
3404 done
3405 rm -f core conftest*
3406 unset am_i
3407 fi
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3409 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3410 if test "$am_cv_prog_cc_c_o" != yes; then
3411 # Losing compiler, so override with the script.
3412 # FIXME: It is wrong to rewrite CC.
3413 # But if we don't then we get into trouble of one sort or another.
3414 # A longer-term fix would be to have automake use am__CC in this case,
3415 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3416 CC="$am_aux_dir/compile $CC"
3417 fi
3418 ac_ext=c
3419 ac_cpp='$CPP $CPPFLAGS'
3420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3423
3424
3425
3426 ac_ext=c
3427 ac_cpp='$CPP $CPPFLAGS'
3428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3432 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3433 # On Suns, sometimes $CPP names a directory.
3434 if test -n "$CPP" && test -d "$CPP"; then
3435 CPP=
3436 fi
3437 if test -z "$CPP"; then
3438 if ${ac_cv_prog_CPP+:} false; then :
3439 $as_echo_n "(cached) " >&6
3440 else
3441 # Double quotes because CPP needs to be expanded
3442 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3443 do
3444 ac_preproc_ok=false
3445 for ac_c_preproc_warn_flag in '' yes
3446 do
3447 # Use a header file that comes with gcc, so configuring glibc
3448 # with a fresh cross-compiler works.
3449 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3450 # <limits.h> exists even on freestanding compilers.
3451 # On the NeXT, cc -E runs the code through the compiler's parser,
3452 # not just through cpp. "Syntax error" is here to catch this case.
3453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3454 /* end confdefs.h. */
3455 #ifdef __STDC__
3456 # include <limits.h>
3457 #else
3458 # include <assert.h>
3459 #endif
3460 Syntax error
3461 _ACEOF
3462 if ac_fn_c_try_cpp "$LINENO"; then :
3463
3464 else
3465 # Broken: fails on valid input.
3466 continue
3467 fi
3468 rm -f conftest.err conftest.i conftest.$ac_ext
3469
3470 # OK, works on sane cases. Now check whether nonexistent headers
3471 # can be detected and how.
3472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3473 /* end confdefs.h. */
3474 #include <ac_nonexistent.h>
3475 _ACEOF
3476 if ac_fn_c_try_cpp "$LINENO"; then :
3477 # Broken: success on invalid input.
3478 continue
3479 else
3480 # Passes both tests.
3481 ac_preproc_ok=:
3482 break
3483 fi
3484 rm -f conftest.err conftest.i conftest.$ac_ext
3485
3486 done
3487 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3488 rm -f conftest.i conftest.err conftest.$ac_ext
3489 if $ac_preproc_ok; then :
3490 break
3491 fi
3492
3493 done
3494 ac_cv_prog_CPP=$CPP
3495
3496 fi
3497 CPP=$ac_cv_prog_CPP
3498 else
3499 ac_cv_prog_CPP=$CPP
3500 fi
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3502 $as_echo "$CPP" >&6; }
3503 ac_preproc_ok=false
3504 for ac_c_preproc_warn_flag in '' yes
3505 do
3506 # Use a header file that comes with gcc, so configuring glibc
3507 # with a fresh cross-compiler works.
3508 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3509 # <limits.h> exists even on freestanding compilers.
3510 # On the NeXT, cc -E runs the code through the compiler's parser,
3511 # not just through cpp. "Syntax error" is here to catch this case.
3512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3513 /* end confdefs.h. */
3514 #ifdef __STDC__
3515 # include <limits.h>
3516 #else
3517 # include <assert.h>
3518 #endif
3519 Syntax error
3520 _ACEOF
3521 if ac_fn_c_try_cpp "$LINENO"; then :
3522
3523 else
3524 # Broken: fails on valid input.
3525 continue
3526 fi
3527 rm -f conftest.err conftest.i conftest.$ac_ext
3528
3529 # OK, works on sane cases. Now check whether nonexistent headers
3530 # can be detected and how.
3531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3532 /* end confdefs.h. */
3533 #include <ac_nonexistent.h>
3534 _ACEOF
3535 if ac_fn_c_try_cpp "$LINENO"; then :
3536 # Broken: success on invalid input.
3537 continue
3538 else
3539 # Passes both tests.
3540 ac_preproc_ok=:
3541 break
3542 fi
3543 rm -f conftest.err conftest.i conftest.$ac_ext
3544
3545 done
3546 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3547 rm -f conftest.i conftest.err conftest.$ac_ext
3548 if $ac_preproc_ok; then :
3549
3550 else
3551 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3552 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3553 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3554 See \`config.log' for more details" "$LINENO" 5; }
3555 fi
3556
3557 ac_ext=c
3558 ac_cpp='$CPP $CPPFLAGS'
3559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3560 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3561 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3562
3563
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3565 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3566 if ${ac_cv_path_GREP+:} false; then :
3567 $as_echo_n "(cached) " >&6
3568 else
3569 if test -z "$GREP"; then
3570 ac_path_GREP_found=false
3571 # Loop through the user's path and test for each of PROGNAME-LIST
3572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3573 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3574 do
3575 IFS=$as_save_IFS
3576 test -z "$as_dir" && as_dir=.
3577 for ac_prog in grep ggrep; do
3578 for ac_exec_ext in '' $ac_executable_extensions; do
3579 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3580 as_fn_executable_p "$ac_path_GREP" || continue
3581 # Check for GNU ac_path_GREP and select it if it is found.
3582 # Check for GNU $ac_path_GREP
3583 case `"$ac_path_GREP" --version 2>&1` in
3584 *GNU*)
3585 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3586 *)
3587 ac_count=0
3588 $as_echo_n 0123456789 >"conftest.in"
3589 while :
3590 do
3591 cat "conftest.in" "conftest.in" >"conftest.tmp"
3592 mv "conftest.tmp" "conftest.in"
3593 cp "conftest.in" "conftest.nl"
3594 $as_echo 'GREP' >> "conftest.nl"
3595 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3596 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3597 as_fn_arith $ac_count + 1 && ac_count=$as_val
3598 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3599 # Best one so far, save it but keep looking for a better one
3600 ac_cv_path_GREP="$ac_path_GREP"
3601 ac_path_GREP_max=$ac_count
3602 fi
3603 # 10*(2^10) chars as input seems more than enough
3604 test $ac_count -gt 10 && break
3605 done
3606 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3607 esac
3608
3609 $ac_path_GREP_found && break 3
3610 done
3611 done
3612 done
3613 IFS=$as_save_IFS
3614 if test -z "$ac_cv_path_GREP"; then
3615 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3616 fi
3617 else
3618 ac_cv_path_GREP=$GREP
3619 fi
3620
3621 fi
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3623 $as_echo "$ac_cv_path_GREP" >&6; }
3624 GREP="$ac_cv_path_GREP"
3625
3626
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3628 $as_echo_n "checking for egrep... " >&6; }
3629 if ${ac_cv_path_EGREP+:} false; then :
3630 $as_echo_n "(cached) " >&6
3631 else
3632 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3633 then ac_cv_path_EGREP="$GREP -E"
3634 else
3635 if test -z "$EGREP"; then
3636 ac_path_EGREP_found=false
3637 # Loop through the user's path and test for each of PROGNAME-LIST
3638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3639 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3640 do
3641 IFS=$as_save_IFS
3642 test -z "$as_dir" && as_dir=.
3643 for ac_prog in egrep; do
3644 for ac_exec_ext in '' $ac_executable_extensions; do
3645 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3646 as_fn_executable_p "$ac_path_EGREP" || continue
3647 # Check for GNU ac_path_EGREP and select it if it is found.
3648 # Check for GNU $ac_path_EGREP
3649 case `"$ac_path_EGREP" --version 2>&1` in
3650 *GNU*)
3651 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3652 *)
3653 ac_count=0
3654 $as_echo_n 0123456789 >"conftest.in"
3655 while :
3656 do
3657 cat "conftest.in" "conftest.in" >"conftest.tmp"
3658 mv "conftest.tmp" "conftest.in"
3659 cp "conftest.in" "conftest.nl"
3660 $as_echo 'EGREP' >> "conftest.nl"
3661 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3662 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3663 as_fn_arith $ac_count + 1 && ac_count=$as_val
3664 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3665 # Best one so far, save it but keep looking for a better one
3666 ac_cv_path_EGREP="$ac_path_EGREP"
3667 ac_path_EGREP_max=$ac_count
3668 fi
3669 # 10*(2^10) chars as input seems more than enough
3670 test $ac_count -gt 10 && break
3671 done
3672 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3673 esac
3674
3675 $ac_path_EGREP_found && break 3
3676 done
3677 done
3678 done
3679 IFS=$as_save_IFS
3680 if test -z "$ac_cv_path_EGREP"; then
3681 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3682 fi
3683 else
3684 ac_cv_path_EGREP=$EGREP
3685 fi
3686
3687 fi
3688 fi
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3690 $as_echo "$ac_cv_path_EGREP" >&6; }
3691 EGREP="$ac_cv_path_EGREP"
3692
3693
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3695 $as_echo_n "checking for ANSI C header files... " >&6; }
3696 if ${ac_cv_header_stdc+:} false; then :
3697 $as_echo_n "(cached) " >&6
3698 else
3699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3700 /* end confdefs.h. */
3701 #include <stdlib.h>
3702 #include <stdarg.h>
3703 #include <string.h>
3704 #include <float.h>
3705
3706 int
3707 main ()
3708 {
3709
3710 ;
3711 return 0;
3712 }
3713 _ACEOF
3714 if ac_fn_c_try_compile "$LINENO"; then :
3715 ac_cv_header_stdc=yes
3716 else
3717 ac_cv_header_stdc=no
3718 fi
3719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3720
3721 if test $ac_cv_header_stdc = yes; then
3722 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3724 /* end confdefs.h. */
3725 #include <string.h>
3726
3727 _ACEOF
3728 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3729 $EGREP "memchr" >/dev/null 2>&1; then :
3730
3731 else
3732 ac_cv_header_stdc=no
3733 fi
3734 rm -f conftest*
3735
3736 fi
3737
3738 if test $ac_cv_header_stdc = yes; then
3739 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3741 /* end confdefs.h. */
3742 #include <stdlib.h>
3743
3744 _ACEOF
3745 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3746 $EGREP "free" >/dev/null 2>&1; then :
3747
3748 else
3749 ac_cv_header_stdc=no
3750 fi
3751 rm -f conftest*
3752
3753 fi
3754
3755 if test $ac_cv_header_stdc = yes; then
3756 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3757 if test "$cross_compiling" = yes; then :
3758 :
3759 else
3760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3761 /* end confdefs.h. */
3762 #include <ctype.h>
3763 #include <stdlib.h>
3764 #if ((' ' & 0x0FF) == 0x020)
3765 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3766 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3767 #else
3768 # define ISLOWER(c) \
3769 (('a' <= (c) && (c) <= 'i') \
3770 || ('j' <= (c) && (c) <= 'r') \
3771 || ('s' <= (c) && (c) <= 'z'))
3772 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3773 #endif
3774
3775 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3776 int
3777 main ()
3778 {
3779 int i;
3780 for (i = 0; i < 256; i++)
3781 if (XOR (islower (i), ISLOWER (i))
3782 || toupper (i) != TOUPPER (i))
3783 return 2;
3784 return 0;
3785 }
3786 _ACEOF
3787 if ac_fn_c_try_run "$LINENO"; then :
3788
3789 else
3790 ac_cv_header_stdc=no
3791 fi
3792 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3793 conftest.$ac_objext conftest.beam conftest.$ac_ext
3794 fi
3795
3796 fi
3797 fi
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3799 $as_echo "$ac_cv_header_stdc" >&6; }
3800 if test $ac_cv_header_stdc = yes; then
3801
3802 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3803
3804 fi
3805
3806 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3807 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3808 inttypes.h stdint.h unistd.h
3809 do :
3810 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3811 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3812 "
3813 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3814 cat >>confdefs.h <<_ACEOF
3815 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3816 _ACEOF
3817
3818 fi
3819
3820 done
3821
3822
3823
3824 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3825 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3826 MINIX=yes
3827 else
3828 MINIX=
3829 fi
3830
3831
3832 if test "$MINIX" = yes; then
3833
3834 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3835
3836
3837 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3838
3839
3840 $as_echo "#define _MINIX 1" >>confdefs.h
3841
3842 fi
3843
3844
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3846 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3847 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3848 $as_echo_n "(cached) " >&6
3849 else
3850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3851 /* end confdefs.h. */
3852
3853 # define __EXTENSIONS__ 1
3854 $ac_includes_default
3855 int
3856 main ()
3857 {
3858
3859 ;
3860 return 0;
3861 }
3862 _ACEOF
3863 if ac_fn_c_try_compile "$LINENO"; then :
3864 ac_cv_safe_to_define___extensions__=yes
3865 else
3866 ac_cv_safe_to_define___extensions__=no
3867 fi
3868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3869 fi
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3871 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3872 test $ac_cv_safe_to_define___extensions__ = yes &&
3873 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3874
3875 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3876
3877 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3878
3879 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3880
3881 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3882
3883
3884
3885 # Initialize Automake
3886 am__api_version='1.15'
3887
3888 # Find a good install program. We prefer a C program (faster),
3889 # so one script is as good as another. But avoid the broken or
3890 # incompatible versions:
3891 # SysV /etc/install, /usr/sbin/install
3892 # SunOS /usr/etc/install
3893 # IRIX /sbin/install
3894 # AIX /bin/install
3895 # AmigaOS /C/install, which installs bootblocks on floppy discs
3896 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3897 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3898 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3899 # OS/2's system install, which has a completely different semantic
3900 # ./install, which can be erroneously created by make from ./install.sh.
3901 # Reject install programs that cannot install multiple files.
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3903 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3904 if test -z "$INSTALL"; then
3905 if ${ac_cv_path_install+:} false; then :
3906 $as_echo_n "(cached) " >&6
3907 else
3908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3909 for as_dir in $PATH
3910 do
3911 IFS=$as_save_IFS
3912 test -z "$as_dir" && as_dir=.
3913 # Account for people who put trailing slashes in PATH elements.
3914 case $as_dir/ in #((
3915 ./ | .// | /[cC]/* | \
3916 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3917 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3918 /usr/ucb/* ) ;;
3919 *)
3920 # OSF1 and SCO ODT 3.0 have their own names for install.
3921 # Don't use installbsd from OSF since it installs stuff as root
3922 # by default.
3923 for ac_prog in ginstall scoinst install; do
3924 for ac_exec_ext in '' $ac_executable_extensions; do
3925 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3926 if test $ac_prog = install &&
3927 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3928 # AIX install. It has an incompatible calling convention.
3929 :
3930 elif test $ac_prog = install &&
3931 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3932 # program-specific install script used by HP pwplus--don't use.
3933 :
3934 else
3935 rm -rf conftest.one conftest.two conftest.dir
3936 echo one > conftest.one
3937 echo two > conftest.two
3938 mkdir conftest.dir
3939 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3940 test -s conftest.one && test -s conftest.two &&
3941 test -s conftest.dir/conftest.one &&
3942 test -s conftest.dir/conftest.two
3943 then
3944 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3945 break 3
3946 fi
3947 fi
3948 fi
3949 done
3950 done
3951 ;;
3952 esac
3953
3954 done
3955 IFS=$as_save_IFS
3956
3957 rm -rf conftest.one conftest.two conftest.dir
3958
3959 fi
3960 if test "${ac_cv_path_install+set}" = set; then
3961 INSTALL=$ac_cv_path_install
3962 else
3963 # As a last resort, use the slow shell script. Don't cache a
3964 # value for INSTALL within a source directory, because that will
3965 # break other packages using the cache if that directory is
3966 # removed, or if the value is a relative name.
3967 INSTALL=$ac_install_sh
3968 fi
3969 fi
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3971 $as_echo "$INSTALL" >&6; }
3972
3973 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3974 # It thinks the first close brace ends the variable substitution.
3975 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3976
3977 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3978
3979 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3980
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3982 $as_echo_n "checking whether build environment is sane... " >&6; }
3983 # Reject unsafe characters in $srcdir or the absolute working directory
3984 # name. Accept space and tab only in the latter.
3985 am_lf='
3986 '
3987 case `pwd` in
3988 *[\\\"\#\$\&\'\`$am_lf]*)
3989 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3990 esac
3991 case $srcdir in
3992 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3993 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3994 esac
3995
3996 # Do 'set' in a subshell so we don't clobber the current shell's
3997 # arguments. Must try -L first in case configure is actually a
3998 # symlink; some systems play weird games with the mod time of symlinks
3999 # (eg FreeBSD returns the mod time of the symlink's containing
4000 # directory).
4001 if (
4002 am_has_slept=no
4003 for am_try in 1 2; do
4004 echo "timestamp, slept: $am_has_slept" > conftest.file
4005 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4006 if test "$*" = "X"; then
4007 # -L didn't work.
4008 set X `ls -t "$srcdir/configure" conftest.file`
4009 fi
4010 if test "$*" != "X $srcdir/configure conftest.file" \
4011 && test "$*" != "X conftest.file $srcdir/configure"; then
4012
4013 # If neither matched, then we have a broken ls. This can happen
4014 # if, for instance, CONFIG_SHELL is bash and it inherits a
4015 # broken ls alias from the environment. This has actually
4016 # happened. Such a system could not be considered "sane".
4017 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4018 alias in your environment" "$LINENO" 5
4019 fi
4020 if test "$2" = conftest.file || test $am_try -eq 2; then
4021 break
4022 fi
4023 # Just in case.
4024 sleep 1
4025 am_has_slept=yes
4026 done
4027 test "$2" = conftest.file
4028 )
4029 then
4030 # Ok.
4031 :
4032 else
4033 as_fn_error $? "newly created file is older than distributed files!
4034 Check your system clock" "$LINENO" 5
4035 fi
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4037 $as_echo "yes" >&6; }
4038 # If we didn't sleep, we still need to ensure time stamps of config.status and
4039 # generated files are strictly newer.
4040 am_sleep_pid=
4041 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4042 ( sleep 1 ) &
4043 am_sleep_pid=$!
4044 fi
4045
4046 rm -f conftest.file
4047
4048 test "$program_prefix" != NONE &&
4049 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4050 # Use a double $ so make ignores it.
4051 test "$program_suffix" != NONE &&
4052 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4053 # Double any \ or $.
4054 # By default was `s,x,x', remove it if useless.
4055 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4056 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4057
4058 if test x"${MISSING+set}" != xset; then
4059 case $am_aux_dir in
4060 *\ * | *\ *)
4061 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4062 *)
4063 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4064 esac
4065 fi
4066 # Use eval to expand $SHELL
4067 if eval "$MISSING --is-lightweight"; then
4068 am_missing_run="$MISSING "
4069 else
4070 am_missing_run=
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4072 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4073 fi
4074
4075 if test x"${install_sh+set}" != xset; then
4076 case $am_aux_dir in
4077 *\ * | *\ *)
4078 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4079 *)
4080 install_sh="\${SHELL} $am_aux_dir/install-sh"
4081 esac
4082 fi
4083
4084 # Installed binaries are usually stripped using 'strip' when the user
4085 # run "make install-strip". However 'strip' might not be the right
4086 # tool to use in cross-compilation environments, therefore Automake
4087 # will honor the 'STRIP' environment variable to overrule this program.
4088 if test "$cross_compiling" != no; then
4089 if test -n "$ac_tool_prefix"; then
4090 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4091 set dummy ${ac_tool_prefix}strip; ac_word=$2
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4093 $as_echo_n "checking for $ac_word... " >&6; }
4094 if ${ac_cv_prog_STRIP+:} false; then :
4095 $as_echo_n "(cached) " >&6
4096 else
4097 if test -n "$STRIP"; then
4098 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4099 else
4100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4101 for as_dir in $PATH
4102 do
4103 IFS=$as_save_IFS
4104 test -z "$as_dir" && as_dir=.
4105 for ac_exec_ext in '' $ac_executable_extensions; do
4106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4107 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4109 break 2
4110 fi
4111 done
4112 done
4113 IFS=$as_save_IFS
4114
4115 fi
4116 fi
4117 STRIP=$ac_cv_prog_STRIP
4118 if test -n "$STRIP"; then
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4120 $as_echo "$STRIP" >&6; }
4121 else
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4123 $as_echo "no" >&6; }
4124 fi
4125
4126
4127 fi
4128 if test -z "$ac_cv_prog_STRIP"; then
4129 ac_ct_STRIP=$STRIP
4130 # Extract the first word of "strip", so it can be a program name with args.
4131 set dummy strip; ac_word=$2
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4133 $as_echo_n "checking for $ac_word... " >&6; }
4134 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4135 $as_echo_n "(cached) " >&6
4136 else
4137 if test -n "$ac_ct_STRIP"; then
4138 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4139 else
4140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4141 for as_dir in $PATH
4142 do
4143 IFS=$as_save_IFS
4144 test -z "$as_dir" && as_dir=.
4145 for ac_exec_ext in '' $ac_executable_extensions; do
4146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4147 ac_cv_prog_ac_ct_STRIP="strip"
4148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4149 break 2
4150 fi
4151 done
4152 done
4153 IFS=$as_save_IFS
4154
4155 fi
4156 fi
4157 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4158 if test -n "$ac_ct_STRIP"; then
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4160 $as_echo "$ac_ct_STRIP" >&6; }
4161 else
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4163 $as_echo "no" >&6; }
4164 fi
4165
4166 if test "x$ac_ct_STRIP" = x; then
4167 STRIP=":"
4168 else
4169 case $cross_compiling:$ac_tool_warned in
4170 yes:)
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4172 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4173 ac_tool_warned=yes ;;
4174 esac
4175 STRIP=$ac_ct_STRIP
4176 fi
4177 else
4178 STRIP="$ac_cv_prog_STRIP"
4179 fi
4180
4181 fi
4182 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4183
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4185 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4186 if test -z "$MKDIR_P"; then
4187 if ${ac_cv_path_mkdir+:} false; then :
4188 $as_echo_n "(cached) " >&6
4189 else
4190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4191 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4192 do
4193 IFS=$as_save_IFS
4194 test -z "$as_dir" && as_dir=.
4195 for ac_prog in mkdir gmkdir; do
4196 for ac_exec_ext in '' $ac_executable_extensions; do
4197 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4198 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4199 'mkdir (GNU coreutils) '* | \
4200 'mkdir (coreutils) '* | \
4201 'mkdir (fileutils) '4.1*)
4202 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4203 break 3;;
4204 esac
4205 done
4206 done
4207 done
4208 IFS=$as_save_IFS
4209
4210 fi
4211
4212 test -d ./--version && rmdir ./--version
4213 if test "${ac_cv_path_mkdir+set}" = set; then
4214 MKDIR_P="$ac_cv_path_mkdir -p"
4215 else
4216 # As a last resort, use the slow shell script. Don't cache a
4217 # value for MKDIR_P within a source directory, because that will
4218 # break other packages using the cache if that directory is
4219 # removed, or if the value is a relative name.
4220 MKDIR_P="$ac_install_sh -d"
4221 fi
4222 fi
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4224 $as_echo "$MKDIR_P" >&6; }
4225
4226 for ac_prog in gawk mawk nawk awk
4227 do
4228 # Extract the first word of "$ac_prog", so it can be a program name with args.
4229 set dummy $ac_prog; ac_word=$2
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4231 $as_echo_n "checking for $ac_word... " >&6; }
4232 if ${ac_cv_prog_AWK+:} false; then :
4233 $as_echo_n "(cached) " >&6
4234 else
4235 if test -n "$AWK"; then
4236 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4237 else
4238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4239 for as_dir in $PATH
4240 do
4241 IFS=$as_save_IFS
4242 test -z "$as_dir" && as_dir=.
4243 for ac_exec_ext in '' $ac_executable_extensions; do
4244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4245 ac_cv_prog_AWK="$ac_prog"
4246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4247 break 2
4248 fi
4249 done
4250 done
4251 IFS=$as_save_IFS
4252
4253 fi
4254 fi
4255 AWK=$ac_cv_prog_AWK
4256 if test -n "$AWK"; then
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4258 $as_echo "$AWK" >&6; }
4259 else
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4261 $as_echo "no" >&6; }
4262 fi
4263
4264
4265 test -n "$AWK" && break
4266 done
4267
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4269 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4270 set x ${MAKE-make}
4271 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4272 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4273 $as_echo_n "(cached) " >&6
4274 else
4275 cat >conftest.make <<\_ACEOF
4276 SHELL = /bin/sh
4277 all:
4278 @echo '@@@%%%=$(MAKE)=@@@%%%'
4279 _ACEOF
4280 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4281 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4282 *@@@%%%=?*=@@@%%%*)
4283 eval ac_cv_prog_make_${ac_make}_set=yes;;
4284 *)
4285 eval ac_cv_prog_make_${ac_make}_set=no;;
4286 esac
4287 rm -f conftest.make
4288 fi
4289 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4291 $as_echo "yes" >&6; }
4292 SET_MAKE=
4293 else
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4295 $as_echo "no" >&6; }
4296 SET_MAKE="MAKE=${MAKE-make}"
4297 fi
4298
4299 rm -rf .tst 2>/dev/null
4300 mkdir .tst 2>/dev/null
4301 if test -d .tst; then
4302 am__leading_dot=.
4303 else
4304 am__leading_dot=_
4305 fi
4306 rmdir .tst 2>/dev/null
4307
4308 DEPDIR="${am__leading_dot}deps"
4309
4310 ac_config_commands="$ac_config_commands depfiles"
4311
4312
4313 am_make=${MAKE-make}
4314 cat > confinc << 'END'
4315 am__doit:
4316 @echo this is the am__doit target
4317 .PHONY: am__doit
4318 END
4319 # If we don't find an include directive, just comment out the code.
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4321 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4322 am__include="#"
4323 am__quote=
4324 _am_result=none
4325 # First try GNU make style include.
4326 echo "include confinc" > confmf
4327 # Ignore all kinds of additional output from 'make'.
4328 case `$am_make -s -f confmf 2> /dev/null` in #(
4329 *the\ am__doit\ target*)
4330 am__include=include
4331 am__quote=
4332 _am_result=GNU
4333 ;;
4334 esac
4335 # Now try BSD make style include.
4336 if test "$am__include" = "#"; then
4337 echo '.include "confinc"' > confmf
4338 case `$am_make -s -f confmf 2> /dev/null` in #(
4339 *the\ am__doit\ target*)
4340 am__include=.include
4341 am__quote="\""
4342 _am_result=BSD
4343 ;;
4344 esac
4345 fi
4346
4347
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4349 $as_echo "$_am_result" >&6; }
4350 rm -f confinc confmf
4351
4352 # Check whether --enable-dependency-tracking was given.
4353 if test "${enable_dependency_tracking+set}" = set; then :
4354 enableval=$enable_dependency_tracking;
4355 fi
4356
4357 if test "x$enable_dependency_tracking" != xno; then
4358 am_depcomp="$ac_aux_dir/depcomp"
4359 AMDEPBACKSLASH='\'
4360 am__nodep='_no'
4361 fi
4362 if test "x$enable_dependency_tracking" != xno; then
4363 AMDEP_TRUE=
4364 AMDEP_FALSE='#'
4365 else
4366 AMDEP_TRUE='#'
4367 AMDEP_FALSE=
4368 fi
4369
4370
4371 # Check whether --enable-silent-rules was given.
4372 if test "${enable_silent_rules+set}" = set; then :
4373 enableval=$enable_silent_rules;
4374 fi
4375
4376 case $enable_silent_rules in # (((
4377 yes) AM_DEFAULT_VERBOSITY=0;;
4378 no) AM_DEFAULT_VERBOSITY=1;;
4379 *) AM_DEFAULT_VERBOSITY=1;;
4380 esac
4381 am_make=${MAKE-make}
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4383 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4384 if ${am_cv_make_support_nested_variables+:} false; then :
4385 $as_echo_n "(cached) " >&6
4386 else
4387 if $as_echo 'TRUE=$(BAR$(V))
4388 BAR0=false
4389 BAR1=true
4390 V=1
4391 am__doit:
4392 @$(TRUE)
4393 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4394 am_cv_make_support_nested_variables=yes
4395 else
4396 am_cv_make_support_nested_variables=no
4397 fi
4398 fi
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4400 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4401 if test $am_cv_make_support_nested_variables = yes; then
4402 AM_V='$(V)'
4403 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4404 else
4405 AM_V=$AM_DEFAULT_VERBOSITY
4406 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4407 fi
4408 AM_BACKSLASH='\'
4409
4410 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4411 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4412 # is not polluted with repeated "-I."
4413 am__isrc=' -I$(srcdir)'
4414 # test to see if srcdir already configured
4415 if test -f $srcdir/config.status; then
4416 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4417 fi
4418 fi
4419
4420 # test whether we have cygpath
4421 if test -z "$CYGPATH_W"; then
4422 if (cygpath --version) >/dev/null 2>/dev/null; then
4423 CYGPATH_W='cygpath -w'
4424 else
4425 CYGPATH_W=echo
4426 fi
4427 fi
4428
4429
4430 # Define the identity of the package.
4431 PACKAGE='libICE'
4432 VERSION='1.0.10'
4433
4434
4435 cat >>confdefs.h <<_ACEOF
4436 #define PACKAGE "$PACKAGE"
4437 _ACEOF
4438
4439
4440 cat >>confdefs.h <<_ACEOF
4441 #define VERSION "$VERSION"
4442 _ACEOF
4443
4444 # Some tools Automake needs.
4445
4446 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4447
4448
4449 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4450
4451
4452 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4453
4454
4455 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4456
4457
4458 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4459
4460 # For better backward compatibility. To be removed once Automake 1.9.x
4461 # dies out for good. For more background, see:
4462 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4463 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4464 mkdir_p='$(MKDIR_P)'
4465
4466 # We need awk for the "check" target (and possibly the TAP driver). The
4467 # system "awk" is bad on some platforms.
4468 # Always define AMTAR for backward compatibility. Yes, it's still used
4469 # in the wild :-( We should find a proper way to deprecate it ...
4470 AMTAR='$${TAR-tar}'
4471
4472
4473 # We'll loop over all known methods to create a tar archive until one works.
4474 _am_tools='gnutar pax cpio none'
4475
4476 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4477
4478
4479
4480
4481
4482 depcc="$CC" am_compiler_list=
4483
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4485 $as_echo_n "checking dependency style of $depcc... " >&6; }
4486 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4487 $as_echo_n "(cached) " >&6
4488 else
4489 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4490 # We make a subdir and do the tests there. Otherwise we can end up
4491 # making bogus files that we don't know about and never remove. For
4492 # instance it was reported that on HP-UX the gcc test will end up
4493 # making a dummy file named 'D' -- because '-MD' means "put the output
4494 # in D".
4495 rm -rf conftest.dir
4496 mkdir conftest.dir
4497 # Copy depcomp to subdir because otherwise we won't find it if we're
4498 # using a relative directory.
4499 cp "$am_depcomp" conftest.dir
4500 cd conftest.dir
4501 # We will build objects and dependencies in a subdirectory because
4502 # it helps to detect inapplicable dependency modes. For instance
4503 # both Tru64's cc and ICC support -MD to output dependencies as a
4504 # side effect of compilation, but ICC will put the dependencies in
4505 # the current directory while Tru64 will put them in the object
4506 # directory.
4507 mkdir sub
4508
4509 am_cv_CC_dependencies_compiler_type=none
4510 if test "$am_compiler_list" = ""; then
4511 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4512 fi
4513 am__universal=false
4514 case " $depcc " in #(
4515 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4516 esac
4517
4518 for depmode in $am_compiler_list; do
4519 # Setup a source with many dependencies, because some compilers
4520 # like to wrap large dependency lists on column 80 (with \), and
4521 # we should not choose a depcomp mode which is confused by this.
4522 #
4523 # We need to recreate these files for each test, as the compiler may
4524 # overwrite some of them when testing with obscure command lines.
4525 # This happens at least with the AIX C compiler.
4526 : > sub/conftest.c
4527 for i in 1 2 3 4 5 6; do
4528 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4529 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4530 # Solaris 10 /bin/sh.
4531 echo '/* dummy */' > sub/conftst$i.h
4532 done
4533 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4534
4535 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4536 # mode. It turns out that the SunPro C++ compiler does not properly
4537 # handle '-M -o', and we need to detect this. Also, some Intel
4538 # versions had trouble with output in subdirs.
4539 am__obj=sub/conftest.${OBJEXT-o}
4540 am__minus_obj="-o $am__obj"
4541 case $depmode in
4542 gcc)
4543 # This depmode causes a compiler race in universal mode.
4544 test "$am__universal" = false || continue
4545 ;;
4546 nosideeffect)
4547 # After this tag, mechanisms are not by side-effect, so they'll
4548 # only be used when explicitly requested.
4549 if test "x$enable_dependency_tracking" = xyes; then
4550 continue
4551 else
4552 break
4553 fi
4554 ;;
4555 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4556 # This compiler won't grok '-c -o', but also, the minuso test has
4557 # not run yet. These depmodes are late enough in the game, and
4558 # so weak that their functioning should not be impacted.
4559 am__obj=conftest.${OBJEXT-o}
4560 am__minus_obj=
4561 ;;
4562 none) break ;;
4563 esac
4564 if depmode=$depmode \
4565 source=sub/conftest.c object=$am__obj \
4566 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4567 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4568 >/dev/null 2>conftest.err &&
4569 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4570 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4571 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4572 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4573 # icc doesn't choke on unknown options, it will just issue warnings
4574 # or remarks (even with -Werror). So we grep stderr for any message
4575 # that says an option was ignored or not supported.
4576 # When given -MP, icc 7.0 and 7.1 complain thusly:
4577 # icc: Command line warning: ignoring option '-M'; no argument required
4578 # The diagnosis changed in icc 8.0:
4579 # icc: Command line remark: option '-MP' not supported
4580 if (grep 'ignoring option' conftest.err ||
4581 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4582 am_cv_CC_dependencies_compiler_type=$depmode
4583 break
4584 fi
4585 fi
4586 done
4587
4588 cd ..
4589 rm -rf conftest.dir
4590 else
4591 am_cv_CC_dependencies_compiler_type=none
4592 fi
4593
4594 fi
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4596 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4597 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4598
4599 if
4600 test "x$enable_dependency_tracking" != xno \
4601 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4602 am__fastdepCC_TRUE=
4603 am__fastdepCC_FALSE='#'
4604 else
4605 am__fastdepCC_TRUE='#'
4606 am__fastdepCC_FALSE=
4607 fi
4608
4609
4610
4611 # POSIX will say in a future version that running "rm -f" with no argument
4612 # is OK; and we want to be able to make that assumption in our Makefile
4613 # recipes. So use an aggressive probe to check that the usage we want is
4614 # actually supported "in the wild" to an acceptable degree.
4615 # See automake bug#10828.
4616 # To make any issue more visible, cause the running configure to be aborted
4617 # by default if the 'rm' program in use doesn't match our expectations; the
4618 # user can still override this though.
4619 if rm -f && rm -fr && rm -rf; then : OK; else
4620 cat >&2 <<'END'
4621 Oops!
4622
4623 Your 'rm' program seems unable to run without file operands specified
4624 on the command line, even when the '-f' option is present. This is contrary
4625 to the behaviour of most rm programs out there, and not conforming with
4626 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4627
4628 Please tell bug-automake@gnu.org about your system, including the value
4629 of your $PATH and any error possibly output before this message. This
4630 can help us improve future automake versions.
4631
4632 END
4633 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4634 echo 'Configuration will proceed anyway, since you have set the' >&2
4635 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4636 echo >&2
4637 else
4638 cat >&2 <<'END'
4639 Aborting the configuration process, to ensure you take notice of the issue.
4640
4641 You can download and install GNU coreutils to get an 'rm' implementation
4642 that behaves properly: <http://www.gnu.org/software/coreutils/>.
4643
4644 If you want to complete the configuration process using your problematic
4645 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4646 to "yes", and re-run configure.
4647
4648 END
4649 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4650 fi
4651 fi
4652
4653
4654 # Initialize libtool
4655 case `pwd` in
4656 *\ * | *\ *)
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4658 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4659 esac
4660
4661
4662
4663 macro_version='2.4.6'
4664 macro_revision='2.4.6'
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678 ltmain=$ac_aux_dir/ltmain.sh
4679
4680 # Make sure we can run config.sub.
4681 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4682 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4683
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4685 $as_echo_n "checking build system type... " >&6; }
4686 if ${ac_cv_build+:} false; then :
4687 $as_echo_n "(cached) " >&6
4688 else
4689 ac_build_alias=$build_alias
4690 test "x$ac_build_alias" = x &&
4691 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4692 test "x$ac_build_alias" = x &&
4693 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4694 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4695 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4696
4697 fi
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4699 $as_echo "$ac_cv_build" >&6; }
4700 case $ac_cv_build in
4701 *-*-*) ;;
4702 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4703 esac
4704 build=$ac_cv_build
4705 ac_save_IFS=$IFS; IFS='-'
4706 set x $ac_cv_build
4707 shift
4708 build_cpu=$1
4709 build_vendor=$2
4710 shift; shift
4711 # Remember, the first character of IFS is used to create $*,
4712 # except with old shells:
4713 build_os=$*
4714 IFS=$ac_save_IFS
4715 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4716
4717
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4719 $as_echo_n "checking host system type... " >&6; }
4720 if ${ac_cv_host+:} false; then :
4721 $as_echo_n "(cached) " >&6
4722 else
4723 if test "x$host_alias" = x; then
4724 ac_cv_host=$ac_cv_build
4725 else
4726 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4727 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4728 fi
4729
4730 fi
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4732 $as_echo "$ac_cv_host" >&6; }
4733 case $ac_cv_host in
4734 *-*-*) ;;
4735 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4736 esac
4737 host=$ac_cv_host
4738 ac_save_IFS=$IFS; IFS='-'
4739 set x $ac_cv_host
4740 shift
4741 host_cpu=$1
4742 host_vendor=$2
4743 shift; shift
4744 # Remember, the first character of IFS is used to create $*,
4745 # except with old shells:
4746 host_os=$*
4747 IFS=$ac_save_IFS
4748 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4749
4750
4751 # Backslashify metacharacters that are still active within
4752 # double-quoted strings.
4753 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4754
4755 # Same as above, but do not quote variable references.
4756 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4757
4758 # Sed substitution to delay expansion of an escaped shell variable in a
4759 # double_quote_subst'ed string.
4760 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4761
4762 # Sed substitution to delay expansion of an escaped single quote.
4763 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4764
4765 # Sed substitution to avoid accidental globbing in evaled expressions
4766 no_glob_subst='s/\*/\\\*/g'
4767
4768 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4769 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4770 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4771
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4773 $as_echo_n "checking how to print strings... " >&6; }
4774 # Test print first, because it will be a builtin if present.
4775 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4776 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4777 ECHO='print -r --'
4778 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4779 ECHO='printf %s\n'
4780 else
4781 # Use this function as a fallback that always works.
4782 func_fallback_echo ()
4783 {
4784 eval 'cat <<_LTECHO_EOF
4785 $1
4786 _LTECHO_EOF'
4787 }
4788 ECHO='func_fallback_echo'
4789 fi
4790
4791 # func_echo_all arg...
4792 # Invoke $ECHO with all args, space-separated.
4793 func_echo_all ()
4794 {
4795 $ECHO ""
4796 }
4797
4798 case $ECHO in
4799 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4800 $as_echo "printf" >&6; } ;;
4801 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4802 $as_echo "print -r" >&6; } ;;
4803 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4804 $as_echo "cat" >&6; } ;;
4805 esac
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4821 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4822 if ${ac_cv_path_SED+:} false; then :
4823 $as_echo_n "(cached) " >&6
4824 else
4825 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4826 for ac_i in 1 2 3 4 5 6 7; do
4827 ac_script="$ac_script$as_nl$ac_script"
4828 done
4829 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4830 { ac_script=; unset ac_script;}
4831 if test -z "$SED"; then
4832 ac_path_SED_found=false
4833 # Loop through the user's path and test for each of PROGNAME-LIST
4834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4835 for as_dir in $PATH
4836 do
4837 IFS=$as_save_IFS
4838 test -z "$as_dir" && as_dir=.
4839 for ac_prog in sed gsed; do
4840 for ac_exec_ext in '' $ac_executable_extensions; do
4841 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4842 as_fn_executable_p "$ac_path_SED" || continue
4843 # Check for GNU ac_path_SED and select it if it is found.
4844 # Check for GNU $ac_path_SED
4845 case `"$ac_path_SED" --version 2>&1` in
4846 *GNU*)
4847 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4848 *)
4849 ac_count=0
4850 $as_echo_n 0123456789 >"conftest.in"
4851 while :
4852 do
4853 cat "conftest.in" "conftest.in" >"conftest.tmp"
4854 mv "conftest.tmp" "conftest.in"
4855 cp "conftest.in" "conftest.nl"
4856 $as_echo '' >> "conftest.nl"
4857 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4858 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4859 as_fn_arith $ac_count + 1 && ac_count=$as_val
4860 if test $ac_count -gt ${ac_path_SED_max-0}; then
4861 # Best one so far, save it but keep looking for a better one
4862 ac_cv_path_SED="$ac_path_SED"
4863 ac_path_SED_max=$ac_count
4864 fi
4865 # 10*(2^10) chars as input seems more than enough
4866 test $ac_count -gt 10 && break
4867 done
4868 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4869 esac
4870
4871 $ac_path_SED_found && break 3
4872 done
4873 done
4874 done
4875 IFS=$as_save_IFS
4876 if test -z "$ac_cv_path_SED"; then
4877 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4878 fi
4879 else
4880 ac_cv_path_SED=$SED
4881 fi
4882
4883 fi
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4885 $as_echo "$ac_cv_path_SED" >&6; }
4886 SED="$ac_cv_path_SED"
4887 rm -f conftest.sed
4888
4889 test -z "$SED" && SED=sed
4890 Xsed="$SED -e 1s/^X//"
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4903 $as_echo_n "checking for fgrep... " >&6; }
4904 if ${ac_cv_path_FGREP+:} false; then :
4905 $as_echo_n "(cached) " >&6
4906 else
4907 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4908 then ac_cv_path_FGREP="$GREP -F"
4909 else
4910 if test -z "$FGREP"; then
4911 ac_path_FGREP_found=false
4912 # Loop through the user's path and test for each of PROGNAME-LIST
4913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4914 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4915 do
4916 IFS=$as_save_IFS
4917 test -z "$as_dir" && as_dir=.
4918 for ac_prog in fgrep; do
4919 for ac_exec_ext in '' $ac_executable_extensions; do
4920 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4921 as_fn_executable_p "$ac_path_FGREP" || continue
4922 # Check for GNU ac_path_FGREP and select it if it is found.
4923 # Check for GNU $ac_path_FGREP
4924 case `"$ac_path_FGREP" --version 2>&1` in
4925 *GNU*)
4926 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4927 *)
4928 ac_count=0
4929 $as_echo_n 0123456789 >"conftest.in"
4930 while :
4931 do
4932 cat "conftest.in" "conftest.in" >"conftest.tmp"
4933 mv "conftest.tmp" "conftest.in"
4934 cp "conftest.in" "conftest.nl"
4935 $as_echo 'FGREP' >> "conftest.nl"
4936 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4937 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4938 as_fn_arith $ac_count + 1 && ac_count=$as_val
4939 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4940 # Best one so far, save it but keep looking for a better one
4941 ac_cv_path_FGREP="$ac_path_FGREP"
4942 ac_path_FGREP_max=$ac_count
4943 fi
4944 # 10*(2^10) chars as input seems more than enough
4945 test $ac_count -gt 10 && break
4946 done
4947 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4948 esac
4949
4950 $ac_path_FGREP_found && break 3
4951 done
4952 done
4953 done
4954 IFS=$as_save_IFS
4955 if test -z "$ac_cv_path_FGREP"; then
4956 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4957 fi
4958 else
4959 ac_cv_path_FGREP=$FGREP
4960 fi
4961
4962 fi
4963 fi
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4965 $as_echo "$ac_cv_path_FGREP" >&6; }
4966 FGREP="$ac_cv_path_FGREP"
4967
4968
4969 test -z "$GREP" && GREP=grep
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989 # Check whether --with-gnu-ld was given.
4990 if test "${with_gnu_ld+set}" = set; then :
4991 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4992 else
4993 with_gnu_ld=no
4994 fi
4995
4996 ac_prog=ld
4997 if test yes = "$GCC"; then
4998 # Check if gcc -print-prog-name=ld gives a path.
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5000 $as_echo_n "checking for ld used by $CC... " >&6; }
5001 case $host in
5002 *-*-mingw*)
5003 # gcc leaves a trailing carriage return, which upsets mingw
5004 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5005 *)
5006 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5007 esac
5008 case $ac_prog in
5009 # Accept absolute paths.
5010 [\\/]* | ?:[\\/]*)
5011 re_direlt='/[^/][^/]*/\.\./'
5012 # Canonicalize the pathname of ld
5013 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5014 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5015 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5016 done
5017 test -z "$LD" && LD=$ac_prog
5018 ;;
5019 "")
5020 # If it fails, then pretend we aren't using GCC.
5021 ac_prog=ld
5022 ;;
5023 *)
5024 # If it is relative, then search for the first ld in PATH.
5025 with_gnu_ld=unknown
5026 ;;
5027 esac
5028 elif test yes = "$with_gnu_ld"; then
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5030 $as_echo_n "checking for GNU ld... " >&6; }
5031 else
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5033 $as_echo_n "checking for non-GNU ld... " >&6; }
5034 fi
5035 if ${lt_cv_path_LD+:} false; then :
5036 $as_echo_n "(cached) " >&6
5037 else
5038 if test -z "$LD"; then
5039 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5040 for ac_dir in $PATH; do
5041 IFS=$lt_save_ifs
5042 test -z "$ac_dir" && ac_dir=.
5043 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5044 lt_cv_path_LD=$ac_dir/$ac_prog
5045 # Check to see if the program is GNU ld. I'd rather use --version,
5046 # but apparently some variants of GNU ld only accept -v.
5047 # Break only if it was the GNU/non-GNU ld that we prefer.
5048 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5049 *GNU* | *'with BFD'*)
5050 test no != "$with_gnu_ld" && break
5051 ;;
5052 *)
5053 test yes != "$with_gnu_ld" && break
5054 ;;
5055 esac
5056 fi
5057 done
5058 IFS=$lt_save_ifs
5059 else
5060 lt_cv_path_LD=$LD # Let the user override the test with a path.
5061 fi
5062 fi
5063
5064 LD=$lt_cv_path_LD
5065 if test -n "$LD"; then
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5067 $as_echo "$LD" >&6; }
5068 else
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5070 $as_echo "no" >&6; }
5071 fi
5072 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5074 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5075 if ${lt_cv_prog_gnu_ld+:} false; then :
5076 $as_echo_n "(cached) " >&6
5077 else
5078 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5079 case `$LD -v 2>&1 </dev/null` in
5080 *GNU* | *'with BFD'*)
5081 lt_cv_prog_gnu_ld=yes
5082 ;;
5083 *)
5084 lt_cv_prog_gnu_ld=no
5085 ;;
5086 esac
5087 fi
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5089 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5090 with_gnu_ld=$lt_cv_prog_gnu_ld
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5101 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5102 if ${lt_cv_path_NM+:} false; then :
5103 $as_echo_n "(cached) " >&6
5104 else
5105 if test -n "$NM"; then
5106 # Let the user override the test.
5107 lt_cv_path_NM=$NM
5108 else
5109 lt_nm_to_check=${ac_tool_prefix}nm
5110 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5111 lt_nm_to_check="$lt_nm_to_check nm"
5112 fi
5113 for lt_tmp_nm in $lt_nm_to_check; do
5114 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5115 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5116 IFS=$lt_save_ifs
5117 test -z "$ac_dir" && ac_dir=.
5118 tmp_nm=$ac_dir/$lt_tmp_nm
5119 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5120 # Check to see if the nm accepts a BSD-compat flag.
5121 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5122 # nm: unknown option "B" ignored
5123 # Tru64's nm complains that /dev/null is an invalid object file
5124 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5125 case $build_os in
5126 mingw*) lt_bad_file=conftest.nm/nofile ;;
5127 *) lt_bad_file=/dev/null ;;
5128 esac
5129 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5130 *$lt_bad_file* | *'Invalid file or object type'*)
5131 lt_cv_path_NM="$tmp_nm -B"
5132 break 2
5133 ;;
5134 *)
5135 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5136 */dev/null*)
5137 lt_cv_path_NM="$tmp_nm -p"
5138 break 2
5139 ;;
5140 *)
5141 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5142 continue # so that we can try to find one that supports BSD flags
5143 ;;
5144 esac
5145 ;;
5146 esac
5147 fi
5148 done
5149 IFS=$lt_save_ifs
5150 done
5151 : ${lt_cv_path_NM=no}
5152 fi
5153 fi
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5155 $as_echo "$lt_cv_path_NM" >&6; }
5156 if test no != "$lt_cv_path_NM"; then
5157 NM=$lt_cv_path_NM
5158 else
5159 # Didn't find any BSD compatible name lister, look for dumpbin.
5160 if test -n "$DUMPBIN"; then :
5161 # Let the user override the test.
5162 else
5163 if test -n "$ac_tool_prefix"; then
5164 for ac_prog in dumpbin "link -dump"
5165 do
5166 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5167 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5169 $as_echo_n "checking for $ac_word... " >&6; }
5170 if ${ac_cv_prog_DUMPBIN+:} false; then :
5171 $as_echo_n "(cached) " >&6
5172 else
5173 if test -n "$DUMPBIN"; then
5174 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5175 else
5176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5177 for as_dir in $PATH
5178 do
5179 IFS=$as_save_IFS
5180 test -z "$as_dir" && as_dir=.
5181 for ac_exec_ext in '' $ac_executable_extensions; do
5182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5183 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5185 break 2
5186 fi
5187 done
5188 done
5189 IFS=$as_save_IFS
5190
5191 fi
5192 fi
5193 DUMPBIN=$ac_cv_prog_DUMPBIN
5194 if test -n "$DUMPBIN"; then
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5196 $as_echo "$DUMPBIN" >&6; }
5197 else
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5199 $as_echo "no" >&6; }
5200 fi
5201
5202
5203 test -n "$DUMPBIN" && break
5204 done
5205 fi
5206 if test -z "$DUMPBIN"; then
5207 ac_ct_DUMPBIN=$DUMPBIN
5208 for ac_prog in dumpbin "link -dump"
5209 do
5210 # Extract the first word of "$ac_prog", so it can be a program name with args.
5211 set dummy $ac_prog; ac_word=$2
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5213 $as_echo_n "checking for $ac_word... " >&6; }
5214 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5215 $as_echo_n "(cached) " >&6
5216 else
5217 if test -n "$ac_ct_DUMPBIN"; then
5218 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5219 else
5220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5221 for as_dir in $PATH
5222 do
5223 IFS=$as_save_IFS
5224 test -z "$as_dir" && as_dir=.
5225 for ac_exec_ext in '' $ac_executable_extensions; do
5226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5227 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5229 break 2
5230 fi
5231 done
5232 done
5233 IFS=$as_save_IFS
5234
5235 fi
5236 fi
5237 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5238 if test -n "$ac_ct_DUMPBIN"; then
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5240 $as_echo "$ac_ct_DUMPBIN" >&6; }
5241 else
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5243 $as_echo "no" >&6; }
5244 fi
5245
5246
5247 test -n "$ac_ct_DUMPBIN" && break
5248 done
5249
5250 if test "x$ac_ct_DUMPBIN" = x; then
5251 DUMPBIN=":"
5252 else
5253 case $cross_compiling:$ac_tool_warned in
5254 yes:)
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5256 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5257 ac_tool_warned=yes ;;
5258 esac
5259 DUMPBIN=$ac_ct_DUMPBIN
5260 fi
5261 fi
5262
5263 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5264 *COFF*)
5265 DUMPBIN="$DUMPBIN -symbols -headers"
5266 ;;
5267 *)
5268 DUMPBIN=:
5269 ;;
5270 esac
5271 fi
5272
5273 if test : != "$DUMPBIN"; then
5274 NM=$DUMPBIN
5275 fi
5276 fi
5277 test -z "$NM" && NM=nm
5278
5279
5280
5281
5282
5283
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5285 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5286 if ${lt_cv_nm_interface+:} false; then :
5287 $as_echo_n "(cached) " >&6
5288 else
5289 lt_cv_nm_interface="BSD nm"
5290 echo "int some_variable = 0;" > conftest.$ac_ext
5291 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5292 (eval "$ac_compile" 2>conftest.err)
5293 cat conftest.err >&5
5294 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5295 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5296 cat conftest.err >&5
5297 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5298 cat conftest.out >&5
5299 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5300 lt_cv_nm_interface="MS dumpbin"
5301 fi
5302 rm -f conftest*
5303 fi
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5305 $as_echo "$lt_cv_nm_interface" >&6; }
5306
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5308 $as_echo_n "checking whether ln -s works... " >&6; }
5309 LN_S=$as_ln_s
5310 if test "$LN_S" = "ln -s"; then
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5312 $as_echo "yes" >&6; }
5313 else
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5315 $as_echo "no, using $LN_S" >&6; }
5316 fi
5317
5318 # find the maximum length of command line arguments
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5320 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5321 if ${lt_cv_sys_max_cmd_len+:} false; then :
5322 $as_echo_n "(cached) " >&6
5323 else
5324 i=0
5325 teststring=ABCD
5326
5327 case $build_os in
5328 msdosdjgpp*)
5329 # On DJGPP, this test can blow up pretty badly due to problems in libc
5330 # (any single argument exceeding 2000 bytes causes a buffer overrun
5331 # during glob expansion). Even if it were fixed, the result of this
5332 # check would be larger than it should be.
5333 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5334 ;;
5335
5336 gnu*)
5337 # Under GNU Hurd, this test is not required because there is
5338 # no limit to the length of command line arguments.
5339 # Libtool will interpret -1 as no limit whatsoever
5340 lt_cv_sys_max_cmd_len=-1;
5341 ;;
5342
5343 cygwin* | mingw* | cegcc*)
5344 # On Win9x/ME, this test blows up -- it succeeds, but takes
5345 # about 5 minutes as the teststring grows exponentially.
5346 # Worse, since 9x/ME are not pre-emptively multitasking,
5347 # you end up with a "frozen" computer, even though with patience
5348 # the test eventually succeeds (with a max line length of 256k).
5349 # Instead, let's just punt: use the minimum linelength reported by
5350 # all of the supported platforms: 8192 (on NT/2K/XP).
5351 lt_cv_sys_max_cmd_len=8192;
5352 ;;
5353
5354 mint*)
5355 # On MiNT this can take a long time and run out of memory.
5356 lt_cv_sys_max_cmd_len=8192;
5357 ;;
5358
5359 amigaos*)
5360 # On AmigaOS with pdksh, this test takes hours, literally.
5361 # So we just punt and use a minimum line length of 8192.
5362 lt_cv_sys_max_cmd_len=8192;
5363 ;;
5364
5365 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5366 # This has been around since 386BSD, at least. Likely further.
5367 if test -x /sbin/sysctl; then
5368 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5369 elif test -x /usr/sbin/sysctl; then
5370 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5371 else
5372 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5373 fi
5374 # And add a safety zone
5375 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5376 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5377 ;;
5378
5379 interix*)
5380 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5381 lt_cv_sys_max_cmd_len=196608
5382 ;;
5383
5384 os2*)
5385 # The test takes a long time on OS/2.
5386 lt_cv_sys_max_cmd_len=8192
5387 ;;
5388
5389 osf*)
5390 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5391 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5392 # nice to cause kernel panics so lets avoid the loop below.
5393 # First set a reasonable default.
5394 lt_cv_sys_max_cmd_len=16384
5395 #
5396 if test -x /sbin/sysconfig; then
5397 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5398 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5399 esac
5400 fi
5401 ;;
5402 sco3.2v5*)
5403 lt_cv_sys_max_cmd_len=102400
5404 ;;
5405 sysv5* | sco5v6* | sysv4.2uw2*)
5406 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5407 if test -n "$kargmax"; then
5408 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5409 else
5410 lt_cv_sys_max_cmd_len=32768
5411 fi
5412 ;;
5413 *)
5414 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5415 if test -n "$lt_cv_sys_max_cmd_len" && \
5416 test undefined != "$lt_cv_sys_max_cmd_len"; then
5417 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5418 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5419 else
5420 # Make teststring a little bigger before we do anything with it.
5421 # a 1K string should be a reasonable start.
5422 for i in 1 2 3 4 5 6 7 8; do
5423 teststring=$teststring$teststring
5424 done
5425 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5426 # If test is not a shell built-in, we'll probably end up computing a
5427 # maximum length that is only half of the actual maximum length, but
5428 # we can't tell.
5429 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5430 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5431 test 17 != "$i" # 1/2 MB should be enough
5432 do
5433 i=`expr $i + 1`
5434 teststring=$teststring$teststring
5435 done
5436 # Only check the string length outside the loop.
5437 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5438 teststring=
5439 # Add a significant safety factor because C++ compilers can tack on
5440 # massive amounts of additional arguments before passing them to the
5441 # linker. It appears as though 1/2 is a usable value.
5442 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5443 fi
5444 ;;
5445 esac
5446
5447 fi
5448
5449 if test -n "$lt_cv_sys_max_cmd_len"; then
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5451 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5452 else
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5454 $as_echo "none" >&6; }
5455 fi
5456 max_cmd_len=$lt_cv_sys_max_cmd_len
5457
5458
5459
5460
5461
5462
5463 : ${CP="cp -f"}
5464 : ${MV="mv -f"}
5465 : ${RM="rm -f"}
5466
5467 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5468 lt_unset=unset
5469 else
5470 lt_unset=false
5471 fi
5472
5473
5474
5475
5476
5477 # test EBCDIC or ASCII
5478 case `echo X|tr X '\101'` in
5479 A) # ASCII based system
5480 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5481 lt_SP2NL='tr \040 \012'
5482 lt_NL2SP='tr \015\012 \040\040'
5483 ;;
5484 *) # EBCDIC based system
5485 lt_SP2NL='tr \100 \n'
5486 lt_NL2SP='tr \r\n \100\100'
5487 ;;
5488 esac
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5499 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5500 if ${lt_cv_to_host_file_cmd+:} false; then :
5501 $as_echo_n "(cached) " >&6
5502 else
5503 case $host in
5504 *-*-mingw* )
5505 case $build in
5506 *-*-mingw* ) # actually msys
5507 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5508 ;;
5509 *-*-cygwin* )
5510 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5511 ;;
5512 * ) # otherwise, assume *nix
5513 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5514 ;;
5515 esac
5516 ;;
5517 *-*-cygwin* )
5518 case $build in
5519 *-*-mingw* ) # actually msys
5520 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5521 ;;
5522 *-*-cygwin* )
5523 lt_cv_to_host_file_cmd=func_convert_file_noop
5524 ;;
5525 * ) # otherwise, assume *nix
5526 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5527 ;;
5528 esac
5529 ;;
5530 * ) # unhandled hosts (and "normal" native builds)
5531 lt_cv_to_host_file_cmd=func_convert_file_noop
5532 ;;
5533 esac
5534
5535 fi
5536
5537 to_host_file_cmd=$lt_cv_to_host_file_cmd
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5539 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5540
5541
5542
5543
5544
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5546 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5547 if ${lt_cv_to_tool_file_cmd+:} false; then :
5548 $as_echo_n "(cached) " >&6
5549 else
5550 #assume ordinary cross tools, or native build.
5551 lt_cv_to_tool_file_cmd=func_convert_file_noop
5552 case $host in
5553 *-*-mingw* )
5554 case $build in
5555 *-*-mingw* ) # actually msys
5556 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5557 ;;
5558 esac
5559 ;;
5560 esac
5561
5562 fi
5563
5564 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5566 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5567
5568
5569
5570
5571
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5573 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5574 if ${lt_cv_ld_reload_flag+:} false; then :
5575 $as_echo_n "(cached) " >&6
5576 else
5577 lt_cv_ld_reload_flag='-r'
5578 fi
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5580 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5581 reload_flag=$lt_cv_ld_reload_flag
5582 case $reload_flag in
5583 "" | " "*) ;;
5584 *) reload_flag=" $reload_flag" ;;
5585 esac
5586 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5587 case $host_os in
5588 cygwin* | mingw* | pw32* | cegcc*)
5589 if test yes != "$GCC"; then
5590 reload_cmds=false
5591 fi
5592 ;;
5593 darwin*)
5594 if test yes = "$GCC"; then
5595 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5596 else
5597 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5598 fi
5599 ;;
5600 esac
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610 if test -n "$ac_tool_prefix"; then
5611 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5612 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5614 $as_echo_n "checking for $ac_word... " >&6; }
5615 if ${ac_cv_prog_OBJDUMP+:} false; then :
5616 $as_echo_n "(cached) " >&6
5617 else
5618 if test -n "$OBJDUMP"; then
5619 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5620 else
5621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5622 for as_dir in $PATH
5623 do
5624 IFS=$as_save_IFS
5625 test -z "$as_dir" && as_dir=.
5626 for ac_exec_ext in '' $ac_executable_extensions; do
5627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5628 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5630 break 2
5631 fi
5632 done
5633 done
5634 IFS=$as_save_IFS
5635
5636 fi
5637 fi
5638 OBJDUMP=$ac_cv_prog_OBJDUMP
5639 if test -n "$OBJDUMP"; then
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5641 $as_echo "$OBJDUMP" >&6; }
5642 else
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5644 $as_echo "no" >&6; }
5645 fi
5646
5647
5648 fi
5649 if test -z "$ac_cv_prog_OBJDUMP"; then
5650 ac_ct_OBJDUMP=$OBJDUMP
5651 # Extract the first word of "objdump", so it can be a program name with args.
5652 set dummy objdump; ac_word=$2
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5654 $as_echo_n "checking for $ac_word... " >&6; }
5655 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5656 $as_echo_n "(cached) " >&6
5657 else
5658 if test -n "$ac_ct_OBJDUMP"; then
5659 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5660 else
5661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5662 for as_dir in $PATH
5663 do
5664 IFS=$as_save_IFS
5665 test -z "$as_dir" && as_dir=.
5666 for ac_exec_ext in '' $ac_executable_extensions; do
5667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5668 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5670 break 2
5671 fi
5672 done
5673 done
5674 IFS=$as_save_IFS
5675
5676 fi
5677 fi
5678 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5679 if test -n "$ac_ct_OBJDUMP"; then
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5681 $as_echo "$ac_ct_OBJDUMP" >&6; }
5682 else
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5684 $as_echo "no" >&6; }
5685 fi
5686
5687 if test "x$ac_ct_OBJDUMP" = x; then
5688 OBJDUMP="false"
5689 else
5690 case $cross_compiling:$ac_tool_warned in
5691 yes:)
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5693 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5694 ac_tool_warned=yes ;;
5695 esac
5696 OBJDUMP=$ac_ct_OBJDUMP
5697 fi
5698 else
5699 OBJDUMP="$ac_cv_prog_OBJDUMP"
5700 fi
5701
5702 test -z "$OBJDUMP" && OBJDUMP=objdump
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5713 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5714 if ${lt_cv_deplibs_check_method+:} false; then :
5715 $as_echo_n "(cached) " >&6
5716 else
5717 lt_cv_file_magic_cmd='$MAGIC_CMD'
5718 lt_cv_file_magic_test_file=
5719 lt_cv_deplibs_check_method='unknown'
5720 # Need to set the preceding variable on all platforms that support
5721 # interlibrary dependencies.
5722 # 'none' -- dependencies not supported.
5723 # 'unknown' -- same as none, but documents that we really don't know.
5724 # 'pass_all' -- all dependencies passed with no checks.
5725 # 'test_compile' -- check by making test program.
5726 # 'file_magic [[regex]]' -- check by looking for files in library path
5727 # that responds to the $file_magic_cmd with a given extended regex.
5728 # If you have 'file' or equivalent on your system and you're not sure
5729 # whether 'pass_all' will *always* work, you probably want this one.
5730
5731 case $host_os in
5732 aix[4-9]*)
5733 lt_cv_deplibs_check_method=pass_all
5734 ;;
5735
5736 beos*)
5737 lt_cv_deplibs_check_method=pass_all
5738 ;;
5739
5740 bsdi[45]*)
5741 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5742 lt_cv_file_magic_cmd='/usr/bin/file -L'
5743 lt_cv_file_magic_test_file=/shlib/libc.so
5744 ;;
5745
5746 cygwin*)
5747 # func_win32_libid is a shell function defined in ltmain.sh
5748 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5749 lt_cv_file_magic_cmd='func_win32_libid'
5750 ;;
5751
5752 mingw* | pw32*)
5753 # Base MSYS/MinGW do not provide the 'file' command needed by
5754 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5755 # unless we find 'file', for example because we are cross-compiling.
5756 if ( file / ) >/dev/null 2>&1; then
5757 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5758 lt_cv_file_magic_cmd='func_win32_libid'
5759 else
5760 # Keep this pattern in sync with the one in func_win32_libid.
5761 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5762 lt_cv_file_magic_cmd='$OBJDUMP -f'
5763 fi
5764 ;;
5765
5766 cegcc*)
5767 # use the weaker test based on 'objdump'. See mingw*.
5768 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5769 lt_cv_file_magic_cmd='$OBJDUMP -f'
5770 ;;
5771
5772 darwin* | rhapsody*)
5773 lt_cv_deplibs_check_method=pass_all
5774 ;;
5775
5776 freebsd* | dragonfly*)
5777 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5778 case $host_cpu in
5779 i*86 )
5780 # Not sure whether the presence of OpenBSD here was a mistake.
5781 # Let's accept both of them until this is cleared up.
5782 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5783 lt_cv_file_magic_cmd=/usr/bin/file
5784 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5785 ;;
5786 esac
5787 else
5788 lt_cv_deplibs_check_method=pass_all
5789 fi
5790 ;;
5791
5792 haiku*)
5793 lt_cv_deplibs_check_method=pass_all
5794 ;;
5795
5796 hpux10.20* | hpux11*)
5797 lt_cv_file_magic_cmd=/usr/bin/file
5798 case $host_cpu in
5799 ia64*)
5800 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5801 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5802 ;;
5803 hppa*64*)
5804 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]'
5805 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5806 ;;
5807 *)
5808 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5809 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5810 ;;
5811 esac
5812 ;;
5813
5814 interix[3-9]*)
5815 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5816 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5817 ;;
5818
5819 irix5* | irix6* | nonstopux*)
5820 case $LD in
5821 *-32|*"-32 ") libmagic=32-bit;;
5822 *-n32|*"-n32 ") libmagic=N32;;
5823 *-64|*"-64 ") libmagic=64-bit;;
5824 *) libmagic=never-match;;
5825 esac
5826 lt_cv_deplibs_check_method=pass_all
5827 ;;
5828
5829 # This must be glibc/ELF.
5830 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5831 lt_cv_deplibs_check_method=pass_all
5832 ;;
5833
5834 netbsd*)
5835 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5836 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5837 else
5838 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5839 fi
5840 ;;
5841
5842 newos6*)
5843 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5844 lt_cv_file_magic_cmd=/usr/bin/file
5845 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5846 ;;
5847
5848 *nto* | *qnx*)
5849 lt_cv_deplibs_check_method=pass_all
5850 ;;
5851
5852 openbsd* | bitrig*)
5853 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5854 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5855 else
5856 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5857 fi
5858 ;;
5859
5860 osf3* | osf4* | osf5*)
5861 lt_cv_deplibs_check_method=pass_all
5862 ;;
5863
5864 rdos*)
5865 lt_cv_deplibs_check_method=pass_all
5866 ;;
5867
5868 solaris*)
5869 lt_cv_deplibs_check_method=pass_all
5870 ;;
5871
5872 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5873 lt_cv_deplibs_check_method=pass_all
5874 ;;
5875
5876 sysv4 | sysv4.3*)
5877 case $host_vendor in
5878 motorola)
5879 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]'
5880 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5881 ;;
5882 ncr)
5883 lt_cv_deplibs_check_method=pass_all
5884 ;;
5885 sequent)
5886 lt_cv_file_magic_cmd='/bin/file'
5887 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5888 ;;
5889 sni)
5890 lt_cv_file_magic_cmd='/bin/file'
5891 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5892 lt_cv_file_magic_test_file=/lib/libc.so
5893 ;;
5894 siemens)
5895 lt_cv_deplibs_check_method=pass_all
5896 ;;
5897 pc)
5898 lt_cv_deplibs_check_method=pass_all
5899 ;;
5900 esac
5901 ;;
5902
5903 tpf*)
5904 lt_cv_deplibs_check_method=pass_all
5905 ;;
5906 os2*)
5907 lt_cv_deplibs_check_method=pass_all
5908 ;;
5909 esac
5910
5911 fi
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5913 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5914
5915 file_magic_glob=
5916 want_nocaseglob=no
5917 if test "$build" = "$host"; then
5918 case $host_os in
5919 mingw* | pw32*)
5920 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5921 want_nocaseglob=yes
5922 else
5923 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5924 fi
5925 ;;
5926 esac
5927 fi
5928
5929 file_magic_cmd=$lt_cv_file_magic_cmd
5930 deplibs_check_method=$lt_cv_deplibs_check_method
5931 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954 if test -n "$ac_tool_prefix"; then
5955 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5956 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5958 $as_echo_n "checking for $ac_word... " >&6; }
5959 if ${ac_cv_prog_DLLTOOL+:} false; then :
5960 $as_echo_n "(cached) " >&6
5961 else
5962 if test -n "$DLLTOOL"; then
5963 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5964 else
5965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5966 for as_dir in $PATH
5967 do
5968 IFS=$as_save_IFS
5969 test -z "$as_dir" && as_dir=.
5970 for ac_exec_ext in '' $ac_executable_extensions; do
5971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5972 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5974 break 2
5975 fi
5976 done
5977 done
5978 IFS=$as_save_IFS
5979
5980 fi
5981 fi
5982 DLLTOOL=$ac_cv_prog_DLLTOOL
5983 if test -n "$DLLTOOL"; then
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5985 $as_echo "$DLLTOOL" >&6; }
5986 else
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5988 $as_echo "no" >&6; }
5989 fi
5990
5991
5992 fi
5993 if test -z "$ac_cv_prog_DLLTOOL"; then
5994 ac_ct_DLLTOOL=$DLLTOOL
5995 # Extract the first word of "dlltool", so it can be a program name with args.
5996 set dummy dlltool; ac_word=$2
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5998 $as_echo_n "checking for $ac_word... " >&6; }
5999 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6000 $as_echo_n "(cached) " >&6
6001 else
6002 if test -n "$ac_ct_DLLTOOL"; then
6003 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6004 else
6005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6006 for as_dir in $PATH
6007 do
6008 IFS=$as_save_IFS
6009 test -z "$as_dir" && as_dir=.
6010 for ac_exec_ext in '' $ac_executable_extensions; do
6011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6012 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6014 break 2
6015 fi
6016 done
6017 done
6018 IFS=$as_save_IFS
6019
6020 fi
6021 fi
6022 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6023 if test -n "$ac_ct_DLLTOOL"; then
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6025 $as_echo "$ac_ct_DLLTOOL" >&6; }
6026 else
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6028 $as_echo "no" >&6; }
6029 fi
6030
6031 if test "x$ac_ct_DLLTOOL" = x; then
6032 DLLTOOL="false"
6033 else
6034 case $cross_compiling:$ac_tool_warned in
6035 yes:)
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6037 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6038 ac_tool_warned=yes ;;
6039 esac
6040 DLLTOOL=$ac_ct_DLLTOOL
6041 fi
6042 else
6043 DLLTOOL="$ac_cv_prog_DLLTOOL"
6044 fi
6045
6046 test -z "$DLLTOOL" && DLLTOOL=dlltool
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6058 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6059 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6060 $as_echo_n "(cached) " >&6
6061 else
6062 lt_cv_sharedlib_from_linklib_cmd='unknown'
6063
6064 case $host_os in
6065 cygwin* | mingw* | pw32* | cegcc*)
6066 # two different shell functions defined in ltmain.sh;
6067 # decide which one to use based on capabilities of $DLLTOOL
6068 case `$DLLTOOL --help 2>&1` in
6069 *--identify-strict*)
6070 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6071 ;;
6072 *)
6073 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6074 ;;
6075 esac
6076 ;;
6077 *)
6078 # fallback: assume linklib IS sharedlib
6079 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6080 ;;
6081 esac
6082
6083 fi
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6085 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6086 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6087 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6088
6089
6090
6091
6092
6093
6094
6095 if test -n "$ac_tool_prefix"; then
6096 for ac_prog in ar
6097 do
6098 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6099 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6101 $as_echo_n "checking for $ac_word... " >&6; }
6102 if ${ac_cv_prog_AR+:} false; then :
6103 $as_echo_n "(cached) " >&6
6104 else
6105 if test -n "$AR"; then
6106 ac_cv_prog_AR="$AR" # Let the user override the test.
6107 else
6108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6109 for as_dir in $PATH
6110 do
6111 IFS=$as_save_IFS
6112 test -z "$as_dir" && as_dir=.
6113 for ac_exec_ext in '' $ac_executable_extensions; do
6114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6115 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6117 break 2
6118 fi
6119 done
6120 done
6121 IFS=$as_save_IFS
6122
6123 fi
6124 fi
6125 AR=$ac_cv_prog_AR
6126 if test -n "$AR"; then
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6128 $as_echo "$AR" >&6; }
6129 else
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6131 $as_echo "no" >&6; }
6132 fi
6133
6134
6135 test -n "$AR" && break
6136 done
6137 fi
6138 if test -z "$AR"; then
6139 ac_ct_AR=$AR
6140 for ac_prog in ar
6141 do
6142 # Extract the first word of "$ac_prog", so it can be a program name with args.
6143 set dummy $ac_prog; ac_word=$2
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6145 $as_echo_n "checking for $ac_word... " >&6; }
6146 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6147 $as_echo_n "(cached) " >&6
6148 else
6149 if test -n "$ac_ct_AR"; then
6150 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6151 else
6152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6153 for as_dir in $PATH
6154 do
6155 IFS=$as_save_IFS
6156 test -z "$as_dir" && as_dir=.
6157 for ac_exec_ext in '' $ac_executable_extensions; do
6158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6159 ac_cv_prog_ac_ct_AR="$ac_prog"
6160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6161 break 2
6162 fi
6163 done
6164 done
6165 IFS=$as_save_IFS
6166
6167 fi
6168 fi
6169 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6170 if test -n "$ac_ct_AR"; then
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6172 $as_echo "$ac_ct_AR" >&6; }
6173 else
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6175 $as_echo "no" >&6; }
6176 fi
6177
6178
6179 test -n "$ac_ct_AR" && break
6180 done
6181
6182 if test "x$ac_ct_AR" = x; then
6183 AR="false"
6184 else
6185 case $cross_compiling:$ac_tool_warned in
6186 yes:)
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6188 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6189 ac_tool_warned=yes ;;
6190 esac
6191 AR=$ac_ct_AR
6192 fi
6193 fi
6194
6195 : ${AR=ar}
6196 : ${AR_FLAGS=cru}
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6209 $as_echo_n "checking for archiver @FILE support... " >&6; }
6210 if ${lt_cv_ar_at_file+:} false; then :
6211 $as_echo_n "(cached) " >&6
6212 else
6213 lt_cv_ar_at_file=no
6214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6215 /* end confdefs.h. */
6216
6217 int
6218 main ()
6219 {
6220
6221 ;
6222 return 0;
6223 }
6224 _ACEOF
6225 if ac_fn_c_try_compile "$LINENO"; then :
6226 echo conftest.$ac_objext > conftest.lst
6227 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6228 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6229 (eval $lt_ar_try) 2>&5
6230 ac_status=$?
6231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6232 test $ac_status = 0; }
6233 if test 0 -eq "$ac_status"; then
6234 # Ensure the archiver fails upon bogus file names.
6235 rm -f conftest.$ac_objext libconftest.a
6236 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6237 (eval $lt_ar_try) 2>&5
6238 ac_status=$?
6239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6240 test $ac_status = 0; }
6241 if test 0 -ne "$ac_status"; then
6242 lt_cv_ar_at_file=@
6243 fi
6244 fi
6245 rm -f conftest.* libconftest.a
6246
6247 fi
6248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6249
6250 fi
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6252 $as_echo "$lt_cv_ar_at_file" >&6; }
6253
6254 if test no = "$lt_cv_ar_at_file"; then
6255 archiver_list_spec=
6256 else
6257 archiver_list_spec=$lt_cv_ar_at_file
6258 fi
6259
6260
6261
6262
6263
6264
6265
6266 if test -n "$ac_tool_prefix"; then
6267 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6268 set dummy ${ac_tool_prefix}strip; ac_word=$2
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6270 $as_echo_n "checking for $ac_word... " >&6; }
6271 if ${ac_cv_prog_STRIP+:} false; then :
6272 $as_echo_n "(cached) " >&6
6273 else
6274 if test -n "$STRIP"; then
6275 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6276 else
6277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6278 for as_dir in $PATH
6279 do
6280 IFS=$as_save_IFS
6281 test -z "$as_dir" && as_dir=.
6282 for ac_exec_ext in '' $ac_executable_extensions; do
6283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6284 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6286 break 2
6287 fi
6288 done
6289 done
6290 IFS=$as_save_IFS
6291
6292 fi
6293 fi
6294 STRIP=$ac_cv_prog_STRIP
6295 if test -n "$STRIP"; then
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6297 $as_echo "$STRIP" >&6; }
6298 else
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6300 $as_echo "no" >&6; }
6301 fi
6302
6303
6304 fi
6305 if test -z "$ac_cv_prog_STRIP"; then
6306 ac_ct_STRIP=$STRIP
6307 # Extract the first word of "strip", so it can be a program name with args.
6308 set dummy strip; ac_word=$2
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6310 $as_echo_n "checking for $ac_word... " >&6; }
6311 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6312 $as_echo_n "(cached) " >&6
6313 else
6314 if test -n "$ac_ct_STRIP"; then
6315 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6316 else
6317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6318 for as_dir in $PATH
6319 do
6320 IFS=$as_save_IFS
6321 test -z "$as_dir" && as_dir=.
6322 for ac_exec_ext in '' $ac_executable_extensions; do
6323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6324 ac_cv_prog_ac_ct_STRIP="strip"
6325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6326 break 2
6327 fi
6328 done
6329 done
6330 IFS=$as_save_IFS
6331
6332 fi
6333 fi
6334 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6335 if test -n "$ac_ct_STRIP"; then
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6337 $as_echo "$ac_ct_STRIP" >&6; }
6338 else
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6340 $as_echo "no" >&6; }
6341 fi
6342
6343 if test "x$ac_ct_STRIP" = x; then
6344 STRIP=":"
6345 else
6346 case $cross_compiling:$ac_tool_warned in
6347 yes:)
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6349 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6350 ac_tool_warned=yes ;;
6351 esac
6352 STRIP=$ac_ct_STRIP
6353 fi
6354 else
6355 STRIP="$ac_cv_prog_STRIP"
6356 fi
6357
6358 test -z "$STRIP" && STRIP=:
6359
6360
6361
6362
6363
6364
6365 if test -n "$ac_tool_prefix"; then
6366 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6367 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6369 $as_echo_n "checking for $ac_word... " >&6; }
6370 if ${ac_cv_prog_RANLIB+:} false; then :
6371 $as_echo_n "(cached) " >&6
6372 else
6373 if test -n "$RANLIB"; then
6374 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6375 else
6376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6377 for as_dir in $PATH
6378 do
6379 IFS=$as_save_IFS
6380 test -z "$as_dir" && as_dir=.
6381 for ac_exec_ext in '' $ac_executable_extensions; do
6382 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6383 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6385 break 2
6386 fi
6387 done
6388 done
6389 IFS=$as_save_IFS
6390
6391 fi
6392 fi
6393 RANLIB=$ac_cv_prog_RANLIB
6394 if test -n "$RANLIB"; then
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6396 $as_echo "$RANLIB" >&6; }
6397 else
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6399 $as_echo "no" >&6; }
6400 fi
6401
6402
6403 fi
6404 if test -z "$ac_cv_prog_RANLIB"; then
6405 ac_ct_RANLIB=$RANLIB
6406 # Extract the first word of "ranlib", so it can be a program name with args.
6407 set dummy ranlib; ac_word=$2
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6409 $as_echo_n "checking for $ac_word... " >&6; }
6410 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6411 $as_echo_n "(cached) " >&6
6412 else
6413 if test -n "$ac_ct_RANLIB"; then
6414 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6415 else
6416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6417 for as_dir in $PATH
6418 do
6419 IFS=$as_save_IFS
6420 test -z "$as_dir" && as_dir=.
6421 for ac_exec_ext in '' $ac_executable_extensions; do
6422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6423 ac_cv_prog_ac_ct_RANLIB="ranlib"
6424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6425 break 2
6426 fi
6427 done
6428 done
6429 IFS=$as_save_IFS
6430
6431 fi
6432 fi
6433 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6434 if test -n "$ac_ct_RANLIB"; then
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6436 $as_echo "$ac_ct_RANLIB" >&6; }
6437 else
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6439 $as_echo "no" >&6; }
6440 fi
6441
6442 if test "x$ac_ct_RANLIB" = x; then
6443 RANLIB=":"
6444 else
6445 case $cross_compiling:$ac_tool_warned in
6446 yes:)
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6448 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6449 ac_tool_warned=yes ;;
6450 esac
6451 RANLIB=$ac_ct_RANLIB
6452 fi
6453 else
6454 RANLIB="$ac_cv_prog_RANLIB"
6455 fi
6456
6457 test -z "$RANLIB" && RANLIB=:
6458
6459
6460
6461
6462
6463
6464 # Determine commands to create old-style static archives.
6465 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6466 old_postinstall_cmds='chmod 644 $oldlib'
6467 old_postuninstall_cmds=
6468
6469 if test -n "$RANLIB"; then
6470 case $host_os in
6471 bitrig* | openbsd*)
6472 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6473 ;;
6474 *)
6475 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6476 ;;
6477 esac
6478 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6479 fi
6480
6481 case $host_os in
6482 darwin*)
6483 lock_old_archive_extraction=yes ;;
6484 *)
6485 lock_old_archive_extraction=no ;;
6486 esac
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526 # If no C compiler was specified, use CC.
6527 LTCC=${LTCC-"$CC"}
6528
6529 # If no C compiler flags were specified, use CFLAGS.
6530 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6531
6532 # Allow CC to be a program name with arguments.
6533 compiler=$CC
6534
6535
6536 # Check for command to grab the raw symbol name followed by C symbol from nm.
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6538 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6539 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6540 $as_echo_n "(cached) " >&6
6541 else
6542
6543 # These are sane defaults that work on at least a few old systems.
6544 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6545
6546 # Character class describing NM global symbol codes.
6547 symcode='[BCDEGRST]'
6548
6549 # Regexp to match symbols that can be accessed directly from C.
6550 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6551
6552 # Define system-specific variables.
6553 case $host_os in
6554 aix*)
6555 symcode='[BCDT]'
6556 ;;
6557 cygwin* | mingw* | pw32* | cegcc*)
6558 symcode='[ABCDGISTW]'
6559 ;;
6560 hpux*)
6561 if test ia64 = "$host_cpu"; then
6562 symcode='[ABCDEGRST]'
6563 fi
6564 ;;
6565 irix* | nonstopux*)
6566 symcode='[BCDEGRST]'
6567 ;;
6568 osf*)
6569 symcode='[BCDEGQRST]'
6570 ;;
6571 solaris*)
6572 symcode='[BDRT]'
6573 ;;
6574 sco3.2v5*)
6575 symcode='[DT]'
6576 ;;
6577 sysv4.2uw2*)
6578 symcode='[DT]'
6579 ;;
6580 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6581 symcode='[ABDT]'
6582 ;;
6583 sysv4)
6584 symcode='[DFNSTU]'
6585 ;;
6586 esac
6587
6588 # If we're using GNU nm, then use its standard symbol codes.
6589 case `$NM -V 2>&1` in
6590 *GNU* | *'with BFD'*)
6591 symcode='[ABCDGIRSTW]' ;;
6592 esac
6593
6594 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6595 # Gets list of data symbols to import.
6596 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6597 # Adjust the below global symbol transforms to fixup imported variables.
6598 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6599 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6600 lt_c_name_lib_hook="\
6601 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6602 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6603 else
6604 # Disable hooks by default.
6605 lt_cv_sys_global_symbol_to_import=
6606 lt_cdecl_hook=
6607 lt_c_name_hook=
6608 lt_c_name_lib_hook=
6609 fi
6610
6611 # Transform an extracted symbol line into a proper C declaration.
6612 # Some systems (esp. on ia64) link data and code symbols differently,
6613 # so use this general approach.
6614 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6615 $lt_cdecl_hook\
6616 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6617 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6618
6619 # Transform an extracted symbol line into symbol name and symbol address
6620 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6621 $lt_c_name_hook\
6622 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6623 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6624
6625 # Transform an extracted symbol line into symbol name with lib prefix and
6626 # symbol address.
6627 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6628 $lt_c_name_lib_hook\
6629 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6630 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6631 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6632
6633 # Handle CRLF in mingw tool chain
6634 opt_cr=
6635 case $build_os in
6636 mingw*)
6637 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6638 ;;
6639 esac
6640
6641 # Try without a prefix underscore, then with it.
6642 for ac_symprfx in "" "_"; do
6643
6644 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6645 symxfrm="\\1 $ac_symprfx\\2 \\2"
6646
6647 # Write the raw and C identifiers.
6648 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6649 # Fake it for dumpbin and say T for any non-static function,
6650 # D for any global variable and I for any imported variable.
6651 # Also find C++ and __fastcall symbols from MSVC++,
6652 # which start with @ or ?.
6653 lt_cv_sys_global_symbol_pipe="$AWK '"\
6654 " {last_section=section; section=\$ 3};"\
6655 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6656 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6657 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6658 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6659 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6660 " \$ 0!~/External *\|/{next};"\
6661 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6662 " {if(hide[section]) next};"\
6663 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6664 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6665 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6666 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6667 " ' prfx=^$ac_symprfx"
6668 else
6669 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6670 fi
6671 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6672
6673 # Check to see that the pipe works correctly.
6674 pipe_works=no
6675
6676 rm -f conftest*
6677 cat > conftest.$ac_ext <<_LT_EOF
6678 #ifdef __cplusplus
6679 extern "C" {
6680 #endif
6681 char nm_test_var;
6682 void nm_test_func(void);
6683 void nm_test_func(void){}
6684 #ifdef __cplusplus
6685 }
6686 #endif
6687 int main(){nm_test_var='a';nm_test_func();return(0);}
6688 _LT_EOF
6689
6690 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6691 (eval $ac_compile) 2>&5
6692 ac_status=$?
6693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6694 test $ac_status = 0; }; then
6695 # Now try to grab the symbols.
6696 nlist=conftest.nm
6697 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6698 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6699 ac_status=$?
6700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6701 test $ac_status = 0; } && test -s "$nlist"; then
6702 # Try sorting and uniquifying the output.
6703 if sort "$nlist" | uniq > "$nlist"T; then
6704 mv -f "$nlist"T "$nlist"
6705 else
6706 rm -f "$nlist"T
6707 fi
6708
6709 # Make sure that we snagged all the symbols we need.
6710 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6711 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6712 cat <<_LT_EOF > conftest.$ac_ext
6713 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6714 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6715 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6716 relocations are performed -- see ld's documentation on pseudo-relocs. */
6717 # define LT_DLSYM_CONST
6718 #elif defined __osf__
6719 /* This system does not cope well with relocations in const data. */
6720 # define LT_DLSYM_CONST
6721 #else
6722 # define LT_DLSYM_CONST const
6723 #endif
6724
6725 #ifdef __cplusplus
6726 extern "C" {
6727 #endif
6728
6729 _LT_EOF
6730 # Now generate the symbol file.
6731 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6732
6733 cat <<_LT_EOF >> conftest.$ac_ext
6734
6735 /* The mapping between symbol names and symbols. */
6736 LT_DLSYM_CONST struct {
6737 const char *name;
6738 void *address;
6739 }
6740 lt__PROGRAM__LTX_preloaded_symbols[] =
6741 {
6742 { "@PROGRAM@", (void *) 0 },
6743 _LT_EOF
6744 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6745 cat <<\_LT_EOF >> conftest.$ac_ext
6746 {0, (void *) 0}
6747 };
6748
6749 /* This works around a problem in FreeBSD linker */
6750 #ifdef FREEBSD_WORKAROUND
6751 static const void *lt_preloaded_setup() {
6752 return lt__PROGRAM__LTX_preloaded_symbols;
6753 }
6754 #endif
6755
6756 #ifdef __cplusplus
6757 }
6758 #endif
6759 _LT_EOF
6760 # Now try linking the two files.
6761 mv conftest.$ac_objext conftstm.$ac_objext
6762 lt_globsym_save_LIBS=$LIBS
6763 lt_globsym_save_CFLAGS=$CFLAGS
6764 LIBS=conftstm.$ac_objext
6765 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6766 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6767 (eval $ac_link) 2>&5
6768 ac_status=$?
6769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6770 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6771 pipe_works=yes
6772 fi
6773 LIBS=$lt_globsym_save_LIBS
6774 CFLAGS=$lt_globsym_save_CFLAGS
6775 else
6776 echo "cannot find nm_test_func in $nlist" >&5
6777 fi
6778 else
6779 echo "cannot find nm_test_var in $nlist" >&5
6780 fi
6781 else
6782 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6783 fi
6784 else
6785 echo "$progname: failed program was:" >&5
6786 cat conftest.$ac_ext >&5
6787 fi
6788 rm -rf conftest* conftst*
6789
6790 # Do not use the global_symbol_pipe unless it works.
6791 if test yes = "$pipe_works"; then
6792 break
6793 else
6794 lt_cv_sys_global_symbol_pipe=
6795 fi
6796 done
6797
6798 fi
6799
6800 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6801 lt_cv_sys_global_symbol_to_cdecl=
6802 fi
6803 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6805 $as_echo "failed" >&6; }
6806 else
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6808 $as_echo "ok" >&6; }
6809 fi
6810
6811 # Response file support.
6812 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6813 nm_file_list_spec='@'
6814 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6815 nm_file_list_spec='@'
6816 fi
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6855 $as_echo_n "checking for sysroot... " >&6; }
6856
6857 # Check whether --with-sysroot was given.
6858 if test "${with_sysroot+set}" = set; then :
6859 withval=$with_sysroot;
6860 else
6861 with_sysroot=no
6862 fi
6863
6864
6865 lt_sysroot=
6866 case $with_sysroot in #(
6867 yes)
6868 if test yes = "$GCC"; then
6869 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6870 fi
6871 ;; #(
6872 /*)
6873 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6874 ;; #(
6875 no|'')
6876 ;; #(
6877 *)
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6879 $as_echo "$with_sysroot" >&6; }
6880 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6881 ;;
6882 esac
6883
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6885 $as_echo "${lt_sysroot:-no}" >&6; }
6886
6887
6888
6889
6890
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6892 $as_echo_n "checking for a working dd... " >&6; }
6893 if ${ac_cv_path_lt_DD+:} false; then :
6894 $as_echo_n "(cached) " >&6
6895 else
6896 printf 0123456789abcdef0123456789abcdef >conftest.i
6897 cat conftest.i conftest.i >conftest2.i
6898 : ${lt_DD:=$DD}
6899 if test -z "$lt_DD"; then
6900 ac_path_lt_DD_found=false
6901 # Loop through the user's path and test for each of PROGNAME-LIST
6902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6903 for as_dir in $PATH
6904 do
6905 IFS=$as_save_IFS
6906 test -z "$as_dir" && as_dir=.
6907 for ac_prog in dd; do
6908 for ac_exec_ext in '' $ac_executable_extensions; do
6909 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6910 as_fn_executable_p "$ac_path_lt_DD" || continue
6911 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6912 cmp -s conftest.i conftest.out \
6913 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6914 fi
6915 $ac_path_lt_DD_found && break 3
6916 done
6917 done
6918 done
6919 IFS=$as_save_IFS
6920 if test -z "$ac_cv_path_lt_DD"; then
6921 :
6922 fi
6923 else
6924 ac_cv_path_lt_DD=$lt_DD
6925 fi
6926
6927 rm -f conftest.i conftest2.i conftest.out
6928 fi
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6930 $as_echo "$ac_cv_path_lt_DD" >&6; }
6931
6932
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6934 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6935 if ${lt_cv_truncate_bin+:} false; then :
6936 $as_echo_n "(cached) " >&6
6937 else
6938 printf 0123456789abcdef0123456789abcdef >conftest.i
6939 cat conftest.i conftest.i >conftest2.i
6940 lt_cv_truncate_bin=
6941 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6942 cmp -s conftest.i conftest.out \
6943 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6944 fi
6945 rm -f conftest.i conftest2.i conftest.out
6946 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6947 fi
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6949 $as_echo "$lt_cv_truncate_bin" >&6; }
6950
6951
6952
6953
6954
6955
6956
6957 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6958 func_cc_basename ()
6959 {
6960 for cc_temp in $*""; do
6961 case $cc_temp in
6962 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6963 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6964 \-*) ;;
6965 *) break;;
6966 esac
6967 done
6968 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6969 }
6970
6971 # Check whether --enable-libtool-lock was given.
6972 if test "${enable_libtool_lock+set}" = set; then :
6973 enableval=$enable_libtool_lock;
6974 fi
6975
6976 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6977
6978 # Some flags need to be propagated to the compiler or linker for good
6979 # libtool support.
6980 case $host in
6981 ia64-*-hpux*)
6982 # Find out what ABI is being produced by ac_compile, and set mode
6983 # options accordingly.
6984 echo 'int i;' > conftest.$ac_ext
6985 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6986 (eval $ac_compile) 2>&5
6987 ac_status=$?
6988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6989 test $ac_status = 0; }; then
6990 case `/usr/bin/file conftest.$ac_objext` in
6991 *ELF-32*)
6992 HPUX_IA64_MODE=32
6993 ;;
6994 *ELF-64*)
6995 HPUX_IA64_MODE=64
6996 ;;
6997 esac
6998 fi
6999 rm -rf conftest*
7000 ;;
7001 *-*-irix6*)
7002 # Find out what ABI is being produced by ac_compile, and set linker
7003 # options accordingly.
7004 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7005 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7006 (eval $ac_compile) 2>&5
7007 ac_status=$?
7008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7009 test $ac_status = 0; }; then
7010 if test yes = "$lt_cv_prog_gnu_ld"; then
7011 case `/usr/bin/file conftest.$ac_objext` in
7012 *32-bit*)
7013 LD="${LD-ld} -melf32bsmip"
7014 ;;
7015 *N32*)
7016 LD="${LD-ld} -melf32bmipn32"
7017 ;;
7018 *64-bit*)
7019 LD="${LD-ld} -melf64bmip"
7020 ;;
7021 esac
7022 else
7023 case `/usr/bin/file conftest.$ac_objext` in
7024 *32-bit*)
7025 LD="${LD-ld} -32"
7026 ;;
7027 *N32*)
7028 LD="${LD-ld} -n32"
7029 ;;
7030 *64-bit*)
7031 LD="${LD-ld} -64"
7032 ;;
7033 esac
7034 fi
7035 fi
7036 rm -rf conftest*
7037 ;;
7038
7039 mips64*-*linux*)
7040 # Find out what ABI is being produced by ac_compile, and set linker
7041 # options accordingly.
7042 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7043 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7044 (eval $ac_compile) 2>&5
7045 ac_status=$?
7046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7047 test $ac_status = 0; }; then
7048 emul=elf
7049 case `/usr/bin/file conftest.$ac_objext` in
7050 *32-bit*)
7051 emul="${emul}32"
7052 ;;
7053 *64-bit*)
7054 emul="${emul}64"
7055 ;;
7056 esac
7057 case `/usr/bin/file conftest.$ac_objext` in
7058 *MSB*)
7059 emul="${emul}btsmip"
7060 ;;
7061 *LSB*)
7062 emul="${emul}ltsmip"
7063 ;;
7064 esac
7065 case `/usr/bin/file conftest.$ac_objext` in
7066 *N32*)
7067 emul="${emul}n32"
7068 ;;
7069 esac
7070 LD="${LD-ld} -m $emul"
7071 fi
7072 rm -rf conftest*
7073 ;;
7074
7075 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7076 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7077 # Find out what ABI is being produced by ac_compile, and set linker
7078 # options accordingly. Note that the listed cases only cover the
7079 # situations where additional linker options are needed (such as when
7080 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7081 # vice versa); the common cases where no linker options are needed do
7082 # not appear in the list.
7083 echo 'int i;' > conftest.$ac_ext
7084 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7085 (eval $ac_compile) 2>&5
7086 ac_status=$?
7087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7088 test $ac_status = 0; }; then
7089 case `/usr/bin/file conftest.o` in
7090 *32-bit*)
7091 case $host in
7092 x86_64-*kfreebsd*-gnu)
7093 LD="${LD-ld} -m elf_i386_fbsd"
7094 ;;
7095 x86_64-*linux*)
7096 case `/usr/bin/file conftest.o` in
7097 *x86-64*)
7098 LD="${LD-ld} -m elf32_x86_64"
7099 ;;
7100 *)
7101 LD="${LD-ld} -m elf_i386"
7102 ;;
7103 esac
7104 ;;
7105 powerpc64le-*linux*)
7106 LD="${LD-ld} -m elf32lppclinux"
7107 ;;
7108 powerpc64-*linux*)
7109 LD="${LD-ld} -m elf32ppclinux"
7110 ;;
7111 s390x-*linux*)
7112 LD="${LD-ld} -m elf_s390"
7113 ;;
7114 sparc64-*linux*)
7115 LD="${LD-ld} -m elf32_sparc"
7116 ;;
7117 esac
7118 ;;
7119 *64-bit*)
7120 case $host in
7121 x86_64-*kfreebsd*-gnu)
7122 LD="${LD-ld} -m elf_x86_64_fbsd"
7123 ;;
7124 x86_64-*linux*)
7125 LD="${LD-ld} -m elf_x86_64"
7126 ;;
7127 powerpcle-*linux*)
7128 LD="${LD-ld} -m elf64lppc"
7129 ;;
7130 powerpc-*linux*)
7131 LD="${LD-ld} -m elf64ppc"
7132 ;;
7133 s390*-*linux*|s390*-*tpf*)
7134 LD="${LD-ld} -m elf64_s390"
7135 ;;
7136 sparc*-*linux*)
7137 LD="${LD-ld} -m elf64_sparc"
7138 ;;
7139 esac
7140 ;;
7141 esac
7142 fi
7143 rm -rf conftest*
7144 ;;
7145
7146 *-*-sco3.2v5*)
7147 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7148 SAVE_CFLAGS=$CFLAGS
7149 CFLAGS="$CFLAGS -belf"
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7151 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7152 if ${lt_cv_cc_needs_belf+:} false; then :
7153 $as_echo_n "(cached) " >&6
7154 else
7155 ac_ext=c
7156 ac_cpp='$CPP $CPPFLAGS'
7157 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7158 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7159 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7160
7161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7162 /* end confdefs.h. */
7163
7164 int
7165 main ()
7166 {
7167
7168 ;
7169 return 0;
7170 }
7171 _ACEOF
7172 if ac_fn_c_try_link "$LINENO"; then :
7173 lt_cv_cc_needs_belf=yes
7174 else
7175 lt_cv_cc_needs_belf=no
7176 fi
7177 rm -f core conftest.err conftest.$ac_objext \
7178 conftest$ac_exeext conftest.$ac_ext
7179 ac_ext=c
7180 ac_cpp='$CPP $CPPFLAGS'
7181 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7182 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7183 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7184
7185 fi
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7187 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7188 if test yes != "$lt_cv_cc_needs_belf"; then
7189 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7190 CFLAGS=$SAVE_CFLAGS
7191 fi
7192 ;;
7193 *-*solaris*)
7194 # Find out what ABI is being produced by ac_compile, and set linker
7195 # options accordingly.
7196 echo 'int i;' > conftest.$ac_ext
7197 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7198 (eval $ac_compile) 2>&5
7199 ac_status=$?
7200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7201 test $ac_status = 0; }; then
7202 case `/usr/bin/file conftest.o` in
7203 *64-bit*)
7204 case $lt_cv_prog_gnu_ld in
7205 yes*)
7206 case $host in
7207 i?86-*-solaris*|x86_64-*-solaris*)
7208 LD="${LD-ld} -m elf_x86_64"
7209 ;;
7210 sparc*-*-solaris*)
7211 LD="${LD-ld} -m elf64_sparc"
7212 ;;
7213 esac
7214 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7215 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7216 LD=${LD-ld}_sol2
7217 fi
7218 ;;
7219 *)
7220 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7221 LD="${LD-ld} -64"
7222 fi
7223 ;;
7224 esac
7225 ;;
7226 esac
7227 fi
7228 rm -rf conftest*
7229 ;;
7230 esac
7231
7232 need_locks=$enable_libtool_lock
7233
7234 if test -n "$ac_tool_prefix"; then
7235 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7236 set dummy ${ac_tool_prefix}mt; ac_word=$2
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7238 $as_echo_n "checking for $ac_word... " >&6; }
7239 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7240 $as_echo_n "(cached) " >&6
7241 else
7242 if test -n "$MANIFEST_TOOL"; then
7243 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7244 else
7245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7246 for as_dir in $PATH
7247 do
7248 IFS=$as_save_IFS
7249 test -z "$as_dir" && as_dir=.
7250 for ac_exec_ext in '' $ac_executable_extensions; do
7251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7252 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7254 break 2
7255 fi
7256 done
7257 done
7258 IFS=$as_save_IFS
7259
7260 fi
7261 fi
7262 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7263 if test -n "$MANIFEST_TOOL"; then
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7265 $as_echo "$MANIFEST_TOOL" >&6; }
7266 else
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7268 $as_echo "no" >&6; }
7269 fi
7270
7271
7272 fi
7273 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7274 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7275 # Extract the first word of "mt", so it can be a program name with args.
7276 set dummy mt; ac_word=$2
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7278 $as_echo_n "checking for $ac_word... " >&6; }
7279 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7280 $as_echo_n "(cached) " >&6
7281 else
7282 if test -n "$ac_ct_MANIFEST_TOOL"; then
7283 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7284 else
7285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7286 for as_dir in $PATH
7287 do
7288 IFS=$as_save_IFS
7289 test -z "$as_dir" && as_dir=.
7290 for ac_exec_ext in '' $ac_executable_extensions; do
7291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7292 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7294 break 2
7295 fi
7296 done
7297 done
7298 IFS=$as_save_IFS
7299
7300 fi
7301 fi
7302 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7303 if test -n "$ac_ct_MANIFEST_TOOL"; then
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7305 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7306 else
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7308 $as_echo "no" >&6; }
7309 fi
7310
7311 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7312 MANIFEST_TOOL=":"
7313 else
7314 case $cross_compiling:$ac_tool_warned in
7315 yes:)
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7317 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7318 ac_tool_warned=yes ;;
7319 esac
7320 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7321 fi
7322 else
7323 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7324 fi
7325
7326 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7328 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7329 if ${lt_cv_path_mainfest_tool+:} false; then :
7330 $as_echo_n "(cached) " >&6
7331 else
7332 lt_cv_path_mainfest_tool=no
7333 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7334 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7335 cat conftest.err >&5
7336 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7337 lt_cv_path_mainfest_tool=yes
7338 fi
7339 rm -f conftest*
7340 fi
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7342 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7343 if test yes != "$lt_cv_path_mainfest_tool"; then
7344 MANIFEST_TOOL=:
7345 fi
7346
7347
7348
7349
7350
7351
7352 case $host_os in
7353 rhapsody* | darwin*)
7354 if test -n "$ac_tool_prefix"; then
7355 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7356 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7358 $as_echo_n "checking for $ac_word... " >&6; }
7359 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7360 $as_echo_n "(cached) " >&6
7361 else
7362 if test -n "$DSYMUTIL"; then
7363 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7364 else
7365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7366 for as_dir in $PATH
7367 do
7368 IFS=$as_save_IFS
7369 test -z "$as_dir" && as_dir=.
7370 for ac_exec_ext in '' $ac_executable_extensions; do
7371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7372 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7374 break 2
7375 fi
7376 done
7377 done
7378 IFS=$as_save_IFS
7379
7380 fi
7381 fi
7382 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7383 if test -n "$DSYMUTIL"; then
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7385 $as_echo "$DSYMUTIL" >&6; }
7386 else
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7388 $as_echo "no" >&6; }
7389 fi
7390
7391
7392 fi
7393 if test -z "$ac_cv_prog_DSYMUTIL"; then
7394 ac_ct_DSYMUTIL=$DSYMUTIL
7395 # Extract the first word of "dsymutil", so it can be a program name with args.
7396 set dummy dsymutil; ac_word=$2
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7398 $as_echo_n "checking for $ac_word... " >&6; }
7399 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7400 $as_echo_n "(cached) " >&6
7401 else
7402 if test -n "$ac_ct_DSYMUTIL"; then
7403 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7404 else
7405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7406 for as_dir in $PATH
7407 do
7408 IFS=$as_save_IFS
7409 test -z "$as_dir" && as_dir=.
7410 for ac_exec_ext in '' $ac_executable_extensions; do
7411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7412 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7414 break 2
7415 fi
7416 done
7417 done
7418 IFS=$as_save_IFS
7419
7420 fi
7421 fi
7422 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7423 if test -n "$ac_ct_DSYMUTIL"; then
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7425 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7426 else
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7428 $as_echo "no" >&6; }
7429 fi
7430
7431 if test "x$ac_ct_DSYMUTIL" = x; then
7432 DSYMUTIL=":"
7433 else
7434 case $cross_compiling:$ac_tool_warned in
7435 yes:)
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7437 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7438 ac_tool_warned=yes ;;
7439 esac
7440 DSYMUTIL=$ac_ct_DSYMUTIL
7441 fi
7442 else
7443 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7444 fi
7445
7446 if test -n "$ac_tool_prefix"; then
7447 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7448 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7450 $as_echo_n "checking for $ac_word... " >&6; }
7451 if ${ac_cv_prog_NMEDIT+:} false; then :
7452 $as_echo_n "(cached) " >&6
7453 else
7454 if test -n "$NMEDIT"; then
7455 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7456 else
7457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7458 for as_dir in $PATH
7459 do
7460 IFS=$as_save_IFS
7461 test -z "$as_dir" && as_dir=.
7462 for ac_exec_ext in '' $ac_executable_extensions; do
7463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7464 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7466 break 2
7467 fi
7468 done
7469 done
7470 IFS=$as_save_IFS
7471
7472 fi
7473 fi
7474 NMEDIT=$ac_cv_prog_NMEDIT
7475 if test -n "$NMEDIT"; then
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7477 $as_echo "$NMEDIT" >&6; }
7478 else
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7480 $as_echo "no" >&6; }
7481 fi
7482
7483
7484 fi
7485 if test -z "$ac_cv_prog_NMEDIT"; then
7486 ac_ct_NMEDIT=$NMEDIT
7487 # Extract the first word of "nmedit", so it can be a program name with args.
7488 set dummy nmedit; ac_word=$2
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7490 $as_echo_n "checking for $ac_word... " >&6; }
7491 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7492 $as_echo_n "(cached) " >&6
7493 else
7494 if test -n "$ac_ct_NMEDIT"; then
7495 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7496 else
7497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7498 for as_dir in $PATH
7499 do
7500 IFS=$as_save_IFS
7501 test -z "$as_dir" && as_dir=.
7502 for ac_exec_ext in '' $ac_executable_extensions; do
7503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7504 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7506 break 2
7507 fi
7508 done
7509 done
7510 IFS=$as_save_IFS
7511
7512 fi
7513 fi
7514 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7515 if test -n "$ac_ct_NMEDIT"; then
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7517 $as_echo "$ac_ct_NMEDIT" >&6; }
7518 else
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7520 $as_echo "no" >&6; }
7521 fi
7522
7523 if test "x$ac_ct_NMEDIT" = x; then
7524 NMEDIT=":"
7525 else
7526 case $cross_compiling:$ac_tool_warned in
7527 yes:)
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7529 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7530 ac_tool_warned=yes ;;
7531 esac
7532 NMEDIT=$ac_ct_NMEDIT
7533 fi
7534 else
7535 NMEDIT="$ac_cv_prog_NMEDIT"
7536 fi
7537
7538 if test -n "$ac_tool_prefix"; then
7539 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7540 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7542 $as_echo_n "checking for $ac_word... " >&6; }
7543 if ${ac_cv_prog_LIPO+:} false; then :
7544 $as_echo_n "(cached) " >&6
7545 else
7546 if test -n "$LIPO"; then
7547 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7548 else
7549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7550 for as_dir in $PATH
7551 do
7552 IFS=$as_save_IFS
7553 test -z "$as_dir" && as_dir=.
7554 for ac_exec_ext in '' $ac_executable_extensions; do
7555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7556 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7558 break 2
7559 fi
7560 done
7561 done
7562 IFS=$as_save_IFS
7563
7564 fi
7565 fi
7566 LIPO=$ac_cv_prog_LIPO
7567 if test -n "$LIPO"; then
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7569 $as_echo "$LIPO" >&6; }
7570 else
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7572 $as_echo "no" >&6; }
7573 fi
7574
7575
7576 fi
7577 if test -z "$ac_cv_prog_LIPO"; then
7578 ac_ct_LIPO=$LIPO
7579 # Extract the first word of "lipo", so it can be a program name with args.
7580 set dummy lipo; ac_word=$2
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7582 $as_echo_n "checking for $ac_word... " >&6; }
7583 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7584 $as_echo_n "(cached) " >&6
7585 else
7586 if test -n "$ac_ct_LIPO"; then
7587 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7588 else
7589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7590 for as_dir in $PATH
7591 do
7592 IFS=$as_save_IFS
7593 test -z "$as_dir" && as_dir=.
7594 for ac_exec_ext in '' $ac_executable_extensions; do
7595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7596 ac_cv_prog_ac_ct_LIPO="lipo"
7597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7598 break 2
7599 fi
7600 done
7601 done
7602 IFS=$as_save_IFS
7603
7604 fi
7605 fi
7606 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7607 if test -n "$ac_ct_LIPO"; then
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7609 $as_echo "$ac_ct_LIPO" >&6; }
7610 else
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7612 $as_echo "no" >&6; }
7613 fi
7614
7615 if test "x$ac_ct_LIPO" = x; then
7616 LIPO=":"
7617 else
7618 case $cross_compiling:$ac_tool_warned in
7619 yes:)
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7621 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7622 ac_tool_warned=yes ;;
7623 esac
7624 LIPO=$ac_ct_LIPO
7625 fi
7626 else
7627 LIPO="$ac_cv_prog_LIPO"
7628 fi
7629
7630 if test -n "$ac_tool_prefix"; then
7631 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7632 set dummy ${ac_tool_prefix}otool; ac_word=$2
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7634 $as_echo_n "checking for $ac_word... " >&6; }
7635 if ${ac_cv_prog_OTOOL+:} false; then :
7636 $as_echo_n "(cached) " >&6
7637 else
7638 if test -n "$OTOOL"; then
7639 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7640 else
7641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7642 for as_dir in $PATH
7643 do
7644 IFS=$as_save_IFS
7645 test -z "$as_dir" && as_dir=.
7646 for ac_exec_ext in '' $ac_executable_extensions; do
7647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7648 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7650 break 2
7651 fi
7652 done
7653 done
7654 IFS=$as_save_IFS
7655
7656 fi
7657 fi
7658 OTOOL=$ac_cv_prog_OTOOL
7659 if test -n "$OTOOL"; then
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7661 $as_echo "$OTOOL" >&6; }
7662 else
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7664 $as_echo "no" >&6; }
7665 fi
7666
7667
7668 fi
7669 if test -z "$ac_cv_prog_OTOOL"; then
7670 ac_ct_OTOOL=$OTOOL
7671 # Extract the first word of "otool", so it can be a program name with args.
7672 set dummy otool; ac_word=$2
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7674 $as_echo_n "checking for $ac_word... " >&6; }
7675 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7676 $as_echo_n "(cached) " >&6
7677 else
7678 if test -n "$ac_ct_OTOOL"; then
7679 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7680 else
7681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7682 for as_dir in $PATH
7683 do
7684 IFS=$as_save_IFS
7685 test -z "$as_dir" && as_dir=.
7686 for ac_exec_ext in '' $ac_executable_extensions; do
7687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7688 ac_cv_prog_ac_ct_OTOOL="otool"
7689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7690 break 2
7691 fi
7692 done
7693 done
7694 IFS=$as_save_IFS
7695
7696 fi
7697 fi
7698 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7699 if test -n "$ac_ct_OTOOL"; then
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7701 $as_echo "$ac_ct_OTOOL" >&6; }
7702 else
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7704 $as_echo "no" >&6; }
7705 fi
7706
7707 if test "x$ac_ct_OTOOL" = x; then
7708 OTOOL=":"
7709 else
7710 case $cross_compiling:$ac_tool_warned in
7711 yes:)
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7713 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7714 ac_tool_warned=yes ;;
7715 esac
7716 OTOOL=$ac_ct_OTOOL
7717 fi
7718 else
7719 OTOOL="$ac_cv_prog_OTOOL"
7720 fi
7721
7722 if test -n "$ac_tool_prefix"; then
7723 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7724 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7726 $as_echo_n "checking for $ac_word... " >&6; }
7727 if ${ac_cv_prog_OTOOL64+:} false; then :
7728 $as_echo_n "(cached) " >&6
7729 else
7730 if test -n "$OTOOL64"; then
7731 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7732 else
7733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7734 for as_dir in $PATH
7735 do
7736 IFS=$as_save_IFS
7737 test -z "$as_dir" && as_dir=.
7738 for ac_exec_ext in '' $ac_executable_extensions; do
7739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7740 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7742 break 2
7743 fi
7744 done
7745 done
7746 IFS=$as_save_IFS
7747
7748 fi
7749 fi
7750 OTOOL64=$ac_cv_prog_OTOOL64
7751 if test -n "$OTOOL64"; then
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7753 $as_echo "$OTOOL64" >&6; }
7754 else
7755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7756 $as_echo "no" >&6; }
7757 fi
7758
7759
7760 fi
7761 if test -z "$ac_cv_prog_OTOOL64"; then
7762 ac_ct_OTOOL64=$OTOOL64
7763 # Extract the first word of "otool64", so it can be a program name with args.
7764 set dummy otool64; ac_word=$2
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7766 $as_echo_n "checking for $ac_word... " >&6; }
7767 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7768 $as_echo_n "(cached) " >&6
7769 else
7770 if test -n "$ac_ct_OTOOL64"; then
7771 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7772 else
7773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7774 for as_dir in $PATH
7775 do
7776 IFS=$as_save_IFS
7777 test -z "$as_dir" && as_dir=.
7778 for ac_exec_ext in '' $ac_executable_extensions; do
7779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7780 ac_cv_prog_ac_ct_OTOOL64="otool64"
7781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7782 break 2
7783 fi
7784 done
7785 done
7786 IFS=$as_save_IFS
7787
7788 fi
7789 fi
7790 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7791 if test -n "$ac_ct_OTOOL64"; then
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7793 $as_echo "$ac_ct_OTOOL64" >&6; }
7794 else
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7796 $as_echo "no" >&6; }
7797 fi
7798
7799 if test "x$ac_ct_OTOOL64" = x; then
7800 OTOOL64=":"
7801 else
7802 case $cross_compiling:$ac_tool_warned in
7803 yes:)
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7805 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7806 ac_tool_warned=yes ;;
7807 esac
7808 OTOOL64=$ac_ct_OTOOL64
7809 fi
7810 else
7811 OTOOL64="$ac_cv_prog_OTOOL64"
7812 fi
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7841 $as_echo_n "checking for -single_module linker flag... " >&6; }
7842 if ${lt_cv_apple_cc_single_mod+:} false; then :
7843 $as_echo_n "(cached) " >&6
7844 else
7845 lt_cv_apple_cc_single_mod=no
7846 if test -z "$LT_MULTI_MODULE"; then
7847 # By default we will add the -single_module flag. You can override
7848 # by either setting the environment variable LT_MULTI_MODULE
7849 # non-empty at configure time, or by adding -multi_module to the
7850 # link flags.
7851 rm -rf libconftest.dylib*
7852 echo "int foo(void){return 1;}" > conftest.c
7853 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7854 -dynamiclib -Wl,-single_module conftest.c" >&5
7855 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7856 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7857 _lt_result=$?
7858 # If there is a non-empty error log, and "single_module"
7859 # appears in it, assume the flag caused a linker warning
7860 if test -s conftest.err && $GREP single_module conftest.err; then
7861 cat conftest.err >&5
7862 # Otherwise, if the output was created with a 0 exit code from
7863 # the compiler, it worked.
7864 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7865 lt_cv_apple_cc_single_mod=yes
7866 else
7867 cat conftest.err >&5
7868 fi
7869 rm -rf libconftest.dylib*
7870 rm -f conftest.*
7871 fi
7872 fi
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7874 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7875
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7877 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7878 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7879 $as_echo_n "(cached) " >&6
7880 else
7881 lt_cv_ld_exported_symbols_list=no
7882 save_LDFLAGS=$LDFLAGS
7883 echo "_main" > conftest.sym
7884 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7886 /* end confdefs.h. */
7887
7888 int
7889 main ()
7890 {
7891
7892 ;
7893 return 0;
7894 }
7895 _ACEOF
7896 if ac_fn_c_try_link "$LINENO"; then :
7897 lt_cv_ld_exported_symbols_list=yes
7898 else
7899 lt_cv_ld_exported_symbols_list=no
7900 fi
7901 rm -f core conftest.err conftest.$ac_objext \
7902 conftest$ac_exeext conftest.$ac_ext
7903 LDFLAGS=$save_LDFLAGS
7904
7905 fi
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7907 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7908
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7910 $as_echo_n "checking for -force_load linker flag... " >&6; }
7911 if ${lt_cv_ld_force_load+:} false; then :
7912 $as_echo_n "(cached) " >&6
7913 else
7914 lt_cv_ld_force_load=no
7915 cat > conftest.c << _LT_EOF
7916 int forced_loaded() { return 2;}
7917 _LT_EOF
7918 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7919 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7920 echo "$AR cru libconftest.a conftest.o" >&5
7921 $AR cru libconftest.a conftest.o 2>&5
7922 echo "$RANLIB libconftest.a" >&5
7923 $RANLIB libconftest.a 2>&5
7924 cat > conftest.c << _LT_EOF
7925 int main() { return 0;}
7926 _LT_EOF
7927 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7928 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7929 _lt_result=$?
7930 if test -s conftest.err && $GREP force_load conftest.err; then
7931 cat conftest.err >&5
7932 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7933 lt_cv_ld_force_load=yes
7934 else
7935 cat conftest.err >&5
7936 fi
7937 rm -f conftest.err libconftest.a conftest conftest.c
7938 rm -rf conftest.dSYM
7939
7940 fi
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7942 $as_echo "$lt_cv_ld_force_load" >&6; }
7943 case $host_os in
7944 rhapsody* | darwin1.[012])
7945 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7946 darwin1.*)
7947 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7948 darwin*) # darwin 5.x on
7949 # if running on 10.5 or later, the deployment target defaults
7950 # to the OS version, if on x86, and 10.4, the deployment
7951 # target defaults to 10.4. Don't you love it?
7952 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7953 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7954 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7955 10.[012][,.]*)
7956 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7957 10.*)
7958 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7959 esac
7960 ;;
7961 esac
7962 if test yes = "$lt_cv_apple_cc_single_mod"; then
7963 _lt_dar_single_mod='$single_module'
7964 fi
7965 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7966 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7967 else
7968 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7969 fi
7970 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7971 _lt_dsymutil='~$DSYMUTIL $lib || :'
7972 else
7973 _lt_dsymutil=
7974 fi
7975 ;;
7976 esac
7977
7978 # func_munge_path_list VARIABLE PATH
7979 # -----------------------------------
7980 # VARIABLE is name of variable containing _space_ separated list of
7981 # directories to be munged by the contents of PATH, which is string
7982 # having a format:
7983 # "DIR[:DIR]:"
7984 # string "DIR[ DIR]" will be prepended to VARIABLE
7985 # ":DIR[:DIR]"
7986 # string "DIR[ DIR]" will be appended to VARIABLE
7987 # "DIRP[:DIRP]::[DIRA:]DIRA"
7988 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7989 # "DIRA[ DIRA]" will be appended to VARIABLE
7990 # "DIR[:DIR]"
7991 # VARIABLE will be replaced by "DIR[ DIR]"
7992 func_munge_path_list ()
7993 {
7994 case x$2 in
7995 x)
7996 ;;
7997 *:)
7998 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7999 ;;
8000 x:*)
8001 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8002 ;;
8003 *::*)
8004 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8005 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8006 ;;
8007 *)
8008 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8009 ;;
8010 esac
8011 }
8012
8013 for ac_header in dlfcn.h
8014 do :
8015 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8016 "
8017 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8018 cat >>confdefs.h <<_ACEOF
8019 #define HAVE_DLFCN_H 1
8020 _ACEOF
8021
8022 fi
8023
8024 done
8025
8026
8027
8028
8029
8030 # Set options
8031
8032
8033
8034 enable_dlopen=no
8035
8036
8037 enable_win32_dll=no
8038
8039
8040 # Check whether --enable-shared was given.
8041 if test "${enable_shared+set}" = set; then :
8042 enableval=$enable_shared; p=${PACKAGE-default}
8043 case $enableval in
8044 yes) enable_shared=yes ;;
8045 no) enable_shared=no ;;
8046 *)
8047 enable_shared=no
8048 # Look at the argument we got. We use all the common list separators.
8049 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8050 for pkg in $enableval; do
8051 IFS=$lt_save_ifs
8052 if test "X$pkg" = "X$p"; then
8053 enable_shared=yes
8054 fi
8055 done
8056 IFS=$lt_save_ifs
8057 ;;
8058 esac
8059 else
8060 enable_shared=yes
8061 fi
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071 # Check whether --enable-static was given.
8072 if test "${enable_static+set}" = set; then :
8073 enableval=$enable_static; p=${PACKAGE-default}
8074 case $enableval in
8075 yes) enable_static=yes ;;
8076 no) enable_static=no ;;
8077 *)
8078 enable_static=no
8079 # Look at the argument we got. We use all the common list separators.
8080 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8081 for pkg in $enableval; do
8082 IFS=$lt_save_ifs
8083 if test "X$pkg" = "X$p"; then
8084 enable_static=yes
8085 fi
8086 done
8087 IFS=$lt_save_ifs
8088 ;;
8089 esac
8090 else
8091 enable_static=yes
8092 fi
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103 # Check whether --with-pic was given.
8104 if test "${with_pic+set}" = set; then :
8105 withval=$with_pic; lt_p=${PACKAGE-default}
8106 case $withval in
8107 yes|no) pic_mode=$withval ;;
8108 *)
8109 pic_mode=default
8110 # Look at the argument we got. We use all the common list separators.
8111 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8112 for lt_pkg in $withval; do
8113 IFS=$lt_save_ifs
8114 if test "X$lt_pkg" = "X$lt_p"; then
8115 pic_mode=yes
8116 fi
8117 done
8118 IFS=$lt_save_ifs
8119 ;;
8120 esac
8121 else
8122 pic_mode=default
8123 fi
8124
8125
8126
8127
8128
8129
8130
8131
8132 # Check whether --enable-fast-install was given.
8133 if test "${enable_fast_install+set}" = set; then :
8134 enableval=$enable_fast_install; p=${PACKAGE-default}
8135 case $enableval in
8136 yes) enable_fast_install=yes ;;
8137 no) enable_fast_install=no ;;
8138 *)
8139 enable_fast_install=no
8140 # Look at the argument we got. We use all the common list separators.
8141 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8142 for pkg in $enableval; do
8143 IFS=$lt_save_ifs
8144 if test "X$pkg" = "X$p"; then
8145 enable_fast_install=yes
8146 fi
8147 done
8148 IFS=$lt_save_ifs
8149 ;;
8150 esac
8151 else
8152 enable_fast_install=yes
8153 fi
8154
8155
8156
8157
8158
8159
8160
8161
8162 shared_archive_member_spec=
8163 case $host,$enable_shared in
8164 power*-*-aix[5-9]*,yes)
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8166 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8167
8168 # Check whether --with-aix-soname was given.
8169 if test "${with_aix_soname+set}" = set; then :
8170 withval=$with_aix_soname; case $withval in
8171 aix|svr4|both)
8172 ;;
8173 *)
8174 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8175 ;;
8176 esac
8177 lt_cv_with_aix_soname=$with_aix_soname
8178 else
8179 if ${lt_cv_with_aix_soname+:} false; then :
8180 $as_echo_n "(cached) " >&6
8181 else
8182 lt_cv_with_aix_soname=aix
8183 fi
8184
8185 with_aix_soname=$lt_cv_with_aix_soname
8186 fi
8187
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8189 $as_echo "$with_aix_soname" >&6; }
8190 if test aix != "$with_aix_soname"; then
8191 # For the AIX way of multilib, we name the shared archive member
8192 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8193 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8194 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8195 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8196 if test 64 = "${OBJECT_MODE-32}"; then
8197 shared_archive_member_spec=shr_64
8198 else
8199 shared_archive_member_spec=shr
8200 fi
8201 fi
8202 ;;
8203 *)
8204 with_aix_soname=aix
8205 ;;
8206 esac
8207
8208
8209
8210
8211
8212
8213
8214
8215
8216
8217 # This can be used to rebuild libtool when needed
8218 LIBTOOL_DEPS=$ltmain
8219
8220 # Always use our own libtool.
8221 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252 test -z "$LN_S" && LN_S="ln -s"
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267 if test -n "${ZSH_VERSION+set}"; then
8268 setopt NO_GLOB_SUBST
8269 fi
8270
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8272 $as_echo_n "checking for objdir... " >&6; }
8273 if ${lt_cv_objdir+:} false; then :
8274 $as_echo_n "(cached) " >&6
8275 else
8276 rm -f .libs 2>/dev/null
8277 mkdir .libs 2>/dev/null
8278 if test -d .libs; then
8279 lt_cv_objdir=.libs
8280 else
8281 # MS-DOS does not allow filenames that begin with a dot.
8282 lt_cv_objdir=_libs
8283 fi
8284 rmdir .libs 2>/dev/null
8285 fi
8286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8287 $as_echo "$lt_cv_objdir" >&6; }
8288 objdir=$lt_cv_objdir
8289
8290
8291
8292
8293
8294 cat >>confdefs.h <<_ACEOF
8295 #define LT_OBJDIR "$lt_cv_objdir/"
8296 _ACEOF
8297
8298
8299
8300
8301 case $host_os in
8302 aix3*)
8303 # AIX sometimes has problems with the GCC collect2 program. For some
8304 # reason, if we set the COLLECT_NAMES environment variable, the problems
8305 # vanish in a puff of smoke.
8306 if test set != "${COLLECT_NAMES+set}"; then
8307 COLLECT_NAMES=
8308 export COLLECT_NAMES
8309 fi
8310 ;;
8311 esac
8312
8313 # Global variables:
8314 ofile=libtool
8315 can_build_shared=yes
8316
8317 # All known linkers require a '.a' archive for static linking (except MSVC,
8318 # which needs '.lib').
8319 libext=a
8320
8321 with_gnu_ld=$lt_cv_prog_gnu_ld
8322
8323 old_CC=$CC
8324 old_CFLAGS=$CFLAGS
8325
8326 # Set sane defaults for various variables
8327 test -z "$CC" && CC=cc
8328 test -z "$LTCC" && LTCC=$CC
8329 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8330 test -z "$LD" && LD=ld
8331 test -z "$ac_objext" && ac_objext=o
8332
8333 func_cc_basename $compiler
8334 cc_basename=$func_cc_basename_result
8335
8336
8337 # Only perform the check for file, if the check method requires it
8338 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8339 case $deplibs_check_method in
8340 file_magic*)
8341 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8343 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8344 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8345 $as_echo_n "(cached) " >&6
8346 else
8347 case $MAGIC_CMD in
8348 [\\/*] | ?:[\\/]*)
8349 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8350 ;;
8351 *)
8352 lt_save_MAGIC_CMD=$MAGIC_CMD
8353 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8354 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8355 for ac_dir in $ac_dummy; do
8356 IFS=$lt_save_ifs
8357 test -z "$ac_dir" && ac_dir=.
8358 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8359 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8360 if test -n "$file_magic_test_file"; then
8361 case $deplibs_check_method in
8362 "file_magic "*)
8363 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8364 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8365 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8366 $EGREP "$file_magic_regex" > /dev/null; then
8367 :
8368 else
8369 cat <<_LT_EOF 1>&2
8370
8371 *** Warning: the command libtool uses to detect shared libraries,
8372 *** $file_magic_cmd, produces output that libtool cannot recognize.
8373 *** The result is that libtool may fail to recognize shared libraries
8374 *** as such. This will affect the creation of libtool libraries that
8375 *** depend on shared libraries, but programs linked with such libtool
8376 *** libraries will work regardless of this problem. Nevertheless, you
8377 *** may want to report the problem to your system manager and/or to
8378 *** bug-libtool (at] gnu.org
8379
8380 _LT_EOF
8381 fi ;;
8382 esac
8383 fi
8384 break
8385 fi
8386 done
8387 IFS=$lt_save_ifs
8388 MAGIC_CMD=$lt_save_MAGIC_CMD
8389 ;;
8390 esac
8391 fi
8392
8393 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8394 if test -n "$MAGIC_CMD"; then
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8396 $as_echo "$MAGIC_CMD" >&6; }
8397 else
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8399 $as_echo "no" >&6; }
8400 fi
8401
8402
8403
8404
8405
8406 if test -z "$lt_cv_path_MAGIC_CMD"; then
8407 if test -n "$ac_tool_prefix"; then
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8409 $as_echo_n "checking for file... " >&6; }
8410 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8411 $as_echo_n "(cached) " >&6
8412 else
8413 case $MAGIC_CMD in
8414 [\\/*] | ?:[\\/]*)
8415 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8416 ;;
8417 *)
8418 lt_save_MAGIC_CMD=$MAGIC_CMD
8419 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8420 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8421 for ac_dir in $ac_dummy; do
8422 IFS=$lt_save_ifs
8423 test -z "$ac_dir" && ac_dir=.
8424 if test -f "$ac_dir/file"; then
8425 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8426 if test -n "$file_magic_test_file"; then
8427 case $deplibs_check_method in
8428 "file_magic "*)
8429 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8430 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8431 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8432 $EGREP "$file_magic_regex" > /dev/null; then
8433 :
8434 else
8435 cat <<_LT_EOF 1>&2
8436
8437 *** Warning: the command libtool uses to detect shared libraries,
8438 *** $file_magic_cmd, produces output that libtool cannot recognize.
8439 *** The result is that libtool may fail to recognize shared libraries
8440 *** as such. This will affect the creation of libtool libraries that
8441 *** depend on shared libraries, but programs linked with such libtool
8442 *** libraries will work regardless of this problem. Nevertheless, you
8443 *** may want to report the problem to your system manager and/or to
8444 *** bug-libtool (at] gnu.org
8445
8446 _LT_EOF
8447 fi ;;
8448 esac
8449 fi
8450 break
8451 fi
8452 done
8453 IFS=$lt_save_ifs
8454 MAGIC_CMD=$lt_save_MAGIC_CMD
8455 ;;
8456 esac
8457 fi
8458
8459 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8460 if test -n "$MAGIC_CMD"; then
8461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8462 $as_echo "$MAGIC_CMD" >&6; }
8463 else
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8465 $as_echo "no" >&6; }
8466 fi
8467
8468
8469 else
8470 MAGIC_CMD=:
8471 fi
8472 fi
8473
8474 fi
8475 ;;
8476 esac
8477
8478 # Use C for the default configuration in the libtool script
8479
8480 lt_save_CC=$CC
8481 ac_ext=c
8482 ac_cpp='$CPP $CPPFLAGS'
8483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8486
8487
8488 # Source file extension for C test sources.
8489 ac_ext=c
8490
8491 # Object file extension for compiled C test sources.
8492 objext=o
8493 objext=$objext
8494
8495 # Code to be used in simple compile tests
8496 lt_simple_compile_test_code="int some_variable = 0;"
8497
8498 # Code to be used in simple link tests
8499 lt_simple_link_test_code='int main(){return(0);}'
8500
8501
8502
8503
8504
8505
8506
8507 # If no C compiler was specified, use CC.
8508 LTCC=${LTCC-"$CC"}
8509
8510 # If no C compiler flags were specified, use CFLAGS.
8511 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8512
8513 # Allow CC to be a program name with arguments.
8514 compiler=$CC
8515
8516 # Save the default compiler, since it gets overwritten when the other
8517 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8518 compiler_DEFAULT=$CC
8519
8520 # save warnings/boilerplate of simple test code
8521 ac_outfile=conftest.$ac_objext
8522 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8523 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8524 _lt_compiler_boilerplate=`cat conftest.err`
8525 $RM conftest*
8526
8527 ac_outfile=conftest.$ac_objext
8528 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8529 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8530 _lt_linker_boilerplate=`cat conftest.err`
8531 $RM -r conftest*
8532
8533
8534 if test -n "$compiler"; then
8535
8536 lt_prog_compiler_no_builtin_flag=
8537
8538 if test yes = "$GCC"; then
8539 case $cc_basename in
8540 nvcc*)
8541 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8542 *)
8543 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8544 esac
8545
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8547 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8548 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8549 $as_echo_n "(cached) " >&6
8550 else
8551 lt_cv_prog_compiler_rtti_exceptions=no
8552 ac_outfile=conftest.$ac_objext
8553 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8554 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8555 # Insert the option either (1) after the last *FLAGS variable, or
8556 # (2) before a word containing "conftest.", or (3) at the end.
8557 # Note that $ac_compile itself does not contain backslashes and begins
8558 # with a dollar sign (not a hyphen), so the echo should work correctly.
8559 # The option is referenced via a variable to avoid confusing sed.
8560 lt_compile=`echo "$ac_compile" | $SED \
8561 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8562 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8563 -e 's:$: $lt_compiler_flag:'`
8564 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8565 (eval "$lt_compile" 2>conftest.err)
8566 ac_status=$?
8567 cat conftest.err >&5
8568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8569 if (exit $ac_status) && test -s "$ac_outfile"; then
8570 # The compiler can only warn and ignore the option if not recognized
8571 # So say no if there are warnings other than the usual output.
8572 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8573 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8574 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8575 lt_cv_prog_compiler_rtti_exceptions=yes
8576 fi
8577 fi
8578 $RM conftest*
8579
8580 fi
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8582 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8583
8584 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8585 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8586 else
8587 :
8588 fi
8589
8590 fi
8591
8592
8593
8594
8595
8596
8597 lt_prog_compiler_wl=
8598 lt_prog_compiler_pic=
8599 lt_prog_compiler_static=
8600
8601
8602 if test yes = "$GCC"; then
8603 lt_prog_compiler_wl='-Wl,'
8604 lt_prog_compiler_static='-static'
8605
8606 case $host_os in
8607 aix*)
8608 # All AIX code is PIC.
8609 if test ia64 = "$host_cpu"; then
8610 # AIX 5 now supports IA64 processor
8611 lt_prog_compiler_static='-Bstatic'
8612 fi
8613 lt_prog_compiler_pic='-fPIC'
8614 ;;
8615
8616 amigaos*)
8617 case $host_cpu in
8618 powerpc)
8619 # see comment about AmigaOS4 .so support
8620 lt_prog_compiler_pic='-fPIC'
8621 ;;
8622 m68k)
8623 # FIXME: we need at least 68020 code to build shared libraries, but
8624 # adding the '-m68020' flag to GCC prevents building anything better,
8625 # like '-m68040'.
8626 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8627 ;;
8628 esac
8629 ;;
8630
8631 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8632 # PIC is the default for these OSes.
8633 ;;
8634
8635 mingw* | cygwin* | pw32* | os2* | cegcc*)
8636 # This hack is so that the source file can tell whether it is being
8637 # built for inclusion in a dll (and should export symbols for example).
8638 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8639 # (--disable-auto-import) libraries
8640 lt_prog_compiler_pic='-DDLL_EXPORT'
8641 case $host_os in
8642 os2*)
8643 lt_prog_compiler_static='$wl-static'
8644 ;;
8645 esac
8646 ;;
8647
8648 darwin* | rhapsody*)
8649 # PIC is the default on this platform
8650 # Common symbols not allowed in MH_DYLIB files
8651 lt_prog_compiler_pic='-fno-common'
8652 ;;
8653
8654 haiku*)
8655 # PIC is the default for Haiku.
8656 # The "-static" flag exists, but is broken.
8657 lt_prog_compiler_static=
8658 ;;
8659
8660 hpux*)
8661 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8662 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8663 # sets the default TLS model and affects inlining.
8664 case $host_cpu in
8665 hppa*64*)
8666 # +Z the default
8667 ;;
8668 *)
8669 lt_prog_compiler_pic='-fPIC'
8670 ;;
8671 esac
8672 ;;
8673
8674 interix[3-9]*)
8675 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8676 # Instead, we relocate shared libraries at runtime.
8677 ;;
8678
8679 msdosdjgpp*)
8680 # Just because we use GCC doesn't mean we suddenly get shared libraries
8681 # on systems that don't support them.
8682 lt_prog_compiler_can_build_shared=no
8683 enable_shared=no
8684 ;;
8685
8686 *nto* | *qnx*)
8687 # QNX uses GNU C++, but need to define -shared option too, otherwise
8688 # it will coredump.
8689 lt_prog_compiler_pic='-fPIC -shared'
8690 ;;
8691
8692 sysv4*MP*)
8693 if test -d /usr/nec; then
8694 lt_prog_compiler_pic=-Kconform_pic
8695 fi
8696 ;;
8697
8698 *)
8699 lt_prog_compiler_pic='-fPIC'
8700 ;;
8701 esac
8702
8703 case $cc_basename in
8704 nvcc*) # Cuda Compiler Driver 2.2
8705 lt_prog_compiler_wl='-Xlinker '
8706 if test -n "$lt_prog_compiler_pic"; then
8707 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8708 fi
8709 ;;
8710 esac
8711 else
8712 # PORTME Check for flag to pass linker flags through the system compiler.
8713 case $host_os in
8714 aix*)
8715 lt_prog_compiler_wl='-Wl,'
8716 if test ia64 = "$host_cpu"; then
8717 # AIX 5 now supports IA64 processor
8718 lt_prog_compiler_static='-Bstatic'
8719 else
8720 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8721 fi
8722 ;;
8723
8724 darwin* | rhapsody*)
8725 # PIC is the default on this platform
8726 # Common symbols not allowed in MH_DYLIB files
8727 lt_prog_compiler_pic='-fno-common'
8728 case $cc_basename in
8729 nagfor*)
8730 # NAG Fortran compiler
8731 lt_prog_compiler_wl='-Wl,-Wl,,'
8732 lt_prog_compiler_pic='-PIC'
8733 lt_prog_compiler_static='-Bstatic'
8734 ;;
8735 esac
8736 ;;
8737
8738 mingw* | cygwin* | pw32* | os2* | cegcc*)
8739 # This hack is so that the source file can tell whether it is being
8740 # built for inclusion in a dll (and should export symbols for example).
8741 lt_prog_compiler_pic='-DDLL_EXPORT'
8742 case $host_os in
8743 os2*)
8744 lt_prog_compiler_static='$wl-static'
8745 ;;
8746 esac
8747 ;;
8748
8749 hpux9* | hpux10* | hpux11*)
8750 lt_prog_compiler_wl='-Wl,'
8751 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8752 # not for PA HP-UX.
8753 case $host_cpu in
8754 hppa*64*|ia64*)
8755 # +Z the default
8756 ;;
8757 *)
8758 lt_prog_compiler_pic='+Z'
8759 ;;
8760 esac
8761 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8762 lt_prog_compiler_static='$wl-a ${wl}archive'
8763 ;;
8764
8765 irix5* | irix6* | nonstopux*)
8766 lt_prog_compiler_wl='-Wl,'
8767 # PIC (with -KPIC) is the default.
8768 lt_prog_compiler_static='-non_shared'
8769 ;;
8770
8771 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8772 case $cc_basename in
8773 # old Intel for x86_64, which still supported -KPIC.
8774 ecc*)
8775 lt_prog_compiler_wl='-Wl,'
8776 lt_prog_compiler_pic='-KPIC'
8777 lt_prog_compiler_static='-static'
8778 ;;
8779 # icc used to be incompatible with GCC.
8780 # ICC 10 doesn't accept -KPIC any more.
8781 icc* | ifort*)
8782 lt_prog_compiler_wl='-Wl,'
8783 lt_prog_compiler_pic='-fPIC'
8784 lt_prog_compiler_static='-static'
8785 ;;
8786 # Lahey Fortran 8.1.
8787 lf95*)
8788 lt_prog_compiler_wl='-Wl,'
8789 lt_prog_compiler_pic='--shared'
8790 lt_prog_compiler_static='--static'
8791 ;;
8792 nagfor*)
8793 # NAG Fortran compiler
8794 lt_prog_compiler_wl='-Wl,-Wl,,'
8795 lt_prog_compiler_pic='-PIC'
8796 lt_prog_compiler_static='-Bstatic'
8797 ;;
8798 tcc*)
8799 # Fabrice Bellard et al's Tiny C Compiler
8800 lt_prog_compiler_wl='-Wl,'
8801 lt_prog_compiler_pic='-fPIC'
8802 lt_prog_compiler_static='-static'
8803 ;;
8804 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8805 # Portland Group compilers (*not* the Pentium gcc compiler,
8806 # which looks to be a dead project)
8807 lt_prog_compiler_wl='-Wl,'
8808 lt_prog_compiler_pic='-fpic'
8809 lt_prog_compiler_static='-Bstatic'
8810 ;;
8811 ccc*)
8812 lt_prog_compiler_wl='-Wl,'
8813 # All Alpha code is PIC.
8814 lt_prog_compiler_static='-non_shared'
8815 ;;
8816 xl* | bgxl* | bgf* | mpixl*)
8817 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8818 lt_prog_compiler_wl='-Wl,'
8819 lt_prog_compiler_pic='-qpic'
8820 lt_prog_compiler_static='-qstaticlink'
8821 ;;
8822 *)
8823 case `$CC -V 2>&1 | sed 5q` in
8824 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8825 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8826 lt_prog_compiler_pic='-KPIC'
8827 lt_prog_compiler_static='-Bstatic'
8828 lt_prog_compiler_wl=''
8829 ;;
8830 *Sun\ F* | *Sun*Fortran*)
8831 lt_prog_compiler_pic='-KPIC'
8832 lt_prog_compiler_static='-Bstatic'
8833 lt_prog_compiler_wl='-Qoption ld '
8834 ;;
8835 *Sun\ C*)
8836 # Sun C 5.9
8837 lt_prog_compiler_pic='-KPIC'
8838 lt_prog_compiler_static='-Bstatic'
8839 lt_prog_compiler_wl='-Wl,'
8840 ;;
8841 *Intel*\ [CF]*Compiler*)
8842 lt_prog_compiler_wl='-Wl,'
8843 lt_prog_compiler_pic='-fPIC'
8844 lt_prog_compiler_static='-static'
8845 ;;
8846 *Portland\ Group*)
8847 lt_prog_compiler_wl='-Wl,'
8848 lt_prog_compiler_pic='-fpic'
8849 lt_prog_compiler_static='-Bstatic'
8850 ;;
8851 esac
8852 ;;
8853 esac
8854 ;;
8855
8856 newsos6)
8857 lt_prog_compiler_pic='-KPIC'
8858 lt_prog_compiler_static='-Bstatic'
8859 ;;
8860
8861 *nto* | *qnx*)
8862 # QNX uses GNU C++, but need to define -shared option too, otherwise
8863 # it will coredump.
8864 lt_prog_compiler_pic='-fPIC -shared'
8865 ;;
8866
8867 osf3* | osf4* | osf5*)
8868 lt_prog_compiler_wl='-Wl,'
8869 # All OSF/1 code is PIC.
8870 lt_prog_compiler_static='-non_shared'
8871 ;;
8872
8873 rdos*)
8874 lt_prog_compiler_static='-non_shared'
8875 ;;
8876
8877 solaris*)
8878 lt_prog_compiler_pic='-KPIC'
8879 lt_prog_compiler_static='-Bstatic'
8880 case $cc_basename in
8881 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8882 lt_prog_compiler_wl='-Qoption ld ';;
8883 *)
8884 lt_prog_compiler_wl='-Wl,';;
8885 esac
8886 ;;
8887
8888 sunos4*)
8889 lt_prog_compiler_wl='-Qoption ld '
8890 lt_prog_compiler_pic='-PIC'
8891 lt_prog_compiler_static='-Bstatic'
8892 ;;
8893
8894 sysv4 | sysv4.2uw2* | sysv4.3*)
8895 lt_prog_compiler_wl='-Wl,'
8896 lt_prog_compiler_pic='-KPIC'
8897 lt_prog_compiler_static='-Bstatic'
8898 ;;
8899
8900 sysv4*MP*)
8901 if test -d /usr/nec; then
8902 lt_prog_compiler_pic='-Kconform_pic'
8903 lt_prog_compiler_static='-Bstatic'
8904 fi
8905 ;;
8906
8907 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8908 lt_prog_compiler_wl='-Wl,'
8909 lt_prog_compiler_pic='-KPIC'
8910 lt_prog_compiler_static='-Bstatic'
8911 ;;
8912
8913 unicos*)
8914 lt_prog_compiler_wl='-Wl,'
8915 lt_prog_compiler_can_build_shared=no
8916 ;;
8917
8918 uts4*)
8919 lt_prog_compiler_pic='-pic'
8920 lt_prog_compiler_static='-Bstatic'
8921 ;;
8922
8923 *)
8924 lt_prog_compiler_can_build_shared=no
8925 ;;
8926 esac
8927 fi
8928
8929 case $host_os in
8930 # For platforms that do not support PIC, -DPIC is meaningless:
8931 *djgpp*)
8932 lt_prog_compiler_pic=
8933 ;;
8934 *)
8935 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8936 ;;
8937 esac
8938
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8940 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8941 if ${lt_cv_prog_compiler_pic+:} false; then :
8942 $as_echo_n "(cached) " >&6
8943 else
8944 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8945 fi
8946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8947 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8948 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8949
8950 #
8951 # Check to make sure the PIC flag actually works.
8952 #
8953 if test -n "$lt_prog_compiler_pic"; then
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8955 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8956 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8957 $as_echo_n "(cached) " >&6
8958 else
8959 lt_cv_prog_compiler_pic_works=no
8960 ac_outfile=conftest.$ac_objext
8961 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8962 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8963 # Insert the option either (1) after the last *FLAGS variable, or
8964 # (2) before a word containing "conftest.", or (3) at the end.
8965 # Note that $ac_compile itself does not contain backslashes and begins
8966 # with a dollar sign (not a hyphen), so the echo should work correctly.
8967 # The option is referenced via a variable to avoid confusing sed.
8968 lt_compile=`echo "$ac_compile" | $SED \
8969 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8970 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8971 -e 's:$: $lt_compiler_flag:'`
8972 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8973 (eval "$lt_compile" 2>conftest.err)
8974 ac_status=$?
8975 cat conftest.err >&5
8976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8977 if (exit $ac_status) && test -s "$ac_outfile"; then
8978 # The compiler can only warn and ignore the option if not recognized
8979 # So say no if there are warnings other than the usual output.
8980 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8981 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8982 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8983 lt_cv_prog_compiler_pic_works=yes
8984 fi
8985 fi
8986 $RM conftest*
8987
8988 fi
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8990 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8991
8992 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8993 case $lt_prog_compiler_pic in
8994 "" | " "*) ;;
8995 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8996 esac
8997 else
8998 lt_prog_compiler_pic=
8999 lt_prog_compiler_can_build_shared=no
9000 fi
9001
9002 fi
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014 #
9015 # Check to make sure the static flag actually works.
9016 #
9017 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9019 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9020 if ${lt_cv_prog_compiler_static_works+:} false; then :
9021 $as_echo_n "(cached) " >&6
9022 else
9023 lt_cv_prog_compiler_static_works=no
9024 save_LDFLAGS=$LDFLAGS
9025 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9026 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9027 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9028 # The linker can only warn and ignore the option if not recognized
9029 # So say no if there are warnings
9030 if test -s conftest.err; then
9031 # Append any errors to the config.log.
9032 cat conftest.err 1>&5
9033 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9034 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9035 if diff conftest.exp conftest.er2 >/dev/null; then
9036 lt_cv_prog_compiler_static_works=yes
9037 fi
9038 else
9039 lt_cv_prog_compiler_static_works=yes
9040 fi
9041 fi
9042 $RM -r conftest*
9043 LDFLAGS=$save_LDFLAGS
9044
9045 fi
9046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9047 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9048
9049 if test yes = "$lt_cv_prog_compiler_static_works"; then
9050 :
9051 else
9052 lt_prog_compiler_static=
9053 fi
9054
9055
9056
9057
9058
9059
9060
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9062 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9063 if ${lt_cv_prog_compiler_c_o+:} false; then :
9064 $as_echo_n "(cached) " >&6
9065 else
9066 lt_cv_prog_compiler_c_o=no
9067 $RM -r conftest 2>/dev/null
9068 mkdir conftest
9069 cd conftest
9070 mkdir out
9071 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9072
9073 lt_compiler_flag="-o out/conftest2.$ac_objext"
9074 # Insert the option either (1) after the last *FLAGS variable, or
9075 # (2) before a word containing "conftest.", or (3) at the end.
9076 # Note that $ac_compile itself does not contain backslashes and begins
9077 # with a dollar sign (not a hyphen), so the echo should work correctly.
9078 lt_compile=`echo "$ac_compile" | $SED \
9079 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9080 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9081 -e 's:$: $lt_compiler_flag:'`
9082 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9083 (eval "$lt_compile" 2>out/conftest.err)
9084 ac_status=$?
9085 cat out/conftest.err >&5
9086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9087 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9088 then
9089 # The compiler can only warn and ignore the option if not recognized
9090 # So say no if there are warnings
9091 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9092 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9093 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9094 lt_cv_prog_compiler_c_o=yes
9095 fi
9096 fi
9097 chmod u+w . 2>&5
9098 $RM conftest*
9099 # SGI C++ compiler will create directory out/ii_files/ for
9100 # template instantiation
9101 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9102 $RM out/* && rmdir out
9103 cd ..
9104 $RM -r conftest
9105 $RM conftest*
9106
9107 fi
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9109 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9110
9111
9112
9113
9114
9115
9116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9117 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9118 if ${lt_cv_prog_compiler_c_o+:} false; then :
9119 $as_echo_n "(cached) " >&6
9120 else
9121 lt_cv_prog_compiler_c_o=no
9122 $RM -r conftest 2>/dev/null
9123 mkdir conftest
9124 cd conftest
9125 mkdir out
9126 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9127
9128 lt_compiler_flag="-o out/conftest2.$ac_objext"
9129 # Insert the option either (1) after the last *FLAGS variable, or
9130 # (2) before a word containing "conftest.", or (3) at the end.
9131 # Note that $ac_compile itself does not contain backslashes and begins
9132 # with a dollar sign (not a hyphen), so the echo should work correctly.
9133 lt_compile=`echo "$ac_compile" | $SED \
9134 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9135 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9136 -e 's:$: $lt_compiler_flag:'`
9137 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9138 (eval "$lt_compile" 2>out/conftest.err)
9139 ac_status=$?
9140 cat out/conftest.err >&5
9141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9142 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9143 then
9144 # The compiler can only warn and ignore the option if not recognized
9145 # So say no if there are warnings
9146 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9147 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9148 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9149 lt_cv_prog_compiler_c_o=yes
9150 fi
9151 fi
9152 chmod u+w . 2>&5
9153 $RM conftest*
9154 # SGI C++ compiler will create directory out/ii_files/ for
9155 # template instantiation
9156 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9157 $RM out/* && rmdir out
9158 cd ..
9159 $RM -r conftest
9160 $RM conftest*
9161
9162 fi
9163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9164 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9165
9166
9167
9168
9169 hard_links=nottested
9170 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9171 # do not overwrite the value of need_locks provided by the user
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9173 $as_echo_n "checking if we can lock with hard links... " >&6; }
9174 hard_links=yes
9175 $RM conftest*
9176 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9177 touch conftest.a
9178 ln conftest.a conftest.b 2>&5 || hard_links=no
9179 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9181 $as_echo "$hard_links" >&6; }
9182 if test no = "$hard_links"; then
9183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9184 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9185 need_locks=warn
9186 fi
9187 else
9188 need_locks=no
9189 fi
9190
9191
9192
9193
9194
9195
9196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9197 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9198
9199 runpath_var=
9200 allow_undefined_flag=
9201 always_export_symbols=no
9202 archive_cmds=
9203 archive_expsym_cmds=
9204 compiler_needs_object=no
9205 enable_shared_with_static_runtimes=no
9206 export_dynamic_flag_spec=
9207 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9208 hardcode_automatic=no
9209 hardcode_direct=no
9210 hardcode_direct_absolute=no
9211 hardcode_libdir_flag_spec=
9212 hardcode_libdir_separator=
9213 hardcode_minus_L=no
9214 hardcode_shlibpath_var=unsupported
9215 inherit_rpath=no
9216 link_all_deplibs=unknown
9217 module_cmds=
9218 module_expsym_cmds=
9219 old_archive_from_new_cmds=
9220 old_archive_from_expsyms_cmds=
9221 thread_safe_flag_spec=
9222 whole_archive_flag_spec=
9223 # include_expsyms should be a list of space-separated symbols to be *always*
9224 # included in the symbol list
9225 include_expsyms=
9226 # exclude_expsyms can be an extended regexp of symbols to exclude
9227 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9228 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9229 # as well as any symbol that contains 'd'.
9230 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9231 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9232 # platforms (ab)use it in PIC code, but their linkers get confused if
9233 # the symbol is explicitly referenced. Since portable code cannot
9234 # rely on this symbol name, it's probably fine to never include it in
9235 # preloaded symbol tables.
9236 # Exclude shared library initialization/finalization symbols.
9237 extract_expsyms_cmds=
9238
9239 case $host_os in
9240 cygwin* | mingw* | pw32* | cegcc*)
9241 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9242 # When not using gcc, we currently assume that we are using
9243 # Microsoft Visual C++.
9244 if test yes != "$GCC"; then
9245 with_gnu_ld=no
9246 fi
9247 ;;
9248 interix*)
9249 # we just hope/assume this is gcc and not c89 (= MSVC++)
9250 with_gnu_ld=yes
9251 ;;
9252 openbsd* | bitrig*)
9253 with_gnu_ld=no
9254 ;;
9255 esac
9256
9257 ld_shlibs=yes
9258
9259 # On some targets, GNU ld is compatible enough with the native linker
9260 # that we're better off using the native interface for both.
9261 lt_use_gnu_ld_interface=no
9262 if test yes = "$with_gnu_ld"; then
9263 case $host_os in
9264 aix*)
9265 # The AIX port of GNU ld has always aspired to compatibility
9266 # with the native linker. However, as the warning in the GNU ld
9267 # block says, versions before 2.19.5* couldn't really create working
9268 # shared libraries, regardless of the interface used.
9269 case `$LD -v 2>&1` in
9270 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9271 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9272 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9273 *)
9274 lt_use_gnu_ld_interface=yes
9275 ;;
9276 esac
9277 ;;
9278 *)
9279 lt_use_gnu_ld_interface=yes
9280 ;;
9281 esac
9282 fi
9283
9284 if test yes = "$lt_use_gnu_ld_interface"; then
9285 # If archive_cmds runs LD, not CC, wlarc should be empty
9286 wlarc='$wl'
9287
9288 # Set some defaults for GNU ld with shared library support. These
9289 # are reset later if shared libraries are not supported. Putting them
9290 # here allows them to be overridden if necessary.
9291 runpath_var=LD_RUN_PATH
9292 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9293 export_dynamic_flag_spec='$wl--export-dynamic'
9294 # ancient GNU ld didn't support --whole-archive et. al.
9295 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9296 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9297 else
9298 whole_archive_flag_spec=
9299 fi
9300 supports_anon_versioning=no
9301 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9302 *GNU\ gold*) supports_anon_versioning=yes ;;
9303 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9304 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9305 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9306 *\ 2.11.*) ;; # other 2.11 versions
9307 *) supports_anon_versioning=yes ;;
9308 esac
9309
9310 # See if GNU ld supports shared libraries.
9311 case $host_os in
9312 aix[3-9]*)
9313 # On AIX/PPC, the GNU linker is very broken
9314 if test ia64 != "$host_cpu"; then
9315 ld_shlibs=no
9316 cat <<_LT_EOF 1>&2
9317
9318 *** Warning: the GNU linker, at least up to release 2.19, is reported
9319 *** to be unable to reliably create shared libraries on AIX.
9320 *** Therefore, libtool is disabling shared libraries support. If you
9321 *** really care for shared libraries, you may want to install binutils
9322 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9323 *** You will then need to restart the configuration process.
9324
9325 _LT_EOF
9326 fi
9327 ;;
9328
9329 amigaos*)
9330 case $host_cpu in
9331 powerpc)
9332 # see comment about AmigaOS4 .so support
9333 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9334 archive_expsym_cmds=''
9335 ;;
9336 m68k)
9337 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)'
9338 hardcode_libdir_flag_spec='-L$libdir'
9339 hardcode_minus_L=yes
9340 ;;
9341 esac
9342 ;;
9343
9344 beos*)
9345 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9346 allow_undefined_flag=unsupported
9347 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
9348 # support --undefined. This deserves some investigation. FIXME
9349 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9350 else
9351 ld_shlibs=no
9352 fi
9353 ;;
9354
9355 cygwin* | mingw* | pw32* | cegcc*)
9356 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9357 # as there is no search path for DLLs.
9358 hardcode_libdir_flag_spec='-L$libdir'
9359 export_dynamic_flag_spec='$wl--export-all-symbols'
9360 allow_undefined_flag=unsupported
9361 always_export_symbols=no
9362 enable_shared_with_static_runtimes=yes
9363 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'
9364 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9365
9366 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9367 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9368 # If the export-symbols file already is a .def file, use it as
9369 # is; otherwise, prepend EXPORTS...
9370 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9371 cp $export_symbols $output_objdir/$soname.def;
9372 else
9373 echo EXPORTS > $output_objdir/$soname.def;
9374 cat $export_symbols >> $output_objdir/$soname.def;
9375 fi~
9376 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9377 else
9378 ld_shlibs=no
9379 fi
9380 ;;
9381
9382 haiku*)
9383 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9384 link_all_deplibs=yes
9385 ;;
9386
9387 os2*)
9388 hardcode_libdir_flag_spec='-L$libdir'
9389 hardcode_minus_L=yes
9390 allow_undefined_flag=unsupported
9391 shrext_cmds=.dll
9392 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9393 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9394 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9395 $ECHO EXPORTS >> $output_objdir/$libname.def~
9396 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9397 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9398 emximp -o $lib $output_objdir/$libname.def'
9399 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9400 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9401 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9402 $ECHO EXPORTS >> $output_objdir/$libname.def~
9403 prefix_cmds="$SED"~
9404 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9405 prefix_cmds="$prefix_cmds -e 1d";
9406 fi~
9407 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9408 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9409 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9410 emximp -o $lib $output_objdir/$libname.def'
9411 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9412 enable_shared_with_static_runtimes=yes
9413 ;;
9414
9415 interix[3-9]*)
9416 hardcode_direct=no
9417 hardcode_shlibpath_var=no
9418 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9419 export_dynamic_flag_spec='$wl-E'
9420 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9421 # Instead, shared libraries are loaded at an image base (0x10000000 by
9422 # default) and relocated if they conflict, which is a slow very memory
9423 # consuming and fragmenting process. To avoid this, we pick a random,
9424 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9425 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9426 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9427 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'
9428 ;;
9429
9430 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9431 tmp_diet=no
9432 if test linux-dietlibc = "$host_os"; then
9433 case $cc_basename in
9434 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9435 esac
9436 fi
9437 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9438 && test no = "$tmp_diet"
9439 then
9440 tmp_addflag=' $pic_flag'
9441 tmp_sharedflag='-shared'
9442 case $cc_basename,$host_cpu in
9443 pgcc*) # Portland Group C compiler
9444 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'
9445 tmp_addflag=' $pic_flag'
9446 ;;
9447 pgf77* | pgf90* | pgf95* | pgfortran*)
9448 # Portland Group f77 and f90 compilers
9449 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'
9450 tmp_addflag=' $pic_flag -Mnomain' ;;
9451 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9452 tmp_addflag=' -i_dynamic' ;;
9453 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9454 tmp_addflag=' -i_dynamic -nofor_main' ;;
9455 ifc* | ifort*) # Intel Fortran compiler
9456 tmp_addflag=' -nofor_main' ;;
9457 lf95*) # Lahey Fortran 8.1
9458 whole_archive_flag_spec=
9459 tmp_sharedflag='--shared' ;;
9460 nagfor*) # NAGFOR 5.3
9461 tmp_sharedflag='-Wl,-shared' ;;
9462 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9463 tmp_sharedflag='-qmkshrobj'
9464 tmp_addflag= ;;
9465 nvcc*) # Cuda Compiler Driver 2.2
9466 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'
9467 compiler_needs_object=yes
9468 ;;
9469 esac
9470 case `$CC -V 2>&1 | sed 5q` in
9471 *Sun\ C*) # Sun C 5.9
9472 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'
9473 compiler_needs_object=yes
9474 tmp_sharedflag='-G' ;;
9475 *Sun\ F*) # Sun Fortran 8.3
9476 tmp_sharedflag='-G' ;;
9477 esac
9478 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9479
9480 if test yes = "$supports_anon_versioning"; then
9481 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9482 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9483 echo "local: *; };" >> $output_objdir/$libname.ver~
9484 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9485 fi
9486
9487 case $cc_basename in
9488 tcc*)
9489 export_dynamic_flag_spec='-rdynamic'
9490 ;;
9491 xlf* | bgf* | bgxlf* | mpixlf*)
9492 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9493 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9494 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9495 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9496 if test yes = "$supports_anon_versioning"; then
9497 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9498 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9499 echo "local: *; };" >> $output_objdir/$libname.ver~
9500 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9501 fi
9502 ;;
9503 esac
9504 else
9505 ld_shlibs=no
9506 fi
9507 ;;
9508
9509 netbsd*)
9510 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9511 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9512 wlarc=
9513 else
9514 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9515 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9516 fi
9517 ;;
9518
9519 solaris*)
9520 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9521 ld_shlibs=no
9522 cat <<_LT_EOF 1>&2
9523
9524 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9525 *** create shared libraries on Solaris systems. Therefore, libtool
9526 *** is disabling shared libraries support. We urge you to upgrade GNU
9527 *** binutils to release 2.9.1 or newer. Another option is to modify
9528 *** your PATH or compiler configuration so that the native linker is
9529 *** used, and then restart.
9530
9531 _LT_EOF
9532 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9533 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9534 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9535 else
9536 ld_shlibs=no
9537 fi
9538 ;;
9539
9540 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9541 case `$LD -v 2>&1` in
9542 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9543 ld_shlibs=no
9544 cat <<_LT_EOF 1>&2
9545
9546 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9547 *** reliably create shared libraries on SCO systems. Therefore, libtool
9548 *** is disabling shared libraries support. We urge you to upgrade GNU
9549 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9550 *** your PATH or compiler configuration so that the native linker is
9551 *** used, and then restart.
9552
9553 _LT_EOF
9554 ;;
9555 *)
9556 # For security reasons, it is highly recommended that you always
9557 # use absolute paths for naming shared libraries, and exclude the
9558 # DT_RUNPATH tag from executables and libraries. But doing so
9559 # requires that you compile everything twice, which is a pain.
9560 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9561 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9562 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9563 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9564 else
9565 ld_shlibs=no
9566 fi
9567 ;;
9568 esac
9569 ;;
9570
9571 sunos4*)
9572 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9573 wlarc=
9574 hardcode_direct=yes
9575 hardcode_shlibpath_var=no
9576 ;;
9577
9578 *)
9579 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9580 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9581 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9582 else
9583 ld_shlibs=no
9584 fi
9585 ;;
9586 esac
9587
9588 if test no = "$ld_shlibs"; then
9589 runpath_var=
9590 hardcode_libdir_flag_spec=
9591 export_dynamic_flag_spec=
9592 whole_archive_flag_spec=
9593 fi
9594 else
9595 # PORTME fill in a description of your system's linker (not GNU ld)
9596 case $host_os in
9597 aix3*)
9598 allow_undefined_flag=unsupported
9599 always_export_symbols=yes
9600 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'
9601 # Note: this linker hardcodes the directories in LIBPATH if there
9602 # are no directories specified by -L.
9603 hardcode_minus_L=yes
9604 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9605 # Neither direct hardcoding nor static linking is supported with a
9606 # broken collect2.
9607 hardcode_direct=unsupported
9608 fi
9609 ;;
9610
9611 aix[4-9]*)
9612 if test ia64 = "$host_cpu"; then
9613 # On IA64, the linker does run time linking by default, so we don't
9614 # have to do anything special.
9615 aix_use_runtimelinking=no
9616 exp_sym_flag='-Bexport'
9617 no_entry_flag=
9618 else
9619 # If we're using GNU nm, then we don't want the "-C" option.
9620 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9621 # Without the "-l" option, or with the "-B" option, AIX nm treats
9622 # weak defined symbols like other global defined symbols, whereas
9623 # GNU nm marks them as "W".
9624 # While the 'weak' keyword is ignored in the Export File, we need
9625 # it in the Import File for the 'aix-soname' feature, so we have
9626 # to replace the "-B" option with "-P" for AIX nm.
9627 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9628 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'
9629 else
9630 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 == "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'
9631 fi
9632 aix_use_runtimelinking=no
9633
9634 # Test if we are trying to use run time linking or normal
9635 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9636 # have runtime linking enabled, and use it for executables.
9637 # For shared libraries, we enable/disable runtime linking
9638 # depending on the kind of the shared library created -
9639 # when "with_aix_soname,aix_use_runtimelinking" is:
9640 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9641 # "aix,yes" lib.so shared, rtl:yes, for executables
9642 # lib.a static archive
9643 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9644 # lib.a(lib.so.V) shared, rtl:no, for executables
9645 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9646 # lib.a(lib.so.V) shared, rtl:no
9647 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9648 # lib.a static archive
9649 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9650 for ld_flag in $LDFLAGS; do
9651 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9652 aix_use_runtimelinking=yes
9653 break
9654 fi
9655 done
9656 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9657 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9658 # so we don't have lib.a shared libs to link our executables.
9659 # We have to force runtime linking in this case.
9660 aix_use_runtimelinking=yes
9661 LDFLAGS="$LDFLAGS -Wl,-brtl"
9662 fi
9663 ;;
9664 esac
9665
9666 exp_sym_flag='-bexport'
9667 no_entry_flag='-bnoentry'
9668 fi
9669
9670 # When large executables or shared objects are built, AIX ld can
9671 # have problems creating the table of contents. If linking a library
9672 # or program results in "error TOC overflow" add -mminimal-toc to
9673 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9674 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9675
9676 archive_cmds=''
9677 hardcode_direct=yes
9678 hardcode_direct_absolute=yes
9679 hardcode_libdir_separator=':'
9680 link_all_deplibs=yes
9681 file_list_spec='$wl-f,'
9682 case $with_aix_soname,$aix_use_runtimelinking in
9683 aix,*) ;; # traditional, no import file
9684 svr4,* | *,yes) # use import file
9685 # The Import File defines what to hardcode.
9686 hardcode_direct=no
9687 hardcode_direct_absolute=no
9688 ;;
9689 esac
9690
9691 if test yes = "$GCC"; then
9692 case $host_os in aix4.[012]|aix4.[012].*)
9693 # We only want to do this on AIX 4.2 and lower, the check
9694 # below for broken collect2 doesn't work under 4.3+
9695 collect2name=`$CC -print-prog-name=collect2`
9696 if test -f "$collect2name" &&
9697 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9698 then
9699 # We have reworked collect2
9700 :
9701 else
9702 # We have old collect2
9703 hardcode_direct=unsupported
9704 # It fails to find uninstalled libraries when the uninstalled
9705 # path is not listed in the libpath. Setting hardcode_minus_L
9706 # to unsupported forces relinking
9707 hardcode_minus_L=yes
9708 hardcode_libdir_flag_spec='-L$libdir'
9709 hardcode_libdir_separator=
9710 fi
9711 ;;
9712 esac
9713 shared_flag='-shared'
9714 if test yes = "$aix_use_runtimelinking"; then
9715 shared_flag="$shared_flag "'$wl-G'
9716 fi
9717 # Need to ensure runtime linking is disabled for the traditional
9718 # shared library, or the linker may eventually find shared libraries
9719 # /with/ Import File - we do not want to mix them.
9720 shared_flag_aix='-shared'
9721 shared_flag_svr4='-shared $wl-G'
9722 else
9723 # not using gcc
9724 if test ia64 = "$host_cpu"; then
9725 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9726 # chokes on -Wl,-G. The following line is correct:
9727 shared_flag='-G'
9728 else
9729 if test yes = "$aix_use_runtimelinking"; then
9730 shared_flag='$wl-G'
9731 else
9732 shared_flag='$wl-bM:SRE'
9733 fi
9734 shared_flag_aix='$wl-bM:SRE'
9735 shared_flag_svr4='$wl-G'
9736 fi
9737 fi
9738
9739 export_dynamic_flag_spec='$wl-bexpall'
9740 # It seems that -bexpall does not export symbols beginning with
9741 # underscore (_), so it is better to generate a list of symbols to export.
9742 always_export_symbols=yes
9743 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9744 # Warning - without using the other runtime loading flags (-brtl),
9745 # -berok will link without error, but may produce a broken library.
9746 allow_undefined_flag='-berok'
9747 # Determine the default libpath from the value encoded in an
9748 # empty executable.
9749 if test set = "${lt_cv_aix_libpath+set}"; then
9750 aix_libpath=$lt_cv_aix_libpath
9751 else
9752 if ${lt_cv_aix_libpath_+:} false; then :
9753 $as_echo_n "(cached) " >&6
9754 else
9755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9756 /* end confdefs.h. */
9757
9758 int
9759 main ()
9760 {
9761
9762 ;
9763 return 0;
9764 }
9765 _ACEOF
9766 if ac_fn_c_try_link "$LINENO"; then :
9767
9768 lt_aix_libpath_sed='
9769 /Import File Strings/,/^$/ {
9770 /^0/ {
9771 s/^0 *\([^ ]*\) *$/\1/
9772 p
9773 }
9774 }'
9775 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9776 # Check for a 64-bit object if we didn't find anything.
9777 if test -z "$lt_cv_aix_libpath_"; then
9778 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9779 fi
9780 fi
9781 rm -f core conftest.err conftest.$ac_objext \
9782 conftest$ac_exeext conftest.$ac_ext
9783 if test -z "$lt_cv_aix_libpath_"; then
9784 lt_cv_aix_libpath_=/usr/lib:/lib
9785 fi
9786
9787 fi
9788
9789 aix_libpath=$lt_cv_aix_libpath_
9790 fi
9791
9792 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9793 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
9794 else
9795 if test ia64 = "$host_cpu"; then
9796 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9797 allow_undefined_flag="-z nodefs"
9798 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"
9799 else
9800 # Determine the default libpath from the value encoded in an
9801 # empty executable.
9802 if test set = "${lt_cv_aix_libpath+set}"; then
9803 aix_libpath=$lt_cv_aix_libpath
9804 else
9805 if ${lt_cv_aix_libpath_+:} false; then :
9806 $as_echo_n "(cached) " >&6
9807 else
9808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9809 /* end confdefs.h. */
9810
9811 int
9812 main ()
9813 {
9814
9815 ;
9816 return 0;
9817 }
9818 _ACEOF
9819 if ac_fn_c_try_link "$LINENO"; then :
9820
9821 lt_aix_libpath_sed='
9822 /Import File Strings/,/^$/ {
9823 /^0/ {
9824 s/^0 *\([^ ]*\) *$/\1/
9825 p
9826 }
9827 }'
9828 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9829 # Check for a 64-bit object if we didn't find anything.
9830 if test -z "$lt_cv_aix_libpath_"; then
9831 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9832 fi
9833 fi
9834 rm -f core conftest.err conftest.$ac_objext \
9835 conftest$ac_exeext conftest.$ac_ext
9836 if test -z "$lt_cv_aix_libpath_"; then
9837 lt_cv_aix_libpath_=/usr/lib:/lib
9838 fi
9839
9840 fi
9841
9842 aix_libpath=$lt_cv_aix_libpath_
9843 fi
9844
9845 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9846 # Warning - without using the other run time loading flags,
9847 # -berok will link without error, but may produce a broken library.
9848 no_undefined_flag=' $wl-bernotok'
9849 allow_undefined_flag=' $wl-berok'
9850 if test yes = "$with_gnu_ld"; then
9851 # We only use this code for GNU lds that support --whole-archive.
9852 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9853 else
9854 # Exported symbols can be pulled into shared objects from archives
9855 whole_archive_flag_spec='$convenience'
9856 fi
9857 archive_cmds_need_lc=yes
9858 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9859 # -brtl affects multiple linker settings, -berok does not and is overridden later
9860 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9861 if test svr4 != "$with_aix_soname"; then
9862 # This is similar to how AIX traditionally builds its shared libraries.
9863 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'
9864 fi
9865 if test aix != "$with_aix_soname"; then
9866 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'
9867 else
9868 # used by -dlpreopen to get the symbols
9869 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9870 fi
9871 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9872 fi
9873 fi
9874 ;;
9875
9876 amigaos*)
9877 case $host_cpu in
9878 powerpc)
9879 # see comment about AmigaOS4 .so support
9880 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9881 archive_expsym_cmds=''
9882 ;;
9883 m68k)
9884 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)'
9885 hardcode_libdir_flag_spec='-L$libdir'
9886 hardcode_minus_L=yes
9887 ;;
9888 esac
9889 ;;
9890
9891 bsdi[45]*)
9892 export_dynamic_flag_spec=-rdynamic
9893 ;;
9894
9895 cygwin* | mingw* | pw32* | cegcc*)
9896 # When not using gcc, we currently assume that we are using
9897 # Microsoft Visual C++.
9898 # hardcode_libdir_flag_spec is actually meaningless, as there is
9899 # no search path for DLLs.
9900 case $cc_basename in
9901 cl*)
9902 # Native MSVC
9903 hardcode_libdir_flag_spec=' '
9904 allow_undefined_flag=unsupported
9905 always_export_symbols=yes
9906 file_list_spec='@'
9907 # Tell ltmain to make .lib files, not .a files.
9908 libext=lib
9909 # Tell ltmain to make .dll files, not .so files.
9910 shrext_cmds=.dll
9911 # FIXME: Setting linknames here is a bad hack.
9912 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9913 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9914 cp "$export_symbols" "$output_objdir/$soname.def";
9915 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9916 else
9917 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9918 fi~
9919 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9920 linknames='
9921 # The linker will not automatically build a static lib if we build a DLL.
9922 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9923 enable_shared_with_static_runtimes=yes
9924 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9925 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9926 # Don't use ranlib
9927 old_postinstall_cmds='chmod 644 $oldlib'
9928 postlink_cmds='lt_outputfile="@OUTPUT@"~
9929 lt_tool_outputfile="@TOOL_OUTPUT@"~
9930 case $lt_outputfile in
9931 *.exe|*.EXE) ;;
9932 *)
9933 lt_outputfile=$lt_outputfile.exe
9934 lt_tool_outputfile=$lt_tool_outputfile.exe
9935 ;;
9936 esac~
9937 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9938 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9939 $RM "$lt_outputfile.manifest";
9940 fi'
9941 ;;
9942 *)
9943 # Assume MSVC wrapper
9944 hardcode_libdir_flag_spec=' '
9945 allow_undefined_flag=unsupported
9946 # Tell ltmain to make .lib files, not .a files.
9947 libext=lib
9948 # Tell ltmain to make .dll files, not .so files.
9949 shrext_cmds=.dll
9950 # FIXME: Setting linknames here is a bad hack.
9951 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9952 # The linker will automatically build a .lib file if we build a DLL.
9953 old_archive_from_new_cmds='true'
9954 # FIXME: Should let the user specify the lib program.
9955 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9956 enable_shared_with_static_runtimes=yes
9957 ;;
9958 esac
9959 ;;
9960
9961 darwin* | rhapsody*)
9962
9963
9964 archive_cmds_need_lc=no
9965 hardcode_direct=no
9966 hardcode_automatic=yes
9967 hardcode_shlibpath_var=unsupported
9968 if test yes = "$lt_cv_ld_force_load"; then
9969 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\"`'
9970
9971 else
9972 whole_archive_flag_spec=''
9973 fi
9974 link_all_deplibs=yes
9975 allow_undefined_flag=$_lt_dar_allow_undefined
9976 case $cc_basename in
9977 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9978 *) _lt_dar_can_shared=$GCC ;;
9979 esac
9980 if test yes = "$_lt_dar_can_shared"; then
9981 output_verbose_link_cmd=func_echo_all
9982 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9983 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9984 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"
9985 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"
9986
9987 else
9988 ld_shlibs=no
9989 fi
9990
9991 ;;
9992
9993 dgux*)
9994 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9995 hardcode_libdir_flag_spec='-L$libdir'
9996 hardcode_shlibpath_var=no
9997 ;;
9998
9999 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10000 # support. Future versions do this automatically, but an explicit c++rt0.o
10001 # does not break anything, and helps significantly (at the cost of a little
10002 # extra space).
10003 freebsd2.2*)
10004 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10005 hardcode_libdir_flag_spec='-R$libdir'
10006 hardcode_direct=yes
10007 hardcode_shlibpath_var=no
10008 ;;
10009
10010 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10011 freebsd2.*)
10012 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10013 hardcode_direct=yes
10014 hardcode_minus_L=yes
10015 hardcode_shlibpath_var=no
10016 ;;
10017
10018 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10019 freebsd* | dragonfly*)
10020 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10021 hardcode_libdir_flag_spec='-R$libdir'
10022 hardcode_direct=yes
10023 hardcode_shlibpath_var=no
10024 ;;
10025
10026 hpux9*)
10027 if test yes = "$GCC"; then
10028 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'
10029 else
10030 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'
10031 fi
10032 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10033 hardcode_libdir_separator=:
10034 hardcode_direct=yes
10035
10036 # hardcode_minus_L: Not really in the search PATH,
10037 # but as the default location of the library.
10038 hardcode_minus_L=yes
10039 export_dynamic_flag_spec='$wl-E'
10040 ;;
10041
10042 hpux10*)
10043 if test yes,no = "$GCC,$with_gnu_ld"; then
10044 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10045 else
10046 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10047 fi
10048 if test no = "$with_gnu_ld"; then
10049 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10050 hardcode_libdir_separator=:
10051 hardcode_direct=yes
10052 hardcode_direct_absolute=yes
10053 export_dynamic_flag_spec='$wl-E'
10054 # hardcode_minus_L: Not really in the search PATH,
10055 # but as the default location of the library.
10056 hardcode_minus_L=yes
10057 fi
10058 ;;
10059
10060 hpux11*)
10061 if test yes,no = "$GCC,$with_gnu_ld"; then
10062 case $host_cpu in
10063 hppa*64*)
10064 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10065 ;;
10066 ia64*)
10067 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10068 ;;
10069 *)
10070 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10071 ;;
10072 esac
10073 else
10074 case $host_cpu in
10075 hppa*64*)
10076 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10077 ;;
10078 ia64*)
10079 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10080 ;;
10081 *)
10082
10083 # Older versions of the 11.00 compiler do not understand -b yet
10084 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10086 $as_echo_n "checking if $CC understands -b... " >&6; }
10087 if ${lt_cv_prog_compiler__b+:} false; then :
10088 $as_echo_n "(cached) " >&6
10089 else
10090 lt_cv_prog_compiler__b=no
10091 save_LDFLAGS=$LDFLAGS
10092 LDFLAGS="$LDFLAGS -b"
10093 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10094 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10095 # The linker can only warn and ignore the option if not recognized
10096 # So say no if there are warnings
10097 if test -s conftest.err; then
10098 # Append any errors to the config.log.
10099 cat conftest.err 1>&5
10100 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10101 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10102 if diff conftest.exp conftest.er2 >/dev/null; then
10103 lt_cv_prog_compiler__b=yes
10104 fi
10105 else
10106 lt_cv_prog_compiler__b=yes
10107 fi
10108 fi
10109 $RM -r conftest*
10110 LDFLAGS=$save_LDFLAGS
10111
10112 fi
10113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10114 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10115
10116 if test yes = "$lt_cv_prog_compiler__b"; then
10117 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10118 else
10119 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10120 fi
10121
10122 ;;
10123 esac
10124 fi
10125 if test no = "$with_gnu_ld"; then
10126 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10127 hardcode_libdir_separator=:
10128
10129 case $host_cpu in
10130 hppa*64*|ia64*)
10131 hardcode_direct=no
10132 hardcode_shlibpath_var=no
10133 ;;
10134 *)
10135 hardcode_direct=yes
10136 hardcode_direct_absolute=yes
10137 export_dynamic_flag_spec='$wl-E'
10138
10139 # hardcode_minus_L: Not really in the search PATH,
10140 # but as the default location of the library.
10141 hardcode_minus_L=yes
10142 ;;
10143 esac
10144 fi
10145 ;;
10146
10147 irix5* | irix6* | nonstopux*)
10148 if test yes = "$GCC"; then
10149 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'
10150 # Try to use the -exported_symbol ld option, if it does not
10151 # work, assume that -exports_file does not work either and
10152 # implicitly export all symbols.
10153 # This should be the same for all languages, so no per-tag cache variable.
10154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10155 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10156 if ${lt_cv_irix_exported_symbol+:} false; then :
10157 $as_echo_n "(cached) " >&6
10158 else
10159 save_LDFLAGS=$LDFLAGS
10160 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10162 /* end confdefs.h. */
10163 int foo (void) { return 0; }
10164 _ACEOF
10165 if ac_fn_c_try_link "$LINENO"; then :
10166 lt_cv_irix_exported_symbol=yes
10167 else
10168 lt_cv_irix_exported_symbol=no
10169 fi
10170 rm -f core conftest.err conftest.$ac_objext \
10171 conftest$ac_exeext conftest.$ac_ext
10172 LDFLAGS=$save_LDFLAGS
10173 fi
10174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10175 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10176 if test yes = "$lt_cv_irix_exported_symbol"; then
10177 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'
10178 fi
10179 else
10180 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'
10181 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'
10182 fi
10183 archive_cmds_need_lc='no'
10184 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10185 hardcode_libdir_separator=:
10186 inherit_rpath=yes
10187 link_all_deplibs=yes
10188 ;;
10189
10190 linux*)
10191 case $cc_basename in
10192 tcc*)
10193 # Fabrice Bellard et al's Tiny C Compiler
10194 ld_shlibs=yes
10195 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10196 ;;
10197 esac
10198 ;;
10199
10200 netbsd*)
10201 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10202 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10203 else
10204 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10205 fi
10206 hardcode_libdir_flag_spec='-R$libdir'
10207 hardcode_direct=yes
10208 hardcode_shlibpath_var=no
10209 ;;
10210
10211 newsos6)
10212 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10213 hardcode_direct=yes
10214 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10215 hardcode_libdir_separator=:
10216 hardcode_shlibpath_var=no
10217 ;;
10218
10219 *nto* | *qnx*)
10220 ;;
10221
10222 openbsd* | bitrig*)
10223 if test -f /usr/libexec/ld.so; then
10224 hardcode_direct=yes
10225 hardcode_shlibpath_var=no
10226 hardcode_direct_absolute=yes
10227 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10228 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10229 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10230 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10231 export_dynamic_flag_spec='$wl-E'
10232 else
10233 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10234 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10235 fi
10236 else
10237 ld_shlibs=no
10238 fi
10239 ;;
10240
10241 os2*)
10242 hardcode_libdir_flag_spec='-L$libdir'
10243 hardcode_minus_L=yes
10244 allow_undefined_flag=unsupported
10245 shrext_cmds=.dll
10246 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10247 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10248 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10249 $ECHO EXPORTS >> $output_objdir/$libname.def~
10250 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10251 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10252 emximp -o $lib $output_objdir/$libname.def'
10253 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10254 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10255 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10256 $ECHO EXPORTS >> $output_objdir/$libname.def~
10257 prefix_cmds="$SED"~
10258 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10259 prefix_cmds="$prefix_cmds -e 1d";
10260 fi~
10261 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10262 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10263 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10264 emximp -o $lib $output_objdir/$libname.def'
10265 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10266 enable_shared_with_static_runtimes=yes
10267 ;;
10268
10269 osf3*)
10270 if test yes = "$GCC"; then
10271 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10272 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'
10273 else
10274 allow_undefined_flag=' -expect_unresolved \*'
10275 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'
10276 fi
10277 archive_cmds_need_lc='no'
10278 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10279 hardcode_libdir_separator=:
10280 ;;
10281
10282 osf4* | osf5*) # as osf3* with the addition of -msym flag
10283 if test yes = "$GCC"; then
10284 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10285 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'
10286 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10287 else
10288 allow_undefined_flag=' -expect_unresolved \*'
10289 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'
10290 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~
10291 $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'
10292
10293 # Both c and cxx compiler support -rpath directly
10294 hardcode_libdir_flag_spec='-rpath $libdir'
10295 fi
10296 archive_cmds_need_lc='no'
10297 hardcode_libdir_separator=:
10298 ;;
10299
10300 solaris*)
10301 no_undefined_flag=' -z defs'
10302 if test yes = "$GCC"; then
10303 wlarc='$wl'
10304 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10305 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10306 $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'
10307 else
10308 case `$CC -V 2>&1` in
10309 *"Compilers 5.0"*)
10310 wlarc=''
10311 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10312 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10313 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10314 ;;
10315 *)
10316 wlarc='$wl'
10317 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10318 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10319 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10320 ;;
10321 esac
10322 fi
10323 hardcode_libdir_flag_spec='-R$libdir'
10324 hardcode_shlibpath_var=no
10325 case $host_os in
10326 solaris2.[0-5] | solaris2.[0-5].*) ;;
10327 *)
10328 # The compiler driver will combine and reorder linker options,
10329 # but understands '-z linker_flag'. GCC discards it without '$wl',
10330 # but is careful enough not to reorder.
10331 # Supported since Solaris 2.6 (maybe 2.5.1?)
10332 if test yes = "$GCC"; then
10333 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10334 else
10335 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10336 fi
10337 ;;
10338 esac
10339 link_all_deplibs=yes
10340 ;;
10341
10342 sunos4*)
10343 if test sequent = "$host_vendor"; then
10344 # Use $CC to link under sequent, because it throws in some extra .o
10345 # files that make .init and .fini sections work.
10346 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10347 else
10348 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10349 fi
10350 hardcode_libdir_flag_spec='-L$libdir'
10351 hardcode_direct=yes
10352 hardcode_minus_L=yes
10353 hardcode_shlibpath_var=no
10354 ;;
10355
10356 sysv4)
10357 case $host_vendor in
10358 sni)
10359 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10360 hardcode_direct=yes # is this really true???
10361 ;;
10362 siemens)
10363 ## LD is ld it makes a PLAMLIB
10364 ## CC just makes a GrossModule.
10365 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10366 reload_cmds='$CC -r -o $output$reload_objs'
10367 hardcode_direct=no
10368 ;;
10369 motorola)
10370 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10371 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10372 ;;
10373 esac
10374 runpath_var='LD_RUN_PATH'
10375 hardcode_shlibpath_var=no
10376 ;;
10377
10378 sysv4.3*)
10379 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10380 hardcode_shlibpath_var=no
10381 export_dynamic_flag_spec='-Bexport'
10382 ;;
10383
10384 sysv4*MP*)
10385 if test -d /usr/nec; then
10386 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10387 hardcode_shlibpath_var=no
10388 runpath_var=LD_RUN_PATH
10389 hardcode_runpath_var=yes
10390 ld_shlibs=yes
10391 fi
10392 ;;
10393
10394 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10395 no_undefined_flag='$wl-z,text'
10396 archive_cmds_need_lc=no
10397 hardcode_shlibpath_var=no
10398 runpath_var='LD_RUN_PATH'
10399
10400 if test yes = "$GCC"; then
10401 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10402 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10403 else
10404 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10405 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10406 fi
10407 ;;
10408
10409 sysv5* | sco3.2v5* | sco5v6*)
10410 # Note: We CANNOT use -z defs as we might desire, because we do not
10411 # link with -lc, and that would cause any symbols used from libc to
10412 # always be unresolved, which means just about no library would
10413 # ever link correctly. If we're not using GNU ld we use -z text
10414 # though, which does catch some bad symbols but isn't as heavy-handed
10415 # as -z defs.
10416 no_undefined_flag='$wl-z,text'
10417 allow_undefined_flag='$wl-z,nodefs'
10418 archive_cmds_need_lc=no
10419 hardcode_shlibpath_var=no
10420 hardcode_libdir_flag_spec='$wl-R,$libdir'
10421 hardcode_libdir_separator=':'
10422 link_all_deplibs=yes
10423 export_dynamic_flag_spec='$wl-Bexport'
10424 runpath_var='LD_RUN_PATH'
10425
10426 if test yes = "$GCC"; then
10427 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10428 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10429 else
10430 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10431 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10432 fi
10433 ;;
10434
10435 uts4*)
10436 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10437 hardcode_libdir_flag_spec='-L$libdir'
10438 hardcode_shlibpath_var=no
10439 ;;
10440
10441 *)
10442 ld_shlibs=no
10443 ;;
10444 esac
10445
10446 if test sni = "$host_vendor"; then
10447 case $host in
10448 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10449 export_dynamic_flag_spec='$wl-Blargedynsym'
10450 ;;
10451 esac
10452 fi
10453 fi
10454
10455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10456 $as_echo "$ld_shlibs" >&6; }
10457 test no = "$ld_shlibs" && can_build_shared=no
10458
10459 with_gnu_ld=$with_gnu_ld
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475 #
10476 # Do we need to explicitly link libc?
10477 #
10478 case "x$archive_cmds_need_lc" in
10479 x|xyes)
10480 # Assume -lc should be added
10481 archive_cmds_need_lc=yes
10482
10483 if test yes,yes = "$GCC,$enable_shared"; then
10484 case $archive_cmds in
10485 *'~'*)
10486 # FIXME: we may have to deal with multi-command sequences.
10487 ;;
10488 '$CC '*)
10489 # Test whether the compiler implicitly links with -lc since on some
10490 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10491 # to ld, don't add -lc before -lgcc.
10492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10493 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10494 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10495 $as_echo_n "(cached) " >&6
10496 else
10497 $RM conftest*
10498 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10499
10500 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10501 (eval $ac_compile) 2>&5
10502 ac_status=$?
10503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10504 test $ac_status = 0; } 2>conftest.err; then
10505 soname=conftest
10506 lib=conftest
10507 libobjs=conftest.$ac_objext
10508 deplibs=
10509 wl=$lt_prog_compiler_wl
10510 pic_flag=$lt_prog_compiler_pic
10511 compiler_flags=-v
10512 linker_flags=-v
10513 verstring=
10514 output_objdir=.
10515 libname=conftest
10516 lt_save_allow_undefined_flag=$allow_undefined_flag
10517 allow_undefined_flag=
10518 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10519 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10520 ac_status=$?
10521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10522 test $ac_status = 0; }
10523 then
10524 lt_cv_archive_cmds_need_lc=no
10525 else
10526 lt_cv_archive_cmds_need_lc=yes
10527 fi
10528 allow_undefined_flag=$lt_save_allow_undefined_flag
10529 else
10530 cat conftest.err 1>&5
10531 fi
10532 $RM conftest*
10533
10534 fi
10535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10536 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10537 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10538 ;;
10539 esac
10540 fi
10541 ;;
10542 esac
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10696 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10697
10698 if test yes = "$GCC"; then
10699 case $host_os in
10700 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10701 *) lt_awk_arg='/^libraries:/' ;;
10702 esac
10703 case $host_os in
10704 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10705 *) lt_sed_strip_eq='s|=/|/|g' ;;
10706 esac
10707 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10708 case $lt_search_path_spec in
10709 *\;*)
10710 # if the path contains ";" then we assume it to be the separator
10711 # otherwise default to the standard path separator (i.e. ":") - it is
10712 # assumed that no part of a normal pathname contains ";" but that should
10713 # okay in the real world where ";" in dirpaths is itself problematic.
10714 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10715 ;;
10716 *)
10717 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10718 ;;
10719 esac
10720 # Ok, now we have the path, separated by spaces, we can step through it
10721 # and add multilib dir if necessary...
10722 lt_tmp_lt_search_path_spec=
10723 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10724 # ...but if some path component already ends with the multilib dir we assume
10725 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10726 case "$lt_multi_os_dir; $lt_search_path_spec " in
10727 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10728 lt_multi_os_dir=
10729 ;;
10730 esac
10731 for lt_sys_path in $lt_search_path_spec; do
10732 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10733 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10734 elif test -n "$lt_multi_os_dir"; then
10735 test -d "$lt_sys_path" && \
10736 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10737 fi
10738 done
10739 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10740 BEGIN {RS = " "; FS = "/|\n";} {
10741 lt_foo = "";
10742 lt_count = 0;
10743 for (lt_i = NF; lt_i > 0; lt_i--) {
10744 if ($lt_i != "" && $lt_i != ".") {
10745 if ($lt_i == "..") {
10746 lt_count++;
10747 } else {
10748 if (lt_count == 0) {
10749 lt_foo = "/" $lt_i lt_foo;
10750 } else {
10751 lt_count--;
10752 }
10753 }
10754 }
10755 }
10756 if (lt_foo != "") { lt_freq[lt_foo]++; }
10757 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10758 }'`
10759 # AWK program above erroneously prepends '/' to C:/dos/paths
10760 # for these hosts.
10761 case $host_os in
10762 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10763 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10764 esac
10765 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10766 else
10767 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10768 fi
10769 library_names_spec=
10770 libname_spec='lib$name'
10771 soname_spec=
10772 shrext_cmds=.so
10773 postinstall_cmds=
10774 postuninstall_cmds=
10775 finish_cmds=
10776 finish_eval=
10777 shlibpath_var=
10778 shlibpath_overrides_runpath=unknown
10779 version_type=none
10780 dynamic_linker="$host_os ld.so"
10781 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10782 need_lib_prefix=unknown
10783 hardcode_into_libs=no
10784
10785 # when you set need_version to no, make sure it does not cause -set_version
10786 # flags to be left without arguments
10787 need_version=unknown
10788
10789
10790
10791 case $host_os in
10792 aix3*)
10793 version_type=linux # correct to gnu/linux during the next big refactor
10794 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10795 shlibpath_var=LIBPATH
10796
10797 # AIX 3 has no versioning support, so we append a major version to the name.
10798 soname_spec='$libname$release$shared_ext$major'
10799 ;;
10800
10801 aix[4-9]*)
10802 version_type=linux # correct to gnu/linux during the next big refactor
10803 need_lib_prefix=no
10804 need_version=no
10805 hardcode_into_libs=yes
10806 if test ia64 = "$host_cpu"; then
10807 # AIX 5 supports IA64
10808 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10809 shlibpath_var=LD_LIBRARY_PATH
10810 else
10811 # With GCC up to 2.95.x, collect2 would create an import file
10812 # for dependence libraries. The import file would start with
10813 # the line '#! .'. This would cause the generated library to
10814 # depend on '.', always an invalid library. This was fixed in
10815 # development snapshots of GCC prior to 3.0.
10816 case $host_os in
10817 aix4 | aix4.[01] | aix4.[01].*)
10818 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10819 echo ' yes '
10820 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10821 :
10822 else
10823 can_build_shared=no
10824 fi
10825 ;;
10826 esac
10827 # Using Import Files as archive members, it is possible to support
10828 # filename-based versioning of shared library archives on AIX. While
10829 # this would work for both with and without runtime linking, it will
10830 # prevent static linking of such archives. So we do filename-based
10831 # shared library versioning with .so extension only, which is used
10832 # when both runtime linking and shared linking is enabled.
10833 # Unfortunately, runtime linking may impact performance, so we do
10834 # not want this to be the default eventually. Also, we use the
10835 # versioned .so libs for executables only if there is the -brtl
10836 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10837 # To allow for filename-based versioning support, we need to create
10838 # libNAME.so.V as an archive file, containing:
10839 # *) an Import File, referring to the versioned filename of the
10840 # archive as well as the shared archive member, telling the
10841 # bitwidth (32 or 64) of that shared object, and providing the
10842 # list of exported symbols of that shared object, eventually
10843 # decorated with the 'weak' keyword
10844 # *) the shared object with the F_LOADONLY flag set, to really avoid
10845 # it being seen by the linker.
10846 # At run time we better use the real file rather than another symlink,
10847 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10848
10849 case $with_aix_soname,$aix_use_runtimelinking in
10850 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10851 # soname into executable. Probably we can add versioning support to
10852 # collect2, so additional links can be useful in future.
10853 aix,yes) # traditional libtool
10854 dynamic_linker='AIX unversionable lib.so'
10855 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10856 # instead of lib<name>.a to let people know that these are not
10857 # typical AIX shared libraries.
10858 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10859 ;;
10860 aix,no) # traditional AIX only
10861 dynamic_linker='AIX lib.a(lib.so.V)'
10862 # We preserve .a as extension for shared libraries through AIX4.2
10863 # and later when we are not doing run time linking.
10864 library_names_spec='$libname$release.a $libname.a'
10865 soname_spec='$libname$release$shared_ext$major'
10866 ;;
10867 svr4,*) # full svr4 only
10868 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10869 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10870 # We do not specify a path in Import Files, so LIBPATH fires.
10871 shlibpath_overrides_runpath=yes
10872 ;;
10873 *,yes) # both, prefer svr4
10874 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10875 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10876 # unpreferred sharedlib libNAME.a needs extra handling
10877 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"'
10878 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"'
10879 # We do not specify a path in Import Files, so LIBPATH fires.
10880 shlibpath_overrides_runpath=yes
10881 ;;
10882 *,no) # both, prefer aix
10883 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10884 library_names_spec='$libname$release.a $libname.a'
10885 soname_spec='$libname$release$shared_ext$major'
10886 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10887 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)'
10888 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"'
10889 ;;
10890 esac
10891 shlibpath_var=LIBPATH
10892 fi
10893 ;;
10894
10895 amigaos*)
10896 case $host_cpu in
10897 powerpc)
10898 # Since July 2007 AmigaOS4 officially supports .so libraries.
10899 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10900 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10901 ;;
10902 m68k)
10903 library_names_spec='$libname.ixlibrary $libname.a'
10904 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10905 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'
10906 ;;
10907 esac
10908 ;;
10909
10910 beos*)
10911 library_names_spec='$libname$shared_ext'
10912 dynamic_linker="$host_os ld.so"
10913 shlibpath_var=LIBRARY_PATH
10914 ;;
10915
10916 bsdi[45]*)
10917 version_type=linux # correct to gnu/linux during the next big refactor
10918 need_version=no
10919 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10920 soname_spec='$libname$release$shared_ext$major'
10921 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10922 shlibpath_var=LD_LIBRARY_PATH
10923 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10924 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10925 # the default ld.so.conf also contains /usr/contrib/lib and
10926 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10927 # libtool to hard-code these into programs
10928 ;;
10929
10930 cygwin* | mingw* | pw32* | cegcc*)
10931 version_type=windows
10932 shrext_cmds=.dll
10933 need_version=no
10934 need_lib_prefix=no
10935
10936 case $GCC,$cc_basename in
10937 yes,*)
10938 # gcc
10939 library_names_spec='$libname.dll.a'
10940 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10941 postinstall_cmds='base_file=`basename \$file`~
10942 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10943 dldir=$destdir/`dirname \$dlpath`~
10944 test -d \$dldir || mkdir -p \$dldir~
10945 $install_prog $dir/$dlname \$dldir/$dlname~
10946 chmod a+x \$dldir/$dlname~
10947 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10948 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10949 fi'
10950 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10951 dlpath=$dir/\$dldll~
10952 $RM \$dlpath'
10953 shlibpath_overrides_runpath=yes
10954
10955 case $host_os in
10956 cygwin*)
10957 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10958 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10959
10960 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10961 ;;
10962 mingw* | cegcc*)
10963 # MinGW DLLs use traditional 'lib' prefix
10964 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10965 ;;
10966 pw32*)
10967 # pw32 DLLs use 'pw' prefix rather than 'lib'
10968 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10969 ;;
10970 esac
10971 dynamic_linker='Win32 ld.exe'
10972 ;;
10973
10974 *,cl*)
10975 # Native MSVC
10976 libname_spec='$name'
10977 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10978 library_names_spec='$libname.dll.lib'
10979
10980 case $build_os in
10981 mingw*)
10982 sys_lib_search_path_spec=
10983 lt_save_ifs=$IFS
10984 IFS=';'
10985 for lt_path in $LIB
10986 do
10987 IFS=$lt_save_ifs
10988 # Let DOS variable expansion print the short 8.3 style file name.
10989 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10990 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10991 done
10992 IFS=$lt_save_ifs
10993 # Convert to MSYS style.
10994 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10995 ;;
10996 cygwin*)
10997 # Convert to unix form, then to dos form, then back to unix form
10998 # but this time dos style (no spaces!) so that the unix form looks
10999 # like /cygdrive/c/PROGRA~1:/cygdr...
11000 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11001 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11002 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11003 ;;
11004 *)
11005 sys_lib_search_path_spec=$LIB
11006 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11007 # It is most probably a Windows format PATH.
11008 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11009 else
11010 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11011 fi
11012 # FIXME: find the short name or the path components, as spaces are
11013 # common. (e.g. "Program Files" -> "PROGRA~1")
11014 ;;
11015 esac
11016
11017 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11018 postinstall_cmds='base_file=`basename \$file`~
11019 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11020 dldir=$destdir/`dirname \$dlpath`~
11021 test -d \$dldir || mkdir -p \$dldir~
11022 $install_prog $dir/$dlname \$dldir/$dlname'
11023 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11024 dlpath=$dir/\$dldll~
11025 $RM \$dlpath'
11026 shlibpath_overrides_runpath=yes
11027 dynamic_linker='Win32 link.exe'
11028 ;;
11029
11030 *)
11031 # Assume MSVC wrapper
11032 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11033 dynamic_linker='Win32 ld.exe'
11034 ;;
11035 esac
11036 # FIXME: first we should search . and the directory the executable is in
11037 shlibpath_var=PATH
11038 ;;
11039
11040 darwin* | rhapsody*)
11041 dynamic_linker="$host_os dyld"
11042 version_type=darwin
11043 need_lib_prefix=no
11044 need_version=no
11045 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11046 soname_spec='$libname$release$major$shared_ext'
11047 shlibpath_overrides_runpath=yes
11048 shlibpath_var=DYLD_LIBRARY_PATH
11049 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11050
11051 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11052 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11053 ;;
11054
11055 dgux*)
11056 version_type=linux # correct to gnu/linux during the next big refactor
11057 need_lib_prefix=no
11058 need_version=no
11059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11060 soname_spec='$libname$release$shared_ext$major'
11061 shlibpath_var=LD_LIBRARY_PATH
11062 ;;
11063
11064 freebsd* | dragonfly*)
11065 # DragonFly does not have aout. When/if they implement a new
11066 # versioning mechanism, adjust this.
11067 if test -x /usr/bin/objformat; then
11068 objformat=`/usr/bin/objformat`
11069 else
11070 case $host_os in
11071 freebsd[23].*) objformat=aout ;;
11072 *) objformat=elf ;;
11073 esac
11074 fi
11075 version_type=freebsd-$objformat
11076 case $version_type in
11077 freebsd-elf*)
11078 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11079 soname_spec='$libname$release$shared_ext$major'
11080 need_version=no
11081 need_lib_prefix=no
11082 ;;
11083 freebsd-*)
11084 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11085 need_version=yes
11086 ;;
11087 esac
11088 shlibpath_var=LD_LIBRARY_PATH
11089 case $host_os in
11090 freebsd2.*)
11091 shlibpath_overrides_runpath=yes
11092 ;;
11093 freebsd3.[01]* | freebsdelf3.[01]*)
11094 shlibpath_overrides_runpath=yes
11095 hardcode_into_libs=yes
11096 ;;
11097 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11098 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11099 shlibpath_overrides_runpath=no
11100 hardcode_into_libs=yes
11101 ;;
11102 *) # from 4.6 on, and DragonFly
11103 shlibpath_overrides_runpath=yes
11104 hardcode_into_libs=yes
11105 ;;
11106 esac
11107 ;;
11108
11109 haiku*)
11110 version_type=linux # correct to gnu/linux during the next big refactor
11111 need_lib_prefix=no
11112 need_version=no
11113 dynamic_linker="$host_os runtime_loader"
11114 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11115 soname_spec='$libname$release$shared_ext$major'
11116 shlibpath_var=LIBRARY_PATH
11117 shlibpath_overrides_runpath=no
11118 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11119 hardcode_into_libs=yes
11120 ;;
11121
11122 hpux9* | hpux10* | hpux11*)
11123 # Give a soname corresponding to the major version so that dld.sl refuses to
11124 # link against other versions.
11125 version_type=sunos
11126 need_lib_prefix=no
11127 need_version=no
11128 case $host_cpu in
11129 ia64*)
11130 shrext_cmds='.so'
11131 hardcode_into_libs=yes
11132 dynamic_linker="$host_os dld.so"
11133 shlibpath_var=LD_LIBRARY_PATH
11134 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11135 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11136 soname_spec='$libname$release$shared_ext$major'
11137 if test 32 = "$HPUX_IA64_MODE"; then
11138 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11139 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11140 else
11141 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11142 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11143 fi
11144 ;;
11145 hppa*64*)
11146 shrext_cmds='.sl'
11147 hardcode_into_libs=yes
11148 dynamic_linker="$host_os dld.sl"
11149 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11150 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11151 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11152 soname_spec='$libname$release$shared_ext$major'
11153 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11154 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11155 ;;
11156 *)
11157 shrext_cmds='.sl'
11158 dynamic_linker="$host_os dld.sl"
11159 shlibpath_var=SHLIB_PATH
11160 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11161 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11162 soname_spec='$libname$release$shared_ext$major'
11163 ;;
11164 esac
11165 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11166 postinstall_cmds='chmod 555 $lib'
11167 # or fails outright, so override atomically:
11168 install_override_mode=555
11169 ;;
11170
11171 interix[3-9]*)
11172 version_type=linux # correct to gnu/linux during the next big refactor
11173 need_lib_prefix=no
11174 need_version=no
11175 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11176 soname_spec='$libname$release$shared_ext$major'
11177 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11178 shlibpath_var=LD_LIBRARY_PATH
11179 shlibpath_overrides_runpath=no
11180 hardcode_into_libs=yes
11181 ;;
11182
11183 irix5* | irix6* | nonstopux*)
11184 case $host_os in
11185 nonstopux*) version_type=nonstopux ;;
11186 *)
11187 if test yes = "$lt_cv_prog_gnu_ld"; then
11188 version_type=linux # correct to gnu/linux during the next big refactor
11189 else
11190 version_type=irix
11191 fi ;;
11192 esac
11193 need_lib_prefix=no
11194 need_version=no
11195 soname_spec='$libname$release$shared_ext$major'
11196 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11197 case $host_os in
11198 irix5* | nonstopux*)
11199 libsuff= shlibsuff=
11200 ;;
11201 *)
11202 case $LD in # libtool.m4 will add one of these switches to LD
11203 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11204 libsuff= shlibsuff= libmagic=32-bit;;
11205 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11206 libsuff=32 shlibsuff=N32 libmagic=N32;;
11207 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11208 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11209 *) libsuff= shlibsuff= libmagic=never-match;;
11210 esac
11211 ;;
11212 esac
11213 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11214 shlibpath_overrides_runpath=no
11215 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11216 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11217 hardcode_into_libs=yes
11218 ;;
11219
11220 # No shared lib support for Linux oldld, aout, or coff.
11221 linux*oldld* | linux*aout* | linux*coff*)
11222 dynamic_linker=no
11223 ;;
11224
11225 linux*android*)
11226 version_type=none # Android doesn't support versioned libraries.
11227 need_lib_prefix=no
11228 need_version=no
11229 library_names_spec='$libname$release$shared_ext'
11230 soname_spec='$libname$release$shared_ext'
11231 finish_cmds=
11232 shlibpath_var=LD_LIBRARY_PATH
11233 shlibpath_overrides_runpath=yes
11234
11235 # This implies no fast_install, which is unacceptable.
11236 # Some rework will be needed to allow for fast_install
11237 # before this can be enabled.
11238 hardcode_into_libs=yes
11239
11240 dynamic_linker='Android linker'
11241 # Don't embed -rpath directories since the linker doesn't support them.
11242 hardcode_libdir_flag_spec='-L$libdir'
11243 ;;
11244
11245 # This must be glibc/ELF.
11246 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11247 version_type=linux # correct to gnu/linux during the next big refactor
11248 need_lib_prefix=no
11249 need_version=no
11250 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11251 soname_spec='$libname$release$shared_ext$major'
11252 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11253 shlibpath_var=LD_LIBRARY_PATH
11254 shlibpath_overrides_runpath=no
11255
11256 # Some binutils ld are patched to set DT_RUNPATH
11257 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11258 $as_echo_n "(cached) " >&6
11259 else
11260 lt_cv_shlibpath_overrides_runpath=no
11261 save_LDFLAGS=$LDFLAGS
11262 save_libdir=$libdir
11263 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11264 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11266 /* end confdefs.h. */
11267
11268 int
11269 main ()
11270 {
11271
11272 ;
11273 return 0;
11274 }
11275 _ACEOF
11276 if ac_fn_c_try_link "$LINENO"; then :
11277 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11278 lt_cv_shlibpath_overrides_runpath=yes
11279 fi
11280 fi
11281 rm -f core conftest.err conftest.$ac_objext \
11282 conftest$ac_exeext conftest.$ac_ext
11283 LDFLAGS=$save_LDFLAGS
11284 libdir=$save_libdir
11285
11286 fi
11287
11288 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11289
11290 # This implies no fast_install, which is unacceptable.
11291 # Some rework will be needed to allow for fast_install
11292 # before this can be enabled.
11293 hardcode_into_libs=yes
11294
11295 # Ideally, we could use ldconfig to report *all* directores which are
11296 # searched for libraries, however this is still not possible. Aside from not
11297 # being certain /sbin/ldconfig is available, command
11298 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11299 # even though it is searched at run-time. Try to do the best guess by
11300 # appending ld.so.conf contents (and includes) to the search path.
11301 if test -f /etc/ld.so.conf; then
11302 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' ' '`
11303 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11304 fi
11305
11306 # We used to test for /lib/ld.so.1 and disable shared libraries on
11307 # powerpc, because MkLinux only supported shared libraries with the
11308 # GNU dynamic linker. Since this was broken with cross compilers,
11309 # most powerpc-linux boxes support dynamic linking these days and
11310 # people can always --disable-shared, the test was removed, and we
11311 # assume the GNU/Linux dynamic linker is in use.
11312 dynamic_linker='GNU/Linux ld.so'
11313 ;;
11314
11315 netbsd*)
11316 version_type=sunos
11317 need_lib_prefix=no
11318 need_version=no
11319 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11320 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11321 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11322 dynamic_linker='NetBSD (a.out) ld.so'
11323 else
11324 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11325 soname_spec='$libname$release$shared_ext$major'
11326 dynamic_linker='NetBSD ld.elf_so'
11327 fi
11328 shlibpath_var=LD_LIBRARY_PATH
11329 shlibpath_overrides_runpath=yes
11330 hardcode_into_libs=yes
11331 ;;
11332
11333 newsos6)
11334 version_type=linux # correct to gnu/linux during the next big refactor
11335 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11336 shlibpath_var=LD_LIBRARY_PATH
11337 shlibpath_overrides_runpath=yes
11338 ;;
11339
11340 *nto* | *qnx*)
11341 version_type=qnx
11342 need_lib_prefix=no
11343 need_version=no
11344 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11345 soname_spec='$libname$release$shared_ext$major'
11346 shlibpath_var=LD_LIBRARY_PATH
11347 shlibpath_overrides_runpath=no
11348 hardcode_into_libs=yes
11349 dynamic_linker='ldqnx.so'
11350 ;;
11351
11352 openbsd* | bitrig*)
11353 version_type=sunos
11354 sys_lib_dlsearch_path_spec=/usr/lib
11355 need_lib_prefix=no
11356 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11357 need_version=no
11358 else
11359 need_version=yes
11360 fi
11361 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11362 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11363 shlibpath_var=LD_LIBRARY_PATH
11364 shlibpath_overrides_runpath=yes
11365 ;;
11366
11367 os2*)
11368 libname_spec='$name'
11369 version_type=windows
11370 shrext_cmds=.dll
11371 need_version=no
11372 need_lib_prefix=no
11373 # OS/2 can only load a DLL with a base name of 8 characters or less.
11374 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11375 v=$($ECHO $release$versuffix | tr -d .-);
11376 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11377 $ECHO $n$v`$shared_ext'
11378 library_names_spec='${libname}_dll.$libext'
11379 dynamic_linker='OS/2 ld.exe'
11380 shlibpath_var=BEGINLIBPATH
11381 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11382 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11383 postinstall_cmds='base_file=`basename \$file`~
11384 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11385 dldir=$destdir/`dirname \$dlpath`~
11386 test -d \$dldir || mkdir -p \$dldir~
11387 $install_prog $dir/$dlname \$dldir/$dlname~
11388 chmod a+x \$dldir/$dlname~
11389 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11390 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11391 fi'
11392 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11393 dlpath=$dir/\$dldll~
11394 $RM \$dlpath'
11395 ;;
11396
11397 osf3* | osf4* | osf5*)
11398 version_type=osf
11399 need_lib_prefix=no
11400 need_version=no
11401 soname_spec='$libname$release$shared_ext$major'
11402 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11403 shlibpath_var=LD_LIBRARY_PATH
11404 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11405 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11406 ;;
11407
11408 rdos*)
11409 dynamic_linker=no
11410 ;;
11411
11412 solaris*)
11413 version_type=linux # correct to gnu/linux during the next big refactor
11414 need_lib_prefix=no
11415 need_version=no
11416 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11417 soname_spec='$libname$release$shared_ext$major'
11418 shlibpath_var=LD_LIBRARY_PATH
11419 shlibpath_overrides_runpath=yes
11420 hardcode_into_libs=yes
11421 # ldd complains unless libraries are executable
11422 postinstall_cmds='chmod +x $lib'
11423 ;;
11424
11425 sunos4*)
11426 version_type=sunos
11427 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11428 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11429 shlibpath_var=LD_LIBRARY_PATH
11430 shlibpath_overrides_runpath=yes
11431 if test yes = "$with_gnu_ld"; then
11432 need_lib_prefix=no
11433 fi
11434 need_version=yes
11435 ;;
11436
11437 sysv4 | sysv4.3*)
11438 version_type=linux # correct to gnu/linux during the next big refactor
11439 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11440 soname_spec='$libname$release$shared_ext$major'
11441 shlibpath_var=LD_LIBRARY_PATH
11442 case $host_vendor in
11443 sni)
11444 shlibpath_overrides_runpath=no
11445 need_lib_prefix=no
11446 runpath_var=LD_RUN_PATH
11447 ;;
11448 siemens)
11449 need_lib_prefix=no
11450 ;;
11451 motorola)
11452 need_lib_prefix=no
11453 need_version=no
11454 shlibpath_overrides_runpath=no
11455 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11456 ;;
11457 esac
11458 ;;
11459
11460 sysv4*MP*)
11461 if test -d /usr/nec; then
11462 version_type=linux # correct to gnu/linux during the next big refactor
11463 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11464 soname_spec='$libname$shared_ext.$major'
11465 shlibpath_var=LD_LIBRARY_PATH
11466 fi
11467 ;;
11468
11469 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11470 version_type=sco
11471 need_lib_prefix=no
11472 need_version=no
11473 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11474 soname_spec='$libname$release$shared_ext$major'
11475 shlibpath_var=LD_LIBRARY_PATH
11476 shlibpath_overrides_runpath=yes
11477 hardcode_into_libs=yes
11478 if test yes = "$with_gnu_ld"; then
11479 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11480 else
11481 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11482 case $host_os in
11483 sco3.2v5*)
11484 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11485 ;;
11486 esac
11487 fi
11488 sys_lib_dlsearch_path_spec='/usr/lib'
11489 ;;
11490
11491 tpf*)
11492 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11493 version_type=linux # correct to gnu/linux during the next big refactor
11494 need_lib_prefix=no
11495 need_version=no
11496 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11497 shlibpath_var=LD_LIBRARY_PATH
11498 shlibpath_overrides_runpath=no
11499 hardcode_into_libs=yes
11500 ;;
11501
11502 uts4*)
11503 version_type=linux # correct to gnu/linux during the next big refactor
11504 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11505 soname_spec='$libname$release$shared_ext$major'
11506 shlibpath_var=LD_LIBRARY_PATH
11507 ;;
11508
11509 *)
11510 dynamic_linker=no
11511 ;;
11512 esac
11513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11514 $as_echo "$dynamic_linker" >&6; }
11515 test no = "$dynamic_linker" && can_build_shared=no
11516
11517 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11518 if test yes = "$GCC"; then
11519 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11520 fi
11521
11522 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11523 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11524 fi
11525
11526 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11527 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11528 fi
11529
11530 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11531 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11532
11533 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11534 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11535
11536 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11537 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11636 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11637 hardcode_action=
11638 if test -n "$hardcode_libdir_flag_spec" ||
11639 test -n "$runpath_var" ||
11640 test yes = "$hardcode_automatic"; then
11641
11642 # We can hardcode non-existent directories.
11643 if test no != "$hardcode_direct" &&
11644 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11645 # have to relink, otherwise we might link with an installed library
11646 # when we should be linking with a yet-to-be-installed one
11647 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11648 test no != "$hardcode_minus_L"; then
11649 # Linking always hardcodes the temporary library directory.
11650 hardcode_action=relink
11651 else
11652 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11653 hardcode_action=immediate
11654 fi
11655 else
11656 # We cannot hardcode anything, or else we can only hardcode existing
11657 # directories.
11658 hardcode_action=unsupported
11659 fi
11660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11661 $as_echo "$hardcode_action" >&6; }
11662
11663 if test relink = "$hardcode_action" ||
11664 test yes = "$inherit_rpath"; then
11665 # Fast installation is not supported
11666 enable_fast_install=no
11667 elif test yes = "$shlibpath_overrides_runpath" ||
11668 test no = "$enable_shared"; then
11669 # Fast installation is not necessary
11670 enable_fast_install=needless
11671 fi
11672
11673
11674
11675
11676
11677
11678 if test yes != "$enable_dlopen"; then
11679 enable_dlopen=unknown
11680 enable_dlopen_self=unknown
11681 enable_dlopen_self_static=unknown
11682 else
11683 lt_cv_dlopen=no
11684 lt_cv_dlopen_libs=
11685
11686 case $host_os in
11687 beos*)
11688 lt_cv_dlopen=load_add_on
11689 lt_cv_dlopen_libs=
11690 lt_cv_dlopen_self=yes
11691 ;;
11692
11693 mingw* | pw32* | cegcc*)
11694 lt_cv_dlopen=LoadLibrary
11695 lt_cv_dlopen_libs=
11696 ;;
11697
11698 cygwin*)
11699 lt_cv_dlopen=dlopen
11700 lt_cv_dlopen_libs=
11701 ;;
11702
11703 darwin*)
11704 # if libdl is installed we need to link against it
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11706 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11707 if ${ac_cv_lib_dl_dlopen+:} false; then :
11708 $as_echo_n "(cached) " >&6
11709 else
11710 ac_check_lib_save_LIBS=$LIBS
11711 LIBS="-ldl $LIBS"
11712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11713 /* end confdefs.h. */
11714
11715 /* Override any GCC internal prototype to avoid an error.
11716 Use char because int might match the return type of a GCC
11717 builtin and then its argument prototype would still apply. */
11718 #ifdef __cplusplus
11719 extern "C"
11720 #endif
11721 char dlopen ();
11722 int
11723 main ()
11724 {
11725 return dlopen ();
11726 ;
11727 return 0;
11728 }
11729 _ACEOF
11730 if ac_fn_c_try_link "$LINENO"; then :
11731 ac_cv_lib_dl_dlopen=yes
11732 else
11733 ac_cv_lib_dl_dlopen=no
11734 fi
11735 rm -f core conftest.err conftest.$ac_objext \
11736 conftest$ac_exeext conftest.$ac_ext
11737 LIBS=$ac_check_lib_save_LIBS
11738 fi
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11740 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11741 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11742 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11743 else
11744
11745 lt_cv_dlopen=dyld
11746 lt_cv_dlopen_libs=
11747 lt_cv_dlopen_self=yes
11748
11749 fi
11750
11751 ;;
11752
11753 tpf*)
11754 # Don't try to run any link tests for TPF. We know it's impossible
11755 # because TPF is a cross-compiler, and we know how we open DSOs.
11756 lt_cv_dlopen=dlopen
11757 lt_cv_dlopen_libs=
11758 lt_cv_dlopen_self=no
11759 ;;
11760
11761 *)
11762 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11763 if test "x$ac_cv_func_shl_load" = xyes; then :
11764 lt_cv_dlopen=shl_load
11765 else
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11767 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11768 if ${ac_cv_lib_dld_shl_load+:} false; then :
11769 $as_echo_n "(cached) " >&6
11770 else
11771 ac_check_lib_save_LIBS=$LIBS
11772 LIBS="-ldld $LIBS"
11773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11774 /* end confdefs.h. */
11775
11776 /* Override any GCC internal prototype to avoid an error.
11777 Use char because int might match the return type of a GCC
11778 builtin and then its argument prototype would still apply. */
11779 #ifdef __cplusplus
11780 extern "C"
11781 #endif
11782 char shl_load ();
11783 int
11784 main ()
11785 {
11786 return shl_load ();
11787 ;
11788 return 0;
11789 }
11790 _ACEOF
11791 if ac_fn_c_try_link "$LINENO"; then :
11792 ac_cv_lib_dld_shl_load=yes
11793 else
11794 ac_cv_lib_dld_shl_load=no
11795 fi
11796 rm -f core conftest.err conftest.$ac_objext \
11797 conftest$ac_exeext conftest.$ac_ext
11798 LIBS=$ac_check_lib_save_LIBS
11799 fi
11800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11801 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11802 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11803 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11804 else
11805 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11806 if test "x$ac_cv_func_dlopen" = xyes; then :
11807 lt_cv_dlopen=dlopen
11808 else
11809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11810 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11811 if ${ac_cv_lib_dl_dlopen+:} false; then :
11812 $as_echo_n "(cached) " >&6
11813 else
11814 ac_check_lib_save_LIBS=$LIBS
11815 LIBS="-ldl $LIBS"
11816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11817 /* end confdefs.h. */
11818
11819 /* Override any GCC internal prototype to avoid an error.
11820 Use char because int might match the return type of a GCC
11821 builtin and then its argument prototype would still apply. */
11822 #ifdef __cplusplus
11823 extern "C"
11824 #endif
11825 char dlopen ();
11826 int
11827 main ()
11828 {
11829 return dlopen ();
11830 ;
11831 return 0;
11832 }
11833 _ACEOF
11834 if ac_fn_c_try_link "$LINENO"; then :
11835 ac_cv_lib_dl_dlopen=yes
11836 else
11837 ac_cv_lib_dl_dlopen=no
11838 fi
11839 rm -f core conftest.err conftest.$ac_objext \
11840 conftest$ac_exeext conftest.$ac_ext
11841 LIBS=$ac_check_lib_save_LIBS
11842 fi
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11844 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11845 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11846 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11847 else
11848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11849 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11850 if ${ac_cv_lib_svld_dlopen+:} false; then :
11851 $as_echo_n "(cached) " >&6
11852 else
11853 ac_check_lib_save_LIBS=$LIBS
11854 LIBS="-lsvld $LIBS"
11855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11856 /* end confdefs.h. */
11857
11858 /* Override any GCC internal prototype to avoid an error.
11859 Use char because int might match the return type of a GCC
11860 builtin and then its argument prototype would still apply. */
11861 #ifdef __cplusplus
11862 extern "C"
11863 #endif
11864 char dlopen ();
11865 int
11866 main ()
11867 {
11868 return dlopen ();
11869 ;
11870 return 0;
11871 }
11872 _ACEOF
11873 if ac_fn_c_try_link "$LINENO"; then :
11874 ac_cv_lib_svld_dlopen=yes
11875 else
11876 ac_cv_lib_svld_dlopen=no
11877 fi
11878 rm -f core conftest.err conftest.$ac_objext \
11879 conftest$ac_exeext conftest.$ac_ext
11880 LIBS=$ac_check_lib_save_LIBS
11881 fi
11882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11883 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11884 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11885 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11886 else
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11888 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11889 if ${ac_cv_lib_dld_dld_link+:} false; then :
11890 $as_echo_n "(cached) " >&6
11891 else
11892 ac_check_lib_save_LIBS=$LIBS
11893 LIBS="-ldld $LIBS"
11894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11895 /* end confdefs.h. */
11896
11897 /* Override any GCC internal prototype to avoid an error.
11898 Use char because int might match the return type of a GCC
11899 builtin and then its argument prototype would still apply. */
11900 #ifdef __cplusplus
11901 extern "C"
11902 #endif
11903 char dld_link ();
11904 int
11905 main ()
11906 {
11907 return dld_link ();
11908 ;
11909 return 0;
11910 }
11911 _ACEOF
11912 if ac_fn_c_try_link "$LINENO"; then :
11913 ac_cv_lib_dld_dld_link=yes
11914 else
11915 ac_cv_lib_dld_dld_link=no
11916 fi
11917 rm -f core conftest.err conftest.$ac_objext \
11918 conftest$ac_exeext conftest.$ac_ext
11919 LIBS=$ac_check_lib_save_LIBS
11920 fi
11921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11922 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11923 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11924 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11925 fi
11926
11927
11928 fi
11929
11930
11931 fi
11932
11933
11934 fi
11935
11936
11937 fi
11938
11939
11940 fi
11941
11942 ;;
11943 esac
11944
11945 if test no = "$lt_cv_dlopen"; then
11946 enable_dlopen=no
11947 else
11948 enable_dlopen=yes
11949 fi
11950
11951 case $lt_cv_dlopen in
11952 dlopen)
11953 save_CPPFLAGS=$CPPFLAGS
11954 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11955
11956 save_LDFLAGS=$LDFLAGS
11957 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11958
11959 save_LIBS=$LIBS
11960 LIBS="$lt_cv_dlopen_libs $LIBS"
11961
11962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11963 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11964 if ${lt_cv_dlopen_self+:} false; then :
11965 $as_echo_n "(cached) " >&6
11966 else
11967 if test yes = "$cross_compiling"; then :
11968 lt_cv_dlopen_self=cross
11969 else
11970 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11971 lt_status=$lt_dlunknown
11972 cat > conftest.$ac_ext <<_LT_EOF
11973 #line $LINENO "configure"
11974 #include "confdefs.h"
11975
11976 #if HAVE_DLFCN_H
11977 #include <dlfcn.h>
11978 #endif
11979
11980 #include <stdio.h>
11981
11982 #ifdef RTLD_GLOBAL
11983 # define LT_DLGLOBAL RTLD_GLOBAL
11984 #else
11985 # ifdef DL_GLOBAL
11986 # define LT_DLGLOBAL DL_GLOBAL
11987 # else
11988 # define LT_DLGLOBAL 0
11989 # endif
11990 #endif
11991
11992 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11993 find out it does not work in some platform. */
11994 #ifndef LT_DLLAZY_OR_NOW
11995 # ifdef RTLD_LAZY
11996 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11997 # else
11998 # ifdef DL_LAZY
11999 # define LT_DLLAZY_OR_NOW DL_LAZY
12000 # else
12001 # ifdef RTLD_NOW
12002 # define LT_DLLAZY_OR_NOW RTLD_NOW
12003 # else
12004 # ifdef DL_NOW
12005 # define LT_DLLAZY_OR_NOW DL_NOW
12006 # else
12007 # define LT_DLLAZY_OR_NOW 0
12008 # endif
12009 # endif
12010 # endif
12011 # endif
12012 #endif
12013
12014 /* When -fvisibility=hidden is used, assume the code has been annotated
12015 correspondingly for the symbols needed. */
12016 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12017 int fnord () __attribute__((visibility("default")));
12018 #endif
12019
12020 int fnord () { return 42; }
12021 int main ()
12022 {
12023 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12024 int status = $lt_dlunknown;
12025
12026 if (self)
12027 {
12028 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12029 else
12030 {
12031 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12032 else puts (dlerror ());
12033 }
12034 /* dlclose (self); */
12035 }
12036 else
12037 puts (dlerror ());
12038
12039 return status;
12040 }
12041 _LT_EOF
12042 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12043 (eval $ac_link) 2>&5
12044 ac_status=$?
12045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12046 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12047 (./conftest; exit; ) >&5 2>/dev/null
12048 lt_status=$?
12049 case x$lt_status in
12050 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12051 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12052 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12053 esac
12054 else :
12055 # compilation failed
12056 lt_cv_dlopen_self=no
12057 fi
12058 fi
12059 rm -fr conftest*
12060
12061
12062 fi
12063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12064 $as_echo "$lt_cv_dlopen_self" >&6; }
12065
12066 if test yes = "$lt_cv_dlopen_self"; then
12067 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12069 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12070 if ${lt_cv_dlopen_self_static+:} false; then :
12071 $as_echo_n "(cached) " >&6
12072 else
12073 if test yes = "$cross_compiling"; then :
12074 lt_cv_dlopen_self_static=cross
12075 else
12076 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12077 lt_status=$lt_dlunknown
12078 cat > conftest.$ac_ext <<_LT_EOF
12079 #line $LINENO "configure"
12080 #include "confdefs.h"
12081
12082 #if HAVE_DLFCN_H
12083 #include <dlfcn.h>
12084 #endif
12085
12086 #include <stdio.h>
12087
12088 #ifdef RTLD_GLOBAL
12089 # define LT_DLGLOBAL RTLD_GLOBAL
12090 #else
12091 # ifdef DL_GLOBAL
12092 # define LT_DLGLOBAL DL_GLOBAL
12093 # else
12094 # define LT_DLGLOBAL 0
12095 # endif
12096 #endif
12097
12098 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12099 find out it does not work in some platform. */
12100 #ifndef LT_DLLAZY_OR_NOW
12101 # ifdef RTLD_LAZY
12102 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12103 # else
12104 # ifdef DL_LAZY
12105 # define LT_DLLAZY_OR_NOW DL_LAZY
12106 # else
12107 # ifdef RTLD_NOW
12108 # define LT_DLLAZY_OR_NOW RTLD_NOW
12109 # else
12110 # ifdef DL_NOW
12111 # define LT_DLLAZY_OR_NOW DL_NOW
12112 # else
12113 # define LT_DLLAZY_OR_NOW 0
12114 # endif
12115 # endif
12116 # endif
12117 # endif
12118 #endif
12119
12120 /* When -fvisibility=hidden is used, assume the code has been annotated
12121 correspondingly for the symbols needed. */
12122 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12123 int fnord () __attribute__((visibility("default")));
12124 #endif
12125
12126 int fnord () { return 42; }
12127 int main ()
12128 {
12129 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12130 int status = $lt_dlunknown;
12131
12132 if (self)
12133 {
12134 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12135 else
12136 {
12137 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12138 else puts (dlerror ());
12139 }
12140 /* dlclose (self); */
12141 }
12142 else
12143 puts (dlerror ());
12144
12145 return status;
12146 }
12147 _LT_EOF
12148 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12149 (eval $ac_link) 2>&5
12150 ac_status=$?
12151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12152 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12153 (./conftest; exit; ) >&5 2>/dev/null
12154 lt_status=$?
12155 case x$lt_status in
12156 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12157 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12158 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12159 esac
12160 else :
12161 # compilation failed
12162 lt_cv_dlopen_self_static=no
12163 fi
12164 fi
12165 rm -fr conftest*
12166
12167
12168 fi
12169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12170 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12171 fi
12172
12173 CPPFLAGS=$save_CPPFLAGS
12174 LDFLAGS=$save_LDFLAGS
12175 LIBS=$save_LIBS
12176 ;;
12177 esac
12178
12179 case $lt_cv_dlopen_self in
12180 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12181 *) enable_dlopen_self=unknown ;;
12182 esac
12183
12184 case $lt_cv_dlopen_self_static in
12185 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12186 *) enable_dlopen_self_static=unknown ;;
12187 esac
12188 fi
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206 striplib=
12207 old_striplib=
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12209 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12210 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12211 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12212 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12214 $as_echo "yes" >&6; }
12215 else
12216 # FIXME - insert some real tests, host_os isn't really good enough
12217 case $host_os in
12218 darwin*)
12219 if test -n "$STRIP"; then
12220 striplib="$STRIP -x"
12221 old_striplib="$STRIP -S"
12222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12223 $as_echo "yes" >&6; }
12224 else
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12226 $as_echo "no" >&6; }
12227 fi
12228 ;;
12229 *)
12230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12231 $as_echo "no" >&6; }
12232 ;;
12233 esac
12234 fi
12235
12236
12237
12238
12239
12240
12241
12242
12243
12244
12245
12246
12247 # Report what library types will actually be built
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12249 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12251 $as_echo "$can_build_shared" >&6; }
12252
12253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12254 $as_echo_n "checking whether to build shared libraries... " >&6; }
12255 test no = "$can_build_shared" && enable_shared=no
12256
12257 # On AIX, shared libraries and static libraries use the same namespace, and
12258 # are all built from PIC.
12259 case $host_os in
12260 aix3*)
12261 test yes = "$enable_shared" && enable_static=no
12262 if test -n "$RANLIB"; then
12263 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12264 postinstall_cmds='$RANLIB $lib'
12265 fi
12266 ;;
12267
12268 aix[4-9]*)
12269 if test ia64 != "$host_cpu"; then
12270 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12271 yes,aix,yes) ;; # shared object as lib.so file only
12272 yes,svr4,*) ;; # shared object as lib.so archive member only
12273 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12274 esac
12275 fi
12276 ;;
12277 esac
12278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12279 $as_echo "$enable_shared" >&6; }
12280
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12282 $as_echo_n "checking whether to build static libraries... " >&6; }
12283 # Make sure either enable_shared or enable_static is yes.
12284 test yes = "$enable_shared" || enable_static=yes
12285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12286 $as_echo "$enable_static" >&6; }
12287
12288
12289
12290
12291 fi
12292 ac_ext=c
12293 ac_cpp='$CPP $CPPFLAGS'
12294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12297
12298 CC=$lt_save_CC
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310
12311
12312
12313
12314 ac_config_commands="$ac_config_commands libtool"
12315
12316
12317
12318
12319 # Only expand once:
12320
12321
12322
12323 # Require xorg-macros minimum of 1.12 for DocBook external references
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
12336 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
12337 if ${ac_cv_prog_cc_c99+:} false; then :
12338 $as_echo_n "(cached) " >&6
12339 else
12340 ac_cv_prog_cc_c99=no
12341 ac_save_CC=$CC
12342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12343 /* end confdefs.h. */
12344 #include <stdarg.h>
12345 #include <stdbool.h>
12346 #include <stdlib.h>
12347 #include <wchar.h>
12348 #include <stdio.h>
12349
12350 // Check varargs macros. These examples are taken from C99 6.10.3.5.
12351 #define debug(...) fprintf (stderr, __VA_ARGS__)
12352 #define showlist(...) puts (#__VA_ARGS__)
12353 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
12354 static void
12355 test_varargs_macros (void)
12356 {
12357 int x = 1234;
12358 int y = 5678;
12359 debug ("Flag");
12360 debug ("X = %d\n", x);
12361 showlist (The first, second, and third items.);
12362 report (x>y, "x is %d but y is %d", x, y);
12363 }
12364
12365 // Check long long types.
12366 #define BIG64 18446744073709551615ull
12367 #define BIG32 4294967295ul
12368 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
12369 #if !BIG_OK
12370 your preprocessor is broken;
12371 #endif
12372 #if BIG_OK
12373 #else
12374 your preprocessor is broken;
12375 #endif
12376 static long long int bignum = -9223372036854775807LL;
12377 static unsigned long long int ubignum = BIG64;
12378
12379 struct incomplete_array
12380 {
12381 int datasize;
12382 double data[];
12383 };
12384
12385 struct named_init {
12386 int number;
12387 const wchar_t *name;
12388 double average;
12389 };
12390
12391 typedef const char *ccp;
12392
12393 static inline int
12394 test_restrict (ccp restrict text)
12395 {
12396 // See if C++-style comments work.
12397 // Iterate through items via the restricted pointer.
12398 // Also check for declarations in for loops.
12399 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
12400 continue;
12401 return 0;
12402 }
12403
12404 // Check varargs and va_copy.
12405 static void
12406 test_varargs (const char *format, ...)
12407 {
12408 va_list args;
12409 va_start (args, format);
12410 va_list args_copy;
12411 va_copy (args_copy, args);
12412
12413 const char *str;
12414 int number;
12415 float fnumber;
12416
12417 while (*format)
12418 {
12419 switch (*format++)
12420 {
12421 case 's': // string
12422 str = va_arg (args_copy, const char *);
12423 break;
12424 case 'd': // int
12425 number = va_arg (args_copy, int);
12426 break;
12427 case 'f': // float
12428 fnumber = va_arg (args_copy, double);
12429 break;
12430 default:
12431 break;
12432 }
12433 }
12434 va_end (args_copy);
12435 va_end (args);
12436 }
12437
12438 int
12439 main ()
12440 {
12441
12442 // Check bool.
12443 _Bool success = false;
12444
12445 // Check restrict.
12446 if (test_restrict ("String literal") == 0)
12447 success = true;
12448 char *restrict newvar = "Another string";
12449
12450 // Check varargs.
12451 test_varargs ("s, d' f .", "string", 65, 34.234);
12452 test_varargs_macros ();
12453
12454 // Check flexible array members.
12455 struct incomplete_array *ia =
12456 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
12457 ia->datasize = 10;
12458 for (int i = 0; i < ia->datasize; ++i)
12459 ia->data[i] = i * 1.234;
12460
12461 // Check named initializers.
12462 struct named_init ni = {
12463 .number = 34,
12464 .name = L"Test wide string",
12465 .average = 543.34343,
12466 };
12467
12468 ni.number = 58;
12469
12470 int dynamic_array[ni.number];
12471 dynamic_array[ni.number - 1] = 543;
12472
12473 // work around unused variable warnings
12474 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
12475 || dynamic_array[ni.number - 1] != 543);
12476
12477 ;
12478 return 0;
12479 }
12480 _ACEOF
12481 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
12482 do
12483 CC="$ac_save_CC $ac_arg"
12484 if ac_fn_c_try_compile "$LINENO"; then :
12485 ac_cv_prog_cc_c99=$ac_arg
12486 fi
12487 rm -f core conftest.err conftest.$ac_objext
12488 test "x$ac_cv_prog_cc_c99" != "xno" && break
12489 done
12490 rm -f conftest.$ac_ext
12491 CC=$ac_save_CC
12492
12493 fi
12494 # AC_CACHE_VAL
12495 case "x$ac_cv_prog_cc_c99" in
12496 x)
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12498 $as_echo "none needed" >&6; } ;;
12499 xno)
12500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12501 $as_echo "unsupported" >&6; } ;;
12502 *)
12503 CC="$CC $ac_cv_prog_cc_c99"
12504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
12505 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
12506 esac
12507 if test "x$ac_cv_prog_cc_c99" != xno; then :
12508
12509 fi
12510
12511
12512
12513
12514
12515
12516 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
12517 if test "x$ac_cv_have_decl___clang__" = xyes; then :
12518 CLANGCC="yes"
12519 else
12520 CLANGCC="no"
12521 fi
12522
12523 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
12524 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
12525 INTELCC="yes"
12526 else
12527 INTELCC="no"
12528 fi
12529
12530 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
12531 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
12532 SUNCC="yes"
12533 else
12534 SUNCC="no"
12535 fi
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12546 if test -n "$ac_tool_prefix"; then
12547 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12548 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12550 $as_echo_n "checking for $ac_word... " >&6; }
12551 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12552 $as_echo_n "(cached) " >&6
12553 else
12554 case $PKG_CONFIG in
12555 [\\/]* | ?:[\\/]*)
12556 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12557 ;;
12558 *)
12559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12560 for as_dir in $PATH
12561 do
12562 IFS=$as_save_IFS
12563 test -z "$as_dir" && as_dir=.
12564 for ac_exec_ext in '' $ac_executable_extensions; do
12565 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12566 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12568 break 2
12569 fi
12570 done
12571 done
12572 IFS=$as_save_IFS
12573
12574 ;;
12575 esac
12576 fi
12577 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12578 if test -n "$PKG_CONFIG"; then
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12580 $as_echo "$PKG_CONFIG" >&6; }
12581 else
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12583 $as_echo "no" >&6; }
12584 fi
12585
12586
12587 fi
12588 if test -z "$ac_cv_path_PKG_CONFIG"; then
12589 ac_pt_PKG_CONFIG=$PKG_CONFIG
12590 # Extract the first word of "pkg-config", so it can be a program name with args.
12591 set dummy pkg-config; ac_word=$2
12592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12593 $as_echo_n "checking for $ac_word... " >&6; }
12594 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12595 $as_echo_n "(cached) " >&6
12596 else
12597 case $ac_pt_PKG_CONFIG in
12598 [\\/]* | ?:[\\/]*)
12599 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12600 ;;
12601 *)
12602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12603 for as_dir in $PATH
12604 do
12605 IFS=$as_save_IFS
12606 test -z "$as_dir" && as_dir=.
12607 for ac_exec_ext in '' $ac_executable_extensions; do
12608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12609 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12611 break 2
12612 fi
12613 done
12614 done
12615 IFS=$as_save_IFS
12616
12617 ;;
12618 esac
12619 fi
12620 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12621 if test -n "$ac_pt_PKG_CONFIG"; then
12622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12623 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12624 else
12625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12626 $as_echo "no" >&6; }
12627 fi
12628
12629 if test "x$ac_pt_PKG_CONFIG" = x; then
12630 PKG_CONFIG=""
12631 else
12632 case $cross_compiling:$ac_tool_warned in
12633 yes:)
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12635 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12636 ac_tool_warned=yes ;;
12637 esac
12638 PKG_CONFIG=$ac_pt_PKG_CONFIG
12639 fi
12640 else
12641 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12642 fi
12643
12644 fi
12645 if test -n "$PKG_CONFIG"; then
12646 _pkg_min_version=0.9.0
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12648 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12649 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12651 $as_echo "yes" >&6; }
12652 else
12653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12654 $as_echo "no" >&6; }
12655 PKG_CONFIG=""
12656 fi
12657 fi
12658
12659
12660
12661
12662
12663 # Check whether --enable-selective-werror was given.
12664 if test "${enable_selective_werror+set}" = set; then :
12665 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
12666 else
12667 SELECTIVE_WERROR=yes
12668 fi
12669
12670
12671
12672
12673
12674 # -v is too short to test reliably with XORG_TESTSET_CFLAG
12675 if test "x$SUNCC" = "xyes"; then
12676 BASE_CFLAGS="-v"
12677 else
12678 BASE_CFLAGS=""
12679 fi
12680
12681 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
12682
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692
12693
12694
12695 xorg_testset_save_CFLAGS="$CFLAGS"
12696
12697 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12698 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12700 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12701 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12702 $as_echo_n "(cached) " >&6
12703 else
12704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12705 /* end confdefs.h. */
12706 int i;
12707 _ACEOF
12708 if ac_fn_c_try_compile "$LINENO"; then :
12709 xorg_cv_cc_flag_unknown_warning_option=yes
12710 else
12711 xorg_cv_cc_flag_unknown_warning_option=no
12712 fi
12713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12714 fi
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12716 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12717 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12718 CFLAGS="$xorg_testset_save_CFLAGS"
12719 fi
12720
12721 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12722 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12723 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12724 fi
12725 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12727 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12728 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12729 $as_echo_n "(cached) " >&6
12730 else
12731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12732 /* end confdefs.h. */
12733 int i;
12734 _ACEOF
12735 if ac_fn_c_try_compile "$LINENO"; then :
12736 xorg_cv_cc_flag_unused_command_line_argument=yes
12737 else
12738 xorg_cv_cc_flag_unused_command_line_argument=no
12739 fi
12740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12741 fi
12742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12743 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12744 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12745 CFLAGS="$xorg_testset_save_CFLAGS"
12746 fi
12747
12748 found="no"
12749
12750 if test $found = "no" ; then
12751 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12752 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12753 fi
12754
12755 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12756 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12757 fi
12758
12759 CFLAGS="$CFLAGS -Wall"
12760
12761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
12762 $as_echo_n "checking if $CC supports -Wall... " >&6; }
12763 cacheid=xorg_cv_cc_flag__Wall
12764 if eval \${$cacheid+:} false; then :
12765 $as_echo_n "(cached) " >&6
12766 else
12767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12768 /* end confdefs.h. */
12769 int i;
12770 int
12771 main ()
12772 {
12773
12774 ;
12775 return 0;
12776 }
12777 _ACEOF
12778 if ac_fn_c_try_link "$LINENO"; then :
12779 eval $cacheid=yes
12780 else
12781 eval $cacheid=no
12782 fi
12783 rm -f core conftest.err conftest.$ac_objext \
12784 conftest$ac_exeext conftest.$ac_ext
12785 fi
12786
12787
12788 CFLAGS="$xorg_testset_save_CFLAGS"
12789
12790 eval supported=\$$cacheid
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12792 $as_echo "$supported" >&6; }
12793 if test "$supported" = "yes" ; then
12794 BASE_CFLAGS="$BASE_CFLAGS -Wall"
12795 found="yes"
12796 fi
12797 fi
12798
12799
12800
12801
12802
12803
12804
12805
12806
12807
12808
12809
12810
12811
12812
12813 xorg_testset_save_CFLAGS="$CFLAGS"
12814
12815 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12816 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12818 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12819 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12820 $as_echo_n "(cached) " >&6
12821 else
12822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12823 /* end confdefs.h. */
12824 int i;
12825 _ACEOF
12826 if ac_fn_c_try_compile "$LINENO"; then :
12827 xorg_cv_cc_flag_unknown_warning_option=yes
12828 else
12829 xorg_cv_cc_flag_unknown_warning_option=no
12830 fi
12831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12832 fi
12833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12834 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12835 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12836 CFLAGS="$xorg_testset_save_CFLAGS"
12837 fi
12838
12839 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12840 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12841 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12842 fi
12843 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12845 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12846 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12847 $as_echo_n "(cached) " >&6
12848 else
12849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12850 /* end confdefs.h. */
12851 int i;
12852 _ACEOF
12853 if ac_fn_c_try_compile "$LINENO"; then :
12854 xorg_cv_cc_flag_unused_command_line_argument=yes
12855 else
12856 xorg_cv_cc_flag_unused_command_line_argument=no
12857 fi
12858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12859 fi
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12861 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12862 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12863 CFLAGS="$xorg_testset_save_CFLAGS"
12864 fi
12865
12866 found="no"
12867
12868 if test $found = "no" ; then
12869 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12870 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12871 fi
12872
12873 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12874 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12875 fi
12876
12877 CFLAGS="$CFLAGS -Wpointer-arith"
12878
12879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
12880 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
12881 cacheid=xorg_cv_cc_flag__Wpointer_arith
12882 if eval \${$cacheid+:} false; then :
12883 $as_echo_n "(cached) " >&6
12884 else
12885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12886 /* end confdefs.h. */
12887 int i;
12888 int
12889 main ()
12890 {
12891
12892 ;
12893 return 0;
12894 }
12895 _ACEOF
12896 if ac_fn_c_try_link "$LINENO"; then :
12897 eval $cacheid=yes
12898 else
12899 eval $cacheid=no
12900 fi
12901 rm -f core conftest.err conftest.$ac_objext \
12902 conftest$ac_exeext conftest.$ac_ext
12903 fi
12904
12905
12906 CFLAGS="$xorg_testset_save_CFLAGS"
12907
12908 eval supported=\$$cacheid
12909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12910 $as_echo "$supported" >&6; }
12911 if test "$supported" = "yes" ; then
12912 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
12913 found="yes"
12914 fi
12915 fi
12916
12917
12918
12919
12920
12921
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931 xorg_testset_save_CFLAGS="$CFLAGS"
12932
12933 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12934 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12936 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12937 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12938 $as_echo_n "(cached) " >&6
12939 else
12940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12941 /* end confdefs.h. */
12942 int i;
12943 _ACEOF
12944 if ac_fn_c_try_compile "$LINENO"; then :
12945 xorg_cv_cc_flag_unknown_warning_option=yes
12946 else
12947 xorg_cv_cc_flag_unknown_warning_option=no
12948 fi
12949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12950 fi
12951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12952 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12953 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12954 CFLAGS="$xorg_testset_save_CFLAGS"
12955 fi
12956
12957 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12958 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12959 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12960 fi
12961 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12963 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12964 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12965 $as_echo_n "(cached) " >&6
12966 else
12967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12968 /* end confdefs.h. */
12969 int i;
12970 _ACEOF
12971 if ac_fn_c_try_compile "$LINENO"; then :
12972 xorg_cv_cc_flag_unused_command_line_argument=yes
12973 else
12974 xorg_cv_cc_flag_unused_command_line_argument=no
12975 fi
12976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12977 fi
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12979 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12980 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12981 CFLAGS="$xorg_testset_save_CFLAGS"
12982 fi
12983
12984 found="no"
12985
12986 if test $found = "no" ; then
12987 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12988 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12989 fi
12990
12991 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12992 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12993 fi
12994
12995 CFLAGS="$CFLAGS -Wmissing-declarations"
12996
12997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
12998 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
12999 cacheid=xorg_cv_cc_flag__Wmissing_declarations
13000 if eval \${$cacheid+:} false; then :
13001 $as_echo_n "(cached) " >&6
13002 else
13003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13004 /* end confdefs.h. */
13005 int i;
13006 int
13007 main ()
13008 {
13009
13010 ;
13011 return 0;
13012 }
13013 _ACEOF
13014 if ac_fn_c_try_link "$LINENO"; then :
13015 eval $cacheid=yes
13016 else
13017 eval $cacheid=no
13018 fi
13019 rm -f core conftest.err conftest.$ac_objext \
13020 conftest$ac_exeext conftest.$ac_ext
13021 fi
13022
13023
13024 CFLAGS="$xorg_testset_save_CFLAGS"
13025
13026 eval supported=\$$cacheid
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13028 $as_echo "$supported" >&6; }
13029 if test "$supported" = "yes" ; then
13030 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
13031 found="yes"
13032 fi
13033 fi
13034
13035
13036
13037
13038
13039
13040
13041
13042
13043
13044
13045
13046
13047
13048
13049 xorg_testset_save_CFLAGS="$CFLAGS"
13050
13051 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13052 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13054 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13055 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13056 $as_echo_n "(cached) " >&6
13057 else
13058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13059 /* end confdefs.h. */
13060 int i;
13061 _ACEOF
13062 if ac_fn_c_try_compile "$LINENO"; then :
13063 xorg_cv_cc_flag_unknown_warning_option=yes
13064 else
13065 xorg_cv_cc_flag_unknown_warning_option=no
13066 fi
13067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13068 fi
13069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13070 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13071 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13072 CFLAGS="$xorg_testset_save_CFLAGS"
13073 fi
13074
13075 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13076 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13077 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13078 fi
13079 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13081 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13082 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13083 $as_echo_n "(cached) " >&6
13084 else
13085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13086 /* end confdefs.h. */
13087 int i;
13088 _ACEOF
13089 if ac_fn_c_try_compile "$LINENO"; then :
13090 xorg_cv_cc_flag_unused_command_line_argument=yes
13091 else
13092 xorg_cv_cc_flag_unused_command_line_argument=no
13093 fi
13094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13095 fi
13096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13097 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13098 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13099 CFLAGS="$xorg_testset_save_CFLAGS"
13100 fi
13101
13102 found="no"
13103
13104 if test $found = "no" ; then
13105 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13106 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13107 fi
13108
13109 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13110 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13111 fi
13112
13113 CFLAGS="$CFLAGS -Wformat=2"
13114
13115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
13116 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
13117 cacheid=xorg_cv_cc_flag__Wformat_2
13118 if eval \${$cacheid+:} false; then :
13119 $as_echo_n "(cached) " >&6
13120 else
13121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13122 /* end confdefs.h. */
13123 int i;
13124 int
13125 main ()
13126 {
13127
13128 ;
13129 return 0;
13130 }
13131 _ACEOF
13132 if ac_fn_c_try_link "$LINENO"; then :
13133 eval $cacheid=yes
13134 else
13135 eval $cacheid=no
13136 fi
13137 rm -f core conftest.err conftest.$ac_objext \
13138 conftest$ac_exeext conftest.$ac_ext
13139 fi
13140
13141
13142 CFLAGS="$xorg_testset_save_CFLAGS"
13143
13144 eval supported=\$$cacheid
13145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13146 $as_echo "$supported" >&6; }
13147 if test "$supported" = "yes" ; then
13148 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
13149 found="yes"
13150 fi
13151 fi
13152
13153 if test $found = "no" ; then
13154 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13155 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13156 fi
13157
13158 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13159 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13160 fi
13161
13162 CFLAGS="$CFLAGS -Wformat"
13163
13164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
13165 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
13166 cacheid=xorg_cv_cc_flag__Wformat
13167 if eval \${$cacheid+:} false; then :
13168 $as_echo_n "(cached) " >&6
13169 else
13170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13171 /* end confdefs.h. */
13172 int i;
13173 int
13174 main ()
13175 {
13176
13177 ;
13178 return 0;
13179 }
13180 _ACEOF
13181 if ac_fn_c_try_link "$LINENO"; then :
13182 eval $cacheid=yes
13183 else
13184 eval $cacheid=no
13185 fi
13186 rm -f core conftest.err conftest.$ac_objext \
13187 conftest$ac_exeext conftest.$ac_ext
13188 fi
13189
13190
13191 CFLAGS="$xorg_testset_save_CFLAGS"
13192
13193 eval supported=\$$cacheid
13194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13195 $as_echo "$supported" >&6; }
13196 if test "$supported" = "yes" ; then
13197 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
13198 found="yes"
13199 fi
13200 fi
13201
13202
13203
13204
13205
13206
13207
13208
13209
13210
13211
13212
13213
13214
13215
13216
13217
13218 xorg_testset_save_CFLAGS="$CFLAGS"
13219
13220 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13221 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13223 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13224 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13225 $as_echo_n "(cached) " >&6
13226 else
13227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13228 /* end confdefs.h. */
13229 int i;
13230 _ACEOF
13231 if ac_fn_c_try_compile "$LINENO"; then :
13232 xorg_cv_cc_flag_unknown_warning_option=yes
13233 else
13234 xorg_cv_cc_flag_unknown_warning_option=no
13235 fi
13236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13237 fi
13238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13239 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13240 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13241 CFLAGS="$xorg_testset_save_CFLAGS"
13242 fi
13243
13244 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13245 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13246 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13247 fi
13248 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13250 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13251 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13252 $as_echo_n "(cached) " >&6
13253 else
13254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13255 /* end confdefs.h. */
13256 int i;
13257 _ACEOF
13258 if ac_fn_c_try_compile "$LINENO"; then :
13259 xorg_cv_cc_flag_unused_command_line_argument=yes
13260 else
13261 xorg_cv_cc_flag_unused_command_line_argument=no
13262 fi
13263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13264 fi
13265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13266 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13267 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13268 CFLAGS="$xorg_testset_save_CFLAGS"
13269 fi
13270
13271 found="no"
13272
13273 if test $found = "no" ; then
13274 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13275 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13276 fi
13277
13278 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13279 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13280 fi
13281
13282 CFLAGS="$CFLAGS -Wstrict-prototypes"
13283
13284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
13285 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
13286 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
13287 if eval \${$cacheid+:} false; then :
13288 $as_echo_n "(cached) " >&6
13289 else
13290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13291 /* end confdefs.h. */
13292 int i;
13293 int
13294 main ()
13295 {
13296
13297 ;
13298 return 0;
13299 }
13300 _ACEOF
13301 if ac_fn_c_try_link "$LINENO"; then :
13302 eval $cacheid=yes
13303 else
13304 eval $cacheid=no
13305 fi
13306 rm -f core conftest.err conftest.$ac_objext \
13307 conftest$ac_exeext conftest.$ac_ext
13308 fi
13309
13310
13311 CFLAGS="$xorg_testset_save_CFLAGS"
13312
13313 eval supported=\$$cacheid
13314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13315 $as_echo "$supported" >&6; }
13316 if test "$supported" = "yes" ; then
13317 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
13318 found="yes"
13319 fi
13320 fi
13321
13322
13323
13324
13325
13326
13327
13328
13329
13330
13331
13332
13333
13334
13335
13336 xorg_testset_save_CFLAGS="$CFLAGS"
13337
13338 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13339 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13341 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13342 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13343 $as_echo_n "(cached) " >&6
13344 else
13345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13346 /* end confdefs.h. */
13347 int i;
13348 _ACEOF
13349 if ac_fn_c_try_compile "$LINENO"; then :
13350 xorg_cv_cc_flag_unknown_warning_option=yes
13351 else
13352 xorg_cv_cc_flag_unknown_warning_option=no
13353 fi
13354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13355 fi
13356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13357 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13358 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13359 CFLAGS="$xorg_testset_save_CFLAGS"
13360 fi
13361
13362 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13363 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13364 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13365 fi
13366 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13368 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13369 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13370 $as_echo_n "(cached) " >&6
13371 else
13372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13373 /* end confdefs.h. */
13374 int i;
13375 _ACEOF
13376 if ac_fn_c_try_compile "$LINENO"; then :
13377 xorg_cv_cc_flag_unused_command_line_argument=yes
13378 else
13379 xorg_cv_cc_flag_unused_command_line_argument=no
13380 fi
13381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13382 fi
13383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13384 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13385 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13386 CFLAGS="$xorg_testset_save_CFLAGS"
13387 fi
13388
13389 found="no"
13390
13391 if test $found = "no" ; then
13392 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13393 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13394 fi
13395
13396 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13397 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13398 fi
13399
13400 CFLAGS="$CFLAGS -Wmissing-prototypes"
13401
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
13403 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
13404 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
13405 if eval \${$cacheid+:} false; then :
13406 $as_echo_n "(cached) " >&6
13407 else
13408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13409 /* end confdefs.h. */
13410 int i;
13411 int
13412 main ()
13413 {
13414
13415 ;
13416 return 0;
13417 }
13418 _ACEOF
13419 if ac_fn_c_try_link "$LINENO"; then :
13420 eval $cacheid=yes
13421 else
13422 eval $cacheid=no
13423 fi
13424 rm -f core conftest.err conftest.$ac_objext \
13425 conftest$ac_exeext conftest.$ac_ext
13426 fi
13427
13428
13429 CFLAGS="$xorg_testset_save_CFLAGS"
13430
13431 eval supported=\$$cacheid
13432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13433 $as_echo "$supported" >&6; }
13434 if test "$supported" = "yes" ; then
13435 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
13436 found="yes"
13437 fi
13438 fi
13439
13440
13441
13442
13443
13444
13445
13446
13447
13448
13449
13450
13451
13452
13453
13454 xorg_testset_save_CFLAGS="$CFLAGS"
13455
13456 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13457 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13459 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13460 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13461 $as_echo_n "(cached) " >&6
13462 else
13463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13464 /* end confdefs.h. */
13465 int i;
13466 _ACEOF
13467 if ac_fn_c_try_compile "$LINENO"; then :
13468 xorg_cv_cc_flag_unknown_warning_option=yes
13469 else
13470 xorg_cv_cc_flag_unknown_warning_option=no
13471 fi
13472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13473 fi
13474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13475 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13476 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13477 CFLAGS="$xorg_testset_save_CFLAGS"
13478 fi
13479
13480 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13481 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13482 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13483 fi
13484 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13486 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13487 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13488 $as_echo_n "(cached) " >&6
13489 else
13490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13491 /* end confdefs.h. */
13492 int i;
13493 _ACEOF
13494 if ac_fn_c_try_compile "$LINENO"; then :
13495 xorg_cv_cc_flag_unused_command_line_argument=yes
13496 else
13497 xorg_cv_cc_flag_unused_command_line_argument=no
13498 fi
13499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13500 fi
13501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13502 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13503 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13504 CFLAGS="$xorg_testset_save_CFLAGS"
13505 fi
13506
13507 found="no"
13508
13509 if test $found = "no" ; then
13510 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13511 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13512 fi
13513
13514 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13515 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13516 fi
13517
13518 CFLAGS="$CFLAGS -Wnested-externs"
13519
13520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
13521 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
13522 cacheid=xorg_cv_cc_flag__Wnested_externs
13523 if eval \${$cacheid+:} false; then :
13524 $as_echo_n "(cached) " >&6
13525 else
13526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13527 /* end confdefs.h. */
13528 int i;
13529 int
13530 main ()
13531 {
13532
13533 ;
13534 return 0;
13535 }
13536 _ACEOF
13537 if ac_fn_c_try_link "$LINENO"; then :
13538 eval $cacheid=yes
13539 else
13540 eval $cacheid=no
13541 fi
13542 rm -f core conftest.err conftest.$ac_objext \
13543 conftest$ac_exeext conftest.$ac_ext
13544 fi
13545
13546
13547 CFLAGS="$xorg_testset_save_CFLAGS"
13548
13549 eval supported=\$$cacheid
13550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13551 $as_echo "$supported" >&6; }
13552 if test "$supported" = "yes" ; then
13553 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
13554 found="yes"
13555 fi
13556 fi
13557
13558
13559
13560
13561
13562
13563
13564
13565
13566
13567
13568
13569
13570
13571
13572 xorg_testset_save_CFLAGS="$CFLAGS"
13573
13574 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13575 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13577 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13578 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13579 $as_echo_n "(cached) " >&6
13580 else
13581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13582 /* end confdefs.h. */
13583 int i;
13584 _ACEOF
13585 if ac_fn_c_try_compile "$LINENO"; then :
13586 xorg_cv_cc_flag_unknown_warning_option=yes
13587 else
13588 xorg_cv_cc_flag_unknown_warning_option=no
13589 fi
13590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13591 fi
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13593 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13594 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13595 CFLAGS="$xorg_testset_save_CFLAGS"
13596 fi
13597
13598 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13599 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13600 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13601 fi
13602 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13604 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13605 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13606 $as_echo_n "(cached) " >&6
13607 else
13608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13609 /* end confdefs.h. */
13610 int i;
13611 _ACEOF
13612 if ac_fn_c_try_compile "$LINENO"; then :
13613 xorg_cv_cc_flag_unused_command_line_argument=yes
13614 else
13615 xorg_cv_cc_flag_unused_command_line_argument=no
13616 fi
13617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13618 fi
13619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13620 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13621 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13622 CFLAGS="$xorg_testset_save_CFLAGS"
13623 fi
13624
13625 found="no"
13626
13627 if test $found = "no" ; then
13628 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13629 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13630 fi
13631
13632 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13633 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13634 fi
13635
13636 CFLAGS="$CFLAGS -Wbad-function-cast"
13637
13638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
13639 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
13640 cacheid=xorg_cv_cc_flag__Wbad_function_cast
13641 if eval \${$cacheid+:} false; then :
13642 $as_echo_n "(cached) " >&6
13643 else
13644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13645 /* end confdefs.h. */
13646 int i;
13647 int
13648 main ()
13649 {
13650
13651 ;
13652 return 0;
13653 }
13654 _ACEOF
13655 if ac_fn_c_try_link "$LINENO"; then :
13656 eval $cacheid=yes
13657 else
13658 eval $cacheid=no
13659 fi
13660 rm -f core conftest.err conftest.$ac_objext \
13661 conftest$ac_exeext conftest.$ac_ext
13662 fi
13663
13664
13665 CFLAGS="$xorg_testset_save_CFLAGS"
13666
13667 eval supported=\$$cacheid
13668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13669 $as_echo "$supported" >&6; }
13670 if test "$supported" = "yes" ; then
13671 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
13672 found="yes"
13673 fi
13674 fi
13675
13676
13677
13678
13679
13680
13681
13682
13683
13684
13685
13686
13687
13688
13689
13690 xorg_testset_save_CFLAGS="$CFLAGS"
13691
13692 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13693 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13695 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13696 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13697 $as_echo_n "(cached) " >&6
13698 else
13699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13700 /* end confdefs.h. */
13701 int i;
13702 _ACEOF
13703 if ac_fn_c_try_compile "$LINENO"; then :
13704 xorg_cv_cc_flag_unknown_warning_option=yes
13705 else
13706 xorg_cv_cc_flag_unknown_warning_option=no
13707 fi
13708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13709 fi
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13711 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13712 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13713 CFLAGS="$xorg_testset_save_CFLAGS"
13714 fi
13715
13716 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13717 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13718 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13719 fi
13720 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13722 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13723 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13724 $as_echo_n "(cached) " >&6
13725 else
13726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13727 /* end confdefs.h. */
13728 int i;
13729 _ACEOF
13730 if ac_fn_c_try_compile "$LINENO"; then :
13731 xorg_cv_cc_flag_unused_command_line_argument=yes
13732 else
13733 xorg_cv_cc_flag_unused_command_line_argument=no
13734 fi
13735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13736 fi
13737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13738 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13739 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13740 CFLAGS="$xorg_testset_save_CFLAGS"
13741 fi
13742
13743 found="no"
13744
13745 if test $found = "no" ; then
13746 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13747 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13748 fi
13749
13750 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13751 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13752 fi
13753
13754 CFLAGS="$CFLAGS -Wold-style-definition"
13755
13756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
13757 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
13758 cacheid=xorg_cv_cc_flag__Wold_style_definition
13759 if eval \${$cacheid+:} false; then :
13760 $as_echo_n "(cached) " >&6
13761 else
13762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13763 /* end confdefs.h. */
13764 int i;
13765 int
13766 main ()
13767 {
13768
13769 ;
13770 return 0;
13771 }
13772 _ACEOF
13773 if ac_fn_c_try_link "$LINENO"; then :
13774 eval $cacheid=yes
13775 else
13776 eval $cacheid=no
13777 fi
13778 rm -f core conftest.err conftest.$ac_objext \
13779 conftest$ac_exeext conftest.$ac_ext
13780 fi
13781
13782
13783 CFLAGS="$xorg_testset_save_CFLAGS"
13784
13785 eval supported=\$$cacheid
13786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13787 $as_echo "$supported" >&6; }
13788 if test "$supported" = "yes" ; then
13789 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
13790 found="yes"
13791 fi
13792 fi
13793
13794 if test $found = "no" ; then
13795 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13796 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13797 fi
13798
13799 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13800 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13801 fi
13802
13803 CFLAGS="$CFLAGS -fd"
13804
13805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
13806 $as_echo_n "checking if $CC supports -fd... " >&6; }
13807 cacheid=xorg_cv_cc_flag__fd
13808 if eval \${$cacheid+:} false; then :
13809 $as_echo_n "(cached) " >&6
13810 else
13811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13812 /* end confdefs.h. */
13813 int i;
13814 int
13815 main ()
13816 {
13817
13818 ;
13819 return 0;
13820 }
13821 _ACEOF
13822 if ac_fn_c_try_link "$LINENO"; then :
13823 eval $cacheid=yes
13824 else
13825 eval $cacheid=no
13826 fi
13827 rm -f core conftest.err conftest.$ac_objext \
13828 conftest$ac_exeext conftest.$ac_ext
13829 fi
13830
13831
13832 CFLAGS="$xorg_testset_save_CFLAGS"
13833
13834 eval supported=\$$cacheid
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13836 $as_echo "$supported" >&6; }
13837 if test "$supported" = "yes" ; then
13838 BASE_CFLAGS="$BASE_CFLAGS -fd"
13839 found="yes"
13840 fi
13841 fi
13842
13843
13844
13845
13846
13847
13848
13849
13850
13851
13852
13853
13854
13855
13856
13857 xorg_testset_save_CFLAGS="$CFLAGS"
13858
13859 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13860 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13862 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13863 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13864 $as_echo_n "(cached) " >&6
13865 else
13866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13867 /* end confdefs.h. */
13868 int i;
13869 _ACEOF
13870 if ac_fn_c_try_compile "$LINENO"; then :
13871 xorg_cv_cc_flag_unknown_warning_option=yes
13872 else
13873 xorg_cv_cc_flag_unknown_warning_option=no
13874 fi
13875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13876 fi
13877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13878 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13879 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13880 CFLAGS="$xorg_testset_save_CFLAGS"
13881 fi
13882
13883 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13884 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13885 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13886 fi
13887 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13889 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13890 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13891 $as_echo_n "(cached) " >&6
13892 else
13893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13894 /* end confdefs.h. */
13895 int i;
13896 _ACEOF
13897 if ac_fn_c_try_compile "$LINENO"; then :
13898 xorg_cv_cc_flag_unused_command_line_argument=yes
13899 else
13900 xorg_cv_cc_flag_unused_command_line_argument=no
13901 fi
13902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13903 fi
13904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13905 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13906 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13907 CFLAGS="$xorg_testset_save_CFLAGS"
13908 fi
13909
13910 found="no"
13911
13912 if test $found = "no" ; then
13913 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13914 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13915 fi
13916
13917 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13918 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13919 fi
13920
13921 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
13922
13923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
13924 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
13925 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
13926 if eval \${$cacheid+:} false; then :
13927 $as_echo_n "(cached) " >&6
13928 else
13929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13930 /* end confdefs.h. */
13931 int i;
13932 int
13933 main ()
13934 {
13935
13936 ;
13937 return 0;
13938 }
13939 _ACEOF
13940 if ac_fn_c_try_link "$LINENO"; then :
13941 eval $cacheid=yes
13942 else
13943 eval $cacheid=no
13944 fi
13945 rm -f core conftest.err conftest.$ac_objext \
13946 conftest$ac_exeext conftest.$ac_ext
13947 fi
13948
13949
13950 CFLAGS="$xorg_testset_save_CFLAGS"
13951
13952 eval supported=\$$cacheid
13953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13954 $as_echo "$supported" >&6; }
13955 if test "$supported" = "yes" ; then
13956 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
13957 found="yes"
13958 fi
13959 fi
13960
13961
13962
13963
13964
13965 # This chunk adds additional warnings that could catch undesired effects.
13966
13967
13968
13969
13970
13971
13972
13973
13974
13975
13976
13977
13978
13979 xorg_testset_save_CFLAGS="$CFLAGS"
13980
13981 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13982 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13984 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13985 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13986 $as_echo_n "(cached) " >&6
13987 else
13988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13989 /* end confdefs.h. */
13990 int i;
13991 _ACEOF
13992 if ac_fn_c_try_compile "$LINENO"; then :
13993 xorg_cv_cc_flag_unknown_warning_option=yes
13994 else
13995 xorg_cv_cc_flag_unknown_warning_option=no
13996 fi
13997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13998 fi
13999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14000 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14001 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14002 CFLAGS="$xorg_testset_save_CFLAGS"
14003 fi
14004
14005 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14006 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14007 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14008 fi
14009 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14011 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14012 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14013 $as_echo_n "(cached) " >&6
14014 else
14015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14016 /* end confdefs.h. */
14017 int i;
14018 _ACEOF
14019 if ac_fn_c_try_compile "$LINENO"; then :
14020 xorg_cv_cc_flag_unused_command_line_argument=yes
14021 else
14022 xorg_cv_cc_flag_unused_command_line_argument=no
14023 fi
14024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14025 fi
14026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14027 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14028 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14029 CFLAGS="$xorg_testset_save_CFLAGS"
14030 fi
14031
14032 found="no"
14033
14034 if test $found = "no" ; then
14035 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14036 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14037 fi
14038
14039 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14040 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14041 fi
14042
14043 CFLAGS="$CFLAGS -Wunused"
14044
14045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
14046 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
14047 cacheid=xorg_cv_cc_flag__Wunused
14048 if eval \${$cacheid+:} false; then :
14049 $as_echo_n "(cached) " >&6
14050 else
14051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14052 /* end confdefs.h. */
14053 int i;
14054 int
14055 main ()
14056 {
14057
14058 ;
14059 return 0;
14060 }
14061 _ACEOF
14062 if ac_fn_c_try_link "$LINENO"; then :
14063 eval $cacheid=yes
14064 else
14065 eval $cacheid=no
14066 fi
14067 rm -f core conftest.err conftest.$ac_objext \
14068 conftest$ac_exeext conftest.$ac_ext
14069 fi
14070
14071
14072 CFLAGS="$xorg_testset_save_CFLAGS"
14073
14074 eval supported=\$$cacheid
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14076 $as_echo "$supported" >&6; }
14077 if test "$supported" = "yes" ; then
14078 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
14079 found="yes"
14080 fi
14081 fi
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093
14094
14095
14096
14097 xorg_testset_save_CFLAGS="$CFLAGS"
14098
14099 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14100 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14102 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14103 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14104 $as_echo_n "(cached) " >&6
14105 else
14106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14107 /* end confdefs.h. */
14108 int i;
14109 _ACEOF
14110 if ac_fn_c_try_compile "$LINENO"; then :
14111 xorg_cv_cc_flag_unknown_warning_option=yes
14112 else
14113 xorg_cv_cc_flag_unknown_warning_option=no
14114 fi
14115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14116 fi
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14118 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14119 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14120 CFLAGS="$xorg_testset_save_CFLAGS"
14121 fi
14122
14123 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14124 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14125 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14126 fi
14127 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14129 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14130 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14131 $as_echo_n "(cached) " >&6
14132 else
14133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14134 /* end confdefs.h. */
14135 int i;
14136 _ACEOF
14137 if ac_fn_c_try_compile "$LINENO"; then :
14138 xorg_cv_cc_flag_unused_command_line_argument=yes
14139 else
14140 xorg_cv_cc_flag_unused_command_line_argument=no
14141 fi
14142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14143 fi
14144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14145 $as_echo "$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 -Wuninitialized"
14162
14163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
14164 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
14165 cacheid=xorg_cv_cc_flag__Wuninitialized
14166 if eval \${$cacheid+:} false; then :
14167 $as_echo_n "(cached) " >&6
14168 else
14169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14170 /* end confdefs.h. */
14171 int i;
14172 int
14173 main ()
14174 {
14175
14176 ;
14177 return 0;
14178 }
14179 _ACEOF
14180 if ac_fn_c_try_link "$LINENO"; then :
14181 eval $cacheid=yes
14182 else
14183 eval $cacheid=no
14184 fi
14185 rm -f core conftest.err conftest.$ac_objext \
14186 conftest$ac_exeext conftest.$ac_ext
14187 fi
14188
14189
14190 CFLAGS="$xorg_testset_save_CFLAGS"
14191
14192 eval supported=\$$cacheid
14193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14194 $as_echo "$supported" >&6; }
14195 if test "$supported" = "yes" ; then
14196 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
14197 found="yes"
14198 fi
14199 fi
14200
14201
14202
14203
14204
14205
14206
14207
14208
14209
14210
14211
14212
14213
14214
14215 xorg_testset_save_CFLAGS="$CFLAGS"
14216
14217 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14218 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14220 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14221 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14222 $as_echo_n "(cached) " >&6
14223 else
14224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14225 /* end confdefs.h. */
14226 int i;
14227 _ACEOF
14228 if ac_fn_c_try_compile "$LINENO"; then :
14229 xorg_cv_cc_flag_unknown_warning_option=yes
14230 else
14231 xorg_cv_cc_flag_unknown_warning_option=no
14232 fi
14233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14234 fi
14235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14236 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14237 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14238 CFLAGS="$xorg_testset_save_CFLAGS"
14239 fi
14240
14241 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14242 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14243 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14244 fi
14245 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14247 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14248 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14249 $as_echo_n "(cached) " >&6
14250 else
14251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14252 /* end confdefs.h. */
14253 int i;
14254 _ACEOF
14255 if ac_fn_c_try_compile "$LINENO"; then :
14256 xorg_cv_cc_flag_unused_command_line_argument=yes
14257 else
14258 xorg_cv_cc_flag_unused_command_line_argument=no
14259 fi
14260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14261 fi
14262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14263 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14264 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14265 CFLAGS="$xorg_testset_save_CFLAGS"
14266 fi
14267
14268 found="no"
14269
14270 if test $found = "no" ; then
14271 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14272 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14273 fi
14274
14275 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14276 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14277 fi
14278
14279 CFLAGS="$CFLAGS -Wshadow"
14280
14281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
14282 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
14283 cacheid=xorg_cv_cc_flag__Wshadow
14284 if eval \${$cacheid+:} false; then :
14285 $as_echo_n "(cached) " >&6
14286 else
14287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14288 /* end confdefs.h. */
14289 int i;
14290 int
14291 main ()
14292 {
14293
14294 ;
14295 return 0;
14296 }
14297 _ACEOF
14298 if ac_fn_c_try_link "$LINENO"; then :
14299 eval $cacheid=yes
14300 else
14301 eval $cacheid=no
14302 fi
14303 rm -f core conftest.err conftest.$ac_objext \
14304 conftest$ac_exeext conftest.$ac_ext
14305 fi
14306
14307
14308 CFLAGS="$xorg_testset_save_CFLAGS"
14309
14310 eval supported=\$$cacheid
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14312 $as_echo "$supported" >&6; }
14313 if test "$supported" = "yes" ; then
14314 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
14315 found="yes"
14316 fi
14317 fi
14318
14319
14320
14321
14322
14323
14324
14325
14326
14327
14328
14329
14330
14331
14332
14333 xorg_testset_save_CFLAGS="$CFLAGS"
14334
14335 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14336 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14338 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14339 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14340 $as_echo_n "(cached) " >&6
14341 else
14342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14343 /* end confdefs.h. */
14344 int i;
14345 _ACEOF
14346 if ac_fn_c_try_compile "$LINENO"; then :
14347 xorg_cv_cc_flag_unknown_warning_option=yes
14348 else
14349 xorg_cv_cc_flag_unknown_warning_option=no
14350 fi
14351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14352 fi
14353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14354 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14355 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14356 CFLAGS="$xorg_testset_save_CFLAGS"
14357 fi
14358
14359 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14360 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14361 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14362 fi
14363 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14365 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14366 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14367 $as_echo_n "(cached) " >&6
14368 else
14369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14370 /* end confdefs.h. */
14371 int i;
14372 _ACEOF
14373 if ac_fn_c_try_compile "$LINENO"; then :
14374 xorg_cv_cc_flag_unused_command_line_argument=yes
14375 else
14376 xorg_cv_cc_flag_unused_command_line_argument=no
14377 fi
14378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14379 fi
14380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14381 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14382 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14383 CFLAGS="$xorg_testset_save_CFLAGS"
14384 fi
14385
14386 found="no"
14387
14388 if test $found = "no" ; then
14389 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14390 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14391 fi
14392
14393 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14394 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14395 fi
14396
14397 CFLAGS="$CFLAGS -Wmissing-noreturn"
14398
14399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
14400 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
14401 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
14402 if eval \${$cacheid+:} false; then :
14403 $as_echo_n "(cached) " >&6
14404 else
14405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14406 /* end confdefs.h. */
14407 int i;
14408 int
14409 main ()
14410 {
14411
14412 ;
14413 return 0;
14414 }
14415 _ACEOF
14416 if ac_fn_c_try_link "$LINENO"; then :
14417 eval $cacheid=yes
14418 else
14419 eval $cacheid=no
14420 fi
14421 rm -f core conftest.err conftest.$ac_objext \
14422 conftest$ac_exeext conftest.$ac_ext
14423 fi
14424
14425
14426 CFLAGS="$xorg_testset_save_CFLAGS"
14427
14428 eval supported=\$$cacheid
14429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14430 $as_echo "$supported" >&6; }
14431 if test "$supported" = "yes" ; then
14432 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
14433 found="yes"
14434 fi
14435 fi
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445
14446
14447
14448
14449
14450
14451 xorg_testset_save_CFLAGS="$CFLAGS"
14452
14453 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14454 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14456 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14457 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14458 $as_echo_n "(cached) " >&6
14459 else
14460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14461 /* end confdefs.h. */
14462 int i;
14463 _ACEOF
14464 if ac_fn_c_try_compile "$LINENO"; then :
14465 xorg_cv_cc_flag_unknown_warning_option=yes
14466 else
14467 xorg_cv_cc_flag_unknown_warning_option=no
14468 fi
14469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14470 fi
14471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14472 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14473 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14474 CFLAGS="$xorg_testset_save_CFLAGS"
14475 fi
14476
14477 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14478 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14479 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14480 fi
14481 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14483 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14484 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14485 $as_echo_n "(cached) " >&6
14486 else
14487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14488 /* end confdefs.h. */
14489 int i;
14490 _ACEOF
14491 if ac_fn_c_try_compile "$LINENO"; then :
14492 xorg_cv_cc_flag_unused_command_line_argument=yes
14493 else
14494 xorg_cv_cc_flag_unused_command_line_argument=no
14495 fi
14496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14497 fi
14498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14499 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14500 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14501 CFLAGS="$xorg_testset_save_CFLAGS"
14502 fi
14503
14504 found="no"
14505
14506 if test $found = "no" ; then
14507 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14508 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14509 fi
14510
14511 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14512 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14513 fi
14514
14515 CFLAGS="$CFLAGS -Wmissing-format-attribute"
14516
14517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
14518 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
14519 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
14520 if eval \${$cacheid+:} false; then :
14521 $as_echo_n "(cached) " >&6
14522 else
14523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14524 /* end confdefs.h. */
14525 int i;
14526 int
14527 main ()
14528 {
14529
14530 ;
14531 return 0;
14532 }
14533 _ACEOF
14534 if ac_fn_c_try_link "$LINENO"; then :
14535 eval $cacheid=yes
14536 else
14537 eval $cacheid=no
14538 fi
14539 rm -f core conftest.err conftest.$ac_objext \
14540 conftest$ac_exeext conftest.$ac_ext
14541 fi
14542
14543
14544 CFLAGS="$xorg_testset_save_CFLAGS"
14545
14546 eval supported=\$$cacheid
14547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14548 $as_echo "$supported" >&6; }
14549 if test "$supported" = "yes" ; then
14550 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
14551 found="yes"
14552 fi
14553 fi
14554
14555
14556
14557
14558
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569 xorg_testset_save_CFLAGS="$CFLAGS"
14570
14571 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14572 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14574 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14575 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14576 $as_echo_n "(cached) " >&6
14577 else
14578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14579 /* end confdefs.h. */
14580 int i;
14581 _ACEOF
14582 if ac_fn_c_try_compile "$LINENO"; then :
14583 xorg_cv_cc_flag_unknown_warning_option=yes
14584 else
14585 xorg_cv_cc_flag_unknown_warning_option=no
14586 fi
14587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14588 fi
14589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14590 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14591 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14592 CFLAGS="$xorg_testset_save_CFLAGS"
14593 fi
14594
14595 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14596 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14597 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14598 fi
14599 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14601 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14602 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14603 $as_echo_n "(cached) " >&6
14604 else
14605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14606 /* end confdefs.h. */
14607 int i;
14608 _ACEOF
14609 if ac_fn_c_try_compile "$LINENO"; then :
14610 xorg_cv_cc_flag_unused_command_line_argument=yes
14611 else
14612 xorg_cv_cc_flag_unused_command_line_argument=no
14613 fi
14614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14615 fi
14616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14617 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14618 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14619 CFLAGS="$xorg_testset_save_CFLAGS"
14620 fi
14621
14622 found="no"
14623
14624 if test $found = "no" ; then
14625 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14626 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14627 fi
14628
14629 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14630 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14631 fi
14632
14633 CFLAGS="$CFLAGS -Wredundant-decls"
14634
14635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
14636 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
14637 cacheid=xorg_cv_cc_flag__Wredundant_decls
14638 if eval \${$cacheid+:} false; then :
14639 $as_echo_n "(cached) " >&6
14640 else
14641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14642 /* end confdefs.h. */
14643 int i;
14644 int
14645 main ()
14646 {
14647
14648 ;
14649 return 0;
14650 }
14651 _ACEOF
14652 if ac_fn_c_try_link "$LINENO"; then :
14653 eval $cacheid=yes
14654 else
14655 eval $cacheid=no
14656 fi
14657 rm -f core conftest.err conftest.$ac_objext \
14658 conftest$ac_exeext conftest.$ac_ext
14659 fi
14660
14661
14662 CFLAGS="$xorg_testset_save_CFLAGS"
14663
14664 eval supported=\$$cacheid
14665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14666 $as_echo "$supported" >&6; }
14667 if test "$supported" = "yes" ; then
14668 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
14669 found="yes"
14670 fi
14671 fi
14672
14673
14674
14675
14676
14677
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687 xorg_testset_save_CFLAGS="$CFLAGS"
14688
14689 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14690 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14692 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14693 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14694 $as_echo_n "(cached) " >&6
14695 else
14696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14697 /* end confdefs.h. */
14698 int i;
14699 _ACEOF
14700 if ac_fn_c_try_compile "$LINENO"; then :
14701 xorg_cv_cc_flag_unknown_warning_option=yes
14702 else
14703 xorg_cv_cc_flag_unknown_warning_option=no
14704 fi
14705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14706 fi
14707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14708 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14709 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14710 CFLAGS="$xorg_testset_save_CFLAGS"
14711 fi
14712
14713 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14714 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14715 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14716 fi
14717 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14719 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14720 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14721 $as_echo_n "(cached) " >&6
14722 else
14723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14724 /* end confdefs.h. */
14725 int i;
14726 _ACEOF
14727 if ac_fn_c_try_compile "$LINENO"; then :
14728 xorg_cv_cc_flag_unused_command_line_argument=yes
14729 else
14730 xorg_cv_cc_flag_unused_command_line_argument=no
14731 fi
14732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14733 fi
14734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14735 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14736 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14737 CFLAGS="$xorg_testset_save_CFLAGS"
14738 fi
14739
14740 found="no"
14741
14742 if test $found = "no" ; then
14743 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14744 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14745 fi
14746
14747 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14748 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14749 fi
14750
14751 CFLAGS="$CFLAGS -Wlogical-op"
14752
14753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
14754 $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
14755 cacheid=xorg_cv_cc_flag__Wlogical_op
14756 if eval \${$cacheid+:} false; then :
14757 $as_echo_n "(cached) " >&6
14758 else
14759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14760 /* end confdefs.h. */
14761 int i;
14762 int
14763 main ()
14764 {
14765
14766 ;
14767 return 0;
14768 }
14769 _ACEOF
14770 if ac_fn_c_try_link "$LINENO"; then :
14771 eval $cacheid=yes
14772 else
14773 eval $cacheid=no
14774 fi
14775 rm -f core conftest.err conftest.$ac_objext \
14776 conftest$ac_exeext conftest.$ac_ext
14777 fi
14778
14779
14780 CFLAGS="$xorg_testset_save_CFLAGS"
14781
14782 eval supported=\$$cacheid
14783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14784 $as_echo "$supported" >&6; }
14785 if test "$supported" = "yes" ; then
14786 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
14787 found="yes"
14788 fi
14789 fi
14790
14791
14792
14793 # These are currently disabled because they are noisy. They will be enabled
14794 # in the future once the codebase is sufficiently modernized to silence
14795 # them. For now, I don't want them to drown out the other warnings.
14796 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
14797 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
14798 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
14799
14800 # Turn some warnings into errors, so we don't accidently get successful builds
14801 # when there are problems that should be fixed.
14802
14803 if test "x$SELECTIVE_WERROR" = "xyes" ; then
14804
14805
14806
14807
14808
14809
14810
14811
14812
14813
14814
14815
14816
14817 xorg_testset_save_CFLAGS="$CFLAGS"
14818
14819 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14820 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14822 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14823 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14824 $as_echo_n "(cached) " >&6
14825 else
14826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14827 /* end confdefs.h. */
14828 int i;
14829 _ACEOF
14830 if ac_fn_c_try_compile "$LINENO"; then :
14831 xorg_cv_cc_flag_unknown_warning_option=yes
14832 else
14833 xorg_cv_cc_flag_unknown_warning_option=no
14834 fi
14835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14836 fi
14837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14838 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14839 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14840 CFLAGS="$xorg_testset_save_CFLAGS"
14841 fi
14842
14843 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14844 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14845 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14846 fi
14847 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14849 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14850 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14851 $as_echo_n "(cached) " >&6
14852 else
14853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14854 /* end confdefs.h. */
14855 int i;
14856 _ACEOF
14857 if ac_fn_c_try_compile "$LINENO"; then :
14858 xorg_cv_cc_flag_unused_command_line_argument=yes
14859 else
14860 xorg_cv_cc_flag_unused_command_line_argument=no
14861 fi
14862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14863 fi
14864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14865 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14866 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14867 CFLAGS="$xorg_testset_save_CFLAGS"
14868 fi
14869
14870 found="no"
14871
14872 if test $found = "no" ; then
14873 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14874 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14875 fi
14876
14877 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14878 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14879 fi
14880
14881 CFLAGS="$CFLAGS -Werror=implicit"
14882
14883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
14884 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
14885 cacheid=xorg_cv_cc_flag__Werror_implicit
14886 if eval \${$cacheid+:} false; then :
14887 $as_echo_n "(cached) " >&6
14888 else
14889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14890 /* end confdefs.h. */
14891 int i;
14892 int
14893 main ()
14894 {
14895
14896 ;
14897 return 0;
14898 }
14899 _ACEOF
14900 if ac_fn_c_try_link "$LINENO"; then :
14901 eval $cacheid=yes
14902 else
14903 eval $cacheid=no
14904 fi
14905 rm -f core conftest.err conftest.$ac_objext \
14906 conftest$ac_exeext conftest.$ac_ext
14907 fi
14908
14909
14910 CFLAGS="$xorg_testset_save_CFLAGS"
14911
14912 eval supported=\$$cacheid
14913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14914 $as_echo "$supported" >&6; }
14915 if test "$supported" = "yes" ; then
14916 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
14917 found="yes"
14918 fi
14919 fi
14920
14921 if test $found = "no" ; then
14922 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14923 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14924 fi
14925
14926 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14927 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14928 fi
14929
14930 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14931
14932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
14933 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
14934 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
14935 if eval \${$cacheid+:} false; then :
14936 $as_echo_n "(cached) " >&6
14937 else
14938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14939 /* end confdefs.h. */
14940 int i;
14941 int
14942 main ()
14943 {
14944
14945 ;
14946 return 0;
14947 }
14948 _ACEOF
14949 if ac_fn_c_try_link "$LINENO"; then :
14950 eval $cacheid=yes
14951 else
14952 eval $cacheid=no
14953 fi
14954 rm -f core conftest.err conftest.$ac_objext \
14955 conftest$ac_exeext conftest.$ac_ext
14956 fi
14957
14958
14959 CFLAGS="$xorg_testset_save_CFLAGS"
14960
14961 eval supported=\$$cacheid
14962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14963 $as_echo "$supported" >&6; }
14964 if test "$supported" = "yes" ; then
14965 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14966 found="yes"
14967 fi
14968 fi
14969
14970
14971
14972
14973
14974
14975
14976
14977
14978
14979
14980
14981
14982
14983
14984 xorg_testset_save_CFLAGS="$CFLAGS"
14985
14986 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14987 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14989 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14990 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14991 $as_echo_n "(cached) " >&6
14992 else
14993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14994 /* end confdefs.h. */
14995 int i;
14996 _ACEOF
14997 if ac_fn_c_try_compile "$LINENO"; then :
14998 xorg_cv_cc_flag_unknown_warning_option=yes
14999 else
15000 xorg_cv_cc_flag_unknown_warning_option=no
15001 fi
15002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15003 fi
15004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15005 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15006 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15007 CFLAGS="$xorg_testset_save_CFLAGS"
15008 fi
15009
15010 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15011 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15012 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15013 fi
15014 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15016 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15017 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15018 $as_echo_n "(cached) " >&6
15019 else
15020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15021 /* end confdefs.h. */
15022 int i;
15023 _ACEOF
15024 if ac_fn_c_try_compile "$LINENO"; then :
15025 xorg_cv_cc_flag_unused_command_line_argument=yes
15026 else
15027 xorg_cv_cc_flag_unused_command_line_argument=no
15028 fi
15029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15030 fi
15031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15032 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15033 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15034 CFLAGS="$xorg_testset_save_CFLAGS"
15035 fi
15036
15037 found="no"
15038
15039 if test $found = "no" ; then
15040 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15041 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15042 fi
15043
15044 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15045 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15046 fi
15047
15048 CFLAGS="$CFLAGS -Werror=nonnull"
15049
15050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
15051 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
15052 cacheid=xorg_cv_cc_flag__Werror_nonnull
15053 if eval \${$cacheid+:} false; then :
15054 $as_echo_n "(cached) " >&6
15055 else
15056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15057 /* end confdefs.h. */
15058 int i;
15059 int
15060 main ()
15061 {
15062
15063 ;
15064 return 0;
15065 }
15066 _ACEOF
15067 if ac_fn_c_try_link "$LINENO"; then :
15068 eval $cacheid=yes
15069 else
15070 eval $cacheid=no
15071 fi
15072 rm -f core conftest.err conftest.$ac_objext \
15073 conftest$ac_exeext conftest.$ac_ext
15074 fi
15075
15076
15077 CFLAGS="$xorg_testset_save_CFLAGS"
15078
15079 eval supported=\$$cacheid
15080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15081 $as_echo "$supported" >&6; }
15082 if test "$supported" = "yes" ; then
15083 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
15084 found="yes"
15085 fi
15086 fi
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102 xorg_testset_save_CFLAGS="$CFLAGS"
15103
15104 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15105 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15107 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15108 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15109 $as_echo_n "(cached) " >&6
15110 else
15111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15112 /* end confdefs.h. */
15113 int i;
15114 _ACEOF
15115 if ac_fn_c_try_compile "$LINENO"; then :
15116 xorg_cv_cc_flag_unknown_warning_option=yes
15117 else
15118 xorg_cv_cc_flag_unknown_warning_option=no
15119 fi
15120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15121 fi
15122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15123 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15124 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15125 CFLAGS="$xorg_testset_save_CFLAGS"
15126 fi
15127
15128 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15129 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15130 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15131 fi
15132 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15134 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15135 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15136 $as_echo_n "(cached) " >&6
15137 else
15138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15139 /* end confdefs.h. */
15140 int i;
15141 _ACEOF
15142 if ac_fn_c_try_compile "$LINENO"; then :
15143 xorg_cv_cc_flag_unused_command_line_argument=yes
15144 else
15145 xorg_cv_cc_flag_unused_command_line_argument=no
15146 fi
15147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15148 fi
15149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15150 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15151 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15152 CFLAGS="$xorg_testset_save_CFLAGS"
15153 fi
15154
15155 found="no"
15156
15157 if test $found = "no" ; then
15158 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15159 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15160 fi
15161
15162 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15163 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15164 fi
15165
15166 CFLAGS="$CFLAGS -Werror=init-self"
15167
15168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
15169 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
15170 cacheid=xorg_cv_cc_flag__Werror_init_self
15171 if eval \${$cacheid+:} false; then :
15172 $as_echo_n "(cached) " >&6
15173 else
15174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15175 /* end confdefs.h. */
15176 int i;
15177 int
15178 main ()
15179 {
15180
15181 ;
15182 return 0;
15183 }
15184 _ACEOF
15185 if ac_fn_c_try_link "$LINENO"; then :
15186 eval $cacheid=yes
15187 else
15188 eval $cacheid=no
15189 fi
15190 rm -f core conftest.err conftest.$ac_objext \
15191 conftest$ac_exeext conftest.$ac_ext
15192 fi
15193
15194
15195 CFLAGS="$xorg_testset_save_CFLAGS"
15196
15197 eval supported=\$$cacheid
15198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15199 $as_echo "$supported" >&6; }
15200 if test "$supported" = "yes" ; then
15201 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
15202 found="yes"
15203 fi
15204 fi
15205
15206
15207
15208
15209
15210
15211
15212
15213
15214
15215
15216
15217
15218
15219
15220 xorg_testset_save_CFLAGS="$CFLAGS"
15221
15222 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15223 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15225 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15226 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15227 $as_echo_n "(cached) " >&6
15228 else
15229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15230 /* end confdefs.h. */
15231 int i;
15232 _ACEOF
15233 if ac_fn_c_try_compile "$LINENO"; then :
15234 xorg_cv_cc_flag_unknown_warning_option=yes
15235 else
15236 xorg_cv_cc_flag_unknown_warning_option=no
15237 fi
15238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15239 fi
15240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15241 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15242 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15243 CFLAGS="$xorg_testset_save_CFLAGS"
15244 fi
15245
15246 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15247 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15248 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15249 fi
15250 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15252 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15253 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15254 $as_echo_n "(cached) " >&6
15255 else
15256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15257 /* end confdefs.h. */
15258 int i;
15259 _ACEOF
15260 if ac_fn_c_try_compile "$LINENO"; then :
15261 xorg_cv_cc_flag_unused_command_line_argument=yes
15262 else
15263 xorg_cv_cc_flag_unused_command_line_argument=no
15264 fi
15265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15266 fi
15267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15268 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15269 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15270 CFLAGS="$xorg_testset_save_CFLAGS"
15271 fi
15272
15273 found="no"
15274
15275 if test $found = "no" ; then
15276 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15277 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15278 fi
15279
15280 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15281 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15282 fi
15283
15284 CFLAGS="$CFLAGS -Werror=main"
15285
15286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
15287 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
15288 cacheid=xorg_cv_cc_flag__Werror_main
15289 if eval \${$cacheid+:} false; then :
15290 $as_echo_n "(cached) " >&6
15291 else
15292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15293 /* end confdefs.h. */
15294 int i;
15295 int
15296 main ()
15297 {
15298
15299 ;
15300 return 0;
15301 }
15302 _ACEOF
15303 if ac_fn_c_try_link "$LINENO"; then :
15304 eval $cacheid=yes
15305 else
15306 eval $cacheid=no
15307 fi
15308 rm -f core conftest.err conftest.$ac_objext \
15309 conftest$ac_exeext conftest.$ac_ext
15310 fi
15311
15312
15313 CFLAGS="$xorg_testset_save_CFLAGS"
15314
15315 eval supported=\$$cacheid
15316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15317 $as_echo "$supported" >&6; }
15318 if test "$supported" = "yes" ; then
15319 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
15320 found="yes"
15321 fi
15322 fi
15323
15324
15325
15326
15327
15328
15329
15330
15331
15332
15333
15334
15335
15336
15337
15338 xorg_testset_save_CFLAGS="$CFLAGS"
15339
15340 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15341 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15343 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15344 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15345 $as_echo_n "(cached) " >&6
15346 else
15347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15348 /* end confdefs.h. */
15349 int i;
15350 _ACEOF
15351 if ac_fn_c_try_compile "$LINENO"; then :
15352 xorg_cv_cc_flag_unknown_warning_option=yes
15353 else
15354 xorg_cv_cc_flag_unknown_warning_option=no
15355 fi
15356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15357 fi
15358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15359 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15360 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15361 CFLAGS="$xorg_testset_save_CFLAGS"
15362 fi
15363
15364 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15365 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15366 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15367 fi
15368 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15370 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15371 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15372 $as_echo_n "(cached) " >&6
15373 else
15374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15375 /* end confdefs.h. */
15376 int i;
15377 _ACEOF
15378 if ac_fn_c_try_compile "$LINENO"; then :
15379 xorg_cv_cc_flag_unused_command_line_argument=yes
15380 else
15381 xorg_cv_cc_flag_unused_command_line_argument=no
15382 fi
15383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15384 fi
15385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15386 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15387 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15388 CFLAGS="$xorg_testset_save_CFLAGS"
15389 fi
15390
15391 found="no"
15392
15393 if test $found = "no" ; then
15394 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15395 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15396 fi
15397
15398 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15399 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15400 fi
15401
15402 CFLAGS="$CFLAGS -Werror=missing-braces"
15403
15404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
15405 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
15406 cacheid=xorg_cv_cc_flag__Werror_missing_braces
15407 if eval \${$cacheid+:} false; then :
15408 $as_echo_n "(cached) " >&6
15409 else
15410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15411 /* end confdefs.h. */
15412 int i;
15413 int
15414 main ()
15415 {
15416
15417 ;
15418 return 0;
15419 }
15420 _ACEOF
15421 if ac_fn_c_try_link "$LINENO"; then :
15422 eval $cacheid=yes
15423 else
15424 eval $cacheid=no
15425 fi
15426 rm -f core conftest.err conftest.$ac_objext \
15427 conftest$ac_exeext conftest.$ac_ext
15428 fi
15429
15430
15431 CFLAGS="$xorg_testset_save_CFLAGS"
15432
15433 eval supported=\$$cacheid
15434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15435 $as_echo "$supported" >&6; }
15436 if test "$supported" = "yes" ; then
15437 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
15438 found="yes"
15439 fi
15440 fi
15441
15442
15443
15444
15445
15446
15447
15448
15449
15450
15451
15452
15453
15454
15455
15456 xorg_testset_save_CFLAGS="$CFLAGS"
15457
15458 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15459 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15461 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15462 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15463 $as_echo_n "(cached) " >&6
15464 else
15465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15466 /* end confdefs.h. */
15467 int i;
15468 _ACEOF
15469 if ac_fn_c_try_compile "$LINENO"; then :
15470 xorg_cv_cc_flag_unknown_warning_option=yes
15471 else
15472 xorg_cv_cc_flag_unknown_warning_option=no
15473 fi
15474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15475 fi
15476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15477 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15478 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15479 CFLAGS="$xorg_testset_save_CFLAGS"
15480 fi
15481
15482 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15483 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15484 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15485 fi
15486 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15488 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15489 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15490 $as_echo_n "(cached) " >&6
15491 else
15492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15493 /* end confdefs.h. */
15494 int i;
15495 _ACEOF
15496 if ac_fn_c_try_compile "$LINENO"; then :
15497 xorg_cv_cc_flag_unused_command_line_argument=yes
15498 else
15499 xorg_cv_cc_flag_unused_command_line_argument=no
15500 fi
15501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15502 fi
15503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15504 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15505 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15506 CFLAGS="$xorg_testset_save_CFLAGS"
15507 fi
15508
15509 found="no"
15510
15511 if test $found = "no" ; then
15512 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15513 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15514 fi
15515
15516 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15517 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15518 fi
15519
15520 CFLAGS="$CFLAGS -Werror=sequence-point"
15521
15522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
15523 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
15524 cacheid=xorg_cv_cc_flag__Werror_sequence_point
15525 if eval \${$cacheid+:} false; then :
15526 $as_echo_n "(cached) " >&6
15527 else
15528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15529 /* end confdefs.h. */
15530 int i;
15531 int
15532 main ()
15533 {
15534
15535 ;
15536 return 0;
15537 }
15538 _ACEOF
15539 if ac_fn_c_try_link "$LINENO"; then :
15540 eval $cacheid=yes
15541 else
15542 eval $cacheid=no
15543 fi
15544 rm -f core conftest.err conftest.$ac_objext \
15545 conftest$ac_exeext conftest.$ac_ext
15546 fi
15547
15548
15549 CFLAGS="$xorg_testset_save_CFLAGS"
15550
15551 eval supported=\$$cacheid
15552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15553 $as_echo "$supported" >&6; }
15554 if test "$supported" = "yes" ; then
15555 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
15556 found="yes"
15557 fi
15558 fi
15559
15560
15561
15562
15563
15564
15565
15566
15567
15568
15569
15570
15571
15572
15573
15574 xorg_testset_save_CFLAGS="$CFLAGS"
15575
15576 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15577 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15579 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15580 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15581 $as_echo_n "(cached) " >&6
15582 else
15583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15584 /* end confdefs.h. */
15585 int i;
15586 _ACEOF
15587 if ac_fn_c_try_compile "$LINENO"; then :
15588 xorg_cv_cc_flag_unknown_warning_option=yes
15589 else
15590 xorg_cv_cc_flag_unknown_warning_option=no
15591 fi
15592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15593 fi
15594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15595 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15596 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15597 CFLAGS="$xorg_testset_save_CFLAGS"
15598 fi
15599
15600 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15601 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15602 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15603 fi
15604 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15606 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15607 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15608 $as_echo_n "(cached) " >&6
15609 else
15610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15611 /* end confdefs.h. */
15612 int i;
15613 _ACEOF
15614 if ac_fn_c_try_compile "$LINENO"; then :
15615 xorg_cv_cc_flag_unused_command_line_argument=yes
15616 else
15617 xorg_cv_cc_flag_unused_command_line_argument=no
15618 fi
15619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15620 fi
15621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15622 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15623 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15624 CFLAGS="$xorg_testset_save_CFLAGS"
15625 fi
15626
15627 found="no"
15628
15629 if test $found = "no" ; then
15630 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15631 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15632 fi
15633
15634 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15635 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15636 fi
15637
15638 CFLAGS="$CFLAGS -Werror=return-type"
15639
15640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
15641 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
15642 cacheid=xorg_cv_cc_flag__Werror_return_type
15643 if eval \${$cacheid+:} false; then :
15644 $as_echo_n "(cached) " >&6
15645 else
15646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15647 /* end confdefs.h. */
15648 int i;
15649 int
15650 main ()
15651 {
15652
15653 ;
15654 return 0;
15655 }
15656 _ACEOF
15657 if ac_fn_c_try_link "$LINENO"; then :
15658 eval $cacheid=yes
15659 else
15660 eval $cacheid=no
15661 fi
15662 rm -f core conftest.err conftest.$ac_objext \
15663 conftest$ac_exeext conftest.$ac_ext
15664 fi
15665
15666
15667 CFLAGS="$xorg_testset_save_CFLAGS"
15668
15669 eval supported=\$$cacheid
15670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15671 $as_echo "$supported" >&6; }
15672 if test "$supported" = "yes" ; then
15673 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
15674 found="yes"
15675 fi
15676 fi
15677
15678 if test $found = "no" ; then
15679 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15680 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15681 fi
15682
15683 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15684 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15685 fi
15686
15687 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
15688
15689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
15690 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
15691 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
15692 if eval \${$cacheid+:} false; then :
15693 $as_echo_n "(cached) " >&6
15694 else
15695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15696 /* end confdefs.h. */
15697 int i;
15698 int
15699 main ()
15700 {
15701
15702 ;
15703 return 0;
15704 }
15705 _ACEOF
15706 if ac_fn_c_try_link "$LINENO"; then :
15707 eval $cacheid=yes
15708 else
15709 eval $cacheid=no
15710 fi
15711 rm -f core conftest.err conftest.$ac_objext \
15712 conftest$ac_exeext conftest.$ac_ext
15713 fi
15714
15715
15716 CFLAGS="$xorg_testset_save_CFLAGS"
15717
15718 eval supported=\$$cacheid
15719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15720 $as_echo "$supported" >&6; }
15721 if test "$supported" = "yes" ; then
15722 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
15723 found="yes"
15724 fi
15725 fi
15726
15727
15728
15729
15730
15731
15732
15733
15734
15735
15736
15737
15738
15739
15740
15741 xorg_testset_save_CFLAGS="$CFLAGS"
15742
15743 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15744 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15746 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15747 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15748 $as_echo_n "(cached) " >&6
15749 else
15750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15751 /* end confdefs.h. */
15752 int i;
15753 _ACEOF
15754 if ac_fn_c_try_compile "$LINENO"; then :
15755 xorg_cv_cc_flag_unknown_warning_option=yes
15756 else
15757 xorg_cv_cc_flag_unknown_warning_option=no
15758 fi
15759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15760 fi
15761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15762 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15763 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15764 CFLAGS="$xorg_testset_save_CFLAGS"
15765 fi
15766
15767 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15768 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15769 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15770 fi
15771 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15773 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15774 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15775 $as_echo_n "(cached) " >&6
15776 else
15777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15778 /* end confdefs.h. */
15779 int i;
15780 _ACEOF
15781 if ac_fn_c_try_compile "$LINENO"; then :
15782 xorg_cv_cc_flag_unused_command_line_argument=yes
15783 else
15784 xorg_cv_cc_flag_unused_command_line_argument=no
15785 fi
15786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15787 fi
15788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15789 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15790 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15791 CFLAGS="$xorg_testset_save_CFLAGS"
15792 fi
15793
15794 found="no"
15795
15796 if test $found = "no" ; then
15797 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15798 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15799 fi
15800
15801 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15802 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15803 fi
15804
15805 CFLAGS="$CFLAGS -Werror=trigraphs"
15806
15807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
15808 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
15809 cacheid=xorg_cv_cc_flag__Werror_trigraphs
15810 if eval \${$cacheid+:} false; then :
15811 $as_echo_n "(cached) " >&6
15812 else
15813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15814 /* end confdefs.h. */
15815 int i;
15816 int
15817 main ()
15818 {
15819
15820 ;
15821 return 0;
15822 }
15823 _ACEOF
15824 if ac_fn_c_try_link "$LINENO"; then :
15825 eval $cacheid=yes
15826 else
15827 eval $cacheid=no
15828 fi
15829 rm -f core conftest.err conftest.$ac_objext \
15830 conftest$ac_exeext conftest.$ac_ext
15831 fi
15832
15833
15834 CFLAGS="$xorg_testset_save_CFLAGS"
15835
15836 eval supported=\$$cacheid
15837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15838 $as_echo "$supported" >&6; }
15839 if test "$supported" = "yes" ; then
15840 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
15841 found="yes"
15842 fi
15843 fi
15844
15845
15846
15847
15848
15849
15850
15851
15852
15853
15854
15855
15856
15857
15858
15859 xorg_testset_save_CFLAGS="$CFLAGS"
15860
15861 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15862 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15864 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15865 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15866 $as_echo_n "(cached) " >&6
15867 else
15868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15869 /* end confdefs.h. */
15870 int i;
15871 _ACEOF
15872 if ac_fn_c_try_compile "$LINENO"; then :
15873 xorg_cv_cc_flag_unknown_warning_option=yes
15874 else
15875 xorg_cv_cc_flag_unknown_warning_option=no
15876 fi
15877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15878 fi
15879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15880 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15881 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15882 CFLAGS="$xorg_testset_save_CFLAGS"
15883 fi
15884
15885 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15886 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15887 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15888 fi
15889 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15891 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15892 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15893 $as_echo_n "(cached) " >&6
15894 else
15895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15896 /* end confdefs.h. */
15897 int i;
15898 _ACEOF
15899 if ac_fn_c_try_compile "$LINENO"; then :
15900 xorg_cv_cc_flag_unused_command_line_argument=yes
15901 else
15902 xorg_cv_cc_flag_unused_command_line_argument=no
15903 fi
15904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15905 fi
15906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15907 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15908 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15909 CFLAGS="$xorg_testset_save_CFLAGS"
15910 fi
15911
15912 found="no"
15913
15914 if test $found = "no" ; then
15915 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15916 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15917 fi
15918
15919 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15920 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15921 fi
15922
15923 CFLAGS="$CFLAGS -Werror=array-bounds"
15924
15925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
15926 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
15927 cacheid=xorg_cv_cc_flag__Werror_array_bounds
15928 if eval \${$cacheid+:} false; then :
15929 $as_echo_n "(cached) " >&6
15930 else
15931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15932 /* end confdefs.h. */
15933 int i;
15934 int
15935 main ()
15936 {
15937
15938 ;
15939 return 0;
15940 }
15941 _ACEOF
15942 if ac_fn_c_try_link "$LINENO"; then :
15943 eval $cacheid=yes
15944 else
15945 eval $cacheid=no
15946 fi
15947 rm -f core conftest.err conftest.$ac_objext \
15948 conftest$ac_exeext conftest.$ac_ext
15949 fi
15950
15951
15952 CFLAGS="$xorg_testset_save_CFLAGS"
15953
15954 eval supported=\$$cacheid
15955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15956 $as_echo "$supported" >&6; }
15957 if test "$supported" = "yes" ; then
15958 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
15959 found="yes"
15960 fi
15961 fi
15962
15963
15964
15965
15966
15967
15968
15969
15970
15971
15972
15973
15974
15975
15976
15977 xorg_testset_save_CFLAGS="$CFLAGS"
15978
15979 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15980 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15982 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15983 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15984 $as_echo_n "(cached) " >&6
15985 else
15986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15987 /* end confdefs.h. */
15988 int i;
15989 _ACEOF
15990 if ac_fn_c_try_compile "$LINENO"; then :
15991 xorg_cv_cc_flag_unknown_warning_option=yes
15992 else
15993 xorg_cv_cc_flag_unknown_warning_option=no
15994 fi
15995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15996 fi
15997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15998 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15999 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16000 CFLAGS="$xorg_testset_save_CFLAGS"
16001 fi
16002
16003 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16004 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16005 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16006 fi
16007 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16009 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16010 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16011 $as_echo_n "(cached) " >&6
16012 else
16013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16014 /* end confdefs.h. */
16015 int i;
16016 _ACEOF
16017 if ac_fn_c_try_compile "$LINENO"; then :
16018 xorg_cv_cc_flag_unused_command_line_argument=yes
16019 else
16020 xorg_cv_cc_flag_unused_command_line_argument=no
16021 fi
16022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16023 fi
16024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16025 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16026 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16027 CFLAGS="$xorg_testset_save_CFLAGS"
16028 fi
16029
16030 found="no"
16031
16032 if test $found = "no" ; then
16033 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16034 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16035 fi
16036
16037 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16038 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16039 fi
16040
16041 CFLAGS="$CFLAGS -Werror=write-strings"
16042
16043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
16044 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
16045 cacheid=xorg_cv_cc_flag__Werror_write_strings
16046 if eval \${$cacheid+:} false; then :
16047 $as_echo_n "(cached) " >&6
16048 else
16049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16050 /* end confdefs.h. */
16051 int i;
16052 int
16053 main ()
16054 {
16055
16056 ;
16057 return 0;
16058 }
16059 _ACEOF
16060 if ac_fn_c_try_link "$LINENO"; then :
16061 eval $cacheid=yes
16062 else
16063 eval $cacheid=no
16064 fi
16065 rm -f core conftest.err conftest.$ac_objext \
16066 conftest$ac_exeext conftest.$ac_ext
16067 fi
16068
16069
16070 CFLAGS="$xorg_testset_save_CFLAGS"
16071
16072 eval supported=\$$cacheid
16073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16074 $as_echo "$supported" >&6; }
16075 if test "$supported" = "yes" ; then
16076 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
16077 found="yes"
16078 fi
16079 fi
16080
16081
16082
16083
16084
16085
16086
16087
16088
16089
16090
16091
16092
16093
16094
16095 xorg_testset_save_CFLAGS="$CFLAGS"
16096
16097 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16098 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16100 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16101 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16102 $as_echo_n "(cached) " >&6
16103 else
16104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16105 /* end confdefs.h. */
16106 int i;
16107 _ACEOF
16108 if ac_fn_c_try_compile "$LINENO"; then :
16109 xorg_cv_cc_flag_unknown_warning_option=yes
16110 else
16111 xorg_cv_cc_flag_unknown_warning_option=no
16112 fi
16113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16114 fi
16115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16116 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16117 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16118 CFLAGS="$xorg_testset_save_CFLAGS"
16119 fi
16120
16121 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16122 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16123 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16124 fi
16125 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16127 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16128 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16129 $as_echo_n "(cached) " >&6
16130 else
16131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16132 /* end confdefs.h. */
16133 int i;
16134 _ACEOF
16135 if ac_fn_c_try_compile "$LINENO"; then :
16136 xorg_cv_cc_flag_unused_command_line_argument=yes
16137 else
16138 xorg_cv_cc_flag_unused_command_line_argument=no
16139 fi
16140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16141 fi
16142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16143 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16144 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16145 CFLAGS="$xorg_testset_save_CFLAGS"
16146 fi
16147
16148 found="no"
16149
16150 if test $found = "no" ; then
16151 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16152 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16153 fi
16154
16155 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16156 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16157 fi
16158
16159 CFLAGS="$CFLAGS -Werror=address"
16160
16161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
16162 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
16163 cacheid=xorg_cv_cc_flag__Werror_address
16164 if eval \${$cacheid+:} false; then :
16165 $as_echo_n "(cached) " >&6
16166 else
16167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16168 /* end confdefs.h. */
16169 int i;
16170 int
16171 main ()
16172 {
16173
16174 ;
16175 return 0;
16176 }
16177 _ACEOF
16178 if ac_fn_c_try_link "$LINENO"; then :
16179 eval $cacheid=yes
16180 else
16181 eval $cacheid=no
16182 fi
16183 rm -f core conftest.err conftest.$ac_objext \
16184 conftest$ac_exeext conftest.$ac_ext
16185 fi
16186
16187
16188 CFLAGS="$xorg_testset_save_CFLAGS"
16189
16190 eval supported=\$$cacheid
16191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16192 $as_echo "$supported" >&6; }
16193 if test "$supported" = "yes" ; then
16194 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
16195 found="yes"
16196 fi
16197 fi
16198
16199
16200
16201
16202
16203
16204
16205
16206
16207
16208
16209
16210
16211
16212
16213 xorg_testset_save_CFLAGS="$CFLAGS"
16214
16215 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16216 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16218 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16219 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16220 $as_echo_n "(cached) " >&6
16221 else
16222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16223 /* end confdefs.h. */
16224 int i;
16225 _ACEOF
16226 if ac_fn_c_try_compile "$LINENO"; then :
16227 xorg_cv_cc_flag_unknown_warning_option=yes
16228 else
16229 xorg_cv_cc_flag_unknown_warning_option=no
16230 fi
16231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16232 fi
16233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16234 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16235 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16236 CFLAGS="$xorg_testset_save_CFLAGS"
16237 fi
16238
16239 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16240 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16241 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16242 fi
16243 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16245 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16246 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16247 $as_echo_n "(cached) " >&6
16248 else
16249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16250 /* end confdefs.h. */
16251 int i;
16252 _ACEOF
16253 if ac_fn_c_try_compile "$LINENO"; then :
16254 xorg_cv_cc_flag_unused_command_line_argument=yes
16255 else
16256 xorg_cv_cc_flag_unused_command_line_argument=no
16257 fi
16258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16259 fi
16260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16261 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16262 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16263 CFLAGS="$xorg_testset_save_CFLAGS"
16264 fi
16265
16266 found="no"
16267
16268 if test $found = "no" ; then
16269 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16270 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16271 fi
16272
16273 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16274 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16275 fi
16276
16277 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
16278
16279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
16280 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
16281 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
16282 if eval \${$cacheid+:} false; then :
16283 $as_echo_n "(cached) " >&6
16284 else
16285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16286 /* end confdefs.h. */
16287 int i;
16288 int
16289 main ()
16290 {
16291
16292 ;
16293 return 0;
16294 }
16295 _ACEOF
16296 if ac_fn_c_try_link "$LINENO"; then :
16297 eval $cacheid=yes
16298 else
16299 eval $cacheid=no
16300 fi
16301 rm -f core conftest.err conftest.$ac_objext \
16302 conftest$ac_exeext conftest.$ac_ext
16303 fi
16304
16305
16306 CFLAGS="$xorg_testset_save_CFLAGS"
16307
16308 eval supported=\$$cacheid
16309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16310 $as_echo "$supported" >&6; }
16311 if test "$supported" = "yes" ; then
16312 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
16313 found="yes"
16314 fi
16315 fi
16316
16317 if test $found = "no" ; then
16318 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16319 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16320 fi
16321
16322 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16323 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16324 fi
16325
16326 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16327
16328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
16329 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
16330 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
16331 if eval \${$cacheid+:} false; then :
16332 $as_echo_n "(cached) " >&6
16333 else
16334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16335 /* end confdefs.h. */
16336 int i;
16337 int
16338 main ()
16339 {
16340
16341 ;
16342 return 0;
16343 }
16344 _ACEOF
16345 if ac_fn_c_try_link "$LINENO"; then :
16346 eval $cacheid=yes
16347 else
16348 eval $cacheid=no
16349 fi
16350 rm -f core conftest.err conftest.$ac_objext \
16351 conftest$ac_exeext conftest.$ac_ext
16352 fi
16353
16354
16355 CFLAGS="$xorg_testset_save_CFLAGS"
16356
16357 eval supported=\$$cacheid
16358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16359 $as_echo "$supported" >&6; }
16360 if test "$supported" = "yes" ; then
16361 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16362 found="yes"
16363 fi
16364 fi
16365
16366
16367
16368
16369
16370
16371
16372
16373
16374
16375
16376
16377
16378
16379
16380 xorg_testset_save_CFLAGS="$CFLAGS"
16381
16382 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16383 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16385 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16386 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16387 $as_echo_n "(cached) " >&6
16388 else
16389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16390 /* end confdefs.h. */
16391 int i;
16392 _ACEOF
16393 if ac_fn_c_try_compile "$LINENO"; then :
16394 xorg_cv_cc_flag_unknown_warning_option=yes
16395 else
16396 xorg_cv_cc_flag_unknown_warning_option=no
16397 fi
16398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16399 fi
16400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16401 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16402 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16403 CFLAGS="$xorg_testset_save_CFLAGS"
16404 fi
16405
16406 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16407 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16408 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16409 fi
16410 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16412 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16413 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16414 $as_echo_n "(cached) " >&6
16415 else
16416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16417 /* end confdefs.h. */
16418 int i;
16419 _ACEOF
16420 if ac_fn_c_try_compile "$LINENO"; then :
16421 xorg_cv_cc_flag_unused_command_line_argument=yes
16422 else
16423 xorg_cv_cc_flag_unused_command_line_argument=no
16424 fi
16425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16426 fi
16427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16428 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16429 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16430 CFLAGS="$xorg_testset_save_CFLAGS"
16431 fi
16432
16433 found="no"
16434
16435 if test $found = "no" ; then
16436 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16437 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16438 fi
16439
16440 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16441 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16442 fi
16443
16444 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
16445
16446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
16447 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
16448 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
16449 if eval \${$cacheid+:} false; then :
16450 $as_echo_n "(cached) " >&6
16451 else
16452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16453 /* end confdefs.h. */
16454 int i;
16455 int
16456 main ()
16457 {
16458
16459 ;
16460 return 0;
16461 }
16462 _ACEOF
16463 if ac_fn_c_try_link "$LINENO"; then :
16464 eval $cacheid=yes
16465 else
16466 eval $cacheid=no
16467 fi
16468 rm -f core conftest.err conftest.$ac_objext \
16469 conftest$ac_exeext conftest.$ac_ext
16470 fi
16471
16472
16473 CFLAGS="$xorg_testset_save_CFLAGS"
16474
16475 eval supported=\$$cacheid
16476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16477 $as_echo "$supported" >&6; }
16478 if test "$supported" = "yes" ; then
16479 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
16480 found="yes"
16481 fi
16482 fi
16483
16484 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
16485 else
16486 { $as_echo "$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
16487 $as_echo "$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;}
16488
16489
16490
16491
16492
16493
16494
16495
16496
16497
16498
16499
16500
16501 xorg_testset_save_CFLAGS="$CFLAGS"
16502
16503 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16504 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16506 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16507 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16508 $as_echo_n "(cached) " >&6
16509 else
16510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16511 /* end confdefs.h. */
16512 int i;
16513 _ACEOF
16514 if ac_fn_c_try_compile "$LINENO"; then :
16515 xorg_cv_cc_flag_unknown_warning_option=yes
16516 else
16517 xorg_cv_cc_flag_unknown_warning_option=no
16518 fi
16519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16520 fi
16521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16522 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16523 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16524 CFLAGS="$xorg_testset_save_CFLAGS"
16525 fi
16526
16527 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16528 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16529 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16530 fi
16531 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16533 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16534 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16535 $as_echo_n "(cached) " >&6
16536 else
16537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16538 /* end confdefs.h. */
16539 int i;
16540 _ACEOF
16541 if ac_fn_c_try_compile "$LINENO"; then :
16542 xorg_cv_cc_flag_unused_command_line_argument=yes
16543 else
16544 xorg_cv_cc_flag_unused_command_line_argument=no
16545 fi
16546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16547 fi
16548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16549 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16550 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16551 CFLAGS="$xorg_testset_save_CFLAGS"
16552 fi
16553
16554 found="no"
16555
16556 if test $found = "no" ; then
16557 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16558 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16559 fi
16560
16561 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16562 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16563 fi
16564
16565 CFLAGS="$CFLAGS -Wimplicit"
16566
16567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
16568 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
16569 cacheid=xorg_cv_cc_flag__Wimplicit
16570 if eval \${$cacheid+:} false; then :
16571 $as_echo_n "(cached) " >&6
16572 else
16573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16574 /* end confdefs.h. */
16575 int i;
16576 int
16577 main ()
16578 {
16579
16580 ;
16581 return 0;
16582 }
16583 _ACEOF
16584 if ac_fn_c_try_link "$LINENO"; then :
16585 eval $cacheid=yes
16586 else
16587 eval $cacheid=no
16588 fi
16589 rm -f core conftest.err conftest.$ac_objext \
16590 conftest$ac_exeext conftest.$ac_ext
16591 fi
16592
16593
16594 CFLAGS="$xorg_testset_save_CFLAGS"
16595
16596 eval supported=\$$cacheid
16597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16598 $as_echo "$supported" >&6; }
16599 if test "$supported" = "yes" ; then
16600 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
16601 found="yes"
16602 fi
16603 fi
16604
16605
16606
16607
16608
16609
16610
16611
16612
16613
16614
16615
16616
16617
16618
16619 xorg_testset_save_CFLAGS="$CFLAGS"
16620
16621 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16622 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16624 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16625 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16626 $as_echo_n "(cached) " >&6
16627 else
16628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16629 /* end confdefs.h. */
16630 int i;
16631 _ACEOF
16632 if ac_fn_c_try_compile "$LINENO"; then :
16633 xorg_cv_cc_flag_unknown_warning_option=yes
16634 else
16635 xorg_cv_cc_flag_unknown_warning_option=no
16636 fi
16637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16638 fi
16639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16640 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16641 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16642 CFLAGS="$xorg_testset_save_CFLAGS"
16643 fi
16644
16645 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16646 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16647 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16648 fi
16649 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16651 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16652 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16653 $as_echo_n "(cached) " >&6
16654 else
16655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16656 /* end confdefs.h. */
16657 int i;
16658 _ACEOF
16659 if ac_fn_c_try_compile "$LINENO"; then :
16660 xorg_cv_cc_flag_unused_command_line_argument=yes
16661 else
16662 xorg_cv_cc_flag_unused_command_line_argument=no
16663 fi
16664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16665 fi
16666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16667 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16668 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16669 CFLAGS="$xorg_testset_save_CFLAGS"
16670 fi
16671
16672 found="no"
16673
16674 if test $found = "no" ; then
16675 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16676 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16677 fi
16678
16679 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16680 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16681 fi
16682
16683 CFLAGS="$CFLAGS -Wnonnull"
16684
16685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
16686 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
16687 cacheid=xorg_cv_cc_flag__Wnonnull
16688 if eval \${$cacheid+:} false; then :
16689 $as_echo_n "(cached) " >&6
16690 else
16691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16692 /* end confdefs.h. */
16693 int i;
16694 int
16695 main ()
16696 {
16697
16698 ;
16699 return 0;
16700 }
16701 _ACEOF
16702 if ac_fn_c_try_link "$LINENO"; then :
16703 eval $cacheid=yes
16704 else
16705 eval $cacheid=no
16706 fi
16707 rm -f core conftest.err conftest.$ac_objext \
16708 conftest$ac_exeext conftest.$ac_ext
16709 fi
16710
16711
16712 CFLAGS="$xorg_testset_save_CFLAGS"
16713
16714 eval supported=\$$cacheid
16715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16716 $as_echo "$supported" >&6; }
16717 if test "$supported" = "yes" ; then
16718 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
16719 found="yes"
16720 fi
16721 fi
16722
16723
16724
16725
16726
16727
16728
16729
16730
16731
16732
16733
16734
16735
16736
16737 xorg_testset_save_CFLAGS="$CFLAGS"
16738
16739 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16740 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16742 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16743 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16744 $as_echo_n "(cached) " >&6
16745 else
16746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16747 /* end confdefs.h. */
16748 int i;
16749 _ACEOF
16750 if ac_fn_c_try_compile "$LINENO"; then :
16751 xorg_cv_cc_flag_unknown_warning_option=yes
16752 else
16753 xorg_cv_cc_flag_unknown_warning_option=no
16754 fi
16755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16756 fi
16757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16758 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16759 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16760 CFLAGS="$xorg_testset_save_CFLAGS"
16761 fi
16762
16763 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16764 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16765 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16766 fi
16767 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16769 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16770 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16771 $as_echo_n "(cached) " >&6
16772 else
16773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16774 /* end confdefs.h. */
16775 int i;
16776 _ACEOF
16777 if ac_fn_c_try_compile "$LINENO"; then :
16778 xorg_cv_cc_flag_unused_command_line_argument=yes
16779 else
16780 xorg_cv_cc_flag_unused_command_line_argument=no
16781 fi
16782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16783 fi
16784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16785 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16786 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16787 CFLAGS="$xorg_testset_save_CFLAGS"
16788 fi
16789
16790 found="no"
16791
16792 if test $found = "no" ; then
16793 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16794 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16795 fi
16796
16797 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16798 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16799 fi
16800
16801 CFLAGS="$CFLAGS -Winit-self"
16802
16803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
16804 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
16805 cacheid=xorg_cv_cc_flag__Winit_self
16806 if eval \${$cacheid+:} false; then :
16807 $as_echo_n "(cached) " >&6
16808 else
16809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16810 /* end confdefs.h. */
16811 int i;
16812 int
16813 main ()
16814 {
16815
16816 ;
16817 return 0;
16818 }
16819 _ACEOF
16820 if ac_fn_c_try_link "$LINENO"; then :
16821 eval $cacheid=yes
16822 else
16823 eval $cacheid=no
16824 fi
16825 rm -f core conftest.err conftest.$ac_objext \
16826 conftest$ac_exeext conftest.$ac_ext
16827 fi
16828
16829
16830 CFLAGS="$xorg_testset_save_CFLAGS"
16831
16832 eval supported=\$$cacheid
16833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16834 $as_echo "$supported" >&6; }
16835 if test "$supported" = "yes" ; then
16836 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
16837 found="yes"
16838 fi
16839 fi
16840
16841
16842
16843
16844
16845
16846
16847
16848
16849
16850
16851
16852
16853
16854
16855 xorg_testset_save_CFLAGS="$CFLAGS"
16856
16857 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16858 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16860 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16861 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16862 $as_echo_n "(cached) " >&6
16863 else
16864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16865 /* end confdefs.h. */
16866 int i;
16867 _ACEOF
16868 if ac_fn_c_try_compile "$LINENO"; then :
16869 xorg_cv_cc_flag_unknown_warning_option=yes
16870 else
16871 xorg_cv_cc_flag_unknown_warning_option=no
16872 fi
16873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16874 fi
16875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16876 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16877 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16878 CFLAGS="$xorg_testset_save_CFLAGS"
16879 fi
16880
16881 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16882 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16883 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16884 fi
16885 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16887 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16888 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16889 $as_echo_n "(cached) " >&6
16890 else
16891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16892 /* end confdefs.h. */
16893 int i;
16894 _ACEOF
16895 if ac_fn_c_try_compile "$LINENO"; then :
16896 xorg_cv_cc_flag_unused_command_line_argument=yes
16897 else
16898 xorg_cv_cc_flag_unused_command_line_argument=no
16899 fi
16900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16901 fi
16902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16903 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16904 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16905 CFLAGS="$xorg_testset_save_CFLAGS"
16906 fi
16907
16908 found="no"
16909
16910 if test $found = "no" ; then
16911 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16912 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16913 fi
16914
16915 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16916 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16917 fi
16918
16919 CFLAGS="$CFLAGS -Wmain"
16920
16921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
16922 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
16923 cacheid=xorg_cv_cc_flag__Wmain
16924 if eval \${$cacheid+:} false; then :
16925 $as_echo_n "(cached) " >&6
16926 else
16927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16928 /* end confdefs.h. */
16929 int i;
16930 int
16931 main ()
16932 {
16933
16934 ;
16935 return 0;
16936 }
16937 _ACEOF
16938 if ac_fn_c_try_link "$LINENO"; then :
16939 eval $cacheid=yes
16940 else
16941 eval $cacheid=no
16942 fi
16943 rm -f core conftest.err conftest.$ac_objext \
16944 conftest$ac_exeext conftest.$ac_ext
16945 fi
16946
16947
16948 CFLAGS="$xorg_testset_save_CFLAGS"
16949
16950 eval supported=\$$cacheid
16951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16952 $as_echo "$supported" >&6; }
16953 if test "$supported" = "yes" ; then
16954 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
16955 found="yes"
16956 fi
16957 fi
16958
16959
16960
16961
16962
16963
16964
16965
16966
16967
16968
16969
16970
16971
16972
16973 xorg_testset_save_CFLAGS="$CFLAGS"
16974
16975 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16976 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16978 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16979 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16980 $as_echo_n "(cached) " >&6
16981 else
16982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16983 /* end confdefs.h. */
16984 int i;
16985 _ACEOF
16986 if ac_fn_c_try_compile "$LINENO"; then :
16987 xorg_cv_cc_flag_unknown_warning_option=yes
16988 else
16989 xorg_cv_cc_flag_unknown_warning_option=no
16990 fi
16991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16992 fi
16993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16994 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16995 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16996 CFLAGS="$xorg_testset_save_CFLAGS"
16997 fi
16998
16999 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17000 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17001 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17002 fi
17003 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17005 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17006 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17007 $as_echo_n "(cached) " >&6
17008 else
17009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17010 /* end confdefs.h. */
17011 int i;
17012 _ACEOF
17013 if ac_fn_c_try_compile "$LINENO"; then :
17014 xorg_cv_cc_flag_unused_command_line_argument=yes
17015 else
17016 xorg_cv_cc_flag_unused_command_line_argument=no
17017 fi
17018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17019 fi
17020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17021 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17022 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17023 CFLAGS="$xorg_testset_save_CFLAGS"
17024 fi
17025
17026 found="no"
17027
17028 if test $found = "no" ; then
17029 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17030 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17031 fi
17032
17033 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17034 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17035 fi
17036
17037 CFLAGS="$CFLAGS -Wmissing-braces"
17038
17039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
17040 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
17041 cacheid=xorg_cv_cc_flag__Wmissing_braces
17042 if eval \${$cacheid+:} false; then :
17043 $as_echo_n "(cached) " >&6
17044 else
17045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17046 /* end confdefs.h. */
17047 int i;
17048 int
17049 main ()
17050 {
17051
17052 ;
17053 return 0;
17054 }
17055 _ACEOF
17056 if ac_fn_c_try_link "$LINENO"; then :
17057 eval $cacheid=yes
17058 else
17059 eval $cacheid=no
17060 fi
17061 rm -f core conftest.err conftest.$ac_objext \
17062 conftest$ac_exeext conftest.$ac_ext
17063 fi
17064
17065
17066 CFLAGS="$xorg_testset_save_CFLAGS"
17067
17068 eval supported=\$$cacheid
17069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17070 $as_echo "$supported" >&6; }
17071 if test "$supported" = "yes" ; then
17072 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
17073 found="yes"
17074 fi
17075 fi
17076
17077
17078
17079
17080
17081
17082
17083
17084
17085
17086
17087
17088
17089
17090
17091 xorg_testset_save_CFLAGS="$CFLAGS"
17092
17093 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17094 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17096 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17097 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17098 $as_echo_n "(cached) " >&6
17099 else
17100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17101 /* end confdefs.h. */
17102 int i;
17103 _ACEOF
17104 if ac_fn_c_try_compile "$LINENO"; then :
17105 xorg_cv_cc_flag_unknown_warning_option=yes
17106 else
17107 xorg_cv_cc_flag_unknown_warning_option=no
17108 fi
17109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17110 fi
17111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17112 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17113 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17114 CFLAGS="$xorg_testset_save_CFLAGS"
17115 fi
17116
17117 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17118 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17119 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17120 fi
17121 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17123 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17124 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17125 $as_echo_n "(cached) " >&6
17126 else
17127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17128 /* end confdefs.h. */
17129 int i;
17130 _ACEOF
17131 if ac_fn_c_try_compile "$LINENO"; then :
17132 xorg_cv_cc_flag_unused_command_line_argument=yes
17133 else
17134 xorg_cv_cc_flag_unused_command_line_argument=no
17135 fi
17136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17137 fi
17138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17139 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17140 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17141 CFLAGS="$xorg_testset_save_CFLAGS"
17142 fi
17143
17144 found="no"
17145
17146 if test $found = "no" ; then
17147 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17148 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17149 fi
17150
17151 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17152 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17153 fi
17154
17155 CFLAGS="$CFLAGS -Wsequence-point"
17156
17157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
17158 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
17159 cacheid=xorg_cv_cc_flag__Wsequence_point
17160 if eval \${$cacheid+:} false; then :
17161 $as_echo_n "(cached) " >&6
17162 else
17163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17164 /* end confdefs.h. */
17165 int i;
17166 int
17167 main ()
17168 {
17169
17170 ;
17171 return 0;
17172 }
17173 _ACEOF
17174 if ac_fn_c_try_link "$LINENO"; then :
17175 eval $cacheid=yes
17176 else
17177 eval $cacheid=no
17178 fi
17179 rm -f core conftest.err conftest.$ac_objext \
17180 conftest$ac_exeext conftest.$ac_ext
17181 fi
17182
17183
17184 CFLAGS="$xorg_testset_save_CFLAGS"
17185
17186 eval supported=\$$cacheid
17187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17188 $as_echo "$supported" >&6; }
17189 if test "$supported" = "yes" ; then
17190 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
17191 found="yes"
17192 fi
17193 fi
17194
17195
17196
17197
17198
17199
17200
17201
17202
17203
17204
17205
17206
17207
17208
17209 xorg_testset_save_CFLAGS="$CFLAGS"
17210
17211 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17212 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17214 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17215 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17216 $as_echo_n "(cached) " >&6
17217 else
17218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17219 /* end confdefs.h. */
17220 int i;
17221 _ACEOF
17222 if ac_fn_c_try_compile "$LINENO"; then :
17223 xorg_cv_cc_flag_unknown_warning_option=yes
17224 else
17225 xorg_cv_cc_flag_unknown_warning_option=no
17226 fi
17227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17228 fi
17229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17230 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17231 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17232 CFLAGS="$xorg_testset_save_CFLAGS"
17233 fi
17234
17235 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17236 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17237 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17238 fi
17239 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17241 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17242 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17243 $as_echo_n "(cached) " >&6
17244 else
17245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17246 /* end confdefs.h. */
17247 int i;
17248 _ACEOF
17249 if ac_fn_c_try_compile "$LINENO"; then :
17250 xorg_cv_cc_flag_unused_command_line_argument=yes
17251 else
17252 xorg_cv_cc_flag_unused_command_line_argument=no
17253 fi
17254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17255 fi
17256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17257 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17258 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17259 CFLAGS="$xorg_testset_save_CFLAGS"
17260 fi
17261
17262 found="no"
17263
17264 if test $found = "no" ; then
17265 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17266 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17267 fi
17268
17269 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17270 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17271 fi
17272
17273 CFLAGS="$CFLAGS -Wreturn-type"
17274
17275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
17276 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
17277 cacheid=xorg_cv_cc_flag__Wreturn_type
17278 if eval \${$cacheid+:} false; then :
17279 $as_echo_n "(cached) " >&6
17280 else
17281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17282 /* end confdefs.h. */
17283 int i;
17284 int
17285 main ()
17286 {
17287
17288 ;
17289 return 0;
17290 }
17291 _ACEOF
17292 if ac_fn_c_try_link "$LINENO"; then :
17293 eval $cacheid=yes
17294 else
17295 eval $cacheid=no
17296 fi
17297 rm -f core conftest.err conftest.$ac_objext \
17298 conftest$ac_exeext conftest.$ac_ext
17299 fi
17300
17301
17302 CFLAGS="$xorg_testset_save_CFLAGS"
17303
17304 eval supported=\$$cacheid
17305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17306 $as_echo "$supported" >&6; }
17307 if test "$supported" = "yes" ; then
17308 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
17309 found="yes"
17310 fi
17311 fi
17312
17313
17314
17315
17316
17317
17318
17319
17320
17321
17322
17323
17324
17325
17326
17327 xorg_testset_save_CFLAGS="$CFLAGS"
17328
17329 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17330 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17332 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17333 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17334 $as_echo_n "(cached) " >&6
17335 else
17336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17337 /* end confdefs.h. */
17338 int i;
17339 _ACEOF
17340 if ac_fn_c_try_compile "$LINENO"; then :
17341 xorg_cv_cc_flag_unknown_warning_option=yes
17342 else
17343 xorg_cv_cc_flag_unknown_warning_option=no
17344 fi
17345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17346 fi
17347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17348 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17349 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17350 CFLAGS="$xorg_testset_save_CFLAGS"
17351 fi
17352
17353 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17354 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17355 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17356 fi
17357 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17359 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17360 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17361 $as_echo_n "(cached) " >&6
17362 else
17363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17364 /* end confdefs.h. */
17365 int i;
17366 _ACEOF
17367 if ac_fn_c_try_compile "$LINENO"; then :
17368 xorg_cv_cc_flag_unused_command_line_argument=yes
17369 else
17370 xorg_cv_cc_flag_unused_command_line_argument=no
17371 fi
17372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17373 fi
17374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17375 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17376 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17377 CFLAGS="$xorg_testset_save_CFLAGS"
17378 fi
17379
17380 found="no"
17381
17382 if test $found = "no" ; then
17383 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17384 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17385 fi
17386
17387 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17388 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17389 fi
17390
17391 CFLAGS="$CFLAGS -Wtrigraphs"
17392
17393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
17394 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
17395 cacheid=xorg_cv_cc_flag__Wtrigraphs
17396 if eval \${$cacheid+:} false; then :
17397 $as_echo_n "(cached) " >&6
17398 else
17399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17400 /* end confdefs.h. */
17401 int i;
17402 int
17403 main ()
17404 {
17405
17406 ;
17407 return 0;
17408 }
17409 _ACEOF
17410 if ac_fn_c_try_link "$LINENO"; then :
17411 eval $cacheid=yes
17412 else
17413 eval $cacheid=no
17414 fi
17415 rm -f core conftest.err conftest.$ac_objext \
17416 conftest$ac_exeext conftest.$ac_ext
17417 fi
17418
17419
17420 CFLAGS="$xorg_testset_save_CFLAGS"
17421
17422 eval supported=\$$cacheid
17423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17424 $as_echo "$supported" >&6; }
17425 if test "$supported" = "yes" ; then
17426 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
17427 found="yes"
17428 fi
17429 fi
17430
17431
17432
17433
17434
17435
17436
17437
17438
17439
17440
17441
17442
17443
17444
17445 xorg_testset_save_CFLAGS="$CFLAGS"
17446
17447 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17448 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17450 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17451 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17452 $as_echo_n "(cached) " >&6
17453 else
17454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17455 /* end confdefs.h. */
17456 int i;
17457 _ACEOF
17458 if ac_fn_c_try_compile "$LINENO"; then :
17459 xorg_cv_cc_flag_unknown_warning_option=yes
17460 else
17461 xorg_cv_cc_flag_unknown_warning_option=no
17462 fi
17463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17464 fi
17465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17466 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17467 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17468 CFLAGS="$xorg_testset_save_CFLAGS"
17469 fi
17470
17471 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17472 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17473 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17474 fi
17475 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17477 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17478 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17479 $as_echo_n "(cached) " >&6
17480 else
17481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17482 /* end confdefs.h. */
17483 int i;
17484 _ACEOF
17485 if ac_fn_c_try_compile "$LINENO"; then :
17486 xorg_cv_cc_flag_unused_command_line_argument=yes
17487 else
17488 xorg_cv_cc_flag_unused_command_line_argument=no
17489 fi
17490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17491 fi
17492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17493 $as_echo "$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 -Warray-bounds"
17510
17511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
17512 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
17513 cacheid=xorg_cv_cc_flag__Warray_bounds
17514 if eval \${$cacheid+:} false; then :
17515 $as_echo_n "(cached) " >&6
17516 else
17517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17518 /* end confdefs.h. */
17519 int i;
17520 int
17521 main ()
17522 {
17523
17524 ;
17525 return 0;
17526 }
17527 _ACEOF
17528 if ac_fn_c_try_link "$LINENO"; then :
17529 eval $cacheid=yes
17530 else
17531 eval $cacheid=no
17532 fi
17533 rm -f core conftest.err conftest.$ac_objext \
17534 conftest$ac_exeext conftest.$ac_ext
17535 fi
17536
17537
17538 CFLAGS="$xorg_testset_save_CFLAGS"
17539
17540 eval supported=\$$cacheid
17541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17542 $as_echo "$supported" >&6; }
17543 if test "$supported" = "yes" ; then
17544 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
17545 found="yes"
17546 fi
17547 fi
17548
17549
17550
17551
17552
17553
17554
17555
17556
17557
17558
17559
17560
17561
17562
17563 xorg_testset_save_CFLAGS="$CFLAGS"
17564
17565 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17566 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17568 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17569 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17570 $as_echo_n "(cached) " >&6
17571 else
17572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17573 /* end confdefs.h. */
17574 int i;
17575 _ACEOF
17576 if ac_fn_c_try_compile "$LINENO"; then :
17577 xorg_cv_cc_flag_unknown_warning_option=yes
17578 else
17579 xorg_cv_cc_flag_unknown_warning_option=no
17580 fi
17581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17582 fi
17583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17584 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17585 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17586 CFLAGS="$xorg_testset_save_CFLAGS"
17587 fi
17588
17589 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17590 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17591 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17592 fi
17593 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17595 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17596 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17597 $as_echo_n "(cached) " >&6
17598 else
17599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17600 /* end confdefs.h. */
17601 int i;
17602 _ACEOF
17603 if ac_fn_c_try_compile "$LINENO"; then :
17604 xorg_cv_cc_flag_unused_command_line_argument=yes
17605 else
17606 xorg_cv_cc_flag_unused_command_line_argument=no
17607 fi
17608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17609 fi
17610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17611 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17612 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17613 CFLAGS="$xorg_testset_save_CFLAGS"
17614 fi
17615
17616 found="no"
17617
17618 if test $found = "no" ; then
17619 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17620 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17621 fi
17622
17623 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17624 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17625 fi
17626
17627 CFLAGS="$CFLAGS -Wwrite-strings"
17628
17629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
17630 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
17631 cacheid=xorg_cv_cc_flag__Wwrite_strings
17632 if eval \${$cacheid+:} false; then :
17633 $as_echo_n "(cached) " >&6
17634 else
17635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17636 /* end confdefs.h. */
17637 int i;
17638 int
17639 main ()
17640 {
17641
17642 ;
17643 return 0;
17644 }
17645 _ACEOF
17646 if ac_fn_c_try_link "$LINENO"; then :
17647 eval $cacheid=yes
17648 else
17649 eval $cacheid=no
17650 fi
17651 rm -f core conftest.err conftest.$ac_objext \
17652 conftest$ac_exeext conftest.$ac_ext
17653 fi
17654
17655
17656 CFLAGS="$xorg_testset_save_CFLAGS"
17657
17658 eval supported=\$$cacheid
17659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17660 $as_echo "$supported" >&6; }
17661 if test "$supported" = "yes" ; then
17662 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
17663 found="yes"
17664 fi
17665 fi
17666
17667
17668
17669
17670
17671
17672
17673
17674
17675
17676
17677
17678
17679
17680
17681 xorg_testset_save_CFLAGS="$CFLAGS"
17682
17683 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17684 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17686 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17687 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17688 $as_echo_n "(cached) " >&6
17689 else
17690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17691 /* end confdefs.h. */
17692 int i;
17693 _ACEOF
17694 if ac_fn_c_try_compile "$LINENO"; then :
17695 xorg_cv_cc_flag_unknown_warning_option=yes
17696 else
17697 xorg_cv_cc_flag_unknown_warning_option=no
17698 fi
17699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17700 fi
17701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17702 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17703 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17704 CFLAGS="$xorg_testset_save_CFLAGS"
17705 fi
17706
17707 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17708 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17709 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17710 fi
17711 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17713 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17714 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17715 $as_echo_n "(cached) " >&6
17716 else
17717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17718 /* end confdefs.h. */
17719 int i;
17720 _ACEOF
17721 if ac_fn_c_try_compile "$LINENO"; then :
17722 xorg_cv_cc_flag_unused_command_line_argument=yes
17723 else
17724 xorg_cv_cc_flag_unused_command_line_argument=no
17725 fi
17726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17727 fi
17728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17729 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17730 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17731 CFLAGS="$xorg_testset_save_CFLAGS"
17732 fi
17733
17734 found="no"
17735
17736 if test $found = "no" ; then
17737 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17738 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17739 fi
17740
17741 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17742 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17743 fi
17744
17745 CFLAGS="$CFLAGS -Waddress"
17746
17747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
17748 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
17749 cacheid=xorg_cv_cc_flag__Waddress
17750 if eval \${$cacheid+:} false; then :
17751 $as_echo_n "(cached) " >&6
17752 else
17753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17754 /* end confdefs.h. */
17755 int i;
17756 int
17757 main ()
17758 {
17759
17760 ;
17761 return 0;
17762 }
17763 _ACEOF
17764 if ac_fn_c_try_link "$LINENO"; then :
17765 eval $cacheid=yes
17766 else
17767 eval $cacheid=no
17768 fi
17769 rm -f core conftest.err conftest.$ac_objext \
17770 conftest$ac_exeext conftest.$ac_ext
17771 fi
17772
17773
17774 CFLAGS="$xorg_testset_save_CFLAGS"
17775
17776 eval supported=\$$cacheid
17777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17778 $as_echo "$supported" >&6; }
17779 if test "$supported" = "yes" ; then
17780 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
17781 found="yes"
17782 fi
17783 fi
17784
17785
17786
17787
17788
17789
17790
17791
17792
17793
17794
17795
17796
17797
17798
17799 xorg_testset_save_CFLAGS="$CFLAGS"
17800
17801 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17802 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17804 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17805 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17806 $as_echo_n "(cached) " >&6
17807 else
17808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17809 /* end confdefs.h. */
17810 int i;
17811 _ACEOF
17812 if ac_fn_c_try_compile "$LINENO"; then :
17813 xorg_cv_cc_flag_unknown_warning_option=yes
17814 else
17815 xorg_cv_cc_flag_unknown_warning_option=no
17816 fi
17817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17818 fi
17819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17820 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17821 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17822 CFLAGS="$xorg_testset_save_CFLAGS"
17823 fi
17824
17825 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17826 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17827 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17828 fi
17829 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17831 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17832 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17833 $as_echo_n "(cached) " >&6
17834 else
17835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17836 /* end confdefs.h. */
17837 int i;
17838 _ACEOF
17839 if ac_fn_c_try_compile "$LINENO"; then :
17840 xorg_cv_cc_flag_unused_command_line_argument=yes
17841 else
17842 xorg_cv_cc_flag_unused_command_line_argument=no
17843 fi
17844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17845 fi
17846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17847 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17848 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17849 CFLAGS="$xorg_testset_save_CFLAGS"
17850 fi
17851
17852 found="no"
17853
17854 if test $found = "no" ; then
17855 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17856 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17857 fi
17858
17859 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17860 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17861 fi
17862
17863 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
17864
17865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
17866 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
17867 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
17868 if eval \${$cacheid+:} false; then :
17869 $as_echo_n "(cached) " >&6
17870 else
17871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17872 /* end confdefs.h. */
17873 int i;
17874 int
17875 main ()
17876 {
17877
17878 ;
17879 return 0;
17880 }
17881 _ACEOF
17882 if ac_fn_c_try_link "$LINENO"; then :
17883 eval $cacheid=yes
17884 else
17885 eval $cacheid=no
17886 fi
17887 rm -f core conftest.err conftest.$ac_objext \
17888 conftest$ac_exeext conftest.$ac_ext
17889 fi
17890
17891
17892 CFLAGS="$xorg_testset_save_CFLAGS"
17893
17894 eval supported=\$$cacheid
17895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17896 $as_echo "$supported" >&6; }
17897 if test "$supported" = "yes" ; then
17898 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
17899 found="yes"
17900 fi
17901 fi
17902
17903
17904
17905
17906
17907
17908
17909
17910
17911
17912
17913
17914
17915
17916
17917 xorg_testset_save_CFLAGS="$CFLAGS"
17918
17919 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17920 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17922 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17923 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17924 $as_echo_n "(cached) " >&6
17925 else
17926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17927 /* end confdefs.h. */
17928 int i;
17929 _ACEOF
17930 if ac_fn_c_try_compile "$LINENO"; then :
17931 xorg_cv_cc_flag_unknown_warning_option=yes
17932 else
17933 xorg_cv_cc_flag_unknown_warning_option=no
17934 fi
17935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17936 fi
17937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17938 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17939 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17940 CFLAGS="$xorg_testset_save_CFLAGS"
17941 fi
17942
17943 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17944 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17945 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17946 fi
17947 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17949 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17950 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17951 $as_echo_n "(cached) " >&6
17952 else
17953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17954 /* end confdefs.h. */
17955 int i;
17956 _ACEOF
17957 if ac_fn_c_try_compile "$LINENO"; then :
17958 xorg_cv_cc_flag_unused_command_line_argument=yes
17959 else
17960 xorg_cv_cc_flag_unused_command_line_argument=no
17961 fi
17962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17963 fi
17964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17965 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17966 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17967 CFLAGS="$xorg_testset_save_CFLAGS"
17968 fi
17969
17970 found="no"
17971
17972 if test $found = "no" ; then
17973 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17974 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17975 fi
17976
17977 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17978 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17979 fi
17980
17981 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
17982
17983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
17984 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
17985 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
17986 if eval \${$cacheid+:} false; then :
17987 $as_echo_n "(cached) " >&6
17988 else
17989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17990 /* end confdefs.h. */
17991 int i;
17992 int
17993 main ()
17994 {
17995
17996 ;
17997 return 0;
17998 }
17999 _ACEOF
18000 if ac_fn_c_try_link "$LINENO"; then :
18001 eval $cacheid=yes
18002 else
18003 eval $cacheid=no
18004 fi
18005 rm -f core conftest.err conftest.$ac_objext \
18006 conftest$ac_exeext conftest.$ac_ext
18007 fi
18008
18009
18010 CFLAGS="$xorg_testset_save_CFLAGS"
18011
18012 eval supported=\$$cacheid
18013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18014 $as_echo "$supported" >&6; }
18015 if test "$supported" = "yes" ; then
18016 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
18017 found="yes"
18018 fi
18019 fi
18020
18021
18022 fi
18023
18024
18025
18026
18027
18028
18029
18030 CWARNFLAGS="$BASE_CFLAGS"
18031 if test "x$GCC" = xyes ; then
18032 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
18033 fi
18034
18035
18036
18037
18038
18039
18040
18041
18042 # Check whether --enable-strict-compilation was given.
18043 if test "${enable_strict_compilation+set}" = set; then :
18044 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
18045 else
18046 STRICT_COMPILE=no
18047 fi
18048
18049
18050
18051
18052
18053
18054 STRICT_CFLAGS=""
18055
18056
18057
18058
18059
18060
18061
18062
18063
18064
18065
18066
18067
18068 xorg_testset_save_CFLAGS="$CFLAGS"
18069
18070 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18071 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18073 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18074 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
18075 $as_echo_n "(cached) " >&6
18076 else
18077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18078 /* end confdefs.h. */
18079 int i;
18080 _ACEOF
18081 if ac_fn_c_try_compile "$LINENO"; then :
18082 xorg_cv_cc_flag_unknown_warning_option=yes
18083 else
18084 xorg_cv_cc_flag_unknown_warning_option=no
18085 fi
18086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18087 fi
18088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18089 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18090 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18091 CFLAGS="$xorg_testset_save_CFLAGS"
18092 fi
18093
18094 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18095 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18096 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18097 fi
18098 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18100 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18101 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18102 $as_echo_n "(cached) " >&6
18103 else
18104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18105 /* end confdefs.h. */
18106 int i;
18107 _ACEOF
18108 if ac_fn_c_try_compile "$LINENO"; then :
18109 xorg_cv_cc_flag_unused_command_line_argument=yes
18110 else
18111 xorg_cv_cc_flag_unused_command_line_argument=no
18112 fi
18113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18114 fi
18115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18116 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18117 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18118 CFLAGS="$xorg_testset_save_CFLAGS"
18119 fi
18120
18121 found="no"
18122
18123 if test $found = "no" ; then
18124 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18125 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18126 fi
18127
18128 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18129 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18130 fi
18131
18132 CFLAGS="$CFLAGS -pedantic"
18133
18134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
18135 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
18136 cacheid=xorg_cv_cc_flag__pedantic
18137 if eval \${$cacheid+:} false; then :
18138 $as_echo_n "(cached) " >&6
18139 else
18140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18141 /* end confdefs.h. */
18142 int i;
18143 int
18144 main ()
18145 {
18146
18147 ;
18148 return 0;
18149 }
18150 _ACEOF
18151 if ac_fn_c_try_link "$LINENO"; then :
18152 eval $cacheid=yes
18153 else
18154 eval $cacheid=no
18155 fi
18156 rm -f core conftest.err conftest.$ac_objext \
18157 conftest$ac_exeext conftest.$ac_ext
18158 fi
18159
18160
18161 CFLAGS="$xorg_testset_save_CFLAGS"
18162
18163 eval supported=\$$cacheid
18164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18165 $as_echo "$supported" >&6; }
18166 if test "$supported" = "yes" ; then
18167 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
18168 found="yes"
18169 fi
18170 fi
18171
18172
18173
18174
18175
18176
18177
18178
18179
18180
18181
18182
18183
18184
18185
18186 xorg_testset_save_CFLAGS="$CFLAGS"
18187
18188 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18189 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18191 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18192 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
18193 $as_echo_n "(cached) " >&6
18194 else
18195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18196 /* end confdefs.h. */
18197 int i;
18198 _ACEOF
18199 if ac_fn_c_try_compile "$LINENO"; then :
18200 xorg_cv_cc_flag_unknown_warning_option=yes
18201 else
18202 xorg_cv_cc_flag_unknown_warning_option=no
18203 fi
18204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18205 fi
18206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18207 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18208 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18209 CFLAGS="$xorg_testset_save_CFLAGS"
18210 fi
18211
18212 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18213 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18214 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18215 fi
18216 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18218 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18219 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18220 $as_echo_n "(cached) " >&6
18221 else
18222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18223 /* end confdefs.h. */
18224 int i;
18225 _ACEOF
18226 if ac_fn_c_try_compile "$LINENO"; then :
18227 xorg_cv_cc_flag_unused_command_line_argument=yes
18228 else
18229 xorg_cv_cc_flag_unused_command_line_argument=no
18230 fi
18231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18232 fi
18233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18234 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18235 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18236 CFLAGS="$xorg_testset_save_CFLAGS"
18237 fi
18238
18239 found="no"
18240
18241 if test $found = "no" ; then
18242 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18243 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18244 fi
18245
18246 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18247 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18248 fi
18249
18250 CFLAGS="$CFLAGS -Werror"
18251
18252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
18253 $as_echo_n "checking if $CC supports -Werror... " >&6; }
18254 cacheid=xorg_cv_cc_flag__Werror
18255 if eval \${$cacheid+:} false; then :
18256 $as_echo_n "(cached) " >&6
18257 else
18258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18259 /* end confdefs.h. */
18260 int i;
18261 int
18262 main ()
18263 {
18264
18265 ;
18266 return 0;
18267 }
18268 _ACEOF
18269 if ac_fn_c_try_link "$LINENO"; then :
18270 eval $cacheid=yes
18271 else
18272 eval $cacheid=no
18273 fi
18274 rm -f core conftest.err conftest.$ac_objext \
18275 conftest$ac_exeext conftest.$ac_ext
18276 fi
18277
18278
18279 CFLAGS="$xorg_testset_save_CFLAGS"
18280
18281 eval supported=\$$cacheid
18282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18283 $as_echo "$supported" >&6; }
18284 if test "$supported" = "yes" ; then
18285 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
18286 found="yes"
18287 fi
18288 fi
18289
18290 if test $found = "no" ; then
18291 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18292 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18293 fi
18294
18295 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18296 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18297 fi
18298
18299 CFLAGS="$CFLAGS -errwarn"
18300
18301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
18302 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
18303 cacheid=xorg_cv_cc_flag__errwarn
18304 if eval \${$cacheid+:} false; then :
18305 $as_echo_n "(cached) " >&6
18306 else
18307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18308 /* end confdefs.h. */
18309 int i;
18310 int
18311 main ()
18312 {
18313
18314 ;
18315 return 0;
18316 }
18317 _ACEOF
18318 if ac_fn_c_try_link "$LINENO"; then :
18319 eval $cacheid=yes
18320 else
18321 eval $cacheid=no
18322 fi
18323 rm -f core conftest.err conftest.$ac_objext \
18324 conftest$ac_exeext conftest.$ac_ext
18325 fi
18326
18327
18328 CFLAGS="$xorg_testset_save_CFLAGS"
18329
18330 eval supported=\$$cacheid
18331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18332 $as_echo "$supported" >&6; }
18333 if test "$supported" = "yes" ; then
18334 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
18335 found="yes"
18336 fi
18337 fi
18338
18339
18340
18341 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
18342 # activate it with -Werror, so we add it here explicitly.
18343
18344
18345
18346
18347
18348
18349
18350
18351
18352
18353
18354
18355
18356 xorg_testset_save_CFLAGS="$CFLAGS"
18357
18358 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18359 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18361 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18362 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
18363 $as_echo_n "(cached) " >&6
18364 else
18365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18366 /* end confdefs.h. */
18367 int i;
18368 _ACEOF
18369 if ac_fn_c_try_compile "$LINENO"; then :
18370 xorg_cv_cc_flag_unknown_warning_option=yes
18371 else
18372 xorg_cv_cc_flag_unknown_warning_option=no
18373 fi
18374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18375 fi
18376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18377 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18378 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18379 CFLAGS="$xorg_testset_save_CFLAGS"
18380 fi
18381
18382 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18383 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18384 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18385 fi
18386 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18388 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18389 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18390 $as_echo_n "(cached) " >&6
18391 else
18392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18393 /* end confdefs.h. */
18394 int i;
18395 _ACEOF
18396 if ac_fn_c_try_compile "$LINENO"; then :
18397 xorg_cv_cc_flag_unused_command_line_argument=yes
18398 else
18399 xorg_cv_cc_flag_unused_command_line_argument=no
18400 fi
18401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18402 fi
18403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18404 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18405 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18406 CFLAGS="$xorg_testset_save_CFLAGS"
18407 fi
18408
18409 found="no"
18410
18411 if test $found = "no" ; then
18412 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18413 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18414 fi
18415
18416 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18417 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18418 fi
18419
18420 CFLAGS="$CFLAGS -Werror=attributes"
18421
18422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
18423 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
18424 cacheid=xorg_cv_cc_flag__Werror_attributes
18425 if eval \${$cacheid+:} false; then :
18426 $as_echo_n "(cached) " >&6
18427 else
18428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18429 /* end confdefs.h. */
18430 int i;
18431 int
18432 main ()
18433 {
18434
18435 ;
18436 return 0;
18437 }
18438 _ACEOF
18439 if ac_fn_c_try_link "$LINENO"; then :
18440 eval $cacheid=yes
18441 else
18442 eval $cacheid=no
18443 fi
18444 rm -f core conftest.err conftest.$ac_objext \
18445 conftest$ac_exeext conftest.$ac_ext
18446 fi
18447
18448
18449 CFLAGS="$xorg_testset_save_CFLAGS"
18450
18451 eval supported=\$$cacheid
18452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18453 $as_echo "$supported" >&6; }
18454 if test "$supported" = "yes" ; then
18455 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
18456 found="yes"
18457 fi
18458 fi
18459
18460
18461
18462 if test "x$STRICT_COMPILE" = "xyes"; then
18463 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
18464 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
18465 fi
18466
18467
18468
18469
18470
18471
18472 cat >>confdefs.h <<_ACEOF
18473 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
18474 _ACEOF
18475
18476 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
18477 if test "x$PVM" = "x"; then
18478 PVM="0"
18479 fi
18480
18481 cat >>confdefs.h <<_ACEOF
18482 #define PACKAGE_VERSION_MINOR $PVM
18483 _ACEOF
18484
18485 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
18486 if test "x$PVP" = "x"; then
18487 PVP="0"
18488 fi
18489
18490 cat >>confdefs.h <<_ACEOF
18491 #define PACKAGE_VERSION_PATCHLEVEL $PVP
18492 _ACEOF
18493
18494
18495
18496 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
18497 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
18498 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
18499 echo 'git directory not found: installing possibly empty changelog.' >&2)"
18500
18501
18502
18503
18504 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
18505 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
18506 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
18507 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
18508 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
18509
18510
18511
18512
18513
18514
18515 if test x$APP_MAN_SUFFIX = x ; then
18516 APP_MAN_SUFFIX=1
18517 fi
18518 if test x$APP_MAN_DIR = x ; then
18519 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
18520 fi
18521
18522 if test x$LIB_MAN_SUFFIX = x ; then
18523 LIB_MAN_SUFFIX=3
18524 fi
18525 if test x$LIB_MAN_DIR = x ; then
18526 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
18527 fi
18528
18529 if test x$FILE_MAN_SUFFIX = x ; then
18530 case $host_os in
18531 # Solaris 2.0 - 11 use SysV man page sections
18532 solaris2.?|solaris2.1[01]) FILE_MAN_SUFFIX=4 ;;
18533 *) FILE_MAN_SUFFIX=5 ;;
18534 esac
18535 fi
18536 if test x$FILE_MAN_DIR = x ; then
18537 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
18538 fi
18539
18540 if test x$MISC_MAN_SUFFIX = x ; then
18541 case $host_os in
18542 # Solaris 2.0 - 11 use SysV man page sections
18543 solaris2.?|solaris2.1[01]) MISC_MAN_SUFFIX=5 ;;
18544 *) MISC_MAN_SUFFIX=7 ;;
18545 esac
18546 fi
18547 if test x$MISC_MAN_DIR = x ; then
18548 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
18549 fi
18550
18551 if test x$DRIVER_MAN_SUFFIX = x ; then
18552 case $host_os in
18553 # Solaris 2.0 - 11 use SysV man page sections
18554 solaris2.?|solaris2.1[01]) DRIVER_MAN_SUFFIX=7 ;;
18555 *) DRIVER_MAN_SUFFIX=4 ;;
18556 esac
18557 fi
18558 if test x$DRIVER_MAN_DIR = x ; then
18559 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
18560 fi
18561
18562 if test x$ADMIN_MAN_SUFFIX = x ; then
18563 case $host_os in
18564 # Solaris 2.0 - 11 use SysV man page sections
18565 solaris2.?|solaris2.1[01]) ADMIN_MAN_SUFFIX=1m ;;
18566 *) ADMIN_MAN_SUFFIX=8 ;;
18567 esac
18568 fi
18569 if test x$ADMIN_MAN_DIR = x ; then
18570 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
18571 fi
18572
18573
18574
18575
18576
18577
18578
18579
18580
18581
18582
18583
18584
18585
18586
18587 XORG_MAN_PAGE="X Version 11"
18588
18589 MAN_SUBSTS="\
18590 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
18591 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
18592 -e 's|__xservername__|Xorg|g' \
18593 -e 's|__xconfigfile__|xorg.conf|g' \
18594 -e 's|__projectroot__|\$(prefix)|g' \
18595 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
18596 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
18597 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
18598 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
18599 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
18600 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
18601 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
18602
18603
18604
18605 # Check whether --enable-silent-rules was given.
18606 if test "${enable_silent_rules+set}" = set; then :
18607 enableval=$enable_silent_rules;
18608 fi
18609
18610 case $enable_silent_rules in # (((
18611 yes) AM_DEFAULT_VERBOSITY=0;;
18612 no) AM_DEFAULT_VERBOSITY=1;;
18613 *) AM_DEFAULT_VERBOSITY=0;;
18614 esac
18615 am_make=${MAKE-make}
18616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
18617 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
18618 if ${am_cv_make_support_nested_variables+:} false; then :
18619 $as_echo_n "(cached) " >&6
18620 else
18621 if $as_echo 'TRUE=$(BAR$(V))
18622 BAR0=false
18623 BAR1=true
18624 V=1
18625 am__doit:
18626 @$(TRUE)
18627 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
18628 am_cv_make_support_nested_variables=yes
18629 else
18630 am_cv_make_support_nested_variables=no
18631 fi
18632 fi
18633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
18634 $as_echo "$am_cv_make_support_nested_variables" >&6; }
18635 if test $am_cv_make_support_nested_variables = yes; then
18636 AM_V='$(V)'
18637 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
18638 else
18639 AM_V=$AM_DEFAULT_VERBOSITY
18640 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
18641 fi
18642 AM_BACKSLASH='\'
18643
18644
18645
18646
18647 # Check whether --enable-docs was given.
18648 if test "${enable_docs+set}" = set; then :
18649 enableval=$enable_docs; build_docs=$enableval
18650 else
18651 build_docs=yes
18652 fi
18653
18654
18655 if test x$build_docs = xyes; then
18656 ENABLE_DOCS_TRUE=
18657 ENABLE_DOCS_FALSE='#'
18658 else
18659 ENABLE_DOCS_TRUE='#'
18660 ENABLE_DOCS_FALSE=
18661 fi
18662
18663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build documentation" >&5
18664 $as_echo_n "checking whether to build documentation... " >&6; }
18665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_docs" >&5
18666 $as_echo "$build_docs" >&6; }
18667
18668
18669
18670 # Check whether --enable-specs was given.
18671 if test "${enable_specs+set}" = set; then :
18672 enableval=$enable_specs; build_specs=$enableval
18673 else
18674 build_specs=yes
18675 fi
18676
18677
18678 if test x$build_specs = xyes; then
18679 ENABLE_SPECS_TRUE=
18680 ENABLE_SPECS_FALSE='#'
18681 else
18682 ENABLE_SPECS_TRUE='#'
18683 ENABLE_SPECS_FALSE=
18684 fi
18685
18686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build functional specifications" >&5
18687 $as_echo_n "checking whether to build functional specifications... " >&6; }
18688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_specs" >&5
18689 $as_echo "$build_specs" >&6; }
18690
18691
18692
18693
18694
18695 # Check whether --with-xmlto was given.
18696 if test "${with_xmlto+set}" = set; then :
18697 withval=$with_xmlto; use_xmlto=$withval
18698 else
18699 use_xmlto=auto
18700 fi
18701
18702
18703
18704 if test "x$use_xmlto" = x"auto"; then
18705 # Extract the first word of "xmlto", so it can be a program name with args.
18706 set dummy xmlto; ac_word=$2
18707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18708 $as_echo_n "checking for $ac_word... " >&6; }
18709 if ${ac_cv_path_XMLTO+:} false; then :
18710 $as_echo_n "(cached) " >&6
18711 else
18712 case $XMLTO in
18713 [\\/]* | ?:[\\/]*)
18714 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
18715 ;;
18716 *)
18717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18718 for as_dir in $PATH
18719 do
18720 IFS=$as_save_IFS
18721 test -z "$as_dir" && as_dir=.
18722 for ac_exec_ext in '' $ac_executable_extensions; do
18723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18724 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
18725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18726 break 2
18727 fi
18728 done
18729 done
18730 IFS=$as_save_IFS
18731
18732 ;;
18733 esac
18734 fi
18735 XMLTO=$ac_cv_path_XMLTO
18736 if test -n "$XMLTO"; then
18737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
18738 $as_echo "$XMLTO" >&6; }
18739 else
18740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18741 $as_echo "no" >&6; }
18742 fi
18743
18744
18745 if test "x$XMLTO" = "x"; then
18746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5
18747 $as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;}
18748 have_xmlto=no
18749 else
18750 have_xmlto=yes
18751 fi
18752 elif test "x$use_xmlto" = x"yes" ; then
18753 # Extract the first word of "xmlto", so it can be a program name with args.
18754 set dummy xmlto; ac_word=$2
18755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18756 $as_echo_n "checking for $ac_word... " >&6; }
18757 if ${ac_cv_path_XMLTO+:} false; then :
18758 $as_echo_n "(cached) " >&6
18759 else
18760 case $XMLTO in
18761 [\\/]* | ?:[\\/]*)
18762 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
18763 ;;
18764 *)
18765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18766 for as_dir in $PATH
18767 do
18768 IFS=$as_save_IFS
18769 test -z "$as_dir" && as_dir=.
18770 for ac_exec_ext in '' $ac_executable_extensions; do
18771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18772 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
18773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18774 break 2
18775 fi
18776 done
18777 done
18778 IFS=$as_save_IFS
18779
18780 ;;
18781 esac
18782 fi
18783 XMLTO=$ac_cv_path_XMLTO
18784 if test -n "$XMLTO"; then
18785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
18786 $as_echo "$XMLTO" >&6; }
18787 else
18788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18789 $as_echo "no" >&6; }
18790 fi
18791
18792
18793 if test "x$XMLTO" = "x"; then
18794 as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5
18795 fi
18796 have_xmlto=yes
18797 elif test "x$use_xmlto" = x"no" ; then
18798 if test "x$XMLTO" != "x"; then
18799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5
18800 $as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;}
18801 fi
18802 have_xmlto=no
18803 else
18804 as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5
18805 fi
18806
18807 # Test for a minimum version of xmlto, if provided.
18808 if test "$have_xmlto" = yes; then
18809 # scrape the xmlto version
18810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5
18811 $as_echo_n "checking the xmlto version... " >&6; }
18812 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3`
18813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5
18814 $as_echo "$xmlto_version" >&6; }
18815 as_arg_v1=$xmlto_version
18816 as_arg_v2=0.0.22
18817 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
18818 case $? in #(
18819 1) :
18820 if test "x$use_xmlto" = xauto; then
18821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5
18822 $as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;}
18823 have_xmlto=no
18824 else
18825 as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5
18826 fi ;; #(
18827 0) :
18828 ;; #(
18829 2) :
18830 ;; #(
18831 *) :
18832 ;;
18833 esac
18834 fi
18835
18836 # Test for the ability of xmlto to generate a text target
18837 #
18838 # NOTE: xmlto 0.0.27 or higher return a non-zero return code in the
18839 # following test for empty XML docbook files.
18840 # For compatibility reasons use the following empty XML docbook file and if
18841 # it fails try it again with a non-empty XML file.
18842 have_xmlto_text=no
18843 cat > conftest.xml << "EOF"
18844 EOF
18845 if test "$have_xmlto" = yes; then :
18846 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then :
18847 have_xmlto_text=yes
18848 else
18849 # Try it again with a non-empty XML file.
18850 cat > conftest.xml << "EOF"
18851 <x></x>
18852 EOF
18853 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then :
18854 have_xmlto_text=yes
18855 else
18856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5
18857 $as_echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;}
18858 fi
18859 fi
18860 fi
18861 rm -f conftest.xml
18862 if test $have_xmlto_text = yes; then
18863 HAVE_XMLTO_TEXT_TRUE=
18864 HAVE_XMLTO_TEXT_FALSE='#'
18865 else
18866 HAVE_XMLTO_TEXT_TRUE='#'
18867 HAVE_XMLTO_TEXT_FALSE=
18868 fi
18869
18870 if test "$have_xmlto" = yes; then
18871 HAVE_XMLTO_TRUE=
18872 HAVE_XMLTO_FALSE='#'
18873 else
18874 HAVE_XMLTO_TRUE='#'
18875 HAVE_XMLTO_FALSE=
18876 fi
18877
18878
18879
18880
18881
18882
18883 # Check whether --with-fop was given.
18884 if test "${with_fop+set}" = set; then :
18885 withval=$with_fop; use_fop=$withval
18886 else
18887 use_fop=auto
18888 fi
18889
18890
18891
18892 if test "x$use_fop" = x"auto"; then
18893 # Extract the first word of "fop", so it can be a program name with args.
18894 set dummy fop; ac_word=$2
18895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18896 $as_echo_n "checking for $ac_word... " >&6; }
18897 if ${ac_cv_path_FOP+:} false; then :
18898 $as_echo_n "(cached) " >&6
18899 else
18900 case $FOP in
18901 [\\/]* | ?:[\\/]*)
18902 ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
18903 ;;
18904 *)
18905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18906 for as_dir in $PATH
18907 do
18908 IFS=$as_save_IFS
18909 test -z "$as_dir" && as_dir=.
18910 for ac_exec_ext in '' $ac_executable_extensions; do
18911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18912 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
18913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18914 break 2
18915 fi
18916 done
18917 done
18918 IFS=$as_save_IFS
18919
18920 ;;
18921 esac
18922 fi
18923 FOP=$ac_cv_path_FOP
18924 if test -n "$FOP"; then
18925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
18926 $as_echo "$FOP" >&6; }
18927 else
18928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18929 $as_echo "no" >&6; }
18930 fi
18931
18932
18933 if test "x$FOP" = "x"; then
18934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5
18935 $as_echo "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;}
18936 have_fop=no
18937 else
18938 have_fop=yes
18939 fi
18940 elif test "x$use_fop" = x"yes" ; then
18941 # Extract the first word of "fop", so it can be a program name with args.
18942 set dummy fop; ac_word=$2
18943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18944 $as_echo_n "checking for $ac_word... " >&6; }
18945 if ${ac_cv_path_FOP+:} false; then :
18946 $as_echo_n "(cached) " >&6
18947 else
18948 case $FOP in
18949 [\\/]* | ?:[\\/]*)
18950 ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
18951 ;;
18952 *)
18953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18954 for as_dir in $PATH
18955 do
18956 IFS=$as_save_IFS
18957 test -z "$as_dir" && as_dir=.
18958 for ac_exec_ext in '' $ac_executable_extensions; do
18959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18960 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
18961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18962 break 2
18963 fi
18964 done
18965 done
18966 IFS=$as_save_IFS
18967
18968 ;;
18969 esac
18970 fi
18971 FOP=$ac_cv_path_FOP
18972 if test -n "$FOP"; then
18973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
18974 $as_echo "$FOP" >&6; }
18975 else
18976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18977 $as_echo "no" >&6; }
18978 fi
18979
18980
18981 if test "x$FOP" = "x"; then
18982 as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5
18983 fi
18984 have_fop=yes
18985 elif test "x$use_fop" = x"no" ; then
18986 if test "x$FOP" != "x"; then
18987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5
18988 $as_echo "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;}
18989 fi
18990 have_fop=no
18991 else
18992 as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5
18993 fi
18994
18995 # Test for a minimum version of fop, if provided.
18996
18997 if test "$have_fop" = yes; then
18998 HAVE_FOP_TRUE=
18999 HAVE_FOP_FALSE='#'
19000 else
19001 HAVE_FOP_TRUE='#'
19002 HAVE_FOP_FALSE=
19003 fi
19004
19005
19006
19007
19008 # Preserves the interface, should it be implemented later
19009
19010
19011
19012 # Check whether --with-xsltproc was given.
19013 if test "${with_xsltproc+set}" = set; then :
19014 withval=$with_xsltproc; use_xsltproc=$withval
19015 else
19016 use_xsltproc=auto
19017 fi
19018
19019
19020
19021 if test "x$use_xsltproc" = x"auto"; then
19022 # Extract the first word of "xsltproc", so it can be a program name with args.
19023 set dummy xsltproc; ac_word=$2
19024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19025 $as_echo_n "checking for $ac_word... " >&6; }
19026 if ${ac_cv_path_XSLTPROC+:} false; then :
19027 $as_echo_n "(cached) " >&6
19028 else
19029 case $XSLTPROC in
19030 [\\/]* | ?:[\\/]*)
19031 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
19032 ;;
19033 *)
19034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19035 for as_dir in $PATH
19036 do
19037 IFS=$as_save_IFS
19038 test -z "$as_dir" && as_dir=.
19039 for ac_exec_ext in '' $ac_executable_extensions; do
19040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19041 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
19042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19043 break 2
19044 fi
19045 done
19046 done
19047 IFS=$as_save_IFS
19048
19049 ;;
19050 esac
19051 fi
19052 XSLTPROC=$ac_cv_path_XSLTPROC
19053 if test -n "$XSLTPROC"; then
19054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
19055 $as_echo "$XSLTPROC" >&6; }
19056 else
19057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19058 $as_echo "no" >&6; }
19059 fi
19060
19061
19062 if test "x$XSLTPROC" = "x"; then
19063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5
19064 $as_echo "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;}
19065 have_xsltproc=no
19066 else
19067 have_xsltproc=yes
19068 fi
19069 elif test "x$use_xsltproc" = x"yes" ; then
19070 # Extract the first word of "xsltproc", so it can be a program name with args.
19071 set dummy xsltproc; ac_word=$2
19072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19073 $as_echo_n "checking for $ac_word... " >&6; }
19074 if ${ac_cv_path_XSLTPROC+:} false; then :
19075 $as_echo_n "(cached) " >&6
19076 else
19077 case $XSLTPROC in
19078 [\\/]* | ?:[\\/]*)
19079 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
19080 ;;
19081 *)
19082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19083 for as_dir in $PATH
19084 do
19085 IFS=$as_save_IFS
19086 test -z "$as_dir" && as_dir=.
19087 for ac_exec_ext in '' $ac_executable_extensions; do
19088 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19089 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
19090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19091 break 2
19092 fi
19093 done
19094 done
19095 IFS=$as_save_IFS
19096
19097 ;;
19098 esac
19099 fi
19100 XSLTPROC=$ac_cv_path_XSLTPROC
19101 if test -n "$XSLTPROC"; then
19102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
19103 $as_echo "$XSLTPROC" >&6; }
19104 else
19105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19106 $as_echo "no" >&6; }
19107 fi
19108
19109
19110 if test "x$XSLTPROC" = "x"; then
19111 as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5
19112 fi
19113 have_xsltproc=yes
19114 elif test "x$use_xsltproc" = x"no" ; then
19115 if test "x$XSLTPROC" != "x"; then
19116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5
19117 $as_echo "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;}
19118 fi
19119 have_xsltproc=no
19120 else
19121 as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5
19122 fi
19123
19124 if test "$have_xsltproc" = yes; then
19125 HAVE_XSLTPROC_TRUE=
19126 HAVE_XSLTPROC_FALSE='#'
19127 else
19128 HAVE_XSLTPROC_TRUE='#'
19129 HAVE_XSLTPROC_FALSE=
19130 fi
19131
19132
19133
19134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.8" >&5
19135 $as_echo_n "checking for X.Org SGML entities >= 1.8... " >&6; }
19136 XORG_SGML_PATH=
19137 if test -n "$PKG_CONFIG" && \
19138 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.8\""; } >&5
19139 ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.8") 2>&5
19140 ac_status=$?
19141 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19142 test $ac_status = 0; }; then
19143 XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`
19144 else
19145 :
19146
19147 fi
19148
19149 # Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing
19150 # the path and the name of the doc stylesheet
19151 if test "x$XORG_SGML_PATH" != "x" ; then
19152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5
19153 $as_echo "$XORG_SGML_PATH" >&6; }
19154 STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11
19155 XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl
19156 else
19157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19158 $as_echo "no" >&6; }
19159 fi
19160
19161
19162
19163
19164 if test "x$XSL_STYLESHEET" != "x"; then
19165 HAVE_STYLESHEETS_TRUE=
19166 HAVE_STYLESHEETS_FALSE='#'
19167 else
19168 HAVE_STYLESHEETS_TRUE='#'
19169 HAVE_STYLESHEETS_FALSE=
19170 fi
19171
19172
19173
19174 # Obtain compiler/linker options for depedencies
19175
19176 pkg_failed=no
19177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICE" >&5
19178 $as_echo_n "checking for ICE... " >&6; }
19179
19180 if test -n "$ICE_CFLAGS"; then
19181 pkg_cv_ICE_CFLAGS="$ICE_CFLAGS"
19182 elif test -n "$PKG_CONFIG"; then
19183 if test -n "$PKG_CONFIG" && \
19184 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto xtrans\""; } >&5
19185 ($PKG_CONFIG --exists --print-errors "xproto xtrans") 2>&5
19186 ac_status=$?
19187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19188 test $ac_status = 0; }; then
19189 pkg_cv_ICE_CFLAGS=`$PKG_CONFIG --cflags "xproto xtrans" 2>/dev/null`
19190 test "x$?" != "x0" && pkg_failed=yes
19191 else
19192 pkg_failed=yes
19193 fi
19194 else
19195 pkg_failed=untried
19196 fi
19197 if test -n "$ICE_LIBS"; then
19198 pkg_cv_ICE_LIBS="$ICE_LIBS"
19199 elif test -n "$PKG_CONFIG"; then
19200 if test -n "$PKG_CONFIG" && \
19201 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto xtrans\""; } >&5
19202 ($PKG_CONFIG --exists --print-errors "xproto xtrans") 2>&5
19203 ac_status=$?
19204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19205 test $ac_status = 0; }; then
19206 pkg_cv_ICE_LIBS=`$PKG_CONFIG --libs "xproto xtrans" 2>/dev/null`
19207 test "x$?" != "x0" && pkg_failed=yes
19208 else
19209 pkg_failed=yes
19210 fi
19211 else
19212 pkg_failed=untried
19213 fi
19214
19215
19216
19217 if test $pkg_failed = yes; then
19218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19219 $as_echo "no" >&6; }
19220
19221 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19222 _pkg_short_errors_supported=yes
19223 else
19224 _pkg_short_errors_supported=no
19225 fi
19226 if test $_pkg_short_errors_supported = yes; then
19227 ICE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto xtrans" 2>&1`
19228 else
19229 ICE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto xtrans" 2>&1`
19230 fi
19231 # Put the nasty error message in config.log where it belongs
19232 echo "$ICE_PKG_ERRORS" >&5
19233
19234 as_fn_error $? "Package requirements (xproto xtrans) were not met:
19235
19236 $ICE_PKG_ERRORS
19237
19238 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19239 installed software in a non-standard prefix.
19240
19241 Alternatively, you may set the environment variables ICE_CFLAGS
19242 and ICE_LIBS to avoid the need to call pkg-config.
19243 See the pkg-config man page for more details." "$LINENO" 5
19244 elif test $pkg_failed = untried; then
19245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19246 $as_echo "no" >&6; }
19247 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19248 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19249 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19250 is in your PATH or set the PKG_CONFIG environment variable to the full
19251 path to pkg-config.
19252
19253 Alternatively, you may set the environment variables ICE_CFLAGS
19254 and ICE_LIBS to avoid the need to call pkg-config.
19255 See the pkg-config man page for more details.
19256
19257 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19258 See \`config.log' for more details" "$LINENO" 5; }
19259 else
19260 ICE_CFLAGS=$pkg_cv_ICE_CFLAGS
19261 ICE_LIBS=$pkg_cv_ICE_LIBS
19262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19263 $as_echo "yes" >&6; }
19264
19265 fi
19266
19267 # Transport selection macro from xtrans.m4
19268
19269
19270 case $host_os in
19271 mingw*) unixdef="no" ;;
19272 *) unixdef="yes" ;;
19273 esac
19274 # Check whether --enable-unix-transport was given.
19275 if test "${enable_unix_transport+set}" = set; then :
19276 enableval=$enable_unix_transport; UNIXCONN=$enableval
19277 else
19278 UNIXCONN=$unixdef
19279 fi
19280
19281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5
19282 $as_echo_n "checking if Xtrans should support UNIX socket connections... " >&6; }
19283 if test "$UNIXCONN" = "yes"; then
19284
19285 $as_echo "#define UNIXCONN 1" >>confdefs.h
19286
19287 fi
19288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5
19289 $as_echo "$UNIXCONN" >&6; }
19290 # Check whether --enable-tcp-transport was given.
19291 if test "${enable_tcp_transport+set}" = set; then :
19292 enableval=$enable_tcp_transport; TCPCONN=$enableval
19293 else
19294 TCPCONN=yes
19295 fi
19296
19297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5
19298 $as_echo_n "checking if Xtrans should support TCP socket connections... " >&6; }
19299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5
19300 $as_echo "$TCPCONN" >&6; }
19301 if test "$TCPCONN" = "yes"; then
19302
19303 $as_echo "#define TCPCONN 1" >>confdefs.h
19304
19305
19306 # SVR4 hides these in libraries other than libc
19307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
19308 $as_echo_n "checking for library containing socket... " >&6; }
19309 if ${ac_cv_search_socket+:} false; then :
19310 $as_echo_n "(cached) " >&6
19311 else
19312 ac_func_search_save_LIBS=$LIBS
19313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19314 /* end confdefs.h. */
19315
19316 /* Override any GCC internal prototype to avoid an error.
19317 Use char because int might match the return type of a GCC
19318 builtin and then its argument prototype would still apply. */
19319 #ifdef __cplusplus
19320 extern "C"
19321 #endif
19322 char socket ();
19323 int
19324 main ()
19325 {
19326 return socket ();
19327 ;
19328 return 0;
19329 }
19330 _ACEOF
19331 for ac_lib in '' socket; do
19332 if test -z "$ac_lib"; then
19333 ac_res="none required"
19334 else
19335 ac_res=-l$ac_lib
19336 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19337 fi
19338 if ac_fn_c_try_link "$LINENO"; then :
19339 ac_cv_search_socket=$ac_res
19340 fi
19341 rm -f core conftest.err conftest.$ac_objext \
19342 conftest$ac_exeext
19343 if ${ac_cv_search_socket+:} false; then :
19344 break
19345 fi
19346 done
19347 if ${ac_cv_search_socket+:} false; then :
19348
19349 else
19350 ac_cv_search_socket=no
19351 fi
19352 rm conftest.$ac_ext
19353 LIBS=$ac_func_search_save_LIBS
19354 fi
19355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
19356 $as_echo "$ac_cv_search_socket" >&6; }
19357 ac_res=$ac_cv_search_socket
19358 if test "$ac_res" != no; then :
19359 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19360
19361 fi
19362
19363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
19364 $as_echo_n "checking for library containing gethostbyname... " >&6; }
19365 if ${ac_cv_search_gethostbyname+:} false; then :
19366 $as_echo_n "(cached) " >&6
19367 else
19368 ac_func_search_save_LIBS=$LIBS
19369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19370 /* end confdefs.h. */
19371
19372 /* Override any GCC internal prototype to avoid an error.
19373 Use char because int might match the return type of a GCC
19374 builtin and then its argument prototype would still apply. */
19375 #ifdef __cplusplus
19376 extern "C"
19377 #endif
19378 char gethostbyname ();
19379 int
19380 main ()
19381 {
19382 return gethostbyname ();
19383 ;
19384 return 0;
19385 }
19386 _ACEOF
19387 for ac_lib in '' nsl; do
19388 if test -z "$ac_lib"; then
19389 ac_res="none required"
19390 else
19391 ac_res=-l$ac_lib
19392 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19393 fi
19394 if ac_fn_c_try_link "$LINENO"; then :
19395 ac_cv_search_gethostbyname=$ac_res
19396 fi
19397 rm -f core conftest.err conftest.$ac_objext \
19398 conftest$ac_exeext
19399 if ${ac_cv_search_gethostbyname+:} false; then :
19400 break
19401 fi
19402 done
19403 if ${ac_cv_search_gethostbyname+:} false; then :
19404
19405 else
19406 ac_cv_search_gethostbyname=no
19407 fi
19408 rm conftest.$ac_ext
19409 LIBS=$ac_func_search_save_LIBS
19410 fi
19411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
19412 $as_echo "$ac_cv_search_gethostbyname" >&6; }
19413 ac_res=$ac_cv_search_gethostbyname
19414 if test "$ac_res" != no; then :
19415 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19416
19417 fi
19418
19419 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then
19420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
19421 $as_echo_n "checking for main in -lws2_32... " >&6; }
19422 if ${ac_cv_lib_ws2_32_main+:} false; then :
19423 $as_echo_n "(cached) " >&6
19424 else
19425 ac_check_lib_save_LIBS=$LIBS
19426 LIBS="-lws2_32 $LIBS"
19427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19428 /* end confdefs.h. */
19429
19430
19431 int
19432 main ()
19433 {
19434 return main ();
19435 ;
19436 return 0;
19437 }
19438 _ACEOF
19439 if ac_fn_c_try_link "$LINENO"; then :
19440 ac_cv_lib_ws2_32_main=yes
19441 else
19442 ac_cv_lib_ws2_32_main=no
19443 fi
19444 rm -f core conftest.err conftest.$ac_objext \
19445 conftest$ac_exeext conftest.$ac_ext
19446 LIBS=$ac_check_lib_save_LIBS
19447 fi
19448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
19449 $as_echo "$ac_cv_lib_ws2_32_main" >&6; }
19450 if test "x$ac_cv_lib_ws2_32_main" = xyes; then :
19451 cat >>confdefs.h <<_ACEOF
19452 #define HAVE_LIBWS2_32 1
19453 _ACEOF
19454
19455 LIBS="-lws2_32 $LIBS"
19456
19457 fi
19458
19459 fi
19460
19461 # Needs to come after above checks for libsocket & libnsl for SVR4 systems
19462 # Check whether --enable-ipv6 was given.
19463 if test "${enable_ipv6+set}" = set; then :
19464 enableval=$enable_ipv6; IPV6CONN=$enableval
19465 else
19466 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
19467 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
19468 IPV6CONN=yes
19469 else
19470 IPV6CONN=no
19471 fi
19472
19473 fi
19474
19475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5
19476 $as_echo_n "checking if IPv6 support should be built... " >&6; }
19477 if test "$IPV6CONN" = "yes"; then
19478
19479 $as_echo "#define IPv6 1" >>confdefs.h
19480
19481 fi
19482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5
19483 $as_echo "$IPV6CONN" >&6; }
19484
19485 # 4.3BSD-Reno added a new member to struct sockaddr_in
19486 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "
19487 #include <sys/types.h>
19488 #include <sys/socket.h>
19489 #include <netinet/in.h>
19490
19491 "
19492 if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
19493
19494 $as_echo "#define BSD44SOCKETS 1" >>confdefs.h
19495
19496 fi
19497
19498
19499 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc.
19500 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
19501 $ac_includes_default
19502 #include <sys/socket.h>
19503 "
19504 if test "x$ac_cv_type_socklen_t" = xyes; then :
19505
19506 cat >>confdefs.h <<_ACEOF
19507 #define HAVE_SOCKLEN_T 1
19508 _ACEOF
19509
19510
19511 fi
19512
19513
19514 # XPG4v2/UNIX95 added msg_control - check to see if we need to define
19515 # _XOPEN_SOURCE to get it (such as on Solaris)
19516 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
19517 $ac_includes_default
19518 #include <sys/socket.h>
19519
19520 "
19521 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
19522
19523 fi
19524
19525 # First try for Solaris in C99 compliant mode, which requires XPG6/UNIX03
19526 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
19527 unset ac_cv_member_struct_msghdr_msg_control
19528 { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=600" >&5
19529 $as_echo "$as_me: trying again with _XOPEN_SOURCE=600" >&6;}
19530 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
19531 #define _XOPEN_SOURCE 600
19532 $ac_includes_default
19533 #include <sys/socket.h>
19534
19535 "
19536 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
19537
19538 $as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h
19539
19540
19541 fi
19542
19543 fi
19544 # If that didn't work, fall back to XPG5/UNIX98 with C89
19545 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
19546 unset ac_cv_member_struct_msghdr_msg_control
19547 { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=500" >&5
19548 $as_echo "$as_me: trying again with _XOPEN_SOURCE=500" >&6;}
19549 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
19550 #define _XOPEN_SOURCE 500
19551 $ac_includes_default
19552 #include <sys/socket.h>
19553
19554 "
19555 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
19556
19557 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
19558
19559
19560 fi
19561
19562 fi
19563
19564
19565
19566 fi
19567 case $host_os in
19568 solaris*|sco*|sysv4*) localdef="yes" ;;
19569 *) localdef="no" ;;
19570 esac
19571 # Check whether --enable-local-transport was given.
19572 if test "${enable_local_transport+set}" = set; then :
19573 enableval=$enable_local_transport; LOCALCONN=$enableval
19574 else
19575 LOCALCONN=$localdef
19576 fi
19577
19578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5
19579 $as_echo_n "checking if Xtrans should support os-specific local connections... " >&6; }
19580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5
19581 $as_echo "$LOCALCONN" >&6; }
19582 if test "$LOCALCONN" = "yes"; then
19583
19584 $as_echo "#define LOCALCONN 1" >>confdefs.h
19585
19586 fi
19587
19588
19589
19590 $as_echo "#define ICE_t 1" >>confdefs.h
19591
19592
19593 $as_echo "#define TRANS_CLIENT 1" >>confdefs.h
19594
19595
19596 $as_echo "#define TRANS_SERVER 1" >>confdefs.h
19597
19598
19599 # Checks for library functions.
19600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for arc4random_buf in -lbsd" >&5
19601 $as_echo_n "checking for arc4random_buf in -lbsd... " >&6; }
19602 if ${ac_cv_lib_bsd_arc4random_buf+:} false; then :
19603 $as_echo_n "(cached) " >&6
19604 else
19605 ac_check_lib_save_LIBS=$LIBS
19606 LIBS="-lbsd $LIBS"
19607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19608 /* end confdefs.h. */
19609
19610 /* Override any GCC internal prototype to avoid an error.
19611 Use char because int might match the return type of a GCC
19612 builtin and then its argument prototype would still apply. */
19613 #ifdef __cplusplus
19614 extern "C"
19615 #endif
19616 char arc4random_buf ();
19617 int
19618 main ()
19619 {
19620 return arc4random_buf ();
19621 ;
19622 return 0;
19623 }
19624 _ACEOF
19625 if ac_fn_c_try_link "$LINENO"; then :
19626 ac_cv_lib_bsd_arc4random_buf=yes
19627 else
19628 ac_cv_lib_bsd_arc4random_buf=no
19629 fi
19630 rm -f core conftest.err conftest.$ac_objext \
19631 conftest$ac_exeext conftest.$ac_ext
19632 LIBS=$ac_check_lib_save_LIBS
19633 fi
19634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_arc4random_buf" >&5
19635 $as_echo "$ac_cv_lib_bsd_arc4random_buf" >&6; }
19636 if test "x$ac_cv_lib_bsd_arc4random_buf" = xyes; then :
19637 cat >>confdefs.h <<_ACEOF
19638 #define HAVE_LIBBSD 1
19639 _ACEOF
19640
19641 LIBS="-lbsd $LIBS"
19642
19643 fi
19644
19645 for ac_func in asprintf arc4random_buf getentropy
19646 do :
19647 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19648 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19649 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19650 cat >>confdefs.h <<_ACEOF
19651 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19652 _ACEOF
19653
19654 fi
19655 done
19656
19657
19658 # Allow checking code with lint, sparse, etc.
19659
19660
19661
19662
19663
19664 # Check whether --with-lint was given.
19665 if test "${with_lint+set}" = set; then :
19666 withval=$with_lint; use_lint=$withval
19667 else
19668 use_lint=no
19669 fi
19670
19671
19672 # Obtain platform specific info like program name and options
19673 # The lint program on FreeBSD and NetBSD is different from the one on Solaris
19674 case $host_os in
19675 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
19676 lint_name=splint
19677 lint_options="-badflag"
19678 ;;
19679 *freebsd* | *netbsd*)
19680 lint_name=lint
19681 lint_options="-u -b"
19682 ;;
19683 *solaris*)
19684 lint_name=lint
19685 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
19686 ;;
19687 esac
19688
19689 # Test for the presence of the program (either guessed by the code or spelled out by the user)
19690 if test "x$use_lint" = x"yes" ; then
19691 # Extract the first word of "$lint_name", so it can be a program name with args.
19692 set dummy $lint_name; ac_word=$2
19693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19694 $as_echo_n "checking for $ac_word... " >&6; }
19695 if ${ac_cv_path_LINT+:} false; then :
19696 $as_echo_n "(cached) " >&6
19697 else
19698 case $LINT in
19699 [\\/]* | ?:[\\/]*)
19700 ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
19701 ;;
19702 *)
19703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19704 for as_dir in $PATH
19705 do
19706 IFS=$as_save_IFS
19707 test -z "$as_dir" && as_dir=.
19708 for ac_exec_ext in '' $ac_executable_extensions; do
19709 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19710 ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext"
19711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19712 break 2
19713 fi
19714 done
19715 done
19716 IFS=$as_save_IFS
19717
19718 ;;
19719 esac
19720 fi
19721 LINT=$ac_cv_path_LINT
19722 if test -n "$LINT"; then
19723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
19724 $as_echo "$LINT" >&6; }
19725 else
19726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19727 $as_echo "no" >&6; }
19728 fi
19729
19730
19731 if test "x$LINT" = "x"; then
19732 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
19733 fi
19734 elif test "x$use_lint" = x"no" ; then
19735 if test "x$LINT" != "x"; then
19736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
19737 $as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
19738 fi
19739 else
19740 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
19741 fi
19742
19743 # User supplied flags override default flags
19744 if test "x$LINT_FLAGS" != "x"; then
19745 lint_options=$LINT_FLAGS
19746 fi
19747
19748 LINT_FLAGS=$lint_options
19749
19750 if test "x$LINT" != x; then
19751 LINT_TRUE=
19752 LINT_FALSE='#'
19753 else
19754 LINT_TRUE='#'
19755 LINT_FALSE=
19756 fi
19757
19758
19759
19760
19761
19762 # Check whether --enable-lint-library was given.
19763 if test "${enable_lint_library+set}" = set; then :
19764 enableval=$enable_lint_library; make_lint_lib=$enableval
19765 else
19766 make_lint_lib=no
19767 fi
19768
19769
19770 if test "x$make_lint_lib" = x"yes" ; then
19771 LINTLIB=llib-lICE.ln
19772 if test "x$LINT" = "x"; then
19773 as_fn_error $? "Cannot make lint library without --with-lint" "$LINENO" 5
19774 fi
19775 elif test "x$make_lint_lib" != x"no" ; then
19776 as_fn_error $? "--enable-lint-library expects 'yes' or 'no'." "$LINENO" 5
19777 fi
19778
19779
19780 if test x$make_lint_lib != xno; then
19781 MAKE_LINT_LIB_TRUE=
19782 MAKE_LINT_LIB_FALSE='#'
19783 else
19784 MAKE_LINT_LIB_TRUE='#'
19785 MAKE_LINT_LIB_FALSE=
19786 fi
19787
19788
19789
19790 LINT_FLAGS="${LINT_FLAGS} ${ICE_CFLAGS} ${XTRANS_CFLAGS}"
19791
19792 ac_config_files="$ac_config_files Makefile doc/Makefile specs/Makefile src/Makefile ice.pc"
19793
19794 cat >confcache <<\_ACEOF
19795 # This file is a shell script that caches the results of configure
19796 # tests run on this system so they can be shared between configure
19797 # scripts and configure runs, see configure's option --config-cache.
19798 # It is not useful on other systems. If it contains results you don't
19799 # want to keep, you may remove or edit it.
19800 #
19801 # config.status only pays attention to the cache file if you give it
19802 # the --recheck option to rerun configure.
19803 #
19804 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19805 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19806 # following values.
19807
19808 _ACEOF
19809
19810 # The following way of writing the cache mishandles newlines in values,
19811 # but we know of no workaround that is simple, portable, and efficient.
19812 # So, we kill variables containing newlines.
19813 # Ultrix sh set writes to stderr and can't be redirected directly,
19814 # and sets the high bit in the cache file unless we assign to the vars.
19815 (
19816 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19817 eval ac_val=\$$ac_var
19818 case $ac_val in #(
19819 *${as_nl}*)
19820 case $ac_var in #(
19821 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19822 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19823 esac
19824 case $ac_var in #(
19825 _ | IFS | as_nl) ;; #(
19826 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19827 *) { eval $ac_var=; unset $ac_var;} ;;
19828 esac ;;
19829 esac
19830 done
19831
19832 (set) 2>&1 |
19833 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19834 *${as_nl}ac_space=\ *)
19835 # `set' does not quote correctly, so add quotes: double-quote
19836 # substitution turns \\\\ into \\, and sed turns \\ into \.
19837 sed -n \
19838 "s/'/'\\\\''/g;
19839 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19840 ;; #(
19841 *)
19842 # `set' quotes correctly as required by POSIX, so do not add quotes.
19843 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19844 ;;
19845 esac |
19846 sort
19847 ) |
19848 sed '
19849 /^ac_cv_env_/b end
19850 t clear
19851 :clear
19852 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19853 t end
19854 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19855 :end' >>confcache
19856 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19857 if test -w "$cache_file"; then
19858 if test "x$cache_file" != "x/dev/null"; then
19859 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19860 $as_echo "$as_me: updating cache $cache_file" >&6;}
19861 if test ! -f "$cache_file" || test -h "$cache_file"; then
19862 cat confcache >"$cache_file"
19863 else
19864 case $cache_file in #(
19865 */* | ?:*)
19866 mv -f confcache "$cache_file"$$ &&
19867 mv -f "$cache_file"$$ "$cache_file" ;; #(
19868 *)
19869 mv -f confcache "$cache_file" ;;
19870 esac
19871 fi
19872 fi
19873 else
19874 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19875 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19876 fi
19877 fi
19878 rm -f confcache
19879
19880 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19881 # Let make expand exec_prefix.
19882 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19883
19884 DEFS=-DHAVE_CONFIG_H
19885
19886 ac_libobjs=
19887 ac_ltlibobjs=
19888 U=
19889 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19890 # 1. Remove the extension, and $U if already installed.
19891 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19892 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19893 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19894 # will be set to the directory where LIBOBJS objects are built.
19895 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19896 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19897 done
19898 LIBOBJS=$ac_libobjs
19899
19900 LTLIBOBJS=$ac_ltlibobjs
19901
19902
19903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19904 $as_echo_n "checking that generated files are newer than configure... " >&6; }
19905 if test -n "$am_sleep_pid"; then
19906 # Hide warnings about reused PIDs.
19907 wait $am_sleep_pid 2>/dev/null
19908 fi
19909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19910 $as_echo "done" >&6; }
19911 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19912 as_fn_error $? "conditional \"AMDEP\" was never defined.
19913 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19914 fi
19915 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19916 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19917 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19918 fi
19919 if test -n "$EXEEXT"; then
19920 am__EXEEXT_TRUE=
19921 am__EXEEXT_FALSE='#'
19922 else
19923 am__EXEEXT_TRUE='#'
19924 am__EXEEXT_FALSE=
19925 fi
19926
19927 if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then
19928 as_fn_error $? "conditional \"ENABLE_DOCS\" was never defined.
19929 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19930 fi
19931 if test -z "${ENABLE_SPECS_TRUE}" && test -z "${ENABLE_SPECS_FALSE}"; then
19932 as_fn_error $? "conditional \"ENABLE_SPECS\" was never defined.
19933 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19934 fi
19935 if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then
19936 as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined.
19937 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19938 fi
19939 if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
19940 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
19941 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19942 fi
19943 if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
19944 as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
19945 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19946 fi
19947 if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then
19948 as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined.
19949 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19950 fi
19951 if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then
19952 as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined.
19953 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19954 fi
19955 if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
19956 as_fn_error $? "conditional \"LINT\" was never defined.
19957 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19958 fi
19959 if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then
19960 as_fn_error $? "conditional \"MAKE_LINT_LIB\" was never defined.
19961 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19962 fi
19963
19964 : "${CONFIG_STATUS=./config.status}"
19965 ac_write_fail=0
19966 ac_clean_files_save=$ac_clean_files
19967 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19968 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19969 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19970 as_write_fail=0
19971 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19972 #! $SHELL
19973 # Generated by $as_me.
19974 # Run this file to recreate the current configuration.
19975 # Compiler output produced by configure, useful for debugging
19976 # configure, is in config.log if it exists.
19977
19978 debug=false
19979 ac_cs_recheck=false
19980 ac_cs_silent=false
19981
19982 SHELL=\${CONFIG_SHELL-$SHELL}
19983 export SHELL
19984 _ASEOF
19985 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19986 ## -------------------- ##
19987 ## M4sh Initialization. ##
19988 ## -------------------- ##
19989
19990 # Be more Bourne compatible
19991 DUALCASE=1; export DUALCASE # for MKS sh
19992 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19993 emulate sh
19994 NULLCMD=:
19995 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19996 # is contrary to our usage. Disable this feature.
19997 alias -g '${1+"$@"}'='"$@"'
19998 setopt NO_GLOB_SUBST
19999 else
20000 case `(set -o) 2>/dev/null` in #(
20001 *posix*) :
20002 set -o posix ;; #(
20003 *) :
20004 ;;
20005 esac
20006 fi
20007
20008
20009 as_nl='
20010 '
20011 export as_nl
20012 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20013 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20014 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20015 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20016 # Prefer a ksh shell builtin over an external printf program on Solaris,
20017 # but without wasting forks for bash or zsh.
20018 if test -z "$BASH_VERSION$ZSH_VERSION" \
20019 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20020 as_echo='print -r --'
20021 as_echo_n='print -rn --'
20022 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20023 as_echo='printf %s\n'
20024 as_echo_n='printf %s'
20025 else
20026 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20027 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20028 as_echo_n='/usr/ucb/echo -n'
20029 else
20030 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20031 as_echo_n_body='eval
20032 arg=$1;
20033 case $arg in #(
20034 *"$as_nl"*)
20035 expr "X$arg" : "X\\(.*\\)$as_nl";
20036 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20037 esac;
20038 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20039 '
20040 export as_echo_n_body
20041 as_echo_n='sh -c $as_echo_n_body as_echo'
20042 fi
20043 export as_echo_body
20044 as_echo='sh -c $as_echo_body as_echo'
20045 fi
20046
20047 # The user is always right.
20048 if test "${PATH_SEPARATOR+set}" != set; then
20049 PATH_SEPARATOR=:
20050 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20051 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20052 PATH_SEPARATOR=';'
20053 }
20054 fi
20055
20056
20057 # IFS
20058 # We need space, tab and new line, in precisely that order. Quoting is
20059 # there to prevent editors from complaining about space-tab.
20060 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20061 # splitting by setting IFS to empty value.)
20062 IFS=" "" $as_nl"
20063
20064 # Find who we are. Look in the path if we contain no directory separator.
20065 as_myself=
20066 case $0 in #((
20067 *[\\/]* ) as_myself=$0 ;;
20068 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20069 for as_dir in $PATH
20070 do
20071 IFS=$as_save_IFS
20072 test -z "$as_dir" && as_dir=.
20073 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20074 done
20075 IFS=$as_save_IFS
20076
20077 ;;
20078 esac
20079 # We did not find ourselves, most probably we were run as `sh COMMAND'
20080 # in which case we are not to be found in the path.
20081 if test "x$as_myself" = x; then
20082 as_myself=$0
20083 fi
20084 if test ! -f "$as_myself"; then
20085 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20086 exit 1
20087 fi
20088
20089 # Unset variables that we do not need and which cause bugs (e.g. in
20090 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20091 # suppresses any "Segmentation fault" message there. '((' could
20092 # trigger a bug in pdksh 5.2.14.
20093 for as_var in BASH_ENV ENV MAIL MAILPATH
20094 do eval test x\${$as_var+set} = xset \
20095 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20096 done
20097 PS1='$ '
20098 PS2='> '
20099 PS4='+ '
20100
20101 # NLS nuisances.
20102 LC_ALL=C
20103 export LC_ALL
20104 LANGUAGE=C
20105 export LANGUAGE
20106
20107 # CDPATH.
20108 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20109
20110
20111 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20112 # ----------------------------------------
20113 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20114 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20115 # script with STATUS, using 1 if that was 0.
20116 as_fn_error ()
20117 {
20118 as_status=$1; test $as_status -eq 0 && as_status=1
20119 if test "$4"; then
20120 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20121 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20122 fi
20123 $as_echo "$as_me: error: $2" >&2
20124 as_fn_exit $as_status
20125 } # as_fn_error
20126
20127
20128 # as_fn_set_status STATUS
20129 # -----------------------
20130 # Set $? to STATUS, without forking.
20131 as_fn_set_status ()
20132 {
20133 return $1
20134 } # as_fn_set_status
20135
20136 # as_fn_exit STATUS
20137 # -----------------
20138 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20139 as_fn_exit ()
20140 {
20141 set +e
20142 as_fn_set_status $1
20143 exit $1
20144 } # as_fn_exit
20145
20146 # as_fn_unset VAR
20147 # ---------------
20148 # Portably unset VAR.
20149 as_fn_unset ()
20150 {
20151 { eval $1=; unset $1;}
20152 }
20153 as_unset=as_fn_unset
20154 # as_fn_append VAR VALUE
20155 # ----------------------
20156 # Append the text in VALUE to the end of the definition contained in VAR. Take
20157 # advantage of any shell optimizations that allow amortized linear growth over
20158 # repeated appends, instead of the typical quadratic growth present in naive
20159 # implementations.
20160 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20161 eval 'as_fn_append ()
20162 {
20163 eval $1+=\$2
20164 }'
20165 else
20166 as_fn_append ()
20167 {
20168 eval $1=\$$1\$2
20169 }
20170 fi # as_fn_append
20171
20172 # as_fn_arith ARG...
20173 # ------------------
20174 # Perform arithmetic evaluation on the ARGs, and store the result in the
20175 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20176 # must be portable across $(()) and expr.
20177 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20178 eval 'as_fn_arith ()
20179 {
20180 as_val=$(( $* ))
20181 }'
20182 else
20183 as_fn_arith ()
20184 {
20185 as_val=`expr "$@" || test $? -eq 1`
20186 }
20187 fi # as_fn_arith
20188
20189
20190 if expr a : '\(a\)' >/dev/null 2>&1 &&
20191 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20192 as_expr=expr
20193 else
20194 as_expr=false
20195 fi
20196
20197 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20198 as_basename=basename
20199 else
20200 as_basename=false
20201 fi
20202
20203 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20204 as_dirname=dirname
20205 else
20206 as_dirname=false
20207 fi
20208
20209 as_me=`$as_basename -- "$0" ||
20210 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20211 X"$0" : 'X\(//\)$' \| \
20212 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20213 $as_echo X/"$0" |
20214 sed '/^.*\/\([^/][^/]*\)\/*$/{
20215 s//\1/
20216 q
20217 }
20218 /^X\/\(\/\/\)$/{
20219 s//\1/
20220 q
20221 }
20222 /^X\/\(\/\).*/{
20223 s//\1/
20224 q
20225 }
20226 s/.*/./; q'`
20227
20228 # Avoid depending upon Character Ranges.
20229 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20230 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20231 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20232 as_cr_digits='0123456789'
20233 as_cr_alnum=$as_cr_Letters$as_cr_digits
20234
20235 ECHO_C= ECHO_N= ECHO_T=
20236 case `echo -n x` in #(((((
20237 -n*)
20238 case `echo 'xy\c'` in
20239 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20240 xy) ECHO_C='\c';;
20241 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20242 ECHO_T=' ';;
20243 esac;;
20244 *)
20245 ECHO_N='-n';;
20246 esac
20247
20248 rm -f conf$$ conf$$.exe conf$$.file
20249 if test -d conf$$.dir; then
20250 rm -f conf$$.dir/conf$$.file
20251 else
20252 rm -f conf$$.dir
20253 mkdir conf$$.dir 2>/dev/null
20254 fi
20255 if (echo >conf$$.file) 2>/dev/null; then
20256 if ln -s conf$$.file conf$$ 2>/dev/null; then
20257 as_ln_s='ln -s'
20258 # ... but there are two gotchas:
20259 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20260 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20261 # In both cases, we have to default to `cp -pR'.
20262 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20263 as_ln_s='cp -pR'
20264 elif ln conf$$.file conf$$ 2>/dev/null; then
20265 as_ln_s=ln
20266 else
20267 as_ln_s='cp -pR'
20268 fi
20269 else
20270 as_ln_s='cp -pR'
20271 fi
20272 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20273 rmdir conf$$.dir 2>/dev/null
20274
20275
20276 # as_fn_mkdir_p
20277 # -------------
20278 # Create "$as_dir" as a directory, including parents if necessary.
20279 as_fn_mkdir_p ()
20280 {
20281
20282 case $as_dir in #(
20283 -*) as_dir=./$as_dir;;
20284 esac
20285 test -d "$as_dir" || eval $as_mkdir_p || {
20286 as_dirs=
20287 while :; do
20288 case $as_dir in #(
20289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20290 *) as_qdir=$as_dir;;
20291 esac
20292 as_dirs="'$as_qdir' $as_dirs"
20293 as_dir=`$as_dirname -- "$as_dir" ||
20294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20295 X"$as_dir" : 'X\(//\)[^/]' \| \
20296 X"$as_dir" : 'X\(//\)$' \| \
20297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20298 $as_echo X"$as_dir" |
20299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20300 s//\1/
20301 q
20302 }
20303 /^X\(\/\/\)[^/].*/{
20304 s//\1/
20305 q
20306 }
20307 /^X\(\/\/\)$/{
20308 s//\1/
20309 q
20310 }
20311 /^X\(\/\).*/{
20312 s//\1/
20313 q
20314 }
20315 s/.*/./; q'`
20316 test -d "$as_dir" && break
20317 done
20318 test -z "$as_dirs" || eval "mkdir $as_dirs"
20319 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20320
20321
20322 } # as_fn_mkdir_p
20323 if mkdir -p . 2>/dev/null; then
20324 as_mkdir_p='mkdir -p "$as_dir"'
20325 else
20326 test -d ./-p && rmdir ./-p
20327 as_mkdir_p=false
20328 fi
20329
20330
20331 # as_fn_executable_p FILE
20332 # -----------------------
20333 # Test if FILE is an executable regular file.
20334 as_fn_executable_p ()
20335 {
20336 test -f "$1" && test -x "$1"
20337 } # as_fn_executable_p
20338 as_test_x='test -x'
20339 as_executable_p=as_fn_executable_p
20340
20341 # Sed expression to map a string onto a valid CPP name.
20342 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20343
20344 # Sed expression to map a string onto a valid variable name.
20345 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20346
20347
20348 exec 6>&1
20349 ## ----------------------------------- ##
20350 ## Main body of $CONFIG_STATUS script. ##
20351 ## ----------------------------------- ##
20352 _ASEOF
20353 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20354
20355 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20356 # Save the log message, to keep $0 and so on meaningful, and to
20357 # report actual input values of CONFIG_FILES etc. instead of their
20358 # values after options handling.
20359 ac_log="
20360 This file was extended by libICE $as_me 1.0.10, which was
20361 generated by GNU Autoconf 2.69. Invocation command line was
20362
20363 CONFIG_FILES = $CONFIG_FILES
20364 CONFIG_HEADERS = $CONFIG_HEADERS
20365 CONFIG_LINKS = $CONFIG_LINKS
20366 CONFIG_COMMANDS = $CONFIG_COMMANDS
20367 $ $0 $@
20368
20369 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20370 "
20371
20372 _ACEOF
20373
20374 case $ac_config_files in *"
20375 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20376 esac
20377
20378 case $ac_config_headers in *"
20379 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20380 esac
20381
20382
20383 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20384 # Files that config.status was made for.
20385 config_files="$ac_config_files"
20386 config_headers="$ac_config_headers"
20387 config_commands="$ac_config_commands"
20388
20389 _ACEOF
20390
20391 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20392 ac_cs_usage="\
20393 \`$as_me' instantiates files and other configuration actions
20394 from templates according to the current configuration. Unless the files
20395 and actions are specified as TAGs, all are instantiated by default.
20396
20397 Usage: $0 [OPTION]... [TAG]...
20398
20399 -h, --help print this help, then exit
20400 -V, --version print version number and configuration settings, then exit
20401 --config print configuration, then exit
20402 -q, --quiet, --silent
20403 do not print progress messages
20404 -d, --debug don't remove temporary files
20405 --recheck update $as_me by reconfiguring in the same conditions
20406 --file=FILE[:TEMPLATE]
20407 instantiate the configuration file FILE
20408 --header=FILE[:TEMPLATE]
20409 instantiate the configuration header FILE
20410
20411 Configuration files:
20412 $config_files
20413
20414 Configuration headers:
20415 $config_headers
20416
20417 Configuration commands:
20418 $config_commands
20419
20420 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libICE/issues>."
20421
20422 _ACEOF
20423 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20424 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20425 ac_cs_version="\\
20426 libICE config.status 1.0.10
20427 configured by $0, generated by GNU Autoconf 2.69,
20428 with options \\"\$ac_cs_config\\"
20429
20430 Copyright (C) 2012 Free Software Foundation, Inc.
20431 This config.status script is free software; the Free Software Foundation
20432 gives unlimited permission to copy, distribute and modify it."
20433
20434 ac_pwd='$ac_pwd'
20435 srcdir='$srcdir'
20436 INSTALL='$INSTALL'
20437 MKDIR_P='$MKDIR_P'
20438 AWK='$AWK'
20439 test -n "\$AWK" || AWK=awk
20440 _ACEOF
20441
20442 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20443 # The default lists apply if the user does not specify any file.
20444 ac_need_defaults=:
20445 while test $# != 0
20446 do
20447 case $1 in
20448 --*=?*)
20449 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20450 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20451 ac_shift=:
20452 ;;
20453 --*=)
20454 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20455 ac_optarg=
20456 ac_shift=:
20457 ;;
20458 *)
20459 ac_option=$1
20460 ac_optarg=$2
20461 ac_shift=shift
20462 ;;
20463 esac
20464
20465 case $ac_option in
20466 # Handling of the options.
20467 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20468 ac_cs_recheck=: ;;
20469 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20470 $as_echo "$ac_cs_version"; exit ;;
20471 --config | --confi | --conf | --con | --co | --c )
20472 $as_echo "$ac_cs_config"; exit ;;
20473 --debug | --debu | --deb | --de | --d | -d )
20474 debug=: ;;
20475 --file | --fil | --fi | --f )
20476 $ac_shift
20477 case $ac_optarg in
20478 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20479 '') as_fn_error $? "missing file argument" ;;
20480 esac
20481 as_fn_append CONFIG_FILES " '$ac_optarg'"
20482 ac_need_defaults=false;;
20483 --header | --heade | --head | --hea )
20484 $ac_shift
20485 case $ac_optarg in
20486 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20487 esac
20488 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20489 ac_need_defaults=false;;
20490 --he | --h)
20491 # Conflict between --help and --header
20492 as_fn_error $? "ambiguous option: \`$1'
20493 Try \`$0 --help' for more information.";;
20494 --help | --hel | -h )
20495 $as_echo "$ac_cs_usage"; exit ;;
20496 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20497 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20498 ac_cs_silent=: ;;
20499
20500 # This is an error.
20501 -*) as_fn_error $? "unrecognized option: \`$1'
20502 Try \`$0 --help' for more information." ;;
20503
20504 *) as_fn_append ac_config_targets " $1"
20505 ac_need_defaults=false ;;
20506
20507 esac
20508 shift
20509 done
20510
20511 ac_configure_extra_args=
20512
20513 if $ac_cs_silent; then
20514 exec 6>/dev/null
20515 ac_configure_extra_args="$ac_configure_extra_args --silent"
20516 fi
20517
20518 _ACEOF
20519 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20520 if \$ac_cs_recheck; then
20521 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20522 shift
20523 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20524 CONFIG_SHELL='$SHELL'
20525 export CONFIG_SHELL
20526 exec "\$@"
20527 fi
20528
20529 _ACEOF
20530 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20531 exec 5>>config.log
20532 {
20533 echo
20534 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20535 ## Running $as_me. ##
20536 _ASBOX
20537 $as_echo "$ac_log"
20538 } >&5
20539
20540 _ACEOF
20541 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20542 #
20543 # INIT-COMMANDS
20544 #
20545 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20546
20547
20548 # The HP-UX ksh and POSIX shell print the target directory to stdout
20549 # if CDPATH is set.
20550 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20551
20552 sed_quote_subst='$sed_quote_subst'
20553 double_quote_subst='$double_quote_subst'
20554 delay_variable_subst='$delay_variable_subst'
20555 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20556 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20557 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20558 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20559 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20560 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20561 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20562 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20563 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20564 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20565 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20566 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20567 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20568 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20569 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20570 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20571 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20572 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20573 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20574 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20575 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20576 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20577 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20578 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20579 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20580 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20581 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20582 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20583 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20584 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20585 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20586 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20587 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20588 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20589 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20590 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20591 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20592 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20593 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20594 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20595 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20596 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20597 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20598 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20599 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20600 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20601 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20602 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20603 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20604 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20605 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20606 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20607 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20608 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20609 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20610 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20611 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20612 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20613 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"`'
20614 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20615 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20616 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20617 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20618 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20619 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20620 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20621 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20622 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20623 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20624 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20625 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20626 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20627 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20628 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20629 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20630 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20631 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20632 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20633 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20634 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20635 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20636 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20637 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20638 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20639 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20640 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20641 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20642 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20643 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20644 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20645 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20646 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20647 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20648 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20649 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20650 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20651 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20652 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20653 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20654 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20655 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20656 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20657 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20658 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20659 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20660 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20661 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20662 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20663 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20664 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20665 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20666 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20667 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20668 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20669 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20670 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20671 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20672 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20673 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20674 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20675 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20676 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20677 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20678 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20679 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20680 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20681 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20682 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20683 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20684 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20685 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20686 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20687 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20688 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20689 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20690
20691 LTCC='$LTCC'
20692 LTCFLAGS='$LTCFLAGS'
20693 compiler='$compiler_DEFAULT'
20694
20695 # A function that is used when there is no print builtin or printf.
20696 func_fallback_echo ()
20697 {
20698 eval 'cat <<_LTECHO_EOF
20699 \$1
20700 _LTECHO_EOF'
20701 }
20702
20703 # Quote evaled strings.
20704 for var in SHELL \
20705 ECHO \
20706 PATH_SEPARATOR \
20707 SED \
20708 GREP \
20709 EGREP \
20710 FGREP \
20711 LD \
20712 NM \
20713 LN_S \
20714 lt_SP2NL \
20715 lt_NL2SP \
20716 reload_flag \
20717 OBJDUMP \
20718 deplibs_check_method \
20719 file_magic_cmd \
20720 file_magic_glob \
20721 want_nocaseglob \
20722 DLLTOOL \
20723 sharedlib_from_linklib_cmd \
20724 AR \
20725 AR_FLAGS \
20726 archiver_list_spec \
20727 STRIP \
20728 RANLIB \
20729 CC \
20730 CFLAGS \
20731 compiler \
20732 lt_cv_sys_global_symbol_pipe \
20733 lt_cv_sys_global_symbol_to_cdecl \
20734 lt_cv_sys_global_symbol_to_import \
20735 lt_cv_sys_global_symbol_to_c_name_address \
20736 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20737 lt_cv_nm_interface \
20738 nm_file_list_spec \
20739 lt_cv_truncate_bin \
20740 lt_prog_compiler_no_builtin_flag \
20741 lt_prog_compiler_pic \
20742 lt_prog_compiler_wl \
20743 lt_prog_compiler_static \
20744 lt_cv_prog_compiler_c_o \
20745 need_locks \
20746 MANIFEST_TOOL \
20747 DSYMUTIL \
20748 NMEDIT \
20749 LIPO \
20750 OTOOL \
20751 OTOOL64 \
20752 shrext_cmds \
20753 export_dynamic_flag_spec \
20754 whole_archive_flag_spec \
20755 compiler_needs_object \
20756 with_gnu_ld \
20757 allow_undefined_flag \
20758 no_undefined_flag \
20759 hardcode_libdir_flag_spec \
20760 hardcode_libdir_separator \
20761 exclude_expsyms \
20762 include_expsyms \
20763 file_list_spec \
20764 variables_saved_for_relink \
20765 libname_spec \
20766 library_names_spec \
20767 soname_spec \
20768 install_override_mode \
20769 finish_eval \
20770 old_striplib \
20771 striplib; do
20772 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20773 *[\\\\\\\`\\"\\\$]*)
20774 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20775 ;;
20776 *)
20777 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20778 ;;
20779 esac
20780 done
20781
20782 # Double-quote double-evaled strings.
20783 for var in reload_cmds \
20784 old_postinstall_cmds \
20785 old_postuninstall_cmds \
20786 old_archive_cmds \
20787 extract_expsyms_cmds \
20788 old_archive_from_new_cmds \
20789 old_archive_from_expsyms_cmds \
20790 archive_cmds \
20791 archive_expsym_cmds \
20792 module_cmds \
20793 module_expsym_cmds \
20794 export_symbols_cmds \
20795 prelink_cmds \
20796 postlink_cmds \
20797 postinstall_cmds \
20798 postuninstall_cmds \
20799 finish_cmds \
20800 sys_lib_search_path_spec \
20801 configure_time_dlsearch_path \
20802 configure_time_lt_sys_library_path; do
20803 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20804 *[\\\\\\\`\\"\\\$]*)
20805 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20806 ;;
20807 *)
20808 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20809 ;;
20810 esac
20811 done
20812
20813 ac_aux_dir='$ac_aux_dir'
20814
20815 # See if we are running on zsh, and set the options that allow our
20816 # commands through without removal of \ escapes INIT.
20817 if test -n "\${ZSH_VERSION+set}"; then
20818 setopt NO_GLOB_SUBST
20819 fi
20820
20821
20822 PACKAGE='$PACKAGE'
20823 VERSION='$VERSION'
20824 RM='$RM'
20825 ofile='$ofile'
20826
20827
20828
20829
20830 _ACEOF
20831
20832 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20833
20834 # Handling of arguments.
20835 for ac_config_target in $ac_config_targets
20836 do
20837 case $ac_config_target in
20838 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20839 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20840 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20841 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20842 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
20843 "specs/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Makefile" ;;
20844 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20845 "ice.pc") CONFIG_FILES="$CONFIG_FILES ice.pc" ;;
20846
20847 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20848 esac
20849 done
20850
20851
20852 # If the user did not use the arguments to specify the items to instantiate,
20853 # then the envvar interface is used. Set only those that are not.
20854 # We use the long form for the default assignment because of an extremely
20855 # bizarre bug on SunOS 4.1.3.
20856 if $ac_need_defaults; then
20857 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20858 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20859 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20860 fi
20861
20862 # Have a temporary directory for convenience. Make it in the build tree
20863 # simply because there is no reason against having it here, and in addition,
20864 # creating and moving files from /tmp can sometimes cause problems.
20865 # Hook for its removal unless debugging.
20866 # Note that there is a small window in which the directory will not be cleaned:
20867 # after its creation but before its name has been assigned to `$tmp'.
20868 $debug ||
20869 {
20870 tmp= ac_tmp=
20871 trap 'exit_status=$?
20872 : "${ac_tmp:=$tmp}"
20873 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20874 ' 0
20875 trap 'as_fn_exit 1' 1 2 13 15
20876 }
20877 # Create a (secure) tmp directory for tmp files.
20878
20879 {
20880 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20881 test -d "$tmp"
20882 } ||
20883 {
20884 tmp=./conf$$-$RANDOM
20885 (umask 077 && mkdir "$tmp")
20886 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20887 ac_tmp=$tmp
20888
20889 # Set up the scripts for CONFIG_FILES section.
20890 # No need to generate them if there are no CONFIG_FILES.
20891 # This happens for instance with `./config.status config.h'.
20892 if test -n "$CONFIG_FILES"; then
20893
20894
20895 ac_cr=`echo X | tr X '\015'`
20896 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20897 # But we know of no other shell where ac_cr would be empty at this
20898 # point, so we can use a bashism as a fallback.
20899 if test "x$ac_cr" = x; then
20900 eval ac_cr=\$\'\\r\'
20901 fi
20902 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20903 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20904 ac_cs_awk_cr='\\r'
20905 else
20906 ac_cs_awk_cr=$ac_cr
20907 fi
20908
20909 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20910 _ACEOF
20911
20912
20913 {
20914 echo "cat >conf$$subs.awk <<_ACEOF" &&
20915 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20916 echo "_ACEOF"
20917 } >conf$$subs.sh ||
20918 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20919 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20920 ac_delim='%!_!# '
20921 for ac_last_try in false false false false false :; do
20922 . ./conf$$subs.sh ||
20923 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20924
20925 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20926 if test $ac_delim_n = $ac_delim_num; then
20927 break
20928 elif $ac_last_try; then
20929 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20930 else
20931 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20932 fi
20933 done
20934 rm -f conf$$subs.sh
20935
20936 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20937 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20938 _ACEOF
20939 sed -n '
20940 h
20941 s/^/S["/; s/!.*/"]=/
20942 p
20943 g
20944 s/^[^!]*!//
20945 :repl
20946 t repl
20947 s/'"$ac_delim"'$//
20948 t delim
20949 :nl
20950 h
20951 s/\(.\{148\}\)..*/\1/
20952 t more1
20953 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20954 p
20955 n
20956 b repl
20957 :more1
20958 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20959 p
20960 g
20961 s/.\{148\}//
20962 t nl
20963 :delim
20964 h
20965 s/\(.\{148\}\)..*/\1/
20966 t more2
20967 s/["\\]/\\&/g; s/^/"/; s/$/"/
20968 p
20969 b
20970 :more2
20971 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20972 p
20973 g
20974 s/.\{148\}//
20975 t delim
20976 ' <conf$$subs.awk | sed '
20977 /^[^""]/{
20978 N
20979 s/\n//
20980 }
20981 ' >>$CONFIG_STATUS || ac_write_fail=1
20982 rm -f conf$$subs.awk
20983 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20984 _ACAWK
20985 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20986 for (key in S) S_is_set[key] = 1
20987 FS = ""
20988
20989 }
20990 {
20991 line = $ 0
20992 nfields = split(line, field, "@")
20993 substed = 0
20994 len = length(field[1])
20995 for (i = 2; i < nfields; i++) {
20996 key = field[i]
20997 keylen = length(key)
20998 if (S_is_set[key]) {
20999 value = S[key]
21000 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21001 len += length(value) + length(field[++i])
21002 substed = 1
21003 } else
21004 len += 1 + keylen
21005 }
21006
21007 print line
21008 }
21009
21010 _ACAWK
21011 _ACEOF
21012 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21013 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21014 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21015 else
21016 cat
21017 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21018 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21019 _ACEOF
21020
21021 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21022 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21023 # trailing colons and then remove the whole line if VPATH becomes empty
21024 # (actually we leave an empty line to preserve line numbers).
21025 if test "x$srcdir" = x.; then
21026 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
21027 h
21028 s///
21029 s/^/:/
21030 s/[ ]*$/:/
21031 s/:\$(srcdir):/:/g
21032 s/:\${srcdir}:/:/g
21033 s/:@srcdir@:/:/g
21034 s/^:*//
21035 s/:*$//
21036 x
21037 s/\(=[ ]*\).*/\1/
21038 G
21039 s/\n//
21040 s/^[^=]*=[ ]*$//
21041 }'
21042 fi
21043
21044 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21045 fi # test -n "$CONFIG_FILES"
21046
21047 # Set up the scripts for CONFIG_HEADERS section.
21048 # No need to generate them if there are no CONFIG_HEADERS.
21049 # This happens for instance with `./config.status Makefile'.
21050 if test -n "$CONFIG_HEADERS"; then
21051 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21052 BEGIN {
21053 _ACEOF
21054
21055 # Transform confdefs.h into an awk script `defines.awk', embedded as
21056 # here-document in config.status, that substitutes the proper values into
21057 # config.h.in to produce config.h.
21058
21059 # Create a delimiter string that does not exist in confdefs.h, to ease
21060 # handling of long lines.
21061 ac_delim='%!_!# '
21062 for ac_last_try in false false :; do
21063 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21064 if test -z "$ac_tt"; then
21065 break
21066 elif $ac_last_try; then
21067 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21068 else
21069 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21070 fi
21071 done
21072
21073 # For the awk script, D is an array of macro values keyed by name,
21074 # likewise P contains macro parameters if any. Preserve backslash
21075 # newline sequences.
21076
21077 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21078 sed -n '
21079 s/.\{148\}/&'"$ac_delim"'/g
21080 t rset
21081 :rset
21082 s/^[ ]*#[ ]*define[ ][ ]*/ /
21083 t def
21084 d
21085 :def
21086 s/\\$//
21087 t bsnl
21088 s/["\\]/\\&/g
21089 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21090 D["\1"]=" \3"/p
21091 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21092 d
21093 :bsnl
21094 s/["\\]/\\&/g
21095 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21096 D["\1"]=" \3\\\\\\n"\\/p
21097 t cont
21098 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21099 t cont
21100 d
21101 :cont
21102 n
21103 s/.\{148\}/&'"$ac_delim"'/g
21104 t clear
21105 :clear
21106 s/\\$//
21107 t bsnlc
21108 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21109 d
21110 :bsnlc
21111 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21112 b cont
21113 ' <confdefs.h | sed '
21114 s/'"$ac_delim"'/"\\\
21115 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21116
21117 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21118 for (key in D) D_is_set[key] = 1
21119 FS = ""
21120 }
21121 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21122 line = \$ 0
21123 split(line, arg, " ")
21124 if (arg[1] == "#") {
21125 defundef = arg[2]
21126 mac1 = arg[3]
21127 } else {
21128 defundef = substr(arg[1], 2)
21129 mac1 = arg[2]
21130 }
21131 split(mac1, mac2, "(") #)
21132 macro = mac2[1]
21133 prefix = substr(line, 1, index(line, defundef) - 1)
21134 if (D_is_set[macro]) {
21135 # Preserve the white space surrounding the "#".
21136 print prefix "define", macro P[macro] D[macro]
21137 next
21138 } else {
21139 # Replace #undef with comments. This is necessary, for example,
21140 # in the case of _POSIX_SOURCE, which is predefined and required
21141 # on some systems where configure will not decide to define it.
21142 if (defundef == "undef") {
21143 print "/*", prefix defundef, macro, "*/"
21144 next
21145 }
21146 }
21147 }
21148 { print }
21149 _ACAWK
21150 _ACEOF
21151 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21152 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21153 fi # test -n "$CONFIG_HEADERS"
21154
21155
21156 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21157 shift
21158 for ac_tag
21159 do
21160 case $ac_tag in
21161 :[FHLC]) ac_mode=$ac_tag; continue;;
21162 esac
21163 case $ac_mode$ac_tag in
21164 :[FHL]*:*);;
21165 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21166 :[FH]-) ac_tag=-:-;;
21167 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21168 esac
21169 ac_save_IFS=$IFS
21170 IFS=:
21171 set x $ac_tag
21172 IFS=$ac_save_IFS
21173 shift
21174 ac_file=$1
21175 shift
21176
21177 case $ac_mode in
21178 :L) ac_source=$1;;
21179 :[FH])
21180 ac_file_inputs=
21181 for ac_f
21182 do
21183 case $ac_f in
21184 -) ac_f="$ac_tmp/stdin";;
21185 *) # Look for the file first in the build tree, then in the source tree
21186 # (if the path is not absolute). The absolute path cannot be DOS-style,
21187 # because $ac_f cannot contain `:'.
21188 test -f "$ac_f" ||
21189 case $ac_f in
21190 [\\/$]*) false;;
21191 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21192 esac ||
21193 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21194 esac
21195 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21196 as_fn_append ac_file_inputs " '$ac_f'"
21197 done
21198
21199 # Let's still pretend it is `configure' which instantiates (i.e., don't
21200 # use $as_me), people would be surprised to read:
21201 # /* config.h. Generated by config.status. */
21202 configure_input='Generated from '`
21203 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21204 `' by configure.'
21205 if test x"$ac_file" != x-; then
21206 configure_input="$ac_file. $configure_input"
21207 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21208 $as_echo "$as_me: creating $ac_file" >&6;}
21209 fi
21210 # Neutralize special characters interpreted by sed in replacement strings.
21211 case $configure_input in #(
21212 *\&* | *\|* | *\\* )
21213 ac_sed_conf_input=`$as_echo "$configure_input" |
21214 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21215 *) ac_sed_conf_input=$configure_input;;
21216 esac
21217
21218 case $ac_tag in
21219 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21220 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21221 esac
21222 ;;
21223 esac
21224
21225 ac_dir=`$as_dirname -- "$ac_file" ||
21226 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21227 X"$ac_file" : 'X\(//\)[^/]' \| \
21228 X"$ac_file" : 'X\(//\)$' \| \
21229 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21230 $as_echo X"$ac_file" |
21231 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21232 s//\1/
21233 q
21234 }
21235 /^X\(\/\/\)[^/].*/{
21236 s//\1/
21237 q
21238 }
21239 /^X\(\/\/\)$/{
21240 s//\1/
21241 q
21242 }
21243 /^X\(\/\).*/{
21244 s//\1/
21245 q
21246 }
21247 s/.*/./; q'`
21248 as_dir="$ac_dir"; as_fn_mkdir_p
21249 ac_builddir=.
21250
21251 case "$ac_dir" in
21252 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21253 *)
21254 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21255 # A ".." for each directory in $ac_dir_suffix.
21256 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21257 case $ac_top_builddir_sub in
21258 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21259 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21260 esac ;;
21261 esac
21262 ac_abs_top_builddir=$ac_pwd
21263 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21264 # for backward compatibility:
21265 ac_top_builddir=$ac_top_build_prefix
21266
21267 case $srcdir in
21268 .) # We are building in place.
21269 ac_srcdir=.
21270 ac_top_srcdir=$ac_top_builddir_sub
21271 ac_abs_top_srcdir=$ac_pwd ;;
21272 [\\/]* | ?:[\\/]* ) # Absolute name.
21273 ac_srcdir=$srcdir$ac_dir_suffix;
21274 ac_top_srcdir=$srcdir
21275 ac_abs_top_srcdir=$srcdir ;;
21276 *) # Relative name.
21277 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21278 ac_top_srcdir=$ac_top_build_prefix$srcdir
21279 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21280 esac
21281 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21282
21283
21284 case $ac_mode in
21285 :F)
21286 #
21287 # CONFIG_FILE
21288 #
21289
21290 case $INSTALL in
21291 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21292 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21293 esac
21294 ac_MKDIR_P=$MKDIR_P
21295 case $MKDIR_P in
21296 [\\/$]* | ?:[\\/]* ) ;;
21297 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21298 esac
21299 _ACEOF
21300
21301 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21302 # If the template does not know about datarootdir, expand it.
21303 # FIXME: This hack should be removed a few years after 2.60.
21304 ac_datarootdir_hack=; ac_datarootdir_seen=
21305 ac_sed_dataroot='
21306 /datarootdir/ {
21307 p
21308 q
21309 }
21310 /@datadir@/p
21311 /@docdir@/p
21312 /@infodir@/p
21313 /@localedir@/p
21314 /@mandir@/p'
21315 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21316 *datarootdir*) ac_datarootdir_seen=yes;;
21317 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21319 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21320 _ACEOF
21321 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21322 ac_datarootdir_hack='
21323 s&@datadir@&$datadir&g
21324 s&@docdir@&$docdir&g
21325 s&@infodir@&$infodir&g
21326 s&@localedir@&$localedir&g
21327 s&@mandir@&$mandir&g
21328 s&\\\${datarootdir}&$datarootdir&g' ;;
21329 esac
21330 _ACEOF
21331
21332 # Neutralize VPATH when `$srcdir' = `.'.
21333 # Shell code in configure.ac might set extrasub.
21334 # FIXME: do we really want to maintain this feature?
21335 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21336 ac_sed_extra="$ac_vpsub
21337 $extrasub
21338 _ACEOF
21339 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21340 :t
21341 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21342 s|@configure_input@|$ac_sed_conf_input|;t t
21343 s&@top_builddir@&$ac_top_builddir_sub&;t t
21344 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21345 s&@srcdir@&$ac_srcdir&;t t
21346 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21347 s&@top_srcdir@&$ac_top_srcdir&;t t
21348 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21349 s&@builddir@&$ac_builddir&;t t
21350 s&@abs_builddir@&$ac_abs_builddir&;t t
21351 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21352 s&@INSTALL@&$ac_INSTALL&;t t
21353 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21354 $ac_datarootdir_hack
21355 "
21356 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21357 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21358
21359 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21360 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21361 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21362 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21364 which seems to be undefined. Please make sure it is defined" >&5
21365 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21366 which seems to be undefined. Please make sure it is defined" >&2;}
21367
21368 rm -f "$ac_tmp/stdin"
21369 case $ac_file in
21370 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21371 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21372 esac \
21373 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21374 ;;
21375 :H)
21376 #
21377 # CONFIG_HEADER
21378 #
21379 if test x"$ac_file" != x-; then
21380 {
21381 $as_echo "/* $configure_input */" \
21382 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21383 } >"$ac_tmp/config.h" \
21384 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21385 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21386 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21387 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21388 else
21389 rm -f "$ac_file"
21390 mv "$ac_tmp/config.h" "$ac_file" \
21391 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21392 fi
21393 else
21394 $as_echo "/* $configure_input */" \
21395 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21396 || as_fn_error $? "could not create -" "$LINENO" 5
21397 fi
21398 # Compute "$ac_file"'s index in $config_headers.
21399 _am_arg="$ac_file"
21400 _am_stamp_count=1
21401 for _am_header in $config_headers :; do
21402 case $_am_header in
21403 $_am_arg | $_am_arg:* )
21404 break ;;
21405 * )
21406 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21407 esac
21408 done
21409 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21410 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21411 X"$_am_arg" : 'X\(//\)[^/]' \| \
21412 X"$_am_arg" : 'X\(//\)$' \| \
21413 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21414 $as_echo X"$_am_arg" |
21415 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21416 s//\1/
21417 q
21418 }
21419 /^X\(\/\/\)[^/].*/{
21420 s//\1/
21421 q
21422 }
21423 /^X\(\/\/\)$/{
21424 s//\1/
21425 q
21426 }
21427 /^X\(\/\).*/{
21428 s//\1/
21429 q
21430 }
21431 s/.*/./; q'`/stamp-h$_am_stamp_count
21432 ;;
21433
21434 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21435 $as_echo "$as_me: executing $ac_file commands" >&6;}
21436 ;;
21437 esac
21438
21439
21440 case $ac_file$ac_mode in
21441 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21442 # Older Autoconf quotes --file arguments for eval, but not when files
21443 # are listed without --file. Let's play safe and only enable the eval
21444 # if we detect the quoting.
21445 case $CONFIG_FILES in
21446 *\'*) eval set x "$CONFIG_FILES" ;;
21447 *) set x $CONFIG_FILES ;;
21448 esac
21449 shift
21450 for mf
21451 do
21452 # Strip MF so we end up with the name of the file.
21453 mf=`echo "$mf" | sed -e 's/:.*$//'`
21454 # Check whether this is an Automake generated Makefile or not.
21455 # We used to match only the files named 'Makefile.in', but
21456 # some people rename them; so instead we look at the file content.
21457 # Grep'ing the first line is not enough: some people post-process
21458 # each Makefile.in and add a new line on top of each file to say so.
21459 # Grep'ing the whole file is not good either: AIX grep has a line
21460 # limit of 2048, but all sed's we know have understand at least 4000.
21461 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21462 dirpart=`$as_dirname -- "$mf" ||
21463 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21464 X"$mf" : 'X\(//\)[^/]' \| \
21465 X"$mf" : 'X\(//\)$' \| \
21466 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21467 $as_echo X"$mf" |
21468 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21469 s//\1/
21470 q
21471 }
21472 /^X\(\/\/\)[^/].*/{
21473 s//\1/
21474 q
21475 }
21476 /^X\(\/\/\)$/{
21477 s//\1/
21478 q
21479 }
21480 /^X\(\/\).*/{
21481 s//\1/
21482 q
21483 }
21484 s/.*/./; q'`
21485 else
21486 continue
21487 fi
21488 # Extract the definition of DEPDIR, am__include, and am__quote
21489 # from the Makefile without running 'make'.
21490 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21491 test -z "$DEPDIR" && continue
21492 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21493 test -z "$am__include" && continue
21494 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21495 # Find all dependency output files, they are included files with
21496 # $(DEPDIR) in their names. We invoke sed twice because it is the
21497 # simplest approach to changing $(DEPDIR) to its actual value in the
21498 # expansion.
21499 for file in `sed -n "
21500 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21501 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
21502 # Make sure the directory exists.
21503 test -f "$dirpart/$file" && continue
21504 fdir=`$as_dirname -- "$file" ||
21505 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21506 X"$file" : 'X\(//\)[^/]' \| \
21507 X"$file" : 'X\(//\)$' \| \
21508 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21509 $as_echo X"$file" |
21510 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21511 s//\1/
21512 q
21513 }
21514 /^X\(\/\/\)[^/].*/{
21515 s//\1/
21516 q
21517 }
21518 /^X\(\/\/\)$/{
21519 s//\1/
21520 q
21521 }
21522 /^X\(\/\).*/{
21523 s//\1/
21524 q
21525 }
21526 s/.*/./; q'`
21527 as_dir=$dirpart/$fdir; as_fn_mkdir_p
21528 # echo "creating $dirpart/$file"
21529 echo '# dummy' > "$dirpart/$file"
21530 done
21531 done
21532 }
21533 ;;
21534 "libtool":C)
21535
21536 # See if we are running on zsh, and set the options that allow our
21537 # commands through without removal of \ escapes.
21538 if test -n "${ZSH_VERSION+set}"; then
21539 setopt NO_GLOB_SUBST
21540 fi
21541
21542 cfgfile=${ofile}T
21543 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21544 $RM "$cfgfile"
21545
21546 cat <<_LT_EOF >> "$cfgfile"
21547 #! $SHELL
21548 # Generated automatically by $as_me ($PACKAGE) $VERSION
21549 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21550 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21551
21552 # Provide generalized library-building support services.
21553 # Written by Gordon Matzigkeit, 1996
21554
21555 # Copyright (C) 2014 Free Software Foundation, Inc.
21556 # This is free software; see the source for copying conditions. There is NO
21557 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21558
21559 # GNU Libtool is free software; you can redistribute it and/or modify
21560 # it under the terms of the GNU General Public License as published by
21561 # the Free Software Foundation; either version 2 of of the License, or
21562 # (at your option) any later version.
21563 #
21564 # As a special exception to the GNU General Public License, if you
21565 # distribute this file as part of a program or library that is built
21566 # using GNU Libtool, you may include this file under the same
21567 # distribution terms that you use for the rest of that program.
21568 #
21569 # GNU Libtool is distributed in the hope that it will be useful, but
21570 # WITHOUT ANY WARRANTY; without even the implied warranty of
21571 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21572 # GNU General Public License for more details.
21573 #
21574 # You should have received a copy of the GNU General Public License
21575 # along with this program. If not, see <http://www.gnu.org/licenses/>.
21576
21577
21578 # The names of the tagged configurations supported by this script.
21579 available_tags=''
21580
21581 # Configured defaults for sys_lib_dlsearch_path munging.
21582 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21583
21584 # ### BEGIN LIBTOOL CONFIG
21585
21586 # Which release of libtool.m4 was used?
21587 macro_version=$macro_version
21588 macro_revision=$macro_revision
21589
21590 # Whether or not to build shared libraries.
21591 build_libtool_libs=$enable_shared
21592
21593 # Whether or not to build static libraries.
21594 build_old_libs=$enable_static
21595
21596 # What type of objects to build.
21597 pic_mode=$pic_mode
21598
21599 # Whether or not to optimize for fast installation.
21600 fast_install=$enable_fast_install
21601
21602 # Shared archive member basename,for filename based shared library versioning on AIX.
21603 shared_archive_member_spec=$shared_archive_member_spec
21604
21605 # Shell to use when invoking shell scripts.
21606 SHELL=$lt_SHELL
21607
21608 # An echo program that protects backslashes.
21609 ECHO=$lt_ECHO
21610
21611 # The PATH separator for the build system.
21612 PATH_SEPARATOR=$lt_PATH_SEPARATOR
21613
21614 # The host system.
21615 host_alias=$host_alias
21616 host=$host
21617 host_os=$host_os
21618
21619 # The build system.
21620 build_alias=$build_alias
21621 build=$build
21622 build_os=$build_os
21623
21624 # A sed program that does not truncate output.
21625 SED=$lt_SED
21626
21627 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21628 Xsed="\$SED -e 1s/^X//"
21629
21630 # A grep program that handles long lines.
21631 GREP=$lt_GREP
21632
21633 # An ERE matcher.
21634 EGREP=$lt_EGREP
21635
21636 # A literal string matcher.
21637 FGREP=$lt_FGREP
21638
21639 # A BSD- or MS-compatible name lister.
21640 NM=$lt_NM
21641
21642 # Whether we need soft or hard links.
21643 LN_S=$lt_LN_S
21644
21645 # What is the maximum length of a command?
21646 max_cmd_len=$max_cmd_len
21647
21648 # Object file suffix (normally "o").
21649 objext=$ac_objext
21650
21651 # Executable file suffix (normally "").
21652 exeext=$exeext
21653
21654 # whether the shell understands "unset".
21655 lt_unset=$lt_unset
21656
21657 # turn spaces into newlines.
21658 SP2NL=$lt_lt_SP2NL
21659
21660 # turn newlines into spaces.
21661 NL2SP=$lt_lt_NL2SP
21662
21663 # convert \$build file names to \$host format.
21664 to_host_file_cmd=$lt_cv_to_host_file_cmd
21665
21666 # convert \$build files to toolchain format.
21667 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21668
21669 # An object symbol dumper.
21670 OBJDUMP=$lt_OBJDUMP
21671
21672 # Method to check whether dependent libraries are shared objects.
21673 deplibs_check_method=$lt_deplibs_check_method
21674
21675 # Command to use when deplibs_check_method = "file_magic".
21676 file_magic_cmd=$lt_file_magic_cmd
21677
21678 # How to find potential files when deplibs_check_method = "file_magic".
21679 file_magic_glob=$lt_file_magic_glob
21680
21681 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21682 want_nocaseglob=$lt_want_nocaseglob
21683
21684 # DLL creation program.
21685 DLLTOOL=$lt_DLLTOOL
21686
21687 # Command to associate shared and link libraries.
21688 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21689
21690 # The archiver.
21691 AR=$lt_AR
21692
21693 # Flags to create an archive.
21694 AR_FLAGS=$lt_AR_FLAGS
21695
21696 # How to feed a file listing to the archiver.
21697 archiver_list_spec=$lt_archiver_list_spec
21698
21699 # A symbol stripping program.
21700 STRIP=$lt_STRIP
21701
21702 # Commands used to install an old-style archive.
21703 RANLIB=$lt_RANLIB
21704 old_postinstall_cmds=$lt_old_postinstall_cmds
21705 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21706
21707 # Whether to use a lock for old archive extraction.
21708 lock_old_archive_extraction=$lock_old_archive_extraction
21709
21710 # A C compiler.
21711 LTCC=$lt_CC
21712
21713 # LTCC compiler flags.
21714 LTCFLAGS=$lt_CFLAGS
21715
21716 # Take the output of nm and produce a listing of raw symbols and C names.
21717 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21718
21719 # Transform the output of nm in a proper C declaration.
21720 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21721
21722 # Transform the output of nm into a list of symbols to manually relocate.
21723 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
21724
21725 # Transform the output of nm in a C name address pair.
21726 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21727
21728 # Transform the output of nm in a C name address pair when lib prefix is needed.
21729 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21730
21731 # The name lister interface.
21732 nm_interface=$lt_lt_cv_nm_interface
21733
21734 # Specify filename containing input files for \$NM.
21735 nm_file_list_spec=$lt_nm_file_list_spec
21736
21737 # The root where to search for dependent libraries,and where our libraries should be installed.
21738 lt_sysroot=$lt_sysroot
21739
21740 # Command to truncate a binary pipe.
21741 lt_truncate_bin=$lt_lt_cv_truncate_bin
21742
21743 # The name of the directory that contains temporary libtool files.
21744 objdir=$objdir
21745
21746 # Used to examine libraries when file_magic_cmd begins with "file".
21747 MAGIC_CMD=$MAGIC_CMD
21748
21749 # Must we lock files when doing compilation?
21750 need_locks=$lt_need_locks
21751
21752 # Manifest tool.
21753 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21754
21755 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21756 DSYMUTIL=$lt_DSYMUTIL
21757
21758 # Tool to change global to local symbols on Mac OS X.
21759 NMEDIT=$lt_NMEDIT
21760
21761 # Tool to manipulate fat objects and archives on Mac OS X.
21762 LIPO=$lt_LIPO
21763
21764 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21765 OTOOL=$lt_OTOOL
21766
21767 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21768 OTOOL64=$lt_OTOOL64
21769
21770 # Old archive suffix (normally "a").
21771 libext=$libext
21772
21773 # Shared library suffix (normally ".so").
21774 shrext_cmds=$lt_shrext_cmds
21775
21776 # The commands to extract the exported symbol list from a shared archive.
21777 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21778
21779 # Variables whose values should be saved in libtool wrapper scripts and
21780 # restored at link time.
21781 variables_saved_for_relink=$lt_variables_saved_for_relink
21782
21783 # Do we need the "lib" prefix for modules?
21784 need_lib_prefix=$need_lib_prefix
21785
21786 # Do we need a version for libraries?
21787 need_version=$need_version
21788
21789 # Library versioning type.
21790 version_type=$version_type
21791
21792 # Shared library runtime path variable.
21793 runpath_var=$runpath_var
21794
21795 # Shared library path variable.
21796 shlibpath_var=$shlibpath_var
21797
21798 # Is shlibpath searched before the hard-coded library search path?
21799 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21800
21801 # Format of library name prefix.
21802 libname_spec=$lt_libname_spec
21803
21804 # List of archive names. First name is the real one, the rest are links.
21805 # The last name is the one that the linker finds with -lNAME
21806 library_names_spec=$lt_library_names_spec
21807
21808 # The coded name of the library, if different from the real name.
21809 soname_spec=$lt_soname_spec
21810
21811 # Permission mode override for installation of shared libraries.
21812 install_override_mode=$lt_install_override_mode
21813
21814 # Command to use after installation of a shared archive.
21815 postinstall_cmds=$lt_postinstall_cmds
21816
21817 # Command to use after uninstallation of a shared archive.
21818 postuninstall_cmds=$lt_postuninstall_cmds
21819
21820 # Commands used to finish a libtool library installation in a directory.
21821 finish_cmds=$lt_finish_cmds
21822
21823 # As "finish_cmds", except a single script fragment to be evaled but
21824 # not shown.
21825 finish_eval=$lt_finish_eval
21826
21827 # Whether we should hardcode library paths into libraries.
21828 hardcode_into_libs=$hardcode_into_libs
21829
21830 # Compile-time system search path for libraries.
21831 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21832
21833 # Detected run-time system search path for libraries.
21834 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
21835
21836 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
21837 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
21838
21839 # Whether dlopen is supported.
21840 dlopen_support=$enable_dlopen
21841
21842 # Whether dlopen of programs is supported.
21843 dlopen_self=$enable_dlopen_self
21844
21845 # Whether dlopen of statically linked programs is supported.
21846 dlopen_self_static=$enable_dlopen_self_static
21847
21848 # Commands to strip libraries.
21849 old_striplib=$lt_old_striplib
21850 striplib=$lt_striplib
21851
21852
21853 # The linker used to build libraries.
21854 LD=$lt_LD
21855
21856 # How to create reloadable object files.
21857 reload_flag=$lt_reload_flag
21858 reload_cmds=$lt_reload_cmds
21859
21860 # Commands used to build an old-style archive.
21861 old_archive_cmds=$lt_old_archive_cmds
21862
21863 # A language specific compiler.
21864 CC=$lt_compiler
21865
21866 # Is the compiler the GNU compiler?
21867 with_gcc=$GCC
21868
21869 # Compiler flag to turn off builtin functions.
21870 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21871
21872 # Additional compiler flags for building library objects.
21873 pic_flag=$lt_lt_prog_compiler_pic
21874
21875 # How to pass a linker flag through the compiler.
21876 wl=$lt_lt_prog_compiler_wl
21877
21878 # Compiler flag to prevent dynamic linking.
21879 link_static_flag=$lt_lt_prog_compiler_static
21880
21881 # Does compiler simultaneously support -c and -o options?
21882 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21883
21884 # Whether or not to add -lc for building shared libraries.
21885 build_libtool_need_lc=$archive_cmds_need_lc
21886
21887 # Whether or not to disallow shared libs when runtime libs are static.
21888 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21889
21890 # Compiler flag to allow reflexive dlopens.
21891 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21892
21893 # Compiler flag to generate shared objects directly from archives.
21894 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21895
21896 # Whether the compiler copes with passing no objects directly.
21897 compiler_needs_object=$lt_compiler_needs_object
21898
21899 # Create an old-style archive from a shared archive.
21900 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21901
21902 # Create a temporary old-style archive to link instead of a shared archive.
21903 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21904
21905 # Commands used to build a shared archive.
21906 archive_cmds=$lt_archive_cmds
21907 archive_expsym_cmds=$lt_archive_expsym_cmds
21908
21909 # Commands used to build a loadable module if different from building
21910 # a shared archive.
21911 module_cmds=$lt_module_cmds
21912 module_expsym_cmds=$lt_module_expsym_cmds
21913
21914 # Whether we are building with GNU ld or not.
21915 with_gnu_ld=$lt_with_gnu_ld
21916
21917 # Flag that allows shared libraries with undefined symbols to be built.
21918 allow_undefined_flag=$lt_allow_undefined_flag
21919
21920 # Flag that enforces no undefined symbols.
21921 no_undefined_flag=$lt_no_undefined_flag
21922
21923 # Flag to hardcode \$libdir into a binary during linking.
21924 # This must work even if \$libdir does not exist
21925 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21926
21927 # Whether we need a single "-rpath" flag with a separated argument.
21928 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21929
21930 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21931 # DIR into the resulting binary.
21932 hardcode_direct=$hardcode_direct
21933
21934 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21935 # DIR into the resulting binary and the resulting library dependency is
21936 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
21937 # library is relocated.
21938 hardcode_direct_absolute=$hardcode_direct_absolute
21939
21940 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21941 # into the resulting binary.
21942 hardcode_minus_L=$hardcode_minus_L
21943
21944 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21945 # into the resulting binary.
21946 hardcode_shlibpath_var=$hardcode_shlibpath_var
21947
21948 # Set to "yes" if building a shared library automatically hardcodes DIR
21949 # into the library and all subsequent libraries and executables linked
21950 # against it.
21951 hardcode_automatic=$hardcode_automatic
21952
21953 # Set to yes if linker adds runtime paths of dependent libraries
21954 # to runtime path list.
21955 inherit_rpath=$inherit_rpath
21956
21957 # Whether libtool must link a program against all its dependency libraries.
21958 link_all_deplibs=$link_all_deplibs
21959
21960 # Set to "yes" if exported symbols are required.
21961 always_export_symbols=$always_export_symbols
21962
21963 # The commands to list exported symbols.
21964 export_symbols_cmds=$lt_export_symbols_cmds
21965
21966 # Symbols that should not be listed in the preloaded symbols.
21967 exclude_expsyms=$lt_exclude_expsyms
21968
21969 # Symbols that must always be exported.
21970 include_expsyms=$lt_include_expsyms
21971
21972 # Commands necessary for linking programs (against libraries) with templates.
21973 prelink_cmds=$lt_prelink_cmds
21974
21975 # Commands necessary for finishing linking programs.
21976 postlink_cmds=$lt_postlink_cmds
21977
21978 # Specify filename containing input files.
21979 file_list_spec=$lt_file_list_spec
21980
21981 # How to hardcode a shared library path into an executable.
21982 hardcode_action=$hardcode_action
21983
21984 # ### END LIBTOOL CONFIG
21985
21986 _LT_EOF
21987
21988 cat <<'_LT_EOF' >> "$cfgfile"
21989
21990 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
21991
21992 # func_munge_path_list VARIABLE PATH
21993 # -----------------------------------
21994 # VARIABLE is name of variable containing _space_ separated list of
21995 # directories to be munged by the contents of PATH, which is string
21996 # having a format:
21997 # "DIR[:DIR]:"
21998 # string "DIR[ DIR]" will be prepended to VARIABLE
21999 # ":DIR[:DIR]"
22000 # string "DIR[ DIR]" will be appended to VARIABLE
22001 # "DIRP[:DIRP]::[DIRA:]DIRA"
22002 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
22003 # "DIRA[ DIRA]" will be appended to VARIABLE
22004 # "DIR[:DIR]"
22005 # VARIABLE will be replaced by "DIR[ DIR]"
22006 func_munge_path_list ()
22007 {
22008 case x$2 in
22009 x)
22010 ;;
22011 *:)
22012 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
22013 ;;
22014 x:*)
22015 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
22016 ;;
22017 *::*)
22018 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
22019 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
22020 ;;
22021 *)
22022 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
22023 ;;
22024 esac
22025 }
22026
22027
22028 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
22029 func_cc_basename ()
22030 {
22031 for cc_temp in $*""; do
22032 case $cc_temp in
22033 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22034 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22035 \-*) ;;
22036 *) break;;
22037 esac
22038 done
22039 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
22040 }
22041
22042
22043 # ### END FUNCTIONS SHARED WITH CONFIGURE
22044
22045 _LT_EOF
22046
22047 case $host_os in
22048 aix3*)
22049 cat <<\_LT_EOF >> "$cfgfile"
22050 # AIX sometimes has problems with the GCC collect2 program. For some
22051 # reason, if we set the COLLECT_NAMES environment variable, the problems
22052 # vanish in a puff of smoke.
22053 if test set != "${COLLECT_NAMES+set}"; then
22054 COLLECT_NAMES=
22055 export COLLECT_NAMES
22056 fi
22057 _LT_EOF
22058 ;;
22059 esac
22060
22061
22062 ltmain=$ac_aux_dir/ltmain.sh
22063
22064
22065 # We use sed instead of cat because bash on DJGPP gets confused if
22066 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22067 # text mode, it properly converts lines to CR/LF. This bash problem
22068 # is reportedly fixed, but why not run on old versions too?
22069 sed '$q' "$ltmain" >> "$cfgfile" \
22070 || (rm -f "$cfgfile"; exit 1)
22071
22072 mv -f "$cfgfile" "$ofile" ||
22073 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22074 chmod +x "$ofile"
22075
22076 ;;
22077
22078 esac
22079 done # for ac_tag
22080
22081
22082 as_fn_exit 0
22083 _ACEOF
22084 ac_clean_files=$ac_clean_files_save
22085
22086 test $ac_write_fail = 0 ||
22087 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22088
22089
22090 # configure is writing to config.log, and then calls config.status.
22091 # config.status does its own redirection, appending to config.log.
22092 # Unfortunately, on DOS this fails, as config.log is still kept open
22093 # by configure, so config.status won't be able to write to it; its
22094 # output is simply discarded. So we exec the FD to /dev/null,
22095 # effectively closing config.log, so it can be properly (re)opened and
22096 # appended to by config.status. When coming back to configure, we
22097 # need to make the FD available again.
22098 if test "$no_create" != yes; then
22099 ac_cs_success=:
22100 ac_config_status_args=
22101 test "$silent" = yes &&
22102 ac_config_status_args="$ac_config_status_args --quiet"
22103 exec 5>/dev/null
22104 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22105 exec 5>>config.log
22106 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22107 # would make configure fail if this is the last instruction.
22108 $ac_cs_success || as_fn_exit 1
22109 fi
22110 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22112 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22113 fi
22114
22115