configure revision 1.1.1.8 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libXi 1.7.1.
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.1'
655 PACKAGE_STRING='libXi 1.7.1'
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 AM_BACKSLASH
735 AM_DEFAULT_VERBOSITY
736 AM_DEFAULT_V
737 AM_V
738 MAN_SUBSTS
739 XORG_MAN_PAGE
740 ADMIN_MAN_DIR
741 DRIVER_MAN_DIR
742 MISC_MAN_DIR
743 FILE_MAN_DIR
744 LIB_MAN_DIR
745 APP_MAN_DIR
746 ADMIN_MAN_SUFFIX
747 DRIVER_MAN_SUFFIX
748 MISC_MAN_SUFFIX
749 FILE_MAN_SUFFIX
750 LIB_MAN_SUFFIX
751 APP_MAN_SUFFIX
752 INSTALL_CMD
753 PKG_CONFIG_LIBDIR
754 PKG_CONFIG_PATH
755 PKG_CONFIG
756 CHANGELOG_CMD
757 STRICT_CFLAGS
758 CWARNFLAGS
759 BASE_CFLAGS
760 CPP
761 OTOOL64
762 OTOOL
763 LIPO
764 NMEDIT
765 DSYMUTIL
766 MANIFEST_TOOL
767 RANLIB
768 ac_ct_AR
769 AR
770 DLLTOOL
771 OBJDUMP
772 LN_S
773 NM
774 ac_ct_DUMPBIN
775 DUMPBIN
776 LD
777 FGREP
778 EGREP
779 GREP
780 SED
781 am__fastdepCC_FALSE
782 am__fastdepCC_TRUE
783 CCDEPMODE
784 am__nodep
785 AMDEPBACKSLASH
786 AMDEP_FALSE
787 AMDEP_TRUE
788 am__quote
789 am__include
790 DEPDIR
791 OBJEXT
792 EXEEXT
793 ac_ct_CC
794 CPPFLAGS
795 LDFLAGS
796 CFLAGS
797 CC
798 host_os
799 host_vendor
800 host_cpu
801 host
802 build_os
803 build_vendor
804 build_cpu
805 build
806 LIBTOOL
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_shared
872 enable_static
873 with_pic
874 enable_fast_install
875 enable_dependency_tracking
876 with_gnu_ld
877 with_sysroot
878 enable_libtool_lock
879 enable_selective_werror
880 enable_strict_compilation
881 enable_silent_rules
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.1 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.1:";;
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-shared[=PKGS] build shared libraries [default=yes]
1529 --enable-static[=PKGS] build static libraries [default=yes]
1530 --enable-fast-install[=PKGS]
1531 optimize for fast installation [default=yes]
1532 --enable-dependency-tracking
1533 do not reject slow dependency extractors
1534 --disable-dependency-tracking
1535 speeds up one-time build
1536 --disable-libtool-lock avoid locking (might break parallel builds)
1537 --disable-selective-werror
1538 Turn off selective compiler errors. (default:
1539 enabled)
1540 --enable-strict-compilation
1541 Enable all warnings from compiler and make them
1542 errors (default: disabled)
1543 --enable-silent-rules less verbose build output (undo: "make V=1")
1544 --disable-silent-rules verbose build output (undo: "make V=0")
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.1
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.1, 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.12'
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 --run true"; then
2547 am_missing_run="$MISSING --run "
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 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2788 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2789 # is not polluted with repeated "-I."
2790 am__isrc=' -I$(srcdir)'
2791 # test to see if srcdir already configured
2792 if test -f $srcdir/config.status; then
2793 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2794 fi
2795 fi
2796
2797 # test whether we have cygpath
2798 if test -z "$CYGPATH_W"; then
2799 if (cygpath --version) >/dev/null 2>/dev/null; then
2800 CYGPATH_W='cygpath -w'
2801 else
2802 CYGPATH_W=echo
2803 fi
2804 fi
2805
2806
2807 # Define the identity of the package.
2808 PACKAGE='libXi'
2809 VERSION='1.7.1'
2810
2811
2812 cat >>confdefs.h <<_ACEOF
2813 #define PACKAGE "$PACKAGE"
2814 _ACEOF
2815
2816
2817 cat >>confdefs.h <<_ACEOF
2818 #define VERSION "$VERSION"
2819 _ACEOF
2820
2821 # Some tools Automake needs.
2822
2823 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2824
2825
2826 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2827
2828
2829 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2830
2831
2832 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2833
2834
2835 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2836
2837 # For better backward compatibility. To be removed once Automake 1.9.x
2838 # dies out for good. For more background, see:
2839 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2840 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2841 mkdir_p='$(MKDIR_P)'
2842
2843 # We need awk for the "check" target. The system "awk" is bad on
2844 # some platforms.
2845 # Always define AMTAR for backward compatibility. Yes, it's still used
2846 # in the wild :-( We should find a proper way to deprecate it ...
2847 AMTAR='$${TAR-tar}'
2848
2849 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2850
2851
2852
2853
2854
2855
2856 # Initialize libtool
2857 case `pwd` in
2858 *\ * | *\ *)
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2860 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2861 esac
2862
2863
2864
2865 macro_version='2.4.2'
2866 macro_revision='1.3337'
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880 ltmain="$ac_aux_dir/ltmain.sh"
2881
2882 # Make sure we can run config.sub.
2883 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2884 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2885
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2887 $as_echo_n "checking build system type... " >&6; }
2888 if ${ac_cv_build+:} false; then :
2889 $as_echo_n "(cached) " >&6
2890 else
2891 ac_build_alias=$build_alias
2892 test "x$ac_build_alias" = x &&
2893 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2894 test "x$ac_build_alias" = x &&
2895 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2896 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2897 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2898
2899 fi
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2901 $as_echo "$ac_cv_build" >&6; }
2902 case $ac_cv_build in
2903 *-*-*) ;;
2904 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2905 esac
2906 build=$ac_cv_build
2907 ac_save_IFS=$IFS; IFS='-'
2908 set x $ac_cv_build
2909 shift
2910 build_cpu=$1
2911 build_vendor=$2
2912 shift; shift
2913 # Remember, the first character of IFS is used to create $*,
2914 # except with old shells:
2915 build_os=$*
2916 IFS=$ac_save_IFS
2917 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2918
2919
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2921 $as_echo_n "checking host system type... " >&6; }
2922 if ${ac_cv_host+:} false; then :
2923 $as_echo_n "(cached) " >&6
2924 else
2925 if test "x$host_alias" = x; then
2926 ac_cv_host=$ac_cv_build
2927 else
2928 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2929 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2930 fi
2931
2932 fi
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2934 $as_echo "$ac_cv_host" >&6; }
2935 case $ac_cv_host in
2936 *-*-*) ;;
2937 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2938 esac
2939 host=$ac_cv_host
2940 ac_save_IFS=$IFS; IFS='-'
2941 set x $ac_cv_host
2942 shift
2943 host_cpu=$1
2944 host_vendor=$2
2945 shift; shift
2946 # Remember, the first character of IFS is used to create $*,
2947 # except with old shells:
2948 host_os=$*
2949 IFS=$ac_save_IFS
2950 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2951
2952
2953 # Backslashify metacharacters that are still active within
2954 # double-quoted strings.
2955 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2956
2957 # Same as above, but do not quote variable references.
2958 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2959
2960 # Sed substitution to delay expansion of an escaped shell variable in a
2961 # double_quote_subst'ed string.
2962 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2963
2964 # Sed substitution to delay expansion of an escaped single quote.
2965 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2966
2967 # Sed substitution to avoid accidental globbing in evaled expressions
2968 no_glob_subst='s/\*/\\\*/g'
2969
2970 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2971 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2972 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2973
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2975 $as_echo_n "checking how to print strings... " >&6; }
2976 # Test print first, because it will be a builtin if present.
2977 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2978 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2979 ECHO='print -r --'
2980 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2981 ECHO='printf %s\n'
2982 else
2983 # Use this function as a fallback that always works.
2984 func_fallback_echo ()
2985 {
2986 eval 'cat <<_LTECHO_EOF
2987 $1
2988 _LTECHO_EOF'
2989 }
2990 ECHO='func_fallback_echo'
2991 fi
2992
2993 # func_echo_all arg...
2994 # Invoke $ECHO with all args, space-separated.
2995 func_echo_all ()
2996 {
2997 $ECHO ""
2998 }
2999
3000 case "$ECHO" in
3001 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3002 $as_echo "printf" >&6; } ;;
3003 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3004 $as_echo "print -r" >&6; } ;;
3005 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3006 $as_echo "cat" >&6; } ;;
3007 esac
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022 DEPDIR="${am__leading_dot}deps"
3023
3024 ac_config_commands="$ac_config_commands depfiles"
3025
3026
3027 am_make=${MAKE-make}
3028 cat > confinc << 'END'
3029 am__doit:
3030 @echo this is the am__doit target
3031 .PHONY: am__doit
3032 END
3033 # If we don't find an include directive, just comment out the code.
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3035 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3036 am__include="#"
3037 am__quote=
3038 _am_result=none
3039 # First try GNU make style include.
3040 echo "include confinc" > confmf
3041 # Ignore all kinds of additional output from 'make'.
3042 case `$am_make -s -f confmf 2> /dev/null` in #(
3043 *the\ am__doit\ target*)
3044 am__include=include
3045 am__quote=
3046 _am_result=GNU
3047 ;;
3048 esac
3049 # Now try BSD make style include.
3050 if test "$am__include" = "#"; then
3051 echo '.include "confinc"' > confmf
3052 case `$am_make -s -f confmf 2> /dev/null` in #(
3053 *the\ am__doit\ target*)
3054 am__include=.include
3055 am__quote="\""
3056 _am_result=BSD
3057 ;;
3058 esac
3059 fi
3060
3061
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3063 $as_echo "$_am_result" >&6; }
3064 rm -f confinc confmf
3065
3066 # Check whether --enable-dependency-tracking was given.
3067 if test "${enable_dependency_tracking+set}" = set; then :
3068 enableval=$enable_dependency_tracking;
3069 fi
3070
3071 if test "x$enable_dependency_tracking" != xno; then
3072 am_depcomp="$ac_aux_dir/depcomp"
3073 AMDEPBACKSLASH='\'
3074 am__nodep='_no'
3075 fi
3076 if test "x$enable_dependency_tracking" != xno; then
3077 AMDEP_TRUE=
3078 AMDEP_FALSE='#'
3079 else
3080 AMDEP_TRUE='#'
3081 AMDEP_FALSE=
3082 fi
3083
3084
3085 ac_ext=c
3086 ac_cpp='$CPP $CPPFLAGS'
3087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3090 if test -n "$ac_tool_prefix"; then
3091 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3092 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3094 $as_echo_n "checking for $ac_word... " >&6; }
3095 if ${ac_cv_prog_CC+:} false; then :
3096 $as_echo_n "(cached) " >&6
3097 else
3098 if test -n "$CC"; then
3099 ac_cv_prog_CC="$CC" # Let the user override the test.
3100 else
3101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3102 for as_dir in $PATH
3103 do
3104 IFS=$as_save_IFS
3105 test -z "$as_dir" && as_dir=.
3106 for ac_exec_ext in '' $ac_executable_extensions; do
3107 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3108 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3110 break 2
3111 fi
3112 done
3113 done
3114 IFS=$as_save_IFS
3115
3116 fi
3117 fi
3118 CC=$ac_cv_prog_CC
3119 if test -n "$CC"; then
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3121 $as_echo "$CC" >&6; }
3122 else
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3124 $as_echo "no" >&6; }
3125 fi
3126
3127
3128 fi
3129 if test -z "$ac_cv_prog_CC"; then
3130 ac_ct_CC=$CC
3131 # Extract the first word of "gcc", so it can be a program name with args.
3132 set dummy gcc; ac_word=$2
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3134 $as_echo_n "checking for $ac_word... " >&6; }
3135 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3136 $as_echo_n "(cached) " >&6
3137 else
3138 if test -n "$ac_ct_CC"; then
3139 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3140 else
3141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3142 for as_dir in $PATH
3143 do
3144 IFS=$as_save_IFS
3145 test -z "$as_dir" && as_dir=.
3146 for ac_exec_ext in '' $ac_executable_extensions; do
3147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3148 ac_cv_prog_ac_ct_CC="gcc"
3149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3150 break 2
3151 fi
3152 done
3153 done
3154 IFS=$as_save_IFS
3155
3156 fi
3157 fi
3158 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3159 if test -n "$ac_ct_CC"; then
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3161 $as_echo "$ac_ct_CC" >&6; }
3162 else
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3164 $as_echo "no" >&6; }
3165 fi
3166
3167 if test "x$ac_ct_CC" = x; then
3168 CC=""
3169 else
3170 case $cross_compiling:$ac_tool_warned in
3171 yes:)
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3173 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3174 ac_tool_warned=yes ;;
3175 esac
3176 CC=$ac_ct_CC
3177 fi
3178 else
3179 CC="$ac_cv_prog_CC"
3180 fi
3181
3182 if test -z "$CC"; then
3183 if test -n "$ac_tool_prefix"; then
3184 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3185 set dummy ${ac_tool_prefix}cc; ac_word=$2
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3187 $as_echo_n "checking for $ac_word... " >&6; }
3188 if ${ac_cv_prog_CC+:} false; then :
3189 $as_echo_n "(cached) " >&6
3190 else
3191 if test -n "$CC"; then
3192 ac_cv_prog_CC="$CC" # Let the user override the test.
3193 else
3194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3195 for as_dir in $PATH
3196 do
3197 IFS=$as_save_IFS
3198 test -z "$as_dir" && as_dir=.
3199 for ac_exec_ext in '' $ac_executable_extensions; do
3200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3201 ac_cv_prog_CC="${ac_tool_prefix}cc"
3202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3203 break 2
3204 fi
3205 done
3206 done
3207 IFS=$as_save_IFS
3208
3209 fi
3210 fi
3211 CC=$ac_cv_prog_CC
3212 if test -n "$CC"; then
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3214 $as_echo "$CC" >&6; }
3215 else
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3217 $as_echo "no" >&6; }
3218 fi
3219
3220
3221 fi
3222 fi
3223 if test -z "$CC"; then
3224 # Extract the first word of "cc", so it can be a program name with args.
3225 set dummy cc; ac_word=$2
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3227 $as_echo_n "checking for $ac_word... " >&6; }
3228 if ${ac_cv_prog_CC+:} false; then :
3229 $as_echo_n "(cached) " >&6
3230 else
3231 if test -n "$CC"; then
3232 ac_cv_prog_CC="$CC" # Let the user override the test.
3233 else
3234 ac_prog_rejected=no
3235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3236 for as_dir in $PATH
3237 do
3238 IFS=$as_save_IFS
3239 test -z "$as_dir" && as_dir=.
3240 for ac_exec_ext in '' $ac_executable_extensions; do
3241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3242 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3243 ac_prog_rejected=yes
3244 continue
3245 fi
3246 ac_cv_prog_CC="cc"
3247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3248 break 2
3249 fi
3250 done
3251 done
3252 IFS=$as_save_IFS
3253
3254 if test $ac_prog_rejected = yes; then
3255 # We found a bogon in the path, so make sure we never use it.
3256 set dummy $ac_cv_prog_CC
3257 shift
3258 if test $# != 0; then
3259 # We chose a different compiler from the bogus one.
3260 # However, it has the same basename, so the bogon will be chosen
3261 # first if we set CC to just the basename; use the full file name.
3262 shift
3263 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3264 fi
3265 fi
3266 fi
3267 fi
3268 CC=$ac_cv_prog_CC
3269 if test -n "$CC"; then
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3271 $as_echo "$CC" >&6; }
3272 else
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3274 $as_echo "no" >&6; }
3275 fi
3276
3277
3278 fi
3279 if test -z "$CC"; then
3280 if test -n "$ac_tool_prefix"; then
3281 for ac_prog in cl.exe
3282 do
3283 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3284 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3286 $as_echo_n "checking for $ac_word... " >&6; }
3287 if ${ac_cv_prog_CC+:} false; then :
3288 $as_echo_n "(cached) " >&6
3289 else
3290 if test -n "$CC"; then
3291 ac_cv_prog_CC="$CC" # Let the user override the test.
3292 else
3293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3294 for as_dir in $PATH
3295 do
3296 IFS=$as_save_IFS
3297 test -z "$as_dir" && as_dir=.
3298 for ac_exec_ext in '' $ac_executable_extensions; do
3299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3300 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3302 break 2
3303 fi
3304 done
3305 done
3306 IFS=$as_save_IFS
3307
3308 fi
3309 fi
3310 CC=$ac_cv_prog_CC
3311 if test -n "$CC"; then
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3313 $as_echo "$CC" >&6; }
3314 else
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3316 $as_echo "no" >&6; }
3317 fi
3318
3319
3320 test -n "$CC" && break
3321 done
3322 fi
3323 if test -z "$CC"; then
3324 ac_ct_CC=$CC
3325 for ac_prog in cl.exe
3326 do
3327 # Extract the first word of "$ac_prog", so it can be a program name with args.
3328 set dummy $ac_prog; ac_word=$2
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3330 $as_echo_n "checking for $ac_word... " >&6; }
3331 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3332 $as_echo_n "(cached) " >&6
3333 else
3334 if test -n "$ac_ct_CC"; then
3335 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3336 else
3337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3338 for as_dir in $PATH
3339 do
3340 IFS=$as_save_IFS
3341 test -z "$as_dir" && as_dir=.
3342 for ac_exec_ext in '' $ac_executable_extensions; do
3343 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3344 ac_cv_prog_ac_ct_CC="$ac_prog"
3345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3346 break 2
3347 fi
3348 done
3349 done
3350 IFS=$as_save_IFS
3351
3352 fi
3353 fi
3354 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3355 if test -n "$ac_ct_CC"; then
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3357 $as_echo "$ac_ct_CC" >&6; }
3358 else
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3360 $as_echo "no" >&6; }
3361 fi
3362
3363
3364 test -n "$ac_ct_CC" && break
3365 done
3366
3367 if test "x$ac_ct_CC" = x; then
3368 CC=""
3369 else
3370 case $cross_compiling:$ac_tool_warned in
3371 yes:)
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3373 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3374 ac_tool_warned=yes ;;
3375 esac
3376 CC=$ac_ct_CC
3377 fi
3378 fi
3379
3380 fi
3381
3382
3383 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3384 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3385 as_fn_error $? "no acceptable C compiler found in \$PATH
3386 See \`config.log' for more details" "$LINENO" 5; }
3387
3388 # Provide some information about the compiler.
3389 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3390 set X $ac_compile
3391 ac_compiler=$2
3392 for ac_option in --version -v -V -qversion; do
3393 { { ac_try="$ac_compiler $ac_option >&5"
3394 case "(($ac_try" in
3395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3396 *) ac_try_echo=$ac_try;;
3397 esac
3398 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3399 $as_echo "$ac_try_echo"; } >&5
3400 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3401 ac_status=$?
3402 if test -s conftest.err; then
3403 sed '10a\
3404 ... rest of stderr output deleted ...
3405 10q' conftest.err >conftest.er1
3406 cat conftest.er1 >&5
3407 fi
3408 rm -f conftest.er1 conftest.err
3409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3410 test $ac_status = 0; }
3411 done
3412
3413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3414 /* end confdefs.h. */
3415
3416 int
3417 main ()
3418 {
3419
3420 ;
3421 return 0;
3422 }
3423 _ACEOF
3424 ac_clean_files_save=$ac_clean_files
3425 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3426 # Try to create an executable without -o first, disregard a.out.
3427 # It will help us diagnose broken compilers, and finding out an intuition
3428 # of exeext.
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3430 $as_echo_n "checking whether the C compiler works... " >&6; }
3431 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3432
3433 # The possible output files:
3434 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3435
3436 ac_rmfiles=
3437 for ac_file in $ac_files
3438 do
3439 case $ac_file in
3440 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3441 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3442 esac
3443 done
3444 rm -f $ac_rmfiles
3445
3446 if { { ac_try="$ac_link_default"
3447 case "(($ac_try" in
3448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3449 *) ac_try_echo=$ac_try;;
3450 esac
3451 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3452 $as_echo "$ac_try_echo"; } >&5
3453 (eval "$ac_link_default") 2>&5
3454 ac_status=$?
3455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3456 test $ac_status = 0; }; then :
3457 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3458 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3459 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3460 # so that the user can short-circuit this test for compilers unknown to
3461 # Autoconf.
3462 for ac_file in $ac_files ''
3463 do
3464 test -f "$ac_file" || continue
3465 case $ac_file in
3466 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3467 ;;
3468 [ab].out )
3469 # We found the default executable, but exeext='' is most
3470 # certainly right.
3471 break;;
3472 *.* )
3473 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3474 then :; else
3475 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3476 fi
3477 # We set ac_cv_exeext here because the later test for it is not
3478 # safe: cross compilers may not add the suffix if given an `-o'
3479 # argument, so we may need to know it at that point already.
3480 # Even if this section looks crufty: it has the advantage of
3481 # actually working.
3482 break;;
3483 * )
3484 break;;
3485 esac
3486 done
3487 test "$ac_cv_exeext" = no && ac_cv_exeext=
3488
3489 else
3490 ac_file=''
3491 fi
3492 if test -z "$ac_file"; then :
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3494 $as_echo "no" >&6; }
3495 $as_echo "$as_me: failed program was:" >&5
3496 sed 's/^/| /' conftest.$ac_ext >&5
3497
3498 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3499 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3500 as_fn_error 77 "C compiler cannot create executables
3501 See \`config.log' for more details" "$LINENO" 5; }
3502 else
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3504 $as_echo "yes" >&6; }
3505 fi
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3507 $as_echo_n "checking for C compiler default output file name... " >&6; }
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3509 $as_echo "$ac_file" >&6; }
3510 ac_exeext=$ac_cv_exeext
3511
3512 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3513 ac_clean_files=$ac_clean_files_save
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3515 $as_echo_n "checking for suffix of executables... " >&6; }
3516 if { { ac_try="$ac_link"
3517 case "(($ac_try" in
3518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3519 *) ac_try_echo=$ac_try;;
3520 esac
3521 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3522 $as_echo "$ac_try_echo"; } >&5
3523 (eval "$ac_link") 2>&5
3524 ac_status=$?
3525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3526 test $ac_status = 0; }; then :
3527 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3528 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3529 # work properly (i.e., refer to `conftest.exe'), while it won't with
3530 # `rm'.
3531 for ac_file in conftest.exe conftest conftest.*; do
3532 test -f "$ac_file" || continue
3533 case $ac_file in
3534 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3535 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3536 break;;
3537 * ) break;;
3538 esac
3539 done
3540 else
3541 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3542 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3543 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3544 See \`config.log' for more details" "$LINENO" 5; }
3545 fi
3546 rm -f conftest conftest$ac_cv_exeext
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3548 $as_echo "$ac_cv_exeext" >&6; }
3549
3550 rm -f conftest.$ac_ext
3551 EXEEXT=$ac_cv_exeext
3552 ac_exeext=$EXEEXT
3553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3554 /* end confdefs.h. */
3555 #include <stdio.h>
3556 int
3557 main ()
3558 {
3559 FILE *f = fopen ("conftest.out", "w");
3560 return ferror (f) || fclose (f) != 0;
3561
3562 ;
3563 return 0;
3564 }
3565 _ACEOF
3566 ac_clean_files="$ac_clean_files conftest.out"
3567 # Check that the compiler produces executables we can run. If not, either
3568 # the compiler is broken, or we cross compile.
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3570 $as_echo_n "checking whether we are cross compiling... " >&6; }
3571 if test "$cross_compiling" != yes; then
3572 { { ac_try="$ac_link"
3573 case "(($ac_try" in
3574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3575 *) ac_try_echo=$ac_try;;
3576 esac
3577 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3578 $as_echo "$ac_try_echo"; } >&5
3579 (eval "$ac_link") 2>&5
3580 ac_status=$?
3581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3582 test $ac_status = 0; }
3583 if { ac_try='./conftest$ac_cv_exeext'
3584 { { case "(($ac_try" in
3585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3586 *) ac_try_echo=$ac_try;;
3587 esac
3588 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3589 $as_echo "$ac_try_echo"; } >&5
3590 (eval "$ac_try") 2>&5
3591 ac_status=$?
3592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3593 test $ac_status = 0; }; }; then
3594 cross_compiling=no
3595 else
3596 if test "$cross_compiling" = maybe; then
3597 cross_compiling=yes
3598 else
3599 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3600 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3601 as_fn_error $? "cannot run C compiled programs.
3602 If you meant to cross compile, use \`--host'.
3603 See \`config.log' for more details" "$LINENO" 5; }
3604 fi
3605 fi
3606 fi
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3608 $as_echo "$cross_compiling" >&6; }
3609
3610 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3611 ac_clean_files=$ac_clean_files_save
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3613 $as_echo_n "checking for suffix of object files... " >&6; }
3614 if ${ac_cv_objext+:} false; then :
3615 $as_echo_n "(cached) " >&6
3616 else
3617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3618 /* end confdefs.h. */
3619
3620 int
3621 main ()
3622 {
3623
3624 ;
3625 return 0;
3626 }
3627 _ACEOF
3628 rm -f conftest.o conftest.obj
3629 if { { ac_try="$ac_compile"
3630 case "(($ac_try" in
3631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3632 *) ac_try_echo=$ac_try;;
3633 esac
3634 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3635 $as_echo "$ac_try_echo"; } >&5
3636 (eval "$ac_compile") 2>&5
3637 ac_status=$?
3638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3639 test $ac_status = 0; }; then :
3640 for ac_file in conftest.o conftest.obj conftest.*; do
3641 test -f "$ac_file" || continue;
3642 case $ac_file in
3643 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3644 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3645 break;;
3646 esac
3647 done
3648 else
3649 $as_echo "$as_me: failed program was:" >&5
3650 sed 's/^/| /' conftest.$ac_ext >&5
3651
3652 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3653 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3654 as_fn_error $? "cannot compute suffix of object files: cannot compile
3655 See \`config.log' for more details" "$LINENO" 5; }
3656 fi
3657 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3658 fi
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3660 $as_echo "$ac_cv_objext" >&6; }
3661 OBJEXT=$ac_cv_objext
3662 ac_objext=$OBJEXT
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3664 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3665 if ${ac_cv_c_compiler_gnu+:} false; then :
3666 $as_echo_n "(cached) " >&6
3667 else
3668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3669 /* end confdefs.h. */
3670
3671 int
3672 main ()
3673 {
3674 #ifndef __GNUC__
3675 choke me
3676 #endif
3677
3678 ;
3679 return 0;
3680 }
3681 _ACEOF
3682 if ac_fn_c_try_compile "$LINENO"; then :
3683 ac_compiler_gnu=yes
3684 else
3685 ac_compiler_gnu=no
3686 fi
3687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3688 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3689
3690 fi
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3692 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3693 if test $ac_compiler_gnu = yes; then
3694 GCC=yes
3695 else
3696 GCC=
3697 fi
3698 ac_test_CFLAGS=${CFLAGS+set}
3699 ac_save_CFLAGS=$CFLAGS
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3701 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3702 if ${ac_cv_prog_cc_g+:} false; then :
3703 $as_echo_n "(cached) " >&6
3704 else
3705 ac_save_c_werror_flag=$ac_c_werror_flag
3706 ac_c_werror_flag=yes
3707 ac_cv_prog_cc_g=no
3708 CFLAGS="-g"
3709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3710 /* end confdefs.h. */
3711
3712 int
3713 main ()
3714 {
3715
3716 ;
3717 return 0;
3718 }
3719 _ACEOF
3720 if ac_fn_c_try_compile "$LINENO"; then :
3721 ac_cv_prog_cc_g=yes
3722 else
3723 CFLAGS=""
3724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3725 /* end confdefs.h. */
3726
3727 int
3728 main ()
3729 {
3730
3731 ;
3732 return 0;
3733 }
3734 _ACEOF
3735 if ac_fn_c_try_compile "$LINENO"; then :
3736
3737 else
3738 ac_c_werror_flag=$ac_save_c_werror_flag
3739 CFLAGS="-g"
3740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3741 /* end confdefs.h. */
3742
3743 int
3744 main ()
3745 {
3746
3747 ;
3748 return 0;
3749 }
3750 _ACEOF
3751 if ac_fn_c_try_compile "$LINENO"; then :
3752 ac_cv_prog_cc_g=yes
3753 fi
3754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3755 fi
3756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3757 fi
3758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3759 ac_c_werror_flag=$ac_save_c_werror_flag
3760 fi
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3762 $as_echo "$ac_cv_prog_cc_g" >&6; }
3763 if test "$ac_test_CFLAGS" = set; then
3764 CFLAGS=$ac_save_CFLAGS
3765 elif test $ac_cv_prog_cc_g = yes; then
3766 if test "$GCC" = yes; then
3767 CFLAGS="-g -O2"
3768 else
3769 CFLAGS="-g"
3770 fi
3771 else
3772 if test "$GCC" = yes; then
3773 CFLAGS="-O2"
3774 else
3775 CFLAGS=
3776 fi
3777 fi
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3779 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3780 if ${ac_cv_prog_cc_c89+:} false; then :
3781 $as_echo_n "(cached) " >&6
3782 else
3783 ac_cv_prog_cc_c89=no
3784 ac_save_CC=$CC
3785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3786 /* end confdefs.h. */
3787 #include <stdarg.h>
3788 #include <stdio.h>
3789 struct stat;
3790 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3791 struct buf { int x; };
3792 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3793 static char *e (p, i)
3794 char **p;
3795 int i;
3796 {
3797 return p[i];
3798 }
3799 static char *f (char * (*g) (char **, int), char **p, ...)
3800 {
3801 char *s;
3802 va_list v;
3803 va_start (v,p);
3804 s = g (p, va_arg (v,int));
3805 va_end (v);
3806 return s;
3807 }
3808
3809 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3810 function prototypes and stuff, but not '\xHH' hex character constants.
3811 These don't provoke an error unfortunately, instead are silently treated
3812 as 'x'. The following induces an error, until -std is added to get
3813 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3814 array size at least. It's necessary to write '\x00'==0 to get something
3815 that's true only with -std. */
3816 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3817
3818 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3819 inside strings and character constants. */
3820 #define FOO(x) 'x'
3821 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3822
3823 int test (int i, double x);
3824 struct s1 {int (*f) (int a);};
3825 struct s2 {int (*f) (double a);};
3826 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3827 int argc;
3828 char **argv;
3829 int
3830 main ()
3831 {
3832 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3833 ;
3834 return 0;
3835 }
3836 _ACEOF
3837 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3838 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3839 do
3840 CC="$ac_save_CC $ac_arg"
3841 if ac_fn_c_try_compile "$LINENO"; then :
3842 ac_cv_prog_cc_c89=$ac_arg
3843 fi
3844 rm -f core conftest.err conftest.$ac_objext
3845 test "x$ac_cv_prog_cc_c89" != "xno" && break
3846 done
3847 rm -f conftest.$ac_ext
3848 CC=$ac_save_CC
3849
3850 fi
3851 # AC_CACHE_VAL
3852 case "x$ac_cv_prog_cc_c89" in
3853 x)
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3855 $as_echo "none needed" >&6; } ;;
3856 xno)
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3858 $as_echo "unsupported" >&6; } ;;
3859 *)
3860 CC="$CC $ac_cv_prog_cc_c89"
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3862 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3863 esac
3864 if test "x$ac_cv_prog_cc_c89" != xno; then :
3865
3866 fi
3867
3868 ac_ext=c
3869 ac_cpp='$CPP $CPPFLAGS'
3870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3873
3874 depcc="$CC" am_compiler_list=
3875
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3877 $as_echo_n "checking dependency style of $depcc... " >&6; }
3878 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3879 $as_echo_n "(cached) " >&6
3880 else
3881 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3882 # We make a subdir and do the tests there. Otherwise we can end up
3883 # making bogus files that we don't know about and never remove. For
3884 # instance it was reported that on HP-UX the gcc test will end up
3885 # making a dummy file named 'D' -- because '-MD' means "put the output
3886 # in D".
3887 rm -rf conftest.dir
3888 mkdir conftest.dir
3889 # Copy depcomp to subdir because otherwise we won't find it if we're
3890 # using a relative directory.
3891 cp "$am_depcomp" conftest.dir
3892 cd conftest.dir
3893 # We will build objects and dependencies in a subdirectory because
3894 # it helps to detect inapplicable dependency modes. For instance
3895 # both Tru64's cc and ICC support -MD to output dependencies as a
3896 # side effect of compilation, but ICC will put the dependencies in
3897 # the current directory while Tru64 will put them in the object
3898 # directory.
3899 mkdir sub
3900
3901 am_cv_CC_dependencies_compiler_type=none
3902 if test "$am_compiler_list" = ""; then
3903 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3904 fi
3905 am__universal=false
3906 case " $depcc " in #(
3907 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3908 esac
3909
3910 for depmode in $am_compiler_list; do
3911 # Setup a source with many dependencies, because some compilers
3912 # like to wrap large dependency lists on column 80 (with \), and
3913 # we should not choose a depcomp mode which is confused by this.
3914 #
3915 # We need to recreate these files for each test, as the compiler may
3916 # overwrite some of them when testing with obscure command lines.
3917 # This happens at least with the AIX C compiler.
3918 : > sub/conftest.c
3919 for i in 1 2 3 4 5 6; do
3920 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3921 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3922 # Solaris 10 /bin/sh.
3923 echo '/* dummy */' > sub/conftst$i.h
3924 done
3925 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3926
3927 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3928 # mode. It turns out that the SunPro C++ compiler does not properly
3929 # handle '-M -o', and we need to detect this. Also, some Intel
3930 # versions had trouble with output in subdirs.
3931 am__obj=sub/conftest.${OBJEXT-o}
3932 am__minus_obj="-o $am__obj"
3933 case $depmode in
3934 gcc)
3935 # This depmode causes a compiler race in universal mode.
3936 test "$am__universal" = false || continue
3937 ;;
3938 nosideeffect)
3939 # After this tag, mechanisms are not by side-effect, so they'll
3940 # only be used when explicitly requested.
3941 if test "x$enable_dependency_tracking" = xyes; then
3942 continue
3943 else
3944 break
3945 fi
3946 ;;
3947 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3948 # This compiler won't grok '-c -o', but also, the minuso test has
3949 # not run yet. These depmodes are late enough in the game, and
3950 # so weak that their functioning should not be impacted.
3951 am__obj=conftest.${OBJEXT-o}
3952 am__minus_obj=
3953 ;;
3954 none) break ;;
3955 esac
3956 if depmode=$depmode \
3957 source=sub/conftest.c object=$am__obj \
3958 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3959 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3960 >/dev/null 2>conftest.err &&
3961 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3962 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3963 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3964 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3965 # icc doesn't choke on unknown options, it will just issue warnings
3966 # or remarks (even with -Werror). So we grep stderr for any message
3967 # that says an option was ignored or not supported.
3968 # When given -MP, icc 7.0 and 7.1 complain thusly:
3969 # icc: Command line warning: ignoring option '-M'; no argument required
3970 # The diagnosis changed in icc 8.0:
3971 # icc: Command line remark: option '-MP' not supported
3972 if (grep 'ignoring option' conftest.err ||
3973 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3974 am_cv_CC_dependencies_compiler_type=$depmode
3975 break
3976 fi
3977 fi
3978 done
3979
3980 cd ..
3981 rm -rf conftest.dir
3982 else
3983 am_cv_CC_dependencies_compiler_type=none
3984 fi
3985
3986 fi
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3988 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3989 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3990
3991 if
3992 test "x$enable_dependency_tracking" != xno \
3993 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3994 am__fastdepCC_TRUE=
3995 am__fastdepCC_FALSE='#'
3996 else
3997 am__fastdepCC_TRUE='#'
3998 am__fastdepCC_FALSE=
3999 fi
4000
4001
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4003 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4004 if ${ac_cv_path_SED+:} false; then :
4005 $as_echo_n "(cached) " >&6
4006 else
4007 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4008 for ac_i in 1 2 3 4 5 6 7; do
4009 ac_script="$ac_script$as_nl$ac_script"
4010 done
4011 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4012 { ac_script=; unset ac_script;}
4013 if test -z "$SED"; then
4014 ac_path_SED_found=false
4015 # Loop through the user's path and test for each of PROGNAME-LIST
4016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4017 for as_dir in $PATH
4018 do
4019 IFS=$as_save_IFS
4020 test -z "$as_dir" && as_dir=.
4021 for ac_prog in sed gsed; do
4022 for ac_exec_ext in '' $ac_executable_extensions; do
4023 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4024 as_fn_executable_p "$ac_path_SED" || continue
4025 # Check for GNU ac_path_SED and select it if it is found.
4026 # Check for GNU $ac_path_SED
4027 case `"$ac_path_SED" --version 2>&1` in
4028 *GNU*)
4029 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4030 *)
4031 ac_count=0
4032 $as_echo_n 0123456789 >"conftest.in"
4033 while :
4034 do
4035 cat "conftest.in" "conftest.in" >"conftest.tmp"
4036 mv "conftest.tmp" "conftest.in"
4037 cp "conftest.in" "conftest.nl"
4038 $as_echo '' >> "conftest.nl"
4039 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4040 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4041 as_fn_arith $ac_count + 1 && ac_count=$as_val
4042 if test $ac_count -gt ${ac_path_SED_max-0}; then
4043 # Best one so far, save it but keep looking for a better one
4044 ac_cv_path_SED="$ac_path_SED"
4045 ac_path_SED_max=$ac_count
4046 fi
4047 # 10*(2^10) chars as input seems more than enough
4048 test $ac_count -gt 10 && break
4049 done
4050 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4051 esac
4052
4053 $ac_path_SED_found && break 3
4054 done
4055 done
4056 done
4057 IFS=$as_save_IFS
4058 if test -z "$ac_cv_path_SED"; then
4059 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4060 fi
4061 else
4062 ac_cv_path_SED=$SED
4063 fi
4064
4065 fi
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4067 $as_echo "$ac_cv_path_SED" >&6; }
4068 SED="$ac_cv_path_SED"
4069 rm -f conftest.sed
4070
4071 test -z "$SED" && SED=sed
4072 Xsed="$SED -e 1s/^X//"
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4085 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4086 if ${ac_cv_path_GREP+:} false; then :
4087 $as_echo_n "(cached) " >&6
4088 else
4089 if test -z "$GREP"; then
4090 ac_path_GREP_found=false
4091 # Loop through the user's path and test for each of PROGNAME-LIST
4092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4093 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4094 do
4095 IFS=$as_save_IFS
4096 test -z "$as_dir" && as_dir=.
4097 for ac_prog in grep ggrep; do
4098 for ac_exec_ext in '' $ac_executable_extensions; do
4099 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4100 as_fn_executable_p "$ac_path_GREP" || continue
4101 # Check for GNU ac_path_GREP and select it if it is found.
4102 # Check for GNU $ac_path_GREP
4103 case `"$ac_path_GREP" --version 2>&1` in
4104 *GNU*)
4105 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4106 *)
4107 ac_count=0
4108 $as_echo_n 0123456789 >"conftest.in"
4109 while :
4110 do
4111 cat "conftest.in" "conftest.in" >"conftest.tmp"
4112 mv "conftest.tmp" "conftest.in"
4113 cp "conftest.in" "conftest.nl"
4114 $as_echo 'GREP' >> "conftest.nl"
4115 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4116 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4117 as_fn_arith $ac_count + 1 && ac_count=$as_val
4118 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4119 # Best one so far, save it but keep looking for a better one
4120 ac_cv_path_GREP="$ac_path_GREP"
4121 ac_path_GREP_max=$ac_count
4122 fi
4123 # 10*(2^10) chars as input seems more than enough
4124 test $ac_count -gt 10 && break
4125 done
4126 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4127 esac
4128
4129 $ac_path_GREP_found && break 3
4130 done
4131 done
4132 done
4133 IFS=$as_save_IFS
4134 if test -z "$ac_cv_path_GREP"; then
4135 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4136 fi
4137 else
4138 ac_cv_path_GREP=$GREP
4139 fi
4140
4141 fi
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4143 $as_echo "$ac_cv_path_GREP" >&6; }
4144 GREP="$ac_cv_path_GREP"
4145
4146
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4148 $as_echo_n "checking for egrep... " >&6; }
4149 if ${ac_cv_path_EGREP+:} false; then :
4150 $as_echo_n "(cached) " >&6
4151 else
4152 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4153 then ac_cv_path_EGREP="$GREP -E"
4154 else
4155 if test -z "$EGREP"; then
4156 ac_path_EGREP_found=false
4157 # Loop through the user's path and test for each of PROGNAME-LIST
4158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4159 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4160 do
4161 IFS=$as_save_IFS
4162 test -z "$as_dir" && as_dir=.
4163 for ac_prog in egrep; do
4164 for ac_exec_ext in '' $ac_executable_extensions; do
4165 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4166 as_fn_executable_p "$ac_path_EGREP" || continue
4167 # Check for GNU ac_path_EGREP and select it if it is found.
4168 # Check for GNU $ac_path_EGREP
4169 case `"$ac_path_EGREP" --version 2>&1` in
4170 *GNU*)
4171 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4172 *)
4173 ac_count=0
4174 $as_echo_n 0123456789 >"conftest.in"
4175 while :
4176 do
4177 cat "conftest.in" "conftest.in" >"conftest.tmp"
4178 mv "conftest.tmp" "conftest.in"
4179 cp "conftest.in" "conftest.nl"
4180 $as_echo 'EGREP' >> "conftest.nl"
4181 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4182 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4183 as_fn_arith $ac_count + 1 && ac_count=$as_val
4184 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4185 # Best one so far, save it but keep looking for a better one
4186 ac_cv_path_EGREP="$ac_path_EGREP"
4187 ac_path_EGREP_max=$ac_count
4188 fi
4189 # 10*(2^10) chars as input seems more than enough
4190 test $ac_count -gt 10 && break
4191 done
4192 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4193 esac
4194
4195 $ac_path_EGREP_found && break 3
4196 done
4197 done
4198 done
4199 IFS=$as_save_IFS
4200 if test -z "$ac_cv_path_EGREP"; then
4201 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4202 fi
4203 else
4204 ac_cv_path_EGREP=$EGREP
4205 fi
4206
4207 fi
4208 fi
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4210 $as_echo "$ac_cv_path_EGREP" >&6; }
4211 EGREP="$ac_cv_path_EGREP"
4212
4213
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4215 $as_echo_n "checking for fgrep... " >&6; }
4216 if ${ac_cv_path_FGREP+:} false; then :
4217 $as_echo_n "(cached) " >&6
4218 else
4219 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4220 then ac_cv_path_FGREP="$GREP -F"
4221 else
4222 if test -z "$FGREP"; then
4223 ac_path_FGREP_found=false
4224 # Loop through the user's path and test for each of PROGNAME-LIST
4225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4226 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4227 do
4228 IFS=$as_save_IFS
4229 test -z "$as_dir" && as_dir=.
4230 for ac_prog in fgrep; do
4231 for ac_exec_ext in '' $ac_executable_extensions; do
4232 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4233 as_fn_executable_p "$ac_path_FGREP" || continue
4234 # Check for GNU ac_path_FGREP and select it if it is found.
4235 # Check for GNU $ac_path_FGREP
4236 case `"$ac_path_FGREP" --version 2>&1` in
4237 *GNU*)
4238 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4239 *)
4240 ac_count=0
4241 $as_echo_n 0123456789 >"conftest.in"
4242 while :
4243 do
4244 cat "conftest.in" "conftest.in" >"conftest.tmp"
4245 mv "conftest.tmp" "conftest.in"
4246 cp "conftest.in" "conftest.nl"
4247 $as_echo 'FGREP' >> "conftest.nl"
4248 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4249 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4250 as_fn_arith $ac_count + 1 && ac_count=$as_val
4251 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4252 # Best one so far, save it but keep looking for a better one
4253 ac_cv_path_FGREP="$ac_path_FGREP"
4254 ac_path_FGREP_max=$ac_count
4255 fi
4256 # 10*(2^10) chars as input seems more than enough
4257 test $ac_count -gt 10 && break
4258 done
4259 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4260 esac
4261
4262 $ac_path_FGREP_found && break 3
4263 done
4264 done
4265 done
4266 IFS=$as_save_IFS
4267 if test -z "$ac_cv_path_FGREP"; then
4268 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4269 fi
4270 else
4271 ac_cv_path_FGREP=$FGREP
4272 fi
4273
4274 fi
4275 fi
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4277 $as_echo "$ac_cv_path_FGREP" >&6; }
4278 FGREP="$ac_cv_path_FGREP"
4279
4280
4281 test -z "$GREP" && GREP=grep
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301 # Check whether --with-gnu-ld was given.
4302 if test "${with_gnu_ld+set}" = set; then :
4303 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4304 else
4305 with_gnu_ld=no
4306 fi
4307
4308 ac_prog=ld
4309 if test "$GCC" = yes; then
4310 # Check if gcc -print-prog-name=ld gives a path.
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4312 $as_echo_n "checking for ld used by $CC... " >&6; }
4313 case $host in
4314 *-*-mingw*)
4315 # gcc leaves a trailing carriage return which upsets mingw
4316 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4317 *)
4318 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4319 esac
4320 case $ac_prog in
4321 # Accept absolute paths.
4322 [\\/]* | ?:[\\/]*)
4323 re_direlt='/[^/][^/]*/\.\./'
4324 # Canonicalize the pathname of ld
4325 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4326 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4327 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4328 done
4329 test -z "$LD" && LD="$ac_prog"
4330 ;;
4331 "")
4332 # If it fails, then pretend we aren't using GCC.
4333 ac_prog=ld
4334 ;;
4335 *)
4336 # If it is relative, then search for the first ld in PATH.
4337 with_gnu_ld=unknown
4338 ;;
4339 esac
4340 elif test "$with_gnu_ld" = yes; then
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4342 $as_echo_n "checking for GNU ld... " >&6; }
4343 else
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4345 $as_echo_n "checking for non-GNU ld... " >&6; }
4346 fi
4347 if ${lt_cv_path_LD+:} false; then :
4348 $as_echo_n "(cached) " >&6
4349 else
4350 if test -z "$LD"; then
4351 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4352 for ac_dir in $PATH; do
4353 IFS="$lt_save_ifs"
4354 test -z "$ac_dir" && ac_dir=.
4355 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4356 lt_cv_path_LD="$ac_dir/$ac_prog"
4357 # Check to see if the program is GNU ld. I'd rather use --version,
4358 # but apparently some variants of GNU ld only accept -v.
4359 # Break only if it was the GNU/non-GNU ld that we prefer.
4360 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4361 *GNU* | *'with BFD'*)
4362 test "$with_gnu_ld" != no && break
4363 ;;
4364 *)
4365 test "$with_gnu_ld" != yes && break
4366 ;;
4367 esac
4368 fi
4369 done
4370 IFS="$lt_save_ifs"
4371 else
4372 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4373 fi
4374 fi
4375
4376 LD="$lt_cv_path_LD"
4377 if test -n "$LD"; then
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4379 $as_echo "$LD" >&6; }
4380 else
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4382 $as_echo "no" >&6; }
4383 fi
4384 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4386 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4387 if ${lt_cv_prog_gnu_ld+:} false; then :
4388 $as_echo_n "(cached) " >&6
4389 else
4390 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4391 case `$LD -v 2>&1 </dev/null` in
4392 *GNU* | *'with BFD'*)
4393 lt_cv_prog_gnu_ld=yes
4394 ;;
4395 *)
4396 lt_cv_prog_gnu_ld=no
4397 ;;
4398 esac
4399 fi
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4401 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4402 with_gnu_ld=$lt_cv_prog_gnu_ld
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4413 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4414 if ${lt_cv_path_NM+:} false; then :
4415 $as_echo_n "(cached) " >&6
4416 else
4417 if test -n "$NM"; then
4418 # Let the user override the test.
4419 lt_cv_path_NM="$NM"
4420 else
4421 lt_nm_to_check="${ac_tool_prefix}nm"
4422 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4423 lt_nm_to_check="$lt_nm_to_check nm"
4424 fi
4425 for lt_tmp_nm in $lt_nm_to_check; do
4426 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4427 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4428 IFS="$lt_save_ifs"
4429 test -z "$ac_dir" && ac_dir=.
4430 tmp_nm="$ac_dir/$lt_tmp_nm"
4431 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4432 # Check to see if the nm accepts a BSD-compat flag.
4433 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4434 # nm: unknown option "B" ignored
4435 # Tru64's nm complains that /dev/null is an invalid object file
4436 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4437 */dev/null* | *'Invalid file or object type'*)
4438 lt_cv_path_NM="$tmp_nm -B"
4439 break
4440 ;;
4441 *)
4442 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4443 */dev/null*)
4444 lt_cv_path_NM="$tmp_nm -p"
4445 break
4446 ;;
4447 *)
4448 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4449 continue # so that we can try to find one that supports BSD flags
4450 ;;
4451 esac
4452 ;;
4453 esac
4454 fi
4455 done
4456 IFS="$lt_save_ifs"
4457 done
4458 : ${lt_cv_path_NM=no}
4459 fi
4460 fi
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4462 $as_echo "$lt_cv_path_NM" >&6; }
4463 if test "$lt_cv_path_NM" != "no"; then
4464 NM="$lt_cv_path_NM"
4465 else
4466 # Didn't find any BSD compatible name lister, look for dumpbin.
4467 if test -n "$DUMPBIN"; then :
4468 # Let the user override the test.
4469 else
4470 if test -n "$ac_tool_prefix"; then
4471 for ac_prog in dumpbin "link -dump"
4472 do
4473 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4474 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4476 $as_echo_n "checking for $ac_word... " >&6; }
4477 if ${ac_cv_prog_DUMPBIN+:} false; then :
4478 $as_echo_n "(cached) " >&6
4479 else
4480 if test -n "$DUMPBIN"; then
4481 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4482 else
4483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4484 for as_dir in $PATH
4485 do
4486 IFS=$as_save_IFS
4487 test -z "$as_dir" && as_dir=.
4488 for ac_exec_ext in '' $ac_executable_extensions; do
4489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4490 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4492 break 2
4493 fi
4494 done
4495 done
4496 IFS=$as_save_IFS
4497
4498 fi
4499 fi
4500 DUMPBIN=$ac_cv_prog_DUMPBIN
4501 if test -n "$DUMPBIN"; then
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4503 $as_echo "$DUMPBIN" >&6; }
4504 else
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4506 $as_echo "no" >&6; }
4507 fi
4508
4509
4510 test -n "$DUMPBIN" && break
4511 done
4512 fi
4513 if test -z "$DUMPBIN"; then
4514 ac_ct_DUMPBIN=$DUMPBIN
4515 for ac_prog in dumpbin "link -dump"
4516 do
4517 # Extract the first word of "$ac_prog", so it can be a program name with args.
4518 set dummy $ac_prog; ac_word=$2
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4520 $as_echo_n "checking for $ac_word... " >&6; }
4521 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4522 $as_echo_n "(cached) " >&6
4523 else
4524 if test -n "$ac_ct_DUMPBIN"; then
4525 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4526 else
4527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4528 for as_dir in $PATH
4529 do
4530 IFS=$as_save_IFS
4531 test -z "$as_dir" && as_dir=.
4532 for ac_exec_ext in '' $ac_executable_extensions; do
4533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4534 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4536 break 2
4537 fi
4538 done
4539 done
4540 IFS=$as_save_IFS
4541
4542 fi
4543 fi
4544 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4545 if test -n "$ac_ct_DUMPBIN"; then
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4547 $as_echo "$ac_ct_DUMPBIN" >&6; }
4548 else
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4550 $as_echo "no" >&6; }
4551 fi
4552
4553
4554 test -n "$ac_ct_DUMPBIN" && break
4555 done
4556
4557 if test "x$ac_ct_DUMPBIN" = x; then
4558 DUMPBIN=":"
4559 else
4560 case $cross_compiling:$ac_tool_warned in
4561 yes:)
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4563 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4564 ac_tool_warned=yes ;;
4565 esac
4566 DUMPBIN=$ac_ct_DUMPBIN
4567 fi
4568 fi
4569
4570 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4571 *COFF*)
4572 DUMPBIN="$DUMPBIN -symbols"
4573 ;;
4574 *)
4575 DUMPBIN=:
4576 ;;
4577 esac
4578 fi
4579
4580 if test "$DUMPBIN" != ":"; then
4581 NM="$DUMPBIN"
4582 fi
4583 fi
4584 test -z "$NM" && NM=nm
4585
4586
4587
4588
4589
4590
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4592 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4593 if ${lt_cv_nm_interface+:} false; then :
4594 $as_echo_n "(cached) " >&6
4595 else
4596 lt_cv_nm_interface="BSD nm"
4597 echo "int some_variable = 0;" > conftest.$ac_ext
4598 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4599 (eval "$ac_compile" 2>conftest.err)
4600 cat conftest.err >&5
4601 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4602 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4603 cat conftest.err >&5
4604 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4605 cat conftest.out >&5
4606 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4607 lt_cv_nm_interface="MS dumpbin"
4608 fi
4609 rm -f conftest*
4610 fi
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4612 $as_echo "$lt_cv_nm_interface" >&6; }
4613
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4615 $as_echo_n "checking whether ln -s works... " >&6; }
4616 LN_S=$as_ln_s
4617 if test "$LN_S" = "ln -s"; then
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4619 $as_echo "yes" >&6; }
4620 else
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4622 $as_echo "no, using $LN_S" >&6; }
4623 fi
4624
4625 # find the maximum length of command line arguments
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4627 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4628 if ${lt_cv_sys_max_cmd_len+:} false; then :
4629 $as_echo_n "(cached) " >&6
4630 else
4631 i=0
4632 teststring="ABCD"
4633
4634 case $build_os in
4635 msdosdjgpp*)
4636 # On DJGPP, this test can blow up pretty badly due to problems in libc
4637 # (any single argument exceeding 2000 bytes causes a buffer overrun
4638 # during glob expansion). Even if it were fixed, the result of this
4639 # check would be larger than it should be.
4640 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4641 ;;
4642
4643 gnu*)
4644 # Under GNU Hurd, this test is not required because there is
4645 # no limit to the length of command line arguments.
4646 # Libtool will interpret -1 as no limit whatsoever
4647 lt_cv_sys_max_cmd_len=-1;
4648 ;;
4649
4650 cygwin* | mingw* | cegcc*)
4651 # On Win9x/ME, this test blows up -- it succeeds, but takes
4652 # about 5 minutes as the teststring grows exponentially.
4653 # Worse, since 9x/ME are not pre-emptively multitasking,
4654 # you end up with a "frozen" computer, even though with patience
4655 # the test eventually succeeds (with a max line length of 256k).
4656 # Instead, let's just punt: use the minimum linelength reported by
4657 # all of the supported platforms: 8192 (on NT/2K/XP).
4658 lt_cv_sys_max_cmd_len=8192;
4659 ;;
4660
4661 mint*)
4662 # On MiNT this can take a long time and run out of memory.
4663 lt_cv_sys_max_cmd_len=8192;
4664 ;;
4665
4666 amigaos*)
4667 # On AmigaOS with pdksh, this test takes hours, literally.
4668 # So we just punt and use a minimum line length of 8192.
4669 lt_cv_sys_max_cmd_len=8192;
4670 ;;
4671
4672 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4673 # This has been around since 386BSD, at least. Likely further.
4674 if test -x /sbin/sysctl; then
4675 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4676 elif test -x /usr/sbin/sysctl; then
4677 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4678 else
4679 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4680 fi
4681 # And add a safety zone
4682 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4683 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4684 ;;
4685
4686 interix*)
4687 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4688 lt_cv_sys_max_cmd_len=196608
4689 ;;
4690
4691 os2*)
4692 # The test takes a long time on OS/2.
4693 lt_cv_sys_max_cmd_len=8192
4694 ;;
4695
4696 osf*)
4697 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4698 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4699 # nice to cause kernel panics so lets avoid the loop below.
4700 # First set a reasonable default.
4701 lt_cv_sys_max_cmd_len=16384
4702 #
4703 if test -x /sbin/sysconfig; then
4704 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4705 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4706 esac
4707 fi
4708 ;;
4709 sco3.2v5*)
4710 lt_cv_sys_max_cmd_len=102400
4711 ;;
4712 sysv5* | sco5v6* | sysv4.2uw2*)
4713 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4714 if test -n "$kargmax"; then
4715 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4716 else
4717 lt_cv_sys_max_cmd_len=32768
4718 fi
4719 ;;
4720 *)
4721 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4722 if test -n "$lt_cv_sys_max_cmd_len"; then
4723 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4724 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4725 else
4726 # Make teststring a little bigger before we do anything with it.
4727 # a 1K string should be a reasonable start.
4728 for i in 1 2 3 4 5 6 7 8 ; do
4729 teststring=$teststring$teststring
4730 done
4731 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4732 # If test is not a shell built-in, we'll probably end up computing a
4733 # maximum length that is only half of the actual maximum length, but
4734 # we can't tell.
4735 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4736 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4737 test $i != 17 # 1/2 MB should be enough
4738 do
4739 i=`expr $i + 1`
4740 teststring=$teststring$teststring
4741 done
4742 # Only check the string length outside the loop.
4743 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4744 teststring=
4745 # Add a significant safety factor because C++ compilers can tack on
4746 # massive amounts of additional arguments before passing them to the
4747 # linker. It appears as though 1/2 is a usable value.
4748 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4749 fi
4750 ;;
4751 esac
4752
4753 fi
4754
4755 if test -n $lt_cv_sys_max_cmd_len ; then
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4757 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4758 else
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4760 $as_echo "none" >&6; }
4761 fi
4762 max_cmd_len=$lt_cv_sys_max_cmd_len
4763
4764
4765
4766
4767
4768
4769 : ${CP="cp -f"}
4770 : ${MV="mv -f"}
4771 : ${RM="rm -f"}
4772
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4774 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4775 # Try some XSI features
4776 xsi_shell=no
4777 ( _lt_dummy="a/b/c"
4778 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4779 = c,a/b,b/c, \
4780 && eval 'test $(( 1 + 1 )) -eq 2 \
4781 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4782 && xsi_shell=yes
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4784 $as_echo "$xsi_shell" >&6; }
4785
4786
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4788 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4789 lt_shell_append=no
4790 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4791 >/dev/null 2>&1 \
4792 && lt_shell_append=yes
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4794 $as_echo "$lt_shell_append" >&6; }
4795
4796
4797 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4798 lt_unset=unset
4799 else
4800 lt_unset=false
4801 fi
4802
4803
4804
4805
4806
4807 # test EBCDIC or ASCII
4808 case `echo X|tr X '\101'` in
4809 A) # ASCII based system
4810 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4811 lt_SP2NL='tr \040 \012'
4812 lt_NL2SP='tr \015\012 \040\040'
4813 ;;
4814 *) # EBCDIC based system
4815 lt_SP2NL='tr \100 \n'
4816 lt_NL2SP='tr \r\n \100\100'
4817 ;;
4818 esac
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4829 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4830 if ${lt_cv_to_host_file_cmd+:} false; then :
4831 $as_echo_n "(cached) " >&6
4832 else
4833 case $host in
4834 *-*-mingw* )
4835 case $build in
4836 *-*-mingw* ) # actually msys
4837 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4838 ;;
4839 *-*-cygwin* )
4840 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4841 ;;
4842 * ) # otherwise, assume *nix
4843 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4844 ;;
4845 esac
4846 ;;
4847 *-*-cygwin* )
4848 case $build in
4849 *-*-mingw* ) # actually msys
4850 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4851 ;;
4852 *-*-cygwin* )
4853 lt_cv_to_host_file_cmd=func_convert_file_noop
4854 ;;
4855 * ) # otherwise, assume *nix
4856 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4857 ;;
4858 esac
4859 ;;
4860 * ) # unhandled hosts (and "normal" native builds)
4861 lt_cv_to_host_file_cmd=func_convert_file_noop
4862 ;;
4863 esac
4864
4865 fi
4866
4867 to_host_file_cmd=$lt_cv_to_host_file_cmd
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4869 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4870
4871
4872
4873
4874
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4876 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4877 if ${lt_cv_to_tool_file_cmd+:} false; then :
4878 $as_echo_n "(cached) " >&6
4879 else
4880 #assume ordinary cross tools, or native build.
4881 lt_cv_to_tool_file_cmd=func_convert_file_noop
4882 case $host in
4883 *-*-mingw* )
4884 case $build in
4885 *-*-mingw* ) # actually msys
4886 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4887 ;;
4888 esac
4889 ;;
4890 esac
4891
4892 fi
4893
4894 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4896 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4897
4898
4899
4900
4901
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4903 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4904 if ${lt_cv_ld_reload_flag+:} false; then :
4905 $as_echo_n "(cached) " >&6
4906 else
4907 lt_cv_ld_reload_flag='-r'
4908 fi
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4910 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4911 reload_flag=$lt_cv_ld_reload_flag
4912 case $reload_flag in
4913 "" | " "*) ;;
4914 *) reload_flag=" $reload_flag" ;;
4915 esac
4916 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4917 case $host_os in
4918 cygwin* | mingw* | pw32* | cegcc*)
4919 if test "$GCC" != yes; then
4920 reload_cmds=false
4921 fi
4922 ;;
4923 darwin*)
4924 if test "$GCC" = yes; then
4925 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4926 else
4927 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4928 fi
4929 ;;
4930 esac
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940 if test -n "$ac_tool_prefix"; then
4941 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4942 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4944 $as_echo_n "checking for $ac_word... " >&6; }
4945 if ${ac_cv_prog_OBJDUMP+:} false; then :
4946 $as_echo_n "(cached) " >&6
4947 else
4948 if test -n "$OBJDUMP"; then
4949 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4950 else
4951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4952 for as_dir in $PATH
4953 do
4954 IFS=$as_save_IFS
4955 test -z "$as_dir" && as_dir=.
4956 for ac_exec_ext in '' $ac_executable_extensions; do
4957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4958 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4960 break 2
4961 fi
4962 done
4963 done
4964 IFS=$as_save_IFS
4965
4966 fi
4967 fi
4968 OBJDUMP=$ac_cv_prog_OBJDUMP
4969 if test -n "$OBJDUMP"; then
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4971 $as_echo "$OBJDUMP" >&6; }
4972 else
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4974 $as_echo "no" >&6; }
4975 fi
4976
4977
4978 fi
4979 if test -z "$ac_cv_prog_OBJDUMP"; then
4980 ac_ct_OBJDUMP=$OBJDUMP
4981 # Extract the first word of "objdump", so it can be a program name with args.
4982 set dummy objdump; ac_word=$2
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4984 $as_echo_n "checking for $ac_word... " >&6; }
4985 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4986 $as_echo_n "(cached) " >&6
4987 else
4988 if test -n "$ac_ct_OBJDUMP"; then
4989 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4990 else
4991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4992 for as_dir in $PATH
4993 do
4994 IFS=$as_save_IFS
4995 test -z "$as_dir" && as_dir=.
4996 for ac_exec_ext in '' $ac_executable_extensions; do
4997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4998 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5000 break 2
5001 fi
5002 done
5003 done
5004 IFS=$as_save_IFS
5005
5006 fi
5007 fi
5008 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5009 if test -n "$ac_ct_OBJDUMP"; then
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5011 $as_echo "$ac_ct_OBJDUMP" >&6; }
5012 else
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5014 $as_echo "no" >&6; }
5015 fi
5016
5017 if test "x$ac_ct_OBJDUMP" = x; then
5018 OBJDUMP="false"
5019 else
5020 case $cross_compiling:$ac_tool_warned in
5021 yes:)
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5023 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5024 ac_tool_warned=yes ;;
5025 esac
5026 OBJDUMP=$ac_ct_OBJDUMP
5027 fi
5028 else
5029 OBJDUMP="$ac_cv_prog_OBJDUMP"
5030 fi
5031
5032 test -z "$OBJDUMP" && OBJDUMP=objdump
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5043 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5044 if ${lt_cv_deplibs_check_method+:} false; then :
5045 $as_echo_n "(cached) " >&6
5046 else
5047 lt_cv_file_magic_cmd='$MAGIC_CMD'
5048 lt_cv_file_magic_test_file=
5049 lt_cv_deplibs_check_method='unknown'
5050 # Need to set the preceding variable on all platforms that support
5051 # interlibrary dependencies.
5052 # 'none' -- dependencies not supported.
5053 # `unknown' -- same as none, but documents that we really don't know.
5054 # 'pass_all' -- all dependencies passed with no checks.
5055 # 'test_compile' -- check by making test program.
5056 # 'file_magic [[regex]]' -- check by looking for files in library path
5057 # which responds to the $file_magic_cmd with a given extended regex.
5058 # If you have `file' or equivalent on your system and you're not sure
5059 # whether `pass_all' will *always* work, you probably want this one.
5060
5061 case $host_os in
5062 aix[4-9]*)
5063 lt_cv_deplibs_check_method=pass_all
5064 ;;
5065
5066 beos*)
5067 lt_cv_deplibs_check_method=pass_all
5068 ;;
5069
5070 bsdi[45]*)
5071 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5072 lt_cv_file_magic_cmd='/usr/bin/file -L'
5073 lt_cv_file_magic_test_file=/shlib/libc.so
5074 ;;
5075
5076 cygwin*)
5077 # func_win32_libid is a shell function defined in ltmain.sh
5078 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5079 lt_cv_file_magic_cmd='func_win32_libid'
5080 ;;
5081
5082 mingw* | pw32*)
5083 # Base MSYS/MinGW do not provide the 'file' command needed by
5084 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5085 # unless we find 'file', for example because we are cross-compiling.
5086 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5087 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5088 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5089 lt_cv_file_magic_cmd='func_win32_libid'
5090 else
5091 # Keep this pattern in sync with the one in func_win32_libid.
5092 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5093 lt_cv_file_magic_cmd='$OBJDUMP -f'
5094 fi
5095 ;;
5096
5097 cegcc*)
5098 # use the weaker test based on 'objdump'. See mingw*.
5099 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5100 lt_cv_file_magic_cmd='$OBJDUMP -f'
5101 ;;
5102
5103 darwin* | rhapsody*)
5104 lt_cv_deplibs_check_method=pass_all
5105 ;;
5106
5107 freebsd* | dragonfly*)
5108 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5109 case $host_cpu in
5110 i*86 )
5111 # Not sure whether the presence of OpenBSD here was a mistake.
5112 # Let's accept both of them until this is cleared up.
5113 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5114 lt_cv_file_magic_cmd=/usr/bin/file
5115 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5116 ;;
5117 esac
5118 else
5119 lt_cv_deplibs_check_method=pass_all
5120 fi
5121 ;;
5122
5123 gnu*)
5124 lt_cv_deplibs_check_method=pass_all
5125 ;;
5126
5127 haiku*)
5128 lt_cv_deplibs_check_method=pass_all
5129 ;;
5130
5131 hpux10.20* | hpux11*)
5132 lt_cv_file_magic_cmd=/usr/bin/file
5133 case $host_cpu in
5134 ia64*)
5135 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5136 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5137 ;;
5138 hppa*64*)
5139 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]'
5140 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5141 ;;
5142 *)
5143 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5144 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5145 ;;
5146 esac
5147 ;;
5148
5149 interix[3-9]*)
5150 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5151 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5152 ;;
5153
5154 irix5* | irix6* | nonstopux*)
5155 case $LD in
5156 *-32|*"-32 ") libmagic=32-bit;;
5157 *-n32|*"-n32 ") libmagic=N32;;
5158 *-64|*"-64 ") libmagic=64-bit;;
5159 *) libmagic=never-match;;
5160 esac
5161 lt_cv_deplibs_check_method=pass_all
5162 ;;
5163
5164 # This must be glibc/ELF.
5165 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5166 lt_cv_deplibs_check_method=pass_all
5167 ;;
5168
5169 netbsd*)
5170 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5171 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5172 else
5173 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5174 fi
5175 ;;
5176
5177 newos6*)
5178 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5179 lt_cv_file_magic_cmd=/usr/bin/file
5180 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5181 ;;
5182
5183 *nto* | *qnx*)
5184 lt_cv_deplibs_check_method=pass_all
5185 ;;
5186
5187 openbsd*)
5188 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5189 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5190 else
5191 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5192 fi
5193 ;;
5194
5195 osf3* | osf4* | osf5*)
5196 lt_cv_deplibs_check_method=pass_all
5197 ;;
5198
5199 rdos*)
5200 lt_cv_deplibs_check_method=pass_all
5201 ;;
5202
5203 solaris*)
5204 lt_cv_deplibs_check_method=pass_all
5205 ;;
5206
5207 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5208 lt_cv_deplibs_check_method=pass_all
5209 ;;
5210
5211 sysv4 | sysv4.3*)
5212 case $host_vendor in
5213 motorola)
5214 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]'
5215 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5216 ;;
5217 ncr)
5218 lt_cv_deplibs_check_method=pass_all
5219 ;;
5220 sequent)
5221 lt_cv_file_magic_cmd='/bin/file'
5222 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5223 ;;
5224 sni)
5225 lt_cv_file_magic_cmd='/bin/file'
5226 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5227 lt_cv_file_magic_test_file=/lib/libc.so
5228 ;;
5229 siemens)
5230 lt_cv_deplibs_check_method=pass_all
5231 ;;
5232 pc)
5233 lt_cv_deplibs_check_method=pass_all
5234 ;;
5235 esac
5236 ;;
5237
5238 tpf*)
5239 lt_cv_deplibs_check_method=pass_all
5240 ;;
5241 esac
5242
5243 fi
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5245 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5246
5247 file_magic_glob=
5248 want_nocaseglob=no
5249 if test "$build" = "$host"; then
5250 case $host_os in
5251 mingw* | pw32*)
5252 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5253 want_nocaseglob=yes
5254 else
5255 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5256 fi
5257 ;;
5258 esac
5259 fi
5260
5261 file_magic_cmd=$lt_cv_file_magic_cmd
5262 deplibs_check_method=$lt_cv_deplibs_check_method
5263 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286 if test -n "$ac_tool_prefix"; then
5287 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5288 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5290 $as_echo_n "checking for $ac_word... " >&6; }
5291 if ${ac_cv_prog_DLLTOOL+:} false; then :
5292 $as_echo_n "(cached) " >&6
5293 else
5294 if test -n "$DLLTOOL"; then
5295 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5296 else
5297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5298 for as_dir in $PATH
5299 do
5300 IFS=$as_save_IFS
5301 test -z "$as_dir" && as_dir=.
5302 for ac_exec_ext in '' $ac_executable_extensions; do
5303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5304 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5306 break 2
5307 fi
5308 done
5309 done
5310 IFS=$as_save_IFS
5311
5312 fi
5313 fi
5314 DLLTOOL=$ac_cv_prog_DLLTOOL
5315 if test -n "$DLLTOOL"; then
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5317 $as_echo "$DLLTOOL" >&6; }
5318 else
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5320 $as_echo "no" >&6; }
5321 fi
5322
5323
5324 fi
5325 if test -z "$ac_cv_prog_DLLTOOL"; then
5326 ac_ct_DLLTOOL=$DLLTOOL
5327 # Extract the first word of "dlltool", so it can be a program name with args.
5328 set dummy dlltool; ac_word=$2
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5330 $as_echo_n "checking for $ac_word... " >&6; }
5331 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5332 $as_echo_n "(cached) " >&6
5333 else
5334 if test -n "$ac_ct_DLLTOOL"; then
5335 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5336 else
5337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5338 for as_dir in $PATH
5339 do
5340 IFS=$as_save_IFS
5341 test -z "$as_dir" && as_dir=.
5342 for ac_exec_ext in '' $ac_executable_extensions; do
5343 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5344 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5346 break 2
5347 fi
5348 done
5349 done
5350 IFS=$as_save_IFS
5351
5352 fi
5353 fi
5354 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5355 if test -n "$ac_ct_DLLTOOL"; then
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5357 $as_echo "$ac_ct_DLLTOOL" >&6; }
5358 else
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5360 $as_echo "no" >&6; }
5361 fi
5362
5363 if test "x$ac_ct_DLLTOOL" = x; then
5364 DLLTOOL="false"
5365 else
5366 case $cross_compiling:$ac_tool_warned in
5367 yes:)
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5369 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5370 ac_tool_warned=yes ;;
5371 esac
5372 DLLTOOL=$ac_ct_DLLTOOL
5373 fi
5374 else
5375 DLLTOOL="$ac_cv_prog_DLLTOOL"
5376 fi
5377
5378 test -z "$DLLTOOL" && DLLTOOL=dlltool
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5390 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5391 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5392 $as_echo_n "(cached) " >&6
5393 else
5394 lt_cv_sharedlib_from_linklib_cmd='unknown'
5395
5396 case $host_os in
5397 cygwin* | mingw* | pw32* | cegcc*)
5398 # two different shell functions defined in ltmain.sh
5399 # decide which to use based on capabilities of $DLLTOOL
5400 case `$DLLTOOL --help 2>&1` in
5401 *--identify-strict*)
5402 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5403 ;;
5404 *)
5405 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5406 ;;
5407 esac
5408 ;;
5409 *)
5410 # fallback: assume linklib IS sharedlib
5411 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5412 ;;
5413 esac
5414
5415 fi
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5417 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5418 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5419 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5420
5421
5422
5423
5424
5425
5426
5427
5428 if test -n "$ac_tool_prefix"; then
5429 for ac_prog in ar
5430 do
5431 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5432 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5434 $as_echo_n "checking for $ac_word... " >&6; }
5435 if ${ac_cv_prog_AR+:} false; then :
5436 $as_echo_n "(cached) " >&6
5437 else
5438 if test -n "$AR"; then
5439 ac_cv_prog_AR="$AR" # Let the user override the test.
5440 else
5441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5442 for as_dir in $PATH
5443 do
5444 IFS=$as_save_IFS
5445 test -z "$as_dir" && as_dir=.
5446 for ac_exec_ext in '' $ac_executable_extensions; do
5447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5448 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5450 break 2
5451 fi
5452 done
5453 done
5454 IFS=$as_save_IFS
5455
5456 fi
5457 fi
5458 AR=$ac_cv_prog_AR
5459 if test -n "$AR"; then
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5461 $as_echo "$AR" >&6; }
5462 else
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5464 $as_echo "no" >&6; }
5465 fi
5466
5467
5468 test -n "$AR" && break
5469 done
5470 fi
5471 if test -z "$AR"; then
5472 ac_ct_AR=$AR
5473 for ac_prog in ar
5474 do
5475 # Extract the first word of "$ac_prog", so it can be a program name with args.
5476 set dummy $ac_prog; ac_word=$2
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5478 $as_echo_n "checking for $ac_word... " >&6; }
5479 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5480 $as_echo_n "(cached) " >&6
5481 else
5482 if test -n "$ac_ct_AR"; then
5483 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5484 else
5485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5486 for as_dir in $PATH
5487 do
5488 IFS=$as_save_IFS
5489 test -z "$as_dir" && as_dir=.
5490 for ac_exec_ext in '' $ac_executable_extensions; do
5491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5492 ac_cv_prog_ac_ct_AR="$ac_prog"
5493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5494 break 2
5495 fi
5496 done
5497 done
5498 IFS=$as_save_IFS
5499
5500 fi
5501 fi
5502 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5503 if test -n "$ac_ct_AR"; then
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5505 $as_echo "$ac_ct_AR" >&6; }
5506 else
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5508 $as_echo "no" >&6; }
5509 fi
5510
5511
5512 test -n "$ac_ct_AR" && break
5513 done
5514
5515 if test "x$ac_ct_AR" = x; then
5516 AR="false"
5517 else
5518 case $cross_compiling:$ac_tool_warned in
5519 yes:)
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5521 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5522 ac_tool_warned=yes ;;
5523 esac
5524 AR=$ac_ct_AR
5525 fi
5526 fi
5527
5528 : ${AR=ar}
5529 : ${AR_FLAGS=cru}
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5542 $as_echo_n "checking for archiver @FILE support... " >&6; }
5543 if ${lt_cv_ar_at_file+:} false; then :
5544 $as_echo_n "(cached) " >&6
5545 else
5546 lt_cv_ar_at_file=no
5547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5548 /* end confdefs.h. */
5549
5550 int
5551 main ()
5552 {
5553
5554 ;
5555 return 0;
5556 }
5557 _ACEOF
5558 if ac_fn_c_try_compile "$LINENO"; then :
5559 echo conftest.$ac_objext > conftest.lst
5560 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5561 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5562 (eval $lt_ar_try) 2>&5
5563 ac_status=$?
5564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5565 test $ac_status = 0; }
5566 if test "$ac_status" -eq 0; then
5567 # Ensure the archiver fails upon bogus file names.
5568 rm -f conftest.$ac_objext libconftest.a
5569 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5570 (eval $lt_ar_try) 2>&5
5571 ac_status=$?
5572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5573 test $ac_status = 0; }
5574 if test "$ac_status" -ne 0; then
5575 lt_cv_ar_at_file=@
5576 fi
5577 fi
5578 rm -f conftest.* libconftest.a
5579
5580 fi
5581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5582
5583 fi
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5585 $as_echo "$lt_cv_ar_at_file" >&6; }
5586
5587 if test "x$lt_cv_ar_at_file" = xno; then
5588 archiver_list_spec=
5589 else
5590 archiver_list_spec=$lt_cv_ar_at_file
5591 fi
5592
5593
5594
5595
5596
5597
5598
5599 if test -n "$ac_tool_prefix"; then
5600 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5601 set dummy ${ac_tool_prefix}strip; ac_word=$2
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5603 $as_echo_n "checking for $ac_word... " >&6; }
5604 if ${ac_cv_prog_STRIP+:} false; then :
5605 $as_echo_n "(cached) " >&6
5606 else
5607 if test -n "$STRIP"; then
5608 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5609 else
5610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5611 for as_dir in $PATH
5612 do
5613 IFS=$as_save_IFS
5614 test -z "$as_dir" && as_dir=.
5615 for ac_exec_ext in '' $ac_executable_extensions; do
5616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5617 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5619 break 2
5620 fi
5621 done
5622 done
5623 IFS=$as_save_IFS
5624
5625 fi
5626 fi
5627 STRIP=$ac_cv_prog_STRIP
5628 if test -n "$STRIP"; then
5629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5630 $as_echo "$STRIP" >&6; }
5631 else
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5633 $as_echo "no" >&6; }
5634 fi
5635
5636
5637 fi
5638 if test -z "$ac_cv_prog_STRIP"; then
5639 ac_ct_STRIP=$STRIP
5640 # Extract the first word of "strip", so it can be a program name with args.
5641 set dummy strip; ac_word=$2
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5643 $as_echo_n "checking for $ac_word... " >&6; }
5644 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5645 $as_echo_n "(cached) " >&6
5646 else
5647 if test -n "$ac_ct_STRIP"; then
5648 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5649 else
5650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5651 for as_dir in $PATH
5652 do
5653 IFS=$as_save_IFS
5654 test -z "$as_dir" && as_dir=.
5655 for ac_exec_ext in '' $ac_executable_extensions; do
5656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5657 ac_cv_prog_ac_ct_STRIP="strip"
5658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5659 break 2
5660 fi
5661 done
5662 done
5663 IFS=$as_save_IFS
5664
5665 fi
5666 fi
5667 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5668 if test -n "$ac_ct_STRIP"; then
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5670 $as_echo "$ac_ct_STRIP" >&6; }
5671 else
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5673 $as_echo "no" >&6; }
5674 fi
5675
5676 if test "x$ac_ct_STRIP" = x; then
5677 STRIP=":"
5678 else
5679 case $cross_compiling:$ac_tool_warned in
5680 yes:)
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5682 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5683 ac_tool_warned=yes ;;
5684 esac
5685 STRIP=$ac_ct_STRIP
5686 fi
5687 else
5688 STRIP="$ac_cv_prog_STRIP"
5689 fi
5690
5691 test -z "$STRIP" && STRIP=:
5692
5693
5694
5695
5696
5697
5698 if test -n "$ac_tool_prefix"; then
5699 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5700 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5702 $as_echo_n "checking for $ac_word... " >&6; }
5703 if ${ac_cv_prog_RANLIB+:} false; then :
5704 $as_echo_n "(cached) " >&6
5705 else
5706 if test -n "$RANLIB"; then
5707 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5708 else
5709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5710 for as_dir in $PATH
5711 do
5712 IFS=$as_save_IFS
5713 test -z "$as_dir" && as_dir=.
5714 for ac_exec_ext in '' $ac_executable_extensions; do
5715 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5716 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5718 break 2
5719 fi
5720 done
5721 done
5722 IFS=$as_save_IFS
5723
5724 fi
5725 fi
5726 RANLIB=$ac_cv_prog_RANLIB
5727 if test -n "$RANLIB"; then
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5729 $as_echo "$RANLIB" >&6; }
5730 else
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5732 $as_echo "no" >&6; }
5733 fi
5734
5735
5736 fi
5737 if test -z "$ac_cv_prog_RANLIB"; then
5738 ac_ct_RANLIB=$RANLIB
5739 # Extract the first word of "ranlib", so it can be a program name with args.
5740 set dummy ranlib; ac_word=$2
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5742 $as_echo_n "checking for $ac_word... " >&6; }
5743 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5744 $as_echo_n "(cached) " >&6
5745 else
5746 if test -n "$ac_ct_RANLIB"; then
5747 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5748 else
5749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5750 for as_dir in $PATH
5751 do
5752 IFS=$as_save_IFS
5753 test -z "$as_dir" && as_dir=.
5754 for ac_exec_ext in '' $ac_executable_extensions; do
5755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5756 ac_cv_prog_ac_ct_RANLIB="ranlib"
5757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5758 break 2
5759 fi
5760 done
5761 done
5762 IFS=$as_save_IFS
5763
5764 fi
5765 fi
5766 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5767 if test -n "$ac_ct_RANLIB"; then
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5769 $as_echo "$ac_ct_RANLIB" >&6; }
5770 else
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5772 $as_echo "no" >&6; }
5773 fi
5774
5775 if test "x$ac_ct_RANLIB" = x; then
5776 RANLIB=":"
5777 else
5778 case $cross_compiling:$ac_tool_warned in
5779 yes:)
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5781 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5782 ac_tool_warned=yes ;;
5783 esac
5784 RANLIB=$ac_ct_RANLIB
5785 fi
5786 else
5787 RANLIB="$ac_cv_prog_RANLIB"
5788 fi
5789
5790 test -z "$RANLIB" && RANLIB=:
5791
5792
5793
5794
5795
5796
5797 # Determine commands to create old-style static archives.
5798 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5799 old_postinstall_cmds='chmod 644 $oldlib'
5800 old_postuninstall_cmds=
5801
5802 if test -n "$RANLIB"; then
5803 case $host_os in
5804 openbsd*)
5805 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5806 ;;
5807 *)
5808 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5809 ;;
5810 esac
5811 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5812 fi
5813
5814 case $host_os in
5815 darwin*)
5816 lock_old_archive_extraction=yes ;;
5817 *)
5818 lock_old_archive_extraction=no ;;
5819 esac
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859 # If no C compiler was specified, use CC.
5860 LTCC=${LTCC-"$CC"}
5861
5862 # If no C compiler flags were specified, use CFLAGS.
5863 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5864
5865 # Allow CC to be a program name with arguments.
5866 compiler=$CC
5867
5868
5869 # Check for command to grab the raw symbol name followed by C symbol from nm.
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5871 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5872 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5873 $as_echo_n "(cached) " >&6
5874 else
5875
5876 # These are sane defaults that work on at least a few old systems.
5877 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5878
5879 # Character class describing NM global symbol codes.
5880 symcode='[BCDEGRST]'
5881
5882 # Regexp to match symbols that can be accessed directly from C.
5883 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5884
5885 # Define system-specific variables.
5886 case $host_os in
5887 aix*)
5888 symcode='[BCDT]'
5889 ;;
5890 cygwin* | mingw* | pw32* | cegcc*)
5891 symcode='[ABCDGISTW]'
5892 ;;
5893 hpux*)
5894 if test "$host_cpu" = ia64; then
5895 symcode='[ABCDEGRST]'
5896 fi
5897 ;;
5898 irix* | nonstopux*)
5899 symcode='[BCDEGRST]'
5900 ;;
5901 osf*)
5902 symcode='[BCDEGQRST]'
5903 ;;
5904 solaris*)
5905 symcode='[BDRT]'
5906 ;;
5907 sco3.2v5*)
5908 symcode='[DT]'
5909 ;;
5910 sysv4.2uw2*)
5911 symcode='[DT]'
5912 ;;
5913 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5914 symcode='[ABDT]'
5915 ;;
5916 sysv4)
5917 symcode='[DFNSTU]'
5918 ;;
5919 esac
5920
5921 # If we're using GNU nm, then use its standard symbol codes.
5922 case `$NM -V 2>&1` in
5923 *GNU* | *'with BFD'*)
5924 symcode='[ABCDGIRSTW]' ;;
5925 esac
5926
5927 # Transform an extracted symbol line into a proper C declaration.
5928 # Some systems (esp. on ia64) link data and code symbols differently,
5929 # so use this general approach.
5930 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5931
5932 # Transform an extracted symbol line into symbol name and symbol address
5933 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5934 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'"
5935
5936 # Handle CRLF in mingw tool chain
5937 opt_cr=
5938 case $build_os in
5939 mingw*)
5940 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5941 ;;
5942 esac
5943
5944 # Try without a prefix underscore, then with it.
5945 for ac_symprfx in "" "_"; do
5946
5947 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5948 symxfrm="\\1 $ac_symprfx\\2 \\2"
5949
5950 # Write the raw and C identifiers.
5951 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5952 # Fake it for dumpbin and say T for any non-static function
5953 # and D for any global variable.
5954 # Also find C++ and __fastcall symbols from MSVC++,
5955 # which start with @ or ?.
5956 lt_cv_sys_global_symbol_pipe="$AWK '"\
5957 " {last_section=section; section=\$ 3};"\
5958 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5959 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5960 " \$ 0!~/External *\|/{next};"\
5961 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5962 " {if(hide[section]) next};"\
5963 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5964 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5965 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5966 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5967 " ' prfx=^$ac_symprfx"
5968 else
5969 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5970 fi
5971 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5972
5973 # Check to see that the pipe works correctly.
5974 pipe_works=no
5975
5976 rm -f conftest*
5977 cat > conftest.$ac_ext <<_LT_EOF
5978 #ifdef __cplusplus
5979 extern "C" {
5980 #endif
5981 char nm_test_var;
5982 void nm_test_func(void);
5983 void nm_test_func(void){}
5984 #ifdef __cplusplus
5985 }
5986 #endif
5987 int main(){nm_test_var='a';nm_test_func();return(0);}
5988 _LT_EOF
5989
5990 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5991 (eval $ac_compile) 2>&5
5992 ac_status=$?
5993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5994 test $ac_status = 0; }; then
5995 # Now try to grab the symbols.
5996 nlist=conftest.nm
5997 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5998 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5999 ac_status=$?
6000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6001 test $ac_status = 0; } && test -s "$nlist"; then
6002 # Try sorting and uniquifying the output.
6003 if sort "$nlist" | uniq > "$nlist"T; then
6004 mv -f "$nlist"T "$nlist"
6005 else
6006 rm -f "$nlist"T
6007 fi
6008
6009 # Make sure that we snagged all the symbols we need.
6010 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6011 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6012 cat <<_LT_EOF > conftest.$ac_ext
6013 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6014 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6015 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6016 relocations are performed -- see ld's documentation on pseudo-relocs. */
6017 # define LT_DLSYM_CONST
6018 #elif defined(__osf__)
6019 /* This system does not cope well with relocations in const data. */
6020 # define LT_DLSYM_CONST
6021 #else
6022 # define LT_DLSYM_CONST const
6023 #endif
6024
6025 #ifdef __cplusplus
6026 extern "C" {
6027 #endif
6028
6029 _LT_EOF
6030 # Now generate the symbol file.
6031 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6032
6033 cat <<_LT_EOF >> conftest.$ac_ext
6034
6035 /* The mapping between symbol names and symbols. */
6036 LT_DLSYM_CONST struct {
6037 const char *name;
6038 void *address;
6039 }
6040 lt__PROGRAM__LTX_preloaded_symbols[] =
6041 {
6042 { "@PROGRAM@", (void *) 0 },
6043 _LT_EOF
6044 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6045 cat <<\_LT_EOF >> conftest.$ac_ext
6046 {0, (void *) 0}
6047 };
6048
6049 /* This works around a problem in FreeBSD linker */
6050 #ifdef FREEBSD_WORKAROUND
6051 static const void *lt_preloaded_setup() {
6052 return lt__PROGRAM__LTX_preloaded_symbols;
6053 }
6054 #endif
6055
6056 #ifdef __cplusplus
6057 }
6058 #endif
6059 _LT_EOF
6060 # Now try linking the two files.
6061 mv conftest.$ac_objext conftstm.$ac_objext
6062 lt_globsym_save_LIBS=$LIBS
6063 lt_globsym_save_CFLAGS=$CFLAGS
6064 LIBS="conftstm.$ac_objext"
6065 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6066 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6067 (eval $ac_link) 2>&5
6068 ac_status=$?
6069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6070 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6071 pipe_works=yes
6072 fi
6073 LIBS=$lt_globsym_save_LIBS
6074 CFLAGS=$lt_globsym_save_CFLAGS
6075 else
6076 echo "cannot find nm_test_func in $nlist" >&5
6077 fi
6078 else
6079 echo "cannot find nm_test_var in $nlist" >&5
6080 fi
6081 else
6082 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6083 fi
6084 else
6085 echo "$progname: failed program was:" >&5
6086 cat conftest.$ac_ext >&5
6087 fi
6088 rm -rf conftest* conftst*
6089
6090 # Do not use the global_symbol_pipe unless it works.
6091 if test "$pipe_works" = yes; then
6092 break
6093 else
6094 lt_cv_sys_global_symbol_pipe=
6095 fi
6096 done
6097
6098 fi
6099
6100 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6101 lt_cv_sys_global_symbol_to_cdecl=
6102 fi
6103 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6105 $as_echo "failed" >&6; }
6106 else
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6108 $as_echo "ok" >&6; }
6109 fi
6110
6111 # Response file support.
6112 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6113 nm_file_list_spec='@'
6114 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6115 nm_file_list_spec='@'
6116 fi
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6145 $as_echo_n "checking for sysroot... " >&6; }
6146
6147 # Check whether --with-sysroot was given.
6148 if test "${with_sysroot+set}" = set; then :
6149 withval=$with_sysroot;
6150 else
6151 with_sysroot=no
6152 fi
6153
6154
6155 lt_sysroot=
6156 case ${with_sysroot} in #(
6157 yes)
6158 if test "$GCC" = yes; then
6159 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6160 fi
6161 ;; #(
6162 /*)
6163 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6164 ;; #(
6165 no|'')
6166 ;; #(
6167 *)
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6169 $as_echo "${with_sysroot}" >&6; }
6170 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6171 ;;
6172 esac
6173
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6175 $as_echo "${lt_sysroot:-no}" >&6; }
6176
6177
6178
6179
6180
6181 # Check whether --enable-libtool-lock was given.
6182 if test "${enable_libtool_lock+set}" = set; then :
6183 enableval=$enable_libtool_lock;
6184 fi
6185
6186 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6187
6188 # Some flags need to be propagated to the compiler or linker for good
6189 # libtool support.
6190 case $host in
6191 ia64-*-hpux*)
6192 # Find out which ABI we are using.
6193 echo 'int i;' > conftest.$ac_ext
6194 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6195 (eval $ac_compile) 2>&5
6196 ac_status=$?
6197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6198 test $ac_status = 0; }; then
6199 case `/usr/bin/file conftest.$ac_objext` in
6200 *ELF-32*)
6201 HPUX_IA64_MODE="32"
6202 ;;
6203 *ELF-64*)
6204 HPUX_IA64_MODE="64"
6205 ;;
6206 esac
6207 fi
6208 rm -rf conftest*
6209 ;;
6210 *-*-irix6*)
6211 # Find out which ABI we are using.
6212 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6213 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6214 (eval $ac_compile) 2>&5
6215 ac_status=$?
6216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6217 test $ac_status = 0; }; then
6218 if test "$lt_cv_prog_gnu_ld" = yes; then
6219 case `/usr/bin/file conftest.$ac_objext` in
6220 *32-bit*)
6221 LD="${LD-ld} -melf32bsmip"
6222 ;;
6223 *N32*)
6224 LD="${LD-ld} -melf32bmipn32"
6225 ;;
6226 *64-bit*)
6227 LD="${LD-ld} -melf64bmip"
6228 ;;
6229 esac
6230 else
6231 case `/usr/bin/file conftest.$ac_objext` in
6232 *32-bit*)
6233 LD="${LD-ld} -32"
6234 ;;
6235 *N32*)
6236 LD="${LD-ld} -n32"
6237 ;;
6238 *64-bit*)
6239 LD="${LD-ld} -64"
6240 ;;
6241 esac
6242 fi
6243 fi
6244 rm -rf conftest*
6245 ;;
6246
6247 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6248 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6249 # Find out which ABI we are using.
6250 echo 'int i;' > conftest.$ac_ext
6251 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6252 (eval $ac_compile) 2>&5
6253 ac_status=$?
6254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6255 test $ac_status = 0; }; then
6256 case `/usr/bin/file conftest.o` in
6257 *32-bit*)
6258 case $host in
6259 x86_64-*kfreebsd*-gnu)
6260 LD="${LD-ld} -m elf_i386_fbsd"
6261 ;;
6262 x86_64-*linux*)
6263 LD="${LD-ld} -m elf_i386"
6264 ;;
6265 ppc64-*linux*|powerpc64-*linux*)
6266 LD="${LD-ld} -m elf32ppclinux"
6267 ;;
6268 s390x-*linux*)
6269 LD="${LD-ld} -m elf_s390"
6270 ;;
6271 sparc64-*linux*)
6272 LD="${LD-ld} -m elf32_sparc"
6273 ;;
6274 esac
6275 ;;
6276 *64-bit*)
6277 case $host in
6278 x86_64-*kfreebsd*-gnu)
6279 LD="${LD-ld} -m elf_x86_64_fbsd"
6280 ;;
6281 x86_64-*linux*)
6282 LD="${LD-ld} -m elf_x86_64"
6283 ;;
6284 ppc*-*linux*|powerpc*-*linux*)
6285 LD="${LD-ld} -m elf64ppc"
6286 ;;
6287 s390*-*linux*|s390*-*tpf*)
6288 LD="${LD-ld} -m elf64_s390"
6289 ;;
6290 sparc*-*linux*)
6291 LD="${LD-ld} -m elf64_sparc"
6292 ;;
6293 esac
6294 ;;
6295 esac
6296 fi
6297 rm -rf conftest*
6298 ;;
6299
6300 *-*-sco3.2v5*)
6301 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6302 SAVE_CFLAGS="$CFLAGS"
6303 CFLAGS="$CFLAGS -belf"
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6305 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6306 if ${lt_cv_cc_needs_belf+:} false; then :
6307 $as_echo_n "(cached) " >&6
6308 else
6309 ac_ext=c
6310 ac_cpp='$CPP $CPPFLAGS'
6311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6314
6315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6316 /* end confdefs.h. */
6317
6318 int
6319 main ()
6320 {
6321
6322 ;
6323 return 0;
6324 }
6325 _ACEOF
6326 if ac_fn_c_try_link "$LINENO"; then :
6327 lt_cv_cc_needs_belf=yes
6328 else
6329 lt_cv_cc_needs_belf=no
6330 fi
6331 rm -f core conftest.err conftest.$ac_objext \
6332 conftest$ac_exeext conftest.$ac_ext
6333 ac_ext=c
6334 ac_cpp='$CPP $CPPFLAGS'
6335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6338
6339 fi
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6341 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6342 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6343 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6344 CFLAGS="$SAVE_CFLAGS"
6345 fi
6346 ;;
6347 *-*solaris*)
6348 # Find out which ABI we are using.
6349 echo 'int i;' > conftest.$ac_ext
6350 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6351 (eval $ac_compile) 2>&5
6352 ac_status=$?
6353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6354 test $ac_status = 0; }; then
6355 case `/usr/bin/file conftest.o` in
6356 *64-bit*)
6357 case $lt_cv_prog_gnu_ld in
6358 yes*)
6359 case $host in
6360 i?86-*-solaris*)
6361 LD="${LD-ld} -m elf_x86_64"
6362 ;;
6363 sparc*-*-solaris*)
6364 LD="${LD-ld} -m elf64_sparc"
6365 ;;
6366 esac
6367 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6368 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6369 LD="${LD-ld}_sol2"
6370 fi
6371 ;;
6372 *)
6373 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6374 LD="${LD-ld} -64"
6375 fi
6376 ;;
6377 esac
6378 ;;
6379 esac
6380 fi
6381 rm -rf conftest*
6382 ;;
6383 esac
6384
6385 need_locks="$enable_libtool_lock"
6386
6387 if test -n "$ac_tool_prefix"; then
6388 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6389 set dummy ${ac_tool_prefix}mt; ac_word=$2
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6391 $as_echo_n "checking for $ac_word... " >&6; }
6392 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6393 $as_echo_n "(cached) " >&6
6394 else
6395 if test -n "$MANIFEST_TOOL"; then
6396 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6397 else
6398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6399 for as_dir in $PATH
6400 do
6401 IFS=$as_save_IFS
6402 test -z "$as_dir" && as_dir=.
6403 for ac_exec_ext in '' $ac_executable_extensions; do
6404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6405 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6407 break 2
6408 fi
6409 done
6410 done
6411 IFS=$as_save_IFS
6412
6413 fi
6414 fi
6415 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6416 if test -n "$MANIFEST_TOOL"; then
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6418 $as_echo "$MANIFEST_TOOL" >&6; }
6419 else
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6421 $as_echo "no" >&6; }
6422 fi
6423
6424
6425 fi
6426 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6427 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6428 # Extract the first word of "mt", so it can be a program name with args.
6429 set dummy mt; ac_word=$2
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6431 $as_echo_n "checking for $ac_word... " >&6; }
6432 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6433 $as_echo_n "(cached) " >&6
6434 else
6435 if test -n "$ac_ct_MANIFEST_TOOL"; then
6436 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6437 else
6438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6439 for as_dir in $PATH
6440 do
6441 IFS=$as_save_IFS
6442 test -z "$as_dir" && as_dir=.
6443 for ac_exec_ext in '' $ac_executable_extensions; do
6444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6445 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6447 break 2
6448 fi
6449 done
6450 done
6451 IFS=$as_save_IFS
6452
6453 fi
6454 fi
6455 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6456 if test -n "$ac_ct_MANIFEST_TOOL"; then
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6458 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6459 else
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6461 $as_echo "no" >&6; }
6462 fi
6463
6464 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6465 MANIFEST_TOOL=":"
6466 else
6467 case $cross_compiling:$ac_tool_warned in
6468 yes:)
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6470 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6471 ac_tool_warned=yes ;;
6472 esac
6473 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6474 fi
6475 else
6476 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6477 fi
6478
6479 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6481 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6482 if ${lt_cv_path_mainfest_tool+:} false; then :
6483 $as_echo_n "(cached) " >&6
6484 else
6485 lt_cv_path_mainfest_tool=no
6486 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6487 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6488 cat conftest.err >&5
6489 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6490 lt_cv_path_mainfest_tool=yes
6491 fi
6492 rm -f conftest*
6493 fi
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6495 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6496 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6497 MANIFEST_TOOL=:
6498 fi
6499
6500
6501
6502
6503
6504
6505 case $host_os in
6506 rhapsody* | darwin*)
6507 if test -n "$ac_tool_prefix"; then
6508 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6509 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6511 $as_echo_n "checking for $ac_word... " >&6; }
6512 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6513 $as_echo_n "(cached) " >&6
6514 else
6515 if test -n "$DSYMUTIL"; then
6516 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6517 else
6518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6519 for as_dir in $PATH
6520 do
6521 IFS=$as_save_IFS
6522 test -z "$as_dir" && as_dir=.
6523 for ac_exec_ext in '' $ac_executable_extensions; do
6524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6525 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6527 break 2
6528 fi
6529 done
6530 done
6531 IFS=$as_save_IFS
6532
6533 fi
6534 fi
6535 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6536 if test -n "$DSYMUTIL"; then
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6538 $as_echo "$DSYMUTIL" >&6; }
6539 else
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6541 $as_echo "no" >&6; }
6542 fi
6543
6544
6545 fi
6546 if test -z "$ac_cv_prog_DSYMUTIL"; then
6547 ac_ct_DSYMUTIL=$DSYMUTIL
6548 # Extract the first word of "dsymutil", so it can be a program name with args.
6549 set dummy dsymutil; ac_word=$2
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6551 $as_echo_n "checking for $ac_word... " >&6; }
6552 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6553 $as_echo_n "(cached) " >&6
6554 else
6555 if test -n "$ac_ct_DSYMUTIL"; then
6556 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6557 else
6558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6559 for as_dir in $PATH
6560 do
6561 IFS=$as_save_IFS
6562 test -z "$as_dir" && as_dir=.
6563 for ac_exec_ext in '' $ac_executable_extensions; do
6564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6565 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6567 break 2
6568 fi
6569 done
6570 done
6571 IFS=$as_save_IFS
6572
6573 fi
6574 fi
6575 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6576 if test -n "$ac_ct_DSYMUTIL"; then
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6578 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6579 else
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6581 $as_echo "no" >&6; }
6582 fi
6583
6584 if test "x$ac_ct_DSYMUTIL" = x; then
6585 DSYMUTIL=":"
6586 else
6587 case $cross_compiling:$ac_tool_warned in
6588 yes:)
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6590 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6591 ac_tool_warned=yes ;;
6592 esac
6593 DSYMUTIL=$ac_ct_DSYMUTIL
6594 fi
6595 else
6596 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6597 fi
6598
6599 if test -n "$ac_tool_prefix"; then
6600 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6601 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6603 $as_echo_n "checking for $ac_word... " >&6; }
6604 if ${ac_cv_prog_NMEDIT+:} false; then :
6605 $as_echo_n "(cached) " >&6
6606 else
6607 if test -n "$NMEDIT"; then
6608 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6609 else
6610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6611 for as_dir in $PATH
6612 do
6613 IFS=$as_save_IFS
6614 test -z "$as_dir" && as_dir=.
6615 for ac_exec_ext in '' $ac_executable_extensions; do
6616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6617 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6619 break 2
6620 fi
6621 done
6622 done
6623 IFS=$as_save_IFS
6624
6625 fi
6626 fi
6627 NMEDIT=$ac_cv_prog_NMEDIT
6628 if test -n "$NMEDIT"; then
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6630 $as_echo "$NMEDIT" >&6; }
6631 else
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6633 $as_echo "no" >&6; }
6634 fi
6635
6636
6637 fi
6638 if test -z "$ac_cv_prog_NMEDIT"; then
6639 ac_ct_NMEDIT=$NMEDIT
6640 # Extract the first word of "nmedit", so it can be a program name with args.
6641 set dummy nmedit; ac_word=$2
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6643 $as_echo_n "checking for $ac_word... " >&6; }
6644 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6645 $as_echo_n "(cached) " >&6
6646 else
6647 if test -n "$ac_ct_NMEDIT"; then
6648 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6649 else
6650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6651 for as_dir in $PATH
6652 do
6653 IFS=$as_save_IFS
6654 test -z "$as_dir" && as_dir=.
6655 for ac_exec_ext in '' $ac_executable_extensions; do
6656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6657 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6659 break 2
6660 fi
6661 done
6662 done
6663 IFS=$as_save_IFS
6664
6665 fi
6666 fi
6667 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6668 if test -n "$ac_ct_NMEDIT"; then
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6670 $as_echo "$ac_ct_NMEDIT" >&6; }
6671 else
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6673 $as_echo "no" >&6; }
6674 fi
6675
6676 if test "x$ac_ct_NMEDIT" = x; then
6677 NMEDIT=":"
6678 else
6679 case $cross_compiling:$ac_tool_warned in
6680 yes:)
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6682 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6683 ac_tool_warned=yes ;;
6684 esac
6685 NMEDIT=$ac_ct_NMEDIT
6686 fi
6687 else
6688 NMEDIT="$ac_cv_prog_NMEDIT"
6689 fi
6690
6691 if test -n "$ac_tool_prefix"; then
6692 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6693 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6695 $as_echo_n "checking for $ac_word... " >&6; }
6696 if ${ac_cv_prog_LIPO+:} false; then :
6697 $as_echo_n "(cached) " >&6
6698 else
6699 if test -n "$LIPO"; then
6700 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6701 else
6702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6703 for as_dir in $PATH
6704 do
6705 IFS=$as_save_IFS
6706 test -z "$as_dir" && as_dir=.
6707 for ac_exec_ext in '' $ac_executable_extensions; do
6708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6709 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6711 break 2
6712 fi
6713 done
6714 done
6715 IFS=$as_save_IFS
6716
6717 fi
6718 fi
6719 LIPO=$ac_cv_prog_LIPO
6720 if test -n "$LIPO"; then
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6722 $as_echo "$LIPO" >&6; }
6723 else
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6725 $as_echo "no" >&6; }
6726 fi
6727
6728
6729 fi
6730 if test -z "$ac_cv_prog_LIPO"; then
6731 ac_ct_LIPO=$LIPO
6732 # Extract the first word of "lipo", so it can be a program name with args.
6733 set dummy lipo; ac_word=$2
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6735 $as_echo_n "checking for $ac_word... " >&6; }
6736 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6737 $as_echo_n "(cached) " >&6
6738 else
6739 if test -n "$ac_ct_LIPO"; then
6740 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6741 else
6742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6743 for as_dir in $PATH
6744 do
6745 IFS=$as_save_IFS
6746 test -z "$as_dir" && as_dir=.
6747 for ac_exec_ext in '' $ac_executable_extensions; do
6748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6749 ac_cv_prog_ac_ct_LIPO="lipo"
6750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6751 break 2
6752 fi
6753 done
6754 done
6755 IFS=$as_save_IFS
6756
6757 fi
6758 fi
6759 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6760 if test -n "$ac_ct_LIPO"; then
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6762 $as_echo "$ac_ct_LIPO" >&6; }
6763 else
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6765 $as_echo "no" >&6; }
6766 fi
6767
6768 if test "x$ac_ct_LIPO" = x; then
6769 LIPO=":"
6770 else
6771 case $cross_compiling:$ac_tool_warned in
6772 yes:)
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6774 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6775 ac_tool_warned=yes ;;
6776 esac
6777 LIPO=$ac_ct_LIPO
6778 fi
6779 else
6780 LIPO="$ac_cv_prog_LIPO"
6781 fi
6782
6783 if test -n "$ac_tool_prefix"; then
6784 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6785 set dummy ${ac_tool_prefix}otool; ac_word=$2
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6787 $as_echo_n "checking for $ac_word... " >&6; }
6788 if ${ac_cv_prog_OTOOL+:} false; then :
6789 $as_echo_n "(cached) " >&6
6790 else
6791 if test -n "$OTOOL"; then
6792 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6793 else
6794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6795 for as_dir in $PATH
6796 do
6797 IFS=$as_save_IFS
6798 test -z "$as_dir" && as_dir=.
6799 for ac_exec_ext in '' $ac_executable_extensions; do
6800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6801 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6803 break 2
6804 fi
6805 done
6806 done
6807 IFS=$as_save_IFS
6808
6809 fi
6810 fi
6811 OTOOL=$ac_cv_prog_OTOOL
6812 if test -n "$OTOOL"; then
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6814 $as_echo "$OTOOL" >&6; }
6815 else
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6817 $as_echo "no" >&6; }
6818 fi
6819
6820
6821 fi
6822 if test -z "$ac_cv_prog_OTOOL"; then
6823 ac_ct_OTOOL=$OTOOL
6824 # Extract the first word of "otool", so it can be a program name with args.
6825 set dummy otool; ac_word=$2
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6827 $as_echo_n "checking for $ac_word... " >&6; }
6828 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6829 $as_echo_n "(cached) " >&6
6830 else
6831 if test -n "$ac_ct_OTOOL"; then
6832 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6833 else
6834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6835 for as_dir in $PATH
6836 do
6837 IFS=$as_save_IFS
6838 test -z "$as_dir" && as_dir=.
6839 for ac_exec_ext in '' $ac_executable_extensions; do
6840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6841 ac_cv_prog_ac_ct_OTOOL="otool"
6842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6843 break 2
6844 fi
6845 done
6846 done
6847 IFS=$as_save_IFS
6848
6849 fi
6850 fi
6851 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6852 if test -n "$ac_ct_OTOOL"; then
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6854 $as_echo "$ac_ct_OTOOL" >&6; }
6855 else
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6857 $as_echo "no" >&6; }
6858 fi
6859
6860 if test "x$ac_ct_OTOOL" = x; then
6861 OTOOL=":"
6862 else
6863 case $cross_compiling:$ac_tool_warned in
6864 yes:)
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6866 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6867 ac_tool_warned=yes ;;
6868 esac
6869 OTOOL=$ac_ct_OTOOL
6870 fi
6871 else
6872 OTOOL="$ac_cv_prog_OTOOL"
6873 fi
6874
6875 if test -n "$ac_tool_prefix"; then
6876 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6877 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6879 $as_echo_n "checking for $ac_word... " >&6; }
6880 if ${ac_cv_prog_OTOOL64+:} false; then :
6881 $as_echo_n "(cached) " >&6
6882 else
6883 if test -n "$OTOOL64"; then
6884 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6885 else
6886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6887 for as_dir in $PATH
6888 do
6889 IFS=$as_save_IFS
6890 test -z "$as_dir" && as_dir=.
6891 for ac_exec_ext in '' $ac_executable_extensions; do
6892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6893 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6895 break 2
6896 fi
6897 done
6898 done
6899 IFS=$as_save_IFS
6900
6901 fi
6902 fi
6903 OTOOL64=$ac_cv_prog_OTOOL64
6904 if test -n "$OTOOL64"; then
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6906 $as_echo "$OTOOL64" >&6; }
6907 else
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6909 $as_echo "no" >&6; }
6910 fi
6911
6912
6913 fi
6914 if test -z "$ac_cv_prog_OTOOL64"; then
6915 ac_ct_OTOOL64=$OTOOL64
6916 # Extract the first word of "otool64", so it can be a program name with args.
6917 set dummy otool64; ac_word=$2
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6919 $as_echo_n "checking for $ac_word... " >&6; }
6920 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6921 $as_echo_n "(cached) " >&6
6922 else
6923 if test -n "$ac_ct_OTOOL64"; then
6924 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6925 else
6926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6927 for as_dir in $PATH
6928 do
6929 IFS=$as_save_IFS
6930 test -z "$as_dir" && as_dir=.
6931 for ac_exec_ext in '' $ac_executable_extensions; do
6932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6933 ac_cv_prog_ac_ct_OTOOL64="otool64"
6934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6935 break 2
6936 fi
6937 done
6938 done
6939 IFS=$as_save_IFS
6940
6941 fi
6942 fi
6943 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6944 if test -n "$ac_ct_OTOOL64"; then
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6946 $as_echo "$ac_ct_OTOOL64" >&6; }
6947 else
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6949 $as_echo "no" >&6; }
6950 fi
6951
6952 if test "x$ac_ct_OTOOL64" = x; then
6953 OTOOL64=":"
6954 else
6955 case $cross_compiling:$ac_tool_warned in
6956 yes:)
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6958 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6959 ac_tool_warned=yes ;;
6960 esac
6961 OTOOL64=$ac_ct_OTOOL64
6962 fi
6963 else
6964 OTOOL64="$ac_cv_prog_OTOOL64"
6965 fi
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6994 $as_echo_n "checking for -single_module linker flag... " >&6; }
6995 if ${lt_cv_apple_cc_single_mod+:} false; then :
6996 $as_echo_n "(cached) " >&6
6997 else
6998 lt_cv_apple_cc_single_mod=no
6999 if test -z "${LT_MULTI_MODULE}"; then
7000 # By default we will add the -single_module flag. You can override
7001 # by either setting the environment variable LT_MULTI_MODULE
7002 # non-empty at configure time, or by adding -multi_module to the
7003 # link flags.
7004 rm -rf libconftest.dylib*
7005 echo "int foo(void){return 1;}" > conftest.c
7006 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7007 -dynamiclib -Wl,-single_module conftest.c" >&5
7008 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7009 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7010 _lt_result=$?
7011 # If there is a non-empty error log, and "single_module"
7012 # appears in it, assume the flag caused a linker warning
7013 if test -s conftest.err && $GREP single_module conftest.err; then
7014 cat conftest.err >&5
7015 # Otherwise, if the output was created with a 0 exit code from
7016 # the compiler, it worked.
7017 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7018 lt_cv_apple_cc_single_mod=yes
7019 else
7020 cat conftest.err >&5
7021 fi
7022 rm -rf libconftest.dylib*
7023 rm -f conftest.*
7024 fi
7025 fi
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7027 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7028
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7030 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7031 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7032 $as_echo_n "(cached) " >&6
7033 else
7034 lt_cv_ld_exported_symbols_list=no
7035 save_LDFLAGS=$LDFLAGS
7036 echo "_main" > conftest.sym
7037 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7039 /* end confdefs.h. */
7040
7041 int
7042 main ()
7043 {
7044
7045 ;
7046 return 0;
7047 }
7048 _ACEOF
7049 if ac_fn_c_try_link "$LINENO"; then :
7050 lt_cv_ld_exported_symbols_list=yes
7051 else
7052 lt_cv_ld_exported_symbols_list=no
7053 fi
7054 rm -f core conftest.err conftest.$ac_objext \
7055 conftest$ac_exeext conftest.$ac_ext
7056 LDFLAGS="$save_LDFLAGS"
7057
7058 fi
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7060 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7061
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7063 $as_echo_n "checking for -force_load linker flag... " >&6; }
7064 if ${lt_cv_ld_force_load+:} false; then :
7065 $as_echo_n "(cached) " >&6
7066 else
7067 lt_cv_ld_force_load=no
7068 cat > conftest.c << _LT_EOF
7069 int forced_loaded() { return 2;}
7070 _LT_EOF
7071 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7072 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7073 echo "$AR cru libconftest.a conftest.o" >&5
7074 $AR cru libconftest.a conftest.o 2>&5
7075 echo "$RANLIB libconftest.a" >&5
7076 $RANLIB libconftest.a 2>&5
7077 cat > conftest.c << _LT_EOF
7078 int main() { return 0;}
7079 _LT_EOF
7080 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7081 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7082 _lt_result=$?
7083 if test -s conftest.err && $GREP force_load conftest.err; then
7084 cat conftest.err >&5
7085 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7086 lt_cv_ld_force_load=yes
7087 else
7088 cat conftest.err >&5
7089 fi
7090 rm -f conftest.err libconftest.a conftest conftest.c
7091 rm -rf conftest.dSYM
7092
7093 fi
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7095 $as_echo "$lt_cv_ld_force_load" >&6; }
7096 case $host_os in
7097 rhapsody* | darwin1.[012])
7098 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7099 darwin1.*)
7100 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7101 darwin*) # darwin 5.x on
7102 # if running on 10.5 or later, the deployment target defaults
7103 # to the OS version, if on x86, and 10.4, the deployment
7104 # target defaults to 10.4. Don't you love it?
7105 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7106 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7107 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7108 10.[012]*)
7109 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7110 10.*)
7111 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7112 esac
7113 ;;
7114 esac
7115 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7116 _lt_dar_single_mod='$single_module'
7117 fi
7118 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7119 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7120 else
7121 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7122 fi
7123 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7124 _lt_dsymutil='~$DSYMUTIL $lib || :'
7125 else
7126 _lt_dsymutil=
7127 fi
7128 ;;
7129 esac
7130
7131 ac_ext=c
7132 ac_cpp='$CPP $CPPFLAGS'
7133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7137 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7138 # On Suns, sometimes $CPP names a directory.
7139 if test -n "$CPP" && test -d "$CPP"; then
7140 CPP=
7141 fi
7142 if test -z "$CPP"; then
7143 if ${ac_cv_prog_CPP+:} false; then :
7144 $as_echo_n "(cached) " >&6
7145 else
7146 # Double quotes because CPP needs to be expanded
7147 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7148 do
7149 ac_preproc_ok=false
7150 for ac_c_preproc_warn_flag in '' yes
7151 do
7152 # Use a header file that comes with gcc, so configuring glibc
7153 # with a fresh cross-compiler works.
7154 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7155 # <limits.h> exists even on freestanding compilers.
7156 # On the NeXT, cc -E runs the code through the compiler's parser,
7157 # not just through cpp. "Syntax error" is here to catch this case.
7158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7159 /* end confdefs.h. */
7160 #ifdef __STDC__
7161 # include <limits.h>
7162 #else
7163 # include <assert.h>
7164 #endif
7165 Syntax error
7166 _ACEOF
7167 if ac_fn_c_try_cpp "$LINENO"; then :
7168
7169 else
7170 # Broken: fails on valid input.
7171 continue
7172 fi
7173 rm -f conftest.err conftest.i conftest.$ac_ext
7174
7175 # OK, works on sane cases. Now check whether nonexistent headers
7176 # can be detected and how.
7177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7178 /* end confdefs.h. */
7179 #include <ac_nonexistent.h>
7180 _ACEOF
7181 if ac_fn_c_try_cpp "$LINENO"; then :
7182 # Broken: success on invalid input.
7183 continue
7184 else
7185 # Passes both tests.
7186 ac_preproc_ok=:
7187 break
7188 fi
7189 rm -f conftest.err conftest.i conftest.$ac_ext
7190
7191 done
7192 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7193 rm -f conftest.i conftest.err conftest.$ac_ext
7194 if $ac_preproc_ok; then :
7195 break
7196 fi
7197
7198 done
7199 ac_cv_prog_CPP=$CPP
7200
7201 fi
7202 CPP=$ac_cv_prog_CPP
7203 else
7204 ac_cv_prog_CPP=$CPP
7205 fi
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7207 $as_echo "$CPP" >&6; }
7208 ac_preproc_ok=false
7209 for ac_c_preproc_warn_flag in '' yes
7210 do
7211 # Use a header file that comes with gcc, so configuring glibc
7212 # with a fresh cross-compiler works.
7213 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7214 # <limits.h> exists even on freestanding compilers.
7215 # On the NeXT, cc -E runs the code through the compiler's parser,
7216 # not just through cpp. "Syntax error" is here to catch this case.
7217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7218 /* end confdefs.h. */
7219 #ifdef __STDC__
7220 # include <limits.h>
7221 #else
7222 # include <assert.h>
7223 #endif
7224 Syntax error
7225 _ACEOF
7226 if ac_fn_c_try_cpp "$LINENO"; then :
7227
7228 else
7229 # Broken: fails on valid input.
7230 continue
7231 fi
7232 rm -f conftest.err conftest.i conftest.$ac_ext
7233
7234 # OK, works on sane cases. Now check whether nonexistent headers
7235 # can be detected and how.
7236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7237 /* end confdefs.h. */
7238 #include <ac_nonexistent.h>
7239 _ACEOF
7240 if ac_fn_c_try_cpp "$LINENO"; then :
7241 # Broken: success on invalid input.
7242 continue
7243 else
7244 # Passes both tests.
7245 ac_preproc_ok=:
7246 break
7247 fi
7248 rm -f conftest.err conftest.i conftest.$ac_ext
7249
7250 done
7251 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7252 rm -f conftest.i conftest.err conftest.$ac_ext
7253 if $ac_preproc_ok; then :
7254
7255 else
7256 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7257 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7258 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7259 See \`config.log' for more details" "$LINENO" 5; }
7260 fi
7261
7262 ac_ext=c
7263 ac_cpp='$CPP $CPPFLAGS'
7264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7267
7268
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7270 $as_echo_n "checking for ANSI C header files... " >&6; }
7271 if ${ac_cv_header_stdc+:} false; then :
7272 $as_echo_n "(cached) " >&6
7273 else
7274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7275 /* end confdefs.h. */
7276 #include <stdlib.h>
7277 #include <stdarg.h>
7278 #include <string.h>
7279 #include <float.h>
7280
7281 int
7282 main ()
7283 {
7284
7285 ;
7286 return 0;
7287 }
7288 _ACEOF
7289 if ac_fn_c_try_compile "$LINENO"; then :
7290 ac_cv_header_stdc=yes
7291 else
7292 ac_cv_header_stdc=no
7293 fi
7294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7295
7296 if test $ac_cv_header_stdc = yes; then
7297 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7299 /* end confdefs.h. */
7300 #include <string.h>
7301
7302 _ACEOF
7303 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7304 $EGREP "memchr" >/dev/null 2>&1; then :
7305
7306 else
7307 ac_cv_header_stdc=no
7308 fi
7309 rm -f conftest*
7310
7311 fi
7312
7313 if test $ac_cv_header_stdc = yes; then
7314 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7316 /* end confdefs.h. */
7317 #include <stdlib.h>
7318
7319 _ACEOF
7320 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7321 $EGREP "free" >/dev/null 2>&1; then :
7322
7323 else
7324 ac_cv_header_stdc=no
7325 fi
7326 rm -f conftest*
7327
7328 fi
7329
7330 if test $ac_cv_header_stdc = yes; then
7331 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7332 if test "$cross_compiling" = yes; then :
7333 :
7334 else
7335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7336 /* end confdefs.h. */
7337 #include <ctype.h>
7338 #include <stdlib.h>
7339 #if ((' ' & 0x0FF) == 0x020)
7340 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7341 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7342 #else
7343 # define ISLOWER(c) \
7344 (('a' <= (c) && (c) <= 'i') \
7345 || ('j' <= (c) && (c) <= 'r') \
7346 || ('s' <= (c) && (c) <= 'z'))
7347 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7348 #endif
7349
7350 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7351 int
7352 main ()
7353 {
7354 int i;
7355 for (i = 0; i < 256; i++)
7356 if (XOR (islower (i), ISLOWER (i))
7357 || toupper (i) != TOUPPER (i))
7358 return 2;
7359 return 0;
7360 }
7361 _ACEOF
7362 if ac_fn_c_try_run "$LINENO"; then :
7363
7364 else
7365 ac_cv_header_stdc=no
7366 fi
7367 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7368 conftest.$ac_objext conftest.beam conftest.$ac_ext
7369 fi
7370
7371 fi
7372 fi
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7374 $as_echo "$ac_cv_header_stdc" >&6; }
7375 if test $ac_cv_header_stdc = yes; then
7376
7377 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7378
7379 fi
7380
7381 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7382 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7383 inttypes.h stdint.h unistd.h
7384 do :
7385 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7386 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7387 "
7388 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7389 cat >>confdefs.h <<_ACEOF
7390 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7391 _ACEOF
7392
7393 fi
7394
7395 done
7396
7397
7398 for ac_header in dlfcn.h
7399 do :
7400 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7401 "
7402 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7403 cat >>confdefs.h <<_ACEOF
7404 #define HAVE_DLFCN_H 1
7405 _ACEOF
7406
7407 fi
7408
7409 done
7410
7411
7412
7413
7414
7415 # Set options
7416
7417
7418
7419 enable_dlopen=no
7420
7421
7422 enable_win32_dll=no
7423
7424
7425 # Check whether --enable-shared was given.
7426 if test "${enable_shared+set}" = set; then :
7427 enableval=$enable_shared; p=${PACKAGE-default}
7428 case $enableval in
7429 yes) enable_shared=yes ;;
7430 no) enable_shared=no ;;
7431 *)
7432 enable_shared=no
7433 # Look at the argument we got. We use all the common list separators.
7434 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7435 for pkg in $enableval; do
7436 IFS="$lt_save_ifs"
7437 if test "X$pkg" = "X$p"; then
7438 enable_shared=yes
7439 fi
7440 done
7441 IFS="$lt_save_ifs"
7442 ;;
7443 esac
7444 else
7445 enable_shared=yes
7446 fi
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456 # Check whether --enable-static was given.
7457 if test "${enable_static+set}" = set; then :
7458 enableval=$enable_static; p=${PACKAGE-default}
7459 case $enableval in
7460 yes) enable_static=yes ;;
7461 no) enable_static=no ;;
7462 *)
7463 enable_static=no
7464 # Look at the argument we got. We use all the common list separators.
7465 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7466 for pkg in $enableval; do
7467 IFS="$lt_save_ifs"
7468 if test "X$pkg" = "X$p"; then
7469 enable_static=yes
7470 fi
7471 done
7472 IFS="$lt_save_ifs"
7473 ;;
7474 esac
7475 else
7476 enable_static=yes
7477 fi
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488 # Check whether --with-pic was given.
7489 if test "${with_pic+set}" = set; then :
7490 withval=$with_pic; lt_p=${PACKAGE-default}
7491 case $withval in
7492 yes|no) pic_mode=$withval ;;
7493 *)
7494 pic_mode=default
7495 # Look at the argument we got. We use all the common list separators.
7496 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7497 for lt_pkg in $withval; do
7498 IFS="$lt_save_ifs"
7499 if test "X$lt_pkg" = "X$lt_p"; then
7500 pic_mode=yes
7501 fi
7502 done
7503 IFS="$lt_save_ifs"
7504 ;;
7505 esac
7506 else
7507 pic_mode=default
7508 fi
7509
7510
7511 test -z "$pic_mode" && pic_mode=default
7512
7513
7514
7515
7516
7517
7518
7519 # Check whether --enable-fast-install was given.
7520 if test "${enable_fast_install+set}" = set; then :
7521 enableval=$enable_fast_install; p=${PACKAGE-default}
7522 case $enableval in
7523 yes) enable_fast_install=yes ;;
7524 no) enable_fast_install=no ;;
7525 *)
7526 enable_fast_install=no
7527 # Look at the argument we got. We use all the common list separators.
7528 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7529 for pkg in $enableval; do
7530 IFS="$lt_save_ifs"
7531 if test "X$pkg" = "X$p"; then
7532 enable_fast_install=yes
7533 fi
7534 done
7535 IFS="$lt_save_ifs"
7536 ;;
7537 esac
7538 else
7539 enable_fast_install=yes
7540 fi
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552 # This can be used to rebuild libtool when needed
7553 LIBTOOL_DEPS="$ltmain"
7554
7555 # Always use our own libtool.
7556 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587 test -z "$LN_S" && LN_S="ln -s"
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602 if test -n "${ZSH_VERSION+set}" ; then
7603 setopt NO_GLOB_SUBST
7604 fi
7605
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7607 $as_echo_n "checking for objdir... " >&6; }
7608 if ${lt_cv_objdir+:} false; then :
7609 $as_echo_n "(cached) " >&6
7610 else
7611 rm -f .libs 2>/dev/null
7612 mkdir .libs 2>/dev/null
7613 if test -d .libs; then
7614 lt_cv_objdir=.libs
7615 else
7616 # MS-DOS does not allow filenames that begin with a dot.
7617 lt_cv_objdir=_libs
7618 fi
7619 rmdir .libs 2>/dev/null
7620 fi
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7622 $as_echo "$lt_cv_objdir" >&6; }
7623 objdir=$lt_cv_objdir
7624
7625
7626
7627
7628
7629 cat >>confdefs.h <<_ACEOF
7630 #define LT_OBJDIR "$lt_cv_objdir/"
7631 _ACEOF
7632
7633
7634
7635
7636 case $host_os in
7637 aix3*)
7638 # AIX sometimes has problems with the GCC collect2 program. For some
7639 # reason, if we set the COLLECT_NAMES environment variable, the problems
7640 # vanish in a puff of smoke.
7641 if test "X${COLLECT_NAMES+set}" != Xset; then
7642 COLLECT_NAMES=
7643 export COLLECT_NAMES
7644 fi
7645 ;;
7646 esac
7647
7648 # Global variables:
7649 ofile=libtool
7650 can_build_shared=yes
7651
7652 # All known linkers require a `.a' archive for static linking (except MSVC,
7653 # which needs '.lib').
7654 libext=a
7655
7656 with_gnu_ld="$lt_cv_prog_gnu_ld"
7657
7658 old_CC="$CC"
7659 old_CFLAGS="$CFLAGS"
7660
7661 # Set sane defaults for various variables
7662 test -z "$CC" && CC=cc
7663 test -z "$LTCC" && LTCC=$CC
7664 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7665 test -z "$LD" && LD=ld
7666 test -z "$ac_objext" && ac_objext=o
7667
7668 for cc_temp in $compiler""; do
7669 case $cc_temp in
7670 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7671 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7672 \-*) ;;
7673 *) break;;
7674 esac
7675 done
7676 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7677
7678
7679 # Only perform the check for file, if the check method requires it
7680 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7681 case $deplibs_check_method in
7682 file_magic*)
7683 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7685 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7686 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7687 $as_echo_n "(cached) " >&6
7688 else
7689 case $MAGIC_CMD in
7690 [\\/*] | ?:[\\/]*)
7691 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7692 ;;
7693 *)
7694 lt_save_MAGIC_CMD="$MAGIC_CMD"
7695 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7696 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7697 for ac_dir in $ac_dummy; do
7698 IFS="$lt_save_ifs"
7699 test -z "$ac_dir" && ac_dir=.
7700 if test -f $ac_dir/${ac_tool_prefix}file; then
7701 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7702 if test -n "$file_magic_test_file"; then
7703 case $deplibs_check_method in
7704 "file_magic "*)
7705 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7706 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7707 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7708 $EGREP "$file_magic_regex" > /dev/null; then
7709 :
7710 else
7711 cat <<_LT_EOF 1>&2
7712
7713 *** Warning: the command libtool uses to detect shared libraries,
7714 *** $file_magic_cmd, produces output that libtool cannot recognize.
7715 *** The result is that libtool may fail to recognize shared libraries
7716 *** as such. This will affect the creation of libtool libraries that
7717 *** depend on shared libraries, but programs linked with such libtool
7718 *** libraries will work regardless of this problem. Nevertheless, you
7719 *** may want to report the problem to your system manager and/or to
7720 *** bug-libtool@gnu.org
7721
7722 _LT_EOF
7723 fi ;;
7724 esac
7725 fi
7726 break
7727 fi
7728 done
7729 IFS="$lt_save_ifs"
7730 MAGIC_CMD="$lt_save_MAGIC_CMD"
7731 ;;
7732 esac
7733 fi
7734
7735 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7736 if test -n "$MAGIC_CMD"; then
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7738 $as_echo "$MAGIC_CMD" >&6; }
7739 else
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7741 $as_echo "no" >&6; }
7742 fi
7743
7744
7745
7746
7747
7748 if test -z "$lt_cv_path_MAGIC_CMD"; then
7749 if test -n "$ac_tool_prefix"; then
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7751 $as_echo_n "checking for file... " >&6; }
7752 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7753 $as_echo_n "(cached) " >&6
7754 else
7755 case $MAGIC_CMD in
7756 [\\/*] | ?:[\\/]*)
7757 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7758 ;;
7759 *)
7760 lt_save_MAGIC_CMD="$MAGIC_CMD"
7761 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7762 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7763 for ac_dir in $ac_dummy; do
7764 IFS="$lt_save_ifs"
7765 test -z "$ac_dir" && ac_dir=.
7766 if test -f $ac_dir/file; then
7767 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7768 if test -n "$file_magic_test_file"; then
7769 case $deplibs_check_method in
7770 "file_magic "*)
7771 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7772 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7773 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7774 $EGREP "$file_magic_regex" > /dev/null; then
7775 :
7776 else
7777 cat <<_LT_EOF 1>&2
7778
7779 *** Warning: the command libtool uses to detect shared libraries,
7780 *** $file_magic_cmd, produces output that libtool cannot recognize.
7781 *** The result is that libtool may fail to recognize shared libraries
7782 *** as such. This will affect the creation of libtool libraries that
7783 *** depend on shared libraries, but programs linked with such libtool
7784 *** libraries will work regardless of this problem. Nevertheless, you
7785 *** may want to report the problem to your system manager and/or to
7786 *** bug-libtool@gnu.org
7787
7788 _LT_EOF
7789 fi ;;
7790 esac
7791 fi
7792 break
7793 fi
7794 done
7795 IFS="$lt_save_ifs"
7796 MAGIC_CMD="$lt_save_MAGIC_CMD"
7797 ;;
7798 esac
7799 fi
7800
7801 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7802 if test -n "$MAGIC_CMD"; then
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7804 $as_echo "$MAGIC_CMD" >&6; }
7805 else
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7807 $as_echo "no" >&6; }
7808 fi
7809
7810
7811 else
7812 MAGIC_CMD=:
7813 fi
7814 fi
7815
7816 fi
7817 ;;
7818 esac
7819
7820 # Use C for the default configuration in the libtool script
7821
7822 lt_save_CC="$CC"
7823 ac_ext=c
7824 ac_cpp='$CPP $CPPFLAGS'
7825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7828
7829
7830 # Source file extension for C test sources.
7831 ac_ext=c
7832
7833 # Object file extension for compiled C test sources.
7834 objext=o
7835 objext=$objext
7836
7837 # Code to be used in simple compile tests
7838 lt_simple_compile_test_code="int some_variable = 0;"
7839
7840 # Code to be used in simple link tests
7841 lt_simple_link_test_code='int main(){return(0);}'
7842
7843
7844
7845
7846
7847
7848
7849 # If no C compiler was specified, use CC.
7850 LTCC=${LTCC-"$CC"}
7851
7852 # If no C compiler flags were specified, use CFLAGS.
7853 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7854
7855 # Allow CC to be a program name with arguments.
7856 compiler=$CC
7857
7858 # Save the default compiler, since it gets overwritten when the other
7859 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7860 compiler_DEFAULT=$CC
7861
7862 # save warnings/boilerplate of simple test code
7863 ac_outfile=conftest.$ac_objext
7864 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7865 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7866 _lt_compiler_boilerplate=`cat conftest.err`
7867 $RM conftest*
7868
7869 ac_outfile=conftest.$ac_objext
7870 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7871 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7872 _lt_linker_boilerplate=`cat conftest.err`
7873 $RM -r conftest*
7874
7875
7876 if test -n "$compiler"; then
7877
7878 lt_prog_compiler_no_builtin_flag=
7879
7880 if test "$GCC" = yes; then
7881 case $cc_basename in
7882 nvcc*)
7883 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7884 *)
7885 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7886 esac
7887
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7889 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7890 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7891 $as_echo_n "(cached) " >&6
7892 else
7893 lt_cv_prog_compiler_rtti_exceptions=no
7894 ac_outfile=conftest.$ac_objext
7895 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7896 lt_compiler_flag="-fno-rtti -fno-exceptions"
7897 # Insert the option either (1) after the last *FLAGS variable, or
7898 # (2) before a word containing "conftest.", or (3) at the end.
7899 # Note that $ac_compile itself does not contain backslashes and begins
7900 # with a dollar sign (not a hyphen), so the echo should work correctly.
7901 # The option is referenced via a variable to avoid confusing sed.
7902 lt_compile=`echo "$ac_compile" | $SED \
7903 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7904 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7905 -e 's:$: $lt_compiler_flag:'`
7906 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7907 (eval "$lt_compile" 2>conftest.err)
7908 ac_status=$?
7909 cat conftest.err >&5
7910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7911 if (exit $ac_status) && test -s "$ac_outfile"; then
7912 # The compiler can only warn and ignore the option if not recognized
7913 # So say no if there are warnings other than the usual output.
7914 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7915 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7916 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7917 lt_cv_prog_compiler_rtti_exceptions=yes
7918 fi
7919 fi
7920 $RM conftest*
7921
7922 fi
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7924 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7925
7926 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7927 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7928 else
7929 :
7930 fi
7931
7932 fi
7933
7934
7935
7936
7937
7938
7939 lt_prog_compiler_wl=
7940 lt_prog_compiler_pic=
7941 lt_prog_compiler_static=
7942
7943
7944 if test "$GCC" = yes; then
7945 lt_prog_compiler_wl='-Wl,'
7946 lt_prog_compiler_static='-static'
7947
7948 case $host_os in
7949 aix*)
7950 # All AIX code is PIC.
7951 if test "$host_cpu" = ia64; then
7952 # AIX 5 now supports IA64 processor
7953 lt_prog_compiler_static='-Bstatic'
7954 fi
7955 ;;
7956
7957 amigaos*)
7958 case $host_cpu in
7959 powerpc)
7960 # see comment about AmigaOS4 .so support
7961 lt_prog_compiler_pic='-fPIC'
7962 ;;
7963 m68k)
7964 # FIXME: we need at least 68020 code to build shared libraries, but
7965 # adding the `-m68020' flag to GCC prevents building anything better,
7966 # like `-m68040'.
7967 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7968 ;;
7969 esac
7970 ;;
7971
7972 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7973 # PIC is the default for these OSes.
7974 ;;
7975
7976 mingw* | cygwin* | pw32* | os2* | cegcc*)
7977 # This hack is so that the source file can tell whether it is being
7978 # built for inclusion in a dll (and should export symbols for example).
7979 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7980 # (--disable-auto-import) libraries
7981 lt_prog_compiler_pic='-DDLL_EXPORT'
7982 ;;
7983
7984 darwin* | rhapsody*)
7985 # PIC is the default on this platform
7986 # Common symbols not allowed in MH_DYLIB files
7987 lt_prog_compiler_pic='-fno-common'
7988 ;;
7989
7990 haiku*)
7991 # PIC is the default for Haiku.
7992 # The "-static" flag exists, but is broken.
7993 lt_prog_compiler_static=
7994 ;;
7995
7996 hpux*)
7997 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7998 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7999 # sets the default TLS model and affects inlining.
8000 case $host_cpu in
8001 hppa*64*)
8002 # +Z the default
8003 ;;
8004 *)
8005 lt_prog_compiler_pic='-fPIC'
8006 ;;
8007 esac
8008 ;;
8009
8010 interix[3-9]*)
8011 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8012 # Instead, we relocate shared libraries at runtime.
8013 ;;
8014
8015 msdosdjgpp*)
8016 # Just because we use GCC doesn't mean we suddenly get shared libraries
8017 # on systems that don't support them.
8018 lt_prog_compiler_can_build_shared=no
8019 enable_shared=no
8020 ;;
8021
8022 *nto* | *qnx*)
8023 # QNX uses GNU C++, but need to define -shared option too, otherwise
8024 # it will coredump.
8025 lt_prog_compiler_pic='-fPIC -shared'
8026 ;;
8027
8028 sysv4*MP*)
8029 if test -d /usr/nec; then
8030 lt_prog_compiler_pic=-Kconform_pic
8031 fi
8032 ;;
8033
8034 *)
8035 lt_prog_compiler_pic='-fPIC'
8036 ;;
8037 esac
8038
8039 case $cc_basename in
8040 nvcc*) # Cuda Compiler Driver 2.2
8041 lt_prog_compiler_wl='-Xlinker '
8042 if test -n "$lt_prog_compiler_pic"; then
8043 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8044 fi
8045 ;;
8046 esac
8047 else
8048 # PORTME Check for flag to pass linker flags through the system compiler.
8049 case $host_os in
8050 aix*)
8051 lt_prog_compiler_wl='-Wl,'
8052 if test "$host_cpu" = ia64; then
8053 # AIX 5 now supports IA64 processor
8054 lt_prog_compiler_static='-Bstatic'
8055 else
8056 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8057 fi
8058 ;;
8059
8060 mingw* | cygwin* | pw32* | os2* | cegcc*)
8061 # This hack is so that the source file can tell whether it is being
8062 # built for inclusion in a dll (and should export symbols for example).
8063 lt_prog_compiler_pic='-DDLL_EXPORT'
8064 ;;
8065
8066 hpux9* | hpux10* | hpux11*)
8067 lt_prog_compiler_wl='-Wl,'
8068 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8069 # not for PA HP-UX.
8070 case $host_cpu in
8071 hppa*64*|ia64*)
8072 # +Z the default
8073 ;;
8074 *)
8075 lt_prog_compiler_pic='+Z'
8076 ;;
8077 esac
8078 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8079 lt_prog_compiler_static='${wl}-a ${wl}archive'
8080 ;;
8081
8082 irix5* | irix6* | nonstopux*)
8083 lt_prog_compiler_wl='-Wl,'
8084 # PIC (with -KPIC) is the default.
8085 lt_prog_compiler_static='-non_shared'
8086 ;;
8087
8088 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8089 case $cc_basename in
8090 # old Intel for x86_64 which still supported -KPIC.
8091 ecc*)
8092 lt_prog_compiler_wl='-Wl,'
8093 lt_prog_compiler_pic='-KPIC'
8094 lt_prog_compiler_static='-static'
8095 ;;
8096 # icc used to be incompatible with GCC.
8097 # ICC 10 doesn't accept -KPIC any more.
8098 icc* | ifort*)
8099 lt_prog_compiler_wl='-Wl,'
8100 lt_prog_compiler_pic='-fPIC'
8101 lt_prog_compiler_static='-static'
8102 ;;
8103 # Lahey Fortran 8.1.
8104 lf95*)
8105 lt_prog_compiler_wl='-Wl,'
8106 lt_prog_compiler_pic='--shared'
8107 lt_prog_compiler_static='--static'
8108 ;;
8109 nagfor*)
8110 # NAG Fortran compiler
8111 lt_prog_compiler_wl='-Wl,-Wl,,'
8112 lt_prog_compiler_pic='-PIC'
8113 lt_prog_compiler_static='-Bstatic'
8114 ;;
8115 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8116 # Portland Group compilers (*not* the Pentium gcc compiler,
8117 # which looks to be a dead project)
8118 lt_prog_compiler_wl='-Wl,'
8119 lt_prog_compiler_pic='-fpic'
8120 lt_prog_compiler_static='-Bstatic'
8121 ;;
8122 ccc*)
8123 lt_prog_compiler_wl='-Wl,'
8124 # All Alpha code is PIC.
8125 lt_prog_compiler_static='-non_shared'
8126 ;;
8127 xl* | bgxl* | bgf* | mpixl*)
8128 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8129 lt_prog_compiler_wl='-Wl,'
8130 lt_prog_compiler_pic='-qpic'
8131 lt_prog_compiler_static='-qstaticlink'
8132 ;;
8133 *)
8134 case `$CC -V 2>&1 | sed 5q` in
8135 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8136 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8137 lt_prog_compiler_pic='-KPIC'
8138 lt_prog_compiler_static='-Bstatic'
8139 lt_prog_compiler_wl=''
8140 ;;
8141 *Sun\ F* | *Sun*Fortran*)
8142 lt_prog_compiler_pic='-KPIC'
8143 lt_prog_compiler_static='-Bstatic'
8144 lt_prog_compiler_wl='-Qoption ld '
8145 ;;
8146 *Sun\ C*)
8147 # Sun C 5.9
8148 lt_prog_compiler_pic='-KPIC'
8149 lt_prog_compiler_static='-Bstatic'
8150 lt_prog_compiler_wl='-Wl,'
8151 ;;
8152 *Intel*\ [CF]*Compiler*)
8153 lt_prog_compiler_wl='-Wl,'
8154 lt_prog_compiler_pic='-fPIC'
8155 lt_prog_compiler_static='-static'
8156 ;;
8157 *Portland\ Group*)
8158 lt_prog_compiler_wl='-Wl,'
8159 lt_prog_compiler_pic='-fpic'
8160 lt_prog_compiler_static='-Bstatic'
8161 ;;
8162 esac
8163 ;;
8164 esac
8165 ;;
8166
8167 newsos6)
8168 lt_prog_compiler_pic='-KPIC'
8169 lt_prog_compiler_static='-Bstatic'
8170 ;;
8171
8172 *nto* | *qnx*)
8173 # QNX uses GNU C++, but need to define -shared option too, otherwise
8174 # it will coredump.
8175 lt_prog_compiler_pic='-fPIC -shared'
8176 ;;
8177
8178 osf3* | osf4* | osf5*)
8179 lt_prog_compiler_wl='-Wl,'
8180 # All OSF/1 code is PIC.
8181 lt_prog_compiler_static='-non_shared'
8182 ;;
8183
8184 rdos*)
8185 lt_prog_compiler_static='-non_shared'
8186 ;;
8187
8188 solaris*)
8189 lt_prog_compiler_pic='-KPIC'
8190 lt_prog_compiler_static='-Bstatic'
8191 case $cc_basename in
8192 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8193 lt_prog_compiler_wl='-Qoption ld ';;
8194 *)
8195 lt_prog_compiler_wl='-Wl,';;
8196 esac
8197 ;;
8198
8199 sunos4*)
8200 lt_prog_compiler_wl='-Qoption ld '
8201 lt_prog_compiler_pic='-PIC'
8202 lt_prog_compiler_static='-Bstatic'
8203 ;;
8204
8205 sysv4 | sysv4.2uw2* | sysv4.3*)
8206 lt_prog_compiler_wl='-Wl,'
8207 lt_prog_compiler_pic='-KPIC'
8208 lt_prog_compiler_static='-Bstatic'
8209 ;;
8210
8211 sysv4*MP*)
8212 if test -d /usr/nec ;then
8213 lt_prog_compiler_pic='-Kconform_pic'
8214 lt_prog_compiler_static='-Bstatic'
8215 fi
8216 ;;
8217
8218 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8219 lt_prog_compiler_wl='-Wl,'
8220 lt_prog_compiler_pic='-KPIC'
8221 lt_prog_compiler_static='-Bstatic'
8222 ;;
8223
8224 unicos*)
8225 lt_prog_compiler_wl='-Wl,'
8226 lt_prog_compiler_can_build_shared=no
8227 ;;
8228
8229 uts4*)
8230 lt_prog_compiler_pic='-pic'
8231 lt_prog_compiler_static='-Bstatic'
8232 ;;
8233
8234 *)
8235 lt_prog_compiler_can_build_shared=no
8236 ;;
8237 esac
8238 fi
8239
8240 case $host_os in
8241 # For platforms which do not support PIC, -DPIC is meaningless:
8242 *djgpp*)
8243 lt_prog_compiler_pic=
8244 ;;
8245 *)
8246 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8247 ;;
8248 esac
8249
8250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8251 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8252 if ${lt_cv_prog_compiler_pic+:} false; then :
8253 $as_echo_n "(cached) " >&6
8254 else
8255 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8256 fi
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8258 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8259 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8260
8261 #
8262 # Check to make sure the PIC flag actually works.
8263 #
8264 if test -n "$lt_prog_compiler_pic"; then
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8266 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8267 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8268 $as_echo_n "(cached) " >&6
8269 else
8270 lt_cv_prog_compiler_pic_works=no
8271 ac_outfile=conftest.$ac_objext
8272 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8273 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8274 # Insert the option either (1) after the last *FLAGS variable, or
8275 # (2) before a word containing "conftest.", or (3) at the end.
8276 # Note that $ac_compile itself does not contain backslashes and begins
8277 # with a dollar sign (not a hyphen), so the echo should work correctly.
8278 # The option is referenced via a variable to avoid confusing sed.
8279 lt_compile=`echo "$ac_compile" | $SED \
8280 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8281 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8282 -e 's:$: $lt_compiler_flag:'`
8283 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8284 (eval "$lt_compile" 2>conftest.err)
8285 ac_status=$?
8286 cat conftest.err >&5
8287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288 if (exit $ac_status) && test -s "$ac_outfile"; then
8289 # The compiler can only warn and ignore the option if not recognized
8290 # So say no if there are warnings other than the usual output.
8291 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8292 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8293 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8294 lt_cv_prog_compiler_pic_works=yes
8295 fi
8296 fi
8297 $RM conftest*
8298
8299 fi
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8301 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8302
8303 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8304 case $lt_prog_compiler_pic in
8305 "" | " "*) ;;
8306 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8307 esac
8308 else
8309 lt_prog_compiler_pic=
8310 lt_prog_compiler_can_build_shared=no
8311 fi
8312
8313 fi
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325 #
8326 # Check to make sure the static flag actually works.
8327 #
8328 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8330 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8331 if ${lt_cv_prog_compiler_static_works+:} false; then :
8332 $as_echo_n "(cached) " >&6
8333 else
8334 lt_cv_prog_compiler_static_works=no
8335 save_LDFLAGS="$LDFLAGS"
8336 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8337 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8338 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8339 # The linker can only warn and ignore the option if not recognized
8340 # So say no if there are warnings
8341 if test -s conftest.err; then
8342 # Append any errors to the config.log.
8343 cat conftest.err 1>&5
8344 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8345 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8346 if diff conftest.exp conftest.er2 >/dev/null; then
8347 lt_cv_prog_compiler_static_works=yes
8348 fi
8349 else
8350 lt_cv_prog_compiler_static_works=yes
8351 fi
8352 fi
8353 $RM -r conftest*
8354 LDFLAGS="$save_LDFLAGS"
8355
8356 fi
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8358 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8359
8360 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8361 :
8362 else
8363 lt_prog_compiler_static=
8364 fi
8365
8366
8367
8368
8369
8370
8371
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8373 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8374 if ${lt_cv_prog_compiler_c_o+:} false; then :
8375 $as_echo_n "(cached) " >&6
8376 else
8377 lt_cv_prog_compiler_c_o=no
8378 $RM -r conftest 2>/dev/null
8379 mkdir conftest
8380 cd conftest
8381 mkdir out
8382 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8383
8384 lt_compiler_flag="-o out/conftest2.$ac_objext"
8385 # Insert the option either (1) after the last *FLAGS variable, or
8386 # (2) before a word containing "conftest.", or (3) at the end.
8387 # Note that $ac_compile itself does not contain backslashes and begins
8388 # with a dollar sign (not a hyphen), so the echo should work correctly.
8389 lt_compile=`echo "$ac_compile" | $SED \
8390 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8391 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8392 -e 's:$: $lt_compiler_flag:'`
8393 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8394 (eval "$lt_compile" 2>out/conftest.err)
8395 ac_status=$?
8396 cat out/conftest.err >&5
8397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8398 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8399 then
8400 # The compiler can only warn and ignore the option if not recognized
8401 # So say no if there are warnings
8402 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8403 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8404 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8405 lt_cv_prog_compiler_c_o=yes
8406 fi
8407 fi
8408 chmod u+w . 2>&5
8409 $RM conftest*
8410 # SGI C++ compiler will create directory out/ii_files/ for
8411 # template instantiation
8412 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8413 $RM out/* && rmdir out
8414 cd ..
8415 $RM -r conftest
8416 $RM conftest*
8417
8418 fi
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8420 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8421
8422
8423
8424
8425
8426
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8428 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8429 if ${lt_cv_prog_compiler_c_o+:} false; then :
8430 $as_echo_n "(cached) " >&6
8431 else
8432 lt_cv_prog_compiler_c_o=no
8433 $RM -r conftest 2>/dev/null
8434 mkdir conftest
8435 cd conftest
8436 mkdir out
8437 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8438
8439 lt_compiler_flag="-o out/conftest2.$ac_objext"
8440 # Insert the option either (1) after the last *FLAGS variable, or
8441 # (2) before a word containing "conftest.", or (3) at the end.
8442 # Note that $ac_compile itself does not contain backslashes and begins
8443 # with a dollar sign (not a hyphen), so the echo should work correctly.
8444 lt_compile=`echo "$ac_compile" | $SED \
8445 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8446 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8447 -e 's:$: $lt_compiler_flag:'`
8448 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8449 (eval "$lt_compile" 2>out/conftest.err)
8450 ac_status=$?
8451 cat out/conftest.err >&5
8452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8453 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8454 then
8455 # The compiler can only warn and ignore the option if not recognized
8456 # So say no if there are warnings
8457 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8458 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8459 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8460 lt_cv_prog_compiler_c_o=yes
8461 fi
8462 fi
8463 chmod u+w . 2>&5
8464 $RM conftest*
8465 # SGI C++ compiler will create directory out/ii_files/ for
8466 # template instantiation
8467 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8468 $RM out/* && rmdir out
8469 cd ..
8470 $RM -r conftest
8471 $RM conftest*
8472
8473 fi
8474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8475 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8476
8477
8478
8479
8480 hard_links="nottested"
8481 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8482 # do not overwrite the value of need_locks provided by the user
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8484 $as_echo_n "checking if we can lock with hard links... " >&6; }
8485 hard_links=yes
8486 $RM conftest*
8487 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8488 touch conftest.a
8489 ln conftest.a conftest.b 2>&5 || hard_links=no
8490 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8492 $as_echo "$hard_links" >&6; }
8493 if test "$hard_links" = no; then
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8495 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8496 need_locks=warn
8497 fi
8498 else
8499 need_locks=no
8500 fi
8501
8502
8503
8504
8505
8506
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8508 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8509
8510 runpath_var=
8511 allow_undefined_flag=
8512 always_export_symbols=no
8513 archive_cmds=
8514 archive_expsym_cmds=
8515 compiler_needs_object=no
8516 enable_shared_with_static_runtimes=no
8517 export_dynamic_flag_spec=
8518 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8519 hardcode_automatic=no
8520 hardcode_direct=no
8521 hardcode_direct_absolute=no
8522 hardcode_libdir_flag_spec=
8523 hardcode_libdir_separator=
8524 hardcode_minus_L=no
8525 hardcode_shlibpath_var=unsupported
8526 inherit_rpath=no
8527 link_all_deplibs=unknown
8528 module_cmds=
8529 module_expsym_cmds=
8530 old_archive_from_new_cmds=
8531 old_archive_from_expsyms_cmds=
8532 thread_safe_flag_spec=
8533 whole_archive_flag_spec=
8534 # include_expsyms should be a list of space-separated symbols to be *always*
8535 # included in the symbol list
8536 include_expsyms=
8537 # exclude_expsyms can be an extended regexp of symbols to exclude
8538 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8539 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8540 # as well as any symbol that contains `d'.
8541 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8542 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8543 # platforms (ab)use it in PIC code, but their linkers get confused if
8544 # the symbol is explicitly referenced. Since portable code cannot
8545 # rely on this symbol name, it's probably fine to never include it in
8546 # preloaded symbol tables.
8547 # Exclude shared library initialization/finalization symbols.
8548 extract_expsyms_cmds=
8549
8550 case $host_os in
8551 cygwin* | mingw* | pw32* | cegcc*)
8552 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8553 # When not using gcc, we currently assume that we are using
8554 # Microsoft Visual C++.
8555 if test "$GCC" != yes; then
8556 with_gnu_ld=no
8557 fi
8558 ;;
8559 interix*)
8560 # we just hope/assume this is gcc and not c89 (= MSVC++)
8561 with_gnu_ld=yes
8562 ;;
8563 openbsd*)
8564 with_gnu_ld=no
8565 ;;
8566 esac
8567
8568 ld_shlibs=yes
8569
8570 # On some targets, GNU ld is compatible enough with the native linker
8571 # that we're better off using the native interface for both.
8572 lt_use_gnu_ld_interface=no
8573 if test "$with_gnu_ld" = yes; then
8574 case $host_os in
8575 aix*)
8576 # The AIX port of GNU ld has always aspired to compatibility
8577 # with the native linker. However, as the warning in the GNU ld
8578 # block says, versions before 2.19.5* couldn't really create working
8579 # shared libraries, regardless of the interface used.
8580 case `$LD -v 2>&1` in
8581 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8582 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8583 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8584 *)
8585 lt_use_gnu_ld_interface=yes
8586 ;;
8587 esac
8588 ;;
8589 *)
8590 lt_use_gnu_ld_interface=yes
8591 ;;
8592 esac
8593 fi
8594
8595 if test "$lt_use_gnu_ld_interface" = yes; then
8596 # If archive_cmds runs LD, not CC, wlarc should be empty
8597 wlarc='${wl}'
8598
8599 # Set some defaults for GNU ld with shared library support. These
8600 # are reset later if shared libraries are not supported. Putting them
8601 # here allows them to be overridden if necessary.
8602 runpath_var=LD_RUN_PATH
8603 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8604 export_dynamic_flag_spec='${wl}--export-dynamic'
8605 # ancient GNU ld didn't support --whole-archive et. al.
8606 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8607 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8608 else
8609 whole_archive_flag_spec=
8610 fi
8611 supports_anon_versioning=no
8612 case `$LD -v 2>&1` in
8613 *GNU\ gold*) supports_anon_versioning=yes ;;
8614 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8615 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8616 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8617 *\ 2.11.*) ;; # other 2.11 versions
8618 *) supports_anon_versioning=yes ;;
8619 esac
8620
8621 # See if GNU ld supports shared libraries.
8622 case $host_os in
8623 aix[3-9]*)
8624 # On AIX/PPC, the GNU linker is very broken
8625 if test "$host_cpu" != ia64; then
8626 ld_shlibs=no
8627 cat <<_LT_EOF 1>&2
8628
8629 *** Warning: the GNU linker, at least up to release 2.19, is reported
8630 *** to be unable to reliably create shared libraries on AIX.
8631 *** Therefore, libtool is disabling shared libraries support. If you
8632 *** really care for shared libraries, you may want to install binutils
8633 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8634 *** You will then need to restart the configuration process.
8635
8636 _LT_EOF
8637 fi
8638 ;;
8639
8640 amigaos*)
8641 case $host_cpu in
8642 powerpc)
8643 # see comment about AmigaOS4 .so support
8644 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8645 archive_expsym_cmds=''
8646 ;;
8647 m68k)
8648 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)'
8649 hardcode_libdir_flag_spec='-L$libdir'
8650 hardcode_minus_L=yes
8651 ;;
8652 esac
8653 ;;
8654
8655 beos*)
8656 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8657 allow_undefined_flag=unsupported
8658 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
8659 # support --undefined. This deserves some investigation. FIXME
8660 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8661 else
8662 ld_shlibs=no
8663 fi
8664 ;;
8665
8666 cygwin* | mingw* | pw32* | cegcc*)
8667 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8668 # as there is no search path for DLLs.
8669 hardcode_libdir_flag_spec='-L$libdir'
8670 export_dynamic_flag_spec='${wl}--export-all-symbols'
8671 allow_undefined_flag=unsupported
8672 always_export_symbols=no
8673 enable_shared_with_static_runtimes=yes
8674 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'
8675 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8676
8677 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8678 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8679 # If the export-symbols file already is a .def file (1st line
8680 # is EXPORTS), use it as is; otherwise, prepend...
8681 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8682 cp $export_symbols $output_objdir/$soname.def;
8683 else
8684 echo EXPORTS > $output_objdir/$soname.def;
8685 cat $export_symbols >> $output_objdir/$soname.def;
8686 fi~
8687 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8688 else
8689 ld_shlibs=no
8690 fi
8691 ;;
8692
8693 haiku*)
8694 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8695 link_all_deplibs=yes
8696 ;;
8697
8698 interix[3-9]*)
8699 hardcode_direct=no
8700 hardcode_shlibpath_var=no
8701 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8702 export_dynamic_flag_spec='${wl}-E'
8703 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8704 # Instead, shared libraries are loaded at an image base (0x10000000 by
8705 # default) and relocated if they conflict, which is a slow very memory
8706 # consuming and fragmenting process. To avoid this, we pick a random,
8707 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8708 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8709 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8710 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'
8711 ;;
8712
8713 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8714 tmp_diet=no
8715 if test "$host_os" = linux-dietlibc; then
8716 case $cc_basename in
8717 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8718 esac
8719 fi
8720 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8721 && test "$tmp_diet" = no
8722 then
8723 tmp_addflag=' $pic_flag'
8724 tmp_sharedflag='-shared'
8725 case $cc_basename,$host_cpu in
8726 pgcc*) # Portland Group C compiler
8727 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'
8728 tmp_addflag=' $pic_flag'
8729 ;;
8730 pgf77* | pgf90* | pgf95* | pgfortran*)
8731 # Portland Group f77 and f90 compilers
8732 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'
8733 tmp_addflag=' $pic_flag -Mnomain' ;;
8734 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8735 tmp_addflag=' -i_dynamic' ;;
8736 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8737 tmp_addflag=' -i_dynamic -nofor_main' ;;
8738 ifc* | ifort*) # Intel Fortran compiler
8739 tmp_addflag=' -nofor_main' ;;
8740 lf95*) # Lahey Fortran 8.1
8741 whole_archive_flag_spec=
8742 tmp_sharedflag='--shared' ;;
8743 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8744 tmp_sharedflag='-qmkshrobj'
8745 tmp_addflag= ;;
8746 nvcc*) # Cuda Compiler Driver 2.2
8747 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'
8748 compiler_needs_object=yes
8749 ;;
8750 esac
8751 case `$CC -V 2>&1 | sed 5q` in
8752 *Sun\ C*) # Sun C 5.9
8753 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'
8754 compiler_needs_object=yes
8755 tmp_sharedflag='-G' ;;
8756 *Sun\ F*) # Sun Fortran 8.3
8757 tmp_sharedflag='-G' ;;
8758 esac
8759 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8760
8761 if test "x$supports_anon_versioning" = xyes; then
8762 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8763 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8764 echo "local: *; };" >> $output_objdir/$libname.ver~
8765 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8766 fi
8767
8768 case $cc_basename in
8769 xlf* | bgf* | bgxlf* | mpixlf*)
8770 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8771 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8772 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8773 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8774 if test "x$supports_anon_versioning" = xyes; then
8775 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8776 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8777 echo "local: *; };" >> $output_objdir/$libname.ver~
8778 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8779 fi
8780 ;;
8781 esac
8782 else
8783 ld_shlibs=no
8784 fi
8785 ;;
8786
8787 netbsd*)
8788 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8789 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8790 wlarc=
8791 else
8792 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8793 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8794 fi
8795 ;;
8796
8797 solaris*)
8798 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8799 ld_shlibs=no
8800 cat <<_LT_EOF 1>&2
8801
8802 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8803 *** create shared libraries on Solaris systems. Therefore, libtool
8804 *** is disabling shared libraries support. We urge you to upgrade GNU
8805 *** binutils to release 2.9.1 or newer. Another option is to modify
8806 *** your PATH or compiler configuration so that the native linker is
8807 *** used, and then restart.
8808
8809 _LT_EOF
8810 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8811 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8812 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8813 else
8814 ld_shlibs=no
8815 fi
8816 ;;
8817
8818 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8819 case `$LD -v 2>&1` in
8820 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8821 ld_shlibs=no
8822 cat <<_LT_EOF 1>&2
8823
8824 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8825 *** reliably create shared libraries on SCO systems. Therefore, libtool
8826 *** is disabling shared libraries support. We urge you to upgrade GNU
8827 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8828 *** your PATH or compiler configuration so that the native linker is
8829 *** used, and then restart.
8830
8831 _LT_EOF
8832 ;;
8833 *)
8834 # For security reasons, it is highly recommended that you always
8835 # use absolute paths for naming shared libraries, and exclude the
8836 # DT_RUNPATH tag from executables and libraries. But doing so
8837 # requires that you compile everything twice, which is a pain.
8838 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8839 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8840 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8841 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8842 else
8843 ld_shlibs=no
8844 fi
8845 ;;
8846 esac
8847 ;;
8848
8849 sunos4*)
8850 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8851 wlarc=
8852 hardcode_direct=yes
8853 hardcode_shlibpath_var=no
8854 ;;
8855
8856 *)
8857 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8858 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8859 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8860 else
8861 ld_shlibs=no
8862 fi
8863 ;;
8864 esac
8865
8866 if test "$ld_shlibs" = no; then
8867 runpath_var=
8868 hardcode_libdir_flag_spec=
8869 export_dynamic_flag_spec=
8870 whole_archive_flag_spec=
8871 fi
8872 else
8873 # PORTME fill in a description of your system's linker (not GNU ld)
8874 case $host_os in
8875 aix3*)
8876 allow_undefined_flag=unsupported
8877 always_export_symbols=yes
8878 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'
8879 # Note: this linker hardcodes the directories in LIBPATH if there
8880 # are no directories specified by -L.
8881 hardcode_minus_L=yes
8882 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8883 # Neither direct hardcoding nor static linking is supported with a
8884 # broken collect2.
8885 hardcode_direct=unsupported
8886 fi
8887 ;;
8888
8889 aix[4-9]*)
8890 if test "$host_cpu" = ia64; then
8891 # On IA64, the linker does run time linking by default, so we don't
8892 # have to do anything special.
8893 aix_use_runtimelinking=no
8894 exp_sym_flag='-Bexport'
8895 no_entry_flag=""
8896 else
8897 # If we're using GNU nm, then we don't want the "-C" option.
8898 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8899 # Also, AIX nm treats weak defined symbols like other global
8900 # defined symbols, whereas GNU nm marks them as "W".
8901 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8902 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'
8903 else
8904 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'
8905 fi
8906 aix_use_runtimelinking=no
8907
8908 # Test if we are trying to use run time linking or normal
8909 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8910 # need to do runtime linking.
8911 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8912 for ld_flag in $LDFLAGS; do
8913 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8914 aix_use_runtimelinking=yes
8915 break
8916 fi
8917 done
8918 ;;
8919 esac
8920
8921 exp_sym_flag='-bexport'
8922 no_entry_flag='-bnoentry'
8923 fi
8924
8925 # When large executables or shared objects are built, AIX ld can
8926 # have problems creating the table of contents. If linking a library
8927 # or program results in "error TOC overflow" add -mminimal-toc to
8928 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8929 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8930
8931 archive_cmds=''
8932 hardcode_direct=yes
8933 hardcode_direct_absolute=yes
8934 hardcode_libdir_separator=':'
8935 link_all_deplibs=yes
8936 file_list_spec='${wl}-f,'
8937
8938 if test "$GCC" = yes; then
8939 case $host_os in aix4.[012]|aix4.[012].*)
8940 # We only want to do this on AIX 4.2 and lower, the check
8941 # below for broken collect2 doesn't work under 4.3+
8942 collect2name=`${CC} -print-prog-name=collect2`
8943 if test -f "$collect2name" &&
8944 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8945 then
8946 # We have reworked collect2
8947 :
8948 else
8949 # We have old collect2
8950 hardcode_direct=unsupported
8951 # It fails to find uninstalled libraries when the uninstalled
8952 # path is not listed in the libpath. Setting hardcode_minus_L
8953 # to unsupported forces relinking
8954 hardcode_minus_L=yes
8955 hardcode_libdir_flag_spec='-L$libdir'
8956 hardcode_libdir_separator=
8957 fi
8958 ;;
8959 esac
8960 shared_flag='-shared'
8961 if test "$aix_use_runtimelinking" = yes; then
8962 shared_flag="$shared_flag "'${wl}-G'
8963 fi
8964 else
8965 # not using gcc
8966 if test "$host_cpu" = ia64; then
8967 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8968 # chokes on -Wl,-G. The following line is correct:
8969 shared_flag='-G'
8970 else
8971 if test "$aix_use_runtimelinking" = yes; then
8972 shared_flag='${wl}-G'
8973 else
8974 shared_flag='${wl}-bM:SRE'
8975 fi
8976 fi
8977 fi
8978
8979 export_dynamic_flag_spec='${wl}-bexpall'
8980 # It seems that -bexpall does not export symbols beginning with
8981 # underscore (_), so it is better to generate a list of symbols to export.
8982 always_export_symbols=yes
8983 if test "$aix_use_runtimelinking" = yes; then
8984 # Warning - without using the other runtime loading flags (-brtl),
8985 # -berok will link without error, but may produce a broken library.
8986 allow_undefined_flag='-berok'
8987 # Determine the default libpath from the value encoded in an
8988 # empty executable.
8989 if test "${lt_cv_aix_libpath+set}" = set; then
8990 aix_libpath=$lt_cv_aix_libpath
8991 else
8992 if ${lt_cv_aix_libpath_+:} false; then :
8993 $as_echo_n "(cached) " >&6
8994 else
8995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8996 /* end confdefs.h. */
8997
8998 int
8999 main ()
9000 {
9001
9002 ;
9003 return 0;
9004 }
9005 _ACEOF
9006 if ac_fn_c_try_link "$LINENO"; then :
9007
9008 lt_aix_libpath_sed='
9009 /Import File Strings/,/^$/ {
9010 /^0/ {
9011 s/^0 *\([^ ]*\) *$/\1/
9012 p
9013 }
9014 }'
9015 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9016 # Check for a 64-bit object if we didn't find anything.
9017 if test -z "$lt_cv_aix_libpath_"; then
9018 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9019 fi
9020 fi
9021 rm -f core conftest.err conftest.$ac_objext \
9022 conftest$ac_exeext conftest.$ac_ext
9023 if test -z "$lt_cv_aix_libpath_"; then
9024 lt_cv_aix_libpath_="/usr/lib:/lib"
9025 fi
9026
9027 fi
9028
9029 aix_libpath=$lt_cv_aix_libpath_
9030 fi
9031
9032 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9033 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"
9034 else
9035 if test "$host_cpu" = ia64; then
9036 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9037 allow_undefined_flag="-z nodefs"
9038 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"
9039 else
9040 # Determine the default libpath from the value encoded in an
9041 # empty executable.
9042 if test "${lt_cv_aix_libpath+set}" = set; then
9043 aix_libpath=$lt_cv_aix_libpath
9044 else
9045 if ${lt_cv_aix_libpath_+:} false; then :
9046 $as_echo_n "(cached) " >&6
9047 else
9048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9049 /* end confdefs.h. */
9050
9051 int
9052 main ()
9053 {
9054
9055 ;
9056 return 0;
9057 }
9058 _ACEOF
9059 if ac_fn_c_try_link "$LINENO"; then :
9060
9061 lt_aix_libpath_sed='
9062 /Import File Strings/,/^$/ {
9063 /^0/ {
9064 s/^0 *\([^ ]*\) *$/\1/
9065 p
9066 }
9067 }'
9068 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9069 # Check for a 64-bit object if we didn't find anything.
9070 if test -z "$lt_cv_aix_libpath_"; then
9071 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9072 fi
9073 fi
9074 rm -f core conftest.err conftest.$ac_objext \
9075 conftest$ac_exeext conftest.$ac_ext
9076 if test -z "$lt_cv_aix_libpath_"; then
9077 lt_cv_aix_libpath_="/usr/lib:/lib"
9078 fi
9079
9080 fi
9081
9082 aix_libpath=$lt_cv_aix_libpath_
9083 fi
9084
9085 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9086 # Warning - without using the other run time loading flags,
9087 # -berok will link without error, but may produce a broken library.
9088 no_undefined_flag=' ${wl}-bernotok'
9089 allow_undefined_flag=' ${wl}-berok'
9090 if test "$with_gnu_ld" = yes; then
9091 # We only use this code for GNU lds that support --whole-archive.
9092 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9093 else
9094 # Exported symbols can be pulled into shared objects from archives
9095 whole_archive_flag_spec='$convenience'
9096 fi
9097 archive_cmds_need_lc=yes
9098 # This is similar to how AIX traditionally builds its shared libraries.
9099 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'
9100 fi
9101 fi
9102 ;;
9103
9104 amigaos*)
9105 case $host_cpu in
9106 powerpc)
9107 # see comment about AmigaOS4 .so support
9108 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9109 archive_expsym_cmds=''
9110 ;;
9111 m68k)
9112 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)'
9113 hardcode_libdir_flag_spec='-L$libdir'
9114 hardcode_minus_L=yes
9115 ;;
9116 esac
9117 ;;
9118
9119 bsdi[45]*)
9120 export_dynamic_flag_spec=-rdynamic
9121 ;;
9122
9123 cygwin* | mingw* | pw32* | cegcc*)
9124 # When not using gcc, we currently assume that we are using
9125 # Microsoft Visual C++.
9126 # hardcode_libdir_flag_spec is actually meaningless, as there is
9127 # no search path for DLLs.
9128 case $cc_basename in
9129 cl*)
9130 # Native MSVC
9131 hardcode_libdir_flag_spec=' '
9132 allow_undefined_flag=unsupported
9133 always_export_symbols=yes
9134 file_list_spec='@'
9135 # Tell ltmain to make .lib files, not .a files.
9136 libext=lib
9137 # Tell ltmain to make .dll files, not .so files.
9138 shrext_cmds=".dll"
9139 # FIXME: Setting linknames here is a bad hack.
9140 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9141 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9142 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9143 else
9144 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9145 fi~
9146 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9147 linknames='
9148 # The linker will not automatically build a static lib if we build a DLL.
9149 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9150 enable_shared_with_static_runtimes=yes
9151 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9152 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9153 # Don't use ranlib
9154 old_postinstall_cmds='chmod 644 $oldlib'
9155 postlink_cmds='lt_outputfile="@OUTPUT@"~
9156 lt_tool_outputfile="@TOOL_OUTPUT@"~
9157 case $lt_outputfile in
9158 *.exe|*.EXE) ;;
9159 *)
9160 lt_outputfile="$lt_outputfile.exe"
9161 lt_tool_outputfile="$lt_tool_outputfile.exe"
9162 ;;
9163 esac~
9164 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9165 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9166 $RM "$lt_outputfile.manifest";
9167 fi'
9168 ;;
9169 *)
9170 # Assume MSVC wrapper
9171 hardcode_libdir_flag_spec=' '
9172 allow_undefined_flag=unsupported
9173 # Tell ltmain to make .lib files, not .a files.
9174 libext=lib
9175 # Tell ltmain to make .dll files, not .so files.
9176 shrext_cmds=".dll"
9177 # FIXME: Setting linknames here is a bad hack.
9178 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9179 # The linker will automatically build a .lib file if we build a DLL.
9180 old_archive_from_new_cmds='true'
9181 # FIXME: Should let the user specify the lib program.
9182 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9183 enable_shared_with_static_runtimes=yes
9184 ;;
9185 esac
9186 ;;
9187
9188 darwin* | rhapsody*)
9189
9190
9191 archive_cmds_need_lc=no
9192 hardcode_direct=no
9193 hardcode_automatic=yes
9194 hardcode_shlibpath_var=unsupported
9195 if test "$lt_cv_ld_force_load" = "yes"; then
9196 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\"`'
9197
9198 else
9199 whole_archive_flag_spec=''
9200 fi
9201 link_all_deplibs=yes
9202 allow_undefined_flag="$_lt_dar_allow_undefined"
9203 case $cc_basename in
9204 ifort*) _lt_dar_can_shared=yes ;;
9205 *) _lt_dar_can_shared=$GCC ;;
9206 esac
9207 if test "$_lt_dar_can_shared" = "yes"; then
9208 output_verbose_link_cmd=func_echo_all
9209 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9210 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9211 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}"
9212 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}"
9213
9214 else
9215 ld_shlibs=no
9216 fi
9217
9218 ;;
9219
9220 dgux*)
9221 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9222 hardcode_libdir_flag_spec='-L$libdir'
9223 hardcode_shlibpath_var=no
9224 ;;
9225
9226 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9227 # support. Future versions do this automatically, but an explicit c++rt0.o
9228 # does not break anything, and helps significantly (at the cost of a little
9229 # extra space).
9230 freebsd2.2*)
9231 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9232 hardcode_libdir_flag_spec='-R$libdir'
9233 hardcode_direct=yes
9234 hardcode_shlibpath_var=no
9235 ;;
9236
9237 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9238 freebsd2.*)
9239 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9240 hardcode_direct=yes
9241 hardcode_minus_L=yes
9242 hardcode_shlibpath_var=no
9243 ;;
9244
9245 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9246 freebsd* | dragonfly*)
9247 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9248 hardcode_libdir_flag_spec='-R$libdir'
9249 hardcode_direct=yes
9250 hardcode_shlibpath_var=no
9251 ;;
9252
9253 hpux9*)
9254 if test "$GCC" = yes; then
9255 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'
9256 else
9257 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'
9258 fi
9259 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9260 hardcode_libdir_separator=:
9261 hardcode_direct=yes
9262
9263 # hardcode_minus_L: Not really in the search PATH,
9264 # but as the default location of the library.
9265 hardcode_minus_L=yes
9266 export_dynamic_flag_spec='${wl}-E'
9267 ;;
9268
9269 hpux10*)
9270 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9271 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9272 else
9273 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9274 fi
9275 if test "$with_gnu_ld" = no; then
9276 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9277 hardcode_libdir_separator=:
9278 hardcode_direct=yes
9279 hardcode_direct_absolute=yes
9280 export_dynamic_flag_spec='${wl}-E'
9281 # hardcode_minus_L: Not really in the search PATH,
9282 # but as the default location of the library.
9283 hardcode_minus_L=yes
9284 fi
9285 ;;
9286
9287 hpux11*)
9288 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9289 case $host_cpu in
9290 hppa*64*)
9291 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9292 ;;
9293 ia64*)
9294 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9295 ;;
9296 *)
9297 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9298 ;;
9299 esac
9300 else
9301 case $host_cpu in
9302 hppa*64*)
9303 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9304 ;;
9305 ia64*)
9306 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9307 ;;
9308 *)
9309
9310 # Older versions of the 11.00 compiler do not understand -b yet
9311 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9313 $as_echo_n "checking if $CC understands -b... " >&6; }
9314 if ${lt_cv_prog_compiler__b+:} false; then :
9315 $as_echo_n "(cached) " >&6
9316 else
9317 lt_cv_prog_compiler__b=no
9318 save_LDFLAGS="$LDFLAGS"
9319 LDFLAGS="$LDFLAGS -b"
9320 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9321 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9322 # The linker can only warn and ignore the option if not recognized
9323 # So say no if there are warnings
9324 if test -s conftest.err; then
9325 # Append any errors to the config.log.
9326 cat conftest.err 1>&5
9327 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9328 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9329 if diff conftest.exp conftest.er2 >/dev/null; then
9330 lt_cv_prog_compiler__b=yes
9331 fi
9332 else
9333 lt_cv_prog_compiler__b=yes
9334 fi
9335 fi
9336 $RM -r conftest*
9337 LDFLAGS="$save_LDFLAGS"
9338
9339 fi
9340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9341 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9342
9343 if test x"$lt_cv_prog_compiler__b" = xyes; then
9344 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9345 else
9346 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9347 fi
9348
9349 ;;
9350 esac
9351 fi
9352 if test "$with_gnu_ld" = no; then
9353 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9354 hardcode_libdir_separator=:
9355
9356 case $host_cpu in
9357 hppa*64*|ia64*)
9358 hardcode_direct=no
9359 hardcode_shlibpath_var=no
9360 ;;
9361 *)
9362 hardcode_direct=yes
9363 hardcode_direct_absolute=yes
9364 export_dynamic_flag_spec='${wl}-E'
9365
9366 # hardcode_minus_L: Not really in the search PATH,
9367 # but as the default location of the library.
9368 hardcode_minus_L=yes
9369 ;;
9370 esac
9371 fi
9372 ;;
9373
9374 irix5* | irix6* | nonstopux*)
9375 if test "$GCC" = yes; then
9376 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'
9377 # Try to use the -exported_symbol ld option, if it does not
9378 # work, assume that -exports_file does not work either and
9379 # implicitly export all symbols.
9380 # This should be the same for all languages, so no per-tag cache variable.
9381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9382 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9383 if ${lt_cv_irix_exported_symbol+:} false; then :
9384 $as_echo_n "(cached) " >&6
9385 else
9386 save_LDFLAGS="$LDFLAGS"
9387 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9389 /* end confdefs.h. */
9390 int foo (void) { return 0; }
9391 _ACEOF
9392 if ac_fn_c_try_link "$LINENO"; then :
9393 lt_cv_irix_exported_symbol=yes
9394 else
9395 lt_cv_irix_exported_symbol=no
9396 fi
9397 rm -f core conftest.err conftest.$ac_objext \
9398 conftest$ac_exeext conftest.$ac_ext
9399 LDFLAGS="$save_LDFLAGS"
9400 fi
9401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9402 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9403 if test "$lt_cv_irix_exported_symbol" = yes; then
9404 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'
9405 fi
9406 else
9407 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'
9408 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'
9409 fi
9410 archive_cmds_need_lc='no'
9411 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9412 hardcode_libdir_separator=:
9413 inherit_rpath=yes
9414 link_all_deplibs=yes
9415 ;;
9416
9417 netbsd*)
9418 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9419 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9420 else
9421 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9422 fi
9423 hardcode_libdir_flag_spec='-R$libdir'
9424 hardcode_direct=yes
9425 hardcode_shlibpath_var=no
9426 ;;
9427
9428 newsos6)
9429 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9430 hardcode_direct=yes
9431 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9432 hardcode_libdir_separator=:
9433 hardcode_shlibpath_var=no
9434 ;;
9435
9436 *nto* | *qnx*)
9437 ;;
9438
9439 openbsd*)
9440 if test -f /usr/libexec/ld.so; then
9441 hardcode_direct=yes
9442 hardcode_shlibpath_var=no
9443 hardcode_direct_absolute=yes
9444 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9445 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9446 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9447 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9448 export_dynamic_flag_spec='${wl}-E'
9449 else
9450 case $host_os in
9451 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9452 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9453 hardcode_libdir_flag_spec='-R$libdir'
9454 ;;
9455 *)
9456 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9457 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9458 ;;
9459 esac
9460 fi
9461 else
9462 ld_shlibs=no
9463 fi
9464 ;;
9465
9466 os2*)
9467 hardcode_libdir_flag_spec='-L$libdir'
9468 hardcode_minus_L=yes
9469 allow_undefined_flag=unsupported
9470 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'
9471 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9472 ;;
9473
9474 osf3*)
9475 if test "$GCC" = yes; then
9476 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9477 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'
9478 else
9479 allow_undefined_flag=' -expect_unresolved \*'
9480 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'
9481 fi
9482 archive_cmds_need_lc='no'
9483 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9484 hardcode_libdir_separator=:
9485 ;;
9486
9487 osf4* | osf5*) # as osf3* with the addition of -msym flag
9488 if test "$GCC" = yes; then
9489 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9490 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'
9491 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9492 else
9493 allow_undefined_flag=' -expect_unresolved \*'
9494 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'
9495 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~
9496 $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'
9497
9498 # Both c and cxx compiler support -rpath directly
9499 hardcode_libdir_flag_spec='-rpath $libdir'
9500 fi
9501 archive_cmds_need_lc='no'
9502 hardcode_libdir_separator=:
9503 ;;
9504
9505 solaris*)
9506 no_undefined_flag=' -z defs'
9507 if test "$GCC" = yes; then
9508 wlarc='${wl}'
9509 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9510 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9511 $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'
9512 else
9513 case `$CC -V 2>&1` in
9514 *"Compilers 5.0"*)
9515 wlarc=''
9516 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9517 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9518 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9519 ;;
9520 *)
9521 wlarc='${wl}'
9522 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9523 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9524 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9525 ;;
9526 esac
9527 fi
9528 hardcode_libdir_flag_spec='-R$libdir'
9529 hardcode_shlibpath_var=no
9530 case $host_os in
9531 solaris2.[0-5] | solaris2.[0-5].*) ;;
9532 *)
9533 # The compiler driver will combine and reorder linker options,
9534 # but understands `-z linker_flag'. GCC discards it without `$wl',
9535 # but is careful enough not to reorder.
9536 # Supported since Solaris 2.6 (maybe 2.5.1?)
9537 if test "$GCC" = yes; then
9538 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9539 else
9540 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9541 fi
9542 ;;
9543 esac
9544 link_all_deplibs=yes
9545 ;;
9546
9547 sunos4*)
9548 if test "x$host_vendor" = xsequent; then
9549 # Use $CC to link under sequent, because it throws in some extra .o
9550 # files that make .init and .fini sections work.
9551 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9552 else
9553 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9554 fi
9555 hardcode_libdir_flag_spec='-L$libdir'
9556 hardcode_direct=yes
9557 hardcode_minus_L=yes
9558 hardcode_shlibpath_var=no
9559 ;;
9560
9561 sysv4)
9562 case $host_vendor in
9563 sni)
9564 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9565 hardcode_direct=yes # is this really true???
9566 ;;
9567 siemens)
9568 ## LD is ld it makes a PLAMLIB
9569 ## CC just makes a GrossModule.
9570 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9571 reload_cmds='$CC -r -o $output$reload_objs'
9572 hardcode_direct=no
9573 ;;
9574 motorola)
9575 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9576 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9577 ;;
9578 esac
9579 runpath_var='LD_RUN_PATH'
9580 hardcode_shlibpath_var=no
9581 ;;
9582
9583 sysv4.3*)
9584 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9585 hardcode_shlibpath_var=no
9586 export_dynamic_flag_spec='-Bexport'
9587 ;;
9588
9589 sysv4*MP*)
9590 if test -d /usr/nec; then
9591 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9592 hardcode_shlibpath_var=no
9593 runpath_var=LD_RUN_PATH
9594 hardcode_runpath_var=yes
9595 ld_shlibs=yes
9596 fi
9597 ;;
9598
9599 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9600 no_undefined_flag='${wl}-z,text'
9601 archive_cmds_need_lc=no
9602 hardcode_shlibpath_var=no
9603 runpath_var='LD_RUN_PATH'
9604
9605 if test "$GCC" = yes; then
9606 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9607 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9608 else
9609 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9610 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9611 fi
9612 ;;
9613
9614 sysv5* | sco3.2v5* | sco5v6*)
9615 # Note: We can NOT use -z defs as we might desire, because we do not
9616 # link with -lc, and that would cause any symbols used from libc to
9617 # always be unresolved, which means just about no library would
9618 # ever link correctly. If we're not using GNU ld we use -z text
9619 # though, which does catch some bad symbols but isn't as heavy-handed
9620 # as -z defs.
9621 no_undefined_flag='${wl}-z,text'
9622 allow_undefined_flag='${wl}-z,nodefs'
9623 archive_cmds_need_lc=no
9624 hardcode_shlibpath_var=no
9625 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9626 hardcode_libdir_separator=':'
9627 link_all_deplibs=yes
9628 export_dynamic_flag_spec='${wl}-Bexport'
9629 runpath_var='LD_RUN_PATH'
9630
9631 if test "$GCC" = yes; then
9632 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9633 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9634 else
9635 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9636 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9637 fi
9638 ;;
9639
9640 uts4*)
9641 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9642 hardcode_libdir_flag_spec='-L$libdir'
9643 hardcode_shlibpath_var=no
9644 ;;
9645
9646 *)
9647 ld_shlibs=no
9648 ;;
9649 esac
9650
9651 if test x$host_vendor = xsni; then
9652 case $host in
9653 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9654 export_dynamic_flag_spec='${wl}-Blargedynsym'
9655 ;;
9656 esac
9657 fi
9658 fi
9659
9660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9661 $as_echo "$ld_shlibs" >&6; }
9662 test "$ld_shlibs" = no && can_build_shared=no
9663
9664 with_gnu_ld=$with_gnu_ld
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680 #
9681 # Do we need to explicitly link libc?
9682 #
9683 case "x$archive_cmds_need_lc" in
9684 x|xyes)
9685 # Assume -lc should be added
9686 archive_cmds_need_lc=yes
9687
9688 if test "$enable_shared" = yes && test "$GCC" = yes; then
9689 case $archive_cmds in
9690 *'~'*)
9691 # FIXME: we may have to deal with multi-command sequences.
9692 ;;
9693 '$CC '*)
9694 # Test whether the compiler implicitly links with -lc since on some
9695 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9696 # to ld, don't add -lc before -lgcc.
9697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9698 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9699 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9700 $as_echo_n "(cached) " >&6
9701 else
9702 $RM conftest*
9703 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9704
9705 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9706 (eval $ac_compile) 2>&5
9707 ac_status=$?
9708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9709 test $ac_status = 0; } 2>conftest.err; then
9710 soname=conftest
9711 lib=conftest
9712 libobjs=conftest.$ac_objext
9713 deplibs=
9714 wl=$lt_prog_compiler_wl
9715 pic_flag=$lt_prog_compiler_pic
9716 compiler_flags=-v
9717 linker_flags=-v
9718 verstring=
9719 output_objdir=.
9720 libname=conftest
9721 lt_save_allow_undefined_flag=$allow_undefined_flag
9722 allow_undefined_flag=
9723 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9724 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9725 ac_status=$?
9726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9727 test $ac_status = 0; }
9728 then
9729 lt_cv_archive_cmds_need_lc=no
9730 else
9731 lt_cv_archive_cmds_need_lc=yes
9732 fi
9733 allow_undefined_flag=$lt_save_allow_undefined_flag
9734 else
9735 cat conftest.err 1>&5
9736 fi
9737 $RM conftest*
9738
9739 fi
9740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9741 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9742 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9743 ;;
9744 esac
9745 fi
9746 ;;
9747 esac
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9901 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9902
9903 if test "$GCC" = yes; then
9904 case $host_os in
9905 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9906 *) lt_awk_arg="/^libraries:/" ;;
9907 esac
9908 case $host_os in
9909 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9910 *) lt_sed_strip_eq="s,=/,/,g" ;;
9911 esac
9912 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9913 case $lt_search_path_spec in
9914 *\;*)
9915 # if the path contains ";" then we assume it to be the separator
9916 # otherwise default to the standard path separator (i.e. ":") - it is
9917 # assumed that no part of a normal pathname contains ";" but that should
9918 # okay in the real world where ";" in dirpaths is itself problematic.
9919 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9920 ;;
9921 *)
9922 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9923 ;;
9924 esac
9925 # Ok, now we have the path, separated by spaces, we can step through it
9926 # and add multilib dir if necessary.
9927 lt_tmp_lt_search_path_spec=
9928 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9929 for lt_sys_path in $lt_search_path_spec; do
9930 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9931 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9932 else
9933 test -d "$lt_sys_path" && \
9934 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9935 fi
9936 done
9937 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9938 BEGIN {RS=" "; FS="/|\n";} {
9939 lt_foo="";
9940 lt_count=0;
9941 for (lt_i = NF; lt_i > 0; lt_i--) {
9942 if ($lt_i != "" && $lt_i != ".") {
9943 if ($lt_i == "..") {
9944 lt_count++;
9945 } else {
9946 if (lt_count == 0) {
9947 lt_foo="/" $lt_i lt_foo;
9948 } else {
9949 lt_count--;
9950 }
9951 }
9952 }
9953 }
9954 if (lt_foo != "") { lt_freq[lt_foo]++; }
9955 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9956 }'`
9957 # AWK program above erroneously prepends '/' to C:/dos/paths
9958 # for these hosts.
9959 case $host_os in
9960 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9961 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9962 esac
9963 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9964 else
9965 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9966 fi
9967 library_names_spec=
9968 libname_spec='lib$name'
9969 soname_spec=
9970 shrext_cmds=".so"
9971 postinstall_cmds=
9972 postuninstall_cmds=
9973 finish_cmds=
9974 finish_eval=
9975 shlibpath_var=
9976 shlibpath_overrides_runpath=unknown
9977 version_type=none
9978 dynamic_linker="$host_os ld.so"
9979 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9980 need_lib_prefix=unknown
9981 hardcode_into_libs=no
9982
9983 # when you set need_version to no, make sure it does not cause -set_version
9984 # flags to be left without arguments
9985 need_version=unknown
9986
9987 case $host_os in
9988 aix3*)
9989 version_type=linux # correct to gnu/linux during the next big refactor
9990 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9991 shlibpath_var=LIBPATH
9992
9993 # AIX 3 has no versioning support, so we append a major version to the name.
9994 soname_spec='${libname}${release}${shared_ext}$major'
9995 ;;
9996
9997 aix[4-9]*)
9998 version_type=linux # correct to gnu/linux during the next big refactor
9999 need_lib_prefix=no
10000 need_version=no
10001 hardcode_into_libs=yes
10002 if test "$host_cpu" = ia64; then
10003 # AIX 5 supports IA64
10004 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10005 shlibpath_var=LD_LIBRARY_PATH
10006 else
10007 # With GCC up to 2.95.x, collect2 would create an import file
10008 # for dependence libraries. The import file would start with
10009 # the line `#! .'. This would cause the generated library to
10010 # depend on `.', always an invalid library. This was fixed in
10011 # development snapshots of GCC prior to 3.0.
10012 case $host_os in
10013 aix4 | aix4.[01] | aix4.[01].*)
10014 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10015 echo ' yes '
10016 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10017 :
10018 else
10019 can_build_shared=no
10020 fi
10021 ;;
10022 esac
10023 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10024 # soname into executable. Probably we can add versioning support to
10025 # collect2, so additional links can be useful in future.
10026 if test "$aix_use_runtimelinking" = yes; then
10027 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10028 # instead of lib<name>.a to let people know that these are not
10029 # typical AIX shared libraries.
10030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10031 else
10032 # We preserve .a as extension for shared libraries through AIX4.2
10033 # and later when we are not doing run time linking.
10034 library_names_spec='${libname}${release}.a $libname.a'
10035 soname_spec='${libname}${release}${shared_ext}$major'
10036 fi
10037 shlibpath_var=LIBPATH
10038 fi
10039 ;;
10040
10041 amigaos*)
10042 case $host_cpu in
10043 powerpc)
10044 # Since July 2007 AmigaOS4 officially supports .so libraries.
10045 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10047 ;;
10048 m68k)
10049 library_names_spec='$libname.ixlibrary $libname.a'
10050 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10051 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'
10052 ;;
10053 esac
10054 ;;
10055
10056 beos*)
10057 library_names_spec='${libname}${shared_ext}'
10058 dynamic_linker="$host_os ld.so"
10059 shlibpath_var=LIBRARY_PATH
10060 ;;
10061
10062 bsdi[45]*)
10063 version_type=linux # correct to gnu/linux during the next big refactor
10064 need_version=no
10065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10066 soname_spec='${libname}${release}${shared_ext}$major'
10067 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10068 shlibpath_var=LD_LIBRARY_PATH
10069 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10070 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10071 # the default ld.so.conf also contains /usr/contrib/lib and
10072 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10073 # libtool to hard-code these into programs
10074 ;;
10075
10076 cygwin* | mingw* | pw32* | cegcc*)
10077 version_type=windows
10078 shrext_cmds=".dll"
10079 need_version=no
10080 need_lib_prefix=no
10081
10082 case $GCC,$cc_basename in
10083 yes,*)
10084 # gcc
10085 library_names_spec='$libname.dll.a'
10086 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10087 postinstall_cmds='base_file=`basename \${file}`~
10088 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10089 dldir=$destdir/`dirname \$dlpath`~
10090 test -d \$dldir || mkdir -p \$dldir~
10091 $install_prog $dir/$dlname \$dldir/$dlname~
10092 chmod a+x \$dldir/$dlname~
10093 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10094 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10095 fi'
10096 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10097 dlpath=$dir/\$dldll~
10098 $RM \$dlpath'
10099 shlibpath_overrides_runpath=yes
10100
10101 case $host_os in
10102 cygwin*)
10103 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10104 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10105
10106 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10107 ;;
10108 mingw* | cegcc*)
10109 # MinGW DLLs use traditional 'lib' prefix
10110 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10111 ;;
10112 pw32*)
10113 # pw32 DLLs use 'pw' prefix rather than 'lib'
10114 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10115 ;;
10116 esac
10117 dynamic_linker='Win32 ld.exe'
10118 ;;
10119
10120 *,cl*)
10121 # Native MSVC
10122 libname_spec='$name'
10123 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10124 library_names_spec='${libname}.dll.lib'
10125
10126 case $build_os in
10127 mingw*)
10128 sys_lib_search_path_spec=
10129 lt_save_ifs=$IFS
10130 IFS=';'
10131 for lt_path in $LIB
10132 do
10133 IFS=$lt_save_ifs
10134 # Let DOS variable expansion print the short 8.3 style file name.
10135 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10136 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10137 done
10138 IFS=$lt_save_ifs
10139 # Convert to MSYS style.
10140 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10141 ;;
10142 cygwin*)
10143 # Convert to unix form, then to dos form, then back to unix form
10144 # but this time dos style (no spaces!) so that the unix form looks
10145 # like /cygdrive/c/PROGRA~1:/cygdr...
10146 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10147 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10148 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10149 ;;
10150 *)
10151 sys_lib_search_path_spec="$LIB"
10152 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10153 # It is most probably a Windows format PATH.
10154 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10155 else
10156 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10157 fi
10158 # FIXME: find the short name or the path components, as spaces are
10159 # common. (e.g. "Program Files" -> "PROGRA~1")
10160 ;;
10161 esac
10162
10163 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10164 postinstall_cmds='base_file=`basename \${file}`~
10165 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10166 dldir=$destdir/`dirname \$dlpath`~
10167 test -d \$dldir || mkdir -p \$dldir~
10168 $install_prog $dir/$dlname \$dldir/$dlname'
10169 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10170 dlpath=$dir/\$dldll~
10171 $RM \$dlpath'
10172 shlibpath_overrides_runpath=yes
10173 dynamic_linker='Win32 link.exe'
10174 ;;
10175
10176 *)
10177 # Assume MSVC wrapper
10178 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10179 dynamic_linker='Win32 ld.exe'
10180 ;;
10181 esac
10182 # FIXME: first we should search . and the directory the executable is in
10183 shlibpath_var=PATH
10184 ;;
10185
10186 darwin* | rhapsody*)
10187 dynamic_linker="$host_os dyld"
10188 version_type=darwin
10189 need_lib_prefix=no
10190 need_version=no
10191 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10192 soname_spec='${libname}${release}${major}$shared_ext'
10193 shlibpath_overrides_runpath=yes
10194 shlibpath_var=DYLD_LIBRARY_PATH
10195 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10196
10197 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10198 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10199 ;;
10200
10201 dgux*)
10202 version_type=linux # correct to gnu/linux during the next big refactor
10203 need_lib_prefix=no
10204 need_version=no
10205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10206 soname_spec='${libname}${release}${shared_ext}$major'
10207 shlibpath_var=LD_LIBRARY_PATH
10208 ;;
10209
10210 freebsd* | dragonfly*)
10211 # DragonFly does not have aout. When/if they implement a new
10212 # versioning mechanism, adjust this.
10213 if test -x /usr/bin/objformat; then
10214 objformat=`/usr/bin/objformat`
10215 else
10216 case $host_os in
10217 freebsd[23].*) objformat=aout ;;
10218 *) objformat=elf ;;
10219 esac
10220 fi
10221 version_type=freebsd-$objformat
10222 case $version_type in
10223 freebsd-elf*)
10224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10225 need_version=no
10226 need_lib_prefix=no
10227 ;;
10228 freebsd-*)
10229 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10230 need_version=yes
10231 ;;
10232 esac
10233 shlibpath_var=LD_LIBRARY_PATH
10234 case $host_os in
10235 freebsd2.*)
10236 shlibpath_overrides_runpath=yes
10237 ;;
10238 freebsd3.[01]* | freebsdelf3.[01]*)
10239 shlibpath_overrides_runpath=yes
10240 hardcode_into_libs=yes
10241 ;;
10242 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10243 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10244 shlibpath_overrides_runpath=no
10245 hardcode_into_libs=yes
10246 ;;
10247 *) # from 4.6 on, and DragonFly
10248 shlibpath_overrides_runpath=yes
10249 hardcode_into_libs=yes
10250 ;;
10251 esac
10252 ;;
10253
10254 gnu*)
10255 version_type=linux # correct to gnu/linux during the next big refactor
10256 need_lib_prefix=no
10257 need_version=no
10258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10259 soname_spec='${libname}${release}${shared_ext}$major'
10260 shlibpath_var=LD_LIBRARY_PATH
10261 shlibpath_overrides_runpath=no
10262 hardcode_into_libs=yes
10263 ;;
10264
10265 haiku*)
10266 version_type=linux # correct to gnu/linux during the next big refactor
10267 need_lib_prefix=no
10268 need_version=no
10269 dynamic_linker="$host_os runtime_loader"
10270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10271 soname_spec='${libname}${release}${shared_ext}$major'
10272 shlibpath_var=LIBRARY_PATH
10273 shlibpath_overrides_runpath=yes
10274 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10275 hardcode_into_libs=yes
10276 ;;
10277
10278 hpux9* | hpux10* | hpux11*)
10279 # Give a soname corresponding to the major version so that dld.sl refuses to
10280 # link against other versions.
10281 version_type=sunos
10282 need_lib_prefix=no
10283 need_version=no
10284 case $host_cpu in
10285 ia64*)
10286 shrext_cmds='.so'
10287 hardcode_into_libs=yes
10288 dynamic_linker="$host_os dld.so"
10289 shlibpath_var=LD_LIBRARY_PATH
10290 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10292 soname_spec='${libname}${release}${shared_ext}$major'
10293 if test "X$HPUX_IA64_MODE" = X32; then
10294 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10295 else
10296 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10297 fi
10298 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10299 ;;
10300 hppa*64*)
10301 shrext_cmds='.sl'
10302 hardcode_into_libs=yes
10303 dynamic_linker="$host_os dld.sl"
10304 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10305 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10307 soname_spec='${libname}${release}${shared_ext}$major'
10308 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10309 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10310 ;;
10311 *)
10312 shrext_cmds='.sl'
10313 dynamic_linker="$host_os dld.sl"
10314 shlibpath_var=SHLIB_PATH
10315 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10317 soname_spec='${libname}${release}${shared_ext}$major'
10318 ;;
10319 esac
10320 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10321 postinstall_cmds='chmod 555 $lib'
10322 # or fails outright, so override atomically:
10323 install_override_mode=555
10324 ;;
10325
10326 interix[3-9]*)
10327 version_type=linux # correct to gnu/linux during the next big refactor
10328 need_lib_prefix=no
10329 need_version=no
10330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10331 soname_spec='${libname}${release}${shared_ext}$major'
10332 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10333 shlibpath_var=LD_LIBRARY_PATH
10334 shlibpath_overrides_runpath=no
10335 hardcode_into_libs=yes
10336 ;;
10337
10338 irix5* | irix6* | nonstopux*)
10339 case $host_os in
10340 nonstopux*) version_type=nonstopux ;;
10341 *)
10342 if test "$lt_cv_prog_gnu_ld" = yes; then
10343 version_type=linux # correct to gnu/linux during the next big refactor
10344 else
10345 version_type=irix
10346 fi ;;
10347 esac
10348 need_lib_prefix=no
10349 need_version=no
10350 soname_spec='${libname}${release}${shared_ext}$major'
10351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10352 case $host_os in
10353 irix5* | nonstopux*)
10354 libsuff= shlibsuff=
10355 ;;
10356 *)
10357 case $LD in # libtool.m4 will add one of these switches to LD
10358 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10359 libsuff= shlibsuff= libmagic=32-bit;;
10360 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10361 libsuff=32 shlibsuff=N32 libmagic=N32;;
10362 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10363 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10364 *) libsuff= shlibsuff= libmagic=never-match;;
10365 esac
10366 ;;
10367 esac
10368 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10369 shlibpath_overrides_runpath=no
10370 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10371 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10372 hardcode_into_libs=yes
10373 ;;
10374
10375 # No shared lib support for Linux oldld, aout, or coff.
10376 linux*oldld* | linux*aout* | linux*coff*)
10377 dynamic_linker=no
10378 ;;
10379
10380 # This must be glibc/ELF.
10381 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10382 version_type=linux # correct to gnu/linux during the next big refactor
10383 need_lib_prefix=no
10384 need_version=no
10385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10386 soname_spec='${libname}${release}${shared_ext}$major'
10387 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10388 shlibpath_var=LD_LIBRARY_PATH
10389 shlibpath_overrides_runpath=no
10390
10391 # Some binutils ld are patched to set DT_RUNPATH
10392 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10393 $as_echo_n "(cached) " >&6
10394 else
10395 lt_cv_shlibpath_overrides_runpath=no
10396 save_LDFLAGS=$LDFLAGS
10397 save_libdir=$libdir
10398 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10399 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10401 /* end confdefs.h. */
10402
10403 int
10404 main ()
10405 {
10406
10407 ;
10408 return 0;
10409 }
10410 _ACEOF
10411 if ac_fn_c_try_link "$LINENO"; then :
10412 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10413 lt_cv_shlibpath_overrides_runpath=yes
10414 fi
10415 fi
10416 rm -f core conftest.err conftest.$ac_objext \
10417 conftest$ac_exeext conftest.$ac_ext
10418 LDFLAGS=$save_LDFLAGS
10419 libdir=$save_libdir
10420
10421 fi
10422
10423 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10424
10425 # This implies no fast_install, which is unacceptable.
10426 # Some rework will be needed to allow for fast_install
10427 # before this can be enabled.
10428 hardcode_into_libs=yes
10429
10430 # Add ABI-specific directories to the system library path.
10431 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10432
10433 # Append ld.so.conf contents to the search path
10434 if test -f /etc/ld.so.conf; then
10435 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' ' '`
10436 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10437
10438 fi
10439
10440 # We used to test for /lib/ld.so.1 and disable shared libraries on
10441 # powerpc, because MkLinux only supported shared libraries with the
10442 # GNU dynamic linker. Since this was broken with cross compilers,
10443 # most powerpc-linux boxes support dynamic linking these days and
10444 # people can always --disable-shared, the test was removed, and we
10445 # assume the GNU/Linux dynamic linker is in use.
10446 dynamic_linker='GNU/Linux ld.so'
10447 ;;
10448
10449 netbsd*)
10450 version_type=sunos
10451 need_lib_prefix=no
10452 need_version=no
10453 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10455 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10456 dynamic_linker='NetBSD (a.out) ld.so'
10457 else
10458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10459 soname_spec='${libname}${release}${shared_ext}$major'
10460 dynamic_linker='NetBSD ld.elf_so'
10461 fi
10462 shlibpath_var=LD_LIBRARY_PATH
10463 shlibpath_overrides_runpath=yes
10464 hardcode_into_libs=yes
10465 ;;
10466
10467 newsos6)
10468 version_type=linux # correct to gnu/linux during the next big refactor
10469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10470 shlibpath_var=LD_LIBRARY_PATH
10471 shlibpath_overrides_runpath=yes
10472 ;;
10473
10474 *nto* | *qnx*)
10475 version_type=qnx
10476 need_lib_prefix=no
10477 need_version=no
10478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10479 soname_spec='${libname}${release}${shared_ext}$major'
10480 shlibpath_var=LD_LIBRARY_PATH
10481 shlibpath_overrides_runpath=no
10482 hardcode_into_libs=yes
10483 dynamic_linker='ldqnx.so'
10484 ;;
10485
10486 openbsd*)
10487 version_type=sunos
10488 sys_lib_dlsearch_path_spec="/usr/lib"
10489 need_lib_prefix=no
10490 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10491 case $host_os in
10492 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10493 *) need_version=no ;;
10494 esac
10495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10496 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10497 shlibpath_var=LD_LIBRARY_PATH
10498 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10499 case $host_os in
10500 openbsd2.[89] | openbsd2.[89].*)
10501 shlibpath_overrides_runpath=no
10502 ;;
10503 *)
10504 shlibpath_overrides_runpath=yes
10505 ;;
10506 esac
10507 else
10508 shlibpath_overrides_runpath=yes
10509 fi
10510 ;;
10511
10512 os2*)
10513 libname_spec='$name'
10514 shrext_cmds=".dll"
10515 need_lib_prefix=no
10516 library_names_spec='$libname${shared_ext} $libname.a'
10517 dynamic_linker='OS/2 ld.exe'
10518 shlibpath_var=LIBPATH
10519 ;;
10520
10521 osf3* | osf4* | osf5*)
10522 version_type=osf
10523 need_lib_prefix=no
10524 need_version=no
10525 soname_spec='${libname}${release}${shared_ext}$major'
10526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10527 shlibpath_var=LD_LIBRARY_PATH
10528 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10529 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10530 ;;
10531
10532 rdos*)
10533 dynamic_linker=no
10534 ;;
10535
10536 solaris*)
10537 version_type=linux # correct to gnu/linux during the next big refactor
10538 need_lib_prefix=no
10539 need_version=no
10540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10541 soname_spec='${libname}${release}${shared_ext}$major'
10542 shlibpath_var=LD_LIBRARY_PATH
10543 shlibpath_overrides_runpath=yes
10544 hardcode_into_libs=yes
10545 # ldd complains unless libraries are executable
10546 postinstall_cmds='chmod +x $lib'
10547 ;;
10548
10549 sunos4*)
10550 version_type=sunos
10551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10552 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10553 shlibpath_var=LD_LIBRARY_PATH
10554 shlibpath_overrides_runpath=yes
10555 if test "$with_gnu_ld" = yes; then
10556 need_lib_prefix=no
10557 fi
10558 need_version=yes
10559 ;;
10560
10561 sysv4 | sysv4.3*)
10562 version_type=linux # correct to gnu/linux during the next big refactor
10563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10564 soname_spec='${libname}${release}${shared_ext}$major'
10565 shlibpath_var=LD_LIBRARY_PATH
10566 case $host_vendor in
10567 sni)
10568 shlibpath_overrides_runpath=no
10569 need_lib_prefix=no
10570 runpath_var=LD_RUN_PATH
10571 ;;
10572 siemens)
10573 need_lib_prefix=no
10574 ;;
10575 motorola)
10576 need_lib_prefix=no
10577 need_version=no
10578 shlibpath_overrides_runpath=no
10579 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10580 ;;
10581 esac
10582 ;;
10583
10584 sysv4*MP*)
10585 if test -d /usr/nec ;then
10586 version_type=linux # correct to gnu/linux during the next big refactor
10587 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10588 soname_spec='$libname${shared_ext}.$major'
10589 shlibpath_var=LD_LIBRARY_PATH
10590 fi
10591 ;;
10592
10593 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10594 version_type=freebsd-elf
10595 need_lib_prefix=no
10596 need_version=no
10597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10598 soname_spec='${libname}${release}${shared_ext}$major'
10599 shlibpath_var=LD_LIBRARY_PATH
10600 shlibpath_overrides_runpath=yes
10601 hardcode_into_libs=yes
10602 if test "$with_gnu_ld" = yes; then
10603 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10604 else
10605 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10606 case $host_os in
10607 sco3.2v5*)
10608 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10609 ;;
10610 esac
10611 fi
10612 sys_lib_dlsearch_path_spec='/usr/lib'
10613 ;;
10614
10615 tpf*)
10616 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10617 version_type=linux # correct to gnu/linux during the next big refactor
10618 need_lib_prefix=no
10619 need_version=no
10620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10621 shlibpath_var=LD_LIBRARY_PATH
10622 shlibpath_overrides_runpath=no
10623 hardcode_into_libs=yes
10624 ;;
10625
10626 uts4*)
10627 version_type=linux # correct to gnu/linux during the next big refactor
10628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10629 soname_spec='${libname}${release}${shared_ext}$major'
10630 shlibpath_var=LD_LIBRARY_PATH
10631 ;;
10632
10633 *)
10634 dynamic_linker=no
10635 ;;
10636 esac
10637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10638 $as_echo "$dynamic_linker" >&6; }
10639 test "$dynamic_linker" = no && can_build_shared=no
10640
10641 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10642 if test "$GCC" = yes; then
10643 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10644 fi
10645
10646 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10647 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10648 fi
10649 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10650 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10651 fi
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10745 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10746 hardcode_action=
10747 if test -n "$hardcode_libdir_flag_spec" ||
10748 test -n "$runpath_var" ||
10749 test "X$hardcode_automatic" = "Xyes" ; then
10750
10751 # We can hardcode non-existent directories.
10752 if test "$hardcode_direct" != no &&
10753 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10754 # have to relink, otherwise we might link with an installed library
10755 # when we should be linking with a yet-to-be-installed one
10756 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10757 test "$hardcode_minus_L" != no; then
10758 # Linking always hardcodes the temporary library directory.
10759 hardcode_action=relink
10760 else
10761 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10762 hardcode_action=immediate
10763 fi
10764 else
10765 # We cannot hardcode anything, or else we can only hardcode existing
10766 # directories.
10767 hardcode_action=unsupported
10768 fi
10769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10770 $as_echo "$hardcode_action" >&6; }
10771
10772 if test "$hardcode_action" = relink ||
10773 test "$inherit_rpath" = yes; then
10774 # Fast installation is not supported
10775 enable_fast_install=no
10776 elif test "$shlibpath_overrides_runpath" = yes ||
10777 test "$enable_shared" = no; then
10778 # Fast installation is not necessary
10779 enable_fast_install=needless
10780 fi
10781
10782
10783
10784
10785
10786
10787 if test "x$enable_dlopen" != xyes; then
10788 enable_dlopen=unknown
10789 enable_dlopen_self=unknown
10790 enable_dlopen_self_static=unknown
10791 else
10792 lt_cv_dlopen=no
10793 lt_cv_dlopen_libs=
10794
10795 case $host_os in
10796 beos*)
10797 lt_cv_dlopen="load_add_on"
10798 lt_cv_dlopen_libs=
10799 lt_cv_dlopen_self=yes
10800 ;;
10801
10802 mingw* | pw32* | cegcc*)
10803 lt_cv_dlopen="LoadLibrary"
10804 lt_cv_dlopen_libs=
10805 ;;
10806
10807 cygwin*)
10808 lt_cv_dlopen="dlopen"
10809 lt_cv_dlopen_libs=
10810 ;;
10811
10812 darwin*)
10813 # if libdl is installed we need to link against it
10814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10815 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10816 if ${ac_cv_lib_dl_dlopen+:} false; then :
10817 $as_echo_n "(cached) " >&6
10818 else
10819 ac_check_lib_save_LIBS=$LIBS
10820 LIBS="-ldl $LIBS"
10821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10822 /* end confdefs.h. */
10823
10824 /* Override any GCC internal prototype to avoid an error.
10825 Use char because int might match the return type of a GCC
10826 builtin and then its argument prototype would still apply. */
10827 #ifdef __cplusplus
10828 extern "C"
10829 #endif
10830 char dlopen ();
10831 int
10832 main ()
10833 {
10834 return dlopen ();
10835 ;
10836 return 0;
10837 }
10838 _ACEOF
10839 if ac_fn_c_try_link "$LINENO"; then :
10840 ac_cv_lib_dl_dlopen=yes
10841 else
10842 ac_cv_lib_dl_dlopen=no
10843 fi
10844 rm -f core conftest.err conftest.$ac_objext \
10845 conftest$ac_exeext conftest.$ac_ext
10846 LIBS=$ac_check_lib_save_LIBS
10847 fi
10848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10849 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10850 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10851 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10852 else
10853
10854 lt_cv_dlopen="dyld"
10855 lt_cv_dlopen_libs=
10856 lt_cv_dlopen_self=yes
10857
10858 fi
10859
10860 ;;
10861
10862 *)
10863 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10864 if test "x$ac_cv_func_shl_load" = xyes; then :
10865 lt_cv_dlopen="shl_load"
10866 else
10867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10868 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10869 if ${ac_cv_lib_dld_shl_load+:} false; then :
10870 $as_echo_n "(cached) " >&6
10871 else
10872 ac_check_lib_save_LIBS=$LIBS
10873 LIBS="-ldld $LIBS"
10874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10875 /* end confdefs.h. */
10876
10877 /* Override any GCC internal prototype to avoid an error.
10878 Use char because int might match the return type of a GCC
10879 builtin and then its argument prototype would still apply. */
10880 #ifdef __cplusplus
10881 extern "C"
10882 #endif
10883 char shl_load ();
10884 int
10885 main ()
10886 {
10887 return shl_load ();
10888 ;
10889 return 0;
10890 }
10891 _ACEOF
10892 if ac_fn_c_try_link "$LINENO"; then :
10893 ac_cv_lib_dld_shl_load=yes
10894 else
10895 ac_cv_lib_dld_shl_load=no
10896 fi
10897 rm -f core conftest.err conftest.$ac_objext \
10898 conftest$ac_exeext conftest.$ac_ext
10899 LIBS=$ac_check_lib_save_LIBS
10900 fi
10901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10902 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10903 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10904 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10905 else
10906 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10907 if test "x$ac_cv_func_dlopen" = xyes; then :
10908 lt_cv_dlopen="dlopen"
10909 else
10910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10911 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10912 if ${ac_cv_lib_dl_dlopen+:} false; then :
10913 $as_echo_n "(cached) " >&6
10914 else
10915 ac_check_lib_save_LIBS=$LIBS
10916 LIBS="-ldl $LIBS"
10917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10918 /* end confdefs.h. */
10919
10920 /* Override any GCC internal prototype to avoid an error.
10921 Use char because int might match the return type of a GCC
10922 builtin and then its argument prototype would still apply. */
10923 #ifdef __cplusplus
10924 extern "C"
10925 #endif
10926 char dlopen ();
10927 int
10928 main ()
10929 {
10930 return dlopen ();
10931 ;
10932 return 0;
10933 }
10934 _ACEOF
10935 if ac_fn_c_try_link "$LINENO"; then :
10936 ac_cv_lib_dl_dlopen=yes
10937 else
10938 ac_cv_lib_dl_dlopen=no
10939 fi
10940 rm -f core conftest.err conftest.$ac_objext \
10941 conftest$ac_exeext conftest.$ac_ext
10942 LIBS=$ac_check_lib_save_LIBS
10943 fi
10944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10945 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10946 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10947 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10948 else
10949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10950 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10951 if ${ac_cv_lib_svld_dlopen+:} false; then :
10952 $as_echo_n "(cached) " >&6
10953 else
10954 ac_check_lib_save_LIBS=$LIBS
10955 LIBS="-lsvld $LIBS"
10956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10957 /* end confdefs.h. */
10958
10959 /* Override any GCC internal prototype to avoid an error.
10960 Use char because int might match the return type of a GCC
10961 builtin and then its argument prototype would still apply. */
10962 #ifdef __cplusplus
10963 extern "C"
10964 #endif
10965 char dlopen ();
10966 int
10967 main ()
10968 {
10969 return dlopen ();
10970 ;
10971 return 0;
10972 }
10973 _ACEOF
10974 if ac_fn_c_try_link "$LINENO"; then :
10975 ac_cv_lib_svld_dlopen=yes
10976 else
10977 ac_cv_lib_svld_dlopen=no
10978 fi
10979 rm -f core conftest.err conftest.$ac_objext \
10980 conftest$ac_exeext conftest.$ac_ext
10981 LIBS=$ac_check_lib_save_LIBS
10982 fi
10983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10984 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10985 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10986 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10987 else
10988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10989 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10990 if ${ac_cv_lib_dld_dld_link+:} false; then :
10991 $as_echo_n "(cached) " >&6
10992 else
10993 ac_check_lib_save_LIBS=$LIBS
10994 LIBS="-ldld $LIBS"
10995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10996 /* end confdefs.h. */
10997
10998 /* Override any GCC internal prototype to avoid an error.
10999 Use char because int might match the return type of a GCC
11000 builtin and then its argument prototype would still apply. */
11001 #ifdef __cplusplus
11002 extern "C"
11003 #endif
11004 char dld_link ();
11005 int
11006 main ()
11007 {
11008 return dld_link ();
11009 ;
11010 return 0;
11011 }
11012 _ACEOF
11013 if ac_fn_c_try_link "$LINENO"; then :
11014 ac_cv_lib_dld_dld_link=yes
11015 else
11016 ac_cv_lib_dld_dld_link=no
11017 fi
11018 rm -f core conftest.err conftest.$ac_objext \
11019 conftest$ac_exeext conftest.$ac_ext
11020 LIBS=$ac_check_lib_save_LIBS
11021 fi
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11023 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11024 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11025 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11026 fi
11027
11028
11029 fi
11030
11031
11032 fi
11033
11034
11035 fi
11036
11037
11038 fi
11039
11040
11041 fi
11042
11043 ;;
11044 esac
11045
11046 if test "x$lt_cv_dlopen" != xno; then
11047 enable_dlopen=yes
11048 else
11049 enable_dlopen=no
11050 fi
11051
11052 case $lt_cv_dlopen in
11053 dlopen)
11054 save_CPPFLAGS="$CPPFLAGS"
11055 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11056
11057 save_LDFLAGS="$LDFLAGS"
11058 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11059
11060 save_LIBS="$LIBS"
11061 LIBS="$lt_cv_dlopen_libs $LIBS"
11062
11063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11064 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11065 if ${lt_cv_dlopen_self+:} false; then :
11066 $as_echo_n "(cached) " >&6
11067 else
11068 if test "$cross_compiling" = yes; then :
11069 lt_cv_dlopen_self=cross
11070 else
11071 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11072 lt_status=$lt_dlunknown
11073 cat > conftest.$ac_ext <<_LT_EOF
11074 #line $LINENO "configure"
11075 #include "confdefs.h"
11076
11077 #if HAVE_DLFCN_H
11078 #include <dlfcn.h>
11079 #endif
11080
11081 #include <stdio.h>
11082
11083 #ifdef RTLD_GLOBAL
11084 # define LT_DLGLOBAL RTLD_GLOBAL
11085 #else
11086 # ifdef DL_GLOBAL
11087 # define LT_DLGLOBAL DL_GLOBAL
11088 # else
11089 # define LT_DLGLOBAL 0
11090 # endif
11091 #endif
11092
11093 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11094 find out it does not work in some platform. */
11095 #ifndef LT_DLLAZY_OR_NOW
11096 # ifdef RTLD_LAZY
11097 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11098 # else
11099 # ifdef DL_LAZY
11100 # define LT_DLLAZY_OR_NOW DL_LAZY
11101 # else
11102 # ifdef RTLD_NOW
11103 # define LT_DLLAZY_OR_NOW RTLD_NOW
11104 # else
11105 # ifdef DL_NOW
11106 # define LT_DLLAZY_OR_NOW DL_NOW
11107 # else
11108 # define LT_DLLAZY_OR_NOW 0
11109 # endif
11110 # endif
11111 # endif
11112 # endif
11113 #endif
11114
11115 /* When -fvisbility=hidden is used, assume the code has been annotated
11116 correspondingly for the symbols needed. */
11117 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11118 int fnord () __attribute__((visibility("default")));
11119 #endif
11120
11121 int fnord () { return 42; }
11122 int main ()
11123 {
11124 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11125 int status = $lt_dlunknown;
11126
11127 if (self)
11128 {
11129 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11130 else
11131 {
11132 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11133 else puts (dlerror ());
11134 }
11135 /* dlclose (self); */
11136 }
11137 else
11138 puts (dlerror ());
11139
11140 return status;
11141 }
11142 _LT_EOF
11143 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11144 (eval $ac_link) 2>&5
11145 ac_status=$?
11146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11147 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11148 (./conftest; exit; ) >&5 2>/dev/null
11149 lt_status=$?
11150 case x$lt_status in
11151 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11152 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11153 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11154 esac
11155 else :
11156 # compilation failed
11157 lt_cv_dlopen_self=no
11158 fi
11159 fi
11160 rm -fr conftest*
11161
11162
11163 fi
11164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11165 $as_echo "$lt_cv_dlopen_self" >&6; }
11166
11167 if test "x$lt_cv_dlopen_self" = xyes; then
11168 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11170 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11171 if ${lt_cv_dlopen_self_static+:} false; then :
11172 $as_echo_n "(cached) " >&6
11173 else
11174 if test "$cross_compiling" = yes; then :
11175 lt_cv_dlopen_self_static=cross
11176 else
11177 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11178 lt_status=$lt_dlunknown
11179 cat > conftest.$ac_ext <<_LT_EOF
11180 #line $LINENO "configure"
11181 #include "confdefs.h"
11182
11183 #if HAVE_DLFCN_H
11184 #include <dlfcn.h>
11185 #endif
11186
11187 #include <stdio.h>
11188
11189 #ifdef RTLD_GLOBAL
11190 # define LT_DLGLOBAL RTLD_GLOBAL
11191 #else
11192 # ifdef DL_GLOBAL
11193 # define LT_DLGLOBAL DL_GLOBAL
11194 # else
11195 # define LT_DLGLOBAL 0
11196 # endif
11197 #endif
11198
11199 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11200 find out it does not work in some platform. */
11201 #ifndef LT_DLLAZY_OR_NOW
11202 # ifdef RTLD_LAZY
11203 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11204 # else
11205 # ifdef DL_LAZY
11206 # define LT_DLLAZY_OR_NOW DL_LAZY
11207 # else
11208 # ifdef RTLD_NOW
11209 # define LT_DLLAZY_OR_NOW RTLD_NOW
11210 # else
11211 # ifdef DL_NOW
11212 # define LT_DLLAZY_OR_NOW DL_NOW
11213 # else
11214 # define LT_DLLAZY_OR_NOW 0
11215 # endif
11216 # endif
11217 # endif
11218 # endif
11219 #endif
11220
11221 /* When -fvisbility=hidden is used, assume the code has been annotated
11222 correspondingly for the symbols needed. */
11223 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11224 int fnord () __attribute__((visibility("default")));
11225 #endif
11226
11227 int fnord () { return 42; }
11228 int main ()
11229 {
11230 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11231 int status = $lt_dlunknown;
11232
11233 if (self)
11234 {
11235 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11236 else
11237 {
11238 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11239 else puts (dlerror ());
11240 }
11241 /* dlclose (self); */
11242 }
11243 else
11244 puts (dlerror ());
11245
11246 return status;
11247 }
11248 _LT_EOF
11249 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11250 (eval $ac_link) 2>&5
11251 ac_status=$?
11252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11253 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11254 (./conftest; exit; ) >&5 2>/dev/null
11255 lt_status=$?
11256 case x$lt_status in
11257 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11258 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11259 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11260 esac
11261 else :
11262 # compilation failed
11263 lt_cv_dlopen_self_static=no
11264 fi
11265 fi
11266 rm -fr conftest*
11267
11268
11269 fi
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11271 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11272 fi
11273
11274 CPPFLAGS="$save_CPPFLAGS"
11275 LDFLAGS="$save_LDFLAGS"
11276 LIBS="$save_LIBS"
11277 ;;
11278 esac
11279
11280 case $lt_cv_dlopen_self in
11281 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11282 *) enable_dlopen_self=unknown ;;
11283 esac
11284
11285 case $lt_cv_dlopen_self_static in
11286 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11287 *) enable_dlopen_self_static=unknown ;;
11288 esac
11289 fi
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307 striplib=
11308 old_striplib=
11309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11310 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11311 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11312 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11313 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11315 $as_echo "yes" >&6; }
11316 else
11317 # FIXME - insert some real tests, host_os isn't really good enough
11318 case $host_os in
11319 darwin*)
11320 if test -n "$STRIP" ; then
11321 striplib="$STRIP -x"
11322 old_striplib="$STRIP -S"
11323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11324 $as_echo "yes" >&6; }
11325 else
11326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11327 $as_echo "no" >&6; }
11328 fi
11329 ;;
11330 *)
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11332 $as_echo "no" >&6; }
11333 ;;
11334 esac
11335 fi
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348 # Report which library types will actually be built
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11350 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11352 $as_echo "$can_build_shared" >&6; }
11353
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11355 $as_echo_n "checking whether to build shared libraries... " >&6; }
11356 test "$can_build_shared" = "no" && enable_shared=no
11357
11358 # On AIX, shared libraries and static libraries use the same namespace, and
11359 # are all built from PIC.
11360 case $host_os in
11361 aix3*)
11362 test "$enable_shared" = yes && enable_static=no
11363 if test -n "$RANLIB"; then
11364 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11365 postinstall_cmds='$RANLIB $lib'
11366 fi
11367 ;;
11368
11369 aix[4-9]*)
11370 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11371 test "$enable_shared" = yes && enable_static=no
11372 fi
11373 ;;
11374 esac
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11376 $as_echo "$enable_shared" >&6; }
11377
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11379 $as_echo_n "checking whether to build static libraries... " >&6; }
11380 # Make sure either enable_shared or enable_static is yes.
11381 test "$enable_shared" = yes || enable_static=yes
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11383 $as_echo "$enable_static" >&6; }
11384
11385
11386
11387
11388 fi
11389 ac_ext=c
11390 ac_cpp='$CPP $CPPFLAGS'
11391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11394
11395 CC="$lt_save_CC"
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411 ac_config_commands="$ac_config_commands libtool"
11412
11413
11414
11415
11416 # Only expand once:
11417
11418
11419
11420 # Require xorg-macros minimum of 1.12 for DocBook external references
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
11433 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
11434 if ${ac_cv_prog_cc_c99+:} false; then :
11435 $as_echo_n "(cached) " >&6
11436 else
11437 ac_cv_prog_cc_c99=no
11438 ac_save_CC=$CC
11439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11440 /* end confdefs.h. */
11441 #include <stdarg.h>
11442 #include <stdbool.h>
11443 #include <stdlib.h>
11444 #include <wchar.h>
11445 #include <stdio.h>
11446
11447 // Check varargs macros. These examples are taken from C99 6.10.3.5.
11448 #define debug(...) fprintf (stderr, __VA_ARGS__)
11449 #define showlist(...) puts (#__VA_ARGS__)
11450 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
11451 static void
11452 test_varargs_macros (void)
11453 {
11454 int x = 1234;
11455 int y = 5678;
11456 debug ("Flag");
11457 debug ("X = %d\n", x);
11458 showlist (The first, second, and third items.);
11459 report (x>y, "x is %d but y is %d", x, y);
11460 }
11461
11462 // Check long long types.
11463 #define BIG64 18446744073709551615ull
11464 #define BIG32 4294967295ul
11465 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
11466 #if !BIG_OK
11467 your preprocessor is broken;
11468 #endif
11469 #if BIG_OK
11470 #else
11471 your preprocessor is broken;
11472 #endif
11473 static long long int bignum = -9223372036854775807LL;
11474 static unsigned long long int ubignum = BIG64;
11475
11476 struct incomplete_array
11477 {
11478 int datasize;
11479 double data[];
11480 };
11481
11482 struct named_init {
11483 int number;
11484 const wchar_t *name;
11485 double average;
11486 };
11487
11488 typedef const char *ccp;
11489
11490 static inline int
11491 test_restrict (ccp restrict text)
11492 {
11493 // See if C++-style comments work.
11494 // Iterate through items via the restricted pointer.
11495 // Also check for declarations in for loops.
11496 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
11497 continue;
11498 return 0;
11499 }
11500
11501 // Check varargs and va_copy.
11502 static void
11503 test_varargs (const char *format, ...)
11504 {
11505 va_list args;
11506 va_start (args, format);
11507 va_list args_copy;
11508 va_copy (args_copy, args);
11509
11510 const char *str;
11511 int number;
11512 float fnumber;
11513
11514 while (*format)
11515 {
11516 switch (*format++)
11517 {
11518 case 's': // string
11519 str = va_arg (args_copy, const char *);
11520 break;
11521 case 'd': // int
11522 number = va_arg (args_copy, int);
11523 break;
11524 case 'f': // float
11525 fnumber = va_arg (args_copy, double);
11526 break;
11527 default:
11528 break;
11529 }
11530 }
11531 va_end (args_copy);
11532 va_end (args);
11533 }
11534
11535 int
11536 main ()
11537 {
11538
11539 // Check bool.
11540 _Bool success = false;
11541
11542 // Check restrict.
11543 if (test_restrict ("String literal") == 0)
11544 success = true;
11545 char *restrict newvar = "Another string";
11546
11547 // Check varargs.
11548 test_varargs ("s, d' f .", "string", 65, 34.234);
11549 test_varargs_macros ();
11550
11551 // Check flexible array members.
11552 struct incomplete_array *ia =
11553 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
11554 ia->datasize = 10;
11555 for (int i = 0; i < ia->datasize; ++i)
11556 ia->data[i] = i * 1.234;
11557
11558 // Check named initializers.
11559 struct named_init ni = {
11560 .number = 34,
11561 .name = L"Test wide string",
11562 .average = 543.34343,
11563 };
11564
11565 ni.number = 58;
11566
11567 int dynamic_array[ni.number];
11568 dynamic_array[ni.number - 1] = 543;
11569
11570 // work around unused variable warnings
11571 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
11572 || dynamic_array[ni.number - 1] != 543);
11573
11574 ;
11575 return 0;
11576 }
11577 _ACEOF
11578 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
11579 do
11580 CC="$ac_save_CC $ac_arg"
11581 if ac_fn_c_try_compile "$LINENO"; then :
11582 ac_cv_prog_cc_c99=$ac_arg
11583 fi
11584 rm -f core conftest.err conftest.$ac_objext
11585 test "x$ac_cv_prog_cc_c99" != "xno" && break
11586 done
11587 rm -f conftest.$ac_ext
11588 CC=$ac_save_CC
11589
11590 fi
11591 # AC_CACHE_VAL
11592 case "x$ac_cv_prog_cc_c99" in
11593 x)
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11595 $as_echo "none needed" >&6; } ;;
11596 xno)
11597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11598 $as_echo "unsupported" >&6; } ;;
11599 *)
11600 CC="$CC $ac_cv_prog_cc_c99"
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
11602 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
11603 esac
11604 if test "x$ac_cv_prog_cc_c99" != xno; then :
11605
11606 fi
11607
11608
11609
11610
11611
11612
11613 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
11614 if test "x$ac_cv_have_decl___clang__" = xyes; then :
11615 CLANGCC="yes"
11616 else
11617 CLANGCC="no"
11618 fi
11619
11620 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
11621 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
11622 INTELCC="yes"
11623 else
11624 INTELCC="no"
11625 fi
11626
11627 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
11628 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
11629 SUNCC="yes"
11630 else
11631 SUNCC="no"
11632 fi
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11643 if test -n "$ac_tool_prefix"; then
11644 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11645 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11647 $as_echo_n "checking for $ac_word... " >&6; }
11648 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11649 $as_echo_n "(cached) " >&6
11650 else
11651 case $PKG_CONFIG in
11652 [\\/]* | ?:[\\/]*)
11653 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11654 ;;
11655 *)
11656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11657 for as_dir in $PATH
11658 do
11659 IFS=$as_save_IFS
11660 test -z "$as_dir" && as_dir=.
11661 for ac_exec_ext in '' $ac_executable_extensions; do
11662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11663 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11665 break 2
11666 fi
11667 done
11668 done
11669 IFS=$as_save_IFS
11670
11671 ;;
11672 esac
11673 fi
11674 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11675 if test -n "$PKG_CONFIG"; then
11676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11677 $as_echo "$PKG_CONFIG" >&6; }
11678 else
11679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11680 $as_echo "no" >&6; }
11681 fi
11682
11683
11684 fi
11685 if test -z "$ac_cv_path_PKG_CONFIG"; then
11686 ac_pt_PKG_CONFIG=$PKG_CONFIG
11687 # Extract the first word of "pkg-config", so it can be a program name with args.
11688 set dummy pkg-config; ac_word=$2
11689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11690 $as_echo_n "checking for $ac_word... " >&6; }
11691 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11692 $as_echo_n "(cached) " >&6
11693 else
11694 case $ac_pt_PKG_CONFIG in
11695 [\\/]* | ?:[\\/]*)
11696 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11697 ;;
11698 *)
11699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11700 for as_dir in $PATH
11701 do
11702 IFS=$as_save_IFS
11703 test -z "$as_dir" && as_dir=.
11704 for ac_exec_ext in '' $ac_executable_extensions; do
11705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11706 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11708 break 2
11709 fi
11710 done
11711 done
11712 IFS=$as_save_IFS
11713
11714 ;;
11715 esac
11716 fi
11717 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11718 if test -n "$ac_pt_PKG_CONFIG"; then
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11720 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11721 else
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11723 $as_echo "no" >&6; }
11724 fi
11725
11726 if test "x$ac_pt_PKG_CONFIG" = x; then
11727 PKG_CONFIG=""
11728 else
11729 case $cross_compiling:$ac_tool_warned in
11730 yes:)
11731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11732 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11733 ac_tool_warned=yes ;;
11734 esac
11735 PKG_CONFIG=$ac_pt_PKG_CONFIG
11736 fi
11737 else
11738 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11739 fi
11740
11741 fi
11742 if test -n "$PKG_CONFIG"; then
11743 _pkg_min_version=0.9.0
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11745 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11746 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11748 $as_echo "yes" >&6; }
11749 else
11750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11751 $as_echo "no" >&6; }
11752 PKG_CONFIG=""
11753 fi
11754 fi
11755
11756
11757
11758
11759
11760 # Check whether --enable-selective-werror was given.
11761 if test "${enable_selective_werror+set}" = set; then :
11762 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
11763 else
11764 SELECTIVE_WERROR=yes
11765 fi
11766
11767
11768
11769
11770
11771 # -v is too short to test reliably with XORG_TESTSET_CFLAG
11772 if test "x$SUNCC" = "xyes"; then
11773 BASE_CFLAGS="-v"
11774 else
11775 BASE_CFLAGS=""
11776 fi
11777
11778 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792 xorg_testset_save_CFLAGS="$CFLAGS"
11793
11794 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11795 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11797 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11798 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11799 $as_echo_n "(cached) " >&6
11800 else
11801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11802 /* end confdefs.h. */
11803 int i;
11804 _ACEOF
11805 if ac_fn_c_try_compile "$LINENO"; then :
11806 xorg_cv_cc_flag_unknown_warning_option=yes
11807 else
11808 xorg_cv_cc_flag_unknown_warning_option=no
11809 fi
11810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11811 fi
11812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11813 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11814 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11815 CFLAGS="$xorg_testset_save_CFLAGS"
11816 fi
11817
11818 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11819 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11820 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11821 fi
11822 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11824 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11825 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11826 $as_echo_n "(cached) " >&6
11827 else
11828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11829 /* end confdefs.h. */
11830 int i;
11831 _ACEOF
11832 if ac_fn_c_try_compile "$LINENO"; then :
11833 xorg_cv_cc_flag_unused_command_line_argument=yes
11834 else
11835 xorg_cv_cc_flag_unused_command_line_argument=no
11836 fi
11837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11838 fi
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11840 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11841 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11842 CFLAGS="$xorg_testset_save_CFLAGS"
11843 fi
11844
11845 found="no"
11846
11847 if test $found = "no" ; then
11848 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11849 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11850 fi
11851
11852 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11853 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11854 fi
11855
11856 CFLAGS="$CFLAGS -Wall"
11857
11858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wall" >&5
11859 $as_echo_n "checking if $CC supports-Wall... " >&6; }
11860 cacheid=xorg_cv_cc_flag__Wall
11861 if eval \${$cacheid+:} false; then :
11862 $as_echo_n "(cached) " >&6
11863 else
11864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11865 /* end confdefs.h. */
11866 int i;
11867 int
11868 main ()
11869 {
11870
11871 ;
11872 return 0;
11873 }
11874 _ACEOF
11875 if ac_fn_c_try_link "$LINENO"; then :
11876 eval $cacheid=yes
11877 else
11878 eval $cacheid=no
11879 fi
11880 rm -f core conftest.err conftest.$ac_objext \
11881 conftest$ac_exeext conftest.$ac_ext
11882 fi
11883
11884
11885 CFLAGS="$xorg_testset_save_CFLAGS"
11886
11887 eval supported=\$$cacheid
11888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11889 $as_echo "$supported" >&6; }
11890 if test "$supported" = "yes" ; then
11891 BASE_CFLAGS="$BASE_CFLAGS -Wall"
11892 found="yes"
11893 fi
11894 fi
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910 xorg_testset_save_CFLAGS="$CFLAGS"
11911
11912 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11913 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11915 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11916 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11917 $as_echo_n "(cached) " >&6
11918 else
11919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11920 /* end confdefs.h. */
11921 int i;
11922 _ACEOF
11923 if ac_fn_c_try_compile "$LINENO"; then :
11924 xorg_cv_cc_flag_unknown_warning_option=yes
11925 else
11926 xorg_cv_cc_flag_unknown_warning_option=no
11927 fi
11928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11929 fi
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11931 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11932 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11933 CFLAGS="$xorg_testset_save_CFLAGS"
11934 fi
11935
11936 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11937 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11938 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11939 fi
11940 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11942 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11943 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11944 $as_echo_n "(cached) " >&6
11945 else
11946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11947 /* end confdefs.h. */
11948 int i;
11949 _ACEOF
11950 if ac_fn_c_try_compile "$LINENO"; then :
11951 xorg_cv_cc_flag_unused_command_line_argument=yes
11952 else
11953 xorg_cv_cc_flag_unused_command_line_argument=no
11954 fi
11955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11956 fi
11957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11958 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11959 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11960 CFLAGS="$xorg_testset_save_CFLAGS"
11961 fi
11962
11963 found="no"
11964
11965 if test $found = "no" ; then
11966 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11967 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11968 fi
11969
11970 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11971 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11972 fi
11973
11974 CFLAGS="$CFLAGS -Wpointer-arith"
11975
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-arith" >&5
11977 $as_echo_n "checking if $CC supports-Wpointer-arith... " >&6; }
11978 cacheid=xorg_cv_cc_flag__Wpointer_arith
11979 if eval \${$cacheid+:} false; then :
11980 $as_echo_n "(cached) " >&6
11981 else
11982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11983 /* end confdefs.h. */
11984 int i;
11985 int
11986 main ()
11987 {
11988
11989 ;
11990 return 0;
11991 }
11992 _ACEOF
11993 if ac_fn_c_try_link "$LINENO"; then :
11994 eval $cacheid=yes
11995 else
11996 eval $cacheid=no
11997 fi
11998 rm -f core conftest.err conftest.$ac_objext \
11999 conftest$ac_exeext conftest.$ac_ext
12000 fi
12001
12002
12003 CFLAGS="$xorg_testset_save_CFLAGS"
12004
12005 eval supported=\$$cacheid
12006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12007 $as_echo "$supported" >&6; }
12008 if test "$supported" = "yes" ; then
12009 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
12010 found="yes"
12011 fi
12012 fi
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028 xorg_testset_save_CFLAGS="$CFLAGS"
12029
12030 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12031 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12033 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12034 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12035 $as_echo_n "(cached) " >&6
12036 else
12037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12038 /* end confdefs.h. */
12039 int i;
12040 _ACEOF
12041 if ac_fn_c_try_compile "$LINENO"; then :
12042 xorg_cv_cc_flag_unknown_warning_option=yes
12043 else
12044 xorg_cv_cc_flag_unknown_warning_option=no
12045 fi
12046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12047 fi
12048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12049 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12050 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12051 CFLAGS="$xorg_testset_save_CFLAGS"
12052 fi
12053
12054 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12055 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12056 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12057 fi
12058 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12060 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12061 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12062 $as_echo_n "(cached) " >&6
12063 else
12064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12065 /* end confdefs.h. */
12066 int i;
12067 _ACEOF
12068 if ac_fn_c_try_compile "$LINENO"; then :
12069 xorg_cv_cc_flag_unused_command_line_argument=yes
12070 else
12071 xorg_cv_cc_flag_unused_command_line_argument=no
12072 fi
12073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12074 fi
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12076 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12077 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12078 CFLAGS="$xorg_testset_save_CFLAGS"
12079 fi
12080
12081 found="no"
12082
12083 if test $found = "no" ; then
12084 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12085 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12086 fi
12087
12088 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12089 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12090 fi
12091
12092 CFLAGS="$CFLAGS -Wmissing-declarations"
12093
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-declarations" >&5
12095 $as_echo_n "checking if $CC supports-Wmissing-declarations... " >&6; }
12096 cacheid=xorg_cv_cc_flag__Wmissing_declarations
12097 if eval \${$cacheid+:} false; then :
12098 $as_echo_n "(cached) " >&6
12099 else
12100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12101 /* end confdefs.h. */
12102 int i;
12103 int
12104 main ()
12105 {
12106
12107 ;
12108 return 0;
12109 }
12110 _ACEOF
12111 if ac_fn_c_try_link "$LINENO"; then :
12112 eval $cacheid=yes
12113 else
12114 eval $cacheid=no
12115 fi
12116 rm -f core conftest.err conftest.$ac_objext \
12117 conftest$ac_exeext conftest.$ac_ext
12118 fi
12119
12120
12121 CFLAGS="$xorg_testset_save_CFLAGS"
12122
12123 eval supported=\$$cacheid
12124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12125 $as_echo "$supported" >&6; }
12126 if test "$supported" = "yes" ; then
12127 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
12128 found="yes"
12129 fi
12130 fi
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146 xorg_testset_save_CFLAGS="$CFLAGS"
12147
12148 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12149 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12151 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12152 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12153 $as_echo_n "(cached) " >&6
12154 else
12155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12156 /* end confdefs.h. */
12157 int i;
12158 _ACEOF
12159 if ac_fn_c_try_compile "$LINENO"; then :
12160 xorg_cv_cc_flag_unknown_warning_option=yes
12161 else
12162 xorg_cv_cc_flag_unknown_warning_option=no
12163 fi
12164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12165 fi
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12167 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12168 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12169 CFLAGS="$xorg_testset_save_CFLAGS"
12170 fi
12171
12172 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12173 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12174 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12175 fi
12176 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12178 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12179 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12180 $as_echo_n "(cached) " >&6
12181 else
12182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12183 /* end confdefs.h. */
12184 int i;
12185 _ACEOF
12186 if ac_fn_c_try_compile "$LINENO"; then :
12187 xorg_cv_cc_flag_unused_command_line_argument=yes
12188 else
12189 xorg_cv_cc_flag_unused_command_line_argument=no
12190 fi
12191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12192 fi
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12194 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12195 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12196 CFLAGS="$xorg_testset_save_CFLAGS"
12197 fi
12198
12199 found="no"
12200
12201 if test $found = "no" ; then
12202 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12203 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12204 fi
12205
12206 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12207 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12208 fi
12209
12210 CFLAGS="$CFLAGS -Wformat=2"
12211
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat=2" >&5
12213 $as_echo_n "checking if $CC supports-Wformat=2... " >&6; }
12214 cacheid=xorg_cv_cc_flag__Wformat_2
12215 if eval \${$cacheid+:} false; then :
12216 $as_echo_n "(cached) " >&6
12217 else
12218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12219 /* end confdefs.h. */
12220 int i;
12221 int
12222 main ()
12223 {
12224
12225 ;
12226 return 0;
12227 }
12228 _ACEOF
12229 if ac_fn_c_try_link "$LINENO"; then :
12230 eval $cacheid=yes
12231 else
12232 eval $cacheid=no
12233 fi
12234 rm -f core conftest.err conftest.$ac_objext \
12235 conftest$ac_exeext conftest.$ac_ext
12236 fi
12237
12238
12239 CFLAGS="$xorg_testset_save_CFLAGS"
12240
12241 eval supported=\$$cacheid
12242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12243 $as_echo "$supported" >&6; }
12244 if test "$supported" = "yes" ; then
12245 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
12246 found="yes"
12247 fi
12248 fi
12249
12250 if test $found = "no" ; then
12251 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12252 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12253 fi
12254
12255 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12256 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12257 fi
12258
12259 CFLAGS="$CFLAGS -Wformat"
12260
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat" >&5
12262 $as_echo_n "checking if $CC supports-Wformat... " >&6; }
12263 cacheid=xorg_cv_cc_flag__Wformat
12264 if eval \${$cacheid+:} false; then :
12265 $as_echo_n "(cached) " >&6
12266 else
12267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12268 /* end confdefs.h. */
12269 int i;
12270 int
12271 main ()
12272 {
12273
12274 ;
12275 return 0;
12276 }
12277 _ACEOF
12278 if ac_fn_c_try_link "$LINENO"; then :
12279 eval $cacheid=yes
12280 else
12281 eval $cacheid=no
12282 fi
12283 rm -f core conftest.err conftest.$ac_objext \
12284 conftest$ac_exeext conftest.$ac_ext
12285 fi
12286
12287
12288 CFLAGS="$xorg_testset_save_CFLAGS"
12289
12290 eval supported=\$$cacheid
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12292 $as_echo "$supported" >&6; }
12293 if test "$supported" = "yes" ; then
12294 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
12295 found="yes"
12296 fi
12297 fi
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310
12311
12312
12313
12314
12315 xorg_testset_save_CFLAGS="$CFLAGS"
12316
12317 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12318 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12320 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12321 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12322 $as_echo_n "(cached) " >&6
12323 else
12324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12325 /* end confdefs.h. */
12326 int i;
12327 _ACEOF
12328 if ac_fn_c_try_compile "$LINENO"; then :
12329 xorg_cv_cc_flag_unknown_warning_option=yes
12330 else
12331 xorg_cv_cc_flag_unknown_warning_option=no
12332 fi
12333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12334 fi
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12336 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12337 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12338 CFLAGS="$xorg_testset_save_CFLAGS"
12339 fi
12340
12341 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12342 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12343 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12344 fi
12345 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12347 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12348 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12349 $as_echo_n "(cached) " >&6
12350 else
12351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12352 /* end confdefs.h. */
12353 int i;
12354 _ACEOF
12355 if ac_fn_c_try_compile "$LINENO"; then :
12356 xorg_cv_cc_flag_unused_command_line_argument=yes
12357 else
12358 xorg_cv_cc_flag_unused_command_line_argument=no
12359 fi
12360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12361 fi
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12363 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12364 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12365 CFLAGS="$xorg_testset_save_CFLAGS"
12366 fi
12367
12368 found="no"
12369
12370 if test $found = "no" ; then
12371 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12372 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12373 fi
12374
12375 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12376 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12377 fi
12378
12379 CFLAGS="$CFLAGS -Wstrict-prototypes"
12380
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wstrict-prototypes" >&5
12382 $as_echo_n "checking if $CC supports-Wstrict-prototypes... " >&6; }
12383 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
12384 if eval \${$cacheid+:} false; then :
12385 $as_echo_n "(cached) " >&6
12386 else
12387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12388 /* end confdefs.h. */
12389 int i;
12390 int
12391 main ()
12392 {
12393
12394 ;
12395 return 0;
12396 }
12397 _ACEOF
12398 if ac_fn_c_try_link "$LINENO"; then :
12399 eval $cacheid=yes
12400 else
12401 eval $cacheid=no
12402 fi
12403 rm -f core conftest.err conftest.$ac_objext \
12404 conftest$ac_exeext conftest.$ac_ext
12405 fi
12406
12407
12408 CFLAGS="$xorg_testset_save_CFLAGS"
12409
12410 eval supported=\$$cacheid
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12412 $as_echo "$supported" >&6; }
12413 if test "$supported" = "yes" ; then
12414 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
12415 found="yes"
12416 fi
12417 fi
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431
12432
12433 xorg_testset_save_CFLAGS="$CFLAGS"
12434
12435 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12436 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12438 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12439 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12440 $as_echo_n "(cached) " >&6
12441 else
12442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12443 /* end confdefs.h. */
12444 int i;
12445 _ACEOF
12446 if ac_fn_c_try_compile "$LINENO"; then :
12447 xorg_cv_cc_flag_unknown_warning_option=yes
12448 else
12449 xorg_cv_cc_flag_unknown_warning_option=no
12450 fi
12451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12452 fi
12453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12454 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12455 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12456 CFLAGS="$xorg_testset_save_CFLAGS"
12457 fi
12458
12459 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12460 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12461 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12462 fi
12463 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12465 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12466 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12467 $as_echo_n "(cached) " >&6
12468 else
12469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12470 /* end confdefs.h. */
12471 int i;
12472 _ACEOF
12473 if ac_fn_c_try_compile "$LINENO"; then :
12474 xorg_cv_cc_flag_unused_command_line_argument=yes
12475 else
12476 xorg_cv_cc_flag_unused_command_line_argument=no
12477 fi
12478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12479 fi
12480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12481 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12482 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12483 CFLAGS="$xorg_testset_save_CFLAGS"
12484 fi
12485
12486 found="no"
12487
12488 if test $found = "no" ; then
12489 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12490 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12491 fi
12492
12493 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12494 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12495 fi
12496
12497 CFLAGS="$CFLAGS -Wmissing-prototypes"
12498
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-prototypes" >&5
12500 $as_echo_n "checking if $CC supports-Wmissing-prototypes... " >&6; }
12501 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
12502 if eval \${$cacheid+:} false; then :
12503 $as_echo_n "(cached) " >&6
12504 else
12505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12506 /* end confdefs.h. */
12507 int i;
12508 int
12509 main ()
12510 {
12511
12512 ;
12513 return 0;
12514 }
12515 _ACEOF
12516 if ac_fn_c_try_link "$LINENO"; then :
12517 eval $cacheid=yes
12518 else
12519 eval $cacheid=no
12520 fi
12521 rm -f core conftest.err conftest.$ac_objext \
12522 conftest$ac_exeext conftest.$ac_ext
12523 fi
12524
12525
12526 CFLAGS="$xorg_testset_save_CFLAGS"
12527
12528 eval supported=\$$cacheid
12529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12530 $as_echo "$supported" >&6; }
12531 if test "$supported" = "yes" ; then
12532 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
12533 found="yes"
12534 fi
12535 fi
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548
12549
12550
12551 xorg_testset_save_CFLAGS="$CFLAGS"
12552
12553 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12554 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12556 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12557 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12558 $as_echo_n "(cached) " >&6
12559 else
12560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12561 /* end confdefs.h. */
12562 int i;
12563 _ACEOF
12564 if ac_fn_c_try_compile "$LINENO"; then :
12565 xorg_cv_cc_flag_unknown_warning_option=yes
12566 else
12567 xorg_cv_cc_flag_unknown_warning_option=no
12568 fi
12569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12570 fi
12571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12572 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12573 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12574 CFLAGS="$xorg_testset_save_CFLAGS"
12575 fi
12576
12577 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12578 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12579 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12580 fi
12581 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12583 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12584 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12585 $as_echo_n "(cached) " >&6
12586 else
12587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12588 /* end confdefs.h. */
12589 int i;
12590 _ACEOF
12591 if ac_fn_c_try_compile "$LINENO"; then :
12592 xorg_cv_cc_flag_unused_command_line_argument=yes
12593 else
12594 xorg_cv_cc_flag_unused_command_line_argument=no
12595 fi
12596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12597 fi
12598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12599 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12600 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12601 CFLAGS="$xorg_testset_save_CFLAGS"
12602 fi
12603
12604 found="no"
12605
12606 if test $found = "no" ; then
12607 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12608 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12609 fi
12610
12611 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12612 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12613 fi
12614
12615 CFLAGS="$CFLAGS -Wnested-externs"
12616
12617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnested-externs" >&5
12618 $as_echo_n "checking if $CC supports-Wnested-externs... " >&6; }
12619 cacheid=xorg_cv_cc_flag__Wnested_externs
12620 if eval \${$cacheid+:} false; then :
12621 $as_echo_n "(cached) " >&6
12622 else
12623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12624 /* end confdefs.h. */
12625 int i;
12626 int
12627 main ()
12628 {
12629
12630 ;
12631 return 0;
12632 }
12633 _ACEOF
12634 if ac_fn_c_try_link "$LINENO"; then :
12635 eval $cacheid=yes
12636 else
12637 eval $cacheid=no
12638 fi
12639 rm -f core conftest.err conftest.$ac_objext \
12640 conftest$ac_exeext conftest.$ac_ext
12641 fi
12642
12643
12644 CFLAGS="$xorg_testset_save_CFLAGS"
12645
12646 eval supported=\$$cacheid
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12648 $as_echo "$supported" >&6; }
12649 if test "$supported" = "yes" ; then
12650 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
12651 found="yes"
12652 fi
12653 fi
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669 xorg_testset_save_CFLAGS="$CFLAGS"
12670
12671 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12672 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12674 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12675 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12676 $as_echo_n "(cached) " >&6
12677 else
12678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12679 /* end confdefs.h. */
12680 int i;
12681 _ACEOF
12682 if ac_fn_c_try_compile "$LINENO"; then :
12683 xorg_cv_cc_flag_unknown_warning_option=yes
12684 else
12685 xorg_cv_cc_flag_unknown_warning_option=no
12686 fi
12687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12688 fi
12689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12690 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12691 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12692 CFLAGS="$xorg_testset_save_CFLAGS"
12693 fi
12694
12695 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12696 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12697 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12698 fi
12699 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12701 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12702 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12703 $as_echo_n "(cached) " >&6
12704 else
12705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12706 /* end confdefs.h. */
12707 int i;
12708 _ACEOF
12709 if ac_fn_c_try_compile "$LINENO"; then :
12710 xorg_cv_cc_flag_unused_command_line_argument=yes
12711 else
12712 xorg_cv_cc_flag_unused_command_line_argument=no
12713 fi
12714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12715 fi
12716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12717 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12718 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12719 CFLAGS="$xorg_testset_save_CFLAGS"
12720 fi
12721
12722 found="no"
12723
12724 if test $found = "no" ; then
12725 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12726 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12727 fi
12728
12729 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12730 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12731 fi
12732
12733 CFLAGS="$CFLAGS -Wbad-function-cast"
12734
12735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wbad-function-cast" >&5
12736 $as_echo_n "checking if $CC supports-Wbad-function-cast... " >&6; }
12737 cacheid=xorg_cv_cc_flag__Wbad_function_cast
12738 if eval \${$cacheid+:} false; then :
12739 $as_echo_n "(cached) " >&6
12740 else
12741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12742 /* end confdefs.h. */
12743 int i;
12744 int
12745 main ()
12746 {
12747
12748 ;
12749 return 0;
12750 }
12751 _ACEOF
12752 if ac_fn_c_try_link "$LINENO"; then :
12753 eval $cacheid=yes
12754 else
12755 eval $cacheid=no
12756 fi
12757 rm -f core conftest.err conftest.$ac_objext \
12758 conftest$ac_exeext conftest.$ac_ext
12759 fi
12760
12761
12762 CFLAGS="$xorg_testset_save_CFLAGS"
12763
12764 eval supported=\$$cacheid
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12766 $as_echo "$supported" >&6; }
12767 if test "$supported" = "yes" ; then
12768 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
12769 found="yes"
12770 fi
12771 fi
12772
12773
12774
12775
12776
12777
12778
12779
12780
12781
12782
12783
12784
12785
12786
12787 xorg_testset_save_CFLAGS="$CFLAGS"
12788
12789 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12790 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12792 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12793 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12794 $as_echo_n "(cached) " >&6
12795 else
12796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12797 /* end confdefs.h. */
12798 int i;
12799 _ACEOF
12800 if ac_fn_c_try_compile "$LINENO"; then :
12801 xorg_cv_cc_flag_unknown_warning_option=yes
12802 else
12803 xorg_cv_cc_flag_unknown_warning_option=no
12804 fi
12805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12806 fi
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12808 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12809 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12810 CFLAGS="$xorg_testset_save_CFLAGS"
12811 fi
12812
12813 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12814 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12815 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12816 fi
12817 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12819 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12820 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12821 $as_echo_n "(cached) " >&6
12822 else
12823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12824 /* end confdefs.h. */
12825 int i;
12826 _ACEOF
12827 if ac_fn_c_try_compile "$LINENO"; then :
12828 xorg_cv_cc_flag_unused_command_line_argument=yes
12829 else
12830 xorg_cv_cc_flag_unused_command_line_argument=no
12831 fi
12832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12833 fi
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12835 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12836 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12837 CFLAGS="$xorg_testset_save_CFLAGS"
12838 fi
12839
12840 found="no"
12841
12842 if test $found = "no" ; then
12843 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12844 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12845 fi
12846
12847 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12848 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12849 fi
12850
12851 CFLAGS="$CFLAGS -Wold-style-definition"
12852
12853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wold-style-definition" >&5
12854 $as_echo_n "checking if $CC supports-Wold-style-definition... " >&6; }
12855 cacheid=xorg_cv_cc_flag__Wold_style_definition
12856 if eval \${$cacheid+:} false; then :
12857 $as_echo_n "(cached) " >&6
12858 else
12859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12860 /* end confdefs.h. */
12861 int i;
12862 int
12863 main ()
12864 {
12865
12866 ;
12867 return 0;
12868 }
12869 _ACEOF
12870 if ac_fn_c_try_link "$LINENO"; then :
12871 eval $cacheid=yes
12872 else
12873 eval $cacheid=no
12874 fi
12875 rm -f core conftest.err conftest.$ac_objext \
12876 conftest$ac_exeext conftest.$ac_ext
12877 fi
12878
12879
12880 CFLAGS="$xorg_testset_save_CFLAGS"
12881
12882 eval supported=\$$cacheid
12883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12884 $as_echo "$supported" >&6; }
12885 if test "$supported" = "yes" ; then
12886 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
12887 found="yes"
12888 fi
12889 fi
12890
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901
12902
12903
12904
12905 xorg_testset_save_CFLAGS="$CFLAGS"
12906
12907 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12908 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12910 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12911 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12912 $as_echo_n "(cached) " >&6
12913 else
12914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12915 /* end confdefs.h. */
12916 int i;
12917 _ACEOF
12918 if ac_fn_c_try_compile "$LINENO"; then :
12919 xorg_cv_cc_flag_unknown_warning_option=yes
12920 else
12921 xorg_cv_cc_flag_unknown_warning_option=no
12922 fi
12923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12924 fi
12925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12926 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12927 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12928 CFLAGS="$xorg_testset_save_CFLAGS"
12929 fi
12930
12931 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12932 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12933 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12934 fi
12935 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12937 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12938 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12939 $as_echo_n "(cached) " >&6
12940 else
12941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12942 /* end confdefs.h. */
12943 int i;
12944 _ACEOF
12945 if ac_fn_c_try_compile "$LINENO"; then :
12946 xorg_cv_cc_flag_unused_command_line_argument=yes
12947 else
12948 xorg_cv_cc_flag_unused_command_line_argument=no
12949 fi
12950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12951 fi
12952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12953 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12954 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12955 CFLAGS="$xorg_testset_save_CFLAGS"
12956 fi
12957
12958 found="no"
12959
12960 if test $found = "no" ; then
12961 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12962 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12963 fi
12964
12965 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12966 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12967 fi
12968
12969 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
12970
12971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wdeclaration-after-statement" >&5
12972 $as_echo_n "checking if $CC supports-Wdeclaration-after-statement... " >&6; }
12973 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
12974 if eval \${$cacheid+:} false; then :
12975 $as_echo_n "(cached) " >&6
12976 else
12977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12978 /* end confdefs.h. */
12979 int i;
12980 int
12981 main ()
12982 {
12983
12984 ;
12985 return 0;
12986 }
12987 _ACEOF
12988 if ac_fn_c_try_link "$LINENO"; then :
12989 eval $cacheid=yes
12990 else
12991 eval $cacheid=no
12992 fi
12993 rm -f core conftest.err conftest.$ac_objext \
12994 conftest$ac_exeext conftest.$ac_ext
12995 fi
12996
12997
12998 CFLAGS="$xorg_testset_save_CFLAGS"
12999
13000 eval supported=\$$cacheid
13001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13002 $as_echo "$supported" >&6; }
13003 if test "$supported" = "yes" ; then
13004 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
13005 found="yes"
13006 fi
13007 fi
13008
13009
13010
13011
13012
13013 # This chunk adds additional warnings that could catch undesired effects.
13014
13015
13016
13017
13018
13019
13020
13021
13022
13023
13024
13025
13026
13027 xorg_testset_save_CFLAGS="$CFLAGS"
13028
13029 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13030 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13032 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13033 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13034 $as_echo_n "(cached) " >&6
13035 else
13036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13037 /* end confdefs.h. */
13038 int i;
13039 _ACEOF
13040 if ac_fn_c_try_compile "$LINENO"; then :
13041 xorg_cv_cc_flag_unknown_warning_option=yes
13042 else
13043 xorg_cv_cc_flag_unknown_warning_option=no
13044 fi
13045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13046 fi
13047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13048 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13049 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13050 CFLAGS="$xorg_testset_save_CFLAGS"
13051 fi
13052
13053 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13054 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13055 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13056 fi
13057 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13059 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13060 if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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 _ACEOF
13067 if ac_fn_c_try_compile "$LINENO"; then :
13068 xorg_cv_cc_flag_unused_command_line_argument=yes
13069 else
13070 xorg_cv_cc_flag_unused_command_line_argument=no
13071 fi
13072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13073 fi
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13075 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13076 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13077 CFLAGS="$xorg_testset_save_CFLAGS"
13078 fi
13079
13080 found="no"
13081
13082 if test $found = "no" ; then
13083 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13084 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13085 fi
13086
13087 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13088 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13089 fi
13090
13091 CFLAGS="$CFLAGS -Wunused"
13092
13093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wunused" >&5
13094 $as_echo_n "checking if $CC supports-Wunused... " >&6; }
13095 cacheid=xorg_cv_cc_flag__Wunused
13096 if eval \${$cacheid+:} false; then :
13097 $as_echo_n "(cached) " >&6
13098 else
13099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13100 /* end confdefs.h. */
13101 int i;
13102 int
13103 main ()
13104 {
13105
13106 ;
13107 return 0;
13108 }
13109 _ACEOF
13110 if ac_fn_c_try_link "$LINENO"; then :
13111 eval $cacheid=yes
13112 else
13113 eval $cacheid=no
13114 fi
13115 rm -f core conftest.err conftest.$ac_objext \
13116 conftest$ac_exeext conftest.$ac_ext
13117 fi
13118
13119
13120 CFLAGS="$xorg_testset_save_CFLAGS"
13121
13122 eval supported=\$$cacheid
13123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13124 $as_echo "$supported" >&6; }
13125 if test "$supported" = "yes" ; then
13126 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
13127 found="yes"
13128 fi
13129 fi
13130
13131
13132
13133
13134
13135
13136
13137
13138
13139
13140
13141
13142
13143
13144
13145 xorg_testset_save_CFLAGS="$CFLAGS"
13146
13147 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13148 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13150 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13151 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13152 $as_echo_n "(cached) " >&6
13153 else
13154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13155 /* end confdefs.h. */
13156 int i;
13157 _ACEOF
13158 if ac_fn_c_try_compile "$LINENO"; then :
13159 xorg_cv_cc_flag_unknown_warning_option=yes
13160 else
13161 xorg_cv_cc_flag_unknown_warning_option=no
13162 fi
13163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13164 fi
13165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13166 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13167 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13168 CFLAGS="$xorg_testset_save_CFLAGS"
13169 fi
13170
13171 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13172 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13173 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13174 fi
13175 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13177 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13178 if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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 _ACEOF
13185 if ac_fn_c_try_compile "$LINENO"; then :
13186 xorg_cv_cc_flag_unused_command_line_argument=yes
13187 else
13188 xorg_cv_cc_flag_unused_command_line_argument=no
13189 fi
13190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13191 fi
13192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13193 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13194 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13195 CFLAGS="$xorg_testset_save_CFLAGS"
13196 fi
13197
13198 found="no"
13199
13200 if test $found = "no" ; then
13201 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13202 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13203 fi
13204
13205 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13206 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13207 fi
13208
13209 CFLAGS="$CFLAGS -Wuninitialized"
13210
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wuninitialized" >&5
13212 $as_echo_n "checking if $CC supports-Wuninitialized... " >&6; }
13213 cacheid=xorg_cv_cc_flag__Wuninitialized
13214 if eval \${$cacheid+:} false; then :
13215 $as_echo_n "(cached) " >&6
13216 else
13217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13218 /* end confdefs.h. */
13219 int i;
13220 int
13221 main ()
13222 {
13223
13224 ;
13225 return 0;
13226 }
13227 _ACEOF
13228 if ac_fn_c_try_link "$LINENO"; then :
13229 eval $cacheid=yes
13230 else
13231 eval $cacheid=no
13232 fi
13233 rm -f core conftest.err conftest.$ac_objext \
13234 conftest$ac_exeext conftest.$ac_ext
13235 fi
13236
13237
13238 CFLAGS="$xorg_testset_save_CFLAGS"
13239
13240 eval supported=\$$cacheid
13241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13242 $as_echo "$supported" >&6; }
13243 if test "$supported" = "yes" ; then
13244 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
13245 found="yes"
13246 fi
13247 fi
13248
13249
13250
13251
13252
13253
13254
13255
13256
13257
13258
13259
13260
13261
13262
13263 xorg_testset_save_CFLAGS="$CFLAGS"
13264
13265 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13266 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13268 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13269 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13270 $as_echo_n "(cached) " >&6
13271 else
13272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13273 /* end confdefs.h. */
13274 int i;
13275 _ACEOF
13276 if ac_fn_c_try_compile "$LINENO"; then :
13277 xorg_cv_cc_flag_unknown_warning_option=yes
13278 else
13279 xorg_cv_cc_flag_unknown_warning_option=no
13280 fi
13281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13282 fi
13283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13284 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13285 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13286 CFLAGS="$xorg_testset_save_CFLAGS"
13287 fi
13288
13289 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13290 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13291 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13292 fi
13293 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13295 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13296 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13297 $as_echo_n "(cached) " >&6
13298 else
13299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13300 /* end confdefs.h. */
13301 int i;
13302 _ACEOF
13303 if ac_fn_c_try_compile "$LINENO"; then :
13304 xorg_cv_cc_flag_unused_command_line_argument=yes
13305 else
13306 xorg_cv_cc_flag_unused_command_line_argument=no
13307 fi
13308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13309 fi
13310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13311 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13312 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13313 CFLAGS="$xorg_testset_save_CFLAGS"
13314 fi
13315
13316 found="no"
13317
13318 if test $found = "no" ; then
13319 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13320 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13321 fi
13322
13323 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13324 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13325 fi
13326
13327 CFLAGS="$CFLAGS -Wshadow"
13328
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wshadow" >&5
13330 $as_echo_n "checking if $CC supports-Wshadow... " >&6; }
13331 cacheid=xorg_cv_cc_flag__Wshadow
13332 if eval \${$cacheid+:} false; then :
13333 $as_echo_n "(cached) " >&6
13334 else
13335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13336 /* end confdefs.h. */
13337 int i;
13338 int
13339 main ()
13340 {
13341
13342 ;
13343 return 0;
13344 }
13345 _ACEOF
13346 if ac_fn_c_try_link "$LINENO"; then :
13347 eval $cacheid=yes
13348 else
13349 eval $cacheid=no
13350 fi
13351 rm -f core conftest.err conftest.$ac_objext \
13352 conftest$ac_exeext conftest.$ac_ext
13353 fi
13354
13355
13356 CFLAGS="$xorg_testset_save_CFLAGS"
13357
13358 eval supported=\$$cacheid
13359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13360 $as_echo "$supported" >&6; }
13361 if test "$supported" = "yes" ; then
13362 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
13363 found="yes"
13364 fi
13365 fi
13366
13367
13368
13369
13370
13371
13372
13373
13374
13375
13376
13377
13378
13379
13380
13381 xorg_testset_save_CFLAGS="$CFLAGS"
13382
13383 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13384 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13386 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13387 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13388 $as_echo_n "(cached) " >&6
13389 else
13390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13391 /* end confdefs.h. */
13392 int i;
13393 _ACEOF
13394 if ac_fn_c_try_compile "$LINENO"; then :
13395 xorg_cv_cc_flag_unknown_warning_option=yes
13396 else
13397 xorg_cv_cc_flag_unknown_warning_option=no
13398 fi
13399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13400 fi
13401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13402 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13403 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13404 CFLAGS="$xorg_testset_save_CFLAGS"
13405 fi
13406
13407 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13408 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13409 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13410 fi
13411 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13413 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13414 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13415 $as_echo_n "(cached) " >&6
13416 else
13417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13418 /* end confdefs.h. */
13419 int i;
13420 _ACEOF
13421 if ac_fn_c_try_compile "$LINENO"; then :
13422 xorg_cv_cc_flag_unused_command_line_argument=yes
13423 else
13424 xorg_cv_cc_flag_unused_command_line_argument=no
13425 fi
13426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13427 fi
13428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13429 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13430 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13431 CFLAGS="$xorg_testset_save_CFLAGS"
13432 fi
13433
13434 found="no"
13435
13436 if test $found = "no" ; then
13437 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13438 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13439 fi
13440
13441 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13442 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13443 fi
13444
13445 CFLAGS="$CFLAGS -Wcast-qual"
13446
13447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wcast-qual" >&5
13448 $as_echo_n "checking if $CC supports-Wcast-qual... " >&6; }
13449 cacheid=xorg_cv_cc_flag__Wcast_qual
13450 if eval \${$cacheid+:} false; then :
13451 $as_echo_n "(cached) " >&6
13452 else
13453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13454 /* end confdefs.h. */
13455 int i;
13456 int
13457 main ()
13458 {
13459
13460 ;
13461 return 0;
13462 }
13463 _ACEOF
13464 if ac_fn_c_try_link "$LINENO"; then :
13465 eval $cacheid=yes
13466 else
13467 eval $cacheid=no
13468 fi
13469 rm -f core conftest.err conftest.$ac_objext \
13470 conftest$ac_exeext conftest.$ac_ext
13471 fi
13472
13473
13474 CFLAGS="$xorg_testset_save_CFLAGS"
13475
13476 eval supported=\$$cacheid
13477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13478 $as_echo "$supported" >&6; }
13479 if test "$supported" = "yes" ; then
13480 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
13481 found="yes"
13482 fi
13483 fi
13484
13485
13486
13487
13488
13489
13490
13491
13492
13493
13494
13495
13496
13497
13498
13499 xorg_testset_save_CFLAGS="$CFLAGS"
13500
13501 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13502 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13504 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13505 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13506 $as_echo_n "(cached) " >&6
13507 else
13508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13509 /* end confdefs.h. */
13510 int i;
13511 _ACEOF
13512 if ac_fn_c_try_compile "$LINENO"; then :
13513 xorg_cv_cc_flag_unknown_warning_option=yes
13514 else
13515 xorg_cv_cc_flag_unknown_warning_option=no
13516 fi
13517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13518 fi
13519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13520 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13521 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13522 CFLAGS="$xorg_testset_save_CFLAGS"
13523 fi
13524
13525 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13526 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13527 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13528 fi
13529 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13531 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13532 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13533 $as_echo_n "(cached) " >&6
13534 else
13535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13536 /* end confdefs.h. */
13537 int i;
13538 _ACEOF
13539 if ac_fn_c_try_compile "$LINENO"; then :
13540 xorg_cv_cc_flag_unused_command_line_argument=yes
13541 else
13542 xorg_cv_cc_flag_unused_command_line_argument=no
13543 fi
13544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13545 fi
13546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13547 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13548 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13549 CFLAGS="$xorg_testset_save_CFLAGS"
13550 fi
13551
13552 found="no"
13553
13554 if test $found = "no" ; then
13555 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13556 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13557 fi
13558
13559 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13560 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13561 fi
13562
13563 CFLAGS="$CFLAGS -Wmissing-noreturn"
13564
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-noreturn" >&5
13566 $as_echo_n "checking if $CC supports-Wmissing-noreturn... " >&6; }
13567 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
13568 if eval \${$cacheid+:} false; then :
13569 $as_echo_n "(cached) " >&6
13570 else
13571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13572 /* end confdefs.h. */
13573 int i;
13574 int
13575 main ()
13576 {
13577
13578 ;
13579 return 0;
13580 }
13581 _ACEOF
13582 if ac_fn_c_try_link "$LINENO"; then :
13583 eval $cacheid=yes
13584 else
13585 eval $cacheid=no
13586 fi
13587 rm -f core conftest.err conftest.$ac_objext \
13588 conftest$ac_exeext conftest.$ac_ext
13589 fi
13590
13591
13592 CFLAGS="$xorg_testset_save_CFLAGS"
13593
13594 eval supported=\$$cacheid
13595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13596 $as_echo "$supported" >&6; }
13597 if test "$supported" = "yes" ; then
13598 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
13599 found="yes"
13600 fi
13601 fi
13602
13603
13604
13605
13606
13607
13608
13609
13610
13611
13612
13613
13614
13615
13616
13617 xorg_testset_save_CFLAGS="$CFLAGS"
13618
13619 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13620 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13622 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13623 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13624 $as_echo_n "(cached) " >&6
13625 else
13626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13627 /* end confdefs.h. */
13628 int i;
13629 _ACEOF
13630 if ac_fn_c_try_compile "$LINENO"; then :
13631 xorg_cv_cc_flag_unknown_warning_option=yes
13632 else
13633 xorg_cv_cc_flag_unknown_warning_option=no
13634 fi
13635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13636 fi
13637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13638 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13639 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13640 CFLAGS="$xorg_testset_save_CFLAGS"
13641 fi
13642
13643 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13644 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13645 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13646 fi
13647 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13649 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13650 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13651 $as_echo_n "(cached) " >&6
13652 else
13653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13654 /* end confdefs.h. */
13655 int i;
13656 _ACEOF
13657 if ac_fn_c_try_compile "$LINENO"; then :
13658 xorg_cv_cc_flag_unused_command_line_argument=yes
13659 else
13660 xorg_cv_cc_flag_unused_command_line_argument=no
13661 fi
13662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13663 fi
13664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13665 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13666 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13667 CFLAGS="$xorg_testset_save_CFLAGS"
13668 fi
13669
13670 found="no"
13671
13672 if test $found = "no" ; then
13673 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13674 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13675 fi
13676
13677 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13678 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13679 fi
13680
13681 CFLAGS="$CFLAGS -Wmissing-format-attribute"
13682
13683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-format-attribute" >&5
13684 $as_echo_n "checking if $CC supports-Wmissing-format-attribute... " >&6; }
13685 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
13686 if eval \${$cacheid+:} false; then :
13687 $as_echo_n "(cached) " >&6
13688 else
13689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13690 /* end confdefs.h. */
13691 int i;
13692 int
13693 main ()
13694 {
13695
13696 ;
13697 return 0;
13698 }
13699 _ACEOF
13700 if ac_fn_c_try_link "$LINENO"; then :
13701 eval $cacheid=yes
13702 else
13703 eval $cacheid=no
13704 fi
13705 rm -f core conftest.err conftest.$ac_objext \
13706 conftest$ac_exeext conftest.$ac_ext
13707 fi
13708
13709
13710 CFLAGS="$xorg_testset_save_CFLAGS"
13711
13712 eval supported=\$$cacheid
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13714 $as_echo "$supported" >&6; }
13715 if test "$supported" = "yes" ; then
13716 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
13717 found="yes"
13718 fi
13719 fi
13720
13721
13722
13723
13724
13725
13726
13727
13728
13729
13730
13731
13732
13733
13734
13735 xorg_testset_save_CFLAGS="$CFLAGS"
13736
13737 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13738 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13740 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13741 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13742 $as_echo_n "(cached) " >&6
13743 else
13744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13745 /* end confdefs.h. */
13746 int i;
13747 _ACEOF
13748 if ac_fn_c_try_compile "$LINENO"; then :
13749 xorg_cv_cc_flag_unknown_warning_option=yes
13750 else
13751 xorg_cv_cc_flag_unknown_warning_option=no
13752 fi
13753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13754 fi
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13756 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13757 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13758 CFLAGS="$xorg_testset_save_CFLAGS"
13759 fi
13760
13761 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13762 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13763 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13764 fi
13765 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13767 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13768 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13769 $as_echo_n "(cached) " >&6
13770 else
13771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13772 /* end confdefs.h. */
13773 int i;
13774 _ACEOF
13775 if ac_fn_c_try_compile "$LINENO"; then :
13776 xorg_cv_cc_flag_unused_command_line_argument=yes
13777 else
13778 xorg_cv_cc_flag_unused_command_line_argument=no
13779 fi
13780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13781 fi
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13783 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13784 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13785 CFLAGS="$xorg_testset_save_CFLAGS"
13786 fi
13787
13788 found="no"
13789
13790 if test $found = "no" ; then
13791 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13792 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13793 fi
13794
13795 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13796 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13797 fi
13798
13799 CFLAGS="$CFLAGS -Wredundant-decls"
13800
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wredundant-decls" >&5
13802 $as_echo_n "checking if $CC supports-Wredundant-decls... " >&6; }
13803 cacheid=xorg_cv_cc_flag__Wredundant_decls
13804 if eval \${$cacheid+:} false; then :
13805 $as_echo_n "(cached) " >&6
13806 else
13807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13808 /* end confdefs.h. */
13809 int i;
13810 int
13811 main ()
13812 {
13813
13814 ;
13815 return 0;
13816 }
13817 _ACEOF
13818 if ac_fn_c_try_link "$LINENO"; then :
13819 eval $cacheid=yes
13820 else
13821 eval $cacheid=no
13822 fi
13823 rm -f core conftest.err conftest.$ac_objext \
13824 conftest$ac_exeext conftest.$ac_ext
13825 fi
13826
13827
13828 CFLAGS="$xorg_testset_save_CFLAGS"
13829
13830 eval supported=\$$cacheid
13831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13832 $as_echo "$supported" >&6; }
13833 if test "$supported" = "yes" ; then
13834 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
13835 found="yes"
13836 fi
13837 fi
13838
13839
13840
13841 # These are currently disabled because they are noisy. They will be enabled
13842 # in the future once the codebase is sufficiently modernized to silence
13843 # them. For now, I don't want them to drown out the other warnings.
13844 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
13845 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
13846 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
13847
13848 # Turn some warnings into errors, so we don't accidently get successful builds
13849 # when there are problems that should be fixed.
13850
13851 if test "x$SELECTIVE_WERROR" = "xyes" ; then
13852
13853
13854
13855
13856
13857
13858
13859
13860
13861
13862
13863
13864
13865 xorg_testset_save_CFLAGS="$CFLAGS"
13866
13867 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13868 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13870 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13871 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13872 $as_echo_n "(cached) " >&6
13873 else
13874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13875 /* end confdefs.h. */
13876 int i;
13877 _ACEOF
13878 if ac_fn_c_try_compile "$LINENO"; then :
13879 xorg_cv_cc_flag_unknown_warning_option=yes
13880 else
13881 xorg_cv_cc_flag_unknown_warning_option=no
13882 fi
13883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13884 fi
13885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13886 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13887 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13888 CFLAGS="$xorg_testset_save_CFLAGS"
13889 fi
13890
13891 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13892 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13893 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13894 fi
13895 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13897 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13898 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13899 $as_echo_n "(cached) " >&6
13900 else
13901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13902 /* end confdefs.h. */
13903 int i;
13904 _ACEOF
13905 if ac_fn_c_try_compile "$LINENO"; then :
13906 xorg_cv_cc_flag_unused_command_line_argument=yes
13907 else
13908 xorg_cv_cc_flag_unused_command_line_argument=no
13909 fi
13910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13911 fi
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13913 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13914 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13915 CFLAGS="$xorg_testset_save_CFLAGS"
13916 fi
13917
13918 found="no"
13919
13920 if test $found = "no" ; then
13921 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13922 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13923 fi
13924
13925 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13926 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13927 fi
13928
13929 CFLAGS="$CFLAGS -Werror=implicit"
13930
13931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=implicit" >&5
13932 $as_echo_n "checking if $CC supports-Werror=implicit... " >&6; }
13933 cacheid=xorg_cv_cc_flag__Werror_implicit
13934 if eval \${$cacheid+:} false; then :
13935 $as_echo_n "(cached) " >&6
13936 else
13937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13938 /* end confdefs.h. */
13939 int i;
13940 int
13941 main ()
13942 {
13943
13944 ;
13945 return 0;
13946 }
13947 _ACEOF
13948 if ac_fn_c_try_link "$LINENO"; then :
13949 eval $cacheid=yes
13950 else
13951 eval $cacheid=no
13952 fi
13953 rm -f core conftest.err conftest.$ac_objext \
13954 conftest$ac_exeext conftest.$ac_ext
13955 fi
13956
13957
13958 CFLAGS="$xorg_testset_save_CFLAGS"
13959
13960 eval supported=\$$cacheid
13961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13962 $as_echo "$supported" >&6; }
13963 if test "$supported" = "yes" ; then
13964 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
13965 found="yes"
13966 fi
13967 fi
13968
13969 if test $found = "no" ; then
13970 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13971 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13972 fi
13973
13974 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13975 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13976 fi
13977
13978 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
13979
13980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
13981 $as_echo_n "checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
13982 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
13983 if eval \${$cacheid+:} false; then :
13984 $as_echo_n "(cached) " >&6
13985 else
13986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13987 /* end confdefs.h. */
13988 int i;
13989 int
13990 main ()
13991 {
13992
13993 ;
13994 return 0;
13995 }
13996 _ACEOF
13997 if ac_fn_c_try_link "$LINENO"; then :
13998 eval $cacheid=yes
13999 else
14000 eval $cacheid=no
14001 fi
14002 rm -f core conftest.err conftest.$ac_objext \
14003 conftest$ac_exeext conftest.$ac_ext
14004 fi
14005
14006
14007 CFLAGS="$xorg_testset_save_CFLAGS"
14008
14009 eval supported=\$$cacheid
14010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14011 $as_echo "$supported" >&6; }
14012 if test "$supported" = "yes" ; then
14013 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14014 found="yes"
14015 fi
14016 fi
14017
14018
14019
14020
14021
14022
14023
14024
14025
14026
14027
14028
14029
14030
14031
14032 xorg_testset_save_CFLAGS="$CFLAGS"
14033
14034 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14035 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14037 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14038 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14039 $as_echo_n "(cached) " >&6
14040 else
14041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14042 /* end confdefs.h. */
14043 int i;
14044 _ACEOF
14045 if ac_fn_c_try_compile "$LINENO"; then :
14046 xorg_cv_cc_flag_unknown_warning_option=yes
14047 else
14048 xorg_cv_cc_flag_unknown_warning_option=no
14049 fi
14050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14051 fi
14052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14053 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14054 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14055 CFLAGS="$xorg_testset_save_CFLAGS"
14056 fi
14057
14058 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14059 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14060 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14061 fi
14062 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14064 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14065 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14066 $as_echo_n "(cached) " >&6
14067 else
14068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14069 /* end confdefs.h. */
14070 int i;
14071 _ACEOF
14072 if ac_fn_c_try_compile "$LINENO"; then :
14073 xorg_cv_cc_flag_unused_command_line_argument=yes
14074 else
14075 xorg_cv_cc_flag_unused_command_line_argument=no
14076 fi
14077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14078 fi
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14080 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14081 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14082 CFLAGS="$xorg_testset_save_CFLAGS"
14083 fi
14084
14085 found="no"
14086
14087 if test $found = "no" ; then
14088 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14089 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14090 fi
14091
14092 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14093 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14094 fi
14095
14096 CFLAGS="$CFLAGS -Werror=nonnull"
14097
14098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=nonnull" >&5
14099 $as_echo_n "checking if $CC supports-Werror=nonnull... " >&6; }
14100 cacheid=xorg_cv_cc_flag__Werror_nonnull
14101 if eval \${$cacheid+:} false; then :
14102 $as_echo_n "(cached) " >&6
14103 else
14104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14105 /* end confdefs.h. */
14106 int i;
14107 int
14108 main ()
14109 {
14110
14111 ;
14112 return 0;
14113 }
14114 _ACEOF
14115 if ac_fn_c_try_link "$LINENO"; then :
14116 eval $cacheid=yes
14117 else
14118 eval $cacheid=no
14119 fi
14120 rm -f core conftest.err conftest.$ac_objext \
14121 conftest$ac_exeext conftest.$ac_ext
14122 fi
14123
14124
14125 CFLAGS="$xorg_testset_save_CFLAGS"
14126
14127 eval supported=\$$cacheid
14128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14129 $as_echo "$supported" >&6; }
14130 if test "$supported" = "yes" ; then
14131 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
14132 found="yes"
14133 fi
14134 fi
14135
14136
14137
14138
14139
14140
14141
14142
14143
14144
14145
14146
14147
14148
14149
14150 xorg_testset_save_CFLAGS="$CFLAGS"
14151
14152 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14153 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14155 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14156 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14157 $as_echo_n "(cached) " >&6
14158 else
14159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14160 /* end confdefs.h. */
14161 int i;
14162 _ACEOF
14163 if ac_fn_c_try_compile "$LINENO"; then :
14164 xorg_cv_cc_flag_unknown_warning_option=yes
14165 else
14166 xorg_cv_cc_flag_unknown_warning_option=no
14167 fi
14168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14169 fi
14170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14171 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14172 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14173 CFLAGS="$xorg_testset_save_CFLAGS"
14174 fi
14175
14176 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14177 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14178 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14179 fi
14180 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14182 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14183 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14184 $as_echo_n "(cached) " >&6
14185 else
14186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14187 /* end confdefs.h. */
14188 int i;
14189 _ACEOF
14190 if ac_fn_c_try_compile "$LINENO"; then :
14191 xorg_cv_cc_flag_unused_command_line_argument=yes
14192 else
14193 xorg_cv_cc_flag_unused_command_line_argument=no
14194 fi
14195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14196 fi
14197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14198 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14199 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14200 CFLAGS="$xorg_testset_save_CFLAGS"
14201 fi
14202
14203 found="no"
14204
14205 if test $found = "no" ; then
14206 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14207 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14208 fi
14209
14210 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14211 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14212 fi
14213
14214 CFLAGS="$CFLAGS -Werror=init-self"
14215
14216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=init-self" >&5
14217 $as_echo_n "checking if $CC supports-Werror=init-self... " >&6; }
14218 cacheid=xorg_cv_cc_flag__Werror_init_self
14219 if eval \${$cacheid+:} false; then :
14220 $as_echo_n "(cached) " >&6
14221 else
14222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14223 /* end confdefs.h. */
14224 int i;
14225 int
14226 main ()
14227 {
14228
14229 ;
14230 return 0;
14231 }
14232 _ACEOF
14233 if ac_fn_c_try_link "$LINENO"; then :
14234 eval $cacheid=yes
14235 else
14236 eval $cacheid=no
14237 fi
14238 rm -f core conftest.err conftest.$ac_objext \
14239 conftest$ac_exeext conftest.$ac_ext
14240 fi
14241
14242
14243 CFLAGS="$xorg_testset_save_CFLAGS"
14244
14245 eval supported=\$$cacheid
14246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14247 $as_echo "$supported" >&6; }
14248 if test "$supported" = "yes" ; then
14249 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
14250 found="yes"
14251 fi
14252 fi
14253
14254
14255
14256
14257
14258
14259
14260
14261
14262
14263
14264
14265
14266
14267
14268 xorg_testset_save_CFLAGS="$CFLAGS"
14269
14270 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14271 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14273 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14274 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14275 $as_echo_n "(cached) " >&6
14276 else
14277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14278 /* end confdefs.h. */
14279 int i;
14280 _ACEOF
14281 if ac_fn_c_try_compile "$LINENO"; then :
14282 xorg_cv_cc_flag_unknown_warning_option=yes
14283 else
14284 xorg_cv_cc_flag_unknown_warning_option=no
14285 fi
14286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14287 fi
14288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14289 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14290 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14291 CFLAGS="$xorg_testset_save_CFLAGS"
14292 fi
14293
14294 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14295 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14296 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14297 fi
14298 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14300 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14301 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14302 $as_echo_n "(cached) " >&6
14303 else
14304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14305 /* end confdefs.h. */
14306 int i;
14307 _ACEOF
14308 if ac_fn_c_try_compile "$LINENO"; then :
14309 xorg_cv_cc_flag_unused_command_line_argument=yes
14310 else
14311 xorg_cv_cc_flag_unused_command_line_argument=no
14312 fi
14313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14314 fi
14315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14316 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14317 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14318 CFLAGS="$xorg_testset_save_CFLAGS"
14319 fi
14320
14321 found="no"
14322
14323 if test $found = "no" ; then
14324 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14325 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14326 fi
14327
14328 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14329 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14330 fi
14331
14332 CFLAGS="$CFLAGS -Werror=main"
14333
14334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=main" >&5
14335 $as_echo_n "checking if $CC supports-Werror=main... " >&6; }
14336 cacheid=xorg_cv_cc_flag__Werror_main
14337 if eval \${$cacheid+:} false; then :
14338 $as_echo_n "(cached) " >&6
14339 else
14340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14341 /* end confdefs.h. */
14342 int i;
14343 int
14344 main ()
14345 {
14346
14347 ;
14348 return 0;
14349 }
14350 _ACEOF
14351 if ac_fn_c_try_link "$LINENO"; then :
14352 eval $cacheid=yes
14353 else
14354 eval $cacheid=no
14355 fi
14356 rm -f core conftest.err conftest.$ac_objext \
14357 conftest$ac_exeext conftest.$ac_ext
14358 fi
14359
14360
14361 CFLAGS="$xorg_testset_save_CFLAGS"
14362
14363 eval supported=\$$cacheid
14364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14365 $as_echo "$supported" >&6; }
14366 if test "$supported" = "yes" ; then
14367 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
14368 found="yes"
14369 fi
14370 fi
14371
14372
14373
14374
14375
14376
14377
14378
14379
14380
14381
14382
14383
14384
14385
14386 xorg_testset_save_CFLAGS="$CFLAGS"
14387
14388 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14389 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14391 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14392 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14393 $as_echo_n "(cached) " >&6
14394 else
14395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14396 /* end confdefs.h. */
14397 int i;
14398 _ACEOF
14399 if ac_fn_c_try_compile "$LINENO"; then :
14400 xorg_cv_cc_flag_unknown_warning_option=yes
14401 else
14402 xorg_cv_cc_flag_unknown_warning_option=no
14403 fi
14404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14405 fi
14406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14407 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14408 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14409 CFLAGS="$xorg_testset_save_CFLAGS"
14410 fi
14411
14412 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14413 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14414 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14415 fi
14416 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14418 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14419 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14420 $as_echo_n "(cached) " >&6
14421 else
14422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14423 /* end confdefs.h. */
14424 int i;
14425 _ACEOF
14426 if ac_fn_c_try_compile "$LINENO"; then :
14427 xorg_cv_cc_flag_unused_command_line_argument=yes
14428 else
14429 xorg_cv_cc_flag_unused_command_line_argument=no
14430 fi
14431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14432 fi
14433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14434 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14435 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14436 CFLAGS="$xorg_testset_save_CFLAGS"
14437 fi
14438
14439 found="no"
14440
14441 if test $found = "no" ; then
14442 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14443 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14444 fi
14445
14446 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14447 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14448 fi
14449
14450 CFLAGS="$CFLAGS -Werror=missing-braces"
14451
14452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=missing-braces" >&5
14453 $as_echo_n "checking if $CC supports-Werror=missing-braces... " >&6; }
14454 cacheid=xorg_cv_cc_flag__Werror_missing_braces
14455 if eval \${$cacheid+:} false; then :
14456 $as_echo_n "(cached) " >&6
14457 else
14458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14459 /* end confdefs.h. */
14460 int i;
14461 int
14462 main ()
14463 {
14464
14465 ;
14466 return 0;
14467 }
14468 _ACEOF
14469 if ac_fn_c_try_link "$LINENO"; then :
14470 eval $cacheid=yes
14471 else
14472 eval $cacheid=no
14473 fi
14474 rm -f core conftest.err conftest.$ac_objext \
14475 conftest$ac_exeext conftest.$ac_ext
14476 fi
14477
14478
14479 CFLAGS="$xorg_testset_save_CFLAGS"
14480
14481 eval supported=\$$cacheid
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14483 $as_echo "$supported" >&6; }
14484 if test "$supported" = "yes" ; then
14485 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
14486 found="yes"
14487 fi
14488 fi
14489
14490
14491
14492
14493
14494
14495
14496
14497
14498
14499
14500
14501
14502
14503
14504 xorg_testset_save_CFLAGS="$CFLAGS"
14505
14506 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14507 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14509 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14510 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14511 $as_echo_n "(cached) " >&6
14512 else
14513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14514 /* end confdefs.h. */
14515 int i;
14516 _ACEOF
14517 if ac_fn_c_try_compile "$LINENO"; then :
14518 xorg_cv_cc_flag_unknown_warning_option=yes
14519 else
14520 xorg_cv_cc_flag_unknown_warning_option=no
14521 fi
14522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14523 fi
14524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14525 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14526 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14527 CFLAGS="$xorg_testset_save_CFLAGS"
14528 fi
14529
14530 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14531 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14532 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14533 fi
14534 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14536 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14537 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14538 $as_echo_n "(cached) " >&6
14539 else
14540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14541 /* end confdefs.h. */
14542 int i;
14543 _ACEOF
14544 if ac_fn_c_try_compile "$LINENO"; then :
14545 xorg_cv_cc_flag_unused_command_line_argument=yes
14546 else
14547 xorg_cv_cc_flag_unused_command_line_argument=no
14548 fi
14549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14550 fi
14551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14552 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14553 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14554 CFLAGS="$xorg_testset_save_CFLAGS"
14555 fi
14556
14557 found="no"
14558
14559 if test $found = "no" ; then
14560 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14561 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14562 fi
14563
14564 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14565 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14566 fi
14567
14568 CFLAGS="$CFLAGS -Werror=sequence-point"
14569
14570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=sequence-point" >&5
14571 $as_echo_n "checking if $CC supports-Werror=sequence-point... " >&6; }
14572 cacheid=xorg_cv_cc_flag__Werror_sequence_point
14573 if eval \${$cacheid+:} false; then :
14574 $as_echo_n "(cached) " >&6
14575 else
14576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14577 /* end confdefs.h. */
14578 int i;
14579 int
14580 main ()
14581 {
14582
14583 ;
14584 return 0;
14585 }
14586 _ACEOF
14587 if ac_fn_c_try_link "$LINENO"; then :
14588 eval $cacheid=yes
14589 else
14590 eval $cacheid=no
14591 fi
14592 rm -f core conftest.err conftest.$ac_objext \
14593 conftest$ac_exeext conftest.$ac_ext
14594 fi
14595
14596
14597 CFLAGS="$xorg_testset_save_CFLAGS"
14598
14599 eval supported=\$$cacheid
14600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14601 $as_echo "$supported" >&6; }
14602 if test "$supported" = "yes" ; then
14603 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
14604 found="yes"
14605 fi
14606 fi
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621
14622 xorg_testset_save_CFLAGS="$CFLAGS"
14623
14624 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14625 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14627 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14628 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14629 $as_echo_n "(cached) " >&6
14630 else
14631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14632 /* end confdefs.h. */
14633 int i;
14634 _ACEOF
14635 if ac_fn_c_try_compile "$LINENO"; then :
14636 xorg_cv_cc_flag_unknown_warning_option=yes
14637 else
14638 xorg_cv_cc_flag_unknown_warning_option=no
14639 fi
14640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14641 fi
14642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14643 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14644 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14645 CFLAGS="$xorg_testset_save_CFLAGS"
14646 fi
14647
14648 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14649 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14650 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14651 fi
14652 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14654 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14655 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14656 $as_echo_n "(cached) " >&6
14657 else
14658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14659 /* end confdefs.h. */
14660 int i;
14661 _ACEOF
14662 if ac_fn_c_try_compile "$LINENO"; then :
14663 xorg_cv_cc_flag_unused_command_line_argument=yes
14664 else
14665 xorg_cv_cc_flag_unused_command_line_argument=no
14666 fi
14667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14668 fi
14669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14670 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14671 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14672 CFLAGS="$xorg_testset_save_CFLAGS"
14673 fi
14674
14675 found="no"
14676
14677 if test $found = "no" ; then
14678 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14679 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14680 fi
14681
14682 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14683 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14684 fi
14685
14686 CFLAGS="$CFLAGS -Werror=return-type"
14687
14688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=return-type" >&5
14689 $as_echo_n "checking if $CC supports-Werror=return-type... " >&6; }
14690 cacheid=xorg_cv_cc_flag__Werror_return_type
14691 if eval \${$cacheid+:} false; then :
14692 $as_echo_n "(cached) " >&6
14693 else
14694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14695 /* end confdefs.h. */
14696 int i;
14697 int
14698 main ()
14699 {
14700
14701 ;
14702 return 0;
14703 }
14704 _ACEOF
14705 if ac_fn_c_try_link "$LINENO"; then :
14706 eval $cacheid=yes
14707 else
14708 eval $cacheid=no
14709 fi
14710 rm -f core conftest.err conftest.$ac_objext \
14711 conftest$ac_exeext conftest.$ac_ext
14712 fi
14713
14714
14715 CFLAGS="$xorg_testset_save_CFLAGS"
14716
14717 eval supported=\$$cacheid
14718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14719 $as_echo "$supported" >&6; }
14720 if test "$supported" = "yes" ; then
14721 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
14722 found="yes"
14723 fi
14724 fi
14725
14726 if test $found = "no" ; then
14727 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14728 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14729 fi
14730
14731 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14732 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14733 fi
14734
14735 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
14736
14737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
14738 $as_echo_n "checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
14739 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
14740 if eval \${$cacheid+:} false; then :
14741 $as_echo_n "(cached) " >&6
14742 else
14743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14744 /* end confdefs.h. */
14745 int i;
14746 int
14747 main ()
14748 {
14749
14750 ;
14751 return 0;
14752 }
14753 _ACEOF
14754 if ac_fn_c_try_link "$LINENO"; then :
14755 eval $cacheid=yes
14756 else
14757 eval $cacheid=no
14758 fi
14759 rm -f core conftest.err conftest.$ac_objext \
14760 conftest$ac_exeext conftest.$ac_ext
14761 fi
14762
14763
14764 CFLAGS="$xorg_testset_save_CFLAGS"
14765
14766 eval supported=\$$cacheid
14767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14768 $as_echo "$supported" >&6; }
14769 if test "$supported" = "yes" ; then
14770 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
14771 found="yes"
14772 fi
14773 fi
14774
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785
14786
14787
14788
14789 xorg_testset_save_CFLAGS="$CFLAGS"
14790
14791 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14792 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14794 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14795 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14796 $as_echo_n "(cached) " >&6
14797 else
14798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14799 /* end confdefs.h. */
14800 int i;
14801 _ACEOF
14802 if ac_fn_c_try_compile "$LINENO"; then :
14803 xorg_cv_cc_flag_unknown_warning_option=yes
14804 else
14805 xorg_cv_cc_flag_unknown_warning_option=no
14806 fi
14807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14808 fi
14809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14810 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14811 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14812 CFLAGS="$xorg_testset_save_CFLAGS"
14813 fi
14814
14815 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14816 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14817 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14818 fi
14819 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14821 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14822 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14823 $as_echo_n "(cached) " >&6
14824 else
14825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14826 /* end confdefs.h. */
14827 int i;
14828 _ACEOF
14829 if ac_fn_c_try_compile "$LINENO"; then :
14830 xorg_cv_cc_flag_unused_command_line_argument=yes
14831 else
14832 xorg_cv_cc_flag_unused_command_line_argument=no
14833 fi
14834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14835 fi
14836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14837 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14838 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14839 CFLAGS="$xorg_testset_save_CFLAGS"
14840 fi
14841
14842 found="no"
14843
14844 if test $found = "no" ; then
14845 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14846 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14847 fi
14848
14849 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14850 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14851 fi
14852
14853 CFLAGS="$CFLAGS -Werror=trigraphs"
14854
14855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=trigraphs" >&5
14856 $as_echo_n "checking if $CC supports-Werror=trigraphs... " >&6; }
14857 cacheid=xorg_cv_cc_flag__Werror_trigraphs
14858 if eval \${$cacheid+:} false; then :
14859 $as_echo_n "(cached) " >&6
14860 else
14861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14862 /* end confdefs.h. */
14863 int i;
14864 int
14865 main ()
14866 {
14867
14868 ;
14869 return 0;
14870 }
14871 _ACEOF
14872 if ac_fn_c_try_link "$LINENO"; then :
14873 eval $cacheid=yes
14874 else
14875 eval $cacheid=no
14876 fi
14877 rm -f core conftest.err conftest.$ac_objext \
14878 conftest$ac_exeext conftest.$ac_ext
14879 fi
14880
14881
14882 CFLAGS="$xorg_testset_save_CFLAGS"
14883
14884 eval supported=\$$cacheid
14885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14886 $as_echo "$supported" >&6; }
14887 if test "$supported" = "yes" ; then
14888 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
14889 found="yes"
14890 fi
14891 fi
14892
14893
14894
14895
14896
14897
14898
14899
14900
14901
14902
14903
14904
14905
14906
14907 xorg_testset_save_CFLAGS="$CFLAGS"
14908
14909 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14910 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14912 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14913 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14914 $as_echo_n "(cached) " >&6
14915 else
14916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14917 /* end confdefs.h. */
14918 int i;
14919 _ACEOF
14920 if ac_fn_c_try_compile "$LINENO"; then :
14921 xorg_cv_cc_flag_unknown_warning_option=yes
14922 else
14923 xorg_cv_cc_flag_unknown_warning_option=no
14924 fi
14925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14926 fi
14927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14928 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14929 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14930 CFLAGS="$xorg_testset_save_CFLAGS"
14931 fi
14932
14933 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14934 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14935 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14936 fi
14937 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14939 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14940 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14941 $as_echo_n "(cached) " >&6
14942 else
14943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14944 /* end confdefs.h. */
14945 int i;
14946 _ACEOF
14947 if ac_fn_c_try_compile "$LINENO"; then :
14948 xorg_cv_cc_flag_unused_command_line_argument=yes
14949 else
14950 xorg_cv_cc_flag_unused_command_line_argument=no
14951 fi
14952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14953 fi
14954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14955 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14956 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14957 CFLAGS="$xorg_testset_save_CFLAGS"
14958 fi
14959
14960 found="no"
14961
14962 if test $found = "no" ; then
14963 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14964 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14965 fi
14966
14967 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14968 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14969 fi
14970
14971 CFLAGS="$CFLAGS -Werror=array-bounds"
14972
14973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=array-bounds" >&5
14974 $as_echo_n "checking if $CC supports-Werror=array-bounds... " >&6; }
14975 cacheid=xorg_cv_cc_flag__Werror_array_bounds
14976 if eval \${$cacheid+:} false; then :
14977 $as_echo_n "(cached) " >&6
14978 else
14979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14980 /* end confdefs.h. */
14981 int i;
14982 int
14983 main ()
14984 {
14985
14986 ;
14987 return 0;
14988 }
14989 _ACEOF
14990 if ac_fn_c_try_link "$LINENO"; then :
14991 eval $cacheid=yes
14992 else
14993 eval $cacheid=no
14994 fi
14995 rm -f core conftest.err conftest.$ac_objext \
14996 conftest$ac_exeext conftest.$ac_ext
14997 fi
14998
14999
15000 CFLAGS="$xorg_testset_save_CFLAGS"
15001
15002 eval supported=\$$cacheid
15003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15004 $as_echo "$supported" >&6; }
15005 if test "$supported" = "yes" ; then
15006 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
15007 found="yes"
15008 fi
15009 fi
15010
15011
15012
15013
15014
15015
15016
15017
15018
15019
15020
15021
15022
15023
15024
15025 xorg_testset_save_CFLAGS="$CFLAGS"
15026
15027 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15028 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15030 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15031 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15032 $as_echo_n "(cached) " >&6
15033 else
15034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15035 /* end confdefs.h. */
15036 int i;
15037 _ACEOF
15038 if ac_fn_c_try_compile "$LINENO"; then :
15039 xorg_cv_cc_flag_unknown_warning_option=yes
15040 else
15041 xorg_cv_cc_flag_unknown_warning_option=no
15042 fi
15043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15044 fi
15045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15046 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15047 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15048 CFLAGS="$xorg_testset_save_CFLAGS"
15049 fi
15050
15051 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15052 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15053 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15054 fi
15055 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15057 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15058 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15059 $as_echo_n "(cached) " >&6
15060 else
15061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15062 /* end confdefs.h. */
15063 int i;
15064 _ACEOF
15065 if ac_fn_c_try_compile "$LINENO"; then :
15066 xorg_cv_cc_flag_unused_command_line_argument=yes
15067 else
15068 xorg_cv_cc_flag_unused_command_line_argument=no
15069 fi
15070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15071 fi
15072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15073 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15074 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15075 CFLAGS="$xorg_testset_save_CFLAGS"
15076 fi
15077
15078 found="no"
15079
15080 if test $found = "no" ; then
15081 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15082 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15083 fi
15084
15085 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15086 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15087 fi
15088
15089 CFLAGS="$CFLAGS -Werror=write-strings"
15090
15091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=write-strings" >&5
15092 $as_echo_n "checking if $CC supports-Werror=write-strings... " >&6; }
15093 cacheid=xorg_cv_cc_flag__Werror_write_strings
15094 if eval \${$cacheid+:} false; then :
15095 $as_echo_n "(cached) " >&6
15096 else
15097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15098 /* end confdefs.h. */
15099 int i;
15100 int
15101 main ()
15102 {
15103
15104 ;
15105 return 0;
15106 }
15107 _ACEOF
15108 if ac_fn_c_try_link "$LINENO"; then :
15109 eval $cacheid=yes
15110 else
15111 eval $cacheid=no
15112 fi
15113 rm -f core conftest.err conftest.$ac_objext \
15114 conftest$ac_exeext conftest.$ac_ext
15115 fi
15116
15117
15118 CFLAGS="$xorg_testset_save_CFLAGS"
15119
15120 eval supported=\$$cacheid
15121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15122 $as_echo "$supported" >&6; }
15123 if test "$supported" = "yes" ; then
15124 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
15125 found="yes"
15126 fi
15127 fi
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139
15140
15141
15142
15143 xorg_testset_save_CFLAGS="$CFLAGS"
15144
15145 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15146 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15148 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15149 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15150 $as_echo_n "(cached) " >&6
15151 else
15152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15153 /* end confdefs.h. */
15154 int i;
15155 _ACEOF
15156 if ac_fn_c_try_compile "$LINENO"; then :
15157 xorg_cv_cc_flag_unknown_warning_option=yes
15158 else
15159 xorg_cv_cc_flag_unknown_warning_option=no
15160 fi
15161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15162 fi
15163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15164 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15165 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15166 CFLAGS="$xorg_testset_save_CFLAGS"
15167 fi
15168
15169 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15170 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15171 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15172 fi
15173 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15175 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15176 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15177 $as_echo_n "(cached) " >&6
15178 else
15179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15180 /* end confdefs.h. */
15181 int i;
15182 _ACEOF
15183 if ac_fn_c_try_compile "$LINENO"; then :
15184 xorg_cv_cc_flag_unused_command_line_argument=yes
15185 else
15186 xorg_cv_cc_flag_unused_command_line_argument=no
15187 fi
15188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15189 fi
15190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15191 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15192 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15193 CFLAGS="$xorg_testset_save_CFLAGS"
15194 fi
15195
15196 found="no"
15197
15198 if test $found = "no" ; then
15199 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15200 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15201 fi
15202
15203 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15204 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15205 fi
15206
15207 CFLAGS="$CFLAGS -Werror=address"
15208
15209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=address" >&5
15210 $as_echo_n "checking if $CC supports-Werror=address... " >&6; }
15211 cacheid=xorg_cv_cc_flag__Werror_address
15212 if eval \${$cacheid+:} false; then :
15213 $as_echo_n "(cached) " >&6
15214 else
15215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15216 /* end confdefs.h. */
15217 int i;
15218 int
15219 main ()
15220 {
15221
15222 ;
15223 return 0;
15224 }
15225 _ACEOF
15226 if ac_fn_c_try_link "$LINENO"; then :
15227 eval $cacheid=yes
15228 else
15229 eval $cacheid=no
15230 fi
15231 rm -f core conftest.err conftest.$ac_objext \
15232 conftest$ac_exeext conftest.$ac_ext
15233 fi
15234
15235
15236 CFLAGS="$xorg_testset_save_CFLAGS"
15237
15238 eval supported=\$$cacheid
15239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15240 $as_echo "$supported" >&6; }
15241 if test "$supported" = "yes" ; then
15242 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
15243 found="yes"
15244 fi
15245 fi
15246
15247
15248
15249
15250
15251
15252
15253
15254
15255
15256
15257
15258
15259
15260
15261 xorg_testset_save_CFLAGS="$CFLAGS"
15262
15263 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15264 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15266 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15267 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15268 $as_echo_n "(cached) " >&6
15269 else
15270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15271 /* end confdefs.h. */
15272 int i;
15273 _ACEOF
15274 if ac_fn_c_try_compile "$LINENO"; then :
15275 xorg_cv_cc_flag_unknown_warning_option=yes
15276 else
15277 xorg_cv_cc_flag_unknown_warning_option=no
15278 fi
15279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15280 fi
15281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15282 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15283 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15284 CFLAGS="$xorg_testset_save_CFLAGS"
15285 fi
15286
15287 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15288 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15289 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15290 fi
15291 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15293 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15294 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15295 $as_echo_n "(cached) " >&6
15296 else
15297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15298 /* end confdefs.h. */
15299 int i;
15300 _ACEOF
15301 if ac_fn_c_try_compile "$LINENO"; then :
15302 xorg_cv_cc_flag_unused_command_line_argument=yes
15303 else
15304 xorg_cv_cc_flag_unused_command_line_argument=no
15305 fi
15306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15307 fi
15308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15309 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15310 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15311 CFLAGS="$xorg_testset_save_CFLAGS"
15312 fi
15313
15314 found="no"
15315
15316 if test $found = "no" ; then
15317 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15318 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15319 fi
15320
15321 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15322 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15323 fi
15324
15325 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
15326
15327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=int-to-pointer-cast" >&5
15328 $as_echo_n "checking if $CC supports-Werror=int-to-pointer-cast... " >&6; }
15329 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
15330 if eval \${$cacheid+:} false; then :
15331 $as_echo_n "(cached) " >&6
15332 else
15333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15334 /* end confdefs.h. */
15335 int i;
15336 int
15337 main ()
15338 {
15339
15340 ;
15341 return 0;
15342 }
15343 _ACEOF
15344 if ac_fn_c_try_link "$LINENO"; then :
15345 eval $cacheid=yes
15346 else
15347 eval $cacheid=no
15348 fi
15349 rm -f core conftest.err conftest.$ac_objext \
15350 conftest$ac_exeext conftest.$ac_ext
15351 fi
15352
15353
15354 CFLAGS="$xorg_testset_save_CFLAGS"
15355
15356 eval supported=\$$cacheid
15357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15358 $as_echo "$supported" >&6; }
15359 if test "$supported" = "yes" ; then
15360 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
15361 found="yes"
15362 fi
15363 fi
15364
15365 if test $found = "no" ; then
15366 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15367 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15368 fi
15369
15370 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15371 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15372 fi
15373
15374 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15375
15376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION" >&5
15377 $as_echo_n "checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
15378 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
15379 if eval \${$cacheid+:} false; then :
15380 $as_echo_n "(cached) " >&6
15381 else
15382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15383 /* end confdefs.h. */
15384 int i;
15385 int
15386 main ()
15387 {
15388
15389 ;
15390 return 0;
15391 }
15392 _ACEOF
15393 if ac_fn_c_try_link "$LINENO"; then :
15394 eval $cacheid=yes
15395 else
15396 eval $cacheid=no
15397 fi
15398 rm -f core conftest.err conftest.$ac_objext \
15399 conftest$ac_exeext conftest.$ac_ext
15400 fi
15401
15402
15403 CFLAGS="$xorg_testset_save_CFLAGS"
15404
15405 eval supported=\$$cacheid
15406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15407 $as_echo "$supported" >&6; }
15408 if test "$supported" = "yes" ; then
15409 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15410 found="yes"
15411 fi
15412 fi
15413
15414
15415
15416
15417
15418
15419
15420
15421
15422
15423
15424
15425
15426
15427
15428 xorg_testset_save_CFLAGS="$CFLAGS"
15429
15430 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15431 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15433 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15434 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15435 $as_echo_n "(cached) " >&6
15436 else
15437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15438 /* end confdefs.h. */
15439 int i;
15440 _ACEOF
15441 if ac_fn_c_try_compile "$LINENO"; then :
15442 xorg_cv_cc_flag_unknown_warning_option=yes
15443 else
15444 xorg_cv_cc_flag_unknown_warning_option=no
15445 fi
15446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15447 fi
15448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15449 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15450 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15451 CFLAGS="$xorg_testset_save_CFLAGS"
15452 fi
15453
15454 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15455 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15456 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15457 fi
15458 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15460 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15461 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15462 $as_echo_n "(cached) " >&6
15463 else
15464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15465 /* end confdefs.h. */
15466 int i;
15467 _ACEOF
15468 if ac_fn_c_try_compile "$LINENO"; then :
15469 xorg_cv_cc_flag_unused_command_line_argument=yes
15470 else
15471 xorg_cv_cc_flag_unused_command_line_argument=no
15472 fi
15473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15474 fi
15475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15476 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15477 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15478 CFLAGS="$xorg_testset_save_CFLAGS"
15479 fi
15480
15481 found="no"
15482
15483 if test $found = "no" ; then
15484 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15485 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15486 fi
15487
15488 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15489 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15490 fi
15491
15492 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
15493
15494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=pointer-to-int-cast" >&5
15495 $as_echo_n "checking if $CC supports-Werror=pointer-to-int-cast... " >&6; }
15496 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
15497 if eval \${$cacheid+:} false; then :
15498 $as_echo_n "(cached) " >&6
15499 else
15500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15501 /* end confdefs.h. */
15502 int i;
15503 int
15504 main ()
15505 {
15506
15507 ;
15508 return 0;
15509 }
15510 _ACEOF
15511 if ac_fn_c_try_link "$LINENO"; then :
15512 eval $cacheid=yes
15513 else
15514 eval $cacheid=no
15515 fi
15516 rm -f core conftest.err conftest.$ac_objext \
15517 conftest$ac_exeext conftest.$ac_ext
15518 fi
15519
15520
15521 CFLAGS="$xorg_testset_save_CFLAGS"
15522
15523 eval supported=\$$cacheid
15524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15525 $as_echo "$supported" >&6; }
15526 if test "$supported" = "yes" ; then
15527 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
15528 found="yes"
15529 fi
15530 fi
15531
15532 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
15533 else
15534 { $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
15535 $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;}
15536
15537
15538
15539
15540
15541
15542
15543
15544
15545
15546
15547
15548
15549 xorg_testset_save_CFLAGS="$CFLAGS"
15550
15551 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15552 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15554 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15555 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15556 $as_echo_n "(cached) " >&6
15557 else
15558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15559 /* end confdefs.h. */
15560 int i;
15561 _ACEOF
15562 if ac_fn_c_try_compile "$LINENO"; then :
15563 xorg_cv_cc_flag_unknown_warning_option=yes
15564 else
15565 xorg_cv_cc_flag_unknown_warning_option=no
15566 fi
15567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15568 fi
15569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15570 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15571 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15572 CFLAGS="$xorg_testset_save_CFLAGS"
15573 fi
15574
15575 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15576 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15577 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15578 fi
15579 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15581 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15582 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15583 $as_echo_n "(cached) " >&6
15584 else
15585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15586 /* end confdefs.h. */
15587 int i;
15588 _ACEOF
15589 if ac_fn_c_try_compile "$LINENO"; then :
15590 xorg_cv_cc_flag_unused_command_line_argument=yes
15591 else
15592 xorg_cv_cc_flag_unused_command_line_argument=no
15593 fi
15594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15595 fi
15596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15597 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15598 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15599 CFLAGS="$xorg_testset_save_CFLAGS"
15600 fi
15601
15602 found="no"
15603
15604 if test $found = "no" ; then
15605 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15606 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15607 fi
15608
15609 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15610 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15611 fi
15612
15613 CFLAGS="$CFLAGS -Wimplicit"
15614
15615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wimplicit" >&5
15616 $as_echo_n "checking if $CC supports-Wimplicit... " >&6; }
15617 cacheid=xorg_cv_cc_flag__Wimplicit
15618 if eval \${$cacheid+:} false; then :
15619 $as_echo_n "(cached) " >&6
15620 else
15621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15622 /* end confdefs.h. */
15623 int i;
15624 int
15625 main ()
15626 {
15627
15628 ;
15629 return 0;
15630 }
15631 _ACEOF
15632 if ac_fn_c_try_link "$LINENO"; then :
15633 eval $cacheid=yes
15634 else
15635 eval $cacheid=no
15636 fi
15637 rm -f core conftest.err conftest.$ac_objext \
15638 conftest$ac_exeext conftest.$ac_ext
15639 fi
15640
15641
15642 CFLAGS="$xorg_testset_save_CFLAGS"
15643
15644 eval supported=\$$cacheid
15645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15646 $as_echo "$supported" >&6; }
15647 if test "$supported" = "yes" ; then
15648 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
15649 found="yes"
15650 fi
15651 fi
15652
15653
15654
15655
15656
15657
15658
15659
15660
15661
15662
15663
15664
15665
15666
15667 xorg_testset_save_CFLAGS="$CFLAGS"
15668
15669 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15670 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15672 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15673 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15674 $as_echo_n "(cached) " >&6
15675 else
15676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15677 /* end confdefs.h. */
15678 int i;
15679 _ACEOF
15680 if ac_fn_c_try_compile "$LINENO"; then :
15681 xorg_cv_cc_flag_unknown_warning_option=yes
15682 else
15683 xorg_cv_cc_flag_unknown_warning_option=no
15684 fi
15685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15686 fi
15687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15688 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15689 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15690 CFLAGS="$xorg_testset_save_CFLAGS"
15691 fi
15692
15693 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15694 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15695 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15696 fi
15697 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15699 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15700 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15701 $as_echo_n "(cached) " >&6
15702 else
15703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15704 /* end confdefs.h. */
15705 int i;
15706 _ACEOF
15707 if ac_fn_c_try_compile "$LINENO"; then :
15708 xorg_cv_cc_flag_unused_command_line_argument=yes
15709 else
15710 xorg_cv_cc_flag_unused_command_line_argument=no
15711 fi
15712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15713 fi
15714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15715 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15716 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15717 CFLAGS="$xorg_testset_save_CFLAGS"
15718 fi
15719
15720 found="no"
15721
15722 if test $found = "no" ; then
15723 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15724 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15725 fi
15726
15727 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15728 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15729 fi
15730
15731 CFLAGS="$CFLAGS -Wnonnull"
15732
15733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnonnull" >&5
15734 $as_echo_n "checking if $CC supports-Wnonnull... " >&6; }
15735 cacheid=xorg_cv_cc_flag__Wnonnull
15736 if eval \${$cacheid+:} false; then :
15737 $as_echo_n "(cached) " >&6
15738 else
15739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15740 /* end confdefs.h. */
15741 int i;
15742 int
15743 main ()
15744 {
15745
15746 ;
15747 return 0;
15748 }
15749 _ACEOF
15750 if ac_fn_c_try_link "$LINENO"; then :
15751 eval $cacheid=yes
15752 else
15753 eval $cacheid=no
15754 fi
15755 rm -f core conftest.err conftest.$ac_objext \
15756 conftest$ac_exeext conftest.$ac_ext
15757 fi
15758
15759
15760 CFLAGS="$xorg_testset_save_CFLAGS"
15761
15762 eval supported=\$$cacheid
15763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15764 $as_echo "$supported" >&6; }
15765 if test "$supported" = "yes" ; then
15766 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
15767 found="yes"
15768 fi
15769 fi
15770
15771
15772
15773
15774
15775
15776
15777
15778
15779
15780
15781
15782
15783
15784
15785 xorg_testset_save_CFLAGS="$CFLAGS"
15786
15787 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15788 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15790 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15791 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15792 $as_echo_n "(cached) " >&6
15793 else
15794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15795 /* end confdefs.h. */
15796 int i;
15797 _ACEOF
15798 if ac_fn_c_try_compile "$LINENO"; then :
15799 xorg_cv_cc_flag_unknown_warning_option=yes
15800 else
15801 xorg_cv_cc_flag_unknown_warning_option=no
15802 fi
15803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15804 fi
15805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15806 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15807 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15808 CFLAGS="$xorg_testset_save_CFLAGS"
15809 fi
15810
15811 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15812 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15813 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15814 fi
15815 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15817 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15818 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15819 $as_echo_n "(cached) " >&6
15820 else
15821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15822 /* end confdefs.h. */
15823 int i;
15824 _ACEOF
15825 if ac_fn_c_try_compile "$LINENO"; then :
15826 xorg_cv_cc_flag_unused_command_line_argument=yes
15827 else
15828 xorg_cv_cc_flag_unused_command_line_argument=no
15829 fi
15830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15831 fi
15832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15833 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15834 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15835 CFLAGS="$xorg_testset_save_CFLAGS"
15836 fi
15837
15838 found="no"
15839
15840 if test $found = "no" ; then
15841 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15842 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15843 fi
15844
15845 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15846 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15847 fi
15848
15849 CFLAGS="$CFLAGS -Winit-self"
15850
15851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Winit-self" >&5
15852 $as_echo_n "checking if $CC supports-Winit-self... " >&6; }
15853 cacheid=xorg_cv_cc_flag__Winit_self
15854 if eval \${$cacheid+:} false; then :
15855 $as_echo_n "(cached) " >&6
15856 else
15857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15858 /* end confdefs.h. */
15859 int i;
15860 int
15861 main ()
15862 {
15863
15864 ;
15865 return 0;
15866 }
15867 _ACEOF
15868 if ac_fn_c_try_link "$LINENO"; then :
15869 eval $cacheid=yes
15870 else
15871 eval $cacheid=no
15872 fi
15873 rm -f core conftest.err conftest.$ac_objext \
15874 conftest$ac_exeext conftest.$ac_ext
15875 fi
15876
15877
15878 CFLAGS="$xorg_testset_save_CFLAGS"
15879
15880 eval supported=\$$cacheid
15881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15882 $as_echo "$supported" >&6; }
15883 if test "$supported" = "yes" ; then
15884 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
15885 found="yes"
15886 fi
15887 fi
15888
15889
15890
15891
15892
15893
15894
15895
15896
15897
15898
15899
15900
15901
15902
15903 xorg_testset_save_CFLAGS="$CFLAGS"
15904
15905 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15906 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15908 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15909 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15910 $as_echo_n "(cached) " >&6
15911 else
15912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15913 /* end confdefs.h. */
15914 int i;
15915 _ACEOF
15916 if ac_fn_c_try_compile "$LINENO"; then :
15917 xorg_cv_cc_flag_unknown_warning_option=yes
15918 else
15919 xorg_cv_cc_flag_unknown_warning_option=no
15920 fi
15921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15922 fi
15923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15924 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15925 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15926 CFLAGS="$xorg_testset_save_CFLAGS"
15927 fi
15928
15929 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15930 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15931 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15932 fi
15933 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15935 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15936 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15937 $as_echo_n "(cached) " >&6
15938 else
15939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15940 /* end confdefs.h. */
15941 int i;
15942 _ACEOF
15943 if ac_fn_c_try_compile "$LINENO"; then :
15944 xorg_cv_cc_flag_unused_command_line_argument=yes
15945 else
15946 xorg_cv_cc_flag_unused_command_line_argument=no
15947 fi
15948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15949 fi
15950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15951 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15952 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15953 CFLAGS="$xorg_testset_save_CFLAGS"
15954 fi
15955
15956 found="no"
15957
15958 if test $found = "no" ; then
15959 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15960 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15961 fi
15962
15963 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15964 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15965 fi
15966
15967 CFLAGS="$CFLAGS -Wmain"
15968
15969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmain" >&5
15970 $as_echo_n "checking if $CC supports-Wmain... " >&6; }
15971 cacheid=xorg_cv_cc_flag__Wmain
15972 if eval \${$cacheid+:} false; then :
15973 $as_echo_n "(cached) " >&6
15974 else
15975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15976 /* end confdefs.h. */
15977 int i;
15978 int
15979 main ()
15980 {
15981
15982 ;
15983 return 0;
15984 }
15985 _ACEOF
15986 if ac_fn_c_try_link "$LINENO"; then :
15987 eval $cacheid=yes
15988 else
15989 eval $cacheid=no
15990 fi
15991 rm -f core conftest.err conftest.$ac_objext \
15992 conftest$ac_exeext conftest.$ac_ext
15993 fi
15994
15995
15996 CFLAGS="$xorg_testset_save_CFLAGS"
15997
15998 eval supported=\$$cacheid
15999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16000 $as_echo "$supported" >&6; }
16001 if test "$supported" = "yes" ; then
16002 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
16003 found="yes"
16004 fi
16005 fi
16006
16007
16008
16009
16010
16011
16012
16013
16014
16015
16016
16017
16018
16019
16020
16021 xorg_testset_save_CFLAGS="$CFLAGS"
16022
16023 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16024 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16026 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16027 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16028 $as_echo_n "(cached) " >&6
16029 else
16030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16031 /* end confdefs.h. */
16032 int i;
16033 _ACEOF
16034 if ac_fn_c_try_compile "$LINENO"; then :
16035 xorg_cv_cc_flag_unknown_warning_option=yes
16036 else
16037 xorg_cv_cc_flag_unknown_warning_option=no
16038 fi
16039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16040 fi
16041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16042 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16043 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16044 CFLAGS="$xorg_testset_save_CFLAGS"
16045 fi
16046
16047 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16048 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16049 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16050 fi
16051 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16053 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16054 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16055 $as_echo_n "(cached) " >&6
16056 else
16057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16058 /* end confdefs.h. */
16059 int i;
16060 _ACEOF
16061 if ac_fn_c_try_compile "$LINENO"; then :
16062 xorg_cv_cc_flag_unused_command_line_argument=yes
16063 else
16064 xorg_cv_cc_flag_unused_command_line_argument=no
16065 fi
16066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16067 fi
16068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16069 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16070 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16071 CFLAGS="$xorg_testset_save_CFLAGS"
16072 fi
16073
16074 found="no"
16075
16076 if test $found = "no" ; then
16077 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16078 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16079 fi
16080
16081 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16082 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16083 fi
16084
16085 CFLAGS="$CFLAGS -Wmissing-braces"
16086
16087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-braces" >&5
16088 $as_echo_n "checking if $CC supports-Wmissing-braces... " >&6; }
16089 cacheid=xorg_cv_cc_flag__Wmissing_braces
16090 if eval \${$cacheid+:} false; then :
16091 $as_echo_n "(cached) " >&6
16092 else
16093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16094 /* end confdefs.h. */
16095 int i;
16096 int
16097 main ()
16098 {
16099
16100 ;
16101 return 0;
16102 }
16103 _ACEOF
16104 if ac_fn_c_try_link "$LINENO"; then :
16105 eval $cacheid=yes
16106 else
16107 eval $cacheid=no
16108 fi
16109 rm -f core conftest.err conftest.$ac_objext \
16110 conftest$ac_exeext conftest.$ac_ext
16111 fi
16112
16113
16114 CFLAGS="$xorg_testset_save_CFLAGS"
16115
16116 eval supported=\$$cacheid
16117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16118 $as_echo "$supported" >&6; }
16119 if test "$supported" = "yes" ; then
16120 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
16121 found="yes"
16122 fi
16123 fi
16124
16125
16126
16127
16128
16129
16130
16131
16132
16133
16134
16135
16136
16137
16138
16139 xorg_testset_save_CFLAGS="$CFLAGS"
16140
16141 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16142 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16144 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16145 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16146 $as_echo_n "(cached) " >&6
16147 else
16148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16149 /* end confdefs.h. */
16150 int i;
16151 _ACEOF
16152 if ac_fn_c_try_compile "$LINENO"; then :
16153 xorg_cv_cc_flag_unknown_warning_option=yes
16154 else
16155 xorg_cv_cc_flag_unknown_warning_option=no
16156 fi
16157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16158 fi
16159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16160 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16161 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16162 CFLAGS="$xorg_testset_save_CFLAGS"
16163 fi
16164
16165 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16166 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16167 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16168 fi
16169 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16171 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16172 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16173 $as_echo_n "(cached) " >&6
16174 else
16175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16176 /* end confdefs.h. */
16177 int i;
16178 _ACEOF
16179 if ac_fn_c_try_compile "$LINENO"; then :
16180 xorg_cv_cc_flag_unused_command_line_argument=yes
16181 else
16182 xorg_cv_cc_flag_unused_command_line_argument=no
16183 fi
16184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16185 fi
16186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16187 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16188 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16189 CFLAGS="$xorg_testset_save_CFLAGS"
16190 fi
16191
16192 found="no"
16193
16194 if test $found = "no" ; then
16195 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16196 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16197 fi
16198
16199 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16200 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16201 fi
16202
16203 CFLAGS="$CFLAGS -Wsequence-point"
16204
16205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wsequence-point" >&5
16206 $as_echo_n "checking if $CC supports-Wsequence-point... " >&6; }
16207 cacheid=xorg_cv_cc_flag__Wsequence_point
16208 if eval \${$cacheid+:} false; then :
16209 $as_echo_n "(cached) " >&6
16210 else
16211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16212 /* end confdefs.h. */
16213 int i;
16214 int
16215 main ()
16216 {
16217
16218 ;
16219 return 0;
16220 }
16221 _ACEOF
16222 if ac_fn_c_try_link "$LINENO"; then :
16223 eval $cacheid=yes
16224 else
16225 eval $cacheid=no
16226 fi
16227 rm -f core conftest.err conftest.$ac_objext \
16228 conftest$ac_exeext conftest.$ac_ext
16229 fi
16230
16231
16232 CFLAGS="$xorg_testset_save_CFLAGS"
16233
16234 eval supported=\$$cacheid
16235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16236 $as_echo "$supported" >&6; }
16237 if test "$supported" = "yes" ; then
16238 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
16239 found="yes"
16240 fi
16241 fi
16242
16243
16244
16245
16246
16247
16248
16249
16250
16251
16252
16253
16254
16255
16256
16257 xorg_testset_save_CFLAGS="$CFLAGS"
16258
16259 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16260 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16262 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16263 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16264 $as_echo_n "(cached) " >&6
16265 else
16266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16267 /* end confdefs.h. */
16268 int i;
16269 _ACEOF
16270 if ac_fn_c_try_compile "$LINENO"; then :
16271 xorg_cv_cc_flag_unknown_warning_option=yes
16272 else
16273 xorg_cv_cc_flag_unknown_warning_option=no
16274 fi
16275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16276 fi
16277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16278 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16279 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16280 CFLAGS="$xorg_testset_save_CFLAGS"
16281 fi
16282
16283 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16284 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16285 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16286 fi
16287 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16289 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16290 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16291 $as_echo_n "(cached) " >&6
16292 else
16293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16294 /* end confdefs.h. */
16295 int i;
16296 _ACEOF
16297 if ac_fn_c_try_compile "$LINENO"; then :
16298 xorg_cv_cc_flag_unused_command_line_argument=yes
16299 else
16300 xorg_cv_cc_flag_unused_command_line_argument=no
16301 fi
16302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16303 fi
16304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16305 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16306 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16307 CFLAGS="$xorg_testset_save_CFLAGS"
16308 fi
16309
16310 found="no"
16311
16312 if test $found = "no" ; then
16313 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16314 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16315 fi
16316
16317 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16318 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16319 fi
16320
16321 CFLAGS="$CFLAGS -Wreturn-type"
16322
16323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wreturn-type" >&5
16324 $as_echo_n "checking if $CC supports-Wreturn-type... " >&6; }
16325 cacheid=xorg_cv_cc_flag__Wreturn_type
16326 if eval \${$cacheid+:} false; then :
16327 $as_echo_n "(cached) " >&6
16328 else
16329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16330 /* end confdefs.h. */
16331 int i;
16332 int
16333 main ()
16334 {
16335
16336 ;
16337 return 0;
16338 }
16339 _ACEOF
16340 if ac_fn_c_try_link "$LINENO"; then :
16341 eval $cacheid=yes
16342 else
16343 eval $cacheid=no
16344 fi
16345 rm -f core conftest.err conftest.$ac_objext \
16346 conftest$ac_exeext conftest.$ac_ext
16347 fi
16348
16349
16350 CFLAGS="$xorg_testset_save_CFLAGS"
16351
16352 eval supported=\$$cacheid
16353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16354 $as_echo "$supported" >&6; }
16355 if test "$supported" = "yes" ; then
16356 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
16357 found="yes"
16358 fi
16359 fi
16360
16361
16362
16363
16364
16365
16366
16367
16368
16369
16370
16371
16372
16373
16374
16375 xorg_testset_save_CFLAGS="$CFLAGS"
16376
16377 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16378 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16380 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16381 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16382 $as_echo_n "(cached) " >&6
16383 else
16384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16385 /* end confdefs.h. */
16386 int i;
16387 _ACEOF
16388 if ac_fn_c_try_compile "$LINENO"; then :
16389 xorg_cv_cc_flag_unknown_warning_option=yes
16390 else
16391 xorg_cv_cc_flag_unknown_warning_option=no
16392 fi
16393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16394 fi
16395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16396 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16397 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16398 CFLAGS="$xorg_testset_save_CFLAGS"
16399 fi
16400
16401 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16402 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16403 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16404 fi
16405 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16407 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16408 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16409 $as_echo_n "(cached) " >&6
16410 else
16411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16412 /* end confdefs.h. */
16413 int i;
16414 _ACEOF
16415 if ac_fn_c_try_compile "$LINENO"; then :
16416 xorg_cv_cc_flag_unused_command_line_argument=yes
16417 else
16418 xorg_cv_cc_flag_unused_command_line_argument=no
16419 fi
16420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16421 fi
16422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16423 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16424 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16425 CFLAGS="$xorg_testset_save_CFLAGS"
16426 fi
16427
16428 found="no"
16429
16430 if test $found = "no" ; then
16431 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16432 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16433 fi
16434
16435 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16436 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16437 fi
16438
16439 CFLAGS="$CFLAGS -Wtrigraphs"
16440
16441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wtrigraphs" >&5
16442 $as_echo_n "checking if $CC supports-Wtrigraphs... " >&6; }
16443 cacheid=xorg_cv_cc_flag__Wtrigraphs
16444 if eval \${$cacheid+:} false; then :
16445 $as_echo_n "(cached) " >&6
16446 else
16447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16448 /* end confdefs.h. */
16449 int i;
16450 int
16451 main ()
16452 {
16453
16454 ;
16455 return 0;
16456 }
16457 _ACEOF
16458 if ac_fn_c_try_link "$LINENO"; then :
16459 eval $cacheid=yes
16460 else
16461 eval $cacheid=no
16462 fi
16463 rm -f core conftest.err conftest.$ac_objext \
16464 conftest$ac_exeext conftest.$ac_ext
16465 fi
16466
16467
16468 CFLAGS="$xorg_testset_save_CFLAGS"
16469
16470 eval supported=\$$cacheid
16471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16472 $as_echo "$supported" >&6; }
16473 if test "$supported" = "yes" ; then
16474 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
16475 found="yes"
16476 fi
16477 fi
16478
16479
16480
16481
16482
16483
16484
16485
16486
16487
16488
16489
16490
16491
16492
16493 xorg_testset_save_CFLAGS="$CFLAGS"
16494
16495 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16496 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16498 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16499 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16500 $as_echo_n "(cached) " >&6
16501 else
16502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16503 /* end confdefs.h. */
16504 int i;
16505 _ACEOF
16506 if ac_fn_c_try_compile "$LINENO"; then :
16507 xorg_cv_cc_flag_unknown_warning_option=yes
16508 else
16509 xorg_cv_cc_flag_unknown_warning_option=no
16510 fi
16511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16512 fi
16513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16514 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16515 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16516 CFLAGS="$xorg_testset_save_CFLAGS"
16517 fi
16518
16519 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16520 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16521 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16522 fi
16523 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16525 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16526 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16527 $as_echo_n "(cached) " >&6
16528 else
16529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16530 /* end confdefs.h. */
16531 int i;
16532 _ACEOF
16533 if ac_fn_c_try_compile "$LINENO"; then :
16534 xorg_cv_cc_flag_unused_command_line_argument=yes
16535 else
16536 xorg_cv_cc_flag_unused_command_line_argument=no
16537 fi
16538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16539 fi
16540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16541 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16542 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16543 CFLAGS="$xorg_testset_save_CFLAGS"
16544 fi
16545
16546 found="no"
16547
16548 if test $found = "no" ; then
16549 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16550 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16551 fi
16552
16553 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16554 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16555 fi
16556
16557 CFLAGS="$CFLAGS -Warray-bounds"
16558
16559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Warray-bounds" >&5
16560 $as_echo_n "checking if $CC supports-Warray-bounds... " >&6; }
16561 cacheid=xorg_cv_cc_flag__Warray_bounds
16562 if eval \${$cacheid+:} false; then :
16563 $as_echo_n "(cached) " >&6
16564 else
16565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16566 /* end confdefs.h. */
16567 int i;
16568 int
16569 main ()
16570 {
16571
16572 ;
16573 return 0;
16574 }
16575 _ACEOF
16576 if ac_fn_c_try_link "$LINENO"; then :
16577 eval $cacheid=yes
16578 else
16579 eval $cacheid=no
16580 fi
16581 rm -f core conftest.err conftest.$ac_objext \
16582 conftest$ac_exeext conftest.$ac_ext
16583 fi
16584
16585
16586 CFLAGS="$xorg_testset_save_CFLAGS"
16587
16588 eval supported=\$$cacheid
16589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16590 $as_echo "$supported" >&6; }
16591 if test "$supported" = "yes" ; then
16592 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
16593 found="yes"
16594 fi
16595 fi
16596
16597
16598
16599
16600
16601
16602
16603
16604
16605
16606
16607
16608
16609
16610
16611 xorg_testset_save_CFLAGS="$CFLAGS"
16612
16613 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16614 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16616 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16617 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16618 $as_echo_n "(cached) " >&6
16619 else
16620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16621 /* end confdefs.h. */
16622 int i;
16623 _ACEOF
16624 if ac_fn_c_try_compile "$LINENO"; then :
16625 xorg_cv_cc_flag_unknown_warning_option=yes
16626 else
16627 xorg_cv_cc_flag_unknown_warning_option=no
16628 fi
16629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16630 fi
16631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16632 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16633 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16634 CFLAGS="$xorg_testset_save_CFLAGS"
16635 fi
16636
16637 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16638 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16639 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16640 fi
16641 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16643 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16644 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16645 $as_echo_n "(cached) " >&6
16646 else
16647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16648 /* end confdefs.h. */
16649 int i;
16650 _ACEOF
16651 if ac_fn_c_try_compile "$LINENO"; then :
16652 xorg_cv_cc_flag_unused_command_line_argument=yes
16653 else
16654 xorg_cv_cc_flag_unused_command_line_argument=no
16655 fi
16656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16657 fi
16658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16659 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16660 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16661 CFLAGS="$xorg_testset_save_CFLAGS"
16662 fi
16663
16664 found="no"
16665
16666 if test $found = "no" ; then
16667 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16668 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16669 fi
16670
16671 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16672 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16673 fi
16674
16675 CFLAGS="$CFLAGS -Wwrite-strings"
16676
16677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wwrite-strings" >&5
16678 $as_echo_n "checking if $CC supports-Wwrite-strings... " >&6; }
16679 cacheid=xorg_cv_cc_flag__Wwrite_strings
16680 if eval \${$cacheid+:} false; then :
16681 $as_echo_n "(cached) " >&6
16682 else
16683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16684 /* end confdefs.h. */
16685 int i;
16686 int
16687 main ()
16688 {
16689
16690 ;
16691 return 0;
16692 }
16693 _ACEOF
16694 if ac_fn_c_try_link "$LINENO"; then :
16695 eval $cacheid=yes
16696 else
16697 eval $cacheid=no
16698 fi
16699 rm -f core conftest.err conftest.$ac_objext \
16700 conftest$ac_exeext conftest.$ac_ext
16701 fi
16702
16703
16704 CFLAGS="$xorg_testset_save_CFLAGS"
16705
16706 eval supported=\$$cacheid
16707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16708 $as_echo "$supported" >&6; }
16709 if test "$supported" = "yes" ; then
16710 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
16711 found="yes"
16712 fi
16713 fi
16714
16715
16716
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726
16727
16728
16729 xorg_testset_save_CFLAGS="$CFLAGS"
16730
16731 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16732 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16734 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16735 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16736 $as_echo_n "(cached) " >&6
16737 else
16738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16739 /* end confdefs.h. */
16740 int i;
16741 _ACEOF
16742 if ac_fn_c_try_compile "$LINENO"; then :
16743 xorg_cv_cc_flag_unknown_warning_option=yes
16744 else
16745 xorg_cv_cc_flag_unknown_warning_option=no
16746 fi
16747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16748 fi
16749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16750 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16751 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16752 CFLAGS="$xorg_testset_save_CFLAGS"
16753 fi
16754
16755 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16756 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16757 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16758 fi
16759 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16761 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16762 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16763 $as_echo_n "(cached) " >&6
16764 else
16765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16766 /* end confdefs.h. */
16767 int i;
16768 _ACEOF
16769 if ac_fn_c_try_compile "$LINENO"; then :
16770 xorg_cv_cc_flag_unused_command_line_argument=yes
16771 else
16772 xorg_cv_cc_flag_unused_command_line_argument=no
16773 fi
16774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16775 fi
16776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16777 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16778 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16779 CFLAGS="$xorg_testset_save_CFLAGS"
16780 fi
16781
16782 found="no"
16783
16784 if test $found = "no" ; then
16785 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16786 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16787 fi
16788
16789 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16790 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16791 fi
16792
16793 CFLAGS="$CFLAGS -Waddress"
16794
16795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Waddress" >&5
16796 $as_echo_n "checking if $CC supports-Waddress... " >&6; }
16797 cacheid=xorg_cv_cc_flag__Waddress
16798 if eval \${$cacheid+:} false; then :
16799 $as_echo_n "(cached) " >&6
16800 else
16801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16802 /* end confdefs.h. */
16803 int i;
16804 int
16805 main ()
16806 {
16807
16808 ;
16809 return 0;
16810 }
16811 _ACEOF
16812 if ac_fn_c_try_link "$LINENO"; then :
16813 eval $cacheid=yes
16814 else
16815 eval $cacheid=no
16816 fi
16817 rm -f core conftest.err conftest.$ac_objext \
16818 conftest$ac_exeext conftest.$ac_ext
16819 fi
16820
16821
16822 CFLAGS="$xorg_testset_save_CFLAGS"
16823
16824 eval supported=\$$cacheid
16825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16826 $as_echo "$supported" >&6; }
16827 if test "$supported" = "yes" ; then
16828 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
16829 found="yes"
16830 fi
16831 fi
16832
16833
16834
16835
16836
16837
16838
16839
16840
16841
16842
16843
16844
16845
16846
16847 xorg_testset_save_CFLAGS="$CFLAGS"
16848
16849 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16850 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16852 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16853 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16854 $as_echo_n "(cached) " >&6
16855 else
16856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16857 /* end confdefs.h. */
16858 int i;
16859 _ACEOF
16860 if ac_fn_c_try_compile "$LINENO"; then :
16861 xorg_cv_cc_flag_unknown_warning_option=yes
16862 else
16863 xorg_cv_cc_flag_unknown_warning_option=no
16864 fi
16865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16866 fi
16867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16868 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16869 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16870 CFLAGS="$xorg_testset_save_CFLAGS"
16871 fi
16872
16873 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16874 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16875 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16876 fi
16877 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16879 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16880 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16881 $as_echo_n "(cached) " >&6
16882 else
16883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16884 /* end confdefs.h. */
16885 int i;
16886 _ACEOF
16887 if ac_fn_c_try_compile "$LINENO"; then :
16888 xorg_cv_cc_flag_unused_command_line_argument=yes
16889 else
16890 xorg_cv_cc_flag_unused_command_line_argument=no
16891 fi
16892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16893 fi
16894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16895 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16896 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16897 CFLAGS="$xorg_testset_save_CFLAGS"
16898 fi
16899
16900 found="no"
16901
16902 if test $found = "no" ; then
16903 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16904 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16905 fi
16906
16907 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16908 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16909 fi
16910
16911 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
16912
16913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wint-to-pointer-cast" >&5
16914 $as_echo_n "checking if $CC supports-Wint-to-pointer-cast... " >&6; }
16915 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
16916 if eval \${$cacheid+:} false; then :
16917 $as_echo_n "(cached) " >&6
16918 else
16919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16920 /* end confdefs.h. */
16921 int i;
16922 int
16923 main ()
16924 {
16925
16926 ;
16927 return 0;
16928 }
16929 _ACEOF
16930 if ac_fn_c_try_link "$LINENO"; then :
16931 eval $cacheid=yes
16932 else
16933 eval $cacheid=no
16934 fi
16935 rm -f core conftest.err conftest.$ac_objext \
16936 conftest$ac_exeext conftest.$ac_ext
16937 fi
16938
16939
16940 CFLAGS="$xorg_testset_save_CFLAGS"
16941
16942 eval supported=\$$cacheid
16943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16944 $as_echo "$supported" >&6; }
16945 if test "$supported" = "yes" ; then
16946 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
16947 found="yes"
16948 fi
16949 fi
16950
16951
16952
16953
16954
16955
16956
16957
16958
16959
16960
16961
16962
16963
16964
16965 xorg_testset_save_CFLAGS="$CFLAGS"
16966
16967 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16968 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16970 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16971 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16972 $as_echo_n "(cached) " >&6
16973 else
16974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16975 /* end confdefs.h. */
16976 int i;
16977 _ACEOF
16978 if ac_fn_c_try_compile "$LINENO"; then :
16979 xorg_cv_cc_flag_unknown_warning_option=yes
16980 else
16981 xorg_cv_cc_flag_unknown_warning_option=no
16982 fi
16983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16984 fi
16985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16986 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16987 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16988 CFLAGS="$xorg_testset_save_CFLAGS"
16989 fi
16990
16991 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16992 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16993 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16994 fi
16995 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16997 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16998 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16999 $as_echo_n "(cached) " >&6
17000 else
17001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17002 /* end confdefs.h. */
17003 int i;
17004 _ACEOF
17005 if ac_fn_c_try_compile "$LINENO"; then :
17006 xorg_cv_cc_flag_unused_command_line_argument=yes
17007 else
17008 xorg_cv_cc_flag_unused_command_line_argument=no
17009 fi
17010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17011 fi
17012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17013 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17014 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17015 CFLAGS="$xorg_testset_save_CFLAGS"
17016 fi
17017
17018 found="no"
17019
17020 if test $found = "no" ; then
17021 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17022 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17023 fi
17024
17025 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17026 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17027 fi
17028
17029 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
17030
17031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-to-int-cast" >&5
17032 $as_echo_n "checking if $CC supports-Wpointer-to-int-cast... " >&6; }
17033 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
17034 if eval \${$cacheid+:} false; then :
17035 $as_echo_n "(cached) " >&6
17036 else
17037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17038 /* end confdefs.h. */
17039 int i;
17040 int
17041 main ()
17042 {
17043
17044 ;
17045 return 0;
17046 }
17047 _ACEOF
17048 if ac_fn_c_try_link "$LINENO"; then :
17049 eval $cacheid=yes
17050 else
17051 eval $cacheid=no
17052 fi
17053 rm -f core conftest.err conftest.$ac_objext \
17054 conftest$ac_exeext conftest.$ac_ext
17055 fi
17056
17057
17058 CFLAGS="$xorg_testset_save_CFLAGS"
17059
17060 eval supported=\$$cacheid
17061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17062 $as_echo "$supported" >&6; }
17063 if test "$supported" = "yes" ; then
17064 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
17065 found="yes"
17066 fi
17067 fi
17068
17069
17070 fi
17071
17072
17073
17074
17075
17076
17077
17078 CWARNFLAGS="$BASE_CFLAGS"
17079 if test "x$GCC" = xyes ; then
17080 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
17081 fi
17082
17083
17084
17085
17086
17087
17088
17089
17090 # Check whether --enable-strict-compilation was given.
17091 if test "${enable_strict_compilation+set}" = set; then :
17092 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
17093 else
17094 STRICT_COMPILE=no
17095 fi
17096
17097
17098
17099
17100
17101
17102 STRICT_CFLAGS=""
17103
17104
17105
17106
17107
17108
17109
17110
17111
17112
17113
17114
17115
17116 xorg_testset_save_CFLAGS="$CFLAGS"
17117
17118 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17119 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17121 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17122 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17123 $as_echo_n "(cached) " >&6
17124 else
17125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17126 /* end confdefs.h. */
17127 int i;
17128 _ACEOF
17129 if ac_fn_c_try_compile "$LINENO"; then :
17130 xorg_cv_cc_flag_unknown_warning_option=yes
17131 else
17132 xorg_cv_cc_flag_unknown_warning_option=no
17133 fi
17134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17135 fi
17136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17137 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17138 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17139 CFLAGS="$xorg_testset_save_CFLAGS"
17140 fi
17141
17142 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17143 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17144 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17145 fi
17146 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17148 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17149 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17150 $as_echo_n "(cached) " >&6
17151 else
17152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17153 /* end confdefs.h. */
17154 int i;
17155 _ACEOF
17156 if ac_fn_c_try_compile "$LINENO"; then :
17157 xorg_cv_cc_flag_unused_command_line_argument=yes
17158 else
17159 xorg_cv_cc_flag_unused_command_line_argument=no
17160 fi
17161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17162 fi
17163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17164 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17165 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17166 CFLAGS="$xorg_testset_save_CFLAGS"
17167 fi
17168
17169 found="no"
17170
17171 if test $found = "no" ; then
17172 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17173 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17174 fi
17175
17176 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17177 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17178 fi
17179
17180 CFLAGS="$CFLAGS -pedantic"
17181
17182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-pedantic" >&5
17183 $as_echo_n "checking if $CC supports-pedantic... " >&6; }
17184 cacheid=xorg_cv_cc_flag__pedantic
17185 if eval \${$cacheid+:} false; then :
17186 $as_echo_n "(cached) " >&6
17187 else
17188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17189 /* end confdefs.h. */
17190 int i;
17191 int
17192 main ()
17193 {
17194
17195 ;
17196 return 0;
17197 }
17198 _ACEOF
17199 if ac_fn_c_try_link "$LINENO"; then :
17200 eval $cacheid=yes
17201 else
17202 eval $cacheid=no
17203 fi
17204 rm -f core conftest.err conftest.$ac_objext \
17205 conftest$ac_exeext conftest.$ac_ext
17206 fi
17207
17208
17209 CFLAGS="$xorg_testset_save_CFLAGS"
17210
17211 eval supported=\$$cacheid
17212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17213 $as_echo "$supported" >&6; }
17214 if test "$supported" = "yes" ; then
17215 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
17216 found="yes"
17217 fi
17218 fi
17219
17220
17221
17222
17223
17224
17225
17226
17227
17228
17229
17230
17231
17232
17233
17234 xorg_testset_save_CFLAGS="$CFLAGS"
17235
17236 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17237 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17239 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17240 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17241 $as_echo_n "(cached) " >&6
17242 else
17243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17244 /* end confdefs.h. */
17245 int i;
17246 _ACEOF
17247 if ac_fn_c_try_compile "$LINENO"; then :
17248 xorg_cv_cc_flag_unknown_warning_option=yes
17249 else
17250 xorg_cv_cc_flag_unknown_warning_option=no
17251 fi
17252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17253 fi
17254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17255 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17256 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17257 CFLAGS="$xorg_testset_save_CFLAGS"
17258 fi
17259
17260 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17261 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17262 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17263 fi
17264 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17266 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17267 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17268 $as_echo_n "(cached) " >&6
17269 else
17270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17271 /* end confdefs.h. */
17272 int i;
17273 _ACEOF
17274 if ac_fn_c_try_compile "$LINENO"; then :
17275 xorg_cv_cc_flag_unused_command_line_argument=yes
17276 else
17277 xorg_cv_cc_flag_unused_command_line_argument=no
17278 fi
17279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17280 fi
17281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17282 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17283 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17284 CFLAGS="$xorg_testset_save_CFLAGS"
17285 fi
17286
17287 found="no"
17288
17289 if test $found = "no" ; then
17290 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17291 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17292 fi
17293
17294 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17295 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17296 fi
17297
17298 CFLAGS="$CFLAGS -Werror"
17299
17300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror" >&5
17301 $as_echo_n "checking if $CC supports-Werror... " >&6; }
17302 cacheid=xorg_cv_cc_flag__Werror
17303 if eval \${$cacheid+:} false; then :
17304 $as_echo_n "(cached) " >&6
17305 else
17306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17307 /* end confdefs.h. */
17308 int i;
17309 int
17310 main ()
17311 {
17312
17313 ;
17314 return 0;
17315 }
17316 _ACEOF
17317 if ac_fn_c_try_link "$LINENO"; then :
17318 eval $cacheid=yes
17319 else
17320 eval $cacheid=no
17321 fi
17322 rm -f core conftest.err conftest.$ac_objext \
17323 conftest$ac_exeext conftest.$ac_ext
17324 fi
17325
17326
17327 CFLAGS="$xorg_testset_save_CFLAGS"
17328
17329 eval supported=\$$cacheid
17330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17331 $as_echo "$supported" >&6; }
17332 if test "$supported" = "yes" ; then
17333 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
17334 found="yes"
17335 fi
17336 fi
17337
17338 if test $found = "no" ; then
17339 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17340 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17341 fi
17342
17343 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17344 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17345 fi
17346
17347 CFLAGS="$CFLAGS -errwarn"
17348
17349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn" >&5
17350 $as_echo_n "checking if $CC supports-errwarn... " >&6; }
17351 cacheid=xorg_cv_cc_flag__errwarn
17352 if eval \${$cacheid+:} false; then :
17353 $as_echo_n "(cached) " >&6
17354 else
17355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17356 /* end confdefs.h. */
17357 int i;
17358 int
17359 main ()
17360 {
17361
17362 ;
17363 return 0;
17364 }
17365 _ACEOF
17366 if ac_fn_c_try_link "$LINENO"; then :
17367 eval $cacheid=yes
17368 else
17369 eval $cacheid=no
17370 fi
17371 rm -f core conftest.err conftest.$ac_objext \
17372 conftest$ac_exeext conftest.$ac_ext
17373 fi
17374
17375
17376 CFLAGS="$xorg_testset_save_CFLAGS"
17377
17378 eval supported=\$$cacheid
17379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17380 $as_echo "$supported" >&6; }
17381 if test "$supported" = "yes" ; then
17382 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
17383 found="yes"
17384 fi
17385 fi
17386
17387
17388
17389 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
17390 # activate it with -Werror, so we add it here explicitly.
17391
17392
17393
17394
17395
17396
17397
17398
17399
17400
17401
17402
17403
17404 xorg_testset_save_CFLAGS="$CFLAGS"
17405
17406 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17407 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17409 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17410 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17411 $as_echo_n "(cached) " >&6
17412 else
17413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17414 /* end confdefs.h. */
17415 int i;
17416 _ACEOF
17417 if ac_fn_c_try_compile "$LINENO"; then :
17418 xorg_cv_cc_flag_unknown_warning_option=yes
17419 else
17420 xorg_cv_cc_flag_unknown_warning_option=no
17421 fi
17422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17423 fi
17424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17425 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17426 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17427 CFLAGS="$xorg_testset_save_CFLAGS"
17428 fi
17429
17430 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17431 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17432 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17433 fi
17434 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17436 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17437 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17438 $as_echo_n "(cached) " >&6
17439 else
17440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17441 /* end confdefs.h. */
17442 int i;
17443 _ACEOF
17444 if ac_fn_c_try_compile "$LINENO"; then :
17445 xorg_cv_cc_flag_unused_command_line_argument=yes
17446 else
17447 xorg_cv_cc_flag_unused_command_line_argument=no
17448 fi
17449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17450 fi
17451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17452 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17453 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17454 CFLAGS="$xorg_testset_save_CFLAGS"
17455 fi
17456
17457 found="no"
17458
17459 if test $found = "no" ; then
17460 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17461 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17462 fi
17463
17464 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17465 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17466 fi
17467
17468 CFLAGS="$CFLAGS -Werror=attributes"
17469
17470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=attributes" >&5
17471 $as_echo_n "checking if $CC supports-Werror=attributes... " >&6; }
17472 cacheid=xorg_cv_cc_flag__Werror_attributes
17473 if eval \${$cacheid+:} false; then :
17474 $as_echo_n "(cached) " >&6
17475 else
17476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17477 /* end confdefs.h. */
17478 int i;
17479 int
17480 main ()
17481 {
17482
17483 ;
17484 return 0;
17485 }
17486 _ACEOF
17487 if ac_fn_c_try_link "$LINENO"; then :
17488 eval $cacheid=yes
17489 else
17490 eval $cacheid=no
17491 fi
17492 rm -f core conftest.err conftest.$ac_objext \
17493 conftest$ac_exeext conftest.$ac_ext
17494 fi
17495
17496
17497 CFLAGS="$xorg_testset_save_CFLAGS"
17498
17499 eval supported=\$$cacheid
17500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17501 $as_echo "$supported" >&6; }
17502 if test "$supported" = "yes" ; then
17503 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
17504 found="yes"
17505 fi
17506 fi
17507
17508
17509
17510 if test "x$STRICT_COMPILE" = "xyes"; then
17511 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
17512 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
17513 fi
17514
17515
17516
17517
17518
17519
17520 cat >>confdefs.h <<_ACEOF
17521 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
17522 _ACEOF
17523
17524 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
17525 if test "x$PVM" = "x"; then
17526 PVM="0"
17527 fi
17528
17529 cat >>confdefs.h <<_ACEOF
17530 #define PACKAGE_VERSION_MINOR $PVM
17531 _ACEOF
17532
17533 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
17534 if test "x$PVP" = "x"; then
17535 PVP="0"
17536 fi
17537
17538 cat >>confdefs.h <<_ACEOF
17539 #define PACKAGE_VERSION_PATCHLEVEL $PVP
17540 _ACEOF
17541
17542
17543
17544 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
17545 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
17546 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
17547 echo 'git directory not found: installing possibly empty changelog.' >&2)"
17548
17549
17550
17551
17552 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
17553 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
17554 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
17555 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
17556 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
17557
17558
17559
17560
17561
17562
17563 if test x$APP_MAN_SUFFIX = x ; then
17564 APP_MAN_SUFFIX=1
17565 fi
17566 if test x$APP_MAN_DIR = x ; then
17567 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
17568 fi
17569
17570 if test x$LIB_MAN_SUFFIX = x ; then
17571 LIB_MAN_SUFFIX=3
17572 fi
17573 if test x$LIB_MAN_DIR = x ; then
17574 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
17575 fi
17576
17577 if test x$FILE_MAN_SUFFIX = x ; then
17578 case $host_os in
17579 solaris*) FILE_MAN_SUFFIX=4 ;;
17580 *) FILE_MAN_SUFFIX=5 ;;
17581 esac
17582 fi
17583 if test x$FILE_MAN_DIR = x ; then
17584 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
17585 fi
17586
17587 if test x$MISC_MAN_SUFFIX = x ; then
17588 case $host_os in
17589 solaris*) MISC_MAN_SUFFIX=5 ;;
17590 *) MISC_MAN_SUFFIX=7 ;;
17591 esac
17592 fi
17593 if test x$MISC_MAN_DIR = x ; then
17594 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
17595 fi
17596
17597 if test x$DRIVER_MAN_SUFFIX = x ; then
17598 case $host_os in
17599 solaris*) DRIVER_MAN_SUFFIX=7 ;;
17600 *) DRIVER_MAN_SUFFIX=4 ;;
17601 esac
17602 fi
17603 if test x$DRIVER_MAN_DIR = x ; then
17604 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
17605 fi
17606
17607 if test x$ADMIN_MAN_SUFFIX = x ; then
17608 case $host_os in
17609 solaris*) ADMIN_MAN_SUFFIX=1m ;;
17610 *) ADMIN_MAN_SUFFIX=8 ;;
17611 esac
17612 fi
17613 if test x$ADMIN_MAN_DIR = x ; then
17614 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
17615 fi
17616
17617
17618
17619
17620
17621
17622
17623
17624
17625
17626
17627
17628
17629
17630
17631 XORG_MAN_PAGE="X Version 11"
17632
17633 MAN_SUBSTS="\
17634 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17635 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17636 -e 's|__xservername__|Xorg|g' \
17637 -e 's|__xconfigfile__|xorg.conf|g' \
17638 -e 's|__projectroot__|\$(prefix)|g' \
17639 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
17640 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
17641 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
17642 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
17643 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
17644 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
17645 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
17646
17647
17648
17649 # Check whether --enable-silent-rules was given.
17650 if test "${enable_silent_rules+set}" = set; then :
17651 enableval=$enable_silent_rules;
17652 fi
17653
17654 case $enable_silent_rules in # (((
17655 yes) AM_DEFAULT_VERBOSITY=0;;
17656 no) AM_DEFAULT_VERBOSITY=1;;
17657 *) AM_DEFAULT_VERBOSITY=0;;
17658 esac
17659 am_make=${MAKE-make}
17660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
17661 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
17662 if ${am_cv_make_support_nested_variables+:} false; then :
17663 $as_echo_n "(cached) " >&6
17664 else
17665 if $as_echo 'TRUE=$(BAR$(V))
17666 BAR0=false
17667 BAR1=true
17668 V=1
17669 am__doit:
17670 @$(TRUE)
17671 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
17672 am_cv_make_support_nested_variables=yes
17673 else
17674 am_cv_make_support_nested_variables=no
17675 fi
17676 fi
17677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
17678 $as_echo "$am_cv_make_support_nested_variables" >&6; }
17679 if test $am_cv_make_support_nested_variables = yes; then
17680 AM_V='$(V)'
17681 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
17682 else
17683 AM_V=$AM_DEFAULT_VERBOSITY
17684 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
17685 fi
17686 AM_BACKSLASH='\'
17687
17688
17689
17690
17691 # Check whether --enable-docs was given.
17692 if test "${enable_docs+set}" = set; then :
17693 enableval=$enable_docs; build_docs=$enableval
17694 else
17695 build_docs=yes
17696 fi
17697
17698
17699 if test x$build_docs = xyes; then
17700 ENABLE_DOCS_TRUE=
17701 ENABLE_DOCS_FALSE='#'
17702 else
17703 ENABLE_DOCS_TRUE='#'
17704 ENABLE_DOCS_FALSE=
17705 fi
17706
17707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build documentation" >&5
17708 $as_echo_n "checking whether to build documentation... " >&6; }
17709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_docs" >&5
17710 $as_echo "$build_docs" >&6; }
17711
17712
17713
17714 # Check whether --enable-specs was given.
17715 if test "${enable_specs+set}" = set; then :
17716 enableval=$enable_specs; build_specs=$enableval
17717 else
17718 build_specs=yes
17719 fi
17720
17721
17722 if test x$build_specs = xyes; then
17723 ENABLE_SPECS_TRUE=
17724 ENABLE_SPECS_FALSE='#'
17725 else
17726 ENABLE_SPECS_TRUE='#'
17727 ENABLE_SPECS_FALSE=
17728 fi
17729
17730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build functional specifications" >&5
17731 $as_echo_n "checking whether to build functional specifications... " >&6; }
17732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_specs" >&5
17733 $as_echo "$build_specs" >&6; }
17734
17735
17736
17737
17738
17739 # Check whether --with-xmlto was given.
17740 if test "${with_xmlto+set}" = set; then :
17741 withval=$with_xmlto; use_xmlto=$withval
17742 else
17743 use_xmlto=auto
17744 fi
17745
17746
17747
17748 if test "x$use_xmlto" = x"auto"; then
17749 # Extract the first word of "xmlto", so it can be a program name with args.
17750 set dummy xmlto; ac_word=$2
17751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17752 $as_echo_n "checking for $ac_word... " >&6; }
17753 if ${ac_cv_path_XMLTO+:} false; then :
17754 $as_echo_n "(cached) " >&6
17755 else
17756 case $XMLTO in
17757 [\\/]* | ?:[\\/]*)
17758 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
17759 ;;
17760 *)
17761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17762 for as_dir in $PATH
17763 do
17764 IFS=$as_save_IFS
17765 test -z "$as_dir" && as_dir=.
17766 for ac_exec_ext in '' $ac_executable_extensions; do
17767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17768 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
17769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17770 break 2
17771 fi
17772 done
17773 done
17774 IFS=$as_save_IFS
17775
17776 ;;
17777 esac
17778 fi
17779 XMLTO=$ac_cv_path_XMLTO
17780 if test -n "$XMLTO"; then
17781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
17782 $as_echo "$XMLTO" >&6; }
17783 else
17784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17785 $as_echo "no" >&6; }
17786 fi
17787
17788
17789 if test "x$XMLTO" = "x"; then
17790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5
17791 $as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;}
17792 have_xmlto=no
17793 else
17794 have_xmlto=yes
17795 fi
17796 elif test "x$use_xmlto" = x"yes" ; then
17797 # Extract the first word of "xmlto", so it can be a program name with args.
17798 set dummy xmlto; ac_word=$2
17799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17800 $as_echo_n "checking for $ac_word... " >&6; }
17801 if ${ac_cv_path_XMLTO+:} false; then :
17802 $as_echo_n "(cached) " >&6
17803 else
17804 case $XMLTO in
17805 [\\/]* | ?:[\\/]*)
17806 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
17807 ;;
17808 *)
17809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17810 for as_dir in $PATH
17811 do
17812 IFS=$as_save_IFS
17813 test -z "$as_dir" && as_dir=.
17814 for ac_exec_ext in '' $ac_executable_extensions; do
17815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17816 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
17817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17818 break 2
17819 fi
17820 done
17821 done
17822 IFS=$as_save_IFS
17823
17824 ;;
17825 esac
17826 fi
17827 XMLTO=$ac_cv_path_XMLTO
17828 if test -n "$XMLTO"; then
17829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
17830 $as_echo "$XMLTO" >&6; }
17831 else
17832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17833 $as_echo "no" >&6; }
17834 fi
17835
17836
17837 if test "x$XMLTO" = "x"; then
17838 as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5
17839 fi
17840 have_xmlto=yes
17841 elif test "x$use_xmlto" = x"no" ; then
17842 if test "x$XMLTO" != "x"; then
17843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5
17844 $as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;}
17845 fi
17846 have_xmlto=no
17847 else
17848 as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5
17849 fi
17850
17851 # Test for a minimum version of xmlto, if provided.
17852 if test "$have_xmlto" = yes; then
17853 # scrape the xmlto version
17854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5
17855 $as_echo_n "checking the xmlto version... " >&6; }
17856 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3`
17857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5
17858 $as_echo "$xmlto_version" >&6; }
17859 as_arg_v1=$xmlto_version
17860 as_arg_v2=0.0.22
17861 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
17862 case $? in #(
17863 1) :
17864 if test "x$use_xmlto" = xauto; then
17865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5
17866 $as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;}
17867 have_xmlto=no
17868 else
17869 as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5
17870 fi ;; #(
17871 0) :
17872 ;; #(
17873 2) :
17874 ;; #(
17875 *) :
17876 ;;
17877 esac
17878 fi
17879
17880 # Test for the ability of xmlto to generate a text target
17881 have_xmlto_text=no
17882 cat > conftest.xml << "EOF"
17883 EOF
17884 if test "$have_xmlto" = yes; then :
17885 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then :
17886 have_xmlto_text=yes
17887 else
17888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5
17889 $as_echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;}
17890 fi
17891 fi
17892 rm -f conftest.xml
17893 if test $have_xmlto_text = yes; then
17894 HAVE_XMLTO_TEXT_TRUE=
17895 HAVE_XMLTO_TEXT_FALSE='#'
17896 else
17897 HAVE_XMLTO_TEXT_TRUE='#'
17898 HAVE_XMLTO_TEXT_FALSE=
17899 fi
17900
17901 if test "$have_xmlto" = yes; then
17902 HAVE_XMLTO_TRUE=
17903 HAVE_XMLTO_FALSE='#'
17904 else
17905 HAVE_XMLTO_TRUE='#'
17906 HAVE_XMLTO_FALSE=
17907 fi
17908
17909
17910
17911
17912
17913
17914 # Check whether --with-fop was given.
17915 if test "${with_fop+set}" = set; then :
17916 withval=$with_fop; use_fop=$withval
17917 else
17918 use_fop=auto
17919 fi
17920
17921
17922
17923 if test "x$use_fop" = x"auto"; then
17924 # Extract the first word of "fop", so it can be a program name with args.
17925 set dummy fop; ac_word=$2
17926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17927 $as_echo_n "checking for $ac_word... " >&6; }
17928 if ${ac_cv_path_FOP+:} false; then :
17929 $as_echo_n "(cached) " >&6
17930 else
17931 case $FOP in
17932 [\\/]* | ?:[\\/]*)
17933 ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
17934 ;;
17935 *)
17936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17937 for as_dir in $PATH
17938 do
17939 IFS=$as_save_IFS
17940 test -z "$as_dir" && as_dir=.
17941 for ac_exec_ext in '' $ac_executable_extensions; do
17942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17943 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
17944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17945 break 2
17946 fi
17947 done
17948 done
17949 IFS=$as_save_IFS
17950
17951 ;;
17952 esac
17953 fi
17954 FOP=$ac_cv_path_FOP
17955 if test -n "$FOP"; then
17956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
17957 $as_echo "$FOP" >&6; }
17958 else
17959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17960 $as_echo "no" >&6; }
17961 fi
17962
17963
17964 if test "x$FOP" = "x"; then
17965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5
17966 $as_echo "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;}
17967 have_fop=no
17968 else
17969 have_fop=yes
17970 fi
17971 elif test "x$use_fop" = x"yes" ; then
17972 # Extract the first word of "fop", so it can be a program name with args.
17973 set dummy fop; ac_word=$2
17974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17975 $as_echo_n "checking for $ac_word... " >&6; }
17976 if ${ac_cv_path_FOP+:} false; then :
17977 $as_echo_n "(cached) " >&6
17978 else
17979 case $FOP in
17980 [\\/]* | ?:[\\/]*)
17981 ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
17982 ;;
17983 *)
17984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17985 for as_dir in $PATH
17986 do
17987 IFS=$as_save_IFS
17988 test -z "$as_dir" && as_dir=.
17989 for ac_exec_ext in '' $ac_executable_extensions; do
17990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17991 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
17992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17993 break 2
17994 fi
17995 done
17996 done
17997 IFS=$as_save_IFS
17998
17999 ;;
18000 esac
18001 fi
18002 FOP=$ac_cv_path_FOP
18003 if test -n "$FOP"; then
18004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
18005 $as_echo "$FOP" >&6; }
18006 else
18007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18008 $as_echo "no" >&6; }
18009 fi
18010
18011
18012 if test "x$FOP" = "x"; then
18013 as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5
18014 fi
18015 have_fop=yes
18016 elif test "x$use_fop" = x"no" ; then
18017 if test "x$FOP" != "x"; then
18018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5
18019 $as_echo "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;}
18020 fi
18021 have_fop=no
18022 else
18023 as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5
18024 fi
18025
18026 # Test for a minimum version of fop, if provided.
18027
18028 if test "$have_fop" = yes; then
18029 HAVE_FOP_TRUE=
18030 HAVE_FOP_FALSE='#'
18031 else
18032 HAVE_FOP_TRUE='#'
18033 HAVE_FOP_FALSE=
18034 fi
18035
18036
18037
18038
18039 # Preserves the interface, should it be implemented later
18040
18041
18042
18043 # Check whether --with-xsltproc was given.
18044 if test "${with_xsltproc+set}" = set; then :
18045 withval=$with_xsltproc; use_xsltproc=$withval
18046 else
18047 use_xsltproc=auto
18048 fi
18049
18050
18051
18052 if test "x$use_xsltproc" = x"auto"; then
18053 # Extract the first word of "xsltproc", so it can be a program name with args.
18054 set dummy xsltproc; ac_word=$2
18055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18056 $as_echo_n "checking for $ac_word... " >&6; }
18057 if ${ac_cv_path_XSLTPROC+:} false; then :
18058 $as_echo_n "(cached) " >&6
18059 else
18060 case $XSLTPROC in
18061 [\\/]* | ?:[\\/]*)
18062 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
18063 ;;
18064 *)
18065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18066 for as_dir in $PATH
18067 do
18068 IFS=$as_save_IFS
18069 test -z "$as_dir" && as_dir=.
18070 for ac_exec_ext in '' $ac_executable_extensions; do
18071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18072 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
18073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18074 break 2
18075 fi
18076 done
18077 done
18078 IFS=$as_save_IFS
18079
18080 ;;
18081 esac
18082 fi
18083 XSLTPROC=$ac_cv_path_XSLTPROC
18084 if test -n "$XSLTPROC"; then
18085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
18086 $as_echo "$XSLTPROC" >&6; }
18087 else
18088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18089 $as_echo "no" >&6; }
18090 fi
18091
18092
18093 if test "x$XSLTPROC" = "x"; then
18094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5
18095 $as_echo "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;}
18096 have_xsltproc=no
18097 else
18098 have_xsltproc=yes
18099 fi
18100 elif test "x$use_xsltproc" = x"yes" ; then
18101 # Extract the first word of "xsltproc", so it can be a program name with args.
18102 set dummy xsltproc; ac_word=$2
18103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18104 $as_echo_n "checking for $ac_word... " >&6; }
18105 if ${ac_cv_path_XSLTPROC+:} false; then :
18106 $as_echo_n "(cached) " >&6
18107 else
18108 case $XSLTPROC in
18109 [\\/]* | ?:[\\/]*)
18110 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
18111 ;;
18112 *)
18113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18114 for as_dir in $PATH
18115 do
18116 IFS=$as_save_IFS
18117 test -z "$as_dir" && as_dir=.
18118 for ac_exec_ext in '' $ac_executable_extensions; do
18119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18120 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
18121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18122 break 2
18123 fi
18124 done
18125 done
18126 IFS=$as_save_IFS
18127
18128 ;;
18129 esac
18130 fi
18131 XSLTPROC=$ac_cv_path_XSLTPROC
18132 if test -n "$XSLTPROC"; then
18133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
18134 $as_echo "$XSLTPROC" >&6; }
18135 else
18136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18137 $as_echo "no" >&6; }
18138 fi
18139
18140
18141 if test "x$XSLTPROC" = "x"; then
18142 as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5
18143 fi
18144 have_xsltproc=yes
18145 elif test "x$use_xsltproc" = x"no" ; then
18146 if test "x$XSLTPROC" != "x"; then
18147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5
18148 $as_echo "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;}
18149 fi
18150 have_xsltproc=no
18151 else
18152 as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5
18153 fi
18154
18155 if test "$have_xsltproc" = yes; then
18156 HAVE_XSLTPROC_TRUE=
18157 HAVE_XSLTPROC_FALSE='#'
18158 else
18159 HAVE_XSLTPROC_TRUE='#'
18160 HAVE_XSLTPROC_FALSE=
18161 fi
18162
18163
18164
18165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.8" >&5
18166 $as_echo_n "checking for X.Org SGML entities >= 1.8... " >&6; }
18167 XORG_SGML_PATH=
18168 if test -n "$PKG_CONFIG" && \
18169 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.8\""; } >&5
18170 ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.8") 2>&5
18171 ac_status=$?
18172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18173 test $ac_status = 0; }; then
18174 XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`
18175 else
18176 :
18177
18178 fi
18179
18180 # Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing
18181 # the path and the name of the doc stylesheet
18182 if test "x$XORG_SGML_PATH" != "x" ; then
18183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5
18184 $as_echo "$XORG_SGML_PATH" >&6; }
18185 STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11
18186 XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl
18187 else
18188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18189 $as_echo "no" >&6; }
18190 fi
18191
18192
18193
18194
18195 if test "x$XSL_STYLESHEET" != "x"; then
18196 HAVE_STYLESHEETS_TRUE=
18197 HAVE_STYLESHEETS_FALSE='#'
18198 else
18199 HAVE_STYLESHEETS_TRUE='#'
18200 HAVE_STYLESHEETS_FALSE=
18201 fi
18202
18203
18204
18205
18206
18207
18208 # Check whether --with-asciidoc was given.
18209 if test "${with_asciidoc+set}" = set; then :
18210 withval=$with_asciidoc; use_asciidoc=$withval
18211 else
18212 use_asciidoc=auto
18213 fi
18214
18215
18216
18217 if test "x$use_asciidoc" = x"auto"; then
18218 # Extract the first word of "asciidoc", so it can be a program name with args.
18219 set dummy asciidoc; ac_word=$2
18220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18221 $as_echo_n "checking for $ac_word... " >&6; }
18222 if ${ac_cv_path_ASCIIDOC+:} false; then :
18223 $as_echo_n "(cached) " >&6
18224 else
18225 case $ASCIIDOC in
18226 [\\/]* | ?:[\\/]*)
18227 ac_cv_path_ASCIIDOC="$ASCIIDOC" # Let the user override the test with a path.
18228 ;;
18229 *)
18230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18231 for as_dir in $PATH
18232 do
18233 IFS=$as_save_IFS
18234 test -z "$as_dir" && as_dir=.
18235 for ac_exec_ext in '' $ac_executable_extensions; do
18236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18237 ac_cv_path_ASCIIDOC="$as_dir/$ac_word$ac_exec_ext"
18238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18239 break 2
18240 fi
18241 done
18242 done
18243 IFS=$as_save_IFS
18244
18245 ;;
18246 esac
18247 fi
18248 ASCIIDOC=$ac_cv_path_ASCIIDOC
18249 if test -n "$ASCIIDOC"; then
18250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ASCIIDOC" >&5
18251 $as_echo "$ASCIIDOC" >&6; }
18252 else
18253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18254 $as_echo "no" >&6; }
18255 fi
18256
18257
18258 if test "x$ASCIIDOC" = "x"; then
18259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: asciidoc not found - documentation targets will be skipped" >&5
18260 $as_echo "$as_me: WARNING: asciidoc not found - documentation targets will be skipped" >&2;}
18261 have_asciidoc=no
18262 else
18263 have_asciidoc=yes
18264 fi
18265 elif test "x$use_asciidoc" = x"yes" ; then
18266 # Extract the first word of "asciidoc", so it can be a program name with args.
18267 set dummy asciidoc; ac_word=$2
18268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18269 $as_echo_n "checking for $ac_word... " >&6; }
18270 if ${ac_cv_path_ASCIIDOC+:} false; then :
18271 $as_echo_n "(cached) " >&6
18272 else
18273 case $ASCIIDOC in
18274 [\\/]* | ?:[\\/]*)
18275 ac_cv_path_ASCIIDOC="$ASCIIDOC" # Let the user override the test with a path.
18276 ;;
18277 *)
18278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18279 for as_dir in $PATH
18280 do
18281 IFS=$as_save_IFS
18282 test -z "$as_dir" && as_dir=.
18283 for ac_exec_ext in '' $ac_executable_extensions; do
18284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18285 ac_cv_path_ASCIIDOC="$as_dir/$ac_word$ac_exec_ext"
18286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18287 break 2
18288 fi
18289 done
18290 done
18291 IFS=$as_save_IFS
18292
18293 ;;
18294 esac
18295 fi
18296 ASCIIDOC=$ac_cv_path_ASCIIDOC
18297 if test -n "$ASCIIDOC"; then
18298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ASCIIDOC" >&5
18299 $as_echo "$ASCIIDOC" >&6; }
18300 else
18301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18302 $as_echo "no" >&6; }
18303 fi
18304
18305
18306 if test "x$ASCIIDOC" = "x"; then
18307 as_fn_error $? "--with-asciidoc=yes specified but asciidoc not found in PATH" "$LINENO" 5
18308 fi
18309 have_asciidoc=yes
18310 elif test "x$use_asciidoc" = x"no" ; then
18311 if test "x$ASCIIDOC" != "x"; then
18312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring ASCIIDOC environment variable since --with-asciidoc=no was specified" >&5
18313 $as_echo "$as_me: WARNING: ignoring ASCIIDOC environment variable since --with-asciidoc=no was specified" >&2;}
18314 fi
18315 have_asciidoc=no
18316 else
18317 as_fn_error $? "--with-asciidoc expects 'yes' or 'no'" "$LINENO" 5
18318 fi
18319 if test "$have_asciidoc" = yes; then
18320 # scrape the asciidoc version
18321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the asciidoc version" >&5
18322 $as_echo_n "checking the asciidoc version... " >&6; }
18323 asciidoc_version=`$ASCIIDOC --version 2>/dev/null | cut -d' ' -f2`
18324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $asciidoc_version" >&5
18325 $as_echo "$asciidoc_version" >&6; }
18326 as_arg_v1=$asciidoc_version
18327 as_arg_v2=8.4.5
18328 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
18329 case $? in #(
18330 1) :
18331 if test "x$use_asciidoc" = xauto; then
18332 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: asciidoc version $asciidoc_version found, but 8.4.5 needed" >&5
18333 $as_echo "$as_me: WARNING: asciidoc version $asciidoc_version found, but 8.4.5 needed" >&2;}
18334 have_asciidoc=no
18335 else
18336 as_fn_error $? "asciidoc version $asciidoc_version found, but 8.4.5 needed" "$LINENO" 5
18337 fi ;; #(
18338 0) :
18339 ;; #(
18340 2) :
18341 ;; #(
18342 *) :
18343 ;;
18344 esac
18345 fi
18346 if test "$have_asciidoc" = yes; then
18347 HAVE_ASCIIDOC_TRUE=
18348 HAVE_ASCIIDOC_FALSE='#'
18349 else
18350 HAVE_ASCIIDOC_TRUE='#'
18351 HAVE_ASCIIDOC_FALSE=
18352 fi
18353
18354
18355
18356 # Check whether --enable-malloc0returnsnull was given.
18357 if test "${enable_malloc0returnsnull+set}" = set; then :
18358 enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval
18359 else
18360 MALLOC_ZERO_RETURNS_NULL=auto
18361 fi
18362
18363
18364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5
18365 $as_echo_n "checking whether malloc(0) returns NULL... " >&6; }
18366 if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
18367 if test "$cross_compiling" = yes; then :
18368 MALLOC_ZERO_RETURNS_NULL=yes
18369 else
18370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18371 /* end confdefs.h. */
18372
18373 #include <stdlib.h>
18374
18375 int
18376 main ()
18377 {
18378
18379 char *m0, *r0, *c0, *p;
18380 m0 = malloc(0);
18381 p = malloc(10);
18382 r0 = realloc(p,0);
18383 c0 = calloc(0,10);
18384 exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1);
18385
18386 ;
18387 return 0;
18388 }
18389 _ACEOF
18390 if ac_fn_c_try_run "$LINENO"; then :
18391 MALLOC_ZERO_RETURNS_NULL=yes
18392 else
18393 MALLOC_ZERO_RETURNS_NULL=no
18394 fi
18395 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18396 conftest.$ac_objext conftest.beam conftest.$ac_ext
18397 fi
18398
18399 fi
18400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5
18401 $as_echo "$MALLOC_ZERO_RETURNS_NULL" >&6; }
18402
18403 if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
18404 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
18405 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
18406 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
18407 else
18408 MALLOC_ZERO_CFLAGS=""
18409 XMALLOC_ZERO_CFLAGS=""
18410 XTMALLOC_ZERO_CFLAGS=""
18411 fi
18412
18413
18414
18415
18416
18417
18418 # Obtain compiler/linker options for dependencies
18419
18420 pkg_failed=no
18421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XI" >&5
18422 $as_echo_n "checking for XI... " >&6; }
18423
18424 if test -n "$XI_CFLAGS"; then
18425 pkg_cv_XI_CFLAGS="$XI_CFLAGS"
18426 elif test -n "$PKG_CONFIG"; then
18427 if test -n "$PKG_CONFIG" && \
18428 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.13 x11 >= 1.4.99.1 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.2.99.1\""; } >&5
18429 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.13 x11 >= 1.4.99.1 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.2.99.1") 2>&5
18430 ac_status=$?
18431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18432 test $ac_status = 0; }; then
18433 pkg_cv_XI_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.13 x11 >= 1.4.99.1 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.2.99.1" 2>/dev/null`
18434 test "x$?" != "x0" && pkg_failed=yes
18435 else
18436 pkg_failed=yes
18437 fi
18438 else
18439 pkg_failed=untried
18440 fi
18441 if test -n "$XI_LIBS"; then
18442 pkg_cv_XI_LIBS="$XI_LIBS"
18443 elif test -n "$PKG_CONFIG"; then
18444 if test -n "$PKG_CONFIG" && \
18445 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.13 x11 >= 1.4.99.1 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.2.99.1\""; } >&5
18446 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.13 x11 >= 1.4.99.1 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.2.99.1") 2>&5
18447 ac_status=$?
18448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18449 test $ac_status = 0; }; then
18450 pkg_cv_XI_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.13 x11 >= 1.4.99.1 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.2.99.1" 2>/dev/null`
18451 test "x$?" != "x0" && pkg_failed=yes
18452 else
18453 pkg_failed=yes
18454 fi
18455 else
18456 pkg_failed=untried
18457 fi
18458
18459
18460
18461 if test $pkg_failed = yes; then
18462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18463 $as_echo "no" >&6; }
18464
18465 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18466 _pkg_short_errors_supported=yes
18467 else
18468 _pkg_short_errors_supported=no
18469 fi
18470 if test $_pkg_short_errors_supported = yes; then
18471 XI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto >= 7.0.13 x11 >= 1.4.99.1 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.2.99.1" 2>&1`
18472 else
18473 XI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto >= 7.0.13 x11 >= 1.4.99.1 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.2.99.1" 2>&1`
18474 fi
18475 # Put the nasty error message in config.log where it belongs
18476 echo "$XI_PKG_ERRORS" >&5
18477
18478 as_fn_error $? "Package requirements (xproto >= 7.0.13 x11 >= 1.4.99.1 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.2.99.1) were not met:
18479
18480 $XI_PKG_ERRORS
18481
18482 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18483 installed software in a non-standard prefix.
18484
18485 Alternatively, you may set the environment variables XI_CFLAGS
18486 and XI_LIBS to avoid the need to call pkg-config.
18487 See the pkg-config man page for more details." "$LINENO" 5
18488 elif test $pkg_failed = untried; then
18489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18490 $as_echo "no" >&6; }
18491 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18492 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18493 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18494 is in your PATH or set the PKG_CONFIG environment variable to the full
18495 path to pkg-config.
18496
18497 Alternatively, you may set the environment variables XI_CFLAGS
18498 and XI_LIBS to avoid the need to call pkg-config.
18499 See the pkg-config man page for more details.
18500
18501 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18502 See \`config.log' for more details" "$LINENO" 5; }
18503 else
18504 XI_CFLAGS=$pkg_cv_XI_CFLAGS
18505 XI_LIBS=$pkg_cv_XI_LIBS
18506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18507 $as_echo "yes" >&6; }
18508
18509 fi
18510 # CFLAGS only for PointerBarrier typedef
18511
18512 pkg_failed=no
18513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XFIXES" >&5
18514 $as_echo_n "checking for XFIXES... " >&6; }
18515
18516 if test -n "$XFIXES_CFLAGS"; then
18517 pkg_cv_XFIXES_CFLAGS="$XFIXES_CFLAGS"
18518 elif test -n "$PKG_CONFIG"; then
18519 if test -n "$PKG_CONFIG" && \
18520 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xfixes >= 5\""; } >&5
18521 ($PKG_CONFIG --exists --print-errors "xfixes >= 5") 2>&5
18522 ac_status=$?
18523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18524 test $ac_status = 0; }; then
18525 pkg_cv_XFIXES_CFLAGS=`$PKG_CONFIG --cflags "xfixes >= 5" 2>/dev/null`
18526 test "x$?" != "x0" && pkg_failed=yes
18527 else
18528 pkg_failed=yes
18529 fi
18530 else
18531 pkg_failed=untried
18532 fi
18533 if test -n "$XFIXES_LIBS"; then
18534 pkg_cv_XFIXES_LIBS="$XFIXES_LIBS"
18535 elif test -n "$PKG_CONFIG"; then
18536 if test -n "$PKG_CONFIG" && \
18537 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xfixes >= 5\""; } >&5
18538 ($PKG_CONFIG --exists --print-errors "xfixes >= 5") 2>&5
18539 ac_status=$?
18540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18541 test $ac_status = 0; }; then
18542 pkg_cv_XFIXES_LIBS=`$PKG_CONFIG --libs "xfixes >= 5" 2>/dev/null`
18543 test "x$?" != "x0" && pkg_failed=yes
18544 else
18545 pkg_failed=yes
18546 fi
18547 else
18548 pkg_failed=untried
18549 fi
18550
18551
18552
18553 if test $pkg_failed = yes; then
18554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18555 $as_echo "no" >&6; }
18556
18557 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18558 _pkg_short_errors_supported=yes
18559 else
18560 _pkg_short_errors_supported=no
18561 fi
18562 if test $_pkg_short_errors_supported = yes; then
18563 XFIXES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xfixes >= 5" 2>&1`
18564 else
18565 XFIXES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xfixes >= 5" 2>&1`
18566 fi
18567 # Put the nasty error message in config.log where it belongs
18568 echo "$XFIXES_PKG_ERRORS" >&5
18569
18570 as_fn_error $? "Package requirements (xfixes >= 5) were not met:
18571
18572 $XFIXES_PKG_ERRORS
18573
18574 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18575 installed software in a non-standard prefix.
18576
18577 Alternatively, you may set the environment variables XFIXES_CFLAGS
18578 and XFIXES_LIBS to avoid the need to call pkg-config.
18579 See the pkg-config man page for more details." "$LINENO" 5
18580 elif test $pkg_failed = untried; then
18581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18582 $as_echo "no" >&6; }
18583 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18584 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18585 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18586 is in your PATH or set the PKG_CONFIG environment variable to the full
18587 path to pkg-config.
18588
18589 Alternatively, you may set the environment variables XFIXES_CFLAGS
18590 and XFIXES_LIBS to avoid the need to call pkg-config.
18591 See the pkg-config man page for more details.
18592
18593 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18594 See \`config.log' for more details" "$LINENO" 5; }
18595 else
18596 XFIXES_CFLAGS=$pkg_cv_XFIXES_CFLAGS
18597 XFIXES_LIBS=$pkg_cv_XFIXES_LIBS
18598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18599 $as_echo "yes" >&6; }
18600
18601 fi
18602
18603 # Check for xmlto and asciidoc for man page conversion
18604 # (only needed by people building tarballs)
18605 if test "$have_xmlto" = yes && test "$have_asciidoc" = yes; then
18606 have_doctools=yes
18607 else
18608 have_doctools=no
18609 fi
18610 if test $have_doctools = yes; then
18611 HAVE_DOCTOOLS_TRUE=
18612 HAVE_DOCTOOLS_FALSE='#'
18613 else
18614 HAVE_DOCTOOLS_TRUE='#'
18615 HAVE_DOCTOOLS_FALSE=
18616 fi
18617
18618 if test $have_doctools = no; then
18619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto or asciidoc not found - cannot create man pages without it" >&5
18620 $as_echo "$as_me: WARNING: xmlto or asciidoc not found - cannot create man pages without it" >&2;}
18621 fi
18622
18623 # Determine if the source for man pages is available
18624 # It may already be present (tarball) or can be generated using doctools
18625 if test -f "$srcdir/man/XAllowDeviceEvents.man" || \
18626 test $have_doctools = yes; then
18627 INSTALL_MANPAGES_TRUE=
18628 INSTALL_MANPAGES_FALSE='#'
18629 else
18630 INSTALL_MANPAGES_TRUE='#'
18631 INSTALL_MANPAGES_FALSE=
18632 fi
18633
18634
18635 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile specs/Makefile xi.pc"
18636
18637 cat >confcache <<\_ACEOF
18638 # This file is a shell script that caches the results of configure
18639 # tests run on this system so they can be shared between configure
18640 # scripts and configure runs, see configure's option --config-cache.
18641 # It is not useful on other systems. If it contains results you don't
18642 # want to keep, you may remove or edit it.
18643 #
18644 # config.status only pays attention to the cache file if you give it
18645 # the --recheck option to rerun configure.
18646 #
18647 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18648 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18649 # following values.
18650
18651 _ACEOF
18652
18653 # The following way of writing the cache mishandles newlines in values,
18654 # but we know of no workaround that is simple, portable, and efficient.
18655 # So, we kill variables containing newlines.
18656 # Ultrix sh set writes to stderr and can't be redirected directly,
18657 # and sets the high bit in the cache file unless we assign to the vars.
18658 (
18659 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18660 eval ac_val=\$$ac_var
18661 case $ac_val in #(
18662 *${as_nl}*)
18663 case $ac_var in #(
18664 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18665 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18666 esac
18667 case $ac_var in #(
18668 _ | IFS | as_nl) ;; #(
18669 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18670 *) { eval $ac_var=; unset $ac_var;} ;;
18671 esac ;;
18672 esac
18673 done
18674
18675 (set) 2>&1 |
18676 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18677 *${as_nl}ac_space=\ *)
18678 # `set' does not quote correctly, so add quotes: double-quote
18679 # substitution turns \\\\ into \\, and sed turns \\ into \.
18680 sed -n \
18681 "s/'/'\\\\''/g;
18682 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18683 ;; #(
18684 *)
18685 # `set' quotes correctly as required by POSIX, so do not add quotes.
18686 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18687 ;;
18688 esac |
18689 sort
18690 ) |
18691 sed '
18692 /^ac_cv_env_/b end
18693 t clear
18694 :clear
18695 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18696 t end
18697 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18698 :end' >>confcache
18699 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18700 if test -w "$cache_file"; then
18701 if test "x$cache_file" != "x/dev/null"; then
18702 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18703 $as_echo "$as_me: updating cache $cache_file" >&6;}
18704 if test ! -f "$cache_file" || test -h "$cache_file"; then
18705 cat confcache >"$cache_file"
18706 else
18707 case $cache_file in #(
18708 */* | ?:*)
18709 mv -f confcache "$cache_file"$$ &&
18710 mv -f "$cache_file"$$ "$cache_file" ;; #(
18711 *)
18712 mv -f confcache "$cache_file" ;;
18713 esac
18714 fi
18715 fi
18716 else
18717 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18718 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18719 fi
18720 fi
18721 rm -f confcache
18722
18723 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18724 # Let make expand exec_prefix.
18725 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18726
18727 DEFS=-DHAVE_CONFIG_H
18728
18729 ac_libobjs=
18730 ac_ltlibobjs=
18731 U=
18732 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18733 # 1. Remove the extension, and $U if already installed.
18734 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18735 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18736 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18737 # will be set to the directory where LIBOBJS objects are built.
18738 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18739 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18740 done
18741 LIBOBJS=$ac_libobjs
18742
18743 LTLIBOBJS=$ac_ltlibobjs
18744
18745
18746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18747 $as_echo_n "checking that generated files are newer than configure... " >&6; }
18748 if test -n "$am_sleep_pid"; then
18749 # Hide warnings about reused PIDs.
18750 wait $am_sleep_pid 2>/dev/null
18751 fi
18752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18753 $as_echo "done" >&6; }
18754 if test -n "$EXEEXT"; then
18755 am__EXEEXT_TRUE=
18756 am__EXEEXT_FALSE='#'
18757 else
18758 am__EXEEXT_TRUE='#'
18759 am__EXEEXT_FALSE=
18760 fi
18761
18762 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18763 as_fn_error $? "conditional \"AMDEP\" was never defined.
18764 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18765 fi
18766 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18767 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18768 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18769 fi
18770 if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then
18771 as_fn_error $? "conditional \"ENABLE_DOCS\" was never defined.
18772 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18773 fi
18774 if test -z "${ENABLE_SPECS_TRUE}" && test -z "${ENABLE_SPECS_FALSE}"; then
18775 as_fn_error $? "conditional \"ENABLE_SPECS\" was never defined.
18776 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18777 fi
18778 if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then
18779 as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined.
18780 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18781 fi
18782 if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
18783 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
18784 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18785 fi
18786 if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
18787 as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
18788 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18789 fi
18790 if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then
18791 as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined.
18792 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18793 fi
18794 if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then
18795 as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined.
18796 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18797 fi
18798 if test -z "${HAVE_ASCIIDOC_TRUE}" && test -z "${HAVE_ASCIIDOC_FALSE}"; then
18799 as_fn_error $? "conditional \"HAVE_ASCIIDOC\" was never defined.
18800 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18801 fi
18802 if test -z "${HAVE_DOCTOOLS_TRUE}" && test -z "${HAVE_DOCTOOLS_FALSE}"; then
18803 as_fn_error $? "conditional \"HAVE_DOCTOOLS\" was never defined.
18804 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18805 fi
18806 if test -z "${INSTALL_MANPAGES_TRUE}" && test -z "${INSTALL_MANPAGES_FALSE}"; then
18807 as_fn_error $? "conditional \"INSTALL_MANPAGES\" was never defined.
18808 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18809 fi
18810
18811 : "${CONFIG_STATUS=./config.status}"
18812 ac_write_fail=0
18813 ac_clean_files_save=$ac_clean_files
18814 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18815 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18816 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18817 as_write_fail=0
18818 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18819 #! $SHELL
18820 # Generated by $as_me.
18821 # Run this file to recreate the current configuration.
18822 # Compiler output produced by configure, useful for debugging
18823 # configure, is in config.log if it exists.
18824
18825 debug=false
18826 ac_cs_recheck=false
18827 ac_cs_silent=false
18828
18829 SHELL=\${CONFIG_SHELL-$SHELL}
18830 export SHELL
18831 _ASEOF
18832 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18833 ## -------------------- ##
18834 ## M4sh Initialization. ##
18835 ## -------------------- ##
18836
18837 # Be more Bourne compatible
18838 DUALCASE=1; export DUALCASE # for MKS sh
18839 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18840 emulate sh
18841 NULLCMD=:
18842 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18843 # is contrary to our usage. Disable this feature.
18844 alias -g '${1+"$@"}'='"$@"'
18845 setopt NO_GLOB_SUBST
18846 else
18847 case `(set -o) 2>/dev/null` in #(
18848 *posix*) :
18849 set -o posix ;; #(
18850 *) :
18851 ;;
18852 esac
18853 fi
18854
18855
18856 as_nl='
18857 '
18858 export as_nl
18859 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18860 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18861 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18862 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18863 # Prefer a ksh shell builtin over an external printf program on Solaris,
18864 # but without wasting forks for bash or zsh.
18865 if test -z "$BASH_VERSION$ZSH_VERSION" \
18866 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18867 as_echo='print -r --'
18868 as_echo_n='print -rn --'
18869 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18870 as_echo='printf %s\n'
18871 as_echo_n='printf %s'
18872 else
18873 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18874 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18875 as_echo_n='/usr/ucb/echo -n'
18876 else
18877 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18878 as_echo_n_body='eval
18879 arg=$1;
18880 case $arg in #(
18881 *"$as_nl"*)
18882 expr "X$arg" : "X\\(.*\\)$as_nl";
18883 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18884 esac;
18885 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18886 '
18887 export as_echo_n_body
18888 as_echo_n='sh -c $as_echo_n_body as_echo'
18889 fi
18890 export as_echo_body
18891 as_echo='sh -c $as_echo_body as_echo'
18892 fi
18893
18894 # The user is always right.
18895 if test "${PATH_SEPARATOR+set}" != set; then
18896 PATH_SEPARATOR=:
18897 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18898 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18899 PATH_SEPARATOR=';'
18900 }
18901 fi
18902
18903
18904 # IFS
18905 # We need space, tab and new line, in precisely that order. Quoting is
18906 # there to prevent editors from complaining about space-tab.
18907 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18908 # splitting by setting IFS to empty value.)
18909 IFS=" "" $as_nl"
18910
18911 # Find who we are. Look in the path if we contain no directory separator.
18912 as_myself=
18913 case $0 in #((
18914 *[\\/]* ) as_myself=$0 ;;
18915 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18916 for as_dir in $PATH
18917 do
18918 IFS=$as_save_IFS
18919 test -z "$as_dir" && as_dir=.
18920 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18921 done
18922 IFS=$as_save_IFS
18923
18924 ;;
18925 esac
18926 # We did not find ourselves, most probably we were run as `sh COMMAND'
18927 # in which case we are not to be found in the path.
18928 if test "x$as_myself" = x; then
18929 as_myself=$0
18930 fi
18931 if test ! -f "$as_myself"; then
18932 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18933 exit 1
18934 fi
18935
18936 # Unset variables that we do not need and which cause bugs (e.g. in
18937 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18938 # suppresses any "Segmentation fault" message there. '((' could
18939 # trigger a bug in pdksh 5.2.14.
18940 for as_var in BASH_ENV ENV MAIL MAILPATH
18941 do eval test x\${$as_var+set} = xset \
18942 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18943 done
18944 PS1='$ '
18945 PS2='> '
18946 PS4='+ '
18947
18948 # NLS nuisances.
18949 LC_ALL=C
18950 export LC_ALL
18951 LANGUAGE=C
18952 export LANGUAGE
18953
18954 # CDPATH.
18955 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18956
18957
18958 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18959 # ----------------------------------------
18960 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18961 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18962 # script with STATUS, using 1 if that was 0.
18963 as_fn_error ()
18964 {
18965 as_status=$1; test $as_status -eq 0 && as_status=1
18966 if test "$4"; then
18967 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18968 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18969 fi
18970 $as_echo "$as_me: error: $2" >&2
18971 as_fn_exit $as_status
18972 } # as_fn_error
18973
18974
18975 # as_fn_set_status STATUS
18976 # -----------------------
18977 # Set $? to STATUS, without forking.
18978 as_fn_set_status ()
18979 {
18980 return $1
18981 } # as_fn_set_status
18982
18983 # as_fn_exit STATUS
18984 # -----------------
18985 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18986 as_fn_exit ()
18987 {
18988 set +e
18989 as_fn_set_status $1
18990 exit $1
18991 } # as_fn_exit
18992
18993 # as_fn_unset VAR
18994 # ---------------
18995 # Portably unset VAR.
18996 as_fn_unset ()
18997 {
18998 { eval $1=; unset $1;}
18999 }
19000 as_unset=as_fn_unset
19001 # as_fn_append VAR VALUE
19002 # ----------------------
19003 # Append the text in VALUE to the end of the definition contained in VAR. Take
19004 # advantage of any shell optimizations that allow amortized linear growth over
19005 # repeated appends, instead of the typical quadratic growth present in naive
19006 # implementations.
19007 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19008 eval 'as_fn_append ()
19009 {
19010 eval $1+=\$2
19011 }'
19012 else
19013 as_fn_append ()
19014 {
19015 eval $1=\$$1\$2
19016 }
19017 fi # as_fn_append
19018
19019 # as_fn_arith ARG...
19020 # ------------------
19021 # Perform arithmetic evaluation on the ARGs, and store the result in the
19022 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19023 # must be portable across $(()) and expr.
19024 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19025 eval 'as_fn_arith ()
19026 {
19027 as_val=$(( $* ))
19028 }'
19029 else
19030 as_fn_arith ()
19031 {
19032 as_val=`expr "$@" || test $? -eq 1`
19033 }
19034 fi # as_fn_arith
19035
19036
19037 if expr a : '\(a\)' >/dev/null 2>&1 &&
19038 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19039 as_expr=expr
19040 else
19041 as_expr=false
19042 fi
19043
19044 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19045 as_basename=basename
19046 else
19047 as_basename=false
19048 fi
19049
19050 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19051 as_dirname=dirname
19052 else
19053 as_dirname=false
19054 fi
19055
19056 as_me=`$as_basename -- "$0" ||
19057 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19058 X"$0" : 'X\(//\)$' \| \
19059 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19060 $as_echo X/"$0" |
19061 sed '/^.*\/\([^/][^/]*\)\/*$/{
19062 s//\1/
19063 q
19064 }
19065 /^X\/\(\/\/\)$/{
19066 s//\1/
19067 q
19068 }
19069 /^X\/\(\/\).*/{
19070 s//\1/
19071 q
19072 }
19073 s/.*/./; q'`
19074
19075 # Avoid depending upon Character Ranges.
19076 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19077 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19078 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19079 as_cr_digits='0123456789'
19080 as_cr_alnum=$as_cr_Letters$as_cr_digits
19081
19082 ECHO_C= ECHO_N= ECHO_T=
19083 case `echo -n x` in #(((((
19084 -n*)
19085 case `echo 'xy\c'` in
19086 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19087 xy) ECHO_C='\c';;
19088 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19089 ECHO_T=' ';;
19090 esac;;
19091 *)
19092 ECHO_N='-n';;
19093 esac
19094
19095 rm -f conf$$ conf$$.exe conf$$.file
19096 if test -d conf$$.dir; then
19097 rm -f conf$$.dir/conf$$.file
19098 else
19099 rm -f conf$$.dir
19100 mkdir conf$$.dir 2>/dev/null
19101 fi
19102 if (echo >conf$$.file) 2>/dev/null; then
19103 if ln -s conf$$.file conf$$ 2>/dev/null; then
19104 as_ln_s='ln -s'
19105 # ... but there are two gotchas:
19106 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19107 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19108 # In both cases, we have to default to `cp -pR'.
19109 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19110 as_ln_s='cp -pR'
19111 elif ln conf$$.file conf$$ 2>/dev/null; then
19112 as_ln_s=ln
19113 else
19114 as_ln_s='cp -pR'
19115 fi
19116 else
19117 as_ln_s='cp -pR'
19118 fi
19119 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19120 rmdir conf$$.dir 2>/dev/null
19121
19122
19123 # as_fn_mkdir_p
19124 # -------------
19125 # Create "$as_dir" as a directory, including parents if necessary.
19126 as_fn_mkdir_p ()
19127 {
19128
19129 case $as_dir in #(
19130 -*) as_dir=./$as_dir;;
19131 esac
19132 test -d "$as_dir" || eval $as_mkdir_p || {
19133 as_dirs=
19134 while :; do
19135 case $as_dir in #(
19136 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19137 *) as_qdir=$as_dir;;
19138 esac
19139 as_dirs="'$as_qdir' $as_dirs"
19140 as_dir=`$as_dirname -- "$as_dir" ||
19141 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19142 X"$as_dir" : 'X\(//\)[^/]' \| \
19143 X"$as_dir" : 'X\(//\)$' \| \
19144 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19145 $as_echo X"$as_dir" |
19146 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19147 s//\1/
19148 q
19149 }
19150 /^X\(\/\/\)[^/].*/{
19151 s//\1/
19152 q
19153 }
19154 /^X\(\/\/\)$/{
19155 s//\1/
19156 q
19157 }
19158 /^X\(\/\).*/{
19159 s//\1/
19160 q
19161 }
19162 s/.*/./; q'`
19163 test -d "$as_dir" && break
19164 done
19165 test -z "$as_dirs" || eval "mkdir $as_dirs"
19166 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19167
19168
19169 } # as_fn_mkdir_p
19170 if mkdir -p . 2>/dev/null; then
19171 as_mkdir_p='mkdir -p "$as_dir"'
19172 else
19173 test -d ./-p && rmdir ./-p
19174 as_mkdir_p=false
19175 fi
19176
19177
19178 # as_fn_executable_p FILE
19179 # -----------------------
19180 # Test if FILE is an executable regular file.
19181 as_fn_executable_p ()
19182 {
19183 test -f "$1" && test -x "$1"
19184 } # as_fn_executable_p
19185 as_test_x='test -x'
19186 as_executable_p=as_fn_executable_p
19187
19188 # Sed expression to map a string onto a valid CPP name.
19189 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19190
19191 # Sed expression to map a string onto a valid variable name.
19192 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19193
19194
19195 exec 6>&1
19196 ## ----------------------------------- ##
19197 ## Main body of $CONFIG_STATUS script. ##
19198 ## ----------------------------------- ##
19199 _ASEOF
19200 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19201
19202 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19203 # Save the log message, to keep $0 and so on meaningful, and to
19204 # report actual input values of CONFIG_FILES etc. instead of their
19205 # values after options handling.
19206 ac_log="
19207 This file was extended by libXi $as_me 1.7.1, which was
19208 generated by GNU Autoconf 2.69. Invocation command line was
19209
19210 CONFIG_FILES = $CONFIG_FILES
19211 CONFIG_HEADERS = $CONFIG_HEADERS
19212 CONFIG_LINKS = $CONFIG_LINKS
19213 CONFIG_COMMANDS = $CONFIG_COMMANDS
19214 $ $0 $@
19215
19216 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19217 "
19218
19219 _ACEOF
19220
19221 case $ac_config_files in *"
19222 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19223 esac
19224
19225 case $ac_config_headers in *"
19226 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19227 esac
19228
19229
19230 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19231 # Files that config.status was made for.
19232 config_files="$ac_config_files"
19233 config_headers="$ac_config_headers"
19234 config_commands="$ac_config_commands"
19235
19236 _ACEOF
19237
19238 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19239 ac_cs_usage="\
19240 \`$as_me' instantiates files and other configuration actions
19241 from templates according to the current configuration. Unless the files
19242 and actions are specified as TAGs, all are instantiated by default.
19243
19244 Usage: $0 [OPTION]... [TAG]...
19245
19246 -h, --help print this help, then exit
19247 -V, --version print version number and configuration settings, then exit
19248 --config print configuration, then exit
19249 -q, --quiet, --silent
19250 do not print progress messages
19251 -d, --debug don't remove temporary files
19252 --recheck update $as_me by reconfiguring in the same conditions
19253 --file=FILE[:TEMPLATE]
19254 instantiate the configuration file FILE
19255 --header=FILE[:TEMPLATE]
19256 instantiate the configuration header FILE
19257
19258 Configuration files:
19259 $config_files
19260
19261 Configuration headers:
19262 $config_headers
19263
19264 Configuration commands:
19265 $config_commands
19266
19267 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
19268
19269 _ACEOF
19270 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19271 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19272 ac_cs_version="\\
19273 libXi config.status 1.7.1
19274 configured by $0, generated by GNU Autoconf 2.69,
19275 with options \\"\$ac_cs_config\\"
19276
19277 Copyright (C) 2012 Free Software Foundation, Inc.
19278 This config.status script is free software; the Free Software Foundation
19279 gives unlimited permission to copy, distribute and modify it."
19280
19281 ac_pwd='$ac_pwd'
19282 srcdir='$srcdir'
19283 INSTALL='$INSTALL'
19284 MKDIR_P='$MKDIR_P'
19285 AWK='$AWK'
19286 test -n "\$AWK" || AWK=awk
19287 _ACEOF
19288
19289 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19290 # The default lists apply if the user does not specify any file.
19291 ac_need_defaults=:
19292 while test $# != 0
19293 do
19294 case $1 in
19295 --*=?*)
19296 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19297 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19298 ac_shift=:
19299 ;;
19300 --*=)
19301 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19302 ac_optarg=
19303 ac_shift=:
19304 ;;
19305 *)
19306 ac_option=$1
19307 ac_optarg=$2
19308 ac_shift=shift
19309 ;;
19310 esac
19311
19312 case $ac_option in
19313 # Handling of the options.
19314 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19315 ac_cs_recheck=: ;;
19316 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19317 $as_echo "$ac_cs_version"; exit ;;
19318 --config | --confi | --conf | --con | --co | --c )
19319 $as_echo "$ac_cs_config"; exit ;;
19320 --debug | --debu | --deb | --de | --d | -d )
19321 debug=: ;;
19322 --file | --fil | --fi | --f )
19323 $ac_shift
19324 case $ac_optarg in
19325 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19326 '') as_fn_error $? "missing file argument" ;;
19327 esac
19328 as_fn_append CONFIG_FILES " '$ac_optarg'"
19329 ac_need_defaults=false;;
19330 --header | --heade | --head | --hea )
19331 $ac_shift
19332 case $ac_optarg in
19333 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19334 esac
19335 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19336 ac_need_defaults=false;;
19337 --he | --h)
19338 # Conflict between --help and --header
19339 as_fn_error $? "ambiguous option: \`$1'
19340 Try \`$0 --help' for more information.";;
19341 --help | --hel | -h )
19342 $as_echo "$ac_cs_usage"; exit ;;
19343 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19344 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19345 ac_cs_silent=: ;;
19346
19347 # This is an error.
19348 -*) as_fn_error $? "unrecognized option: \`$1'
19349 Try \`$0 --help' for more information." ;;
19350
19351 *) as_fn_append ac_config_targets " $1"
19352 ac_need_defaults=false ;;
19353
19354 esac
19355 shift
19356 done
19357
19358 ac_configure_extra_args=
19359
19360 if $ac_cs_silent; then
19361 exec 6>/dev/null
19362 ac_configure_extra_args="$ac_configure_extra_args --silent"
19363 fi
19364
19365 _ACEOF
19366 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19367 if \$ac_cs_recheck; then
19368 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19369 shift
19370 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19371 CONFIG_SHELL='$SHELL'
19372 export CONFIG_SHELL
19373 exec "\$@"
19374 fi
19375
19376 _ACEOF
19377 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19378 exec 5>>config.log
19379 {
19380 echo
19381 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19382 ## Running $as_me. ##
19383 _ASBOX
19384 $as_echo "$ac_log"
19385 } >&5
19386
19387 _ACEOF
19388 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19389 #
19390 # INIT-COMMANDS
19391 #
19392 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19393
19394
19395 # The HP-UX ksh and POSIX shell print the target directory to stdout
19396 # if CDPATH is set.
19397 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19398
19399 sed_quote_subst='$sed_quote_subst'
19400 double_quote_subst='$double_quote_subst'
19401 delay_variable_subst='$delay_variable_subst'
19402 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19403 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19404 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19405 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19406 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19407 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19408 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19409 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19410 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19411 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19412 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19413 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19414 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19415 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19416 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19417 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19418 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19419 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19420 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19421 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19422 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19423 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19424 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19425 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19426 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19427 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19428 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19429 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19430 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19431 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19432 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19433 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19434 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19435 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19436 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19437 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19438 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19439 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19440 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19441 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19442 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19443 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19444 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19445 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19446 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19447 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19448 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19449 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19450 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19451 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19452 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19453 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19454 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19455 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19456 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19457 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19458 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"`'
19459 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19460 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19461 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19462 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19463 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19464 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19465 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19466 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19467 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19468 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19469 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19470 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19471 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19472 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19473 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19474 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19475 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19476 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19477 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19478 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19479 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19480 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19481 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19482 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19483 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19484 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19485 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19486 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19487 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19488 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19489 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19490 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19491 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19492 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19493 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19494 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19495 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19496 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19497 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19498 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19499 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19500 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19501 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19502 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19503 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19504 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19505 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19506 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19507 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19508 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19509 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19510 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19511 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19512 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19513 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19514 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19515 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19516 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19517 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19518 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19519 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19520 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19521 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19522 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19523 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19524 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19525 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19526 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19527 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19528 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19529 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19530 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19531 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19532
19533 LTCC='$LTCC'
19534 LTCFLAGS='$LTCFLAGS'
19535 compiler='$compiler_DEFAULT'
19536
19537 # A function that is used when there is no print builtin or printf.
19538 func_fallback_echo ()
19539 {
19540 eval 'cat <<_LTECHO_EOF
19541 \$1
19542 _LTECHO_EOF'
19543 }
19544
19545 # Quote evaled strings.
19546 for var in SHELL \
19547 ECHO \
19548 PATH_SEPARATOR \
19549 SED \
19550 GREP \
19551 EGREP \
19552 FGREP \
19553 LD \
19554 NM \
19555 LN_S \
19556 lt_SP2NL \
19557 lt_NL2SP \
19558 reload_flag \
19559 OBJDUMP \
19560 deplibs_check_method \
19561 file_magic_cmd \
19562 file_magic_glob \
19563 want_nocaseglob \
19564 DLLTOOL \
19565 sharedlib_from_linklib_cmd \
19566 AR \
19567 AR_FLAGS \
19568 archiver_list_spec \
19569 STRIP \
19570 RANLIB \
19571 CC \
19572 CFLAGS \
19573 compiler \
19574 lt_cv_sys_global_symbol_pipe \
19575 lt_cv_sys_global_symbol_to_cdecl \
19576 lt_cv_sys_global_symbol_to_c_name_address \
19577 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19578 nm_file_list_spec \
19579 lt_prog_compiler_no_builtin_flag \
19580 lt_prog_compiler_pic \
19581 lt_prog_compiler_wl \
19582 lt_prog_compiler_static \
19583 lt_cv_prog_compiler_c_o \
19584 need_locks \
19585 MANIFEST_TOOL \
19586 DSYMUTIL \
19587 NMEDIT \
19588 LIPO \
19589 OTOOL \
19590 OTOOL64 \
19591 shrext_cmds \
19592 export_dynamic_flag_spec \
19593 whole_archive_flag_spec \
19594 compiler_needs_object \
19595 with_gnu_ld \
19596 allow_undefined_flag \
19597 no_undefined_flag \
19598 hardcode_libdir_flag_spec \
19599 hardcode_libdir_separator \
19600 exclude_expsyms \
19601 include_expsyms \
19602 file_list_spec \
19603 variables_saved_for_relink \
19604 libname_spec \
19605 library_names_spec \
19606 soname_spec \
19607 install_override_mode \
19608 finish_eval \
19609 old_striplib \
19610 striplib; do
19611 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19612 *[\\\\\\\`\\"\\\$]*)
19613 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19614 ;;
19615 *)
19616 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19617 ;;
19618 esac
19619 done
19620
19621 # Double-quote double-evaled strings.
19622 for var in reload_cmds \
19623 old_postinstall_cmds \
19624 old_postuninstall_cmds \
19625 old_archive_cmds \
19626 extract_expsyms_cmds \
19627 old_archive_from_new_cmds \
19628 old_archive_from_expsyms_cmds \
19629 archive_cmds \
19630 archive_expsym_cmds \
19631 module_cmds \
19632 module_expsym_cmds \
19633 export_symbols_cmds \
19634 prelink_cmds \
19635 postlink_cmds \
19636 postinstall_cmds \
19637 postuninstall_cmds \
19638 finish_cmds \
19639 sys_lib_search_path_spec \
19640 sys_lib_dlsearch_path_spec; do
19641 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19642 *[\\\\\\\`\\"\\\$]*)
19643 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19644 ;;
19645 *)
19646 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19647 ;;
19648 esac
19649 done
19650
19651 ac_aux_dir='$ac_aux_dir'
19652 xsi_shell='$xsi_shell'
19653 lt_shell_append='$lt_shell_append'
19654
19655 # See if we are running on zsh, and set the options which allow our
19656 # commands through without removal of \ escapes INIT.
19657 if test -n "\${ZSH_VERSION+set}" ; then
19658 setopt NO_GLOB_SUBST
19659 fi
19660
19661
19662 PACKAGE='$PACKAGE'
19663 VERSION='$VERSION'
19664 TIMESTAMP='$TIMESTAMP'
19665 RM='$RM'
19666 ofile='$ofile'
19667
19668
19669
19670
19671 _ACEOF
19672
19673 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19674
19675 # Handling of arguments.
19676 for ac_config_target in $ac_config_targets
19677 do
19678 case $ac_config_target in
19679 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
19680 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19681 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19682 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19683 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19684 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
19685 "specs/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Makefile" ;;
19686 "xi.pc") CONFIG_FILES="$CONFIG_FILES xi.pc" ;;
19687
19688 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19689 esac
19690 done
19691
19692
19693 # If the user did not use the arguments to specify the items to instantiate,
19694 # then the envvar interface is used. Set only those that are not.
19695 # We use the long form for the default assignment because of an extremely
19696 # bizarre bug on SunOS 4.1.3.
19697 if $ac_need_defaults; then
19698 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19699 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19700 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19701 fi
19702
19703 # Have a temporary directory for convenience. Make it in the build tree
19704 # simply because there is no reason against having it here, and in addition,
19705 # creating and moving files from /tmp can sometimes cause problems.
19706 # Hook for its removal unless debugging.
19707 # Note that there is a small window in which the directory will not be cleaned:
19708 # after its creation but before its name has been assigned to `$tmp'.
19709 $debug ||
19710 {
19711 tmp= ac_tmp=
19712 trap 'exit_status=$?
19713 : "${ac_tmp:=$tmp}"
19714 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19715 ' 0
19716 trap 'as_fn_exit 1' 1 2 13 15
19717 }
19718 # Create a (secure) tmp directory for tmp files.
19719
19720 {
19721 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19722 test -d "$tmp"
19723 } ||
19724 {
19725 tmp=./conf$$-$RANDOM
19726 (umask 077 && mkdir "$tmp")
19727 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19728 ac_tmp=$tmp
19729
19730 # Set up the scripts for CONFIG_FILES section.
19731 # No need to generate them if there are no CONFIG_FILES.
19732 # This happens for instance with `./config.status config.h'.
19733 if test -n "$CONFIG_FILES"; then
19734
19735
19736 ac_cr=`echo X | tr X '\015'`
19737 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19738 # But we know of no other shell where ac_cr would be empty at this
19739 # point, so we can use a bashism as a fallback.
19740 if test "x$ac_cr" = x; then
19741 eval ac_cr=\$\'\\r\'
19742 fi
19743 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19744 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19745 ac_cs_awk_cr='\\r'
19746 else
19747 ac_cs_awk_cr=$ac_cr
19748 fi
19749
19750 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19751 _ACEOF
19752
19753
19754 {
19755 echo "cat >conf$$subs.awk <<_ACEOF" &&
19756 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19757 echo "_ACEOF"
19758 } >conf$$subs.sh ||
19759 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19760 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19761 ac_delim='%!_!# '
19762 for ac_last_try in false false false false false :; do
19763 . ./conf$$subs.sh ||
19764 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19765
19766 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19767 if test $ac_delim_n = $ac_delim_num; then
19768 break
19769 elif $ac_last_try; then
19770 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19771 else
19772 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19773 fi
19774 done
19775 rm -f conf$$subs.sh
19776
19777 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19778 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19779 _ACEOF
19780 sed -n '
19781 h
19782 s/^/S["/; s/!.*/"]=/
19783 p
19784 g
19785 s/^[^!]*!//
19786 :repl
19787 t repl
19788 s/'"$ac_delim"'$//
19789 t delim
19790 :nl
19791 h
19792 s/\(.\{148\}\)..*/\1/
19793 t more1
19794 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19795 p
19796 n
19797 b repl
19798 :more1
19799 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19800 p
19801 g
19802 s/.\{148\}//
19803 t nl
19804 :delim
19805 h
19806 s/\(.\{148\}\)..*/\1/
19807 t more2
19808 s/["\\]/\\&/g; s/^/"/; s/$/"/
19809 p
19810 b
19811 :more2
19812 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19813 p
19814 g
19815 s/.\{148\}//
19816 t delim
19817 ' <conf$$subs.awk | sed '
19818 /^[^""]/{
19819 N
19820 s/\n//
19821 }
19822 ' >>$CONFIG_STATUS || ac_write_fail=1
19823 rm -f conf$$subs.awk
19824 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19825 _ACAWK
19826 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19827 for (key in S) S_is_set[key] = 1
19828 FS = ""
19829
19830 }
19831 {
19832 line = $ 0
19833 nfields = split(line, field, "@")
19834 substed = 0
19835 len = length(field[1])
19836 for (i = 2; i < nfields; i++) {
19837 key = field[i]
19838 keylen = length(key)
19839 if (S_is_set[key]) {
19840 value = S[key]
19841 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19842 len += length(value) + length(field[++i])
19843 substed = 1
19844 } else
19845 len += 1 + keylen
19846 }
19847
19848 print line
19849 }
19850
19851 _ACAWK
19852 _ACEOF
19853 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19854 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19855 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19856 else
19857 cat
19858 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19859 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19860 _ACEOF
19861
19862 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19863 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19864 # trailing colons and then remove the whole line if VPATH becomes empty
19865 # (actually we leave an empty line to preserve line numbers).
19866 if test "x$srcdir" = x.; then
19867 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19868 h
19869 s///
19870 s/^/:/
19871 s/[ ]*$/:/
19872 s/:\$(srcdir):/:/g
19873 s/:\${srcdir}:/:/g
19874 s/:@srcdir@:/:/g
19875 s/^:*//
19876 s/:*$//
19877 x
19878 s/\(=[ ]*\).*/\1/
19879 G
19880 s/\n//
19881 s/^[^=]*=[ ]*$//
19882 }'
19883 fi
19884
19885 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19886 fi # test -n "$CONFIG_FILES"
19887
19888 # Set up the scripts for CONFIG_HEADERS section.
19889 # No need to generate them if there are no CONFIG_HEADERS.
19890 # This happens for instance with `./config.status Makefile'.
19891 if test -n "$CONFIG_HEADERS"; then
19892 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19893 BEGIN {
19894 _ACEOF
19895
19896 # Transform confdefs.h into an awk script `defines.awk', embedded as
19897 # here-document in config.status, that substitutes the proper values into
19898 # config.h.in to produce config.h.
19899
19900 # Create a delimiter string that does not exist in confdefs.h, to ease
19901 # handling of long lines.
19902 ac_delim='%!_!# '
19903 for ac_last_try in false false :; do
19904 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19905 if test -z "$ac_tt"; then
19906 break
19907 elif $ac_last_try; then
19908 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19909 else
19910 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19911 fi
19912 done
19913
19914 # For the awk script, D is an array of macro values keyed by name,
19915 # likewise P contains macro parameters if any. Preserve backslash
19916 # newline sequences.
19917
19918 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19919 sed -n '
19920 s/.\{148\}/&'"$ac_delim"'/g
19921 t rset
19922 :rset
19923 s/^[ ]*#[ ]*define[ ][ ]*/ /
19924 t def
19925 d
19926 :def
19927 s/\\$//
19928 t bsnl
19929 s/["\\]/\\&/g
19930 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19931 D["\1"]=" \3"/p
19932 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19933 d
19934 :bsnl
19935 s/["\\]/\\&/g
19936 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19937 D["\1"]=" \3\\\\\\n"\\/p
19938 t cont
19939 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19940 t cont
19941 d
19942 :cont
19943 n
19944 s/.\{148\}/&'"$ac_delim"'/g
19945 t clear
19946 :clear
19947 s/\\$//
19948 t bsnlc
19949 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19950 d
19951 :bsnlc
19952 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19953 b cont
19954 ' <confdefs.h | sed '
19955 s/'"$ac_delim"'/"\\\
19956 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19957
19958 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19959 for (key in D) D_is_set[key] = 1
19960 FS = ""
19961 }
19962 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19963 line = \$ 0
19964 split(line, arg, " ")
19965 if (arg[1] == "#") {
19966 defundef = arg[2]
19967 mac1 = arg[3]
19968 } else {
19969 defundef = substr(arg[1], 2)
19970 mac1 = arg[2]
19971 }
19972 split(mac1, mac2, "(") #)
19973 macro = mac2[1]
19974 prefix = substr(line, 1, index(line, defundef) - 1)
19975 if (D_is_set[macro]) {
19976 # Preserve the white space surrounding the "#".
19977 print prefix "define", macro P[macro] D[macro]
19978 next
19979 } else {
19980 # Replace #undef with comments. This is necessary, for example,
19981 # in the case of _POSIX_SOURCE, which is predefined and required
19982 # on some systems where configure will not decide to define it.
19983 if (defundef == "undef") {
19984 print "/*", prefix defundef, macro, "*/"
19985 next
19986 }
19987 }
19988 }
19989 { print }
19990 _ACAWK
19991 _ACEOF
19992 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19993 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19994 fi # test -n "$CONFIG_HEADERS"
19995
19996
19997 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19998 shift
19999 for ac_tag
20000 do
20001 case $ac_tag in
20002 :[FHLC]) ac_mode=$ac_tag; continue;;
20003 esac
20004 case $ac_mode$ac_tag in
20005 :[FHL]*:*);;
20006 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20007 :[FH]-) ac_tag=-:-;;
20008 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20009 esac
20010 ac_save_IFS=$IFS
20011 IFS=:
20012 set x $ac_tag
20013 IFS=$ac_save_IFS
20014 shift
20015 ac_file=$1
20016 shift
20017
20018 case $ac_mode in
20019 :L) ac_source=$1;;
20020 :[FH])
20021 ac_file_inputs=
20022 for ac_f
20023 do
20024 case $ac_f in
20025 -) ac_f="$ac_tmp/stdin";;
20026 *) # Look for the file first in the build tree, then in the source tree
20027 # (if the path is not absolute). The absolute path cannot be DOS-style,
20028 # because $ac_f cannot contain `:'.
20029 test -f "$ac_f" ||
20030 case $ac_f in
20031 [\\/$]*) false;;
20032 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20033 esac ||
20034 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20035 esac
20036 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20037 as_fn_append ac_file_inputs " '$ac_f'"
20038 done
20039
20040 # Let's still pretend it is `configure' which instantiates (i.e., don't
20041 # use $as_me), people would be surprised to read:
20042 # /* config.h. Generated by config.status. */
20043 configure_input='Generated from '`
20044 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20045 `' by configure.'
20046 if test x"$ac_file" != x-; then
20047 configure_input="$ac_file. $configure_input"
20048 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20049 $as_echo "$as_me: creating $ac_file" >&6;}
20050 fi
20051 # Neutralize special characters interpreted by sed in replacement strings.
20052 case $configure_input in #(
20053 *\&* | *\|* | *\\* )
20054 ac_sed_conf_input=`$as_echo "$configure_input" |
20055 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20056 *) ac_sed_conf_input=$configure_input;;
20057 esac
20058
20059 case $ac_tag in
20060 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20061 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20062 esac
20063 ;;
20064 esac
20065
20066 ac_dir=`$as_dirname -- "$ac_file" ||
20067 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20068 X"$ac_file" : 'X\(//\)[^/]' \| \
20069 X"$ac_file" : 'X\(//\)$' \| \
20070 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20071 $as_echo X"$ac_file" |
20072 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20073 s//\1/
20074 q
20075 }
20076 /^X\(\/\/\)[^/].*/{
20077 s//\1/
20078 q
20079 }
20080 /^X\(\/\/\)$/{
20081 s//\1/
20082 q
20083 }
20084 /^X\(\/\).*/{
20085 s//\1/
20086 q
20087 }
20088 s/.*/./; q'`
20089 as_dir="$ac_dir"; as_fn_mkdir_p
20090 ac_builddir=.
20091
20092 case "$ac_dir" in
20093 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20094 *)
20095 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20096 # A ".." for each directory in $ac_dir_suffix.
20097 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20098 case $ac_top_builddir_sub in
20099 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20100 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20101 esac ;;
20102 esac
20103 ac_abs_top_builddir=$ac_pwd
20104 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20105 # for backward compatibility:
20106 ac_top_builddir=$ac_top_build_prefix
20107
20108 case $srcdir in
20109 .) # We are building in place.
20110 ac_srcdir=.
20111 ac_top_srcdir=$ac_top_builddir_sub
20112 ac_abs_top_srcdir=$ac_pwd ;;
20113 [\\/]* | ?:[\\/]* ) # Absolute name.
20114 ac_srcdir=$srcdir$ac_dir_suffix;
20115 ac_top_srcdir=$srcdir
20116 ac_abs_top_srcdir=$srcdir ;;
20117 *) # Relative name.
20118 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20119 ac_top_srcdir=$ac_top_build_prefix$srcdir
20120 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20121 esac
20122 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20123
20124
20125 case $ac_mode in
20126 :F)
20127 #
20128 # CONFIG_FILE
20129 #
20130
20131 case $INSTALL in
20132 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20133 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20134 esac
20135 ac_MKDIR_P=$MKDIR_P
20136 case $MKDIR_P in
20137 [\\/$]* | ?:[\\/]* ) ;;
20138 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20139 esac
20140 _ACEOF
20141
20142 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20143 # If the template does not know about datarootdir, expand it.
20144 # FIXME: This hack should be removed a few years after 2.60.
20145 ac_datarootdir_hack=; ac_datarootdir_seen=
20146 ac_sed_dataroot='
20147 /datarootdir/ {
20148 p
20149 q
20150 }
20151 /@datadir@/p
20152 /@docdir@/p
20153 /@infodir@/p
20154 /@localedir@/p
20155 /@mandir@/p'
20156 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20157 *datarootdir*) ac_datarootdir_seen=yes;;
20158 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20160 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20161 _ACEOF
20162 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20163 ac_datarootdir_hack='
20164 s&@datadir@&$datadir&g
20165 s&@docdir@&$docdir&g
20166 s&@infodir@&$infodir&g
20167 s&@localedir@&$localedir&g
20168 s&@mandir@&$mandir&g
20169 s&\\\${datarootdir}&$datarootdir&g' ;;
20170 esac
20171 _ACEOF
20172
20173 # Neutralize VPATH when `$srcdir' = `.'.
20174 # Shell code in configure.ac might set extrasub.
20175 # FIXME: do we really want to maintain this feature?
20176 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20177 ac_sed_extra="$ac_vpsub
20178 $extrasub
20179 _ACEOF
20180 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20181 :t
20182 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20183 s|@configure_input@|$ac_sed_conf_input|;t t
20184 s&@top_builddir@&$ac_top_builddir_sub&;t t
20185 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20186 s&@srcdir@&$ac_srcdir&;t t
20187 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20188 s&@top_srcdir@&$ac_top_srcdir&;t t
20189 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20190 s&@builddir@&$ac_builddir&;t t
20191 s&@abs_builddir@&$ac_abs_builddir&;t t
20192 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20193 s&@INSTALL@&$ac_INSTALL&;t t
20194 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20195 $ac_datarootdir_hack
20196 "
20197 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20198 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20199
20200 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20201 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20202 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20203 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20205 which seems to be undefined. Please make sure it is defined" >&5
20206 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20207 which seems to be undefined. Please make sure it is defined" >&2;}
20208
20209 rm -f "$ac_tmp/stdin"
20210 case $ac_file in
20211 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20212 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20213 esac \
20214 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20215 ;;
20216 :H)
20217 #
20218 # CONFIG_HEADER
20219 #
20220 if test x"$ac_file" != x-; then
20221 {
20222 $as_echo "/* $configure_input */" \
20223 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20224 } >"$ac_tmp/config.h" \
20225 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20226 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20227 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20228 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20229 else
20230 rm -f "$ac_file"
20231 mv "$ac_tmp/config.h" "$ac_file" \
20232 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20233 fi
20234 else
20235 $as_echo "/* $configure_input */" \
20236 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20237 || as_fn_error $? "could not create -" "$LINENO" 5
20238 fi
20239 # Compute "$ac_file"'s index in $config_headers.
20240 _am_arg="$ac_file"
20241 _am_stamp_count=1
20242 for _am_header in $config_headers :; do
20243 case $_am_header in
20244 $_am_arg | $_am_arg:* )
20245 break ;;
20246 * )
20247 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20248 esac
20249 done
20250 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20251 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20252 X"$_am_arg" : 'X\(//\)[^/]' \| \
20253 X"$_am_arg" : 'X\(//\)$' \| \
20254 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20255 $as_echo X"$_am_arg" |
20256 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20257 s//\1/
20258 q
20259 }
20260 /^X\(\/\/\)[^/].*/{
20261 s//\1/
20262 q
20263 }
20264 /^X\(\/\/\)$/{
20265 s//\1/
20266 q
20267 }
20268 /^X\(\/\).*/{
20269 s//\1/
20270 q
20271 }
20272 s/.*/./; q'`/stamp-h$_am_stamp_count
20273 ;;
20274
20275 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20276 $as_echo "$as_me: executing $ac_file commands" >&6;}
20277 ;;
20278 esac
20279
20280
20281 case $ac_file$ac_mode in
20282 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20283 # Autoconf 2.62 quotes --file arguments for eval, but not when files
20284 # are listed without --file. Let's play safe and only enable the eval
20285 # if we detect the quoting.
20286 case $CONFIG_FILES in
20287 *\'*) eval set x "$CONFIG_FILES" ;;
20288 *) set x $CONFIG_FILES ;;
20289 esac
20290 shift
20291 for mf
20292 do
20293 # Strip MF so we end up with the name of the file.
20294 mf=`echo "$mf" | sed -e 's/:.*$//'`
20295 # Check whether this is an Automake generated Makefile or not.
20296 # We used to match only the files named 'Makefile.in', but
20297 # some people rename them; so instead we look at the file content.
20298 # Grep'ing the first line is not enough: some people post-process
20299 # each Makefile.in and add a new line on top of each file to say so.
20300 # Grep'ing the whole file is not good either: AIX grep has a line
20301 # limit of 2048, but all sed's we know have understand at least 4000.
20302 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20303 dirpart=`$as_dirname -- "$mf" ||
20304 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20305 X"$mf" : 'X\(//\)[^/]' \| \
20306 X"$mf" : 'X\(//\)$' \| \
20307 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20308 $as_echo X"$mf" |
20309 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20310 s//\1/
20311 q
20312 }
20313 /^X\(\/\/\)[^/].*/{
20314 s//\1/
20315 q
20316 }
20317 /^X\(\/\/\)$/{
20318 s//\1/
20319 q
20320 }
20321 /^X\(\/\).*/{
20322 s//\1/
20323 q
20324 }
20325 s/.*/./; q'`
20326 else
20327 continue
20328 fi
20329 # Extract the definition of DEPDIR, am__include, and am__quote
20330 # from the Makefile without running 'make'.
20331 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20332 test -z "$DEPDIR" && continue
20333 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20334 test -z "am__include" && continue
20335 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20336 # Find all dependency output files, they are included files with
20337 # $(DEPDIR) in their names. We invoke sed twice because it is the
20338 # simplest approach to changing $(DEPDIR) to its actual value in the
20339 # expansion.
20340 for file in `sed -n "
20341 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20342 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
20343 # Make sure the directory exists.
20344 test -f "$dirpart/$file" && continue
20345 fdir=`$as_dirname -- "$file" ||
20346 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20347 X"$file" : 'X\(//\)[^/]' \| \
20348 X"$file" : 'X\(//\)$' \| \
20349 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20350 $as_echo X"$file" |
20351 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20352 s//\1/
20353 q
20354 }
20355 /^X\(\/\/\)[^/].*/{
20356 s//\1/
20357 q
20358 }
20359 /^X\(\/\/\)$/{
20360 s//\1/
20361 q
20362 }
20363 /^X\(\/\).*/{
20364 s//\1/
20365 q
20366 }
20367 s/.*/./; q'`
20368 as_dir=$dirpart/$fdir; as_fn_mkdir_p
20369 # echo "creating $dirpart/$file"
20370 echo '# dummy' > "$dirpart/$file"
20371 done
20372 done
20373 }
20374 ;;
20375 "libtool":C)
20376
20377 # See if we are running on zsh, and set the options which allow our
20378 # commands through without removal of \ escapes.
20379 if test -n "${ZSH_VERSION+set}" ; then
20380 setopt NO_GLOB_SUBST
20381 fi
20382
20383 cfgfile="${ofile}T"
20384 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20385 $RM "$cfgfile"
20386
20387 cat <<_LT_EOF >> "$cfgfile"
20388 #! $SHELL
20389
20390 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20391 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20392 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20393 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20394 #
20395 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20396 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
20397 # Foundation, Inc.
20398 # Written by Gordon Matzigkeit, 1996
20399 #
20400 # This file is part of GNU Libtool.
20401 #
20402 # GNU Libtool is free software; you can redistribute it and/or
20403 # modify it under the terms of the GNU General Public License as
20404 # published by the Free Software Foundation; either version 2 of
20405 # the License, or (at your option) any later version.
20406 #
20407 # As a special exception to the GNU General Public License,
20408 # if you distribute this file as part of a program or library that
20409 # is built using GNU Libtool, you may include this file under the
20410 # same distribution terms that you use for the rest of that program.
20411 #
20412 # GNU Libtool is distributed in the hope that it will be useful,
20413 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20414 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20415 # GNU General Public License for more details.
20416 #
20417 # You should have received a copy of the GNU General Public License
20418 # along with GNU Libtool; see the file COPYING. If not, a copy
20419 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20420 # obtained by writing to the Free Software Foundation, Inc.,
20421 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20422
20423
20424 # The names of the tagged configurations supported by this script.
20425 available_tags=""
20426
20427 # ### BEGIN LIBTOOL CONFIG
20428
20429 # Which release of libtool.m4 was used?
20430 macro_version=$macro_version
20431 macro_revision=$macro_revision
20432
20433 # Whether or not to build shared libraries.
20434 build_libtool_libs=$enable_shared
20435
20436 # Whether or not to build static libraries.
20437 build_old_libs=$enable_static
20438
20439 # What type of objects to build.
20440 pic_mode=$pic_mode
20441
20442 # Whether or not to optimize for fast installation.
20443 fast_install=$enable_fast_install
20444
20445 # Shell to use when invoking shell scripts.
20446 SHELL=$lt_SHELL
20447
20448 # An echo program that protects backslashes.
20449 ECHO=$lt_ECHO
20450
20451 # The PATH separator for the build system.
20452 PATH_SEPARATOR=$lt_PATH_SEPARATOR
20453
20454 # The host system.
20455 host_alias=$host_alias
20456 host=$host
20457 host_os=$host_os
20458
20459 # The build system.
20460 build_alias=$build_alias
20461 build=$build
20462 build_os=$build_os
20463
20464 # A sed program that does not truncate output.
20465 SED=$lt_SED
20466
20467 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20468 Xsed="\$SED -e 1s/^X//"
20469
20470 # A grep program that handles long lines.
20471 GREP=$lt_GREP
20472
20473 # An ERE matcher.
20474 EGREP=$lt_EGREP
20475
20476 # A literal string matcher.
20477 FGREP=$lt_FGREP
20478
20479 # A BSD- or MS-compatible name lister.
20480 NM=$lt_NM
20481
20482 # Whether we need soft or hard links.
20483 LN_S=$lt_LN_S
20484
20485 # What is the maximum length of a command?
20486 max_cmd_len=$max_cmd_len
20487
20488 # Object file suffix (normally "o").
20489 objext=$ac_objext
20490
20491 # Executable file suffix (normally "").
20492 exeext=$exeext
20493
20494 # whether the shell understands "unset".
20495 lt_unset=$lt_unset
20496
20497 # turn spaces into newlines.
20498 SP2NL=$lt_lt_SP2NL
20499
20500 # turn newlines into spaces.
20501 NL2SP=$lt_lt_NL2SP
20502
20503 # convert \$build file names to \$host format.
20504 to_host_file_cmd=$lt_cv_to_host_file_cmd
20505
20506 # convert \$build files to toolchain format.
20507 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20508
20509 # An object symbol dumper.
20510 OBJDUMP=$lt_OBJDUMP
20511
20512 # Method to check whether dependent libraries are shared objects.
20513 deplibs_check_method=$lt_deplibs_check_method
20514
20515 # Command to use when deplibs_check_method = "file_magic".
20516 file_magic_cmd=$lt_file_magic_cmd
20517
20518 # How to find potential files when deplibs_check_method = "file_magic".
20519 file_magic_glob=$lt_file_magic_glob
20520
20521 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20522 want_nocaseglob=$lt_want_nocaseglob
20523
20524 # DLL creation program.
20525 DLLTOOL=$lt_DLLTOOL
20526
20527 # Command to associate shared and link libraries.
20528 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20529
20530 # The archiver.
20531 AR=$lt_AR
20532
20533 # Flags to create an archive.
20534 AR_FLAGS=$lt_AR_FLAGS
20535
20536 # How to feed a file listing to the archiver.
20537 archiver_list_spec=$lt_archiver_list_spec
20538
20539 # A symbol stripping program.
20540 STRIP=$lt_STRIP
20541
20542 # Commands used to install an old-style archive.
20543 RANLIB=$lt_RANLIB
20544 old_postinstall_cmds=$lt_old_postinstall_cmds
20545 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20546
20547 # Whether to use a lock for old archive extraction.
20548 lock_old_archive_extraction=$lock_old_archive_extraction
20549
20550 # A C compiler.
20551 LTCC=$lt_CC
20552
20553 # LTCC compiler flags.
20554 LTCFLAGS=$lt_CFLAGS
20555
20556 # Take the output of nm and produce a listing of raw symbols and C names.
20557 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20558
20559 # Transform the output of nm in a proper C declaration.
20560 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20561
20562 # Transform the output of nm in a C name address pair.
20563 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20564
20565 # Transform the output of nm in a C name address pair when lib prefix is needed.
20566 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20567
20568 # Specify filename containing input files for \$NM.
20569 nm_file_list_spec=$lt_nm_file_list_spec
20570
20571 # The root where to search for dependent libraries,and in which our libraries should be installed.
20572 lt_sysroot=$lt_sysroot
20573
20574 # The name of the directory that contains temporary libtool files.
20575 objdir=$objdir
20576
20577 # Used to examine libraries when file_magic_cmd begins with "file".
20578 MAGIC_CMD=$MAGIC_CMD
20579
20580 # Must we lock files when doing compilation?
20581 need_locks=$lt_need_locks
20582
20583 # Manifest tool.
20584 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20585
20586 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20587 DSYMUTIL=$lt_DSYMUTIL
20588
20589 # Tool to change global to local symbols on Mac OS X.
20590 NMEDIT=$lt_NMEDIT
20591
20592 # Tool to manipulate fat objects and archives on Mac OS X.
20593 LIPO=$lt_LIPO
20594
20595 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20596 OTOOL=$lt_OTOOL
20597
20598 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20599 OTOOL64=$lt_OTOOL64
20600
20601 # Old archive suffix (normally "a").
20602 libext=$libext
20603
20604 # Shared library suffix (normally ".so").
20605 shrext_cmds=$lt_shrext_cmds
20606
20607 # The commands to extract the exported symbol list from a shared archive.
20608 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20609
20610 # Variables whose values should be saved in libtool wrapper scripts and
20611 # restored at link time.
20612 variables_saved_for_relink=$lt_variables_saved_for_relink
20613
20614 # Do we need the "lib" prefix for modules?
20615 need_lib_prefix=$need_lib_prefix
20616
20617 # Do we need a version for libraries?
20618 need_version=$need_version
20619
20620 # Library versioning type.
20621 version_type=$version_type
20622
20623 # Shared library runtime path variable.
20624 runpath_var=$runpath_var
20625
20626 # Shared library path variable.
20627 shlibpath_var=$shlibpath_var
20628
20629 # Is shlibpath searched before the hard-coded library search path?
20630 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20631
20632 # Format of library name prefix.
20633 libname_spec=$lt_libname_spec
20634
20635 # List of archive names. First name is the real one, the rest are links.
20636 # The last name is the one that the linker finds with -lNAME
20637 library_names_spec=$lt_library_names_spec
20638
20639 # The coded name of the library, if different from the real name.
20640 soname_spec=$lt_soname_spec
20641
20642 # Permission mode override for installation of shared libraries.
20643 install_override_mode=$lt_install_override_mode
20644
20645 # Command to use after installation of a shared archive.
20646 postinstall_cmds=$lt_postinstall_cmds
20647
20648 # Command to use after uninstallation of a shared archive.
20649 postuninstall_cmds=$lt_postuninstall_cmds
20650
20651 # Commands used to finish a libtool library installation in a directory.
20652 finish_cmds=$lt_finish_cmds
20653
20654 # As "finish_cmds", except a single script fragment to be evaled but
20655 # not shown.
20656 finish_eval=$lt_finish_eval
20657
20658 # Whether we should hardcode library paths into libraries.
20659 hardcode_into_libs=$hardcode_into_libs
20660
20661 # Compile-time system search path for libraries.
20662 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20663
20664 # Run-time system search path for libraries.
20665 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20666
20667 # Whether dlopen is supported.
20668 dlopen_support=$enable_dlopen
20669
20670 # Whether dlopen of programs is supported.
20671 dlopen_self=$enable_dlopen_self
20672
20673 # Whether dlopen of statically linked programs is supported.
20674 dlopen_self_static=$enable_dlopen_self_static
20675
20676 # Commands to strip libraries.
20677 old_striplib=$lt_old_striplib
20678 striplib=$lt_striplib
20679
20680
20681 # The linker used to build libraries.
20682 LD=$lt_LD
20683
20684 # How to create reloadable object files.
20685 reload_flag=$lt_reload_flag
20686 reload_cmds=$lt_reload_cmds
20687
20688 # Commands used to build an old-style archive.
20689 old_archive_cmds=$lt_old_archive_cmds
20690
20691 # A language specific compiler.
20692 CC=$lt_compiler
20693
20694 # Is the compiler the GNU compiler?
20695 with_gcc=$GCC
20696
20697 # Compiler flag to turn off builtin functions.
20698 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20699
20700 # Additional compiler flags for building library objects.
20701 pic_flag=$lt_lt_prog_compiler_pic
20702
20703 # How to pass a linker flag through the compiler.
20704 wl=$lt_lt_prog_compiler_wl
20705
20706 # Compiler flag to prevent dynamic linking.
20707 link_static_flag=$lt_lt_prog_compiler_static
20708
20709 # Does compiler simultaneously support -c and -o options?
20710 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20711
20712 # Whether or not to add -lc for building shared libraries.
20713 build_libtool_need_lc=$archive_cmds_need_lc
20714
20715 # Whether or not to disallow shared libs when runtime libs are static.
20716 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20717
20718 # Compiler flag to allow reflexive dlopens.
20719 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20720
20721 # Compiler flag to generate shared objects directly from archives.
20722 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20723
20724 # Whether the compiler copes with passing no objects directly.
20725 compiler_needs_object=$lt_compiler_needs_object
20726
20727 # Create an old-style archive from a shared archive.
20728 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20729
20730 # Create a temporary old-style archive to link instead of a shared archive.
20731 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20732
20733 # Commands used to build a shared archive.
20734 archive_cmds=$lt_archive_cmds
20735 archive_expsym_cmds=$lt_archive_expsym_cmds
20736
20737 # Commands used to build a loadable module if different from building
20738 # a shared archive.
20739 module_cmds=$lt_module_cmds
20740 module_expsym_cmds=$lt_module_expsym_cmds
20741
20742 # Whether we are building with GNU ld or not.
20743 with_gnu_ld=$lt_with_gnu_ld
20744
20745 # Flag that allows shared libraries with undefined symbols to be built.
20746 allow_undefined_flag=$lt_allow_undefined_flag
20747
20748 # Flag that enforces no undefined symbols.
20749 no_undefined_flag=$lt_no_undefined_flag
20750
20751 # Flag to hardcode \$libdir into a binary during linking.
20752 # This must work even if \$libdir does not exist
20753 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20754
20755 # Whether we need a single "-rpath" flag with a separated argument.
20756 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20757
20758 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20759 # DIR into the resulting binary.
20760 hardcode_direct=$hardcode_direct
20761
20762 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20763 # DIR into the resulting binary and the resulting library dependency is
20764 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20765 # library is relocated.
20766 hardcode_direct_absolute=$hardcode_direct_absolute
20767
20768 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20769 # into the resulting binary.
20770 hardcode_minus_L=$hardcode_minus_L
20771
20772 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20773 # into the resulting binary.
20774 hardcode_shlibpath_var=$hardcode_shlibpath_var
20775
20776 # Set to "yes" if building a shared library automatically hardcodes DIR
20777 # into the library and all subsequent libraries and executables linked
20778 # against it.
20779 hardcode_automatic=$hardcode_automatic
20780
20781 # Set to yes if linker adds runtime paths of dependent libraries
20782 # to runtime path list.
20783 inherit_rpath=$inherit_rpath
20784
20785 # Whether libtool must link a program against all its dependency libraries.
20786 link_all_deplibs=$link_all_deplibs
20787
20788 # Set to "yes" if exported symbols are required.
20789 always_export_symbols=$always_export_symbols
20790
20791 # The commands to list exported symbols.
20792 export_symbols_cmds=$lt_export_symbols_cmds
20793
20794 # Symbols that should not be listed in the preloaded symbols.
20795 exclude_expsyms=$lt_exclude_expsyms
20796
20797 # Symbols that must always be exported.
20798 include_expsyms=$lt_include_expsyms
20799
20800 # Commands necessary for linking programs (against libraries) with templates.
20801 prelink_cmds=$lt_prelink_cmds
20802
20803 # Commands necessary for finishing linking programs.
20804 postlink_cmds=$lt_postlink_cmds
20805
20806 # Specify filename containing input files.
20807 file_list_spec=$lt_file_list_spec
20808
20809 # How to hardcode a shared library path into an executable.
20810 hardcode_action=$hardcode_action
20811
20812 # ### END LIBTOOL CONFIG
20813
20814 _LT_EOF
20815
20816 case $host_os in
20817 aix3*)
20818 cat <<\_LT_EOF >> "$cfgfile"
20819 # AIX sometimes has problems with the GCC collect2 program. For some
20820 # reason, if we set the COLLECT_NAMES environment variable, the problems
20821 # vanish in a puff of smoke.
20822 if test "X${COLLECT_NAMES+set}" != Xset; then
20823 COLLECT_NAMES=
20824 export COLLECT_NAMES
20825 fi
20826 _LT_EOF
20827 ;;
20828 esac
20829
20830
20831 ltmain="$ac_aux_dir/ltmain.sh"
20832
20833
20834 # We use sed instead of cat because bash on DJGPP gets confused if
20835 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20836 # text mode, it properly converts lines to CR/LF. This bash problem
20837 # is reportedly fixed, but why not run on old versions too?
20838 sed '$q' "$ltmain" >> "$cfgfile" \
20839 || (rm -f "$cfgfile"; exit 1)
20840
20841 if test x"$xsi_shell" = xyes; then
20842 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20843 func_dirname ()\
20844 {\
20845 \ case ${1} in\
20846 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20847 \ * ) func_dirname_result="${3}" ;;\
20848 \ esac\
20849 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20850 && mv -f "$cfgfile.tmp" "$cfgfile" \
20851 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20852 test 0 -eq $? || _lt_function_replace_fail=:
20853
20854
20855 sed -e '/^func_basename ()$/,/^} # func_basename /c\
20856 func_basename ()\
20857 {\
20858 \ func_basename_result="${1##*/}"\
20859 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20860 && mv -f "$cfgfile.tmp" "$cfgfile" \
20861 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20862 test 0 -eq $? || _lt_function_replace_fail=:
20863
20864
20865 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20866 func_dirname_and_basename ()\
20867 {\
20868 \ case ${1} in\
20869 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20870 \ * ) func_dirname_result="${3}" ;;\
20871 \ esac\
20872 \ func_basename_result="${1##*/}"\
20873 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20874 && mv -f "$cfgfile.tmp" "$cfgfile" \
20875 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20876 test 0 -eq $? || _lt_function_replace_fail=:
20877
20878
20879 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20880 func_stripname ()\
20881 {\
20882 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20883 \ # positional parameters, so assign one to ordinary parameter first.\
20884 \ func_stripname_result=${3}\
20885 \ func_stripname_result=${func_stripname_result#"${1}"}\
20886 \ func_stripname_result=${func_stripname_result%"${2}"}\
20887 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20888 && mv -f "$cfgfile.tmp" "$cfgfile" \
20889 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20890 test 0 -eq $? || _lt_function_replace_fail=:
20891
20892
20893 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20894 func_split_long_opt ()\
20895 {\
20896 \ func_split_long_opt_name=${1%%=*}\
20897 \ func_split_long_opt_arg=${1#*=}\
20898 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20899 && mv -f "$cfgfile.tmp" "$cfgfile" \
20900 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20901 test 0 -eq $? || _lt_function_replace_fail=:
20902
20903
20904 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20905 func_split_short_opt ()\
20906 {\
20907 \ func_split_short_opt_arg=${1#??}\
20908 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20909 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20910 && mv -f "$cfgfile.tmp" "$cfgfile" \
20911 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20912 test 0 -eq $? || _lt_function_replace_fail=:
20913
20914
20915 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20916 func_lo2o ()\
20917 {\
20918 \ case ${1} in\
20919 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20920 \ *) func_lo2o_result=${1} ;;\
20921 \ esac\
20922 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20923 && mv -f "$cfgfile.tmp" "$cfgfile" \
20924 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20925 test 0 -eq $? || _lt_function_replace_fail=:
20926
20927
20928 sed -e '/^func_xform ()$/,/^} # func_xform /c\
20929 func_xform ()\
20930 {\
20931 func_xform_result=${1%.*}.lo\
20932 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20933 && mv -f "$cfgfile.tmp" "$cfgfile" \
20934 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20935 test 0 -eq $? || _lt_function_replace_fail=:
20936
20937
20938 sed -e '/^func_arith ()$/,/^} # func_arith /c\
20939 func_arith ()\
20940 {\
20941 func_arith_result=$(( $* ))\
20942 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20943 && mv -f "$cfgfile.tmp" "$cfgfile" \
20944 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20945 test 0 -eq $? || _lt_function_replace_fail=:
20946
20947
20948 sed -e '/^func_len ()$/,/^} # func_len /c\
20949 func_len ()\
20950 {\
20951 func_len_result=${#1}\
20952 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20953 && mv -f "$cfgfile.tmp" "$cfgfile" \
20954 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20955 test 0 -eq $? || _lt_function_replace_fail=:
20956
20957 fi
20958
20959 if test x"$lt_shell_append" = xyes; then
20960 sed -e '/^func_append ()$/,/^} # func_append /c\
20961 func_append ()\
20962 {\
20963 eval "${1}+=\\${2}"\
20964 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20965 && mv -f "$cfgfile.tmp" "$cfgfile" \
20966 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20967 test 0 -eq $? || _lt_function_replace_fail=:
20968
20969
20970 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20971 func_append_quoted ()\
20972 {\
20973 \ func_quote_for_eval "${2}"\
20974 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20975 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20976 && mv -f "$cfgfile.tmp" "$cfgfile" \
20977 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20978 test 0 -eq $? || _lt_function_replace_fail=:
20979
20980
20981 # Save a `func_append' function call where possible by direct use of '+='
20982 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20983 && mv -f "$cfgfile.tmp" "$cfgfile" \
20984 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20985 test 0 -eq $? || _lt_function_replace_fail=:
20986 else
20987 # Save a `func_append' function call even when '+=' is not available
20988 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20989 && mv -f "$cfgfile.tmp" "$cfgfile" \
20990 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20991 test 0 -eq $? || _lt_function_replace_fail=:
20992 fi
20993
20994 if test x"$_lt_function_replace_fail" = x":"; then
20995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20996 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20997 fi
20998
20999
21000 mv -f "$cfgfile" "$ofile" ||
21001 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21002 chmod +x "$ofile"
21003
21004 ;;
21005
21006 esac
21007 done # for ac_tag
21008
21009
21010 as_fn_exit 0
21011 _ACEOF
21012 ac_clean_files=$ac_clean_files_save
21013
21014 test $ac_write_fail = 0 ||
21015 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21016
21017
21018 # configure is writing to config.log, and then calls config.status.
21019 # config.status does its own redirection, appending to config.log.
21020 # Unfortunately, on DOS this fails, as config.log is still kept open
21021 # by configure, so config.status won't be able to write to it; its
21022 # output is simply discarded. So we exec the FD to /dev/null,
21023 # effectively closing config.log, so it can be properly (re)opened and
21024 # appended to by config.status. When coming back to configure, we
21025 # need to make the FD available again.
21026 if test "$no_create" != yes; then
21027 ac_cs_success=:
21028 ac_config_status_args=
21029 test "$silent" = yes &&
21030 ac_config_status_args="$ac_config_status_args --quiet"
21031 exec 5>/dev/null
21032 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21033 exec 5>>config.log
21034 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21035 # would make configure fail if this is the last instruction.
21036 $ac_cs_success || as_fn_exit 1
21037 fi
21038 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21040 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21041 fi
21042
21043