configure revision 1.1.1.16 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libXi 1.8.
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.8'
655 PACKAGE_STRING='libXi 1.8'
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 runstatedir
850 localstatedir
851 sharedstatedir
852 sysconfdir
853 datadir
854 datarootdir
855 libexecdir
856 sbindir
857 bindir
858 program_transform_name
859 prefix
860 exec_prefix
861 PACKAGE_URL
862 PACKAGE_BUGREPORT
863 PACKAGE_STRING
864 PACKAGE_VERSION
865 PACKAGE_TARNAME
866 PACKAGE_NAME
867 PATH_SEPARATOR
868 SHELL
869 am__quote'
870 ac_subst_files=''
871 ac_user_opts='
872 enable_option_checking
873 enable_silent_rules
874 enable_shared
875 enable_static
876 with_pic
877 enable_fast_install
878 with_aix_soname
879 enable_dependency_tracking
880 with_gnu_ld
881 with_sysroot
882 enable_libtool_lock
883 enable_selective_werror
884 enable_strict_compilation
885 enable_docs
886 enable_specs
887 with_xmlto
888 with_fop
889 with_xsltproc
890 with_asciidoc
891 enable_malloc0returnsnull
892 '
893 ac_precious_vars='build_alias
894 host_alias
895 target_alias
896 CC
897 CFLAGS
898 LDFLAGS
899 LIBS
900 CPPFLAGS
901 LT_SYS_LIBRARY_PATH
902 CPP
903 PKG_CONFIG
904 PKG_CONFIG_PATH
905 PKG_CONFIG_LIBDIR
906 XMLTO
907 FOP
908 XSLTPROC
909 ASCIIDOC
910 XI_CFLAGS
911 XI_LIBS
912 XFIXES_CFLAGS
913 XFIXES_LIBS'
914
915
916 # Initialize some variables set by options.
917 ac_init_help=
918 ac_init_version=false
919 ac_unrecognized_opts=
920 ac_unrecognized_sep=
921 # The variables have the same names as the options, with
922 # dashes changed to underlines.
923 cache_file=/dev/null
924 exec_prefix=NONE
925 no_create=
926 no_recursion=
927 prefix=NONE
928 program_prefix=NONE
929 program_suffix=NONE
930 program_transform_name=s,x,x,
931 silent=
932 site=
933 srcdir=
934 verbose=
935 x_includes=NONE
936 x_libraries=NONE
937
938 # Installation directory options.
939 # These are left unexpanded so users can "make install exec_prefix=/foo"
940 # and all the variables that are supposed to be based on exec_prefix
941 # by default will actually change.
942 # Use braces instead of parens because sh, perl, etc. also accept them.
943 # (The list follows the same order as the GNU Coding Standards.)
944 bindir='${exec_prefix}/bin'
945 sbindir='${exec_prefix}/sbin'
946 libexecdir='${exec_prefix}/libexec'
947 datarootdir='${prefix}/share'
948 datadir='${datarootdir}'
949 sysconfdir='${prefix}/etc'
950 sharedstatedir='${prefix}/com'
951 localstatedir='${prefix}/var'
952 runstatedir='${localstatedir}/run'
953 includedir='${prefix}/include'
954 oldincludedir='/usr/include'
955 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
956 infodir='${datarootdir}/info'
957 htmldir='${docdir}'
958 dvidir='${docdir}'
959 pdfdir='${docdir}'
960 psdir='${docdir}'
961 libdir='${exec_prefix}/lib'
962 localedir='${datarootdir}/locale'
963 mandir='${datarootdir}/man'
964
965 ac_prev=
966 ac_dashdash=
967 for ac_option
968 do
969 # If the previous option needs an argument, assign it.
970 if test -n "$ac_prev"; then
971 eval $ac_prev=\$ac_option
972 ac_prev=
973 continue
974 fi
975
976 case $ac_option in
977 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
978 *=) ac_optarg= ;;
979 *) ac_optarg=yes ;;
980 esac
981
982 # Accept the important Cygnus configure options, so we can diagnose typos.
983
984 case $ac_dashdash$ac_option in
985 --)
986 ac_dashdash=yes ;;
987
988 -bindir | --bindir | --bindi | --bind | --bin | --bi)
989 ac_prev=bindir ;;
990 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
991 bindir=$ac_optarg ;;
992
993 -build | --build | --buil | --bui | --bu)
994 ac_prev=build_alias ;;
995 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
996 build_alias=$ac_optarg ;;
997
998 -cache-file | --cache-file | --cache-fil | --cache-fi \
999 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1000 ac_prev=cache_file ;;
1001 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1002 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1003 cache_file=$ac_optarg ;;
1004
1005 --config-cache | -C)
1006 cache_file=config.cache ;;
1007
1008 -datadir | --datadir | --datadi | --datad)
1009 ac_prev=datadir ;;
1010 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1011 datadir=$ac_optarg ;;
1012
1013 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1014 | --dataroo | --dataro | --datar)
1015 ac_prev=datarootdir ;;
1016 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1017 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1018 datarootdir=$ac_optarg ;;
1019
1020 -disable-* | --disable-*)
1021 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1022 # Reject names that are not valid shell variable names.
1023 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1024 as_fn_error $? "invalid feature name: $ac_useropt"
1025 ac_useropt_orig=$ac_useropt
1026 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1027 case $ac_user_opts in
1028 *"
1029 "enable_$ac_useropt"
1030 "*) ;;
1031 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1032 ac_unrecognized_sep=', ';;
1033 esac
1034 eval enable_$ac_useropt=no ;;
1035
1036 -docdir | --docdir | --docdi | --doc | --do)
1037 ac_prev=docdir ;;
1038 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1039 docdir=$ac_optarg ;;
1040
1041 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1042 ac_prev=dvidir ;;
1043 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1044 dvidir=$ac_optarg ;;
1045
1046 -enable-* | --enable-*)
1047 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1048 # Reject names that are not valid shell variable names.
1049 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1050 as_fn_error $? "invalid feature name: $ac_useropt"
1051 ac_useropt_orig=$ac_useropt
1052 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1053 case $ac_user_opts in
1054 *"
1055 "enable_$ac_useropt"
1056 "*) ;;
1057 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1058 ac_unrecognized_sep=', ';;
1059 esac
1060 eval enable_$ac_useropt=\$ac_optarg ;;
1061
1062 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1063 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1064 | --exec | --exe | --ex)
1065 ac_prev=exec_prefix ;;
1066 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1067 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1068 | --exec=* | --exe=* | --ex=*)
1069 exec_prefix=$ac_optarg ;;
1070
1071 -gas | --gas | --ga | --g)
1072 # Obsolete; use --with-gas.
1073 with_gas=yes ;;
1074
1075 -help | --help | --hel | --he | -h)
1076 ac_init_help=long ;;
1077 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1078 ac_init_help=recursive ;;
1079 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1080 ac_init_help=short ;;
1081
1082 -host | --host | --hos | --ho)
1083 ac_prev=host_alias ;;
1084 -host=* | --host=* | --hos=* | --ho=*)
1085 host_alias=$ac_optarg ;;
1086
1087 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1088 ac_prev=htmldir ;;
1089 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1090 | --ht=*)
1091 htmldir=$ac_optarg ;;
1092
1093 -includedir | --includedir | --includedi | --included | --include \
1094 | --includ | --inclu | --incl | --inc)
1095 ac_prev=includedir ;;
1096 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1097 | --includ=* | --inclu=* | --incl=* | --inc=*)
1098 includedir=$ac_optarg ;;
1099
1100 -infodir | --infodir | --infodi | --infod | --info | --inf)
1101 ac_prev=infodir ;;
1102 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1103 infodir=$ac_optarg ;;
1104
1105 -libdir | --libdir | --libdi | --libd)
1106 ac_prev=libdir ;;
1107 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1108 libdir=$ac_optarg ;;
1109
1110 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1111 | --libexe | --libex | --libe)
1112 ac_prev=libexecdir ;;
1113 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1114 | --libexe=* | --libex=* | --libe=*)
1115 libexecdir=$ac_optarg ;;
1116
1117 -localedir | --localedir | --localedi | --localed | --locale)
1118 ac_prev=localedir ;;
1119 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1120 localedir=$ac_optarg ;;
1121
1122 -localstatedir | --localstatedir | --localstatedi | --localstated \
1123 | --localstate | --localstat | --localsta | --localst | --locals)
1124 ac_prev=localstatedir ;;
1125 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1126 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1127 localstatedir=$ac_optarg ;;
1128
1129 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1130 ac_prev=mandir ;;
1131 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1132 mandir=$ac_optarg ;;
1133
1134 -nfp | --nfp | --nf)
1135 # Obsolete; use --without-fp.
1136 with_fp=no ;;
1137
1138 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1139 | --no-cr | --no-c | -n)
1140 no_create=yes ;;
1141
1142 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1143 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1144 no_recursion=yes ;;
1145
1146 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1147 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1148 | --oldin | --oldi | --old | --ol | --o)
1149 ac_prev=oldincludedir ;;
1150 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1151 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1152 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1153 oldincludedir=$ac_optarg ;;
1154
1155 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1156 ac_prev=prefix ;;
1157 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1158 prefix=$ac_optarg ;;
1159
1160 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1161 | --program-pre | --program-pr | --program-p)
1162 ac_prev=program_prefix ;;
1163 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1164 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1165 program_prefix=$ac_optarg ;;
1166
1167 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1168 | --program-suf | --program-su | --program-s)
1169 ac_prev=program_suffix ;;
1170 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1171 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1172 program_suffix=$ac_optarg ;;
1173
1174 -program-transform-name | --program-transform-name \
1175 | --program-transform-nam | --program-transform-na \
1176 | --program-transform-n | --program-transform- \
1177 | --program-transform | --program-transfor \
1178 | --program-transfo | --program-transf \
1179 | --program-trans | --program-tran \
1180 | --progr-tra | --program-tr | --program-t)
1181 ac_prev=program_transform_name ;;
1182 -program-transform-name=* | --program-transform-name=* \
1183 | --program-transform-nam=* | --program-transform-na=* \
1184 | --program-transform-n=* | --program-transform-=* \
1185 | --program-transform=* | --program-transfor=* \
1186 | --program-transfo=* | --program-transf=* \
1187 | --program-trans=* | --program-tran=* \
1188 | --progr-tra=* | --program-tr=* | --program-t=*)
1189 program_transform_name=$ac_optarg ;;
1190
1191 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1192 ac_prev=pdfdir ;;
1193 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1194 pdfdir=$ac_optarg ;;
1195
1196 -psdir | --psdir | --psdi | --psd | --ps)
1197 ac_prev=psdir ;;
1198 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1199 psdir=$ac_optarg ;;
1200
1201 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1202 | -silent | --silent | --silen | --sile | --sil)
1203 silent=yes ;;
1204
1205 -runstatedir | --runstatedir | --runstatedi | --runstated \
1206 | --runstate | --runstat | --runsta | --runst | --runs \
1207 | --run | --ru | --r)
1208 ac_prev=runstatedir ;;
1209 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1210 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1211 | --run=* | --ru=* | --r=*)
1212 runstatedir=$ac_optarg ;;
1213
1214 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1215 ac_prev=sbindir ;;
1216 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1217 | --sbi=* | --sb=*)
1218 sbindir=$ac_optarg ;;
1219
1220 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1221 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1222 | --sharedst | --shareds | --shared | --share | --shar \
1223 | --sha | --sh)
1224 ac_prev=sharedstatedir ;;
1225 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1226 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1227 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1228 | --sha=* | --sh=*)
1229 sharedstatedir=$ac_optarg ;;
1230
1231 -site | --site | --sit)
1232 ac_prev=site ;;
1233 -site=* | --site=* | --sit=*)
1234 site=$ac_optarg ;;
1235
1236 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1237 ac_prev=srcdir ;;
1238 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1239 srcdir=$ac_optarg ;;
1240
1241 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1242 | --syscon | --sysco | --sysc | --sys | --sy)
1243 ac_prev=sysconfdir ;;
1244 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1245 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1246 sysconfdir=$ac_optarg ;;
1247
1248 -target | --target | --targe | --targ | --tar | --ta | --t)
1249 ac_prev=target_alias ;;
1250 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1251 target_alias=$ac_optarg ;;
1252
1253 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1254 verbose=yes ;;
1255
1256 -version | --version | --versio | --versi | --vers | -V)
1257 ac_init_version=: ;;
1258
1259 -with-* | --with-*)
1260 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1261 # Reject names that are not valid shell variable names.
1262 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1263 as_fn_error $? "invalid package name: $ac_useropt"
1264 ac_useropt_orig=$ac_useropt
1265 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1266 case $ac_user_opts in
1267 *"
1268 "with_$ac_useropt"
1269 "*) ;;
1270 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1271 ac_unrecognized_sep=', ';;
1272 esac
1273 eval with_$ac_useropt=\$ac_optarg ;;
1274
1275 -without-* | --without-*)
1276 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1277 # Reject names that are not valid shell variable names.
1278 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1279 as_fn_error $? "invalid package name: $ac_useropt"
1280 ac_useropt_orig=$ac_useropt
1281 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1282 case $ac_user_opts in
1283 *"
1284 "with_$ac_useropt"
1285 "*) ;;
1286 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1287 ac_unrecognized_sep=', ';;
1288 esac
1289 eval with_$ac_useropt=no ;;
1290
1291 --x)
1292 # Obsolete; use --with-x.
1293 with_x=yes ;;
1294
1295 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1296 | --x-incl | --x-inc | --x-in | --x-i)
1297 ac_prev=x_includes ;;
1298 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1299 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1300 x_includes=$ac_optarg ;;
1301
1302 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1303 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1304 ac_prev=x_libraries ;;
1305 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1306 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1307 x_libraries=$ac_optarg ;;
1308
1309 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1310 Try \`$0 --help' for more information"
1311 ;;
1312
1313 *=*)
1314 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1315 # Reject names that are not valid shell variable names.
1316 case $ac_envvar in #(
1317 '' | [0-9]* | *[!_$as_cr_alnum]* )
1318 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1319 esac
1320 eval $ac_envvar=\$ac_optarg
1321 export $ac_envvar ;;
1322
1323 *)
1324 # FIXME: should be removed in autoconf 3.0.
1325 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1326 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1327 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1328 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1329 ;;
1330
1331 esac
1332 done
1333
1334 if test -n "$ac_prev"; then
1335 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1336 as_fn_error $? "missing argument to $ac_option"
1337 fi
1338
1339 if test -n "$ac_unrecognized_opts"; then
1340 case $enable_option_checking in
1341 no) ;;
1342 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1343 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1344 esac
1345 fi
1346
1347 # Check all directory arguments for consistency.
1348 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1349 datadir sysconfdir sharedstatedir localstatedir includedir \
1350 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1351 libdir localedir mandir runstatedir
1352 do
1353 eval ac_val=\$$ac_var
1354 # Remove trailing slashes.
1355 case $ac_val in
1356 */ )
1357 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1358 eval $ac_var=\$ac_val;;
1359 esac
1360 # Be sure to have absolute directory names.
1361 case $ac_val in
1362 [\\/$]* | ?:[\\/]* ) continue;;
1363 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1364 esac
1365 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1366 done
1367
1368 # There might be people who depend on the old broken behavior: `$host'
1369 # used to hold the argument of --host etc.
1370 # FIXME: To remove some day.
1371 build=$build_alias
1372 host=$host_alias
1373 target=$target_alias
1374
1375 # FIXME: To remove some day.
1376 if test "x$host_alias" != x; then
1377 if test "x$build_alias" = x; then
1378 cross_compiling=maybe
1379 elif test "x$build_alias" != "x$host_alias"; then
1380 cross_compiling=yes
1381 fi
1382 fi
1383
1384 ac_tool_prefix=
1385 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1386
1387 test "$silent" = yes && exec 6>/dev/null
1388
1389
1390 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1391 ac_ls_di=`ls -di .` &&
1392 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1393 as_fn_error $? "working directory cannot be determined"
1394 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1395 as_fn_error $? "pwd does not report name of working directory"
1396
1397
1398 # Find the source files, if location was not specified.
1399 if test -z "$srcdir"; then
1400 ac_srcdir_defaulted=yes
1401 # Try the directory containing this script, then the parent directory.
1402 ac_confdir=`$as_dirname -- "$as_myself" ||
1403 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1404 X"$as_myself" : 'X\(//\)[^/]' \| \
1405 X"$as_myself" : 'X\(//\)$' \| \
1406 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1407 $as_echo X"$as_myself" |
1408 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1409 s//\1/
1410 q
1411 }
1412 /^X\(\/\/\)[^/].*/{
1413 s//\1/
1414 q
1415 }
1416 /^X\(\/\/\)$/{
1417 s//\1/
1418 q
1419 }
1420 /^X\(\/\).*/{
1421 s//\1/
1422 q
1423 }
1424 s/.*/./; q'`
1425 srcdir=$ac_confdir
1426 if test ! -r "$srcdir/$ac_unique_file"; then
1427 srcdir=..
1428 fi
1429 else
1430 ac_srcdir_defaulted=no
1431 fi
1432 if test ! -r "$srcdir/$ac_unique_file"; then
1433 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1434 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1435 fi
1436 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1437 ac_abs_confdir=`(
1438 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1439 pwd)`
1440 # When building in place, set srcdir=.
1441 if test "$ac_abs_confdir" = "$ac_pwd"; then
1442 srcdir=.
1443 fi
1444 # Remove unnecessary trailing slashes from srcdir.
1445 # Double slashes in file names in object file debugging info
1446 # mess up M-x gdb in Emacs.
1447 case $srcdir in
1448 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1449 esac
1450 for ac_var in $ac_precious_vars; do
1451 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1452 eval ac_env_${ac_var}_value=\$${ac_var}
1453 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1454 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1455 done
1456
1457 #
1458 # Report the --help message.
1459 #
1460 if test "$ac_init_help" = "long"; then
1461 # Omit some internal or obsolete options to make the list less imposing.
1462 # This message is too long to be a string in the A/UX 3.1 sh.
1463 cat <<_ACEOF
1464 \`configure' configures libXi 1.8 to adapt to many kinds of systems.
1465
1466 Usage: $0 [OPTION]... [VAR=VALUE]...
1467
1468 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1469 VAR=VALUE. See below for descriptions of some of the useful variables.
1470
1471 Defaults for the options are specified in brackets.
1472
1473 Configuration:
1474 -h, --help display this help and exit
1475 --help=short display options specific to this package
1476 --help=recursive display the short help of all the included packages
1477 -V, --version display version information and exit
1478 -q, --quiet, --silent do not print \`checking ...' messages
1479 --cache-file=FILE cache test results in FILE [disabled]
1480 -C, --config-cache alias for \`--cache-file=config.cache'
1481 -n, --no-create do not create output files
1482 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1483
1484 Installation directories:
1485 --prefix=PREFIX install architecture-independent files in PREFIX
1486 [$ac_default_prefix]
1487 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1488 [PREFIX]
1489
1490 By default, \`make install' will install all the files in
1491 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1492 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1493 for instance \`--prefix=\$HOME'.
1494
1495 For better control, use the options below.
1496
1497 Fine tuning of the installation directories:
1498 --bindir=DIR user executables [EPREFIX/bin]
1499 --sbindir=DIR system admin executables [EPREFIX/sbin]
1500 --libexecdir=DIR program executables [EPREFIX/libexec]
1501 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1502 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1503 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1504 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1505 --libdir=DIR object code libraries [EPREFIX/lib]
1506 --includedir=DIR C header files [PREFIX/include]
1507 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1508 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1509 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1510 --infodir=DIR info documentation [DATAROOTDIR/info]
1511 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1512 --mandir=DIR man documentation [DATAROOTDIR/man]
1513 --docdir=DIR documentation root [DATAROOTDIR/doc/libXi]
1514 --htmldir=DIR html documentation [DOCDIR]
1515 --dvidir=DIR dvi documentation [DOCDIR]
1516 --pdfdir=DIR pdf documentation [DOCDIR]
1517 --psdir=DIR ps documentation [DOCDIR]
1518 _ACEOF
1519
1520 cat <<\_ACEOF
1521
1522 Program names:
1523 --program-prefix=PREFIX prepend PREFIX to installed program names
1524 --program-suffix=SUFFIX append SUFFIX to installed program names
1525 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1526
1527 System types:
1528 --build=BUILD configure for building on BUILD [guessed]
1529 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1530 _ACEOF
1531 fi
1532
1533 if test -n "$ac_init_help"; then
1534 case $ac_init_help in
1535 short | recursive ) echo "Configuration of libXi 1.8:";;
1536 esac
1537 cat <<\_ACEOF
1538
1539 Optional Features:
1540 --disable-option-checking ignore unrecognized --enable/--with options
1541 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1542 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1543 --enable-silent-rules less verbose build output (undo: "make V=1")
1544 --disable-silent-rules verbose build output (undo: "make V=0")
1545 --enable-shared[=PKGS] build shared libraries [default=yes]
1546 --enable-static[=PKGS] build static libraries [default=yes]
1547 --enable-fast-install[=PKGS]
1548 optimize for fast installation [default=yes]
1549 --enable-dependency-tracking
1550 do not reject slow dependency extractors
1551 --disable-dependency-tracking
1552 speeds up one-time build
1553 --disable-libtool-lock avoid locking (might break parallel builds)
1554 --disable-selective-werror
1555 Turn off selective compiler errors. (default:
1556 enabled)
1557 --enable-strict-compilation
1558 Enable all warnings from compiler and make them
1559 errors (default: disabled)
1560 --enable-docs Enable building the documentation (default: yes)
1561 --enable-specs Enable building the specs (default: yes)
1562 --enable-malloc0returnsnull
1563 malloc(0) returns NULL (default: auto)
1564
1565 Optional Packages:
1566 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1567 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1568 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1569 both]
1570 --with-aix-soname=aix|svr4|both
1571 shared library versioning (aka "SONAME") variant to
1572 provide on AIX, [default=aix].
1573 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1574 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1575 compiler's sysroot if not specified).
1576 --with-xmlto Use xmlto to regenerate documentation (default:
1577 auto)
1578 --with-fop Use fop to regenerate documentation (default: auto)
1579 --with-xsltproc Use xsltproc for the transformation of XML documents
1580 (default: auto)
1581 --with-asciidoc Use asciidoc to regenerate documentation (default:
1582 auto)
1583
1584 Some influential environment variables:
1585 CC C compiler command
1586 CFLAGS C compiler flags
1587 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1588 nonstandard directory <lib dir>
1589 LIBS libraries to pass to the linker, e.g. -l<library>
1590 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1591 you have headers in a nonstandard directory <include dir>
1592 LT_SYS_LIBRARY_PATH
1593 User-defined run-time library search path.
1594 CPP C preprocessor
1595 PKG_CONFIG path to pkg-config utility
1596 PKG_CONFIG_PATH
1597 directories to add to pkg-config's search path
1598 PKG_CONFIG_LIBDIR
1599 path overriding pkg-config's built-in search path
1600 XMLTO Path to xmlto command
1601 FOP Path to fop command
1602 XSLTPROC Path to xsltproc command
1603 ASCIIDOC Path to asciidoc command
1604 XI_CFLAGS C compiler flags for XI, overriding pkg-config
1605 XI_LIBS linker flags for XI, overriding pkg-config
1606 XFIXES_CFLAGS
1607 C compiler flags for XFIXES, overriding pkg-config
1608 XFIXES_LIBS linker flags for XFIXES, overriding pkg-config
1609
1610 Use these variables to override the choices made by `configure' or to help
1611 it to find libraries and programs with nonstandard names/locations.
1612
1613 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libXi/issues>.
1614 _ACEOF
1615 ac_status=$?
1616 fi
1617
1618 if test "$ac_init_help" = "recursive"; then
1619 # If there are subdirs, report their specific --help.
1620 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1621 test -d "$ac_dir" ||
1622 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1623 continue
1624 ac_builddir=.
1625
1626 case "$ac_dir" in
1627 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1628 *)
1629 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1630 # A ".." for each directory in $ac_dir_suffix.
1631 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1632 case $ac_top_builddir_sub in
1633 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1634 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1635 esac ;;
1636 esac
1637 ac_abs_top_builddir=$ac_pwd
1638 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1639 # for backward compatibility:
1640 ac_top_builddir=$ac_top_build_prefix
1641
1642 case $srcdir in
1643 .) # We are building in place.
1644 ac_srcdir=.
1645 ac_top_srcdir=$ac_top_builddir_sub
1646 ac_abs_top_srcdir=$ac_pwd ;;
1647 [\\/]* | ?:[\\/]* ) # Absolute name.
1648 ac_srcdir=$srcdir$ac_dir_suffix;
1649 ac_top_srcdir=$srcdir
1650 ac_abs_top_srcdir=$srcdir ;;
1651 *) # Relative name.
1652 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1653 ac_top_srcdir=$ac_top_build_prefix$srcdir
1654 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1655 esac
1656 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1657
1658 cd "$ac_dir" || { ac_status=$?; continue; }
1659 # Check for guested configure.
1660 if test -f "$ac_srcdir/configure.gnu"; then
1661 echo &&
1662 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1663 elif test -f "$ac_srcdir/configure"; then
1664 echo &&
1665 $SHELL "$ac_srcdir/configure" --help=recursive
1666 else
1667 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1668 fi || ac_status=$?
1669 cd "$ac_pwd" || { ac_status=$?; break; }
1670 done
1671 fi
1672
1673 test -n "$ac_init_help" && exit $ac_status
1674 if $ac_init_version; then
1675 cat <<\_ACEOF
1676 libXi configure 1.8
1677 generated by GNU Autoconf 2.69
1678
1679 Copyright (C) 2012 Free Software Foundation, Inc.
1680 This configure script is free software; the Free Software Foundation
1681 gives unlimited permission to copy, distribute and modify it.
1682 _ACEOF
1683 exit
1684 fi
1685
1686 ## ------------------------ ##
1687 ## Autoconf initialization. ##
1688 ## ------------------------ ##
1689
1690 # ac_fn_c_try_compile LINENO
1691 # --------------------------
1692 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1693 ac_fn_c_try_compile ()
1694 {
1695 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1696 rm -f conftest.$ac_objext
1697 if { { ac_try="$ac_compile"
1698 case "(($ac_try" in
1699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1700 *) ac_try_echo=$ac_try;;
1701 esac
1702 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1703 $as_echo "$ac_try_echo"; } >&5
1704 (eval "$ac_compile") 2>conftest.err
1705 ac_status=$?
1706 if test -s conftest.err; then
1707 grep -v '^ *+' conftest.err >conftest.er1
1708 cat conftest.er1 >&5
1709 mv -f conftest.er1 conftest.err
1710 fi
1711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1712 test $ac_status = 0; } && {
1713 test -z "$ac_c_werror_flag" ||
1714 test ! -s conftest.err
1715 } && test -s conftest.$ac_objext; then :
1716 ac_retval=0
1717 else
1718 $as_echo "$as_me: failed program was:" >&5
1719 sed 's/^/| /' conftest.$ac_ext >&5
1720
1721 ac_retval=1
1722 fi
1723 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1724 as_fn_set_status $ac_retval
1725
1726 } # ac_fn_c_try_compile
1727
1728 # ac_fn_c_try_link LINENO
1729 # -----------------------
1730 # Try to link conftest.$ac_ext, and return whether this succeeded.
1731 ac_fn_c_try_link ()
1732 {
1733 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1734 rm -f conftest.$ac_objext conftest$ac_exeext
1735 if { { ac_try="$ac_link"
1736 case "(($ac_try" in
1737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1738 *) ac_try_echo=$ac_try;;
1739 esac
1740 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1741 $as_echo "$ac_try_echo"; } >&5
1742 (eval "$ac_link") 2>conftest.err
1743 ac_status=$?
1744 if test -s conftest.err; then
1745 grep -v '^ *+' conftest.err >conftest.er1
1746 cat conftest.er1 >&5
1747 mv -f conftest.er1 conftest.err
1748 fi
1749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1750 test $ac_status = 0; } && {
1751 test -z "$ac_c_werror_flag" ||
1752 test ! -s conftest.err
1753 } && test -s conftest$ac_exeext && {
1754 test "$cross_compiling" = yes ||
1755 test -x conftest$ac_exeext
1756 }; then :
1757 ac_retval=0
1758 else
1759 $as_echo "$as_me: failed program was:" >&5
1760 sed 's/^/| /' conftest.$ac_ext >&5
1761
1762 ac_retval=1
1763 fi
1764 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1765 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1766 # interfere with the next link command; also delete a directory that is
1767 # left behind by Apple's compiler. We do this before executing the actions.
1768 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1769 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1770 as_fn_set_status $ac_retval
1771
1772 } # ac_fn_c_try_link
1773
1774 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1775 # -------------------------------------------------------
1776 # Tests whether HEADER exists and can be compiled using the include files in
1777 # INCLUDES, setting the cache variable VAR accordingly.
1778 ac_fn_c_check_header_compile ()
1779 {
1780 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1782 $as_echo_n "checking for $2... " >&6; }
1783 if eval \${$3+:} false; then :
1784 $as_echo_n "(cached) " >&6
1785 else
1786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1787 /* end confdefs.h. */
1788 $4
1789 #include <$2>
1790 _ACEOF
1791 if ac_fn_c_try_compile "$LINENO"; then :
1792 eval "$3=yes"
1793 else
1794 eval "$3=no"
1795 fi
1796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1797 fi
1798 eval ac_res=\$$3
1799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1800 $as_echo "$ac_res" >&6; }
1801 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1802
1803 } # ac_fn_c_check_header_compile
1804
1805 # ac_fn_c_try_cpp LINENO
1806 # ----------------------
1807 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1808 ac_fn_c_try_cpp ()
1809 {
1810 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1811 if { { ac_try="$ac_cpp conftest.$ac_ext"
1812 case "(($ac_try" in
1813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1814 *) ac_try_echo=$ac_try;;
1815 esac
1816 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1817 $as_echo "$ac_try_echo"; } >&5
1818 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1819 ac_status=$?
1820 if test -s conftest.err; then
1821 grep -v '^ *+' conftest.err >conftest.er1
1822 cat conftest.er1 >&5
1823 mv -f conftest.er1 conftest.err
1824 fi
1825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1826 test $ac_status = 0; } > conftest.i && {
1827 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1828 test ! -s conftest.err
1829 }; then :
1830 ac_retval=0
1831 else
1832 $as_echo "$as_me: failed program was:" >&5
1833 sed 's/^/| /' conftest.$ac_ext >&5
1834
1835 ac_retval=1
1836 fi
1837 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1838 as_fn_set_status $ac_retval
1839
1840 } # ac_fn_c_try_cpp
1841
1842 # ac_fn_c_try_run LINENO
1843 # ----------------------
1844 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1845 # that executables *can* be run.
1846 ac_fn_c_try_run ()
1847 {
1848 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1849 if { { ac_try="$ac_link"
1850 case "(($ac_try" in
1851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1852 *) ac_try_echo=$ac_try;;
1853 esac
1854 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1855 $as_echo "$ac_try_echo"; } >&5
1856 (eval "$ac_link") 2>&5
1857 ac_status=$?
1858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1859 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1860 { { case "(($ac_try" in
1861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1862 *) ac_try_echo=$ac_try;;
1863 esac
1864 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1865 $as_echo "$ac_try_echo"; } >&5
1866 (eval "$ac_try") 2>&5
1867 ac_status=$?
1868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1869 test $ac_status = 0; }; }; then :
1870 ac_retval=0
1871 else
1872 $as_echo "$as_me: program exited with status $ac_status" >&5
1873 $as_echo "$as_me: failed program was:" >&5
1874 sed 's/^/| /' conftest.$ac_ext >&5
1875
1876 ac_retval=$ac_status
1877 fi
1878 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1879 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1880 as_fn_set_status $ac_retval
1881
1882 } # ac_fn_c_try_run
1883
1884 # ac_fn_c_check_func LINENO FUNC VAR
1885 # ----------------------------------
1886 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1887 ac_fn_c_check_func ()
1888 {
1889 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1891 $as_echo_n "checking for $2... " >&6; }
1892 if eval \${$3+:} false; then :
1893 $as_echo_n "(cached) " >&6
1894 else
1895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1896 /* end confdefs.h. */
1897 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1898 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1899 #define $2 innocuous_$2
1900
1901 /* System header to define __stub macros and hopefully few prototypes,
1902 which can conflict with char $2 (); below.
1903 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1904 <limits.h> exists even on freestanding compilers. */
1905
1906 #ifdef __STDC__
1907 # include <limits.h>
1908 #else
1909 # include <assert.h>
1910 #endif
1911
1912 #undef $2
1913
1914 /* Override any GCC internal prototype to avoid an error.
1915 Use char because int might match the return type of a GCC
1916 builtin and then its argument prototype would still apply. */
1917 #ifdef __cplusplus
1918 extern "C"
1919 #endif
1920 char $2 ();
1921 /* The GNU C library defines this for functions which it implements
1922 to always fail with ENOSYS. Some functions are actually named
1923 something starting with __ and the normal name is an alias. */
1924 #if defined __stub_$2 || defined __stub___$2
1925 choke me
1926 #endif
1927
1928 int
1929 main ()
1930 {
1931 return $2 ();
1932 ;
1933 return 0;
1934 }
1935 _ACEOF
1936 if ac_fn_c_try_link "$LINENO"; then :
1937 eval "$3=yes"
1938 else
1939 eval "$3=no"
1940 fi
1941 rm -f core conftest.err conftest.$ac_objext \
1942 conftest$ac_exeext conftest.$ac_ext
1943 fi
1944 eval ac_res=\$$3
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1946 $as_echo "$ac_res" >&6; }
1947 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1948
1949 } # ac_fn_c_check_func
1950
1951 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1952 # ---------------------------------------------
1953 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1954 # accordingly.
1955 ac_fn_c_check_decl ()
1956 {
1957 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1958 as_decl_name=`echo $2|sed 's/ *(.*//'`
1959 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1961 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1962 if eval \${$3+:} false; then :
1963 $as_echo_n "(cached) " >&6
1964 else
1965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1966 /* end confdefs.h. */
1967 $4
1968 int
1969 main ()
1970 {
1971 #ifndef $as_decl_name
1972 #ifdef __cplusplus
1973 (void) $as_decl_use;
1974 #else
1975 (void) $as_decl_name;
1976 #endif
1977 #endif
1978
1979 ;
1980 return 0;
1981 }
1982 _ACEOF
1983 if ac_fn_c_try_compile "$LINENO"; then :
1984 eval "$3=yes"
1985 else
1986 eval "$3=no"
1987 fi
1988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1989 fi
1990 eval ac_res=\$$3
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1992 $as_echo "$ac_res" >&6; }
1993 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1994
1995 } # ac_fn_c_check_decl
1996 cat >config.log <<_ACEOF
1997 This file contains any messages produced by compilers while
1998 running configure, to aid debugging if configure makes a mistake.
1999
2000 It was created by libXi $as_me 1.8, which was
2001 generated by GNU Autoconf 2.69. Invocation command line was
2002
2003 $ $0 $@
2004
2005 _ACEOF
2006 exec 5>>config.log
2007 {
2008 cat <<_ASUNAME
2009 ## --------- ##
2010 ## Platform. ##
2011 ## --------- ##
2012
2013 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2014 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2015 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2016 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2017 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2018
2019 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2020 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2021
2022 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2023 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2024 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2025 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2026 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2027 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2028 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2029
2030 _ASUNAME
2031
2032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2033 for as_dir in $PATH
2034 do
2035 IFS=$as_save_IFS
2036 test -z "$as_dir" && as_dir=.
2037 $as_echo "PATH: $as_dir"
2038 done
2039 IFS=$as_save_IFS
2040
2041 } >&5
2042
2043 cat >&5 <<_ACEOF
2044
2045
2046 ## ----------- ##
2047 ## Core tests. ##
2048 ## ----------- ##
2049
2050 _ACEOF
2051
2052
2053 # Keep a trace of the command line.
2054 # Strip out --no-create and --no-recursion so they do not pile up.
2055 # Strip out --silent because we don't want to record it for future runs.
2056 # Also quote any args containing shell meta-characters.
2057 # Make two passes to allow for proper duplicate-argument suppression.
2058 ac_configure_args=
2059 ac_configure_args0=
2060 ac_configure_args1=
2061 ac_must_keep_next=false
2062 for ac_pass in 1 2
2063 do
2064 for ac_arg
2065 do
2066 case $ac_arg in
2067 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2068 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2069 | -silent | --silent | --silen | --sile | --sil)
2070 continue ;;
2071 *\'*)
2072 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2073 esac
2074 case $ac_pass in
2075 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2076 2)
2077 as_fn_append ac_configure_args1 " '$ac_arg'"
2078 if test $ac_must_keep_next = true; then
2079 ac_must_keep_next=false # Got value, back to normal.
2080 else
2081 case $ac_arg in
2082 *=* | --config-cache | -C | -disable-* | --disable-* \
2083 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2084 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2085 | -with-* | --with-* | -without-* | --without-* | --x)
2086 case "$ac_configure_args0 " in
2087 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2088 esac
2089 ;;
2090 -* ) ac_must_keep_next=true ;;
2091 esac
2092 fi
2093 as_fn_append ac_configure_args " '$ac_arg'"
2094 ;;
2095 esac
2096 done
2097 done
2098 { ac_configure_args0=; unset ac_configure_args0;}
2099 { ac_configure_args1=; unset ac_configure_args1;}
2100
2101 # When interrupted or exit'd, cleanup temporary files, and complete
2102 # config.log. We remove comments because anyway the quotes in there
2103 # would cause problems or look ugly.
2104 # WARNING: Use '\'' to represent an apostrophe within the trap.
2105 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2106 trap 'exit_status=$?
2107 # Save into config.log some information that might help in debugging.
2108 {
2109 echo
2110
2111 $as_echo "## ---------------- ##
2112 ## Cache variables. ##
2113 ## ---------------- ##"
2114 echo
2115 # The following way of writing the cache mishandles newlines in values,
2116 (
2117 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2118 eval ac_val=\$$ac_var
2119 case $ac_val in #(
2120 *${as_nl}*)
2121 case $ac_var in #(
2122 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2123 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2124 esac
2125 case $ac_var in #(
2126 _ | IFS | as_nl) ;; #(
2127 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2128 *) { eval $ac_var=; unset $ac_var;} ;;
2129 esac ;;
2130 esac
2131 done
2132 (set) 2>&1 |
2133 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2134 *${as_nl}ac_space=\ *)
2135 sed -n \
2136 "s/'\''/'\''\\\\'\'''\''/g;
2137 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2138 ;; #(
2139 *)
2140 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2141 ;;
2142 esac |
2143 sort
2144 )
2145 echo
2146
2147 $as_echo "## ----------------- ##
2148 ## Output variables. ##
2149 ## ----------------- ##"
2150 echo
2151 for ac_var in $ac_subst_vars
2152 do
2153 eval ac_val=\$$ac_var
2154 case $ac_val in
2155 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2156 esac
2157 $as_echo "$ac_var='\''$ac_val'\''"
2158 done | sort
2159 echo
2160
2161 if test -n "$ac_subst_files"; then
2162 $as_echo "## ------------------- ##
2163 ## File substitutions. ##
2164 ## ------------------- ##"
2165 echo
2166 for ac_var in $ac_subst_files
2167 do
2168 eval ac_val=\$$ac_var
2169 case $ac_val in
2170 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2171 esac
2172 $as_echo "$ac_var='\''$ac_val'\''"
2173 done | sort
2174 echo
2175 fi
2176
2177 if test -s confdefs.h; then
2178 $as_echo "## ----------- ##
2179 ## confdefs.h. ##
2180 ## ----------- ##"
2181 echo
2182 cat confdefs.h
2183 echo
2184 fi
2185 test "$ac_signal" != 0 &&
2186 $as_echo "$as_me: caught signal $ac_signal"
2187 $as_echo "$as_me: exit $exit_status"
2188 } >&5
2189 rm -f core *.core core.conftest.* &&
2190 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2191 exit $exit_status
2192 ' 0
2193 for ac_signal in 1 2 13 15; do
2194 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2195 done
2196 ac_signal=0
2197
2198 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2199 rm -f -r conftest* confdefs.h
2200
2201 $as_echo "/* confdefs.h */" > confdefs.h
2202
2203 # Predefined preprocessor variables.
2204
2205 cat >>confdefs.h <<_ACEOF
2206 #define PACKAGE_NAME "$PACKAGE_NAME"
2207 _ACEOF
2208
2209 cat >>confdefs.h <<_ACEOF
2210 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2211 _ACEOF
2212
2213 cat >>confdefs.h <<_ACEOF
2214 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2215 _ACEOF
2216
2217 cat >>confdefs.h <<_ACEOF
2218 #define PACKAGE_STRING "$PACKAGE_STRING"
2219 _ACEOF
2220
2221 cat >>confdefs.h <<_ACEOF
2222 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2223 _ACEOF
2224
2225 cat >>confdefs.h <<_ACEOF
2226 #define PACKAGE_URL "$PACKAGE_URL"
2227 _ACEOF
2228
2229
2230 # Let the site file select an alternate cache file if it wants to.
2231 # Prefer an explicitly selected file to automatically selected ones.
2232 ac_site_file1=NONE
2233 ac_site_file2=NONE
2234 if test -n "$CONFIG_SITE"; then
2235 # We do not want a PATH search for config.site.
2236 case $CONFIG_SITE in #((
2237 -*) ac_site_file1=./$CONFIG_SITE;;
2238 */*) ac_site_file1=$CONFIG_SITE;;
2239 *) ac_site_file1=./$CONFIG_SITE;;
2240 esac
2241 elif test "x$prefix" != xNONE; then
2242 ac_site_file1=$prefix/share/config.site
2243 ac_site_file2=$prefix/etc/config.site
2244 else
2245 ac_site_file1=$ac_default_prefix/share/config.site
2246 ac_site_file2=$ac_default_prefix/etc/config.site
2247 fi
2248 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2249 do
2250 test "x$ac_site_file" = xNONE && continue
2251 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2253 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2254 sed 's/^/| /' "$ac_site_file" >&5
2255 . "$ac_site_file" \
2256 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2257 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2258 as_fn_error $? "failed to load site script $ac_site_file
2259 See \`config.log' for more details" "$LINENO" 5; }
2260 fi
2261 done
2262
2263 if test -r "$cache_file"; then
2264 # Some versions of bash will fail to source /dev/null (special files
2265 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2266 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2268 $as_echo "$as_me: loading cache $cache_file" >&6;}
2269 case $cache_file in
2270 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2271 *) . "./$cache_file";;
2272 esac
2273 fi
2274 else
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2276 $as_echo "$as_me: creating cache $cache_file" >&6;}
2277 >$cache_file
2278 fi
2279
2280 # Check that the precious variables saved in the cache have kept the same
2281 # value.
2282 ac_cache_corrupted=false
2283 for ac_var in $ac_precious_vars; do
2284 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2285 eval ac_new_set=\$ac_env_${ac_var}_set
2286 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2287 eval ac_new_val=\$ac_env_${ac_var}_value
2288 case $ac_old_set,$ac_new_set in
2289 set,)
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2291 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2292 ac_cache_corrupted=: ;;
2293 ,set)
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2295 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2296 ac_cache_corrupted=: ;;
2297 ,);;
2298 *)
2299 if test "x$ac_old_val" != "x$ac_new_val"; then
2300 # differences in whitespace do not lead to failure.
2301 ac_old_val_w=`echo x $ac_old_val`
2302 ac_new_val_w=`echo x $ac_new_val`
2303 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2305 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2306 ac_cache_corrupted=:
2307 else
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2309 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2310 eval $ac_var=\$ac_old_val
2311 fi
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2313 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2315 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2316 fi;;
2317 esac
2318 # Pass precious variables to config.status.
2319 if test "$ac_new_set" = set; then
2320 case $ac_new_val in
2321 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2322 *) ac_arg=$ac_var=$ac_new_val ;;
2323 esac
2324 case " $ac_configure_args " in
2325 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2326 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2327 esac
2328 fi
2329 done
2330 if $ac_cache_corrupted; then
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2332 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2334 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2335 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2336 fi
2337 ## -------------------- ##
2338 ## Main body of script. ##
2339 ## -------------------- ##
2340
2341 ac_ext=c
2342 ac_cpp='$CPP $CPPFLAGS'
2343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2346
2347
2348
2349 ac_config_headers="$ac_config_headers src/config.h"
2350
2351
2352 # Initialize Automake
2353 am__api_version='1.16'
2354
2355 ac_aux_dir=
2356 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2357 if test -f "$ac_dir/install-sh"; then
2358 ac_aux_dir=$ac_dir
2359 ac_install_sh="$ac_aux_dir/install-sh -c"
2360 break
2361 elif test -f "$ac_dir/install.sh"; then
2362 ac_aux_dir=$ac_dir
2363 ac_install_sh="$ac_aux_dir/install.sh -c"
2364 break
2365 elif test -f "$ac_dir/shtool"; then
2366 ac_aux_dir=$ac_dir
2367 ac_install_sh="$ac_aux_dir/shtool install -c"
2368 break
2369 fi
2370 done
2371 if test -z "$ac_aux_dir"; then
2372 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2373 fi
2374
2375 # These three variables are undocumented and unsupported,
2376 # and are intended to be withdrawn in a future Autoconf release.
2377 # They can cause serious problems if a builder's source tree is in a directory
2378 # whose full name contains unusual characters.
2379 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2380 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2381 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2382
2383
2384 # Find a good install program. We prefer a C program (faster),
2385 # so one script is as good as another. But avoid the broken or
2386 # incompatible versions:
2387 # SysV /etc/install, /usr/sbin/install
2388 # SunOS /usr/etc/install
2389 # IRIX /sbin/install
2390 # AIX /bin/install
2391 # AmigaOS /C/install, which installs bootblocks on floppy discs
2392 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2393 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2394 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2395 # OS/2's system install, which has a completely different semantic
2396 # ./install, which can be erroneously created by make from ./install.sh.
2397 # Reject install programs that cannot install multiple files.
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2399 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2400 if test -z "$INSTALL"; then
2401 if ${ac_cv_path_install+:} false; then :
2402 $as_echo_n "(cached) " >&6
2403 else
2404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2405 for as_dir in $PATH
2406 do
2407 IFS=$as_save_IFS
2408 test -z "$as_dir" && as_dir=.
2409 # Account for people who put trailing slashes in PATH elements.
2410 case $as_dir/ in #((
2411 ./ | .// | /[cC]/* | \
2412 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2413 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2414 /usr/ucb/* ) ;;
2415 *)
2416 # OSF1 and SCO ODT 3.0 have their own names for install.
2417 # Don't use installbsd from OSF since it installs stuff as root
2418 # by default.
2419 for ac_prog in ginstall scoinst install; do
2420 for ac_exec_ext in '' $ac_executable_extensions; do
2421 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2422 if test $ac_prog = install &&
2423 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2424 # AIX install. It has an incompatible calling convention.
2425 :
2426 elif test $ac_prog = install &&
2427 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2428 # program-specific install script used by HP pwplus--don't use.
2429 :
2430 else
2431 rm -rf conftest.one conftest.two conftest.dir
2432 echo one > conftest.one
2433 echo two > conftest.two
2434 mkdir conftest.dir
2435 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2436 test -s conftest.one && test -s conftest.two &&
2437 test -s conftest.dir/conftest.one &&
2438 test -s conftest.dir/conftest.two
2439 then
2440 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2441 break 3
2442 fi
2443 fi
2444 fi
2445 done
2446 done
2447 ;;
2448 esac
2449
2450 done
2451 IFS=$as_save_IFS
2452
2453 rm -rf conftest.one conftest.two conftest.dir
2454
2455 fi
2456 if test "${ac_cv_path_install+set}" = set; then
2457 INSTALL=$ac_cv_path_install
2458 else
2459 # As a last resort, use the slow shell script. Don't cache a
2460 # value for INSTALL within a source directory, because that will
2461 # break other packages using the cache if that directory is
2462 # removed, or if the value is a relative name.
2463 INSTALL=$ac_install_sh
2464 fi
2465 fi
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2467 $as_echo "$INSTALL" >&6; }
2468
2469 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2470 # It thinks the first close brace ends the variable substitution.
2471 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2472
2473 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2474
2475 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2476
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2478 $as_echo_n "checking whether build environment is sane... " >&6; }
2479 # Reject unsafe characters in $srcdir or the absolute working directory
2480 # name. Accept space and tab only in the latter.
2481 am_lf='
2482 '
2483 case `pwd` in
2484 *[\\\"\#\$\&\'\`$am_lf]*)
2485 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2486 esac
2487 case $srcdir in
2488 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2489 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2490 esac
2491
2492 # Do 'set' in a subshell so we don't clobber the current shell's
2493 # arguments. Must try -L first in case configure is actually a
2494 # symlink; some systems play weird games with the mod time of symlinks
2495 # (eg FreeBSD returns the mod time of the symlink's containing
2496 # directory).
2497 if (
2498 am_has_slept=no
2499 for am_try in 1 2; do
2500 echo "timestamp, slept: $am_has_slept" > conftest.file
2501 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2502 if test "$*" = "X"; then
2503 # -L didn't work.
2504 set X `ls -t "$srcdir/configure" conftest.file`
2505 fi
2506 if test "$*" != "X $srcdir/configure conftest.file" \
2507 && test "$*" != "X conftest.file $srcdir/configure"; then
2508
2509 # If neither matched, then we have a broken ls. This can happen
2510 # if, for instance, CONFIG_SHELL is bash and it inherits a
2511 # broken ls alias from the environment. This has actually
2512 # happened. Such a system could not be considered "sane".
2513 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2514 alias in your environment" "$LINENO" 5
2515 fi
2516 if test "$2" = conftest.file || test $am_try -eq 2; then
2517 break
2518 fi
2519 # Just in case.
2520 sleep 1
2521 am_has_slept=yes
2522 done
2523 test "$2" = conftest.file
2524 )
2525 then
2526 # Ok.
2527 :
2528 else
2529 as_fn_error $? "newly created file is older than distributed files!
2530 Check your system clock" "$LINENO" 5
2531 fi
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2533 $as_echo "yes" >&6; }
2534 # If we didn't sleep, we still need to ensure time stamps of config.status and
2535 # generated files are strictly newer.
2536 am_sleep_pid=
2537 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2538 ( sleep 1 ) &
2539 am_sleep_pid=$!
2540 fi
2541
2542 rm -f conftest.file
2543
2544 test "$program_prefix" != NONE &&
2545 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2546 # Use a double $ so make ignores it.
2547 test "$program_suffix" != NONE &&
2548 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2549 # Double any \ or $.
2550 # By default was `s,x,x', remove it if useless.
2551 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2552 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2553
2554 # Expand $ac_aux_dir to an absolute path.
2555 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2556
2557 if test x"${MISSING+set}" != xset; then
2558 case $am_aux_dir in
2559 *\ * | *\ *)
2560 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2561 *)
2562 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2563 esac
2564 fi
2565 # Use eval to expand $SHELL
2566 if eval "$MISSING --is-lightweight"; then
2567 am_missing_run="$MISSING "
2568 else
2569 am_missing_run=
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2571 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2572 fi
2573
2574 if test x"${install_sh+set}" != xset; then
2575 case $am_aux_dir in
2576 *\ * | *\ *)
2577 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2578 *)
2579 install_sh="\${SHELL} $am_aux_dir/install-sh"
2580 esac
2581 fi
2582
2583 # Installed binaries are usually stripped using 'strip' when the user
2584 # run "make install-strip". However 'strip' might not be the right
2585 # tool to use in cross-compilation environments, therefore Automake
2586 # will honor the 'STRIP' environment variable to overrule this program.
2587 if test "$cross_compiling" != no; then
2588 if test -n "$ac_tool_prefix"; then
2589 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2590 set dummy ${ac_tool_prefix}strip; ac_word=$2
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2592 $as_echo_n "checking for $ac_word... " >&6; }
2593 if ${ac_cv_prog_STRIP+:} false; then :
2594 $as_echo_n "(cached) " >&6
2595 else
2596 if test -n "$STRIP"; then
2597 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2598 else
2599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2600 for as_dir in $PATH
2601 do
2602 IFS=$as_save_IFS
2603 test -z "$as_dir" && as_dir=.
2604 for ac_exec_ext in '' $ac_executable_extensions; do
2605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2606 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2608 break 2
2609 fi
2610 done
2611 done
2612 IFS=$as_save_IFS
2613
2614 fi
2615 fi
2616 STRIP=$ac_cv_prog_STRIP
2617 if test -n "$STRIP"; then
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2619 $as_echo "$STRIP" >&6; }
2620 else
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2622 $as_echo "no" >&6; }
2623 fi
2624
2625
2626 fi
2627 if test -z "$ac_cv_prog_STRIP"; then
2628 ac_ct_STRIP=$STRIP
2629 # Extract the first word of "strip", so it can be a program name with args.
2630 set dummy strip; ac_word=$2
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2632 $as_echo_n "checking for $ac_word... " >&6; }
2633 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2634 $as_echo_n "(cached) " >&6
2635 else
2636 if test -n "$ac_ct_STRIP"; then
2637 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2638 else
2639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2640 for as_dir in $PATH
2641 do
2642 IFS=$as_save_IFS
2643 test -z "$as_dir" && as_dir=.
2644 for ac_exec_ext in '' $ac_executable_extensions; do
2645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2646 ac_cv_prog_ac_ct_STRIP="strip"
2647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2648 break 2
2649 fi
2650 done
2651 done
2652 IFS=$as_save_IFS
2653
2654 fi
2655 fi
2656 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2657 if test -n "$ac_ct_STRIP"; then
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2659 $as_echo "$ac_ct_STRIP" >&6; }
2660 else
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2662 $as_echo "no" >&6; }
2663 fi
2664
2665 if test "x$ac_ct_STRIP" = x; then
2666 STRIP=":"
2667 else
2668 case $cross_compiling:$ac_tool_warned in
2669 yes:)
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2671 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2672 ac_tool_warned=yes ;;
2673 esac
2674 STRIP=$ac_ct_STRIP
2675 fi
2676 else
2677 STRIP="$ac_cv_prog_STRIP"
2678 fi
2679
2680 fi
2681 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2682
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2684 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2685 if test -z "$MKDIR_P"; then
2686 if ${ac_cv_path_mkdir+:} false; then :
2687 $as_echo_n "(cached) " >&6
2688 else
2689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2690 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2691 do
2692 IFS=$as_save_IFS
2693 test -z "$as_dir" && as_dir=.
2694 for ac_prog in mkdir gmkdir; do
2695 for ac_exec_ext in '' $ac_executable_extensions; do
2696 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2697 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2698 'mkdir (GNU coreutils) '* | \
2699 'mkdir (coreutils) '* | \
2700 'mkdir (fileutils) '4.1*)
2701 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2702 break 3;;
2703 esac
2704 done
2705 done
2706 done
2707 IFS=$as_save_IFS
2708
2709 fi
2710
2711 test -d ./--version && rmdir ./--version
2712 if test "${ac_cv_path_mkdir+set}" = set; then
2713 MKDIR_P="$ac_cv_path_mkdir -p"
2714 else
2715 # As a last resort, use the slow shell script. Don't cache a
2716 # value for MKDIR_P within a source directory, because that will
2717 # break other packages using the cache if that directory is
2718 # removed, or if the value is a relative name.
2719 MKDIR_P="$ac_install_sh -d"
2720 fi
2721 fi
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2723 $as_echo "$MKDIR_P" >&6; }
2724
2725 for ac_prog in gawk mawk nawk awk
2726 do
2727 # Extract the first word of "$ac_prog", so it can be a program name with args.
2728 set dummy $ac_prog; ac_word=$2
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2730 $as_echo_n "checking for $ac_word... " >&6; }
2731 if ${ac_cv_prog_AWK+:} false; then :
2732 $as_echo_n "(cached) " >&6
2733 else
2734 if test -n "$AWK"; then
2735 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2736 else
2737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2738 for as_dir in $PATH
2739 do
2740 IFS=$as_save_IFS
2741 test -z "$as_dir" && as_dir=.
2742 for ac_exec_ext in '' $ac_executable_extensions; do
2743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2744 ac_cv_prog_AWK="$ac_prog"
2745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2746 break 2
2747 fi
2748 done
2749 done
2750 IFS=$as_save_IFS
2751
2752 fi
2753 fi
2754 AWK=$ac_cv_prog_AWK
2755 if test -n "$AWK"; then
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2757 $as_echo "$AWK" >&6; }
2758 else
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2760 $as_echo "no" >&6; }
2761 fi
2762
2763
2764 test -n "$AWK" && break
2765 done
2766
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2768 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2769 set x ${MAKE-make}
2770 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2771 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2772 $as_echo_n "(cached) " >&6
2773 else
2774 cat >conftest.make <<\_ACEOF
2775 SHELL = /bin/sh
2776 all:
2777 @echo '@@@%%%=$(MAKE)=@@@%%%'
2778 _ACEOF
2779 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2780 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2781 *@@@%%%=?*=@@@%%%*)
2782 eval ac_cv_prog_make_${ac_make}_set=yes;;
2783 *)
2784 eval ac_cv_prog_make_${ac_make}_set=no;;
2785 esac
2786 rm -f conftest.make
2787 fi
2788 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2790 $as_echo "yes" >&6; }
2791 SET_MAKE=
2792 else
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2794 $as_echo "no" >&6; }
2795 SET_MAKE="MAKE=${MAKE-make}"
2796 fi
2797
2798 rm -rf .tst 2>/dev/null
2799 mkdir .tst 2>/dev/null
2800 if test -d .tst; then
2801 am__leading_dot=.
2802 else
2803 am__leading_dot=_
2804 fi
2805 rmdir .tst 2>/dev/null
2806
2807 # Check whether --enable-silent-rules was given.
2808 if test "${enable_silent_rules+set}" = set; then :
2809 enableval=$enable_silent_rules;
2810 fi
2811
2812 case $enable_silent_rules in # (((
2813 yes) AM_DEFAULT_VERBOSITY=0;;
2814 no) AM_DEFAULT_VERBOSITY=1;;
2815 *) AM_DEFAULT_VERBOSITY=1;;
2816 esac
2817 am_make=${MAKE-make}
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2819 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2820 if ${am_cv_make_support_nested_variables+:} false; then :
2821 $as_echo_n "(cached) " >&6
2822 else
2823 if $as_echo 'TRUE=$(BAR$(V))
2824 BAR0=false
2825 BAR1=true
2826 V=1
2827 am__doit:
2828 @$(TRUE)
2829 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2830 am_cv_make_support_nested_variables=yes
2831 else
2832 am_cv_make_support_nested_variables=no
2833 fi
2834 fi
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2836 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2837 if test $am_cv_make_support_nested_variables = yes; then
2838 AM_V='$(V)'
2839 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2840 else
2841 AM_V=$AM_DEFAULT_VERBOSITY
2842 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2843 fi
2844 AM_BACKSLASH='\'
2845
2846 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2847 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2848 # is not polluted with repeated "-I."
2849 am__isrc=' -I$(srcdir)'
2850 # test to see if srcdir already configured
2851 if test -f $srcdir/config.status; then
2852 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2853 fi
2854 fi
2855
2856 # test whether we have cygpath
2857 if test -z "$CYGPATH_W"; then
2858 if (cygpath --version) >/dev/null 2>/dev/null; then
2859 CYGPATH_W='cygpath -w'
2860 else
2861 CYGPATH_W=echo
2862 fi
2863 fi
2864
2865
2866 # Define the identity of the package.
2867 PACKAGE='libXi'
2868 VERSION='1.8'
2869
2870
2871 cat >>confdefs.h <<_ACEOF
2872 #define PACKAGE "$PACKAGE"
2873 _ACEOF
2874
2875
2876 cat >>confdefs.h <<_ACEOF
2877 #define VERSION "$VERSION"
2878 _ACEOF
2879
2880 # Some tools Automake needs.
2881
2882 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2883
2884
2885 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2886
2887
2888 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2889
2890
2891 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2892
2893
2894 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2895
2896 # For better backward compatibility. To be removed once Automake 1.9.x
2897 # dies out for good. For more background, see:
2898 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2899 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2900 mkdir_p='$(MKDIR_P)'
2901
2902 # We need awk for the "check" target (and possibly the TAP driver). The
2903 # system "awk" is bad on some platforms.
2904 # Always define AMTAR for backward compatibility. Yes, it's still used
2905 # in the wild :-( We should find a proper way to deprecate it ...
2906 AMTAR='$${TAR-tar}'
2907
2908
2909 # We'll loop over all known methods to create a tar archive until one works.
2910 _am_tools='gnutar pax cpio none'
2911
2912 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2913
2914
2915
2916
2917
2918
2919 # POSIX will say in a future version that running "rm -f" with no argument
2920 # is OK; and we want to be able to make that assumption in our Makefile
2921 # recipes. So use an aggressive probe to check that the usage we want is
2922 # actually supported "in the wild" to an acceptable degree.
2923 # See automake bug#10828.
2924 # To make any issue more visible, cause the running configure to be aborted
2925 # by default if the 'rm' program in use doesn't match our expectations; the
2926 # user can still override this though.
2927 if rm -f && rm -fr && rm -rf; then : OK; else
2928 cat >&2 <<'END'
2929 Oops!
2930
2931 Your 'rm' program seems unable to run without file operands specified
2932 on the command line, even when the '-f' option is present. This is contrary
2933 to the behaviour of most rm programs out there, and not conforming with
2934 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2935
2936 Please tell bug-automake@gnu.org about your system, including the value
2937 of your $PATH and any error possibly output before this message. This
2938 can help us improve future automake versions.
2939
2940 END
2941 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2942 echo 'Configuration will proceed anyway, since you have set the' >&2
2943 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2944 echo >&2
2945 else
2946 cat >&2 <<'END'
2947 Aborting the configuration process, to ensure you take notice of the issue.
2948
2949 You can download and install GNU coreutils to get an 'rm' implementation
2950 that behaves properly: <https://www.gnu.org/software/coreutils/>.
2951
2952 If you want to complete the configuration process using your problematic
2953 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2954 to "yes", and re-run configure.
2955
2956 END
2957 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2958 fi
2959 fi
2960
2961
2962 # Initialize libtool
2963 case `pwd` in
2964 *\ * | *\ *)
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2966 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2967 esac
2968
2969
2970
2971 macro_version='2.4.6'
2972 macro_revision='2.4.6'
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986 ltmain=$ac_aux_dir/ltmain.sh
2987
2988 # Make sure we can run config.sub.
2989 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2990 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2991
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2993 $as_echo_n "checking build system type... " >&6; }
2994 if ${ac_cv_build+:} false; then :
2995 $as_echo_n "(cached) " >&6
2996 else
2997 ac_build_alias=$build_alias
2998 test "x$ac_build_alias" = x &&
2999 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3000 test "x$ac_build_alias" = x &&
3001 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3002 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3003 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3004
3005 fi
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3007 $as_echo "$ac_cv_build" >&6; }
3008 case $ac_cv_build in
3009 *-*-*) ;;
3010 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3011 esac
3012 build=$ac_cv_build
3013 ac_save_IFS=$IFS; IFS='-'
3014 set x $ac_cv_build
3015 shift
3016 build_cpu=$1
3017 build_vendor=$2
3018 shift; shift
3019 # Remember, the first character of IFS is used to create $*,
3020 # except with old shells:
3021 build_os=$*
3022 IFS=$ac_save_IFS
3023 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3024
3025
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3027 $as_echo_n "checking host system type... " >&6; }
3028 if ${ac_cv_host+:} false; then :
3029 $as_echo_n "(cached) " >&6
3030 else
3031 if test "x$host_alias" = x; then
3032 ac_cv_host=$ac_cv_build
3033 else
3034 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3035 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3036 fi
3037
3038 fi
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3040 $as_echo "$ac_cv_host" >&6; }
3041 case $ac_cv_host in
3042 *-*-*) ;;
3043 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3044 esac
3045 host=$ac_cv_host
3046 ac_save_IFS=$IFS; IFS='-'
3047 set x $ac_cv_host
3048 shift
3049 host_cpu=$1
3050 host_vendor=$2
3051 shift; shift
3052 # Remember, the first character of IFS is used to create $*,
3053 # except with old shells:
3054 host_os=$*
3055 IFS=$ac_save_IFS
3056 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3057
3058
3059 # Backslashify metacharacters that are still active within
3060 # double-quoted strings.
3061 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3062
3063 # Same as above, but do not quote variable references.
3064 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3065
3066 # Sed substitution to delay expansion of an escaped shell variable in a
3067 # double_quote_subst'ed string.
3068 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3069
3070 # Sed substitution to delay expansion of an escaped single quote.
3071 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3072
3073 # Sed substitution to avoid accidental globbing in evaled expressions
3074 no_glob_subst='s/\*/\\\*/g'
3075
3076 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3077 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3078 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3079
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3081 $as_echo_n "checking how to print strings... " >&6; }
3082 # Test print first, because it will be a builtin if present.
3083 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3084 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3085 ECHO='print -r --'
3086 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3087 ECHO='printf %s\n'
3088 else
3089 # Use this function as a fallback that always works.
3090 func_fallback_echo ()
3091 {
3092 eval 'cat <<_LTECHO_EOF
3093 $1
3094 _LTECHO_EOF'
3095 }
3096 ECHO='func_fallback_echo'
3097 fi
3098
3099 # func_echo_all arg...
3100 # Invoke $ECHO with all args, space-separated.
3101 func_echo_all ()
3102 {
3103 $ECHO ""
3104 }
3105
3106 case $ECHO in
3107 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3108 $as_echo "printf" >&6; } ;;
3109 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3110 $as_echo "print -r" >&6; } ;;
3111 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3112 $as_echo "cat" >&6; } ;;
3113 esac
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128 DEPDIR="${am__leading_dot}deps"
3129
3130 ac_config_commands="$ac_config_commands depfiles"
3131
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3133 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3134 cat > confinc.mk << 'END'
3135 am__doit:
3136 @echo this is the am__doit target >confinc.out
3137 .PHONY: am__doit
3138 END
3139 am__include="#"
3140 am__quote=
3141 # BSD make does it like this.
3142 echo '.include "confinc.mk" # ignored' > confmf.BSD
3143 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3144 echo 'include confinc.mk # ignored' > confmf.GNU
3145 _am_result=no
3146 for s in GNU BSD; do
3147 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3148 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3149 ac_status=$?
3150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151 (exit $ac_status); }
3152 case $?:`cat confinc.out 2>/dev/null` in #(
3153 '0:this is the am__doit target') :
3154 case $s in #(
3155 BSD) :
3156 am__include='.include' am__quote='"' ;; #(
3157 *) :
3158 am__include='include' am__quote='' ;;
3159 esac ;; #(
3160 *) :
3161 ;;
3162 esac
3163 if test "$am__include" != "#"; then
3164 _am_result="yes ($s style)"
3165 break
3166 fi
3167 done
3168 rm -f confinc.* confmf.*
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3170 $as_echo "${_am_result}" >&6; }
3171
3172 # Check whether --enable-dependency-tracking was given.
3173 if test "${enable_dependency_tracking+set}" = set; then :
3174 enableval=$enable_dependency_tracking;
3175 fi
3176
3177 if test "x$enable_dependency_tracking" != xno; then
3178 am_depcomp="$ac_aux_dir/depcomp"
3179 AMDEPBACKSLASH='\'
3180 am__nodep='_no'
3181 fi
3182 if test "x$enable_dependency_tracking" != xno; then
3183 AMDEP_TRUE=
3184 AMDEP_FALSE='#'
3185 else
3186 AMDEP_TRUE='#'
3187 AMDEP_FALSE=
3188 fi
3189
3190
3191 ac_ext=c
3192 ac_cpp='$CPP $CPPFLAGS'
3193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3196 if test -n "$ac_tool_prefix"; then
3197 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3198 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3200 $as_echo_n "checking for $ac_word... " >&6; }
3201 if ${ac_cv_prog_CC+:} false; then :
3202 $as_echo_n "(cached) " >&6
3203 else
3204 if test -n "$CC"; then
3205 ac_cv_prog_CC="$CC" # Let the user override the test.
3206 else
3207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3208 for as_dir in $PATH
3209 do
3210 IFS=$as_save_IFS
3211 test -z "$as_dir" && as_dir=.
3212 for ac_exec_ext in '' $ac_executable_extensions; do
3213 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3214 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3216 break 2
3217 fi
3218 done
3219 done
3220 IFS=$as_save_IFS
3221
3222 fi
3223 fi
3224 CC=$ac_cv_prog_CC
3225 if test -n "$CC"; then
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3227 $as_echo "$CC" >&6; }
3228 else
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3230 $as_echo "no" >&6; }
3231 fi
3232
3233
3234 fi
3235 if test -z "$ac_cv_prog_CC"; then
3236 ac_ct_CC=$CC
3237 # Extract the first word of "gcc", so it can be a program name with args.
3238 set dummy gcc; ac_word=$2
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3240 $as_echo_n "checking for $ac_word... " >&6; }
3241 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3242 $as_echo_n "(cached) " >&6
3243 else
3244 if test -n "$ac_ct_CC"; then
3245 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3246 else
3247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3248 for as_dir in $PATH
3249 do
3250 IFS=$as_save_IFS
3251 test -z "$as_dir" && as_dir=.
3252 for ac_exec_ext in '' $ac_executable_extensions; do
3253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3254 ac_cv_prog_ac_ct_CC="gcc"
3255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3256 break 2
3257 fi
3258 done
3259 done
3260 IFS=$as_save_IFS
3261
3262 fi
3263 fi
3264 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3265 if test -n "$ac_ct_CC"; then
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3267 $as_echo "$ac_ct_CC" >&6; }
3268 else
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3270 $as_echo "no" >&6; }
3271 fi
3272
3273 if test "x$ac_ct_CC" = x; then
3274 CC=""
3275 else
3276 case $cross_compiling:$ac_tool_warned in
3277 yes:)
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3279 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3280 ac_tool_warned=yes ;;
3281 esac
3282 CC=$ac_ct_CC
3283 fi
3284 else
3285 CC="$ac_cv_prog_CC"
3286 fi
3287
3288 if test -z "$CC"; then
3289 if test -n "$ac_tool_prefix"; then
3290 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3291 set dummy ${ac_tool_prefix}cc; ac_word=$2
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3293 $as_echo_n "checking for $ac_word... " >&6; }
3294 if ${ac_cv_prog_CC+:} false; then :
3295 $as_echo_n "(cached) " >&6
3296 else
3297 if test -n "$CC"; then
3298 ac_cv_prog_CC="$CC" # Let the user override the test.
3299 else
3300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3301 for as_dir in $PATH
3302 do
3303 IFS=$as_save_IFS
3304 test -z "$as_dir" && as_dir=.
3305 for ac_exec_ext in '' $ac_executable_extensions; do
3306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3307 ac_cv_prog_CC="${ac_tool_prefix}cc"
3308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3309 break 2
3310 fi
3311 done
3312 done
3313 IFS=$as_save_IFS
3314
3315 fi
3316 fi
3317 CC=$ac_cv_prog_CC
3318 if test -n "$CC"; then
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3320 $as_echo "$CC" >&6; }
3321 else
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3323 $as_echo "no" >&6; }
3324 fi
3325
3326
3327 fi
3328 fi
3329 if test -z "$CC"; then
3330 # Extract the first word of "cc", so it can be a program name with args.
3331 set dummy cc; ac_word=$2
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3333 $as_echo_n "checking for $ac_word... " >&6; }
3334 if ${ac_cv_prog_CC+:} false; then :
3335 $as_echo_n "(cached) " >&6
3336 else
3337 if test -n "$CC"; then
3338 ac_cv_prog_CC="$CC" # Let the user override the test.
3339 else
3340 ac_prog_rejected=no
3341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3342 for as_dir in $PATH
3343 do
3344 IFS=$as_save_IFS
3345 test -z "$as_dir" && as_dir=.
3346 for ac_exec_ext in '' $ac_executable_extensions; do
3347 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3348 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3349 ac_prog_rejected=yes
3350 continue
3351 fi
3352 ac_cv_prog_CC="cc"
3353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3354 break 2
3355 fi
3356 done
3357 done
3358 IFS=$as_save_IFS
3359
3360 if test $ac_prog_rejected = yes; then
3361 # We found a bogon in the path, so make sure we never use it.
3362 set dummy $ac_cv_prog_CC
3363 shift
3364 if test $# != 0; then
3365 # We chose a different compiler from the bogus one.
3366 # However, it has the same basename, so the bogon will be chosen
3367 # first if we set CC to just the basename; use the full file name.
3368 shift
3369 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3370 fi
3371 fi
3372 fi
3373 fi
3374 CC=$ac_cv_prog_CC
3375 if test -n "$CC"; then
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3377 $as_echo "$CC" >&6; }
3378 else
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3380 $as_echo "no" >&6; }
3381 fi
3382
3383
3384 fi
3385 if test -z "$CC"; then
3386 if test -n "$ac_tool_prefix"; then
3387 for ac_prog in cl.exe
3388 do
3389 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3390 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3392 $as_echo_n "checking for $ac_word... " >&6; }
3393 if ${ac_cv_prog_CC+:} false; then :
3394 $as_echo_n "(cached) " >&6
3395 else
3396 if test -n "$CC"; then
3397 ac_cv_prog_CC="$CC" # Let the user override the test.
3398 else
3399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3400 for as_dir in $PATH
3401 do
3402 IFS=$as_save_IFS
3403 test -z "$as_dir" && as_dir=.
3404 for ac_exec_ext in '' $ac_executable_extensions; do
3405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3406 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3408 break 2
3409 fi
3410 done
3411 done
3412 IFS=$as_save_IFS
3413
3414 fi
3415 fi
3416 CC=$ac_cv_prog_CC
3417 if test -n "$CC"; then
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3419 $as_echo "$CC" >&6; }
3420 else
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3422 $as_echo "no" >&6; }
3423 fi
3424
3425
3426 test -n "$CC" && break
3427 done
3428 fi
3429 if test -z "$CC"; then
3430 ac_ct_CC=$CC
3431 for ac_prog in cl.exe
3432 do
3433 # Extract the first word of "$ac_prog", so it can be a program name with args.
3434 set dummy $ac_prog; ac_word=$2
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3436 $as_echo_n "checking for $ac_word... " >&6; }
3437 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3438 $as_echo_n "(cached) " >&6
3439 else
3440 if test -n "$ac_ct_CC"; then
3441 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3442 else
3443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3444 for as_dir in $PATH
3445 do
3446 IFS=$as_save_IFS
3447 test -z "$as_dir" && as_dir=.
3448 for ac_exec_ext in '' $ac_executable_extensions; do
3449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3450 ac_cv_prog_ac_ct_CC="$ac_prog"
3451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3452 break 2
3453 fi
3454 done
3455 done
3456 IFS=$as_save_IFS
3457
3458 fi
3459 fi
3460 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3461 if test -n "$ac_ct_CC"; then
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3463 $as_echo "$ac_ct_CC" >&6; }
3464 else
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3466 $as_echo "no" >&6; }
3467 fi
3468
3469
3470 test -n "$ac_ct_CC" && break
3471 done
3472
3473 if test "x$ac_ct_CC" = x; then
3474 CC=""
3475 else
3476 case $cross_compiling:$ac_tool_warned in
3477 yes:)
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3479 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3480 ac_tool_warned=yes ;;
3481 esac
3482 CC=$ac_ct_CC
3483 fi
3484 fi
3485
3486 fi
3487
3488
3489 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3490 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3491 as_fn_error $? "no acceptable C compiler found in \$PATH
3492 See \`config.log' for more details" "$LINENO" 5; }
3493
3494 # Provide some information about the compiler.
3495 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3496 set X $ac_compile
3497 ac_compiler=$2
3498 for ac_option in --version -v -V -qversion; do
3499 { { ac_try="$ac_compiler $ac_option >&5"
3500 case "(($ac_try" in
3501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3502 *) ac_try_echo=$ac_try;;
3503 esac
3504 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3505 $as_echo "$ac_try_echo"; } >&5
3506 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3507 ac_status=$?
3508 if test -s conftest.err; then
3509 sed '10a\
3510 ... rest of stderr output deleted ...
3511 10q' conftest.err >conftest.er1
3512 cat conftest.er1 >&5
3513 fi
3514 rm -f conftest.er1 conftest.err
3515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3516 test $ac_status = 0; }
3517 done
3518
3519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3520 /* end confdefs.h. */
3521
3522 int
3523 main ()
3524 {
3525
3526 ;
3527 return 0;
3528 }
3529 _ACEOF
3530 ac_clean_files_save=$ac_clean_files
3531 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3532 # Try to create an executable without -o first, disregard a.out.
3533 # It will help us diagnose broken compilers, and finding out an intuition
3534 # of exeext.
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3536 $as_echo_n "checking whether the C compiler works... " >&6; }
3537 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3538
3539 # The possible output files:
3540 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3541
3542 ac_rmfiles=
3543 for ac_file in $ac_files
3544 do
3545 case $ac_file in
3546 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3547 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3548 esac
3549 done
3550 rm -f $ac_rmfiles
3551
3552 if { { ac_try="$ac_link_default"
3553 case "(($ac_try" in
3554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3555 *) ac_try_echo=$ac_try;;
3556 esac
3557 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3558 $as_echo "$ac_try_echo"; } >&5
3559 (eval "$ac_link_default") 2>&5
3560 ac_status=$?
3561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3562 test $ac_status = 0; }; then :
3563 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3564 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3565 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3566 # so that the user can short-circuit this test for compilers unknown to
3567 # Autoconf.
3568 for ac_file in $ac_files ''
3569 do
3570 test -f "$ac_file" || continue
3571 case $ac_file in
3572 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3573 ;;
3574 [ab].out )
3575 # We found the default executable, but exeext='' is most
3576 # certainly right.
3577 break;;
3578 *.* )
3579 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3580 then :; else
3581 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3582 fi
3583 # We set ac_cv_exeext here because the later test for it is not
3584 # safe: cross compilers may not add the suffix if given an `-o'
3585 # argument, so we may need to know it at that point already.
3586 # Even if this section looks crufty: it has the advantage of
3587 # actually working.
3588 break;;
3589 * )
3590 break;;
3591 esac
3592 done
3593 test "$ac_cv_exeext" = no && ac_cv_exeext=
3594
3595 else
3596 ac_file=''
3597 fi
3598 if test -z "$ac_file"; then :
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3600 $as_echo "no" >&6; }
3601 $as_echo "$as_me: failed program was:" >&5
3602 sed 's/^/| /' conftest.$ac_ext >&5
3603
3604 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3605 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3606 as_fn_error 77 "C compiler cannot create executables
3607 See \`config.log' for more details" "$LINENO" 5; }
3608 else
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3610 $as_echo "yes" >&6; }
3611 fi
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3613 $as_echo_n "checking for C compiler default output file name... " >&6; }
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3615 $as_echo "$ac_file" >&6; }
3616 ac_exeext=$ac_cv_exeext
3617
3618 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3619 ac_clean_files=$ac_clean_files_save
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3621 $as_echo_n "checking for suffix of executables... " >&6; }
3622 if { { ac_try="$ac_link"
3623 case "(($ac_try" in
3624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3625 *) ac_try_echo=$ac_try;;
3626 esac
3627 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3628 $as_echo "$ac_try_echo"; } >&5
3629 (eval "$ac_link") 2>&5
3630 ac_status=$?
3631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3632 test $ac_status = 0; }; then :
3633 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3634 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3635 # work properly (i.e., refer to `conftest.exe'), while it won't with
3636 # `rm'.
3637 for ac_file in conftest.exe conftest conftest.*; do
3638 test -f "$ac_file" || continue
3639 case $ac_file in
3640 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3641 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3642 break;;
3643 * ) break;;
3644 esac
3645 done
3646 else
3647 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3648 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3649 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3650 See \`config.log' for more details" "$LINENO" 5; }
3651 fi
3652 rm -f conftest conftest$ac_cv_exeext
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3654 $as_echo "$ac_cv_exeext" >&6; }
3655
3656 rm -f conftest.$ac_ext
3657 EXEEXT=$ac_cv_exeext
3658 ac_exeext=$EXEEXT
3659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3660 /* end confdefs.h. */
3661 #include <stdio.h>
3662 int
3663 main ()
3664 {
3665 FILE *f = fopen ("conftest.out", "w");
3666 return ferror (f) || fclose (f) != 0;
3667
3668 ;
3669 return 0;
3670 }
3671 _ACEOF
3672 ac_clean_files="$ac_clean_files conftest.out"
3673 # Check that the compiler produces executables we can run. If not, either
3674 # the compiler is broken, or we cross compile.
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3676 $as_echo_n "checking whether we are cross compiling... " >&6; }
3677 if test "$cross_compiling" != yes; then
3678 { { ac_try="$ac_link"
3679 case "(($ac_try" in
3680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3681 *) ac_try_echo=$ac_try;;
3682 esac
3683 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3684 $as_echo "$ac_try_echo"; } >&5
3685 (eval "$ac_link") 2>&5
3686 ac_status=$?
3687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3688 test $ac_status = 0; }
3689 if { ac_try='./conftest$ac_cv_exeext'
3690 { { case "(($ac_try" in
3691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3692 *) ac_try_echo=$ac_try;;
3693 esac
3694 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3695 $as_echo "$ac_try_echo"; } >&5
3696 (eval "$ac_try") 2>&5
3697 ac_status=$?
3698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3699 test $ac_status = 0; }; }; then
3700 cross_compiling=no
3701 else
3702 if test "$cross_compiling" = maybe; then
3703 cross_compiling=yes
3704 else
3705 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3706 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3707 as_fn_error $? "cannot run C compiled programs.
3708 If you meant to cross compile, use \`--host'.
3709 See \`config.log' for more details" "$LINENO" 5; }
3710 fi
3711 fi
3712 fi
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3714 $as_echo "$cross_compiling" >&6; }
3715
3716 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3717 ac_clean_files=$ac_clean_files_save
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3719 $as_echo_n "checking for suffix of object files... " >&6; }
3720 if ${ac_cv_objext+:} false; then :
3721 $as_echo_n "(cached) " >&6
3722 else
3723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3724 /* end confdefs.h. */
3725
3726 int
3727 main ()
3728 {
3729
3730 ;
3731 return 0;
3732 }
3733 _ACEOF
3734 rm -f conftest.o conftest.obj
3735 if { { ac_try="$ac_compile"
3736 case "(($ac_try" in
3737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3738 *) ac_try_echo=$ac_try;;
3739 esac
3740 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3741 $as_echo "$ac_try_echo"; } >&5
3742 (eval "$ac_compile") 2>&5
3743 ac_status=$?
3744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3745 test $ac_status = 0; }; then :
3746 for ac_file in conftest.o conftest.obj conftest.*; do
3747 test -f "$ac_file" || continue;
3748 case $ac_file in
3749 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3750 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3751 break;;
3752 esac
3753 done
3754 else
3755 $as_echo "$as_me: failed program was:" >&5
3756 sed 's/^/| /' conftest.$ac_ext >&5
3757
3758 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3759 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3760 as_fn_error $? "cannot compute suffix of object files: cannot compile
3761 See \`config.log' for more details" "$LINENO" 5; }
3762 fi
3763 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3764 fi
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3766 $as_echo "$ac_cv_objext" >&6; }
3767 OBJEXT=$ac_cv_objext
3768 ac_objext=$OBJEXT
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3770 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3771 if ${ac_cv_c_compiler_gnu+:} false; then :
3772 $as_echo_n "(cached) " >&6
3773 else
3774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3775 /* end confdefs.h. */
3776
3777 int
3778 main ()
3779 {
3780 #ifndef __GNUC__
3781 choke me
3782 #endif
3783
3784 ;
3785 return 0;
3786 }
3787 _ACEOF
3788 if ac_fn_c_try_compile "$LINENO"; then :
3789 ac_compiler_gnu=yes
3790 else
3791 ac_compiler_gnu=no
3792 fi
3793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3794 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3795
3796 fi
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3798 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3799 if test $ac_compiler_gnu = yes; then
3800 GCC=yes
3801 else
3802 GCC=
3803 fi
3804 ac_test_CFLAGS=${CFLAGS+set}
3805 ac_save_CFLAGS=$CFLAGS
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3807 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3808 if ${ac_cv_prog_cc_g+:} false; then :
3809 $as_echo_n "(cached) " >&6
3810 else
3811 ac_save_c_werror_flag=$ac_c_werror_flag
3812 ac_c_werror_flag=yes
3813 ac_cv_prog_cc_g=no
3814 CFLAGS="-g"
3815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3816 /* end confdefs.h. */
3817
3818 int
3819 main ()
3820 {
3821
3822 ;
3823 return 0;
3824 }
3825 _ACEOF
3826 if ac_fn_c_try_compile "$LINENO"; then :
3827 ac_cv_prog_cc_g=yes
3828 else
3829 CFLAGS=""
3830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3831 /* end confdefs.h. */
3832
3833 int
3834 main ()
3835 {
3836
3837 ;
3838 return 0;
3839 }
3840 _ACEOF
3841 if ac_fn_c_try_compile "$LINENO"; then :
3842
3843 else
3844 ac_c_werror_flag=$ac_save_c_werror_flag
3845 CFLAGS="-g"
3846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3847 /* end confdefs.h. */
3848
3849 int
3850 main ()
3851 {
3852
3853 ;
3854 return 0;
3855 }
3856 _ACEOF
3857 if ac_fn_c_try_compile "$LINENO"; then :
3858 ac_cv_prog_cc_g=yes
3859 fi
3860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3861 fi
3862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3863 fi
3864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3865 ac_c_werror_flag=$ac_save_c_werror_flag
3866 fi
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3868 $as_echo "$ac_cv_prog_cc_g" >&6; }
3869 if test "$ac_test_CFLAGS" = set; then
3870 CFLAGS=$ac_save_CFLAGS
3871 elif test $ac_cv_prog_cc_g = yes; then
3872 if test "$GCC" = yes; then
3873 CFLAGS="-g -O2"
3874 else
3875 CFLAGS="-g"
3876 fi
3877 else
3878 if test "$GCC" = yes; then
3879 CFLAGS="-O2"
3880 else
3881 CFLAGS=
3882 fi
3883 fi
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3885 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3886 if ${ac_cv_prog_cc_c89+:} false; then :
3887 $as_echo_n "(cached) " >&6
3888 else
3889 ac_cv_prog_cc_c89=no
3890 ac_save_CC=$CC
3891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3892 /* end confdefs.h. */
3893 #include <stdarg.h>
3894 #include <stdio.h>
3895 struct stat;
3896 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3897 struct buf { int x; };
3898 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3899 static char *e (p, i)
3900 char **p;
3901 int i;
3902 {
3903 return p[i];
3904 }
3905 static char *f (char * (*g) (char **, int), char **p, ...)
3906 {
3907 char *s;
3908 va_list v;
3909 va_start (v,p);
3910 s = g (p, va_arg (v,int));
3911 va_end (v);
3912 return s;
3913 }
3914
3915 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3916 function prototypes and stuff, but not '\xHH' hex character constants.
3917 These don't provoke an error unfortunately, instead are silently treated
3918 as 'x'. The following induces an error, until -std is added to get
3919 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3920 array size at least. It's necessary to write '\x00'==0 to get something
3921 that's true only with -std. */
3922 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3923
3924 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3925 inside strings and character constants. */
3926 #define FOO(x) 'x'
3927 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3928
3929 int test (int i, double x);
3930 struct s1 {int (*f) (int a);};
3931 struct s2 {int (*f) (double a);};
3932 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3933 int argc;
3934 char **argv;
3935 int
3936 main ()
3937 {
3938 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3939 ;
3940 return 0;
3941 }
3942 _ACEOF
3943 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3944 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3945 do
3946 CC="$ac_save_CC $ac_arg"
3947 if ac_fn_c_try_compile "$LINENO"; then :
3948 ac_cv_prog_cc_c89=$ac_arg
3949 fi
3950 rm -f core conftest.err conftest.$ac_objext
3951 test "x$ac_cv_prog_cc_c89" != "xno" && break
3952 done
3953 rm -f conftest.$ac_ext
3954 CC=$ac_save_CC
3955
3956 fi
3957 # AC_CACHE_VAL
3958 case "x$ac_cv_prog_cc_c89" in
3959 x)
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3961 $as_echo "none needed" >&6; } ;;
3962 xno)
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3964 $as_echo "unsupported" >&6; } ;;
3965 *)
3966 CC="$CC $ac_cv_prog_cc_c89"
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3968 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3969 esac
3970 if test "x$ac_cv_prog_cc_c89" != xno; then :
3971
3972 fi
3973
3974 ac_ext=c
3975 ac_cpp='$CPP $CPPFLAGS'
3976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3979
3980 ac_ext=c
3981 ac_cpp='$CPP $CPPFLAGS'
3982 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3983 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3984 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3986 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3987 if ${am_cv_prog_cc_c_o+:} false; then :
3988 $as_echo_n "(cached) " >&6
3989 else
3990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3991 /* end confdefs.h. */
3992
3993 int
3994 main ()
3995 {
3996
3997 ;
3998 return 0;
3999 }
4000 _ACEOF
4001 # Make sure it works both with $CC and with simple cc.
4002 # Following AC_PROG_CC_C_O, we do the test twice because some
4003 # compilers refuse to overwrite an existing .o file with -o,
4004 # though they will create one.
4005 am_cv_prog_cc_c_o=yes
4006 for am_i in 1 2; do
4007 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4008 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4009 ac_status=$?
4010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4011 (exit $ac_status); } \
4012 && test -f conftest2.$ac_objext; then
4013 : OK
4014 else
4015 am_cv_prog_cc_c_o=no
4016 break
4017 fi
4018 done
4019 rm -f core conftest*
4020 unset am_i
4021 fi
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4023 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4024 if test "$am_cv_prog_cc_c_o" != yes; then
4025 # Losing compiler, so override with the script.
4026 # FIXME: It is wrong to rewrite CC.
4027 # But if we don't then we get into trouble of one sort or another.
4028 # A longer-term fix would be to have automake use am__CC in this case,
4029 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4030 CC="$am_aux_dir/compile $CC"
4031 fi
4032 ac_ext=c
4033 ac_cpp='$CPP $CPPFLAGS'
4034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4037
4038
4039 depcc="$CC" am_compiler_list=
4040
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4042 $as_echo_n "checking dependency style of $depcc... " >&6; }
4043 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4044 $as_echo_n "(cached) " >&6
4045 else
4046 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4047 # We make a subdir and do the tests there. Otherwise we can end up
4048 # making bogus files that we don't know about and never remove. For
4049 # instance it was reported that on HP-UX the gcc test will end up
4050 # making a dummy file named 'D' -- because '-MD' means "put the output
4051 # in D".
4052 rm -rf conftest.dir
4053 mkdir conftest.dir
4054 # Copy depcomp to subdir because otherwise we won't find it if we're
4055 # using a relative directory.
4056 cp "$am_depcomp" conftest.dir
4057 cd conftest.dir
4058 # We will build objects and dependencies in a subdirectory because
4059 # it helps to detect inapplicable dependency modes. For instance
4060 # both Tru64's cc and ICC support -MD to output dependencies as a
4061 # side effect of compilation, but ICC will put the dependencies in
4062 # the current directory while Tru64 will put them in the object
4063 # directory.
4064 mkdir sub
4065
4066 am_cv_CC_dependencies_compiler_type=none
4067 if test "$am_compiler_list" = ""; then
4068 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4069 fi
4070 am__universal=false
4071 case " $depcc " in #(
4072 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4073 esac
4074
4075 for depmode in $am_compiler_list; do
4076 # Setup a source with many dependencies, because some compilers
4077 # like to wrap large dependency lists on column 80 (with \), and
4078 # we should not choose a depcomp mode which is confused by this.
4079 #
4080 # We need to recreate these files for each test, as the compiler may
4081 # overwrite some of them when testing with obscure command lines.
4082 # This happens at least with the AIX C compiler.
4083 : > sub/conftest.c
4084 for i in 1 2 3 4 5 6; do
4085 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4086 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4087 # Solaris 10 /bin/sh.
4088 echo '/* dummy */' > sub/conftst$i.h
4089 done
4090 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4091
4092 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4093 # mode. It turns out that the SunPro C++ compiler does not properly
4094 # handle '-M -o', and we need to detect this. Also, some Intel
4095 # versions had trouble with output in subdirs.
4096 am__obj=sub/conftest.${OBJEXT-o}
4097 am__minus_obj="-o $am__obj"
4098 case $depmode in
4099 gcc)
4100 # This depmode causes a compiler race in universal mode.
4101 test "$am__universal" = false || continue
4102 ;;
4103 nosideeffect)
4104 # After this tag, mechanisms are not by side-effect, so they'll
4105 # only be used when explicitly requested.
4106 if test "x$enable_dependency_tracking" = xyes; then
4107 continue
4108 else
4109 break
4110 fi
4111 ;;
4112 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4113 # This compiler won't grok '-c -o', but also, the minuso test has
4114 # not run yet. These depmodes are late enough in the game, and
4115 # so weak that their functioning should not be impacted.
4116 am__obj=conftest.${OBJEXT-o}
4117 am__minus_obj=
4118 ;;
4119 none) break ;;
4120 esac
4121 if depmode=$depmode \
4122 source=sub/conftest.c object=$am__obj \
4123 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4124 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4125 >/dev/null 2>conftest.err &&
4126 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4127 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4128 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4129 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4130 # icc doesn't choke on unknown options, it will just issue warnings
4131 # or remarks (even with -Werror). So we grep stderr for any message
4132 # that says an option was ignored or not supported.
4133 # When given -MP, icc 7.0 and 7.1 complain thusly:
4134 # icc: Command line warning: ignoring option '-M'; no argument required
4135 # The diagnosis changed in icc 8.0:
4136 # icc: Command line remark: option '-MP' not supported
4137 if (grep 'ignoring option' conftest.err ||
4138 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4139 am_cv_CC_dependencies_compiler_type=$depmode
4140 break
4141 fi
4142 fi
4143 done
4144
4145 cd ..
4146 rm -rf conftest.dir
4147 else
4148 am_cv_CC_dependencies_compiler_type=none
4149 fi
4150
4151 fi
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4153 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4154 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4155
4156 if
4157 test "x$enable_dependency_tracking" != xno \
4158 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4159 am__fastdepCC_TRUE=
4160 am__fastdepCC_FALSE='#'
4161 else
4162 am__fastdepCC_TRUE='#'
4163 am__fastdepCC_FALSE=
4164 fi
4165
4166
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4168 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4169 if ${ac_cv_path_SED+:} false; then :
4170 $as_echo_n "(cached) " >&6
4171 else
4172 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4173 for ac_i in 1 2 3 4 5 6 7; do
4174 ac_script="$ac_script$as_nl$ac_script"
4175 done
4176 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4177 { ac_script=; unset ac_script;}
4178 if test -z "$SED"; then
4179 ac_path_SED_found=false
4180 # Loop through the user's path and test for each of PROGNAME-LIST
4181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4182 for as_dir in $PATH
4183 do
4184 IFS=$as_save_IFS
4185 test -z "$as_dir" && as_dir=.
4186 for ac_prog in sed gsed; do
4187 for ac_exec_ext in '' $ac_executable_extensions; do
4188 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4189 as_fn_executable_p "$ac_path_SED" || continue
4190 # Check for GNU ac_path_SED and select it if it is found.
4191 # Check for GNU $ac_path_SED
4192 case `"$ac_path_SED" --version 2>&1` in
4193 *GNU*)
4194 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4195 *)
4196 ac_count=0
4197 $as_echo_n 0123456789 >"conftest.in"
4198 while :
4199 do
4200 cat "conftest.in" "conftest.in" >"conftest.tmp"
4201 mv "conftest.tmp" "conftest.in"
4202 cp "conftest.in" "conftest.nl"
4203 $as_echo '' >> "conftest.nl"
4204 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4205 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4206 as_fn_arith $ac_count + 1 && ac_count=$as_val
4207 if test $ac_count -gt ${ac_path_SED_max-0}; then
4208 # Best one so far, save it but keep looking for a better one
4209 ac_cv_path_SED="$ac_path_SED"
4210 ac_path_SED_max=$ac_count
4211 fi
4212 # 10*(2^10) chars as input seems more than enough
4213 test $ac_count -gt 10 && break
4214 done
4215 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4216 esac
4217
4218 $ac_path_SED_found && break 3
4219 done
4220 done
4221 done
4222 IFS=$as_save_IFS
4223 if test -z "$ac_cv_path_SED"; then
4224 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4225 fi
4226 else
4227 ac_cv_path_SED=$SED
4228 fi
4229
4230 fi
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4232 $as_echo "$ac_cv_path_SED" >&6; }
4233 SED="$ac_cv_path_SED"
4234 rm -f conftest.sed
4235
4236 test -z "$SED" && SED=sed
4237 Xsed="$SED -e 1s/^X//"
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4250 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4251 if ${ac_cv_path_GREP+:} false; then :
4252 $as_echo_n "(cached) " >&6
4253 else
4254 if test -z "$GREP"; then
4255 ac_path_GREP_found=false
4256 # Loop through the user's path and test for each of PROGNAME-LIST
4257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4258 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4259 do
4260 IFS=$as_save_IFS
4261 test -z "$as_dir" && as_dir=.
4262 for ac_prog in grep ggrep; do
4263 for ac_exec_ext in '' $ac_executable_extensions; do
4264 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4265 as_fn_executable_p "$ac_path_GREP" || continue
4266 # Check for GNU ac_path_GREP and select it if it is found.
4267 # Check for GNU $ac_path_GREP
4268 case `"$ac_path_GREP" --version 2>&1` in
4269 *GNU*)
4270 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4271 *)
4272 ac_count=0
4273 $as_echo_n 0123456789 >"conftest.in"
4274 while :
4275 do
4276 cat "conftest.in" "conftest.in" >"conftest.tmp"
4277 mv "conftest.tmp" "conftest.in"
4278 cp "conftest.in" "conftest.nl"
4279 $as_echo 'GREP' >> "conftest.nl"
4280 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4281 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4282 as_fn_arith $ac_count + 1 && ac_count=$as_val
4283 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4284 # Best one so far, save it but keep looking for a better one
4285 ac_cv_path_GREP="$ac_path_GREP"
4286 ac_path_GREP_max=$ac_count
4287 fi
4288 # 10*(2^10) chars as input seems more than enough
4289 test $ac_count -gt 10 && break
4290 done
4291 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4292 esac
4293
4294 $ac_path_GREP_found && break 3
4295 done
4296 done
4297 done
4298 IFS=$as_save_IFS
4299 if test -z "$ac_cv_path_GREP"; then
4300 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4301 fi
4302 else
4303 ac_cv_path_GREP=$GREP
4304 fi
4305
4306 fi
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4308 $as_echo "$ac_cv_path_GREP" >&6; }
4309 GREP="$ac_cv_path_GREP"
4310
4311
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4313 $as_echo_n "checking for egrep... " >&6; }
4314 if ${ac_cv_path_EGREP+:} false; then :
4315 $as_echo_n "(cached) " >&6
4316 else
4317 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4318 then ac_cv_path_EGREP="$GREP -E"
4319 else
4320 if test -z "$EGREP"; then
4321 ac_path_EGREP_found=false
4322 # Loop through the user's path and test for each of PROGNAME-LIST
4323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4324 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4325 do
4326 IFS=$as_save_IFS
4327 test -z "$as_dir" && as_dir=.
4328 for ac_prog in egrep; do
4329 for ac_exec_ext in '' $ac_executable_extensions; do
4330 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4331 as_fn_executable_p "$ac_path_EGREP" || continue
4332 # Check for GNU ac_path_EGREP and select it if it is found.
4333 # Check for GNU $ac_path_EGREP
4334 case `"$ac_path_EGREP" --version 2>&1` in
4335 *GNU*)
4336 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4337 *)
4338 ac_count=0
4339 $as_echo_n 0123456789 >"conftest.in"
4340 while :
4341 do
4342 cat "conftest.in" "conftest.in" >"conftest.tmp"
4343 mv "conftest.tmp" "conftest.in"
4344 cp "conftest.in" "conftest.nl"
4345 $as_echo 'EGREP' >> "conftest.nl"
4346 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4347 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4348 as_fn_arith $ac_count + 1 && ac_count=$as_val
4349 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4350 # Best one so far, save it but keep looking for a better one
4351 ac_cv_path_EGREP="$ac_path_EGREP"
4352 ac_path_EGREP_max=$ac_count
4353 fi
4354 # 10*(2^10) chars as input seems more than enough
4355 test $ac_count -gt 10 && break
4356 done
4357 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4358 esac
4359
4360 $ac_path_EGREP_found && break 3
4361 done
4362 done
4363 done
4364 IFS=$as_save_IFS
4365 if test -z "$ac_cv_path_EGREP"; then
4366 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4367 fi
4368 else
4369 ac_cv_path_EGREP=$EGREP
4370 fi
4371
4372 fi
4373 fi
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4375 $as_echo "$ac_cv_path_EGREP" >&6; }
4376 EGREP="$ac_cv_path_EGREP"
4377
4378
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4380 $as_echo_n "checking for fgrep... " >&6; }
4381 if ${ac_cv_path_FGREP+:} false; then :
4382 $as_echo_n "(cached) " >&6
4383 else
4384 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4385 then ac_cv_path_FGREP="$GREP -F"
4386 else
4387 if test -z "$FGREP"; then
4388 ac_path_FGREP_found=false
4389 # Loop through the user's path and test for each of PROGNAME-LIST
4390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4391 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4392 do
4393 IFS=$as_save_IFS
4394 test -z "$as_dir" && as_dir=.
4395 for ac_prog in fgrep; do
4396 for ac_exec_ext in '' $ac_executable_extensions; do
4397 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4398 as_fn_executable_p "$ac_path_FGREP" || continue
4399 # Check for GNU ac_path_FGREP and select it if it is found.
4400 # Check for GNU $ac_path_FGREP
4401 case `"$ac_path_FGREP" --version 2>&1` in
4402 *GNU*)
4403 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4404 *)
4405 ac_count=0
4406 $as_echo_n 0123456789 >"conftest.in"
4407 while :
4408 do
4409 cat "conftest.in" "conftest.in" >"conftest.tmp"
4410 mv "conftest.tmp" "conftest.in"
4411 cp "conftest.in" "conftest.nl"
4412 $as_echo 'FGREP' >> "conftest.nl"
4413 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4414 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4415 as_fn_arith $ac_count + 1 && ac_count=$as_val
4416 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4417 # Best one so far, save it but keep looking for a better one
4418 ac_cv_path_FGREP="$ac_path_FGREP"
4419 ac_path_FGREP_max=$ac_count
4420 fi
4421 # 10*(2^10) chars as input seems more than enough
4422 test $ac_count -gt 10 && break
4423 done
4424 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4425 esac
4426
4427 $ac_path_FGREP_found && break 3
4428 done
4429 done
4430 done
4431 IFS=$as_save_IFS
4432 if test -z "$ac_cv_path_FGREP"; then
4433 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4434 fi
4435 else
4436 ac_cv_path_FGREP=$FGREP
4437 fi
4438
4439 fi
4440 fi
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4442 $as_echo "$ac_cv_path_FGREP" >&6; }
4443 FGREP="$ac_cv_path_FGREP"
4444
4445
4446 test -z "$GREP" && GREP=grep
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466 # Check whether --with-gnu-ld was given.
4467 if test "${with_gnu_ld+set}" = set; then :
4468 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4469 else
4470 with_gnu_ld=no
4471 fi
4472
4473 ac_prog=ld
4474 if test yes = "$GCC"; then
4475 # Check if gcc -print-prog-name=ld gives a path.
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4477 $as_echo_n "checking for ld used by $CC... " >&6; }
4478 case $host in
4479 *-*-mingw*)
4480 # gcc leaves a trailing carriage return, which upsets mingw
4481 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4482 *)
4483 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4484 esac
4485 case $ac_prog in
4486 # Accept absolute paths.
4487 [\\/]* | ?:[\\/]*)
4488 re_direlt='/[^/][^/]*/\.\./'
4489 # Canonicalize the pathname of ld
4490 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4491 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4492 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4493 done
4494 test -z "$LD" && LD=$ac_prog
4495 ;;
4496 "")
4497 # If it fails, then pretend we aren't using GCC.
4498 ac_prog=ld
4499 ;;
4500 *)
4501 # If it is relative, then search for the first ld in PATH.
4502 with_gnu_ld=unknown
4503 ;;
4504 esac
4505 elif test yes = "$with_gnu_ld"; then
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4507 $as_echo_n "checking for GNU ld... " >&6; }
4508 else
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4510 $as_echo_n "checking for non-GNU ld... " >&6; }
4511 fi
4512 if ${lt_cv_path_LD+:} false; then :
4513 $as_echo_n "(cached) " >&6
4514 else
4515 if test -z "$LD"; then
4516 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4517 for ac_dir in $PATH; do
4518 IFS=$lt_save_ifs
4519 test -z "$ac_dir" && ac_dir=.
4520 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4521 lt_cv_path_LD=$ac_dir/$ac_prog
4522 # Check to see if the program is GNU ld. I'd rather use --version,
4523 # but apparently some variants of GNU ld only accept -v.
4524 # Break only if it was the GNU/non-GNU ld that we prefer.
4525 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4526 *GNU* | *'with BFD'*)
4527 test no != "$with_gnu_ld" && break
4528 ;;
4529 *)
4530 test yes != "$with_gnu_ld" && break
4531 ;;
4532 esac
4533 fi
4534 done
4535 IFS=$lt_save_ifs
4536 else
4537 lt_cv_path_LD=$LD # Let the user override the test with a path.
4538 fi
4539 fi
4540
4541 LD=$lt_cv_path_LD
4542 if test -n "$LD"; then
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4544 $as_echo "$LD" >&6; }
4545 else
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4547 $as_echo "no" >&6; }
4548 fi
4549 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4551 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4552 if ${lt_cv_prog_gnu_ld+:} false; then :
4553 $as_echo_n "(cached) " >&6
4554 else
4555 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4556 case `$LD -v 2>&1 </dev/null` in
4557 *GNU* | *'with BFD'*)
4558 lt_cv_prog_gnu_ld=yes
4559 ;;
4560 *)
4561 lt_cv_prog_gnu_ld=no
4562 ;;
4563 esac
4564 fi
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4566 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4567 with_gnu_ld=$lt_cv_prog_gnu_ld
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4578 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4579 if ${lt_cv_path_NM+:} false; then :
4580 $as_echo_n "(cached) " >&6
4581 else
4582 if test -n "$NM"; then
4583 # Let the user override the test.
4584 lt_cv_path_NM=$NM
4585 else
4586 lt_nm_to_check=${ac_tool_prefix}nm
4587 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4588 lt_nm_to_check="$lt_nm_to_check nm"
4589 fi
4590 for lt_tmp_nm in $lt_nm_to_check; do
4591 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4592 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4593 IFS=$lt_save_ifs
4594 test -z "$ac_dir" && ac_dir=.
4595 tmp_nm=$ac_dir/$lt_tmp_nm
4596 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4597 # Check to see if the nm accepts a BSD-compat flag.
4598 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4599 # nm: unknown option "B" ignored
4600 # Tru64's nm complains that /dev/null is an invalid object file
4601 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4602 case $build_os in
4603 mingw*) lt_bad_file=conftest.nm/nofile ;;
4604 *) lt_bad_file=/dev/null ;;
4605 esac
4606 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4607 *$lt_bad_file* | *'Invalid file or object type'*)
4608 lt_cv_path_NM="$tmp_nm -B"
4609 break 2
4610 ;;
4611 *)
4612 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4613 */dev/null*)
4614 lt_cv_path_NM="$tmp_nm -p"
4615 break 2
4616 ;;
4617 *)
4618 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4619 continue # so that we can try to find one that supports BSD flags
4620 ;;
4621 esac
4622 ;;
4623 esac
4624 fi
4625 done
4626 IFS=$lt_save_ifs
4627 done
4628 : ${lt_cv_path_NM=no}
4629 fi
4630 fi
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4632 $as_echo "$lt_cv_path_NM" >&6; }
4633 if test no != "$lt_cv_path_NM"; then
4634 NM=$lt_cv_path_NM
4635 else
4636 # Didn't find any BSD compatible name lister, look for dumpbin.
4637 if test -n "$DUMPBIN"; then :
4638 # Let the user override the test.
4639 else
4640 if test -n "$ac_tool_prefix"; then
4641 for ac_prog in dumpbin "link -dump"
4642 do
4643 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4644 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4646 $as_echo_n "checking for $ac_word... " >&6; }
4647 if ${ac_cv_prog_DUMPBIN+:} false; then :
4648 $as_echo_n "(cached) " >&6
4649 else
4650 if test -n "$DUMPBIN"; then
4651 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4652 else
4653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4654 for as_dir in $PATH
4655 do
4656 IFS=$as_save_IFS
4657 test -z "$as_dir" && as_dir=.
4658 for ac_exec_ext in '' $ac_executable_extensions; do
4659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4660 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4662 break 2
4663 fi
4664 done
4665 done
4666 IFS=$as_save_IFS
4667
4668 fi
4669 fi
4670 DUMPBIN=$ac_cv_prog_DUMPBIN
4671 if test -n "$DUMPBIN"; then
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4673 $as_echo "$DUMPBIN" >&6; }
4674 else
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4676 $as_echo "no" >&6; }
4677 fi
4678
4679
4680 test -n "$DUMPBIN" && break
4681 done
4682 fi
4683 if test -z "$DUMPBIN"; then
4684 ac_ct_DUMPBIN=$DUMPBIN
4685 for ac_prog in dumpbin "link -dump"
4686 do
4687 # Extract the first word of "$ac_prog", so it can be a program name with args.
4688 set dummy $ac_prog; ac_word=$2
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4690 $as_echo_n "checking for $ac_word... " >&6; }
4691 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4692 $as_echo_n "(cached) " >&6
4693 else
4694 if test -n "$ac_ct_DUMPBIN"; then
4695 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4696 else
4697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4698 for as_dir in $PATH
4699 do
4700 IFS=$as_save_IFS
4701 test -z "$as_dir" && as_dir=.
4702 for ac_exec_ext in '' $ac_executable_extensions; do
4703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4704 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4706 break 2
4707 fi
4708 done
4709 done
4710 IFS=$as_save_IFS
4711
4712 fi
4713 fi
4714 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4715 if test -n "$ac_ct_DUMPBIN"; then
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4717 $as_echo "$ac_ct_DUMPBIN" >&6; }
4718 else
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4720 $as_echo "no" >&6; }
4721 fi
4722
4723
4724 test -n "$ac_ct_DUMPBIN" && break
4725 done
4726
4727 if test "x$ac_ct_DUMPBIN" = x; then
4728 DUMPBIN=":"
4729 else
4730 case $cross_compiling:$ac_tool_warned in
4731 yes:)
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4733 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4734 ac_tool_warned=yes ;;
4735 esac
4736 DUMPBIN=$ac_ct_DUMPBIN
4737 fi
4738 fi
4739
4740 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4741 *COFF*)
4742 DUMPBIN="$DUMPBIN -symbols -headers"
4743 ;;
4744 *)
4745 DUMPBIN=:
4746 ;;
4747 esac
4748 fi
4749
4750 if test : != "$DUMPBIN"; then
4751 NM=$DUMPBIN
4752 fi
4753 fi
4754 test -z "$NM" && NM=nm
4755
4756
4757
4758
4759
4760
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4762 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4763 if ${lt_cv_nm_interface+:} false; then :
4764 $as_echo_n "(cached) " >&6
4765 else
4766 lt_cv_nm_interface="BSD nm"
4767 echo "int some_variable = 0;" > conftest.$ac_ext
4768 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4769 (eval "$ac_compile" 2>conftest.err)
4770 cat conftest.err >&5
4771 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4772 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4773 cat conftest.err >&5
4774 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4775 cat conftest.out >&5
4776 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4777 lt_cv_nm_interface="MS dumpbin"
4778 fi
4779 rm -f conftest*
4780 fi
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4782 $as_echo "$lt_cv_nm_interface" >&6; }
4783
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4785 $as_echo_n "checking whether ln -s works... " >&6; }
4786 LN_S=$as_ln_s
4787 if test "$LN_S" = "ln -s"; then
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4789 $as_echo "yes" >&6; }
4790 else
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4792 $as_echo "no, using $LN_S" >&6; }
4793 fi
4794
4795 # find the maximum length of command line arguments
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4797 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4798 if ${lt_cv_sys_max_cmd_len+:} false; then :
4799 $as_echo_n "(cached) " >&6
4800 else
4801 i=0
4802 teststring=ABCD
4803
4804 case $build_os in
4805 msdosdjgpp*)
4806 # On DJGPP, this test can blow up pretty badly due to problems in libc
4807 # (any single argument exceeding 2000 bytes causes a buffer overrun
4808 # during glob expansion). Even if it were fixed, the result of this
4809 # check would be larger than it should be.
4810 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4811 ;;
4812
4813 gnu*)
4814 # Under GNU Hurd, this test is not required because there is
4815 # no limit to the length of command line arguments.
4816 # Libtool will interpret -1 as no limit whatsoever
4817 lt_cv_sys_max_cmd_len=-1;
4818 ;;
4819
4820 cygwin* | mingw* | cegcc*)
4821 # On Win9x/ME, this test blows up -- it succeeds, but takes
4822 # about 5 minutes as the teststring grows exponentially.
4823 # Worse, since 9x/ME are not pre-emptively multitasking,
4824 # you end up with a "frozen" computer, even though with patience
4825 # the test eventually succeeds (with a max line length of 256k).
4826 # Instead, let's just punt: use the minimum linelength reported by
4827 # all of the supported platforms: 8192 (on NT/2K/XP).
4828 lt_cv_sys_max_cmd_len=8192;
4829 ;;
4830
4831 mint*)
4832 # On MiNT this can take a long time and run out of memory.
4833 lt_cv_sys_max_cmd_len=8192;
4834 ;;
4835
4836 amigaos*)
4837 # On AmigaOS with pdksh, this test takes hours, literally.
4838 # So we just punt and use a minimum line length of 8192.
4839 lt_cv_sys_max_cmd_len=8192;
4840 ;;
4841
4842 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4843 # This has been around since 386BSD, at least. Likely further.
4844 if test -x /sbin/sysctl; then
4845 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4846 elif test -x /usr/sbin/sysctl; then
4847 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4848 else
4849 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4850 fi
4851 # And add a safety zone
4852 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4853 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4854 ;;
4855
4856 interix*)
4857 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4858 lt_cv_sys_max_cmd_len=196608
4859 ;;
4860
4861 os2*)
4862 # The test takes a long time on OS/2.
4863 lt_cv_sys_max_cmd_len=8192
4864 ;;
4865
4866 osf*)
4867 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4868 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4869 # nice to cause kernel panics so lets avoid the loop below.
4870 # First set a reasonable default.
4871 lt_cv_sys_max_cmd_len=16384
4872 #
4873 if test -x /sbin/sysconfig; then
4874 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4875 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4876 esac
4877 fi
4878 ;;
4879 sco3.2v5*)
4880 lt_cv_sys_max_cmd_len=102400
4881 ;;
4882 sysv5* | sco5v6* | sysv4.2uw2*)
4883 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4884 if test -n "$kargmax"; then
4885 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4886 else
4887 lt_cv_sys_max_cmd_len=32768
4888 fi
4889 ;;
4890 *)
4891 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4892 if test -n "$lt_cv_sys_max_cmd_len" && \
4893 test undefined != "$lt_cv_sys_max_cmd_len"; then
4894 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4895 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4896 else
4897 # Make teststring a little bigger before we do anything with it.
4898 # a 1K string should be a reasonable start.
4899 for i in 1 2 3 4 5 6 7 8; do
4900 teststring=$teststring$teststring
4901 done
4902 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4903 # If test is not a shell built-in, we'll probably end up computing a
4904 # maximum length that is only half of the actual maximum length, but
4905 # we can't tell.
4906 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4907 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4908 test 17 != "$i" # 1/2 MB should be enough
4909 do
4910 i=`expr $i + 1`
4911 teststring=$teststring$teststring
4912 done
4913 # Only check the string length outside the loop.
4914 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4915 teststring=
4916 # Add a significant safety factor because C++ compilers can tack on
4917 # massive amounts of additional arguments before passing them to the
4918 # linker. It appears as though 1/2 is a usable value.
4919 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4920 fi
4921 ;;
4922 esac
4923
4924 fi
4925
4926 if test -n "$lt_cv_sys_max_cmd_len"; then
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4928 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4929 else
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4931 $as_echo "none" >&6; }
4932 fi
4933 max_cmd_len=$lt_cv_sys_max_cmd_len
4934
4935
4936
4937
4938
4939
4940 : ${CP="cp -f"}
4941 : ${MV="mv -f"}
4942 : ${RM="rm -f"}
4943
4944 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4945 lt_unset=unset
4946 else
4947 lt_unset=false
4948 fi
4949
4950
4951
4952
4953
4954 # test EBCDIC or ASCII
4955 case `echo X|tr X '\101'` in
4956 A) # ASCII based system
4957 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4958 lt_SP2NL='tr \040 \012'
4959 lt_NL2SP='tr \015\012 \040\040'
4960 ;;
4961 *) # EBCDIC based system
4962 lt_SP2NL='tr \100 \n'
4963 lt_NL2SP='tr \r\n \100\100'
4964 ;;
4965 esac
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4976 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4977 if ${lt_cv_to_host_file_cmd+:} false; then :
4978 $as_echo_n "(cached) " >&6
4979 else
4980 case $host in
4981 *-*-mingw* )
4982 case $build in
4983 *-*-mingw* ) # actually msys
4984 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4985 ;;
4986 *-*-cygwin* )
4987 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4988 ;;
4989 * ) # otherwise, assume *nix
4990 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4991 ;;
4992 esac
4993 ;;
4994 *-*-cygwin* )
4995 case $build in
4996 *-*-mingw* ) # actually msys
4997 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4998 ;;
4999 *-*-cygwin* )
5000 lt_cv_to_host_file_cmd=func_convert_file_noop
5001 ;;
5002 * ) # otherwise, assume *nix
5003 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5004 ;;
5005 esac
5006 ;;
5007 * ) # unhandled hosts (and "normal" native builds)
5008 lt_cv_to_host_file_cmd=func_convert_file_noop
5009 ;;
5010 esac
5011
5012 fi
5013
5014 to_host_file_cmd=$lt_cv_to_host_file_cmd
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5016 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5017
5018
5019
5020
5021
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5023 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5024 if ${lt_cv_to_tool_file_cmd+:} false; then :
5025 $as_echo_n "(cached) " >&6
5026 else
5027 #assume ordinary cross tools, or native build.
5028 lt_cv_to_tool_file_cmd=func_convert_file_noop
5029 case $host in
5030 *-*-mingw* )
5031 case $build in
5032 *-*-mingw* ) # actually msys
5033 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5034 ;;
5035 esac
5036 ;;
5037 esac
5038
5039 fi
5040
5041 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5043 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5044
5045
5046
5047
5048
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5050 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5051 if ${lt_cv_ld_reload_flag+:} false; then :
5052 $as_echo_n "(cached) " >&6
5053 else
5054 lt_cv_ld_reload_flag='-r'
5055 fi
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5057 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5058 reload_flag=$lt_cv_ld_reload_flag
5059 case $reload_flag in
5060 "" | " "*) ;;
5061 *) reload_flag=" $reload_flag" ;;
5062 esac
5063 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5064 case $host_os in
5065 cygwin* | mingw* | pw32* | cegcc*)
5066 if test yes != "$GCC"; then
5067 reload_cmds=false
5068 fi
5069 ;;
5070 darwin*)
5071 if test yes = "$GCC"; then
5072 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5073 else
5074 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5075 fi
5076 ;;
5077 esac
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087 if test -n "$ac_tool_prefix"; then
5088 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5089 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5091 $as_echo_n "checking for $ac_word... " >&6; }
5092 if ${ac_cv_prog_OBJDUMP+:} false; then :
5093 $as_echo_n "(cached) " >&6
5094 else
5095 if test -n "$OBJDUMP"; then
5096 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5097 else
5098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5099 for as_dir in $PATH
5100 do
5101 IFS=$as_save_IFS
5102 test -z "$as_dir" && as_dir=.
5103 for ac_exec_ext in '' $ac_executable_extensions; do
5104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5105 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5107 break 2
5108 fi
5109 done
5110 done
5111 IFS=$as_save_IFS
5112
5113 fi
5114 fi
5115 OBJDUMP=$ac_cv_prog_OBJDUMP
5116 if test -n "$OBJDUMP"; then
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5118 $as_echo "$OBJDUMP" >&6; }
5119 else
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5121 $as_echo "no" >&6; }
5122 fi
5123
5124
5125 fi
5126 if test -z "$ac_cv_prog_OBJDUMP"; then
5127 ac_ct_OBJDUMP=$OBJDUMP
5128 # Extract the first word of "objdump", so it can be a program name with args.
5129 set dummy objdump; ac_word=$2
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5131 $as_echo_n "checking for $ac_word... " >&6; }
5132 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5133 $as_echo_n "(cached) " >&6
5134 else
5135 if test -n "$ac_ct_OBJDUMP"; then
5136 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5137 else
5138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5139 for as_dir in $PATH
5140 do
5141 IFS=$as_save_IFS
5142 test -z "$as_dir" && as_dir=.
5143 for ac_exec_ext in '' $ac_executable_extensions; do
5144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5145 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5147 break 2
5148 fi
5149 done
5150 done
5151 IFS=$as_save_IFS
5152
5153 fi
5154 fi
5155 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5156 if test -n "$ac_ct_OBJDUMP"; then
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5158 $as_echo "$ac_ct_OBJDUMP" >&6; }
5159 else
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5161 $as_echo "no" >&6; }
5162 fi
5163
5164 if test "x$ac_ct_OBJDUMP" = x; then
5165 OBJDUMP="false"
5166 else
5167 case $cross_compiling:$ac_tool_warned in
5168 yes:)
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5170 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5171 ac_tool_warned=yes ;;
5172 esac
5173 OBJDUMP=$ac_ct_OBJDUMP
5174 fi
5175 else
5176 OBJDUMP="$ac_cv_prog_OBJDUMP"
5177 fi
5178
5179 test -z "$OBJDUMP" && OBJDUMP=objdump
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5190 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5191 if ${lt_cv_deplibs_check_method+:} false; then :
5192 $as_echo_n "(cached) " >&6
5193 else
5194 lt_cv_file_magic_cmd='$MAGIC_CMD'
5195 lt_cv_file_magic_test_file=
5196 lt_cv_deplibs_check_method='unknown'
5197 # Need to set the preceding variable on all platforms that support
5198 # interlibrary dependencies.
5199 # 'none' -- dependencies not supported.
5200 # 'unknown' -- same as none, but documents that we really don't know.
5201 # 'pass_all' -- all dependencies passed with no checks.
5202 # 'test_compile' -- check by making test program.
5203 # 'file_magic [[regex]]' -- check by looking for files in library path
5204 # that responds to the $file_magic_cmd with a given extended regex.
5205 # If you have 'file' or equivalent on your system and you're not sure
5206 # whether 'pass_all' will *always* work, you probably want this one.
5207
5208 case $host_os in
5209 aix[4-9]*)
5210 lt_cv_deplibs_check_method=pass_all
5211 ;;
5212
5213 beos*)
5214 lt_cv_deplibs_check_method=pass_all
5215 ;;
5216
5217 bsdi[45]*)
5218 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5219 lt_cv_file_magic_cmd='/usr/bin/file -L'
5220 lt_cv_file_magic_test_file=/shlib/libc.so
5221 ;;
5222
5223 cygwin*)
5224 # func_win32_libid is a shell function defined in ltmain.sh
5225 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5226 lt_cv_file_magic_cmd='func_win32_libid'
5227 ;;
5228
5229 mingw* | pw32*)
5230 # Base MSYS/MinGW do not provide the 'file' command needed by
5231 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5232 # unless we find 'file', for example because we are cross-compiling.
5233 if ( file / ) >/dev/null 2>&1; then
5234 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5235 lt_cv_file_magic_cmd='func_win32_libid'
5236 else
5237 # Keep this pattern in sync with the one in func_win32_libid.
5238 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5239 lt_cv_file_magic_cmd='$OBJDUMP -f'
5240 fi
5241 ;;
5242
5243 cegcc*)
5244 # use the weaker test based on 'objdump'. See mingw*.
5245 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5246 lt_cv_file_magic_cmd='$OBJDUMP -f'
5247 ;;
5248
5249 darwin* | rhapsody*)
5250 lt_cv_deplibs_check_method=pass_all
5251 ;;
5252
5253 freebsd* | dragonfly*)
5254 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5255 case $host_cpu in
5256 i*86 )
5257 # Not sure whether the presence of OpenBSD here was a mistake.
5258 # Let's accept both of them until this is cleared up.
5259 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5260 lt_cv_file_magic_cmd=/usr/bin/file
5261 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5262 ;;
5263 esac
5264 else
5265 lt_cv_deplibs_check_method=pass_all
5266 fi
5267 ;;
5268
5269 haiku*)
5270 lt_cv_deplibs_check_method=pass_all
5271 ;;
5272
5273 hpux10.20* | hpux11*)
5274 lt_cv_file_magic_cmd=/usr/bin/file
5275 case $host_cpu in
5276 ia64*)
5277 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5278 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5279 ;;
5280 hppa*64*)
5281 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]'
5282 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5283 ;;
5284 *)
5285 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5286 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5287 ;;
5288 esac
5289 ;;
5290
5291 interix[3-9]*)
5292 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5293 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5294 ;;
5295
5296 irix5* | irix6* | nonstopux*)
5297 case $LD in
5298 *-32|*"-32 ") libmagic=32-bit;;
5299 *-n32|*"-n32 ") libmagic=N32;;
5300 *-64|*"-64 ") libmagic=64-bit;;
5301 *) libmagic=never-match;;
5302 esac
5303 lt_cv_deplibs_check_method=pass_all
5304 ;;
5305
5306 # This must be glibc/ELF.
5307 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5308 lt_cv_deplibs_check_method=pass_all
5309 ;;
5310
5311 netbsd* | netbsdelf*-gnu)
5312 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5313 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5314 else
5315 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5316 fi
5317 ;;
5318
5319 newos6*)
5320 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5321 lt_cv_file_magic_cmd=/usr/bin/file
5322 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5323 ;;
5324
5325 *nto* | *qnx*)
5326 lt_cv_deplibs_check_method=pass_all
5327 ;;
5328
5329 openbsd* | bitrig*)
5330 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5331 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5332 else
5333 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5334 fi
5335 ;;
5336
5337 osf3* | osf4* | osf5*)
5338 lt_cv_deplibs_check_method=pass_all
5339 ;;
5340
5341 rdos*)
5342 lt_cv_deplibs_check_method=pass_all
5343 ;;
5344
5345 solaris*)
5346 lt_cv_deplibs_check_method=pass_all
5347 ;;
5348
5349 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5350 lt_cv_deplibs_check_method=pass_all
5351 ;;
5352
5353 sysv4 | sysv4.3*)
5354 case $host_vendor in
5355 motorola)
5356 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]'
5357 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5358 ;;
5359 ncr)
5360 lt_cv_deplibs_check_method=pass_all
5361 ;;
5362 sequent)
5363 lt_cv_file_magic_cmd='/bin/file'
5364 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5365 ;;
5366 sni)
5367 lt_cv_file_magic_cmd='/bin/file'
5368 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5369 lt_cv_file_magic_test_file=/lib/libc.so
5370 ;;
5371 siemens)
5372 lt_cv_deplibs_check_method=pass_all
5373 ;;
5374 pc)
5375 lt_cv_deplibs_check_method=pass_all
5376 ;;
5377 esac
5378 ;;
5379
5380 tpf*)
5381 lt_cv_deplibs_check_method=pass_all
5382 ;;
5383 os2*)
5384 lt_cv_deplibs_check_method=pass_all
5385 ;;
5386 esac
5387
5388 fi
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5390 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5391
5392 file_magic_glob=
5393 want_nocaseglob=no
5394 if test "$build" = "$host"; then
5395 case $host_os in
5396 mingw* | pw32*)
5397 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5398 want_nocaseglob=yes
5399 else
5400 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5401 fi
5402 ;;
5403 esac
5404 fi
5405
5406 file_magic_cmd=$lt_cv_file_magic_cmd
5407 deplibs_check_method=$lt_cv_deplibs_check_method
5408 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431 if test -n "$ac_tool_prefix"; then
5432 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5433 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5435 $as_echo_n "checking for $ac_word... " >&6; }
5436 if ${ac_cv_prog_DLLTOOL+:} false; then :
5437 $as_echo_n "(cached) " >&6
5438 else
5439 if test -n "$DLLTOOL"; then
5440 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5441 else
5442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5443 for as_dir in $PATH
5444 do
5445 IFS=$as_save_IFS
5446 test -z "$as_dir" && as_dir=.
5447 for ac_exec_ext in '' $ac_executable_extensions; do
5448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5449 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5451 break 2
5452 fi
5453 done
5454 done
5455 IFS=$as_save_IFS
5456
5457 fi
5458 fi
5459 DLLTOOL=$ac_cv_prog_DLLTOOL
5460 if test -n "$DLLTOOL"; then
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5462 $as_echo "$DLLTOOL" >&6; }
5463 else
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5465 $as_echo "no" >&6; }
5466 fi
5467
5468
5469 fi
5470 if test -z "$ac_cv_prog_DLLTOOL"; then
5471 ac_ct_DLLTOOL=$DLLTOOL
5472 # Extract the first word of "dlltool", so it can be a program name with args.
5473 set dummy dlltool; ac_word=$2
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5475 $as_echo_n "checking for $ac_word... " >&6; }
5476 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5477 $as_echo_n "(cached) " >&6
5478 else
5479 if test -n "$ac_ct_DLLTOOL"; then
5480 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5481 else
5482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5483 for as_dir in $PATH
5484 do
5485 IFS=$as_save_IFS
5486 test -z "$as_dir" && as_dir=.
5487 for ac_exec_ext in '' $ac_executable_extensions; do
5488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5489 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5491 break 2
5492 fi
5493 done
5494 done
5495 IFS=$as_save_IFS
5496
5497 fi
5498 fi
5499 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5500 if test -n "$ac_ct_DLLTOOL"; then
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5502 $as_echo "$ac_ct_DLLTOOL" >&6; }
5503 else
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5505 $as_echo "no" >&6; }
5506 fi
5507
5508 if test "x$ac_ct_DLLTOOL" = x; then
5509 DLLTOOL="false"
5510 else
5511 case $cross_compiling:$ac_tool_warned in
5512 yes:)
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5514 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5515 ac_tool_warned=yes ;;
5516 esac
5517 DLLTOOL=$ac_ct_DLLTOOL
5518 fi
5519 else
5520 DLLTOOL="$ac_cv_prog_DLLTOOL"
5521 fi
5522
5523 test -z "$DLLTOOL" && DLLTOOL=dlltool
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5535 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5536 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5537 $as_echo_n "(cached) " >&6
5538 else
5539 lt_cv_sharedlib_from_linklib_cmd='unknown'
5540
5541 case $host_os in
5542 cygwin* | mingw* | pw32* | cegcc*)
5543 # two different shell functions defined in ltmain.sh;
5544 # decide which one to use based on capabilities of $DLLTOOL
5545 case `$DLLTOOL --help 2>&1` in
5546 *--identify-strict*)
5547 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5548 ;;
5549 *)
5550 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5551 ;;
5552 esac
5553 ;;
5554 *)
5555 # fallback: assume linklib IS sharedlib
5556 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5557 ;;
5558 esac
5559
5560 fi
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5562 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5563 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5564 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5565
5566
5567
5568
5569
5570
5571
5572
5573 if test -n "$ac_tool_prefix"; then
5574 for ac_prog in ar
5575 do
5576 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5577 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5579 $as_echo_n "checking for $ac_word... " >&6; }
5580 if ${ac_cv_prog_AR+:} false; then :
5581 $as_echo_n "(cached) " >&6
5582 else
5583 if test -n "$AR"; then
5584 ac_cv_prog_AR="$AR" # Let the user override the test.
5585 else
5586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5587 for as_dir in $PATH
5588 do
5589 IFS=$as_save_IFS
5590 test -z "$as_dir" && as_dir=.
5591 for ac_exec_ext in '' $ac_executable_extensions; do
5592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5593 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5595 break 2
5596 fi
5597 done
5598 done
5599 IFS=$as_save_IFS
5600
5601 fi
5602 fi
5603 AR=$ac_cv_prog_AR
5604 if test -n "$AR"; then
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5606 $as_echo "$AR" >&6; }
5607 else
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5609 $as_echo "no" >&6; }
5610 fi
5611
5612
5613 test -n "$AR" && break
5614 done
5615 fi
5616 if test -z "$AR"; then
5617 ac_ct_AR=$AR
5618 for ac_prog in ar
5619 do
5620 # Extract the first word of "$ac_prog", so it can be a program name with args.
5621 set dummy $ac_prog; ac_word=$2
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5623 $as_echo_n "checking for $ac_word... " >&6; }
5624 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5625 $as_echo_n "(cached) " >&6
5626 else
5627 if test -n "$ac_ct_AR"; then
5628 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5629 else
5630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5631 for as_dir in $PATH
5632 do
5633 IFS=$as_save_IFS
5634 test -z "$as_dir" && as_dir=.
5635 for ac_exec_ext in '' $ac_executable_extensions; do
5636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5637 ac_cv_prog_ac_ct_AR="$ac_prog"
5638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5639 break 2
5640 fi
5641 done
5642 done
5643 IFS=$as_save_IFS
5644
5645 fi
5646 fi
5647 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5648 if test -n "$ac_ct_AR"; then
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5650 $as_echo "$ac_ct_AR" >&6; }
5651 else
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5653 $as_echo "no" >&6; }
5654 fi
5655
5656
5657 test -n "$ac_ct_AR" && break
5658 done
5659
5660 if test "x$ac_ct_AR" = x; then
5661 AR="false"
5662 else
5663 case $cross_compiling:$ac_tool_warned in
5664 yes:)
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5666 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5667 ac_tool_warned=yes ;;
5668 esac
5669 AR=$ac_ct_AR
5670 fi
5671 fi
5672
5673 : ${AR=ar}
5674 : ${AR_FLAGS=cr}
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5687 $as_echo_n "checking for archiver @FILE support... " >&6; }
5688 if ${lt_cv_ar_at_file+:} false; then :
5689 $as_echo_n "(cached) " >&6
5690 else
5691 lt_cv_ar_at_file=no
5692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5693 /* end confdefs.h. */
5694
5695 int
5696 main ()
5697 {
5698
5699 ;
5700 return 0;
5701 }
5702 _ACEOF
5703 if ac_fn_c_try_compile "$LINENO"; then :
5704 echo conftest.$ac_objext > conftest.lst
5705 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5706 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5707 (eval $lt_ar_try) 2>&5
5708 ac_status=$?
5709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5710 test $ac_status = 0; }
5711 if test 0 -eq "$ac_status"; then
5712 # Ensure the archiver fails upon bogus file names.
5713 rm -f conftest.$ac_objext libconftest.a
5714 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5715 (eval $lt_ar_try) 2>&5
5716 ac_status=$?
5717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5718 test $ac_status = 0; }
5719 if test 0 -ne "$ac_status"; then
5720 lt_cv_ar_at_file=@
5721 fi
5722 fi
5723 rm -f conftest.* libconftest.a
5724
5725 fi
5726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5727
5728 fi
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5730 $as_echo "$lt_cv_ar_at_file" >&6; }
5731
5732 if test no = "$lt_cv_ar_at_file"; then
5733 archiver_list_spec=
5734 else
5735 archiver_list_spec=$lt_cv_ar_at_file
5736 fi
5737
5738
5739
5740
5741
5742
5743
5744 if test -n "$ac_tool_prefix"; then
5745 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5746 set dummy ${ac_tool_prefix}strip; ac_word=$2
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5748 $as_echo_n "checking for $ac_word... " >&6; }
5749 if ${ac_cv_prog_STRIP+:} false; then :
5750 $as_echo_n "(cached) " >&6
5751 else
5752 if test -n "$STRIP"; then
5753 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5754 else
5755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5756 for as_dir in $PATH
5757 do
5758 IFS=$as_save_IFS
5759 test -z "$as_dir" && as_dir=.
5760 for ac_exec_ext in '' $ac_executable_extensions; do
5761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5762 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5764 break 2
5765 fi
5766 done
5767 done
5768 IFS=$as_save_IFS
5769
5770 fi
5771 fi
5772 STRIP=$ac_cv_prog_STRIP
5773 if test -n "$STRIP"; then
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5775 $as_echo "$STRIP" >&6; }
5776 else
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5778 $as_echo "no" >&6; }
5779 fi
5780
5781
5782 fi
5783 if test -z "$ac_cv_prog_STRIP"; then
5784 ac_ct_STRIP=$STRIP
5785 # Extract the first word of "strip", so it can be a program name with args.
5786 set dummy strip; ac_word=$2
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5788 $as_echo_n "checking for $ac_word... " >&6; }
5789 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5790 $as_echo_n "(cached) " >&6
5791 else
5792 if test -n "$ac_ct_STRIP"; then
5793 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5794 else
5795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5796 for as_dir in $PATH
5797 do
5798 IFS=$as_save_IFS
5799 test -z "$as_dir" && as_dir=.
5800 for ac_exec_ext in '' $ac_executable_extensions; do
5801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5802 ac_cv_prog_ac_ct_STRIP="strip"
5803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5804 break 2
5805 fi
5806 done
5807 done
5808 IFS=$as_save_IFS
5809
5810 fi
5811 fi
5812 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5813 if test -n "$ac_ct_STRIP"; then
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5815 $as_echo "$ac_ct_STRIP" >&6; }
5816 else
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5818 $as_echo "no" >&6; }
5819 fi
5820
5821 if test "x$ac_ct_STRIP" = x; then
5822 STRIP=":"
5823 else
5824 case $cross_compiling:$ac_tool_warned in
5825 yes:)
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5827 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5828 ac_tool_warned=yes ;;
5829 esac
5830 STRIP=$ac_ct_STRIP
5831 fi
5832 else
5833 STRIP="$ac_cv_prog_STRIP"
5834 fi
5835
5836 test -z "$STRIP" && STRIP=:
5837
5838
5839
5840
5841
5842
5843 if test -n "$ac_tool_prefix"; then
5844 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5845 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5847 $as_echo_n "checking for $ac_word... " >&6; }
5848 if ${ac_cv_prog_RANLIB+:} false; then :
5849 $as_echo_n "(cached) " >&6
5850 else
5851 if test -n "$RANLIB"; then
5852 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5853 else
5854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5855 for as_dir in $PATH
5856 do
5857 IFS=$as_save_IFS
5858 test -z "$as_dir" && as_dir=.
5859 for ac_exec_ext in '' $ac_executable_extensions; do
5860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5861 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5863 break 2
5864 fi
5865 done
5866 done
5867 IFS=$as_save_IFS
5868
5869 fi
5870 fi
5871 RANLIB=$ac_cv_prog_RANLIB
5872 if test -n "$RANLIB"; then
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5874 $as_echo "$RANLIB" >&6; }
5875 else
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5877 $as_echo "no" >&6; }
5878 fi
5879
5880
5881 fi
5882 if test -z "$ac_cv_prog_RANLIB"; then
5883 ac_ct_RANLIB=$RANLIB
5884 # Extract the first word of "ranlib", so it can be a program name with args.
5885 set dummy ranlib; ac_word=$2
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5887 $as_echo_n "checking for $ac_word... " >&6; }
5888 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5889 $as_echo_n "(cached) " >&6
5890 else
5891 if test -n "$ac_ct_RANLIB"; then
5892 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5893 else
5894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5895 for as_dir in $PATH
5896 do
5897 IFS=$as_save_IFS
5898 test -z "$as_dir" && as_dir=.
5899 for ac_exec_ext in '' $ac_executable_extensions; do
5900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5901 ac_cv_prog_ac_ct_RANLIB="ranlib"
5902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5903 break 2
5904 fi
5905 done
5906 done
5907 IFS=$as_save_IFS
5908
5909 fi
5910 fi
5911 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5912 if test -n "$ac_ct_RANLIB"; then
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5914 $as_echo "$ac_ct_RANLIB" >&6; }
5915 else
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5917 $as_echo "no" >&6; }
5918 fi
5919
5920 if test "x$ac_ct_RANLIB" = x; then
5921 RANLIB=":"
5922 else
5923 case $cross_compiling:$ac_tool_warned in
5924 yes:)
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5926 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5927 ac_tool_warned=yes ;;
5928 esac
5929 RANLIB=$ac_ct_RANLIB
5930 fi
5931 else
5932 RANLIB="$ac_cv_prog_RANLIB"
5933 fi
5934
5935 test -z "$RANLIB" && RANLIB=:
5936
5937
5938
5939
5940
5941
5942 # Determine commands to create old-style static archives.
5943 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5944 old_postinstall_cmds='chmod 644 $oldlib'
5945 old_postuninstall_cmds=
5946
5947 if test -n "$RANLIB"; then
5948 case $host_os in
5949 bitrig* | openbsd*)
5950 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5951 ;;
5952 *)
5953 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5954 ;;
5955 esac
5956 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5957 fi
5958
5959 case $host_os in
5960 darwin*)
5961 lock_old_archive_extraction=yes ;;
5962 *)
5963 lock_old_archive_extraction=no ;;
5964 esac
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004 # If no C compiler was specified, use CC.
6005 LTCC=${LTCC-"$CC"}
6006
6007 # If no C compiler flags were specified, use CFLAGS.
6008 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6009
6010 # Allow CC to be a program name with arguments.
6011 compiler=$CC
6012
6013
6014 # Check for command to grab the raw symbol name followed by C symbol from nm.
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6016 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6017 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6018 $as_echo_n "(cached) " >&6
6019 else
6020
6021 # These are sane defaults that work on at least a few old systems.
6022 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6023
6024 # Character class describing NM global symbol codes.
6025 symcode='[BCDEGRST]'
6026
6027 # Regexp to match symbols that can be accessed directly from C.
6028 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6029
6030 # Define system-specific variables.
6031 case $host_os in
6032 aix*)
6033 symcode='[BCDT]'
6034 ;;
6035 cygwin* | mingw* | pw32* | cegcc*)
6036 symcode='[ABCDGISTW]'
6037 ;;
6038 hpux*)
6039 if test ia64 = "$host_cpu"; then
6040 symcode='[ABCDEGRST]'
6041 fi
6042 ;;
6043 irix* | nonstopux*)
6044 symcode='[BCDEGRST]'
6045 ;;
6046 osf*)
6047 symcode='[BCDEGQRST]'
6048 ;;
6049 solaris*)
6050 symcode='[BDRT]'
6051 ;;
6052 sco3.2v5*)
6053 symcode='[DT]'
6054 ;;
6055 sysv4.2uw2*)
6056 symcode='[DT]'
6057 ;;
6058 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6059 symcode='[ABDT]'
6060 ;;
6061 sysv4)
6062 symcode='[DFNSTU]'
6063 ;;
6064 esac
6065
6066 # If we're using GNU nm, then use its standard symbol codes.
6067 case `$NM -V 2>&1` in
6068 *GNU* | *'with BFD'*)
6069 symcode='[ABCDGIRSTW]' ;;
6070 esac
6071
6072 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6073 # Gets list of data symbols to import.
6074 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6075 # Adjust the below global symbol transforms to fixup imported variables.
6076 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6077 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6078 lt_c_name_lib_hook="\
6079 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6080 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6081 else
6082 # Disable hooks by default.
6083 lt_cv_sys_global_symbol_to_import=
6084 lt_cdecl_hook=
6085 lt_c_name_hook=
6086 lt_c_name_lib_hook=
6087 fi
6088
6089 # Transform an extracted symbol line into a proper C declaration.
6090 # Some systems (esp. on ia64) link data and code symbols differently,
6091 # so use this general approach.
6092 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6093 $lt_cdecl_hook\
6094 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6095 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6096
6097 # Transform an extracted symbol line into symbol name and symbol address
6098 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6099 $lt_c_name_hook\
6100 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6101 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6102
6103 # Transform an extracted symbol line into symbol name with lib prefix and
6104 # symbol address.
6105 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6106 $lt_c_name_lib_hook\
6107 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6108 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6109 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6110
6111 # Handle CRLF in mingw tool chain
6112 opt_cr=
6113 case $build_os in
6114 mingw*)
6115 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6116 ;;
6117 esac
6118
6119 # Try without a prefix underscore, then with it.
6120 for ac_symprfx in "" "_"; do
6121
6122 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6123 symxfrm="\\1 $ac_symprfx\\2 \\2"
6124
6125 # Write the raw and C identifiers.
6126 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6127 # Fake it for dumpbin and say T for any non-static function,
6128 # D for any global variable and I for any imported variable.
6129 # Also find C++ and __fastcall symbols from MSVC++,
6130 # which start with @ or ?.
6131 lt_cv_sys_global_symbol_pipe="$AWK '"\
6132 " {last_section=section; section=\$ 3};"\
6133 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6134 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6135 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6136 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6137 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6138 " \$ 0!~/External *\|/{next};"\
6139 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6140 " {if(hide[section]) next};"\
6141 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6142 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6143 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6144 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6145 " ' prfx=^$ac_symprfx"
6146 else
6147 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6148 fi
6149 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6150
6151 # Check to see that the pipe works correctly.
6152 pipe_works=no
6153
6154 rm -f conftest*
6155 cat > conftest.$ac_ext <<_LT_EOF
6156 #ifdef __cplusplus
6157 extern "C" {
6158 #endif
6159 char nm_test_var;
6160 void nm_test_func(void);
6161 void nm_test_func(void){}
6162 #ifdef __cplusplus
6163 }
6164 #endif
6165 int main(){nm_test_var='a';nm_test_func();return(0);}
6166 _LT_EOF
6167
6168 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6169 (eval $ac_compile) 2>&5
6170 ac_status=$?
6171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6172 test $ac_status = 0; }; then
6173 # Now try to grab the symbols.
6174 nlist=conftest.nm
6175 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
6176 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
6177 # Try sorting and uniquifying the output.
6178 if sort "$nlist" | uniq > "$nlist"T; then
6179 mv -f "$nlist"T "$nlist"
6180 else
6181 rm -f "$nlist"T
6182 fi
6183
6184 # Make sure that we snagged all the symbols we need.
6185 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6186 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6187 cat <<_LT_EOF > conftest.$ac_ext
6188 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6189 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6190 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6191 relocations are performed -- see ld's documentation on pseudo-relocs. */
6192 # define LT_DLSYM_CONST
6193 #elif defined __osf__
6194 /* This system does not cope well with relocations in const data. */
6195 # define LT_DLSYM_CONST
6196 #else
6197 # define LT_DLSYM_CONST const
6198 #endif
6199
6200 #ifdef __cplusplus
6201 extern "C" {
6202 #endif
6203
6204 _LT_EOF
6205 # Now generate the symbol file.
6206 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6207
6208 cat <<_LT_EOF >> conftest.$ac_ext
6209
6210 /* The mapping between symbol names and symbols. */
6211 LT_DLSYM_CONST struct {
6212 const char *name;
6213 void *address;
6214 }
6215 lt__PROGRAM__LTX_preloaded_symbols[] =
6216 {
6217 { "@PROGRAM@", (void *) 0 },
6218 _LT_EOF
6219 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6220 cat <<\_LT_EOF >> conftest.$ac_ext
6221 {0, (void *) 0}
6222 };
6223
6224 /* This works around a problem in FreeBSD linker */
6225 #ifdef FREEBSD_WORKAROUND
6226 static const void *lt_preloaded_setup() {
6227 return lt__PROGRAM__LTX_preloaded_symbols;
6228 }
6229 #endif
6230
6231 #ifdef __cplusplus
6232 }
6233 #endif
6234 _LT_EOF
6235 # Now try linking the two files.
6236 mv conftest.$ac_objext conftstm.$ac_objext
6237 lt_globsym_save_LIBS=$LIBS
6238 lt_globsym_save_CFLAGS=$CFLAGS
6239 LIBS=conftstm.$ac_objext
6240 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6241 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6242 (eval $ac_link) 2>&5
6243 ac_status=$?
6244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6245 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6246 pipe_works=yes
6247 fi
6248 LIBS=$lt_globsym_save_LIBS
6249 CFLAGS=$lt_globsym_save_CFLAGS
6250 else
6251 echo "cannot find nm_test_func in $nlist" >&5
6252 fi
6253 else
6254 echo "cannot find nm_test_var in $nlist" >&5
6255 fi
6256 else
6257 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6258 fi
6259 else
6260 echo "$progname: failed program was:" >&5
6261 cat conftest.$ac_ext >&5
6262 fi
6263 rm -rf conftest* conftst*
6264
6265 # Do not use the global_symbol_pipe unless it works.
6266 if test yes = "$pipe_works"; then
6267 break
6268 else
6269 lt_cv_sys_global_symbol_pipe=
6270 fi
6271 done
6272
6273 fi
6274
6275 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6276 lt_cv_sys_global_symbol_to_cdecl=
6277 fi
6278 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6280 $as_echo "failed" >&6; }
6281 else
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6283 $as_echo "ok" >&6; }
6284 fi
6285
6286 # Response file support.
6287 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6288 nm_file_list_spec='@'
6289 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6290 nm_file_list_spec='@'
6291 fi
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
6321
6322
6323
6324
6325
6326
6327
6328
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6330 $as_echo_n "checking for sysroot... " >&6; }
6331
6332 # Check whether --with-sysroot was given.
6333 if test "${with_sysroot+set}" = set; then :
6334 withval=$with_sysroot;
6335 else
6336 with_sysroot=no
6337 fi
6338
6339
6340 lt_sysroot=
6341 case $with_sysroot in #(
6342 yes)
6343 if test yes = "$GCC"; then
6344 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6345 fi
6346 ;; #(
6347 /*)
6348 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6349 ;; #(
6350 no|'')
6351 ;; #(
6352 *)
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6354 $as_echo "$with_sysroot" >&6; }
6355 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6356 ;;
6357 esac
6358
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6360 $as_echo "${lt_sysroot:-no}" >&6; }
6361
6362
6363
6364
6365
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6367 $as_echo_n "checking for a working dd... " >&6; }
6368 if ${ac_cv_path_lt_DD+:} false; then :
6369 $as_echo_n "(cached) " >&6
6370 else
6371 printf 0123456789abcdef0123456789abcdef >conftest.i
6372 cat conftest.i conftest.i >conftest2.i
6373 : ${lt_DD:=$DD}
6374 if test -z "$lt_DD"; then
6375 ac_path_lt_DD_found=false
6376 # Loop through the user's path and test for each of PROGNAME-LIST
6377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6378 for as_dir in $PATH
6379 do
6380 IFS=$as_save_IFS
6381 test -z "$as_dir" && as_dir=.
6382 for ac_prog in dd; do
6383 for ac_exec_ext in '' $ac_executable_extensions; do
6384 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6385 as_fn_executable_p "$ac_path_lt_DD" || continue
6386 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6387 cmp -s conftest.i conftest.out \
6388 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6389 fi
6390 $ac_path_lt_DD_found && break 3
6391 done
6392 done
6393 done
6394 IFS=$as_save_IFS
6395 if test -z "$ac_cv_path_lt_DD"; then
6396 :
6397 fi
6398 else
6399 ac_cv_path_lt_DD=$lt_DD
6400 fi
6401
6402 rm -f conftest.i conftest2.i conftest.out
6403 fi
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6405 $as_echo "$ac_cv_path_lt_DD" >&6; }
6406
6407
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6409 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6410 if ${lt_cv_truncate_bin+:} false; then :
6411 $as_echo_n "(cached) " >&6
6412 else
6413 printf 0123456789abcdef0123456789abcdef >conftest.i
6414 cat conftest.i conftest.i >conftest2.i
6415 lt_cv_truncate_bin=
6416 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6417 cmp -s conftest.i conftest.out \
6418 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6419 fi
6420 rm -f conftest.i conftest2.i conftest.out
6421 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6422 fi
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6424 $as_echo "$lt_cv_truncate_bin" >&6; }
6425
6426
6427
6428
6429
6430
6431
6432 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6433 func_cc_basename ()
6434 {
6435 for cc_temp in $*""; do
6436 case $cc_temp in
6437 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6438 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6439 \-*) ;;
6440 *) break;;
6441 esac
6442 done
6443 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6444 }
6445
6446 # Check whether --enable-libtool-lock was given.
6447 if test "${enable_libtool_lock+set}" = set; then :
6448 enableval=$enable_libtool_lock;
6449 fi
6450
6451 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6452
6453 # Some flags need to be propagated to the compiler or linker for good
6454 # libtool support.
6455 case $host in
6456 ia64-*-hpux*)
6457 # Find out what ABI is being produced by ac_compile, and set mode
6458 # options accordingly.
6459 echo 'int i;' > conftest.$ac_ext
6460 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6461 (eval $ac_compile) 2>&5
6462 ac_status=$?
6463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6464 test $ac_status = 0; }; then
6465 case `/usr/bin/file conftest.$ac_objext` in
6466 *ELF-32*)
6467 HPUX_IA64_MODE=32
6468 ;;
6469 *ELF-64*)
6470 HPUX_IA64_MODE=64
6471 ;;
6472 esac
6473 fi
6474 rm -rf conftest*
6475 ;;
6476 *-*-irix6*)
6477 # Find out what ABI is being produced by ac_compile, and set linker
6478 # options accordingly.
6479 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6480 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6481 (eval $ac_compile) 2>&5
6482 ac_status=$?
6483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6484 test $ac_status = 0; }; then
6485 if test yes = "$lt_cv_prog_gnu_ld"; then
6486 case `/usr/bin/file conftest.$ac_objext` in
6487 *32-bit*)
6488 LD="${LD-ld} -melf32bsmip"
6489 ;;
6490 *N32*)
6491 LD="${LD-ld} -melf32bmipn32"
6492 ;;
6493 *64-bit*)
6494 LD="${LD-ld} -melf64bmip"
6495 ;;
6496 esac
6497 else
6498 case `/usr/bin/file conftest.$ac_objext` in
6499 *32-bit*)
6500 LD="${LD-ld} -32"
6501 ;;
6502 *N32*)
6503 LD="${LD-ld} -n32"
6504 ;;
6505 *64-bit*)
6506 LD="${LD-ld} -64"
6507 ;;
6508 esac
6509 fi
6510 fi
6511 rm -rf conftest*
6512 ;;
6513
6514 mips64*-*linux*)
6515 # Find out what ABI is being produced by ac_compile, and set linker
6516 # options accordingly.
6517 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6518 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6519 (eval $ac_compile) 2>&5
6520 ac_status=$?
6521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6522 test $ac_status = 0; }; then
6523 emul=elf
6524 case `/usr/bin/file conftest.$ac_objext` in
6525 *32-bit*)
6526 emul="${emul}32"
6527 ;;
6528 *64-bit*)
6529 emul="${emul}64"
6530 ;;
6531 esac
6532 case `/usr/bin/file conftest.$ac_objext` in
6533 *MSB*)
6534 emul="${emul}btsmip"
6535 ;;
6536 *LSB*)
6537 emul="${emul}ltsmip"
6538 ;;
6539 esac
6540 case `/usr/bin/file conftest.$ac_objext` in
6541 *N32*)
6542 emul="${emul}n32"
6543 ;;
6544 esac
6545 LD="${LD-ld} -m $emul"
6546 fi
6547 rm -rf conftest*
6548 ;;
6549
6550 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6551 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6552 # Find out what ABI is being produced by ac_compile, and set linker
6553 # options accordingly. Note that the listed cases only cover the
6554 # situations where additional linker options are needed (such as when
6555 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6556 # vice versa); the common cases where no linker options are needed do
6557 # not appear in the list.
6558 echo 'int i;' > conftest.$ac_ext
6559 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6560 (eval $ac_compile) 2>&5
6561 ac_status=$?
6562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6563 test $ac_status = 0; }; then
6564 case `/usr/bin/file conftest.o` in
6565 *32-bit*)
6566 case $host in
6567 x86_64-*kfreebsd*-gnu)
6568 LD="${LD-ld} -m elf_i386_fbsd"
6569 ;;
6570 x86_64-*linux*)
6571 case `/usr/bin/file conftest.o` in
6572 *x86-64*)
6573 LD="${LD-ld} -m elf32_x86_64"
6574 ;;
6575 *)
6576 LD="${LD-ld} -m elf_i386"
6577 ;;
6578 esac
6579 ;;
6580 powerpc64le-*linux*)
6581 LD="${LD-ld} -m elf32lppclinux"
6582 ;;
6583 powerpc64-*linux*)
6584 LD="${LD-ld} -m elf32ppclinux"
6585 ;;
6586 s390x-*linux*)
6587 LD="${LD-ld} -m elf_s390"
6588 ;;
6589 sparc64-*linux*)
6590 LD="${LD-ld} -m elf32_sparc"
6591 ;;
6592 esac
6593 ;;
6594 *64-bit*)
6595 case $host in
6596 x86_64-*kfreebsd*-gnu)
6597 LD="${LD-ld} -m elf_x86_64_fbsd"
6598 ;;
6599 x86_64-*linux*)
6600 LD="${LD-ld} -m elf_x86_64"
6601 ;;
6602 powerpcle-*linux*)
6603 LD="${LD-ld} -m elf64lppc"
6604 ;;
6605 powerpc-*linux*)
6606 LD="${LD-ld} -m elf64ppc"
6607 ;;
6608 s390*-*linux*|s390*-*tpf*)
6609 LD="${LD-ld} -m elf64_s390"
6610 ;;
6611 sparc*-*linux*)
6612 LD="${LD-ld} -m elf64_sparc"
6613 ;;
6614 esac
6615 ;;
6616 esac
6617 fi
6618 rm -rf conftest*
6619 ;;
6620
6621 *-*-sco3.2v5*)
6622 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6623 SAVE_CFLAGS=$CFLAGS
6624 CFLAGS="$CFLAGS -belf"
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6626 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6627 if ${lt_cv_cc_needs_belf+:} false; then :
6628 $as_echo_n "(cached) " >&6
6629 else
6630 ac_ext=c
6631 ac_cpp='$CPP $CPPFLAGS'
6632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6635
6636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6637 /* end confdefs.h. */
6638
6639 int
6640 main ()
6641 {
6642
6643 ;
6644 return 0;
6645 }
6646 _ACEOF
6647 if ac_fn_c_try_link "$LINENO"; then :
6648 lt_cv_cc_needs_belf=yes
6649 else
6650 lt_cv_cc_needs_belf=no
6651 fi
6652 rm -f core conftest.err conftest.$ac_objext \
6653 conftest$ac_exeext conftest.$ac_ext
6654 ac_ext=c
6655 ac_cpp='$CPP $CPPFLAGS'
6656 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6657 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6658 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6659
6660 fi
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6662 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6663 if test yes != "$lt_cv_cc_needs_belf"; then
6664 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6665 CFLAGS=$SAVE_CFLAGS
6666 fi
6667 ;;
6668 *-*solaris*)
6669 # Find out what ABI is being produced by ac_compile, and set linker
6670 # options accordingly.
6671 echo 'int i;' > conftest.$ac_ext
6672 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6673 (eval $ac_compile) 2>&5
6674 ac_status=$?
6675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6676 test $ac_status = 0; }; then
6677 case `/usr/bin/file conftest.o` in
6678 *64-bit*)
6679 case $lt_cv_prog_gnu_ld in
6680 yes*)
6681 case $host in
6682 i?86-*-solaris*|x86_64-*-solaris*)
6683 LD="${LD-ld} -m elf_x86_64"
6684 ;;
6685 sparc*-*-solaris*)
6686 LD="${LD-ld} -m elf64_sparc"
6687 ;;
6688 esac
6689 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6690 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6691 LD=${LD-ld}_sol2
6692 fi
6693 ;;
6694 *)
6695 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6696 LD="${LD-ld} -64"
6697 fi
6698 ;;
6699 esac
6700 ;;
6701 esac
6702 fi
6703 rm -rf conftest*
6704 ;;
6705 esac
6706
6707 need_locks=$enable_libtool_lock
6708
6709 if test -n "$ac_tool_prefix"; then
6710 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6711 set dummy ${ac_tool_prefix}mt; ac_word=$2
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6713 $as_echo_n "checking for $ac_word... " >&6; }
6714 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6715 $as_echo_n "(cached) " >&6
6716 else
6717 if test -n "$MANIFEST_TOOL"; then
6718 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6719 else
6720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6721 for as_dir in $PATH
6722 do
6723 IFS=$as_save_IFS
6724 test -z "$as_dir" && as_dir=.
6725 for ac_exec_ext in '' $ac_executable_extensions; do
6726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6727 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6729 break 2
6730 fi
6731 done
6732 done
6733 IFS=$as_save_IFS
6734
6735 fi
6736 fi
6737 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6738 if test -n "$MANIFEST_TOOL"; then
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6740 $as_echo "$MANIFEST_TOOL" >&6; }
6741 else
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6743 $as_echo "no" >&6; }
6744 fi
6745
6746
6747 fi
6748 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6749 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6750 # Extract the first word of "mt", so it can be a program name with args.
6751 set dummy mt; ac_word=$2
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6753 $as_echo_n "checking for $ac_word... " >&6; }
6754 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6755 $as_echo_n "(cached) " >&6
6756 else
6757 if test -n "$ac_ct_MANIFEST_TOOL"; then
6758 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6759 else
6760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6761 for as_dir in $PATH
6762 do
6763 IFS=$as_save_IFS
6764 test -z "$as_dir" && as_dir=.
6765 for ac_exec_ext in '' $ac_executable_extensions; do
6766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6767 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6769 break 2
6770 fi
6771 done
6772 done
6773 IFS=$as_save_IFS
6774
6775 fi
6776 fi
6777 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6778 if test -n "$ac_ct_MANIFEST_TOOL"; then
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6780 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6781 else
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6783 $as_echo "no" >&6; }
6784 fi
6785
6786 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6787 MANIFEST_TOOL=":"
6788 else
6789 case $cross_compiling:$ac_tool_warned in
6790 yes:)
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6792 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6793 ac_tool_warned=yes ;;
6794 esac
6795 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6796 fi
6797 else
6798 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6799 fi
6800
6801 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6803 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6804 if ${lt_cv_path_mainfest_tool+:} false; then :
6805 $as_echo_n "(cached) " >&6
6806 else
6807 lt_cv_path_mainfest_tool=no
6808 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6809 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6810 cat conftest.err >&5
6811 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6812 lt_cv_path_mainfest_tool=yes
6813 fi
6814 rm -f conftest*
6815 fi
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6817 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6818 if test yes != "$lt_cv_path_mainfest_tool"; then
6819 MANIFEST_TOOL=:
6820 fi
6821
6822
6823
6824
6825
6826
6827 case $host_os in
6828 rhapsody* | darwin*)
6829 if test -n "$ac_tool_prefix"; then
6830 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6831 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6833 $as_echo_n "checking for $ac_word... " >&6; }
6834 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6835 $as_echo_n "(cached) " >&6
6836 else
6837 if test -n "$DSYMUTIL"; then
6838 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6839 else
6840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6841 for as_dir in $PATH
6842 do
6843 IFS=$as_save_IFS
6844 test -z "$as_dir" && as_dir=.
6845 for ac_exec_ext in '' $ac_executable_extensions; do
6846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6847 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6849 break 2
6850 fi
6851 done
6852 done
6853 IFS=$as_save_IFS
6854
6855 fi
6856 fi
6857 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6858 if test -n "$DSYMUTIL"; then
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6860 $as_echo "$DSYMUTIL" >&6; }
6861 else
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6863 $as_echo "no" >&6; }
6864 fi
6865
6866
6867 fi
6868 if test -z "$ac_cv_prog_DSYMUTIL"; then
6869 ac_ct_DSYMUTIL=$DSYMUTIL
6870 # Extract the first word of "dsymutil", so it can be a program name with args.
6871 set dummy dsymutil; ac_word=$2
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6873 $as_echo_n "checking for $ac_word... " >&6; }
6874 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6875 $as_echo_n "(cached) " >&6
6876 else
6877 if test -n "$ac_ct_DSYMUTIL"; then
6878 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6879 else
6880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6881 for as_dir in $PATH
6882 do
6883 IFS=$as_save_IFS
6884 test -z "$as_dir" && as_dir=.
6885 for ac_exec_ext in '' $ac_executable_extensions; do
6886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6887 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6889 break 2
6890 fi
6891 done
6892 done
6893 IFS=$as_save_IFS
6894
6895 fi
6896 fi
6897 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6898 if test -n "$ac_ct_DSYMUTIL"; then
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6900 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6901 else
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6903 $as_echo "no" >&6; }
6904 fi
6905
6906 if test "x$ac_ct_DSYMUTIL" = x; then
6907 DSYMUTIL=":"
6908 else
6909 case $cross_compiling:$ac_tool_warned in
6910 yes:)
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6912 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6913 ac_tool_warned=yes ;;
6914 esac
6915 DSYMUTIL=$ac_ct_DSYMUTIL
6916 fi
6917 else
6918 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6919 fi
6920
6921 if test -n "$ac_tool_prefix"; then
6922 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6923 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6925 $as_echo_n "checking for $ac_word... " >&6; }
6926 if ${ac_cv_prog_NMEDIT+:} false; then :
6927 $as_echo_n "(cached) " >&6
6928 else
6929 if test -n "$NMEDIT"; then
6930 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6931 else
6932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6933 for as_dir in $PATH
6934 do
6935 IFS=$as_save_IFS
6936 test -z "$as_dir" && as_dir=.
6937 for ac_exec_ext in '' $ac_executable_extensions; do
6938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6939 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6941 break 2
6942 fi
6943 done
6944 done
6945 IFS=$as_save_IFS
6946
6947 fi
6948 fi
6949 NMEDIT=$ac_cv_prog_NMEDIT
6950 if test -n "$NMEDIT"; then
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6952 $as_echo "$NMEDIT" >&6; }
6953 else
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6955 $as_echo "no" >&6; }
6956 fi
6957
6958
6959 fi
6960 if test -z "$ac_cv_prog_NMEDIT"; then
6961 ac_ct_NMEDIT=$NMEDIT
6962 # Extract the first word of "nmedit", so it can be a program name with args.
6963 set dummy nmedit; ac_word=$2
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6965 $as_echo_n "checking for $ac_word... " >&6; }
6966 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6967 $as_echo_n "(cached) " >&6
6968 else
6969 if test -n "$ac_ct_NMEDIT"; then
6970 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6971 else
6972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6973 for as_dir in $PATH
6974 do
6975 IFS=$as_save_IFS
6976 test -z "$as_dir" && as_dir=.
6977 for ac_exec_ext in '' $ac_executable_extensions; do
6978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6979 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6981 break 2
6982 fi
6983 done
6984 done
6985 IFS=$as_save_IFS
6986
6987 fi
6988 fi
6989 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6990 if test -n "$ac_ct_NMEDIT"; then
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6992 $as_echo "$ac_ct_NMEDIT" >&6; }
6993 else
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6995 $as_echo "no" >&6; }
6996 fi
6997
6998 if test "x$ac_ct_NMEDIT" = x; then
6999 NMEDIT=":"
7000 else
7001 case $cross_compiling:$ac_tool_warned in
7002 yes:)
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7004 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7005 ac_tool_warned=yes ;;
7006 esac
7007 NMEDIT=$ac_ct_NMEDIT
7008 fi
7009 else
7010 NMEDIT="$ac_cv_prog_NMEDIT"
7011 fi
7012
7013 if test -n "$ac_tool_prefix"; then
7014 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7015 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7017 $as_echo_n "checking for $ac_word... " >&6; }
7018 if ${ac_cv_prog_LIPO+:} false; then :
7019 $as_echo_n "(cached) " >&6
7020 else
7021 if test -n "$LIPO"; then
7022 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7023 else
7024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7025 for as_dir in $PATH
7026 do
7027 IFS=$as_save_IFS
7028 test -z "$as_dir" && as_dir=.
7029 for ac_exec_ext in '' $ac_executable_extensions; do
7030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7031 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7033 break 2
7034 fi
7035 done
7036 done
7037 IFS=$as_save_IFS
7038
7039 fi
7040 fi
7041 LIPO=$ac_cv_prog_LIPO
7042 if test -n "$LIPO"; then
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7044 $as_echo "$LIPO" >&6; }
7045 else
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7047 $as_echo "no" >&6; }
7048 fi
7049
7050
7051 fi
7052 if test -z "$ac_cv_prog_LIPO"; then
7053 ac_ct_LIPO=$LIPO
7054 # Extract the first word of "lipo", so it can be a program name with args.
7055 set dummy lipo; ac_word=$2
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7057 $as_echo_n "checking for $ac_word... " >&6; }
7058 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7059 $as_echo_n "(cached) " >&6
7060 else
7061 if test -n "$ac_ct_LIPO"; then
7062 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7063 else
7064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7065 for as_dir in $PATH
7066 do
7067 IFS=$as_save_IFS
7068 test -z "$as_dir" && as_dir=.
7069 for ac_exec_ext in '' $ac_executable_extensions; do
7070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7071 ac_cv_prog_ac_ct_LIPO="lipo"
7072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7073 break 2
7074 fi
7075 done
7076 done
7077 IFS=$as_save_IFS
7078
7079 fi
7080 fi
7081 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7082 if test -n "$ac_ct_LIPO"; then
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7084 $as_echo "$ac_ct_LIPO" >&6; }
7085 else
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7087 $as_echo "no" >&6; }
7088 fi
7089
7090 if test "x$ac_ct_LIPO" = x; then
7091 LIPO=":"
7092 else
7093 case $cross_compiling:$ac_tool_warned in
7094 yes:)
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7096 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7097 ac_tool_warned=yes ;;
7098 esac
7099 LIPO=$ac_ct_LIPO
7100 fi
7101 else
7102 LIPO="$ac_cv_prog_LIPO"
7103 fi
7104
7105 if test -n "$ac_tool_prefix"; then
7106 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7107 set dummy ${ac_tool_prefix}otool; ac_word=$2
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7109 $as_echo_n "checking for $ac_word... " >&6; }
7110 if ${ac_cv_prog_OTOOL+:} false; then :
7111 $as_echo_n "(cached) " >&6
7112 else
7113 if test -n "$OTOOL"; then
7114 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7115 else
7116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7117 for as_dir in $PATH
7118 do
7119 IFS=$as_save_IFS
7120 test -z "$as_dir" && as_dir=.
7121 for ac_exec_ext in '' $ac_executable_extensions; do
7122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7123 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7125 break 2
7126 fi
7127 done
7128 done
7129 IFS=$as_save_IFS
7130
7131 fi
7132 fi
7133 OTOOL=$ac_cv_prog_OTOOL
7134 if test -n "$OTOOL"; then
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7136 $as_echo "$OTOOL" >&6; }
7137 else
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7139 $as_echo "no" >&6; }
7140 fi
7141
7142
7143 fi
7144 if test -z "$ac_cv_prog_OTOOL"; then
7145 ac_ct_OTOOL=$OTOOL
7146 # Extract the first word of "otool", so it can be a program name with args.
7147 set dummy otool; ac_word=$2
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7149 $as_echo_n "checking for $ac_word... " >&6; }
7150 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7151 $as_echo_n "(cached) " >&6
7152 else
7153 if test -n "$ac_ct_OTOOL"; then
7154 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7155 else
7156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7157 for as_dir in $PATH
7158 do
7159 IFS=$as_save_IFS
7160 test -z "$as_dir" && as_dir=.
7161 for ac_exec_ext in '' $ac_executable_extensions; do
7162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7163 ac_cv_prog_ac_ct_OTOOL="otool"
7164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7165 break 2
7166 fi
7167 done
7168 done
7169 IFS=$as_save_IFS
7170
7171 fi
7172 fi
7173 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7174 if test -n "$ac_ct_OTOOL"; then
7175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7176 $as_echo "$ac_ct_OTOOL" >&6; }
7177 else
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7179 $as_echo "no" >&6; }
7180 fi
7181
7182 if test "x$ac_ct_OTOOL" = x; then
7183 OTOOL=":"
7184 else
7185 case $cross_compiling:$ac_tool_warned in
7186 yes:)
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7188 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7189 ac_tool_warned=yes ;;
7190 esac
7191 OTOOL=$ac_ct_OTOOL
7192 fi
7193 else
7194 OTOOL="$ac_cv_prog_OTOOL"
7195 fi
7196
7197 if test -n "$ac_tool_prefix"; then
7198 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7199 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7201 $as_echo_n "checking for $ac_word... " >&6; }
7202 if ${ac_cv_prog_OTOOL64+:} false; then :
7203 $as_echo_n "(cached) " >&6
7204 else
7205 if test -n "$OTOOL64"; then
7206 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7207 else
7208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7209 for as_dir in $PATH
7210 do
7211 IFS=$as_save_IFS
7212 test -z "$as_dir" && as_dir=.
7213 for ac_exec_ext in '' $ac_executable_extensions; do
7214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7215 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7217 break 2
7218 fi
7219 done
7220 done
7221 IFS=$as_save_IFS
7222
7223 fi
7224 fi
7225 OTOOL64=$ac_cv_prog_OTOOL64
7226 if test -n "$OTOOL64"; then
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7228 $as_echo "$OTOOL64" >&6; }
7229 else
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7231 $as_echo "no" >&6; }
7232 fi
7233
7234
7235 fi
7236 if test -z "$ac_cv_prog_OTOOL64"; then
7237 ac_ct_OTOOL64=$OTOOL64
7238 # Extract the first word of "otool64", so it can be a program name with args.
7239 set dummy otool64; ac_word=$2
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7241 $as_echo_n "checking for $ac_word... " >&6; }
7242 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7243 $as_echo_n "(cached) " >&6
7244 else
7245 if test -n "$ac_ct_OTOOL64"; then
7246 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7247 else
7248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7249 for as_dir in $PATH
7250 do
7251 IFS=$as_save_IFS
7252 test -z "$as_dir" && as_dir=.
7253 for ac_exec_ext in '' $ac_executable_extensions; do
7254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7255 ac_cv_prog_ac_ct_OTOOL64="otool64"
7256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7257 break 2
7258 fi
7259 done
7260 done
7261 IFS=$as_save_IFS
7262
7263 fi
7264 fi
7265 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7266 if test -n "$ac_ct_OTOOL64"; then
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7268 $as_echo "$ac_ct_OTOOL64" >&6; }
7269 else
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7271 $as_echo "no" >&6; }
7272 fi
7273
7274 if test "x$ac_ct_OTOOL64" = x; then
7275 OTOOL64=":"
7276 else
7277 case $cross_compiling:$ac_tool_warned in
7278 yes:)
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7280 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7281 ac_tool_warned=yes ;;
7282 esac
7283 OTOOL64=$ac_ct_OTOOL64
7284 fi
7285 else
7286 OTOOL64="$ac_cv_prog_OTOOL64"
7287 fi
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7316 $as_echo_n "checking for -single_module linker flag... " >&6; }
7317 if ${lt_cv_apple_cc_single_mod+:} false; then :
7318 $as_echo_n "(cached) " >&6
7319 else
7320 lt_cv_apple_cc_single_mod=no
7321 if test -z "$LT_MULTI_MODULE"; then
7322 # By default we will add the -single_module flag. You can override
7323 # by either setting the environment variable LT_MULTI_MODULE
7324 # non-empty at configure time, or by adding -multi_module to the
7325 # link flags.
7326 rm -rf libconftest.dylib*
7327 echo "int foo(void){return 1;}" > conftest.c
7328 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7329 -dynamiclib -Wl,-single_module conftest.c" >&5
7330 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7331 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7332 _lt_result=$?
7333 # If there is a non-empty error log, and "single_module"
7334 # appears in it, assume the flag caused a linker warning
7335 if test -s conftest.err && $GREP single_module conftest.err; then
7336 cat conftest.err >&5
7337 # Otherwise, if the output was created with a 0 exit code from
7338 # the compiler, it worked.
7339 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7340 lt_cv_apple_cc_single_mod=yes
7341 else
7342 cat conftest.err >&5
7343 fi
7344 rm -rf libconftest.dylib*
7345 rm -f conftest.*
7346 fi
7347 fi
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7349 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7350
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7352 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7353 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7354 $as_echo_n "(cached) " >&6
7355 else
7356 lt_cv_ld_exported_symbols_list=no
7357 save_LDFLAGS=$LDFLAGS
7358 echo "_main" > conftest.sym
7359 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7361 /* end confdefs.h. */
7362
7363 int
7364 main ()
7365 {
7366
7367 ;
7368 return 0;
7369 }
7370 _ACEOF
7371 if ac_fn_c_try_link "$LINENO"; then :
7372 lt_cv_ld_exported_symbols_list=yes
7373 else
7374 lt_cv_ld_exported_symbols_list=no
7375 fi
7376 rm -f core conftest.err conftest.$ac_objext \
7377 conftest$ac_exeext conftest.$ac_ext
7378 LDFLAGS=$save_LDFLAGS
7379
7380 fi
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7382 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7383
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7385 $as_echo_n "checking for -force_load linker flag... " >&6; }
7386 if ${lt_cv_ld_force_load+:} false; then :
7387 $as_echo_n "(cached) " >&6
7388 else
7389 lt_cv_ld_force_load=no
7390 cat > conftest.c << _LT_EOF
7391 int forced_loaded() { return 2;}
7392 _LT_EOF
7393 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7394 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7395 echo "$AR cr libconftest.a conftest.o" >&5
7396 $AR cr libconftest.a conftest.o 2>&5
7397 echo "$RANLIB libconftest.a" >&5
7398 $RANLIB libconftest.a 2>&5
7399 cat > conftest.c << _LT_EOF
7400 int main() { return 0;}
7401 _LT_EOF
7402 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7403 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7404 _lt_result=$?
7405 if test -s conftest.err && $GREP force_load conftest.err; then
7406 cat conftest.err >&5
7407 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7408 lt_cv_ld_force_load=yes
7409 else
7410 cat conftest.err >&5
7411 fi
7412 rm -f conftest.err libconftest.a conftest conftest.c
7413 rm -rf conftest.dSYM
7414
7415 fi
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7417 $as_echo "$lt_cv_ld_force_load" >&6; }
7418 case $host_os in
7419 rhapsody* | darwin1.[012])
7420 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7421 darwin1.*)
7422 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7423 darwin*) # darwin 5.x on
7424 # if running on 10.5 or later, the deployment target defaults
7425 # to the OS version, if on x86, and 10.4, the deployment
7426 # target defaults to 10.4. Don't you love it?
7427 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7428 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7429 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7430 10.[012][,.]*)
7431 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7432 10.*)
7433 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7434 esac
7435 ;;
7436 esac
7437 if test yes = "$lt_cv_apple_cc_single_mod"; then
7438 _lt_dar_single_mod='$single_module'
7439 fi
7440 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7441 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7442 else
7443 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7444 fi
7445 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7446 _lt_dsymutil='~$DSYMUTIL $lib || :'
7447 else
7448 _lt_dsymutil=
7449 fi
7450 ;;
7451 esac
7452
7453 # func_munge_path_list VARIABLE PATH
7454 # -----------------------------------
7455 # VARIABLE is name of variable containing _space_ separated list of
7456 # directories to be munged by the contents of PATH, which is string
7457 # having a format:
7458 # "DIR[:DIR]:"
7459 # string "DIR[ DIR]" will be prepended to VARIABLE
7460 # ":DIR[:DIR]"
7461 # string "DIR[ DIR]" will be appended to VARIABLE
7462 # "DIRP[:DIRP]::[DIRA:]DIRA"
7463 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7464 # "DIRA[ DIRA]" will be appended to VARIABLE
7465 # "DIR[:DIR]"
7466 # VARIABLE will be replaced by "DIR[ DIR]"
7467 func_munge_path_list ()
7468 {
7469 case x$2 in
7470 x)
7471 ;;
7472 *:)
7473 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7474 ;;
7475 x:*)
7476 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7477 ;;
7478 *::*)
7479 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7480 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7481 ;;
7482 *)
7483 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7484 ;;
7485 esac
7486 }
7487
7488 ac_ext=c
7489 ac_cpp='$CPP $CPPFLAGS'
7490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7494 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7495 # On Suns, sometimes $CPP names a directory.
7496 if test -n "$CPP" && test -d "$CPP"; then
7497 CPP=
7498 fi
7499 if test -z "$CPP"; then
7500 if ${ac_cv_prog_CPP+:} false; then :
7501 $as_echo_n "(cached) " >&6
7502 else
7503 # Double quotes because CPP needs to be expanded
7504 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7505 do
7506 ac_preproc_ok=false
7507 for ac_c_preproc_warn_flag in '' yes
7508 do
7509 # Use a header file that comes with gcc, so configuring glibc
7510 # with a fresh cross-compiler works.
7511 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7512 # <limits.h> exists even on freestanding compilers.
7513 # On the NeXT, cc -E runs the code through the compiler's parser,
7514 # not just through cpp. "Syntax error" is here to catch this case.
7515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7516 /* end confdefs.h. */
7517 #ifdef __STDC__
7518 # include <limits.h>
7519 #else
7520 # include <assert.h>
7521 #endif
7522 Syntax error
7523 _ACEOF
7524 if ac_fn_c_try_cpp "$LINENO"; then :
7525
7526 else
7527 # Broken: fails on valid input.
7528 continue
7529 fi
7530 rm -f conftest.err conftest.i conftest.$ac_ext
7531
7532 # OK, works on sane cases. Now check whether nonexistent headers
7533 # can be detected and how.
7534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7535 /* end confdefs.h. */
7536 #include <ac_nonexistent.h>
7537 _ACEOF
7538 if ac_fn_c_try_cpp "$LINENO"; then :
7539 # Broken: success on invalid input.
7540 continue
7541 else
7542 # Passes both tests.
7543 ac_preproc_ok=:
7544 break
7545 fi
7546 rm -f conftest.err conftest.i conftest.$ac_ext
7547
7548 done
7549 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7550 rm -f conftest.i conftest.err conftest.$ac_ext
7551 if $ac_preproc_ok; then :
7552 break
7553 fi
7554
7555 done
7556 ac_cv_prog_CPP=$CPP
7557
7558 fi
7559 CPP=$ac_cv_prog_CPP
7560 else
7561 ac_cv_prog_CPP=$CPP
7562 fi
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7564 $as_echo "$CPP" >&6; }
7565 ac_preproc_ok=false
7566 for ac_c_preproc_warn_flag in '' yes
7567 do
7568 # Use a header file that comes with gcc, so configuring glibc
7569 # with a fresh cross-compiler works.
7570 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7571 # <limits.h> exists even on freestanding compilers.
7572 # On the NeXT, cc -E runs the code through the compiler's parser,
7573 # not just through cpp. "Syntax error" is here to catch this case.
7574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7575 /* end confdefs.h. */
7576 #ifdef __STDC__
7577 # include <limits.h>
7578 #else
7579 # include <assert.h>
7580 #endif
7581 Syntax error
7582 _ACEOF
7583 if ac_fn_c_try_cpp "$LINENO"; then :
7584
7585 else
7586 # Broken: fails on valid input.
7587 continue
7588 fi
7589 rm -f conftest.err conftest.i conftest.$ac_ext
7590
7591 # OK, works on sane cases. Now check whether nonexistent headers
7592 # can be detected and how.
7593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7594 /* end confdefs.h. */
7595 #include <ac_nonexistent.h>
7596 _ACEOF
7597 if ac_fn_c_try_cpp "$LINENO"; then :
7598 # Broken: success on invalid input.
7599 continue
7600 else
7601 # Passes both tests.
7602 ac_preproc_ok=:
7603 break
7604 fi
7605 rm -f conftest.err conftest.i conftest.$ac_ext
7606
7607 done
7608 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7609 rm -f conftest.i conftest.err conftest.$ac_ext
7610 if $ac_preproc_ok; then :
7611
7612 else
7613 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7614 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7615 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7616 See \`config.log' for more details" "$LINENO" 5; }
7617 fi
7618
7619 ac_ext=c
7620 ac_cpp='$CPP $CPPFLAGS'
7621 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7622 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7623 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7624
7625
7626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7627 $as_echo_n "checking for ANSI C header files... " >&6; }
7628 if ${ac_cv_header_stdc+:} false; then :
7629 $as_echo_n "(cached) " >&6
7630 else
7631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7632 /* end confdefs.h. */
7633 #include <stdlib.h>
7634 #include <stdarg.h>
7635 #include <string.h>
7636 #include <float.h>
7637
7638 int
7639 main ()
7640 {
7641
7642 ;
7643 return 0;
7644 }
7645 _ACEOF
7646 if ac_fn_c_try_compile "$LINENO"; then :
7647 ac_cv_header_stdc=yes
7648 else
7649 ac_cv_header_stdc=no
7650 fi
7651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7652
7653 if test $ac_cv_header_stdc = yes; then
7654 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7656 /* end confdefs.h. */
7657 #include <string.h>
7658
7659 _ACEOF
7660 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7661 $EGREP "memchr" >/dev/null 2>&1; then :
7662
7663 else
7664 ac_cv_header_stdc=no
7665 fi
7666 rm -f conftest*
7667
7668 fi
7669
7670 if test $ac_cv_header_stdc = yes; then
7671 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7673 /* end confdefs.h. */
7674 #include <stdlib.h>
7675
7676 _ACEOF
7677 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7678 $EGREP "free" >/dev/null 2>&1; then :
7679
7680 else
7681 ac_cv_header_stdc=no
7682 fi
7683 rm -f conftest*
7684
7685 fi
7686
7687 if test $ac_cv_header_stdc = yes; then
7688 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7689 if test "$cross_compiling" = yes; then :
7690 :
7691 else
7692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7693 /* end confdefs.h. */
7694 #include <ctype.h>
7695 #include <stdlib.h>
7696 #if ((' ' & 0x0FF) == 0x020)
7697 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7698 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7699 #else
7700 # define ISLOWER(c) \
7701 (('a' <= (c) && (c) <= 'i') \
7702 || ('j' <= (c) && (c) <= 'r') \
7703 || ('s' <= (c) && (c) <= 'z'))
7704 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7705 #endif
7706
7707 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7708 int
7709 main ()
7710 {
7711 int i;
7712 for (i = 0; i < 256; i++)
7713 if (XOR (islower (i), ISLOWER (i))
7714 || toupper (i) != TOUPPER (i))
7715 return 2;
7716 return 0;
7717 }
7718 _ACEOF
7719 if ac_fn_c_try_run "$LINENO"; then :
7720
7721 else
7722 ac_cv_header_stdc=no
7723 fi
7724 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7725 conftest.$ac_objext conftest.beam conftest.$ac_ext
7726 fi
7727
7728 fi
7729 fi
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7731 $as_echo "$ac_cv_header_stdc" >&6; }
7732 if test $ac_cv_header_stdc = yes; then
7733
7734 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7735
7736 fi
7737
7738 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7739 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7740 inttypes.h stdint.h unistd.h
7741 do :
7742 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7743 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7744 "
7745 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7746 cat >>confdefs.h <<_ACEOF
7747 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7748 _ACEOF
7749
7750 fi
7751
7752 done
7753
7754
7755 for ac_header in dlfcn.h
7756 do :
7757 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7758 "
7759 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7760 cat >>confdefs.h <<_ACEOF
7761 #define HAVE_DLFCN_H 1
7762 _ACEOF
7763
7764 fi
7765
7766 done
7767
7768
7769
7770
7771
7772 # Set options
7773
7774
7775
7776 enable_dlopen=no
7777
7778
7779 enable_win32_dll=no
7780
7781
7782 # Check whether --enable-shared was given.
7783 if test "${enable_shared+set}" = set; then :
7784 enableval=$enable_shared; p=${PACKAGE-default}
7785 case $enableval in
7786 yes) enable_shared=yes ;;
7787 no) enable_shared=no ;;
7788 *)
7789 enable_shared=no
7790 # Look at the argument we got. We use all the common list separators.
7791 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7792 for pkg in $enableval; do
7793 IFS=$lt_save_ifs
7794 if test "X$pkg" = "X$p"; then
7795 enable_shared=yes
7796 fi
7797 done
7798 IFS=$lt_save_ifs
7799 ;;
7800 esac
7801 else
7802 enable_shared=yes
7803 fi
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813 # Check whether --enable-static was given.
7814 if test "${enable_static+set}" = set; then :
7815 enableval=$enable_static; p=${PACKAGE-default}
7816 case $enableval in
7817 yes) enable_static=yes ;;
7818 no) enable_static=no ;;
7819 *)
7820 enable_static=no
7821 # Look at the argument we got. We use all the common list separators.
7822 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7823 for pkg in $enableval; do
7824 IFS=$lt_save_ifs
7825 if test "X$pkg" = "X$p"; then
7826 enable_static=yes
7827 fi
7828 done
7829 IFS=$lt_save_ifs
7830 ;;
7831 esac
7832 else
7833 enable_static=yes
7834 fi
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845 # Check whether --with-pic was given.
7846 if test "${with_pic+set}" = set; then :
7847 withval=$with_pic; lt_p=${PACKAGE-default}
7848 case $withval in
7849 yes|no) pic_mode=$withval ;;
7850 *)
7851 pic_mode=default
7852 # Look at the argument we got. We use all the common list separators.
7853 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7854 for lt_pkg in $withval; do
7855 IFS=$lt_save_ifs
7856 if test "X$lt_pkg" = "X$lt_p"; then
7857 pic_mode=yes
7858 fi
7859 done
7860 IFS=$lt_save_ifs
7861 ;;
7862 esac
7863 else
7864 pic_mode=default
7865 fi
7866
7867
7868
7869
7870
7871
7872
7873
7874 # Check whether --enable-fast-install was given.
7875 if test "${enable_fast_install+set}" = set; then :
7876 enableval=$enable_fast_install; p=${PACKAGE-default}
7877 case $enableval in
7878 yes) enable_fast_install=yes ;;
7879 no) enable_fast_install=no ;;
7880 *)
7881 enable_fast_install=no
7882 # Look at the argument we got. We use all the common list separators.
7883 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7884 for pkg in $enableval; do
7885 IFS=$lt_save_ifs
7886 if test "X$pkg" = "X$p"; then
7887 enable_fast_install=yes
7888 fi
7889 done
7890 IFS=$lt_save_ifs
7891 ;;
7892 esac
7893 else
7894 enable_fast_install=yes
7895 fi
7896
7897
7898
7899
7900
7901
7902
7903
7904 shared_archive_member_spec=
7905 case $host,$enable_shared in
7906 power*-*-aix[5-9]*,yes)
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7908 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7909
7910 # Check whether --with-aix-soname was given.
7911 if test "${with_aix_soname+set}" = set; then :
7912 withval=$with_aix_soname; case $withval in
7913 aix|svr4|both)
7914 ;;
7915 *)
7916 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7917 ;;
7918 esac
7919 lt_cv_with_aix_soname=$with_aix_soname
7920 else
7921 if ${lt_cv_with_aix_soname+:} false; then :
7922 $as_echo_n "(cached) " >&6
7923 else
7924 lt_cv_with_aix_soname=aix
7925 fi
7926
7927 with_aix_soname=$lt_cv_with_aix_soname
7928 fi
7929
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7931 $as_echo "$with_aix_soname" >&6; }
7932 if test aix != "$with_aix_soname"; then
7933 # For the AIX way of multilib, we name the shared archive member
7934 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7935 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7936 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7937 # the AIX toolchain works better with OBJECT_MODE set (default 32).
7938 if test 64 = "${OBJECT_MODE-32}"; then
7939 shared_archive_member_spec=shr_64
7940 else
7941 shared_archive_member_spec=shr
7942 fi
7943 fi
7944 ;;
7945 *)
7946 with_aix_soname=aix
7947 ;;
7948 esac
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959 # This can be used to rebuild libtool when needed
7960 LIBTOOL_DEPS=$ltmain
7961
7962 # Always use our own libtool.
7963 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994 test -z "$LN_S" && LN_S="ln -s"
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009 if test -n "${ZSH_VERSION+set}"; then
8010 setopt NO_GLOB_SUBST
8011 fi
8012
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8014 $as_echo_n "checking for objdir... " >&6; }
8015 if ${lt_cv_objdir+:} false; then :
8016 $as_echo_n "(cached) " >&6
8017 else
8018 rm -f .libs 2>/dev/null
8019 mkdir .libs 2>/dev/null
8020 if test -d .libs; then
8021 lt_cv_objdir=.libs
8022 else
8023 # MS-DOS does not allow filenames that begin with a dot.
8024 lt_cv_objdir=_libs
8025 fi
8026 rmdir .libs 2>/dev/null
8027 fi
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8029 $as_echo "$lt_cv_objdir" >&6; }
8030 objdir=$lt_cv_objdir
8031
8032
8033
8034
8035
8036 cat >>confdefs.h <<_ACEOF
8037 #define LT_OBJDIR "$lt_cv_objdir/"
8038 _ACEOF
8039
8040
8041
8042
8043 case $host_os in
8044 aix3*)
8045 # AIX sometimes has problems with the GCC collect2 program. For some
8046 # reason, if we set the COLLECT_NAMES environment variable, the problems
8047 # vanish in a puff of smoke.
8048 if test set != "${COLLECT_NAMES+set}"; then
8049 COLLECT_NAMES=
8050 export COLLECT_NAMES
8051 fi
8052 ;;
8053 esac
8054
8055 # Global variables:
8056 ofile=libtool
8057 can_build_shared=yes
8058
8059 # All known linkers require a '.a' archive for static linking (except MSVC,
8060 # which needs '.lib').
8061 libext=a
8062
8063 with_gnu_ld=$lt_cv_prog_gnu_ld
8064
8065 old_CC=$CC
8066 old_CFLAGS=$CFLAGS
8067
8068 # Set sane defaults for various variables
8069 test -z "$CC" && CC=cc
8070 test -z "$LTCC" && LTCC=$CC
8071 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8072 test -z "$LD" && LD=ld
8073 test -z "$ac_objext" && ac_objext=o
8074
8075 func_cc_basename $compiler
8076 cc_basename=$func_cc_basename_result
8077
8078
8079 # Only perform the check for file, if the check method requires it
8080 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8081 case $deplibs_check_method in
8082 file_magic*)
8083 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8085 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8086 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8087 $as_echo_n "(cached) " >&6
8088 else
8089 case $MAGIC_CMD in
8090 [\\/*] | ?:[\\/]*)
8091 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8092 ;;
8093 *)
8094 lt_save_MAGIC_CMD=$MAGIC_CMD
8095 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8096 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8097 for ac_dir in $ac_dummy; do
8098 IFS=$lt_save_ifs
8099 test -z "$ac_dir" && ac_dir=.
8100 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8101 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8102 if test -n "$file_magic_test_file"; then
8103 case $deplibs_check_method in
8104 "file_magic "*)
8105 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8106 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8107 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8108 $EGREP "$file_magic_regex" > /dev/null; then
8109 :
8110 else
8111 cat <<_LT_EOF 1>&2
8112
8113 *** Warning: the command libtool uses to detect shared libraries,
8114 *** $file_magic_cmd, produces output that libtool cannot recognize.
8115 *** The result is that libtool may fail to recognize shared libraries
8116 *** as such. This will affect the creation of libtool libraries that
8117 *** depend on shared libraries, but programs linked with such libtool
8118 *** libraries will work regardless of this problem. Nevertheless, you
8119 *** may want to report the problem to your system manager and/or to
8120 *** bug-libtool (at] gnu.org
8121
8122 _LT_EOF
8123 fi ;;
8124 esac
8125 fi
8126 break
8127 fi
8128 done
8129 IFS=$lt_save_ifs
8130 MAGIC_CMD=$lt_save_MAGIC_CMD
8131 ;;
8132 esac
8133 fi
8134
8135 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8136 if test -n "$MAGIC_CMD"; then
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8138 $as_echo "$MAGIC_CMD" >&6; }
8139 else
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8141 $as_echo "no" >&6; }
8142 fi
8143
8144
8145
8146
8147
8148 if test -z "$lt_cv_path_MAGIC_CMD"; then
8149 if test -n "$ac_tool_prefix"; then
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8151 $as_echo_n "checking for file... " >&6; }
8152 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8153 $as_echo_n "(cached) " >&6
8154 else
8155 case $MAGIC_CMD in
8156 [\\/*] | ?:[\\/]*)
8157 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8158 ;;
8159 *)
8160 lt_save_MAGIC_CMD=$MAGIC_CMD
8161 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8162 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8163 for ac_dir in $ac_dummy; do
8164 IFS=$lt_save_ifs
8165 test -z "$ac_dir" && ac_dir=.
8166 if test -f "$ac_dir/file"; then
8167 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8168 if test -n "$file_magic_test_file"; then
8169 case $deplibs_check_method in
8170 "file_magic "*)
8171 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8172 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8173 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8174 $EGREP "$file_magic_regex" > /dev/null; then
8175 :
8176 else
8177 cat <<_LT_EOF 1>&2
8178
8179 *** Warning: the command libtool uses to detect shared libraries,
8180 *** $file_magic_cmd, produces output that libtool cannot recognize.
8181 *** The result is that libtool may fail to recognize shared libraries
8182 *** as such. This will affect the creation of libtool libraries that
8183 *** depend on shared libraries, but programs linked with such libtool
8184 *** libraries will work regardless of this problem. Nevertheless, you
8185 *** may want to report the problem to your system manager and/or to
8186 *** bug-libtool (at] gnu.org
8187
8188 _LT_EOF
8189 fi ;;
8190 esac
8191 fi
8192 break
8193 fi
8194 done
8195 IFS=$lt_save_ifs
8196 MAGIC_CMD=$lt_save_MAGIC_CMD
8197 ;;
8198 esac
8199 fi
8200
8201 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8202 if test -n "$MAGIC_CMD"; then
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8204 $as_echo "$MAGIC_CMD" >&6; }
8205 else
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8207 $as_echo "no" >&6; }
8208 fi
8209
8210
8211 else
8212 MAGIC_CMD=:
8213 fi
8214 fi
8215
8216 fi
8217 ;;
8218 esac
8219
8220 # Use C for the default configuration in the libtool script
8221
8222 lt_save_CC=$CC
8223 ac_ext=c
8224 ac_cpp='$CPP $CPPFLAGS'
8225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8228
8229
8230 # Source file extension for C test sources.
8231 ac_ext=c
8232
8233 # Object file extension for compiled C test sources.
8234 objext=o
8235 objext=$objext
8236
8237 # Code to be used in simple compile tests
8238 lt_simple_compile_test_code="int some_variable = 0;"
8239
8240 # Code to be used in simple link tests
8241 lt_simple_link_test_code='int main(){return(0);}'
8242
8243
8244
8245
8246
8247
8248
8249 # If no C compiler was specified, use CC.
8250 LTCC=${LTCC-"$CC"}
8251
8252 # If no C compiler flags were specified, use CFLAGS.
8253 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8254
8255 # Allow CC to be a program name with arguments.
8256 compiler=$CC
8257
8258 # Save the default compiler, since it gets overwritten when the other
8259 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8260 compiler_DEFAULT=$CC
8261
8262 # save warnings/boilerplate of simple test code
8263 ac_outfile=conftest.$ac_objext
8264 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8265 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8266 _lt_compiler_boilerplate=`cat conftest.err`
8267 $RM conftest*
8268
8269 ac_outfile=conftest.$ac_objext
8270 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8271 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8272 _lt_linker_boilerplate=`cat conftest.err`
8273 $RM -r conftest*
8274
8275
8276 if test -n "$compiler"; then
8277
8278 lt_prog_compiler_no_builtin_flag=
8279
8280 if test yes = "$GCC"; then
8281 case $cc_basename in
8282 nvcc*)
8283 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8284 *)
8285 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8286 esac
8287
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8289 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8290 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8291 $as_echo_n "(cached) " >&6
8292 else
8293 lt_cv_prog_compiler_rtti_exceptions=no
8294 ac_outfile=conftest.$ac_objext
8295 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8296 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8297 # Insert the option either (1) after the last *FLAGS variable, or
8298 # (2) before a word containing "conftest.", or (3) at the end.
8299 # Note that $ac_compile itself does not contain backslashes and begins
8300 # with a dollar sign (not a hyphen), so the echo should work correctly.
8301 # The option is referenced via a variable to avoid confusing sed.
8302 lt_compile=`echo "$ac_compile" | $SED \
8303 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8304 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8305 -e 's:$: $lt_compiler_flag:'`
8306 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8307 (eval "$lt_compile" 2>conftest.err)
8308 ac_status=$?
8309 cat conftest.err >&5
8310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311 if (exit $ac_status) && test -s "$ac_outfile"; then
8312 # The compiler can only warn and ignore the option if not recognized
8313 # So say no if there are warnings other than the usual output.
8314 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8315 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8316 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8317 lt_cv_prog_compiler_rtti_exceptions=yes
8318 fi
8319 fi
8320 $RM conftest*
8321
8322 fi
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8324 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8325
8326 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8327 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8328 else
8329 :
8330 fi
8331
8332 fi
8333
8334
8335
8336
8337
8338
8339 lt_prog_compiler_wl=
8340 lt_prog_compiler_pic=
8341 lt_prog_compiler_static=
8342
8343
8344 if test yes = "$GCC"; then
8345 lt_prog_compiler_wl='-Wl,'
8346 lt_prog_compiler_static='-static'
8347
8348 case $host_os in
8349 aix*)
8350 # All AIX code is PIC.
8351 if test ia64 = "$host_cpu"; then
8352 # AIX 5 now supports IA64 processor
8353 lt_prog_compiler_static='-Bstatic'
8354 fi
8355 lt_prog_compiler_pic='-fPIC'
8356 ;;
8357
8358 amigaos*)
8359 case $host_cpu in
8360 powerpc)
8361 # see comment about AmigaOS4 .so support
8362 lt_prog_compiler_pic='-fPIC'
8363 ;;
8364 m68k)
8365 # FIXME: we need at least 68020 code to build shared libraries, but
8366 # adding the '-m68020' flag to GCC prevents building anything better,
8367 # like '-m68040'.
8368 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8369 ;;
8370 esac
8371 ;;
8372
8373 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8374 # PIC is the default for these OSes.
8375 ;;
8376
8377 mingw* | cygwin* | pw32* | os2* | cegcc*)
8378 # This hack is so that the source file can tell whether it is being
8379 # built for inclusion in a dll (and should export symbols for example).
8380 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8381 # (--disable-auto-import) libraries
8382 lt_prog_compiler_pic='-DDLL_EXPORT'
8383 case $host_os in
8384 os2*)
8385 lt_prog_compiler_static='$wl-static'
8386 ;;
8387 esac
8388 ;;
8389
8390 darwin* | rhapsody*)
8391 # PIC is the default on this platform
8392 # Common symbols not allowed in MH_DYLIB files
8393 lt_prog_compiler_pic='-fno-common'
8394 ;;
8395
8396 haiku*)
8397 # PIC is the default for Haiku.
8398 # The "-static" flag exists, but is broken.
8399 lt_prog_compiler_static=
8400 ;;
8401
8402 hpux*)
8403 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8404 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8405 # sets the default TLS model and affects inlining.
8406 case $host_cpu in
8407 hppa*64*)
8408 # +Z the default
8409 ;;
8410 *)
8411 lt_prog_compiler_pic='-fPIC'
8412 ;;
8413 esac
8414 ;;
8415
8416 interix[3-9]*)
8417 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8418 # Instead, we relocate shared libraries at runtime.
8419 ;;
8420
8421 msdosdjgpp*)
8422 # Just because we use GCC doesn't mean we suddenly get shared libraries
8423 # on systems that don't support them.
8424 lt_prog_compiler_can_build_shared=no
8425 enable_shared=no
8426 ;;
8427
8428 *nto* | *qnx*)
8429 # QNX uses GNU C++, but need to define -shared option too, otherwise
8430 # it will coredump.
8431 lt_prog_compiler_pic='-fPIC -shared'
8432 ;;
8433
8434 sysv4*MP*)
8435 if test -d /usr/nec; then
8436 lt_prog_compiler_pic=-Kconform_pic
8437 fi
8438 ;;
8439
8440 *)
8441 lt_prog_compiler_pic='-fPIC'
8442 ;;
8443 esac
8444
8445 case $cc_basename in
8446 nvcc*) # Cuda Compiler Driver 2.2
8447 lt_prog_compiler_wl='-Xlinker '
8448 if test -n "$lt_prog_compiler_pic"; then
8449 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8450 fi
8451 ;;
8452 esac
8453 else
8454 # PORTME Check for flag to pass linker flags through the system compiler.
8455 case $host_os in
8456 aix*)
8457 lt_prog_compiler_wl='-Wl,'
8458 if test ia64 = "$host_cpu"; then
8459 # AIX 5 now supports IA64 processor
8460 lt_prog_compiler_static='-Bstatic'
8461 else
8462 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8463 fi
8464 ;;
8465
8466 darwin* | rhapsody*)
8467 # PIC is the default on this platform
8468 # Common symbols not allowed in MH_DYLIB files
8469 lt_prog_compiler_pic='-fno-common'
8470 case $cc_basename in
8471 nagfor*)
8472 # NAG Fortran compiler
8473 lt_prog_compiler_wl='-Wl,-Wl,,'
8474 lt_prog_compiler_pic='-PIC'
8475 lt_prog_compiler_static='-Bstatic'
8476 ;;
8477 esac
8478 ;;
8479
8480 mingw* | cygwin* | pw32* | os2* | cegcc*)
8481 # This hack is so that the source file can tell whether it is being
8482 # built for inclusion in a dll (and should export symbols for example).
8483 lt_prog_compiler_pic='-DDLL_EXPORT'
8484 case $host_os in
8485 os2*)
8486 lt_prog_compiler_static='$wl-static'
8487 ;;
8488 esac
8489 ;;
8490
8491 hpux9* | hpux10* | hpux11*)
8492 lt_prog_compiler_wl='-Wl,'
8493 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8494 # not for PA HP-UX.
8495 case $host_cpu in
8496 hppa*64*|ia64*)
8497 # +Z the default
8498 ;;
8499 *)
8500 lt_prog_compiler_pic='+Z'
8501 ;;
8502 esac
8503 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8504 lt_prog_compiler_static='$wl-a ${wl}archive'
8505 ;;
8506
8507 irix5* | irix6* | nonstopux*)
8508 lt_prog_compiler_wl='-Wl,'
8509 # PIC (with -KPIC) is the default.
8510 lt_prog_compiler_static='-non_shared'
8511 ;;
8512
8513 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8514 case $cc_basename in
8515 # old Intel for x86_64, which still supported -KPIC.
8516 ecc*)
8517 lt_prog_compiler_wl='-Wl,'
8518 lt_prog_compiler_pic='-KPIC'
8519 lt_prog_compiler_static='-static'
8520 ;;
8521 # flang / f18. f95 an alias for gfortran or flang on Debian
8522 flang* | f18* | f95*)
8523 lt_prog_compiler_wl='-Wl,'
8524 lt_prog_compiler_pic='-fPIC'
8525 lt_prog_compiler_static='-static'
8526 ;;
8527 # icc used to be incompatible with GCC.
8528 # ICC 10 doesn't accept -KPIC any more.
8529 icc* | ifort*)
8530 lt_prog_compiler_wl='-Wl,'
8531 lt_prog_compiler_pic='-fPIC'
8532 lt_prog_compiler_static='-static'
8533 ;;
8534 # Lahey Fortran 8.1.
8535 lf95*)
8536 lt_prog_compiler_wl='-Wl,'
8537 lt_prog_compiler_pic='--shared'
8538 lt_prog_compiler_static='--static'
8539 ;;
8540 nagfor*)
8541 # NAG Fortran compiler
8542 lt_prog_compiler_wl='-Wl,-Wl,,'
8543 lt_prog_compiler_pic='-PIC'
8544 lt_prog_compiler_static='-Bstatic'
8545 ;;
8546 tcc*)
8547 # Fabrice Bellard et al's Tiny C Compiler
8548 lt_prog_compiler_wl='-Wl,'
8549 lt_prog_compiler_pic='-fPIC'
8550 lt_prog_compiler_static='-static'
8551 ;;
8552 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8553 # Portland Group compilers (*not* the Pentium gcc compiler,
8554 # which looks to be a dead project)
8555 lt_prog_compiler_wl='-Wl,'
8556 lt_prog_compiler_pic='-fpic'
8557 lt_prog_compiler_static='-Bstatic'
8558 ;;
8559 ccc*)
8560 lt_prog_compiler_wl='-Wl,'
8561 # All Alpha code is PIC.
8562 lt_prog_compiler_static='-non_shared'
8563 ;;
8564 xl* | bgxl* | bgf* | mpixl*)
8565 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8566 lt_prog_compiler_wl='-Wl,'
8567 lt_prog_compiler_pic='-qpic'
8568 lt_prog_compiler_static='-qstaticlink'
8569 ;;
8570 *)
8571 case `$CC -V 2>&1 | sed 5q` in
8572 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8573 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8574 lt_prog_compiler_pic='-KPIC'
8575 lt_prog_compiler_static='-Bstatic'
8576 lt_prog_compiler_wl=''
8577 ;;
8578 *Sun\ F* | *Sun*Fortran*)
8579 lt_prog_compiler_pic='-KPIC'
8580 lt_prog_compiler_static='-Bstatic'
8581 lt_prog_compiler_wl='-Qoption ld '
8582 ;;
8583 *Sun\ C*)
8584 # Sun C 5.9
8585 lt_prog_compiler_pic='-KPIC'
8586 lt_prog_compiler_static='-Bstatic'
8587 lt_prog_compiler_wl='-Wl,'
8588 ;;
8589 *Intel*\ [CF]*Compiler*)
8590 lt_prog_compiler_wl='-Wl,'
8591 lt_prog_compiler_pic='-fPIC'
8592 lt_prog_compiler_static='-static'
8593 ;;
8594 *Portland\ Group*)
8595 lt_prog_compiler_wl='-Wl,'
8596 lt_prog_compiler_pic='-fpic'
8597 lt_prog_compiler_static='-Bstatic'
8598 ;;
8599 esac
8600 ;;
8601 esac
8602 ;;
8603
8604 newsos6)
8605 lt_prog_compiler_pic='-KPIC'
8606 lt_prog_compiler_static='-Bstatic'
8607 ;;
8608
8609 *nto* | *qnx*)
8610 # QNX uses GNU C++, but need to define -shared option too, otherwise
8611 # it will coredump.
8612 lt_prog_compiler_pic='-fPIC -shared'
8613 ;;
8614
8615 osf3* | osf4* | osf5*)
8616 lt_prog_compiler_wl='-Wl,'
8617 # All OSF/1 code is PIC.
8618 lt_prog_compiler_static='-non_shared'
8619 ;;
8620
8621 rdos*)
8622 lt_prog_compiler_static='-non_shared'
8623 ;;
8624
8625 solaris*)
8626 lt_prog_compiler_pic='-KPIC'
8627 lt_prog_compiler_static='-Bstatic'
8628 case $cc_basename in
8629 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8630 lt_prog_compiler_wl='-Qoption ld ';;
8631 *)
8632 lt_prog_compiler_wl='-Wl,';;
8633 esac
8634 ;;
8635
8636 sunos4*)
8637 lt_prog_compiler_wl='-Qoption ld '
8638 lt_prog_compiler_pic='-PIC'
8639 lt_prog_compiler_static='-Bstatic'
8640 ;;
8641
8642 sysv4 | sysv4.2uw2* | sysv4.3*)
8643 lt_prog_compiler_wl='-Wl,'
8644 lt_prog_compiler_pic='-KPIC'
8645 lt_prog_compiler_static='-Bstatic'
8646 ;;
8647
8648 sysv4*MP*)
8649 if test -d /usr/nec; then
8650 lt_prog_compiler_pic='-Kconform_pic'
8651 lt_prog_compiler_static='-Bstatic'
8652 fi
8653 ;;
8654
8655 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8656 lt_prog_compiler_wl='-Wl,'
8657 lt_prog_compiler_pic='-KPIC'
8658 lt_prog_compiler_static='-Bstatic'
8659 ;;
8660
8661 unicos*)
8662 lt_prog_compiler_wl='-Wl,'
8663 lt_prog_compiler_can_build_shared=no
8664 ;;
8665
8666 uts4*)
8667 lt_prog_compiler_pic='-pic'
8668 lt_prog_compiler_static='-Bstatic'
8669 ;;
8670
8671 *)
8672 lt_prog_compiler_can_build_shared=no
8673 ;;
8674 esac
8675 fi
8676
8677 case $host_os in
8678 # For platforms that do not support PIC, -DPIC is meaningless:
8679 *djgpp*)
8680 lt_prog_compiler_pic=
8681 ;;
8682 *)
8683 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8684 ;;
8685 esac
8686
8687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8688 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8689 if ${lt_cv_prog_compiler_pic+:} false; then :
8690 $as_echo_n "(cached) " >&6
8691 else
8692 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8693 fi
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8695 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8696 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8697
8698 #
8699 # Check to make sure the PIC flag actually works.
8700 #
8701 if test -n "$lt_prog_compiler_pic"; then
8702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8703 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8704 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8705 $as_echo_n "(cached) " >&6
8706 else
8707 lt_cv_prog_compiler_pic_works=no
8708 ac_outfile=conftest.$ac_objext
8709 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8710 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8711 # Insert the option either (1) after the last *FLAGS variable, or
8712 # (2) before a word containing "conftest.", or (3) at the end.
8713 # Note that $ac_compile itself does not contain backslashes and begins
8714 # with a dollar sign (not a hyphen), so the echo should work correctly.
8715 # The option is referenced via a variable to avoid confusing sed.
8716 lt_compile=`echo "$ac_compile" | $SED \
8717 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8718 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8719 -e 's:$: $lt_compiler_flag:'`
8720 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8721 (eval "$lt_compile" 2>conftest.err)
8722 ac_status=$?
8723 cat conftest.err >&5
8724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8725 if (exit $ac_status) && test -s "$ac_outfile"; then
8726 # The compiler can only warn and ignore the option if not recognized
8727 # So say no if there are warnings other than the usual output.
8728 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8729 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8730 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8731 lt_cv_prog_compiler_pic_works=yes
8732 fi
8733 fi
8734 $RM conftest*
8735
8736 fi
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8738 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8739
8740 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8741 case $lt_prog_compiler_pic in
8742 "" | " "*) ;;
8743 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8744 esac
8745 else
8746 lt_prog_compiler_pic=
8747 lt_prog_compiler_can_build_shared=no
8748 fi
8749
8750 fi
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762 #
8763 # Check to make sure the static flag actually works.
8764 #
8765 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8767 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8768 if ${lt_cv_prog_compiler_static_works+:} false; then :
8769 $as_echo_n "(cached) " >&6
8770 else
8771 lt_cv_prog_compiler_static_works=no
8772 save_LDFLAGS=$LDFLAGS
8773 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8774 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8775 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8776 # The linker can only warn and ignore the option if not recognized
8777 # So say no if there are warnings
8778 if test -s conftest.err; then
8779 # Append any errors to the config.log.
8780 cat conftest.err 1>&5
8781 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8782 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8783 if diff conftest.exp conftest.er2 >/dev/null; then
8784 lt_cv_prog_compiler_static_works=yes
8785 fi
8786 else
8787 lt_cv_prog_compiler_static_works=yes
8788 fi
8789 fi
8790 $RM -r conftest*
8791 LDFLAGS=$save_LDFLAGS
8792
8793 fi
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8795 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8796
8797 if test yes = "$lt_cv_prog_compiler_static_works"; then
8798 :
8799 else
8800 lt_prog_compiler_static=
8801 fi
8802
8803
8804
8805
8806
8807
8808
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8810 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8811 if ${lt_cv_prog_compiler_c_o+:} false; then :
8812 $as_echo_n "(cached) " >&6
8813 else
8814 lt_cv_prog_compiler_c_o=no
8815 $RM -r conftest 2>/dev/null
8816 mkdir conftest
8817 cd conftest
8818 mkdir out
8819 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8820
8821 lt_compiler_flag="-o out/conftest2.$ac_objext"
8822 # Insert the option either (1) after the last *FLAGS variable, or
8823 # (2) before a word containing "conftest.", or (3) at the end.
8824 # Note that $ac_compile itself does not contain backslashes and begins
8825 # with a dollar sign (not a hyphen), so the echo should work correctly.
8826 lt_compile=`echo "$ac_compile" | $SED \
8827 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8828 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8829 -e 's:$: $lt_compiler_flag:'`
8830 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8831 (eval "$lt_compile" 2>out/conftest.err)
8832 ac_status=$?
8833 cat out/conftest.err >&5
8834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8835 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8836 then
8837 # The compiler can only warn and ignore the option if not recognized
8838 # So say no if there are warnings
8839 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8840 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8841 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8842 lt_cv_prog_compiler_c_o=yes
8843 fi
8844 fi
8845 chmod u+w . 2>&5
8846 $RM conftest*
8847 # SGI C++ compiler will create directory out/ii_files/ for
8848 # template instantiation
8849 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8850 $RM out/* && rmdir out
8851 cd ..
8852 $RM -r conftest
8853 $RM conftest*
8854
8855 fi
8856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8857 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8858
8859
8860
8861
8862
8863
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8865 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8866 if ${lt_cv_prog_compiler_c_o+:} false; then :
8867 $as_echo_n "(cached) " >&6
8868 else
8869 lt_cv_prog_compiler_c_o=no
8870 $RM -r conftest 2>/dev/null
8871 mkdir conftest
8872 cd conftest
8873 mkdir out
8874 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8875
8876 lt_compiler_flag="-o out/conftest2.$ac_objext"
8877 # Insert the option either (1) after the last *FLAGS variable, or
8878 # (2) before a word containing "conftest.", or (3) at the end.
8879 # Note that $ac_compile itself does not contain backslashes and begins
8880 # with a dollar sign (not a hyphen), so the echo should work correctly.
8881 lt_compile=`echo "$ac_compile" | $SED \
8882 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8883 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8884 -e 's:$: $lt_compiler_flag:'`
8885 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8886 (eval "$lt_compile" 2>out/conftest.err)
8887 ac_status=$?
8888 cat out/conftest.err >&5
8889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8890 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8891 then
8892 # The compiler can only warn and ignore the option if not recognized
8893 # So say no if there are warnings
8894 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8895 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8896 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8897 lt_cv_prog_compiler_c_o=yes
8898 fi
8899 fi
8900 chmod u+w . 2>&5
8901 $RM conftest*
8902 # SGI C++ compiler will create directory out/ii_files/ for
8903 # template instantiation
8904 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8905 $RM out/* && rmdir out
8906 cd ..
8907 $RM -r conftest
8908 $RM conftest*
8909
8910 fi
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8912 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8913
8914
8915
8916
8917 hard_links=nottested
8918 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8919 # do not overwrite the value of need_locks provided by the user
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8921 $as_echo_n "checking if we can lock with hard links... " >&6; }
8922 hard_links=yes
8923 $RM conftest*
8924 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8925 touch conftest.a
8926 ln conftest.a conftest.b 2>&5 || hard_links=no
8927 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8929 $as_echo "$hard_links" >&6; }
8930 if test no = "$hard_links"; then
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8932 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8933 need_locks=warn
8934 fi
8935 else
8936 need_locks=no
8937 fi
8938
8939
8940
8941
8942
8943
8944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8945 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8946
8947 runpath_var=
8948 allow_undefined_flag=
8949 always_export_symbols=no
8950 archive_cmds=
8951 archive_expsym_cmds=
8952 compiler_needs_object=no
8953 enable_shared_with_static_runtimes=no
8954 export_dynamic_flag_spec=
8955 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8956 hardcode_automatic=no
8957 hardcode_direct=no
8958 hardcode_direct_absolute=no
8959 hardcode_libdir_flag_spec=
8960 hardcode_libdir_separator=
8961 hardcode_minus_L=no
8962 hardcode_shlibpath_var=unsupported
8963 inherit_rpath=no
8964 link_all_deplibs=unknown
8965 module_cmds=
8966 module_expsym_cmds=
8967 old_archive_from_new_cmds=
8968 old_archive_from_expsyms_cmds=
8969 thread_safe_flag_spec=
8970 whole_archive_flag_spec=
8971 # include_expsyms should be a list of space-separated symbols to be *always*
8972 # included in the symbol list
8973 include_expsyms=
8974 # exclude_expsyms can be an extended regexp of symbols to exclude
8975 # it will be wrapped by ' (' and ')$', so one must not match beginning or
8976 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8977 # as well as any symbol that contains 'd'.
8978 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8979 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8980 # platforms (ab)use it in PIC code, but their linkers get confused if
8981 # the symbol is explicitly referenced. Since portable code cannot
8982 # rely on this symbol name, it's probably fine to never include it in
8983 # preloaded symbol tables.
8984 # Exclude shared library initialization/finalization symbols.
8985 extract_expsyms_cmds=
8986
8987 case $host_os in
8988 cygwin* | mingw* | pw32* | cegcc*)
8989 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8990 # When not using gcc, we currently assume that we are using
8991 # Microsoft Visual C++.
8992 if test yes != "$GCC"; then
8993 with_gnu_ld=no
8994 fi
8995 ;;
8996 interix*)
8997 # we just hope/assume this is gcc and not c89 (= MSVC++)
8998 with_gnu_ld=yes
8999 ;;
9000 openbsd* | bitrig*)
9001 with_gnu_ld=no
9002 ;;
9003 linux* | k*bsd*-gnu | gnu*)
9004 link_all_deplibs=no
9005 ;;
9006 esac
9007
9008 ld_shlibs=yes
9009
9010 # On some targets, GNU ld is compatible enough with the native linker
9011 # that we're better off using the native interface for both.
9012 lt_use_gnu_ld_interface=no
9013 if test yes = "$with_gnu_ld"; then
9014 case $host_os in
9015 aix*)
9016 # The AIX port of GNU ld has always aspired to compatibility
9017 # with the native linker. However, as the warning in the GNU ld
9018 # block says, versions before 2.19.5* couldn't really create working
9019 # shared libraries, regardless of the interface used.
9020 case `$LD -v 2>&1` in
9021 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9022 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9023 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9024 *)
9025 lt_use_gnu_ld_interface=yes
9026 ;;
9027 esac
9028 ;;
9029 *)
9030 lt_use_gnu_ld_interface=yes
9031 ;;
9032 esac
9033 fi
9034
9035 if test yes = "$lt_use_gnu_ld_interface"; then
9036 # If archive_cmds runs LD, not CC, wlarc should be empty
9037 wlarc='$wl'
9038
9039 # Set some defaults for GNU ld with shared library support. These
9040 # are reset later if shared libraries are not supported. Putting them
9041 # here allows them to be overridden if necessary.
9042 runpath_var=LD_RUN_PATH
9043 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9044 export_dynamic_flag_spec='$wl--export-dynamic'
9045 # ancient GNU ld didn't support --whole-archive et. al.
9046 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9047 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9048 else
9049 whole_archive_flag_spec=
9050 fi
9051 supports_anon_versioning=no
9052 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9053 *GNU\ gold*) supports_anon_versioning=yes ;;
9054 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9055 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9056 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9057 *\ 2.11.*) ;; # other 2.11 versions
9058 *) supports_anon_versioning=yes ;;
9059 esac
9060
9061 # See if GNU ld supports shared libraries.
9062 case $host_os in
9063 aix[3-9]*)
9064 # On AIX/PPC, the GNU linker is very broken
9065 if test ia64 != "$host_cpu"; then
9066 ld_shlibs=no
9067 cat <<_LT_EOF 1>&2
9068
9069 *** Warning: the GNU linker, at least up to release 2.19, is reported
9070 *** to be unable to reliably create shared libraries on AIX.
9071 *** Therefore, libtool is disabling shared libraries support. If you
9072 *** really care for shared libraries, you may want to install binutils
9073 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9074 *** You will then need to restart the configuration process.
9075
9076 _LT_EOF
9077 fi
9078 ;;
9079
9080 amigaos*)
9081 case $host_cpu in
9082 powerpc)
9083 # see comment about AmigaOS4 .so support
9084 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9085 archive_expsym_cmds=''
9086 ;;
9087 m68k)
9088 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)'
9089 hardcode_libdir_flag_spec='-L$libdir'
9090 hardcode_minus_L=yes
9091 ;;
9092 esac
9093 ;;
9094
9095 beos*)
9096 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9097 allow_undefined_flag=unsupported
9098 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
9099 # support --undefined. This deserves some investigation. FIXME
9100 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9101 else
9102 ld_shlibs=no
9103 fi
9104 ;;
9105
9106 cygwin* | mingw* | pw32* | cegcc*)
9107 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9108 # as there is no search path for DLLs.
9109 hardcode_libdir_flag_spec='-L$libdir'
9110 export_dynamic_flag_spec='$wl--export-all-symbols'
9111 allow_undefined_flag=unsupported
9112 always_export_symbols=no
9113 enable_shared_with_static_runtimes=yes
9114 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'
9115 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9116
9117 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9118 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9119 # If the export-symbols file already is a .def file, use it as
9120 # is; otherwise, prepend EXPORTS...
9121 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9122 cp $export_symbols $output_objdir/$soname.def;
9123 else
9124 echo EXPORTS > $output_objdir/$soname.def;
9125 cat $export_symbols >> $output_objdir/$soname.def;
9126 fi~
9127 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9128 else
9129 ld_shlibs=no
9130 fi
9131 ;;
9132
9133 haiku*)
9134 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9135 link_all_deplibs=yes
9136 ;;
9137
9138 os2*)
9139 hardcode_libdir_flag_spec='-L$libdir'
9140 hardcode_minus_L=yes
9141 allow_undefined_flag=unsupported
9142 shrext_cmds=.dll
9143 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9144 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9145 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9146 $ECHO EXPORTS >> $output_objdir/$libname.def~
9147 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9148 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9149 emximp -o $lib $output_objdir/$libname.def'
9150 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9151 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9152 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9153 $ECHO EXPORTS >> $output_objdir/$libname.def~
9154 prefix_cmds="$SED"~
9155 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9156 prefix_cmds="$prefix_cmds -e 1d";
9157 fi~
9158 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9159 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9160 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9161 emximp -o $lib $output_objdir/$libname.def'
9162 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9163 enable_shared_with_static_runtimes=yes
9164 ;;
9165
9166 interix[3-9]*)
9167 hardcode_direct=no
9168 hardcode_shlibpath_var=no
9169 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9170 export_dynamic_flag_spec='$wl-E'
9171 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9172 # Instead, shared libraries are loaded at an image base (0x10000000 by
9173 # default) and relocated if they conflict, which is a slow very memory
9174 # consuming and fragmenting process. To avoid this, we pick a random,
9175 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9176 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9177 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9178 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'
9179 ;;
9180
9181 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9182 tmp_diet=no
9183 if test linux-dietlibc = "$host_os"; then
9184 case $cc_basename in
9185 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9186 esac
9187 fi
9188 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9189 && test no = "$tmp_diet"
9190 then
9191 tmp_addflag=' $pic_flag'
9192 tmp_sharedflag='-shared'
9193 case $cc_basename,$host_cpu in
9194 pgcc*) # Portland Group C compiler
9195 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'
9196 tmp_addflag=' $pic_flag'
9197 ;;
9198 pgf77* | pgf90* | pgf95* | pgfortran*)
9199 # Portland Group f77 and f90 compilers
9200 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'
9201 tmp_addflag=' $pic_flag -Mnomain' ;;
9202 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9203 tmp_addflag=' -i_dynamic' ;;
9204 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9205 tmp_addflag=' -i_dynamic -nofor_main' ;;
9206 ifc* | ifort*) # Intel Fortran compiler
9207 tmp_addflag=' -nofor_main' ;;
9208 lf95*) # Lahey Fortran 8.1
9209 whole_archive_flag_spec=
9210 tmp_sharedflag='--shared' ;;
9211 nagfor*) # NAGFOR 5.3
9212 tmp_sharedflag='-Wl,-shared' ;;
9213 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9214 tmp_sharedflag='-qmkshrobj'
9215 tmp_addflag= ;;
9216 nvcc*) # Cuda Compiler Driver 2.2
9217 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'
9218 compiler_needs_object=yes
9219 ;;
9220 esac
9221 case `$CC -V 2>&1 | sed 5q` in
9222 *Sun\ C*) # Sun C 5.9
9223 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'
9224 compiler_needs_object=yes
9225 tmp_sharedflag='-G' ;;
9226 *Sun\ F*) # Sun Fortran 8.3
9227 tmp_sharedflag='-G' ;;
9228 esac
9229 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9230
9231 if test yes = "$supports_anon_versioning"; then
9232 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9233 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9234 echo "local: *; };" >> $output_objdir/$libname.ver~
9235 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9236 fi
9237
9238 case $cc_basename in
9239 tcc*)
9240 export_dynamic_flag_spec='-rdynamic'
9241 ;;
9242 xlf* | bgf* | bgxlf* | mpixlf*)
9243 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9244 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9245 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9246 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9247 if test yes = "$supports_anon_versioning"; then
9248 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9249 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9250 echo "local: *; };" >> $output_objdir/$libname.ver~
9251 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9252 fi
9253 ;;
9254 esac
9255 else
9256 ld_shlibs=no
9257 fi
9258 ;;
9259
9260 netbsd* | netbsdelf*-gnu)
9261 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9262 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9263 wlarc=
9264 else
9265 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9266 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9267 fi
9268 ;;
9269
9270 solaris*)
9271 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9272 ld_shlibs=no
9273 cat <<_LT_EOF 1>&2
9274
9275 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9276 *** create shared libraries on Solaris systems. Therefore, libtool
9277 *** is disabling shared libraries support. We urge you to upgrade GNU
9278 *** binutils to release 2.9.1 or newer. Another option is to modify
9279 *** your PATH or compiler configuration so that the native linker is
9280 *** used, and then restart.
9281
9282 _LT_EOF
9283 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9284 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9285 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9286 else
9287 ld_shlibs=no
9288 fi
9289 ;;
9290
9291 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9292 case `$LD -v 2>&1` in
9293 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9294 ld_shlibs=no
9295 cat <<_LT_EOF 1>&2
9296
9297 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9298 *** reliably create shared libraries on SCO systems. Therefore, libtool
9299 *** is disabling shared libraries support. We urge you to upgrade GNU
9300 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9301 *** your PATH or compiler configuration so that the native linker is
9302 *** used, and then restart.
9303
9304 _LT_EOF
9305 ;;
9306 *)
9307 # For security reasons, it is highly recommended that you always
9308 # use absolute paths for naming shared libraries, and exclude the
9309 # DT_RUNPATH tag from executables and libraries. But doing so
9310 # requires that you compile everything twice, which is a pain.
9311 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9312 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9313 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9314 archive_expsym_cmds='$CC -shared $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
9322 sunos4*)
9323 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9324 wlarc=
9325 hardcode_direct=yes
9326 hardcode_shlibpath_var=no
9327 ;;
9328
9329 *)
9330 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9331 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9332 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9333 else
9334 ld_shlibs=no
9335 fi
9336 ;;
9337 esac
9338
9339 if test no = "$ld_shlibs"; then
9340 runpath_var=
9341 hardcode_libdir_flag_spec=
9342 export_dynamic_flag_spec=
9343 whole_archive_flag_spec=
9344 fi
9345 else
9346 # PORTME fill in a description of your system's linker (not GNU ld)
9347 case $host_os in
9348 aix3*)
9349 allow_undefined_flag=unsupported
9350 always_export_symbols=yes
9351 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'
9352 # Note: this linker hardcodes the directories in LIBPATH if there
9353 # are no directories specified by -L.
9354 hardcode_minus_L=yes
9355 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9356 # Neither direct hardcoding nor static linking is supported with a
9357 # broken collect2.
9358 hardcode_direct=unsupported
9359 fi
9360 ;;
9361
9362 aix[4-9]*)
9363 if test ia64 = "$host_cpu"; then
9364 # On IA64, the linker does run time linking by default, so we don't
9365 # have to do anything special.
9366 aix_use_runtimelinking=no
9367 exp_sym_flag='-Bexport'
9368 no_entry_flag=
9369 else
9370 # If we're using GNU nm, then we don't want the "-C" option.
9371 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9372 # Without the "-l" option, or with the "-B" option, AIX nm treats
9373 # weak defined symbols like other global defined symbols, whereas
9374 # GNU nm marks them as "W".
9375 # While the 'weak' keyword is ignored in the Export File, we need
9376 # it in the Import File for the 'aix-soname' feature, so we have
9377 # to replace the "-B" option with "-P" for AIX nm.
9378 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9379 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'
9380 else
9381 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'
9382 fi
9383 aix_use_runtimelinking=no
9384
9385 # Test if we are trying to use run time linking or normal
9386 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9387 # have runtime linking enabled, and use it for executables.
9388 # For shared libraries, we enable/disable runtime linking
9389 # depending on the kind of the shared library created -
9390 # when "with_aix_soname,aix_use_runtimelinking" is:
9391 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9392 # "aix,yes" lib.so shared, rtl:yes, for executables
9393 # lib.a static archive
9394 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9395 # lib.a(lib.so.V) shared, rtl:no, for executables
9396 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9397 # lib.a(lib.so.V) shared, rtl:no
9398 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9399 # lib.a static archive
9400 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9401 for ld_flag in $LDFLAGS; do
9402 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9403 aix_use_runtimelinking=yes
9404 break
9405 fi
9406 done
9407 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9408 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9409 # so we don't have lib.a shared libs to link our executables.
9410 # We have to force runtime linking in this case.
9411 aix_use_runtimelinking=yes
9412 LDFLAGS="$LDFLAGS -Wl,-brtl"
9413 fi
9414 ;;
9415 esac
9416
9417 exp_sym_flag='-bexport'
9418 no_entry_flag='-bnoentry'
9419 fi
9420
9421 # When large executables or shared objects are built, AIX ld can
9422 # have problems creating the table of contents. If linking a library
9423 # or program results in "error TOC overflow" add -mminimal-toc to
9424 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9425 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9426
9427 archive_cmds=''
9428 hardcode_direct=yes
9429 hardcode_direct_absolute=yes
9430 hardcode_libdir_separator=':'
9431 link_all_deplibs=yes
9432 file_list_spec='$wl-f,'
9433 case $with_aix_soname,$aix_use_runtimelinking in
9434 aix,*) ;; # traditional, no import file
9435 svr4,* | *,yes) # use import file
9436 # The Import File defines what to hardcode.
9437 hardcode_direct=no
9438 hardcode_direct_absolute=no
9439 ;;
9440 esac
9441
9442 if test yes = "$GCC"; then
9443 case $host_os in aix4.[012]|aix4.[012].*)
9444 # We only want to do this on AIX 4.2 and lower, the check
9445 # below for broken collect2 doesn't work under 4.3+
9446 collect2name=`$CC -print-prog-name=collect2`
9447 if test -f "$collect2name" &&
9448 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9449 then
9450 # We have reworked collect2
9451 :
9452 else
9453 # We have old collect2
9454 hardcode_direct=unsupported
9455 # It fails to find uninstalled libraries when the uninstalled
9456 # path is not listed in the libpath. Setting hardcode_minus_L
9457 # to unsupported forces relinking
9458 hardcode_minus_L=yes
9459 hardcode_libdir_flag_spec='-L$libdir'
9460 hardcode_libdir_separator=
9461 fi
9462 ;;
9463 esac
9464 shared_flag='-shared'
9465 if test yes = "$aix_use_runtimelinking"; then
9466 shared_flag="$shared_flag "'$wl-G'
9467 fi
9468 # Need to ensure runtime linking is disabled for the traditional
9469 # shared library, or the linker may eventually find shared libraries
9470 # /with/ Import File - we do not want to mix them.
9471 shared_flag_aix='-shared'
9472 shared_flag_svr4='-shared $wl-G'
9473 else
9474 # not using gcc
9475 if test ia64 = "$host_cpu"; then
9476 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9477 # chokes on -Wl,-G. The following line is correct:
9478 shared_flag='-G'
9479 else
9480 if test yes = "$aix_use_runtimelinking"; then
9481 shared_flag='$wl-G'
9482 else
9483 shared_flag='$wl-bM:SRE'
9484 fi
9485 shared_flag_aix='$wl-bM:SRE'
9486 shared_flag_svr4='$wl-G'
9487 fi
9488 fi
9489
9490 export_dynamic_flag_spec='$wl-bexpall'
9491 # It seems that -bexpall does not export symbols beginning with
9492 # underscore (_), so it is better to generate a list of symbols to export.
9493 always_export_symbols=yes
9494 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9495 # Warning - without using the other runtime loading flags (-brtl),
9496 # -berok will link without error, but may produce a broken library.
9497 allow_undefined_flag='-berok'
9498 # Determine the default libpath from the value encoded in an
9499 # empty executable.
9500 if test set = "${lt_cv_aix_libpath+set}"; then
9501 aix_libpath=$lt_cv_aix_libpath
9502 else
9503 if ${lt_cv_aix_libpath_+:} false; then :
9504 $as_echo_n "(cached) " >&6
9505 else
9506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9507 /* end confdefs.h. */
9508
9509 int
9510 main ()
9511 {
9512
9513 ;
9514 return 0;
9515 }
9516 _ACEOF
9517 if ac_fn_c_try_link "$LINENO"; then :
9518
9519 lt_aix_libpath_sed='
9520 /Import File Strings/,/^$/ {
9521 /^0/ {
9522 s/^0 *\([^ ]*\) *$/\1/
9523 p
9524 }
9525 }'
9526 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9527 # Check for a 64-bit object if we didn't find anything.
9528 if test -z "$lt_cv_aix_libpath_"; then
9529 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9530 fi
9531 fi
9532 rm -f core conftest.err conftest.$ac_objext \
9533 conftest$ac_exeext conftest.$ac_ext
9534 if test -z "$lt_cv_aix_libpath_"; then
9535 lt_cv_aix_libpath_=/usr/lib:/lib
9536 fi
9537
9538 fi
9539
9540 aix_libpath=$lt_cv_aix_libpath_
9541 fi
9542
9543 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9544 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
9545 else
9546 if test ia64 = "$host_cpu"; then
9547 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9548 allow_undefined_flag="-z nodefs"
9549 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"
9550 else
9551 # Determine the default libpath from the value encoded in an
9552 # empty executable.
9553 if test set = "${lt_cv_aix_libpath+set}"; then
9554 aix_libpath=$lt_cv_aix_libpath
9555 else
9556 if ${lt_cv_aix_libpath_+:} false; then :
9557 $as_echo_n "(cached) " >&6
9558 else
9559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9560 /* end confdefs.h. */
9561
9562 int
9563 main ()
9564 {
9565
9566 ;
9567 return 0;
9568 }
9569 _ACEOF
9570 if ac_fn_c_try_link "$LINENO"; then :
9571
9572 lt_aix_libpath_sed='
9573 /Import File Strings/,/^$/ {
9574 /^0/ {
9575 s/^0 *\([^ ]*\) *$/\1/
9576 p
9577 }
9578 }'
9579 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9580 # Check for a 64-bit object if we didn't find anything.
9581 if test -z "$lt_cv_aix_libpath_"; then
9582 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9583 fi
9584 fi
9585 rm -f core conftest.err conftest.$ac_objext \
9586 conftest$ac_exeext conftest.$ac_ext
9587 if test -z "$lt_cv_aix_libpath_"; then
9588 lt_cv_aix_libpath_=/usr/lib:/lib
9589 fi
9590
9591 fi
9592
9593 aix_libpath=$lt_cv_aix_libpath_
9594 fi
9595
9596 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9597 # Warning - without using the other run time loading flags,
9598 # -berok will link without error, but may produce a broken library.
9599 no_undefined_flag=' $wl-bernotok'
9600 allow_undefined_flag=' $wl-berok'
9601 if test yes = "$with_gnu_ld"; then
9602 # We only use this code for GNU lds that support --whole-archive.
9603 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9604 else
9605 # Exported symbols can be pulled into shared objects from archives
9606 whole_archive_flag_spec='$convenience'
9607 fi
9608 archive_cmds_need_lc=yes
9609 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9610 # -brtl affects multiple linker settings, -berok does not and is overridden later
9611 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9612 if test svr4 != "$with_aix_soname"; then
9613 # This is similar to how AIX traditionally builds its shared libraries.
9614 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'
9615 fi
9616 if test aix != "$with_aix_soname"; then
9617 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'
9618 else
9619 # used by -dlpreopen to get the symbols
9620 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9621 fi
9622 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9623 fi
9624 fi
9625 ;;
9626
9627 amigaos*)
9628 case $host_cpu in
9629 powerpc)
9630 # see comment about AmigaOS4 .so support
9631 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9632 archive_expsym_cmds=''
9633 ;;
9634 m68k)
9635 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)'
9636 hardcode_libdir_flag_spec='-L$libdir'
9637 hardcode_minus_L=yes
9638 ;;
9639 esac
9640 ;;
9641
9642 bsdi[45]*)
9643 export_dynamic_flag_spec=-rdynamic
9644 ;;
9645
9646 cygwin* | mingw* | pw32* | cegcc*)
9647 # When not using gcc, we currently assume that we are using
9648 # Microsoft Visual C++.
9649 # hardcode_libdir_flag_spec is actually meaningless, as there is
9650 # no search path for DLLs.
9651 case $cc_basename in
9652 cl*)
9653 # Native MSVC
9654 hardcode_libdir_flag_spec=' '
9655 allow_undefined_flag=unsupported
9656 always_export_symbols=yes
9657 file_list_spec='@'
9658 # Tell ltmain to make .lib files, not .a files.
9659 libext=lib
9660 # Tell ltmain to make .dll files, not .so files.
9661 shrext_cmds=.dll
9662 # FIXME: Setting linknames here is a bad hack.
9663 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9664 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9665 cp "$export_symbols" "$output_objdir/$soname.def";
9666 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9667 else
9668 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9669 fi~
9670 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9671 linknames='
9672 # The linker will not automatically build a static lib if we build a DLL.
9673 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9674 enable_shared_with_static_runtimes=yes
9675 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9676 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9677 # Don't use ranlib
9678 old_postinstall_cmds='chmod 644 $oldlib'
9679 postlink_cmds='lt_outputfile="@OUTPUT@"~
9680 lt_tool_outputfile="@TOOL_OUTPUT@"~
9681 case $lt_outputfile in
9682 *.exe|*.EXE) ;;
9683 *)
9684 lt_outputfile=$lt_outputfile.exe
9685 lt_tool_outputfile=$lt_tool_outputfile.exe
9686 ;;
9687 esac~
9688 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9689 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9690 $RM "$lt_outputfile.manifest";
9691 fi'
9692 ;;
9693 *)
9694 # Assume MSVC wrapper
9695 hardcode_libdir_flag_spec=' '
9696 allow_undefined_flag=unsupported
9697 # Tell ltmain to make .lib files, not .a files.
9698 libext=lib
9699 # Tell ltmain to make .dll files, not .so files.
9700 shrext_cmds=.dll
9701 # FIXME: Setting linknames here is a bad hack.
9702 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9703 # The linker will automatically build a .lib file if we build a DLL.
9704 old_archive_from_new_cmds='true'
9705 # FIXME: Should let the user specify the lib program.
9706 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9707 enable_shared_with_static_runtimes=yes
9708 ;;
9709 esac
9710 ;;
9711
9712 darwin* | rhapsody*)
9713
9714
9715 archive_cmds_need_lc=no
9716 hardcode_direct=no
9717 hardcode_automatic=yes
9718 hardcode_shlibpath_var=unsupported
9719 if test yes = "$lt_cv_ld_force_load"; then
9720 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\"`'
9721
9722 else
9723 whole_archive_flag_spec=''
9724 fi
9725 link_all_deplibs=yes
9726 allow_undefined_flag=$_lt_dar_allow_undefined
9727 case $cc_basename in
9728 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9729 *) _lt_dar_can_shared=$GCC ;;
9730 esac
9731 if test yes = "$_lt_dar_can_shared"; then
9732 output_verbose_link_cmd=func_echo_all
9733 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9734 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9735 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"
9736 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"
9737
9738 else
9739 ld_shlibs=no
9740 fi
9741
9742 ;;
9743
9744 dgux*)
9745 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9746 hardcode_libdir_flag_spec='-L$libdir'
9747 hardcode_shlibpath_var=no
9748 ;;
9749
9750 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9751 # support. Future versions do this automatically, but an explicit c++rt0.o
9752 # does not break anything, and helps significantly (at the cost of a little
9753 # extra space).
9754 freebsd2.2*)
9755 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9756 hardcode_libdir_flag_spec='-R$libdir'
9757 hardcode_direct=yes
9758 hardcode_shlibpath_var=no
9759 ;;
9760
9761 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9762 freebsd2.*)
9763 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9764 hardcode_direct=yes
9765 hardcode_minus_L=yes
9766 hardcode_shlibpath_var=no
9767 ;;
9768
9769 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9770 freebsd* | dragonfly*)
9771 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9772 hardcode_libdir_flag_spec='-R$libdir'
9773 hardcode_direct=yes
9774 hardcode_shlibpath_var=no
9775 ;;
9776
9777 hpux9*)
9778 if test yes = "$GCC"; then
9779 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'
9780 else
9781 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'
9782 fi
9783 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9784 hardcode_libdir_separator=:
9785 hardcode_direct=yes
9786
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 export_dynamic_flag_spec='$wl-E'
9791 ;;
9792
9793 hpux10*)
9794 if test yes,no = "$GCC,$with_gnu_ld"; then
9795 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9796 else
9797 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9798 fi
9799 if test no = "$with_gnu_ld"; then
9800 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9801 hardcode_libdir_separator=:
9802 hardcode_direct=yes
9803 hardcode_direct_absolute=yes
9804 export_dynamic_flag_spec='$wl-E'
9805 # hardcode_minus_L: Not really in the search PATH,
9806 # but as the default location of the library.
9807 hardcode_minus_L=yes
9808 fi
9809 ;;
9810
9811 hpux11*)
9812 if test yes,no = "$GCC,$with_gnu_ld"; then
9813 case $host_cpu in
9814 hppa*64*)
9815 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9816 ;;
9817 ia64*)
9818 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9819 ;;
9820 *)
9821 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9822 ;;
9823 esac
9824 else
9825 case $host_cpu in
9826 hppa*64*)
9827 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9828 ;;
9829 ia64*)
9830 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9831 ;;
9832 *)
9833
9834 # Older versions of the 11.00 compiler do not understand -b yet
9835 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9837 $as_echo_n "checking if $CC understands -b... " >&6; }
9838 if ${lt_cv_prog_compiler__b+:} false; then :
9839 $as_echo_n "(cached) " >&6
9840 else
9841 lt_cv_prog_compiler__b=no
9842 save_LDFLAGS=$LDFLAGS
9843 LDFLAGS="$LDFLAGS -b"
9844 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9845 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9846 # The linker can only warn and ignore the option if not recognized
9847 # So say no if there are warnings
9848 if test -s conftest.err; then
9849 # Append any errors to the config.log.
9850 cat conftest.err 1>&5
9851 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9852 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9853 if diff conftest.exp conftest.er2 >/dev/null; then
9854 lt_cv_prog_compiler__b=yes
9855 fi
9856 else
9857 lt_cv_prog_compiler__b=yes
9858 fi
9859 fi
9860 $RM -r conftest*
9861 LDFLAGS=$save_LDFLAGS
9862
9863 fi
9864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9865 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9866
9867 if test yes = "$lt_cv_prog_compiler__b"; then
9868 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9869 else
9870 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9871 fi
9872
9873 ;;
9874 esac
9875 fi
9876 if test no = "$with_gnu_ld"; then
9877 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9878 hardcode_libdir_separator=:
9879
9880 case $host_cpu in
9881 hppa*64*|ia64*)
9882 hardcode_direct=no
9883 hardcode_shlibpath_var=no
9884 ;;
9885 *)
9886 hardcode_direct=yes
9887 hardcode_direct_absolute=yes
9888 export_dynamic_flag_spec='$wl-E'
9889
9890 # hardcode_minus_L: Not really in the search PATH,
9891 # but as the default location of the library.
9892 hardcode_minus_L=yes
9893 ;;
9894 esac
9895 fi
9896 ;;
9897
9898 irix5* | irix6* | nonstopux*)
9899 if test yes = "$GCC"; then
9900 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'
9901 # Try to use the -exported_symbol ld option, if it does not
9902 # work, assume that -exports_file does not work either and
9903 # implicitly export all symbols.
9904 # This should be the same for all languages, so no per-tag cache variable.
9905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9906 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9907 if ${lt_cv_irix_exported_symbol+:} false; then :
9908 $as_echo_n "(cached) " >&6
9909 else
9910 save_LDFLAGS=$LDFLAGS
9911 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9913 /* end confdefs.h. */
9914 int foo (void) { return 0; }
9915 _ACEOF
9916 if ac_fn_c_try_link "$LINENO"; then :
9917 lt_cv_irix_exported_symbol=yes
9918 else
9919 lt_cv_irix_exported_symbol=no
9920 fi
9921 rm -f core conftest.err conftest.$ac_objext \
9922 conftest$ac_exeext conftest.$ac_ext
9923 LDFLAGS=$save_LDFLAGS
9924 fi
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9926 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9927 if test yes = "$lt_cv_irix_exported_symbol"; then
9928 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'
9929 fi
9930 link_all_deplibs=no
9931 else
9932 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'
9933 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'
9934 fi
9935 archive_cmds_need_lc='no'
9936 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9937 hardcode_libdir_separator=:
9938 inherit_rpath=yes
9939 link_all_deplibs=yes
9940 ;;
9941
9942 linux*)
9943 case $cc_basename in
9944 tcc*)
9945 # Fabrice Bellard et al's Tiny C Compiler
9946 ld_shlibs=yes
9947 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9948 ;;
9949 esac
9950 ;;
9951
9952 netbsd* | netbsdelf*-gnu)
9953 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9954 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9955 else
9956 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9957 fi
9958 hardcode_libdir_flag_spec='-R$libdir'
9959 hardcode_direct=yes
9960 hardcode_shlibpath_var=no
9961 ;;
9962
9963 newsos6)
9964 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9965 hardcode_direct=yes
9966 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9967 hardcode_libdir_separator=:
9968 hardcode_shlibpath_var=no
9969 ;;
9970
9971 *nto* | *qnx*)
9972 ;;
9973
9974 openbsd* | bitrig*)
9975 if test -f /usr/libexec/ld.so; then
9976 hardcode_direct=yes
9977 hardcode_shlibpath_var=no
9978 hardcode_direct_absolute=yes
9979 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9980 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9981 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9982 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9983 export_dynamic_flag_spec='$wl-E'
9984 else
9985 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9986 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9987 fi
9988 else
9989 ld_shlibs=no
9990 fi
9991 ;;
9992
9993 os2*)
9994 hardcode_libdir_flag_spec='-L$libdir'
9995 hardcode_minus_L=yes
9996 allow_undefined_flag=unsupported
9997 shrext_cmds=.dll
9998 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9999 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10000 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10001 $ECHO EXPORTS >> $output_objdir/$libname.def~
10002 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10003 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10004 emximp -o $lib $output_objdir/$libname.def'
10005 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10006 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10007 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10008 $ECHO EXPORTS >> $output_objdir/$libname.def~
10009 prefix_cmds="$SED"~
10010 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10011 prefix_cmds="$prefix_cmds -e 1d";
10012 fi~
10013 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10014 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10015 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10016 emximp -o $lib $output_objdir/$libname.def'
10017 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10018 enable_shared_with_static_runtimes=yes
10019 ;;
10020
10021 osf3*)
10022 if test yes = "$GCC"; then
10023 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10024 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'
10025 else
10026 allow_undefined_flag=' -expect_unresolved \*'
10027 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'
10028 fi
10029 archive_cmds_need_lc='no'
10030 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10031 hardcode_libdir_separator=:
10032 ;;
10033
10034 osf4* | osf5*) # as osf3* with the addition of -msym flag
10035 if test yes = "$GCC"; then
10036 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10037 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'
10038 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10039 else
10040 allow_undefined_flag=' -expect_unresolved \*'
10041 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'
10042 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~
10043 $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'
10044
10045 # Both c and cxx compiler support -rpath directly
10046 hardcode_libdir_flag_spec='-rpath $libdir'
10047 fi
10048 archive_cmds_need_lc='no'
10049 hardcode_libdir_separator=:
10050 ;;
10051
10052 solaris*)
10053 no_undefined_flag=' -z defs'
10054 if test yes = "$GCC"; then
10055 wlarc='$wl'
10056 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10057 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10058 $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'
10059 else
10060 case `$CC -V 2>&1` in
10061 *"Compilers 5.0"*)
10062 wlarc=''
10063 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10064 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10065 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10066 ;;
10067 *)
10068 wlarc='$wl'
10069 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10070 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10071 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10072 ;;
10073 esac
10074 fi
10075 hardcode_libdir_flag_spec='-R$libdir'
10076 hardcode_shlibpath_var=no
10077 case $host_os in
10078 solaris2.[0-5] | solaris2.[0-5].*) ;;
10079 *)
10080 # The compiler driver will combine and reorder linker options,
10081 # but understands '-z linker_flag'. GCC discards it without '$wl',
10082 # but is careful enough not to reorder.
10083 # Supported since Solaris 2.6 (maybe 2.5.1?)
10084 if test yes = "$GCC"; then
10085 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10086 else
10087 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10088 fi
10089 ;;
10090 esac
10091 link_all_deplibs=yes
10092 ;;
10093
10094 sunos4*)
10095 if test sequent = "$host_vendor"; then
10096 # Use $CC to link under sequent, because it throws in some extra .o
10097 # files that make .init and .fini sections work.
10098 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10099 else
10100 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10101 fi
10102 hardcode_libdir_flag_spec='-L$libdir'
10103 hardcode_direct=yes
10104 hardcode_minus_L=yes
10105 hardcode_shlibpath_var=no
10106 ;;
10107
10108 sysv4)
10109 case $host_vendor in
10110 sni)
10111 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10112 hardcode_direct=yes # is this really true???
10113 ;;
10114 siemens)
10115 ## LD is ld it makes a PLAMLIB
10116 ## CC just makes a GrossModule.
10117 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10118 reload_cmds='$CC -r -o $output$reload_objs'
10119 hardcode_direct=no
10120 ;;
10121 motorola)
10122 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10123 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10124 ;;
10125 esac
10126 runpath_var='LD_RUN_PATH'
10127 hardcode_shlibpath_var=no
10128 ;;
10129
10130 sysv4.3*)
10131 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10132 hardcode_shlibpath_var=no
10133 export_dynamic_flag_spec='-Bexport'
10134 ;;
10135
10136 sysv4*MP*)
10137 if test -d /usr/nec; then
10138 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10139 hardcode_shlibpath_var=no
10140 runpath_var=LD_RUN_PATH
10141 hardcode_runpath_var=yes
10142 ld_shlibs=yes
10143 fi
10144 ;;
10145
10146 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10147 no_undefined_flag='$wl-z,text'
10148 archive_cmds_need_lc=no
10149 hardcode_shlibpath_var=no
10150 runpath_var='LD_RUN_PATH'
10151
10152 if test yes = "$GCC"; then
10153 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10154 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10155 else
10156 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10157 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10158 fi
10159 ;;
10160
10161 sysv5* | sco3.2v5* | sco5v6*)
10162 # Note: We CANNOT use -z defs as we might desire, because we do not
10163 # link with -lc, and that would cause any symbols used from libc to
10164 # always be unresolved, which means just about no library would
10165 # ever link correctly. If we're not using GNU ld we use -z text
10166 # though, which does catch some bad symbols but isn't as heavy-handed
10167 # as -z defs.
10168 no_undefined_flag='$wl-z,text'
10169 allow_undefined_flag='$wl-z,nodefs'
10170 archive_cmds_need_lc=no
10171 hardcode_shlibpath_var=no
10172 hardcode_libdir_flag_spec='$wl-R,$libdir'
10173 hardcode_libdir_separator=':'
10174 link_all_deplibs=yes
10175 export_dynamic_flag_spec='$wl-Bexport'
10176 runpath_var='LD_RUN_PATH'
10177
10178 if test yes = "$GCC"; then
10179 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10180 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10181 else
10182 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10183 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10184 fi
10185 ;;
10186
10187 uts4*)
10188 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10189 hardcode_libdir_flag_spec='-L$libdir'
10190 hardcode_shlibpath_var=no
10191 ;;
10192
10193 *)
10194 ld_shlibs=no
10195 ;;
10196 esac
10197
10198 if test sni = "$host_vendor"; then
10199 case $host in
10200 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10201 export_dynamic_flag_spec='$wl-Blargedynsym'
10202 ;;
10203 esac
10204 fi
10205 fi
10206
10207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10208 $as_echo "$ld_shlibs" >&6; }
10209 test no = "$ld_shlibs" && can_build_shared=no
10210
10211 with_gnu_ld=$with_gnu_ld
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227 #
10228 # Do we need to explicitly link libc?
10229 #
10230 case "x$archive_cmds_need_lc" in
10231 x|xyes)
10232 # Assume -lc should be added
10233 archive_cmds_need_lc=yes
10234
10235 if test yes,yes = "$GCC,$enable_shared"; then
10236 case $archive_cmds in
10237 *'~'*)
10238 # FIXME: we may have to deal with multi-command sequences.
10239 ;;
10240 '$CC '*)
10241 # Test whether the compiler implicitly links with -lc since on some
10242 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10243 # to ld, don't add -lc before -lgcc.
10244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10245 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10246 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10247 $as_echo_n "(cached) " >&6
10248 else
10249 $RM conftest*
10250 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10251
10252 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10253 (eval $ac_compile) 2>&5
10254 ac_status=$?
10255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10256 test $ac_status = 0; } 2>conftest.err; then
10257 soname=conftest
10258 lib=conftest
10259 libobjs=conftest.$ac_objext
10260 deplibs=
10261 wl=$lt_prog_compiler_wl
10262 pic_flag=$lt_prog_compiler_pic
10263 compiler_flags=-v
10264 linker_flags=-v
10265 verstring=
10266 output_objdir=.
10267 libname=conftest
10268 lt_save_allow_undefined_flag=$allow_undefined_flag
10269 allow_undefined_flag=
10270 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10271 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10272 ac_status=$?
10273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10274 test $ac_status = 0; }
10275 then
10276 lt_cv_archive_cmds_need_lc=no
10277 else
10278 lt_cv_archive_cmds_need_lc=yes
10279 fi
10280 allow_undefined_flag=$lt_save_allow_undefined_flag
10281 else
10282 cat conftest.err 1>&5
10283 fi
10284 $RM conftest*
10285
10286 fi
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10288 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10289 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10290 ;;
10291 esac
10292 fi
10293 ;;
10294 esac
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
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10448 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10449
10450 if test yes = "$GCC"; then
10451 case $host_os in
10452 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10453 *) lt_awk_arg='/^libraries:/' ;;
10454 esac
10455 case $host_os in
10456 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10457 *) lt_sed_strip_eq='s|=/|/|g' ;;
10458 esac
10459 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10460 case $lt_search_path_spec in
10461 *\;*)
10462 # if the path contains ";" then we assume it to be the separator
10463 # otherwise default to the standard path separator (i.e. ":") - it is
10464 # assumed that no part of a normal pathname contains ";" but that should
10465 # okay in the real world where ";" in dirpaths is itself problematic.
10466 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10467 ;;
10468 *)
10469 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10470 ;;
10471 esac
10472 # Ok, now we have the path, separated by spaces, we can step through it
10473 # and add multilib dir if necessary...
10474 lt_tmp_lt_search_path_spec=
10475 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10476 # ...but if some path component already ends with the multilib dir we assume
10477 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10478 case "$lt_multi_os_dir; $lt_search_path_spec " in
10479 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10480 lt_multi_os_dir=
10481 ;;
10482 esac
10483 for lt_sys_path in $lt_search_path_spec; do
10484 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10485 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10486 elif test -n "$lt_multi_os_dir"; then
10487 test -d "$lt_sys_path" && \
10488 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10489 fi
10490 done
10491 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10492 BEGIN {RS = " "; FS = "/|\n";} {
10493 lt_foo = "";
10494 lt_count = 0;
10495 for (lt_i = NF; lt_i > 0; lt_i--) {
10496 if ($lt_i != "" && $lt_i != ".") {
10497 if ($lt_i == "..") {
10498 lt_count++;
10499 } else {
10500 if (lt_count == 0) {
10501 lt_foo = "/" $lt_i lt_foo;
10502 } else {
10503 lt_count--;
10504 }
10505 }
10506 }
10507 }
10508 if (lt_foo != "") { lt_freq[lt_foo]++; }
10509 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10510 }'`
10511 # AWK program above erroneously prepends '/' to C:/dos/paths
10512 # for these hosts.
10513 case $host_os in
10514 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10515 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10516 esac
10517 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10518 else
10519 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10520 fi
10521 library_names_spec=
10522 libname_spec='lib$name'
10523 soname_spec=
10524 shrext_cmds=.so
10525 postinstall_cmds=
10526 postuninstall_cmds=
10527 finish_cmds=
10528 finish_eval=
10529 shlibpath_var=
10530 shlibpath_overrides_runpath=unknown
10531 version_type=none
10532 dynamic_linker="$host_os ld.so"
10533 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10534 need_lib_prefix=unknown
10535 hardcode_into_libs=no
10536
10537 # when you set need_version to no, make sure it does not cause -set_version
10538 # flags to be left without arguments
10539 need_version=unknown
10540
10541
10542
10543 case $host_os in
10544 aix3*)
10545 version_type=linux # correct to gnu/linux during the next big refactor
10546 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10547 shlibpath_var=LIBPATH
10548
10549 # AIX 3 has no versioning support, so we append a major version to the name.
10550 soname_spec='$libname$release$shared_ext$major'
10551 ;;
10552
10553 aix[4-9]*)
10554 version_type=linux # correct to gnu/linux during the next big refactor
10555 need_lib_prefix=no
10556 need_version=no
10557 hardcode_into_libs=yes
10558 if test ia64 = "$host_cpu"; then
10559 # AIX 5 supports IA64
10560 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10561 shlibpath_var=LD_LIBRARY_PATH
10562 else
10563 # With GCC up to 2.95.x, collect2 would create an import file
10564 # for dependence libraries. The import file would start with
10565 # the line '#! .'. This would cause the generated library to
10566 # depend on '.', always an invalid library. This was fixed in
10567 # development snapshots of GCC prior to 3.0.
10568 case $host_os in
10569 aix4 | aix4.[01] | aix4.[01].*)
10570 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10571 echo ' yes '
10572 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10573 :
10574 else
10575 can_build_shared=no
10576 fi
10577 ;;
10578 esac
10579 # Using Import Files as archive members, it is possible to support
10580 # filename-based versioning of shared library archives on AIX. While
10581 # this would work for both with and without runtime linking, it will
10582 # prevent static linking of such archives. So we do filename-based
10583 # shared library versioning with .so extension only, which is used
10584 # when both runtime linking and shared linking is enabled.
10585 # Unfortunately, runtime linking may impact performance, so we do
10586 # not want this to be the default eventually. Also, we use the
10587 # versioned .so libs for executables only if there is the -brtl
10588 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10589 # To allow for filename-based versioning support, we need to create
10590 # libNAME.so.V as an archive file, containing:
10591 # *) an Import File, referring to the versioned filename of the
10592 # archive as well as the shared archive member, telling the
10593 # bitwidth (32 or 64) of that shared object, and providing the
10594 # list of exported symbols of that shared object, eventually
10595 # decorated with the 'weak' keyword
10596 # *) the shared object with the F_LOADONLY flag set, to really avoid
10597 # it being seen by the linker.
10598 # At run time we better use the real file rather than another symlink,
10599 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10600
10601 case $with_aix_soname,$aix_use_runtimelinking in
10602 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10603 # soname into executable. Probably we can add versioning support to
10604 # collect2, so additional links can be useful in future.
10605 aix,yes) # traditional libtool
10606 dynamic_linker='AIX unversionable lib.so'
10607 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10608 # instead of lib<name>.a to let people know that these are not
10609 # typical AIX shared libraries.
10610 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10611 ;;
10612 aix,no) # traditional AIX only
10613 dynamic_linker='AIX lib.a(lib.so.V)'
10614 # We preserve .a as extension for shared libraries through AIX4.2
10615 # and later when we are not doing run time linking.
10616 library_names_spec='$libname$release.a $libname.a'
10617 soname_spec='$libname$release$shared_ext$major'
10618 ;;
10619 svr4,*) # full svr4 only
10620 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10621 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10622 # We do not specify a path in Import Files, so LIBPATH fires.
10623 shlibpath_overrides_runpath=yes
10624 ;;
10625 *,yes) # both, prefer svr4
10626 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10627 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10628 # unpreferred sharedlib libNAME.a needs extra handling
10629 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"'
10630 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"'
10631 # We do not specify a path in Import Files, so LIBPATH fires.
10632 shlibpath_overrides_runpath=yes
10633 ;;
10634 *,no) # both, prefer aix
10635 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10636 library_names_spec='$libname$release.a $libname.a'
10637 soname_spec='$libname$release$shared_ext$major'
10638 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10639 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)'
10640 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"'
10641 ;;
10642 esac
10643 shlibpath_var=LIBPATH
10644 fi
10645 ;;
10646
10647 amigaos*)
10648 case $host_cpu in
10649 powerpc)
10650 # Since July 2007 AmigaOS4 officially supports .so libraries.
10651 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10652 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10653 ;;
10654 m68k)
10655 library_names_spec='$libname.ixlibrary $libname.a'
10656 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10657 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'
10658 ;;
10659 esac
10660 ;;
10661
10662 beos*)
10663 library_names_spec='$libname$shared_ext'
10664 dynamic_linker="$host_os ld.so"
10665 shlibpath_var=LIBRARY_PATH
10666 ;;
10667
10668 bsdi[45]*)
10669 version_type=linux # correct to gnu/linux during the next big refactor
10670 need_version=no
10671 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10672 soname_spec='$libname$release$shared_ext$major'
10673 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10674 shlibpath_var=LD_LIBRARY_PATH
10675 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10676 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10677 # the default ld.so.conf also contains /usr/contrib/lib and
10678 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10679 # libtool to hard-code these into programs
10680 ;;
10681
10682 cygwin* | mingw* | pw32* | cegcc*)
10683 version_type=windows
10684 shrext_cmds=.dll
10685 need_version=no
10686 need_lib_prefix=no
10687
10688 case $GCC,$cc_basename in
10689 yes,*)
10690 # gcc
10691 library_names_spec='$libname.dll.a'
10692 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10693 postinstall_cmds='base_file=`basename \$file`~
10694 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10695 dldir=$destdir/`dirname \$dlpath`~
10696 test -d \$dldir || mkdir -p \$dldir~
10697 $install_prog $dir/$dlname \$dldir/$dlname~
10698 chmod a+x \$dldir/$dlname~
10699 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10700 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10701 fi'
10702 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10703 dlpath=$dir/\$dldll~
10704 $RM \$dlpath'
10705 shlibpath_overrides_runpath=yes
10706
10707 case $host_os in
10708 cygwin*)
10709 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10710 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10711
10712 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10713 ;;
10714 mingw* | cegcc*)
10715 # MinGW DLLs use traditional 'lib' prefix
10716 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10717 ;;
10718 pw32*)
10719 # pw32 DLLs use 'pw' prefix rather than 'lib'
10720 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10721 ;;
10722 esac
10723 dynamic_linker='Win32 ld.exe'
10724 ;;
10725
10726 *,cl*)
10727 # Native MSVC
10728 libname_spec='$name'
10729 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10730 library_names_spec='$libname.dll.lib'
10731
10732 case $build_os in
10733 mingw*)
10734 sys_lib_search_path_spec=
10735 lt_save_ifs=$IFS
10736 IFS=';'
10737 for lt_path in $LIB
10738 do
10739 IFS=$lt_save_ifs
10740 # Let DOS variable expansion print the short 8.3 style file name.
10741 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10742 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10743 done
10744 IFS=$lt_save_ifs
10745 # Convert to MSYS style.
10746 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10747 ;;
10748 cygwin*)
10749 # Convert to unix form, then to dos form, then back to unix form
10750 # but this time dos style (no spaces!) so that the unix form looks
10751 # like /cygdrive/c/PROGRA~1:/cygdr...
10752 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10753 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10754 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10755 ;;
10756 *)
10757 sys_lib_search_path_spec=$LIB
10758 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10759 # It is most probably a Windows format PATH.
10760 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10761 else
10762 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10763 fi
10764 # FIXME: find the short name or the path components, as spaces are
10765 # common. (e.g. "Program Files" -> "PROGRA~1")
10766 ;;
10767 esac
10768
10769 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10770 postinstall_cmds='base_file=`basename \$file`~
10771 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10772 dldir=$destdir/`dirname \$dlpath`~
10773 test -d \$dldir || mkdir -p \$dldir~
10774 $install_prog $dir/$dlname \$dldir/$dlname'
10775 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10776 dlpath=$dir/\$dldll~
10777 $RM \$dlpath'
10778 shlibpath_overrides_runpath=yes
10779 dynamic_linker='Win32 link.exe'
10780 ;;
10781
10782 *)
10783 # Assume MSVC wrapper
10784 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10785 dynamic_linker='Win32 ld.exe'
10786 ;;
10787 esac
10788 # FIXME: first we should search . and the directory the executable is in
10789 shlibpath_var=PATH
10790 ;;
10791
10792 darwin* | rhapsody*)
10793 dynamic_linker="$host_os dyld"
10794 version_type=darwin
10795 need_lib_prefix=no
10796 need_version=no
10797 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10798 soname_spec='$libname$release$major$shared_ext'
10799 shlibpath_overrides_runpath=yes
10800 shlibpath_var=DYLD_LIBRARY_PATH
10801 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10802
10803 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10804 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10805 ;;
10806
10807 dgux*)
10808 version_type=linux # correct to gnu/linux during the next big refactor
10809 need_lib_prefix=no
10810 need_version=no
10811 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10812 soname_spec='$libname$release$shared_ext$major'
10813 shlibpath_var=LD_LIBRARY_PATH
10814 ;;
10815
10816 freebsd* | dragonfly*)
10817 # DragonFly does not have aout. When/if they implement a new
10818 # versioning mechanism, adjust this.
10819 if test -x /usr/bin/objformat; then
10820 objformat=`/usr/bin/objformat`
10821 else
10822 case $host_os in
10823 freebsd[23].*) objformat=aout ;;
10824 *) objformat=elf ;;
10825 esac
10826 fi
10827 version_type=freebsd-$objformat
10828 case $version_type in
10829 freebsd-elf*)
10830 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10831 soname_spec='$libname$release$shared_ext$major'
10832 need_version=no
10833 need_lib_prefix=no
10834 ;;
10835 freebsd-*)
10836 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10837 need_version=yes
10838 ;;
10839 esac
10840 shlibpath_var=LD_LIBRARY_PATH
10841 case $host_os in
10842 freebsd2.*)
10843 shlibpath_overrides_runpath=yes
10844 ;;
10845 freebsd3.[01]* | freebsdelf3.[01]*)
10846 shlibpath_overrides_runpath=yes
10847 hardcode_into_libs=yes
10848 ;;
10849 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10850 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10851 shlibpath_overrides_runpath=no
10852 hardcode_into_libs=yes
10853 ;;
10854 *) # from 4.6 on, and DragonFly
10855 shlibpath_overrides_runpath=yes
10856 hardcode_into_libs=yes
10857 ;;
10858 esac
10859 ;;
10860
10861 haiku*)
10862 version_type=linux # correct to gnu/linux during the next big refactor
10863 need_lib_prefix=no
10864 need_version=no
10865 dynamic_linker="$host_os runtime_loader"
10866 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10867 soname_spec='$libname$release$shared_ext$major'
10868 shlibpath_var=LIBRARY_PATH
10869 shlibpath_overrides_runpath=no
10870 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10871 hardcode_into_libs=yes
10872 ;;
10873
10874 hpux9* | hpux10* | hpux11*)
10875 # Give a soname corresponding to the major version so that dld.sl refuses to
10876 # link against other versions.
10877 version_type=sunos
10878 need_lib_prefix=no
10879 need_version=no
10880 case $host_cpu in
10881 ia64*)
10882 shrext_cmds='.so'
10883 hardcode_into_libs=yes
10884 dynamic_linker="$host_os dld.so"
10885 shlibpath_var=LD_LIBRARY_PATH
10886 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10887 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10888 soname_spec='$libname$release$shared_ext$major'
10889 if test 32 = "$HPUX_IA64_MODE"; then
10890 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10891 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10892 else
10893 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10894 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10895 fi
10896 ;;
10897 hppa*64*)
10898 shrext_cmds='.sl'
10899 hardcode_into_libs=yes
10900 dynamic_linker="$host_os dld.sl"
10901 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10902 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10903 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10904 soname_spec='$libname$release$shared_ext$major'
10905 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10906 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10907 ;;
10908 *)
10909 shrext_cmds='.sl'
10910 dynamic_linker="$host_os dld.sl"
10911 shlibpath_var=SHLIB_PATH
10912 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10913 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10914 soname_spec='$libname$release$shared_ext$major'
10915 ;;
10916 esac
10917 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10918 postinstall_cmds='chmod 555 $lib'
10919 # or fails outright, so override atomically:
10920 install_override_mode=555
10921 ;;
10922
10923 interix[3-9]*)
10924 version_type=linux # correct to gnu/linux during the next big refactor
10925 need_lib_prefix=no
10926 need_version=no
10927 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10928 soname_spec='$libname$release$shared_ext$major'
10929 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10930 shlibpath_var=LD_LIBRARY_PATH
10931 shlibpath_overrides_runpath=no
10932 hardcode_into_libs=yes
10933 ;;
10934
10935 irix5* | irix6* | nonstopux*)
10936 case $host_os in
10937 nonstopux*) version_type=nonstopux ;;
10938 *)
10939 if test yes = "$lt_cv_prog_gnu_ld"; then
10940 version_type=linux # correct to gnu/linux during the next big refactor
10941 else
10942 version_type=irix
10943 fi ;;
10944 esac
10945 need_lib_prefix=no
10946 need_version=no
10947 soname_spec='$libname$release$shared_ext$major'
10948 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10949 case $host_os in
10950 irix5* | nonstopux*)
10951 libsuff= shlibsuff=
10952 ;;
10953 *)
10954 case $LD in # libtool.m4 will add one of these switches to LD
10955 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10956 libsuff= shlibsuff= libmagic=32-bit;;
10957 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10958 libsuff=32 shlibsuff=N32 libmagic=N32;;
10959 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10960 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10961 *) libsuff= shlibsuff= libmagic=never-match;;
10962 esac
10963 ;;
10964 esac
10965 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10966 shlibpath_overrides_runpath=no
10967 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10968 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
10969 hardcode_into_libs=yes
10970 ;;
10971
10972 # No shared lib support for Linux oldld, aout, or coff.
10973 linux*oldld* | linux*aout* | linux*coff*)
10974 dynamic_linker=no
10975 ;;
10976
10977 linux*android*)
10978 version_type=none # Android doesn't support versioned libraries.
10979 need_lib_prefix=no
10980 need_version=no
10981 library_names_spec='$libname$release$shared_ext'
10982 soname_spec='$libname$release$shared_ext'
10983 finish_cmds=
10984 shlibpath_var=LD_LIBRARY_PATH
10985 shlibpath_overrides_runpath=yes
10986
10987 # This implies no fast_install, which is unacceptable.
10988 # Some rework will be needed to allow for fast_install
10989 # before this can be enabled.
10990 hardcode_into_libs=yes
10991
10992 dynamic_linker='Android linker'
10993 # Don't embed -rpath directories since the linker doesn't support them.
10994 hardcode_libdir_flag_spec='-L$libdir'
10995 ;;
10996
10997 # This must be glibc/ELF.
10998 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10999 version_type=linux # correct to gnu/linux during the next big refactor
11000 need_lib_prefix=no
11001 need_version=no
11002 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11003 soname_spec='$libname$release$shared_ext$major'
11004 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11005 shlibpath_var=LD_LIBRARY_PATH
11006 shlibpath_overrides_runpath=no
11007
11008 # Some binutils ld are patched to set DT_RUNPATH
11009 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11010 $as_echo_n "(cached) " >&6
11011 else
11012 lt_cv_shlibpath_overrides_runpath=no
11013 save_LDFLAGS=$LDFLAGS
11014 save_libdir=$libdir
11015 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11016 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11018 /* end confdefs.h. */
11019
11020 int
11021 main ()
11022 {
11023
11024 ;
11025 return 0;
11026 }
11027 _ACEOF
11028 if ac_fn_c_try_link "$LINENO"; then :
11029 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11030 lt_cv_shlibpath_overrides_runpath=yes
11031 fi
11032 fi
11033 rm -f core conftest.err conftest.$ac_objext \
11034 conftest$ac_exeext conftest.$ac_ext
11035 LDFLAGS=$save_LDFLAGS
11036 libdir=$save_libdir
11037
11038 fi
11039
11040 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11041
11042 # This implies no fast_install, which is unacceptable.
11043 # Some rework will be needed to allow for fast_install
11044 # before this can be enabled.
11045 hardcode_into_libs=yes
11046
11047 # Ideally, we could use ldconfig to report *all* directores which are
11048 # searched for libraries, however this is still not possible. Aside from not
11049 # being certain /sbin/ldconfig is available, command
11050 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11051 # even though it is searched at run-time. Try to do the best guess by
11052 # appending ld.so.conf contents (and includes) to the search path.
11053 if test -f /etc/ld.so.conf; then
11054 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' ' '`
11055 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11056 fi
11057
11058 # We used to test for /lib/ld.so.1 and disable shared libraries on
11059 # powerpc, because MkLinux only supported shared libraries with the
11060 # GNU dynamic linker. Since this was broken with cross compilers,
11061 # most powerpc-linux boxes support dynamic linking these days and
11062 # people can always --disable-shared, the test was removed, and we
11063 # assume the GNU/Linux dynamic linker is in use.
11064 dynamic_linker='GNU/Linux ld.so'
11065 ;;
11066
11067 netbsdelf*-gnu)
11068 version_type=linux
11069 need_lib_prefix=no
11070 need_version=no
11071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11072 soname_spec='${libname}${release}${shared_ext}$major'
11073 shlibpath_var=LD_LIBRARY_PATH
11074 shlibpath_overrides_runpath=no
11075 hardcode_into_libs=yes
11076 dynamic_linker='NetBSD ld.elf_so'
11077 ;;
11078
11079 netbsd*)
11080 version_type=sunos
11081 need_lib_prefix=no
11082 need_version=no
11083 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11084 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11085 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11086 dynamic_linker='NetBSD (a.out) ld.so'
11087 else
11088 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11089 soname_spec='$libname$release$shared_ext$major'
11090 dynamic_linker='NetBSD ld.elf_so'
11091 fi
11092 shlibpath_var=LD_LIBRARY_PATH
11093 shlibpath_overrides_runpath=yes
11094 hardcode_into_libs=yes
11095 ;;
11096
11097 newsos6)
11098 version_type=linux # correct to gnu/linux during the next big refactor
11099 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11100 shlibpath_var=LD_LIBRARY_PATH
11101 shlibpath_overrides_runpath=yes
11102 ;;
11103
11104 *nto* | *qnx*)
11105 version_type=qnx
11106 need_lib_prefix=no
11107 need_version=no
11108 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11109 soname_spec='$libname$release$shared_ext$major'
11110 shlibpath_var=LD_LIBRARY_PATH
11111 shlibpath_overrides_runpath=no
11112 hardcode_into_libs=yes
11113 dynamic_linker='ldqnx.so'
11114 ;;
11115
11116 openbsd* | bitrig*)
11117 version_type=sunos
11118 sys_lib_dlsearch_path_spec=/usr/lib
11119 need_lib_prefix=no
11120 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11121 need_version=no
11122 else
11123 need_version=yes
11124 fi
11125 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11126 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11127 shlibpath_var=LD_LIBRARY_PATH
11128 shlibpath_overrides_runpath=yes
11129 ;;
11130
11131 os2*)
11132 libname_spec='$name'
11133 version_type=windows
11134 shrext_cmds=.dll
11135 need_version=no
11136 need_lib_prefix=no
11137 # OS/2 can only load a DLL with a base name of 8 characters or less.
11138 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11139 v=$($ECHO $release$versuffix | tr -d .-);
11140 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11141 $ECHO $n$v`$shared_ext'
11142 library_names_spec='${libname}_dll.$libext'
11143 dynamic_linker='OS/2 ld.exe'
11144 shlibpath_var=BEGINLIBPATH
11145 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11146 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11147 postinstall_cmds='base_file=`basename \$file`~
11148 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11149 dldir=$destdir/`dirname \$dlpath`~
11150 test -d \$dldir || mkdir -p \$dldir~
11151 $install_prog $dir/$dlname \$dldir/$dlname~
11152 chmod a+x \$dldir/$dlname~
11153 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11154 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11155 fi'
11156 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11157 dlpath=$dir/\$dldll~
11158 $RM \$dlpath'
11159 ;;
11160
11161 osf3* | osf4* | osf5*)
11162 version_type=osf
11163 need_lib_prefix=no
11164 need_version=no
11165 soname_spec='$libname$release$shared_ext$major'
11166 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11167 shlibpath_var=LD_LIBRARY_PATH
11168 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11169 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11170 ;;
11171
11172 rdos*)
11173 dynamic_linker=no
11174 ;;
11175
11176 solaris*)
11177 version_type=linux # correct to gnu/linux during the next big refactor
11178 need_lib_prefix=no
11179 need_version=no
11180 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11181 soname_spec='$libname$release$shared_ext$major'
11182 shlibpath_var=LD_LIBRARY_PATH
11183 shlibpath_overrides_runpath=yes
11184 hardcode_into_libs=yes
11185 # ldd complains unless libraries are executable
11186 postinstall_cmds='chmod +x $lib'
11187 ;;
11188
11189 sunos4*)
11190 version_type=sunos
11191 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11192 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11193 shlibpath_var=LD_LIBRARY_PATH
11194 shlibpath_overrides_runpath=yes
11195 if test yes = "$with_gnu_ld"; then
11196 need_lib_prefix=no
11197 fi
11198 need_version=yes
11199 ;;
11200
11201 sysv4 | sysv4.3*)
11202 version_type=linux # correct to gnu/linux during the next big refactor
11203 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11204 soname_spec='$libname$release$shared_ext$major'
11205 shlibpath_var=LD_LIBRARY_PATH
11206 case $host_vendor in
11207 sni)
11208 shlibpath_overrides_runpath=no
11209 need_lib_prefix=no
11210 runpath_var=LD_RUN_PATH
11211 ;;
11212 siemens)
11213 need_lib_prefix=no
11214 ;;
11215 motorola)
11216 need_lib_prefix=no
11217 need_version=no
11218 shlibpath_overrides_runpath=no
11219 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11220 ;;
11221 esac
11222 ;;
11223
11224 sysv4*MP*)
11225 if test -d /usr/nec; then
11226 version_type=linux # correct to gnu/linux during the next big refactor
11227 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11228 soname_spec='$libname$shared_ext.$major'
11229 shlibpath_var=LD_LIBRARY_PATH
11230 fi
11231 ;;
11232
11233 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11234 version_type=sco
11235 need_lib_prefix=no
11236 need_version=no
11237 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11238 soname_spec='$libname$release$shared_ext$major'
11239 shlibpath_var=LD_LIBRARY_PATH
11240 shlibpath_overrides_runpath=yes
11241 hardcode_into_libs=yes
11242 if test yes = "$with_gnu_ld"; then
11243 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11244 else
11245 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11246 case $host_os in
11247 sco3.2v5*)
11248 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11249 ;;
11250 esac
11251 fi
11252 sys_lib_dlsearch_path_spec='/usr/lib'
11253 ;;
11254
11255 tpf*)
11256 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11257 version_type=linux # correct to gnu/linux during the next big refactor
11258 need_lib_prefix=no
11259 need_version=no
11260 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11261 shlibpath_var=LD_LIBRARY_PATH
11262 shlibpath_overrides_runpath=no
11263 hardcode_into_libs=yes
11264 ;;
11265
11266 uts4*)
11267 version_type=linux # correct to gnu/linux during the next big refactor
11268 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11269 soname_spec='$libname$release$shared_ext$major'
11270 shlibpath_var=LD_LIBRARY_PATH
11271 ;;
11272
11273 *)
11274 dynamic_linker=no
11275 ;;
11276 esac
11277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11278 $as_echo "$dynamic_linker" >&6; }
11279 test no = "$dynamic_linker" && can_build_shared=no
11280
11281 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11282 if test yes = "$GCC"; then
11283 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11284 fi
11285
11286 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11287 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11288 fi
11289
11290 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11291 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11292 fi
11293
11294 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11295 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11296
11297 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11298 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11299
11300 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11301 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11400 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11401 hardcode_action=
11402 if test -n "$hardcode_libdir_flag_spec" ||
11403 test -n "$runpath_var" ||
11404 test yes = "$hardcode_automatic"; then
11405
11406 # We can hardcode non-existent directories.
11407 if test no != "$hardcode_direct" &&
11408 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11409 # have to relink, otherwise we might link with an installed library
11410 # when we should be linking with a yet-to-be-installed one
11411 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11412 test no != "$hardcode_minus_L"; then
11413 # Linking always hardcodes the temporary library directory.
11414 hardcode_action=relink
11415 else
11416 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11417 hardcode_action=immediate
11418 fi
11419 else
11420 # We cannot hardcode anything, or else we can only hardcode existing
11421 # directories.
11422 hardcode_action=unsupported
11423 fi
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11425 $as_echo "$hardcode_action" >&6; }
11426
11427 if test relink = "$hardcode_action" ||
11428 test yes = "$inherit_rpath"; then
11429 # Fast installation is not supported
11430 enable_fast_install=no
11431 elif test yes = "$shlibpath_overrides_runpath" ||
11432 test no = "$enable_shared"; then
11433 # Fast installation is not necessary
11434 enable_fast_install=needless
11435 fi
11436
11437
11438
11439
11440
11441
11442 if test yes != "$enable_dlopen"; then
11443 enable_dlopen=unknown
11444 enable_dlopen_self=unknown
11445 enable_dlopen_self_static=unknown
11446 else
11447 lt_cv_dlopen=no
11448 lt_cv_dlopen_libs=
11449
11450 case $host_os in
11451 beos*)
11452 lt_cv_dlopen=load_add_on
11453 lt_cv_dlopen_libs=
11454 lt_cv_dlopen_self=yes
11455 ;;
11456
11457 mingw* | pw32* | cegcc*)
11458 lt_cv_dlopen=LoadLibrary
11459 lt_cv_dlopen_libs=
11460 ;;
11461
11462 cygwin*)
11463 lt_cv_dlopen=dlopen
11464 lt_cv_dlopen_libs=
11465 ;;
11466
11467 darwin*)
11468 # if libdl is installed we need to link against it
11469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11470 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11471 if ${ac_cv_lib_dl_dlopen+:} false; then :
11472 $as_echo_n "(cached) " >&6
11473 else
11474 ac_check_lib_save_LIBS=$LIBS
11475 LIBS="-ldl $LIBS"
11476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11477 /* end confdefs.h. */
11478
11479 /* Override any GCC internal prototype to avoid an error.
11480 Use char because int might match the return type of a GCC
11481 builtin and then its argument prototype would still apply. */
11482 #ifdef __cplusplus
11483 extern "C"
11484 #endif
11485 char dlopen ();
11486 int
11487 main ()
11488 {
11489 return dlopen ();
11490 ;
11491 return 0;
11492 }
11493 _ACEOF
11494 if ac_fn_c_try_link "$LINENO"; then :
11495 ac_cv_lib_dl_dlopen=yes
11496 else
11497 ac_cv_lib_dl_dlopen=no
11498 fi
11499 rm -f core conftest.err conftest.$ac_objext \
11500 conftest$ac_exeext conftest.$ac_ext
11501 LIBS=$ac_check_lib_save_LIBS
11502 fi
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11504 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11505 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11506 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11507 else
11508
11509 lt_cv_dlopen=dyld
11510 lt_cv_dlopen_libs=
11511 lt_cv_dlopen_self=yes
11512
11513 fi
11514
11515 ;;
11516
11517 tpf*)
11518 # Don't try to run any link tests for TPF. We know it's impossible
11519 # because TPF is a cross-compiler, and we know how we open DSOs.
11520 lt_cv_dlopen=dlopen
11521 lt_cv_dlopen_libs=
11522 lt_cv_dlopen_self=no
11523 ;;
11524
11525 *)
11526 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11527 if test "x$ac_cv_func_shl_load" = xyes; then :
11528 lt_cv_dlopen=shl_load
11529 else
11530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11531 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11532 if ${ac_cv_lib_dld_shl_load+:} false; then :
11533 $as_echo_n "(cached) " >&6
11534 else
11535 ac_check_lib_save_LIBS=$LIBS
11536 LIBS="-ldld $LIBS"
11537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11538 /* end confdefs.h. */
11539
11540 /* Override any GCC internal prototype to avoid an error.
11541 Use char because int might match the return type of a GCC
11542 builtin and then its argument prototype would still apply. */
11543 #ifdef __cplusplus
11544 extern "C"
11545 #endif
11546 char shl_load ();
11547 int
11548 main ()
11549 {
11550 return shl_load ();
11551 ;
11552 return 0;
11553 }
11554 _ACEOF
11555 if ac_fn_c_try_link "$LINENO"; then :
11556 ac_cv_lib_dld_shl_load=yes
11557 else
11558 ac_cv_lib_dld_shl_load=no
11559 fi
11560 rm -f core conftest.err conftest.$ac_objext \
11561 conftest$ac_exeext conftest.$ac_ext
11562 LIBS=$ac_check_lib_save_LIBS
11563 fi
11564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11565 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11566 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11567 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11568 else
11569 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11570 if test "x$ac_cv_func_dlopen" = xyes; then :
11571 lt_cv_dlopen=dlopen
11572 else
11573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11574 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11575 if ${ac_cv_lib_dl_dlopen+:} false; then :
11576 $as_echo_n "(cached) " >&6
11577 else
11578 ac_check_lib_save_LIBS=$LIBS
11579 LIBS="-ldl $LIBS"
11580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11581 /* end confdefs.h. */
11582
11583 /* Override any GCC internal prototype to avoid an error.
11584 Use char because int might match the return type of a GCC
11585 builtin and then its argument prototype would still apply. */
11586 #ifdef __cplusplus
11587 extern "C"
11588 #endif
11589 char dlopen ();
11590 int
11591 main ()
11592 {
11593 return dlopen ();
11594 ;
11595 return 0;
11596 }
11597 _ACEOF
11598 if ac_fn_c_try_link "$LINENO"; then :
11599 ac_cv_lib_dl_dlopen=yes
11600 else
11601 ac_cv_lib_dl_dlopen=no
11602 fi
11603 rm -f core conftest.err conftest.$ac_objext \
11604 conftest$ac_exeext conftest.$ac_ext
11605 LIBS=$ac_check_lib_save_LIBS
11606 fi
11607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11608 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11609 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11610 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11611 else
11612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11613 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11614 if ${ac_cv_lib_svld_dlopen+:} false; then :
11615 $as_echo_n "(cached) " >&6
11616 else
11617 ac_check_lib_save_LIBS=$LIBS
11618 LIBS="-lsvld $LIBS"
11619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11620 /* end confdefs.h. */
11621
11622 /* Override any GCC internal prototype to avoid an error.
11623 Use char because int might match the return type of a GCC
11624 builtin and then its argument prototype would still apply. */
11625 #ifdef __cplusplus
11626 extern "C"
11627 #endif
11628 char dlopen ();
11629 int
11630 main ()
11631 {
11632 return dlopen ();
11633 ;
11634 return 0;
11635 }
11636 _ACEOF
11637 if ac_fn_c_try_link "$LINENO"; then :
11638 ac_cv_lib_svld_dlopen=yes
11639 else
11640 ac_cv_lib_svld_dlopen=no
11641 fi
11642 rm -f core conftest.err conftest.$ac_objext \
11643 conftest$ac_exeext conftest.$ac_ext
11644 LIBS=$ac_check_lib_save_LIBS
11645 fi
11646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11647 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11648 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11649 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11650 else
11651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11652 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11653 if ${ac_cv_lib_dld_dld_link+:} false; then :
11654 $as_echo_n "(cached) " >&6
11655 else
11656 ac_check_lib_save_LIBS=$LIBS
11657 LIBS="-ldld $LIBS"
11658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11659 /* end confdefs.h. */
11660
11661 /* Override any GCC internal prototype to avoid an error.
11662 Use char because int might match the return type of a GCC
11663 builtin and then its argument prototype would still apply. */
11664 #ifdef __cplusplus
11665 extern "C"
11666 #endif
11667 char dld_link ();
11668 int
11669 main ()
11670 {
11671 return dld_link ();
11672 ;
11673 return 0;
11674 }
11675 _ACEOF
11676 if ac_fn_c_try_link "$LINENO"; then :
11677 ac_cv_lib_dld_dld_link=yes
11678 else
11679 ac_cv_lib_dld_dld_link=no
11680 fi
11681 rm -f core conftest.err conftest.$ac_objext \
11682 conftest$ac_exeext conftest.$ac_ext
11683 LIBS=$ac_check_lib_save_LIBS
11684 fi
11685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11686 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11687 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11688 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11689 fi
11690
11691
11692 fi
11693
11694
11695 fi
11696
11697
11698 fi
11699
11700
11701 fi
11702
11703
11704 fi
11705
11706 ;;
11707 esac
11708
11709 if test no = "$lt_cv_dlopen"; then
11710 enable_dlopen=no
11711 else
11712 enable_dlopen=yes
11713 fi
11714
11715 case $lt_cv_dlopen in
11716 dlopen)
11717 save_CPPFLAGS=$CPPFLAGS
11718 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11719
11720 save_LDFLAGS=$LDFLAGS
11721 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11722
11723 save_LIBS=$LIBS
11724 LIBS="$lt_cv_dlopen_libs $LIBS"
11725
11726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11727 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11728 if ${lt_cv_dlopen_self+:} false; then :
11729 $as_echo_n "(cached) " >&6
11730 else
11731 if test yes = "$cross_compiling"; then :
11732 lt_cv_dlopen_self=cross
11733 else
11734 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11735 lt_status=$lt_dlunknown
11736 cat > conftest.$ac_ext <<_LT_EOF
11737 #line $LINENO "configure"
11738 #include "confdefs.h"
11739
11740 #if HAVE_DLFCN_H
11741 #include <dlfcn.h>
11742 #endif
11743
11744 #include <stdio.h>
11745
11746 #ifdef RTLD_GLOBAL
11747 # define LT_DLGLOBAL RTLD_GLOBAL
11748 #else
11749 # ifdef DL_GLOBAL
11750 # define LT_DLGLOBAL DL_GLOBAL
11751 # else
11752 # define LT_DLGLOBAL 0
11753 # endif
11754 #endif
11755
11756 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11757 find out it does not work in some platform. */
11758 #ifndef LT_DLLAZY_OR_NOW
11759 # ifdef RTLD_LAZY
11760 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11761 # else
11762 # ifdef DL_LAZY
11763 # define LT_DLLAZY_OR_NOW DL_LAZY
11764 # else
11765 # ifdef RTLD_NOW
11766 # define LT_DLLAZY_OR_NOW RTLD_NOW
11767 # else
11768 # ifdef DL_NOW
11769 # define LT_DLLAZY_OR_NOW DL_NOW
11770 # else
11771 # define LT_DLLAZY_OR_NOW 0
11772 # endif
11773 # endif
11774 # endif
11775 # endif
11776 #endif
11777
11778 /* When -fvisibility=hidden is used, assume the code has been annotated
11779 correspondingly for the symbols needed. */
11780 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11781 int fnord () __attribute__((visibility("default")));
11782 #endif
11783
11784 int fnord () { return 42; }
11785 int main ()
11786 {
11787 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11788 int status = $lt_dlunknown;
11789
11790 if (self)
11791 {
11792 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11793 else
11794 {
11795 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11796 else puts (dlerror ());
11797 }
11798 /* dlclose (self); */
11799 }
11800 else
11801 puts (dlerror ());
11802
11803 return status;
11804 }
11805 _LT_EOF
11806 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11807 (eval $ac_link) 2>&5
11808 ac_status=$?
11809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11810 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11811 (./conftest; exit; ) >&5 2>/dev/null
11812 lt_status=$?
11813 case x$lt_status in
11814 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11815 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11816 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11817 esac
11818 else :
11819 # compilation failed
11820 lt_cv_dlopen_self=no
11821 fi
11822 fi
11823 rm -fr conftest*
11824
11825
11826 fi
11827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11828 $as_echo "$lt_cv_dlopen_self" >&6; }
11829
11830 if test yes = "$lt_cv_dlopen_self"; then
11831 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11833 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11834 if ${lt_cv_dlopen_self_static+:} false; then :
11835 $as_echo_n "(cached) " >&6
11836 else
11837 if test yes = "$cross_compiling"; then :
11838 lt_cv_dlopen_self_static=cross
11839 else
11840 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11841 lt_status=$lt_dlunknown
11842 cat > conftest.$ac_ext <<_LT_EOF
11843 #line $LINENO "configure"
11844 #include "confdefs.h"
11845
11846 #if HAVE_DLFCN_H
11847 #include <dlfcn.h>
11848 #endif
11849
11850 #include <stdio.h>
11851
11852 #ifdef RTLD_GLOBAL
11853 # define LT_DLGLOBAL RTLD_GLOBAL
11854 #else
11855 # ifdef DL_GLOBAL
11856 # define LT_DLGLOBAL DL_GLOBAL
11857 # else
11858 # define LT_DLGLOBAL 0
11859 # endif
11860 #endif
11861
11862 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11863 find out it does not work in some platform. */
11864 #ifndef LT_DLLAZY_OR_NOW
11865 # ifdef RTLD_LAZY
11866 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11867 # else
11868 # ifdef DL_LAZY
11869 # define LT_DLLAZY_OR_NOW DL_LAZY
11870 # else
11871 # ifdef RTLD_NOW
11872 # define LT_DLLAZY_OR_NOW RTLD_NOW
11873 # else
11874 # ifdef DL_NOW
11875 # define LT_DLLAZY_OR_NOW DL_NOW
11876 # else
11877 # define LT_DLLAZY_OR_NOW 0
11878 # endif
11879 # endif
11880 # endif
11881 # endif
11882 #endif
11883
11884 /* When -fvisibility=hidden is used, assume the code has been annotated
11885 correspondingly for the symbols needed. */
11886 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11887 int fnord () __attribute__((visibility("default")));
11888 #endif
11889
11890 int fnord () { return 42; }
11891 int main ()
11892 {
11893 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11894 int status = $lt_dlunknown;
11895
11896 if (self)
11897 {
11898 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11899 else
11900 {
11901 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11902 else puts (dlerror ());
11903 }
11904 /* dlclose (self); */
11905 }
11906 else
11907 puts (dlerror ());
11908
11909 return status;
11910 }
11911 _LT_EOF
11912 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11913 (eval $ac_link) 2>&5
11914 ac_status=$?
11915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11916 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11917 (./conftest; exit; ) >&5 2>/dev/null
11918 lt_status=$?
11919 case x$lt_status in
11920 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11921 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11922 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11923 esac
11924 else :
11925 # compilation failed
11926 lt_cv_dlopen_self_static=no
11927 fi
11928 fi
11929 rm -fr conftest*
11930
11931
11932 fi
11933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11934 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11935 fi
11936
11937 CPPFLAGS=$save_CPPFLAGS
11938 LDFLAGS=$save_LDFLAGS
11939 LIBS=$save_LIBS
11940 ;;
11941 esac
11942
11943 case $lt_cv_dlopen_self in
11944 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11945 *) enable_dlopen_self=unknown ;;
11946 esac
11947
11948 case $lt_cv_dlopen_self_static in
11949 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11950 *) enable_dlopen_self_static=unknown ;;
11951 esac
11952 fi
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970 striplib=
11971 old_striplib=
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11973 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11974 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11975 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11976 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11978 $as_echo "yes" >&6; }
11979 else
11980 # FIXME - insert some real tests, host_os isn't really good enough
11981 case $host_os in
11982 darwin*)
11983 if test -n "$STRIP"; then
11984 striplib="$STRIP -x"
11985 old_striplib="$STRIP -S"
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11987 $as_echo "yes" >&6; }
11988 else
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11990 $as_echo "no" >&6; }
11991 fi
11992 ;;
11993 *)
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11995 $as_echo "no" >&6; }
11996 ;;
11997 esac
11998 fi
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011 # Report what library types will actually be built
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12013 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12015 $as_echo "$can_build_shared" >&6; }
12016
12017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12018 $as_echo_n "checking whether to build shared libraries... " >&6; }
12019 test no = "$can_build_shared" && enable_shared=no
12020
12021 # On AIX, shared libraries and static libraries use the same namespace, and
12022 # are all built from PIC.
12023 case $host_os in
12024 aix3*)
12025 test yes = "$enable_shared" && enable_static=no
12026 if test -n "$RANLIB"; then
12027 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12028 postinstall_cmds='$RANLIB $lib'
12029 fi
12030 ;;
12031
12032 aix[4-9]*)
12033 if test ia64 != "$host_cpu"; then
12034 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12035 yes,aix,yes) ;; # shared object as lib.so file only
12036 yes,svr4,*) ;; # shared object as lib.so archive member only
12037 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12038 esac
12039 fi
12040 ;;
12041 esac
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12043 $as_echo "$enable_shared" >&6; }
12044
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12046 $as_echo_n "checking whether to build static libraries... " >&6; }
12047 # Make sure either enable_shared or enable_static is yes.
12048 test yes = "$enable_shared" || enable_static=yes
12049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12050 $as_echo "$enable_static" >&6; }
12051
12052
12053
12054
12055 fi
12056 ac_ext=c
12057 ac_cpp='$CPP $CPPFLAGS'
12058 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12059 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12060 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12061
12062 CC=$lt_save_CC
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078 ac_config_commands="$ac_config_commands libtool"
12079
12080
12081
12082
12083 # Only expand once:
12084
12085
12086
12087 # Require xorg-macros minimum of 1.12 for DocBook external references
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
12100 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
12101 if ${ac_cv_prog_cc_c99+:} false; then :
12102 $as_echo_n "(cached) " >&6
12103 else
12104 ac_cv_prog_cc_c99=no
12105 ac_save_CC=$CC
12106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12107 /* end confdefs.h. */
12108 #include <stdarg.h>
12109 #include <stdbool.h>
12110 #include <stdlib.h>
12111 #include <wchar.h>
12112 #include <stdio.h>
12113
12114 // Check varargs macros. These examples are taken from C99 6.10.3.5.
12115 #define debug(...) fprintf (stderr, __VA_ARGS__)
12116 #define showlist(...) puts (#__VA_ARGS__)
12117 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
12118 static void
12119 test_varargs_macros (void)
12120 {
12121 int x = 1234;
12122 int y = 5678;
12123 debug ("Flag");
12124 debug ("X = %d\n", x);
12125 showlist (The first, second, and third items.);
12126 report (x>y, "x is %d but y is %d", x, y);
12127 }
12128
12129 // Check long long types.
12130 #define BIG64 18446744073709551615ull
12131 #define BIG32 4294967295ul
12132 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
12133 #if !BIG_OK
12134 your preprocessor is broken;
12135 #endif
12136 #if BIG_OK
12137 #else
12138 your preprocessor is broken;
12139 #endif
12140 static long long int bignum = -9223372036854775807LL;
12141 static unsigned long long int ubignum = BIG64;
12142
12143 struct incomplete_array
12144 {
12145 int datasize;
12146 double data[];
12147 };
12148
12149 struct named_init {
12150 int number;
12151 const wchar_t *name;
12152 double average;
12153 };
12154
12155 typedef const char *ccp;
12156
12157 static inline int
12158 test_restrict (ccp restrict text)
12159 {
12160 // See if C++-style comments work.
12161 // Iterate through items via the restricted pointer.
12162 // Also check for declarations in for loops.
12163 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
12164 continue;
12165 return 0;
12166 }
12167
12168 // Check varargs and va_copy.
12169 static void
12170 test_varargs (const char *format, ...)
12171 {
12172 va_list args;
12173 va_start (args, format);
12174 va_list args_copy;
12175 va_copy (args_copy, args);
12176
12177 const char *str;
12178 int number;
12179 float fnumber;
12180
12181 while (*format)
12182 {
12183 switch (*format++)
12184 {
12185 case 's': // string
12186 str = va_arg (args_copy, const char *);
12187 break;
12188 case 'd': // int
12189 number = va_arg (args_copy, int);
12190 break;
12191 case 'f': // float
12192 fnumber = va_arg (args_copy, double);
12193 break;
12194 default:
12195 break;
12196 }
12197 }
12198 va_end (args_copy);
12199 va_end (args);
12200 }
12201
12202 int
12203 main ()
12204 {
12205
12206 // Check bool.
12207 _Bool success = false;
12208
12209 // Check restrict.
12210 if (test_restrict ("String literal") == 0)
12211 success = true;
12212 char *restrict newvar = "Another string";
12213
12214 // Check varargs.
12215 test_varargs ("s, d' f .", "string", 65, 34.234);
12216 test_varargs_macros ();
12217
12218 // Check flexible array members.
12219 struct incomplete_array *ia =
12220 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
12221 ia->datasize = 10;
12222 for (int i = 0; i < ia->datasize; ++i)
12223 ia->data[i] = i * 1.234;
12224
12225 // Check named initializers.
12226 struct named_init ni = {
12227 .number = 34,
12228 .name = L"Test wide string",
12229 .average = 543.34343,
12230 };
12231
12232 ni.number = 58;
12233
12234 int dynamic_array[ni.number];
12235 dynamic_array[ni.number - 1] = 543;
12236
12237 // work around unused variable warnings
12238 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
12239 || dynamic_array[ni.number - 1] != 543);
12240
12241 ;
12242 return 0;
12243 }
12244 _ACEOF
12245 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
12246 do
12247 CC="$ac_save_CC $ac_arg"
12248 if ac_fn_c_try_compile "$LINENO"; then :
12249 ac_cv_prog_cc_c99=$ac_arg
12250 fi
12251 rm -f core conftest.err conftest.$ac_objext
12252 test "x$ac_cv_prog_cc_c99" != "xno" && break
12253 done
12254 rm -f conftest.$ac_ext
12255 CC=$ac_save_CC
12256
12257 fi
12258 # AC_CACHE_VAL
12259 case "x$ac_cv_prog_cc_c99" in
12260 x)
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12262 $as_echo "none needed" >&6; } ;;
12263 xno)
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12265 $as_echo "unsupported" >&6; } ;;
12266 *)
12267 CC="$CC $ac_cv_prog_cc_c99"
12268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
12269 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
12270 esac
12271 if test "x$ac_cv_prog_cc_c99" != xno; then :
12272
12273 fi
12274
12275
12276
12277
12278
12279
12280 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
12281 if test "x$ac_cv_have_decl___clang__" = xyes; then :
12282 CLANGCC="yes"
12283 else
12284 CLANGCC="no"
12285 fi
12286
12287 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
12288 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
12289 INTELCC="yes"
12290 else
12291 INTELCC="no"
12292 fi
12293
12294 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
12295 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
12296 SUNCC="yes"
12297 else
12298 SUNCC="no"
12299 fi
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12310 if test -n "$ac_tool_prefix"; then
12311 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12312 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12314 $as_echo_n "checking for $ac_word... " >&6; }
12315 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12316 $as_echo_n "(cached) " >&6
12317 else
12318 case $PKG_CONFIG in
12319 [\\/]* | ?:[\\/]*)
12320 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12321 ;;
12322 *)
12323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12324 for as_dir in $PATH
12325 do
12326 IFS=$as_save_IFS
12327 test -z "$as_dir" && as_dir=.
12328 for ac_exec_ext in '' $ac_executable_extensions; do
12329 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12330 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12332 break 2
12333 fi
12334 done
12335 done
12336 IFS=$as_save_IFS
12337
12338 ;;
12339 esac
12340 fi
12341 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12342 if test -n "$PKG_CONFIG"; then
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12344 $as_echo "$PKG_CONFIG" >&6; }
12345 else
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12347 $as_echo "no" >&6; }
12348 fi
12349
12350
12351 fi
12352 if test -z "$ac_cv_path_PKG_CONFIG"; then
12353 ac_pt_PKG_CONFIG=$PKG_CONFIG
12354 # Extract the first word of "pkg-config", so it can be a program name with args.
12355 set dummy pkg-config; ac_word=$2
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12357 $as_echo_n "checking for $ac_word... " >&6; }
12358 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12359 $as_echo_n "(cached) " >&6
12360 else
12361 case $ac_pt_PKG_CONFIG in
12362 [\\/]* | ?:[\\/]*)
12363 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12364 ;;
12365 *)
12366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12367 for as_dir in $PATH
12368 do
12369 IFS=$as_save_IFS
12370 test -z "$as_dir" && as_dir=.
12371 for ac_exec_ext in '' $ac_executable_extensions; do
12372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12373 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12375 break 2
12376 fi
12377 done
12378 done
12379 IFS=$as_save_IFS
12380
12381 ;;
12382 esac
12383 fi
12384 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12385 if test -n "$ac_pt_PKG_CONFIG"; then
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12387 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12388 else
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12390 $as_echo "no" >&6; }
12391 fi
12392
12393 if test "x$ac_pt_PKG_CONFIG" = x; then
12394 PKG_CONFIG=""
12395 else
12396 case $cross_compiling:$ac_tool_warned in
12397 yes:)
12398 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12399 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12400 ac_tool_warned=yes ;;
12401 esac
12402 PKG_CONFIG=$ac_pt_PKG_CONFIG
12403 fi
12404 else
12405 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12406 fi
12407
12408 fi
12409 if test -n "$PKG_CONFIG"; then
12410 _pkg_min_version=0.9.0
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12412 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12413 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12415 $as_echo "yes" >&6; }
12416 else
12417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12418 $as_echo "no" >&6; }
12419 PKG_CONFIG=""
12420 fi
12421 fi
12422
12423
12424
12425
12426
12427 # Check whether --enable-selective-werror was given.
12428 if test "${enable_selective_werror+set}" = set; then :
12429 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
12430 else
12431 SELECTIVE_WERROR=yes
12432 fi
12433
12434
12435
12436
12437
12438 # -v is too short to test reliably with XORG_TESTSET_CFLAG
12439 if test "x$SUNCC" = "xyes"; then
12440 BASE_CFLAGS="-v"
12441 else
12442 BASE_CFLAGS=""
12443 fi
12444
12445 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459 xorg_testset_save_CFLAGS="$CFLAGS"
12460
12461 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12462 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12464 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12465 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12466 $as_echo_n "(cached) " >&6
12467 else
12468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12469 /* end confdefs.h. */
12470 int i;
12471 _ACEOF
12472 if ac_fn_c_try_compile "$LINENO"; then :
12473 xorg_cv_cc_flag_unknown_warning_option=yes
12474 else
12475 xorg_cv_cc_flag_unknown_warning_option=no
12476 fi
12477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12478 fi
12479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12480 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12481 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12482 CFLAGS="$xorg_testset_save_CFLAGS"
12483 fi
12484
12485 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12486 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12487 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12488 fi
12489 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12491 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12492 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12493 $as_echo_n "(cached) " >&6
12494 else
12495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12496 /* end confdefs.h. */
12497 int i;
12498 _ACEOF
12499 if ac_fn_c_try_compile "$LINENO"; then :
12500 xorg_cv_cc_flag_unused_command_line_argument=yes
12501 else
12502 xorg_cv_cc_flag_unused_command_line_argument=no
12503 fi
12504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12505 fi
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12507 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12508 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12509 CFLAGS="$xorg_testset_save_CFLAGS"
12510 fi
12511
12512 found="no"
12513
12514 if test $found = "no" ; then
12515 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12516 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12517 fi
12518
12519 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12520 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12521 fi
12522
12523 CFLAGS="$CFLAGS -Wall"
12524
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
12526 $as_echo_n "checking if $CC supports -Wall... " >&6; }
12527 cacheid=xorg_cv_cc_flag__Wall
12528 if eval \${$cacheid+:} false; then :
12529 $as_echo_n "(cached) " >&6
12530 else
12531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12532 /* end confdefs.h. */
12533 int i;
12534 int
12535 main ()
12536 {
12537
12538 ;
12539 return 0;
12540 }
12541 _ACEOF
12542 if ac_fn_c_try_link "$LINENO"; then :
12543 eval $cacheid=yes
12544 else
12545 eval $cacheid=no
12546 fi
12547 rm -f core conftest.err conftest.$ac_objext \
12548 conftest$ac_exeext conftest.$ac_ext
12549 fi
12550
12551
12552 CFLAGS="$xorg_testset_save_CFLAGS"
12553
12554 eval supported=\$$cacheid
12555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12556 $as_echo "$supported" >&6; }
12557 if test "$supported" = "yes" ; then
12558 BASE_CFLAGS="$BASE_CFLAGS -Wall"
12559 found="yes"
12560 fi
12561 fi
12562
12563
12564
12565
12566
12567
12568
12569
12570
12571
12572
12573
12574
12575
12576
12577 xorg_testset_save_CFLAGS="$CFLAGS"
12578
12579 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12580 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12582 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12583 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12584 $as_echo_n "(cached) " >&6
12585 else
12586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12587 /* end confdefs.h. */
12588 int i;
12589 _ACEOF
12590 if ac_fn_c_try_compile "$LINENO"; then :
12591 xorg_cv_cc_flag_unknown_warning_option=yes
12592 else
12593 xorg_cv_cc_flag_unknown_warning_option=no
12594 fi
12595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12596 fi
12597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12598 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12599 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12600 CFLAGS="$xorg_testset_save_CFLAGS"
12601 fi
12602
12603 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12604 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12605 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12606 fi
12607 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12609 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12610 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12611 $as_echo_n "(cached) " >&6
12612 else
12613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12614 /* end confdefs.h. */
12615 int i;
12616 _ACEOF
12617 if ac_fn_c_try_compile "$LINENO"; then :
12618 xorg_cv_cc_flag_unused_command_line_argument=yes
12619 else
12620 xorg_cv_cc_flag_unused_command_line_argument=no
12621 fi
12622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12623 fi
12624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12625 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12626 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12627 CFLAGS="$xorg_testset_save_CFLAGS"
12628 fi
12629
12630 found="no"
12631
12632 if test $found = "no" ; then
12633 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12634 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12635 fi
12636
12637 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12638 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12639 fi
12640
12641 CFLAGS="$CFLAGS -Wpointer-arith"
12642
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
12644 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
12645 cacheid=xorg_cv_cc_flag__Wpointer_arith
12646 if eval \${$cacheid+:} false; then :
12647 $as_echo_n "(cached) " >&6
12648 else
12649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12650 /* end confdefs.h. */
12651 int i;
12652 int
12653 main ()
12654 {
12655
12656 ;
12657 return 0;
12658 }
12659 _ACEOF
12660 if ac_fn_c_try_link "$LINENO"; then :
12661 eval $cacheid=yes
12662 else
12663 eval $cacheid=no
12664 fi
12665 rm -f core conftest.err conftest.$ac_objext \
12666 conftest$ac_exeext conftest.$ac_ext
12667 fi
12668
12669
12670 CFLAGS="$xorg_testset_save_CFLAGS"
12671
12672 eval supported=\$$cacheid
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12674 $as_echo "$supported" >&6; }
12675 if test "$supported" = "yes" ; then
12676 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
12677 found="yes"
12678 fi
12679 fi
12680
12681
12682
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692
12693
12694
12695 xorg_testset_save_CFLAGS="$CFLAGS"
12696
12697 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12698 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12700 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12701 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12702 $as_echo_n "(cached) " >&6
12703 else
12704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12705 /* end confdefs.h. */
12706 int i;
12707 _ACEOF
12708 if ac_fn_c_try_compile "$LINENO"; then :
12709 xorg_cv_cc_flag_unknown_warning_option=yes
12710 else
12711 xorg_cv_cc_flag_unknown_warning_option=no
12712 fi
12713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12714 fi
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12716 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12717 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12718 CFLAGS="$xorg_testset_save_CFLAGS"
12719 fi
12720
12721 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12722 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12723 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12724 fi
12725 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12727 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12728 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12729 $as_echo_n "(cached) " >&6
12730 else
12731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12732 /* end confdefs.h. */
12733 int i;
12734 _ACEOF
12735 if ac_fn_c_try_compile "$LINENO"; then :
12736 xorg_cv_cc_flag_unused_command_line_argument=yes
12737 else
12738 xorg_cv_cc_flag_unused_command_line_argument=no
12739 fi
12740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12741 fi
12742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12743 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12744 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12745 CFLAGS="$xorg_testset_save_CFLAGS"
12746 fi
12747
12748 found="no"
12749
12750 if test $found = "no" ; then
12751 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12752 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12753 fi
12754
12755 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12756 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12757 fi
12758
12759 CFLAGS="$CFLAGS -Wmissing-declarations"
12760
12761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
12762 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
12763 cacheid=xorg_cv_cc_flag__Wmissing_declarations
12764 if eval \${$cacheid+:} false; then :
12765 $as_echo_n "(cached) " >&6
12766 else
12767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12768 /* end confdefs.h. */
12769 int i;
12770 int
12771 main ()
12772 {
12773
12774 ;
12775 return 0;
12776 }
12777 _ACEOF
12778 if ac_fn_c_try_link "$LINENO"; then :
12779 eval $cacheid=yes
12780 else
12781 eval $cacheid=no
12782 fi
12783 rm -f core conftest.err conftest.$ac_objext \
12784 conftest$ac_exeext conftest.$ac_ext
12785 fi
12786
12787
12788 CFLAGS="$xorg_testset_save_CFLAGS"
12789
12790 eval supported=\$$cacheid
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12792 $as_echo "$supported" >&6; }
12793 if test "$supported" = "yes" ; then
12794 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
12795 found="yes"
12796 fi
12797 fi
12798
12799
12800
12801
12802
12803
12804
12805
12806
12807
12808
12809
12810
12811
12812
12813 xorg_testset_save_CFLAGS="$CFLAGS"
12814
12815 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12816 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12818 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12819 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12820 $as_echo_n "(cached) " >&6
12821 else
12822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12823 /* end confdefs.h. */
12824 int i;
12825 _ACEOF
12826 if ac_fn_c_try_compile "$LINENO"; then :
12827 xorg_cv_cc_flag_unknown_warning_option=yes
12828 else
12829 xorg_cv_cc_flag_unknown_warning_option=no
12830 fi
12831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12832 fi
12833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12834 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12835 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12836 CFLAGS="$xorg_testset_save_CFLAGS"
12837 fi
12838
12839 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12840 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12841 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12842 fi
12843 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12845 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12846 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12847 $as_echo_n "(cached) " >&6
12848 else
12849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12850 /* end confdefs.h. */
12851 int i;
12852 _ACEOF
12853 if ac_fn_c_try_compile "$LINENO"; then :
12854 xorg_cv_cc_flag_unused_command_line_argument=yes
12855 else
12856 xorg_cv_cc_flag_unused_command_line_argument=no
12857 fi
12858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12859 fi
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12861 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12862 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12863 CFLAGS="$xorg_testset_save_CFLAGS"
12864 fi
12865
12866 found="no"
12867
12868 if test $found = "no" ; then
12869 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12870 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12871 fi
12872
12873 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12874 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12875 fi
12876
12877 CFLAGS="$CFLAGS -Wformat=2"
12878
12879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
12880 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
12881 cacheid=xorg_cv_cc_flag__Wformat_2
12882 if eval \${$cacheid+:} false; then :
12883 $as_echo_n "(cached) " >&6
12884 else
12885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12886 /* end confdefs.h. */
12887 int i;
12888 int
12889 main ()
12890 {
12891
12892 ;
12893 return 0;
12894 }
12895 _ACEOF
12896 if ac_fn_c_try_link "$LINENO"; then :
12897 eval $cacheid=yes
12898 else
12899 eval $cacheid=no
12900 fi
12901 rm -f core conftest.err conftest.$ac_objext \
12902 conftest$ac_exeext conftest.$ac_ext
12903 fi
12904
12905
12906 CFLAGS="$xorg_testset_save_CFLAGS"
12907
12908 eval supported=\$$cacheid
12909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12910 $as_echo "$supported" >&6; }
12911 if test "$supported" = "yes" ; then
12912 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
12913 found="yes"
12914 fi
12915 fi
12916
12917 if test $found = "no" ; then
12918 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12919 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12920 fi
12921
12922 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12923 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12924 fi
12925
12926 CFLAGS="$CFLAGS -Wformat"
12927
12928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
12929 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
12930 cacheid=xorg_cv_cc_flag__Wformat
12931 if eval \${$cacheid+:} false; then :
12932 $as_echo_n "(cached) " >&6
12933 else
12934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12935 /* end confdefs.h. */
12936 int i;
12937 int
12938 main ()
12939 {
12940
12941 ;
12942 return 0;
12943 }
12944 _ACEOF
12945 if ac_fn_c_try_link "$LINENO"; then :
12946 eval $cacheid=yes
12947 else
12948 eval $cacheid=no
12949 fi
12950 rm -f core conftest.err conftest.$ac_objext \
12951 conftest$ac_exeext conftest.$ac_ext
12952 fi
12953
12954
12955 CFLAGS="$xorg_testset_save_CFLAGS"
12956
12957 eval supported=\$$cacheid
12958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12959 $as_echo "$supported" >&6; }
12960 if test "$supported" = "yes" ; then
12961 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
12962 found="yes"
12963 fi
12964 fi
12965
12966
12967
12968
12969
12970
12971
12972
12973
12974
12975
12976
12977
12978
12979
12980
12981
12982 xorg_testset_save_CFLAGS="$CFLAGS"
12983
12984 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12985 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12987 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12988 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12989 $as_echo_n "(cached) " >&6
12990 else
12991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12992 /* end confdefs.h. */
12993 int i;
12994 _ACEOF
12995 if ac_fn_c_try_compile "$LINENO"; then :
12996 xorg_cv_cc_flag_unknown_warning_option=yes
12997 else
12998 xorg_cv_cc_flag_unknown_warning_option=no
12999 fi
13000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13001 fi
13002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13003 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13004 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13005 CFLAGS="$xorg_testset_save_CFLAGS"
13006 fi
13007
13008 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13009 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13010 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13011 fi
13012 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13014 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13015 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13016 $as_echo_n "(cached) " >&6
13017 else
13018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13019 /* end confdefs.h. */
13020 int i;
13021 _ACEOF
13022 if ac_fn_c_try_compile "$LINENO"; then :
13023 xorg_cv_cc_flag_unused_command_line_argument=yes
13024 else
13025 xorg_cv_cc_flag_unused_command_line_argument=no
13026 fi
13027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13028 fi
13029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13030 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13031 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13032 CFLAGS="$xorg_testset_save_CFLAGS"
13033 fi
13034
13035 found="no"
13036
13037 if test $found = "no" ; then
13038 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13039 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13040 fi
13041
13042 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13043 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13044 fi
13045
13046 CFLAGS="$CFLAGS -Wstrict-prototypes"
13047
13048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
13049 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
13050 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
13051 if eval \${$cacheid+:} false; then :
13052 $as_echo_n "(cached) " >&6
13053 else
13054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13055 /* end confdefs.h. */
13056 int i;
13057 int
13058 main ()
13059 {
13060
13061 ;
13062 return 0;
13063 }
13064 _ACEOF
13065 if ac_fn_c_try_link "$LINENO"; then :
13066 eval $cacheid=yes
13067 else
13068 eval $cacheid=no
13069 fi
13070 rm -f core conftest.err conftest.$ac_objext \
13071 conftest$ac_exeext conftest.$ac_ext
13072 fi
13073
13074
13075 CFLAGS="$xorg_testset_save_CFLAGS"
13076
13077 eval supported=\$$cacheid
13078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13079 $as_echo "$supported" >&6; }
13080 if test "$supported" = "yes" ; then
13081 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
13082 found="yes"
13083 fi
13084 fi
13085
13086
13087
13088
13089
13090
13091
13092
13093
13094
13095
13096
13097
13098
13099
13100 xorg_testset_save_CFLAGS="$CFLAGS"
13101
13102 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13103 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13105 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13106 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13107 $as_echo_n "(cached) " >&6
13108 else
13109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13110 /* end confdefs.h. */
13111 int i;
13112 _ACEOF
13113 if ac_fn_c_try_compile "$LINENO"; then :
13114 xorg_cv_cc_flag_unknown_warning_option=yes
13115 else
13116 xorg_cv_cc_flag_unknown_warning_option=no
13117 fi
13118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13119 fi
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13121 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13122 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13123 CFLAGS="$xorg_testset_save_CFLAGS"
13124 fi
13125
13126 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13127 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13128 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13129 fi
13130 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13132 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13133 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13134 $as_echo_n "(cached) " >&6
13135 else
13136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13137 /* end confdefs.h. */
13138 int i;
13139 _ACEOF
13140 if ac_fn_c_try_compile "$LINENO"; then :
13141 xorg_cv_cc_flag_unused_command_line_argument=yes
13142 else
13143 xorg_cv_cc_flag_unused_command_line_argument=no
13144 fi
13145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13146 fi
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13148 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13149 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13150 CFLAGS="$xorg_testset_save_CFLAGS"
13151 fi
13152
13153 found="no"
13154
13155 if test $found = "no" ; then
13156 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13157 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13158 fi
13159
13160 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13161 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13162 fi
13163
13164 CFLAGS="$CFLAGS -Wmissing-prototypes"
13165
13166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
13167 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
13168 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
13169 if eval \${$cacheid+:} false; then :
13170 $as_echo_n "(cached) " >&6
13171 else
13172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13173 /* end confdefs.h. */
13174 int i;
13175 int
13176 main ()
13177 {
13178
13179 ;
13180 return 0;
13181 }
13182 _ACEOF
13183 if ac_fn_c_try_link "$LINENO"; then :
13184 eval $cacheid=yes
13185 else
13186 eval $cacheid=no
13187 fi
13188 rm -f core conftest.err conftest.$ac_objext \
13189 conftest$ac_exeext conftest.$ac_ext
13190 fi
13191
13192
13193 CFLAGS="$xorg_testset_save_CFLAGS"
13194
13195 eval supported=\$$cacheid
13196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13197 $as_echo "$supported" >&6; }
13198 if test "$supported" = "yes" ; then
13199 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
13200 found="yes"
13201 fi
13202 fi
13203
13204
13205
13206
13207
13208
13209
13210
13211
13212
13213
13214
13215
13216
13217
13218 xorg_testset_save_CFLAGS="$CFLAGS"
13219
13220 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13221 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13223 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13224 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13225 $as_echo_n "(cached) " >&6
13226 else
13227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13228 /* end confdefs.h. */
13229 int i;
13230 _ACEOF
13231 if ac_fn_c_try_compile "$LINENO"; then :
13232 xorg_cv_cc_flag_unknown_warning_option=yes
13233 else
13234 xorg_cv_cc_flag_unknown_warning_option=no
13235 fi
13236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13237 fi
13238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13239 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13240 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13241 CFLAGS="$xorg_testset_save_CFLAGS"
13242 fi
13243
13244 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13245 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13246 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13247 fi
13248 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13250 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13251 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13252 $as_echo_n "(cached) " >&6
13253 else
13254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13255 /* end confdefs.h. */
13256 int i;
13257 _ACEOF
13258 if ac_fn_c_try_compile "$LINENO"; then :
13259 xorg_cv_cc_flag_unused_command_line_argument=yes
13260 else
13261 xorg_cv_cc_flag_unused_command_line_argument=no
13262 fi
13263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13264 fi
13265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13266 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13267 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13268 CFLAGS="$xorg_testset_save_CFLAGS"
13269 fi
13270
13271 found="no"
13272
13273 if test $found = "no" ; then
13274 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13275 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13276 fi
13277
13278 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13279 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13280 fi
13281
13282 CFLAGS="$CFLAGS -Wnested-externs"
13283
13284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
13285 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
13286 cacheid=xorg_cv_cc_flag__Wnested_externs
13287 if eval \${$cacheid+:} false; then :
13288 $as_echo_n "(cached) " >&6
13289 else
13290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13291 /* end confdefs.h. */
13292 int i;
13293 int
13294 main ()
13295 {
13296
13297 ;
13298 return 0;
13299 }
13300 _ACEOF
13301 if ac_fn_c_try_link "$LINENO"; then :
13302 eval $cacheid=yes
13303 else
13304 eval $cacheid=no
13305 fi
13306 rm -f core conftest.err conftest.$ac_objext \
13307 conftest$ac_exeext conftest.$ac_ext
13308 fi
13309
13310
13311 CFLAGS="$xorg_testset_save_CFLAGS"
13312
13313 eval supported=\$$cacheid
13314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13315 $as_echo "$supported" >&6; }
13316 if test "$supported" = "yes" ; then
13317 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
13318 found="yes"
13319 fi
13320 fi
13321
13322
13323
13324
13325
13326
13327
13328
13329
13330
13331
13332
13333
13334
13335
13336 xorg_testset_save_CFLAGS="$CFLAGS"
13337
13338 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13339 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13341 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13342 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13343 $as_echo_n "(cached) " >&6
13344 else
13345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13346 /* end confdefs.h. */
13347 int i;
13348 _ACEOF
13349 if ac_fn_c_try_compile "$LINENO"; then :
13350 xorg_cv_cc_flag_unknown_warning_option=yes
13351 else
13352 xorg_cv_cc_flag_unknown_warning_option=no
13353 fi
13354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13355 fi
13356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13357 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13358 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13359 CFLAGS="$xorg_testset_save_CFLAGS"
13360 fi
13361
13362 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13363 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13364 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13365 fi
13366 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13368 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13369 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13370 $as_echo_n "(cached) " >&6
13371 else
13372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13373 /* end confdefs.h. */
13374 int i;
13375 _ACEOF
13376 if ac_fn_c_try_compile "$LINENO"; then :
13377 xorg_cv_cc_flag_unused_command_line_argument=yes
13378 else
13379 xorg_cv_cc_flag_unused_command_line_argument=no
13380 fi
13381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13382 fi
13383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13384 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13385 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13386 CFLAGS="$xorg_testset_save_CFLAGS"
13387 fi
13388
13389 found="no"
13390
13391 if test $found = "no" ; then
13392 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13393 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13394 fi
13395
13396 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13397 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13398 fi
13399
13400 CFLAGS="$CFLAGS -Wbad-function-cast"
13401
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
13403 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
13404 cacheid=xorg_cv_cc_flag__Wbad_function_cast
13405 if eval \${$cacheid+:} false; then :
13406 $as_echo_n "(cached) " >&6
13407 else
13408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13409 /* end confdefs.h. */
13410 int i;
13411 int
13412 main ()
13413 {
13414
13415 ;
13416 return 0;
13417 }
13418 _ACEOF
13419 if ac_fn_c_try_link "$LINENO"; then :
13420 eval $cacheid=yes
13421 else
13422 eval $cacheid=no
13423 fi
13424 rm -f core conftest.err conftest.$ac_objext \
13425 conftest$ac_exeext conftest.$ac_ext
13426 fi
13427
13428
13429 CFLAGS="$xorg_testset_save_CFLAGS"
13430
13431 eval supported=\$$cacheid
13432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13433 $as_echo "$supported" >&6; }
13434 if test "$supported" = "yes" ; then
13435 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
13436 found="yes"
13437 fi
13438 fi
13439
13440
13441
13442
13443
13444
13445
13446
13447
13448
13449
13450
13451
13452
13453
13454 xorg_testset_save_CFLAGS="$CFLAGS"
13455
13456 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13457 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13459 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13460 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13461 $as_echo_n "(cached) " >&6
13462 else
13463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13464 /* end confdefs.h. */
13465 int i;
13466 _ACEOF
13467 if ac_fn_c_try_compile "$LINENO"; then :
13468 xorg_cv_cc_flag_unknown_warning_option=yes
13469 else
13470 xorg_cv_cc_flag_unknown_warning_option=no
13471 fi
13472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13473 fi
13474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13475 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13476 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13477 CFLAGS="$xorg_testset_save_CFLAGS"
13478 fi
13479
13480 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13481 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13482 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13483 fi
13484 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13486 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13487 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13488 $as_echo_n "(cached) " >&6
13489 else
13490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13491 /* end confdefs.h. */
13492 int i;
13493 _ACEOF
13494 if ac_fn_c_try_compile "$LINENO"; then :
13495 xorg_cv_cc_flag_unused_command_line_argument=yes
13496 else
13497 xorg_cv_cc_flag_unused_command_line_argument=no
13498 fi
13499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13500 fi
13501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13502 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13503 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13504 CFLAGS="$xorg_testset_save_CFLAGS"
13505 fi
13506
13507 found="no"
13508
13509 if test $found = "no" ; then
13510 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13511 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13512 fi
13513
13514 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13515 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13516 fi
13517
13518 CFLAGS="$CFLAGS -Wold-style-definition"
13519
13520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
13521 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
13522 cacheid=xorg_cv_cc_flag__Wold_style_definition
13523 if eval \${$cacheid+:} false; then :
13524 $as_echo_n "(cached) " >&6
13525 else
13526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13527 /* end confdefs.h. */
13528 int i;
13529 int
13530 main ()
13531 {
13532
13533 ;
13534 return 0;
13535 }
13536 _ACEOF
13537 if ac_fn_c_try_link "$LINENO"; then :
13538 eval $cacheid=yes
13539 else
13540 eval $cacheid=no
13541 fi
13542 rm -f core conftest.err conftest.$ac_objext \
13543 conftest$ac_exeext conftest.$ac_ext
13544 fi
13545
13546
13547 CFLAGS="$xorg_testset_save_CFLAGS"
13548
13549 eval supported=\$$cacheid
13550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13551 $as_echo "$supported" >&6; }
13552 if test "$supported" = "yes" ; then
13553 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
13554 found="yes"
13555 fi
13556 fi
13557
13558 if test $found = "no" ; then
13559 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13560 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13561 fi
13562
13563 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13564 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13565 fi
13566
13567 CFLAGS="$CFLAGS -fd"
13568
13569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
13570 $as_echo_n "checking if $CC supports -fd... " >&6; }
13571 cacheid=xorg_cv_cc_flag__fd
13572 if eval \${$cacheid+:} false; then :
13573 $as_echo_n "(cached) " >&6
13574 else
13575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13576 /* end confdefs.h. */
13577 int i;
13578 int
13579 main ()
13580 {
13581
13582 ;
13583 return 0;
13584 }
13585 _ACEOF
13586 if ac_fn_c_try_link "$LINENO"; then :
13587 eval $cacheid=yes
13588 else
13589 eval $cacheid=no
13590 fi
13591 rm -f core conftest.err conftest.$ac_objext \
13592 conftest$ac_exeext conftest.$ac_ext
13593 fi
13594
13595
13596 CFLAGS="$xorg_testset_save_CFLAGS"
13597
13598 eval supported=\$$cacheid
13599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13600 $as_echo "$supported" >&6; }
13601 if test "$supported" = "yes" ; then
13602 BASE_CFLAGS="$BASE_CFLAGS -fd"
13603 found="yes"
13604 fi
13605 fi
13606
13607
13608
13609
13610
13611
13612
13613
13614
13615
13616
13617
13618
13619
13620
13621 xorg_testset_save_CFLAGS="$CFLAGS"
13622
13623 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13624 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13626 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13627 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13628 $as_echo_n "(cached) " >&6
13629 else
13630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13631 /* end confdefs.h. */
13632 int i;
13633 _ACEOF
13634 if ac_fn_c_try_compile "$LINENO"; then :
13635 xorg_cv_cc_flag_unknown_warning_option=yes
13636 else
13637 xorg_cv_cc_flag_unknown_warning_option=no
13638 fi
13639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13640 fi
13641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13642 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13643 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13644 CFLAGS="$xorg_testset_save_CFLAGS"
13645 fi
13646
13647 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13648 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13649 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13650 fi
13651 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13653 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13654 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13655 $as_echo_n "(cached) " >&6
13656 else
13657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13658 /* end confdefs.h. */
13659 int i;
13660 _ACEOF
13661 if ac_fn_c_try_compile "$LINENO"; then :
13662 xorg_cv_cc_flag_unused_command_line_argument=yes
13663 else
13664 xorg_cv_cc_flag_unused_command_line_argument=no
13665 fi
13666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13667 fi
13668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13669 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13670 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13671 CFLAGS="$xorg_testset_save_CFLAGS"
13672 fi
13673
13674 found="no"
13675
13676 if test $found = "no" ; then
13677 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13678 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13679 fi
13680
13681 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13682 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13683 fi
13684
13685 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
13686
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
13688 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
13689 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
13690 if eval \${$cacheid+:} false; then :
13691 $as_echo_n "(cached) " >&6
13692 else
13693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13694 /* end confdefs.h. */
13695 int i;
13696 int
13697 main ()
13698 {
13699
13700 ;
13701 return 0;
13702 }
13703 _ACEOF
13704 if ac_fn_c_try_link "$LINENO"; then :
13705 eval $cacheid=yes
13706 else
13707 eval $cacheid=no
13708 fi
13709 rm -f core conftest.err conftest.$ac_objext \
13710 conftest$ac_exeext conftest.$ac_ext
13711 fi
13712
13713
13714 CFLAGS="$xorg_testset_save_CFLAGS"
13715
13716 eval supported=\$$cacheid
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13718 $as_echo "$supported" >&6; }
13719 if test "$supported" = "yes" ; then
13720 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
13721 found="yes"
13722 fi
13723 fi
13724
13725
13726
13727
13728
13729 # This chunk adds additional warnings that could catch undesired effects.
13730
13731
13732
13733
13734
13735
13736
13737
13738
13739
13740
13741
13742
13743 xorg_testset_save_CFLAGS="$CFLAGS"
13744
13745 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13746 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13748 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13749 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13750 $as_echo_n "(cached) " >&6
13751 else
13752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13753 /* end confdefs.h. */
13754 int i;
13755 _ACEOF
13756 if ac_fn_c_try_compile "$LINENO"; then :
13757 xorg_cv_cc_flag_unknown_warning_option=yes
13758 else
13759 xorg_cv_cc_flag_unknown_warning_option=no
13760 fi
13761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13762 fi
13763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13764 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13765 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13766 CFLAGS="$xorg_testset_save_CFLAGS"
13767 fi
13768
13769 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13770 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13771 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13772 fi
13773 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13775 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13776 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13777 $as_echo_n "(cached) " >&6
13778 else
13779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13780 /* end confdefs.h. */
13781 int i;
13782 _ACEOF
13783 if ac_fn_c_try_compile "$LINENO"; then :
13784 xorg_cv_cc_flag_unused_command_line_argument=yes
13785 else
13786 xorg_cv_cc_flag_unused_command_line_argument=no
13787 fi
13788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13789 fi
13790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13791 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13792 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13793 CFLAGS="$xorg_testset_save_CFLAGS"
13794 fi
13795
13796 found="no"
13797
13798 if test $found = "no" ; then
13799 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13800 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13801 fi
13802
13803 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13804 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13805 fi
13806
13807 CFLAGS="$CFLAGS -Wunused"
13808
13809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
13810 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
13811 cacheid=xorg_cv_cc_flag__Wunused
13812 if eval \${$cacheid+:} false; then :
13813 $as_echo_n "(cached) " >&6
13814 else
13815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13816 /* end confdefs.h. */
13817 int i;
13818 int
13819 main ()
13820 {
13821
13822 ;
13823 return 0;
13824 }
13825 _ACEOF
13826 if ac_fn_c_try_link "$LINENO"; then :
13827 eval $cacheid=yes
13828 else
13829 eval $cacheid=no
13830 fi
13831 rm -f core conftest.err conftest.$ac_objext \
13832 conftest$ac_exeext conftest.$ac_ext
13833 fi
13834
13835
13836 CFLAGS="$xorg_testset_save_CFLAGS"
13837
13838 eval supported=\$$cacheid
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13840 $as_echo "$supported" >&6; }
13841 if test "$supported" = "yes" ; then
13842 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
13843 found="yes"
13844 fi
13845 fi
13846
13847
13848
13849
13850
13851
13852
13853
13854
13855
13856
13857
13858
13859
13860
13861 xorg_testset_save_CFLAGS="$CFLAGS"
13862
13863 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13864 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13866 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13867 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13868 $as_echo_n "(cached) " >&6
13869 else
13870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13871 /* end confdefs.h. */
13872 int i;
13873 _ACEOF
13874 if ac_fn_c_try_compile "$LINENO"; then :
13875 xorg_cv_cc_flag_unknown_warning_option=yes
13876 else
13877 xorg_cv_cc_flag_unknown_warning_option=no
13878 fi
13879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13880 fi
13881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13882 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13883 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13884 CFLAGS="$xorg_testset_save_CFLAGS"
13885 fi
13886
13887 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13888 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13889 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13890 fi
13891 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13893 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13894 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13895 $as_echo_n "(cached) " >&6
13896 else
13897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13898 /* end confdefs.h. */
13899 int i;
13900 _ACEOF
13901 if ac_fn_c_try_compile "$LINENO"; then :
13902 xorg_cv_cc_flag_unused_command_line_argument=yes
13903 else
13904 xorg_cv_cc_flag_unused_command_line_argument=no
13905 fi
13906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13907 fi
13908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13909 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13910 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13911 CFLAGS="$xorg_testset_save_CFLAGS"
13912 fi
13913
13914 found="no"
13915
13916 if test $found = "no" ; then
13917 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13918 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13919 fi
13920
13921 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13922 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13923 fi
13924
13925 CFLAGS="$CFLAGS -Wuninitialized"
13926
13927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
13928 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
13929 cacheid=xorg_cv_cc_flag__Wuninitialized
13930 if eval \${$cacheid+:} false; then :
13931 $as_echo_n "(cached) " >&6
13932 else
13933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13934 /* end confdefs.h. */
13935 int i;
13936 int
13937 main ()
13938 {
13939
13940 ;
13941 return 0;
13942 }
13943 _ACEOF
13944 if ac_fn_c_try_link "$LINENO"; then :
13945 eval $cacheid=yes
13946 else
13947 eval $cacheid=no
13948 fi
13949 rm -f core conftest.err conftest.$ac_objext \
13950 conftest$ac_exeext conftest.$ac_ext
13951 fi
13952
13953
13954 CFLAGS="$xorg_testset_save_CFLAGS"
13955
13956 eval supported=\$$cacheid
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13958 $as_echo "$supported" >&6; }
13959 if test "$supported" = "yes" ; then
13960 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
13961 found="yes"
13962 fi
13963 fi
13964
13965
13966
13967
13968
13969
13970
13971
13972
13973
13974
13975
13976
13977
13978
13979 xorg_testset_save_CFLAGS="$CFLAGS"
13980
13981 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13982 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13984 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13985 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13986 $as_echo_n "(cached) " >&6
13987 else
13988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13989 /* end confdefs.h. */
13990 int i;
13991 _ACEOF
13992 if ac_fn_c_try_compile "$LINENO"; then :
13993 xorg_cv_cc_flag_unknown_warning_option=yes
13994 else
13995 xorg_cv_cc_flag_unknown_warning_option=no
13996 fi
13997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13998 fi
13999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14000 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14001 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14002 CFLAGS="$xorg_testset_save_CFLAGS"
14003 fi
14004
14005 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14006 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14007 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14008 fi
14009 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14011 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14012 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14013 $as_echo_n "(cached) " >&6
14014 else
14015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14016 /* end confdefs.h. */
14017 int i;
14018 _ACEOF
14019 if ac_fn_c_try_compile "$LINENO"; then :
14020 xorg_cv_cc_flag_unused_command_line_argument=yes
14021 else
14022 xorg_cv_cc_flag_unused_command_line_argument=no
14023 fi
14024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14025 fi
14026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14027 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14028 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14029 CFLAGS="$xorg_testset_save_CFLAGS"
14030 fi
14031
14032 found="no"
14033
14034 if test $found = "no" ; then
14035 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14036 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14037 fi
14038
14039 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14040 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14041 fi
14042
14043 CFLAGS="$CFLAGS -Wshadow"
14044
14045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
14046 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
14047 cacheid=xorg_cv_cc_flag__Wshadow
14048 if eval \${$cacheid+:} false; then :
14049 $as_echo_n "(cached) " >&6
14050 else
14051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14052 /* end confdefs.h. */
14053 int i;
14054 int
14055 main ()
14056 {
14057
14058 ;
14059 return 0;
14060 }
14061 _ACEOF
14062 if ac_fn_c_try_link "$LINENO"; then :
14063 eval $cacheid=yes
14064 else
14065 eval $cacheid=no
14066 fi
14067 rm -f core conftest.err conftest.$ac_objext \
14068 conftest$ac_exeext conftest.$ac_ext
14069 fi
14070
14071
14072 CFLAGS="$xorg_testset_save_CFLAGS"
14073
14074 eval supported=\$$cacheid
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14076 $as_echo "$supported" >&6; }
14077 if test "$supported" = "yes" ; then
14078 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
14079 found="yes"
14080 fi
14081 fi
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093
14094
14095
14096
14097 xorg_testset_save_CFLAGS="$CFLAGS"
14098
14099 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14100 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14102 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14103 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14104 $as_echo_n "(cached) " >&6
14105 else
14106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14107 /* end confdefs.h. */
14108 int i;
14109 _ACEOF
14110 if ac_fn_c_try_compile "$LINENO"; then :
14111 xorg_cv_cc_flag_unknown_warning_option=yes
14112 else
14113 xorg_cv_cc_flag_unknown_warning_option=no
14114 fi
14115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14116 fi
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14118 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14119 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14120 CFLAGS="$xorg_testset_save_CFLAGS"
14121 fi
14122
14123 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14124 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14125 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14126 fi
14127 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14129 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14130 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14131 $as_echo_n "(cached) " >&6
14132 else
14133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14134 /* end confdefs.h. */
14135 int i;
14136 _ACEOF
14137 if ac_fn_c_try_compile "$LINENO"; then :
14138 xorg_cv_cc_flag_unused_command_line_argument=yes
14139 else
14140 xorg_cv_cc_flag_unused_command_line_argument=no
14141 fi
14142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14143 fi
14144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14145 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14146 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14147 CFLAGS="$xorg_testset_save_CFLAGS"
14148 fi
14149
14150 found="no"
14151
14152 if test $found = "no" ; then
14153 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14154 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14155 fi
14156
14157 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14158 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14159 fi
14160
14161 CFLAGS="$CFLAGS -Wmissing-noreturn"
14162
14163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
14164 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
14165 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
14166 if eval \${$cacheid+:} false; then :
14167 $as_echo_n "(cached) " >&6
14168 else
14169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14170 /* end confdefs.h. */
14171 int i;
14172 int
14173 main ()
14174 {
14175
14176 ;
14177 return 0;
14178 }
14179 _ACEOF
14180 if ac_fn_c_try_link "$LINENO"; then :
14181 eval $cacheid=yes
14182 else
14183 eval $cacheid=no
14184 fi
14185 rm -f core conftest.err conftest.$ac_objext \
14186 conftest$ac_exeext conftest.$ac_ext
14187 fi
14188
14189
14190 CFLAGS="$xorg_testset_save_CFLAGS"
14191
14192 eval supported=\$$cacheid
14193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14194 $as_echo "$supported" >&6; }
14195 if test "$supported" = "yes" ; then
14196 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
14197 found="yes"
14198 fi
14199 fi
14200
14201
14202
14203
14204
14205
14206
14207
14208
14209
14210
14211
14212
14213
14214
14215 xorg_testset_save_CFLAGS="$CFLAGS"
14216
14217 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14218 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14220 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14221 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14222 $as_echo_n "(cached) " >&6
14223 else
14224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14225 /* end confdefs.h. */
14226 int i;
14227 _ACEOF
14228 if ac_fn_c_try_compile "$LINENO"; then :
14229 xorg_cv_cc_flag_unknown_warning_option=yes
14230 else
14231 xorg_cv_cc_flag_unknown_warning_option=no
14232 fi
14233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14234 fi
14235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14236 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14237 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14238 CFLAGS="$xorg_testset_save_CFLAGS"
14239 fi
14240
14241 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14242 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14243 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14244 fi
14245 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14247 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14248 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14249 $as_echo_n "(cached) " >&6
14250 else
14251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14252 /* end confdefs.h. */
14253 int i;
14254 _ACEOF
14255 if ac_fn_c_try_compile "$LINENO"; then :
14256 xorg_cv_cc_flag_unused_command_line_argument=yes
14257 else
14258 xorg_cv_cc_flag_unused_command_line_argument=no
14259 fi
14260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14261 fi
14262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14263 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14264 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14265 CFLAGS="$xorg_testset_save_CFLAGS"
14266 fi
14267
14268 found="no"
14269
14270 if test $found = "no" ; then
14271 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14272 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14273 fi
14274
14275 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14276 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14277 fi
14278
14279 CFLAGS="$CFLAGS -Wmissing-format-attribute"
14280
14281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
14282 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
14283 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
14284 if eval \${$cacheid+:} false; then :
14285 $as_echo_n "(cached) " >&6
14286 else
14287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14288 /* end confdefs.h. */
14289 int i;
14290 int
14291 main ()
14292 {
14293
14294 ;
14295 return 0;
14296 }
14297 _ACEOF
14298 if ac_fn_c_try_link "$LINENO"; then :
14299 eval $cacheid=yes
14300 else
14301 eval $cacheid=no
14302 fi
14303 rm -f core conftest.err conftest.$ac_objext \
14304 conftest$ac_exeext conftest.$ac_ext
14305 fi
14306
14307
14308 CFLAGS="$xorg_testset_save_CFLAGS"
14309
14310 eval supported=\$$cacheid
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14312 $as_echo "$supported" >&6; }
14313 if test "$supported" = "yes" ; then
14314 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
14315 found="yes"
14316 fi
14317 fi
14318
14319
14320
14321
14322
14323
14324
14325
14326
14327
14328
14329
14330
14331
14332
14333 xorg_testset_save_CFLAGS="$CFLAGS"
14334
14335 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14336 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14338 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14339 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14340 $as_echo_n "(cached) " >&6
14341 else
14342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14343 /* end confdefs.h. */
14344 int i;
14345 _ACEOF
14346 if ac_fn_c_try_compile "$LINENO"; then :
14347 xorg_cv_cc_flag_unknown_warning_option=yes
14348 else
14349 xorg_cv_cc_flag_unknown_warning_option=no
14350 fi
14351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14352 fi
14353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14354 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14355 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14356 CFLAGS="$xorg_testset_save_CFLAGS"
14357 fi
14358
14359 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14360 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14361 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14362 fi
14363 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14365 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14366 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14367 $as_echo_n "(cached) " >&6
14368 else
14369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14370 /* end confdefs.h. */
14371 int i;
14372 _ACEOF
14373 if ac_fn_c_try_compile "$LINENO"; then :
14374 xorg_cv_cc_flag_unused_command_line_argument=yes
14375 else
14376 xorg_cv_cc_flag_unused_command_line_argument=no
14377 fi
14378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14379 fi
14380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14381 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14382 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14383 CFLAGS="$xorg_testset_save_CFLAGS"
14384 fi
14385
14386 found="no"
14387
14388 if test $found = "no" ; then
14389 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14390 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14391 fi
14392
14393 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14394 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14395 fi
14396
14397 CFLAGS="$CFLAGS -Wredundant-decls"
14398
14399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
14400 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
14401 cacheid=xorg_cv_cc_flag__Wredundant_decls
14402 if eval \${$cacheid+:} false; then :
14403 $as_echo_n "(cached) " >&6
14404 else
14405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14406 /* end confdefs.h. */
14407 int i;
14408 int
14409 main ()
14410 {
14411
14412 ;
14413 return 0;
14414 }
14415 _ACEOF
14416 if ac_fn_c_try_link "$LINENO"; then :
14417 eval $cacheid=yes
14418 else
14419 eval $cacheid=no
14420 fi
14421 rm -f core conftest.err conftest.$ac_objext \
14422 conftest$ac_exeext conftest.$ac_ext
14423 fi
14424
14425
14426 CFLAGS="$xorg_testset_save_CFLAGS"
14427
14428 eval supported=\$$cacheid
14429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14430 $as_echo "$supported" >&6; }
14431 if test "$supported" = "yes" ; then
14432 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
14433 found="yes"
14434 fi
14435 fi
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445
14446
14447
14448
14449
14450
14451 xorg_testset_save_CFLAGS="$CFLAGS"
14452
14453 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14454 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14456 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14457 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14458 $as_echo_n "(cached) " >&6
14459 else
14460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14461 /* end confdefs.h. */
14462 int i;
14463 _ACEOF
14464 if ac_fn_c_try_compile "$LINENO"; then :
14465 xorg_cv_cc_flag_unknown_warning_option=yes
14466 else
14467 xorg_cv_cc_flag_unknown_warning_option=no
14468 fi
14469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14470 fi
14471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14472 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14473 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14474 CFLAGS="$xorg_testset_save_CFLAGS"
14475 fi
14476
14477 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14478 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14479 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14480 fi
14481 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14483 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14484 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14485 $as_echo_n "(cached) " >&6
14486 else
14487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14488 /* end confdefs.h. */
14489 int i;
14490 _ACEOF
14491 if ac_fn_c_try_compile "$LINENO"; then :
14492 xorg_cv_cc_flag_unused_command_line_argument=yes
14493 else
14494 xorg_cv_cc_flag_unused_command_line_argument=no
14495 fi
14496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14497 fi
14498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14499 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14500 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14501 CFLAGS="$xorg_testset_save_CFLAGS"
14502 fi
14503
14504 found="no"
14505
14506 if test $found = "no" ; then
14507 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14508 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14509 fi
14510
14511 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14512 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14513 fi
14514
14515 CFLAGS="$CFLAGS -Wlogical-op"
14516
14517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
14518 $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
14519 cacheid=xorg_cv_cc_flag__Wlogical_op
14520 if eval \${$cacheid+:} false; then :
14521 $as_echo_n "(cached) " >&6
14522 else
14523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14524 /* end confdefs.h. */
14525 int i;
14526 int
14527 main ()
14528 {
14529
14530 ;
14531 return 0;
14532 }
14533 _ACEOF
14534 if ac_fn_c_try_link "$LINENO"; then :
14535 eval $cacheid=yes
14536 else
14537 eval $cacheid=no
14538 fi
14539 rm -f core conftest.err conftest.$ac_objext \
14540 conftest$ac_exeext conftest.$ac_ext
14541 fi
14542
14543
14544 CFLAGS="$xorg_testset_save_CFLAGS"
14545
14546 eval supported=\$$cacheid
14547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14548 $as_echo "$supported" >&6; }
14549 if test "$supported" = "yes" ; then
14550 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
14551 found="yes"
14552 fi
14553 fi
14554
14555
14556
14557 # These are currently disabled because they are noisy. They will be enabled
14558 # in the future once the codebase is sufficiently modernized to silence
14559 # them. For now, I don't want them to drown out the other warnings.
14560 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
14561 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
14562 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
14563
14564 # Turn some warnings into errors, so we don't accidently get successful builds
14565 # when there are problems that should be fixed.
14566
14567 if test "x$SELECTIVE_WERROR" = "xyes" ; then
14568
14569
14570
14571
14572
14573
14574
14575
14576
14577
14578
14579
14580
14581 xorg_testset_save_CFLAGS="$CFLAGS"
14582
14583 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14584 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14586 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14587 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14588 $as_echo_n "(cached) " >&6
14589 else
14590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14591 /* end confdefs.h. */
14592 int i;
14593 _ACEOF
14594 if ac_fn_c_try_compile "$LINENO"; then :
14595 xorg_cv_cc_flag_unknown_warning_option=yes
14596 else
14597 xorg_cv_cc_flag_unknown_warning_option=no
14598 fi
14599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14600 fi
14601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14602 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14603 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14604 CFLAGS="$xorg_testset_save_CFLAGS"
14605 fi
14606
14607 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14608 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14609 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14610 fi
14611 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14613 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14614 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14615 $as_echo_n "(cached) " >&6
14616 else
14617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14618 /* end confdefs.h. */
14619 int i;
14620 _ACEOF
14621 if ac_fn_c_try_compile "$LINENO"; then :
14622 xorg_cv_cc_flag_unused_command_line_argument=yes
14623 else
14624 xorg_cv_cc_flag_unused_command_line_argument=no
14625 fi
14626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14627 fi
14628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14629 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14630 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14631 CFLAGS="$xorg_testset_save_CFLAGS"
14632 fi
14633
14634 found="no"
14635
14636 if test $found = "no" ; then
14637 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14638 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14639 fi
14640
14641 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14642 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14643 fi
14644
14645 CFLAGS="$CFLAGS -Werror=implicit"
14646
14647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
14648 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
14649 cacheid=xorg_cv_cc_flag__Werror_implicit
14650 if eval \${$cacheid+:} false; then :
14651 $as_echo_n "(cached) " >&6
14652 else
14653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14654 /* end confdefs.h. */
14655 int i;
14656 int
14657 main ()
14658 {
14659
14660 ;
14661 return 0;
14662 }
14663 _ACEOF
14664 if ac_fn_c_try_link "$LINENO"; then :
14665 eval $cacheid=yes
14666 else
14667 eval $cacheid=no
14668 fi
14669 rm -f core conftest.err conftest.$ac_objext \
14670 conftest$ac_exeext conftest.$ac_ext
14671 fi
14672
14673
14674 CFLAGS="$xorg_testset_save_CFLAGS"
14675
14676 eval supported=\$$cacheid
14677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14678 $as_echo "$supported" >&6; }
14679 if test "$supported" = "yes" ; then
14680 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
14681 found="yes"
14682 fi
14683 fi
14684
14685 if test $found = "no" ; then
14686 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14687 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14688 fi
14689
14690 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14691 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14692 fi
14693
14694 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14695
14696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
14697 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
14698 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
14699 if eval \${$cacheid+:} false; then :
14700 $as_echo_n "(cached) " >&6
14701 else
14702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14703 /* end confdefs.h. */
14704 int i;
14705 int
14706 main ()
14707 {
14708
14709 ;
14710 return 0;
14711 }
14712 _ACEOF
14713 if ac_fn_c_try_link "$LINENO"; then :
14714 eval $cacheid=yes
14715 else
14716 eval $cacheid=no
14717 fi
14718 rm -f core conftest.err conftest.$ac_objext \
14719 conftest$ac_exeext conftest.$ac_ext
14720 fi
14721
14722
14723 CFLAGS="$xorg_testset_save_CFLAGS"
14724
14725 eval supported=\$$cacheid
14726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14727 $as_echo "$supported" >&6; }
14728 if test "$supported" = "yes" ; then
14729 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14730 found="yes"
14731 fi
14732 fi
14733
14734
14735
14736
14737
14738
14739
14740
14741
14742
14743
14744
14745
14746
14747
14748 xorg_testset_save_CFLAGS="$CFLAGS"
14749
14750 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14751 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14753 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14754 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14755 $as_echo_n "(cached) " >&6
14756 else
14757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14758 /* end confdefs.h. */
14759 int i;
14760 _ACEOF
14761 if ac_fn_c_try_compile "$LINENO"; then :
14762 xorg_cv_cc_flag_unknown_warning_option=yes
14763 else
14764 xorg_cv_cc_flag_unknown_warning_option=no
14765 fi
14766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14767 fi
14768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14769 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14770 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14771 CFLAGS="$xorg_testset_save_CFLAGS"
14772 fi
14773
14774 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14775 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14776 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14777 fi
14778 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14780 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14781 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14782 $as_echo_n "(cached) " >&6
14783 else
14784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14785 /* end confdefs.h. */
14786 int i;
14787 _ACEOF
14788 if ac_fn_c_try_compile "$LINENO"; then :
14789 xorg_cv_cc_flag_unused_command_line_argument=yes
14790 else
14791 xorg_cv_cc_flag_unused_command_line_argument=no
14792 fi
14793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14794 fi
14795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14796 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14797 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14798 CFLAGS="$xorg_testset_save_CFLAGS"
14799 fi
14800
14801 found="no"
14802
14803 if test $found = "no" ; then
14804 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14805 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14806 fi
14807
14808 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14809 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14810 fi
14811
14812 CFLAGS="$CFLAGS -Werror=nonnull"
14813
14814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
14815 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
14816 cacheid=xorg_cv_cc_flag__Werror_nonnull
14817 if eval \${$cacheid+:} false; then :
14818 $as_echo_n "(cached) " >&6
14819 else
14820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14821 /* end confdefs.h. */
14822 int i;
14823 int
14824 main ()
14825 {
14826
14827 ;
14828 return 0;
14829 }
14830 _ACEOF
14831 if ac_fn_c_try_link "$LINENO"; then :
14832 eval $cacheid=yes
14833 else
14834 eval $cacheid=no
14835 fi
14836 rm -f core conftest.err conftest.$ac_objext \
14837 conftest$ac_exeext conftest.$ac_ext
14838 fi
14839
14840
14841 CFLAGS="$xorg_testset_save_CFLAGS"
14842
14843 eval supported=\$$cacheid
14844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14845 $as_echo "$supported" >&6; }
14846 if test "$supported" = "yes" ; then
14847 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
14848 found="yes"
14849 fi
14850 fi
14851
14852
14853
14854
14855
14856
14857
14858
14859
14860
14861
14862
14863
14864
14865
14866 xorg_testset_save_CFLAGS="$CFLAGS"
14867
14868 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14869 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14871 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14872 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14873 $as_echo_n "(cached) " >&6
14874 else
14875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14876 /* end confdefs.h. */
14877 int i;
14878 _ACEOF
14879 if ac_fn_c_try_compile "$LINENO"; then :
14880 xorg_cv_cc_flag_unknown_warning_option=yes
14881 else
14882 xorg_cv_cc_flag_unknown_warning_option=no
14883 fi
14884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14885 fi
14886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14887 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14888 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14889 CFLAGS="$xorg_testset_save_CFLAGS"
14890 fi
14891
14892 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14893 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14894 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14895 fi
14896 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14898 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14899 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14900 $as_echo_n "(cached) " >&6
14901 else
14902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14903 /* end confdefs.h. */
14904 int i;
14905 _ACEOF
14906 if ac_fn_c_try_compile "$LINENO"; then :
14907 xorg_cv_cc_flag_unused_command_line_argument=yes
14908 else
14909 xorg_cv_cc_flag_unused_command_line_argument=no
14910 fi
14911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14912 fi
14913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14914 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14915 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14916 CFLAGS="$xorg_testset_save_CFLAGS"
14917 fi
14918
14919 found="no"
14920
14921 if test $found = "no" ; then
14922 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14923 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14924 fi
14925
14926 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14927 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14928 fi
14929
14930 CFLAGS="$CFLAGS -Werror=init-self"
14931
14932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
14933 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
14934 cacheid=xorg_cv_cc_flag__Werror_init_self
14935 if eval \${$cacheid+:} false; then :
14936 $as_echo_n "(cached) " >&6
14937 else
14938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14939 /* end confdefs.h. */
14940 int i;
14941 int
14942 main ()
14943 {
14944
14945 ;
14946 return 0;
14947 }
14948 _ACEOF
14949 if ac_fn_c_try_link "$LINENO"; then :
14950 eval $cacheid=yes
14951 else
14952 eval $cacheid=no
14953 fi
14954 rm -f core conftest.err conftest.$ac_objext \
14955 conftest$ac_exeext conftest.$ac_ext
14956 fi
14957
14958
14959 CFLAGS="$xorg_testset_save_CFLAGS"
14960
14961 eval supported=\$$cacheid
14962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14963 $as_echo "$supported" >&6; }
14964 if test "$supported" = "yes" ; then
14965 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
14966 found="yes"
14967 fi
14968 fi
14969
14970
14971
14972
14973
14974
14975
14976
14977
14978
14979
14980
14981
14982
14983
14984 xorg_testset_save_CFLAGS="$CFLAGS"
14985
14986 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14987 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14989 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14990 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14991 $as_echo_n "(cached) " >&6
14992 else
14993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14994 /* end confdefs.h. */
14995 int i;
14996 _ACEOF
14997 if ac_fn_c_try_compile "$LINENO"; then :
14998 xorg_cv_cc_flag_unknown_warning_option=yes
14999 else
15000 xorg_cv_cc_flag_unknown_warning_option=no
15001 fi
15002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15003 fi
15004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15005 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15006 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15007 CFLAGS="$xorg_testset_save_CFLAGS"
15008 fi
15009
15010 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15011 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15012 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15013 fi
15014 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15016 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15017 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15018 $as_echo_n "(cached) " >&6
15019 else
15020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15021 /* end confdefs.h. */
15022 int i;
15023 _ACEOF
15024 if ac_fn_c_try_compile "$LINENO"; then :
15025 xorg_cv_cc_flag_unused_command_line_argument=yes
15026 else
15027 xorg_cv_cc_flag_unused_command_line_argument=no
15028 fi
15029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15030 fi
15031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15032 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15033 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15034 CFLAGS="$xorg_testset_save_CFLAGS"
15035 fi
15036
15037 found="no"
15038
15039 if test $found = "no" ; then
15040 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15041 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15042 fi
15043
15044 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15045 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15046 fi
15047
15048 CFLAGS="$CFLAGS -Werror=main"
15049
15050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
15051 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
15052 cacheid=xorg_cv_cc_flag__Werror_main
15053 if eval \${$cacheid+:} false; then :
15054 $as_echo_n "(cached) " >&6
15055 else
15056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15057 /* end confdefs.h. */
15058 int i;
15059 int
15060 main ()
15061 {
15062
15063 ;
15064 return 0;
15065 }
15066 _ACEOF
15067 if ac_fn_c_try_link "$LINENO"; then :
15068 eval $cacheid=yes
15069 else
15070 eval $cacheid=no
15071 fi
15072 rm -f core conftest.err conftest.$ac_objext \
15073 conftest$ac_exeext conftest.$ac_ext
15074 fi
15075
15076
15077 CFLAGS="$xorg_testset_save_CFLAGS"
15078
15079 eval supported=\$$cacheid
15080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15081 $as_echo "$supported" >&6; }
15082 if test "$supported" = "yes" ; then
15083 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
15084 found="yes"
15085 fi
15086 fi
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102 xorg_testset_save_CFLAGS="$CFLAGS"
15103
15104 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15105 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15107 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15108 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15109 $as_echo_n "(cached) " >&6
15110 else
15111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15112 /* end confdefs.h. */
15113 int i;
15114 _ACEOF
15115 if ac_fn_c_try_compile "$LINENO"; then :
15116 xorg_cv_cc_flag_unknown_warning_option=yes
15117 else
15118 xorg_cv_cc_flag_unknown_warning_option=no
15119 fi
15120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15121 fi
15122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15123 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15124 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15125 CFLAGS="$xorg_testset_save_CFLAGS"
15126 fi
15127
15128 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15129 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15130 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15131 fi
15132 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15134 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15135 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15136 $as_echo_n "(cached) " >&6
15137 else
15138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15139 /* end confdefs.h. */
15140 int i;
15141 _ACEOF
15142 if ac_fn_c_try_compile "$LINENO"; then :
15143 xorg_cv_cc_flag_unused_command_line_argument=yes
15144 else
15145 xorg_cv_cc_flag_unused_command_line_argument=no
15146 fi
15147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15148 fi
15149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15150 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15151 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15152 CFLAGS="$xorg_testset_save_CFLAGS"
15153 fi
15154
15155 found="no"
15156
15157 if test $found = "no" ; then
15158 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15159 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15160 fi
15161
15162 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15163 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15164 fi
15165
15166 CFLAGS="$CFLAGS -Werror=missing-braces"
15167
15168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
15169 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
15170 cacheid=xorg_cv_cc_flag__Werror_missing_braces
15171 if eval \${$cacheid+:} false; then :
15172 $as_echo_n "(cached) " >&6
15173 else
15174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15175 /* end confdefs.h. */
15176 int i;
15177 int
15178 main ()
15179 {
15180
15181 ;
15182 return 0;
15183 }
15184 _ACEOF
15185 if ac_fn_c_try_link "$LINENO"; then :
15186 eval $cacheid=yes
15187 else
15188 eval $cacheid=no
15189 fi
15190 rm -f core conftest.err conftest.$ac_objext \
15191 conftest$ac_exeext conftest.$ac_ext
15192 fi
15193
15194
15195 CFLAGS="$xorg_testset_save_CFLAGS"
15196
15197 eval supported=\$$cacheid
15198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15199 $as_echo "$supported" >&6; }
15200 if test "$supported" = "yes" ; then
15201 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
15202 found="yes"
15203 fi
15204 fi
15205
15206
15207
15208
15209
15210
15211
15212
15213
15214
15215
15216
15217
15218
15219
15220 xorg_testset_save_CFLAGS="$CFLAGS"
15221
15222 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15223 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15225 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15226 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15227 $as_echo_n "(cached) " >&6
15228 else
15229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15230 /* end confdefs.h. */
15231 int i;
15232 _ACEOF
15233 if ac_fn_c_try_compile "$LINENO"; then :
15234 xorg_cv_cc_flag_unknown_warning_option=yes
15235 else
15236 xorg_cv_cc_flag_unknown_warning_option=no
15237 fi
15238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15239 fi
15240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15241 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15242 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15243 CFLAGS="$xorg_testset_save_CFLAGS"
15244 fi
15245
15246 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15247 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15248 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15249 fi
15250 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15252 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15253 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15254 $as_echo_n "(cached) " >&6
15255 else
15256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15257 /* end confdefs.h. */
15258 int i;
15259 _ACEOF
15260 if ac_fn_c_try_compile "$LINENO"; then :
15261 xorg_cv_cc_flag_unused_command_line_argument=yes
15262 else
15263 xorg_cv_cc_flag_unused_command_line_argument=no
15264 fi
15265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15266 fi
15267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15268 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15269 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15270 CFLAGS="$xorg_testset_save_CFLAGS"
15271 fi
15272
15273 found="no"
15274
15275 if test $found = "no" ; then
15276 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15277 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15278 fi
15279
15280 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15281 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15282 fi
15283
15284 CFLAGS="$CFLAGS -Werror=sequence-point"
15285
15286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
15287 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
15288 cacheid=xorg_cv_cc_flag__Werror_sequence_point
15289 if eval \${$cacheid+:} false; then :
15290 $as_echo_n "(cached) " >&6
15291 else
15292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15293 /* end confdefs.h. */
15294 int i;
15295 int
15296 main ()
15297 {
15298
15299 ;
15300 return 0;
15301 }
15302 _ACEOF
15303 if ac_fn_c_try_link "$LINENO"; then :
15304 eval $cacheid=yes
15305 else
15306 eval $cacheid=no
15307 fi
15308 rm -f core conftest.err conftest.$ac_objext \
15309 conftest$ac_exeext conftest.$ac_ext
15310 fi
15311
15312
15313 CFLAGS="$xorg_testset_save_CFLAGS"
15314
15315 eval supported=\$$cacheid
15316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15317 $as_echo "$supported" >&6; }
15318 if test "$supported" = "yes" ; then
15319 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
15320 found="yes"
15321 fi
15322 fi
15323
15324
15325
15326
15327
15328
15329
15330
15331
15332
15333
15334
15335
15336
15337
15338 xorg_testset_save_CFLAGS="$CFLAGS"
15339
15340 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15341 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15343 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15344 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15345 $as_echo_n "(cached) " >&6
15346 else
15347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15348 /* end confdefs.h. */
15349 int i;
15350 _ACEOF
15351 if ac_fn_c_try_compile "$LINENO"; then :
15352 xorg_cv_cc_flag_unknown_warning_option=yes
15353 else
15354 xorg_cv_cc_flag_unknown_warning_option=no
15355 fi
15356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15357 fi
15358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15359 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15360 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15361 CFLAGS="$xorg_testset_save_CFLAGS"
15362 fi
15363
15364 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15365 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15366 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15367 fi
15368 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15370 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15371 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15372 $as_echo_n "(cached) " >&6
15373 else
15374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15375 /* end confdefs.h. */
15376 int i;
15377 _ACEOF
15378 if ac_fn_c_try_compile "$LINENO"; then :
15379 xorg_cv_cc_flag_unused_command_line_argument=yes
15380 else
15381 xorg_cv_cc_flag_unused_command_line_argument=no
15382 fi
15383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15384 fi
15385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15386 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15387 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15388 CFLAGS="$xorg_testset_save_CFLAGS"
15389 fi
15390
15391 found="no"
15392
15393 if test $found = "no" ; then
15394 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15395 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15396 fi
15397
15398 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15399 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15400 fi
15401
15402 CFLAGS="$CFLAGS -Werror=return-type"
15403
15404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
15405 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
15406 cacheid=xorg_cv_cc_flag__Werror_return_type
15407 if eval \${$cacheid+:} false; then :
15408 $as_echo_n "(cached) " >&6
15409 else
15410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15411 /* end confdefs.h. */
15412 int i;
15413 int
15414 main ()
15415 {
15416
15417 ;
15418 return 0;
15419 }
15420 _ACEOF
15421 if ac_fn_c_try_link "$LINENO"; then :
15422 eval $cacheid=yes
15423 else
15424 eval $cacheid=no
15425 fi
15426 rm -f core conftest.err conftest.$ac_objext \
15427 conftest$ac_exeext conftest.$ac_ext
15428 fi
15429
15430
15431 CFLAGS="$xorg_testset_save_CFLAGS"
15432
15433 eval supported=\$$cacheid
15434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15435 $as_echo "$supported" >&6; }
15436 if test "$supported" = "yes" ; then
15437 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
15438 found="yes"
15439 fi
15440 fi
15441
15442 if test $found = "no" ; then
15443 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15444 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15445 fi
15446
15447 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15448 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15449 fi
15450
15451 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
15452
15453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
15454 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
15455 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
15456 if eval \${$cacheid+:} false; then :
15457 $as_echo_n "(cached) " >&6
15458 else
15459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15460 /* end confdefs.h. */
15461 int i;
15462 int
15463 main ()
15464 {
15465
15466 ;
15467 return 0;
15468 }
15469 _ACEOF
15470 if ac_fn_c_try_link "$LINENO"; then :
15471 eval $cacheid=yes
15472 else
15473 eval $cacheid=no
15474 fi
15475 rm -f core conftest.err conftest.$ac_objext \
15476 conftest$ac_exeext conftest.$ac_ext
15477 fi
15478
15479
15480 CFLAGS="$xorg_testset_save_CFLAGS"
15481
15482 eval supported=\$$cacheid
15483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15484 $as_echo "$supported" >&6; }
15485 if test "$supported" = "yes" ; then
15486 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
15487 found="yes"
15488 fi
15489 fi
15490
15491
15492
15493
15494
15495
15496
15497
15498
15499
15500
15501
15502
15503
15504
15505 xorg_testset_save_CFLAGS="$CFLAGS"
15506
15507 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15508 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15510 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15511 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15512 $as_echo_n "(cached) " >&6
15513 else
15514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15515 /* end confdefs.h. */
15516 int i;
15517 _ACEOF
15518 if ac_fn_c_try_compile "$LINENO"; then :
15519 xorg_cv_cc_flag_unknown_warning_option=yes
15520 else
15521 xorg_cv_cc_flag_unknown_warning_option=no
15522 fi
15523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15524 fi
15525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15526 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15527 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15528 CFLAGS="$xorg_testset_save_CFLAGS"
15529 fi
15530
15531 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15532 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15533 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15534 fi
15535 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15537 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15538 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15539 $as_echo_n "(cached) " >&6
15540 else
15541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15542 /* end confdefs.h. */
15543 int i;
15544 _ACEOF
15545 if ac_fn_c_try_compile "$LINENO"; then :
15546 xorg_cv_cc_flag_unused_command_line_argument=yes
15547 else
15548 xorg_cv_cc_flag_unused_command_line_argument=no
15549 fi
15550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15551 fi
15552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15553 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15554 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15555 CFLAGS="$xorg_testset_save_CFLAGS"
15556 fi
15557
15558 found="no"
15559
15560 if test $found = "no" ; then
15561 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15562 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15563 fi
15564
15565 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15566 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15567 fi
15568
15569 CFLAGS="$CFLAGS -Werror=trigraphs"
15570
15571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
15572 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
15573 cacheid=xorg_cv_cc_flag__Werror_trigraphs
15574 if eval \${$cacheid+:} false; then :
15575 $as_echo_n "(cached) " >&6
15576 else
15577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15578 /* end confdefs.h. */
15579 int i;
15580 int
15581 main ()
15582 {
15583
15584 ;
15585 return 0;
15586 }
15587 _ACEOF
15588 if ac_fn_c_try_link "$LINENO"; then :
15589 eval $cacheid=yes
15590 else
15591 eval $cacheid=no
15592 fi
15593 rm -f core conftest.err conftest.$ac_objext \
15594 conftest$ac_exeext conftest.$ac_ext
15595 fi
15596
15597
15598 CFLAGS="$xorg_testset_save_CFLAGS"
15599
15600 eval supported=\$$cacheid
15601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15602 $as_echo "$supported" >&6; }
15603 if test "$supported" = "yes" ; then
15604 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
15605 found="yes"
15606 fi
15607 fi
15608
15609
15610
15611
15612
15613
15614
15615
15616
15617
15618
15619
15620
15621
15622
15623 xorg_testset_save_CFLAGS="$CFLAGS"
15624
15625 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15626 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15628 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15629 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15630 $as_echo_n "(cached) " >&6
15631 else
15632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15633 /* end confdefs.h. */
15634 int i;
15635 _ACEOF
15636 if ac_fn_c_try_compile "$LINENO"; then :
15637 xorg_cv_cc_flag_unknown_warning_option=yes
15638 else
15639 xorg_cv_cc_flag_unknown_warning_option=no
15640 fi
15641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15642 fi
15643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15644 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15645 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15646 CFLAGS="$xorg_testset_save_CFLAGS"
15647 fi
15648
15649 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15650 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15651 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15652 fi
15653 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15655 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15656 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15657 $as_echo_n "(cached) " >&6
15658 else
15659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15660 /* end confdefs.h. */
15661 int i;
15662 _ACEOF
15663 if ac_fn_c_try_compile "$LINENO"; then :
15664 xorg_cv_cc_flag_unused_command_line_argument=yes
15665 else
15666 xorg_cv_cc_flag_unused_command_line_argument=no
15667 fi
15668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15669 fi
15670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15671 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15672 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15673 CFLAGS="$xorg_testset_save_CFLAGS"
15674 fi
15675
15676 found="no"
15677
15678 if test $found = "no" ; then
15679 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15680 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15681 fi
15682
15683 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15684 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15685 fi
15686
15687 CFLAGS="$CFLAGS -Werror=array-bounds"
15688
15689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
15690 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
15691 cacheid=xorg_cv_cc_flag__Werror_array_bounds
15692 if eval \${$cacheid+:} false; then :
15693 $as_echo_n "(cached) " >&6
15694 else
15695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15696 /* end confdefs.h. */
15697 int i;
15698 int
15699 main ()
15700 {
15701
15702 ;
15703 return 0;
15704 }
15705 _ACEOF
15706 if ac_fn_c_try_link "$LINENO"; then :
15707 eval $cacheid=yes
15708 else
15709 eval $cacheid=no
15710 fi
15711 rm -f core conftest.err conftest.$ac_objext \
15712 conftest$ac_exeext conftest.$ac_ext
15713 fi
15714
15715
15716 CFLAGS="$xorg_testset_save_CFLAGS"
15717
15718 eval supported=\$$cacheid
15719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15720 $as_echo "$supported" >&6; }
15721 if test "$supported" = "yes" ; then
15722 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
15723 found="yes"
15724 fi
15725 fi
15726
15727
15728
15729
15730
15731
15732
15733
15734
15735
15736
15737
15738
15739
15740
15741 xorg_testset_save_CFLAGS="$CFLAGS"
15742
15743 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15744 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15746 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15747 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15748 $as_echo_n "(cached) " >&6
15749 else
15750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15751 /* end confdefs.h. */
15752 int i;
15753 _ACEOF
15754 if ac_fn_c_try_compile "$LINENO"; then :
15755 xorg_cv_cc_flag_unknown_warning_option=yes
15756 else
15757 xorg_cv_cc_flag_unknown_warning_option=no
15758 fi
15759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15760 fi
15761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15762 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15763 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15764 CFLAGS="$xorg_testset_save_CFLAGS"
15765 fi
15766
15767 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15768 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15769 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15770 fi
15771 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15773 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15774 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15775 $as_echo_n "(cached) " >&6
15776 else
15777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15778 /* end confdefs.h. */
15779 int i;
15780 _ACEOF
15781 if ac_fn_c_try_compile "$LINENO"; then :
15782 xorg_cv_cc_flag_unused_command_line_argument=yes
15783 else
15784 xorg_cv_cc_flag_unused_command_line_argument=no
15785 fi
15786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15787 fi
15788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15789 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15790 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15791 CFLAGS="$xorg_testset_save_CFLAGS"
15792 fi
15793
15794 found="no"
15795
15796 if test $found = "no" ; then
15797 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15798 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15799 fi
15800
15801 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15802 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15803 fi
15804
15805 CFLAGS="$CFLAGS -Werror=write-strings"
15806
15807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
15808 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
15809 cacheid=xorg_cv_cc_flag__Werror_write_strings
15810 if eval \${$cacheid+:} false; then :
15811 $as_echo_n "(cached) " >&6
15812 else
15813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15814 /* end confdefs.h. */
15815 int i;
15816 int
15817 main ()
15818 {
15819
15820 ;
15821 return 0;
15822 }
15823 _ACEOF
15824 if ac_fn_c_try_link "$LINENO"; then :
15825 eval $cacheid=yes
15826 else
15827 eval $cacheid=no
15828 fi
15829 rm -f core conftest.err conftest.$ac_objext \
15830 conftest$ac_exeext conftest.$ac_ext
15831 fi
15832
15833
15834 CFLAGS="$xorg_testset_save_CFLAGS"
15835
15836 eval supported=\$$cacheid
15837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15838 $as_echo "$supported" >&6; }
15839 if test "$supported" = "yes" ; then
15840 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
15841 found="yes"
15842 fi
15843 fi
15844
15845
15846
15847
15848
15849
15850
15851
15852
15853
15854
15855
15856
15857
15858
15859 xorg_testset_save_CFLAGS="$CFLAGS"
15860
15861 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15862 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15864 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15865 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15866 $as_echo_n "(cached) " >&6
15867 else
15868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15869 /* end confdefs.h. */
15870 int i;
15871 _ACEOF
15872 if ac_fn_c_try_compile "$LINENO"; then :
15873 xorg_cv_cc_flag_unknown_warning_option=yes
15874 else
15875 xorg_cv_cc_flag_unknown_warning_option=no
15876 fi
15877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15878 fi
15879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15880 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15881 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15882 CFLAGS="$xorg_testset_save_CFLAGS"
15883 fi
15884
15885 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15886 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15887 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15888 fi
15889 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15891 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15892 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15893 $as_echo_n "(cached) " >&6
15894 else
15895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15896 /* end confdefs.h. */
15897 int i;
15898 _ACEOF
15899 if ac_fn_c_try_compile "$LINENO"; then :
15900 xorg_cv_cc_flag_unused_command_line_argument=yes
15901 else
15902 xorg_cv_cc_flag_unused_command_line_argument=no
15903 fi
15904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15905 fi
15906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15907 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15908 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15909 CFLAGS="$xorg_testset_save_CFLAGS"
15910 fi
15911
15912 found="no"
15913
15914 if test $found = "no" ; then
15915 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15916 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15917 fi
15918
15919 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15920 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15921 fi
15922
15923 CFLAGS="$CFLAGS -Werror=address"
15924
15925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
15926 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
15927 cacheid=xorg_cv_cc_flag__Werror_address
15928 if eval \${$cacheid+:} false; then :
15929 $as_echo_n "(cached) " >&6
15930 else
15931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15932 /* end confdefs.h. */
15933 int i;
15934 int
15935 main ()
15936 {
15937
15938 ;
15939 return 0;
15940 }
15941 _ACEOF
15942 if ac_fn_c_try_link "$LINENO"; then :
15943 eval $cacheid=yes
15944 else
15945 eval $cacheid=no
15946 fi
15947 rm -f core conftest.err conftest.$ac_objext \
15948 conftest$ac_exeext conftest.$ac_ext
15949 fi
15950
15951
15952 CFLAGS="$xorg_testset_save_CFLAGS"
15953
15954 eval supported=\$$cacheid
15955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15956 $as_echo "$supported" >&6; }
15957 if test "$supported" = "yes" ; then
15958 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
15959 found="yes"
15960 fi
15961 fi
15962
15963
15964
15965
15966
15967
15968
15969
15970
15971
15972
15973
15974
15975
15976
15977 xorg_testset_save_CFLAGS="$CFLAGS"
15978
15979 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15980 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15982 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15983 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15984 $as_echo_n "(cached) " >&6
15985 else
15986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15987 /* end confdefs.h. */
15988 int i;
15989 _ACEOF
15990 if ac_fn_c_try_compile "$LINENO"; then :
15991 xorg_cv_cc_flag_unknown_warning_option=yes
15992 else
15993 xorg_cv_cc_flag_unknown_warning_option=no
15994 fi
15995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15996 fi
15997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15998 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15999 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16000 CFLAGS="$xorg_testset_save_CFLAGS"
16001 fi
16002
16003 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16004 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16005 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16006 fi
16007 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16009 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16010 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16011 $as_echo_n "(cached) " >&6
16012 else
16013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16014 /* end confdefs.h. */
16015 int i;
16016 _ACEOF
16017 if ac_fn_c_try_compile "$LINENO"; then :
16018 xorg_cv_cc_flag_unused_command_line_argument=yes
16019 else
16020 xorg_cv_cc_flag_unused_command_line_argument=no
16021 fi
16022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16023 fi
16024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16025 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16026 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16027 CFLAGS="$xorg_testset_save_CFLAGS"
16028 fi
16029
16030 found="no"
16031
16032 if test $found = "no" ; then
16033 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16034 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16035 fi
16036
16037 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16038 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16039 fi
16040
16041 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
16042
16043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
16044 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
16045 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
16046 if eval \${$cacheid+:} false; then :
16047 $as_echo_n "(cached) " >&6
16048 else
16049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16050 /* end confdefs.h. */
16051 int i;
16052 int
16053 main ()
16054 {
16055
16056 ;
16057 return 0;
16058 }
16059 _ACEOF
16060 if ac_fn_c_try_link "$LINENO"; then :
16061 eval $cacheid=yes
16062 else
16063 eval $cacheid=no
16064 fi
16065 rm -f core conftest.err conftest.$ac_objext \
16066 conftest$ac_exeext conftest.$ac_ext
16067 fi
16068
16069
16070 CFLAGS="$xorg_testset_save_CFLAGS"
16071
16072 eval supported=\$$cacheid
16073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16074 $as_echo "$supported" >&6; }
16075 if test "$supported" = "yes" ; then
16076 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
16077 found="yes"
16078 fi
16079 fi
16080
16081 if test $found = "no" ; then
16082 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16083 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16084 fi
16085
16086 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16087 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16088 fi
16089
16090 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16091
16092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
16093 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
16094 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
16095 if eval \${$cacheid+:} false; then :
16096 $as_echo_n "(cached) " >&6
16097 else
16098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16099 /* end confdefs.h. */
16100 int i;
16101 int
16102 main ()
16103 {
16104
16105 ;
16106 return 0;
16107 }
16108 _ACEOF
16109 if ac_fn_c_try_link "$LINENO"; then :
16110 eval $cacheid=yes
16111 else
16112 eval $cacheid=no
16113 fi
16114 rm -f core conftest.err conftest.$ac_objext \
16115 conftest$ac_exeext conftest.$ac_ext
16116 fi
16117
16118
16119 CFLAGS="$xorg_testset_save_CFLAGS"
16120
16121 eval supported=\$$cacheid
16122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16123 $as_echo "$supported" >&6; }
16124 if test "$supported" = "yes" ; then
16125 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16126 found="yes"
16127 fi
16128 fi
16129
16130
16131
16132
16133
16134
16135
16136
16137
16138
16139
16140
16141
16142
16143
16144 xorg_testset_save_CFLAGS="$CFLAGS"
16145
16146 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16147 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16149 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16150 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16151 $as_echo_n "(cached) " >&6
16152 else
16153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16154 /* end confdefs.h. */
16155 int i;
16156 _ACEOF
16157 if ac_fn_c_try_compile "$LINENO"; then :
16158 xorg_cv_cc_flag_unknown_warning_option=yes
16159 else
16160 xorg_cv_cc_flag_unknown_warning_option=no
16161 fi
16162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16163 fi
16164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16165 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16166 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16167 CFLAGS="$xorg_testset_save_CFLAGS"
16168 fi
16169
16170 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16171 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16172 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16173 fi
16174 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16176 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16177 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16178 $as_echo_n "(cached) " >&6
16179 else
16180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16181 /* end confdefs.h. */
16182 int i;
16183 _ACEOF
16184 if ac_fn_c_try_compile "$LINENO"; then :
16185 xorg_cv_cc_flag_unused_command_line_argument=yes
16186 else
16187 xorg_cv_cc_flag_unused_command_line_argument=no
16188 fi
16189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16190 fi
16191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16192 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16193 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16194 CFLAGS="$xorg_testset_save_CFLAGS"
16195 fi
16196
16197 found="no"
16198
16199 if test $found = "no" ; then
16200 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16201 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16202 fi
16203
16204 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16205 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16206 fi
16207
16208 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
16209
16210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
16211 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
16212 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
16213 if eval \${$cacheid+:} false; then :
16214 $as_echo_n "(cached) " >&6
16215 else
16216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16217 /* end confdefs.h. */
16218 int i;
16219 int
16220 main ()
16221 {
16222
16223 ;
16224 return 0;
16225 }
16226 _ACEOF
16227 if ac_fn_c_try_link "$LINENO"; then :
16228 eval $cacheid=yes
16229 else
16230 eval $cacheid=no
16231 fi
16232 rm -f core conftest.err conftest.$ac_objext \
16233 conftest$ac_exeext conftest.$ac_ext
16234 fi
16235
16236
16237 CFLAGS="$xorg_testset_save_CFLAGS"
16238
16239 eval supported=\$$cacheid
16240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16241 $as_echo "$supported" >&6; }
16242 if test "$supported" = "yes" ; then
16243 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
16244 found="yes"
16245 fi
16246 fi
16247
16248 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
16249 else
16250 { $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
16251 $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;}
16252
16253
16254
16255
16256
16257
16258
16259
16260
16261
16262
16263
16264
16265 xorg_testset_save_CFLAGS="$CFLAGS"
16266
16267 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16268 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16270 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16271 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16272 $as_echo_n "(cached) " >&6
16273 else
16274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16275 /* end confdefs.h. */
16276 int i;
16277 _ACEOF
16278 if ac_fn_c_try_compile "$LINENO"; then :
16279 xorg_cv_cc_flag_unknown_warning_option=yes
16280 else
16281 xorg_cv_cc_flag_unknown_warning_option=no
16282 fi
16283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16284 fi
16285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16286 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16287 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16288 CFLAGS="$xorg_testset_save_CFLAGS"
16289 fi
16290
16291 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16292 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16293 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16294 fi
16295 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16297 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16298 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16299 $as_echo_n "(cached) " >&6
16300 else
16301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16302 /* end confdefs.h. */
16303 int i;
16304 _ACEOF
16305 if ac_fn_c_try_compile "$LINENO"; then :
16306 xorg_cv_cc_flag_unused_command_line_argument=yes
16307 else
16308 xorg_cv_cc_flag_unused_command_line_argument=no
16309 fi
16310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16311 fi
16312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16313 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16314 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16315 CFLAGS="$xorg_testset_save_CFLAGS"
16316 fi
16317
16318 found="no"
16319
16320 if test $found = "no" ; then
16321 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16322 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16323 fi
16324
16325 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16326 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16327 fi
16328
16329 CFLAGS="$CFLAGS -Wimplicit"
16330
16331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
16332 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
16333 cacheid=xorg_cv_cc_flag__Wimplicit
16334 if eval \${$cacheid+:} false; then :
16335 $as_echo_n "(cached) " >&6
16336 else
16337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16338 /* end confdefs.h. */
16339 int i;
16340 int
16341 main ()
16342 {
16343
16344 ;
16345 return 0;
16346 }
16347 _ACEOF
16348 if ac_fn_c_try_link "$LINENO"; then :
16349 eval $cacheid=yes
16350 else
16351 eval $cacheid=no
16352 fi
16353 rm -f core conftest.err conftest.$ac_objext \
16354 conftest$ac_exeext conftest.$ac_ext
16355 fi
16356
16357
16358 CFLAGS="$xorg_testset_save_CFLAGS"
16359
16360 eval supported=\$$cacheid
16361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16362 $as_echo "$supported" >&6; }
16363 if test "$supported" = "yes" ; then
16364 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
16365 found="yes"
16366 fi
16367 fi
16368
16369
16370
16371
16372
16373
16374
16375
16376
16377
16378
16379
16380
16381
16382
16383 xorg_testset_save_CFLAGS="$CFLAGS"
16384
16385 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16386 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16388 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16389 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16390 $as_echo_n "(cached) " >&6
16391 else
16392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16393 /* end confdefs.h. */
16394 int i;
16395 _ACEOF
16396 if ac_fn_c_try_compile "$LINENO"; then :
16397 xorg_cv_cc_flag_unknown_warning_option=yes
16398 else
16399 xorg_cv_cc_flag_unknown_warning_option=no
16400 fi
16401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16402 fi
16403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16404 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16405 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16406 CFLAGS="$xorg_testset_save_CFLAGS"
16407 fi
16408
16409 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16410 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16411 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16412 fi
16413 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16415 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16416 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16417 $as_echo_n "(cached) " >&6
16418 else
16419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16420 /* end confdefs.h. */
16421 int i;
16422 _ACEOF
16423 if ac_fn_c_try_compile "$LINENO"; then :
16424 xorg_cv_cc_flag_unused_command_line_argument=yes
16425 else
16426 xorg_cv_cc_flag_unused_command_line_argument=no
16427 fi
16428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16429 fi
16430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16431 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16432 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16433 CFLAGS="$xorg_testset_save_CFLAGS"
16434 fi
16435
16436 found="no"
16437
16438 if test $found = "no" ; then
16439 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16440 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16441 fi
16442
16443 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16444 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16445 fi
16446
16447 CFLAGS="$CFLAGS -Wnonnull"
16448
16449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
16450 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
16451 cacheid=xorg_cv_cc_flag__Wnonnull
16452 if eval \${$cacheid+:} false; then :
16453 $as_echo_n "(cached) " >&6
16454 else
16455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16456 /* end confdefs.h. */
16457 int i;
16458 int
16459 main ()
16460 {
16461
16462 ;
16463 return 0;
16464 }
16465 _ACEOF
16466 if ac_fn_c_try_link "$LINENO"; then :
16467 eval $cacheid=yes
16468 else
16469 eval $cacheid=no
16470 fi
16471 rm -f core conftest.err conftest.$ac_objext \
16472 conftest$ac_exeext conftest.$ac_ext
16473 fi
16474
16475
16476 CFLAGS="$xorg_testset_save_CFLAGS"
16477
16478 eval supported=\$$cacheid
16479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16480 $as_echo "$supported" >&6; }
16481 if test "$supported" = "yes" ; then
16482 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
16483 found="yes"
16484 fi
16485 fi
16486
16487
16488
16489
16490
16491
16492
16493
16494
16495
16496
16497
16498
16499
16500
16501 xorg_testset_save_CFLAGS="$CFLAGS"
16502
16503 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16504 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16506 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16507 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16508 $as_echo_n "(cached) " >&6
16509 else
16510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16511 /* end confdefs.h. */
16512 int i;
16513 _ACEOF
16514 if ac_fn_c_try_compile "$LINENO"; then :
16515 xorg_cv_cc_flag_unknown_warning_option=yes
16516 else
16517 xorg_cv_cc_flag_unknown_warning_option=no
16518 fi
16519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16520 fi
16521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16522 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16523 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16524 CFLAGS="$xorg_testset_save_CFLAGS"
16525 fi
16526
16527 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16528 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16529 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16530 fi
16531 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16533 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16534 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16535 $as_echo_n "(cached) " >&6
16536 else
16537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16538 /* end confdefs.h. */
16539 int i;
16540 _ACEOF
16541 if ac_fn_c_try_compile "$LINENO"; then :
16542 xorg_cv_cc_flag_unused_command_line_argument=yes
16543 else
16544 xorg_cv_cc_flag_unused_command_line_argument=no
16545 fi
16546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16547 fi
16548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16549 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16550 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16551 CFLAGS="$xorg_testset_save_CFLAGS"
16552 fi
16553
16554 found="no"
16555
16556 if test $found = "no" ; then
16557 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16558 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16559 fi
16560
16561 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16562 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16563 fi
16564
16565 CFLAGS="$CFLAGS -Winit-self"
16566
16567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
16568 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
16569 cacheid=xorg_cv_cc_flag__Winit_self
16570 if eval \${$cacheid+:} false; then :
16571 $as_echo_n "(cached) " >&6
16572 else
16573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16574 /* end confdefs.h. */
16575 int i;
16576 int
16577 main ()
16578 {
16579
16580 ;
16581 return 0;
16582 }
16583 _ACEOF
16584 if ac_fn_c_try_link "$LINENO"; then :
16585 eval $cacheid=yes
16586 else
16587 eval $cacheid=no
16588 fi
16589 rm -f core conftest.err conftest.$ac_objext \
16590 conftest$ac_exeext conftest.$ac_ext
16591 fi
16592
16593
16594 CFLAGS="$xorg_testset_save_CFLAGS"
16595
16596 eval supported=\$$cacheid
16597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16598 $as_echo "$supported" >&6; }
16599 if test "$supported" = "yes" ; then
16600 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
16601 found="yes"
16602 fi
16603 fi
16604
16605
16606
16607
16608
16609
16610
16611
16612
16613
16614
16615
16616
16617
16618
16619 xorg_testset_save_CFLAGS="$CFLAGS"
16620
16621 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16622 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16624 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16625 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16626 $as_echo_n "(cached) " >&6
16627 else
16628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16629 /* end confdefs.h. */
16630 int i;
16631 _ACEOF
16632 if ac_fn_c_try_compile "$LINENO"; then :
16633 xorg_cv_cc_flag_unknown_warning_option=yes
16634 else
16635 xorg_cv_cc_flag_unknown_warning_option=no
16636 fi
16637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16638 fi
16639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16640 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16641 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16642 CFLAGS="$xorg_testset_save_CFLAGS"
16643 fi
16644
16645 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16646 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16647 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16648 fi
16649 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16651 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16652 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16653 $as_echo_n "(cached) " >&6
16654 else
16655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16656 /* end confdefs.h. */
16657 int i;
16658 _ACEOF
16659 if ac_fn_c_try_compile "$LINENO"; then :
16660 xorg_cv_cc_flag_unused_command_line_argument=yes
16661 else
16662 xorg_cv_cc_flag_unused_command_line_argument=no
16663 fi
16664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16665 fi
16666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16667 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16668 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16669 CFLAGS="$xorg_testset_save_CFLAGS"
16670 fi
16671
16672 found="no"
16673
16674 if test $found = "no" ; then
16675 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16676 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16677 fi
16678
16679 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16680 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16681 fi
16682
16683 CFLAGS="$CFLAGS -Wmain"
16684
16685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
16686 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
16687 cacheid=xorg_cv_cc_flag__Wmain
16688 if eval \${$cacheid+:} false; then :
16689 $as_echo_n "(cached) " >&6
16690 else
16691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16692 /* end confdefs.h. */
16693 int i;
16694 int
16695 main ()
16696 {
16697
16698 ;
16699 return 0;
16700 }
16701 _ACEOF
16702 if ac_fn_c_try_link "$LINENO"; then :
16703 eval $cacheid=yes
16704 else
16705 eval $cacheid=no
16706 fi
16707 rm -f core conftest.err conftest.$ac_objext \
16708 conftest$ac_exeext conftest.$ac_ext
16709 fi
16710
16711
16712 CFLAGS="$xorg_testset_save_CFLAGS"
16713
16714 eval supported=\$$cacheid
16715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16716 $as_echo "$supported" >&6; }
16717 if test "$supported" = "yes" ; then
16718 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
16719 found="yes"
16720 fi
16721 fi
16722
16723
16724
16725
16726
16727
16728
16729
16730
16731
16732
16733
16734
16735
16736
16737 xorg_testset_save_CFLAGS="$CFLAGS"
16738
16739 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16740 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16742 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16743 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16744 $as_echo_n "(cached) " >&6
16745 else
16746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16747 /* end confdefs.h. */
16748 int i;
16749 _ACEOF
16750 if ac_fn_c_try_compile "$LINENO"; then :
16751 xorg_cv_cc_flag_unknown_warning_option=yes
16752 else
16753 xorg_cv_cc_flag_unknown_warning_option=no
16754 fi
16755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16756 fi
16757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16758 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16759 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16760 CFLAGS="$xorg_testset_save_CFLAGS"
16761 fi
16762
16763 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16764 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16765 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16766 fi
16767 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16769 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16770 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16771 $as_echo_n "(cached) " >&6
16772 else
16773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16774 /* end confdefs.h. */
16775 int i;
16776 _ACEOF
16777 if ac_fn_c_try_compile "$LINENO"; then :
16778 xorg_cv_cc_flag_unused_command_line_argument=yes
16779 else
16780 xorg_cv_cc_flag_unused_command_line_argument=no
16781 fi
16782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16783 fi
16784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16785 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16786 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16787 CFLAGS="$xorg_testset_save_CFLAGS"
16788 fi
16789
16790 found="no"
16791
16792 if test $found = "no" ; then
16793 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16794 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16795 fi
16796
16797 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16798 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16799 fi
16800
16801 CFLAGS="$CFLAGS -Wmissing-braces"
16802
16803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
16804 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
16805 cacheid=xorg_cv_cc_flag__Wmissing_braces
16806 if eval \${$cacheid+:} false; then :
16807 $as_echo_n "(cached) " >&6
16808 else
16809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16810 /* end confdefs.h. */
16811 int i;
16812 int
16813 main ()
16814 {
16815
16816 ;
16817 return 0;
16818 }
16819 _ACEOF
16820 if ac_fn_c_try_link "$LINENO"; then :
16821 eval $cacheid=yes
16822 else
16823 eval $cacheid=no
16824 fi
16825 rm -f core conftest.err conftest.$ac_objext \
16826 conftest$ac_exeext conftest.$ac_ext
16827 fi
16828
16829
16830 CFLAGS="$xorg_testset_save_CFLAGS"
16831
16832 eval supported=\$$cacheid
16833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16834 $as_echo "$supported" >&6; }
16835 if test "$supported" = "yes" ; then
16836 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
16837 found="yes"
16838 fi
16839 fi
16840
16841
16842
16843
16844
16845
16846
16847
16848
16849
16850
16851
16852
16853
16854
16855 xorg_testset_save_CFLAGS="$CFLAGS"
16856
16857 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16858 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16860 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16861 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16862 $as_echo_n "(cached) " >&6
16863 else
16864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16865 /* end confdefs.h. */
16866 int i;
16867 _ACEOF
16868 if ac_fn_c_try_compile "$LINENO"; then :
16869 xorg_cv_cc_flag_unknown_warning_option=yes
16870 else
16871 xorg_cv_cc_flag_unknown_warning_option=no
16872 fi
16873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16874 fi
16875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16876 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16877 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16878 CFLAGS="$xorg_testset_save_CFLAGS"
16879 fi
16880
16881 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16882 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16883 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16884 fi
16885 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16887 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16888 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16889 $as_echo_n "(cached) " >&6
16890 else
16891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16892 /* end confdefs.h. */
16893 int i;
16894 _ACEOF
16895 if ac_fn_c_try_compile "$LINENO"; then :
16896 xorg_cv_cc_flag_unused_command_line_argument=yes
16897 else
16898 xorg_cv_cc_flag_unused_command_line_argument=no
16899 fi
16900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16901 fi
16902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16903 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16904 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16905 CFLAGS="$xorg_testset_save_CFLAGS"
16906 fi
16907
16908 found="no"
16909
16910 if test $found = "no" ; then
16911 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16912 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16913 fi
16914
16915 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16916 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16917 fi
16918
16919 CFLAGS="$CFLAGS -Wsequence-point"
16920
16921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
16922 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
16923 cacheid=xorg_cv_cc_flag__Wsequence_point
16924 if eval \${$cacheid+:} false; then :
16925 $as_echo_n "(cached) " >&6
16926 else
16927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16928 /* end confdefs.h. */
16929 int i;
16930 int
16931 main ()
16932 {
16933
16934 ;
16935 return 0;
16936 }
16937 _ACEOF
16938 if ac_fn_c_try_link "$LINENO"; then :
16939 eval $cacheid=yes
16940 else
16941 eval $cacheid=no
16942 fi
16943 rm -f core conftest.err conftest.$ac_objext \
16944 conftest$ac_exeext conftest.$ac_ext
16945 fi
16946
16947
16948 CFLAGS="$xorg_testset_save_CFLAGS"
16949
16950 eval supported=\$$cacheid
16951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16952 $as_echo "$supported" >&6; }
16953 if test "$supported" = "yes" ; then
16954 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
16955 found="yes"
16956 fi
16957 fi
16958
16959
16960
16961
16962
16963
16964
16965
16966
16967
16968
16969
16970
16971
16972
16973 xorg_testset_save_CFLAGS="$CFLAGS"
16974
16975 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16976 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16978 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16979 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16980 $as_echo_n "(cached) " >&6
16981 else
16982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16983 /* end confdefs.h. */
16984 int i;
16985 _ACEOF
16986 if ac_fn_c_try_compile "$LINENO"; then :
16987 xorg_cv_cc_flag_unknown_warning_option=yes
16988 else
16989 xorg_cv_cc_flag_unknown_warning_option=no
16990 fi
16991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16992 fi
16993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16994 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16995 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16996 CFLAGS="$xorg_testset_save_CFLAGS"
16997 fi
16998
16999 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17000 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17001 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17002 fi
17003 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17005 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17006 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17007 $as_echo_n "(cached) " >&6
17008 else
17009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17010 /* end confdefs.h. */
17011 int i;
17012 _ACEOF
17013 if ac_fn_c_try_compile "$LINENO"; then :
17014 xorg_cv_cc_flag_unused_command_line_argument=yes
17015 else
17016 xorg_cv_cc_flag_unused_command_line_argument=no
17017 fi
17018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17019 fi
17020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17021 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17022 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17023 CFLAGS="$xorg_testset_save_CFLAGS"
17024 fi
17025
17026 found="no"
17027
17028 if test $found = "no" ; then
17029 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17030 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17031 fi
17032
17033 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17034 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17035 fi
17036
17037 CFLAGS="$CFLAGS -Wreturn-type"
17038
17039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
17040 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
17041 cacheid=xorg_cv_cc_flag__Wreturn_type
17042 if eval \${$cacheid+:} false; then :
17043 $as_echo_n "(cached) " >&6
17044 else
17045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17046 /* end confdefs.h. */
17047 int i;
17048 int
17049 main ()
17050 {
17051
17052 ;
17053 return 0;
17054 }
17055 _ACEOF
17056 if ac_fn_c_try_link "$LINENO"; then :
17057 eval $cacheid=yes
17058 else
17059 eval $cacheid=no
17060 fi
17061 rm -f core conftest.err conftest.$ac_objext \
17062 conftest$ac_exeext conftest.$ac_ext
17063 fi
17064
17065
17066 CFLAGS="$xorg_testset_save_CFLAGS"
17067
17068 eval supported=\$$cacheid
17069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17070 $as_echo "$supported" >&6; }
17071 if test "$supported" = "yes" ; then
17072 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
17073 found="yes"
17074 fi
17075 fi
17076
17077
17078
17079
17080
17081
17082
17083
17084
17085
17086
17087
17088
17089
17090
17091 xorg_testset_save_CFLAGS="$CFLAGS"
17092
17093 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17094 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17096 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17097 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17098 $as_echo_n "(cached) " >&6
17099 else
17100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17101 /* end confdefs.h. */
17102 int i;
17103 _ACEOF
17104 if ac_fn_c_try_compile "$LINENO"; then :
17105 xorg_cv_cc_flag_unknown_warning_option=yes
17106 else
17107 xorg_cv_cc_flag_unknown_warning_option=no
17108 fi
17109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17110 fi
17111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17112 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17113 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17114 CFLAGS="$xorg_testset_save_CFLAGS"
17115 fi
17116
17117 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17118 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17119 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17120 fi
17121 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17123 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17124 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17125 $as_echo_n "(cached) " >&6
17126 else
17127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17128 /* end confdefs.h. */
17129 int i;
17130 _ACEOF
17131 if ac_fn_c_try_compile "$LINENO"; then :
17132 xorg_cv_cc_flag_unused_command_line_argument=yes
17133 else
17134 xorg_cv_cc_flag_unused_command_line_argument=no
17135 fi
17136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17137 fi
17138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17139 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17140 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17141 CFLAGS="$xorg_testset_save_CFLAGS"
17142 fi
17143
17144 found="no"
17145
17146 if test $found = "no" ; then
17147 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17148 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17149 fi
17150
17151 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17152 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17153 fi
17154
17155 CFLAGS="$CFLAGS -Wtrigraphs"
17156
17157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
17158 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
17159 cacheid=xorg_cv_cc_flag__Wtrigraphs
17160 if eval \${$cacheid+:} false; then :
17161 $as_echo_n "(cached) " >&6
17162 else
17163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17164 /* end confdefs.h. */
17165 int i;
17166 int
17167 main ()
17168 {
17169
17170 ;
17171 return 0;
17172 }
17173 _ACEOF
17174 if ac_fn_c_try_link "$LINENO"; then :
17175 eval $cacheid=yes
17176 else
17177 eval $cacheid=no
17178 fi
17179 rm -f core conftest.err conftest.$ac_objext \
17180 conftest$ac_exeext conftest.$ac_ext
17181 fi
17182
17183
17184 CFLAGS="$xorg_testset_save_CFLAGS"
17185
17186 eval supported=\$$cacheid
17187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17188 $as_echo "$supported" >&6; }
17189 if test "$supported" = "yes" ; then
17190 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
17191 found="yes"
17192 fi
17193 fi
17194
17195
17196
17197
17198
17199
17200
17201
17202
17203
17204
17205
17206
17207
17208
17209 xorg_testset_save_CFLAGS="$CFLAGS"
17210
17211 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17212 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17214 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17215 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17216 $as_echo_n "(cached) " >&6
17217 else
17218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17219 /* end confdefs.h. */
17220 int i;
17221 _ACEOF
17222 if ac_fn_c_try_compile "$LINENO"; then :
17223 xorg_cv_cc_flag_unknown_warning_option=yes
17224 else
17225 xorg_cv_cc_flag_unknown_warning_option=no
17226 fi
17227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17228 fi
17229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17230 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17231 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17232 CFLAGS="$xorg_testset_save_CFLAGS"
17233 fi
17234
17235 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17236 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17237 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17238 fi
17239 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17241 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17242 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17243 $as_echo_n "(cached) " >&6
17244 else
17245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17246 /* end confdefs.h. */
17247 int i;
17248 _ACEOF
17249 if ac_fn_c_try_compile "$LINENO"; then :
17250 xorg_cv_cc_flag_unused_command_line_argument=yes
17251 else
17252 xorg_cv_cc_flag_unused_command_line_argument=no
17253 fi
17254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17255 fi
17256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17257 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17258 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17259 CFLAGS="$xorg_testset_save_CFLAGS"
17260 fi
17261
17262 found="no"
17263
17264 if test $found = "no" ; then
17265 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17266 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17267 fi
17268
17269 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17270 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17271 fi
17272
17273 CFLAGS="$CFLAGS -Warray-bounds"
17274
17275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
17276 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
17277 cacheid=xorg_cv_cc_flag__Warray_bounds
17278 if eval \${$cacheid+:} false; then :
17279 $as_echo_n "(cached) " >&6
17280 else
17281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17282 /* end confdefs.h. */
17283 int i;
17284 int
17285 main ()
17286 {
17287
17288 ;
17289 return 0;
17290 }
17291 _ACEOF
17292 if ac_fn_c_try_link "$LINENO"; then :
17293 eval $cacheid=yes
17294 else
17295 eval $cacheid=no
17296 fi
17297 rm -f core conftest.err conftest.$ac_objext \
17298 conftest$ac_exeext conftest.$ac_ext
17299 fi
17300
17301
17302 CFLAGS="$xorg_testset_save_CFLAGS"
17303
17304 eval supported=\$$cacheid
17305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17306 $as_echo "$supported" >&6; }
17307 if test "$supported" = "yes" ; then
17308 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
17309 found="yes"
17310 fi
17311 fi
17312
17313
17314
17315
17316
17317
17318
17319
17320
17321
17322
17323
17324
17325
17326
17327 xorg_testset_save_CFLAGS="$CFLAGS"
17328
17329 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17330 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17332 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17333 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17334 $as_echo_n "(cached) " >&6
17335 else
17336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17337 /* end confdefs.h. */
17338 int i;
17339 _ACEOF
17340 if ac_fn_c_try_compile "$LINENO"; then :
17341 xorg_cv_cc_flag_unknown_warning_option=yes
17342 else
17343 xorg_cv_cc_flag_unknown_warning_option=no
17344 fi
17345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17346 fi
17347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17348 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17349 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17350 CFLAGS="$xorg_testset_save_CFLAGS"
17351 fi
17352
17353 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17354 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17355 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17356 fi
17357 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17359 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17360 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17361 $as_echo_n "(cached) " >&6
17362 else
17363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17364 /* end confdefs.h. */
17365 int i;
17366 _ACEOF
17367 if ac_fn_c_try_compile "$LINENO"; then :
17368 xorg_cv_cc_flag_unused_command_line_argument=yes
17369 else
17370 xorg_cv_cc_flag_unused_command_line_argument=no
17371 fi
17372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17373 fi
17374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17375 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17376 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17377 CFLAGS="$xorg_testset_save_CFLAGS"
17378 fi
17379
17380 found="no"
17381
17382 if test $found = "no" ; then
17383 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17384 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17385 fi
17386
17387 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17388 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17389 fi
17390
17391 CFLAGS="$CFLAGS -Wwrite-strings"
17392
17393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
17394 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
17395 cacheid=xorg_cv_cc_flag__Wwrite_strings
17396 if eval \${$cacheid+:} false; then :
17397 $as_echo_n "(cached) " >&6
17398 else
17399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17400 /* end confdefs.h. */
17401 int i;
17402 int
17403 main ()
17404 {
17405
17406 ;
17407 return 0;
17408 }
17409 _ACEOF
17410 if ac_fn_c_try_link "$LINENO"; then :
17411 eval $cacheid=yes
17412 else
17413 eval $cacheid=no
17414 fi
17415 rm -f core conftest.err conftest.$ac_objext \
17416 conftest$ac_exeext conftest.$ac_ext
17417 fi
17418
17419
17420 CFLAGS="$xorg_testset_save_CFLAGS"
17421
17422 eval supported=\$$cacheid
17423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17424 $as_echo "$supported" >&6; }
17425 if test "$supported" = "yes" ; then
17426 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
17427 found="yes"
17428 fi
17429 fi
17430
17431
17432
17433
17434
17435
17436
17437
17438
17439
17440
17441
17442
17443
17444
17445 xorg_testset_save_CFLAGS="$CFLAGS"
17446
17447 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17448 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17450 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17451 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17452 $as_echo_n "(cached) " >&6
17453 else
17454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17455 /* end confdefs.h. */
17456 int i;
17457 _ACEOF
17458 if ac_fn_c_try_compile "$LINENO"; then :
17459 xorg_cv_cc_flag_unknown_warning_option=yes
17460 else
17461 xorg_cv_cc_flag_unknown_warning_option=no
17462 fi
17463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17464 fi
17465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17466 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17467 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17468 CFLAGS="$xorg_testset_save_CFLAGS"
17469 fi
17470
17471 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17472 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17473 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17474 fi
17475 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17477 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17478 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17479 $as_echo_n "(cached) " >&6
17480 else
17481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17482 /* end confdefs.h. */
17483 int i;
17484 _ACEOF
17485 if ac_fn_c_try_compile "$LINENO"; then :
17486 xorg_cv_cc_flag_unused_command_line_argument=yes
17487 else
17488 xorg_cv_cc_flag_unused_command_line_argument=no
17489 fi
17490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17491 fi
17492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17493 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17494 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17495 CFLAGS="$xorg_testset_save_CFLAGS"
17496 fi
17497
17498 found="no"
17499
17500 if test $found = "no" ; then
17501 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17502 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17503 fi
17504
17505 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17506 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17507 fi
17508
17509 CFLAGS="$CFLAGS -Waddress"
17510
17511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
17512 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
17513 cacheid=xorg_cv_cc_flag__Waddress
17514 if eval \${$cacheid+:} false; then :
17515 $as_echo_n "(cached) " >&6
17516 else
17517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17518 /* end confdefs.h. */
17519 int i;
17520 int
17521 main ()
17522 {
17523
17524 ;
17525 return 0;
17526 }
17527 _ACEOF
17528 if ac_fn_c_try_link "$LINENO"; then :
17529 eval $cacheid=yes
17530 else
17531 eval $cacheid=no
17532 fi
17533 rm -f core conftest.err conftest.$ac_objext \
17534 conftest$ac_exeext conftest.$ac_ext
17535 fi
17536
17537
17538 CFLAGS="$xorg_testset_save_CFLAGS"
17539
17540 eval supported=\$$cacheid
17541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17542 $as_echo "$supported" >&6; }
17543 if test "$supported" = "yes" ; then
17544 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
17545 found="yes"
17546 fi
17547 fi
17548
17549
17550
17551
17552
17553
17554
17555
17556
17557
17558
17559
17560
17561
17562
17563 xorg_testset_save_CFLAGS="$CFLAGS"
17564
17565 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17566 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17568 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17569 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17570 $as_echo_n "(cached) " >&6
17571 else
17572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17573 /* end confdefs.h. */
17574 int i;
17575 _ACEOF
17576 if ac_fn_c_try_compile "$LINENO"; then :
17577 xorg_cv_cc_flag_unknown_warning_option=yes
17578 else
17579 xorg_cv_cc_flag_unknown_warning_option=no
17580 fi
17581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17582 fi
17583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17584 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17585 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17586 CFLAGS="$xorg_testset_save_CFLAGS"
17587 fi
17588
17589 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17590 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17591 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17592 fi
17593 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17595 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17596 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17597 $as_echo_n "(cached) " >&6
17598 else
17599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17600 /* end confdefs.h. */
17601 int i;
17602 _ACEOF
17603 if ac_fn_c_try_compile "$LINENO"; then :
17604 xorg_cv_cc_flag_unused_command_line_argument=yes
17605 else
17606 xorg_cv_cc_flag_unused_command_line_argument=no
17607 fi
17608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17609 fi
17610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17611 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17612 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17613 CFLAGS="$xorg_testset_save_CFLAGS"
17614 fi
17615
17616 found="no"
17617
17618 if test $found = "no" ; then
17619 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17620 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17621 fi
17622
17623 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17624 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17625 fi
17626
17627 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
17628
17629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
17630 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
17631 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
17632 if eval \${$cacheid+:} false; then :
17633 $as_echo_n "(cached) " >&6
17634 else
17635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17636 /* end confdefs.h. */
17637 int i;
17638 int
17639 main ()
17640 {
17641
17642 ;
17643 return 0;
17644 }
17645 _ACEOF
17646 if ac_fn_c_try_link "$LINENO"; then :
17647 eval $cacheid=yes
17648 else
17649 eval $cacheid=no
17650 fi
17651 rm -f core conftest.err conftest.$ac_objext \
17652 conftest$ac_exeext conftest.$ac_ext
17653 fi
17654
17655
17656 CFLAGS="$xorg_testset_save_CFLAGS"
17657
17658 eval supported=\$$cacheid
17659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17660 $as_echo "$supported" >&6; }
17661 if test "$supported" = "yes" ; then
17662 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
17663 found="yes"
17664 fi
17665 fi
17666
17667
17668
17669
17670
17671
17672
17673
17674
17675
17676
17677
17678
17679
17680
17681 xorg_testset_save_CFLAGS="$CFLAGS"
17682
17683 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17684 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17686 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17687 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17688 $as_echo_n "(cached) " >&6
17689 else
17690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17691 /* end confdefs.h. */
17692 int i;
17693 _ACEOF
17694 if ac_fn_c_try_compile "$LINENO"; then :
17695 xorg_cv_cc_flag_unknown_warning_option=yes
17696 else
17697 xorg_cv_cc_flag_unknown_warning_option=no
17698 fi
17699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17700 fi
17701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17702 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17703 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17704 CFLAGS="$xorg_testset_save_CFLAGS"
17705 fi
17706
17707 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17708 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17709 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17710 fi
17711 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17713 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17714 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17715 $as_echo_n "(cached) " >&6
17716 else
17717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17718 /* end confdefs.h. */
17719 int i;
17720 _ACEOF
17721 if ac_fn_c_try_compile "$LINENO"; then :
17722 xorg_cv_cc_flag_unused_command_line_argument=yes
17723 else
17724 xorg_cv_cc_flag_unused_command_line_argument=no
17725 fi
17726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17727 fi
17728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17729 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17730 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17731 CFLAGS="$xorg_testset_save_CFLAGS"
17732 fi
17733
17734 found="no"
17735
17736 if test $found = "no" ; then
17737 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17738 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17739 fi
17740
17741 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17742 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17743 fi
17744
17745 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
17746
17747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
17748 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
17749 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
17750 if eval \${$cacheid+:} false; then :
17751 $as_echo_n "(cached) " >&6
17752 else
17753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17754 /* end confdefs.h. */
17755 int i;
17756 int
17757 main ()
17758 {
17759
17760 ;
17761 return 0;
17762 }
17763 _ACEOF
17764 if ac_fn_c_try_link "$LINENO"; then :
17765 eval $cacheid=yes
17766 else
17767 eval $cacheid=no
17768 fi
17769 rm -f core conftest.err conftest.$ac_objext \
17770 conftest$ac_exeext conftest.$ac_ext
17771 fi
17772
17773
17774 CFLAGS="$xorg_testset_save_CFLAGS"
17775
17776 eval supported=\$$cacheid
17777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17778 $as_echo "$supported" >&6; }
17779 if test "$supported" = "yes" ; then
17780 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
17781 found="yes"
17782 fi
17783 fi
17784
17785
17786 fi
17787
17788
17789
17790
17791
17792
17793
17794 CWARNFLAGS="$BASE_CFLAGS"
17795 if test "x$GCC" = xyes ; then
17796 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
17797 fi
17798
17799
17800
17801
17802
17803
17804
17805
17806 # Check whether --enable-strict-compilation was given.
17807 if test "${enable_strict_compilation+set}" = set; then :
17808 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
17809 else
17810 STRICT_COMPILE=no
17811 fi
17812
17813
17814
17815
17816
17817
17818 STRICT_CFLAGS=""
17819
17820
17821
17822
17823
17824
17825
17826
17827
17828
17829
17830
17831
17832 xorg_testset_save_CFLAGS="$CFLAGS"
17833
17834 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17835 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17837 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17838 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17839 $as_echo_n "(cached) " >&6
17840 else
17841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17842 /* end confdefs.h. */
17843 int i;
17844 _ACEOF
17845 if ac_fn_c_try_compile "$LINENO"; then :
17846 xorg_cv_cc_flag_unknown_warning_option=yes
17847 else
17848 xorg_cv_cc_flag_unknown_warning_option=no
17849 fi
17850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17851 fi
17852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17853 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17854 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17855 CFLAGS="$xorg_testset_save_CFLAGS"
17856 fi
17857
17858 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17859 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17860 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17861 fi
17862 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17864 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17865 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17866 $as_echo_n "(cached) " >&6
17867 else
17868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17869 /* end confdefs.h. */
17870 int i;
17871 _ACEOF
17872 if ac_fn_c_try_compile "$LINENO"; then :
17873 xorg_cv_cc_flag_unused_command_line_argument=yes
17874 else
17875 xorg_cv_cc_flag_unused_command_line_argument=no
17876 fi
17877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17878 fi
17879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17880 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17881 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17882 CFLAGS="$xorg_testset_save_CFLAGS"
17883 fi
17884
17885 found="no"
17886
17887 if test $found = "no" ; then
17888 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17889 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17890 fi
17891
17892 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17893 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17894 fi
17895
17896 CFLAGS="$CFLAGS -pedantic"
17897
17898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
17899 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
17900 cacheid=xorg_cv_cc_flag__pedantic
17901 if eval \${$cacheid+:} false; then :
17902 $as_echo_n "(cached) " >&6
17903 else
17904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17905 /* end confdefs.h. */
17906 int i;
17907 int
17908 main ()
17909 {
17910
17911 ;
17912 return 0;
17913 }
17914 _ACEOF
17915 if ac_fn_c_try_link "$LINENO"; then :
17916 eval $cacheid=yes
17917 else
17918 eval $cacheid=no
17919 fi
17920 rm -f core conftest.err conftest.$ac_objext \
17921 conftest$ac_exeext conftest.$ac_ext
17922 fi
17923
17924
17925 CFLAGS="$xorg_testset_save_CFLAGS"
17926
17927 eval supported=\$$cacheid
17928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17929 $as_echo "$supported" >&6; }
17930 if test "$supported" = "yes" ; then
17931 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
17932 found="yes"
17933 fi
17934 fi
17935
17936
17937
17938
17939
17940
17941
17942
17943
17944
17945
17946
17947
17948
17949
17950 xorg_testset_save_CFLAGS="$CFLAGS"
17951
17952 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17953 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17955 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17956 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17957 $as_echo_n "(cached) " >&6
17958 else
17959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17960 /* end confdefs.h. */
17961 int i;
17962 _ACEOF
17963 if ac_fn_c_try_compile "$LINENO"; then :
17964 xorg_cv_cc_flag_unknown_warning_option=yes
17965 else
17966 xorg_cv_cc_flag_unknown_warning_option=no
17967 fi
17968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17969 fi
17970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17971 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17972 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17973 CFLAGS="$xorg_testset_save_CFLAGS"
17974 fi
17975
17976 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17977 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17978 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17979 fi
17980 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17982 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17983 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17984 $as_echo_n "(cached) " >&6
17985 else
17986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17987 /* end confdefs.h. */
17988 int i;
17989 _ACEOF
17990 if ac_fn_c_try_compile "$LINENO"; then :
17991 xorg_cv_cc_flag_unused_command_line_argument=yes
17992 else
17993 xorg_cv_cc_flag_unused_command_line_argument=no
17994 fi
17995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17996 fi
17997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17998 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17999 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18000 CFLAGS="$xorg_testset_save_CFLAGS"
18001 fi
18002
18003 found="no"
18004
18005 if test $found = "no" ; then
18006 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18007 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18008 fi
18009
18010 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18011 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18012 fi
18013
18014 CFLAGS="$CFLAGS -Werror"
18015
18016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
18017 $as_echo_n "checking if $CC supports -Werror... " >&6; }
18018 cacheid=xorg_cv_cc_flag__Werror
18019 if eval \${$cacheid+:} false; then :
18020 $as_echo_n "(cached) " >&6
18021 else
18022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18023 /* end confdefs.h. */
18024 int i;
18025 int
18026 main ()
18027 {
18028
18029 ;
18030 return 0;
18031 }
18032 _ACEOF
18033 if ac_fn_c_try_link "$LINENO"; then :
18034 eval $cacheid=yes
18035 else
18036 eval $cacheid=no
18037 fi
18038 rm -f core conftest.err conftest.$ac_objext \
18039 conftest$ac_exeext conftest.$ac_ext
18040 fi
18041
18042
18043 CFLAGS="$xorg_testset_save_CFLAGS"
18044
18045 eval supported=\$$cacheid
18046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18047 $as_echo "$supported" >&6; }
18048 if test "$supported" = "yes" ; then
18049 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
18050 found="yes"
18051 fi
18052 fi
18053
18054 if test $found = "no" ; then
18055 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18056 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18057 fi
18058
18059 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18060 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18061 fi
18062
18063 CFLAGS="$CFLAGS -errwarn"
18064
18065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
18066 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
18067 cacheid=xorg_cv_cc_flag__errwarn
18068 if eval \${$cacheid+:} false; then :
18069 $as_echo_n "(cached) " >&6
18070 else
18071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18072 /* end confdefs.h. */
18073 int i;
18074 int
18075 main ()
18076 {
18077
18078 ;
18079 return 0;
18080 }
18081 _ACEOF
18082 if ac_fn_c_try_link "$LINENO"; then :
18083 eval $cacheid=yes
18084 else
18085 eval $cacheid=no
18086 fi
18087 rm -f core conftest.err conftest.$ac_objext \
18088 conftest$ac_exeext conftest.$ac_ext
18089 fi
18090
18091
18092 CFLAGS="$xorg_testset_save_CFLAGS"
18093
18094 eval supported=\$$cacheid
18095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18096 $as_echo "$supported" >&6; }
18097 if test "$supported" = "yes" ; then
18098 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
18099 found="yes"
18100 fi
18101 fi
18102
18103
18104
18105 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
18106 # activate it with -Werror, so we add it here explicitly.
18107
18108
18109
18110
18111
18112
18113
18114
18115
18116
18117
18118
18119
18120 xorg_testset_save_CFLAGS="$CFLAGS"
18121
18122 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18123 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18125 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18126 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
18127 $as_echo_n "(cached) " >&6
18128 else
18129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18130 /* end confdefs.h. */
18131 int i;
18132 _ACEOF
18133 if ac_fn_c_try_compile "$LINENO"; then :
18134 xorg_cv_cc_flag_unknown_warning_option=yes
18135 else
18136 xorg_cv_cc_flag_unknown_warning_option=no
18137 fi
18138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18139 fi
18140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18141 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18142 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18143 CFLAGS="$xorg_testset_save_CFLAGS"
18144 fi
18145
18146 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18147 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18148 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18149 fi
18150 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18152 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18153 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18154 $as_echo_n "(cached) " >&6
18155 else
18156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18157 /* end confdefs.h. */
18158 int i;
18159 _ACEOF
18160 if ac_fn_c_try_compile "$LINENO"; then :
18161 xorg_cv_cc_flag_unused_command_line_argument=yes
18162 else
18163 xorg_cv_cc_flag_unused_command_line_argument=no
18164 fi
18165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18166 fi
18167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18168 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18169 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18170 CFLAGS="$xorg_testset_save_CFLAGS"
18171 fi
18172
18173 found="no"
18174
18175 if test $found = "no" ; then
18176 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18177 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18178 fi
18179
18180 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18181 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18182 fi
18183
18184 CFLAGS="$CFLAGS -Werror=attributes"
18185
18186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
18187 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
18188 cacheid=xorg_cv_cc_flag__Werror_attributes
18189 if eval \${$cacheid+:} false; then :
18190 $as_echo_n "(cached) " >&6
18191 else
18192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18193 /* end confdefs.h. */
18194 int i;
18195 int
18196 main ()
18197 {
18198
18199 ;
18200 return 0;
18201 }
18202 _ACEOF
18203 if ac_fn_c_try_link "$LINENO"; then :
18204 eval $cacheid=yes
18205 else
18206 eval $cacheid=no
18207 fi
18208 rm -f core conftest.err conftest.$ac_objext \
18209 conftest$ac_exeext conftest.$ac_ext
18210 fi
18211
18212
18213 CFLAGS="$xorg_testset_save_CFLAGS"
18214
18215 eval supported=\$$cacheid
18216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18217 $as_echo "$supported" >&6; }
18218 if test "$supported" = "yes" ; then
18219 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
18220 found="yes"
18221 fi
18222 fi
18223
18224
18225
18226 if test "x$STRICT_COMPILE" = "xyes"; then
18227 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
18228 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
18229 fi
18230
18231
18232
18233
18234
18235
18236 cat >>confdefs.h <<_ACEOF
18237 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
18238 _ACEOF
18239
18240 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
18241 if test "x$PVM" = "x"; then
18242 PVM="0"
18243 fi
18244
18245 cat >>confdefs.h <<_ACEOF
18246 #define PACKAGE_VERSION_MINOR $PVM
18247 _ACEOF
18248
18249 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
18250 if test "x$PVP" = "x"; then
18251 PVP="0"
18252 fi
18253
18254 cat >>confdefs.h <<_ACEOF
18255 #define PACKAGE_VERSION_PATCHLEVEL $PVP
18256 _ACEOF
18257
18258
18259
18260 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
18261 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
18262 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
18263 echo 'git directory not found: installing possibly empty changelog.' >&2)"
18264
18265
18266
18267
18268 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
18269 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
18270 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
18271 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
18272 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
18273
18274
18275
18276
18277
18278
18279 if test x$APP_MAN_SUFFIX = x ; then
18280 APP_MAN_SUFFIX=1
18281 fi
18282 if test x$APP_MAN_DIR = x ; then
18283 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
18284 fi
18285
18286 if test x$LIB_MAN_SUFFIX = x ; then
18287 LIB_MAN_SUFFIX=3
18288 fi
18289 if test x$LIB_MAN_DIR = x ; then
18290 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
18291 fi
18292
18293 if test x$FILE_MAN_SUFFIX = x ; then
18294 case $host_os in
18295 solaris*) FILE_MAN_SUFFIX=4 ;;
18296 *) FILE_MAN_SUFFIX=5 ;;
18297 esac
18298 fi
18299 if test x$FILE_MAN_DIR = x ; then
18300 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
18301 fi
18302
18303 if test x$MISC_MAN_SUFFIX = x ; then
18304 case $host_os in
18305 solaris*) MISC_MAN_SUFFIX=5 ;;
18306 *) MISC_MAN_SUFFIX=7 ;;
18307 esac
18308 fi
18309 if test x$MISC_MAN_DIR = x ; then
18310 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
18311 fi
18312
18313 if test x$DRIVER_MAN_SUFFIX = x ; then
18314 case $host_os in
18315 solaris*) DRIVER_MAN_SUFFIX=7 ;;
18316 *) DRIVER_MAN_SUFFIX=4 ;;
18317 esac
18318 fi
18319 if test x$DRIVER_MAN_DIR = x ; then
18320 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
18321 fi
18322
18323 if test x$ADMIN_MAN_SUFFIX = x ; then
18324 case $host_os in
18325 solaris*) ADMIN_MAN_SUFFIX=1m ;;
18326 *) ADMIN_MAN_SUFFIX=8 ;;
18327 esac
18328 fi
18329 if test x$ADMIN_MAN_DIR = x ; then
18330 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
18331 fi
18332
18333
18334
18335
18336
18337
18338
18339
18340
18341
18342
18343
18344
18345
18346
18347 XORG_MAN_PAGE="X Version 11"
18348
18349 MAN_SUBSTS="\
18350 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
18351 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
18352 -e 's|__xservername__|Xorg|g' \
18353 -e 's|__xconfigfile__|xorg.conf|g' \
18354 -e 's|__projectroot__|\$(prefix)|g' \
18355 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
18356 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
18357 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
18358 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
18359 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
18360 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
18361 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
18362
18363
18364
18365 # Check whether --enable-silent-rules was given.
18366 if test "${enable_silent_rules+set}" = set; then :
18367 enableval=$enable_silent_rules;
18368 fi
18369
18370 case $enable_silent_rules in # (((
18371 yes) AM_DEFAULT_VERBOSITY=0;;
18372 no) AM_DEFAULT_VERBOSITY=1;;
18373 *) AM_DEFAULT_VERBOSITY=0;;
18374 esac
18375 am_make=${MAKE-make}
18376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
18377 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
18378 if ${am_cv_make_support_nested_variables+:} false; then :
18379 $as_echo_n "(cached) " >&6
18380 else
18381 if $as_echo 'TRUE=$(BAR$(V))
18382 BAR0=false
18383 BAR1=true
18384 V=1
18385 am__doit:
18386 @$(TRUE)
18387 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
18388 am_cv_make_support_nested_variables=yes
18389 else
18390 am_cv_make_support_nested_variables=no
18391 fi
18392 fi
18393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
18394 $as_echo "$am_cv_make_support_nested_variables" >&6; }
18395 if test $am_cv_make_support_nested_variables = yes; then
18396 AM_V='$(V)'
18397 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
18398 else
18399 AM_V=$AM_DEFAULT_VERBOSITY
18400 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
18401 fi
18402 AM_BACKSLASH='\'
18403
18404
18405
18406
18407 # Check whether --enable-docs was given.
18408 if test "${enable_docs+set}" = set; then :
18409 enableval=$enable_docs; build_docs=$enableval
18410 else
18411 build_docs=yes
18412 fi
18413
18414
18415 if test x$build_docs = xyes; then
18416 ENABLE_DOCS_TRUE=
18417 ENABLE_DOCS_FALSE='#'
18418 else
18419 ENABLE_DOCS_TRUE='#'
18420 ENABLE_DOCS_FALSE=
18421 fi
18422
18423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build documentation" >&5
18424 $as_echo_n "checking whether to build documentation... " >&6; }
18425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_docs" >&5
18426 $as_echo "$build_docs" >&6; }
18427
18428
18429
18430 # Check whether --enable-specs was given.
18431 if test "${enable_specs+set}" = set; then :
18432 enableval=$enable_specs; build_specs=$enableval
18433 else
18434 build_specs=yes
18435 fi
18436
18437
18438 if test x$build_specs = xyes; then
18439 ENABLE_SPECS_TRUE=
18440 ENABLE_SPECS_FALSE='#'
18441 else
18442 ENABLE_SPECS_TRUE='#'
18443 ENABLE_SPECS_FALSE=
18444 fi
18445
18446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build functional specifications" >&5
18447 $as_echo_n "checking whether to build functional specifications... " >&6; }
18448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_specs" >&5
18449 $as_echo "$build_specs" >&6; }
18450
18451
18452
18453
18454
18455 # Check whether --with-xmlto was given.
18456 if test "${with_xmlto+set}" = set; then :
18457 withval=$with_xmlto; use_xmlto=$withval
18458 else
18459 use_xmlto=auto
18460 fi
18461
18462
18463
18464 if test "x$use_xmlto" = x"auto"; then
18465 # Extract the first word of "xmlto", so it can be a program name with args.
18466 set dummy xmlto; ac_word=$2
18467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18468 $as_echo_n "checking for $ac_word... " >&6; }
18469 if ${ac_cv_path_XMLTO+:} false; then :
18470 $as_echo_n "(cached) " >&6
18471 else
18472 case $XMLTO in
18473 [\\/]* | ?:[\\/]*)
18474 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
18475 ;;
18476 *)
18477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18478 for as_dir in $PATH
18479 do
18480 IFS=$as_save_IFS
18481 test -z "$as_dir" && as_dir=.
18482 for ac_exec_ext in '' $ac_executable_extensions; do
18483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18484 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
18485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18486 break 2
18487 fi
18488 done
18489 done
18490 IFS=$as_save_IFS
18491
18492 ;;
18493 esac
18494 fi
18495 XMLTO=$ac_cv_path_XMLTO
18496 if test -n "$XMLTO"; then
18497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
18498 $as_echo "$XMLTO" >&6; }
18499 else
18500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18501 $as_echo "no" >&6; }
18502 fi
18503
18504
18505 if test "x$XMLTO" = "x"; then
18506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5
18507 $as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;}
18508 have_xmlto=no
18509 else
18510 have_xmlto=yes
18511 fi
18512 elif test "x$use_xmlto" = x"yes" ; then
18513 # Extract the first word of "xmlto", so it can be a program name with args.
18514 set dummy xmlto; ac_word=$2
18515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18516 $as_echo_n "checking for $ac_word... " >&6; }
18517 if ${ac_cv_path_XMLTO+:} false; then :
18518 $as_echo_n "(cached) " >&6
18519 else
18520 case $XMLTO in
18521 [\\/]* | ?:[\\/]*)
18522 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
18523 ;;
18524 *)
18525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18526 for as_dir in $PATH
18527 do
18528 IFS=$as_save_IFS
18529 test -z "$as_dir" && as_dir=.
18530 for ac_exec_ext in '' $ac_executable_extensions; do
18531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18532 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
18533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18534 break 2
18535 fi
18536 done
18537 done
18538 IFS=$as_save_IFS
18539
18540 ;;
18541 esac
18542 fi
18543 XMLTO=$ac_cv_path_XMLTO
18544 if test -n "$XMLTO"; then
18545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
18546 $as_echo "$XMLTO" >&6; }
18547 else
18548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18549 $as_echo "no" >&6; }
18550 fi
18551
18552
18553 if test "x$XMLTO" = "x"; then
18554 as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5
18555 fi
18556 have_xmlto=yes
18557 elif test "x$use_xmlto" = x"no" ; then
18558 if test "x$XMLTO" != "x"; then
18559 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5
18560 $as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;}
18561 fi
18562 have_xmlto=no
18563 else
18564 as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5
18565 fi
18566
18567 # Test for a minimum version of xmlto, if provided.
18568 if test "$have_xmlto" = yes; then
18569 # scrape the xmlto version
18570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5
18571 $as_echo_n "checking the xmlto version... " >&6; }
18572 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3`
18573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5
18574 $as_echo "$xmlto_version" >&6; }
18575 as_arg_v1=$xmlto_version
18576 as_arg_v2=0.0.22
18577 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
18578 case $? in #(
18579 1) :
18580 if test "x$use_xmlto" = xauto; then
18581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5
18582 $as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;}
18583 have_xmlto=no
18584 else
18585 as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5
18586 fi ;; #(
18587 0) :
18588 ;; #(
18589 2) :
18590 ;; #(
18591 *) :
18592 ;;
18593 esac
18594 fi
18595
18596 # Test for the ability of xmlto to generate a text target
18597 #
18598 # NOTE: xmlto 0.0.27 or higher return a non-zero return code in the
18599 # following test for empty XML docbook files.
18600 # For compatibility reasons use the following empty XML docbook file and if
18601 # it fails try it again with a non-empty XML file.
18602 have_xmlto_text=no
18603 cat > conftest.xml << "EOF"
18604 EOF
18605 if test "$have_xmlto" = yes; then :
18606 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then :
18607 have_xmlto_text=yes
18608 else
18609 # Try it again with a non-empty XML file.
18610 cat > conftest.xml << "EOF"
18611 <x></x>
18612 EOF
18613 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then :
18614 have_xmlto_text=yes
18615 else
18616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5
18617 $as_echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;}
18618 fi
18619 fi
18620 fi
18621 rm -f conftest.xml
18622 if test $have_xmlto_text = yes; then
18623 HAVE_XMLTO_TEXT_TRUE=
18624 HAVE_XMLTO_TEXT_FALSE='#'
18625 else
18626 HAVE_XMLTO_TEXT_TRUE='#'
18627 HAVE_XMLTO_TEXT_FALSE=
18628 fi
18629
18630 if test "$have_xmlto" = yes; then
18631 HAVE_XMLTO_TRUE=
18632 HAVE_XMLTO_FALSE='#'
18633 else
18634 HAVE_XMLTO_TRUE='#'
18635 HAVE_XMLTO_FALSE=
18636 fi
18637
18638
18639
18640
18641
18642
18643 # Check whether --with-fop was given.
18644 if test "${with_fop+set}" = set; then :
18645 withval=$with_fop; use_fop=$withval
18646 else
18647 use_fop=auto
18648 fi
18649
18650
18651
18652 if test "x$use_fop" = x"auto"; then
18653 # Extract the first word of "fop", so it can be a program name with args.
18654 set dummy fop; ac_word=$2
18655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18656 $as_echo_n "checking for $ac_word... " >&6; }
18657 if ${ac_cv_path_FOP+:} false; then :
18658 $as_echo_n "(cached) " >&6
18659 else
18660 case $FOP in
18661 [\\/]* | ?:[\\/]*)
18662 ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
18663 ;;
18664 *)
18665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18666 for as_dir in $PATH
18667 do
18668 IFS=$as_save_IFS
18669 test -z "$as_dir" && as_dir=.
18670 for ac_exec_ext in '' $ac_executable_extensions; do
18671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18672 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
18673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18674 break 2
18675 fi
18676 done
18677 done
18678 IFS=$as_save_IFS
18679
18680 ;;
18681 esac
18682 fi
18683 FOP=$ac_cv_path_FOP
18684 if test -n "$FOP"; then
18685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
18686 $as_echo "$FOP" >&6; }
18687 else
18688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18689 $as_echo "no" >&6; }
18690 fi
18691
18692
18693 if test "x$FOP" = "x"; then
18694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5
18695 $as_echo "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;}
18696 have_fop=no
18697 else
18698 have_fop=yes
18699 fi
18700 elif test "x$use_fop" = x"yes" ; then
18701 # Extract the first word of "fop", so it can be a program name with args.
18702 set dummy fop; ac_word=$2
18703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18704 $as_echo_n "checking for $ac_word... " >&6; }
18705 if ${ac_cv_path_FOP+:} false; then :
18706 $as_echo_n "(cached) " >&6
18707 else
18708 case $FOP in
18709 [\\/]* | ?:[\\/]*)
18710 ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
18711 ;;
18712 *)
18713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18714 for as_dir in $PATH
18715 do
18716 IFS=$as_save_IFS
18717 test -z "$as_dir" && as_dir=.
18718 for ac_exec_ext in '' $ac_executable_extensions; do
18719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18720 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
18721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18722 break 2
18723 fi
18724 done
18725 done
18726 IFS=$as_save_IFS
18727
18728 ;;
18729 esac
18730 fi
18731 FOP=$ac_cv_path_FOP
18732 if test -n "$FOP"; then
18733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
18734 $as_echo "$FOP" >&6; }
18735 else
18736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18737 $as_echo "no" >&6; }
18738 fi
18739
18740
18741 if test "x$FOP" = "x"; then
18742 as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5
18743 fi
18744 have_fop=yes
18745 elif test "x$use_fop" = x"no" ; then
18746 if test "x$FOP" != "x"; then
18747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5
18748 $as_echo "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;}
18749 fi
18750 have_fop=no
18751 else
18752 as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5
18753 fi
18754
18755 # Test for a minimum version of fop, if provided.
18756
18757 if test "$have_fop" = yes; then
18758 HAVE_FOP_TRUE=
18759 HAVE_FOP_FALSE='#'
18760 else
18761 HAVE_FOP_TRUE='#'
18762 HAVE_FOP_FALSE=
18763 fi
18764
18765
18766
18767
18768 # Preserves the interface, should it be implemented later
18769
18770
18771
18772 # Check whether --with-xsltproc was given.
18773 if test "${with_xsltproc+set}" = set; then :
18774 withval=$with_xsltproc; use_xsltproc=$withval
18775 else
18776 use_xsltproc=auto
18777 fi
18778
18779
18780
18781 if test "x$use_xsltproc" = x"auto"; then
18782 # Extract the first word of "xsltproc", so it can be a program name with args.
18783 set dummy xsltproc; ac_word=$2
18784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18785 $as_echo_n "checking for $ac_word... " >&6; }
18786 if ${ac_cv_path_XSLTPROC+:} false; then :
18787 $as_echo_n "(cached) " >&6
18788 else
18789 case $XSLTPROC in
18790 [\\/]* | ?:[\\/]*)
18791 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
18792 ;;
18793 *)
18794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18795 for as_dir in $PATH
18796 do
18797 IFS=$as_save_IFS
18798 test -z "$as_dir" && as_dir=.
18799 for ac_exec_ext in '' $ac_executable_extensions; do
18800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18801 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
18802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18803 break 2
18804 fi
18805 done
18806 done
18807 IFS=$as_save_IFS
18808
18809 ;;
18810 esac
18811 fi
18812 XSLTPROC=$ac_cv_path_XSLTPROC
18813 if test -n "$XSLTPROC"; then
18814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
18815 $as_echo "$XSLTPROC" >&6; }
18816 else
18817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18818 $as_echo "no" >&6; }
18819 fi
18820
18821
18822 if test "x$XSLTPROC" = "x"; then
18823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5
18824 $as_echo "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;}
18825 have_xsltproc=no
18826 else
18827 have_xsltproc=yes
18828 fi
18829 elif test "x$use_xsltproc" = x"yes" ; then
18830 # Extract the first word of "xsltproc", so it can be a program name with args.
18831 set dummy xsltproc; ac_word=$2
18832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18833 $as_echo_n "checking for $ac_word... " >&6; }
18834 if ${ac_cv_path_XSLTPROC+:} false; then :
18835 $as_echo_n "(cached) " >&6
18836 else
18837 case $XSLTPROC in
18838 [\\/]* | ?:[\\/]*)
18839 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
18840 ;;
18841 *)
18842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18843 for as_dir in $PATH
18844 do
18845 IFS=$as_save_IFS
18846 test -z "$as_dir" && as_dir=.
18847 for ac_exec_ext in '' $ac_executable_extensions; do
18848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18849 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
18850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18851 break 2
18852 fi
18853 done
18854 done
18855 IFS=$as_save_IFS
18856
18857 ;;
18858 esac
18859 fi
18860 XSLTPROC=$ac_cv_path_XSLTPROC
18861 if test -n "$XSLTPROC"; then
18862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
18863 $as_echo "$XSLTPROC" >&6; }
18864 else
18865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18866 $as_echo "no" >&6; }
18867 fi
18868
18869
18870 if test "x$XSLTPROC" = "x"; then
18871 as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5
18872 fi
18873 have_xsltproc=yes
18874 elif test "x$use_xsltproc" = x"no" ; then
18875 if test "x$XSLTPROC" != "x"; then
18876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5
18877 $as_echo "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;}
18878 fi
18879 have_xsltproc=no
18880 else
18881 as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5
18882 fi
18883
18884 if test "$have_xsltproc" = yes; then
18885 HAVE_XSLTPROC_TRUE=
18886 HAVE_XSLTPROC_FALSE='#'
18887 else
18888 HAVE_XSLTPROC_TRUE='#'
18889 HAVE_XSLTPROC_FALSE=
18890 fi
18891
18892
18893
18894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.8" >&5
18895 $as_echo_n "checking for X.Org SGML entities >= 1.8... " >&6; }
18896 XORG_SGML_PATH=
18897 if test -n "$PKG_CONFIG" && \
18898 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.8\""; } >&5
18899 ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.8") 2>&5
18900 ac_status=$?
18901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18902 test $ac_status = 0; }; then
18903 XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`
18904 else
18905 :
18906
18907 fi
18908
18909 # Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing
18910 # the path and the name of the doc stylesheet
18911 if test "x$XORG_SGML_PATH" != "x" ; then
18912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5
18913 $as_echo "$XORG_SGML_PATH" >&6; }
18914 STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11
18915 XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl
18916 else
18917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18918 $as_echo "no" >&6; }
18919 fi
18920
18921
18922
18923
18924 if test "x$XSL_STYLESHEET" != "x"; then
18925 HAVE_STYLESHEETS_TRUE=
18926 HAVE_STYLESHEETS_FALSE='#'
18927 else
18928 HAVE_STYLESHEETS_TRUE='#'
18929 HAVE_STYLESHEETS_FALSE=
18930 fi
18931
18932
18933
18934
18935
18936
18937 # Check whether --with-asciidoc was given.
18938 if test "${with_asciidoc+set}" = set; then :
18939 withval=$with_asciidoc; use_asciidoc=$withval
18940 else
18941 use_asciidoc=auto
18942 fi
18943
18944
18945
18946 if test "x$use_asciidoc" = x"auto"; then
18947 # Extract the first word of "asciidoc", so it can be a program name with args.
18948 set dummy asciidoc; ac_word=$2
18949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18950 $as_echo_n "checking for $ac_word... " >&6; }
18951 if ${ac_cv_path_ASCIIDOC+:} false; then :
18952 $as_echo_n "(cached) " >&6
18953 else
18954 case $ASCIIDOC in
18955 [\\/]* | ?:[\\/]*)
18956 ac_cv_path_ASCIIDOC="$ASCIIDOC" # Let the user override the test with a path.
18957 ;;
18958 *)
18959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18960 for as_dir in $PATH
18961 do
18962 IFS=$as_save_IFS
18963 test -z "$as_dir" && as_dir=.
18964 for ac_exec_ext in '' $ac_executable_extensions; do
18965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18966 ac_cv_path_ASCIIDOC="$as_dir/$ac_word$ac_exec_ext"
18967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18968 break 2
18969 fi
18970 done
18971 done
18972 IFS=$as_save_IFS
18973
18974 ;;
18975 esac
18976 fi
18977 ASCIIDOC=$ac_cv_path_ASCIIDOC
18978 if test -n "$ASCIIDOC"; then
18979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ASCIIDOC" >&5
18980 $as_echo "$ASCIIDOC" >&6; }
18981 else
18982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18983 $as_echo "no" >&6; }
18984 fi
18985
18986
18987 if test "x$ASCIIDOC" = "x"; then
18988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: asciidoc not found - documentation targets will be skipped" >&5
18989 $as_echo "$as_me: WARNING: asciidoc not found - documentation targets will be skipped" >&2;}
18990 have_asciidoc=no
18991 else
18992 have_asciidoc=yes
18993 fi
18994 elif test "x$use_asciidoc" = x"yes" ; then
18995 # Extract the first word of "asciidoc", so it can be a program name with args.
18996 set dummy asciidoc; ac_word=$2
18997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18998 $as_echo_n "checking for $ac_word... " >&6; }
18999 if ${ac_cv_path_ASCIIDOC+:} false; then :
19000 $as_echo_n "(cached) " >&6
19001 else
19002 case $ASCIIDOC in
19003 [\\/]* | ?:[\\/]*)
19004 ac_cv_path_ASCIIDOC="$ASCIIDOC" # Let the user override the test with a path.
19005 ;;
19006 *)
19007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19008 for as_dir in $PATH
19009 do
19010 IFS=$as_save_IFS
19011 test -z "$as_dir" && as_dir=.
19012 for ac_exec_ext in '' $ac_executable_extensions; do
19013 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19014 ac_cv_path_ASCIIDOC="$as_dir/$ac_word$ac_exec_ext"
19015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19016 break 2
19017 fi
19018 done
19019 done
19020 IFS=$as_save_IFS
19021
19022 ;;
19023 esac
19024 fi
19025 ASCIIDOC=$ac_cv_path_ASCIIDOC
19026 if test -n "$ASCIIDOC"; then
19027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ASCIIDOC" >&5
19028 $as_echo "$ASCIIDOC" >&6; }
19029 else
19030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19031 $as_echo "no" >&6; }
19032 fi
19033
19034
19035 if test "x$ASCIIDOC" = "x"; then
19036 as_fn_error $? "--with-asciidoc=yes specified but asciidoc not found in PATH" "$LINENO" 5
19037 fi
19038 have_asciidoc=yes
19039 elif test "x$use_asciidoc" = x"no" ; then
19040 if test "x$ASCIIDOC" != "x"; then
19041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring ASCIIDOC environment variable since --with-asciidoc=no was specified" >&5
19042 $as_echo "$as_me: WARNING: ignoring ASCIIDOC environment variable since --with-asciidoc=no was specified" >&2;}
19043 fi
19044 have_asciidoc=no
19045 else
19046 as_fn_error $? "--with-asciidoc expects 'yes' or 'no'" "$LINENO" 5
19047 fi
19048 if test "$have_asciidoc" = yes; then
19049 # scrape the asciidoc version
19050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the asciidoc version" >&5
19051 $as_echo_n "checking the asciidoc version... " >&6; }
19052 asciidoc_version=`$ASCIIDOC --version 2>/dev/null | cut -d' ' -f2`
19053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $asciidoc_version" >&5
19054 $as_echo "$asciidoc_version" >&6; }
19055 as_arg_v1=$asciidoc_version
19056 as_arg_v2=8.4.5
19057 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
19058 case $? in #(
19059 1) :
19060 if test "x$use_asciidoc" = xauto; then
19061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: asciidoc version $asciidoc_version found, but 8.4.5 needed" >&5
19062 $as_echo "$as_me: WARNING: asciidoc version $asciidoc_version found, but 8.4.5 needed" >&2;}
19063 have_asciidoc=no
19064 else
19065 as_fn_error $? "asciidoc version $asciidoc_version found, but 8.4.5 needed" "$LINENO" 5
19066 fi ;; #(
19067 0) :
19068 ;; #(
19069 2) :
19070 ;; #(
19071 *) :
19072 ;;
19073 esac
19074 fi
19075 if test "$have_asciidoc" = yes; then
19076 HAVE_ASCIIDOC_TRUE=
19077 HAVE_ASCIIDOC_FALSE='#'
19078 else
19079 HAVE_ASCIIDOC_TRUE='#'
19080 HAVE_ASCIIDOC_FALSE=
19081 fi
19082
19083
19084
19085 # Check whether --enable-malloc0returnsnull was given.
19086 if test "${enable_malloc0returnsnull+set}" = set; then :
19087 enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval
19088 else
19089 MALLOC_ZERO_RETURNS_NULL=auto
19090 fi
19091
19092
19093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5
19094 $as_echo_n "checking whether malloc(0) returns NULL... " >&6; }
19095 if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
19096 if ${xorg_cv_malloc0_returns_null+:} false; then :
19097 $as_echo_n "(cached) " >&6
19098 else
19099 if test "$cross_compiling" = yes; then :
19100 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19101 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19102 as_fn_error $? "cannot run test program while cross compiling
19103 See \`config.log' for more details" "$LINENO" 5; }
19104 else
19105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19106 /* end confdefs.h. */
19107
19108 #include <stdlib.h>
19109
19110 int
19111 main ()
19112 {
19113
19114 char *m0, *r0, *c0, *p;
19115 m0 = malloc(0);
19116 p = malloc(10);
19117 r0 = realloc(p,0);
19118 c0 = calloc(0,10);
19119 exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1);
19120
19121 ;
19122 return 0;
19123 }
19124 _ACEOF
19125 if ac_fn_c_try_run "$LINENO"; then :
19126 xorg_cv_malloc0_returns_null=yes
19127 else
19128 xorg_cv_malloc0_returns_null=no
19129 fi
19130 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19131 conftest.$ac_objext conftest.beam conftest.$ac_ext
19132 fi
19133
19134 fi
19135
19136 MALLOC_ZERO_RETURNS_NULL=$xorg_cv_malloc0_returns_null
19137 fi
19138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5
19139 $as_echo "$MALLOC_ZERO_RETURNS_NULL" >&6; }
19140
19141 if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
19142 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
19143 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
19144 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
19145 else
19146 MALLOC_ZERO_CFLAGS=""
19147 XMALLOC_ZERO_CFLAGS=""
19148 XTMALLOC_ZERO_CFLAGS=""
19149 fi
19150
19151
19152
19153
19154
19155
19156 # Obtain compiler/linker options for dependencies
19157
19158 pkg_failed=no
19159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XI" >&5
19160 $as_echo_n "checking for XI... " >&6; }
19161
19162 if test -n "$XI_CFLAGS"; then
19163 pkg_cv_XI_CFLAGS="$XI_CFLAGS"
19164 elif test -n "$PKG_CONFIG"; then
19165 if test -n "$PKG_CONFIG" && \
19166 { { $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.3.99.1\""; } >&5
19167 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.3.99.1") 2>&5
19168 ac_status=$?
19169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19170 test $ac_status = 0; }; then
19171 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.3.99.1" 2>/dev/null`
19172 test "x$?" != "x0" && pkg_failed=yes
19173 else
19174 pkg_failed=yes
19175 fi
19176 else
19177 pkg_failed=untried
19178 fi
19179 if test -n "$XI_LIBS"; then
19180 pkg_cv_XI_LIBS="$XI_LIBS"
19181 elif test -n "$PKG_CONFIG"; then
19182 if test -n "$PKG_CONFIG" && \
19183 { { $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.3.99.1\""; } >&5
19184 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.3.99.1") 2>&5
19185 ac_status=$?
19186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19187 test $ac_status = 0; }; then
19188 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.3.99.1" 2>/dev/null`
19189 test "x$?" != "x0" && pkg_failed=yes
19190 else
19191 pkg_failed=yes
19192 fi
19193 else
19194 pkg_failed=untried
19195 fi
19196
19197
19198
19199 if test $pkg_failed = yes; then
19200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19201 $as_echo "no" >&6; }
19202
19203 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19204 _pkg_short_errors_supported=yes
19205 else
19206 _pkg_short_errors_supported=no
19207 fi
19208 if test $_pkg_short_errors_supported = yes; then
19209 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.3.99.1" 2>&1`
19210 else
19211 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.3.99.1" 2>&1`
19212 fi
19213 # Put the nasty error message in config.log where it belongs
19214 echo "$XI_PKG_ERRORS" >&5
19215
19216 as_fn_error $? "Package requirements (xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.3.99.1) were not met:
19217
19218 $XI_PKG_ERRORS
19219
19220 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19221 installed software in a non-standard prefix.
19222
19223 Alternatively, you may set the environment variables XI_CFLAGS
19224 and XI_LIBS to avoid the need to call pkg-config.
19225 See the pkg-config man page for more details." "$LINENO" 5
19226 elif test $pkg_failed = untried; then
19227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19228 $as_echo "no" >&6; }
19229 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19230 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19231 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19232 is in your PATH or set the PKG_CONFIG environment variable to the full
19233 path to pkg-config.
19234
19235 Alternatively, you may set the environment variables XI_CFLAGS
19236 and XI_LIBS to avoid the need to call pkg-config.
19237 See the pkg-config man page for more details.
19238
19239 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19240 See \`config.log' for more details" "$LINENO" 5; }
19241 else
19242 XI_CFLAGS=$pkg_cv_XI_CFLAGS
19243 XI_LIBS=$pkg_cv_XI_LIBS
19244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19245 $as_echo "yes" >&6; }
19246
19247 fi
19248 # CFLAGS only for PointerBarrier typedef
19249
19250 pkg_failed=no
19251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XFIXES" >&5
19252 $as_echo_n "checking for XFIXES... " >&6; }
19253
19254 if test -n "$XFIXES_CFLAGS"; then
19255 pkg_cv_XFIXES_CFLAGS="$XFIXES_CFLAGS"
19256 elif test -n "$PKG_CONFIG"; then
19257 if test -n "$PKG_CONFIG" && \
19258 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xfixes >= 5\""; } >&5
19259 ($PKG_CONFIG --exists --print-errors "xfixes >= 5") 2>&5
19260 ac_status=$?
19261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19262 test $ac_status = 0; }; then
19263 pkg_cv_XFIXES_CFLAGS=`$PKG_CONFIG --cflags "xfixes >= 5" 2>/dev/null`
19264 test "x$?" != "x0" && pkg_failed=yes
19265 else
19266 pkg_failed=yes
19267 fi
19268 else
19269 pkg_failed=untried
19270 fi
19271 if test -n "$XFIXES_LIBS"; then
19272 pkg_cv_XFIXES_LIBS="$XFIXES_LIBS"
19273 elif test -n "$PKG_CONFIG"; then
19274 if test -n "$PKG_CONFIG" && \
19275 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xfixes >= 5\""; } >&5
19276 ($PKG_CONFIG --exists --print-errors "xfixes >= 5") 2>&5
19277 ac_status=$?
19278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19279 test $ac_status = 0; }; then
19280 pkg_cv_XFIXES_LIBS=`$PKG_CONFIG --libs "xfixes >= 5" 2>/dev/null`
19281 test "x$?" != "x0" && pkg_failed=yes
19282 else
19283 pkg_failed=yes
19284 fi
19285 else
19286 pkg_failed=untried
19287 fi
19288
19289
19290
19291 if test $pkg_failed = yes; then
19292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19293 $as_echo "no" >&6; }
19294
19295 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19296 _pkg_short_errors_supported=yes
19297 else
19298 _pkg_short_errors_supported=no
19299 fi
19300 if test $_pkg_short_errors_supported = yes; then
19301 XFIXES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xfixes >= 5" 2>&1`
19302 else
19303 XFIXES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xfixes >= 5" 2>&1`
19304 fi
19305 # Put the nasty error message in config.log where it belongs
19306 echo "$XFIXES_PKG_ERRORS" >&5
19307
19308 as_fn_error $? "Package requirements (xfixes >= 5) were not met:
19309
19310 $XFIXES_PKG_ERRORS
19311
19312 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19313 installed software in a non-standard prefix.
19314
19315 Alternatively, you may set the environment variables XFIXES_CFLAGS
19316 and XFIXES_LIBS to avoid the need to call pkg-config.
19317 See the pkg-config man page for more details." "$LINENO" 5
19318 elif test $pkg_failed = untried; then
19319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19320 $as_echo "no" >&6; }
19321 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19322 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19323 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19324 is in your PATH or set the PKG_CONFIG environment variable to the full
19325 path to pkg-config.
19326
19327 Alternatively, you may set the environment variables XFIXES_CFLAGS
19328 and XFIXES_LIBS to avoid the need to call pkg-config.
19329 See the pkg-config man page for more details.
19330
19331 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19332 See \`config.log' for more details" "$LINENO" 5; }
19333 else
19334 XFIXES_CFLAGS=$pkg_cv_XFIXES_CFLAGS
19335 XFIXES_LIBS=$pkg_cv_XFIXES_LIBS
19336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19337 $as_echo "yes" >&6; }
19338
19339 fi
19340
19341 # Check for xmlto and asciidoc for man page conversion
19342 # (only needed by people building tarballs)
19343 if test "$have_xmlto" = yes && test "$have_asciidoc" = yes; then
19344 have_doctools=yes
19345 else
19346 have_doctools=no
19347 fi
19348 if test $have_doctools = yes; then
19349 HAVE_DOCTOOLS_TRUE=
19350 HAVE_DOCTOOLS_FALSE='#'
19351 else
19352 HAVE_DOCTOOLS_TRUE='#'
19353 HAVE_DOCTOOLS_FALSE=
19354 fi
19355
19356 if test $have_doctools = no; then
19357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto or asciidoc not found - cannot create man pages without it" >&5
19358 $as_echo "$as_me: WARNING: xmlto or asciidoc not found - cannot create man pages without it" >&2;}
19359 fi
19360
19361 # Determine if the source for man pages is available
19362 # It may already be present (tarball) or can be generated using doctools
19363 if test -f "$srcdir/man/XAllowDeviceEvents.man" || \
19364 test $have_doctools = yes; then
19365 INSTALL_MANPAGES_TRUE=
19366 INSTALL_MANPAGES_FALSE='#'
19367 else
19368 INSTALL_MANPAGES_TRUE='#'
19369 INSTALL_MANPAGES_FALSE=
19370 fi
19371
19372
19373 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile specs/Makefile xi.pc"
19374
19375 cat >confcache <<\_ACEOF
19376 # This file is a shell script that caches the results of configure
19377 # tests run on this system so they can be shared between configure
19378 # scripts and configure runs, see configure's option --config-cache.
19379 # It is not useful on other systems. If it contains results you don't
19380 # want to keep, you may remove or edit it.
19381 #
19382 # config.status only pays attention to the cache file if you give it
19383 # the --recheck option to rerun configure.
19384 #
19385 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19386 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19387 # following values.
19388
19389 _ACEOF
19390
19391 # The following way of writing the cache mishandles newlines in values,
19392 # but we know of no workaround that is simple, portable, and efficient.
19393 # So, we kill variables containing newlines.
19394 # Ultrix sh set writes to stderr and can't be redirected directly,
19395 # and sets the high bit in the cache file unless we assign to the vars.
19396 (
19397 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19398 eval ac_val=\$$ac_var
19399 case $ac_val in #(
19400 *${as_nl}*)
19401 case $ac_var in #(
19402 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19403 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19404 esac
19405 case $ac_var in #(
19406 _ | IFS | as_nl) ;; #(
19407 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19408 *) { eval $ac_var=; unset $ac_var;} ;;
19409 esac ;;
19410 esac
19411 done
19412
19413 (set) 2>&1 |
19414 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19415 *${as_nl}ac_space=\ *)
19416 # `set' does not quote correctly, so add quotes: double-quote
19417 # substitution turns \\\\ into \\, and sed turns \\ into \.
19418 sed -n \
19419 "s/'/'\\\\''/g;
19420 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19421 ;; #(
19422 *)
19423 # `set' quotes correctly as required by POSIX, so do not add quotes.
19424 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19425 ;;
19426 esac |
19427 sort
19428 ) |
19429 sed '
19430 /^ac_cv_env_/b end
19431 t clear
19432 :clear
19433 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19434 t end
19435 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19436 :end' >>confcache
19437 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19438 if test -w "$cache_file"; then
19439 if test "x$cache_file" != "x/dev/null"; then
19440 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19441 $as_echo "$as_me: updating cache $cache_file" >&6;}
19442 if test ! -f "$cache_file" || test -h "$cache_file"; then
19443 cat confcache >"$cache_file"
19444 else
19445 case $cache_file in #(
19446 */* | ?:*)
19447 mv -f confcache "$cache_file"$$ &&
19448 mv -f "$cache_file"$$ "$cache_file" ;; #(
19449 *)
19450 mv -f confcache "$cache_file" ;;
19451 esac
19452 fi
19453 fi
19454 else
19455 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19456 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19457 fi
19458 fi
19459 rm -f confcache
19460
19461 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19462 # Let make expand exec_prefix.
19463 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19464
19465 DEFS=-DHAVE_CONFIG_H
19466
19467 ac_libobjs=
19468 ac_ltlibobjs=
19469 U=
19470 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19471 # 1. Remove the extension, and $U if already installed.
19472 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19473 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19474 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19475 # will be set to the directory where LIBOBJS objects are built.
19476 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19477 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19478 done
19479 LIBOBJS=$ac_libobjs
19480
19481 LTLIBOBJS=$ac_ltlibobjs
19482
19483
19484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19485 $as_echo_n "checking that generated files are newer than configure... " >&6; }
19486 if test -n "$am_sleep_pid"; then
19487 # Hide warnings about reused PIDs.
19488 wait $am_sleep_pid 2>/dev/null
19489 fi
19490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19491 $as_echo "done" >&6; }
19492 if test -n "$EXEEXT"; then
19493 am__EXEEXT_TRUE=
19494 am__EXEEXT_FALSE='#'
19495 else
19496 am__EXEEXT_TRUE='#'
19497 am__EXEEXT_FALSE=
19498 fi
19499
19500 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19501 as_fn_error $? "conditional \"AMDEP\" was never defined.
19502 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19503 fi
19504 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19505 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19506 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19507 fi
19508 if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then
19509 as_fn_error $? "conditional \"ENABLE_DOCS\" was never defined.
19510 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19511 fi
19512 if test -z "${ENABLE_SPECS_TRUE}" && test -z "${ENABLE_SPECS_FALSE}"; then
19513 as_fn_error $? "conditional \"ENABLE_SPECS\" was never defined.
19514 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19515 fi
19516 if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then
19517 as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined.
19518 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19519 fi
19520 if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
19521 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
19522 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19523 fi
19524 if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
19525 as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
19526 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19527 fi
19528 if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then
19529 as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined.
19530 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19531 fi
19532 if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then
19533 as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined.
19534 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19535 fi
19536 if test -z "${HAVE_ASCIIDOC_TRUE}" && test -z "${HAVE_ASCIIDOC_FALSE}"; then
19537 as_fn_error $? "conditional \"HAVE_ASCIIDOC\" was never defined.
19538 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19539 fi
19540 if test -z "${HAVE_DOCTOOLS_TRUE}" && test -z "${HAVE_DOCTOOLS_FALSE}"; then
19541 as_fn_error $? "conditional \"HAVE_DOCTOOLS\" was never defined.
19542 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19543 fi
19544 if test -z "${INSTALL_MANPAGES_TRUE}" && test -z "${INSTALL_MANPAGES_FALSE}"; then
19545 as_fn_error $? "conditional \"INSTALL_MANPAGES\" was never defined.
19546 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19547 fi
19548
19549 : "${CONFIG_STATUS=./config.status}"
19550 ac_write_fail=0
19551 ac_clean_files_save=$ac_clean_files
19552 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19553 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19554 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19555 as_write_fail=0
19556 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19557 #! $SHELL
19558 # Generated by $as_me.
19559 # Run this file to recreate the current configuration.
19560 # Compiler output produced by configure, useful for debugging
19561 # configure, is in config.log if it exists.
19562
19563 debug=false
19564 ac_cs_recheck=false
19565 ac_cs_silent=false
19566
19567 SHELL=\${CONFIG_SHELL-$SHELL}
19568 export SHELL
19569 _ASEOF
19570 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19571 ## -------------------- ##
19572 ## M4sh Initialization. ##
19573 ## -------------------- ##
19574
19575 # Be more Bourne compatible
19576 DUALCASE=1; export DUALCASE # for MKS sh
19577 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19578 emulate sh
19579 NULLCMD=:
19580 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19581 # is contrary to our usage. Disable this feature.
19582 alias -g '${1+"$@"}'='"$@"'
19583 setopt NO_GLOB_SUBST
19584 else
19585 case `(set -o) 2>/dev/null` in #(
19586 *posix*) :
19587 set -o posix ;; #(
19588 *) :
19589 ;;
19590 esac
19591 fi
19592
19593
19594 as_nl='
19595 '
19596 export as_nl
19597 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19598 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19599 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19600 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19601 # Prefer a ksh shell builtin over an external printf program on Solaris,
19602 # but without wasting forks for bash or zsh.
19603 if test -z "$BASH_VERSION$ZSH_VERSION" \
19604 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19605 as_echo='print -r --'
19606 as_echo_n='print -rn --'
19607 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19608 as_echo='printf %s\n'
19609 as_echo_n='printf %s'
19610 else
19611 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19612 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19613 as_echo_n='/usr/ucb/echo -n'
19614 else
19615 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19616 as_echo_n_body='eval
19617 arg=$1;
19618 case $arg in #(
19619 *"$as_nl"*)
19620 expr "X$arg" : "X\\(.*\\)$as_nl";
19621 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19622 esac;
19623 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19624 '
19625 export as_echo_n_body
19626 as_echo_n='sh -c $as_echo_n_body as_echo'
19627 fi
19628 export as_echo_body
19629 as_echo='sh -c $as_echo_body as_echo'
19630 fi
19631
19632 # The user is always right.
19633 if test "${PATH_SEPARATOR+set}" != set; then
19634 PATH_SEPARATOR=:
19635 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19636 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19637 PATH_SEPARATOR=';'
19638 }
19639 fi
19640
19641
19642 # IFS
19643 # We need space, tab and new line, in precisely that order. Quoting is
19644 # there to prevent editors from complaining about space-tab.
19645 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19646 # splitting by setting IFS to empty value.)
19647 IFS=" "" $as_nl"
19648
19649 # Find who we are. Look in the path if we contain no directory separator.
19650 as_myself=
19651 case $0 in #((
19652 *[\\/]* ) as_myself=$0 ;;
19653 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19654 for as_dir in $PATH
19655 do
19656 IFS=$as_save_IFS
19657 test -z "$as_dir" && as_dir=.
19658 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19659 done
19660 IFS=$as_save_IFS
19661
19662 ;;
19663 esac
19664 # We did not find ourselves, most probably we were run as `sh COMMAND'
19665 # in which case we are not to be found in the path.
19666 if test "x$as_myself" = x; then
19667 as_myself=$0
19668 fi
19669 if test ! -f "$as_myself"; then
19670 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19671 exit 1
19672 fi
19673
19674 # Unset variables that we do not need and which cause bugs (e.g. in
19675 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19676 # suppresses any "Segmentation fault" message there. '((' could
19677 # trigger a bug in pdksh 5.2.14.
19678 for as_var in BASH_ENV ENV MAIL MAILPATH
19679 do eval test x\${$as_var+set} = xset \
19680 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19681 done
19682 PS1='$ '
19683 PS2='> '
19684 PS4='+ '
19685
19686 # NLS nuisances.
19687 LC_ALL=C
19688 export LC_ALL
19689 LANGUAGE=C
19690 export LANGUAGE
19691
19692 # CDPATH.
19693 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19694
19695
19696 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19697 # ----------------------------------------
19698 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19699 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19700 # script with STATUS, using 1 if that was 0.
19701 as_fn_error ()
19702 {
19703 as_status=$1; test $as_status -eq 0 && as_status=1
19704 if test "$4"; then
19705 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19706 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19707 fi
19708 $as_echo "$as_me: error: $2" >&2
19709 as_fn_exit $as_status
19710 } # as_fn_error
19711
19712
19713 # as_fn_set_status STATUS
19714 # -----------------------
19715 # Set $? to STATUS, without forking.
19716 as_fn_set_status ()
19717 {
19718 return $1
19719 } # as_fn_set_status
19720
19721 # as_fn_exit STATUS
19722 # -----------------
19723 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19724 as_fn_exit ()
19725 {
19726 set +e
19727 as_fn_set_status $1
19728 exit $1
19729 } # as_fn_exit
19730
19731 # as_fn_unset VAR
19732 # ---------------
19733 # Portably unset VAR.
19734 as_fn_unset ()
19735 {
19736 { eval $1=; unset $1;}
19737 }
19738 as_unset=as_fn_unset
19739 # as_fn_append VAR VALUE
19740 # ----------------------
19741 # Append the text in VALUE to the end of the definition contained in VAR. Take
19742 # advantage of any shell optimizations that allow amortized linear growth over
19743 # repeated appends, instead of the typical quadratic growth present in naive
19744 # implementations.
19745 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19746 eval 'as_fn_append ()
19747 {
19748 eval $1+=\$2
19749 }'
19750 else
19751 as_fn_append ()
19752 {
19753 eval $1=\$$1\$2
19754 }
19755 fi # as_fn_append
19756
19757 # as_fn_arith ARG...
19758 # ------------------
19759 # Perform arithmetic evaluation on the ARGs, and store the result in the
19760 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19761 # must be portable across $(()) and expr.
19762 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19763 eval 'as_fn_arith ()
19764 {
19765 as_val=$(( $* ))
19766 }'
19767 else
19768 as_fn_arith ()
19769 {
19770 as_val=`expr "$@" || test $? -eq 1`
19771 }
19772 fi # as_fn_arith
19773
19774
19775 if expr a : '\(a\)' >/dev/null 2>&1 &&
19776 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19777 as_expr=expr
19778 else
19779 as_expr=false
19780 fi
19781
19782 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19783 as_basename=basename
19784 else
19785 as_basename=false
19786 fi
19787
19788 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19789 as_dirname=dirname
19790 else
19791 as_dirname=false
19792 fi
19793
19794 as_me=`$as_basename -- "$0" ||
19795 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19796 X"$0" : 'X\(//\)$' \| \
19797 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19798 $as_echo X/"$0" |
19799 sed '/^.*\/\([^/][^/]*\)\/*$/{
19800 s//\1/
19801 q
19802 }
19803 /^X\/\(\/\/\)$/{
19804 s//\1/
19805 q
19806 }
19807 /^X\/\(\/\).*/{
19808 s//\1/
19809 q
19810 }
19811 s/.*/./; q'`
19812
19813 # Avoid depending upon Character Ranges.
19814 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19815 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19816 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19817 as_cr_digits='0123456789'
19818 as_cr_alnum=$as_cr_Letters$as_cr_digits
19819
19820 ECHO_C= ECHO_N= ECHO_T=
19821 case `echo -n x` in #(((((
19822 -n*)
19823 case `echo 'xy\c'` in
19824 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19825 xy) ECHO_C='\c';;
19826 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19827 ECHO_T=' ';;
19828 esac;;
19829 *)
19830 ECHO_N='-n';;
19831 esac
19832
19833 rm -f conf$$ conf$$.exe conf$$.file
19834 if test -d conf$$.dir; then
19835 rm -f conf$$.dir/conf$$.file
19836 else
19837 rm -f conf$$.dir
19838 mkdir conf$$.dir 2>/dev/null
19839 fi
19840 if (echo >conf$$.file) 2>/dev/null; then
19841 if ln -s conf$$.file conf$$ 2>/dev/null; then
19842 as_ln_s='ln -s'
19843 # ... but there are two gotchas:
19844 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19845 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19846 # In both cases, we have to default to `cp -pR'.
19847 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19848 as_ln_s='cp -pR'
19849 elif ln conf$$.file conf$$ 2>/dev/null; then
19850 as_ln_s=ln
19851 else
19852 as_ln_s='cp -pR'
19853 fi
19854 else
19855 as_ln_s='cp -pR'
19856 fi
19857 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19858 rmdir conf$$.dir 2>/dev/null
19859
19860
19861 # as_fn_mkdir_p
19862 # -------------
19863 # Create "$as_dir" as a directory, including parents if necessary.
19864 as_fn_mkdir_p ()
19865 {
19866
19867 case $as_dir in #(
19868 -*) as_dir=./$as_dir;;
19869 esac
19870 test -d "$as_dir" || eval $as_mkdir_p || {
19871 as_dirs=
19872 while :; do
19873 case $as_dir in #(
19874 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19875 *) as_qdir=$as_dir;;
19876 esac
19877 as_dirs="'$as_qdir' $as_dirs"
19878 as_dir=`$as_dirname -- "$as_dir" ||
19879 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19880 X"$as_dir" : 'X\(//\)[^/]' \| \
19881 X"$as_dir" : 'X\(//\)$' \| \
19882 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19883 $as_echo X"$as_dir" |
19884 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19885 s//\1/
19886 q
19887 }
19888 /^X\(\/\/\)[^/].*/{
19889 s//\1/
19890 q
19891 }
19892 /^X\(\/\/\)$/{
19893 s//\1/
19894 q
19895 }
19896 /^X\(\/\).*/{
19897 s//\1/
19898 q
19899 }
19900 s/.*/./; q'`
19901 test -d "$as_dir" && break
19902 done
19903 test -z "$as_dirs" || eval "mkdir $as_dirs"
19904 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19905
19906
19907 } # as_fn_mkdir_p
19908 if mkdir -p . 2>/dev/null; then
19909 as_mkdir_p='mkdir -p "$as_dir"'
19910 else
19911 test -d ./-p && rmdir ./-p
19912 as_mkdir_p=false
19913 fi
19914
19915
19916 # as_fn_executable_p FILE
19917 # -----------------------
19918 # Test if FILE is an executable regular file.
19919 as_fn_executable_p ()
19920 {
19921 test -f "$1" && test -x "$1"
19922 } # as_fn_executable_p
19923 as_test_x='test -x'
19924 as_executable_p=as_fn_executable_p
19925
19926 # Sed expression to map a string onto a valid CPP name.
19927 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19928
19929 # Sed expression to map a string onto a valid variable name.
19930 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19931
19932
19933 exec 6>&1
19934 ## ----------------------------------- ##
19935 ## Main body of $CONFIG_STATUS script. ##
19936 ## ----------------------------------- ##
19937 _ASEOF
19938 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19939
19940 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19941 # Save the log message, to keep $0 and so on meaningful, and to
19942 # report actual input values of CONFIG_FILES etc. instead of their
19943 # values after options handling.
19944 ac_log="
19945 This file was extended by libXi $as_me 1.8, which was
19946 generated by GNU Autoconf 2.69. Invocation command line was
19947
19948 CONFIG_FILES = $CONFIG_FILES
19949 CONFIG_HEADERS = $CONFIG_HEADERS
19950 CONFIG_LINKS = $CONFIG_LINKS
19951 CONFIG_COMMANDS = $CONFIG_COMMANDS
19952 $ $0 $@
19953
19954 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19955 "
19956
19957 _ACEOF
19958
19959 case $ac_config_files in *"
19960 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19961 esac
19962
19963 case $ac_config_headers in *"
19964 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19965 esac
19966
19967
19968 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19969 # Files that config.status was made for.
19970 config_files="$ac_config_files"
19971 config_headers="$ac_config_headers"
19972 config_commands="$ac_config_commands"
19973
19974 _ACEOF
19975
19976 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19977 ac_cs_usage="\
19978 \`$as_me' instantiates files and other configuration actions
19979 from templates according to the current configuration. Unless the files
19980 and actions are specified as TAGs, all are instantiated by default.
19981
19982 Usage: $0 [OPTION]... [TAG]...
19983
19984 -h, --help print this help, then exit
19985 -V, --version print version number and configuration settings, then exit
19986 --config print configuration, then exit
19987 -q, --quiet, --silent
19988 do not print progress messages
19989 -d, --debug don't remove temporary files
19990 --recheck update $as_me by reconfiguring in the same conditions
19991 --file=FILE[:TEMPLATE]
19992 instantiate the configuration file FILE
19993 --header=FILE[:TEMPLATE]
19994 instantiate the configuration header FILE
19995
19996 Configuration files:
19997 $config_files
19998
19999 Configuration headers:
20000 $config_headers
20001
20002 Configuration commands:
20003 $config_commands
20004
20005 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libXi/issues>."
20006
20007 _ACEOF
20008 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20009 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20010 ac_cs_version="\\
20011 libXi config.status 1.8
20012 configured by $0, generated by GNU Autoconf 2.69,
20013 with options \\"\$ac_cs_config\\"
20014
20015 Copyright (C) 2012 Free Software Foundation, Inc.
20016 This config.status script is free software; the Free Software Foundation
20017 gives unlimited permission to copy, distribute and modify it."
20018
20019 ac_pwd='$ac_pwd'
20020 srcdir='$srcdir'
20021 INSTALL='$INSTALL'
20022 MKDIR_P='$MKDIR_P'
20023 AWK='$AWK'
20024 test -n "\$AWK" || AWK=awk
20025 _ACEOF
20026
20027 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20028 # The default lists apply if the user does not specify any file.
20029 ac_need_defaults=:
20030 while test $# != 0
20031 do
20032 case $1 in
20033 --*=?*)
20034 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20035 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20036 ac_shift=:
20037 ;;
20038 --*=)
20039 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20040 ac_optarg=
20041 ac_shift=:
20042 ;;
20043 *)
20044 ac_option=$1
20045 ac_optarg=$2
20046 ac_shift=shift
20047 ;;
20048 esac
20049
20050 case $ac_option in
20051 # Handling of the options.
20052 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20053 ac_cs_recheck=: ;;
20054 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20055 $as_echo "$ac_cs_version"; exit ;;
20056 --config | --confi | --conf | --con | --co | --c )
20057 $as_echo "$ac_cs_config"; exit ;;
20058 --debug | --debu | --deb | --de | --d | -d )
20059 debug=: ;;
20060 --file | --fil | --fi | --f )
20061 $ac_shift
20062 case $ac_optarg in
20063 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20064 '') as_fn_error $? "missing file argument" ;;
20065 esac
20066 as_fn_append CONFIG_FILES " '$ac_optarg'"
20067 ac_need_defaults=false;;
20068 --header | --heade | --head | --hea )
20069 $ac_shift
20070 case $ac_optarg in
20071 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20072 esac
20073 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20074 ac_need_defaults=false;;
20075 --he | --h)
20076 # Conflict between --help and --header
20077 as_fn_error $? "ambiguous option: \`$1'
20078 Try \`$0 --help' for more information.";;
20079 --help | --hel | -h )
20080 $as_echo "$ac_cs_usage"; exit ;;
20081 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20082 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20083 ac_cs_silent=: ;;
20084
20085 # This is an error.
20086 -*) as_fn_error $? "unrecognized option: \`$1'
20087 Try \`$0 --help' for more information." ;;
20088
20089 *) as_fn_append ac_config_targets " $1"
20090 ac_need_defaults=false ;;
20091
20092 esac
20093 shift
20094 done
20095
20096 ac_configure_extra_args=
20097
20098 if $ac_cs_silent; then
20099 exec 6>/dev/null
20100 ac_configure_extra_args="$ac_configure_extra_args --silent"
20101 fi
20102
20103 _ACEOF
20104 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20105 if \$ac_cs_recheck; then
20106 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20107 shift
20108 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20109 CONFIG_SHELL='$SHELL'
20110 export CONFIG_SHELL
20111 exec "\$@"
20112 fi
20113
20114 _ACEOF
20115 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20116 exec 5>>config.log
20117 {
20118 echo
20119 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20120 ## Running $as_me. ##
20121 _ASBOX
20122 $as_echo "$ac_log"
20123 } >&5
20124
20125 _ACEOF
20126 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20127 #
20128 # INIT-COMMANDS
20129 #
20130 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
20131
20132
20133 # The HP-UX ksh and POSIX shell print the target directory to stdout
20134 # if CDPATH is set.
20135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20136
20137 sed_quote_subst='$sed_quote_subst'
20138 double_quote_subst='$double_quote_subst'
20139 delay_variable_subst='$delay_variable_subst'
20140 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20141 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20142 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20143 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20144 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20145 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20146 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20147 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20148 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20149 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20150 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20151 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20152 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20153 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20154 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20155 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20156 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20157 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20158 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20159 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20160 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20161 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20162 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20163 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20164 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20165 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20166 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20167 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20168 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20169 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20170 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20171 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20172 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20173 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20174 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20175 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20176 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20177 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20178 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20179 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20180 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20181 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20182 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20183 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20184 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20185 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20186 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20187 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20188 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20189 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20190 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20191 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20192 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20193 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20194 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20195 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20196 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20197 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20198 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"`'
20199 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20200 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20201 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20202 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20203 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20204 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20205 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20206 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20207 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20208 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20209 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20210 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20211 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20212 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20213 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20214 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20215 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20216 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20217 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20218 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20219 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20220 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20221 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20222 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20223 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20224 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20225 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20226 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20227 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20228 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20229 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20230 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20231 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20232 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20233 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20234 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20235 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20236 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20237 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20238 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20239 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20240 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20241 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20242 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20243 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20244 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20245 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20246 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20247 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20248 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20249 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20250 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20251 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20252 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20253 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20254 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20255 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20256 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20257 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20258 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20259 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20260 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20261 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20262 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20263 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20264 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20265 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20266 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20267 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20268 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20269 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20270 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20271 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20272 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20273 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20274 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20275
20276 LTCC='$LTCC'
20277 LTCFLAGS='$LTCFLAGS'
20278 compiler='$compiler_DEFAULT'
20279
20280 # A function that is used when there is no print builtin or printf.
20281 func_fallback_echo ()
20282 {
20283 eval 'cat <<_LTECHO_EOF
20284 \$1
20285 _LTECHO_EOF'
20286 }
20287
20288 # Quote evaled strings.
20289 for var in SHELL \
20290 ECHO \
20291 PATH_SEPARATOR \
20292 SED \
20293 GREP \
20294 EGREP \
20295 FGREP \
20296 LD \
20297 NM \
20298 LN_S \
20299 lt_SP2NL \
20300 lt_NL2SP \
20301 reload_flag \
20302 OBJDUMP \
20303 deplibs_check_method \
20304 file_magic_cmd \
20305 file_magic_glob \
20306 want_nocaseglob \
20307 DLLTOOL \
20308 sharedlib_from_linklib_cmd \
20309 AR \
20310 AR_FLAGS \
20311 archiver_list_spec \
20312 STRIP \
20313 RANLIB \
20314 CC \
20315 CFLAGS \
20316 compiler \
20317 lt_cv_sys_global_symbol_pipe \
20318 lt_cv_sys_global_symbol_to_cdecl \
20319 lt_cv_sys_global_symbol_to_import \
20320 lt_cv_sys_global_symbol_to_c_name_address \
20321 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20322 lt_cv_nm_interface \
20323 nm_file_list_spec \
20324 lt_cv_truncate_bin \
20325 lt_prog_compiler_no_builtin_flag \
20326 lt_prog_compiler_pic \
20327 lt_prog_compiler_wl \
20328 lt_prog_compiler_static \
20329 lt_cv_prog_compiler_c_o \
20330 need_locks \
20331 MANIFEST_TOOL \
20332 DSYMUTIL \
20333 NMEDIT \
20334 LIPO \
20335 OTOOL \
20336 OTOOL64 \
20337 shrext_cmds \
20338 export_dynamic_flag_spec \
20339 whole_archive_flag_spec \
20340 compiler_needs_object \
20341 with_gnu_ld \
20342 allow_undefined_flag \
20343 no_undefined_flag \
20344 hardcode_libdir_flag_spec \
20345 hardcode_libdir_separator \
20346 exclude_expsyms \
20347 include_expsyms \
20348 file_list_spec \
20349 variables_saved_for_relink \
20350 libname_spec \
20351 library_names_spec \
20352 soname_spec \
20353 install_override_mode \
20354 finish_eval \
20355 old_striplib \
20356 striplib; do
20357 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20358 *[\\\\\\\`\\"\\\$]*)
20359 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20360 ;;
20361 *)
20362 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20363 ;;
20364 esac
20365 done
20366
20367 # Double-quote double-evaled strings.
20368 for var in reload_cmds \
20369 old_postinstall_cmds \
20370 old_postuninstall_cmds \
20371 old_archive_cmds \
20372 extract_expsyms_cmds \
20373 old_archive_from_new_cmds \
20374 old_archive_from_expsyms_cmds \
20375 archive_cmds \
20376 archive_expsym_cmds \
20377 module_cmds \
20378 module_expsym_cmds \
20379 export_symbols_cmds \
20380 prelink_cmds \
20381 postlink_cmds \
20382 postinstall_cmds \
20383 postuninstall_cmds \
20384 finish_cmds \
20385 sys_lib_search_path_spec \
20386 configure_time_dlsearch_path \
20387 configure_time_lt_sys_library_path; do
20388 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20389 *[\\\\\\\`\\"\\\$]*)
20390 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20391 ;;
20392 *)
20393 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20394 ;;
20395 esac
20396 done
20397
20398 ac_aux_dir='$ac_aux_dir'
20399
20400 # See if we are running on zsh, and set the options that allow our
20401 # commands through without removal of \ escapes INIT.
20402 if test -n "\${ZSH_VERSION+set}"; then
20403 setopt NO_GLOB_SUBST
20404 fi
20405
20406
20407 PACKAGE='$PACKAGE'
20408 VERSION='$VERSION'
20409 RM='$RM'
20410 ofile='$ofile'
20411
20412
20413
20414
20415 _ACEOF
20416
20417 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20418
20419 # Handling of arguments.
20420 for ac_config_target in $ac_config_targets
20421 do
20422 case $ac_config_target in
20423 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
20424 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20425 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20426 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20427 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20428 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
20429 "specs/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Makefile" ;;
20430 "xi.pc") CONFIG_FILES="$CONFIG_FILES xi.pc" ;;
20431
20432 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20433 esac
20434 done
20435
20436
20437 # If the user did not use the arguments to specify the items to instantiate,
20438 # then the envvar interface is used. Set only those that are not.
20439 # We use the long form for the default assignment because of an extremely
20440 # bizarre bug on SunOS 4.1.3.
20441 if $ac_need_defaults; then
20442 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20443 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20444 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20445 fi
20446
20447 # Have a temporary directory for convenience. Make it in the build tree
20448 # simply because there is no reason against having it here, and in addition,
20449 # creating and moving files from /tmp can sometimes cause problems.
20450 # Hook for its removal unless debugging.
20451 # Note that there is a small window in which the directory will not be cleaned:
20452 # after its creation but before its name has been assigned to `$tmp'.
20453 $debug ||
20454 {
20455 tmp= ac_tmp=
20456 trap 'exit_status=$?
20457 : "${ac_tmp:=$tmp}"
20458 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20459 ' 0
20460 trap 'as_fn_exit 1' 1 2 13 15
20461 }
20462 # Create a (secure) tmp directory for tmp files.
20463
20464 {
20465 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20466 test -d "$tmp"
20467 } ||
20468 {
20469 tmp=./conf$$-$RANDOM
20470 (umask 077 && mkdir "$tmp")
20471 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20472 ac_tmp=$tmp
20473
20474 # Set up the scripts for CONFIG_FILES section.
20475 # No need to generate them if there are no CONFIG_FILES.
20476 # This happens for instance with `./config.status config.h'.
20477 if test -n "$CONFIG_FILES"; then
20478
20479
20480 ac_cr=`echo X | tr X '\015'`
20481 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20482 # But we know of no other shell where ac_cr would be empty at this
20483 # point, so we can use a bashism as a fallback.
20484 if test "x$ac_cr" = x; then
20485 eval ac_cr=\$\'\\r\'
20486 fi
20487 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20488 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20489 ac_cs_awk_cr='\\r'
20490 else
20491 ac_cs_awk_cr=$ac_cr
20492 fi
20493
20494 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20495 _ACEOF
20496
20497
20498 {
20499 echo "cat >conf$$subs.awk <<_ACEOF" &&
20500 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20501 echo "_ACEOF"
20502 } >conf$$subs.sh ||
20503 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20504 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20505 ac_delim='%!_!# '
20506 for ac_last_try in false false false false false :; do
20507 . ./conf$$subs.sh ||
20508 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20509
20510 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20511 if test $ac_delim_n = $ac_delim_num; then
20512 break
20513 elif $ac_last_try; then
20514 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20515 else
20516 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20517 fi
20518 done
20519 rm -f conf$$subs.sh
20520
20521 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20522 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20523 _ACEOF
20524 sed -n '
20525 h
20526 s/^/S["/; s/!.*/"]=/
20527 p
20528 g
20529 s/^[^!]*!//
20530 :repl
20531 t repl
20532 s/'"$ac_delim"'$//
20533 t delim
20534 :nl
20535 h
20536 s/\(.\{148\}\)..*/\1/
20537 t more1
20538 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20539 p
20540 n
20541 b repl
20542 :more1
20543 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20544 p
20545 g
20546 s/.\{148\}//
20547 t nl
20548 :delim
20549 h
20550 s/\(.\{148\}\)..*/\1/
20551 t more2
20552 s/["\\]/\\&/g; s/^/"/; s/$/"/
20553 p
20554 b
20555 :more2
20556 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20557 p
20558 g
20559 s/.\{148\}//
20560 t delim
20561 ' <conf$$subs.awk | sed '
20562 /^[^""]/{
20563 N
20564 s/\n//
20565 }
20566 ' >>$CONFIG_STATUS || ac_write_fail=1
20567 rm -f conf$$subs.awk
20568 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20569 _ACAWK
20570 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20571 for (key in S) S_is_set[key] = 1
20572 FS = ""
20573
20574 }
20575 {
20576 line = $ 0
20577 nfields = split(line, field, "@")
20578 substed = 0
20579 len = length(field[1])
20580 for (i = 2; i < nfields; i++) {
20581 key = field[i]
20582 keylen = length(key)
20583 if (S_is_set[key]) {
20584 value = S[key]
20585 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20586 len += length(value) + length(field[++i])
20587 substed = 1
20588 } else
20589 len += 1 + keylen
20590 }
20591
20592 print line
20593 }
20594
20595 _ACAWK
20596 _ACEOF
20597 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20598 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20599 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20600 else
20601 cat
20602 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20603 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20604 _ACEOF
20605
20606 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20607 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20608 # trailing colons and then remove the whole line if VPATH becomes empty
20609 # (actually we leave an empty line to preserve line numbers).
20610 if test "x$srcdir" = x.; then
20611 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20612 h
20613 s///
20614 s/^/:/
20615 s/[ ]*$/:/
20616 s/:\$(srcdir):/:/g
20617 s/:\${srcdir}:/:/g
20618 s/:@srcdir@:/:/g
20619 s/^:*//
20620 s/:*$//
20621 x
20622 s/\(=[ ]*\).*/\1/
20623 G
20624 s/\n//
20625 s/^[^=]*=[ ]*$//
20626 }'
20627 fi
20628
20629 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20630 fi # test -n "$CONFIG_FILES"
20631
20632 # Set up the scripts for CONFIG_HEADERS section.
20633 # No need to generate them if there are no CONFIG_HEADERS.
20634 # This happens for instance with `./config.status Makefile'.
20635 if test -n "$CONFIG_HEADERS"; then
20636 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20637 BEGIN {
20638 _ACEOF
20639
20640 # Transform confdefs.h into an awk script `defines.awk', embedded as
20641 # here-document in config.status, that substitutes the proper values into
20642 # config.h.in to produce config.h.
20643
20644 # Create a delimiter string that does not exist in confdefs.h, to ease
20645 # handling of long lines.
20646 ac_delim='%!_!# '
20647 for ac_last_try in false false :; do
20648 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20649 if test -z "$ac_tt"; then
20650 break
20651 elif $ac_last_try; then
20652 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20653 else
20654 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20655 fi
20656 done
20657
20658 # For the awk script, D is an array of macro values keyed by name,
20659 # likewise P contains macro parameters if any. Preserve backslash
20660 # newline sequences.
20661
20662 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20663 sed -n '
20664 s/.\{148\}/&'"$ac_delim"'/g
20665 t rset
20666 :rset
20667 s/^[ ]*#[ ]*define[ ][ ]*/ /
20668 t def
20669 d
20670 :def
20671 s/\\$//
20672 t bsnl
20673 s/["\\]/\\&/g
20674 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20675 D["\1"]=" \3"/p
20676 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20677 d
20678 :bsnl
20679 s/["\\]/\\&/g
20680 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20681 D["\1"]=" \3\\\\\\n"\\/p
20682 t cont
20683 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20684 t cont
20685 d
20686 :cont
20687 n
20688 s/.\{148\}/&'"$ac_delim"'/g
20689 t clear
20690 :clear
20691 s/\\$//
20692 t bsnlc
20693 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20694 d
20695 :bsnlc
20696 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20697 b cont
20698 ' <confdefs.h | sed '
20699 s/'"$ac_delim"'/"\\\
20700 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20701
20702 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20703 for (key in D) D_is_set[key] = 1
20704 FS = ""
20705 }
20706 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20707 line = \$ 0
20708 split(line, arg, " ")
20709 if (arg[1] == "#") {
20710 defundef = arg[2]
20711 mac1 = arg[3]
20712 } else {
20713 defundef = substr(arg[1], 2)
20714 mac1 = arg[2]
20715 }
20716 split(mac1, mac2, "(") #)
20717 macro = mac2[1]
20718 prefix = substr(line, 1, index(line, defundef) - 1)
20719 if (D_is_set[macro]) {
20720 # Preserve the white space surrounding the "#".
20721 print prefix "define", macro P[macro] D[macro]
20722 next
20723 } else {
20724 # Replace #undef with comments. This is necessary, for example,
20725 # in the case of _POSIX_SOURCE, which is predefined and required
20726 # on some systems where configure will not decide to define it.
20727 if (defundef == "undef") {
20728 print "/*", prefix defundef, macro, "*/"
20729 next
20730 }
20731 }
20732 }
20733 { print }
20734 _ACAWK
20735 _ACEOF
20736 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20737 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20738 fi # test -n "$CONFIG_HEADERS"
20739
20740
20741 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20742 shift
20743 for ac_tag
20744 do
20745 case $ac_tag in
20746 :[FHLC]) ac_mode=$ac_tag; continue;;
20747 esac
20748 case $ac_mode$ac_tag in
20749 :[FHL]*:*);;
20750 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20751 :[FH]-) ac_tag=-:-;;
20752 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20753 esac
20754 ac_save_IFS=$IFS
20755 IFS=:
20756 set x $ac_tag
20757 IFS=$ac_save_IFS
20758 shift
20759 ac_file=$1
20760 shift
20761
20762 case $ac_mode in
20763 :L) ac_source=$1;;
20764 :[FH])
20765 ac_file_inputs=
20766 for ac_f
20767 do
20768 case $ac_f in
20769 -) ac_f="$ac_tmp/stdin";;
20770 *) # Look for the file first in the build tree, then in the source tree
20771 # (if the path is not absolute). The absolute path cannot be DOS-style,
20772 # because $ac_f cannot contain `:'.
20773 test -f "$ac_f" ||
20774 case $ac_f in
20775 [\\/$]*) false;;
20776 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20777 esac ||
20778 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20779 esac
20780 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20781 as_fn_append ac_file_inputs " '$ac_f'"
20782 done
20783
20784 # Let's still pretend it is `configure' which instantiates (i.e., don't
20785 # use $as_me), people would be surprised to read:
20786 # /* config.h. Generated by config.status. */
20787 configure_input='Generated from '`
20788 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20789 `' by configure.'
20790 if test x"$ac_file" != x-; then
20791 configure_input="$ac_file. $configure_input"
20792 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20793 $as_echo "$as_me: creating $ac_file" >&6;}
20794 fi
20795 # Neutralize special characters interpreted by sed in replacement strings.
20796 case $configure_input in #(
20797 *\&* | *\|* | *\\* )
20798 ac_sed_conf_input=`$as_echo "$configure_input" |
20799 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20800 *) ac_sed_conf_input=$configure_input;;
20801 esac
20802
20803 case $ac_tag in
20804 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20805 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20806 esac
20807 ;;
20808 esac
20809
20810 ac_dir=`$as_dirname -- "$ac_file" ||
20811 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20812 X"$ac_file" : 'X\(//\)[^/]' \| \
20813 X"$ac_file" : 'X\(//\)$' \| \
20814 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20815 $as_echo X"$ac_file" |
20816 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20817 s//\1/
20818 q
20819 }
20820 /^X\(\/\/\)[^/].*/{
20821 s//\1/
20822 q
20823 }
20824 /^X\(\/\/\)$/{
20825 s//\1/
20826 q
20827 }
20828 /^X\(\/\).*/{
20829 s//\1/
20830 q
20831 }
20832 s/.*/./; q'`
20833 as_dir="$ac_dir"; as_fn_mkdir_p
20834 ac_builddir=.
20835
20836 case "$ac_dir" in
20837 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20838 *)
20839 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20840 # A ".." for each directory in $ac_dir_suffix.
20841 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20842 case $ac_top_builddir_sub in
20843 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20844 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20845 esac ;;
20846 esac
20847 ac_abs_top_builddir=$ac_pwd
20848 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20849 # for backward compatibility:
20850 ac_top_builddir=$ac_top_build_prefix
20851
20852 case $srcdir in
20853 .) # We are building in place.
20854 ac_srcdir=.
20855 ac_top_srcdir=$ac_top_builddir_sub
20856 ac_abs_top_srcdir=$ac_pwd ;;
20857 [\\/]* | ?:[\\/]* ) # Absolute name.
20858 ac_srcdir=$srcdir$ac_dir_suffix;
20859 ac_top_srcdir=$srcdir
20860 ac_abs_top_srcdir=$srcdir ;;
20861 *) # Relative name.
20862 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20863 ac_top_srcdir=$ac_top_build_prefix$srcdir
20864 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20865 esac
20866 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20867
20868
20869 case $ac_mode in
20870 :F)
20871 #
20872 # CONFIG_FILE
20873 #
20874
20875 case $INSTALL in
20876 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20877 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20878 esac
20879 ac_MKDIR_P=$MKDIR_P
20880 case $MKDIR_P in
20881 [\\/$]* | ?:[\\/]* ) ;;
20882 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20883 esac
20884 _ACEOF
20885
20886 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20887 # If the template does not know about datarootdir, expand it.
20888 # FIXME: This hack should be removed a few years after 2.60.
20889 ac_datarootdir_hack=; ac_datarootdir_seen=
20890 ac_sed_dataroot='
20891 /datarootdir/ {
20892 p
20893 q
20894 }
20895 /@datadir@/p
20896 /@docdir@/p
20897 /@infodir@/p
20898 /@localedir@/p
20899 /@mandir@/p'
20900 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20901 *datarootdir*) ac_datarootdir_seen=yes;;
20902 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20904 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20905 _ACEOF
20906 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20907 ac_datarootdir_hack='
20908 s&@datadir@&$datadir&g
20909 s&@docdir@&$docdir&g
20910 s&@infodir@&$infodir&g
20911 s&@localedir@&$localedir&g
20912 s&@mandir@&$mandir&g
20913 s&\\\${datarootdir}&$datarootdir&g' ;;
20914 esac
20915 _ACEOF
20916
20917 # Neutralize VPATH when `$srcdir' = `.'.
20918 # Shell code in configure.ac might set extrasub.
20919 # FIXME: do we really want to maintain this feature?
20920 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20921 ac_sed_extra="$ac_vpsub
20922 $extrasub
20923 _ACEOF
20924 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20925 :t
20926 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20927 s|@configure_input@|$ac_sed_conf_input|;t t
20928 s&@top_builddir@&$ac_top_builddir_sub&;t t
20929 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20930 s&@srcdir@&$ac_srcdir&;t t
20931 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20932 s&@top_srcdir@&$ac_top_srcdir&;t t
20933 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20934 s&@builddir@&$ac_builddir&;t t
20935 s&@abs_builddir@&$ac_abs_builddir&;t t
20936 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20937 s&@INSTALL@&$ac_INSTALL&;t t
20938 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20939 $ac_datarootdir_hack
20940 "
20941 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20942 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20943
20944 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20945 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20946 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20947 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20949 which seems to be undefined. Please make sure it is defined" >&5
20950 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20951 which seems to be undefined. Please make sure it is defined" >&2;}
20952
20953 rm -f "$ac_tmp/stdin"
20954 case $ac_file in
20955 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20956 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20957 esac \
20958 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20959 ;;
20960 :H)
20961 #
20962 # CONFIG_HEADER
20963 #
20964 if test x"$ac_file" != x-; then
20965 {
20966 $as_echo "/* $configure_input */" \
20967 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20968 } >"$ac_tmp/config.h" \
20969 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20970 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20971 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20972 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20973 else
20974 rm -f "$ac_file"
20975 mv "$ac_tmp/config.h" "$ac_file" \
20976 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20977 fi
20978 else
20979 $as_echo "/* $configure_input */" \
20980 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20981 || as_fn_error $? "could not create -" "$LINENO" 5
20982 fi
20983 # Compute "$ac_file"'s index in $config_headers.
20984 _am_arg="$ac_file"
20985 _am_stamp_count=1
20986 for _am_header in $config_headers :; do
20987 case $_am_header in
20988 $_am_arg | $_am_arg:* )
20989 break ;;
20990 * )
20991 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20992 esac
20993 done
20994 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20995 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20996 X"$_am_arg" : 'X\(//\)[^/]' \| \
20997 X"$_am_arg" : 'X\(//\)$' \| \
20998 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20999 $as_echo X"$_am_arg" |
21000 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21001 s//\1/
21002 q
21003 }
21004 /^X\(\/\/\)[^/].*/{
21005 s//\1/
21006 q
21007 }
21008 /^X\(\/\/\)$/{
21009 s//\1/
21010 q
21011 }
21012 /^X\(\/\).*/{
21013 s//\1/
21014 q
21015 }
21016 s/.*/./; q'`/stamp-h$_am_stamp_count
21017 ;;
21018
21019 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21020 $as_echo "$as_me: executing $ac_file commands" >&6;}
21021 ;;
21022 esac
21023
21024
21025 case $ac_file$ac_mode in
21026 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21027 # Older Autoconf quotes --file arguments for eval, but not when files
21028 # are listed without --file. Let's play safe and only enable the eval
21029 # if we detect the quoting.
21030 # TODO: see whether this extra hack can be removed once we start
21031 # requiring Autoconf 2.70 or later.
21032 case $CONFIG_FILES in #(
21033 *\'*) :
21034 eval set x "$CONFIG_FILES" ;; #(
21035 *) :
21036 set x $CONFIG_FILES ;; #(
21037 *) :
21038 ;;
21039 esac
21040 shift
21041 # Used to flag and report bootstrapping failures.
21042 am_rc=0
21043 for am_mf
21044 do
21045 # Strip MF so we end up with the name of the file.
21046 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
21047 # Check whether this is an Automake generated Makefile which includes
21048 # dependency-tracking related rules and includes.
21049 # Grep'ing the whole file directly is not great: AIX grep has a line
21050 # limit of 2048, but all sed's we know have understand at least 4000.
21051 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
21052 || continue
21053 am_dirpart=`$as_dirname -- "$am_mf" ||
21054 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21055 X"$am_mf" : 'X\(//\)[^/]' \| \
21056 X"$am_mf" : 'X\(//\)$' \| \
21057 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21058 $as_echo X"$am_mf" |
21059 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21060 s//\1/
21061 q
21062 }
21063 /^X\(\/\/\)[^/].*/{
21064 s//\1/
21065 q
21066 }
21067 /^X\(\/\/\)$/{
21068 s//\1/
21069 q
21070 }
21071 /^X\(\/\).*/{
21072 s//\1/
21073 q
21074 }
21075 s/.*/./; q'`
21076 am_filepart=`$as_basename -- "$am_mf" ||
21077 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
21078 X"$am_mf" : 'X\(//\)$' \| \
21079 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21080 $as_echo X/"$am_mf" |
21081 sed '/^.*\/\([^/][^/]*\)\/*$/{
21082 s//\1/
21083 q
21084 }
21085 /^X\/\(\/\/\)$/{
21086 s//\1/
21087 q
21088 }
21089 /^X\/\(\/\).*/{
21090 s//\1/
21091 q
21092 }
21093 s/.*/./; q'`
21094 { echo "$as_me:$LINENO: cd "$am_dirpart" \
21095 && sed -e '/# am--include-marker/d' "$am_filepart" \
21096 | $MAKE -f - am--depfiles" >&5
21097 (cd "$am_dirpart" \
21098 && sed -e '/# am--include-marker/d' "$am_filepart" \
21099 | $MAKE -f - am--depfiles) >&5 2>&5
21100 ac_status=$?
21101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21102 (exit $ac_status); } || am_rc=$?
21103 done
21104 if test $am_rc -ne 0; then
21105 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21106 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21107 as_fn_error $? "Something went wrong bootstrapping makefile fragments
21108 for automatic dependency tracking. Try re-running configure with the
21109 '--disable-dependency-tracking' option to at least be able to build
21110 the package (albeit without support for automatic dependency tracking).
21111 See \`config.log' for more details" "$LINENO" 5; }
21112 fi
21113 { am_dirpart=; unset am_dirpart;}
21114 { am_filepart=; unset am_filepart;}
21115 { am_mf=; unset am_mf;}
21116 { am_rc=; unset am_rc;}
21117 rm -f conftest-deps.mk
21118 }
21119 ;;
21120 "libtool":C)
21121
21122 # See if we are running on zsh, and set the options that allow our
21123 # commands through without removal of \ escapes.
21124 if test -n "${ZSH_VERSION+set}"; then
21125 setopt NO_GLOB_SUBST
21126 fi
21127
21128 cfgfile=${ofile}T
21129 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21130 $RM "$cfgfile"
21131
21132 cat <<_LT_EOF >> "$cfgfile"
21133 #! $SHELL
21134 # Generated automatically by $as_me ($PACKAGE) $VERSION
21135 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21136
21137 # Provide generalized library-building support services.
21138 # Written by Gordon Matzigkeit, 1996
21139
21140 # Copyright (C) 2014 Free Software Foundation, Inc.
21141 # This is free software; see the source for copying conditions. There is NO
21142 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21143
21144 # GNU Libtool is free software; you can redistribute it and/or modify
21145 # it under the terms of the GNU General Public License as published by
21146 # the Free Software Foundation; either version 2 of of the License, or
21147 # (at your option) any later version.
21148 #
21149 # As a special exception to the GNU General Public License, if you
21150 # distribute this file as part of a program or library that is built
21151 # using GNU Libtool, you may include this file under the same
21152 # distribution terms that you use for the rest of that program.
21153 #
21154 # GNU Libtool is distributed in the hope that it will be useful, but
21155 # WITHOUT ANY WARRANTY; without even the implied warranty of
21156 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21157 # GNU General Public License for more details.
21158 #
21159 # You should have received a copy of the GNU General Public License
21160 # along with this program. If not, see <http://www.gnu.org/licenses/>.
21161
21162
21163 # The names of the tagged configurations supported by this script.
21164 available_tags=''
21165
21166 # Configured defaults for sys_lib_dlsearch_path munging.
21167 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21168
21169 # ### BEGIN LIBTOOL CONFIG
21170
21171 # Which release of libtool.m4 was used?
21172 macro_version=$macro_version
21173 macro_revision=$macro_revision
21174
21175 # Whether or not to build shared libraries.
21176 build_libtool_libs=$enable_shared
21177
21178 # Whether or not to build static libraries.
21179 build_old_libs=$enable_static
21180
21181 # What type of objects to build.
21182 pic_mode=$pic_mode
21183
21184 # Whether or not to optimize for fast installation.
21185 fast_install=$enable_fast_install
21186
21187 # Shared archive member basename,for filename based shared library versioning on AIX.
21188 shared_archive_member_spec=$shared_archive_member_spec
21189
21190 # Shell to use when invoking shell scripts.
21191 SHELL=$lt_SHELL
21192
21193 # An echo program that protects backslashes.
21194 ECHO=$lt_ECHO
21195
21196 # The PATH separator for the build system.
21197 PATH_SEPARATOR=$lt_PATH_SEPARATOR
21198
21199 # The host system.
21200 host_alias=$host_alias
21201 host=$host
21202 host_os=$host_os
21203
21204 # The build system.
21205 build_alias=$build_alias
21206 build=$build
21207 build_os=$build_os
21208
21209 # A sed program that does not truncate output.
21210 SED=$lt_SED
21211
21212 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21213 Xsed="\$SED -e 1s/^X//"
21214
21215 # A grep program that handles long lines.
21216 GREP=$lt_GREP
21217
21218 # An ERE matcher.
21219 EGREP=$lt_EGREP
21220
21221 # A literal string matcher.
21222 FGREP=$lt_FGREP
21223
21224 # A BSD- or MS-compatible name lister.
21225 NM=$lt_NM
21226
21227 # Whether we need soft or hard links.
21228 LN_S=$lt_LN_S
21229
21230 # What is the maximum length of a command?
21231 max_cmd_len=$max_cmd_len
21232
21233 # Object file suffix (normally "o").
21234 objext=$ac_objext
21235
21236 # Executable file suffix (normally "").
21237 exeext=$exeext
21238
21239 # whether the shell understands "unset".
21240 lt_unset=$lt_unset
21241
21242 # turn spaces into newlines.
21243 SP2NL=$lt_lt_SP2NL
21244
21245 # turn newlines into spaces.
21246 NL2SP=$lt_lt_NL2SP
21247
21248 # convert \$build file names to \$host format.
21249 to_host_file_cmd=$lt_cv_to_host_file_cmd
21250
21251 # convert \$build files to toolchain format.
21252 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21253
21254 # An object symbol dumper.
21255 OBJDUMP=$lt_OBJDUMP
21256
21257 # Method to check whether dependent libraries are shared objects.
21258 deplibs_check_method=$lt_deplibs_check_method
21259
21260 # Command to use when deplibs_check_method = "file_magic".
21261 file_magic_cmd=$lt_file_magic_cmd
21262
21263 # How to find potential files when deplibs_check_method = "file_magic".
21264 file_magic_glob=$lt_file_magic_glob
21265
21266 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21267 want_nocaseglob=$lt_want_nocaseglob
21268
21269 # DLL creation program.
21270 DLLTOOL=$lt_DLLTOOL
21271
21272 # Command to associate shared and link libraries.
21273 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21274
21275 # The archiver.
21276 AR=$lt_AR
21277
21278 # Flags to create an archive.
21279 AR_FLAGS=$lt_AR_FLAGS
21280
21281 # How to feed a file listing to the archiver.
21282 archiver_list_spec=$lt_archiver_list_spec
21283
21284 # A symbol stripping program.
21285 STRIP=$lt_STRIP
21286
21287 # Commands used to install an old-style archive.
21288 RANLIB=$lt_RANLIB
21289 old_postinstall_cmds=$lt_old_postinstall_cmds
21290 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21291
21292 # Whether to use a lock for old archive extraction.
21293 lock_old_archive_extraction=$lock_old_archive_extraction
21294
21295 # A C compiler.
21296 LTCC=$lt_CC
21297
21298 # LTCC compiler flags.
21299 LTCFLAGS=$lt_CFLAGS
21300
21301 # Take the output of nm and produce a listing of raw symbols and C names.
21302 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21303
21304 # Transform the output of nm in a proper C declaration.
21305 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21306
21307 # Transform the output of nm into a list of symbols to manually relocate.
21308 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
21309
21310 # Transform the output of nm in a C name address pair.
21311 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21312
21313 # Transform the output of nm in a C name address pair when lib prefix is needed.
21314 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21315
21316 # The name lister interface.
21317 nm_interface=$lt_lt_cv_nm_interface
21318
21319 # Specify filename containing input files for \$NM.
21320 nm_file_list_spec=$lt_nm_file_list_spec
21321
21322 # The root where to search for dependent libraries,and where our libraries should be installed.
21323 lt_sysroot=$lt_sysroot
21324
21325 # Command to truncate a binary pipe.
21326 lt_truncate_bin=$lt_lt_cv_truncate_bin
21327
21328 # The name of the directory that contains temporary libtool files.
21329 objdir=$objdir
21330
21331 # Used to examine libraries when file_magic_cmd begins with "file".
21332 MAGIC_CMD=$MAGIC_CMD
21333
21334 # Must we lock files when doing compilation?
21335 need_locks=$lt_need_locks
21336
21337 # Manifest tool.
21338 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21339
21340 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21341 DSYMUTIL=$lt_DSYMUTIL
21342
21343 # Tool to change global to local symbols on Mac OS X.
21344 NMEDIT=$lt_NMEDIT
21345
21346 # Tool to manipulate fat objects and archives on Mac OS X.
21347 LIPO=$lt_LIPO
21348
21349 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21350 OTOOL=$lt_OTOOL
21351
21352 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21353 OTOOL64=$lt_OTOOL64
21354
21355 # Old archive suffix (normally "a").
21356 libext=$libext
21357
21358 # Shared library suffix (normally ".so").
21359 shrext_cmds=$lt_shrext_cmds
21360
21361 # The commands to extract the exported symbol list from a shared archive.
21362 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21363
21364 # Variables whose values should be saved in libtool wrapper scripts and
21365 # restored at link time.
21366 variables_saved_for_relink=$lt_variables_saved_for_relink
21367
21368 # Do we need the "lib" prefix for modules?
21369 need_lib_prefix=$need_lib_prefix
21370
21371 # Do we need a version for libraries?
21372 need_version=$need_version
21373
21374 # Library versioning type.
21375 version_type=$version_type
21376
21377 # Shared library runtime path variable.
21378 runpath_var=$runpath_var
21379
21380 # Shared library path variable.
21381 shlibpath_var=$shlibpath_var
21382
21383 # Is shlibpath searched before the hard-coded library search path?
21384 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21385
21386 # Format of library name prefix.
21387 libname_spec=$lt_libname_spec
21388
21389 # List of archive names. First name is the real one, the rest are links.
21390 # The last name is the one that the linker finds with -lNAME
21391 library_names_spec=$lt_library_names_spec
21392
21393 # The coded name of the library, if different from the real name.
21394 soname_spec=$lt_soname_spec
21395
21396 # Permission mode override for installation of shared libraries.
21397 install_override_mode=$lt_install_override_mode
21398
21399 # Command to use after installation of a shared archive.
21400 postinstall_cmds=$lt_postinstall_cmds
21401
21402 # Command to use after uninstallation of a shared archive.
21403 postuninstall_cmds=$lt_postuninstall_cmds
21404
21405 # Commands used to finish a libtool library installation in a directory.
21406 finish_cmds=$lt_finish_cmds
21407
21408 # As "finish_cmds", except a single script fragment to be evaled but
21409 # not shown.
21410 finish_eval=$lt_finish_eval
21411
21412 # Whether we should hardcode library paths into libraries.
21413 hardcode_into_libs=$hardcode_into_libs
21414
21415 # Compile-time system search path for libraries.
21416 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21417
21418 # Detected run-time system search path for libraries.
21419 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
21420
21421 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
21422 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
21423
21424 # Whether dlopen is supported.
21425 dlopen_support=$enable_dlopen
21426
21427 # Whether dlopen of programs is supported.
21428 dlopen_self=$enable_dlopen_self
21429
21430 # Whether dlopen of statically linked programs is supported.
21431 dlopen_self_static=$enable_dlopen_self_static
21432
21433 # Commands to strip libraries.
21434 old_striplib=$lt_old_striplib
21435 striplib=$lt_striplib
21436
21437
21438 # The linker used to build libraries.
21439 LD=$lt_LD
21440
21441 # How to create reloadable object files.
21442 reload_flag=$lt_reload_flag
21443 reload_cmds=$lt_reload_cmds
21444
21445 # Commands used to build an old-style archive.
21446 old_archive_cmds=$lt_old_archive_cmds
21447
21448 # A language specific compiler.
21449 CC=$lt_compiler
21450
21451 # Is the compiler the GNU compiler?
21452 with_gcc=$GCC
21453
21454 # Compiler flag to turn off builtin functions.
21455 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21456
21457 # Additional compiler flags for building library objects.
21458 pic_flag=$lt_lt_prog_compiler_pic
21459
21460 # How to pass a linker flag through the compiler.
21461 wl=$lt_lt_prog_compiler_wl
21462
21463 # Compiler flag to prevent dynamic linking.
21464 link_static_flag=$lt_lt_prog_compiler_static
21465
21466 # Does compiler simultaneously support -c and -o options?
21467 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21468
21469 # Whether or not to add -lc for building shared libraries.
21470 build_libtool_need_lc=$archive_cmds_need_lc
21471
21472 # Whether or not to disallow shared libs when runtime libs are static.
21473 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21474
21475 # Compiler flag to allow reflexive dlopens.
21476 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21477
21478 # Compiler flag to generate shared objects directly from archives.
21479 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21480
21481 # Whether the compiler copes with passing no objects directly.
21482 compiler_needs_object=$lt_compiler_needs_object
21483
21484 # Create an old-style archive from a shared archive.
21485 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21486
21487 # Create a temporary old-style archive to link instead of a shared archive.
21488 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21489
21490 # Commands used to build a shared archive.
21491 archive_cmds=$lt_archive_cmds
21492 archive_expsym_cmds=$lt_archive_expsym_cmds
21493
21494 # Commands used to build a loadable module if different from building
21495 # a shared archive.
21496 module_cmds=$lt_module_cmds
21497 module_expsym_cmds=$lt_module_expsym_cmds
21498
21499 # Whether we are building with GNU ld or not.
21500 with_gnu_ld=$lt_with_gnu_ld
21501
21502 # Flag that allows shared libraries with undefined symbols to be built.
21503 allow_undefined_flag=$lt_allow_undefined_flag
21504
21505 # Flag that enforces no undefined symbols.
21506 no_undefined_flag=$lt_no_undefined_flag
21507
21508 # Flag to hardcode \$libdir into a binary during linking.
21509 # This must work even if \$libdir does not exist
21510 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21511
21512 # Whether we need a single "-rpath" flag with a separated argument.
21513 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21514
21515 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21516 # DIR into the resulting binary.
21517 hardcode_direct=$hardcode_direct
21518
21519 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21520 # DIR into the resulting binary and the resulting library dependency is
21521 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
21522 # library is relocated.
21523 hardcode_direct_absolute=$hardcode_direct_absolute
21524
21525 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21526 # into the resulting binary.
21527 hardcode_minus_L=$hardcode_minus_L
21528
21529 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21530 # into the resulting binary.
21531 hardcode_shlibpath_var=$hardcode_shlibpath_var
21532
21533 # Set to "yes" if building a shared library automatically hardcodes DIR
21534 # into the library and all subsequent libraries and executables linked
21535 # against it.
21536 hardcode_automatic=$hardcode_automatic
21537
21538 # Set to yes if linker adds runtime paths of dependent libraries
21539 # to runtime path list.
21540 inherit_rpath=$inherit_rpath
21541
21542 # Whether libtool must link a program against all its dependency libraries.
21543 link_all_deplibs=$link_all_deplibs
21544
21545 # Set to "yes" if exported symbols are required.
21546 always_export_symbols=$always_export_symbols
21547
21548 # The commands to list exported symbols.
21549 export_symbols_cmds=$lt_export_symbols_cmds
21550
21551 # Symbols that should not be listed in the preloaded symbols.
21552 exclude_expsyms=$lt_exclude_expsyms
21553
21554 # Symbols that must always be exported.
21555 include_expsyms=$lt_include_expsyms
21556
21557 # Commands necessary for linking programs (against libraries) with templates.
21558 prelink_cmds=$lt_prelink_cmds
21559
21560 # Commands necessary for finishing linking programs.
21561 postlink_cmds=$lt_postlink_cmds
21562
21563 # Specify filename containing input files.
21564 file_list_spec=$lt_file_list_spec
21565
21566 # How to hardcode a shared library path into an executable.
21567 hardcode_action=$hardcode_action
21568
21569 # ### END LIBTOOL CONFIG
21570
21571 _LT_EOF
21572
21573 cat <<'_LT_EOF' >> "$cfgfile"
21574
21575 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
21576
21577 # func_munge_path_list VARIABLE PATH
21578 # -----------------------------------
21579 # VARIABLE is name of variable containing _space_ separated list of
21580 # directories to be munged by the contents of PATH, which is string
21581 # having a format:
21582 # "DIR[:DIR]:"
21583 # string "DIR[ DIR]" will be prepended to VARIABLE
21584 # ":DIR[:DIR]"
21585 # string "DIR[ DIR]" will be appended to VARIABLE
21586 # "DIRP[:DIRP]::[DIRA:]DIRA"
21587 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
21588 # "DIRA[ DIRA]" will be appended to VARIABLE
21589 # "DIR[:DIR]"
21590 # VARIABLE will be replaced by "DIR[ DIR]"
21591 func_munge_path_list ()
21592 {
21593 case x$2 in
21594 x)
21595 ;;
21596 *:)
21597 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
21598 ;;
21599 x:*)
21600 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
21601 ;;
21602 *::*)
21603 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
21604 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
21605 ;;
21606 *)
21607 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
21608 ;;
21609 esac
21610 }
21611
21612
21613 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
21614 func_cc_basename ()
21615 {
21616 for cc_temp in $*""; do
21617 case $cc_temp in
21618 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21619 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21620 \-*) ;;
21621 *) break;;
21622 esac
21623 done
21624 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
21625 }
21626
21627
21628 # ### END FUNCTIONS SHARED WITH CONFIGURE
21629
21630 _LT_EOF
21631
21632 case $host_os in
21633 aix3*)
21634 cat <<\_LT_EOF >> "$cfgfile"
21635 # AIX sometimes has problems with the GCC collect2 program. For some
21636 # reason, if we set the COLLECT_NAMES environment variable, the problems
21637 # vanish in a puff of smoke.
21638 if test set != "${COLLECT_NAMES+set}"; then
21639 COLLECT_NAMES=
21640 export COLLECT_NAMES
21641 fi
21642 _LT_EOF
21643 ;;
21644 esac
21645
21646
21647 ltmain=$ac_aux_dir/ltmain.sh
21648
21649
21650 # We use sed instead of cat because bash on DJGPP gets confused if
21651 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21652 # text mode, it properly converts lines to CR/LF. This bash problem
21653 # is reportedly fixed, but why not run on old versions too?
21654 sed '$q' "$ltmain" >> "$cfgfile" \
21655 || (rm -f "$cfgfile"; exit 1)
21656
21657 mv -f "$cfgfile" "$ofile" ||
21658 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21659 chmod +x "$ofile"
21660
21661 ;;
21662
21663 esac
21664 done # for ac_tag
21665
21666
21667 as_fn_exit 0
21668 _ACEOF
21669 ac_clean_files=$ac_clean_files_save
21670
21671 test $ac_write_fail = 0 ||
21672 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21673
21674
21675 # configure is writing to config.log, and then calls config.status.
21676 # config.status does its own redirection, appending to config.log.
21677 # Unfortunately, on DOS this fails, as config.log is still kept open
21678 # by configure, so config.status won't be able to write to it; its
21679 # output is simply discarded. So we exec the FD to /dev/null,
21680 # effectively closing config.log, so it can be properly (re)opened and
21681 # appended to by config.status. When coming back to configure, we
21682 # need to make the FD available again.
21683 if test "$no_create" != yes; then
21684 ac_cs_success=:
21685 ac_config_status_args=
21686 test "$silent" = yes &&
21687 ac_config_status_args="$ac_config_status_args --quiet"
21688 exec 5>/dev/null
21689 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21690 exec 5>>config.log
21691 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21692 # would make configure fail if this is the last instruction.
21693 $ac_cs_success || as_fn_exit 1
21694 fi
21695 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21697 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21698 fi
21699
21700