configure revision 1.1.1.5.2.1 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for xf86-video-mga 1.6.3.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
202
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
214 fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235 fi
236 fi
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
278 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
279 $0: about your system, including any error possibly output
280 $0: before this message. Then install a modern shell, or
281 $0: manually run the script under such a shell if you do
282 $0: have one."
283 fi
284 exit 1
285 fi
286 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302 { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
309 as_fn_set_status ()
310 {
311 return $1
312 } # as_fn_set_status
313
314 # as_fn_exit STATUS
315 # -----------------
316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 as_fn_exit ()
318 {
319 set +e
320 as_fn_set_status $1
321 exit $1
322 } # as_fn_exit
323
324 # as_fn_mkdir_p
325 # -------------
326 # Create "$as_dir" as a directory, including parents if necessary.
327 as_fn_mkdir_p ()
328 {
329
330 case $as_dir in #(
331 -*) as_dir=./$as_dir;;
332 esac
333 test -d "$as_dir" || eval $as_mkdir_p || {
334 as_dirs=
335 while :; do
336 case $as_dir in #(
337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338 *) as_qdir=$as_dir;;
339 esac
340 as_dirs="'$as_qdir' $as_dirs"
341 as_dir=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343 X"$as_dir" : 'X\(//\)[^/]' \| \
344 X"$as_dir" : 'X\(//\)$' \| \
345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 $as_echo X"$as_dir" |
347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)[^/].*/{
352 s//\1/
353 q
354 }
355 /^X\(\/\/\)$/{
356 s//\1/
357 q
358 }
359 /^X\(\/\).*/{
360 s//\1/
361 q
362 }
363 s/.*/./; q'`
364 test -d "$as_dir" && break
365 done
366 test -z "$as_dirs" || eval "mkdir $as_dirs"
367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370 } # as_fn_mkdir_p
371
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
376 {
377 test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
384 # implementations.
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386 eval 'as_fn_append ()
387 {
388 eval $1+=\$2
389 }'
390 else
391 as_fn_append ()
392 {
393 eval $1=\$$1\$2
394 }
395 fi # as_fn_append
396
397 # as_fn_arith ARG...
398 # ------------------
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403 eval 'as_fn_arith ()
404 {
405 as_val=$(( $* ))
406 }'
407 else
408 as_fn_arith ()
409 {
410 as_val=`expr "$@" || test $? -eq 1`
411 }
412 fi # as_fn_arith
413
414
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
420 as_fn_error ()
421 {
422 as_status=$1; test $as_status -eq 0 && as_status=1
423 if test "$4"; then
424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 fi
427 $as_echo "$as_me: error: $2" >&2
428 as_fn_exit $as_status
429 } # as_fn_error
430
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432 test "X`expr 00001 : '.*\(...\)'`" = X001; then
433 as_expr=expr
434 else
435 as_expr=false
436 fi
437
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439 as_basename=basename
440 else
441 as_basename=false
442 fi
443
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445 as_dirname=dirname
446 else
447 as_dirname=false
448 fi
449
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452 X"$0" : 'X\(//\)$' \| \
453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 $as_echo X/"$0" |
455 sed '/^.*\/\([^/][^/]*\)\/*$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\/\)$/{
460 s//\1/
461 q
462 }
463 /^X\/\(\/\).*/{
464 s//\1/
465 q
466 }
467 s/.*/./; q'`
468
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477 as_lineno_1=$LINENO as_lineno_1a=$LINENO
478 as_lineno_2=$LINENO as_lineno_2a=$LINENO
479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
482 sed -n '
483 p
484 /[$]LINENO/=
485 ' <$as_myself |
486 sed '
487 s/[$]LINENO.*/&-/
488 t lineno
489 b
490 :lineno
491 N
492 :loop
493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494 t loop
495 s/-\n.*//
496 ' >$as_me.lineno &&
497 chmod +x "$as_me.lineno" ||
498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501 # already done that, so ensure we don't try to do so again and fall
502 # in an infinite loop. This has already happened in practice.
503 _as_can_reexec=no; export _as_can_reexec
504 # Don't try to exec as it changes $[0], causing all sort of problems
505 # (the dirname of $[0] is not the place where we might find the
506 # original and so on. Autoconf is especially sensitive to this).
507 . "./$as_me.lineno"
508 # Exit status is that of the last command.
509 exit
510 }
511
512 ECHO_C= ECHO_N= ECHO_T=
513 case `echo -n x` in #(((((
514 -n*)
515 case `echo 'xy\c'` in
516 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 xy) ECHO_C='\c';;
518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
519 ECHO_T=' ';;
520 esac;;
521 *)
522 ECHO_N='-n';;
523 esac
524
525 rm -f conf$$ conf$$.exe conf$$.file
526 if test -d conf$$.dir; then
527 rm -f conf$$.dir/conf$$.file
528 else
529 rm -f conf$$.dir
530 mkdir conf$$.dir 2>/dev/null
531 fi
532 if (echo >conf$$.file) 2>/dev/null; then
533 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 as_ln_s='ln -s'
535 # ... but there are two gotchas:
536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538 # In both cases, we have to default to `cp -pR'.
539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 as_ln_s='cp -pR'
541 elif ln conf$$.file conf$$ 2>/dev/null; then
542 as_ln_s=ln
543 else
544 as_ln_s='cp -pR'
545 fi
546 else
547 as_ln_s='cp -pR'
548 fi
549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550 rmdir conf$$.dir 2>/dev/null
551
552 if mkdir -p . 2>/dev/null; then
553 as_mkdir_p='mkdir -p "$as_dir"'
554 else
555 test -d ./-p && rmdir ./-p
556 as_mkdir_p=false
557 fi
558
559 as_test_x='test -x'
560 as_executable_p=as_fn_executable_p
561
562 # Sed expression to map a string onto a valid CPP name.
563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565 # Sed expression to map a string onto a valid variable name.
566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568 SHELL=${CONFIG_SHELL-/bin/sh}
569
570
571 test -n "$DJDIR" || exec 7<&0 </dev/null
572 exec 6>&1
573
574 # Name of the host.
575 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576 # so uname gets run too.
577 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
579 #
580 # Initializations.
581 #
582 ac_default_prefix=/usr/local
583 ac_clean_files=
584 ac_config_libobj_dir=.
585 LIBOBJS=
586 cross_compiling=no
587 subdirs=
588 MFLAGS=
589 MAKEFLAGS=
590
591 # Identity of this package.
592 PACKAGE_NAME='xf86-video-mga'
593 PACKAGE_TARNAME='xf86-video-mga'
594 PACKAGE_VERSION='1.6.3'
595 PACKAGE_STRING='xf86-video-mga 1.6.3'
596 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
597 PACKAGE_URL=''
598
599 ac_unique_file="Makefile.am"
600 # Factoring default headers for most tests.
601 ac_includes_default="\
602 #include <stdio.h>
603 #ifdef HAVE_SYS_TYPES_H
604 # include <sys/types.h>
605 #endif
606 #ifdef HAVE_SYS_STAT_H
607 # include <sys/stat.h>
608 #endif
609 #ifdef STDC_HEADERS
610 # include <stdlib.h>
611 # include <stddef.h>
612 #else
613 # ifdef HAVE_STDLIB_H
614 # include <stdlib.h>
615 # endif
616 #endif
617 #ifdef HAVE_STRING_H
618 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 # include <memory.h>
620 # endif
621 # include <string.h>
622 #endif
623 #ifdef HAVE_STRINGS_H
624 # include <strings.h>
625 #endif
626 #ifdef HAVE_INTTYPES_H
627 # include <inttypes.h>
628 #endif
629 #ifdef HAVE_STDINT_H
630 # include <stdint.h>
631 #endif
632 #ifdef HAVE_UNISTD_H
633 # include <unistd.h>
634 #endif"
635
636 ac_subst_vars='am__EXEEXT_FALSE
637 am__EXEEXT_TRUE
638 LTLIBOBJS
639 LIBOBJS
640 DRIVER_NAME
641 moduledir
642 USE_EXA_FALSE
643 USE_EXA_TRUE
644 XAA_FALSE
645 XAA_TRUE
646 XSERVER_LIBPCIACCESS_FALSE
647 XSERVER_LIBPCIACCESS_TRUE
648 PCIACCESS_LIBS
649 PCIACCESS_CFLAGS
650 DRI_LIBS
651 DRI_CFLAGS
652 DRI_FALSE
653 DRI_TRUE
654 XORG_LIBS
655 XORG_CFLAGS
656 OTOOL64
657 OTOOL
658 LIPO
659 NMEDIT
660 DSYMUTIL
661 MANIFEST_TOOL
662 RANLIB
663 ac_ct_AR
664 AR
665 DLLTOOL
666 OBJDUMP
667 LN_S
668 NM
669 ac_ct_DUMPBIN
670 DUMPBIN
671 LD
672 FGREP
673 LIBTOOL
674 MAINT
675 MAINTAINER_MODE_FALSE
676 MAINTAINER_MODE_TRUE
677 am__fastdepCC_FALSE
678 am__fastdepCC_TRUE
679 CCDEPMODE
680 am__nodep
681 AMDEPBACKSLASH
682 AMDEP_FALSE
683 AMDEP_TRUE
684 am__quote
685 am__include
686 DEPDIR
687 am__untar
688 am__tar
689 AMTAR
690 am__leading_dot
691 SET_MAKE
692 AWK
693 mkdir_p
694 MKDIR_P
695 INSTALL_STRIP_PROGRAM
696 STRIP
697 install_sh
698 MAKEINFO
699 AUTOHEADER
700 AUTOMAKE
701 AUTOCONF
702 ACLOCAL
703 VERSION
704 PACKAGE
705 CYGPATH_W
706 am__isrc
707 AM_BACKSLASH
708 AM_DEFAULT_VERBOSITY
709 AM_DEFAULT_V
710 AM_V
711 MAN_SUBSTS
712 XORG_MAN_PAGE
713 ADMIN_MAN_DIR
714 DRIVER_MAN_DIR
715 MISC_MAN_DIR
716 FILE_MAN_DIR
717 LIB_MAN_DIR
718 APP_MAN_DIR
719 ADMIN_MAN_SUFFIX
720 DRIVER_MAN_SUFFIX
721 MISC_MAN_SUFFIX
722 FILE_MAN_SUFFIX
723 LIB_MAN_SUFFIX
724 APP_MAN_SUFFIX
725 SED
726 host_os
727 host_vendor
728 host_cpu
729 host
730 build_os
731 build_vendor
732 build_cpu
733 build
734 INSTALL_CMD
735 PKG_CONFIG_LIBDIR
736 PKG_CONFIG_PATH
737 PKG_CONFIG
738 CHANGELOG_CMD
739 STRICT_CFLAGS
740 CWARNFLAGS
741 BASE_CFLAGS
742 EGREP
743 GREP
744 CPP
745 OBJEXT
746 EXEEXT
747 ac_ct_CC
748 CPPFLAGS
749 LDFLAGS
750 CFLAGS
751 CC
752 INSTALL_DATA
753 INSTALL_SCRIPT
754 INSTALL_PROGRAM
755 target_alias
756 host_alias
757 build_alias
758 LIBS
759 ECHO_T
760 ECHO_N
761 ECHO_C
762 DEFS
763 mandir
764 localedir
765 libdir
766 psdir
767 pdfdir
768 dvidir
769 htmldir
770 infodir
771 docdir
772 oldincludedir
773 includedir
774 localstatedir
775 sharedstatedir
776 sysconfdir
777 datadir
778 datarootdir
779 libexecdir
780 sbindir
781 bindir
782 program_transform_name
783 prefix
784 exec_prefix
785 PACKAGE_URL
786 PACKAGE_BUGREPORT
787 PACKAGE_STRING
788 PACKAGE_VERSION
789 PACKAGE_TARNAME
790 PACKAGE_NAME
791 PATH_SEPARATOR
792 SHELL'
793 ac_subst_files=''
794 ac_user_opts='
795 enable_option_checking
796 enable_selective_werror
797 enable_strict_compilation
798 enable_silent_rules
799 enable_dependency_tracking
800 enable_maintainer_mode
801 enable_static
802 enable_shared
803 with_pic
804 enable_fast_install
805 with_gnu_ld
806 with_sysroot
807 enable_libtool_lock
808 with_xorg_module_dir
809 enable_dri
810 enable_exa
811 enable_xaa
812 '
813 ac_precious_vars='build_alias
814 host_alias
815 target_alias
816 CC
817 CFLAGS
818 LDFLAGS
819 LIBS
820 CPPFLAGS
821 CPP
822 PKG_CONFIG
823 PKG_CONFIG_PATH
824 PKG_CONFIG_LIBDIR
825 XORG_CFLAGS
826 XORG_LIBS
827 DRI_CFLAGS
828 DRI_LIBS
829 PCIACCESS_CFLAGS
830 PCIACCESS_LIBS'
831
832
833 # Initialize some variables set by options.
834 ac_init_help=
835 ac_init_version=false
836 ac_unrecognized_opts=
837 ac_unrecognized_sep=
838 # The variables have the same names as the options, with
839 # dashes changed to underlines.
840 cache_file=/dev/null
841 exec_prefix=NONE
842 no_create=
843 no_recursion=
844 prefix=NONE
845 program_prefix=NONE
846 program_suffix=NONE
847 program_transform_name=s,x,x,
848 silent=
849 site=
850 srcdir=
851 verbose=
852 x_includes=NONE
853 x_libraries=NONE
854
855 # Installation directory options.
856 # These are left unexpanded so users can "make install exec_prefix=/foo"
857 # and all the variables that are supposed to be based on exec_prefix
858 # by default will actually change.
859 # Use braces instead of parens because sh, perl, etc. also accept them.
860 # (The list follows the same order as the GNU Coding Standards.)
861 bindir='${exec_prefix}/bin'
862 sbindir='${exec_prefix}/sbin'
863 libexecdir='${exec_prefix}/libexec'
864 datarootdir='${prefix}/share'
865 datadir='${datarootdir}'
866 sysconfdir='${prefix}/etc'
867 sharedstatedir='${prefix}/com'
868 localstatedir='${prefix}/var'
869 includedir='${prefix}/include'
870 oldincludedir='/usr/include'
871 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
872 infodir='${datarootdir}/info'
873 htmldir='${docdir}'
874 dvidir='${docdir}'
875 pdfdir='${docdir}'
876 psdir='${docdir}'
877 libdir='${exec_prefix}/lib'
878 localedir='${datarootdir}/locale'
879 mandir='${datarootdir}/man'
880
881 ac_prev=
882 ac_dashdash=
883 for ac_option
884 do
885 # If the previous option needs an argument, assign it.
886 if test -n "$ac_prev"; then
887 eval $ac_prev=\$ac_option
888 ac_prev=
889 continue
890 fi
891
892 case $ac_option in
893 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
894 *=) ac_optarg= ;;
895 *) ac_optarg=yes ;;
896 esac
897
898 # Accept the important Cygnus configure options, so we can diagnose typos.
899
900 case $ac_dashdash$ac_option in
901 --)
902 ac_dashdash=yes ;;
903
904 -bindir | --bindir | --bindi | --bind | --bin | --bi)
905 ac_prev=bindir ;;
906 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
907 bindir=$ac_optarg ;;
908
909 -build | --build | --buil | --bui | --bu)
910 ac_prev=build_alias ;;
911 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
912 build_alias=$ac_optarg ;;
913
914 -cache-file | --cache-file | --cache-fil | --cache-fi \
915 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
916 ac_prev=cache_file ;;
917 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
918 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
919 cache_file=$ac_optarg ;;
920
921 --config-cache | -C)
922 cache_file=config.cache ;;
923
924 -datadir | --datadir | --datadi | --datad)
925 ac_prev=datadir ;;
926 -datadir=* | --datadir=* | --datadi=* | --datad=*)
927 datadir=$ac_optarg ;;
928
929 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
930 | --dataroo | --dataro | --datar)
931 ac_prev=datarootdir ;;
932 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
933 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
934 datarootdir=$ac_optarg ;;
935
936 -disable-* | --disable-*)
937 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
938 # Reject names that are not valid shell variable names.
939 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
940 as_fn_error $? "invalid feature name: $ac_useropt"
941 ac_useropt_orig=$ac_useropt
942 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
943 case $ac_user_opts in
944 *"
945 "enable_$ac_useropt"
946 "*) ;;
947 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
948 ac_unrecognized_sep=', ';;
949 esac
950 eval enable_$ac_useropt=no ;;
951
952 -docdir | --docdir | --docdi | --doc | --do)
953 ac_prev=docdir ;;
954 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
955 docdir=$ac_optarg ;;
956
957 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
958 ac_prev=dvidir ;;
959 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
960 dvidir=$ac_optarg ;;
961
962 -enable-* | --enable-*)
963 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
964 # Reject names that are not valid shell variable names.
965 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
966 as_fn_error $? "invalid feature name: $ac_useropt"
967 ac_useropt_orig=$ac_useropt
968 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
969 case $ac_user_opts in
970 *"
971 "enable_$ac_useropt"
972 "*) ;;
973 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
974 ac_unrecognized_sep=', ';;
975 esac
976 eval enable_$ac_useropt=\$ac_optarg ;;
977
978 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
979 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
980 | --exec | --exe | --ex)
981 ac_prev=exec_prefix ;;
982 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
983 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
984 | --exec=* | --exe=* | --ex=*)
985 exec_prefix=$ac_optarg ;;
986
987 -gas | --gas | --ga | --g)
988 # Obsolete; use --with-gas.
989 with_gas=yes ;;
990
991 -help | --help | --hel | --he | -h)
992 ac_init_help=long ;;
993 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
994 ac_init_help=recursive ;;
995 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
996 ac_init_help=short ;;
997
998 -host | --host | --hos | --ho)
999 ac_prev=host_alias ;;
1000 -host=* | --host=* | --hos=* | --ho=*)
1001 host_alias=$ac_optarg ;;
1002
1003 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1004 ac_prev=htmldir ;;
1005 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1006 | --ht=*)
1007 htmldir=$ac_optarg ;;
1008
1009 -includedir | --includedir | --includedi | --included | --include \
1010 | --includ | --inclu | --incl | --inc)
1011 ac_prev=includedir ;;
1012 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1013 | --includ=* | --inclu=* | --incl=* | --inc=*)
1014 includedir=$ac_optarg ;;
1015
1016 -infodir | --infodir | --infodi | --infod | --info | --inf)
1017 ac_prev=infodir ;;
1018 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1019 infodir=$ac_optarg ;;
1020
1021 -libdir | --libdir | --libdi | --libd)
1022 ac_prev=libdir ;;
1023 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1024 libdir=$ac_optarg ;;
1025
1026 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1027 | --libexe | --libex | --libe)
1028 ac_prev=libexecdir ;;
1029 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1030 | --libexe=* | --libex=* | --libe=*)
1031 libexecdir=$ac_optarg ;;
1032
1033 -localedir | --localedir | --localedi | --localed | --locale)
1034 ac_prev=localedir ;;
1035 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1036 localedir=$ac_optarg ;;
1037
1038 -localstatedir | --localstatedir | --localstatedi | --localstated \
1039 | --localstate | --localstat | --localsta | --localst | --locals)
1040 ac_prev=localstatedir ;;
1041 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1042 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1043 localstatedir=$ac_optarg ;;
1044
1045 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1046 ac_prev=mandir ;;
1047 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1048 mandir=$ac_optarg ;;
1049
1050 -nfp | --nfp | --nf)
1051 # Obsolete; use --without-fp.
1052 with_fp=no ;;
1053
1054 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1055 | --no-cr | --no-c | -n)
1056 no_create=yes ;;
1057
1058 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1059 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1060 no_recursion=yes ;;
1061
1062 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1063 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1064 | --oldin | --oldi | --old | --ol | --o)
1065 ac_prev=oldincludedir ;;
1066 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1067 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1068 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1069 oldincludedir=$ac_optarg ;;
1070
1071 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1072 ac_prev=prefix ;;
1073 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1074 prefix=$ac_optarg ;;
1075
1076 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1077 | --program-pre | --program-pr | --program-p)
1078 ac_prev=program_prefix ;;
1079 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1080 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1081 program_prefix=$ac_optarg ;;
1082
1083 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1084 | --program-suf | --program-su | --program-s)
1085 ac_prev=program_suffix ;;
1086 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1087 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1088 program_suffix=$ac_optarg ;;
1089
1090 -program-transform-name | --program-transform-name \
1091 | --program-transform-nam | --program-transform-na \
1092 | --program-transform-n | --program-transform- \
1093 | --program-transform | --program-transfor \
1094 | --program-transfo | --program-transf \
1095 | --program-trans | --program-tran \
1096 | --progr-tra | --program-tr | --program-t)
1097 ac_prev=program_transform_name ;;
1098 -program-transform-name=* | --program-transform-name=* \
1099 | --program-transform-nam=* | --program-transform-na=* \
1100 | --program-transform-n=* | --program-transform-=* \
1101 | --program-transform=* | --program-transfor=* \
1102 | --program-transfo=* | --program-transf=* \
1103 | --program-trans=* | --program-tran=* \
1104 | --progr-tra=* | --program-tr=* | --program-t=*)
1105 program_transform_name=$ac_optarg ;;
1106
1107 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1108 ac_prev=pdfdir ;;
1109 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1110 pdfdir=$ac_optarg ;;
1111
1112 -psdir | --psdir | --psdi | --psd | --ps)
1113 ac_prev=psdir ;;
1114 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1115 psdir=$ac_optarg ;;
1116
1117 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1118 | -silent | --silent | --silen | --sile | --sil)
1119 silent=yes ;;
1120
1121 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1122 ac_prev=sbindir ;;
1123 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1124 | --sbi=* | --sb=*)
1125 sbindir=$ac_optarg ;;
1126
1127 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1128 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1129 | --sharedst | --shareds | --shared | --share | --shar \
1130 | --sha | --sh)
1131 ac_prev=sharedstatedir ;;
1132 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1133 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1134 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1135 | --sha=* | --sh=*)
1136 sharedstatedir=$ac_optarg ;;
1137
1138 -site | --site | --sit)
1139 ac_prev=site ;;
1140 -site=* | --site=* | --sit=*)
1141 site=$ac_optarg ;;
1142
1143 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1144 ac_prev=srcdir ;;
1145 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1146 srcdir=$ac_optarg ;;
1147
1148 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1149 | --syscon | --sysco | --sysc | --sys | --sy)
1150 ac_prev=sysconfdir ;;
1151 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1152 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1153 sysconfdir=$ac_optarg ;;
1154
1155 -target | --target | --targe | --targ | --tar | --ta | --t)
1156 ac_prev=target_alias ;;
1157 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1158 target_alias=$ac_optarg ;;
1159
1160 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1161 verbose=yes ;;
1162
1163 -version | --version | --versio | --versi | --vers | -V)
1164 ac_init_version=: ;;
1165
1166 -with-* | --with-*)
1167 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1168 # Reject names that are not valid shell variable names.
1169 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1170 as_fn_error $? "invalid package name: $ac_useropt"
1171 ac_useropt_orig=$ac_useropt
1172 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1173 case $ac_user_opts in
1174 *"
1175 "with_$ac_useropt"
1176 "*) ;;
1177 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1178 ac_unrecognized_sep=', ';;
1179 esac
1180 eval with_$ac_useropt=\$ac_optarg ;;
1181
1182 -without-* | --without-*)
1183 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1184 # Reject names that are not valid shell variable names.
1185 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1186 as_fn_error $? "invalid package name: $ac_useropt"
1187 ac_useropt_orig=$ac_useropt
1188 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1189 case $ac_user_opts in
1190 *"
1191 "with_$ac_useropt"
1192 "*) ;;
1193 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1194 ac_unrecognized_sep=', ';;
1195 esac
1196 eval with_$ac_useropt=no ;;
1197
1198 --x)
1199 # Obsolete; use --with-x.
1200 with_x=yes ;;
1201
1202 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1203 | --x-incl | --x-inc | --x-in | --x-i)
1204 ac_prev=x_includes ;;
1205 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1206 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1207 x_includes=$ac_optarg ;;
1208
1209 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1210 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1211 ac_prev=x_libraries ;;
1212 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1213 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1214 x_libraries=$ac_optarg ;;
1215
1216 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1217 Try \`$0 --help' for more information"
1218 ;;
1219
1220 *=*)
1221 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1222 # Reject names that are not valid shell variable names.
1223 case $ac_envvar in #(
1224 '' | [0-9]* | *[!_$as_cr_alnum]* )
1225 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1226 esac
1227 eval $ac_envvar=\$ac_optarg
1228 export $ac_envvar ;;
1229
1230 *)
1231 # FIXME: should be removed in autoconf 3.0.
1232 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1233 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1234 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1235 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1236 ;;
1237
1238 esac
1239 done
1240
1241 if test -n "$ac_prev"; then
1242 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1243 as_fn_error $? "missing argument to $ac_option"
1244 fi
1245
1246 if test -n "$ac_unrecognized_opts"; then
1247 case $enable_option_checking in
1248 no) ;;
1249 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1250 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1251 esac
1252 fi
1253
1254 # Check all directory arguments for consistency.
1255 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1256 datadir sysconfdir sharedstatedir localstatedir includedir \
1257 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1258 libdir localedir mandir
1259 do
1260 eval ac_val=\$$ac_var
1261 # Remove trailing slashes.
1262 case $ac_val in
1263 */ )
1264 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1265 eval $ac_var=\$ac_val;;
1266 esac
1267 # Be sure to have absolute directory names.
1268 case $ac_val in
1269 [\\/$]* | ?:[\\/]* ) continue;;
1270 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1271 esac
1272 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1273 done
1274
1275 # There might be people who depend on the old broken behavior: `$host'
1276 # used to hold the argument of --host etc.
1277 # FIXME: To remove some day.
1278 build=$build_alias
1279 host=$host_alias
1280 target=$target_alias
1281
1282 # FIXME: To remove some day.
1283 if test "x$host_alias" != x; then
1284 if test "x$build_alias" = x; then
1285 cross_compiling=maybe
1286 elif test "x$build_alias" != "x$host_alias"; then
1287 cross_compiling=yes
1288 fi
1289 fi
1290
1291 ac_tool_prefix=
1292 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1293
1294 test "$silent" = yes && exec 6>/dev/null
1295
1296
1297 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1298 ac_ls_di=`ls -di .` &&
1299 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1300 as_fn_error $? "working directory cannot be determined"
1301 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1302 as_fn_error $? "pwd does not report name of working directory"
1303
1304
1305 # Find the source files, if location was not specified.
1306 if test -z "$srcdir"; then
1307 ac_srcdir_defaulted=yes
1308 # Try the directory containing this script, then the parent directory.
1309 ac_confdir=`$as_dirname -- "$as_myself" ||
1310 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1311 X"$as_myself" : 'X\(//\)[^/]' \| \
1312 X"$as_myself" : 'X\(//\)$' \| \
1313 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1314 $as_echo X"$as_myself" |
1315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1316 s//\1/
1317 q
1318 }
1319 /^X\(\/\/\)[^/].*/{
1320 s//\1/
1321 q
1322 }
1323 /^X\(\/\/\)$/{
1324 s//\1/
1325 q
1326 }
1327 /^X\(\/\).*/{
1328 s//\1/
1329 q
1330 }
1331 s/.*/./; q'`
1332 srcdir=$ac_confdir
1333 if test ! -r "$srcdir/$ac_unique_file"; then
1334 srcdir=..
1335 fi
1336 else
1337 ac_srcdir_defaulted=no
1338 fi
1339 if test ! -r "$srcdir/$ac_unique_file"; then
1340 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1341 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1342 fi
1343 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1344 ac_abs_confdir=`(
1345 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1346 pwd)`
1347 # When building in place, set srcdir=.
1348 if test "$ac_abs_confdir" = "$ac_pwd"; then
1349 srcdir=.
1350 fi
1351 # Remove unnecessary trailing slashes from srcdir.
1352 # Double slashes in file names in object file debugging info
1353 # mess up M-x gdb in Emacs.
1354 case $srcdir in
1355 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1356 esac
1357 for ac_var in $ac_precious_vars; do
1358 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1359 eval ac_env_${ac_var}_value=\$${ac_var}
1360 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1361 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1362 done
1363
1364 #
1365 # Report the --help message.
1366 #
1367 if test "$ac_init_help" = "long"; then
1368 # Omit some internal or obsolete options to make the list less imposing.
1369 # This message is too long to be a string in the A/UX 3.1 sh.
1370 cat <<_ACEOF
1371 \`configure' configures xf86-video-mga 1.6.3 to adapt to many kinds of systems.
1372
1373 Usage: $0 [OPTION]... [VAR=VALUE]...
1374
1375 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1376 VAR=VALUE. See below for descriptions of some of the useful variables.
1377
1378 Defaults for the options are specified in brackets.
1379
1380 Configuration:
1381 -h, --help display this help and exit
1382 --help=short display options specific to this package
1383 --help=recursive display the short help of all the included packages
1384 -V, --version display version information and exit
1385 -q, --quiet, --silent do not print \`checking ...' messages
1386 --cache-file=FILE cache test results in FILE [disabled]
1387 -C, --config-cache alias for \`--cache-file=config.cache'
1388 -n, --no-create do not create output files
1389 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1390
1391 Installation directories:
1392 --prefix=PREFIX install architecture-independent files in PREFIX
1393 [$ac_default_prefix]
1394 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1395 [PREFIX]
1396
1397 By default, \`make install' will install all the files in
1398 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1399 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1400 for instance \`--prefix=\$HOME'.
1401
1402 For better control, use the options below.
1403
1404 Fine tuning of the installation directories:
1405 --bindir=DIR user executables [EPREFIX/bin]
1406 --sbindir=DIR system admin executables [EPREFIX/sbin]
1407 --libexecdir=DIR program executables [EPREFIX/libexec]
1408 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1409 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1410 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1411 --libdir=DIR object code libraries [EPREFIX/lib]
1412 --includedir=DIR C header files [PREFIX/include]
1413 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1414 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1415 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1416 --infodir=DIR info documentation [DATAROOTDIR/info]
1417 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1418 --mandir=DIR man documentation [DATAROOTDIR/man]
1419 --docdir=DIR documentation root [DATAROOTDIR/doc/xf86-video-mga]
1420 --htmldir=DIR html documentation [DOCDIR]
1421 --dvidir=DIR dvi documentation [DOCDIR]
1422 --pdfdir=DIR pdf documentation [DOCDIR]
1423 --psdir=DIR ps documentation [DOCDIR]
1424 _ACEOF
1425
1426 cat <<\_ACEOF
1427
1428 Program names:
1429 --program-prefix=C prepend C to installed program names
1430 --program-suffix=SUFFIX append SUFFIX to installed program names
1431 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1432
1433 System types:
1434 --build=BUILD configure for building on BUILD [guessed]
1435 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1436 _ACEOF
1437 fi
1438
1439 if test -n "$ac_init_help"; then
1440 case $ac_init_help in
1441 short | recursive ) echo "Configuration of xf86-video-mga 1.6.3:";;
1442 esac
1443 cat <<\_ACEOF
1444
1445 Optional Features:
1446 --disable-option-checking ignore unrecognized --enable/--with options
1447 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1448 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1449 --disable-selective-werror
1450 Turn off selective compiler errors. (default:
1451 enabled)
1452 --enable-strict-compilation
1453 Enable all warnings from compiler and make them
1454 errors (default: disabled)
1455 --enable-silent-rules less verbose build output (undo: "make V=1")
1456 --disable-silent-rules verbose build output (undo: "make V=0")
1457 --enable-dependency-tracking
1458 do not reject slow dependency extractors
1459 --disable-dependency-tracking
1460 speeds up one-time build
1461 --enable-maintainer-mode
1462 enable make rules and dependencies not useful (and
1463 sometimes confusing) to the casual installer
1464 --enable-static[=PKGS] build static libraries [default=no]
1465 --enable-shared[=PKGS] build shared libraries [default=yes]
1466 --enable-fast-install[=PKGS]
1467 optimize for fast installation [default=yes]
1468 --disable-libtool-lock avoid locking (might break parallel builds)
1469 --disable-dri Disable DRI support [[default=auto]]
1470 --disable-exa Disable EXA support [[default=enabled]]
1471 --enable-xaa Enable legacy X Acceleration Architecture (XAA)
1472 [default=auto]
1473
1474 Optional Packages:
1475 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1476 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1477 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1478 both]
1479 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1480 --with-sysroot=DIR Search for dependent libraries within DIR
1481 (or the compiler's sysroot if not specified).
1482 --with-xorg-module-dir=DIR
1483 Default xorg module directory
1484 [[default=$libdir/xorg/modules]]
1485
1486 Some influential environment variables:
1487 CC C compiler command
1488 CFLAGS C compiler flags
1489 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1490 nonstandard directory <lib dir>
1491 LIBS libraries to pass to the linker, e.g. -l<library>
1492 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1493 you have headers in a nonstandard directory <include dir>
1494 CPP C preprocessor
1495 PKG_CONFIG path to pkg-config utility
1496 PKG_CONFIG_PATH
1497 directories to add to pkg-config's search path
1498 PKG_CONFIG_LIBDIR
1499 path overriding pkg-config's built-in search path
1500 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1501 XORG_LIBS linker flags for XORG, overriding pkg-config
1502 DRI_CFLAGS C compiler flags for DRI, overriding pkg-config
1503 DRI_LIBS linker flags for DRI, overriding pkg-config
1504 PCIACCESS_CFLAGS
1505 C compiler flags for PCIACCESS, overriding pkg-config
1506 PCIACCESS_LIBS
1507 linker flags for PCIACCESS, overriding pkg-config
1508
1509 Use these variables to override the choices made by `configure' or to help
1510 it to find libraries and programs with nonstandard names/locations.
1511
1512 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1513 _ACEOF
1514 ac_status=$?
1515 fi
1516
1517 if test "$ac_init_help" = "recursive"; then
1518 # If there are subdirs, report their specific --help.
1519 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1520 test -d "$ac_dir" ||
1521 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1522 continue
1523 ac_builddir=.
1524
1525 case "$ac_dir" in
1526 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1527 *)
1528 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1529 # A ".." for each directory in $ac_dir_suffix.
1530 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1531 case $ac_top_builddir_sub in
1532 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1533 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1534 esac ;;
1535 esac
1536 ac_abs_top_builddir=$ac_pwd
1537 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1538 # for backward compatibility:
1539 ac_top_builddir=$ac_top_build_prefix
1540
1541 case $srcdir in
1542 .) # We are building in place.
1543 ac_srcdir=.
1544 ac_top_srcdir=$ac_top_builddir_sub
1545 ac_abs_top_srcdir=$ac_pwd ;;
1546 [\\/]* | ?:[\\/]* ) # Absolute name.
1547 ac_srcdir=$srcdir$ac_dir_suffix;
1548 ac_top_srcdir=$srcdir
1549 ac_abs_top_srcdir=$srcdir ;;
1550 *) # Relative name.
1551 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1552 ac_top_srcdir=$ac_top_build_prefix$srcdir
1553 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1554 esac
1555 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1556
1557 cd "$ac_dir" || { ac_status=$?; continue; }
1558 # Check for guested configure.
1559 if test -f "$ac_srcdir/configure.gnu"; then
1560 echo &&
1561 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1562 elif test -f "$ac_srcdir/configure"; then
1563 echo &&
1564 $SHELL "$ac_srcdir/configure" --help=recursive
1565 else
1566 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1567 fi || ac_status=$?
1568 cd "$ac_pwd" || { ac_status=$?; break; }
1569 done
1570 fi
1571
1572 test -n "$ac_init_help" && exit $ac_status
1573 if $ac_init_version; then
1574 cat <<\_ACEOF
1575 xf86-video-mga configure 1.6.3
1576 generated by GNU Autoconf 2.69
1577
1578 Copyright (C) 2012 Free Software Foundation, Inc.
1579 This configure script is free software; the Free Software Foundation
1580 gives unlimited permission to copy, distribute and modify it.
1581 _ACEOF
1582 exit
1583 fi
1584
1585 ## ------------------------ ##
1586 ## Autoconf initialization. ##
1587 ## ------------------------ ##
1588
1589 # ac_fn_c_try_compile LINENO
1590 # --------------------------
1591 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1592 ac_fn_c_try_compile ()
1593 {
1594 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1595 rm -f conftest.$ac_objext
1596 if { { ac_try="$ac_compile"
1597 case "(($ac_try" in
1598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1599 *) ac_try_echo=$ac_try;;
1600 esac
1601 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1602 $as_echo "$ac_try_echo"; } >&5
1603 (eval "$ac_compile") 2>conftest.err
1604 ac_status=$?
1605 if test -s conftest.err; then
1606 grep -v '^ *+' conftest.err >conftest.er1
1607 cat conftest.er1 >&5
1608 mv -f conftest.er1 conftest.err
1609 fi
1610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1611 test $ac_status = 0; } && {
1612 test -z "$ac_c_werror_flag" ||
1613 test ! -s conftest.err
1614 } && test -s conftest.$ac_objext; then :
1615 ac_retval=0
1616 else
1617 $as_echo "$as_me: failed program was:" >&5
1618 sed 's/^/| /' conftest.$ac_ext >&5
1619
1620 ac_retval=1
1621 fi
1622 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1623 as_fn_set_status $ac_retval
1624
1625 } # ac_fn_c_try_compile
1626
1627 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1628 # ---------------------------------------------
1629 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1630 # accordingly.
1631 ac_fn_c_check_decl ()
1632 {
1633 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1634 as_decl_name=`echo $2|sed 's/ *(.*//'`
1635 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1637 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1638 if eval \${$3+:} false; then :
1639 $as_echo_n "(cached) " >&6
1640 else
1641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1642 /* end confdefs.h. */
1643 $4
1644 int
1645 main ()
1646 {
1647 #ifndef $as_decl_name
1648 #ifdef __cplusplus
1649 (void) $as_decl_use;
1650 #else
1651 (void) $as_decl_name;
1652 #endif
1653 #endif
1654
1655 ;
1656 return 0;
1657 }
1658 _ACEOF
1659 if ac_fn_c_try_compile "$LINENO"; then :
1660 eval "$3=yes"
1661 else
1662 eval "$3=no"
1663 fi
1664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1665 fi
1666 eval ac_res=\$$3
1667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1668 $as_echo "$ac_res" >&6; }
1669 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1670
1671 } # ac_fn_c_check_decl
1672
1673 # ac_fn_c_try_cpp LINENO
1674 # ----------------------
1675 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1676 ac_fn_c_try_cpp ()
1677 {
1678 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1679 if { { ac_try="$ac_cpp conftest.$ac_ext"
1680 case "(($ac_try" in
1681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1682 *) ac_try_echo=$ac_try;;
1683 esac
1684 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1685 $as_echo "$ac_try_echo"; } >&5
1686 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1687 ac_status=$?
1688 if test -s conftest.err; then
1689 grep -v '^ *+' conftest.err >conftest.er1
1690 cat conftest.er1 >&5
1691 mv -f conftest.er1 conftest.err
1692 fi
1693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1694 test $ac_status = 0; } > conftest.i && {
1695 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1696 test ! -s conftest.err
1697 }; then :
1698 ac_retval=0
1699 else
1700 $as_echo "$as_me: failed program was:" >&5
1701 sed 's/^/| /' conftest.$ac_ext >&5
1702
1703 ac_retval=1
1704 fi
1705 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1706 as_fn_set_status $ac_retval
1707
1708 } # ac_fn_c_try_cpp
1709
1710 # ac_fn_c_try_run LINENO
1711 # ----------------------
1712 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1713 # that executables *can* be run.
1714 ac_fn_c_try_run ()
1715 {
1716 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1717 if { { ac_try="$ac_link"
1718 case "(($ac_try" in
1719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1720 *) ac_try_echo=$ac_try;;
1721 esac
1722 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1723 $as_echo "$ac_try_echo"; } >&5
1724 (eval "$ac_link") 2>&5
1725 ac_status=$?
1726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1727 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1728 { { case "(($ac_try" in
1729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1730 *) ac_try_echo=$ac_try;;
1731 esac
1732 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1733 $as_echo "$ac_try_echo"; } >&5
1734 (eval "$ac_try") 2>&5
1735 ac_status=$?
1736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1737 test $ac_status = 0; }; }; then :
1738 ac_retval=0
1739 else
1740 $as_echo "$as_me: program exited with status $ac_status" >&5
1741 $as_echo "$as_me: failed program was:" >&5
1742 sed 's/^/| /' conftest.$ac_ext >&5
1743
1744 ac_retval=$ac_status
1745 fi
1746 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1747 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1748 as_fn_set_status $ac_retval
1749
1750 } # ac_fn_c_try_run
1751
1752 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1753 # -------------------------------------------------------
1754 # Tests whether HEADER exists and can be compiled using the include files in
1755 # INCLUDES, setting the cache variable VAR accordingly.
1756 ac_fn_c_check_header_compile ()
1757 {
1758 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1760 $as_echo_n "checking for $2... " >&6; }
1761 if eval \${$3+:} false; then :
1762 $as_echo_n "(cached) " >&6
1763 else
1764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1765 /* end confdefs.h. */
1766 $4
1767 #include <$2>
1768 _ACEOF
1769 if ac_fn_c_try_compile "$LINENO"; then :
1770 eval "$3=yes"
1771 else
1772 eval "$3=no"
1773 fi
1774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1775 fi
1776 eval ac_res=\$$3
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1778 $as_echo "$ac_res" >&6; }
1779 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1780
1781 } # ac_fn_c_check_header_compile
1782
1783 # ac_fn_c_try_link LINENO
1784 # -----------------------
1785 # Try to link conftest.$ac_ext, and return whether this succeeded.
1786 ac_fn_c_try_link ()
1787 {
1788 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1789 rm -f conftest.$ac_objext conftest$ac_exeext
1790 if { { ac_try="$ac_link"
1791 case "(($ac_try" in
1792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1793 *) ac_try_echo=$ac_try;;
1794 esac
1795 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1796 $as_echo "$ac_try_echo"; } >&5
1797 (eval "$ac_link") 2>conftest.err
1798 ac_status=$?
1799 if test -s conftest.err; then
1800 grep -v '^ *+' conftest.err >conftest.er1
1801 cat conftest.er1 >&5
1802 mv -f conftest.er1 conftest.err
1803 fi
1804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1805 test $ac_status = 0; } && {
1806 test -z "$ac_c_werror_flag" ||
1807 test ! -s conftest.err
1808 } && test -s conftest$ac_exeext && {
1809 test "$cross_compiling" = yes ||
1810 test -x conftest$ac_exeext
1811 }; then :
1812 ac_retval=0
1813 else
1814 $as_echo "$as_me: failed program was:" >&5
1815 sed 's/^/| /' conftest.$ac_ext >&5
1816
1817 ac_retval=1
1818 fi
1819 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1820 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1821 # interfere with the next link command; also delete a directory that is
1822 # left behind by Apple's compiler. We do this before executing the actions.
1823 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1824 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1825 as_fn_set_status $ac_retval
1826
1827 } # ac_fn_c_try_link
1828
1829 # ac_fn_c_check_func LINENO FUNC VAR
1830 # ----------------------------------
1831 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1832 ac_fn_c_check_func ()
1833 {
1834 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1836 $as_echo_n "checking for $2... " >&6; }
1837 if eval \${$3+:} false; then :
1838 $as_echo_n "(cached) " >&6
1839 else
1840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1841 /* end confdefs.h. */
1842 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1843 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1844 #define $2 innocuous_$2
1845
1846 /* System header to define __stub macros and hopefully few prototypes,
1847 which can conflict with char $2 (); below.
1848 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1849 <limits.h> exists even on freestanding compilers. */
1850
1851 #ifdef __STDC__
1852 # include <limits.h>
1853 #else
1854 # include <assert.h>
1855 #endif
1856
1857 #undef $2
1858
1859 /* Override any GCC internal prototype to avoid an error.
1860 Use char because int might match the return type of a GCC
1861 builtin and then its argument prototype would still apply. */
1862 #ifdef __cplusplus
1863 extern "C"
1864 #endif
1865 char $2 ();
1866 /* The GNU C library defines this for functions which it implements
1867 to always fail with ENOSYS. Some functions are actually named
1868 something starting with __ and the normal name is an alias. */
1869 #if defined __stub_$2 || defined __stub___$2
1870 choke me
1871 #endif
1872
1873 int
1874 main ()
1875 {
1876 return $2 ();
1877 ;
1878 return 0;
1879 }
1880 _ACEOF
1881 if ac_fn_c_try_link "$LINENO"; then :
1882 eval "$3=yes"
1883 else
1884 eval "$3=no"
1885 fi
1886 rm -f core conftest.err conftest.$ac_objext \
1887 conftest$ac_exeext conftest.$ac_ext
1888 fi
1889 eval ac_res=\$$3
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1891 $as_echo "$ac_res" >&6; }
1892 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1893
1894 } # ac_fn_c_check_func
1895
1896 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1897 # -------------------------------------------------------
1898 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1899 # the include files in INCLUDES and setting the cache variable VAR
1900 # accordingly.
1901 ac_fn_c_check_header_mongrel ()
1902 {
1903 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1904 if eval \${$3+:} false; then :
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1906 $as_echo_n "checking for $2... " >&6; }
1907 if eval \${$3+:} false; then :
1908 $as_echo_n "(cached) " >&6
1909 fi
1910 eval ac_res=\$$3
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1912 $as_echo "$ac_res" >&6; }
1913 else
1914 # Is the header compilable?
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1916 $as_echo_n "checking $2 usability... " >&6; }
1917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1918 /* end confdefs.h. */
1919 $4
1920 #include <$2>
1921 _ACEOF
1922 if ac_fn_c_try_compile "$LINENO"; then :
1923 ac_header_compiler=yes
1924 else
1925 ac_header_compiler=no
1926 fi
1927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1929 $as_echo "$ac_header_compiler" >&6; }
1930
1931 # Is the header present?
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1933 $as_echo_n "checking $2 presence... " >&6; }
1934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1935 /* end confdefs.h. */
1936 #include <$2>
1937 _ACEOF
1938 if ac_fn_c_try_cpp "$LINENO"; then :
1939 ac_header_preproc=yes
1940 else
1941 ac_header_preproc=no
1942 fi
1943 rm -f conftest.err conftest.i conftest.$ac_ext
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1945 $as_echo "$ac_header_preproc" >&6; }
1946
1947 # So? What about this header?
1948 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1949 yes:no: )
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1951 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1953 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1954 ;;
1955 no:yes:* )
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1957 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1959 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1961 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1963 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1965 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1966 ( $as_echo "## ---------------------------------------------------------------------- ##
1967 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
1968 ## ---------------------------------------------------------------------- ##"
1969 ) | sed "s/^/$as_me: WARNING: /" >&2
1970 ;;
1971 esac
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1973 $as_echo_n "checking for $2... " >&6; }
1974 if eval \${$3+:} false; then :
1975 $as_echo_n "(cached) " >&6
1976 else
1977 eval "$3=\$ac_header_compiler"
1978 fi
1979 eval ac_res=\$$3
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1981 $as_echo "$ac_res" >&6; }
1982 fi
1983 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1984
1985 } # ac_fn_c_check_header_mongrel
1986 cat >config.log <<_ACEOF
1987 This file contains any messages produced by compilers while
1988 running configure, to aid debugging if configure makes a mistake.
1989
1990 It was created by xf86-video-mga $as_me 1.6.3, which was
1991 generated by GNU Autoconf 2.69. Invocation command line was
1992
1993 $ $0 $@
1994
1995 _ACEOF
1996 exec 5>>config.log
1997 {
1998 cat <<_ASUNAME
1999 ## --------- ##
2000 ## Platform. ##
2001 ## --------- ##
2002
2003 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2004 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2005 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2006 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2007 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2008
2009 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2010 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2011
2012 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2013 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2014 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2015 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2016 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2017 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2018 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2019
2020 _ASUNAME
2021
2022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2023 for as_dir in $PATH
2024 do
2025 IFS=$as_save_IFS
2026 test -z "$as_dir" && as_dir=.
2027 $as_echo "PATH: $as_dir"
2028 done
2029 IFS=$as_save_IFS
2030
2031 } >&5
2032
2033 cat >&5 <<_ACEOF
2034
2035
2036 ## ----------- ##
2037 ## Core tests. ##
2038 ## ----------- ##
2039
2040 _ACEOF
2041
2042
2043 # Keep a trace of the command line.
2044 # Strip out --no-create and --no-recursion so they do not pile up.
2045 # Strip out --silent because we don't want to record it for future runs.
2046 # Also quote any args containing shell meta-characters.
2047 # Make two passes to allow for proper duplicate-argument suppression.
2048 ac_configure_args=
2049 ac_configure_args0=
2050 ac_configure_args1=
2051 ac_must_keep_next=false
2052 for ac_pass in 1 2
2053 do
2054 for ac_arg
2055 do
2056 case $ac_arg in
2057 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2058 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2059 | -silent | --silent | --silen | --sile | --sil)
2060 continue ;;
2061 *\'*)
2062 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2063 esac
2064 case $ac_pass in
2065 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2066 2)
2067 as_fn_append ac_configure_args1 " '$ac_arg'"
2068 if test $ac_must_keep_next = true; then
2069 ac_must_keep_next=false # Got value, back to normal.
2070 else
2071 case $ac_arg in
2072 *=* | --config-cache | -C | -disable-* | --disable-* \
2073 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2074 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2075 | -with-* | --with-* | -without-* | --without-* | --x)
2076 case "$ac_configure_args0 " in
2077 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2078 esac
2079 ;;
2080 -* ) ac_must_keep_next=true ;;
2081 esac
2082 fi
2083 as_fn_append ac_configure_args " '$ac_arg'"
2084 ;;
2085 esac
2086 done
2087 done
2088 { ac_configure_args0=; unset ac_configure_args0;}
2089 { ac_configure_args1=; unset ac_configure_args1;}
2090
2091 # When interrupted or exit'd, cleanup temporary files, and complete
2092 # config.log. We remove comments because anyway the quotes in there
2093 # would cause problems or look ugly.
2094 # WARNING: Use '\'' to represent an apostrophe within the trap.
2095 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2096 trap 'exit_status=$?
2097 # Save into config.log some information that might help in debugging.
2098 {
2099 echo
2100
2101 $as_echo "## ---------------- ##
2102 ## Cache variables. ##
2103 ## ---------------- ##"
2104 echo
2105 # The following way of writing the cache mishandles newlines in values,
2106 (
2107 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2108 eval ac_val=\$$ac_var
2109 case $ac_val in #(
2110 *${as_nl}*)
2111 case $ac_var in #(
2112 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2113 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2114 esac
2115 case $ac_var in #(
2116 _ | IFS | as_nl) ;; #(
2117 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2118 *) { eval $ac_var=; unset $ac_var;} ;;
2119 esac ;;
2120 esac
2121 done
2122 (set) 2>&1 |
2123 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2124 *${as_nl}ac_space=\ *)
2125 sed -n \
2126 "s/'\''/'\''\\\\'\'''\''/g;
2127 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2128 ;; #(
2129 *)
2130 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2131 ;;
2132 esac |
2133 sort
2134 )
2135 echo
2136
2137 $as_echo "## ----------------- ##
2138 ## Output variables. ##
2139 ## ----------------- ##"
2140 echo
2141 for ac_var in $ac_subst_vars
2142 do
2143 eval ac_val=\$$ac_var
2144 case $ac_val in
2145 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2146 esac
2147 $as_echo "$ac_var='\''$ac_val'\''"
2148 done | sort
2149 echo
2150
2151 if test -n "$ac_subst_files"; then
2152 $as_echo "## ------------------- ##
2153 ## File substitutions. ##
2154 ## ------------------- ##"
2155 echo
2156 for ac_var in $ac_subst_files
2157 do
2158 eval ac_val=\$$ac_var
2159 case $ac_val in
2160 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2161 esac
2162 $as_echo "$ac_var='\''$ac_val'\''"
2163 done | sort
2164 echo
2165 fi
2166
2167 if test -s confdefs.h; then
2168 $as_echo "## ----------- ##
2169 ## confdefs.h. ##
2170 ## ----------- ##"
2171 echo
2172 cat confdefs.h
2173 echo
2174 fi
2175 test "$ac_signal" != 0 &&
2176 $as_echo "$as_me: caught signal $ac_signal"
2177 $as_echo "$as_me: exit $exit_status"
2178 } >&5
2179 rm -f core *.core core.conftest.* &&
2180 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2181 exit $exit_status
2182 ' 0
2183 for ac_signal in 1 2 13 15; do
2184 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2185 done
2186 ac_signal=0
2187
2188 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2189 rm -f -r conftest* confdefs.h
2190
2191 $as_echo "/* confdefs.h */" > confdefs.h
2192
2193 # Predefined preprocessor variables.
2194
2195 cat >>confdefs.h <<_ACEOF
2196 #define PACKAGE_NAME "$PACKAGE_NAME"
2197 _ACEOF
2198
2199 cat >>confdefs.h <<_ACEOF
2200 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2201 _ACEOF
2202
2203 cat >>confdefs.h <<_ACEOF
2204 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2205 _ACEOF
2206
2207 cat >>confdefs.h <<_ACEOF
2208 #define PACKAGE_STRING "$PACKAGE_STRING"
2209 _ACEOF
2210
2211 cat >>confdefs.h <<_ACEOF
2212 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2213 _ACEOF
2214
2215 cat >>confdefs.h <<_ACEOF
2216 #define PACKAGE_URL "$PACKAGE_URL"
2217 _ACEOF
2218
2219
2220 # Let the site file select an alternate cache file if it wants to.
2221 # Prefer an explicitly selected file to automatically selected ones.
2222 ac_site_file1=NONE
2223 ac_site_file2=NONE
2224 if test -n "$CONFIG_SITE"; then
2225 # We do not want a PATH search for config.site.
2226 case $CONFIG_SITE in #((
2227 -*) ac_site_file1=./$CONFIG_SITE;;
2228 */*) ac_site_file1=$CONFIG_SITE;;
2229 *) ac_site_file1=./$CONFIG_SITE;;
2230 esac
2231 elif test "x$prefix" != xNONE; then
2232 ac_site_file1=$prefix/share/config.site
2233 ac_site_file2=$prefix/etc/config.site
2234 else
2235 ac_site_file1=$ac_default_prefix/share/config.site
2236 ac_site_file2=$ac_default_prefix/etc/config.site
2237 fi
2238 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2239 do
2240 test "x$ac_site_file" = xNONE && continue
2241 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2243 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2244 sed 's/^/| /' "$ac_site_file" >&5
2245 . "$ac_site_file" \
2246 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2247 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2248 as_fn_error $? "failed to load site script $ac_site_file
2249 See \`config.log' for more details" "$LINENO" 5; }
2250 fi
2251 done
2252
2253 if test -r "$cache_file"; then
2254 # Some versions of bash will fail to source /dev/null (special files
2255 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2256 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2258 $as_echo "$as_me: loading cache $cache_file" >&6;}
2259 case $cache_file in
2260 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2261 *) . "./$cache_file";;
2262 esac
2263 fi
2264 else
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2266 $as_echo "$as_me: creating cache $cache_file" >&6;}
2267 >$cache_file
2268 fi
2269
2270 # Check that the precious variables saved in the cache have kept the same
2271 # value.
2272 ac_cache_corrupted=false
2273 for ac_var in $ac_precious_vars; do
2274 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2275 eval ac_new_set=\$ac_env_${ac_var}_set
2276 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2277 eval ac_new_val=\$ac_env_${ac_var}_value
2278 case $ac_old_set,$ac_new_set in
2279 set,)
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2281 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2282 ac_cache_corrupted=: ;;
2283 ,set)
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2285 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2286 ac_cache_corrupted=: ;;
2287 ,);;
2288 *)
2289 if test "x$ac_old_val" != "x$ac_new_val"; then
2290 # differences in whitespace do not lead to failure.
2291 ac_old_val_w=`echo x $ac_old_val`
2292 ac_new_val_w=`echo x $ac_new_val`
2293 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2295 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2296 ac_cache_corrupted=:
2297 else
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2299 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2300 eval $ac_var=\$ac_old_val
2301 fi
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2303 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2305 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2306 fi;;
2307 esac
2308 # Pass precious variables to config.status.
2309 if test "$ac_new_set" = set; then
2310 case $ac_new_val in
2311 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2312 *) ac_arg=$ac_var=$ac_new_val ;;
2313 esac
2314 case " $ac_configure_args " in
2315 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2316 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2317 esac
2318 fi
2319 done
2320 if $ac_cache_corrupted; then
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2322 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2324 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2325 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2326 fi
2327 ## -------------------- ##
2328 ## Main body of script. ##
2329 ## -------------------- ##
2330
2331 ac_ext=c
2332 ac_cpp='$CPP $CPPFLAGS'
2333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2336
2337
2338
2339 ac_config_headers="$ac_config_headers config.h"
2340
2341
2342 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354 ac_aux_dir=
2355 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2356 if test -f "$ac_dir/install-sh"; then
2357 ac_aux_dir=$ac_dir
2358 ac_install_sh="$ac_aux_dir/install-sh -c"
2359 break
2360 elif test -f "$ac_dir/install.sh"; then
2361 ac_aux_dir=$ac_dir
2362 ac_install_sh="$ac_aux_dir/install.sh -c"
2363 break
2364 elif test -f "$ac_dir/shtool"; then
2365 ac_aux_dir=$ac_dir
2366 ac_install_sh="$ac_aux_dir/shtool install -c"
2367 break
2368 fi
2369 done
2370 if test -z "$ac_aux_dir"; then
2371 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2372 fi
2373
2374 # These three variables are undocumented and unsupported,
2375 # and are intended to be withdrawn in a future Autoconf release.
2376 # They can cause serious problems if a builder's source tree is in a directory
2377 # whose full name contains unusual characters.
2378 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2379 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2380 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2381
2382
2383 # Find a good install program. We prefer a C program (faster),
2384 # so one script is as good as another. But avoid the broken or
2385 # incompatible versions:
2386 # SysV /etc/install, /usr/sbin/install
2387 # SunOS /usr/etc/install
2388 # IRIX /sbin/install
2389 # AIX /bin/install
2390 # AmigaOS /C/install, which installs bootblocks on floppy discs
2391 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2392 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2393 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2394 # OS/2's system install, which has a completely different semantic
2395 # ./install, which can be erroneously created by make from ./install.sh.
2396 # Reject install programs that cannot install multiple files.
2397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2398 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2399 if test -z "$INSTALL"; then
2400 if ${ac_cv_path_install+:} false; then :
2401 $as_echo_n "(cached) " >&6
2402 else
2403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2404 for as_dir in $PATH
2405 do
2406 IFS=$as_save_IFS
2407 test -z "$as_dir" && as_dir=.
2408 # Account for people who put trailing slashes in PATH elements.
2409 case $as_dir/ in #((
2410 ./ | .// | /[cC]/* | \
2411 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2412 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2413 /usr/ucb/* ) ;;
2414 *)
2415 # OSF1 and SCO ODT 3.0 have their own names for install.
2416 # Don't use installbsd from OSF since it installs stuff as root
2417 # by default.
2418 for ac_prog in ginstall scoinst install; do
2419 for ac_exec_ext in '' $ac_executable_extensions; do
2420 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2421 if test $ac_prog = install &&
2422 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2423 # AIX install. It has an incompatible calling convention.
2424 :
2425 elif test $ac_prog = install &&
2426 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2427 # program-specific install script used by HP pwplus--don't use.
2428 :
2429 else
2430 rm -rf conftest.one conftest.two conftest.dir
2431 echo one > conftest.one
2432 echo two > conftest.two
2433 mkdir conftest.dir
2434 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2435 test -s conftest.one && test -s conftest.two &&
2436 test -s conftest.dir/conftest.one &&
2437 test -s conftest.dir/conftest.two
2438 then
2439 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2440 break 3
2441 fi
2442 fi
2443 fi
2444 done
2445 done
2446 ;;
2447 esac
2448
2449 done
2450 IFS=$as_save_IFS
2451
2452 rm -rf conftest.one conftest.two conftest.dir
2453
2454 fi
2455 if test "${ac_cv_path_install+set}" = set; then
2456 INSTALL=$ac_cv_path_install
2457 else
2458 # As a last resort, use the slow shell script. Don't cache a
2459 # value for INSTALL within a source directory, because that will
2460 # break other packages using the cache if that directory is
2461 # removed, or if the value is a relative name.
2462 INSTALL=$ac_install_sh
2463 fi
2464 fi
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2466 $as_echo "$INSTALL" >&6; }
2467
2468 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2469 # It thinks the first close brace ends the variable substitution.
2470 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2471
2472 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2473
2474 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2475
2476 ac_ext=c
2477 ac_cpp='$CPP $CPPFLAGS'
2478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2481 if test -n "$ac_tool_prefix"; then
2482 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2483 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2485 $as_echo_n "checking for $ac_word... " >&6; }
2486 if ${ac_cv_prog_CC+:} false; then :
2487 $as_echo_n "(cached) " >&6
2488 else
2489 if test -n "$CC"; then
2490 ac_cv_prog_CC="$CC" # Let the user override the test.
2491 else
2492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2493 for as_dir in $PATH
2494 do
2495 IFS=$as_save_IFS
2496 test -z "$as_dir" && as_dir=.
2497 for ac_exec_ext in '' $ac_executable_extensions; do
2498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2499 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2501 break 2
2502 fi
2503 done
2504 done
2505 IFS=$as_save_IFS
2506
2507 fi
2508 fi
2509 CC=$ac_cv_prog_CC
2510 if test -n "$CC"; then
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2512 $as_echo "$CC" >&6; }
2513 else
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2515 $as_echo "no" >&6; }
2516 fi
2517
2518
2519 fi
2520 if test -z "$ac_cv_prog_CC"; then
2521 ac_ct_CC=$CC
2522 # Extract the first word of "gcc", so it can be a program name with args.
2523 set dummy gcc; ac_word=$2
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2525 $as_echo_n "checking for $ac_word... " >&6; }
2526 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2527 $as_echo_n "(cached) " >&6
2528 else
2529 if test -n "$ac_ct_CC"; then
2530 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2531 else
2532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2533 for as_dir in $PATH
2534 do
2535 IFS=$as_save_IFS
2536 test -z "$as_dir" && as_dir=.
2537 for ac_exec_ext in '' $ac_executable_extensions; do
2538 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2539 ac_cv_prog_ac_ct_CC="gcc"
2540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2541 break 2
2542 fi
2543 done
2544 done
2545 IFS=$as_save_IFS
2546
2547 fi
2548 fi
2549 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2550 if test -n "$ac_ct_CC"; then
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2552 $as_echo "$ac_ct_CC" >&6; }
2553 else
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2555 $as_echo "no" >&6; }
2556 fi
2557
2558 if test "x$ac_ct_CC" = x; then
2559 CC=""
2560 else
2561 case $cross_compiling:$ac_tool_warned in
2562 yes:)
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2564 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2565 ac_tool_warned=yes ;;
2566 esac
2567 CC=$ac_ct_CC
2568 fi
2569 else
2570 CC="$ac_cv_prog_CC"
2571 fi
2572
2573 if test -z "$CC"; then
2574 if test -n "$ac_tool_prefix"; then
2575 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2576 set dummy ${ac_tool_prefix}cc; ac_word=$2
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2578 $as_echo_n "checking for $ac_word... " >&6; }
2579 if ${ac_cv_prog_CC+:} false; then :
2580 $as_echo_n "(cached) " >&6
2581 else
2582 if test -n "$CC"; then
2583 ac_cv_prog_CC="$CC" # Let the user override the test.
2584 else
2585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2586 for as_dir in $PATH
2587 do
2588 IFS=$as_save_IFS
2589 test -z "$as_dir" && as_dir=.
2590 for ac_exec_ext in '' $ac_executable_extensions; do
2591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2592 ac_cv_prog_CC="${ac_tool_prefix}cc"
2593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2594 break 2
2595 fi
2596 done
2597 done
2598 IFS=$as_save_IFS
2599
2600 fi
2601 fi
2602 CC=$ac_cv_prog_CC
2603 if test -n "$CC"; then
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2605 $as_echo "$CC" >&6; }
2606 else
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2608 $as_echo "no" >&6; }
2609 fi
2610
2611
2612 fi
2613 fi
2614 if test -z "$CC"; then
2615 # Extract the first word of "cc", so it can be a program name with args.
2616 set dummy cc; ac_word=$2
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2618 $as_echo_n "checking for $ac_word... " >&6; }
2619 if ${ac_cv_prog_CC+:} false; then :
2620 $as_echo_n "(cached) " >&6
2621 else
2622 if test -n "$CC"; then
2623 ac_cv_prog_CC="$CC" # Let the user override the test.
2624 else
2625 ac_prog_rejected=no
2626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2627 for as_dir in $PATH
2628 do
2629 IFS=$as_save_IFS
2630 test -z "$as_dir" && as_dir=.
2631 for ac_exec_ext in '' $ac_executable_extensions; do
2632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2633 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2634 ac_prog_rejected=yes
2635 continue
2636 fi
2637 ac_cv_prog_CC="cc"
2638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2639 break 2
2640 fi
2641 done
2642 done
2643 IFS=$as_save_IFS
2644
2645 if test $ac_prog_rejected = yes; then
2646 # We found a bogon in the path, so make sure we never use it.
2647 set dummy $ac_cv_prog_CC
2648 shift
2649 if test $# != 0; then
2650 # We chose a different compiler from the bogus one.
2651 # However, it has the same basename, so the bogon will be chosen
2652 # first if we set CC to just the basename; use the full file name.
2653 shift
2654 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2655 fi
2656 fi
2657 fi
2658 fi
2659 CC=$ac_cv_prog_CC
2660 if test -n "$CC"; then
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2662 $as_echo "$CC" >&6; }
2663 else
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2665 $as_echo "no" >&6; }
2666 fi
2667
2668
2669 fi
2670 if test -z "$CC"; then
2671 if test -n "$ac_tool_prefix"; then
2672 for ac_prog in cl.exe
2673 do
2674 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2675 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2677 $as_echo_n "checking for $ac_word... " >&6; }
2678 if ${ac_cv_prog_CC+:} false; then :
2679 $as_echo_n "(cached) " >&6
2680 else
2681 if test -n "$CC"; then
2682 ac_cv_prog_CC="$CC" # Let the user override the test.
2683 else
2684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2685 for as_dir in $PATH
2686 do
2687 IFS=$as_save_IFS
2688 test -z "$as_dir" && as_dir=.
2689 for ac_exec_ext in '' $ac_executable_extensions; do
2690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2691 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2693 break 2
2694 fi
2695 done
2696 done
2697 IFS=$as_save_IFS
2698
2699 fi
2700 fi
2701 CC=$ac_cv_prog_CC
2702 if test -n "$CC"; then
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2704 $as_echo "$CC" >&6; }
2705 else
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2707 $as_echo "no" >&6; }
2708 fi
2709
2710
2711 test -n "$CC" && break
2712 done
2713 fi
2714 if test -z "$CC"; then
2715 ac_ct_CC=$CC
2716 for ac_prog in cl.exe
2717 do
2718 # Extract the first word of "$ac_prog", so it can be a program name with args.
2719 set dummy $ac_prog; ac_word=$2
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2721 $as_echo_n "checking for $ac_word... " >&6; }
2722 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2723 $as_echo_n "(cached) " >&6
2724 else
2725 if test -n "$ac_ct_CC"; then
2726 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2727 else
2728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2729 for as_dir in $PATH
2730 do
2731 IFS=$as_save_IFS
2732 test -z "$as_dir" && as_dir=.
2733 for ac_exec_ext in '' $ac_executable_extensions; do
2734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2735 ac_cv_prog_ac_ct_CC="$ac_prog"
2736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2737 break 2
2738 fi
2739 done
2740 done
2741 IFS=$as_save_IFS
2742
2743 fi
2744 fi
2745 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2746 if test -n "$ac_ct_CC"; then
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2748 $as_echo "$ac_ct_CC" >&6; }
2749 else
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2751 $as_echo "no" >&6; }
2752 fi
2753
2754
2755 test -n "$ac_ct_CC" && break
2756 done
2757
2758 if test "x$ac_ct_CC" = x; then
2759 CC=""
2760 else
2761 case $cross_compiling:$ac_tool_warned in
2762 yes:)
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2764 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2765 ac_tool_warned=yes ;;
2766 esac
2767 CC=$ac_ct_CC
2768 fi
2769 fi
2770
2771 fi
2772
2773
2774 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2775 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2776 as_fn_error $? "no acceptable C compiler found in \$PATH
2777 See \`config.log' for more details" "$LINENO" 5; }
2778
2779 # Provide some information about the compiler.
2780 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2781 set X $ac_compile
2782 ac_compiler=$2
2783 for ac_option in --version -v -V -qversion; do
2784 { { ac_try="$ac_compiler $ac_option >&5"
2785 case "(($ac_try" in
2786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2787 *) ac_try_echo=$ac_try;;
2788 esac
2789 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2790 $as_echo "$ac_try_echo"; } >&5
2791 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2792 ac_status=$?
2793 if test -s conftest.err; then
2794 sed '10a\
2795 ... rest of stderr output deleted ...
2796 10q' conftest.err >conftest.er1
2797 cat conftest.er1 >&5
2798 fi
2799 rm -f conftest.er1 conftest.err
2800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2801 test $ac_status = 0; }
2802 done
2803
2804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2805 /* end confdefs.h. */
2806
2807 int
2808 main ()
2809 {
2810
2811 ;
2812 return 0;
2813 }
2814 _ACEOF
2815 ac_clean_files_save=$ac_clean_files
2816 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2817 # Try to create an executable without -o first, disregard a.out.
2818 # It will help us diagnose broken compilers, and finding out an intuition
2819 # of exeext.
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2821 $as_echo_n "checking whether the C compiler works... " >&6; }
2822 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2823
2824 # The possible output files:
2825 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2826
2827 ac_rmfiles=
2828 for ac_file in $ac_files
2829 do
2830 case $ac_file in
2831 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2832 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2833 esac
2834 done
2835 rm -f $ac_rmfiles
2836
2837 if { { ac_try="$ac_link_default"
2838 case "(($ac_try" in
2839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2840 *) ac_try_echo=$ac_try;;
2841 esac
2842 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2843 $as_echo "$ac_try_echo"; } >&5
2844 (eval "$ac_link_default") 2>&5
2845 ac_status=$?
2846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2847 test $ac_status = 0; }; then :
2848 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2849 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2850 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2851 # so that the user can short-circuit this test for compilers unknown to
2852 # Autoconf.
2853 for ac_file in $ac_files ''
2854 do
2855 test -f "$ac_file" || continue
2856 case $ac_file in
2857 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2858 ;;
2859 [ab].out )
2860 # We found the default executable, but exeext='' is most
2861 # certainly right.
2862 break;;
2863 *.* )
2864 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2865 then :; else
2866 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2867 fi
2868 # We set ac_cv_exeext here because the later test for it is not
2869 # safe: cross compilers may not add the suffix if given an `-o'
2870 # argument, so we may need to know it at that point already.
2871 # Even if this section looks crufty: it has the advantage of
2872 # actually working.
2873 break;;
2874 * )
2875 break;;
2876 esac
2877 done
2878 test "$ac_cv_exeext" = no && ac_cv_exeext=
2879
2880 else
2881 ac_file=''
2882 fi
2883 if test -z "$ac_file"; then :
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2885 $as_echo "no" >&6; }
2886 $as_echo "$as_me: failed program was:" >&5
2887 sed 's/^/| /' conftest.$ac_ext >&5
2888
2889 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2890 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2891 as_fn_error 77 "C compiler cannot create executables
2892 See \`config.log' for more details" "$LINENO" 5; }
2893 else
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2895 $as_echo "yes" >&6; }
2896 fi
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2898 $as_echo_n "checking for C compiler default output file name... " >&6; }
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2900 $as_echo "$ac_file" >&6; }
2901 ac_exeext=$ac_cv_exeext
2902
2903 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2904 ac_clean_files=$ac_clean_files_save
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2906 $as_echo_n "checking for suffix of executables... " >&6; }
2907 if { { ac_try="$ac_link"
2908 case "(($ac_try" in
2909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2910 *) ac_try_echo=$ac_try;;
2911 esac
2912 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2913 $as_echo "$ac_try_echo"; } >&5
2914 (eval "$ac_link") 2>&5
2915 ac_status=$?
2916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2917 test $ac_status = 0; }; then :
2918 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2919 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2920 # work properly (i.e., refer to `conftest.exe'), while it won't with
2921 # `rm'.
2922 for ac_file in conftest.exe conftest conftest.*; do
2923 test -f "$ac_file" || continue
2924 case $ac_file in
2925 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2926 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2927 break;;
2928 * ) break;;
2929 esac
2930 done
2931 else
2932 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2933 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2934 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2935 See \`config.log' for more details" "$LINENO" 5; }
2936 fi
2937 rm -f conftest conftest$ac_cv_exeext
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2939 $as_echo "$ac_cv_exeext" >&6; }
2940
2941 rm -f conftest.$ac_ext
2942 EXEEXT=$ac_cv_exeext
2943 ac_exeext=$EXEEXT
2944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2945 /* end confdefs.h. */
2946 #include <stdio.h>
2947 int
2948 main ()
2949 {
2950 FILE *f = fopen ("conftest.out", "w");
2951 return ferror (f) || fclose (f) != 0;
2952
2953 ;
2954 return 0;
2955 }
2956 _ACEOF
2957 ac_clean_files="$ac_clean_files conftest.out"
2958 # Check that the compiler produces executables we can run. If not, either
2959 # the compiler is broken, or we cross compile.
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2961 $as_echo_n "checking whether we are cross compiling... " >&6; }
2962 if test "$cross_compiling" != yes; then
2963 { { ac_try="$ac_link"
2964 case "(($ac_try" in
2965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2966 *) ac_try_echo=$ac_try;;
2967 esac
2968 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2969 $as_echo "$ac_try_echo"; } >&5
2970 (eval "$ac_link") 2>&5
2971 ac_status=$?
2972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2973 test $ac_status = 0; }
2974 if { ac_try='./conftest$ac_cv_exeext'
2975 { { case "(($ac_try" in
2976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2977 *) ac_try_echo=$ac_try;;
2978 esac
2979 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2980 $as_echo "$ac_try_echo"; } >&5
2981 (eval "$ac_try") 2>&5
2982 ac_status=$?
2983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2984 test $ac_status = 0; }; }; then
2985 cross_compiling=no
2986 else
2987 if test "$cross_compiling" = maybe; then
2988 cross_compiling=yes
2989 else
2990 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2991 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2992 as_fn_error $? "cannot run C compiled programs.
2993 If you meant to cross compile, use \`--host'.
2994 See \`config.log' for more details" "$LINENO" 5; }
2995 fi
2996 fi
2997 fi
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2999 $as_echo "$cross_compiling" >&6; }
3000
3001 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3002 ac_clean_files=$ac_clean_files_save
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3004 $as_echo_n "checking for suffix of object files... " >&6; }
3005 if ${ac_cv_objext+:} false; then :
3006 $as_echo_n "(cached) " >&6
3007 else
3008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3009 /* end confdefs.h. */
3010
3011 int
3012 main ()
3013 {
3014
3015 ;
3016 return 0;
3017 }
3018 _ACEOF
3019 rm -f conftest.o conftest.obj
3020 if { { ac_try="$ac_compile"
3021 case "(($ac_try" in
3022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3023 *) ac_try_echo=$ac_try;;
3024 esac
3025 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3026 $as_echo "$ac_try_echo"; } >&5
3027 (eval "$ac_compile") 2>&5
3028 ac_status=$?
3029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3030 test $ac_status = 0; }; then :
3031 for ac_file in conftest.o conftest.obj conftest.*; do
3032 test -f "$ac_file" || continue;
3033 case $ac_file in
3034 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3035 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3036 break;;
3037 esac
3038 done
3039 else
3040 $as_echo "$as_me: failed program was:" >&5
3041 sed 's/^/| /' conftest.$ac_ext >&5
3042
3043 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3044 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3045 as_fn_error $? "cannot compute suffix of object files: cannot compile
3046 See \`config.log' for more details" "$LINENO" 5; }
3047 fi
3048 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3049 fi
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3051 $as_echo "$ac_cv_objext" >&6; }
3052 OBJEXT=$ac_cv_objext
3053 ac_objext=$OBJEXT
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3055 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3056 if ${ac_cv_c_compiler_gnu+:} false; then :
3057 $as_echo_n "(cached) " >&6
3058 else
3059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3060 /* end confdefs.h. */
3061
3062 int
3063 main ()
3064 {
3065 #ifndef __GNUC__
3066 choke me
3067 #endif
3068
3069 ;
3070 return 0;
3071 }
3072 _ACEOF
3073 if ac_fn_c_try_compile "$LINENO"; then :
3074 ac_compiler_gnu=yes
3075 else
3076 ac_compiler_gnu=no
3077 fi
3078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3079 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3080
3081 fi
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3083 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3084 if test $ac_compiler_gnu = yes; then
3085 GCC=yes
3086 else
3087 GCC=
3088 fi
3089 ac_test_CFLAGS=${CFLAGS+set}
3090 ac_save_CFLAGS=$CFLAGS
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3092 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3093 if ${ac_cv_prog_cc_g+:} false; then :
3094 $as_echo_n "(cached) " >&6
3095 else
3096 ac_save_c_werror_flag=$ac_c_werror_flag
3097 ac_c_werror_flag=yes
3098 ac_cv_prog_cc_g=no
3099 CFLAGS="-g"
3100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3101 /* end confdefs.h. */
3102
3103 int
3104 main ()
3105 {
3106
3107 ;
3108 return 0;
3109 }
3110 _ACEOF
3111 if ac_fn_c_try_compile "$LINENO"; then :
3112 ac_cv_prog_cc_g=yes
3113 else
3114 CFLAGS=""
3115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3116 /* end confdefs.h. */
3117
3118 int
3119 main ()
3120 {
3121
3122 ;
3123 return 0;
3124 }
3125 _ACEOF
3126 if ac_fn_c_try_compile "$LINENO"; then :
3127
3128 else
3129 ac_c_werror_flag=$ac_save_c_werror_flag
3130 CFLAGS="-g"
3131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3132 /* end confdefs.h. */
3133
3134 int
3135 main ()
3136 {
3137
3138 ;
3139 return 0;
3140 }
3141 _ACEOF
3142 if ac_fn_c_try_compile "$LINENO"; then :
3143 ac_cv_prog_cc_g=yes
3144 fi
3145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3146 fi
3147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3148 fi
3149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3150 ac_c_werror_flag=$ac_save_c_werror_flag
3151 fi
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3153 $as_echo "$ac_cv_prog_cc_g" >&6; }
3154 if test "$ac_test_CFLAGS" = set; then
3155 CFLAGS=$ac_save_CFLAGS
3156 elif test $ac_cv_prog_cc_g = yes; then
3157 if test "$GCC" = yes; then
3158 CFLAGS="-g -O2"
3159 else
3160 CFLAGS="-g"
3161 fi
3162 else
3163 if test "$GCC" = yes; then
3164 CFLAGS="-O2"
3165 else
3166 CFLAGS=
3167 fi
3168 fi
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3170 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3171 if ${ac_cv_prog_cc_c89+:} false; then :
3172 $as_echo_n "(cached) " >&6
3173 else
3174 ac_cv_prog_cc_c89=no
3175 ac_save_CC=$CC
3176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3177 /* end confdefs.h. */
3178 #include <stdarg.h>
3179 #include <stdio.h>
3180 struct stat;
3181 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3182 struct buf { int x; };
3183 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3184 static char *e (p, i)
3185 char **p;
3186 int i;
3187 {
3188 return p[i];
3189 }
3190 static char *f (char * (*g) (char **, int), char **p, ...)
3191 {
3192 char *s;
3193 va_list v;
3194 va_start (v,p);
3195 s = g (p, va_arg (v,int));
3196 va_end (v);
3197 return s;
3198 }
3199
3200 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3201 function prototypes and stuff, but not '\xHH' hex character constants.
3202 These don't provoke an error unfortunately, instead are silently treated
3203 as 'x'. The following induces an error, until -std is added to get
3204 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3205 array size at least. It's necessary to write '\x00'==0 to get something
3206 that's true only with -std. */
3207 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3208
3209 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3210 inside strings and character constants. */
3211 #define FOO(x) 'x'
3212 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3213
3214 int test (int i, double x);
3215 struct s1 {int (*f) (int a);};
3216 struct s2 {int (*f) (double a);};
3217 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3218 int argc;
3219 char **argv;
3220 int
3221 main ()
3222 {
3223 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3224 ;
3225 return 0;
3226 }
3227 _ACEOF
3228 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3229 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3230 do
3231 CC="$ac_save_CC $ac_arg"
3232 if ac_fn_c_try_compile "$LINENO"; then :
3233 ac_cv_prog_cc_c89=$ac_arg
3234 fi
3235 rm -f core conftest.err conftest.$ac_objext
3236 test "x$ac_cv_prog_cc_c89" != "xno" && break
3237 done
3238 rm -f conftest.$ac_ext
3239 CC=$ac_save_CC
3240
3241 fi
3242 # AC_CACHE_VAL
3243 case "x$ac_cv_prog_cc_c89" in
3244 x)
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3246 $as_echo "none needed" >&6; } ;;
3247 xno)
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3249 $as_echo "unsupported" >&6; } ;;
3250 *)
3251 CC="$CC $ac_cv_prog_cc_c89"
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3253 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3254 esac
3255 if test "x$ac_cv_prog_cc_c89" != xno; then :
3256
3257 fi
3258
3259 ac_ext=c
3260 ac_cpp='$CPP $CPPFLAGS'
3261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3264
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3266 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3267 if ${ac_cv_prog_cc_c99+:} false; then :
3268 $as_echo_n "(cached) " >&6
3269 else
3270 ac_cv_prog_cc_c99=no
3271 ac_save_CC=$CC
3272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3273 /* end confdefs.h. */
3274 #include <stdarg.h>
3275 #include <stdbool.h>
3276 #include <stdlib.h>
3277 #include <wchar.h>
3278 #include <stdio.h>
3279
3280 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3281 #define debug(...) fprintf (stderr, __VA_ARGS__)
3282 #define showlist(...) puts (#__VA_ARGS__)
3283 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3284 static void
3285 test_varargs_macros (void)
3286 {
3287 int x = 1234;
3288 int y = 5678;
3289 debug ("Flag");
3290 debug ("X = %d\n", x);
3291 showlist (The first, second, and third items.);
3292 report (x>y, "x is %d but y is %d", x, y);
3293 }
3294
3295 // Check long long types.
3296 #define BIG64 18446744073709551615ull
3297 #define BIG32 4294967295ul
3298 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3299 #if !BIG_OK
3300 your preprocessor is broken;
3301 #endif
3302 #if BIG_OK
3303 #else
3304 your preprocessor is broken;
3305 #endif
3306 static long long int bignum = -9223372036854775807LL;
3307 static unsigned long long int ubignum = BIG64;
3308
3309 struct incomplete_array
3310 {
3311 int datasize;
3312 double data[];
3313 };
3314
3315 struct named_init {
3316 int number;
3317 const wchar_t *name;
3318 double average;
3319 };
3320
3321 typedef const char *ccp;
3322
3323 static inline int
3324 test_restrict (ccp restrict text)
3325 {
3326 // See if C++-style comments work.
3327 // Iterate through items via the restricted pointer.
3328 // Also check for declarations in for loops.
3329 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3330 continue;
3331 return 0;
3332 }
3333
3334 // Check varargs and va_copy.
3335 static void
3336 test_varargs (const char *format, ...)
3337 {
3338 va_list args;
3339 va_start (args, format);
3340 va_list args_copy;
3341 va_copy (args_copy, args);
3342
3343 const char *str;
3344 int number;
3345 float fnumber;
3346
3347 while (*format)
3348 {
3349 switch (*format++)
3350 {
3351 case 's': // string
3352 str = va_arg (args_copy, const char *);
3353 break;
3354 case 'd': // int
3355 number = va_arg (args_copy, int);
3356 break;
3357 case 'f': // float
3358 fnumber = va_arg (args_copy, double);
3359 break;
3360 default:
3361 break;
3362 }
3363 }
3364 va_end (args_copy);
3365 va_end (args);
3366 }
3367
3368 int
3369 main ()
3370 {
3371
3372 // Check bool.
3373 _Bool success = false;
3374
3375 // Check restrict.
3376 if (test_restrict ("String literal") == 0)
3377 success = true;
3378 char *restrict newvar = "Another string";
3379
3380 // Check varargs.
3381 test_varargs ("s, d' f .", "string", 65, 34.234);
3382 test_varargs_macros ();
3383
3384 // Check flexible array members.
3385 struct incomplete_array *ia =
3386 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3387 ia->datasize = 10;
3388 for (int i = 0; i < ia->datasize; ++i)
3389 ia->data[i] = i * 1.234;
3390
3391 // Check named initializers.
3392 struct named_init ni = {
3393 .number = 34,
3394 .name = L"Test wide string",
3395 .average = 543.34343,
3396 };
3397
3398 ni.number = 58;
3399
3400 int dynamic_array[ni.number];
3401 dynamic_array[ni.number - 1] = 543;
3402
3403 // work around unused variable warnings
3404 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3405 || dynamic_array[ni.number - 1] != 543);
3406
3407 ;
3408 return 0;
3409 }
3410 _ACEOF
3411 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3412 do
3413 CC="$ac_save_CC $ac_arg"
3414 if ac_fn_c_try_compile "$LINENO"; then :
3415 ac_cv_prog_cc_c99=$ac_arg
3416 fi
3417 rm -f core conftest.err conftest.$ac_objext
3418 test "x$ac_cv_prog_cc_c99" != "xno" && break
3419 done
3420 rm -f conftest.$ac_ext
3421 CC=$ac_save_CC
3422
3423 fi
3424 # AC_CACHE_VAL
3425 case "x$ac_cv_prog_cc_c99" in
3426 x)
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3428 $as_echo "none needed" >&6; } ;;
3429 xno)
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3431 $as_echo "unsupported" >&6; } ;;
3432 *)
3433 CC="$CC $ac_cv_prog_cc_c99"
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3435 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3436 esac
3437 if test "x$ac_cv_prog_cc_c99" != xno; then :
3438
3439 fi
3440
3441
3442
3443 ac_ext=c
3444 ac_cpp='$CPP $CPPFLAGS'
3445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3449 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3450 # On Suns, sometimes $CPP names a directory.
3451 if test -n "$CPP" && test -d "$CPP"; then
3452 CPP=
3453 fi
3454 if test -z "$CPP"; then
3455 if ${ac_cv_prog_CPP+:} false; then :
3456 $as_echo_n "(cached) " >&6
3457 else
3458 # Double quotes because CPP needs to be expanded
3459 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3460 do
3461 ac_preproc_ok=false
3462 for ac_c_preproc_warn_flag in '' yes
3463 do
3464 # Use a header file that comes with gcc, so configuring glibc
3465 # with a fresh cross-compiler works.
3466 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3467 # <limits.h> exists even on freestanding compilers.
3468 # On the NeXT, cc -E runs the code through the compiler's parser,
3469 # not just through cpp. "Syntax error" is here to catch this case.
3470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3471 /* end confdefs.h. */
3472 #ifdef __STDC__
3473 # include <limits.h>
3474 #else
3475 # include <assert.h>
3476 #endif
3477 Syntax error
3478 _ACEOF
3479 if ac_fn_c_try_cpp "$LINENO"; then :
3480
3481 else
3482 # Broken: fails on valid input.
3483 continue
3484 fi
3485 rm -f conftest.err conftest.i conftest.$ac_ext
3486
3487 # OK, works on sane cases. Now check whether nonexistent headers
3488 # can be detected and how.
3489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3490 /* end confdefs.h. */
3491 #include <ac_nonexistent.h>
3492 _ACEOF
3493 if ac_fn_c_try_cpp "$LINENO"; then :
3494 # Broken: success on invalid input.
3495 continue
3496 else
3497 # Passes both tests.
3498 ac_preproc_ok=:
3499 break
3500 fi
3501 rm -f conftest.err conftest.i conftest.$ac_ext
3502
3503 done
3504 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3505 rm -f conftest.i conftest.err conftest.$ac_ext
3506 if $ac_preproc_ok; then :
3507 break
3508 fi
3509
3510 done
3511 ac_cv_prog_CPP=$CPP
3512
3513 fi
3514 CPP=$ac_cv_prog_CPP
3515 else
3516 ac_cv_prog_CPP=$CPP
3517 fi
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3519 $as_echo "$CPP" >&6; }
3520 ac_preproc_ok=false
3521 for ac_c_preproc_warn_flag in '' yes
3522 do
3523 # Use a header file that comes with gcc, so configuring glibc
3524 # with a fresh cross-compiler works.
3525 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3526 # <limits.h> exists even on freestanding compilers.
3527 # On the NeXT, cc -E runs the code through the compiler's parser,
3528 # not just through cpp. "Syntax error" is here to catch this case.
3529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3530 /* end confdefs.h. */
3531 #ifdef __STDC__
3532 # include <limits.h>
3533 #else
3534 # include <assert.h>
3535 #endif
3536 Syntax error
3537 _ACEOF
3538 if ac_fn_c_try_cpp "$LINENO"; then :
3539
3540 else
3541 # Broken: fails on valid input.
3542 continue
3543 fi
3544 rm -f conftest.err conftest.i conftest.$ac_ext
3545
3546 # OK, works on sane cases. Now check whether nonexistent headers
3547 # can be detected and how.
3548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3549 /* end confdefs.h. */
3550 #include <ac_nonexistent.h>
3551 _ACEOF
3552 if ac_fn_c_try_cpp "$LINENO"; then :
3553 # Broken: success on invalid input.
3554 continue
3555 else
3556 # Passes both tests.
3557 ac_preproc_ok=:
3558 break
3559 fi
3560 rm -f conftest.err conftest.i conftest.$ac_ext
3561
3562 done
3563 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3564 rm -f conftest.i conftest.err conftest.$ac_ext
3565 if $ac_preproc_ok; then :
3566
3567 else
3568 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3569 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3570 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3571 See \`config.log' for more details" "$LINENO" 5; }
3572 fi
3573
3574 ac_ext=c
3575 ac_cpp='$CPP $CPPFLAGS'
3576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3578 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3579
3580
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3582 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3583 if ${ac_cv_path_GREP+:} false; then :
3584 $as_echo_n "(cached) " >&6
3585 else
3586 if test -z "$GREP"; then
3587 ac_path_GREP_found=false
3588 # Loop through the user's path and test for each of PROGNAME-LIST
3589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3590 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3591 do
3592 IFS=$as_save_IFS
3593 test -z "$as_dir" && as_dir=.
3594 for ac_prog in grep ggrep; do
3595 for ac_exec_ext in '' $ac_executable_extensions; do
3596 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3597 as_fn_executable_p "$ac_path_GREP" || continue
3598 # Check for GNU ac_path_GREP and select it if it is found.
3599 # Check for GNU $ac_path_GREP
3600 case `"$ac_path_GREP" --version 2>&1` in
3601 *GNU*)
3602 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3603 *)
3604 ac_count=0
3605 $as_echo_n 0123456789 >"conftest.in"
3606 while :
3607 do
3608 cat "conftest.in" "conftest.in" >"conftest.tmp"
3609 mv "conftest.tmp" "conftest.in"
3610 cp "conftest.in" "conftest.nl"
3611 $as_echo 'GREP' >> "conftest.nl"
3612 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3613 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3614 as_fn_arith $ac_count + 1 && ac_count=$as_val
3615 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3616 # Best one so far, save it but keep looking for a better one
3617 ac_cv_path_GREP="$ac_path_GREP"
3618 ac_path_GREP_max=$ac_count
3619 fi
3620 # 10*(2^10) chars as input seems more than enough
3621 test $ac_count -gt 10 && break
3622 done
3623 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3624 esac
3625
3626 $ac_path_GREP_found && break 3
3627 done
3628 done
3629 done
3630 IFS=$as_save_IFS
3631 if test -z "$ac_cv_path_GREP"; then
3632 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3633 fi
3634 else
3635 ac_cv_path_GREP=$GREP
3636 fi
3637
3638 fi
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3640 $as_echo "$ac_cv_path_GREP" >&6; }
3641 GREP="$ac_cv_path_GREP"
3642
3643
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3645 $as_echo_n "checking for egrep... " >&6; }
3646 if ${ac_cv_path_EGREP+:} false; then :
3647 $as_echo_n "(cached) " >&6
3648 else
3649 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3650 then ac_cv_path_EGREP="$GREP -E"
3651 else
3652 if test -z "$EGREP"; then
3653 ac_path_EGREP_found=false
3654 # Loop through the user's path and test for each of PROGNAME-LIST
3655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3656 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3657 do
3658 IFS=$as_save_IFS
3659 test -z "$as_dir" && as_dir=.
3660 for ac_prog in egrep; do
3661 for ac_exec_ext in '' $ac_executable_extensions; do
3662 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3663 as_fn_executable_p "$ac_path_EGREP" || continue
3664 # Check for GNU ac_path_EGREP and select it if it is found.
3665 # Check for GNU $ac_path_EGREP
3666 case `"$ac_path_EGREP" --version 2>&1` in
3667 *GNU*)
3668 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3669 *)
3670 ac_count=0
3671 $as_echo_n 0123456789 >"conftest.in"
3672 while :
3673 do
3674 cat "conftest.in" "conftest.in" >"conftest.tmp"
3675 mv "conftest.tmp" "conftest.in"
3676 cp "conftest.in" "conftest.nl"
3677 $as_echo 'EGREP' >> "conftest.nl"
3678 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3679 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3680 as_fn_arith $ac_count + 1 && ac_count=$as_val
3681 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3682 # Best one so far, save it but keep looking for a better one
3683 ac_cv_path_EGREP="$ac_path_EGREP"
3684 ac_path_EGREP_max=$ac_count
3685 fi
3686 # 10*(2^10) chars as input seems more than enough
3687 test $ac_count -gt 10 && break
3688 done
3689 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3690 esac
3691
3692 $ac_path_EGREP_found && break 3
3693 done
3694 done
3695 done
3696 IFS=$as_save_IFS
3697 if test -z "$ac_cv_path_EGREP"; then
3698 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3699 fi
3700 else
3701 ac_cv_path_EGREP=$EGREP
3702 fi
3703
3704 fi
3705 fi
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3707 $as_echo "$ac_cv_path_EGREP" >&6; }
3708 EGREP="$ac_cv_path_EGREP"
3709
3710
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3712 $as_echo_n "checking for ANSI C header files... " >&6; }
3713 if ${ac_cv_header_stdc+:} false; then :
3714 $as_echo_n "(cached) " >&6
3715 else
3716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3717 /* end confdefs.h. */
3718 #include <stdlib.h>
3719 #include <stdarg.h>
3720 #include <string.h>
3721 #include <float.h>
3722
3723 int
3724 main ()
3725 {
3726
3727 ;
3728 return 0;
3729 }
3730 _ACEOF
3731 if ac_fn_c_try_compile "$LINENO"; then :
3732 ac_cv_header_stdc=yes
3733 else
3734 ac_cv_header_stdc=no
3735 fi
3736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3737
3738 if test $ac_cv_header_stdc = yes; then
3739 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3741 /* end confdefs.h. */
3742 #include <string.h>
3743
3744 _ACEOF
3745 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3746 $EGREP "memchr" >/dev/null 2>&1; then :
3747
3748 else
3749 ac_cv_header_stdc=no
3750 fi
3751 rm -f conftest*
3752
3753 fi
3754
3755 if test $ac_cv_header_stdc = yes; then
3756 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3758 /* end confdefs.h. */
3759 #include <stdlib.h>
3760
3761 _ACEOF
3762 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3763 $EGREP "free" >/dev/null 2>&1; then :
3764
3765 else
3766 ac_cv_header_stdc=no
3767 fi
3768 rm -f conftest*
3769
3770 fi
3771
3772 if test $ac_cv_header_stdc = yes; then
3773 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3774 if test "$cross_compiling" = yes; then :
3775 :
3776 else
3777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3778 /* end confdefs.h. */
3779 #include <ctype.h>
3780 #include <stdlib.h>
3781 #if ((' ' & 0x0FF) == 0x020)
3782 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3783 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3784 #else
3785 # define ISLOWER(c) \
3786 (('a' <= (c) && (c) <= 'i') \
3787 || ('j' <= (c) && (c) <= 'r') \
3788 || ('s' <= (c) && (c) <= 'z'))
3789 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3790 #endif
3791
3792 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3793 int
3794 main ()
3795 {
3796 int i;
3797 for (i = 0; i < 256; i++)
3798 if (XOR (islower (i), ISLOWER (i))
3799 || toupper (i) != TOUPPER (i))
3800 return 2;
3801 return 0;
3802 }
3803 _ACEOF
3804 if ac_fn_c_try_run "$LINENO"; then :
3805
3806 else
3807 ac_cv_header_stdc=no
3808 fi
3809 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3810 conftest.$ac_objext conftest.beam conftest.$ac_ext
3811 fi
3812
3813 fi
3814 fi
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3816 $as_echo "$ac_cv_header_stdc" >&6; }
3817 if test $ac_cv_header_stdc = yes; then
3818
3819 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3820
3821 fi
3822
3823 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3824 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3825 inttypes.h stdint.h unistd.h
3826 do :
3827 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3828 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3829 "
3830 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3831 cat >>confdefs.h <<_ACEOF
3832 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3833 _ACEOF
3834
3835 fi
3836
3837 done
3838
3839
3840
3841
3842
3843
3844 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
3845 if test "x$ac_cv_have_decl___clang__" = xyes; then :
3846 CLANGCC="yes"
3847 else
3848 CLANGCC="no"
3849 fi
3850
3851 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
3852 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
3853 INTELCC="yes"
3854 else
3855 INTELCC="no"
3856 fi
3857
3858 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
3859 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
3860 SUNCC="yes"
3861 else
3862 SUNCC="no"
3863 fi
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3874 if test -n "$ac_tool_prefix"; then
3875 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3876 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3878 $as_echo_n "checking for $ac_word... " >&6; }
3879 if ${ac_cv_path_PKG_CONFIG+:} false; then :
3880 $as_echo_n "(cached) " >&6
3881 else
3882 case $PKG_CONFIG in
3883 [\\/]* | ?:[\\/]*)
3884 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3885 ;;
3886 *)
3887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3888 for as_dir in $PATH
3889 do
3890 IFS=$as_save_IFS
3891 test -z "$as_dir" && as_dir=.
3892 for ac_exec_ext in '' $ac_executable_extensions; do
3893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3894 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3896 break 2
3897 fi
3898 done
3899 done
3900 IFS=$as_save_IFS
3901
3902 ;;
3903 esac
3904 fi
3905 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3906 if test -n "$PKG_CONFIG"; then
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
3908 $as_echo "$PKG_CONFIG" >&6; }
3909 else
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3911 $as_echo "no" >&6; }
3912 fi
3913
3914
3915 fi
3916 if test -z "$ac_cv_path_PKG_CONFIG"; then
3917 ac_pt_PKG_CONFIG=$PKG_CONFIG
3918 # Extract the first word of "pkg-config", so it can be a program name with args.
3919 set dummy pkg-config; ac_word=$2
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3921 $as_echo_n "checking for $ac_word... " >&6; }
3922 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
3923 $as_echo_n "(cached) " >&6
3924 else
3925 case $ac_pt_PKG_CONFIG in
3926 [\\/]* | ?:[\\/]*)
3927 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3928 ;;
3929 *)
3930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3931 for as_dir in $PATH
3932 do
3933 IFS=$as_save_IFS
3934 test -z "$as_dir" && as_dir=.
3935 for ac_exec_ext in '' $ac_executable_extensions; do
3936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3937 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3939 break 2
3940 fi
3941 done
3942 done
3943 IFS=$as_save_IFS
3944
3945 ;;
3946 esac
3947 fi
3948 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3949 if test -n "$ac_pt_PKG_CONFIG"; then
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
3951 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
3952 else
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3954 $as_echo "no" >&6; }
3955 fi
3956
3957 if test "x$ac_pt_PKG_CONFIG" = x; then
3958 PKG_CONFIG=""
3959 else
3960 case $cross_compiling:$ac_tool_warned in
3961 yes:)
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3963 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3964 ac_tool_warned=yes ;;
3965 esac
3966 PKG_CONFIG=$ac_pt_PKG_CONFIG
3967 fi
3968 else
3969 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3970 fi
3971
3972 fi
3973 if test -n "$PKG_CONFIG"; then
3974 _pkg_min_version=0.9.0
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
3976 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
3977 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3979 $as_echo "yes" >&6; }
3980 else
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3982 $as_echo "no" >&6; }
3983 PKG_CONFIG=""
3984 fi
3985 fi
3986 # Make sure we can run config.sub.
3987 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3988 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3989
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3991 $as_echo_n "checking build system type... " >&6; }
3992 if ${ac_cv_build+:} false; then :
3993 $as_echo_n "(cached) " >&6
3994 else
3995 ac_build_alias=$build_alias
3996 test "x$ac_build_alias" = x &&
3997 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3998 test "x$ac_build_alias" = x &&
3999 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4000 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4001 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4002
4003 fi
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4005 $as_echo "$ac_cv_build" >&6; }
4006 case $ac_cv_build in
4007 *-*-*) ;;
4008 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4009 esac
4010 build=$ac_cv_build
4011 ac_save_IFS=$IFS; IFS='-'
4012 set x $ac_cv_build
4013 shift
4014 build_cpu=$1
4015 build_vendor=$2
4016 shift; shift
4017 # Remember, the first character of IFS is used to create $*,
4018 # except with old shells:
4019 build_os=$*
4020 IFS=$ac_save_IFS
4021 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4022
4023
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4025 $as_echo_n "checking host system type... " >&6; }
4026 if ${ac_cv_host+:} false; then :
4027 $as_echo_n "(cached) " >&6
4028 else
4029 if test "x$host_alias" = x; then
4030 ac_cv_host=$ac_cv_build
4031 else
4032 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4033 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4034 fi
4035
4036 fi
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4038 $as_echo "$ac_cv_host" >&6; }
4039 case $ac_cv_host in
4040 *-*-*) ;;
4041 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4042 esac
4043 host=$ac_cv_host
4044 ac_save_IFS=$IFS; IFS='-'
4045 set x $ac_cv_host
4046 shift
4047 host_cpu=$1
4048 host_vendor=$2
4049 shift; shift
4050 # Remember, the first character of IFS is used to create $*,
4051 # except with old shells:
4052 host_os=$*
4053 IFS=$ac_save_IFS
4054 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4055
4056
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4058 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4059 if ${ac_cv_path_SED+:} false; then :
4060 $as_echo_n "(cached) " >&6
4061 else
4062 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4063 for ac_i in 1 2 3 4 5 6 7; do
4064 ac_script="$ac_script$as_nl$ac_script"
4065 done
4066 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4067 { ac_script=; unset ac_script;}
4068 if test -z "$SED"; then
4069 ac_path_SED_found=false
4070 # Loop through the user's path and test for each of PROGNAME-LIST
4071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4072 for as_dir in $PATH
4073 do
4074 IFS=$as_save_IFS
4075 test -z "$as_dir" && as_dir=.
4076 for ac_prog in sed gsed; do
4077 for ac_exec_ext in '' $ac_executable_extensions; do
4078 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4079 as_fn_executable_p "$ac_path_SED" || continue
4080 # Check for GNU ac_path_SED and select it if it is found.
4081 # Check for GNU $ac_path_SED
4082 case `"$ac_path_SED" --version 2>&1` in
4083 *GNU*)
4084 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4085 *)
4086 ac_count=0
4087 $as_echo_n 0123456789 >"conftest.in"
4088 while :
4089 do
4090 cat "conftest.in" "conftest.in" >"conftest.tmp"
4091 mv "conftest.tmp" "conftest.in"
4092 cp "conftest.in" "conftest.nl"
4093 $as_echo '' >> "conftest.nl"
4094 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4095 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4096 as_fn_arith $ac_count + 1 && ac_count=$as_val
4097 if test $ac_count -gt ${ac_path_SED_max-0}; then
4098 # Best one so far, save it but keep looking for a better one
4099 ac_cv_path_SED="$ac_path_SED"
4100 ac_path_SED_max=$ac_count
4101 fi
4102 # 10*(2^10) chars as input seems more than enough
4103 test $ac_count -gt 10 && break
4104 done
4105 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4106 esac
4107
4108 $ac_path_SED_found && break 3
4109 done
4110 done
4111 done
4112 IFS=$as_save_IFS
4113 if test -z "$ac_cv_path_SED"; then
4114 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4115 fi
4116 else
4117 ac_cv_path_SED=$SED
4118 fi
4119
4120 fi
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4122 $as_echo "$ac_cv_path_SED" >&6; }
4123 SED="$ac_cv_path_SED"
4124 rm -f conftest.sed
4125
4126
4127
4128
4129
4130
4131 # Check whether --enable-selective-werror was given.
4132 if test "${enable_selective_werror+set}" = set; then :
4133 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4134 else
4135 SELECTIVE_WERROR=yes
4136 fi
4137
4138
4139
4140
4141
4142 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4143 if test "x$SUNCC" = "xyes"; then
4144 BASE_CFLAGS="-v"
4145 else
4146 BASE_CFLAGS=""
4147 fi
4148
4149 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163 xorg_testset_save_CFLAGS="$CFLAGS"
4164
4165 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4166 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4168 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4169 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4170 $as_echo_n "(cached) " >&6
4171 else
4172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4173 /* end confdefs.h. */
4174 int i;
4175 _ACEOF
4176 if ac_fn_c_try_compile "$LINENO"; then :
4177 xorg_cv_cc_flag_unknown_warning_option=yes
4178 else
4179 xorg_cv_cc_flag_unknown_warning_option=no
4180 fi
4181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4182 fi
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4184 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4185 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4186 CFLAGS="$xorg_testset_save_CFLAGS"
4187 fi
4188
4189 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4190 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4191 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4192 fi
4193 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4195 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4196 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4197 $as_echo_n "(cached) " >&6
4198 else
4199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4200 /* end confdefs.h. */
4201 int i;
4202 _ACEOF
4203 if ac_fn_c_try_compile "$LINENO"; then :
4204 xorg_cv_cc_flag_unused_command_line_argument=yes
4205 else
4206 xorg_cv_cc_flag_unused_command_line_argument=no
4207 fi
4208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4209 fi
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4211 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4212 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4213 CFLAGS="$xorg_testset_save_CFLAGS"
4214 fi
4215
4216 found="no"
4217
4218 if test $found = "no" ; then
4219 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4220 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4221 fi
4222
4223 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4224 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4225 fi
4226
4227 CFLAGS="$CFLAGS -Wall"
4228
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wall" >&5
4230 $as_echo_n "checking if $CC supports-Wall... " >&6; }
4231 cacheid=xorg_cv_cc_flag__Wall
4232 if eval \${$cacheid+:} false; then :
4233 $as_echo_n "(cached) " >&6
4234 else
4235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4236 /* end confdefs.h. */
4237 int i;
4238 int
4239 main ()
4240 {
4241
4242 ;
4243 return 0;
4244 }
4245 _ACEOF
4246 if ac_fn_c_try_link "$LINENO"; then :
4247 eval $cacheid=yes
4248 else
4249 eval $cacheid=no
4250 fi
4251 rm -f core conftest.err conftest.$ac_objext \
4252 conftest$ac_exeext conftest.$ac_ext
4253 fi
4254
4255
4256 CFLAGS="$xorg_testset_save_CFLAGS"
4257
4258 eval supported=\$$cacheid
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4260 $as_echo "$supported" >&6; }
4261 if test "$supported" = "yes" ; then
4262 BASE_CFLAGS="$BASE_CFLAGS -Wall"
4263 found="yes"
4264 fi
4265 fi
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281 xorg_testset_save_CFLAGS="$CFLAGS"
4282
4283 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4284 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4286 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4287 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4288 $as_echo_n "(cached) " >&6
4289 else
4290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4291 /* end confdefs.h. */
4292 int i;
4293 _ACEOF
4294 if ac_fn_c_try_compile "$LINENO"; then :
4295 xorg_cv_cc_flag_unknown_warning_option=yes
4296 else
4297 xorg_cv_cc_flag_unknown_warning_option=no
4298 fi
4299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4300 fi
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4302 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4303 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4304 CFLAGS="$xorg_testset_save_CFLAGS"
4305 fi
4306
4307 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4308 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4309 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4310 fi
4311 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4313 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4314 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4315 $as_echo_n "(cached) " >&6
4316 else
4317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4318 /* end confdefs.h. */
4319 int i;
4320 _ACEOF
4321 if ac_fn_c_try_compile "$LINENO"; then :
4322 xorg_cv_cc_flag_unused_command_line_argument=yes
4323 else
4324 xorg_cv_cc_flag_unused_command_line_argument=no
4325 fi
4326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4327 fi
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4329 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4330 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4331 CFLAGS="$xorg_testset_save_CFLAGS"
4332 fi
4333
4334 found="no"
4335
4336 if test $found = "no" ; then
4337 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4338 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4339 fi
4340
4341 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4342 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4343 fi
4344
4345 CFLAGS="$CFLAGS -Wpointer-arith"
4346
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-arith" >&5
4348 $as_echo_n "checking if $CC supports-Wpointer-arith... " >&6; }
4349 cacheid=xorg_cv_cc_flag__Wpointer_arith
4350 if eval \${$cacheid+:} false; then :
4351 $as_echo_n "(cached) " >&6
4352 else
4353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4354 /* end confdefs.h. */
4355 int i;
4356 int
4357 main ()
4358 {
4359
4360 ;
4361 return 0;
4362 }
4363 _ACEOF
4364 if ac_fn_c_try_link "$LINENO"; then :
4365 eval $cacheid=yes
4366 else
4367 eval $cacheid=no
4368 fi
4369 rm -f core conftest.err conftest.$ac_objext \
4370 conftest$ac_exeext conftest.$ac_ext
4371 fi
4372
4373
4374 CFLAGS="$xorg_testset_save_CFLAGS"
4375
4376 eval supported=\$$cacheid
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4378 $as_echo "$supported" >&6; }
4379 if test "$supported" = "yes" ; then
4380 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4381 found="yes"
4382 fi
4383 fi
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399 xorg_testset_save_CFLAGS="$CFLAGS"
4400
4401 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4402 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4404 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4405 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4406 $as_echo_n "(cached) " >&6
4407 else
4408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4409 /* end confdefs.h. */
4410 int i;
4411 _ACEOF
4412 if ac_fn_c_try_compile "$LINENO"; then :
4413 xorg_cv_cc_flag_unknown_warning_option=yes
4414 else
4415 xorg_cv_cc_flag_unknown_warning_option=no
4416 fi
4417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4418 fi
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4420 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4421 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4422 CFLAGS="$xorg_testset_save_CFLAGS"
4423 fi
4424
4425 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4426 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4427 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4428 fi
4429 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4431 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4432 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4433 $as_echo_n "(cached) " >&6
4434 else
4435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4436 /* end confdefs.h. */
4437 int i;
4438 _ACEOF
4439 if ac_fn_c_try_compile "$LINENO"; then :
4440 xorg_cv_cc_flag_unused_command_line_argument=yes
4441 else
4442 xorg_cv_cc_flag_unused_command_line_argument=no
4443 fi
4444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4445 fi
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4447 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4448 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4449 CFLAGS="$xorg_testset_save_CFLAGS"
4450 fi
4451
4452 found="no"
4453
4454 if test $found = "no" ; then
4455 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4456 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4457 fi
4458
4459 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4460 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4461 fi
4462
4463 CFLAGS="$CFLAGS -Wmissing-declarations"
4464
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-declarations" >&5
4466 $as_echo_n "checking if $CC supports-Wmissing-declarations... " >&6; }
4467 cacheid=xorg_cv_cc_flag__Wmissing_declarations
4468 if eval \${$cacheid+:} false; then :
4469 $as_echo_n "(cached) " >&6
4470 else
4471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4472 /* end confdefs.h. */
4473 int i;
4474 int
4475 main ()
4476 {
4477
4478 ;
4479 return 0;
4480 }
4481 _ACEOF
4482 if ac_fn_c_try_link "$LINENO"; then :
4483 eval $cacheid=yes
4484 else
4485 eval $cacheid=no
4486 fi
4487 rm -f core conftest.err conftest.$ac_objext \
4488 conftest$ac_exeext conftest.$ac_ext
4489 fi
4490
4491
4492 CFLAGS="$xorg_testset_save_CFLAGS"
4493
4494 eval supported=\$$cacheid
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4496 $as_echo "$supported" >&6; }
4497 if test "$supported" = "yes" ; then
4498 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
4499 found="yes"
4500 fi
4501 fi
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517 xorg_testset_save_CFLAGS="$CFLAGS"
4518
4519 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4520 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4522 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4523 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4524 $as_echo_n "(cached) " >&6
4525 else
4526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4527 /* end confdefs.h. */
4528 int i;
4529 _ACEOF
4530 if ac_fn_c_try_compile "$LINENO"; then :
4531 xorg_cv_cc_flag_unknown_warning_option=yes
4532 else
4533 xorg_cv_cc_flag_unknown_warning_option=no
4534 fi
4535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4536 fi
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4538 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4539 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4540 CFLAGS="$xorg_testset_save_CFLAGS"
4541 fi
4542
4543 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4544 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4545 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4546 fi
4547 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4549 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4550 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4551 $as_echo_n "(cached) " >&6
4552 else
4553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4554 /* end confdefs.h. */
4555 int i;
4556 _ACEOF
4557 if ac_fn_c_try_compile "$LINENO"; then :
4558 xorg_cv_cc_flag_unused_command_line_argument=yes
4559 else
4560 xorg_cv_cc_flag_unused_command_line_argument=no
4561 fi
4562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4563 fi
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4565 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4566 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4567 CFLAGS="$xorg_testset_save_CFLAGS"
4568 fi
4569
4570 found="no"
4571
4572 if test $found = "no" ; then
4573 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4574 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4575 fi
4576
4577 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4578 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4579 fi
4580
4581 CFLAGS="$CFLAGS -Wformat=2"
4582
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat=2" >&5
4584 $as_echo_n "checking if $CC supports-Wformat=2... " >&6; }
4585 cacheid=xorg_cv_cc_flag__Wformat_2
4586 if eval \${$cacheid+:} false; then :
4587 $as_echo_n "(cached) " >&6
4588 else
4589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4590 /* end confdefs.h. */
4591 int i;
4592 int
4593 main ()
4594 {
4595
4596 ;
4597 return 0;
4598 }
4599 _ACEOF
4600 if ac_fn_c_try_link "$LINENO"; then :
4601 eval $cacheid=yes
4602 else
4603 eval $cacheid=no
4604 fi
4605 rm -f core conftest.err conftest.$ac_objext \
4606 conftest$ac_exeext conftest.$ac_ext
4607 fi
4608
4609
4610 CFLAGS="$xorg_testset_save_CFLAGS"
4611
4612 eval supported=\$$cacheid
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4614 $as_echo "$supported" >&6; }
4615 if test "$supported" = "yes" ; then
4616 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
4617 found="yes"
4618 fi
4619 fi
4620
4621 if test $found = "no" ; then
4622 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4623 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4624 fi
4625
4626 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4627 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4628 fi
4629
4630 CFLAGS="$CFLAGS -Wformat"
4631
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat" >&5
4633 $as_echo_n "checking if $CC supports-Wformat... " >&6; }
4634 cacheid=xorg_cv_cc_flag__Wformat
4635 if eval \${$cacheid+:} false; then :
4636 $as_echo_n "(cached) " >&6
4637 else
4638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4639 /* end confdefs.h. */
4640 int i;
4641 int
4642 main ()
4643 {
4644
4645 ;
4646 return 0;
4647 }
4648 _ACEOF
4649 if ac_fn_c_try_link "$LINENO"; then :
4650 eval $cacheid=yes
4651 else
4652 eval $cacheid=no
4653 fi
4654 rm -f core conftest.err conftest.$ac_objext \
4655 conftest$ac_exeext conftest.$ac_ext
4656 fi
4657
4658
4659 CFLAGS="$xorg_testset_save_CFLAGS"
4660
4661 eval supported=\$$cacheid
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4663 $as_echo "$supported" >&6; }
4664 if test "$supported" = "yes" ; then
4665 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
4666 found="yes"
4667 fi
4668 fi
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686 xorg_testset_save_CFLAGS="$CFLAGS"
4687
4688 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4689 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4691 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4692 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4693 $as_echo_n "(cached) " >&6
4694 else
4695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4696 /* end confdefs.h. */
4697 int i;
4698 _ACEOF
4699 if ac_fn_c_try_compile "$LINENO"; then :
4700 xorg_cv_cc_flag_unknown_warning_option=yes
4701 else
4702 xorg_cv_cc_flag_unknown_warning_option=no
4703 fi
4704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4705 fi
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4707 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4708 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4709 CFLAGS="$xorg_testset_save_CFLAGS"
4710 fi
4711
4712 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4713 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4714 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4715 fi
4716 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4718 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4719 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4720 $as_echo_n "(cached) " >&6
4721 else
4722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4723 /* end confdefs.h. */
4724 int i;
4725 _ACEOF
4726 if ac_fn_c_try_compile "$LINENO"; then :
4727 xorg_cv_cc_flag_unused_command_line_argument=yes
4728 else
4729 xorg_cv_cc_flag_unused_command_line_argument=no
4730 fi
4731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4732 fi
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4734 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4735 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4736 CFLAGS="$xorg_testset_save_CFLAGS"
4737 fi
4738
4739 found="no"
4740
4741 if test $found = "no" ; then
4742 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4743 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4744 fi
4745
4746 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4747 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4748 fi
4749
4750 CFLAGS="$CFLAGS -Wstrict-prototypes"
4751
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wstrict-prototypes" >&5
4753 $as_echo_n "checking if $CC supports-Wstrict-prototypes... " >&6; }
4754 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
4755 if eval \${$cacheid+:} false; then :
4756 $as_echo_n "(cached) " >&6
4757 else
4758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4759 /* end confdefs.h. */
4760 int i;
4761 int
4762 main ()
4763 {
4764
4765 ;
4766 return 0;
4767 }
4768 _ACEOF
4769 if ac_fn_c_try_link "$LINENO"; then :
4770 eval $cacheid=yes
4771 else
4772 eval $cacheid=no
4773 fi
4774 rm -f core conftest.err conftest.$ac_objext \
4775 conftest$ac_exeext conftest.$ac_ext
4776 fi
4777
4778
4779 CFLAGS="$xorg_testset_save_CFLAGS"
4780
4781 eval supported=\$$cacheid
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4783 $as_echo "$supported" >&6; }
4784 if test "$supported" = "yes" ; then
4785 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
4786 found="yes"
4787 fi
4788 fi
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804 xorg_testset_save_CFLAGS="$CFLAGS"
4805
4806 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4807 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4809 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4810 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4811 $as_echo_n "(cached) " >&6
4812 else
4813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4814 /* end confdefs.h. */
4815 int i;
4816 _ACEOF
4817 if ac_fn_c_try_compile "$LINENO"; then :
4818 xorg_cv_cc_flag_unknown_warning_option=yes
4819 else
4820 xorg_cv_cc_flag_unknown_warning_option=no
4821 fi
4822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4823 fi
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4825 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4826 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4827 CFLAGS="$xorg_testset_save_CFLAGS"
4828 fi
4829
4830 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4831 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4832 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4833 fi
4834 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4836 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4837 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4838 $as_echo_n "(cached) " >&6
4839 else
4840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4841 /* end confdefs.h. */
4842 int i;
4843 _ACEOF
4844 if ac_fn_c_try_compile "$LINENO"; then :
4845 xorg_cv_cc_flag_unused_command_line_argument=yes
4846 else
4847 xorg_cv_cc_flag_unused_command_line_argument=no
4848 fi
4849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4850 fi
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4852 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4853 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4854 CFLAGS="$xorg_testset_save_CFLAGS"
4855 fi
4856
4857 found="no"
4858
4859 if test $found = "no" ; then
4860 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4861 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4862 fi
4863
4864 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4865 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4866 fi
4867
4868 CFLAGS="$CFLAGS -Wmissing-prototypes"
4869
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-prototypes" >&5
4871 $as_echo_n "checking if $CC supports-Wmissing-prototypes... " >&6; }
4872 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
4873 if eval \${$cacheid+:} false; then :
4874 $as_echo_n "(cached) " >&6
4875 else
4876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4877 /* end confdefs.h. */
4878 int i;
4879 int
4880 main ()
4881 {
4882
4883 ;
4884 return 0;
4885 }
4886 _ACEOF
4887 if ac_fn_c_try_link "$LINENO"; then :
4888 eval $cacheid=yes
4889 else
4890 eval $cacheid=no
4891 fi
4892 rm -f core conftest.err conftest.$ac_objext \
4893 conftest$ac_exeext conftest.$ac_ext
4894 fi
4895
4896
4897 CFLAGS="$xorg_testset_save_CFLAGS"
4898
4899 eval supported=\$$cacheid
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4901 $as_echo "$supported" >&6; }
4902 if test "$supported" = "yes" ; then
4903 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
4904 found="yes"
4905 fi
4906 fi
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922 xorg_testset_save_CFLAGS="$CFLAGS"
4923
4924 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4925 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4927 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4928 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4929 $as_echo_n "(cached) " >&6
4930 else
4931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4932 /* end confdefs.h. */
4933 int i;
4934 _ACEOF
4935 if ac_fn_c_try_compile "$LINENO"; then :
4936 xorg_cv_cc_flag_unknown_warning_option=yes
4937 else
4938 xorg_cv_cc_flag_unknown_warning_option=no
4939 fi
4940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4941 fi
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4943 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4944 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4945 CFLAGS="$xorg_testset_save_CFLAGS"
4946 fi
4947
4948 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4949 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4950 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4951 fi
4952 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4954 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4955 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4956 $as_echo_n "(cached) " >&6
4957 else
4958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4959 /* end confdefs.h. */
4960 int i;
4961 _ACEOF
4962 if ac_fn_c_try_compile "$LINENO"; then :
4963 xorg_cv_cc_flag_unused_command_line_argument=yes
4964 else
4965 xorg_cv_cc_flag_unused_command_line_argument=no
4966 fi
4967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4968 fi
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4970 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4971 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4972 CFLAGS="$xorg_testset_save_CFLAGS"
4973 fi
4974
4975 found="no"
4976
4977 if test $found = "no" ; then
4978 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4979 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4980 fi
4981
4982 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4983 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4984 fi
4985
4986 CFLAGS="$CFLAGS -Wnested-externs"
4987
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnested-externs" >&5
4989 $as_echo_n "checking if $CC supports-Wnested-externs... " >&6; }
4990 cacheid=xorg_cv_cc_flag__Wnested_externs
4991 if eval \${$cacheid+:} false; then :
4992 $as_echo_n "(cached) " >&6
4993 else
4994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4995 /* end confdefs.h. */
4996 int i;
4997 int
4998 main ()
4999 {
5000
5001 ;
5002 return 0;
5003 }
5004 _ACEOF
5005 if ac_fn_c_try_link "$LINENO"; then :
5006 eval $cacheid=yes
5007 else
5008 eval $cacheid=no
5009 fi
5010 rm -f core conftest.err conftest.$ac_objext \
5011 conftest$ac_exeext conftest.$ac_ext
5012 fi
5013
5014
5015 CFLAGS="$xorg_testset_save_CFLAGS"
5016
5017 eval supported=\$$cacheid
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5019 $as_echo "$supported" >&6; }
5020 if test "$supported" = "yes" ; then
5021 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5022 found="yes"
5023 fi
5024 fi
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040 xorg_testset_save_CFLAGS="$CFLAGS"
5041
5042 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5043 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5045 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5046 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5047 $as_echo_n "(cached) " >&6
5048 else
5049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5050 /* end confdefs.h. */
5051 int i;
5052 _ACEOF
5053 if ac_fn_c_try_compile "$LINENO"; then :
5054 xorg_cv_cc_flag_unknown_warning_option=yes
5055 else
5056 xorg_cv_cc_flag_unknown_warning_option=no
5057 fi
5058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5059 fi
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5061 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5062 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5063 CFLAGS="$xorg_testset_save_CFLAGS"
5064 fi
5065
5066 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5067 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5068 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5069 fi
5070 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5072 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5073 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5074 $as_echo_n "(cached) " >&6
5075 else
5076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5077 /* end confdefs.h. */
5078 int i;
5079 _ACEOF
5080 if ac_fn_c_try_compile "$LINENO"; then :
5081 xorg_cv_cc_flag_unused_command_line_argument=yes
5082 else
5083 xorg_cv_cc_flag_unused_command_line_argument=no
5084 fi
5085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5086 fi
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5088 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5089 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5090 CFLAGS="$xorg_testset_save_CFLAGS"
5091 fi
5092
5093 found="no"
5094
5095 if test $found = "no" ; then
5096 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5097 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5098 fi
5099
5100 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5101 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5102 fi
5103
5104 CFLAGS="$CFLAGS -Wbad-function-cast"
5105
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wbad-function-cast" >&5
5107 $as_echo_n "checking if $CC supports-Wbad-function-cast... " >&6; }
5108 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5109 if eval \${$cacheid+:} false; then :
5110 $as_echo_n "(cached) " >&6
5111 else
5112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5113 /* end confdefs.h. */
5114 int i;
5115 int
5116 main ()
5117 {
5118
5119 ;
5120 return 0;
5121 }
5122 _ACEOF
5123 if ac_fn_c_try_link "$LINENO"; then :
5124 eval $cacheid=yes
5125 else
5126 eval $cacheid=no
5127 fi
5128 rm -f core conftest.err conftest.$ac_objext \
5129 conftest$ac_exeext conftest.$ac_ext
5130 fi
5131
5132
5133 CFLAGS="$xorg_testset_save_CFLAGS"
5134
5135 eval supported=\$$cacheid
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5137 $as_echo "$supported" >&6; }
5138 if test "$supported" = "yes" ; then
5139 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5140 found="yes"
5141 fi
5142 fi
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158 xorg_testset_save_CFLAGS="$CFLAGS"
5159
5160 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5161 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5163 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5164 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5165 $as_echo_n "(cached) " >&6
5166 else
5167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5168 /* end confdefs.h. */
5169 int i;
5170 _ACEOF
5171 if ac_fn_c_try_compile "$LINENO"; then :
5172 xorg_cv_cc_flag_unknown_warning_option=yes
5173 else
5174 xorg_cv_cc_flag_unknown_warning_option=no
5175 fi
5176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5177 fi
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5179 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5180 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5181 CFLAGS="$xorg_testset_save_CFLAGS"
5182 fi
5183
5184 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5185 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5186 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5187 fi
5188 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5190 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5191 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5192 $as_echo_n "(cached) " >&6
5193 else
5194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5195 /* end confdefs.h. */
5196 int i;
5197 _ACEOF
5198 if ac_fn_c_try_compile "$LINENO"; then :
5199 xorg_cv_cc_flag_unused_command_line_argument=yes
5200 else
5201 xorg_cv_cc_flag_unused_command_line_argument=no
5202 fi
5203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5204 fi
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5206 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5207 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5208 CFLAGS="$xorg_testset_save_CFLAGS"
5209 fi
5210
5211 found="no"
5212
5213 if test $found = "no" ; then
5214 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5215 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5216 fi
5217
5218 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5219 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5220 fi
5221
5222 CFLAGS="$CFLAGS -Wold-style-definition"
5223
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wold-style-definition" >&5
5225 $as_echo_n "checking if $CC supports-Wold-style-definition... " >&6; }
5226 cacheid=xorg_cv_cc_flag__Wold_style_definition
5227 if eval \${$cacheid+:} false; then :
5228 $as_echo_n "(cached) " >&6
5229 else
5230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5231 /* end confdefs.h. */
5232 int i;
5233 int
5234 main ()
5235 {
5236
5237 ;
5238 return 0;
5239 }
5240 _ACEOF
5241 if ac_fn_c_try_link "$LINENO"; then :
5242 eval $cacheid=yes
5243 else
5244 eval $cacheid=no
5245 fi
5246 rm -f core conftest.err conftest.$ac_objext \
5247 conftest$ac_exeext conftest.$ac_ext
5248 fi
5249
5250
5251 CFLAGS="$xorg_testset_save_CFLAGS"
5252
5253 eval supported=\$$cacheid
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5255 $as_echo "$supported" >&6; }
5256 if test "$supported" = "yes" ; then
5257 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5258 found="yes"
5259 fi
5260 fi
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276 xorg_testset_save_CFLAGS="$CFLAGS"
5277
5278 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5279 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5281 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5282 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5283 $as_echo_n "(cached) " >&6
5284 else
5285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5286 /* end confdefs.h. */
5287 int i;
5288 _ACEOF
5289 if ac_fn_c_try_compile "$LINENO"; then :
5290 xorg_cv_cc_flag_unknown_warning_option=yes
5291 else
5292 xorg_cv_cc_flag_unknown_warning_option=no
5293 fi
5294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5295 fi
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5297 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5298 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5299 CFLAGS="$xorg_testset_save_CFLAGS"
5300 fi
5301
5302 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5303 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5304 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5305 fi
5306 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5308 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5309 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5310 $as_echo_n "(cached) " >&6
5311 else
5312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5313 /* end confdefs.h. */
5314 int i;
5315 _ACEOF
5316 if ac_fn_c_try_compile "$LINENO"; then :
5317 xorg_cv_cc_flag_unused_command_line_argument=yes
5318 else
5319 xorg_cv_cc_flag_unused_command_line_argument=no
5320 fi
5321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5322 fi
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5324 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5325 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5326 CFLAGS="$xorg_testset_save_CFLAGS"
5327 fi
5328
5329 found="no"
5330
5331 if test $found = "no" ; then
5332 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5333 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5334 fi
5335
5336 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5337 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5338 fi
5339
5340 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5341
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wdeclaration-after-statement" >&5
5343 $as_echo_n "checking if $CC supports-Wdeclaration-after-statement... " >&6; }
5344 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5345 if eval \${$cacheid+:} false; then :
5346 $as_echo_n "(cached) " >&6
5347 else
5348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5349 /* end confdefs.h. */
5350 int i;
5351 int
5352 main ()
5353 {
5354
5355 ;
5356 return 0;
5357 }
5358 _ACEOF
5359 if ac_fn_c_try_link "$LINENO"; then :
5360 eval $cacheid=yes
5361 else
5362 eval $cacheid=no
5363 fi
5364 rm -f core conftest.err conftest.$ac_objext \
5365 conftest$ac_exeext conftest.$ac_ext
5366 fi
5367
5368
5369 CFLAGS="$xorg_testset_save_CFLAGS"
5370
5371 eval supported=\$$cacheid
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5373 $as_echo "$supported" >&6; }
5374 if test "$supported" = "yes" ; then
5375 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5376 found="yes"
5377 fi
5378 fi
5379
5380
5381
5382
5383
5384 # This chunk adds additional warnings that could catch undesired effects.
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398 xorg_testset_save_CFLAGS="$CFLAGS"
5399
5400 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5401 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5403 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5404 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5405 $as_echo_n "(cached) " >&6
5406 else
5407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5408 /* end confdefs.h. */
5409 int i;
5410 _ACEOF
5411 if ac_fn_c_try_compile "$LINENO"; then :
5412 xorg_cv_cc_flag_unknown_warning_option=yes
5413 else
5414 xorg_cv_cc_flag_unknown_warning_option=no
5415 fi
5416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5417 fi
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5419 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5420 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5421 CFLAGS="$xorg_testset_save_CFLAGS"
5422 fi
5423
5424 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5425 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5426 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5427 fi
5428 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5430 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5431 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5432 $as_echo_n "(cached) " >&6
5433 else
5434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5435 /* end confdefs.h. */
5436 int i;
5437 _ACEOF
5438 if ac_fn_c_try_compile "$LINENO"; then :
5439 xorg_cv_cc_flag_unused_command_line_argument=yes
5440 else
5441 xorg_cv_cc_flag_unused_command_line_argument=no
5442 fi
5443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5444 fi
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5446 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5447 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5448 CFLAGS="$xorg_testset_save_CFLAGS"
5449 fi
5450
5451 found="no"
5452
5453 if test $found = "no" ; then
5454 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5455 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5456 fi
5457
5458 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5459 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5460 fi
5461
5462 CFLAGS="$CFLAGS -Wunused"
5463
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wunused" >&5
5465 $as_echo_n "checking if $CC supports-Wunused... " >&6; }
5466 cacheid=xorg_cv_cc_flag__Wunused
5467 if eval \${$cacheid+:} false; then :
5468 $as_echo_n "(cached) " >&6
5469 else
5470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5471 /* end confdefs.h. */
5472 int i;
5473 int
5474 main ()
5475 {
5476
5477 ;
5478 return 0;
5479 }
5480 _ACEOF
5481 if ac_fn_c_try_link "$LINENO"; then :
5482 eval $cacheid=yes
5483 else
5484 eval $cacheid=no
5485 fi
5486 rm -f core conftest.err conftest.$ac_objext \
5487 conftest$ac_exeext conftest.$ac_ext
5488 fi
5489
5490
5491 CFLAGS="$xorg_testset_save_CFLAGS"
5492
5493 eval supported=\$$cacheid
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5495 $as_echo "$supported" >&6; }
5496 if test "$supported" = "yes" ; then
5497 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
5498 found="yes"
5499 fi
5500 fi
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516 xorg_testset_save_CFLAGS="$CFLAGS"
5517
5518 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5519 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5521 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5522 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5523 $as_echo_n "(cached) " >&6
5524 else
5525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5526 /* end confdefs.h. */
5527 int i;
5528 _ACEOF
5529 if ac_fn_c_try_compile "$LINENO"; then :
5530 xorg_cv_cc_flag_unknown_warning_option=yes
5531 else
5532 xorg_cv_cc_flag_unknown_warning_option=no
5533 fi
5534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5535 fi
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5537 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5538 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5539 CFLAGS="$xorg_testset_save_CFLAGS"
5540 fi
5541
5542 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5543 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5544 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5545 fi
5546 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5548 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5549 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5550 $as_echo_n "(cached) " >&6
5551 else
5552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5553 /* end confdefs.h. */
5554 int i;
5555 _ACEOF
5556 if ac_fn_c_try_compile "$LINENO"; then :
5557 xorg_cv_cc_flag_unused_command_line_argument=yes
5558 else
5559 xorg_cv_cc_flag_unused_command_line_argument=no
5560 fi
5561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5562 fi
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5564 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5565 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5566 CFLAGS="$xorg_testset_save_CFLAGS"
5567 fi
5568
5569 found="no"
5570
5571 if test $found = "no" ; then
5572 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5573 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5574 fi
5575
5576 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5577 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5578 fi
5579
5580 CFLAGS="$CFLAGS -Wuninitialized"
5581
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wuninitialized" >&5
5583 $as_echo_n "checking if $CC supports-Wuninitialized... " >&6; }
5584 cacheid=xorg_cv_cc_flag__Wuninitialized
5585 if eval \${$cacheid+:} false; then :
5586 $as_echo_n "(cached) " >&6
5587 else
5588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5589 /* end confdefs.h. */
5590 int i;
5591 int
5592 main ()
5593 {
5594
5595 ;
5596 return 0;
5597 }
5598 _ACEOF
5599 if ac_fn_c_try_link "$LINENO"; then :
5600 eval $cacheid=yes
5601 else
5602 eval $cacheid=no
5603 fi
5604 rm -f core conftest.err conftest.$ac_objext \
5605 conftest$ac_exeext conftest.$ac_ext
5606 fi
5607
5608
5609 CFLAGS="$xorg_testset_save_CFLAGS"
5610
5611 eval supported=\$$cacheid
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5613 $as_echo "$supported" >&6; }
5614 if test "$supported" = "yes" ; then
5615 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
5616 found="yes"
5617 fi
5618 fi
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634 xorg_testset_save_CFLAGS="$CFLAGS"
5635
5636 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5637 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5639 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5640 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5641 $as_echo_n "(cached) " >&6
5642 else
5643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5644 /* end confdefs.h. */
5645 int i;
5646 _ACEOF
5647 if ac_fn_c_try_compile "$LINENO"; then :
5648 xorg_cv_cc_flag_unknown_warning_option=yes
5649 else
5650 xorg_cv_cc_flag_unknown_warning_option=no
5651 fi
5652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5653 fi
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5655 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5656 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5657 CFLAGS="$xorg_testset_save_CFLAGS"
5658 fi
5659
5660 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5661 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5662 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5663 fi
5664 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5666 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5667 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5668 $as_echo_n "(cached) " >&6
5669 else
5670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5671 /* end confdefs.h. */
5672 int i;
5673 _ACEOF
5674 if ac_fn_c_try_compile "$LINENO"; then :
5675 xorg_cv_cc_flag_unused_command_line_argument=yes
5676 else
5677 xorg_cv_cc_flag_unused_command_line_argument=no
5678 fi
5679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5680 fi
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5682 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5683 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5684 CFLAGS="$xorg_testset_save_CFLAGS"
5685 fi
5686
5687 found="no"
5688
5689 if test $found = "no" ; then
5690 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5691 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5692 fi
5693
5694 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5695 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5696 fi
5697
5698 CFLAGS="$CFLAGS -Wshadow"
5699
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wshadow" >&5
5701 $as_echo_n "checking if $CC supports-Wshadow... " >&6; }
5702 cacheid=xorg_cv_cc_flag__Wshadow
5703 if eval \${$cacheid+:} false; then :
5704 $as_echo_n "(cached) " >&6
5705 else
5706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5707 /* end confdefs.h. */
5708 int i;
5709 int
5710 main ()
5711 {
5712
5713 ;
5714 return 0;
5715 }
5716 _ACEOF
5717 if ac_fn_c_try_link "$LINENO"; then :
5718 eval $cacheid=yes
5719 else
5720 eval $cacheid=no
5721 fi
5722 rm -f core conftest.err conftest.$ac_objext \
5723 conftest$ac_exeext conftest.$ac_ext
5724 fi
5725
5726
5727 CFLAGS="$xorg_testset_save_CFLAGS"
5728
5729 eval supported=\$$cacheid
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5731 $as_echo "$supported" >&6; }
5732 if test "$supported" = "yes" ; then
5733 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
5734 found="yes"
5735 fi
5736 fi
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752 xorg_testset_save_CFLAGS="$CFLAGS"
5753
5754 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5755 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5757 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5758 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5759 $as_echo_n "(cached) " >&6
5760 else
5761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5762 /* end confdefs.h. */
5763 int i;
5764 _ACEOF
5765 if ac_fn_c_try_compile "$LINENO"; then :
5766 xorg_cv_cc_flag_unknown_warning_option=yes
5767 else
5768 xorg_cv_cc_flag_unknown_warning_option=no
5769 fi
5770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5771 fi
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5773 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5774 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5775 CFLAGS="$xorg_testset_save_CFLAGS"
5776 fi
5777
5778 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5779 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5780 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5781 fi
5782 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5784 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5785 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5786 $as_echo_n "(cached) " >&6
5787 else
5788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5789 /* end confdefs.h. */
5790 int i;
5791 _ACEOF
5792 if ac_fn_c_try_compile "$LINENO"; then :
5793 xorg_cv_cc_flag_unused_command_line_argument=yes
5794 else
5795 xorg_cv_cc_flag_unused_command_line_argument=no
5796 fi
5797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5798 fi
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5800 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5801 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5802 CFLAGS="$xorg_testset_save_CFLAGS"
5803 fi
5804
5805 found="no"
5806
5807 if test $found = "no" ; then
5808 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5809 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5810 fi
5811
5812 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5813 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5814 fi
5815
5816 CFLAGS="$CFLAGS -Wcast-qual"
5817
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wcast-qual" >&5
5819 $as_echo_n "checking if $CC supports-Wcast-qual... " >&6; }
5820 cacheid=xorg_cv_cc_flag__Wcast_qual
5821 if eval \${$cacheid+:} false; then :
5822 $as_echo_n "(cached) " >&6
5823 else
5824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5825 /* end confdefs.h. */
5826 int i;
5827 int
5828 main ()
5829 {
5830
5831 ;
5832 return 0;
5833 }
5834 _ACEOF
5835 if ac_fn_c_try_link "$LINENO"; then :
5836 eval $cacheid=yes
5837 else
5838 eval $cacheid=no
5839 fi
5840 rm -f core conftest.err conftest.$ac_objext \
5841 conftest$ac_exeext conftest.$ac_ext
5842 fi
5843
5844
5845 CFLAGS="$xorg_testset_save_CFLAGS"
5846
5847 eval supported=\$$cacheid
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5849 $as_echo "$supported" >&6; }
5850 if test "$supported" = "yes" ; then
5851 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
5852 found="yes"
5853 fi
5854 fi
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870 xorg_testset_save_CFLAGS="$CFLAGS"
5871
5872 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5873 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5875 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5876 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5877 $as_echo_n "(cached) " >&6
5878 else
5879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5880 /* end confdefs.h. */
5881 int i;
5882 _ACEOF
5883 if ac_fn_c_try_compile "$LINENO"; then :
5884 xorg_cv_cc_flag_unknown_warning_option=yes
5885 else
5886 xorg_cv_cc_flag_unknown_warning_option=no
5887 fi
5888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5889 fi
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5891 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5892 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5893 CFLAGS="$xorg_testset_save_CFLAGS"
5894 fi
5895
5896 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5897 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5898 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5899 fi
5900 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5902 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5903 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5904 $as_echo_n "(cached) " >&6
5905 else
5906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5907 /* end confdefs.h. */
5908 int i;
5909 _ACEOF
5910 if ac_fn_c_try_compile "$LINENO"; then :
5911 xorg_cv_cc_flag_unused_command_line_argument=yes
5912 else
5913 xorg_cv_cc_flag_unused_command_line_argument=no
5914 fi
5915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5916 fi
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5918 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5919 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5920 CFLAGS="$xorg_testset_save_CFLAGS"
5921 fi
5922
5923 found="no"
5924
5925 if test $found = "no" ; then
5926 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5927 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5928 fi
5929
5930 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5931 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5932 fi
5933
5934 CFLAGS="$CFLAGS -Wmissing-noreturn"
5935
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-noreturn" >&5
5937 $as_echo_n "checking if $CC supports-Wmissing-noreturn... " >&6; }
5938 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
5939 if eval \${$cacheid+:} false; then :
5940 $as_echo_n "(cached) " >&6
5941 else
5942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5943 /* end confdefs.h. */
5944 int i;
5945 int
5946 main ()
5947 {
5948
5949 ;
5950 return 0;
5951 }
5952 _ACEOF
5953 if ac_fn_c_try_link "$LINENO"; then :
5954 eval $cacheid=yes
5955 else
5956 eval $cacheid=no
5957 fi
5958 rm -f core conftest.err conftest.$ac_objext \
5959 conftest$ac_exeext conftest.$ac_ext
5960 fi
5961
5962
5963 CFLAGS="$xorg_testset_save_CFLAGS"
5964
5965 eval supported=\$$cacheid
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5967 $as_echo "$supported" >&6; }
5968 if test "$supported" = "yes" ; then
5969 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
5970 found="yes"
5971 fi
5972 fi
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988 xorg_testset_save_CFLAGS="$CFLAGS"
5989
5990 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5991 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5993 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5994 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5995 $as_echo_n "(cached) " >&6
5996 else
5997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5998 /* end confdefs.h. */
5999 int i;
6000 _ACEOF
6001 if ac_fn_c_try_compile "$LINENO"; then :
6002 xorg_cv_cc_flag_unknown_warning_option=yes
6003 else
6004 xorg_cv_cc_flag_unknown_warning_option=no
6005 fi
6006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6007 fi
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6009 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6010 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6011 CFLAGS="$xorg_testset_save_CFLAGS"
6012 fi
6013
6014 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6015 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6016 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6017 fi
6018 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6020 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6021 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6022 $as_echo_n "(cached) " >&6
6023 else
6024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6025 /* end confdefs.h. */
6026 int i;
6027 _ACEOF
6028 if ac_fn_c_try_compile "$LINENO"; then :
6029 xorg_cv_cc_flag_unused_command_line_argument=yes
6030 else
6031 xorg_cv_cc_flag_unused_command_line_argument=no
6032 fi
6033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6034 fi
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6036 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6037 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6038 CFLAGS="$xorg_testset_save_CFLAGS"
6039 fi
6040
6041 found="no"
6042
6043 if test $found = "no" ; then
6044 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6045 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6046 fi
6047
6048 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6049 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6050 fi
6051
6052 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6053
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-format-attribute" >&5
6055 $as_echo_n "checking if $CC supports-Wmissing-format-attribute... " >&6; }
6056 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6057 if eval \${$cacheid+:} false; then :
6058 $as_echo_n "(cached) " >&6
6059 else
6060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6061 /* end confdefs.h. */
6062 int i;
6063 int
6064 main ()
6065 {
6066
6067 ;
6068 return 0;
6069 }
6070 _ACEOF
6071 if ac_fn_c_try_link "$LINENO"; then :
6072 eval $cacheid=yes
6073 else
6074 eval $cacheid=no
6075 fi
6076 rm -f core conftest.err conftest.$ac_objext \
6077 conftest$ac_exeext conftest.$ac_ext
6078 fi
6079
6080
6081 CFLAGS="$xorg_testset_save_CFLAGS"
6082
6083 eval supported=\$$cacheid
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6085 $as_echo "$supported" >&6; }
6086 if test "$supported" = "yes" ; then
6087 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6088 found="yes"
6089 fi
6090 fi
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106 xorg_testset_save_CFLAGS="$CFLAGS"
6107
6108 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6109 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6111 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6112 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6113 $as_echo_n "(cached) " >&6
6114 else
6115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6116 /* end confdefs.h. */
6117 int i;
6118 _ACEOF
6119 if ac_fn_c_try_compile "$LINENO"; then :
6120 xorg_cv_cc_flag_unknown_warning_option=yes
6121 else
6122 xorg_cv_cc_flag_unknown_warning_option=no
6123 fi
6124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6125 fi
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6127 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6128 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6129 CFLAGS="$xorg_testset_save_CFLAGS"
6130 fi
6131
6132 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6133 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6134 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6135 fi
6136 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6138 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6139 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6140 $as_echo_n "(cached) " >&6
6141 else
6142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6143 /* end confdefs.h. */
6144 int i;
6145 _ACEOF
6146 if ac_fn_c_try_compile "$LINENO"; then :
6147 xorg_cv_cc_flag_unused_command_line_argument=yes
6148 else
6149 xorg_cv_cc_flag_unused_command_line_argument=no
6150 fi
6151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6152 fi
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6154 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6155 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6156 CFLAGS="$xorg_testset_save_CFLAGS"
6157 fi
6158
6159 found="no"
6160
6161 if test $found = "no" ; then
6162 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6163 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6164 fi
6165
6166 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6167 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6168 fi
6169
6170 CFLAGS="$CFLAGS -Wredundant-decls"
6171
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wredundant-decls" >&5
6173 $as_echo_n "checking if $CC supports-Wredundant-decls... " >&6; }
6174 cacheid=xorg_cv_cc_flag__Wredundant_decls
6175 if eval \${$cacheid+:} false; then :
6176 $as_echo_n "(cached) " >&6
6177 else
6178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6179 /* end confdefs.h. */
6180 int i;
6181 int
6182 main ()
6183 {
6184
6185 ;
6186 return 0;
6187 }
6188 _ACEOF
6189 if ac_fn_c_try_link "$LINENO"; then :
6190 eval $cacheid=yes
6191 else
6192 eval $cacheid=no
6193 fi
6194 rm -f core conftest.err conftest.$ac_objext \
6195 conftest$ac_exeext conftest.$ac_ext
6196 fi
6197
6198
6199 CFLAGS="$xorg_testset_save_CFLAGS"
6200
6201 eval supported=\$$cacheid
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6203 $as_echo "$supported" >&6; }
6204 if test "$supported" = "yes" ; then
6205 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6206 found="yes"
6207 fi
6208 fi
6209
6210
6211
6212 # These are currently disabled because they are noisy. They will be enabled
6213 # in the future once the codebase is sufficiently modernized to silence
6214 # them. For now, I don't want them to drown out the other warnings.
6215 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
6216 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6217 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6218
6219 # Turn some warnings into errors, so we don't accidently get successful builds
6220 # when there are problems that should be fixed.
6221
6222 if test "x$SELECTIVE_WERROR" = "xyes" ; then
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236 xorg_testset_save_CFLAGS="$CFLAGS"
6237
6238 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6239 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6241 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6242 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6243 $as_echo_n "(cached) " >&6
6244 else
6245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6246 /* end confdefs.h. */
6247 int i;
6248 _ACEOF
6249 if ac_fn_c_try_compile "$LINENO"; then :
6250 xorg_cv_cc_flag_unknown_warning_option=yes
6251 else
6252 xorg_cv_cc_flag_unknown_warning_option=no
6253 fi
6254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6255 fi
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6257 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6258 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6259 CFLAGS="$xorg_testset_save_CFLAGS"
6260 fi
6261
6262 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6263 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6264 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6265 fi
6266 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6268 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6269 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6270 $as_echo_n "(cached) " >&6
6271 else
6272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6273 /* end confdefs.h. */
6274 int i;
6275 _ACEOF
6276 if ac_fn_c_try_compile "$LINENO"; then :
6277 xorg_cv_cc_flag_unused_command_line_argument=yes
6278 else
6279 xorg_cv_cc_flag_unused_command_line_argument=no
6280 fi
6281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6282 fi
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6284 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6285 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6286 CFLAGS="$xorg_testset_save_CFLAGS"
6287 fi
6288
6289 found="no"
6290
6291 if test $found = "no" ; then
6292 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6293 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6294 fi
6295
6296 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6297 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6298 fi
6299
6300 CFLAGS="$CFLAGS -Werror=implicit"
6301
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=implicit" >&5
6303 $as_echo_n "checking if $CC supports-Werror=implicit... " >&6; }
6304 cacheid=xorg_cv_cc_flag__Werror_implicit
6305 if eval \${$cacheid+:} false; then :
6306 $as_echo_n "(cached) " >&6
6307 else
6308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6309 /* end confdefs.h. */
6310 int i;
6311 int
6312 main ()
6313 {
6314
6315 ;
6316 return 0;
6317 }
6318 _ACEOF
6319 if ac_fn_c_try_link "$LINENO"; then :
6320 eval $cacheid=yes
6321 else
6322 eval $cacheid=no
6323 fi
6324 rm -f core conftest.err conftest.$ac_objext \
6325 conftest$ac_exeext conftest.$ac_ext
6326 fi
6327
6328
6329 CFLAGS="$xorg_testset_save_CFLAGS"
6330
6331 eval supported=\$$cacheid
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6333 $as_echo "$supported" >&6; }
6334 if test "$supported" = "yes" ; then
6335 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6336 found="yes"
6337 fi
6338 fi
6339
6340 if test $found = "no" ; then
6341 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6342 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6343 fi
6344
6345 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6346 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6347 fi
6348
6349 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6350
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6352 $as_echo_n "checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6353 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
6354 if eval \${$cacheid+:} false; then :
6355 $as_echo_n "(cached) " >&6
6356 else
6357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6358 /* end confdefs.h. */
6359 int i;
6360 int
6361 main ()
6362 {
6363
6364 ;
6365 return 0;
6366 }
6367 _ACEOF
6368 if ac_fn_c_try_link "$LINENO"; then :
6369 eval $cacheid=yes
6370 else
6371 eval $cacheid=no
6372 fi
6373 rm -f core conftest.err conftest.$ac_objext \
6374 conftest$ac_exeext conftest.$ac_ext
6375 fi
6376
6377
6378 CFLAGS="$xorg_testset_save_CFLAGS"
6379
6380 eval supported=\$$cacheid
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6382 $as_echo "$supported" >&6; }
6383 if test "$supported" = "yes" ; then
6384 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6385 found="yes"
6386 fi
6387 fi
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403 xorg_testset_save_CFLAGS="$CFLAGS"
6404
6405 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6406 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6408 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6409 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6410 $as_echo_n "(cached) " >&6
6411 else
6412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6413 /* end confdefs.h. */
6414 int i;
6415 _ACEOF
6416 if ac_fn_c_try_compile "$LINENO"; then :
6417 xorg_cv_cc_flag_unknown_warning_option=yes
6418 else
6419 xorg_cv_cc_flag_unknown_warning_option=no
6420 fi
6421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6422 fi
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6424 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6425 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6426 CFLAGS="$xorg_testset_save_CFLAGS"
6427 fi
6428
6429 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6430 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6431 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6432 fi
6433 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6435 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6436 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6437 $as_echo_n "(cached) " >&6
6438 else
6439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6440 /* end confdefs.h. */
6441 int i;
6442 _ACEOF
6443 if ac_fn_c_try_compile "$LINENO"; then :
6444 xorg_cv_cc_flag_unused_command_line_argument=yes
6445 else
6446 xorg_cv_cc_flag_unused_command_line_argument=no
6447 fi
6448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6449 fi
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6451 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6452 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6453 CFLAGS="$xorg_testset_save_CFLAGS"
6454 fi
6455
6456 found="no"
6457
6458 if test $found = "no" ; then
6459 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6460 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6461 fi
6462
6463 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6464 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6465 fi
6466
6467 CFLAGS="$CFLAGS -Werror=nonnull"
6468
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=nonnull" >&5
6470 $as_echo_n "checking if $CC supports-Werror=nonnull... " >&6; }
6471 cacheid=xorg_cv_cc_flag__Werror_nonnull
6472 if eval \${$cacheid+:} false; then :
6473 $as_echo_n "(cached) " >&6
6474 else
6475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6476 /* end confdefs.h. */
6477 int i;
6478 int
6479 main ()
6480 {
6481
6482 ;
6483 return 0;
6484 }
6485 _ACEOF
6486 if ac_fn_c_try_link "$LINENO"; then :
6487 eval $cacheid=yes
6488 else
6489 eval $cacheid=no
6490 fi
6491 rm -f core conftest.err conftest.$ac_objext \
6492 conftest$ac_exeext conftest.$ac_ext
6493 fi
6494
6495
6496 CFLAGS="$xorg_testset_save_CFLAGS"
6497
6498 eval supported=\$$cacheid
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6500 $as_echo "$supported" >&6; }
6501 if test "$supported" = "yes" ; then
6502 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
6503 found="yes"
6504 fi
6505 fi
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521 xorg_testset_save_CFLAGS="$CFLAGS"
6522
6523 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6524 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6526 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6527 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6528 $as_echo_n "(cached) " >&6
6529 else
6530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6531 /* end confdefs.h. */
6532 int i;
6533 _ACEOF
6534 if ac_fn_c_try_compile "$LINENO"; then :
6535 xorg_cv_cc_flag_unknown_warning_option=yes
6536 else
6537 xorg_cv_cc_flag_unknown_warning_option=no
6538 fi
6539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6540 fi
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6542 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6543 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6544 CFLAGS="$xorg_testset_save_CFLAGS"
6545 fi
6546
6547 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6548 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6549 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6550 fi
6551 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6553 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6554 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6555 $as_echo_n "(cached) " >&6
6556 else
6557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6558 /* end confdefs.h. */
6559 int i;
6560 _ACEOF
6561 if ac_fn_c_try_compile "$LINENO"; then :
6562 xorg_cv_cc_flag_unused_command_line_argument=yes
6563 else
6564 xorg_cv_cc_flag_unused_command_line_argument=no
6565 fi
6566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6567 fi
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6569 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6570 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6571 CFLAGS="$xorg_testset_save_CFLAGS"
6572 fi
6573
6574 found="no"
6575
6576 if test $found = "no" ; then
6577 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6578 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6579 fi
6580
6581 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6582 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6583 fi
6584
6585 CFLAGS="$CFLAGS -Werror=init-self"
6586
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=init-self" >&5
6588 $as_echo_n "checking if $CC supports-Werror=init-self... " >&6; }
6589 cacheid=xorg_cv_cc_flag__Werror_init_self
6590 if eval \${$cacheid+:} false; then :
6591 $as_echo_n "(cached) " >&6
6592 else
6593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6594 /* end confdefs.h. */
6595 int i;
6596 int
6597 main ()
6598 {
6599
6600 ;
6601 return 0;
6602 }
6603 _ACEOF
6604 if ac_fn_c_try_link "$LINENO"; then :
6605 eval $cacheid=yes
6606 else
6607 eval $cacheid=no
6608 fi
6609 rm -f core conftest.err conftest.$ac_objext \
6610 conftest$ac_exeext conftest.$ac_ext
6611 fi
6612
6613
6614 CFLAGS="$xorg_testset_save_CFLAGS"
6615
6616 eval supported=\$$cacheid
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6618 $as_echo "$supported" >&6; }
6619 if test "$supported" = "yes" ; then
6620 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
6621 found="yes"
6622 fi
6623 fi
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639 xorg_testset_save_CFLAGS="$CFLAGS"
6640
6641 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6642 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6644 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6645 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6646 $as_echo_n "(cached) " >&6
6647 else
6648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6649 /* end confdefs.h. */
6650 int i;
6651 _ACEOF
6652 if ac_fn_c_try_compile "$LINENO"; then :
6653 xorg_cv_cc_flag_unknown_warning_option=yes
6654 else
6655 xorg_cv_cc_flag_unknown_warning_option=no
6656 fi
6657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6658 fi
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6660 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6661 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6662 CFLAGS="$xorg_testset_save_CFLAGS"
6663 fi
6664
6665 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6666 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6667 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6668 fi
6669 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6671 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6672 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6673 $as_echo_n "(cached) " >&6
6674 else
6675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6676 /* end confdefs.h. */
6677 int i;
6678 _ACEOF
6679 if ac_fn_c_try_compile "$LINENO"; then :
6680 xorg_cv_cc_flag_unused_command_line_argument=yes
6681 else
6682 xorg_cv_cc_flag_unused_command_line_argument=no
6683 fi
6684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6685 fi
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6687 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6688 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6689 CFLAGS="$xorg_testset_save_CFLAGS"
6690 fi
6691
6692 found="no"
6693
6694 if test $found = "no" ; then
6695 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6696 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6697 fi
6698
6699 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6700 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6701 fi
6702
6703 CFLAGS="$CFLAGS -Werror=main"
6704
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=main" >&5
6706 $as_echo_n "checking if $CC supports-Werror=main... " >&6; }
6707 cacheid=xorg_cv_cc_flag__Werror_main
6708 if eval \${$cacheid+:} false; then :
6709 $as_echo_n "(cached) " >&6
6710 else
6711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6712 /* end confdefs.h. */
6713 int i;
6714 int
6715 main ()
6716 {
6717
6718 ;
6719 return 0;
6720 }
6721 _ACEOF
6722 if ac_fn_c_try_link "$LINENO"; then :
6723 eval $cacheid=yes
6724 else
6725 eval $cacheid=no
6726 fi
6727 rm -f core conftest.err conftest.$ac_objext \
6728 conftest$ac_exeext conftest.$ac_ext
6729 fi
6730
6731
6732 CFLAGS="$xorg_testset_save_CFLAGS"
6733
6734 eval supported=\$$cacheid
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6736 $as_echo "$supported" >&6; }
6737 if test "$supported" = "yes" ; then
6738 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
6739 found="yes"
6740 fi
6741 fi
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757 xorg_testset_save_CFLAGS="$CFLAGS"
6758
6759 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6760 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6762 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6763 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6764 $as_echo_n "(cached) " >&6
6765 else
6766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6767 /* end confdefs.h. */
6768 int i;
6769 _ACEOF
6770 if ac_fn_c_try_compile "$LINENO"; then :
6771 xorg_cv_cc_flag_unknown_warning_option=yes
6772 else
6773 xorg_cv_cc_flag_unknown_warning_option=no
6774 fi
6775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6776 fi
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6778 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6779 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6780 CFLAGS="$xorg_testset_save_CFLAGS"
6781 fi
6782
6783 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6784 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6785 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6786 fi
6787 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6789 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6790 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6791 $as_echo_n "(cached) " >&6
6792 else
6793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6794 /* end confdefs.h. */
6795 int i;
6796 _ACEOF
6797 if ac_fn_c_try_compile "$LINENO"; then :
6798 xorg_cv_cc_flag_unused_command_line_argument=yes
6799 else
6800 xorg_cv_cc_flag_unused_command_line_argument=no
6801 fi
6802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6803 fi
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6805 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6806 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6807 CFLAGS="$xorg_testset_save_CFLAGS"
6808 fi
6809
6810 found="no"
6811
6812 if test $found = "no" ; then
6813 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6814 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6815 fi
6816
6817 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6818 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6819 fi
6820
6821 CFLAGS="$CFLAGS -Werror=missing-braces"
6822
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=missing-braces" >&5
6824 $as_echo_n "checking if $CC supports-Werror=missing-braces... " >&6; }
6825 cacheid=xorg_cv_cc_flag__Werror_missing_braces
6826 if eval \${$cacheid+:} false; then :
6827 $as_echo_n "(cached) " >&6
6828 else
6829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6830 /* end confdefs.h. */
6831 int i;
6832 int
6833 main ()
6834 {
6835
6836 ;
6837 return 0;
6838 }
6839 _ACEOF
6840 if ac_fn_c_try_link "$LINENO"; then :
6841 eval $cacheid=yes
6842 else
6843 eval $cacheid=no
6844 fi
6845 rm -f core conftest.err conftest.$ac_objext \
6846 conftest$ac_exeext conftest.$ac_ext
6847 fi
6848
6849
6850 CFLAGS="$xorg_testset_save_CFLAGS"
6851
6852 eval supported=\$$cacheid
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6854 $as_echo "$supported" >&6; }
6855 if test "$supported" = "yes" ; then
6856 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
6857 found="yes"
6858 fi
6859 fi
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875 xorg_testset_save_CFLAGS="$CFLAGS"
6876
6877 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6878 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6880 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6881 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6882 $as_echo_n "(cached) " >&6
6883 else
6884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6885 /* end confdefs.h. */
6886 int i;
6887 _ACEOF
6888 if ac_fn_c_try_compile "$LINENO"; then :
6889 xorg_cv_cc_flag_unknown_warning_option=yes
6890 else
6891 xorg_cv_cc_flag_unknown_warning_option=no
6892 fi
6893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6894 fi
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6896 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6897 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6898 CFLAGS="$xorg_testset_save_CFLAGS"
6899 fi
6900
6901 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6902 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6903 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6904 fi
6905 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6907 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6908 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6909 $as_echo_n "(cached) " >&6
6910 else
6911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6912 /* end confdefs.h. */
6913 int i;
6914 _ACEOF
6915 if ac_fn_c_try_compile "$LINENO"; then :
6916 xorg_cv_cc_flag_unused_command_line_argument=yes
6917 else
6918 xorg_cv_cc_flag_unused_command_line_argument=no
6919 fi
6920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6921 fi
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6923 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6924 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6925 CFLAGS="$xorg_testset_save_CFLAGS"
6926 fi
6927
6928 found="no"
6929
6930 if test $found = "no" ; then
6931 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6932 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6933 fi
6934
6935 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6936 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6937 fi
6938
6939 CFLAGS="$CFLAGS -Werror=sequence-point"
6940
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=sequence-point" >&5
6942 $as_echo_n "checking if $CC supports-Werror=sequence-point... " >&6; }
6943 cacheid=xorg_cv_cc_flag__Werror_sequence_point
6944 if eval \${$cacheid+:} false; then :
6945 $as_echo_n "(cached) " >&6
6946 else
6947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6948 /* end confdefs.h. */
6949 int i;
6950 int
6951 main ()
6952 {
6953
6954 ;
6955 return 0;
6956 }
6957 _ACEOF
6958 if ac_fn_c_try_link "$LINENO"; then :
6959 eval $cacheid=yes
6960 else
6961 eval $cacheid=no
6962 fi
6963 rm -f core conftest.err conftest.$ac_objext \
6964 conftest$ac_exeext conftest.$ac_ext
6965 fi
6966
6967
6968 CFLAGS="$xorg_testset_save_CFLAGS"
6969
6970 eval supported=\$$cacheid
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6972 $as_echo "$supported" >&6; }
6973 if test "$supported" = "yes" ; then
6974 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
6975 found="yes"
6976 fi
6977 fi
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993 xorg_testset_save_CFLAGS="$CFLAGS"
6994
6995 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6996 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6998 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6999 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7000 $as_echo_n "(cached) " >&6
7001 else
7002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7003 /* end confdefs.h. */
7004 int i;
7005 _ACEOF
7006 if ac_fn_c_try_compile "$LINENO"; then :
7007 xorg_cv_cc_flag_unknown_warning_option=yes
7008 else
7009 xorg_cv_cc_flag_unknown_warning_option=no
7010 fi
7011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7012 fi
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7014 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7015 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7016 CFLAGS="$xorg_testset_save_CFLAGS"
7017 fi
7018
7019 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7020 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7021 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7022 fi
7023 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7025 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7026 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7027 $as_echo_n "(cached) " >&6
7028 else
7029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7030 /* end confdefs.h. */
7031 int i;
7032 _ACEOF
7033 if ac_fn_c_try_compile "$LINENO"; then :
7034 xorg_cv_cc_flag_unused_command_line_argument=yes
7035 else
7036 xorg_cv_cc_flag_unused_command_line_argument=no
7037 fi
7038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7039 fi
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7041 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7042 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7043 CFLAGS="$xorg_testset_save_CFLAGS"
7044 fi
7045
7046 found="no"
7047
7048 if test $found = "no" ; then
7049 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7050 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7051 fi
7052
7053 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7054 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7055 fi
7056
7057 CFLAGS="$CFLAGS -Werror=return-type"
7058
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=return-type" >&5
7060 $as_echo_n "checking if $CC supports-Werror=return-type... " >&6; }
7061 cacheid=xorg_cv_cc_flag__Werror_return_type
7062 if eval \${$cacheid+:} false; then :
7063 $as_echo_n "(cached) " >&6
7064 else
7065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7066 /* end confdefs.h. */
7067 int i;
7068 int
7069 main ()
7070 {
7071
7072 ;
7073 return 0;
7074 }
7075 _ACEOF
7076 if ac_fn_c_try_link "$LINENO"; then :
7077 eval $cacheid=yes
7078 else
7079 eval $cacheid=no
7080 fi
7081 rm -f core conftest.err conftest.$ac_objext \
7082 conftest$ac_exeext conftest.$ac_ext
7083 fi
7084
7085
7086 CFLAGS="$xorg_testset_save_CFLAGS"
7087
7088 eval supported=\$$cacheid
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7090 $as_echo "$supported" >&6; }
7091 if test "$supported" = "yes" ; then
7092 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7093 found="yes"
7094 fi
7095 fi
7096
7097 if test $found = "no" ; then
7098 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7099 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7100 fi
7101
7102 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7103 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7104 fi
7105
7106 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7107
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7109 $as_echo_n "checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7110 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7111 if eval \${$cacheid+:} false; then :
7112 $as_echo_n "(cached) " >&6
7113 else
7114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7115 /* end confdefs.h. */
7116 int i;
7117 int
7118 main ()
7119 {
7120
7121 ;
7122 return 0;
7123 }
7124 _ACEOF
7125 if ac_fn_c_try_link "$LINENO"; then :
7126 eval $cacheid=yes
7127 else
7128 eval $cacheid=no
7129 fi
7130 rm -f core conftest.err conftest.$ac_objext \
7131 conftest$ac_exeext conftest.$ac_ext
7132 fi
7133
7134
7135 CFLAGS="$xorg_testset_save_CFLAGS"
7136
7137 eval supported=\$$cacheid
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7139 $as_echo "$supported" >&6; }
7140 if test "$supported" = "yes" ; then
7141 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7142 found="yes"
7143 fi
7144 fi
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160 xorg_testset_save_CFLAGS="$CFLAGS"
7161
7162 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7163 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7165 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7166 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7167 $as_echo_n "(cached) " >&6
7168 else
7169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7170 /* end confdefs.h. */
7171 int i;
7172 _ACEOF
7173 if ac_fn_c_try_compile "$LINENO"; then :
7174 xorg_cv_cc_flag_unknown_warning_option=yes
7175 else
7176 xorg_cv_cc_flag_unknown_warning_option=no
7177 fi
7178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7179 fi
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7181 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7182 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7183 CFLAGS="$xorg_testset_save_CFLAGS"
7184 fi
7185
7186 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7187 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7188 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7189 fi
7190 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7192 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7193 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7194 $as_echo_n "(cached) " >&6
7195 else
7196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7197 /* end confdefs.h. */
7198 int i;
7199 _ACEOF
7200 if ac_fn_c_try_compile "$LINENO"; then :
7201 xorg_cv_cc_flag_unused_command_line_argument=yes
7202 else
7203 xorg_cv_cc_flag_unused_command_line_argument=no
7204 fi
7205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7206 fi
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7208 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7209 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7210 CFLAGS="$xorg_testset_save_CFLAGS"
7211 fi
7212
7213 found="no"
7214
7215 if test $found = "no" ; then
7216 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7217 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7218 fi
7219
7220 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7221 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7222 fi
7223
7224 CFLAGS="$CFLAGS -Werror=trigraphs"
7225
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=trigraphs" >&5
7227 $as_echo_n "checking if $CC supports-Werror=trigraphs... " >&6; }
7228 cacheid=xorg_cv_cc_flag__Werror_trigraphs
7229 if eval \${$cacheid+:} false; then :
7230 $as_echo_n "(cached) " >&6
7231 else
7232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7233 /* end confdefs.h. */
7234 int i;
7235 int
7236 main ()
7237 {
7238
7239 ;
7240 return 0;
7241 }
7242 _ACEOF
7243 if ac_fn_c_try_link "$LINENO"; then :
7244 eval $cacheid=yes
7245 else
7246 eval $cacheid=no
7247 fi
7248 rm -f core conftest.err conftest.$ac_objext \
7249 conftest$ac_exeext conftest.$ac_ext
7250 fi
7251
7252
7253 CFLAGS="$xorg_testset_save_CFLAGS"
7254
7255 eval supported=\$$cacheid
7256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7257 $as_echo "$supported" >&6; }
7258 if test "$supported" = "yes" ; then
7259 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7260 found="yes"
7261 fi
7262 fi
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278 xorg_testset_save_CFLAGS="$CFLAGS"
7279
7280 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7281 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7283 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7284 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7285 $as_echo_n "(cached) " >&6
7286 else
7287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7288 /* end confdefs.h. */
7289 int i;
7290 _ACEOF
7291 if ac_fn_c_try_compile "$LINENO"; then :
7292 xorg_cv_cc_flag_unknown_warning_option=yes
7293 else
7294 xorg_cv_cc_flag_unknown_warning_option=no
7295 fi
7296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7297 fi
7298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7299 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7300 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7301 CFLAGS="$xorg_testset_save_CFLAGS"
7302 fi
7303
7304 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7305 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7306 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7307 fi
7308 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7310 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7311 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7312 $as_echo_n "(cached) " >&6
7313 else
7314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7315 /* end confdefs.h. */
7316 int i;
7317 _ACEOF
7318 if ac_fn_c_try_compile "$LINENO"; then :
7319 xorg_cv_cc_flag_unused_command_line_argument=yes
7320 else
7321 xorg_cv_cc_flag_unused_command_line_argument=no
7322 fi
7323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7324 fi
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7326 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7327 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7328 CFLAGS="$xorg_testset_save_CFLAGS"
7329 fi
7330
7331 found="no"
7332
7333 if test $found = "no" ; then
7334 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7335 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7336 fi
7337
7338 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7339 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7340 fi
7341
7342 CFLAGS="$CFLAGS -Werror=array-bounds"
7343
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=array-bounds" >&5
7345 $as_echo_n "checking if $CC supports-Werror=array-bounds... " >&6; }
7346 cacheid=xorg_cv_cc_flag__Werror_array_bounds
7347 if eval \${$cacheid+:} false; then :
7348 $as_echo_n "(cached) " >&6
7349 else
7350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7351 /* end confdefs.h. */
7352 int i;
7353 int
7354 main ()
7355 {
7356
7357 ;
7358 return 0;
7359 }
7360 _ACEOF
7361 if ac_fn_c_try_link "$LINENO"; then :
7362 eval $cacheid=yes
7363 else
7364 eval $cacheid=no
7365 fi
7366 rm -f core conftest.err conftest.$ac_objext \
7367 conftest$ac_exeext conftest.$ac_ext
7368 fi
7369
7370
7371 CFLAGS="$xorg_testset_save_CFLAGS"
7372
7373 eval supported=\$$cacheid
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7375 $as_echo "$supported" >&6; }
7376 if test "$supported" = "yes" ; then
7377 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7378 found="yes"
7379 fi
7380 fi
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396 xorg_testset_save_CFLAGS="$CFLAGS"
7397
7398 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7399 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7401 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7402 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7403 $as_echo_n "(cached) " >&6
7404 else
7405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7406 /* end confdefs.h. */
7407 int i;
7408 _ACEOF
7409 if ac_fn_c_try_compile "$LINENO"; then :
7410 xorg_cv_cc_flag_unknown_warning_option=yes
7411 else
7412 xorg_cv_cc_flag_unknown_warning_option=no
7413 fi
7414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7415 fi
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7417 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7418 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7419 CFLAGS="$xorg_testset_save_CFLAGS"
7420 fi
7421
7422 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7423 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7424 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7425 fi
7426 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7428 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7429 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7430 $as_echo_n "(cached) " >&6
7431 else
7432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7433 /* end confdefs.h. */
7434 int i;
7435 _ACEOF
7436 if ac_fn_c_try_compile "$LINENO"; then :
7437 xorg_cv_cc_flag_unused_command_line_argument=yes
7438 else
7439 xorg_cv_cc_flag_unused_command_line_argument=no
7440 fi
7441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7442 fi
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7444 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7445 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7446 CFLAGS="$xorg_testset_save_CFLAGS"
7447 fi
7448
7449 found="no"
7450
7451 if test $found = "no" ; then
7452 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7453 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7454 fi
7455
7456 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7457 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7458 fi
7459
7460 CFLAGS="$CFLAGS -Werror=write-strings"
7461
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=write-strings" >&5
7463 $as_echo_n "checking if $CC supports-Werror=write-strings... " >&6; }
7464 cacheid=xorg_cv_cc_flag__Werror_write_strings
7465 if eval \${$cacheid+:} false; then :
7466 $as_echo_n "(cached) " >&6
7467 else
7468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7469 /* end confdefs.h. */
7470 int i;
7471 int
7472 main ()
7473 {
7474
7475 ;
7476 return 0;
7477 }
7478 _ACEOF
7479 if ac_fn_c_try_link "$LINENO"; then :
7480 eval $cacheid=yes
7481 else
7482 eval $cacheid=no
7483 fi
7484 rm -f core conftest.err conftest.$ac_objext \
7485 conftest$ac_exeext conftest.$ac_ext
7486 fi
7487
7488
7489 CFLAGS="$xorg_testset_save_CFLAGS"
7490
7491 eval supported=\$$cacheid
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7493 $as_echo "$supported" >&6; }
7494 if test "$supported" = "yes" ; then
7495 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
7496 found="yes"
7497 fi
7498 fi
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514 xorg_testset_save_CFLAGS="$CFLAGS"
7515
7516 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7517 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7519 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7520 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7521 $as_echo_n "(cached) " >&6
7522 else
7523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7524 /* end confdefs.h. */
7525 int i;
7526 _ACEOF
7527 if ac_fn_c_try_compile "$LINENO"; then :
7528 xorg_cv_cc_flag_unknown_warning_option=yes
7529 else
7530 xorg_cv_cc_flag_unknown_warning_option=no
7531 fi
7532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7533 fi
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7535 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7536 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7537 CFLAGS="$xorg_testset_save_CFLAGS"
7538 fi
7539
7540 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7541 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7542 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7543 fi
7544 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7546 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7547 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7548 $as_echo_n "(cached) " >&6
7549 else
7550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7551 /* end confdefs.h. */
7552 int i;
7553 _ACEOF
7554 if ac_fn_c_try_compile "$LINENO"; then :
7555 xorg_cv_cc_flag_unused_command_line_argument=yes
7556 else
7557 xorg_cv_cc_flag_unused_command_line_argument=no
7558 fi
7559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7560 fi
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7562 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7563 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7564 CFLAGS="$xorg_testset_save_CFLAGS"
7565 fi
7566
7567 found="no"
7568
7569 if test $found = "no" ; then
7570 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7571 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7572 fi
7573
7574 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7575 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7576 fi
7577
7578 CFLAGS="$CFLAGS -Werror=address"
7579
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=address" >&5
7581 $as_echo_n "checking if $CC supports-Werror=address... " >&6; }
7582 cacheid=xorg_cv_cc_flag__Werror_address
7583 if eval \${$cacheid+:} false; then :
7584 $as_echo_n "(cached) " >&6
7585 else
7586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7587 /* end confdefs.h. */
7588 int i;
7589 int
7590 main ()
7591 {
7592
7593 ;
7594 return 0;
7595 }
7596 _ACEOF
7597 if ac_fn_c_try_link "$LINENO"; then :
7598 eval $cacheid=yes
7599 else
7600 eval $cacheid=no
7601 fi
7602 rm -f core conftest.err conftest.$ac_objext \
7603 conftest$ac_exeext conftest.$ac_ext
7604 fi
7605
7606
7607 CFLAGS="$xorg_testset_save_CFLAGS"
7608
7609 eval supported=\$$cacheid
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7611 $as_echo "$supported" >&6; }
7612 if test "$supported" = "yes" ; then
7613 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
7614 found="yes"
7615 fi
7616 fi
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632 xorg_testset_save_CFLAGS="$CFLAGS"
7633
7634 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7635 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7637 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7638 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7639 $as_echo_n "(cached) " >&6
7640 else
7641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7642 /* end confdefs.h. */
7643 int i;
7644 _ACEOF
7645 if ac_fn_c_try_compile "$LINENO"; then :
7646 xorg_cv_cc_flag_unknown_warning_option=yes
7647 else
7648 xorg_cv_cc_flag_unknown_warning_option=no
7649 fi
7650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7651 fi
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7653 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7654 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7655 CFLAGS="$xorg_testset_save_CFLAGS"
7656 fi
7657
7658 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7659 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7660 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7661 fi
7662 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7664 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7665 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7666 $as_echo_n "(cached) " >&6
7667 else
7668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7669 /* end confdefs.h. */
7670 int i;
7671 _ACEOF
7672 if ac_fn_c_try_compile "$LINENO"; then :
7673 xorg_cv_cc_flag_unused_command_line_argument=yes
7674 else
7675 xorg_cv_cc_flag_unused_command_line_argument=no
7676 fi
7677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7678 fi
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7680 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7681 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7682 CFLAGS="$xorg_testset_save_CFLAGS"
7683 fi
7684
7685 found="no"
7686
7687 if test $found = "no" ; then
7688 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7689 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7690 fi
7691
7692 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7693 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7694 fi
7695
7696 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
7697
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=int-to-pointer-cast" >&5
7699 $as_echo_n "checking if $CC supports-Werror=int-to-pointer-cast... " >&6; }
7700 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
7701 if eval \${$cacheid+:} false; then :
7702 $as_echo_n "(cached) " >&6
7703 else
7704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7705 /* end confdefs.h. */
7706 int i;
7707 int
7708 main ()
7709 {
7710
7711 ;
7712 return 0;
7713 }
7714 _ACEOF
7715 if ac_fn_c_try_link "$LINENO"; then :
7716 eval $cacheid=yes
7717 else
7718 eval $cacheid=no
7719 fi
7720 rm -f core conftest.err conftest.$ac_objext \
7721 conftest$ac_exeext conftest.$ac_ext
7722 fi
7723
7724
7725 CFLAGS="$xorg_testset_save_CFLAGS"
7726
7727 eval supported=\$$cacheid
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7729 $as_echo "$supported" >&6; }
7730 if test "$supported" = "yes" ; then
7731 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
7732 found="yes"
7733 fi
7734 fi
7735
7736 if test $found = "no" ; then
7737 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7738 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7739 fi
7740
7741 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7742 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7743 fi
7744
7745 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
7746
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION" >&5
7748 $as_echo_n "checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
7749 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
7750 if eval \${$cacheid+:} false; then :
7751 $as_echo_n "(cached) " >&6
7752 else
7753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7754 /* end confdefs.h. */
7755 int i;
7756 int
7757 main ()
7758 {
7759
7760 ;
7761 return 0;
7762 }
7763 _ACEOF
7764 if ac_fn_c_try_link "$LINENO"; then :
7765 eval $cacheid=yes
7766 else
7767 eval $cacheid=no
7768 fi
7769 rm -f core conftest.err conftest.$ac_objext \
7770 conftest$ac_exeext conftest.$ac_ext
7771 fi
7772
7773
7774 CFLAGS="$xorg_testset_save_CFLAGS"
7775
7776 eval supported=\$$cacheid
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7778 $as_echo "$supported" >&6; }
7779 if test "$supported" = "yes" ; then
7780 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
7781 found="yes"
7782 fi
7783 fi
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799 xorg_testset_save_CFLAGS="$CFLAGS"
7800
7801 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7802 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7804 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7805 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7806 $as_echo_n "(cached) " >&6
7807 else
7808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7809 /* end confdefs.h. */
7810 int i;
7811 _ACEOF
7812 if ac_fn_c_try_compile "$LINENO"; then :
7813 xorg_cv_cc_flag_unknown_warning_option=yes
7814 else
7815 xorg_cv_cc_flag_unknown_warning_option=no
7816 fi
7817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7818 fi
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7820 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7821 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7822 CFLAGS="$xorg_testset_save_CFLAGS"
7823 fi
7824
7825 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7826 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7827 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7828 fi
7829 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7831 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7832 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7833 $as_echo_n "(cached) " >&6
7834 else
7835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7836 /* end confdefs.h. */
7837 int i;
7838 _ACEOF
7839 if ac_fn_c_try_compile "$LINENO"; then :
7840 xorg_cv_cc_flag_unused_command_line_argument=yes
7841 else
7842 xorg_cv_cc_flag_unused_command_line_argument=no
7843 fi
7844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7845 fi
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7847 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7848 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7849 CFLAGS="$xorg_testset_save_CFLAGS"
7850 fi
7851
7852 found="no"
7853
7854 if test $found = "no" ; then
7855 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7856 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7857 fi
7858
7859 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7860 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7861 fi
7862
7863 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
7864
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=pointer-to-int-cast" >&5
7866 $as_echo_n "checking if $CC supports-Werror=pointer-to-int-cast... " >&6; }
7867 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
7868 if eval \${$cacheid+:} false; then :
7869 $as_echo_n "(cached) " >&6
7870 else
7871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7872 /* end confdefs.h. */
7873 int i;
7874 int
7875 main ()
7876 {
7877
7878 ;
7879 return 0;
7880 }
7881 _ACEOF
7882 if ac_fn_c_try_link "$LINENO"; then :
7883 eval $cacheid=yes
7884 else
7885 eval $cacheid=no
7886 fi
7887 rm -f core conftest.err conftest.$ac_objext \
7888 conftest$ac_exeext conftest.$ac_ext
7889 fi
7890
7891
7892 CFLAGS="$xorg_testset_save_CFLAGS"
7893
7894 eval supported=\$$cacheid
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7896 $as_echo "$supported" >&6; }
7897 if test "$supported" = "yes" ; then
7898 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
7899 found="yes"
7900 fi
7901 fi
7902
7903 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
7904 else
7905 { $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
7906 $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;}
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920 xorg_testset_save_CFLAGS="$CFLAGS"
7921
7922 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7923 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7925 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7926 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7927 $as_echo_n "(cached) " >&6
7928 else
7929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7930 /* end confdefs.h. */
7931 int i;
7932 _ACEOF
7933 if ac_fn_c_try_compile "$LINENO"; then :
7934 xorg_cv_cc_flag_unknown_warning_option=yes
7935 else
7936 xorg_cv_cc_flag_unknown_warning_option=no
7937 fi
7938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7939 fi
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7941 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7942 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7943 CFLAGS="$xorg_testset_save_CFLAGS"
7944 fi
7945
7946 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7947 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7948 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7949 fi
7950 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7952 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7953 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7954 $as_echo_n "(cached) " >&6
7955 else
7956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7957 /* end confdefs.h. */
7958 int i;
7959 _ACEOF
7960 if ac_fn_c_try_compile "$LINENO"; then :
7961 xorg_cv_cc_flag_unused_command_line_argument=yes
7962 else
7963 xorg_cv_cc_flag_unused_command_line_argument=no
7964 fi
7965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7966 fi
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7968 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7969 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7970 CFLAGS="$xorg_testset_save_CFLAGS"
7971 fi
7972
7973 found="no"
7974
7975 if test $found = "no" ; then
7976 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7977 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7978 fi
7979
7980 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7981 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7982 fi
7983
7984 CFLAGS="$CFLAGS -Wimplicit"
7985
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wimplicit" >&5
7987 $as_echo_n "checking if $CC supports-Wimplicit... " >&6; }
7988 cacheid=xorg_cv_cc_flag__Wimplicit
7989 if eval \${$cacheid+:} false; then :
7990 $as_echo_n "(cached) " >&6
7991 else
7992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7993 /* end confdefs.h. */
7994 int i;
7995 int
7996 main ()
7997 {
7998
7999 ;
8000 return 0;
8001 }
8002 _ACEOF
8003 if ac_fn_c_try_link "$LINENO"; then :
8004 eval $cacheid=yes
8005 else
8006 eval $cacheid=no
8007 fi
8008 rm -f core conftest.err conftest.$ac_objext \
8009 conftest$ac_exeext conftest.$ac_ext
8010 fi
8011
8012
8013 CFLAGS="$xorg_testset_save_CFLAGS"
8014
8015 eval supported=\$$cacheid
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8017 $as_echo "$supported" >&6; }
8018 if test "$supported" = "yes" ; then
8019 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8020 found="yes"
8021 fi
8022 fi
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038 xorg_testset_save_CFLAGS="$CFLAGS"
8039
8040 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8041 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8043 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8044 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8045 $as_echo_n "(cached) " >&6
8046 else
8047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8048 /* end confdefs.h. */
8049 int i;
8050 _ACEOF
8051 if ac_fn_c_try_compile "$LINENO"; then :
8052 xorg_cv_cc_flag_unknown_warning_option=yes
8053 else
8054 xorg_cv_cc_flag_unknown_warning_option=no
8055 fi
8056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8057 fi
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8059 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8060 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8061 CFLAGS="$xorg_testset_save_CFLAGS"
8062 fi
8063
8064 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8065 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8066 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8067 fi
8068 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8070 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8071 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8072 $as_echo_n "(cached) " >&6
8073 else
8074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8075 /* end confdefs.h. */
8076 int i;
8077 _ACEOF
8078 if ac_fn_c_try_compile "$LINENO"; then :
8079 xorg_cv_cc_flag_unused_command_line_argument=yes
8080 else
8081 xorg_cv_cc_flag_unused_command_line_argument=no
8082 fi
8083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8084 fi
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8086 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8087 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8088 CFLAGS="$xorg_testset_save_CFLAGS"
8089 fi
8090
8091 found="no"
8092
8093 if test $found = "no" ; then
8094 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8095 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8096 fi
8097
8098 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8099 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8100 fi
8101
8102 CFLAGS="$CFLAGS -Wnonnull"
8103
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnonnull" >&5
8105 $as_echo_n "checking if $CC supports-Wnonnull... " >&6; }
8106 cacheid=xorg_cv_cc_flag__Wnonnull
8107 if eval \${$cacheid+:} false; then :
8108 $as_echo_n "(cached) " >&6
8109 else
8110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8111 /* end confdefs.h. */
8112 int i;
8113 int
8114 main ()
8115 {
8116
8117 ;
8118 return 0;
8119 }
8120 _ACEOF
8121 if ac_fn_c_try_link "$LINENO"; then :
8122 eval $cacheid=yes
8123 else
8124 eval $cacheid=no
8125 fi
8126 rm -f core conftest.err conftest.$ac_objext \
8127 conftest$ac_exeext conftest.$ac_ext
8128 fi
8129
8130
8131 CFLAGS="$xorg_testset_save_CFLAGS"
8132
8133 eval supported=\$$cacheid
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8135 $as_echo "$supported" >&6; }
8136 if test "$supported" = "yes" ; then
8137 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8138 found="yes"
8139 fi
8140 fi
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156 xorg_testset_save_CFLAGS="$CFLAGS"
8157
8158 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8159 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8161 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8162 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8163 $as_echo_n "(cached) " >&6
8164 else
8165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8166 /* end confdefs.h. */
8167 int i;
8168 _ACEOF
8169 if ac_fn_c_try_compile "$LINENO"; then :
8170 xorg_cv_cc_flag_unknown_warning_option=yes
8171 else
8172 xorg_cv_cc_flag_unknown_warning_option=no
8173 fi
8174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8175 fi
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8177 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8178 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8179 CFLAGS="$xorg_testset_save_CFLAGS"
8180 fi
8181
8182 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8183 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8184 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8185 fi
8186 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8188 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8189 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8190 $as_echo_n "(cached) " >&6
8191 else
8192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8193 /* end confdefs.h. */
8194 int i;
8195 _ACEOF
8196 if ac_fn_c_try_compile "$LINENO"; then :
8197 xorg_cv_cc_flag_unused_command_line_argument=yes
8198 else
8199 xorg_cv_cc_flag_unused_command_line_argument=no
8200 fi
8201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8202 fi
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8204 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8205 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8206 CFLAGS="$xorg_testset_save_CFLAGS"
8207 fi
8208
8209 found="no"
8210
8211 if test $found = "no" ; then
8212 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8213 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8214 fi
8215
8216 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8217 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8218 fi
8219
8220 CFLAGS="$CFLAGS -Winit-self"
8221
8222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Winit-self" >&5
8223 $as_echo_n "checking if $CC supports-Winit-self... " >&6; }
8224 cacheid=xorg_cv_cc_flag__Winit_self
8225 if eval \${$cacheid+:} false; then :
8226 $as_echo_n "(cached) " >&6
8227 else
8228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8229 /* end confdefs.h. */
8230 int i;
8231 int
8232 main ()
8233 {
8234
8235 ;
8236 return 0;
8237 }
8238 _ACEOF
8239 if ac_fn_c_try_link "$LINENO"; then :
8240 eval $cacheid=yes
8241 else
8242 eval $cacheid=no
8243 fi
8244 rm -f core conftest.err conftest.$ac_objext \
8245 conftest$ac_exeext conftest.$ac_ext
8246 fi
8247
8248
8249 CFLAGS="$xorg_testset_save_CFLAGS"
8250
8251 eval supported=\$$cacheid
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8253 $as_echo "$supported" >&6; }
8254 if test "$supported" = "yes" ; then
8255 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8256 found="yes"
8257 fi
8258 fi
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274 xorg_testset_save_CFLAGS="$CFLAGS"
8275
8276 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8277 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8279 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8280 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8281 $as_echo_n "(cached) " >&6
8282 else
8283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8284 /* end confdefs.h. */
8285 int i;
8286 _ACEOF
8287 if ac_fn_c_try_compile "$LINENO"; then :
8288 xorg_cv_cc_flag_unknown_warning_option=yes
8289 else
8290 xorg_cv_cc_flag_unknown_warning_option=no
8291 fi
8292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8293 fi
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8295 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8296 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8297 CFLAGS="$xorg_testset_save_CFLAGS"
8298 fi
8299
8300 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8301 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8302 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8303 fi
8304 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8306 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8307 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8308 $as_echo_n "(cached) " >&6
8309 else
8310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8311 /* end confdefs.h. */
8312 int i;
8313 _ACEOF
8314 if ac_fn_c_try_compile "$LINENO"; then :
8315 xorg_cv_cc_flag_unused_command_line_argument=yes
8316 else
8317 xorg_cv_cc_flag_unused_command_line_argument=no
8318 fi
8319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8320 fi
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8322 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8323 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8324 CFLAGS="$xorg_testset_save_CFLAGS"
8325 fi
8326
8327 found="no"
8328
8329 if test $found = "no" ; then
8330 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8331 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8332 fi
8333
8334 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8335 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8336 fi
8337
8338 CFLAGS="$CFLAGS -Wmain"
8339
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmain" >&5
8341 $as_echo_n "checking if $CC supports-Wmain... " >&6; }
8342 cacheid=xorg_cv_cc_flag__Wmain
8343 if eval \${$cacheid+:} false; then :
8344 $as_echo_n "(cached) " >&6
8345 else
8346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8347 /* end confdefs.h. */
8348 int i;
8349 int
8350 main ()
8351 {
8352
8353 ;
8354 return 0;
8355 }
8356 _ACEOF
8357 if ac_fn_c_try_link "$LINENO"; then :
8358 eval $cacheid=yes
8359 else
8360 eval $cacheid=no
8361 fi
8362 rm -f core conftest.err conftest.$ac_objext \
8363 conftest$ac_exeext conftest.$ac_ext
8364 fi
8365
8366
8367 CFLAGS="$xorg_testset_save_CFLAGS"
8368
8369 eval supported=\$$cacheid
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8371 $as_echo "$supported" >&6; }
8372 if test "$supported" = "yes" ; then
8373 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8374 found="yes"
8375 fi
8376 fi
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392 xorg_testset_save_CFLAGS="$CFLAGS"
8393
8394 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8395 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8397 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8398 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8399 $as_echo_n "(cached) " >&6
8400 else
8401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8402 /* end confdefs.h. */
8403 int i;
8404 _ACEOF
8405 if ac_fn_c_try_compile "$LINENO"; then :
8406 xorg_cv_cc_flag_unknown_warning_option=yes
8407 else
8408 xorg_cv_cc_flag_unknown_warning_option=no
8409 fi
8410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8411 fi
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8413 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8414 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8415 CFLAGS="$xorg_testset_save_CFLAGS"
8416 fi
8417
8418 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8419 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8420 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8421 fi
8422 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8424 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8425 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8426 $as_echo_n "(cached) " >&6
8427 else
8428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8429 /* end confdefs.h. */
8430 int i;
8431 _ACEOF
8432 if ac_fn_c_try_compile "$LINENO"; then :
8433 xorg_cv_cc_flag_unused_command_line_argument=yes
8434 else
8435 xorg_cv_cc_flag_unused_command_line_argument=no
8436 fi
8437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8438 fi
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8440 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8441 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8442 CFLAGS="$xorg_testset_save_CFLAGS"
8443 fi
8444
8445 found="no"
8446
8447 if test $found = "no" ; then
8448 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8449 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8450 fi
8451
8452 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8453 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8454 fi
8455
8456 CFLAGS="$CFLAGS -Wmissing-braces"
8457
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-braces" >&5
8459 $as_echo_n "checking if $CC supports-Wmissing-braces... " >&6; }
8460 cacheid=xorg_cv_cc_flag__Wmissing_braces
8461 if eval \${$cacheid+:} false; then :
8462 $as_echo_n "(cached) " >&6
8463 else
8464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8465 /* end confdefs.h. */
8466 int i;
8467 int
8468 main ()
8469 {
8470
8471 ;
8472 return 0;
8473 }
8474 _ACEOF
8475 if ac_fn_c_try_link "$LINENO"; then :
8476 eval $cacheid=yes
8477 else
8478 eval $cacheid=no
8479 fi
8480 rm -f core conftest.err conftest.$ac_objext \
8481 conftest$ac_exeext conftest.$ac_ext
8482 fi
8483
8484
8485 CFLAGS="$xorg_testset_save_CFLAGS"
8486
8487 eval supported=\$$cacheid
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8489 $as_echo "$supported" >&6; }
8490 if test "$supported" = "yes" ; then
8491 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
8492 found="yes"
8493 fi
8494 fi
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510 xorg_testset_save_CFLAGS="$CFLAGS"
8511
8512 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8513 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8515 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8516 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8517 $as_echo_n "(cached) " >&6
8518 else
8519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8520 /* end confdefs.h. */
8521 int i;
8522 _ACEOF
8523 if ac_fn_c_try_compile "$LINENO"; then :
8524 xorg_cv_cc_flag_unknown_warning_option=yes
8525 else
8526 xorg_cv_cc_flag_unknown_warning_option=no
8527 fi
8528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8529 fi
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8531 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8532 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8533 CFLAGS="$xorg_testset_save_CFLAGS"
8534 fi
8535
8536 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8537 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8538 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8539 fi
8540 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8542 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8543 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8544 $as_echo_n "(cached) " >&6
8545 else
8546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8547 /* end confdefs.h. */
8548 int i;
8549 _ACEOF
8550 if ac_fn_c_try_compile "$LINENO"; then :
8551 xorg_cv_cc_flag_unused_command_line_argument=yes
8552 else
8553 xorg_cv_cc_flag_unused_command_line_argument=no
8554 fi
8555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8556 fi
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8558 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8559 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8560 CFLAGS="$xorg_testset_save_CFLAGS"
8561 fi
8562
8563 found="no"
8564
8565 if test $found = "no" ; then
8566 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8567 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8568 fi
8569
8570 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8571 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8572 fi
8573
8574 CFLAGS="$CFLAGS -Wsequence-point"
8575
8576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wsequence-point" >&5
8577 $as_echo_n "checking if $CC supports-Wsequence-point... " >&6; }
8578 cacheid=xorg_cv_cc_flag__Wsequence_point
8579 if eval \${$cacheid+:} false; then :
8580 $as_echo_n "(cached) " >&6
8581 else
8582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8583 /* end confdefs.h. */
8584 int i;
8585 int
8586 main ()
8587 {
8588
8589 ;
8590 return 0;
8591 }
8592 _ACEOF
8593 if ac_fn_c_try_link "$LINENO"; then :
8594 eval $cacheid=yes
8595 else
8596 eval $cacheid=no
8597 fi
8598 rm -f core conftest.err conftest.$ac_objext \
8599 conftest$ac_exeext conftest.$ac_ext
8600 fi
8601
8602
8603 CFLAGS="$xorg_testset_save_CFLAGS"
8604
8605 eval supported=\$$cacheid
8606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8607 $as_echo "$supported" >&6; }
8608 if test "$supported" = "yes" ; then
8609 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
8610 found="yes"
8611 fi
8612 fi
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628 xorg_testset_save_CFLAGS="$CFLAGS"
8629
8630 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8631 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8633 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8634 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8635 $as_echo_n "(cached) " >&6
8636 else
8637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8638 /* end confdefs.h. */
8639 int i;
8640 _ACEOF
8641 if ac_fn_c_try_compile "$LINENO"; then :
8642 xorg_cv_cc_flag_unknown_warning_option=yes
8643 else
8644 xorg_cv_cc_flag_unknown_warning_option=no
8645 fi
8646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8647 fi
8648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8649 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8650 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8651 CFLAGS="$xorg_testset_save_CFLAGS"
8652 fi
8653
8654 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8655 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8656 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8657 fi
8658 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8660 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8661 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8662 $as_echo_n "(cached) " >&6
8663 else
8664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8665 /* end confdefs.h. */
8666 int i;
8667 _ACEOF
8668 if ac_fn_c_try_compile "$LINENO"; then :
8669 xorg_cv_cc_flag_unused_command_line_argument=yes
8670 else
8671 xorg_cv_cc_flag_unused_command_line_argument=no
8672 fi
8673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8674 fi
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8676 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8677 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8678 CFLAGS="$xorg_testset_save_CFLAGS"
8679 fi
8680
8681 found="no"
8682
8683 if test $found = "no" ; then
8684 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8685 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8686 fi
8687
8688 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8689 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8690 fi
8691
8692 CFLAGS="$CFLAGS -Wreturn-type"
8693
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wreturn-type" >&5
8695 $as_echo_n "checking if $CC supports-Wreturn-type... " >&6; }
8696 cacheid=xorg_cv_cc_flag__Wreturn_type
8697 if eval \${$cacheid+:} false; then :
8698 $as_echo_n "(cached) " >&6
8699 else
8700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8701 /* end confdefs.h. */
8702 int i;
8703 int
8704 main ()
8705 {
8706
8707 ;
8708 return 0;
8709 }
8710 _ACEOF
8711 if ac_fn_c_try_link "$LINENO"; then :
8712 eval $cacheid=yes
8713 else
8714 eval $cacheid=no
8715 fi
8716 rm -f core conftest.err conftest.$ac_objext \
8717 conftest$ac_exeext conftest.$ac_ext
8718 fi
8719
8720
8721 CFLAGS="$xorg_testset_save_CFLAGS"
8722
8723 eval supported=\$$cacheid
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8725 $as_echo "$supported" >&6; }
8726 if test "$supported" = "yes" ; then
8727 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
8728 found="yes"
8729 fi
8730 fi
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746 xorg_testset_save_CFLAGS="$CFLAGS"
8747
8748 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8749 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8751 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8752 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8753 $as_echo_n "(cached) " >&6
8754 else
8755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8756 /* end confdefs.h. */
8757 int i;
8758 _ACEOF
8759 if ac_fn_c_try_compile "$LINENO"; then :
8760 xorg_cv_cc_flag_unknown_warning_option=yes
8761 else
8762 xorg_cv_cc_flag_unknown_warning_option=no
8763 fi
8764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8765 fi
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8767 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8768 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8769 CFLAGS="$xorg_testset_save_CFLAGS"
8770 fi
8771
8772 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8773 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8774 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8775 fi
8776 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8778 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8779 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8780 $as_echo_n "(cached) " >&6
8781 else
8782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8783 /* end confdefs.h. */
8784 int i;
8785 _ACEOF
8786 if ac_fn_c_try_compile "$LINENO"; then :
8787 xorg_cv_cc_flag_unused_command_line_argument=yes
8788 else
8789 xorg_cv_cc_flag_unused_command_line_argument=no
8790 fi
8791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8792 fi
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8794 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8795 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8796 CFLAGS="$xorg_testset_save_CFLAGS"
8797 fi
8798
8799 found="no"
8800
8801 if test $found = "no" ; then
8802 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8803 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8804 fi
8805
8806 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8807 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8808 fi
8809
8810 CFLAGS="$CFLAGS -Wtrigraphs"
8811
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wtrigraphs" >&5
8813 $as_echo_n "checking if $CC supports-Wtrigraphs... " >&6; }
8814 cacheid=xorg_cv_cc_flag__Wtrigraphs
8815 if eval \${$cacheid+:} false; then :
8816 $as_echo_n "(cached) " >&6
8817 else
8818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8819 /* end confdefs.h. */
8820 int i;
8821 int
8822 main ()
8823 {
8824
8825 ;
8826 return 0;
8827 }
8828 _ACEOF
8829 if ac_fn_c_try_link "$LINENO"; then :
8830 eval $cacheid=yes
8831 else
8832 eval $cacheid=no
8833 fi
8834 rm -f core conftest.err conftest.$ac_objext \
8835 conftest$ac_exeext conftest.$ac_ext
8836 fi
8837
8838
8839 CFLAGS="$xorg_testset_save_CFLAGS"
8840
8841 eval supported=\$$cacheid
8842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8843 $as_echo "$supported" >&6; }
8844 if test "$supported" = "yes" ; then
8845 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
8846 found="yes"
8847 fi
8848 fi
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864 xorg_testset_save_CFLAGS="$CFLAGS"
8865
8866 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8867 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8869 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8870 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8871 $as_echo_n "(cached) " >&6
8872 else
8873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8874 /* end confdefs.h. */
8875 int i;
8876 _ACEOF
8877 if ac_fn_c_try_compile "$LINENO"; then :
8878 xorg_cv_cc_flag_unknown_warning_option=yes
8879 else
8880 xorg_cv_cc_flag_unknown_warning_option=no
8881 fi
8882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8883 fi
8884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8885 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8886 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8887 CFLAGS="$xorg_testset_save_CFLAGS"
8888 fi
8889
8890 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8891 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8892 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8893 fi
8894 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8896 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8897 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8898 $as_echo_n "(cached) " >&6
8899 else
8900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8901 /* end confdefs.h. */
8902 int i;
8903 _ACEOF
8904 if ac_fn_c_try_compile "$LINENO"; then :
8905 xorg_cv_cc_flag_unused_command_line_argument=yes
8906 else
8907 xorg_cv_cc_flag_unused_command_line_argument=no
8908 fi
8909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8910 fi
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8912 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8913 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8914 CFLAGS="$xorg_testset_save_CFLAGS"
8915 fi
8916
8917 found="no"
8918
8919 if test $found = "no" ; then
8920 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8921 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8922 fi
8923
8924 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8925 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8926 fi
8927
8928 CFLAGS="$CFLAGS -Warray-bounds"
8929
8930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Warray-bounds" >&5
8931 $as_echo_n "checking if $CC supports-Warray-bounds... " >&6; }
8932 cacheid=xorg_cv_cc_flag__Warray_bounds
8933 if eval \${$cacheid+:} false; then :
8934 $as_echo_n "(cached) " >&6
8935 else
8936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8937 /* end confdefs.h. */
8938 int i;
8939 int
8940 main ()
8941 {
8942
8943 ;
8944 return 0;
8945 }
8946 _ACEOF
8947 if ac_fn_c_try_link "$LINENO"; then :
8948 eval $cacheid=yes
8949 else
8950 eval $cacheid=no
8951 fi
8952 rm -f core conftest.err conftest.$ac_objext \
8953 conftest$ac_exeext conftest.$ac_ext
8954 fi
8955
8956
8957 CFLAGS="$xorg_testset_save_CFLAGS"
8958
8959 eval supported=\$$cacheid
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8961 $as_echo "$supported" >&6; }
8962 if test "$supported" = "yes" ; then
8963 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
8964 found="yes"
8965 fi
8966 fi
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982 xorg_testset_save_CFLAGS="$CFLAGS"
8983
8984 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8985 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8987 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8988 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8989 $as_echo_n "(cached) " >&6
8990 else
8991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8992 /* end confdefs.h. */
8993 int i;
8994 _ACEOF
8995 if ac_fn_c_try_compile "$LINENO"; then :
8996 xorg_cv_cc_flag_unknown_warning_option=yes
8997 else
8998 xorg_cv_cc_flag_unknown_warning_option=no
8999 fi
9000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9001 fi
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9003 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9004 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9005 CFLAGS="$xorg_testset_save_CFLAGS"
9006 fi
9007
9008 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9009 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9010 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9011 fi
9012 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9014 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9015 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9016 $as_echo_n "(cached) " >&6
9017 else
9018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9019 /* end confdefs.h. */
9020 int i;
9021 _ACEOF
9022 if ac_fn_c_try_compile "$LINENO"; then :
9023 xorg_cv_cc_flag_unused_command_line_argument=yes
9024 else
9025 xorg_cv_cc_flag_unused_command_line_argument=no
9026 fi
9027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9028 fi
9029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9030 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9031 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9032 CFLAGS="$xorg_testset_save_CFLAGS"
9033 fi
9034
9035 found="no"
9036
9037 if test $found = "no" ; then
9038 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9039 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9040 fi
9041
9042 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9043 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9044 fi
9045
9046 CFLAGS="$CFLAGS -Wwrite-strings"
9047
9048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wwrite-strings" >&5
9049 $as_echo_n "checking if $CC supports-Wwrite-strings... " >&6; }
9050 cacheid=xorg_cv_cc_flag__Wwrite_strings
9051 if eval \${$cacheid+:} false; then :
9052 $as_echo_n "(cached) " >&6
9053 else
9054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9055 /* end confdefs.h. */
9056 int i;
9057 int
9058 main ()
9059 {
9060
9061 ;
9062 return 0;
9063 }
9064 _ACEOF
9065 if ac_fn_c_try_link "$LINENO"; then :
9066 eval $cacheid=yes
9067 else
9068 eval $cacheid=no
9069 fi
9070 rm -f core conftest.err conftest.$ac_objext \
9071 conftest$ac_exeext conftest.$ac_ext
9072 fi
9073
9074
9075 CFLAGS="$xorg_testset_save_CFLAGS"
9076
9077 eval supported=\$$cacheid
9078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9079 $as_echo "$supported" >&6; }
9080 if test "$supported" = "yes" ; then
9081 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9082 found="yes"
9083 fi
9084 fi
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100 xorg_testset_save_CFLAGS="$CFLAGS"
9101
9102 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9103 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9105 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9106 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9107 $as_echo_n "(cached) " >&6
9108 else
9109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9110 /* end confdefs.h. */
9111 int i;
9112 _ACEOF
9113 if ac_fn_c_try_compile "$LINENO"; then :
9114 xorg_cv_cc_flag_unknown_warning_option=yes
9115 else
9116 xorg_cv_cc_flag_unknown_warning_option=no
9117 fi
9118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9119 fi
9120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9121 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9122 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9123 CFLAGS="$xorg_testset_save_CFLAGS"
9124 fi
9125
9126 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9127 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9128 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9129 fi
9130 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9132 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9133 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9134 $as_echo_n "(cached) " >&6
9135 else
9136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9137 /* end confdefs.h. */
9138 int i;
9139 _ACEOF
9140 if ac_fn_c_try_compile "$LINENO"; then :
9141 xorg_cv_cc_flag_unused_command_line_argument=yes
9142 else
9143 xorg_cv_cc_flag_unused_command_line_argument=no
9144 fi
9145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9146 fi
9147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9148 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9149 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9150 CFLAGS="$xorg_testset_save_CFLAGS"
9151 fi
9152
9153 found="no"
9154
9155 if test $found = "no" ; then
9156 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9157 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9158 fi
9159
9160 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9161 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9162 fi
9163
9164 CFLAGS="$CFLAGS -Waddress"
9165
9166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Waddress" >&5
9167 $as_echo_n "checking if $CC supports-Waddress... " >&6; }
9168 cacheid=xorg_cv_cc_flag__Waddress
9169 if eval \${$cacheid+:} false; then :
9170 $as_echo_n "(cached) " >&6
9171 else
9172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9173 /* end confdefs.h. */
9174 int i;
9175 int
9176 main ()
9177 {
9178
9179 ;
9180 return 0;
9181 }
9182 _ACEOF
9183 if ac_fn_c_try_link "$LINENO"; then :
9184 eval $cacheid=yes
9185 else
9186 eval $cacheid=no
9187 fi
9188 rm -f core conftest.err conftest.$ac_objext \
9189 conftest$ac_exeext conftest.$ac_ext
9190 fi
9191
9192
9193 CFLAGS="$xorg_testset_save_CFLAGS"
9194
9195 eval supported=\$$cacheid
9196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9197 $as_echo "$supported" >&6; }
9198 if test "$supported" = "yes" ; then
9199 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9200 found="yes"
9201 fi
9202 fi
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218 xorg_testset_save_CFLAGS="$CFLAGS"
9219
9220 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9221 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9223 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9224 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9225 $as_echo_n "(cached) " >&6
9226 else
9227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9228 /* end confdefs.h. */
9229 int i;
9230 _ACEOF
9231 if ac_fn_c_try_compile "$LINENO"; then :
9232 xorg_cv_cc_flag_unknown_warning_option=yes
9233 else
9234 xorg_cv_cc_flag_unknown_warning_option=no
9235 fi
9236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9237 fi
9238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9239 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9240 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9241 CFLAGS="$xorg_testset_save_CFLAGS"
9242 fi
9243
9244 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9245 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9246 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9247 fi
9248 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9250 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9251 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9252 $as_echo_n "(cached) " >&6
9253 else
9254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9255 /* end confdefs.h. */
9256 int i;
9257 _ACEOF
9258 if ac_fn_c_try_compile "$LINENO"; then :
9259 xorg_cv_cc_flag_unused_command_line_argument=yes
9260 else
9261 xorg_cv_cc_flag_unused_command_line_argument=no
9262 fi
9263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9264 fi
9265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9266 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9267 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9268 CFLAGS="$xorg_testset_save_CFLAGS"
9269 fi
9270
9271 found="no"
9272
9273 if test $found = "no" ; then
9274 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9275 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9276 fi
9277
9278 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9279 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9280 fi
9281
9282 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9283
9284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wint-to-pointer-cast" >&5
9285 $as_echo_n "checking if $CC supports-Wint-to-pointer-cast... " >&6; }
9286 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9287 if eval \${$cacheid+:} false; then :
9288 $as_echo_n "(cached) " >&6
9289 else
9290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9291 /* end confdefs.h. */
9292 int i;
9293 int
9294 main ()
9295 {
9296
9297 ;
9298 return 0;
9299 }
9300 _ACEOF
9301 if ac_fn_c_try_link "$LINENO"; then :
9302 eval $cacheid=yes
9303 else
9304 eval $cacheid=no
9305 fi
9306 rm -f core conftest.err conftest.$ac_objext \
9307 conftest$ac_exeext conftest.$ac_ext
9308 fi
9309
9310
9311 CFLAGS="$xorg_testset_save_CFLAGS"
9312
9313 eval supported=\$$cacheid
9314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9315 $as_echo "$supported" >&6; }
9316 if test "$supported" = "yes" ; then
9317 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9318 found="yes"
9319 fi
9320 fi
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336 xorg_testset_save_CFLAGS="$CFLAGS"
9337
9338 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9339 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9341 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9342 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9343 $as_echo_n "(cached) " >&6
9344 else
9345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9346 /* end confdefs.h. */
9347 int i;
9348 _ACEOF
9349 if ac_fn_c_try_compile "$LINENO"; then :
9350 xorg_cv_cc_flag_unknown_warning_option=yes
9351 else
9352 xorg_cv_cc_flag_unknown_warning_option=no
9353 fi
9354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9355 fi
9356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9357 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9358 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9359 CFLAGS="$xorg_testset_save_CFLAGS"
9360 fi
9361
9362 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9363 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9364 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9365 fi
9366 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9368 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9369 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9370 $as_echo_n "(cached) " >&6
9371 else
9372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9373 /* end confdefs.h. */
9374 int i;
9375 _ACEOF
9376 if ac_fn_c_try_compile "$LINENO"; then :
9377 xorg_cv_cc_flag_unused_command_line_argument=yes
9378 else
9379 xorg_cv_cc_flag_unused_command_line_argument=no
9380 fi
9381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9382 fi
9383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9384 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9385 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9386 CFLAGS="$xorg_testset_save_CFLAGS"
9387 fi
9388
9389 found="no"
9390
9391 if test $found = "no" ; then
9392 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9393 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9394 fi
9395
9396 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9397 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9398 fi
9399
9400 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9401
9402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-to-int-cast" >&5
9403 $as_echo_n "checking if $CC supports-Wpointer-to-int-cast... " >&6; }
9404 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
9405 if eval \${$cacheid+:} false; then :
9406 $as_echo_n "(cached) " >&6
9407 else
9408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9409 /* end confdefs.h. */
9410 int i;
9411 int
9412 main ()
9413 {
9414
9415 ;
9416 return 0;
9417 }
9418 _ACEOF
9419 if ac_fn_c_try_link "$LINENO"; then :
9420 eval $cacheid=yes
9421 else
9422 eval $cacheid=no
9423 fi
9424 rm -f core conftest.err conftest.$ac_objext \
9425 conftest$ac_exeext conftest.$ac_ext
9426 fi
9427
9428
9429 CFLAGS="$xorg_testset_save_CFLAGS"
9430
9431 eval supported=\$$cacheid
9432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9433 $as_echo "$supported" >&6; }
9434 if test "$supported" = "yes" ; then
9435 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
9436 found="yes"
9437 fi
9438 fi
9439
9440
9441 fi
9442
9443
9444
9445
9446
9447
9448
9449 CWARNFLAGS="$BASE_CFLAGS"
9450 if test "x$GCC" = xyes ; then
9451 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
9452 fi
9453
9454
9455
9456
9457
9458
9459
9460
9461 # Check whether --enable-strict-compilation was given.
9462 if test "${enable_strict_compilation+set}" = set; then :
9463 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
9464 else
9465 STRICT_COMPILE=no
9466 fi
9467
9468
9469
9470
9471
9472
9473 STRICT_CFLAGS=""
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487 xorg_testset_save_CFLAGS="$CFLAGS"
9488
9489 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9490 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9492 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9493 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9494 $as_echo_n "(cached) " >&6
9495 else
9496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9497 /* end confdefs.h. */
9498 int i;
9499 _ACEOF
9500 if ac_fn_c_try_compile "$LINENO"; then :
9501 xorg_cv_cc_flag_unknown_warning_option=yes
9502 else
9503 xorg_cv_cc_flag_unknown_warning_option=no
9504 fi
9505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9506 fi
9507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9508 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9509 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9510 CFLAGS="$xorg_testset_save_CFLAGS"
9511 fi
9512
9513 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9514 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9515 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9516 fi
9517 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9519 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9520 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9521 $as_echo_n "(cached) " >&6
9522 else
9523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9524 /* end confdefs.h. */
9525 int i;
9526 _ACEOF
9527 if ac_fn_c_try_compile "$LINENO"; then :
9528 xorg_cv_cc_flag_unused_command_line_argument=yes
9529 else
9530 xorg_cv_cc_flag_unused_command_line_argument=no
9531 fi
9532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9533 fi
9534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9535 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9536 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9537 CFLAGS="$xorg_testset_save_CFLAGS"
9538 fi
9539
9540 found="no"
9541
9542 if test $found = "no" ; then
9543 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9544 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9545 fi
9546
9547 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9548 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9549 fi
9550
9551 CFLAGS="$CFLAGS -pedantic"
9552
9553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-pedantic" >&5
9554 $as_echo_n "checking if $CC supports-pedantic... " >&6; }
9555 cacheid=xorg_cv_cc_flag__pedantic
9556 if eval \${$cacheid+:} false; then :
9557 $as_echo_n "(cached) " >&6
9558 else
9559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9560 /* end confdefs.h. */
9561 int i;
9562 int
9563 main ()
9564 {
9565
9566 ;
9567 return 0;
9568 }
9569 _ACEOF
9570 if ac_fn_c_try_link "$LINENO"; then :
9571 eval $cacheid=yes
9572 else
9573 eval $cacheid=no
9574 fi
9575 rm -f core conftest.err conftest.$ac_objext \
9576 conftest$ac_exeext conftest.$ac_ext
9577 fi
9578
9579
9580 CFLAGS="$xorg_testset_save_CFLAGS"
9581
9582 eval supported=\$$cacheid
9583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9584 $as_echo "$supported" >&6; }
9585 if test "$supported" = "yes" ; then
9586 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
9587 found="yes"
9588 fi
9589 fi
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605 xorg_testset_save_CFLAGS="$CFLAGS"
9606
9607 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9608 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9610 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9611 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9612 $as_echo_n "(cached) " >&6
9613 else
9614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9615 /* end confdefs.h. */
9616 int i;
9617 _ACEOF
9618 if ac_fn_c_try_compile "$LINENO"; then :
9619 xorg_cv_cc_flag_unknown_warning_option=yes
9620 else
9621 xorg_cv_cc_flag_unknown_warning_option=no
9622 fi
9623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9624 fi
9625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9626 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9627 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9628 CFLAGS="$xorg_testset_save_CFLAGS"
9629 fi
9630
9631 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9632 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9633 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9634 fi
9635 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9637 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9638 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9639 $as_echo_n "(cached) " >&6
9640 else
9641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9642 /* end confdefs.h. */
9643 int i;
9644 _ACEOF
9645 if ac_fn_c_try_compile "$LINENO"; then :
9646 xorg_cv_cc_flag_unused_command_line_argument=yes
9647 else
9648 xorg_cv_cc_flag_unused_command_line_argument=no
9649 fi
9650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9651 fi
9652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9653 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9654 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9655 CFLAGS="$xorg_testset_save_CFLAGS"
9656 fi
9657
9658 found="no"
9659
9660 if test $found = "no" ; then
9661 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9662 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9663 fi
9664
9665 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9666 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9667 fi
9668
9669 CFLAGS="$CFLAGS -Werror"
9670
9671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror" >&5
9672 $as_echo_n "checking if $CC supports-Werror... " >&6; }
9673 cacheid=xorg_cv_cc_flag__Werror
9674 if eval \${$cacheid+:} false; then :
9675 $as_echo_n "(cached) " >&6
9676 else
9677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9678 /* end confdefs.h. */
9679 int i;
9680 int
9681 main ()
9682 {
9683
9684 ;
9685 return 0;
9686 }
9687 _ACEOF
9688 if ac_fn_c_try_link "$LINENO"; then :
9689 eval $cacheid=yes
9690 else
9691 eval $cacheid=no
9692 fi
9693 rm -f core conftest.err conftest.$ac_objext \
9694 conftest$ac_exeext conftest.$ac_ext
9695 fi
9696
9697
9698 CFLAGS="$xorg_testset_save_CFLAGS"
9699
9700 eval supported=\$$cacheid
9701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9702 $as_echo "$supported" >&6; }
9703 if test "$supported" = "yes" ; then
9704 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
9705 found="yes"
9706 fi
9707 fi
9708
9709 if test $found = "no" ; then
9710 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9711 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9712 fi
9713
9714 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9715 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9716 fi
9717
9718 CFLAGS="$CFLAGS -errwarn"
9719
9720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn" >&5
9721 $as_echo_n "checking if $CC supports-errwarn... " >&6; }
9722 cacheid=xorg_cv_cc_flag__errwarn
9723 if eval \${$cacheid+:} false; then :
9724 $as_echo_n "(cached) " >&6
9725 else
9726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9727 /* end confdefs.h. */
9728 int i;
9729 int
9730 main ()
9731 {
9732
9733 ;
9734 return 0;
9735 }
9736 _ACEOF
9737 if ac_fn_c_try_link "$LINENO"; then :
9738 eval $cacheid=yes
9739 else
9740 eval $cacheid=no
9741 fi
9742 rm -f core conftest.err conftest.$ac_objext \
9743 conftest$ac_exeext conftest.$ac_ext
9744 fi
9745
9746
9747 CFLAGS="$xorg_testset_save_CFLAGS"
9748
9749 eval supported=\$$cacheid
9750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9751 $as_echo "$supported" >&6; }
9752 if test "$supported" = "yes" ; then
9753 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
9754 found="yes"
9755 fi
9756 fi
9757
9758
9759
9760 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
9761 # activate it with -Werror, so we add it here explicitly.
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775 xorg_testset_save_CFLAGS="$CFLAGS"
9776
9777 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9778 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9780 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9781 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9782 $as_echo_n "(cached) " >&6
9783 else
9784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9785 /* end confdefs.h. */
9786 int i;
9787 _ACEOF
9788 if ac_fn_c_try_compile "$LINENO"; then :
9789 xorg_cv_cc_flag_unknown_warning_option=yes
9790 else
9791 xorg_cv_cc_flag_unknown_warning_option=no
9792 fi
9793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9794 fi
9795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9796 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9797 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9798 CFLAGS="$xorg_testset_save_CFLAGS"
9799 fi
9800
9801 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9802 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9803 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9804 fi
9805 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9807 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9808 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9809 $as_echo_n "(cached) " >&6
9810 else
9811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9812 /* end confdefs.h. */
9813 int i;
9814 _ACEOF
9815 if ac_fn_c_try_compile "$LINENO"; then :
9816 xorg_cv_cc_flag_unused_command_line_argument=yes
9817 else
9818 xorg_cv_cc_flag_unused_command_line_argument=no
9819 fi
9820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9821 fi
9822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9823 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9824 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9825 CFLAGS="$xorg_testset_save_CFLAGS"
9826 fi
9827
9828 found="no"
9829
9830 if test $found = "no" ; then
9831 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9832 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9833 fi
9834
9835 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9836 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9837 fi
9838
9839 CFLAGS="$CFLAGS -Werror=attributes"
9840
9841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=attributes" >&5
9842 $as_echo_n "checking if $CC supports-Werror=attributes... " >&6; }
9843 cacheid=xorg_cv_cc_flag__Werror_attributes
9844 if eval \${$cacheid+:} false; then :
9845 $as_echo_n "(cached) " >&6
9846 else
9847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9848 /* end confdefs.h. */
9849 int i;
9850 int
9851 main ()
9852 {
9853
9854 ;
9855 return 0;
9856 }
9857 _ACEOF
9858 if ac_fn_c_try_link "$LINENO"; then :
9859 eval $cacheid=yes
9860 else
9861 eval $cacheid=no
9862 fi
9863 rm -f core conftest.err conftest.$ac_objext \
9864 conftest$ac_exeext conftest.$ac_ext
9865 fi
9866
9867
9868 CFLAGS="$xorg_testset_save_CFLAGS"
9869
9870 eval supported=\$$cacheid
9871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9872 $as_echo "$supported" >&6; }
9873 if test "$supported" = "yes" ; then
9874 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
9875 found="yes"
9876 fi
9877 fi
9878
9879
9880
9881 if test "x$STRICT_COMPILE" = "xyes"; then
9882 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
9883 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
9884 fi
9885
9886
9887
9888
9889
9890
9891 cat >>confdefs.h <<_ACEOF
9892 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
9893 _ACEOF
9894
9895 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
9896 if test "x$PVM" = "x"; then
9897 PVM="0"
9898 fi
9899
9900 cat >>confdefs.h <<_ACEOF
9901 #define PACKAGE_VERSION_MINOR $PVM
9902 _ACEOF
9903
9904 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
9905 if test "x$PVP" = "x"; then
9906 PVP="0"
9907 fi
9908
9909 cat >>confdefs.h <<_ACEOF
9910 #define PACKAGE_VERSION_PATCHLEVEL $PVP
9911 _ACEOF
9912
9913
9914
9915 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
9916 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
9917 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
9918 echo 'git directory not found: installing possibly empty changelog.' >&2)"
9919
9920
9921
9922
9923 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
9924 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
9925 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
9926 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
9927 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
9928
9929
9930
9931
9932
9933
9934 if test x$APP_MAN_SUFFIX = x ; then
9935 APP_MAN_SUFFIX=1
9936 fi
9937 if test x$APP_MAN_DIR = x ; then
9938 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
9939 fi
9940
9941 if test x$LIB_MAN_SUFFIX = x ; then
9942 LIB_MAN_SUFFIX=3
9943 fi
9944 if test x$LIB_MAN_DIR = x ; then
9945 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
9946 fi
9947
9948 if test x$FILE_MAN_SUFFIX = x ; then
9949 case $host_os in
9950 solaris*) FILE_MAN_SUFFIX=4 ;;
9951 *) FILE_MAN_SUFFIX=5 ;;
9952 esac
9953 fi
9954 if test x$FILE_MAN_DIR = x ; then
9955 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
9956 fi
9957
9958 if test x$MISC_MAN_SUFFIX = x ; then
9959 case $host_os in
9960 solaris*) MISC_MAN_SUFFIX=5 ;;
9961 *) MISC_MAN_SUFFIX=7 ;;
9962 esac
9963 fi
9964 if test x$MISC_MAN_DIR = x ; then
9965 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
9966 fi
9967
9968 if test x$DRIVER_MAN_SUFFIX = x ; then
9969 case $host_os in
9970 solaris*) DRIVER_MAN_SUFFIX=7 ;;
9971 *) DRIVER_MAN_SUFFIX=4 ;;
9972 esac
9973 fi
9974 if test x$DRIVER_MAN_DIR = x ; then
9975 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
9976 fi
9977
9978 if test x$ADMIN_MAN_SUFFIX = x ; then
9979 case $host_os in
9980 solaris*) ADMIN_MAN_SUFFIX=1m ;;
9981 *) ADMIN_MAN_SUFFIX=8 ;;
9982 esac
9983 fi
9984 if test x$ADMIN_MAN_DIR = x ; then
9985 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
9986 fi
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002 XORG_MAN_PAGE="X Version 11"
10003
10004 MAN_SUBSTS="\
10005 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10006 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10007 -e 's|__xservername__|Xorg|g' \
10008 -e 's|__xconfigfile__|xorg.conf|g' \
10009 -e 's|__projectroot__|\$(prefix)|g' \
10010 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
10011 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10012 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10013 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10014 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10015 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10016 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10017
10018
10019
10020 # Check whether --enable-silent-rules was given.
10021 if test "${enable_silent_rules+set}" = set; then :
10022 enableval=$enable_silent_rules;
10023 fi
10024
10025 case $enable_silent_rules in # (((
10026 yes) AM_DEFAULT_VERBOSITY=0;;
10027 no) AM_DEFAULT_VERBOSITY=1;;
10028 *) AM_DEFAULT_VERBOSITY=0;;
10029 esac
10030 am_make=${MAKE-make}
10031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10032 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10033 if ${am_cv_make_support_nested_variables+:} false; then :
10034 $as_echo_n "(cached) " >&6
10035 else
10036 if $as_echo 'TRUE=$(BAR$(V))
10037 BAR0=false
10038 BAR1=true
10039 V=1
10040 am__doit:
10041 @$(TRUE)
10042 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10043 am_cv_make_support_nested_variables=yes
10044 else
10045 am_cv_make_support_nested_variables=no
10046 fi
10047 fi
10048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10049 $as_echo "$am_cv_make_support_nested_variables" >&6; }
10050 if test $am_cv_make_support_nested_variables = yes; then
10051 AM_V='$(V)'
10052 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10053 else
10054 AM_V=$AM_DEFAULT_VERBOSITY
10055 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10056 fi
10057 AM_BACKSLASH='\'
10058
10059
10060
10061 ac_aux_dir=
10062 for ac_dir in . "$srcdir"/.; do
10063 if test -f "$ac_dir/install-sh"; then
10064 ac_aux_dir=$ac_dir
10065 ac_install_sh="$ac_aux_dir/install-sh -c"
10066 break
10067 elif test -f "$ac_dir/install.sh"; then
10068 ac_aux_dir=$ac_dir
10069 ac_install_sh="$ac_aux_dir/install.sh -c"
10070 break
10071 elif test -f "$ac_dir/shtool"; then
10072 ac_aux_dir=$ac_dir
10073 ac_install_sh="$ac_aux_dir/shtool install -c"
10074 break
10075 fi
10076 done
10077 if test -z "$ac_aux_dir"; then
10078 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
10079 fi
10080
10081 # These three variables are undocumented and unsupported,
10082 # and are intended to be withdrawn in a future Autoconf release.
10083 # They can cause serious problems if a builder's source tree is in a directory
10084 # whose full name contains unusual characters.
10085 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
10086 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
10087 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
10088
10089
10090
10091 # Initialize Automake
10092 am__api_version='1.12'
10093
10094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
10095 $as_echo_n "checking whether build environment is sane... " >&6; }
10096 # Reject unsafe characters in $srcdir or the absolute working directory
10097 # name. Accept space and tab only in the latter.
10098 am_lf='
10099 '
10100 case `pwd` in
10101 *[\\\"\#\$\&\'\`$am_lf]*)
10102 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
10103 esac
10104 case $srcdir in
10105 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
10106 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
10107 esac
10108
10109 # Do 'set' in a subshell so we don't clobber the current shell's
10110 # arguments. Must try -L first in case configure is actually a
10111 # symlink; some systems play weird games with the mod time of symlinks
10112 # (eg FreeBSD returns the mod time of the symlink's containing
10113 # directory).
10114 if (
10115 am_has_slept=no
10116 for am_try in 1 2; do
10117 echo "timestamp, slept: $am_has_slept" > conftest.file
10118 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
10119 if test "$*" = "X"; then
10120 # -L didn't work.
10121 set X `ls -t "$srcdir/configure" conftest.file`
10122 fi
10123 if test "$*" != "X $srcdir/configure conftest.file" \
10124 && test "$*" != "X conftest.file $srcdir/configure"; then
10125
10126 # If neither matched, then we have a broken ls. This can happen
10127 # if, for instance, CONFIG_SHELL is bash and it inherits a
10128 # broken ls alias from the environment. This has actually
10129 # happened. Such a system could not be considered "sane".
10130 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
10131 alias in your environment" "$LINENO" 5
10132 fi
10133 if test "$2" = conftest.file || test $am_try -eq 2; then
10134 break
10135 fi
10136 # Just in case.
10137 sleep 1
10138 am_has_slept=yes
10139 done
10140 test "$2" = conftest.file
10141 )
10142 then
10143 # Ok.
10144 :
10145 else
10146 as_fn_error $? "newly created file is older than distributed files!
10147 Check your system clock" "$LINENO" 5
10148 fi
10149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10150 $as_echo "yes" >&6; }
10151 # If we didn't sleep, we still need to ensure time stamps of config.status and
10152 # generated files are strictly newer.
10153 am_sleep_pid=
10154 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
10155 ( sleep 1 ) &
10156 am_sleep_pid=$!
10157 fi
10158
10159 rm -f conftest.file
10160
10161 test "$program_prefix" != NONE &&
10162 program_transform_name="s&^&$program_prefix&;$program_transform_name"
10163 # Use a double $ so make ignores it.
10164 test "$program_suffix" != NONE &&
10165 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
10166 # Double any \ or $.
10167 # By default was `s,x,x', remove it if useless.
10168 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
10169 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
10170
10171 # expand $ac_aux_dir to an absolute path
10172 am_aux_dir=`cd $ac_aux_dir && pwd`
10173
10174 if test x"${MISSING+set}" != xset; then
10175 case $am_aux_dir in
10176 *\ * | *\ *)
10177 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
10178 *)
10179 MISSING="\${SHELL} $am_aux_dir/missing" ;;
10180 esac
10181 fi
10182 # Use eval to expand $SHELL
10183 if eval "$MISSING --run true"; then
10184 am_missing_run="$MISSING --run "
10185 else
10186 am_missing_run=
10187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
10188 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
10189 fi
10190
10191 if test x"${install_sh}" != xset; then
10192 case $am_aux_dir in
10193 *\ * | *\ *)
10194 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
10195 *)
10196 install_sh="\${SHELL} $am_aux_dir/install-sh"
10197 esac
10198 fi
10199
10200 # Installed binaries are usually stripped using 'strip' when the user
10201 # run "make install-strip". However 'strip' might not be the right
10202 # tool to use in cross-compilation environments, therefore Automake
10203 # will honor the 'STRIP' environment variable to overrule this program.
10204 if test "$cross_compiling" != no; then
10205 if test -n "$ac_tool_prefix"; then
10206 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10207 set dummy ${ac_tool_prefix}strip; ac_word=$2
10208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10209 $as_echo_n "checking for $ac_word... " >&6; }
10210 if ${ac_cv_prog_STRIP+:} false; then :
10211 $as_echo_n "(cached) " >&6
10212 else
10213 if test -n "$STRIP"; then
10214 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10215 else
10216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10217 for as_dir in $PATH
10218 do
10219 IFS=$as_save_IFS
10220 test -z "$as_dir" && as_dir=.
10221 for ac_exec_ext in '' $ac_executable_extensions; do
10222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10223 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10225 break 2
10226 fi
10227 done
10228 done
10229 IFS=$as_save_IFS
10230
10231 fi
10232 fi
10233 STRIP=$ac_cv_prog_STRIP
10234 if test -n "$STRIP"; then
10235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10236 $as_echo "$STRIP" >&6; }
10237 else
10238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10239 $as_echo "no" >&6; }
10240 fi
10241
10242
10243 fi
10244 if test -z "$ac_cv_prog_STRIP"; then
10245 ac_ct_STRIP=$STRIP
10246 # Extract the first word of "strip", so it can be a program name with args.
10247 set dummy strip; ac_word=$2
10248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10249 $as_echo_n "checking for $ac_word... " >&6; }
10250 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
10251 $as_echo_n "(cached) " >&6
10252 else
10253 if test -n "$ac_ct_STRIP"; then
10254 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10255 else
10256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10257 for as_dir in $PATH
10258 do
10259 IFS=$as_save_IFS
10260 test -z "$as_dir" && as_dir=.
10261 for ac_exec_ext in '' $ac_executable_extensions; do
10262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10263 ac_cv_prog_ac_ct_STRIP="strip"
10264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10265 break 2
10266 fi
10267 done
10268 done
10269 IFS=$as_save_IFS
10270
10271 fi
10272 fi
10273 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10274 if test -n "$ac_ct_STRIP"; then
10275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10276 $as_echo "$ac_ct_STRIP" >&6; }
10277 else
10278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10279 $as_echo "no" >&6; }
10280 fi
10281
10282 if test "x$ac_ct_STRIP" = x; then
10283 STRIP=":"
10284 else
10285 case $cross_compiling:$ac_tool_warned in
10286 yes:)
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10288 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10289 ac_tool_warned=yes ;;
10290 esac
10291 STRIP=$ac_ct_STRIP
10292 fi
10293 else
10294 STRIP="$ac_cv_prog_STRIP"
10295 fi
10296
10297 fi
10298 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
10299
10300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
10301 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
10302 if test -z "$MKDIR_P"; then
10303 if ${ac_cv_path_mkdir+:} false; then :
10304 $as_echo_n "(cached) " >&6
10305 else
10306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10307 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
10308 do
10309 IFS=$as_save_IFS
10310 test -z "$as_dir" && as_dir=.
10311 for ac_prog in mkdir gmkdir; do
10312 for ac_exec_ext in '' $ac_executable_extensions; do
10313 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
10314 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
10315 'mkdir (GNU coreutils) '* | \
10316 'mkdir (coreutils) '* | \
10317 'mkdir (fileutils) '4.1*)
10318 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
10319 break 3;;
10320 esac
10321 done
10322 done
10323 done
10324 IFS=$as_save_IFS
10325
10326 fi
10327
10328 test -d ./--version && rmdir ./--version
10329 if test "${ac_cv_path_mkdir+set}" = set; then
10330 MKDIR_P="$ac_cv_path_mkdir -p"
10331 else
10332 # As a last resort, use the slow shell script. Don't cache a
10333 # value for MKDIR_P within a source directory, because that will
10334 # break other packages using the cache if that directory is
10335 # removed, or if the value is a relative name.
10336 MKDIR_P="$ac_install_sh -d"
10337 fi
10338 fi
10339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
10340 $as_echo "$MKDIR_P" >&6; }
10341
10342 for ac_prog in gawk mawk nawk awk
10343 do
10344 # Extract the first word of "$ac_prog", so it can be a program name with args.
10345 set dummy $ac_prog; ac_word=$2
10346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10347 $as_echo_n "checking for $ac_word... " >&6; }
10348 if ${ac_cv_prog_AWK+:} false; then :
10349 $as_echo_n "(cached) " >&6
10350 else
10351 if test -n "$AWK"; then
10352 ac_cv_prog_AWK="$AWK" # Let the user override the test.
10353 else
10354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10355 for as_dir in $PATH
10356 do
10357 IFS=$as_save_IFS
10358 test -z "$as_dir" && as_dir=.
10359 for ac_exec_ext in '' $ac_executable_extensions; do
10360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10361 ac_cv_prog_AWK="$ac_prog"
10362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10363 break 2
10364 fi
10365 done
10366 done
10367 IFS=$as_save_IFS
10368
10369 fi
10370 fi
10371 AWK=$ac_cv_prog_AWK
10372 if test -n "$AWK"; then
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
10374 $as_echo "$AWK" >&6; }
10375 else
10376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10377 $as_echo "no" >&6; }
10378 fi
10379
10380
10381 test -n "$AWK" && break
10382 done
10383
10384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10385 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
10386 set x ${MAKE-make}
10387 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
10388 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
10389 $as_echo_n "(cached) " >&6
10390 else
10391 cat >conftest.make <<\_ACEOF
10392 SHELL = /bin/sh
10393 all:
10394 @echo '@@@%%%=$(MAKE)=@@@%%%'
10395 _ACEOF
10396 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
10397 case `${MAKE-make} -f conftest.make 2>/dev/null` in
10398 *@@@%%%=?*=@@@%%%*)
10399 eval ac_cv_prog_make_${ac_make}_set=yes;;
10400 *)
10401 eval ac_cv_prog_make_${ac_make}_set=no;;
10402 esac
10403 rm -f conftest.make
10404 fi
10405 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
10406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10407 $as_echo "yes" >&6; }
10408 SET_MAKE=
10409 else
10410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10411 $as_echo "no" >&6; }
10412 SET_MAKE="MAKE=${MAKE-make}"
10413 fi
10414
10415 rm -rf .tst 2>/dev/null
10416 mkdir .tst 2>/dev/null
10417 if test -d .tst; then
10418 am__leading_dot=.
10419 else
10420 am__leading_dot=_
10421 fi
10422 rmdir .tst 2>/dev/null
10423
10424 DEPDIR="${am__leading_dot}deps"
10425
10426 ac_config_commands="$ac_config_commands depfiles"
10427
10428
10429 am_make=${MAKE-make}
10430 cat > confinc << 'END'
10431 am__doit:
10432 @echo this is the am__doit target
10433 .PHONY: am__doit
10434 END
10435 # If we don't find an include directive, just comment out the code.
10436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
10437 $as_echo_n "checking for style of include used by $am_make... " >&6; }
10438 am__include="#"
10439 am__quote=
10440 _am_result=none
10441 # First try GNU make style include.
10442 echo "include confinc" > confmf
10443 # Ignore all kinds of additional output from 'make'.
10444 case `$am_make -s -f confmf 2> /dev/null` in #(
10445 *the\ am__doit\ target*)
10446 am__include=include
10447 am__quote=
10448 _am_result=GNU
10449 ;;
10450 esac
10451 # Now try BSD make style include.
10452 if test "$am__include" = "#"; then
10453 echo '.include "confinc"' > confmf
10454 case `$am_make -s -f confmf 2> /dev/null` in #(
10455 *the\ am__doit\ target*)
10456 am__include=.include
10457 am__quote="\""
10458 _am_result=BSD
10459 ;;
10460 esac
10461 fi
10462
10463
10464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
10465 $as_echo "$_am_result" >&6; }
10466 rm -f confinc confmf
10467
10468 # Check whether --enable-dependency-tracking was given.
10469 if test "${enable_dependency_tracking+set}" = set; then :
10470 enableval=$enable_dependency_tracking;
10471 fi
10472
10473 if test "x$enable_dependency_tracking" != xno; then
10474 am_depcomp="$ac_aux_dir/depcomp"
10475 AMDEPBACKSLASH='\'
10476 am__nodep='_no'
10477 fi
10478 if test "x$enable_dependency_tracking" != xno; then
10479 AMDEP_TRUE=
10480 AMDEP_FALSE='#'
10481 else
10482 AMDEP_TRUE='#'
10483 AMDEP_FALSE=
10484 fi
10485
10486
10487 if test "`cd $srcdir && pwd`" != "`pwd`"; then
10488 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
10489 # is not polluted with repeated "-I."
10490 am__isrc=' -I$(srcdir)'
10491 # test to see if srcdir already configured
10492 if test -f $srcdir/config.status; then
10493 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
10494 fi
10495 fi
10496
10497 # test whether we have cygpath
10498 if test -z "$CYGPATH_W"; then
10499 if (cygpath --version) >/dev/null 2>/dev/null; then
10500 CYGPATH_W='cygpath -w'
10501 else
10502 CYGPATH_W=echo
10503 fi
10504 fi
10505
10506
10507 # Define the identity of the package.
10508 PACKAGE='xf86-video-mga'
10509 VERSION='1.6.3'
10510
10511
10512 cat >>confdefs.h <<_ACEOF
10513 #define PACKAGE "$PACKAGE"
10514 _ACEOF
10515
10516
10517 cat >>confdefs.h <<_ACEOF
10518 #define VERSION "$VERSION"
10519 _ACEOF
10520
10521 # Some tools Automake needs.
10522
10523 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
10524
10525
10526 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
10527
10528
10529 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
10530
10531
10532 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
10533
10534
10535 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
10536
10537 # For better backward compatibility. To be removed once Automake 1.9.x
10538 # dies out for good. For more background, see:
10539 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
10540 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
10541 mkdir_p='$(MKDIR_P)'
10542
10543 # We need awk for the "check" target. The system "awk" is bad on
10544 # some platforms.
10545 # Always define AMTAR for backward compatibility. Yes, it's still used
10546 # in the wild :-( We should find a proper way to deprecate it ...
10547 AMTAR='$${TAR-tar}'
10548
10549 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
10550
10551
10552
10553
10554 depcc="$CC" am_compiler_list=
10555
10556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
10557 $as_echo_n "checking dependency style of $depcc... " >&6; }
10558 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
10559 $as_echo_n "(cached) " >&6
10560 else
10561 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
10562 # We make a subdir and do the tests there. Otherwise we can end up
10563 # making bogus files that we don't know about and never remove. For
10564 # instance it was reported that on HP-UX the gcc test will end up
10565 # making a dummy file named 'D' -- because '-MD' means "put the output
10566 # in D".
10567 rm -rf conftest.dir
10568 mkdir conftest.dir
10569 # Copy depcomp to subdir because otherwise we won't find it if we're
10570 # using a relative directory.
10571 cp "$am_depcomp" conftest.dir
10572 cd conftest.dir
10573 # We will build objects and dependencies in a subdirectory because
10574 # it helps to detect inapplicable dependency modes. For instance
10575 # both Tru64's cc and ICC support -MD to output dependencies as a
10576 # side effect of compilation, but ICC will put the dependencies in
10577 # the current directory while Tru64 will put them in the object
10578 # directory.
10579 mkdir sub
10580
10581 am_cv_CC_dependencies_compiler_type=none
10582 if test "$am_compiler_list" = ""; then
10583 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10584 fi
10585 am__universal=false
10586 case " $depcc " in #(
10587 *\ -arch\ *\ -arch\ *) am__universal=true ;;
10588 esac
10589
10590 for depmode in $am_compiler_list; do
10591 # Setup a source with many dependencies, because some compilers
10592 # like to wrap large dependency lists on column 80 (with \), and
10593 # we should not choose a depcomp mode which is confused by this.
10594 #
10595 # We need to recreate these files for each test, as the compiler may
10596 # overwrite some of them when testing with obscure command lines.
10597 # This happens at least with the AIX C compiler.
10598 : > sub/conftest.c
10599 for i in 1 2 3 4 5 6; do
10600 echo '#include "conftst'$i'.h"' >> sub/conftest.c
10601 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
10602 # Solaris 10 /bin/sh.
10603 echo '/* dummy */' > sub/conftst$i.h
10604 done
10605 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
10606
10607 # We check with '-c' and '-o' for the sake of the "dashmstdout"
10608 # mode. It turns out that the SunPro C++ compiler does not properly
10609 # handle '-M -o', and we need to detect this. Also, some Intel
10610 # versions had trouble with output in subdirs.
10611 am__obj=sub/conftest.${OBJEXT-o}
10612 am__minus_obj="-o $am__obj"
10613 case $depmode in
10614 gcc)
10615 # This depmode causes a compiler race in universal mode.
10616 test "$am__universal" = false || continue
10617 ;;
10618 nosideeffect)
10619 # After this tag, mechanisms are not by side-effect, so they'll
10620 # only be used when explicitly requested.
10621 if test "x$enable_dependency_tracking" = xyes; then
10622 continue
10623 else
10624 break
10625 fi
10626 ;;
10627 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
10628 # This compiler won't grok '-c -o', but also, the minuso test has
10629 # not run yet. These depmodes are late enough in the game, and
10630 # so weak that their functioning should not be impacted.
10631 am__obj=conftest.${OBJEXT-o}
10632 am__minus_obj=
10633 ;;
10634 none) break ;;
10635 esac
10636 if depmode=$depmode \
10637 source=sub/conftest.c object=$am__obj \
10638 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10639 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
10640 >/dev/null 2>conftest.err &&
10641 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
10642 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
10643 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
10644 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
10645 # icc doesn't choke on unknown options, it will just issue warnings
10646 # or remarks (even with -Werror). So we grep stderr for any message
10647 # that says an option was ignored or not supported.
10648 # When given -MP, icc 7.0 and 7.1 complain thusly:
10649 # icc: Command line warning: ignoring option '-M'; no argument required
10650 # The diagnosis changed in icc 8.0:
10651 # icc: Command line remark: option '-MP' not supported
10652 if (grep 'ignoring option' conftest.err ||
10653 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
10654 am_cv_CC_dependencies_compiler_type=$depmode
10655 break
10656 fi
10657 fi
10658 done
10659
10660 cd ..
10661 rm -rf conftest.dir
10662 else
10663 am_cv_CC_dependencies_compiler_type=none
10664 fi
10665
10666 fi
10667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
10668 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
10669 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
10670
10671 if
10672 test "x$enable_dependency_tracking" != xno \
10673 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
10674 am__fastdepCC_TRUE=
10675 am__fastdepCC_FALSE='#'
10676 else
10677 am__fastdepCC_TRUE='#'
10678 am__fastdepCC_FALSE=
10679 fi
10680
10681
10682
10683
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
10685 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
10686 # Check whether --enable-maintainer-mode was given.
10687 if test "${enable_maintainer_mode+set}" = set; then :
10688 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
10689 else
10690 USE_MAINTAINER_MODE=no
10691 fi
10692
10693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
10694 $as_echo "$USE_MAINTAINER_MODE" >&6; }
10695 if test $USE_MAINTAINER_MODE = yes; then
10696 MAINTAINER_MODE_TRUE=
10697 MAINTAINER_MODE_FALSE='#'
10698 else
10699 MAINTAINER_MODE_TRUE='#'
10700 MAINTAINER_MODE_FALSE=
10701 fi
10702
10703 MAINT=$MAINTAINER_MODE_TRUE
10704
10705
10706
10707 # Initialize libtool
10708 # Check whether --enable-static was given.
10709 if test "${enable_static+set}" = set; then :
10710 enableval=$enable_static; p=${PACKAGE-default}
10711 case $enableval in
10712 yes) enable_static=yes ;;
10713 no) enable_static=no ;;
10714 *)
10715 enable_static=no
10716 # Look at the argument we got. We use all the common list separators.
10717 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10718 for pkg in $enableval; do
10719 IFS="$lt_save_ifs"
10720 if test "X$pkg" = "X$p"; then
10721 enable_static=yes
10722 fi
10723 done
10724 IFS="$lt_save_ifs"
10725 ;;
10726 esac
10727 else
10728 enable_static=no
10729 fi
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739 case `pwd` in
10740 *\ * | *\ *)
10741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10742 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10743 esac
10744
10745
10746
10747 macro_version='2.4.2'
10748 macro_revision='1.3337'
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762 ltmain="$ac_aux_dir/ltmain.sh"
10763
10764 # Backslashify metacharacters that are still active within
10765 # double-quoted strings.
10766 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10767
10768 # Same as above, but do not quote variable references.
10769 double_quote_subst='s/\(["`\\]\)/\\\1/g'
10770
10771 # Sed substitution to delay expansion of an escaped shell variable in a
10772 # double_quote_subst'ed string.
10773 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10774
10775 # Sed substitution to delay expansion of an escaped single quote.
10776 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10777
10778 # Sed substitution to avoid accidental globbing in evaled expressions
10779 no_glob_subst='s/\*/\\\*/g'
10780
10781 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10782 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
10783 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
10784
10785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
10786 $as_echo_n "checking how to print strings... " >&6; }
10787 # Test print first, because it will be a builtin if present.
10788 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
10789 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
10790 ECHO='print -r --'
10791 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
10792 ECHO='printf %s\n'
10793 else
10794 # Use this function as a fallback that always works.
10795 func_fallback_echo ()
10796 {
10797 eval 'cat <<_LTECHO_EOF
10798 $1
10799 _LTECHO_EOF'
10800 }
10801 ECHO='func_fallback_echo'
10802 fi
10803
10804 # func_echo_all arg...
10805 # Invoke $ECHO with all args, space-separated.
10806 func_echo_all ()
10807 {
10808 $ECHO ""
10809 }
10810
10811 case "$ECHO" in
10812 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
10813 $as_echo "printf" >&6; } ;;
10814 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
10815 $as_echo "print -r" >&6; } ;;
10816 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
10817 $as_echo "cat" >&6; } ;;
10818 esac
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
10834 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
10835 if ${ac_cv_path_SED+:} false; then :
10836 $as_echo_n "(cached) " >&6
10837 else
10838 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
10839 for ac_i in 1 2 3 4 5 6 7; do
10840 ac_script="$ac_script$as_nl$ac_script"
10841 done
10842 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
10843 { ac_script=; unset ac_script;}
10844 if test -z "$SED"; then
10845 ac_path_SED_found=false
10846 # Loop through the user's path and test for each of PROGNAME-LIST
10847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10848 for as_dir in $PATH
10849 do
10850 IFS=$as_save_IFS
10851 test -z "$as_dir" && as_dir=.
10852 for ac_prog in sed gsed; do
10853 for ac_exec_ext in '' $ac_executable_extensions; do
10854 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
10855 as_fn_executable_p "$ac_path_SED" || continue
10856 # Check for GNU ac_path_SED and select it if it is found.
10857 # Check for GNU $ac_path_SED
10858 case `"$ac_path_SED" --version 2>&1` in
10859 *GNU*)
10860 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
10861 *)
10862 ac_count=0
10863 $as_echo_n 0123456789 >"conftest.in"
10864 while :
10865 do
10866 cat "conftest.in" "conftest.in" >"conftest.tmp"
10867 mv "conftest.tmp" "conftest.in"
10868 cp "conftest.in" "conftest.nl"
10869 $as_echo '' >> "conftest.nl"
10870 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
10871 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10872 as_fn_arith $ac_count + 1 && ac_count=$as_val
10873 if test $ac_count -gt ${ac_path_SED_max-0}; then
10874 # Best one so far, save it but keep looking for a better one
10875 ac_cv_path_SED="$ac_path_SED"
10876 ac_path_SED_max=$ac_count
10877 fi
10878 # 10*(2^10) chars as input seems more than enough
10879 test $ac_count -gt 10 && break
10880 done
10881 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10882 esac
10883
10884 $ac_path_SED_found && break 3
10885 done
10886 done
10887 done
10888 IFS=$as_save_IFS
10889 if test -z "$ac_cv_path_SED"; then
10890 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
10891 fi
10892 else
10893 ac_cv_path_SED=$SED
10894 fi
10895
10896 fi
10897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
10898 $as_echo "$ac_cv_path_SED" >&6; }
10899 SED="$ac_cv_path_SED"
10900 rm -f conftest.sed
10901
10902 test -z "$SED" && SED=sed
10903 Xsed="$SED -e 1s/^X//"
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
10916 $as_echo_n "checking for fgrep... " >&6; }
10917 if ${ac_cv_path_FGREP+:} false; then :
10918 $as_echo_n "(cached) " >&6
10919 else
10920 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
10921 then ac_cv_path_FGREP="$GREP -F"
10922 else
10923 if test -z "$FGREP"; then
10924 ac_path_FGREP_found=false
10925 # Loop through the user's path and test for each of PROGNAME-LIST
10926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10927 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10928 do
10929 IFS=$as_save_IFS
10930 test -z "$as_dir" && as_dir=.
10931 for ac_prog in fgrep; do
10932 for ac_exec_ext in '' $ac_executable_extensions; do
10933 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
10934 as_fn_executable_p "$ac_path_FGREP" || continue
10935 # Check for GNU ac_path_FGREP and select it if it is found.
10936 # Check for GNU $ac_path_FGREP
10937 case `"$ac_path_FGREP" --version 2>&1` in
10938 *GNU*)
10939 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
10940 *)
10941 ac_count=0
10942 $as_echo_n 0123456789 >"conftest.in"
10943 while :
10944 do
10945 cat "conftest.in" "conftest.in" >"conftest.tmp"
10946 mv "conftest.tmp" "conftest.in"
10947 cp "conftest.in" "conftest.nl"
10948 $as_echo 'FGREP' >> "conftest.nl"
10949 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
10950 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10951 as_fn_arith $ac_count + 1 && ac_count=$as_val
10952 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
10953 # Best one so far, save it but keep looking for a better one
10954 ac_cv_path_FGREP="$ac_path_FGREP"
10955 ac_path_FGREP_max=$ac_count
10956 fi
10957 # 10*(2^10) chars as input seems more than enough
10958 test $ac_count -gt 10 && break
10959 done
10960 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10961 esac
10962
10963 $ac_path_FGREP_found && break 3
10964 done
10965 done
10966 done
10967 IFS=$as_save_IFS
10968 if test -z "$ac_cv_path_FGREP"; then
10969 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
10970 fi
10971 else
10972 ac_cv_path_FGREP=$FGREP
10973 fi
10974
10975 fi
10976 fi
10977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
10978 $as_echo "$ac_cv_path_FGREP" >&6; }
10979 FGREP="$ac_cv_path_FGREP"
10980
10981
10982 test -z "$GREP" && GREP=grep
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002 # Check whether --with-gnu-ld was given.
11003 if test "${with_gnu_ld+set}" = set; then :
11004 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11005 else
11006 with_gnu_ld=no
11007 fi
11008
11009 ac_prog=ld
11010 if test "$GCC" = yes; then
11011 # Check if gcc -print-prog-name=ld gives a path.
11012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11013 $as_echo_n "checking for ld used by $CC... " >&6; }
11014 case $host in
11015 *-*-mingw*)
11016 # gcc leaves a trailing carriage return which upsets mingw
11017 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11018 *)
11019 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11020 esac
11021 case $ac_prog in
11022 # Accept absolute paths.
11023 [\\/]* | ?:[\\/]*)
11024 re_direlt='/[^/][^/]*/\.\./'
11025 # Canonicalize the pathname of ld
11026 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11027 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11028 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11029 done
11030 test -z "$LD" && LD="$ac_prog"
11031 ;;
11032 "")
11033 # If it fails, then pretend we aren't using GCC.
11034 ac_prog=ld
11035 ;;
11036 *)
11037 # If it is relative, then search for the first ld in PATH.
11038 with_gnu_ld=unknown
11039 ;;
11040 esac
11041 elif test "$with_gnu_ld" = yes; then
11042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11043 $as_echo_n "checking for GNU ld... " >&6; }
11044 else
11045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11046 $as_echo_n "checking for non-GNU ld... " >&6; }
11047 fi
11048 if ${lt_cv_path_LD+:} false; then :
11049 $as_echo_n "(cached) " >&6
11050 else
11051 if test -z "$LD"; then
11052 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11053 for ac_dir in $PATH; do
11054 IFS="$lt_save_ifs"
11055 test -z "$ac_dir" && ac_dir=.
11056 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11057 lt_cv_path_LD="$ac_dir/$ac_prog"
11058 # Check to see if the program is GNU ld. I'd rather use --version,
11059 # but apparently some variants of GNU ld only accept -v.
11060 # Break only if it was the GNU/non-GNU ld that we prefer.
11061 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11062 *GNU* | *'with BFD'*)
11063 test "$with_gnu_ld" != no && break
11064 ;;
11065 *)
11066 test "$with_gnu_ld" != yes && break
11067 ;;
11068 esac
11069 fi
11070 done
11071 IFS="$lt_save_ifs"
11072 else
11073 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11074 fi
11075 fi
11076
11077 LD="$lt_cv_path_LD"
11078 if test -n "$LD"; then
11079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11080 $as_echo "$LD" >&6; }
11081 else
11082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11083 $as_echo "no" >&6; }
11084 fi
11085 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11087 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11088 if ${lt_cv_prog_gnu_ld+:} false; then :
11089 $as_echo_n "(cached) " >&6
11090 else
11091 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11092 case `$LD -v 2>&1 </dev/null` in
11093 *GNU* | *'with BFD'*)
11094 lt_cv_prog_gnu_ld=yes
11095 ;;
11096 *)
11097 lt_cv_prog_gnu_ld=no
11098 ;;
11099 esac
11100 fi
11101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11102 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11103 with_gnu_ld=$lt_cv_prog_gnu_ld
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11114 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11115 if ${lt_cv_path_NM+:} false; then :
11116 $as_echo_n "(cached) " >&6
11117 else
11118 if test -n "$NM"; then
11119 # Let the user override the test.
11120 lt_cv_path_NM="$NM"
11121 else
11122 lt_nm_to_check="${ac_tool_prefix}nm"
11123 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11124 lt_nm_to_check="$lt_nm_to_check nm"
11125 fi
11126 for lt_tmp_nm in $lt_nm_to_check; do
11127 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11128 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11129 IFS="$lt_save_ifs"
11130 test -z "$ac_dir" && ac_dir=.
11131 tmp_nm="$ac_dir/$lt_tmp_nm"
11132 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11133 # Check to see if the nm accepts a BSD-compat flag.
11134 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11135 # nm: unknown option "B" ignored
11136 # Tru64's nm complains that /dev/null is an invalid object file
11137 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11138 */dev/null* | *'Invalid file or object type'*)
11139 lt_cv_path_NM="$tmp_nm -B"
11140 break
11141 ;;
11142 *)
11143 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11144 */dev/null*)
11145 lt_cv_path_NM="$tmp_nm -p"
11146 break
11147 ;;
11148 *)
11149 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11150 continue # so that we can try to find one that supports BSD flags
11151 ;;
11152 esac
11153 ;;
11154 esac
11155 fi
11156 done
11157 IFS="$lt_save_ifs"
11158 done
11159 : ${lt_cv_path_NM=no}
11160 fi
11161 fi
11162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11163 $as_echo "$lt_cv_path_NM" >&6; }
11164 if test "$lt_cv_path_NM" != "no"; then
11165 NM="$lt_cv_path_NM"
11166 else
11167 # Didn't find any BSD compatible name lister, look for dumpbin.
11168 if test -n "$DUMPBIN"; then :
11169 # Let the user override the test.
11170 else
11171 if test -n "$ac_tool_prefix"; then
11172 for ac_prog in dumpbin "link -dump"
11173 do
11174 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11175 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11177 $as_echo_n "checking for $ac_word... " >&6; }
11178 if ${ac_cv_prog_DUMPBIN+:} false; then :
11179 $as_echo_n "(cached) " >&6
11180 else
11181 if test -n "$DUMPBIN"; then
11182 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11183 else
11184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11185 for as_dir in $PATH
11186 do
11187 IFS=$as_save_IFS
11188 test -z "$as_dir" && as_dir=.
11189 for ac_exec_ext in '' $ac_executable_extensions; do
11190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11191 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11193 break 2
11194 fi
11195 done
11196 done
11197 IFS=$as_save_IFS
11198
11199 fi
11200 fi
11201 DUMPBIN=$ac_cv_prog_DUMPBIN
11202 if test -n "$DUMPBIN"; then
11203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11204 $as_echo "$DUMPBIN" >&6; }
11205 else
11206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11207 $as_echo "no" >&6; }
11208 fi
11209
11210
11211 test -n "$DUMPBIN" && break
11212 done
11213 fi
11214 if test -z "$DUMPBIN"; then
11215 ac_ct_DUMPBIN=$DUMPBIN
11216 for ac_prog in dumpbin "link -dump"
11217 do
11218 # Extract the first word of "$ac_prog", so it can be a program name with args.
11219 set dummy $ac_prog; ac_word=$2
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11221 $as_echo_n "checking for $ac_word... " >&6; }
11222 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
11223 $as_echo_n "(cached) " >&6
11224 else
11225 if test -n "$ac_ct_DUMPBIN"; then
11226 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11227 else
11228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11229 for as_dir in $PATH
11230 do
11231 IFS=$as_save_IFS
11232 test -z "$as_dir" && as_dir=.
11233 for ac_exec_ext in '' $ac_executable_extensions; do
11234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11235 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11237 break 2
11238 fi
11239 done
11240 done
11241 IFS=$as_save_IFS
11242
11243 fi
11244 fi
11245 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11246 if test -n "$ac_ct_DUMPBIN"; then
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11248 $as_echo "$ac_ct_DUMPBIN" >&6; }
11249 else
11250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11251 $as_echo "no" >&6; }
11252 fi
11253
11254
11255 test -n "$ac_ct_DUMPBIN" && break
11256 done
11257
11258 if test "x$ac_ct_DUMPBIN" = x; then
11259 DUMPBIN=":"
11260 else
11261 case $cross_compiling:$ac_tool_warned in
11262 yes:)
11263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11264 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11265 ac_tool_warned=yes ;;
11266 esac
11267 DUMPBIN=$ac_ct_DUMPBIN
11268 fi
11269 fi
11270
11271 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11272 *COFF*)
11273 DUMPBIN="$DUMPBIN -symbols"
11274 ;;
11275 *)
11276 DUMPBIN=:
11277 ;;
11278 esac
11279 fi
11280
11281 if test "$DUMPBIN" != ":"; then
11282 NM="$DUMPBIN"
11283 fi
11284 fi
11285 test -z "$NM" && NM=nm
11286
11287
11288
11289
11290
11291
11292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11293 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
11294 if ${lt_cv_nm_interface+:} false; then :
11295 $as_echo_n "(cached) " >&6
11296 else
11297 lt_cv_nm_interface="BSD nm"
11298 echo "int some_variable = 0;" > conftest.$ac_ext
11299 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11300 (eval "$ac_compile" 2>conftest.err)
11301 cat conftest.err >&5
11302 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11303 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11304 cat conftest.err >&5
11305 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11306 cat conftest.out >&5
11307 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11308 lt_cv_nm_interface="MS dumpbin"
11309 fi
11310 rm -f conftest*
11311 fi
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11313 $as_echo "$lt_cv_nm_interface" >&6; }
11314
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11316 $as_echo_n "checking whether ln -s works... " >&6; }
11317 LN_S=$as_ln_s
11318 if test "$LN_S" = "ln -s"; then
11319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11320 $as_echo "yes" >&6; }
11321 else
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11323 $as_echo "no, using $LN_S" >&6; }
11324 fi
11325
11326 # find the maximum length of command line arguments
11327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11328 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
11329 if ${lt_cv_sys_max_cmd_len+:} false; then :
11330 $as_echo_n "(cached) " >&6
11331 else
11332 i=0
11333 teststring="ABCD"
11334
11335 case $build_os in
11336 msdosdjgpp*)
11337 # On DJGPP, this test can blow up pretty badly due to problems in libc
11338 # (any single argument exceeding 2000 bytes causes a buffer overrun
11339 # during glob expansion). Even if it were fixed, the result of this
11340 # check would be larger than it should be.
11341 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11342 ;;
11343
11344 gnu*)
11345 # Under GNU Hurd, this test is not required because there is
11346 # no limit to the length of command line arguments.
11347 # Libtool will interpret -1 as no limit whatsoever
11348 lt_cv_sys_max_cmd_len=-1;
11349 ;;
11350
11351 cygwin* | mingw* | cegcc*)
11352 # On Win9x/ME, this test blows up -- it succeeds, but takes
11353 # about 5 minutes as the teststring grows exponentially.
11354 # Worse, since 9x/ME are not pre-emptively multitasking,
11355 # you end up with a "frozen" computer, even though with patience
11356 # the test eventually succeeds (with a max line length of 256k).
11357 # Instead, let's just punt: use the minimum linelength reported by
11358 # all of the supported platforms: 8192 (on NT/2K/XP).
11359 lt_cv_sys_max_cmd_len=8192;
11360 ;;
11361
11362 mint*)
11363 # On MiNT this can take a long time and run out of memory.
11364 lt_cv_sys_max_cmd_len=8192;
11365 ;;
11366
11367 amigaos*)
11368 # On AmigaOS with pdksh, this test takes hours, literally.
11369 # So we just punt and use a minimum line length of 8192.
11370 lt_cv_sys_max_cmd_len=8192;
11371 ;;
11372
11373 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11374 # This has been around since 386BSD, at least. Likely further.
11375 if test -x /sbin/sysctl; then
11376 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11377 elif test -x /usr/sbin/sysctl; then
11378 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11379 else
11380 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
11381 fi
11382 # And add a safety zone
11383 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11384 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11385 ;;
11386
11387 interix*)
11388 # We know the value 262144 and hardcode it with a safety zone (like BSD)
11389 lt_cv_sys_max_cmd_len=196608
11390 ;;
11391
11392 os2*)
11393 # The test takes a long time on OS/2.
11394 lt_cv_sys_max_cmd_len=8192
11395 ;;
11396
11397 osf*)
11398 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11399 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11400 # nice to cause kernel panics so lets avoid the loop below.
11401 # First set a reasonable default.
11402 lt_cv_sys_max_cmd_len=16384
11403 #
11404 if test -x /sbin/sysconfig; then
11405 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11406 *1*) lt_cv_sys_max_cmd_len=-1 ;;
11407 esac
11408 fi
11409 ;;
11410 sco3.2v5*)
11411 lt_cv_sys_max_cmd_len=102400
11412 ;;
11413 sysv5* | sco5v6* | sysv4.2uw2*)
11414 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11415 if test -n "$kargmax"; then
11416 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
11417 else
11418 lt_cv_sys_max_cmd_len=32768
11419 fi
11420 ;;
11421 *)
11422 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11423 if test -n "$lt_cv_sys_max_cmd_len"; then
11424 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11425 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11426 else
11427 # Make teststring a little bigger before we do anything with it.
11428 # a 1K string should be a reasonable start.
11429 for i in 1 2 3 4 5 6 7 8 ; do
11430 teststring=$teststring$teststring
11431 done
11432 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11433 # If test is not a shell built-in, we'll probably end up computing a
11434 # maximum length that is only half of the actual maximum length, but
11435 # we can't tell.
11436 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
11437 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11438 test $i != 17 # 1/2 MB should be enough
11439 do
11440 i=`expr $i + 1`
11441 teststring=$teststring$teststring
11442 done
11443 # Only check the string length outside the loop.
11444 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11445 teststring=
11446 # Add a significant safety factor because C++ compilers can tack on
11447 # massive amounts of additional arguments before passing them to the
11448 # linker. It appears as though 1/2 is a usable value.
11449 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11450 fi
11451 ;;
11452 esac
11453
11454 fi
11455
11456 if test -n $lt_cv_sys_max_cmd_len ; then
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11458 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11459 else
11460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11461 $as_echo "none" >&6; }
11462 fi
11463 max_cmd_len=$lt_cv_sys_max_cmd_len
11464
11465
11466
11467
11468
11469
11470 : ${CP="cp -f"}
11471 : ${MV="mv -f"}
11472 : ${RM="rm -f"}
11473
11474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11475 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11476 # Try some XSI features
11477 xsi_shell=no
11478 ( _lt_dummy="a/b/c"
11479 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
11480 = c,a/b,b/c, \
11481 && eval 'test $(( 1 + 1 )) -eq 2 \
11482 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11483 && xsi_shell=yes
11484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11485 $as_echo "$xsi_shell" >&6; }
11486
11487
11488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11489 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11490 lt_shell_append=no
11491 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11492 >/dev/null 2>&1 \
11493 && lt_shell_append=yes
11494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11495 $as_echo "$lt_shell_append" >&6; }
11496
11497
11498 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11499 lt_unset=unset
11500 else
11501 lt_unset=false
11502 fi
11503
11504
11505
11506
11507
11508 # test EBCDIC or ASCII
11509 case `echo X|tr X '\101'` in
11510 A) # ASCII based system
11511 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11512 lt_SP2NL='tr \040 \012'
11513 lt_NL2SP='tr \015\012 \040\040'
11514 ;;
11515 *) # EBCDIC based system
11516 lt_SP2NL='tr \100 \n'
11517 lt_NL2SP='tr \r\n \100\100'
11518 ;;
11519 esac
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11530 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11531 if ${lt_cv_to_host_file_cmd+:} false; then :
11532 $as_echo_n "(cached) " >&6
11533 else
11534 case $host in
11535 *-*-mingw* )
11536 case $build in
11537 *-*-mingw* ) # actually msys
11538 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11539 ;;
11540 *-*-cygwin* )
11541 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11542 ;;
11543 * ) # otherwise, assume *nix
11544 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11545 ;;
11546 esac
11547 ;;
11548 *-*-cygwin* )
11549 case $build in
11550 *-*-mingw* ) # actually msys
11551 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11552 ;;
11553 *-*-cygwin* )
11554 lt_cv_to_host_file_cmd=func_convert_file_noop
11555 ;;
11556 * ) # otherwise, assume *nix
11557 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11558 ;;
11559 esac
11560 ;;
11561 * ) # unhandled hosts (and "normal" native builds)
11562 lt_cv_to_host_file_cmd=func_convert_file_noop
11563 ;;
11564 esac
11565
11566 fi
11567
11568 to_host_file_cmd=$lt_cv_to_host_file_cmd
11569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11570 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
11571
11572
11573
11574
11575
11576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11577 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11578 if ${lt_cv_to_tool_file_cmd+:} false; then :
11579 $as_echo_n "(cached) " >&6
11580 else
11581 #assume ordinary cross tools, or native build.
11582 lt_cv_to_tool_file_cmd=func_convert_file_noop
11583 case $host in
11584 *-*-mingw* )
11585 case $build in
11586 *-*-mingw* ) # actually msys
11587 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11588 ;;
11589 esac
11590 ;;
11591 esac
11592
11593 fi
11594
11595 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11597 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11598
11599
11600
11601
11602
11603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11604 $as_echo_n "checking for $LD option to reload object files... " >&6; }
11605 if ${lt_cv_ld_reload_flag+:} false; then :
11606 $as_echo_n "(cached) " >&6
11607 else
11608 lt_cv_ld_reload_flag='-r'
11609 fi
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11611 $as_echo "$lt_cv_ld_reload_flag" >&6; }
11612 reload_flag=$lt_cv_ld_reload_flag
11613 case $reload_flag in
11614 "" | " "*) ;;
11615 *) reload_flag=" $reload_flag" ;;
11616 esac
11617 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11618 case $host_os in
11619 cygwin* | mingw* | pw32* | cegcc*)
11620 if test "$GCC" != yes; then
11621 reload_cmds=false
11622 fi
11623 ;;
11624 darwin*)
11625 if test "$GCC" = yes; then
11626 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11627 else
11628 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11629 fi
11630 ;;
11631 esac
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641 if test -n "$ac_tool_prefix"; then
11642 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11643 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11645 $as_echo_n "checking for $ac_word... " >&6; }
11646 if ${ac_cv_prog_OBJDUMP+:} false; then :
11647 $as_echo_n "(cached) " >&6
11648 else
11649 if test -n "$OBJDUMP"; then
11650 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11651 else
11652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11653 for as_dir in $PATH
11654 do
11655 IFS=$as_save_IFS
11656 test -z "$as_dir" && as_dir=.
11657 for ac_exec_ext in '' $ac_executable_extensions; do
11658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11659 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11661 break 2
11662 fi
11663 done
11664 done
11665 IFS=$as_save_IFS
11666
11667 fi
11668 fi
11669 OBJDUMP=$ac_cv_prog_OBJDUMP
11670 if test -n "$OBJDUMP"; then
11671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11672 $as_echo "$OBJDUMP" >&6; }
11673 else
11674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11675 $as_echo "no" >&6; }
11676 fi
11677
11678
11679 fi
11680 if test -z "$ac_cv_prog_OBJDUMP"; then
11681 ac_ct_OBJDUMP=$OBJDUMP
11682 # Extract the first word of "objdump", so it can be a program name with args.
11683 set dummy objdump; ac_word=$2
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11685 $as_echo_n "checking for $ac_word... " >&6; }
11686 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11687 $as_echo_n "(cached) " >&6
11688 else
11689 if test -n "$ac_ct_OBJDUMP"; then
11690 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11691 else
11692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11693 for as_dir in $PATH
11694 do
11695 IFS=$as_save_IFS
11696 test -z "$as_dir" && as_dir=.
11697 for ac_exec_ext in '' $ac_executable_extensions; do
11698 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11699 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11701 break 2
11702 fi
11703 done
11704 done
11705 IFS=$as_save_IFS
11706
11707 fi
11708 fi
11709 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11710 if test -n "$ac_ct_OBJDUMP"; then
11711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11712 $as_echo "$ac_ct_OBJDUMP" >&6; }
11713 else
11714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11715 $as_echo "no" >&6; }
11716 fi
11717
11718 if test "x$ac_ct_OBJDUMP" = x; then
11719 OBJDUMP="false"
11720 else
11721 case $cross_compiling:$ac_tool_warned in
11722 yes:)
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11724 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11725 ac_tool_warned=yes ;;
11726 esac
11727 OBJDUMP=$ac_ct_OBJDUMP
11728 fi
11729 else
11730 OBJDUMP="$ac_cv_prog_OBJDUMP"
11731 fi
11732
11733 test -z "$OBJDUMP" && OBJDUMP=objdump
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11744 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
11745 if ${lt_cv_deplibs_check_method+:} false; then :
11746 $as_echo_n "(cached) " >&6
11747 else
11748 lt_cv_file_magic_cmd='$MAGIC_CMD'
11749 lt_cv_file_magic_test_file=
11750 lt_cv_deplibs_check_method='unknown'
11751 # Need to set the preceding variable on all platforms that support
11752 # interlibrary dependencies.
11753 # 'none' -- dependencies not supported.
11754 # `unknown' -- same as none, but documents that we really don't know.
11755 # 'pass_all' -- all dependencies passed with no checks.
11756 # 'test_compile' -- check by making test program.
11757 # 'file_magic [[regex]]' -- check by looking for files in library path
11758 # which responds to the $file_magic_cmd with a given extended regex.
11759 # If you have `file' or equivalent on your system and you're not sure
11760 # whether `pass_all' will *always* work, you probably want this one.
11761
11762 case $host_os in
11763 aix[4-9]*)
11764 lt_cv_deplibs_check_method=pass_all
11765 ;;
11766
11767 beos*)
11768 lt_cv_deplibs_check_method=pass_all
11769 ;;
11770
11771 bsdi[45]*)
11772 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11773 lt_cv_file_magic_cmd='/usr/bin/file -L'
11774 lt_cv_file_magic_test_file=/shlib/libc.so
11775 ;;
11776
11777 cygwin*)
11778 # func_win32_libid is a shell function defined in ltmain.sh
11779 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11780 lt_cv_file_magic_cmd='func_win32_libid'
11781 ;;
11782
11783 mingw* | pw32*)
11784 # Base MSYS/MinGW do not provide the 'file' command needed by
11785 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11786 # unless we find 'file', for example because we are cross-compiling.
11787 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11788 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
11789 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11790 lt_cv_file_magic_cmd='func_win32_libid'
11791 else
11792 # Keep this pattern in sync with the one in func_win32_libid.
11793 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
11794 lt_cv_file_magic_cmd='$OBJDUMP -f'
11795 fi
11796 ;;
11797
11798 cegcc*)
11799 # use the weaker test based on 'objdump'. See mingw*.
11800 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11801 lt_cv_file_magic_cmd='$OBJDUMP -f'
11802 ;;
11803
11804 darwin* | rhapsody*)
11805 lt_cv_deplibs_check_method=pass_all
11806 ;;
11807
11808 freebsd* | dragonfly*)
11809 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11810 case $host_cpu in
11811 i*86 )
11812 # Not sure whether the presence of OpenBSD here was a mistake.
11813 # Let's accept both of them until this is cleared up.
11814 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11815 lt_cv_file_magic_cmd=/usr/bin/file
11816 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11817 ;;
11818 esac
11819 else
11820 lt_cv_deplibs_check_method=pass_all
11821 fi
11822 ;;
11823
11824 gnu*)
11825 lt_cv_deplibs_check_method=pass_all
11826 ;;
11827
11828 haiku*)
11829 lt_cv_deplibs_check_method=pass_all
11830 ;;
11831
11832 hpux10.20* | hpux11*)
11833 lt_cv_file_magic_cmd=/usr/bin/file
11834 case $host_cpu in
11835 ia64*)
11836 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11837 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11838 ;;
11839 hppa*64*)
11840 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]'
11841 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11842 ;;
11843 *)
11844 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
11845 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11846 ;;
11847 esac
11848 ;;
11849
11850 interix[3-9]*)
11851 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11852 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11853 ;;
11854
11855 irix5* | irix6* | nonstopux*)
11856 case $LD in
11857 *-32|*"-32 ") libmagic=32-bit;;
11858 *-n32|*"-n32 ") libmagic=N32;;
11859 *-64|*"-64 ") libmagic=64-bit;;
11860 *) libmagic=never-match;;
11861 esac
11862 lt_cv_deplibs_check_method=pass_all
11863 ;;
11864
11865 # This must be glibc/ELF.
11866 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11867 lt_cv_deplibs_check_method=pass_all
11868 ;;
11869
11870 netbsd*)
11871 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11872 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11873 else
11874 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11875 fi
11876 ;;
11877
11878 newos6*)
11879 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11880 lt_cv_file_magic_cmd=/usr/bin/file
11881 lt_cv_file_magic_test_file=/usr/lib/libnls.so
11882 ;;
11883
11884 *nto* | *qnx*)
11885 lt_cv_deplibs_check_method=pass_all
11886 ;;
11887
11888 openbsd*)
11889 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11890 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11891 else
11892 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11893 fi
11894 ;;
11895
11896 osf3* | osf4* | osf5*)
11897 lt_cv_deplibs_check_method=pass_all
11898 ;;
11899
11900 rdos*)
11901 lt_cv_deplibs_check_method=pass_all
11902 ;;
11903
11904 solaris*)
11905 lt_cv_deplibs_check_method=pass_all
11906 ;;
11907
11908 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11909 lt_cv_deplibs_check_method=pass_all
11910 ;;
11911
11912 sysv4 | sysv4.3*)
11913 case $host_vendor in
11914 motorola)
11915 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]'
11916 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11917 ;;
11918 ncr)
11919 lt_cv_deplibs_check_method=pass_all
11920 ;;
11921 sequent)
11922 lt_cv_file_magic_cmd='/bin/file'
11923 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11924 ;;
11925 sni)
11926 lt_cv_file_magic_cmd='/bin/file'
11927 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11928 lt_cv_file_magic_test_file=/lib/libc.so
11929 ;;
11930 siemens)
11931 lt_cv_deplibs_check_method=pass_all
11932 ;;
11933 pc)
11934 lt_cv_deplibs_check_method=pass_all
11935 ;;
11936 esac
11937 ;;
11938
11939 tpf*)
11940 lt_cv_deplibs_check_method=pass_all
11941 ;;
11942 esac
11943
11944 fi
11945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11946 $as_echo "$lt_cv_deplibs_check_method" >&6; }
11947
11948 file_magic_glob=
11949 want_nocaseglob=no
11950 if test "$build" = "$host"; then
11951 case $host_os in
11952 mingw* | pw32*)
11953 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11954 want_nocaseglob=yes
11955 else
11956 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
11957 fi
11958 ;;
11959 esac
11960 fi
11961
11962 file_magic_cmd=$lt_cv_file_magic_cmd
11963 deplibs_check_method=$lt_cv_deplibs_check_method
11964 test -z "$deplibs_check_method" && deplibs_check_method=unknown
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987 if test -n "$ac_tool_prefix"; then
11988 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11989 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11991 $as_echo_n "checking for $ac_word... " >&6; }
11992 if ${ac_cv_prog_DLLTOOL+:} false; then :
11993 $as_echo_n "(cached) " >&6
11994 else
11995 if test -n "$DLLTOOL"; then
11996 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11997 else
11998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11999 for as_dir in $PATH
12000 do
12001 IFS=$as_save_IFS
12002 test -z "$as_dir" && as_dir=.
12003 for ac_exec_ext in '' $ac_executable_extensions; do
12004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12005 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12007 break 2
12008 fi
12009 done
12010 done
12011 IFS=$as_save_IFS
12012
12013 fi
12014 fi
12015 DLLTOOL=$ac_cv_prog_DLLTOOL
12016 if test -n "$DLLTOOL"; then
12017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12018 $as_echo "$DLLTOOL" >&6; }
12019 else
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12021 $as_echo "no" >&6; }
12022 fi
12023
12024
12025 fi
12026 if test -z "$ac_cv_prog_DLLTOOL"; then
12027 ac_ct_DLLTOOL=$DLLTOOL
12028 # Extract the first word of "dlltool", so it can be a program name with args.
12029 set dummy dlltool; ac_word=$2
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12031 $as_echo_n "checking for $ac_word... " >&6; }
12032 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
12033 $as_echo_n "(cached) " >&6
12034 else
12035 if test -n "$ac_ct_DLLTOOL"; then
12036 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12037 else
12038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12039 for as_dir in $PATH
12040 do
12041 IFS=$as_save_IFS
12042 test -z "$as_dir" && as_dir=.
12043 for ac_exec_ext in '' $ac_executable_extensions; do
12044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12045 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12047 break 2
12048 fi
12049 done
12050 done
12051 IFS=$as_save_IFS
12052
12053 fi
12054 fi
12055 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12056 if test -n "$ac_ct_DLLTOOL"; then
12057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12058 $as_echo "$ac_ct_DLLTOOL" >&6; }
12059 else
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12061 $as_echo "no" >&6; }
12062 fi
12063
12064 if test "x$ac_ct_DLLTOOL" = x; then
12065 DLLTOOL="false"
12066 else
12067 case $cross_compiling:$ac_tool_warned in
12068 yes:)
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12070 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12071 ac_tool_warned=yes ;;
12072 esac
12073 DLLTOOL=$ac_ct_DLLTOOL
12074 fi
12075 else
12076 DLLTOOL="$ac_cv_prog_DLLTOOL"
12077 fi
12078
12079 test -z "$DLLTOOL" && DLLTOOL=dlltool
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12091 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
12092 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
12093 $as_echo_n "(cached) " >&6
12094 else
12095 lt_cv_sharedlib_from_linklib_cmd='unknown'
12096
12097 case $host_os in
12098 cygwin* | mingw* | pw32* | cegcc*)
12099 # two different shell functions defined in ltmain.sh
12100 # decide which to use based on capabilities of $DLLTOOL
12101 case `$DLLTOOL --help 2>&1` in
12102 *--identify-strict*)
12103 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12104 ;;
12105 *)
12106 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12107 ;;
12108 esac
12109 ;;
12110 *)
12111 # fallback: assume linklib IS sharedlib
12112 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
12113 ;;
12114 esac
12115
12116 fi
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12118 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12119 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12120 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12121
12122
12123
12124
12125
12126
12127
12128 if test -n "$ac_tool_prefix"; then
12129 for ac_prog in ar
12130 do
12131 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12132 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12134 $as_echo_n "checking for $ac_word... " >&6; }
12135 if ${ac_cv_prog_AR+:} false; then :
12136 $as_echo_n "(cached) " >&6
12137 else
12138 if test -n "$AR"; then
12139 ac_cv_prog_AR="$AR" # Let the user override the test.
12140 else
12141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12142 for as_dir in $PATH
12143 do
12144 IFS=$as_save_IFS
12145 test -z "$as_dir" && as_dir=.
12146 for ac_exec_ext in '' $ac_executable_extensions; do
12147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12148 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
12149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12150 break 2
12151 fi
12152 done
12153 done
12154 IFS=$as_save_IFS
12155
12156 fi
12157 fi
12158 AR=$ac_cv_prog_AR
12159 if test -n "$AR"; then
12160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12161 $as_echo "$AR" >&6; }
12162 else
12163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12164 $as_echo "no" >&6; }
12165 fi
12166
12167
12168 test -n "$AR" && break
12169 done
12170 fi
12171 if test -z "$AR"; then
12172 ac_ct_AR=$AR
12173 for ac_prog in ar
12174 do
12175 # Extract the first word of "$ac_prog", so it can be a program name with args.
12176 set dummy $ac_prog; ac_word=$2
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12178 $as_echo_n "checking for $ac_word... " >&6; }
12179 if ${ac_cv_prog_ac_ct_AR+:} false; then :
12180 $as_echo_n "(cached) " >&6
12181 else
12182 if test -n "$ac_ct_AR"; then
12183 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12184 else
12185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12186 for as_dir in $PATH
12187 do
12188 IFS=$as_save_IFS
12189 test -z "$as_dir" && as_dir=.
12190 for ac_exec_ext in '' $ac_executable_extensions; do
12191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12192 ac_cv_prog_ac_ct_AR="$ac_prog"
12193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12194 break 2
12195 fi
12196 done
12197 done
12198 IFS=$as_save_IFS
12199
12200 fi
12201 fi
12202 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12203 if test -n "$ac_ct_AR"; then
12204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12205 $as_echo "$ac_ct_AR" >&6; }
12206 else
12207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12208 $as_echo "no" >&6; }
12209 fi
12210
12211
12212 test -n "$ac_ct_AR" && break
12213 done
12214
12215 if test "x$ac_ct_AR" = x; then
12216 AR="false"
12217 else
12218 case $cross_compiling:$ac_tool_warned in
12219 yes:)
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12221 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12222 ac_tool_warned=yes ;;
12223 esac
12224 AR=$ac_ct_AR
12225 fi
12226 fi
12227
12228 : ${AR=ar}
12229 : ${AR_FLAGS=cru}
12230
12231
12232
12233
12234
12235
12236
12237
12238
12239
12240
12241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12242 $as_echo_n "checking for archiver @FILE support... " >&6; }
12243 if ${lt_cv_ar_at_file+:} false; then :
12244 $as_echo_n "(cached) " >&6
12245 else
12246 lt_cv_ar_at_file=no
12247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12248 /* end confdefs.h. */
12249
12250 int
12251 main ()
12252 {
12253
12254 ;
12255 return 0;
12256 }
12257 _ACEOF
12258 if ac_fn_c_try_compile "$LINENO"; then :
12259 echo conftest.$ac_objext > conftest.lst
12260 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12261 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12262 (eval $lt_ar_try) 2>&5
12263 ac_status=$?
12264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12265 test $ac_status = 0; }
12266 if test "$ac_status" -eq 0; then
12267 # Ensure the archiver fails upon bogus file names.
12268 rm -f conftest.$ac_objext libconftest.a
12269 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12270 (eval $lt_ar_try) 2>&5
12271 ac_status=$?
12272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12273 test $ac_status = 0; }
12274 if test "$ac_status" -ne 0; then
12275 lt_cv_ar_at_file=@
12276 fi
12277 fi
12278 rm -f conftest.* libconftest.a
12279
12280 fi
12281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12282
12283 fi
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12285 $as_echo "$lt_cv_ar_at_file" >&6; }
12286
12287 if test "x$lt_cv_ar_at_file" = xno; then
12288 archiver_list_spec=
12289 else
12290 archiver_list_spec=$lt_cv_ar_at_file
12291 fi
12292
12293
12294
12295
12296
12297
12298
12299 if test -n "$ac_tool_prefix"; then
12300 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12301 set dummy ${ac_tool_prefix}strip; ac_word=$2
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12303 $as_echo_n "checking for $ac_word... " >&6; }
12304 if ${ac_cv_prog_STRIP+:} false; then :
12305 $as_echo_n "(cached) " >&6
12306 else
12307 if test -n "$STRIP"; then
12308 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12309 else
12310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12311 for as_dir in $PATH
12312 do
12313 IFS=$as_save_IFS
12314 test -z "$as_dir" && as_dir=.
12315 for ac_exec_ext in '' $ac_executable_extensions; do
12316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12317 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12319 break 2
12320 fi
12321 done
12322 done
12323 IFS=$as_save_IFS
12324
12325 fi
12326 fi
12327 STRIP=$ac_cv_prog_STRIP
12328 if test -n "$STRIP"; then
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12330 $as_echo "$STRIP" >&6; }
12331 else
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12333 $as_echo "no" >&6; }
12334 fi
12335
12336
12337 fi
12338 if test -z "$ac_cv_prog_STRIP"; then
12339 ac_ct_STRIP=$STRIP
12340 # Extract the first word of "strip", so it can be a program name with args.
12341 set dummy strip; ac_word=$2
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12343 $as_echo_n "checking for $ac_word... " >&6; }
12344 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12345 $as_echo_n "(cached) " >&6
12346 else
12347 if test -n "$ac_ct_STRIP"; then
12348 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12349 else
12350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12351 for as_dir in $PATH
12352 do
12353 IFS=$as_save_IFS
12354 test -z "$as_dir" && as_dir=.
12355 for ac_exec_ext in '' $ac_executable_extensions; do
12356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12357 ac_cv_prog_ac_ct_STRIP="strip"
12358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12359 break 2
12360 fi
12361 done
12362 done
12363 IFS=$as_save_IFS
12364
12365 fi
12366 fi
12367 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12368 if test -n "$ac_ct_STRIP"; then
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12370 $as_echo "$ac_ct_STRIP" >&6; }
12371 else
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12373 $as_echo "no" >&6; }
12374 fi
12375
12376 if test "x$ac_ct_STRIP" = x; then
12377 STRIP=":"
12378 else
12379 case $cross_compiling:$ac_tool_warned in
12380 yes:)
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12382 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12383 ac_tool_warned=yes ;;
12384 esac
12385 STRIP=$ac_ct_STRIP
12386 fi
12387 else
12388 STRIP="$ac_cv_prog_STRIP"
12389 fi
12390
12391 test -z "$STRIP" && STRIP=:
12392
12393
12394
12395
12396
12397
12398 if test -n "$ac_tool_prefix"; then
12399 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12400 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12402 $as_echo_n "checking for $ac_word... " >&6; }
12403 if ${ac_cv_prog_RANLIB+:} false; then :
12404 $as_echo_n "(cached) " >&6
12405 else
12406 if test -n "$RANLIB"; then
12407 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12408 else
12409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12410 for as_dir in $PATH
12411 do
12412 IFS=$as_save_IFS
12413 test -z "$as_dir" && as_dir=.
12414 for ac_exec_ext in '' $ac_executable_extensions; do
12415 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12416 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12418 break 2
12419 fi
12420 done
12421 done
12422 IFS=$as_save_IFS
12423
12424 fi
12425 fi
12426 RANLIB=$ac_cv_prog_RANLIB
12427 if test -n "$RANLIB"; then
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12429 $as_echo "$RANLIB" >&6; }
12430 else
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12432 $as_echo "no" >&6; }
12433 fi
12434
12435
12436 fi
12437 if test -z "$ac_cv_prog_RANLIB"; then
12438 ac_ct_RANLIB=$RANLIB
12439 # Extract the first word of "ranlib", so it can be a program name with args.
12440 set dummy ranlib; ac_word=$2
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12442 $as_echo_n "checking for $ac_word... " >&6; }
12443 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12444 $as_echo_n "(cached) " >&6
12445 else
12446 if test -n "$ac_ct_RANLIB"; then
12447 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12448 else
12449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12450 for as_dir in $PATH
12451 do
12452 IFS=$as_save_IFS
12453 test -z "$as_dir" && as_dir=.
12454 for ac_exec_ext in '' $ac_executable_extensions; do
12455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12456 ac_cv_prog_ac_ct_RANLIB="ranlib"
12457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12458 break 2
12459 fi
12460 done
12461 done
12462 IFS=$as_save_IFS
12463
12464 fi
12465 fi
12466 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12467 if test -n "$ac_ct_RANLIB"; then
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12469 $as_echo "$ac_ct_RANLIB" >&6; }
12470 else
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12472 $as_echo "no" >&6; }
12473 fi
12474
12475 if test "x$ac_ct_RANLIB" = x; then
12476 RANLIB=":"
12477 else
12478 case $cross_compiling:$ac_tool_warned in
12479 yes:)
12480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12481 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12482 ac_tool_warned=yes ;;
12483 esac
12484 RANLIB=$ac_ct_RANLIB
12485 fi
12486 else
12487 RANLIB="$ac_cv_prog_RANLIB"
12488 fi
12489
12490 test -z "$RANLIB" && RANLIB=:
12491
12492
12493
12494
12495
12496
12497 # Determine commands to create old-style static archives.
12498 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12499 old_postinstall_cmds='chmod 644 $oldlib'
12500 old_postuninstall_cmds=
12501
12502 if test -n "$RANLIB"; then
12503 case $host_os in
12504 openbsd*)
12505 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
12506 ;;
12507 *)
12508 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
12509 ;;
12510 esac
12511 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
12512 fi
12513
12514 case $host_os in
12515 darwin*)
12516 lock_old_archive_extraction=yes ;;
12517 *)
12518 lock_old_archive_extraction=no ;;
12519 esac
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559 # If no C compiler was specified, use CC.
12560 LTCC=${LTCC-"$CC"}
12561
12562 # If no C compiler flags were specified, use CFLAGS.
12563 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12564
12565 # Allow CC to be a program name with arguments.
12566 compiler=$CC
12567
12568
12569 # Check for command to grab the raw symbol name followed by C symbol from nm.
12570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12571 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12572 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
12573 $as_echo_n "(cached) " >&6
12574 else
12575
12576 # These are sane defaults that work on at least a few old systems.
12577 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
12578
12579 # Character class describing NM global symbol codes.
12580 symcode='[BCDEGRST]'
12581
12582 # Regexp to match symbols that can be accessed directly from C.
12583 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12584
12585 # Define system-specific variables.
12586 case $host_os in
12587 aix*)
12588 symcode='[BCDT]'
12589 ;;
12590 cygwin* | mingw* | pw32* | cegcc*)
12591 symcode='[ABCDGISTW]'
12592 ;;
12593 hpux*)
12594 if test "$host_cpu" = ia64; then
12595 symcode='[ABCDEGRST]'
12596 fi
12597 ;;
12598 irix* | nonstopux*)
12599 symcode='[BCDEGRST]'
12600 ;;
12601 osf*)
12602 symcode='[BCDEGQRST]'
12603 ;;
12604 solaris*)
12605 symcode='[BDRT]'
12606 ;;
12607 sco3.2v5*)
12608 symcode='[DT]'
12609 ;;
12610 sysv4.2uw2*)
12611 symcode='[DT]'
12612 ;;
12613 sysv5* | sco5v6* | unixware* | OpenUNIX*)
12614 symcode='[ABDT]'
12615 ;;
12616 sysv4)
12617 symcode='[DFNSTU]'
12618 ;;
12619 esac
12620
12621 # If we're using GNU nm, then use its standard symbol codes.
12622 case `$NM -V 2>&1` in
12623 *GNU* | *'with BFD'*)
12624 symcode='[ABCDGIRSTW]' ;;
12625 esac
12626
12627 # Transform an extracted symbol line into a proper C declaration.
12628 # Some systems (esp. on ia64) link data and code symbols differently,
12629 # so use this general approach.
12630 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12631
12632 # Transform an extracted symbol line into symbol name and symbol address
12633 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
12634 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
12635
12636 # Handle CRLF in mingw tool chain
12637 opt_cr=
12638 case $build_os in
12639 mingw*)
12640 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12641 ;;
12642 esac
12643
12644 # Try without a prefix underscore, then with it.
12645 for ac_symprfx in "" "_"; do
12646
12647 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12648 symxfrm="\\1 $ac_symprfx\\2 \\2"
12649
12650 # Write the raw and C identifiers.
12651 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12652 # Fake it for dumpbin and say T for any non-static function
12653 # and D for any global variable.
12654 # Also find C++ and __fastcall symbols from MSVC++,
12655 # which start with @ or ?.
12656 lt_cv_sys_global_symbol_pipe="$AWK '"\
12657 " {last_section=section; section=\$ 3};"\
12658 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
12659 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12660 " \$ 0!~/External *\|/{next};"\
12661 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12662 " {if(hide[section]) next};"\
12663 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12664 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12665 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
12666 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12667 " ' prfx=^$ac_symprfx"
12668 else
12669 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12670 fi
12671 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
12672
12673 # Check to see that the pipe works correctly.
12674 pipe_works=no
12675
12676 rm -f conftest*
12677 cat > conftest.$ac_ext <<_LT_EOF
12678 #ifdef __cplusplus
12679 extern "C" {
12680 #endif
12681 char nm_test_var;
12682 void nm_test_func(void);
12683 void nm_test_func(void){}
12684 #ifdef __cplusplus
12685 }
12686 #endif
12687 int main(){nm_test_var='a';nm_test_func();return(0);}
12688 _LT_EOF
12689
12690 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12691 (eval $ac_compile) 2>&5
12692 ac_status=$?
12693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12694 test $ac_status = 0; }; then
12695 # Now try to grab the symbols.
12696 nlist=conftest.nm
12697 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12698 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12699 ac_status=$?
12700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12701 test $ac_status = 0; } && test -s "$nlist"; then
12702 # Try sorting and uniquifying the output.
12703 if sort "$nlist" | uniq > "$nlist"T; then
12704 mv -f "$nlist"T "$nlist"
12705 else
12706 rm -f "$nlist"T
12707 fi
12708
12709 # Make sure that we snagged all the symbols we need.
12710 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12711 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12712 cat <<_LT_EOF > conftest.$ac_ext
12713 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
12714 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
12715 /* DATA imports from DLLs on WIN32 con't be const, because runtime
12716 relocations are performed -- see ld's documentation on pseudo-relocs. */
12717 # define LT_DLSYM_CONST
12718 #elif defined(__osf__)
12719 /* This system does not cope well with relocations in const data. */
12720 # define LT_DLSYM_CONST
12721 #else
12722 # define LT_DLSYM_CONST const
12723 #endif
12724
12725 #ifdef __cplusplus
12726 extern "C" {
12727 #endif
12728
12729 _LT_EOF
12730 # Now generate the symbol file.
12731 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12732
12733 cat <<_LT_EOF >> conftest.$ac_ext
12734
12735 /* The mapping between symbol names and symbols. */
12736 LT_DLSYM_CONST struct {
12737 const char *name;
12738 void *address;
12739 }
12740 lt__PROGRAM__LTX_preloaded_symbols[] =
12741 {
12742 { "@PROGRAM@", (void *) 0 },
12743 _LT_EOF
12744 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12745 cat <<\_LT_EOF >> conftest.$ac_ext
12746 {0, (void *) 0}
12747 };
12748
12749 /* This works around a problem in FreeBSD linker */
12750 #ifdef FREEBSD_WORKAROUND
12751 static const void *lt_preloaded_setup() {
12752 return lt__PROGRAM__LTX_preloaded_symbols;
12753 }
12754 #endif
12755
12756 #ifdef __cplusplus
12757 }
12758 #endif
12759 _LT_EOF
12760 # Now try linking the two files.
12761 mv conftest.$ac_objext conftstm.$ac_objext
12762 lt_globsym_save_LIBS=$LIBS
12763 lt_globsym_save_CFLAGS=$CFLAGS
12764 LIBS="conftstm.$ac_objext"
12765 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12766 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12767 (eval $ac_link) 2>&5
12768 ac_status=$?
12769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12770 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12771 pipe_works=yes
12772 fi
12773 LIBS=$lt_globsym_save_LIBS
12774 CFLAGS=$lt_globsym_save_CFLAGS
12775 else
12776 echo "cannot find nm_test_func in $nlist" >&5
12777 fi
12778 else
12779 echo "cannot find nm_test_var in $nlist" >&5
12780 fi
12781 else
12782 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12783 fi
12784 else
12785 echo "$progname: failed program was:" >&5
12786 cat conftest.$ac_ext >&5
12787 fi
12788 rm -rf conftest* conftst*
12789
12790 # Do not use the global_symbol_pipe unless it works.
12791 if test "$pipe_works" = yes; then
12792 break
12793 else
12794 lt_cv_sys_global_symbol_pipe=
12795 fi
12796 done
12797
12798 fi
12799
12800 if test -z "$lt_cv_sys_global_symbol_pipe"; then
12801 lt_cv_sys_global_symbol_to_cdecl=
12802 fi
12803 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12805 $as_echo "failed" >&6; }
12806 else
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12808 $as_echo "ok" >&6; }
12809 fi
12810
12811 # Response file support.
12812 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12813 nm_file_list_spec='@'
12814 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12815 nm_file_list_spec='@'
12816 fi
12817
12818
12819
12820
12821
12822
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12845 $as_echo_n "checking for sysroot... " >&6; }
12846
12847 # Check whether --with-sysroot was given.
12848 if test "${with_sysroot+set}" = set; then :
12849 withval=$with_sysroot;
12850 else
12851 with_sysroot=no
12852 fi
12853
12854
12855 lt_sysroot=
12856 case ${with_sysroot} in #(
12857 yes)
12858 if test "$GCC" = yes; then
12859 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12860 fi
12861 ;; #(
12862 /*)
12863 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12864 ;; #(
12865 no|'')
12866 ;; #(
12867 *)
12868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12869 $as_echo "${with_sysroot}" >&6; }
12870 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12871 ;;
12872 esac
12873
12874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12875 $as_echo "${lt_sysroot:-no}" >&6; }
12876
12877
12878
12879
12880
12881 # Check whether --enable-libtool-lock was given.
12882 if test "${enable_libtool_lock+set}" = set; then :
12883 enableval=$enable_libtool_lock;
12884 fi
12885
12886 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12887
12888 # Some flags need to be propagated to the compiler or linker for good
12889 # libtool support.
12890 case $host in
12891 ia64-*-hpux*)
12892 # Find out which ABI we are using.
12893 echo 'int i;' > conftest.$ac_ext
12894 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12895 (eval $ac_compile) 2>&5
12896 ac_status=$?
12897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12898 test $ac_status = 0; }; then
12899 case `/usr/bin/file conftest.$ac_objext` in
12900 *ELF-32*)
12901 HPUX_IA64_MODE="32"
12902 ;;
12903 *ELF-64*)
12904 HPUX_IA64_MODE="64"
12905 ;;
12906 esac
12907 fi
12908 rm -rf conftest*
12909 ;;
12910 *-*-irix6*)
12911 # Find out which ABI we are using.
12912 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
12913 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12914 (eval $ac_compile) 2>&5
12915 ac_status=$?
12916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12917 test $ac_status = 0; }; then
12918 if test "$lt_cv_prog_gnu_ld" = yes; then
12919 case `/usr/bin/file conftest.$ac_objext` in
12920 *32-bit*)
12921 LD="${LD-ld} -melf32bsmip"
12922 ;;
12923 *N32*)
12924 LD="${LD-ld} -melf32bmipn32"
12925 ;;
12926 *64-bit*)
12927 LD="${LD-ld} -melf64bmip"
12928 ;;
12929 esac
12930 else
12931 case `/usr/bin/file conftest.$ac_objext` in
12932 *32-bit*)
12933 LD="${LD-ld} -32"
12934 ;;
12935 *N32*)
12936 LD="${LD-ld} -n32"
12937 ;;
12938 *64-bit*)
12939 LD="${LD-ld} -64"
12940 ;;
12941 esac
12942 fi
12943 fi
12944 rm -rf conftest*
12945 ;;
12946
12947 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12948 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12949 # Find out which ABI we are using.
12950 echo 'int i;' > conftest.$ac_ext
12951 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12952 (eval $ac_compile) 2>&5
12953 ac_status=$?
12954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12955 test $ac_status = 0; }; then
12956 case `/usr/bin/file conftest.o` in
12957 *32-bit*)
12958 case $host in
12959 x86_64-*kfreebsd*-gnu)
12960 LD="${LD-ld} -m elf_i386_fbsd"
12961 ;;
12962 x86_64-*linux*)
12963 LD="${LD-ld} -m elf_i386"
12964 ;;
12965 ppc64-*linux*|powerpc64-*linux*)
12966 LD="${LD-ld} -m elf32ppclinux"
12967 ;;
12968 s390x-*linux*)
12969 LD="${LD-ld} -m elf_s390"
12970 ;;
12971 sparc64-*linux*)
12972 LD="${LD-ld} -m elf32_sparc"
12973 ;;
12974 esac
12975 ;;
12976 *64-bit*)
12977 case $host in
12978 x86_64-*kfreebsd*-gnu)
12979 LD="${LD-ld} -m elf_x86_64_fbsd"
12980 ;;
12981 x86_64-*linux*)
12982 LD="${LD-ld} -m elf_x86_64"
12983 ;;
12984 ppc*-*linux*|powerpc*-*linux*)
12985 LD="${LD-ld} -m elf64ppc"
12986 ;;
12987 s390*-*linux*|s390*-*tpf*)
12988 LD="${LD-ld} -m elf64_s390"
12989 ;;
12990 sparc*-*linux*)
12991 LD="${LD-ld} -m elf64_sparc"
12992 ;;
12993 esac
12994 ;;
12995 esac
12996 fi
12997 rm -rf conftest*
12998 ;;
12999
13000 *-*-sco3.2v5*)
13001 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13002 SAVE_CFLAGS="$CFLAGS"
13003 CFLAGS="$CFLAGS -belf"
13004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13005 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13006 if ${lt_cv_cc_needs_belf+:} false; then :
13007 $as_echo_n "(cached) " >&6
13008 else
13009 ac_ext=c
13010 ac_cpp='$CPP $CPPFLAGS'
13011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13014
13015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13016 /* end confdefs.h. */
13017
13018 int
13019 main ()
13020 {
13021
13022 ;
13023 return 0;
13024 }
13025 _ACEOF
13026 if ac_fn_c_try_link "$LINENO"; then :
13027 lt_cv_cc_needs_belf=yes
13028 else
13029 lt_cv_cc_needs_belf=no
13030 fi
13031 rm -f core conftest.err conftest.$ac_objext \
13032 conftest$ac_exeext conftest.$ac_ext
13033 ac_ext=c
13034 ac_cpp='$CPP $CPPFLAGS'
13035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13038
13039 fi
13040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13041 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13042 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13043 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13044 CFLAGS="$SAVE_CFLAGS"
13045 fi
13046 ;;
13047 *-*solaris*)
13048 # Find out which ABI we are using.
13049 echo 'int i;' > conftest.$ac_ext
13050 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13051 (eval $ac_compile) 2>&5
13052 ac_status=$?
13053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13054 test $ac_status = 0; }; then
13055 case `/usr/bin/file conftest.o` in
13056 *64-bit*)
13057 case $lt_cv_prog_gnu_ld in
13058 yes*)
13059 case $host in
13060 i?86-*-solaris*)
13061 LD="${LD-ld} -m elf_x86_64"
13062 ;;
13063 sparc*-*-solaris*)
13064 LD="${LD-ld} -m elf64_sparc"
13065 ;;
13066 esac
13067 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
13068 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
13069 LD="${LD-ld}_sol2"
13070 fi
13071 ;;
13072 *)
13073 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13074 LD="${LD-ld} -64"
13075 fi
13076 ;;
13077 esac
13078 ;;
13079 esac
13080 fi
13081 rm -rf conftest*
13082 ;;
13083 esac
13084
13085 need_locks="$enable_libtool_lock"
13086
13087 if test -n "$ac_tool_prefix"; then
13088 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
13089 set dummy ${ac_tool_prefix}mt; ac_word=$2
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13091 $as_echo_n "checking for $ac_word... " >&6; }
13092 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
13093 $as_echo_n "(cached) " >&6
13094 else
13095 if test -n "$MANIFEST_TOOL"; then
13096 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
13097 else
13098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13099 for as_dir in $PATH
13100 do
13101 IFS=$as_save_IFS
13102 test -z "$as_dir" && as_dir=.
13103 for ac_exec_ext in '' $ac_executable_extensions; do
13104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13105 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
13106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13107 break 2
13108 fi
13109 done
13110 done
13111 IFS=$as_save_IFS
13112
13113 fi
13114 fi
13115 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
13116 if test -n "$MANIFEST_TOOL"; then
13117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
13118 $as_echo "$MANIFEST_TOOL" >&6; }
13119 else
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13121 $as_echo "no" >&6; }
13122 fi
13123
13124
13125 fi
13126 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
13127 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
13128 # Extract the first word of "mt", so it can be a program name with args.
13129 set dummy mt; ac_word=$2
13130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13131 $as_echo_n "checking for $ac_word... " >&6; }
13132 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
13133 $as_echo_n "(cached) " >&6
13134 else
13135 if test -n "$ac_ct_MANIFEST_TOOL"; then
13136 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13137 else
13138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13139 for as_dir in $PATH
13140 do
13141 IFS=$as_save_IFS
13142 test -z "$as_dir" && as_dir=.
13143 for ac_exec_ext in '' $ac_executable_extensions; do
13144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13145 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13147 break 2
13148 fi
13149 done
13150 done
13151 IFS=$as_save_IFS
13152
13153 fi
13154 fi
13155 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13156 if test -n "$ac_ct_MANIFEST_TOOL"; then
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13158 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
13159 else
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13161 $as_echo "no" >&6; }
13162 fi
13163
13164 if test "x$ac_ct_MANIFEST_TOOL" = x; then
13165 MANIFEST_TOOL=":"
13166 else
13167 case $cross_compiling:$ac_tool_warned in
13168 yes:)
13169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13170 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13171 ac_tool_warned=yes ;;
13172 esac
13173 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13174 fi
13175 else
13176 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13177 fi
13178
13179 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13181 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13182 if ${lt_cv_path_mainfest_tool+:} false; then :
13183 $as_echo_n "(cached) " >&6
13184 else
13185 lt_cv_path_mainfest_tool=no
13186 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13187 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13188 cat conftest.err >&5
13189 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13190 lt_cv_path_mainfest_tool=yes
13191 fi
13192 rm -f conftest*
13193 fi
13194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13195 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
13196 if test "x$lt_cv_path_mainfest_tool" != xyes; then
13197 MANIFEST_TOOL=:
13198 fi
13199
13200
13201
13202
13203
13204
13205 case $host_os in
13206 rhapsody* | darwin*)
13207 if test -n "$ac_tool_prefix"; then
13208 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13209 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13211 $as_echo_n "checking for $ac_word... " >&6; }
13212 if ${ac_cv_prog_DSYMUTIL+:} false; then :
13213 $as_echo_n "(cached) " >&6
13214 else
13215 if test -n "$DSYMUTIL"; then
13216 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13217 else
13218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13219 for as_dir in $PATH
13220 do
13221 IFS=$as_save_IFS
13222 test -z "$as_dir" && as_dir=.
13223 for ac_exec_ext in '' $ac_executable_extensions; do
13224 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13225 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13227 break 2
13228 fi
13229 done
13230 done
13231 IFS=$as_save_IFS
13232
13233 fi
13234 fi
13235 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13236 if test -n "$DSYMUTIL"; then
13237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13238 $as_echo "$DSYMUTIL" >&6; }
13239 else
13240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13241 $as_echo "no" >&6; }
13242 fi
13243
13244
13245 fi
13246 if test -z "$ac_cv_prog_DSYMUTIL"; then
13247 ac_ct_DSYMUTIL=$DSYMUTIL
13248 # Extract the first word of "dsymutil", so it can be a program name with args.
13249 set dummy dsymutil; ac_word=$2
13250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13251 $as_echo_n "checking for $ac_word... " >&6; }
13252 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
13253 $as_echo_n "(cached) " >&6
13254 else
13255 if test -n "$ac_ct_DSYMUTIL"; then
13256 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13257 else
13258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13259 for as_dir in $PATH
13260 do
13261 IFS=$as_save_IFS
13262 test -z "$as_dir" && as_dir=.
13263 for ac_exec_ext in '' $ac_executable_extensions; do
13264 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13265 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13267 break 2
13268 fi
13269 done
13270 done
13271 IFS=$as_save_IFS
13272
13273 fi
13274 fi
13275 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13276 if test -n "$ac_ct_DSYMUTIL"; then
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13278 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13279 else
13280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13281 $as_echo "no" >&6; }
13282 fi
13283
13284 if test "x$ac_ct_DSYMUTIL" = x; then
13285 DSYMUTIL=":"
13286 else
13287 case $cross_compiling:$ac_tool_warned in
13288 yes:)
13289 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13290 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13291 ac_tool_warned=yes ;;
13292 esac
13293 DSYMUTIL=$ac_ct_DSYMUTIL
13294 fi
13295 else
13296 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13297 fi
13298
13299 if test -n "$ac_tool_prefix"; then
13300 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13301 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13303 $as_echo_n "checking for $ac_word... " >&6; }
13304 if ${ac_cv_prog_NMEDIT+:} false; then :
13305 $as_echo_n "(cached) " >&6
13306 else
13307 if test -n "$NMEDIT"; then
13308 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13309 else
13310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13311 for as_dir in $PATH
13312 do
13313 IFS=$as_save_IFS
13314 test -z "$as_dir" && as_dir=.
13315 for ac_exec_ext in '' $ac_executable_extensions; do
13316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13317 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13319 break 2
13320 fi
13321 done
13322 done
13323 IFS=$as_save_IFS
13324
13325 fi
13326 fi
13327 NMEDIT=$ac_cv_prog_NMEDIT
13328 if test -n "$NMEDIT"; then
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13330 $as_echo "$NMEDIT" >&6; }
13331 else
13332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13333 $as_echo "no" >&6; }
13334 fi
13335
13336
13337 fi
13338 if test -z "$ac_cv_prog_NMEDIT"; then
13339 ac_ct_NMEDIT=$NMEDIT
13340 # Extract the first word of "nmedit", so it can be a program name with args.
13341 set dummy nmedit; ac_word=$2
13342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13343 $as_echo_n "checking for $ac_word... " >&6; }
13344 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
13345 $as_echo_n "(cached) " >&6
13346 else
13347 if test -n "$ac_ct_NMEDIT"; then
13348 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13349 else
13350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13351 for as_dir in $PATH
13352 do
13353 IFS=$as_save_IFS
13354 test -z "$as_dir" && as_dir=.
13355 for ac_exec_ext in '' $ac_executable_extensions; do
13356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13357 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13359 break 2
13360 fi
13361 done
13362 done
13363 IFS=$as_save_IFS
13364
13365 fi
13366 fi
13367 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13368 if test -n "$ac_ct_NMEDIT"; then
13369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13370 $as_echo "$ac_ct_NMEDIT" >&6; }
13371 else
13372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13373 $as_echo "no" >&6; }
13374 fi
13375
13376 if test "x$ac_ct_NMEDIT" = x; then
13377 NMEDIT=":"
13378 else
13379 case $cross_compiling:$ac_tool_warned in
13380 yes:)
13381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13382 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13383 ac_tool_warned=yes ;;
13384 esac
13385 NMEDIT=$ac_ct_NMEDIT
13386 fi
13387 else
13388 NMEDIT="$ac_cv_prog_NMEDIT"
13389 fi
13390
13391 if test -n "$ac_tool_prefix"; then
13392 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13393 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13395 $as_echo_n "checking for $ac_word... " >&6; }
13396 if ${ac_cv_prog_LIPO+:} false; then :
13397 $as_echo_n "(cached) " >&6
13398 else
13399 if test -n "$LIPO"; then
13400 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13401 else
13402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13403 for as_dir in $PATH
13404 do
13405 IFS=$as_save_IFS
13406 test -z "$as_dir" && as_dir=.
13407 for ac_exec_ext in '' $ac_executable_extensions; do
13408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13409 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13411 break 2
13412 fi
13413 done
13414 done
13415 IFS=$as_save_IFS
13416
13417 fi
13418 fi
13419 LIPO=$ac_cv_prog_LIPO
13420 if test -n "$LIPO"; then
13421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13422 $as_echo "$LIPO" >&6; }
13423 else
13424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13425 $as_echo "no" >&6; }
13426 fi
13427
13428
13429 fi
13430 if test -z "$ac_cv_prog_LIPO"; then
13431 ac_ct_LIPO=$LIPO
13432 # Extract the first word of "lipo", so it can be a program name with args.
13433 set dummy lipo; ac_word=$2
13434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13435 $as_echo_n "checking for $ac_word... " >&6; }
13436 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
13437 $as_echo_n "(cached) " >&6
13438 else
13439 if test -n "$ac_ct_LIPO"; then
13440 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13441 else
13442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13443 for as_dir in $PATH
13444 do
13445 IFS=$as_save_IFS
13446 test -z "$as_dir" && as_dir=.
13447 for ac_exec_ext in '' $ac_executable_extensions; do
13448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13449 ac_cv_prog_ac_ct_LIPO="lipo"
13450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13451 break 2
13452 fi
13453 done
13454 done
13455 IFS=$as_save_IFS
13456
13457 fi
13458 fi
13459 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13460 if test -n "$ac_ct_LIPO"; then
13461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13462 $as_echo "$ac_ct_LIPO" >&6; }
13463 else
13464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13465 $as_echo "no" >&6; }
13466 fi
13467
13468 if test "x$ac_ct_LIPO" = x; then
13469 LIPO=":"
13470 else
13471 case $cross_compiling:$ac_tool_warned in
13472 yes:)
13473 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13474 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13475 ac_tool_warned=yes ;;
13476 esac
13477 LIPO=$ac_ct_LIPO
13478 fi
13479 else
13480 LIPO="$ac_cv_prog_LIPO"
13481 fi
13482
13483 if test -n "$ac_tool_prefix"; then
13484 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13485 set dummy ${ac_tool_prefix}otool; ac_word=$2
13486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13487 $as_echo_n "checking for $ac_word... " >&6; }
13488 if ${ac_cv_prog_OTOOL+:} false; then :
13489 $as_echo_n "(cached) " >&6
13490 else
13491 if test -n "$OTOOL"; then
13492 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13493 else
13494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13495 for as_dir in $PATH
13496 do
13497 IFS=$as_save_IFS
13498 test -z "$as_dir" && as_dir=.
13499 for ac_exec_ext in '' $ac_executable_extensions; do
13500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13501 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13503 break 2
13504 fi
13505 done
13506 done
13507 IFS=$as_save_IFS
13508
13509 fi
13510 fi
13511 OTOOL=$ac_cv_prog_OTOOL
13512 if test -n "$OTOOL"; then
13513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13514 $as_echo "$OTOOL" >&6; }
13515 else
13516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13517 $as_echo "no" >&6; }
13518 fi
13519
13520
13521 fi
13522 if test -z "$ac_cv_prog_OTOOL"; then
13523 ac_ct_OTOOL=$OTOOL
13524 # Extract the first word of "otool", so it can be a program name with args.
13525 set dummy otool; ac_word=$2
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13527 $as_echo_n "checking for $ac_word... " >&6; }
13528 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
13529 $as_echo_n "(cached) " >&6
13530 else
13531 if test -n "$ac_ct_OTOOL"; then
13532 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13533 else
13534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13535 for as_dir in $PATH
13536 do
13537 IFS=$as_save_IFS
13538 test -z "$as_dir" && as_dir=.
13539 for ac_exec_ext in '' $ac_executable_extensions; do
13540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13541 ac_cv_prog_ac_ct_OTOOL="otool"
13542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13543 break 2
13544 fi
13545 done
13546 done
13547 IFS=$as_save_IFS
13548
13549 fi
13550 fi
13551 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13552 if test -n "$ac_ct_OTOOL"; then
13553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13554 $as_echo "$ac_ct_OTOOL" >&6; }
13555 else
13556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13557 $as_echo "no" >&6; }
13558 fi
13559
13560 if test "x$ac_ct_OTOOL" = x; then
13561 OTOOL=":"
13562 else
13563 case $cross_compiling:$ac_tool_warned in
13564 yes:)
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13566 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13567 ac_tool_warned=yes ;;
13568 esac
13569 OTOOL=$ac_ct_OTOOL
13570 fi
13571 else
13572 OTOOL="$ac_cv_prog_OTOOL"
13573 fi
13574
13575 if test -n "$ac_tool_prefix"; then
13576 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13577 set dummy ${ac_tool_prefix}otool64; ac_word=$2
13578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13579 $as_echo_n "checking for $ac_word... " >&6; }
13580 if ${ac_cv_prog_OTOOL64+:} false; then :
13581 $as_echo_n "(cached) " >&6
13582 else
13583 if test -n "$OTOOL64"; then
13584 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13585 else
13586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13587 for as_dir in $PATH
13588 do
13589 IFS=$as_save_IFS
13590 test -z "$as_dir" && as_dir=.
13591 for ac_exec_ext in '' $ac_executable_extensions; do
13592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13593 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13595 break 2
13596 fi
13597 done
13598 done
13599 IFS=$as_save_IFS
13600
13601 fi
13602 fi
13603 OTOOL64=$ac_cv_prog_OTOOL64
13604 if test -n "$OTOOL64"; then
13605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13606 $as_echo "$OTOOL64" >&6; }
13607 else
13608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13609 $as_echo "no" >&6; }
13610 fi
13611
13612
13613 fi
13614 if test -z "$ac_cv_prog_OTOOL64"; then
13615 ac_ct_OTOOL64=$OTOOL64
13616 # Extract the first word of "otool64", so it can be a program name with args.
13617 set dummy otool64; ac_word=$2
13618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13619 $as_echo_n "checking for $ac_word... " >&6; }
13620 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
13621 $as_echo_n "(cached) " >&6
13622 else
13623 if test -n "$ac_ct_OTOOL64"; then
13624 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13625 else
13626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13627 for as_dir in $PATH
13628 do
13629 IFS=$as_save_IFS
13630 test -z "$as_dir" && as_dir=.
13631 for ac_exec_ext in '' $ac_executable_extensions; do
13632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13633 ac_cv_prog_ac_ct_OTOOL64="otool64"
13634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13635 break 2
13636 fi
13637 done
13638 done
13639 IFS=$as_save_IFS
13640
13641 fi
13642 fi
13643 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13644 if test -n "$ac_ct_OTOOL64"; then
13645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13646 $as_echo "$ac_ct_OTOOL64" >&6; }
13647 else
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13649 $as_echo "no" >&6; }
13650 fi
13651
13652 if test "x$ac_ct_OTOOL64" = x; then
13653 OTOOL64=":"
13654 else
13655 case $cross_compiling:$ac_tool_warned in
13656 yes:)
13657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13658 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13659 ac_tool_warned=yes ;;
13660 esac
13661 OTOOL64=$ac_ct_OTOOL64
13662 fi
13663 else
13664 OTOOL64="$ac_cv_prog_OTOOL64"
13665 fi
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675
13676
13677
13678
13679
13680
13681
13682
13683
13684
13685
13686
13687
13688
13689
13690
13691
13692
13693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13694 $as_echo_n "checking for -single_module linker flag... " >&6; }
13695 if ${lt_cv_apple_cc_single_mod+:} false; then :
13696 $as_echo_n "(cached) " >&6
13697 else
13698 lt_cv_apple_cc_single_mod=no
13699 if test -z "${LT_MULTI_MODULE}"; then
13700 # By default we will add the -single_module flag. You can override
13701 # by either setting the environment variable LT_MULTI_MODULE
13702 # non-empty at configure time, or by adding -multi_module to the
13703 # link flags.
13704 rm -rf libconftest.dylib*
13705 echo "int foo(void){return 1;}" > conftest.c
13706 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13707 -dynamiclib -Wl,-single_module conftest.c" >&5
13708 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13709 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13710 _lt_result=$?
13711 # If there is a non-empty error log, and "single_module"
13712 # appears in it, assume the flag caused a linker warning
13713 if test -s conftest.err && $GREP single_module conftest.err; then
13714 cat conftest.err >&5
13715 # Otherwise, if the output was created with a 0 exit code from
13716 # the compiler, it worked.
13717 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
13718 lt_cv_apple_cc_single_mod=yes
13719 else
13720 cat conftest.err >&5
13721 fi
13722 rm -rf libconftest.dylib*
13723 rm -f conftest.*
13724 fi
13725 fi
13726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13727 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13728
13729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13730 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
13731 if ${lt_cv_ld_exported_symbols_list+:} false; then :
13732 $as_echo_n "(cached) " >&6
13733 else
13734 lt_cv_ld_exported_symbols_list=no
13735 save_LDFLAGS=$LDFLAGS
13736 echo "_main" > conftest.sym
13737 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13739 /* end confdefs.h. */
13740
13741 int
13742 main ()
13743 {
13744
13745 ;
13746 return 0;
13747 }
13748 _ACEOF
13749 if ac_fn_c_try_link "$LINENO"; then :
13750 lt_cv_ld_exported_symbols_list=yes
13751 else
13752 lt_cv_ld_exported_symbols_list=no
13753 fi
13754 rm -f core conftest.err conftest.$ac_objext \
13755 conftest$ac_exeext conftest.$ac_ext
13756 LDFLAGS="$save_LDFLAGS"
13757
13758 fi
13759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13760 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13761
13762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13763 $as_echo_n "checking for -force_load linker flag... " >&6; }
13764 if ${lt_cv_ld_force_load+:} false; then :
13765 $as_echo_n "(cached) " >&6
13766 else
13767 lt_cv_ld_force_load=no
13768 cat > conftest.c << _LT_EOF
13769 int forced_loaded() { return 2;}
13770 _LT_EOF
13771 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13772 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13773 echo "$AR cru libconftest.a conftest.o" >&5
13774 $AR cru libconftest.a conftest.o 2>&5
13775 echo "$RANLIB libconftest.a" >&5
13776 $RANLIB libconftest.a 2>&5
13777 cat > conftest.c << _LT_EOF
13778 int main() { return 0;}
13779 _LT_EOF
13780 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13781 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13782 _lt_result=$?
13783 if test -s conftest.err && $GREP force_load conftest.err; then
13784 cat conftest.err >&5
13785 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
13786 lt_cv_ld_force_load=yes
13787 else
13788 cat conftest.err >&5
13789 fi
13790 rm -f conftest.err libconftest.a conftest conftest.c
13791 rm -rf conftest.dSYM
13792
13793 fi
13794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13795 $as_echo "$lt_cv_ld_force_load" >&6; }
13796 case $host_os in
13797 rhapsody* | darwin1.[012])
13798 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13799 darwin1.*)
13800 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13801 darwin*) # darwin 5.x on
13802 # if running on 10.5 or later, the deployment target defaults
13803 # to the OS version, if on x86, and 10.4, the deployment
13804 # target defaults to 10.4. Don't you love it?
13805 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13806 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13807 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13808 10.[012]*)
13809 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13810 10.*)
13811 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13812 esac
13813 ;;
13814 esac
13815 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13816 _lt_dar_single_mod='$single_module'
13817 fi
13818 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13819 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13820 else
13821 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13822 fi
13823 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
13824 _lt_dsymutil='~$DSYMUTIL $lib || :'
13825 else
13826 _lt_dsymutil=
13827 fi
13828 ;;
13829 esac
13830
13831 for ac_header in dlfcn.h
13832 do :
13833 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13834 "
13835 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
13836 cat >>confdefs.h <<_ACEOF
13837 #define HAVE_DLFCN_H 1
13838 _ACEOF
13839
13840 fi
13841
13842 done
13843
13844
13845
13846
13847
13848 # Set options
13849
13850
13851
13852 enable_dlopen=no
13853
13854
13855 enable_win32_dll=no
13856
13857
13858 # Check whether --enable-shared was given.
13859 if test "${enable_shared+set}" = set; then :
13860 enableval=$enable_shared; p=${PACKAGE-default}
13861 case $enableval in
13862 yes) enable_shared=yes ;;
13863 no) enable_shared=no ;;
13864 *)
13865 enable_shared=no
13866 # Look at the argument we got. We use all the common list separators.
13867 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13868 for pkg in $enableval; do
13869 IFS="$lt_save_ifs"
13870 if test "X$pkg" = "X$p"; then
13871 enable_shared=yes
13872 fi
13873 done
13874 IFS="$lt_save_ifs"
13875 ;;
13876 esac
13877 else
13878 enable_shared=yes
13879 fi
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891 # Check whether --with-pic was given.
13892 if test "${with_pic+set}" = set; then :
13893 withval=$with_pic; lt_p=${PACKAGE-default}
13894 case $withval in
13895 yes|no) pic_mode=$withval ;;
13896 *)
13897 pic_mode=default
13898 # Look at the argument we got. We use all the common list separators.
13899 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13900 for lt_pkg in $withval; do
13901 IFS="$lt_save_ifs"
13902 if test "X$lt_pkg" = "X$lt_p"; then
13903 pic_mode=yes
13904 fi
13905 done
13906 IFS="$lt_save_ifs"
13907 ;;
13908 esac
13909 else
13910 pic_mode=default
13911 fi
13912
13913
13914 test -z "$pic_mode" && pic_mode=default
13915
13916
13917
13918
13919
13920
13921
13922 # Check whether --enable-fast-install was given.
13923 if test "${enable_fast_install+set}" = set; then :
13924 enableval=$enable_fast_install; p=${PACKAGE-default}
13925 case $enableval in
13926 yes) enable_fast_install=yes ;;
13927 no) enable_fast_install=no ;;
13928 *)
13929 enable_fast_install=no
13930 # Look at the argument we got. We use all the common list separators.
13931 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13932 for pkg in $enableval; do
13933 IFS="$lt_save_ifs"
13934 if test "X$pkg" = "X$p"; then
13935 enable_fast_install=yes
13936 fi
13937 done
13938 IFS="$lt_save_ifs"
13939 ;;
13940 esac
13941 else
13942 enable_fast_install=yes
13943 fi
13944
13945
13946
13947
13948
13949
13950
13951
13952
13953
13954
13955 # This can be used to rebuild libtool when needed
13956 LIBTOOL_DEPS="$ltmain"
13957
13958 # Always use our own libtool.
13959 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13960
13961
13962
13963
13964
13965
13966
13967
13968
13969
13970
13971
13972
13973
13974
13975
13976
13977
13978
13979
13980
13981
13982
13983
13984
13985
13986
13987
13988
13989
13990 test -z "$LN_S" && LN_S="ln -s"
13991
13992
13993
13994
13995
13996
13997
13998
13999
14000
14001
14002
14003
14004
14005 if test -n "${ZSH_VERSION+set}" ; then
14006 setopt NO_GLOB_SUBST
14007 fi
14008
14009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14010 $as_echo_n "checking for objdir... " >&6; }
14011 if ${lt_cv_objdir+:} false; then :
14012 $as_echo_n "(cached) " >&6
14013 else
14014 rm -f .libs 2>/dev/null
14015 mkdir .libs 2>/dev/null
14016 if test -d .libs; then
14017 lt_cv_objdir=.libs
14018 else
14019 # MS-DOS does not allow filenames that begin with a dot.
14020 lt_cv_objdir=_libs
14021 fi
14022 rmdir .libs 2>/dev/null
14023 fi
14024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14025 $as_echo "$lt_cv_objdir" >&6; }
14026 objdir=$lt_cv_objdir
14027
14028
14029
14030
14031
14032 cat >>confdefs.h <<_ACEOF
14033 #define LT_OBJDIR "$lt_cv_objdir/"
14034 _ACEOF
14035
14036
14037
14038
14039 case $host_os in
14040 aix3*)
14041 # AIX sometimes has problems with the GCC collect2 program. For some
14042 # reason, if we set the COLLECT_NAMES environment variable, the problems
14043 # vanish in a puff of smoke.
14044 if test "X${COLLECT_NAMES+set}" != Xset; then
14045 COLLECT_NAMES=
14046 export COLLECT_NAMES
14047 fi
14048 ;;
14049 esac
14050
14051 # Global variables:
14052 ofile=libtool
14053 can_build_shared=yes
14054
14055 # All known linkers require a `.a' archive for static linking (except MSVC,
14056 # which needs '.lib').
14057 libext=a
14058
14059 with_gnu_ld="$lt_cv_prog_gnu_ld"
14060
14061 old_CC="$CC"
14062 old_CFLAGS="$CFLAGS"
14063
14064 # Set sane defaults for various variables
14065 test -z "$CC" && CC=cc
14066 test -z "$LTCC" && LTCC=$CC
14067 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14068 test -z "$LD" && LD=ld
14069 test -z "$ac_objext" && ac_objext=o
14070
14071 for cc_temp in $compiler""; do
14072 case $cc_temp in
14073 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14074 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14075 \-*) ;;
14076 *) break;;
14077 esac
14078 done
14079 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14080
14081
14082 # Only perform the check for file, if the check method requires it
14083 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14084 case $deplibs_check_method in
14085 file_magic*)
14086 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14088 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14089 if ${lt_cv_path_MAGIC_CMD+:} false; then :
14090 $as_echo_n "(cached) " >&6
14091 else
14092 case $MAGIC_CMD in
14093 [\\/*] | ?:[\\/]*)
14094 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14095 ;;
14096 *)
14097 lt_save_MAGIC_CMD="$MAGIC_CMD"
14098 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14099 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14100 for ac_dir in $ac_dummy; do
14101 IFS="$lt_save_ifs"
14102 test -z "$ac_dir" && ac_dir=.
14103 if test -f $ac_dir/${ac_tool_prefix}file; then
14104 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14105 if test -n "$file_magic_test_file"; then
14106 case $deplibs_check_method in
14107 "file_magic "*)
14108 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14109 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14110 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14111 $EGREP "$file_magic_regex" > /dev/null; then
14112 :
14113 else
14114 cat <<_LT_EOF 1>&2
14115
14116 *** Warning: the command libtool uses to detect shared libraries,
14117 *** $file_magic_cmd, produces output that libtool cannot recognize.
14118 *** The result is that libtool may fail to recognize shared libraries
14119 *** as such. This will affect the creation of libtool libraries that
14120 *** depend on shared libraries, but programs linked with such libtool
14121 *** libraries will work regardless of this problem. Nevertheless, you
14122 *** may want to report the problem to your system manager and/or to
14123 *** bug-libtool@gnu.org
14124
14125 _LT_EOF
14126 fi ;;
14127 esac
14128 fi
14129 break
14130 fi
14131 done
14132 IFS="$lt_save_ifs"
14133 MAGIC_CMD="$lt_save_MAGIC_CMD"
14134 ;;
14135 esac
14136 fi
14137
14138 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14139 if test -n "$MAGIC_CMD"; then
14140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14141 $as_echo "$MAGIC_CMD" >&6; }
14142 else
14143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14144 $as_echo "no" >&6; }
14145 fi
14146
14147
14148
14149
14150
14151 if test -z "$lt_cv_path_MAGIC_CMD"; then
14152 if test -n "$ac_tool_prefix"; then
14153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14154 $as_echo_n "checking for file... " >&6; }
14155 if ${lt_cv_path_MAGIC_CMD+:} false; then :
14156 $as_echo_n "(cached) " >&6
14157 else
14158 case $MAGIC_CMD in
14159 [\\/*] | ?:[\\/]*)
14160 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14161 ;;
14162 *)
14163 lt_save_MAGIC_CMD="$MAGIC_CMD"
14164 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14165 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14166 for ac_dir in $ac_dummy; do
14167 IFS="$lt_save_ifs"
14168 test -z "$ac_dir" && ac_dir=.
14169 if test -f $ac_dir/file; then
14170 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14171 if test -n "$file_magic_test_file"; then
14172 case $deplibs_check_method in
14173 "file_magic "*)
14174 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14175 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14176 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14177 $EGREP "$file_magic_regex" > /dev/null; then
14178 :
14179 else
14180 cat <<_LT_EOF 1>&2
14181
14182 *** Warning: the command libtool uses to detect shared libraries,
14183 *** $file_magic_cmd, produces output that libtool cannot recognize.
14184 *** The result is that libtool may fail to recognize shared libraries
14185 *** as such. This will affect the creation of libtool libraries that
14186 *** depend on shared libraries, but programs linked with such libtool
14187 *** libraries will work regardless of this problem. Nevertheless, you
14188 *** may want to report the problem to your system manager and/or to
14189 *** bug-libtool@gnu.org
14190
14191 _LT_EOF
14192 fi ;;
14193 esac
14194 fi
14195 break
14196 fi
14197 done
14198 IFS="$lt_save_ifs"
14199 MAGIC_CMD="$lt_save_MAGIC_CMD"
14200 ;;
14201 esac
14202 fi
14203
14204 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14205 if test -n "$MAGIC_CMD"; then
14206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14207 $as_echo "$MAGIC_CMD" >&6; }
14208 else
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14210 $as_echo "no" >&6; }
14211 fi
14212
14213
14214 else
14215 MAGIC_CMD=:
14216 fi
14217 fi
14218
14219 fi
14220 ;;
14221 esac
14222
14223 # Use C for the default configuration in the libtool script
14224
14225 lt_save_CC="$CC"
14226 ac_ext=c
14227 ac_cpp='$CPP $CPPFLAGS'
14228 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14229 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14230 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14231
14232
14233 # Source file extension for C test sources.
14234 ac_ext=c
14235
14236 # Object file extension for compiled C test sources.
14237 objext=o
14238 objext=$objext
14239
14240 # Code to be used in simple compile tests
14241 lt_simple_compile_test_code="int some_variable = 0;"
14242
14243 # Code to be used in simple link tests
14244 lt_simple_link_test_code='int main(){return(0);}'
14245
14246
14247
14248
14249
14250
14251
14252 # If no C compiler was specified, use CC.
14253 LTCC=${LTCC-"$CC"}
14254
14255 # If no C compiler flags were specified, use CFLAGS.
14256 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14257
14258 # Allow CC to be a program name with arguments.
14259 compiler=$CC
14260
14261 # Save the default compiler, since it gets overwritten when the other
14262 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14263 compiler_DEFAULT=$CC
14264
14265 # save warnings/boilerplate of simple test code
14266 ac_outfile=conftest.$ac_objext
14267 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14268 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14269 _lt_compiler_boilerplate=`cat conftest.err`
14270 $RM conftest*
14271
14272 ac_outfile=conftest.$ac_objext
14273 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14274 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14275 _lt_linker_boilerplate=`cat conftest.err`
14276 $RM -r conftest*
14277
14278
14279 if test -n "$compiler"; then
14280
14281 lt_prog_compiler_no_builtin_flag=
14282
14283 if test "$GCC" = yes; then
14284 case $cc_basename in
14285 nvcc*)
14286 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14287 *)
14288 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14289 esac
14290
14291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14292 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14293 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
14294 $as_echo_n "(cached) " >&6
14295 else
14296 lt_cv_prog_compiler_rtti_exceptions=no
14297 ac_outfile=conftest.$ac_objext
14298 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14299 lt_compiler_flag="-fno-rtti -fno-exceptions"
14300 # Insert the option either (1) after the last *FLAGS variable, or
14301 # (2) before a word containing "conftest.", or (3) at the end.
14302 # Note that $ac_compile itself does not contain backslashes and begins
14303 # with a dollar sign (not a hyphen), so the echo should work correctly.
14304 # The option is referenced via a variable to avoid confusing sed.
14305 lt_compile=`echo "$ac_compile" | $SED \
14306 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14307 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14308 -e 's:$: $lt_compiler_flag:'`
14309 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14310 (eval "$lt_compile" 2>conftest.err)
14311 ac_status=$?
14312 cat conftest.err >&5
14313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14314 if (exit $ac_status) && test -s "$ac_outfile"; then
14315 # The compiler can only warn and ignore the option if not recognized
14316 # So say no if there are warnings other than the usual output.
14317 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14318 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14319 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14320 lt_cv_prog_compiler_rtti_exceptions=yes
14321 fi
14322 fi
14323 $RM conftest*
14324
14325 fi
14326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14327 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14328
14329 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14330 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14331 else
14332 :
14333 fi
14334
14335 fi
14336
14337
14338
14339
14340
14341
14342 lt_prog_compiler_wl=
14343 lt_prog_compiler_pic=
14344 lt_prog_compiler_static=
14345
14346
14347 if test "$GCC" = yes; then
14348 lt_prog_compiler_wl='-Wl,'
14349 lt_prog_compiler_static='-static'
14350
14351 case $host_os in
14352 aix*)
14353 # All AIX code is PIC.
14354 if test "$host_cpu" = ia64; then
14355 # AIX 5 now supports IA64 processor
14356 lt_prog_compiler_static='-Bstatic'
14357 fi
14358 ;;
14359
14360 amigaos*)
14361 case $host_cpu in
14362 powerpc)
14363 # see comment about AmigaOS4 .so support
14364 lt_prog_compiler_pic='-fPIC'
14365 ;;
14366 m68k)
14367 # FIXME: we need at least 68020 code to build shared libraries, but
14368 # adding the `-m68020' flag to GCC prevents building anything better,
14369 # like `-m68040'.
14370 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14371 ;;
14372 esac
14373 ;;
14374
14375 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14376 # PIC is the default for these OSes.
14377 ;;
14378
14379 mingw* | cygwin* | pw32* | os2* | cegcc*)
14380 # This hack is so that the source file can tell whether it is being
14381 # built for inclusion in a dll (and should export symbols for example).
14382 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14383 # (--disable-auto-import) libraries
14384 lt_prog_compiler_pic='-DDLL_EXPORT'
14385 ;;
14386
14387 darwin* | rhapsody*)
14388 # PIC is the default on this platform
14389 # Common symbols not allowed in MH_DYLIB files
14390 lt_prog_compiler_pic='-fno-common'
14391 ;;
14392
14393 haiku*)
14394 # PIC is the default for Haiku.
14395 # The "-static" flag exists, but is broken.
14396 lt_prog_compiler_static=
14397 ;;
14398
14399 hpux*)
14400 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14401 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14402 # sets the default TLS model and affects inlining.
14403 case $host_cpu in
14404 hppa*64*)
14405 # +Z the default
14406 ;;
14407 *)
14408 lt_prog_compiler_pic='-fPIC'
14409 ;;
14410 esac
14411 ;;
14412
14413 interix[3-9]*)
14414 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14415 # Instead, we relocate shared libraries at runtime.
14416 ;;
14417
14418 msdosdjgpp*)
14419 # Just because we use GCC doesn't mean we suddenly get shared libraries
14420 # on systems that don't support them.
14421 lt_prog_compiler_can_build_shared=no
14422 enable_shared=no
14423 ;;
14424
14425 *nto* | *qnx*)
14426 # QNX uses GNU C++, but need to define -shared option too, otherwise
14427 # it will coredump.
14428 lt_prog_compiler_pic='-fPIC -shared'
14429 ;;
14430
14431 sysv4*MP*)
14432 if test -d /usr/nec; then
14433 lt_prog_compiler_pic=-Kconform_pic
14434 fi
14435 ;;
14436
14437 *)
14438 lt_prog_compiler_pic='-fPIC'
14439 ;;
14440 esac
14441
14442 case $cc_basename in
14443 nvcc*) # Cuda Compiler Driver 2.2
14444 lt_prog_compiler_wl='-Xlinker '
14445 if test -n "$lt_prog_compiler_pic"; then
14446 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14447 fi
14448 ;;
14449 esac
14450 else
14451 # PORTME Check for flag to pass linker flags through the system compiler.
14452 case $host_os in
14453 aix*)
14454 lt_prog_compiler_wl='-Wl,'
14455 if test "$host_cpu" = ia64; then
14456 # AIX 5 now supports IA64 processor
14457 lt_prog_compiler_static='-Bstatic'
14458 else
14459 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14460 fi
14461 ;;
14462
14463 mingw* | cygwin* | pw32* | os2* | cegcc*)
14464 # This hack is so that the source file can tell whether it is being
14465 # built for inclusion in a dll (and should export symbols for example).
14466 lt_prog_compiler_pic='-DDLL_EXPORT'
14467 ;;
14468
14469 hpux9* | hpux10* | hpux11*)
14470 lt_prog_compiler_wl='-Wl,'
14471 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14472 # not for PA HP-UX.
14473 case $host_cpu in
14474 hppa*64*|ia64*)
14475 # +Z the default
14476 ;;
14477 *)
14478 lt_prog_compiler_pic='+Z'
14479 ;;
14480 esac
14481 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14482 lt_prog_compiler_static='${wl}-a ${wl}archive'
14483 ;;
14484
14485 irix5* | irix6* | nonstopux*)
14486 lt_prog_compiler_wl='-Wl,'
14487 # PIC (with -KPIC) is the default.
14488 lt_prog_compiler_static='-non_shared'
14489 ;;
14490
14491 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14492 case $cc_basename in
14493 # old Intel for x86_64 which still supported -KPIC.
14494 ecc*)
14495 lt_prog_compiler_wl='-Wl,'
14496 lt_prog_compiler_pic='-KPIC'
14497 lt_prog_compiler_static='-static'
14498 ;;
14499 # icc used to be incompatible with GCC.
14500 # ICC 10 doesn't accept -KPIC any more.
14501 icc* | ifort*)
14502 lt_prog_compiler_wl='-Wl,'
14503 lt_prog_compiler_pic='-fPIC'
14504 lt_prog_compiler_static='-static'
14505 ;;
14506 # Lahey Fortran 8.1.
14507 lf95*)
14508 lt_prog_compiler_wl='-Wl,'
14509 lt_prog_compiler_pic='--shared'
14510 lt_prog_compiler_static='--static'
14511 ;;
14512 nagfor*)
14513 # NAG Fortran compiler
14514 lt_prog_compiler_wl='-Wl,-Wl,,'
14515 lt_prog_compiler_pic='-PIC'
14516 lt_prog_compiler_static='-Bstatic'
14517 ;;
14518 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14519 # Portland Group compilers (*not* the Pentium gcc compiler,
14520 # which looks to be a dead project)
14521 lt_prog_compiler_wl='-Wl,'
14522 lt_prog_compiler_pic='-fpic'
14523 lt_prog_compiler_static='-Bstatic'
14524 ;;
14525 ccc*)
14526 lt_prog_compiler_wl='-Wl,'
14527 # All Alpha code is PIC.
14528 lt_prog_compiler_static='-non_shared'
14529 ;;
14530 xl* | bgxl* | bgf* | mpixl*)
14531 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14532 lt_prog_compiler_wl='-Wl,'
14533 lt_prog_compiler_pic='-qpic'
14534 lt_prog_compiler_static='-qstaticlink'
14535 ;;
14536 *)
14537 case `$CC -V 2>&1 | sed 5q` in
14538 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
14539 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14540 lt_prog_compiler_pic='-KPIC'
14541 lt_prog_compiler_static='-Bstatic'
14542 lt_prog_compiler_wl=''
14543 ;;
14544 *Sun\ F* | *Sun*Fortran*)
14545 lt_prog_compiler_pic='-KPIC'
14546 lt_prog_compiler_static='-Bstatic'
14547 lt_prog_compiler_wl='-Qoption ld '
14548 ;;
14549 *Sun\ C*)
14550 # Sun C 5.9
14551 lt_prog_compiler_pic='-KPIC'
14552 lt_prog_compiler_static='-Bstatic'
14553 lt_prog_compiler_wl='-Wl,'
14554 ;;
14555 *Intel*\ [CF]*Compiler*)
14556 lt_prog_compiler_wl='-Wl,'
14557 lt_prog_compiler_pic='-fPIC'
14558 lt_prog_compiler_static='-static'
14559 ;;
14560 *Portland\ Group*)
14561 lt_prog_compiler_wl='-Wl,'
14562 lt_prog_compiler_pic='-fpic'
14563 lt_prog_compiler_static='-Bstatic'
14564 ;;
14565 esac
14566 ;;
14567 esac
14568 ;;
14569
14570 newsos6)
14571 lt_prog_compiler_pic='-KPIC'
14572 lt_prog_compiler_static='-Bstatic'
14573 ;;
14574
14575 *nto* | *qnx*)
14576 # QNX uses GNU C++, but need to define -shared option too, otherwise
14577 # it will coredump.
14578 lt_prog_compiler_pic='-fPIC -shared'
14579 ;;
14580
14581 osf3* | osf4* | osf5*)
14582 lt_prog_compiler_wl='-Wl,'
14583 # All OSF/1 code is PIC.
14584 lt_prog_compiler_static='-non_shared'
14585 ;;
14586
14587 rdos*)
14588 lt_prog_compiler_static='-non_shared'
14589 ;;
14590
14591 solaris*)
14592 lt_prog_compiler_pic='-KPIC'
14593 lt_prog_compiler_static='-Bstatic'
14594 case $cc_basename in
14595 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
14596 lt_prog_compiler_wl='-Qoption ld ';;
14597 *)
14598 lt_prog_compiler_wl='-Wl,';;
14599 esac
14600 ;;
14601
14602 sunos4*)
14603 lt_prog_compiler_wl='-Qoption ld '
14604 lt_prog_compiler_pic='-PIC'
14605 lt_prog_compiler_static='-Bstatic'
14606 ;;
14607
14608 sysv4 | sysv4.2uw2* | sysv4.3*)
14609 lt_prog_compiler_wl='-Wl,'
14610 lt_prog_compiler_pic='-KPIC'
14611 lt_prog_compiler_static='-Bstatic'
14612 ;;
14613
14614 sysv4*MP*)
14615 if test -d /usr/nec ;then
14616 lt_prog_compiler_pic='-Kconform_pic'
14617 lt_prog_compiler_static='-Bstatic'
14618 fi
14619 ;;
14620
14621 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14622 lt_prog_compiler_wl='-Wl,'
14623 lt_prog_compiler_pic='-KPIC'
14624 lt_prog_compiler_static='-Bstatic'
14625 ;;
14626
14627 unicos*)
14628 lt_prog_compiler_wl='-Wl,'
14629 lt_prog_compiler_can_build_shared=no
14630 ;;
14631
14632 uts4*)
14633 lt_prog_compiler_pic='-pic'
14634 lt_prog_compiler_static='-Bstatic'
14635 ;;
14636
14637 *)
14638 lt_prog_compiler_can_build_shared=no
14639 ;;
14640 esac
14641 fi
14642
14643 case $host_os in
14644 # For platforms which do not support PIC, -DPIC is meaningless:
14645 *djgpp*)
14646 lt_prog_compiler_pic=
14647 ;;
14648 *)
14649 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14650 ;;
14651 esac
14652
14653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14654 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14655 if ${lt_cv_prog_compiler_pic+:} false; then :
14656 $as_echo_n "(cached) " >&6
14657 else
14658 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14659 fi
14660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14661 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
14662 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
14663
14664 #
14665 # Check to make sure the PIC flag actually works.
14666 #
14667 if test -n "$lt_prog_compiler_pic"; then
14668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14669 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14670 if ${lt_cv_prog_compiler_pic_works+:} false; then :
14671 $as_echo_n "(cached) " >&6
14672 else
14673 lt_cv_prog_compiler_pic_works=no
14674 ac_outfile=conftest.$ac_objext
14675 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14676 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14677 # Insert the option either (1) after the last *FLAGS variable, or
14678 # (2) before a word containing "conftest.", or (3) at the end.
14679 # Note that $ac_compile itself does not contain backslashes and begins
14680 # with a dollar sign (not a hyphen), so the echo should work correctly.
14681 # The option is referenced via a variable to avoid confusing sed.
14682 lt_compile=`echo "$ac_compile" | $SED \
14683 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14684 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14685 -e 's:$: $lt_compiler_flag:'`
14686 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14687 (eval "$lt_compile" 2>conftest.err)
14688 ac_status=$?
14689 cat conftest.err >&5
14690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14691 if (exit $ac_status) && test -s "$ac_outfile"; then
14692 # The compiler can only warn and ignore the option if not recognized
14693 # So say no if there are warnings other than the usual output.
14694 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14695 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14696 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14697 lt_cv_prog_compiler_pic_works=yes
14698 fi
14699 fi
14700 $RM conftest*
14701
14702 fi
14703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14704 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14705
14706 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14707 case $lt_prog_compiler_pic in
14708 "" | " "*) ;;
14709 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14710 esac
14711 else
14712 lt_prog_compiler_pic=
14713 lt_prog_compiler_can_build_shared=no
14714 fi
14715
14716 fi
14717
14718
14719
14720
14721
14722
14723
14724
14725
14726
14727
14728 #
14729 # Check to make sure the static flag actually works.
14730 #
14731 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14733 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14734 if ${lt_cv_prog_compiler_static_works+:} false; then :
14735 $as_echo_n "(cached) " >&6
14736 else
14737 lt_cv_prog_compiler_static_works=no
14738 save_LDFLAGS="$LDFLAGS"
14739 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14740 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14741 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14742 # The linker can only warn and ignore the option if not recognized
14743 # So say no if there are warnings
14744 if test -s conftest.err; then
14745 # Append any errors to the config.log.
14746 cat conftest.err 1>&5
14747 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14748 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14749 if diff conftest.exp conftest.er2 >/dev/null; then
14750 lt_cv_prog_compiler_static_works=yes
14751 fi
14752 else
14753 lt_cv_prog_compiler_static_works=yes
14754 fi
14755 fi
14756 $RM -r conftest*
14757 LDFLAGS="$save_LDFLAGS"
14758
14759 fi
14760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14761 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14762
14763 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14764 :
14765 else
14766 lt_prog_compiler_static=
14767 fi
14768
14769
14770
14771
14772
14773
14774
14775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14776 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14777 if ${lt_cv_prog_compiler_c_o+:} false; then :
14778 $as_echo_n "(cached) " >&6
14779 else
14780 lt_cv_prog_compiler_c_o=no
14781 $RM -r conftest 2>/dev/null
14782 mkdir conftest
14783 cd conftest
14784 mkdir out
14785 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14786
14787 lt_compiler_flag="-o out/conftest2.$ac_objext"
14788 # Insert the option either (1) after the last *FLAGS variable, or
14789 # (2) before a word containing "conftest.", or (3) at the end.
14790 # Note that $ac_compile itself does not contain backslashes and begins
14791 # with a dollar sign (not a hyphen), so the echo should work correctly.
14792 lt_compile=`echo "$ac_compile" | $SED \
14793 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14794 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14795 -e 's:$: $lt_compiler_flag:'`
14796 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14797 (eval "$lt_compile" 2>out/conftest.err)
14798 ac_status=$?
14799 cat out/conftest.err >&5
14800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14801 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14802 then
14803 # The compiler can only warn and ignore the option if not recognized
14804 # So say no if there are warnings
14805 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14806 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14807 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14808 lt_cv_prog_compiler_c_o=yes
14809 fi
14810 fi
14811 chmod u+w . 2>&5
14812 $RM conftest*
14813 # SGI C++ compiler will create directory out/ii_files/ for
14814 # template instantiation
14815 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14816 $RM out/* && rmdir out
14817 cd ..
14818 $RM -r conftest
14819 $RM conftest*
14820
14821 fi
14822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14823 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14824
14825
14826
14827
14828
14829
14830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14831 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14832 if ${lt_cv_prog_compiler_c_o+:} false; then :
14833 $as_echo_n "(cached) " >&6
14834 else
14835 lt_cv_prog_compiler_c_o=no
14836 $RM -r conftest 2>/dev/null
14837 mkdir conftest
14838 cd conftest
14839 mkdir out
14840 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14841
14842 lt_compiler_flag="-o out/conftest2.$ac_objext"
14843 # Insert the option either (1) after the last *FLAGS variable, or
14844 # (2) before a word containing "conftest.", or (3) at the end.
14845 # Note that $ac_compile itself does not contain backslashes and begins
14846 # with a dollar sign (not a hyphen), so the echo should work correctly.
14847 lt_compile=`echo "$ac_compile" | $SED \
14848 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14849 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14850 -e 's:$: $lt_compiler_flag:'`
14851 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14852 (eval "$lt_compile" 2>out/conftest.err)
14853 ac_status=$?
14854 cat out/conftest.err >&5
14855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14856 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14857 then
14858 # The compiler can only warn and ignore the option if not recognized
14859 # So say no if there are warnings
14860 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14861 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14862 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14863 lt_cv_prog_compiler_c_o=yes
14864 fi
14865 fi
14866 chmod u+w . 2>&5
14867 $RM conftest*
14868 # SGI C++ compiler will create directory out/ii_files/ for
14869 # template instantiation
14870 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14871 $RM out/* && rmdir out
14872 cd ..
14873 $RM -r conftest
14874 $RM conftest*
14875
14876 fi
14877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14878 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14879
14880
14881
14882
14883 hard_links="nottested"
14884 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14885 # do not overwrite the value of need_locks provided by the user
14886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14887 $as_echo_n "checking if we can lock with hard links... " >&6; }
14888 hard_links=yes
14889 $RM conftest*
14890 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14891 touch conftest.a
14892 ln conftest.a conftest.b 2>&5 || hard_links=no
14893 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14895 $as_echo "$hard_links" >&6; }
14896 if test "$hard_links" = no; then
14897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14898 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14899 need_locks=warn
14900 fi
14901 else
14902 need_locks=no
14903 fi
14904
14905
14906
14907
14908
14909
14910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14911 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14912
14913 runpath_var=
14914 allow_undefined_flag=
14915 always_export_symbols=no
14916 archive_cmds=
14917 archive_expsym_cmds=
14918 compiler_needs_object=no
14919 enable_shared_with_static_runtimes=no
14920 export_dynamic_flag_spec=
14921 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14922 hardcode_automatic=no
14923 hardcode_direct=no
14924 hardcode_direct_absolute=no
14925 hardcode_libdir_flag_spec=
14926 hardcode_libdir_separator=
14927 hardcode_minus_L=no
14928 hardcode_shlibpath_var=unsupported
14929 inherit_rpath=no
14930 link_all_deplibs=unknown
14931 module_cmds=
14932 module_expsym_cmds=
14933 old_archive_from_new_cmds=
14934 old_archive_from_expsyms_cmds=
14935 thread_safe_flag_spec=
14936 whole_archive_flag_spec=
14937 # include_expsyms should be a list of space-separated symbols to be *always*
14938 # included in the symbol list
14939 include_expsyms=
14940 # exclude_expsyms can be an extended regexp of symbols to exclude
14941 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14942 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14943 # as well as any symbol that contains `d'.
14944 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14945 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14946 # platforms (ab)use it in PIC code, but their linkers get confused if
14947 # the symbol is explicitly referenced. Since portable code cannot
14948 # rely on this symbol name, it's probably fine to never include it in
14949 # preloaded symbol tables.
14950 # Exclude shared library initialization/finalization symbols.
14951 extract_expsyms_cmds=
14952
14953 case $host_os in
14954 cygwin* | mingw* | pw32* | cegcc*)
14955 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14956 # When not using gcc, we currently assume that we are using
14957 # Microsoft Visual C++.
14958 if test "$GCC" != yes; then
14959 with_gnu_ld=no
14960 fi
14961 ;;
14962 interix*)
14963 # we just hope/assume this is gcc and not c89 (= MSVC++)
14964 with_gnu_ld=yes
14965 ;;
14966 openbsd*)
14967 with_gnu_ld=no
14968 ;;
14969 esac
14970
14971 ld_shlibs=yes
14972
14973 # On some targets, GNU ld is compatible enough with the native linker
14974 # that we're better off using the native interface for both.
14975 lt_use_gnu_ld_interface=no
14976 if test "$with_gnu_ld" = yes; then
14977 case $host_os in
14978 aix*)
14979 # The AIX port of GNU ld has always aspired to compatibility
14980 # with the native linker. However, as the warning in the GNU ld
14981 # block says, versions before 2.19.5* couldn't really create working
14982 # shared libraries, regardless of the interface used.
14983 case `$LD -v 2>&1` in
14984 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14985 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14986 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14987 *)
14988 lt_use_gnu_ld_interface=yes
14989 ;;
14990 esac
14991 ;;
14992 *)
14993 lt_use_gnu_ld_interface=yes
14994 ;;
14995 esac
14996 fi
14997
14998 if test "$lt_use_gnu_ld_interface" = yes; then
14999 # If archive_cmds runs LD, not CC, wlarc should be empty
15000 wlarc='${wl}'
15001
15002 # Set some defaults for GNU ld with shared library support. These
15003 # are reset later if shared libraries are not supported. Putting them
15004 # here allows them to be overridden if necessary.
15005 runpath_var=LD_RUN_PATH
15006 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15007 export_dynamic_flag_spec='${wl}--export-dynamic'
15008 # ancient GNU ld didn't support --whole-archive et. al.
15009 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15010 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15011 else
15012 whole_archive_flag_spec=
15013 fi
15014 supports_anon_versioning=no
15015 case `$LD -v 2>&1` in
15016 *GNU\ gold*) supports_anon_versioning=yes ;;
15017 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15018 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15019 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15020 *\ 2.11.*) ;; # other 2.11 versions
15021 *) supports_anon_versioning=yes ;;
15022 esac
15023
15024 # See if GNU ld supports shared libraries.
15025 case $host_os in
15026 aix[3-9]*)
15027 # On AIX/PPC, the GNU linker is very broken
15028 if test "$host_cpu" != ia64; then
15029 ld_shlibs=no
15030 cat <<_LT_EOF 1>&2
15031
15032 *** Warning: the GNU linker, at least up to release 2.19, is reported
15033 *** to be unable to reliably create shared libraries on AIX.
15034 *** Therefore, libtool is disabling shared libraries support. If you
15035 *** really care for shared libraries, you may want to install binutils
15036 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15037 *** You will then need to restart the configuration process.
15038
15039 _LT_EOF
15040 fi
15041 ;;
15042
15043 amigaos*)
15044 case $host_cpu in
15045 powerpc)
15046 # see comment about AmigaOS4 .so support
15047 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15048 archive_expsym_cmds=''
15049 ;;
15050 m68k)
15051 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)'
15052 hardcode_libdir_flag_spec='-L$libdir'
15053 hardcode_minus_L=yes
15054 ;;
15055 esac
15056 ;;
15057
15058 beos*)
15059 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15060 allow_undefined_flag=unsupported
15061 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
15062 # support --undefined. This deserves some investigation. FIXME
15063 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15064 else
15065 ld_shlibs=no
15066 fi
15067 ;;
15068
15069 cygwin* | mingw* | pw32* | cegcc*)
15070 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15071 # as there is no search path for DLLs.
15072 hardcode_libdir_flag_spec='-L$libdir'
15073 export_dynamic_flag_spec='${wl}--export-all-symbols'
15074 allow_undefined_flag=unsupported
15075 always_export_symbols=no
15076 enable_shared_with_static_runtimes=yes
15077 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'
15078 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15079
15080 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15081 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15082 # If the export-symbols file already is a .def file (1st line
15083 # is EXPORTS), use it as is; otherwise, prepend...
15084 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15085 cp $export_symbols $output_objdir/$soname.def;
15086 else
15087 echo EXPORTS > $output_objdir/$soname.def;
15088 cat $export_symbols >> $output_objdir/$soname.def;
15089 fi~
15090 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15091 else
15092 ld_shlibs=no
15093 fi
15094 ;;
15095
15096 haiku*)
15097 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15098 link_all_deplibs=yes
15099 ;;
15100
15101 interix[3-9]*)
15102 hardcode_direct=no
15103 hardcode_shlibpath_var=no
15104 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15105 export_dynamic_flag_spec='${wl}-E'
15106 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15107 # Instead, shared libraries are loaded at an image base (0x10000000 by
15108 # default) and relocated if they conflict, which is a slow very memory
15109 # consuming and fragmenting process. To avoid this, we pick a random,
15110 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15111 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15112 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15113 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'
15114 ;;
15115
15116 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15117 tmp_diet=no
15118 if test "$host_os" = linux-dietlibc; then
15119 case $cc_basename in
15120 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15121 esac
15122 fi
15123 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15124 && test "$tmp_diet" = no
15125 then
15126 tmp_addflag=' $pic_flag'
15127 tmp_sharedflag='-shared'
15128 case $cc_basename,$host_cpu in
15129 pgcc*) # Portland Group C compiler
15130 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'
15131 tmp_addflag=' $pic_flag'
15132 ;;
15133 pgf77* | pgf90* | pgf95* | pgfortran*)
15134 # Portland Group f77 and f90 compilers
15135 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'
15136 tmp_addflag=' $pic_flag -Mnomain' ;;
15137 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15138 tmp_addflag=' -i_dynamic' ;;
15139 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15140 tmp_addflag=' -i_dynamic -nofor_main' ;;
15141 ifc* | ifort*) # Intel Fortran compiler
15142 tmp_addflag=' -nofor_main' ;;
15143 lf95*) # Lahey Fortran 8.1
15144 whole_archive_flag_spec=
15145 tmp_sharedflag='--shared' ;;
15146 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15147 tmp_sharedflag='-qmkshrobj'
15148 tmp_addflag= ;;
15149 nvcc*) # Cuda Compiler Driver 2.2
15150 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'
15151 compiler_needs_object=yes
15152 ;;
15153 esac
15154 case `$CC -V 2>&1 | sed 5q` in
15155 *Sun\ C*) # Sun C 5.9
15156 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'
15157 compiler_needs_object=yes
15158 tmp_sharedflag='-G' ;;
15159 *Sun\ F*) # Sun Fortran 8.3
15160 tmp_sharedflag='-G' ;;
15161 esac
15162 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15163
15164 if test "x$supports_anon_versioning" = xyes; then
15165 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15166 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15167 echo "local: *; };" >> $output_objdir/$libname.ver~
15168 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15169 fi
15170
15171 case $cc_basename in
15172 xlf* | bgf* | bgxlf* | mpixlf*)
15173 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15174 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15175 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15176 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
15177 if test "x$supports_anon_versioning" = xyes; then
15178 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15179 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15180 echo "local: *; };" >> $output_objdir/$libname.ver~
15181 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15182 fi
15183 ;;
15184 esac
15185 else
15186 ld_shlibs=no
15187 fi
15188 ;;
15189
15190 netbsd*)
15191 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15192 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15193 wlarc=
15194 else
15195 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15196 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15197 fi
15198 ;;
15199
15200 solaris*)
15201 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15202 ld_shlibs=no
15203 cat <<_LT_EOF 1>&2
15204
15205 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15206 *** create shared libraries on Solaris systems. Therefore, libtool
15207 *** is disabling shared libraries support. We urge you to upgrade GNU
15208 *** binutils to release 2.9.1 or newer. Another option is to modify
15209 *** your PATH or compiler configuration so that the native linker is
15210 *** used, and then restart.
15211
15212 _LT_EOF
15213 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15214 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15215 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15216 else
15217 ld_shlibs=no
15218 fi
15219 ;;
15220
15221 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15222 case `$LD -v 2>&1` in
15223 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15224 ld_shlibs=no
15225 cat <<_LT_EOF 1>&2
15226
15227 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15228 *** reliably create shared libraries on SCO systems. Therefore, libtool
15229 *** is disabling shared libraries support. We urge you to upgrade GNU
15230 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15231 *** your PATH or compiler configuration so that the native linker is
15232 *** used, and then restart.
15233
15234 _LT_EOF
15235 ;;
15236 *)
15237 # For security reasons, it is highly recommended that you always
15238 # use absolute paths for naming shared libraries, and exclude the
15239 # DT_RUNPATH tag from executables and libraries. But doing so
15240 # requires that you compile everything twice, which is a pain.
15241 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15242 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15243 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15244 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15245 else
15246 ld_shlibs=no
15247 fi
15248 ;;
15249 esac
15250 ;;
15251
15252 sunos4*)
15253 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15254 wlarc=
15255 hardcode_direct=yes
15256 hardcode_shlibpath_var=no
15257 ;;
15258
15259 *)
15260 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15261 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15262 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15263 else
15264 ld_shlibs=no
15265 fi
15266 ;;
15267 esac
15268
15269 if test "$ld_shlibs" = no; then
15270 runpath_var=
15271 hardcode_libdir_flag_spec=
15272 export_dynamic_flag_spec=
15273 whole_archive_flag_spec=
15274 fi
15275 else
15276 # PORTME fill in a description of your system's linker (not GNU ld)
15277 case $host_os in
15278 aix3*)
15279 allow_undefined_flag=unsupported
15280 always_export_symbols=yes
15281 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'
15282 # Note: this linker hardcodes the directories in LIBPATH if there
15283 # are no directories specified by -L.
15284 hardcode_minus_L=yes
15285 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15286 # Neither direct hardcoding nor static linking is supported with a
15287 # broken collect2.
15288 hardcode_direct=unsupported
15289 fi
15290 ;;
15291
15292 aix[4-9]*)
15293 if test "$host_cpu" = ia64; then
15294 # On IA64, the linker does run time linking by default, so we don't
15295 # have to do anything special.
15296 aix_use_runtimelinking=no
15297 exp_sym_flag='-Bexport'
15298 no_entry_flag=""
15299 else
15300 # If we're using GNU nm, then we don't want the "-C" option.
15301 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15302 # Also, AIX nm treats weak defined symbols like other global
15303 # defined symbols, whereas GNU nm marks them as "W".
15304 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15305 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15306 else
15307 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15308 fi
15309 aix_use_runtimelinking=no
15310
15311 # Test if we are trying to use run time linking or normal
15312 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15313 # need to do runtime linking.
15314 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15315 for ld_flag in $LDFLAGS; do
15316 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15317 aix_use_runtimelinking=yes
15318 break
15319 fi
15320 done
15321 ;;
15322 esac
15323
15324 exp_sym_flag='-bexport'
15325 no_entry_flag='-bnoentry'
15326 fi
15327
15328 # When large executables or shared objects are built, AIX ld can
15329 # have problems creating the table of contents. If linking a library
15330 # or program results in "error TOC overflow" add -mminimal-toc to
15331 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15332 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15333
15334 archive_cmds=''
15335 hardcode_direct=yes
15336 hardcode_direct_absolute=yes
15337 hardcode_libdir_separator=':'
15338 link_all_deplibs=yes
15339 file_list_spec='${wl}-f,'
15340
15341 if test "$GCC" = yes; then
15342 case $host_os in aix4.[012]|aix4.[012].*)
15343 # We only want to do this on AIX 4.2 and lower, the check
15344 # below for broken collect2 doesn't work under 4.3+
15345 collect2name=`${CC} -print-prog-name=collect2`
15346 if test -f "$collect2name" &&
15347 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15348 then
15349 # We have reworked collect2
15350 :
15351 else
15352 # We have old collect2
15353 hardcode_direct=unsupported
15354 # It fails to find uninstalled libraries when the uninstalled
15355 # path is not listed in the libpath. Setting hardcode_minus_L
15356 # to unsupported forces relinking
15357 hardcode_minus_L=yes
15358 hardcode_libdir_flag_spec='-L$libdir'
15359 hardcode_libdir_separator=
15360 fi
15361 ;;
15362 esac
15363 shared_flag='-shared'
15364 if test "$aix_use_runtimelinking" = yes; then
15365 shared_flag="$shared_flag "'${wl}-G'
15366 fi
15367 else
15368 # not using gcc
15369 if test "$host_cpu" = ia64; then
15370 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15371 # chokes on -Wl,-G. The following line is correct:
15372 shared_flag='-G'
15373 else
15374 if test "$aix_use_runtimelinking" = yes; then
15375 shared_flag='${wl}-G'
15376 else
15377 shared_flag='${wl}-bM:SRE'
15378 fi
15379 fi
15380 fi
15381
15382 export_dynamic_flag_spec='${wl}-bexpall'
15383 # It seems that -bexpall does not export symbols beginning with
15384 # underscore (_), so it is better to generate a list of symbols to export.
15385 always_export_symbols=yes
15386 if test "$aix_use_runtimelinking" = yes; then
15387 # Warning - without using the other runtime loading flags (-brtl),
15388 # -berok will link without error, but may produce a broken library.
15389 allow_undefined_flag='-berok'
15390 # Determine the default libpath from the value encoded in an
15391 # empty executable.
15392 if test "${lt_cv_aix_libpath+set}" = set; then
15393 aix_libpath=$lt_cv_aix_libpath
15394 else
15395 if ${lt_cv_aix_libpath_+:} false; then :
15396 $as_echo_n "(cached) " >&6
15397 else
15398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15399 /* end confdefs.h. */
15400
15401 int
15402 main ()
15403 {
15404
15405 ;
15406 return 0;
15407 }
15408 _ACEOF
15409 if ac_fn_c_try_link "$LINENO"; then :
15410
15411 lt_aix_libpath_sed='
15412 /Import File Strings/,/^$/ {
15413 /^0/ {
15414 s/^0 *\([^ ]*\) *$/\1/
15415 p
15416 }
15417 }'
15418 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15419 # Check for a 64-bit object if we didn't find anything.
15420 if test -z "$lt_cv_aix_libpath_"; then
15421 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15422 fi
15423 fi
15424 rm -f core conftest.err conftest.$ac_objext \
15425 conftest$ac_exeext conftest.$ac_ext
15426 if test -z "$lt_cv_aix_libpath_"; then
15427 lt_cv_aix_libpath_="/usr/lib:/lib"
15428 fi
15429
15430 fi
15431
15432 aix_libpath=$lt_cv_aix_libpath_
15433 fi
15434
15435 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15436 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15437 else
15438 if test "$host_cpu" = ia64; then
15439 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15440 allow_undefined_flag="-z nodefs"
15441 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"
15442 else
15443 # Determine the default libpath from the value encoded in an
15444 # empty executable.
15445 if test "${lt_cv_aix_libpath+set}" = set; then
15446 aix_libpath=$lt_cv_aix_libpath
15447 else
15448 if ${lt_cv_aix_libpath_+:} false; then :
15449 $as_echo_n "(cached) " >&6
15450 else
15451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15452 /* end confdefs.h. */
15453
15454 int
15455 main ()
15456 {
15457
15458 ;
15459 return 0;
15460 }
15461 _ACEOF
15462 if ac_fn_c_try_link "$LINENO"; then :
15463
15464 lt_aix_libpath_sed='
15465 /Import File Strings/,/^$/ {
15466 /^0/ {
15467 s/^0 *\([^ ]*\) *$/\1/
15468 p
15469 }
15470 }'
15471 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15472 # Check for a 64-bit object if we didn't find anything.
15473 if test -z "$lt_cv_aix_libpath_"; then
15474 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15475 fi
15476 fi
15477 rm -f core conftest.err conftest.$ac_objext \
15478 conftest$ac_exeext conftest.$ac_ext
15479 if test -z "$lt_cv_aix_libpath_"; then
15480 lt_cv_aix_libpath_="/usr/lib:/lib"
15481 fi
15482
15483 fi
15484
15485 aix_libpath=$lt_cv_aix_libpath_
15486 fi
15487
15488 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15489 # Warning - without using the other run time loading flags,
15490 # -berok will link without error, but may produce a broken library.
15491 no_undefined_flag=' ${wl}-bernotok'
15492 allow_undefined_flag=' ${wl}-berok'
15493 if test "$with_gnu_ld" = yes; then
15494 # We only use this code for GNU lds that support --whole-archive.
15495 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15496 else
15497 # Exported symbols can be pulled into shared objects from archives
15498 whole_archive_flag_spec='$convenience'
15499 fi
15500 archive_cmds_need_lc=yes
15501 # This is similar to how AIX traditionally builds its shared libraries.
15502 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15503 fi
15504 fi
15505 ;;
15506
15507 amigaos*)
15508 case $host_cpu in
15509 powerpc)
15510 # see comment about AmigaOS4 .so support
15511 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15512 archive_expsym_cmds=''
15513 ;;
15514 m68k)
15515 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)'
15516 hardcode_libdir_flag_spec='-L$libdir'
15517 hardcode_minus_L=yes
15518 ;;
15519 esac
15520 ;;
15521
15522 bsdi[45]*)
15523 export_dynamic_flag_spec=-rdynamic
15524 ;;
15525
15526 cygwin* | mingw* | pw32* | cegcc*)
15527 # When not using gcc, we currently assume that we are using
15528 # Microsoft Visual C++.
15529 # hardcode_libdir_flag_spec is actually meaningless, as there is
15530 # no search path for DLLs.
15531 case $cc_basename in
15532 cl*)
15533 # Native MSVC
15534 hardcode_libdir_flag_spec=' '
15535 allow_undefined_flag=unsupported
15536 always_export_symbols=yes
15537 file_list_spec='@'
15538 # Tell ltmain to make .lib files, not .a files.
15539 libext=lib
15540 # Tell ltmain to make .dll files, not .so files.
15541 shrext_cmds=".dll"
15542 # FIXME: Setting linknames here is a bad hack.
15543 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15544 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15545 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15546 else
15547 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15548 fi~
15549 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15550 linknames='
15551 # The linker will not automatically build a static lib if we build a DLL.
15552 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15553 enable_shared_with_static_runtimes=yes
15554 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15555 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15556 # Don't use ranlib
15557 old_postinstall_cmds='chmod 644 $oldlib'
15558 postlink_cmds='lt_outputfile="@OUTPUT@"~
15559 lt_tool_outputfile="@TOOL_OUTPUT@"~
15560 case $lt_outputfile in
15561 *.exe|*.EXE) ;;
15562 *)
15563 lt_outputfile="$lt_outputfile.exe"
15564 lt_tool_outputfile="$lt_tool_outputfile.exe"
15565 ;;
15566 esac~
15567 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15568 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15569 $RM "$lt_outputfile.manifest";
15570 fi'
15571 ;;
15572 *)
15573 # Assume MSVC wrapper
15574 hardcode_libdir_flag_spec=' '
15575 allow_undefined_flag=unsupported
15576 # Tell ltmain to make .lib files, not .a files.
15577 libext=lib
15578 # Tell ltmain to make .dll files, not .so files.
15579 shrext_cmds=".dll"
15580 # FIXME: Setting linknames here is a bad hack.
15581 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15582 # The linker will automatically build a .lib file if we build a DLL.
15583 old_archive_from_new_cmds='true'
15584 # FIXME: Should let the user specify the lib program.
15585 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15586 enable_shared_with_static_runtimes=yes
15587 ;;
15588 esac
15589 ;;
15590
15591 darwin* | rhapsody*)
15592
15593
15594 archive_cmds_need_lc=no
15595 hardcode_direct=no
15596 hardcode_automatic=yes
15597 hardcode_shlibpath_var=unsupported
15598 if test "$lt_cv_ld_force_load" = "yes"; then
15599 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\"`'
15600
15601 else
15602 whole_archive_flag_spec=''
15603 fi
15604 link_all_deplibs=yes
15605 allow_undefined_flag="$_lt_dar_allow_undefined"
15606 case $cc_basename in
15607 ifort*) _lt_dar_can_shared=yes ;;
15608 *) _lt_dar_can_shared=$GCC ;;
15609 esac
15610 if test "$_lt_dar_can_shared" = "yes"; then
15611 output_verbose_link_cmd=func_echo_all
15612 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15613 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15614 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}"
15615 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}"
15616
15617 else
15618 ld_shlibs=no
15619 fi
15620
15621 ;;
15622
15623 dgux*)
15624 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15625 hardcode_libdir_flag_spec='-L$libdir'
15626 hardcode_shlibpath_var=no
15627 ;;
15628
15629 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15630 # support. Future versions do this automatically, but an explicit c++rt0.o
15631 # does not break anything, and helps significantly (at the cost of a little
15632 # extra space).
15633 freebsd2.2*)
15634 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15635 hardcode_libdir_flag_spec='-R$libdir'
15636 hardcode_direct=yes
15637 hardcode_shlibpath_var=no
15638 ;;
15639
15640 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15641 freebsd2.*)
15642 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15643 hardcode_direct=yes
15644 hardcode_minus_L=yes
15645 hardcode_shlibpath_var=no
15646 ;;
15647
15648 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15649 freebsd* | dragonfly*)
15650 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15651 hardcode_libdir_flag_spec='-R$libdir'
15652 hardcode_direct=yes
15653 hardcode_shlibpath_var=no
15654 ;;
15655
15656 hpux9*)
15657 if test "$GCC" = yes; then
15658 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15659 else
15660 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15661 fi
15662 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15663 hardcode_libdir_separator=:
15664 hardcode_direct=yes
15665
15666 # hardcode_minus_L: Not really in the search PATH,
15667 # but as the default location of the library.
15668 hardcode_minus_L=yes
15669 export_dynamic_flag_spec='${wl}-E'
15670 ;;
15671
15672 hpux10*)
15673 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15674 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15675 else
15676 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15677 fi
15678 if test "$with_gnu_ld" = no; then
15679 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15680 hardcode_libdir_separator=:
15681 hardcode_direct=yes
15682 hardcode_direct_absolute=yes
15683 export_dynamic_flag_spec='${wl}-E'
15684 # hardcode_minus_L: Not really in the search PATH,
15685 # but as the default location of the library.
15686 hardcode_minus_L=yes
15687 fi
15688 ;;
15689
15690 hpux11*)
15691 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15692 case $host_cpu in
15693 hppa*64*)
15694 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15695 ;;
15696 ia64*)
15697 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15698 ;;
15699 *)
15700 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15701 ;;
15702 esac
15703 else
15704 case $host_cpu in
15705 hppa*64*)
15706 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15707 ;;
15708 ia64*)
15709 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15710 ;;
15711 *)
15712
15713 # Older versions of the 11.00 compiler do not understand -b yet
15714 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15716 $as_echo_n "checking if $CC understands -b... " >&6; }
15717 if ${lt_cv_prog_compiler__b+:} false; then :
15718 $as_echo_n "(cached) " >&6
15719 else
15720 lt_cv_prog_compiler__b=no
15721 save_LDFLAGS="$LDFLAGS"
15722 LDFLAGS="$LDFLAGS -b"
15723 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15724 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15725 # The linker can only warn and ignore the option if not recognized
15726 # So say no if there are warnings
15727 if test -s conftest.err; then
15728 # Append any errors to the config.log.
15729 cat conftest.err 1>&5
15730 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15731 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15732 if diff conftest.exp conftest.er2 >/dev/null; then
15733 lt_cv_prog_compiler__b=yes
15734 fi
15735 else
15736 lt_cv_prog_compiler__b=yes
15737 fi
15738 fi
15739 $RM -r conftest*
15740 LDFLAGS="$save_LDFLAGS"
15741
15742 fi
15743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15744 $as_echo "$lt_cv_prog_compiler__b" >&6; }
15745
15746 if test x"$lt_cv_prog_compiler__b" = xyes; then
15747 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15748 else
15749 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15750 fi
15751
15752 ;;
15753 esac
15754 fi
15755 if test "$with_gnu_ld" = no; then
15756 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15757 hardcode_libdir_separator=:
15758
15759 case $host_cpu in
15760 hppa*64*|ia64*)
15761 hardcode_direct=no
15762 hardcode_shlibpath_var=no
15763 ;;
15764 *)
15765 hardcode_direct=yes
15766 hardcode_direct_absolute=yes
15767 export_dynamic_flag_spec='${wl}-E'
15768
15769 # hardcode_minus_L: Not really in the search PATH,
15770 # but as the default location of the library.
15771 hardcode_minus_L=yes
15772 ;;
15773 esac
15774 fi
15775 ;;
15776
15777 irix5* | irix6* | nonstopux*)
15778 if test "$GCC" = yes; then
15779 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'
15780 # Try to use the -exported_symbol ld option, if it does not
15781 # work, assume that -exports_file does not work either and
15782 # implicitly export all symbols.
15783 # This should be the same for all languages, so no per-tag cache variable.
15784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15785 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15786 if ${lt_cv_irix_exported_symbol+:} false; then :
15787 $as_echo_n "(cached) " >&6
15788 else
15789 save_LDFLAGS="$LDFLAGS"
15790 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15792 /* end confdefs.h. */
15793 int foo (void) { return 0; }
15794 _ACEOF
15795 if ac_fn_c_try_link "$LINENO"; then :
15796 lt_cv_irix_exported_symbol=yes
15797 else
15798 lt_cv_irix_exported_symbol=no
15799 fi
15800 rm -f core conftest.err conftest.$ac_objext \
15801 conftest$ac_exeext conftest.$ac_ext
15802 LDFLAGS="$save_LDFLAGS"
15803 fi
15804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
15805 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
15806 if test "$lt_cv_irix_exported_symbol" = yes; then
15807 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'
15808 fi
15809 else
15810 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'
15811 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'
15812 fi
15813 archive_cmds_need_lc='no'
15814 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15815 hardcode_libdir_separator=:
15816 inherit_rpath=yes
15817 link_all_deplibs=yes
15818 ;;
15819
15820 netbsd*)
15821 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15822 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15823 else
15824 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15825 fi
15826 hardcode_libdir_flag_spec='-R$libdir'
15827 hardcode_direct=yes
15828 hardcode_shlibpath_var=no
15829 ;;
15830
15831 newsos6)
15832 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15833 hardcode_direct=yes
15834 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15835 hardcode_libdir_separator=:
15836 hardcode_shlibpath_var=no
15837 ;;
15838
15839 *nto* | *qnx*)
15840 ;;
15841
15842 openbsd*)
15843 if test -f /usr/libexec/ld.so; then
15844 hardcode_direct=yes
15845 hardcode_shlibpath_var=no
15846 hardcode_direct_absolute=yes
15847 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15848 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15849 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15850 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15851 export_dynamic_flag_spec='${wl}-E'
15852 else
15853 case $host_os in
15854 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15855 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15856 hardcode_libdir_flag_spec='-R$libdir'
15857 ;;
15858 *)
15859 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15860 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15861 ;;
15862 esac
15863 fi
15864 else
15865 ld_shlibs=no
15866 fi
15867 ;;
15868
15869 os2*)
15870 hardcode_libdir_flag_spec='-L$libdir'
15871 hardcode_minus_L=yes
15872 allow_undefined_flag=unsupported
15873 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
15874 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15875 ;;
15876
15877 osf3*)
15878 if test "$GCC" = yes; then
15879 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15880 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'
15881 else
15882 allow_undefined_flag=' -expect_unresolved \*'
15883 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'
15884 fi
15885 archive_cmds_need_lc='no'
15886 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15887 hardcode_libdir_separator=:
15888 ;;
15889
15890 osf4* | osf5*) # as osf3* with the addition of -msym flag
15891 if test "$GCC" = yes; then
15892 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15893 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'
15894 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15895 else
15896 allow_undefined_flag=' -expect_unresolved \*'
15897 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'
15898 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~
15899 $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'
15900
15901 # Both c and cxx compiler support -rpath directly
15902 hardcode_libdir_flag_spec='-rpath $libdir'
15903 fi
15904 archive_cmds_need_lc='no'
15905 hardcode_libdir_separator=:
15906 ;;
15907
15908 solaris*)
15909 no_undefined_flag=' -z defs'
15910 if test "$GCC" = yes; then
15911 wlarc='${wl}'
15912 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15913 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15914 $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'
15915 else
15916 case `$CC -V 2>&1` in
15917 *"Compilers 5.0"*)
15918 wlarc=''
15919 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15920 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15921 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15922 ;;
15923 *)
15924 wlarc='${wl}'
15925 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15926 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15927 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15928 ;;
15929 esac
15930 fi
15931 hardcode_libdir_flag_spec='-R$libdir'
15932 hardcode_shlibpath_var=no
15933 case $host_os in
15934 solaris2.[0-5] | solaris2.[0-5].*) ;;
15935 *)
15936 # The compiler driver will combine and reorder linker options,
15937 # but understands `-z linker_flag'. GCC discards it without `$wl',
15938 # but is careful enough not to reorder.
15939 # Supported since Solaris 2.6 (maybe 2.5.1?)
15940 if test "$GCC" = yes; then
15941 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15942 else
15943 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15944 fi
15945 ;;
15946 esac
15947 link_all_deplibs=yes
15948 ;;
15949
15950 sunos4*)
15951 if test "x$host_vendor" = xsequent; then
15952 # Use $CC to link under sequent, because it throws in some extra .o
15953 # files that make .init and .fini sections work.
15954 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15955 else
15956 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15957 fi
15958 hardcode_libdir_flag_spec='-L$libdir'
15959 hardcode_direct=yes
15960 hardcode_minus_L=yes
15961 hardcode_shlibpath_var=no
15962 ;;
15963
15964 sysv4)
15965 case $host_vendor in
15966 sni)
15967 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15968 hardcode_direct=yes # is this really true???
15969 ;;
15970 siemens)
15971 ## LD is ld it makes a PLAMLIB
15972 ## CC just makes a GrossModule.
15973 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15974 reload_cmds='$CC -r -o $output$reload_objs'
15975 hardcode_direct=no
15976 ;;
15977 motorola)
15978 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15979 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15980 ;;
15981 esac
15982 runpath_var='LD_RUN_PATH'
15983 hardcode_shlibpath_var=no
15984 ;;
15985
15986 sysv4.3*)
15987 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15988 hardcode_shlibpath_var=no
15989 export_dynamic_flag_spec='-Bexport'
15990 ;;
15991
15992 sysv4*MP*)
15993 if test -d /usr/nec; then
15994 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15995 hardcode_shlibpath_var=no
15996 runpath_var=LD_RUN_PATH
15997 hardcode_runpath_var=yes
15998 ld_shlibs=yes
15999 fi
16000 ;;
16001
16002 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16003 no_undefined_flag='${wl}-z,text'
16004 archive_cmds_need_lc=no
16005 hardcode_shlibpath_var=no
16006 runpath_var='LD_RUN_PATH'
16007
16008 if test "$GCC" = yes; then
16009 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16010 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16011 else
16012 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16013 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16014 fi
16015 ;;
16016
16017 sysv5* | sco3.2v5* | sco5v6*)
16018 # Note: We can NOT use -z defs as we might desire, because we do not
16019 # link with -lc, and that would cause any symbols used from libc to
16020 # always be unresolved, which means just about no library would
16021 # ever link correctly. If we're not using GNU ld we use -z text
16022 # though, which does catch some bad symbols but isn't as heavy-handed
16023 # as -z defs.
16024 no_undefined_flag='${wl}-z,text'
16025 allow_undefined_flag='${wl}-z,nodefs'
16026 archive_cmds_need_lc=no
16027 hardcode_shlibpath_var=no
16028 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16029 hardcode_libdir_separator=':'
16030 link_all_deplibs=yes
16031 export_dynamic_flag_spec='${wl}-Bexport'
16032 runpath_var='LD_RUN_PATH'
16033
16034 if test "$GCC" = yes; then
16035 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16036 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16037 else
16038 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16039 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16040 fi
16041 ;;
16042
16043 uts4*)
16044 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16045 hardcode_libdir_flag_spec='-L$libdir'
16046 hardcode_shlibpath_var=no
16047 ;;
16048
16049 *)
16050 ld_shlibs=no
16051 ;;
16052 esac
16053
16054 if test x$host_vendor = xsni; then
16055 case $host in
16056 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16057 export_dynamic_flag_spec='${wl}-Blargedynsym'
16058 ;;
16059 esac
16060 fi
16061 fi
16062
16063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16064 $as_echo "$ld_shlibs" >&6; }
16065 test "$ld_shlibs" = no && can_build_shared=no
16066
16067 with_gnu_ld=$with_gnu_ld
16068
16069
16070
16071
16072
16073
16074
16075
16076
16077
16078
16079
16080
16081
16082
16083 #
16084 # Do we need to explicitly link libc?
16085 #
16086 case "x$archive_cmds_need_lc" in
16087 x|xyes)
16088 # Assume -lc should be added
16089 archive_cmds_need_lc=yes
16090
16091 if test "$enable_shared" = yes && test "$GCC" = yes; then
16092 case $archive_cmds in
16093 *'~'*)
16094 # FIXME: we may have to deal with multi-command sequences.
16095 ;;
16096 '$CC '*)
16097 # Test whether the compiler implicitly links with -lc since on some
16098 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16099 # to ld, don't add -lc before -lgcc.
16100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16101 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16102 if ${lt_cv_archive_cmds_need_lc+:} false; then :
16103 $as_echo_n "(cached) " >&6
16104 else
16105 $RM conftest*
16106 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16107
16108 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16109 (eval $ac_compile) 2>&5
16110 ac_status=$?
16111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16112 test $ac_status = 0; } 2>conftest.err; then
16113 soname=conftest
16114 lib=conftest
16115 libobjs=conftest.$ac_objext
16116 deplibs=
16117 wl=$lt_prog_compiler_wl
16118 pic_flag=$lt_prog_compiler_pic
16119 compiler_flags=-v
16120 linker_flags=-v
16121 verstring=
16122 output_objdir=.
16123 libname=conftest
16124 lt_save_allow_undefined_flag=$allow_undefined_flag
16125 allow_undefined_flag=
16126 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16127 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16128 ac_status=$?
16129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16130 test $ac_status = 0; }
16131 then
16132 lt_cv_archive_cmds_need_lc=no
16133 else
16134 lt_cv_archive_cmds_need_lc=yes
16135 fi
16136 allow_undefined_flag=$lt_save_allow_undefined_flag
16137 else
16138 cat conftest.err 1>&5
16139 fi
16140 $RM conftest*
16141
16142 fi
16143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16144 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16145 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16146 ;;
16147 esac
16148 fi
16149 ;;
16150 esac
16151
16152
16153
16154
16155
16156
16157
16158
16159
16160
16161
16162
16163
16164
16165
16166
16167
16168
16169
16170
16171
16172
16173
16174
16175
16176
16177
16178
16179
16180
16181
16182
16183
16184
16185
16186
16187
16188
16189
16190
16191
16192
16193
16194
16195
16196
16197
16198
16199
16200
16201
16202
16203
16204
16205
16206
16207
16208
16209
16210
16211
16212
16213
16214
16215
16216
16217
16218
16219
16220
16221
16222
16223
16224
16225
16226
16227
16228
16229
16230
16231
16232
16233
16234
16235
16236
16237
16238
16239
16240
16241
16242
16243
16244
16245
16246
16247
16248
16249
16250
16251
16252
16253
16254
16255
16256
16257
16258
16259
16260
16261
16262
16263
16264
16265
16266
16267
16268
16269
16270
16271
16272
16273
16274
16275
16276
16277
16278
16279
16280
16281
16282
16283
16284
16285
16286
16287
16288
16289
16290
16291
16292
16293
16294
16295
16296
16297
16298
16299
16300
16301
16302
16303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16304 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16305
16306 if test "$GCC" = yes; then
16307 case $host_os in
16308 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16309 *) lt_awk_arg="/^libraries:/" ;;
16310 esac
16311 case $host_os in
16312 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16313 *) lt_sed_strip_eq="s,=/,/,g" ;;
16314 esac
16315 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16316 case $lt_search_path_spec in
16317 *\;*)
16318 # if the path contains ";" then we assume it to be the separator
16319 # otherwise default to the standard path separator (i.e. ":") - it is
16320 # assumed that no part of a normal pathname contains ";" but that should
16321 # okay in the real world where ";" in dirpaths is itself problematic.
16322 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16323 ;;
16324 *)
16325 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16326 ;;
16327 esac
16328 # Ok, now we have the path, separated by spaces, we can step through it
16329 # and add multilib dir if necessary.
16330 lt_tmp_lt_search_path_spec=
16331 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16332 for lt_sys_path in $lt_search_path_spec; do
16333 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16334 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16335 else
16336 test -d "$lt_sys_path" && \
16337 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16338 fi
16339 done
16340 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16341 BEGIN {RS=" "; FS="/|\n";} {
16342 lt_foo="";
16343 lt_count=0;
16344 for (lt_i = NF; lt_i > 0; lt_i--) {
16345 if ($lt_i != "" && $lt_i != ".") {
16346 if ($lt_i == "..") {
16347 lt_count++;
16348 } else {
16349 if (lt_count == 0) {
16350 lt_foo="/" $lt_i lt_foo;
16351 } else {
16352 lt_count--;
16353 }
16354 }
16355 }
16356 }
16357 if (lt_foo != "") { lt_freq[lt_foo]++; }
16358 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16359 }'`
16360 # AWK program above erroneously prepends '/' to C:/dos/paths
16361 # for these hosts.
16362 case $host_os in
16363 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16364 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16365 esac
16366 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16367 else
16368 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16369 fi
16370 library_names_spec=
16371 libname_spec='lib$name'
16372 soname_spec=
16373 shrext_cmds=".so"
16374 postinstall_cmds=
16375 postuninstall_cmds=
16376 finish_cmds=
16377 finish_eval=
16378 shlibpath_var=
16379 shlibpath_overrides_runpath=unknown
16380 version_type=none
16381 dynamic_linker="$host_os ld.so"
16382 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16383 need_lib_prefix=unknown
16384 hardcode_into_libs=no
16385
16386 # when you set need_version to no, make sure it does not cause -set_version
16387 # flags to be left without arguments
16388 need_version=unknown
16389
16390 case $host_os in
16391 aix3*)
16392 version_type=linux # correct to gnu/linux during the next big refactor
16393 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16394 shlibpath_var=LIBPATH
16395
16396 # AIX 3 has no versioning support, so we append a major version to the name.
16397 soname_spec='${libname}${release}${shared_ext}$major'
16398 ;;
16399
16400 aix[4-9]*)
16401 version_type=linux # correct to gnu/linux during the next big refactor
16402 need_lib_prefix=no
16403 need_version=no
16404 hardcode_into_libs=yes
16405 if test "$host_cpu" = ia64; then
16406 # AIX 5 supports IA64
16407 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16408 shlibpath_var=LD_LIBRARY_PATH
16409 else
16410 # With GCC up to 2.95.x, collect2 would create an import file
16411 # for dependence libraries. The import file would start with
16412 # the line `#! .'. This would cause the generated library to
16413 # depend on `.', always an invalid library. This was fixed in
16414 # development snapshots of GCC prior to 3.0.
16415 case $host_os in
16416 aix4 | aix4.[01] | aix4.[01].*)
16417 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16418 echo ' yes '
16419 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16420 :
16421 else
16422 can_build_shared=no
16423 fi
16424 ;;
16425 esac
16426 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16427 # soname into executable. Probably we can add versioning support to
16428 # collect2, so additional links can be useful in future.
16429 if test "$aix_use_runtimelinking" = yes; then
16430 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16431 # instead of lib<name>.a to let people know that these are not
16432 # typical AIX shared libraries.
16433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16434 else
16435 # We preserve .a as extension for shared libraries through AIX4.2
16436 # and later when we are not doing run time linking.
16437 library_names_spec='${libname}${release}.a $libname.a'
16438 soname_spec='${libname}${release}${shared_ext}$major'
16439 fi
16440 shlibpath_var=LIBPATH
16441 fi
16442 ;;
16443
16444 amigaos*)
16445 case $host_cpu in
16446 powerpc)
16447 # Since July 2007 AmigaOS4 officially supports .so libraries.
16448 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16450 ;;
16451 m68k)
16452 library_names_spec='$libname.ixlibrary $libname.a'
16453 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16454 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
16455 ;;
16456 esac
16457 ;;
16458
16459 beos*)
16460 library_names_spec='${libname}${shared_ext}'
16461 dynamic_linker="$host_os ld.so"
16462 shlibpath_var=LIBRARY_PATH
16463 ;;
16464
16465 bsdi[45]*)
16466 version_type=linux # correct to gnu/linux during the next big refactor
16467 need_version=no
16468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16469 soname_spec='${libname}${release}${shared_ext}$major'
16470 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16471 shlibpath_var=LD_LIBRARY_PATH
16472 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16473 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16474 # the default ld.so.conf also contains /usr/contrib/lib and
16475 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16476 # libtool to hard-code these into programs
16477 ;;
16478
16479 cygwin* | mingw* | pw32* | cegcc*)
16480 version_type=windows
16481 shrext_cmds=".dll"
16482 need_version=no
16483 need_lib_prefix=no
16484
16485 case $GCC,$cc_basename in
16486 yes,*)
16487 # gcc
16488 library_names_spec='$libname.dll.a'
16489 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16490 postinstall_cmds='base_file=`basename \${file}`~
16491 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16492 dldir=$destdir/`dirname \$dlpath`~
16493 test -d \$dldir || mkdir -p \$dldir~
16494 $install_prog $dir/$dlname \$dldir/$dlname~
16495 chmod a+x \$dldir/$dlname~
16496 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16497 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16498 fi'
16499 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16500 dlpath=$dir/\$dldll~
16501 $RM \$dlpath'
16502 shlibpath_overrides_runpath=yes
16503
16504 case $host_os in
16505 cygwin*)
16506 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16507 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16508
16509 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16510 ;;
16511 mingw* | cegcc*)
16512 # MinGW DLLs use traditional 'lib' prefix
16513 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16514 ;;
16515 pw32*)
16516 # pw32 DLLs use 'pw' prefix rather than 'lib'
16517 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16518 ;;
16519 esac
16520 dynamic_linker='Win32 ld.exe'
16521 ;;
16522
16523 *,cl*)
16524 # Native MSVC
16525 libname_spec='$name'
16526 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16527 library_names_spec='${libname}.dll.lib'
16528
16529 case $build_os in
16530 mingw*)
16531 sys_lib_search_path_spec=
16532 lt_save_ifs=$IFS
16533 IFS=';'
16534 for lt_path in $LIB
16535 do
16536 IFS=$lt_save_ifs
16537 # Let DOS variable expansion print the short 8.3 style file name.
16538 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16539 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16540 done
16541 IFS=$lt_save_ifs
16542 # Convert to MSYS style.
16543 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16544 ;;
16545 cygwin*)
16546 # Convert to unix form, then to dos form, then back to unix form
16547 # but this time dos style (no spaces!) so that the unix form looks
16548 # like /cygdrive/c/PROGRA~1:/cygdr...
16549 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16550 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16551 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16552 ;;
16553 *)
16554 sys_lib_search_path_spec="$LIB"
16555 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16556 # It is most probably a Windows format PATH.
16557 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16558 else
16559 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16560 fi
16561 # FIXME: find the short name or the path components, as spaces are
16562 # common. (e.g. "Program Files" -> "PROGRA~1")
16563 ;;
16564 esac
16565
16566 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16567 postinstall_cmds='base_file=`basename \${file}`~
16568 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16569 dldir=$destdir/`dirname \$dlpath`~
16570 test -d \$dldir || mkdir -p \$dldir~
16571 $install_prog $dir/$dlname \$dldir/$dlname'
16572 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16573 dlpath=$dir/\$dldll~
16574 $RM \$dlpath'
16575 shlibpath_overrides_runpath=yes
16576 dynamic_linker='Win32 link.exe'
16577 ;;
16578
16579 *)
16580 # Assume MSVC wrapper
16581 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16582 dynamic_linker='Win32 ld.exe'
16583 ;;
16584 esac
16585 # FIXME: first we should search . and the directory the executable is in
16586 shlibpath_var=PATH
16587 ;;
16588
16589 darwin* | rhapsody*)
16590 dynamic_linker="$host_os dyld"
16591 version_type=darwin
16592 need_lib_prefix=no
16593 need_version=no
16594 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16595 soname_spec='${libname}${release}${major}$shared_ext'
16596 shlibpath_overrides_runpath=yes
16597 shlibpath_var=DYLD_LIBRARY_PATH
16598 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16599
16600 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16601 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16602 ;;
16603
16604 dgux*)
16605 version_type=linux # correct to gnu/linux during the next big refactor
16606 need_lib_prefix=no
16607 need_version=no
16608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16609 soname_spec='${libname}${release}${shared_ext}$major'
16610 shlibpath_var=LD_LIBRARY_PATH
16611 ;;
16612
16613 freebsd* | dragonfly*)
16614 # DragonFly does not have aout. When/if they implement a new
16615 # versioning mechanism, adjust this.
16616 if test -x /usr/bin/objformat; then
16617 objformat=`/usr/bin/objformat`
16618 else
16619 case $host_os in
16620 freebsd[23].*) objformat=aout ;;
16621 *) objformat=elf ;;
16622 esac
16623 fi
16624 version_type=freebsd-$objformat
16625 case $version_type in
16626 freebsd-elf*)
16627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16628 need_version=no
16629 need_lib_prefix=no
16630 ;;
16631 freebsd-*)
16632 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16633 need_version=yes
16634 ;;
16635 esac
16636 shlibpath_var=LD_LIBRARY_PATH
16637 case $host_os in
16638 freebsd2.*)
16639 shlibpath_overrides_runpath=yes
16640 ;;
16641 freebsd3.[01]* | freebsdelf3.[01]*)
16642 shlibpath_overrides_runpath=yes
16643 hardcode_into_libs=yes
16644 ;;
16645 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16646 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16647 shlibpath_overrides_runpath=no
16648 hardcode_into_libs=yes
16649 ;;
16650 *) # from 4.6 on, and DragonFly
16651 shlibpath_overrides_runpath=yes
16652 hardcode_into_libs=yes
16653 ;;
16654 esac
16655 ;;
16656
16657 gnu*)
16658 version_type=linux # correct to gnu/linux during the next big refactor
16659 need_lib_prefix=no
16660 need_version=no
16661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16662 soname_spec='${libname}${release}${shared_ext}$major'
16663 shlibpath_var=LD_LIBRARY_PATH
16664 shlibpath_overrides_runpath=no
16665 hardcode_into_libs=yes
16666 ;;
16667
16668 haiku*)
16669 version_type=linux # correct to gnu/linux during the next big refactor
16670 need_lib_prefix=no
16671 need_version=no
16672 dynamic_linker="$host_os runtime_loader"
16673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16674 soname_spec='${libname}${release}${shared_ext}$major'
16675 shlibpath_var=LIBRARY_PATH
16676 shlibpath_overrides_runpath=yes
16677 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16678 hardcode_into_libs=yes
16679 ;;
16680
16681 hpux9* | hpux10* | hpux11*)
16682 # Give a soname corresponding to the major version so that dld.sl refuses to
16683 # link against other versions.
16684 version_type=sunos
16685 need_lib_prefix=no
16686 need_version=no
16687 case $host_cpu in
16688 ia64*)
16689 shrext_cmds='.so'
16690 hardcode_into_libs=yes
16691 dynamic_linker="$host_os dld.so"
16692 shlibpath_var=LD_LIBRARY_PATH
16693 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16695 soname_spec='${libname}${release}${shared_ext}$major'
16696 if test "X$HPUX_IA64_MODE" = X32; then
16697 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16698 else
16699 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16700 fi
16701 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16702 ;;
16703 hppa*64*)
16704 shrext_cmds='.sl'
16705 hardcode_into_libs=yes
16706 dynamic_linker="$host_os dld.sl"
16707 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16708 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16710 soname_spec='${libname}${release}${shared_ext}$major'
16711 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16712 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16713 ;;
16714 *)
16715 shrext_cmds='.sl'
16716 dynamic_linker="$host_os dld.sl"
16717 shlibpath_var=SHLIB_PATH
16718 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16720 soname_spec='${libname}${release}${shared_ext}$major'
16721 ;;
16722 esac
16723 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16724 postinstall_cmds='chmod 555 $lib'
16725 # or fails outright, so override atomically:
16726 install_override_mode=555
16727 ;;
16728
16729 interix[3-9]*)
16730 version_type=linux # correct to gnu/linux during the next big refactor
16731 need_lib_prefix=no
16732 need_version=no
16733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16734 soname_spec='${libname}${release}${shared_ext}$major'
16735 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16736 shlibpath_var=LD_LIBRARY_PATH
16737 shlibpath_overrides_runpath=no
16738 hardcode_into_libs=yes
16739 ;;
16740
16741 irix5* | irix6* | nonstopux*)
16742 case $host_os in
16743 nonstopux*) version_type=nonstopux ;;
16744 *)
16745 if test "$lt_cv_prog_gnu_ld" = yes; then
16746 version_type=linux # correct to gnu/linux during the next big refactor
16747 else
16748 version_type=irix
16749 fi ;;
16750 esac
16751 need_lib_prefix=no
16752 need_version=no
16753 soname_spec='${libname}${release}${shared_ext}$major'
16754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16755 case $host_os in
16756 irix5* | nonstopux*)
16757 libsuff= shlibsuff=
16758 ;;
16759 *)
16760 case $LD in # libtool.m4 will add one of these switches to LD
16761 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16762 libsuff= shlibsuff= libmagic=32-bit;;
16763 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16764 libsuff=32 shlibsuff=N32 libmagic=N32;;
16765 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16766 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16767 *) libsuff= shlibsuff= libmagic=never-match;;
16768 esac
16769 ;;
16770 esac
16771 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16772 shlibpath_overrides_runpath=no
16773 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16774 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16775 hardcode_into_libs=yes
16776 ;;
16777
16778 # No shared lib support for Linux oldld, aout, or coff.
16779 linux*oldld* | linux*aout* | linux*coff*)
16780 dynamic_linker=no
16781 ;;
16782
16783 # This must be glibc/ELF.
16784 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16785 version_type=linux # correct to gnu/linux during the next big refactor
16786 need_lib_prefix=no
16787 need_version=no
16788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16789 soname_spec='${libname}${release}${shared_ext}$major'
16790 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16791 shlibpath_var=LD_LIBRARY_PATH
16792 shlibpath_overrides_runpath=no
16793
16794 # Some binutils ld are patched to set DT_RUNPATH
16795 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16796 $as_echo_n "(cached) " >&6
16797 else
16798 lt_cv_shlibpath_overrides_runpath=no
16799 save_LDFLAGS=$LDFLAGS
16800 save_libdir=$libdir
16801 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16802 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16804 /* end confdefs.h. */
16805
16806 int
16807 main ()
16808 {
16809
16810 ;
16811 return 0;
16812 }
16813 _ACEOF
16814 if ac_fn_c_try_link "$LINENO"; then :
16815 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16816 lt_cv_shlibpath_overrides_runpath=yes
16817 fi
16818 fi
16819 rm -f core conftest.err conftest.$ac_objext \
16820 conftest$ac_exeext conftest.$ac_ext
16821 LDFLAGS=$save_LDFLAGS
16822 libdir=$save_libdir
16823
16824 fi
16825
16826 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16827
16828 # This implies no fast_install, which is unacceptable.
16829 # Some rework will be needed to allow for fast_install
16830 # before this can be enabled.
16831 hardcode_into_libs=yes
16832
16833 # Add ABI-specific directories to the system library path.
16834 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
16835
16836 # Append ld.so.conf contents to the search path
16837 if test -f /etc/ld.so.conf; then
16838 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' ' '`
16839 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
16840
16841 fi
16842
16843 # We used to test for /lib/ld.so.1 and disable shared libraries on
16844 # powerpc, because MkLinux only supported shared libraries with the
16845 # GNU dynamic linker. Since this was broken with cross compilers,
16846 # most powerpc-linux boxes support dynamic linking these days and
16847 # people can always --disable-shared, the test was removed, and we
16848 # assume the GNU/Linux dynamic linker is in use.
16849 dynamic_linker='GNU/Linux ld.so'
16850 ;;
16851
16852 netbsd*)
16853 version_type=sunos
16854 need_lib_prefix=no
16855 need_version=no
16856 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16858 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16859 dynamic_linker='NetBSD (a.out) ld.so'
16860 else
16861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16862 soname_spec='${libname}${release}${shared_ext}$major'
16863 dynamic_linker='NetBSD ld.elf_so'
16864 fi
16865 shlibpath_var=LD_LIBRARY_PATH
16866 shlibpath_overrides_runpath=yes
16867 hardcode_into_libs=yes
16868 ;;
16869
16870 newsos6)
16871 version_type=linux # correct to gnu/linux during the next big refactor
16872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16873 shlibpath_var=LD_LIBRARY_PATH
16874 shlibpath_overrides_runpath=yes
16875 ;;
16876
16877 *nto* | *qnx*)
16878 version_type=qnx
16879 need_lib_prefix=no
16880 need_version=no
16881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16882 soname_spec='${libname}${release}${shared_ext}$major'
16883 shlibpath_var=LD_LIBRARY_PATH
16884 shlibpath_overrides_runpath=no
16885 hardcode_into_libs=yes
16886 dynamic_linker='ldqnx.so'
16887 ;;
16888
16889 openbsd*)
16890 version_type=sunos
16891 sys_lib_dlsearch_path_spec="/usr/lib"
16892 need_lib_prefix=no
16893 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16894 case $host_os in
16895 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16896 *) need_version=no ;;
16897 esac
16898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16899 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16900 shlibpath_var=LD_LIBRARY_PATH
16901 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16902 case $host_os in
16903 openbsd2.[89] | openbsd2.[89].*)
16904 shlibpath_overrides_runpath=no
16905 ;;
16906 *)
16907 shlibpath_overrides_runpath=yes
16908 ;;
16909 esac
16910 else
16911 shlibpath_overrides_runpath=yes
16912 fi
16913 ;;
16914
16915 os2*)
16916 libname_spec='$name'
16917 shrext_cmds=".dll"
16918 need_lib_prefix=no
16919 library_names_spec='$libname${shared_ext} $libname.a'
16920 dynamic_linker='OS/2 ld.exe'
16921 shlibpath_var=LIBPATH
16922 ;;
16923
16924 osf3* | osf4* | osf5*)
16925 version_type=osf
16926 need_lib_prefix=no
16927 need_version=no
16928 soname_spec='${libname}${release}${shared_ext}$major'
16929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16930 shlibpath_var=LD_LIBRARY_PATH
16931 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16932 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16933 ;;
16934
16935 rdos*)
16936 dynamic_linker=no
16937 ;;
16938
16939 solaris*)
16940 version_type=linux # correct to gnu/linux during the next big refactor
16941 need_lib_prefix=no
16942 need_version=no
16943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16944 soname_spec='${libname}${release}${shared_ext}$major'
16945 shlibpath_var=LD_LIBRARY_PATH
16946 shlibpath_overrides_runpath=yes
16947 hardcode_into_libs=yes
16948 # ldd complains unless libraries are executable
16949 postinstall_cmds='chmod +x $lib'
16950 ;;
16951
16952 sunos4*)
16953 version_type=sunos
16954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16955 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16956 shlibpath_var=LD_LIBRARY_PATH
16957 shlibpath_overrides_runpath=yes
16958 if test "$with_gnu_ld" = yes; then
16959 need_lib_prefix=no
16960 fi
16961 need_version=yes
16962 ;;
16963
16964 sysv4 | sysv4.3*)
16965 version_type=linux # correct to gnu/linux during the next big refactor
16966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16967 soname_spec='${libname}${release}${shared_ext}$major'
16968 shlibpath_var=LD_LIBRARY_PATH
16969 case $host_vendor in
16970 sni)
16971 shlibpath_overrides_runpath=no
16972 need_lib_prefix=no
16973 runpath_var=LD_RUN_PATH
16974 ;;
16975 siemens)
16976 need_lib_prefix=no
16977 ;;
16978 motorola)
16979 need_lib_prefix=no
16980 need_version=no
16981 shlibpath_overrides_runpath=no
16982 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16983 ;;
16984 esac
16985 ;;
16986
16987 sysv4*MP*)
16988 if test -d /usr/nec ;then
16989 version_type=linux # correct to gnu/linux during the next big refactor
16990 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16991 soname_spec='$libname${shared_ext}.$major'
16992 shlibpath_var=LD_LIBRARY_PATH
16993 fi
16994 ;;
16995
16996 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16997 version_type=freebsd-elf
16998 need_lib_prefix=no
16999 need_version=no
17000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17001 soname_spec='${libname}${release}${shared_ext}$major'
17002 shlibpath_var=LD_LIBRARY_PATH
17003 shlibpath_overrides_runpath=yes
17004 hardcode_into_libs=yes
17005 if test "$with_gnu_ld" = yes; then
17006 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17007 else
17008 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17009 case $host_os in
17010 sco3.2v5*)
17011 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17012 ;;
17013 esac
17014 fi
17015 sys_lib_dlsearch_path_spec='/usr/lib'
17016 ;;
17017
17018 tpf*)
17019 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17020 version_type=linux # correct to gnu/linux during the next big refactor
17021 need_lib_prefix=no
17022 need_version=no
17023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17024 shlibpath_var=LD_LIBRARY_PATH
17025 shlibpath_overrides_runpath=no
17026 hardcode_into_libs=yes
17027 ;;
17028
17029 uts4*)
17030 version_type=linux # correct to gnu/linux during the next big refactor
17031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17032 soname_spec='${libname}${release}${shared_ext}$major'
17033 shlibpath_var=LD_LIBRARY_PATH
17034 ;;
17035
17036 *)
17037 dynamic_linker=no
17038 ;;
17039 esac
17040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17041 $as_echo "$dynamic_linker" >&6; }
17042 test "$dynamic_linker" = no && can_build_shared=no
17043
17044 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17045 if test "$GCC" = yes; then
17046 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17047 fi
17048
17049 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17050 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17051 fi
17052 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17053 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17054 fi
17055
17056
17057
17058
17059
17060
17061
17062
17063
17064
17065
17066
17067
17068
17069
17070
17071
17072
17073
17074
17075
17076
17077
17078
17079
17080
17081
17082
17083
17084
17085
17086
17087
17088
17089
17090
17091
17092
17093
17094
17095
17096
17097
17098
17099
17100
17101
17102
17103
17104
17105
17106
17107
17108
17109
17110
17111
17112
17113
17114
17115
17116
17117
17118
17119
17120
17121
17122
17123
17124
17125
17126
17127
17128
17129
17130
17131
17132
17133
17134
17135
17136
17137
17138
17139
17140
17141
17142
17143
17144
17145
17146
17147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17148 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17149 hardcode_action=
17150 if test -n "$hardcode_libdir_flag_spec" ||
17151 test -n "$runpath_var" ||
17152 test "X$hardcode_automatic" = "Xyes" ; then
17153
17154 # We can hardcode non-existent directories.
17155 if test "$hardcode_direct" != no &&
17156 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17157 # have to relink, otherwise we might link with an installed library
17158 # when we should be linking with a yet-to-be-installed one
17159 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17160 test "$hardcode_minus_L" != no; then
17161 # Linking always hardcodes the temporary library directory.
17162 hardcode_action=relink
17163 else
17164 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17165 hardcode_action=immediate
17166 fi
17167 else
17168 # We cannot hardcode anything, or else we can only hardcode existing
17169 # directories.
17170 hardcode_action=unsupported
17171 fi
17172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17173 $as_echo "$hardcode_action" >&6; }
17174
17175 if test "$hardcode_action" = relink ||
17176 test "$inherit_rpath" = yes; then
17177 # Fast installation is not supported
17178 enable_fast_install=no
17179 elif test "$shlibpath_overrides_runpath" = yes ||
17180 test "$enable_shared" = no; then
17181 # Fast installation is not necessary
17182 enable_fast_install=needless
17183 fi
17184
17185
17186
17187
17188
17189
17190 if test "x$enable_dlopen" != xyes; then
17191 enable_dlopen=unknown
17192 enable_dlopen_self=unknown
17193 enable_dlopen_self_static=unknown
17194 else
17195 lt_cv_dlopen=no
17196 lt_cv_dlopen_libs=
17197
17198 case $host_os in
17199 beos*)
17200 lt_cv_dlopen="load_add_on"
17201 lt_cv_dlopen_libs=
17202 lt_cv_dlopen_self=yes
17203 ;;
17204
17205 mingw* | pw32* | cegcc*)
17206 lt_cv_dlopen="LoadLibrary"
17207 lt_cv_dlopen_libs=
17208 ;;
17209
17210 cygwin*)
17211 lt_cv_dlopen="dlopen"
17212 lt_cv_dlopen_libs=
17213 ;;
17214
17215 darwin*)
17216 # if libdl is installed we need to link against it
17217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17218 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17219 if ${ac_cv_lib_dl_dlopen+:} false; then :
17220 $as_echo_n "(cached) " >&6
17221 else
17222 ac_check_lib_save_LIBS=$LIBS
17223 LIBS="-ldl $LIBS"
17224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17225 /* end confdefs.h. */
17226
17227 /* Override any GCC internal prototype to avoid an error.
17228 Use char because int might match the return type of a GCC
17229 builtin and then its argument prototype would still apply. */
17230 #ifdef __cplusplus
17231 extern "C"
17232 #endif
17233 char dlopen ();
17234 int
17235 main ()
17236 {
17237 return dlopen ();
17238 ;
17239 return 0;
17240 }
17241 _ACEOF
17242 if ac_fn_c_try_link "$LINENO"; then :
17243 ac_cv_lib_dl_dlopen=yes
17244 else
17245 ac_cv_lib_dl_dlopen=no
17246 fi
17247 rm -f core conftest.err conftest.$ac_objext \
17248 conftest$ac_exeext conftest.$ac_ext
17249 LIBS=$ac_check_lib_save_LIBS
17250 fi
17251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17252 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17253 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17254 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17255 else
17256
17257 lt_cv_dlopen="dyld"
17258 lt_cv_dlopen_libs=
17259 lt_cv_dlopen_self=yes
17260
17261 fi
17262
17263 ;;
17264
17265 *)
17266 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17267 if test "x$ac_cv_func_shl_load" = xyes; then :
17268 lt_cv_dlopen="shl_load"
17269 else
17270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17271 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17272 if ${ac_cv_lib_dld_shl_load+:} false; then :
17273 $as_echo_n "(cached) " >&6
17274 else
17275 ac_check_lib_save_LIBS=$LIBS
17276 LIBS="-ldld $LIBS"
17277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17278 /* end confdefs.h. */
17279
17280 /* Override any GCC internal prototype to avoid an error.
17281 Use char because int might match the return type of a GCC
17282 builtin and then its argument prototype would still apply. */
17283 #ifdef __cplusplus
17284 extern "C"
17285 #endif
17286 char shl_load ();
17287 int
17288 main ()
17289 {
17290 return shl_load ();
17291 ;
17292 return 0;
17293 }
17294 _ACEOF
17295 if ac_fn_c_try_link "$LINENO"; then :
17296 ac_cv_lib_dld_shl_load=yes
17297 else
17298 ac_cv_lib_dld_shl_load=no
17299 fi
17300 rm -f core conftest.err conftest.$ac_objext \
17301 conftest$ac_exeext conftest.$ac_ext
17302 LIBS=$ac_check_lib_save_LIBS
17303 fi
17304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17305 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17306 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
17307 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17308 else
17309 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17310 if test "x$ac_cv_func_dlopen" = xyes; then :
17311 lt_cv_dlopen="dlopen"
17312 else
17313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17314 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17315 if ${ac_cv_lib_dl_dlopen+:} false; then :
17316 $as_echo_n "(cached) " >&6
17317 else
17318 ac_check_lib_save_LIBS=$LIBS
17319 LIBS="-ldl $LIBS"
17320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17321 /* end confdefs.h. */
17322
17323 /* Override any GCC internal prototype to avoid an error.
17324 Use char because int might match the return type of a GCC
17325 builtin and then its argument prototype would still apply. */
17326 #ifdef __cplusplus
17327 extern "C"
17328 #endif
17329 char dlopen ();
17330 int
17331 main ()
17332 {
17333 return dlopen ();
17334 ;
17335 return 0;
17336 }
17337 _ACEOF
17338 if ac_fn_c_try_link "$LINENO"; then :
17339 ac_cv_lib_dl_dlopen=yes
17340 else
17341 ac_cv_lib_dl_dlopen=no
17342 fi
17343 rm -f core conftest.err conftest.$ac_objext \
17344 conftest$ac_exeext conftest.$ac_ext
17345 LIBS=$ac_check_lib_save_LIBS
17346 fi
17347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17348 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17349 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17350 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17351 else
17352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17353 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17354 if ${ac_cv_lib_svld_dlopen+:} false; then :
17355 $as_echo_n "(cached) " >&6
17356 else
17357 ac_check_lib_save_LIBS=$LIBS
17358 LIBS="-lsvld $LIBS"
17359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17360 /* end confdefs.h. */
17361
17362 /* Override any GCC internal prototype to avoid an error.
17363 Use char because int might match the return type of a GCC
17364 builtin and then its argument prototype would still apply. */
17365 #ifdef __cplusplus
17366 extern "C"
17367 #endif
17368 char dlopen ();
17369 int
17370 main ()
17371 {
17372 return dlopen ();
17373 ;
17374 return 0;
17375 }
17376 _ACEOF
17377 if ac_fn_c_try_link "$LINENO"; then :
17378 ac_cv_lib_svld_dlopen=yes
17379 else
17380 ac_cv_lib_svld_dlopen=no
17381 fi
17382 rm -f core conftest.err conftest.$ac_objext \
17383 conftest$ac_exeext conftest.$ac_ext
17384 LIBS=$ac_check_lib_save_LIBS
17385 fi
17386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17387 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17388 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
17389 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17390 else
17391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17392 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17393 if ${ac_cv_lib_dld_dld_link+:} false; then :
17394 $as_echo_n "(cached) " >&6
17395 else
17396 ac_check_lib_save_LIBS=$LIBS
17397 LIBS="-ldld $LIBS"
17398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17399 /* end confdefs.h. */
17400
17401 /* Override any GCC internal prototype to avoid an error.
17402 Use char because int might match the return type of a GCC
17403 builtin and then its argument prototype would still apply. */
17404 #ifdef __cplusplus
17405 extern "C"
17406 #endif
17407 char dld_link ();
17408 int
17409 main ()
17410 {
17411 return dld_link ();
17412 ;
17413 return 0;
17414 }
17415 _ACEOF
17416 if ac_fn_c_try_link "$LINENO"; then :
17417 ac_cv_lib_dld_dld_link=yes
17418 else
17419 ac_cv_lib_dld_dld_link=no
17420 fi
17421 rm -f core conftest.err conftest.$ac_objext \
17422 conftest$ac_exeext conftest.$ac_ext
17423 LIBS=$ac_check_lib_save_LIBS
17424 fi
17425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17426 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17427 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
17428 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17429 fi
17430
17431
17432 fi
17433
17434
17435 fi
17436
17437
17438 fi
17439
17440
17441 fi
17442
17443
17444 fi
17445
17446 ;;
17447 esac
17448
17449 if test "x$lt_cv_dlopen" != xno; then
17450 enable_dlopen=yes
17451 else
17452 enable_dlopen=no
17453 fi
17454
17455 case $lt_cv_dlopen in
17456 dlopen)
17457 save_CPPFLAGS="$CPPFLAGS"
17458 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17459
17460 save_LDFLAGS="$LDFLAGS"
17461 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17462
17463 save_LIBS="$LIBS"
17464 LIBS="$lt_cv_dlopen_libs $LIBS"
17465
17466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17467 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17468 if ${lt_cv_dlopen_self+:} false; then :
17469 $as_echo_n "(cached) " >&6
17470 else
17471 if test "$cross_compiling" = yes; then :
17472 lt_cv_dlopen_self=cross
17473 else
17474 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17475 lt_status=$lt_dlunknown
17476 cat > conftest.$ac_ext <<_LT_EOF
17477 #line $LINENO "configure"
17478 #include "confdefs.h"
17479
17480 #if HAVE_DLFCN_H
17481 #include <dlfcn.h>
17482 #endif
17483
17484 #include <stdio.h>
17485
17486 #ifdef RTLD_GLOBAL
17487 # define LT_DLGLOBAL RTLD_GLOBAL
17488 #else
17489 # ifdef DL_GLOBAL
17490 # define LT_DLGLOBAL DL_GLOBAL
17491 # else
17492 # define LT_DLGLOBAL 0
17493 # endif
17494 #endif
17495
17496 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17497 find out it does not work in some platform. */
17498 #ifndef LT_DLLAZY_OR_NOW
17499 # ifdef RTLD_LAZY
17500 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17501 # else
17502 # ifdef DL_LAZY
17503 # define LT_DLLAZY_OR_NOW DL_LAZY
17504 # else
17505 # ifdef RTLD_NOW
17506 # define LT_DLLAZY_OR_NOW RTLD_NOW
17507 # else
17508 # ifdef DL_NOW
17509 # define LT_DLLAZY_OR_NOW DL_NOW
17510 # else
17511 # define LT_DLLAZY_OR_NOW 0
17512 # endif
17513 # endif
17514 # endif
17515 # endif
17516 #endif
17517
17518 /* When -fvisbility=hidden is used, assume the code has been annotated
17519 correspondingly for the symbols needed. */
17520 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17521 int fnord () __attribute__((visibility("default")));
17522 #endif
17523
17524 int fnord () { return 42; }
17525 int main ()
17526 {
17527 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17528 int status = $lt_dlunknown;
17529
17530 if (self)
17531 {
17532 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17533 else
17534 {
17535 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17536 else puts (dlerror ());
17537 }
17538 /* dlclose (self); */
17539 }
17540 else
17541 puts (dlerror ());
17542
17543 return status;
17544 }
17545 _LT_EOF
17546 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17547 (eval $ac_link) 2>&5
17548 ac_status=$?
17549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17550 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17551 (./conftest; exit; ) >&5 2>/dev/null
17552 lt_status=$?
17553 case x$lt_status in
17554 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17555 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17556 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17557 esac
17558 else :
17559 # compilation failed
17560 lt_cv_dlopen_self=no
17561 fi
17562 fi
17563 rm -fr conftest*
17564
17565
17566 fi
17567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17568 $as_echo "$lt_cv_dlopen_self" >&6; }
17569
17570 if test "x$lt_cv_dlopen_self" = xyes; then
17571 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17573 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17574 if ${lt_cv_dlopen_self_static+:} false; then :
17575 $as_echo_n "(cached) " >&6
17576 else
17577 if test "$cross_compiling" = yes; then :
17578 lt_cv_dlopen_self_static=cross
17579 else
17580 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17581 lt_status=$lt_dlunknown
17582 cat > conftest.$ac_ext <<_LT_EOF
17583 #line $LINENO "configure"
17584 #include "confdefs.h"
17585
17586 #if HAVE_DLFCN_H
17587 #include <dlfcn.h>
17588 #endif
17589
17590 #include <stdio.h>
17591
17592 #ifdef RTLD_GLOBAL
17593 # define LT_DLGLOBAL RTLD_GLOBAL
17594 #else
17595 # ifdef DL_GLOBAL
17596 # define LT_DLGLOBAL DL_GLOBAL
17597 # else
17598 # define LT_DLGLOBAL 0
17599 # endif
17600 #endif
17601
17602 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17603 find out it does not work in some platform. */
17604 #ifndef LT_DLLAZY_OR_NOW
17605 # ifdef RTLD_LAZY
17606 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17607 # else
17608 # ifdef DL_LAZY
17609 # define LT_DLLAZY_OR_NOW DL_LAZY
17610 # else
17611 # ifdef RTLD_NOW
17612 # define LT_DLLAZY_OR_NOW RTLD_NOW
17613 # else
17614 # ifdef DL_NOW
17615 # define LT_DLLAZY_OR_NOW DL_NOW
17616 # else
17617 # define LT_DLLAZY_OR_NOW 0
17618 # endif
17619 # endif
17620 # endif
17621 # endif
17622 #endif
17623
17624 /* When -fvisbility=hidden is used, assume the code has been annotated
17625 correspondingly for the symbols needed. */
17626 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17627 int fnord () __attribute__((visibility("default")));
17628 #endif
17629
17630 int fnord () { return 42; }
17631 int main ()
17632 {
17633 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17634 int status = $lt_dlunknown;
17635
17636 if (self)
17637 {
17638 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17639 else
17640 {
17641 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17642 else puts (dlerror ());
17643 }
17644 /* dlclose (self); */
17645 }
17646 else
17647 puts (dlerror ());
17648
17649 return status;
17650 }
17651 _LT_EOF
17652 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17653 (eval $ac_link) 2>&5
17654 ac_status=$?
17655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17656 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17657 (./conftest; exit; ) >&5 2>/dev/null
17658 lt_status=$?
17659 case x$lt_status in
17660 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17661 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17662 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17663 esac
17664 else :
17665 # compilation failed
17666 lt_cv_dlopen_self_static=no
17667 fi
17668 fi
17669 rm -fr conftest*
17670
17671
17672 fi
17673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17674 $as_echo "$lt_cv_dlopen_self_static" >&6; }
17675 fi
17676
17677 CPPFLAGS="$save_CPPFLAGS"
17678 LDFLAGS="$save_LDFLAGS"
17679 LIBS="$save_LIBS"
17680 ;;
17681 esac
17682
17683 case $lt_cv_dlopen_self in
17684 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17685 *) enable_dlopen_self=unknown ;;
17686 esac
17687
17688 case $lt_cv_dlopen_self_static in
17689 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17690 *) enable_dlopen_self_static=unknown ;;
17691 esac
17692 fi
17693
17694
17695
17696
17697
17698
17699
17700
17701
17702
17703
17704
17705
17706
17707
17708
17709
17710 striplib=
17711 old_striplib=
17712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17713 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
17714 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17715 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17716 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17718 $as_echo "yes" >&6; }
17719 else
17720 # FIXME - insert some real tests, host_os isn't really good enough
17721 case $host_os in
17722 darwin*)
17723 if test -n "$STRIP" ; then
17724 striplib="$STRIP -x"
17725 old_striplib="$STRIP -S"
17726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17727 $as_echo "yes" >&6; }
17728 else
17729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17730 $as_echo "no" >&6; }
17731 fi
17732 ;;
17733 *)
17734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17735 $as_echo "no" >&6; }
17736 ;;
17737 esac
17738 fi
17739
17740
17741
17742
17743
17744
17745
17746
17747
17748
17749
17750
17751 # Report which library types will actually be built
17752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17753 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
17754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17755 $as_echo "$can_build_shared" >&6; }
17756
17757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17758 $as_echo_n "checking whether to build shared libraries... " >&6; }
17759 test "$can_build_shared" = "no" && enable_shared=no
17760
17761 # On AIX, shared libraries and static libraries use the same namespace, and
17762 # are all built from PIC.
17763 case $host_os in
17764 aix3*)
17765 test "$enable_shared" = yes && enable_static=no
17766 if test -n "$RANLIB"; then
17767 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17768 postinstall_cmds='$RANLIB $lib'
17769 fi
17770 ;;
17771
17772 aix[4-9]*)
17773 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17774 test "$enable_shared" = yes && enable_static=no
17775 fi
17776 ;;
17777 esac
17778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17779 $as_echo "$enable_shared" >&6; }
17780
17781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17782 $as_echo_n "checking whether to build static libraries... " >&6; }
17783 # Make sure either enable_shared or enable_static is yes.
17784 test "$enable_shared" = yes || enable_static=yes
17785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17786 $as_echo "$enable_static" >&6; }
17787
17788
17789
17790
17791 fi
17792 ac_ext=c
17793 ac_cpp='$CPP $CPPFLAGS'
17794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17797
17798 CC="$lt_save_CC"
17799
17800
17801
17802
17803
17804
17805
17806
17807
17808
17809
17810
17811
17812
17813
17814 ac_config_commands="$ac_config_commands libtool"
17815
17816
17817
17818
17819 # Only expand once:
17820
17821
17822
17823
17824
17825 # Define a configure option for an alternate module directory
17826
17827 # Check whether --with-xorg-module-dir was given.
17828 if test "${with_xorg_module_dir+set}" = set; then :
17829 withval=$with_xorg_module_dir; moduledir="$withval"
17830 else
17831 moduledir="$libdir/xorg/modules"
17832 fi
17833
17834
17835 # Check whether --enable-dri was given.
17836 if test "${enable_dri+set}" = set; then :
17837 enableval=$enable_dri; DRI="$enableval"
17838 else
17839 DRI=auto
17840 fi
17841
17842 # Check whether --enable-exa was given.
17843 if test "${enable_exa+set}" = set; then :
17844 enableval=$enable_exa; EXA="$enableval"
17845 else
17846 EXA=yes
17847 fi
17848
17849
17850 # Store the list of server defined optional extensions in REQUIRED_MODULES
17851
17852
17853 SAVE_CFLAGS="$CFLAGS"
17854 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17856 /* end confdefs.h. */
17857
17858 #include "xorg-server.h"
17859 #if !defined RANDR
17860 #error RANDR not defined
17861 #endif
17862
17863 int
17864 main ()
17865 {
17866
17867 ;
17868 return 0;
17869 }
17870 _ACEOF
17871 if ac_fn_c_try_compile "$LINENO"; then :
17872 _EXT_CHECK=yes
17873 else
17874 _EXT_CHECK=no
17875 fi
17876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17877 CFLAGS="$SAVE_CFLAGS"
17878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
17879 $as_echo_n "checking if RANDR is defined... " >&6; }
17880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17881 $as_echo "$_EXT_CHECK" >&6; }
17882 if test "$_EXT_CHECK" != no; then
17883 REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
17884 fi
17885
17886
17887
17888 SAVE_CFLAGS="$CFLAGS"
17889 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17891 /* end confdefs.h. */
17892
17893 #include "xorg-server.h"
17894 #if !defined RENDER
17895 #error RENDER not defined
17896 #endif
17897
17898 int
17899 main ()
17900 {
17901
17902 ;
17903 return 0;
17904 }
17905 _ACEOF
17906 if ac_fn_c_try_compile "$LINENO"; then :
17907 _EXT_CHECK=yes
17908 else
17909 _EXT_CHECK=no
17910 fi
17911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17912 CFLAGS="$SAVE_CFLAGS"
17913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5
17914 $as_echo_n "checking if RENDER is defined... " >&6; }
17915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17916 $as_echo "$_EXT_CHECK" >&6; }
17917 if test "$_EXT_CHECK" != no; then
17918 REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
17919 fi
17920
17921
17922
17923 SAVE_CFLAGS="$CFLAGS"
17924 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17926 /* end confdefs.h. */
17927
17928 #include "xorg-server.h"
17929 #if !defined XV
17930 #error XV not defined
17931 #endif
17932
17933 int
17934 main ()
17935 {
17936
17937 ;
17938 return 0;
17939 }
17940 _ACEOF
17941 if ac_fn_c_try_compile "$LINENO"; then :
17942 _EXT_CHECK=yes
17943 else
17944 _EXT_CHECK=no
17945 fi
17946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17947 CFLAGS="$SAVE_CFLAGS"
17948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5
17949 $as_echo_n "checking if XV is defined... " >&6; }
17950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17951 $as_echo "$_EXT_CHECK" >&6; }
17952 if test "$_EXT_CHECK" != no; then
17953 REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
17954 fi
17955
17956
17957
17958 SAVE_CFLAGS="$CFLAGS"
17959 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17961 /* end confdefs.h. */
17962
17963 #include "xorg-server.h"
17964 #if !defined DPMSExtension
17965 #error DPMSExtension not defined
17966 #endif
17967
17968 int
17969 main ()
17970 {
17971
17972 ;
17973 return 0;
17974 }
17975 _ACEOF
17976 if ac_fn_c_try_compile "$LINENO"; then :
17977 _EXT_CHECK=yes
17978 else
17979 _EXT_CHECK=no
17980 fi
17981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17982 CFLAGS="$SAVE_CFLAGS"
17983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
17984 $as_echo_n "checking if DPMSExtension is defined... " >&6; }
17985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17986 $as_echo "$_EXT_CHECK" >&6; }
17987 if test "$_EXT_CHECK" != no; then
17988 REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
17989 fi
17990
17991
17992 # Obtain compiler/linker options for the driver dependencies
17993
17994 pkg_failed=no
17995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
17996 $as_echo_n "checking for XORG... " >&6; }
17997
17998 if test -n "$XORG_CFLAGS"; then
17999 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
18000 elif test -n "$PKG_CONFIG"; then
18001 if test -n "$PKG_CONFIG" && \
18002 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.1.0 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
18003 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES") 2>&5
18004 ac_status=$?
18005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18006 test $ac_status = 0; }; then
18007 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
18008 test "x$?" != "x0" && pkg_failed=yes
18009 else
18010 pkg_failed=yes
18011 fi
18012 else
18013 pkg_failed=untried
18014 fi
18015 if test -n "$XORG_LIBS"; then
18016 pkg_cv_XORG_LIBS="$XORG_LIBS"
18017 elif test -n "$PKG_CONFIG"; then
18018 if test -n "$PKG_CONFIG" && \
18019 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.1.0 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
18020 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES") 2>&5
18021 ac_status=$?
18022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18023 test $ac_status = 0; }; then
18024 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
18025 test "x$?" != "x0" && pkg_failed=yes
18026 else
18027 pkg_failed=yes
18028 fi
18029 else
18030 pkg_failed=untried
18031 fi
18032
18033
18034
18035 if test $pkg_failed = yes; then
18036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18037 $as_echo "no" >&6; }
18038
18039 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18040 _pkg_short_errors_supported=yes
18041 else
18042 _pkg_short_errors_supported=no
18043 fi
18044 if test $_pkg_short_errors_supported = yes; then
18045 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES" 2>&1`
18046 else
18047 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES" 2>&1`
18048 fi
18049 # Put the nasty error message in config.log where it belongs
18050 echo "$XORG_PKG_ERRORS" >&5
18051
18052 as_fn_error $? "Package requirements (xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES) were not met:
18053
18054 $XORG_PKG_ERRORS
18055
18056 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18057 installed software in a non-standard prefix.
18058
18059 Alternatively, you may set the environment variables XORG_CFLAGS
18060 and XORG_LIBS to avoid the need to call pkg-config.
18061 See the pkg-config man page for more details." "$LINENO" 5
18062 elif test $pkg_failed = untried; then
18063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18064 $as_echo "no" >&6; }
18065 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18066 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18067 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18068 is in your PATH or set the PKG_CONFIG environment variable to the full
18069 path to pkg-config.
18070
18071 Alternatively, you may set the environment variables XORG_CFLAGS
18072 and XORG_LIBS to avoid the need to call pkg-config.
18073 See the pkg-config man page for more details.
18074
18075 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18076 See \`config.log' for more details" "$LINENO" 5; }
18077 else
18078 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
18079 XORG_LIBS=$pkg_cv_XORG_LIBS
18080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18081 $as_echo "yes" >&6; }
18082
18083 fi
18084 sdkdir=`$PKG_CONFIG --variable=sdkdir xorg-server`
18085
18086 # Checks for libraries.
18087
18088 if test "x$DRI" != xno; then
18089 as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/dri.h" | $as_tr_sh`
18090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/dri.h" >&5
18091 $as_echo_n "checking for ${sdkdir}/dri.h... " >&6; }
18092 if eval \${$as_ac_File+:} false; then :
18093 $as_echo_n "(cached) " >&6
18094 else
18095 test "$cross_compiling" = yes &&
18096 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
18097 if test -r "${sdkdir}/dri.h"; then
18098 eval "$as_ac_File=yes"
18099 else
18100 eval "$as_ac_File=no"
18101 fi
18102 fi
18103 eval ac_res=\$$as_ac_File
18104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18105 $as_echo "$ac_res" >&6; }
18106 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
18107 have_dri_h="yes"
18108 else
18109 have_dri_h="no"
18110 fi
18111
18112 as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/sarea.h" | $as_tr_sh`
18113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/sarea.h" >&5
18114 $as_echo_n "checking for ${sdkdir}/sarea.h... " >&6; }
18115 if eval \${$as_ac_File+:} false; then :
18116 $as_echo_n "(cached) " >&6
18117 else
18118 test "$cross_compiling" = yes &&
18119 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
18120 if test -r "${sdkdir}/sarea.h"; then
18121 eval "$as_ac_File=yes"
18122 else
18123 eval "$as_ac_File=no"
18124 fi
18125 fi
18126 eval ac_res=\$$as_ac_File
18127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18128 $as_echo "$ac_res" >&6; }
18129 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
18130 have_sarea_h="yes"
18131 else
18132 have_sarea_h="no"
18133 fi
18134
18135 as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/dristruct.h" | $as_tr_sh`
18136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/dristruct.h" >&5
18137 $as_echo_n "checking for ${sdkdir}/dristruct.h... " >&6; }
18138 if eval \${$as_ac_File+:} false; then :
18139 $as_echo_n "(cached) " >&6
18140 else
18141 test "$cross_compiling" = yes &&
18142 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
18143 if test -r "${sdkdir}/dristruct.h"; then
18144 eval "$as_ac_File=yes"
18145 else
18146 eval "$as_ac_File=no"
18147 fi
18148 fi
18149 eval ac_res=\$$as_ac_File
18150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18151 $as_echo "$ac_res" >&6; }
18152 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
18153 have_dristruct_h="yes"
18154 else
18155 have_dristruct_h="no"
18156 fi
18157
18158 fi
18159
18160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include DRI support" >&5
18161 $as_echo_n "checking whether to include DRI support... " >&6; }
18162 if test "x$DRI" = xauto; then
18163 if test "x$have_dri_h" = xyes && \
18164 test "x$have_sarea_h" = xyes && \
18165 test "x$have_dristruct_h" = xyes; then
18166 DRI="yes"
18167 else
18168 DRI="no"
18169 fi
18170 fi
18171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DRI" >&5
18172 $as_echo "$DRI" >&6; }
18173
18174 if test "x$DRI" = xyes; then
18175 DRI_TRUE=
18176 DRI_FALSE='#'
18177 else
18178 DRI_TRUE='#'
18179 DRI_FALSE=
18180 fi
18181
18182 if test "x$DRI" = xyes; then
18183
18184 pkg_failed=no
18185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRI" >&5
18186 $as_echo_n "checking for DRI... " >&6; }
18187
18188 if test -n "$DRI_CFLAGS"; then
18189 pkg_cv_DRI_CFLAGS="$DRI_CFLAGS"
18190 elif test -n "$PKG_CONFIG"; then
18191 if test -n "$PKG_CONFIG" && \
18192 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.0 xf86driproto\""; } >&5
18193 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.0 xf86driproto") 2>&5
18194 ac_status=$?
18195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18196 test $ac_status = 0; }; then
18197 pkg_cv_DRI_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.0 xf86driproto" 2>/dev/null`
18198 test "x$?" != "x0" && pkg_failed=yes
18199 else
18200 pkg_failed=yes
18201 fi
18202 else
18203 pkg_failed=untried
18204 fi
18205 if test -n "$DRI_LIBS"; then
18206 pkg_cv_DRI_LIBS="$DRI_LIBS"
18207 elif test -n "$PKG_CONFIG"; then
18208 if test -n "$PKG_CONFIG" && \
18209 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.0 xf86driproto\""; } >&5
18210 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.0 xf86driproto") 2>&5
18211 ac_status=$?
18212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18213 test $ac_status = 0; }; then
18214 pkg_cv_DRI_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.0 xf86driproto" 2>/dev/null`
18215 test "x$?" != "x0" && pkg_failed=yes
18216 else
18217 pkg_failed=yes
18218 fi
18219 else
18220 pkg_failed=untried
18221 fi
18222
18223
18224
18225 if test $pkg_failed = yes; then
18226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18227 $as_echo "no" >&6; }
18228
18229 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18230 _pkg_short_errors_supported=yes
18231 else
18232 _pkg_short_errors_supported=no
18233 fi
18234 if test $_pkg_short_errors_supported = yes; then
18235 DRI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 2.0 xf86driproto" 2>&1`
18236 else
18237 DRI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 2.0 xf86driproto" 2>&1`
18238 fi
18239 # Put the nasty error message in config.log where it belongs
18240 echo "$DRI_PKG_ERRORS" >&5
18241
18242 as_fn_error $? "Package requirements (libdrm >= 2.0 xf86driproto) were not met:
18243
18244 $DRI_PKG_ERRORS
18245
18246 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18247 installed software in a non-standard prefix.
18248
18249 Alternatively, you may set the environment variables DRI_CFLAGS
18250 and DRI_LIBS to avoid the need to call pkg-config.
18251 See the pkg-config man page for more details." "$LINENO" 5
18252 elif test $pkg_failed = untried; then
18253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18254 $as_echo "no" >&6; }
18255 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18256 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18257 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18258 is in your PATH or set the PKG_CONFIG environment variable to the full
18259 path to pkg-config.
18260
18261 Alternatively, you may set the environment variables DRI_CFLAGS
18262 and DRI_LIBS to avoid the need to call pkg-config.
18263 See the pkg-config man page for more details.
18264
18265 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18266 See \`config.log' for more details" "$LINENO" 5; }
18267 else
18268 DRI_CFLAGS=$pkg_cv_DRI_CFLAGS
18269 DRI_LIBS=$pkg_cv_DRI_LIBS
18270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18271 $as_echo "yes" >&6; }
18272
18273 fi
18274
18275 $as_echo "#define MGADRI 1" >>confdefs.h
18276
18277
18278 $as_echo "#define MGADRI_DEVEL 1" >>confdefs.h
18279
18280 fi
18281
18282 save_CFLAGS="$CFLAGS"
18283 CFLAGS="$XORG_CFLAGS"
18284 ac_fn_c_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\"
18285 "
18286 if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes; then :
18287 XSERVER_LIBPCIACCESS=yes
18288 else
18289 XSERVER_LIBPCIACCESS=no
18290 fi
18291
18292 CFLAGS="$save_CFLAGS"
18293
18294 save_CFLAGS="$CFLAGS"
18295 CFLAGS="$XORG_CFLAGS"
18296 ac_fn_c_check_decl "$LINENO" "xf86ModeBandwidth" "ac_cv_have_decl_xf86ModeBandwidth" "#include <X11/extensions/randr.h>
18297 #include \"xorg-server.h\"
18298 #include \"xf86Modes.h\"
18299 "
18300 if test "x$ac_cv_have_decl_xf86ModeBandwidth" = xyes; then :
18301
18302 $as_echo "#define HAVE_XF86MODEBANDWIDTH 1" >>confdefs.h
18303
18304 fi
18305
18306 CFLAGS="$save_CFLAGS"
18307
18308 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
18309
18310 pkg_failed=no
18311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
18312 $as_echo_n "checking for PCIACCESS... " >&6; }
18313
18314 if test -n "$PCIACCESS_CFLAGS"; then
18315 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
18316 elif test -n "$PKG_CONFIG"; then
18317 if test -n "$PKG_CONFIG" && \
18318 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
18319 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
18320 ac_status=$?
18321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18322 test $ac_status = 0; }; then
18323 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null`
18324 test "x$?" != "x0" && pkg_failed=yes
18325 else
18326 pkg_failed=yes
18327 fi
18328 else
18329 pkg_failed=untried
18330 fi
18331 if test -n "$PCIACCESS_LIBS"; then
18332 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
18333 elif test -n "$PKG_CONFIG"; then
18334 if test -n "$PKG_CONFIG" && \
18335 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
18336 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
18337 ac_status=$?
18338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18339 test $ac_status = 0; }; then
18340 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null`
18341 test "x$?" != "x0" && pkg_failed=yes
18342 else
18343 pkg_failed=yes
18344 fi
18345 else
18346 pkg_failed=untried
18347 fi
18348
18349
18350
18351 if test $pkg_failed = yes; then
18352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18353 $as_echo "no" >&6; }
18354
18355 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18356 _pkg_short_errors_supported=yes
18357 else
18358 _pkg_short_errors_supported=no
18359 fi
18360 if test $_pkg_short_errors_supported = yes; then
18361 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1`
18362 else
18363 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1`
18364 fi
18365 # Put the nasty error message in config.log where it belongs
18366 echo "$PCIACCESS_PKG_ERRORS" >&5
18367
18368 as_fn_error $? "Package requirements (pciaccess >= 0.8.0) were not met:
18369
18370 $PCIACCESS_PKG_ERRORS
18371
18372 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18373 installed software in a non-standard prefix.
18374
18375 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
18376 and PCIACCESS_LIBS to avoid the need to call pkg-config.
18377 See the pkg-config man page for more details." "$LINENO" 5
18378 elif test $pkg_failed = untried; then
18379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18380 $as_echo "no" >&6; }
18381 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18382 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18383 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18384 is in your PATH or set the PKG_CONFIG environment variable to the full
18385 path to pkg-config.
18386
18387 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
18388 and PCIACCESS_LIBS to avoid the need to call pkg-config.
18389 See the pkg-config man page for more details.
18390
18391 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18392 See \`config.log' for more details" "$LINENO" 5; }
18393 else
18394 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
18395 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
18396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18397 $as_echo "yes" >&6; }
18398
18399 fi
18400 fi
18401 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
18402 XSERVER_LIBPCIACCESS_TRUE=
18403 XSERVER_LIBPCIACCESS_FALSE='#'
18404 else
18405 XSERVER_LIBPCIACCESS_TRUE='#'
18406 XSERVER_LIBPCIACCESS_FALSE=
18407 fi
18408
18409
18410
18411 # Check whether --enable-xaa was given.
18412 if test "${enable_xaa+set}" = set; then :
18413 enableval=$enable_xaa; XAA="$enableval"
18414 else
18415 XAA=auto
18416 fi
18417
18418 if test "x$XAA" != xno; then
18419 save_CFLAGS=$CFLAGS
18420 save_CPPFLAGS=$CPPFLAGS
18421 CFLAGS=$XORG_CFLAGS
18422 CPPFLAGS="$XORG_CFLAGS"
18423 for ac_header in xaa.h
18424 do :
18425 ac_fn_c_check_header_mongrel "$LINENO" "xaa.h" "ac_cv_header_xaa_h" "$ac_includes_default"
18426 if test "x$ac_cv_header_xaa_h" = xyes; then :
18427 cat >>confdefs.h <<_ACEOF
18428 #define HAVE_XAA_H 1
18429 _ACEOF
18430 XAA=yes
18431 else
18432 XAA=no
18433 fi
18434
18435 done
18436
18437 CFLAGS=$save_CFLAGS
18438 CPPFLAGS=$save_CPPFLAGS
18439 fi
18440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include XAA support" >&5
18441 $as_echo_n "checking whether to include XAA support... " >&6; }
18442 if test "x$XAA" = xyes; then
18443 XAA_TRUE=
18444 XAA_FALSE='#'
18445 else
18446 XAA_TRUE='#'
18447 XAA_FALSE=
18448 fi
18449
18450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XAA" >&5
18451 $as_echo "$XAA" >&6; }
18452 if test "x$XAA" = xyes; then
18453
18454 $as_echo "#define USE_XAA 1" >>confdefs.h
18455
18456 fi
18457
18458 # Properly handle EXA.
18459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable EXA support" >&5
18460 $as_echo_n "checking whether to enable EXA support... " >&6; }
18461 if test "x$EXA" = xyes; then
18462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18463 $as_echo "yes" >&6; }
18464
18465 SAVE_CPPFLAGS="$CPPFLAGS"
18466 CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
18467 ac_fn_c_check_header_mongrel "$LINENO" "exa.h" "ac_cv_header_exa_h" "$ac_includes_default"
18468 if test "x$ac_cv_header_exa_h" = xyes; then :
18469 have_exa_h="yes"
18470 else
18471 have_exa_h="no"
18472 fi
18473
18474
18475 CPPFLAGS="$SAVE_CPPFLAGS"
18476 else
18477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18478 $as_echo "no" >&6; }
18479 fi
18480
18481 SAVE_CPPFLAGS="$CPPFLAGS"
18482 CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
18483 if test "x$have_exa_h" = xyes; then
18484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether EXA version is at least 2.0.0" >&5
18485 $as_echo_n "checking whether EXA version is at least 2.0.0... " >&6; }
18486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18487 /* end confdefs.h. */
18488
18489 #include "exa.h"
18490 #if EXA_VERSION_MAJOR < 2
18491 #error OLD EXA!
18492 #endif
18493
18494 int
18495 main ()
18496 {
18497
18498 ;
18499 return 0;
18500 }
18501 _ACEOF
18502 if ac_fn_c_try_cpp "$LINENO"; then :
18503 USE_EXA=yes
18504 else
18505 USE_EXA=no
18506 fi
18507 rm -f conftest.err conftest.i conftest.$ac_ext
18508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_EXA" >&5
18509 $as_echo "$USE_EXA" >&6; }
18510
18511 if test "x$USE_EXA" = xyes; then
18512
18513 $as_echo "#define USE_EXA 1" >>confdefs.h
18514
18515 fi
18516 fi
18517 CPPFLAGS="$SAVE_CPPFLAGS"
18518
18519 if test "x$USE_EXA" = xyes; then
18520 USE_EXA_TRUE=
18521 USE_EXA_FALSE='#'
18522 else
18523 USE_EXA_TRUE='#'
18524 USE_EXA_FALSE=
18525 fi
18526
18527
18528
18529
18530 DRIVER_NAME=mga
18531
18532
18533 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile util/Makefile"
18534
18535 cat >confcache <<\_ACEOF
18536 # This file is a shell script that caches the results of configure
18537 # tests run on this system so they can be shared between configure
18538 # scripts and configure runs, see configure's option --config-cache.
18539 # It is not useful on other systems. If it contains results you don't
18540 # want to keep, you may remove or edit it.
18541 #
18542 # config.status only pays attention to the cache file if you give it
18543 # the --recheck option to rerun configure.
18544 #
18545 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18546 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18547 # following values.
18548
18549 _ACEOF
18550
18551 # The following way of writing the cache mishandles newlines in values,
18552 # but we know of no workaround that is simple, portable, and efficient.
18553 # So, we kill variables containing newlines.
18554 # Ultrix sh set writes to stderr and can't be redirected directly,
18555 # and sets the high bit in the cache file unless we assign to the vars.
18556 (
18557 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18558 eval ac_val=\$$ac_var
18559 case $ac_val in #(
18560 *${as_nl}*)
18561 case $ac_var in #(
18562 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18563 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18564 esac
18565 case $ac_var in #(
18566 _ | IFS | as_nl) ;; #(
18567 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18568 *) { eval $ac_var=; unset $ac_var;} ;;
18569 esac ;;
18570 esac
18571 done
18572
18573 (set) 2>&1 |
18574 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18575 *${as_nl}ac_space=\ *)
18576 # `set' does not quote correctly, so add quotes: double-quote
18577 # substitution turns \\\\ into \\, and sed turns \\ into \.
18578 sed -n \
18579 "s/'/'\\\\''/g;
18580 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18581 ;; #(
18582 *)
18583 # `set' quotes correctly as required by POSIX, so do not add quotes.
18584 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18585 ;;
18586 esac |
18587 sort
18588 ) |
18589 sed '
18590 /^ac_cv_env_/b end
18591 t clear
18592 :clear
18593 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18594 t end
18595 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18596 :end' >>confcache
18597 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18598 if test -w "$cache_file"; then
18599 if test "x$cache_file" != "x/dev/null"; then
18600 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18601 $as_echo "$as_me: updating cache $cache_file" >&6;}
18602 if test ! -f "$cache_file" || test -h "$cache_file"; then
18603 cat confcache >"$cache_file"
18604 else
18605 case $cache_file in #(
18606 */* | ?:*)
18607 mv -f confcache "$cache_file"$$ &&
18608 mv -f "$cache_file"$$ "$cache_file" ;; #(
18609 *)
18610 mv -f confcache "$cache_file" ;;
18611 esac
18612 fi
18613 fi
18614 else
18615 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18616 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18617 fi
18618 fi
18619 rm -f confcache
18620
18621 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18622 # Let make expand exec_prefix.
18623 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18624
18625 DEFS=-DHAVE_CONFIG_H
18626
18627 ac_libobjs=
18628 ac_ltlibobjs=
18629 U=
18630 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18631 # 1. Remove the extension, and $U if already installed.
18632 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18633 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18634 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18635 # will be set to the directory where LIBOBJS objects are built.
18636 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18637 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18638 done
18639 LIBOBJS=$ac_libobjs
18640
18641 LTLIBOBJS=$ac_ltlibobjs
18642
18643
18644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18645 $as_echo_n "checking that generated files are newer than configure... " >&6; }
18646 if test -n "$am_sleep_pid"; then
18647 # Hide warnings about reused PIDs.
18648 wait $am_sleep_pid 2>/dev/null
18649 fi
18650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18651 $as_echo "done" >&6; }
18652 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18653 as_fn_error $? "conditional \"AMDEP\" was never defined.
18654 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18655 fi
18656 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18657 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18658 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18659 fi
18660 if test -n "$EXEEXT"; then
18661 am__EXEEXT_TRUE=
18662 am__EXEEXT_FALSE='#'
18663 else
18664 am__EXEEXT_TRUE='#'
18665 am__EXEEXT_FALSE=
18666 fi
18667
18668 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18669 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
18670 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18671 fi
18672 if test -z "${DRI_TRUE}" && test -z "${DRI_FALSE}"; then
18673 as_fn_error $? "conditional \"DRI\" was never defined.
18674 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18675 fi
18676 if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then
18677 as_fn_error $? "conditional \"XSERVER_LIBPCIACCESS\" was never defined.
18678 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18679 fi
18680 if test -z "${XAA_TRUE}" && test -z "${XAA_FALSE}"; then
18681 as_fn_error $? "conditional \"XAA\" was never defined.
18682 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18683 fi
18684 if test -z "${USE_EXA_TRUE}" && test -z "${USE_EXA_FALSE}"; then
18685 as_fn_error $? "conditional \"USE_EXA\" was never defined.
18686 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18687 fi
18688
18689 : "${CONFIG_STATUS=./config.status}"
18690 ac_write_fail=0
18691 ac_clean_files_save=$ac_clean_files
18692 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18693 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18694 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18695 as_write_fail=0
18696 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18697 #! $SHELL
18698 # Generated by $as_me.
18699 # Run this file to recreate the current configuration.
18700 # Compiler output produced by configure, useful for debugging
18701 # configure, is in config.log if it exists.
18702
18703 debug=false
18704 ac_cs_recheck=false
18705 ac_cs_silent=false
18706
18707 SHELL=\${CONFIG_SHELL-$SHELL}
18708 export SHELL
18709 _ASEOF
18710 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18711 ## -------------------- ##
18712 ## M4sh Initialization. ##
18713 ## -------------------- ##
18714
18715 # Be more Bourne compatible
18716 DUALCASE=1; export DUALCASE # for MKS sh
18717 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18718 emulate sh
18719 NULLCMD=:
18720 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18721 # is contrary to our usage. Disable this feature.
18722 alias -g '${1+"$@"}'='"$@"'
18723 setopt NO_GLOB_SUBST
18724 else
18725 case `(set -o) 2>/dev/null` in #(
18726 *posix*) :
18727 set -o posix ;; #(
18728 *) :
18729 ;;
18730 esac
18731 fi
18732
18733
18734 as_nl='
18735 '
18736 export as_nl
18737 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18738 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18739 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18740 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18741 # Prefer a ksh shell builtin over an external printf program on Solaris,
18742 # but without wasting forks for bash or zsh.
18743 if test -z "$BASH_VERSION$ZSH_VERSION" \
18744 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18745 as_echo='print -r --'
18746 as_echo_n='print -rn --'
18747 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18748 as_echo='printf %s\n'
18749 as_echo_n='printf %s'
18750 else
18751 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18752 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18753 as_echo_n='/usr/ucb/echo -n'
18754 else
18755 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18756 as_echo_n_body='eval
18757 arg=$1;
18758 case $arg in #(
18759 *"$as_nl"*)
18760 expr "X$arg" : "X\\(.*\\)$as_nl";
18761 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18762 esac;
18763 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18764 '
18765 export as_echo_n_body
18766 as_echo_n='sh -c $as_echo_n_body as_echo'
18767 fi
18768 export as_echo_body
18769 as_echo='sh -c $as_echo_body as_echo'
18770 fi
18771
18772 # The user is always right.
18773 if test "${PATH_SEPARATOR+set}" != set; then
18774 PATH_SEPARATOR=:
18775 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18776 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18777 PATH_SEPARATOR=';'
18778 }
18779 fi
18780
18781
18782 # IFS
18783 # We need space, tab and new line, in precisely that order. Quoting is
18784 # there to prevent editors from complaining about space-tab.
18785 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18786 # splitting by setting IFS to empty value.)
18787 IFS=" "" $as_nl"
18788
18789 # Find who we are. Look in the path if we contain no directory separator.
18790 as_myself=
18791 case $0 in #((
18792 *[\\/]* ) as_myself=$0 ;;
18793 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18794 for as_dir in $PATH
18795 do
18796 IFS=$as_save_IFS
18797 test -z "$as_dir" && as_dir=.
18798 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18799 done
18800 IFS=$as_save_IFS
18801
18802 ;;
18803 esac
18804 # We did not find ourselves, most probably we were run as `sh COMMAND'
18805 # in which case we are not to be found in the path.
18806 if test "x$as_myself" = x; then
18807 as_myself=$0
18808 fi
18809 if test ! -f "$as_myself"; then
18810 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18811 exit 1
18812 fi
18813
18814 # Unset variables that we do not need and which cause bugs (e.g. in
18815 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18816 # suppresses any "Segmentation fault" message there. '((' could
18817 # trigger a bug in pdksh 5.2.14.
18818 for as_var in BASH_ENV ENV MAIL MAILPATH
18819 do eval test x\${$as_var+set} = xset \
18820 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18821 done
18822 PS1='$ '
18823 PS2='> '
18824 PS4='+ '
18825
18826 # NLS nuisances.
18827 LC_ALL=C
18828 export LC_ALL
18829 LANGUAGE=C
18830 export LANGUAGE
18831
18832 # CDPATH.
18833 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18834
18835
18836 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18837 # ----------------------------------------
18838 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18839 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18840 # script with STATUS, using 1 if that was 0.
18841 as_fn_error ()
18842 {
18843 as_status=$1; test $as_status -eq 0 && as_status=1
18844 if test "$4"; then
18845 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18846 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18847 fi
18848 $as_echo "$as_me: error: $2" >&2
18849 as_fn_exit $as_status
18850 } # as_fn_error
18851
18852
18853 # as_fn_set_status STATUS
18854 # -----------------------
18855 # Set $? to STATUS, without forking.
18856 as_fn_set_status ()
18857 {
18858 return $1
18859 } # as_fn_set_status
18860
18861 # as_fn_exit STATUS
18862 # -----------------
18863 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18864 as_fn_exit ()
18865 {
18866 set +e
18867 as_fn_set_status $1
18868 exit $1
18869 } # as_fn_exit
18870
18871 # as_fn_unset VAR
18872 # ---------------
18873 # Portably unset VAR.
18874 as_fn_unset ()
18875 {
18876 { eval $1=; unset $1;}
18877 }
18878 as_unset=as_fn_unset
18879 # as_fn_append VAR VALUE
18880 # ----------------------
18881 # Append the text in VALUE to the end of the definition contained in VAR. Take
18882 # advantage of any shell optimizations that allow amortized linear growth over
18883 # repeated appends, instead of the typical quadratic growth present in naive
18884 # implementations.
18885 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18886 eval 'as_fn_append ()
18887 {
18888 eval $1+=\$2
18889 }'
18890 else
18891 as_fn_append ()
18892 {
18893 eval $1=\$$1\$2
18894 }
18895 fi # as_fn_append
18896
18897 # as_fn_arith ARG...
18898 # ------------------
18899 # Perform arithmetic evaluation on the ARGs, and store the result in the
18900 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18901 # must be portable across $(()) and expr.
18902 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18903 eval 'as_fn_arith ()
18904 {
18905 as_val=$(( $* ))
18906 }'
18907 else
18908 as_fn_arith ()
18909 {
18910 as_val=`expr "$@" || test $? -eq 1`
18911 }
18912 fi # as_fn_arith
18913
18914
18915 if expr a : '\(a\)' >/dev/null 2>&1 &&
18916 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18917 as_expr=expr
18918 else
18919 as_expr=false
18920 fi
18921
18922 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18923 as_basename=basename
18924 else
18925 as_basename=false
18926 fi
18927
18928 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18929 as_dirname=dirname
18930 else
18931 as_dirname=false
18932 fi
18933
18934 as_me=`$as_basename -- "$0" ||
18935 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18936 X"$0" : 'X\(//\)$' \| \
18937 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18938 $as_echo X/"$0" |
18939 sed '/^.*\/\([^/][^/]*\)\/*$/{
18940 s//\1/
18941 q
18942 }
18943 /^X\/\(\/\/\)$/{
18944 s//\1/
18945 q
18946 }
18947 /^X\/\(\/\).*/{
18948 s//\1/
18949 q
18950 }
18951 s/.*/./; q'`
18952
18953 # Avoid depending upon Character Ranges.
18954 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18955 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18956 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18957 as_cr_digits='0123456789'
18958 as_cr_alnum=$as_cr_Letters$as_cr_digits
18959
18960 ECHO_C= ECHO_N= ECHO_T=
18961 case `echo -n x` in #(((((
18962 -n*)
18963 case `echo 'xy\c'` in
18964 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18965 xy) ECHO_C='\c';;
18966 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18967 ECHO_T=' ';;
18968 esac;;
18969 *)
18970 ECHO_N='-n';;
18971 esac
18972
18973 rm -f conf$$ conf$$.exe conf$$.file
18974 if test -d conf$$.dir; then
18975 rm -f conf$$.dir/conf$$.file
18976 else
18977 rm -f conf$$.dir
18978 mkdir conf$$.dir 2>/dev/null
18979 fi
18980 if (echo >conf$$.file) 2>/dev/null; then
18981 if ln -s conf$$.file conf$$ 2>/dev/null; then
18982 as_ln_s='ln -s'
18983 # ... but there are two gotchas:
18984 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18985 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18986 # In both cases, we have to default to `cp -pR'.
18987 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18988 as_ln_s='cp -pR'
18989 elif ln conf$$.file conf$$ 2>/dev/null; then
18990 as_ln_s=ln
18991 else
18992 as_ln_s='cp -pR'
18993 fi
18994 else
18995 as_ln_s='cp -pR'
18996 fi
18997 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18998 rmdir conf$$.dir 2>/dev/null
18999
19000
19001 # as_fn_mkdir_p
19002 # -------------
19003 # Create "$as_dir" as a directory, including parents if necessary.
19004 as_fn_mkdir_p ()
19005 {
19006
19007 case $as_dir in #(
19008 -*) as_dir=./$as_dir;;
19009 esac
19010 test -d "$as_dir" || eval $as_mkdir_p || {
19011 as_dirs=
19012 while :; do
19013 case $as_dir in #(
19014 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19015 *) as_qdir=$as_dir;;
19016 esac
19017 as_dirs="'$as_qdir' $as_dirs"
19018 as_dir=`$as_dirname -- "$as_dir" ||
19019 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19020 X"$as_dir" : 'X\(//\)[^/]' \| \
19021 X"$as_dir" : 'X\(//\)$' \| \
19022 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19023 $as_echo X"$as_dir" |
19024 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19025 s//\1/
19026 q
19027 }
19028 /^X\(\/\/\)[^/].*/{
19029 s//\1/
19030 q
19031 }
19032 /^X\(\/\/\)$/{
19033 s//\1/
19034 q
19035 }
19036 /^X\(\/\).*/{
19037 s//\1/
19038 q
19039 }
19040 s/.*/./; q'`
19041 test -d "$as_dir" && break
19042 done
19043 test -z "$as_dirs" || eval "mkdir $as_dirs"
19044 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19045
19046
19047 } # as_fn_mkdir_p
19048 if mkdir -p . 2>/dev/null; then
19049 as_mkdir_p='mkdir -p "$as_dir"'
19050 else
19051 test -d ./-p && rmdir ./-p
19052 as_mkdir_p=false
19053 fi
19054
19055
19056 # as_fn_executable_p FILE
19057 # -----------------------
19058 # Test if FILE is an executable regular file.
19059 as_fn_executable_p ()
19060 {
19061 test -f "$1" && test -x "$1"
19062 } # as_fn_executable_p
19063 as_test_x='test -x'
19064 as_executable_p=as_fn_executable_p
19065
19066 # Sed expression to map a string onto a valid CPP name.
19067 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19068
19069 # Sed expression to map a string onto a valid variable name.
19070 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19071
19072
19073 exec 6>&1
19074 ## ----------------------------------- ##
19075 ## Main body of $CONFIG_STATUS script. ##
19076 ## ----------------------------------- ##
19077 _ASEOF
19078 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19079
19080 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19081 # Save the log message, to keep $0 and so on meaningful, and to
19082 # report actual input values of CONFIG_FILES etc. instead of their
19083 # values after options handling.
19084 ac_log="
19085 This file was extended by xf86-video-mga $as_me 1.6.3, which was
19086 generated by GNU Autoconf 2.69. Invocation command line was
19087
19088 CONFIG_FILES = $CONFIG_FILES
19089 CONFIG_HEADERS = $CONFIG_HEADERS
19090 CONFIG_LINKS = $CONFIG_LINKS
19091 CONFIG_COMMANDS = $CONFIG_COMMANDS
19092 $ $0 $@
19093
19094 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19095 "
19096
19097 _ACEOF
19098
19099 case $ac_config_files in *"
19100 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19101 esac
19102
19103 case $ac_config_headers in *"
19104 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19105 esac
19106
19107
19108 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19109 # Files that config.status was made for.
19110 config_files="$ac_config_files"
19111 config_headers="$ac_config_headers"
19112 config_commands="$ac_config_commands"
19113
19114 _ACEOF
19115
19116 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19117 ac_cs_usage="\
19118 \`$as_me' instantiates files and other configuration actions
19119 from templates according to the current configuration. Unless the files
19120 and actions are specified as TAGs, all are instantiated by default.
19121
19122 Usage: $0 [OPTION]... [TAG]...
19123
19124 -h, --help print this help, then exit
19125 -V, --version print version number and configuration settings, then exit
19126 --config print configuration, then exit
19127 -q, --quiet, --silent
19128 do not print progress messages
19129 -d, --debug don't remove temporary files
19130 --recheck update $as_me by reconfiguring in the same conditions
19131 --file=FILE[:TEMPLATE]
19132 instantiate the configuration file FILE
19133 --header=FILE[:TEMPLATE]
19134 instantiate the configuration header FILE
19135
19136 Configuration files:
19137 $config_files
19138
19139 Configuration headers:
19140 $config_headers
19141
19142 Configuration commands:
19143 $config_commands
19144
19145 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
19146
19147 _ACEOF
19148 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19149 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19150 ac_cs_version="\\
19151 xf86-video-mga config.status 1.6.3
19152 configured by $0, generated by GNU Autoconf 2.69,
19153 with options \\"\$ac_cs_config\\"
19154
19155 Copyright (C) 2012 Free Software Foundation, Inc.
19156 This config.status script is free software; the Free Software Foundation
19157 gives unlimited permission to copy, distribute and modify it."
19158
19159 ac_pwd='$ac_pwd'
19160 srcdir='$srcdir'
19161 INSTALL='$INSTALL'
19162 MKDIR_P='$MKDIR_P'
19163 AWK='$AWK'
19164 test -n "\$AWK" || AWK=awk
19165 _ACEOF
19166
19167 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19168 # The default lists apply if the user does not specify any file.
19169 ac_need_defaults=:
19170 while test $# != 0
19171 do
19172 case $1 in
19173 --*=?*)
19174 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19175 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19176 ac_shift=:
19177 ;;
19178 --*=)
19179 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19180 ac_optarg=
19181 ac_shift=:
19182 ;;
19183 *)
19184 ac_option=$1
19185 ac_optarg=$2
19186 ac_shift=shift
19187 ;;
19188 esac
19189
19190 case $ac_option in
19191 # Handling of the options.
19192 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19193 ac_cs_recheck=: ;;
19194 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19195 $as_echo "$ac_cs_version"; exit ;;
19196 --config | --confi | --conf | --con | --co | --c )
19197 $as_echo "$ac_cs_config"; exit ;;
19198 --debug | --debu | --deb | --de | --d | -d )
19199 debug=: ;;
19200 --file | --fil | --fi | --f )
19201 $ac_shift
19202 case $ac_optarg in
19203 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19204 '') as_fn_error $? "missing file argument" ;;
19205 esac
19206 as_fn_append CONFIG_FILES " '$ac_optarg'"
19207 ac_need_defaults=false;;
19208 --header | --heade | --head | --hea )
19209 $ac_shift
19210 case $ac_optarg in
19211 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19212 esac
19213 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19214 ac_need_defaults=false;;
19215 --he | --h)
19216 # Conflict between --help and --header
19217 as_fn_error $? "ambiguous option: \`$1'
19218 Try \`$0 --help' for more information.";;
19219 --help | --hel | -h )
19220 $as_echo "$ac_cs_usage"; exit ;;
19221 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19222 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19223 ac_cs_silent=: ;;
19224
19225 # This is an error.
19226 -*) as_fn_error $? "unrecognized option: \`$1'
19227 Try \`$0 --help' for more information." ;;
19228
19229 *) as_fn_append ac_config_targets " $1"
19230 ac_need_defaults=false ;;
19231
19232 esac
19233 shift
19234 done
19235
19236 ac_configure_extra_args=
19237
19238 if $ac_cs_silent; then
19239 exec 6>/dev/null
19240 ac_configure_extra_args="$ac_configure_extra_args --silent"
19241 fi
19242
19243 _ACEOF
19244 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19245 if \$ac_cs_recheck; then
19246 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19247 shift
19248 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19249 CONFIG_SHELL='$SHELL'
19250 export CONFIG_SHELL
19251 exec "\$@"
19252 fi
19253
19254 _ACEOF
19255 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19256 exec 5>>config.log
19257 {
19258 echo
19259 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19260 ## Running $as_me. ##
19261 _ASBOX
19262 $as_echo "$ac_log"
19263 } >&5
19264
19265 _ACEOF
19266 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19267 #
19268 # INIT-COMMANDS
19269 #
19270 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19271
19272
19273 # The HP-UX ksh and POSIX shell print the target directory to stdout
19274 # if CDPATH is set.
19275 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19276
19277 sed_quote_subst='$sed_quote_subst'
19278 double_quote_subst='$double_quote_subst'
19279 delay_variable_subst='$delay_variable_subst'
19280 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19281 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19282 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19283 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19284 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19285 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19286 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19287 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19288 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19289 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19290 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19291 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19292 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19293 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19294 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19295 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19296 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19297 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19298 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19299 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19300 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19301 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19302 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19303 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19304 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19305 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19306 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19307 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19308 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19309 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19310 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19311 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19312 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19313 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19314 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19315 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19316 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19317 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19318 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19319 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19320 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19321 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19322 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19323 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19324 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19325 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19326 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19327 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19328 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19329 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19330 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19331 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19332 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19333 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19334 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19335 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19336 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"`'
19337 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19338 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19339 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19340 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19341 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19342 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19343 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19344 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19345 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19346 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19347 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19348 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19349 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19350 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19351 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19352 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19353 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19354 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19355 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19356 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19357 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19358 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19359 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19360 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19361 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19362 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19363 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19364 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19365 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19366 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19367 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19368 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19369 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19370 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19371 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19372 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19373 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19374 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19375 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19376 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19377 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19378 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19379 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19380 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19381 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19382 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19383 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19384 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19385 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19386 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19387 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19388 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19389 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19390 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19391 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19392 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19393 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19394 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19395 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19396 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19397 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19398 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19399 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19400 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19401 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19402 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19403 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19404 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19405 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19406 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19407 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19408 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19409 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19410
19411 LTCC='$LTCC'
19412 LTCFLAGS='$LTCFLAGS'
19413 compiler='$compiler_DEFAULT'
19414
19415 # A function that is used when there is no print builtin or printf.
19416 func_fallback_echo ()
19417 {
19418 eval 'cat <<_LTECHO_EOF
19419 \$1
19420 _LTECHO_EOF'
19421 }
19422
19423 # Quote evaled strings.
19424 for var in SHELL \
19425 ECHO \
19426 PATH_SEPARATOR \
19427 SED \
19428 GREP \
19429 EGREP \
19430 FGREP \
19431 LD \
19432 NM \
19433 LN_S \
19434 lt_SP2NL \
19435 lt_NL2SP \
19436 reload_flag \
19437 OBJDUMP \
19438 deplibs_check_method \
19439 file_magic_cmd \
19440 file_magic_glob \
19441 want_nocaseglob \
19442 DLLTOOL \
19443 sharedlib_from_linklib_cmd \
19444 AR \
19445 AR_FLAGS \
19446 archiver_list_spec \
19447 STRIP \
19448 RANLIB \
19449 CC \
19450 CFLAGS \
19451 compiler \
19452 lt_cv_sys_global_symbol_pipe \
19453 lt_cv_sys_global_symbol_to_cdecl \
19454 lt_cv_sys_global_symbol_to_c_name_address \
19455 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19456 nm_file_list_spec \
19457 lt_prog_compiler_no_builtin_flag \
19458 lt_prog_compiler_pic \
19459 lt_prog_compiler_wl \
19460 lt_prog_compiler_static \
19461 lt_cv_prog_compiler_c_o \
19462 need_locks \
19463 MANIFEST_TOOL \
19464 DSYMUTIL \
19465 NMEDIT \
19466 LIPO \
19467 OTOOL \
19468 OTOOL64 \
19469 shrext_cmds \
19470 export_dynamic_flag_spec \
19471 whole_archive_flag_spec \
19472 compiler_needs_object \
19473 with_gnu_ld \
19474 allow_undefined_flag \
19475 no_undefined_flag \
19476 hardcode_libdir_flag_spec \
19477 hardcode_libdir_separator \
19478 exclude_expsyms \
19479 include_expsyms \
19480 file_list_spec \
19481 variables_saved_for_relink \
19482 libname_spec \
19483 library_names_spec \
19484 soname_spec \
19485 install_override_mode \
19486 finish_eval \
19487 old_striplib \
19488 striplib; do
19489 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19490 *[\\\\\\\`\\"\\\$]*)
19491 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19492 ;;
19493 *)
19494 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19495 ;;
19496 esac
19497 done
19498
19499 # Double-quote double-evaled strings.
19500 for var in reload_cmds \
19501 old_postinstall_cmds \
19502 old_postuninstall_cmds \
19503 old_archive_cmds \
19504 extract_expsyms_cmds \
19505 old_archive_from_new_cmds \
19506 old_archive_from_expsyms_cmds \
19507 archive_cmds \
19508 archive_expsym_cmds \
19509 module_cmds \
19510 module_expsym_cmds \
19511 export_symbols_cmds \
19512 prelink_cmds \
19513 postlink_cmds \
19514 postinstall_cmds \
19515 postuninstall_cmds \
19516 finish_cmds \
19517 sys_lib_search_path_spec \
19518 sys_lib_dlsearch_path_spec; do
19519 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19520 *[\\\\\\\`\\"\\\$]*)
19521 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19522 ;;
19523 *)
19524 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19525 ;;
19526 esac
19527 done
19528
19529 ac_aux_dir='$ac_aux_dir'
19530 xsi_shell='$xsi_shell'
19531 lt_shell_append='$lt_shell_append'
19532
19533 # See if we are running on zsh, and set the options which allow our
19534 # commands through without removal of \ escapes INIT.
19535 if test -n "\${ZSH_VERSION+set}" ; then
19536 setopt NO_GLOB_SUBST
19537 fi
19538
19539
19540 PACKAGE='$PACKAGE'
19541 VERSION='$VERSION'
19542 TIMESTAMP='$TIMESTAMP'
19543 RM='$RM'
19544 ofile='$ofile'
19545
19546
19547
19548
19549 _ACEOF
19550
19551 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19552
19553 # Handling of arguments.
19554 for ac_config_target in $ac_config_targets
19555 do
19556 case $ac_config_target in
19557 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19558 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19559 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19560 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19561 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19562 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
19563 "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
19564
19565 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19566 esac
19567 done
19568
19569
19570 # If the user did not use the arguments to specify the items to instantiate,
19571 # then the envvar interface is used. Set only those that are not.
19572 # We use the long form for the default assignment because of an extremely
19573 # bizarre bug on SunOS 4.1.3.
19574 if $ac_need_defaults; then
19575 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19576 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19577 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19578 fi
19579
19580 # Have a temporary directory for convenience. Make it in the build tree
19581 # simply because there is no reason against having it here, and in addition,
19582 # creating and moving files from /tmp can sometimes cause problems.
19583 # Hook for its removal unless debugging.
19584 # Note that there is a small window in which the directory will not be cleaned:
19585 # after its creation but before its name has been assigned to `$tmp'.
19586 $debug ||
19587 {
19588 tmp= ac_tmp=
19589 trap 'exit_status=$?
19590 : "${ac_tmp:=$tmp}"
19591 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19592 ' 0
19593 trap 'as_fn_exit 1' 1 2 13 15
19594 }
19595 # Create a (secure) tmp directory for tmp files.
19596
19597 {
19598 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19599 test -d "$tmp"
19600 } ||
19601 {
19602 tmp=./conf$$-$RANDOM
19603 (umask 077 && mkdir "$tmp")
19604 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19605 ac_tmp=$tmp
19606
19607 # Set up the scripts for CONFIG_FILES section.
19608 # No need to generate them if there are no CONFIG_FILES.
19609 # This happens for instance with `./config.status config.h'.
19610 if test -n "$CONFIG_FILES"; then
19611
19612
19613 ac_cr=`echo X | tr X '\015'`
19614 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19615 # But we know of no other shell where ac_cr would be empty at this
19616 # point, so we can use a bashism as a fallback.
19617 if test "x$ac_cr" = x; then
19618 eval ac_cr=\$\'\\r\'
19619 fi
19620 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19621 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19622 ac_cs_awk_cr='\\r'
19623 else
19624 ac_cs_awk_cr=$ac_cr
19625 fi
19626
19627 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19628 _ACEOF
19629
19630
19631 {
19632 echo "cat >conf$$subs.awk <<_ACEOF" &&
19633 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19634 echo "_ACEOF"
19635 } >conf$$subs.sh ||
19636 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19637 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19638 ac_delim='%!_!# '
19639 for ac_last_try in false false false false false :; do
19640 . ./conf$$subs.sh ||
19641 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19642
19643 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19644 if test $ac_delim_n = $ac_delim_num; then
19645 break
19646 elif $ac_last_try; then
19647 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19648 else
19649 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19650 fi
19651 done
19652 rm -f conf$$subs.sh
19653
19654 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19655 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19656 _ACEOF
19657 sed -n '
19658 h
19659 s/^/S["/; s/!.*/"]=/
19660 p
19661 g
19662 s/^[^!]*!//
19663 :repl
19664 t repl
19665 s/'"$ac_delim"'$//
19666 t delim
19667 :nl
19668 h
19669 s/\(.\{148\}\)..*/\1/
19670 t more1
19671 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19672 p
19673 n
19674 b repl
19675 :more1
19676 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19677 p
19678 g
19679 s/.\{148\}//
19680 t nl
19681 :delim
19682 h
19683 s/\(.\{148\}\)..*/\1/
19684 t more2
19685 s/["\\]/\\&/g; s/^/"/; s/$/"/
19686 p
19687 b
19688 :more2
19689 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19690 p
19691 g
19692 s/.\{148\}//
19693 t delim
19694 ' <conf$$subs.awk | sed '
19695 /^[^""]/{
19696 N
19697 s/\n//
19698 }
19699 ' >>$CONFIG_STATUS || ac_write_fail=1
19700 rm -f conf$$subs.awk
19701 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19702 _ACAWK
19703 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19704 for (key in S) S_is_set[key] = 1
19705 FS = ""
19706
19707 }
19708 {
19709 line = $ 0
19710 nfields = split(line, field, "@")
19711 substed = 0
19712 len = length(field[1])
19713 for (i = 2; i < nfields; i++) {
19714 key = field[i]
19715 keylen = length(key)
19716 if (S_is_set[key]) {
19717 value = S[key]
19718 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19719 len += length(value) + length(field[++i])
19720 substed = 1
19721 } else
19722 len += 1 + keylen
19723 }
19724
19725 print line
19726 }
19727
19728 _ACAWK
19729 _ACEOF
19730 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19731 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19732 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19733 else
19734 cat
19735 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19736 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19737 _ACEOF
19738
19739 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19740 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19741 # trailing colons and then remove the whole line if VPATH becomes empty
19742 # (actually we leave an empty line to preserve line numbers).
19743 if test "x$srcdir" = x.; then
19744 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19745 h
19746 s///
19747 s/^/:/
19748 s/[ ]*$/:/
19749 s/:\$(srcdir):/:/g
19750 s/:\${srcdir}:/:/g
19751 s/:@srcdir@:/:/g
19752 s/^:*//
19753 s/:*$//
19754 x
19755 s/\(=[ ]*\).*/\1/
19756 G
19757 s/\n//
19758 s/^[^=]*=[ ]*$//
19759 }'
19760 fi
19761
19762 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19763 fi # test -n "$CONFIG_FILES"
19764
19765 # Set up the scripts for CONFIG_HEADERS section.
19766 # No need to generate them if there are no CONFIG_HEADERS.
19767 # This happens for instance with `./config.status Makefile'.
19768 if test -n "$CONFIG_HEADERS"; then
19769 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19770 BEGIN {
19771 _ACEOF
19772
19773 # Transform confdefs.h into an awk script `defines.awk', embedded as
19774 # here-document in config.status, that substitutes the proper values into
19775 # config.h.in to produce config.h.
19776
19777 # Create a delimiter string that does not exist in confdefs.h, to ease
19778 # handling of long lines.
19779 ac_delim='%!_!# '
19780 for ac_last_try in false false :; do
19781 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19782 if test -z "$ac_tt"; then
19783 break
19784 elif $ac_last_try; then
19785 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19786 else
19787 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19788 fi
19789 done
19790
19791 # For the awk script, D is an array of macro values keyed by name,
19792 # likewise P contains macro parameters if any. Preserve backslash
19793 # newline sequences.
19794
19795 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19796 sed -n '
19797 s/.\{148\}/&'"$ac_delim"'/g
19798 t rset
19799 :rset
19800 s/^[ ]*#[ ]*define[ ][ ]*/ /
19801 t def
19802 d
19803 :def
19804 s/\\$//
19805 t bsnl
19806 s/["\\]/\\&/g
19807 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19808 D["\1"]=" \3"/p
19809 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19810 d
19811 :bsnl
19812 s/["\\]/\\&/g
19813 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19814 D["\1"]=" \3\\\\\\n"\\/p
19815 t cont
19816 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19817 t cont
19818 d
19819 :cont
19820 n
19821 s/.\{148\}/&'"$ac_delim"'/g
19822 t clear
19823 :clear
19824 s/\\$//
19825 t bsnlc
19826 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19827 d
19828 :bsnlc
19829 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19830 b cont
19831 ' <confdefs.h | sed '
19832 s/'"$ac_delim"'/"\\\
19833 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19834
19835 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19836 for (key in D) D_is_set[key] = 1
19837 FS = ""
19838 }
19839 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19840 line = \$ 0
19841 split(line, arg, " ")
19842 if (arg[1] == "#") {
19843 defundef = arg[2]
19844 mac1 = arg[3]
19845 } else {
19846 defundef = substr(arg[1], 2)
19847 mac1 = arg[2]
19848 }
19849 split(mac1, mac2, "(") #)
19850 macro = mac2[1]
19851 prefix = substr(line, 1, index(line, defundef) - 1)
19852 if (D_is_set[macro]) {
19853 # Preserve the white space surrounding the "#".
19854 print prefix "define", macro P[macro] D[macro]
19855 next
19856 } else {
19857 # Replace #undef with comments. This is necessary, for example,
19858 # in the case of _POSIX_SOURCE, which is predefined and required
19859 # on some systems where configure will not decide to define it.
19860 if (defundef == "undef") {
19861 print "/*", prefix defundef, macro, "*/"
19862 next
19863 }
19864 }
19865 }
19866 { print }
19867 _ACAWK
19868 _ACEOF
19869 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19870 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19871 fi # test -n "$CONFIG_HEADERS"
19872
19873
19874 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19875 shift
19876 for ac_tag
19877 do
19878 case $ac_tag in
19879 :[FHLC]) ac_mode=$ac_tag; continue;;
19880 esac
19881 case $ac_mode$ac_tag in
19882 :[FHL]*:*);;
19883 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19884 :[FH]-) ac_tag=-:-;;
19885 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19886 esac
19887 ac_save_IFS=$IFS
19888 IFS=:
19889 set x $ac_tag
19890 IFS=$ac_save_IFS
19891 shift
19892 ac_file=$1
19893 shift
19894
19895 case $ac_mode in
19896 :L) ac_source=$1;;
19897 :[FH])
19898 ac_file_inputs=
19899 for ac_f
19900 do
19901 case $ac_f in
19902 -) ac_f="$ac_tmp/stdin";;
19903 *) # Look for the file first in the build tree, then in the source tree
19904 # (if the path is not absolute). The absolute path cannot be DOS-style,
19905 # because $ac_f cannot contain `:'.
19906 test -f "$ac_f" ||
19907 case $ac_f in
19908 [\\/$]*) false;;
19909 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19910 esac ||
19911 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19912 esac
19913 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19914 as_fn_append ac_file_inputs " '$ac_f'"
19915 done
19916
19917 # Let's still pretend it is `configure' which instantiates (i.e., don't
19918 # use $as_me), people would be surprised to read:
19919 # /* config.h. Generated by config.status. */
19920 configure_input='Generated from '`
19921 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19922 `' by configure.'
19923 if test x"$ac_file" != x-; then
19924 configure_input="$ac_file. $configure_input"
19925 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19926 $as_echo "$as_me: creating $ac_file" >&6;}
19927 fi
19928 # Neutralize special characters interpreted by sed in replacement strings.
19929 case $configure_input in #(
19930 *\&* | *\|* | *\\* )
19931 ac_sed_conf_input=`$as_echo "$configure_input" |
19932 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19933 *) ac_sed_conf_input=$configure_input;;
19934 esac
19935
19936 case $ac_tag in
19937 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19938 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19939 esac
19940 ;;
19941 esac
19942
19943 ac_dir=`$as_dirname -- "$ac_file" ||
19944 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19945 X"$ac_file" : 'X\(//\)[^/]' \| \
19946 X"$ac_file" : 'X\(//\)$' \| \
19947 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19948 $as_echo X"$ac_file" |
19949 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19950 s//\1/
19951 q
19952 }
19953 /^X\(\/\/\)[^/].*/{
19954 s//\1/
19955 q
19956 }
19957 /^X\(\/\/\)$/{
19958 s//\1/
19959 q
19960 }
19961 /^X\(\/\).*/{
19962 s//\1/
19963 q
19964 }
19965 s/.*/./; q'`
19966 as_dir="$ac_dir"; as_fn_mkdir_p
19967 ac_builddir=.
19968
19969 case "$ac_dir" in
19970 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19971 *)
19972 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19973 # A ".." for each directory in $ac_dir_suffix.
19974 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19975 case $ac_top_builddir_sub in
19976 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19977 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19978 esac ;;
19979 esac
19980 ac_abs_top_builddir=$ac_pwd
19981 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19982 # for backward compatibility:
19983 ac_top_builddir=$ac_top_build_prefix
19984
19985 case $srcdir in
19986 .) # We are building in place.
19987 ac_srcdir=.
19988 ac_top_srcdir=$ac_top_builddir_sub
19989 ac_abs_top_srcdir=$ac_pwd ;;
19990 [\\/]* | ?:[\\/]* ) # Absolute name.
19991 ac_srcdir=$srcdir$ac_dir_suffix;
19992 ac_top_srcdir=$srcdir
19993 ac_abs_top_srcdir=$srcdir ;;
19994 *) # Relative name.
19995 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19996 ac_top_srcdir=$ac_top_build_prefix$srcdir
19997 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19998 esac
19999 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20000
20001
20002 case $ac_mode in
20003 :F)
20004 #
20005 # CONFIG_FILE
20006 #
20007
20008 case $INSTALL in
20009 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20010 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20011 esac
20012 ac_MKDIR_P=$MKDIR_P
20013 case $MKDIR_P in
20014 [\\/$]* | ?:[\\/]* ) ;;
20015 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20016 esac
20017 _ACEOF
20018
20019 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20020 # If the template does not know about datarootdir, expand it.
20021 # FIXME: This hack should be removed a few years after 2.60.
20022 ac_datarootdir_hack=; ac_datarootdir_seen=
20023 ac_sed_dataroot='
20024 /datarootdir/ {
20025 p
20026 q
20027 }
20028 /@datadir@/p
20029 /@docdir@/p
20030 /@infodir@/p
20031 /@localedir@/p
20032 /@mandir@/p'
20033 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20034 *datarootdir*) ac_datarootdir_seen=yes;;
20035 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20037 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20038 _ACEOF
20039 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20040 ac_datarootdir_hack='
20041 s&@datadir@&$datadir&g
20042 s&@docdir@&$docdir&g
20043 s&@infodir@&$infodir&g
20044 s&@localedir@&$localedir&g
20045 s&@mandir@&$mandir&g
20046 s&\\\${datarootdir}&$datarootdir&g' ;;
20047 esac
20048 _ACEOF
20049
20050 # Neutralize VPATH when `$srcdir' = `.'.
20051 # Shell code in configure.ac might set extrasub.
20052 # FIXME: do we really want to maintain this feature?
20053 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20054 ac_sed_extra="$ac_vpsub
20055 $extrasub
20056 _ACEOF
20057 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20058 :t
20059 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20060 s|@configure_input@|$ac_sed_conf_input|;t t
20061 s&@top_builddir@&$ac_top_builddir_sub&;t t
20062 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20063 s&@srcdir@&$ac_srcdir&;t t
20064 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20065 s&@top_srcdir@&$ac_top_srcdir&;t t
20066 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20067 s&@builddir@&$ac_builddir&;t t
20068 s&@abs_builddir@&$ac_abs_builddir&;t t
20069 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20070 s&@INSTALL@&$ac_INSTALL&;t t
20071 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20072 $ac_datarootdir_hack
20073 "
20074 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20075 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20076
20077 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20078 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20079 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20080 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20082 which seems to be undefined. Please make sure it is defined" >&5
20083 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20084 which seems to be undefined. Please make sure it is defined" >&2;}
20085
20086 rm -f "$ac_tmp/stdin"
20087 case $ac_file in
20088 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20089 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20090 esac \
20091 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20092 ;;
20093 :H)
20094 #
20095 # CONFIG_HEADER
20096 #
20097 if test x"$ac_file" != x-; then
20098 {
20099 $as_echo "/* $configure_input */" \
20100 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20101 } >"$ac_tmp/config.h" \
20102 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20103 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20104 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20105 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20106 else
20107 rm -f "$ac_file"
20108 mv "$ac_tmp/config.h" "$ac_file" \
20109 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20110 fi
20111 else
20112 $as_echo "/* $configure_input */" \
20113 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20114 || as_fn_error $? "could not create -" "$LINENO" 5
20115 fi
20116 # Compute "$ac_file"'s index in $config_headers.
20117 _am_arg="$ac_file"
20118 _am_stamp_count=1
20119 for _am_header in $config_headers :; do
20120 case $_am_header in
20121 $_am_arg | $_am_arg:* )
20122 break ;;
20123 * )
20124 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20125 esac
20126 done
20127 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20128 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20129 X"$_am_arg" : 'X\(//\)[^/]' \| \
20130 X"$_am_arg" : 'X\(//\)$' \| \
20131 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20132 $as_echo X"$_am_arg" |
20133 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20134 s//\1/
20135 q
20136 }
20137 /^X\(\/\/\)[^/].*/{
20138 s//\1/
20139 q
20140 }
20141 /^X\(\/\/\)$/{
20142 s//\1/
20143 q
20144 }
20145 /^X\(\/\).*/{
20146 s//\1/
20147 q
20148 }
20149 s/.*/./; q'`/stamp-h$_am_stamp_count
20150 ;;
20151
20152 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20153 $as_echo "$as_me: executing $ac_file commands" >&6;}
20154 ;;
20155 esac
20156
20157
20158 case $ac_file$ac_mode in
20159 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20160 # Autoconf 2.62 quotes --file arguments for eval, but not when files
20161 # are listed without --file. Let's play safe and only enable the eval
20162 # if we detect the quoting.
20163 case $CONFIG_FILES in
20164 *\'*) eval set x "$CONFIG_FILES" ;;
20165 *) set x $CONFIG_FILES ;;
20166 esac
20167 shift
20168 for mf
20169 do
20170 # Strip MF so we end up with the name of the file.
20171 mf=`echo "$mf" | sed -e 's/:.*$//'`
20172 # Check whether this is an Automake generated Makefile or not.
20173 # We used to match only the files named 'Makefile.in', but
20174 # some people rename them; so instead we look at the file content.
20175 # Grep'ing the first line is not enough: some people post-process
20176 # each Makefile.in and add a new line on top of each file to say so.
20177 # Grep'ing the whole file is not good either: AIX grep has a line
20178 # limit of 2048, but all sed's we know have understand at least 4000.
20179 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20180 dirpart=`$as_dirname -- "$mf" ||
20181 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20182 X"$mf" : 'X\(//\)[^/]' \| \
20183 X"$mf" : 'X\(//\)$' \| \
20184 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20185 $as_echo X"$mf" |
20186 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20187 s//\1/
20188 q
20189 }
20190 /^X\(\/\/\)[^/].*/{
20191 s//\1/
20192 q
20193 }
20194 /^X\(\/\/\)$/{
20195 s//\1/
20196 q
20197 }
20198 /^X\(\/\).*/{
20199 s//\1/
20200 q
20201 }
20202 s/.*/./; q'`
20203 else
20204 continue
20205 fi
20206 # Extract the definition of DEPDIR, am__include, and am__quote
20207 # from the Makefile without running 'make'.
20208 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20209 test -z "$DEPDIR" && continue
20210 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20211 test -z "am__include" && continue
20212 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20213 # Find all dependency output files, they are included files with
20214 # $(DEPDIR) in their names. We invoke sed twice because it is the
20215 # simplest approach to changing $(DEPDIR) to its actual value in the
20216 # expansion.
20217 for file in `sed -n "
20218 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20219 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
20220 # Make sure the directory exists.
20221 test -f "$dirpart/$file" && continue
20222 fdir=`$as_dirname -- "$file" ||
20223 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20224 X"$file" : 'X\(//\)[^/]' \| \
20225 X"$file" : 'X\(//\)$' \| \
20226 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20227 $as_echo X"$file" |
20228 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20229 s//\1/
20230 q
20231 }
20232 /^X\(\/\/\)[^/].*/{
20233 s//\1/
20234 q
20235 }
20236 /^X\(\/\/\)$/{
20237 s//\1/
20238 q
20239 }
20240 /^X\(\/\).*/{
20241 s//\1/
20242 q
20243 }
20244 s/.*/./; q'`
20245 as_dir=$dirpart/$fdir; as_fn_mkdir_p
20246 # echo "creating $dirpart/$file"
20247 echo '# dummy' > "$dirpart/$file"
20248 done
20249 done
20250 }
20251 ;;
20252 "libtool":C)
20253
20254 # See if we are running on zsh, and set the options which allow our
20255 # commands through without removal of \ escapes.
20256 if test -n "${ZSH_VERSION+set}" ; then
20257 setopt NO_GLOB_SUBST
20258 fi
20259
20260 cfgfile="${ofile}T"
20261 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20262 $RM "$cfgfile"
20263
20264 cat <<_LT_EOF >> "$cfgfile"
20265 #! $SHELL
20266
20267 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20268 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20269 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20270 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20271 #
20272 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20273 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
20274 # Foundation, Inc.
20275 # Written by Gordon Matzigkeit, 1996
20276 #
20277 # This file is part of GNU Libtool.
20278 #
20279 # GNU Libtool is free software; you can redistribute it and/or
20280 # modify it under the terms of the GNU General Public License as
20281 # published by the Free Software Foundation; either version 2 of
20282 # the License, or (at your option) any later version.
20283 #
20284 # As a special exception to the GNU General Public License,
20285 # if you distribute this file as part of a program or library that
20286 # is built using GNU Libtool, you may include this file under the
20287 # same distribution terms that you use for the rest of that program.
20288 #
20289 # GNU Libtool is distributed in the hope that it will be useful,
20290 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20291 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20292 # GNU General Public License for more details.
20293 #
20294 # You should have received a copy of the GNU General Public License
20295 # along with GNU Libtool; see the file COPYING. If not, a copy
20296 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20297 # obtained by writing to the Free Software Foundation, Inc.,
20298 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20299
20300
20301 # The names of the tagged configurations supported by this script.
20302 available_tags=""
20303
20304 # ### BEGIN LIBTOOL CONFIG
20305
20306 # Whether or not to build static libraries.
20307 build_old_libs=$enable_static
20308
20309 # Which release of libtool.m4 was used?
20310 macro_version=$macro_version
20311 macro_revision=$macro_revision
20312
20313 # Whether or not to build shared libraries.
20314 build_libtool_libs=$enable_shared
20315
20316 # What type of objects to build.
20317 pic_mode=$pic_mode
20318
20319 # Whether or not to optimize for fast installation.
20320 fast_install=$enable_fast_install
20321
20322 # Shell to use when invoking shell scripts.
20323 SHELL=$lt_SHELL
20324
20325 # An echo program that protects backslashes.
20326 ECHO=$lt_ECHO
20327
20328 # The PATH separator for the build system.
20329 PATH_SEPARATOR=$lt_PATH_SEPARATOR
20330
20331 # The host system.
20332 host_alias=$host_alias
20333 host=$host
20334 host_os=$host_os
20335
20336 # The build system.
20337 build_alias=$build_alias
20338 build=$build
20339 build_os=$build_os
20340
20341 # A sed program that does not truncate output.
20342 SED=$lt_SED
20343
20344 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20345 Xsed="\$SED -e 1s/^X//"
20346
20347 # A grep program that handles long lines.
20348 GREP=$lt_GREP
20349
20350 # An ERE matcher.
20351 EGREP=$lt_EGREP
20352
20353 # A literal string matcher.
20354 FGREP=$lt_FGREP
20355
20356 # A BSD- or MS-compatible name lister.
20357 NM=$lt_NM
20358
20359 # Whether we need soft or hard links.
20360 LN_S=$lt_LN_S
20361
20362 # What is the maximum length of a command?
20363 max_cmd_len=$max_cmd_len
20364
20365 # Object file suffix (normally "o").
20366 objext=$ac_objext
20367
20368 # Executable file suffix (normally "").
20369 exeext=$exeext
20370
20371 # whether the shell understands "unset".
20372 lt_unset=$lt_unset
20373
20374 # turn spaces into newlines.
20375 SP2NL=$lt_lt_SP2NL
20376
20377 # turn newlines into spaces.
20378 NL2SP=$lt_lt_NL2SP
20379
20380 # convert \$build file names to \$host format.
20381 to_host_file_cmd=$lt_cv_to_host_file_cmd
20382
20383 # convert \$build files to toolchain format.
20384 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20385
20386 # An object symbol dumper.
20387 OBJDUMP=$lt_OBJDUMP
20388
20389 # Method to check whether dependent libraries are shared objects.
20390 deplibs_check_method=$lt_deplibs_check_method
20391
20392 # Command to use when deplibs_check_method = "file_magic".
20393 file_magic_cmd=$lt_file_magic_cmd
20394
20395 # How to find potential files when deplibs_check_method = "file_magic".
20396 file_magic_glob=$lt_file_magic_glob
20397
20398 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20399 want_nocaseglob=$lt_want_nocaseglob
20400
20401 # DLL creation program.
20402 DLLTOOL=$lt_DLLTOOL
20403
20404 # Command to associate shared and link libraries.
20405 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20406
20407 # The archiver.
20408 AR=$lt_AR
20409
20410 # Flags to create an archive.
20411 AR_FLAGS=$lt_AR_FLAGS
20412
20413 # How to feed a file listing to the archiver.
20414 archiver_list_spec=$lt_archiver_list_spec
20415
20416 # A symbol stripping program.
20417 STRIP=$lt_STRIP
20418
20419 # Commands used to install an old-style archive.
20420 RANLIB=$lt_RANLIB
20421 old_postinstall_cmds=$lt_old_postinstall_cmds
20422 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20423
20424 # Whether to use a lock for old archive extraction.
20425 lock_old_archive_extraction=$lock_old_archive_extraction
20426
20427 # A C compiler.
20428 LTCC=$lt_CC
20429
20430 # LTCC compiler flags.
20431 LTCFLAGS=$lt_CFLAGS
20432
20433 # Take the output of nm and produce a listing of raw symbols and C names.
20434 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20435
20436 # Transform the output of nm in a proper C declaration.
20437 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20438
20439 # Transform the output of nm in a C name address pair.
20440 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20441
20442 # Transform the output of nm in a C name address pair when lib prefix is needed.
20443 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20444
20445 # Specify filename containing input files for \$NM.
20446 nm_file_list_spec=$lt_nm_file_list_spec
20447
20448 # The root where to search for dependent libraries,and in which our libraries should be installed.
20449 lt_sysroot=$lt_sysroot
20450
20451 # The name of the directory that contains temporary libtool files.
20452 objdir=$objdir
20453
20454 # Used to examine libraries when file_magic_cmd begins with "file".
20455 MAGIC_CMD=$MAGIC_CMD
20456
20457 # Must we lock files when doing compilation?
20458 need_locks=$lt_need_locks
20459
20460 # Manifest tool.
20461 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20462
20463 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20464 DSYMUTIL=$lt_DSYMUTIL
20465
20466 # Tool to change global to local symbols on Mac OS X.
20467 NMEDIT=$lt_NMEDIT
20468
20469 # Tool to manipulate fat objects and archives on Mac OS X.
20470 LIPO=$lt_LIPO
20471
20472 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20473 OTOOL=$lt_OTOOL
20474
20475 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20476 OTOOL64=$lt_OTOOL64
20477
20478 # Old archive suffix (normally "a").
20479 libext=$libext
20480
20481 # Shared library suffix (normally ".so").
20482 shrext_cmds=$lt_shrext_cmds
20483
20484 # The commands to extract the exported symbol list from a shared archive.
20485 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20486
20487 # Variables whose values should be saved in libtool wrapper scripts and
20488 # restored at link time.
20489 variables_saved_for_relink=$lt_variables_saved_for_relink
20490
20491 # Do we need the "lib" prefix for modules?
20492 need_lib_prefix=$need_lib_prefix
20493
20494 # Do we need a version for libraries?
20495 need_version=$need_version
20496
20497 # Library versioning type.
20498 version_type=$version_type
20499
20500 # Shared library runtime path variable.
20501 runpath_var=$runpath_var
20502
20503 # Shared library path variable.
20504 shlibpath_var=$shlibpath_var
20505
20506 # Is shlibpath searched before the hard-coded library search path?
20507 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20508
20509 # Format of library name prefix.
20510 libname_spec=$lt_libname_spec
20511
20512 # List of archive names. First name is the real one, the rest are links.
20513 # The last name is the one that the linker finds with -lNAME
20514 library_names_spec=$lt_library_names_spec
20515
20516 # The coded name of the library, if different from the real name.
20517 soname_spec=$lt_soname_spec
20518
20519 # Permission mode override for installation of shared libraries.
20520 install_override_mode=$lt_install_override_mode
20521
20522 # Command to use after installation of a shared archive.
20523 postinstall_cmds=$lt_postinstall_cmds
20524
20525 # Command to use after uninstallation of a shared archive.
20526 postuninstall_cmds=$lt_postuninstall_cmds
20527
20528 # Commands used to finish a libtool library installation in a directory.
20529 finish_cmds=$lt_finish_cmds
20530
20531 # As "finish_cmds", except a single script fragment to be evaled but
20532 # not shown.
20533 finish_eval=$lt_finish_eval
20534
20535 # Whether we should hardcode library paths into libraries.
20536 hardcode_into_libs=$hardcode_into_libs
20537
20538 # Compile-time system search path for libraries.
20539 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20540
20541 # Run-time system search path for libraries.
20542 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20543
20544 # Whether dlopen is supported.
20545 dlopen_support=$enable_dlopen
20546
20547 # Whether dlopen of programs is supported.
20548 dlopen_self=$enable_dlopen_self
20549
20550 # Whether dlopen of statically linked programs is supported.
20551 dlopen_self_static=$enable_dlopen_self_static
20552
20553 # Commands to strip libraries.
20554 old_striplib=$lt_old_striplib
20555 striplib=$lt_striplib
20556
20557
20558 # The linker used to build libraries.
20559 LD=$lt_LD
20560
20561 # How to create reloadable object files.
20562 reload_flag=$lt_reload_flag
20563 reload_cmds=$lt_reload_cmds
20564
20565 # Commands used to build an old-style archive.
20566 old_archive_cmds=$lt_old_archive_cmds
20567
20568 # A language specific compiler.
20569 CC=$lt_compiler
20570
20571 # Is the compiler the GNU compiler?
20572 with_gcc=$GCC
20573
20574 # Compiler flag to turn off builtin functions.
20575 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20576
20577 # Additional compiler flags for building library objects.
20578 pic_flag=$lt_lt_prog_compiler_pic
20579
20580 # How to pass a linker flag through the compiler.
20581 wl=$lt_lt_prog_compiler_wl
20582
20583 # Compiler flag to prevent dynamic linking.
20584 link_static_flag=$lt_lt_prog_compiler_static
20585
20586 # Does compiler simultaneously support -c and -o options?
20587 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20588
20589 # Whether or not to add -lc for building shared libraries.
20590 build_libtool_need_lc=$archive_cmds_need_lc
20591
20592 # Whether or not to disallow shared libs when runtime libs are static.
20593 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20594
20595 # Compiler flag to allow reflexive dlopens.
20596 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20597
20598 # Compiler flag to generate shared objects directly from archives.
20599 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20600
20601 # Whether the compiler copes with passing no objects directly.
20602 compiler_needs_object=$lt_compiler_needs_object
20603
20604 # Create an old-style archive from a shared archive.
20605 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20606
20607 # Create a temporary old-style archive to link instead of a shared archive.
20608 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20609
20610 # Commands used to build a shared archive.
20611 archive_cmds=$lt_archive_cmds
20612 archive_expsym_cmds=$lt_archive_expsym_cmds
20613
20614 # Commands used to build a loadable module if different from building
20615 # a shared archive.
20616 module_cmds=$lt_module_cmds
20617 module_expsym_cmds=$lt_module_expsym_cmds
20618
20619 # Whether we are building with GNU ld or not.
20620 with_gnu_ld=$lt_with_gnu_ld
20621
20622 # Flag that allows shared libraries with undefined symbols to be built.
20623 allow_undefined_flag=$lt_allow_undefined_flag
20624
20625 # Flag that enforces no undefined symbols.
20626 no_undefined_flag=$lt_no_undefined_flag
20627
20628 # Flag to hardcode \$libdir into a binary during linking.
20629 # This must work even if \$libdir does not exist
20630 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20631
20632 # Whether we need a single "-rpath" flag with a separated argument.
20633 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20634
20635 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20636 # DIR into the resulting binary.
20637 hardcode_direct=$hardcode_direct
20638
20639 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20640 # DIR into the resulting binary and the resulting library dependency is
20641 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20642 # library is relocated.
20643 hardcode_direct_absolute=$hardcode_direct_absolute
20644
20645 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20646 # into the resulting binary.
20647 hardcode_minus_L=$hardcode_minus_L
20648
20649 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20650 # into the resulting binary.
20651 hardcode_shlibpath_var=$hardcode_shlibpath_var
20652
20653 # Set to "yes" if building a shared library automatically hardcodes DIR
20654 # into the library and all subsequent libraries and executables linked
20655 # against it.
20656 hardcode_automatic=$hardcode_automatic
20657
20658 # Set to yes if linker adds runtime paths of dependent libraries
20659 # to runtime path list.
20660 inherit_rpath=$inherit_rpath
20661
20662 # Whether libtool must link a program against all its dependency libraries.
20663 link_all_deplibs=$link_all_deplibs
20664
20665 # Set to "yes" if exported symbols are required.
20666 always_export_symbols=$always_export_symbols
20667
20668 # The commands to list exported symbols.
20669 export_symbols_cmds=$lt_export_symbols_cmds
20670
20671 # Symbols that should not be listed in the preloaded symbols.
20672 exclude_expsyms=$lt_exclude_expsyms
20673
20674 # Symbols that must always be exported.
20675 include_expsyms=$lt_include_expsyms
20676
20677 # Commands necessary for linking programs (against libraries) with templates.
20678 prelink_cmds=$lt_prelink_cmds
20679
20680 # Commands necessary for finishing linking programs.
20681 postlink_cmds=$lt_postlink_cmds
20682
20683 # Specify filename containing input files.
20684 file_list_spec=$lt_file_list_spec
20685
20686 # How to hardcode a shared library path into an executable.
20687 hardcode_action=$hardcode_action
20688
20689 # ### END LIBTOOL CONFIG
20690
20691 _LT_EOF
20692
20693 case $host_os in
20694 aix3*)
20695 cat <<\_LT_EOF >> "$cfgfile"
20696 # AIX sometimes has problems with the GCC collect2 program. For some
20697 # reason, if we set the COLLECT_NAMES environment variable, the problems
20698 # vanish in a puff of smoke.
20699 if test "X${COLLECT_NAMES+set}" != Xset; then
20700 COLLECT_NAMES=
20701 export COLLECT_NAMES
20702 fi
20703 _LT_EOF
20704 ;;
20705 esac
20706
20707
20708 ltmain="$ac_aux_dir/ltmain.sh"
20709
20710
20711 # We use sed instead of cat because bash on DJGPP gets confused if
20712 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20713 # text mode, it properly converts lines to CR/LF. This bash problem
20714 # is reportedly fixed, but why not run on old versions too?
20715 sed '$q' "$ltmain" >> "$cfgfile" \
20716 || (rm -f "$cfgfile"; exit 1)
20717
20718 if test x"$xsi_shell" = xyes; then
20719 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20720 func_dirname ()\
20721 {\
20722 \ case ${1} in\
20723 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20724 \ * ) func_dirname_result="${3}" ;;\
20725 \ esac\
20726 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20727 && mv -f "$cfgfile.tmp" "$cfgfile" \
20728 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20729 test 0 -eq $? || _lt_function_replace_fail=:
20730
20731
20732 sed -e '/^func_basename ()$/,/^} # func_basename /c\
20733 func_basename ()\
20734 {\
20735 \ func_basename_result="${1##*/}"\
20736 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20737 && mv -f "$cfgfile.tmp" "$cfgfile" \
20738 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20739 test 0 -eq $? || _lt_function_replace_fail=:
20740
20741
20742 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20743 func_dirname_and_basename ()\
20744 {\
20745 \ case ${1} in\
20746 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20747 \ * ) func_dirname_result="${3}" ;;\
20748 \ esac\
20749 \ func_basename_result="${1##*/}"\
20750 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20751 && mv -f "$cfgfile.tmp" "$cfgfile" \
20752 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20753 test 0 -eq $? || _lt_function_replace_fail=:
20754
20755
20756 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20757 func_stripname ()\
20758 {\
20759 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20760 \ # positional parameters, so assign one to ordinary parameter first.\
20761 \ func_stripname_result=${3}\
20762 \ func_stripname_result=${func_stripname_result#"${1}"}\
20763 \ func_stripname_result=${func_stripname_result%"${2}"}\
20764 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20765 && mv -f "$cfgfile.tmp" "$cfgfile" \
20766 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20767 test 0 -eq $? || _lt_function_replace_fail=:
20768
20769
20770 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20771 func_split_long_opt ()\
20772 {\
20773 \ func_split_long_opt_name=${1%%=*}\
20774 \ func_split_long_opt_arg=${1#*=}\
20775 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20776 && mv -f "$cfgfile.tmp" "$cfgfile" \
20777 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20778 test 0 -eq $? || _lt_function_replace_fail=:
20779
20780
20781 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20782 func_split_short_opt ()\
20783 {\
20784 \ func_split_short_opt_arg=${1#??}\
20785 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20786 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20787 && mv -f "$cfgfile.tmp" "$cfgfile" \
20788 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20789 test 0 -eq $? || _lt_function_replace_fail=:
20790
20791
20792 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20793 func_lo2o ()\
20794 {\
20795 \ case ${1} in\
20796 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20797 \ *) func_lo2o_result=${1} ;;\
20798 \ esac\
20799 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20800 && mv -f "$cfgfile.tmp" "$cfgfile" \
20801 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20802 test 0 -eq $? || _lt_function_replace_fail=:
20803
20804
20805 sed -e '/^func_xform ()$/,/^} # func_xform /c\
20806 func_xform ()\
20807 {\
20808 func_xform_result=${1%.*}.lo\
20809 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20810 && mv -f "$cfgfile.tmp" "$cfgfile" \
20811 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20812 test 0 -eq $? || _lt_function_replace_fail=:
20813
20814
20815 sed -e '/^func_arith ()$/,/^} # func_arith /c\
20816 func_arith ()\
20817 {\
20818 func_arith_result=$(( $* ))\
20819 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20820 && mv -f "$cfgfile.tmp" "$cfgfile" \
20821 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20822 test 0 -eq $? || _lt_function_replace_fail=:
20823
20824
20825 sed -e '/^func_len ()$/,/^} # func_len /c\
20826 func_len ()\
20827 {\
20828 func_len_result=${#1}\
20829 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20830 && mv -f "$cfgfile.tmp" "$cfgfile" \
20831 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20832 test 0 -eq $? || _lt_function_replace_fail=:
20833
20834 fi
20835
20836 if test x"$lt_shell_append" = xyes; then
20837 sed -e '/^func_append ()$/,/^} # func_append /c\
20838 func_append ()\
20839 {\
20840 eval "${1}+=\\${2}"\
20841 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20842 && mv -f "$cfgfile.tmp" "$cfgfile" \
20843 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20844 test 0 -eq $? || _lt_function_replace_fail=:
20845
20846
20847 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20848 func_append_quoted ()\
20849 {\
20850 \ func_quote_for_eval "${2}"\
20851 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20852 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20853 && mv -f "$cfgfile.tmp" "$cfgfile" \
20854 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20855 test 0 -eq $? || _lt_function_replace_fail=:
20856
20857
20858 # Save a `func_append' function call where possible by direct use of '+='
20859 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20860 && mv -f "$cfgfile.tmp" "$cfgfile" \
20861 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20862 test 0 -eq $? || _lt_function_replace_fail=:
20863 else
20864 # Save a `func_append' function call even when '+=' is not available
20865 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20866 && mv -f "$cfgfile.tmp" "$cfgfile" \
20867 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20868 test 0 -eq $? || _lt_function_replace_fail=:
20869 fi
20870
20871 if test x"$_lt_function_replace_fail" = x":"; then
20872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20873 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20874 fi
20875
20876
20877 mv -f "$cfgfile" "$ofile" ||
20878 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20879 chmod +x "$ofile"
20880
20881 ;;
20882
20883 esac
20884 done # for ac_tag
20885
20886
20887 as_fn_exit 0
20888 _ACEOF
20889 ac_clean_files=$ac_clean_files_save
20890
20891 test $ac_write_fail = 0 ||
20892 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20893
20894
20895 # configure is writing to config.log, and then calls config.status.
20896 # config.status does its own redirection, appending to config.log.
20897 # Unfortunately, on DOS this fails, as config.log is still kept open
20898 # by configure, so config.status won't be able to write to it; its
20899 # output is simply discarded. So we exec the FD to /dev/null,
20900 # effectively closing config.log, so it can be properly (re)opened and
20901 # appended to by config.status. When coming back to configure, we
20902 # need to make the FD available again.
20903 if test "$no_create" != yes; then
20904 ac_cs_success=:
20905 ac_config_status_args=
20906 test "$silent" = yes &&
20907 ac_config_status_args="$ac_config_status_args --quiet"
20908 exec 5>/dev/null
20909 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20910 exec 5>>config.log
20911 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20912 # would make configure fail if this is the last instruction.
20913 $ac_cs_success || as_fn_exit 1
20914 fi
20915 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20917 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20918 fi
20919
20920