configure revision 1.1.1.13 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libXi 1.7.7.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
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
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || 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://bugs.freedesktop.org/enter_bug.cgi?product=xorg
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='libXi'
653 PACKAGE_TARNAME='libXi'
654 PACKAGE_VERSION='1.7.7'
655 PACKAGE_STRING='libXi 1.7.7'
656 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
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 INSTALL_MANPAGES_FALSE
701 INSTALL_MANPAGES_TRUE
702 HAVE_DOCTOOLS_FALSE
703 HAVE_DOCTOOLS_TRUE
704 XFIXES_LIBS
705 XFIXES_CFLAGS
706 XI_LIBS
707 XI_CFLAGS
708 XTMALLOC_ZERO_CFLAGS
709 XMALLOC_ZERO_CFLAGS
710 MALLOC_ZERO_CFLAGS
711 HAVE_ASCIIDOC_FALSE
712 HAVE_ASCIIDOC_TRUE
713 ASCIIDOC
714 HAVE_STYLESHEETS_FALSE
715 HAVE_STYLESHEETS_TRUE
716 XSL_STYLESHEET
717 STYLESHEET_SRCDIR
718 XORG_SGML_PATH
719 HAVE_XSLTPROC_FALSE
720 HAVE_XSLTPROC_TRUE
721 XSLTPROC
722 HAVE_FOP_FALSE
723 HAVE_FOP_TRUE
724 FOP
725 HAVE_XMLTO_FALSE
726 HAVE_XMLTO_TRUE
727 HAVE_XMLTO_TEXT_FALSE
728 HAVE_XMLTO_TEXT_TRUE
729 XMLTO
730 ENABLE_SPECS_FALSE
731 ENABLE_SPECS_TRUE
732 ENABLE_DOCS_FALSE
733 ENABLE_DOCS_TRUE
734 MAN_SUBSTS
735 XORG_MAN_PAGE
736 ADMIN_MAN_DIR
737 DRIVER_MAN_DIR
738 MISC_MAN_DIR
739 FILE_MAN_DIR
740 LIB_MAN_DIR
741 APP_MAN_DIR
742 ADMIN_MAN_SUFFIX
743 DRIVER_MAN_SUFFIX
744 MISC_MAN_SUFFIX
745 FILE_MAN_SUFFIX
746 LIB_MAN_SUFFIX
747 APP_MAN_SUFFIX
748 INSTALL_CMD
749 PKG_CONFIG_LIBDIR
750 PKG_CONFIG_PATH
751 PKG_CONFIG
752 CHANGELOG_CMD
753 STRICT_CFLAGS
754 CWARNFLAGS
755 BASE_CFLAGS
756 CPP
757 OTOOL64
758 OTOOL
759 LIPO
760 NMEDIT
761 DSYMUTIL
762 MANIFEST_TOOL
763 RANLIB
764 ac_ct_AR
765 AR
766 DLLTOOL
767 OBJDUMP
768 LN_S
769 NM
770 ac_ct_DUMPBIN
771 DUMPBIN
772 LD
773 FGREP
774 EGREP
775 GREP
776 SED
777 am__fastdepCC_FALSE
778 am__fastdepCC_TRUE
779 CCDEPMODE
780 am__nodep
781 AMDEPBACKSLASH
782 AMDEP_FALSE
783 AMDEP_TRUE
784 am__quote
785 am__include
786 DEPDIR
787 OBJEXT
788 EXEEXT
789 ac_ct_CC
790 CPPFLAGS
791 LDFLAGS
792 CFLAGS
793 CC
794 host_os
795 host_vendor
796 host_cpu
797 host
798 build_os
799 build_vendor
800 build_cpu
801 build
802 LIBTOOL
803 AM_BACKSLASH
804 AM_DEFAULT_VERBOSITY
805 AM_DEFAULT_V
806 AM_V
807 am__untar
808 am__tar
809 AMTAR
810 am__leading_dot
811 SET_MAKE
812 AWK
813 mkdir_p
814 MKDIR_P
815 INSTALL_STRIP_PROGRAM
816 STRIP
817 install_sh
818 MAKEINFO
819 AUTOHEADER
820 AUTOMAKE
821 AUTOCONF
822 ACLOCAL
823 VERSION
824 PACKAGE
825 CYGPATH_W
826 am__isrc
827 INSTALL_DATA
828 INSTALL_SCRIPT
829 INSTALL_PROGRAM
830 target_alias
831 host_alias
832 build_alias
833 LIBS
834 ECHO_T
835 ECHO_N
836 ECHO_C
837 DEFS
838 mandir
839 localedir
840 libdir
841 psdir
842 pdfdir
843 dvidir
844 htmldir
845 infodir
846 docdir
847 oldincludedir
848 includedir
849 localstatedir
850 sharedstatedir
851 sysconfdir
852 datadir
853 datarootdir
854 libexecdir
855 sbindir
856 bindir
857 program_transform_name
858 prefix
859 exec_prefix
860 PACKAGE_URL
861 PACKAGE_BUGREPORT
862 PACKAGE_STRING
863 PACKAGE_VERSION
864 PACKAGE_TARNAME
865 PACKAGE_NAME
866 PATH_SEPARATOR
867 SHELL'
868 ac_subst_files=''
869 ac_user_opts='
870 enable_option_checking
871 enable_silent_rules
872 enable_shared
873 enable_static
874 with_pic
875 enable_fast_install
876 enable_dependency_tracking
877 with_gnu_ld
878 with_sysroot
879 enable_libtool_lock
880 enable_selective_werror
881 enable_strict_compilation
882 enable_docs
883 enable_specs
884 with_xmlto
885 with_fop
886 with_xsltproc
887 with_asciidoc
888 enable_malloc0returnsnull
889 '
890 ac_precious_vars='build_alias
891 host_alias
892 target_alias
893 CC
894 CFLAGS
895 LDFLAGS
896 LIBS
897 CPPFLAGS
898 CPP
899 PKG_CONFIG
900 PKG_CONFIG_PATH
901 PKG_CONFIG_LIBDIR
902 XMLTO
903 FOP
904 XSLTPROC
905 ASCIIDOC
906 XI_CFLAGS
907 XI_LIBS
908 XFIXES_CFLAGS
909 XFIXES_LIBS'
910
911
912 # Initialize some variables set by options.
913 ac_init_help=
914 ac_init_version=false
915 ac_unrecognized_opts=
916 ac_unrecognized_sep=
917 # The variables have the same names as the options, with
918 # dashes changed to underlines.
919 cache_file=/dev/null
920 exec_prefix=NONE
921 no_create=
922 no_recursion=
923 prefix=NONE
924 program_prefix=NONE
925 program_suffix=NONE
926 program_transform_name=s,x,x,
927 silent=
928 site=
929 srcdir=
930 verbose=
931 x_includes=NONE
932 x_libraries=NONE
933
934 # Installation directory options.
935 # These are left unexpanded so users can "make install exec_prefix=/foo"
936 # and all the variables that are supposed to be based on exec_prefix
937 # by default will actually change.
938 # Use braces instead of parens because sh, perl, etc. also accept them.
939 # (The list follows the same order as the GNU Coding Standards.)
940 bindir='${exec_prefix}/bin'
941 sbindir='${exec_prefix}/sbin'
942 libexecdir='${exec_prefix}/libexec'
943 datarootdir='${prefix}/share'
944 datadir='${datarootdir}'
945 sysconfdir='${prefix}/etc'
946 sharedstatedir='${prefix}/com'
947 localstatedir='${prefix}/var'
948 includedir='${prefix}/include'
949 oldincludedir='/usr/include'
950 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
951 infodir='${datarootdir}/info'
952 htmldir='${docdir}'
953 dvidir='${docdir}'
954 pdfdir='${docdir}'
955 psdir='${docdir}'
956 libdir='${exec_prefix}/lib'
957 localedir='${datarootdir}/locale'
958 mandir='${datarootdir}/man'
959
960 ac_prev=
961 ac_dashdash=
962 for ac_option
963 do
964 # If the previous option needs an argument, assign it.
965 if test -n "$ac_prev"; then
966 eval $ac_prev=\$ac_option
967 ac_prev=
968 continue
969 fi
970
971 case $ac_option in
972 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
973 *=) ac_optarg= ;;
974 *) ac_optarg=yes ;;
975 esac
976
977 # Accept the important Cygnus configure options, so we can diagnose typos.
978
979 case $ac_dashdash$ac_option in
980 --)
981 ac_dashdash=yes ;;
982
983 -bindir | --bindir | --bindi | --bind | --bin | --bi)
984 ac_prev=bindir ;;
985 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
986 bindir=$ac_optarg ;;
987
988 -build | --build | --buil | --bui | --bu)
989 ac_prev=build_alias ;;
990 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
991 build_alias=$ac_optarg ;;
992
993 -cache-file | --cache-file | --cache-fil | --cache-fi \
994 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
995 ac_prev=cache_file ;;
996 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
997 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
998 cache_file=$ac_optarg ;;
999
1000 --config-cache | -C)
1001 cache_file=config.cache ;;
1002
1003 -datadir | --datadir | --datadi | --datad)
1004 ac_prev=datadir ;;
1005 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1006 datadir=$ac_optarg ;;
1007
1008 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1009 | --dataroo | --dataro | --datar)
1010 ac_prev=datarootdir ;;
1011 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1012 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1013 datarootdir=$ac_optarg ;;
1014
1015 -disable-* | --disable-*)
1016 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1017 # Reject names that are not valid shell variable names.
1018 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1019 as_fn_error $? "invalid feature name: $ac_useropt"
1020 ac_useropt_orig=$ac_useropt
1021 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1022 case $ac_user_opts in
1023 *"
1024 "enable_$ac_useropt"
1025 "*) ;;
1026 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1027 ac_unrecognized_sep=', ';;
1028 esac
1029 eval enable_$ac_useropt=no ;;
1030
1031 -docdir | --docdir | --docdi | --doc | --do)
1032 ac_prev=docdir ;;
1033 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1034 docdir=$ac_optarg ;;
1035
1036 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1037 ac_prev=dvidir ;;
1038 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1039 dvidir=$ac_optarg ;;
1040
1041 -enable-* | --enable-*)
1042 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1043 # Reject names that are not valid shell variable names.
1044 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1045 as_fn_error $? "invalid feature name: $ac_useropt"
1046 ac_useropt_orig=$ac_useropt
1047 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1048 case $ac_user_opts in
1049 *"
1050 "enable_$ac_useropt"
1051 "*) ;;
1052 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1053 ac_unrecognized_sep=', ';;
1054 esac
1055 eval enable_$ac_useropt=\$ac_optarg ;;
1056
1057 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1058 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1059 | --exec | --exe | --ex)
1060 ac_prev=exec_prefix ;;
1061 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1062 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1063 | --exec=* | --exe=* | --ex=*)
1064 exec_prefix=$ac_optarg ;;
1065
1066 -gas | --gas | --ga | --g)
1067 # Obsolete; use --with-gas.
1068 with_gas=yes ;;
1069
1070 -help | --help | --hel | --he | -h)
1071 ac_init_help=long ;;
1072 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1073 ac_init_help=recursive ;;
1074 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1075 ac_init_help=short ;;
1076
1077 -host | --host | --hos | --ho)
1078 ac_prev=host_alias ;;
1079 -host=* | --host=* | --hos=* | --ho=*)
1080 host_alias=$ac_optarg ;;
1081
1082 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1083 ac_prev=htmldir ;;
1084 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1085 | --ht=*)
1086 htmldir=$ac_optarg ;;
1087
1088 -includedir | --includedir | --includedi | --included | --include \
1089 | --includ | --inclu | --incl | --inc)
1090 ac_prev=includedir ;;
1091 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1092 | --includ=* | --inclu=* | --incl=* | --inc=*)
1093 includedir=$ac_optarg ;;
1094
1095 -infodir | --infodir | --infodi | --infod | --info | --inf)
1096 ac_prev=infodir ;;
1097 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1098 infodir=$ac_optarg ;;
1099
1100 -libdir | --libdir | --libdi | --libd)
1101 ac_prev=libdir ;;
1102 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1103 libdir=$ac_optarg ;;
1104
1105 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1106 | --libexe | --libex | --libe)
1107 ac_prev=libexecdir ;;
1108 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1109 | --libexe=* | --libex=* | --libe=*)
1110 libexecdir=$ac_optarg ;;
1111
1112 -localedir | --localedir | --localedi | --localed | --locale)
1113 ac_prev=localedir ;;
1114 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1115 localedir=$ac_optarg ;;
1116
1117 -localstatedir | --localstatedir | --localstatedi | --localstated \
1118 | --localstate | --localstat | --localsta | --localst | --locals)
1119 ac_prev=localstatedir ;;
1120 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1121 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1122 localstatedir=$ac_optarg ;;
1123
1124 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1125 ac_prev=mandir ;;
1126 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1127 mandir=$ac_optarg ;;
1128
1129 -nfp | --nfp | --nf)
1130 # Obsolete; use --without-fp.
1131 with_fp=no ;;
1132
1133 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1134 | --no-cr | --no-c | -n)
1135 no_create=yes ;;
1136
1137 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1138 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1139 no_recursion=yes ;;
1140
1141 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1142 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1143 | --oldin | --oldi | --old | --ol | --o)
1144 ac_prev=oldincludedir ;;
1145 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1146 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1147 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1148 oldincludedir=$ac_optarg ;;
1149
1150 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1151 ac_prev=prefix ;;
1152 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1153 prefix=$ac_optarg ;;
1154
1155 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1156 | --program-pre | --program-pr | --program-p)
1157 ac_prev=program_prefix ;;
1158 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1159 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1160 program_prefix=$ac_optarg ;;
1161
1162 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1163 | --program-suf | --program-su | --program-s)
1164 ac_prev=program_suffix ;;
1165 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1166 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1167 program_suffix=$ac_optarg ;;
1168
1169 -program-transform-name | --program-transform-name \
1170 | --program-transform-nam | --program-transform-na \
1171 | --program-transform-n | --program-transform- \
1172 | --program-transform | --program-transfor \
1173 | --program-transfo | --program-transf \
1174 | --program-trans | --program-tran \
1175 | --progr-tra | --program-tr | --program-t)
1176 ac_prev=program_transform_name ;;
1177 -program-transform-name=* | --program-transform-name=* \
1178 | --program-transform-nam=* | --program-transform-na=* \
1179 | --program-transform-n=* | --program-transform-=* \
1180 | --program-transform=* | --program-transfor=* \
1181 | --program-transfo=* | --program-transf=* \
1182 | --program-trans=* | --program-tran=* \
1183 | --progr-tra=* | --program-tr=* | --program-t=*)
1184 program_transform_name=$ac_optarg ;;
1185
1186 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1187 ac_prev=pdfdir ;;
1188 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1189 pdfdir=$ac_optarg ;;
1190
1191 -psdir | --psdir | --psdi | --psd | --ps)
1192 ac_prev=psdir ;;
1193 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1194 psdir=$ac_optarg ;;
1195
1196 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1197 | -silent | --silent | --silen | --sile | --sil)
1198 silent=yes ;;
1199
1200 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1201 ac_prev=sbindir ;;
1202 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1203 | --sbi=* | --sb=*)
1204 sbindir=$ac_optarg ;;
1205
1206 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1207 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1208 | --sharedst | --shareds | --shared | --share | --shar \
1209 | --sha | --sh)
1210 ac_prev=sharedstatedir ;;
1211 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1212 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1213 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1214 | --sha=* | --sh=*)
1215 sharedstatedir=$ac_optarg ;;
1216
1217 -site | --site | --sit)
1218 ac_prev=site ;;
1219 -site=* | --site=* | --sit=*)
1220 site=$ac_optarg ;;
1221
1222 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1223 ac_prev=srcdir ;;
1224 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1225 srcdir=$ac_optarg ;;
1226
1227 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1228 | --syscon | --sysco | --sysc | --sys | --sy)
1229 ac_prev=sysconfdir ;;
1230 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1231 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1232 sysconfdir=$ac_optarg ;;
1233
1234 -target | --target | --targe | --targ | --tar | --ta | --t)
1235 ac_prev=target_alias ;;
1236 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1237 target_alias=$ac_optarg ;;
1238
1239 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1240 verbose=yes ;;
1241
1242 -version | --version | --versio | --versi | --vers | -V)
1243 ac_init_version=: ;;
1244
1245 -with-* | --with-*)
1246 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1247 # Reject names that are not valid shell variable names.
1248 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1249 as_fn_error $? "invalid package name: $ac_useropt"
1250 ac_useropt_orig=$ac_useropt
1251 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1252 case $ac_user_opts in
1253 *"
1254 "with_$ac_useropt"
1255 "*) ;;
1256 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1257 ac_unrecognized_sep=', ';;
1258 esac
1259 eval with_$ac_useropt=\$ac_optarg ;;
1260
1261 -without-* | --without-*)
1262 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1263 # Reject names that are not valid shell variable names.
1264 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1265 as_fn_error $? "invalid package name: $ac_useropt"
1266 ac_useropt_orig=$ac_useropt
1267 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1268 case $ac_user_opts in
1269 *"
1270 "with_$ac_useropt"
1271 "*) ;;
1272 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1273 ac_unrecognized_sep=', ';;
1274 esac
1275 eval with_$ac_useropt=no ;;
1276
1277 --x)
1278 # Obsolete; use --with-x.
1279 with_x=yes ;;
1280
1281 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1282 | --x-incl | --x-inc | --x-in | --x-i)
1283 ac_prev=x_includes ;;
1284 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1285 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1286 x_includes=$ac_optarg ;;
1287
1288 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1289 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1290 ac_prev=x_libraries ;;
1291 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1292 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1293 x_libraries=$ac_optarg ;;
1294
1295 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1296 Try \`$0 --help' for more information"
1297 ;;
1298
1299 *=*)
1300 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1301 # Reject names that are not valid shell variable names.
1302 case $ac_envvar in #(
1303 '' | [0-9]* | *[!_$as_cr_alnum]* )
1304 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1305 esac
1306 eval $ac_envvar=\$ac_optarg
1307 export $ac_envvar ;;
1308
1309 *)
1310 # FIXME: should be removed in autoconf 3.0.
1311 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1312 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1313 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1314 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1315 ;;
1316
1317 esac
1318 done
1319
1320 if test -n "$ac_prev"; then
1321 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1322 as_fn_error $? "missing argument to $ac_option"
1323 fi
1324
1325 if test -n "$ac_unrecognized_opts"; then
1326 case $enable_option_checking in
1327 no) ;;
1328 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1329 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1330 esac
1331 fi
1332
1333 # Check all directory arguments for consistency.
1334 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1335 datadir sysconfdir sharedstatedir localstatedir includedir \
1336 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1337 libdir localedir mandir
1338 do
1339 eval ac_val=\$$ac_var
1340 # Remove trailing slashes.
1341 case $ac_val in
1342 */ )
1343 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1344 eval $ac_var=\$ac_val;;
1345 esac
1346 # Be sure to have absolute directory names.
1347 case $ac_val in
1348 [\\/$]* | ?:[\\/]* ) continue;;
1349 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1350 esac
1351 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1352 done
1353
1354 # There might be people who depend on the old broken behavior: `$host'
1355 # used to hold the argument of --host etc.
1356 # FIXME: To remove some day.
1357 build=$build_alias
1358 host=$host_alias
1359 target=$target_alias
1360
1361 # FIXME: To remove some day.
1362 if test "x$host_alias" != x; then
1363 if test "x$build_alias" = x; then
1364 cross_compiling=maybe
1365 elif test "x$build_alias" != "x$host_alias"; then
1366 cross_compiling=yes
1367 fi
1368 fi
1369
1370 ac_tool_prefix=
1371 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1372
1373 test "$silent" = yes && exec 6>/dev/null
1374
1375
1376 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1377 ac_ls_di=`ls -di .` &&
1378 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1379 as_fn_error $? "working directory cannot be determined"
1380 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1381 as_fn_error $? "pwd does not report name of working directory"
1382
1383
1384 # Find the source files, if location was not specified.
1385 if test -z "$srcdir"; then
1386 ac_srcdir_defaulted=yes
1387 # Try the directory containing this script, then the parent directory.
1388 ac_confdir=`$as_dirname -- "$as_myself" ||
1389 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1390 X"$as_myself" : 'X\(//\)[^/]' \| \
1391 X"$as_myself" : 'X\(//\)$' \| \
1392 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1393 $as_echo X"$as_myself" |
1394 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1395 s//\1/
1396 q
1397 }
1398 /^X\(\/\/\)[^/].*/{
1399 s//\1/
1400 q
1401 }
1402 /^X\(\/\/\)$/{
1403 s//\1/
1404 q
1405 }
1406 /^X\(\/\).*/{
1407 s//\1/
1408 q
1409 }
1410 s/.*/./; q'`
1411 srcdir=$ac_confdir
1412 if test ! -r "$srcdir/$ac_unique_file"; then
1413 srcdir=..
1414 fi
1415 else
1416 ac_srcdir_defaulted=no
1417 fi
1418 if test ! -r "$srcdir/$ac_unique_file"; then
1419 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1420 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1421 fi
1422 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1423 ac_abs_confdir=`(
1424 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1425 pwd)`
1426 # When building in place, set srcdir=.
1427 if test "$ac_abs_confdir" = "$ac_pwd"; then
1428 srcdir=.
1429 fi
1430 # Remove unnecessary trailing slashes from srcdir.
1431 # Double slashes in file names in object file debugging info
1432 # mess up M-x gdb in Emacs.
1433 case $srcdir in
1434 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1435 esac
1436 for ac_var in $ac_precious_vars; do
1437 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1438 eval ac_env_${ac_var}_value=\$${ac_var}
1439 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1440 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1441 done
1442
1443 #
1444 # Report the --help message.
1445 #
1446 if test "$ac_init_help" = "long"; then
1447 # Omit some internal or obsolete options to make the list less imposing.
1448 # This message is too long to be a string in the A/UX 3.1 sh.
1449 cat <<_ACEOF
1450 \`configure' configures libXi 1.7.7 to adapt to many kinds of systems.
1451
1452 Usage: $0 [OPTION]... [VAR=VALUE]...
1453
1454 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1455 VAR=VALUE. See below for descriptions of some of the useful variables.
1456
1457 Defaults for the options are specified in brackets.
1458
1459 Configuration:
1460 -h, --help display this help and exit
1461 --help=short display options specific to this package
1462 --help=recursive display the short help of all the included packages
1463 -V, --version display version information and exit
1464 -q, --quiet, --silent do not print \`checking ...' messages
1465 --cache-file=FILE cache test results in FILE [disabled]
1466 -C, --config-cache alias for \`--cache-file=config.cache'
1467 -n, --no-create do not create output files
1468 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1469
1470 Installation directories:
1471 --prefix=PREFIX install architecture-independent files in PREFIX
1472 [$ac_default_prefix]
1473 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1474 [PREFIX]
1475
1476 By default, \`make install' will install all the files in
1477 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1478 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1479 for instance \`--prefix=\$HOME'.
1480
1481 For better control, use the options below.
1482
1483 Fine tuning of the installation directories:
1484 --bindir=DIR user executables [EPREFIX/bin]
1485 --sbindir=DIR system admin executables [EPREFIX/sbin]
1486 --libexecdir=DIR program executables [EPREFIX/libexec]
1487 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1488 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1489 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1490 --libdir=DIR object code libraries [EPREFIX/lib]
1491 --includedir=DIR C header files [PREFIX/include]
1492 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1493 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1494 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1495 --infodir=DIR info documentation [DATAROOTDIR/info]
1496 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1497 --mandir=DIR man documentation [DATAROOTDIR/man]
1498 --docdir=DIR documentation root [DATAROOTDIR/doc/libXi]
1499 --htmldir=DIR html documentation [DOCDIR]
1500 --dvidir=DIR dvi documentation [DOCDIR]
1501 --pdfdir=DIR pdf documentation [DOCDIR]
1502 --psdir=DIR ps documentation [DOCDIR]
1503 _ACEOF
1504
1505 cat <<\_ACEOF
1506
1507 Program names:
1508 --program-prefix=PREFIX prepend PREFIX to installed program names
1509 --program-suffix=SUFFIX append SUFFIX to installed program names
1510 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1511
1512 System types:
1513 --build=BUILD configure for building on BUILD [guessed]
1514 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1515 _ACEOF
1516 fi
1517
1518 if test -n "$ac_init_help"; then
1519 case $ac_init_help in
1520 short | recursive ) echo "Configuration of libXi 1.7.7:";;
1521 esac
1522 cat <<\_ACEOF
1523
1524 Optional Features:
1525 --disable-option-checking ignore unrecognized --enable/--with options
1526 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1527 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1528 --enable-silent-rules less verbose build output (undo: "make V=1")
1529 --disable-silent-rules verbose build output (undo: "make V=0")
1530 --enable-shared[=PKGS] build shared libraries [default=yes]
1531 --enable-static[=PKGS] build static libraries [default=yes]
1532 --enable-fast-install[=PKGS]
1533 optimize for fast installation [default=yes]
1534 --enable-dependency-tracking
1535 do not reject slow dependency extractors
1536 --disable-dependency-tracking
1537 speeds up one-time build
1538 --disable-libtool-lock avoid locking (might break parallel builds)
1539 --disable-selective-werror
1540 Turn off selective compiler errors. (default:
1541 enabled)
1542 --enable-strict-compilation
1543 Enable all warnings from compiler and make them
1544 errors (default: disabled)
1545 --enable-docs Enable building the documentation (default: yes)
1546 --enable-specs Enable building the specs (default: yes)
1547 --enable-malloc0returnsnull
1548 malloc(0) returns NULL (default: auto)
1549
1550 Optional Packages:
1551 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1552 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1553 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1554 both]
1555 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1556 --with-sysroot=DIR Search for dependent libraries within DIR
1557 (or the compiler's sysroot if not specified).
1558 --with-xmlto Use xmlto to regenerate documentation (default:
1559 auto)
1560 --with-fop Use fop to regenerate documentation (default: auto)
1561 --with-xsltproc Use xsltproc for the transformation of XML documents
1562 (default: auto)
1563 --with-asciidoc Use asciidoc to regenerate documentation (default:
1564 auto)
1565
1566 Some influential environment variables:
1567 CC C compiler command
1568 CFLAGS C compiler flags
1569 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1570 nonstandard directory <lib dir>
1571 LIBS libraries to pass to the linker, e.g. -l<library>
1572 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1573 you have headers in a nonstandard directory <include dir>
1574 CPP C preprocessor
1575 PKG_CONFIG path to pkg-config utility
1576 PKG_CONFIG_PATH
1577 directories to add to pkg-config's search path
1578 PKG_CONFIG_LIBDIR
1579 path overriding pkg-config's built-in search path
1580 XMLTO Path to xmlto command
1581 FOP Path to fop command
1582 XSLTPROC Path to xsltproc command
1583 ASCIIDOC Path to asciidoc command
1584 XI_CFLAGS C compiler flags for XI, overriding pkg-config
1585 XI_LIBS linker flags for XI, overriding pkg-config
1586 XFIXES_CFLAGS
1587 C compiler flags for XFIXES, overriding pkg-config
1588 XFIXES_LIBS linker flags for XFIXES, overriding pkg-config
1589
1590 Use these variables to override the choices made by `configure' or to help
1591 it to find libraries and programs with nonstandard names/locations.
1592
1593 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1594 _ACEOF
1595 ac_status=$?
1596 fi
1597
1598 if test "$ac_init_help" = "recursive"; then
1599 # If there are subdirs, report their specific --help.
1600 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1601 test -d "$ac_dir" ||
1602 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1603 continue
1604 ac_builddir=.
1605
1606 case "$ac_dir" in
1607 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1608 *)
1609 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1610 # A ".." for each directory in $ac_dir_suffix.
1611 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1612 case $ac_top_builddir_sub in
1613 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1614 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1615 esac ;;
1616 esac
1617 ac_abs_top_builddir=$ac_pwd
1618 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1619 # for backward compatibility:
1620 ac_top_builddir=$ac_top_build_prefix
1621
1622 case $srcdir in
1623 .) # We are building in place.
1624 ac_srcdir=.
1625 ac_top_srcdir=$ac_top_builddir_sub
1626 ac_abs_top_srcdir=$ac_pwd ;;
1627 [\\/]* | ?:[\\/]* ) # Absolute name.
1628 ac_srcdir=$srcdir$ac_dir_suffix;
1629 ac_top_srcdir=$srcdir
1630 ac_abs_top_srcdir=$srcdir ;;
1631 *) # Relative name.
1632 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1633 ac_top_srcdir=$ac_top_build_prefix$srcdir
1634 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1635 esac
1636 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1637
1638 cd "$ac_dir" || { ac_status=$?; continue; }
1639 # Check for guested configure.
1640 if test -f "$ac_srcdir/configure.gnu"; then
1641 echo &&
1642 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1643 elif test -f "$ac_srcdir/configure"; then
1644 echo &&
1645 $SHELL "$ac_srcdir/configure" --help=recursive
1646 else
1647 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1648 fi || ac_status=$?
1649 cd "$ac_pwd" || { ac_status=$?; break; }
1650 done
1651 fi
1652
1653 test -n "$ac_init_help" && exit $ac_status
1654 if $ac_init_version; then
1655 cat <<\_ACEOF
1656 libXi configure 1.7.7
1657 generated by GNU Autoconf 2.69
1658
1659 Copyright (C) 2012 Free Software Foundation, Inc.
1660 This configure script is free software; the Free Software Foundation
1661 gives unlimited permission to copy, distribute and modify it.
1662 _ACEOF
1663 exit
1664 fi
1665
1666 ## ------------------------ ##
1667 ## Autoconf initialization. ##
1668 ## ------------------------ ##
1669
1670 # ac_fn_c_try_compile LINENO
1671 # --------------------------
1672 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1673 ac_fn_c_try_compile ()
1674 {
1675 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1676 rm -f conftest.$ac_objext
1677 if { { ac_try="$ac_compile"
1678 case "(($ac_try" in
1679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1680 *) ac_try_echo=$ac_try;;
1681 esac
1682 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1683 $as_echo "$ac_try_echo"; } >&5
1684 (eval "$ac_compile") 2>conftest.err
1685 ac_status=$?
1686 if test -s conftest.err; then
1687 grep -v '^ *+' conftest.err >conftest.er1
1688 cat conftest.er1 >&5
1689 mv -f conftest.er1 conftest.err
1690 fi
1691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1692 test $ac_status = 0; } && {
1693 test -z "$ac_c_werror_flag" ||
1694 test ! -s conftest.err
1695 } && test -s conftest.$ac_objext; then :
1696 ac_retval=0
1697 else
1698 $as_echo "$as_me: failed program was:" >&5
1699 sed 's/^/| /' conftest.$ac_ext >&5
1700
1701 ac_retval=1
1702 fi
1703 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1704 as_fn_set_status $ac_retval
1705
1706 } # ac_fn_c_try_compile
1707
1708 # ac_fn_c_try_link LINENO
1709 # -----------------------
1710 # Try to link conftest.$ac_ext, and return whether this succeeded.
1711 ac_fn_c_try_link ()
1712 {
1713 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1714 rm -f conftest.$ac_objext conftest$ac_exeext
1715 if { { ac_try="$ac_link"
1716 case "(($ac_try" in
1717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1718 *) ac_try_echo=$ac_try;;
1719 esac
1720 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1721 $as_echo "$ac_try_echo"; } >&5
1722 (eval "$ac_link") 2>conftest.err
1723 ac_status=$?
1724 if test -s conftest.err; then
1725 grep -v '^ *+' conftest.err >conftest.er1
1726 cat conftest.er1 >&5
1727 mv -f conftest.er1 conftest.err
1728 fi
1729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1730 test $ac_status = 0; } && {
1731 test -z "$ac_c_werror_flag" ||
1732 test ! -s conftest.err
1733 } && test -s conftest$ac_exeext && {
1734 test "$cross_compiling" = yes ||
1735 test -x conftest$ac_exeext
1736 }; then :
1737 ac_retval=0
1738 else
1739 $as_echo "$as_me: failed program was:" >&5
1740 sed 's/^/| /' conftest.$ac_ext >&5
1741
1742 ac_retval=1
1743 fi
1744 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1745 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1746 # interfere with the next link command; also delete a directory that is
1747 # left behind by Apple's compiler. We do this before executing the actions.
1748 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1749 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1750 as_fn_set_status $ac_retval
1751
1752 } # ac_fn_c_try_link
1753
1754 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1755 # -------------------------------------------------------
1756 # Tests whether HEADER exists and can be compiled using the include files in
1757 # INCLUDES, setting the cache variable VAR accordingly.
1758 ac_fn_c_check_header_compile ()
1759 {
1760 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1762 $as_echo_n "checking for $2... " >&6; }
1763 if eval \${$3+:} false; then :
1764 $as_echo_n "(cached) " >&6
1765 else
1766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1767 /* end confdefs.h. */
1768 $4
1769 #include <$2>
1770 _ACEOF
1771 if ac_fn_c_try_compile "$LINENO"; then :
1772 eval "$3=yes"
1773 else
1774 eval "$3=no"
1775 fi
1776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1777 fi
1778 eval ac_res=\$$3
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1780 $as_echo "$ac_res" >&6; }
1781 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1782
1783 } # ac_fn_c_check_header_compile
1784
1785 # ac_fn_c_try_cpp LINENO
1786 # ----------------------
1787 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1788 ac_fn_c_try_cpp ()
1789 {
1790 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1791 if { { ac_try="$ac_cpp conftest.$ac_ext"
1792 case "(($ac_try" in
1793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1794 *) ac_try_echo=$ac_try;;
1795 esac
1796 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1797 $as_echo "$ac_try_echo"; } >&5
1798 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1799 ac_status=$?
1800 if test -s conftest.err; then
1801 grep -v '^ *+' conftest.err >conftest.er1
1802 cat conftest.er1 >&5
1803 mv -f conftest.er1 conftest.err
1804 fi
1805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1806 test $ac_status = 0; } > conftest.i && {
1807 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1808 test ! -s conftest.err
1809 }; then :
1810 ac_retval=0
1811 else
1812 $as_echo "$as_me: failed program was:" >&5
1813 sed 's/^/| /' conftest.$ac_ext >&5
1814
1815 ac_retval=1
1816 fi
1817 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1818 as_fn_set_status $ac_retval
1819
1820 } # ac_fn_c_try_cpp
1821
1822 # ac_fn_c_try_run LINENO
1823 # ----------------------
1824 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1825 # that executables *can* be run.
1826 ac_fn_c_try_run ()
1827 {
1828 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1829 if { { ac_try="$ac_link"
1830 case "(($ac_try" in
1831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1832 *) ac_try_echo=$ac_try;;
1833 esac
1834 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1835 $as_echo "$ac_try_echo"; } >&5
1836 (eval "$ac_link") 2>&5
1837 ac_status=$?
1838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1839 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1840 { { case "(($ac_try" in
1841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1842 *) ac_try_echo=$ac_try;;
1843 esac
1844 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1845 $as_echo "$ac_try_echo"; } >&5
1846 (eval "$ac_try") 2>&5
1847 ac_status=$?
1848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1849 test $ac_status = 0; }; }; then :
1850 ac_retval=0
1851 else
1852 $as_echo "$as_me: program exited with status $ac_status" >&5
1853 $as_echo "$as_me: failed program was:" >&5
1854 sed 's/^/| /' conftest.$ac_ext >&5
1855
1856 ac_retval=$ac_status
1857 fi
1858 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1859 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1860 as_fn_set_status $ac_retval
1861
1862 } # ac_fn_c_try_run
1863
1864 # ac_fn_c_check_func LINENO FUNC VAR
1865 # ----------------------------------
1866 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1867 ac_fn_c_check_func ()
1868 {
1869 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1871 $as_echo_n "checking for $2... " >&6; }
1872 if eval \${$3+:} false; then :
1873 $as_echo_n "(cached) " >&6
1874 else
1875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1876 /* end confdefs.h. */
1877 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1878 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1879 #define $2 innocuous_$2
1880
1881 /* System header to define __stub macros and hopefully few prototypes,
1882 which can conflict with char $2 (); below.
1883 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1884 <limits.h> exists even on freestanding compilers. */
1885
1886 #ifdef __STDC__
1887 # include <limits.h>
1888 #else
1889 # include <assert.h>
1890 #endif
1891
1892 #undef $2
1893
1894 /* Override any GCC internal prototype to avoid an error.
1895 Use char because int might match the return type of a GCC
1896 builtin and then its argument prototype would still apply. */
1897 #ifdef __cplusplus
1898 extern "C"
1899 #endif
1900 char $2 ();
1901 /* The GNU C library defines this for functions which it implements
1902 to always fail with ENOSYS. Some functions are actually named
1903 something starting with __ and the normal name is an alias. */
1904 #if defined __stub_$2 || defined __stub___$2
1905 choke me
1906 #endif
1907
1908 int
1909 main ()
1910 {
1911 return $2 ();
1912 ;
1913 return 0;
1914 }
1915 _ACEOF
1916 if ac_fn_c_try_link "$LINENO"; then :
1917 eval "$3=yes"
1918 else
1919 eval "$3=no"
1920 fi
1921 rm -f core conftest.err conftest.$ac_objext \
1922 conftest$ac_exeext conftest.$ac_ext
1923 fi
1924 eval ac_res=\$$3
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1926 $as_echo "$ac_res" >&6; }
1927 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1928
1929 } # ac_fn_c_check_func
1930
1931 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1932 # ---------------------------------------------
1933 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1934 # accordingly.
1935 ac_fn_c_check_decl ()
1936 {
1937 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1938 as_decl_name=`echo $2|sed 's/ *(.*//'`
1939 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1941 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1942 if eval \${$3+:} false; then :
1943 $as_echo_n "(cached) " >&6
1944 else
1945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1946 /* end confdefs.h. */
1947 $4
1948 int
1949 main ()
1950 {
1951 #ifndef $as_decl_name
1952 #ifdef __cplusplus
1953 (void) $as_decl_use;
1954 #else
1955 (void) $as_decl_name;
1956 #endif
1957 #endif
1958
1959 ;
1960 return 0;
1961 }
1962 _ACEOF
1963 if ac_fn_c_try_compile "$LINENO"; then :
1964 eval "$3=yes"
1965 else
1966 eval "$3=no"
1967 fi
1968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1969 fi
1970 eval ac_res=\$$3
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1972 $as_echo "$ac_res" >&6; }
1973 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1974
1975 } # ac_fn_c_check_decl
1976 cat >config.log <<_ACEOF
1977 This file contains any messages produced by compilers while
1978 running configure, to aid debugging if configure makes a mistake.
1979
1980 It was created by libXi $as_me 1.7.7, which was
1981 generated by GNU Autoconf 2.69. Invocation command line was
1982
1983 $ $0 $@
1984
1985 _ACEOF
1986 exec 5>>config.log
1987 {
1988 cat <<_ASUNAME
1989 ## --------- ##
1990 ## Platform. ##
1991 ## --------- ##
1992
1993 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1994 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1995 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1996 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1997 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1998
1999 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2000 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2001
2002 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2003 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2004 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2005 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2006 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2007 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2008 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2009
2010 _ASUNAME
2011
2012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2013 for as_dir in $PATH
2014 do
2015 IFS=$as_save_IFS
2016 test -z "$as_dir" && as_dir=.
2017 $as_echo "PATH: $as_dir"
2018 done
2019 IFS=$as_save_IFS
2020
2021 } >&5
2022
2023 cat >&5 <<_ACEOF
2024
2025
2026 ## ----------- ##
2027 ## Core tests. ##
2028 ## ----------- ##
2029
2030 _ACEOF
2031
2032
2033 # Keep a trace of the command line.
2034 # Strip out --no-create and --no-recursion so they do not pile up.
2035 # Strip out --silent because we don't want to record it for future runs.
2036 # Also quote any args containing shell meta-characters.
2037 # Make two passes to allow for proper duplicate-argument suppression.
2038 ac_configure_args=
2039 ac_configure_args0=
2040 ac_configure_args1=
2041 ac_must_keep_next=false
2042 for ac_pass in 1 2
2043 do
2044 for ac_arg
2045 do
2046 case $ac_arg in
2047 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2048 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2049 | -silent | --silent | --silen | --sile | --sil)
2050 continue ;;
2051 *\'*)
2052 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2053 esac
2054 case $ac_pass in
2055 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2056 2)
2057 as_fn_append ac_configure_args1 " '$ac_arg'"
2058 if test $ac_must_keep_next = true; then
2059 ac_must_keep_next=false # Got value, back to normal.
2060 else
2061 case $ac_arg in
2062 *=* | --config-cache | -C | -disable-* | --disable-* \
2063 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2064 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2065 | -with-* | --with-* | -without-* | --without-* | --x)
2066 case "$ac_configure_args0 " in
2067 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2068 esac
2069 ;;
2070 -* ) ac_must_keep_next=true ;;
2071 esac
2072 fi
2073 as_fn_append ac_configure_args " '$ac_arg'"
2074 ;;
2075 esac
2076 done
2077 done
2078 { ac_configure_args0=; unset ac_configure_args0;}
2079 { ac_configure_args1=; unset ac_configure_args1;}
2080
2081 # When interrupted or exit'd, cleanup temporary files, and complete
2082 # config.log. We remove comments because anyway the quotes in there
2083 # would cause problems or look ugly.
2084 # WARNING: Use '\'' to represent an apostrophe within the trap.
2085 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2086 trap 'exit_status=$?
2087 # Save into config.log some information that might help in debugging.
2088 {
2089 echo
2090
2091 $as_echo "## ---------------- ##
2092 ## Cache variables. ##
2093 ## ---------------- ##"
2094 echo
2095 # The following way of writing the cache mishandles newlines in values,
2096 (
2097 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2098 eval ac_val=\$$ac_var
2099 case $ac_val in #(
2100 *${as_nl}*)
2101 case $ac_var in #(
2102 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2103 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2104 esac
2105 case $ac_var in #(
2106 _ | IFS | as_nl) ;; #(
2107 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2108 *) { eval $ac_var=; unset $ac_var;} ;;
2109 esac ;;
2110 esac
2111 done
2112 (set) 2>&1 |
2113 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2114 *${as_nl}ac_space=\ *)
2115 sed -n \
2116 "s/'\''/'\''\\\\'\'''\''/g;
2117 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2118 ;; #(
2119 *)
2120 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2121 ;;
2122 esac |
2123 sort
2124 )
2125 echo
2126
2127 $as_echo "## ----------------- ##
2128 ## Output variables. ##
2129 ## ----------------- ##"
2130 echo
2131 for ac_var in $ac_subst_vars
2132 do
2133 eval ac_val=\$$ac_var
2134 case $ac_val in
2135 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2136 esac
2137 $as_echo "$ac_var='\''$ac_val'\''"
2138 done | sort
2139 echo
2140
2141 if test -n "$ac_subst_files"; then
2142 $as_echo "## ------------------- ##
2143 ## File substitutions. ##
2144 ## ------------------- ##"
2145 echo
2146 for ac_var in $ac_subst_files
2147 do
2148 eval ac_val=\$$ac_var
2149 case $ac_val in
2150 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2151 esac
2152 $as_echo "$ac_var='\''$ac_val'\''"
2153 done | sort
2154 echo
2155 fi
2156
2157 if test -s confdefs.h; then
2158 $as_echo "## ----------- ##
2159 ## confdefs.h. ##
2160 ## ----------- ##"
2161 echo
2162 cat confdefs.h
2163 echo
2164 fi
2165 test "$ac_signal" != 0 &&
2166 $as_echo "$as_me: caught signal $ac_signal"
2167 $as_echo "$as_me: exit $exit_status"
2168 } >&5
2169 rm -f core *.core core.conftest.* &&
2170 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2171 exit $exit_status
2172 ' 0
2173 for ac_signal in 1 2 13 15; do
2174 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2175 done
2176 ac_signal=0
2177
2178 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2179 rm -f -r conftest* confdefs.h
2180
2181 $as_echo "/* confdefs.h */" > confdefs.h
2182
2183 # Predefined preprocessor variables.
2184
2185 cat >>confdefs.h <<_ACEOF
2186 #define PACKAGE_NAME "$PACKAGE_NAME"
2187 _ACEOF
2188
2189 cat >>confdefs.h <<_ACEOF
2190 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2191 _ACEOF
2192
2193 cat >>confdefs.h <<_ACEOF
2194 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2195 _ACEOF
2196
2197 cat >>confdefs.h <<_ACEOF
2198 #define PACKAGE_STRING "$PACKAGE_STRING"
2199 _ACEOF
2200
2201 cat >>confdefs.h <<_ACEOF
2202 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2203 _ACEOF
2204
2205 cat >>confdefs.h <<_ACEOF
2206 #define PACKAGE_URL "$PACKAGE_URL"
2207 _ACEOF
2208
2209
2210 # Let the site file select an alternate cache file if it wants to.
2211 # Prefer an explicitly selected file to automatically selected ones.
2212 ac_site_file1=NONE
2213 ac_site_file2=NONE
2214 if test -n "$CONFIG_SITE"; then
2215 # We do not want a PATH search for config.site.
2216 case $CONFIG_SITE in #((
2217 -*) ac_site_file1=./$CONFIG_SITE;;
2218 */*) ac_site_file1=$CONFIG_SITE;;
2219 *) ac_site_file1=./$CONFIG_SITE;;
2220 esac
2221 elif test "x$prefix" != xNONE; then
2222 ac_site_file1=$prefix/share/config.site
2223 ac_site_file2=$prefix/etc/config.site
2224 else
2225 ac_site_file1=$ac_default_prefix/share/config.site
2226 ac_site_file2=$ac_default_prefix/etc/config.site
2227 fi
2228 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2229 do
2230 test "x$ac_site_file" = xNONE && continue
2231 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2233 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2234 sed 's/^/| /' "$ac_site_file" >&5
2235 . "$ac_site_file" \
2236 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2237 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2238 as_fn_error $? "failed to load site script $ac_site_file
2239 See \`config.log' for more details" "$LINENO" 5; }
2240 fi
2241 done
2242
2243 if test -r "$cache_file"; then
2244 # Some versions of bash will fail to source /dev/null (special files
2245 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2246 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2248 $as_echo "$as_me: loading cache $cache_file" >&6;}
2249 case $cache_file in
2250 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2251 *) . "./$cache_file";;
2252 esac
2253 fi
2254 else
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2256 $as_echo "$as_me: creating cache $cache_file" >&6;}
2257 >$cache_file
2258 fi
2259
2260 # Check that the precious variables saved in the cache have kept the same
2261 # value.
2262 ac_cache_corrupted=false
2263 for ac_var in $ac_precious_vars; do
2264 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2265 eval ac_new_set=\$ac_env_${ac_var}_set
2266 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2267 eval ac_new_val=\$ac_env_${ac_var}_value
2268 case $ac_old_set,$ac_new_set in
2269 set,)
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2271 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2272 ac_cache_corrupted=: ;;
2273 ,set)
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2275 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2276 ac_cache_corrupted=: ;;
2277 ,);;
2278 *)
2279 if test "x$ac_old_val" != "x$ac_new_val"; then
2280 # differences in whitespace do not lead to failure.
2281 ac_old_val_w=`echo x $ac_old_val`
2282 ac_new_val_w=`echo x $ac_new_val`
2283 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2285 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2286 ac_cache_corrupted=:
2287 else
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2289 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2290 eval $ac_var=\$ac_old_val
2291 fi
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2293 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2295 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2296 fi;;
2297 esac
2298 # Pass precious variables to config.status.
2299 if test "$ac_new_set" = set; then
2300 case $ac_new_val in
2301 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2302 *) ac_arg=$ac_var=$ac_new_val ;;
2303 esac
2304 case " $ac_configure_args " in
2305 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2306 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2307 esac
2308 fi
2309 done
2310 if $ac_cache_corrupted; then
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2312 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2314 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2315 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2316 fi
2317 ## -------------------- ##
2318 ## Main body of script. ##
2319 ## -------------------- ##
2320
2321 ac_ext=c
2322 ac_cpp='$CPP $CPPFLAGS'
2323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2326
2327
2328
2329 ac_config_headers="$ac_config_headers src/config.h"
2330
2331
2332 # Initialize Automake
2333 am__api_version='1.14'
2334
2335 ac_aux_dir=
2336 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2337 if test -f "$ac_dir/install-sh"; then
2338 ac_aux_dir=$ac_dir
2339 ac_install_sh="$ac_aux_dir/install-sh -c"
2340 break
2341 elif test -f "$ac_dir/install.sh"; then
2342 ac_aux_dir=$ac_dir
2343 ac_install_sh="$ac_aux_dir/install.sh -c"
2344 break
2345 elif test -f "$ac_dir/shtool"; then
2346 ac_aux_dir=$ac_dir
2347 ac_install_sh="$ac_aux_dir/shtool install -c"
2348 break
2349 fi
2350 done
2351 if test -z "$ac_aux_dir"; then
2352 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2353 fi
2354
2355 # These three variables are undocumented and unsupported,
2356 # and are intended to be withdrawn in a future Autoconf release.
2357 # They can cause serious problems if a builder's source tree is in a directory
2358 # whose full name contains unusual characters.
2359 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2360 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2361 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2362
2363
2364 # Find a good install program. We prefer a C program (faster),
2365 # so one script is as good as another. But avoid the broken or
2366 # incompatible versions:
2367 # SysV /etc/install, /usr/sbin/install
2368 # SunOS /usr/etc/install
2369 # IRIX /sbin/install
2370 # AIX /bin/install
2371 # AmigaOS /C/install, which installs bootblocks on floppy discs
2372 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2373 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2374 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2375 # OS/2's system install, which has a completely different semantic
2376 # ./install, which can be erroneously created by make from ./install.sh.
2377 # Reject install programs that cannot install multiple files.
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2379 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2380 if test -z "$INSTALL"; then
2381 if ${ac_cv_path_install+:} false; then :
2382 $as_echo_n "(cached) " >&6
2383 else
2384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2385 for as_dir in $PATH
2386 do
2387 IFS=$as_save_IFS
2388 test -z "$as_dir" && as_dir=.
2389 # Account for people who put trailing slashes in PATH elements.
2390 case $as_dir/ in #((
2391 ./ | .// | /[cC]/* | \
2392 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2393 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2394 /usr/ucb/* ) ;;
2395 *)
2396 # OSF1 and SCO ODT 3.0 have their own names for install.
2397 # Don't use installbsd from OSF since it installs stuff as root
2398 # by default.
2399 for ac_prog in ginstall scoinst install; do
2400 for ac_exec_ext in '' $ac_executable_extensions; do
2401 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2402 if test $ac_prog = install &&
2403 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2404 # AIX install. It has an incompatible calling convention.
2405 :
2406 elif test $ac_prog = install &&
2407 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2408 # program-specific install script used by HP pwplus--don't use.
2409 :
2410 else
2411 rm -rf conftest.one conftest.two conftest.dir
2412 echo one > conftest.one
2413 echo two > conftest.two
2414 mkdir conftest.dir
2415 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2416 test -s conftest.one && test -s conftest.two &&
2417 test -s conftest.dir/conftest.one &&
2418 test -s conftest.dir/conftest.two
2419 then
2420 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2421 break 3
2422 fi
2423 fi
2424 fi
2425 done
2426 done
2427 ;;
2428 esac
2429
2430 done
2431 IFS=$as_save_IFS
2432
2433 rm -rf conftest.one conftest.two conftest.dir
2434
2435 fi
2436 if test "${ac_cv_path_install+set}" = set; then
2437 INSTALL=$ac_cv_path_install
2438 else
2439 # As a last resort, use the slow shell script. Don't cache a
2440 # value for INSTALL within a source directory, because that will
2441 # break other packages using the cache if that directory is
2442 # removed, or if the value is a relative name.
2443 INSTALL=$ac_install_sh
2444 fi
2445 fi
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2447 $as_echo "$INSTALL" >&6; }
2448
2449 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2450 # It thinks the first close brace ends the variable substitution.
2451 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2452
2453 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2454
2455 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2456
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2458 $as_echo_n "checking whether build environment is sane... " >&6; }
2459 # Reject unsafe characters in $srcdir or the absolute working directory
2460 # name. Accept space and tab only in the latter.
2461 am_lf='
2462 '
2463 case `pwd` in
2464 *[\\\"\#\$\&\'\`$am_lf]*)
2465 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2466 esac
2467 case $srcdir in
2468 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2469 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2470 esac
2471
2472 # Do 'set' in a subshell so we don't clobber the current shell's
2473 # arguments. Must try -L first in case configure is actually a
2474 # symlink; some systems play weird games with the mod time of symlinks
2475 # (eg FreeBSD returns the mod time of the symlink's containing
2476 # directory).
2477 if (
2478 am_has_slept=no
2479 for am_try in 1 2; do
2480 echo "timestamp, slept: $am_has_slept" > conftest.file
2481 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2482 if test "$*" = "X"; then
2483 # -L didn't work.
2484 set X `ls -t "$srcdir/configure" conftest.file`
2485 fi
2486 if test "$*" != "X $srcdir/configure conftest.file" \
2487 && test "$*" != "X conftest.file $srcdir/configure"; then
2488
2489 # If neither matched, then we have a broken ls. This can happen
2490 # if, for instance, CONFIG_SHELL is bash and it inherits a
2491 # broken ls alias from the environment. This has actually
2492 # happened. Such a system could not be considered "sane".
2493 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2494 alias in your environment" "$LINENO" 5
2495 fi
2496 if test "$2" = conftest.file || test $am_try -eq 2; then
2497 break
2498 fi
2499 # Just in case.
2500 sleep 1
2501 am_has_slept=yes
2502 done
2503 test "$2" = conftest.file
2504 )
2505 then
2506 # Ok.
2507 :
2508 else
2509 as_fn_error $? "newly created file is older than distributed files!
2510 Check your system clock" "$LINENO" 5
2511 fi
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2513 $as_echo "yes" >&6; }
2514 # If we didn't sleep, we still need to ensure time stamps of config.status and
2515 # generated files are strictly newer.
2516 am_sleep_pid=
2517 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2518 ( sleep 1 ) &
2519 am_sleep_pid=$!
2520 fi
2521
2522 rm -f conftest.file
2523
2524 test "$program_prefix" != NONE &&
2525 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2526 # Use a double $ so make ignores it.
2527 test "$program_suffix" != NONE &&
2528 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2529 # Double any \ or $.
2530 # By default was `s,x,x', remove it if useless.
2531 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2532 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2533
2534 # expand $ac_aux_dir to an absolute path
2535 am_aux_dir=`cd $ac_aux_dir && pwd`
2536
2537 if test x"${MISSING+set}" != xset; then
2538 case $am_aux_dir in
2539 *\ * | *\ *)
2540 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2541 *)
2542 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2543 esac
2544 fi
2545 # Use eval to expand $SHELL
2546 if eval "$MISSING --is-lightweight"; then
2547 am_missing_run="$MISSING "
2548 else
2549 am_missing_run=
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2551 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2552 fi
2553
2554 if test x"${install_sh}" != xset; then
2555 case $am_aux_dir in
2556 *\ * | *\ *)
2557 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2558 *)
2559 install_sh="\${SHELL} $am_aux_dir/install-sh"
2560 esac
2561 fi
2562
2563 # Installed binaries are usually stripped using 'strip' when the user
2564 # run "make install-strip". However 'strip' might not be the right
2565 # tool to use in cross-compilation environments, therefore Automake
2566 # will honor the 'STRIP' environment variable to overrule this program.
2567 if test "$cross_compiling" != no; then
2568 if test -n "$ac_tool_prefix"; then
2569 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2570 set dummy ${ac_tool_prefix}strip; ac_word=$2
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2572 $as_echo_n "checking for $ac_word... " >&6; }
2573 if ${ac_cv_prog_STRIP+:} false; then :
2574 $as_echo_n "(cached) " >&6
2575 else
2576 if test -n "$STRIP"; then
2577 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2578 else
2579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2580 for as_dir in $PATH
2581 do
2582 IFS=$as_save_IFS
2583 test -z "$as_dir" && as_dir=.
2584 for ac_exec_ext in '' $ac_executable_extensions; do
2585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2586 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2588 break 2
2589 fi
2590 done
2591 done
2592 IFS=$as_save_IFS
2593
2594 fi
2595 fi
2596 STRIP=$ac_cv_prog_STRIP
2597 if test -n "$STRIP"; then
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2599 $as_echo "$STRIP" >&6; }
2600 else
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2602 $as_echo "no" >&6; }
2603 fi
2604
2605
2606 fi
2607 if test -z "$ac_cv_prog_STRIP"; then
2608 ac_ct_STRIP=$STRIP
2609 # Extract the first word of "strip", so it can be a program name with args.
2610 set dummy strip; ac_word=$2
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2612 $as_echo_n "checking for $ac_word... " >&6; }
2613 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2614 $as_echo_n "(cached) " >&6
2615 else
2616 if test -n "$ac_ct_STRIP"; then
2617 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2618 else
2619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2620 for as_dir in $PATH
2621 do
2622 IFS=$as_save_IFS
2623 test -z "$as_dir" && as_dir=.
2624 for ac_exec_ext in '' $ac_executable_extensions; do
2625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2626 ac_cv_prog_ac_ct_STRIP="strip"
2627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2628 break 2
2629 fi
2630 done
2631 done
2632 IFS=$as_save_IFS
2633
2634 fi
2635 fi
2636 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2637 if test -n "$ac_ct_STRIP"; then
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2639 $as_echo "$ac_ct_STRIP" >&6; }
2640 else
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2642 $as_echo "no" >&6; }
2643 fi
2644
2645 if test "x$ac_ct_STRIP" = x; then
2646 STRIP=":"
2647 else
2648 case $cross_compiling:$ac_tool_warned in
2649 yes:)
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2651 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2652 ac_tool_warned=yes ;;
2653 esac
2654 STRIP=$ac_ct_STRIP
2655 fi
2656 else
2657 STRIP="$ac_cv_prog_STRIP"
2658 fi
2659
2660 fi
2661 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2662
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2664 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2665 if test -z "$MKDIR_P"; then
2666 if ${ac_cv_path_mkdir+:} false; then :
2667 $as_echo_n "(cached) " >&6
2668 else
2669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2670 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2671 do
2672 IFS=$as_save_IFS
2673 test -z "$as_dir" && as_dir=.
2674 for ac_prog in mkdir gmkdir; do
2675 for ac_exec_ext in '' $ac_executable_extensions; do
2676 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2677 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2678 'mkdir (GNU coreutils) '* | \
2679 'mkdir (coreutils) '* | \
2680 'mkdir (fileutils) '4.1*)
2681 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2682 break 3;;
2683 esac
2684 done
2685 done
2686 done
2687 IFS=$as_save_IFS
2688
2689 fi
2690
2691 test -d ./--version && rmdir ./--version
2692 if test "${ac_cv_path_mkdir+set}" = set; then
2693 MKDIR_P="$ac_cv_path_mkdir -p"
2694 else
2695 # As a last resort, use the slow shell script. Don't cache a
2696 # value for MKDIR_P within a source directory, because that will
2697 # break other packages using the cache if that directory is
2698 # removed, or if the value is a relative name.
2699 MKDIR_P="$ac_install_sh -d"
2700 fi
2701 fi
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2703 $as_echo "$MKDIR_P" >&6; }
2704
2705 for ac_prog in gawk mawk nawk awk
2706 do
2707 # Extract the first word of "$ac_prog", so it can be a program name with args.
2708 set dummy $ac_prog; ac_word=$2
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2710 $as_echo_n "checking for $ac_word... " >&6; }
2711 if ${ac_cv_prog_AWK+:} false; then :
2712 $as_echo_n "(cached) " >&6
2713 else
2714 if test -n "$AWK"; then
2715 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2716 else
2717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2718 for as_dir in $PATH
2719 do
2720 IFS=$as_save_IFS
2721 test -z "$as_dir" && as_dir=.
2722 for ac_exec_ext in '' $ac_executable_extensions; do
2723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2724 ac_cv_prog_AWK="$ac_prog"
2725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2726 break 2
2727 fi
2728 done
2729 done
2730 IFS=$as_save_IFS
2731
2732 fi
2733 fi
2734 AWK=$ac_cv_prog_AWK
2735 if test -n "$AWK"; then
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2737 $as_echo "$AWK" >&6; }
2738 else
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2740 $as_echo "no" >&6; }
2741 fi
2742
2743
2744 test -n "$AWK" && break
2745 done
2746
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2748 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2749 set x ${MAKE-make}
2750 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2751 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2752 $as_echo_n "(cached) " >&6
2753 else
2754 cat >conftest.make <<\_ACEOF
2755 SHELL = /bin/sh
2756 all:
2757 @echo '@@@%%%=$(MAKE)=@@@%%%'
2758 _ACEOF
2759 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2760 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2761 *@@@%%%=?*=@@@%%%*)
2762 eval ac_cv_prog_make_${ac_make}_set=yes;;
2763 *)
2764 eval ac_cv_prog_make_${ac_make}_set=no;;
2765 esac
2766 rm -f conftest.make
2767 fi
2768 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2770 $as_echo "yes" >&6; }
2771 SET_MAKE=
2772 else
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2774 $as_echo "no" >&6; }
2775 SET_MAKE="MAKE=${MAKE-make}"
2776 fi
2777
2778 rm -rf .tst 2>/dev/null
2779 mkdir .tst 2>/dev/null
2780 if test -d .tst; then
2781 am__leading_dot=.
2782 else
2783 am__leading_dot=_
2784 fi
2785 rmdir .tst 2>/dev/null
2786
2787 # Check whether --enable-silent-rules was given.
2788 if test "${enable_silent_rules+set}" = set; then :
2789 enableval=$enable_silent_rules;
2790 fi
2791
2792 case $enable_silent_rules in # (((
2793 yes) AM_DEFAULT_VERBOSITY=0;;
2794 no) AM_DEFAULT_VERBOSITY=1;;
2795 *) AM_DEFAULT_VERBOSITY=1;;
2796 esac
2797 am_make=${MAKE-make}
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2799 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2800 if ${am_cv_make_support_nested_variables+:} false; then :
2801 $as_echo_n "(cached) " >&6
2802 else
2803 if $as_echo 'TRUE=$(BAR$(V))
2804 BAR0=false
2805 BAR1=true
2806 V=1
2807 am__doit:
2808 @$(TRUE)
2809 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2810 am_cv_make_support_nested_variables=yes
2811 else
2812 am_cv_make_support_nested_variables=no
2813 fi
2814 fi
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2816 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2817 if test $am_cv_make_support_nested_variables = yes; then
2818 AM_V='$(V)'
2819 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2820 else
2821 AM_V=$AM_DEFAULT_VERBOSITY
2822 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2823 fi
2824 AM_BACKSLASH='\'
2825
2826 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2827 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2828 # is not polluted with repeated "-I."
2829 am__isrc=' -I$(srcdir)'
2830 # test to see if srcdir already configured
2831 if test -f $srcdir/config.status; then
2832 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2833 fi
2834 fi
2835
2836 # test whether we have cygpath
2837 if test -z "$CYGPATH_W"; then
2838 if (cygpath --version) >/dev/null 2>/dev/null; then
2839 CYGPATH_W='cygpath -w'
2840 else
2841 CYGPATH_W=echo
2842 fi
2843 fi
2844
2845
2846 # Define the identity of the package.
2847 PACKAGE='libXi'
2848 VERSION='1.7.7'
2849
2850
2851 cat >>confdefs.h <<_ACEOF
2852 #define PACKAGE "$PACKAGE"
2853 _ACEOF
2854
2855
2856 cat >>confdefs.h <<_ACEOF
2857 #define VERSION "$VERSION"
2858 _ACEOF
2859
2860 # Some tools Automake needs.
2861
2862 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2863
2864
2865 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2866
2867
2868 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2869
2870
2871 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2872
2873
2874 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2875
2876 # For better backward compatibility. To be removed once Automake 1.9.x
2877 # dies out for good. For more background, see:
2878 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2879 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2880 mkdir_p='$(MKDIR_P)'
2881
2882 # We need awk for the "check" target. The system "awk" is bad on
2883 # some platforms.
2884 # Always define AMTAR for backward compatibility. Yes, it's still used
2885 # in the wild :-( We should find a proper way to deprecate it ...
2886 AMTAR='$${TAR-tar}'
2887
2888
2889 # We'll loop over all known methods to create a tar archive until one works.
2890 _am_tools='gnutar pax cpio none'
2891
2892 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2893
2894
2895
2896
2897
2898
2899 # POSIX will say in a future version that running "rm -f" with no argument
2900 # is OK; and we want to be able to make that assumption in our Makefile
2901 # recipes. So use an aggressive probe to check that the usage we want is
2902 # actually supported "in the wild" to an acceptable degree.
2903 # See automake bug#10828.
2904 # To make any issue more visible, cause the running configure to be aborted
2905 # by default if the 'rm' program in use doesn't match our expectations; the
2906 # user can still override this though.
2907 if rm -f && rm -fr && rm -rf; then : OK; else
2908 cat >&2 <<'END'
2909 Oops!
2910
2911 Your 'rm' program seems unable to run without file operands specified
2912 on the command line, even when the '-f' option is present. This is contrary
2913 to the behaviour of most rm programs out there, and not conforming with
2914 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2915
2916 Please tell bug-automake@gnu.org about your system, including the value
2917 of your $PATH and any error possibly output before this message. This
2918 can help us improve future automake versions.
2919
2920 END
2921 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2922 echo 'Configuration will proceed anyway, since you have set the' >&2
2923 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2924 echo >&2
2925 else
2926 cat >&2 <<'END'
2927 Aborting the configuration process, to ensure you take notice of the issue.
2928
2929 You can download and install GNU coreutils to get an 'rm' implementation
2930 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2931
2932 If you want to complete the configuration process using your problematic
2933 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2934 to "yes", and re-run configure.
2935
2936 END
2937 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2938 fi
2939 fi
2940
2941 # Initialize libtool
2942 case `pwd` in
2943 *\ * | *\ *)
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2945 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2946 esac
2947
2948
2949
2950 macro_version='2.4.2'
2951 macro_revision='1.3337'
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965 ltmain="$ac_aux_dir/ltmain.sh"
2966
2967 # Make sure we can run config.sub.
2968 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2969 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2970
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2972 $as_echo_n "checking build system type... " >&6; }
2973 if ${ac_cv_build+:} false; then :
2974 $as_echo_n "(cached) " >&6
2975 else
2976 ac_build_alias=$build_alias
2977 test "x$ac_build_alias" = x &&
2978 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2979 test "x$ac_build_alias" = x &&
2980 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2981 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2982 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2983
2984 fi
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2986 $as_echo "$ac_cv_build" >&6; }
2987 case $ac_cv_build in
2988 *-*-*) ;;
2989 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2990 esac
2991 build=$ac_cv_build
2992 ac_save_IFS=$IFS; IFS='-'
2993 set x $ac_cv_build
2994 shift
2995 build_cpu=$1
2996 build_vendor=$2
2997 shift; shift
2998 # Remember, the first character of IFS is used to create $*,
2999 # except with old shells:
3000 build_os=$*
3001 IFS=$ac_save_IFS
3002 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3003
3004
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3006 $as_echo_n "checking host system type... " >&6; }
3007 if ${ac_cv_host+:} false; then :
3008 $as_echo_n "(cached) " >&6
3009 else
3010 if test "x$host_alias" = x; then
3011 ac_cv_host=$ac_cv_build
3012 else
3013 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3014 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3015 fi
3016
3017 fi
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3019 $as_echo "$ac_cv_host" >&6; }
3020 case $ac_cv_host in
3021 *-*-*) ;;
3022 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3023 esac
3024 host=$ac_cv_host
3025 ac_save_IFS=$IFS; IFS='-'
3026 set x $ac_cv_host
3027 shift
3028 host_cpu=$1
3029 host_vendor=$2
3030 shift; shift
3031 # Remember, the first character of IFS is used to create $*,
3032 # except with old shells:
3033 host_os=$*
3034 IFS=$ac_save_IFS
3035 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3036
3037
3038 # Backslashify metacharacters that are still active within
3039 # double-quoted strings.
3040 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3041
3042 # Same as above, but do not quote variable references.
3043 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3044
3045 # Sed substitution to delay expansion of an escaped shell variable in a
3046 # double_quote_subst'ed string.
3047 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3048
3049 # Sed substitution to delay expansion of an escaped single quote.
3050 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3051
3052 # Sed substitution to avoid accidental globbing in evaled expressions
3053 no_glob_subst='s/\*/\\\*/g'
3054
3055 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3056 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3057 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3058
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3060 $as_echo_n "checking how to print strings... " >&6; }
3061 # Test print first, because it will be a builtin if present.
3062 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3063 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3064 ECHO='print -r --'
3065 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3066 ECHO='printf %s\n'
3067 else
3068 # Use this function as a fallback that always works.
3069 func_fallback_echo ()
3070 {
3071 eval 'cat <<_LTECHO_EOF
3072 $1
3073 _LTECHO_EOF'
3074 }
3075 ECHO='func_fallback_echo'
3076 fi
3077
3078 # func_echo_all arg...
3079 # Invoke $ECHO with all args, space-separated.
3080 func_echo_all ()
3081 {
3082 $ECHO ""
3083 }
3084
3085 case "$ECHO" in
3086 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3087 $as_echo "printf" >&6; } ;;
3088 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3089 $as_echo "print -r" >&6; } ;;
3090 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3091 $as_echo "cat" >&6; } ;;
3092 esac
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107 DEPDIR="${am__leading_dot}deps"
3108
3109 ac_config_commands="$ac_config_commands depfiles"
3110
3111
3112 am_make=${MAKE-make}
3113 cat > confinc << 'END'
3114 am__doit:
3115 @echo this is the am__doit target
3116 .PHONY: am__doit
3117 END
3118 # If we don't find an include directive, just comment out the code.
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3120 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3121 am__include="#"
3122 am__quote=
3123 _am_result=none
3124 # First try GNU make style include.
3125 echo "include confinc" > confmf
3126 # Ignore all kinds of additional output from 'make'.
3127 case `$am_make -s -f confmf 2> /dev/null` in #(
3128 *the\ am__doit\ target*)
3129 am__include=include
3130 am__quote=
3131 _am_result=GNU
3132 ;;
3133 esac
3134 # Now try BSD make style include.
3135 if test "$am__include" = "#"; then
3136 echo '.include "confinc"' > confmf
3137 case `$am_make -s -f confmf 2> /dev/null` in #(
3138 *the\ am__doit\ target*)
3139 am__include=.include
3140 am__quote="\""
3141 _am_result=BSD
3142 ;;
3143 esac
3144 fi
3145
3146
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3148 $as_echo "$_am_result" >&6; }
3149 rm -f confinc confmf
3150
3151 # Check whether --enable-dependency-tracking was given.
3152 if test "${enable_dependency_tracking+set}" = set; then :
3153 enableval=$enable_dependency_tracking;
3154 fi
3155
3156 if test "x$enable_dependency_tracking" != xno; then
3157 am_depcomp="$ac_aux_dir/depcomp"
3158 AMDEPBACKSLASH='\'
3159 am__nodep='_no'
3160 fi
3161 if test "x$enable_dependency_tracking" != xno; then
3162 AMDEP_TRUE=
3163 AMDEP_FALSE='#'
3164 else
3165 AMDEP_TRUE='#'
3166 AMDEP_FALSE=
3167 fi
3168
3169
3170 ac_ext=c
3171 ac_cpp='$CPP $CPPFLAGS'
3172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3175 if test -n "$ac_tool_prefix"; then
3176 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3177 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3179 $as_echo_n "checking for $ac_word... " >&6; }
3180 if ${ac_cv_prog_CC+:} false; then :
3181 $as_echo_n "(cached) " >&6
3182 else
3183 if test -n "$CC"; then
3184 ac_cv_prog_CC="$CC" # Let the user override the test.
3185 else
3186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3187 for as_dir in $PATH
3188 do
3189 IFS=$as_save_IFS
3190 test -z "$as_dir" && as_dir=.
3191 for ac_exec_ext in '' $ac_executable_extensions; do
3192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3193 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3195 break 2
3196 fi
3197 done
3198 done
3199 IFS=$as_save_IFS
3200
3201 fi
3202 fi
3203 CC=$ac_cv_prog_CC
3204 if test -n "$CC"; then
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3206 $as_echo "$CC" >&6; }
3207 else
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3209 $as_echo "no" >&6; }
3210 fi
3211
3212
3213 fi
3214 if test -z "$ac_cv_prog_CC"; then
3215 ac_ct_CC=$CC
3216 # Extract the first word of "gcc", so it can be a program name with args.
3217 set dummy gcc; ac_word=$2
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3219 $as_echo_n "checking for $ac_word... " >&6; }
3220 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3221 $as_echo_n "(cached) " >&6
3222 else
3223 if test -n "$ac_ct_CC"; then
3224 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3225 else
3226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3227 for as_dir in $PATH
3228 do
3229 IFS=$as_save_IFS
3230 test -z "$as_dir" && as_dir=.
3231 for ac_exec_ext in '' $ac_executable_extensions; do
3232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3233 ac_cv_prog_ac_ct_CC="gcc"
3234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3235 break 2
3236 fi
3237 done
3238 done
3239 IFS=$as_save_IFS
3240
3241 fi
3242 fi
3243 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3244 if test -n "$ac_ct_CC"; then
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3246 $as_echo "$ac_ct_CC" >&6; }
3247 else
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3249 $as_echo "no" >&6; }
3250 fi
3251
3252 if test "x$ac_ct_CC" = x; then
3253 CC=""
3254 else
3255 case $cross_compiling:$ac_tool_warned in
3256 yes:)
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3258 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3259 ac_tool_warned=yes ;;
3260 esac
3261 CC=$ac_ct_CC
3262 fi
3263 else
3264 CC="$ac_cv_prog_CC"
3265 fi
3266
3267 if test -z "$CC"; then
3268 if test -n "$ac_tool_prefix"; then
3269 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3270 set dummy ${ac_tool_prefix}cc; ac_word=$2
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3272 $as_echo_n "checking for $ac_word... " >&6; }
3273 if ${ac_cv_prog_CC+:} false; then :
3274 $as_echo_n "(cached) " >&6
3275 else
3276 if test -n "$CC"; then
3277 ac_cv_prog_CC="$CC" # Let the user override the test.
3278 else
3279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3280 for as_dir in $PATH
3281 do
3282 IFS=$as_save_IFS
3283 test -z "$as_dir" && as_dir=.
3284 for ac_exec_ext in '' $ac_executable_extensions; do
3285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3286 ac_cv_prog_CC="${ac_tool_prefix}cc"
3287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3288 break 2
3289 fi
3290 done
3291 done
3292 IFS=$as_save_IFS
3293
3294 fi
3295 fi
3296 CC=$ac_cv_prog_CC
3297 if test -n "$CC"; then
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3299 $as_echo "$CC" >&6; }
3300 else
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3302 $as_echo "no" >&6; }
3303 fi
3304
3305
3306 fi
3307 fi
3308 if test -z "$CC"; then
3309 # Extract the first word of "cc", so it can be a program name with args.
3310 set dummy cc; ac_word=$2
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3312 $as_echo_n "checking for $ac_word... " >&6; }
3313 if ${ac_cv_prog_CC+:} false; then :
3314 $as_echo_n "(cached) " >&6
3315 else
3316 if test -n "$CC"; then
3317 ac_cv_prog_CC="$CC" # Let the user override the test.
3318 else
3319 ac_prog_rejected=no
3320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3321 for as_dir in $PATH
3322 do
3323 IFS=$as_save_IFS
3324 test -z "$as_dir" && as_dir=.
3325 for ac_exec_ext in '' $ac_executable_extensions; do
3326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3327 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3328 ac_prog_rejected=yes
3329 continue
3330 fi
3331 ac_cv_prog_CC="cc"
3332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3333 break 2
3334 fi
3335 done
3336 done
3337 IFS=$as_save_IFS
3338
3339 if test $ac_prog_rejected = yes; then
3340 # We found a bogon in the path, so make sure we never use it.
3341 set dummy $ac_cv_prog_CC
3342 shift
3343 if test $# != 0; then
3344 # We chose a different compiler from the bogus one.
3345 # However, it has the same basename, so the bogon will be chosen
3346 # first if we set CC to just the basename; use the full file name.
3347 shift
3348 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3349 fi
3350 fi
3351 fi
3352 fi
3353 CC=$ac_cv_prog_CC
3354 if test -n "$CC"; then
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3356 $as_echo "$CC" >&6; }
3357 else
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3359 $as_echo "no" >&6; }
3360 fi
3361
3362
3363 fi
3364 if test -z "$CC"; then
3365 if test -n "$ac_tool_prefix"; then
3366 for ac_prog in cl.exe
3367 do
3368 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3369 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3371 $as_echo_n "checking for $ac_word... " >&6; }
3372 if ${ac_cv_prog_CC+:} false; then :
3373 $as_echo_n "(cached) " >&6
3374 else
3375 if test -n "$CC"; then
3376 ac_cv_prog_CC="$CC" # Let the user override the test.
3377 else
3378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3379 for as_dir in $PATH
3380 do
3381 IFS=$as_save_IFS
3382 test -z "$as_dir" && as_dir=.
3383 for ac_exec_ext in '' $ac_executable_extensions; do
3384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3385 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3387 break 2
3388 fi
3389 done
3390 done
3391 IFS=$as_save_IFS
3392
3393 fi
3394 fi
3395 CC=$ac_cv_prog_CC
3396 if test -n "$CC"; then
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3398 $as_echo "$CC" >&6; }
3399 else
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3401 $as_echo "no" >&6; }
3402 fi
3403
3404
3405 test -n "$CC" && break
3406 done
3407 fi
3408 if test -z "$CC"; then
3409 ac_ct_CC=$CC
3410 for ac_prog in cl.exe
3411 do
3412 # Extract the first word of "$ac_prog", so it can be a program name with args.
3413 set dummy $ac_prog; ac_word=$2
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3415 $as_echo_n "checking for $ac_word... " >&6; }
3416 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3417 $as_echo_n "(cached) " >&6
3418 else
3419 if test -n "$ac_ct_CC"; then
3420 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3421 else
3422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3423 for as_dir in $PATH
3424 do
3425 IFS=$as_save_IFS
3426 test -z "$as_dir" && as_dir=.
3427 for ac_exec_ext in '' $ac_executable_extensions; do
3428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3429 ac_cv_prog_ac_ct_CC="$ac_prog"
3430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3431 break 2
3432 fi
3433 done
3434 done
3435 IFS=$as_save_IFS
3436
3437 fi
3438 fi
3439 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3440 if test -n "$ac_ct_CC"; then
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3442 $as_echo "$ac_ct_CC" >&6; }
3443 else
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3445 $as_echo "no" >&6; }
3446 fi
3447
3448
3449 test -n "$ac_ct_CC" && break
3450 done
3451
3452 if test "x$ac_ct_CC" = x; then
3453 CC=""
3454 else
3455 case $cross_compiling:$ac_tool_warned in
3456 yes:)
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3458 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3459 ac_tool_warned=yes ;;
3460 esac
3461 CC=$ac_ct_CC
3462 fi
3463 fi
3464
3465 fi
3466
3467
3468 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3469 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3470 as_fn_error $? "no acceptable C compiler found in \$PATH
3471 See \`config.log' for more details" "$LINENO" 5; }
3472
3473 # Provide some information about the compiler.
3474 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3475 set X $ac_compile
3476 ac_compiler=$2
3477 for ac_option in --version -v -V -qversion; do
3478 { { ac_try="$ac_compiler $ac_option >&5"
3479 case "(($ac_try" in
3480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3481 *) ac_try_echo=$ac_try;;
3482 esac
3483 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3484 $as_echo "$ac_try_echo"; } >&5
3485 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3486 ac_status=$?
3487 if test -s conftest.err; then
3488 sed '10a\
3489 ... rest of stderr output deleted ...
3490 10q' conftest.err >conftest.er1
3491 cat conftest.er1 >&5
3492 fi
3493 rm -f conftest.er1 conftest.err
3494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3495 test $ac_status = 0; }
3496 done
3497
3498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3499 /* end confdefs.h. */
3500
3501 int
3502 main ()
3503 {
3504
3505 ;
3506 return 0;
3507 }
3508 _ACEOF
3509 ac_clean_files_save=$ac_clean_files
3510 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3511 # Try to create an executable without -o first, disregard a.out.
3512 # It will help us diagnose broken compilers, and finding out an intuition
3513 # of exeext.
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3515 $as_echo_n "checking whether the C compiler works... " >&6; }
3516 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3517
3518 # The possible output files:
3519 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3520
3521 ac_rmfiles=
3522 for ac_file in $ac_files
3523 do
3524 case $ac_file in
3525 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3526 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3527 esac
3528 done
3529 rm -f $ac_rmfiles
3530
3531 if { { ac_try="$ac_link_default"
3532 case "(($ac_try" in
3533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3534 *) ac_try_echo=$ac_try;;
3535 esac
3536 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3537 $as_echo "$ac_try_echo"; } >&5
3538 (eval "$ac_link_default") 2>&5
3539 ac_status=$?
3540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3541 test $ac_status = 0; }; then :
3542 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3543 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3544 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3545 # so that the user can short-circuit this test for compilers unknown to
3546 # Autoconf.
3547 for ac_file in $ac_files ''
3548 do
3549 test -f "$ac_file" || continue
3550 case $ac_file in
3551 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3552 ;;
3553 [ab].out )
3554 # We found the default executable, but exeext='' is most
3555 # certainly right.
3556 break;;
3557 *.* )
3558 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3559 then :; else
3560 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3561 fi
3562 # We set ac_cv_exeext here because the later test for it is not
3563 # safe: cross compilers may not add the suffix if given an `-o'
3564 # argument, so we may need to know it at that point already.
3565 # Even if this section looks crufty: it has the advantage of
3566 # actually working.
3567 break;;
3568 * )
3569 break;;
3570 esac
3571 done
3572 test "$ac_cv_exeext" = no && ac_cv_exeext=
3573
3574 else
3575 ac_file=''
3576 fi
3577 if test -z "$ac_file"; then :
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3579 $as_echo "no" >&6; }
3580 $as_echo "$as_me: failed program was:" >&5
3581 sed 's/^/| /' conftest.$ac_ext >&5
3582
3583 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3584 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3585 as_fn_error 77 "C compiler cannot create executables
3586 See \`config.log' for more details" "$LINENO" 5; }
3587 else
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3589 $as_echo "yes" >&6; }
3590 fi
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3592 $as_echo_n "checking for C compiler default output file name... " >&6; }
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3594 $as_echo "$ac_file" >&6; }
3595 ac_exeext=$ac_cv_exeext
3596
3597 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3598 ac_clean_files=$ac_clean_files_save
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3600 $as_echo_n "checking for suffix of executables... " >&6; }
3601 if { { ac_try="$ac_link"
3602 case "(($ac_try" in
3603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3604 *) ac_try_echo=$ac_try;;
3605 esac
3606 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3607 $as_echo "$ac_try_echo"; } >&5
3608 (eval "$ac_link") 2>&5
3609 ac_status=$?
3610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3611 test $ac_status = 0; }; then :
3612 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3613 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3614 # work properly (i.e., refer to `conftest.exe'), while it won't with
3615 # `rm'.
3616 for ac_file in conftest.exe conftest conftest.*; do
3617 test -f "$ac_file" || continue
3618 case $ac_file in
3619 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3620 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3621 break;;
3622 * ) break;;
3623 esac
3624 done
3625 else
3626 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3627 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3628 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3629 See \`config.log' for more details" "$LINENO" 5; }
3630 fi
3631 rm -f conftest conftest$ac_cv_exeext
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3633 $as_echo "$ac_cv_exeext" >&6; }
3634
3635 rm -f conftest.$ac_ext
3636 EXEEXT=$ac_cv_exeext
3637 ac_exeext=$EXEEXT
3638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3639 /* end confdefs.h. */
3640 #include <stdio.h>
3641 int
3642 main ()
3643 {
3644 FILE *f = fopen ("conftest.out", "w");
3645 return ferror (f) || fclose (f) != 0;
3646
3647 ;
3648 return 0;
3649 }
3650 _ACEOF
3651 ac_clean_files="$ac_clean_files conftest.out"
3652 # Check that the compiler produces executables we can run. If not, either
3653 # the compiler is broken, or we cross compile.
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3655 $as_echo_n "checking whether we are cross compiling... " >&6; }
3656 if test "$cross_compiling" != yes; then
3657 { { ac_try="$ac_link"
3658 case "(($ac_try" in
3659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3660 *) ac_try_echo=$ac_try;;
3661 esac
3662 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3663 $as_echo "$ac_try_echo"; } >&5
3664 (eval "$ac_link") 2>&5
3665 ac_status=$?
3666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3667 test $ac_status = 0; }
3668 if { ac_try='./conftest$ac_cv_exeext'
3669 { { case "(($ac_try" in
3670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3671 *) ac_try_echo=$ac_try;;
3672 esac
3673 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3674 $as_echo "$ac_try_echo"; } >&5
3675 (eval "$ac_try") 2>&5
3676 ac_status=$?
3677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3678 test $ac_status = 0; }; }; then
3679 cross_compiling=no
3680 else
3681 if test "$cross_compiling" = maybe; then
3682 cross_compiling=yes
3683 else
3684 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3685 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3686 as_fn_error $? "cannot run C compiled programs.
3687 If you meant to cross compile, use \`--host'.
3688 See \`config.log' for more details" "$LINENO" 5; }
3689 fi
3690 fi
3691 fi
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3693 $as_echo "$cross_compiling" >&6; }
3694
3695 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3696 ac_clean_files=$ac_clean_files_save
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3698 $as_echo_n "checking for suffix of object files... " >&6; }
3699 if ${ac_cv_objext+:} false; then :
3700 $as_echo_n "(cached) " >&6
3701 else
3702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3703 /* end confdefs.h. */
3704
3705 int
3706 main ()
3707 {
3708
3709 ;
3710 return 0;
3711 }
3712 _ACEOF
3713 rm -f conftest.o conftest.obj
3714 if { { ac_try="$ac_compile"
3715 case "(($ac_try" in
3716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3717 *) ac_try_echo=$ac_try;;
3718 esac
3719 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3720 $as_echo "$ac_try_echo"; } >&5
3721 (eval "$ac_compile") 2>&5
3722 ac_status=$?
3723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3724 test $ac_status = 0; }; then :
3725 for ac_file in conftest.o conftest.obj conftest.*; do
3726 test -f "$ac_file" || continue;
3727 case $ac_file in
3728 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3729 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3730 break;;
3731 esac
3732 done
3733 else
3734 $as_echo "$as_me: failed program was:" >&5
3735 sed 's/^/| /' conftest.$ac_ext >&5
3736
3737 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3738 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3739 as_fn_error $? "cannot compute suffix of object files: cannot compile
3740 See \`config.log' for more details" "$LINENO" 5; }
3741 fi
3742 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3743 fi
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3745 $as_echo "$ac_cv_objext" >&6; }
3746 OBJEXT=$ac_cv_objext
3747 ac_objext=$OBJEXT
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3749 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3750 if ${ac_cv_c_compiler_gnu+:} false; then :
3751 $as_echo_n "(cached) " >&6
3752 else
3753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3754 /* end confdefs.h. */
3755
3756 int
3757 main ()
3758 {
3759 #ifndef __GNUC__
3760 choke me
3761 #endif
3762
3763 ;
3764 return 0;
3765 }
3766 _ACEOF
3767 if ac_fn_c_try_compile "$LINENO"; then :
3768 ac_compiler_gnu=yes
3769 else
3770 ac_compiler_gnu=no
3771 fi
3772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3773 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3774
3775 fi
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3777 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3778 if test $ac_compiler_gnu = yes; then
3779 GCC=yes
3780 else
3781 GCC=
3782 fi
3783 ac_test_CFLAGS=${CFLAGS+set}
3784 ac_save_CFLAGS=$CFLAGS
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3786 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3787 if ${ac_cv_prog_cc_g+:} false; then :
3788 $as_echo_n "(cached) " >&6
3789 else
3790 ac_save_c_werror_flag=$ac_c_werror_flag
3791 ac_c_werror_flag=yes
3792 ac_cv_prog_cc_g=no
3793 CFLAGS="-g"
3794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3795 /* end confdefs.h. */
3796
3797 int
3798 main ()
3799 {
3800
3801 ;
3802 return 0;
3803 }
3804 _ACEOF
3805 if ac_fn_c_try_compile "$LINENO"; then :
3806 ac_cv_prog_cc_g=yes
3807 else
3808 CFLAGS=""
3809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3810 /* end confdefs.h. */
3811
3812 int
3813 main ()
3814 {
3815
3816 ;
3817 return 0;
3818 }
3819 _ACEOF
3820 if ac_fn_c_try_compile "$LINENO"; then :
3821
3822 else
3823 ac_c_werror_flag=$ac_save_c_werror_flag
3824 CFLAGS="-g"
3825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3826 /* end confdefs.h. */
3827
3828 int
3829 main ()
3830 {
3831
3832 ;
3833 return 0;
3834 }
3835 _ACEOF
3836 if ac_fn_c_try_compile "$LINENO"; then :
3837 ac_cv_prog_cc_g=yes
3838 fi
3839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3840 fi
3841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3842 fi
3843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3844 ac_c_werror_flag=$ac_save_c_werror_flag
3845 fi
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3847 $as_echo "$ac_cv_prog_cc_g" >&6; }
3848 if test "$ac_test_CFLAGS" = set; then
3849 CFLAGS=$ac_save_CFLAGS
3850 elif test $ac_cv_prog_cc_g = yes; then
3851 if test "$GCC" = yes; then
3852 CFLAGS="-g -O2"
3853 else
3854 CFLAGS="-g"
3855 fi
3856 else
3857 if test "$GCC" = yes; then
3858 CFLAGS="-O2"
3859 else
3860 CFLAGS=
3861 fi
3862 fi
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3864 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3865 if ${ac_cv_prog_cc_c89+:} false; then :
3866 $as_echo_n "(cached) " >&6
3867 else
3868 ac_cv_prog_cc_c89=no
3869 ac_save_CC=$CC
3870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3871 /* end confdefs.h. */
3872 #include <stdarg.h>
3873 #include <stdio.h>
3874 struct stat;
3875 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3876 struct buf { int x; };
3877 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3878 static char *e (p, i)
3879 char **p;
3880 int i;
3881 {
3882 return p[i];
3883 }
3884 static char *f (char * (*g) (char **, int), char **p, ...)
3885 {
3886 char *s;
3887 va_list v;
3888 va_start (v,p);
3889 s = g (p, va_arg (v,int));
3890 va_end (v);
3891 return s;
3892 }
3893
3894 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3895 function prototypes and stuff, but not '\xHH' hex character constants.
3896 These don't provoke an error unfortunately, instead are silently treated
3897 as 'x'. The following induces an error, until -std is added to get
3898 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3899 array size at least. It's necessary to write '\x00'==0 to get something
3900 that's true only with -std. */
3901 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3902
3903 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3904 inside strings and character constants. */
3905 #define FOO(x) 'x'
3906 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3907
3908 int test (int i, double x);
3909 struct s1 {int (*f) (int a);};
3910 struct s2 {int (*f) (double a);};
3911 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3912 int argc;
3913 char **argv;
3914 int
3915 main ()
3916 {
3917 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3918 ;
3919 return 0;
3920 }
3921 _ACEOF
3922 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3923 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3924 do
3925 CC="$ac_save_CC $ac_arg"
3926 if ac_fn_c_try_compile "$LINENO"; then :
3927 ac_cv_prog_cc_c89=$ac_arg
3928 fi
3929 rm -f core conftest.err conftest.$ac_objext
3930 test "x$ac_cv_prog_cc_c89" != "xno" && break
3931 done
3932 rm -f conftest.$ac_ext
3933 CC=$ac_save_CC
3934
3935 fi
3936 # AC_CACHE_VAL
3937 case "x$ac_cv_prog_cc_c89" in
3938 x)
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3940 $as_echo "none needed" >&6; } ;;
3941 xno)
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3943 $as_echo "unsupported" >&6; } ;;
3944 *)
3945 CC="$CC $ac_cv_prog_cc_c89"
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3947 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3948 esac
3949 if test "x$ac_cv_prog_cc_c89" != xno; then :
3950
3951 fi
3952
3953 ac_ext=c
3954 ac_cpp='$CPP $CPPFLAGS'
3955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3958
3959 ac_ext=c
3960 ac_cpp='$CPP $CPPFLAGS'
3961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3965 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3966 if ${am_cv_prog_cc_c_o+:} false; then :
3967 $as_echo_n "(cached) " >&6
3968 else
3969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3970 /* end confdefs.h. */
3971
3972 int
3973 main ()
3974 {
3975
3976 ;
3977 return 0;
3978 }
3979 _ACEOF
3980 # Make sure it works both with $CC and with simple cc.
3981 # Following AC_PROG_CC_C_O, we do the test twice because some
3982 # compilers refuse to overwrite an existing .o file with -o,
3983 # though they will create one.
3984 am_cv_prog_cc_c_o=yes
3985 for am_i in 1 2; do
3986 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3987 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3988 ac_status=$?
3989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3990 (exit $ac_status); } \
3991 && test -f conftest2.$ac_objext; then
3992 : OK
3993 else
3994 am_cv_prog_cc_c_o=no
3995 break
3996 fi
3997 done
3998 rm -f core conftest*
3999 unset am_i
4000 fi
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4002 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4003 if test "$am_cv_prog_cc_c_o" != yes; then
4004 # Losing compiler, so override with the script.
4005 # FIXME: It is wrong to rewrite CC.
4006 # But if we don't then we get into trouble of one sort or another.
4007 # A longer-term fix would be to have automake use am__CC in this case,
4008 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4009 CC="$am_aux_dir/compile $CC"
4010 fi
4011 ac_ext=c
4012 ac_cpp='$CPP $CPPFLAGS'
4013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4016
4017
4018 depcc="$CC" am_compiler_list=
4019
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4021 $as_echo_n "checking dependency style of $depcc... " >&6; }
4022 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4023 $as_echo_n "(cached) " >&6
4024 else
4025 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4026 # We make a subdir and do the tests there. Otherwise we can end up
4027 # making bogus files that we don't know about and never remove. For
4028 # instance it was reported that on HP-UX the gcc test will end up
4029 # making a dummy file named 'D' -- because '-MD' means "put the output
4030 # in D".
4031 rm -rf conftest.dir
4032 mkdir conftest.dir
4033 # Copy depcomp to subdir because otherwise we won't find it if we're
4034 # using a relative directory.
4035 cp "$am_depcomp" conftest.dir
4036 cd conftest.dir
4037 # We will build objects and dependencies in a subdirectory because
4038 # it helps to detect inapplicable dependency modes. For instance
4039 # both Tru64's cc and ICC support -MD to output dependencies as a
4040 # side effect of compilation, but ICC will put the dependencies in
4041 # the current directory while Tru64 will put them in the object
4042 # directory.
4043 mkdir sub
4044
4045 am_cv_CC_dependencies_compiler_type=none
4046 if test "$am_compiler_list" = ""; then
4047 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4048 fi
4049 am__universal=false
4050 case " $depcc " in #(
4051 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4052 esac
4053
4054 for depmode in $am_compiler_list; do
4055 # Setup a source with many dependencies, because some compilers
4056 # like to wrap large dependency lists on column 80 (with \), and
4057 # we should not choose a depcomp mode which is confused by this.
4058 #
4059 # We need to recreate these files for each test, as the compiler may
4060 # overwrite some of them when testing with obscure command lines.
4061 # This happens at least with the AIX C compiler.
4062 : > sub/conftest.c
4063 for i in 1 2 3 4 5 6; do
4064 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4065 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4066 # Solaris 10 /bin/sh.
4067 echo '/* dummy */' > sub/conftst$i.h
4068 done
4069 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4070
4071 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4072 # mode. It turns out that the SunPro C++ compiler does not properly
4073 # handle '-M -o', and we need to detect this. Also, some Intel
4074 # versions had trouble with output in subdirs.
4075 am__obj=sub/conftest.${OBJEXT-o}
4076 am__minus_obj="-o $am__obj"
4077 case $depmode in
4078 gcc)
4079 # This depmode causes a compiler race in universal mode.
4080 test "$am__universal" = false || continue
4081 ;;
4082 nosideeffect)
4083 # After this tag, mechanisms are not by side-effect, so they'll
4084 # only be used when explicitly requested.
4085 if test "x$enable_dependency_tracking" = xyes; then
4086 continue
4087 else
4088 break
4089 fi
4090 ;;
4091 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4092 # This compiler won't grok '-c -o', but also, the minuso test has
4093 # not run yet. These depmodes are late enough in the game, and
4094 # so weak that their functioning should not be impacted.
4095 am__obj=conftest.${OBJEXT-o}
4096 am__minus_obj=
4097 ;;
4098 none) break ;;
4099 esac
4100 if depmode=$depmode \
4101 source=sub/conftest.c object=$am__obj \
4102 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4103 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4104 >/dev/null 2>conftest.err &&
4105 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4106 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4107 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4108 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4109 # icc doesn't choke on unknown options, it will just issue warnings
4110 # or remarks (even with -Werror). So we grep stderr for any message
4111 # that says an option was ignored or not supported.
4112 # When given -MP, icc 7.0 and 7.1 complain thusly:
4113 # icc: Command line warning: ignoring option '-M'; no argument required
4114 # The diagnosis changed in icc 8.0:
4115 # icc: Command line remark: option '-MP' not supported
4116 if (grep 'ignoring option' conftest.err ||
4117 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4118 am_cv_CC_dependencies_compiler_type=$depmode
4119 break
4120 fi
4121 fi
4122 done
4123
4124 cd ..
4125 rm -rf conftest.dir
4126 else
4127 am_cv_CC_dependencies_compiler_type=none
4128 fi
4129
4130 fi
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4132 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4133 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4134
4135 if
4136 test "x$enable_dependency_tracking" != xno \
4137 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4138 am__fastdepCC_TRUE=
4139 am__fastdepCC_FALSE='#'
4140 else
4141 am__fastdepCC_TRUE='#'
4142 am__fastdepCC_FALSE=
4143 fi
4144
4145
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4147 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4148 if ${ac_cv_path_SED+:} false; then :
4149 $as_echo_n "(cached) " >&6
4150 else
4151 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4152 for ac_i in 1 2 3 4 5 6 7; do
4153 ac_script="$ac_script$as_nl$ac_script"
4154 done
4155 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4156 { ac_script=; unset ac_script;}
4157 if test -z "$SED"; then
4158 ac_path_SED_found=false
4159 # Loop through the user's path and test for each of PROGNAME-LIST
4160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4161 for as_dir in $PATH
4162 do
4163 IFS=$as_save_IFS
4164 test -z "$as_dir" && as_dir=.
4165 for ac_prog in sed gsed; do
4166 for ac_exec_ext in '' $ac_executable_extensions; do
4167 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4168 as_fn_executable_p "$ac_path_SED" || continue
4169 # Check for GNU ac_path_SED and select it if it is found.
4170 # Check for GNU $ac_path_SED
4171 case `"$ac_path_SED" --version 2>&1` in
4172 *GNU*)
4173 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4174 *)
4175 ac_count=0
4176 $as_echo_n 0123456789 >"conftest.in"
4177 while :
4178 do
4179 cat "conftest.in" "conftest.in" >"conftest.tmp"
4180 mv "conftest.tmp" "conftest.in"
4181 cp "conftest.in" "conftest.nl"
4182 $as_echo '' >> "conftest.nl"
4183 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4184 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4185 as_fn_arith $ac_count + 1 && ac_count=$as_val
4186 if test $ac_count -gt ${ac_path_SED_max-0}; then
4187 # Best one so far, save it but keep looking for a better one
4188 ac_cv_path_SED="$ac_path_SED"
4189 ac_path_SED_max=$ac_count
4190 fi
4191 # 10*(2^10) chars as input seems more than enough
4192 test $ac_count -gt 10 && break
4193 done
4194 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4195 esac
4196
4197 $ac_path_SED_found && break 3
4198 done
4199 done
4200 done
4201 IFS=$as_save_IFS
4202 if test -z "$ac_cv_path_SED"; then
4203 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4204 fi
4205 else
4206 ac_cv_path_SED=$SED
4207 fi
4208
4209 fi
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4211 $as_echo "$ac_cv_path_SED" >&6; }
4212 SED="$ac_cv_path_SED"
4213 rm -f conftest.sed
4214
4215 test -z "$SED" && SED=sed
4216 Xsed="$SED -e 1s/^X//"
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4229 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4230 if ${ac_cv_path_GREP+:} false; then :
4231 $as_echo_n "(cached) " >&6
4232 else
4233 if test -z "$GREP"; then
4234 ac_path_GREP_found=false
4235 # Loop through the user's path and test for each of PROGNAME-LIST
4236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4237 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4238 do
4239 IFS=$as_save_IFS
4240 test -z "$as_dir" && as_dir=.
4241 for ac_prog in grep ggrep; do
4242 for ac_exec_ext in '' $ac_executable_extensions; do
4243 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4244 as_fn_executable_p "$ac_path_GREP" || continue
4245 # Check for GNU ac_path_GREP and select it if it is found.
4246 # Check for GNU $ac_path_GREP
4247 case `"$ac_path_GREP" --version 2>&1` in
4248 *GNU*)
4249 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4250 *)
4251 ac_count=0
4252 $as_echo_n 0123456789 >"conftest.in"
4253 while :
4254 do
4255 cat "conftest.in" "conftest.in" >"conftest.tmp"
4256 mv "conftest.tmp" "conftest.in"
4257 cp "conftest.in" "conftest.nl"
4258 $as_echo 'GREP' >> "conftest.nl"
4259 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4260 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4261 as_fn_arith $ac_count + 1 && ac_count=$as_val
4262 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4263 # Best one so far, save it but keep looking for a better one
4264 ac_cv_path_GREP="$ac_path_GREP"
4265 ac_path_GREP_max=$ac_count
4266 fi
4267 # 10*(2^10) chars as input seems more than enough
4268 test $ac_count -gt 10 && break
4269 done
4270 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4271 esac
4272
4273 $ac_path_GREP_found && break 3
4274 done
4275 done
4276 done
4277 IFS=$as_save_IFS
4278 if test -z "$ac_cv_path_GREP"; then
4279 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4280 fi
4281 else
4282 ac_cv_path_GREP=$GREP
4283 fi
4284
4285 fi
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4287 $as_echo "$ac_cv_path_GREP" >&6; }
4288 GREP="$ac_cv_path_GREP"
4289
4290
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4292 $as_echo_n "checking for egrep... " >&6; }
4293 if ${ac_cv_path_EGREP+:} false; then :
4294 $as_echo_n "(cached) " >&6
4295 else
4296 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4297 then ac_cv_path_EGREP="$GREP -E"
4298 else
4299 if test -z "$EGREP"; then
4300 ac_path_EGREP_found=false
4301 # Loop through the user's path and test for each of PROGNAME-LIST
4302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4303 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4304 do
4305 IFS=$as_save_IFS
4306 test -z "$as_dir" && as_dir=.
4307 for ac_prog in egrep; do
4308 for ac_exec_ext in '' $ac_executable_extensions; do
4309 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4310 as_fn_executable_p "$ac_path_EGREP" || continue
4311 # Check for GNU ac_path_EGREP and select it if it is found.
4312 # Check for GNU $ac_path_EGREP
4313 case `"$ac_path_EGREP" --version 2>&1` in
4314 *GNU*)
4315 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4316 *)
4317 ac_count=0
4318 $as_echo_n 0123456789 >"conftest.in"
4319 while :
4320 do
4321 cat "conftest.in" "conftest.in" >"conftest.tmp"
4322 mv "conftest.tmp" "conftest.in"
4323 cp "conftest.in" "conftest.nl"
4324 $as_echo 'EGREP' >> "conftest.nl"
4325 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4326 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4327 as_fn_arith $ac_count + 1 && ac_count=$as_val
4328 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4329 # Best one so far, save it but keep looking for a better one
4330 ac_cv_path_EGREP="$ac_path_EGREP"
4331 ac_path_EGREP_max=$ac_count
4332 fi
4333 # 10*(2^10) chars as input seems more than enough
4334 test $ac_count -gt 10 && break
4335 done
4336 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4337 esac
4338
4339 $ac_path_EGREP_found && break 3
4340 done
4341 done
4342 done
4343 IFS=$as_save_IFS
4344 if test -z "$ac_cv_path_EGREP"; then
4345 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4346 fi
4347 else
4348 ac_cv_path_EGREP=$EGREP
4349 fi
4350
4351 fi
4352 fi
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4354 $as_echo "$ac_cv_path_EGREP" >&6; }
4355 EGREP="$ac_cv_path_EGREP"
4356
4357
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4359 $as_echo_n "checking for fgrep... " >&6; }
4360 if ${ac_cv_path_FGREP+:} false; then :
4361 $as_echo_n "(cached) " >&6
4362 else
4363 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4364 then ac_cv_path_FGREP="$GREP -F"
4365 else
4366 if test -z "$FGREP"; then
4367 ac_path_FGREP_found=false
4368 # Loop through the user's path and test for each of PROGNAME-LIST
4369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4370 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4371 do
4372 IFS=$as_save_IFS
4373 test -z "$as_dir" && as_dir=.
4374 for ac_prog in fgrep; do
4375 for ac_exec_ext in '' $ac_executable_extensions; do
4376 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4377 as_fn_executable_p "$ac_path_FGREP" || continue
4378 # Check for GNU ac_path_FGREP and select it if it is found.
4379 # Check for GNU $ac_path_FGREP
4380 case `"$ac_path_FGREP" --version 2>&1` in
4381 *GNU*)
4382 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4383 *)
4384 ac_count=0
4385 $as_echo_n 0123456789 >"conftest.in"
4386 while :
4387 do
4388 cat "conftest.in" "conftest.in" >"conftest.tmp"
4389 mv "conftest.tmp" "conftest.in"
4390 cp "conftest.in" "conftest.nl"
4391 $as_echo 'FGREP' >> "conftest.nl"
4392 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4393 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4394 as_fn_arith $ac_count + 1 && ac_count=$as_val
4395 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4396 # Best one so far, save it but keep looking for a better one
4397 ac_cv_path_FGREP="$ac_path_FGREP"
4398 ac_path_FGREP_max=$ac_count
4399 fi
4400 # 10*(2^10) chars as input seems more than enough
4401 test $ac_count -gt 10 && break
4402 done
4403 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4404 esac
4405
4406 $ac_path_FGREP_found && break 3
4407 done
4408 done
4409 done
4410 IFS=$as_save_IFS
4411 if test -z "$ac_cv_path_FGREP"; then
4412 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4413 fi
4414 else
4415 ac_cv_path_FGREP=$FGREP
4416 fi
4417
4418 fi
4419 fi
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4421 $as_echo "$ac_cv_path_FGREP" >&6; }
4422 FGREP="$ac_cv_path_FGREP"
4423
4424
4425 test -z "$GREP" && GREP=grep
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445 # Check whether --with-gnu-ld was given.
4446 if test "${with_gnu_ld+set}" = set; then :
4447 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4448 else
4449 with_gnu_ld=no
4450 fi
4451
4452 ac_prog=ld
4453 if test "$GCC" = yes; then
4454 # Check if gcc -print-prog-name=ld gives a path.
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4456 $as_echo_n "checking for ld used by $CC... " >&6; }
4457 case $host in
4458 *-*-mingw*)
4459 # gcc leaves a trailing carriage return which upsets mingw
4460 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4461 *)
4462 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4463 esac
4464 case $ac_prog in
4465 # Accept absolute paths.
4466 [\\/]* | ?:[\\/]*)
4467 re_direlt='/[^/][^/]*/\.\./'
4468 # Canonicalize the pathname of ld
4469 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4470 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4471 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4472 done
4473 test -z "$LD" && LD="$ac_prog"
4474 ;;
4475 "")
4476 # If it fails, then pretend we aren't using GCC.
4477 ac_prog=ld
4478 ;;
4479 *)
4480 # If it is relative, then search for the first ld in PATH.
4481 with_gnu_ld=unknown
4482 ;;
4483 esac
4484 elif test "$with_gnu_ld" = yes; then
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4486 $as_echo_n "checking for GNU ld... " >&6; }
4487 else
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4489 $as_echo_n "checking for non-GNU ld... " >&6; }
4490 fi
4491 if ${lt_cv_path_LD+:} false; then :
4492 $as_echo_n "(cached) " >&6
4493 else
4494 if test -z "$LD"; then
4495 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4496 for ac_dir in $PATH; do
4497 IFS="$lt_save_ifs"
4498 test -z "$ac_dir" && ac_dir=.
4499 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4500 lt_cv_path_LD="$ac_dir/$ac_prog"
4501 # Check to see if the program is GNU ld. I'd rather use --version,
4502 # but apparently some variants of GNU ld only accept -v.
4503 # Break only if it was the GNU/non-GNU ld that we prefer.
4504 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4505 *GNU* | *'with BFD'*)
4506 test "$with_gnu_ld" != no && break
4507 ;;
4508 *)
4509 test "$with_gnu_ld" != yes && break
4510 ;;
4511 esac
4512 fi
4513 done
4514 IFS="$lt_save_ifs"
4515 else
4516 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4517 fi
4518 fi
4519
4520 LD="$lt_cv_path_LD"
4521 if test -n "$LD"; then
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4523 $as_echo "$LD" >&6; }
4524 else
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4526 $as_echo "no" >&6; }
4527 fi
4528 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4530 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4531 if ${lt_cv_prog_gnu_ld+:} false; then :
4532 $as_echo_n "(cached) " >&6
4533 else
4534 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4535 case `$LD -v 2>&1 </dev/null` in
4536 *GNU* | *'with BFD'*)
4537 lt_cv_prog_gnu_ld=yes
4538 ;;
4539 *)
4540 lt_cv_prog_gnu_ld=no
4541 ;;
4542 esac
4543 fi
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4545 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4546 with_gnu_ld=$lt_cv_prog_gnu_ld
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4557 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4558 if ${lt_cv_path_NM+:} false; then :
4559 $as_echo_n "(cached) " >&6
4560 else
4561 if test -n "$NM"; then
4562 # Let the user override the test.
4563 lt_cv_path_NM="$NM"
4564 else
4565 lt_nm_to_check="${ac_tool_prefix}nm"
4566 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4567 lt_nm_to_check="$lt_nm_to_check nm"
4568 fi
4569 for lt_tmp_nm in $lt_nm_to_check; do
4570 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4571 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4572 IFS="$lt_save_ifs"
4573 test -z "$ac_dir" && ac_dir=.
4574 tmp_nm="$ac_dir/$lt_tmp_nm"
4575 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4576 # Check to see if the nm accepts a BSD-compat flag.
4577 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4578 # nm: unknown option "B" ignored
4579 # Tru64's nm complains that /dev/null is an invalid object file
4580 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4581 */dev/null* | *'Invalid file or object type'*)
4582 lt_cv_path_NM="$tmp_nm -B"
4583 break
4584 ;;
4585 *)
4586 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4587 */dev/null*)
4588 lt_cv_path_NM="$tmp_nm -p"
4589 break
4590 ;;
4591 *)
4592 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4593 continue # so that we can try to find one that supports BSD flags
4594 ;;
4595 esac
4596 ;;
4597 esac
4598 fi
4599 done
4600 IFS="$lt_save_ifs"
4601 done
4602 : ${lt_cv_path_NM=no}
4603 fi
4604 fi
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4606 $as_echo "$lt_cv_path_NM" >&6; }
4607 if test "$lt_cv_path_NM" != "no"; then
4608 NM="$lt_cv_path_NM"
4609 else
4610 # Didn't find any BSD compatible name lister, look for dumpbin.
4611 if test -n "$DUMPBIN"; then :
4612 # Let the user override the test.
4613 else
4614 if test -n "$ac_tool_prefix"; then
4615 for ac_prog in dumpbin "link -dump"
4616 do
4617 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4618 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4620 $as_echo_n "checking for $ac_word... " >&6; }
4621 if ${ac_cv_prog_DUMPBIN+:} false; then :
4622 $as_echo_n "(cached) " >&6
4623 else
4624 if test -n "$DUMPBIN"; then
4625 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4626 else
4627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4628 for as_dir in $PATH
4629 do
4630 IFS=$as_save_IFS
4631 test -z "$as_dir" && as_dir=.
4632 for ac_exec_ext in '' $ac_executable_extensions; do
4633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4634 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4636 break 2
4637 fi
4638 done
4639 done
4640 IFS=$as_save_IFS
4641
4642 fi
4643 fi
4644 DUMPBIN=$ac_cv_prog_DUMPBIN
4645 if test -n "$DUMPBIN"; then
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4647 $as_echo "$DUMPBIN" >&6; }
4648 else
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4650 $as_echo "no" >&6; }
4651 fi
4652
4653
4654 test -n "$DUMPBIN" && break
4655 done
4656 fi
4657 if test -z "$DUMPBIN"; then
4658 ac_ct_DUMPBIN=$DUMPBIN
4659 for ac_prog in dumpbin "link -dump"
4660 do
4661 # Extract the first word of "$ac_prog", so it can be a program name with args.
4662 set dummy $ac_prog; ac_word=$2
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4664 $as_echo_n "checking for $ac_word... " >&6; }
4665 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4666 $as_echo_n "(cached) " >&6
4667 else
4668 if test -n "$ac_ct_DUMPBIN"; then
4669 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4670 else
4671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4672 for as_dir in $PATH
4673 do
4674 IFS=$as_save_IFS
4675 test -z "$as_dir" && as_dir=.
4676 for ac_exec_ext in '' $ac_executable_extensions; do
4677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4678 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4680 break 2
4681 fi
4682 done
4683 done
4684 IFS=$as_save_IFS
4685
4686 fi
4687 fi
4688 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4689 if test -n "$ac_ct_DUMPBIN"; then
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4691 $as_echo "$ac_ct_DUMPBIN" >&6; }
4692 else
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4694 $as_echo "no" >&6; }
4695 fi
4696
4697
4698 test -n "$ac_ct_DUMPBIN" && break
4699 done
4700
4701 if test "x$ac_ct_DUMPBIN" = x; then
4702 DUMPBIN=":"
4703 else
4704 case $cross_compiling:$ac_tool_warned in
4705 yes:)
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4707 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4708 ac_tool_warned=yes ;;
4709 esac
4710 DUMPBIN=$ac_ct_DUMPBIN
4711 fi
4712 fi
4713
4714 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4715 *COFF*)
4716 DUMPBIN="$DUMPBIN -symbols"
4717 ;;
4718 *)
4719 DUMPBIN=:
4720 ;;
4721 esac
4722 fi
4723
4724 if test "$DUMPBIN" != ":"; then
4725 NM="$DUMPBIN"
4726 fi
4727 fi
4728 test -z "$NM" && NM=nm
4729
4730
4731
4732
4733
4734
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4736 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4737 if ${lt_cv_nm_interface+:} false; then :
4738 $as_echo_n "(cached) " >&6
4739 else
4740 lt_cv_nm_interface="BSD nm"
4741 echo "int some_variable = 0;" > conftest.$ac_ext
4742 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4743 (eval "$ac_compile" 2>conftest.err)
4744 cat conftest.err >&5
4745 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4746 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4747 cat conftest.err >&5
4748 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4749 cat conftest.out >&5
4750 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4751 lt_cv_nm_interface="MS dumpbin"
4752 fi
4753 rm -f conftest*
4754 fi
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4756 $as_echo "$lt_cv_nm_interface" >&6; }
4757
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4759 $as_echo_n "checking whether ln -s works... " >&6; }
4760 LN_S=$as_ln_s
4761 if test "$LN_S" = "ln -s"; then
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4763 $as_echo "yes" >&6; }
4764 else
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4766 $as_echo "no, using $LN_S" >&6; }
4767 fi
4768
4769 # find the maximum length of command line arguments
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4771 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4772 if ${lt_cv_sys_max_cmd_len+:} false; then :
4773 $as_echo_n "(cached) " >&6
4774 else
4775 i=0
4776 teststring="ABCD"
4777
4778 case $build_os in
4779 msdosdjgpp*)
4780 # On DJGPP, this test can blow up pretty badly due to problems in libc
4781 # (any single argument exceeding 2000 bytes causes a buffer overrun
4782 # during glob expansion). Even if it were fixed, the result of this
4783 # check would be larger than it should be.
4784 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4785 ;;
4786
4787 gnu*)
4788 # Under GNU Hurd, this test is not required because there is
4789 # no limit to the length of command line arguments.
4790 # Libtool will interpret -1 as no limit whatsoever
4791 lt_cv_sys_max_cmd_len=-1;
4792 ;;
4793
4794 cygwin* | mingw* | cegcc*)
4795 # On Win9x/ME, this test blows up -- it succeeds, but takes
4796 # about 5 minutes as the teststring grows exponentially.
4797 # Worse, since 9x/ME are not pre-emptively multitasking,
4798 # you end up with a "frozen" computer, even though with patience
4799 # the test eventually succeeds (with a max line length of 256k).
4800 # Instead, let's just punt: use the minimum linelength reported by
4801 # all of the supported platforms: 8192 (on NT/2K/XP).
4802 lt_cv_sys_max_cmd_len=8192;
4803 ;;
4804
4805 mint*)
4806 # On MiNT this can take a long time and run out of memory.
4807 lt_cv_sys_max_cmd_len=8192;
4808 ;;
4809
4810 amigaos*)
4811 # On AmigaOS with pdksh, this test takes hours, literally.
4812 # So we just punt and use a minimum line length of 8192.
4813 lt_cv_sys_max_cmd_len=8192;
4814 ;;
4815
4816 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4817 # This has been around since 386BSD, at least. Likely further.
4818 if test -x /sbin/sysctl; then
4819 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4820 elif test -x /usr/sbin/sysctl; then
4821 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4822 else
4823 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4824 fi
4825 # And add a safety zone
4826 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4827 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4828 ;;
4829
4830 interix*)
4831 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4832 lt_cv_sys_max_cmd_len=196608
4833 ;;
4834
4835 os2*)
4836 # The test takes a long time on OS/2.
4837 lt_cv_sys_max_cmd_len=8192
4838 ;;
4839
4840 osf*)
4841 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4842 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4843 # nice to cause kernel panics so lets avoid the loop below.
4844 # First set a reasonable default.
4845 lt_cv_sys_max_cmd_len=16384
4846 #
4847 if test -x /sbin/sysconfig; then
4848 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4849 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4850 esac
4851 fi
4852 ;;
4853 sco3.2v5*)
4854 lt_cv_sys_max_cmd_len=102400
4855 ;;
4856 sysv5* | sco5v6* | sysv4.2uw2*)
4857 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4858 if test -n "$kargmax"; then
4859 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4860 else
4861 lt_cv_sys_max_cmd_len=32768
4862 fi
4863 ;;
4864 *)
4865 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4866 if test -n "$lt_cv_sys_max_cmd_len" && \
4867 test undefined != "$lt_cv_sys_max_cmd_len"; then
4868 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4869 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4870 else
4871 # Make teststring a little bigger before we do anything with it.
4872 # a 1K string should be a reasonable start.
4873 for i in 1 2 3 4 5 6 7 8 ; do
4874 teststring=$teststring$teststring
4875 done
4876 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4877 # If test is not a shell built-in, we'll probably end up computing a
4878 # maximum length that is only half of the actual maximum length, but
4879 # we can't tell.
4880 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4881 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4882 test $i != 17 # 1/2 MB should be enough
4883 do
4884 i=`expr $i + 1`
4885 teststring=$teststring$teststring
4886 done
4887 # Only check the string length outside the loop.
4888 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4889 teststring=
4890 # Add a significant safety factor because C++ compilers can tack on
4891 # massive amounts of additional arguments before passing them to the
4892 # linker. It appears as though 1/2 is a usable value.
4893 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4894 fi
4895 ;;
4896 esac
4897
4898 fi
4899
4900 if test -n $lt_cv_sys_max_cmd_len ; then
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4902 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4903 else
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4905 $as_echo "none" >&6; }
4906 fi
4907 max_cmd_len=$lt_cv_sys_max_cmd_len
4908
4909
4910
4911
4912
4913
4914 : ${CP="cp -f"}
4915 : ${MV="mv -f"}
4916 : ${RM="rm -f"}
4917
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4919 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4920 # Try some XSI features
4921 xsi_shell=no
4922 ( _lt_dummy="a/b/c"
4923 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4924 = c,a/b,b/c, \
4925 && eval 'test $(( 1 + 1 )) -eq 2 \
4926 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4927 && xsi_shell=yes
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4929 $as_echo "$xsi_shell" >&6; }
4930
4931
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4933 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4934 lt_shell_append=no
4935 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4936 >/dev/null 2>&1 \
4937 && lt_shell_append=yes
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4939 $as_echo "$lt_shell_append" >&6; }
4940
4941
4942 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4943 lt_unset=unset
4944 else
4945 lt_unset=false
4946 fi
4947
4948
4949
4950
4951
4952 # test EBCDIC or ASCII
4953 case `echo X|tr X '\101'` in
4954 A) # ASCII based system
4955 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4956 lt_SP2NL='tr \040 \012'
4957 lt_NL2SP='tr \015\012 \040\040'
4958 ;;
4959 *) # EBCDIC based system
4960 lt_SP2NL='tr \100 \n'
4961 lt_NL2SP='tr \r\n \100\100'
4962 ;;
4963 esac
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4974 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4975 if ${lt_cv_to_host_file_cmd+:} false; then :
4976 $as_echo_n "(cached) " >&6
4977 else
4978 case $host in
4979 *-*-mingw* )
4980 case $build in
4981 *-*-mingw* ) # actually msys
4982 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4983 ;;
4984 *-*-cygwin* )
4985 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4986 ;;
4987 * ) # otherwise, assume *nix
4988 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4989 ;;
4990 esac
4991 ;;
4992 *-*-cygwin* )
4993 case $build in
4994 *-*-mingw* ) # actually msys
4995 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4996 ;;
4997 *-*-cygwin* )
4998 lt_cv_to_host_file_cmd=func_convert_file_noop
4999 ;;
5000 * ) # otherwise, assume *nix
5001 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5002 ;;
5003 esac
5004 ;;
5005 * ) # unhandled hosts (and "normal" native builds)
5006 lt_cv_to_host_file_cmd=func_convert_file_noop
5007 ;;
5008 esac
5009
5010 fi
5011
5012 to_host_file_cmd=$lt_cv_to_host_file_cmd
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5014 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5015
5016
5017
5018
5019
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5021 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5022 if ${lt_cv_to_tool_file_cmd+:} false; then :
5023 $as_echo_n "(cached) " >&6
5024 else
5025 #assume ordinary cross tools, or native build.
5026 lt_cv_to_tool_file_cmd=func_convert_file_noop
5027 case $host in
5028 *-*-mingw* )
5029 case $build in
5030 *-*-mingw* ) # actually msys
5031 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5032 ;;
5033 esac
5034 ;;
5035 esac
5036
5037 fi
5038
5039 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5041 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5042
5043
5044
5045
5046
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5048 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5049 if ${lt_cv_ld_reload_flag+:} false; then :
5050 $as_echo_n "(cached) " >&6
5051 else
5052 lt_cv_ld_reload_flag='-r'
5053 fi
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5055 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5056 reload_flag=$lt_cv_ld_reload_flag
5057 case $reload_flag in
5058 "" | " "*) ;;
5059 *) reload_flag=" $reload_flag" ;;
5060 esac
5061 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5062 case $host_os in
5063 cygwin* | mingw* | pw32* | cegcc*)
5064 if test "$GCC" != yes; then
5065 reload_cmds=false
5066 fi
5067 ;;
5068 darwin*)
5069 if test "$GCC" = yes; then
5070 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5071 else
5072 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5073 fi
5074 ;;
5075 esac
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085 if test -n "$ac_tool_prefix"; then
5086 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5087 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5089 $as_echo_n "checking for $ac_word... " >&6; }
5090 if ${ac_cv_prog_OBJDUMP+:} false; then :
5091 $as_echo_n "(cached) " >&6
5092 else
5093 if test -n "$OBJDUMP"; then
5094 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5095 else
5096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5097 for as_dir in $PATH
5098 do
5099 IFS=$as_save_IFS
5100 test -z "$as_dir" && as_dir=.
5101 for ac_exec_ext in '' $ac_executable_extensions; do
5102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5103 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5105 break 2
5106 fi
5107 done
5108 done
5109 IFS=$as_save_IFS
5110
5111 fi
5112 fi
5113 OBJDUMP=$ac_cv_prog_OBJDUMP
5114 if test -n "$OBJDUMP"; then
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5116 $as_echo "$OBJDUMP" >&6; }
5117 else
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5119 $as_echo "no" >&6; }
5120 fi
5121
5122
5123 fi
5124 if test -z "$ac_cv_prog_OBJDUMP"; then
5125 ac_ct_OBJDUMP=$OBJDUMP
5126 # Extract the first word of "objdump", so it can be a program name with args.
5127 set dummy objdump; ac_word=$2
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5129 $as_echo_n "checking for $ac_word... " >&6; }
5130 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5131 $as_echo_n "(cached) " >&6
5132 else
5133 if test -n "$ac_ct_OBJDUMP"; then
5134 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5135 else
5136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5137 for as_dir in $PATH
5138 do
5139 IFS=$as_save_IFS
5140 test -z "$as_dir" && as_dir=.
5141 for ac_exec_ext in '' $ac_executable_extensions; do
5142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5143 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5145 break 2
5146 fi
5147 done
5148 done
5149 IFS=$as_save_IFS
5150
5151 fi
5152 fi
5153 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5154 if test -n "$ac_ct_OBJDUMP"; then
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5156 $as_echo "$ac_ct_OBJDUMP" >&6; }
5157 else
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5159 $as_echo "no" >&6; }
5160 fi
5161
5162 if test "x$ac_ct_OBJDUMP" = x; then
5163 OBJDUMP="false"
5164 else
5165 case $cross_compiling:$ac_tool_warned in
5166 yes:)
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5168 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5169 ac_tool_warned=yes ;;
5170 esac
5171 OBJDUMP=$ac_ct_OBJDUMP
5172 fi
5173 else
5174 OBJDUMP="$ac_cv_prog_OBJDUMP"
5175 fi
5176
5177 test -z "$OBJDUMP" && OBJDUMP=objdump
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5188 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5189 if ${lt_cv_deplibs_check_method+:} false; then :
5190 $as_echo_n "(cached) " >&6
5191 else
5192 lt_cv_file_magic_cmd='$MAGIC_CMD'
5193 lt_cv_file_magic_test_file=
5194 lt_cv_deplibs_check_method='unknown'
5195 # Need to set the preceding variable on all platforms that support
5196 # interlibrary dependencies.
5197 # 'none' -- dependencies not supported.
5198 # `unknown' -- same as none, but documents that we really don't know.
5199 # 'pass_all' -- all dependencies passed with no checks.
5200 # 'test_compile' -- check by making test program.
5201 # 'file_magic [[regex]]' -- check by looking for files in library path
5202 # which responds to the $file_magic_cmd with a given extended regex.
5203 # If you have `file' or equivalent on your system and you're not sure
5204 # whether `pass_all' will *always* work, you probably want this one.
5205
5206 case $host_os in
5207 aix[4-9]*)
5208 lt_cv_deplibs_check_method=pass_all
5209 ;;
5210
5211 beos*)
5212 lt_cv_deplibs_check_method=pass_all
5213 ;;
5214
5215 bsdi[45]*)
5216 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5217 lt_cv_file_magic_cmd='/usr/bin/file -L'
5218 lt_cv_file_magic_test_file=/shlib/libc.so
5219 ;;
5220
5221 cygwin*)
5222 # func_win32_libid is a shell function defined in ltmain.sh
5223 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5224 lt_cv_file_magic_cmd='func_win32_libid'
5225 ;;
5226
5227 mingw* | pw32*)
5228 # Base MSYS/MinGW do not provide the 'file' command needed by
5229 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5230 # unless we find 'file', for example because we are cross-compiling.
5231 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5232 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5233 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5234 lt_cv_file_magic_cmd='func_win32_libid'
5235 else
5236 # Keep this pattern in sync with the one in func_win32_libid.
5237 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5238 lt_cv_file_magic_cmd='$OBJDUMP -f'
5239 fi
5240 ;;
5241
5242 cegcc*)
5243 # use the weaker test based on 'objdump'. See mingw*.
5244 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5245 lt_cv_file_magic_cmd='$OBJDUMP -f'
5246 ;;
5247
5248 darwin* | rhapsody*)
5249 lt_cv_deplibs_check_method=pass_all
5250 ;;
5251
5252 freebsd* | dragonfly*)
5253 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5254 case $host_cpu in
5255 i*86 )
5256 # Not sure whether the presence of OpenBSD here was a mistake.
5257 # Let's accept both of them until this is cleared up.
5258 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5259 lt_cv_file_magic_cmd=/usr/bin/file
5260 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5261 ;;
5262 esac
5263 else
5264 lt_cv_deplibs_check_method=pass_all
5265 fi
5266 ;;
5267
5268 haiku*)
5269 lt_cv_deplibs_check_method=pass_all
5270 ;;
5271
5272 hpux10.20* | hpux11*)
5273 lt_cv_file_magic_cmd=/usr/bin/file
5274 case $host_cpu in
5275 ia64*)
5276 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5277 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5278 ;;
5279 hppa*64*)
5280 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]'
5281 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5282 ;;
5283 *)
5284 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5285 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5286 ;;
5287 esac
5288 ;;
5289
5290 interix[3-9]*)
5291 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5292 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5293 ;;
5294
5295 irix5* | irix6* | nonstopux*)
5296 case $LD in
5297 *-32|*"-32 ") libmagic=32-bit;;
5298 *-n32|*"-n32 ") libmagic=N32;;
5299 *-64|*"-64 ") libmagic=64-bit;;
5300 *) libmagic=never-match;;
5301 esac
5302 lt_cv_deplibs_check_method=pass_all
5303 ;;
5304
5305 # This must be glibc/ELF.
5306 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5307 lt_cv_deplibs_check_method=pass_all
5308 ;;
5309
5310 netbsd* | netbsdelf*-gnu)
5311 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5312 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5313 else
5314 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5315 fi
5316 ;;
5317
5318 newos6*)
5319 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5320 lt_cv_file_magic_cmd=/usr/bin/file
5321 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5322 ;;
5323
5324 *nto* | *qnx*)
5325 lt_cv_deplibs_check_method=pass_all
5326 ;;
5327
5328 openbsd*)
5329 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5330 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5331 else
5332 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5333 fi
5334 ;;
5335
5336 osf3* | osf4* | osf5*)
5337 lt_cv_deplibs_check_method=pass_all
5338 ;;
5339
5340 rdos*)
5341 lt_cv_deplibs_check_method=pass_all
5342 ;;
5343
5344 solaris*)
5345 lt_cv_deplibs_check_method=pass_all
5346 ;;
5347
5348 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5349 lt_cv_deplibs_check_method=pass_all
5350 ;;
5351
5352 sysv4 | sysv4.3*)
5353 case $host_vendor in
5354 motorola)
5355 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]'
5356 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5357 ;;
5358 ncr)
5359 lt_cv_deplibs_check_method=pass_all
5360 ;;
5361 sequent)
5362 lt_cv_file_magic_cmd='/bin/file'
5363 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5364 ;;
5365 sni)
5366 lt_cv_file_magic_cmd='/bin/file'
5367 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5368 lt_cv_file_magic_test_file=/lib/libc.so
5369 ;;
5370 siemens)
5371 lt_cv_deplibs_check_method=pass_all
5372 ;;
5373 pc)
5374 lt_cv_deplibs_check_method=pass_all
5375 ;;
5376 esac
5377 ;;
5378
5379 tpf*)
5380 lt_cv_deplibs_check_method=pass_all
5381 ;;
5382 esac
5383
5384 fi
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5386 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5387
5388 file_magic_glob=
5389 want_nocaseglob=no
5390 if test "$build" = "$host"; then
5391 case $host_os in
5392 mingw* | pw32*)
5393 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5394 want_nocaseglob=yes
5395 else
5396 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5397 fi
5398 ;;
5399 esac
5400 fi
5401
5402 file_magic_cmd=$lt_cv_file_magic_cmd
5403 deplibs_check_method=$lt_cv_deplibs_check_method
5404 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427 if test -n "$ac_tool_prefix"; then
5428 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5429 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5431 $as_echo_n "checking for $ac_word... " >&6; }
5432 if ${ac_cv_prog_DLLTOOL+:} false; then :
5433 $as_echo_n "(cached) " >&6
5434 else
5435 if test -n "$DLLTOOL"; then
5436 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5437 else
5438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5439 for as_dir in $PATH
5440 do
5441 IFS=$as_save_IFS
5442 test -z "$as_dir" && as_dir=.
5443 for ac_exec_ext in '' $ac_executable_extensions; do
5444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5445 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5447 break 2
5448 fi
5449 done
5450 done
5451 IFS=$as_save_IFS
5452
5453 fi
5454 fi
5455 DLLTOOL=$ac_cv_prog_DLLTOOL
5456 if test -n "$DLLTOOL"; then
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5458 $as_echo "$DLLTOOL" >&6; }
5459 else
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5461 $as_echo "no" >&6; }
5462 fi
5463
5464
5465 fi
5466 if test -z "$ac_cv_prog_DLLTOOL"; then
5467 ac_ct_DLLTOOL=$DLLTOOL
5468 # Extract the first word of "dlltool", so it can be a program name with args.
5469 set dummy dlltool; ac_word=$2
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5471 $as_echo_n "checking for $ac_word... " >&6; }
5472 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5473 $as_echo_n "(cached) " >&6
5474 else
5475 if test -n "$ac_ct_DLLTOOL"; then
5476 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5477 else
5478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5479 for as_dir in $PATH
5480 do
5481 IFS=$as_save_IFS
5482 test -z "$as_dir" && as_dir=.
5483 for ac_exec_ext in '' $ac_executable_extensions; do
5484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5485 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5487 break 2
5488 fi
5489 done
5490 done
5491 IFS=$as_save_IFS
5492
5493 fi
5494 fi
5495 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5496 if test -n "$ac_ct_DLLTOOL"; then
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5498 $as_echo "$ac_ct_DLLTOOL" >&6; }
5499 else
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5501 $as_echo "no" >&6; }
5502 fi
5503
5504 if test "x$ac_ct_DLLTOOL" = x; then
5505 DLLTOOL="false"
5506 else
5507 case $cross_compiling:$ac_tool_warned in
5508 yes:)
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5510 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5511 ac_tool_warned=yes ;;
5512 esac
5513 DLLTOOL=$ac_ct_DLLTOOL
5514 fi
5515 else
5516 DLLTOOL="$ac_cv_prog_DLLTOOL"
5517 fi
5518
5519 test -z "$DLLTOOL" && DLLTOOL=dlltool
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5531 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5532 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5533 $as_echo_n "(cached) " >&6
5534 else
5535 lt_cv_sharedlib_from_linklib_cmd='unknown'
5536
5537 case $host_os in
5538 cygwin* | mingw* | pw32* | cegcc*)
5539 # two different shell functions defined in ltmain.sh
5540 # decide which to use based on capabilities of $DLLTOOL
5541 case `$DLLTOOL --help 2>&1` in
5542 *--identify-strict*)
5543 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5544 ;;
5545 *)
5546 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5547 ;;
5548 esac
5549 ;;
5550 *)
5551 # fallback: assume linklib IS sharedlib
5552 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5553 ;;
5554 esac
5555
5556 fi
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5558 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5559 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5560 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5561
5562
5563
5564
5565
5566
5567
5568
5569 if test -n "$ac_tool_prefix"; then
5570 for ac_prog in ar
5571 do
5572 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5573 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5575 $as_echo_n "checking for $ac_word... " >&6; }
5576 if ${ac_cv_prog_AR+:} false; then :
5577 $as_echo_n "(cached) " >&6
5578 else
5579 if test -n "$AR"; then
5580 ac_cv_prog_AR="$AR" # Let the user override the test.
5581 else
5582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5583 for as_dir in $PATH
5584 do
5585 IFS=$as_save_IFS
5586 test -z "$as_dir" && as_dir=.
5587 for ac_exec_ext in '' $ac_executable_extensions; do
5588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5589 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5591 break 2
5592 fi
5593 done
5594 done
5595 IFS=$as_save_IFS
5596
5597 fi
5598 fi
5599 AR=$ac_cv_prog_AR
5600 if test -n "$AR"; then
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5602 $as_echo "$AR" >&6; }
5603 else
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5605 $as_echo "no" >&6; }
5606 fi
5607
5608
5609 test -n "$AR" && break
5610 done
5611 fi
5612 if test -z "$AR"; then
5613 ac_ct_AR=$AR
5614 for ac_prog in ar
5615 do
5616 # Extract the first word of "$ac_prog", so it can be a program name with args.
5617 set dummy $ac_prog; ac_word=$2
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5619 $as_echo_n "checking for $ac_word... " >&6; }
5620 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5621 $as_echo_n "(cached) " >&6
5622 else
5623 if test -n "$ac_ct_AR"; then
5624 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5625 else
5626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5627 for as_dir in $PATH
5628 do
5629 IFS=$as_save_IFS
5630 test -z "$as_dir" && as_dir=.
5631 for ac_exec_ext in '' $ac_executable_extensions; do
5632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5633 ac_cv_prog_ac_ct_AR="$ac_prog"
5634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5635 break 2
5636 fi
5637 done
5638 done
5639 IFS=$as_save_IFS
5640
5641 fi
5642 fi
5643 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5644 if test -n "$ac_ct_AR"; then
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5646 $as_echo "$ac_ct_AR" >&6; }
5647 else
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5649 $as_echo "no" >&6; }
5650 fi
5651
5652
5653 test -n "$ac_ct_AR" && break
5654 done
5655
5656 if test "x$ac_ct_AR" = x; then
5657 AR="false"
5658 else
5659 case $cross_compiling:$ac_tool_warned in
5660 yes:)
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5662 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5663 ac_tool_warned=yes ;;
5664 esac
5665 AR=$ac_ct_AR
5666 fi
5667 fi
5668
5669 : ${AR=ar}
5670 : ${AR_FLAGS=cru}
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5683 $as_echo_n "checking for archiver @FILE support... " >&6; }
5684 if ${lt_cv_ar_at_file+:} false; then :
5685 $as_echo_n "(cached) " >&6
5686 else
5687 lt_cv_ar_at_file=no
5688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5689 /* end confdefs.h. */
5690
5691 int
5692 main ()
5693 {
5694
5695 ;
5696 return 0;
5697 }
5698 _ACEOF
5699 if ac_fn_c_try_compile "$LINENO"; then :
5700 echo conftest.$ac_objext > conftest.lst
5701 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5702 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5703 (eval $lt_ar_try) 2>&5
5704 ac_status=$?
5705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5706 test $ac_status = 0; }
5707 if test "$ac_status" -eq 0; then
5708 # Ensure the archiver fails upon bogus file names.
5709 rm -f conftest.$ac_objext libconftest.a
5710 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5711 (eval $lt_ar_try) 2>&5
5712 ac_status=$?
5713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5714 test $ac_status = 0; }
5715 if test "$ac_status" -ne 0; then
5716 lt_cv_ar_at_file=@
5717 fi
5718 fi
5719 rm -f conftest.* libconftest.a
5720
5721 fi
5722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5723
5724 fi
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5726 $as_echo "$lt_cv_ar_at_file" >&6; }
5727
5728 if test "x$lt_cv_ar_at_file" = xno; then
5729 archiver_list_spec=
5730 else
5731 archiver_list_spec=$lt_cv_ar_at_file
5732 fi
5733
5734
5735
5736
5737
5738
5739
5740 if test -n "$ac_tool_prefix"; then
5741 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5742 set dummy ${ac_tool_prefix}strip; ac_word=$2
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5744 $as_echo_n "checking for $ac_word... " >&6; }
5745 if ${ac_cv_prog_STRIP+:} false; then :
5746 $as_echo_n "(cached) " >&6
5747 else
5748 if test -n "$STRIP"; then
5749 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5750 else
5751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5752 for as_dir in $PATH
5753 do
5754 IFS=$as_save_IFS
5755 test -z "$as_dir" && as_dir=.
5756 for ac_exec_ext in '' $ac_executable_extensions; do
5757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5758 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5760 break 2
5761 fi
5762 done
5763 done
5764 IFS=$as_save_IFS
5765
5766 fi
5767 fi
5768 STRIP=$ac_cv_prog_STRIP
5769 if test -n "$STRIP"; then
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5771 $as_echo "$STRIP" >&6; }
5772 else
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5774 $as_echo "no" >&6; }
5775 fi
5776
5777
5778 fi
5779 if test -z "$ac_cv_prog_STRIP"; then
5780 ac_ct_STRIP=$STRIP
5781 # Extract the first word of "strip", so it can be a program name with args.
5782 set dummy strip; ac_word=$2
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5784 $as_echo_n "checking for $ac_word... " >&6; }
5785 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5786 $as_echo_n "(cached) " >&6
5787 else
5788 if test -n "$ac_ct_STRIP"; then
5789 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5790 else
5791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5792 for as_dir in $PATH
5793 do
5794 IFS=$as_save_IFS
5795 test -z "$as_dir" && as_dir=.
5796 for ac_exec_ext in '' $ac_executable_extensions; do
5797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5798 ac_cv_prog_ac_ct_STRIP="strip"
5799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5800 break 2
5801 fi
5802 done
5803 done
5804 IFS=$as_save_IFS
5805
5806 fi
5807 fi
5808 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5809 if test -n "$ac_ct_STRIP"; then
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5811 $as_echo "$ac_ct_STRIP" >&6; }
5812 else
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5814 $as_echo "no" >&6; }
5815 fi
5816
5817 if test "x$ac_ct_STRIP" = x; then
5818 STRIP=":"
5819 else
5820 case $cross_compiling:$ac_tool_warned in
5821 yes:)
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5823 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5824 ac_tool_warned=yes ;;
5825 esac
5826 STRIP=$ac_ct_STRIP
5827 fi
5828 else
5829 STRIP="$ac_cv_prog_STRIP"
5830 fi
5831
5832 test -z "$STRIP" && STRIP=:
5833
5834
5835
5836
5837
5838
5839 if test -n "$ac_tool_prefix"; then
5840 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5841 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5843 $as_echo_n "checking for $ac_word... " >&6; }
5844 if ${ac_cv_prog_RANLIB+:} false; then :
5845 $as_echo_n "(cached) " >&6
5846 else
5847 if test -n "$RANLIB"; then
5848 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5849 else
5850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5851 for as_dir in $PATH
5852 do
5853 IFS=$as_save_IFS
5854 test -z "$as_dir" && as_dir=.
5855 for ac_exec_ext in '' $ac_executable_extensions; do
5856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5857 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5859 break 2
5860 fi
5861 done
5862 done
5863 IFS=$as_save_IFS
5864
5865 fi
5866 fi
5867 RANLIB=$ac_cv_prog_RANLIB
5868 if test -n "$RANLIB"; then
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5870 $as_echo "$RANLIB" >&6; }
5871 else
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5873 $as_echo "no" >&6; }
5874 fi
5875
5876
5877 fi
5878 if test -z "$ac_cv_prog_RANLIB"; then
5879 ac_ct_RANLIB=$RANLIB
5880 # Extract the first word of "ranlib", so it can be a program name with args.
5881 set dummy ranlib; ac_word=$2
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5883 $as_echo_n "checking for $ac_word... " >&6; }
5884 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5885 $as_echo_n "(cached) " >&6
5886 else
5887 if test -n "$ac_ct_RANLIB"; then
5888 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5889 else
5890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5891 for as_dir in $PATH
5892 do
5893 IFS=$as_save_IFS
5894 test -z "$as_dir" && as_dir=.
5895 for ac_exec_ext in '' $ac_executable_extensions; do
5896 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5897 ac_cv_prog_ac_ct_RANLIB="ranlib"
5898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5899 break 2
5900 fi
5901 done
5902 done
5903 IFS=$as_save_IFS
5904
5905 fi
5906 fi
5907 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5908 if test -n "$ac_ct_RANLIB"; then
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5910 $as_echo "$ac_ct_RANLIB" >&6; }
5911 else
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5913 $as_echo "no" >&6; }
5914 fi
5915
5916 if test "x$ac_ct_RANLIB" = x; then
5917 RANLIB=":"
5918 else
5919 case $cross_compiling:$ac_tool_warned in
5920 yes:)
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5922 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5923 ac_tool_warned=yes ;;
5924 esac
5925 RANLIB=$ac_ct_RANLIB
5926 fi
5927 else
5928 RANLIB="$ac_cv_prog_RANLIB"
5929 fi
5930
5931 test -z "$RANLIB" && RANLIB=:
5932
5933
5934
5935
5936
5937
5938 # Determine commands to create old-style static archives.
5939 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5940 old_postinstall_cmds='chmod 644 $oldlib'
5941 old_postuninstall_cmds=
5942
5943 if test -n "$RANLIB"; then
5944 case $host_os in
5945 openbsd*)
5946 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5947 ;;
5948 *)
5949 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5950 ;;
5951 esac
5952 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5953 fi
5954
5955 case $host_os in
5956 darwin*)
5957 lock_old_archive_extraction=yes ;;
5958 *)
5959 lock_old_archive_extraction=no ;;
5960 esac
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000 # If no C compiler was specified, use CC.
6001 LTCC=${LTCC-"$CC"}
6002
6003 # If no C compiler flags were specified, use CFLAGS.
6004 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6005
6006 # Allow CC to be a program name with arguments.
6007 compiler=$CC
6008
6009
6010 # Check for command to grab the raw symbol name followed by C symbol from nm.
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6012 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6013 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6014 $as_echo_n "(cached) " >&6
6015 else
6016
6017 # These are sane defaults that work on at least a few old systems.
6018 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6019
6020 # Character class describing NM global symbol codes.
6021 symcode='[BCDEGRST]'
6022
6023 # Regexp to match symbols that can be accessed directly from C.
6024 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6025
6026 # Define system-specific variables.
6027 case $host_os in
6028 aix*)
6029 symcode='[BCDT]'
6030 ;;
6031 cygwin* | mingw* | pw32* | cegcc*)
6032 symcode='[ABCDGISTW]'
6033 ;;
6034 hpux*)
6035 if test "$host_cpu" = ia64; then
6036 symcode='[ABCDEGRST]'
6037 fi
6038 ;;
6039 irix* | nonstopux*)
6040 symcode='[BCDEGRST]'
6041 ;;
6042 osf*)
6043 symcode='[BCDEGQRST]'
6044 ;;
6045 solaris*)
6046 symcode='[BDRT]'
6047 ;;
6048 sco3.2v5*)
6049 symcode='[DT]'
6050 ;;
6051 sysv4.2uw2*)
6052 symcode='[DT]'
6053 ;;
6054 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6055 symcode='[ABDT]'
6056 ;;
6057 sysv4)
6058 symcode='[DFNSTU]'
6059 ;;
6060 esac
6061
6062 # If we're using GNU nm, then use its standard symbol codes.
6063 case `$NM -V 2>&1` in
6064 *GNU* | *'with BFD'*)
6065 symcode='[ABCDGIRSTW]' ;;
6066 esac
6067
6068 # Transform an extracted symbol line into a proper C declaration.
6069 # Some systems (esp. on ia64) link data and code symbols differently,
6070 # so use this general approach.
6071 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6072
6073 # Transform an extracted symbol line into symbol name and symbol address
6074 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6075 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6076
6077 # Handle CRLF in mingw tool chain
6078 opt_cr=
6079 case $build_os in
6080 mingw*)
6081 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6082 ;;
6083 esac
6084
6085 # Try without a prefix underscore, then with it.
6086 for ac_symprfx in "" "_"; do
6087
6088 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6089 symxfrm="\\1 $ac_symprfx\\2 \\2"
6090
6091 # Write the raw and C identifiers.
6092 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6093 # Fake it for dumpbin and say T for any non-static function
6094 # and D for any global variable.
6095 # Also find C++ and __fastcall symbols from MSVC++,
6096 # which start with @ or ?.
6097 lt_cv_sys_global_symbol_pipe="$AWK '"\
6098 " {last_section=section; section=\$ 3};"\
6099 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6100 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6101 " \$ 0!~/External *\|/{next};"\
6102 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6103 " {if(hide[section]) next};"\
6104 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6105 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6106 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6107 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6108 " ' prfx=^$ac_symprfx"
6109 else
6110 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6111 fi
6112 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6113
6114 # Check to see that the pipe works correctly.
6115 pipe_works=no
6116
6117 rm -f conftest*
6118 cat > conftest.$ac_ext <<_LT_EOF
6119 #ifdef __cplusplus
6120 extern "C" {
6121 #endif
6122 char nm_test_var;
6123 void nm_test_func(void);
6124 void nm_test_func(void){}
6125 #ifdef __cplusplus
6126 }
6127 #endif
6128 int main(){nm_test_var='a';nm_test_func();return(0);}
6129 _LT_EOF
6130
6131 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6132 (eval $ac_compile) 2>&5
6133 ac_status=$?
6134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6135 test $ac_status = 0; }; then
6136 # Now try to grab the symbols.
6137 nlist=conftest.nm
6138 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6139 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6140 ac_status=$?
6141 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6142 test $ac_status = 0; } && test -s "$nlist"; then
6143 # Try sorting and uniquifying the output.
6144 if sort "$nlist" | uniq > "$nlist"T; then
6145 mv -f "$nlist"T "$nlist"
6146 else
6147 rm -f "$nlist"T
6148 fi
6149
6150 # Make sure that we snagged all the symbols we need.
6151 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6152 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6153 cat <<_LT_EOF > conftest.$ac_ext
6154 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6155 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6156 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6157 relocations are performed -- see ld's documentation on pseudo-relocs. */
6158 # define LT_DLSYM_CONST
6159 #elif defined(__osf__)
6160 /* This system does not cope well with relocations in const data. */
6161 # define LT_DLSYM_CONST
6162 #else
6163 # define LT_DLSYM_CONST const
6164 #endif
6165
6166 #ifdef __cplusplus
6167 extern "C" {
6168 #endif
6169
6170 _LT_EOF
6171 # Now generate the symbol file.
6172 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6173
6174 cat <<_LT_EOF >> conftest.$ac_ext
6175
6176 /* The mapping between symbol names and symbols. */
6177 LT_DLSYM_CONST struct {
6178 const char *name;
6179 void *address;
6180 }
6181 lt__PROGRAM__LTX_preloaded_symbols[] =
6182 {
6183 { "@PROGRAM@", (void *) 0 },
6184 _LT_EOF
6185 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6186 cat <<\_LT_EOF >> conftest.$ac_ext
6187 {0, (void *) 0}
6188 };
6189
6190 /* This works around a problem in FreeBSD linker */
6191 #ifdef FREEBSD_WORKAROUND
6192 static const void *lt_preloaded_setup() {
6193 return lt__PROGRAM__LTX_preloaded_symbols;
6194 }
6195 #endif
6196
6197 #ifdef __cplusplus
6198 }
6199 #endif
6200 _LT_EOF
6201 # Now try linking the two files.
6202 mv conftest.$ac_objext conftstm.$ac_objext
6203 lt_globsym_save_LIBS=$LIBS
6204 lt_globsym_save_CFLAGS=$CFLAGS
6205 LIBS="conftstm.$ac_objext"
6206 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6207 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6208 (eval $ac_link) 2>&5
6209 ac_status=$?
6210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6211 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6212 pipe_works=yes
6213 fi
6214 LIBS=$lt_globsym_save_LIBS
6215 CFLAGS=$lt_globsym_save_CFLAGS
6216 else
6217 echo "cannot find nm_test_func in $nlist" >&5
6218 fi
6219 else
6220 echo "cannot find nm_test_var in $nlist" >&5
6221 fi
6222 else
6223 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6224 fi
6225 else
6226 echo "$progname: failed program was:" >&5
6227 cat conftest.$ac_ext >&5
6228 fi
6229 rm -rf conftest* conftst*
6230
6231 # Do not use the global_symbol_pipe unless it works.
6232 if test "$pipe_works" = yes; then
6233 break
6234 else
6235 lt_cv_sys_global_symbol_pipe=
6236 fi
6237 done
6238
6239 fi
6240
6241 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6242 lt_cv_sys_global_symbol_to_cdecl=
6243 fi
6244 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6246 $as_echo "failed" >&6; }
6247 else
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6249 $as_echo "ok" >&6; }
6250 fi
6251
6252 # Response file support.
6253 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6254 nm_file_list_spec='@'
6255 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6256 nm_file_list_spec='@'
6257 fi
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6286 $as_echo_n "checking for sysroot... " >&6; }
6287
6288 # Check whether --with-sysroot was given.
6289 if test "${with_sysroot+set}" = set; then :
6290 withval=$with_sysroot;
6291 else
6292 with_sysroot=no
6293 fi
6294
6295
6296 lt_sysroot=
6297 case ${with_sysroot} in #(
6298 yes)
6299 if test "$GCC" = yes; then
6300 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6301 fi
6302 ;; #(
6303 /*)
6304 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6305 ;; #(
6306 no|'')
6307 ;; #(
6308 *)
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6310 $as_echo "${with_sysroot}" >&6; }
6311 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6312 ;;
6313 esac
6314
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6316 $as_echo "${lt_sysroot:-no}" >&6; }
6317
6318
6319
6320
6321
6322 # Check whether --enable-libtool-lock was given.
6323 if test "${enable_libtool_lock+set}" = set; then :
6324 enableval=$enable_libtool_lock;
6325 fi
6326
6327 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6328
6329 # Some flags need to be propagated to the compiler or linker for good
6330 # libtool support.
6331 case $host in
6332 ia64-*-hpux*)
6333 # Find out which ABI we are using.
6334 echo 'int i;' > conftest.$ac_ext
6335 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6336 (eval $ac_compile) 2>&5
6337 ac_status=$?
6338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6339 test $ac_status = 0; }; then
6340 case `/usr/bin/file conftest.$ac_objext` in
6341 *ELF-32*)
6342 HPUX_IA64_MODE="32"
6343 ;;
6344 *ELF-64*)
6345 HPUX_IA64_MODE="64"
6346 ;;
6347 esac
6348 fi
6349 rm -rf conftest*
6350 ;;
6351 *-*-irix6*)
6352 # Find out which ABI we are using.
6353 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6354 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6355 (eval $ac_compile) 2>&5
6356 ac_status=$?
6357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6358 test $ac_status = 0; }; then
6359 if test "$lt_cv_prog_gnu_ld" = yes; then
6360 case `/usr/bin/file conftest.$ac_objext` in
6361 *32-bit*)
6362 LD="${LD-ld} -melf32bsmip"
6363 ;;
6364 *N32*)
6365 LD="${LD-ld} -melf32bmipn32"
6366 ;;
6367 *64-bit*)
6368 LD="${LD-ld} -melf64bmip"
6369 ;;
6370 esac
6371 else
6372 case `/usr/bin/file conftest.$ac_objext` in
6373 *32-bit*)
6374 LD="${LD-ld} -32"
6375 ;;
6376 *N32*)
6377 LD="${LD-ld} -n32"
6378 ;;
6379 *64-bit*)
6380 LD="${LD-ld} -64"
6381 ;;
6382 esac
6383 fi
6384 fi
6385 rm -rf conftest*
6386 ;;
6387
6388 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6389 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6390 # Find out which ABI we are using.
6391 echo 'int i;' > conftest.$ac_ext
6392 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6393 (eval $ac_compile) 2>&5
6394 ac_status=$?
6395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6396 test $ac_status = 0; }; then
6397 case `/usr/bin/file conftest.o` in
6398 *32-bit*)
6399 case $host in
6400 x86_64-*kfreebsd*-gnu)
6401 LD="${LD-ld} -m elf_i386_fbsd"
6402 ;;
6403 x86_64-*linux*)
6404 case `/usr/bin/file conftest.o` in
6405 *x86-64*)
6406 LD="${LD-ld} -m elf32_x86_64"
6407 ;;
6408 *)
6409 LD="${LD-ld} -m elf_i386"
6410 ;;
6411 esac
6412 ;;
6413 powerpc64le-*)
6414 LD="${LD-ld} -m elf32lppclinux"
6415 ;;
6416 powerpc64-*)
6417 LD="${LD-ld} -m elf32ppclinux"
6418 ;;
6419 s390x-*linux*)
6420 LD="${LD-ld} -m elf_s390"
6421 ;;
6422 sparc64-*linux*)
6423 LD="${LD-ld} -m elf32_sparc"
6424 ;;
6425 esac
6426 ;;
6427 *64-bit*)
6428 case $host in
6429 x86_64-*kfreebsd*-gnu)
6430 LD="${LD-ld} -m elf_x86_64_fbsd"
6431 ;;
6432 x86_64-*linux*)
6433 LD="${LD-ld} -m elf_x86_64"
6434 ;;
6435 powerpcle-*)
6436 LD="${LD-ld} -m elf64lppc"
6437 ;;
6438 powerpc-*)
6439 LD="${LD-ld} -m elf64ppc"
6440 ;;
6441 s390*-*linux*|s390*-*tpf*)
6442 LD="${LD-ld} -m elf64_s390"
6443 ;;
6444 sparc*-*linux*)
6445 LD="${LD-ld} -m elf64_sparc"
6446 ;;
6447 esac
6448 ;;
6449 esac
6450 fi
6451 rm -rf conftest*
6452 ;;
6453
6454 *-*-sco3.2v5*)
6455 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6456 SAVE_CFLAGS="$CFLAGS"
6457 CFLAGS="$CFLAGS -belf"
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6459 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6460 if ${lt_cv_cc_needs_belf+:} false; then :
6461 $as_echo_n "(cached) " >&6
6462 else
6463 ac_ext=c
6464 ac_cpp='$CPP $CPPFLAGS'
6465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6467 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6468
6469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6470 /* end confdefs.h. */
6471
6472 int
6473 main ()
6474 {
6475
6476 ;
6477 return 0;
6478 }
6479 _ACEOF
6480 if ac_fn_c_try_link "$LINENO"; then :
6481 lt_cv_cc_needs_belf=yes
6482 else
6483 lt_cv_cc_needs_belf=no
6484 fi
6485 rm -f core conftest.err conftest.$ac_objext \
6486 conftest$ac_exeext conftest.$ac_ext
6487 ac_ext=c
6488 ac_cpp='$CPP $CPPFLAGS'
6489 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6490 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6491 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6492
6493 fi
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6495 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6496 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6497 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6498 CFLAGS="$SAVE_CFLAGS"
6499 fi
6500 ;;
6501 *-*solaris*)
6502 # Find out which ABI we are using.
6503 echo 'int i;' > conftest.$ac_ext
6504 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6505 (eval $ac_compile) 2>&5
6506 ac_status=$?
6507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6508 test $ac_status = 0; }; then
6509 case `/usr/bin/file conftest.o` in
6510 *64-bit*)
6511 case $lt_cv_prog_gnu_ld in
6512 yes*)
6513 case $host in
6514 i?86-*-solaris*)
6515 LD="${LD-ld} -m elf_x86_64"
6516 ;;
6517 sparc*-*-solaris*)
6518 LD="${LD-ld} -m elf64_sparc"
6519 ;;
6520 esac
6521 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6522 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6523 LD="${LD-ld}_sol2"
6524 fi
6525 ;;
6526 *)
6527 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6528 LD="${LD-ld} -64"
6529 fi
6530 ;;
6531 esac
6532 ;;
6533 esac
6534 fi
6535 rm -rf conftest*
6536 ;;
6537 esac
6538
6539 need_locks="$enable_libtool_lock"
6540
6541 if test -n "$ac_tool_prefix"; then
6542 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6543 set dummy ${ac_tool_prefix}mt; ac_word=$2
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6545 $as_echo_n "checking for $ac_word... " >&6; }
6546 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6547 $as_echo_n "(cached) " >&6
6548 else
6549 if test -n "$MANIFEST_TOOL"; then
6550 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6551 else
6552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6553 for as_dir in $PATH
6554 do
6555 IFS=$as_save_IFS
6556 test -z "$as_dir" && as_dir=.
6557 for ac_exec_ext in '' $ac_executable_extensions; do
6558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6559 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6561 break 2
6562 fi
6563 done
6564 done
6565 IFS=$as_save_IFS
6566
6567 fi
6568 fi
6569 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6570 if test -n "$MANIFEST_TOOL"; then
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6572 $as_echo "$MANIFEST_TOOL" >&6; }
6573 else
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6575 $as_echo "no" >&6; }
6576 fi
6577
6578
6579 fi
6580 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6581 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6582 # Extract the first word of "mt", so it can be a program name with args.
6583 set dummy mt; ac_word=$2
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6585 $as_echo_n "checking for $ac_word... " >&6; }
6586 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6587 $as_echo_n "(cached) " >&6
6588 else
6589 if test -n "$ac_ct_MANIFEST_TOOL"; then
6590 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6591 else
6592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6593 for as_dir in $PATH
6594 do
6595 IFS=$as_save_IFS
6596 test -z "$as_dir" && as_dir=.
6597 for ac_exec_ext in '' $ac_executable_extensions; do
6598 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6599 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6601 break 2
6602 fi
6603 done
6604 done
6605 IFS=$as_save_IFS
6606
6607 fi
6608 fi
6609 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6610 if test -n "$ac_ct_MANIFEST_TOOL"; then
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6612 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6613 else
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6615 $as_echo "no" >&6; }
6616 fi
6617
6618 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6619 MANIFEST_TOOL=":"
6620 else
6621 case $cross_compiling:$ac_tool_warned in
6622 yes:)
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6624 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6625 ac_tool_warned=yes ;;
6626 esac
6627 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6628 fi
6629 else
6630 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6631 fi
6632
6633 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6635 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6636 if ${lt_cv_path_mainfest_tool+:} false; then :
6637 $as_echo_n "(cached) " >&6
6638 else
6639 lt_cv_path_mainfest_tool=no
6640 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6641 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6642 cat conftest.err >&5
6643 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6644 lt_cv_path_mainfest_tool=yes
6645 fi
6646 rm -f conftest*
6647 fi
6648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6649 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6650 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6651 MANIFEST_TOOL=:
6652 fi
6653
6654
6655
6656
6657
6658
6659 case $host_os in
6660 rhapsody* | darwin*)
6661 if test -n "$ac_tool_prefix"; then
6662 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6663 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6665 $as_echo_n "checking for $ac_word... " >&6; }
6666 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6667 $as_echo_n "(cached) " >&6
6668 else
6669 if test -n "$DSYMUTIL"; then
6670 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6671 else
6672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6673 for as_dir in $PATH
6674 do
6675 IFS=$as_save_IFS
6676 test -z "$as_dir" && as_dir=.
6677 for ac_exec_ext in '' $ac_executable_extensions; do
6678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6679 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6681 break 2
6682 fi
6683 done
6684 done
6685 IFS=$as_save_IFS
6686
6687 fi
6688 fi
6689 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6690 if test -n "$DSYMUTIL"; then
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6692 $as_echo "$DSYMUTIL" >&6; }
6693 else
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6695 $as_echo "no" >&6; }
6696 fi
6697
6698
6699 fi
6700 if test -z "$ac_cv_prog_DSYMUTIL"; then
6701 ac_ct_DSYMUTIL=$DSYMUTIL
6702 # Extract the first word of "dsymutil", so it can be a program name with args.
6703 set dummy dsymutil; ac_word=$2
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6705 $as_echo_n "checking for $ac_word... " >&6; }
6706 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6707 $as_echo_n "(cached) " >&6
6708 else
6709 if test -n "$ac_ct_DSYMUTIL"; then
6710 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6711 else
6712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6713 for as_dir in $PATH
6714 do
6715 IFS=$as_save_IFS
6716 test -z "$as_dir" && as_dir=.
6717 for ac_exec_ext in '' $ac_executable_extensions; do
6718 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6719 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6721 break 2
6722 fi
6723 done
6724 done
6725 IFS=$as_save_IFS
6726
6727 fi
6728 fi
6729 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6730 if test -n "$ac_ct_DSYMUTIL"; then
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6732 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6733 else
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6735 $as_echo "no" >&6; }
6736 fi
6737
6738 if test "x$ac_ct_DSYMUTIL" = x; then
6739 DSYMUTIL=":"
6740 else
6741 case $cross_compiling:$ac_tool_warned in
6742 yes:)
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6744 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6745 ac_tool_warned=yes ;;
6746 esac
6747 DSYMUTIL=$ac_ct_DSYMUTIL
6748 fi
6749 else
6750 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6751 fi
6752
6753 if test -n "$ac_tool_prefix"; then
6754 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6755 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6757 $as_echo_n "checking for $ac_word... " >&6; }
6758 if ${ac_cv_prog_NMEDIT+:} false; then :
6759 $as_echo_n "(cached) " >&6
6760 else
6761 if test -n "$NMEDIT"; then
6762 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6763 else
6764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6765 for as_dir in $PATH
6766 do
6767 IFS=$as_save_IFS
6768 test -z "$as_dir" && as_dir=.
6769 for ac_exec_ext in '' $ac_executable_extensions; do
6770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6771 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6773 break 2
6774 fi
6775 done
6776 done
6777 IFS=$as_save_IFS
6778
6779 fi
6780 fi
6781 NMEDIT=$ac_cv_prog_NMEDIT
6782 if test -n "$NMEDIT"; then
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6784 $as_echo "$NMEDIT" >&6; }
6785 else
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6787 $as_echo "no" >&6; }
6788 fi
6789
6790
6791 fi
6792 if test -z "$ac_cv_prog_NMEDIT"; then
6793 ac_ct_NMEDIT=$NMEDIT
6794 # Extract the first word of "nmedit", so it can be a program name with args.
6795 set dummy nmedit; ac_word=$2
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6797 $as_echo_n "checking for $ac_word... " >&6; }
6798 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6799 $as_echo_n "(cached) " >&6
6800 else
6801 if test -n "$ac_ct_NMEDIT"; then
6802 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6803 else
6804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6805 for as_dir in $PATH
6806 do
6807 IFS=$as_save_IFS
6808 test -z "$as_dir" && as_dir=.
6809 for ac_exec_ext in '' $ac_executable_extensions; do
6810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6811 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6813 break 2
6814 fi
6815 done
6816 done
6817 IFS=$as_save_IFS
6818
6819 fi
6820 fi
6821 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6822 if test -n "$ac_ct_NMEDIT"; then
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6824 $as_echo "$ac_ct_NMEDIT" >&6; }
6825 else
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6827 $as_echo "no" >&6; }
6828 fi
6829
6830 if test "x$ac_ct_NMEDIT" = x; then
6831 NMEDIT=":"
6832 else
6833 case $cross_compiling:$ac_tool_warned in
6834 yes:)
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6836 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6837 ac_tool_warned=yes ;;
6838 esac
6839 NMEDIT=$ac_ct_NMEDIT
6840 fi
6841 else
6842 NMEDIT="$ac_cv_prog_NMEDIT"
6843 fi
6844
6845 if test -n "$ac_tool_prefix"; then
6846 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6847 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6849 $as_echo_n "checking for $ac_word... " >&6; }
6850 if ${ac_cv_prog_LIPO+:} false; then :
6851 $as_echo_n "(cached) " >&6
6852 else
6853 if test -n "$LIPO"; then
6854 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6855 else
6856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6857 for as_dir in $PATH
6858 do
6859 IFS=$as_save_IFS
6860 test -z "$as_dir" && as_dir=.
6861 for ac_exec_ext in '' $ac_executable_extensions; do
6862 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6863 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6865 break 2
6866 fi
6867 done
6868 done
6869 IFS=$as_save_IFS
6870
6871 fi
6872 fi
6873 LIPO=$ac_cv_prog_LIPO
6874 if test -n "$LIPO"; then
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6876 $as_echo "$LIPO" >&6; }
6877 else
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6879 $as_echo "no" >&6; }
6880 fi
6881
6882
6883 fi
6884 if test -z "$ac_cv_prog_LIPO"; then
6885 ac_ct_LIPO=$LIPO
6886 # Extract the first word of "lipo", so it can be a program name with args.
6887 set dummy lipo; ac_word=$2
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6889 $as_echo_n "checking for $ac_word... " >&6; }
6890 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6891 $as_echo_n "(cached) " >&6
6892 else
6893 if test -n "$ac_ct_LIPO"; then
6894 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6895 else
6896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6897 for as_dir in $PATH
6898 do
6899 IFS=$as_save_IFS
6900 test -z "$as_dir" && as_dir=.
6901 for ac_exec_ext in '' $ac_executable_extensions; do
6902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6903 ac_cv_prog_ac_ct_LIPO="lipo"
6904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6905 break 2
6906 fi
6907 done
6908 done
6909 IFS=$as_save_IFS
6910
6911 fi
6912 fi
6913 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6914 if test -n "$ac_ct_LIPO"; then
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6916 $as_echo "$ac_ct_LIPO" >&6; }
6917 else
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6919 $as_echo "no" >&6; }
6920 fi
6921
6922 if test "x$ac_ct_LIPO" = x; then
6923 LIPO=":"
6924 else
6925 case $cross_compiling:$ac_tool_warned in
6926 yes:)
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6928 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6929 ac_tool_warned=yes ;;
6930 esac
6931 LIPO=$ac_ct_LIPO
6932 fi
6933 else
6934 LIPO="$ac_cv_prog_LIPO"
6935 fi
6936
6937 if test -n "$ac_tool_prefix"; then
6938 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6939 set dummy ${ac_tool_prefix}otool; ac_word=$2
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6941 $as_echo_n "checking for $ac_word... " >&6; }
6942 if ${ac_cv_prog_OTOOL+:} false; then :
6943 $as_echo_n "(cached) " >&6
6944 else
6945 if test -n "$OTOOL"; then
6946 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6947 else
6948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6949 for as_dir in $PATH
6950 do
6951 IFS=$as_save_IFS
6952 test -z "$as_dir" && as_dir=.
6953 for ac_exec_ext in '' $ac_executable_extensions; do
6954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6955 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6957 break 2
6958 fi
6959 done
6960 done
6961 IFS=$as_save_IFS
6962
6963 fi
6964 fi
6965 OTOOL=$ac_cv_prog_OTOOL
6966 if test -n "$OTOOL"; then
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6968 $as_echo "$OTOOL" >&6; }
6969 else
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6971 $as_echo "no" >&6; }
6972 fi
6973
6974
6975 fi
6976 if test -z "$ac_cv_prog_OTOOL"; then
6977 ac_ct_OTOOL=$OTOOL
6978 # Extract the first word of "otool", so it can be a program name with args.
6979 set dummy otool; ac_word=$2
6980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6981 $as_echo_n "checking for $ac_word... " >&6; }
6982 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6983 $as_echo_n "(cached) " >&6
6984 else
6985 if test -n "$ac_ct_OTOOL"; then
6986 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6987 else
6988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6989 for as_dir in $PATH
6990 do
6991 IFS=$as_save_IFS
6992 test -z "$as_dir" && as_dir=.
6993 for ac_exec_ext in '' $ac_executable_extensions; do
6994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6995 ac_cv_prog_ac_ct_OTOOL="otool"
6996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6997 break 2
6998 fi
6999 done
7000 done
7001 IFS=$as_save_IFS
7002
7003 fi
7004 fi
7005 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7006 if test -n "$ac_ct_OTOOL"; then
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7008 $as_echo "$ac_ct_OTOOL" >&6; }
7009 else
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7011 $as_echo "no" >&6; }
7012 fi
7013
7014 if test "x$ac_ct_OTOOL" = x; then
7015 OTOOL=":"
7016 else
7017 case $cross_compiling:$ac_tool_warned in
7018 yes:)
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7020 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7021 ac_tool_warned=yes ;;
7022 esac
7023 OTOOL=$ac_ct_OTOOL
7024 fi
7025 else
7026 OTOOL="$ac_cv_prog_OTOOL"
7027 fi
7028
7029 if test -n "$ac_tool_prefix"; then
7030 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7031 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7033 $as_echo_n "checking for $ac_word... " >&6; }
7034 if ${ac_cv_prog_OTOOL64+:} false; then :
7035 $as_echo_n "(cached) " >&6
7036 else
7037 if test -n "$OTOOL64"; then
7038 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7039 else
7040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7041 for as_dir in $PATH
7042 do
7043 IFS=$as_save_IFS
7044 test -z "$as_dir" && as_dir=.
7045 for ac_exec_ext in '' $ac_executable_extensions; do
7046 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7047 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7049 break 2
7050 fi
7051 done
7052 done
7053 IFS=$as_save_IFS
7054
7055 fi
7056 fi
7057 OTOOL64=$ac_cv_prog_OTOOL64
7058 if test -n "$OTOOL64"; then
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7060 $as_echo "$OTOOL64" >&6; }
7061 else
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7063 $as_echo "no" >&6; }
7064 fi
7065
7066
7067 fi
7068 if test -z "$ac_cv_prog_OTOOL64"; then
7069 ac_ct_OTOOL64=$OTOOL64
7070 # Extract the first word of "otool64", so it can be a program name with args.
7071 set dummy otool64; ac_word=$2
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7073 $as_echo_n "checking for $ac_word... " >&6; }
7074 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7075 $as_echo_n "(cached) " >&6
7076 else
7077 if test -n "$ac_ct_OTOOL64"; then
7078 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7079 else
7080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7081 for as_dir in $PATH
7082 do
7083 IFS=$as_save_IFS
7084 test -z "$as_dir" && as_dir=.
7085 for ac_exec_ext in '' $ac_executable_extensions; do
7086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7087 ac_cv_prog_ac_ct_OTOOL64="otool64"
7088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7089 break 2
7090 fi
7091 done
7092 done
7093 IFS=$as_save_IFS
7094
7095 fi
7096 fi
7097 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7098 if test -n "$ac_ct_OTOOL64"; then
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7100 $as_echo "$ac_ct_OTOOL64" >&6; }
7101 else
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7103 $as_echo "no" >&6; }
7104 fi
7105
7106 if test "x$ac_ct_OTOOL64" = x; then
7107 OTOOL64=":"
7108 else
7109 case $cross_compiling:$ac_tool_warned in
7110 yes:)
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7112 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7113 ac_tool_warned=yes ;;
7114 esac
7115 OTOOL64=$ac_ct_OTOOL64
7116 fi
7117 else
7118 OTOOL64="$ac_cv_prog_OTOOL64"
7119 fi
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7148 $as_echo_n "checking for -single_module linker flag... " >&6; }
7149 if ${lt_cv_apple_cc_single_mod+:} false; then :
7150 $as_echo_n "(cached) " >&6
7151 else
7152 lt_cv_apple_cc_single_mod=no
7153 if test -z "${LT_MULTI_MODULE}"; then
7154 # By default we will add the -single_module flag. You can override
7155 # by either setting the environment variable LT_MULTI_MODULE
7156 # non-empty at configure time, or by adding -multi_module to the
7157 # link flags.
7158 rm -rf libconftest.dylib*
7159 echo "int foo(void){return 1;}" > conftest.c
7160 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7161 -dynamiclib -Wl,-single_module conftest.c" >&5
7162 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7163 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7164 _lt_result=$?
7165 # If there is a non-empty error log, and "single_module"
7166 # appears in it, assume the flag caused a linker warning
7167 if test -s conftest.err && $GREP single_module conftest.err; then
7168 cat conftest.err >&5
7169 # Otherwise, if the output was created with a 0 exit code from
7170 # the compiler, it worked.
7171 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7172 lt_cv_apple_cc_single_mod=yes
7173 else
7174 cat conftest.err >&5
7175 fi
7176 rm -rf libconftest.dylib*
7177 rm -f conftest.*
7178 fi
7179 fi
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7181 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7182
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7184 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7185 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7186 $as_echo_n "(cached) " >&6
7187 else
7188 lt_cv_ld_exported_symbols_list=no
7189 save_LDFLAGS=$LDFLAGS
7190 echo "_main" > conftest.sym
7191 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7193 /* end confdefs.h. */
7194
7195 int
7196 main ()
7197 {
7198
7199 ;
7200 return 0;
7201 }
7202 _ACEOF
7203 if ac_fn_c_try_link "$LINENO"; then :
7204 lt_cv_ld_exported_symbols_list=yes
7205 else
7206 lt_cv_ld_exported_symbols_list=no
7207 fi
7208 rm -f core conftest.err conftest.$ac_objext \
7209 conftest$ac_exeext conftest.$ac_ext
7210 LDFLAGS="$save_LDFLAGS"
7211
7212 fi
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7214 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7215
7216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7217 $as_echo_n "checking for -force_load linker flag... " >&6; }
7218 if ${lt_cv_ld_force_load+:} false; then :
7219 $as_echo_n "(cached) " >&6
7220 else
7221 lt_cv_ld_force_load=no
7222 cat > conftest.c << _LT_EOF
7223 int forced_loaded() { return 2;}
7224 _LT_EOF
7225 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7226 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7227 echo "$AR cru libconftest.a conftest.o" >&5
7228 $AR cru libconftest.a conftest.o 2>&5
7229 echo "$RANLIB libconftest.a" >&5
7230 $RANLIB libconftest.a 2>&5
7231 cat > conftest.c << _LT_EOF
7232 int main() { return 0;}
7233 _LT_EOF
7234 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7235 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7236 _lt_result=$?
7237 if test -s conftest.err && $GREP force_load conftest.err; then
7238 cat conftest.err >&5
7239 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7240 lt_cv_ld_force_load=yes
7241 else
7242 cat conftest.err >&5
7243 fi
7244 rm -f conftest.err libconftest.a conftest conftest.c
7245 rm -rf conftest.dSYM
7246
7247 fi
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7249 $as_echo "$lt_cv_ld_force_load" >&6; }
7250 case $host_os in
7251 rhapsody* | darwin1.[012])
7252 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7253 darwin1.*)
7254 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7255 darwin*) # darwin 5.x on
7256 # if running on 10.5 or later, the deployment target defaults
7257 # to the OS version, if on x86, and 10.4, the deployment
7258 # target defaults to 10.4. Don't you love it?
7259 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7260 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7261 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7262 10.[012]*)
7263 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7264 10.*)
7265 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7266 esac
7267 ;;
7268 esac
7269 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7270 _lt_dar_single_mod='$single_module'
7271 fi
7272 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7273 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7274 else
7275 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7276 fi
7277 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7278 _lt_dsymutil='~$DSYMUTIL $lib || :'
7279 else
7280 _lt_dsymutil=
7281 fi
7282 ;;
7283 esac
7284
7285 ac_ext=c
7286 ac_cpp='$CPP $CPPFLAGS'
7287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7291 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7292 # On Suns, sometimes $CPP names a directory.
7293 if test -n "$CPP" && test -d "$CPP"; then
7294 CPP=
7295 fi
7296 if test -z "$CPP"; then
7297 if ${ac_cv_prog_CPP+:} false; then :
7298 $as_echo_n "(cached) " >&6
7299 else
7300 # Double quotes because CPP needs to be expanded
7301 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7302 do
7303 ac_preproc_ok=false
7304 for ac_c_preproc_warn_flag in '' yes
7305 do
7306 # Use a header file that comes with gcc, so configuring glibc
7307 # with a fresh cross-compiler works.
7308 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7309 # <limits.h> exists even on freestanding compilers.
7310 # On the NeXT, cc -E runs the code through the compiler's parser,
7311 # not just through cpp. "Syntax error" is here to catch this case.
7312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7313 /* end confdefs.h. */
7314 #ifdef __STDC__
7315 # include <limits.h>
7316 #else
7317 # include <assert.h>
7318 #endif
7319 Syntax error
7320 _ACEOF
7321 if ac_fn_c_try_cpp "$LINENO"; then :
7322
7323 else
7324 # Broken: fails on valid input.
7325 continue
7326 fi
7327 rm -f conftest.err conftest.i conftest.$ac_ext
7328
7329 # OK, works on sane cases. Now check whether nonexistent headers
7330 # can be detected and how.
7331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7332 /* end confdefs.h. */
7333 #include <ac_nonexistent.h>
7334 _ACEOF
7335 if ac_fn_c_try_cpp "$LINENO"; then :
7336 # Broken: success on invalid input.
7337 continue
7338 else
7339 # Passes both tests.
7340 ac_preproc_ok=:
7341 break
7342 fi
7343 rm -f conftest.err conftest.i conftest.$ac_ext
7344
7345 done
7346 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7347 rm -f conftest.i conftest.err conftest.$ac_ext
7348 if $ac_preproc_ok; then :
7349 break
7350 fi
7351
7352 done
7353 ac_cv_prog_CPP=$CPP
7354
7355 fi
7356 CPP=$ac_cv_prog_CPP
7357 else
7358 ac_cv_prog_CPP=$CPP
7359 fi
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7361 $as_echo "$CPP" >&6; }
7362 ac_preproc_ok=false
7363 for ac_c_preproc_warn_flag in '' yes
7364 do
7365 # Use a header file that comes with gcc, so configuring glibc
7366 # with a fresh cross-compiler works.
7367 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7368 # <limits.h> exists even on freestanding compilers.
7369 # On the NeXT, cc -E runs the code through the compiler's parser,
7370 # not just through cpp. "Syntax error" is here to catch this case.
7371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7372 /* end confdefs.h. */
7373 #ifdef __STDC__
7374 # include <limits.h>
7375 #else
7376 # include <assert.h>
7377 #endif
7378 Syntax error
7379 _ACEOF
7380 if ac_fn_c_try_cpp "$LINENO"; then :
7381
7382 else
7383 # Broken: fails on valid input.
7384 continue
7385 fi
7386 rm -f conftest.err conftest.i conftest.$ac_ext
7387
7388 # OK, works on sane cases. Now check whether nonexistent headers
7389 # can be detected and how.
7390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7391 /* end confdefs.h. */
7392 #include <ac_nonexistent.h>
7393 _ACEOF
7394 if ac_fn_c_try_cpp "$LINENO"; then :
7395 # Broken: success on invalid input.
7396 continue
7397 else
7398 # Passes both tests.
7399 ac_preproc_ok=:
7400 break
7401 fi
7402 rm -f conftest.err conftest.i conftest.$ac_ext
7403
7404 done
7405 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7406 rm -f conftest.i conftest.err conftest.$ac_ext
7407 if $ac_preproc_ok; then :
7408
7409 else
7410 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7411 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7412 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7413 See \`config.log' for more details" "$LINENO" 5; }
7414 fi
7415
7416 ac_ext=c
7417 ac_cpp='$CPP $CPPFLAGS'
7418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7421
7422
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7424 $as_echo_n "checking for ANSI C header files... " >&6; }
7425 if ${ac_cv_header_stdc+:} false; then :
7426 $as_echo_n "(cached) " >&6
7427 else
7428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7429 /* end confdefs.h. */
7430 #include <stdlib.h>
7431 #include <stdarg.h>
7432 #include <string.h>
7433 #include <float.h>
7434
7435 int
7436 main ()
7437 {
7438
7439 ;
7440 return 0;
7441 }
7442 _ACEOF
7443 if ac_fn_c_try_compile "$LINENO"; then :
7444 ac_cv_header_stdc=yes
7445 else
7446 ac_cv_header_stdc=no
7447 fi
7448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7449
7450 if test $ac_cv_header_stdc = yes; then
7451 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7453 /* end confdefs.h. */
7454 #include <string.h>
7455
7456 _ACEOF
7457 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7458 $EGREP "memchr" >/dev/null 2>&1; then :
7459
7460 else
7461 ac_cv_header_stdc=no
7462 fi
7463 rm -f conftest*
7464
7465 fi
7466
7467 if test $ac_cv_header_stdc = yes; then
7468 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7470 /* end confdefs.h. */
7471 #include <stdlib.h>
7472
7473 _ACEOF
7474 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7475 $EGREP "free" >/dev/null 2>&1; then :
7476
7477 else
7478 ac_cv_header_stdc=no
7479 fi
7480 rm -f conftest*
7481
7482 fi
7483
7484 if test $ac_cv_header_stdc = yes; then
7485 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7486 if test "$cross_compiling" = yes; then :
7487 :
7488 else
7489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7490 /* end confdefs.h. */
7491 #include <ctype.h>
7492 #include <stdlib.h>
7493 #if ((' ' & 0x0FF) == 0x020)
7494 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7495 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7496 #else
7497 # define ISLOWER(c) \
7498 (('a' <= (c) && (c) <= 'i') \
7499 || ('j' <= (c) && (c) <= 'r') \
7500 || ('s' <= (c) && (c) <= 'z'))
7501 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7502 #endif
7503
7504 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7505 int
7506 main ()
7507 {
7508 int i;
7509 for (i = 0; i < 256; i++)
7510 if (XOR (islower (i), ISLOWER (i))
7511 || toupper (i) != TOUPPER (i))
7512 return 2;
7513 return 0;
7514 }
7515 _ACEOF
7516 if ac_fn_c_try_run "$LINENO"; then :
7517
7518 else
7519 ac_cv_header_stdc=no
7520 fi
7521 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7522 conftest.$ac_objext conftest.beam conftest.$ac_ext
7523 fi
7524
7525 fi
7526 fi
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7528 $as_echo "$ac_cv_header_stdc" >&6; }
7529 if test $ac_cv_header_stdc = yes; then
7530
7531 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7532
7533 fi
7534
7535 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7536 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7537 inttypes.h stdint.h unistd.h
7538 do :
7539 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7540 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7541 "
7542 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7543 cat >>confdefs.h <<_ACEOF
7544 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7545 _ACEOF
7546
7547 fi
7548
7549 done
7550
7551
7552 for ac_header in dlfcn.h
7553 do :
7554 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7555 "
7556 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7557 cat >>confdefs.h <<_ACEOF
7558 #define HAVE_DLFCN_H 1
7559 _ACEOF
7560
7561 fi
7562
7563 done
7564
7565
7566
7567
7568
7569 # Set options
7570
7571
7572
7573 enable_dlopen=no
7574
7575
7576 enable_win32_dll=no
7577
7578
7579 # Check whether --enable-shared was given.
7580 if test "${enable_shared+set}" = set; then :
7581 enableval=$enable_shared; p=${PACKAGE-default}
7582 case $enableval in
7583 yes) enable_shared=yes ;;
7584 no) enable_shared=no ;;
7585 *)
7586 enable_shared=no
7587 # Look at the argument we got. We use all the common list separators.
7588 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7589 for pkg in $enableval; do
7590 IFS="$lt_save_ifs"
7591 if test "X$pkg" = "X$p"; then
7592 enable_shared=yes
7593 fi
7594 done
7595 IFS="$lt_save_ifs"
7596 ;;
7597 esac
7598 else
7599 enable_shared=yes
7600 fi
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610 # Check whether --enable-static was given.
7611 if test "${enable_static+set}" = set; then :
7612 enableval=$enable_static; p=${PACKAGE-default}
7613 case $enableval in
7614 yes) enable_static=yes ;;
7615 no) enable_static=no ;;
7616 *)
7617 enable_static=no
7618 # Look at the argument we got. We use all the common list separators.
7619 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7620 for pkg in $enableval; do
7621 IFS="$lt_save_ifs"
7622 if test "X$pkg" = "X$p"; then
7623 enable_static=yes
7624 fi
7625 done
7626 IFS="$lt_save_ifs"
7627 ;;
7628 esac
7629 else
7630 enable_static=yes
7631 fi
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642 # Check whether --with-pic was given.
7643 if test "${with_pic+set}" = set; then :
7644 withval=$with_pic; lt_p=${PACKAGE-default}
7645 case $withval in
7646 yes|no) pic_mode=$withval ;;
7647 *)
7648 pic_mode=default
7649 # Look at the argument we got. We use all the common list separators.
7650 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7651 for lt_pkg in $withval; do
7652 IFS="$lt_save_ifs"
7653 if test "X$lt_pkg" = "X$lt_p"; then
7654 pic_mode=yes
7655 fi
7656 done
7657 IFS="$lt_save_ifs"
7658 ;;
7659 esac
7660 else
7661 pic_mode=default
7662 fi
7663
7664
7665 test -z "$pic_mode" && pic_mode=default
7666
7667
7668
7669
7670
7671
7672
7673 # Check whether --enable-fast-install was given.
7674 if test "${enable_fast_install+set}" = set; then :
7675 enableval=$enable_fast_install; p=${PACKAGE-default}
7676 case $enableval in
7677 yes) enable_fast_install=yes ;;
7678 no) enable_fast_install=no ;;
7679 *)
7680 enable_fast_install=no
7681 # Look at the argument we got. We use all the common list separators.
7682 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7683 for pkg in $enableval; do
7684 IFS="$lt_save_ifs"
7685 if test "X$pkg" = "X$p"; then
7686 enable_fast_install=yes
7687 fi
7688 done
7689 IFS="$lt_save_ifs"
7690 ;;
7691 esac
7692 else
7693 enable_fast_install=yes
7694 fi
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706 # This can be used to rebuild libtool when needed
7707 LIBTOOL_DEPS="$ltmain"
7708
7709 # Always use our own libtool.
7710 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741 test -z "$LN_S" && LN_S="ln -s"
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756 if test -n "${ZSH_VERSION+set}" ; then
7757 setopt NO_GLOB_SUBST
7758 fi
7759
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7761 $as_echo_n "checking for objdir... " >&6; }
7762 if ${lt_cv_objdir+:} false; then :
7763 $as_echo_n "(cached) " >&6
7764 else
7765 rm -f .libs 2>/dev/null
7766 mkdir .libs 2>/dev/null
7767 if test -d .libs; then
7768 lt_cv_objdir=.libs
7769 else
7770 # MS-DOS does not allow filenames that begin with a dot.
7771 lt_cv_objdir=_libs
7772 fi
7773 rmdir .libs 2>/dev/null
7774 fi
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7776 $as_echo "$lt_cv_objdir" >&6; }
7777 objdir=$lt_cv_objdir
7778
7779
7780
7781
7782
7783 cat >>confdefs.h <<_ACEOF
7784 #define LT_OBJDIR "$lt_cv_objdir/"
7785 _ACEOF
7786
7787
7788
7789
7790 case $host_os in
7791 aix3*)
7792 # AIX sometimes has problems with the GCC collect2 program. For some
7793 # reason, if we set the COLLECT_NAMES environment variable, the problems
7794 # vanish in a puff of smoke.
7795 if test "X${COLLECT_NAMES+set}" != Xset; then
7796 COLLECT_NAMES=
7797 export COLLECT_NAMES
7798 fi
7799 ;;
7800 esac
7801
7802 # Global variables:
7803 ofile=libtool
7804 can_build_shared=yes
7805
7806 # All known linkers require a `.a' archive for static linking (except MSVC,
7807 # which needs '.lib').
7808 libext=a
7809
7810 with_gnu_ld="$lt_cv_prog_gnu_ld"
7811
7812 old_CC="$CC"
7813 old_CFLAGS="$CFLAGS"
7814
7815 # Set sane defaults for various variables
7816 test -z "$CC" && CC=cc
7817 test -z "$LTCC" && LTCC=$CC
7818 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7819 test -z "$LD" && LD=ld
7820 test -z "$ac_objext" && ac_objext=o
7821
7822 for cc_temp in $compiler""; do
7823 case $cc_temp in
7824 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7825 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7826 \-*) ;;
7827 *) break;;
7828 esac
7829 done
7830 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7831
7832
7833 # Only perform the check for file, if the check method requires it
7834 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7835 case $deplibs_check_method in
7836 file_magic*)
7837 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7839 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7840 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7841 $as_echo_n "(cached) " >&6
7842 else
7843 case $MAGIC_CMD in
7844 [\\/*] | ?:[\\/]*)
7845 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7846 ;;
7847 *)
7848 lt_save_MAGIC_CMD="$MAGIC_CMD"
7849 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7850 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7851 for ac_dir in $ac_dummy; do
7852 IFS="$lt_save_ifs"
7853 test -z "$ac_dir" && ac_dir=.
7854 if test -f $ac_dir/${ac_tool_prefix}file; then
7855 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7856 if test -n "$file_magic_test_file"; then
7857 case $deplibs_check_method in
7858 "file_magic "*)
7859 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7860 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7861 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7862 $EGREP "$file_magic_regex" > /dev/null; then
7863 :
7864 else
7865 cat <<_LT_EOF 1>&2
7866
7867 *** Warning: the command libtool uses to detect shared libraries,
7868 *** $file_magic_cmd, produces output that libtool cannot recognize.
7869 *** The result is that libtool may fail to recognize shared libraries
7870 *** as such. This will affect the creation of libtool libraries that
7871 *** depend on shared libraries, but programs linked with such libtool
7872 *** libraries will work regardless of this problem. Nevertheless, you
7873 *** may want to report the problem to your system manager and/or to
7874 *** bug-libtool@gnu.org
7875
7876 _LT_EOF
7877 fi ;;
7878 esac
7879 fi
7880 break
7881 fi
7882 done
7883 IFS="$lt_save_ifs"
7884 MAGIC_CMD="$lt_save_MAGIC_CMD"
7885 ;;
7886 esac
7887 fi
7888
7889 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7890 if test -n "$MAGIC_CMD"; then
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7892 $as_echo "$MAGIC_CMD" >&6; }
7893 else
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7895 $as_echo "no" >&6; }
7896 fi
7897
7898
7899
7900
7901
7902 if test -z "$lt_cv_path_MAGIC_CMD"; then
7903 if test -n "$ac_tool_prefix"; then
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7905 $as_echo_n "checking for file... " >&6; }
7906 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7907 $as_echo_n "(cached) " >&6
7908 else
7909 case $MAGIC_CMD in
7910 [\\/*] | ?:[\\/]*)
7911 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7912 ;;
7913 *)
7914 lt_save_MAGIC_CMD="$MAGIC_CMD"
7915 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7916 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7917 for ac_dir in $ac_dummy; do
7918 IFS="$lt_save_ifs"
7919 test -z "$ac_dir" && ac_dir=.
7920 if test -f $ac_dir/file; then
7921 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7922 if test -n "$file_magic_test_file"; then
7923 case $deplibs_check_method in
7924 "file_magic "*)
7925 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7926 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7927 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7928 $EGREP "$file_magic_regex" > /dev/null; then
7929 :
7930 else
7931 cat <<_LT_EOF 1>&2
7932
7933 *** Warning: the command libtool uses to detect shared libraries,
7934 *** $file_magic_cmd, produces output that libtool cannot recognize.
7935 *** The result is that libtool may fail to recognize shared libraries
7936 *** as such. This will affect the creation of libtool libraries that
7937 *** depend on shared libraries, but programs linked with such libtool
7938 *** libraries will work regardless of this problem. Nevertheless, you
7939 *** may want to report the problem to your system manager and/or to
7940 *** bug-libtool@gnu.org
7941
7942 _LT_EOF
7943 fi ;;
7944 esac
7945 fi
7946 break
7947 fi
7948 done
7949 IFS="$lt_save_ifs"
7950 MAGIC_CMD="$lt_save_MAGIC_CMD"
7951 ;;
7952 esac
7953 fi
7954
7955 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7956 if test -n "$MAGIC_CMD"; then
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7958 $as_echo "$MAGIC_CMD" >&6; }
7959 else
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7961 $as_echo "no" >&6; }
7962 fi
7963
7964
7965 else
7966 MAGIC_CMD=:
7967 fi
7968 fi
7969
7970 fi
7971 ;;
7972 esac
7973
7974 # Use C for the default configuration in the libtool script
7975
7976 lt_save_CC="$CC"
7977 ac_ext=c
7978 ac_cpp='$CPP $CPPFLAGS'
7979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7982
7983
7984 # Source file extension for C test sources.
7985 ac_ext=c
7986
7987 # Object file extension for compiled C test sources.
7988 objext=o
7989 objext=$objext
7990
7991 # Code to be used in simple compile tests
7992 lt_simple_compile_test_code="int some_variable = 0;"
7993
7994 # Code to be used in simple link tests
7995 lt_simple_link_test_code='int main(){return(0);}'
7996
7997
7998
7999
8000
8001
8002
8003 # If no C compiler was specified, use CC.
8004 LTCC=${LTCC-"$CC"}
8005
8006 # If no C compiler flags were specified, use CFLAGS.
8007 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8008
8009 # Allow CC to be a program name with arguments.
8010 compiler=$CC
8011
8012 # Save the default compiler, since it gets overwritten when the other
8013 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8014 compiler_DEFAULT=$CC
8015
8016 # save warnings/boilerplate of simple test code
8017 ac_outfile=conftest.$ac_objext
8018 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8019 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8020 _lt_compiler_boilerplate=`cat conftest.err`
8021 $RM conftest*
8022
8023 ac_outfile=conftest.$ac_objext
8024 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8025 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8026 _lt_linker_boilerplate=`cat conftest.err`
8027 $RM -r conftest*
8028
8029
8030 if test -n "$compiler"; then
8031
8032 lt_prog_compiler_no_builtin_flag=
8033
8034 if test "$GCC" = yes; then
8035 case $cc_basename in
8036 nvcc*)
8037 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8038 *)
8039 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8040 esac
8041
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8043 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8044 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8045 $as_echo_n "(cached) " >&6
8046 else
8047 lt_cv_prog_compiler_rtti_exceptions=no
8048 ac_outfile=conftest.$ac_objext
8049 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8050 lt_compiler_flag="-fno-rtti -fno-exceptions"
8051 # Insert the option either (1) after the last *FLAGS variable, or
8052 # (2) before a word containing "conftest.", or (3) at the end.
8053 # Note that $ac_compile itself does not contain backslashes and begins
8054 # with a dollar sign (not a hyphen), so the echo should work correctly.
8055 # The option is referenced via a variable to avoid confusing sed.
8056 lt_compile=`echo "$ac_compile" | $SED \
8057 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8058 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8059 -e 's:$: $lt_compiler_flag:'`
8060 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8061 (eval "$lt_compile" 2>conftest.err)
8062 ac_status=$?
8063 cat conftest.err >&5
8064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8065 if (exit $ac_status) && test -s "$ac_outfile"; then
8066 # The compiler can only warn and ignore the option if not recognized
8067 # So say no if there are warnings other than the usual output.
8068 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8069 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8070 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8071 lt_cv_prog_compiler_rtti_exceptions=yes
8072 fi
8073 fi
8074 $RM conftest*
8075
8076 fi
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8078 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8079
8080 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8081 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8082 else
8083 :
8084 fi
8085
8086 fi
8087
8088
8089
8090
8091
8092
8093 lt_prog_compiler_wl=
8094 lt_prog_compiler_pic=
8095 lt_prog_compiler_static=
8096
8097
8098 if test "$GCC" = yes; then
8099 lt_prog_compiler_wl='-Wl,'
8100 lt_prog_compiler_static='-static'
8101
8102 case $host_os in
8103 aix*)
8104 # All AIX code is PIC.
8105 if test "$host_cpu" = ia64; then
8106 # AIX 5 now supports IA64 processor
8107 lt_prog_compiler_static='-Bstatic'
8108 fi
8109 ;;
8110
8111 amigaos*)
8112 case $host_cpu in
8113 powerpc)
8114 # see comment about AmigaOS4 .so support
8115 lt_prog_compiler_pic='-fPIC'
8116 ;;
8117 m68k)
8118 # FIXME: we need at least 68020 code to build shared libraries, but
8119 # adding the `-m68020' flag to GCC prevents building anything better,
8120 # like `-m68040'.
8121 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8122 ;;
8123 esac
8124 ;;
8125
8126 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8127 # PIC is the default for these OSes.
8128 ;;
8129
8130 mingw* | cygwin* | pw32* | os2* | cegcc*)
8131 # This hack is so that the source file can tell whether it is being
8132 # built for inclusion in a dll (and should export symbols for example).
8133 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8134 # (--disable-auto-import) libraries
8135 lt_prog_compiler_pic='-DDLL_EXPORT'
8136 ;;
8137
8138 darwin* | rhapsody*)
8139 # PIC is the default on this platform
8140 # Common symbols not allowed in MH_DYLIB files
8141 lt_prog_compiler_pic='-fno-common'
8142 ;;
8143
8144 haiku*)
8145 # PIC is the default for Haiku.
8146 # The "-static" flag exists, but is broken.
8147 lt_prog_compiler_static=
8148 ;;
8149
8150 hpux*)
8151 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8152 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8153 # sets the default TLS model and affects inlining.
8154 case $host_cpu in
8155 hppa*64*)
8156 # +Z the default
8157 ;;
8158 *)
8159 lt_prog_compiler_pic='-fPIC'
8160 ;;
8161 esac
8162 ;;
8163
8164 interix[3-9]*)
8165 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8166 # Instead, we relocate shared libraries at runtime.
8167 ;;
8168
8169 msdosdjgpp*)
8170 # Just because we use GCC doesn't mean we suddenly get shared libraries
8171 # on systems that don't support them.
8172 lt_prog_compiler_can_build_shared=no
8173 enable_shared=no
8174 ;;
8175
8176 *nto* | *qnx*)
8177 # QNX uses GNU C++, but need to define -shared option too, otherwise
8178 # it will coredump.
8179 lt_prog_compiler_pic='-fPIC -shared'
8180 ;;
8181
8182 sysv4*MP*)
8183 if test -d /usr/nec; then
8184 lt_prog_compiler_pic=-Kconform_pic
8185 fi
8186 ;;
8187
8188 *)
8189 lt_prog_compiler_pic='-fPIC'
8190 ;;
8191 esac
8192
8193 case $cc_basename in
8194 nvcc*) # Cuda Compiler Driver 2.2
8195 lt_prog_compiler_wl='-Xlinker '
8196 if test -n "$lt_prog_compiler_pic"; then
8197 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8198 fi
8199 ;;
8200 esac
8201 else
8202 # PORTME Check for flag to pass linker flags through the system compiler.
8203 case $host_os in
8204 aix*)
8205 lt_prog_compiler_wl='-Wl,'
8206 if test "$host_cpu" = ia64; then
8207 # AIX 5 now supports IA64 processor
8208 lt_prog_compiler_static='-Bstatic'
8209 else
8210 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8211 fi
8212 ;;
8213
8214 mingw* | cygwin* | pw32* | os2* | cegcc*)
8215 # This hack is so that the source file can tell whether it is being
8216 # built for inclusion in a dll (and should export symbols for example).
8217 lt_prog_compiler_pic='-DDLL_EXPORT'
8218 ;;
8219
8220 hpux9* | hpux10* | hpux11*)
8221 lt_prog_compiler_wl='-Wl,'
8222 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8223 # not for PA HP-UX.
8224 case $host_cpu in
8225 hppa*64*|ia64*)
8226 # +Z the default
8227 ;;
8228 *)
8229 lt_prog_compiler_pic='+Z'
8230 ;;
8231 esac
8232 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8233 lt_prog_compiler_static='${wl}-a ${wl}archive'
8234 ;;
8235
8236 irix5* | irix6* | nonstopux*)
8237 lt_prog_compiler_wl='-Wl,'
8238 # PIC (with -KPIC) is the default.
8239 lt_prog_compiler_static='-non_shared'
8240 ;;
8241
8242 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8243 case $cc_basename in
8244 # old Intel for x86_64 which still supported -KPIC.
8245 ecc*)
8246 lt_prog_compiler_wl='-Wl,'
8247 lt_prog_compiler_pic='-KPIC'
8248 lt_prog_compiler_static='-static'
8249 ;;
8250 # icc used to be incompatible with GCC.
8251 # ICC 10 doesn't accept -KPIC any more.
8252 icc* | ifort*)
8253 lt_prog_compiler_wl='-Wl,'
8254 lt_prog_compiler_pic='-fPIC'
8255 lt_prog_compiler_static='-static'
8256 ;;
8257 # Lahey Fortran 8.1.
8258 lf95*)
8259 lt_prog_compiler_wl='-Wl,'
8260 lt_prog_compiler_pic='--shared'
8261 lt_prog_compiler_static='--static'
8262 ;;
8263 nagfor*)
8264 # NAG Fortran compiler
8265 lt_prog_compiler_wl='-Wl,-Wl,,'
8266 lt_prog_compiler_pic='-PIC'
8267 lt_prog_compiler_static='-Bstatic'
8268 ;;
8269 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8270 # Portland Group compilers (*not* the Pentium gcc compiler,
8271 # which looks to be a dead project)
8272 lt_prog_compiler_wl='-Wl,'
8273 lt_prog_compiler_pic='-fpic'
8274 lt_prog_compiler_static='-Bstatic'
8275 ;;
8276 ccc*)
8277 lt_prog_compiler_wl='-Wl,'
8278 # All Alpha code is PIC.
8279 lt_prog_compiler_static='-non_shared'
8280 ;;
8281 xl* | bgxl* | bgf* | mpixl*)
8282 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8283 lt_prog_compiler_wl='-Wl,'
8284 lt_prog_compiler_pic='-qpic'
8285 lt_prog_compiler_static='-qstaticlink'
8286 ;;
8287 *)
8288 case `$CC -V 2>&1 | sed 5q` in
8289 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8290 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8291 lt_prog_compiler_pic='-KPIC'
8292 lt_prog_compiler_static='-Bstatic'
8293 lt_prog_compiler_wl=''
8294 ;;
8295 *Sun\ F* | *Sun*Fortran*)
8296 lt_prog_compiler_pic='-KPIC'
8297 lt_prog_compiler_static='-Bstatic'
8298 lt_prog_compiler_wl='-Qoption ld '
8299 ;;
8300 *Sun\ C*)
8301 # Sun C 5.9
8302 lt_prog_compiler_pic='-KPIC'
8303 lt_prog_compiler_static='-Bstatic'
8304 lt_prog_compiler_wl='-Wl,'
8305 ;;
8306 *Intel*\ [CF]*Compiler*)
8307 lt_prog_compiler_wl='-Wl,'
8308 lt_prog_compiler_pic='-fPIC'
8309 lt_prog_compiler_static='-static'
8310 ;;
8311 *Portland\ Group*)
8312 lt_prog_compiler_wl='-Wl,'
8313 lt_prog_compiler_pic='-fpic'
8314 lt_prog_compiler_static='-Bstatic'
8315 ;;
8316 esac
8317 ;;
8318 esac
8319 ;;
8320
8321 newsos6)
8322 lt_prog_compiler_pic='-KPIC'
8323 lt_prog_compiler_static='-Bstatic'
8324 ;;
8325
8326 *nto* | *qnx*)
8327 # QNX uses GNU C++, but need to define -shared option too, otherwise
8328 # it will coredump.
8329 lt_prog_compiler_pic='-fPIC -shared'
8330 ;;
8331
8332 osf3* | osf4* | osf5*)
8333 lt_prog_compiler_wl='-Wl,'
8334 # All OSF/1 code is PIC.
8335 lt_prog_compiler_static='-non_shared'
8336 ;;
8337
8338 rdos*)
8339 lt_prog_compiler_static='-non_shared'
8340 ;;
8341
8342 solaris*)
8343 lt_prog_compiler_pic='-KPIC'
8344 lt_prog_compiler_static='-Bstatic'
8345 case $cc_basename in
8346 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8347 lt_prog_compiler_wl='-Qoption ld ';;
8348 *)
8349 lt_prog_compiler_wl='-Wl,';;
8350 esac
8351 ;;
8352
8353 sunos4*)
8354 lt_prog_compiler_wl='-Qoption ld '
8355 lt_prog_compiler_pic='-PIC'
8356 lt_prog_compiler_static='-Bstatic'
8357 ;;
8358
8359 sysv4 | sysv4.2uw2* | sysv4.3*)
8360 lt_prog_compiler_wl='-Wl,'
8361 lt_prog_compiler_pic='-KPIC'
8362 lt_prog_compiler_static='-Bstatic'
8363 ;;
8364
8365 sysv4*MP*)
8366 if test -d /usr/nec ;then
8367 lt_prog_compiler_pic='-Kconform_pic'
8368 lt_prog_compiler_static='-Bstatic'
8369 fi
8370 ;;
8371
8372 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8373 lt_prog_compiler_wl='-Wl,'
8374 lt_prog_compiler_pic='-KPIC'
8375 lt_prog_compiler_static='-Bstatic'
8376 ;;
8377
8378 unicos*)
8379 lt_prog_compiler_wl='-Wl,'
8380 lt_prog_compiler_can_build_shared=no
8381 ;;
8382
8383 uts4*)
8384 lt_prog_compiler_pic='-pic'
8385 lt_prog_compiler_static='-Bstatic'
8386 ;;
8387
8388 *)
8389 lt_prog_compiler_can_build_shared=no
8390 ;;
8391 esac
8392 fi
8393
8394 case $host_os in
8395 # For platforms which do not support PIC, -DPIC is meaningless:
8396 *djgpp*)
8397 lt_prog_compiler_pic=
8398 ;;
8399 *)
8400 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8401 ;;
8402 esac
8403
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8405 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8406 if ${lt_cv_prog_compiler_pic+:} false; then :
8407 $as_echo_n "(cached) " >&6
8408 else
8409 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8410 fi
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8412 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8413 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8414
8415 #
8416 # Check to make sure the PIC flag actually works.
8417 #
8418 if test -n "$lt_prog_compiler_pic"; then
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8420 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8421 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8422 $as_echo_n "(cached) " >&6
8423 else
8424 lt_cv_prog_compiler_pic_works=no
8425 ac_outfile=conftest.$ac_objext
8426 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8427 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8428 # Insert the option either (1) after the last *FLAGS variable, or
8429 # (2) before a word containing "conftest.", or (3) at the end.
8430 # Note that $ac_compile itself does not contain backslashes and begins
8431 # with a dollar sign (not a hyphen), so the echo should work correctly.
8432 # The option is referenced via a variable to avoid confusing sed.
8433 lt_compile=`echo "$ac_compile" | $SED \
8434 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8435 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8436 -e 's:$: $lt_compiler_flag:'`
8437 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8438 (eval "$lt_compile" 2>conftest.err)
8439 ac_status=$?
8440 cat conftest.err >&5
8441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442 if (exit $ac_status) && test -s "$ac_outfile"; then
8443 # The compiler can only warn and ignore the option if not recognized
8444 # So say no if there are warnings other than the usual output.
8445 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8446 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8447 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8448 lt_cv_prog_compiler_pic_works=yes
8449 fi
8450 fi
8451 $RM conftest*
8452
8453 fi
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8455 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8456
8457 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8458 case $lt_prog_compiler_pic in
8459 "" | " "*) ;;
8460 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8461 esac
8462 else
8463 lt_prog_compiler_pic=
8464 lt_prog_compiler_can_build_shared=no
8465 fi
8466
8467 fi
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479 #
8480 # Check to make sure the static flag actually works.
8481 #
8482 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8484 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8485 if ${lt_cv_prog_compiler_static_works+:} false; then :
8486 $as_echo_n "(cached) " >&6
8487 else
8488 lt_cv_prog_compiler_static_works=no
8489 save_LDFLAGS="$LDFLAGS"
8490 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8491 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8492 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8493 # The linker can only warn and ignore the option if not recognized
8494 # So say no if there are warnings
8495 if test -s conftest.err; then
8496 # Append any errors to the config.log.
8497 cat conftest.err 1>&5
8498 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8499 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8500 if diff conftest.exp conftest.er2 >/dev/null; then
8501 lt_cv_prog_compiler_static_works=yes
8502 fi
8503 else
8504 lt_cv_prog_compiler_static_works=yes
8505 fi
8506 fi
8507 $RM -r conftest*
8508 LDFLAGS="$save_LDFLAGS"
8509
8510 fi
8511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8512 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8513
8514 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8515 :
8516 else
8517 lt_prog_compiler_static=
8518 fi
8519
8520
8521
8522
8523
8524
8525
8526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8527 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8528 if ${lt_cv_prog_compiler_c_o+:} false; then :
8529 $as_echo_n "(cached) " >&6
8530 else
8531 lt_cv_prog_compiler_c_o=no
8532 $RM -r conftest 2>/dev/null
8533 mkdir conftest
8534 cd conftest
8535 mkdir out
8536 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8537
8538 lt_compiler_flag="-o out/conftest2.$ac_objext"
8539 # Insert the option either (1) after the last *FLAGS variable, or
8540 # (2) before a word containing "conftest.", or (3) at the end.
8541 # Note that $ac_compile itself does not contain backslashes and begins
8542 # with a dollar sign (not a hyphen), so the echo should work correctly.
8543 lt_compile=`echo "$ac_compile" | $SED \
8544 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8545 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8546 -e 's:$: $lt_compiler_flag:'`
8547 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8548 (eval "$lt_compile" 2>out/conftest.err)
8549 ac_status=$?
8550 cat out/conftest.err >&5
8551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8552 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8553 then
8554 # The compiler can only warn and ignore the option if not recognized
8555 # So say no if there are warnings
8556 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8557 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8558 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8559 lt_cv_prog_compiler_c_o=yes
8560 fi
8561 fi
8562 chmod u+w . 2>&5
8563 $RM conftest*
8564 # SGI C++ compiler will create directory out/ii_files/ for
8565 # template instantiation
8566 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8567 $RM out/* && rmdir out
8568 cd ..
8569 $RM -r conftest
8570 $RM conftest*
8571
8572 fi
8573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8574 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8575
8576
8577
8578
8579
8580
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8582 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8583 if ${lt_cv_prog_compiler_c_o+:} false; then :
8584 $as_echo_n "(cached) " >&6
8585 else
8586 lt_cv_prog_compiler_c_o=no
8587 $RM -r conftest 2>/dev/null
8588 mkdir conftest
8589 cd conftest
8590 mkdir out
8591 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8592
8593 lt_compiler_flag="-o out/conftest2.$ac_objext"
8594 # Insert the option either (1) after the last *FLAGS variable, or
8595 # (2) before a word containing "conftest.", or (3) at the end.
8596 # Note that $ac_compile itself does not contain backslashes and begins
8597 # with a dollar sign (not a hyphen), so the echo should work correctly.
8598 lt_compile=`echo "$ac_compile" | $SED \
8599 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8600 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8601 -e 's:$: $lt_compiler_flag:'`
8602 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8603 (eval "$lt_compile" 2>out/conftest.err)
8604 ac_status=$?
8605 cat out/conftest.err >&5
8606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8607 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8608 then
8609 # The compiler can only warn and ignore the option if not recognized
8610 # So say no if there are warnings
8611 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8612 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8613 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8614 lt_cv_prog_compiler_c_o=yes
8615 fi
8616 fi
8617 chmod u+w . 2>&5
8618 $RM conftest*
8619 # SGI C++ compiler will create directory out/ii_files/ for
8620 # template instantiation
8621 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8622 $RM out/* && rmdir out
8623 cd ..
8624 $RM -r conftest
8625 $RM conftest*
8626
8627 fi
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8629 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8630
8631
8632
8633
8634 hard_links="nottested"
8635 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8636 # do not overwrite the value of need_locks provided by the user
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8638 $as_echo_n "checking if we can lock with hard links... " >&6; }
8639 hard_links=yes
8640 $RM conftest*
8641 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8642 touch conftest.a
8643 ln conftest.a conftest.b 2>&5 || hard_links=no
8644 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8646 $as_echo "$hard_links" >&6; }
8647 if test "$hard_links" = no; then
8648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8649 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8650 need_locks=warn
8651 fi
8652 else
8653 need_locks=no
8654 fi
8655
8656
8657
8658
8659
8660
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8662 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8663
8664 runpath_var=
8665 allow_undefined_flag=
8666 always_export_symbols=no
8667 archive_cmds=
8668 archive_expsym_cmds=
8669 compiler_needs_object=no
8670 enable_shared_with_static_runtimes=no
8671 export_dynamic_flag_spec=
8672 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8673 hardcode_automatic=no
8674 hardcode_direct=no
8675 hardcode_direct_absolute=no
8676 hardcode_libdir_flag_spec=
8677 hardcode_libdir_separator=
8678 hardcode_minus_L=no
8679 hardcode_shlibpath_var=unsupported
8680 inherit_rpath=no
8681 link_all_deplibs=unknown
8682 module_cmds=
8683 module_expsym_cmds=
8684 old_archive_from_new_cmds=
8685 old_archive_from_expsyms_cmds=
8686 thread_safe_flag_spec=
8687 whole_archive_flag_spec=
8688 # include_expsyms should be a list of space-separated symbols to be *always*
8689 # included in the symbol list
8690 include_expsyms=
8691 # exclude_expsyms can be an extended regexp of symbols to exclude
8692 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8693 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8694 # as well as any symbol that contains `d'.
8695 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8696 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8697 # platforms (ab)use it in PIC code, but their linkers get confused if
8698 # the symbol is explicitly referenced. Since portable code cannot
8699 # rely on this symbol name, it's probably fine to never include it in
8700 # preloaded symbol tables.
8701 # Exclude shared library initialization/finalization symbols.
8702 extract_expsyms_cmds=
8703
8704 case $host_os in
8705 cygwin* | mingw* | pw32* | cegcc*)
8706 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8707 # When not using gcc, we currently assume that we are using
8708 # Microsoft Visual C++.
8709 if test "$GCC" != yes; then
8710 with_gnu_ld=no
8711 fi
8712 ;;
8713 interix*)
8714 # we just hope/assume this is gcc and not c89 (= MSVC++)
8715 with_gnu_ld=yes
8716 ;;
8717 openbsd*)
8718 with_gnu_ld=no
8719 ;;
8720 linux* | k*bsd*-gnu | gnu*)
8721 link_all_deplibs=no
8722 ;;
8723 esac
8724
8725 ld_shlibs=yes
8726
8727 # On some targets, GNU ld is compatible enough with the native linker
8728 # that we're better off using the native interface for both.
8729 lt_use_gnu_ld_interface=no
8730 if test "$with_gnu_ld" = yes; then
8731 case $host_os in
8732 aix*)
8733 # The AIX port of GNU ld has always aspired to compatibility
8734 # with the native linker. However, as the warning in the GNU ld
8735 # block says, versions before 2.19.5* couldn't really create working
8736 # shared libraries, regardless of the interface used.
8737 case `$LD -v 2>&1` in
8738 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8739 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8740 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8741 *)
8742 lt_use_gnu_ld_interface=yes
8743 ;;
8744 esac
8745 ;;
8746 *)
8747 lt_use_gnu_ld_interface=yes
8748 ;;
8749 esac
8750 fi
8751
8752 if test "$lt_use_gnu_ld_interface" = yes; then
8753 # If archive_cmds runs LD, not CC, wlarc should be empty
8754 wlarc='${wl}'
8755
8756 # Set some defaults for GNU ld with shared library support. These
8757 # are reset later if shared libraries are not supported. Putting them
8758 # here allows them to be overridden if necessary.
8759 runpath_var=LD_RUN_PATH
8760 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8761 export_dynamic_flag_spec='${wl}--export-dynamic'
8762 # ancient GNU ld didn't support --whole-archive et. al.
8763 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8764 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8765 else
8766 whole_archive_flag_spec=
8767 fi
8768 supports_anon_versioning=no
8769 case `$LD -v 2>&1` in
8770 *GNU\ gold*) supports_anon_versioning=yes ;;
8771 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8772 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8773 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8774 *\ 2.11.*) ;; # other 2.11 versions
8775 *) supports_anon_versioning=yes ;;
8776 esac
8777
8778 # See if GNU ld supports shared libraries.
8779 case $host_os in
8780 aix[3-9]*)
8781 # On AIX/PPC, the GNU linker is very broken
8782 if test "$host_cpu" != ia64; then
8783 ld_shlibs=no
8784 cat <<_LT_EOF 1>&2
8785
8786 *** Warning: the GNU linker, at least up to release 2.19, is reported
8787 *** to be unable to reliably create shared libraries on AIX.
8788 *** Therefore, libtool is disabling shared libraries support. If you
8789 *** really care for shared libraries, you may want to install binutils
8790 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8791 *** You will then need to restart the configuration process.
8792
8793 _LT_EOF
8794 fi
8795 ;;
8796
8797 amigaos*)
8798 case $host_cpu in
8799 powerpc)
8800 # see comment about AmigaOS4 .so support
8801 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8802 archive_expsym_cmds=''
8803 ;;
8804 m68k)
8805 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)'
8806 hardcode_libdir_flag_spec='-L$libdir'
8807 hardcode_minus_L=yes
8808 ;;
8809 esac
8810 ;;
8811
8812 beos*)
8813 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8814 allow_undefined_flag=unsupported
8815 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
8816 # support --undefined. This deserves some investigation. FIXME
8817 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8818 else
8819 ld_shlibs=no
8820 fi
8821 ;;
8822
8823 cygwin* | mingw* | pw32* | cegcc*)
8824 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8825 # as there is no search path for DLLs.
8826 hardcode_libdir_flag_spec='-L$libdir'
8827 export_dynamic_flag_spec='${wl}--export-all-symbols'
8828 allow_undefined_flag=unsupported
8829 always_export_symbols=no
8830 enable_shared_with_static_runtimes=yes
8831 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'
8832 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8833
8834 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8835 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8836 # If the export-symbols file already is a .def file (1st line
8837 # is EXPORTS), use it as is; otherwise, prepend...
8838 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8839 cp $export_symbols $output_objdir/$soname.def;
8840 else
8841 echo EXPORTS > $output_objdir/$soname.def;
8842 cat $export_symbols >> $output_objdir/$soname.def;
8843 fi~
8844 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8845 else
8846 ld_shlibs=no
8847 fi
8848 ;;
8849
8850 haiku*)
8851 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8852 link_all_deplibs=yes
8853 ;;
8854
8855 interix[3-9]*)
8856 hardcode_direct=no
8857 hardcode_shlibpath_var=no
8858 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8859 export_dynamic_flag_spec='${wl}-E'
8860 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8861 # Instead, shared libraries are loaded at an image base (0x10000000 by
8862 # default) and relocated if they conflict, which is a slow very memory
8863 # consuming and fragmenting process. To avoid this, we pick a random,
8864 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8865 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8866 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8867 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'
8868 ;;
8869
8870 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8871 tmp_diet=no
8872 if test "$host_os" = linux-dietlibc; then
8873 case $cc_basename in
8874 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8875 esac
8876 fi
8877 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8878 && test "$tmp_diet" = no
8879 then
8880 tmp_addflag=' $pic_flag'
8881 tmp_sharedflag='-shared'
8882 case $cc_basename,$host_cpu in
8883 pgcc*) # Portland Group C compiler
8884 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'
8885 tmp_addflag=' $pic_flag'
8886 ;;
8887 pgf77* | pgf90* | pgf95* | pgfortran*)
8888 # Portland Group f77 and f90 compilers
8889 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'
8890 tmp_addflag=' $pic_flag -Mnomain' ;;
8891 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8892 tmp_addflag=' -i_dynamic' ;;
8893 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8894 tmp_addflag=' -i_dynamic -nofor_main' ;;
8895 ifc* | ifort*) # Intel Fortran compiler
8896 tmp_addflag=' -nofor_main' ;;
8897 lf95*) # Lahey Fortran 8.1
8898 whole_archive_flag_spec=
8899 tmp_sharedflag='--shared' ;;
8900 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8901 tmp_sharedflag='-qmkshrobj'
8902 tmp_addflag= ;;
8903 nvcc*) # Cuda Compiler Driver 2.2
8904 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'
8905 compiler_needs_object=yes
8906 ;;
8907 esac
8908 case `$CC -V 2>&1 | sed 5q` in
8909 *Sun\ C*) # Sun C 5.9
8910 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'
8911 compiler_needs_object=yes
8912 tmp_sharedflag='-G' ;;
8913 *Sun\ F*) # Sun Fortran 8.3
8914 tmp_sharedflag='-G' ;;
8915 esac
8916 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8917
8918 if test "x$supports_anon_versioning" = xyes; then
8919 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8920 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8921 echo "local: *; };" >> $output_objdir/$libname.ver~
8922 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8923 fi
8924
8925 case $cc_basename in
8926 xlf* | bgf* | bgxlf* | mpixlf*)
8927 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8928 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8929 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8930 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8931 if test "x$supports_anon_versioning" = xyes; then
8932 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8933 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8934 echo "local: *; };" >> $output_objdir/$libname.ver~
8935 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8936 fi
8937 ;;
8938 esac
8939 else
8940 ld_shlibs=no
8941 fi
8942 ;;
8943
8944 netbsd* | netbsdelf*-gnu)
8945 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8946 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8947 wlarc=
8948 else
8949 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8950 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8951 fi
8952 ;;
8953
8954 solaris*)
8955 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8956 ld_shlibs=no
8957 cat <<_LT_EOF 1>&2
8958
8959 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8960 *** create shared libraries on Solaris systems. Therefore, libtool
8961 *** is disabling shared libraries support. We urge you to upgrade GNU
8962 *** binutils to release 2.9.1 or newer. Another option is to modify
8963 *** your PATH or compiler configuration so that the native linker is
8964 *** used, and then restart.
8965
8966 _LT_EOF
8967 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8968 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8969 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8970 else
8971 ld_shlibs=no
8972 fi
8973 ;;
8974
8975 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8976 case `$LD -v 2>&1` in
8977 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8978 ld_shlibs=no
8979 cat <<_LT_EOF 1>&2
8980
8981 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8982 *** reliably create shared libraries on SCO systems. Therefore, libtool
8983 *** is disabling shared libraries support. We urge you to upgrade GNU
8984 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8985 *** your PATH or compiler configuration so that the native linker is
8986 *** used, and then restart.
8987
8988 _LT_EOF
8989 ;;
8990 *)
8991 # For security reasons, it is highly recommended that you always
8992 # use absolute paths for naming shared libraries, and exclude the
8993 # DT_RUNPATH tag from executables and libraries. But doing so
8994 # requires that you compile everything twice, which is a pain.
8995 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8996 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8997 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8998 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8999 else
9000 ld_shlibs=no
9001 fi
9002 ;;
9003 esac
9004 ;;
9005
9006 sunos4*)
9007 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9008 wlarc=
9009 hardcode_direct=yes
9010 hardcode_shlibpath_var=no
9011 ;;
9012
9013 *)
9014 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9015 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9016 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9017 else
9018 ld_shlibs=no
9019 fi
9020 ;;
9021 esac
9022
9023 if test "$ld_shlibs" = no; then
9024 runpath_var=
9025 hardcode_libdir_flag_spec=
9026 export_dynamic_flag_spec=
9027 whole_archive_flag_spec=
9028 fi
9029 else
9030 # PORTME fill in a description of your system's linker (not GNU ld)
9031 case $host_os in
9032 aix3*)
9033 allow_undefined_flag=unsupported
9034 always_export_symbols=yes
9035 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'
9036 # Note: this linker hardcodes the directories in LIBPATH if there
9037 # are no directories specified by -L.
9038 hardcode_minus_L=yes
9039 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9040 # Neither direct hardcoding nor static linking is supported with a
9041 # broken collect2.
9042 hardcode_direct=unsupported
9043 fi
9044 ;;
9045
9046 aix[4-9]*)
9047 if test "$host_cpu" = ia64; then
9048 # On IA64, the linker does run time linking by default, so we don't
9049 # have to do anything special.
9050 aix_use_runtimelinking=no
9051 exp_sym_flag='-Bexport'
9052 no_entry_flag=""
9053 else
9054 # If we're using GNU nm, then we don't want the "-C" option.
9055 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9056 # Also, AIX nm treats weak defined symbols like other global
9057 # defined symbols, whereas GNU nm marks them as "W".
9058 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9059 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9060 else
9061 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9062 fi
9063 aix_use_runtimelinking=no
9064
9065 # Test if we are trying to use run time linking or normal
9066 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9067 # need to do runtime linking.
9068 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9069 for ld_flag in $LDFLAGS; do
9070 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9071 aix_use_runtimelinking=yes
9072 break
9073 fi
9074 done
9075 ;;
9076 esac
9077
9078 exp_sym_flag='-bexport'
9079 no_entry_flag='-bnoentry'
9080 fi
9081
9082 # When large executables or shared objects are built, AIX ld can
9083 # have problems creating the table of contents. If linking a library
9084 # or program results in "error TOC overflow" add -mminimal-toc to
9085 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9086 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9087
9088 archive_cmds=''
9089 hardcode_direct=yes
9090 hardcode_direct_absolute=yes
9091 hardcode_libdir_separator=':'
9092 link_all_deplibs=yes
9093 file_list_spec='${wl}-f,'
9094
9095 if test "$GCC" = yes; then
9096 case $host_os in aix4.[012]|aix4.[012].*)
9097 # We only want to do this on AIX 4.2 and lower, the check
9098 # below for broken collect2 doesn't work under 4.3+
9099 collect2name=`${CC} -print-prog-name=collect2`
9100 if test -f "$collect2name" &&
9101 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9102 then
9103 # We have reworked collect2
9104 :
9105 else
9106 # We have old collect2
9107 hardcode_direct=unsupported
9108 # It fails to find uninstalled libraries when the uninstalled
9109 # path is not listed in the libpath. Setting hardcode_minus_L
9110 # to unsupported forces relinking
9111 hardcode_minus_L=yes
9112 hardcode_libdir_flag_spec='-L$libdir'
9113 hardcode_libdir_separator=
9114 fi
9115 ;;
9116 esac
9117 shared_flag='-shared'
9118 if test "$aix_use_runtimelinking" = yes; then
9119 shared_flag="$shared_flag "'${wl}-G'
9120 fi
9121 link_all_deplibs=no
9122 else
9123 # not using gcc
9124 if test "$host_cpu" = ia64; then
9125 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9126 # chokes on -Wl,-G. The following line is correct:
9127 shared_flag='-G'
9128 else
9129 if test "$aix_use_runtimelinking" = yes; then
9130 shared_flag='${wl}-G'
9131 else
9132 shared_flag='${wl}-bM:SRE'
9133 fi
9134 fi
9135 fi
9136
9137 export_dynamic_flag_spec='${wl}-bexpall'
9138 # It seems that -bexpall does not export symbols beginning with
9139 # underscore (_), so it is better to generate a list of symbols to export.
9140 always_export_symbols=yes
9141 if test "$aix_use_runtimelinking" = yes; then
9142 # Warning - without using the other runtime loading flags (-brtl),
9143 # -berok will link without error, but may produce a broken library.
9144 allow_undefined_flag='-berok'
9145 # Determine the default libpath from the value encoded in an
9146 # empty executable.
9147 if test "${lt_cv_aix_libpath+set}" = set; then
9148 aix_libpath=$lt_cv_aix_libpath
9149 else
9150 if ${lt_cv_aix_libpath_+:} false; then :
9151 $as_echo_n "(cached) " >&6
9152 else
9153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9154 /* end confdefs.h. */
9155
9156 int
9157 main ()
9158 {
9159
9160 ;
9161 return 0;
9162 }
9163 _ACEOF
9164 if ac_fn_c_try_link "$LINENO"; then :
9165
9166 lt_aix_libpath_sed='
9167 /Import File Strings/,/^$/ {
9168 /^0/ {
9169 s/^0 *\([^ ]*\) *$/\1/
9170 p
9171 }
9172 }'
9173 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9174 # Check for a 64-bit object if we didn't find anything.
9175 if test -z "$lt_cv_aix_libpath_"; then
9176 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9177 fi
9178 fi
9179 rm -f core conftest.err conftest.$ac_objext \
9180 conftest$ac_exeext conftest.$ac_ext
9181 if test -z "$lt_cv_aix_libpath_"; then
9182 lt_cv_aix_libpath_="/usr/lib:/lib"
9183 fi
9184
9185 fi
9186
9187 aix_libpath=$lt_cv_aix_libpath_
9188 fi
9189
9190 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9191 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9192 else
9193 if test "$host_cpu" = ia64; then
9194 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9195 allow_undefined_flag="-z nodefs"
9196 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"
9197 else
9198 # Determine the default libpath from the value encoded in an
9199 # empty executable.
9200 if test "${lt_cv_aix_libpath+set}" = set; then
9201 aix_libpath=$lt_cv_aix_libpath
9202 else
9203 if ${lt_cv_aix_libpath_+:} false; then :
9204 $as_echo_n "(cached) " >&6
9205 else
9206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9207 /* end confdefs.h. */
9208
9209 int
9210 main ()
9211 {
9212
9213 ;
9214 return 0;
9215 }
9216 _ACEOF
9217 if ac_fn_c_try_link "$LINENO"; then :
9218
9219 lt_aix_libpath_sed='
9220 /Import File Strings/,/^$/ {
9221 /^0/ {
9222 s/^0 *\([^ ]*\) *$/\1/
9223 p
9224 }
9225 }'
9226 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9227 # Check for a 64-bit object if we didn't find anything.
9228 if test -z "$lt_cv_aix_libpath_"; then
9229 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9230 fi
9231 fi
9232 rm -f core conftest.err conftest.$ac_objext \
9233 conftest$ac_exeext conftest.$ac_ext
9234 if test -z "$lt_cv_aix_libpath_"; then
9235 lt_cv_aix_libpath_="/usr/lib:/lib"
9236 fi
9237
9238 fi
9239
9240 aix_libpath=$lt_cv_aix_libpath_
9241 fi
9242
9243 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9244 # Warning - without using the other run time loading flags,
9245 # -berok will link without error, but may produce a broken library.
9246 no_undefined_flag=' ${wl}-bernotok'
9247 allow_undefined_flag=' ${wl}-berok'
9248 if test "$with_gnu_ld" = yes; then
9249 # We only use this code for GNU lds that support --whole-archive.
9250 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9251 else
9252 # Exported symbols can be pulled into shared objects from archives
9253 whole_archive_flag_spec='$convenience'
9254 fi
9255 archive_cmds_need_lc=yes
9256 # This is similar to how AIX traditionally builds its shared libraries.
9257 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9258 fi
9259 fi
9260 ;;
9261
9262 amigaos*)
9263 case $host_cpu in
9264 powerpc)
9265 # see comment about AmigaOS4 .so support
9266 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9267 archive_expsym_cmds=''
9268 ;;
9269 m68k)
9270 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)'
9271 hardcode_libdir_flag_spec='-L$libdir'
9272 hardcode_minus_L=yes
9273 ;;
9274 esac
9275 ;;
9276
9277 bsdi[45]*)
9278 export_dynamic_flag_spec=-rdynamic
9279 ;;
9280
9281 cygwin* | mingw* | pw32* | cegcc*)
9282 # When not using gcc, we currently assume that we are using
9283 # Microsoft Visual C++.
9284 # hardcode_libdir_flag_spec is actually meaningless, as there is
9285 # no search path for DLLs.
9286 case $cc_basename in
9287 cl*)
9288 # Native MSVC
9289 hardcode_libdir_flag_spec=' '
9290 allow_undefined_flag=unsupported
9291 always_export_symbols=yes
9292 file_list_spec='@'
9293 # Tell ltmain to make .lib files, not .a files.
9294 libext=lib
9295 # Tell ltmain to make .dll files, not .so files.
9296 shrext_cmds=".dll"
9297 # FIXME: Setting linknames here is a bad hack.
9298 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9299 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9300 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9301 else
9302 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9303 fi~
9304 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9305 linknames='
9306 # The linker will not automatically build a static lib if we build a DLL.
9307 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9308 enable_shared_with_static_runtimes=yes
9309 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9310 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9311 # Don't use ranlib
9312 old_postinstall_cmds='chmod 644 $oldlib'
9313 postlink_cmds='lt_outputfile="@OUTPUT@"~
9314 lt_tool_outputfile="@TOOL_OUTPUT@"~
9315 case $lt_outputfile in
9316 *.exe|*.EXE) ;;
9317 *)
9318 lt_outputfile="$lt_outputfile.exe"
9319 lt_tool_outputfile="$lt_tool_outputfile.exe"
9320 ;;
9321 esac~
9322 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9323 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9324 $RM "$lt_outputfile.manifest";
9325 fi'
9326 ;;
9327 *)
9328 # Assume MSVC wrapper
9329 hardcode_libdir_flag_spec=' '
9330 allow_undefined_flag=unsupported
9331 # Tell ltmain to make .lib files, not .a files.
9332 libext=lib
9333 # Tell ltmain to make .dll files, not .so files.
9334 shrext_cmds=".dll"
9335 # FIXME: Setting linknames here is a bad hack.
9336 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9337 # The linker will automatically build a .lib file if we build a DLL.
9338 old_archive_from_new_cmds='true'
9339 # FIXME: Should let the user specify the lib program.
9340 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9341 enable_shared_with_static_runtimes=yes
9342 ;;
9343 esac
9344 ;;
9345
9346 darwin* | rhapsody*)
9347
9348
9349 archive_cmds_need_lc=no
9350 hardcode_direct=no
9351 hardcode_automatic=yes
9352 hardcode_shlibpath_var=unsupported
9353 if test "$lt_cv_ld_force_load" = "yes"; then
9354 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\"`'
9355
9356 else
9357 whole_archive_flag_spec=''
9358 fi
9359 link_all_deplibs=yes
9360 allow_undefined_flag="$_lt_dar_allow_undefined"
9361 case $cc_basename in
9362 ifort*) _lt_dar_can_shared=yes ;;
9363 *) _lt_dar_can_shared=$GCC ;;
9364 esac
9365 if test "$_lt_dar_can_shared" = "yes"; then
9366 output_verbose_link_cmd=func_echo_all
9367 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9368 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9369 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}"
9370 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}"
9371
9372 else
9373 ld_shlibs=no
9374 fi
9375
9376 ;;
9377
9378 dgux*)
9379 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9380 hardcode_libdir_flag_spec='-L$libdir'
9381 hardcode_shlibpath_var=no
9382 ;;
9383
9384 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9385 # support. Future versions do this automatically, but an explicit c++rt0.o
9386 # does not break anything, and helps significantly (at the cost of a little
9387 # extra space).
9388 freebsd2.2*)
9389 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9390 hardcode_libdir_flag_spec='-R$libdir'
9391 hardcode_direct=yes
9392 hardcode_shlibpath_var=no
9393 ;;
9394
9395 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9396 freebsd2.*)
9397 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9398 hardcode_direct=yes
9399 hardcode_minus_L=yes
9400 hardcode_shlibpath_var=no
9401 ;;
9402
9403 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9404 freebsd* | dragonfly*)
9405 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9406 hardcode_libdir_flag_spec='-R$libdir'
9407 hardcode_direct=yes
9408 hardcode_shlibpath_var=no
9409 ;;
9410
9411 hpux9*)
9412 if test "$GCC" = yes; then
9413 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9414 else
9415 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9416 fi
9417 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9418 hardcode_libdir_separator=:
9419 hardcode_direct=yes
9420
9421 # hardcode_minus_L: Not really in the search PATH,
9422 # but as the default location of the library.
9423 hardcode_minus_L=yes
9424 export_dynamic_flag_spec='${wl}-E'
9425 ;;
9426
9427 hpux10*)
9428 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9429 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9430 else
9431 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9432 fi
9433 if test "$with_gnu_ld" = no; then
9434 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9435 hardcode_libdir_separator=:
9436 hardcode_direct=yes
9437 hardcode_direct_absolute=yes
9438 export_dynamic_flag_spec='${wl}-E'
9439 # hardcode_minus_L: Not really in the search PATH,
9440 # but as the default location of the library.
9441 hardcode_minus_L=yes
9442 fi
9443 ;;
9444
9445 hpux11*)
9446 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9447 case $host_cpu in
9448 hppa*64*)
9449 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9450 ;;
9451 ia64*)
9452 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9453 ;;
9454 *)
9455 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9456 ;;
9457 esac
9458 else
9459 case $host_cpu in
9460 hppa*64*)
9461 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9462 ;;
9463 ia64*)
9464 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9465 ;;
9466 *)
9467
9468 # Older versions of the 11.00 compiler do not understand -b yet
9469 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9471 $as_echo_n "checking if $CC understands -b... " >&6; }
9472 if ${lt_cv_prog_compiler__b+:} false; then :
9473 $as_echo_n "(cached) " >&6
9474 else
9475 lt_cv_prog_compiler__b=no
9476 save_LDFLAGS="$LDFLAGS"
9477 LDFLAGS="$LDFLAGS -b"
9478 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9479 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9480 # The linker can only warn and ignore the option if not recognized
9481 # So say no if there are warnings
9482 if test -s conftest.err; then
9483 # Append any errors to the config.log.
9484 cat conftest.err 1>&5
9485 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9486 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9487 if diff conftest.exp conftest.er2 >/dev/null; then
9488 lt_cv_prog_compiler__b=yes
9489 fi
9490 else
9491 lt_cv_prog_compiler__b=yes
9492 fi
9493 fi
9494 $RM -r conftest*
9495 LDFLAGS="$save_LDFLAGS"
9496
9497 fi
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9499 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9500
9501 if test x"$lt_cv_prog_compiler__b" = xyes; then
9502 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9503 else
9504 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9505 fi
9506
9507 ;;
9508 esac
9509 fi
9510 if test "$with_gnu_ld" = no; then
9511 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9512 hardcode_libdir_separator=:
9513
9514 case $host_cpu in
9515 hppa*64*|ia64*)
9516 hardcode_direct=no
9517 hardcode_shlibpath_var=no
9518 ;;
9519 *)
9520 hardcode_direct=yes
9521 hardcode_direct_absolute=yes
9522 export_dynamic_flag_spec='${wl}-E'
9523
9524 # hardcode_minus_L: Not really in the search PATH,
9525 # but as the default location of the library.
9526 hardcode_minus_L=yes
9527 ;;
9528 esac
9529 fi
9530 ;;
9531
9532 irix5* | irix6* | nonstopux*)
9533 if test "$GCC" = yes; then
9534 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'
9535 # Try to use the -exported_symbol ld option, if it does not
9536 # work, assume that -exports_file does not work either and
9537 # implicitly export all symbols.
9538 # This should be the same for all languages, so no per-tag cache variable.
9539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9540 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9541 if ${lt_cv_irix_exported_symbol+:} false; then :
9542 $as_echo_n "(cached) " >&6
9543 else
9544 save_LDFLAGS="$LDFLAGS"
9545 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9547 /* end confdefs.h. */
9548 int foo (void) { return 0; }
9549 _ACEOF
9550 if ac_fn_c_try_link "$LINENO"; then :
9551 lt_cv_irix_exported_symbol=yes
9552 else
9553 lt_cv_irix_exported_symbol=no
9554 fi
9555 rm -f core conftest.err conftest.$ac_objext \
9556 conftest$ac_exeext conftest.$ac_ext
9557 LDFLAGS="$save_LDFLAGS"
9558 fi
9559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9560 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9561 if test "$lt_cv_irix_exported_symbol" = yes; then
9562 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'
9563 fi
9564 else
9565 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'
9566 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'
9567 fi
9568 archive_cmds_need_lc='no'
9569 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9570 hardcode_libdir_separator=:
9571 inherit_rpath=yes
9572 link_all_deplibs=yes
9573 ;;
9574
9575 netbsd* | netbsdelf*-gnu)
9576 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9577 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9578 else
9579 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9580 fi
9581 hardcode_libdir_flag_spec='-R$libdir'
9582 hardcode_direct=yes
9583 hardcode_shlibpath_var=no
9584 ;;
9585
9586 newsos6)
9587 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9588 hardcode_direct=yes
9589 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9590 hardcode_libdir_separator=:
9591 hardcode_shlibpath_var=no
9592 ;;
9593
9594 *nto* | *qnx*)
9595 ;;
9596
9597 openbsd*)
9598 if test -f /usr/libexec/ld.so; then
9599 hardcode_direct=yes
9600 hardcode_shlibpath_var=no
9601 hardcode_direct_absolute=yes
9602 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9603 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9604 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9605 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9606 export_dynamic_flag_spec='${wl}-E'
9607 else
9608 case $host_os in
9609 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9610 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9611 hardcode_libdir_flag_spec='-R$libdir'
9612 ;;
9613 *)
9614 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9615 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9616 ;;
9617 esac
9618 fi
9619 else
9620 ld_shlibs=no
9621 fi
9622 ;;
9623
9624 os2*)
9625 hardcode_libdir_flag_spec='-L$libdir'
9626 hardcode_minus_L=yes
9627 allow_undefined_flag=unsupported
9628 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9629 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9630 ;;
9631
9632 osf3*)
9633 if test "$GCC" = yes; then
9634 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9635 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'
9636 else
9637 allow_undefined_flag=' -expect_unresolved \*'
9638 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'
9639 fi
9640 archive_cmds_need_lc='no'
9641 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9642 hardcode_libdir_separator=:
9643 ;;
9644
9645 osf4* | osf5*) # as osf3* with the addition of -msym flag
9646 if test "$GCC" = yes; then
9647 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9648 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'
9649 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9650 else
9651 allow_undefined_flag=' -expect_unresolved \*'
9652 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'
9653 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~
9654 $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'
9655
9656 # Both c and cxx compiler support -rpath directly
9657 hardcode_libdir_flag_spec='-rpath $libdir'
9658 fi
9659 archive_cmds_need_lc='no'
9660 hardcode_libdir_separator=:
9661 ;;
9662
9663 solaris*)
9664 no_undefined_flag=' -z defs'
9665 if test "$GCC" = yes; then
9666 wlarc='${wl}'
9667 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9668 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9669 $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'
9670 else
9671 case `$CC -V 2>&1` in
9672 *"Compilers 5.0"*)
9673 wlarc=''
9674 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9675 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9676 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9677 ;;
9678 *)
9679 wlarc='${wl}'
9680 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9681 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9682 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9683 ;;
9684 esac
9685 fi
9686 hardcode_libdir_flag_spec='-R$libdir'
9687 hardcode_shlibpath_var=no
9688 case $host_os in
9689 solaris2.[0-5] | solaris2.[0-5].*) ;;
9690 *)
9691 # The compiler driver will combine and reorder linker options,
9692 # but understands `-z linker_flag'. GCC discards it without `$wl',
9693 # but is careful enough not to reorder.
9694 # Supported since Solaris 2.6 (maybe 2.5.1?)
9695 if test "$GCC" = yes; then
9696 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9697 else
9698 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9699 fi
9700 ;;
9701 esac
9702 link_all_deplibs=yes
9703 ;;
9704
9705 sunos4*)
9706 if test "x$host_vendor" = xsequent; then
9707 # Use $CC to link under sequent, because it throws in some extra .o
9708 # files that make .init and .fini sections work.
9709 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9710 else
9711 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9712 fi
9713 hardcode_libdir_flag_spec='-L$libdir'
9714 hardcode_direct=yes
9715 hardcode_minus_L=yes
9716 hardcode_shlibpath_var=no
9717 ;;
9718
9719 sysv4)
9720 case $host_vendor in
9721 sni)
9722 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9723 hardcode_direct=yes # is this really true???
9724 ;;
9725 siemens)
9726 ## LD is ld it makes a PLAMLIB
9727 ## CC just makes a GrossModule.
9728 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9729 reload_cmds='$CC -r -o $output$reload_objs'
9730 hardcode_direct=no
9731 ;;
9732 motorola)
9733 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9734 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9735 ;;
9736 esac
9737 runpath_var='LD_RUN_PATH'
9738 hardcode_shlibpath_var=no
9739 ;;
9740
9741 sysv4.3*)
9742 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9743 hardcode_shlibpath_var=no
9744 export_dynamic_flag_spec='-Bexport'
9745 ;;
9746
9747 sysv4*MP*)
9748 if test -d /usr/nec; then
9749 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9750 hardcode_shlibpath_var=no
9751 runpath_var=LD_RUN_PATH
9752 hardcode_runpath_var=yes
9753 ld_shlibs=yes
9754 fi
9755 ;;
9756
9757 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9758 no_undefined_flag='${wl}-z,text'
9759 archive_cmds_need_lc=no
9760 hardcode_shlibpath_var=no
9761 runpath_var='LD_RUN_PATH'
9762
9763 if test "$GCC" = yes; then
9764 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9765 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9766 else
9767 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9768 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9769 fi
9770 ;;
9771
9772 sysv5* | sco3.2v5* | sco5v6*)
9773 # Note: We can NOT use -z defs as we might desire, because we do not
9774 # link with -lc, and that would cause any symbols used from libc to
9775 # always be unresolved, which means just about no library would
9776 # ever link correctly. If we're not using GNU ld we use -z text
9777 # though, which does catch some bad symbols but isn't as heavy-handed
9778 # as -z defs.
9779 no_undefined_flag='${wl}-z,text'
9780 allow_undefined_flag='${wl}-z,nodefs'
9781 archive_cmds_need_lc=no
9782 hardcode_shlibpath_var=no
9783 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9784 hardcode_libdir_separator=':'
9785 link_all_deplibs=yes
9786 export_dynamic_flag_spec='${wl}-Bexport'
9787 runpath_var='LD_RUN_PATH'
9788
9789 if test "$GCC" = yes; then
9790 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9791 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9792 else
9793 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9794 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9795 fi
9796 ;;
9797
9798 uts4*)
9799 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9800 hardcode_libdir_flag_spec='-L$libdir'
9801 hardcode_shlibpath_var=no
9802 ;;
9803
9804 *)
9805 ld_shlibs=no
9806 ;;
9807 esac
9808
9809 if test x$host_vendor = xsni; then
9810 case $host in
9811 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9812 export_dynamic_flag_spec='${wl}-Blargedynsym'
9813 ;;
9814 esac
9815 fi
9816 fi
9817
9818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9819 $as_echo "$ld_shlibs" >&6; }
9820 test "$ld_shlibs" = no && can_build_shared=no
9821
9822 with_gnu_ld=$with_gnu_ld
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838 #
9839 # Do we need to explicitly link libc?
9840 #
9841 case "x$archive_cmds_need_lc" in
9842 x|xyes)
9843 # Assume -lc should be added
9844 archive_cmds_need_lc=yes
9845
9846 if test "$enable_shared" = yes && test "$GCC" = yes; then
9847 case $archive_cmds in
9848 *'~'*)
9849 # FIXME: we may have to deal with multi-command sequences.
9850 ;;
9851 '$CC '*)
9852 # Test whether the compiler implicitly links with -lc since on some
9853 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9854 # to ld, don't add -lc before -lgcc.
9855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9856 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9857 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9858 $as_echo_n "(cached) " >&6
9859 else
9860 $RM conftest*
9861 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9862
9863 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9864 (eval $ac_compile) 2>&5
9865 ac_status=$?
9866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9867 test $ac_status = 0; } 2>conftest.err; then
9868 soname=conftest
9869 lib=conftest
9870 libobjs=conftest.$ac_objext
9871 deplibs=
9872 wl=$lt_prog_compiler_wl
9873 pic_flag=$lt_prog_compiler_pic
9874 compiler_flags=-v
9875 linker_flags=-v
9876 verstring=
9877 output_objdir=.
9878 libname=conftest
9879 lt_save_allow_undefined_flag=$allow_undefined_flag
9880 allow_undefined_flag=
9881 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9882 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9883 ac_status=$?
9884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9885 test $ac_status = 0; }
9886 then
9887 lt_cv_archive_cmds_need_lc=no
9888 else
9889 lt_cv_archive_cmds_need_lc=yes
9890 fi
9891 allow_undefined_flag=$lt_save_allow_undefined_flag
9892 else
9893 cat conftest.err 1>&5
9894 fi
9895 $RM conftest*
9896
9897 fi
9898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9899 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9900 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9901 ;;
9902 esac
9903 fi
9904 ;;
9905 esac
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10059 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10060
10061 if test "$GCC" = yes; then
10062 case $host_os in
10063 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10064 *) lt_awk_arg="/^libraries:/" ;;
10065 esac
10066 case $host_os in
10067 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10068 *) lt_sed_strip_eq="s,=/,/,g" ;;
10069 esac
10070 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10071 case $lt_search_path_spec in
10072 *\;*)
10073 # if the path contains ";" then we assume it to be the separator
10074 # otherwise default to the standard path separator (i.e. ":") - it is
10075 # assumed that no part of a normal pathname contains ";" but that should
10076 # okay in the real world where ";" in dirpaths is itself problematic.
10077 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10078 ;;
10079 *)
10080 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10081 ;;
10082 esac
10083 # Ok, now we have the path, separated by spaces, we can step through it
10084 # and add multilib dir if necessary.
10085 lt_tmp_lt_search_path_spec=
10086 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10087 for lt_sys_path in $lt_search_path_spec; do
10088 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10089 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10090 else
10091 test -d "$lt_sys_path" && \
10092 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10093 fi
10094 done
10095 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10096 BEGIN {RS=" "; FS="/|\n";} {
10097 lt_foo="";
10098 lt_count=0;
10099 for (lt_i = NF; lt_i > 0; lt_i--) {
10100 if ($lt_i != "" && $lt_i != ".") {
10101 if ($lt_i == "..") {
10102 lt_count++;
10103 } else {
10104 if (lt_count == 0) {
10105 lt_foo="/" $lt_i lt_foo;
10106 } else {
10107 lt_count--;
10108 }
10109 }
10110 }
10111 }
10112 if (lt_foo != "") { lt_freq[lt_foo]++; }
10113 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10114 }'`
10115 # AWK program above erroneously prepends '/' to C:/dos/paths
10116 # for these hosts.
10117 case $host_os in
10118 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10119 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10120 esac
10121 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10122 else
10123 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10124 fi
10125 library_names_spec=
10126 libname_spec='lib$name'
10127 soname_spec=
10128 shrext_cmds=".so"
10129 postinstall_cmds=
10130 postuninstall_cmds=
10131 finish_cmds=
10132 finish_eval=
10133 shlibpath_var=
10134 shlibpath_overrides_runpath=unknown
10135 version_type=none
10136 dynamic_linker="$host_os ld.so"
10137 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10138 need_lib_prefix=unknown
10139 hardcode_into_libs=no
10140
10141 # when you set need_version to no, make sure it does not cause -set_version
10142 # flags to be left without arguments
10143 need_version=unknown
10144
10145 case $host_os in
10146 aix3*)
10147 version_type=linux # correct to gnu/linux during the next big refactor
10148 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10149 shlibpath_var=LIBPATH
10150
10151 # AIX 3 has no versioning support, so we append a major version to the name.
10152 soname_spec='${libname}${release}${shared_ext}$major'
10153 ;;
10154
10155 aix[4-9]*)
10156 version_type=linux # correct to gnu/linux during the next big refactor
10157 need_lib_prefix=no
10158 need_version=no
10159 hardcode_into_libs=yes
10160 if test "$host_cpu" = ia64; then
10161 # AIX 5 supports IA64
10162 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10163 shlibpath_var=LD_LIBRARY_PATH
10164 else
10165 # With GCC up to 2.95.x, collect2 would create an import file
10166 # for dependence libraries. The import file would start with
10167 # the line `#! .'. This would cause the generated library to
10168 # depend on `.', always an invalid library. This was fixed in
10169 # development snapshots of GCC prior to 3.0.
10170 case $host_os in
10171 aix4 | aix4.[01] | aix4.[01].*)
10172 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10173 echo ' yes '
10174 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10175 :
10176 else
10177 can_build_shared=no
10178 fi
10179 ;;
10180 esac
10181 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10182 # soname into executable. Probably we can add versioning support to
10183 # collect2, so additional links can be useful in future.
10184 if test "$aix_use_runtimelinking" = yes; then
10185 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10186 # instead of lib<name>.a to let people know that these are not
10187 # typical AIX shared libraries.
10188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10189 else
10190 # We preserve .a as extension for shared libraries through AIX4.2
10191 # and later when we are not doing run time linking.
10192 library_names_spec='${libname}${release}.a $libname.a'
10193 soname_spec='${libname}${release}${shared_ext}$major'
10194 fi
10195 shlibpath_var=LIBPATH
10196 fi
10197 ;;
10198
10199 amigaos*)
10200 case $host_cpu in
10201 powerpc)
10202 # Since July 2007 AmigaOS4 officially supports .so libraries.
10203 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10205 ;;
10206 m68k)
10207 library_names_spec='$libname.ixlibrary $libname.a'
10208 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10209 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
10210 ;;
10211 esac
10212 ;;
10213
10214 beos*)
10215 library_names_spec='${libname}${shared_ext}'
10216 dynamic_linker="$host_os ld.so"
10217 shlibpath_var=LIBRARY_PATH
10218 ;;
10219
10220 bsdi[45]*)
10221 version_type=linux # correct to gnu/linux during the next big refactor
10222 need_version=no
10223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10224 soname_spec='${libname}${release}${shared_ext}$major'
10225 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10226 shlibpath_var=LD_LIBRARY_PATH
10227 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10228 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10229 # the default ld.so.conf also contains /usr/contrib/lib and
10230 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10231 # libtool to hard-code these into programs
10232 ;;
10233
10234 cygwin* | mingw* | pw32* | cegcc*)
10235 version_type=windows
10236 shrext_cmds=".dll"
10237 need_version=no
10238 need_lib_prefix=no
10239
10240 case $GCC,$cc_basename in
10241 yes,*)
10242 # gcc
10243 library_names_spec='$libname.dll.a'
10244 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10245 postinstall_cmds='base_file=`basename \${file}`~
10246 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10247 dldir=$destdir/`dirname \$dlpath`~
10248 test -d \$dldir || mkdir -p \$dldir~
10249 $install_prog $dir/$dlname \$dldir/$dlname~
10250 chmod a+x \$dldir/$dlname~
10251 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10252 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10253 fi'
10254 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10255 dlpath=$dir/\$dldll~
10256 $RM \$dlpath'
10257 shlibpath_overrides_runpath=yes
10258
10259 case $host_os in
10260 cygwin*)
10261 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10262 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10263
10264 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10265 ;;
10266 mingw* | cegcc*)
10267 # MinGW DLLs use traditional 'lib' prefix
10268 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10269 ;;
10270 pw32*)
10271 # pw32 DLLs use 'pw' prefix rather than 'lib'
10272 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10273 ;;
10274 esac
10275 dynamic_linker='Win32 ld.exe'
10276 ;;
10277
10278 *,cl*)
10279 # Native MSVC
10280 libname_spec='$name'
10281 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10282 library_names_spec='${libname}.dll.lib'
10283
10284 case $build_os in
10285 mingw*)
10286 sys_lib_search_path_spec=
10287 lt_save_ifs=$IFS
10288 IFS=';'
10289 for lt_path in $LIB
10290 do
10291 IFS=$lt_save_ifs
10292 # Let DOS variable expansion print the short 8.3 style file name.
10293 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10294 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10295 done
10296 IFS=$lt_save_ifs
10297 # Convert to MSYS style.
10298 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10299 ;;
10300 cygwin*)
10301 # Convert to unix form, then to dos form, then back to unix form
10302 # but this time dos style (no spaces!) so that the unix form looks
10303 # like /cygdrive/c/PROGRA~1:/cygdr...
10304 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10305 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10306 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10307 ;;
10308 *)
10309 sys_lib_search_path_spec="$LIB"
10310 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10311 # It is most probably a Windows format PATH.
10312 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10313 else
10314 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10315 fi
10316 # FIXME: find the short name or the path components, as spaces are
10317 # common. (e.g. "Program Files" -> "PROGRA~1")
10318 ;;
10319 esac
10320
10321 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10322 postinstall_cmds='base_file=`basename \${file}`~
10323 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10324 dldir=$destdir/`dirname \$dlpath`~
10325 test -d \$dldir || mkdir -p \$dldir~
10326 $install_prog $dir/$dlname \$dldir/$dlname'
10327 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10328 dlpath=$dir/\$dldll~
10329 $RM \$dlpath'
10330 shlibpath_overrides_runpath=yes
10331 dynamic_linker='Win32 link.exe'
10332 ;;
10333
10334 *)
10335 # Assume MSVC wrapper
10336 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10337 dynamic_linker='Win32 ld.exe'
10338 ;;
10339 esac
10340 # FIXME: first we should search . and the directory the executable is in
10341 shlibpath_var=PATH
10342 ;;
10343
10344 darwin* | rhapsody*)
10345 dynamic_linker="$host_os dyld"
10346 version_type=darwin
10347 need_lib_prefix=no
10348 need_version=no
10349 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10350 soname_spec='${libname}${release}${major}$shared_ext'
10351 shlibpath_overrides_runpath=yes
10352 shlibpath_var=DYLD_LIBRARY_PATH
10353 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10354
10355 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10356 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10357 ;;
10358
10359 dgux*)
10360 version_type=linux # correct to gnu/linux during the next big refactor
10361 need_lib_prefix=no
10362 need_version=no
10363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10364 soname_spec='${libname}${release}${shared_ext}$major'
10365 shlibpath_var=LD_LIBRARY_PATH
10366 ;;
10367
10368 freebsd* | dragonfly*)
10369 # DragonFly does not have aout. When/if they implement a new
10370 # versioning mechanism, adjust this.
10371 if test -x /usr/bin/objformat; then
10372 objformat=`/usr/bin/objformat`
10373 else
10374 case $host_os in
10375 freebsd[23].*) objformat=aout ;;
10376 *) objformat=elf ;;
10377 esac
10378 fi
10379 version_type=freebsd-$objformat
10380 case $version_type in
10381 freebsd-elf*)
10382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10383 need_version=no
10384 need_lib_prefix=no
10385 ;;
10386 freebsd-*)
10387 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10388 need_version=yes
10389 ;;
10390 esac
10391 shlibpath_var=LD_LIBRARY_PATH
10392 case $host_os in
10393 freebsd2.*)
10394 shlibpath_overrides_runpath=yes
10395 ;;
10396 freebsd3.[01]* | freebsdelf3.[01]*)
10397 shlibpath_overrides_runpath=yes
10398 hardcode_into_libs=yes
10399 ;;
10400 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10401 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10402 shlibpath_overrides_runpath=no
10403 hardcode_into_libs=yes
10404 ;;
10405 *) # from 4.6 on, and DragonFly
10406 shlibpath_overrides_runpath=yes
10407 hardcode_into_libs=yes
10408 ;;
10409 esac
10410 ;;
10411
10412 haiku*)
10413 version_type=linux # correct to gnu/linux during the next big refactor
10414 need_lib_prefix=no
10415 need_version=no
10416 dynamic_linker="$host_os runtime_loader"
10417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10418 soname_spec='${libname}${release}${shared_ext}$major'
10419 shlibpath_var=LIBRARY_PATH
10420 shlibpath_overrides_runpath=yes
10421 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10422 hardcode_into_libs=yes
10423 ;;
10424
10425 hpux9* | hpux10* | hpux11*)
10426 # Give a soname corresponding to the major version so that dld.sl refuses to
10427 # link against other versions.
10428 version_type=sunos
10429 need_lib_prefix=no
10430 need_version=no
10431 case $host_cpu in
10432 ia64*)
10433 shrext_cmds='.so'
10434 hardcode_into_libs=yes
10435 dynamic_linker="$host_os dld.so"
10436 shlibpath_var=LD_LIBRARY_PATH
10437 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10439 soname_spec='${libname}${release}${shared_ext}$major'
10440 if test "X$HPUX_IA64_MODE" = X32; then
10441 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10442 else
10443 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10444 fi
10445 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10446 ;;
10447 hppa*64*)
10448 shrext_cmds='.sl'
10449 hardcode_into_libs=yes
10450 dynamic_linker="$host_os dld.sl"
10451 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10452 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10454 soname_spec='${libname}${release}${shared_ext}$major'
10455 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10456 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10457 ;;
10458 *)
10459 shrext_cmds='.sl'
10460 dynamic_linker="$host_os dld.sl"
10461 shlibpath_var=SHLIB_PATH
10462 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10464 soname_spec='${libname}${release}${shared_ext}$major'
10465 ;;
10466 esac
10467 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10468 postinstall_cmds='chmod 555 $lib'
10469 # or fails outright, so override atomically:
10470 install_override_mode=555
10471 ;;
10472
10473 interix[3-9]*)
10474 version_type=linux # correct to gnu/linux during the next big refactor
10475 need_lib_prefix=no
10476 need_version=no
10477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10478 soname_spec='${libname}${release}${shared_ext}$major'
10479 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10480 shlibpath_var=LD_LIBRARY_PATH
10481 shlibpath_overrides_runpath=no
10482 hardcode_into_libs=yes
10483 ;;
10484
10485 irix5* | irix6* | nonstopux*)
10486 case $host_os in
10487 nonstopux*) version_type=nonstopux ;;
10488 *)
10489 if test "$lt_cv_prog_gnu_ld" = yes; then
10490 version_type=linux # correct to gnu/linux during the next big refactor
10491 else
10492 version_type=irix
10493 fi ;;
10494 esac
10495 need_lib_prefix=no
10496 need_version=no
10497 soname_spec='${libname}${release}${shared_ext}$major'
10498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10499 case $host_os in
10500 irix5* | nonstopux*)
10501 libsuff= shlibsuff=
10502 ;;
10503 *)
10504 case $LD in # libtool.m4 will add one of these switches to LD
10505 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10506 libsuff= shlibsuff= libmagic=32-bit;;
10507 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10508 libsuff=32 shlibsuff=N32 libmagic=N32;;
10509 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10510 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10511 *) libsuff= shlibsuff= libmagic=never-match;;
10512 esac
10513 ;;
10514 esac
10515 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10516 shlibpath_overrides_runpath=no
10517 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10518 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10519 hardcode_into_libs=yes
10520 ;;
10521
10522 # No shared lib support for Linux oldld, aout, or coff.
10523 linux*oldld* | linux*aout* | linux*coff*)
10524 dynamic_linker=no
10525 ;;
10526
10527 # This must be glibc/ELF.
10528 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10529 version_type=linux # correct to gnu/linux during the next big refactor
10530 need_lib_prefix=no
10531 need_version=no
10532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10533 soname_spec='${libname}${release}${shared_ext}$major'
10534 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10535 shlibpath_var=LD_LIBRARY_PATH
10536 shlibpath_overrides_runpath=no
10537
10538 # Some binutils ld are patched to set DT_RUNPATH
10539 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10540 $as_echo_n "(cached) " >&6
10541 else
10542 lt_cv_shlibpath_overrides_runpath=no
10543 save_LDFLAGS=$LDFLAGS
10544 save_libdir=$libdir
10545 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10546 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10548 /* end confdefs.h. */
10549
10550 int
10551 main ()
10552 {
10553
10554 ;
10555 return 0;
10556 }
10557 _ACEOF
10558 if ac_fn_c_try_link "$LINENO"; then :
10559 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10560 lt_cv_shlibpath_overrides_runpath=yes
10561 fi
10562 fi
10563 rm -f core conftest.err conftest.$ac_objext \
10564 conftest$ac_exeext conftest.$ac_ext
10565 LDFLAGS=$save_LDFLAGS
10566 libdir=$save_libdir
10567
10568 fi
10569
10570 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10571
10572 # This implies no fast_install, which is unacceptable.
10573 # Some rework will be needed to allow for fast_install
10574 # before this can be enabled.
10575 hardcode_into_libs=yes
10576
10577 # Append ld.so.conf contents to the search path
10578 if test -f /etc/ld.so.conf; then
10579 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' ' '`
10580 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10581 fi
10582
10583 # We used to test for /lib/ld.so.1 and disable shared libraries on
10584 # powerpc, because MkLinux only supported shared libraries with the
10585 # GNU dynamic linker. Since this was broken with cross compilers,
10586 # most powerpc-linux boxes support dynamic linking these days and
10587 # people can always --disable-shared, the test was removed, and we
10588 # assume the GNU/Linux dynamic linker is in use.
10589 dynamic_linker='GNU/Linux ld.so'
10590 ;;
10591
10592 netbsdelf*-gnu)
10593 version_type=linux
10594 need_lib_prefix=no
10595 need_version=no
10596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10597 soname_spec='${libname}${release}${shared_ext}$major'
10598 shlibpath_var=LD_LIBRARY_PATH
10599 shlibpath_overrides_runpath=no
10600 hardcode_into_libs=yes
10601 dynamic_linker='NetBSD ld.elf_so'
10602 ;;
10603
10604 netbsd*)
10605 version_type=sunos
10606 need_lib_prefix=no
10607 need_version=no
10608 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10610 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10611 dynamic_linker='NetBSD (a.out) ld.so'
10612 else
10613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10614 soname_spec='${libname}${release}${shared_ext}$major'
10615 dynamic_linker='NetBSD ld.elf_so'
10616 fi
10617 shlibpath_var=LD_LIBRARY_PATH
10618 shlibpath_overrides_runpath=yes
10619 hardcode_into_libs=yes
10620 ;;
10621
10622 newsos6)
10623 version_type=linux # correct to gnu/linux during the next big refactor
10624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10625 shlibpath_var=LD_LIBRARY_PATH
10626 shlibpath_overrides_runpath=yes
10627 ;;
10628
10629 *nto* | *qnx*)
10630 version_type=qnx
10631 need_lib_prefix=no
10632 need_version=no
10633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10634 soname_spec='${libname}${release}${shared_ext}$major'
10635 shlibpath_var=LD_LIBRARY_PATH
10636 shlibpath_overrides_runpath=no
10637 hardcode_into_libs=yes
10638 dynamic_linker='ldqnx.so'
10639 ;;
10640
10641 openbsd*)
10642 version_type=sunos
10643 sys_lib_dlsearch_path_spec="/usr/lib"
10644 need_lib_prefix=no
10645 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10646 case $host_os in
10647 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10648 *) need_version=no ;;
10649 esac
10650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10651 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10652 shlibpath_var=LD_LIBRARY_PATH
10653 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10654 case $host_os in
10655 openbsd2.[89] | openbsd2.[89].*)
10656 shlibpath_overrides_runpath=no
10657 ;;
10658 *)
10659 shlibpath_overrides_runpath=yes
10660 ;;
10661 esac
10662 else
10663 shlibpath_overrides_runpath=yes
10664 fi
10665 ;;
10666
10667 os2*)
10668 libname_spec='$name'
10669 shrext_cmds=".dll"
10670 need_lib_prefix=no
10671 library_names_spec='$libname${shared_ext} $libname.a'
10672 dynamic_linker='OS/2 ld.exe'
10673 shlibpath_var=LIBPATH
10674 ;;
10675
10676 osf3* | osf4* | osf5*)
10677 version_type=osf
10678 need_lib_prefix=no
10679 need_version=no
10680 soname_spec='${libname}${release}${shared_ext}$major'
10681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10682 shlibpath_var=LD_LIBRARY_PATH
10683 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10684 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10685 ;;
10686
10687 rdos*)
10688 dynamic_linker=no
10689 ;;
10690
10691 solaris*)
10692 version_type=linux # correct to gnu/linux during the next big refactor
10693 need_lib_prefix=no
10694 need_version=no
10695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10696 soname_spec='${libname}${release}${shared_ext}$major'
10697 shlibpath_var=LD_LIBRARY_PATH
10698 shlibpath_overrides_runpath=yes
10699 hardcode_into_libs=yes
10700 # ldd complains unless libraries are executable
10701 postinstall_cmds='chmod +x $lib'
10702 ;;
10703
10704 sunos4*)
10705 version_type=sunos
10706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10707 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10708 shlibpath_var=LD_LIBRARY_PATH
10709 shlibpath_overrides_runpath=yes
10710 if test "$with_gnu_ld" = yes; then
10711 need_lib_prefix=no
10712 fi
10713 need_version=yes
10714 ;;
10715
10716 sysv4 | sysv4.3*)
10717 version_type=linux # correct to gnu/linux during the next big refactor
10718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10719 soname_spec='${libname}${release}${shared_ext}$major'
10720 shlibpath_var=LD_LIBRARY_PATH
10721 case $host_vendor in
10722 sni)
10723 shlibpath_overrides_runpath=no
10724 need_lib_prefix=no
10725 runpath_var=LD_RUN_PATH
10726 ;;
10727 siemens)
10728 need_lib_prefix=no
10729 ;;
10730 motorola)
10731 need_lib_prefix=no
10732 need_version=no
10733 shlibpath_overrides_runpath=no
10734 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10735 ;;
10736 esac
10737 ;;
10738
10739 sysv4*MP*)
10740 if test -d /usr/nec ;then
10741 version_type=linux # correct to gnu/linux during the next big refactor
10742 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10743 soname_spec='$libname${shared_ext}.$major'
10744 shlibpath_var=LD_LIBRARY_PATH
10745 fi
10746 ;;
10747
10748 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10749 version_type=freebsd-elf
10750 need_lib_prefix=no
10751 need_version=no
10752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10753 soname_spec='${libname}${release}${shared_ext}$major'
10754 shlibpath_var=LD_LIBRARY_PATH
10755 shlibpath_overrides_runpath=yes
10756 hardcode_into_libs=yes
10757 if test "$with_gnu_ld" = yes; then
10758 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10759 else
10760 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10761 case $host_os in
10762 sco3.2v5*)
10763 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10764 ;;
10765 esac
10766 fi
10767 sys_lib_dlsearch_path_spec='/usr/lib'
10768 ;;
10769
10770 tpf*)
10771 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10772 version_type=linux # correct to gnu/linux during the next big refactor
10773 need_lib_prefix=no
10774 need_version=no
10775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10776 shlibpath_var=LD_LIBRARY_PATH
10777 shlibpath_overrides_runpath=no
10778 hardcode_into_libs=yes
10779 ;;
10780
10781 uts4*)
10782 version_type=linux # correct to gnu/linux during the next big refactor
10783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10784 soname_spec='${libname}${release}${shared_ext}$major'
10785 shlibpath_var=LD_LIBRARY_PATH
10786 ;;
10787
10788 *)
10789 dynamic_linker=no
10790 ;;
10791 esac
10792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10793 $as_echo "$dynamic_linker" >&6; }
10794 test "$dynamic_linker" = no && can_build_shared=no
10795
10796 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10797 if test "$GCC" = yes; then
10798 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10799 fi
10800
10801 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10802 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10803 fi
10804 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10805 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10806 fi
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10900 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10901 hardcode_action=
10902 if test -n "$hardcode_libdir_flag_spec" ||
10903 test -n "$runpath_var" ||
10904 test "X$hardcode_automatic" = "Xyes" ; then
10905
10906 # We can hardcode non-existent directories.
10907 if test "$hardcode_direct" != no &&
10908 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10909 # have to relink, otherwise we might link with an installed library
10910 # when we should be linking with a yet-to-be-installed one
10911 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10912 test "$hardcode_minus_L" != no; then
10913 # Linking always hardcodes the temporary library directory.
10914 hardcode_action=relink
10915 else
10916 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10917 hardcode_action=immediate
10918 fi
10919 else
10920 # We cannot hardcode anything, or else we can only hardcode existing
10921 # directories.
10922 hardcode_action=unsupported
10923 fi
10924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10925 $as_echo "$hardcode_action" >&6; }
10926
10927 if test "$hardcode_action" = relink ||
10928 test "$inherit_rpath" = yes; then
10929 # Fast installation is not supported
10930 enable_fast_install=no
10931 elif test "$shlibpath_overrides_runpath" = yes ||
10932 test "$enable_shared" = no; then
10933 # Fast installation is not necessary
10934 enable_fast_install=needless
10935 fi
10936
10937
10938
10939
10940
10941
10942 if test "x$enable_dlopen" != xyes; then
10943 enable_dlopen=unknown
10944 enable_dlopen_self=unknown
10945 enable_dlopen_self_static=unknown
10946 else
10947 lt_cv_dlopen=no
10948 lt_cv_dlopen_libs=
10949
10950 case $host_os in
10951 beos*)
10952 lt_cv_dlopen="load_add_on"
10953 lt_cv_dlopen_libs=
10954 lt_cv_dlopen_self=yes
10955 ;;
10956
10957 mingw* | pw32* | cegcc*)
10958 lt_cv_dlopen="LoadLibrary"
10959 lt_cv_dlopen_libs=
10960 ;;
10961
10962 cygwin*)
10963 lt_cv_dlopen="dlopen"
10964 lt_cv_dlopen_libs=
10965 ;;
10966
10967 darwin*)
10968 # if libdl is installed we need to link against it
10969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10970 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10971 if ${ac_cv_lib_dl_dlopen+:} false; then :
10972 $as_echo_n "(cached) " >&6
10973 else
10974 ac_check_lib_save_LIBS=$LIBS
10975 LIBS="-ldl $LIBS"
10976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10977 /* end confdefs.h. */
10978
10979 /* Override any GCC internal prototype to avoid an error.
10980 Use char because int might match the return type of a GCC
10981 builtin and then its argument prototype would still apply. */
10982 #ifdef __cplusplus
10983 extern "C"
10984 #endif
10985 char dlopen ();
10986 int
10987 main ()
10988 {
10989 return dlopen ();
10990 ;
10991 return 0;
10992 }
10993 _ACEOF
10994 if ac_fn_c_try_link "$LINENO"; then :
10995 ac_cv_lib_dl_dlopen=yes
10996 else
10997 ac_cv_lib_dl_dlopen=no
10998 fi
10999 rm -f core conftest.err conftest.$ac_objext \
11000 conftest$ac_exeext conftest.$ac_ext
11001 LIBS=$ac_check_lib_save_LIBS
11002 fi
11003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11004 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11005 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11006 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11007 else
11008
11009 lt_cv_dlopen="dyld"
11010 lt_cv_dlopen_libs=
11011 lt_cv_dlopen_self=yes
11012
11013 fi
11014
11015 ;;
11016
11017 *)
11018 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11019 if test "x$ac_cv_func_shl_load" = xyes; then :
11020 lt_cv_dlopen="shl_load"
11021 else
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11023 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11024 if ${ac_cv_lib_dld_shl_load+:} false; then :
11025 $as_echo_n "(cached) " >&6
11026 else
11027 ac_check_lib_save_LIBS=$LIBS
11028 LIBS="-ldld $LIBS"
11029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11030 /* end confdefs.h. */
11031
11032 /* Override any GCC internal prototype to avoid an error.
11033 Use char because int might match the return type of a GCC
11034 builtin and then its argument prototype would still apply. */
11035 #ifdef __cplusplus
11036 extern "C"
11037 #endif
11038 char shl_load ();
11039 int
11040 main ()
11041 {
11042 return shl_load ();
11043 ;
11044 return 0;
11045 }
11046 _ACEOF
11047 if ac_fn_c_try_link "$LINENO"; then :
11048 ac_cv_lib_dld_shl_load=yes
11049 else
11050 ac_cv_lib_dld_shl_load=no
11051 fi
11052 rm -f core conftest.err conftest.$ac_objext \
11053 conftest$ac_exeext conftest.$ac_ext
11054 LIBS=$ac_check_lib_save_LIBS
11055 fi
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11057 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11058 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11059 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11060 else
11061 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11062 if test "x$ac_cv_func_dlopen" = xyes; then :
11063 lt_cv_dlopen="dlopen"
11064 else
11065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11066 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11067 if ${ac_cv_lib_dl_dlopen+:} false; then :
11068 $as_echo_n "(cached) " >&6
11069 else
11070 ac_check_lib_save_LIBS=$LIBS
11071 LIBS="-ldl $LIBS"
11072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11073 /* end confdefs.h. */
11074
11075 /* Override any GCC internal prototype to avoid an error.
11076 Use char because int might match the return type of a GCC
11077 builtin and then its argument prototype would still apply. */
11078 #ifdef __cplusplus
11079 extern "C"
11080 #endif
11081 char dlopen ();
11082 int
11083 main ()
11084 {
11085 return dlopen ();
11086 ;
11087 return 0;
11088 }
11089 _ACEOF
11090 if ac_fn_c_try_link "$LINENO"; then :
11091 ac_cv_lib_dl_dlopen=yes
11092 else
11093 ac_cv_lib_dl_dlopen=no
11094 fi
11095 rm -f core conftest.err conftest.$ac_objext \
11096 conftest$ac_exeext conftest.$ac_ext
11097 LIBS=$ac_check_lib_save_LIBS
11098 fi
11099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11100 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11101 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11102 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11103 else
11104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11105 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11106 if ${ac_cv_lib_svld_dlopen+:} false; then :
11107 $as_echo_n "(cached) " >&6
11108 else
11109 ac_check_lib_save_LIBS=$LIBS
11110 LIBS="-lsvld $LIBS"
11111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11112 /* end confdefs.h. */
11113
11114 /* Override any GCC internal prototype to avoid an error.
11115 Use char because int might match the return type of a GCC
11116 builtin and then its argument prototype would still apply. */
11117 #ifdef __cplusplus
11118 extern "C"
11119 #endif
11120 char dlopen ();
11121 int
11122 main ()
11123 {
11124 return dlopen ();
11125 ;
11126 return 0;
11127 }
11128 _ACEOF
11129 if ac_fn_c_try_link "$LINENO"; then :
11130 ac_cv_lib_svld_dlopen=yes
11131 else
11132 ac_cv_lib_svld_dlopen=no
11133 fi
11134 rm -f core conftest.err conftest.$ac_objext \
11135 conftest$ac_exeext conftest.$ac_ext
11136 LIBS=$ac_check_lib_save_LIBS
11137 fi
11138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11139 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11140 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11141 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11142 else
11143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11144 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11145 if ${ac_cv_lib_dld_dld_link+:} false; then :
11146 $as_echo_n "(cached) " >&6
11147 else
11148 ac_check_lib_save_LIBS=$LIBS
11149 LIBS="-ldld $LIBS"
11150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11151 /* end confdefs.h. */
11152
11153 /* Override any GCC internal prototype to avoid an error.
11154 Use char because int might match the return type of a GCC
11155 builtin and then its argument prototype would still apply. */
11156 #ifdef __cplusplus
11157 extern "C"
11158 #endif
11159 char dld_link ();
11160 int
11161 main ()
11162 {
11163 return dld_link ();
11164 ;
11165 return 0;
11166 }
11167 _ACEOF
11168 if ac_fn_c_try_link "$LINENO"; then :
11169 ac_cv_lib_dld_dld_link=yes
11170 else
11171 ac_cv_lib_dld_dld_link=no
11172 fi
11173 rm -f core conftest.err conftest.$ac_objext \
11174 conftest$ac_exeext conftest.$ac_ext
11175 LIBS=$ac_check_lib_save_LIBS
11176 fi
11177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11178 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11179 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11180 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11181 fi
11182
11183
11184 fi
11185
11186
11187 fi
11188
11189
11190 fi
11191
11192
11193 fi
11194
11195
11196 fi
11197
11198 ;;
11199 esac
11200
11201 if test "x$lt_cv_dlopen" != xno; then
11202 enable_dlopen=yes
11203 else
11204 enable_dlopen=no
11205 fi
11206
11207 case $lt_cv_dlopen in
11208 dlopen)
11209 save_CPPFLAGS="$CPPFLAGS"
11210 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11211
11212 save_LDFLAGS="$LDFLAGS"
11213 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11214
11215 save_LIBS="$LIBS"
11216 LIBS="$lt_cv_dlopen_libs $LIBS"
11217
11218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11219 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11220 if ${lt_cv_dlopen_self+:} false; then :
11221 $as_echo_n "(cached) " >&6
11222 else
11223 if test "$cross_compiling" = yes; then :
11224 lt_cv_dlopen_self=cross
11225 else
11226 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11227 lt_status=$lt_dlunknown
11228 cat > conftest.$ac_ext <<_LT_EOF
11229 #line $LINENO "configure"
11230 #include "confdefs.h"
11231
11232 #if HAVE_DLFCN_H
11233 #include <dlfcn.h>
11234 #endif
11235
11236 #include <stdio.h>
11237
11238 #ifdef RTLD_GLOBAL
11239 # define LT_DLGLOBAL RTLD_GLOBAL
11240 #else
11241 # ifdef DL_GLOBAL
11242 # define LT_DLGLOBAL DL_GLOBAL
11243 # else
11244 # define LT_DLGLOBAL 0
11245 # endif
11246 #endif
11247
11248 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11249 find out it does not work in some platform. */
11250 #ifndef LT_DLLAZY_OR_NOW
11251 # ifdef RTLD_LAZY
11252 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11253 # else
11254 # ifdef DL_LAZY
11255 # define LT_DLLAZY_OR_NOW DL_LAZY
11256 # else
11257 # ifdef RTLD_NOW
11258 # define LT_DLLAZY_OR_NOW RTLD_NOW
11259 # else
11260 # ifdef DL_NOW
11261 # define LT_DLLAZY_OR_NOW DL_NOW
11262 # else
11263 # define LT_DLLAZY_OR_NOW 0
11264 # endif
11265 # endif
11266 # endif
11267 # endif
11268 #endif
11269
11270 /* When -fvisbility=hidden is used, assume the code has been annotated
11271 correspondingly for the symbols needed. */
11272 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11273 int fnord () __attribute__((visibility("default")));
11274 #endif
11275
11276 int fnord () { return 42; }
11277 int main ()
11278 {
11279 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11280 int status = $lt_dlunknown;
11281
11282 if (self)
11283 {
11284 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11285 else
11286 {
11287 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11288 else puts (dlerror ());
11289 }
11290 /* dlclose (self); */
11291 }
11292 else
11293 puts (dlerror ());
11294
11295 return status;
11296 }
11297 _LT_EOF
11298 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11299 (eval $ac_link) 2>&5
11300 ac_status=$?
11301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11302 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11303 (./conftest; exit; ) >&5 2>/dev/null
11304 lt_status=$?
11305 case x$lt_status in
11306 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11307 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11308 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11309 esac
11310 else :
11311 # compilation failed
11312 lt_cv_dlopen_self=no
11313 fi
11314 fi
11315 rm -fr conftest*
11316
11317
11318 fi
11319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11320 $as_echo "$lt_cv_dlopen_self" >&6; }
11321
11322 if test "x$lt_cv_dlopen_self" = xyes; then
11323 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11325 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11326 if ${lt_cv_dlopen_self_static+:} false; then :
11327 $as_echo_n "(cached) " >&6
11328 else
11329 if test "$cross_compiling" = yes; then :
11330 lt_cv_dlopen_self_static=cross
11331 else
11332 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11333 lt_status=$lt_dlunknown
11334 cat > conftest.$ac_ext <<_LT_EOF
11335 #line $LINENO "configure"
11336 #include "confdefs.h"
11337
11338 #if HAVE_DLFCN_H
11339 #include <dlfcn.h>
11340 #endif
11341
11342 #include <stdio.h>
11343
11344 #ifdef RTLD_GLOBAL
11345 # define LT_DLGLOBAL RTLD_GLOBAL
11346 #else
11347 # ifdef DL_GLOBAL
11348 # define LT_DLGLOBAL DL_GLOBAL
11349 # else
11350 # define LT_DLGLOBAL 0
11351 # endif
11352 #endif
11353
11354 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11355 find out it does not work in some platform. */
11356 #ifndef LT_DLLAZY_OR_NOW
11357 # ifdef RTLD_LAZY
11358 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11359 # else
11360 # ifdef DL_LAZY
11361 # define LT_DLLAZY_OR_NOW DL_LAZY
11362 # else
11363 # ifdef RTLD_NOW
11364 # define LT_DLLAZY_OR_NOW RTLD_NOW
11365 # else
11366 # ifdef DL_NOW
11367 # define LT_DLLAZY_OR_NOW DL_NOW
11368 # else
11369 # define LT_DLLAZY_OR_NOW 0
11370 # endif
11371 # endif
11372 # endif
11373 # endif
11374 #endif
11375
11376 /* When -fvisbility=hidden is used, assume the code has been annotated
11377 correspondingly for the symbols needed. */
11378 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11379 int fnord () __attribute__((visibility("default")));
11380 #endif
11381
11382 int fnord () { return 42; }
11383 int main ()
11384 {
11385 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11386 int status = $lt_dlunknown;
11387
11388 if (self)
11389 {
11390 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11391 else
11392 {
11393 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11394 else puts (dlerror ());
11395 }
11396 /* dlclose (self); */
11397 }
11398 else
11399 puts (dlerror ());
11400
11401 return status;
11402 }
11403 _LT_EOF
11404 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11405 (eval $ac_link) 2>&5
11406 ac_status=$?
11407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11408 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11409 (./conftest; exit; ) >&5 2>/dev/null
11410 lt_status=$?
11411 case x$lt_status in
11412 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11413 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11414 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11415 esac
11416 else :
11417 # compilation failed
11418 lt_cv_dlopen_self_static=no
11419 fi
11420 fi
11421 rm -fr conftest*
11422
11423
11424 fi
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11426 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11427 fi
11428
11429 CPPFLAGS="$save_CPPFLAGS"
11430 LDFLAGS="$save_LDFLAGS"
11431 LIBS="$save_LIBS"
11432 ;;
11433 esac
11434
11435 case $lt_cv_dlopen_self in
11436 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11437 *) enable_dlopen_self=unknown ;;
11438 esac
11439
11440 case $lt_cv_dlopen_self_static in
11441 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11442 *) enable_dlopen_self_static=unknown ;;
11443 esac
11444 fi
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462 striplib=
11463 old_striplib=
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11465 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11466 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11467 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11468 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11470 $as_echo "yes" >&6; }
11471 else
11472 # FIXME - insert some real tests, host_os isn't really good enough
11473 case $host_os in
11474 darwin*)
11475 if test -n "$STRIP" ; then
11476 striplib="$STRIP -x"
11477 old_striplib="$STRIP -S"
11478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11479 $as_echo "yes" >&6; }
11480 else
11481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11482 $as_echo "no" >&6; }
11483 fi
11484 ;;
11485 *)
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11487 $as_echo "no" >&6; }
11488 ;;
11489 esac
11490 fi
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503 # Report which library types will actually be built
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11505 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11507 $as_echo "$can_build_shared" >&6; }
11508
11509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11510 $as_echo_n "checking whether to build shared libraries... " >&6; }
11511 test "$can_build_shared" = "no" && enable_shared=no
11512
11513 # On AIX, shared libraries and static libraries use the same namespace, and
11514 # are all built from PIC.
11515 case $host_os in
11516 aix3*)
11517 test "$enable_shared" = yes && enable_static=no
11518 if test -n "$RANLIB"; then
11519 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11520 postinstall_cmds='$RANLIB $lib'
11521 fi
11522 ;;
11523
11524 aix[4-9]*)
11525 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11526 test "$enable_shared" = yes && enable_static=no
11527 fi
11528 ;;
11529 esac
11530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11531 $as_echo "$enable_shared" >&6; }
11532
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11534 $as_echo_n "checking whether to build static libraries... " >&6; }
11535 # Make sure either enable_shared or enable_static is yes.
11536 test "$enable_shared" = yes || enable_static=yes
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11538 $as_echo "$enable_static" >&6; }
11539
11540
11541
11542
11543 fi
11544 ac_ext=c
11545 ac_cpp='$CPP $CPPFLAGS'
11546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11549
11550 CC="$lt_save_CC"
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566 ac_config_commands="$ac_config_commands libtool"
11567
11568
11569
11570
11571 # Only expand once:
11572
11573
11574
11575 # Require xorg-macros minimum of 1.12 for DocBook external references
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
11588 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
11589 if ${ac_cv_prog_cc_c99+:} false; then :
11590 $as_echo_n "(cached) " >&6
11591 else
11592 ac_cv_prog_cc_c99=no
11593 ac_save_CC=$CC
11594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11595 /* end confdefs.h. */
11596 #include <stdarg.h>
11597 #include <stdbool.h>
11598 #include <stdlib.h>
11599 #include <wchar.h>
11600 #include <stdio.h>
11601
11602 // Check varargs macros. These examples are taken from C99 6.10.3.5.
11603 #define debug(...) fprintf (stderr, __VA_ARGS__)
11604 #define showlist(...) puts (#__VA_ARGS__)
11605 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
11606 static void
11607 test_varargs_macros (void)
11608 {
11609 int x = 1234;
11610 int y = 5678;
11611 debug ("Flag");
11612 debug ("X = %d\n", x);
11613 showlist (The first, second, and third items.);
11614 report (x>y, "x is %d but y is %d", x, y);
11615 }
11616
11617 // Check long long types.
11618 #define BIG64 18446744073709551615ull
11619 #define BIG32 4294967295ul
11620 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
11621 #if !BIG_OK
11622 your preprocessor is broken;
11623 #endif
11624 #if BIG_OK
11625 #else
11626 your preprocessor is broken;
11627 #endif
11628 static long long int bignum = -9223372036854775807LL;
11629 static unsigned long long int ubignum = BIG64;
11630
11631 struct incomplete_array
11632 {
11633 int datasize;
11634 double data[];
11635 };
11636
11637 struct named_init {
11638 int number;
11639 const wchar_t *name;
11640 double average;
11641 };
11642
11643 typedef const char *ccp;
11644
11645 static inline int
11646 test_restrict (ccp restrict text)
11647 {
11648 // See if C++-style comments work.
11649 // Iterate through items via the restricted pointer.
11650 // Also check for declarations in for loops.
11651 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
11652 continue;
11653 return 0;
11654 }
11655
11656 // Check varargs and va_copy.
11657 static void
11658 test_varargs (const char *format, ...)
11659 {
11660 va_list args;
11661 va_start (args, format);
11662 va_list args_copy;
11663 va_copy (args_copy, args);
11664
11665 const char *str;
11666 int number;
11667 float fnumber;
11668
11669 while (*format)
11670 {
11671 switch (*format++)
11672 {
11673 case 's': // string
11674 str = va_arg (args_copy, const char *);
11675 break;
11676 case 'd': // int
11677 number = va_arg (args_copy, int);
11678 break;
11679 case 'f': // float
11680 fnumber = va_arg (args_copy, double);
11681 break;
11682 default:
11683 break;
11684 }
11685 }
11686 va_end (args_copy);
11687 va_end (args);
11688 }
11689
11690 int
11691 main ()
11692 {
11693
11694 // Check bool.
11695 _Bool success = false;
11696
11697 // Check restrict.
11698 if (test_restrict ("String literal") == 0)
11699 success = true;
11700 char *restrict newvar = "Another string";
11701
11702 // Check varargs.
11703 test_varargs ("s, d' f .", "string", 65, 34.234);
11704 test_varargs_macros ();
11705
11706 // Check flexible array members.
11707 struct incomplete_array *ia =
11708 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
11709 ia->datasize = 10;
11710 for (int i = 0; i < ia->datasize; ++i)
11711 ia->data[i] = i * 1.234;
11712
11713 // Check named initializers.
11714 struct named_init ni = {
11715 .number = 34,
11716 .name = L"Test wide string",
11717 .average = 543.34343,
11718 };
11719
11720 ni.number = 58;
11721
11722 int dynamic_array[ni.number];
11723 dynamic_array[ni.number - 1] = 543;
11724
11725 // work around unused variable warnings
11726 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
11727 || dynamic_array[ni.number - 1] != 543);
11728
11729 ;
11730 return 0;
11731 }
11732 _ACEOF
11733 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
11734 do
11735 CC="$ac_save_CC $ac_arg"
11736 if ac_fn_c_try_compile "$LINENO"; then :
11737 ac_cv_prog_cc_c99=$ac_arg
11738 fi
11739 rm -f core conftest.err conftest.$ac_objext
11740 test "x$ac_cv_prog_cc_c99" != "xno" && break
11741 done
11742 rm -f conftest.$ac_ext
11743 CC=$ac_save_CC
11744
11745 fi
11746 # AC_CACHE_VAL
11747 case "x$ac_cv_prog_cc_c99" in
11748 x)
11749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11750 $as_echo "none needed" >&6; } ;;
11751 xno)
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11753 $as_echo "unsupported" >&6; } ;;
11754 *)
11755 CC="$CC $ac_cv_prog_cc_c99"
11756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
11757 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
11758 esac
11759 if test "x$ac_cv_prog_cc_c99" != xno; then :
11760
11761 fi
11762
11763
11764
11765
11766
11767
11768 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
11769 if test "x$ac_cv_have_decl___clang__" = xyes; then :
11770 CLANGCC="yes"
11771 else
11772 CLANGCC="no"
11773 fi
11774
11775 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
11776 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
11777 INTELCC="yes"
11778 else
11779 INTELCC="no"
11780 fi
11781
11782 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
11783 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
11784 SUNCC="yes"
11785 else
11786 SUNCC="no"
11787 fi
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11798 if test -n "$ac_tool_prefix"; then
11799 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11800 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11802 $as_echo_n "checking for $ac_word... " >&6; }
11803 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11804 $as_echo_n "(cached) " >&6
11805 else
11806 case $PKG_CONFIG in
11807 [\\/]* | ?:[\\/]*)
11808 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11809 ;;
11810 *)
11811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11812 for as_dir in $PATH
11813 do
11814 IFS=$as_save_IFS
11815 test -z "$as_dir" && as_dir=.
11816 for ac_exec_ext in '' $ac_executable_extensions; do
11817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11818 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11820 break 2
11821 fi
11822 done
11823 done
11824 IFS=$as_save_IFS
11825
11826 ;;
11827 esac
11828 fi
11829 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11830 if test -n "$PKG_CONFIG"; then
11831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11832 $as_echo "$PKG_CONFIG" >&6; }
11833 else
11834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11835 $as_echo "no" >&6; }
11836 fi
11837
11838
11839 fi
11840 if test -z "$ac_cv_path_PKG_CONFIG"; then
11841 ac_pt_PKG_CONFIG=$PKG_CONFIG
11842 # Extract the first word of "pkg-config", so it can be a program name with args.
11843 set dummy pkg-config; ac_word=$2
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11845 $as_echo_n "checking for $ac_word... " >&6; }
11846 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11847 $as_echo_n "(cached) " >&6
11848 else
11849 case $ac_pt_PKG_CONFIG in
11850 [\\/]* | ?:[\\/]*)
11851 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11852 ;;
11853 *)
11854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11855 for as_dir in $PATH
11856 do
11857 IFS=$as_save_IFS
11858 test -z "$as_dir" && as_dir=.
11859 for ac_exec_ext in '' $ac_executable_extensions; do
11860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11861 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11863 break 2
11864 fi
11865 done
11866 done
11867 IFS=$as_save_IFS
11868
11869 ;;
11870 esac
11871 fi
11872 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11873 if test -n "$ac_pt_PKG_CONFIG"; then
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11875 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11876 else
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11878 $as_echo "no" >&6; }
11879 fi
11880
11881 if test "x$ac_pt_PKG_CONFIG" = x; then
11882 PKG_CONFIG=""
11883 else
11884 case $cross_compiling:$ac_tool_warned in
11885 yes:)
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11887 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11888 ac_tool_warned=yes ;;
11889 esac
11890 PKG_CONFIG=$ac_pt_PKG_CONFIG
11891 fi
11892 else
11893 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11894 fi
11895
11896 fi
11897 if test -n "$PKG_CONFIG"; then
11898 _pkg_min_version=0.9.0
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11900 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11901 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11903 $as_echo "yes" >&6; }
11904 else
11905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11906 $as_echo "no" >&6; }
11907 PKG_CONFIG=""
11908 fi
11909 fi
11910
11911
11912
11913
11914
11915 # Check whether --enable-selective-werror was given.
11916 if test "${enable_selective_werror+set}" = set; then :
11917 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
11918 else
11919 SELECTIVE_WERROR=yes
11920 fi
11921
11922
11923
11924
11925
11926 # -v is too short to test reliably with XORG_TESTSET_CFLAG
11927 if test "x$SUNCC" = "xyes"; then
11928 BASE_CFLAGS="-v"
11929 else
11930 BASE_CFLAGS=""
11931 fi
11932
11933 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947 xorg_testset_save_CFLAGS="$CFLAGS"
11948
11949 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11950 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11952 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11953 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11954 $as_echo_n "(cached) " >&6
11955 else
11956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11957 /* end confdefs.h. */
11958 int i;
11959 _ACEOF
11960 if ac_fn_c_try_compile "$LINENO"; then :
11961 xorg_cv_cc_flag_unknown_warning_option=yes
11962 else
11963 xorg_cv_cc_flag_unknown_warning_option=no
11964 fi
11965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11966 fi
11967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11968 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11969 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11970 CFLAGS="$xorg_testset_save_CFLAGS"
11971 fi
11972
11973 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11974 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11975 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11976 fi
11977 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11979 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11980 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11981 $as_echo_n "(cached) " >&6
11982 else
11983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11984 /* end confdefs.h. */
11985 int i;
11986 _ACEOF
11987 if ac_fn_c_try_compile "$LINENO"; then :
11988 xorg_cv_cc_flag_unused_command_line_argument=yes
11989 else
11990 xorg_cv_cc_flag_unused_command_line_argument=no
11991 fi
11992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11993 fi
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11995 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11996 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11997 CFLAGS="$xorg_testset_save_CFLAGS"
11998 fi
11999
12000 found="no"
12001
12002 if test $found = "no" ; then
12003 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12004 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12005 fi
12006
12007 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12008 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12009 fi
12010
12011 CFLAGS="$CFLAGS -Wall"
12012
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
12014 $as_echo_n "checking if $CC supports -Wall... " >&6; }
12015 cacheid=xorg_cv_cc_flag__Wall
12016 if eval \${$cacheid+:} false; then :
12017 $as_echo_n "(cached) " >&6
12018 else
12019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12020 /* end confdefs.h. */
12021 int i;
12022 int
12023 main ()
12024 {
12025
12026 ;
12027 return 0;
12028 }
12029 _ACEOF
12030 if ac_fn_c_try_link "$LINENO"; then :
12031 eval $cacheid=yes
12032 else
12033 eval $cacheid=no
12034 fi
12035 rm -f core conftest.err conftest.$ac_objext \
12036 conftest$ac_exeext conftest.$ac_ext
12037 fi
12038
12039
12040 CFLAGS="$xorg_testset_save_CFLAGS"
12041
12042 eval supported=\$$cacheid
12043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12044 $as_echo "$supported" >&6; }
12045 if test "$supported" = "yes" ; then
12046 BASE_CFLAGS="$BASE_CFLAGS -Wall"
12047 found="yes"
12048 fi
12049 fi
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065 xorg_testset_save_CFLAGS="$CFLAGS"
12066
12067 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12068 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12070 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12071 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12072 $as_echo_n "(cached) " >&6
12073 else
12074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12075 /* end confdefs.h. */
12076 int i;
12077 _ACEOF
12078 if ac_fn_c_try_compile "$LINENO"; then :
12079 xorg_cv_cc_flag_unknown_warning_option=yes
12080 else
12081 xorg_cv_cc_flag_unknown_warning_option=no
12082 fi
12083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12084 fi
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12086 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12087 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12088 CFLAGS="$xorg_testset_save_CFLAGS"
12089 fi
12090
12091 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12092 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12093 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12094 fi
12095 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12097 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12098 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12099 $as_echo_n "(cached) " >&6
12100 else
12101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12102 /* end confdefs.h. */
12103 int i;
12104 _ACEOF
12105 if ac_fn_c_try_compile "$LINENO"; then :
12106 xorg_cv_cc_flag_unused_command_line_argument=yes
12107 else
12108 xorg_cv_cc_flag_unused_command_line_argument=no
12109 fi
12110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12111 fi
12112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12113 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12114 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12115 CFLAGS="$xorg_testset_save_CFLAGS"
12116 fi
12117
12118 found="no"
12119
12120 if test $found = "no" ; then
12121 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12122 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12123 fi
12124
12125 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12126 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12127 fi
12128
12129 CFLAGS="$CFLAGS -Wpointer-arith"
12130
12131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
12132 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
12133 cacheid=xorg_cv_cc_flag__Wpointer_arith
12134 if eval \${$cacheid+:} false; then :
12135 $as_echo_n "(cached) " >&6
12136 else
12137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12138 /* end confdefs.h. */
12139 int i;
12140 int
12141 main ()
12142 {
12143
12144 ;
12145 return 0;
12146 }
12147 _ACEOF
12148 if ac_fn_c_try_link "$LINENO"; then :
12149 eval $cacheid=yes
12150 else
12151 eval $cacheid=no
12152 fi
12153 rm -f core conftest.err conftest.$ac_objext \
12154 conftest$ac_exeext conftest.$ac_ext
12155 fi
12156
12157
12158 CFLAGS="$xorg_testset_save_CFLAGS"
12159
12160 eval supported=\$$cacheid
12161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12162 $as_echo "$supported" >&6; }
12163 if test "$supported" = "yes" ; then
12164 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
12165 found="yes"
12166 fi
12167 fi
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183 xorg_testset_save_CFLAGS="$CFLAGS"
12184
12185 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12186 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12188 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12189 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12190 $as_echo_n "(cached) " >&6
12191 else
12192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12193 /* end confdefs.h. */
12194 int i;
12195 _ACEOF
12196 if ac_fn_c_try_compile "$LINENO"; then :
12197 xorg_cv_cc_flag_unknown_warning_option=yes
12198 else
12199 xorg_cv_cc_flag_unknown_warning_option=no
12200 fi
12201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12202 fi
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12204 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12205 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12206 CFLAGS="$xorg_testset_save_CFLAGS"
12207 fi
12208
12209 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12210 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12211 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12212 fi
12213 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12215 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12216 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12217 $as_echo_n "(cached) " >&6
12218 else
12219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12220 /* end confdefs.h. */
12221 int i;
12222 _ACEOF
12223 if ac_fn_c_try_compile "$LINENO"; then :
12224 xorg_cv_cc_flag_unused_command_line_argument=yes
12225 else
12226 xorg_cv_cc_flag_unused_command_line_argument=no
12227 fi
12228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12229 fi
12230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12231 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12232 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12233 CFLAGS="$xorg_testset_save_CFLAGS"
12234 fi
12235
12236 found="no"
12237
12238 if test $found = "no" ; then
12239 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12240 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12241 fi
12242
12243 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12244 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12245 fi
12246
12247 CFLAGS="$CFLAGS -Wmissing-declarations"
12248
12249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
12250 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
12251 cacheid=xorg_cv_cc_flag__Wmissing_declarations
12252 if eval \${$cacheid+:} false; then :
12253 $as_echo_n "(cached) " >&6
12254 else
12255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12256 /* end confdefs.h. */
12257 int i;
12258 int
12259 main ()
12260 {
12261
12262 ;
12263 return 0;
12264 }
12265 _ACEOF
12266 if ac_fn_c_try_link "$LINENO"; then :
12267 eval $cacheid=yes
12268 else
12269 eval $cacheid=no
12270 fi
12271 rm -f core conftest.err conftest.$ac_objext \
12272 conftest$ac_exeext conftest.$ac_ext
12273 fi
12274
12275
12276 CFLAGS="$xorg_testset_save_CFLAGS"
12277
12278 eval supported=\$$cacheid
12279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12280 $as_echo "$supported" >&6; }
12281 if test "$supported" = "yes" ; then
12282 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
12283 found="yes"
12284 fi
12285 fi
12286
12287
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298
12299
12300
12301 xorg_testset_save_CFLAGS="$CFLAGS"
12302
12303 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12304 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12306 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12307 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12308 $as_echo_n "(cached) " >&6
12309 else
12310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12311 /* end confdefs.h. */
12312 int i;
12313 _ACEOF
12314 if ac_fn_c_try_compile "$LINENO"; then :
12315 xorg_cv_cc_flag_unknown_warning_option=yes
12316 else
12317 xorg_cv_cc_flag_unknown_warning_option=no
12318 fi
12319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12320 fi
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12322 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12323 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12324 CFLAGS="$xorg_testset_save_CFLAGS"
12325 fi
12326
12327 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12328 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12329 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12330 fi
12331 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12333 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12334 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12335 $as_echo_n "(cached) " >&6
12336 else
12337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12338 /* end confdefs.h. */
12339 int i;
12340 _ACEOF
12341 if ac_fn_c_try_compile "$LINENO"; then :
12342 xorg_cv_cc_flag_unused_command_line_argument=yes
12343 else
12344 xorg_cv_cc_flag_unused_command_line_argument=no
12345 fi
12346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12347 fi
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12349 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12350 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12351 CFLAGS="$xorg_testset_save_CFLAGS"
12352 fi
12353
12354 found="no"
12355
12356 if test $found = "no" ; then
12357 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12358 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12359 fi
12360
12361 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12362 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12363 fi
12364
12365 CFLAGS="$CFLAGS -Wformat=2"
12366
12367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
12368 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
12369 cacheid=xorg_cv_cc_flag__Wformat_2
12370 if eval \${$cacheid+:} false; then :
12371 $as_echo_n "(cached) " >&6
12372 else
12373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12374 /* end confdefs.h. */
12375 int i;
12376 int
12377 main ()
12378 {
12379
12380 ;
12381 return 0;
12382 }
12383 _ACEOF
12384 if ac_fn_c_try_link "$LINENO"; then :
12385 eval $cacheid=yes
12386 else
12387 eval $cacheid=no
12388 fi
12389 rm -f core conftest.err conftest.$ac_objext \
12390 conftest$ac_exeext conftest.$ac_ext
12391 fi
12392
12393
12394 CFLAGS="$xorg_testset_save_CFLAGS"
12395
12396 eval supported=\$$cacheid
12397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12398 $as_echo "$supported" >&6; }
12399 if test "$supported" = "yes" ; then
12400 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
12401 found="yes"
12402 fi
12403 fi
12404
12405 if test $found = "no" ; then
12406 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12407 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12408 fi
12409
12410 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12411 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12412 fi
12413
12414 CFLAGS="$CFLAGS -Wformat"
12415
12416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
12417 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
12418 cacheid=xorg_cv_cc_flag__Wformat
12419 if eval \${$cacheid+:} false; then :
12420 $as_echo_n "(cached) " >&6
12421 else
12422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12423 /* end confdefs.h. */
12424 int i;
12425 int
12426 main ()
12427 {
12428
12429 ;
12430 return 0;
12431 }
12432 _ACEOF
12433 if ac_fn_c_try_link "$LINENO"; then :
12434 eval $cacheid=yes
12435 else
12436 eval $cacheid=no
12437 fi
12438 rm -f core conftest.err conftest.$ac_objext \
12439 conftest$ac_exeext conftest.$ac_ext
12440 fi
12441
12442
12443 CFLAGS="$xorg_testset_save_CFLAGS"
12444
12445 eval supported=\$$cacheid
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12447 $as_echo "$supported" >&6; }
12448 if test "$supported" = "yes" ; then
12449 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
12450 found="yes"
12451 fi
12452 fi
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470 xorg_testset_save_CFLAGS="$CFLAGS"
12471
12472 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12473 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12475 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12476 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12477 $as_echo_n "(cached) " >&6
12478 else
12479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12480 /* end confdefs.h. */
12481 int i;
12482 _ACEOF
12483 if ac_fn_c_try_compile "$LINENO"; then :
12484 xorg_cv_cc_flag_unknown_warning_option=yes
12485 else
12486 xorg_cv_cc_flag_unknown_warning_option=no
12487 fi
12488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12489 fi
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12491 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12492 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12493 CFLAGS="$xorg_testset_save_CFLAGS"
12494 fi
12495
12496 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12497 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12498 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12499 fi
12500 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12502 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12503 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12504 $as_echo_n "(cached) " >&6
12505 else
12506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12507 /* end confdefs.h. */
12508 int i;
12509 _ACEOF
12510 if ac_fn_c_try_compile "$LINENO"; then :
12511 xorg_cv_cc_flag_unused_command_line_argument=yes
12512 else
12513 xorg_cv_cc_flag_unused_command_line_argument=no
12514 fi
12515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12516 fi
12517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12518 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12519 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12520 CFLAGS="$xorg_testset_save_CFLAGS"
12521 fi
12522
12523 found="no"
12524
12525 if test $found = "no" ; then
12526 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12527 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12528 fi
12529
12530 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12531 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12532 fi
12533
12534 CFLAGS="$CFLAGS -Wstrict-prototypes"
12535
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
12537 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
12538 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
12539 if eval \${$cacheid+:} false; then :
12540 $as_echo_n "(cached) " >&6
12541 else
12542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12543 /* end confdefs.h. */
12544 int i;
12545 int
12546 main ()
12547 {
12548
12549 ;
12550 return 0;
12551 }
12552 _ACEOF
12553 if ac_fn_c_try_link "$LINENO"; then :
12554 eval $cacheid=yes
12555 else
12556 eval $cacheid=no
12557 fi
12558 rm -f core conftest.err conftest.$ac_objext \
12559 conftest$ac_exeext conftest.$ac_ext
12560 fi
12561
12562
12563 CFLAGS="$xorg_testset_save_CFLAGS"
12564
12565 eval supported=\$$cacheid
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12567 $as_echo "$supported" >&6; }
12568 if test "$supported" = "yes" ; then
12569 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
12570 found="yes"
12571 fi
12572 fi
12573
12574
12575
12576
12577
12578
12579
12580
12581
12582
12583
12584
12585
12586
12587
12588 xorg_testset_save_CFLAGS="$CFLAGS"
12589
12590 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12591 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12593 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12594 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12595 $as_echo_n "(cached) " >&6
12596 else
12597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12598 /* end confdefs.h. */
12599 int i;
12600 _ACEOF
12601 if ac_fn_c_try_compile "$LINENO"; then :
12602 xorg_cv_cc_flag_unknown_warning_option=yes
12603 else
12604 xorg_cv_cc_flag_unknown_warning_option=no
12605 fi
12606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12607 fi
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12609 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12610 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12611 CFLAGS="$xorg_testset_save_CFLAGS"
12612 fi
12613
12614 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12615 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12616 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12617 fi
12618 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12620 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12621 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12622 $as_echo_n "(cached) " >&6
12623 else
12624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12625 /* end confdefs.h. */
12626 int i;
12627 _ACEOF
12628 if ac_fn_c_try_compile "$LINENO"; then :
12629 xorg_cv_cc_flag_unused_command_line_argument=yes
12630 else
12631 xorg_cv_cc_flag_unused_command_line_argument=no
12632 fi
12633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12634 fi
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12636 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12637 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12638 CFLAGS="$xorg_testset_save_CFLAGS"
12639 fi
12640
12641 found="no"
12642
12643 if test $found = "no" ; then
12644 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12645 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12646 fi
12647
12648 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12649 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12650 fi
12651
12652 CFLAGS="$CFLAGS -Wmissing-prototypes"
12653
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
12655 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
12656 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
12657 if eval \${$cacheid+:} false; then :
12658 $as_echo_n "(cached) " >&6
12659 else
12660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12661 /* end confdefs.h. */
12662 int i;
12663 int
12664 main ()
12665 {
12666
12667 ;
12668 return 0;
12669 }
12670 _ACEOF
12671 if ac_fn_c_try_link "$LINENO"; then :
12672 eval $cacheid=yes
12673 else
12674 eval $cacheid=no
12675 fi
12676 rm -f core conftest.err conftest.$ac_objext \
12677 conftest$ac_exeext conftest.$ac_ext
12678 fi
12679
12680
12681 CFLAGS="$xorg_testset_save_CFLAGS"
12682
12683 eval supported=\$$cacheid
12684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12685 $as_echo "$supported" >&6; }
12686 if test "$supported" = "yes" ; then
12687 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
12688 found="yes"
12689 fi
12690 fi
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706 xorg_testset_save_CFLAGS="$CFLAGS"
12707
12708 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12709 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12711 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12712 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12713 $as_echo_n "(cached) " >&6
12714 else
12715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12716 /* end confdefs.h. */
12717 int i;
12718 _ACEOF
12719 if ac_fn_c_try_compile "$LINENO"; then :
12720 xorg_cv_cc_flag_unknown_warning_option=yes
12721 else
12722 xorg_cv_cc_flag_unknown_warning_option=no
12723 fi
12724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12725 fi
12726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12727 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12728 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12729 CFLAGS="$xorg_testset_save_CFLAGS"
12730 fi
12731
12732 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12733 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12734 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12735 fi
12736 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12738 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12739 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12740 $as_echo_n "(cached) " >&6
12741 else
12742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12743 /* end confdefs.h. */
12744 int i;
12745 _ACEOF
12746 if ac_fn_c_try_compile "$LINENO"; then :
12747 xorg_cv_cc_flag_unused_command_line_argument=yes
12748 else
12749 xorg_cv_cc_flag_unused_command_line_argument=no
12750 fi
12751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12752 fi
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12754 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12755 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12756 CFLAGS="$xorg_testset_save_CFLAGS"
12757 fi
12758
12759 found="no"
12760
12761 if test $found = "no" ; then
12762 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12763 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12764 fi
12765
12766 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12767 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12768 fi
12769
12770 CFLAGS="$CFLAGS -Wnested-externs"
12771
12772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
12773 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
12774 cacheid=xorg_cv_cc_flag__Wnested_externs
12775 if eval \${$cacheid+:} false; then :
12776 $as_echo_n "(cached) " >&6
12777 else
12778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12779 /* end confdefs.h. */
12780 int i;
12781 int
12782 main ()
12783 {
12784
12785 ;
12786 return 0;
12787 }
12788 _ACEOF
12789 if ac_fn_c_try_link "$LINENO"; then :
12790 eval $cacheid=yes
12791 else
12792 eval $cacheid=no
12793 fi
12794 rm -f core conftest.err conftest.$ac_objext \
12795 conftest$ac_exeext conftest.$ac_ext
12796 fi
12797
12798
12799 CFLAGS="$xorg_testset_save_CFLAGS"
12800
12801 eval supported=\$$cacheid
12802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12803 $as_echo "$supported" >&6; }
12804 if test "$supported" = "yes" ; then
12805 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
12806 found="yes"
12807 fi
12808 fi
12809
12810
12811
12812
12813
12814
12815
12816
12817
12818
12819
12820
12821
12822
12823
12824 xorg_testset_save_CFLAGS="$CFLAGS"
12825
12826 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12827 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12829 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12830 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12831 $as_echo_n "(cached) " >&6
12832 else
12833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12834 /* end confdefs.h. */
12835 int i;
12836 _ACEOF
12837 if ac_fn_c_try_compile "$LINENO"; then :
12838 xorg_cv_cc_flag_unknown_warning_option=yes
12839 else
12840 xorg_cv_cc_flag_unknown_warning_option=no
12841 fi
12842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12843 fi
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12845 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12846 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12847 CFLAGS="$xorg_testset_save_CFLAGS"
12848 fi
12849
12850 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12851 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12852 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12853 fi
12854 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12856 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12857 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12858 $as_echo_n "(cached) " >&6
12859 else
12860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12861 /* end confdefs.h. */
12862 int i;
12863 _ACEOF
12864 if ac_fn_c_try_compile "$LINENO"; then :
12865 xorg_cv_cc_flag_unused_command_line_argument=yes
12866 else
12867 xorg_cv_cc_flag_unused_command_line_argument=no
12868 fi
12869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12870 fi
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12872 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12873 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12874 CFLAGS="$xorg_testset_save_CFLAGS"
12875 fi
12876
12877 found="no"
12878
12879 if test $found = "no" ; then
12880 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12881 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12882 fi
12883
12884 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12885 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12886 fi
12887
12888 CFLAGS="$CFLAGS -Wbad-function-cast"
12889
12890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
12891 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
12892 cacheid=xorg_cv_cc_flag__Wbad_function_cast
12893 if eval \${$cacheid+:} false; then :
12894 $as_echo_n "(cached) " >&6
12895 else
12896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12897 /* end confdefs.h. */
12898 int i;
12899 int
12900 main ()
12901 {
12902
12903 ;
12904 return 0;
12905 }
12906 _ACEOF
12907 if ac_fn_c_try_link "$LINENO"; then :
12908 eval $cacheid=yes
12909 else
12910 eval $cacheid=no
12911 fi
12912 rm -f core conftest.err conftest.$ac_objext \
12913 conftest$ac_exeext conftest.$ac_ext
12914 fi
12915
12916
12917 CFLAGS="$xorg_testset_save_CFLAGS"
12918
12919 eval supported=\$$cacheid
12920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12921 $as_echo "$supported" >&6; }
12922 if test "$supported" = "yes" ; then
12923 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
12924 found="yes"
12925 fi
12926 fi
12927
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942 xorg_testset_save_CFLAGS="$CFLAGS"
12943
12944 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12945 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12947 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12948 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12949 $as_echo_n "(cached) " >&6
12950 else
12951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12952 /* end confdefs.h. */
12953 int i;
12954 _ACEOF
12955 if ac_fn_c_try_compile "$LINENO"; then :
12956 xorg_cv_cc_flag_unknown_warning_option=yes
12957 else
12958 xorg_cv_cc_flag_unknown_warning_option=no
12959 fi
12960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12961 fi
12962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12963 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12964 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12965 CFLAGS="$xorg_testset_save_CFLAGS"
12966 fi
12967
12968 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12969 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12970 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12971 fi
12972 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12974 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12975 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12976 $as_echo_n "(cached) " >&6
12977 else
12978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12979 /* end confdefs.h. */
12980 int i;
12981 _ACEOF
12982 if ac_fn_c_try_compile "$LINENO"; then :
12983 xorg_cv_cc_flag_unused_command_line_argument=yes
12984 else
12985 xorg_cv_cc_flag_unused_command_line_argument=no
12986 fi
12987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12988 fi
12989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12990 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12991 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12992 CFLAGS="$xorg_testset_save_CFLAGS"
12993 fi
12994
12995 found="no"
12996
12997 if test $found = "no" ; then
12998 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12999 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13000 fi
13001
13002 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13003 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13004 fi
13005
13006 CFLAGS="$CFLAGS -Wold-style-definition"
13007
13008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
13009 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
13010 cacheid=xorg_cv_cc_flag__Wold_style_definition
13011 if eval \${$cacheid+:} false; then :
13012 $as_echo_n "(cached) " >&6
13013 else
13014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13015 /* end confdefs.h. */
13016 int i;
13017 int
13018 main ()
13019 {
13020
13021 ;
13022 return 0;
13023 }
13024 _ACEOF
13025 if ac_fn_c_try_link "$LINENO"; then :
13026 eval $cacheid=yes
13027 else
13028 eval $cacheid=no
13029 fi
13030 rm -f core conftest.err conftest.$ac_objext \
13031 conftest$ac_exeext conftest.$ac_ext
13032 fi
13033
13034
13035 CFLAGS="$xorg_testset_save_CFLAGS"
13036
13037 eval supported=\$$cacheid
13038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13039 $as_echo "$supported" >&6; }
13040 if test "$supported" = "yes" ; then
13041 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
13042 found="yes"
13043 fi
13044 fi
13045
13046 if test $found = "no" ; then
13047 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13048 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13049 fi
13050
13051 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13052 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13053 fi
13054
13055 CFLAGS="$CFLAGS -fd"
13056
13057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
13058 $as_echo_n "checking if $CC supports -fd... " >&6; }
13059 cacheid=xorg_cv_cc_flag__fd
13060 if eval \${$cacheid+:} false; then :
13061 $as_echo_n "(cached) " >&6
13062 else
13063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13064 /* end confdefs.h. */
13065 int i;
13066 int
13067 main ()
13068 {
13069
13070 ;
13071 return 0;
13072 }
13073 _ACEOF
13074 if ac_fn_c_try_link "$LINENO"; then :
13075 eval $cacheid=yes
13076 else
13077 eval $cacheid=no
13078 fi
13079 rm -f core conftest.err conftest.$ac_objext \
13080 conftest$ac_exeext conftest.$ac_ext
13081 fi
13082
13083
13084 CFLAGS="$xorg_testset_save_CFLAGS"
13085
13086 eval supported=\$$cacheid
13087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13088 $as_echo "$supported" >&6; }
13089 if test "$supported" = "yes" ; then
13090 BASE_CFLAGS="$BASE_CFLAGS -fd"
13091 found="yes"
13092 fi
13093 fi
13094
13095
13096
13097
13098
13099
13100
13101
13102
13103
13104
13105
13106
13107
13108
13109 xorg_testset_save_CFLAGS="$CFLAGS"
13110
13111 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13112 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13114 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13115 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13116 $as_echo_n "(cached) " >&6
13117 else
13118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13119 /* end confdefs.h. */
13120 int i;
13121 _ACEOF
13122 if ac_fn_c_try_compile "$LINENO"; then :
13123 xorg_cv_cc_flag_unknown_warning_option=yes
13124 else
13125 xorg_cv_cc_flag_unknown_warning_option=no
13126 fi
13127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13128 fi
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13130 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13131 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13132 CFLAGS="$xorg_testset_save_CFLAGS"
13133 fi
13134
13135 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13136 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13137 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13138 fi
13139 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13141 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13142 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13143 $as_echo_n "(cached) " >&6
13144 else
13145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13146 /* end confdefs.h. */
13147 int i;
13148 _ACEOF
13149 if ac_fn_c_try_compile "$LINENO"; then :
13150 xorg_cv_cc_flag_unused_command_line_argument=yes
13151 else
13152 xorg_cv_cc_flag_unused_command_line_argument=no
13153 fi
13154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13155 fi
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13157 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13158 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13159 CFLAGS="$xorg_testset_save_CFLAGS"
13160 fi
13161
13162 found="no"
13163
13164 if test $found = "no" ; then
13165 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13166 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13167 fi
13168
13169 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13170 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13171 fi
13172
13173 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
13174
13175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
13176 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
13177 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
13178 if eval \${$cacheid+:} false; then :
13179 $as_echo_n "(cached) " >&6
13180 else
13181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13182 /* end confdefs.h. */
13183 int i;
13184 int
13185 main ()
13186 {
13187
13188 ;
13189 return 0;
13190 }
13191 _ACEOF
13192 if ac_fn_c_try_link "$LINENO"; then :
13193 eval $cacheid=yes
13194 else
13195 eval $cacheid=no
13196 fi
13197 rm -f core conftest.err conftest.$ac_objext \
13198 conftest$ac_exeext conftest.$ac_ext
13199 fi
13200
13201
13202 CFLAGS="$xorg_testset_save_CFLAGS"
13203
13204 eval supported=\$$cacheid
13205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13206 $as_echo "$supported" >&6; }
13207 if test "$supported" = "yes" ; then
13208 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
13209 found="yes"
13210 fi
13211 fi
13212
13213
13214
13215
13216
13217 # This chunk adds additional warnings that could catch undesired effects.
13218
13219
13220
13221
13222
13223
13224
13225
13226
13227
13228
13229
13230
13231 xorg_testset_save_CFLAGS="$CFLAGS"
13232
13233 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13234 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13236 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13237 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13238 $as_echo_n "(cached) " >&6
13239 else
13240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13241 /* end confdefs.h. */
13242 int i;
13243 _ACEOF
13244 if ac_fn_c_try_compile "$LINENO"; then :
13245 xorg_cv_cc_flag_unknown_warning_option=yes
13246 else
13247 xorg_cv_cc_flag_unknown_warning_option=no
13248 fi
13249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13250 fi
13251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13252 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13253 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13254 CFLAGS="$xorg_testset_save_CFLAGS"
13255 fi
13256
13257 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13258 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13259 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13260 fi
13261 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13263 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13264 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13265 $as_echo_n "(cached) " >&6
13266 else
13267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13268 /* end confdefs.h. */
13269 int i;
13270 _ACEOF
13271 if ac_fn_c_try_compile "$LINENO"; then :
13272 xorg_cv_cc_flag_unused_command_line_argument=yes
13273 else
13274 xorg_cv_cc_flag_unused_command_line_argument=no
13275 fi
13276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13277 fi
13278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13279 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13280 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13281 CFLAGS="$xorg_testset_save_CFLAGS"
13282 fi
13283
13284 found="no"
13285
13286 if test $found = "no" ; then
13287 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13288 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13289 fi
13290
13291 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13292 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13293 fi
13294
13295 CFLAGS="$CFLAGS -Wunused"
13296
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
13298 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
13299 cacheid=xorg_cv_cc_flag__Wunused
13300 if eval \${$cacheid+:} false; then :
13301 $as_echo_n "(cached) " >&6
13302 else
13303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13304 /* end confdefs.h. */
13305 int i;
13306 int
13307 main ()
13308 {
13309
13310 ;
13311 return 0;
13312 }
13313 _ACEOF
13314 if ac_fn_c_try_link "$LINENO"; then :
13315 eval $cacheid=yes
13316 else
13317 eval $cacheid=no
13318 fi
13319 rm -f core conftest.err conftest.$ac_objext \
13320 conftest$ac_exeext conftest.$ac_ext
13321 fi
13322
13323
13324 CFLAGS="$xorg_testset_save_CFLAGS"
13325
13326 eval supported=\$$cacheid
13327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13328 $as_echo "$supported" >&6; }
13329 if test "$supported" = "yes" ; then
13330 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
13331 found="yes"
13332 fi
13333 fi
13334
13335
13336
13337
13338
13339
13340
13341
13342
13343
13344
13345
13346
13347
13348
13349 xorg_testset_save_CFLAGS="$CFLAGS"
13350
13351 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13352 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13354 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13355 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13356 $as_echo_n "(cached) " >&6
13357 else
13358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13359 /* end confdefs.h. */
13360 int i;
13361 _ACEOF
13362 if ac_fn_c_try_compile "$LINENO"; then :
13363 xorg_cv_cc_flag_unknown_warning_option=yes
13364 else
13365 xorg_cv_cc_flag_unknown_warning_option=no
13366 fi
13367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13368 fi
13369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13370 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13371 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13372 CFLAGS="$xorg_testset_save_CFLAGS"
13373 fi
13374
13375 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13376 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13377 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13378 fi
13379 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13381 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13382 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13383 $as_echo_n "(cached) " >&6
13384 else
13385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13386 /* end confdefs.h. */
13387 int i;
13388 _ACEOF
13389 if ac_fn_c_try_compile "$LINENO"; then :
13390 xorg_cv_cc_flag_unused_command_line_argument=yes
13391 else
13392 xorg_cv_cc_flag_unused_command_line_argument=no
13393 fi
13394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13395 fi
13396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13397 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13398 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13399 CFLAGS="$xorg_testset_save_CFLAGS"
13400 fi
13401
13402 found="no"
13403
13404 if test $found = "no" ; then
13405 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13406 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13407 fi
13408
13409 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13410 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13411 fi
13412
13413 CFLAGS="$CFLAGS -Wuninitialized"
13414
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
13416 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
13417 cacheid=xorg_cv_cc_flag__Wuninitialized
13418 if eval \${$cacheid+:} false; then :
13419 $as_echo_n "(cached) " >&6
13420 else
13421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13422 /* end confdefs.h. */
13423 int i;
13424 int
13425 main ()
13426 {
13427
13428 ;
13429 return 0;
13430 }
13431 _ACEOF
13432 if ac_fn_c_try_link "$LINENO"; then :
13433 eval $cacheid=yes
13434 else
13435 eval $cacheid=no
13436 fi
13437 rm -f core conftest.err conftest.$ac_objext \
13438 conftest$ac_exeext conftest.$ac_ext
13439 fi
13440
13441
13442 CFLAGS="$xorg_testset_save_CFLAGS"
13443
13444 eval supported=\$$cacheid
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13446 $as_echo "$supported" >&6; }
13447 if test "$supported" = "yes" ; then
13448 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
13449 found="yes"
13450 fi
13451 fi
13452
13453
13454
13455
13456
13457
13458
13459
13460
13461
13462
13463
13464
13465
13466
13467 xorg_testset_save_CFLAGS="$CFLAGS"
13468
13469 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13470 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13472 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13473 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13474 $as_echo_n "(cached) " >&6
13475 else
13476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13477 /* end confdefs.h. */
13478 int i;
13479 _ACEOF
13480 if ac_fn_c_try_compile "$LINENO"; then :
13481 xorg_cv_cc_flag_unknown_warning_option=yes
13482 else
13483 xorg_cv_cc_flag_unknown_warning_option=no
13484 fi
13485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13486 fi
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13488 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13489 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13490 CFLAGS="$xorg_testset_save_CFLAGS"
13491 fi
13492
13493 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13494 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13495 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13496 fi
13497 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13499 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13500 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13501 $as_echo_n "(cached) " >&6
13502 else
13503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13504 /* end confdefs.h. */
13505 int i;
13506 _ACEOF
13507 if ac_fn_c_try_compile "$LINENO"; then :
13508 xorg_cv_cc_flag_unused_command_line_argument=yes
13509 else
13510 xorg_cv_cc_flag_unused_command_line_argument=no
13511 fi
13512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13513 fi
13514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13515 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13516 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13517 CFLAGS="$xorg_testset_save_CFLAGS"
13518 fi
13519
13520 found="no"
13521
13522 if test $found = "no" ; then
13523 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13524 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13525 fi
13526
13527 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13528 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13529 fi
13530
13531 CFLAGS="$CFLAGS -Wshadow"
13532
13533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
13534 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
13535 cacheid=xorg_cv_cc_flag__Wshadow
13536 if eval \${$cacheid+:} false; then :
13537 $as_echo_n "(cached) " >&6
13538 else
13539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13540 /* end confdefs.h. */
13541 int i;
13542 int
13543 main ()
13544 {
13545
13546 ;
13547 return 0;
13548 }
13549 _ACEOF
13550 if ac_fn_c_try_link "$LINENO"; then :
13551 eval $cacheid=yes
13552 else
13553 eval $cacheid=no
13554 fi
13555 rm -f core conftest.err conftest.$ac_objext \
13556 conftest$ac_exeext conftest.$ac_ext
13557 fi
13558
13559
13560 CFLAGS="$xorg_testset_save_CFLAGS"
13561
13562 eval supported=\$$cacheid
13563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13564 $as_echo "$supported" >&6; }
13565 if test "$supported" = "yes" ; then
13566 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
13567 found="yes"
13568 fi
13569 fi
13570
13571
13572
13573
13574
13575
13576
13577
13578
13579
13580
13581
13582
13583
13584
13585 xorg_testset_save_CFLAGS="$CFLAGS"
13586
13587 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13588 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13590 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13591 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13592 $as_echo_n "(cached) " >&6
13593 else
13594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13595 /* end confdefs.h. */
13596 int i;
13597 _ACEOF
13598 if ac_fn_c_try_compile "$LINENO"; then :
13599 xorg_cv_cc_flag_unknown_warning_option=yes
13600 else
13601 xorg_cv_cc_flag_unknown_warning_option=no
13602 fi
13603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13604 fi
13605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13606 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13607 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13608 CFLAGS="$xorg_testset_save_CFLAGS"
13609 fi
13610
13611 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13612 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13613 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13614 fi
13615 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13617 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13618 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13619 $as_echo_n "(cached) " >&6
13620 else
13621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13622 /* end confdefs.h. */
13623 int i;
13624 _ACEOF
13625 if ac_fn_c_try_compile "$LINENO"; then :
13626 xorg_cv_cc_flag_unused_command_line_argument=yes
13627 else
13628 xorg_cv_cc_flag_unused_command_line_argument=no
13629 fi
13630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13631 fi
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13633 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13634 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13635 CFLAGS="$xorg_testset_save_CFLAGS"
13636 fi
13637
13638 found="no"
13639
13640 if test $found = "no" ; then
13641 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13642 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13643 fi
13644
13645 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13646 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13647 fi
13648
13649 CFLAGS="$CFLAGS -Wmissing-noreturn"
13650
13651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
13652 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
13653 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
13654 if eval \${$cacheid+:} false; then :
13655 $as_echo_n "(cached) " >&6
13656 else
13657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13658 /* end confdefs.h. */
13659 int i;
13660 int
13661 main ()
13662 {
13663
13664 ;
13665 return 0;
13666 }
13667 _ACEOF
13668 if ac_fn_c_try_link "$LINENO"; then :
13669 eval $cacheid=yes
13670 else
13671 eval $cacheid=no
13672 fi
13673 rm -f core conftest.err conftest.$ac_objext \
13674 conftest$ac_exeext conftest.$ac_ext
13675 fi
13676
13677
13678 CFLAGS="$xorg_testset_save_CFLAGS"
13679
13680 eval supported=\$$cacheid
13681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13682 $as_echo "$supported" >&6; }
13683 if test "$supported" = "yes" ; then
13684 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
13685 found="yes"
13686 fi
13687 fi
13688
13689
13690
13691
13692
13693
13694
13695
13696
13697
13698
13699
13700
13701
13702
13703 xorg_testset_save_CFLAGS="$CFLAGS"
13704
13705 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13706 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13708 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13709 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13710 $as_echo_n "(cached) " >&6
13711 else
13712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13713 /* end confdefs.h. */
13714 int i;
13715 _ACEOF
13716 if ac_fn_c_try_compile "$LINENO"; then :
13717 xorg_cv_cc_flag_unknown_warning_option=yes
13718 else
13719 xorg_cv_cc_flag_unknown_warning_option=no
13720 fi
13721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13722 fi
13723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13724 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13725 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13726 CFLAGS="$xorg_testset_save_CFLAGS"
13727 fi
13728
13729 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13730 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13731 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13732 fi
13733 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13735 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13736 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13737 $as_echo_n "(cached) " >&6
13738 else
13739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13740 /* end confdefs.h. */
13741 int i;
13742 _ACEOF
13743 if ac_fn_c_try_compile "$LINENO"; then :
13744 xorg_cv_cc_flag_unused_command_line_argument=yes
13745 else
13746 xorg_cv_cc_flag_unused_command_line_argument=no
13747 fi
13748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13749 fi
13750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13751 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13752 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13753 CFLAGS="$xorg_testset_save_CFLAGS"
13754 fi
13755
13756 found="no"
13757
13758 if test $found = "no" ; then
13759 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13760 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13761 fi
13762
13763 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13764 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13765 fi
13766
13767 CFLAGS="$CFLAGS -Wmissing-format-attribute"
13768
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
13770 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
13771 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
13772 if eval \${$cacheid+:} false; then :
13773 $as_echo_n "(cached) " >&6
13774 else
13775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13776 /* end confdefs.h. */
13777 int i;
13778 int
13779 main ()
13780 {
13781
13782 ;
13783 return 0;
13784 }
13785 _ACEOF
13786 if ac_fn_c_try_link "$LINENO"; then :
13787 eval $cacheid=yes
13788 else
13789 eval $cacheid=no
13790 fi
13791 rm -f core conftest.err conftest.$ac_objext \
13792 conftest$ac_exeext conftest.$ac_ext
13793 fi
13794
13795
13796 CFLAGS="$xorg_testset_save_CFLAGS"
13797
13798 eval supported=\$$cacheid
13799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13800 $as_echo "$supported" >&6; }
13801 if test "$supported" = "yes" ; then
13802 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
13803 found="yes"
13804 fi
13805 fi
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821 xorg_testset_save_CFLAGS="$CFLAGS"
13822
13823 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13824 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13826 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13827 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13828 $as_echo_n "(cached) " >&6
13829 else
13830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13831 /* end confdefs.h. */
13832 int i;
13833 _ACEOF
13834 if ac_fn_c_try_compile "$LINENO"; then :
13835 xorg_cv_cc_flag_unknown_warning_option=yes
13836 else
13837 xorg_cv_cc_flag_unknown_warning_option=no
13838 fi
13839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13840 fi
13841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13842 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13843 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13844 CFLAGS="$xorg_testset_save_CFLAGS"
13845 fi
13846
13847 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13848 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13849 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13850 fi
13851 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13853 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13854 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13855 $as_echo_n "(cached) " >&6
13856 else
13857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13858 /* end confdefs.h. */
13859 int i;
13860 _ACEOF
13861 if ac_fn_c_try_compile "$LINENO"; then :
13862 xorg_cv_cc_flag_unused_command_line_argument=yes
13863 else
13864 xorg_cv_cc_flag_unused_command_line_argument=no
13865 fi
13866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13867 fi
13868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13869 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13870 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13871 CFLAGS="$xorg_testset_save_CFLAGS"
13872 fi
13873
13874 found="no"
13875
13876 if test $found = "no" ; then
13877 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13878 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13879 fi
13880
13881 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13882 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13883 fi
13884
13885 CFLAGS="$CFLAGS -Wredundant-decls"
13886
13887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
13888 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
13889 cacheid=xorg_cv_cc_flag__Wredundant_decls
13890 if eval \${$cacheid+:} 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 int
13897 main ()
13898 {
13899
13900 ;
13901 return 0;
13902 }
13903 _ACEOF
13904 if ac_fn_c_try_link "$LINENO"; then :
13905 eval $cacheid=yes
13906 else
13907 eval $cacheid=no
13908 fi
13909 rm -f core conftest.err conftest.$ac_objext \
13910 conftest$ac_exeext conftest.$ac_ext
13911 fi
13912
13913
13914 CFLAGS="$xorg_testset_save_CFLAGS"
13915
13916 eval supported=\$$cacheid
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13918 $as_echo "$supported" >&6; }
13919 if test "$supported" = "yes" ; then
13920 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
13921 found="yes"
13922 fi
13923 fi
13924
13925
13926
13927
13928
13929
13930
13931
13932
13933
13934
13935
13936
13937
13938
13939 xorg_testset_save_CFLAGS="$CFLAGS"
13940
13941 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13942 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13944 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13945 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13946 $as_echo_n "(cached) " >&6
13947 else
13948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13949 /* end confdefs.h. */
13950 int i;
13951 _ACEOF
13952 if ac_fn_c_try_compile "$LINENO"; then :
13953 xorg_cv_cc_flag_unknown_warning_option=yes
13954 else
13955 xorg_cv_cc_flag_unknown_warning_option=no
13956 fi
13957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13958 fi
13959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13960 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13961 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13962 CFLAGS="$xorg_testset_save_CFLAGS"
13963 fi
13964
13965 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13966 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13967 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13968 fi
13969 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13971 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13972 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13973 $as_echo_n "(cached) " >&6
13974 else
13975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13976 /* end confdefs.h. */
13977 int i;
13978 _ACEOF
13979 if ac_fn_c_try_compile "$LINENO"; then :
13980 xorg_cv_cc_flag_unused_command_line_argument=yes
13981 else
13982 xorg_cv_cc_flag_unused_command_line_argument=no
13983 fi
13984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13985 fi
13986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13987 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13988 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13989 CFLAGS="$xorg_testset_save_CFLAGS"
13990 fi
13991
13992 found="no"
13993
13994 if test $found = "no" ; then
13995 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13996 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13997 fi
13998
13999 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14000 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14001 fi
14002
14003 CFLAGS="$CFLAGS -Wlogical-op"
14004
14005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
14006 $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
14007 cacheid=xorg_cv_cc_flag__Wlogical_op
14008 if eval \${$cacheid+:} false; then :
14009 $as_echo_n "(cached) " >&6
14010 else
14011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14012 /* end confdefs.h. */
14013 int i;
14014 int
14015 main ()
14016 {
14017
14018 ;
14019 return 0;
14020 }
14021 _ACEOF
14022 if ac_fn_c_try_link "$LINENO"; then :
14023 eval $cacheid=yes
14024 else
14025 eval $cacheid=no
14026 fi
14027 rm -f core conftest.err conftest.$ac_objext \
14028 conftest$ac_exeext conftest.$ac_ext
14029 fi
14030
14031
14032 CFLAGS="$xorg_testset_save_CFLAGS"
14033
14034 eval supported=\$$cacheid
14035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14036 $as_echo "$supported" >&6; }
14037 if test "$supported" = "yes" ; then
14038 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
14039 found="yes"
14040 fi
14041 fi
14042
14043
14044
14045 # These are currently disabled because they are noisy. They will be enabled
14046 # in the future once the codebase is sufficiently modernized to silence
14047 # them. For now, I don't want them to drown out the other warnings.
14048 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
14049 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
14050 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
14051
14052 # Turn some warnings into errors, so we don't accidently get successful builds
14053 # when there are problems that should be fixed.
14054
14055 if test "x$SELECTIVE_WERROR" = "xyes" ; then
14056
14057
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069 xorg_testset_save_CFLAGS="$CFLAGS"
14070
14071 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14072 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14074 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14075 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14076 $as_echo_n "(cached) " >&6
14077 else
14078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14079 /* end confdefs.h. */
14080 int i;
14081 _ACEOF
14082 if ac_fn_c_try_compile "$LINENO"; then :
14083 xorg_cv_cc_flag_unknown_warning_option=yes
14084 else
14085 xorg_cv_cc_flag_unknown_warning_option=no
14086 fi
14087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14088 fi
14089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14090 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14091 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14092 CFLAGS="$xorg_testset_save_CFLAGS"
14093 fi
14094
14095 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14096 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14097 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14098 fi
14099 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14101 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14102 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14103 $as_echo_n "(cached) " >&6
14104 else
14105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14106 /* end confdefs.h. */
14107 int i;
14108 _ACEOF
14109 if ac_fn_c_try_compile "$LINENO"; then :
14110 xorg_cv_cc_flag_unused_command_line_argument=yes
14111 else
14112 xorg_cv_cc_flag_unused_command_line_argument=no
14113 fi
14114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14115 fi
14116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14117 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14118 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14119 CFLAGS="$xorg_testset_save_CFLAGS"
14120 fi
14121
14122 found="no"
14123
14124 if test $found = "no" ; then
14125 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14126 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14127 fi
14128
14129 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14130 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14131 fi
14132
14133 CFLAGS="$CFLAGS -Werror=implicit"
14134
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
14136 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
14137 cacheid=xorg_cv_cc_flag__Werror_implicit
14138 if eval \${$cacheid+:} false; then :
14139 $as_echo_n "(cached) " >&6
14140 else
14141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14142 /* end confdefs.h. */
14143 int i;
14144 int
14145 main ()
14146 {
14147
14148 ;
14149 return 0;
14150 }
14151 _ACEOF
14152 if ac_fn_c_try_link "$LINENO"; then :
14153 eval $cacheid=yes
14154 else
14155 eval $cacheid=no
14156 fi
14157 rm -f core conftest.err conftest.$ac_objext \
14158 conftest$ac_exeext conftest.$ac_ext
14159 fi
14160
14161
14162 CFLAGS="$xorg_testset_save_CFLAGS"
14163
14164 eval supported=\$$cacheid
14165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14166 $as_echo "$supported" >&6; }
14167 if test "$supported" = "yes" ; then
14168 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
14169 found="yes"
14170 fi
14171 fi
14172
14173 if test $found = "no" ; then
14174 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14175 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14176 fi
14177
14178 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14179 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14180 fi
14181
14182 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14183
14184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
14185 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
14186 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
14187 if eval \${$cacheid+:} false; then :
14188 $as_echo_n "(cached) " >&6
14189 else
14190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14191 /* end confdefs.h. */
14192 int i;
14193 int
14194 main ()
14195 {
14196
14197 ;
14198 return 0;
14199 }
14200 _ACEOF
14201 if ac_fn_c_try_link "$LINENO"; then :
14202 eval $cacheid=yes
14203 else
14204 eval $cacheid=no
14205 fi
14206 rm -f core conftest.err conftest.$ac_objext \
14207 conftest$ac_exeext conftest.$ac_ext
14208 fi
14209
14210
14211 CFLAGS="$xorg_testset_save_CFLAGS"
14212
14213 eval supported=\$$cacheid
14214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14215 $as_echo "$supported" >&6; }
14216 if test "$supported" = "yes" ; then
14217 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14218 found="yes"
14219 fi
14220 fi
14221
14222
14223
14224
14225
14226
14227
14228
14229
14230
14231
14232
14233
14234
14235
14236 xorg_testset_save_CFLAGS="$CFLAGS"
14237
14238 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14239 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14241 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14242 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14243 $as_echo_n "(cached) " >&6
14244 else
14245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14246 /* end confdefs.h. */
14247 int i;
14248 _ACEOF
14249 if ac_fn_c_try_compile "$LINENO"; then :
14250 xorg_cv_cc_flag_unknown_warning_option=yes
14251 else
14252 xorg_cv_cc_flag_unknown_warning_option=no
14253 fi
14254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14255 fi
14256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14257 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14258 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14259 CFLAGS="$xorg_testset_save_CFLAGS"
14260 fi
14261
14262 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14263 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14264 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14265 fi
14266 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14268 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14269 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14270 $as_echo_n "(cached) " >&6
14271 else
14272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14273 /* end confdefs.h. */
14274 int i;
14275 _ACEOF
14276 if ac_fn_c_try_compile "$LINENO"; then :
14277 xorg_cv_cc_flag_unused_command_line_argument=yes
14278 else
14279 xorg_cv_cc_flag_unused_command_line_argument=no
14280 fi
14281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14282 fi
14283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14284 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14285 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14286 CFLAGS="$xorg_testset_save_CFLAGS"
14287 fi
14288
14289 found="no"
14290
14291 if test $found = "no" ; then
14292 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14293 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14294 fi
14295
14296 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14297 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14298 fi
14299
14300 CFLAGS="$CFLAGS -Werror=nonnull"
14301
14302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
14303 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
14304 cacheid=xorg_cv_cc_flag__Werror_nonnull
14305 if eval \${$cacheid+:} false; then :
14306 $as_echo_n "(cached) " >&6
14307 else
14308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14309 /* end confdefs.h. */
14310 int i;
14311 int
14312 main ()
14313 {
14314
14315 ;
14316 return 0;
14317 }
14318 _ACEOF
14319 if ac_fn_c_try_link "$LINENO"; then :
14320 eval $cacheid=yes
14321 else
14322 eval $cacheid=no
14323 fi
14324 rm -f core conftest.err conftest.$ac_objext \
14325 conftest$ac_exeext conftest.$ac_ext
14326 fi
14327
14328
14329 CFLAGS="$xorg_testset_save_CFLAGS"
14330
14331 eval supported=\$$cacheid
14332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14333 $as_echo "$supported" >&6; }
14334 if test "$supported" = "yes" ; then
14335 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
14336 found="yes"
14337 fi
14338 fi
14339
14340
14341
14342
14343
14344
14345
14346
14347
14348
14349
14350
14351
14352
14353
14354 xorg_testset_save_CFLAGS="$CFLAGS"
14355
14356 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14357 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14359 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14360 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14361 $as_echo_n "(cached) " >&6
14362 else
14363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14364 /* end confdefs.h. */
14365 int i;
14366 _ACEOF
14367 if ac_fn_c_try_compile "$LINENO"; then :
14368 xorg_cv_cc_flag_unknown_warning_option=yes
14369 else
14370 xorg_cv_cc_flag_unknown_warning_option=no
14371 fi
14372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14373 fi
14374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14375 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14376 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14377 CFLAGS="$xorg_testset_save_CFLAGS"
14378 fi
14379
14380 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14381 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14382 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14383 fi
14384 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14386 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14387 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14388 $as_echo_n "(cached) " >&6
14389 else
14390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14391 /* end confdefs.h. */
14392 int i;
14393 _ACEOF
14394 if ac_fn_c_try_compile "$LINENO"; then :
14395 xorg_cv_cc_flag_unused_command_line_argument=yes
14396 else
14397 xorg_cv_cc_flag_unused_command_line_argument=no
14398 fi
14399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14400 fi
14401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14402 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14403 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14404 CFLAGS="$xorg_testset_save_CFLAGS"
14405 fi
14406
14407 found="no"
14408
14409 if test $found = "no" ; then
14410 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14411 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14412 fi
14413
14414 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14415 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14416 fi
14417
14418 CFLAGS="$CFLAGS -Werror=init-self"
14419
14420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
14421 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
14422 cacheid=xorg_cv_cc_flag__Werror_init_self
14423 if eval \${$cacheid+:} false; then :
14424 $as_echo_n "(cached) " >&6
14425 else
14426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14427 /* end confdefs.h. */
14428 int i;
14429 int
14430 main ()
14431 {
14432
14433 ;
14434 return 0;
14435 }
14436 _ACEOF
14437 if ac_fn_c_try_link "$LINENO"; then :
14438 eval $cacheid=yes
14439 else
14440 eval $cacheid=no
14441 fi
14442 rm -f core conftest.err conftest.$ac_objext \
14443 conftest$ac_exeext conftest.$ac_ext
14444 fi
14445
14446
14447 CFLAGS="$xorg_testset_save_CFLAGS"
14448
14449 eval supported=\$$cacheid
14450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14451 $as_echo "$supported" >&6; }
14452 if test "$supported" = "yes" ; then
14453 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
14454 found="yes"
14455 fi
14456 fi
14457
14458
14459
14460
14461
14462
14463
14464
14465
14466
14467
14468
14469
14470
14471
14472 xorg_testset_save_CFLAGS="$CFLAGS"
14473
14474 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14475 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14477 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14478 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14479 $as_echo_n "(cached) " >&6
14480 else
14481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14482 /* end confdefs.h. */
14483 int i;
14484 _ACEOF
14485 if ac_fn_c_try_compile "$LINENO"; then :
14486 xorg_cv_cc_flag_unknown_warning_option=yes
14487 else
14488 xorg_cv_cc_flag_unknown_warning_option=no
14489 fi
14490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14491 fi
14492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14493 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14494 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14495 CFLAGS="$xorg_testset_save_CFLAGS"
14496 fi
14497
14498 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14499 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14500 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14501 fi
14502 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14504 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14505 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14506 $as_echo_n "(cached) " >&6
14507 else
14508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14509 /* end confdefs.h. */
14510 int i;
14511 _ACEOF
14512 if ac_fn_c_try_compile "$LINENO"; then :
14513 xorg_cv_cc_flag_unused_command_line_argument=yes
14514 else
14515 xorg_cv_cc_flag_unused_command_line_argument=no
14516 fi
14517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14518 fi
14519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14520 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14521 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14522 CFLAGS="$xorg_testset_save_CFLAGS"
14523 fi
14524
14525 found="no"
14526
14527 if test $found = "no" ; then
14528 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14529 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14530 fi
14531
14532 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14533 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14534 fi
14535
14536 CFLAGS="$CFLAGS -Werror=main"
14537
14538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
14539 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
14540 cacheid=xorg_cv_cc_flag__Werror_main
14541 if eval \${$cacheid+:} false; then :
14542 $as_echo_n "(cached) " >&6
14543 else
14544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14545 /* end confdefs.h. */
14546 int i;
14547 int
14548 main ()
14549 {
14550
14551 ;
14552 return 0;
14553 }
14554 _ACEOF
14555 if ac_fn_c_try_link "$LINENO"; then :
14556 eval $cacheid=yes
14557 else
14558 eval $cacheid=no
14559 fi
14560 rm -f core conftest.err conftest.$ac_objext \
14561 conftest$ac_exeext conftest.$ac_ext
14562 fi
14563
14564
14565 CFLAGS="$xorg_testset_save_CFLAGS"
14566
14567 eval supported=\$$cacheid
14568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14569 $as_echo "$supported" >&6; }
14570 if test "$supported" = "yes" ; then
14571 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
14572 found="yes"
14573 fi
14574 fi
14575
14576
14577
14578
14579
14580
14581
14582
14583
14584
14585
14586
14587
14588
14589
14590 xorg_testset_save_CFLAGS="$CFLAGS"
14591
14592 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14593 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14595 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14596 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14597 $as_echo_n "(cached) " >&6
14598 else
14599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14600 /* end confdefs.h. */
14601 int i;
14602 _ACEOF
14603 if ac_fn_c_try_compile "$LINENO"; then :
14604 xorg_cv_cc_flag_unknown_warning_option=yes
14605 else
14606 xorg_cv_cc_flag_unknown_warning_option=no
14607 fi
14608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14609 fi
14610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14611 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14612 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14613 CFLAGS="$xorg_testset_save_CFLAGS"
14614 fi
14615
14616 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14617 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14618 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14619 fi
14620 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14622 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14623 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14624 $as_echo_n "(cached) " >&6
14625 else
14626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14627 /* end confdefs.h. */
14628 int i;
14629 _ACEOF
14630 if ac_fn_c_try_compile "$LINENO"; then :
14631 xorg_cv_cc_flag_unused_command_line_argument=yes
14632 else
14633 xorg_cv_cc_flag_unused_command_line_argument=no
14634 fi
14635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14636 fi
14637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14638 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14639 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14640 CFLAGS="$xorg_testset_save_CFLAGS"
14641 fi
14642
14643 found="no"
14644
14645 if test $found = "no" ; then
14646 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14647 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14648 fi
14649
14650 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14651 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14652 fi
14653
14654 CFLAGS="$CFLAGS -Werror=missing-braces"
14655
14656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
14657 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
14658 cacheid=xorg_cv_cc_flag__Werror_missing_braces
14659 if eval \${$cacheid+:} false; then :
14660 $as_echo_n "(cached) " >&6
14661 else
14662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14663 /* end confdefs.h. */
14664 int i;
14665 int
14666 main ()
14667 {
14668
14669 ;
14670 return 0;
14671 }
14672 _ACEOF
14673 if ac_fn_c_try_link "$LINENO"; then :
14674 eval $cacheid=yes
14675 else
14676 eval $cacheid=no
14677 fi
14678 rm -f core conftest.err conftest.$ac_objext \
14679 conftest$ac_exeext conftest.$ac_ext
14680 fi
14681
14682
14683 CFLAGS="$xorg_testset_save_CFLAGS"
14684
14685 eval supported=\$$cacheid
14686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14687 $as_echo "$supported" >&6; }
14688 if test "$supported" = "yes" ; then
14689 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
14690 found="yes"
14691 fi
14692 fi
14693
14694
14695
14696
14697
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708 xorg_testset_save_CFLAGS="$CFLAGS"
14709
14710 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14711 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14713 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14714 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14715 $as_echo_n "(cached) " >&6
14716 else
14717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14718 /* end confdefs.h. */
14719 int i;
14720 _ACEOF
14721 if ac_fn_c_try_compile "$LINENO"; then :
14722 xorg_cv_cc_flag_unknown_warning_option=yes
14723 else
14724 xorg_cv_cc_flag_unknown_warning_option=no
14725 fi
14726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14727 fi
14728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14729 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14730 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14731 CFLAGS="$xorg_testset_save_CFLAGS"
14732 fi
14733
14734 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14735 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14736 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14737 fi
14738 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14740 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14741 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14742 $as_echo_n "(cached) " >&6
14743 else
14744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14745 /* end confdefs.h. */
14746 int i;
14747 _ACEOF
14748 if ac_fn_c_try_compile "$LINENO"; then :
14749 xorg_cv_cc_flag_unused_command_line_argument=yes
14750 else
14751 xorg_cv_cc_flag_unused_command_line_argument=no
14752 fi
14753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14754 fi
14755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14756 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14757 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14758 CFLAGS="$xorg_testset_save_CFLAGS"
14759 fi
14760
14761 found="no"
14762
14763 if test $found = "no" ; then
14764 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14765 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14766 fi
14767
14768 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14769 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14770 fi
14771
14772 CFLAGS="$CFLAGS -Werror=sequence-point"
14773
14774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
14775 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
14776 cacheid=xorg_cv_cc_flag__Werror_sequence_point
14777 if eval \${$cacheid+:} false; then :
14778 $as_echo_n "(cached) " >&6
14779 else
14780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14781 /* end confdefs.h. */
14782 int i;
14783 int
14784 main ()
14785 {
14786
14787 ;
14788 return 0;
14789 }
14790 _ACEOF
14791 if ac_fn_c_try_link "$LINENO"; then :
14792 eval $cacheid=yes
14793 else
14794 eval $cacheid=no
14795 fi
14796 rm -f core conftest.err conftest.$ac_objext \
14797 conftest$ac_exeext conftest.$ac_ext
14798 fi
14799
14800
14801 CFLAGS="$xorg_testset_save_CFLAGS"
14802
14803 eval supported=\$$cacheid
14804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14805 $as_echo "$supported" >&6; }
14806 if test "$supported" = "yes" ; then
14807 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
14808 found="yes"
14809 fi
14810 fi
14811
14812
14813
14814
14815
14816
14817
14818
14819
14820
14821
14822
14823
14824
14825
14826 xorg_testset_save_CFLAGS="$CFLAGS"
14827
14828 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14829 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14831 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14832 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14833 $as_echo_n "(cached) " >&6
14834 else
14835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14836 /* end confdefs.h. */
14837 int i;
14838 _ACEOF
14839 if ac_fn_c_try_compile "$LINENO"; then :
14840 xorg_cv_cc_flag_unknown_warning_option=yes
14841 else
14842 xorg_cv_cc_flag_unknown_warning_option=no
14843 fi
14844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14845 fi
14846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14847 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14848 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14849 CFLAGS="$xorg_testset_save_CFLAGS"
14850 fi
14851
14852 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14853 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14854 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14855 fi
14856 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14858 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14859 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14860 $as_echo_n "(cached) " >&6
14861 else
14862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14863 /* end confdefs.h. */
14864 int i;
14865 _ACEOF
14866 if ac_fn_c_try_compile "$LINENO"; then :
14867 xorg_cv_cc_flag_unused_command_line_argument=yes
14868 else
14869 xorg_cv_cc_flag_unused_command_line_argument=no
14870 fi
14871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14872 fi
14873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14874 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14875 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14876 CFLAGS="$xorg_testset_save_CFLAGS"
14877 fi
14878
14879 found="no"
14880
14881 if test $found = "no" ; then
14882 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14883 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14884 fi
14885
14886 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14887 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14888 fi
14889
14890 CFLAGS="$CFLAGS -Werror=return-type"
14891
14892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
14893 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
14894 cacheid=xorg_cv_cc_flag__Werror_return_type
14895 if eval \${$cacheid+:} false; then :
14896 $as_echo_n "(cached) " >&6
14897 else
14898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14899 /* end confdefs.h. */
14900 int i;
14901 int
14902 main ()
14903 {
14904
14905 ;
14906 return 0;
14907 }
14908 _ACEOF
14909 if ac_fn_c_try_link "$LINENO"; then :
14910 eval $cacheid=yes
14911 else
14912 eval $cacheid=no
14913 fi
14914 rm -f core conftest.err conftest.$ac_objext \
14915 conftest$ac_exeext conftest.$ac_ext
14916 fi
14917
14918
14919 CFLAGS="$xorg_testset_save_CFLAGS"
14920
14921 eval supported=\$$cacheid
14922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14923 $as_echo "$supported" >&6; }
14924 if test "$supported" = "yes" ; then
14925 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
14926 found="yes"
14927 fi
14928 fi
14929
14930 if test $found = "no" ; then
14931 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14932 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14933 fi
14934
14935 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14936 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14937 fi
14938
14939 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
14940
14941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
14942 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
14943 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
14944 if eval \${$cacheid+:} false; then :
14945 $as_echo_n "(cached) " >&6
14946 else
14947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14948 /* end confdefs.h. */
14949 int i;
14950 int
14951 main ()
14952 {
14953
14954 ;
14955 return 0;
14956 }
14957 _ACEOF
14958 if ac_fn_c_try_link "$LINENO"; then :
14959 eval $cacheid=yes
14960 else
14961 eval $cacheid=no
14962 fi
14963 rm -f core conftest.err conftest.$ac_objext \
14964 conftest$ac_exeext conftest.$ac_ext
14965 fi
14966
14967
14968 CFLAGS="$xorg_testset_save_CFLAGS"
14969
14970 eval supported=\$$cacheid
14971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14972 $as_echo "$supported" >&6; }
14973 if test "$supported" = "yes" ; then
14974 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
14975 found="yes"
14976 fi
14977 fi
14978
14979
14980
14981
14982
14983
14984
14985
14986
14987
14988
14989
14990
14991
14992
14993 xorg_testset_save_CFLAGS="$CFLAGS"
14994
14995 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14996 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14998 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14999 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15000 $as_echo_n "(cached) " >&6
15001 else
15002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15003 /* end confdefs.h. */
15004 int i;
15005 _ACEOF
15006 if ac_fn_c_try_compile "$LINENO"; then :
15007 xorg_cv_cc_flag_unknown_warning_option=yes
15008 else
15009 xorg_cv_cc_flag_unknown_warning_option=no
15010 fi
15011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15012 fi
15013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15014 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15015 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15016 CFLAGS="$xorg_testset_save_CFLAGS"
15017 fi
15018
15019 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15020 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15021 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15022 fi
15023 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15025 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15026 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15027 $as_echo_n "(cached) " >&6
15028 else
15029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15030 /* end confdefs.h. */
15031 int i;
15032 _ACEOF
15033 if ac_fn_c_try_compile "$LINENO"; then :
15034 xorg_cv_cc_flag_unused_command_line_argument=yes
15035 else
15036 xorg_cv_cc_flag_unused_command_line_argument=no
15037 fi
15038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15039 fi
15040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15041 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15042 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15043 CFLAGS="$xorg_testset_save_CFLAGS"
15044 fi
15045
15046 found="no"
15047
15048 if test $found = "no" ; then
15049 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15050 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15051 fi
15052
15053 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15054 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15055 fi
15056
15057 CFLAGS="$CFLAGS -Werror=trigraphs"
15058
15059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
15060 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
15061 cacheid=xorg_cv_cc_flag__Werror_trigraphs
15062 if eval \${$cacheid+:} false; then :
15063 $as_echo_n "(cached) " >&6
15064 else
15065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15066 /* end confdefs.h. */
15067 int i;
15068 int
15069 main ()
15070 {
15071
15072 ;
15073 return 0;
15074 }
15075 _ACEOF
15076 if ac_fn_c_try_link "$LINENO"; then :
15077 eval $cacheid=yes
15078 else
15079 eval $cacheid=no
15080 fi
15081 rm -f core conftest.err conftest.$ac_objext \
15082 conftest$ac_exeext conftest.$ac_ext
15083 fi
15084
15085
15086 CFLAGS="$xorg_testset_save_CFLAGS"
15087
15088 eval supported=\$$cacheid
15089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15090 $as_echo "$supported" >&6; }
15091 if test "$supported" = "yes" ; then
15092 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
15093 found="yes"
15094 fi
15095 fi
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109
15110
15111 xorg_testset_save_CFLAGS="$CFLAGS"
15112
15113 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15114 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15116 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15117 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15118 $as_echo_n "(cached) " >&6
15119 else
15120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15121 /* end confdefs.h. */
15122 int i;
15123 _ACEOF
15124 if ac_fn_c_try_compile "$LINENO"; then :
15125 xorg_cv_cc_flag_unknown_warning_option=yes
15126 else
15127 xorg_cv_cc_flag_unknown_warning_option=no
15128 fi
15129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15130 fi
15131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15132 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15133 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15134 CFLAGS="$xorg_testset_save_CFLAGS"
15135 fi
15136
15137 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15138 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15139 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15140 fi
15141 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15143 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15144 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15145 $as_echo_n "(cached) " >&6
15146 else
15147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15148 /* end confdefs.h. */
15149 int i;
15150 _ACEOF
15151 if ac_fn_c_try_compile "$LINENO"; then :
15152 xorg_cv_cc_flag_unused_command_line_argument=yes
15153 else
15154 xorg_cv_cc_flag_unused_command_line_argument=no
15155 fi
15156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15157 fi
15158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15159 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15160 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15161 CFLAGS="$xorg_testset_save_CFLAGS"
15162 fi
15163
15164 found="no"
15165
15166 if test $found = "no" ; then
15167 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15168 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15169 fi
15170
15171 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15172 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15173 fi
15174
15175 CFLAGS="$CFLAGS -Werror=array-bounds"
15176
15177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
15178 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
15179 cacheid=xorg_cv_cc_flag__Werror_array_bounds
15180 if eval \${$cacheid+:} false; then :
15181 $as_echo_n "(cached) " >&6
15182 else
15183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15184 /* end confdefs.h. */
15185 int i;
15186 int
15187 main ()
15188 {
15189
15190 ;
15191 return 0;
15192 }
15193 _ACEOF
15194 if ac_fn_c_try_link "$LINENO"; then :
15195 eval $cacheid=yes
15196 else
15197 eval $cacheid=no
15198 fi
15199 rm -f core conftest.err conftest.$ac_objext \
15200 conftest$ac_exeext conftest.$ac_ext
15201 fi
15202
15203
15204 CFLAGS="$xorg_testset_save_CFLAGS"
15205
15206 eval supported=\$$cacheid
15207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15208 $as_echo "$supported" >&6; }
15209 if test "$supported" = "yes" ; then
15210 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
15211 found="yes"
15212 fi
15213 fi
15214
15215
15216
15217
15218
15219
15220
15221
15222
15223
15224
15225
15226
15227
15228
15229 xorg_testset_save_CFLAGS="$CFLAGS"
15230
15231 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15232 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15234 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15235 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15236 $as_echo_n "(cached) " >&6
15237 else
15238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15239 /* end confdefs.h. */
15240 int i;
15241 _ACEOF
15242 if ac_fn_c_try_compile "$LINENO"; then :
15243 xorg_cv_cc_flag_unknown_warning_option=yes
15244 else
15245 xorg_cv_cc_flag_unknown_warning_option=no
15246 fi
15247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15248 fi
15249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15250 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15251 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15252 CFLAGS="$xorg_testset_save_CFLAGS"
15253 fi
15254
15255 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15256 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15257 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15258 fi
15259 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15261 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15262 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15263 $as_echo_n "(cached) " >&6
15264 else
15265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15266 /* end confdefs.h. */
15267 int i;
15268 _ACEOF
15269 if ac_fn_c_try_compile "$LINENO"; then :
15270 xorg_cv_cc_flag_unused_command_line_argument=yes
15271 else
15272 xorg_cv_cc_flag_unused_command_line_argument=no
15273 fi
15274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15275 fi
15276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15277 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15278 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15279 CFLAGS="$xorg_testset_save_CFLAGS"
15280 fi
15281
15282 found="no"
15283
15284 if test $found = "no" ; then
15285 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15286 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15287 fi
15288
15289 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15290 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15291 fi
15292
15293 CFLAGS="$CFLAGS -Werror=write-strings"
15294
15295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
15296 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
15297 cacheid=xorg_cv_cc_flag__Werror_write_strings
15298 if eval \${$cacheid+:} false; then :
15299 $as_echo_n "(cached) " >&6
15300 else
15301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15302 /* end confdefs.h. */
15303 int i;
15304 int
15305 main ()
15306 {
15307
15308 ;
15309 return 0;
15310 }
15311 _ACEOF
15312 if ac_fn_c_try_link "$LINENO"; then :
15313 eval $cacheid=yes
15314 else
15315 eval $cacheid=no
15316 fi
15317 rm -f core conftest.err conftest.$ac_objext \
15318 conftest$ac_exeext conftest.$ac_ext
15319 fi
15320
15321
15322 CFLAGS="$xorg_testset_save_CFLAGS"
15323
15324 eval supported=\$$cacheid
15325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15326 $as_echo "$supported" >&6; }
15327 if test "$supported" = "yes" ; then
15328 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
15329 found="yes"
15330 fi
15331 fi
15332
15333
15334
15335
15336
15337
15338
15339
15340
15341
15342
15343
15344
15345
15346
15347 xorg_testset_save_CFLAGS="$CFLAGS"
15348
15349 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15350 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15352 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15353 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15354 $as_echo_n "(cached) " >&6
15355 else
15356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15357 /* end confdefs.h. */
15358 int i;
15359 _ACEOF
15360 if ac_fn_c_try_compile "$LINENO"; then :
15361 xorg_cv_cc_flag_unknown_warning_option=yes
15362 else
15363 xorg_cv_cc_flag_unknown_warning_option=no
15364 fi
15365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15366 fi
15367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15368 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15369 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15370 CFLAGS="$xorg_testset_save_CFLAGS"
15371 fi
15372
15373 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15374 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15375 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15376 fi
15377 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15379 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15380 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15381 $as_echo_n "(cached) " >&6
15382 else
15383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15384 /* end confdefs.h. */
15385 int i;
15386 _ACEOF
15387 if ac_fn_c_try_compile "$LINENO"; then :
15388 xorg_cv_cc_flag_unused_command_line_argument=yes
15389 else
15390 xorg_cv_cc_flag_unused_command_line_argument=no
15391 fi
15392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15393 fi
15394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15395 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15396 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15397 CFLAGS="$xorg_testset_save_CFLAGS"
15398 fi
15399
15400 found="no"
15401
15402 if test $found = "no" ; then
15403 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15404 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15405 fi
15406
15407 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15408 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15409 fi
15410
15411 CFLAGS="$CFLAGS -Werror=address"
15412
15413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
15414 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
15415 cacheid=xorg_cv_cc_flag__Werror_address
15416 if eval \${$cacheid+:} false; then :
15417 $as_echo_n "(cached) " >&6
15418 else
15419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15420 /* end confdefs.h. */
15421 int i;
15422 int
15423 main ()
15424 {
15425
15426 ;
15427 return 0;
15428 }
15429 _ACEOF
15430 if ac_fn_c_try_link "$LINENO"; then :
15431 eval $cacheid=yes
15432 else
15433 eval $cacheid=no
15434 fi
15435 rm -f core conftest.err conftest.$ac_objext \
15436 conftest$ac_exeext conftest.$ac_ext
15437 fi
15438
15439
15440 CFLAGS="$xorg_testset_save_CFLAGS"
15441
15442 eval supported=\$$cacheid
15443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15444 $as_echo "$supported" >&6; }
15445 if test "$supported" = "yes" ; then
15446 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
15447 found="yes"
15448 fi
15449 fi
15450
15451
15452
15453
15454
15455
15456
15457
15458
15459
15460
15461
15462
15463
15464
15465 xorg_testset_save_CFLAGS="$CFLAGS"
15466
15467 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15468 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15470 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15471 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15472 $as_echo_n "(cached) " >&6
15473 else
15474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15475 /* end confdefs.h. */
15476 int i;
15477 _ACEOF
15478 if ac_fn_c_try_compile "$LINENO"; then :
15479 xorg_cv_cc_flag_unknown_warning_option=yes
15480 else
15481 xorg_cv_cc_flag_unknown_warning_option=no
15482 fi
15483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15484 fi
15485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15486 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15487 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15488 CFLAGS="$xorg_testset_save_CFLAGS"
15489 fi
15490
15491 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15492 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15493 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15494 fi
15495 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15497 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15498 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15499 $as_echo_n "(cached) " >&6
15500 else
15501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15502 /* end confdefs.h. */
15503 int i;
15504 _ACEOF
15505 if ac_fn_c_try_compile "$LINENO"; then :
15506 xorg_cv_cc_flag_unused_command_line_argument=yes
15507 else
15508 xorg_cv_cc_flag_unused_command_line_argument=no
15509 fi
15510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15511 fi
15512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15513 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15514 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15515 CFLAGS="$xorg_testset_save_CFLAGS"
15516 fi
15517
15518 found="no"
15519
15520 if test $found = "no" ; then
15521 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15522 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15523 fi
15524
15525 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15526 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15527 fi
15528
15529 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
15530
15531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
15532 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
15533 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
15534 if eval \${$cacheid+:} false; then :
15535 $as_echo_n "(cached) " >&6
15536 else
15537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15538 /* end confdefs.h. */
15539 int i;
15540 int
15541 main ()
15542 {
15543
15544 ;
15545 return 0;
15546 }
15547 _ACEOF
15548 if ac_fn_c_try_link "$LINENO"; then :
15549 eval $cacheid=yes
15550 else
15551 eval $cacheid=no
15552 fi
15553 rm -f core conftest.err conftest.$ac_objext \
15554 conftest$ac_exeext conftest.$ac_ext
15555 fi
15556
15557
15558 CFLAGS="$xorg_testset_save_CFLAGS"
15559
15560 eval supported=\$$cacheid
15561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15562 $as_echo "$supported" >&6; }
15563 if test "$supported" = "yes" ; then
15564 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
15565 found="yes"
15566 fi
15567 fi
15568
15569 if test $found = "no" ; then
15570 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15571 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15572 fi
15573
15574 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15575 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15576 fi
15577
15578 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15579
15580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
15581 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
15582 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
15583 if eval \${$cacheid+:} false; then :
15584 $as_echo_n "(cached) " >&6
15585 else
15586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15587 /* end confdefs.h. */
15588 int i;
15589 int
15590 main ()
15591 {
15592
15593 ;
15594 return 0;
15595 }
15596 _ACEOF
15597 if ac_fn_c_try_link "$LINENO"; then :
15598 eval $cacheid=yes
15599 else
15600 eval $cacheid=no
15601 fi
15602 rm -f core conftest.err conftest.$ac_objext \
15603 conftest$ac_exeext conftest.$ac_ext
15604 fi
15605
15606
15607 CFLAGS="$xorg_testset_save_CFLAGS"
15608
15609 eval supported=\$$cacheid
15610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15611 $as_echo "$supported" >&6; }
15612 if test "$supported" = "yes" ; then
15613 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15614 found="yes"
15615 fi
15616 fi
15617
15618
15619
15620
15621
15622
15623
15624
15625
15626
15627
15628
15629
15630
15631
15632 xorg_testset_save_CFLAGS="$CFLAGS"
15633
15634 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15635 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15637 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15638 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15639 $as_echo_n "(cached) " >&6
15640 else
15641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15642 /* end confdefs.h. */
15643 int i;
15644 _ACEOF
15645 if ac_fn_c_try_compile "$LINENO"; then :
15646 xorg_cv_cc_flag_unknown_warning_option=yes
15647 else
15648 xorg_cv_cc_flag_unknown_warning_option=no
15649 fi
15650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15651 fi
15652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15653 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15654 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15655 CFLAGS="$xorg_testset_save_CFLAGS"
15656 fi
15657
15658 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15659 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15660 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15661 fi
15662 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15664 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15665 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15666 $as_echo_n "(cached) " >&6
15667 else
15668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15669 /* end confdefs.h. */
15670 int i;
15671 _ACEOF
15672 if ac_fn_c_try_compile "$LINENO"; then :
15673 xorg_cv_cc_flag_unused_command_line_argument=yes
15674 else
15675 xorg_cv_cc_flag_unused_command_line_argument=no
15676 fi
15677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15678 fi
15679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15680 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15681 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15682 CFLAGS="$xorg_testset_save_CFLAGS"
15683 fi
15684
15685 found="no"
15686
15687 if test $found = "no" ; then
15688 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15689 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15690 fi
15691
15692 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15693 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15694 fi
15695
15696 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
15697
15698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
15699 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
15700 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
15701 if eval \${$cacheid+:} false; then :
15702 $as_echo_n "(cached) " >&6
15703 else
15704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15705 /* end confdefs.h. */
15706 int i;
15707 int
15708 main ()
15709 {
15710
15711 ;
15712 return 0;
15713 }
15714 _ACEOF
15715 if ac_fn_c_try_link "$LINENO"; then :
15716 eval $cacheid=yes
15717 else
15718 eval $cacheid=no
15719 fi
15720 rm -f core conftest.err conftest.$ac_objext \
15721 conftest$ac_exeext conftest.$ac_ext
15722 fi
15723
15724
15725 CFLAGS="$xorg_testset_save_CFLAGS"
15726
15727 eval supported=\$$cacheid
15728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15729 $as_echo "$supported" >&6; }
15730 if test "$supported" = "yes" ; then
15731 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
15732 found="yes"
15733 fi
15734 fi
15735
15736 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
15737 else
15738 { $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
15739 $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;}
15740
15741
15742
15743
15744
15745
15746
15747
15748
15749
15750
15751
15752
15753 xorg_testset_save_CFLAGS="$CFLAGS"
15754
15755 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15756 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15758 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15759 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15760 $as_echo_n "(cached) " >&6
15761 else
15762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15763 /* end confdefs.h. */
15764 int i;
15765 _ACEOF
15766 if ac_fn_c_try_compile "$LINENO"; then :
15767 xorg_cv_cc_flag_unknown_warning_option=yes
15768 else
15769 xorg_cv_cc_flag_unknown_warning_option=no
15770 fi
15771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15772 fi
15773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15774 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15775 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15776 CFLAGS="$xorg_testset_save_CFLAGS"
15777 fi
15778
15779 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15780 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15781 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15782 fi
15783 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15785 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15786 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15787 $as_echo_n "(cached) " >&6
15788 else
15789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15790 /* end confdefs.h. */
15791 int i;
15792 _ACEOF
15793 if ac_fn_c_try_compile "$LINENO"; then :
15794 xorg_cv_cc_flag_unused_command_line_argument=yes
15795 else
15796 xorg_cv_cc_flag_unused_command_line_argument=no
15797 fi
15798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15799 fi
15800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15801 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15802 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15803 CFLAGS="$xorg_testset_save_CFLAGS"
15804 fi
15805
15806 found="no"
15807
15808 if test $found = "no" ; then
15809 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15810 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15811 fi
15812
15813 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15814 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15815 fi
15816
15817 CFLAGS="$CFLAGS -Wimplicit"
15818
15819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
15820 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
15821 cacheid=xorg_cv_cc_flag__Wimplicit
15822 if eval \${$cacheid+:} false; then :
15823 $as_echo_n "(cached) " >&6
15824 else
15825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15826 /* end confdefs.h. */
15827 int i;
15828 int
15829 main ()
15830 {
15831
15832 ;
15833 return 0;
15834 }
15835 _ACEOF
15836 if ac_fn_c_try_link "$LINENO"; then :
15837 eval $cacheid=yes
15838 else
15839 eval $cacheid=no
15840 fi
15841 rm -f core conftest.err conftest.$ac_objext \
15842 conftest$ac_exeext conftest.$ac_ext
15843 fi
15844
15845
15846 CFLAGS="$xorg_testset_save_CFLAGS"
15847
15848 eval supported=\$$cacheid
15849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15850 $as_echo "$supported" >&6; }
15851 if test "$supported" = "yes" ; then
15852 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
15853 found="yes"
15854 fi
15855 fi
15856
15857
15858
15859
15860
15861
15862
15863
15864
15865
15866
15867
15868
15869
15870
15871 xorg_testset_save_CFLAGS="$CFLAGS"
15872
15873 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15874 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15876 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15877 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15878 $as_echo_n "(cached) " >&6
15879 else
15880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15881 /* end confdefs.h. */
15882 int i;
15883 _ACEOF
15884 if ac_fn_c_try_compile "$LINENO"; then :
15885 xorg_cv_cc_flag_unknown_warning_option=yes
15886 else
15887 xorg_cv_cc_flag_unknown_warning_option=no
15888 fi
15889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15890 fi
15891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15892 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15893 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15894 CFLAGS="$xorg_testset_save_CFLAGS"
15895 fi
15896
15897 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15898 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15899 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15900 fi
15901 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15903 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15904 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15905 $as_echo_n "(cached) " >&6
15906 else
15907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15908 /* end confdefs.h. */
15909 int i;
15910 _ACEOF
15911 if ac_fn_c_try_compile "$LINENO"; then :
15912 xorg_cv_cc_flag_unused_command_line_argument=yes
15913 else
15914 xorg_cv_cc_flag_unused_command_line_argument=no
15915 fi
15916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15917 fi
15918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15919 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15920 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15921 CFLAGS="$xorg_testset_save_CFLAGS"
15922 fi
15923
15924 found="no"
15925
15926 if test $found = "no" ; then
15927 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15928 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15929 fi
15930
15931 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15932 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15933 fi
15934
15935 CFLAGS="$CFLAGS -Wnonnull"
15936
15937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
15938 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
15939 cacheid=xorg_cv_cc_flag__Wnonnull
15940 if eval \${$cacheid+:} false; then :
15941 $as_echo_n "(cached) " >&6
15942 else
15943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15944 /* end confdefs.h. */
15945 int i;
15946 int
15947 main ()
15948 {
15949
15950 ;
15951 return 0;
15952 }
15953 _ACEOF
15954 if ac_fn_c_try_link "$LINENO"; then :
15955 eval $cacheid=yes
15956 else
15957 eval $cacheid=no
15958 fi
15959 rm -f core conftest.err conftest.$ac_objext \
15960 conftest$ac_exeext conftest.$ac_ext
15961 fi
15962
15963
15964 CFLAGS="$xorg_testset_save_CFLAGS"
15965
15966 eval supported=\$$cacheid
15967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15968 $as_echo "$supported" >&6; }
15969 if test "$supported" = "yes" ; then
15970 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
15971 found="yes"
15972 fi
15973 fi
15974
15975
15976
15977
15978
15979
15980
15981
15982
15983
15984
15985
15986
15987
15988
15989 xorg_testset_save_CFLAGS="$CFLAGS"
15990
15991 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15992 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15994 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15995 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15996 $as_echo_n "(cached) " >&6
15997 else
15998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15999 /* end confdefs.h. */
16000 int i;
16001 _ACEOF
16002 if ac_fn_c_try_compile "$LINENO"; then :
16003 xorg_cv_cc_flag_unknown_warning_option=yes
16004 else
16005 xorg_cv_cc_flag_unknown_warning_option=no
16006 fi
16007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16008 fi
16009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16010 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16011 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16012 CFLAGS="$xorg_testset_save_CFLAGS"
16013 fi
16014
16015 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16016 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16017 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16018 fi
16019 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16021 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16022 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16023 $as_echo_n "(cached) " >&6
16024 else
16025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16026 /* end confdefs.h. */
16027 int i;
16028 _ACEOF
16029 if ac_fn_c_try_compile "$LINENO"; then :
16030 xorg_cv_cc_flag_unused_command_line_argument=yes
16031 else
16032 xorg_cv_cc_flag_unused_command_line_argument=no
16033 fi
16034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16035 fi
16036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16037 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16038 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16039 CFLAGS="$xorg_testset_save_CFLAGS"
16040 fi
16041
16042 found="no"
16043
16044 if test $found = "no" ; then
16045 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16046 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16047 fi
16048
16049 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16050 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16051 fi
16052
16053 CFLAGS="$CFLAGS -Winit-self"
16054
16055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
16056 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
16057 cacheid=xorg_cv_cc_flag__Winit_self
16058 if eval \${$cacheid+:} false; then :
16059 $as_echo_n "(cached) " >&6
16060 else
16061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16062 /* end confdefs.h. */
16063 int i;
16064 int
16065 main ()
16066 {
16067
16068 ;
16069 return 0;
16070 }
16071 _ACEOF
16072 if ac_fn_c_try_link "$LINENO"; then :
16073 eval $cacheid=yes
16074 else
16075 eval $cacheid=no
16076 fi
16077 rm -f core conftest.err conftest.$ac_objext \
16078 conftest$ac_exeext conftest.$ac_ext
16079 fi
16080
16081
16082 CFLAGS="$xorg_testset_save_CFLAGS"
16083
16084 eval supported=\$$cacheid
16085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16086 $as_echo "$supported" >&6; }
16087 if test "$supported" = "yes" ; then
16088 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
16089 found="yes"
16090 fi
16091 fi
16092
16093
16094
16095
16096
16097
16098
16099
16100
16101
16102
16103
16104
16105
16106
16107 xorg_testset_save_CFLAGS="$CFLAGS"
16108
16109 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16110 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16112 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16113 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16114 $as_echo_n "(cached) " >&6
16115 else
16116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16117 /* end confdefs.h. */
16118 int i;
16119 _ACEOF
16120 if ac_fn_c_try_compile "$LINENO"; then :
16121 xorg_cv_cc_flag_unknown_warning_option=yes
16122 else
16123 xorg_cv_cc_flag_unknown_warning_option=no
16124 fi
16125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16126 fi
16127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16128 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16129 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16130 CFLAGS="$xorg_testset_save_CFLAGS"
16131 fi
16132
16133 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16134 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16135 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16136 fi
16137 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16139 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16140 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16141 $as_echo_n "(cached) " >&6
16142 else
16143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16144 /* end confdefs.h. */
16145 int i;
16146 _ACEOF
16147 if ac_fn_c_try_compile "$LINENO"; then :
16148 xorg_cv_cc_flag_unused_command_line_argument=yes
16149 else
16150 xorg_cv_cc_flag_unused_command_line_argument=no
16151 fi
16152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16153 fi
16154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16155 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16156 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16157 CFLAGS="$xorg_testset_save_CFLAGS"
16158 fi
16159
16160 found="no"
16161
16162 if test $found = "no" ; then
16163 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16164 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16165 fi
16166
16167 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16168 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16169 fi
16170
16171 CFLAGS="$CFLAGS -Wmain"
16172
16173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
16174 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
16175 cacheid=xorg_cv_cc_flag__Wmain
16176 if eval \${$cacheid+:} false; then :
16177 $as_echo_n "(cached) " >&6
16178 else
16179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16180 /* end confdefs.h. */
16181 int i;
16182 int
16183 main ()
16184 {
16185
16186 ;
16187 return 0;
16188 }
16189 _ACEOF
16190 if ac_fn_c_try_link "$LINENO"; then :
16191 eval $cacheid=yes
16192 else
16193 eval $cacheid=no
16194 fi
16195 rm -f core conftest.err conftest.$ac_objext \
16196 conftest$ac_exeext conftest.$ac_ext
16197 fi
16198
16199
16200 CFLAGS="$xorg_testset_save_CFLAGS"
16201
16202 eval supported=\$$cacheid
16203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16204 $as_echo "$supported" >&6; }
16205 if test "$supported" = "yes" ; then
16206 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
16207 found="yes"
16208 fi
16209 fi
16210
16211
16212
16213
16214
16215
16216
16217
16218
16219
16220
16221
16222
16223
16224
16225 xorg_testset_save_CFLAGS="$CFLAGS"
16226
16227 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16228 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16230 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16231 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16232 $as_echo_n "(cached) " >&6
16233 else
16234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16235 /* end confdefs.h. */
16236 int i;
16237 _ACEOF
16238 if ac_fn_c_try_compile "$LINENO"; then :
16239 xorg_cv_cc_flag_unknown_warning_option=yes
16240 else
16241 xorg_cv_cc_flag_unknown_warning_option=no
16242 fi
16243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16244 fi
16245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16246 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16247 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16248 CFLAGS="$xorg_testset_save_CFLAGS"
16249 fi
16250
16251 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16252 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16253 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16254 fi
16255 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16257 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16258 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16259 $as_echo_n "(cached) " >&6
16260 else
16261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16262 /* end confdefs.h. */
16263 int i;
16264 _ACEOF
16265 if ac_fn_c_try_compile "$LINENO"; then :
16266 xorg_cv_cc_flag_unused_command_line_argument=yes
16267 else
16268 xorg_cv_cc_flag_unused_command_line_argument=no
16269 fi
16270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16271 fi
16272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16273 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16274 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16275 CFLAGS="$xorg_testset_save_CFLAGS"
16276 fi
16277
16278 found="no"
16279
16280 if test $found = "no" ; then
16281 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16282 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16283 fi
16284
16285 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16286 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16287 fi
16288
16289 CFLAGS="$CFLAGS -Wmissing-braces"
16290
16291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
16292 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
16293 cacheid=xorg_cv_cc_flag__Wmissing_braces
16294 if eval \${$cacheid+:} false; then :
16295 $as_echo_n "(cached) " >&6
16296 else
16297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16298 /* end confdefs.h. */
16299 int i;
16300 int
16301 main ()
16302 {
16303
16304 ;
16305 return 0;
16306 }
16307 _ACEOF
16308 if ac_fn_c_try_link "$LINENO"; then :
16309 eval $cacheid=yes
16310 else
16311 eval $cacheid=no
16312 fi
16313 rm -f core conftest.err conftest.$ac_objext \
16314 conftest$ac_exeext conftest.$ac_ext
16315 fi
16316
16317
16318 CFLAGS="$xorg_testset_save_CFLAGS"
16319
16320 eval supported=\$$cacheid
16321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16322 $as_echo "$supported" >&6; }
16323 if test "$supported" = "yes" ; then
16324 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
16325 found="yes"
16326 fi
16327 fi
16328
16329
16330
16331
16332
16333
16334
16335
16336
16337
16338
16339
16340
16341
16342
16343 xorg_testset_save_CFLAGS="$CFLAGS"
16344
16345 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16346 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16348 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16349 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16350 $as_echo_n "(cached) " >&6
16351 else
16352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16353 /* end confdefs.h. */
16354 int i;
16355 _ACEOF
16356 if ac_fn_c_try_compile "$LINENO"; then :
16357 xorg_cv_cc_flag_unknown_warning_option=yes
16358 else
16359 xorg_cv_cc_flag_unknown_warning_option=no
16360 fi
16361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16362 fi
16363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16364 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16365 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16366 CFLAGS="$xorg_testset_save_CFLAGS"
16367 fi
16368
16369 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16370 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16371 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16372 fi
16373 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16375 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16376 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16377 $as_echo_n "(cached) " >&6
16378 else
16379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16380 /* end confdefs.h. */
16381 int i;
16382 _ACEOF
16383 if ac_fn_c_try_compile "$LINENO"; then :
16384 xorg_cv_cc_flag_unused_command_line_argument=yes
16385 else
16386 xorg_cv_cc_flag_unused_command_line_argument=no
16387 fi
16388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16389 fi
16390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16391 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16392 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16393 CFLAGS="$xorg_testset_save_CFLAGS"
16394 fi
16395
16396 found="no"
16397
16398 if test $found = "no" ; then
16399 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16400 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16401 fi
16402
16403 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16404 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16405 fi
16406
16407 CFLAGS="$CFLAGS -Wsequence-point"
16408
16409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
16410 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
16411 cacheid=xorg_cv_cc_flag__Wsequence_point
16412 if eval \${$cacheid+:} false; then :
16413 $as_echo_n "(cached) " >&6
16414 else
16415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16416 /* end confdefs.h. */
16417 int i;
16418 int
16419 main ()
16420 {
16421
16422 ;
16423 return 0;
16424 }
16425 _ACEOF
16426 if ac_fn_c_try_link "$LINENO"; then :
16427 eval $cacheid=yes
16428 else
16429 eval $cacheid=no
16430 fi
16431 rm -f core conftest.err conftest.$ac_objext \
16432 conftest$ac_exeext conftest.$ac_ext
16433 fi
16434
16435
16436 CFLAGS="$xorg_testset_save_CFLAGS"
16437
16438 eval supported=\$$cacheid
16439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16440 $as_echo "$supported" >&6; }
16441 if test "$supported" = "yes" ; then
16442 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
16443 found="yes"
16444 fi
16445 fi
16446
16447
16448
16449
16450
16451
16452
16453
16454
16455
16456
16457
16458
16459
16460
16461 xorg_testset_save_CFLAGS="$CFLAGS"
16462
16463 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16464 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16466 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16467 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16468 $as_echo_n "(cached) " >&6
16469 else
16470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16471 /* end confdefs.h. */
16472 int i;
16473 _ACEOF
16474 if ac_fn_c_try_compile "$LINENO"; then :
16475 xorg_cv_cc_flag_unknown_warning_option=yes
16476 else
16477 xorg_cv_cc_flag_unknown_warning_option=no
16478 fi
16479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16480 fi
16481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16482 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16483 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16484 CFLAGS="$xorg_testset_save_CFLAGS"
16485 fi
16486
16487 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16488 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16489 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16490 fi
16491 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16493 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16494 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16495 $as_echo_n "(cached) " >&6
16496 else
16497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16498 /* end confdefs.h. */
16499 int i;
16500 _ACEOF
16501 if ac_fn_c_try_compile "$LINENO"; then :
16502 xorg_cv_cc_flag_unused_command_line_argument=yes
16503 else
16504 xorg_cv_cc_flag_unused_command_line_argument=no
16505 fi
16506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16507 fi
16508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16509 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16510 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16511 CFLAGS="$xorg_testset_save_CFLAGS"
16512 fi
16513
16514 found="no"
16515
16516 if test $found = "no" ; then
16517 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16518 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16519 fi
16520
16521 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16522 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16523 fi
16524
16525 CFLAGS="$CFLAGS -Wreturn-type"
16526
16527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
16528 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
16529 cacheid=xorg_cv_cc_flag__Wreturn_type
16530 if eval \${$cacheid+:} false; then :
16531 $as_echo_n "(cached) " >&6
16532 else
16533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16534 /* end confdefs.h. */
16535 int i;
16536 int
16537 main ()
16538 {
16539
16540 ;
16541 return 0;
16542 }
16543 _ACEOF
16544 if ac_fn_c_try_link "$LINENO"; then :
16545 eval $cacheid=yes
16546 else
16547 eval $cacheid=no
16548 fi
16549 rm -f core conftest.err conftest.$ac_objext \
16550 conftest$ac_exeext conftest.$ac_ext
16551 fi
16552
16553
16554 CFLAGS="$xorg_testset_save_CFLAGS"
16555
16556 eval supported=\$$cacheid
16557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16558 $as_echo "$supported" >&6; }
16559 if test "$supported" = "yes" ; then
16560 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
16561 found="yes"
16562 fi
16563 fi
16564
16565
16566
16567
16568
16569
16570
16571
16572
16573
16574
16575
16576
16577
16578
16579 xorg_testset_save_CFLAGS="$CFLAGS"
16580
16581 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16582 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16584 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16585 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16586 $as_echo_n "(cached) " >&6
16587 else
16588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16589 /* end confdefs.h. */
16590 int i;
16591 _ACEOF
16592 if ac_fn_c_try_compile "$LINENO"; then :
16593 xorg_cv_cc_flag_unknown_warning_option=yes
16594 else
16595 xorg_cv_cc_flag_unknown_warning_option=no
16596 fi
16597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16598 fi
16599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16600 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16601 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16602 CFLAGS="$xorg_testset_save_CFLAGS"
16603 fi
16604
16605 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16606 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16607 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16608 fi
16609 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16611 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16612 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16613 $as_echo_n "(cached) " >&6
16614 else
16615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16616 /* end confdefs.h. */
16617 int i;
16618 _ACEOF
16619 if ac_fn_c_try_compile "$LINENO"; then :
16620 xorg_cv_cc_flag_unused_command_line_argument=yes
16621 else
16622 xorg_cv_cc_flag_unused_command_line_argument=no
16623 fi
16624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16625 fi
16626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16627 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16628 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16629 CFLAGS="$xorg_testset_save_CFLAGS"
16630 fi
16631
16632 found="no"
16633
16634 if test $found = "no" ; then
16635 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16636 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16637 fi
16638
16639 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16640 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16641 fi
16642
16643 CFLAGS="$CFLAGS -Wtrigraphs"
16644
16645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
16646 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
16647 cacheid=xorg_cv_cc_flag__Wtrigraphs
16648 if eval \${$cacheid+:} false; then :
16649 $as_echo_n "(cached) " >&6
16650 else
16651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16652 /* end confdefs.h. */
16653 int i;
16654 int
16655 main ()
16656 {
16657
16658 ;
16659 return 0;
16660 }
16661 _ACEOF
16662 if ac_fn_c_try_link "$LINENO"; then :
16663 eval $cacheid=yes
16664 else
16665 eval $cacheid=no
16666 fi
16667 rm -f core conftest.err conftest.$ac_objext \
16668 conftest$ac_exeext conftest.$ac_ext
16669 fi
16670
16671
16672 CFLAGS="$xorg_testset_save_CFLAGS"
16673
16674 eval supported=\$$cacheid
16675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16676 $as_echo "$supported" >&6; }
16677 if test "$supported" = "yes" ; then
16678 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
16679 found="yes"
16680 fi
16681 fi
16682
16683
16684
16685
16686
16687
16688
16689
16690
16691
16692
16693
16694
16695
16696
16697 xorg_testset_save_CFLAGS="$CFLAGS"
16698
16699 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16700 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16702 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16703 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16704 $as_echo_n "(cached) " >&6
16705 else
16706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16707 /* end confdefs.h. */
16708 int i;
16709 _ACEOF
16710 if ac_fn_c_try_compile "$LINENO"; then :
16711 xorg_cv_cc_flag_unknown_warning_option=yes
16712 else
16713 xorg_cv_cc_flag_unknown_warning_option=no
16714 fi
16715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16716 fi
16717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16718 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16719 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16720 CFLAGS="$xorg_testset_save_CFLAGS"
16721 fi
16722
16723 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16724 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16725 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16726 fi
16727 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16729 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16730 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16731 $as_echo_n "(cached) " >&6
16732 else
16733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16734 /* end confdefs.h. */
16735 int i;
16736 _ACEOF
16737 if ac_fn_c_try_compile "$LINENO"; then :
16738 xorg_cv_cc_flag_unused_command_line_argument=yes
16739 else
16740 xorg_cv_cc_flag_unused_command_line_argument=no
16741 fi
16742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16743 fi
16744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16745 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16746 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16747 CFLAGS="$xorg_testset_save_CFLAGS"
16748 fi
16749
16750 found="no"
16751
16752 if test $found = "no" ; then
16753 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16754 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16755 fi
16756
16757 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16758 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16759 fi
16760
16761 CFLAGS="$CFLAGS -Warray-bounds"
16762
16763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
16764 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
16765 cacheid=xorg_cv_cc_flag__Warray_bounds
16766 if eval \${$cacheid+:} false; then :
16767 $as_echo_n "(cached) " >&6
16768 else
16769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16770 /* end confdefs.h. */
16771 int i;
16772 int
16773 main ()
16774 {
16775
16776 ;
16777 return 0;
16778 }
16779 _ACEOF
16780 if ac_fn_c_try_link "$LINENO"; then :
16781 eval $cacheid=yes
16782 else
16783 eval $cacheid=no
16784 fi
16785 rm -f core conftest.err conftest.$ac_objext \
16786 conftest$ac_exeext conftest.$ac_ext
16787 fi
16788
16789
16790 CFLAGS="$xorg_testset_save_CFLAGS"
16791
16792 eval supported=\$$cacheid
16793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16794 $as_echo "$supported" >&6; }
16795 if test "$supported" = "yes" ; then
16796 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
16797 found="yes"
16798 fi
16799 fi
16800
16801
16802
16803
16804
16805
16806
16807
16808
16809
16810
16811
16812
16813
16814
16815 xorg_testset_save_CFLAGS="$CFLAGS"
16816
16817 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16818 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16820 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16821 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16822 $as_echo_n "(cached) " >&6
16823 else
16824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16825 /* end confdefs.h. */
16826 int i;
16827 _ACEOF
16828 if ac_fn_c_try_compile "$LINENO"; then :
16829 xorg_cv_cc_flag_unknown_warning_option=yes
16830 else
16831 xorg_cv_cc_flag_unknown_warning_option=no
16832 fi
16833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16834 fi
16835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16836 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16837 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16838 CFLAGS="$xorg_testset_save_CFLAGS"
16839 fi
16840
16841 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16842 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16843 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16844 fi
16845 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16847 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16848 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16849 $as_echo_n "(cached) " >&6
16850 else
16851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16852 /* end confdefs.h. */
16853 int i;
16854 _ACEOF
16855 if ac_fn_c_try_compile "$LINENO"; then :
16856 xorg_cv_cc_flag_unused_command_line_argument=yes
16857 else
16858 xorg_cv_cc_flag_unused_command_line_argument=no
16859 fi
16860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16861 fi
16862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16863 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16864 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16865 CFLAGS="$xorg_testset_save_CFLAGS"
16866 fi
16867
16868 found="no"
16869
16870 if test $found = "no" ; then
16871 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16872 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16873 fi
16874
16875 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16876 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16877 fi
16878
16879 CFLAGS="$CFLAGS -Wwrite-strings"
16880
16881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
16882 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
16883 cacheid=xorg_cv_cc_flag__Wwrite_strings
16884 if eval \${$cacheid+:} false; then :
16885 $as_echo_n "(cached) " >&6
16886 else
16887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16888 /* end confdefs.h. */
16889 int i;
16890 int
16891 main ()
16892 {
16893
16894 ;
16895 return 0;
16896 }
16897 _ACEOF
16898 if ac_fn_c_try_link "$LINENO"; then :
16899 eval $cacheid=yes
16900 else
16901 eval $cacheid=no
16902 fi
16903 rm -f core conftest.err conftest.$ac_objext \
16904 conftest$ac_exeext conftest.$ac_ext
16905 fi
16906
16907
16908 CFLAGS="$xorg_testset_save_CFLAGS"
16909
16910 eval supported=\$$cacheid
16911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16912 $as_echo "$supported" >&6; }
16913 if test "$supported" = "yes" ; then
16914 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
16915 found="yes"
16916 fi
16917 fi
16918
16919
16920
16921
16922
16923
16924
16925
16926
16927
16928
16929
16930
16931
16932
16933 xorg_testset_save_CFLAGS="$CFLAGS"
16934
16935 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16936 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16938 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16939 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16940 $as_echo_n "(cached) " >&6
16941 else
16942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16943 /* end confdefs.h. */
16944 int i;
16945 _ACEOF
16946 if ac_fn_c_try_compile "$LINENO"; then :
16947 xorg_cv_cc_flag_unknown_warning_option=yes
16948 else
16949 xorg_cv_cc_flag_unknown_warning_option=no
16950 fi
16951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16952 fi
16953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16954 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16955 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16956 CFLAGS="$xorg_testset_save_CFLAGS"
16957 fi
16958
16959 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16960 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16961 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16962 fi
16963 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16965 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16966 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16967 $as_echo_n "(cached) " >&6
16968 else
16969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16970 /* end confdefs.h. */
16971 int i;
16972 _ACEOF
16973 if ac_fn_c_try_compile "$LINENO"; then :
16974 xorg_cv_cc_flag_unused_command_line_argument=yes
16975 else
16976 xorg_cv_cc_flag_unused_command_line_argument=no
16977 fi
16978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16979 fi
16980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16981 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16982 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16983 CFLAGS="$xorg_testset_save_CFLAGS"
16984 fi
16985
16986 found="no"
16987
16988 if test $found = "no" ; then
16989 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16990 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16991 fi
16992
16993 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16994 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16995 fi
16996
16997 CFLAGS="$CFLAGS -Waddress"
16998
16999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
17000 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
17001 cacheid=xorg_cv_cc_flag__Waddress
17002 if eval \${$cacheid+:} false; then :
17003 $as_echo_n "(cached) " >&6
17004 else
17005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17006 /* end confdefs.h. */
17007 int i;
17008 int
17009 main ()
17010 {
17011
17012 ;
17013 return 0;
17014 }
17015 _ACEOF
17016 if ac_fn_c_try_link "$LINENO"; then :
17017 eval $cacheid=yes
17018 else
17019 eval $cacheid=no
17020 fi
17021 rm -f core conftest.err conftest.$ac_objext \
17022 conftest$ac_exeext conftest.$ac_ext
17023 fi
17024
17025
17026 CFLAGS="$xorg_testset_save_CFLAGS"
17027
17028 eval supported=\$$cacheid
17029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17030 $as_echo "$supported" >&6; }
17031 if test "$supported" = "yes" ; then
17032 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
17033 found="yes"
17034 fi
17035 fi
17036
17037
17038
17039
17040
17041
17042
17043
17044
17045
17046
17047
17048
17049
17050
17051 xorg_testset_save_CFLAGS="$CFLAGS"
17052
17053 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17054 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17056 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17057 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17058 $as_echo_n "(cached) " >&6
17059 else
17060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17061 /* end confdefs.h. */
17062 int i;
17063 _ACEOF
17064 if ac_fn_c_try_compile "$LINENO"; then :
17065 xorg_cv_cc_flag_unknown_warning_option=yes
17066 else
17067 xorg_cv_cc_flag_unknown_warning_option=no
17068 fi
17069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17070 fi
17071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17072 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17073 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17074 CFLAGS="$xorg_testset_save_CFLAGS"
17075 fi
17076
17077 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17078 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17079 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17080 fi
17081 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17083 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17084 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17085 $as_echo_n "(cached) " >&6
17086 else
17087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17088 /* end confdefs.h. */
17089 int i;
17090 _ACEOF
17091 if ac_fn_c_try_compile "$LINENO"; then :
17092 xorg_cv_cc_flag_unused_command_line_argument=yes
17093 else
17094 xorg_cv_cc_flag_unused_command_line_argument=no
17095 fi
17096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17097 fi
17098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17099 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17100 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17101 CFLAGS="$xorg_testset_save_CFLAGS"
17102 fi
17103
17104 found="no"
17105
17106 if test $found = "no" ; then
17107 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17108 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17109 fi
17110
17111 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17112 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17113 fi
17114
17115 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
17116
17117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
17118 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
17119 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
17120 if eval \${$cacheid+:} false; then :
17121 $as_echo_n "(cached) " >&6
17122 else
17123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17124 /* end confdefs.h. */
17125 int i;
17126 int
17127 main ()
17128 {
17129
17130 ;
17131 return 0;
17132 }
17133 _ACEOF
17134 if ac_fn_c_try_link "$LINENO"; then :
17135 eval $cacheid=yes
17136 else
17137 eval $cacheid=no
17138 fi
17139 rm -f core conftest.err conftest.$ac_objext \
17140 conftest$ac_exeext conftest.$ac_ext
17141 fi
17142
17143
17144 CFLAGS="$xorg_testset_save_CFLAGS"
17145
17146 eval supported=\$$cacheid
17147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17148 $as_echo "$supported" >&6; }
17149 if test "$supported" = "yes" ; then
17150 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
17151 found="yes"
17152 fi
17153 fi
17154
17155
17156
17157
17158
17159
17160
17161
17162
17163
17164
17165
17166
17167
17168
17169 xorg_testset_save_CFLAGS="$CFLAGS"
17170
17171 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17172 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17174 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17175 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17176 $as_echo_n "(cached) " >&6
17177 else
17178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17179 /* end confdefs.h. */
17180 int i;
17181 _ACEOF
17182 if ac_fn_c_try_compile "$LINENO"; then :
17183 xorg_cv_cc_flag_unknown_warning_option=yes
17184 else
17185 xorg_cv_cc_flag_unknown_warning_option=no
17186 fi
17187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17188 fi
17189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17190 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17191 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17192 CFLAGS="$xorg_testset_save_CFLAGS"
17193 fi
17194
17195 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17196 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17197 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17198 fi
17199 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17201 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17202 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17203 $as_echo_n "(cached) " >&6
17204 else
17205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17206 /* end confdefs.h. */
17207 int i;
17208 _ACEOF
17209 if ac_fn_c_try_compile "$LINENO"; then :
17210 xorg_cv_cc_flag_unused_command_line_argument=yes
17211 else
17212 xorg_cv_cc_flag_unused_command_line_argument=no
17213 fi
17214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17215 fi
17216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17217 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17218 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17219 CFLAGS="$xorg_testset_save_CFLAGS"
17220 fi
17221
17222 found="no"
17223
17224 if test $found = "no" ; then
17225 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17226 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17227 fi
17228
17229 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17230 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17231 fi
17232
17233 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
17234
17235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
17236 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
17237 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
17238 if eval \${$cacheid+:} false; then :
17239 $as_echo_n "(cached) " >&6
17240 else
17241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17242 /* end confdefs.h. */
17243 int i;
17244 int
17245 main ()
17246 {
17247
17248 ;
17249 return 0;
17250 }
17251 _ACEOF
17252 if ac_fn_c_try_link "$LINENO"; then :
17253 eval $cacheid=yes
17254 else
17255 eval $cacheid=no
17256 fi
17257 rm -f core conftest.err conftest.$ac_objext \
17258 conftest$ac_exeext conftest.$ac_ext
17259 fi
17260
17261
17262 CFLAGS="$xorg_testset_save_CFLAGS"
17263
17264 eval supported=\$$cacheid
17265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17266 $as_echo "$supported" >&6; }
17267 if test "$supported" = "yes" ; then
17268 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
17269 found="yes"
17270 fi
17271 fi
17272
17273
17274 fi
17275
17276
17277
17278
17279
17280
17281
17282 CWARNFLAGS="$BASE_CFLAGS"
17283 if test "x$GCC" = xyes ; then
17284 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
17285 fi
17286
17287
17288
17289
17290
17291
17292
17293
17294 # Check whether --enable-strict-compilation was given.
17295 if test "${enable_strict_compilation+set}" = set; then :
17296 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
17297 else
17298 STRICT_COMPILE=no
17299 fi
17300
17301
17302
17303
17304
17305
17306 STRICT_CFLAGS=""
17307
17308
17309
17310
17311
17312
17313
17314
17315
17316
17317
17318
17319
17320 xorg_testset_save_CFLAGS="$CFLAGS"
17321
17322 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17323 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17325 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17326 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17327 $as_echo_n "(cached) " >&6
17328 else
17329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17330 /* end confdefs.h. */
17331 int i;
17332 _ACEOF
17333 if ac_fn_c_try_compile "$LINENO"; then :
17334 xorg_cv_cc_flag_unknown_warning_option=yes
17335 else
17336 xorg_cv_cc_flag_unknown_warning_option=no
17337 fi
17338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17339 fi
17340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17341 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17342 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17343 CFLAGS="$xorg_testset_save_CFLAGS"
17344 fi
17345
17346 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17347 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17348 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17349 fi
17350 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17352 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17353 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17354 $as_echo_n "(cached) " >&6
17355 else
17356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17357 /* end confdefs.h. */
17358 int i;
17359 _ACEOF
17360 if ac_fn_c_try_compile "$LINENO"; then :
17361 xorg_cv_cc_flag_unused_command_line_argument=yes
17362 else
17363 xorg_cv_cc_flag_unused_command_line_argument=no
17364 fi
17365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17366 fi
17367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17368 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17369 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17370 CFLAGS="$xorg_testset_save_CFLAGS"
17371 fi
17372
17373 found="no"
17374
17375 if test $found = "no" ; then
17376 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17377 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17378 fi
17379
17380 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17381 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17382 fi
17383
17384 CFLAGS="$CFLAGS -pedantic"
17385
17386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
17387 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
17388 cacheid=xorg_cv_cc_flag__pedantic
17389 if eval \${$cacheid+:} false; then :
17390 $as_echo_n "(cached) " >&6
17391 else
17392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17393 /* end confdefs.h. */
17394 int i;
17395 int
17396 main ()
17397 {
17398
17399 ;
17400 return 0;
17401 }
17402 _ACEOF
17403 if ac_fn_c_try_link "$LINENO"; then :
17404 eval $cacheid=yes
17405 else
17406 eval $cacheid=no
17407 fi
17408 rm -f core conftest.err conftest.$ac_objext \
17409 conftest$ac_exeext conftest.$ac_ext
17410 fi
17411
17412
17413 CFLAGS="$xorg_testset_save_CFLAGS"
17414
17415 eval supported=\$$cacheid
17416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17417 $as_echo "$supported" >&6; }
17418 if test "$supported" = "yes" ; then
17419 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
17420 found="yes"
17421 fi
17422 fi
17423
17424
17425
17426
17427
17428
17429
17430
17431
17432
17433
17434
17435
17436
17437
17438 xorg_testset_save_CFLAGS="$CFLAGS"
17439
17440 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17441 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17443 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17444 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17445 $as_echo_n "(cached) " >&6
17446 else
17447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17448 /* end confdefs.h. */
17449 int i;
17450 _ACEOF
17451 if ac_fn_c_try_compile "$LINENO"; then :
17452 xorg_cv_cc_flag_unknown_warning_option=yes
17453 else
17454 xorg_cv_cc_flag_unknown_warning_option=no
17455 fi
17456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17457 fi
17458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17459 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17460 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17461 CFLAGS="$xorg_testset_save_CFLAGS"
17462 fi
17463
17464 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17465 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17466 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17467 fi
17468 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17470 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17471 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17472 $as_echo_n "(cached) " >&6
17473 else
17474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17475 /* end confdefs.h. */
17476 int i;
17477 _ACEOF
17478 if ac_fn_c_try_compile "$LINENO"; then :
17479 xorg_cv_cc_flag_unused_command_line_argument=yes
17480 else
17481 xorg_cv_cc_flag_unused_command_line_argument=no
17482 fi
17483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17484 fi
17485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17486 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17487 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17488 CFLAGS="$xorg_testset_save_CFLAGS"
17489 fi
17490
17491 found="no"
17492
17493 if test $found = "no" ; then
17494 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17495 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17496 fi
17497
17498 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17499 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17500 fi
17501
17502 CFLAGS="$CFLAGS -Werror"
17503
17504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
17505 $as_echo_n "checking if $CC supports -Werror... " >&6; }
17506 cacheid=xorg_cv_cc_flag__Werror
17507 if eval \${$cacheid+:} false; then :
17508 $as_echo_n "(cached) " >&6
17509 else
17510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17511 /* end confdefs.h. */
17512 int i;
17513 int
17514 main ()
17515 {
17516
17517 ;
17518 return 0;
17519 }
17520 _ACEOF
17521 if ac_fn_c_try_link "$LINENO"; then :
17522 eval $cacheid=yes
17523 else
17524 eval $cacheid=no
17525 fi
17526 rm -f core conftest.err conftest.$ac_objext \
17527 conftest$ac_exeext conftest.$ac_ext
17528 fi
17529
17530
17531 CFLAGS="$xorg_testset_save_CFLAGS"
17532
17533 eval supported=\$$cacheid
17534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17535 $as_echo "$supported" >&6; }
17536 if test "$supported" = "yes" ; then
17537 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
17538 found="yes"
17539 fi
17540 fi
17541
17542 if test $found = "no" ; then
17543 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17544 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17545 fi
17546
17547 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17548 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17549 fi
17550
17551 CFLAGS="$CFLAGS -errwarn"
17552
17553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
17554 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
17555 cacheid=xorg_cv_cc_flag__errwarn
17556 if eval \${$cacheid+:} false; then :
17557 $as_echo_n "(cached) " >&6
17558 else
17559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17560 /* end confdefs.h. */
17561 int i;
17562 int
17563 main ()
17564 {
17565
17566 ;
17567 return 0;
17568 }
17569 _ACEOF
17570 if ac_fn_c_try_link "$LINENO"; then :
17571 eval $cacheid=yes
17572 else
17573 eval $cacheid=no
17574 fi
17575 rm -f core conftest.err conftest.$ac_objext \
17576 conftest$ac_exeext conftest.$ac_ext
17577 fi
17578
17579
17580 CFLAGS="$xorg_testset_save_CFLAGS"
17581
17582 eval supported=\$$cacheid
17583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17584 $as_echo "$supported" >&6; }
17585 if test "$supported" = "yes" ; then
17586 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
17587 found="yes"
17588 fi
17589 fi
17590
17591
17592
17593 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
17594 # activate it with -Werror, so we add it here explicitly.
17595
17596
17597
17598
17599
17600
17601
17602
17603
17604
17605
17606
17607
17608 xorg_testset_save_CFLAGS="$CFLAGS"
17609
17610 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17611 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17613 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17614 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17615 $as_echo_n "(cached) " >&6
17616 else
17617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17618 /* end confdefs.h. */
17619 int i;
17620 _ACEOF
17621 if ac_fn_c_try_compile "$LINENO"; then :
17622 xorg_cv_cc_flag_unknown_warning_option=yes
17623 else
17624 xorg_cv_cc_flag_unknown_warning_option=no
17625 fi
17626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17627 fi
17628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17629 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17630 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17631 CFLAGS="$xorg_testset_save_CFLAGS"
17632 fi
17633
17634 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17635 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17636 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17637 fi
17638 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17640 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17641 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17642 $as_echo_n "(cached) " >&6
17643 else
17644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17645 /* end confdefs.h. */
17646 int i;
17647 _ACEOF
17648 if ac_fn_c_try_compile "$LINENO"; then :
17649 xorg_cv_cc_flag_unused_command_line_argument=yes
17650 else
17651 xorg_cv_cc_flag_unused_command_line_argument=no
17652 fi
17653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17654 fi
17655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17656 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17657 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17658 CFLAGS="$xorg_testset_save_CFLAGS"
17659 fi
17660
17661 found="no"
17662
17663 if test $found = "no" ; then
17664 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17665 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17666 fi
17667
17668 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17669 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17670 fi
17671
17672 CFLAGS="$CFLAGS -Werror=attributes"
17673
17674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
17675 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
17676 cacheid=xorg_cv_cc_flag__Werror_attributes
17677 if eval \${$cacheid+:} false; then :
17678 $as_echo_n "(cached) " >&6
17679 else
17680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17681 /* end confdefs.h. */
17682 int i;
17683 int
17684 main ()
17685 {
17686
17687 ;
17688 return 0;
17689 }
17690 _ACEOF
17691 if ac_fn_c_try_link "$LINENO"; then :
17692 eval $cacheid=yes
17693 else
17694 eval $cacheid=no
17695 fi
17696 rm -f core conftest.err conftest.$ac_objext \
17697 conftest$ac_exeext conftest.$ac_ext
17698 fi
17699
17700
17701 CFLAGS="$xorg_testset_save_CFLAGS"
17702
17703 eval supported=\$$cacheid
17704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17705 $as_echo "$supported" >&6; }
17706 if test "$supported" = "yes" ; then
17707 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
17708 found="yes"
17709 fi
17710 fi
17711
17712
17713
17714 if test "x$STRICT_COMPILE" = "xyes"; then
17715 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
17716 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
17717 fi
17718
17719
17720
17721
17722
17723
17724 cat >>confdefs.h <<_ACEOF
17725 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
17726 _ACEOF
17727
17728 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
17729 if test "x$PVM" = "x"; then
17730 PVM="0"
17731 fi
17732
17733 cat >>confdefs.h <<_ACEOF
17734 #define PACKAGE_VERSION_MINOR $PVM
17735 _ACEOF
17736
17737 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
17738 if test "x$PVP" = "x"; then
17739 PVP="0"
17740 fi
17741
17742 cat >>confdefs.h <<_ACEOF
17743 #define PACKAGE_VERSION_PATCHLEVEL $PVP
17744 _ACEOF
17745
17746
17747
17748 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
17749 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
17750 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
17751 echo 'git directory not found: installing possibly empty changelog.' >&2)"
17752
17753
17754
17755
17756 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
17757 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
17758 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
17759 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
17760 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
17761
17762
17763
17764
17765
17766
17767 if test x$APP_MAN_SUFFIX = x ; then
17768 APP_MAN_SUFFIX=1
17769 fi
17770 if test x$APP_MAN_DIR = x ; then
17771 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
17772 fi
17773
17774 if test x$LIB_MAN_SUFFIX = x ; then
17775 LIB_MAN_SUFFIX=3
17776 fi
17777 if test x$LIB_MAN_DIR = x ; then
17778 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
17779 fi
17780
17781 if test x$FILE_MAN_SUFFIX = x ; then
17782 case $host_os in
17783 # Solaris 2.0 - 11 use SysV man page sections
17784 solaris2.?|solaris2.1[01]) FILE_MAN_SUFFIX=4 ;;
17785 *) FILE_MAN_SUFFIX=5 ;;
17786 esac
17787 fi
17788 if test x$FILE_MAN_DIR = x ; then
17789 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
17790 fi
17791
17792 if test x$MISC_MAN_SUFFIX = x ; then
17793 case $host_os in
17794 # Solaris 2.0 - 11 use SysV man page sections
17795 solaris2.?|solaris2.1[01]) MISC_MAN_SUFFIX=5 ;;
17796 *) MISC_MAN_SUFFIX=7 ;;
17797 esac
17798 fi
17799 if test x$MISC_MAN_DIR = x ; then
17800 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
17801 fi
17802
17803 if test x$DRIVER_MAN_SUFFIX = x ; then
17804 case $host_os in
17805 # Solaris 2.0 - 11 use SysV man page sections
17806 solaris2.?|solaris2.1[01]) DRIVER_MAN_SUFFIX=7 ;;
17807 *) DRIVER_MAN_SUFFIX=4 ;;
17808 esac
17809 fi
17810 if test x$DRIVER_MAN_DIR = x ; then
17811 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
17812 fi
17813
17814 if test x$ADMIN_MAN_SUFFIX = x ; then
17815 case $host_os in
17816 # Solaris 2.0 - 11 use SysV man page sections
17817 solaris2.?|solaris2.1[01]) ADMIN_MAN_SUFFIX=1m ;;
17818 *) ADMIN_MAN_SUFFIX=8 ;;
17819 esac
17820 fi
17821 if test x$ADMIN_MAN_DIR = x ; then
17822 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
17823 fi
17824
17825
17826
17827
17828
17829
17830
17831
17832
17833
17834
17835
17836
17837
17838
17839 XORG_MAN_PAGE="X Version 11"
17840
17841 MAN_SUBSTS="\
17842 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17843 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17844 -e 's|__xservername__|Xorg|g' \
17845 -e 's|__xconfigfile__|xorg.conf|g' \
17846 -e 's|__projectroot__|\$(prefix)|g' \
17847 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
17848 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
17849 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
17850 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
17851 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
17852 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
17853 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
17854
17855
17856
17857 # Check whether --enable-silent-rules was given.
17858 if test "${enable_silent_rules+set}" = set; then :
17859 enableval=$enable_silent_rules;
17860 fi
17861
17862 case $enable_silent_rules in # (((
17863 yes) AM_DEFAULT_VERBOSITY=0;;
17864 no) AM_DEFAULT_VERBOSITY=1;;
17865 *) AM_DEFAULT_VERBOSITY=0;;
17866 esac
17867 am_make=${MAKE-make}
17868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
17869 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
17870 if ${am_cv_make_support_nested_variables+:} false; then :
17871 $as_echo_n "(cached) " >&6
17872 else
17873 if $as_echo 'TRUE=$(BAR$(V))
17874 BAR0=false
17875 BAR1=true
17876 V=1
17877 am__doit:
17878 @$(TRUE)
17879 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
17880 am_cv_make_support_nested_variables=yes
17881 else
17882 am_cv_make_support_nested_variables=no
17883 fi
17884 fi
17885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
17886 $as_echo "$am_cv_make_support_nested_variables" >&6; }
17887 if test $am_cv_make_support_nested_variables = yes; then
17888 AM_V='$(V)'
17889 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
17890 else
17891 AM_V=$AM_DEFAULT_VERBOSITY
17892 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
17893 fi
17894 AM_BACKSLASH='\'
17895
17896
17897
17898
17899 # Check whether --enable-docs was given.
17900 if test "${enable_docs+set}" = set; then :
17901 enableval=$enable_docs; build_docs=$enableval
17902 else
17903 build_docs=yes
17904 fi
17905
17906
17907 if test x$build_docs = xyes; then
17908 ENABLE_DOCS_TRUE=
17909 ENABLE_DOCS_FALSE='#'
17910 else
17911 ENABLE_DOCS_TRUE='#'
17912 ENABLE_DOCS_FALSE=
17913 fi
17914
17915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build documentation" >&5
17916 $as_echo_n "checking whether to build documentation... " >&6; }
17917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_docs" >&5
17918 $as_echo "$build_docs" >&6; }
17919
17920
17921
17922 # Check whether --enable-specs was given.
17923 if test "${enable_specs+set}" = set; then :
17924 enableval=$enable_specs; build_specs=$enableval
17925 else
17926 build_specs=yes
17927 fi
17928
17929
17930 if test x$build_specs = xyes; then
17931 ENABLE_SPECS_TRUE=
17932 ENABLE_SPECS_FALSE='#'
17933 else
17934 ENABLE_SPECS_TRUE='#'
17935 ENABLE_SPECS_FALSE=
17936 fi
17937
17938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build functional specifications" >&5
17939 $as_echo_n "checking whether to build functional specifications... " >&6; }
17940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_specs" >&5
17941 $as_echo "$build_specs" >&6; }
17942
17943
17944
17945
17946
17947 # Check whether --with-xmlto was given.
17948 if test "${with_xmlto+set}" = set; then :
17949 withval=$with_xmlto; use_xmlto=$withval
17950 else
17951 use_xmlto=auto
17952 fi
17953
17954
17955
17956 if test "x$use_xmlto" = x"auto"; then
17957 # Extract the first word of "xmlto", so it can be a program name with args.
17958 set dummy xmlto; ac_word=$2
17959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17960 $as_echo_n "checking for $ac_word... " >&6; }
17961 if ${ac_cv_path_XMLTO+:} false; then :
17962 $as_echo_n "(cached) " >&6
17963 else
17964 case $XMLTO in
17965 [\\/]* | ?:[\\/]*)
17966 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
17967 ;;
17968 *)
17969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17970 for as_dir in $PATH
17971 do
17972 IFS=$as_save_IFS
17973 test -z "$as_dir" && as_dir=.
17974 for ac_exec_ext in '' $ac_executable_extensions; do
17975 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17976 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
17977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17978 break 2
17979 fi
17980 done
17981 done
17982 IFS=$as_save_IFS
17983
17984 ;;
17985 esac
17986 fi
17987 XMLTO=$ac_cv_path_XMLTO
17988 if test -n "$XMLTO"; then
17989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
17990 $as_echo "$XMLTO" >&6; }
17991 else
17992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17993 $as_echo "no" >&6; }
17994 fi
17995
17996
17997 if test "x$XMLTO" = "x"; then
17998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5
17999 $as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;}
18000 have_xmlto=no
18001 else
18002 have_xmlto=yes
18003 fi
18004 elif test "x$use_xmlto" = x"yes" ; then
18005 # Extract the first word of "xmlto", so it can be a program name with args.
18006 set dummy xmlto; ac_word=$2
18007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18008 $as_echo_n "checking for $ac_word... " >&6; }
18009 if ${ac_cv_path_XMLTO+:} false; then :
18010 $as_echo_n "(cached) " >&6
18011 else
18012 case $XMLTO in
18013 [\\/]* | ?:[\\/]*)
18014 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
18015 ;;
18016 *)
18017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18018 for as_dir in $PATH
18019 do
18020 IFS=$as_save_IFS
18021 test -z "$as_dir" && as_dir=.
18022 for ac_exec_ext in '' $ac_executable_extensions; do
18023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18024 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
18025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18026 break 2
18027 fi
18028 done
18029 done
18030 IFS=$as_save_IFS
18031
18032 ;;
18033 esac
18034 fi
18035 XMLTO=$ac_cv_path_XMLTO
18036 if test -n "$XMLTO"; then
18037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
18038 $as_echo "$XMLTO" >&6; }
18039 else
18040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18041 $as_echo "no" >&6; }
18042 fi
18043
18044
18045 if test "x$XMLTO" = "x"; then
18046 as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5
18047 fi
18048 have_xmlto=yes
18049 elif test "x$use_xmlto" = x"no" ; then
18050 if test "x$XMLTO" != "x"; then
18051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5
18052 $as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;}
18053 fi
18054 have_xmlto=no
18055 else
18056 as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5
18057 fi
18058
18059 # Test for a minimum version of xmlto, if provided.
18060 if test "$have_xmlto" = yes; then
18061 # scrape the xmlto version
18062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5
18063 $as_echo_n "checking the xmlto version... " >&6; }
18064 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3`
18065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5
18066 $as_echo "$xmlto_version" >&6; }
18067 as_arg_v1=$xmlto_version
18068 as_arg_v2=0.0.22
18069 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
18070 case $? in #(
18071 1) :
18072 if test "x$use_xmlto" = xauto; then
18073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5
18074 $as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;}
18075 have_xmlto=no
18076 else
18077 as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5
18078 fi ;; #(
18079 0) :
18080 ;; #(
18081 2) :
18082 ;; #(
18083 *) :
18084 ;;
18085 esac
18086 fi
18087
18088 # Test for the ability of xmlto to generate a text target
18089 #
18090 # NOTE: xmlto 0.0.27 or higher return a non-zero return code in the
18091 # following test for empty XML docbook files.
18092 # For compatibility reasons use the following empty XML docbook file and if
18093 # it fails try it again with a non-empty XML file.
18094 have_xmlto_text=no
18095 cat > conftest.xml << "EOF"
18096 EOF
18097 if test "$have_xmlto" = yes; then :
18098 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then :
18099 have_xmlto_text=yes
18100 else
18101 # Try it again with a non-empty XML file.
18102 cat > conftest.xml << "EOF"
18103 <x></x>
18104 EOF
18105 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then :
18106 have_xmlto_text=yes
18107 else
18108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5
18109 $as_echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;}
18110 fi
18111 fi
18112 fi
18113 rm -f conftest.xml
18114 if test $have_xmlto_text = yes; then
18115 HAVE_XMLTO_TEXT_TRUE=
18116 HAVE_XMLTO_TEXT_FALSE='#'
18117 else
18118 HAVE_XMLTO_TEXT_TRUE='#'
18119 HAVE_XMLTO_TEXT_FALSE=
18120 fi
18121
18122 if test "$have_xmlto" = yes; then
18123 HAVE_XMLTO_TRUE=
18124 HAVE_XMLTO_FALSE='#'
18125 else
18126 HAVE_XMLTO_TRUE='#'
18127 HAVE_XMLTO_FALSE=
18128 fi
18129
18130
18131
18132
18133
18134
18135 # Check whether --with-fop was given.
18136 if test "${with_fop+set}" = set; then :
18137 withval=$with_fop; use_fop=$withval
18138 else
18139 use_fop=auto
18140 fi
18141
18142
18143
18144 if test "x$use_fop" = x"auto"; then
18145 # Extract the first word of "fop", so it can be a program name with args.
18146 set dummy fop; ac_word=$2
18147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18148 $as_echo_n "checking for $ac_word... " >&6; }
18149 if ${ac_cv_path_FOP+:} false; then :
18150 $as_echo_n "(cached) " >&6
18151 else
18152 case $FOP in
18153 [\\/]* | ?:[\\/]*)
18154 ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
18155 ;;
18156 *)
18157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18158 for as_dir in $PATH
18159 do
18160 IFS=$as_save_IFS
18161 test -z "$as_dir" && as_dir=.
18162 for ac_exec_ext in '' $ac_executable_extensions; do
18163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18164 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
18165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18166 break 2
18167 fi
18168 done
18169 done
18170 IFS=$as_save_IFS
18171
18172 ;;
18173 esac
18174 fi
18175 FOP=$ac_cv_path_FOP
18176 if test -n "$FOP"; then
18177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
18178 $as_echo "$FOP" >&6; }
18179 else
18180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18181 $as_echo "no" >&6; }
18182 fi
18183
18184
18185 if test "x$FOP" = "x"; then
18186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5
18187 $as_echo "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;}
18188 have_fop=no
18189 else
18190 have_fop=yes
18191 fi
18192 elif test "x$use_fop" = x"yes" ; then
18193 # Extract the first word of "fop", so it can be a program name with args.
18194 set dummy fop; ac_word=$2
18195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18196 $as_echo_n "checking for $ac_word... " >&6; }
18197 if ${ac_cv_path_FOP+:} false; then :
18198 $as_echo_n "(cached) " >&6
18199 else
18200 case $FOP in
18201 [\\/]* | ?:[\\/]*)
18202 ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
18203 ;;
18204 *)
18205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18206 for as_dir in $PATH
18207 do
18208 IFS=$as_save_IFS
18209 test -z "$as_dir" && as_dir=.
18210 for ac_exec_ext in '' $ac_executable_extensions; do
18211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18212 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
18213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18214 break 2
18215 fi
18216 done
18217 done
18218 IFS=$as_save_IFS
18219
18220 ;;
18221 esac
18222 fi
18223 FOP=$ac_cv_path_FOP
18224 if test -n "$FOP"; then
18225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
18226 $as_echo "$FOP" >&6; }
18227 else
18228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18229 $as_echo "no" >&6; }
18230 fi
18231
18232
18233 if test "x$FOP" = "x"; then
18234 as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5
18235 fi
18236 have_fop=yes
18237 elif test "x$use_fop" = x"no" ; then
18238 if test "x$FOP" != "x"; then
18239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5
18240 $as_echo "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;}
18241 fi
18242 have_fop=no
18243 else
18244 as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5
18245 fi
18246
18247 # Test for a minimum version of fop, if provided.
18248
18249 if test "$have_fop" = yes; then
18250 HAVE_FOP_TRUE=
18251 HAVE_FOP_FALSE='#'
18252 else
18253 HAVE_FOP_TRUE='#'
18254 HAVE_FOP_FALSE=
18255 fi
18256
18257
18258
18259
18260 # Preserves the interface, should it be implemented later
18261
18262
18263
18264 # Check whether --with-xsltproc was given.
18265 if test "${with_xsltproc+set}" = set; then :
18266 withval=$with_xsltproc; use_xsltproc=$withval
18267 else
18268 use_xsltproc=auto
18269 fi
18270
18271
18272
18273 if test "x$use_xsltproc" = x"auto"; then
18274 # Extract the first word of "xsltproc", so it can be a program name with args.
18275 set dummy xsltproc; ac_word=$2
18276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18277 $as_echo_n "checking for $ac_word... " >&6; }
18278 if ${ac_cv_path_XSLTPROC+:} false; then :
18279 $as_echo_n "(cached) " >&6
18280 else
18281 case $XSLTPROC in
18282 [\\/]* | ?:[\\/]*)
18283 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
18284 ;;
18285 *)
18286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18287 for as_dir in $PATH
18288 do
18289 IFS=$as_save_IFS
18290 test -z "$as_dir" && as_dir=.
18291 for ac_exec_ext in '' $ac_executable_extensions; do
18292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18293 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
18294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18295 break 2
18296 fi
18297 done
18298 done
18299 IFS=$as_save_IFS
18300
18301 ;;
18302 esac
18303 fi
18304 XSLTPROC=$ac_cv_path_XSLTPROC
18305 if test -n "$XSLTPROC"; then
18306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
18307 $as_echo "$XSLTPROC" >&6; }
18308 else
18309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18310 $as_echo "no" >&6; }
18311 fi
18312
18313
18314 if test "x$XSLTPROC" = "x"; then
18315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5
18316 $as_echo "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;}
18317 have_xsltproc=no
18318 else
18319 have_xsltproc=yes
18320 fi
18321 elif test "x$use_xsltproc" = x"yes" ; then
18322 # Extract the first word of "xsltproc", so it can be a program name with args.
18323 set dummy xsltproc; ac_word=$2
18324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18325 $as_echo_n "checking for $ac_word... " >&6; }
18326 if ${ac_cv_path_XSLTPROC+:} false; then :
18327 $as_echo_n "(cached) " >&6
18328 else
18329 case $XSLTPROC in
18330 [\\/]* | ?:[\\/]*)
18331 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
18332 ;;
18333 *)
18334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18335 for as_dir in $PATH
18336 do
18337 IFS=$as_save_IFS
18338 test -z "$as_dir" && as_dir=.
18339 for ac_exec_ext in '' $ac_executable_extensions; do
18340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18341 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
18342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18343 break 2
18344 fi
18345 done
18346 done
18347 IFS=$as_save_IFS
18348
18349 ;;
18350 esac
18351 fi
18352 XSLTPROC=$ac_cv_path_XSLTPROC
18353 if test -n "$XSLTPROC"; then
18354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
18355 $as_echo "$XSLTPROC" >&6; }
18356 else
18357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18358 $as_echo "no" >&6; }
18359 fi
18360
18361
18362 if test "x$XSLTPROC" = "x"; then
18363 as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5
18364 fi
18365 have_xsltproc=yes
18366 elif test "x$use_xsltproc" = x"no" ; then
18367 if test "x$XSLTPROC" != "x"; then
18368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5
18369 $as_echo "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;}
18370 fi
18371 have_xsltproc=no
18372 else
18373 as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5
18374 fi
18375
18376 if test "$have_xsltproc" = yes; then
18377 HAVE_XSLTPROC_TRUE=
18378 HAVE_XSLTPROC_FALSE='#'
18379 else
18380 HAVE_XSLTPROC_TRUE='#'
18381 HAVE_XSLTPROC_FALSE=
18382 fi
18383
18384
18385
18386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.8" >&5
18387 $as_echo_n "checking for X.Org SGML entities >= 1.8... " >&6; }
18388 XORG_SGML_PATH=
18389 if test -n "$PKG_CONFIG" && \
18390 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.8\""; } >&5
18391 ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.8") 2>&5
18392 ac_status=$?
18393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18394 test $ac_status = 0; }; then
18395 XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`
18396 else
18397 :
18398
18399 fi
18400
18401 # Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing
18402 # the path and the name of the doc stylesheet
18403 if test "x$XORG_SGML_PATH" != "x" ; then
18404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5
18405 $as_echo "$XORG_SGML_PATH" >&6; }
18406 STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11
18407 XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl
18408 else
18409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18410 $as_echo "no" >&6; }
18411 fi
18412
18413
18414
18415
18416 if test "x$XSL_STYLESHEET" != "x"; then
18417 HAVE_STYLESHEETS_TRUE=
18418 HAVE_STYLESHEETS_FALSE='#'
18419 else
18420 HAVE_STYLESHEETS_TRUE='#'
18421 HAVE_STYLESHEETS_FALSE=
18422 fi
18423
18424
18425
18426
18427
18428
18429 # Check whether --with-asciidoc was given.
18430 if test "${with_asciidoc+set}" = set; then :
18431 withval=$with_asciidoc; use_asciidoc=$withval
18432 else
18433 use_asciidoc=auto
18434 fi
18435
18436
18437
18438 if test "x$use_asciidoc" = x"auto"; then
18439 # Extract the first word of "asciidoc", so it can be a program name with args.
18440 set dummy asciidoc; ac_word=$2
18441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18442 $as_echo_n "checking for $ac_word... " >&6; }
18443 if ${ac_cv_path_ASCIIDOC+:} false; then :
18444 $as_echo_n "(cached) " >&6
18445 else
18446 case $ASCIIDOC in
18447 [\\/]* | ?:[\\/]*)
18448 ac_cv_path_ASCIIDOC="$ASCIIDOC" # Let the user override the test with a path.
18449 ;;
18450 *)
18451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18452 for as_dir in $PATH
18453 do
18454 IFS=$as_save_IFS
18455 test -z "$as_dir" && as_dir=.
18456 for ac_exec_ext in '' $ac_executable_extensions; do
18457 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18458 ac_cv_path_ASCIIDOC="$as_dir/$ac_word$ac_exec_ext"
18459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18460 break 2
18461 fi
18462 done
18463 done
18464 IFS=$as_save_IFS
18465
18466 ;;
18467 esac
18468 fi
18469 ASCIIDOC=$ac_cv_path_ASCIIDOC
18470 if test -n "$ASCIIDOC"; then
18471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ASCIIDOC" >&5
18472 $as_echo "$ASCIIDOC" >&6; }
18473 else
18474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18475 $as_echo "no" >&6; }
18476 fi
18477
18478
18479 if test "x$ASCIIDOC" = "x"; then
18480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: asciidoc not found - documentation targets will be skipped" >&5
18481 $as_echo "$as_me: WARNING: asciidoc not found - documentation targets will be skipped" >&2;}
18482 have_asciidoc=no
18483 else
18484 have_asciidoc=yes
18485 fi
18486 elif test "x$use_asciidoc" = x"yes" ; then
18487 # Extract the first word of "asciidoc", so it can be a program name with args.
18488 set dummy asciidoc; ac_word=$2
18489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18490 $as_echo_n "checking for $ac_word... " >&6; }
18491 if ${ac_cv_path_ASCIIDOC+:} false; then :
18492 $as_echo_n "(cached) " >&6
18493 else
18494 case $ASCIIDOC in
18495 [\\/]* | ?:[\\/]*)
18496 ac_cv_path_ASCIIDOC="$ASCIIDOC" # Let the user override the test with a path.
18497 ;;
18498 *)
18499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18500 for as_dir in $PATH
18501 do
18502 IFS=$as_save_IFS
18503 test -z "$as_dir" && as_dir=.
18504 for ac_exec_ext in '' $ac_executable_extensions; do
18505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18506 ac_cv_path_ASCIIDOC="$as_dir/$ac_word$ac_exec_ext"
18507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18508 break 2
18509 fi
18510 done
18511 done
18512 IFS=$as_save_IFS
18513
18514 ;;
18515 esac
18516 fi
18517 ASCIIDOC=$ac_cv_path_ASCIIDOC
18518 if test -n "$ASCIIDOC"; then
18519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ASCIIDOC" >&5
18520 $as_echo "$ASCIIDOC" >&6; }
18521 else
18522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18523 $as_echo "no" >&6; }
18524 fi
18525
18526
18527 if test "x$ASCIIDOC" = "x"; then
18528 as_fn_error $? "--with-asciidoc=yes specified but asciidoc not found in PATH" "$LINENO" 5
18529 fi
18530 have_asciidoc=yes
18531 elif test "x$use_asciidoc" = x"no" ; then
18532 if test "x$ASCIIDOC" != "x"; then
18533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring ASCIIDOC environment variable since --with-asciidoc=no was specified" >&5
18534 $as_echo "$as_me: WARNING: ignoring ASCIIDOC environment variable since --with-asciidoc=no was specified" >&2;}
18535 fi
18536 have_asciidoc=no
18537 else
18538 as_fn_error $? "--with-asciidoc expects 'yes' or 'no'" "$LINENO" 5
18539 fi
18540 if test "$have_asciidoc" = yes; then
18541 # scrape the asciidoc version
18542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the asciidoc version" >&5
18543 $as_echo_n "checking the asciidoc version... " >&6; }
18544 asciidoc_version=`$ASCIIDOC --version 2>/dev/null | cut -d' ' -f2`
18545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $asciidoc_version" >&5
18546 $as_echo "$asciidoc_version" >&6; }
18547 as_arg_v1=$asciidoc_version
18548 as_arg_v2=8.4.5
18549 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
18550 case $? in #(
18551 1) :
18552 if test "x$use_asciidoc" = xauto; then
18553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: asciidoc version $asciidoc_version found, but 8.4.5 needed" >&5
18554 $as_echo "$as_me: WARNING: asciidoc version $asciidoc_version found, but 8.4.5 needed" >&2;}
18555 have_asciidoc=no
18556 else
18557 as_fn_error $? "asciidoc version $asciidoc_version found, but 8.4.5 needed" "$LINENO" 5
18558 fi ;; #(
18559 0) :
18560 ;; #(
18561 2) :
18562 ;; #(
18563 *) :
18564 ;;
18565 esac
18566 fi
18567 if test "$have_asciidoc" = yes; then
18568 HAVE_ASCIIDOC_TRUE=
18569 HAVE_ASCIIDOC_FALSE='#'
18570 else
18571 HAVE_ASCIIDOC_TRUE='#'
18572 HAVE_ASCIIDOC_FALSE=
18573 fi
18574
18575
18576
18577 # Check whether --enable-malloc0returnsnull was given.
18578 if test "${enable_malloc0returnsnull+set}" = set; then :
18579 enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval
18580 else
18581 MALLOC_ZERO_RETURNS_NULL=auto
18582 fi
18583
18584
18585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5
18586 $as_echo_n "checking whether malloc(0) returns NULL... " >&6; }
18587 if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
18588 if ${xorg_cv_malloc0_returns_null+:} false; then :
18589 $as_echo_n "(cached) " >&6
18590 else
18591 if test "$cross_compiling" = yes; then :
18592 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18593 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18594 as_fn_error $? "cannot run test program while cross compiling
18595 See \`config.log' for more details" "$LINENO" 5; }
18596 else
18597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18598 /* end confdefs.h. */
18599
18600 #include <stdlib.h>
18601
18602 int
18603 main ()
18604 {
18605
18606 char *m0, *r0, *c0, *p;
18607 m0 = malloc(0);
18608 p = malloc(10);
18609 r0 = realloc(p,0);
18610 c0 = calloc(0,10);
18611 exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1);
18612
18613 ;
18614 return 0;
18615 }
18616 _ACEOF
18617 if ac_fn_c_try_run "$LINENO"; then :
18618 xorg_cv_malloc0_returns_null=yes
18619 else
18620 xorg_cv_malloc0_returns_null=no
18621 fi
18622 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18623 conftest.$ac_objext conftest.beam conftest.$ac_ext
18624 fi
18625
18626 fi
18627
18628 MALLOC_ZERO_RETURNS_NULL=$xorg_cv_malloc0_returns_null
18629 fi
18630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5
18631 $as_echo "$MALLOC_ZERO_RETURNS_NULL" >&6; }
18632
18633 if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
18634 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
18635 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
18636 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
18637 else
18638 MALLOC_ZERO_CFLAGS=""
18639 XMALLOC_ZERO_CFLAGS=""
18640 XTMALLOC_ZERO_CFLAGS=""
18641 fi
18642
18643
18644
18645
18646
18647
18648 # Obtain compiler/linker options for dependencies
18649
18650 pkg_failed=no
18651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XI" >&5
18652 $as_echo_n "checking for XI... " >&6; }
18653
18654 if test -n "$XI_CFLAGS"; then
18655 pkg_cv_XI_CFLAGS="$XI_CFLAGS"
18656 elif test -n "$PKG_CONFIG"; then
18657 if test -n "$PKG_CONFIG" && \
18658 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.2.99.1\""; } >&5
18659 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.2.99.1") 2>&5
18660 ac_status=$?
18661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18662 test $ac_status = 0; }; then
18663 pkg_cv_XI_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.2.99.1" 2>/dev/null`
18664 test "x$?" != "x0" && pkg_failed=yes
18665 else
18666 pkg_failed=yes
18667 fi
18668 else
18669 pkg_failed=untried
18670 fi
18671 if test -n "$XI_LIBS"; then
18672 pkg_cv_XI_LIBS="$XI_LIBS"
18673 elif test -n "$PKG_CONFIG"; then
18674 if test -n "$PKG_CONFIG" && \
18675 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.2.99.1\""; } >&5
18676 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.2.99.1") 2>&5
18677 ac_status=$?
18678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18679 test $ac_status = 0; }; then
18680 pkg_cv_XI_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.2.99.1" 2>/dev/null`
18681 test "x$?" != "x0" && pkg_failed=yes
18682 else
18683 pkg_failed=yes
18684 fi
18685 else
18686 pkg_failed=untried
18687 fi
18688
18689
18690
18691 if test $pkg_failed = yes; then
18692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18693 $as_echo "no" >&6; }
18694
18695 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18696 _pkg_short_errors_supported=yes
18697 else
18698 _pkg_short_errors_supported=no
18699 fi
18700 if test $_pkg_short_errors_supported = yes; then
18701 XI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.2.99.1" 2>&1`
18702 else
18703 XI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.2.99.1" 2>&1`
18704 fi
18705 # Put the nasty error message in config.log where it belongs
18706 echo "$XI_PKG_ERRORS" >&5
18707
18708 as_fn_error $? "Package requirements (xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.2.99.1) were not met:
18709
18710 $XI_PKG_ERRORS
18711
18712 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18713 installed software in a non-standard prefix.
18714
18715 Alternatively, you may set the environment variables XI_CFLAGS
18716 and XI_LIBS to avoid the need to call pkg-config.
18717 See the pkg-config man page for more details." "$LINENO" 5
18718 elif test $pkg_failed = untried; then
18719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18720 $as_echo "no" >&6; }
18721 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18722 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18723 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18724 is in your PATH or set the PKG_CONFIG environment variable to the full
18725 path to pkg-config.
18726
18727 Alternatively, you may set the environment variables XI_CFLAGS
18728 and XI_LIBS to avoid the need to call pkg-config.
18729 See the pkg-config man page for more details.
18730
18731 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18732 See \`config.log' for more details" "$LINENO" 5; }
18733 else
18734 XI_CFLAGS=$pkg_cv_XI_CFLAGS
18735 XI_LIBS=$pkg_cv_XI_LIBS
18736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18737 $as_echo "yes" >&6; }
18738
18739 fi
18740 # CFLAGS only for PointerBarrier typedef
18741
18742 pkg_failed=no
18743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XFIXES" >&5
18744 $as_echo_n "checking for XFIXES... " >&6; }
18745
18746 if test -n "$XFIXES_CFLAGS"; then
18747 pkg_cv_XFIXES_CFLAGS="$XFIXES_CFLAGS"
18748 elif test -n "$PKG_CONFIG"; then
18749 if test -n "$PKG_CONFIG" && \
18750 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xfixes >= 5\""; } >&5
18751 ($PKG_CONFIG --exists --print-errors "xfixes >= 5") 2>&5
18752 ac_status=$?
18753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18754 test $ac_status = 0; }; then
18755 pkg_cv_XFIXES_CFLAGS=`$PKG_CONFIG --cflags "xfixes >= 5" 2>/dev/null`
18756 test "x$?" != "x0" && pkg_failed=yes
18757 else
18758 pkg_failed=yes
18759 fi
18760 else
18761 pkg_failed=untried
18762 fi
18763 if test -n "$XFIXES_LIBS"; then
18764 pkg_cv_XFIXES_LIBS="$XFIXES_LIBS"
18765 elif test -n "$PKG_CONFIG"; then
18766 if test -n "$PKG_CONFIG" && \
18767 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xfixes >= 5\""; } >&5
18768 ($PKG_CONFIG --exists --print-errors "xfixes >= 5") 2>&5
18769 ac_status=$?
18770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18771 test $ac_status = 0; }; then
18772 pkg_cv_XFIXES_LIBS=`$PKG_CONFIG --libs "xfixes >= 5" 2>/dev/null`
18773 test "x$?" != "x0" && pkg_failed=yes
18774 else
18775 pkg_failed=yes
18776 fi
18777 else
18778 pkg_failed=untried
18779 fi
18780
18781
18782
18783 if test $pkg_failed = yes; then
18784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18785 $as_echo "no" >&6; }
18786
18787 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18788 _pkg_short_errors_supported=yes
18789 else
18790 _pkg_short_errors_supported=no
18791 fi
18792 if test $_pkg_short_errors_supported = yes; then
18793 XFIXES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xfixes >= 5" 2>&1`
18794 else
18795 XFIXES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xfixes >= 5" 2>&1`
18796 fi
18797 # Put the nasty error message in config.log where it belongs
18798 echo "$XFIXES_PKG_ERRORS" >&5
18799
18800 as_fn_error $? "Package requirements (xfixes >= 5) were not met:
18801
18802 $XFIXES_PKG_ERRORS
18803
18804 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18805 installed software in a non-standard prefix.
18806
18807 Alternatively, you may set the environment variables XFIXES_CFLAGS
18808 and XFIXES_LIBS to avoid the need to call pkg-config.
18809 See the pkg-config man page for more details." "$LINENO" 5
18810 elif test $pkg_failed = untried; then
18811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18812 $as_echo "no" >&6; }
18813 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18814 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18815 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18816 is in your PATH or set the PKG_CONFIG environment variable to the full
18817 path to pkg-config.
18818
18819 Alternatively, you may set the environment variables XFIXES_CFLAGS
18820 and XFIXES_LIBS to avoid the need to call pkg-config.
18821 See the pkg-config man page for more details.
18822
18823 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18824 See \`config.log' for more details" "$LINENO" 5; }
18825 else
18826 XFIXES_CFLAGS=$pkg_cv_XFIXES_CFLAGS
18827 XFIXES_LIBS=$pkg_cv_XFIXES_LIBS
18828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18829 $as_echo "yes" >&6; }
18830
18831 fi
18832
18833 # Check for xmlto and asciidoc for man page conversion
18834 # (only needed by people building tarballs)
18835 if test "$have_xmlto" = yes && test "$have_asciidoc" = yes; then
18836 have_doctools=yes
18837 else
18838 have_doctools=no
18839 fi
18840 if test $have_doctools = yes; then
18841 HAVE_DOCTOOLS_TRUE=
18842 HAVE_DOCTOOLS_FALSE='#'
18843 else
18844 HAVE_DOCTOOLS_TRUE='#'
18845 HAVE_DOCTOOLS_FALSE=
18846 fi
18847
18848 if test $have_doctools = no; then
18849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto or asciidoc not found - cannot create man pages without it" >&5
18850 $as_echo "$as_me: WARNING: xmlto or asciidoc not found - cannot create man pages without it" >&2;}
18851 fi
18852
18853 # Determine if the source for man pages is available
18854 # It may already be present (tarball) or can be generated using doctools
18855 if test -f "$srcdir/man/XAllowDeviceEvents.man" || \
18856 test $have_doctools = yes; then
18857 INSTALL_MANPAGES_TRUE=
18858 INSTALL_MANPAGES_FALSE='#'
18859 else
18860 INSTALL_MANPAGES_TRUE='#'
18861 INSTALL_MANPAGES_FALSE=
18862 fi
18863
18864
18865 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile specs/Makefile xi.pc"
18866
18867 cat >confcache <<\_ACEOF
18868 # This file is a shell script that caches the results of configure
18869 # tests run on this system so they can be shared between configure
18870 # scripts and configure runs, see configure's option --config-cache.
18871 # It is not useful on other systems. If it contains results you don't
18872 # want to keep, you may remove or edit it.
18873 #
18874 # config.status only pays attention to the cache file if you give it
18875 # the --recheck option to rerun configure.
18876 #
18877 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18878 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18879 # following values.
18880
18881 _ACEOF
18882
18883 # The following way of writing the cache mishandles newlines in values,
18884 # but we know of no workaround that is simple, portable, and efficient.
18885 # So, we kill variables containing newlines.
18886 # Ultrix sh set writes to stderr and can't be redirected directly,
18887 # and sets the high bit in the cache file unless we assign to the vars.
18888 (
18889 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18890 eval ac_val=\$$ac_var
18891 case $ac_val in #(
18892 *${as_nl}*)
18893 case $ac_var in #(
18894 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18895 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18896 esac
18897 case $ac_var in #(
18898 _ | IFS | as_nl) ;; #(
18899 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18900 *) { eval $ac_var=; unset $ac_var;} ;;
18901 esac ;;
18902 esac
18903 done
18904
18905 (set) 2>&1 |
18906 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18907 *${as_nl}ac_space=\ *)
18908 # `set' does not quote correctly, so add quotes: double-quote
18909 # substitution turns \\\\ into \\, and sed turns \\ into \.
18910 sed -n \
18911 "s/'/'\\\\''/g;
18912 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18913 ;; #(
18914 *)
18915 # `set' quotes correctly as required by POSIX, so do not add quotes.
18916 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18917 ;;
18918 esac |
18919 sort
18920 ) |
18921 sed '
18922 /^ac_cv_env_/b end
18923 t clear
18924 :clear
18925 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18926 t end
18927 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18928 :end' >>confcache
18929 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18930 if test -w "$cache_file"; then
18931 if test "x$cache_file" != "x/dev/null"; then
18932 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18933 $as_echo "$as_me: updating cache $cache_file" >&6;}
18934 if test ! -f "$cache_file" || test -h "$cache_file"; then
18935 cat confcache >"$cache_file"
18936 else
18937 case $cache_file in #(
18938 */* | ?:*)
18939 mv -f confcache "$cache_file"$$ &&
18940 mv -f "$cache_file"$$ "$cache_file" ;; #(
18941 *)
18942 mv -f confcache "$cache_file" ;;
18943 esac
18944 fi
18945 fi
18946 else
18947 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18948 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18949 fi
18950 fi
18951 rm -f confcache
18952
18953 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18954 # Let make expand exec_prefix.
18955 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18956
18957 DEFS=-DHAVE_CONFIG_H
18958
18959 ac_libobjs=
18960 ac_ltlibobjs=
18961 U=
18962 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18963 # 1. Remove the extension, and $U if already installed.
18964 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18965 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18966 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18967 # will be set to the directory where LIBOBJS objects are built.
18968 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18969 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18970 done
18971 LIBOBJS=$ac_libobjs
18972
18973 LTLIBOBJS=$ac_ltlibobjs
18974
18975
18976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18977 $as_echo_n "checking that generated files are newer than configure... " >&6; }
18978 if test -n "$am_sleep_pid"; then
18979 # Hide warnings about reused PIDs.
18980 wait $am_sleep_pid 2>/dev/null
18981 fi
18982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18983 $as_echo "done" >&6; }
18984 if test -n "$EXEEXT"; then
18985 am__EXEEXT_TRUE=
18986 am__EXEEXT_FALSE='#'
18987 else
18988 am__EXEEXT_TRUE='#'
18989 am__EXEEXT_FALSE=
18990 fi
18991
18992 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18993 as_fn_error $? "conditional \"AMDEP\" was never defined.
18994 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18995 fi
18996 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18997 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18998 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18999 fi
19000 if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then
19001 as_fn_error $? "conditional \"ENABLE_DOCS\" was never defined.
19002 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19003 fi
19004 if test -z "${ENABLE_SPECS_TRUE}" && test -z "${ENABLE_SPECS_FALSE}"; then
19005 as_fn_error $? "conditional \"ENABLE_SPECS\" was never defined.
19006 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19007 fi
19008 if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then
19009 as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined.
19010 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19011 fi
19012 if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
19013 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
19014 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19015 fi
19016 if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
19017 as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
19018 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19019 fi
19020 if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then
19021 as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined.
19022 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19023 fi
19024 if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then
19025 as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined.
19026 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19027 fi
19028 if test -z "${HAVE_ASCIIDOC_TRUE}" && test -z "${HAVE_ASCIIDOC_FALSE}"; then
19029 as_fn_error $? "conditional \"HAVE_ASCIIDOC\" was never defined.
19030 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19031 fi
19032 if test -z "${HAVE_DOCTOOLS_TRUE}" && test -z "${HAVE_DOCTOOLS_FALSE}"; then
19033 as_fn_error $? "conditional \"HAVE_DOCTOOLS\" was never defined.
19034 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19035 fi
19036 if test -z "${INSTALL_MANPAGES_TRUE}" && test -z "${INSTALL_MANPAGES_FALSE}"; then
19037 as_fn_error $? "conditional \"INSTALL_MANPAGES\" was never defined.
19038 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19039 fi
19040
19041 : "${CONFIG_STATUS=./config.status}"
19042 ac_write_fail=0
19043 ac_clean_files_save=$ac_clean_files
19044 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19045 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19046 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19047 as_write_fail=0
19048 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19049 #! $SHELL
19050 # Generated by $as_me.
19051 # Run this file to recreate the current configuration.
19052 # Compiler output produced by configure, useful for debugging
19053 # configure, is in config.log if it exists.
19054
19055 debug=false
19056 ac_cs_recheck=false
19057 ac_cs_silent=false
19058
19059 SHELL=\${CONFIG_SHELL-$SHELL}
19060 export SHELL
19061 _ASEOF
19062 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19063 ## -------------------- ##
19064 ## M4sh Initialization. ##
19065 ## -------------------- ##
19066
19067 # Be more Bourne compatible
19068 DUALCASE=1; export DUALCASE # for MKS sh
19069 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19070 emulate sh
19071 NULLCMD=:
19072 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19073 # is contrary to our usage. Disable this feature.
19074 alias -g '${1+"$@"}'='"$@"'
19075 setopt NO_GLOB_SUBST
19076 else
19077 case `(set -o) 2>/dev/null` in #(
19078 *posix*) :
19079 set -o posix ;; #(
19080 *) :
19081 ;;
19082 esac
19083 fi
19084
19085
19086 as_nl='
19087 '
19088 export as_nl
19089 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19090 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19091 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19092 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19093 # Prefer a ksh shell builtin over an external printf program on Solaris,
19094 # but without wasting forks for bash or zsh.
19095 if test -z "$BASH_VERSION$ZSH_VERSION" \
19096 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19097 as_echo='print -r --'
19098 as_echo_n='print -rn --'
19099 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19100 as_echo='printf %s\n'
19101 as_echo_n='printf %s'
19102 else
19103 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19104 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19105 as_echo_n='/usr/ucb/echo -n'
19106 else
19107 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19108 as_echo_n_body='eval
19109 arg=$1;
19110 case $arg in #(
19111 *"$as_nl"*)
19112 expr "X$arg" : "X\\(.*\\)$as_nl";
19113 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19114 esac;
19115 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19116 '
19117 export as_echo_n_body
19118 as_echo_n='sh -c $as_echo_n_body as_echo'
19119 fi
19120 export as_echo_body
19121 as_echo='sh -c $as_echo_body as_echo'
19122 fi
19123
19124 # The user is always right.
19125 if test "${PATH_SEPARATOR+set}" != set; then
19126 PATH_SEPARATOR=:
19127 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19128 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19129 PATH_SEPARATOR=';'
19130 }
19131 fi
19132
19133
19134 # IFS
19135 # We need space, tab and new line, in precisely that order. Quoting is
19136 # there to prevent editors from complaining about space-tab.
19137 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19138 # splitting by setting IFS to empty value.)
19139 IFS=" "" $as_nl"
19140
19141 # Find who we are. Look in the path if we contain no directory separator.
19142 as_myself=
19143 case $0 in #((
19144 *[\\/]* ) as_myself=$0 ;;
19145 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19146 for as_dir in $PATH
19147 do
19148 IFS=$as_save_IFS
19149 test -z "$as_dir" && as_dir=.
19150 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19151 done
19152 IFS=$as_save_IFS
19153
19154 ;;
19155 esac
19156 # We did not find ourselves, most probably we were run as `sh COMMAND'
19157 # in which case we are not to be found in the path.
19158 if test "x$as_myself" = x; then
19159 as_myself=$0
19160 fi
19161 if test ! -f "$as_myself"; then
19162 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19163 exit 1
19164 fi
19165
19166 # Unset variables that we do not need and which cause bugs (e.g. in
19167 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19168 # suppresses any "Segmentation fault" message there. '((' could
19169 # trigger a bug in pdksh 5.2.14.
19170 for as_var in BASH_ENV ENV MAIL MAILPATH
19171 do eval test x\${$as_var+set} = xset \
19172 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19173 done
19174 PS1='$ '
19175 PS2='> '
19176 PS4='+ '
19177
19178 # NLS nuisances.
19179 LC_ALL=C
19180 export LC_ALL
19181 LANGUAGE=C
19182 export LANGUAGE
19183
19184 # CDPATH.
19185 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19186
19187
19188 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19189 # ----------------------------------------
19190 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19191 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19192 # script with STATUS, using 1 if that was 0.
19193 as_fn_error ()
19194 {
19195 as_status=$1; test $as_status -eq 0 && as_status=1
19196 if test "$4"; then
19197 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19198 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19199 fi
19200 $as_echo "$as_me: error: $2" >&2
19201 as_fn_exit $as_status
19202 } # as_fn_error
19203
19204
19205 # as_fn_set_status STATUS
19206 # -----------------------
19207 # Set $? to STATUS, without forking.
19208 as_fn_set_status ()
19209 {
19210 return $1
19211 } # as_fn_set_status
19212
19213 # as_fn_exit STATUS
19214 # -----------------
19215 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19216 as_fn_exit ()
19217 {
19218 set +e
19219 as_fn_set_status $1
19220 exit $1
19221 } # as_fn_exit
19222
19223 # as_fn_unset VAR
19224 # ---------------
19225 # Portably unset VAR.
19226 as_fn_unset ()
19227 {
19228 { eval $1=; unset $1;}
19229 }
19230 as_unset=as_fn_unset
19231 # as_fn_append VAR VALUE
19232 # ----------------------
19233 # Append the text in VALUE to the end of the definition contained in VAR. Take
19234 # advantage of any shell optimizations that allow amortized linear growth over
19235 # repeated appends, instead of the typical quadratic growth present in naive
19236 # implementations.
19237 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19238 eval 'as_fn_append ()
19239 {
19240 eval $1+=\$2
19241 }'
19242 else
19243 as_fn_append ()
19244 {
19245 eval $1=\$$1\$2
19246 }
19247 fi # as_fn_append
19248
19249 # as_fn_arith ARG...
19250 # ------------------
19251 # Perform arithmetic evaluation on the ARGs, and store the result in the
19252 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19253 # must be portable across $(()) and expr.
19254 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19255 eval 'as_fn_arith ()
19256 {
19257 as_val=$(( $* ))
19258 }'
19259 else
19260 as_fn_arith ()
19261 {
19262 as_val=`expr "$@" || test $? -eq 1`
19263 }
19264 fi # as_fn_arith
19265
19266
19267 if expr a : '\(a\)' >/dev/null 2>&1 &&
19268 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19269 as_expr=expr
19270 else
19271 as_expr=false
19272 fi
19273
19274 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19275 as_basename=basename
19276 else
19277 as_basename=false
19278 fi
19279
19280 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19281 as_dirname=dirname
19282 else
19283 as_dirname=false
19284 fi
19285
19286 as_me=`$as_basename -- "$0" ||
19287 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19288 X"$0" : 'X\(//\)$' \| \
19289 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19290 $as_echo X/"$0" |
19291 sed '/^.*\/\([^/][^/]*\)\/*$/{
19292 s//\1/
19293 q
19294 }
19295 /^X\/\(\/\/\)$/{
19296 s//\1/
19297 q
19298 }
19299 /^X\/\(\/\).*/{
19300 s//\1/
19301 q
19302 }
19303 s/.*/./; q'`
19304
19305 # Avoid depending upon Character Ranges.
19306 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19307 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19308 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19309 as_cr_digits='0123456789'
19310 as_cr_alnum=$as_cr_Letters$as_cr_digits
19311
19312 ECHO_C= ECHO_N= ECHO_T=
19313 case `echo -n x` in #(((((
19314 -n*)
19315 case `echo 'xy\c'` in
19316 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19317 xy) ECHO_C='\c';;
19318 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19319 ECHO_T=' ';;
19320 esac;;
19321 *)
19322 ECHO_N='-n';;
19323 esac
19324
19325 rm -f conf$$ conf$$.exe conf$$.file
19326 if test -d conf$$.dir; then
19327 rm -f conf$$.dir/conf$$.file
19328 else
19329 rm -f conf$$.dir
19330 mkdir conf$$.dir 2>/dev/null
19331 fi
19332 if (echo >conf$$.file) 2>/dev/null; then
19333 if ln -s conf$$.file conf$$ 2>/dev/null; then
19334 as_ln_s='ln -s'
19335 # ... but there are two gotchas:
19336 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19337 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19338 # In both cases, we have to default to `cp -pR'.
19339 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19340 as_ln_s='cp -pR'
19341 elif ln conf$$.file conf$$ 2>/dev/null; then
19342 as_ln_s=ln
19343 else
19344 as_ln_s='cp -pR'
19345 fi
19346 else
19347 as_ln_s='cp -pR'
19348 fi
19349 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19350 rmdir conf$$.dir 2>/dev/null
19351
19352
19353 # as_fn_mkdir_p
19354 # -------------
19355 # Create "$as_dir" as a directory, including parents if necessary.
19356 as_fn_mkdir_p ()
19357 {
19358
19359 case $as_dir in #(
19360 -*) as_dir=./$as_dir;;
19361 esac
19362 test -d "$as_dir" || eval $as_mkdir_p || {
19363 as_dirs=
19364 while :; do
19365 case $as_dir in #(
19366 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19367 *) as_qdir=$as_dir;;
19368 esac
19369 as_dirs="'$as_qdir' $as_dirs"
19370 as_dir=`$as_dirname -- "$as_dir" ||
19371 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19372 X"$as_dir" : 'X\(//\)[^/]' \| \
19373 X"$as_dir" : 'X\(//\)$' \| \
19374 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19375 $as_echo X"$as_dir" |
19376 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19377 s//\1/
19378 q
19379 }
19380 /^X\(\/\/\)[^/].*/{
19381 s//\1/
19382 q
19383 }
19384 /^X\(\/\/\)$/{
19385 s//\1/
19386 q
19387 }
19388 /^X\(\/\).*/{
19389 s//\1/
19390 q
19391 }
19392 s/.*/./; q'`
19393 test -d "$as_dir" && break
19394 done
19395 test -z "$as_dirs" || eval "mkdir $as_dirs"
19396 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19397
19398
19399 } # as_fn_mkdir_p
19400 if mkdir -p . 2>/dev/null; then
19401 as_mkdir_p='mkdir -p "$as_dir"'
19402 else
19403 test -d ./-p && rmdir ./-p
19404 as_mkdir_p=false
19405 fi
19406
19407
19408 # as_fn_executable_p FILE
19409 # -----------------------
19410 # Test if FILE is an executable regular file.
19411 as_fn_executable_p ()
19412 {
19413 test -f "$1" && test -x "$1"
19414 } # as_fn_executable_p
19415 as_test_x='test -x'
19416 as_executable_p=as_fn_executable_p
19417
19418 # Sed expression to map a string onto a valid CPP name.
19419 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19420
19421 # Sed expression to map a string onto a valid variable name.
19422 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19423
19424
19425 exec 6>&1
19426 ## ----------------------------------- ##
19427 ## Main body of $CONFIG_STATUS script. ##
19428 ## ----------------------------------- ##
19429 _ASEOF
19430 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19431
19432 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19433 # Save the log message, to keep $0 and so on meaningful, and to
19434 # report actual input values of CONFIG_FILES etc. instead of their
19435 # values after options handling.
19436 ac_log="
19437 This file was extended by libXi $as_me 1.7.7, which was
19438 generated by GNU Autoconf 2.69. Invocation command line was
19439
19440 CONFIG_FILES = $CONFIG_FILES
19441 CONFIG_HEADERS = $CONFIG_HEADERS
19442 CONFIG_LINKS = $CONFIG_LINKS
19443 CONFIG_COMMANDS = $CONFIG_COMMANDS
19444 $ $0 $@
19445
19446 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19447 "
19448
19449 _ACEOF
19450
19451 case $ac_config_files in *"
19452 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19453 esac
19454
19455 case $ac_config_headers in *"
19456 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19457 esac
19458
19459
19460 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19461 # Files that config.status was made for.
19462 config_files="$ac_config_files"
19463 config_headers="$ac_config_headers"
19464 config_commands="$ac_config_commands"
19465
19466 _ACEOF
19467
19468 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19469 ac_cs_usage="\
19470 \`$as_me' instantiates files and other configuration actions
19471 from templates according to the current configuration. Unless the files
19472 and actions are specified as TAGs, all are instantiated by default.
19473
19474 Usage: $0 [OPTION]... [TAG]...
19475
19476 -h, --help print this help, then exit
19477 -V, --version print version number and configuration settings, then exit
19478 --config print configuration, then exit
19479 -q, --quiet, --silent
19480 do not print progress messages
19481 -d, --debug don't remove temporary files
19482 --recheck update $as_me by reconfiguring in the same conditions
19483 --file=FILE[:TEMPLATE]
19484 instantiate the configuration file FILE
19485 --header=FILE[:TEMPLATE]
19486 instantiate the configuration header FILE
19487
19488 Configuration files:
19489 $config_files
19490
19491 Configuration headers:
19492 $config_headers
19493
19494 Configuration commands:
19495 $config_commands
19496
19497 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
19498
19499 _ACEOF
19500 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19501 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19502 ac_cs_version="\\
19503 libXi config.status 1.7.7
19504 configured by $0, generated by GNU Autoconf 2.69,
19505 with options \\"\$ac_cs_config\\"
19506
19507 Copyright (C) 2012 Free Software Foundation, Inc.
19508 This config.status script is free software; the Free Software Foundation
19509 gives unlimited permission to copy, distribute and modify it."
19510
19511 ac_pwd='$ac_pwd'
19512 srcdir='$srcdir'
19513 INSTALL='$INSTALL'
19514 MKDIR_P='$MKDIR_P'
19515 AWK='$AWK'
19516 test -n "\$AWK" || AWK=awk
19517 _ACEOF
19518
19519 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19520 # The default lists apply if the user does not specify any file.
19521 ac_need_defaults=:
19522 while test $# != 0
19523 do
19524 case $1 in
19525 --*=?*)
19526 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19527 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19528 ac_shift=:
19529 ;;
19530 --*=)
19531 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19532 ac_optarg=
19533 ac_shift=:
19534 ;;
19535 *)
19536 ac_option=$1
19537 ac_optarg=$2
19538 ac_shift=shift
19539 ;;
19540 esac
19541
19542 case $ac_option in
19543 # Handling of the options.
19544 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19545 ac_cs_recheck=: ;;
19546 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19547 $as_echo "$ac_cs_version"; exit ;;
19548 --config | --confi | --conf | --con | --co | --c )
19549 $as_echo "$ac_cs_config"; exit ;;
19550 --debug | --debu | --deb | --de | --d | -d )
19551 debug=: ;;
19552 --file | --fil | --fi | --f )
19553 $ac_shift
19554 case $ac_optarg in
19555 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19556 '') as_fn_error $? "missing file argument" ;;
19557 esac
19558 as_fn_append CONFIG_FILES " '$ac_optarg'"
19559 ac_need_defaults=false;;
19560 --header | --heade | --head | --hea )
19561 $ac_shift
19562 case $ac_optarg in
19563 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19564 esac
19565 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19566 ac_need_defaults=false;;
19567 --he | --h)
19568 # Conflict between --help and --header
19569 as_fn_error $? "ambiguous option: \`$1'
19570 Try \`$0 --help' for more information.";;
19571 --help | --hel | -h )
19572 $as_echo "$ac_cs_usage"; exit ;;
19573 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19574 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19575 ac_cs_silent=: ;;
19576
19577 # This is an error.
19578 -*) as_fn_error $? "unrecognized option: \`$1'
19579 Try \`$0 --help' for more information." ;;
19580
19581 *) as_fn_append ac_config_targets " $1"
19582 ac_need_defaults=false ;;
19583
19584 esac
19585 shift
19586 done
19587
19588 ac_configure_extra_args=
19589
19590 if $ac_cs_silent; then
19591 exec 6>/dev/null
19592 ac_configure_extra_args="$ac_configure_extra_args --silent"
19593 fi
19594
19595 _ACEOF
19596 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19597 if \$ac_cs_recheck; then
19598 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19599 shift
19600 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19601 CONFIG_SHELL='$SHELL'
19602 export CONFIG_SHELL
19603 exec "\$@"
19604 fi
19605
19606 _ACEOF
19607 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19608 exec 5>>config.log
19609 {
19610 echo
19611 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19612 ## Running $as_me. ##
19613 _ASBOX
19614 $as_echo "$ac_log"
19615 } >&5
19616
19617 _ACEOF
19618 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19619 #
19620 # INIT-COMMANDS
19621 #
19622 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19623
19624
19625 # The HP-UX ksh and POSIX shell print the target directory to stdout
19626 # if CDPATH is set.
19627 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19628
19629 sed_quote_subst='$sed_quote_subst'
19630 double_quote_subst='$double_quote_subst'
19631 delay_variable_subst='$delay_variable_subst'
19632 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19633 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19634 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19635 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19636 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19637 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19638 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19639 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19640 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19641 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19642 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19643 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19644 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19645 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19646 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19647 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19648 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19649 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19650 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19651 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19652 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19653 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19654 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19655 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19656 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19657 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19658 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19659 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19660 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19661 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19662 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19663 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19664 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19665 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19666 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19667 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19668 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19669 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19670 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19671 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19672 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19673 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19674 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19675 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19676 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19677 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19678 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19679 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19680 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19681 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19682 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19683 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19684 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19685 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19686 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19687 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19688 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"`'
19689 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19690 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19691 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19692 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19693 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19694 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19695 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19696 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19697 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19698 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19699 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19700 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19701 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19702 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19703 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19704 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19705 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19706 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19707 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19708 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19709 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19710 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19711 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19712 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19713 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19714 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19715 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19716 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19717 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19718 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19719 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19720 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19721 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19722 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19723 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19724 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19725 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19726 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19727 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19728 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19729 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19730 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19731 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19732 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19733 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19734 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19735 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19736 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19737 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19738 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19739 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19740 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19741 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19742 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19743 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19744 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19745 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19746 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19747 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19748 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19749 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19750 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19751 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19752 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19753 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19754 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19755 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19756 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19757 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19758 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19759 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19760 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19761 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19762
19763 LTCC='$LTCC'
19764 LTCFLAGS='$LTCFLAGS'
19765 compiler='$compiler_DEFAULT'
19766
19767 # A function that is used when there is no print builtin or printf.
19768 func_fallback_echo ()
19769 {
19770 eval 'cat <<_LTECHO_EOF
19771 \$1
19772 _LTECHO_EOF'
19773 }
19774
19775 # Quote evaled strings.
19776 for var in SHELL \
19777 ECHO \
19778 PATH_SEPARATOR \
19779 SED \
19780 GREP \
19781 EGREP \
19782 FGREP \
19783 LD \
19784 NM \
19785 LN_S \
19786 lt_SP2NL \
19787 lt_NL2SP \
19788 reload_flag \
19789 OBJDUMP \
19790 deplibs_check_method \
19791 file_magic_cmd \
19792 file_magic_glob \
19793 want_nocaseglob \
19794 DLLTOOL \
19795 sharedlib_from_linklib_cmd \
19796 AR \
19797 AR_FLAGS \
19798 archiver_list_spec \
19799 STRIP \
19800 RANLIB \
19801 CC \
19802 CFLAGS \
19803 compiler \
19804 lt_cv_sys_global_symbol_pipe \
19805 lt_cv_sys_global_symbol_to_cdecl \
19806 lt_cv_sys_global_symbol_to_c_name_address \
19807 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19808 nm_file_list_spec \
19809 lt_prog_compiler_no_builtin_flag \
19810 lt_prog_compiler_pic \
19811 lt_prog_compiler_wl \
19812 lt_prog_compiler_static \
19813 lt_cv_prog_compiler_c_o \
19814 need_locks \
19815 MANIFEST_TOOL \
19816 DSYMUTIL \
19817 NMEDIT \
19818 LIPO \
19819 OTOOL \
19820 OTOOL64 \
19821 shrext_cmds \
19822 export_dynamic_flag_spec \
19823 whole_archive_flag_spec \
19824 compiler_needs_object \
19825 with_gnu_ld \
19826 allow_undefined_flag \
19827 no_undefined_flag \
19828 hardcode_libdir_flag_spec \
19829 hardcode_libdir_separator \
19830 exclude_expsyms \
19831 include_expsyms \
19832 file_list_spec \
19833 variables_saved_for_relink \
19834 libname_spec \
19835 library_names_spec \
19836 soname_spec \
19837 install_override_mode \
19838 finish_eval \
19839 old_striplib \
19840 striplib; do
19841 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19842 *[\\\\\\\`\\"\\\$]*)
19843 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19844 ;;
19845 *)
19846 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19847 ;;
19848 esac
19849 done
19850
19851 # Double-quote double-evaled strings.
19852 for var in reload_cmds \
19853 old_postinstall_cmds \
19854 old_postuninstall_cmds \
19855 old_archive_cmds \
19856 extract_expsyms_cmds \
19857 old_archive_from_new_cmds \
19858 old_archive_from_expsyms_cmds \
19859 archive_cmds \
19860 archive_expsym_cmds \
19861 module_cmds \
19862 module_expsym_cmds \
19863 export_symbols_cmds \
19864 prelink_cmds \
19865 postlink_cmds \
19866 postinstall_cmds \
19867 postuninstall_cmds \
19868 finish_cmds \
19869 sys_lib_search_path_spec \
19870 sys_lib_dlsearch_path_spec; do
19871 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19872 *[\\\\\\\`\\"\\\$]*)
19873 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19874 ;;
19875 *)
19876 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19877 ;;
19878 esac
19879 done
19880
19881 ac_aux_dir='$ac_aux_dir'
19882 xsi_shell='$xsi_shell'
19883 lt_shell_append='$lt_shell_append'
19884
19885 # See if we are running on zsh, and set the options which allow our
19886 # commands through without removal of \ escapes INIT.
19887 if test -n "\${ZSH_VERSION+set}" ; then
19888 setopt NO_GLOB_SUBST
19889 fi
19890
19891
19892 PACKAGE='$PACKAGE'
19893 VERSION='$VERSION'
19894 TIMESTAMP='$TIMESTAMP'
19895 RM='$RM'
19896 ofile='$ofile'
19897
19898
19899
19900
19901 _ACEOF
19902
19903 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19904
19905 # Handling of arguments.
19906 for ac_config_target in $ac_config_targets
19907 do
19908 case $ac_config_target in
19909 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
19910 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19911 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19912 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19913 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19914 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
19915 "specs/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Makefile" ;;
19916 "xi.pc") CONFIG_FILES="$CONFIG_FILES xi.pc" ;;
19917
19918 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19919 esac
19920 done
19921
19922
19923 # If the user did not use the arguments to specify the items to instantiate,
19924 # then the envvar interface is used. Set only those that are not.
19925 # We use the long form for the default assignment because of an extremely
19926 # bizarre bug on SunOS 4.1.3.
19927 if $ac_need_defaults; then
19928 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19929 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19930 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19931 fi
19932
19933 # Have a temporary directory for convenience. Make it in the build tree
19934 # simply because there is no reason against having it here, and in addition,
19935 # creating and moving files from /tmp can sometimes cause problems.
19936 # Hook for its removal unless debugging.
19937 # Note that there is a small window in which the directory will not be cleaned:
19938 # after its creation but before its name has been assigned to `$tmp'.
19939 $debug ||
19940 {
19941 tmp= ac_tmp=
19942 trap 'exit_status=$?
19943 : "${ac_tmp:=$tmp}"
19944 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19945 ' 0
19946 trap 'as_fn_exit 1' 1 2 13 15
19947 }
19948 # Create a (secure) tmp directory for tmp files.
19949
19950 {
19951 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19952 test -d "$tmp"
19953 } ||
19954 {
19955 tmp=./conf$$-$RANDOM
19956 (umask 077 && mkdir "$tmp")
19957 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19958 ac_tmp=$tmp
19959
19960 # Set up the scripts for CONFIG_FILES section.
19961 # No need to generate them if there are no CONFIG_FILES.
19962 # This happens for instance with `./config.status config.h'.
19963 if test -n "$CONFIG_FILES"; then
19964
19965
19966 ac_cr=`echo X | tr X '\015'`
19967 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19968 # But we know of no other shell where ac_cr would be empty at this
19969 # point, so we can use a bashism as a fallback.
19970 if test "x$ac_cr" = x; then
19971 eval ac_cr=\$\'\\r\'
19972 fi
19973 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19974 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19975 ac_cs_awk_cr='\\r'
19976 else
19977 ac_cs_awk_cr=$ac_cr
19978 fi
19979
19980 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19981 _ACEOF
19982
19983
19984 {
19985 echo "cat >conf$$subs.awk <<_ACEOF" &&
19986 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19987 echo "_ACEOF"
19988 } >conf$$subs.sh ||
19989 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19990 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19991 ac_delim='%!_!# '
19992 for ac_last_try in false false false false false :; do
19993 . ./conf$$subs.sh ||
19994 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19995
19996 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19997 if test $ac_delim_n = $ac_delim_num; then
19998 break
19999 elif $ac_last_try; then
20000 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20001 else
20002 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20003 fi
20004 done
20005 rm -f conf$$subs.sh
20006
20007 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20008 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20009 _ACEOF
20010 sed -n '
20011 h
20012 s/^/S["/; s/!.*/"]=/
20013 p
20014 g
20015 s/^[^!]*!//
20016 :repl
20017 t repl
20018 s/'"$ac_delim"'$//
20019 t delim
20020 :nl
20021 h
20022 s/\(.\{148\}\)..*/\1/
20023 t more1
20024 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20025 p
20026 n
20027 b repl
20028 :more1
20029 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20030 p
20031 g
20032 s/.\{148\}//
20033 t nl
20034 :delim
20035 h
20036 s/\(.\{148\}\)..*/\1/
20037 t more2
20038 s/["\\]/\\&/g; s/^/"/; s/$/"/
20039 p
20040 b
20041 :more2
20042 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20043 p
20044 g
20045 s/.\{148\}//
20046 t delim
20047 ' <conf$$subs.awk | sed '
20048 /^[^""]/{
20049 N
20050 s/\n//
20051 }
20052 ' >>$CONFIG_STATUS || ac_write_fail=1
20053 rm -f conf$$subs.awk
20054 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20055 _ACAWK
20056 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20057 for (key in S) S_is_set[key] = 1
20058 FS = ""
20059
20060 }
20061 {
20062 line = $ 0
20063 nfields = split(line, field, "@")
20064 substed = 0
20065 len = length(field[1])
20066 for (i = 2; i < nfields; i++) {
20067 key = field[i]
20068 keylen = length(key)
20069 if (S_is_set[key]) {
20070 value = S[key]
20071 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20072 len += length(value) + length(field[++i])
20073 substed = 1
20074 } else
20075 len += 1 + keylen
20076 }
20077
20078 print line
20079 }
20080
20081 _ACAWK
20082 _ACEOF
20083 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20084 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20085 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20086 else
20087 cat
20088 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20089 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20090 _ACEOF
20091
20092 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20093 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20094 # trailing colons and then remove the whole line if VPATH becomes empty
20095 # (actually we leave an empty line to preserve line numbers).
20096 if test "x$srcdir" = x.; then
20097 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20098 h
20099 s///
20100 s/^/:/
20101 s/[ ]*$/:/
20102 s/:\$(srcdir):/:/g
20103 s/:\${srcdir}:/:/g
20104 s/:@srcdir@:/:/g
20105 s/^:*//
20106 s/:*$//
20107 x
20108 s/\(=[ ]*\).*/\1/
20109 G
20110 s/\n//
20111 s/^[^=]*=[ ]*$//
20112 }'
20113 fi
20114
20115 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20116 fi # test -n "$CONFIG_FILES"
20117
20118 # Set up the scripts for CONFIG_HEADERS section.
20119 # No need to generate them if there are no CONFIG_HEADERS.
20120 # This happens for instance with `./config.status Makefile'.
20121 if test -n "$CONFIG_HEADERS"; then
20122 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20123 BEGIN {
20124 _ACEOF
20125
20126 # Transform confdefs.h into an awk script `defines.awk', embedded as
20127 # here-document in config.status, that substitutes the proper values into
20128 # config.h.in to produce config.h.
20129
20130 # Create a delimiter string that does not exist in confdefs.h, to ease
20131 # handling of long lines.
20132 ac_delim='%!_!# '
20133 for ac_last_try in false false :; do
20134 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20135 if test -z "$ac_tt"; then
20136 break
20137 elif $ac_last_try; then
20138 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20139 else
20140 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20141 fi
20142 done
20143
20144 # For the awk script, D is an array of macro values keyed by name,
20145 # likewise P contains macro parameters if any. Preserve backslash
20146 # newline sequences.
20147
20148 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20149 sed -n '
20150 s/.\{148\}/&'"$ac_delim"'/g
20151 t rset
20152 :rset
20153 s/^[ ]*#[ ]*define[ ][ ]*/ /
20154 t def
20155 d
20156 :def
20157 s/\\$//
20158 t bsnl
20159 s/["\\]/\\&/g
20160 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20161 D["\1"]=" \3"/p
20162 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20163 d
20164 :bsnl
20165 s/["\\]/\\&/g
20166 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20167 D["\1"]=" \3\\\\\\n"\\/p
20168 t cont
20169 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20170 t cont
20171 d
20172 :cont
20173 n
20174 s/.\{148\}/&'"$ac_delim"'/g
20175 t clear
20176 :clear
20177 s/\\$//
20178 t bsnlc
20179 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20180 d
20181 :bsnlc
20182 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20183 b cont
20184 ' <confdefs.h | sed '
20185 s/'"$ac_delim"'/"\\\
20186 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20187
20188 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20189 for (key in D) D_is_set[key] = 1
20190 FS = ""
20191 }
20192 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20193 line = \$ 0
20194 split(line, arg, " ")
20195 if (arg[1] == "#") {
20196 defundef = arg[2]
20197 mac1 = arg[3]
20198 } else {
20199 defundef = substr(arg[1], 2)
20200 mac1 = arg[2]
20201 }
20202 split(mac1, mac2, "(") #)
20203 macro = mac2[1]
20204 prefix = substr(line, 1, index(line, defundef) - 1)
20205 if (D_is_set[macro]) {
20206 # Preserve the white space surrounding the "#".
20207 print prefix "define", macro P[macro] D[macro]
20208 next
20209 } else {
20210 # Replace #undef with comments. This is necessary, for example,
20211 # in the case of _POSIX_SOURCE, which is predefined and required
20212 # on some systems where configure will not decide to define it.
20213 if (defundef == "undef") {
20214 print "/*", prefix defundef, macro, "*/"
20215 next
20216 }
20217 }
20218 }
20219 { print }
20220 _ACAWK
20221 _ACEOF
20222 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20223 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20224 fi # test -n "$CONFIG_HEADERS"
20225
20226
20227 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20228 shift
20229 for ac_tag
20230 do
20231 case $ac_tag in
20232 :[FHLC]) ac_mode=$ac_tag; continue;;
20233 esac
20234 case $ac_mode$ac_tag in
20235 :[FHL]*:*);;
20236 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20237 :[FH]-) ac_tag=-:-;;
20238 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20239 esac
20240 ac_save_IFS=$IFS
20241 IFS=:
20242 set x $ac_tag
20243 IFS=$ac_save_IFS
20244 shift
20245 ac_file=$1
20246 shift
20247
20248 case $ac_mode in
20249 :L) ac_source=$1;;
20250 :[FH])
20251 ac_file_inputs=
20252 for ac_f
20253 do
20254 case $ac_f in
20255 -) ac_f="$ac_tmp/stdin";;
20256 *) # Look for the file first in the build tree, then in the source tree
20257 # (if the path is not absolute). The absolute path cannot be DOS-style,
20258 # because $ac_f cannot contain `:'.
20259 test -f "$ac_f" ||
20260 case $ac_f in
20261 [\\/$]*) false;;
20262 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20263 esac ||
20264 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20265 esac
20266 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20267 as_fn_append ac_file_inputs " '$ac_f'"
20268 done
20269
20270 # Let's still pretend it is `configure' which instantiates (i.e., don't
20271 # use $as_me), people would be surprised to read:
20272 # /* config.h. Generated by config.status. */
20273 configure_input='Generated from '`
20274 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20275 `' by configure.'
20276 if test x"$ac_file" != x-; then
20277 configure_input="$ac_file. $configure_input"
20278 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20279 $as_echo "$as_me: creating $ac_file" >&6;}
20280 fi
20281 # Neutralize special characters interpreted by sed in replacement strings.
20282 case $configure_input in #(
20283 *\&* | *\|* | *\\* )
20284 ac_sed_conf_input=`$as_echo "$configure_input" |
20285 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20286 *) ac_sed_conf_input=$configure_input;;
20287 esac
20288
20289 case $ac_tag in
20290 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20291 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20292 esac
20293 ;;
20294 esac
20295
20296 ac_dir=`$as_dirname -- "$ac_file" ||
20297 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20298 X"$ac_file" : 'X\(//\)[^/]' \| \
20299 X"$ac_file" : 'X\(//\)$' \| \
20300 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20301 $as_echo X"$ac_file" |
20302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20303 s//\1/
20304 q
20305 }
20306 /^X\(\/\/\)[^/].*/{
20307 s//\1/
20308 q
20309 }
20310 /^X\(\/\/\)$/{
20311 s//\1/
20312 q
20313 }
20314 /^X\(\/\).*/{
20315 s//\1/
20316 q
20317 }
20318 s/.*/./; q'`
20319 as_dir="$ac_dir"; as_fn_mkdir_p
20320 ac_builddir=.
20321
20322 case "$ac_dir" in
20323 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20324 *)
20325 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20326 # A ".." for each directory in $ac_dir_suffix.
20327 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20328 case $ac_top_builddir_sub in
20329 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20330 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20331 esac ;;
20332 esac
20333 ac_abs_top_builddir=$ac_pwd
20334 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20335 # for backward compatibility:
20336 ac_top_builddir=$ac_top_build_prefix
20337
20338 case $srcdir in
20339 .) # We are building in place.
20340 ac_srcdir=.
20341 ac_top_srcdir=$ac_top_builddir_sub
20342 ac_abs_top_srcdir=$ac_pwd ;;
20343 [\\/]* | ?:[\\/]* ) # Absolute name.
20344 ac_srcdir=$srcdir$ac_dir_suffix;
20345 ac_top_srcdir=$srcdir
20346 ac_abs_top_srcdir=$srcdir ;;
20347 *) # Relative name.
20348 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20349 ac_top_srcdir=$ac_top_build_prefix$srcdir
20350 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20351 esac
20352 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20353
20354
20355 case $ac_mode in
20356 :F)
20357 #
20358 # CONFIG_FILE
20359 #
20360
20361 case $INSTALL in
20362 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20363 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20364 esac
20365 ac_MKDIR_P=$MKDIR_P
20366 case $MKDIR_P in
20367 [\\/$]* | ?:[\\/]* ) ;;
20368 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20369 esac
20370 _ACEOF
20371
20372 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20373 # If the template does not know about datarootdir, expand it.
20374 # FIXME: This hack should be removed a few years after 2.60.
20375 ac_datarootdir_hack=; ac_datarootdir_seen=
20376 ac_sed_dataroot='
20377 /datarootdir/ {
20378 p
20379 q
20380 }
20381 /@datadir@/p
20382 /@docdir@/p
20383 /@infodir@/p
20384 /@localedir@/p
20385 /@mandir@/p'
20386 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20387 *datarootdir*) ac_datarootdir_seen=yes;;
20388 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20389 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20390 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20391 _ACEOF
20392 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20393 ac_datarootdir_hack='
20394 s&@datadir@&$datadir&g
20395 s&@docdir@&$docdir&g
20396 s&@infodir@&$infodir&g
20397 s&@localedir@&$localedir&g
20398 s&@mandir@&$mandir&g
20399 s&\\\${datarootdir}&$datarootdir&g' ;;
20400 esac
20401 _ACEOF
20402
20403 # Neutralize VPATH when `$srcdir' = `.'.
20404 # Shell code in configure.ac might set extrasub.
20405 # FIXME: do we really want to maintain this feature?
20406 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20407 ac_sed_extra="$ac_vpsub
20408 $extrasub
20409 _ACEOF
20410 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20411 :t
20412 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20413 s|@configure_input@|$ac_sed_conf_input|;t t
20414 s&@top_builddir@&$ac_top_builddir_sub&;t t
20415 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20416 s&@srcdir@&$ac_srcdir&;t t
20417 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20418 s&@top_srcdir@&$ac_top_srcdir&;t t
20419 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20420 s&@builddir@&$ac_builddir&;t t
20421 s&@abs_builddir@&$ac_abs_builddir&;t t
20422 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20423 s&@INSTALL@&$ac_INSTALL&;t t
20424 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20425 $ac_datarootdir_hack
20426 "
20427 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20428 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20429
20430 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20431 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20432 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20433 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20435 which seems to be undefined. Please make sure it is defined" >&5
20436 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20437 which seems to be undefined. Please make sure it is defined" >&2;}
20438
20439 rm -f "$ac_tmp/stdin"
20440 case $ac_file in
20441 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20442 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20443 esac \
20444 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20445 ;;
20446 :H)
20447 #
20448 # CONFIG_HEADER
20449 #
20450 if test x"$ac_file" != x-; then
20451 {
20452 $as_echo "/* $configure_input */" \
20453 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20454 } >"$ac_tmp/config.h" \
20455 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20456 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20457 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20458 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20459 else
20460 rm -f "$ac_file"
20461 mv "$ac_tmp/config.h" "$ac_file" \
20462 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20463 fi
20464 else
20465 $as_echo "/* $configure_input */" \
20466 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20467 || as_fn_error $? "could not create -" "$LINENO" 5
20468 fi
20469 # Compute "$ac_file"'s index in $config_headers.
20470 _am_arg="$ac_file"
20471 _am_stamp_count=1
20472 for _am_header in $config_headers :; do
20473 case $_am_header in
20474 $_am_arg | $_am_arg:* )
20475 break ;;
20476 * )
20477 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20478 esac
20479 done
20480 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20481 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20482 X"$_am_arg" : 'X\(//\)[^/]' \| \
20483 X"$_am_arg" : 'X\(//\)$' \| \
20484 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20485 $as_echo X"$_am_arg" |
20486 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20487 s//\1/
20488 q
20489 }
20490 /^X\(\/\/\)[^/].*/{
20491 s//\1/
20492 q
20493 }
20494 /^X\(\/\/\)$/{
20495 s//\1/
20496 q
20497 }
20498 /^X\(\/\).*/{
20499 s//\1/
20500 q
20501 }
20502 s/.*/./; q'`/stamp-h$_am_stamp_count
20503 ;;
20504
20505 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20506 $as_echo "$as_me: executing $ac_file commands" >&6;}
20507 ;;
20508 esac
20509
20510
20511 case $ac_file$ac_mode in
20512 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20513 # Older Autoconf quotes --file arguments for eval, but not when files
20514 # are listed without --file. Let's play safe and only enable the eval
20515 # if we detect the quoting.
20516 case $CONFIG_FILES in
20517 *\'*) eval set x "$CONFIG_FILES" ;;
20518 *) set x $CONFIG_FILES ;;
20519 esac
20520 shift
20521 for mf
20522 do
20523 # Strip MF so we end up with the name of the file.
20524 mf=`echo "$mf" | sed -e 's/:.*$//'`
20525 # Check whether this is an Automake generated Makefile or not.
20526 # We used to match only the files named 'Makefile.in', but
20527 # some people rename them; so instead we look at the file content.
20528 # Grep'ing the first line is not enough: some people post-process
20529 # each Makefile.in and add a new line on top of each file to say so.
20530 # Grep'ing the whole file is not good either: AIX grep has a line
20531 # limit of 2048, but all sed's we know have understand at least 4000.
20532 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20533 dirpart=`$as_dirname -- "$mf" ||
20534 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20535 X"$mf" : 'X\(//\)[^/]' \| \
20536 X"$mf" : 'X\(//\)$' \| \
20537 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20538 $as_echo X"$mf" |
20539 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20540 s//\1/
20541 q
20542 }
20543 /^X\(\/\/\)[^/].*/{
20544 s//\1/
20545 q
20546 }
20547 /^X\(\/\/\)$/{
20548 s//\1/
20549 q
20550 }
20551 /^X\(\/\).*/{
20552 s//\1/
20553 q
20554 }
20555 s/.*/./; q'`
20556 else
20557 continue
20558 fi
20559 # Extract the definition of DEPDIR, am__include, and am__quote
20560 # from the Makefile without running 'make'.
20561 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20562 test -z "$DEPDIR" && continue
20563 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20564 test -z "$am__include" && continue
20565 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20566 # Find all dependency output files, they are included files with
20567 # $(DEPDIR) in their names. We invoke sed twice because it is the
20568 # simplest approach to changing $(DEPDIR) to its actual value in the
20569 # expansion.
20570 for file in `sed -n "
20571 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20572 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
20573 # Make sure the directory exists.
20574 test -f "$dirpart/$file" && continue
20575 fdir=`$as_dirname -- "$file" ||
20576 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20577 X"$file" : 'X\(//\)[^/]' \| \
20578 X"$file" : 'X\(//\)$' \| \
20579 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20580 $as_echo X"$file" |
20581 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20582 s//\1/
20583 q
20584 }
20585 /^X\(\/\/\)[^/].*/{
20586 s//\1/
20587 q
20588 }
20589 /^X\(\/\/\)$/{
20590 s//\1/
20591 q
20592 }
20593 /^X\(\/\).*/{
20594 s//\1/
20595 q
20596 }
20597 s/.*/./; q'`
20598 as_dir=$dirpart/$fdir; as_fn_mkdir_p
20599 # echo "creating $dirpart/$file"
20600 echo '# dummy' > "$dirpart/$file"
20601 done
20602 done
20603 }
20604 ;;
20605 "libtool":C)
20606
20607 # See if we are running on zsh, and set the options which allow our
20608 # commands through without removal of \ escapes.
20609 if test -n "${ZSH_VERSION+set}" ; then
20610 setopt NO_GLOB_SUBST
20611 fi
20612
20613 cfgfile="${ofile}T"
20614 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20615 $RM "$cfgfile"
20616
20617 cat <<_LT_EOF >> "$cfgfile"
20618 #! $SHELL
20619
20620 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20621 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20622 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20623 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20624 #
20625 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20626 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
20627 # Foundation, Inc.
20628 # Written by Gordon Matzigkeit, 1996
20629 #
20630 # This file is part of GNU Libtool.
20631 #
20632 # GNU Libtool is free software; you can redistribute it and/or
20633 # modify it under the terms of the GNU General Public License as
20634 # published by the Free Software Foundation; either version 2 of
20635 # the License, or (at your option) any later version.
20636 #
20637 # As a special exception to the GNU General Public License,
20638 # if you distribute this file as part of a program or library that
20639 # is built using GNU Libtool, you may include this file under the
20640 # same distribution terms that you use for the rest of that program.
20641 #
20642 # GNU Libtool is distributed in the hope that it will be useful,
20643 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20644 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20645 # GNU General Public License for more details.
20646 #
20647 # You should have received a copy of the GNU General Public License
20648 # along with GNU Libtool; see the file COPYING. If not, a copy
20649 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20650 # obtained by writing to the Free Software Foundation, Inc.,
20651 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20652
20653
20654 # The names of the tagged configurations supported by this script.
20655 available_tags=""
20656
20657 # ### BEGIN LIBTOOL CONFIG
20658
20659 # Which release of libtool.m4 was used?
20660 macro_version=$macro_version
20661 macro_revision=$macro_revision
20662
20663 # Whether or not to build shared libraries.
20664 build_libtool_libs=$enable_shared
20665
20666 # Whether or not to build static libraries.
20667 build_old_libs=$enable_static
20668
20669 # What type of objects to build.
20670 pic_mode=$pic_mode
20671
20672 # Whether or not to optimize for fast installation.
20673 fast_install=$enable_fast_install
20674
20675 # Shell to use when invoking shell scripts.
20676 SHELL=$lt_SHELL
20677
20678 # An echo program that protects backslashes.
20679 ECHO=$lt_ECHO
20680
20681 # The PATH separator for the build system.
20682 PATH_SEPARATOR=$lt_PATH_SEPARATOR
20683
20684 # The host system.
20685 host_alias=$host_alias
20686 host=$host
20687 host_os=$host_os
20688
20689 # The build system.
20690 build_alias=$build_alias
20691 build=$build
20692 build_os=$build_os
20693
20694 # A sed program that does not truncate output.
20695 SED=$lt_SED
20696
20697 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20698 Xsed="\$SED -e 1s/^X//"
20699
20700 # A grep program that handles long lines.
20701 GREP=$lt_GREP
20702
20703 # An ERE matcher.
20704 EGREP=$lt_EGREP
20705
20706 # A literal string matcher.
20707 FGREP=$lt_FGREP
20708
20709 # A BSD- or MS-compatible name lister.
20710 NM=$lt_NM
20711
20712 # Whether we need soft or hard links.
20713 LN_S=$lt_LN_S
20714
20715 # What is the maximum length of a command?
20716 max_cmd_len=$max_cmd_len
20717
20718 # Object file suffix (normally "o").
20719 objext=$ac_objext
20720
20721 # Executable file suffix (normally "").
20722 exeext=$exeext
20723
20724 # whether the shell understands "unset".
20725 lt_unset=$lt_unset
20726
20727 # turn spaces into newlines.
20728 SP2NL=$lt_lt_SP2NL
20729
20730 # turn newlines into spaces.
20731 NL2SP=$lt_lt_NL2SP
20732
20733 # convert \$build file names to \$host format.
20734 to_host_file_cmd=$lt_cv_to_host_file_cmd
20735
20736 # convert \$build files to toolchain format.
20737 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20738
20739 # An object symbol dumper.
20740 OBJDUMP=$lt_OBJDUMP
20741
20742 # Method to check whether dependent libraries are shared objects.
20743 deplibs_check_method=$lt_deplibs_check_method
20744
20745 # Command to use when deplibs_check_method = "file_magic".
20746 file_magic_cmd=$lt_file_magic_cmd
20747
20748 # How to find potential files when deplibs_check_method = "file_magic".
20749 file_magic_glob=$lt_file_magic_glob
20750
20751 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20752 want_nocaseglob=$lt_want_nocaseglob
20753
20754 # DLL creation program.
20755 DLLTOOL=$lt_DLLTOOL
20756
20757 # Command to associate shared and link libraries.
20758 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20759
20760 # The archiver.
20761 AR=$lt_AR
20762
20763 # Flags to create an archive.
20764 AR_FLAGS=$lt_AR_FLAGS
20765
20766 # How to feed a file listing to the archiver.
20767 archiver_list_spec=$lt_archiver_list_spec
20768
20769 # A symbol stripping program.
20770 STRIP=$lt_STRIP
20771
20772 # Commands used to install an old-style archive.
20773 RANLIB=$lt_RANLIB
20774 old_postinstall_cmds=$lt_old_postinstall_cmds
20775 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20776
20777 # Whether to use a lock for old archive extraction.
20778 lock_old_archive_extraction=$lock_old_archive_extraction
20779
20780 # A C compiler.
20781 LTCC=$lt_CC
20782
20783 # LTCC compiler flags.
20784 LTCFLAGS=$lt_CFLAGS
20785
20786 # Take the output of nm and produce a listing of raw symbols and C names.
20787 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20788
20789 # Transform the output of nm in a proper C declaration.
20790 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20791
20792 # Transform the output of nm in a C name address pair.
20793 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20794
20795 # Transform the output of nm in a C name address pair when lib prefix is needed.
20796 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20797
20798 # Specify filename containing input files for \$NM.
20799 nm_file_list_spec=$lt_nm_file_list_spec
20800
20801 # The root where to search for dependent libraries,and in which our libraries should be installed.
20802 lt_sysroot=$lt_sysroot
20803
20804 # The name of the directory that contains temporary libtool files.
20805 objdir=$objdir
20806
20807 # Used to examine libraries when file_magic_cmd begins with "file".
20808 MAGIC_CMD=$MAGIC_CMD
20809
20810 # Must we lock files when doing compilation?
20811 need_locks=$lt_need_locks
20812
20813 # Manifest tool.
20814 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20815
20816 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20817 DSYMUTIL=$lt_DSYMUTIL
20818
20819 # Tool to change global to local symbols on Mac OS X.
20820 NMEDIT=$lt_NMEDIT
20821
20822 # Tool to manipulate fat objects and archives on Mac OS X.
20823 LIPO=$lt_LIPO
20824
20825 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20826 OTOOL=$lt_OTOOL
20827
20828 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20829 OTOOL64=$lt_OTOOL64
20830
20831 # Old archive suffix (normally "a").
20832 libext=$libext
20833
20834 # Shared library suffix (normally ".so").
20835 shrext_cmds=$lt_shrext_cmds
20836
20837 # The commands to extract the exported symbol list from a shared archive.
20838 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20839
20840 # Variables whose values should be saved in libtool wrapper scripts and
20841 # restored at link time.
20842 variables_saved_for_relink=$lt_variables_saved_for_relink
20843
20844 # Do we need the "lib" prefix for modules?
20845 need_lib_prefix=$need_lib_prefix
20846
20847 # Do we need a version for libraries?
20848 need_version=$need_version
20849
20850 # Library versioning type.
20851 version_type=$version_type
20852
20853 # Shared library runtime path variable.
20854 runpath_var=$runpath_var
20855
20856 # Shared library path variable.
20857 shlibpath_var=$shlibpath_var
20858
20859 # Is shlibpath searched before the hard-coded library search path?
20860 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20861
20862 # Format of library name prefix.
20863 libname_spec=$lt_libname_spec
20864
20865 # List of archive names. First name is the real one, the rest are links.
20866 # The last name is the one that the linker finds with -lNAME
20867 library_names_spec=$lt_library_names_spec
20868
20869 # The coded name of the library, if different from the real name.
20870 soname_spec=$lt_soname_spec
20871
20872 # Permission mode override for installation of shared libraries.
20873 install_override_mode=$lt_install_override_mode
20874
20875 # Command to use after installation of a shared archive.
20876 postinstall_cmds=$lt_postinstall_cmds
20877
20878 # Command to use after uninstallation of a shared archive.
20879 postuninstall_cmds=$lt_postuninstall_cmds
20880
20881 # Commands used to finish a libtool library installation in a directory.
20882 finish_cmds=$lt_finish_cmds
20883
20884 # As "finish_cmds", except a single script fragment to be evaled but
20885 # not shown.
20886 finish_eval=$lt_finish_eval
20887
20888 # Whether we should hardcode library paths into libraries.
20889 hardcode_into_libs=$hardcode_into_libs
20890
20891 # Compile-time system search path for libraries.
20892 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20893
20894 # Run-time system search path for libraries.
20895 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20896
20897 # Whether dlopen is supported.
20898 dlopen_support=$enable_dlopen
20899
20900 # Whether dlopen of programs is supported.
20901 dlopen_self=$enable_dlopen_self
20902
20903 # Whether dlopen of statically linked programs is supported.
20904 dlopen_self_static=$enable_dlopen_self_static
20905
20906 # Commands to strip libraries.
20907 old_striplib=$lt_old_striplib
20908 striplib=$lt_striplib
20909
20910
20911 # The linker used to build libraries.
20912 LD=$lt_LD
20913
20914 # How to create reloadable object files.
20915 reload_flag=$lt_reload_flag
20916 reload_cmds=$lt_reload_cmds
20917
20918 # Commands used to build an old-style archive.
20919 old_archive_cmds=$lt_old_archive_cmds
20920
20921 # A language specific compiler.
20922 CC=$lt_compiler
20923
20924 # Is the compiler the GNU compiler?
20925 with_gcc=$GCC
20926
20927 # Compiler flag to turn off builtin functions.
20928 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20929
20930 # Additional compiler flags for building library objects.
20931 pic_flag=$lt_lt_prog_compiler_pic
20932
20933 # How to pass a linker flag through the compiler.
20934 wl=$lt_lt_prog_compiler_wl
20935
20936 # Compiler flag to prevent dynamic linking.
20937 link_static_flag=$lt_lt_prog_compiler_static
20938
20939 # Does compiler simultaneously support -c and -o options?
20940 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20941
20942 # Whether or not to add -lc for building shared libraries.
20943 build_libtool_need_lc=$archive_cmds_need_lc
20944
20945 # Whether or not to disallow shared libs when runtime libs are static.
20946 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20947
20948 # Compiler flag to allow reflexive dlopens.
20949 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20950
20951 # Compiler flag to generate shared objects directly from archives.
20952 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20953
20954 # Whether the compiler copes with passing no objects directly.
20955 compiler_needs_object=$lt_compiler_needs_object
20956
20957 # Create an old-style archive from a shared archive.
20958 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20959
20960 # Create a temporary old-style archive to link instead of a shared archive.
20961 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20962
20963 # Commands used to build a shared archive.
20964 archive_cmds=$lt_archive_cmds
20965 archive_expsym_cmds=$lt_archive_expsym_cmds
20966
20967 # Commands used to build a loadable module if different from building
20968 # a shared archive.
20969 module_cmds=$lt_module_cmds
20970 module_expsym_cmds=$lt_module_expsym_cmds
20971
20972 # Whether we are building with GNU ld or not.
20973 with_gnu_ld=$lt_with_gnu_ld
20974
20975 # Flag that allows shared libraries with undefined symbols to be built.
20976 allow_undefined_flag=$lt_allow_undefined_flag
20977
20978 # Flag that enforces no undefined symbols.
20979 no_undefined_flag=$lt_no_undefined_flag
20980
20981 # Flag to hardcode \$libdir into a binary during linking.
20982 # This must work even if \$libdir does not exist
20983 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20984
20985 # Whether we need a single "-rpath" flag with a separated argument.
20986 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20987
20988 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20989 # DIR into the resulting binary.
20990 hardcode_direct=$hardcode_direct
20991
20992 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20993 # DIR into the resulting binary and the resulting library dependency is
20994 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20995 # library is relocated.
20996 hardcode_direct_absolute=$hardcode_direct_absolute
20997
20998 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20999 # into the resulting binary.
21000 hardcode_minus_L=$hardcode_minus_L
21001
21002 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21003 # into the resulting binary.
21004 hardcode_shlibpath_var=$hardcode_shlibpath_var
21005
21006 # Set to "yes" if building a shared library automatically hardcodes DIR
21007 # into the library and all subsequent libraries and executables linked
21008 # against it.
21009 hardcode_automatic=$hardcode_automatic
21010
21011 # Set to yes if linker adds runtime paths of dependent libraries
21012 # to runtime path list.
21013 inherit_rpath=$inherit_rpath
21014
21015 # Whether libtool must link a program against all its dependency libraries.
21016 link_all_deplibs=$link_all_deplibs
21017
21018 # Set to "yes" if exported symbols are required.
21019 always_export_symbols=$always_export_symbols
21020
21021 # The commands to list exported symbols.
21022 export_symbols_cmds=$lt_export_symbols_cmds
21023
21024 # Symbols that should not be listed in the preloaded symbols.
21025 exclude_expsyms=$lt_exclude_expsyms
21026
21027 # Symbols that must always be exported.
21028 include_expsyms=$lt_include_expsyms
21029
21030 # Commands necessary for linking programs (against libraries) with templates.
21031 prelink_cmds=$lt_prelink_cmds
21032
21033 # Commands necessary for finishing linking programs.
21034 postlink_cmds=$lt_postlink_cmds
21035
21036 # Specify filename containing input files.
21037 file_list_spec=$lt_file_list_spec
21038
21039 # How to hardcode a shared library path into an executable.
21040 hardcode_action=$hardcode_action
21041
21042 # ### END LIBTOOL CONFIG
21043
21044 _LT_EOF
21045
21046 case $host_os in
21047 aix3*)
21048 cat <<\_LT_EOF >> "$cfgfile"
21049 # AIX sometimes has problems with the GCC collect2 program. For some
21050 # reason, if we set the COLLECT_NAMES environment variable, the problems
21051 # vanish in a puff of smoke.
21052 if test "X${COLLECT_NAMES+set}" != Xset; then
21053 COLLECT_NAMES=
21054 export COLLECT_NAMES
21055 fi
21056 _LT_EOF
21057 ;;
21058 esac
21059
21060
21061 ltmain="$ac_aux_dir/ltmain.sh"
21062
21063
21064 # We use sed instead of cat because bash on DJGPP gets confused if
21065 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21066 # text mode, it properly converts lines to CR/LF. This bash problem
21067 # is reportedly fixed, but why not run on old versions too?
21068 sed '$q' "$ltmain" >> "$cfgfile" \
21069 || (rm -f "$cfgfile"; exit 1)
21070
21071 if test x"$xsi_shell" = xyes; then
21072 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
21073 func_dirname ()\
21074 {\
21075 \ case ${1} in\
21076 \ */*) func_dirname_result="${1%/*}${2}" ;;\
21077 \ * ) func_dirname_result="${3}" ;;\
21078 \ esac\
21079 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
21080 && mv -f "$cfgfile.tmp" "$cfgfile" \
21081 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21082 test 0 -eq $? || _lt_function_replace_fail=:
21083
21084
21085 sed -e '/^func_basename ()$/,/^} # func_basename /c\
21086 func_basename ()\
21087 {\
21088 \ func_basename_result="${1##*/}"\
21089 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
21090 && mv -f "$cfgfile.tmp" "$cfgfile" \
21091 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21092 test 0 -eq $? || _lt_function_replace_fail=:
21093
21094
21095 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
21096 func_dirname_and_basename ()\
21097 {\
21098 \ case ${1} in\
21099 \ */*) func_dirname_result="${1%/*}${2}" ;;\
21100 \ * ) func_dirname_result="${3}" ;;\
21101 \ esac\
21102 \ func_basename_result="${1##*/}"\
21103 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
21104 && mv -f "$cfgfile.tmp" "$cfgfile" \
21105 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21106 test 0 -eq $? || _lt_function_replace_fail=:
21107
21108
21109 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
21110 func_stripname ()\
21111 {\
21112 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
21113 \ # positional parameters, so assign one to ordinary parameter first.\
21114 \ func_stripname_result=${3}\
21115 \ func_stripname_result=${func_stripname_result#"${1}"}\
21116 \ func_stripname_result=${func_stripname_result%"${2}"}\
21117 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
21118 && mv -f "$cfgfile.tmp" "$cfgfile" \
21119 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21120 test 0 -eq $? || _lt_function_replace_fail=:
21121
21122
21123 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
21124 func_split_long_opt ()\
21125 {\
21126 \ func_split_long_opt_name=${1%%=*}\
21127 \ func_split_long_opt_arg=${1#*=}\
21128 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
21129 && mv -f "$cfgfile.tmp" "$cfgfile" \
21130 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21131 test 0 -eq $? || _lt_function_replace_fail=:
21132
21133
21134 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
21135 func_split_short_opt ()\
21136 {\
21137 \ func_split_short_opt_arg=${1#??}\
21138 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
21139 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
21140 && mv -f "$cfgfile.tmp" "$cfgfile" \
21141 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21142 test 0 -eq $? || _lt_function_replace_fail=:
21143
21144
21145 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
21146 func_lo2o ()\
21147 {\
21148 \ case ${1} in\
21149 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
21150 \ *) func_lo2o_result=${1} ;;\
21151 \ esac\
21152 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
21153 && mv -f "$cfgfile.tmp" "$cfgfile" \
21154 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21155 test 0 -eq $? || _lt_function_replace_fail=:
21156
21157
21158 sed -e '/^func_xform ()$/,/^} # func_xform /c\
21159 func_xform ()\
21160 {\
21161 func_xform_result=${1%.*}.lo\
21162 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
21163 && mv -f "$cfgfile.tmp" "$cfgfile" \
21164 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21165 test 0 -eq $? || _lt_function_replace_fail=:
21166
21167
21168 sed -e '/^func_arith ()$/,/^} # func_arith /c\
21169 func_arith ()\
21170 {\
21171 func_arith_result=$(( $* ))\
21172 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
21173 && mv -f "$cfgfile.tmp" "$cfgfile" \
21174 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21175 test 0 -eq $? || _lt_function_replace_fail=:
21176
21177
21178 sed -e '/^func_len ()$/,/^} # func_len /c\
21179 func_len ()\
21180 {\
21181 func_len_result=${#1}\
21182 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
21183 && mv -f "$cfgfile.tmp" "$cfgfile" \
21184 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21185 test 0 -eq $? || _lt_function_replace_fail=:
21186
21187 fi
21188
21189 if test x"$lt_shell_append" = xyes; then
21190 sed -e '/^func_append ()$/,/^} # func_append /c\
21191 func_append ()\
21192 {\
21193 eval "${1}+=\\${2}"\
21194 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
21195 && mv -f "$cfgfile.tmp" "$cfgfile" \
21196 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21197 test 0 -eq $? || _lt_function_replace_fail=:
21198
21199
21200 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
21201 func_append_quoted ()\
21202 {\
21203 \ func_quote_for_eval "${2}"\
21204 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
21205 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
21206 && mv -f "$cfgfile.tmp" "$cfgfile" \
21207 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21208 test 0 -eq $? || _lt_function_replace_fail=:
21209
21210
21211 # Save a `func_append' function call where possible by direct use of '+='
21212 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
21213 && mv -f "$cfgfile.tmp" "$cfgfile" \
21214 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21215 test 0 -eq $? || _lt_function_replace_fail=:
21216 else
21217 # Save a `func_append' function call even when '+=' is not available
21218 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
21219 && mv -f "$cfgfile.tmp" "$cfgfile" \
21220 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21221 test 0 -eq $? || _lt_function_replace_fail=:
21222 fi
21223
21224 if test x"$_lt_function_replace_fail" = x":"; then
21225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
21226 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
21227 fi
21228
21229
21230 mv -f "$cfgfile" "$ofile" ||
21231 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21232 chmod +x "$ofile"
21233
21234 ;;
21235
21236 esac
21237 done # for ac_tag
21238
21239
21240 as_fn_exit 0
21241 _ACEOF
21242 ac_clean_files=$ac_clean_files_save
21243
21244 test $ac_write_fail = 0 ||
21245 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21246
21247
21248 # configure is writing to config.log, and then calls config.status.
21249 # config.status does its own redirection, appending to config.log.
21250 # Unfortunately, on DOS this fails, as config.log is still kept open
21251 # by configure, so config.status won't be able to write to it; its
21252 # output is simply discarded. So we exec the FD to /dev/null,
21253 # effectively closing config.log, so it can be properly (re)opened and
21254 # appended to by config.status. When coming back to configure, we
21255 # need to make the FD available again.
21256 if test "$no_create" != yes; then
21257 ac_cs_success=:
21258 ac_config_status_args=
21259 test "$silent" = yes &&
21260 ac_config_status_args="$ac_config_status_args --quiet"
21261 exec 5>/dev/null
21262 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21263 exec 5>>config.log
21264 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21265 # would make configure fail if this is the last instruction.
21266 $ac_cs_success || as_fn_exit 1
21267 fi
21268 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21269 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21270 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21271 fi
21272
21273