configure revision 1.1.1.15 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libXi 1.7.10.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libXi/issues>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
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://gitlab.freedesktop.org/xorg/lib/libXi/issues
279 $0: about your system, including any error possibly output
280 $0: before this message. Then install a modern shell, or
281 $0: manually run the script under such a shell if you do
282 $0: have one."
283 fi
284 exit 1
285 fi
286 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302 { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
309 as_fn_set_status ()
310 {
311 return $1
312 } # as_fn_set_status
313
314 # as_fn_exit STATUS
315 # -----------------
316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 as_fn_exit ()
318 {
319 set +e
320 as_fn_set_status $1
321 exit $1
322 } # as_fn_exit
323
324 # as_fn_mkdir_p
325 # -------------
326 # Create "$as_dir" as a directory, including parents if necessary.
327 as_fn_mkdir_p ()
328 {
329
330 case $as_dir in #(
331 -*) as_dir=./$as_dir;;
332 esac
333 test -d "$as_dir" || eval $as_mkdir_p || {
334 as_dirs=
335 while :; do
336 case $as_dir in #(
337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338 *) as_qdir=$as_dir;;
339 esac
340 as_dirs="'$as_qdir' $as_dirs"
341 as_dir=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343 X"$as_dir" : 'X\(//\)[^/]' \| \
344 X"$as_dir" : 'X\(//\)$' \| \
345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 $as_echo X"$as_dir" |
347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)[^/].*/{
352 s//\1/
353 q
354 }
355 /^X\(\/\/\)$/{
356 s//\1/
357 q
358 }
359 /^X\(\/\).*/{
360 s//\1/
361 q
362 }
363 s/.*/./; q'`
364 test -d "$as_dir" && break
365 done
366 test -z "$as_dirs" || eval "mkdir $as_dirs"
367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370 } # as_fn_mkdir_p
371
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
376 {
377 test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
384 # implementations.
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386 eval 'as_fn_append ()
387 {
388 eval $1+=\$2
389 }'
390 else
391 as_fn_append ()
392 {
393 eval $1=\$$1\$2
394 }
395 fi # as_fn_append
396
397 # as_fn_arith ARG...
398 # ------------------
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403 eval 'as_fn_arith ()
404 {
405 as_val=$(( $* ))
406 }'
407 else
408 as_fn_arith ()
409 {
410 as_val=`expr "$@" || test $? -eq 1`
411 }
412 fi # as_fn_arith
413
414
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
420 as_fn_error ()
421 {
422 as_status=$1; test $as_status -eq 0 && as_status=1
423 if test "$4"; then
424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 fi
427 $as_echo "$as_me: error: $2" >&2
428 as_fn_exit $as_status
429 } # as_fn_error
430
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432 test "X`expr 00001 : '.*\(...\)'`" = X001; then
433 as_expr=expr
434 else
435 as_expr=false
436 fi
437
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439 as_basename=basename
440 else
441 as_basename=false
442 fi
443
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445 as_dirname=dirname
446 else
447 as_dirname=false
448 fi
449
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452 X"$0" : 'X\(//\)$' \| \
453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 $as_echo X/"$0" |
455 sed '/^.*\/\([^/][^/]*\)\/*$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\/\)$/{
460 s//\1/
461 q
462 }
463 /^X\/\(\/\).*/{
464 s//\1/
465 q
466 }
467 s/.*/./; q'`
468
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477 as_lineno_1=$LINENO as_lineno_1a=$LINENO
478 as_lineno_2=$LINENO as_lineno_2a=$LINENO
479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
482 sed -n '
483 p
484 /[$]LINENO/=
485 ' <$as_myself |
486 sed '
487 s/[$]LINENO.*/&-/
488 t lineno
489 b
490 :lineno
491 N
492 :loop
493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494 t loop
495 s/-\n.*//
496 ' >$as_me.lineno &&
497 chmod +x "$as_me.lineno" ||
498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501 # already done that, so ensure we don't try to do so again and fall
502 # in an infinite loop. This has already happened in practice.
503 _as_can_reexec=no; export _as_can_reexec
504 # Don't try to exec as it changes $[0], causing all sort of problems
505 # (the dirname of $[0] is not the place where we might find the
506 # original and so on. Autoconf is especially sensitive to this).
507 . "./$as_me.lineno"
508 # Exit status is that of the last command.
509 exit
510 }
511
512 ECHO_C= ECHO_N= ECHO_T=
513 case `echo -n x` in #(((((
514 -n*)
515 case `echo 'xy\c'` in
516 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 xy) ECHO_C='\c';;
518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
519 ECHO_T=' ';;
520 esac;;
521 *)
522 ECHO_N='-n';;
523 esac
524
525 rm -f conf$$ conf$$.exe conf$$.file
526 if test -d conf$$.dir; then
527 rm -f conf$$.dir/conf$$.file
528 else
529 rm -f conf$$.dir
530 mkdir conf$$.dir 2>/dev/null
531 fi
532 if (echo >conf$$.file) 2>/dev/null; then
533 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 as_ln_s='ln -s'
535 # ... but there are two gotchas:
536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538 # In both cases, we have to default to `cp -pR'.
539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 as_ln_s='cp -pR'
541 elif ln conf$$.file conf$$ 2>/dev/null; then
542 as_ln_s=ln
543 else
544 as_ln_s='cp -pR'
545 fi
546 else
547 as_ln_s='cp -pR'
548 fi
549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550 rmdir conf$$.dir 2>/dev/null
551
552 if mkdir -p . 2>/dev/null; then
553 as_mkdir_p='mkdir -p "$as_dir"'
554 else
555 test -d ./-p && rmdir ./-p
556 as_mkdir_p=false
557 fi
558
559 as_test_x='test -x'
560 as_executable_p=as_fn_executable_p
561
562 # Sed expression to map a string onto a valid CPP name.
563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565 # Sed expression to map a string onto a valid variable name.
566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568 SHELL=${CONFIG_SHELL-/bin/sh}
569
570 as_awk_strverscmp='
571 # Use only awk features that work with 7th edition Unix awk (1978).
572 # My, what an old awk you have, Mr. Solaris!
573 END {
574 while (length(v1) && length(v2)) {
575 # Set d1 to be the next thing to compare from v1, and likewise for d2.
576 # Normally this is a single character, but if v1 and v2 contain digits,
577 # compare them as integers and fractions as strverscmp does.
578 if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) {
579 # Split v1 and v2 into their leading digit string components d1 and d2,
580 # and advance v1 and v2 past the leading digit strings.
581 for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue
582 for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue
583 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
584 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
585 if (d1 ~ /^0/) {
586 if (d2 ~ /^0/) {
587 # Compare two fractions.
588 while (d1 ~ /^0/ && d2 ~ /^0/) {
589 d1 = substr(d1, 2); len1--
590 d2 = substr(d2, 2); len2--
591 }
592 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
593 # The two components differ in length, and the common prefix
594 # contains only leading zeros. Consider the longer to be less.
595 d1 = -len1
596 d2 = -len2
597 } else {
598 # Otherwise, compare as strings.
599 d1 = "x" d1
600 d2 = "x" d2
601 }
602 } else {
603 # A fraction is less than an integer.
604 exit 1
605 }
606 } else {
607 if (d2 ~ /^0/) {
608 # An integer is greater than a fraction.
609 exit 2
610 } else {
611 # Compare two integers.
612 d1 += 0
613 d2 += 0
614 }
615 }
616 } else {
617 # The normal case, without worrying about digits.
618 d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
619 d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
620 }
621 if (d1 < d2) exit 1
622 if (d1 > d2) exit 2
623 }
624 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
625 # which mishandles some comparisons of empty strings to integers.
626 if (length(v2)) exit 1
627 if (length(v1)) exit 2
628 }
629 '
630
631 test -n "$DJDIR" || exec 7<&0 </dev/null
632 exec 6>&1
633
634 # Name of the host.
635 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
636 # so uname gets run too.
637 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
638
639 #
640 # Initializations.
641 #
642 ac_default_prefix=/usr/local
643 ac_clean_files=
644 ac_config_libobj_dir=.
645 LIBOBJS=
646 cross_compiling=no
647 subdirs=
648 MFLAGS=
649 MAKEFLAGS=
650
651 # Identity of this package.
652 PACKAGE_NAME='libXi'
653 PACKAGE_TARNAME='libXi'
654 PACKAGE_VERSION='1.7.10'
655 PACKAGE_STRING='libXi 1.7.10'
656 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libXi/issues'
657 PACKAGE_URL=''
658
659 ac_unique_file="Makefile.am"
660 # Factoring default headers for most tests.
661 ac_includes_default="\
662 #include <stdio.h>
663 #ifdef HAVE_SYS_TYPES_H
664 # include <sys/types.h>
665 #endif
666 #ifdef HAVE_SYS_STAT_H
667 # include <sys/stat.h>
668 #endif
669 #ifdef STDC_HEADERS
670 # include <stdlib.h>
671 # include <stddef.h>
672 #else
673 # ifdef HAVE_STDLIB_H
674 # include <stdlib.h>
675 # endif
676 #endif
677 #ifdef HAVE_STRING_H
678 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
679 # include <memory.h>
680 # endif
681 # include <string.h>
682 #endif
683 #ifdef HAVE_STRINGS_H
684 # include <strings.h>
685 #endif
686 #ifdef HAVE_INTTYPES_H
687 # include <inttypes.h>
688 #endif
689 #ifdef HAVE_STDINT_H
690 # include <stdint.h>
691 #endif
692 #ifdef HAVE_UNISTD_H
693 # include <unistd.h>
694 #endif"
695
696 ac_subst_vars='am__EXEEXT_FALSE
697 am__EXEEXT_TRUE
698 LTLIBOBJS
699 LIBOBJS
700 INSTALL_MANPAGES_FALSE
701 INSTALL_MANPAGES_TRUE
702 HAVE_DOCTOOLS_FALSE
703 HAVE_DOCTOOLS_TRUE
704 XFIXES_LIBS
705 XFIXES_CFLAGS
706 XI_LIBS
707 XI_CFLAGS
708 XTMALLOC_ZERO_CFLAGS
709 XMALLOC_ZERO_CFLAGS
710 MALLOC_ZERO_CFLAGS
711 HAVE_ASCIIDOC_FALSE
712 HAVE_ASCIIDOC_TRUE
713 ASCIIDOC
714 HAVE_STYLESHEETS_FALSE
715 HAVE_STYLESHEETS_TRUE
716 XSL_STYLESHEET
717 STYLESHEET_SRCDIR
718 XORG_SGML_PATH
719 HAVE_XSLTPROC_FALSE
720 HAVE_XSLTPROC_TRUE
721 XSLTPROC
722 HAVE_FOP_FALSE
723 HAVE_FOP_TRUE
724 FOP
725 HAVE_XMLTO_FALSE
726 HAVE_XMLTO_TRUE
727 HAVE_XMLTO_TEXT_FALSE
728 HAVE_XMLTO_TEXT_TRUE
729 XMLTO
730 ENABLE_SPECS_FALSE
731 ENABLE_SPECS_TRUE
732 ENABLE_DOCS_FALSE
733 ENABLE_DOCS_TRUE
734 MAN_SUBSTS
735 XORG_MAN_PAGE
736 ADMIN_MAN_DIR
737 DRIVER_MAN_DIR
738 MISC_MAN_DIR
739 FILE_MAN_DIR
740 LIB_MAN_DIR
741 APP_MAN_DIR
742 ADMIN_MAN_SUFFIX
743 DRIVER_MAN_SUFFIX
744 MISC_MAN_SUFFIX
745 FILE_MAN_SUFFIX
746 LIB_MAN_SUFFIX
747 APP_MAN_SUFFIX
748 INSTALL_CMD
749 PKG_CONFIG_LIBDIR
750 PKG_CONFIG_PATH
751 PKG_CONFIG
752 CHANGELOG_CMD
753 STRICT_CFLAGS
754 CWARNFLAGS
755 BASE_CFLAGS
756 CPP
757 LT_SYS_LIBRARY_PATH
758 OTOOL64
759 OTOOL
760 LIPO
761 NMEDIT
762 DSYMUTIL
763 MANIFEST_TOOL
764 RANLIB
765 ac_ct_AR
766 AR
767 DLLTOOL
768 OBJDUMP
769 LN_S
770 NM
771 ac_ct_DUMPBIN
772 DUMPBIN
773 LD
774 FGREP
775 EGREP
776 GREP
777 SED
778 am__fastdepCC_FALSE
779 am__fastdepCC_TRUE
780 CCDEPMODE
781 am__nodep
782 AMDEPBACKSLASH
783 AMDEP_FALSE
784 AMDEP_TRUE
785 am__include
786 DEPDIR
787 OBJEXT
788 EXEEXT
789 ac_ct_CC
790 CPPFLAGS
791 LDFLAGS
792 CFLAGS
793 CC
794 host_os
795 host_vendor
796 host_cpu
797 host
798 build_os
799 build_vendor
800 build_cpu
801 build
802 LIBTOOL
803 AM_BACKSLASH
804 AM_DEFAULT_VERBOSITY
805 AM_DEFAULT_V
806 AM_V
807 am__untar
808 am__tar
809 AMTAR
810 am__leading_dot
811 SET_MAKE
812 AWK
813 mkdir_p
814 MKDIR_P
815 INSTALL_STRIP_PROGRAM
816 STRIP
817 install_sh
818 MAKEINFO
819 AUTOHEADER
820 AUTOMAKE
821 AUTOCONF
822 ACLOCAL
823 VERSION
824 PACKAGE
825 CYGPATH_W
826 am__isrc
827 INSTALL_DATA
828 INSTALL_SCRIPT
829 INSTALL_PROGRAM
830 target_alias
831 host_alias
832 build_alias
833 LIBS
834 ECHO_T
835 ECHO_N
836 ECHO_C
837 DEFS
838 mandir
839 localedir
840 libdir
841 psdir
842 pdfdir
843 dvidir
844 htmldir
845 infodir
846 docdir
847 oldincludedir
848 includedir
849 localstatedir
850 sharedstatedir
851 sysconfdir
852 datadir
853 datarootdir
854 libexecdir
855 sbindir
856 bindir
857 program_transform_name
858 prefix
859 exec_prefix
860 PACKAGE_URL
861 PACKAGE_BUGREPORT
862 PACKAGE_STRING
863 PACKAGE_VERSION
864 PACKAGE_TARNAME
865 PACKAGE_NAME
866 PATH_SEPARATOR
867 SHELL
868 am__quote'
869 ac_subst_files=''
870 ac_user_opts='
871 enable_option_checking
872 enable_silent_rules
873 enable_shared
874 enable_static
875 with_pic
876 enable_fast_install
877 with_aix_soname
878 enable_dependency_tracking
879 with_gnu_ld
880 with_sysroot
881 enable_libtool_lock
882 enable_selective_werror
883 enable_strict_compilation
884 enable_docs
885 enable_specs
886 with_xmlto
887 with_fop
888 with_xsltproc
889 with_asciidoc
890 enable_malloc0returnsnull
891 '
892 ac_precious_vars='build_alias
893 host_alias
894 target_alias
895 CC
896 CFLAGS
897 LDFLAGS
898 LIBS
899 CPPFLAGS
900 LT_SYS_LIBRARY_PATH
901 CPP
902 PKG_CONFIG
903 PKG_CONFIG_PATH
904 PKG_CONFIG_LIBDIR
905 XMLTO
906 FOP
907 XSLTPROC
908 ASCIIDOC
909 XI_CFLAGS
910 XI_LIBS
911 XFIXES_CFLAGS
912 XFIXES_LIBS'
913
914
915 # Initialize some variables set by options.
916 ac_init_help=
917 ac_init_version=false
918 ac_unrecognized_opts=
919 ac_unrecognized_sep=
920 # The variables have the same names as the options, with
921 # dashes changed to underlines.
922 cache_file=/dev/null
923 exec_prefix=NONE
924 no_create=
925 no_recursion=
926 prefix=NONE
927 program_prefix=NONE
928 program_suffix=NONE
929 program_transform_name=s,x,x,
930 silent=
931 site=
932 srcdir=
933 verbose=
934 x_includes=NONE
935 x_libraries=NONE
936
937 # Installation directory options.
938 # These are left unexpanded so users can "make install exec_prefix=/foo"
939 # and all the variables that are supposed to be based on exec_prefix
940 # by default will actually change.
941 # Use braces instead of parens because sh, perl, etc. also accept them.
942 # (The list follows the same order as the GNU Coding Standards.)
943 bindir='${exec_prefix}/bin'
944 sbindir='${exec_prefix}/sbin'
945 libexecdir='${exec_prefix}/libexec'
946 datarootdir='${prefix}/share'
947 datadir='${datarootdir}'
948 sysconfdir='${prefix}/etc'
949 sharedstatedir='${prefix}/com'
950 localstatedir='${prefix}/var'
951 includedir='${prefix}/include'
952 oldincludedir='/usr/include'
953 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
954 infodir='${datarootdir}/info'
955 htmldir='${docdir}'
956 dvidir='${docdir}'
957 pdfdir='${docdir}'
958 psdir='${docdir}'
959 libdir='${exec_prefix}/lib'
960 localedir='${datarootdir}/locale'
961 mandir='${datarootdir}/man'
962
963 ac_prev=
964 ac_dashdash=
965 for ac_option
966 do
967 # If the previous option needs an argument, assign it.
968 if test -n "$ac_prev"; then
969 eval $ac_prev=\$ac_option
970 ac_prev=
971 continue
972 fi
973
974 case $ac_option in
975 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
976 *=) ac_optarg= ;;
977 *) ac_optarg=yes ;;
978 esac
979
980 # Accept the important Cygnus configure options, so we can diagnose typos.
981
982 case $ac_dashdash$ac_option in
983 --)
984 ac_dashdash=yes ;;
985
986 -bindir | --bindir | --bindi | --bind | --bin | --bi)
987 ac_prev=bindir ;;
988 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
989 bindir=$ac_optarg ;;
990
991 -build | --build | --buil | --bui | --bu)
992 ac_prev=build_alias ;;
993 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
994 build_alias=$ac_optarg ;;
995
996 -cache-file | --cache-file | --cache-fil | --cache-fi \
997 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
998 ac_prev=cache_file ;;
999 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1000 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1001 cache_file=$ac_optarg ;;
1002
1003 --config-cache | -C)
1004 cache_file=config.cache ;;
1005
1006 -datadir | --datadir | --datadi | --datad)
1007 ac_prev=datadir ;;
1008 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1009 datadir=$ac_optarg ;;
1010
1011 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1012 | --dataroo | --dataro | --datar)
1013 ac_prev=datarootdir ;;
1014 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1015 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1016 datarootdir=$ac_optarg ;;
1017
1018 -disable-* | --disable-*)
1019 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1020 # Reject names that are not valid shell variable names.
1021 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1022 as_fn_error $? "invalid feature name: $ac_useropt"
1023 ac_useropt_orig=$ac_useropt
1024 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1025 case $ac_user_opts in
1026 *"
1027 "enable_$ac_useropt"
1028 "*) ;;
1029 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1030 ac_unrecognized_sep=', ';;
1031 esac
1032 eval enable_$ac_useropt=no ;;
1033
1034 -docdir | --docdir | --docdi | --doc | --do)
1035 ac_prev=docdir ;;
1036 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1037 docdir=$ac_optarg ;;
1038
1039 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1040 ac_prev=dvidir ;;
1041 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1042 dvidir=$ac_optarg ;;
1043
1044 -enable-* | --enable-*)
1045 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1046 # Reject names that are not valid shell variable names.
1047 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1048 as_fn_error $? "invalid feature name: $ac_useropt"
1049 ac_useropt_orig=$ac_useropt
1050 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1051 case $ac_user_opts in
1052 *"
1053 "enable_$ac_useropt"
1054 "*) ;;
1055 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1056 ac_unrecognized_sep=', ';;
1057 esac
1058 eval enable_$ac_useropt=\$ac_optarg ;;
1059
1060 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1061 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1062 | --exec | --exe | --ex)
1063 ac_prev=exec_prefix ;;
1064 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1065 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1066 | --exec=* | --exe=* | --ex=*)
1067 exec_prefix=$ac_optarg ;;
1068
1069 -gas | --gas | --ga | --g)
1070 # Obsolete; use --with-gas.
1071 with_gas=yes ;;
1072
1073 -help | --help | --hel | --he | -h)
1074 ac_init_help=long ;;
1075 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1076 ac_init_help=recursive ;;
1077 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1078 ac_init_help=short ;;
1079
1080 -host | --host | --hos | --ho)
1081 ac_prev=host_alias ;;
1082 -host=* | --host=* | --hos=* | --ho=*)
1083 host_alias=$ac_optarg ;;
1084
1085 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1086 ac_prev=htmldir ;;
1087 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1088 | --ht=*)
1089 htmldir=$ac_optarg ;;
1090
1091 -includedir | --includedir | --includedi | --included | --include \
1092 | --includ | --inclu | --incl | --inc)
1093 ac_prev=includedir ;;
1094 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1095 | --includ=* | --inclu=* | --incl=* | --inc=*)
1096 includedir=$ac_optarg ;;
1097
1098 -infodir | --infodir | --infodi | --infod | --info | --inf)
1099 ac_prev=infodir ;;
1100 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1101 infodir=$ac_optarg ;;
1102
1103 -libdir | --libdir | --libdi | --libd)
1104 ac_prev=libdir ;;
1105 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1106 libdir=$ac_optarg ;;
1107
1108 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1109 | --libexe | --libex | --libe)
1110 ac_prev=libexecdir ;;
1111 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1112 | --libexe=* | --libex=* | --libe=*)
1113 libexecdir=$ac_optarg ;;
1114
1115 -localedir | --localedir | --localedi | --localed | --locale)
1116 ac_prev=localedir ;;
1117 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1118 localedir=$ac_optarg ;;
1119
1120 -localstatedir | --localstatedir | --localstatedi | --localstated \
1121 | --localstate | --localstat | --localsta | --localst | --locals)
1122 ac_prev=localstatedir ;;
1123 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1124 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1125 localstatedir=$ac_optarg ;;
1126
1127 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1128 ac_prev=mandir ;;
1129 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1130 mandir=$ac_optarg ;;
1131
1132 -nfp | --nfp | --nf)
1133 # Obsolete; use --without-fp.
1134 with_fp=no ;;
1135
1136 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1137 | --no-cr | --no-c | -n)
1138 no_create=yes ;;
1139
1140 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1141 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1142 no_recursion=yes ;;
1143
1144 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1145 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1146 | --oldin | --oldi | --old | --ol | --o)
1147 ac_prev=oldincludedir ;;
1148 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1149 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1150 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1151 oldincludedir=$ac_optarg ;;
1152
1153 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1154 ac_prev=prefix ;;
1155 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1156 prefix=$ac_optarg ;;
1157
1158 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1159 | --program-pre | --program-pr | --program-p)
1160 ac_prev=program_prefix ;;
1161 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1162 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1163 program_prefix=$ac_optarg ;;
1164
1165 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1166 | --program-suf | --program-su | --program-s)
1167 ac_prev=program_suffix ;;
1168 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1169 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1170 program_suffix=$ac_optarg ;;
1171
1172 -program-transform-name | --program-transform-name \
1173 | --program-transform-nam | --program-transform-na \
1174 | --program-transform-n | --program-transform- \
1175 | --program-transform | --program-transfor \
1176 | --program-transfo | --program-transf \
1177 | --program-trans | --program-tran \
1178 | --progr-tra | --program-tr | --program-t)
1179 ac_prev=program_transform_name ;;
1180 -program-transform-name=* | --program-transform-name=* \
1181 | --program-transform-nam=* | --program-transform-na=* \
1182 | --program-transform-n=* | --program-transform-=* \
1183 | --program-transform=* | --program-transfor=* \
1184 | --program-transfo=* | --program-transf=* \
1185 | --program-trans=* | --program-tran=* \
1186 | --progr-tra=* | --program-tr=* | --program-t=*)
1187 program_transform_name=$ac_optarg ;;
1188
1189 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1190 ac_prev=pdfdir ;;
1191 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1192 pdfdir=$ac_optarg ;;
1193
1194 -psdir | --psdir | --psdi | --psd | --ps)
1195 ac_prev=psdir ;;
1196 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1197 psdir=$ac_optarg ;;
1198
1199 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1200 | -silent | --silent | --silen | --sile | --sil)
1201 silent=yes ;;
1202
1203 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1204 ac_prev=sbindir ;;
1205 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1206 | --sbi=* | --sb=*)
1207 sbindir=$ac_optarg ;;
1208
1209 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1210 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1211 | --sharedst | --shareds | --shared | --share | --shar \
1212 | --sha | --sh)
1213 ac_prev=sharedstatedir ;;
1214 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1215 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1216 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1217 | --sha=* | --sh=*)
1218 sharedstatedir=$ac_optarg ;;
1219
1220 -site | --site | --sit)
1221 ac_prev=site ;;
1222 -site=* | --site=* | --sit=*)
1223 site=$ac_optarg ;;
1224
1225 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1226 ac_prev=srcdir ;;
1227 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1228 srcdir=$ac_optarg ;;
1229
1230 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1231 | --syscon | --sysco | --sysc | --sys | --sy)
1232 ac_prev=sysconfdir ;;
1233 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1234 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1235 sysconfdir=$ac_optarg ;;
1236
1237 -target | --target | --targe | --targ | --tar | --ta | --t)
1238 ac_prev=target_alias ;;
1239 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1240 target_alias=$ac_optarg ;;
1241
1242 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1243 verbose=yes ;;
1244
1245 -version | --version | --versio | --versi | --vers | -V)
1246 ac_init_version=: ;;
1247
1248 -with-* | --with-*)
1249 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1250 # Reject names that are not valid shell variable names.
1251 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1252 as_fn_error $? "invalid package name: $ac_useropt"
1253 ac_useropt_orig=$ac_useropt
1254 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1255 case $ac_user_opts in
1256 *"
1257 "with_$ac_useropt"
1258 "*) ;;
1259 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1260 ac_unrecognized_sep=', ';;
1261 esac
1262 eval with_$ac_useropt=\$ac_optarg ;;
1263
1264 -without-* | --without-*)
1265 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1266 # Reject names that are not valid shell variable names.
1267 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1268 as_fn_error $? "invalid package name: $ac_useropt"
1269 ac_useropt_orig=$ac_useropt
1270 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1271 case $ac_user_opts in
1272 *"
1273 "with_$ac_useropt"
1274 "*) ;;
1275 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1276 ac_unrecognized_sep=', ';;
1277 esac
1278 eval with_$ac_useropt=no ;;
1279
1280 --x)
1281 # Obsolete; use --with-x.
1282 with_x=yes ;;
1283
1284 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1285 | --x-incl | --x-inc | --x-in | --x-i)
1286 ac_prev=x_includes ;;
1287 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1288 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1289 x_includes=$ac_optarg ;;
1290
1291 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1292 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1293 ac_prev=x_libraries ;;
1294 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1295 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1296 x_libraries=$ac_optarg ;;
1297
1298 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1299 Try \`$0 --help' for more information"
1300 ;;
1301
1302 *=*)
1303 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1304 # Reject names that are not valid shell variable names.
1305 case $ac_envvar in #(
1306 '' | [0-9]* | *[!_$as_cr_alnum]* )
1307 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1308 esac
1309 eval $ac_envvar=\$ac_optarg
1310 export $ac_envvar ;;
1311
1312 *)
1313 # FIXME: should be removed in autoconf 3.0.
1314 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1315 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1316 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1317 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1318 ;;
1319
1320 esac
1321 done
1322
1323 if test -n "$ac_prev"; then
1324 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1325 as_fn_error $? "missing argument to $ac_option"
1326 fi
1327
1328 if test -n "$ac_unrecognized_opts"; then
1329 case $enable_option_checking in
1330 no) ;;
1331 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1332 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1333 esac
1334 fi
1335
1336 # Check all directory arguments for consistency.
1337 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1338 datadir sysconfdir sharedstatedir localstatedir includedir \
1339 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1340 libdir localedir mandir
1341 do
1342 eval ac_val=\$$ac_var
1343 # Remove trailing slashes.
1344 case $ac_val in
1345 */ )
1346 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1347 eval $ac_var=\$ac_val;;
1348 esac
1349 # Be sure to have absolute directory names.
1350 case $ac_val in
1351 [\\/$]* | ?:[\\/]* ) continue;;
1352 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1353 esac
1354 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1355 done
1356
1357 # There might be people who depend on the old broken behavior: `$host'
1358 # used to hold the argument of --host etc.
1359 # FIXME: To remove some day.
1360 build=$build_alias
1361 host=$host_alias
1362 target=$target_alias
1363
1364 # FIXME: To remove some day.
1365 if test "x$host_alias" != x; then
1366 if test "x$build_alias" = x; then
1367 cross_compiling=maybe
1368 elif test "x$build_alias" != "x$host_alias"; then
1369 cross_compiling=yes
1370 fi
1371 fi
1372
1373 ac_tool_prefix=
1374 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1375
1376 test "$silent" = yes && exec 6>/dev/null
1377
1378
1379 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1380 ac_ls_di=`ls -di .` &&
1381 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1382 as_fn_error $? "working directory cannot be determined"
1383 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1384 as_fn_error $? "pwd does not report name of working directory"
1385
1386
1387 # Find the source files, if location was not specified.
1388 if test -z "$srcdir"; then
1389 ac_srcdir_defaulted=yes
1390 # Try the directory containing this script, then the parent directory.
1391 ac_confdir=`$as_dirname -- "$as_myself" ||
1392 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1393 X"$as_myself" : 'X\(//\)[^/]' \| \
1394 X"$as_myself" : 'X\(//\)$' \| \
1395 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1396 $as_echo X"$as_myself" |
1397 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1398 s//\1/
1399 q
1400 }
1401 /^X\(\/\/\)[^/].*/{
1402 s//\1/
1403 q
1404 }
1405 /^X\(\/\/\)$/{
1406 s//\1/
1407 q
1408 }
1409 /^X\(\/\).*/{
1410 s//\1/
1411 q
1412 }
1413 s/.*/./; q'`
1414 srcdir=$ac_confdir
1415 if test ! -r "$srcdir/$ac_unique_file"; then
1416 srcdir=..
1417 fi
1418 else
1419 ac_srcdir_defaulted=no
1420 fi
1421 if test ! -r "$srcdir/$ac_unique_file"; then
1422 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1423 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1424 fi
1425 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1426 ac_abs_confdir=`(
1427 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1428 pwd)`
1429 # When building in place, set srcdir=.
1430 if test "$ac_abs_confdir" = "$ac_pwd"; then
1431 srcdir=.
1432 fi
1433 # Remove unnecessary trailing slashes from srcdir.
1434 # Double slashes in file names in object file debugging info
1435 # mess up M-x gdb in Emacs.
1436 case $srcdir in
1437 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1438 esac
1439 for ac_var in $ac_precious_vars; do
1440 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1441 eval ac_env_${ac_var}_value=\$${ac_var}
1442 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1443 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1444 done
1445
1446 #
1447 # Report the --help message.
1448 #
1449 if test "$ac_init_help" = "long"; then
1450 # Omit some internal or obsolete options to make the list less imposing.
1451 # This message is too long to be a string in the A/UX 3.1 sh.
1452 cat <<_ACEOF
1453 \`configure' configures libXi 1.7.10 to adapt to many kinds of systems.
1454
1455 Usage: $0 [OPTION]... [VAR=VALUE]...
1456
1457 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1458 VAR=VALUE. See below for descriptions of some of the useful variables.
1459
1460 Defaults for the options are specified in brackets.
1461
1462 Configuration:
1463 -h, --help display this help and exit
1464 --help=short display options specific to this package
1465 --help=recursive display the short help of all the included packages
1466 -V, --version display version information and exit
1467 -q, --quiet, --silent do not print \`checking ...' messages
1468 --cache-file=FILE cache test results in FILE [disabled]
1469 -C, --config-cache alias for \`--cache-file=config.cache'
1470 -n, --no-create do not create output files
1471 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1472
1473 Installation directories:
1474 --prefix=PREFIX install architecture-independent files in PREFIX
1475 [$ac_default_prefix]
1476 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1477 [PREFIX]
1478
1479 By default, \`make install' will install all the files in
1480 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1481 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1482 for instance \`--prefix=\$HOME'.
1483
1484 For better control, use the options below.
1485
1486 Fine tuning of the installation directories:
1487 --bindir=DIR user executables [EPREFIX/bin]
1488 --sbindir=DIR system admin executables [EPREFIX/sbin]
1489 --libexecdir=DIR program executables [EPREFIX/libexec]
1490 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1491 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1492 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1493 --libdir=DIR object code libraries [EPREFIX/lib]
1494 --includedir=DIR C header files [PREFIX/include]
1495 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1496 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1497 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1498 --infodir=DIR info documentation [DATAROOTDIR/info]
1499 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1500 --mandir=DIR man documentation [DATAROOTDIR/man]
1501 --docdir=DIR documentation root [DATAROOTDIR/doc/libXi]
1502 --htmldir=DIR html documentation [DOCDIR]
1503 --dvidir=DIR dvi documentation [DOCDIR]
1504 --pdfdir=DIR pdf documentation [DOCDIR]
1505 --psdir=DIR ps documentation [DOCDIR]
1506 _ACEOF
1507
1508 cat <<\_ACEOF
1509
1510 Program names:
1511 --program-prefix=PREFIX prepend PREFIX to installed program names
1512 --program-suffix=SUFFIX append SUFFIX to installed program names
1513 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1514
1515 System types:
1516 --build=BUILD configure for building on BUILD [guessed]
1517 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1518 _ACEOF
1519 fi
1520
1521 if test -n "$ac_init_help"; then
1522 case $ac_init_help in
1523 short | recursive ) echo "Configuration of libXi 1.7.10:";;
1524 esac
1525 cat <<\_ACEOF
1526
1527 Optional Features:
1528 --disable-option-checking ignore unrecognized --enable/--with options
1529 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1530 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1531 --enable-silent-rules less verbose build output (undo: "make V=1")
1532 --disable-silent-rules verbose build output (undo: "make V=0")
1533 --enable-shared[=PKGS] build shared libraries [default=yes]
1534 --enable-static[=PKGS] build static libraries [default=yes]
1535 --enable-fast-install[=PKGS]
1536 optimize for fast installation [default=yes]
1537 --enable-dependency-tracking
1538 do not reject slow dependency extractors
1539 --disable-dependency-tracking
1540 speeds up one-time build
1541 --disable-libtool-lock avoid locking (might break parallel builds)
1542 --disable-selective-werror
1543 Turn off selective compiler errors. (default:
1544 enabled)
1545 --enable-strict-compilation
1546 Enable all warnings from compiler and make them
1547 errors (default: disabled)
1548 --enable-docs Enable building the documentation (default: yes)
1549 --enable-specs Enable building the specs (default: yes)
1550 --enable-malloc0returnsnull
1551 malloc(0) returns NULL (default: auto)
1552
1553 Optional Packages:
1554 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1555 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1556 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1557 both]
1558 --with-aix-soname=aix|svr4|both
1559 shared library versioning (aka "SONAME") variant to
1560 provide on AIX, [default=aix].
1561 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1562 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1563 compiler's sysroot if not specified).
1564 --with-xmlto Use xmlto to regenerate documentation (default:
1565 auto)
1566 --with-fop Use fop to regenerate documentation (default: auto)
1567 --with-xsltproc Use xsltproc for the transformation of XML documents
1568 (default: auto)
1569 --with-asciidoc Use asciidoc to regenerate documentation (default:
1570 auto)
1571
1572 Some influential environment variables:
1573 CC C compiler command
1574 CFLAGS C compiler flags
1575 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1576 nonstandard directory <lib dir>
1577 LIBS libraries to pass to the linker, e.g. -l<library>
1578 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1579 you have headers in a nonstandard directory <include dir>
1580 LT_SYS_LIBRARY_PATH
1581 User-defined run-time library search path.
1582 CPP C preprocessor
1583 PKG_CONFIG path to pkg-config utility
1584 PKG_CONFIG_PATH
1585 directories to add to pkg-config's search path
1586 PKG_CONFIG_LIBDIR
1587 path overriding pkg-config's built-in search path
1588 XMLTO Path to xmlto command
1589 FOP Path to fop command
1590 XSLTPROC Path to xsltproc command
1591 ASCIIDOC Path to asciidoc command
1592 XI_CFLAGS C compiler flags for XI, overriding pkg-config
1593 XI_LIBS linker flags for XI, overriding pkg-config
1594 XFIXES_CFLAGS
1595 C compiler flags for XFIXES, overriding pkg-config
1596 XFIXES_LIBS linker flags for XFIXES, overriding pkg-config
1597
1598 Use these variables to override the choices made by `configure' or to help
1599 it to find libraries and programs with nonstandard names/locations.
1600
1601 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libXi/issues>.
1602 _ACEOF
1603 ac_status=$?
1604 fi
1605
1606 if test "$ac_init_help" = "recursive"; then
1607 # If there are subdirs, report their specific --help.
1608 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1609 test -d "$ac_dir" ||
1610 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1611 continue
1612 ac_builddir=.
1613
1614 case "$ac_dir" in
1615 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1616 *)
1617 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1618 # A ".." for each directory in $ac_dir_suffix.
1619 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1620 case $ac_top_builddir_sub in
1621 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1622 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1623 esac ;;
1624 esac
1625 ac_abs_top_builddir=$ac_pwd
1626 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1627 # for backward compatibility:
1628 ac_top_builddir=$ac_top_build_prefix
1629
1630 case $srcdir in
1631 .) # We are building in place.
1632 ac_srcdir=.
1633 ac_top_srcdir=$ac_top_builddir_sub
1634 ac_abs_top_srcdir=$ac_pwd ;;
1635 [\\/]* | ?:[\\/]* ) # Absolute name.
1636 ac_srcdir=$srcdir$ac_dir_suffix;
1637 ac_top_srcdir=$srcdir
1638 ac_abs_top_srcdir=$srcdir ;;
1639 *) # Relative name.
1640 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1641 ac_top_srcdir=$ac_top_build_prefix$srcdir
1642 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1643 esac
1644 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1645
1646 cd "$ac_dir" || { ac_status=$?; continue; }
1647 # Check for guested configure.
1648 if test -f "$ac_srcdir/configure.gnu"; then
1649 echo &&
1650 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1651 elif test -f "$ac_srcdir/configure"; then
1652 echo &&
1653 $SHELL "$ac_srcdir/configure" --help=recursive
1654 else
1655 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1656 fi || ac_status=$?
1657 cd "$ac_pwd" || { ac_status=$?; break; }
1658 done
1659 fi
1660
1661 test -n "$ac_init_help" && exit $ac_status
1662 if $ac_init_version; then
1663 cat <<\_ACEOF
1664 libXi configure 1.7.10
1665 generated by GNU Autoconf 2.69
1666
1667 Copyright (C) 2012 Free Software Foundation, Inc.
1668 This configure script is free software; the Free Software Foundation
1669 gives unlimited permission to copy, distribute and modify it.
1670 _ACEOF
1671 exit
1672 fi
1673
1674 ## ------------------------ ##
1675 ## Autoconf initialization. ##
1676 ## ------------------------ ##
1677
1678 # ac_fn_c_try_compile LINENO
1679 # --------------------------
1680 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1681 ac_fn_c_try_compile ()
1682 {
1683 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1684 rm -f conftest.$ac_objext
1685 if { { ac_try="$ac_compile"
1686 case "(($ac_try" in
1687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1688 *) ac_try_echo=$ac_try;;
1689 esac
1690 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1691 $as_echo "$ac_try_echo"; } >&5
1692 (eval "$ac_compile") 2>conftest.err
1693 ac_status=$?
1694 if test -s conftest.err; then
1695 grep -v '^ *+' conftest.err >conftest.er1
1696 cat conftest.er1 >&5
1697 mv -f conftest.er1 conftest.err
1698 fi
1699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1700 test $ac_status = 0; } && {
1701 test -z "$ac_c_werror_flag" ||
1702 test ! -s conftest.err
1703 } && test -s conftest.$ac_objext; then :
1704 ac_retval=0
1705 else
1706 $as_echo "$as_me: failed program was:" >&5
1707 sed 's/^/| /' conftest.$ac_ext >&5
1708
1709 ac_retval=1
1710 fi
1711 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1712 as_fn_set_status $ac_retval
1713
1714 } # ac_fn_c_try_compile
1715
1716 # ac_fn_c_try_link LINENO
1717 # -----------------------
1718 # Try to link conftest.$ac_ext, and return whether this succeeded.
1719 ac_fn_c_try_link ()
1720 {
1721 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1722 rm -f conftest.$ac_objext conftest$ac_exeext
1723 if { { ac_try="$ac_link"
1724 case "(($ac_try" in
1725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1726 *) ac_try_echo=$ac_try;;
1727 esac
1728 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1729 $as_echo "$ac_try_echo"; } >&5
1730 (eval "$ac_link") 2>conftest.err
1731 ac_status=$?
1732 if test -s conftest.err; then
1733 grep -v '^ *+' conftest.err >conftest.er1
1734 cat conftest.er1 >&5
1735 mv -f conftest.er1 conftest.err
1736 fi
1737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1738 test $ac_status = 0; } && {
1739 test -z "$ac_c_werror_flag" ||
1740 test ! -s conftest.err
1741 } && test -s conftest$ac_exeext && {
1742 test "$cross_compiling" = yes ||
1743 test -x conftest$ac_exeext
1744 }; then :
1745 ac_retval=0
1746 else
1747 $as_echo "$as_me: failed program was:" >&5
1748 sed 's/^/| /' conftest.$ac_ext >&5
1749
1750 ac_retval=1
1751 fi
1752 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1753 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1754 # interfere with the next link command; also delete a directory that is
1755 # left behind by Apple's compiler. We do this before executing the actions.
1756 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1757 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1758 as_fn_set_status $ac_retval
1759
1760 } # ac_fn_c_try_link
1761
1762 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1763 # -------------------------------------------------------
1764 # Tests whether HEADER exists and can be compiled using the include files in
1765 # INCLUDES, setting the cache variable VAR accordingly.
1766 ac_fn_c_check_header_compile ()
1767 {
1768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1770 $as_echo_n "checking for $2... " >&6; }
1771 if eval \${$3+:} false; then :
1772 $as_echo_n "(cached) " >&6
1773 else
1774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1775 /* end confdefs.h. */
1776 $4
1777 #include <$2>
1778 _ACEOF
1779 if ac_fn_c_try_compile "$LINENO"; then :
1780 eval "$3=yes"
1781 else
1782 eval "$3=no"
1783 fi
1784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1785 fi
1786 eval ac_res=\$$3
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1788 $as_echo "$ac_res" >&6; }
1789 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1790
1791 } # ac_fn_c_check_header_compile
1792
1793 # ac_fn_c_try_cpp LINENO
1794 # ----------------------
1795 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1796 ac_fn_c_try_cpp ()
1797 {
1798 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1799 if { { ac_try="$ac_cpp conftest.$ac_ext"
1800 case "(($ac_try" in
1801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1802 *) ac_try_echo=$ac_try;;
1803 esac
1804 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1805 $as_echo "$ac_try_echo"; } >&5
1806 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1807 ac_status=$?
1808 if test -s conftest.err; then
1809 grep -v '^ *+' conftest.err >conftest.er1
1810 cat conftest.er1 >&5
1811 mv -f conftest.er1 conftest.err
1812 fi
1813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1814 test $ac_status = 0; } > conftest.i && {
1815 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1816 test ! -s conftest.err
1817 }; then :
1818 ac_retval=0
1819 else
1820 $as_echo "$as_me: failed program was:" >&5
1821 sed 's/^/| /' conftest.$ac_ext >&5
1822
1823 ac_retval=1
1824 fi
1825 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1826 as_fn_set_status $ac_retval
1827
1828 } # ac_fn_c_try_cpp
1829
1830 # ac_fn_c_try_run LINENO
1831 # ----------------------
1832 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1833 # that executables *can* be run.
1834 ac_fn_c_try_run ()
1835 {
1836 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1837 if { { ac_try="$ac_link"
1838 case "(($ac_try" in
1839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1840 *) ac_try_echo=$ac_try;;
1841 esac
1842 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1843 $as_echo "$ac_try_echo"; } >&5
1844 (eval "$ac_link") 2>&5
1845 ac_status=$?
1846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1847 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1848 { { case "(($ac_try" in
1849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1850 *) ac_try_echo=$ac_try;;
1851 esac
1852 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1853 $as_echo "$ac_try_echo"; } >&5
1854 (eval "$ac_try") 2>&5
1855 ac_status=$?
1856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1857 test $ac_status = 0; }; }; then :
1858 ac_retval=0
1859 else
1860 $as_echo "$as_me: program exited with status $ac_status" >&5
1861 $as_echo "$as_me: failed program was:" >&5
1862 sed 's/^/| /' conftest.$ac_ext >&5
1863
1864 ac_retval=$ac_status
1865 fi
1866 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1867 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1868 as_fn_set_status $ac_retval
1869
1870 } # ac_fn_c_try_run
1871
1872 # ac_fn_c_check_func LINENO FUNC VAR
1873 # ----------------------------------
1874 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1875 ac_fn_c_check_func ()
1876 {
1877 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1879 $as_echo_n "checking for $2... " >&6; }
1880 if eval \${$3+:} false; then :
1881 $as_echo_n "(cached) " >&6
1882 else
1883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1884 /* end confdefs.h. */
1885 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1886 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1887 #define $2 innocuous_$2
1888
1889 /* System header to define __stub macros and hopefully few prototypes,
1890 which can conflict with char $2 (); below.
1891 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1892 <limits.h> exists even on freestanding compilers. */
1893
1894 #ifdef __STDC__
1895 # include <limits.h>
1896 #else
1897 # include <assert.h>
1898 #endif
1899
1900 #undef $2
1901
1902 /* Override any GCC internal prototype to avoid an error.
1903 Use char because int might match the return type of a GCC
1904 builtin and then its argument prototype would still apply. */
1905 #ifdef __cplusplus
1906 extern "C"
1907 #endif
1908 char $2 ();
1909 /* The GNU C library defines this for functions which it implements
1910 to always fail with ENOSYS. Some functions are actually named
1911 something starting with __ and the normal name is an alias. */
1912 #if defined __stub_$2 || defined __stub___$2
1913 choke me
1914 #endif
1915
1916 int
1917 main ()
1918 {
1919 return $2 ();
1920 ;
1921 return 0;
1922 }
1923 _ACEOF
1924 if ac_fn_c_try_link "$LINENO"; then :
1925 eval "$3=yes"
1926 else
1927 eval "$3=no"
1928 fi
1929 rm -f core conftest.err conftest.$ac_objext \
1930 conftest$ac_exeext conftest.$ac_ext
1931 fi
1932 eval ac_res=\$$3
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1934 $as_echo "$ac_res" >&6; }
1935 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1936
1937 } # ac_fn_c_check_func
1938
1939 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1940 # ---------------------------------------------
1941 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1942 # accordingly.
1943 ac_fn_c_check_decl ()
1944 {
1945 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1946 as_decl_name=`echo $2|sed 's/ *(.*//'`
1947 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1949 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1950 if eval \${$3+:} false; then :
1951 $as_echo_n "(cached) " >&6
1952 else
1953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1954 /* end confdefs.h. */
1955 $4
1956 int
1957 main ()
1958 {
1959 #ifndef $as_decl_name
1960 #ifdef __cplusplus
1961 (void) $as_decl_use;
1962 #else
1963 (void) $as_decl_name;
1964 #endif
1965 #endif
1966
1967 ;
1968 return 0;
1969 }
1970 _ACEOF
1971 if ac_fn_c_try_compile "$LINENO"; then :
1972 eval "$3=yes"
1973 else
1974 eval "$3=no"
1975 fi
1976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1977 fi
1978 eval ac_res=\$$3
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1980 $as_echo "$ac_res" >&6; }
1981 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1982
1983 } # ac_fn_c_check_decl
1984 cat >config.log <<_ACEOF
1985 This file contains any messages produced by compilers while
1986 running configure, to aid debugging if configure makes a mistake.
1987
1988 It was created by libXi $as_me 1.7.10, which was
1989 generated by GNU Autoconf 2.69. Invocation command line was
1990
1991 $ $0 $@
1992
1993 _ACEOF
1994 exec 5>>config.log
1995 {
1996 cat <<_ASUNAME
1997 ## --------- ##
1998 ## Platform. ##
1999 ## --------- ##
2000
2001 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2002 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2003 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2004 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2005 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2006
2007 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2008 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2009
2010 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2011 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2012 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2013 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2014 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2015 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2016 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2017
2018 _ASUNAME
2019
2020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2021 for as_dir in $PATH
2022 do
2023 IFS=$as_save_IFS
2024 test -z "$as_dir" && as_dir=.
2025 $as_echo "PATH: $as_dir"
2026 done
2027 IFS=$as_save_IFS
2028
2029 } >&5
2030
2031 cat >&5 <<_ACEOF
2032
2033
2034 ## ----------- ##
2035 ## Core tests. ##
2036 ## ----------- ##
2037
2038 _ACEOF
2039
2040
2041 # Keep a trace of the command line.
2042 # Strip out --no-create and --no-recursion so they do not pile up.
2043 # Strip out --silent because we don't want to record it for future runs.
2044 # Also quote any args containing shell meta-characters.
2045 # Make two passes to allow for proper duplicate-argument suppression.
2046 ac_configure_args=
2047 ac_configure_args0=
2048 ac_configure_args1=
2049 ac_must_keep_next=false
2050 for ac_pass in 1 2
2051 do
2052 for ac_arg
2053 do
2054 case $ac_arg in
2055 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2056 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2057 | -silent | --silent | --silen | --sile | --sil)
2058 continue ;;
2059 *\'*)
2060 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2061 esac
2062 case $ac_pass in
2063 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2064 2)
2065 as_fn_append ac_configure_args1 " '$ac_arg'"
2066 if test $ac_must_keep_next = true; then
2067 ac_must_keep_next=false # Got value, back to normal.
2068 else
2069 case $ac_arg in
2070 *=* | --config-cache | -C | -disable-* | --disable-* \
2071 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2072 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2073 | -with-* | --with-* | -without-* | --without-* | --x)
2074 case "$ac_configure_args0 " in
2075 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2076 esac
2077 ;;
2078 -* ) ac_must_keep_next=true ;;
2079 esac
2080 fi
2081 as_fn_append ac_configure_args " '$ac_arg'"
2082 ;;
2083 esac
2084 done
2085 done
2086 { ac_configure_args0=; unset ac_configure_args0;}
2087 { ac_configure_args1=; unset ac_configure_args1;}
2088
2089 # When interrupted or exit'd, cleanup temporary files, and complete
2090 # config.log. We remove comments because anyway the quotes in there
2091 # would cause problems or look ugly.
2092 # WARNING: Use '\'' to represent an apostrophe within the trap.
2093 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2094 trap 'exit_status=$?
2095 # Save into config.log some information that might help in debugging.
2096 {
2097 echo
2098
2099 $as_echo "## ---------------- ##
2100 ## Cache variables. ##
2101 ## ---------------- ##"
2102 echo
2103 # The following way of writing the cache mishandles newlines in values,
2104 (
2105 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2106 eval ac_val=\$$ac_var
2107 case $ac_val in #(
2108 *${as_nl}*)
2109 case $ac_var in #(
2110 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2111 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2112 esac
2113 case $ac_var in #(
2114 _ | IFS | as_nl) ;; #(
2115 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2116 *) { eval $ac_var=; unset $ac_var;} ;;
2117 esac ;;
2118 esac
2119 done
2120 (set) 2>&1 |
2121 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2122 *${as_nl}ac_space=\ *)
2123 sed -n \
2124 "s/'\''/'\''\\\\'\'''\''/g;
2125 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2126 ;; #(
2127 *)
2128 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2129 ;;
2130 esac |
2131 sort
2132 )
2133 echo
2134
2135 $as_echo "## ----------------- ##
2136 ## Output variables. ##
2137 ## ----------------- ##"
2138 echo
2139 for ac_var in $ac_subst_vars
2140 do
2141 eval ac_val=\$$ac_var
2142 case $ac_val in
2143 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2144 esac
2145 $as_echo "$ac_var='\''$ac_val'\''"
2146 done | sort
2147 echo
2148
2149 if test -n "$ac_subst_files"; then
2150 $as_echo "## ------------------- ##
2151 ## File substitutions. ##
2152 ## ------------------- ##"
2153 echo
2154 for ac_var in $ac_subst_files
2155 do
2156 eval ac_val=\$$ac_var
2157 case $ac_val in
2158 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2159 esac
2160 $as_echo "$ac_var='\''$ac_val'\''"
2161 done | sort
2162 echo
2163 fi
2164
2165 if test -s confdefs.h; then
2166 $as_echo "## ----------- ##
2167 ## confdefs.h. ##
2168 ## ----------- ##"
2169 echo
2170 cat confdefs.h
2171 echo
2172 fi
2173 test "$ac_signal" != 0 &&
2174 $as_echo "$as_me: caught signal $ac_signal"
2175 $as_echo "$as_me: exit $exit_status"
2176 } >&5
2177 rm -f core *.core core.conftest.* &&
2178 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2179 exit $exit_status
2180 ' 0
2181 for ac_signal in 1 2 13 15; do
2182 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2183 done
2184 ac_signal=0
2185
2186 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2187 rm -f -r conftest* confdefs.h
2188
2189 $as_echo "/* confdefs.h */" > confdefs.h
2190
2191 # Predefined preprocessor variables.
2192
2193 cat >>confdefs.h <<_ACEOF
2194 #define PACKAGE_NAME "$PACKAGE_NAME"
2195 _ACEOF
2196
2197 cat >>confdefs.h <<_ACEOF
2198 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2199 _ACEOF
2200
2201 cat >>confdefs.h <<_ACEOF
2202 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2203 _ACEOF
2204
2205 cat >>confdefs.h <<_ACEOF
2206 #define PACKAGE_STRING "$PACKAGE_STRING"
2207 _ACEOF
2208
2209 cat >>confdefs.h <<_ACEOF
2210 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2211 _ACEOF
2212
2213 cat >>confdefs.h <<_ACEOF
2214 #define PACKAGE_URL "$PACKAGE_URL"
2215 _ACEOF
2216
2217
2218 # Let the site file select an alternate cache file if it wants to.
2219 # Prefer an explicitly selected file to automatically selected ones.
2220 ac_site_file1=NONE
2221 ac_site_file2=NONE
2222 if test -n "$CONFIG_SITE"; then
2223 # We do not want a PATH search for config.site.
2224 case $CONFIG_SITE in #((
2225 -*) ac_site_file1=./$CONFIG_SITE;;
2226 */*) ac_site_file1=$CONFIG_SITE;;
2227 *) ac_site_file1=./$CONFIG_SITE;;
2228 esac
2229 elif test "x$prefix" != xNONE; then
2230 ac_site_file1=$prefix/share/config.site
2231 ac_site_file2=$prefix/etc/config.site
2232 else
2233 ac_site_file1=$ac_default_prefix/share/config.site
2234 ac_site_file2=$ac_default_prefix/etc/config.site
2235 fi
2236 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2237 do
2238 test "x$ac_site_file" = xNONE && continue
2239 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2241 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2242 sed 's/^/| /' "$ac_site_file" >&5
2243 . "$ac_site_file" \
2244 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2245 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2246 as_fn_error $? "failed to load site script $ac_site_file
2247 See \`config.log' for more details" "$LINENO" 5; }
2248 fi
2249 done
2250
2251 if test -r "$cache_file"; then
2252 # Some versions of bash will fail to source /dev/null (special files
2253 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2254 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2256 $as_echo "$as_me: loading cache $cache_file" >&6;}
2257 case $cache_file in
2258 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2259 *) . "./$cache_file";;
2260 esac
2261 fi
2262 else
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2264 $as_echo "$as_me: creating cache $cache_file" >&6;}
2265 >$cache_file
2266 fi
2267
2268 # Check that the precious variables saved in the cache have kept the same
2269 # value.
2270 ac_cache_corrupted=false
2271 for ac_var in $ac_precious_vars; do
2272 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2273 eval ac_new_set=\$ac_env_${ac_var}_set
2274 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2275 eval ac_new_val=\$ac_env_${ac_var}_value
2276 case $ac_old_set,$ac_new_set in
2277 set,)
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2279 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2280 ac_cache_corrupted=: ;;
2281 ,set)
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2283 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2284 ac_cache_corrupted=: ;;
2285 ,);;
2286 *)
2287 if test "x$ac_old_val" != "x$ac_new_val"; then
2288 # differences in whitespace do not lead to failure.
2289 ac_old_val_w=`echo x $ac_old_val`
2290 ac_new_val_w=`echo x $ac_new_val`
2291 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2293 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2294 ac_cache_corrupted=:
2295 else
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2297 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2298 eval $ac_var=\$ac_old_val
2299 fi
2300 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2301 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2303 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2304 fi;;
2305 esac
2306 # Pass precious variables to config.status.
2307 if test "$ac_new_set" = set; then
2308 case $ac_new_val in
2309 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2310 *) ac_arg=$ac_var=$ac_new_val ;;
2311 esac
2312 case " $ac_configure_args " in
2313 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2314 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2315 esac
2316 fi
2317 done
2318 if $ac_cache_corrupted; then
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2320 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2322 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2323 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2324 fi
2325 ## -------------------- ##
2326 ## Main body of script. ##
2327 ## -------------------- ##
2328
2329 ac_ext=c
2330 ac_cpp='$CPP $CPPFLAGS'
2331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2334
2335
2336
2337 ac_config_headers="$ac_config_headers src/config.h"
2338
2339
2340 # Initialize Automake
2341 am__api_version='1.16'
2342
2343 ac_aux_dir=
2344 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2345 if test -f "$ac_dir/install-sh"; then
2346 ac_aux_dir=$ac_dir
2347 ac_install_sh="$ac_aux_dir/install-sh -c"
2348 break
2349 elif test -f "$ac_dir/install.sh"; then
2350 ac_aux_dir=$ac_dir
2351 ac_install_sh="$ac_aux_dir/install.sh -c"
2352 break
2353 elif test -f "$ac_dir/shtool"; then
2354 ac_aux_dir=$ac_dir
2355 ac_install_sh="$ac_aux_dir/shtool install -c"
2356 break
2357 fi
2358 done
2359 if test -z "$ac_aux_dir"; then
2360 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2361 fi
2362
2363 # These three variables are undocumented and unsupported,
2364 # and are intended to be withdrawn in a future Autoconf release.
2365 # They can cause serious problems if a builder's source tree is in a directory
2366 # whose full name contains unusual characters.
2367 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2368 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2369 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2370
2371
2372 # Find a good install program. We prefer a C program (faster),
2373 # so one script is as good as another. But avoid the broken or
2374 # incompatible versions:
2375 # SysV /etc/install, /usr/sbin/install
2376 # SunOS /usr/etc/install
2377 # IRIX /sbin/install
2378 # AIX /bin/install
2379 # AmigaOS /C/install, which installs bootblocks on floppy discs
2380 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2381 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2382 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2383 # OS/2's system install, which has a completely different semantic
2384 # ./install, which can be erroneously created by make from ./install.sh.
2385 # Reject install programs that cannot install multiple files.
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2387 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2388 if test -z "$INSTALL"; then
2389 if ${ac_cv_path_install+:} false; then :
2390 $as_echo_n "(cached) " >&6
2391 else
2392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2393 for as_dir in $PATH
2394 do
2395 IFS=$as_save_IFS
2396 test -z "$as_dir" && as_dir=.
2397 # Account for people who put trailing slashes in PATH elements.
2398 case $as_dir/ in #((
2399 ./ | .// | /[cC]/* | \
2400 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2401 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2402 /usr/ucb/* ) ;;
2403 *)
2404 # OSF1 and SCO ODT 3.0 have their own names for install.
2405 # Don't use installbsd from OSF since it installs stuff as root
2406 # by default.
2407 for ac_prog in ginstall scoinst install; do
2408 for ac_exec_ext in '' $ac_executable_extensions; do
2409 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2410 if test $ac_prog = install &&
2411 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2412 # AIX install. It has an incompatible calling convention.
2413 :
2414 elif test $ac_prog = install &&
2415 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2416 # program-specific install script used by HP pwplus--don't use.
2417 :
2418 else
2419 rm -rf conftest.one conftest.two conftest.dir
2420 echo one > conftest.one
2421 echo two > conftest.two
2422 mkdir conftest.dir
2423 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2424 test -s conftest.one && test -s conftest.two &&
2425 test -s conftest.dir/conftest.one &&
2426 test -s conftest.dir/conftest.two
2427 then
2428 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2429 break 3
2430 fi
2431 fi
2432 fi
2433 done
2434 done
2435 ;;
2436 esac
2437
2438 done
2439 IFS=$as_save_IFS
2440
2441 rm -rf conftest.one conftest.two conftest.dir
2442
2443 fi
2444 if test "${ac_cv_path_install+set}" = set; then
2445 INSTALL=$ac_cv_path_install
2446 else
2447 # As a last resort, use the slow shell script. Don't cache a
2448 # value for INSTALL within a source directory, because that will
2449 # break other packages using the cache if that directory is
2450 # removed, or if the value is a relative name.
2451 INSTALL=$ac_install_sh
2452 fi
2453 fi
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2455 $as_echo "$INSTALL" >&6; }
2456
2457 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2458 # It thinks the first close brace ends the variable substitution.
2459 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2460
2461 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2462
2463 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2464
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2466 $as_echo_n "checking whether build environment is sane... " >&6; }
2467 # Reject unsafe characters in $srcdir or the absolute working directory
2468 # name. Accept space and tab only in the latter.
2469 am_lf='
2470 '
2471 case `pwd` in
2472 *[\\\"\#\$\&\'\`$am_lf]*)
2473 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2474 esac
2475 case $srcdir in
2476 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2477 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2478 esac
2479
2480 # Do 'set' in a subshell so we don't clobber the current shell's
2481 # arguments. Must try -L first in case configure is actually a
2482 # symlink; some systems play weird games with the mod time of symlinks
2483 # (eg FreeBSD returns the mod time of the symlink's containing
2484 # directory).
2485 if (
2486 am_has_slept=no
2487 for am_try in 1 2; do
2488 echo "timestamp, slept: $am_has_slept" > conftest.file
2489 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2490 if test "$*" = "X"; then
2491 # -L didn't work.
2492 set X `ls -t "$srcdir/configure" conftest.file`
2493 fi
2494 if test "$*" != "X $srcdir/configure conftest.file" \
2495 && test "$*" != "X conftest.file $srcdir/configure"; then
2496
2497 # If neither matched, then we have a broken ls. This can happen
2498 # if, for instance, CONFIG_SHELL is bash and it inherits a
2499 # broken ls alias from the environment. This has actually
2500 # happened. Such a system could not be considered "sane".
2501 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2502 alias in your environment" "$LINENO" 5
2503 fi
2504 if test "$2" = conftest.file || test $am_try -eq 2; then
2505 break
2506 fi
2507 # Just in case.
2508 sleep 1
2509 am_has_slept=yes
2510 done
2511 test "$2" = conftest.file
2512 )
2513 then
2514 # Ok.
2515 :
2516 else
2517 as_fn_error $? "newly created file is older than distributed files!
2518 Check your system clock" "$LINENO" 5
2519 fi
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2521 $as_echo "yes" >&6; }
2522 # If we didn't sleep, we still need to ensure time stamps of config.status and
2523 # generated files are strictly newer.
2524 am_sleep_pid=
2525 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2526 ( sleep 1 ) &
2527 am_sleep_pid=$!
2528 fi
2529
2530 rm -f conftest.file
2531
2532 test "$program_prefix" != NONE &&
2533 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2534 # Use a double $ so make ignores it.
2535 test "$program_suffix" != NONE &&
2536 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2537 # Double any \ or $.
2538 # By default was `s,x,x', remove it if useless.
2539 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2540 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2541
2542 # Expand $ac_aux_dir to an absolute path.
2543 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2544
2545 if test x"${MISSING+set}" != xset; then
2546 case $am_aux_dir in
2547 *\ * | *\ *)
2548 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2549 *)
2550 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2551 esac
2552 fi
2553 # Use eval to expand $SHELL
2554 if eval "$MISSING --is-lightweight"; then
2555 am_missing_run="$MISSING "
2556 else
2557 am_missing_run=
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2559 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2560 fi
2561
2562 if test x"${install_sh+set}" != xset; then
2563 case $am_aux_dir in
2564 *\ * | *\ *)
2565 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2566 *)
2567 install_sh="\${SHELL} $am_aux_dir/install-sh"
2568 esac
2569 fi
2570
2571 # Installed binaries are usually stripped using 'strip' when the user
2572 # run "make install-strip". However 'strip' might not be the right
2573 # tool to use in cross-compilation environments, therefore Automake
2574 # will honor the 'STRIP' environment variable to overrule this program.
2575 if test "$cross_compiling" != no; then
2576 if test -n "$ac_tool_prefix"; then
2577 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2578 set dummy ${ac_tool_prefix}strip; ac_word=$2
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2580 $as_echo_n "checking for $ac_word... " >&6; }
2581 if ${ac_cv_prog_STRIP+:} false; then :
2582 $as_echo_n "(cached) " >&6
2583 else
2584 if test -n "$STRIP"; then
2585 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2586 else
2587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2588 for as_dir in $PATH
2589 do
2590 IFS=$as_save_IFS
2591 test -z "$as_dir" && as_dir=.
2592 for ac_exec_ext in '' $ac_executable_extensions; do
2593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2594 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2596 break 2
2597 fi
2598 done
2599 done
2600 IFS=$as_save_IFS
2601
2602 fi
2603 fi
2604 STRIP=$ac_cv_prog_STRIP
2605 if test -n "$STRIP"; then
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2607 $as_echo "$STRIP" >&6; }
2608 else
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2610 $as_echo "no" >&6; }
2611 fi
2612
2613
2614 fi
2615 if test -z "$ac_cv_prog_STRIP"; then
2616 ac_ct_STRIP=$STRIP
2617 # Extract the first word of "strip", so it can be a program name with args.
2618 set dummy strip; ac_word=$2
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2620 $as_echo_n "checking for $ac_word... " >&6; }
2621 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2622 $as_echo_n "(cached) " >&6
2623 else
2624 if test -n "$ac_ct_STRIP"; then
2625 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2626 else
2627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2628 for as_dir in $PATH
2629 do
2630 IFS=$as_save_IFS
2631 test -z "$as_dir" && as_dir=.
2632 for ac_exec_ext in '' $ac_executable_extensions; do
2633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2634 ac_cv_prog_ac_ct_STRIP="strip"
2635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2636 break 2
2637 fi
2638 done
2639 done
2640 IFS=$as_save_IFS
2641
2642 fi
2643 fi
2644 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2645 if test -n "$ac_ct_STRIP"; then
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2647 $as_echo "$ac_ct_STRIP" >&6; }
2648 else
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2650 $as_echo "no" >&6; }
2651 fi
2652
2653 if test "x$ac_ct_STRIP" = x; then
2654 STRIP=":"
2655 else
2656 case $cross_compiling:$ac_tool_warned in
2657 yes:)
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2659 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2660 ac_tool_warned=yes ;;
2661 esac
2662 STRIP=$ac_ct_STRIP
2663 fi
2664 else
2665 STRIP="$ac_cv_prog_STRIP"
2666 fi
2667
2668 fi
2669 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2670
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2672 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2673 if test -z "$MKDIR_P"; then
2674 if ${ac_cv_path_mkdir+:} false; then :
2675 $as_echo_n "(cached) " >&6
2676 else
2677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2678 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2679 do
2680 IFS=$as_save_IFS
2681 test -z "$as_dir" && as_dir=.
2682 for ac_prog in mkdir gmkdir; do
2683 for ac_exec_ext in '' $ac_executable_extensions; do
2684 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2685 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2686 'mkdir (GNU coreutils) '* | \
2687 'mkdir (coreutils) '* | \
2688 'mkdir (fileutils) '4.1*)
2689 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2690 break 3;;
2691 esac
2692 done
2693 done
2694 done
2695 IFS=$as_save_IFS
2696
2697 fi
2698
2699 test -d ./--version && rmdir ./--version
2700 if test "${ac_cv_path_mkdir+set}" = set; then
2701 MKDIR_P="$ac_cv_path_mkdir -p"
2702 else
2703 # As a last resort, use the slow shell script. Don't cache a
2704 # value for MKDIR_P within a source directory, because that will
2705 # break other packages using the cache if that directory is
2706 # removed, or if the value is a relative name.
2707 MKDIR_P="$ac_install_sh -d"
2708 fi
2709 fi
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2711 $as_echo "$MKDIR_P" >&6; }
2712
2713 for ac_prog in gawk mawk nawk awk
2714 do
2715 # Extract the first word of "$ac_prog", so it can be a program name with args.
2716 set dummy $ac_prog; ac_word=$2
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2718 $as_echo_n "checking for $ac_word... " >&6; }
2719 if ${ac_cv_prog_AWK+:} false; then :
2720 $as_echo_n "(cached) " >&6
2721 else
2722 if test -n "$AWK"; then
2723 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2724 else
2725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2726 for as_dir in $PATH
2727 do
2728 IFS=$as_save_IFS
2729 test -z "$as_dir" && as_dir=.
2730 for ac_exec_ext in '' $ac_executable_extensions; do
2731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2732 ac_cv_prog_AWK="$ac_prog"
2733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2734 break 2
2735 fi
2736 done
2737 done
2738 IFS=$as_save_IFS
2739
2740 fi
2741 fi
2742 AWK=$ac_cv_prog_AWK
2743 if test -n "$AWK"; then
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2745 $as_echo "$AWK" >&6; }
2746 else
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2748 $as_echo "no" >&6; }
2749 fi
2750
2751
2752 test -n "$AWK" && break
2753 done
2754
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2756 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2757 set x ${MAKE-make}
2758 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2759 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2760 $as_echo_n "(cached) " >&6
2761 else
2762 cat >conftest.make <<\_ACEOF
2763 SHELL = /bin/sh
2764 all:
2765 @echo '@@@%%%=$(MAKE)=@@@%%%'
2766 _ACEOF
2767 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2768 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2769 *@@@%%%=?*=@@@%%%*)
2770 eval ac_cv_prog_make_${ac_make}_set=yes;;
2771 *)
2772 eval ac_cv_prog_make_${ac_make}_set=no;;
2773 esac
2774 rm -f conftest.make
2775 fi
2776 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2778 $as_echo "yes" >&6; }
2779 SET_MAKE=
2780 else
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2782 $as_echo "no" >&6; }
2783 SET_MAKE="MAKE=${MAKE-make}"
2784 fi
2785
2786 rm -rf .tst 2>/dev/null
2787 mkdir .tst 2>/dev/null
2788 if test -d .tst; then
2789 am__leading_dot=.
2790 else
2791 am__leading_dot=_
2792 fi
2793 rmdir .tst 2>/dev/null
2794
2795 # Check whether --enable-silent-rules was given.
2796 if test "${enable_silent_rules+set}" = set; then :
2797 enableval=$enable_silent_rules;
2798 fi
2799
2800 case $enable_silent_rules in # (((
2801 yes) AM_DEFAULT_VERBOSITY=0;;
2802 no) AM_DEFAULT_VERBOSITY=1;;
2803 *) AM_DEFAULT_VERBOSITY=1;;
2804 esac
2805 am_make=${MAKE-make}
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2807 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2808 if ${am_cv_make_support_nested_variables+:} false; then :
2809 $as_echo_n "(cached) " >&6
2810 else
2811 if $as_echo 'TRUE=$(BAR$(V))
2812 BAR0=false
2813 BAR1=true
2814 V=1
2815 am__doit:
2816 @$(TRUE)
2817 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2818 am_cv_make_support_nested_variables=yes
2819 else
2820 am_cv_make_support_nested_variables=no
2821 fi
2822 fi
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2824 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2825 if test $am_cv_make_support_nested_variables = yes; then
2826 AM_V='$(V)'
2827 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2828 else
2829 AM_V=$AM_DEFAULT_VERBOSITY
2830 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2831 fi
2832 AM_BACKSLASH='\'
2833
2834 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2835 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2836 # is not polluted with repeated "-I."
2837 am__isrc=' -I$(srcdir)'
2838 # test to see if srcdir already configured
2839 if test -f $srcdir/config.status; then
2840 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2841 fi
2842 fi
2843
2844 # test whether we have cygpath
2845 if test -z "$CYGPATH_W"; then
2846 if (cygpath --version) >/dev/null 2>/dev/null; then
2847 CYGPATH_W='cygpath -w'
2848 else
2849 CYGPATH_W=echo
2850 fi
2851 fi
2852
2853
2854 # Define the identity of the package.
2855 PACKAGE='libXi'
2856 VERSION='1.7.10'
2857
2858
2859 cat >>confdefs.h <<_ACEOF
2860 #define PACKAGE "$PACKAGE"
2861 _ACEOF
2862
2863
2864 cat >>confdefs.h <<_ACEOF
2865 #define VERSION "$VERSION"
2866 _ACEOF
2867
2868 # Some tools Automake needs.
2869
2870 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2871
2872
2873 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2874
2875
2876 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2877
2878
2879 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2880
2881
2882 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2883
2884 # For better backward compatibility. To be removed once Automake 1.9.x
2885 # dies out for good. For more background, see:
2886 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2887 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2888 mkdir_p='$(MKDIR_P)'
2889
2890 # We need awk for the "check" target (and possibly the TAP driver). The
2891 # system "awk" is bad on some platforms.
2892 # Always define AMTAR for backward compatibility. Yes, it's still used
2893 # in the wild :-( We should find a proper way to deprecate it ...
2894 AMTAR='$${TAR-tar}'
2895
2896
2897 # We'll loop over all known methods to create a tar archive until one works.
2898 _am_tools='gnutar pax cpio none'
2899
2900 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2901
2902
2903
2904
2905
2906
2907 # POSIX will say in a future version that running "rm -f" with no argument
2908 # is OK; and we want to be able to make that assumption in our Makefile
2909 # recipes. So use an aggressive probe to check that the usage we want is
2910 # actually supported "in the wild" to an acceptable degree.
2911 # See automake bug#10828.
2912 # To make any issue more visible, cause the running configure to be aborted
2913 # by default if the 'rm' program in use doesn't match our expectations; the
2914 # user can still override this though.
2915 if rm -f && rm -fr && rm -rf; then : OK; else
2916 cat >&2 <<'END'
2917 Oops!
2918
2919 Your 'rm' program seems unable to run without file operands specified
2920 on the command line, even when the '-f' option is present. This is contrary
2921 to the behaviour of most rm programs out there, and not conforming with
2922 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2923
2924 Please tell bug-automake@gnu.org about your system, including the value
2925 of your $PATH and any error possibly output before this message. This
2926 can help us improve future automake versions.
2927
2928 END
2929 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2930 echo 'Configuration will proceed anyway, since you have set the' >&2
2931 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2932 echo >&2
2933 else
2934 cat >&2 <<'END'
2935 Aborting the configuration process, to ensure you take notice of the issue.
2936
2937 You can download and install GNU coreutils to get an 'rm' implementation
2938 that behaves properly: <https://www.gnu.org/software/coreutils/>.
2939
2940 If you want to complete the configuration process using your problematic
2941 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2942 to "yes", and re-run configure.
2943
2944 END
2945 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2946 fi
2947 fi
2948
2949
2950 # Initialize libtool
2951 case `pwd` in
2952 *\ * | *\ *)
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2954 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2955 esac
2956
2957
2958
2959 macro_version='2.4.6'
2960 macro_revision='2.4.6'
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974 ltmain=$ac_aux_dir/ltmain.sh
2975
2976 # Make sure we can run config.sub.
2977 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2978 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2979
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2981 $as_echo_n "checking build system type... " >&6; }
2982 if ${ac_cv_build+:} false; then :
2983 $as_echo_n "(cached) " >&6
2984 else
2985 ac_build_alias=$build_alias
2986 test "x$ac_build_alias" = x &&
2987 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2988 test "x$ac_build_alias" = x &&
2989 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2990 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2991 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2992
2993 fi
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2995 $as_echo "$ac_cv_build" >&6; }
2996 case $ac_cv_build in
2997 *-*-*) ;;
2998 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2999 esac
3000 build=$ac_cv_build
3001 ac_save_IFS=$IFS; IFS='-'
3002 set x $ac_cv_build
3003 shift
3004 build_cpu=$1
3005 build_vendor=$2
3006 shift; shift
3007 # Remember, the first character of IFS is used to create $*,
3008 # except with old shells:
3009 build_os=$*
3010 IFS=$ac_save_IFS
3011 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3012
3013
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3015 $as_echo_n "checking host system type... " >&6; }
3016 if ${ac_cv_host+:} false; then :
3017 $as_echo_n "(cached) " >&6
3018 else
3019 if test "x$host_alias" = x; then
3020 ac_cv_host=$ac_cv_build
3021 else
3022 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3023 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3024 fi
3025
3026 fi
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3028 $as_echo "$ac_cv_host" >&6; }
3029 case $ac_cv_host in
3030 *-*-*) ;;
3031 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3032 esac
3033 host=$ac_cv_host
3034 ac_save_IFS=$IFS; IFS='-'
3035 set x $ac_cv_host
3036 shift
3037 host_cpu=$1
3038 host_vendor=$2
3039 shift; shift
3040 # Remember, the first character of IFS is used to create $*,
3041 # except with old shells:
3042 host_os=$*
3043 IFS=$ac_save_IFS
3044 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3045
3046
3047 # Backslashify metacharacters that are still active within
3048 # double-quoted strings.
3049 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3050
3051 # Same as above, but do not quote variable references.
3052 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3053
3054 # Sed substitution to delay expansion of an escaped shell variable in a
3055 # double_quote_subst'ed string.
3056 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3057
3058 # Sed substitution to delay expansion of an escaped single quote.
3059 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3060
3061 # Sed substitution to avoid accidental globbing in evaled expressions
3062 no_glob_subst='s/\*/\\\*/g'
3063
3064 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3065 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3066 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3067
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3069 $as_echo_n "checking how to print strings... " >&6; }
3070 # Test print first, because it will be a builtin if present.
3071 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3072 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3073 ECHO='print -r --'
3074 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3075 ECHO='printf %s\n'
3076 else
3077 # Use this function as a fallback that always works.
3078 func_fallback_echo ()
3079 {
3080 eval 'cat <<_LTECHO_EOF
3081 $1
3082 _LTECHO_EOF'
3083 }
3084 ECHO='func_fallback_echo'
3085 fi
3086
3087 # func_echo_all arg...
3088 # Invoke $ECHO with all args, space-separated.
3089 func_echo_all ()
3090 {
3091 $ECHO ""
3092 }
3093
3094 case $ECHO in
3095 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3096 $as_echo "printf" >&6; } ;;
3097 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3098 $as_echo "print -r" >&6; } ;;
3099 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3100 $as_echo "cat" >&6; } ;;
3101 esac
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116 DEPDIR="${am__leading_dot}deps"
3117
3118 ac_config_commands="$ac_config_commands depfiles"
3119
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3121 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3122 cat > confinc.mk << 'END'
3123 am__doit:
3124 @echo this is the am__doit target >confinc.out
3125 .PHONY: am__doit
3126 END
3127 am__include="#"
3128 am__quote=
3129 # BSD make does it like this.
3130 echo '.include "confinc.mk" # ignored' > confmf.BSD
3131 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3132 echo 'include confinc.mk # ignored' > confmf.GNU
3133 _am_result=no
3134 for s in GNU BSD; do
3135 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3136 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3137 ac_status=$?
3138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139 (exit $ac_status); }
3140 case $?:`cat confinc.out 2>/dev/null` in #(
3141 '0:this is the am__doit target') :
3142 case $s in #(
3143 BSD) :
3144 am__include='.include' am__quote='"' ;; #(
3145 *) :
3146 am__include='include' am__quote='' ;;
3147 esac ;; #(
3148 *) :
3149 ;;
3150 esac
3151 if test "$am__include" != "#"; then
3152 _am_result="yes ($s style)"
3153 break
3154 fi
3155 done
3156 rm -f confinc.* confmf.*
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3158 $as_echo "${_am_result}" >&6; }
3159
3160 # Check whether --enable-dependency-tracking was given.
3161 if test "${enable_dependency_tracking+set}" = set; then :
3162 enableval=$enable_dependency_tracking;
3163 fi
3164
3165 if test "x$enable_dependency_tracking" != xno; then
3166 am_depcomp="$ac_aux_dir/depcomp"
3167 AMDEPBACKSLASH='\'
3168 am__nodep='_no'
3169 fi
3170 if test "x$enable_dependency_tracking" != xno; then
3171 AMDEP_TRUE=
3172 AMDEP_FALSE='#'
3173 else
3174 AMDEP_TRUE='#'
3175 AMDEP_FALSE=
3176 fi
3177
3178
3179 ac_ext=c
3180 ac_cpp='$CPP $CPPFLAGS'
3181 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3182 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3183 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3184 if test -n "$ac_tool_prefix"; then
3185 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3186 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3188 $as_echo_n "checking for $ac_word... " >&6; }
3189 if ${ac_cv_prog_CC+:} false; then :
3190 $as_echo_n "(cached) " >&6
3191 else
3192 if test -n "$CC"; then
3193 ac_cv_prog_CC="$CC" # Let the user override the test.
3194 else
3195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3196 for as_dir in $PATH
3197 do
3198 IFS=$as_save_IFS
3199 test -z "$as_dir" && as_dir=.
3200 for ac_exec_ext in '' $ac_executable_extensions; do
3201 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3202 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3204 break 2
3205 fi
3206 done
3207 done
3208 IFS=$as_save_IFS
3209
3210 fi
3211 fi
3212 CC=$ac_cv_prog_CC
3213 if test -n "$CC"; then
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3215 $as_echo "$CC" >&6; }
3216 else
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3218 $as_echo "no" >&6; }
3219 fi
3220
3221
3222 fi
3223 if test -z "$ac_cv_prog_CC"; then
3224 ac_ct_CC=$CC
3225 # Extract the first word of "gcc", so it can be a program name with args.
3226 set dummy gcc; ac_word=$2
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3228 $as_echo_n "checking for $ac_word... " >&6; }
3229 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3230 $as_echo_n "(cached) " >&6
3231 else
3232 if test -n "$ac_ct_CC"; then
3233 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3234 else
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 ac_cv_prog_ac_ct_CC="gcc"
3243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3244 break 2
3245 fi
3246 done
3247 done
3248 IFS=$as_save_IFS
3249
3250 fi
3251 fi
3252 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3253 if test -n "$ac_ct_CC"; then
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3255 $as_echo "$ac_ct_CC" >&6; }
3256 else
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3258 $as_echo "no" >&6; }
3259 fi
3260
3261 if test "x$ac_ct_CC" = x; then
3262 CC=""
3263 else
3264 case $cross_compiling:$ac_tool_warned in
3265 yes:)
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3267 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3268 ac_tool_warned=yes ;;
3269 esac
3270 CC=$ac_ct_CC
3271 fi
3272 else
3273 CC="$ac_cv_prog_CC"
3274 fi
3275
3276 if test -z "$CC"; then
3277 if test -n "$ac_tool_prefix"; then
3278 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3279 set dummy ${ac_tool_prefix}cc; ac_word=$2
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3281 $as_echo_n "checking for $ac_word... " >&6; }
3282 if ${ac_cv_prog_CC+:} false; then :
3283 $as_echo_n "(cached) " >&6
3284 else
3285 if test -n "$CC"; then
3286 ac_cv_prog_CC="$CC" # Let the user override the test.
3287 else
3288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3289 for as_dir in $PATH
3290 do
3291 IFS=$as_save_IFS
3292 test -z "$as_dir" && as_dir=.
3293 for ac_exec_ext in '' $ac_executable_extensions; do
3294 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3295 ac_cv_prog_CC="${ac_tool_prefix}cc"
3296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3297 break 2
3298 fi
3299 done
3300 done
3301 IFS=$as_save_IFS
3302
3303 fi
3304 fi
3305 CC=$ac_cv_prog_CC
3306 if test -n "$CC"; then
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3308 $as_echo "$CC" >&6; }
3309 else
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3311 $as_echo "no" >&6; }
3312 fi
3313
3314
3315 fi
3316 fi
3317 if test -z "$CC"; then
3318 # Extract the first word of "cc", so it can be a program name with args.
3319 set dummy cc; ac_word=$2
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3321 $as_echo_n "checking for $ac_word... " >&6; }
3322 if ${ac_cv_prog_CC+:} false; then :
3323 $as_echo_n "(cached) " >&6
3324 else
3325 if test -n "$CC"; then
3326 ac_cv_prog_CC="$CC" # Let the user override the test.
3327 else
3328 ac_prog_rejected=no
3329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3330 for as_dir in $PATH
3331 do
3332 IFS=$as_save_IFS
3333 test -z "$as_dir" && as_dir=.
3334 for ac_exec_ext in '' $ac_executable_extensions; do
3335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3336 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3337 ac_prog_rejected=yes
3338 continue
3339 fi
3340 ac_cv_prog_CC="cc"
3341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3342 break 2
3343 fi
3344 done
3345 done
3346 IFS=$as_save_IFS
3347
3348 if test $ac_prog_rejected = yes; then
3349 # We found a bogon in the path, so make sure we never use it.
3350 set dummy $ac_cv_prog_CC
3351 shift
3352 if test $# != 0; then
3353 # We chose a different compiler from the bogus one.
3354 # However, it has the same basename, so the bogon will be chosen
3355 # first if we set CC to just the basename; use the full file name.
3356 shift
3357 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3358 fi
3359 fi
3360 fi
3361 fi
3362 CC=$ac_cv_prog_CC
3363 if test -n "$CC"; then
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3365 $as_echo "$CC" >&6; }
3366 else
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3368 $as_echo "no" >&6; }
3369 fi
3370
3371
3372 fi
3373 if test -z "$CC"; then
3374 if test -n "$ac_tool_prefix"; then
3375 for ac_prog in cl.exe
3376 do
3377 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3378 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3380 $as_echo_n "checking for $ac_word... " >&6; }
3381 if ${ac_cv_prog_CC+:} false; then :
3382 $as_echo_n "(cached) " >&6
3383 else
3384 if test -n "$CC"; then
3385 ac_cv_prog_CC="$CC" # Let the user override the test.
3386 else
3387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3388 for as_dir in $PATH
3389 do
3390 IFS=$as_save_IFS
3391 test -z "$as_dir" && as_dir=.
3392 for ac_exec_ext in '' $ac_executable_extensions; do
3393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3394 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3396 break 2
3397 fi
3398 done
3399 done
3400 IFS=$as_save_IFS
3401
3402 fi
3403 fi
3404 CC=$ac_cv_prog_CC
3405 if test -n "$CC"; then
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3407 $as_echo "$CC" >&6; }
3408 else
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3410 $as_echo "no" >&6; }
3411 fi
3412
3413
3414 test -n "$CC" && break
3415 done
3416 fi
3417 if test -z "$CC"; then
3418 ac_ct_CC=$CC
3419 for ac_prog in cl.exe
3420 do
3421 # Extract the first word of "$ac_prog", so it can be a program name with args.
3422 set dummy $ac_prog; ac_word=$2
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3424 $as_echo_n "checking for $ac_word... " >&6; }
3425 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3426 $as_echo_n "(cached) " >&6
3427 else
3428 if test -n "$ac_ct_CC"; then
3429 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3430 else
3431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3432 for as_dir in $PATH
3433 do
3434 IFS=$as_save_IFS
3435 test -z "$as_dir" && as_dir=.
3436 for ac_exec_ext in '' $ac_executable_extensions; do
3437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3438 ac_cv_prog_ac_ct_CC="$ac_prog"
3439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3440 break 2
3441 fi
3442 done
3443 done
3444 IFS=$as_save_IFS
3445
3446 fi
3447 fi
3448 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3449 if test -n "$ac_ct_CC"; then
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3451 $as_echo "$ac_ct_CC" >&6; }
3452 else
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3454 $as_echo "no" >&6; }
3455 fi
3456
3457
3458 test -n "$ac_ct_CC" && break
3459 done
3460
3461 if test "x$ac_ct_CC" = x; then
3462 CC=""
3463 else
3464 case $cross_compiling:$ac_tool_warned in
3465 yes:)
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3467 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3468 ac_tool_warned=yes ;;
3469 esac
3470 CC=$ac_ct_CC
3471 fi
3472 fi
3473
3474 fi
3475
3476
3477 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3478 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3479 as_fn_error $? "no acceptable C compiler found in \$PATH
3480 See \`config.log' for more details" "$LINENO" 5; }
3481
3482 # Provide some information about the compiler.
3483 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3484 set X $ac_compile
3485 ac_compiler=$2
3486 for ac_option in --version -v -V -qversion; do
3487 { { ac_try="$ac_compiler $ac_option >&5"
3488 case "(($ac_try" in
3489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3490 *) ac_try_echo=$ac_try;;
3491 esac
3492 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3493 $as_echo "$ac_try_echo"; } >&5
3494 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3495 ac_status=$?
3496 if test -s conftest.err; then
3497 sed '10a\
3498 ... rest of stderr output deleted ...
3499 10q' conftest.err >conftest.er1
3500 cat conftest.er1 >&5
3501 fi
3502 rm -f conftest.er1 conftest.err
3503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3504 test $ac_status = 0; }
3505 done
3506
3507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3508 /* end confdefs.h. */
3509
3510 int
3511 main ()
3512 {
3513
3514 ;
3515 return 0;
3516 }
3517 _ACEOF
3518 ac_clean_files_save=$ac_clean_files
3519 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3520 # Try to create an executable without -o first, disregard a.out.
3521 # It will help us diagnose broken compilers, and finding out an intuition
3522 # of exeext.
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3524 $as_echo_n "checking whether the C compiler works... " >&6; }
3525 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3526
3527 # The possible output files:
3528 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3529
3530 ac_rmfiles=
3531 for ac_file in $ac_files
3532 do
3533 case $ac_file in
3534 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3535 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3536 esac
3537 done
3538 rm -f $ac_rmfiles
3539
3540 if { { ac_try="$ac_link_default"
3541 case "(($ac_try" in
3542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3543 *) ac_try_echo=$ac_try;;
3544 esac
3545 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3546 $as_echo "$ac_try_echo"; } >&5
3547 (eval "$ac_link_default") 2>&5
3548 ac_status=$?
3549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3550 test $ac_status = 0; }; then :
3551 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3552 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3553 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3554 # so that the user can short-circuit this test for compilers unknown to
3555 # Autoconf.
3556 for ac_file in $ac_files ''
3557 do
3558 test -f "$ac_file" || continue
3559 case $ac_file in
3560 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3561 ;;
3562 [ab].out )
3563 # We found the default executable, but exeext='' is most
3564 # certainly right.
3565 break;;
3566 *.* )
3567 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3568 then :; else
3569 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3570 fi
3571 # We set ac_cv_exeext here because the later test for it is not
3572 # safe: cross compilers may not add the suffix if given an `-o'
3573 # argument, so we may need to know it at that point already.
3574 # Even if this section looks crufty: it has the advantage of
3575 # actually working.
3576 break;;
3577 * )
3578 break;;
3579 esac
3580 done
3581 test "$ac_cv_exeext" = no && ac_cv_exeext=
3582
3583 else
3584 ac_file=''
3585 fi
3586 if test -z "$ac_file"; then :
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3588 $as_echo "no" >&6; }
3589 $as_echo "$as_me: failed program was:" >&5
3590 sed 's/^/| /' conftest.$ac_ext >&5
3591
3592 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3593 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3594 as_fn_error 77 "C compiler cannot create executables
3595 See \`config.log' for more details" "$LINENO" 5; }
3596 else
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3598 $as_echo "yes" >&6; }
3599 fi
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3601 $as_echo_n "checking for C compiler default output file name... " >&6; }
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3603 $as_echo "$ac_file" >&6; }
3604 ac_exeext=$ac_cv_exeext
3605
3606 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3607 ac_clean_files=$ac_clean_files_save
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3609 $as_echo_n "checking for suffix of executables... " >&6; }
3610 if { { ac_try="$ac_link"
3611 case "(($ac_try" in
3612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3613 *) ac_try_echo=$ac_try;;
3614 esac
3615 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3616 $as_echo "$ac_try_echo"; } >&5
3617 (eval "$ac_link") 2>&5
3618 ac_status=$?
3619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3620 test $ac_status = 0; }; then :
3621 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3622 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3623 # work properly (i.e., refer to `conftest.exe'), while it won't with
3624 # `rm'.
3625 for ac_file in conftest.exe conftest conftest.*; do
3626 test -f "$ac_file" || continue
3627 case $ac_file in
3628 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3629 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3630 break;;
3631 * ) break;;
3632 esac
3633 done
3634 else
3635 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3636 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3637 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3638 See \`config.log' for more details" "$LINENO" 5; }
3639 fi
3640 rm -f conftest conftest$ac_cv_exeext
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3642 $as_echo "$ac_cv_exeext" >&6; }
3643
3644 rm -f conftest.$ac_ext
3645 EXEEXT=$ac_cv_exeext
3646 ac_exeext=$EXEEXT
3647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3648 /* end confdefs.h. */
3649 #include <stdio.h>
3650 int
3651 main ()
3652 {
3653 FILE *f = fopen ("conftest.out", "w");
3654 return ferror (f) || fclose (f) != 0;
3655
3656 ;
3657 return 0;
3658 }
3659 _ACEOF
3660 ac_clean_files="$ac_clean_files conftest.out"
3661 # Check that the compiler produces executables we can run. If not, either
3662 # the compiler is broken, or we cross compile.
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3664 $as_echo_n "checking whether we are cross compiling... " >&6; }
3665 if test "$cross_compiling" != yes; then
3666 { { ac_try="$ac_link"
3667 case "(($ac_try" in
3668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3669 *) ac_try_echo=$ac_try;;
3670 esac
3671 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3672 $as_echo "$ac_try_echo"; } >&5
3673 (eval "$ac_link") 2>&5
3674 ac_status=$?
3675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3676 test $ac_status = 0; }
3677 if { ac_try='./conftest$ac_cv_exeext'
3678 { { case "(($ac_try" in
3679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3680 *) ac_try_echo=$ac_try;;
3681 esac
3682 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3683 $as_echo "$ac_try_echo"; } >&5
3684 (eval "$ac_try") 2>&5
3685 ac_status=$?
3686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3687 test $ac_status = 0; }; }; then
3688 cross_compiling=no
3689 else
3690 if test "$cross_compiling" = maybe; then
3691 cross_compiling=yes
3692 else
3693 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3694 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3695 as_fn_error $? "cannot run C compiled programs.
3696 If you meant to cross compile, use \`--host'.
3697 See \`config.log' for more details" "$LINENO" 5; }
3698 fi
3699 fi
3700 fi
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3702 $as_echo "$cross_compiling" >&6; }
3703
3704 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3705 ac_clean_files=$ac_clean_files_save
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3707 $as_echo_n "checking for suffix of object files... " >&6; }
3708 if ${ac_cv_objext+:} false; then :
3709 $as_echo_n "(cached) " >&6
3710 else
3711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3712 /* end confdefs.h. */
3713
3714 int
3715 main ()
3716 {
3717
3718 ;
3719 return 0;
3720 }
3721 _ACEOF
3722 rm -f conftest.o conftest.obj
3723 if { { ac_try="$ac_compile"
3724 case "(($ac_try" in
3725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3726 *) ac_try_echo=$ac_try;;
3727 esac
3728 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3729 $as_echo "$ac_try_echo"; } >&5
3730 (eval "$ac_compile") 2>&5
3731 ac_status=$?
3732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3733 test $ac_status = 0; }; then :
3734 for ac_file in conftest.o conftest.obj conftest.*; do
3735 test -f "$ac_file" || continue;
3736 case $ac_file in
3737 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3738 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3739 break;;
3740 esac
3741 done
3742 else
3743 $as_echo "$as_me: failed program was:" >&5
3744 sed 's/^/| /' conftest.$ac_ext >&5
3745
3746 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3747 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3748 as_fn_error $? "cannot compute suffix of object files: cannot compile
3749 See \`config.log' for more details" "$LINENO" 5; }
3750 fi
3751 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3752 fi
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3754 $as_echo "$ac_cv_objext" >&6; }
3755 OBJEXT=$ac_cv_objext
3756 ac_objext=$OBJEXT
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3758 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3759 if ${ac_cv_c_compiler_gnu+:} false; then :
3760 $as_echo_n "(cached) " >&6
3761 else
3762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3763 /* end confdefs.h. */
3764
3765 int
3766 main ()
3767 {
3768 #ifndef __GNUC__
3769 choke me
3770 #endif
3771
3772 ;
3773 return 0;
3774 }
3775 _ACEOF
3776 if ac_fn_c_try_compile "$LINENO"; then :
3777 ac_compiler_gnu=yes
3778 else
3779 ac_compiler_gnu=no
3780 fi
3781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3782 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3783
3784 fi
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3786 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3787 if test $ac_compiler_gnu = yes; then
3788 GCC=yes
3789 else
3790 GCC=
3791 fi
3792 ac_test_CFLAGS=${CFLAGS+set}
3793 ac_save_CFLAGS=$CFLAGS
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3795 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3796 if ${ac_cv_prog_cc_g+:} false; then :
3797 $as_echo_n "(cached) " >&6
3798 else
3799 ac_save_c_werror_flag=$ac_c_werror_flag
3800 ac_c_werror_flag=yes
3801 ac_cv_prog_cc_g=no
3802 CFLAGS="-g"
3803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3804 /* end confdefs.h. */
3805
3806 int
3807 main ()
3808 {
3809
3810 ;
3811 return 0;
3812 }
3813 _ACEOF
3814 if ac_fn_c_try_compile "$LINENO"; then :
3815 ac_cv_prog_cc_g=yes
3816 else
3817 CFLAGS=""
3818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3819 /* end confdefs.h. */
3820
3821 int
3822 main ()
3823 {
3824
3825 ;
3826 return 0;
3827 }
3828 _ACEOF
3829 if ac_fn_c_try_compile "$LINENO"; then :
3830
3831 else
3832 ac_c_werror_flag=$ac_save_c_werror_flag
3833 CFLAGS="-g"
3834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3835 /* end confdefs.h. */
3836
3837 int
3838 main ()
3839 {
3840
3841 ;
3842 return 0;
3843 }
3844 _ACEOF
3845 if ac_fn_c_try_compile "$LINENO"; then :
3846 ac_cv_prog_cc_g=yes
3847 fi
3848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3849 fi
3850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3851 fi
3852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3853 ac_c_werror_flag=$ac_save_c_werror_flag
3854 fi
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3856 $as_echo "$ac_cv_prog_cc_g" >&6; }
3857 if test "$ac_test_CFLAGS" = set; then
3858 CFLAGS=$ac_save_CFLAGS
3859 elif test $ac_cv_prog_cc_g = yes; then
3860 if test "$GCC" = yes; then
3861 CFLAGS="-g -O2"
3862 else
3863 CFLAGS="-g"
3864 fi
3865 else
3866 if test "$GCC" = yes; then
3867 CFLAGS="-O2"
3868 else
3869 CFLAGS=
3870 fi
3871 fi
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3873 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3874 if ${ac_cv_prog_cc_c89+:} false; then :
3875 $as_echo_n "(cached) " >&6
3876 else
3877 ac_cv_prog_cc_c89=no
3878 ac_save_CC=$CC
3879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3880 /* end confdefs.h. */
3881 #include <stdarg.h>
3882 #include <stdio.h>
3883 struct stat;
3884 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3885 struct buf { int x; };
3886 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3887 static char *e (p, i)
3888 char **p;
3889 int i;
3890 {
3891 return p[i];
3892 }
3893 static char *f (char * (*g) (char **, int), char **p, ...)
3894 {
3895 char *s;
3896 va_list v;
3897 va_start (v,p);
3898 s = g (p, va_arg (v,int));
3899 va_end (v);
3900 return s;
3901 }
3902
3903 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3904 function prototypes and stuff, but not '\xHH' hex character constants.
3905 These don't provoke an error unfortunately, instead are silently treated
3906 as 'x'. The following induces an error, until -std is added to get
3907 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3908 array size at least. It's necessary to write '\x00'==0 to get something
3909 that's true only with -std. */
3910 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3911
3912 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3913 inside strings and character constants. */
3914 #define FOO(x) 'x'
3915 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3916
3917 int test (int i, double x);
3918 struct s1 {int (*f) (int a);};
3919 struct s2 {int (*f) (double a);};
3920 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3921 int argc;
3922 char **argv;
3923 int
3924 main ()
3925 {
3926 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3927 ;
3928 return 0;
3929 }
3930 _ACEOF
3931 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3932 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3933 do
3934 CC="$ac_save_CC $ac_arg"
3935 if ac_fn_c_try_compile "$LINENO"; then :
3936 ac_cv_prog_cc_c89=$ac_arg
3937 fi
3938 rm -f core conftest.err conftest.$ac_objext
3939 test "x$ac_cv_prog_cc_c89" != "xno" && break
3940 done
3941 rm -f conftest.$ac_ext
3942 CC=$ac_save_CC
3943
3944 fi
3945 # AC_CACHE_VAL
3946 case "x$ac_cv_prog_cc_c89" in
3947 x)
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3949 $as_echo "none needed" >&6; } ;;
3950 xno)
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3952 $as_echo "unsupported" >&6; } ;;
3953 *)
3954 CC="$CC $ac_cv_prog_cc_c89"
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3956 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3957 esac
3958 if test "x$ac_cv_prog_cc_c89" != xno; then :
3959
3960 fi
3961
3962 ac_ext=c
3963 ac_cpp='$CPP $CPPFLAGS'
3964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3967
3968 ac_ext=c
3969 ac_cpp='$CPP $CPPFLAGS'
3970 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3971 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3972 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3974 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3975 if ${am_cv_prog_cc_c_o+:} false; then :
3976 $as_echo_n "(cached) " >&6
3977 else
3978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3979 /* end confdefs.h. */
3980
3981 int
3982 main ()
3983 {
3984
3985 ;
3986 return 0;
3987 }
3988 _ACEOF
3989 # Make sure it works both with $CC and with simple cc.
3990 # Following AC_PROG_CC_C_O, we do the test twice because some
3991 # compilers refuse to overwrite an existing .o file with -o,
3992 # though they will create one.
3993 am_cv_prog_cc_c_o=yes
3994 for am_i in 1 2; do
3995 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3996 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3997 ac_status=$?
3998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3999 (exit $ac_status); } \
4000 && test -f conftest2.$ac_objext; then
4001 : OK
4002 else
4003 am_cv_prog_cc_c_o=no
4004 break
4005 fi
4006 done
4007 rm -f core conftest*
4008 unset am_i
4009 fi
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4011 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4012 if test "$am_cv_prog_cc_c_o" != yes; then
4013 # Losing compiler, so override with the script.
4014 # FIXME: It is wrong to rewrite CC.
4015 # But if we don't then we get into trouble of one sort or another.
4016 # A longer-term fix would be to have automake use am__CC in this case,
4017 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4018 CC="$am_aux_dir/compile $CC"
4019 fi
4020 ac_ext=c
4021 ac_cpp='$CPP $CPPFLAGS'
4022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4025
4026
4027 depcc="$CC" am_compiler_list=
4028
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4030 $as_echo_n "checking dependency style of $depcc... " >&6; }
4031 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4032 $as_echo_n "(cached) " >&6
4033 else
4034 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4035 # We make a subdir and do the tests there. Otherwise we can end up
4036 # making bogus files that we don't know about and never remove. For
4037 # instance it was reported that on HP-UX the gcc test will end up
4038 # making a dummy file named 'D' -- because '-MD' means "put the output
4039 # in D".
4040 rm -rf conftest.dir
4041 mkdir conftest.dir
4042 # Copy depcomp to subdir because otherwise we won't find it if we're
4043 # using a relative directory.
4044 cp "$am_depcomp" conftest.dir
4045 cd conftest.dir
4046 # We will build objects and dependencies in a subdirectory because
4047 # it helps to detect inapplicable dependency modes. For instance
4048 # both Tru64's cc and ICC support -MD to output dependencies as a
4049 # side effect of compilation, but ICC will put the dependencies in
4050 # the current directory while Tru64 will put them in the object
4051 # directory.
4052 mkdir sub
4053
4054 am_cv_CC_dependencies_compiler_type=none
4055 if test "$am_compiler_list" = ""; then
4056 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4057 fi
4058 am__universal=false
4059 case " $depcc " in #(
4060 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4061 esac
4062
4063 for depmode in $am_compiler_list; do
4064 # Setup a source with many dependencies, because some compilers
4065 # like to wrap large dependency lists on column 80 (with \), and
4066 # we should not choose a depcomp mode which is confused by this.
4067 #
4068 # We need to recreate these files for each test, as the compiler may
4069 # overwrite some of them when testing with obscure command lines.
4070 # This happens at least with the AIX C compiler.
4071 : > sub/conftest.c
4072 for i in 1 2 3 4 5 6; do
4073 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4074 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4075 # Solaris 10 /bin/sh.
4076 echo '/* dummy */' > sub/conftst$i.h
4077 done
4078 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4079
4080 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4081 # mode. It turns out that the SunPro C++ compiler does not properly
4082 # handle '-M -o', and we need to detect this. Also, some Intel
4083 # versions had trouble with output in subdirs.
4084 am__obj=sub/conftest.${OBJEXT-o}
4085 am__minus_obj="-o $am__obj"
4086 case $depmode in
4087 gcc)
4088 # This depmode causes a compiler race in universal mode.
4089 test "$am__universal" = false || continue
4090 ;;
4091 nosideeffect)
4092 # After this tag, mechanisms are not by side-effect, so they'll
4093 # only be used when explicitly requested.
4094 if test "x$enable_dependency_tracking" = xyes; then
4095 continue
4096 else
4097 break
4098 fi
4099 ;;
4100 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4101 # This compiler won't grok '-c -o', but also, the minuso test has
4102 # not run yet. These depmodes are late enough in the game, and
4103 # so weak that their functioning should not be impacted.
4104 am__obj=conftest.${OBJEXT-o}
4105 am__minus_obj=
4106 ;;
4107 none) break ;;
4108 esac
4109 if depmode=$depmode \
4110 source=sub/conftest.c object=$am__obj \
4111 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4112 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4113 >/dev/null 2>conftest.err &&
4114 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4115 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4116 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4117 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4118 # icc doesn't choke on unknown options, it will just issue warnings
4119 # or remarks (even with -Werror). So we grep stderr for any message
4120 # that says an option was ignored or not supported.
4121 # When given -MP, icc 7.0 and 7.1 complain thusly:
4122 # icc: Command line warning: ignoring option '-M'; no argument required
4123 # The diagnosis changed in icc 8.0:
4124 # icc: Command line remark: option '-MP' not supported
4125 if (grep 'ignoring option' conftest.err ||
4126 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4127 am_cv_CC_dependencies_compiler_type=$depmode
4128 break
4129 fi
4130 fi
4131 done
4132
4133 cd ..
4134 rm -rf conftest.dir
4135 else
4136 am_cv_CC_dependencies_compiler_type=none
4137 fi
4138
4139 fi
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4141 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4142 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4143
4144 if
4145 test "x$enable_dependency_tracking" != xno \
4146 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4147 am__fastdepCC_TRUE=
4148 am__fastdepCC_FALSE='#'
4149 else
4150 am__fastdepCC_TRUE='#'
4151 am__fastdepCC_FALSE=
4152 fi
4153
4154
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4156 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4157 if ${ac_cv_path_SED+:} false; then :
4158 $as_echo_n "(cached) " >&6
4159 else
4160 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4161 for ac_i in 1 2 3 4 5 6 7; do
4162 ac_script="$ac_script$as_nl$ac_script"
4163 done
4164 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4165 { ac_script=; unset ac_script;}
4166 if test -z "$SED"; then
4167 ac_path_SED_found=false
4168 # Loop through the user's path and test for each of PROGNAME-LIST
4169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4170 for as_dir in $PATH
4171 do
4172 IFS=$as_save_IFS
4173 test -z "$as_dir" && as_dir=.
4174 for ac_prog in sed gsed; do
4175 for ac_exec_ext in '' $ac_executable_extensions; do
4176 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4177 as_fn_executable_p "$ac_path_SED" || continue
4178 # Check for GNU ac_path_SED and select it if it is found.
4179 # Check for GNU $ac_path_SED
4180 case `"$ac_path_SED" --version 2>&1` in
4181 *GNU*)
4182 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4183 *)
4184 ac_count=0
4185 $as_echo_n 0123456789 >"conftest.in"
4186 while :
4187 do
4188 cat "conftest.in" "conftest.in" >"conftest.tmp"
4189 mv "conftest.tmp" "conftest.in"
4190 cp "conftest.in" "conftest.nl"
4191 $as_echo '' >> "conftest.nl"
4192 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4193 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4194 as_fn_arith $ac_count + 1 && ac_count=$as_val
4195 if test $ac_count -gt ${ac_path_SED_max-0}; then
4196 # Best one so far, save it but keep looking for a better one
4197 ac_cv_path_SED="$ac_path_SED"
4198 ac_path_SED_max=$ac_count
4199 fi
4200 # 10*(2^10) chars as input seems more than enough
4201 test $ac_count -gt 10 && break
4202 done
4203 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4204 esac
4205
4206 $ac_path_SED_found && break 3
4207 done
4208 done
4209 done
4210 IFS=$as_save_IFS
4211 if test -z "$ac_cv_path_SED"; then
4212 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4213 fi
4214 else
4215 ac_cv_path_SED=$SED
4216 fi
4217
4218 fi
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4220 $as_echo "$ac_cv_path_SED" >&6; }
4221 SED="$ac_cv_path_SED"
4222 rm -f conftest.sed
4223
4224 test -z "$SED" && SED=sed
4225 Xsed="$SED -e 1s/^X//"
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4238 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4239 if ${ac_cv_path_GREP+:} false; then :
4240 $as_echo_n "(cached) " >&6
4241 else
4242 if test -z "$GREP"; then
4243 ac_path_GREP_found=false
4244 # Loop through the user's path and test for each of PROGNAME-LIST
4245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4246 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4247 do
4248 IFS=$as_save_IFS
4249 test -z "$as_dir" && as_dir=.
4250 for ac_prog in grep ggrep; do
4251 for ac_exec_ext in '' $ac_executable_extensions; do
4252 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4253 as_fn_executable_p "$ac_path_GREP" || continue
4254 # Check for GNU ac_path_GREP and select it if it is found.
4255 # Check for GNU $ac_path_GREP
4256 case `"$ac_path_GREP" --version 2>&1` in
4257 *GNU*)
4258 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4259 *)
4260 ac_count=0
4261 $as_echo_n 0123456789 >"conftest.in"
4262 while :
4263 do
4264 cat "conftest.in" "conftest.in" >"conftest.tmp"
4265 mv "conftest.tmp" "conftest.in"
4266 cp "conftest.in" "conftest.nl"
4267 $as_echo 'GREP' >> "conftest.nl"
4268 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4269 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4270 as_fn_arith $ac_count + 1 && ac_count=$as_val
4271 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4272 # Best one so far, save it but keep looking for a better one
4273 ac_cv_path_GREP="$ac_path_GREP"
4274 ac_path_GREP_max=$ac_count
4275 fi
4276 # 10*(2^10) chars as input seems more than enough
4277 test $ac_count -gt 10 && break
4278 done
4279 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4280 esac
4281
4282 $ac_path_GREP_found && break 3
4283 done
4284 done
4285 done
4286 IFS=$as_save_IFS
4287 if test -z "$ac_cv_path_GREP"; then
4288 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4289 fi
4290 else
4291 ac_cv_path_GREP=$GREP
4292 fi
4293
4294 fi
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4296 $as_echo "$ac_cv_path_GREP" >&6; }
4297 GREP="$ac_cv_path_GREP"
4298
4299
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4301 $as_echo_n "checking for egrep... " >&6; }
4302 if ${ac_cv_path_EGREP+:} false; then :
4303 $as_echo_n "(cached) " >&6
4304 else
4305 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4306 then ac_cv_path_EGREP="$GREP -E"
4307 else
4308 if test -z "$EGREP"; then
4309 ac_path_EGREP_found=false
4310 # Loop through the user's path and test for each of PROGNAME-LIST
4311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4312 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4313 do
4314 IFS=$as_save_IFS
4315 test -z "$as_dir" && as_dir=.
4316 for ac_prog in egrep; do
4317 for ac_exec_ext in '' $ac_executable_extensions; do
4318 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4319 as_fn_executable_p "$ac_path_EGREP" || continue
4320 # Check for GNU ac_path_EGREP and select it if it is found.
4321 # Check for GNU $ac_path_EGREP
4322 case `"$ac_path_EGREP" --version 2>&1` in
4323 *GNU*)
4324 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4325 *)
4326 ac_count=0
4327 $as_echo_n 0123456789 >"conftest.in"
4328 while :
4329 do
4330 cat "conftest.in" "conftest.in" >"conftest.tmp"
4331 mv "conftest.tmp" "conftest.in"
4332 cp "conftest.in" "conftest.nl"
4333 $as_echo 'EGREP' >> "conftest.nl"
4334 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4335 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4336 as_fn_arith $ac_count + 1 && ac_count=$as_val
4337 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4338 # Best one so far, save it but keep looking for a better one
4339 ac_cv_path_EGREP="$ac_path_EGREP"
4340 ac_path_EGREP_max=$ac_count
4341 fi
4342 # 10*(2^10) chars as input seems more than enough
4343 test $ac_count -gt 10 && break
4344 done
4345 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4346 esac
4347
4348 $ac_path_EGREP_found && break 3
4349 done
4350 done
4351 done
4352 IFS=$as_save_IFS
4353 if test -z "$ac_cv_path_EGREP"; then
4354 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4355 fi
4356 else
4357 ac_cv_path_EGREP=$EGREP
4358 fi
4359
4360 fi
4361 fi
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4363 $as_echo "$ac_cv_path_EGREP" >&6; }
4364 EGREP="$ac_cv_path_EGREP"
4365
4366
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4368 $as_echo_n "checking for fgrep... " >&6; }
4369 if ${ac_cv_path_FGREP+:} false; then :
4370 $as_echo_n "(cached) " >&6
4371 else
4372 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4373 then ac_cv_path_FGREP="$GREP -F"
4374 else
4375 if test -z "$FGREP"; then
4376 ac_path_FGREP_found=false
4377 # Loop through the user's path and test for each of PROGNAME-LIST
4378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4379 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4380 do
4381 IFS=$as_save_IFS
4382 test -z "$as_dir" && as_dir=.
4383 for ac_prog in fgrep; do
4384 for ac_exec_ext in '' $ac_executable_extensions; do
4385 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4386 as_fn_executable_p "$ac_path_FGREP" || continue
4387 # Check for GNU ac_path_FGREP and select it if it is found.
4388 # Check for GNU $ac_path_FGREP
4389 case `"$ac_path_FGREP" --version 2>&1` in
4390 *GNU*)
4391 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4392 *)
4393 ac_count=0
4394 $as_echo_n 0123456789 >"conftest.in"
4395 while :
4396 do
4397 cat "conftest.in" "conftest.in" >"conftest.tmp"
4398 mv "conftest.tmp" "conftest.in"
4399 cp "conftest.in" "conftest.nl"
4400 $as_echo 'FGREP' >> "conftest.nl"
4401 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4402 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4403 as_fn_arith $ac_count + 1 && ac_count=$as_val
4404 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4405 # Best one so far, save it but keep looking for a better one
4406 ac_cv_path_FGREP="$ac_path_FGREP"
4407 ac_path_FGREP_max=$ac_count
4408 fi
4409 # 10*(2^10) chars as input seems more than enough
4410 test $ac_count -gt 10 && break
4411 done
4412 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4413 esac
4414
4415 $ac_path_FGREP_found && break 3
4416 done
4417 done
4418 done
4419 IFS=$as_save_IFS
4420 if test -z "$ac_cv_path_FGREP"; then
4421 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4422 fi
4423 else
4424 ac_cv_path_FGREP=$FGREP
4425 fi
4426
4427 fi
4428 fi
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4430 $as_echo "$ac_cv_path_FGREP" >&6; }
4431 FGREP="$ac_cv_path_FGREP"
4432
4433
4434 test -z "$GREP" && GREP=grep
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454 # Check whether --with-gnu-ld was given.
4455 if test "${with_gnu_ld+set}" = set; then :
4456 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4457 else
4458 with_gnu_ld=no
4459 fi
4460
4461 ac_prog=ld
4462 if test yes = "$GCC"; then
4463 # Check if gcc -print-prog-name=ld gives a path.
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4465 $as_echo_n "checking for ld used by $CC... " >&6; }
4466 case $host in
4467 *-*-mingw*)
4468 # gcc leaves a trailing carriage return, which upsets mingw
4469 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4470 *)
4471 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4472 esac
4473 case $ac_prog in
4474 # Accept absolute paths.
4475 [\\/]* | ?:[\\/]*)
4476 re_direlt='/[^/][^/]*/\.\./'
4477 # Canonicalize the pathname of ld
4478 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4479 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4480 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4481 done
4482 test -z "$LD" && LD=$ac_prog
4483 ;;
4484 "")
4485 # If it fails, then pretend we aren't using GCC.
4486 ac_prog=ld
4487 ;;
4488 *)
4489 # If it is relative, then search for the first ld in PATH.
4490 with_gnu_ld=unknown
4491 ;;
4492 esac
4493 elif test yes = "$with_gnu_ld"; then
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4495 $as_echo_n "checking for GNU ld... " >&6; }
4496 else
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4498 $as_echo_n "checking for non-GNU ld... " >&6; }
4499 fi
4500 if ${lt_cv_path_LD+:} false; then :
4501 $as_echo_n "(cached) " >&6
4502 else
4503 if test -z "$LD"; then
4504 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4505 for ac_dir in $PATH; do
4506 IFS=$lt_save_ifs
4507 test -z "$ac_dir" && ac_dir=.
4508 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4509 lt_cv_path_LD=$ac_dir/$ac_prog
4510 # Check to see if the program is GNU ld. I'd rather use --version,
4511 # but apparently some variants of GNU ld only accept -v.
4512 # Break only if it was the GNU/non-GNU ld that we prefer.
4513 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4514 *GNU* | *'with BFD'*)
4515 test no != "$with_gnu_ld" && break
4516 ;;
4517 *)
4518 test yes != "$with_gnu_ld" && break
4519 ;;
4520 esac
4521 fi
4522 done
4523 IFS=$lt_save_ifs
4524 else
4525 lt_cv_path_LD=$LD # Let the user override the test with a path.
4526 fi
4527 fi
4528
4529 LD=$lt_cv_path_LD
4530 if test -n "$LD"; then
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4532 $as_echo "$LD" >&6; }
4533 else
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4535 $as_echo "no" >&6; }
4536 fi
4537 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4539 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4540 if ${lt_cv_prog_gnu_ld+:} false; then :
4541 $as_echo_n "(cached) " >&6
4542 else
4543 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4544 case `$LD -v 2>&1 </dev/null` in
4545 *GNU* | *'with BFD'*)
4546 lt_cv_prog_gnu_ld=yes
4547 ;;
4548 *)
4549 lt_cv_prog_gnu_ld=no
4550 ;;
4551 esac
4552 fi
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4554 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4555 with_gnu_ld=$lt_cv_prog_gnu_ld
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4566 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4567 if ${lt_cv_path_NM+:} false; then :
4568 $as_echo_n "(cached) " >&6
4569 else
4570 if test -n "$NM"; then
4571 # Let the user override the test.
4572 lt_cv_path_NM=$NM
4573 else
4574 lt_nm_to_check=${ac_tool_prefix}nm
4575 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4576 lt_nm_to_check="$lt_nm_to_check nm"
4577 fi
4578 for lt_tmp_nm in $lt_nm_to_check; do
4579 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4580 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4581 IFS=$lt_save_ifs
4582 test -z "$ac_dir" && ac_dir=.
4583 tmp_nm=$ac_dir/$lt_tmp_nm
4584 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4585 # Check to see if the nm accepts a BSD-compat flag.
4586 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4587 # nm: unknown option "B" ignored
4588 # Tru64's nm complains that /dev/null is an invalid object file
4589 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4590 case $build_os in
4591 mingw*) lt_bad_file=conftest.nm/nofile ;;
4592 *) lt_bad_file=/dev/null ;;
4593 esac
4594 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4595 *$lt_bad_file* | *'Invalid file or object type'*)
4596 lt_cv_path_NM="$tmp_nm -B"
4597 break 2
4598 ;;
4599 *)
4600 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4601 */dev/null*)
4602 lt_cv_path_NM="$tmp_nm -p"
4603 break 2
4604 ;;
4605 *)
4606 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4607 continue # so that we can try to find one that supports BSD flags
4608 ;;
4609 esac
4610 ;;
4611 esac
4612 fi
4613 done
4614 IFS=$lt_save_ifs
4615 done
4616 : ${lt_cv_path_NM=no}
4617 fi
4618 fi
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4620 $as_echo "$lt_cv_path_NM" >&6; }
4621 if test no != "$lt_cv_path_NM"; then
4622 NM=$lt_cv_path_NM
4623 else
4624 # Didn't find any BSD compatible name lister, look for dumpbin.
4625 if test -n "$DUMPBIN"; then :
4626 # Let the user override the test.
4627 else
4628 if test -n "$ac_tool_prefix"; then
4629 for ac_prog in dumpbin "link -dump"
4630 do
4631 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4632 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4634 $as_echo_n "checking for $ac_word... " >&6; }
4635 if ${ac_cv_prog_DUMPBIN+:} false; then :
4636 $as_echo_n "(cached) " >&6
4637 else
4638 if test -n "$DUMPBIN"; then
4639 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4640 else
4641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4642 for as_dir in $PATH
4643 do
4644 IFS=$as_save_IFS
4645 test -z "$as_dir" && as_dir=.
4646 for ac_exec_ext in '' $ac_executable_extensions; do
4647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4648 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4650 break 2
4651 fi
4652 done
4653 done
4654 IFS=$as_save_IFS
4655
4656 fi
4657 fi
4658 DUMPBIN=$ac_cv_prog_DUMPBIN
4659 if test -n "$DUMPBIN"; then
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4661 $as_echo "$DUMPBIN" >&6; }
4662 else
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4664 $as_echo "no" >&6; }
4665 fi
4666
4667
4668 test -n "$DUMPBIN" && break
4669 done
4670 fi
4671 if test -z "$DUMPBIN"; then
4672 ac_ct_DUMPBIN=$DUMPBIN
4673 for ac_prog in dumpbin "link -dump"
4674 do
4675 # Extract the first word of "$ac_prog", so it can be a program name with args.
4676 set dummy $ac_prog; ac_word=$2
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4678 $as_echo_n "checking for $ac_word... " >&6; }
4679 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4680 $as_echo_n "(cached) " >&6
4681 else
4682 if test -n "$ac_ct_DUMPBIN"; then
4683 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4684 else
4685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4686 for as_dir in $PATH
4687 do
4688 IFS=$as_save_IFS
4689 test -z "$as_dir" && as_dir=.
4690 for ac_exec_ext in '' $ac_executable_extensions; do
4691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4692 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4694 break 2
4695 fi
4696 done
4697 done
4698 IFS=$as_save_IFS
4699
4700 fi
4701 fi
4702 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4703 if test -n "$ac_ct_DUMPBIN"; then
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4705 $as_echo "$ac_ct_DUMPBIN" >&6; }
4706 else
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4708 $as_echo "no" >&6; }
4709 fi
4710
4711
4712 test -n "$ac_ct_DUMPBIN" && break
4713 done
4714
4715 if test "x$ac_ct_DUMPBIN" = x; then
4716 DUMPBIN=":"
4717 else
4718 case $cross_compiling:$ac_tool_warned in
4719 yes:)
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4721 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4722 ac_tool_warned=yes ;;
4723 esac
4724 DUMPBIN=$ac_ct_DUMPBIN
4725 fi
4726 fi
4727
4728 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4729 *COFF*)
4730 DUMPBIN="$DUMPBIN -symbols -headers"
4731 ;;
4732 *)
4733 DUMPBIN=:
4734 ;;
4735 esac
4736 fi
4737
4738 if test : != "$DUMPBIN"; then
4739 NM=$DUMPBIN
4740 fi
4741 fi
4742 test -z "$NM" && NM=nm
4743
4744
4745
4746
4747
4748
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4750 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4751 if ${lt_cv_nm_interface+:} false; then :
4752 $as_echo_n "(cached) " >&6
4753 else
4754 lt_cv_nm_interface="BSD nm"
4755 echo "int some_variable = 0;" > conftest.$ac_ext
4756 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4757 (eval "$ac_compile" 2>conftest.err)
4758 cat conftest.err >&5
4759 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4760 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4761 cat conftest.err >&5
4762 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4763 cat conftest.out >&5
4764 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4765 lt_cv_nm_interface="MS dumpbin"
4766 fi
4767 rm -f conftest*
4768 fi
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4770 $as_echo "$lt_cv_nm_interface" >&6; }
4771
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4773 $as_echo_n "checking whether ln -s works... " >&6; }
4774 LN_S=$as_ln_s
4775 if test "$LN_S" = "ln -s"; then
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4777 $as_echo "yes" >&6; }
4778 else
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4780 $as_echo "no, using $LN_S" >&6; }
4781 fi
4782
4783 # find the maximum length of command line arguments
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4785 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4786 if ${lt_cv_sys_max_cmd_len+:} false; then :
4787 $as_echo_n "(cached) " >&6
4788 else
4789 i=0
4790 teststring=ABCD
4791
4792 case $build_os in
4793 msdosdjgpp*)
4794 # On DJGPP, this test can blow up pretty badly due to problems in libc
4795 # (any single argument exceeding 2000 bytes causes a buffer overrun
4796 # during glob expansion). Even if it were fixed, the result of this
4797 # check would be larger than it should be.
4798 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4799 ;;
4800
4801 gnu*)
4802 # Under GNU Hurd, this test is not required because there is
4803 # no limit to the length of command line arguments.
4804 # Libtool will interpret -1 as no limit whatsoever
4805 lt_cv_sys_max_cmd_len=-1;
4806 ;;
4807
4808 cygwin* | mingw* | cegcc*)
4809 # On Win9x/ME, this test blows up -- it succeeds, but takes
4810 # about 5 minutes as the teststring grows exponentially.
4811 # Worse, since 9x/ME are not pre-emptively multitasking,
4812 # you end up with a "frozen" computer, even though with patience
4813 # the test eventually succeeds (with a max line length of 256k).
4814 # Instead, let's just punt: use the minimum linelength reported by
4815 # all of the supported platforms: 8192 (on NT/2K/XP).
4816 lt_cv_sys_max_cmd_len=8192;
4817 ;;
4818
4819 mint*)
4820 # On MiNT this can take a long time and run out of memory.
4821 lt_cv_sys_max_cmd_len=8192;
4822 ;;
4823
4824 amigaos*)
4825 # On AmigaOS with pdksh, this test takes hours, literally.
4826 # So we just punt and use a minimum line length of 8192.
4827 lt_cv_sys_max_cmd_len=8192;
4828 ;;
4829
4830 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4831 # This has been around since 386BSD, at least. Likely further.
4832 if test -x /sbin/sysctl; then
4833 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4834 elif test -x /usr/sbin/sysctl; then
4835 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4836 else
4837 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4838 fi
4839 # And add a safety zone
4840 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4841 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4842 ;;
4843
4844 interix*)
4845 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4846 lt_cv_sys_max_cmd_len=196608
4847 ;;
4848
4849 os2*)
4850 # The test takes a long time on OS/2.
4851 lt_cv_sys_max_cmd_len=8192
4852 ;;
4853
4854 osf*)
4855 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4856 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4857 # nice to cause kernel panics so lets avoid the loop below.
4858 # First set a reasonable default.
4859 lt_cv_sys_max_cmd_len=16384
4860 #
4861 if test -x /sbin/sysconfig; then
4862 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4863 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4864 esac
4865 fi
4866 ;;
4867 sco3.2v5*)
4868 lt_cv_sys_max_cmd_len=102400
4869 ;;
4870 sysv5* | sco5v6* | sysv4.2uw2*)
4871 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4872 if test -n "$kargmax"; then
4873 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4874 else
4875 lt_cv_sys_max_cmd_len=32768
4876 fi
4877 ;;
4878 *)
4879 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4880 if test -n "$lt_cv_sys_max_cmd_len" && \
4881 test undefined != "$lt_cv_sys_max_cmd_len"; then
4882 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4883 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4884 else
4885 # Make teststring a little bigger before we do anything with it.
4886 # a 1K string should be a reasonable start.
4887 for i in 1 2 3 4 5 6 7 8; do
4888 teststring=$teststring$teststring
4889 done
4890 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4891 # If test is not a shell built-in, we'll probably end up computing a
4892 # maximum length that is only half of the actual maximum length, but
4893 # we can't tell.
4894 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4895 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4896 test 17 != "$i" # 1/2 MB should be enough
4897 do
4898 i=`expr $i + 1`
4899 teststring=$teststring$teststring
4900 done
4901 # Only check the string length outside the loop.
4902 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4903 teststring=
4904 # Add a significant safety factor because C++ compilers can tack on
4905 # massive amounts of additional arguments before passing them to the
4906 # linker. It appears as though 1/2 is a usable value.
4907 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4908 fi
4909 ;;
4910 esac
4911
4912 fi
4913
4914 if test -n "$lt_cv_sys_max_cmd_len"; then
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4916 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4917 else
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4919 $as_echo "none" >&6; }
4920 fi
4921 max_cmd_len=$lt_cv_sys_max_cmd_len
4922
4923
4924
4925
4926
4927
4928 : ${CP="cp -f"}
4929 : ${MV="mv -f"}
4930 : ${RM="rm -f"}
4931
4932 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4933 lt_unset=unset
4934 else
4935 lt_unset=false
4936 fi
4937
4938
4939
4940
4941
4942 # test EBCDIC or ASCII
4943 case `echo X|tr X '\101'` in
4944 A) # ASCII based system
4945 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4946 lt_SP2NL='tr \040 \012'
4947 lt_NL2SP='tr \015\012 \040\040'
4948 ;;
4949 *) # EBCDIC based system
4950 lt_SP2NL='tr \100 \n'
4951 lt_NL2SP='tr \r\n \100\100'
4952 ;;
4953 esac
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4964 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4965 if ${lt_cv_to_host_file_cmd+:} false; then :
4966 $as_echo_n "(cached) " >&6
4967 else
4968 case $host in
4969 *-*-mingw* )
4970 case $build in
4971 *-*-mingw* ) # actually msys
4972 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4973 ;;
4974 *-*-cygwin* )
4975 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4976 ;;
4977 * ) # otherwise, assume *nix
4978 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4979 ;;
4980 esac
4981 ;;
4982 *-*-cygwin* )
4983 case $build in
4984 *-*-mingw* ) # actually msys
4985 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4986 ;;
4987 *-*-cygwin* )
4988 lt_cv_to_host_file_cmd=func_convert_file_noop
4989 ;;
4990 * ) # otherwise, assume *nix
4991 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4992 ;;
4993 esac
4994 ;;
4995 * ) # unhandled hosts (and "normal" native builds)
4996 lt_cv_to_host_file_cmd=func_convert_file_noop
4997 ;;
4998 esac
4999
5000 fi
5001
5002 to_host_file_cmd=$lt_cv_to_host_file_cmd
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5004 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5005
5006
5007
5008
5009
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5011 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5012 if ${lt_cv_to_tool_file_cmd+:} false; then :
5013 $as_echo_n "(cached) " >&6
5014 else
5015 #assume ordinary cross tools, or native build.
5016 lt_cv_to_tool_file_cmd=func_convert_file_noop
5017 case $host in
5018 *-*-mingw* )
5019 case $build in
5020 *-*-mingw* ) # actually msys
5021 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5022 ;;
5023 esac
5024 ;;
5025 esac
5026
5027 fi
5028
5029 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5031 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5032
5033
5034
5035
5036
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5038 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5039 if ${lt_cv_ld_reload_flag+:} false; then :
5040 $as_echo_n "(cached) " >&6
5041 else
5042 lt_cv_ld_reload_flag='-r'
5043 fi
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5045 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5046 reload_flag=$lt_cv_ld_reload_flag
5047 case $reload_flag in
5048 "" | " "*) ;;
5049 *) reload_flag=" $reload_flag" ;;
5050 esac
5051 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5052 case $host_os in
5053 cygwin* | mingw* | pw32* | cegcc*)
5054 if test yes != "$GCC"; then
5055 reload_cmds=false
5056 fi
5057 ;;
5058 darwin*)
5059 if test yes = "$GCC"; then
5060 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5061 else
5062 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5063 fi
5064 ;;
5065 esac
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075 if test -n "$ac_tool_prefix"; then
5076 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5077 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5079 $as_echo_n "checking for $ac_word... " >&6; }
5080 if ${ac_cv_prog_OBJDUMP+:} false; then :
5081 $as_echo_n "(cached) " >&6
5082 else
5083 if test -n "$OBJDUMP"; then
5084 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5085 else
5086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5087 for as_dir in $PATH
5088 do
5089 IFS=$as_save_IFS
5090 test -z "$as_dir" && as_dir=.
5091 for ac_exec_ext in '' $ac_executable_extensions; do
5092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5093 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5095 break 2
5096 fi
5097 done
5098 done
5099 IFS=$as_save_IFS
5100
5101 fi
5102 fi
5103 OBJDUMP=$ac_cv_prog_OBJDUMP
5104 if test -n "$OBJDUMP"; then
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5106 $as_echo "$OBJDUMP" >&6; }
5107 else
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5109 $as_echo "no" >&6; }
5110 fi
5111
5112
5113 fi
5114 if test -z "$ac_cv_prog_OBJDUMP"; then
5115 ac_ct_OBJDUMP=$OBJDUMP
5116 # Extract the first word of "objdump", so it can be a program name with args.
5117 set dummy objdump; ac_word=$2
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5119 $as_echo_n "checking for $ac_word... " >&6; }
5120 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5121 $as_echo_n "(cached) " >&6
5122 else
5123 if test -n "$ac_ct_OBJDUMP"; then
5124 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5125 else
5126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5127 for as_dir in $PATH
5128 do
5129 IFS=$as_save_IFS
5130 test -z "$as_dir" && as_dir=.
5131 for ac_exec_ext in '' $ac_executable_extensions; do
5132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5133 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5135 break 2
5136 fi
5137 done
5138 done
5139 IFS=$as_save_IFS
5140
5141 fi
5142 fi
5143 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5144 if test -n "$ac_ct_OBJDUMP"; then
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5146 $as_echo "$ac_ct_OBJDUMP" >&6; }
5147 else
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5149 $as_echo "no" >&6; }
5150 fi
5151
5152 if test "x$ac_ct_OBJDUMP" = x; then
5153 OBJDUMP="false"
5154 else
5155 case $cross_compiling:$ac_tool_warned in
5156 yes:)
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5158 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5159 ac_tool_warned=yes ;;
5160 esac
5161 OBJDUMP=$ac_ct_OBJDUMP
5162 fi
5163 else
5164 OBJDUMP="$ac_cv_prog_OBJDUMP"
5165 fi
5166
5167 test -z "$OBJDUMP" && OBJDUMP=objdump
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5178 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5179 if ${lt_cv_deplibs_check_method+:} false; then :
5180 $as_echo_n "(cached) " >&6
5181 else
5182 lt_cv_file_magic_cmd='$MAGIC_CMD'
5183 lt_cv_file_magic_test_file=
5184 lt_cv_deplibs_check_method='unknown'
5185 # Need to set the preceding variable on all platforms that support
5186 # interlibrary dependencies.
5187 # 'none' -- dependencies not supported.
5188 # 'unknown' -- same as none, but documents that we really don't know.
5189 # 'pass_all' -- all dependencies passed with no checks.
5190 # 'test_compile' -- check by making test program.
5191 # 'file_magic [[regex]]' -- check by looking for files in library path
5192 # that responds to the $file_magic_cmd with a given extended regex.
5193 # If you have 'file' or equivalent on your system and you're not sure
5194 # whether 'pass_all' will *always* work, you probably want this one.
5195
5196 case $host_os in
5197 aix[4-9]*)
5198 lt_cv_deplibs_check_method=pass_all
5199 ;;
5200
5201 beos*)
5202 lt_cv_deplibs_check_method=pass_all
5203 ;;
5204
5205 bsdi[45]*)
5206 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5207 lt_cv_file_magic_cmd='/usr/bin/file -L'
5208 lt_cv_file_magic_test_file=/shlib/libc.so
5209 ;;
5210
5211 cygwin*)
5212 # func_win32_libid is a shell function defined in ltmain.sh
5213 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5214 lt_cv_file_magic_cmd='func_win32_libid'
5215 ;;
5216
5217 mingw* | pw32*)
5218 # Base MSYS/MinGW do not provide the 'file' command needed by
5219 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5220 # unless we find 'file', for example because we are cross-compiling.
5221 if ( file / ) >/dev/null 2>&1; then
5222 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5223 lt_cv_file_magic_cmd='func_win32_libid'
5224 else
5225 # Keep this pattern in sync with the one in func_win32_libid.
5226 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5227 lt_cv_file_magic_cmd='$OBJDUMP -f'
5228 fi
5229 ;;
5230
5231 cegcc*)
5232 # use the weaker test based on 'objdump'. See mingw*.
5233 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5234 lt_cv_file_magic_cmd='$OBJDUMP -f'
5235 ;;
5236
5237 darwin* | rhapsody*)
5238 lt_cv_deplibs_check_method=pass_all
5239 ;;
5240
5241 freebsd* | dragonfly*)
5242 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5243 case $host_cpu in
5244 i*86 )
5245 # Not sure whether the presence of OpenBSD here was a mistake.
5246 # Let's accept both of them until this is cleared up.
5247 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5248 lt_cv_file_magic_cmd=/usr/bin/file
5249 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5250 ;;
5251 esac
5252 else
5253 lt_cv_deplibs_check_method=pass_all
5254 fi
5255 ;;
5256
5257 haiku*)
5258 lt_cv_deplibs_check_method=pass_all
5259 ;;
5260
5261 hpux10.20* | hpux11*)
5262 lt_cv_file_magic_cmd=/usr/bin/file
5263 case $host_cpu in
5264 ia64*)
5265 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5266 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5267 ;;
5268 hppa*64*)
5269 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]'
5270 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5271 ;;
5272 *)
5273 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5274 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5275 ;;
5276 esac
5277 ;;
5278
5279 interix[3-9]*)
5280 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5281 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5282 ;;
5283
5284 irix5* | irix6* | nonstopux*)
5285 case $LD in
5286 *-32|*"-32 ") libmagic=32-bit;;
5287 *-n32|*"-n32 ") libmagic=N32;;
5288 *-64|*"-64 ") libmagic=64-bit;;
5289 *) libmagic=never-match;;
5290 esac
5291 lt_cv_deplibs_check_method=pass_all
5292 ;;
5293
5294 # This must be glibc/ELF.
5295 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5296 lt_cv_deplibs_check_method=pass_all
5297 ;;
5298
5299 netbsd*)
5300 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5301 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5302 else
5303 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5304 fi
5305 ;;
5306
5307 newos6*)
5308 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5309 lt_cv_file_magic_cmd=/usr/bin/file
5310 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5311 ;;
5312
5313 *nto* | *qnx*)
5314 lt_cv_deplibs_check_method=pass_all
5315 ;;
5316
5317 openbsd* | bitrig*)
5318 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5319 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5320 else
5321 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5322 fi
5323 ;;
5324
5325 osf3* | osf4* | osf5*)
5326 lt_cv_deplibs_check_method=pass_all
5327 ;;
5328
5329 rdos*)
5330 lt_cv_deplibs_check_method=pass_all
5331 ;;
5332
5333 solaris*)
5334 lt_cv_deplibs_check_method=pass_all
5335 ;;
5336
5337 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5338 lt_cv_deplibs_check_method=pass_all
5339 ;;
5340
5341 sysv4 | sysv4.3*)
5342 case $host_vendor in
5343 motorola)
5344 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]'
5345 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5346 ;;
5347 ncr)
5348 lt_cv_deplibs_check_method=pass_all
5349 ;;
5350 sequent)
5351 lt_cv_file_magic_cmd='/bin/file'
5352 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5353 ;;
5354 sni)
5355 lt_cv_file_magic_cmd='/bin/file'
5356 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5357 lt_cv_file_magic_test_file=/lib/libc.so
5358 ;;
5359 siemens)
5360 lt_cv_deplibs_check_method=pass_all
5361 ;;
5362 pc)
5363 lt_cv_deplibs_check_method=pass_all
5364 ;;
5365 esac
5366 ;;
5367
5368 tpf*)
5369 lt_cv_deplibs_check_method=pass_all
5370 ;;
5371 os2*)
5372 lt_cv_deplibs_check_method=pass_all
5373 ;;
5374 esac
5375
5376 fi
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5378 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5379
5380 file_magic_glob=
5381 want_nocaseglob=no
5382 if test "$build" = "$host"; then
5383 case $host_os in
5384 mingw* | pw32*)
5385 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5386 want_nocaseglob=yes
5387 else
5388 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5389 fi
5390 ;;
5391 esac
5392 fi
5393
5394 file_magic_cmd=$lt_cv_file_magic_cmd
5395 deplibs_check_method=$lt_cv_deplibs_check_method
5396 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419 if test -n "$ac_tool_prefix"; then
5420 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5421 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5423 $as_echo_n "checking for $ac_word... " >&6; }
5424 if ${ac_cv_prog_DLLTOOL+:} false; then :
5425 $as_echo_n "(cached) " >&6
5426 else
5427 if test -n "$DLLTOOL"; then
5428 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5429 else
5430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5431 for as_dir in $PATH
5432 do
5433 IFS=$as_save_IFS
5434 test -z "$as_dir" && as_dir=.
5435 for ac_exec_ext in '' $ac_executable_extensions; do
5436 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5437 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5439 break 2
5440 fi
5441 done
5442 done
5443 IFS=$as_save_IFS
5444
5445 fi
5446 fi
5447 DLLTOOL=$ac_cv_prog_DLLTOOL
5448 if test -n "$DLLTOOL"; then
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5450 $as_echo "$DLLTOOL" >&6; }
5451 else
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5453 $as_echo "no" >&6; }
5454 fi
5455
5456
5457 fi
5458 if test -z "$ac_cv_prog_DLLTOOL"; then
5459 ac_ct_DLLTOOL=$DLLTOOL
5460 # Extract the first word of "dlltool", so it can be a program name with args.
5461 set dummy dlltool; ac_word=$2
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5463 $as_echo_n "checking for $ac_word... " >&6; }
5464 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5465 $as_echo_n "(cached) " >&6
5466 else
5467 if test -n "$ac_ct_DLLTOOL"; then
5468 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5469 else
5470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5471 for as_dir in $PATH
5472 do
5473 IFS=$as_save_IFS
5474 test -z "$as_dir" && as_dir=.
5475 for ac_exec_ext in '' $ac_executable_extensions; do
5476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5477 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5479 break 2
5480 fi
5481 done
5482 done
5483 IFS=$as_save_IFS
5484
5485 fi
5486 fi
5487 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5488 if test -n "$ac_ct_DLLTOOL"; then
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5490 $as_echo "$ac_ct_DLLTOOL" >&6; }
5491 else
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5493 $as_echo "no" >&6; }
5494 fi
5495
5496 if test "x$ac_ct_DLLTOOL" = x; then
5497 DLLTOOL="false"
5498 else
5499 case $cross_compiling:$ac_tool_warned in
5500 yes:)
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5502 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5503 ac_tool_warned=yes ;;
5504 esac
5505 DLLTOOL=$ac_ct_DLLTOOL
5506 fi
5507 else
5508 DLLTOOL="$ac_cv_prog_DLLTOOL"
5509 fi
5510
5511 test -z "$DLLTOOL" && DLLTOOL=dlltool
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5523 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5524 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5525 $as_echo_n "(cached) " >&6
5526 else
5527 lt_cv_sharedlib_from_linklib_cmd='unknown'
5528
5529 case $host_os in
5530 cygwin* | mingw* | pw32* | cegcc*)
5531 # two different shell functions defined in ltmain.sh;
5532 # decide which one to use based on capabilities of $DLLTOOL
5533 case `$DLLTOOL --help 2>&1` in
5534 *--identify-strict*)
5535 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5536 ;;
5537 *)
5538 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5539 ;;
5540 esac
5541 ;;
5542 *)
5543 # fallback: assume linklib IS sharedlib
5544 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5545 ;;
5546 esac
5547
5548 fi
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5550 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5551 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5552 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5553
5554
5555
5556
5557
5558
5559
5560
5561 if test -n "$ac_tool_prefix"; then
5562 for ac_prog in ar
5563 do
5564 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5565 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5567 $as_echo_n "checking for $ac_word... " >&6; }
5568 if ${ac_cv_prog_AR+:} false; then :
5569 $as_echo_n "(cached) " >&6
5570 else
5571 if test -n "$AR"; then
5572 ac_cv_prog_AR="$AR" # Let the user override the test.
5573 else
5574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5575 for as_dir in $PATH
5576 do
5577 IFS=$as_save_IFS
5578 test -z "$as_dir" && as_dir=.
5579 for ac_exec_ext in '' $ac_executable_extensions; do
5580 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5581 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5583 break 2
5584 fi
5585 done
5586 done
5587 IFS=$as_save_IFS
5588
5589 fi
5590 fi
5591 AR=$ac_cv_prog_AR
5592 if test -n "$AR"; then
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5594 $as_echo "$AR" >&6; }
5595 else
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5597 $as_echo "no" >&6; }
5598 fi
5599
5600
5601 test -n "$AR" && break
5602 done
5603 fi
5604 if test -z "$AR"; then
5605 ac_ct_AR=$AR
5606 for ac_prog in ar
5607 do
5608 # Extract the first word of "$ac_prog", so it can be a program name with args.
5609 set dummy $ac_prog; ac_word=$2
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5611 $as_echo_n "checking for $ac_word... " >&6; }
5612 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5613 $as_echo_n "(cached) " >&6
5614 else
5615 if test -n "$ac_ct_AR"; then
5616 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5617 else
5618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5619 for as_dir in $PATH
5620 do
5621 IFS=$as_save_IFS
5622 test -z "$as_dir" && as_dir=.
5623 for ac_exec_ext in '' $ac_executable_extensions; do
5624 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5625 ac_cv_prog_ac_ct_AR="$ac_prog"
5626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5627 break 2
5628 fi
5629 done
5630 done
5631 IFS=$as_save_IFS
5632
5633 fi
5634 fi
5635 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5636 if test -n "$ac_ct_AR"; then
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5638 $as_echo "$ac_ct_AR" >&6; }
5639 else
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5641 $as_echo "no" >&6; }
5642 fi
5643
5644
5645 test -n "$ac_ct_AR" && break
5646 done
5647
5648 if test "x$ac_ct_AR" = x; then
5649 AR="false"
5650 else
5651 case $cross_compiling:$ac_tool_warned in
5652 yes:)
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5654 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5655 ac_tool_warned=yes ;;
5656 esac
5657 AR=$ac_ct_AR
5658 fi
5659 fi
5660
5661 : ${AR=ar}
5662 : ${AR_FLAGS=cru}
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5675 $as_echo_n "checking for archiver @FILE support... " >&6; }
5676 if ${lt_cv_ar_at_file+:} false; then :
5677 $as_echo_n "(cached) " >&6
5678 else
5679 lt_cv_ar_at_file=no
5680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5681 /* end confdefs.h. */
5682
5683 int
5684 main ()
5685 {
5686
5687 ;
5688 return 0;
5689 }
5690 _ACEOF
5691 if ac_fn_c_try_compile "$LINENO"; then :
5692 echo conftest.$ac_objext > conftest.lst
5693 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5694 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5695 (eval $lt_ar_try) 2>&5
5696 ac_status=$?
5697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5698 test $ac_status = 0; }
5699 if test 0 -eq "$ac_status"; then
5700 # Ensure the archiver fails upon bogus file names.
5701 rm -f conftest.$ac_objext libconftest.a
5702 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5703 (eval $lt_ar_try) 2>&5
5704 ac_status=$?
5705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5706 test $ac_status = 0; }
5707 if test 0 -ne "$ac_status"; then
5708 lt_cv_ar_at_file=@
5709 fi
5710 fi
5711 rm -f conftest.* libconftest.a
5712
5713 fi
5714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5715
5716 fi
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5718 $as_echo "$lt_cv_ar_at_file" >&6; }
5719
5720 if test no = "$lt_cv_ar_at_file"; then
5721 archiver_list_spec=
5722 else
5723 archiver_list_spec=$lt_cv_ar_at_file
5724 fi
5725
5726
5727
5728
5729
5730
5731
5732 if test -n "$ac_tool_prefix"; then
5733 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5734 set dummy ${ac_tool_prefix}strip; ac_word=$2
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5736 $as_echo_n "checking for $ac_word... " >&6; }
5737 if ${ac_cv_prog_STRIP+:} false; then :
5738 $as_echo_n "(cached) " >&6
5739 else
5740 if test -n "$STRIP"; then
5741 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5742 else
5743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5744 for as_dir in $PATH
5745 do
5746 IFS=$as_save_IFS
5747 test -z "$as_dir" && as_dir=.
5748 for ac_exec_ext in '' $ac_executable_extensions; do
5749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5750 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5752 break 2
5753 fi
5754 done
5755 done
5756 IFS=$as_save_IFS
5757
5758 fi
5759 fi
5760 STRIP=$ac_cv_prog_STRIP
5761 if test -n "$STRIP"; then
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5763 $as_echo "$STRIP" >&6; }
5764 else
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5766 $as_echo "no" >&6; }
5767 fi
5768
5769
5770 fi
5771 if test -z "$ac_cv_prog_STRIP"; then
5772 ac_ct_STRIP=$STRIP
5773 # Extract the first word of "strip", so it can be a program name with args.
5774 set dummy strip; ac_word=$2
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5776 $as_echo_n "checking for $ac_word... " >&6; }
5777 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5778 $as_echo_n "(cached) " >&6
5779 else
5780 if test -n "$ac_ct_STRIP"; then
5781 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5782 else
5783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5784 for as_dir in $PATH
5785 do
5786 IFS=$as_save_IFS
5787 test -z "$as_dir" && as_dir=.
5788 for ac_exec_ext in '' $ac_executable_extensions; do
5789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5790 ac_cv_prog_ac_ct_STRIP="strip"
5791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5792 break 2
5793 fi
5794 done
5795 done
5796 IFS=$as_save_IFS
5797
5798 fi
5799 fi
5800 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5801 if test -n "$ac_ct_STRIP"; then
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5803 $as_echo "$ac_ct_STRIP" >&6; }
5804 else
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5806 $as_echo "no" >&6; }
5807 fi
5808
5809 if test "x$ac_ct_STRIP" = x; then
5810 STRIP=":"
5811 else
5812 case $cross_compiling:$ac_tool_warned in
5813 yes:)
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5815 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5816 ac_tool_warned=yes ;;
5817 esac
5818 STRIP=$ac_ct_STRIP
5819 fi
5820 else
5821 STRIP="$ac_cv_prog_STRIP"
5822 fi
5823
5824 test -z "$STRIP" && STRIP=:
5825
5826
5827
5828
5829
5830
5831 if test -n "$ac_tool_prefix"; then
5832 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5833 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5835 $as_echo_n "checking for $ac_word... " >&6; }
5836 if ${ac_cv_prog_RANLIB+:} false; then :
5837 $as_echo_n "(cached) " >&6
5838 else
5839 if test -n "$RANLIB"; then
5840 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5841 else
5842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5843 for as_dir in $PATH
5844 do
5845 IFS=$as_save_IFS
5846 test -z "$as_dir" && as_dir=.
5847 for ac_exec_ext in '' $ac_executable_extensions; do
5848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5849 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5851 break 2
5852 fi
5853 done
5854 done
5855 IFS=$as_save_IFS
5856
5857 fi
5858 fi
5859 RANLIB=$ac_cv_prog_RANLIB
5860 if test -n "$RANLIB"; then
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5862 $as_echo "$RANLIB" >&6; }
5863 else
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5865 $as_echo "no" >&6; }
5866 fi
5867
5868
5869 fi
5870 if test -z "$ac_cv_prog_RANLIB"; then
5871 ac_ct_RANLIB=$RANLIB
5872 # Extract the first word of "ranlib", so it can be a program name with args.
5873 set dummy ranlib; ac_word=$2
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5875 $as_echo_n "checking for $ac_word... " >&6; }
5876 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5877 $as_echo_n "(cached) " >&6
5878 else
5879 if test -n "$ac_ct_RANLIB"; then
5880 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5881 else
5882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5883 for as_dir in $PATH
5884 do
5885 IFS=$as_save_IFS
5886 test -z "$as_dir" && as_dir=.
5887 for ac_exec_ext in '' $ac_executable_extensions; do
5888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5889 ac_cv_prog_ac_ct_RANLIB="ranlib"
5890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5891 break 2
5892 fi
5893 done
5894 done
5895 IFS=$as_save_IFS
5896
5897 fi
5898 fi
5899 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5900 if test -n "$ac_ct_RANLIB"; then
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5902 $as_echo "$ac_ct_RANLIB" >&6; }
5903 else
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5905 $as_echo "no" >&6; }
5906 fi
5907
5908 if test "x$ac_ct_RANLIB" = x; then
5909 RANLIB=":"
5910 else
5911 case $cross_compiling:$ac_tool_warned in
5912 yes:)
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5914 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5915 ac_tool_warned=yes ;;
5916 esac
5917 RANLIB=$ac_ct_RANLIB
5918 fi
5919 else
5920 RANLIB="$ac_cv_prog_RANLIB"
5921 fi
5922
5923 test -z "$RANLIB" && RANLIB=:
5924
5925
5926
5927
5928
5929
5930 # Determine commands to create old-style static archives.
5931 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5932 old_postinstall_cmds='chmod 644 $oldlib'
5933 old_postuninstall_cmds=
5934
5935 if test -n "$RANLIB"; then
5936 case $host_os in
5937 bitrig* | openbsd*)
5938 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5939 ;;
5940 *)
5941 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5942 ;;
5943 esac
5944 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5945 fi
5946
5947 case $host_os in
5948 darwin*)
5949 lock_old_archive_extraction=yes ;;
5950 *)
5951 lock_old_archive_extraction=no ;;
5952 esac
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992 # If no C compiler was specified, use CC.
5993 LTCC=${LTCC-"$CC"}
5994
5995 # If no C compiler flags were specified, use CFLAGS.
5996 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5997
5998 # Allow CC to be a program name with arguments.
5999 compiler=$CC
6000
6001
6002 # Check for command to grab the raw symbol name followed by C symbol from nm.
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6004 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6005 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6006 $as_echo_n "(cached) " >&6
6007 else
6008
6009 # These are sane defaults that work on at least a few old systems.
6010 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6011
6012 # Character class describing NM global symbol codes.
6013 symcode='[BCDEGRST]'
6014
6015 # Regexp to match symbols that can be accessed directly from C.
6016 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6017
6018 # Define system-specific variables.
6019 case $host_os in
6020 aix*)
6021 symcode='[BCDT]'
6022 ;;
6023 cygwin* | mingw* | pw32* | cegcc*)
6024 symcode='[ABCDGISTW]'
6025 ;;
6026 hpux*)
6027 if test ia64 = "$host_cpu"; then
6028 symcode='[ABCDEGRST]'
6029 fi
6030 ;;
6031 irix* | nonstopux*)
6032 symcode='[BCDEGRST]'
6033 ;;
6034 osf*)
6035 symcode='[BCDEGQRST]'
6036 ;;
6037 solaris*)
6038 symcode='[BDRT]'
6039 ;;
6040 sco3.2v5*)
6041 symcode='[DT]'
6042 ;;
6043 sysv4.2uw2*)
6044 symcode='[DT]'
6045 ;;
6046 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6047 symcode='[ABDT]'
6048 ;;
6049 sysv4)
6050 symcode='[DFNSTU]'
6051 ;;
6052 esac
6053
6054 # If we're using GNU nm, then use its standard symbol codes.
6055 case `$NM -V 2>&1` in
6056 *GNU* | *'with BFD'*)
6057 symcode='[ABCDGIRSTW]' ;;
6058 esac
6059
6060 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6061 # Gets list of data symbols to import.
6062 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6063 # Adjust the below global symbol transforms to fixup imported variables.
6064 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6065 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6066 lt_c_name_lib_hook="\
6067 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6068 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6069 else
6070 # Disable hooks by default.
6071 lt_cv_sys_global_symbol_to_import=
6072 lt_cdecl_hook=
6073 lt_c_name_hook=
6074 lt_c_name_lib_hook=
6075 fi
6076
6077 # Transform an extracted symbol line into a proper C declaration.
6078 # Some systems (esp. on ia64) link data and code symbols differently,
6079 # so use this general approach.
6080 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6081 $lt_cdecl_hook\
6082 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6083 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6084
6085 # Transform an extracted symbol line into symbol name and symbol address
6086 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6087 $lt_c_name_hook\
6088 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6089 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6090
6091 # Transform an extracted symbol line into symbol name with lib prefix and
6092 # symbol address.
6093 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6094 $lt_c_name_lib_hook\
6095 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6096 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6097 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6098
6099 # Handle CRLF in mingw tool chain
6100 opt_cr=
6101 case $build_os in
6102 mingw*)
6103 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6104 ;;
6105 esac
6106
6107 # Try without a prefix underscore, then with it.
6108 for ac_symprfx in "" "_"; do
6109
6110 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6111 symxfrm="\\1 $ac_symprfx\\2 \\2"
6112
6113 # Write the raw and C identifiers.
6114 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6115 # Fake it for dumpbin and say T for any non-static function,
6116 # D for any global variable and I for any imported variable.
6117 # Also find C++ and __fastcall symbols from MSVC++,
6118 # which start with @ or ?.
6119 lt_cv_sys_global_symbol_pipe="$AWK '"\
6120 " {last_section=section; section=\$ 3};"\
6121 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6122 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6123 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6124 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6125 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6126 " \$ 0!~/External *\|/{next};"\
6127 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6128 " {if(hide[section]) next};"\
6129 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6130 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6131 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6132 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6133 " ' prfx=^$ac_symprfx"
6134 else
6135 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6136 fi
6137 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6138
6139 # Check to see that the pipe works correctly.
6140 pipe_works=no
6141
6142 rm -f conftest*
6143 cat > conftest.$ac_ext <<_LT_EOF
6144 #ifdef __cplusplus
6145 extern "C" {
6146 #endif
6147 char nm_test_var;
6148 void nm_test_func(void);
6149 void nm_test_func(void){}
6150 #ifdef __cplusplus
6151 }
6152 #endif
6153 int main(){nm_test_var='a';nm_test_func();return(0);}
6154 _LT_EOF
6155
6156 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6157 (eval $ac_compile) 2>&5
6158 ac_status=$?
6159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6160 test $ac_status = 0; }; then
6161 # Now try to grab the symbols.
6162 nlist=conftest.nm
6163 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6164 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6165 ac_status=$?
6166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6167 test $ac_status = 0; } && test -s "$nlist"; then
6168 # Try sorting and uniquifying the output.
6169 if sort "$nlist" | uniq > "$nlist"T; then
6170 mv -f "$nlist"T "$nlist"
6171 else
6172 rm -f "$nlist"T
6173 fi
6174
6175 # Make sure that we snagged all the symbols we need.
6176 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6177 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6178 cat <<_LT_EOF > conftest.$ac_ext
6179 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6180 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6181 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6182 relocations are performed -- see ld's documentation on pseudo-relocs. */
6183 # define LT_DLSYM_CONST
6184 #elif defined __osf__
6185 /* This system does not cope well with relocations in const data. */
6186 # define LT_DLSYM_CONST
6187 #else
6188 # define LT_DLSYM_CONST const
6189 #endif
6190
6191 #ifdef __cplusplus
6192 extern "C" {
6193 #endif
6194
6195 _LT_EOF
6196 # Now generate the symbol file.
6197 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6198
6199 cat <<_LT_EOF >> conftest.$ac_ext
6200
6201 /* The mapping between symbol names and symbols. */
6202 LT_DLSYM_CONST struct {
6203 const char *name;
6204 void *address;
6205 }
6206 lt__PROGRAM__LTX_preloaded_symbols[] =
6207 {
6208 { "@PROGRAM@", (void *) 0 },
6209 _LT_EOF
6210 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6211 cat <<\_LT_EOF >> conftest.$ac_ext
6212 {0, (void *) 0}
6213 };
6214
6215 /* This works around a problem in FreeBSD linker */
6216 #ifdef FREEBSD_WORKAROUND
6217 static const void *lt_preloaded_setup() {
6218 return lt__PROGRAM__LTX_preloaded_symbols;
6219 }
6220 #endif
6221
6222 #ifdef __cplusplus
6223 }
6224 #endif
6225 _LT_EOF
6226 # Now try linking the two files.
6227 mv conftest.$ac_objext conftstm.$ac_objext
6228 lt_globsym_save_LIBS=$LIBS
6229 lt_globsym_save_CFLAGS=$CFLAGS
6230 LIBS=conftstm.$ac_objext
6231 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6232 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6233 (eval $ac_link) 2>&5
6234 ac_status=$?
6235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6236 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6237 pipe_works=yes
6238 fi
6239 LIBS=$lt_globsym_save_LIBS
6240 CFLAGS=$lt_globsym_save_CFLAGS
6241 else
6242 echo "cannot find nm_test_func in $nlist" >&5
6243 fi
6244 else
6245 echo "cannot find nm_test_var in $nlist" >&5
6246 fi
6247 else
6248 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6249 fi
6250 else
6251 echo "$progname: failed program was:" >&5
6252 cat conftest.$ac_ext >&5
6253 fi
6254 rm -rf conftest* conftst*
6255
6256 # Do not use the global_symbol_pipe unless it works.
6257 if test yes = "$pipe_works"; then
6258 break
6259 else
6260 lt_cv_sys_global_symbol_pipe=
6261 fi
6262 done
6263
6264 fi
6265
6266 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6267 lt_cv_sys_global_symbol_to_cdecl=
6268 fi
6269 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6271 $as_echo "failed" >&6; }
6272 else
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6274 $as_echo "ok" >&6; }
6275 fi
6276
6277 # Response file support.
6278 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6279 nm_file_list_spec='@'
6280 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6281 nm_file_list_spec='@'
6282 fi
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6321 $as_echo_n "checking for sysroot... " >&6; }
6322
6323 # Check whether --with-sysroot was given.
6324 if test "${with_sysroot+set}" = set; then :
6325 withval=$with_sysroot;
6326 else
6327 with_sysroot=no
6328 fi
6329
6330
6331 lt_sysroot=
6332 case $with_sysroot in #(
6333 yes)
6334 if test yes = "$GCC"; then
6335 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6336 fi
6337 ;; #(
6338 /*)
6339 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6340 ;; #(
6341 no|'')
6342 ;; #(
6343 *)
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6345 $as_echo "$with_sysroot" >&6; }
6346 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6347 ;;
6348 esac
6349
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6351 $as_echo "${lt_sysroot:-no}" >&6; }
6352
6353
6354
6355
6356
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6358 $as_echo_n "checking for a working dd... " >&6; }
6359 if ${ac_cv_path_lt_DD+:} false; then :
6360 $as_echo_n "(cached) " >&6
6361 else
6362 printf 0123456789abcdef0123456789abcdef >conftest.i
6363 cat conftest.i conftest.i >conftest2.i
6364 : ${lt_DD:=$DD}
6365 if test -z "$lt_DD"; then
6366 ac_path_lt_DD_found=false
6367 # Loop through the user's path and test for each of PROGNAME-LIST
6368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6369 for as_dir in $PATH
6370 do
6371 IFS=$as_save_IFS
6372 test -z "$as_dir" && as_dir=.
6373 for ac_prog in dd; do
6374 for ac_exec_ext in '' $ac_executable_extensions; do
6375 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6376 as_fn_executable_p "$ac_path_lt_DD" || continue
6377 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6378 cmp -s conftest.i conftest.out \
6379 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6380 fi
6381 $ac_path_lt_DD_found && break 3
6382 done
6383 done
6384 done
6385 IFS=$as_save_IFS
6386 if test -z "$ac_cv_path_lt_DD"; then
6387 :
6388 fi
6389 else
6390 ac_cv_path_lt_DD=$lt_DD
6391 fi
6392
6393 rm -f conftest.i conftest2.i conftest.out
6394 fi
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6396 $as_echo "$ac_cv_path_lt_DD" >&6; }
6397
6398
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6400 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6401 if ${lt_cv_truncate_bin+:} false; then :
6402 $as_echo_n "(cached) " >&6
6403 else
6404 printf 0123456789abcdef0123456789abcdef >conftest.i
6405 cat conftest.i conftest.i >conftest2.i
6406 lt_cv_truncate_bin=
6407 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6408 cmp -s conftest.i conftest.out \
6409 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6410 fi
6411 rm -f conftest.i conftest2.i conftest.out
6412 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6413 fi
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6415 $as_echo "$lt_cv_truncate_bin" >&6; }
6416
6417
6418
6419
6420
6421
6422
6423 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6424 func_cc_basename ()
6425 {
6426 for cc_temp in $*""; do
6427 case $cc_temp in
6428 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6429 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6430 \-*) ;;
6431 *) break;;
6432 esac
6433 done
6434 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6435 }
6436
6437 # Check whether --enable-libtool-lock was given.
6438 if test "${enable_libtool_lock+set}" = set; then :
6439 enableval=$enable_libtool_lock;
6440 fi
6441
6442 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6443
6444 # Some flags need to be propagated to the compiler or linker for good
6445 # libtool support.
6446 case $host in
6447 ia64-*-hpux*)
6448 # Find out what ABI is being produced by ac_compile, and set mode
6449 # options accordingly.
6450 echo 'int i;' > conftest.$ac_ext
6451 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6452 (eval $ac_compile) 2>&5
6453 ac_status=$?
6454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6455 test $ac_status = 0; }; then
6456 case `/usr/bin/file conftest.$ac_objext` in
6457 *ELF-32*)
6458 HPUX_IA64_MODE=32
6459 ;;
6460 *ELF-64*)
6461 HPUX_IA64_MODE=64
6462 ;;
6463 esac
6464 fi
6465 rm -rf conftest*
6466 ;;
6467 *-*-irix6*)
6468 # Find out what ABI is being produced by ac_compile, and set linker
6469 # options accordingly.
6470 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6471 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6472 (eval $ac_compile) 2>&5
6473 ac_status=$?
6474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6475 test $ac_status = 0; }; then
6476 if test yes = "$lt_cv_prog_gnu_ld"; then
6477 case `/usr/bin/file conftest.$ac_objext` in
6478 *32-bit*)
6479 LD="${LD-ld} -melf32bsmip"
6480 ;;
6481 *N32*)
6482 LD="${LD-ld} -melf32bmipn32"
6483 ;;
6484 *64-bit*)
6485 LD="${LD-ld} -melf64bmip"
6486 ;;
6487 esac
6488 else
6489 case `/usr/bin/file conftest.$ac_objext` in
6490 *32-bit*)
6491 LD="${LD-ld} -32"
6492 ;;
6493 *N32*)
6494 LD="${LD-ld} -n32"
6495 ;;
6496 *64-bit*)
6497 LD="${LD-ld} -64"
6498 ;;
6499 esac
6500 fi
6501 fi
6502 rm -rf conftest*
6503 ;;
6504
6505 mips64*-*linux*)
6506 # Find out what ABI is being produced by ac_compile, and set linker
6507 # options accordingly.
6508 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6509 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6510 (eval $ac_compile) 2>&5
6511 ac_status=$?
6512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6513 test $ac_status = 0; }; then
6514 emul=elf
6515 case `/usr/bin/file conftest.$ac_objext` in
6516 *32-bit*)
6517 emul="${emul}32"
6518 ;;
6519 *64-bit*)
6520 emul="${emul}64"
6521 ;;
6522 esac
6523 case `/usr/bin/file conftest.$ac_objext` in
6524 *MSB*)
6525 emul="${emul}btsmip"
6526 ;;
6527 *LSB*)
6528 emul="${emul}ltsmip"
6529 ;;
6530 esac
6531 case `/usr/bin/file conftest.$ac_objext` in
6532 *N32*)
6533 emul="${emul}n32"
6534 ;;
6535 esac
6536 LD="${LD-ld} -m $emul"
6537 fi
6538 rm -rf conftest*
6539 ;;
6540
6541 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6542 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6543 # Find out what ABI is being produced by ac_compile, and set linker
6544 # options accordingly. Note that the listed cases only cover the
6545 # situations where additional linker options are needed (such as when
6546 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6547 # vice versa); the common cases where no linker options are needed do
6548 # not appear in the list.
6549 echo 'int i;' > conftest.$ac_ext
6550 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6551 (eval $ac_compile) 2>&5
6552 ac_status=$?
6553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6554 test $ac_status = 0; }; then
6555 case `/usr/bin/file conftest.o` in
6556 *32-bit*)
6557 case $host in
6558 x86_64-*kfreebsd*-gnu)
6559 LD="${LD-ld} -m elf_i386_fbsd"
6560 ;;
6561 x86_64-*linux*)
6562 case `/usr/bin/file conftest.o` in
6563 *x86-64*)
6564 LD="${LD-ld} -m elf32_x86_64"
6565 ;;
6566 *)
6567 LD="${LD-ld} -m elf_i386"
6568 ;;
6569 esac
6570 ;;
6571 powerpc64le-*linux*)
6572 LD="${LD-ld} -m elf32lppclinux"
6573 ;;
6574 powerpc64-*linux*)
6575 LD="${LD-ld} -m elf32ppclinux"
6576 ;;
6577 s390x-*linux*)
6578 LD="${LD-ld} -m elf_s390"
6579 ;;
6580 sparc64-*linux*)
6581 LD="${LD-ld} -m elf32_sparc"
6582 ;;
6583 esac
6584 ;;
6585 *64-bit*)
6586 case $host in
6587 x86_64-*kfreebsd*-gnu)
6588 LD="${LD-ld} -m elf_x86_64_fbsd"
6589 ;;
6590 x86_64-*linux*)
6591 LD="${LD-ld} -m elf_x86_64"
6592 ;;
6593 powerpcle-*linux*|powerpc64le-*linux*)
6594 LD="${LD-ld} -m elf64lppc"
6595 ;;
6596 powerpc-*linux*|powerpc64-*linux*)
6597 LD="${LD-ld} -m elf64ppc"
6598 ;;
6599 s390*-*linux*|s390*-*tpf*)
6600 LD="${LD-ld} -m elf64_s390"
6601 ;;
6602 sparc*-*linux*)
6603 LD="${LD-ld} -m elf64_sparc"
6604 ;;
6605 esac
6606 ;;
6607 esac
6608 fi
6609 rm -rf conftest*
6610 ;;
6611
6612 *-*-sco3.2v5*)
6613 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6614 SAVE_CFLAGS=$CFLAGS
6615 CFLAGS="$CFLAGS -belf"
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6617 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6618 if ${lt_cv_cc_needs_belf+:} false; then :
6619 $as_echo_n "(cached) " >&6
6620 else
6621 ac_ext=c
6622 ac_cpp='$CPP $CPPFLAGS'
6623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6626
6627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6628 /* end confdefs.h. */
6629
6630 int
6631 main ()
6632 {
6633
6634 ;
6635 return 0;
6636 }
6637 _ACEOF
6638 if ac_fn_c_try_link "$LINENO"; then :
6639 lt_cv_cc_needs_belf=yes
6640 else
6641 lt_cv_cc_needs_belf=no
6642 fi
6643 rm -f core conftest.err conftest.$ac_objext \
6644 conftest$ac_exeext conftest.$ac_ext
6645 ac_ext=c
6646 ac_cpp='$CPP $CPPFLAGS'
6647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6650
6651 fi
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6653 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6654 if test yes != "$lt_cv_cc_needs_belf"; then
6655 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6656 CFLAGS=$SAVE_CFLAGS
6657 fi
6658 ;;
6659 *-*solaris*)
6660 # Find out what ABI is being produced by ac_compile, and set linker
6661 # options accordingly.
6662 echo 'int i;' > conftest.$ac_ext
6663 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6664 (eval $ac_compile) 2>&5
6665 ac_status=$?
6666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6667 test $ac_status = 0; }; then
6668 case `/usr/bin/file conftest.o` in
6669 *64-bit*)
6670 case $lt_cv_prog_gnu_ld in
6671 yes*)
6672 case $host in
6673 i?86-*-solaris*|x86_64-*-solaris*)
6674 LD="${LD-ld} -m elf_x86_64"
6675 ;;
6676 sparc*-*-solaris*)
6677 LD="${LD-ld} -m elf64_sparc"
6678 ;;
6679 esac
6680 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6681 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6682 LD=${LD-ld}_sol2
6683 fi
6684 ;;
6685 *)
6686 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6687 LD="${LD-ld} -64"
6688 fi
6689 ;;
6690 esac
6691 ;;
6692 esac
6693 fi
6694 rm -rf conftest*
6695 ;;
6696 esac
6697
6698 need_locks=$enable_libtool_lock
6699
6700 if test -n "$ac_tool_prefix"; then
6701 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6702 set dummy ${ac_tool_prefix}mt; ac_word=$2
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6704 $as_echo_n "checking for $ac_word... " >&6; }
6705 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6706 $as_echo_n "(cached) " >&6
6707 else
6708 if test -n "$MANIFEST_TOOL"; then
6709 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6710 else
6711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6712 for as_dir in $PATH
6713 do
6714 IFS=$as_save_IFS
6715 test -z "$as_dir" && as_dir=.
6716 for ac_exec_ext in '' $ac_executable_extensions; do
6717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6718 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6720 break 2
6721 fi
6722 done
6723 done
6724 IFS=$as_save_IFS
6725
6726 fi
6727 fi
6728 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6729 if test -n "$MANIFEST_TOOL"; then
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6731 $as_echo "$MANIFEST_TOOL" >&6; }
6732 else
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6734 $as_echo "no" >&6; }
6735 fi
6736
6737
6738 fi
6739 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6740 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6741 # Extract the first word of "mt", so it can be a program name with args.
6742 set dummy mt; ac_word=$2
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6744 $as_echo_n "checking for $ac_word... " >&6; }
6745 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6746 $as_echo_n "(cached) " >&6
6747 else
6748 if test -n "$ac_ct_MANIFEST_TOOL"; then
6749 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6750 else
6751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6752 for as_dir in $PATH
6753 do
6754 IFS=$as_save_IFS
6755 test -z "$as_dir" && as_dir=.
6756 for ac_exec_ext in '' $ac_executable_extensions; do
6757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6758 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6760 break 2
6761 fi
6762 done
6763 done
6764 IFS=$as_save_IFS
6765
6766 fi
6767 fi
6768 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6769 if test -n "$ac_ct_MANIFEST_TOOL"; then
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6771 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6772 else
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6774 $as_echo "no" >&6; }
6775 fi
6776
6777 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6778 MANIFEST_TOOL=":"
6779 else
6780 case $cross_compiling:$ac_tool_warned in
6781 yes:)
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6783 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6784 ac_tool_warned=yes ;;
6785 esac
6786 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6787 fi
6788 else
6789 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6790 fi
6791
6792 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6794 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6795 if ${lt_cv_path_mainfest_tool+:} false; then :
6796 $as_echo_n "(cached) " >&6
6797 else
6798 lt_cv_path_mainfest_tool=no
6799 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6800 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6801 cat conftest.err >&5
6802 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6803 lt_cv_path_mainfest_tool=yes
6804 fi
6805 rm -f conftest*
6806 fi
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6808 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6809 if test yes != "$lt_cv_path_mainfest_tool"; then
6810 MANIFEST_TOOL=:
6811 fi
6812
6813
6814
6815
6816
6817
6818 case $host_os in
6819 rhapsody* | darwin*)
6820 if test -n "$ac_tool_prefix"; then
6821 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6822 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6824 $as_echo_n "checking for $ac_word... " >&6; }
6825 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6826 $as_echo_n "(cached) " >&6
6827 else
6828 if test -n "$DSYMUTIL"; then
6829 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6830 else
6831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6832 for as_dir in $PATH
6833 do
6834 IFS=$as_save_IFS
6835 test -z "$as_dir" && as_dir=.
6836 for ac_exec_ext in '' $ac_executable_extensions; do
6837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6838 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6840 break 2
6841 fi
6842 done
6843 done
6844 IFS=$as_save_IFS
6845
6846 fi
6847 fi
6848 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6849 if test -n "$DSYMUTIL"; then
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6851 $as_echo "$DSYMUTIL" >&6; }
6852 else
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6854 $as_echo "no" >&6; }
6855 fi
6856
6857
6858 fi
6859 if test -z "$ac_cv_prog_DSYMUTIL"; then
6860 ac_ct_DSYMUTIL=$DSYMUTIL
6861 # Extract the first word of "dsymutil", so it can be a program name with args.
6862 set dummy dsymutil; ac_word=$2
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6864 $as_echo_n "checking for $ac_word... " >&6; }
6865 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6866 $as_echo_n "(cached) " >&6
6867 else
6868 if test -n "$ac_ct_DSYMUTIL"; then
6869 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6870 else
6871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6872 for as_dir in $PATH
6873 do
6874 IFS=$as_save_IFS
6875 test -z "$as_dir" && as_dir=.
6876 for ac_exec_ext in '' $ac_executable_extensions; do
6877 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6878 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6880 break 2
6881 fi
6882 done
6883 done
6884 IFS=$as_save_IFS
6885
6886 fi
6887 fi
6888 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6889 if test -n "$ac_ct_DSYMUTIL"; then
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6891 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6892 else
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6894 $as_echo "no" >&6; }
6895 fi
6896
6897 if test "x$ac_ct_DSYMUTIL" = x; then
6898 DSYMUTIL=":"
6899 else
6900 case $cross_compiling:$ac_tool_warned in
6901 yes:)
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6903 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6904 ac_tool_warned=yes ;;
6905 esac
6906 DSYMUTIL=$ac_ct_DSYMUTIL
6907 fi
6908 else
6909 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6910 fi
6911
6912 if test -n "$ac_tool_prefix"; then
6913 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6914 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6916 $as_echo_n "checking for $ac_word... " >&6; }
6917 if ${ac_cv_prog_NMEDIT+:} false; then :
6918 $as_echo_n "(cached) " >&6
6919 else
6920 if test -n "$NMEDIT"; then
6921 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6922 else
6923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6924 for as_dir in $PATH
6925 do
6926 IFS=$as_save_IFS
6927 test -z "$as_dir" && as_dir=.
6928 for ac_exec_ext in '' $ac_executable_extensions; do
6929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6930 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6932 break 2
6933 fi
6934 done
6935 done
6936 IFS=$as_save_IFS
6937
6938 fi
6939 fi
6940 NMEDIT=$ac_cv_prog_NMEDIT
6941 if test -n "$NMEDIT"; then
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6943 $as_echo "$NMEDIT" >&6; }
6944 else
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6946 $as_echo "no" >&6; }
6947 fi
6948
6949
6950 fi
6951 if test -z "$ac_cv_prog_NMEDIT"; then
6952 ac_ct_NMEDIT=$NMEDIT
6953 # Extract the first word of "nmedit", so it can be a program name with args.
6954 set dummy nmedit; ac_word=$2
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6956 $as_echo_n "checking for $ac_word... " >&6; }
6957 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6958 $as_echo_n "(cached) " >&6
6959 else
6960 if test -n "$ac_ct_NMEDIT"; then
6961 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6962 else
6963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6964 for as_dir in $PATH
6965 do
6966 IFS=$as_save_IFS
6967 test -z "$as_dir" && as_dir=.
6968 for ac_exec_ext in '' $ac_executable_extensions; do
6969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6970 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6972 break 2
6973 fi
6974 done
6975 done
6976 IFS=$as_save_IFS
6977
6978 fi
6979 fi
6980 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6981 if test -n "$ac_ct_NMEDIT"; then
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6983 $as_echo "$ac_ct_NMEDIT" >&6; }
6984 else
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6986 $as_echo "no" >&6; }
6987 fi
6988
6989 if test "x$ac_ct_NMEDIT" = x; then
6990 NMEDIT=":"
6991 else
6992 case $cross_compiling:$ac_tool_warned in
6993 yes:)
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6995 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6996 ac_tool_warned=yes ;;
6997 esac
6998 NMEDIT=$ac_ct_NMEDIT
6999 fi
7000 else
7001 NMEDIT="$ac_cv_prog_NMEDIT"
7002 fi
7003
7004 if test -n "$ac_tool_prefix"; then
7005 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7006 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7008 $as_echo_n "checking for $ac_word... " >&6; }
7009 if ${ac_cv_prog_LIPO+:} false; then :
7010 $as_echo_n "(cached) " >&6
7011 else
7012 if test -n "$LIPO"; then
7013 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7014 else
7015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7016 for as_dir in $PATH
7017 do
7018 IFS=$as_save_IFS
7019 test -z "$as_dir" && as_dir=.
7020 for ac_exec_ext in '' $ac_executable_extensions; do
7021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7022 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7024 break 2
7025 fi
7026 done
7027 done
7028 IFS=$as_save_IFS
7029
7030 fi
7031 fi
7032 LIPO=$ac_cv_prog_LIPO
7033 if test -n "$LIPO"; then
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7035 $as_echo "$LIPO" >&6; }
7036 else
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7038 $as_echo "no" >&6; }
7039 fi
7040
7041
7042 fi
7043 if test -z "$ac_cv_prog_LIPO"; then
7044 ac_ct_LIPO=$LIPO
7045 # Extract the first word of "lipo", so it can be a program name with args.
7046 set dummy lipo; ac_word=$2
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7048 $as_echo_n "checking for $ac_word... " >&6; }
7049 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7050 $as_echo_n "(cached) " >&6
7051 else
7052 if test -n "$ac_ct_LIPO"; then
7053 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7054 else
7055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7056 for as_dir in $PATH
7057 do
7058 IFS=$as_save_IFS
7059 test -z "$as_dir" && as_dir=.
7060 for ac_exec_ext in '' $ac_executable_extensions; do
7061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7062 ac_cv_prog_ac_ct_LIPO="lipo"
7063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7064 break 2
7065 fi
7066 done
7067 done
7068 IFS=$as_save_IFS
7069
7070 fi
7071 fi
7072 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7073 if test -n "$ac_ct_LIPO"; then
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7075 $as_echo "$ac_ct_LIPO" >&6; }
7076 else
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7078 $as_echo "no" >&6; }
7079 fi
7080
7081 if test "x$ac_ct_LIPO" = x; then
7082 LIPO=":"
7083 else
7084 case $cross_compiling:$ac_tool_warned in
7085 yes:)
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7087 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7088 ac_tool_warned=yes ;;
7089 esac
7090 LIPO=$ac_ct_LIPO
7091 fi
7092 else
7093 LIPO="$ac_cv_prog_LIPO"
7094 fi
7095
7096 if test -n "$ac_tool_prefix"; then
7097 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7098 set dummy ${ac_tool_prefix}otool; ac_word=$2
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7100 $as_echo_n "checking for $ac_word... " >&6; }
7101 if ${ac_cv_prog_OTOOL+:} false; then :
7102 $as_echo_n "(cached) " >&6
7103 else
7104 if test -n "$OTOOL"; then
7105 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7106 else
7107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7108 for as_dir in $PATH
7109 do
7110 IFS=$as_save_IFS
7111 test -z "$as_dir" && as_dir=.
7112 for ac_exec_ext in '' $ac_executable_extensions; do
7113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7114 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7116 break 2
7117 fi
7118 done
7119 done
7120 IFS=$as_save_IFS
7121
7122 fi
7123 fi
7124 OTOOL=$ac_cv_prog_OTOOL
7125 if test -n "$OTOOL"; then
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7127 $as_echo "$OTOOL" >&6; }
7128 else
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7130 $as_echo "no" >&6; }
7131 fi
7132
7133
7134 fi
7135 if test -z "$ac_cv_prog_OTOOL"; then
7136 ac_ct_OTOOL=$OTOOL
7137 # Extract the first word of "otool", so it can be a program name with args.
7138 set dummy otool; ac_word=$2
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7140 $as_echo_n "checking for $ac_word... " >&6; }
7141 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7142 $as_echo_n "(cached) " >&6
7143 else
7144 if test -n "$ac_ct_OTOOL"; then
7145 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7146 else
7147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7148 for as_dir in $PATH
7149 do
7150 IFS=$as_save_IFS
7151 test -z "$as_dir" && as_dir=.
7152 for ac_exec_ext in '' $ac_executable_extensions; do
7153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7154 ac_cv_prog_ac_ct_OTOOL="otool"
7155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7156 break 2
7157 fi
7158 done
7159 done
7160 IFS=$as_save_IFS
7161
7162 fi
7163 fi
7164 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7165 if test -n "$ac_ct_OTOOL"; then
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7167 $as_echo "$ac_ct_OTOOL" >&6; }
7168 else
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7170 $as_echo "no" >&6; }
7171 fi
7172
7173 if test "x$ac_ct_OTOOL" = x; then
7174 OTOOL=":"
7175 else
7176 case $cross_compiling:$ac_tool_warned in
7177 yes:)
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7179 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7180 ac_tool_warned=yes ;;
7181 esac
7182 OTOOL=$ac_ct_OTOOL
7183 fi
7184 else
7185 OTOOL="$ac_cv_prog_OTOOL"
7186 fi
7187
7188 if test -n "$ac_tool_prefix"; then
7189 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7190 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7192 $as_echo_n "checking for $ac_word... " >&6; }
7193 if ${ac_cv_prog_OTOOL64+:} false; then :
7194 $as_echo_n "(cached) " >&6
7195 else
7196 if test -n "$OTOOL64"; then
7197 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7198 else
7199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7200 for as_dir in $PATH
7201 do
7202 IFS=$as_save_IFS
7203 test -z "$as_dir" && as_dir=.
7204 for ac_exec_ext in '' $ac_executable_extensions; do
7205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7206 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7208 break 2
7209 fi
7210 done
7211 done
7212 IFS=$as_save_IFS
7213
7214 fi
7215 fi
7216 OTOOL64=$ac_cv_prog_OTOOL64
7217 if test -n "$OTOOL64"; then
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7219 $as_echo "$OTOOL64" >&6; }
7220 else
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7222 $as_echo "no" >&6; }
7223 fi
7224
7225
7226 fi
7227 if test -z "$ac_cv_prog_OTOOL64"; then
7228 ac_ct_OTOOL64=$OTOOL64
7229 # Extract the first word of "otool64", so it can be a program name with args.
7230 set dummy otool64; ac_word=$2
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7232 $as_echo_n "checking for $ac_word... " >&6; }
7233 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7234 $as_echo_n "(cached) " >&6
7235 else
7236 if test -n "$ac_ct_OTOOL64"; then
7237 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7238 else
7239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7240 for as_dir in $PATH
7241 do
7242 IFS=$as_save_IFS
7243 test -z "$as_dir" && as_dir=.
7244 for ac_exec_ext in '' $ac_executable_extensions; do
7245 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7246 ac_cv_prog_ac_ct_OTOOL64="otool64"
7247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7248 break 2
7249 fi
7250 done
7251 done
7252 IFS=$as_save_IFS
7253
7254 fi
7255 fi
7256 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7257 if test -n "$ac_ct_OTOOL64"; then
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7259 $as_echo "$ac_ct_OTOOL64" >&6; }
7260 else
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7262 $as_echo "no" >&6; }
7263 fi
7264
7265 if test "x$ac_ct_OTOOL64" = x; then
7266 OTOOL64=":"
7267 else
7268 case $cross_compiling:$ac_tool_warned in
7269 yes:)
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7271 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7272 ac_tool_warned=yes ;;
7273 esac
7274 OTOOL64=$ac_ct_OTOOL64
7275 fi
7276 else
7277 OTOOL64="$ac_cv_prog_OTOOL64"
7278 fi
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7307 $as_echo_n "checking for -single_module linker flag... " >&6; }
7308 if ${lt_cv_apple_cc_single_mod+:} false; then :
7309 $as_echo_n "(cached) " >&6
7310 else
7311 lt_cv_apple_cc_single_mod=no
7312 if test -z "$LT_MULTI_MODULE"; then
7313 # By default we will add the -single_module flag. You can override
7314 # by either setting the environment variable LT_MULTI_MODULE
7315 # non-empty at configure time, or by adding -multi_module to the
7316 # link flags.
7317 rm -rf libconftest.dylib*
7318 echo "int foo(void){return 1;}" > conftest.c
7319 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7320 -dynamiclib -Wl,-single_module conftest.c" >&5
7321 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7322 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7323 _lt_result=$?
7324 # If there is a non-empty error log, and "single_module"
7325 # appears in it, assume the flag caused a linker warning
7326 if test -s conftest.err && $GREP single_module conftest.err; then
7327 cat conftest.err >&5
7328 # Otherwise, if the output was created with a 0 exit code from
7329 # the compiler, it worked.
7330 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7331 lt_cv_apple_cc_single_mod=yes
7332 else
7333 cat conftest.err >&5
7334 fi
7335 rm -rf libconftest.dylib*
7336 rm -f conftest.*
7337 fi
7338 fi
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7340 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7341
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7343 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7344 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7345 $as_echo_n "(cached) " >&6
7346 else
7347 lt_cv_ld_exported_symbols_list=no
7348 save_LDFLAGS=$LDFLAGS
7349 echo "_main" > conftest.sym
7350 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7352 /* end confdefs.h. */
7353
7354 int
7355 main ()
7356 {
7357
7358 ;
7359 return 0;
7360 }
7361 _ACEOF
7362 if ac_fn_c_try_link "$LINENO"; then :
7363 lt_cv_ld_exported_symbols_list=yes
7364 else
7365 lt_cv_ld_exported_symbols_list=no
7366 fi
7367 rm -f core conftest.err conftest.$ac_objext \
7368 conftest$ac_exeext conftest.$ac_ext
7369 LDFLAGS=$save_LDFLAGS
7370
7371 fi
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7373 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7374
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7376 $as_echo_n "checking for -force_load linker flag... " >&6; }
7377 if ${lt_cv_ld_force_load+:} false; then :
7378 $as_echo_n "(cached) " >&6
7379 else
7380 lt_cv_ld_force_load=no
7381 cat > conftest.c << _LT_EOF
7382 int forced_loaded() { return 2;}
7383 _LT_EOF
7384 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7385 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7386 echo "$AR cru libconftest.a conftest.o" >&5
7387 $AR cru libconftest.a conftest.o 2>&5
7388 echo "$RANLIB libconftest.a" >&5
7389 $RANLIB libconftest.a 2>&5
7390 cat > conftest.c << _LT_EOF
7391 int main() { return 0;}
7392 _LT_EOF
7393 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7394 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7395 _lt_result=$?
7396 if test -s conftest.err && $GREP force_load conftest.err; then
7397 cat conftest.err >&5
7398 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7399 lt_cv_ld_force_load=yes
7400 else
7401 cat conftest.err >&5
7402 fi
7403 rm -f conftest.err libconftest.a conftest conftest.c
7404 rm -rf conftest.dSYM
7405
7406 fi
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7408 $as_echo "$lt_cv_ld_force_load" >&6; }
7409 case $host_os in
7410 rhapsody* | darwin1.[012])
7411 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7412 darwin1.*)
7413 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7414 darwin*) # darwin 5.x on
7415 # if running on 10.5 or later, the deployment target defaults
7416 # to the OS version, if on x86, and 10.4, the deployment
7417 # target defaults to 10.4. Don't you love it?
7418 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7419 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7420 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7421 10.[012][,.]*)
7422 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7423 10.*)
7424 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7425 esac
7426 ;;
7427 esac
7428 if test yes = "$lt_cv_apple_cc_single_mod"; then
7429 _lt_dar_single_mod='$single_module'
7430 fi
7431 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7432 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7433 else
7434 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7435 fi
7436 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7437 _lt_dsymutil='~$DSYMUTIL $lib || :'
7438 else
7439 _lt_dsymutil=
7440 fi
7441 ;;
7442 esac
7443
7444 # func_munge_path_list VARIABLE PATH
7445 # -----------------------------------
7446 # VARIABLE is name of variable containing _space_ separated list of
7447 # directories to be munged by the contents of PATH, which is string
7448 # having a format:
7449 # "DIR[:DIR]:"
7450 # string "DIR[ DIR]" will be prepended to VARIABLE
7451 # ":DIR[:DIR]"
7452 # string "DIR[ DIR]" will be appended to VARIABLE
7453 # "DIRP[:DIRP]::[DIRA:]DIRA"
7454 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7455 # "DIRA[ DIRA]" will be appended to VARIABLE
7456 # "DIR[:DIR]"
7457 # VARIABLE will be replaced by "DIR[ DIR]"
7458 func_munge_path_list ()
7459 {
7460 case x$2 in
7461 x)
7462 ;;
7463 *:)
7464 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7465 ;;
7466 x:*)
7467 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7468 ;;
7469 *::*)
7470 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7471 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7472 ;;
7473 *)
7474 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7475 ;;
7476 esac
7477 }
7478
7479 ac_ext=c
7480 ac_cpp='$CPP $CPPFLAGS'
7481 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7482 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7483 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7485 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7486 # On Suns, sometimes $CPP names a directory.
7487 if test -n "$CPP" && test -d "$CPP"; then
7488 CPP=
7489 fi
7490 if test -z "$CPP"; then
7491 if ${ac_cv_prog_CPP+:} false; then :
7492 $as_echo_n "(cached) " >&6
7493 else
7494 # Double quotes because CPP needs to be expanded
7495 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7496 do
7497 ac_preproc_ok=false
7498 for ac_c_preproc_warn_flag in '' yes
7499 do
7500 # Use a header file that comes with gcc, so configuring glibc
7501 # with a fresh cross-compiler works.
7502 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7503 # <limits.h> exists even on freestanding compilers.
7504 # On the NeXT, cc -E runs the code through the compiler's parser,
7505 # not just through cpp. "Syntax error" is here to catch this case.
7506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7507 /* end confdefs.h. */
7508 #ifdef __STDC__
7509 # include <limits.h>
7510 #else
7511 # include <assert.h>
7512 #endif
7513 Syntax error
7514 _ACEOF
7515 if ac_fn_c_try_cpp "$LINENO"; then :
7516
7517 else
7518 # Broken: fails on valid input.
7519 continue
7520 fi
7521 rm -f conftest.err conftest.i conftest.$ac_ext
7522
7523 # OK, works on sane cases. Now check whether nonexistent headers
7524 # can be detected and how.
7525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7526 /* end confdefs.h. */
7527 #include <ac_nonexistent.h>
7528 _ACEOF
7529 if ac_fn_c_try_cpp "$LINENO"; then :
7530 # Broken: success on invalid input.
7531 continue
7532 else
7533 # Passes both tests.
7534 ac_preproc_ok=:
7535 break
7536 fi
7537 rm -f conftest.err conftest.i conftest.$ac_ext
7538
7539 done
7540 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7541 rm -f conftest.i conftest.err conftest.$ac_ext
7542 if $ac_preproc_ok; then :
7543 break
7544 fi
7545
7546 done
7547 ac_cv_prog_CPP=$CPP
7548
7549 fi
7550 CPP=$ac_cv_prog_CPP
7551 else
7552 ac_cv_prog_CPP=$CPP
7553 fi
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7555 $as_echo "$CPP" >&6; }
7556 ac_preproc_ok=false
7557 for ac_c_preproc_warn_flag in '' yes
7558 do
7559 # Use a header file that comes with gcc, so configuring glibc
7560 # with a fresh cross-compiler works.
7561 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7562 # <limits.h> exists even on freestanding compilers.
7563 # On the NeXT, cc -E runs the code through the compiler's parser,
7564 # not just through cpp. "Syntax error" is here to catch this case.
7565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7566 /* end confdefs.h. */
7567 #ifdef __STDC__
7568 # include <limits.h>
7569 #else
7570 # include <assert.h>
7571 #endif
7572 Syntax error
7573 _ACEOF
7574 if ac_fn_c_try_cpp "$LINENO"; then :
7575
7576 else
7577 # Broken: fails on valid input.
7578 continue
7579 fi
7580 rm -f conftest.err conftest.i conftest.$ac_ext
7581
7582 # OK, works on sane cases. Now check whether nonexistent headers
7583 # can be detected and how.
7584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7585 /* end confdefs.h. */
7586 #include <ac_nonexistent.h>
7587 _ACEOF
7588 if ac_fn_c_try_cpp "$LINENO"; then :
7589 # Broken: success on invalid input.
7590 continue
7591 else
7592 # Passes both tests.
7593 ac_preproc_ok=:
7594 break
7595 fi
7596 rm -f conftest.err conftest.i conftest.$ac_ext
7597
7598 done
7599 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7600 rm -f conftest.i conftest.err conftest.$ac_ext
7601 if $ac_preproc_ok; then :
7602
7603 else
7604 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7605 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7606 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7607 See \`config.log' for more details" "$LINENO" 5; }
7608 fi
7609
7610 ac_ext=c
7611 ac_cpp='$CPP $CPPFLAGS'
7612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7615
7616
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7618 $as_echo_n "checking for ANSI C header files... " >&6; }
7619 if ${ac_cv_header_stdc+:} false; then :
7620 $as_echo_n "(cached) " >&6
7621 else
7622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7623 /* end confdefs.h. */
7624 #include <stdlib.h>
7625 #include <stdarg.h>
7626 #include <string.h>
7627 #include <float.h>
7628
7629 int
7630 main ()
7631 {
7632
7633 ;
7634 return 0;
7635 }
7636 _ACEOF
7637 if ac_fn_c_try_compile "$LINENO"; then :
7638 ac_cv_header_stdc=yes
7639 else
7640 ac_cv_header_stdc=no
7641 fi
7642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7643
7644 if test $ac_cv_header_stdc = yes; then
7645 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7647 /* end confdefs.h. */
7648 #include <string.h>
7649
7650 _ACEOF
7651 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7652 $EGREP "memchr" >/dev/null 2>&1; then :
7653
7654 else
7655 ac_cv_header_stdc=no
7656 fi
7657 rm -f conftest*
7658
7659 fi
7660
7661 if test $ac_cv_header_stdc = yes; then
7662 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7664 /* end confdefs.h. */
7665 #include <stdlib.h>
7666
7667 _ACEOF
7668 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7669 $EGREP "free" >/dev/null 2>&1; then :
7670
7671 else
7672 ac_cv_header_stdc=no
7673 fi
7674 rm -f conftest*
7675
7676 fi
7677
7678 if test $ac_cv_header_stdc = yes; then
7679 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7680 if test "$cross_compiling" = yes; then :
7681 :
7682 else
7683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7684 /* end confdefs.h. */
7685 #include <ctype.h>
7686 #include <stdlib.h>
7687 #if ((' ' & 0x0FF) == 0x020)
7688 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7689 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7690 #else
7691 # define ISLOWER(c) \
7692 (('a' <= (c) && (c) <= 'i') \
7693 || ('j' <= (c) && (c) <= 'r') \
7694 || ('s' <= (c) && (c) <= 'z'))
7695 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7696 #endif
7697
7698 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7699 int
7700 main ()
7701 {
7702 int i;
7703 for (i = 0; i < 256; i++)
7704 if (XOR (islower (i), ISLOWER (i))
7705 || toupper (i) != TOUPPER (i))
7706 return 2;
7707 return 0;
7708 }
7709 _ACEOF
7710 if ac_fn_c_try_run "$LINENO"; then :
7711
7712 else
7713 ac_cv_header_stdc=no
7714 fi
7715 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7716 conftest.$ac_objext conftest.beam conftest.$ac_ext
7717 fi
7718
7719 fi
7720 fi
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7722 $as_echo "$ac_cv_header_stdc" >&6; }
7723 if test $ac_cv_header_stdc = yes; then
7724
7725 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7726
7727 fi
7728
7729 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7730 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7731 inttypes.h stdint.h unistd.h
7732 do :
7733 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7734 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7735 "
7736 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7737 cat >>confdefs.h <<_ACEOF
7738 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7739 _ACEOF
7740
7741 fi
7742
7743 done
7744
7745
7746 for ac_header in dlfcn.h
7747 do :
7748 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7749 "
7750 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7751 cat >>confdefs.h <<_ACEOF
7752 #define HAVE_DLFCN_H 1
7753 _ACEOF
7754
7755 fi
7756
7757 done
7758
7759
7760
7761
7762
7763 # Set options
7764
7765
7766
7767 enable_dlopen=no
7768
7769
7770 enable_win32_dll=no
7771
7772
7773 # Check whether --enable-shared was given.
7774 if test "${enable_shared+set}" = set; then :
7775 enableval=$enable_shared; p=${PACKAGE-default}
7776 case $enableval in
7777 yes) enable_shared=yes ;;
7778 no) enable_shared=no ;;
7779 *)
7780 enable_shared=no
7781 # Look at the argument we got. We use all the common list separators.
7782 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7783 for pkg in $enableval; do
7784 IFS=$lt_save_ifs
7785 if test "X$pkg" = "X$p"; then
7786 enable_shared=yes
7787 fi
7788 done
7789 IFS=$lt_save_ifs
7790 ;;
7791 esac
7792 else
7793 enable_shared=yes
7794 fi
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804 # Check whether --enable-static was given.
7805 if test "${enable_static+set}" = set; then :
7806 enableval=$enable_static; p=${PACKAGE-default}
7807 case $enableval in
7808 yes) enable_static=yes ;;
7809 no) enable_static=no ;;
7810 *)
7811 enable_static=no
7812 # Look at the argument we got. We use all the common list separators.
7813 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7814 for pkg in $enableval; do
7815 IFS=$lt_save_ifs
7816 if test "X$pkg" = "X$p"; then
7817 enable_static=yes
7818 fi
7819 done
7820 IFS=$lt_save_ifs
7821 ;;
7822 esac
7823 else
7824 enable_static=yes
7825 fi
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836 # Check whether --with-pic was given.
7837 if test "${with_pic+set}" = set; then :
7838 withval=$with_pic; lt_p=${PACKAGE-default}
7839 case $withval in
7840 yes|no) pic_mode=$withval ;;
7841 *)
7842 pic_mode=default
7843 # Look at the argument we got. We use all the common list separators.
7844 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7845 for lt_pkg in $withval; do
7846 IFS=$lt_save_ifs
7847 if test "X$lt_pkg" = "X$lt_p"; then
7848 pic_mode=yes
7849 fi
7850 done
7851 IFS=$lt_save_ifs
7852 ;;
7853 esac
7854 else
7855 pic_mode=default
7856 fi
7857
7858
7859
7860
7861
7862
7863
7864
7865 # Check whether --enable-fast-install was given.
7866 if test "${enable_fast_install+set}" = set; then :
7867 enableval=$enable_fast_install; p=${PACKAGE-default}
7868 case $enableval in
7869 yes) enable_fast_install=yes ;;
7870 no) enable_fast_install=no ;;
7871 *)
7872 enable_fast_install=no
7873 # Look at the argument we got. We use all the common list separators.
7874 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7875 for pkg in $enableval; do
7876 IFS=$lt_save_ifs
7877 if test "X$pkg" = "X$p"; then
7878 enable_fast_install=yes
7879 fi
7880 done
7881 IFS=$lt_save_ifs
7882 ;;
7883 esac
7884 else
7885 enable_fast_install=yes
7886 fi
7887
7888
7889
7890
7891
7892
7893
7894
7895 shared_archive_member_spec=
7896 case $host,$enable_shared in
7897 power*-*-aix[5-9]*,yes)
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7899 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7900
7901 # Check whether --with-aix-soname was given.
7902 if test "${with_aix_soname+set}" = set; then :
7903 withval=$with_aix_soname; case $withval in
7904 aix|svr4|both)
7905 ;;
7906 *)
7907 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7908 ;;
7909 esac
7910 lt_cv_with_aix_soname=$with_aix_soname
7911 else
7912 if ${lt_cv_with_aix_soname+:} false; then :
7913 $as_echo_n "(cached) " >&6
7914 else
7915 lt_cv_with_aix_soname=aix
7916 fi
7917
7918 with_aix_soname=$lt_cv_with_aix_soname
7919 fi
7920
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7922 $as_echo "$with_aix_soname" >&6; }
7923 if test aix != "$with_aix_soname"; then
7924 # For the AIX way of multilib, we name the shared archive member
7925 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7926 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7927 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7928 # the AIX toolchain works better with OBJECT_MODE set (default 32).
7929 if test 64 = "${OBJECT_MODE-32}"; then
7930 shared_archive_member_spec=shr_64
7931 else
7932 shared_archive_member_spec=shr
7933 fi
7934 fi
7935 ;;
7936 *)
7937 with_aix_soname=aix
7938 ;;
7939 esac
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950 # This can be used to rebuild libtool when needed
7951 LIBTOOL_DEPS=$ltmain
7952
7953 # Always use our own libtool.
7954 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985 test -z "$LN_S" && LN_S="ln -s"
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000 if test -n "${ZSH_VERSION+set}"; then
8001 setopt NO_GLOB_SUBST
8002 fi
8003
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8005 $as_echo_n "checking for objdir... " >&6; }
8006 if ${lt_cv_objdir+:} false; then :
8007 $as_echo_n "(cached) " >&6
8008 else
8009 rm -f .libs 2>/dev/null
8010 mkdir .libs 2>/dev/null
8011 if test -d .libs; then
8012 lt_cv_objdir=.libs
8013 else
8014 # MS-DOS does not allow filenames that begin with a dot.
8015 lt_cv_objdir=_libs
8016 fi
8017 rmdir .libs 2>/dev/null
8018 fi
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8020 $as_echo "$lt_cv_objdir" >&6; }
8021 objdir=$lt_cv_objdir
8022
8023
8024
8025
8026
8027 cat >>confdefs.h <<_ACEOF
8028 #define LT_OBJDIR "$lt_cv_objdir/"
8029 _ACEOF
8030
8031
8032
8033
8034 case $host_os in
8035 aix3*)
8036 # AIX sometimes has problems with the GCC collect2 program. For some
8037 # reason, if we set the COLLECT_NAMES environment variable, the problems
8038 # vanish in a puff of smoke.
8039 if test set != "${COLLECT_NAMES+set}"; then
8040 COLLECT_NAMES=
8041 export COLLECT_NAMES
8042 fi
8043 ;;
8044 esac
8045
8046 # Global variables:
8047 ofile=libtool
8048 can_build_shared=yes
8049
8050 # All known linkers require a '.a' archive for static linking (except MSVC,
8051 # which needs '.lib').
8052 libext=a
8053
8054 with_gnu_ld=$lt_cv_prog_gnu_ld
8055
8056 old_CC=$CC
8057 old_CFLAGS=$CFLAGS
8058
8059 # Set sane defaults for various variables
8060 test -z "$CC" && CC=cc
8061 test -z "$LTCC" && LTCC=$CC
8062 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8063 test -z "$LD" && LD=ld
8064 test -z "$ac_objext" && ac_objext=o
8065
8066 func_cc_basename $compiler
8067 cc_basename=$func_cc_basename_result
8068
8069
8070 # Only perform the check for file, if the check method requires it
8071 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8072 case $deplibs_check_method in
8073 file_magic*)
8074 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8076 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8077 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8078 $as_echo_n "(cached) " >&6
8079 else
8080 case $MAGIC_CMD in
8081 [\\/*] | ?:[\\/]*)
8082 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8083 ;;
8084 *)
8085 lt_save_MAGIC_CMD=$MAGIC_CMD
8086 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8087 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8088 for ac_dir in $ac_dummy; do
8089 IFS=$lt_save_ifs
8090 test -z "$ac_dir" && ac_dir=.
8091 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8092 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8093 if test -n "$file_magic_test_file"; then
8094 case $deplibs_check_method in
8095 "file_magic "*)
8096 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8097 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8098 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8099 $EGREP "$file_magic_regex" > /dev/null; then
8100 :
8101 else
8102 cat <<_LT_EOF 1>&2
8103
8104 *** Warning: the command libtool uses to detect shared libraries,
8105 *** $file_magic_cmd, produces output that libtool cannot recognize.
8106 *** The result is that libtool may fail to recognize shared libraries
8107 *** as such. This will affect the creation of libtool libraries that
8108 *** depend on shared libraries, but programs linked with such libtool
8109 *** libraries will work regardless of this problem. Nevertheless, you
8110 *** may want to report the problem to your system manager and/or to
8111 *** bug-libtool (at] gnu.org
8112
8113 _LT_EOF
8114 fi ;;
8115 esac
8116 fi
8117 break
8118 fi
8119 done
8120 IFS=$lt_save_ifs
8121 MAGIC_CMD=$lt_save_MAGIC_CMD
8122 ;;
8123 esac
8124 fi
8125
8126 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8127 if test -n "$MAGIC_CMD"; then
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8129 $as_echo "$MAGIC_CMD" >&6; }
8130 else
8131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8132 $as_echo "no" >&6; }
8133 fi
8134
8135
8136
8137
8138
8139 if test -z "$lt_cv_path_MAGIC_CMD"; then
8140 if test -n "$ac_tool_prefix"; then
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8142 $as_echo_n "checking for file... " >&6; }
8143 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8144 $as_echo_n "(cached) " >&6
8145 else
8146 case $MAGIC_CMD in
8147 [\\/*] | ?:[\\/]*)
8148 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8149 ;;
8150 *)
8151 lt_save_MAGIC_CMD=$MAGIC_CMD
8152 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8153 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8154 for ac_dir in $ac_dummy; do
8155 IFS=$lt_save_ifs
8156 test -z "$ac_dir" && ac_dir=.
8157 if test -f "$ac_dir/file"; then
8158 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8159 if test -n "$file_magic_test_file"; then
8160 case $deplibs_check_method in
8161 "file_magic "*)
8162 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8163 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8164 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8165 $EGREP "$file_magic_regex" > /dev/null; then
8166 :
8167 else
8168 cat <<_LT_EOF 1>&2
8169
8170 *** Warning: the command libtool uses to detect shared libraries,
8171 *** $file_magic_cmd, produces output that libtool cannot recognize.
8172 *** The result is that libtool may fail to recognize shared libraries
8173 *** as such. This will affect the creation of libtool libraries that
8174 *** depend on shared libraries, but programs linked with such libtool
8175 *** libraries will work regardless of this problem. Nevertheless, you
8176 *** may want to report the problem to your system manager and/or to
8177 *** bug-libtool (at] gnu.org
8178
8179 _LT_EOF
8180 fi ;;
8181 esac
8182 fi
8183 break
8184 fi
8185 done
8186 IFS=$lt_save_ifs
8187 MAGIC_CMD=$lt_save_MAGIC_CMD
8188 ;;
8189 esac
8190 fi
8191
8192 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8193 if test -n "$MAGIC_CMD"; then
8194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8195 $as_echo "$MAGIC_CMD" >&6; }
8196 else
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8198 $as_echo "no" >&6; }
8199 fi
8200
8201
8202 else
8203 MAGIC_CMD=:
8204 fi
8205 fi
8206
8207 fi
8208 ;;
8209 esac
8210
8211 # Use C for the default configuration in the libtool script
8212
8213 lt_save_CC=$CC
8214 ac_ext=c
8215 ac_cpp='$CPP $CPPFLAGS'
8216 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8217 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8218 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8219
8220
8221 # Source file extension for C test sources.
8222 ac_ext=c
8223
8224 # Object file extension for compiled C test sources.
8225 objext=o
8226 objext=$objext
8227
8228 # Code to be used in simple compile tests
8229 lt_simple_compile_test_code="int some_variable = 0;"
8230
8231 # Code to be used in simple link tests
8232 lt_simple_link_test_code='int main(){return(0);}'
8233
8234
8235
8236
8237
8238
8239
8240 # If no C compiler was specified, use CC.
8241 LTCC=${LTCC-"$CC"}
8242
8243 # If no C compiler flags were specified, use CFLAGS.
8244 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8245
8246 # Allow CC to be a program name with arguments.
8247 compiler=$CC
8248
8249 # Save the default compiler, since it gets overwritten when the other
8250 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8251 compiler_DEFAULT=$CC
8252
8253 # save warnings/boilerplate of simple test code
8254 ac_outfile=conftest.$ac_objext
8255 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8256 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8257 _lt_compiler_boilerplate=`cat conftest.err`
8258 $RM conftest*
8259
8260 ac_outfile=conftest.$ac_objext
8261 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8262 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8263 _lt_linker_boilerplate=`cat conftest.err`
8264 $RM -r conftest*
8265
8266
8267 if test -n "$compiler"; then
8268
8269 lt_prog_compiler_no_builtin_flag=
8270
8271 if test yes = "$GCC"; then
8272 case $cc_basename in
8273 nvcc*)
8274 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8275 *)
8276 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8277 esac
8278
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8280 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8281 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8282 $as_echo_n "(cached) " >&6
8283 else
8284 lt_cv_prog_compiler_rtti_exceptions=no
8285 ac_outfile=conftest.$ac_objext
8286 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8287 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8288 # Insert the option either (1) after the last *FLAGS variable, or
8289 # (2) before a word containing "conftest.", or (3) at the end.
8290 # Note that $ac_compile itself does not contain backslashes and begins
8291 # with a dollar sign (not a hyphen), so the echo should work correctly.
8292 # The option is referenced via a variable to avoid confusing sed.
8293 lt_compile=`echo "$ac_compile" | $SED \
8294 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8295 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8296 -e 's:$: $lt_compiler_flag:'`
8297 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8298 (eval "$lt_compile" 2>conftest.err)
8299 ac_status=$?
8300 cat conftest.err >&5
8301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302 if (exit $ac_status) && test -s "$ac_outfile"; then
8303 # The compiler can only warn and ignore the option if not recognized
8304 # So say no if there are warnings other than the usual output.
8305 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8306 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8307 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8308 lt_cv_prog_compiler_rtti_exceptions=yes
8309 fi
8310 fi
8311 $RM conftest*
8312
8313 fi
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8315 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8316
8317 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8318 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8319 else
8320 :
8321 fi
8322
8323 fi
8324
8325
8326
8327
8328
8329
8330 lt_prog_compiler_wl=
8331 lt_prog_compiler_pic=
8332 lt_prog_compiler_static=
8333
8334
8335 if test yes = "$GCC"; then
8336 lt_prog_compiler_wl='-Wl,'
8337 lt_prog_compiler_static='-static'
8338
8339 case $host_os in
8340 aix*)
8341 # All AIX code is PIC.
8342 if test ia64 = "$host_cpu"; then
8343 # AIX 5 now supports IA64 processor
8344 lt_prog_compiler_static='-Bstatic'
8345 fi
8346 lt_prog_compiler_pic='-fPIC'
8347 ;;
8348
8349 amigaos*)
8350 case $host_cpu in
8351 powerpc)
8352 # see comment about AmigaOS4 .so support
8353 lt_prog_compiler_pic='-fPIC'
8354 ;;
8355 m68k)
8356 # FIXME: we need at least 68020 code to build shared libraries, but
8357 # adding the '-m68020' flag to GCC prevents building anything better,
8358 # like '-m68040'.
8359 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8360 ;;
8361 esac
8362 ;;
8363
8364 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8365 # PIC is the default for these OSes.
8366 ;;
8367
8368 mingw* | cygwin* | pw32* | os2* | cegcc*)
8369 # This hack is so that the source file can tell whether it is being
8370 # built for inclusion in a dll (and should export symbols for example).
8371 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8372 # (--disable-auto-import) libraries
8373 lt_prog_compiler_pic='-DDLL_EXPORT'
8374 case $host_os in
8375 os2*)
8376 lt_prog_compiler_static='$wl-static'
8377 ;;
8378 esac
8379 ;;
8380
8381 darwin* | rhapsody*)
8382 # PIC is the default on this platform
8383 # Common symbols not allowed in MH_DYLIB files
8384 lt_prog_compiler_pic='-fno-common'
8385 ;;
8386
8387 haiku*)
8388 # PIC is the default for Haiku.
8389 # The "-static" flag exists, but is broken.
8390 lt_prog_compiler_static=
8391 ;;
8392
8393 hpux*)
8394 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8395 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8396 # sets the default TLS model and affects inlining.
8397 case $host_cpu in
8398 hppa*64*)
8399 # +Z the default
8400 ;;
8401 *)
8402 lt_prog_compiler_pic='-fPIC'
8403 ;;
8404 esac
8405 ;;
8406
8407 interix[3-9]*)
8408 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8409 # Instead, we relocate shared libraries at runtime.
8410 ;;
8411
8412 msdosdjgpp*)
8413 # Just because we use GCC doesn't mean we suddenly get shared libraries
8414 # on systems that don't support them.
8415 lt_prog_compiler_can_build_shared=no
8416 enable_shared=no
8417 ;;
8418
8419 *nto* | *qnx*)
8420 # QNX uses GNU C++, but need to define -shared option too, otherwise
8421 # it will coredump.
8422 lt_prog_compiler_pic='-fPIC -shared'
8423 ;;
8424
8425 sysv4*MP*)
8426 if test -d /usr/nec; then
8427 lt_prog_compiler_pic=-Kconform_pic
8428 fi
8429 ;;
8430
8431 *)
8432 lt_prog_compiler_pic='-fPIC'
8433 ;;
8434 esac
8435
8436 case $cc_basename in
8437 nvcc*) # Cuda Compiler Driver 2.2
8438 lt_prog_compiler_wl='-Xlinker '
8439 if test -n "$lt_prog_compiler_pic"; then
8440 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8441 fi
8442 ;;
8443 esac
8444 else
8445 # PORTME Check for flag to pass linker flags through the system compiler.
8446 case $host_os in
8447 aix*)
8448 lt_prog_compiler_wl='-Wl,'
8449 if test ia64 = "$host_cpu"; then
8450 # AIX 5 now supports IA64 processor
8451 lt_prog_compiler_static='-Bstatic'
8452 else
8453 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8454 fi
8455 ;;
8456
8457 darwin* | rhapsody*)
8458 # PIC is the default on this platform
8459 # Common symbols not allowed in MH_DYLIB files
8460 lt_prog_compiler_pic='-fno-common'
8461 case $cc_basename in
8462 nagfor*)
8463 # NAG Fortran compiler
8464 lt_prog_compiler_wl='-Wl,-Wl,,'
8465 lt_prog_compiler_pic='-PIC'
8466 lt_prog_compiler_static='-Bstatic'
8467 ;;
8468 esac
8469 ;;
8470
8471 mingw* | cygwin* | pw32* | os2* | cegcc*)
8472 # This hack is so that the source file can tell whether it is being
8473 # built for inclusion in a dll (and should export symbols for example).
8474 lt_prog_compiler_pic='-DDLL_EXPORT'
8475 case $host_os in
8476 os2*)
8477 lt_prog_compiler_static='$wl-static'
8478 ;;
8479 esac
8480 ;;
8481
8482 hpux9* | hpux10* | hpux11*)
8483 lt_prog_compiler_wl='-Wl,'
8484 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8485 # not for PA HP-UX.
8486 case $host_cpu in
8487 hppa*64*|ia64*)
8488 # +Z the default
8489 ;;
8490 *)
8491 lt_prog_compiler_pic='+Z'
8492 ;;
8493 esac
8494 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8495 lt_prog_compiler_static='$wl-a ${wl}archive'
8496 ;;
8497
8498 irix5* | irix6* | nonstopux*)
8499 lt_prog_compiler_wl='-Wl,'
8500 # PIC (with -KPIC) is the default.
8501 lt_prog_compiler_static='-non_shared'
8502 ;;
8503
8504 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8505 case $cc_basename in
8506 # old Intel for x86_64, which still supported -KPIC.
8507 ecc*)
8508 lt_prog_compiler_wl='-Wl,'
8509 lt_prog_compiler_pic='-KPIC'
8510 lt_prog_compiler_static='-static'
8511 ;;
8512 # icc used to be incompatible with GCC.
8513 # ICC 10 doesn't accept -KPIC any more.
8514 icc* | ifort*)
8515 lt_prog_compiler_wl='-Wl,'
8516 lt_prog_compiler_pic='-fPIC'
8517 lt_prog_compiler_static='-static'
8518 ;;
8519 # Lahey Fortran 8.1.
8520 lf95*)
8521 lt_prog_compiler_wl='-Wl,'
8522 lt_prog_compiler_pic='--shared'
8523 lt_prog_compiler_static='--static'
8524 ;;
8525 nagfor*)
8526 # NAG Fortran compiler
8527 lt_prog_compiler_wl='-Wl,-Wl,,'
8528 lt_prog_compiler_pic='-PIC'
8529 lt_prog_compiler_static='-Bstatic'
8530 ;;
8531 tcc*)
8532 # Fabrice Bellard et al's Tiny C Compiler
8533 lt_prog_compiler_wl='-Wl,'
8534 lt_prog_compiler_pic='-fPIC'
8535 lt_prog_compiler_static='-static'
8536 ;;
8537 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8538 # Portland Group compilers (*not* the Pentium gcc compiler,
8539 # which looks to be a dead project)
8540 lt_prog_compiler_wl='-Wl,'
8541 lt_prog_compiler_pic='-fpic'
8542 lt_prog_compiler_static='-Bstatic'
8543 ;;
8544 ccc*)
8545 lt_prog_compiler_wl='-Wl,'
8546 # All Alpha code is PIC.
8547 lt_prog_compiler_static='-non_shared'
8548 ;;
8549 xl* | bgxl* | bgf* | mpixl*)
8550 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8551 lt_prog_compiler_wl='-Wl,'
8552 lt_prog_compiler_pic='-qpic'
8553 lt_prog_compiler_static='-qstaticlink'
8554 ;;
8555 *)
8556 case `$CC -V 2>&1 | sed 5q` in
8557 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8558 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8559 lt_prog_compiler_pic='-KPIC'
8560 lt_prog_compiler_static='-Bstatic'
8561 lt_prog_compiler_wl=''
8562 ;;
8563 *Sun\ F* | *Sun*Fortran*)
8564 lt_prog_compiler_pic='-KPIC'
8565 lt_prog_compiler_static='-Bstatic'
8566 lt_prog_compiler_wl='-Qoption ld '
8567 ;;
8568 *Sun\ C*)
8569 # Sun C 5.9
8570 lt_prog_compiler_pic='-KPIC'
8571 lt_prog_compiler_static='-Bstatic'
8572 lt_prog_compiler_wl='-Wl,'
8573 ;;
8574 *Intel*\ [CF]*Compiler*)
8575 lt_prog_compiler_wl='-Wl,'
8576 lt_prog_compiler_pic='-fPIC'
8577 lt_prog_compiler_static='-static'
8578 ;;
8579 *Portland\ Group*)
8580 lt_prog_compiler_wl='-Wl,'
8581 lt_prog_compiler_pic='-fpic'
8582 lt_prog_compiler_static='-Bstatic'
8583 ;;
8584 esac
8585 ;;
8586 esac
8587 ;;
8588
8589 newsos6)
8590 lt_prog_compiler_pic='-KPIC'
8591 lt_prog_compiler_static='-Bstatic'
8592 ;;
8593
8594 *nto* | *qnx*)
8595 # QNX uses GNU C++, but need to define -shared option too, otherwise
8596 # it will coredump.
8597 lt_prog_compiler_pic='-fPIC -shared'
8598 ;;
8599
8600 osf3* | osf4* | osf5*)
8601 lt_prog_compiler_wl='-Wl,'
8602 # All OSF/1 code is PIC.
8603 lt_prog_compiler_static='-non_shared'
8604 ;;
8605
8606 rdos*)
8607 lt_prog_compiler_static='-non_shared'
8608 ;;
8609
8610 solaris*)
8611 lt_prog_compiler_pic='-KPIC'
8612 lt_prog_compiler_static='-Bstatic'
8613 case $cc_basename in
8614 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8615 lt_prog_compiler_wl='-Qoption ld ';;
8616 *)
8617 lt_prog_compiler_wl='-Wl,';;
8618 esac
8619 ;;
8620
8621 sunos4*)
8622 lt_prog_compiler_wl='-Qoption ld '
8623 lt_prog_compiler_pic='-PIC'
8624 lt_prog_compiler_static='-Bstatic'
8625 ;;
8626
8627 sysv4 | sysv4.2uw2* | sysv4.3*)
8628 lt_prog_compiler_wl='-Wl,'
8629 lt_prog_compiler_pic='-KPIC'
8630 lt_prog_compiler_static='-Bstatic'
8631 ;;
8632
8633 sysv4*MP*)
8634 if test -d /usr/nec; then
8635 lt_prog_compiler_pic='-Kconform_pic'
8636 lt_prog_compiler_static='-Bstatic'
8637 fi
8638 ;;
8639
8640 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8641 lt_prog_compiler_wl='-Wl,'
8642 lt_prog_compiler_pic='-KPIC'
8643 lt_prog_compiler_static='-Bstatic'
8644 ;;
8645
8646 unicos*)
8647 lt_prog_compiler_wl='-Wl,'
8648 lt_prog_compiler_can_build_shared=no
8649 ;;
8650
8651 uts4*)
8652 lt_prog_compiler_pic='-pic'
8653 lt_prog_compiler_static='-Bstatic'
8654 ;;
8655
8656 *)
8657 lt_prog_compiler_can_build_shared=no
8658 ;;
8659 esac
8660 fi
8661
8662 case $host_os in
8663 # For platforms that do not support PIC, -DPIC is meaningless:
8664 *djgpp*)
8665 lt_prog_compiler_pic=
8666 ;;
8667 *)
8668 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8669 ;;
8670 esac
8671
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8673 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8674 if ${lt_cv_prog_compiler_pic+:} false; then :
8675 $as_echo_n "(cached) " >&6
8676 else
8677 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8678 fi
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8680 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8681 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8682
8683 #
8684 # Check to make sure the PIC flag actually works.
8685 #
8686 if test -n "$lt_prog_compiler_pic"; then
8687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8688 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8689 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8690 $as_echo_n "(cached) " >&6
8691 else
8692 lt_cv_prog_compiler_pic_works=no
8693 ac_outfile=conftest.$ac_objext
8694 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8695 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8696 # Insert the option either (1) after the last *FLAGS variable, or
8697 # (2) before a word containing "conftest.", or (3) at the end.
8698 # Note that $ac_compile itself does not contain backslashes and begins
8699 # with a dollar sign (not a hyphen), so the echo should work correctly.
8700 # The option is referenced via a variable to avoid confusing sed.
8701 lt_compile=`echo "$ac_compile" | $SED \
8702 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8703 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8704 -e 's:$: $lt_compiler_flag:'`
8705 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8706 (eval "$lt_compile" 2>conftest.err)
8707 ac_status=$?
8708 cat conftest.err >&5
8709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710 if (exit $ac_status) && test -s "$ac_outfile"; then
8711 # The compiler can only warn and ignore the option if not recognized
8712 # So say no if there are warnings other than the usual output.
8713 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8714 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8715 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8716 lt_cv_prog_compiler_pic_works=yes
8717 fi
8718 fi
8719 $RM conftest*
8720
8721 fi
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8723 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8724
8725 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8726 case $lt_prog_compiler_pic in
8727 "" | " "*) ;;
8728 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8729 esac
8730 else
8731 lt_prog_compiler_pic=
8732 lt_prog_compiler_can_build_shared=no
8733 fi
8734
8735 fi
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747 #
8748 # Check to make sure the static flag actually works.
8749 #
8750 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8752 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8753 if ${lt_cv_prog_compiler_static_works+:} false; then :
8754 $as_echo_n "(cached) " >&6
8755 else
8756 lt_cv_prog_compiler_static_works=no
8757 save_LDFLAGS=$LDFLAGS
8758 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8759 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8760 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8761 # The linker can only warn and ignore the option if not recognized
8762 # So say no if there are warnings
8763 if test -s conftest.err; then
8764 # Append any errors to the config.log.
8765 cat conftest.err 1>&5
8766 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8767 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8768 if diff conftest.exp conftest.er2 >/dev/null; then
8769 lt_cv_prog_compiler_static_works=yes
8770 fi
8771 else
8772 lt_cv_prog_compiler_static_works=yes
8773 fi
8774 fi
8775 $RM -r conftest*
8776 LDFLAGS=$save_LDFLAGS
8777
8778 fi
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8780 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8781
8782 if test yes = "$lt_cv_prog_compiler_static_works"; then
8783 :
8784 else
8785 lt_prog_compiler_static=
8786 fi
8787
8788
8789
8790
8791
8792
8793
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8795 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8796 if ${lt_cv_prog_compiler_c_o+:} false; then :
8797 $as_echo_n "(cached) " >&6
8798 else
8799 lt_cv_prog_compiler_c_o=no
8800 $RM -r conftest 2>/dev/null
8801 mkdir conftest
8802 cd conftest
8803 mkdir out
8804 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8805
8806 lt_compiler_flag="-o out/conftest2.$ac_objext"
8807 # Insert the option either (1) after the last *FLAGS variable, or
8808 # (2) before a word containing "conftest.", or (3) at the end.
8809 # Note that $ac_compile itself does not contain backslashes and begins
8810 # with a dollar sign (not a hyphen), so the echo should work correctly.
8811 lt_compile=`echo "$ac_compile" | $SED \
8812 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8813 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8814 -e 's:$: $lt_compiler_flag:'`
8815 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8816 (eval "$lt_compile" 2>out/conftest.err)
8817 ac_status=$?
8818 cat out/conftest.err >&5
8819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8820 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8821 then
8822 # The compiler can only warn and ignore the option if not recognized
8823 # So say no if there are warnings
8824 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8825 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8826 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8827 lt_cv_prog_compiler_c_o=yes
8828 fi
8829 fi
8830 chmod u+w . 2>&5
8831 $RM conftest*
8832 # SGI C++ compiler will create directory out/ii_files/ for
8833 # template instantiation
8834 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8835 $RM out/* && rmdir out
8836 cd ..
8837 $RM -r conftest
8838 $RM conftest*
8839
8840 fi
8841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8842 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8843
8844
8845
8846
8847
8848
8849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8850 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8851 if ${lt_cv_prog_compiler_c_o+:} false; then :
8852 $as_echo_n "(cached) " >&6
8853 else
8854 lt_cv_prog_compiler_c_o=no
8855 $RM -r conftest 2>/dev/null
8856 mkdir conftest
8857 cd conftest
8858 mkdir out
8859 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8860
8861 lt_compiler_flag="-o out/conftest2.$ac_objext"
8862 # Insert the option either (1) after the last *FLAGS variable, or
8863 # (2) before a word containing "conftest.", or (3) at the end.
8864 # Note that $ac_compile itself does not contain backslashes and begins
8865 # with a dollar sign (not a hyphen), so the echo should work correctly.
8866 lt_compile=`echo "$ac_compile" | $SED \
8867 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8868 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8869 -e 's:$: $lt_compiler_flag:'`
8870 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8871 (eval "$lt_compile" 2>out/conftest.err)
8872 ac_status=$?
8873 cat out/conftest.err >&5
8874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8875 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8876 then
8877 # The compiler can only warn and ignore the option if not recognized
8878 # So say no if there are warnings
8879 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8880 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8881 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8882 lt_cv_prog_compiler_c_o=yes
8883 fi
8884 fi
8885 chmod u+w . 2>&5
8886 $RM conftest*
8887 # SGI C++ compiler will create directory out/ii_files/ for
8888 # template instantiation
8889 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8890 $RM out/* && rmdir out
8891 cd ..
8892 $RM -r conftest
8893 $RM conftest*
8894
8895 fi
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8897 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8898
8899
8900
8901
8902 hard_links=nottested
8903 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8904 # do not overwrite the value of need_locks provided by the user
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8906 $as_echo_n "checking if we can lock with hard links... " >&6; }
8907 hard_links=yes
8908 $RM conftest*
8909 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8910 touch conftest.a
8911 ln conftest.a conftest.b 2>&5 || hard_links=no
8912 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8914 $as_echo "$hard_links" >&6; }
8915 if test no = "$hard_links"; then
8916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8917 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8918 need_locks=warn
8919 fi
8920 else
8921 need_locks=no
8922 fi
8923
8924
8925
8926
8927
8928
8929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8930 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8931
8932 runpath_var=
8933 allow_undefined_flag=
8934 always_export_symbols=no
8935 archive_cmds=
8936 archive_expsym_cmds=
8937 compiler_needs_object=no
8938 enable_shared_with_static_runtimes=no
8939 export_dynamic_flag_spec=
8940 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8941 hardcode_automatic=no
8942 hardcode_direct=no
8943 hardcode_direct_absolute=no
8944 hardcode_libdir_flag_spec=
8945 hardcode_libdir_separator=
8946 hardcode_minus_L=no
8947 hardcode_shlibpath_var=unsupported
8948 inherit_rpath=no
8949 link_all_deplibs=unknown
8950 module_cmds=
8951 module_expsym_cmds=
8952 old_archive_from_new_cmds=
8953 old_archive_from_expsyms_cmds=
8954 thread_safe_flag_spec=
8955 whole_archive_flag_spec=
8956 # include_expsyms should be a list of space-separated symbols to be *always*
8957 # included in the symbol list
8958 include_expsyms=
8959 # exclude_expsyms can be an extended regexp of symbols to exclude
8960 # it will be wrapped by ' (' and ')$', so one must not match beginning or
8961 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8962 # as well as any symbol that contains 'd'.
8963 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8964 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8965 # platforms (ab)use it in PIC code, but their linkers get confused if
8966 # the symbol is explicitly referenced. Since portable code cannot
8967 # rely on this symbol name, it's probably fine to never include it in
8968 # preloaded symbol tables.
8969 # Exclude shared library initialization/finalization symbols.
8970 extract_expsyms_cmds=
8971
8972 case $host_os in
8973 cygwin* | mingw* | pw32* | cegcc*)
8974 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8975 # When not using gcc, we currently assume that we are using
8976 # Microsoft Visual C++.
8977 if test yes != "$GCC"; then
8978 with_gnu_ld=no
8979 fi
8980 ;;
8981 interix*)
8982 # we just hope/assume this is gcc and not c89 (= MSVC++)
8983 with_gnu_ld=yes
8984 ;;
8985 openbsd* | bitrig*)
8986 with_gnu_ld=no
8987 ;;
8988 esac
8989
8990 ld_shlibs=yes
8991
8992 # On some targets, GNU ld is compatible enough with the native linker
8993 # that we're better off using the native interface for both.
8994 lt_use_gnu_ld_interface=no
8995 if test yes = "$with_gnu_ld"; then
8996 case $host_os in
8997 aix*)
8998 # The AIX port of GNU ld has always aspired to compatibility
8999 # with the native linker. However, as the warning in the GNU ld
9000 # block says, versions before 2.19.5* couldn't really create working
9001 # shared libraries, regardless of the interface used.
9002 case `$LD -v 2>&1` in
9003 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9004 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9005 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9006 *)
9007 lt_use_gnu_ld_interface=yes
9008 ;;
9009 esac
9010 ;;
9011 *)
9012 lt_use_gnu_ld_interface=yes
9013 ;;
9014 esac
9015 fi
9016
9017 if test yes = "$lt_use_gnu_ld_interface"; then
9018 # If archive_cmds runs LD, not CC, wlarc should be empty
9019 wlarc='$wl'
9020
9021 # Set some defaults for GNU ld with shared library support. These
9022 # are reset later if shared libraries are not supported. Putting them
9023 # here allows them to be overridden if necessary.
9024 runpath_var=LD_RUN_PATH
9025 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9026 export_dynamic_flag_spec='$wl--export-dynamic'
9027 # ancient GNU ld didn't support --whole-archive et. al.
9028 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9029 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9030 else
9031 whole_archive_flag_spec=
9032 fi
9033 supports_anon_versioning=no
9034 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9035 *GNU\ gold*) supports_anon_versioning=yes ;;
9036 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9037 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9038 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9039 *\ 2.11.*) ;; # other 2.11 versions
9040 *) supports_anon_versioning=yes ;;
9041 esac
9042
9043 # See if GNU ld supports shared libraries.
9044 case $host_os in
9045 aix[3-9]*)
9046 # On AIX/PPC, the GNU linker is very broken
9047 if test ia64 != "$host_cpu"; then
9048 ld_shlibs=no
9049 cat <<_LT_EOF 1>&2
9050
9051 *** Warning: the GNU linker, at least up to release 2.19, is reported
9052 *** to be unable to reliably create shared libraries on AIX.
9053 *** Therefore, libtool is disabling shared libraries support. If you
9054 *** really care for shared libraries, you may want to install binutils
9055 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9056 *** You will then need to restart the configuration process.
9057
9058 _LT_EOF
9059 fi
9060 ;;
9061
9062 amigaos*)
9063 case $host_cpu in
9064 powerpc)
9065 # see comment about AmigaOS4 .so support
9066 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9067 archive_expsym_cmds=''
9068 ;;
9069 m68k)
9070 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)'
9071 hardcode_libdir_flag_spec='-L$libdir'
9072 hardcode_minus_L=yes
9073 ;;
9074 esac
9075 ;;
9076
9077 beos*)
9078 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9079 allow_undefined_flag=unsupported
9080 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
9081 # support --undefined. This deserves some investigation. FIXME
9082 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9083 else
9084 ld_shlibs=no
9085 fi
9086 ;;
9087
9088 cygwin* | mingw* | pw32* | cegcc*)
9089 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9090 # as there is no search path for DLLs.
9091 hardcode_libdir_flag_spec='-L$libdir'
9092 export_dynamic_flag_spec='$wl--export-all-symbols'
9093 allow_undefined_flag=unsupported
9094 always_export_symbols=no
9095 enable_shared_with_static_runtimes=yes
9096 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'
9097 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9098
9099 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9100 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9101 # If the export-symbols file already is a .def file, use it as
9102 # is; otherwise, prepend EXPORTS...
9103 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9104 cp $export_symbols $output_objdir/$soname.def;
9105 else
9106 echo EXPORTS > $output_objdir/$soname.def;
9107 cat $export_symbols >> $output_objdir/$soname.def;
9108 fi~
9109 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9110 else
9111 ld_shlibs=no
9112 fi
9113 ;;
9114
9115 haiku*)
9116 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9117 link_all_deplibs=yes
9118 ;;
9119
9120 os2*)
9121 hardcode_libdir_flag_spec='-L$libdir'
9122 hardcode_minus_L=yes
9123 allow_undefined_flag=unsupported
9124 shrext_cmds=.dll
9125 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9126 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9127 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9128 $ECHO EXPORTS >> $output_objdir/$libname.def~
9129 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9130 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9131 emximp -o $lib $output_objdir/$libname.def'
9132 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9133 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9134 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9135 $ECHO EXPORTS >> $output_objdir/$libname.def~
9136 prefix_cmds="$SED"~
9137 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9138 prefix_cmds="$prefix_cmds -e 1d";
9139 fi~
9140 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9141 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9142 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9143 emximp -o $lib $output_objdir/$libname.def'
9144 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9145 enable_shared_with_static_runtimes=yes
9146 ;;
9147
9148 interix[3-9]*)
9149 hardcode_direct=no
9150 hardcode_shlibpath_var=no
9151 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9152 export_dynamic_flag_spec='$wl-E'
9153 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9154 # Instead, shared libraries are loaded at an image base (0x10000000 by
9155 # default) and relocated if they conflict, which is a slow very memory
9156 # consuming and fragmenting process. To avoid this, we pick a random,
9157 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9158 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9159 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9160 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'
9161 ;;
9162
9163 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9164 tmp_diet=no
9165 if test linux-dietlibc = "$host_os"; then
9166 case $cc_basename in
9167 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9168 esac
9169 fi
9170 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9171 && test no = "$tmp_diet"
9172 then
9173 tmp_addflag=' $pic_flag'
9174 tmp_sharedflag='-shared'
9175 case $cc_basename,$host_cpu in
9176 pgcc*) # Portland Group C compiler
9177 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'
9178 tmp_addflag=' $pic_flag'
9179 ;;
9180 pgf77* | pgf90* | pgf95* | pgfortran*)
9181 # Portland Group f77 and f90 compilers
9182 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'
9183 tmp_addflag=' $pic_flag -Mnomain' ;;
9184 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9185 tmp_addflag=' -i_dynamic' ;;
9186 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9187 tmp_addflag=' -i_dynamic -nofor_main' ;;
9188 ifc* | ifort*) # Intel Fortran compiler
9189 tmp_addflag=' -nofor_main' ;;
9190 lf95*) # Lahey Fortran 8.1
9191 whole_archive_flag_spec=
9192 tmp_sharedflag='--shared' ;;
9193 nagfor*) # NAGFOR 5.3
9194 tmp_sharedflag='-Wl,-shared' ;;
9195 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9196 tmp_sharedflag='-qmkshrobj'
9197 tmp_addflag= ;;
9198 nvcc*) # Cuda Compiler Driver 2.2
9199 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'
9200 compiler_needs_object=yes
9201 ;;
9202 esac
9203 case `$CC -V 2>&1 | sed 5q` in
9204 *Sun\ C*) # Sun C 5.9
9205 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'
9206 compiler_needs_object=yes
9207 tmp_sharedflag='-G' ;;
9208 *Sun\ F*) # Sun Fortran 8.3
9209 tmp_sharedflag='-G' ;;
9210 esac
9211 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9212
9213 if test yes = "$supports_anon_versioning"; then
9214 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9215 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9216 echo "local: *; };" >> $output_objdir/$libname.ver~
9217 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9218 fi
9219
9220 case $cc_basename in
9221 tcc*)
9222 export_dynamic_flag_spec='-rdynamic'
9223 ;;
9224 xlf* | bgf* | bgxlf* | mpixlf*)
9225 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9226 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9227 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9228 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9229 if test yes = "$supports_anon_versioning"; then
9230 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9231 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9232 echo "local: *; };" >> $output_objdir/$libname.ver~
9233 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9234 fi
9235 ;;
9236 esac
9237 else
9238 ld_shlibs=no
9239 fi
9240 ;;
9241
9242 netbsd*)
9243 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9244 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9245 wlarc=
9246 else
9247 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9248 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9249 fi
9250 ;;
9251
9252 solaris*)
9253 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9254 ld_shlibs=no
9255 cat <<_LT_EOF 1>&2
9256
9257 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9258 *** create shared libraries on Solaris systems. Therefore, libtool
9259 *** is disabling shared libraries support. We urge you to upgrade GNU
9260 *** binutils to release 2.9.1 or newer. Another option is to modify
9261 *** your PATH or compiler configuration so that the native linker is
9262 *** used, and then restart.
9263
9264 _LT_EOF
9265 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9266 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9267 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9268 else
9269 ld_shlibs=no
9270 fi
9271 ;;
9272
9273 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9274 case `$LD -v 2>&1` in
9275 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9276 ld_shlibs=no
9277 cat <<_LT_EOF 1>&2
9278
9279 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9280 *** reliably create shared libraries on SCO systems. Therefore, libtool
9281 *** is disabling shared libraries support. We urge you to upgrade GNU
9282 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9283 *** your PATH or compiler configuration so that the native linker is
9284 *** used, and then restart.
9285
9286 _LT_EOF
9287 ;;
9288 *)
9289 # For security reasons, it is highly recommended that you always
9290 # use absolute paths for naming shared libraries, and exclude the
9291 # DT_RUNPATH tag from executables and libraries. But doing so
9292 # requires that you compile everything twice, which is a pain.
9293 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9294 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9295 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9296 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9297 else
9298 ld_shlibs=no
9299 fi
9300 ;;
9301 esac
9302 ;;
9303
9304 sunos4*)
9305 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9306 wlarc=
9307 hardcode_direct=yes
9308 hardcode_shlibpath_var=no
9309 ;;
9310
9311 *)
9312 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9313 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9314 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9315 else
9316 ld_shlibs=no
9317 fi
9318 ;;
9319 esac
9320
9321 if test no = "$ld_shlibs"; then
9322 runpath_var=
9323 hardcode_libdir_flag_spec=
9324 export_dynamic_flag_spec=
9325 whole_archive_flag_spec=
9326 fi
9327 else
9328 # PORTME fill in a description of your system's linker (not GNU ld)
9329 case $host_os in
9330 aix3*)
9331 allow_undefined_flag=unsupported
9332 always_export_symbols=yes
9333 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'
9334 # Note: this linker hardcodes the directories in LIBPATH if there
9335 # are no directories specified by -L.
9336 hardcode_minus_L=yes
9337 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9338 # Neither direct hardcoding nor static linking is supported with a
9339 # broken collect2.
9340 hardcode_direct=unsupported
9341 fi
9342 ;;
9343
9344 aix[4-9]*)
9345 if test ia64 = "$host_cpu"; then
9346 # On IA64, the linker does run time linking by default, so we don't
9347 # have to do anything special.
9348 aix_use_runtimelinking=no
9349 exp_sym_flag='-Bexport'
9350 no_entry_flag=
9351 else
9352 # If we're using GNU nm, then we don't want the "-C" option.
9353 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9354 # Without the "-l" option, or with the "-B" option, AIX nm treats
9355 # weak defined symbols like other global defined symbols, whereas
9356 # GNU nm marks them as "W".
9357 # While the 'weak' keyword is ignored in the Export File, we need
9358 # it in the Import File for the 'aix-soname' feature, so we have
9359 # to replace the "-B" option with "-P" for AIX nm.
9360 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9361 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9362 else
9363 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9364 fi
9365 aix_use_runtimelinking=no
9366
9367 # Test if we are trying to use run time linking or normal
9368 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9369 # have runtime linking enabled, and use it for executables.
9370 # For shared libraries, we enable/disable runtime linking
9371 # depending on the kind of the shared library created -
9372 # when "with_aix_soname,aix_use_runtimelinking" is:
9373 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9374 # "aix,yes" lib.so shared, rtl:yes, for executables
9375 # lib.a static archive
9376 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9377 # lib.a(lib.so.V) shared, rtl:no, for executables
9378 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9379 # lib.a(lib.so.V) shared, rtl:no
9380 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9381 # lib.a static archive
9382 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9383 for ld_flag in $LDFLAGS; do
9384 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9385 aix_use_runtimelinking=yes
9386 break
9387 fi
9388 done
9389 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9390 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9391 # so we don't have lib.a shared libs to link our executables.
9392 # We have to force runtime linking in this case.
9393 aix_use_runtimelinking=yes
9394 LDFLAGS="$LDFLAGS -Wl,-brtl"
9395 fi
9396 ;;
9397 esac
9398
9399 exp_sym_flag='-bexport'
9400 no_entry_flag='-bnoentry'
9401 fi
9402
9403 # When large executables or shared objects are built, AIX ld can
9404 # have problems creating the table of contents. If linking a library
9405 # or program results in "error TOC overflow" add -mminimal-toc to
9406 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9407 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9408
9409 archive_cmds=''
9410 hardcode_direct=yes
9411 hardcode_direct_absolute=yes
9412 hardcode_libdir_separator=':'
9413 link_all_deplibs=yes
9414 file_list_spec='$wl-f,'
9415 case $with_aix_soname,$aix_use_runtimelinking in
9416 aix,*) ;; # traditional, no import file
9417 svr4,* | *,yes) # use import file
9418 # The Import File defines what to hardcode.
9419 hardcode_direct=no
9420 hardcode_direct_absolute=no
9421 ;;
9422 esac
9423
9424 if test yes = "$GCC"; then
9425 case $host_os in aix4.[012]|aix4.[012].*)
9426 # We only want to do this on AIX 4.2 and lower, the check
9427 # below for broken collect2 doesn't work under 4.3+
9428 collect2name=`$CC -print-prog-name=collect2`
9429 if test -f "$collect2name" &&
9430 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9431 then
9432 # We have reworked collect2
9433 :
9434 else
9435 # We have old collect2
9436 hardcode_direct=unsupported
9437 # It fails to find uninstalled libraries when the uninstalled
9438 # path is not listed in the libpath. Setting hardcode_minus_L
9439 # to unsupported forces relinking
9440 hardcode_minus_L=yes
9441 hardcode_libdir_flag_spec='-L$libdir'
9442 hardcode_libdir_separator=
9443 fi
9444 ;;
9445 esac
9446 shared_flag='-shared'
9447 if test yes = "$aix_use_runtimelinking"; then
9448 shared_flag="$shared_flag "'$wl-G'
9449 fi
9450 # Need to ensure runtime linking is disabled for the traditional
9451 # shared library, or the linker may eventually find shared libraries
9452 # /with/ Import File - we do not want to mix them.
9453 shared_flag_aix='-shared'
9454 shared_flag_svr4='-shared $wl-G'
9455 else
9456 # not using gcc
9457 if test ia64 = "$host_cpu"; then
9458 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9459 # chokes on -Wl,-G. The following line is correct:
9460 shared_flag='-G'
9461 else
9462 if test yes = "$aix_use_runtimelinking"; then
9463 shared_flag='$wl-G'
9464 else
9465 shared_flag='$wl-bM:SRE'
9466 fi
9467 shared_flag_aix='$wl-bM:SRE'
9468 shared_flag_svr4='$wl-G'
9469 fi
9470 fi
9471
9472 export_dynamic_flag_spec='$wl-bexpall'
9473 # It seems that -bexpall does not export symbols beginning with
9474 # underscore (_), so it is better to generate a list of symbols to export.
9475 always_export_symbols=yes
9476 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9477 # Warning - without using the other runtime loading flags (-brtl),
9478 # -berok will link without error, but may produce a broken library.
9479 allow_undefined_flag='-berok'
9480 # Determine the default libpath from the value encoded in an
9481 # empty executable.
9482 if test set = "${lt_cv_aix_libpath+set}"; then
9483 aix_libpath=$lt_cv_aix_libpath
9484 else
9485 if ${lt_cv_aix_libpath_+:} false; then :
9486 $as_echo_n "(cached) " >&6
9487 else
9488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9489 /* end confdefs.h. */
9490
9491 int
9492 main ()
9493 {
9494
9495 ;
9496 return 0;
9497 }
9498 _ACEOF
9499 if ac_fn_c_try_link "$LINENO"; then :
9500
9501 lt_aix_libpath_sed='
9502 /Import File Strings/,/^$/ {
9503 /^0/ {
9504 s/^0 *\([^ ]*\) *$/\1/
9505 p
9506 }
9507 }'
9508 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9509 # Check for a 64-bit object if we didn't find anything.
9510 if test -z "$lt_cv_aix_libpath_"; then
9511 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9512 fi
9513 fi
9514 rm -f core conftest.err conftest.$ac_objext \
9515 conftest$ac_exeext conftest.$ac_ext
9516 if test -z "$lt_cv_aix_libpath_"; then
9517 lt_cv_aix_libpath_=/usr/lib:/lib
9518 fi
9519
9520 fi
9521
9522 aix_libpath=$lt_cv_aix_libpath_
9523 fi
9524
9525 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9526 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
9527 else
9528 if test ia64 = "$host_cpu"; then
9529 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9530 allow_undefined_flag="-z nodefs"
9531 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"
9532 else
9533 # Determine the default libpath from the value encoded in an
9534 # empty executable.
9535 if test set = "${lt_cv_aix_libpath+set}"; then
9536 aix_libpath=$lt_cv_aix_libpath
9537 else
9538 if ${lt_cv_aix_libpath_+:} false; then :
9539 $as_echo_n "(cached) " >&6
9540 else
9541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9542 /* end confdefs.h. */
9543
9544 int
9545 main ()
9546 {
9547
9548 ;
9549 return 0;
9550 }
9551 _ACEOF
9552 if ac_fn_c_try_link "$LINENO"; then :
9553
9554 lt_aix_libpath_sed='
9555 /Import File Strings/,/^$/ {
9556 /^0/ {
9557 s/^0 *\([^ ]*\) *$/\1/
9558 p
9559 }
9560 }'
9561 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9562 # Check for a 64-bit object if we didn't find anything.
9563 if test -z "$lt_cv_aix_libpath_"; then
9564 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9565 fi
9566 fi
9567 rm -f core conftest.err conftest.$ac_objext \
9568 conftest$ac_exeext conftest.$ac_ext
9569 if test -z "$lt_cv_aix_libpath_"; then
9570 lt_cv_aix_libpath_=/usr/lib:/lib
9571 fi
9572
9573 fi
9574
9575 aix_libpath=$lt_cv_aix_libpath_
9576 fi
9577
9578 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9579 # Warning - without using the other run time loading flags,
9580 # -berok will link without error, but may produce a broken library.
9581 no_undefined_flag=' $wl-bernotok'
9582 allow_undefined_flag=' $wl-berok'
9583 if test yes = "$with_gnu_ld"; then
9584 # We only use this code for GNU lds that support --whole-archive.
9585 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9586 else
9587 # Exported symbols can be pulled into shared objects from archives
9588 whole_archive_flag_spec='$convenience'
9589 fi
9590 archive_cmds_need_lc=yes
9591 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9592 # -brtl affects multiple linker settings, -berok does not and is overridden later
9593 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9594 if test svr4 != "$with_aix_soname"; then
9595 # This is similar to how AIX traditionally builds its shared libraries.
9596 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
9597 fi
9598 if test aix != "$with_aix_soname"; then
9599 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
9600 else
9601 # used by -dlpreopen to get the symbols
9602 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9603 fi
9604 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9605 fi
9606 fi
9607 ;;
9608
9609 amigaos*)
9610 case $host_cpu in
9611 powerpc)
9612 # see comment about AmigaOS4 .so support
9613 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9614 archive_expsym_cmds=''
9615 ;;
9616 m68k)
9617 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)'
9618 hardcode_libdir_flag_spec='-L$libdir'
9619 hardcode_minus_L=yes
9620 ;;
9621 esac
9622 ;;
9623
9624 bsdi[45]*)
9625 export_dynamic_flag_spec=-rdynamic
9626 ;;
9627
9628 cygwin* | mingw* | pw32* | cegcc*)
9629 # When not using gcc, we currently assume that we are using
9630 # Microsoft Visual C++.
9631 # hardcode_libdir_flag_spec is actually meaningless, as there is
9632 # no search path for DLLs.
9633 case $cc_basename in
9634 cl*)
9635 # Native MSVC
9636 hardcode_libdir_flag_spec=' '
9637 allow_undefined_flag=unsupported
9638 always_export_symbols=yes
9639 file_list_spec='@'
9640 # Tell ltmain to make .lib files, not .a files.
9641 libext=lib
9642 # Tell ltmain to make .dll files, not .so files.
9643 shrext_cmds=.dll
9644 # FIXME: Setting linknames here is a bad hack.
9645 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9646 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9647 cp "$export_symbols" "$output_objdir/$soname.def";
9648 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9649 else
9650 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9651 fi~
9652 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9653 linknames='
9654 # The linker will not automatically build a static lib if we build a DLL.
9655 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9656 enable_shared_with_static_runtimes=yes
9657 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9658 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9659 # Don't use ranlib
9660 old_postinstall_cmds='chmod 644 $oldlib'
9661 postlink_cmds='lt_outputfile="@OUTPUT@"~
9662 lt_tool_outputfile="@TOOL_OUTPUT@"~
9663 case $lt_outputfile in
9664 *.exe|*.EXE) ;;
9665 *)
9666 lt_outputfile=$lt_outputfile.exe
9667 lt_tool_outputfile=$lt_tool_outputfile.exe
9668 ;;
9669 esac~
9670 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9671 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9672 $RM "$lt_outputfile.manifest";
9673 fi'
9674 ;;
9675 *)
9676 # Assume MSVC wrapper
9677 hardcode_libdir_flag_spec=' '
9678 allow_undefined_flag=unsupported
9679 # Tell ltmain to make .lib files, not .a files.
9680 libext=lib
9681 # Tell ltmain to make .dll files, not .so files.
9682 shrext_cmds=.dll
9683 # FIXME: Setting linknames here is a bad hack.
9684 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9685 # The linker will automatically build a .lib file if we build a DLL.
9686 old_archive_from_new_cmds='true'
9687 # FIXME: Should let the user specify the lib program.
9688 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9689 enable_shared_with_static_runtimes=yes
9690 ;;
9691 esac
9692 ;;
9693
9694 darwin* | rhapsody*)
9695
9696
9697 archive_cmds_need_lc=no
9698 hardcode_direct=no
9699 hardcode_automatic=yes
9700 hardcode_shlibpath_var=unsupported
9701 if test yes = "$lt_cv_ld_force_load"; then
9702 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\"`'
9703
9704 else
9705 whole_archive_flag_spec=''
9706 fi
9707 link_all_deplibs=yes
9708 allow_undefined_flag=$_lt_dar_allow_undefined
9709 case $cc_basename in
9710 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9711 *) _lt_dar_can_shared=$GCC ;;
9712 esac
9713 if test yes = "$_lt_dar_can_shared"; then
9714 output_verbose_link_cmd=func_echo_all
9715 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9716 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9717 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"
9718 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"
9719
9720 else
9721 ld_shlibs=no
9722 fi
9723
9724 ;;
9725
9726 dgux*)
9727 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9728 hardcode_libdir_flag_spec='-L$libdir'
9729 hardcode_shlibpath_var=no
9730 ;;
9731
9732 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9733 # support. Future versions do this automatically, but an explicit c++rt0.o
9734 # does not break anything, and helps significantly (at the cost of a little
9735 # extra space).
9736 freebsd2.2*)
9737 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9738 hardcode_libdir_flag_spec='-R$libdir'
9739 hardcode_direct=yes
9740 hardcode_shlibpath_var=no
9741 ;;
9742
9743 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9744 freebsd2.*)
9745 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9746 hardcode_direct=yes
9747 hardcode_minus_L=yes
9748 hardcode_shlibpath_var=no
9749 ;;
9750
9751 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9752 freebsd* | dragonfly*)
9753 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9754 hardcode_libdir_flag_spec='-R$libdir'
9755 hardcode_direct=yes
9756 hardcode_shlibpath_var=no
9757 ;;
9758
9759 hpux9*)
9760 if test yes = "$GCC"; then
9761 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9762 else
9763 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9764 fi
9765 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9766 hardcode_libdir_separator=:
9767 hardcode_direct=yes
9768
9769 # hardcode_minus_L: Not really in the search PATH,
9770 # but as the default location of the library.
9771 hardcode_minus_L=yes
9772 export_dynamic_flag_spec='$wl-E'
9773 ;;
9774
9775 hpux10*)
9776 if test yes,no = "$GCC,$with_gnu_ld"; then
9777 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9778 else
9779 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9780 fi
9781 if test no = "$with_gnu_ld"; then
9782 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9783 hardcode_libdir_separator=:
9784 hardcode_direct=yes
9785 hardcode_direct_absolute=yes
9786 export_dynamic_flag_spec='$wl-E'
9787 # hardcode_minus_L: Not really in the search PATH,
9788 # but as the default location of the library.
9789 hardcode_minus_L=yes
9790 fi
9791 ;;
9792
9793 hpux11*)
9794 if test yes,no = "$GCC,$with_gnu_ld"; then
9795 case $host_cpu in
9796 hppa*64*)
9797 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9798 ;;
9799 ia64*)
9800 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9801 ;;
9802 *)
9803 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9804 ;;
9805 esac
9806 else
9807 case $host_cpu in
9808 hppa*64*)
9809 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9810 ;;
9811 ia64*)
9812 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9813 ;;
9814 *)
9815
9816 # Older versions of the 11.00 compiler do not understand -b yet
9817 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9819 $as_echo_n "checking if $CC understands -b... " >&6; }
9820 if ${lt_cv_prog_compiler__b+:} false; then :
9821 $as_echo_n "(cached) " >&6
9822 else
9823 lt_cv_prog_compiler__b=no
9824 save_LDFLAGS=$LDFLAGS
9825 LDFLAGS="$LDFLAGS -b"
9826 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9827 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9828 # The linker can only warn and ignore the option if not recognized
9829 # So say no if there are warnings
9830 if test -s conftest.err; then
9831 # Append any errors to the config.log.
9832 cat conftest.err 1>&5
9833 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9834 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9835 if diff conftest.exp conftest.er2 >/dev/null; then
9836 lt_cv_prog_compiler__b=yes
9837 fi
9838 else
9839 lt_cv_prog_compiler__b=yes
9840 fi
9841 fi
9842 $RM -r conftest*
9843 LDFLAGS=$save_LDFLAGS
9844
9845 fi
9846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9847 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9848
9849 if test yes = "$lt_cv_prog_compiler__b"; then
9850 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9851 else
9852 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9853 fi
9854
9855 ;;
9856 esac
9857 fi
9858 if test no = "$with_gnu_ld"; then
9859 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9860 hardcode_libdir_separator=:
9861
9862 case $host_cpu in
9863 hppa*64*|ia64*)
9864 hardcode_direct=no
9865 hardcode_shlibpath_var=no
9866 ;;
9867 *)
9868 hardcode_direct=yes
9869 hardcode_direct_absolute=yes
9870 export_dynamic_flag_spec='$wl-E'
9871
9872 # hardcode_minus_L: Not really in the search PATH,
9873 # but as the default location of the library.
9874 hardcode_minus_L=yes
9875 ;;
9876 esac
9877 fi
9878 ;;
9879
9880 irix5* | irix6* | nonstopux*)
9881 if test yes = "$GCC"; then
9882 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'
9883 # Try to use the -exported_symbol ld option, if it does not
9884 # work, assume that -exports_file does not work either and
9885 # implicitly export all symbols.
9886 # This should be the same for all languages, so no per-tag cache variable.
9887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9888 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9889 if ${lt_cv_irix_exported_symbol+:} false; then :
9890 $as_echo_n "(cached) " >&6
9891 else
9892 save_LDFLAGS=$LDFLAGS
9893 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9895 /* end confdefs.h. */
9896 int foo (void) { return 0; }
9897 _ACEOF
9898 if ac_fn_c_try_link "$LINENO"; then :
9899 lt_cv_irix_exported_symbol=yes
9900 else
9901 lt_cv_irix_exported_symbol=no
9902 fi
9903 rm -f core conftest.err conftest.$ac_objext \
9904 conftest$ac_exeext conftest.$ac_ext
9905 LDFLAGS=$save_LDFLAGS
9906 fi
9907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9908 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9909 if test yes = "$lt_cv_irix_exported_symbol"; then
9910 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'
9911 fi
9912 else
9913 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'
9914 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'
9915 fi
9916 archive_cmds_need_lc='no'
9917 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9918 hardcode_libdir_separator=:
9919 inherit_rpath=yes
9920 link_all_deplibs=yes
9921 ;;
9922
9923 linux*)
9924 case $cc_basename in
9925 tcc*)
9926 # Fabrice Bellard et al's Tiny C Compiler
9927 ld_shlibs=yes
9928 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9929 ;;
9930 esac
9931 ;;
9932
9933 netbsd*)
9934 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9935 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9936 else
9937 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9938 fi
9939 hardcode_libdir_flag_spec='-R$libdir'
9940 hardcode_direct=yes
9941 hardcode_shlibpath_var=no
9942 ;;
9943
9944 newsos6)
9945 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9946 hardcode_direct=yes
9947 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9948 hardcode_libdir_separator=:
9949 hardcode_shlibpath_var=no
9950 ;;
9951
9952 *nto* | *qnx*)
9953 ;;
9954
9955 openbsd* | bitrig*)
9956 if test -f /usr/libexec/ld.so; then
9957 hardcode_direct=yes
9958 hardcode_shlibpath_var=no
9959 hardcode_direct_absolute=yes
9960 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9961 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9962 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9963 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9964 export_dynamic_flag_spec='$wl-E'
9965 else
9966 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9967 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9968 fi
9969 else
9970 ld_shlibs=no
9971 fi
9972 ;;
9973
9974 os2*)
9975 hardcode_libdir_flag_spec='-L$libdir'
9976 hardcode_minus_L=yes
9977 allow_undefined_flag=unsupported
9978 shrext_cmds=.dll
9979 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9980 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9981 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9982 $ECHO EXPORTS >> $output_objdir/$libname.def~
9983 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9984 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9985 emximp -o $lib $output_objdir/$libname.def'
9986 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9987 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9988 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9989 $ECHO EXPORTS >> $output_objdir/$libname.def~
9990 prefix_cmds="$SED"~
9991 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9992 prefix_cmds="$prefix_cmds -e 1d";
9993 fi~
9994 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9995 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9996 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9997 emximp -o $lib $output_objdir/$libname.def'
9998 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9999 enable_shared_with_static_runtimes=yes
10000 ;;
10001
10002 osf3*)
10003 if test yes = "$GCC"; then
10004 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10005 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'
10006 else
10007 allow_undefined_flag=' -expect_unresolved \*'
10008 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'
10009 fi
10010 archive_cmds_need_lc='no'
10011 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10012 hardcode_libdir_separator=:
10013 ;;
10014
10015 osf4* | osf5*) # as osf3* with the addition of -msym flag
10016 if test yes = "$GCC"; then
10017 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10018 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'
10019 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10020 else
10021 allow_undefined_flag=' -expect_unresolved \*'
10022 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'
10023 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~
10024 $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'
10025
10026 # Both c and cxx compiler support -rpath directly
10027 hardcode_libdir_flag_spec='-rpath $libdir'
10028 fi
10029 archive_cmds_need_lc='no'
10030 hardcode_libdir_separator=:
10031 ;;
10032
10033 solaris*)
10034 no_undefined_flag=' -z defs'
10035 if test yes = "$GCC"; then
10036 wlarc='$wl'
10037 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10038 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10039 $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'
10040 else
10041 case `$CC -V 2>&1` in
10042 *"Compilers 5.0"*)
10043 wlarc=''
10044 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10045 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10046 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10047 ;;
10048 *)
10049 wlarc='$wl'
10050 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10051 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10052 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10053 ;;
10054 esac
10055 fi
10056 hardcode_libdir_flag_spec='-R$libdir'
10057 hardcode_shlibpath_var=no
10058 case $host_os in
10059 solaris2.[0-5] | solaris2.[0-5].*) ;;
10060 *)
10061 # The compiler driver will combine and reorder linker options,
10062 # but understands '-z linker_flag'. GCC discards it without '$wl',
10063 # but is careful enough not to reorder.
10064 # Supported since Solaris 2.6 (maybe 2.5.1?)
10065 if test yes = "$GCC"; then
10066 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10067 else
10068 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10069 fi
10070 ;;
10071 esac
10072 link_all_deplibs=yes
10073 ;;
10074
10075 sunos4*)
10076 if test sequent = "$host_vendor"; then
10077 # Use $CC to link under sequent, because it throws in some extra .o
10078 # files that make .init and .fini sections work.
10079 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10080 else
10081 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10082 fi
10083 hardcode_libdir_flag_spec='-L$libdir'
10084 hardcode_direct=yes
10085 hardcode_minus_L=yes
10086 hardcode_shlibpath_var=no
10087 ;;
10088
10089 sysv4)
10090 case $host_vendor in
10091 sni)
10092 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10093 hardcode_direct=yes # is this really true???
10094 ;;
10095 siemens)
10096 ## LD is ld it makes a PLAMLIB
10097 ## CC just makes a GrossModule.
10098 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10099 reload_cmds='$CC -r -o $output$reload_objs'
10100 hardcode_direct=no
10101 ;;
10102 motorola)
10103 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10104 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10105 ;;
10106 esac
10107 runpath_var='LD_RUN_PATH'
10108 hardcode_shlibpath_var=no
10109 ;;
10110
10111 sysv4.3*)
10112 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10113 hardcode_shlibpath_var=no
10114 export_dynamic_flag_spec='-Bexport'
10115 ;;
10116
10117 sysv4*MP*)
10118 if test -d /usr/nec; then
10119 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10120 hardcode_shlibpath_var=no
10121 runpath_var=LD_RUN_PATH
10122 hardcode_runpath_var=yes
10123 ld_shlibs=yes
10124 fi
10125 ;;
10126
10127 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10128 no_undefined_flag='$wl-z,text'
10129 archive_cmds_need_lc=no
10130 hardcode_shlibpath_var=no
10131 runpath_var='LD_RUN_PATH'
10132
10133 if test yes = "$GCC"; then
10134 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10135 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10136 else
10137 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10138 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10139 fi
10140 ;;
10141
10142 sysv5* | sco3.2v5* | sco5v6*)
10143 # Note: We CANNOT use -z defs as we might desire, because we do not
10144 # link with -lc, and that would cause any symbols used from libc to
10145 # always be unresolved, which means just about no library would
10146 # ever link correctly. If we're not using GNU ld we use -z text
10147 # though, which does catch some bad symbols but isn't as heavy-handed
10148 # as -z defs.
10149 no_undefined_flag='$wl-z,text'
10150 allow_undefined_flag='$wl-z,nodefs'
10151 archive_cmds_need_lc=no
10152 hardcode_shlibpath_var=no
10153 hardcode_libdir_flag_spec='$wl-R,$libdir'
10154 hardcode_libdir_separator=':'
10155 link_all_deplibs=yes
10156 export_dynamic_flag_spec='$wl-Bexport'
10157 runpath_var='LD_RUN_PATH'
10158
10159 if test yes = "$GCC"; then
10160 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10161 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10162 else
10163 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10164 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10165 fi
10166 ;;
10167
10168 uts4*)
10169 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10170 hardcode_libdir_flag_spec='-L$libdir'
10171 hardcode_shlibpath_var=no
10172 ;;
10173
10174 *)
10175 ld_shlibs=no
10176 ;;
10177 esac
10178
10179 if test sni = "$host_vendor"; then
10180 case $host in
10181 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10182 export_dynamic_flag_spec='$wl-Blargedynsym'
10183 ;;
10184 esac
10185 fi
10186 fi
10187
10188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10189 $as_echo "$ld_shlibs" >&6; }
10190 test no = "$ld_shlibs" && can_build_shared=no
10191
10192 with_gnu_ld=$with_gnu_ld
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208 #
10209 # Do we need to explicitly link libc?
10210 #
10211 case "x$archive_cmds_need_lc" in
10212 x|xyes)
10213 # Assume -lc should be added
10214 archive_cmds_need_lc=yes
10215
10216 if test yes,yes = "$GCC,$enable_shared"; then
10217 case $archive_cmds in
10218 *'~'*)
10219 # FIXME: we may have to deal with multi-command sequences.
10220 ;;
10221 '$CC '*)
10222 # Test whether the compiler implicitly links with -lc since on some
10223 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10224 # to ld, don't add -lc before -lgcc.
10225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10226 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10227 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10228 $as_echo_n "(cached) " >&6
10229 else
10230 $RM conftest*
10231 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10232
10233 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10234 (eval $ac_compile) 2>&5
10235 ac_status=$?
10236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10237 test $ac_status = 0; } 2>conftest.err; then
10238 soname=conftest
10239 lib=conftest
10240 libobjs=conftest.$ac_objext
10241 deplibs=
10242 wl=$lt_prog_compiler_wl
10243 pic_flag=$lt_prog_compiler_pic
10244 compiler_flags=-v
10245 linker_flags=-v
10246 verstring=
10247 output_objdir=.
10248 libname=conftest
10249 lt_save_allow_undefined_flag=$allow_undefined_flag
10250 allow_undefined_flag=
10251 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10252 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10253 ac_status=$?
10254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10255 test $ac_status = 0; }
10256 then
10257 lt_cv_archive_cmds_need_lc=no
10258 else
10259 lt_cv_archive_cmds_need_lc=yes
10260 fi
10261 allow_undefined_flag=$lt_save_allow_undefined_flag
10262 else
10263 cat conftest.err 1>&5
10264 fi
10265 $RM conftest*
10266
10267 fi
10268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10269 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10270 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10271 ;;
10272 esac
10273 fi
10274 ;;
10275 esac
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10429 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10430
10431 if test yes = "$GCC"; then
10432 case $host_os in
10433 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10434 *) lt_awk_arg='/^libraries:/' ;;
10435 esac
10436 case $host_os in
10437 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10438 *) lt_sed_strip_eq='s|=/|/|g' ;;
10439 esac
10440 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10441 case $lt_search_path_spec in
10442 *\;*)
10443 # if the path contains ";" then we assume it to be the separator
10444 # otherwise default to the standard path separator (i.e. ":") - it is
10445 # assumed that no part of a normal pathname contains ";" but that should
10446 # okay in the real world where ";" in dirpaths is itself problematic.
10447 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10448 ;;
10449 *)
10450 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10451 ;;
10452 esac
10453 # Ok, now we have the path, separated by spaces, we can step through it
10454 # and add multilib dir if necessary...
10455 lt_tmp_lt_search_path_spec=
10456 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10457 # ...but if some path component already ends with the multilib dir we assume
10458 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10459 case "$lt_multi_os_dir; $lt_search_path_spec " in
10460 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10461 lt_multi_os_dir=
10462 ;;
10463 esac
10464 for lt_sys_path in $lt_search_path_spec; do
10465 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10466 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10467 elif test -n "$lt_multi_os_dir"; then
10468 test -d "$lt_sys_path" && \
10469 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10470 fi
10471 done
10472 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10473 BEGIN {RS = " "; FS = "/|\n";} {
10474 lt_foo = "";
10475 lt_count = 0;
10476 for (lt_i = NF; lt_i > 0; lt_i--) {
10477 if ($lt_i != "" && $lt_i != ".") {
10478 if ($lt_i == "..") {
10479 lt_count++;
10480 } else {
10481 if (lt_count == 0) {
10482 lt_foo = "/" $lt_i lt_foo;
10483 } else {
10484 lt_count--;
10485 }
10486 }
10487 }
10488 }
10489 if (lt_foo != "") { lt_freq[lt_foo]++; }
10490 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10491 }'`
10492 # AWK program above erroneously prepends '/' to C:/dos/paths
10493 # for these hosts.
10494 case $host_os in
10495 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10496 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10497 esac
10498 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10499 else
10500 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10501 fi
10502 library_names_spec=
10503 libname_spec='lib$name'
10504 soname_spec=
10505 shrext_cmds=.so
10506 postinstall_cmds=
10507 postuninstall_cmds=
10508 finish_cmds=
10509 finish_eval=
10510 shlibpath_var=
10511 shlibpath_overrides_runpath=unknown
10512 version_type=none
10513 dynamic_linker="$host_os ld.so"
10514 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10515 need_lib_prefix=unknown
10516 hardcode_into_libs=no
10517
10518 # when you set need_version to no, make sure it does not cause -set_version
10519 # flags to be left without arguments
10520 need_version=unknown
10521
10522
10523
10524 case $host_os in
10525 aix3*)
10526 version_type=linux # correct to gnu/linux during the next big refactor
10527 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10528 shlibpath_var=LIBPATH
10529
10530 # AIX 3 has no versioning support, so we append a major version to the name.
10531 soname_spec='$libname$release$shared_ext$major'
10532 ;;
10533
10534 aix[4-9]*)
10535 version_type=linux # correct to gnu/linux during the next big refactor
10536 need_lib_prefix=no
10537 need_version=no
10538 hardcode_into_libs=yes
10539 if test ia64 = "$host_cpu"; then
10540 # AIX 5 supports IA64
10541 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10542 shlibpath_var=LD_LIBRARY_PATH
10543 else
10544 # With GCC up to 2.95.x, collect2 would create an import file
10545 # for dependence libraries. The import file would start with
10546 # the line '#! .'. This would cause the generated library to
10547 # depend on '.', always an invalid library. This was fixed in
10548 # development snapshots of GCC prior to 3.0.
10549 case $host_os in
10550 aix4 | aix4.[01] | aix4.[01].*)
10551 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10552 echo ' yes '
10553 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10554 :
10555 else
10556 can_build_shared=no
10557 fi
10558 ;;
10559 esac
10560 # Using Import Files as archive members, it is possible to support
10561 # filename-based versioning of shared library archives on AIX. While
10562 # this would work for both with and without runtime linking, it will
10563 # prevent static linking of such archives. So we do filename-based
10564 # shared library versioning with .so extension only, which is used
10565 # when both runtime linking and shared linking is enabled.
10566 # Unfortunately, runtime linking may impact performance, so we do
10567 # not want this to be the default eventually. Also, we use the
10568 # versioned .so libs for executables only if there is the -brtl
10569 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10570 # To allow for filename-based versioning support, we need to create
10571 # libNAME.so.V as an archive file, containing:
10572 # *) an Import File, referring to the versioned filename of the
10573 # archive as well as the shared archive member, telling the
10574 # bitwidth (32 or 64) of that shared object, and providing the
10575 # list of exported symbols of that shared object, eventually
10576 # decorated with the 'weak' keyword
10577 # *) the shared object with the F_LOADONLY flag set, to really avoid
10578 # it being seen by the linker.
10579 # At run time we better use the real file rather than another symlink,
10580 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10581
10582 case $with_aix_soname,$aix_use_runtimelinking in
10583 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10584 # soname into executable. Probably we can add versioning support to
10585 # collect2, so additional links can be useful in future.
10586 aix,yes) # traditional libtool
10587 dynamic_linker='AIX unversionable lib.so'
10588 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10589 # instead of lib<name>.a to let people know that these are not
10590 # typical AIX shared libraries.
10591 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10592 ;;
10593 aix,no) # traditional AIX only
10594 dynamic_linker='AIX lib.a(lib.so.V)'
10595 # We preserve .a as extension for shared libraries through AIX4.2
10596 # and later when we are not doing run time linking.
10597 library_names_spec='$libname$release.a $libname.a'
10598 soname_spec='$libname$release$shared_ext$major'
10599 ;;
10600 svr4,*) # full svr4 only
10601 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10602 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10603 # We do not specify a path in Import Files, so LIBPATH fires.
10604 shlibpath_overrides_runpath=yes
10605 ;;
10606 *,yes) # both, prefer svr4
10607 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10608 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10609 # unpreferred sharedlib libNAME.a needs extra handling
10610 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
10611 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
10612 # We do not specify a path in Import Files, so LIBPATH fires.
10613 shlibpath_overrides_runpath=yes
10614 ;;
10615 *,no) # both, prefer aix
10616 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10617 library_names_spec='$libname$release.a $libname.a'
10618 soname_spec='$libname$release$shared_ext$major'
10619 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10620 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
10621 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
10622 ;;
10623 esac
10624 shlibpath_var=LIBPATH
10625 fi
10626 ;;
10627
10628 amigaos*)
10629 case $host_cpu in
10630 powerpc)
10631 # Since July 2007 AmigaOS4 officially supports .so libraries.
10632 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10633 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10634 ;;
10635 m68k)
10636 library_names_spec='$libname.ixlibrary $libname.a'
10637 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10638 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10639 ;;
10640 esac
10641 ;;
10642
10643 beos*)
10644 library_names_spec='$libname$shared_ext'
10645 dynamic_linker="$host_os ld.so"
10646 shlibpath_var=LIBRARY_PATH
10647 ;;
10648
10649 bsdi[45]*)
10650 version_type=linux # correct to gnu/linux during the next big refactor
10651 need_version=no
10652 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10653 soname_spec='$libname$release$shared_ext$major'
10654 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10655 shlibpath_var=LD_LIBRARY_PATH
10656 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10657 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10658 # the default ld.so.conf also contains /usr/contrib/lib and
10659 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10660 # libtool to hard-code these into programs
10661 ;;
10662
10663 cygwin* | mingw* | pw32* | cegcc*)
10664 version_type=windows
10665 shrext_cmds=.dll
10666 need_version=no
10667 need_lib_prefix=no
10668
10669 case $GCC,$cc_basename in
10670 yes,*)
10671 # gcc
10672 library_names_spec='$libname.dll.a'
10673 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10674 postinstall_cmds='base_file=`basename \$file`~
10675 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10676 dldir=$destdir/`dirname \$dlpath`~
10677 test -d \$dldir || mkdir -p \$dldir~
10678 $install_prog $dir/$dlname \$dldir/$dlname~
10679 chmod a+x \$dldir/$dlname~
10680 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10681 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10682 fi'
10683 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10684 dlpath=$dir/\$dldll~
10685 $RM \$dlpath'
10686 shlibpath_overrides_runpath=yes
10687
10688 case $host_os in
10689 cygwin*)
10690 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10691 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10692
10693 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10694 ;;
10695 mingw* | cegcc*)
10696 # MinGW DLLs use traditional 'lib' prefix
10697 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10698 ;;
10699 pw32*)
10700 # pw32 DLLs use 'pw' prefix rather than 'lib'
10701 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10702 ;;
10703 esac
10704 dynamic_linker='Win32 ld.exe'
10705 ;;
10706
10707 *,cl*)
10708 # Native MSVC
10709 libname_spec='$name'
10710 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10711 library_names_spec='$libname.dll.lib'
10712
10713 case $build_os in
10714 mingw*)
10715 sys_lib_search_path_spec=
10716 lt_save_ifs=$IFS
10717 IFS=';'
10718 for lt_path in $LIB
10719 do
10720 IFS=$lt_save_ifs
10721 # Let DOS variable expansion print the short 8.3 style file name.
10722 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10723 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10724 done
10725 IFS=$lt_save_ifs
10726 # Convert to MSYS style.
10727 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10728 ;;
10729 cygwin*)
10730 # Convert to unix form, then to dos form, then back to unix form
10731 # but this time dos style (no spaces!) so that the unix form looks
10732 # like /cygdrive/c/PROGRA~1:/cygdr...
10733 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10734 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10735 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10736 ;;
10737 *)
10738 sys_lib_search_path_spec=$LIB
10739 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10740 # It is most probably a Windows format PATH.
10741 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10742 else
10743 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10744 fi
10745 # FIXME: find the short name or the path components, as spaces are
10746 # common. (e.g. "Program Files" -> "PROGRA~1")
10747 ;;
10748 esac
10749
10750 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10751 postinstall_cmds='base_file=`basename \$file`~
10752 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10753 dldir=$destdir/`dirname \$dlpath`~
10754 test -d \$dldir || mkdir -p \$dldir~
10755 $install_prog $dir/$dlname \$dldir/$dlname'
10756 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10757 dlpath=$dir/\$dldll~
10758 $RM \$dlpath'
10759 shlibpath_overrides_runpath=yes
10760 dynamic_linker='Win32 link.exe'
10761 ;;
10762
10763 *)
10764 # Assume MSVC wrapper
10765 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10766 dynamic_linker='Win32 ld.exe'
10767 ;;
10768 esac
10769 # FIXME: first we should search . and the directory the executable is in
10770 shlibpath_var=PATH
10771 ;;
10772
10773 darwin* | rhapsody*)
10774 dynamic_linker="$host_os dyld"
10775 version_type=darwin
10776 need_lib_prefix=no
10777 need_version=no
10778 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10779 soname_spec='$libname$release$major$shared_ext'
10780 shlibpath_overrides_runpath=yes
10781 shlibpath_var=DYLD_LIBRARY_PATH
10782 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10783
10784 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10785 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10786 ;;
10787
10788 dgux*)
10789 version_type=linux # correct to gnu/linux during the next big refactor
10790 need_lib_prefix=no
10791 need_version=no
10792 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10793 soname_spec='$libname$release$shared_ext$major'
10794 shlibpath_var=LD_LIBRARY_PATH
10795 ;;
10796
10797 freebsd* | dragonfly*)
10798 # DragonFly does not have aout. When/if they implement a new
10799 # versioning mechanism, adjust this.
10800 if test -x /usr/bin/objformat; then
10801 objformat=`/usr/bin/objformat`
10802 else
10803 case $host_os in
10804 freebsd[23].*) objformat=aout ;;
10805 *) objformat=elf ;;
10806 esac
10807 fi
10808 # Handle Gentoo/FreeBSD as it was Linux
10809 case $host_vendor in
10810 gentoo)
10811 version_type=linux ;;
10812 *)
10813 version_type=freebsd-$objformat ;;
10814 esac
10815
10816 case $version_type in
10817 freebsd-elf*)
10818 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10819 soname_spec='$libname$release$shared_ext$major'
10820 need_version=no
10821 need_lib_prefix=no
10822 ;;
10823 freebsd-*)
10824 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10825 need_version=yes
10826 ;;
10827 linux)
10828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10829 soname_spec='${libname}${release}${shared_ext}$major'
10830 need_lib_prefix=no
10831 need_version=no
10832 ;;
10833 esac
10834 shlibpath_var=LD_LIBRARY_PATH
10835 case $host_os in
10836 freebsd2.*)
10837 shlibpath_overrides_runpath=yes
10838 ;;
10839 freebsd3.[01]* | freebsdelf3.[01]*)
10840 shlibpath_overrides_runpath=yes
10841 hardcode_into_libs=yes
10842 ;;
10843 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10844 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10845 shlibpath_overrides_runpath=no
10846 hardcode_into_libs=yes
10847 ;;
10848 *) # from 4.6 on, and DragonFly
10849 shlibpath_overrides_runpath=yes
10850 hardcode_into_libs=yes
10851 ;;
10852 esac
10853 ;;
10854
10855 haiku*)
10856 version_type=linux # correct to gnu/linux during the next big refactor
10857 need_lib_prefix=no
10858 need_version=no
10859 dynamic_linker="$host_os runtime_loader"
10860 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10861 soname_spec='$libname$release$shared_ext$major'
10862 shlibpath_var=LIBRARY_PATH
10863 shlibpath_overrides_runpath=no
10864 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10865 hardcode_into_libs=yes
10866 ;;
10867
10868 hpux9* | hpux10* | hpux11*)
10869 # Give a soname corresponding to the major version so that dld.sl refuses to
10870 # link against other versions.
10871 version_type=sunos
10872 need_lib_prefix=no
10873 need_version=no
10874 case $host_cpu in
10875 ia64*)
10876 shrext_cmds='.so'
10877 hardcode_into_libs=yes
10878 dynamic_linker="$host_os dld.so"
10879 shlibpath_var=LD_LIBRARY_PATH
10880 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10881 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10882 soname_spec='$libname$release$shared_ext$major'
10883 if test 32 = "$HPUX_IA64_MODE"; then
10884 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10885 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10886 else
10887 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10888 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10889 fi
10890 ;;
10891 hppa*64*)
10892 shrext_cmds='.sl'
10893 hardcode_into_libs=yes
10894 dynamic_linker="$host_os dld.sl"
10895 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10896 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10897 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10898 soname_spec='$libname$release$shared_ext$major'
10899 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10900 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10901 ;;
10902 *)
10903 shrext_cmds='.sl'
10904 dynamic_linker="$host_os dld.sl"
10905 shlibpath_var=SHLIB_PATH
10906 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10907 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10908 soname_spec='$libname$release$shared_ext$major'
10909 ;;
10910 esac
10911 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10912 postinstall_cmds='chmod 555 $lib'
10913 # or fails outright, so override atomically:
10914 install_override_mode=555
10915 ;;
10916
10917 interix[3-9]*)
10918 version_type=linux # correct to gnu/linux during the next big refactor
10919 need_lib_prefix=no
10920 need_version=no
10921 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10922 soname_spec='$libname$release$shared_ext$major'
10923 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10924 shlibpath_var=LD_LIBRARY_PATH
10925 shlibpath_overrides_runpath=no
10926 hardcode_into_libs=yes
10927 ;;
10928
10929 irix5* | irix6* | nonstopux*)
10930 case $host_os in
10931 nonstopux*) version_type=nonstopux ;;
10932 *)
10933 if test yes = "$lt_cv_prog_gnu_ld"; then
10934 version_type=linux # correct to gnu/linux during the next big refactor
10935 else
10936 version_type=irix
10937 fi ;;
10938 esac
10939 need_lib_prefix=no
10940 need_version=no
10941 soname_spec='$libname$release$shared_ext$major'
10942 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10943 case $host_os in
10944 irix5* | nonstopux*)
10945 libsuff= shlibsuff=
10946 ;;
10947 *)
10948 case $LD in # libtool.m4 will add one of these switches to LD
10949 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10950 libsuff= shlibsuff= libmagic=32-bit;;
10951 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10952 libsuff=32 shlibsuff=N32 libmagic=N32;;
10953 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10954 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10955 *) libsuff= shlibsuff= libmagic=never-match;;
10956 esac
10957 ;;
10958 esac
10959 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10960 shlibpath_overrides_runpath=no
10961 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10962 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
10963 hardcode_into_libs=yes
10964 ;;
10965
10966 # No shared lib support for Linux oldld, aout, or coff.
10967 linux*oldld* | linux*aout* | linux*coff*)
10968 dynamic_linker=no
10969 ;;
10970
10971 linux*android*)
10972 version_type=none # Android doesn't support versioned libraries.
10973 need_lib_prefix=no
10974 need_version=no
10975 library_names_spec='$libname$release$shared_ext'
10976 soname_spec='$libname$release$shared_ext'
10977 finish_cmds=
10978 shlibpath_var=LD_LIBRARY_PATH
10979 shlibpath_overrides_runpath=yes
10980
10981 # This implies no fast_install, which is unacceptable.
10982 # Some rework will be needed to allow for fast_install
10983 # before this can be enabled.
10984 hardcode_into_libs=yes
10985
10986 dynamic_linker='Android linker'
10987 # Don't embed -rpath directories since the linker doesn't support them.
10988 hardcode_libdir_flag_spec='-L$libdir'
10989 ;;
10990
10991 # This must be glibc/ELF.
10992 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10993 version_type=linux # correct to gnu/linux during the next big refactor
10994 need_lib_prefix=no
10995 need_version=no
10996 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10997 soname_spec='$libname$release$shared_ext$major'
10998 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10999 shlibpath_var=LD_LIBRARY_PATH
11000 shlibpath_overrides_runpath=no
11001
11002 # Some binutils ld are patched to set DT_RUNPATH
11003 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11004 $as_echo_n "(cached) " >&6
11005 else
11006 lt_cv_shlibpath_overrides_runpath=no
11007 save_LDFLAGS=$LDFLAGS
11008 save_libdir=$libdir
11009 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11010 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11012 /* end confdefs.h. */
11013
11014 int
11015 main ()
11016 {
11017
11018 ;
11019 return 0;
11020 }
11021 _ACEOF
11022 if ac_fn_c_try_link "$LINENO"; then :
11023 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11024 lt_cv_shlibpath_overrides_runpath=yes
11025 fi
11026 fi
11027 rm -f core conftest.err conftest.$ac_objext \
11028 conftest$ac_exeext conftest.$ac_ext
11029 LDFLAGS=$save_LDFLAGS
11030 libdir=$save_libdir
11031
11032 fi
11033
11034 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11035
11036 # This implies no fast_install, which is unacceptable.
11037 # Some rework will be needed to allow for fast_install
11038 # before this can be enabled.
11039 hardcode_into_libs=yes
11040
11041 # Ideally, we could use ldconfig to report *all* directores which are
11042 # searched for libraries, however this is still not possible. Aside from not
11043 # being certain /sbin/ldconfig is available, command
11044 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11045 # even though it is searched at run-time. Try to do the best guess by
11046 # appending ld.so.conf contents (and includes) to the search path.
11047 if test -f /etc/ld.so.conf; then
11048 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' ' '`
11049 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11050 fi
11051
11052 # We used to test for /lib/ld.so.1 and disable shared libraries on
11053 # powerpc, because MkLinux only supported shared libraries with the
11054 # GNU dynamic linker. Since this was broken with cross compilers,
11055 # most powerpc-linux boxes support dynamic linking these days and
11056 # people can always --disable-shared, the test was removed, and we
11057 # assume the GNU/Linux dynamic linker is in use.
11058 dynamic_linker='GNU/Linux ld.so'
11059 ;;
11060
11061 netbsd*)
11062 version_type=sunos
11063 need_lib_prefix=no
11064 need_version=no
11065 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11066 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11067 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11068 dynamic_linker='NetBSD (a.out) ld.so'
11069 else
11070 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11071 soname_spec='$libname$release$shared_ext$major'
11072 dynamic_linker='NetBSD ld.elf_so'
11073 fi
11074 shlibpath_var=LD_LIBRARY_PATH
11075 shlibpath_overrides_runpath=yes
11076 hardcode_into_libs=yes
11077 ;;
11078
11079 newsos6)
11080 version_type=linux # correct to gnu/linux during the next big refactor
11081 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11082 shlibpath_var=LD_LIBRARY_PATH
11083 shlibpath_overrides_runpath=yes
11084 ;;
11085
11086 *nto* | *qnx*)
11087 version_type=qnx
11088 need_lib_prefix=no
11089 need_version=no
11090 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11091 soname_spec='$libname$release$shared_ext$major'
11092 shlibpath_var=LD_LIBRARY_PATH
11093 shlibpath_overrides_runpath=no
11094 hardcode_into_libs=yes
11095 dynamic_linker='ldqnx.so'
11096 ;;
11097
11098 openbsd* | bitrig*)
11099 version_type=sunos
11100 sys_lib_dlsearch_path_spec=/usr/lib
11101 need_lib_prefix=no
11102 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11103 need_version=no
11104 else
11105 need_version=yes
11106 fi
11107 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11108 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11109 shlibpath_var=LD_LIBRARY_PATH
11110 shlibpath_overrides_runpath=yes
11111 ;;
11112
11113 os2*)
11114 libname_spec='$name'
11115 version_type=windows
11116 shrext_cmds=.dll
11117 need_version=no
11118 need_lib_prefix=no
11119 # OS/2 can only load a DLL with a base name of 8 characters or less.
11120 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11121 v=$($ECHO $release$versuffix | tr -d .-);
11122 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11123 $ECHO $n$v`$shared_ext'
11124 library_names_spec='${libname}_dll.$libext'
11125 dynamic_linker='OS/2 ld.exe'
11126 shlibpath_var=BEGINLIBPATH
11127 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11128 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11129 postinstall_cmds='base_file=`basename \$file`~
11130 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11131 dldir=$destdir/`dirname \$dlpath`~
11132 test -d \$dldir || mkdir -p \$dldir~
11133 $install_prog $dir/$dlname \$dldir/$dlname~
11134 chmod a+x \$dldir/$dlname~
11135 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11136 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11137 fi'
11138 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11139 dlpath=$dir/\$dldll~
11140 $RM \$dlpath'
11141 ;;
11142
11143 osf3* | osf4* | osf5*)
11144 version_type=osf
11145 need_lib_prefix=no
11146 need_version=no
11147 soname_spec='$libname$release$shared_ext$major'
11148 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11149 shlibpath_var=LD_LIBRARY_PATH
11150 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11151 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11152 ;;
11153
11154 rdos*)
11155 dynamic_linker=no
11156 ;;
11157
11158 solaris*)
11159 version_type=linux # correct to gnu/linux during the next big refactor
11160 need_lib_prefix=no
11161 need_version=no
11162 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11163 soname_spec='$libname$release$shared_ext$major'
11164 shlibpath_var=LD_LIBRARY_PATH
11165 shlibpath_overrides_runpath=yes
11166 hardcode_into_libs=yes
11167 # ldd complains unless libraries are executable
11168 postinstall_cmds='chmod +x $lib'
11169 ;;
11170
11171 sunos4*)
11172 version_type=sunos
11173 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11174 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11175 shlibpath_var=LD_LIBRARY_PATH
11176 shlibpath_overrides_runpath=yes
11177 if test yes = "$with_gnu_ld"; then
11178 need_lib_prefix=no
11179 fi
11180 need_version=yes
11181 ;;
11182
11183 sysv4 | sysv4.3*)
11184 version_type=linux # correct to gnu/linux during the next big refactor
11185 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11186 soname_spec='$libname$release$shared_ext$major'
11187 shlibpath_var=LD_LIBRARY_PATH
11188 case $host_vendor in
11189 sni)
11190 shlibpath_overrides_runpath=no
11191 need_lib_prefix=no
11192 runpath_var=LD_RUN_PATH
11193 ;;
11194 siemens)
11195 need_lib_prefix=no
11196 ;;
11197 motorola)
11198 need_lib_prefix=no
11199 need_version=no
11200 shlibpath_overrides_runpath=no
11201 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11202 ;;
11203 esac
11204 ;;
11205
11206 sysv4*MP*)
11207 if test -d /usr/nec; then
11208 version_type=linux # correct to gnu/linux during the next big refactor
11209 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11210 soname_spec='$libname$shared_ext.$major'
11211 shlibpath_var=LD_LIBRARY_PATH
11212 fi
11213 ;;
11214
11215 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11216 version_type=sco
11217 need_lib_prefix=no
11218 need_version=no
11219 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11220 soname_spec='$libname$release$shared_ext$major'
11221 shlibpath_var=LD_LIBRARY_PATH
11222 shlibpath_overrides_runpath=yes
11223 hardcode_into_libs=yes
11224 if test yes = "$with_gnu_ld"; then
11225 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11226 else
11227 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11228 case $host_os in
11229 sco3.2v5*)
11230 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11231 ;;
11232 esac
11233 fi
11234 sys_lib_dlsearch_path_spec='/usr/lib'
11235 ;;
11236
11237 tpf*)
11238 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11239 version_type=linux # correct to gnu/linux during the next big refactor
11240 need_lib_prefix=no
11241 need_version=no
11242 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11243 shlibpath_var=LD_LIBRARY_PATH
11244 shlibpath_overrides_runpath=no
11245 hardcode_into_libs=yes
11246 ;;
11247
11248 uts4*)
11249 version_type=linux # correct to gnu/linux during the next big refactor
11250 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11251 soname_spec='$libname$release$shared_ext$major'
11252 shlibpath_var=LD_LIBRARY_PATH
11253 ;;
11254
11255 *)
11256 dynamic_linker=no
11257 ;;
11258 esac
11259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11260 $as_echo "$dynamic_linker" >&6; }
11261 test no = "$dynamic_linker" && can_build_shared=no
11262
11263 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11264 if test yes = "$GCC"; then
11265 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11266 fi
11267
11268 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11269 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11270 fi
11271
11272 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11273 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11274 fi
11275
11276 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11277 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11278
11279 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11280 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11281
11282 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11283 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11382 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11383 hardcode_action=
11384 if test -n "$hardcode_libdir_flag_spec" ||
11385 test -n "$runpath_var" ||
11386 test yes = "$hardcode_automatic"; then
11387
11388 # We can hardcode non-existent directories.
11389 if test no != "$hardcode_direct" &&
11390 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11391 # have to relink, otherwise we might link with an installed library
11392 # when we should be linking with a yet-to-be-installed one
11393 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11394 test no != "$hardcode_minus_L"; then
11395 # Linking always hardcodes the temporary library directory.
11396 hardcode_action=relink
11397 else
11398 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11399 hardcode_action=immediate
11400 fi
11401 else
11402 # We cannot hardcode anything, or else we can only hardcode existing
11403 # directories.
11404 hardcode_action=unsupported
11405 fi
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11407 $as_echo "$hardcode_action" >&6; }
11408
11409 if test relink = "$hardcode_action" ||
11410 test yes = "$inherit_rpath"; then
11411 # Fast installation is not supported
11412 enable_fast_install=no
11413 elif test yes = "$shlibpath_overrides_runpath" ||
11414 test no = "$enable_shared"; then
11415 # Fast installation is not necessary
11416 enable_fast_install=needless
11417 fi
11418
11419
11420
11421
11422
11423
11424 if test yes != "$enable_dlopen"; then
11425 enable_dlopen=unknown
11426 enable_dlopen_self=unknown
11427 enable_dlopen_self_static=unknown
11428 else
11429 lt_cv_dlopen=no
11430 lt_cv_dlopen_libs=
11431
11432 case $host_os in
11433 beos*)
11434 lt_cv_dlopen=load_add_on
11435 lt_cv_dlopen_libs=
11436 lt_cv_dlopen_self=yes
11437 ;;
11438
11439 mingw* | pw32* | cegcc*)
11440 lt_cv_dlopen=LoadLibrary
11441 lt_cv_dlopen_libs=
11442 ;;
11443
11444 cygwin*)
11445 lt_cv_dlopen=dlopen
11446 lt_cv_dlopen_libs=
11447 ;;
11448
11449 darwin*)
11450 # if libdl is installed we need to link against it
11451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11452 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11453 if ${ac_cv_lib_dl_dlopen+:} false; then :
11454 $as_echo_n "(cached) " >&6
11455 else
11456 ac_check_lib_save_LIBS=$LIBS
11457 LIBS="-ldl $LIBS"
11458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11459 /* end confdefs.h. */
11460
11461 /* Override any GCC internal prototype to avoid an error.
11462 Use char because int might match the return type of a GCC
11463 builtin and then its argument prototype would still apply. */
11464 #ifdef __cplusplus
11465 extern "C"
11466 #endif
11467 char dlopen ();
11468 int
11469 main ()
11470 {
11471 return dlopen ();
11472 ;
11473 return 0;
11474 }
11475 _ACEOF
11476 if ac_fn_c_try_link "$LINENO"; then :
11477 ac_cv_lib_dl_dlopen=yes
11478 else
11479 ac_cv_lib_dl_dlopen=no
11480 fi
11481 rm -f core conftest.err conftest.$ac_objext \
11482 conftest$ac_exeext conftest.$ac_ext
11483 LIBS=$ac_check_lib_save_LIBS
11484 fi
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11486 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11487 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11488 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11489 else
11490
11491 lt_cv_dlopen=dyld
11492 lt_cv_dlopen_libs=
11493 lt_cv_dlopen_self=yes
11494
11495 fi
11496
11497 ;;
11498
11499 tpf*)
11500 # Don't try to run any link tests for TPF. We know it's impossible
11501 # because TPF is a cross-compiler, and we know how we open DSOs.
11502 lt_cv_dlopen=dlopen
11503 lt_cv_dlopen_libs=
11504 lt_cv_dlopen_self=no
11505 ;;
11506
11507 *)
11508 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11509 if test "x$ac_cv_func_shl_load" = xyes; then :
11510 lt_cv_dlopen=shl_load
11511 else
11512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11513 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11514 if ${ac_cv_lib_dld_shl_load+:} false; then :
11515 $as_echo_n "(cached) " >&6
11516 else
11517 ac_check_lib_save_LIBS=$LIBS
11518 LIBS="-ldld $LIBS"
11519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11520 /* end confdefs.h. */
11521
11522 /* Override any GCC internal prototype to avoid an error.
11523 Use char because int might match the return type of a GCC
11524 builtin and then its argument prototype would still apply. */
11525 #ifdef __cplusplus
11526 extern "C"
11527 #endif
11528 char shl_load ();
11529 int
11530 main ()
11531 {
11532 return shl_load ();
11533 ;
11534 return 0;
11535 }
11536 _ACEOF
11537 if ac_fn_c_try_link "$LINENO"; then :
11538 ac_cv_lib_dld_shl_load=yes
11539 else
11540 ac_cv_lib_dld_shl_load=no
11541 fi
11542 rm -f core conftest.err conftest.$ac_objext \
11543 conftest$ac_exeext conftest.$ac_ext
11544 LIBS=$ac_check_lib_save_LIBS
11545 fi
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11547 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11548 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11549 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11550 else
11551 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11552 if test "x$ac_cv_func_dlopen" = xyes; then :
11553 lt_cv_dlopen=dlopen
11554 else
11555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11556 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11557 if ${ac_cv_lib_dl_dlopen+:} false; then :
11558 $as_echo_n "(cached) " >&6
11559 else
11560 ac_check_lib_save_LIBS=$LIBS
11561 LIBS="-ldl $LIBS"
11562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11563 /* end confdefs.h. */
11564
11565 /* Override any GCC internal prototype to avoid an error.
11566 Use char because int might match the return type of a GCC
11567 builtin and then its argument prototype would still apply. */
11568 #ifdef __cplusplus
11569 extern "C"
11570 #endif
11571 char dlopen ();
11572 int
11573 main ()
11574 {
11575 return dlopen ();
11576 ;
11577 return 0;
11578 }
11579 _ACEOF
11580 if ac_fn_c_try_link "$LINENO"; then :
11581 ac_cv_lib_dl_dlopen=yes
11582 else
11583 ac_cv_lib_dl_dlopen=no
11584 fi
11585 rm -f core conftest.err conftest.$ac_objext \
11586 conftest$ac_exeext conftest.$ac_ext
11587 LIBS=$ac_check_lib_save_LIBS
11588 fi
11589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11590 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11591 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11592 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11593 else
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11595 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11596 if ${ac_cv_lib_svld_dlopen+:} false; then :
11597 $as_echo_n "(cached) " >&6
11598 else
11599 ac_check_lib_save_LIBS=$LIBS
11600 LIBS="-lsvld $LIBS"
11601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11602 /* end confdefs.h. */
11603
11604 /* Override any GCC internal prototype to avoid an error.
11605 Use char because int might match the return type of a GCC
11606 builtin and then its argument prototype would still apply. */
11607 #ifdef __cplusplus
11608 extern "C"
11609 #endif
11610 char dlopen ();
11611 int
11612 main ()
11613 {
11614 return dlopen ();
11615 ;
11616 return 0;
11617 }
11618 _ACEOF
11619 if ac_fn_c_try_link "$LINENO"; then :
11620 ac_cv_lib_svld_dlopen=yes
11621 else
11622 ac_cv_lib_svld_dlopen=no
11623 fi
11624 rm -f core conftest.err conftest.$ac_objext \
11625 conftest$ac_exeext conftest.$ac_ext
11626 LIBS=$ac_check_lib_save_LIBS
11627 fi
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11629 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11630 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11631 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11632 else
11633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11634 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11635 if ${ac_cv_lib_dld_dld_link+:} false; then :
11636 $as_echo_n "(cached) " >&6
11637 else
11638 ac_check_lib_save_LIBS=$LIBS
11639 LIBS="-ldld $LIBS"
11640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11641 /* end confdefs.h. */
11642
11643 /* Override any GCC internal prototype to avoid an error.
11644 Use char because int might match the return type of a GCC
11645 builtin and then its argument prototype would still apply. */
11646 #ifdef __cplusplus
11647 extern "C"
11648 #endif
11649 char dld_link ();
11650 int
11651 main ()
11652 {
11653 return dld_link ();
11654 ;
11655 return 0;
11656 }
11657 _ACEOF
11658 if ac_fn_c_try_link "$LINENO"; then :
11659 ac_cv_lib_dld_dld_link=yes
11660 else
11661 ac_cv_lib_dld_dld_link=no
11662 fi
11663 rm -f core conftest.err conftest.$ac_objext \
11664 conftest$ac_exeext conftest.$ac_ext
11665 LIBS=$ac_check_lib_save_LIBS
11666 fi
11667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11668 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11669 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11670 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11671 fi
11672
11673
11674 fi
11675
11676
11677 fi
11678
11679
11680 fi
11681
11682
11683 fi
11684
11685
11686 fi
11687
11688 ;;
11689 esac
11690
11691 if test no = "$lt_cv_dlopen"; then
11692 enable_dlopen=no
11693 else
11694 enable_dlopen=yes
11695 fi
11696
11697 case $lt_cv_dlopen in
11698 dlopen)
11699 save_CPPFLAGS=$CPPFLAGS
11700 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11701
11702 save_LDFLAGS=$LDFLAGS
11703 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11704
11705 save_LIBS=$LIBS
11706 LIBS="$lt_cv_dlopen_libs $LIBS"
11707
11708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11709 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11710 if ${lt_cv_dlopen_self+:} false; then :
11711 $as_echo_n "(cached) " >&6
11712 else
11713 if test yes = "$cross_compiling"; then :
11714 lt_cv_dlopen_self=cross
11715 else
11716 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11717 lt_status=$lt_dlunknown
11718 cat > conftest.$ac_ext <<_LT_EOF
11719 #line $LINENO "configure"
11720 #include "confdefs.h"
11721
11722 #if HAVE_DLFCN_H
11723 #include <dlfcn.h>
11724 #endif
11725
11726 #include <stdio.h>
11727
11728 #ifdef RTLD_GLOBAL
11729 # define LT_DLGLOBAL RTLD_GLOBAL
11730 #else
11731 # ifdef DL_GLOBAL
11732 # define LT_DLGLOBAL DL_GLOBAL
11733 # else
11734 # define LT_DLGLOBAL 0
11735 # endif
11736 #endif
11737
11738 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11739 find out it does not work in some platform. */
11740 #ifndef LT_DLLAZY_OR_NOW
11741 # ifdef RTLD_LAZY
11742 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11743 # else
11744 # ifdef DL_LAZY
11745 # define LT_DLLAZY_OR_NOW DL_LAZY
11746 # else
11747 # ifdef RTLD_NOW
11748 # define LT_DLLAZY_OR_NOW RTLD_NOW
11749 # else
11750 # ifdef DL_NOW
11751 # define LT_DLLAZY_OR_NOW DL_NOW
11752 # else
11753 # define LT_DLLAZY_OR_NOW 0
11754 # endif
11755 # endif
11756 # endif
11757 # endif
11758 #endif
11759
11760 /* When -fvisibility=hidden is used, assume the code has been annotated
11761 correspondingly for the symbols needed. */
11762 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11763 int fnord () __attribute__((visibility("default")));
11764 #endif
11765
11766 int fnord () { return 42; }
11767 int main ()
11768 {
11769 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11770 int status = $lt_dlunknown;
11771
11772 if (self)
11773 {
11774 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11775 else
11776 {
11777 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11778 else puts (dlerror ());
11779 }
11780 /* dlclose (self); */
11781 }
11782 else
11783 puts (dlerror ());
11784
11785 return status;
11786 }
11787 _LT_EOF
11788 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11789 (eval $ac_link) 2>&5
11790 ac_status=$?
11791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11792 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11793 (./conftest; exit; ) >&5 2>/dev/null
11794 lt_status=$?
11795 case x$lt_status in
11796 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11797 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11798 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11799 esac
11800 else :
11801 # compilation failed
11802 lt_cv_dlopen_self=no
11803 fi
11804 fi
11805 rm -fr conftest*
11806
11807
11808 fi
11809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11810 $as_echo "$lt_cv_dlopen_self" >&6; }
11811
11812 if test yes = "$lt_cv_dlopen_self"; then
11813 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11815 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11816 if ${lt_cv_dlopen_self_static+:} false; then :
11817 $as_echo_n "(cached) " >&6
11818 else
11819 if test yes = "$cross_compiling"; then :
11820 lt_cv_dlopen_self_static=cross
11821 else
11822 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11823 lt_status=$lt_dlunknown
11824 cat > conftest.$ac_ext <<_LT_EOF
11825 #line $LINENO "configure"
11826 #include "confdefs.h"
11827
11828 #if HAVE_DLFCN_H
11829 #include <dlfcn.h>
11830 #endif
11831
11832 #include <stdio.h>
11833
11834 #ifdef RTLD_GLOBAL
11835 # define LT_DLGLOBAL RTLD_GLOBAL
11836 #else
11837 # ifdef DL_GLOBAL
11838 # define LT_DLGLOBAL DL_GLOBAL
11839 # else
11840 # define LT_DLGLOBAL 0
11841 # endif
11842 #endif
11843
11844 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11845 find out it does not work in some platform. */
11846 #ifndef LT_DLLAZY_OR_NOW
11847 # ifdef RTLD_LAZY
11848 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11849 # else
11850 # ifdef DL_LAZY
11851 # define LT_DLLAZY_OR_NOW DL_LAZY
11852 # else
11853 # ifdef RTLD_NOW
11854 # define LT_DLLAZY_OR_NOW RTLD_NOW
11855 # else
11856 # ifdef DL_NOW
11857 # define LT_DLLAZY_OR_NOW DL_NOW
11858 # else
11859 # define LT_DLLAZY_OR_NOW 0
11860 # endif
11861 # endif
11862 # endif
11863 # endif
11864 #endif
11865
11866 /* When -fvisibility=hidden is used, assume the code has been annotated
11867 correspondingly for the symbols needed. */
11868 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11869 int fnord () __attribute__((visibility("default")));
11870 #endif
11871
11872 int fnord () { return 42; }
11873 int main ()
11874 {
11875 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11876 int status = $lt_dlunknown;
11877
11878 if (self)
11879 {
11880 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11881 else
11882 {
11883 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11884 else puts (dlerror ());
11885 }
11886 /* dlclose (self); */
11887 }
11888 else
11889 puts (dlerror ());
11890
11891 return status;
11892 }
11893 _LT_EOF
11894 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11895 (eval $ac_link) 2>&5
11896 ac_status=$?
11897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11898 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11899 (./conftest; exit; ) >&5 2>/dev/null
11900 lt_status=$?
11901 case x$lt_status in
11902 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11903 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11904 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11905 esac
11906 else :
11907 # compilation failed
11908 lt_cv_dlopen_self_static=no
11909 fi
11910 fi
11911 rm -fr conftest*
11912
11913
11914 fi
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11916 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11917 fi
11918
11919 CPPFLAGS=$save_CPPFLAGS
11920 LDFLAGS=$save_LDFLAGS
11921 LIBS=$save_LIBS
11922 ;;
11923 esac
11924
11925 case $lt_cv_dlopen_self in
11926 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11927 *) enable_dlopen_self=unknown ;;
11928 esac
11929
11930 case $lt_cv_dlopen_self_static in
11931 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11932 *) enable_dlopen_self_static=unknown ;;
11933 esac
11934 fi
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952 striplib=
11953 old_striplib=
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11955 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11956 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11957 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11958 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11960 $as_echo "yes" >&6; }
11961 else
11962 # FIXME - insert some real tests, host_os isn't really good enough
11963 case $host_os in
11964 darwin*)
11965 if test -n "$STRIP"; then
11966 striplib="$STRIP -x"
11967 old_striplib="$STRIP -S"
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11969 $as_echo "yes" >&6; }
11970 else
11971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11972 $as_echo "no" >&6; }
11973 fi
11974 ;;
11975 *)
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11977 $as_echo "no" >&6; }
11978 ;;
11979 esac
11980 fi
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993 # Report what library types will actually be built
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11995 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11997 $as_echo "$can_build_shared" >&6; }
11998
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12000 $as_echo_n "checking whether to build shared libraries... " >&6; }
12001 test no = "$can_build_shared" && enable_shared=no
12002
12003 # On AIX, shared libraries and static libraries use the same namespace, and
12004 # are all built from PIC.
12005 case $host_os in
12006 aix3*)
12007 test yes = "$enable_shared" && enable_static=no
12008 if test -n "$RANLIB"; then
12009 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12010 postinstall_cmds='$RANLIB $lib'
12011 fi
12012 ;;
12013
12014 aix[4-9]*)
12015 if test ia64 != "$host_cpu"; then
12016 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12017 yes,aix,yes) ;; # shared object as lib.so file only
12018 yes,svr4,*) ;; # shared object as lib.so archive member only
12019 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12020 esac
12021 fi
12022 ;;
12023 esac
12024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12025 $as_echo "$enable_shared" >&6; }
12026
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12028 $as_echo_n "checking whether to build static libraries... " >&6; }
12029 # Make sure either enable_shared or enable_static is yes.
12030 test yes = "$enable_shared" || enable_static=yes
12031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12032 $as_echo "$enable_static" >&6; }
12033
12034
12035
12036
12037 fi
12038 ac_ext=c
12039 ac_cpp='$CPP $CPPFLAGS'
12040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12043
12044 CC=$lt_save_CC
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060 ac_config_commands="$ac_config_commands libtool"
12061
12062
12063
12064
12065 # Only expand once:
12066
12067
12068
12069 # Require xorg-macros minimum of 1.12 for DocBook external references
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
12082 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
12083 if ${ac_cv_prog_cc_c99+:} false; then :
12084 $as_echo_n "(cached) " >&6
12085 else
12086 ac_cv_prog_cc_c99=no
12087 ac_save_CC=$CC
12088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12089 /* end confdefs.h. */
12090 #include <stdarg.h>
12091 #include <stdbool.h>
12092 #include <stdlib.h>
12093 #include <wchar.h>
12094 #include <stdio.h>
12095
12096 // Check varargs macros. These examples are taken from C99 6.10.3.5.
12097 #define debug(...) fprintf (stderr, __VA_ARGS__)
12098 #define showlist(...) puts (#__VA_ARGS__)
12099 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
12100 static void
12101 test_varargs_macros (void)
12102 {
12103 int x = 1234;
12104 int y = 5678;
12105 debug ("Flag");
12106 debug ("X = %d\n", x);
12107 showlist (The first, second, and third items.);
12108 report (x>y, "x is %d but y is %d", x, y);
12109 }
12110
12111 // Check long long types.
12112 #define BIG64 18446744073709551615ull
12113 #define BIG32 4294967295ul
12114 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
12115 #if !BIG_OK
12116 your preprocessor is broken;
12117 #endif
12118 #if BIG_OK
12119 #else
12120 your preprocessor is broken;
12121 #endif
12122 static long long int bignum = -9223372036854775807LL;
12123 static unsigned long long int ubignum = BIG64;
12124
12125 struct incomplete_array
12126 {
12127 int datasize;
12128 double data[];
12129 };
12130
12131 struct named_init {
12132 int number;
12133 const wchar_t *name;
12134 double average;
12135 };
12136
12137 typedef const char *ccp;
12138
12139 static inline int
12140 test_restrict (ccp restrict text)
12141 {
12142 // See if C++-style comments work.
12143 // Iterate through items via the restricted pointer.
12144 // Also check for declarations in for loops.
12145 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
12146 continue;
12147 return 0;
12148 }
12149
12150 // Check varargs and va_copy.
12151 static void
12152 test_varargs (const char *format, ...)
12153 {
12154 va_list args;
12155 va_start (args, format);
12156 va_list args_copy;
12157 va_copy (args_copy, args);
12158
12159 const char *str;
12160 int number;
12161 float fnumber;
12162
12163 while (*format)
12164 {
12165 switch (*format++)
12166 {
12167 case 's': // string
12168 str = va_arg (args_copy, const char *);
12169 break;
12170 case 'd': // int
12171 number = va_arg (args_copy, int);
12172 break;
12173 case 'f': // float
12174 fnumber = va_arg (args_copy, double);
12175 break;
12176 default:
12177 break;
12178 }
12179 }
12180 va_end (args_copy);
12181 va_end (args);
12182 }
12183
12184 int
12185 main ()
12186 {
12187
12188 // Check bool.
12189 _Bool success = false;
12190
12191 // Check restrict.
12192 if (test_restrict ("String literal") == 0)
12193 success = true;
12194 char *restrict newvar = "Another string";
12195
12196 // Check varargs.
12197 test_varargs ("s, d' f .", "string", 65, 34.234);
12198 test_varargs_macros ();
12199
12200 // Check flexible array members.
12201 struct incomplete_array *ia =
12202 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
12203 ia->datasize = 10;
12204 for (int i = 0; i < ia->datasize; ++i)
12205 ia->data[i] = i * 1.234;
12206
12207 // Check named initializers.
12208 struct named_init ni = {
12209 .number = 34,
12210 .name = L"Test wide string",
12211 .average = 543.34343,
12212 };
12213
12214 ni.number = 58;
12215
12216 int dynamic_array[ni.number];
12217 dynamic_array[ni.number - 1] = 543;
12218
12219 // work around unused variable warnings
12220 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
12221 || dynamic_array[ni.number - 1] != 543);
12222
12223 ;
12224 return 0;
12225 }
12226 _ACEOF
12227 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
12228 do
12229 CC="$ac_save_CC $ac_arg"
12230 if ac_fn_c_try_compile "$LINENO"; then :
12231 ac_cv_prog_cc_c99=$ac_arg
12232 fi
12233 rm -f core conftest.err conftest.$ac_objext
12234 test "x$ac_cv_prog_cc_c99" != "xno" && break
12235 done
12236 rm -f conftest.$ac_ext
12237 CC=$ac_save_CC
12238
12239 fi
12240 # AC_CACHE_VAL
12241 case "x$ac_cv_prog_cc_c99" in
12242 x)
12243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12244 $as_echo "none needed" >&6; } ;;
12245 xno)
12246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12247 $as_echo "unsupported" >&6; } ;;
12248 *)
12249 CC="$CC $ac_cv_prog_cc_c99"
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
12251 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
12252 esac
12253 if test "x$ac_cv_prog_cc_c99" != xno; then :
12254
12255 fi
12256
12257
12258
12259
12260
12261
12262 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
12263 if test "x$ac_cv_have_decl___clang__" = xyes; then :
12264 CLANGCC="yes"
12265 else
12266 CLANGCC="no"
12267 fi
12268
12269 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
12270 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
12271 INTELCC="yes"
12272 else
12273 INTELCC="no"
12274 fi
12275
12276 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
12277 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
12278 SUNCC="yes"
12279 else
12280 SUNCC="no"
12281 fi
12282
12283
12284
12285
12286
12287
12288
12289
12290
12291 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12292 if test -n "$ac_tool_prefix"; then
12293 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12294 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12296 $as_echo_n "checking for $ac_word... " >&6; }
12297 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12298 $as_echo_n "(cached) " >&6
12299 else
12300 case $PKG_CONFIG in
12301 [\\/]* | ?:[\\/]*)
12302 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12303 ;;
12304 *)
12305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12306 for as_dir in $PATH
12307 do
12308 IFS=$as_save_IFS
12309 test -z "$as_dir" && as_dir=.
12310 for ac_exec_ext in '' $ac_executable_extensions; do
12311 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12312 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12314 break 2
12315 fi
12316 done
12317 done
12318 IFS=$as_save_IFS
12319
12320 ;;
12321 esac
12322 fi
12323 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12324 if test -n "$PKG_CONFIG"; then
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12326 $as_echo "$PKG_CONFIG" >&6; }
12327 else
12328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12329 $as_echo "no" >&6; }
12330 fi
12331
12332
12333 fi
12334 if test -z "$ac_cv_path_PKG_CONFIG"; then
12335 ac_pt_PKG_CONFIG=$PKG_CONFIG
12336 # Extract the first word of "pkg-config", so it can be a program name with args.
12337 set dummy pkg-config; ac_word=$2
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12339 $as_echo_n "checking for $ac_word... " >&6; }
12340 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12341 $as_echo_n "(cached) " >&6
12342 else
12343 case $ac_pt_PKG_CONFIG in
12344 [\\/]* | ?:[\\/]*)
12345 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12346 ;;
12347 *)
12348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12349 for as_dir in $PATH
12350 do
12351 IFS=$as_save_IFS
12352 test -z "$as_dir" && as_dir=.
12353 for ac_exec_ext in '' $ac_executable_extensions; do
12354 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12355 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12357 break 2
12358 fi
12359 done
12360 done
12361 IFS=$as_save_IFS
12362
12363 ;;
12364 esac
12365 fi
12366 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12367 if test -n "$ac_pt_PKG_CONFIG"; then
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12369 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12370 else
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12372 $as_echo "no" >&6; }
12373 fi
12374
12375 if test "x$ac_pt_PKG_CONFIG" = x; then
12376 PKG_CONFIG=""
12377 else
12378 case $cross_compiling:$ac_tool_warned in
12379 yes:)
12380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12381 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12382 ac_tool_warned=yes ;;
12383 esac
12384 PKG_CONFIG=$ac_pt_PKG_CONFIG
12385 fi
12386 else
12387 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12388 fi
12389
12390 fi
12391 if test -n "$PKG_CONFIG"; then
12392 _pkg_min_version=0.9.0
12393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12394 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12395 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12397 $as_echo "yes" >&6; }
12398 else
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12400 $as_echo "no" >&6; }
12401 PKG_CONFIG=""
12402 fi
12403 fi
12404
12405
12406
12407
12408
12409 # Check whether --enable-selective-werror was given.
12410 if test "${enable_selective_werror+set}" = set; then :
12411 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
12412 else
12413 SELECTIVE_WERROR=yes
12414 fi
12415
12416
12417
12418
12419
12420 # -v is too short to test reliably with XORG_TESTSET_CFLAG
12421 if test "x$SUNCC" = "xyes"; then
12422 BASE_CFLAGS="-v"
12423 else
12424 BASE_CFLAGS=""
12425 fi
12426
12427 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
12428
12429
12430
12431
12432
12433
12434
12435
12436
12437
12438
12439
12440
12441 xorg_testset_save_CFLAGS="$CFLAGS"
12442
12443 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12444 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12446 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12447 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12448 $as_echo_n "(cached) " >&6
12449 else
12450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12451 /* end confdefs.h. */
12452 int i;
12453 _ACEOF
12454 if ac_fn_c_try_compile "$LINENO"; then :
12455 xorg_cv_cc_flag_unknown_warning_option=yes
12456 else
12457 xorg_cv_cc_flag_unknown_warning_option=no
12458 fi
12459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12460 fi
12461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12462 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12463 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12464 CFLAGS="$xorg_testset_save_CFLAGS"
12465 fi
12466
12467 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12468 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12469 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12470 fi
12471 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12473 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12474 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12475 $as_echo_n "(cached) " >&6
12476 else
12477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12478 /* end confdefs.h. */
12479 int i;
12480 _ACEOF
12481 if ac_fn_c_try_compile "$LINENO"; then :
12482 xorg_cv_cc_flag_unused_command_line_argument=yes
12483 else
12484 xorg_cv_cc_flag_unused_command_line_argument=no
12485 fi
12486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12487 fi
12488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12489 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12490 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12491 CFLAGS="$xorg_testset_save_CFLAGS"
12492 fi
12493
12494 found="no"
12495
12496 if test $found = "no" ; then
12497 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12498 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12499 fi
12500
12501 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12502 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12503 fi
12504
12505 CFLAGS="$CFLAGS -Wall"
12506
12507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
12508 $as_echo_n "checking if $CC supports -Wall... " >&6; }
12509 cacheid=xorg_cv_cc_flag__Wall
12510 if eval \${$cacheid+:} false; then :
12511 $as_echo_n "(cached) " >&6
12512 else
12513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12514 /* end confdefs.h. */
12515 int i;
12516 int
12517 main ()
12518 {
12519
12520 ;
12521 return 0;
12522 }
12523 _ACEOF
12524 if ac_fn_c_try_link "$LINENO"; then :
12525 eval $cacheid=yes
12526 else
12527 eval $cacheid=no
12528 fi
12529 rm -f core conftest.err conftest.$ac_objext \
12530 conftest$ac_exeext conftest.$ac_ext
12531 fi
12532
12533
12534 CFLAGS="$xorg_testset_save_CFLAGS"
12535
12536 eval supported=\$$cacheid
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12538 $as_echo "$supported" >&6; }
12539 if test "$supported" = "yes" ; then
12540 BASE_CFLAGS="$BASE_CFLAGS -Wall"
12541 found="yes"
12542 fi
12543 fi
12544
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559 xorg_testset_save_CFLAGS="$CFLAGS"
12560
12561 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12562 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12564 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12565 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12566 $as_echo_n "(cached) " >&6
12567 else
12568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12569 /* end confdefs.h. */
12570 int i;
12571 _ACEOF
12572 if ac_fn_c_try_compile "$LINENO"; then :
12573 xorg_cv_cc_flag_unknown_warning_option=yes
12574 else
12575 xorg_cv_cc_flag_unknown_warning_option=no
12576 fi
12577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12578 fi
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12580 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12581 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12582 CFLAGS="$xorg_testset_save_CFLAGS"
12583 fi
12584
12585 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12586 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12587 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12588 fi
12589 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12591 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12592 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12593 $as_echo_n "(cached) " >&6
12594 else
12595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12596 /* end confdefs.h. */
12597 int i;
12598 _ACEOF
12599 if ac_fn_c_try_compile "$LINENO"; then :
12600 xorg_cv_cc_flag_unused_command_line_argument=yes
12601 else
12602 xorg_cv_cc_flag_unused_command_line_argument=no
12603 fi
12604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12605 fi
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12607 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12608 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12609 CFLAGS="$xorg_testset_save_CFLAGS"
12610 fi
12611
12612 found="no"
12613
12614 if test $found = "no" ; then
12615 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12616 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12617 fi
12618
12619 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12620 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12621 fi
12622
12623 CFLAGS="$CFLAGS -Wpointer-arith"
12624
12625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
12626 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
12627 cacheid=xorg_cv_cc_flag__Wpointer_arith
12628 if eval \${$cacheid+:} false; then :
12629 $as_echo_n "(cached) " >&6
12630 else
12631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12632 /* end confdefs.h. */
12633 int i;
12634 int
12635 main ()
12636 {
12637
12638 ;
12639 return 0;
12640 }
12641 _ACEOF
12642 if ac_fn_c_try_link "$LINENO"; then :
12643 eval $cacheid=yes
12644 else
12645 eval $cacheid=no
12646 fi
12647 rm -f core conftest.err conftest.$ac_objext \
12648 conftest$ac_exeext conftest.$ac_ext
12649 fi
12650
12651
12652 CFLAGS="$xorg_testset_save_CFLAGS"
12653
12654 eval supported=\$$cacheid
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12656 $as_echo "$supported" >&6; }
12657 if test "$supported" = "yes" ; then
12658 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
12659 found="yes"
12660 fi
12661 fi
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677 xorg_testset_save_CFLAGS="$CFLAGS"
12678
12679 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12680 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12682 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12683 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12684 $as_echo_n "(cached) " >&6
12685 else
12686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12687 /* end confdefs.h. */
12688 int i;
12689 _ACEOF
12690 if ac_fn_c_try_compile "$LINENO"; then :
12691 xorg_cv_cc_flag_unknown_warning_option=yes
12692 else
12693 xorg_cv_cc_flag_unknown_warning_option=no
12694 fi
12695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12696 fi
12697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12698 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12699 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12700 CFLAGS="$xorg_testset_save_CFLAGS"
12701 fi
12702
12703 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12704 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12705 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12706 fi
12707 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12709 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12710 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12711 $as_echo_n "(cached) " >&6
12712 else
12713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12714 /* end confdefs.h. */
12715 int i;
12716 _ACEOF
12717 if ac_fn_c_try_compile "$LINENO"; then :
12718 xorg_cv_cc_flag_unused_command_line_argument=yes
12719 else
12720 xorg_cv_cc_flag_unused_command_line_argument=no
12721 fi
12722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12723 fi
12724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12725 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12726 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12727 CFLAGS="$xorg_testset_save_CFLAGS"
12728 fi
12729
12730 found="no"
12731
12732 if test $found = "no" ; then
12733 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12734 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12735 fi
12736
12737 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12738 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12739 fi
12740
12741 CFLAGS="$CFLAGS -Wmissing-declarations"
12742
12743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
12744 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
12745 cacheid=xorg_cv_cc_flag__Wmissing_declarations
12746 if eval \${$cacheid+:} false; then :
12747 $as_echo_n "(cached) " >&6
12748 else
12749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12750 /* end confdefs.h. */
12751 int i;
12752 int
12753 main ()
12754 {
12755
12756 ;
12757 return 0;
12758 }
12759 _ACEOF
12760 if ac_fn_c_try_link "$LINENO"; then :
12761 eval $cacheid=yes
12762 else
12763 eval $cacheid=no
12764 fi
12765 rm -f core conftest.err conftest.$ac_objext \
12766 conftest$ac_exeext conftest.$ac_ext
12767 fi
12768
12769
12770 CFLAGS="$xorg_testset_save_CFLAGS"
12771
12772 eval supported=\$$cacheid
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12774 $as_echo "$supported" >&6; }
12775 if test "$supported" = "yes" ; then
12776 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
12777 found="yes"
12778 fi
12779 fi
12780
12781
12782
12783
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795 xorg_testset_save_CFLAGS="$CFLAGS"
12796
12797 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12798 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12800 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12801 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12802 $as_echo_n "(cached) " >&6
12803 else
12804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12805 /* end confdefs.h. */
12806 int i;
12807 _ACEOF
12808 if ac_fn_c_try_compile "$LINENO"; then :
12809 xorg_cv_cc_flag_unknown_warning_option=yes
12810 else
12811 xorg_cv_cc_flag_unknown_warning_option=no
12812 fi
12813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12814 fi
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12816 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12817 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12818 CFLAGS="$xorg_testset_save_CFLAGS"
12819 fi
12820
12821 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12822 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12823 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12824 fi
12825 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12827 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12828 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12829 $as_echo_n "(cached) " >&6
12830 else
12831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12832 /* end confdefs.h. */
12833 int i;
12834 _ACEOF
12835 if ac_fn_c_try_compile "$LINENO"; then :
12836 xorg_cv_cc_flag_unused_command_line_argument=yes
12837 else
12838 xorg_cv_cc_flag_unused_command_line_argument=no
12839 fi
12840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12841 fi
12842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12843 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12844 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12845 CFLAGS="$xorg_testset_save_CFLAGS"
12846 fi
12847
12848 found="no"
12849
12850 if test $found = "no" ; then
12851 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12852 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12853 fi
12854
12855 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12856 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12857 fi
12858
12859 CFLAGS="$CFLAGS -Wformat=2"
12860
12861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
12862 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
12863 cacheid=xorg_cv_cc_flag__Wformat_2
12864 if eval \${$cacheid+:} false; then :
12865 $as_echo_n "(cached) " >&6
12866 else
12867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12868 /* end confdefs.h. */
12869 int i;
12870 int
12871 main ()
12872 {
12873
12874 ;
12875 return 0;
12876 }
12877 _ACEOF
12878 if ac_fn_c_try_link "$LINENO"; then :
12879 eval $cacheid=yes
12880 else
12881 eval $cacheid=no
12882 fi
12883 rm -f core conftest.err conftest.$ac_objext \
12884 conftest$ac_exeext conftest.$ac_ext
12885 fi
12886
12887
12888 CFLAGS="$xorg_testset_save_CFLAGS"
12889
12890 eval supported=\$$cacheid
12891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12892 $as_echo "$supported" >&6; }
12893 if test "$supported" = "yes" ; then
12894 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
12895 found="yes"
12896 fi
12897 fi
12898
12899 if test $found = "no" ; then
12900 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12901 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12902 fi
12903
12904 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12905 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12906 fi
12907
12908 CFLAGS="$CFLAGS -Wformat"
12909
12910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
12911 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
12912 cacheid=xorg_cv_cc_flag__Wformat
12913 if eval \${$cacheid+:} false; then :
12914 $as_echo_n "(cached) " >&6
12915 else
12916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12917 /* end confdefs.h. */
12918 int i;
12919 int
12920 main ()
12921 {
12922
12923 ;
12924 return 0;
12925 }
12926 _ACEOF
12927 if ac_fn_c_try_link "$LINENO"; then :
12928 eval $cacheid=yes
12929 else
12930 eval $cacheid=no
12931 fi
12932 rm -f core conftest.err conftest.$ac_objext \
12933 conftest$ac_exeext conftest.$ac_ext
12934 fi
12935
12936
12937 CFLAGS="$xorg_testset_save_CFLAGS"
12938
12939 eval supported=\$$cacheid
12940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12941 $as_echo "$supported" >&6; }
12942 if test "$supported" = "yes" ; then
12943 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
12944 found="yes"
12945 fi
12946 fi
12947
12948
12949
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964 xorg_testset_save_CFLAGS="$CFLAGS"
12965
12966 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12967 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12969 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12970 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12971 $as_echo_n "(cached) " >&6
12972 else
12973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12974 /* end confdefs.h. */
12975 int i;
12976 _ACEOF
12977 if ac_fn_c_try_compile "$LINENO"; then :
12978 xorg_cv_cc_flag_unknown_warning_option=yes
12979 else
12980 xorg_cv_cc_flag_unknown_warning_option=no
12981 fi
12982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12983 fi
12984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12985 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12986 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12987 CFLAGS="$xorg_testset_save_CFLAGS"
12988 fi
12989
12990 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12991 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12992 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12993 fi
12994 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12996 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12997 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12998 $as_echo_n "(cached) " >&6
12999 else
13000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13001 /* end confdefs.h. */
13002 int i;
13003 _ACEOF
13004 if ac_fn_c_try_compile "$LINENO"; then :
13005 xorg_cv_cc_flag_unused_command_line_argument=yes
13006 else
13007 xorg_cv_cc_flag_unused_command_line_argument=no
13008 fi
13009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13010 fi
13011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13012 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13013 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13014 CFLAGS="$xorg_testset_save_CFLAGS"
13015 fi
13016
13017 found="no"
13018
13019 if test $found = "no" ; then
13020 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13021 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13022 fi
13023
13024 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13025 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13026 fi
13027
13028 CFLAGS="$CFLAGS -Wstrict-prototypes"
13029
13030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
13031 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
13032 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
13033 if eval \${$cacheid+:} 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 int
13040 main ()
13041 {
13042
13043 ;
13044 return 0;
13045 }
13046 _ACEOF
13047 if ac_fn_c_try_link "$LINENO"; then :
13048 eval $cacheid=yes
13049 else
13050 eval $cacheid=no
13051 fi
13052 rm -f core conftest.err conftest.$ac_objext \
13053 conftest$ac_exeext conftest.$ac_ext
13054 fi
13055
13056
13057 CFLAGS="$xorg_testset_save_CFLAGS"
13058
13059 eval supported=\$$cacheid
13060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13061 $as_echo "$supported" >&6; }
13062 if test "$supported" = "yes" ; then
13063 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
13064 found="yes"
13065 fi
13066 fi
13067
13068
13069
13070
13071
13072
13073
13074
13075
13076
13077
13078
13079
13080
13081
13082 xorg_testset_save_CFLAGS="$CFLAGS"
13083
13084 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13085 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13087 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13088 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13089 $as_echo_n "(cached) " >&6
13090 else
13091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13092 /* end confdefs.h. */
13093 int i;
13094 _ACEOF
13095 if ac_fn_c_try_compile "$LINENO"; then :
13096 xorg_cv_cc_flag_unknown_warning_option=yes
13097 else
13098 xorg_cv_cc_flag_unknown_warning_option=no
13099 fi
13100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13101 fi
13102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13103 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13104 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13105 CFLAGS="$xorg_testset_save_CFLAGS"
13106 fi
13107
13108 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13109 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13110 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13111 fi
13112 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13114 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13115 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13116 $as_echo_n "(cached) " >&6
13117 else
13118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13119 /* end confdefs.h. */
13120 int i;
13121 _ACEOF
13122 if ac_fn_c_try_compile "$LINENO"; then :
13123 xorg_cv_cc_flag_unused_command_line_argument=yes
13124 else
13125 xorg_cv_cc_flag_unused_command_line_argument=no
13126 fi
13127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13128 fi
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13130 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13131 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13132 CFLAGS="$xorg_testset_save_CFLAGS"
13133 fi
13134
13135 found="no"
13136
13137 if test $found = "no" ; then
13138 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13139 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13140 fi
13141
13142 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13143 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13144 fi
13145
13146 CFLAGS="$CFLAGS -Wmissing-prototypes"
13147
13148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
13149 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
13150 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
13151 if eval \${$cacheid+:} 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 int
13158 main ()
13159 {
13160
13161 ;
13162 return 0;
13163 }
13164 _ACEOF
13165 if ac_fn_c_try_link "$LINENO"; then :
13166 eval $cacheid=yes
13167 else
13168 eval $cacheid=no
13169 fi
13170 rm -f core conftest.err conftest.$ac_objext \
13171 conftest$ac_exeext conftest.$ac_ext
13172 fi
13173
13174
13175 CFLAGS="$xorg_testset_save_CFLAGS"
13176
13177 eval supported=\$$cacheid
13178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13179 $as_echo "$supported" >&6; }
13180 if test "$supported" = "yes" ; then
13181 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
13182 found="yes"
13183 fi
13184 fi
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200 xorg_testset_save_CFLAGS="$CFLAGS"
13201
13202 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13203 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13205 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13206 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13207 $as_echo_n "(cached) " >&6
13208 else
13209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13210 /* end confdefs.h. */
13211 int i;
13212 _ACEOF
13213 if ac_fn_c_try_compile "$LINENO"; then :
13214 xorg_cv_cc_flag_unknown_warning_option=yes
13215 else
13216 xorg_cv_cc_flag_unknown_warning_option=no
13217 fi
13218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13219 fi
13220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13221 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13222 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13223 CFLAGS="$xorg_testset_save_CFLAGS"
13224 fi
13225
13226 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13227 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13228 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13229 fi
13230 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13232 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13233 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13234 $as_echo_n "(cached) " >&6
13235 else
13236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13237 /* end confdefs.h. */
13238 int i;
13239 _ACEOF
13240 if ac_fn_c_try_compile "$LINENO"; then :
13241 xorg_cv_cc_flag_unused_command_line_argument=yes
13242 else
13243 xorg_cv_cc_flag_unused_command_line_argument=no
13244 fi
13245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13246 fi
13247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13248 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13249 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13250 CFLAGS="$xorg_testset_save_CFLAGS"
13251 fi
13252
13253 found="no"
13254
13255 if test $found = "no" ; then
13256 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13257 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13258 fi
13259
13260 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13261 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13262 fi
13263
13264 CFLAGS="$CFLAGS -Wnested-externs"
13265
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
13267 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
13268 cacheid=xorg_cv_cc_flag__Wnested_externs
13269 if eval \${$cacheid+:} 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 int
13276 main ()
13277 {
13278
13279 ;
13280 return 0;
13281 }
13282 _ACEOF
13283 if ac_fn_c_try_link "$LINENO"; then :
13284 eval $cacheid=yes
13285 else
13286 eval $cacheid=no
13287 fi
13288 rm -f core conftest.err conftest.$ac_objext \
13289 conftest$ac_exeext conftest.$ac_ext
13290 fi
13291
13292
13293 CFLAGS="$xorg_testset_save_CFLAGS"
13294
13295 eval supported=\$$cacheid
13296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13297 $as_echo "$supported" >&6; }
13298 if test "$supported" = "yes" ; then
13299 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
13300 found="yes"
13301 fi
13302 fi
13303
13304
13305
13306
13307
13308
13309
13310
13311
13312
13313
13314
13315
13316
13317
13318 xorg_testset_save_CFLAGS="$CFLAGS"
13319
13320 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13321 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13323 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13324 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13325 $as_echo_n "(cached) " >&6
13326 else
13327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13328 /* end confdefs.h. */
13329 int i;
13330 _ACEOF
13331 if ac_fn_c_try_compile "$LINENO"; then :
13332 xorg_cv_cc_flag_unknown_warning_option=yes
13333 else
13334 xorg_cv_cc_flag_unknown_warning_option=no
13335 fi
13336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13337 fi
13338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13339 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13340 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13341 CFLAGS="$xorg_testset_save_CFLAGS"
13342 fi
13343
13344 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13345 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13346 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13347 fi
13348 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13350 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13351 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13352 $as_echo_n "(cached) " >&6
13353 else
13354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13355 /* end confdefs.h. */
13356 int i;
13357 _ACEOF
13358 if ac_fn_c_try_compile "$LINENO"; then :
13359 xorg_cv_cc_flag_unused_command_line_argument=yes
13360 else
13361 xorg_cv_cc_flag_unused_command_line_argument=no
13362 fi
13363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13364 fi
13365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13366 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13367 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13368 CFLAGS="$xorg_testset_save_CFLAGS"
13369 fi
13370
13371 found="no"
13372
13373 if test $found = "no" ; then
13374 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13375 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13376 fi
13377
13378 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13379 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13380 fi
13381
13382 CFLAGS="$CFLAGS -Wbad-function-cast"
13383
13384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
13385 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
13386 cacheid=xorg_cv_cc_flag__Wbad_function_cast
13387 if eval \${$cacheid+:} 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 int
13394 main ()
13395 {
13396
13397 ;
13398 return 0;
13399 }
13400 _ACEOF
13401 if ac_fn_c_try_link "$LINENO"; then :
13402 eval $cacheid=yes
13403 else
13404 eval $cacheid=no
13405 fi
13406 rm -f core conftest.err conftest.$ac_objext \
13407 conftest$ac_exeext conftest.$ac_ext
13408 fi
13409
13410
13411 CFLAGS="$xorg_testset_save_CFLAGS"
13412
13413 eval supported=\$$cacheid
13414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13415 $as_echo "$supported" >&6; }
13416 if test "$supported" = "yes" ; then
13417 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
13418 found="yes"
13419 fi
13420 fi
13421
13422
13423
13424
13425
13426
13427
13428
13429
13430
13431
13432
13433
13434
13435
13436 xorg_testset_save_CFLAGS="$CFLAGS"
13437
13438 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13439 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13441 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13442 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13443 $as_echo_n "(cached) " >&6
13444 else
13445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13446 /* end confdefs.h. */
13447 int i;
13448 _ACEOF
13449 if ac_fn_c_try_compile "$LINENO"; then :
13450 xorg_cv_cc_flag_unknown_warning_option=yes
13451 else
13452 xorg_cv_cc_flag_unknown_warning_option=no
13453 fi
13454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13455 fi
13456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13457 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13458 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13459 CFLAGS="$xorg_testset_save_CFLAGS"
13460 fi
13461
13462 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13463 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13464 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13465 fi
13466 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13468 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13469 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13470 $as_echo_n "(cached) " >&6
13471 else
13472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13473 /* end confdefs.h. */
13474 int i;
13475 _ACEOF
13476 if ac_fn_c_try_compile "$LINENO"; then :
13477 xorg_cv_cc_flag_unused_command_line_argument=yes
13478 else
13479 xorg_cv_cc_flag_unused_command_line_argument=no
13480 fi
13481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13482 fi
13483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13484 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13485 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13486 CFLAGS="$xorg_testset_save_CFLAGS"
13487 fi
13488
13489 found="no"
13490
13491 if test $found = "no" ; then
13492 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13493 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13494 fi
13495
13496 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13497 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13498 fi
13499
13500 CFLAGS="$CFLAGS -Wold-style-definition"
13501
13502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
13503 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
13504 cacheid=xorg_cv_cc_flag__Wold_style_definition
13505 if eval \${$cacheid+:} 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 int
13512 main ()
13513 {
13514
13515 ;
13516 return 0;
13517 }
13518 _ACEOF
13519 if ac_fn_c_try_link "$LINENO"; then :
13520 eval $cacheid=yes
13521 else
13522 eval $cacheid=no
13523 fi
13524 rm -f core conftest.err conftest.$ac_objext \
13525 conftest$ac_exeext conftest.$ac_ext
13526 fi
13527
13528
13529 CFLAGS="$xorg_testset_save_CFLAGS"
13530
13531 eval supported=\$$cacheid
13532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13533 $as_echo "$supported" >&6; }
13534 if test "$supported" = "yes" ; then
13535 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
13536 found="yes"
13537 fi
13538 fi
13539
13540 if test $found = "no" ; then
13541 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13542 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13543 fi
13544
13545 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13546 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13547 fi
13548
13549 CFLAGS="$CFLAGS -fd"
13550
13551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
13552 $as_echo_n "checking if $CC supports -fd... " >&6; }
13553 cacheid=xorg_cv_cc_flag__fd
13554 if eval \${$cacheid+:} false; then :
13555 $as_echo_n "(cached) " >&6
13556 else
13557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13558 /* end confdefs.h. */
13559 int i;
13560 int
13561 main ()
13562 {
13563
13564 ;
13565 return 0;
13566 }
13567 _ACEOF
13568 if ac_fn_c_try_link "$LINENO"; then :
13569 eval $cacheid=yes
13570 else
13571 eval $cacheid=no
13572 fi
13573 rm -f core conftest.err conftest.$ac_objext \
13574 conftest$ac_exeext conftest.$ac_ext
13575 fi
13576
13577
13578 CFLAGS="$xorg_testset_save_CFLAGS"
13579
13580 eval supported=\$$cacheid
13581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13582 $as_echo "$supported" >&6; }
13583 if test "$supported" = "yes" ; then
13584 BASE_CFLAGS="$BASE_CFLAGS -fd"
13585 found="yes"
13586 fi
13587 fi
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603 xorg_testset_save_CFLAGS="$CFLAGS"
13604
13605 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13606 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13608 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13609 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13610 $as_echo_n "(cached) " >&6
13611 else
13612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13613 /* end confdefs.h. */
13614 int i;
13615 _ACEOF
13616 if ac_fn_c_try_compile "$LINENO"; then :
13617 xorg_cv_cc_flag_unknown_warning_option=yes
13618 else
13619 xorg_cv_cc_flag_unknown_warning_option=no
13620 fi
13621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13622 fi
13623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13624 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13625 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13626 CFLAGS="$xorg_testset_save_CFLAGS"
13627 fi
13628
13629 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13630 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13631 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13632 fi
13633 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13635 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13636 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13637 $as_echo_n "(cached) " >&6
13638 else
13639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13640 /* end confdefs.h. */
13641 int i;
13642 _ACEOF
13643 if ac_fn_c_try_compile "$LINENO"; then :
13644 xorg_cv_cc_flag_unused_command_line_argument=yes
13645 else
13646 xorg_cv_cc_flag_unused_command_line_argument=no
13647 fi
13648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13649 fi
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13651 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13652 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13653 CFLAGS="$xorg_testset_save_CFLAGS"
13654 fi
13655
13656 found="no"
13657
13658 if test $found = "no" ; then
13659 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13660 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13661 fi
13662
13663 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13664 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13665 fi
13666
13667 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
13668
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
13670 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
13671 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
13672 if eval \${$cacheid+:} false; then :
13673 $as_echo_n "(cached) " >&6
13674 else
13675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13676 /* end confdefs.h. */
13677 int i;
13678 int
13679 main ()
13680 {
13681
13682 ;
13683 return 0;
13684 }
13685 _ACEOF
13686 if ac_fn_c_try_link "$LINENO"; then :
13687 eval $cacheid=yes
13688 else
13689 eval $cacheid=no
13690 fi
13691 rm -f core conftest.err conftest.$ac_objext \
13692 conftest$ac_exeext conftest.$ac_ext
13693 fi
13694
13695
13696 CFLAGS="$xorg_testset_save_CFLAGS"
13697
13698 eval supported=\$$cacheid
13699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13700 $as_echo "$supported" >&6; }
13701 if test "$supported" = "yes" ; then
13702 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
13703 found="yes"
13704 fi
13705 fi
13706
13707
13708
13709
13710
13711 # This chunk adds additional warnings that could catch undesired effects.
13712
13713
13714
13715
13716
13717
13718
13719
13720
13721
13722
13723
13724
13725 xorg_testset_save_CFLAGS="$CFLAGS"
13726
13727 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13728 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13730 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13731 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13732 $as_echo_n "(cached) " >&6
13733 else
13734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13735 /* end confdefs.h. */
13736 int i;
13737 _ACEOF
13738 if ac_fn_c_try_compile "$LINENO"; then :
13739 xorg_cv_cc_flag_unknown_warning_option=yes
13740 else
13741 xorg_cv_cc_flag_unknown_warning_option=no
13742 fi
13743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13744 fi
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13746 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13747 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13748 CFLAGS="$xorg_testset_save_CFLAGS"
13749 fi
13750
13751 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13752 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13753 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13754 fi
13755 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13757 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13758 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13759 $as_echo_n "(cached) " >&6
13760 else
13761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13762 /* end confdefs.h. */
13763 int i;
13764 _ACEOF
13765 if ac_fn_c_try_compile "$LINENO"; then :
13766 xorg_cv_cc_flag_unused_command_line_argument=yes
13767 else
13768 xorg_cv_cc_flag_unused_command_line_argument=no
13769 fi
13770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13771 fi
13772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13773 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13774 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13775 CFLAGS="$xorg_testset_save_CFLAGS"
13776 fi
13777
13778 found="no"
13779
13780 if test $found = "no" ; then
13781 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13782 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13783 fi
13784
13785 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13786 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13787 fi
13788
13789 CFLAGS="$CFLAGS -Wunused"
13790
13791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
13792 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
13793 cacheid=xorg_cv_cc_flag__Wunused
13794 if eval \${$cacheid+:} false; then :
13795 $as_echo_n "(cached) " >&6
13796 else
13797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13798 /* end confdefs.h. */
13799 int i;
13800 int
13801 main ()
13802 {
13803
13804 ;
13805 return 0;
13806 }
13807 _ACEOF
13808 if ac_fn_c_try_link "$LINENO"; then :
13809 eval $cacheid=yes
13810 else
13811 eval $cacheid=no
13812 fi
13813 rm -f core conftest.err conftest.$ac_objext \
13814 conftest$ac_exeext conftest.$ac_ext
13815 fi
13816
13817
13818 CFLAGS="$xorg_testset_save_CFLAGS"
13819
13820 eval supported=\$$cacheid
13821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13822 $as_echo "$supported" >&6; }
13823 if test "$supported" = "yes" ; then
13824 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
13825 found="yes"
13826 fi
13827 fi
13828
13829
13830
13831
13832
13833
13834
13835
13836
13837
13838
13839
13840
13841
13842
13843 xorg_testset_save_CFLAGS="$CFLAGS"
13844
13845 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13846 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13848 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13849 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13850 $as_echo_n "(cached) " >&6
13851 else
13852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13853 /* end confdefs.h. */
13854 int i;
13855 _ACEOF
13856 if ac_fn_c_try_compile "$LINENO"; then :
13857 xorg_cv_cc_flag_unknown_warning_option=yes
13858 else
13859 xorg_cv_cc_flag_unknown_warning_option=no
13860 fi
13861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13862 fi
13863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13864 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13865 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13866 CFLAGS="$xorg_testset_save_CFLAGS"
13867 fi
13868
13869 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13870 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13871 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13872 fi
13873 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13875 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13876 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13877 $as_echo_n "(cached) " >&6
13878 else
13879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13880 /* end confdefs.h. */
13881 int i;
13882 _ACEOF
13883 if ac_fn_c_try_compile "$LINENO"; then :
13884 xorg_cv_cc_flag_unused_command_line_argument=yes
13885 else
13886 xorg_cv_cc_flag_unused_command_line_argument=no
13887 fi
13888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13889 fi
13890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13891 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13892 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13893 CFLAGS="$xorg_testset_save_CFLAGS"
13894 fi
13895
13896 found="no"
13897
13898 if test $found = "no" ; then
13899 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13900 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13901 fi
13902
13903 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13904 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13905 fi
13906
13907 CFLAGS="$CFLAGS -Wuninitialized"
13908
13909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
13910 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
13911 cacheid=xorg_cv_cc_flag__Wuninitialized
13912 if eval \${$cacheid+:} false; then :
13913 $as_echo_n "(cached) " >&6
13914 else
13915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13916 /* end confdefs.h. */
13917 int i;
13918 int
13919 main ()
13920 {
13921
13922 ;
13923 return 0;
13924 }
13925 _ACEOF
13926 if ac_fn_c_try_link "$LINENO"; then :
13927 eval $cacheid=yes
13928 else
13929 eval $cacheid=no
13930 fi
13931 rm -f core conftest.err conftest.$ac_objext \
13932 conftest$ac_exeext conftest.$ac_ext
13933 fi
13934
13935
13936 CFLAGS="$xorg_testset_save_CFLAGS"
13937
13938 eval supported=\$$cacheid
13939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13940 $as_echo "$supported" >&6; }
13941 if test "$supported" = "yes" ; then
13942 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
13943 found="yes"
13944 fi
13945 fi
13946
13947
13948
13949
13950
13951
13952
13953
13954
13955
13956
13957
13958
13959
13960
13961 xorg_testset_save_CFLAGS="$CFLAGS"
13962
13963 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13964 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13966 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13967 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13968 $as_echo_n "(cached) " >&6
13969 else
13970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13971 /* end confdefs.h. */
13972 int i;
13973 _ACEOF
13974 if ac_fn_c_try_compile "$LINENO"; then :
13975 xorg_cv_cc_flag_unknown_warning_option=yes
13976 else
13977 xorg_cv_cc_flag_unknown_warning_option=no
13978 fi
13979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13980 fi
13981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13982 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13983 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13984 CFLAGS="$xorg_testset_save_CFLAGS"
13985 fi
13986
13987 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13988 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13989 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13990 fi
13991 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13993 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13994 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13995 $as_echo_n "(cached) " >&6
13996 else
13997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13998 /* end confdefs.h. */
13999 int i;
14000 _ACEOF
14001 if ac_fn_c_try_compile "$LINENO"; then :
14002 xorg_cv_cc_flag_unused_command_line_argument=yes
14003 else
14004 xorg_cv_cc_flag_unused_command_line_argument=no
14005 fi
14006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14007 fi
14008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14009 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14010 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14011 CFLAGS="$xorg_testset_save_CFLAGS"
14012 fi
14013
14014 found="no"
14015
14016 if test $found = "no" ; then
14017 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14018 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14019 fi
14020
14021 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14022 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14023 fi
14024
14025 CFLAGS="$CFLAGS -Wshadow"
14026
14027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
14028 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
14029 cacheid=xorg_cv_cc_flag__Wshadow
14030 if eval \${$cacheid+:} false; then :
14031 $as_echo_n "(cached) " >&6
14032 else
14033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14034 /* end confdefs.h. */
14035 int i;
14036 int
14037 main ()
14038 {
14039
14040 ;
14041 return 0;
14042 }
14043 _ACEOF
14044 if ac_fn_c_try_link "$LINENO"; then :
14045 eval $cacheid=yes
14046 else
14047 eval $cacheid=no
14048 fi
14049 rm -f core conftest.err conftest.$ac_objext \
14050 conftest$ac_exeext conftest.$ac_ext
14051 fi
14052
14053
14054 CFLAGS="$xorg_testset_save_CFLAGS"
14055
14056 eval supported=\$$cacheid
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14058 $as_echo "$supported" >&6; }
14059 if test "$supported" = "yes" ; then
14060 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
14061 found="yes"
14062 fi
14063 fi
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079 xorg_testset_save_CFLAGS="$CFLAGS"
14080
14081 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14082 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14084 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14085 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14086 $as_echo_n "(cached) " >&6
14087 else
14088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14089 /* end confdefs.h. */
14090 int i;
14091 _ACEOF
14092 if ac_fn_c_try_compile "$LINENO"; then :
14093 xorg_cv_cc_flag_unknown_warning_option=yes
14094 else
14095 xorg_cv_cc_flag_unknown_warning_option=no
14096 fi
14097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14098 fi
14099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14100 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14101 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14102 CFLAGS="$xorg_testset_save_CFLAGS"
14103 fi
14104
14105 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14106 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14107 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14108 fi
14109 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14111 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14112 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14113 $as_echo_n "(cached) " >&6
14114 else
14115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14116 /* end confdefs.h. */
14117 int i;
14118 _ACEOF
14119 if ac_fn_c_try_compile "$LINENO"; then :
14120 xorg_cv_cc_flag_unused_command_line_argument=yes
14121 else
14122 xorg_cv_cc_flag_unused_command_line_argument=no
14123 fi
14124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14125 fi
14126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14127 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14128 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14129 CFLAGS="$xorg_testset_save_CFLAGS"
14130 fi
14131
14132 found="no"
14133
14134 if test $found = "no" ; then
14135 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14136 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14137 fi
14138
14139 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14140 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14141 fi
14142
14143 CFLAGS="$CFLAGS -Wmissing-noreturn"
14144
14145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
14146 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
14147 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
14148 if eval \${$cacheid+:} false; then :
14149 $as_echo_n "(cached) " >&6
14150 else
14151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14152 /* end confdefs.h. */
14153 int i;
14154 int
14155 main ()
14156 {
14157
14158 ;
14159 return 0;
14160 }
14161 _ACEOF
14162 if ac_fn_c_try_link "$LINENO"; then :
14163 eval $cacheid=yes
14164 else
14165 eval $cacheid=no
14166 fi
14167 rm -f core conftest.err conftest.$ac_objext \
14168 conftest$ac_exeext conftest.$ac_ext
14169 fi
14170
14171
14172 CFLAGS="$xorg_testset_save_CFLAGS"
14173
14174 eval supported=\$$cacheid
14175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14176 $as_echo "$supported" >&6; }
14177 if test "$supported" = "yes" ; then
14178 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
14179 found="yes"
14180 fi
14181 fi
14182
14183
14184
14185
14186
14187
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197 xorg_testset_save_CFLAGS="$CFLAGS"
14198
14199 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14200 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14202 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14203 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14204 $as_echo_n "(cached) " >&6
14205 else
14206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14207 /* end confdefs.h. */
14208 int i;
14209 _ACEOF
14210 if ac_fn_c_try_compile "$LINENO"; then :
14211 xorg_cv_cc_flag_unknown_warning_option=yes
14212 else
14213 xorg_cv_cc_flag_unknown_warning_option=no
14214 fi
14215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14216 fi
14217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14218 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14219 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14220 CFLAGS="$xorg_testset_save_CFLAGS"
14221 fi
14222
14223 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14224 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14225 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14226 fi
14227 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14229 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14230 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14231 $as_echo_n "(cached) " >&6
14232 else
14233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14234 /* end confdefs.h. */
14235 int i;
14236 _ACEOF
14237 if ac_fn_c_try_compile "$LINENO"; then :
14238 xorg_cv_cc_flag_unused_command_line_argument=yes
14239 else
14240 xorg_cv_cc_flag_unused_command_line_argument=no
14241 fi
14242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14243 fi
14244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14245 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14246 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14247 CFLAGS="$xorg_testset_save_CFLAGS"
14248 fi
14249
14250 found="no"
14251
14252 if test $found = "no" ; then
14253 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14254 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14255 fi
14256
14257 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14258 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14259 fi
14260
14261 CFLAGS="$CFLAGS -Wmissing-format-attribute"
14262
14263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
14264 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
14265 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
14266 if eval \${$cacheid+:} false; then :
14267 $as_echo_n "(cached) " >&6
14268 else
14269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14270 /* end confdefs.h. */
14271 int i;
14272 int
14273 main ()
14274 {
14275
14276 ;
14277 return 0;
14278 }
14279 _ACEOF
14280 if ac_fn_c_try_link "$LINENO"; then :
14281 eval $cacheid=yes
14282 else
14283 eval $cacheid=no
14284 fi
14285 rm -f core conftest.err conftest.$ac_objext \
14286 conftest$ac_exeext conftest.$ac_ext
14287 fi
14288
14289
14290 CFLAGS="$xorg_testset_save_CFLAGS"
14291
14292 eval supported=\$$cacheid
14293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14294 $as_echo "$supported" >&6; }
14295 if test "$supported" = "yes" ; then
14296 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
14297 found="yes"
14298 fi
14299 fi
14300
14301
14302
14303
14304
14305
14306
14307
14308
14309
14310
14311
14312
14313
14314
14315 xorg_testset_save_CFLAGS="$CFLAGS"
14316
14317 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14318 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14320 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14321 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14322 $as_echo_n "(cached) " >&6
14323 else
14324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14325 /* end confdefs.h. */
14326 int i;
14327 _ACEOF
14328 if ac_fn_c_try_compile "$LINENO"; then :
14329 xorg_cv_cc_flag_unknown_warning_option=yes
14330 else
14331 xorg_cv_cc_flag_unknown_warning_option=no
14332 fi
14333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14334 fi
14335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14336 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14337 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14338 CFLAGS="$xorg_testset_save_CFLAGS"
14339 fi
14340
14341 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14342 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14343 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14344 fi
14345 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14347 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14348 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14349 $as_echo_n "(cached) " >&6
14350 else
14351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14352 /* end confdefs.h. */
14353 int i;
14354 _ACEOF
14355 if ac_fn_c_try_compile "$LINENO"; then :
14356 xorg_cv_cc_flag_unused_command_line_argument=yes
14357 else
14358 xorg_cv_cc_flag_unused_command_line_argument=no
14359 fi
14360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14361 fi
14362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14363 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14364 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14365 CFLAGS="$xorg_testset_save_CFLAGS"
14366 fi
14367
14368 found="no"
14369
14370 if test $found = "no" ; then
14371 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14372 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14373 fi
14374
14375 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14376 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14377 fi
14378
14379 CFLAGS="$CFLAGS -Wredundant-decls"
14380
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
14382 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
14383 cacheid=xorg_cv_cc_flag__Wredundant_decls
14384 if eval \${$cacheid+:} false; then :
14385 $as_echo_n "(cached) " >&6
14386 else
14387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14388 /* end confdefs.h. */
14389 int i;
14390 int
14391 main ()
14392 {
14393
14394 ;
14395 return 0;
14396 }
14397 _ACEOF
14398 if ac_fn_c_try_link "$LINENO"; then :
14399 eval $cacheid=yes
14400 else
14401 eval $cacheid=no
14402 fi
14403 rm -f core conftest.err conftest.$ac_objext \
14404 conftest$ac_exeext conftest.$ac_ext
14405 fi
14406
14407
14408 CFLAGS="$xorg_testset_save_CFLAGS"
14409
14410 eval supported=\$$cacheid
14411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14412 $as_echo "$supported" >&6; }
14413 if test "$supported" = "yes" ; then
14414 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
14415 found="yes"
14416 fi
14417 fi
14418
14419
14420
14421
14422
14423
14424
14425
14426
14427
14428
14429
14430
14431
14432
14433 xorg_testset_save_CFLAGS="$CFLAGS"
14434
14435 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14436 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14438 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14439 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14440 $as_echo_n "(cached) " >&6
14441 else
14442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14443 /* end confdefs.h. */
14444 int i;
14445 _ACEOF
14446 if ac_fn_c_try_compile "$LINENO"; then :
14447 xorg_cv_cc_flag_unknown_warning_option=yes
14448 else
14449 xorg_cv_cc_flag_unknown_warning_option=no
14450 fi
14451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14452 fi
14453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14454 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14455 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14456 CFLAGS="$xorg_testset_save_CFLAGS"
14457 fi
14458
14459 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14460 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14461 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14462 fi
14463 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14465 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14466 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14467 $as_echo_n "(cached) " >&6
14468 else
14469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14470 /* end confdefs.h. */
14471 int i;
14472 _ACEOF
14473 if ac_fn_c_try_compile "$LINENO"; then :
14474 xorg_cv_cc_flag_unused_command_line_argument=yes
14475 else
14476 xorg_cv_cc_flag_unused_command_line_argument=no
14477 fi
14478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14479 fi
14480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14481 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14482 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14483 CFLAGS="$xorg_testset_save_CFLAGS"
14484 fi
14485
14486 found="no"
14487
14488 if test $found = "no" ; then
14489 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14490 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14491 fi
14492
14493 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14494 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14495 fi
14496
14497 CFLAGS="$CFLAGS -Wlogical-op"
14498
14499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
14500 $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
14501 cacheid=xorg_cv_cc_flag__Wlogical_op
14502 if eval \${$cacheid+:} false; then :
14503 $as_echo_n "(cached) " >&6
14504 else
14505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14506 /* end confdefs.h. */
14507 int i;
14508 int
14509 main ()
14510 {
14511
14512 ;
14513 return 0;
14514 }
14515 _ACEOF
14516 if ac_fn_c_try_link "$LINENO"; then :
14517 eval $cacheid=yes
14518 else
14519 eval $cacheid=no
14520 fi
14521 rm -f core conftest.err conftest.$ac_objext \
14522 conftest$ac_exeext conftest.$ac_ext
14523 fi
14524
14525
14526 CFLAGS="$xorg_testset_save_CFLAGS"
14527
14528 eval supported=\$$cacheid
14529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14530 $as_echo "$supported" >&6; }
14531 if test "$supported" = "yes" ; then
14532 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
14533 found="yes"
14534 fi
14535 fi
14536
14537
14538
14539 # These are currently disabled because they are noisy. They will be enabled
14540 # in the future once the codebase is sufficiently modernized to silence
14541 # them. For now, I don't want them to drown out the other warnings.
14542 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
14543 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
14544 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
14545
14546 # Turn some warnings into errors, so we don't accidently get successful builds
14547 # when there are problems that should be fixed.
14548
14549 if test "x$SELECTIVE_WERROR" = "xyes" ; then
14550
14551
14552
14553
14554
14555
14556
14557
14558
14559
14560
14561
14562
14563 xorg_testset_save_CFLAGS="$CFLAGS"
14564
14565 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14566 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14568 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14569 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14570 $as_echo_n "(cached) " >&6
14571 else
14572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14573 /* end confdefs.h. */
14574 int i;
14575 _ACEOF
14576 if ac_fn_c_try_compile "$LINENO"; then :
14577 xorg_cv_cc_flag_unknown_warning_option=yes
14578 else
14579 xorg_cv_cc_flag_unknown_warning_option=no
14580 fi
14581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14582 fi
14583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14584 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14585 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14586 CFLAGS="$xorg_testset_save_CFLAGS"
14587 fi
14588
14589 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14590 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14591 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14592 fi
14593 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14595 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14596 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14597 $as_echo_n "(cached) " >&6
14598 else
14599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14600 /* end confdefs.h. */
14601 int i;
14602 _ACEOF
14603 if ac_fn_c_try_compile "$LINENO"; then :
14604 xorg_cv_cc_flag_unused_command_line_argument=yes
14605 else
14606 xorg_cv_cc_flag_unused_command_line_argument=no
14607 fi
14608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14609 fi
14610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14611 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14612 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14613 CFLAGS="$xorg_testset_save_CFLAGS"
14614 fi
14615
14616 found="no"
14617
14618 if test $found = "no" ; then
14619 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14620 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14621 fi
14622
14623 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14624 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14625 fi
14626
14627 CFLAGS="$CFLAGS -Werror=implicit"
14628
14629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
14630 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
14631 cacheid=xorg_cv_cc_flag__Werror_implicit
14632 if eval \${$cacheid+:} false; then :
14633 $as_echo_n "(cached) " >&6
14634 else
14635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14636 /* end confdefs.h. */
14637 int i;
14638 int
14639 main ()
14640 {
14641
14642 ;
14643 return 0;
14644 }
14645 _ACEOF
14646 if ac_fn_c_try_link "$LINENO"; then :
14647 eval $cacheid=yes
14648 else
14649 eval $cacheid=no
14650 fi
14651 rm -f core conftest.err conftest.$ac_objext \
14652 conftest$ac_exeext conftest.$ac_ext
14653 fi
14654
14655
14656 CFLAGS="$xorg_testset_save_CFLAGS"
14657
14658 eval supported=\$$cacheid
14659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14660 $as_echo "$supported" >&6; }
14661 if test "$supported" = "yes" ; then
14662 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
14663 found="yes"
14664 fi
14665 fi
14666
14667 if test $found = "no" ; then
14668 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14669 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14670 fi
14671
14672 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14673 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14674 fi
14675
14676 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14677
14678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
14679 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
14680 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
14681 if eval \${$cacheid+:} false; then :
14682 $as_echo_n "(cached) " >&6
14683 else
14684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14685 /* end confdefs.h. */
14686 int i;
14687 int
14688 main ()
14689 {
14690
14691 ;
14692 return 0;
14693 }
14694 _ACEOF
14695 if ac_fn_c_try_link "$LINENO"; then :
14696 eval $cacheid=yes
14697 else
14698 eval $cacheid=no
14699 fi
14700 rm -f core conftest.err conftest.$ac_objext \
14701 conftest$ac_exeext conftest.$ac_ext
14702 fi
14703
14704
14705 CFLAGS="$xorg_testset_save_CFLAGS"
14706
14707 eval supported=\$$cacheid
14708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14709 $as_echo "$supported" >&6; }
14710 if test "$supported" = "yes" ; then
14711 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14712 found="yes"
14713 fi
14714 fi
14715
14716
14717
14718
14719
14720
14721
14722
14723
14724
14725
14726
14727
14728
14729
14730 xorg_testset_save_CFLAGS="$CFLAGS"
14731
14732 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14733 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14735 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14736 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14737 $as_echo_n "(cached) " >&6
14738 else
14739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14740 /* end confdefs.h. */
14741 int i;
14742 _ACEOF
14743 if ac_fn_c_try_compile "$LINENO"; then :
14744 xorg_cv_cc_flag_unknown_warning_option=yes
14745 else
14746 xorg_cv_cc_flag_unknown_warning_option=no
14747 fi
14748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14749 fi
14750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14751 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14752 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14753 CFLAGS="$xorg_testset_save_CFLAGS"
14754 fi
14755
14756 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14757 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14758 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14759 fi
14760 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14762 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14763 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14764 $as_echo_n "(cached) " >&6
14765 else
14766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14767 /* end confdefs.h. */
14768 int i;
14769 _ACEOF
14770 if ac_fn_c_try_compile "$LINENO"; then :
14771 xorg_cv_cc_flag_unused_command_line_argument=yes
14772 else
14773 xorg_cv_cc_flag_unused_command_line_argument=no
14774 fi
14775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14776 fi
14777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14778 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14779 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14780 CFLAGS="$xorg_testset_save_CFLAGS"
14781 fi
14782
14783 found="no"
14784
14785 if test $found = "no" ; then
14786 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14787 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14788 fi
14789
14790 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14791 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14792 fi
14793
14794 CFLAGS="$CFLAGS -Werror=nonnull"
14795
14796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
14797 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
14798 cacheid=xorg_cv_cc_flag__Werror_nonnull
14799 if eval \${$cacheid+:} false; then :
14800 $as_echo_n "(cached) " >&6
14801 else
14802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14803 /* end confdefs.h. */
14804 int i;
14805 int
14806 main ()
14807 {
14808
14809 ;
14810 return 0;
14811 }
14812 _ACEOF
14813 if ac_fn_c_try_link "$LINENO"; then :
14814 eval $cacheid=yes
14815 else
14816 eval $cacheid=no
14817 fi
14818 rm -f core conftest.err conftest.$ac_objext \
14819 conftest$ac_exeext conftest.$ac_ext
14820 fi
14821
14822
14823 CFLAGS="$xorg_testset_save_CFLAGS"
14824
14825 eval supported=\$$cacheid
14826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14827 $as_echo "$supported" >&6; }
14828 if test "$supported" = "yes" ; then
14829 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
14830 found="yes"
14831 fi
14832 fi
14833
14834
14835
14836
14837
14838
14839
14840
14841
14842
14843
14844
14845
14846
14847
14848 xorg_testset_save_CFLAGS="$CFLAGS"
14849
14850 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14851 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14853 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14854 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14855 $as_echo_n "(cached) " >&6
14856 else
14857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14858 /* end confdefs.h. */
14859 int i;
14860 _ACEOF
14861 if ac_fn_c_try_compile "$LINENO"; then :
14862 xorg_cv_cc_flag_unknown_warning_option=yes
14863 else
14864 xorg_cv_cc_flag_unknown_warning_option=no
14865 fi
14866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14867 fi
14868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14869 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14870 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14871 CFLAGS="$xorg_testset_save_CFLAGS"
14872 fi
14873
14874 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14875 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14876 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14877 fi
14878 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14880 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14881 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14882 $as_echo_n "(cached) " >&6
14883 else
14884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14885 /* end confdefs.h. */
14886 int i;
14887 _ACEOF
14888 if ac_fn_c_try_compile "$LINENO"; then :
14889 xorg_cv_cc_flag_unused_command_line_argument=yes
14890 else
14891 xorg_cv_cc_flag_unused_command_line_argument=no
14892 fi
14893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14894 fi
14895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14896 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14897 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14898 CFLAGS="$xorg_testset_save_CFLAGS"
14899 fi
14900
14901 found="no"
14902
14903 if test $found = "no" ; then
14904 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14905 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14906 fi
14907
14908 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14909 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14910 fi
14911
14912 CFLAGS="$CFLAGS -Werror=init-self"
14913
14914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
14915 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
14916 cacheid=xorg_cv_cc_flag__Werror_init_self
14917 if eval \${$cacheid+:} false; then :
14918 $as_echo_n "(cached) " >&6
14919 else
14920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14921 /* end confdefs.h. */
14922 int i;
14923 int
14924 main ()
14925 {
14926
14927 ;
14928 return 0;
14929 }
14930 _ACEOF
14931 if ac_fn_c_try_link "$LINENO"; then :
14932 eval $cacheid=yes
14933 else
14934 eval $cacheid=no
14935 fi
14936 rm -f core conftest.err conftest.$ac_objext \
14937 conftest$ac_exeext conftest.$ac_ext
14938 fi
14939
14940
14941 CFLAGS="$xorg_testset_save_CFLAGS"
14942
14943 eval supported=\$$cacheid
14944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14945 $as_echo "$supported" >&6; }
14946 if test "$supported" = "yes" ; then
14947 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
14948 found="yes"
14949 fi
14950 fi
14951
14952
14953
14954
14955
14956
14957
14958
14959
14960
14961
14962
14963
14964
14965
14966 xorg_testset_save_CFLAGS="$CFLAGS"
14967
14968 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14969 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14971 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14972 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14973 $as_echo_n "(cached) " >&6
14974 else
14975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14976 /* end confdefs.h. */
14977 int i;
14978 _ACEOF
14979 if ac_fn_c_try_compile "$LINENO"; then :
14980 xorg_cv_cc_flag_unknown_warning_option=yes
14981 else
14982 xorg_cv_cc_flag_unknown_warning_option=no
14983 fi
14984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14985 fi
14986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14987 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14988 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14989 CFLAGS="$xorg_testset_save_CFLAGS"
14990 fi
14991
14992 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14993 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14994 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14995 fi
14996 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14998 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14999 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15000 $as_echo_n "(cached) " >&6
15001 else
15002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15003 /* end confdefs.h. */
15004 int i;
15005 _ACEOF
15006 if ac_fn_c_try_compile "$LINENO"; then :
15007 xorg_cv_cc_flag_unused_command_line_argument=yes
15008 else
15009 xorg_cv_cc_flag_unused_command_line_argument=no
15010 fi
15011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15012 fi
15013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15014 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15015 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15016 CFLAGS="$xorg_testset_save_CFLAGS"
15017 fi
15018
15019 found="no"
15020
15021 if test $found = "no" ; then
15022 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15023 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15024 fi
15025
15026 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15027 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15028 fi
15029
15030 CFLAGS="$CFLAGS -Werror=main"
15031
15032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
15033 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
15034 cacheid=xorg_cv_cc_flag__Werror_main
15035 if eval \${$cacheid+:} false; then :
15036 $as_echo_n "(cached) " >&6
15037 else
15038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15039 /* end confdefs.h. */
15040 int i;
15041 int
15042 main ()
15043 {
15044
15045 ;
15046 return 0;
15047 }
15048 _ACEOF
15049 if ac_fn_c_try_link "$LINENO"; then :
15050 eval $cacheid=yes
15051 else
15052 eval $cacheid=no
15053 fi
15054 rm -f core conftest.err conftest.$ac_objext \
15055 conftest$ac_exeext conftest.$ac_ext
15056 fi
15057
15058
15059 CFLAGS="$xorg_testset_save_CFLAGS"
15060
15061 eval supported=\$$cacheid
15062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15063 $as_echo "$supported" >&6; }
15064 if test "$supported" = "yes" ; then
15065 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
15066 found="yes"
15067 fi
15068 fi
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084 xorg_testset_save_CFLAGS="$CFLAGS"
15085
15086 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15087 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15089 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15090 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15091 $as_echo_n "(cached) " >&6
15092 else
15093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15094 /* end confdefs.h. */
15095 int i;
15096 _ACEOF
15097 if ac_fn_c_try_compile "$LINENO"; then :
15098 xorg_cv_cc_flag_unknown_warning_option=yes
15099 else
15100 xorg_cv_cc_flag_unknown_warning_option=no
15101 fi
15102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15103 fi
15104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15105 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15106 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15107 CFLAGS="$xorg_testset_save_CFLAGS"
15108 fi
15109
15110 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15111 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15112 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15113 fi
15114 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15116 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15117 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15118 $as_echo_n "(cached) " >&6
15119 else
15120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15121 /* end confdefs.h. */
15122 int i;
15123 _ACEOF
15124 if ac_fn_c_try_compile "$LINENO"; then :
15125 xorg_cv_cc_flag_unused_command_line_argument=yes
15126 else
15127 xorg_cv_cc_flag_unused_command_line_argument=no
15128 fi
15129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15130 fi
15131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15132 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15133 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15134 CFLAGS="$xorg_testset_save_CFLAGS"
15135 fi
15136
15137 found="no"
15138
15139 if test $found = "no" ; then
15140 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15141 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15142 fi
15143
15144 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15145 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15146 fi
15147
15148 CFLAGS="$CFLAGS -Werror=missing-braces"
15149
15150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
15151 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
15152 cacheid=xorg_cv_cc_flag__Werror_missing_braces
15153 if eval \${$cacheid+:} false; then :
15154 $as_echo_n "(cached) " >&6
15155 else
15156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15157 /* end confdefs.h. */
15158 int i;
15159 int
15160 main ()
15161 {
15162
15163 ;
15164 return 0;
15165 }
15166 _ACEOF
15167 if ac_fn_c_try_link "$LINENO"; then :
15168 eval $cacheid=yes
15169 else
15170 eval $cacheid=no
15171 fi
15172 rm -f core conftest.err conftest.$ac_objext \
15173 conftest$ac_exeext conftest.$ac_ext
15174 fi
15175
15176
15177 CFLAGS="$xorg_testset_save_CFLAGS"
15178
15179 eval supported=\$$cacheid
15180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15181 $as_echo "$supported" >&6; }
15182 if test "$supported" = "yes" ; then
15183 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
15184 found="yes"
15185 fi
15186 fi
15187
15188
15189
15190
15191
15192
15193
15194
15195
15196
15197
15198
15199
15200
15201
15202 xorg_testset_save_CFLAGS="$CFLAGS"
15203
15204 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15205 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15207 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15208 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15209 $as_echo_n "(cached) " >&6
15210 else
15211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15212 /* end confdefs.h. */
15213 int i;
15214 _ACEOF
15215 if ac_fn_c_try_compile "$LINENO"; then :
15216 xorg_cv_cc_flag_unknown_warning_option=yes
15217 else
15218 xorg_cv_cc_flag_unknown_warning_option=no
15219 fi
15220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15221 fi
15222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15223 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15224 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15225 CFLAGS="$xorg_testset_save_CFLAGS"
15226 fi
15227
15228 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15229 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15230 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15231 fi
15232 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15234 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15235 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15236 $as_echo_n "(cached) " >&6
15237 else
15238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15239 /* end confdefs.h. */
15240 int i;
15241 _ACEOF
15242 if ac_fn_c_try_compile "$LINENO"; then :
15243 xorg_cv_cc_flag_unused_command_line_argument=yes
15244 else
15245 xorg_cv_cc_flag_unused_command_line_argument=no
15246 fi
15247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15248 fi
15249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15250 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15251 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15252 CFLAGS="$xorg_testset_save_CFLAGS"
15253 fi
15254
15255 found="no"
15256
15257 if test $found = "no" ; then
15258 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15259 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15260 fi
15261
15262 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15263 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15264 fi
15265
15266 CFLAGS="$CFLAGS -Werror=sequence-point"
15267
15268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
15269 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
15270 cacheid=xorg_cv_cc_flag__Werror_sequence_point
15271 if eval \${$cacheid+:} false; then :
15272 $as_echo_n "(cached) " >&6
15273 else
15274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15275 /* end confdefs.h. */
15276 int i;
15277 int
15278 main ()
15279 {
15280
15281 ;
15282 return 0;
15283 }
15284 _ACEOF
15285 if ac_fn_c_try_link "$LINENO"; then :
15286 eval $cacheid=yes
15287 else
15288 eval $cacheid=no
15289 fi
15290 rm -f core conftest.err conftest.$ac_objext \
15291 conftest$ac_exeext conftest.$ac_ext
15292 fi
15293
15294
15295 CFLAGS="$xorg_testset_save_CFLAGS"
15296
15297 eval supported=\$$cacheid
15298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15299 $as_echo "$supported" >&6; }
15300 if test "$supported" = "yes" ; then
15301 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
15302 found="yes"
15303 fi
15304 fi
15305
15306
15307
15308
15309
15310
15311
15312
15313
15314
15315
15316
15317
15318
15319
15320 xorg_testset_save_CFLAGS="$CFLAGS"
15321
15322 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15323 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15325 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15326 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15327 $as_echo_n "(cached) " >&6
15328 else
15329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15330 /* end confdefs.h. */
15331 int i;
15332 _ACEOF
15333 if ac_fn_c_try_compile "$LINENO"; then :
15334 xorg_cv_cc_flag_unknown_warning_option=yes
15335 else
15336 xorg_cv_cc_flag_unknown_warning_option=no
15337 fi
15338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15339 fi
15340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15341 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15342 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15343 CFLAGS="$xorg_testset_save_CFLAGS"
15344 fi
15345
15346 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15347 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15348 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15349 fi
15350 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15352 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15353 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15354 $as_echo_n "(cached) " >&6
15355 else
15356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15357 /* end confdefs.h. */
15358 int i;
15359 _ACEOF
15360 if ac_fn_c_try_compile "$LINENO"; then :
15361 xorg_cv_cc_flag_unused_command_line_argument=yes
15362 else
15363 xorg_cv_cc_flag_unused_command_line_argument=no
15364 fi
15365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15366 fi
15367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15368 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15369 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15370 CFLAGS="$xorg_testset_save_CFLAGS"
15371 fi
15372
15373 found="no"
15374
15375 if test $found = "no" ; then
15376 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15377 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15378 fi
15379
15380 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15381 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15382 fi
15383
15384 CFLAGS="$CFLAGS -Werror=return-type"
15385
15386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
15387 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
15388 cacheid=xorg_cv_cc_flag__Werror_return_type
15389 if eval \${$cacheid+:} false; then :
15390 $as_echo_n "(cached) " >&6
15391 else
15392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15393 /* end confdefs.h. */
15394 int i;
15395 int
15396 main ()
15397 {
15398
15399 ;
15400 return 0;
15401 }
15402 _ACEOF
15403 if ac_fn_c_try_link "$LINENO"; then :
15404 eval $cacheid=yes
15405 else
15406 eval $cacheid=no
15407 fi
15408 rm -f core conftest.err conftest.$ac_objext \
15409 conftest$ac_exeext conftest.$ac_ext
15410 fi
15411
15412
15413 CFLAGS="$xorg_testset_save_CFLAGS"
15414
15415 eval supported=\$$cacheid
15416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15417 $as_echo "$supported" >&6; }
15418 if test "$supported" = "yes" ; then
15419 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
15420 found="yes"
15421 fi
15422 fi
15423
15424 if test $found = "no" ; then
15425 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15426 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15427 fi
15428
15429 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15430 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15431 fi
15432
15433 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
15434
15435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
15436 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
15437 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
15438 if eval \${$cacheid+:} false; then :
15439 $as_echo_n "(cached) " >&6
15440 else
15441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15442 /* end confdefs.h. */
15443 int i;
15444 int
15445 main ()
15446 {
15447
15448 ;
15449 return 0;
15450 }
15451 _ACEOF
15452 if ac_fn_c_try_link "$LINENO"; then :
15453 eval $cacheid=yes
15454 else
15455 eval $cacheid=no
15456 fi
15457 rm -f core conftest.err conftest.$ac_objext \
15458 conftest$ac_exeext conftest.$ac_ext
15459 fi
15460
15461
15462 CFLAGS="$xorg_testset_save_CFLAGS"
15463
15464 eval supported=\$$cacheid
15465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15466 $as_echo "$supported" >&6; }
15467 if test "$supported" = "yes" ; then
15468 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
15469 found="yes"
15470 fi
15471 fi
15472
15473
15474
15475
15476
15477
15478
15479
15480
15481
15482
15483
15484
15485
15486
15487 xorg_testset_save_CFLAGS="$CFLAGS"
15488
15489 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15490 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15492 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15493 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15494 $as_echo_n "(cached) " >&6
15495 else
15496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15497 /* end confdefs.h. */
15498 int i;
15499 _ACEOF
15500 if ac_fn_c_try_compile "$LINENO"; then :
15501 xorg_cv_cc_flag_unknown_warning_option=yes
15502 else
15503 xorg_cv_cc_flag_unknown_warning_option=no
15504 fi
15505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15506 fi
15507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15508 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15509 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15510 CFLAGS="$xorg_testset_save_CFLAGS"
15511 fi
15512
15513 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15514 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15515 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15516 fi
15517 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15519 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15520 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15521 $as_echo_n "(cached) " >&6
15522 else
15523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15524 /* end confdefs.h. */
15525 int i;
15526 _ACEOF
15527 if ac_fn_c_try_compile "$LINENO"; then :
15528 xorg_cv_cc_flag_unused_command_line_argument=yes
15529 else
15530 xorg_cv_cc_flag_unused_command_line_argument=no
15531 fi
15532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15533 fi
15534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15535 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15536 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15537 CFLAGS="$xorg_testset_save_CFLAGS"
15538 fi
15539
15540 found="no"
15541
15542 if test $found = "no" ; then
15543 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15544 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15545 fi
15546
15547 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15548 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15549 fi
15550
15551 CFLAGS="$CFLAGS -Werror=trigraphs"
15552
15553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
15554 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
15555 cacheid=xorg_cv_cc_flag__Werror_trigraphs
15556 if eval \${$cacheid+:} false; then :
15557 $as_echo_n "(cached) " >&6
15558 else
15559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15560 /* end confdefs.h. */
15561 int i;
15562 int
15563 main ()
15564 {
15565
15566 ;
15567 return 0;
15568 }
15569 _ACEOF
15570 if ac_fn_c_try_link "$LINENO"; then :
15571 eval $cacheid=yes
15572 else
15573 eval $cacheid=no
15574 fi
15575 rm -f core conftest.err conftest.$ac_objext \
15576 conftest$ac_exeext conftest.$ac_ext
15577 fi
15578
15579
15580 CFLAGS="$xorg_testset_save_CFLAGS"
15581
15582 eval supported=\$$cacheid
15583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15584 $as_echo "$supported" >&6; }
15585 if test "$supported" = "yes" ; then
15586 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
15587 found="yes"
15588 fi
15589 fi
15590
15591
15592
15593
15594
15595
15596
15597
15598
15599
15600
15601
15602
15603
15604
15605 xorg_testset_save_CFLAGS="$CFLAGS"
15606
15607 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15608 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15610 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15611 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15612 $as_echo_n "(cached) " >&6
15613 else
15614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15615 /* end confdefs.h. */
15616 int i;
15617 _ACEOF
15618 if ac_fn_c_try_compile "$LINENO"; then :
15619 xorg_cv_cc_flag_unknown_warning_option=yes
15620 else
15621 xorg_cv_cc_flag_unknown_warning_option=no
15622 fi
15623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15624 fi
15625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15626 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15627 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15628 CFLAGS="$xorg_testset_save_CFLAGS"
15629 fi
15630
15631 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15632 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15633 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15634 fi
15635 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15637 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15638 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15639 $as_echo_n "(cached) " >&6
15640 else
15641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15642 /* end confdefs.h. */
15643 int i;
15644 _ACEOF
15645 if ac_fn_c_try_compile "$LINENO"; then :
15646 xorg_cv_cc_flag_unused_command_line_argument=yes
15647 else
15648 xorg_cv_cc_flag_unused_command_line_argument=no
15649 fi
15650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15651 fi
15652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15653 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15654 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15655 CFLAGS="$xorg_testset_save_CFLAGS"
15656 fi
15657
15658 found="no"
15659
15660 if test $found = "no" ; then
15661 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15662 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15663 fi
15664
15665 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15666 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15667 fi
15668
15669 CFLAGS="$CFLAGS -Werror=array-bounds"
15670
15671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
15672 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
15673 cacheid=xorg_cv_cc_flag__Werror_array_bounds
15674 if eval \${$cacheid+:} false; then :
15675 $as_echo_n "(cached) " >&6
15676 else
15677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15678 /* end confdefs.h. */
15679 int i;
15680 int
15681 main ()
15682 {
15683
15684 ;
15685 return 0;
15686 }
15687 _ACEOF
15688 if ac_fn_c_try_link "$LINENO"; then :
15689 eval $cacheid=yes
15690 else
15691 eval $cacheid=no
15692 fi
15693 rm -f core conftest.err conftest.$ac_objext \
15694 conftest$ac_exeext conftest.$ac_ext
15695 fi
15696
15697
15698 CFLAGS="$xorg_testset_save_CFLAGS"
15699
15700 eval supported=\$$cacheid
15701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15702 $as_echo "$supported" >&6; }
15703 if test "$supported" = "yes" ; then
15704 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
15705 found="yes"
15706 fi
15707 fi
15708
15709
15710
15711
15712
15713
15714
15715
15716
15717
15718
15719
15720
15721
15722
15723 xorg_testset_save_CFLAGS="$CFLAGS"
15724
15725 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15726 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15728 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15729 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15730 $as_echo_n "(cached) " >&6
15731 else
15732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15733 /* end confdefs.h. */
15734 int i;
15735 _ACEOF
15736 if ac_fn_c_try_compile "$LINENO"; then :
15737 xorg_cv_cc_flag_unknown_warning_option=yes
15738 else
15739 xorg_cv_cc_flag_unknown_warning_option=no
15740 fi
15741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15742 fi
15743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15744 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15745 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15746 CFLAGS="$xorg_testset_save_CFLAGS"
15747 fi
15748
15749 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15750 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15751 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15752 fi
15753 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15755 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15756 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15757 $as_echo_n "(cached) " >&6
15758 else
15759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15760 /* end confdefs.h. */
15761 int i;
15762 _ACEOF
15763 if ac_fn_c_try_compile "$LINENO"; then :
15764 xorg_cv_cc_flag_unused_command_line_argument=yes
15765 else
15766 xorg_cv_cc_flag_unused_command_line_argument=no
15767 fi
15768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15769 fi
15770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15771 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15772 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15773 CFLAGS="$xorg_testset_save_CFLAGS"
15774 fi
15775
15776 found="no"
15777
15778 if test $found = "no" ; then
15779 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15780 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15781 fi
15782
15783 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15784 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15785 fi
15786
15787 CFLAGS="$CFLAGS -Werror=write-strings"
15788
15789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
15790 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
15791 cacheid=xorg_cv_cc_flag__Werror_write_strings
15792 if eval \${$cacheid+:} false; then :
15793 $as_echo_n "(cached) " >&6
15794 else
15795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15796 /* end confdefs.h. */
15797 int i;
15798 int
15799 main ()
15800 {
15801
15802 ;
15803 return 0;
15804 }
15805 _ACEOF
15806 if ac_fn_c_try_link "$LINENO"; then :
15807 eval $cacheid=yes
15808 else
15809 eval $cacheid=no
15810 fi
15811 rm -f core conftest.err conftest.$ac_objext \
15812 conftest$ac_exeext conftest.$ac_ext
15813 fi
15814
15815
15816 CFLAGS="$xorg_testset_save_CFLAGS"
15817
15818 eval supported=\$$cacheid
15819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15820 $as_echo "$supported" >&6; }
15821 if test "$supported" = "yes" ; then
15822 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
15823 found="yes"
15824 fi
15825 fi
15826
15827
15828
15829
15830
15831
15832
15833
15834
15835
15836
15837
15838
15839
15840
15841 xorg_testset_save_CFLAGS="$CFLAGS"
15842
15843 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15844 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15846 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15847 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15848 $as_echo_n "(cached) " >&6
15849 else
15850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15851 /* end confdefs.h. */
15852 int i;
15853 _ACEOF
15854 if ac_fn_c_try_compile "$LINENO"; then :
15855 xorg_cv_cc_flag_unknown_warning_option=yes
15856 else
15857 xorg_cv_cc_flag_unknown_warning_option=no
15858 fi
15859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15860 fi
15861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15862 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15863 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15864 CFLAGS="$xorg_testset_save_CFLAGS"
15865 fi
15866
15867 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15868 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15869 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15870 fi
15871 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15873 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15874 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15875 $as_echo_n "(cached) " >&6
15876 else
15877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15878 /* end confdefs.h. */
15879 int i;
15880 _ACEOF
15881 if ac_fn_c_try_compile "$LINENO"; then :
15882 xorg_cv_cc_flag_unused_command_line_argument=yes
15883 else
15884 xorg_cv_cc_flag_unused_command_line_argument=no
15885 fi
15886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15887 fi
15888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15889 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15890 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15891 CFLAGS="$xorg_testset_save_CFLAGS"
15892 fi
15893
15894 found="no"
15895
15896 if test $found = "no" ; then
15897 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15898 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15899 fi
15900
15901 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15902 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15903 fi
15904
15905 CFLAGS="$CFLAGS -Werror=address"
15906
15907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
15908 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
15909 cacheid=xorg_cv_cc_flag__Werror_address
15910 if eval \${$cacheid+:} false; then :
15911 $as_echo_n "(cached) " >&6
15912 else
15913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15914 /* end confdefs.h. */
15915 int i;
15916 int
15917 main ()
15918 {
15919
15920 ;
15921 return 0;
15922 }
15923 _ACEOF
15924 if ac_fn_c_try_link "$LINENO"; then :
15925 eval $cacheid=yes
15926 else
15927 eval $cacheid=no
15928 fi
15929 rm -f core conftest.err conftest.$ac_objext \
15930 conftest$ac_exeext conftest.$ac_ext
15931 fi
15932
15933
15934 CFLAGS="$xorg_testset_save_CFLAGS"
15935
15936 eval supported=\$$cacheid
15937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15938 $as_echo "$supported" >&6; }
15939 if test "$supported" = "yes" ; then
15940 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
15941 found="yes"
15942 fi
15943 fi
15944
15945
15946
15947
15948
15949
15950
15951
15952
15953
15954
15955
15956
15957
15958
15959 xorg_testset_save_CFLAGS="$CFLAGS"
15960
15961 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15962 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15964 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15965 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15966 $as_echo_n "(cached) " >&6
15967 else
15968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15969 /* end confdefs.h. */
15970 int i;
15971 _ACEOF
15972 if ac_fn_c_try_compile "$LINENO"; then :
15973 xorg_cv_cc_flag_unknown_warning_option=yes
15974 else
15975 xorg_cv_cc_flag_unknown_warning_option=no
15976 fi
15977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15978 fi
15979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15980 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15981 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15982 CFLAGS="$xorg_testset_save_CFLAGS"
15983 fi
15984
15985 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15986 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15987 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15988 fi
15989 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15991 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15992 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15993 $as_echo_n "(cached) " >&6
15994 else
15995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15996 /* end confdefs.h. */
15997 int i;
15998 _ACEOF
15999 if ac_fn_c_try_compile "$LINENO"; then :
16000 xorg_cv_cc_flag_unused_command_line_argument=yes
16001 else
16002 xorg_cv_cc_flag_unused_command_line_argument=no
16003 fi
16004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16005 fi
16006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16007 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16008 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16009 CFLAGS="$xorg_testset_save_CFLAGS"
16010 fi
16011
16012 found="no"
16013
16014 if test $found = "no" ; then
16015 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16016 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16017 fi
16018
16019 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16020 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16021 fi
16022
16023 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
16024
16025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
16026 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
16027 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
16028 if eval \${$cacheid+:} false; then :
16029 $as_echo_n "(cached) " >&6
16030 else
16031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16032 /* end confdefs.h. */
16033 int i;
16034 int
16035 main ()
16036 {
16037
16038 ;
16039 return 0;
16040 }
16041 _ACEOF
16042 if ac_fn_c_try_link "$LINENO"; then :
16043 eval $cacheid=yes
16044 else
16045 eval $cacheid=no
16046 fi
16047 rm -f core conftest.err conftest.$ac_objext \
16048 conftest$ac_exeext conftest.$ac_ext
16049 fi
16050
16051
16052 CFLAGS="$xorg_testset_save_CFLAGS"
16053
16054 eval supported=\$$cacheid
16055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16056 $as_echo "$supported" >&6; }
16057 if test "$supported" = "yes" ; then
16058 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
16059 found="yes"
16060 fi
16061 fi
16062
16063 if test $found = "no" ; then
16064 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16065 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16066 fi
16067
16068 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16069 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16070 fi
16071
16072 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16073
16074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
16075 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
16076 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
16077 if eval \${$cacheid+:} false; then :
16078 $as_echo_n "(cached) " >&6
16079 else
16080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16081 /* end confdefs.h. */
16082 int i;
16083 int
16084 main ()
16085 {
16086
16087 ;
16088 return 0;
16089 }
16090 _ACEOF
16091 if ac_fn_c_try_link "$LINENO"; then :
16092 eval $cacheid=yes
16093 else
16094 eval $cacheid=no
16095 fi
16096 rm -f core conftest.err conftest.$ac_objext \
16097 conftest$ac_exeext conftest.$ac_ext
16098 fi
16099
16100
16101 CFLAGS="$xorg_testset_save_CFLAGS"
16102
16103 eval supported=\$$cacheid
16104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16105 $as_echo "$supported" >&6; }
16106 if test "$supported" = "yes" ; then
16107 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16108 found="yes"
16109 fi
16110 fi
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120
16121
16122
16123
16124
16125
16126 xorg_testset_save_CFLAGS="$CFLAGS"
16127
16128 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16129 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16131 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16132 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16133 $as_echo_n "(cached) " >&6
16134 else
16135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16136 /* end confdefs.h. */
16137 int i;
16138 _ACEOF
16139 if ac_fn_c_try_compile "$LINENO"; then :
16140 xorg_cv_cc_flag_unknown_warning_option=yes
16141 else
16142 xorg_cv_cc_flag_unknown_warning_option=no
16143 fi
16144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16145 fi
16146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16147 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16148 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16149 CFLAGS="$xorg_testset_save_CFLAGS"
16150 fi
16151
16152 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16153 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16154 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16155 fi
16156 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16158 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16159 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16160 $as_echo_n "(cached) " >&6
16161 else
16162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16163 /* end confdefs.h. */
16164 int i;
16165 _ACEOF
16166 if ac_fn_c_try_compile "$LINENO"; then :
16167 xorg_cv_cc_flag_unused_command_line_argument=yes
16168 else
16169 xorg_cv_cc_flag_unused_command_line_argument=no
16170 fi
16171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16172 fi
16173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16174 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16175 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16176 CFLAGS="$xorg_testset_save_CFLAGS"
16177 fi
16178
16179 found="no"
16180
16181 if test $found = "no" ; then
16182 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16183 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16184 fi
16185
16186 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16187 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16188 fi
16189
16190 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
16191
16192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
16193 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
16194 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
16195 if eval \${$cacheid+:} false; then :
16196 $as_echo_n "(cached) " >&6
16197 else
16198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16199 /* end confdefs.h. */
16200 int i;
16201 int
16202 main ()
16203 {
16204
16205 ;
16206 return 0;
16207 }
16208 _ACEOF
16209 if ac_fn_c_try_link "$LINENO"; then :
16210 eval $cacheid=yes
16211 else
16212 eval $cacheid=no
16213 fi
16214 rm -f core conftest.err conftest.$ac_objext \
16215 conftest$ac_exeext conftest.$ac_ext
16216 fi
16217
16218
16219 CFLAGS="$xorg_testset_save_CFLAGS"
16220
16221 eval supported=\$$cacheid
16222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16223 $as_echo "$supported" >&6; }
16224 if test "$supported" = "yes" ; then
16225 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
16226 found="yes"
16227 fi
16228 fi
16229
16230 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
16231 else
16232 { $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
16233 $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;}
16234
16235
16236
16237
16238
16239
16240
16241
16242
16243
16244
16245
16246
16247 xorg_testset_save_CFLAGS="$CFLAGS"
16248
16249 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16250 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16252 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16253 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16254 $as_echo_n "(cached) " >&6
16255 else
16256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16257 /* end confdefs.h. */
16258 int i;
16259 _ACEOF
16260 if ac_fn_c_try_compile "$LINENO"; then :
16261 xorg_cv_cc_flag_unknown_warning_option=yes
16262 else
16263 xorg_cv_cc_flag_unknown_warning_option=no
16264 fi
16265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16266 fi
16267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16268 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16269 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16270 CFLAGS="$xorg_testset_save_CFLAGS"
16271 fi
16272
16273 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16274 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16275 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16276 fi
16277 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16279 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16280 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16281 $as_echo_n "(cached) " >&6
16282 else
16283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16284 /* end confdefs.h. */
16285 int i;
16286 _ACEOF
16287 if ac_fn_c_try_compile "$LINENO"; then :
16288 xorg_cv_cc_flag_unused_command_line_argument=yes
16289 else
16290 xorg_cv_cc_flag_unused_command_line_argument=no
16291 fi
16292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16293 fi
16294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16295 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16296 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16297 CFLAGS="$xorg_testset_save_CFLAGS"
16298 fi
16299
16300 found="no"
16301
16302 if test $found = "no" ; then
16303 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16304 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16305 fi
16306
16307 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16308 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16309 fi
16310
16311 CFLAGS="$CFLAGS -Wimplicit"
16312
16313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
16314 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
16315 cacheid=xorg_cv_cc_flag__Wimplicit
16316 if eval \${$cacheid+:} false; then :
16317 $as_echo_n "(cached) " >&6
16318 else
16319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16320 /* end confdefs.h. */
16321 int i;
16322 int
16323 main ()
16324 {
16325
16326 ;
16327 return 0;
16328 }
16329 _ACEOF
16330 if ac_fn_c_try_link "$LINENO"; then :
16331 eval $cacheid=yes
16332 else
16333 eval $cacheid=no
16334 fi
16335 rm -f core conftest.err conftest.$ac_objext \
16336 conftest$ac_exeext conftest.$ac_ext
16337 fi
16338
16339
16340 CFLAGS="$xorg_testset_save_CFLAGS"
16341
16342 eval supported=\$$cacheid
16343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16344 $as_echo "$supported" >&6; }
16345 if test "$supported" = "yes" ; then
16346 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
16347 found="yes"
16348 fi
16349 fi
16350
16351
16352
16353
16354
16355
16356
16357
16358
16359
16360
16361
16362
16363
16364
16365 xorg_testset_save_CFLAGS="$CFLAGS"
16366
16367 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16368 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16370 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16371 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16372 $as_echo_n "(cached) " >&6
16373 else
16374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16375 /* end confdefs.h. */
16376 int i;
16377 _ACEOF
16378 if ac_fn_c_try_compile "$LINENO"; then :
16379 xorg_cv_cc_flag_unknown_warning_option=yes
16380 else
16381 xorg_cv_cc_flag_unknown_warning_option=no
16382 fi
16383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16384 fi
16385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16386 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16387 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16388 CFLAGS="$xorg_testset_save_CFLAGS"
16389 fi
16390
16391 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16392 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16393 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16394 fi
16395 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16397 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16398 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16399 $as_echo_n "(cached) " >&6
16400 else
16401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16402 /* end confdefs.h. */
16403 int i;
16404 _ACEOF
16405 if ac_fn_c_try_compile "$LINENO"; then :
16406 xorg_cv_cc_flag_unused_command_line_argument=yes
16407 else
16408 xorg_cv_cc_flag_unused_command_line_argument=no
16409 fi
16410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16411 fi
16412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16413 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16414 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16415 CFLAGS="$xorg_testset_save_CFLAGS"
16416 fi
16417
16418 found="no"
16419
16420 if test $found = "no" ; then
16421 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16422 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16423 fi
16424
16425 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16426 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16427 fi
16428
16429 CFLAGS="$CFLAGS -Wnonnull"
16430
16431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
16432 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
16433 cacheid=xorg_cv_cc_flag__Wnonnull
16434 if eval \${$cacheid+:} false; then :
16435 $as_echo_n "(cached) " >&6
16436 else
16437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16438 /* end confdefs.h. */
16439 int i;
16440 int
16441 main ()
16442 {
16443
16444 ;
16445 return 0;
16446 }
16447 _ACEOF
16448 if ac_fn_c_try_link "$LINENO"; then :
16449 eval $cacheid=yes
16450 else
16451 eval $cacheid=no
16452 fi
16453 rm -f core conftest.err conftest.$ac_objext \
16454 conftest$ac_exeext conftest.$ac_ext
16455 fi
16456
16457
16458 CFLAGS="$xorg_testset_save_CFLAGS"
16459
16460 eval supported=\$$cacheid
16461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16462 $as_echo "$supported" >&6; }
16463 if test "$supported" = "yes" ; then
16464 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
16465 found="yes"
16466 fi
16467 fi
16468
16469
16470
16471
16472
16473
16474
16475
16476
16477
16478
16479
16480
16481
16482
16483 xorg_testset_save_CFLAGS="$CFLAGS"
16484
16485 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16486 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16488 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16489 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16490 $as_echo_n "(cached) " >&6
16491 else
16492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16493 /* end confdefs.h. */
16494 int i;
16495 _ACEOF
16496 if ac_fn_c_try_compile "$LINENO"; then :
16497 xorg_cv_cc_flag_unknown_warning_option=yes
16498 else
16499 xorg_cv_cc_flag_unknown_warning_option=no
16500 fi
16501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16502 fi
16503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16504 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16505 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16506 CFLAGS="$xorg_testset_save_CFLAGS"
16507 fi
16508
16509 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16510 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16511 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16512 fi
16513 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16515 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16516 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16517 $as_echo_n "(cached) " >&6
16518 else
16519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16520 /* end confdefs.h. */
16521 int i;
16522 _ACEOF
16523 if ac_fn_c_try_compile "$LINENO"; then :
16524 xorg_cv_cc_flag_unused_command_line_argument=yes
16525 else
16526 xorg_cv_cc_flag_unused_command_line_argument=no
16527 fi
16528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16529 fi
16530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16531 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16532 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16533 CFLAGS="$xorg_testset_save_CFLAGS"
16534 fi
16535
16536 found="no"
16537
16538 if test $found = "no" ; then
16539 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16540 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16541 fi
16542
16543 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16544 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16545 fi
16546
16547 CFLAGS="$CFLAGS -Winit-self"
16548
16549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
16550 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
16551 cacheid=xorg_cv_cc_flag__Winit_self
16552 if eval \${$cacheid+:} false; then :
16553 $as_echo_n "(cached) " >&6
16554 else
16555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16556 /* end confdefs.h. */
16557 int i;
16558 int
16559 main ()
16560 {
16561
16562 ;
16563 return 0;
16564 }
16565 _ACEOF
16566 if ac_fn_c_try_link "$LINENO"; then :
16567 eval $cacheid=yes
16568 else
16569 eval $cacheid=no
16570 fi
16571 rm -f core conftest.err conftest.$ac_objext \
16572 conftest$ac_exeext conftest.$ac_ext
16573 fi
16574
16575
16576 CFLAGS="$xorg_testset_save_CFLAGS"
16577
16578 eval supported=\$$cacheid
16579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16580 $as_echo "$supported" >&6; }
16581 if test "$supported" = "yes" ; then
16582 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
16583 found="yes"
16584 fi
16585 fi
16586
16587
16588
16589
16590
16591
16592
16593
16594
16595
16596
16597
16598
16599
16600
16601 xorg_testset_save_CFLAGS="$CFLAGS"
16602
16603 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16604 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16606 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16607 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16608 $as_echo_n "(cached) " >&6
16609 else
16610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16611 /* end confdefs.h. */
16612 int i;
16613 _ACEOF
16614 if ac_fn_c_try_compile "$LINENO"; then :
16615 xorg_cv_cc_flag_unknown_warning_option=yes
16616 else
16617 xorg_cv_cc_flag_unknown_warning_option=no
16618 fi
16619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16620 fi
16621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16622 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16623 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16624 CFLAGS="$xorg_testset_save_CFLAGS"
16625 fi
16626
16627 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16628 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16629 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16630 fi
16631 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16633 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16634 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16635 $as_echo_n "(cached) " >&6
16636 else
16637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16638 /* end confdefs.h. */
16639 int i;
16640 _ACEOF
16641 if ac_fn_c_try_compile "$LINENO"; then :
16642 xorg_cv_cc_flag_unused_command_line_argument=yes
16643 else
16644 xorg_cv_cc_flag_unused_command_line_argument=no
16645 fi
16646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16647 fi
16648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16649 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16650 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16651 CFLAGS="$xorg_testset_save_CFLAGS"
16652 fi
16653
16654 found="no"
16655
16656 if test $found = "no" ; then
16657 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16658 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16659 fi
16660
16661 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16662 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16663 fi
16664
16665 CFLAGS="$CFLAGS -Wmain"
16666
16667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
16668 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
16669 cacheid=xorg_cv_cc_flag__Wmain
16670 if eval \${$cacheid+:} false; then :
16671 $as_echo_n "(cached) " >&6
16672 else
16673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16674 /* end confdefs.h. */
16675 int i;
16676 int
16677 main ()
16678 {
16679
16680 ;
16681 return 0;
16682 }
16683 _ACEOF
16684 if ac_fn_c_try_link "$LINENO"; then :
16685 eval $cacheid=yes
16686 else
16687 eval $cacheid=no
16688 fi
16689 rm -f core conftest.err conftest.$ac_objext \
16690 conftest$ac_exeext conftest.$ac_ext
16691 fi
16692
16693
16694 CFLAGS="$xorg_testset_save_CFLAGS"
16695
16696 eval supported=\$$cacheid
16697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16698 $as_echo "$supported" >&6; }
16699 if test "$supported" = "yes" ; then
16700 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
16701 found="yes"
16702 fi
16703 fi
16704
16705
16706
16707
16708
16709
16710
16711
16712
16713
16714
16715
16716
16717
16718
16719 xorg_testset_save_CFLAGS="$CFLAGS"
16720
16721 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16722 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16724 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16725 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16726 $as_echo_n "(cached) " >&6
16727 else
16728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16729 /* end confdefs.h. */
16730 int i;
16731 _ACEOF
16732 if ac_fn_c_try_compile "$LINENO"; then :
16733 xorg_cv_cc_flag_unknown_warning_option=yes
16734 else
16735 xorg_cv_cc_flag_unknown_warning_option=no
16736 fi
16737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16738 fi
16739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16740 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16741 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16742 CFLAGS="$xorg_testset_save_CFLAGS"
16743 fi
16744
16745 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16746 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16747 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16748 fi
16749 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16751 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16752 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16753 $as_echo_n "(cached) " >&6
16754 else
16755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16756 /* end confdefs.h. */
16757 int i;
16758 _ACEOF
16759 if ac_fn_c_try_compile "$LINENO"; then :
16760 xorg_cv_cc_flag_unused_command_line_argument=yes
16761 else
16762 xorg_cv_cc_flag_unused_command_line_argument=no
16763 fi
16764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16765 fi
16766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16767 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16768 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16769 CFLAGS="$xorg_testset_save_CFLAGS"
16770 fi
16771
16772 found="no"
16773
16774 if test $found = "no" ; then
16775 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16776 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16777 fi
16778
16779 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16780 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16781 fi
16782
16783 CFLAGS="$CFLAGS -Wmissing-braces"
16784
16785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
16786 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
16787 cacheid=xorg_cv_cc_flag__Wmissing_braces
16788 if eval \${$cacheid+:} false; then :
16789 $as_echo_n "(cached) " >&6
16790 else
16791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16792 /* end confdefs.h. */
16793 int i;
16794 int
16795 main ()
16796 {
16797
16798 ;
16799 return 0;
16800 }
16801 _ACEOF
16802 if ac_fn_c_try_link "$LINENO"; then :
16803 eval $cacheid=yes
16804 else
16805 eval $cacheid=no
16806 fi
16807 rm -f core conftest.err conftest.$ac_objext \
16808 conftest$ac_exeext conftest.$ac_ext
16809 fi
16810
16811
16812 CFLAGS="$xorg_testset_save_CFLAGS"
16813
16814 eval supported=\$$cacheid
16815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16816 $as_echo "$supported" >&6; }
16817 if test "$supported" = "yes" ; then
16818 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
16819 found="yes"
16820 fi
16821 fi
16822
16823
16824
16825
16826
16827
16828
16829
16830
16831
16832
16833
16834
16835
16836
16837 xorg_testset_save_CFLAGS="$CFLAGS"
16838
16839 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16840 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16842 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16843 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16844 $as_echo_n "(cached) " >&6
16845 else
16846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16847 /* end confdefs.h. */
16848 int i;
16849 _ACEOF
16850 if ac_fn_c_try_compile "$LINENO"; then :
16851 xorg_cv_cc_flag_unknown_warning_option=yes
16852 else
16853 xorg_cv_cc_flag_unknown_warning_option=no
16854 fi
16855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16856 fi
16857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16858 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16859 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16860 CFLAGS="$xorg_testset_save_CFLAGS"
16861 fi
16862
16863 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16864 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16865 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16866 fi
16867 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16869 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16870 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16871 $as_echo_n "(cached) " >&6
16872 else
16873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16874 /* end confdefs.h. */
16875 int i;
16876 _ACEOF
16877 if ac_fn_c_try_compile "$LINENO"; then :
16878 xorg_cv_cc_flag_unused_command_line_argument=yes
16879 else
16880 xorg_cv_cc_flag_unused_command_line_argument=no
16881 fi
16882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16883 fi
16884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16885 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16886 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16887 CFLAGS="$xorg_testset_save_CFLAGS"
16888 fi
16889
16890 found="no"
16891
16892 if test $found = "no" ; then
16893 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16894 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16895 fi
16896
16897 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16898 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16899 fi
16900
16901 CFLAGS="$CFLAGS -Wsequence-point"
16902
16903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
16904 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
16905 cacheid=xorg_cv_cc_flag__Wsequence_point
16906 if eval \${$cacheid+:} false; then :
16907 $as_echo_n "(cached) " >&6
16908 else
16909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16910 /* end confdefs.h. */
16911 int i;
16912 int
16913 main ()
16914 {
16915
16916 ;
16917 return 0;
16918 }
16919 _ACEOF
16920 if ac_fn_c_try_link "$LINENO"; then :
16921 eval $cacheid=yes
16922 else
16923 eval $cacheid=no
16924 fi
16925 rm -f core conftest.err conftest.$ac_objext \
16926 conftest$ac_exeext conftest.$ac_ext
16927 fi
16928
16929
16930 CFLAGS="$xorg_testset_save_CFLAGS"
16931
16932 eval supported=\$$cacheid
16933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16934 $as_echo "$supported" >&6; }
16935 if test "$supported" = "yes" ; then
16936 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
16937 found="yes"
16938 fi
16939 fi
16940
16941
16942
16943
16944
16945
16946
16947
16948
16949
16950
16951
16952
16953
16954
16955 xorg_testset_save_CFLAGS="$CFLAGS"
16956
16957 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16958 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16960 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16961 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16962 $as_echo_n "(cached) " >&6
16963 else
16964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16965 /* end confdefs.h. */
16966 int i;
16967 _ACEOF
16968 if ac_fn_c_try_compile "$LINENO"; then :
16969 xorg_cv_cc_flag_unknown_warning_option=yes
16970 else
16971 xorg_cv_cc_flag_unknown_warning_option=no
16972 fi
16973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16974 fi
16975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16976 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16977 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16978 CFLAGS="$xorg_testset_save_CFLAGS"
16979 fi
16980
16981 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16982 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16983 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16984 fi
16985 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16987 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16988 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16989 $as_echo_n "(cached) " >&6
16990 else
16991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16992 /* end confdefs.h. */
16993 int i;
16994 _ACEOF
16995 if ac_fn_c_try_compile "$LINENO"; then :
16996 xorg_cv_cc_flag_unused_command_line_argument=yes
16997 else
16998 xorg_cv_cc_flag_unused_command_line_argument=no
16999 fi
17000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17001 fi
17002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17003 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17004 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17005 CFLAGS="$xorg_testset_save_CFLAGS"
17006 fi
17007
17008 found="no"
17009
17010 if test $found = "no" ; then
17011 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17012 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17013 fi
17014
17015 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17016 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17017 fi
17018
17019 CFLAGS="$CFLAGS -Wreturn-type"
17020
17021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
17022 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
17023 cacheid=xorg_cv_cc_flag__Wreturn_type
17024 if eval \${$cacheid+:} false; then :
17025 $as_echo_n "(cached) " >&6
17026 else
17027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17028 /* end confdefs.h. */
17029 int i;
17030 int
17031 main ()
17032 {
17033
17034 ;
17035 return 0;
17036 }
17037 _ACEOF
17038 if ac_fn_c_try_link "$LINENO"; then :
17039 eval $cacheid=yes
17040 else
17041 eval $cacheid=no
17042 fi
17043 rm -f core conftest.err conftest.$ac_objext \
17044 conftest$ac_exeext conftest.$ac_ext
17045 fi
17046
17047
17048 CFLAGS="$xorg_testset_save_CFLAGS"
17049
17050 eval supported=\$$cacheid
17051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17052 $as_echo "$supported" >&6; }
17053 if test "$supported" = "yes" ; then
17054 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
17055 found="yes"
17056 fi
17057 fi
17058
17059
17060
17061
17062
17063
17064
17065
17066
17067
17068
17069
17070
17071
17072
17073 xorg_testset_save_CFLAGS="$CFLAGS"
17074
17075 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17076 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17078 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17079 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17080 $as_echo_n "(cached) " >&6
17081 else
17082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17083 /* end confdefs.h. */
17084 int i;
17085 _ACEOF
17086 if ac_fn_c_try_compile "$LINENO"; then :
17087 xorg_cv_cc_flag_unknown_warning_option=yes
17088 else
17089 xorg_cv_cc_flag_unknown_warning_option=no
17090 fi
17091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17092 fi
17093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17094 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17095 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17096 CFLAGS="$xorg_testset_save_CFLAGS"
17097 fi
17098
17099 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17100 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17101 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17102 fi
17103 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17105 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17106 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17107 $as_echo_n "(cached) " >&6
17108 else
17109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17110 /* end confdefs.h. */
17111 int i;
17112 _ACEOF
17113 if ac_fn_c_try_compile "$LINENO"; then :
17114 xorg_cv_cc_flag_unused_command_line_argument=yes
17115 else
17116 xorg_cv_cc_flag_unused_command_line_argument=no
17117 fi
17118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17119 fi
17120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17121 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17122 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17123 CFLAGS="$xorg_testset_save_CFLAGS"
17124 fi
17125
17126 found="no"
17127
17128 if test $found = "no" ; then
17129 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17130 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17131 fi
17132
17133 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17134 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17135 fi
17136
17137 CFLAGS="$CFLAGS -Wtrigraphs"
17138
17139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
17140 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
17141 cacheid=xorg_cv_cc_flag__Wtrigraphs
17142 if eval \${$cacheid+:} false; then :
17143 $as_echo_n "(cached) " >&6
17144 else
17145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17146 /* end confdefs.h. */
17147 int i;
17148 int
17149 main ()
17150 {
17151
17152 ;
17153 return 0;
17154 }
17155 _ACEOF
17156 if ac_fn_c_try_link "$LINENO"; then :
17157 eval $cacheid=yes
17158 else
17159 eval $cacheid=no
17160 fi
17161 rm -f core conftest.err conftest.$ac_objext \
17162 conftest$ac_exeext conftest.$ac_ext
17163 fi
17164
17165
17166 CFLAGS="$xorg_testset_save_CFLAGS"
17167
17168 eval supported=\$$cacheid
17169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17170 $as_echo "$supported" >&6; }
17171 if test "$supported" = "yes" ; then
17172 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
17173 found="yes"
17174 fi
17175 fi
17176
17177
17178
17179
17180
17181
17182
17183
17184
17185
17186
17187
17188
17189
17190
17191 xorg_testset_save_CFLAGS="$CFLAGS"
17192
17193 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17194 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17196 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17197 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17198 $as_echo_n "(cached) " >&6
17199 else
17200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17201 /* end confdefs.h. */
17202 int i;
17203 _ACEOF
17204 if ac_fn_c_try_compile "$LINENO"; then :
17205 xorg_cv_cc_flag_unknown_warning_option=yes
17206 else
17207 xorg_cv_cc_flag_unknown_warning_option=no
17208 fi
17209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17210 fi
17211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17212 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17213 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17214 CFLAGS="$xorg_testset_save_CFLAGS"
17215 fi
17216
17217 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17218 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17219 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17220 fi
17221 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17223 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17224 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17225 $as_echo_n "(cached) " >&6
17226 else
17227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17228 /* end confdefs.h. */
17229 int i;
17230 _ACEOF
17231 if ac_fn_c_try_compile "$LINENO"; then :
17232 xorg_cv_cc_flag_unused_command_line_argument=yes
17233 else
17234 xorg_cv_cc_flag_unused_command_line_argument=no
17235 fi
17236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17237 fi
17238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17239 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17240 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17241 CFLAGS="$xorg_testset_save_CFLAGS"
17242 fi
17243
17244 found="no"
17245
17246 if test $found = "no" ; then
17247 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17248 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17249 fi
17250
17251 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17252 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17253 fi
17254
17255 CFLAGS="$CFLAGS -Warray-bounds"
17256
17257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
17258 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
17259 cacheid=xorg_cv_cc_flag__Warray_bounds
17260 if eval \${$cacheid+:} false; then :
17261 $as_echo_n "(cached) " >&6
17262 else
17263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17264 /* end confdefs.h. */
17265 int i;
17266 int
17267 main ()
17268 {
17269
17270 ;
17271 return 0;
17272 }
17273 _ACEOF
17274 if ac_fn_c_try_link "$LINENO"; then :
17275 eval $cacheid=yes
17276 else
17277 eval $cacheid=no
17278 fi
17279 rm -f core conftest.err conftest.$ac_objext \
17280 conftest$ac_exeext conftest.$ac_ext
17281 fi
17282
17283
17284 CFLAGS="$xorg_testset_save_CFLAGS"
17285
17286 eval supported=\$$cacheid
17287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17288 $as_echo "$supported" >&6; }
17289 if test "$supported" = "yes" ; then
17290 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
17291 found="yes"
17292 fi
17293 fi
17294
17295
17296
17297
17298
17299
17300
17301
17302
17303
17304
17305
17306
17307
17308
17309 xorg_testset_save_CFLAGS="$CFLAGS"
17310
17311 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17312 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17314 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17315 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17316 $as_echo_n "(cached) " >&6
17317 else
17318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17319 /* end confdefs.h. */
17320 int i;
17321 _ACEOF
17322 if ac_fn_c_try_compile "$LINENO"; then :
17323 xorg_cv_cc_flag_unknown_warning_option=yes
17324 else
17325 xorg_cv_cc_flag_unknown_warning_option=no
17326 fi
17327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17328 fi
17329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17330 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17331 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17332 CFLAGS="$xorg_testset_save_CFLAGS"
17333 fi
17334
17335 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17336 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17337 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17338 fi
17339 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17341 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17342 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17343 $as_echo_n "(cached) " >&6
17344 else
17345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17346 /* end confdefs.h. */
17347 int i;
17348 _ACEOF
17349 if ac_fn_c_try_compile "$LINENO"; then :
17350 xorg_cv_cc_flag_unused_command_line_argument=yes
17351 else
17352 xorg_cv_cc_flag_unused_command_line_argument=no
17353 fi
17354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17355 fi
17356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17357 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17358 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17359 CFLAGS="$xorg_testset_save_CFLAGS"
17360 fi
17361
17362 found="no"
17363
17364 if test $found = "no" ; then
17365 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17366 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17367 fi
17368
17369 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17370 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17371 fi
17372
17373 CFLAGS="$CFLAGS -Wwrite-strings"
17374
17375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
17376 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
17377 cacheid=xorg_cv_cc_flag__Wwrite_strings
17378 if eval \${$cacheid+:} false; then :
17379 $as_echo_n "(cached) " >&6
17380 else
17381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17382 /* end confdefs.h. */
17383 int i;
17384 int
17385 main ()
17386 {
17387
17388 ;
17389 return 0;
17390 }
17391 _ACEOF
17392 if ac_fn_c_try_link "$LINENO"; then :
17393 eval $cacheid=yes
17394 else
17395 eval $cacheid=no
17396 fi
17397 rm -f core conftest.err conftest.$ac_objext \
17398 conftest$ac_exeext conftest.$ac_ext
17399 fi
17400
17401
17402 CFLAGS="$xorg_testset_save_CFLAGS"
17403
17404 eval supported=\$$cacheid
17405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17406 $as_echo "$supported" >&6; }
17407 if test "$supported" = "yes" ; then
17408 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
17409 found="yes"
17410 fi
17411 fi
17412
17413
17414
17415
17416
17417
17418
17419
17420
17421
17422
17423
17424
17425
17426
17427 xorg_testset_save_CFLAGS="$CFLAGS"
17428
17429 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17430 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17432 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17433 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17434 $as_echo_n "(cached) " >&6
17435 else
17436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17437 /* end confdefs.h. */
17438 int i;
17439 _ACEOF
17440 if ac_fn_c_try_compile "$LINENO"; then :
17441 xorg_cv_cc_flag_unknown_warning_option=yes
17442 else
17443 xorg_cv_cc_flag_unknown_warning_option=no
17444 fi
17445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17446 fi
17447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17448 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17449 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17450 CFLAGS="$xorg_testset_save_CFLAGS"
17451 fi
17452
17453 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17454 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17455 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17456 fi
17457 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17459 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17460 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17461 $as_echo_n "(cached) " >&6
17462 else
17463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17464 /* end confdefs.h. */
17465 int i;
17466 _ACEOF
17467 if ac_fn_c_try_compile "$LINENO"; then :
17468 xorg_cv_cc_flag_unused_command_line_argument=yes
17469 else
17470 xorg_cv_cc_flag_unused_command_line_argument=no
17471 fi
17472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17473 fi
17474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17475 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17476 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17477 CFLAGS="$xorg_testset_save_CFLAGS"
17478 fi
17479
17480 found="no"
17481
17482 if test $found = "no" ; then
17483 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17484 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17485 fi
17486
17487 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17488 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17489 fi
17490
17491 CFLAGS="$CFLAGS -Waddress"
17492
17493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
17494 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
17495 cacheid=xorg_cv_cc_flag__Waddress
17496 if eval \${$cacheid+:} false; then :
17497 $as_echo_n "(cached) " >&6
17498 else
17499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17500 /* end confdefs.h. */
17501 int i;
17502 int
17503 main ()
17504 {
17505
17506 ;
17507 return 0;
17508 }
17509 _ACEOF
17510 if ac_fn_c_try_link "$LINENO"; then :
17511 eval $cacheid=yes
17512 else
17513 eval $cacheid=no
17514 fi
17515 rm -f core conftest.err conftest.$ac_objext \
17516 conftest$ac_exeext conftest.$ac_ext
17517 fi
17518
17519
17520 CFLAGS="$xorg_testset_save_CFLAGS"
17521
17522 eval supported=\$$cacheid
17523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17524 $as_echo "$supported" >&6; }
17525 if test "$supported" = "yes" ; then
17526 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
17527 found="yes"
17528 fi
17529 fi
17530
17531
17532
17533
17534
17535
17536
17537
17538
17539
17540
17541
17542
17543
17544
17545 xorg_testset_save_CFLAGS="$CFLAGS"
17546
17547 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17548 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17550 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17551 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17552 $as_echo_n "(cached) " >&6
17553 else
17554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17555 /* end confdefs.h. */
17556 int i;
17557 _ACEOF
17558 if ac_fn_c_try_compile "$LINENO"; then :
17559 xorg_cv_cc_flag_unknown_warning_option=yes
17560 else
17561 xorg_cv_cc_flag_unknown_warning_option=no
17562 fi
17563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17564 fi
17565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17566 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17567 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17568 CFLAGS="$xorg_testset_save_CFLAGS"
17569 fi
17570
17571 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17572 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17573 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17574 fi
17575 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17577 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17578 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17579 $as_echo_n "(cached) " >&6
17580 else
17581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17582 /* end confdefs.h. */
17583 int i;
17584 _ACEOF
17585 if ac_fn_c_try_compile "$LINENO"; then :
17586 xorg_cv_cc_flag_unused_command_line_argument=yes
17587 else
17588 xorg_cv_cc_flag_unused_command_line_argument=no
17589 fi
17590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17591 fi
17592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17593 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17594 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17595 CFLAGS="$xorg_testset_save_CFLAGS"
17596 fi
17597
17598 found="no"
17599
17600 if test $found = "no" ; then
17601 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17602 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17603 fi
17604
17605 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17606 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17607 fi
17608
17609 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
17610
17611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
17612 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
17613 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
17614 if eval \${$cacheid+:} false; then :
17615 $as_echo_n "(cached) " >&6
17616 else
17617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17618 /* end confdefs.h. */
17619 int i;
17620 int
17621 main ()
17622 {
17623
17624 ;
17625 return 0;
17626 }
17627 _ACEOF
17628 if ac_fn_c_try_link "$LINENO"; then :
17629 eval $cacheid=yes
17630 else
17631 eval $cacheid=no
17632 fi
17633 rm -f core conftest.err conftest.$ac_objext \
17634 conftest$ac_exeext conftest.$ac_ext
17635 fi
17636
17637
17638 CFLAGS="$xorg_testset_save_CFLAGS"
17639
17640 eval supported=\$$cacheid
17641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17642 $as_echo "$supported" >&6; }
17643 if test "$supported" = "yes" ; then
17644 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
17645 found="yes"
17646 fi
17647 fi
17648
17649
17650
17651
17652
17653
17654
17655
17656
17657
17658
17659
17660
17661
17662
17663 xorg_testset_save_CFLAGS="$CFLAGS"
17664
17665 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17666 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17668 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17669 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17670 $as_echo_n "(cached) " >&6
17671 else
17672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17673 /* end confdefs.h. */
17674 int i;
17675 _ACEOF
17676 if ac_fn_c_try_compile "$LINENO"; then :
17677 xorg_cv_cc_flag_unknown_warning_option=yes
17678 else
17679 xorg_cv_cc_flag_unknown_warning_option=no
17680 fi
17681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17682 fi
17683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17684 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17685 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17686 CFLAGS="$xorg_testset_save_CFLAGS"
17687 fi
17688
17689 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17690 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17691 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17692 fi
17693 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17695 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17696 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17697 $as_echo_n "(cached) " >&6
17698 else
17699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17700 /* end confdefs.h. */
17701 int i;
17702 _ACEOF
17703 if ac_fn_c_try_compile "$LINENO"; then :
17704 xorg_cv_cc_flag_unused_command_line_argument=yes
17705 else
17706 xorg_cv_cc_flag_unused_command_line_argument=no
17707 fi
17708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17709 fi
17710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17711 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17712 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17713 CFLAGS="$xorg_testset_save_CFLAGS"
17714 fi
17715
17716 found="no"
17717
17718 if test $found = "no" ; then
17719 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17720 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17721 fi
17722
17723 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17724 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17725 fi
17726
17727 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
17728
17729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
17730 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
17731 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
17732 if eval \${$cacheid+:} false; then :
17733 $as_echo_n "(cached) " >&6
17734 else
17735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17736 /* end confdefs.h. */
17737 int i;
17738 int
17739 main ()
17740 {
17741
17742 ;
17743 return 0;
17744 }
17745 _ACEOF
17746 if ac_fn_c_try_link "$LINENO"; then :
17747 eval $cacheid=yes
17748 else
17749 eval $cacheid=no
17750 fi
17751 rm -f core conftest.err conftest.$ac_objext \
17752 conftest$ac_exeext conftest.$ac_ext
17753 fi
17754
17755
17756 CFLAGS="$xorg_testset_save_CFLAGS"
17757
17758 eval supported=\$$cacheid
17759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17760 $as_echo "$supported" >&6; }
17761 if test "$supported" = "yes" ; then
17762 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
17763 found="yes"
17764 fi
17765 fi
17766
17767
17768 fi
17769
17770
17771
17772
17773
17774
17775
17776 CWARNFLAGS="$BASE_CFLAGS"
17777 if test "x$GCC" = xyes ; then
17778 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
17779 fi
17780
17781
17782
17783
17784
17785
17786
17787
17788 # Check whether --enable-strict-compilation was given.
17789 if test "${enable_strict_compilation+set}" = set; then :
17790 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
17791 else
17792 STRICT_COMPILE=no
17793 fi
17794
17795
17796
17797
17798
17799
17800 STRICT_CFLAGS=""
17801
17802
17803
17804
17805
17806
17807
17808
17809
17810
17811
17812
17813
17814 xorg_testset_save_CFLAGS="$CFLAGS"
17815
17816 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17817 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17819 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17820 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17821 $as_echo_n "(cached) " >&6
17822 else
17823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17824 /* end confdefs.h. */
17825 int i;
17826 _ACEOF
17827 if ac_fn_c_try_compile "$LINENO"; then :
17828 xorg_cv_cc_flag_unknown_warning_option=yes
17829 else
17830 xorg_cv_cc_flag_unknown_warning_option=no
17831 fi
17832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17833 fi
17834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17835 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17836 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17837 CFLAGS="$xorg_testset_save_CFLAGS"
17838 fi
17839
17840 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17841 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17842 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17843 fi
17844 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17846 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17847 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17848 $as_echo_n "(cached) " >&6
17849 else
17850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17851 /* end confdefs.h. */
17852 int i;
17853 _ACEOF
17854 if ac_fn_c_try_compile "$LINENO"; then :
17855 xorg_cv_cc_flag_unused_command_line_argument=yes
17856 else
17857 xorg_cv_cc_flag_unused_command_line_argument=no
17858 fi
17859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17860 fi
17861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17862 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17863 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17864 CFLAGS="$xorg_testset_save_CFLAGS"
17865 fi
17866
17867 found="no"
17868
17869 if test $found = "no" ; then
17870 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17871 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17872 fi
17873
17874 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17875 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17876 fi
17877
17878 CFLAGS="$CFLAGS -pedantic"
17879
17880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
17881 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
17882 cacheid=xorg_cv_cc_flag__pedantic
17883 if eval \${$cacheid+:} false; then :
17884 $as_echo_n "(cached) " >&6
17885 else
17886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17887 /* end confdefs.h. */
17888 int i;
17889 int
17890 main ()
17891 {
17892
17893 ;
17894 return 0;
17895 }
17896 _ACEOF
17897 if ac_fn_c_try_link "$LINENO"; then :
17898 eval $cacheid=yes
17899 else
17900 eval $cacheid=no
17901 fi
17902 rm -f core conftest.err conftest.$ac_objext \
17903 conftest$ac_exeext conftest.$ac_ext
17904 fi
17905
17906
17907 CFLAGS="$xorg_testset_save_CFLAGS"
17908
17909 eval supported=\$$cacheid
17910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17911 $as_echo "$supported" >&6; }
17912 if test "$supported" = "yes" ; then
17913 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
17914 found="yes"
17915 fi
17916 fi
17917
17918
17919
17920
17921
17922
17923
17924
17925
17926
17927
17928
17929
17930
17931
17932 xorg_testset_save_CFLAGS="$CFLAGS"
17933
17934 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17935 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17937 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17938 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17939 $as_echo_n "(cached) " >&6
17940 else
17941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17942 /* end confdefs.h. */
17943 int i;
17944 _ACEOF
17945 if ac_fn_c_try_compile "$LINENO"; then :
17946 xorg_cv_cc_flag_unknown_warning_option=yes
17947 else
17948 xorg_cv_cc_flag_unknown_warning_option=no
17949 fi
17950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17951 fi
17952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17953 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17954 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17955 CFLAGS="$xorg_testset_save_CFLAGS"
17956 fi
17957
17958 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17959 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17960 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17961 fi
17962 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17964 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17965 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17966 $as_echo_n "(cached) " >&6
17967 else
17968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17969 /* end confdefs.h. */
17970 int i;
17971 _ACEOF
17972 if ac_fn_c_try_compile "$LINENO"; then :
17973 xorg_cv_cc_flag_unused_command_line_argument=yes
17974 else
17975 xorg_cv_cc_flag_unused_command_line_argument=no
17976 fi
17977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17978 fi
17979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17980 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17981 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17982 CFLAGS="$xorg_testset_save_CFLAGS"
17983 fi
17984
17985 found="no"
17986
17987 if test $found = "no" ; then
17988 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17989 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17990 fi
17991
17992 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17993 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17994 fi
17995
17996 CFLAGS="$CFLAGS -Werror"
17997
17998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
17999 $as_echo_n "checking if $CC supports -Werror... " >&6; }
18000 cacheid=xorg_cv_cc_flag__Werror
18001 if eval \${$cacheid+:} false; then :
18002 $as_echo_n "(cached) " >&6
18003 else
18004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18005 /* end confdefs.h. */
18006 int i;
18007 int
18008 main ()
18009 {
18010
18011 ;
18012 return 0;
18013 }
18014 _ACEOF
18015 if ac_fn_c_try_link "$LINENO"; then :
18016 eval $cacheid=yes
18017 else
18018 eval $cacheid=no
18019 fi
18020 rm -f core conftest.err conftest.$ac_objext \
18021 conftest$ac_exeext conftest.$ac_ext
18022 fi
18023
18024
18025 CFLAGS="$xorg_testset_save_CFLAGS"
18026
18027 eval supported=\$$cacheid
18028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18029 $as_echo "$supported" >&6; }
18030 if test "$supported" = "yes" ; then
18031 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
18032 found="yes"
18033 fi
18034 fi
18035
18036 if test $found = "no" ; then
18037 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18038 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18039 fi
18040
18041 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18042 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18043 fi
18044
18045 CFLAGS="$CFLAGS -errwarn"
18046
18047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
18048 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
18049 cacheid=xorg_cv_cc_flag__errwarn
18050 if eval \${$cacheid+:} false; then :
18051 $as_echo_n "(cached) " >&6
18052 else
18053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18054 /* end confdefs.h. */
18055 int i;
18056 int
18057 main ()
18058 {
18059
18060 ;
18061 return 0;
18062 }
18063 _ACEOF
18064 if ac_fn_c_try_link "$LINENO"; then :
18065 eval $cacheid=yes
18066 else
18067 eval $cacheid=no
18068 fi
18069 rm -f core conftest.err conftest.$ac_objext \
18070 conftest$ac_exeext conftest.$ac_ext
18071 fi
18072
18073
18074 CFLAGS="$xorg_testset_save_CFLAGS"
18075
18076 eval supported=\$$cacheid
18077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18078 $as_echo "$supported" >&6; }
18079 if test "$supported" = "yes" ; then
18080 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
18081 found="yes"
18082 fi
18083 fi
18084
18085
18086
18087 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
18088 # activate it with -Werror, so we add it here explicitly.
18089
18090
18091
18092
18093
18094
18095
18096
18097
18098
18099
18100
18101
18102 xorg_testset_save_CFLAGS="$CFLAGS"
18103
18104 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18105 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18107 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18108 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
18109 $as_echo_n "(cached) " >&6
18110 else
18111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18112 /* end confdefs.h. */
18113 int i;
18114 _ACEOF
18115 if ac_fn_c_try_compile "$LINENO"; then :
18116 xorg_cv_cc_flag_unknown_warning_option=yes
18117 else
18118 xorg_cv_cc_flag_unknown_warning_option=no
18119 fi
18120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18121 fi
18122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18123 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18124 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18125 CFLAGS="$xorg_testset_save_CFLAGS"
18126 fi
18127
18128 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18129 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18130 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18131 fi
18132 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18134 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18135 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18136 $as_echo_n "(cached) " >&6
18137 else
18138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18139 /* end confdefs.h. */
18140 int i;
18141 _ACEOF
18142 if ac_fn_c_try_compile "$LINENO"; then :
18143 xorg_cv_cc_flag_unused_command_line_argument=yes
18144 else
18145 xorg_cv_cc_flag_unused_command_line_argument=no
18146 fi
18147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18148 fi
18149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18150 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18151 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18152 CFLAGS="$xorg_testset_save_CFLAGS"
18153 fi
18154
18155 found="no"
18156
18157 if test $found = "no" ; then
18158 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18159 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18160 fi
18161
18162 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18163 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18164 fi
18165
18166 CFLAGS="$CFLAGS -Werror=attributes"
18167
18168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
18169 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
18170 cacheid=xorg_cv_cc_flag__Werror_attributes
18171 if eval \${$cacheid+:} false; then :
18172 $as_echo_n "(cached) " >&6
18173 else
18174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18175 /* end confdefs.h. */
18176 int i;
18177 int
18178 main ()
18179 {
18180
18181 ;
18182 return 0;
18183 }
18184 _ACEOF
18185 if ac_fn_c_try_link "$LINENO"; then :
18186 eval $cacheid=yes
18187 else
18188 eval $cacheid=no
18189 fi
18190 rm -f core conftest.err conftest.$ac_objext \
18191 conftest$ac_exeext conftest.$ac_ext
18192 fi
18193
18194
18195 CFLAGS="$xorg_testset_save_CFLAGS"
18196
18197 eval supported=\$$cacheid
18198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18199 $as_echo "$supported" >&6; }
18200 if test "$supported" = "yes" ; then
18201 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
18202 found="yes"
18203 fi
18204 fi
18205
18206
18207
18208 if test "x$STRICT_COMPILE" = "xyes"; then
18209 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
18210 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
18211 fi
18212
18213
18214
18215
18216
18217
18218 cat >>confdefs.h <<_ACEOF
18219 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
18220 _ACEOF
18221
18222 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
18223 if test "x$PVM" = "x"; then
18224 PVM="0"
18225 fi
18226
18227 cat >>confdefs.h <<_ACEOF
18228 #define PACKAGE_VERSION_MINOR $PVM
18229 _ACEOF
18230
18231 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
18232 if test "x$PVP" = "x"; then
18233 PVP="0"
18234 fi
18235
18236 cat >>confdefs.h <<_ACEOF
18237 #define PACKAGE_VERSION_PATCHLEVEL $PVP
18238 _ACEOF
18239
18240
18241
18242 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
18243 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
18244 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
18245 touch \$(top_srcdir)/ChangeLog; \
18246 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
18247
18248
18249
18250
18251 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
18252 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
18253 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
18254 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
18255 touch \$(top_srcdir)/INSTALL; \
18256 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
18257
18258
18259
18260
18261
18262
18263 case $host_os in
18264 solaris*)
18265 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
18266 # check for a man page file found in later versions that use
18267 # traditional section numbers instead
18268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
18269 $as_echo_n "checking for /usr/share/man/man7/attributes.7... " >&6; }
18270 if ${ac_cv_file__usr_share_man_man7_attributes_7+:} false; then :
18271 $as_echo_n "(cached) " >&6
18272 else
18273 test "$cross_compiling" = yes &&
18274 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
18275 if test -r "/usr/share/man/man7/attributes.7"; then
18276 ac_cv_file__usr_share_man_man7_attributes_7=yes
18277 else
18278 ac_cv_file__usr_share_man_man7_attributes_7=no
18279 fi
18280 fi
18281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
18282 $as_echo "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
18283 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes; then :
18284 SYSV_MAN_SECTIONS=false
18285 else
18286 SYSV_MAN_SECTIONS=true
18287 fi
18288
18289 ;;
18290 *) SYSV_MAN_SECTIONS=false ;;
18291 esac
18292
18293 if test x$APP_MAN_SUFFIX = x ; then
18294 APP_MAN_SUFFIX=1
18295 fi
18296 if test x$APP_MAN_DIR = x ; then
18297 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
18298 fi
18299
18300 if test x$LIB_MAN_SUFFIX = x ; then
18301 LIB_MAN_SUFFIX=3
18302 fi
18303 if test x$LIB_MAN_DIR = x ; then
18304 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
18305 fi
18306
18307 if test x$FILE_MAN_SUFFIX = x ; then
18308 case $SYSV_MAN_SECTIONS in
18309 true) FILE_MAN_SUFFIX=4 ;;
18310 *) FILE_MAN_SUFFIX=5 ;;
18311 esac
18312 fi
18313 if test x$FILE_MAN_DIR = x ; then
18314 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
18315 fi
18316
18317 if test x$MISC_MAN_SUFFIX = x ; then
18318 case $SYSV_MAN_SECTIONS in
18319 true) MISC_MAN_SUFFIX=5 ;;
18320 *) MISC_MAN_SUFFIX=7 ;;
18321 esac
18322 fi
18323 if test x$MISC_MAN_DIR = x ; then
18324 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
18325 fi
18326
18327 if test x$DRIVER_MAN_SUFFIX = x ; then
18328 case $SYSV_MAN_SECTIONS in
18329 true) DRIVER_MAN_SUFFIX=7 ;;
18330 *) DRIVER_MAN_SUFFIX=4 ;;
18331 esac
18332 fi
18333 if test x$DRIVER_MAN_DIR = x ; then
18334 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
18335 fi
18336
18337 if test x$ADMIN_MAN_SUFFIX = x ; then
18338 case $SYSV_MAN_SECTIONS in
18339 true) ADMIN_MAN_SUFFIX=1m ;;
18340 *) ADMIN_MAN_SUFFIX=8 ;;
18341 esac
18342 fi
18343 if test x$ADMIN_MAN_DIR = x ; then
18344 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
18345 fi
18346
18347
18348
18349
18350
18351
18352
18353
18354
18355
18356
18357
18358
18359
18360
18361 XORG_MAN_PAGE="X Version 11"
18362
18363 MAN_SUBSTS="\
18364 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
18365 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
18366 -e 's|__xservername__|Xorg|g' \
18367 -e 's|__xconfigfile__|xorg.conf|g' \
18368 -e 's|__projectroot__|\$(prefix)|g' \
18369 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
18370 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
18371 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
18372 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
18373 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
18374 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
18375 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
18376
18377
18378
18379 # Check whether --enable-silent-rules was given.
18380 if test "${enable_silent_rules+set}" = set; then :
18381 enableval=$enable_silent_rules;
18382 fi
18383
18384 case $enable_silent_rules in # (((
18385 yes) AM_DEFAULT_VERBOSITY=0;;
18386 no) AM_DEFAULT_VERBOSITY=1;;
18387 *) AM_DEFAULT_VERBOSITY=0;;
18388 esac
18389 am_make=${MAKE-make}
18390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
18391 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
18392 if ${am_cv_make_support_nested_variables+:} false; then :
18393 $as_echo_n "(cached) " >&6
18394 else
18395 if $as_echo 'TRUE=$(BAR$(V))
18396 BAR0=false
18397 BAR1=true
18398 V=1
18399 am__doit:
18400 @$(TRUE)
18401 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
18402 am_cv_make_support_nested_variables=yes
18403 else
18404 am_cv_make_support_nested_variables=no
18405 fi
18406 fi
18407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
18408 $as_echo "$am_cv_make_support_nested_variables" >&6; }
18409 if test $am_cv_make_support_nested_variables = yes; then
18410 AM_V='$(V)'
18411 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
18412 else
18413 AM_V=$AM_DEFAULT_VERBOSITY
18414 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
18415 fi
18416 AM_BACKSLASH='\'
18417
18418
18419
18420
18421 # Check whether --enable-docs was given.
18422 if test "${enable_docs+set}" = set; then :
18423 enableval=$enable_docs; build_docs=$enableval
18424 else
18425 build_docs=yes
18426 fi
18427
18428
18429 if test x$build_docs = xyes; then
18430 ENABLE_DOCS_TRUE=
18431 ENABLE_DOCS_FALSE='#'
18432 else
18433 ENABLE_DOCS_TRUE='#'
18434 ENABLE_DOCS_FALSE=
18435 fi
18436
18437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build documentation" >&5
18438 $as_echo_n "checking whether to build documentation... " >&6; }
18439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_docs" >&5
18440 $as_echo "$build_docs" >&6; }
18441
18442
18443
18444 # Check whether --enable-specs was given.
18445 if test "${enable_specs+set}" = set; then :
18446 enableval=$enable_specs; build_specs=$enableval
18447 else
18448 build_specs=yes
18449 fi
18450
18451
18452 if test x$build_specs = xyes; then
18453 ENABLE_SPECS_TRUE=
18454 ENABLE_SPECS_FALSE='#'
18455 else
18456 ENABLE_SPECS_TRUE='#'
18457 ENABLE_SPECS_FALSE=
18458 fi
18459
18460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build functional specifications" >&5
18461 $as_echo_n "checking whether to build functional specifications... " >&6; }
18462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_specs" >&5
18463 $as_echo "$build_specs" >&6; }
18464
18465
18466
18467
18468
18469 # Check whether --with-xmlto was given.
18470 if test "${with_xmlto+set}" = set; then :
18471 withval=$with_xmlto; use_xmlto=$withval
18472 else
18473 use_xmlto=auto
18474 fi
18475
18476
18477
18478 if test "x$use_xmlto" = x"auto"; then
18479 # Extract the first word of "xmlto", so it can be a program name with args.
18480 set dummy xmlto; ac_word=$2
18481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18482 $as_echo_n "checking for $ac_word... " >&6; }
18483 if ${ac_cv_path_XMLTO+:} false; then :
18484 $as_echo_n "(cached) " >&6
18485 else
18486 case $XMLTO in
18487 [\\/]* | ?:[\\/]*)
18488 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
18489 ;;
18490 *)
18491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18492 for as_dir in $PATH
18493 do
18494 IFS=$as_save_IFS
18495 test -z "$as_dir" && as_dir=.
18496 for ac_exec_ext in '' $ac_executable_extensions; do
18497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18498 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
18499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18500 break 2
18501 fi
18502 done
18503 done
18504 IFS=$as_save_IFS
18505
18506 ;;
18507 esac
18508 fi
18509 XMLTO=$ac_cv_path_XMLTO
18510 if test -n "$XMLTO"; then
18511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
18512 $as_echo "$XMLTO" >&6; }
18513 else
18514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18515 $as_echo "no" >&6; }
18516 fi
18517
18518
18519 if test "x$XMLTO" = "x"; then
18520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5
18521 $as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;}
18522 have_xmlto=no
18523 else
18524 have_xmlto=yes
18525 fi
18526 elif test "x$use_xmlto" = x"yes" ; then
18527 # Extract the first word of "xmlto", so it can be a program name with args.
18528 set dummy xmlto; ac_word=$2
18529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18530 $as_echo_n "checking for $ac_word... " >&6; }
18531 if ${ac_cv_path_XMLTO+:} false; then :
18532 $as_echo_n "(cached) " >&6
18533 else
18534 case $XMLTO in
18535 [\\/]* | ?:[\\/]*)
18536 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
18537 ;;
18538 *)
18539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18540 for as_dir in $PATH
18541 do
18542 IFS=$as_save_IFS
18543 test -z "$as_dir" && as_dir=.
18544 for ac_exec_ext in '' $ac_executable_extensions; do
18545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18546 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
18547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18548 break 2
18549 fi
18550 done
18551 done
18552 IFS=$as_save_IFS
18553
18554 ;;
18555 esac
18556 fi
18557 XMLTO=$ac_cv_path_XMLTO
18558 if test -n "$XMLTO"; then
18559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
18560 $as_echo "$XMLTO" >&6; }
18561 else
18562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18563 $as_echo "no" >&6; }
18564 fi
18565
18566
18567 if test "x$XMLTO" = "x"; then
18568 as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5
18569 fi
18570 have_xmlto=yes
18571 elif test "x$use_xmlto" = x"no" ; then
18572 if test "x$XMLTO" != "x"; then
18573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5
18574 $as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;}
18575 fi
18576 have_xmlto=no
18577 else
18578 as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5
18579 fi
18580
18581 # Test for a minimum version of xmlto, if provided.
18582 if test "$have_xmlto" = yes; then
18583 # scrape the xmlto version
18584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5
18585 $as_echo_n "checking the xmlto version... " >&6; }
18586 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3`
18587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5
18588 $as_echo "$xmlto_version" >&6; }
18589 as_arg_v1=$xmlto_version
18590 as_arg_v2=0.0.22
18591 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
18592 case $? in #(
18593 1) :
18594 if test "x$use_xmlto" = xauto; then
18595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5
18596 $as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;}
18597 have_xmlto=no
18598 else
18599 as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5
18600 fi ;; #(
18601 0) :
18602 ;; #(
18603 2) :
18604 ;; #(
18605 *) :
18606 ;;
18607 esac
18608 fi
18609
18610 # Test for the ability of xmlto to generate a text target
18611 #
18612 # NOTE: xmlto 0.0.27 or higher return a non-zero return code in the
18613 # following test for empty XML docbook files.
18614 # For compatibility reasons use the following empty XML docbook file and if
18615 # it fails try it again with a non-empty XML file.
18616 have_xmlto_text=no
18617 cat > conftest.xml << "EOF"
18618 EOF
18619 if test "$have_xmlto" = yes; then :
18620 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then :
18621 have_xmlto_text=yes
18622 else
18623 # Try it again with a non-empty XML file.
18624 cat > conftest.xml << "EOF"
18625 <x></x>
18626 EOF
18627 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then :
18628 have_xmlto_text=yes
18629 else
18630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5
18631 $as_echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;}
18632 fi
18633 fi
18634 fi
18635 rm -f conftest.xml
18636 if test $have_xmlto_text = yes; then
18637 HAVE_XMLTO_TEXT_TRUE=
18638 HAVE_XMLTO_TEXT_FALSE='#'
18639 else
18640 HAVE_XMLTO_TEXT_TRUE='#'
18641 HAVE_XMLTO_TEXT_FALSE=
18642 fi
18643
18644 if test "$have_xmlto" = yes; then
18645 HAVE_XMLTO_TRUE=
18646 HAVE_XMLTO_FALSE='#'
18647 else
18648 HAVE_XMLTO_TRUE='#'
18649 HAVE_XMLTO_FALSE=
18650 fi
18651
18652
18653
18654
18655
18656
18657 # Check whether --with-fop was given.
18658 if test "${with_fop+set}" = set; then :
18659 withval=$with_fop; use_fop=$withval
18660 else
18661 use_fop=auto
18662 fi
18663
18664
18665
18666 if test "x$use_fop" = x"auto"; then
18667 # Extract the first word of "fop", so it can be a program name with args.
18668 set dummy fop; ac_word=$2
18669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18670 $as_echo_n "checking for $ac_word... " >&6; }
18671 if ${ac_cv_path_FOP+:} false; then :
18672 $as_echo_n "(cached) " >&6
18673 else
18674 case $FOP in
18675 [\\/]* | ?:[\\/]*)
18676 ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
18677 ;;
18678 *)
18679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18680 for as_dir in $PATH
18681 do
18682 IFS=$as_save_IFS
18683 test -z "$as_dir" && as_dir=.
18684 for ac_exec_ext in '' $ac_executable_extensions; do
18685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18686 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
18687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18688 break 2
18689 fi
18690 done
18691 done
18692 IFS=$as_save_IFS
18693
18694 ;;
18695 esac
18696 fi
18697 FOP=$ac_cv_path_FOP
18698 if test -n "$FOP"; then
18699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
18700 $as_echo "$FOP" >&6; }
18701 else
18702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18703 $as_echo "no" >&6; }
18704 fi
18705
18706
18707 if test "x$FOP" = "x"; then
18708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5
18709 $as_echo "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;}
18710 have_fop=no
18711 else
18712 have_fop=yes
18713 fi
18714 elif test "x$use_fop" = x"yes" ; then
18715 # Extract the first word of "fop", so it can be a program name with args.
18716 set dummy fop; ac_word=$2
18717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18718 $as_echo_n "checking for $ac_word... " >&6; }
18719 if ${ac_cv_path_FOP+:} false; then :
18720 $as_echo_n "(cached) " >&6
18721 else
18722 case $FOP in
18723 [\\/]* | ?:[\\/]*)
18724 ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
18725 ;;
18726 *)
18727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18728 for as_dir in $PATH
18729 do
18730 IFS=$as_save_IFS
18731 test -z "$as_dir" && as_dir=.
18732 for ac_exec_ext in '' $ac_executable_extensions; do
18733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18734 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
18735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18736 break 2
18737 fi
18738 done
18739 done
18740 IFS=$as_save_IFS
18741
18742 ;;
18743 esac
18744 fi
18745 FOP=$ac_cv_path_FOP
18746 if test -n "$FOP"; then
18747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
18748 $as_echo "$FOP" >&6; }
18749 else
18750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18751 $as_echo "no" >&6; }
18752 fi
18753
18754
18755 if test "x$FOP" = "x"; then
18756 as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5
18757 fi
18758 have_fop=yes
18759 elif test "x$use_fop" = x"no" ; then
18760 if test "x$FOP" != "x"; then
18761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5
18762 $as_echo "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;}
18763 fi
18764 have_fop=no
18765 else
18766 as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5
18767 fi
18768
18769 # Test for a minimum version of fop, if provided.
18770
18771 if test "$have_fop" = yes; then
18772 HAVE_FOP_TRUE=
18773 HAVE_FOP_FALSE='#'
18774 else
18775 HAVE_FOP_TRUE='#'
18776 HAVE_FOP_FALSE=
18777 fi
18778
18779
18780
18781
18782 # Preserves the interface, should it be implemented later
18783
18784
18785
18786 # Check whether --with-xsltproc was given.
18787 if test "${with_xsltproc+set}" = set; then :
18788 withval=$with_xsltproc; use_xsltproc=$withval
18789 else
18790 use_xsltproc=auto
18791 fi
18792
18793
18794
18795 if test "x$use_xsltproc" = x"auto"; then
18796 # Extract the first word of "xsltproc", so it can be a program name with args.
18797 set dummy xsltproc; ac_word=$2
18798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18799 $as_echo_n "checking for $ac_word... " >&6; }
18800 if ${ac_cv_path_XSLTPROC+:} false; then :
18801 $as_echo_n "(cached) " >&6
18802 else
18803 case $XSLTPROC in
18804 [\\/]* | ?:[\\/]*)
18805 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
18806 ;;
18807 *)
18808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18809 for as_dir in $PATH
18810 do
18811 IFS=$as_save_IFS
18812 test -z "$as_dir" && as_dir=.
18813 for ac_exec_ext in '' $ac_executable_extensions; do
18814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18815 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
18816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18817 break 2
18818 fi
18819 done
18820 done
18821 IFS=$as_save_IFS
18822
18823 ;;
18824 esac
18825 fi
18826 XSLTPROC=$ac_cv_path_XSLTPROC
18827 if test -n "$XSLTPROC"; then
18828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
18829 $as_echo "$XSLTPROC" >&6; }
18830 else
18831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18832 $as_echo "no" >&6; }
18833 fi
18834
18835
18836 if test "x$XSLTPROC" = "x"; then
18837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5
18838 $as_echo "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;}
18839 have_xsltproc=no
18840 else
18841 have_xsltproc=yes
18842 fi
18843 elif test "x$use_xsltproc" = x"yes" ; then
18844 # Extract the first word of "xsltproc", so it can be a program name with args.
18845 set dummy xsltproc; ac_word=$2
18846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18847 $as_echo_n "checking for $ac_word... " >&6; }
18848 if ${ac_cv_path_XSLTPROC+:} false; then :
18849 $as_echo_n "(cached) " >&6
18850 else
18851 case $XSLTPROC in
18852 [\\/]* | ?:[\\/]*)
18853 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
18854 ;;
18855 *)
18856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18857 for as_dir in $PATH
18858 do
18859 IFS=$as_save_IFS
18860 test -z "$as_dir" && as_dir=.
18861 for ac_exec_ext in '' $ac_executable_extensions; do
18862 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18863 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
18864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18865 break 2
18866 fi
18867 done
18868 done
18869 IFS=$as_save_IFS
18870
18871 ;;
18872 esac
18873 fi
18874 XSLTPROC=$ac_cv_path_XSLTPROC
18875 if test -n "$XSLTPROC"; then
18876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
18877 $as_echo "$XSLTPROC" >&6; }
18878 else
18879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18880 $as_echo "no" >&6; }
18881 fi
18882
18883
18884 if test "x$XSLTPROC" = "x"; then
18885 as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5
18886 fi
18887 have_xsltproc=yes
18888 elif test "x$use_xsltproc" = x"no" ; then
18889 if test "x$XSLTPROC" != "x"; then
18890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5
18891 $as_echo "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;}
18892 fi
18893 have_xsltproc=no
18894 else
18895 as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5
18896 fi
18897
18898 if test "$have_xsltproc" = yes; then
18899 HAVE_XSLTPROC_TRUE=
18900 HAVE_XSLTPROC_FALSE='#'
18901 else
18902 HAVE_XSLTPROC_TRUE='#'
18903 HAVE_XSLTPROC_FALSE=
18904 fi
18905
18906
18907
18908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.8" >&5
18909 $as_echo_n "checking for X.Org SGML entities >= 1.8... " >&6; }
18910 XORG_SGML_PATH=
18911 if test -n "$PKG_CONFIG" && \
18912 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.8\""; } >&5
18913 ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.8") 2>&5
18914 ac_status=$?
18915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18916 test $ac_status = 0; }; then
18917 XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`
18918 else
18919 :
18920
18921 fi
18922
18923 # Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing
18924 # the path and the name of the doc stylesheet
18925 if test "x$XORG_SGML_PATH" != "x" ; then
18926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5
18927 $as_echo "$XORG_SGML_PATH" >&6; }
18928 STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11
18929 XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl
18930 else
18931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18932 $as_echo "no" >&6; }
18933 fi
18934
18935
18936
18937
18938 if test "x$XSL_STYLESHEET" != "x"; then
18939 HAVE_STYLESHEETS_TRUE=
18940 HAVE_STYLESHEETS_FALSE='#'
18941 else
18942 HAVE_STYLESHEETS_TRUE='#'
18943 HAVE_STYLESHEETS_FALSE=
18944 fi
18945
18946
18947
18948
18949
18950
18951 # Check whether --with-asciidoc was given.
18952 if test "${with_asciidoc+set}" = set; then :
18953 withval=$with_asciidoc; use_asciidoc=$withval
18954 else
18955 use_asciidoc=auto
18956 fi
18957
18958
18959
18960 if test "x$use_asciidoc" = x"auto"; then
18961 # Extract the first word of "asciidoc", so it can be a program name with args.
18962 set dummy asciidoc; ac_word=$2
18963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18964 $as_echo_n "checking for $ac_word... " >&6; }
18965 if ${ac_cv_path_ASCIIDOC+:} false; then :
18966 $as_echo_n "(cached) " >&6
18967 else
18968 case $ASCIIDOC in
18969 [\\/]* | ?:[\\/]*)
18970 ac_cv_path_ASCIIDOC="$ASCIIDOC" # Let the user override the test with a path.
18971 ;;
18972 *)
18973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18974 for as_dir in $PATH
18975 do
18976 IFS=$as_save_IFS
18977 test -z "$as_dir" && as_dir=.
18978 for ac_exec_ext in '' $ac_executable_extensions; do
18979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18980 ac_cv_path_ASCIIDOC="$as_dir/$ac_word$ac_exec_ext"
18981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18982 break 2
18983 fi
18984 done
18985 done
18986 IFS=$as_save_IFS
18987
18988 ;;
18989 esac
18990 fi
18991 ASCIIDOC=$ac_cv_path_ASCIIDOC
18992 if test -n "$ASCIIDOC"; then
18993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ASCIIDOC" >&5
18994 $as_echo "$ASCIIDOC" >&6; }
18995 else
18996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18997 $as_echo "no" >&6; }
18998 fi
18999
19000
19001 if test "x$ASCIIDOC" = "x"; then
19002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: asciidoc not found - documentation targets will be skipped" >&5
19003 $as_echo "$as_me: WARNING: asciidoc not found - documentation targets will be skipped" >&2;}
19004 have_asciidoc=no
19005 else
19006 have_asciidoc=yes
19007 fi
19008 elif test "x$use_asciidoc" = x"yes" ; then
19009 # Extract the first word of "asciidoc", so it can be a program name with args.
19010 set dummy asciidoc; ac_word=$2
19011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19012 $as_echo_n "checking for $ac_word... " >&6; }
19013 if ${ac_cv_path_ASCIIDOC+:} false; then :
19014 $as_echo_n "(cached) " >&6
19015 else
19016 case $ASCIIDOC in
19017 [\\/]* | ?:[\\/]*)
19018 ac_cv_path_ASCIIDOC="$ASCIIDOC" # Let the user override the test with a path.
19019 ;;
19020 *)
19021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19022 for as_dir in $PATH
19023 do
19024 IFS=$as_save_IFS
19025 test -z "$as_dir" && as_dir=.
19026 for ac_exec_ext in '' $ac_executable_extensions; do
19027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19028 ac_cv_path_ASCIIDOC="$as_dir/$ac_word$ac_exec_ext"
19029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19030 break 2
19031 fi
19032 done
19033 done
19034 IFS=$as_save_IFS
19035
19036 ;;
19037 esac
19038 fi
19039 ASCIIDOC=$ac_cv_path_ASCIIDOC
19040 if test -n "$ASCIIDOC"; then
19041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ASCIIDOC" >&5
19042 $as_echo "$ASCIIDOC" >&6; }
19043 else
19044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19045 $as_echo "no" >&6; }
19046 fi
19047
19048
19049 if test "x$ASCIIDOC" = "x"; then
19050 as_fn_error $? "--with-asciidoc=yes specified but asciidoc not found in PATH" "$LINENO" 5
19051 fi
19052 have_asciidoc=yes
19053 elif test "x$use_asciidoc" = x"no" ; then
19054 if test "x$ASCIIDOC" != "x"; then
19055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring ASCIIDOC environment variable since --with-asciidoc=no was specified" >&5
19056 $as_echo "$as_me: WARNING: ignoring ASCIIDOC environment variable since --with-asciidoc=no was specified" >&2;}
19057 fi
19058 have_asciidoc=no
19059 else
19060 as_fn_error $? "--with-asciidoc expects 'yes' or 'no'" "$LINENO" 5
19061 fi
19062 if test "$have_asciidoc" = yes; then
19063 # scrape the asciidoc version
19064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the asciidoc version" >&5
19065 $as_echo_n "checking the asciidoc version... " >&6; }
19066 asciidoc_version=`$ASCIIDOC --version 2>/dev/null | cut -d' ' -f2`
19067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $asciidoc_version" >&5
19068 $as_echo "$asciidoc_version" >&6; }
19069 as_arg_v1=$asciidoc_version
19070 as_arg_v2=8.4.5
19071 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
19072 case $? in #(
19073 1) :
19074 if test "x$use_asciidoc" = xauto; then
19075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: asciidoc version $asciidoc_version found, but 8.4.5 needed" >&5
19076 $as_echo "$as_me: WARNING: asciidoc version $asciidoc_version found, but 8.4.5 needed" >&2;}
19077 have_asciidoc=no
19078 else
19079 as_fn_error $? "asciidoc version $asciidoc_version found, but 8.4.5 needed" "$LINENO" 5
19080 fi ;; #(
19081 0) :
19082 ;; #(
19083 2) :
19084 ;; #(
19085 *) :
19086 ;;
19087 esac
19088 fi
19089 if test "$have_asciidoc" = yes; then
19090 HAVE_ASCIIDOC_TRUE=
19091 HAVE_ASCIIDOC_FALSE='#'
19092 else
19093 HAVE_ASCIIDOC_TRUE='#'
19094 HAVE_ASCIIDOC_FALSE=
19095 fi
19096
19097
19098
19099 # Check whether --enable-malloc0returnsnull was given.
19100 if test "${enable_malloc0returnsnull+set}" = set; then :
19101 enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval
19102 else
19103 MALLOC_ZERO_RETURNS_NULL=auto
19104 fi
19105
19106
19107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5
19108 $as_echo_n "checking whether malloc(0) returns NULL... " >&6; }
19109 if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
19110 if ${xorg_cv_malloc0_returns_null+:} false; then :
19111 $as_echo_n "(cached) " >&6
19112 else
19113 if test "$cross_compiling" = yes; then :
19114 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19115 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19116 as_fn_error $? "cannot run test program while cross compiling
19117 See \`config.log' for more details" "$LINENO" 5; }
19118 else
19119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19120 /* end confdefs.h. */
19121
19122 #include <stdlib.h>
19123
19124 int
19125 main ()
19126 {
19127
19128 char *m0, *r0, *c0, *p;
19129 m0 = malloc(0);
19130 p = malloc(10);
19131 r0 = realloc(p,0);
19132 c0 = calloc(0,10);
19133 exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1);
19134
19135 ;
19136 return 0;
19137 }
19138 _ACEOF
19139 if ac_fn_c_try_run "$LINENO"; then :
19140 xorg_cv_malloc0_returns_null=yes
19141 else
19142 xorg_cv_malloc0_returns_null=no
19143 fi
19144 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19145 conftest.$ac_objext conftest.beam conftest.$ac_ext
19146 fi
19147
19148 fi
19149
19150 MALLOC_ZERO_RETURNS_NULL=$xorg_cv_malloc0_returns_null
19151 fi
19152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5
19153 $as_echo "$MALLOC_ZERO_RETURNS_NULL" >&6; }
19154
19155 if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
19156 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
19157 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
19158 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
19159 else
19160 MALLOC_ZERO_CFLAGS=""
19161 XMALLOC_ZERO_CFLAGS=""
19162 XTMALLOC_ZERO_CFLAGS=""
19163 fi
19164
19165
19166
19167
19168
19169
19170 # Obtain compiler/linker options for dependencies
19171
19172 pkg_failed=no
19173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XI" >&5
19174 $as_echo_n "checking for XI... " >&6; }
19175
19176 if test -n "$XI_CFLAGS"; then
19177 pkg_cv_XI_CFLAGS="$XI_CFLAGS"
19178 elif test -n "$PKG_CONFIG"; then
19179 if test -n "$PKG_CONFIG" && \
19180 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.2.99.1\""; } >&5
19181 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.2.99.1") 2>&5
19182 ac_status=$?
19183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19184 test $ac_status = 0; }; then
19185 pkg_cv_XI_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.2.99.1" 2>/dev/null`
19186 test "x$?" != "x0" && pkg_failed=yes
19187 else
19188 pkg_failed=yes
19189 fi
19190 else
19191 pkg_failed=untried
19192 fi
19193 if test -n "$XI_LIBS"; then
19194 pkg_cv_XI_LIBS="$XI_LIBS"
19195 elif test -n "$PKG_CONFIG"; then
19196 if test -n "$PKG_CONFIG" && \
19197 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.2.99.1\""; } >&5
19198 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.2.99.1") 2>&5
19199 ac_status=$?
19200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19201 test $ac_status = 0; }; then
19202 pkg_cv_XI_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.2.99.1" 2>/dev/null`
19203 test "x$?" != "x0" && pkg_failed=yes
19204 else
19205 pkg_failed=yes
19206 fi
19207 else
19208 pkg_failed=untried
19209 fi
19210
19211
19212
19213 if test $pkg_failed = yes; then
19214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19215 $as_echo "no" >&6; }
19216
19217 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19218 _pkg_short_errors_supported=yes
19219 else
19220 _pkg_short_errors_supported=no
19221 fi
19222 if test $_pkg_short_errors_supported = yes; then
19223 XI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.2.99.1" 2>&1`
19224 else
19225 XI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.2.99.1" 2>&1`
19226 fi
19227 # Put the nasty error message in config.log where it belongs
19228 echo "$XI_PKG_ERRORS" >&5
19229
19230 as_fn_error $? "Package requirements (xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.2.99.1) were not met:
19231
19232 $XI_PKG_ERRORS
19233
19234 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19235 installed software in a non-standard prefix.
19236
19237 Alternatively, you may set the environment variables XI_CFLAGS
19238 and XI_LIBS to avoid the need to call pkg-config.
19239 See the pkg-config man page for more details." "$LINENO" 5
19240 elif test $pkg_failed = untried; then
19241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19242 $as_echo "no" >&6; }
19243 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19244 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19245 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19246 is in your PATH or set the PKG_CONFIG environment variable to the full
19247 path to pkg-config.
19248
19249 Alternatively, you may set the environment variables XI_CFLAGS
19250 and XI_LIBS to avoid the need to call pkg-config.
19251 See the pkg-config man page for more details.
19252
19253 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19254 See \`config.log' for more details" "$LINENO" 5; }
19255 else
19256 XI_CFLAGS=$pkg_cv_XI_CFLAGS
19257 XI_LIBS=$pkg_cv_XI_LIBS
19258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19259 $as_echo "yes" >&6; }
19260
19261 fi
19262 # CFLAGS only for PointerBarrier typedef
19263
19264 pkg_failed=no
19265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XFIXES" >&5
19266 $as_echo_n "checking for XFIXES... " >&6; }
19267
19268 if test -n "$XFIXES_CFLAGS"; then
19269 pkg_cv_XFIXES_CFLAGS="$XFIXES_CFLAGS"
19270 elif test -n "$PKG_CONFIG"; then
19271 if test -n "$PKG_CONFIG" && \
19272 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xfixes >= 5\""; } >&5
19273 ($PKG_CONFIG --exists --print-errors "xfixes >= 5") 2>&5
19274 ac_status=$?
19275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19276 test $ac_status = 0; }; then
19277 pkg_cv_XFIXES_CFLAGS=`$PKG_CONFIG --cflags "xfixes >= 5" 2>/dev/null`
19278 test "x$?" != "x0" && pkg_failed=yes
19279 else
19280 pkg_failed=yes
19281 fi
19282 else
19283 pkg_failed=untried
19284 fi
19285 if test -n "$XFIXES_LIBS"; then
19286 pkg_cv_XFIXES_LIBS="$XFIXES_LIBS"
19287 elif test -n "$PKG_CONFIG"; then
19288 if test -n "$PKG_CONFIG" && \
19289 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xfixes >= 5\""; } >&5
19290 ($PKG_CONFIG --exists --print-errors "xfixes >= 5") 2>&5
19291 ac_status=$?
19292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19293 test $ac_status = 0; }; then
19294 pkg_cv_XFIXES_LIBS=`$PKG_CONFIG --libs "xfixes >= 5" 2>/dev/null`
19295 test "x$?" != "x0" && pkg_failed=yes
19296 else
19297 pkg_failed=yes
19298 fi
19299 else
19300 pkg_failed=untried
19301 fi
19302
19303
19304
19305 if test $pkg_failed = yes; then
19306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19307 $as_echo "no" >&6; }
19308
19309 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19310 _pkg_short_errors_supported=yes
19311 else
19312 _pkg_short_errors_supported=no
19313 fi
19314 if test $_pkg_short_errors_supported = yes; then
19315 XFIXES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xfixes >= 5" 2>&1`
19316 else
19317 XFIXES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xfixes >= 5" 2>&1`
19318 fi
19319 # Put the nasty error message in config.log where it belongs
19320 echo "$XFIXES_PKG_ERRORS" >&5
19321
19322 as_fn_error $? "Package requirements (xfixes >= 5) were not met:
19323
19324 $XFIXES_PKG_ERRORS
19325
19326 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19327 installed software in a non-standard prefix.
19328
19329 Alternatively, you may set the environment variables XFIXES_CFLAGS
19330 and XFIXES_LIBS to avoid the need to call pkg-config.
19331 See the pkg-config man page for more details." "$LINENO" 5
19332 elif test $pkg_failed = untried; then
19333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19334 $as_echo "no" >&6; }
19335 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19336 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19337 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19338 is in your PATH or set the PKG_CONFIG environment variable to the full
19339 path to pkg-config.
19340
19341 Alternatively, you may set the environment variables XFIXES_CFLAGS
19342 and XFIXES_LIBS to avoid the need to call pkg-config.
19343 See the pkg-config man page for more details.
19344
19345 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19346 See \`config.log' for more details" "$LINENO" 5; }
19347 else
19348 XFIXES_CFLAGS=$pkg_cv_XFIXES_CFLAGS
19349 XFIXES_LIBS=$pkg_cv_XFIXES_LIBS
19350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19351 $as_echo "yes" >&6; }
19352
19353 fi
19354
19355 # Check for xmlto and asciidoc for man page conversion
19356 # (only needed by people building tarballs)
19357 if test "$have_xmlto" = yes && test "$have_asciidoc" = yes; then
19358 have_doctools=yes
19359 else
19360 have_doctools=no
19361 fi
19362 if test $have_doctools = yes; then
19363 HAVE_DOCTOOLS_TRUE=
19364 HAVE_DOCTOOLS_FALSE='#'
19365 else
19366 HAVE_DOCTOOLS_TRUE='#'
19367 HAVE_DOCTOOLS_FALSE=
19368 fi
19369
19370 if test $have_doctools = no; then
19371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto or asciidoc not found - cannot create man pages without it" >&5
19372 $as_echo "$as_me: WARNING: xmlto or asciidoc not found - cannot create man pages without it" >&2;}
19373 fi
19374
19375 # Determine if the source for man pages is available
19376 # It may already be present (tarball) or can be generated using doctools
19377 if test -f "$srcdir/man/XAllowDeviceEvents.man" || \
19378 test $have_doctools = yes; then
19379 INSTALL_MANPAGES_TRUE=
19380 INSTALL_MANPAGES_FALSE='#'
19381 else
19382 INSTALL_MANPAGES_TRUE='#'
19383 INSTALL_MANPAGES_FALSE=
19384 fi
19385
19386
19387 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile specs/Makefile xi.pc"
19388
19389 cat >confcache <<\_ACEOF
19390 # This file is a shell script that caches the results of configure
19391 # tests run on this system so they can be shared between configure
19392 # scripts and configure runs, see configure's option --config-cache.
19393 # It is not useful on other systems. If it contains results you don't
19394 # want to keep, you may remove or edit it.
19395 #
19396 # config.status only pays attention to the cache file if you give it
19397 # the --recheck option to rerun configure.
19398 #
19399 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19400 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19401 # following values.
19402
19403 _ACEOF
19404
19405 # The following way of writing the cache mishandles newlines in values,
19406 # but we know of no workaround that is simple, portable, and efficient.
19407 # So, we kill variables containing newlines.
19408 # Ultrix sh set writes to stderr and can't be redirected directly,
19409 # and sets the high bit in the cache file unless we assign to the vars.
19410 (
19411 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19412 eval ac_val=\$$ac_var
19413 case $ac_val in #(
19414 *${as_nl}*)
19415 case $ac_var in #(
19416 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19417 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19418 esac
19419 case $ac_var in #(
19420 _ | IFS | as_nl) ;; #(
19421 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19422 *) { eval $ac_var=; unset $ac_var;} ;;
19423 esac ;;
19424 esac
19425 done
19426
19427 (set) 2>&1 |
19428 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19429 *${as_nl}ac_space=\ *)
19430 # `set' does not quote correctly, so add quotes: double-quote
19431 # substitution turns \\\\ into \\, and sed turns \\ into \.
19432 sed -n \
19433 "s/'/'\\\\''/g;
19434 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19435 ;; #(
19436 *)
19437 # `set' quotes correctly as required by POSIX, so do not add quotes.
19438 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19439 ;;
19440 esac |
19441 sort
19442 ) |
19443 sed '
19444 /^ac_cv_env_/b end
19445 t clear
19446 :clear
19447 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19448 t end
19449 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19450 :end' >>confcache
19451 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19452 if test -w "$cache_file"; then
19453 if test "x$cache_file" != "x/dev/null"; then
19454 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19455 $as_echo "$as_me: updating cache $cache_file" >&6;}
19456 if test ! -f "$cache_file" || test -h "$cache_file"; then
19457 cat confcache >"$cache_file"
19458 else
19459 case $cache_file in #(
19460 */* | ?:*)
19461 mv -f confcache "$cache_file"$$ &&
19462 mv -f "$cache_file"$$ "$cache_file" ;; #(
19463 *)
19464 mv -f confcache "$cache_file" ;;
19465 esac
19466 fi
19467 fi
19468 else
19469 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19470 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19471 fi
19472 fi
19473 rm -f confcache
19474
19475 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19476 # Let make expand exec_prefix.
19477 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19478
19479 DEFS=-DHAVE_CONFIG_H
19480
19481 ac_libobjs=
19482 ac_ltlibobjs=
19483 U=
19484 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19485 # 1. Remove the extension, and $U if already installed.
19486 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19487 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19488 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19489 # will be set to the directory where LIBOBJS objects are built.
19490 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19491 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19492 done
19493 LIBOBJS=$ac_libobjs
19494
19495 LTLIBOBJS=$ac_ltlibobjs
19496
19497
19498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19499 $as_echo_n "checking that generated files are newer than configure... " >&6; }
19500 if test -n "$am_sleep_pid"; then
19501 # Hide warnings about reused PIDs.
19502 wait $am_sleep_pid 2>/dev/null
19503 fi
19504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19505 $as_echo "done" >&6; }
19506 if test -n "$EXEEXT"; then
19507 am__EXEEXT_TRUE=
19508 am__EXEEXT_FALSE='#'
19509 else
19510 am__EXEEXT_TRUE='#'
19511 am__EXEEXT_FALSE=
19512 fi
19513
19514 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19515 as_fn_error $? "conditional \"AMDEP\" was never defined.
19516 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19517 fi
19518 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19519 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19520 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19521 fi
19522 if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then
19523 as_fn_error $? "conditional \"ENABLE_DOCS\" was never defined.
19524 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19525 fi
19526 if test -z "${ENABLE_SPECS_TRUE}" && test -z "${ENABLE_SPECS_FALSE}"; then
19527 as_fn_error $? "conditional \"ENABLE_SPECS\" was never defined.
19528 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19529 fi
19530 if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then
19531 as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined.
19532 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19533 fi
19534 if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
19535 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
19536 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19537 fi
19538 if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
19539 as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
19540 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19541 fi
19542 if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then
19543 as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined.
19544 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19545 fi
19546 if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then
19547 as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined.
19548 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19549 fi
19550 if test -z "${HAVE_ASCIIDOC_TRUE}" && test -z "${HAVE_ASCIIDOC_FALSE}"; then
19551 as_fn_error $? "conditional \"HAVE_ASCIIDOC\" was never defined.
19552 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19553 fi
19554 if test -z "${HAVE_DOCTOOLS_TRUE}" && test -z "${HAVE_DOCTOOLS_FALSE}"; then
19555 as_fn_error $? "conditional \"HAVE_DOCTOOLS\" was never defined.
19556 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19557 fi
19558 if test -z "${INSTALL_MANPAGES_TRUE}" && test -z "${INSTALL_MANPAGES_FALSE}"; then
19559 as_fn_error $? "conditional \"INSTALL_MANPAGES\" was never defined.
19560 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19561 fi
19562
19563 : "${CONFIG_STATUS=./config.status}"
19564 ac_write_fail=0
19565 ac_clean_files_save=$ac_clean_files
19566 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19567 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19568 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19569 as_write_fail=0
19570 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19571 #! $SHELL
19572 # Generated by $as_me.
19573 # Run this file to recreate the current configuration.
19574 # Compiler output produced by configure, useful for debugging
19575 # configure, is in config.log if it exists.
19576
19577 debug=false
19578 ac_cs_recheck=false
19579 ac_cs_silent=false
19580
19581 SHELL=\${CONFIG_SHELL-$SHELL}
19582 export SHELL
19583 _ASEOF
19584 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19585 ## -------------------- ##
19586 ## M4sh Initialization. ##
19587 ## -------------------- ##
19588
19589 # Be more Bourne compatible
19590 DUALCASE=1; export DUALCASE # for MKS sh
19591 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19592 emulate sh
19593 NULLCMD=:
19594 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19595 # is contrary to our usage. Disable this feature.
19596 alias -g '${1+"$@"}'='"$@"'
19597 setopt NO_GLOB_SUBST
19598 else
19599 case `(set -o) 2>/dev/null` in #(
19600 *posix*) :
19601 set -o posix ;; #(
19602 *) :
19603 ;;
19604 esac
19605 fi
19606
19607
19608 as_nl='
19609 '
19610 export as_nl
19611 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19612 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19613 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19614 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19615 # Prefer a ksh shell builtin over an external printf program on Solaris,
19616 # but without wasting forks for bash or zsh.
19617 if test -z "$BASH_VERSION$ZSH_VERSION" \
19618 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19619 as_echo='print -r --'
19620 as_echo_n='print -rn --'
19621 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19622 as_echo='printf %s\n'
19623 as_echo_n='printf %s'
19624 else
19625 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19626 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19627 as_echo_n='/usr/ucb/echo -n'
19628 else
19629 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19630 as_echo_n_body='eval
19631 arg=$1;
19632 case $arg in #(
19633 *"$as_nl"*)
19634 expr "X$arg" : "X\\(.*\\)$as_nl";
19635 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19636 esac;
19637 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19638 '
19639 export as_echo_n_body
19640 as_echo_n='sh -c $as_echo_n_body as_echo'
19641 fi
19642 export as_echo_body
19643 as_echo='sh -c $as_echo_body as_echo'
19644 fi
19645
19646 # The user is always right.
19647 if test "${PATH_SEPARATOR+set}" != set; then
19648 PATH_SEPARATOR=:
19649 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19650 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19651 PATH_SEPARATOR=';'
19652 }
19653 fi
19654
19655
19656 # IFS
19657 # We need space, tab and new line, in precisely that order. Quoting is
19658 # there to prevent editors from complaining about space-tab.
19659 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19660 # splitting by setting IFS to empty value.)
19661 IFS=" "" $as_nl"
19662
19663 # Find who we are. Look in the path if we contain no directory separator.
19664 as_myself=
19665 case $0 in #((
19666 *[\\/]* ) as_myself=$0 ;;
19667 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19668 for as_dir in $PATH
19669 do
19670 IFS=$as_save_IFS
19671 test -z "$as_dir" && as_dir=.
19672 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19673 done
19674 IFS=$as_save_IFS
19675
19676 ;;
19677 esac
19678 # We did not find ourselves, most probably we were run as `sh COMMAND'
19679 # in which case we are not to be found in the path.
19680 if test "x$as_myself" = x; then
19681 as_myself=$0
19682 fi
19683 if test ! -f "$as_myself"; then
19684 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19685 exit 1
19686 fi
19687
19688 # Unset variables that we do not need and which cause bugs (e.g. in
19689 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19690 # suppresses any "Segmentation fault" message there. '((' could
19691 # trigger a bug in pdksh 5.2.14.
19692 for as_var in BASH_ENV ENV MAIL MAILPATH
19693 do eval test x\${$as_var+set} = xset \
19694 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19695 done
19696 PS1='$ '
19697 PS2='> '
19698 PS4='+ '
19699
19700 # NLS nuisances.
19701 LC_ALL=C
19702 export LC_ALL
19703 LANGUAGE=C
19704 export LANGUAGE
19705
19706 # CDPATH.
19707 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19708
19709
19710 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19711 # ----------------------------------------
19712 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19713 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19714 # script with STATUS, using 1 if that was 0.
19715 as_fn_error ()
19716 {
19717 as_status=$1; test $as_status -eq 0 && as_status=1
19718 if test "$4"; then
19719 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19720 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19721 fi
19722 $as_echo "$as_me: error: $2" >&2
19723 as_fn_exit $as_status
19724 } # as_fn_error
19725
19726
19727 # as_fn_set_status STATUS
19728 # -----------------------
19729 # Set $? to STATUS, without forking.
19730 as_fn_set_status ()
19731 {
19732 return $1
19733 } # as_fn_set_status
19734
19735 # as_fn_exit STATUS
19736 # -----------------
19737 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19738 as_fn_exit ()
19739 {
19740 set +e
19741 as_fn_set_status $1
19742 exit $1
19743 } # as_fn_exit
19744
19745 # as_fn_unset VAR
19746 # ---------------
19747 # Portably unset VAR.
19748 as_fn_unset ()
19749 {
19750 { eval $1=; unset $1;}
19751 }
19752 as_unset=as_fn_unset
19753 # as_fn_append VAR VALUE
19754 # ----------------------
19755 # Append the text in VALUE to the end of the definition contained in VAR. Take
19756 # advantage of any shell optimizations that allow amortized linear growth over
19757 # repeated appends, instead of the typical quadratic growth present in naive
19758 # implementations.
19759 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19760 eval 'as_fn_append ()
19761 {
19762 eval $1+=\$2
19763 }'
19764 else
19765 as_fn_append ()
19766 {
19767 eval $1=\$$1\$2
19768 }
19769 fi # as_fn_append
19770
19771 # as_fn_arith ARG...
19772 # ------------------
19773 # Perform arithmetic evaluation on the ARGs, and store the result in the
19774 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19775 # must be portable across $(()) and expr.
19776 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19777 eval 'as_fn_arith ()
19778 {
19779 as_val=$(( $* ))
19780 }'
19781 else
19782 as_fn_arith ()
19783 {
19784 as_val=`expr "$@" || test $? -eq 1`
19785 }
19786 fi # as_fn_arith
19787
19788
19789 if expr a : '\(a\)' >/dev/null 2>&1 &&
19790 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19791 as_expr=expr
19792 else
19793 as_expr=false
19794 fi
19795
19796 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19797 as_basename=basename
19798 else
19799 as_basename=false
19800 fi
19801
19802 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19803 as_dirname=dirname
19804 else
19805 as_dirname=false
19806 fi
19807
19808 as_me=`$as_basename -- "$0" ||
19809 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19810 X"$0" : 'X\(//\)$' \| \
19811 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19812 $as_echo X/"$0" |
19813 sed '/^.*\/\([^/][^/]*\)\/*$/{
19814 s//\1/
19815 q
19816 }
19817 /^X\/\(\/\/\)$/{
19818 s//\1/
19819 q
19820 }
19821 /^X\/\(\/\).*/{
19822 s//\1/
19823 q
19824 }
19825 s/.*/./; q'`
19826
19827 # Avoid depending upon Character Ranges.
19828 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19829 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19830 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19831 as_cr_digits='0123456789'
19832 as_cr_alnum=$as_cr_Letters$as_cr_digits
19833
19834 ECHO_C= ECHO_N= ECHO_T=
19835 case `echo -n x` in #(((((
19836 -n*)
19837 case `echo 'xy\c'` in
19838 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19839 xy) ECHO_C='\c';;
19840 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19841 ECHO_T=' ';;
19842 esac;;
19843 *)
19844 ECHO_N='-n';;
19845 esac
19846
19847 rm -f conf$$ conf$$.exe conf$$.file
19848 if test -d conf$$.dir; then
19849 rm -f conf$$.dir/conf$$.file
19850 else
19851 rm -f conf$$.dir
19852 mkdir conf$$.dir 2>/dev/null
19853 fi
19854 if (echo >conf$$.file) 2>/dev/null; then
19855 if ln -s conf$$.file conf$$ 2>/dev/null; then
19856 as_ln_s='ln -s'
19857 # ... but there are two gotchas:
19858 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19859 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19860 # In both cases, we have to default to `cp -pR'.
19861 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19862 as_ln_s='cp -pR'
19863 elif ln conf$$.file conf$$ 2>/dev/null; then
19864 as_ln_s=ln
19865 else
19866 as_ln_s='cp -pR'
19867 fi
19868 else
19869 as_ln_s='cp -pR'
19870 fi
19871 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19872 rmdir conf$$.dir 2>/dev/null
19873
19874
19875 # as_fn_mkdir_p
19876 # -------------
19877 # Create "$as_dir" as a directory, including parents if necessary.
19878 as_fn_mkdir_p ()
19879 {
19880
19881 case $as_dir in #(
19882 -*) as_dir=./$as_dir;;
19883 esac
19884 test -d "$as_dir" || eval $as_mkdir_p || {
19885 as_dirs=
19886 while :; do
19887 case $as_dir in #(
19888 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19889 *) as_qdir=$as_dir;;
19890 esac
19891 as_dirs="'$as_qdir' $as_dirs"
19892 as_dir=`$as_dirname -- "$as_dir" ||
19893 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19894 X"$as_dir" : 'X\(//\)[^/]' \| \
19895 X"$as_dir" : 'X\(//\)$' \| \
19896 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19897 $as_echo X"$as_dir" |
19898 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19899 s//\1/
19900 q
19901 }
19902 /^X\(\/\/\)[^/].*/{
19903 s//\1/
19904 q
19905 }
19906 /^X\(\/\/\)$/{
19907 s//\1/
19908 q
19909 }
19910 /^X\(\/\).*/{
19911 s//\1/
19912 q
19913 }
19914 s/.*/./; q'`
19915 test -d "$as_dir" && break
19916 done
19917 test -z "$as_dirs" || eval "mkdir $as_dirs"
19918 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19919
19920
19921 } # as_fn_mkdir_p
19922 if mkdir -p . 2>/dev/null; then
19923 as_mkdir_p='mkdir -p "$as_dir"'
19924 else
19925 test -d ./-p && rmdir ./-p
19926 as_mkdir_p=false
19927 fi
19928
19929
19930 # as_fn_executable_p FILE
19931 # -----------------------
19932 # Test if FILE is an executable regular file.
19933 as_fn_executable_p ()
19934 {
19935 test -f "$1" && test -x "$1"
19936 } # as_fn_executable_p
19937 as_test_x='test -x'
19938 as_executable_p=as_fn_executable_p
19939
19940 # Sed expression to map a string onto a valid CPP name.
19941 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19942
19943 # Sed expression to map a string onto a valid variable name.
19944 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19945
19946
19947 exec 6>&1
19948 ## ----------------------------------- ##
19949 ## Main body of $CONFIG_STATUS script. ##
19950 ## ----------------------------------- ##
19951 _ASEOF
19952 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19953
19954 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19955 # Save the log message, to keep $0 and so on meaningful, and to
19956 # report actual input values of CONFIG_FILES etc. instead of their
19957 # values after options handling.
19958 ac_log="
19959 This file was extended by libXi $as_me 1.7.10, which was
19960 generated by GNU Autoconf 2.69. Invocation command line was
19961
19962 CONFIG_FILES = $CONFIG_FILES
19963 CONFIG_HEADERS = $CONFIG_HEADERS
19964 CONFIG_LINKS = $CONFIG_LINKS
19965 CONFIG_COMMANDS = $CONFIG_COMMANDS
19966 $ $0 $@
19967
19968 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19969 "
19970
19971 _ACEOF
19972
19973 case $ac_config_files in *"
19974 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19975 esac
19976
19977 case $ac_config_headers in *"
19978 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19979 esac
19980
19981
19982 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19983 # Files that config.status was made for.
19984 config_files="$ac_config_files"
19985 config_headers="$ac_config_headers"
19986 config_commands="$ac_config_commands"
19987
19988 _ACEOF
19989
19990 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19991 ac_cs_usage="\
19992 \`$as_me' instantiates files and other configuration actions
19993 from templates according to the current configuration. Unless the files
19994 and actions are specified as TAGs, all are instantiated by default.
19995
19996 Usage: $0 [OPTION]... [TAG]...
19997
19998 -h, --help print this help, then exit
19999 -V, --version print version number and configuration settings, then exit
20000 --config print configuration, then exit
20001 -q, --quiet, --silent
20002 do not print progress messages
20003 -d, --debug don't remove temporary files
20004 --recheck update $as_me by reconfiguring in the same conditions
20005 --file=FILE[:TEMPLATE]
20006 instantiate the configuration file FILE
20007 --header=FILE[:TEMPLATE]
20008 instantiate the configuration header FILE
20009
20010 Configuration files:
20011 $config_files
20012
20013 Configuration headers:
20014 $config_headers
20015
20016 Configuration commands:
20017 $config_commands
20018
20019 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libXi/issues>."
20020
20021 _ACEOF
20022 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20023 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20024 ac_cs_version="\\
20025 libXi config.status 1.7.10
20026 configured by $0, generated by GNU Autoconf 2.69,
20027 with options \\"\$ac_cs_config\\"
20028
20029 Copyright (C) 2012 Free Software Foundation, Inc.
20030 This config.status script is free software; the Free Software Foundation
20031 gives unlimited permission to copy, distribute and modify it."
20032
20033 ac_pwd='$ac_pwd'
20034 srcdir='$srcdir'
20035 INSTALL='$INSTALL'
20036 MKDIR_P='$MKDIR_P'
20037 AWK='$AWK'
20038 test -n "\$AWK" || AWK=awk
20039 _ACEOF
20040
20041 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20042 # The default lists apply if the user does not specify any file.
20043 ac_need_defaults=:
20044 while test $# != 0
20045 do
20046 case $1 in
20047 --*=?*)
20048 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20049 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20050 ac_shift=:
20051 ;;
20052 --*=)
20053 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20054 ac_optarg=
20055 ac_shift=:
20056 ;;
20057 *)
20058 ac_option=$1
20059 ac_optarg=$2
20060 ac_shift=shift
20061 ;;
20062 esac
20063
20064 case $ac_option in
20065 # Handling of the options.
20066 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20067 ac_cs_recheck=: ;;
20068 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20069 $as_echo "$ac_cs_version"; exit ;;
20070 --config | --confi | --conf | --con | --co | --c )
20071 $as_echo "$ac_cs_config"; exit ;;
20072 --debug | --debu | --deb | --de | --d | -d )
20073 debug=: ;;
20074 --file | --fil | --fi | --f )
20075 $ac_shift
20076 case $ac_optarg in
20077 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20078 '') as_fn_error $? "missing file argument" ;;
20079 esac
20080 as_fn_append CONFIG_FILES " '$ac_optarg'"
20081 ac_need_defaults=false;;
20082 --header | --heade | --head | --hea )
20083 $ac_shift
20084 case $ac_optarg in
20085 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20086 esac
20087 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20088 ac_need_defaults=false;;
20089 --he | --h)
20090 # Conflict between --help and --header
20091 as_fn_error $? "ambiguous option: \`$1'
20092 Try \`$0 --help' for more information.";;
20093 --help | --hel | -h )
20094 $as_echo "$ac_cs_usage"; exit ;;
20095 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20096 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20097 ac_cs_silent=: ;;
20098
20099 # This is an error.
20100 -*) as_fn_error $? "unrecognized option: \`$1'
20101 Try \`$0 --help' for more information." ;;
20102
20103 *) as_fn_append ac_config_targets " $1"
20104 ac_need_defaults=false ;;
20105
20106 esac
20107 shift
20108 done
20109
20110 ac_configure_extra_args=
20111
20112 if $ac_cs_silent; then
20113 exec 6>/dev/null
20114 ac_configure_extra_args="$ac_configure_extra_args --silent"
20115 fi
20116
20117 _ACEOF
20118 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20119 if \$ac_cs_recheck; then
20120 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20121 shift
20122 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20123 CONFIG_SHELL='$SHELL'
20124 export CONFIG_SHELL
20125 exec "\$@"
20126 fi
20127
20128 _ACEOF
20129 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20130 exec 5>>config.log
20131 {
20132 echo
20133 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20134 ## Running $as_me. ##
20135 _ASBOX
20136 $as_echo "$ac_log"
20137 } >&5
20138
20139 _ACEOF
20140 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20141 #
20142 # INIT-COMMANDS
20143 #
20144 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
20145
20146
20147 # The HP-UX ksh and POSIX shell print the target directory to stdout
20148 # if CDPATH is set.
20149 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20150
20151 sed_quote_subst='$sed_quote_subst'
20152 double_quote_subst='$double_quote_subst'
20153 delay_variable_subst='$delay_variable_subst'
20154 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20155 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20156 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20157 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20158 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20159 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20160 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20161 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20162 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20163 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20164 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20165 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20166 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20167 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20168 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20169 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20170 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20171 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20172 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20173 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20174 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20175 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20176 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20177 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20178 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20179 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20180 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20181 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20182 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20183 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20184 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20185 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20186 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20187 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20188 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20189 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20190 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20191 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20192 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20193 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20194 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20195 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20196 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20197 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20198 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20199 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20200 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20201 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20202 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20203 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20204 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20205 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20206 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20207 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20208 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20209 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20210 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20211 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20212 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"`'
20213 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20214 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20215 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20216 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20217 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20218 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20219 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20220 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20221 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20222 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20223 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20224 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20225 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20226 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20227 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20228 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20229 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20230 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20231 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20232 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20233 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20234 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20235 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20236 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20237 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20238 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20239 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20240 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20241 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20242 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20243 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20244 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20245 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20246 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20247 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20248 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20249 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20250 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20251 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20252 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20253 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20254 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20255 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20256 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20257 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20258 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20259 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20260 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20261 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20262 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20263 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20264 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20265 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20266 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20267 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20268 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20269 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20270 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20271 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20272 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20273 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20274 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20275 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20276 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20277 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20278 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20279 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20280 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20281 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20282 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20283 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20284 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20285 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20286 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20287 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20288 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20289
20290 LTCC='$LTCC'
20291 LTCFLAGS='$LTCFLAGS'
20292 compiler='$compiler_DEFAULT'
20293
20294 # A function that is used when there is no print builtin or printf.
20295 func_fallback_echo ()
20296 {
20297 eval 'cat <<_LTECHO_EOF
20298 \$1
20299 _LTECHO_EOF'
20300 }
20301
20302 # Quote evaled strings.
20303 for var in SHELL \
20304 ECHO \
20305 PATH_SEPARATOR \
20306 SED \
20307 GREP \
20308 EGREP \
20309 FGREP \
20310 LD \
20311 NM \
20312 LN_S \
20313 lt_SP2NL \
20314 lt_NL2SP \
20315 reload_flag \
20316 OBJDUMP \
20317 deplibs_check_method \
20318 file_magic_cmd \
20319 file_magic_glob \
20320 want_nocaseglob \
20321 DLLTOOL \
20322 sharedlib_from_linklib_cmd \
20323 AR \
20324 AR_FLAGS \
20325 archiver_list_spec \
20326 STRIP \
20327 RANLIB \
20328 CC \
20329 CFLAGS \
20330 compiler \
20331 lt_cv_sys_global_symbol_pipe \
20332 lt_cv_sys_global_symbol_to_cdecl \
20333 lt_cv_sys_global_symbol_to_import \
20334 lt_cv_sys_global_symbol_to_c_name_address \
20335 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20336 lt_cv_nm_interface \
20337 nm_file_list_spec \
20338 lt_cv_truncate_bin \
20339 lt_prog_compiler_no_builtin_flag \
20340 lt_prog_compiler_pic \
20341 lt_prog_compiler_wl \
20342 lt_prog_compiler_static \
20343 lt_cv_prog_compiler_c_o \
20344 need_locks \
20345 MANIFEST_TOOL \
20346 DSYMUTIL \
20347 NMEDIT \
20348 LIPO \
20349 OTOOL \
20350 OTOOL64 \
20351 shrext_cmds \
20352 export_dynamic_flag_spec \
20353 whole_archive_flag_spec \
20354 compiler_needs_object \
20355 with_gnu_ld \
20356 allow_undefined_flag \
20357 no_undefined_flag \
20358 hardcode_libdir_flag_spec \
20359 hardcode_libdir_separator \
20360 exclude_expsyms \
20361 include_expsyms \
20362 file_list_spec \
20363 variables_saved_for_relink \
20364 libname_spec \
20365 library_names_spec \
20366 soname_spec \
20367 install_override_mode \
20368 finish_eval \
20369 old_striplib \
20370 striplib; do
20371 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20372 *[\\\\\\\`\\"\\\$]*)
20373 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20374 ;;
20375 *)
20376 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20377 ;;
20378 esac
20379 done
20380
20381 # Double-quote double-evaled strings.
20382 for var in reload_cmds \
20383 old_postinstall_cmds \
20384 old_postuninstall_cmds \
20385 old_archive_cmds \
20386 extract_expsyms_cmds \
20387 old_archive_from_new_cmds \
20388 old_archive_from_expsyms_cmds \
20389 archive_cmds \
20390 archive_expsym_cmds \
20391 module_cmds \
20392 module_expsym_cmds \
20393 export_symbols_cmds \
20394 prelink_cmds \
20395 postlink_cmds \
20396 postinstall_cmds \
20397 postuninstall_cmds \
20398 finish_cmds \
20399 sys_lib_search_path_spec \
20400 configure_time_dlsearch_path \
20401 configure_time_lt_sys_library_path; do
20402 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20403 *[\\\\\\\`\\"\\\$]*)
20404 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20405 ;;
20406 *)
20407 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20408 ;;
20409 esac
20410 done
20411
20412 ac_aux_dir='$ac_aux_dir'
20413
20414 # See if we are running on zsh, and set the options that allow our
20415 # commands through without removal of \ escapes INIT.
20416 if test -n "\${ZSH_VERSION+set}"; then
20417 setopt NO_GLOB_SUBST
20418 fi
20419
20420
20421 PACKAGE='$PACKAGE'
20422 VERSION='$VERSION'
20423 RM='$RM'
20424 ofile='$ofile'
20425
20426
20427
20428
20429 _ACEOF
20430
20431 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20432
20433 # Handling of arguments.
20434 for ac_config_target in $ac_config_targets
20435 do
20436 case $ac_config_target in
20437 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
20438 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20439 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20440 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20441 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20442 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
20443 "specs/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Makefile" ;;
20444 "xi.pc") CONFIG_FILES="$CONFIG_FILES xi.pc" ;;
20445
20446 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20447 esac
20448 done
20449
20450
20451 # If the user did not use the arguments to specify the items to instantiate,
20452 # then the envvar interface is used. Set only those that are not.
20453 # We use the long form for the default assignment because of an extremely
20454 # bizarre bug on SunOS 4.1.3.
20455 if $ac_need_defaults; then
20456 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20457 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20458 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20459 fi
20460
20461 # Have a temporary directory for convenience. Make it in the build tree
20462 # simply because there is no reason against having it here, and in addition,
20463 # creating and moving files from /tmp can sometimes cause problems.
20464 # Hook for its removal unless debugging.
20465 # Note that there is a small window in which the directory will not be cleaned:
20466 # after its creation but before its name has been assigned to `$tmp'.
20467 $debug ||
20468 {
20469 tmp= ac_tmp=
20470 trap 'exit_status=$?
20471 : "${ac_tmp:=$tmp}"
20472 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20473 ' 0
20474 trap 'as_fn_exit 1' 1 2 13 15
20475 }
20476 # Create a (secure) tmp directory for tmp files.
20477
20478 {
20479 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20480 test -d "$tmp"
20481 } ||
20482 {
20483 tmp=./conf$$-$RANDOM
20484 (umask 077 && mkdir "$tmp")
20485 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20486 ac_tmp=$tmp
20487
20488 # Set up the scripts for CONFIG_FILES section.
20489 # No need to generate them if there are no CONFIG_FILES.
20490 # This happens for instance with `./config.status config.h'.
20491 if test -n "$CONFIG_FILES"; then
20492
20493
20494 ac_cr=`echo X | tr X '\015'`
20495 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20496 # But we know of no other shell where ac_cr would be empty at this
20497 # point, so we can use a bashism as a fallback.
20498 if test "x$ac_cr" = x; then
20499 eval ac_cr=\$\'\\r\'
20500 fi
20501 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20502 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20503 ac_cs_awk_cr='\\r'
20504 else
20505 ac_cs_awk_cr=$ac_cr
20506 fi
20507
20508 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20509 _ACEOF
20510
20511
20512 {
20513 echo "cat >conf$$subs.awk <<_ACEOF" &&
20514 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20515 echo "_ACEOF"
20516 } >conf$$subs.sh ||
20517 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20518 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20519 ac_delim='%!_!# '
20520 for ac_last_try in false false false false false :; do
20521 . ./conf$$subs.sh ||
20522 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20523
20524 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20525 if test $ac_delim_n = $ac_delim_num; then
20526 break
20527 elif $ac_last_try; then
20528 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20529 else
20530 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20531 fi
20532 done
20533 rm -f conf$$subs.sh
20534
20535 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20536 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20537 _ACEOF
20538 sed -n '
20539 h
20540 s/^/S["/; s/!.*/"]=/
20541 p
20542 g
20543 s/^[^!]*!//
20544 :repl
20545 t repl
20546 s/'"$ac_delim"'$//
20547 t delim
20548 :nl
20549 h
20550 s/\(.\{148\}\)..*/\1/
20551 t more1
20552 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20553 p
20554 n
20555 b repl
20556 :more1
20557 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20558 p
20559 g
20560 s/.\{148\}//
20561 t nl
20562 :delim
20563 h
20564 s/\(.\{148\}\)..*/\1/
20565 t more2
20566 s/["\\]/\\&/g; s/^/"/; s/$/"/
20567 p
20568 b
20569 :more2
20570 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20571 p
20572 g
20573 s/.\{148\}//
20574 t delim
20575 ' <conf$$subs.awk | sed '
20576 /^[^""]/{
20577 N
20578 s/\n//
20579 }
20580 ' >>$CONFIG_STATUS || ac_write_fail=1
20581 rm -f conf$$subs.awk
20582 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20583 _ACAWK
20584 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20585 for (key in S) S_is_set[key] = 1
20586 FS = ""
20587
20588 }
20589 {
20590 line = $ 0
20591 nfields = split(line, field, "@")
20592 substed = 0
20593 len = length(field[1])
20594 for (i = 2; i < nfields; i++) {
20595 key = field[i]
20596 keylen = length(key)
20597 if (S_is_set[key]) {
20598 value = S[key]
20599 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20600 len += length(value) + length(field[++i])
20601 substed = 1
20602 } else
20603 len += 1 + keylen
20604 }
20605
20606 print line
20607 }
20608
20609 _ACAWK
20610 _ACEOF
20611 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20612 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20613 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20614 else
20615 cat
20616 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20617 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20618 _ACEOF
20619
20620 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20621 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20622 # trailing colons and then remove the whole line if VPATH becomes empty
20623 # (actually we leave an empty line to preserve line numbers).
20624 if test "x$srcdir" = x.; then
20625 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20626 h
20627 s///
20628 s/^/:/
20629 s/[ ]*$/:/
20630 s/:\$(srcdir):/:/g
20631 s/:\${srcdir}:/:/g
20632 s/:@srcdir@:/:/g
20633 s/^:*//
20634 s/:*$//
20635 x
20636 s/\(=[ ]*\).*/\1/
20637 G
20638 s/\n//
20639 s/^[^=]*=[ ]*$//
20640 }'
20641 fi
20642
20643 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20644 fi # test -n "$CONFIG_FILES"
20645
20646 # Set up the scripts for CONFIG_HEADERS section.
20647 # No need to generate them if there are no CONFIG_HEADERS.
20648 # This happens for instance with `./config.status Makefile'.
20649 if test -n "$CONFIG_HEADERS"; then
20650 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20651 BEGIN {
20652 _ACEOF
20653
20654 # Transform confdefs.h into an awk script `defines.awk', embedded as
20655 # here-document in config.status, that substitutes the proper values into
20656 # config.h.in to produce config.h.
20657
20658 # Create a delimiter string that does not exist in confdefs.h, to ease
20659 # handling of long lines.
20660 ac_delim='%!_!# '
20661 for ac_last_try in false false :; do
20662 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20663 if test -z "$ac_tt"; then
20664 break
20665 elif $ac_last_try; then
20666 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20667 else
20668 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20669 fi
20670 done
20671
20672 # For the awk script, D is an array of macro values keyed by name,
20673 # likewise P contains macro parameters if any. Preserve backslash
20674 # newline sequences.
20675
20676 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20677 sed -n '
20678 s/.\{148\}/&'"$ac_delim"'/g
20679 t rset
20680 :rset
20681 s/^[ ]*#[ ]*define[ ][ ]*/ /
20682 t def
20683 d
20684 :def
20685 s/\\$//
20686 t bsnl
20687 s/["\\]/\\&/g
20688 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20689 D["\1"]=" \3"/p
20690 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20691 d
20692 :bsnl
20693 s/["\\]/\\&/g
20694 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20695 D["\1"]=" \3\\\\\\n"\\/p
20696 t cont
20697 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20698 t cont
20699 d
20700 :cont
20701 n
20702 s/.\{148\}/&'"$ac_delim"'/g
20703 t clear
20704 :clear
20705 s/\\$//
20706 t bsnlc
20707 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20708 d
20709 :bsnlc
20710 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20711 b cont
20712 ' <confdefs.h | sed '
20713 s/'"$ac_delim"'/"\\\
20714 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20715
20716 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20717 for (key in D) D_is_set[key] = 1
20718 FS = ""
20719 }
20720 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20721 line = \$ 0
20722 split(line, arg, " ")
20723 if (arg[1] == "#") {
20724 defundef = arg[2]
20725 mac1 = arg[3]
20726 } else {
20727 defundef = substr(arg[1], 2)
20728 mac1 = arg[2]
20729 }
20730 split(mac1, mac2, "(") #)
20731 macro = mac2[1]
20732 prefix = substr(line, 1, index(line, defundef) - 1)
20733 if (D_is_set[macro]) {
20734 # Preserve the white space surrounding the "#".
20735 print prefix "define", macro P[macro] D[macro]
20736 next
20737 } else {
20738 # Replace #undef with comments. This is necessary, for example,
20739 # in the case of _POSIX_SOURCE, which is predefined and required
20740 # on some systems where configure will not decide to define it.
20741 if (defundef == "undef") {
20742 print "/*", prefix defundef, macro, "*/"
20743 next
20744 }
20745 }
20746 }
20747 { print }
20748 _ACAWK
20749 _ACEOF
20750 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20751 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20752 fi # test -n "$CONFIG_HEADERS"
20753
20754
20755 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20756 shift
20757 for ac_tag
20758 do
20759 case $ac_tag in
20760 :[FHLC]) ac_mode=$ac_tag; continue;;
20761 esac
20762 case $ac_mode$ac_tag in
20763 :[FHL]*:*);;
20764 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20765 :[FH]-) ac_tag=-:-;;
20766 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20767 esac
20768 ac_save_IFS=$IFS
20769 IFS=:
20770 set x $ac_tag
20771 IFS=$ac_save_IFS
20772 shift
20773 ac_file=$1
20774 shift
20775
20776 case $ac_mode in
20777 :L) ac_source=$1;;
20778 :[FH])
20779 ac_file_inputs=
20780 for ac_f
20781 do
20782 case $ac_f in
20783 -) ac_f="$ac_tmp/stdin";;
20784 *) # Look for the file first in the build tree, then in the source tree
20785 # (if the path is not absolute). The absolute path cannot be DOS-style,
20786 # because $ac_f cannot contain `:'.
20787 test -f "$ac_f" ||
20788 case $ac_f in
20789 [\\/$]*) false;;
20790 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20791 esac ||
20792 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20793 esac
20794 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20795 as_fn_append ac_file_inputs " '$ac_f'"
20796 done
20797
20798 # Let's still pretend it is `configure' which instantiates (i.e., don't
20799 # use $as_me), people would be surprised to read:
20800 # /* config.h. Generated by config.status. */
20801 configure_input='Generated from '`
20802 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20803 `' by configure.'
20804 if test x"$ac_file" != x-; then
20805 configure_input="$ac_file. $configure_input"
20806 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20807 $as_echo "$as_me: creating $ac_file" >&6;}
20808 fi
20809 # Neutralize special characters interpreted by sed in replacement strings.
20810 case $configure_input in #(
20811 *\&* | *\|* | *\\* )
20812 ac_sed_conf_input=`$as_echo "$configure_input" |
20813 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20814 *) ac_sed_conf_input=$configure_input;;
20815 esac
20816
20817 case $ac_tag in
20818 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20819 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20820 esac
20821 ;;
20822 esac
20823
20824 ac_dir=`$as_dirname -- "$ac_file" ||
20825 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20826 X"$ac_file" : 'X\(//\)[^/]' \| \
20827 X"$ac_file" : 'X\(//\)$' \| \
20828 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20829 $as_echo X"$ac_file" |
20830 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20831 s//\1/
20832 q
20833 }
20834 /^X\(\/\/\)[^/].*/{
20835 s//\1/
20836 q
20837 }
20838 /^X\(\/\/\)$/{
20839 s//\1/
20840 q
20841 }
20842 /^X\(\/\).*/{
20843 s//\1/
20844 q
20845 }
20846 s/.*/./; q'`
20847 as_dir="$ac_dir"; as_fn_mkdir_p
20848 ac_builddir=.
20849
20850 case "$ac_dir" in
20851 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20852 *)
20853 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20854 # A ".." for each directory in $ac_dir_suffix.
20855 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20856 case $ac_top_builddir_sub in
20857 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20858 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20859 esac ;;
20860 esac
20861 ac_abs_top_builddir=$ac_pwd
20862 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20863 # for backward compatibility:
20864 ac_top_builddir=$ac_top_build_prefix
20865
20866 case $srcdir in
20867 .) # We are building in place.
20868 ac_srcdir=.
20869 ac_top_srcdir=$ac_top_builddir_sub
20870 ac_abs_top_srcdir=$ac_pwd ;;
20871 [\\/]* | ?:[\\/]* ) # Absolute name.
20872 ac_srcdir=$srcdir$ac_dir_suffix;
20873 ac_top_srcdir=$srcdir
20874 ac_abs_top_srcdir=$srcdir ;;
20875 *) # Relative name.
20876 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20877 ac_top_srcdir=$ac_top_build_prefix$srcdir
20878 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20879 esac
20880 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20881
20882
20883 case $ac_mode in
20884 :F)
20885 #
20886 # CONFIG_FILE
20887 #
20888
20889 case $INSTALL in
20890 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20891 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20892 esac
20893 ac_MKDIR_P=$MKDIR_P
20894 case $MKDIR_P in
20895 [\\/$]* | ?:[\\/]* ) ;;
20896 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20897 esac
20898 _ACEOF
20899
20900 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20901 # If the template does not know about datarootdir, expand it.
20902 # FIXME: This hack should be removed a few years after 2.60.
20903 ac_datarootdir_hack=; ac_datarootdir_seen=
20904 ac_sed_dataroot='
20905 /datarootdir/ {
20906 p
20907 q
20908 }
20909 /@datadir@/p
20910 /@docdir@/p
20911 /@infodir@/p
20912 /@localedir@/p
20913 /@mandir@/p'
20914 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20915 *datarootdir*) ac_datarootdir_seen=yes;;
20916 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20918 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20919 _ACEOF
20920 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20921 ac_datarootdir_hack='
20922 s&@datadir@&$datadir&g
20923 s&@docdir@&$docdir&g
20924 s&@infodir@&$infodir&g
20925 s&@localedir@&$localedir&g
20926 s&@mandir@&$mandir&g
20927 s&\\\${datarootdir}&$datarootdir&g' ;;
20928 esac
20929 _ACEOF
20930
20931 # Neutralize VPATH when `$srcdir' = `.'.
20932 # Shell code in configure.ac might set extrasub.
20933 # FIXME: do we really want to maintain this feature?
20934 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20935 ac_sed_extra="$ac_vpsub
20936 $extrasub
20937 _ACEOF
20938 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20939 :t
20940 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20941 s|@configure_input@|$ac_sed_conf_input|;t t
20942 s&@top_builddir@&$ac_top_builddir_sub&;t t
20943 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20944 s&@srcdir@&$ac_srcdir&;t t
20945 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20946 s&@top_srcdir@&$ac_top_srcdir&;t t
20947 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20948 s&@builddir@&$ac_builddir&;t t
20949 s&@abs_builddir@&$ac_abs_builddir&;t t
20950 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20951 s&@INSTALL@&$ac_INSTALL&;t t
20952 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20953 $ac_datarootdir_hack
20954 "
20955 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20956 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20957
20958 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20959 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20960 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20961 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20963 which seems to be undefined. Please make sure it is defined" >&5
20964 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20965 which seems to be undefined. Please make sure it is defined" >&2;}
20966
20967 rm -f "$ac_tmp/stdin"
20968 case $ac_file in
20969 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20970 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20971 esac \
20972 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20973 ;;
20974 :H)
20975 #
20976 # CONFIG_HEADER
20977 #
20978 if test x"$ac_file" != x-; then
20979 {
20980 $as_echo "/* $configure_input */" \
20981 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20982 } >"$ac_tmp/config.h" \
20983 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20984 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20985 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20986 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20987 else
20988 rm -f "$ac_file"
20989 mv "$ac_tmp/config.h" "$ac_file" \
20990 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20991 fi
20992 else
20993 $as_echo "/* $configure_input */" \
20994 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20995 || as_fn_error $? "could not create -" "$LINENO" 5
20996 fi
20997 # Compute "$ac_file"'s index in $config_headers.
20998 _am_arg="$ac_file"
20999 _am_stamp_count=1
21000 for _am_header in $config_headers :; do
21001 case $_am_header in
21002 $_am_arg | $_am_arg:* )
21003 break ;;
21004 * )
21005 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21006 esac
21007 done
21008 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21009 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21010 X"$_am_arg" : 'X\(//\)[^/]' \| \
21011 X"$_am_arg" : 'X\(//\)$' \| \
21012 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21013 $as_echo X"$_am_arg" |
21014 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21015 s//\1/
21016 q
21017 }
21018 /^X\(\/\/\)[^/].*/{
21019 s//\1/
21020 q
21021 }
21022 /^X\(\/\/\)$/{
21023 s//\1/
21024 q
21025 }
21026 /^X\(\/\).*/{
21027 s//\1/
21028 q
21029 }
21030 s/.*/./; q'`/stamp-h$_am_stamp_count
21031 ;;
21032
21033 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21034 $as_echo "$as_me: executing $ac_file commands" >&6;}
21035 ;;
21036 esac
21037
21038
21039 case $ac_file$ac_mode in
21040 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21041 # Older Autoconf quotes --file arguments for eval, but not when files
21042 # are listed without --file. Let's play safe and only enable the eval
21043 # if we detect the quoting.
21044 # TODO: see whether this extra hack can be removed once we start
21045 # requiring Autoconf 2.70 or later.
21046 case $CONFIG_FILES in #(
21047 *\'*) :
21048 eval set x "$CONFIG_FILES" ;; #(
21049 *) :
21050 set x $CONFIG_FILES ;; #(
21051 *) :
21052 ;;
21053 esac
21054 shift
21055 # Used to flag and report bootstrapping failures.
21056 am_rc=0
21057 for am_mf
21058 do
21059 # Strip MF so we end up with the name of the file.
21060 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
21061 # Check whether this is an Automake generated Makefile which includes
21062 # dependency-tracking related rules and includes.
21063 # Grep'ing the whole file directly is not great: AIX grep has a line
21064 # limit of 2048, but all sed's we know have understand at least 4000.
21065 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
21066 || continue
21067 am_dirpart=`$as_dirname -- "$am_mf" ||
21068 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21069 X"$am_mf" : 'X\(//\)[^/]' \| \
21070 X"$am_mf" : 'X\(//\)$' \| \
21071 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21072 $as_echo X"$am_mf" |
21073 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21074 s//\1/
21075 q
21076 }
21077 /^X\(\/\/\)[^/].*/{
21078 s//\1/
21079 q
21080 }
21081 /^X\(\/\/\)$/{
21082 s//\1/
21083 q
21084 }
21085 /^X\(\/\).*/{
21086 s//\1/
21087 q
21088 }
21089 s/.*/./; q'`
21090 am_filepart=`$as_basename -- "$am_mf" ||
21091 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
21092 X"$am_mf" : 'X\(//\)$' \| \
21093 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21094 $as_echo X/"$am_mf" |
21095 sed '/^.*\/\([^/][^/]*\)\/*$/{
21096 s//\1/
21097 q
21098 }
21099 /^X\/\(\/\/\)$/{
21100 s//\1/
21101 q
21102 }
21103 /^X\/\(\/\).*/{
21104 s//\1/
21105 q
21106 }
21107 s/.*/./; q'`
21108 { echo "$as_me:$LINENO: cd "$am_dirpart" \
21109 && sed -e '/# am--include-marker/d' "$am_filepart" \
21110 | $MAKE -f - am--depfiles" >&5
21111 (cd "$am_dirpart" \
21112 && sed -e '/# am--include-marker/d' "$am_filepart" \
21113 | $MAKE -f - am--depfiles) >&5 2>&5
21114 ac_status=$?
21115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21116 (exit $ac_status); } || am_rc=$?
21117 done
21118 if test $am_rc -ne 0; then
21119 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21120 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21121 as_fn_error $? "Something went wrong bootstrapping makefile fragments
21122 for automatic dependency tracking. Try re-running configure with the
21123 '--disable-dependency-tracking' option to at least be able to build
21124 the package (albeit without support for automatic dependency tracking).
21125 See \`config.log' for more details" "$LINENO" 5; }
21126 fi
21127 { am_dirpart=; unset am_dirpart;}
21128 { am_filepart=; unset am_filepart;}
21129 { am_mf=; unset am_mf;}
21130 { am_rc=; unset am_rc;}
21131 rm -f conftest-deps.mk
21132 }
21133 ;;
21134 "libtool":C)
21135
21136 # See if we are running on zsh, and set the options that allow our
21137 # commands through without removal of \ escapes.
21138 if test -n "${ZSH_VERSION+set}"; then
21139 setopt NO_GLOB_SUBST
21140 fi
21141
21142 cfgfile=${ofile}T
21143 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21144 $RM "$cfgfile"
21145
21146 cat <<_LT_EOF >> "$cfgfile"
21147 #! $SHELL
21148 # Generated automatically by $as_me ($PACKAGE) $VERSION
21149 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21150 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21151
21152 # Provide generalized library-building support services.
21153 # Written by Gordon Matzigkeit, 1996
21154
21155 # Copyright (C) 2014 Free Software Foundation, Inc.
21156 # This is free software; see the source for copying conditions. There is NO
21157 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21158
21159 # GNU Libtool is free software; you can redistribute it and/or modify
21160 # it under the terms of the GNU General Public License as published by
21161 # the Free Software Foundation; either version 2 of of the License, or
21162 # (at your option) any later version.
21163 #
21164 # As a special exception to the GNU General Public License, if you
21165 # distribute this file as part of a program or library that is built
21166 # using GNU Libtool, you may include this file under the same
21167 # distribution terms that you use for the rest of that program.
21168 #
21169 # GNU Libtool is distributed in the hope that it will be useful, but
21170 # WITHOUT ANY WARRANTY; without even the implied warranty of
21171 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21172 # GNU General Public License for more details.
21173 #
21174 # You should have received a copy of the GNU General Public License
21175 # along with this program. If not, see <http://www.gnu.org/licenses/>.
21176
21177
21178 # The names of the tagged configurations supported by this script.
21179 available_tags=''
21180
21181 # Configured defaults for sys_lib_dlsearch_path munging.
21182 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21183
21184 # ### BEGIN LIBTOOL CONFIG
21185
21186 # Which release of libtool.m4 was used?
21187 macro_version=$macro_version
21188 macro_revision=$macro_revision
21189
21190 # Whether or not to build shared libraries.
21191 build_libtool_libs=$enable_shared
21192
21193 # Whether or not to build static libraries.
21194 build_old_libs=$enable_static
21195
21196 # What type of objects to build.
21197 pic_mode=$pic_mode
21198
21199 # Whether or not to optimize for fast installation.
21200 fast_install=$enable_fast_install
21201
21202 # Shared archive member basename,for filename based shared library versioning on AIX.
21203 shared_archive_member_spec=$shared_archive_member_spec
21204
21205 # Shell to use when invoking shell scripts.
21206 SHELL=$lt_SHELL
21207
21208 # An echo program that protects backslashes.
21209 ECHO=$lt_ECHO
21210
21211 # The PATH separator for the build system.
21212 PATH_SEPARATOR=$lt_PATH_SEPARATOR
21213
21214 # The host system.
21215 host_alias=$host_alias
21216 host=$host
21217 host_os=$host_os
21218
21219 # The build system.
21220 build_alias=$build_alias
21221 build=$build
21222 build_os=$build_os
21223
21224 # A sed program that does not truncate output.
21225 SED=$lt_SED
21226
21227 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21228 Xsed="\$SED -e 1s/^X//"
21229
21230 # A grep program that handles long lines.
21231 GREP=$lt_GREP
21232
21233 # An ERE matcher.
21234 EGREP=$lt_EGREP
21235
21236 # A literal string matcher.
21237 FGREP=$lt_FGREP
21238
21239 # A BSD- or MS-compatible name lister.
21240 NM=$lt_NM
21241
21242 # Whether we need soft or hard links.
21243 LN_S=$lt_LN_S
21244
21245 # What is the maximum length of a command?
21246 max_cmd_len=$max_cmd_len
21247
21248 # Object file suffix (normally "o").
21249 objext=$ac_objext
21250
21251 # Executable file suffix (normally "").
21252 exeext=$exeext
21253
21254 # whether the shell understands "unset".
21255 lt_unset=$lt_unset
21256
21257 # turn spaces into newlines.
21258 SP2NL=$lt_lt_SP2NL
21259
21260 # turn newlines into spaces.
21261 NL2SP=$lt_lt_NL2SP
21262
21263 # convert \$build file names to \$host format.
21264 to_host_file_cmd=$lt_cv_to_host_file_cmd
21265
21266 # convert \$build files to toolchain format.
21267 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21268
21269 # An object symbol dumper.
21270 OBJDUMP=$lt_OBJDUMP
21271
21272 # Method to check whether dependent libraries are shared objects.
21273 deplibs_check_method=$lt_deplibs_check_method
21274
21275 # Command to use when deplibs_check_method = "file_magic".
21276 file_magic_cmd=$lt_file_magic_cmd
21277
21278 # How to find potential files when deplibs_check_method = "file_magic".
21279 file_magic_glob=$lt_file_magic_glob
21280
21281 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21282 want_nocaseglob=$lt_want_nocaseglob
21283
21284 # DLL creation program.
21285 DLLTOOL=$lt_DLLTOOL
21286
21287 # Command to associate shared and link libraries.
21288 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21289
21290 # The archiver.
21291 AR=$lt_AR
21292
21293 # Flags to create an archive.
21294 AR_FLAGS=$lt_AR_FLAGS
21295
21296 # How to feed a file listing to the archiver.
21297 archiver_list_spec=$lt_archiver_list_spec
21298
21299 # A symbol stripping program.
21300 STRIP=$lt_STRIP
21301
21302 # Commands used to install an old-style archive.
21303 RANLIB=$lt_RANLIB
21304 old_postinstall_cmds=$lt_old_postinstall_cmds
21305 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21306
21307 # Whether to use a lock for old archive extraction.
21308 lock_old_archive_extraction=$lock_old_archive_extraction
21309
21310 # A C compiler.
21311 LTCC=$lt_CC
21312
21313 # LTCC compiler flags.
21314 LTCFLAGS=$lt_CFLAGS
21315
21316 # Take the output of nm and produce a listing of raw symbols and C names.
21317 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21318
21319 # Transform the output of nm in a proper C declaration.
21320 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21321
21322 # Transform the output of nm into a list of symbols to manually relocate.
21323 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
21324
21325 # Transform the output of nm in a C name address pair.
21326 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21327
21328 # Transform the output of nm in a C name address pair when lib prefix is needed.
21329 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21330
21331 # The name lister interface.
21332 nm_interface=$lt_lt_cv_nm_interface
21333
21334 # Specify filename containing input files for \$NM.
21335 nm_file_list_spec=$lt_nm_file_list_spec
21336
21337 # The root where to search for dependent libraries,and where our libraries should be installed.
21338 lt_sysroot=$lt_sysroot
21339
21340 # Command to truncate a binary pipe.
21341 lt_truncate_bin=$lt_lt_cv_truncate_bin
21342
21343 # The name of the directory that contains temporary libtool files.
21344 objdir=$objdir
21345
21346 # Used to examine libraries when file_magic_cmd begins with "file".
21347 MAGIC_CMD=$MAGIC_CMD
21348
21349 # Must we lock files when doing compilation?
21350 need_locks=$lt_need_locks
21351
21352 # Manifest tool.
21353 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21354
21355 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21356 DSYMUTIL=$lt_DSYMUTIL
21357
21358 # Tool to change global to local symbols on Mac OS X.
21359 NMEDIT=$lt_NMEDIT
21360
21361 # Tool to manipulate fat objects and archives on Mac OS X.
21362 LIPO=$lt_LIPO
21363
21364 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21365 OTOOL=$lt_OTOOL
21366
21367 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21368 OTOOL64=$lt_OTOOL64
21369
21370 # Old archive suffix (normally "a").
21371 libext=$libext
21372
21373 # Shared library suffix (normally ".so").
21374 shrext_cmds=$lt_shrext_cmds
21375
21376 # The commands to extract the exported symbol list from a shared archive.
21377 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21378
21379 # Variables whose values should be saved in libtool wrapper scripts and
21380 # restored at link time.
21381 variables_saved_for_relink=$lt_variables_saved_for_relink
21382
21383 # Do we need the "lib" prefix for modules?
21384 need_lib_prefix=$need_lib_prefix
21385
21386 # Do we need a version for libraries?
21387 need_version=$need_version
21388
21389 # Library versioning type.
21390 version_type=$version_type
21391
21392 # Shared library runtime path variable.
21393 runpath_var=$runpath_var
21394
21395 # Shared library path variable.
21396 shlibpath_var=$shlibpath_var
21397
21398 # Is shlibpath searched before the hard-coded library search path?
21399 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21400
21401 # Format of library name prefix.
21402 libname_spec=$lt_libname_spec
21403
21404 # List of archive names. First name is the real one, the rest are links.
21405 # The last name is the one that the linker finds with -lNAME
21406 library_names_spec=$lt_library_names_spec
21407
21408 # The coded name of the library, if different from the real name.
21409 soname_spec=$lt_soname_spec
21410
21411 # Permission mode override for installation of shared libraries.
21412 install_override_mode=$lt_install_override_mode
21413
21414 # Command to use after installation of a shared archive.
21415 postinstall_cmds=$lt_postinstall_cmds
21416
21417 # Command to use after uninstallation of a shared archive.
21418 postuninstall_cmds=$lt_postuninstall_cmds
21419
21420 # Commands used to finish a libtool library installation in a directory.
21421 finish_cmds=$lt_finish_cmds
21422
21423 # As "finish_cmds", except a single script fragment to be evaled but
21424 # not shown.
21425 finish_eval=$lt_finish_eval
21426
21427 # Whether we should hardcode library paths into libraries.
21428 hardcode_into_libs=$hardcode_into_libs
21429
21430 # Compile-time system search path for libraries.
21431 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21432
21433 # Detected run-time system search path for libraries.
21434 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
21435
21436 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
21437 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
21438
21439 # Whether dlopen is supported.
21440 dlopen_support=$enable_dlopen
21441
21442 # Whether dlopen of programs is supported.
21443 dlopen_self=$enable_dlopen_self
21444
21445 # Whether dlopen of statically linked programs is supported.
21446 dlopen_self_static=$enable_dlopen_self_static
21447
21448 # Commands to strip libraries.
21449 old_striplib=$lt_old_striplib
21450 striplib=$lt_striplib
21451
21452
21453 # The linker used to build libraries.
21454 LD=$lt_LD
21455
21456 # How to create reloadable object files.
21457 reload_flag=$lt_reload_flag
21458 reload_cmds=$lt_reload_cmds
21459
21460 # Commands used to build an old-style archive.
21461 old_archive_cmds=$lt_old_archive_cmds
21462
21463 # A language specific compiler.
21464 CC=$lt_compiler
21465
21466 # Is the compiler the GNU compiler?
21467 with_gcc=$GCC
21468
21469 # Compiler flag to turn off builtin functions.
21470 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21471
21472 # Additional compiler flags for building library objects.
21473 pic_flag=$lt_lt_prog_compiler_pic
21474
21475 # How to pass a linker flag through the compiler.
21476 wl=$lt_lt_prog_compiler_wl
21477
21478 # Compiler flag to prevent dynamic linking.
21479 link_static_flag=$lt_lt_prog_compiler_static
21480
21481 # Does compiler simultaneously support -c and -o options?
21482 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21483
21484 # Whether or not to add -lc for building shared libraries.
21485 build_libtool_need_lc=$archive_cmds_need_lc
21486
21487 # Whether or not to disallow shared libs when runtime libs are static.
21488 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21489
21490 # Compiler flag to allow reflexive dlopens.
21491 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21492
21493 # Compiler flag to generate shared objects directly from archives.
21494 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21495
21496 # Whether the compiler copes with passing no objects directly.
21497 compiler_needs_object=$lt_compiler_needs_object
21498
21499 # Create an old-style archive from a shared archive.
21500 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21501
21502 # Create a temporary old-style archive to link instead of a shared archive.
21503 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21504
21505 # Commands used to build a shared archive.
21506 archive_cmds=$lt_archive_cmds
21507 archive_expsym_cmds=$lt_archive_expsym_cmds
21508
21509 # Commands used to build a loadable module if different from building
21510 # a shared archive.
21511 module_cmds=$lt_module_cmds
21512 module_expsym_cmds=$lt_module_expsym_cmds
21513
21514 # Whether we are building with GNU ld or not.
21515 with_gnu_ld=$lt_with_gnu_ld
21516
21517 # Flag that allows shared libraries with undefined symbols to be built.
21518 allow_undefined_flag=$lt_allow_undefined_flag
21519
21520 # Flag that enforces no undefined symbols.
21521 no_undefined_flag=$lt_no_undefined_flag
21522
21523 # Flag to hardcode \$libdir into a binary during linking.
21524 # This must work even if \$libdir does not exist
21525 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21526
21527 # Whether we need a single "-rpath" flag with a separated argument.
21528 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21529
21530 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21531 # DIR into the resulting binary.
21532 hardcode_direct=$hardcode_direct
21533
21534 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21535 # DIR into the resulting binary and the resulting library dependency is
21536 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
21537 # library is relocated.
21538 hardcode_direct_absolute=$hardcode_direct_absolute
21539
21540 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21541 # into the resulting binary.
21542 hardcode_minus_L=$hardcode_minus_L
21543
21544 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21545 # into the resulting binary.
21546 hardcode_shlibpath_var=$hardcode_shlibpath_var
21547
21548 # Set to "yes" if building a shared library automatically hardcodes DIR
21549 # into the library and all subsequent libraries and executables linked
21550 # against it.
21551 hardcode_automatic=$hardcode_automatic
21552
21553 # Set to yes if linker adds runtime paths of dependent libraries
21554 # to runtime path list.
21555 inherit_rpath=$inherit_rpath
21556
21557 # Whether libtool must link a program against all its dependency libraries.
21558 link_all_deplibs=$link_all_deplibs
21559
21560 # Set to "yes" if exported symbols are required.
21561 always_export_symbols=$always_export_symbols
21562
21563 # The commands to list exported symbols.
21564 export_symbols_cmds=$lt_export_symbols_cmds
21565
21566 # Symbols that should not be listed in the preloaded symbols.
21567 exclude_expsyms=$lt_exclude_expsyms
21568
21569 # Symbols that must always be exported.
21570 include_expsyms=$lt_include_expsyms
21571
21572 # Commands necessary for linking programs (against libraries) with templates.
21573 prelink_cmds=$lt_prelink_cmds
21574
21575 # Commands necessary for finishing linking programs.
21576 postlink_cmds=$lt_postlink_cmds
21577
21578 # Specify filename containing input files.
21579 file_list_spec=$lt_file_list_spec
21580
21581 # How to hardcode a shared library path into an executable.
21582 hardcode_action=$hardcode_action
21583
21584 # ### END LIBTOOL CONFIG
21585
21586 _LT_EOF
21587
21588 cat <<'_LT_EOF' >> "$cfgfile"
21589
21590 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
21591
21592 # func_munge_path_list VARIABLE PATH
21593 # -----------------------------------
21594 # VARIABLE is name of variable containing _space_ separated list of
21595 # directories to be munged by the contents of PATH, which is string
21596 # having a format:
21597 # "DIR[:DIR]:"
21598 # string "DIR[ DIR]" will be prepended to VARIABLE
21599 # ":DIR[:DIR]"
21600 # string "DIR[ DIR]" will be appended to VARIABLE
21601 # "DIRP[:DIRP]::[DIRA:]DIRA"
21602 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
21603 # "DIRA[ DIRA]" will be appended to VARIABLE
21604 # "DIR[:DIR]"
21605 # VARIABLE will be replaced by "DIR[ DIR]"
21606 func_munge_path_list ()
21607 {
21608 case x$2 in
21609 x)
21610 ;;
21611 *:)
21612 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
21613 ;;
21614 x:*)
21615 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
21616 ;;
21617 *::*)
21618 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
21619 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
21620 ;;
21621 *)
21622 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
21623 ;;
21624 esac
21625 }
21626
21627
21628 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
21629 func_cc_basename ()
21630 {
21631 for cc_temp in $*""; do
21632 case $cc_temp in
21633 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21634 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21635 \-*) ;;
21636 *) break;;
21637 esac
21638 done
21639 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
21640 }
21641
21642
21643 # ### END FUNCTIONS SHARED WITH CONFIGURE
21644
21645 _LT_EOF
21646
21647 case $host_os in
21648 aix3*)
21649 cat <<\_LT_EOF >> "$cfgfile"
21650 # AIX sometimes has problems with the GCC collect2 program. For some
21651 # reason, if we set the COLLECT_NAMES environment variable, the problems
21652 # vanish in a puff of smoke.
21653 if test set != "${COLLECT_NAMES+set}"; then
21654 COLLECT_NAMES=
21655 export COLLECT_NAMES
21656 fi
21657 _LT_EOF
21658 ;;
21659 esac
21660
21661
21662 ltmain=$ac_aux_dir/ltmain.sh
21663
21664
21665 # We use sed instead of cat because bash on DJGPP gets confused if
21666 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21667 # text mode, it properly converts lines to CR/LF. This bash problem
21668 # is reportedly fixed, but why not run on old versions too?
21669 sed '$q' "$ltmain" >> "$cfgfile" \
21670 || (rm -f "$cfgfile"; exit 1)
21671
21672 mv -f "$cfgfile" "$ofile" ||
21673 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21674 chmod +x "$ofile"
21675
21676 ;;
21677
21678 esac
21679 done # for ac_tag
21680
21681
21682 as_fn_exit 0
21683 _ACEOF
21684 ac_clean_files=$ac_clean_files_save
21685
21686 test $ac_write_fail = 0 ||
21687 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21688
21689
21690 # configure is writing to config.log, and then calls config.status.
21691 # config.status does its own redirection, appending to config.log.
21692 # Unfortunately, on DOS this fails, as config.log is still kept open
21693 # by configure, so config.status won't be able to write to it; its
21694 # output is simply discarded. So we exec the FD to /dev/null,
21695 # effectively closing config.log, so it can be properly (re)opened and
21696 # appended to by config.status. When coming back to configure, we
21697 # need to make the FD available again.
21698 if test "$no_create" != yes; then
21699 ac_cs_success=:
21700 ac_config_status_args=
21701 test "$silent" = yes &&
21702 ac_config_status_args="$ac_config_status_args --quiet"
21703 exec 5>/dev/null
21704 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21705 exec 5>>config.log
21706 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21707 # would make configure fail if this is the last instruction.
21708 $ac_cs_success || as_fn_exit 1
21709 fi
21710 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21712 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21713 fi
21714
21715