configure revision 1.1.1.6 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for xf86-video-s3virge 1.10.7.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 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-s3virge'
593 PACKAGE_TARNAME='xf86-video-s3virge'
594 PACKAGE_VERSION='1.10.7'
595 PACKAGE_STRING='xf86-video-s3virge 1.10.7'
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 XAA_FALSE
643 XAA_TRUE
644 XSERVER_LIBPCIACCESS_FALSE
645 XSERVER_LIBPCIACCESS_TRUE
646 PCIACCESS_LIBS
647 PCIACCESS_CFLAGS
648 HAVE_XEXTPROTO_71_FALSE
649 HAVE_XEXTPROTO_71_TRUE
650 XEXT_LIBS
651 XEXT_CFLAGS
652 XORG_LIBS
653 XORG_CFLAGS
654 LT_SYS_LIBRARY_PATH
655 OTOOL64
656 OTOOL
657 LIPO
658 NMEDIT
659 DSYMUTIL
660 MANIFEST_TOOL
661 RANLIB
662 ac_ct_AR
663 AR
664 DLLTOOL
665 OBJDUMP
666 LN_S
667 NM
668 ac_ct_DUMPBIN
669 DUMPBIN
670 LD
671 FGREP
672 LIBTOOL
673 MAN_SUBSTS
674 XORG_MAN_PAGE
675 ADMIN_MAN_DIR
676 DRIVER_MAN_DIR
677 MISC_MAN_DIR
678 FILE_MAN_DIR
679 LIB_MAN_DIR
680 APP_MAN_DIR
681 ADMIN_MAN_SUFFIX
682 DRIVER_MAN_SUFFIX
683 MISC_MAN_SUFFIX
684 FILE_MAN_SUFFIX
685 LIB_MAN_SUFFIX
686 APP_MAN_SUFFIX
687 SED
688 host_os
689 host_vendor
690 host_cpu
691 host
692 build_os
693 build_vendor
694 build_cpu
695 build
696 INSTALL_CMD
697 PKG_CONFIG_LIBDIR
698 PKG_CONFIG_PATH
699 PKG_CONFIG
700 CHANGELOG_CMD
701 STRICT_CFLAGS
702 CWARNFLAGS
703 BASE_CFLAGS
704 EGREP
705 GREP
706 CPP
707 am__fastdepCC_FALSE
708 am__fastdepCC_TRUE
709 CCDEPMODE
710 am__nodep
711 AMDEPBACKSLASH
712 AMDEP_FALSE
713 AMDEP_TRUE
714 am__quote
715 am__include
716 DEPDIR
717 OBJEXT
718 EXEEXT
719 ac_ct_CC
720 CPPFLAGS
721 LDFLAGS
722 CFLAGS
723 CC
724 MAINT
725 MAINTAINER_MODE_FALSE
726 MAINTAINER_MODE_TRUE
727 AM_BACKSLASH
728 AM_DEFAULT_VERBOSITY
729 AM_DEFAULT_V
730 AM_V
731 am__untar
732 am__tar
733 AMTAR
734 am__leading_dot
735 SET_MAKE
736 AWK
737 mkdir_p
738 MKDIR_P
739 INSTALL_STRIP_PROGRAM
740 STRIP
741 install_sh
742 MAKEINFO
743 AUTOHEADER
744 AUTOMAKE
745 AUTOCONF
746 ACLOCAL
747 VERSION
748 PACKAGE
749 CYGPATH_W
750 am__isrc
751 INSTALL_DATA
752 INSTALL_SCRIPT
753 INSTALL_PROGRAM
754 target_alias
755 host_alias
756 build_alias
757 LIBS
758 ECHO_T
759 ECHO_N
760 ECHO_C
761 DEFS
762 mandir
763 localedir
764 libdir
765 psdir
766 pdfdir
767 dvidir
768 htmldir
769 infodir
770 docdir
771 oldincludedir
772 includedir
773 localstatedir
774 sharedstatedir
775 sysconfdir
776 datadir
777 datarootdir
778 libexecdir
779 sbindir
780 bindir
781 program_transform_name
782 prefix
783 exec_prefix
784 PACKAGE_URL
785 PACKAGE_BUGREPORT
786 PACKAGE_STRING
787 PACKAGE_VERSION
788 PACKAGE_TARNAME
789 PACKAGE_NAME
790 PATH_SEPARATOR
791 SHELL'
792 ac_subst_files=''
793 ac_user_opts='
794 enable_option_checking
795 enable_silent_rules
796 enable_maintainer_mode
797 enable_dependency_tracking
798 enable_selective_werror
799 enable_strict_compilation
800 enable_static
801 enable_shared
802 with_pic
803 enable_fast_install
804 with_aix_soname
805 with_gnu_ld
806 with_sysroot
807 enable_libtool_lock
808 with_xorg_module_dir
809 enable_xaa
810 '
811 ac_precious_vars='build_alias
812 host_alias
813 target_alias
814 CC
815 CFLAGS
816 LDFLAGS
817 LIBS
818 CPPFLAGS
819 CPP
820 PKG_CONFIG
821 PKG_CONFIG_PATH
822 PKG_CONFIG_LIBDIR
823 LT_SYS_LIBRARY_PATH
824 XORG_CFLAGS
825 XORG_LIBS
826 XEXT_CFLAGS
827 XEXT_LIBS
828 PCIACCESS_CFLAGS
829 PCIACCESS_LIBS'
830
831
832 # Initialize some variables set by options.
833 ac_init_help=
834 ac_init_version=false
835 ac_unrecognized_opts=
836 ac_unrecognized_sep=
837 # The variables have the same names as the options, with
838 # dashes changed to underlines.
839 cache_file=/dev/null
840 exec_prefix=NONE
841 no_create=
842 no_recursion=
843 prefix=NONE
844 program_prefix=NONE
845 program_suffix=NONE
846 program_transform_name=s,x,x,
847 silent=
848 site=
849 srcdir=
850 verbose=
851 x_includes=NONE
852 x_libraries=NONE
853
854 # Installation directory options.
855 # These are left unexpanded so users can "make install exec_prefix=/foo"
856 # and all the variables that are supposed to be based on exec_prefix
857 # by default will actually change.
858 # Use braces instead of parens because sh, perl, etc. also accept them.
859 # (The list follows the same order as the GNU Coding Standards.)
860 bindir='${exec_prefix}/bin'
861 sbindir='${exec_prefix}/sbin'
862 libexecdir='${exec_prefix}/libexec'
863 datarootdir='${prefix}/share'
864 datadir='${datarootdir}'
865 sysconfdir='${prefix}/etc'
866 sharedstatedir='${prefix}/com'
867 localstatedir='${prefix}/var'
868 includedir='${prefix}/include'
869 oldincludedir='/usr/include'
870 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
871 infodir='${datarootdir}/info'
872 htmldir='${docdir}'
873 dvidir='${docdir}'
874 pdfdir='${docdir}'
875 psdir='${docdir}'
876 libdir='${exec_prefix}/lib'
877 localedir='${datarootdir}/locale'
878 mandir='${datarootdir}/man'
879
880 ac_prev=
881 ac_dashdash=
882 for ac_option
883 do
884 # If the previous option needs an argument, assign it.
885 if test -n "$ac_prev"; then
886 eval $ac_prev=\$ac_option
887 ac_prev=
888 continue
889 fi
890
891 case $ac_option in
892 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
893 *=) ac_optarg= ;;
894 *) ac_optarg=yes ;;
895 esac
896
897 # Accept the important Cygnus configure options, so we can diagnose typos.
898
899 case $ac_dashdash$ac_option in
900 --)
901 ac_dashdash=yes ;;
902
903 -bindir | --bindir | --bindi | --bind | --bin | --bi)
904 ac_prev=bindir ;;
905 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
906 bindir=$ac_optarg ;;
907
908 -build | --build | --buil | --bui | --bu)
909 ac_prev=build_alias ;;
910 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
911 build_alias=$ac_optarg ;;
912
913 -cache-file | --cache-file | --cache-fil | --cache-fi \
914 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
915 ac_prev=cache_file ;;
916 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
917 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
918 cache_file=$ac_optarg ;;
919
920 --config-cache | -C)
921 cache_file=config.cache ;;
922
923 -datadir | --datadir | --datadi | --datad)
924 ac_prev=datadir ;;
925 -datadir=* | --datadir=* | --datadi=* | --datad=*)
926 datadir=$ac_optarg ;;
927
928 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
929 | --dataroo | --dataro | --datar)
930 ac_prev=datarootdir ;;
931 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
932 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
933 datarootdir=$ac_optarg ;;
934
935 -disable-* | --disable-*)
936 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
937 # Reject names that are not valid shell variable names.
938 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
939 as_fn_error $? "invalid feature name: $ac_useropt"
940 ac_useropt_orig=$ac_useropt
941 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
942 case $ac_user_opts in
943 *"
944 "enable_$ac_useropt"
945 "*) ;;
946 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
947 ac_unrecognized_sep=', ';;
948 esac
949 eval enable_$ac_useropt=no ;;
950
951 -docdir | --docdir | --docdi | --doc | --do)
952 ac_prev=docdir ;;
953 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
954 docdir=$ac_optarg ;;
955
956 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
957 ac_prev=dvidir ;;
958 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
959 dvidir=$ac_optarg ;;
960
961 -enable-* | --enable-*)
962 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
963 # Reject names that are not valid shell variable names.
964 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
965 as_fn_error $? "invalid feature name: $ac_useropt"
966 ac_useropt_orig=$ac_useropt
967 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
968 case $ac_user_opts in
969 *"
970 "enable_$ac_useropt"
971 "*) ;;
972 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
973 ac_unrecognized_sep=', ';;
974 esac
975 eval enable_$ac_useropt=\$ac_optarg ;;
976
977 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
978 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
979 | --exec | --exe | --ex)
980 ac_prev=exec_prefix ;;
981 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
982 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
983 | --exec=* | --exe=* | --ex=*)
984 exec_prefix=$ac_optarg ;;
985
986 -gas | --gas | --ga | --g)
987 # Obsolete; use --with-gas.
988 with_gas=yes ;;
989
990 -help | --help | --hel | --he | -h)
991 ac_init_help=long ;;
992 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
993 ac_init_help=recursive ;;
994 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
995 ac_init_help=short ;;
996
997 -host | --host | --hos | --ho)
998 ac_prev=host_alias ;;
999 -host=* | --host=* | --hos=* | --ho=*)
1000 host_alias=$ac_optarg ;;
1001
1002 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1003 ac_prev=htmldir ;;
1004 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1005 | --ht=*)
1006 htmldir=$ac_optarg ;;
1007
1008 -includedir | --includedir | --includedi | --included | --include \
1009 | --includ | --inclu | --incl | --inc)
1010 ac_prev=includedir ;;
1011 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1012 | --includ=* | --inclu=* | --incl=* | --inc=*)
1013 includedir=$ac_optarg ;;
1014
1015 -infodir | --infodir | --infodi | --infod | --info | --inf)
1016 ac_prev=infodir ;;
1017 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1018 infodir=$ac_optarg ;;
1019
1020 -libdir | --libdir | --libdi | --libd)
1021 ac_prev=libdir ;;
1022 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1023 libdir=$ac_optarg ;;
1024
1025 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1026 | --libexe | --libex | --libe)
1027 ac_prev=libexecdir ;;
1028 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1029 | --libexe=* | --libex=* | --libe=*)
1030 libexecdir=$ac_optarg ;;
1031
1032 -localedir | --localedir | --localedi | --localed | --locale)
1033 ac_prev=localedir ;;
1034 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1035 localedir=$ac_optarg ;;
1036
1037 -localstatedir | --localstatedir | --localstatedi | --localstated \
1038 | --localstate | --localstat | --localsta | --localst | --locals)
1039 ac_prev=localstatedir ;;
1040 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1041 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1042 localstatedir=$ac_optarg ;;
1043
1044 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1045 ac_prev=mandir ;;
1046 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1047 mandir=$ac_optarg ;;
1048
1049 -nfp | --nfp | --nf)
1050 # Obsolete; use --without-fp.
1051 with_fp=no ;;
1052
1053 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1054 | --no-cr | --no-c | -n)
1055 no_create=yes ;;
1056
1057 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1058 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1059 no_recursion=yes ;;
1060
1061 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1062 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1063 | --oldin | --oldi | --old | --ol | --o)
1064 ac_prev=oldincludedir ;;
1065 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1066 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1067 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1068 oldincludedir=$ac_optarg ;;
1069
1070 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1071 ac_prev=prefix ;;
1072 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1073 prefix=$ac_optarg ;;
1074
1075 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1076 | --program-pre | --program-pr | --program-p)
1077 ac_prev=program_prefix ;;
1078 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1079 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1080 program_prefix=$ac_optarg ;;
1081
1082 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1083 | --program-suf | --program-su | --program-s)
1084 ac_prev=program_suffix ;;
1085 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1086 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1087 program_suffix=$ac_optarg ;;
1088
1089 -program-transform-name | --program-transform-name \
1090 | --program-transform-nam | --program-transform-na \
1091 | --program-transform-n | --program-transform- \
1092 | --program-transform | --program-transfor \
1093 | --program-transfo | --program-transf \
1094 | --program-trans | --program-tran \
1095 | --progr-tra | --program-tr | --program-t)
1096 ac_prev=program_transform_name ;;
1097 -program-transform-name=* | --program-transform-name=* \
1098 | --program-transform-nam=* | --program-transform-na=* \
1099 | --program-transform-n=* | --program-transform-=* \
1100 | --program-transform=* | --program-transfor=* \
1101 | --program-transfo=* | --program-transf=* \
1102 | --program-trans=* | --program-tran=* \
1103 | --progr-tra=* | --program-tr=* | --program-t=*)
1104 program_transform_name=$ac_optarg ;;
1105
1106 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1107 ac_prev=pdfdir ;;
1108 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1109 pdfdir=$ac_optarg ;;
1110
1111 -psdir | --psdir | --psdi | --psd | --ps)
1112 ac_prev=psdir ;;
1113 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1114 psdir=$ac_optarg ;;
1115
1116 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1117 | -silent | --silent | --silen | --sile | --sil)
1118 silent=yes ;;
1119
1120 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1121 ac_prev=sbindir ;;
1122 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1123 | --sbi=* | --sb=*)
1124 sbindir=$ac_optarg ;;
1125
1126 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1127 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1128 | --sharedst | --shareds | --shared | --share | --shar \
1129 | --sha | --sh)
1130 ac_prev=sharedstatedir ;;
1131 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1132 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1133 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1134 | --sha=* | --sh=*)
1135 sharedstatedir=$ac_optarg ;;
1136
1137 -site | --site | --sit)
1138 ac_prev=site ;;
1139 -site=* | --site=* | --sit=*)
1140 site=$ac_optarg ;;
1141
1142 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1143 ac_prev=srcdir ;;
1144 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1145 srcdir=$ac_optarg ;;
1146
1147 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1148 | --syscon | --sysco | --sysc | --sys | --sy)
1149 ac_prev=sysconfdir ;;
1150 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1151 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1152 sysconfdir=$ac_optarg ;;
1153
1154 -target | --target | --targe | --targ | --tar | --ta | --t)
1155 ac_prev=target_alias ;;
1156 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1157 target_alias=$ac_optarg ;;
1158
1159 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1160 verbose=yes ;;
1161
1162 -version | --version | --versio | --versi | --vers | -V)
1163 ac_init_version=: ;;
1164
1165 -with-* | --with-*)
1166 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1167 # Reject names that are not valid shell variable names.
1168 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1169 as_fn_error $? "invalid package name: $ac_useropt"
1170 ac_useropt_orig=$ac_useropt
1171 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1172 case $ac_user_opts in
1173 *"
1174 "with_$ac_useropt"
1175 "*) ;;
1176 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1177 ac_unrecognized_sep=', ';;
1178 esac
1179 eval with_$ac_useropt=\$ac_optarg ;;
1180
1181 -without-* | --without-*)
1182 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1183 # Reject names that are not valid shell variable names.
1184 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1185 as_fn_error $? "invalid package name: $ac_useropt"
1186 ac_useropt_orig=$ac_useropt
1187 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1188 case $ac_user_opts in
1189 *"
1190 "with_$ac_useropt"
1191 "*) ;;
1192 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1193 ac_unrecognized_sep=', ';;
1194 esac
1195 eval with_$ac_useropt=no ;;
1196
1197 --x)
1198 # Obsolete; use --with-x.
1199 with_x=yes ;;
1200
1201 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1202 | --x-incl | --x-inc | --x-in | --x-i)
1203 ac_prev=x_includes ;;
1204 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1205 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1206 x_includes=$ac_optarg ;;
1207
1208 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1209 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1210 ac_prev=x_libraries ;;
1211 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1212 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1213 x_libraries=$ac_optarg ;;
1214
1215 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1216 Try \`$0 --help' for more information"
1217 ;;
1218
1219 *=*)
1220 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1221 # Reject names that are not valid shell variable names.
1222 case $ac_envvar in #(
1223 '' | [0-9]* | *[!_$as_cr_alnum]* )
1224 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1225 esac
1226 eval $ac_envvar=\$ac_optarg
1227 export $ac_envvar ;;
1228
1229 *)
1230 # FIXME: should be removed in autoconf 3.0.
1231 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1232 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1233 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1234 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1235 ;;
1236
1237 esac
1238 done
1239
1240 if test -n "$ac_prev"; then
1241 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1242 as_fn_error $? "missing argument to $ac_option"
1243 fi
1244
1245 if test -n "$ac_unrecognized_opts"; then
1246 case $enable_option_checking in
1247 no) ;;
1248 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1249 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1250 esac
1251 fi
1252
1253 # Check all directory arguments for consistency.
1254 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1255 datadir sysconfdir sharedstatedir localstatedir includedir \
1256 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1257 libdir localedir mandir
1258 do
1259 eval ac_val=\$$ac_var
1260 # Remove trailing slashes.
1261 case $ac_val in
1262 */ )
1263 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1264 eval $ac_var=\$ac_val;;
1265 esac
1266 # Be sure to have absolute directory names.
1267 case $ac_val in
1268 [\\/$]* | ?:[\\/]* ) continue;;
1269 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1270 esac
1271 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1272 done
1273
1274 # There might be people who depend on the old broken behavior: `$host'
1275 # used to hold the argument of --host etc.
1276 # FIXME: To remove some day.
1277 build=$build_alias
1278 host=$host_alias
1279 target=$target_alias
1280
1281 # FIXME: To remove some day.
1282 if test "x$host_alias" != x; then
1283 if test "x$build_alias" = x; then
1284 cross_compiling=maybe
1285 elif test "x$build_alias" != "x$host_alias"; then
1286 cross_compiling=yes
1287 fi
1288 fi
1289
1290 ac_tool_prefix=
1291 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1292
1293 test "$silent" = yes && exec 6>/dev/null
1294
1295
1296 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1297 ac_ls_di=`ls -di .` &&
1298 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1299 as_fn_error $? "working directory cannot be determined"
1300 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1301 as_fn_error $? "pwd does not report name of working directory"
1302
1303
1304 # Find the source files, if location was not specified.
1305 if test -z "$srcdir"; then
1306 ac_srcdir_defaulted=yes
1307 # Try the directory containing this script, then the parent directory.
1308 ac_confdir=`$as_dirname -- "$as_myself" ||
1309 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1310 X"$as_myself" : 'X\(//\)[^/]' \| \
1311 X"$as_myself" : 'X\(//\)$' \| \
1312 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1313 $as_echo X"$as_myself" |
1314 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1315 s//\1/
1316 q
1317 }
1318 /^X\(\/\/\)[^/].*/{
1319 s//\1/
1320 q
1321 }
1322 /^X\(\/\/\)$/{
1323 s//\1/
1324 q
1325 }
1326 /^X\(\/\).*/{
1327 s//\1/
1328 q
1329 }
1330 s/.*/./; q'`
1331 srcdir=$ac_confdir
1332 if test ! -r "$srcdir/$ac_unique_file"; then
1333 srcdir=..
1334 fi
1335 else
1336 ac_srcdir_defaulted=no
1337 fi
1338 if test ! -r "$srcdir/$ac_unique_file"; then
1339 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1340 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1341 fi
1342 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1343 ac_abs_confdir=`(
1344 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1345 pwd)`
1346 # When building in place, set srcdir=.
1347 if test "$ac_abs_confdir" = "$ac_pwd"; then
1348 srcdir=.
1349 fi
1350 # Remove unnecessary trailing slashes from srcdir.
1351 # Double slashes in file names in object file debugging info
1352 # mess up M-x gdb in Emacs.
1353 case $srcdir in
1354 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1355 esac
1356 for ac_var in $ac_precious_vars; do
1357 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1358 eval ac_env_${ac_var}_value=\$${ac_var}
1359 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1360 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1361 done
1362
1363 #
1364 # Report the --help message.
1365 #
1366 if test "$ac_init_help" = "long"; then
1367 # Omit some internal or obsolete options to make the list less imposing.
1368 # This message is too long to be a string in the A/UX 3.1 sh.
1369 cat <<_ACEOF
1370 \`configure' configures xf86-video-s3virge 1.10.7 to adapt to many kinds of systems.
1371
1372 Usage: $0 [OPTION]... [VAR=VALUE]...
1373
1374 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1375 VAR=VALUE. See below for descriptions of some of the useful variables.
1376
1377 Defaults for the options are specified in brackets.
1378
1379 Configuration:
1380 -h, --help display this help and exit
1381 --help=short display options specific to this package
1382 --help=recursive display the short help of all the included packages
1383 -V, --version display version information and exit
1384 -q, --quiet, --silent do not print \`checking ...' messages
1385 --cache-file=FILE cache test results in FILE [disabled]
1386 -C, --config-cache alias for \`--cache-file=config.cache'
1387 -n, --no-create do not create output files
1388 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1389
1390 Installation directories:
1391 --prefix=PREFIX install architecture-independent files in PREFIX
1392 [$ac_default_prefix]
1393 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1394 [PREFIX]
1395
1396 By default, \`make install' will install all the files in
1397 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1398 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1399 for instance \`--prefix=\$HOME'.
1400
1401 For better control, use the options below.
1402
1403 Fine tuning of the installation directories:
1404 --bindir=DIR user executables [EPREFIX/bin]
1405 --sbindir=DIR system admin executables [EPREFIX/sbin]
1406 --libexecdir=DIR program executables [EPREFIX/libexec]
1407 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1408 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1409 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1410 --libdir=DIR object code libraries [EPREFIX/lib]
1411 --includedir=DIR C header files [PREFIX/include]
1412 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1413 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1414 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1415 --infodir=DIR info documentation [DATAROOTDIR/info]
1416 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1417 --mandir=DIR man documentation [DATAROOTDIR/man]
1418 --docdir=DIR documentation root
1419 [DATAROOTDIR/doc/xf86-video-s3virge]
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=PREFIX prepend PREFIX 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-s3virge 1.10.7:";;
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 --enable-silent-rules less verbose build output (undo: "make V=1")
1450 --disable-silent-rules verbose build output (undo: "make V=0")
1451 --enable-maintainer-mode
1452 enable make rules and dependencies not useful (and
1453 sometimes confusing) to the casual installer
1454 --enable-dependency-tracking
1455 do not reject slow dependency extractors
1456 --disable-dependency-tracking
1457 speeds up one-time build
1458 --disable-selective-werror
1459 Turn off selective compiler errors. (default:
1460 enabled)
1461 --enable-strict-compilation
1462 Enable all warnings from compiler and make them
1463 errors (default: disabled)
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 --enable-xaa Enable legacy X Acceleration Architecture (XAA)
1470 [default=auto]
1471
1472 Optional Packages:
1473 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1474 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1475 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1476 both]
1477 --with-aix-soname=aix|svr4|both
1478 shared library versioning (aka "SONAME") variant to
1479 provide on AIX, [default=aix].
1480 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1481 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1482 compiler's sysroot if not specified).
1483 --with-xorg-module-dir=DIR
1484 Default xorg module directory
1485 [[default=$libdir/xorg/modules]]
1486
1487 Some influential environment variables:
1488 CC C compiler command
1489 CFLAGS C compiler flags
1490 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1491 nonstandard directory <lib dir>
1492 LIBS libraries to pass to the linker, e.g. -l<library>
1493 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1494 you have headers in a nonstandard directory <include dir>
1495 CPP C preprocessor
1496 PKG_CONFIG path to pkg-config utility
1497 PKG_CONFIG_PATH
1498 directories to add to pkg-config's search path
1499 PKG_CONFIG_LIBDIR
1500 path overriding pkg-config's built-in search path
1501 LT_SYS_LIBRARY_PATH
1502 User-defined run-time library search path.
1503 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1504 XORG_LIBS linker flags for XORG, overriding pkg-config
1505 XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1506 XEXT_LIBS linker flags for XEXT, overriding pkg-config
1507 PCIACCESS_CFLAGS
1508 C compiler flags for PCIACCESS, overriding pkg-config
1509 PCIACCESS_LIBS
1510 linker flags for PCIACCESS, overriding pkg-config
1511
1512 Use these variables to override the choices made by `configure' or to help
1513 it to find libraries and programs with nonstandard names/locations.
1514
1515 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1516 _ACEOF
1517 ac_status=$?
1518 fi
1519
1520 if test "$ac_init_help" = "recursive"; then
1521 # If there are subdirs, report their specific --help.
1522 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1523 test -d "$ac_dir" ||
1524 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1525 continue
1526 ac_builddir=.
1527
1528 case "$ac_dir" in
1529 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1530 *)
1531 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1532 # A ".." for each directory in $ac_dir_suffix.
1533 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1534 case $ac_top_builddir_sub in
1535 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1536 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1537 esac ;;
1538 esac
1539 ac_abs_top_builddir=$ac_pwd
1540 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1541 # for backward compatibility:
1542 ac_top_builddir=$ac_top_build_prefix
1543
1544 case $srcdir in
1545 .) # We are building in place.
1546 ac_srcdir=.
1547 ac_top_srcdir=$ac_top_builddir_sub
1548 ac_abs_top_srcdir=$ac_pwd ;;
1549 [\\/]* | ?:[\\/]* ) # Absolute name.
1550 ac_srcdir=$srcdir$ac_dir_suffix;
1551 ac_top_srcdir=$srcdir
1552 ac_abs_top_srcdir=$srcdir ;;
1553 *) # Relative name.
1554 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1555 ac_top_srcdir=$ac_top_build_prefix$srcdir
1556 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1557 esac
1558 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1559
1560 cd "$ac_dir" || { ac_status=$?; continue; }
1561 # Check for guested configure.
1562 if test -f "$ac_srcdir/configure.gnu"; then
1563 echo &&
1564 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1565 elif test -f "$ac_srcdir/configure"; then
1566 echo &&
1567 $SHELL "$ac_srcdir/configure" --help=recursive
1568 else
1569 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1570 fi || ac_status=$?
1571 cd "$ac_pwd" || { ac_status=$?; break; }
1572 done
1573 fi
1574
1575 test -n "$ac_init_help" && exit $ac_status
1576 if $ac_init_version; then
1577 cat <<\_ACEOF
1578 xf86-video-s3virge configure 1.10.7
1579 generated by GNU Autoconf 2.69
1580
1581 Copyright (C) 2012 Free Software Foundation, Inc.
1582 This configure script is free software; the Free Software Foundation
1583 gives unlimited permission to copy, distribute and modify it.
1584 _ACEOF
1585 exit
1586 fi
1587
1588 ## ------------------------ ##
1589 ## Autoconf initialization. ##
1590 ## ------------------------ ##
1591
1592 # ac_fn_c_try_compile LINENO
1593 # --------------------------
1594 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1595 ac_fn_c_try_compile ()
1596 {
1597 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1598 rm -f conftest.$ac_objext
1599 if { { ac_try="$ac_compile"
1600 case "(($ac_try" in
1601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1602 *) ac_try_echo=$ac_try;;
1603 esac
1604 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1605 $as_echo "$ac_try_echo"; } >&5
1606 (eval "$ac_compile") 2>conftest.err
1607 ac_status=$?
1608 if test -s conftest.err; then
1609 grep -v '^ *+' conftest.err >conftest.er1
1610 cat conftest.er1 >&5
1611 mv -f conftest.er1 conftest.err
1612 fi
1613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1614 test $ac_status = 0; } && {
1615 test -z "$ac_c_werror_flag" ||
1616 test ! -s conftest.err
1617 } && test -s conftest.$ac_objext; then :
1618 ac_retval=0
1619 else
1620 $as_echo "$as_me: failed program was:" >&5
1621 sed 's/^/| /' conftest.$ac_ext >&5
1622
1623 ac_retval=1
1624 fi
1625 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1626 as_fn_set_status $ac_retval
1627
1628 } # ac_fn_c_try_compile
1629
1630 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1631 # ---------------------------------------------
1632 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1633 # accordingly.
1634 ac_fn_c_check_decl ()
1635 {
1636 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1637 as_decl_name=`echo $2|sed 's/ *(.*//'`
1638 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1640 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1641 if eval \${$3+:} false; then :
1642 $as_echo_n "(cached) " >&6
1643 else
1644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1645 /* end confdefs.h. */
1646 $4
1647 int
1648 main ()
1649 {
1650 #ifndef $as_decl_name
1651 #ifdef __cplusplus
1652 (void) $as_decl_use;
1653 #else
1654 (void) $as_decl_name;
1655 #endif
1656 #endif
1657
1658 ;
1659 return 0;
1660 }
1661 _ACEOF
1662 if ac_fn_c_try_compile "$LINENO"; then :
1663 eval "$3=yes"
1664 else
1665 eval "$3=no"
1666 fi
1667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1668 fi
1669 eval ac_res=\$$3
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1671 $as_echo "$ac_res" >&6; }
1672 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1673
1674 } # ac_fn_c_check_decl
1675
1676 # ac_fn_c_try_cpp LINENO
1677 # ----------------------
1678 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1679 ac_fn_c_try_cpp ()
1680 {
1681 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1682 if { { ac_try="$ac_cpp conftest.$ac_ext"
1683 case "(($ac_try" in
1684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1685 *) ac_try_echo=$ac_try;;
1686 esac
1687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1688 $as_echo "$ac_try_echo"; } >&5
1689 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1690 ac_status=$?
1691 if test -s conftest.err; then
1692 grep -v '^ *+' conftest.err >conftest.er1
1693 cat conftest.er1 >&5
1694 mv -f conftest.er1 conftest.err
1695 fi
1696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1697 test $ac_status = 0; } > conftest.i && {
1698 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1699 test ! -s conftest.err
1700 }; then :
1701 ac_retval=0
1702 else
1703 $as_echo "$as_me: failed program was:" >&5
1704 sed 's/^/| /' conftest.$ac_ext >&5
1705
1706 ac_retval=1
1707 fi
1708 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1709 as_fn_set_status $ac_retval
1710
1711 } # ac_fn_c_try_cpp
1712
1713 # ac_fn_c_try_run LINENO
1714 # ----------------------
1715 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1716 # that executables *can* be run.
1717 ac_fn_c_try_run ()
1718 {
1719 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1720 if { { ac_try="$ac_link"
1721 case "(($ac_try" in
1722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1723 *) ac_try_echo=$ac_try;;
1724 esac
1725 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1726 $as_echo "$ac_try_echo"; } >&5
1727 (eval "$ac_link") 2>&5
1728 ac_status=$?
1729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1730 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1731 { { case "(($ac_try" in
1732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1733 *) ac_try_echo=$ac_try;;
1734 esac
1735 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1736 $as_echo "$ac_try_echo"; } >&5
1737 (eval "$ac_try") 2>&5
1738 ac_status=$?
1739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1740 test $ac_status = 0; }; }; then :
1741 ac_retval=0
1742 else
1743 $as_echo "$as_me: program exited with status $ac_status" >&5
1744 $as_echo "$as_me: failed program was:" >&5
1745 sed 's/^/| /' conftest.$ac_ext >&5
1746
1747 ac_retval=$ac_status
1748 fi
1749 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1750 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1751 as_fn_set_status $ac_retval
1752
1753 } # ac_fn_c_try_run
1754
1755 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1756 # -------------------------------------------------------
1757 # Tests whether HEADER exists and can be compiled using the include files in
1758 # INCLUDES, setting the cache variable VAR accordingly.
1759 ac_fn_c_check_header_compile ()
1760 {
1761 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1763 $as_echo_n "checking for $2... " >&6; }
1764 if eval \${$3+:} false; then :
1765 $as_echo_n "(cached) " >&6
1766 else
1767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1768 /* end confdefs.h. */
1769 $4
1770 #include <$2>
1771 _ACEOF
1772 if ac_fn_c_try_compile "$LINENO"; then :
1773 eval "$3=yes"
1774 else
1775 eval "$3=no"
1776 fi
1777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1778 fi
1779 eval ac_res=\$$3
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1781 $as_echo "$ac_res" >&6; }
1782 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1783
1784 } # ac_fn_c_check_header_compile
1785
1786 # ac_fn_c_try_link LINENO
1787 # -----------------------
1788 # Try to link conftest.$ac_ext, and return whether this succeeded.
1789 ac_fn_c_try_link ()
1790 {
1791 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1792 rm -f conftest.$ac_objext conftest$ac_exeext
1793 if { { ac_try="$ac_link"
1794 case "(($ac_try" in
1795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1796 *) ac_try_echo=$ac_try;;
1797 esac
1798 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1799 $as_echo "$ac_try_echo"; } >&5
1800 (eval "$ac_link") 2>conftest.err
1801 ac_status=$?
1802 if test -s conftest.err; then
1803 grep -v '^ *+' conftest.err >conftest.er1
1804 cat conftest.er1 >&5
1805 mv -f conftest.er1 conftest.err
1806 fi
1807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1808 test $ac_status = 0; } && {
1809 test -z "$ac_c_werror_flag" ||
1810 test ! -s conftest.err
1811 } && test -s conftest$ac_exeext && {
1812 test "$cross_compiling" = yes ||
1813 test -x conftest$ac_exeext
1814 }; then :
1815 ac_retval=0
1816 else
1817 $as_echo "$as_me: failed program was:" >&5
1818 sed 's/^/| /' conftest.$ac_ext >&5
1819
1820 ac_retval=1
1821 fi
1822 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1823 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1824 # interfere with the next link command; also delete a directory that is
1825 # left behind by Apple's compiler. We do this before executing the actions.
1826 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1827 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1828 as_fn_set_status $ac_retval
1829
1830 } # ac_fn_c_try_link
1831
1832 # ac_fn_c_check_func LINENO FUNC VAR
1833 # ----------------------------------
1834 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1835 ac_fn_c_check_func ()
1836 {
1837 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1839 $as_echo_n "checking for $2... " >&6; }
1840 if eval \${$3+:} false; then :
1841 $as_echo_n "(cached) " >&6
1842 else
1843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1844 /* end confdefs.h. */
1845 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1846 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1847 #define $2 innocuous_$2
1848
1849 /* System header to define __stub macros and hopefully few prototypes,
1850 which can conflict with char $2 (); below.
1851 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1852 <limits.h> exists even on freestanding compilers. */
1853
1854 #ifdef __STDC__
1855 # include <limits.h>
1856 #else
1857 # include <assert.h>
1858 #endif
1859
1860 #undef $2
1861
1862 /* Override any GCC internal prototype to avoid an error.
1863 Use char because int might match the return type of a GCC
1864 builtin and then its argument prototype would still apply. */
1865 #ifdef __cplusplus
1866 extern "C"
1867 #endif
1868 char $2 ();
1869 /* The GNU C library defines this for functions which it implements
1870 to always fail with ENOSYS. Some functions are actually named
1871 something starting with __ and the normal name is an alias. */
1872 #if defined __stub_$2 || defined __stub___$2
1873 choke me
1874 #endif
1875
1876 int
1877 main ()
1878 {
1879 return $2 ();
1880 ;
1881 return 0;
1882 }
1883 _ACEOF
1884 if ac_fn_c_try_link "$LINENO"; then :
1885 eval "$3=yes"
1886 else
1887 eval "$3=no"
1888 fi
1889 rm -f core conftest.err conftest.$ac_objext \
1890 conftest$ac_exeext conftest.$ac_ext
1891 fi
1892 eval ac_res=\$$3
1893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1894 $as_echo "$ac_res" >&6; }
1895 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1896
1897 } # ac_fn_c_check_func
1898
1899 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1900 # -------------------------------------------------------
1901 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1902 # the include files in INCLUDES and setting the cache variable VAR
1903 # accordingly.
1904 ac_fn_c_check_header_mongrel ()
1905 {
1906 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1907 if eval \${$3+:} false; then :
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1909 $as_echo_n "checking for $2... " >&6; }
1910 if eval \${$3+:} false; then :
1911 $as_echo_n "(cached) " >&6
1912 fi
1913 eval ac_res=\$$3
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1915 $as_echo "$ac_res" >&6; }
1916 else
1917 # Is the header compilable?
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1919 $as_echo_n "checking $2 usability... " >&6; }
1920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1921 /* end confdefs.h. */
1922 $4
1923 #include <$2>
1924 _ACEOF
1925 if ac_fn_c_try_compile "$LINENO"; then :
1926 ac_header_compiler=yes
1927 else
1928 ac_header_compiler=no
1929 fi
1930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1932 $as_echo "$ac_header_compiler" >&6; }
1933
1934 # Is the header present?
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1936 $as_echo_n "checking $2 presence... " >&6; }
1937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1938 /* end confdefs.h. */
1939 #include <$2>
1940 _ACEOF
1941 if ac_fn_c_try_cpp "$LINENO"; then :
1942 ac_header_preproc=yes
1943 else
1944 ac_header_preproc=no
1945 fi
1946 rm -f conftest.err conftest.i conftest.$ac_ext
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1948 $as_echo "$ac_header_preproc" >&6; }
1949
1950 # So? What about this header?
1951 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1952 yes:no: )
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1954 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1956 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1957 ;;
1958 no:yes:* )
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1960 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1962 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1964 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1966 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1968 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1969 ( $as_echo "## ---------------------------------------------------------------------- ##
1970 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
1971 ## ---------------------------------------------------------------------- ##"
1972 ) | sed "s/^/$as_me: WARNING: /" >&2
1973 ;;
1974 esac
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1976 $as_echo_n "checking for $2... " >&6; }
1977 if eval \${$3+:} false; then :
1978 $as_echo_n "(cached) " >&6
1979 else
1980 eval "$3=\$ac_header_compiler"
1981 fi
1982 eval ac_res=\$$3
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1984 $as_echo "$ac_res" >&6; }
1985 fi
1986 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1987
1988 } # ac_fn_c_check_header_mongrel
1989 cat >config.log <<_ACEOF
1990 This file contains any messages produced by compilers while
1991 running configure, to aid debugging if configure makes a mistake.
1992
1993 It was created by xf86-video-s3virge $as_me 1.10.7, which was
1994 generated by GNU Autoconf 2.69. Invocation command line was
1995
1996 $ $0 $@
1997
1998 _ACEOF
1999 exec 5>>config.log
2000 {
2001 cat <<_ASUNAME
2002 ## --------- ##
2003 ## Platform. ##
2004 ## --------- ##
2005
2006 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2007 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2008 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2009 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2010 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2011
2012 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2013 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2014
2015 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2016 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2017 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2018 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2019 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2020 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2021 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2022
2023 _ASUNAME
2024
2025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2026 for as_dir in $PATH
2027 do
2028 IFS=$as_save_IFS
2029 test -z "$as_dir" && as_dir=.
2030 $as_echo "PATH: $as_dir"
2031 done
2032 IFS=$as_save_IFS
2033
2034 } >&5
2035
2036 cat >&5 <<_ACEOF
2037
2038
2039 ## ----------- ##
2040 ## Core tests. ##
2041 ## ----------- ##
2042
2043 _ACEOF
2044
2045
2046 # Keep a trace of the command line.
2047 # Strip out --no-create and --no-recursion so they do not pile up.
2048 # Strip out --silent because we don't want to record it for future runs.
2049 # Also quote any args containing shell meta-characters.
2050 # Make two passes to allow for proper duplicate-argument suppression.
2051 ac_configure_args=
2052 ac_configure_args0=
2053 ac_configure_args1=
2054 ac_must_keep_next=false
2055 for ac_pass in 1 2
2056 do
2057 for ac_arg
2058 do
2059 case $ac_arg in
2060 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2061 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2062 | -silent | --silent | --silen | --sile | --sil)
2063 continue ;;
2064 *\'*)
2065 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2066 esac
2067 case $ac_pass in
2068 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2069 2)
2070 as_fn_append ac_configure_args1 " '$ac_arg'"
2071 if test $ac_must_keep_next = true; then
2072 ac_must_keep_next=false # Got value, back to normal.
2073 else
2074 case $ac_arg in
2075 *=* | --config-cache | -C | -disable-* | --disable-* \
2076 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2077 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2078 | -with-* | --with-* | -without-* | --without-* | --x)
2079 case "$ac_configure_args0 " in
2080 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2081 esac
2082 ;;
2083 -* ) ac_must_keep_next=true ;;
2084 esac
2085 fi
2086 as_fn_append ac_configure_args " '$ac_arg'"
2087 ;;
2088 esac
2089 done
2090 done
2091 { ac_configure_args0=; unset ac_configure_args0;}
2092 { ac_configure_args1=; unset ac_configure_args1;}
2093
2094 # When interrupted or exit'd, cleanup temporary files, and complete
2095 # config.log. We remove comments because anyway the quotes in there
2096 # would cause problems or look ugly.
2097 # WARNING: Use '\'' to represent an apostrophe within the trap.
2098 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2099 trap 'exit_status=$?
2100 # Save into config.log some information that might help in debugging.
2101 {
2102 echo
2103
2104 $as_echo "## ---------------- ##
2105 ## Cache variables. ##
2106 ## ---------------- ##"
2107 echo
2108 # The following way of writing the cache mishandles newlines in values,
2109 (
2110 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2111 eval ac_val=\$$ac_var
2112 case $ac_val in #(
2113 *${as_nl}*)
2114 case $ac_var in #(
2115 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2116 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2117 esac
2118 case $ac_var in #(
2119 _ | IFS | as_nl) ;; #(
2120 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2121 *) { eval $ac_var=; unset $ac_var;} ;;
2122 esac ;;
2123 esac
2124 done
2125 (set) 2>&1 |
2126 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2127 *${as_nl}ac_space=\ *)
2128 sed -n \
2129 "s/'\''/'\''\\\\'\'''\''/g;
2130 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2131 ;; #(
2132 *)
2133 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2134 ;;
2135 esac |
2136 sort
2137 )
2138 echo
2139
2140 $as_echo "## ----------------- ##
2141 ## Output variables. ##
2142 ## ----------------- ##"
2143 echo
2144 for ac_var in $ac_subst_vars
2145 do
2146 eval ac_val=\$$ac_var
2147 case $ac_val in
2148 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2149 esac
2150 $as_echo "$ac_var='\''$ac_val'\''"
2151 done | sort
2152 echo
2153
2154 if test -n "$ac_subst_files"; then
2155 $as_echo "## ------------------- ##
2156 ## File substitutions. ##
2157 ## ------------------- ##"
2158 echo
2159 for ac_var in $ac_subst_files
2160 do
2161 eval ac_val=\$$ac_var
2162 case $ac_val in
2163 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2164 esac
2165 $as_echo "$ac_var='\''$ac_val'\''"
2166 done | sort
2167 echo
2168 fi
2169
2170 if test -s confdefs.h; then
2171 $as_echo "## ----------- ##
2172 ## confdefs.h. ##
2173 ## ----------- ##"
2174 echo
2175 cat confdefs.h
2176 echo
2177 fi
2178 test "$ac_signal" != 0 &&
2179 $as_echo "$as_me: caught signal $ac_signal"
2180 $as_echo "$as_me: exit $exit_status"
2181 } >&5
2182 rm -f core *.core core.conftest.* &&
2183 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2184 exit $exit_status
2185 ' 0
2186 for ac_signal in 1 2 13 15; do
2187 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2188 done
2189 ac_signal=0
2190
2191 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2192 rm -f -r conftest* confdefs.h
2193
2194 $as_echo "/* confdefs.h */" > confdefs.h
2195
2196 # Predefined preprocessor variables.
2197
2198 cat >>confdefs.h <<_ACEOF
2199 #define PACKAGE_NAME "$PACKAGE_NAME"
2200 _ACEOF
2201
2202 cat >>confdefs.h <<_ACEOF
2203 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2204 _ACEOF
2205
2206 cat >>confdefs.h <<_ACEOF
2207 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2208 _ACEOF
2209
2210 cat >>confdefs.h <<_ACEOF
2211 #define PACKAGE_STRING "$PACKAGE_STRING"
2212 _ACEOF
2213
2214 cat >>confdefs.h <<_ACEOF
2215 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2216 _ACEOF
2217
2218 cat >>confdefs.h <<_ACEOF
2219 #define PACKAGE_URL "$PACKAGE_URL"
2220 _ACEOF
2221
2222
2223 # Let the site file select an alternate cache file if it wants to.
2224 # Prefer an explicitly selected file to automatically selected ones.
2225 ac_site_file1=NONE
2226 ac_site_file2=NONE
2227 if test -n "$CONFIG_SITE"; then
2228 # We do not want a PATH search for config.site.
2229 case $CONFIG_SITE in #((
2230 -*) ac_site_file1=./$CONFIG_SITE;;
2231 */*) ac_site_file1=$CONFIG_SITE;;
2232 *) ac_site_file1=./$CONFIG_SITE;;
2233 esac
2234 elif test "x$prefix" != xNONE; then
2235 ac_site_file1=$prefix/share/config.site
2236 ac_site_file2=$prefix/etc/config.site
2237 else
2238 ac_site_file1=$ac_default_prefix/share/config.site
2239 ac_site_file2=$ac_default_prefix/etc/config.site
2240 fi
2241 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2242 do
2243 test "x$ac_site_file" = xNONE && continue
2244 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2246 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2247 sed 's/^/| /' "$ac_site_file" >&5
2248 . "$ac_site_file" \
2249 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2250 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2251 as_fn_error $? "failed to load site script $ac_site_file
2252 See \`config.log' for more details" "$LINENO" 5; }
2253 fi
2254 done
2255
2256 if test -r "$cache_file"; then
2257 # Some versions of bash will fail to source /dev/null (special files
2258 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2259 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2261 $as_echo "$as_me: loading cache $cache_file" >&6;}
2262 case $cache_file in
2263 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2264 *) . "./$cache_file";;
2265 esac
2266 fi
2267 else
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2269 $as_echo "$as_me: creating cache $cache_file" >&6;}
2270 >$cache_file
2271 fi
2272
2273 # Check that the precious variables saved in the cache have kept the same
2274 # value.
2275 ac_cache_corrupted=false
2276 for ac_var in $ac_precious_vars; do
2277 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2278 eval ac_new_set=\$ac_env_${ac_var}_set
2279 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2280 eval ac_new_val=\$ac_env_${ac_var}_value
2281 case $ac_old_set,$ac_new_set in
2282 set,)
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2284 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2285 ac_cache_corrupted=: ;;
2286 ,set)
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2288 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2289 ac_cache_corrupted=: ;;
2290 ,);;
2291 *)
2292 if test "x$ac_old_val" != "x$ac_new_val"; then
2293 # differences in whitespace do not lead to failure.
2294 ac_old_val_w=`echo x $ac_old_val`
2295 ac_new_val_w=`echo x $ac_new_val`
2296 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2298 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2299 ac_cache_corrupted=:
2300 else
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2302 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2303 eval $ac_var=\$ac_old_val
2304 fi
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2306 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2308 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2309 fi;;
2310 esac
2311 # Pass precious variables to config.status.
2312 if test "$ac_new_set" = set; then
2313 case $ac_new_val in
2314 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2315 *) ac_arg=$ac_var=$ac_new_val ;;
2316 esac
2317 case " $ac_configure_args " in
2318 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2319 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2320 esac
2321 fi
2322 done
2323 if $ac_cache_corrupted; then
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2325 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2327 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2328 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2329 fi
2330 ## -------------------- ##
2331 ## Main body of script. ##
2332 ## -------------------- ##
2333
2334 ac_ext=c
2335 ac_cpp='$CPP $CPPFLAGS'
2336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2339
2340
2341
2342 ac_config_headers="$ac_config_headers config.h"
2343
2344 ac_aux_dir=
2345 for ac_dir in . "$srcdir"/.; do
2346 if test -f "$ac_dir/install-sh"; then
2347 ac_aux_dir=$ac_dir
2348 ac_install_sh="$ac_aux_dir/install-sh -c"
2349 break
2350 elif test -f "$ac_dir/install.sh"; then
2351 ac_aux_dir=$ac_dir
2352 ac_install_sh="$ac_aux_dir/install.sh -c"
2353 break
2354 elif test -f "$ac_dir/shtool"; then
2355 ac_aux_dir=$ac_dir
2356 ac_install_sh="$ac_aux_dir/shtool install -c"
2357 break
2358 fi
2359 done
2360 if test -z "$ac_aux_dir"; then
2361 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2362 fi
2363
2364 # These three variables are undocumented and unsupported,
2365 # and are intended to be withdrawn in a future Autoconf release.
2366 # They can cause serious problems if a builder's source tree is in a directory
2367 # whose full name contains unusual characters.
2368 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2369 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2370 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2371
2372
2373
2374 # Initialize Automake
2375 am__api_version='1.15'
2376
2377 # Find a good install program. We prefer a C program (faster),
2378 # so one script is as good as another. But avoid the broken or
2379 # incompatible versions:
2380 # SysV /etc/install, /usr/sbin/install
2381 # SunOS /usr/etc/install
2382 # IRIX /sbin/install
2383 # AIX /bin/install
2384 # AmigaOS /C/install, which installs bootblocks on floppy discs
2385 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2386 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2387 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2388 # OS/2's system install, which has a completely different semantic
2389 # ./install, which can be erroneously created by make from ./install.sh.
2390 # Reject install programs that cannot install multiple files.
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2392 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2393 if test -z "$INSTALL"; then
2394 if ${ac_cv_path_install+:} false; then :
2395 $as_echo_n "(cached) " >&6
2396 else
2397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2398 for as_dir in $PATH
2399 do
2400 IFS=$as_save_IFS
2401 test -z "$as_dir" && as_dir=.
2402 # Account for people who put trailing slashes in PATH elements.
2403 case $as_dir/ in #((
2404 ./ | .// | /[cC]/* | \
2405 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2406 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2407 /usr/ucb/* ) ;;
2408 *)
2409 # OSF1 and SCO ODT 3.0 have their own names for install.
2410 # Don't use installbsd from OSF since it installs stuff as root
2411 # by default.
2412 for ac_prog in ginstall scoinst install; do
2413 for ac_exec_ext in '' $ac_executable_extensions; do
2414 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2415 if test $ac_prog = install &&
2416 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2417 # AIX install. It has an incompatible calling convention.
2418 :
2419 elif test $ac_prog = install &&
2420 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2421 # program-specific install script used by HP pwplus--don't use.
2422 :
2423 else
2424 rm -rf conftest.one conftest.two conftest.dir
2425 echo one > conftest.one
2426 echo two > conftest.two
2427 mkdir conftest.dir
2428 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2429 test -s conftest.one && test -s conftest.two &&
2430 test -s conftest.dir/conftest.one &&
2431 test -s conftest.dir/conftest.two
2432 then
2433 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2434 break 3
2435 fi
2436 fi
2437 fi
2438 done
2439 done
2440 ;;
2441 esac
2442
2443 done
2444 IFS=$as_save_IFS
2445
2446 rm -rf conftest.one conftest.two conftest.dir
2447
2448 fi
2449 if test "${ac_cv_path_install+set}" = set; then
2450 INSTALL=$ac_cv_path_install
2451 else
2452 # As a last resort, use the slow shell script. Don't cache a
2453 # value for INSTALL within a source directory, because that will
2454 # break other packages using the cache if that directory is
2455 # removed, or if the value is a relative name.
2456 INSTALL=$ac_install_sh
2457 fi
2458 fi
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2460 $as_echo "$INSTALL" >&6; }
2461
2462 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2463 # It thinks the first close brace ends the variable substitution.
2464 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2465
2466 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2467
2468 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2469
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2471 $as_echo_n "checking whether build environment is sane... " >&6; }
2472 # Reject unsafe characters in $srcdir or the absolute working directory
2473 # name. Accept space and tab only in the latter.
2474 am_lf='
2475 '
2476 case `pwd` in
2477 *[\\\"\#\$\&\'\`$am_lf]*)
2478 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2479 esac
2480 case $srcdir in
2481 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2482 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2483 esac
2484
2485 # Do 'set' in a subshell so we don't clobber the current shell's
2486 # arguments. Must try -L first in case configure is actually a
2487 # symlink; some systems play weird games with the mod time of symlinks
2488 # (eg FreeBSD returns the mod time of the symlink's containing
2489 # directory).
2490 if (
2491 am_has_slept=no
2492 for am_try in 1 2; do
2493 echo "timestamp, slept: $am_has_slept" > conftest.file
2494 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2495 if test "$*" = "X"; then
2496 # -L didn't work.
2497 set X `ls -t "$srcdir/configure" conftest.file`
2498 fi
2499 if test "$*" != "X $srcdir/configure conftest.file" \
2500 && test "$*" != "X conftest.file $srcdir/configure"; then
2501
2502 # If neither matched, then we have a broken ls. This can happen
2503 # if, for instance, CONFIG_SHELL is bash and it inherits a
2504 # broken ls alias from the environment. This has actually
2505 # happened. Such a system could not be considered "sane".
2506 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2507 alias in your environment" "$LINENO" 5
2508 fi
2509 if test "$2" = conftest.file || test $am_try -eq 2; then
2510 break
2511 fi
2512 # Just in case.
2513 sleep 1
2514 am_has_slept=yes
2515 done
2516 test "$2" = conftest.file
2517 )
2518 then
2519 # Ok.
2520 :
2521 else
2522 as_fn_error $? "newly created file is older than distributed files!
2523 Check your system clock" "$LINENO" 5
2524 fi
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2526 $as_echo "yes" >&6; }
2527 # If we didn't sleep, we still need to ensure time stamps of config.status and
2528 # generated files are strictly newer.
2529 am_sleep_pid=
2530 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2531 ( sleep 1 ) &
2532 am_sleep_pid=$!
2533 fi
2534
2535 rm -f conftest.file
2536
2537 test "$program_prefix" != NONE &&
2538 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2539 # Use a double $ so make ignores it.
2540 test "$program_suffix" != NONE &&
2541 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2542 # Double any \ or $.
2543 # By default was `s,x,x', remove it if useless.
2544 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2545 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2546
2547 # Expand $ac_aux_dir to an absolute path.
2548 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2549
2550 if test x"${MISSING+set}" != xset; then
2551 case $am_aux_dir in
2552 *\ * | *\ *)
2553 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2554 *)
2555 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2556 esac
2557 fi
2558 # Use eval to expand $SHELL
2559 if eval "$MISSING --is-lightweight"; then
2560 am_missing_run="$MISSING "
2561 else
2562 am_missing_run=
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2564 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2565 fi
2566
2567 if test x"${install_sh+set}" != xset; then
2568 case $am_aux_dir in
2569 *\ * | *\ *)
2570 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2571 *)
2572 install_sh="\${SHELL} $am_aux_dir/install-sh"
2573 esac
2574 fi
2575
2576 # Installed binaries are usually stripped using 'strip' when the user
2577 # run "make install-strip". However 'strip' might not be the right
2578 # tool to use in cross-compilation environments, therefore Automake
2579 # will honor the 'STRIP' environment variable to overrule this program.
2580 if test "$cross_compiling" != no; then
2581 if test -n "$ac_tool_prefix"; then
2582 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2583 set dummy ${ac_tool_prefix}strip; ac_word=$2
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2585 $as_echo_n "checking for $ac_word... " >&6; }
2586 if ${ac_cv_prog_STRIP+:} false; then :
2587 $as_echo_n "(cached) " >&6
2588 else
2589 if test -n "$STRIP"; then
2590 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2591 else
2592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2593 for as_dir in $PATH
2594 do
2595 IFS=$as_save_IFS
2596 test -z "$as_dir" && as_dir=.
2597 for ac_exec_ext in '' $ac_executable_extensions; do
2598 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2599 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2601 break 2
2602 fi
2603 done
2604 done
2605 IFS=$as_save_IFS
2606
2607 fi
2608 fi
2609 STRIP=$ac_cv_prog_STRIP
2610 if test -n "$STRIP"; then
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2612 $as_echo "$STRIP" >&6; }
2613 else
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2615 $as_echo "no" >&6; }
2616 fi
2617
2618
2619 fi
2620 if test -z "$ac_cv_prog_STRIP"; then
2621 ac_ct_STRIP=$STRIP
2622 # Extract the first word of "strip", so it can be a program name with args.
2623 set dummy strip; ac_word=$2
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2625 $as_echo_n "checking for $ac_word... " >&6; }
2626 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2627 $as_echo_n "(cached) " >&6
2628 else
2629 if test -n "$ac_ct_STRIP"; then
2630 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2631 else
2632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2633 for as_dir in $PATH
2634 do
2635 IFS=$as_save_IFS
2636 test -z "$as_dir" && as_dir=.
2637 for ac_exec_ext in '' $ac_executable_extensions; do
2638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2639 ac_cv_prog_ac_ct_STRIP="strip"
2640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2641 break 2
2642 fi
2643 done
2644 done
2645 IFS=$as_save_IFS
2646
2647 fi
2648 fi
2649 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2650 if test -n "$ac_ct_STRIP"; then
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2652 $as_echo "$ac_ct_STRIP" >&6; }
2653 else
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2655 $as_echo "no" >&6; }
2656 fi
2657
2658 if test "x$ac_ct_STRIP" = x; then
2659 STRIP=":"
2660 else
2661 case $cross_compiling:$ac_tool_warned in
2662 yes:)
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2664 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2665 ac_tool_warned=yes ;;
2666 esac
2667 STRIP=$ac_ct_STRIP
2668 fi
2669 else
2670 STRIP="$ac_cv_prog_STRIP"
2671 fi
2672
2673 fi
2674 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2675
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2677 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2678 if test -z "$MKDIR_P"; then
2679 if ${ac_cv_path_mkdir+:} false; then :
2680 $as_echo_n "(cached) " >&6
2681 else
2682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2683 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2684 do
2685 IFS=$as_save_IFS
2686 test -z "$as_dir" && as_dir=.
2687 for ac_prog in mkdir gmkdir; do
2688 for ac_exec_ext in '' $ac_executable_extensions; do
2689 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2690 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2691 'mkdir (GNU coreutils) '* | \
2692 'mkdir (coreutils) '* | \
2693 'mkdir (fileutils) '4.1*)
2694 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2695 break 3;;
2696 esac
2697 done
2698 done
2699 done
2700 IFS=$as_save_IFS
2701
2702 fi
2703
2704 test -d ./--version && rmdir ./--version
2705 if test "${ac_cv_path_mkdir+set}" = set; then
2706 MKDIR_P="$ac_cv_path_mkdir -p"
2707 else
2708 # As a last resort, use the slow shell script. Don't cache a
2709 # value for MKDIR_P within a source directory, because that will
2710 # break other packages using the cache if that directory is
2711 # removed, or if the value is a relative name.
2712 MKDIR_P="$ac_install_sh -d"
2713 fi
2714 fi
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2716 $as_echo "$MKDIR_P" >&6; }
2717
2718 for ac_prog in gawk mawk nawk awk
2719 do
2720 # Extract the first word of "$ac_prog", so it can be a program name with args.
2721 set dummy $ac_prog; ac_word=$2
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2723 $as_echo_n "checking for $ac_word... " >&6; }
2724 if ${ac_cv_prog_AWK+:} false; then :
2725 $as_echo_n "(cached) " >&6
2726 else
2727 if test -n "$AWK"; then
2728 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2729 else
2730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2731 for as_dir in $PATH
2732 do
2733 IFS=$as_save_IFS
2734 test -z "$as_dir" && as_dir=.
2735 for ac_exec_ext in '' $ac_executable_extensions; do
2736 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2737 ac_cv_prog_AWK="$ac_prog"
2738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2739 break 2
2740 fi
2741 done
2742 done
2743 IFS=$as_save_IFS
2744
2745 fi
2746 fi
2747 AWK=$ac_cv_prog_AWK
2748 if test -n "$AWK"; then
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2750 $as_echo "$AWK" >&6; }
2751 else
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2753 $as_echo "no" >&6; }
2754 fi
2755
2756
2757 test -n "$AWK" && break
2758 done
2759
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2761 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2762 set x ${MAKE-make}
2763 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2764 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2765 $as_echo_n "(cached) " >&6
2766 else
2767 cat >conftest.make <<\_ACEOF
2768 SHELL = /bin/sh
2769 all:
2770 @echo '@@@%%%=$(MAKE)=@@@%%%'
2771 _ACEOF
2772 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2773 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2774 *@@@%%%=?*=@@@%%%*)
2775 eval ac_cv_prog_make_${ac_make}_set=yes;;
2776 *)
2777 eval ac_cv_prog_make_${ac_make}_set=no;;
2778 esac
2779 rm -f conftest.make
2780 fi
2781 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2783 $as_echo "yes" >&6; }
2784 SET_MAKE=
2785 else
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2787 $as_echo "no" >&6; }
2788 SET_MAKE="MAKE=${MAKE-make}"
2789 fi
2790
2791 rm -rf .tst 2>/dev/null
2792 mkdir .tst 2>/dev/null
2793 if test -d .tst; then
2794 am__leading_dot=.
2795 else
2796 am__leading_dot=_
2797 fi
2798 rmdir .tst 2>/dev/null
2799
2800 # Check whether --enable-silent-rules was given.
2801 if test "${enable_silent_rules+set}" = set; then :
2802 enableval=$enable_silent_rules;
2803 fi
2804
2805 case $enable_silent_rules in # (((
2806 yes) AM_DEFAULT_VERBOSITY=0;;
2807 no) AM_DEFAULT_VERBOSITY=1;;
2808 *) AM_DEFAULT_VERBOSITY=1;;
2809 esac
2810 am_make=${MAKE-make}
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2812 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2813 if ${am_cv_make_support_nested_variables+:} false; then :
2814 $as_echo_n "(cached) " >&6
2815 else
2816 if $as_echo 'TRUE=$(BAR$(V))
2817 BAR0=false
2818 BAR1=true
2819 V=1
2820 am__doit:
2821 @$(TRUE)
2822 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2823 am_cv_make_support_nested_variables=yes
2824 else
2825 am_cv_make_support_nested_variables=no
2826 fi
2827 fi
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2829 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2830 if test $am_cv_make_support_nested_variables = yes; then
2831 AM_V='$(V)'
2832 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2833 else
2834 AM_V=$AM_DEFAULT_VERBOSITY
2835 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2836 fi
2837 AM_BACKSLASH='\'
2838
2839 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2840 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2841 # is not polluted with repeated "-I."
2842 am__isrc=' -I$(srcdir)'
2843 # test to see if srcdir already configured
2844 if test -f $srcdir/config.status; then
2845 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2846 fi
2847 fi
2848
2849 # test whether we have cygpath
2850 if test -z "$CYGPATH_W"; then
2851 if (cygpath --version) >/dev/null 2>/dev/null; then
2852 CYGPATH_W='cygpath -w'
2853 else
2854 CYGPATH_W=echo
2855 fi
2856 fi
2857
2858
2859 # Define the identity of the package.
2860 PACKAGE='xf86-video-s3virge'
2861 VERSION='1.10.7'
2862
2863
2864 cat >>confdefs.h <<_ACEOF
2865 #define PACKAGE "$PACKAGE"
2866 _ACEOF
2867
2868
2869 cat >>confdefs.h <<_ACEOF
2870 #define VERSION "$VERSION"
2871 _ACEOF
2872
2873 # Some tools Automake needs.
2874
2875 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2876
2877
2878 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2879
2880
2881 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2882
2883
2884 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2885
2886
2887 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2888
2889 # For better backward compatibility. To be removed once Automake 1.9.x
2890 # dies out for good. For more background, see:
2891 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2892 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2893 mkdir_p='$(MKDIR_P)'
2894
2895 # We need awk for the "check" target (and possibly the TAP driver). The
2896 # system "awk" is bad on some platforms.
2897 # Always define AMTAR for backward compatibility. Yes, it's still used
2898 # in the wild :-( We should find a proper way to deprecate it ...
2899 AMTAR='$${TAR-tar}'
2900
2901
2902 # We'll loop over all known methods to create a tar archive until one works.
2903 _am_tools='gnutar pax cpio none'
2904
2905 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2906
2907
2908
2909
2910
2911
2912 # POSIX will say in a future version that running "rm -f" with no argument
2913 # is OK; and we want to be able to make that assumption in our Makefile
2914 # recipes. So use an aggressive probe to check that the usage we want is
2915 # actually supported "in the wild" to an acceptable degree.
2916 # See automake bug#10828.
2917 # To make any issue more visible, cause the running configure to be aborted
2918 # by default if the 'rm' program in use doesn't match our expectations; the
2919 # user can still override this though.
2920 if rm -f && rm -fr && rm -rf; then : OK; else
2921 cat >&2 <<'END'
2922 Oops!
2923
2924 Your 'rm' program seems unable to run without file operands specified
2925 on the command line, even when the '-f' option is present. This is contrary
2926 to the behaviour of most rm programs out there, and not conforming with
2927 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2928
2929 Please tell bug-automake@gnu.org about your system, including the value
2930 of your $PATH and any error possibly output before this message. This
2931 can help us improve future automake versions.
2932
2933 END
2934 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2935 echo 'Configuration will proceed anyway, since you have set the' >&2
2936 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2937 echo >&2
2938 else
2939 cat >&2 <<'END'
2940 Aborting the configuration process, to ensure you take notice of the issue.
2941
2942 You can download and install GNU coreutils to get an 'rm' implementation
2943 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2944
2945 If you want to complete the configuration process using your problematic
2946 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2947 to "yes", and re-run configure.
2948
2949 END
2950 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2951 fi
2952 fi
2953
2954
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2956 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2957 # Check whether --enable-maintainer-mode was given.
2958 if test "${enable_maintainer_mode+set}" = set; then :
2959 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2960 else
2961 USE_MAINTAINER_MODE=no
2962 fi
2963
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2965 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2966 if test $USE_MAINTAINER_MODE = yes; then
2967 MAINTAINER_MODE_TRUE=
2968 MAINTAINER_MODE_FALSE='#'
2969 else
2970 MAINTAINER_MODE_TRUE='#'
2971 MAINTAINER_MODE_FALSE=
2972 fi
2973
2974 MAINT=$MAINTAINER_MODE_TRUE
2975
2976
2977
2978 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990 DEPDIR="${am__leading_dot}deps"
2991
2992 ac_config_commands="$ac_config_commands depfiles"
2993
2994
2995 am_make=${MAKE-make}
2996 cat > confinc << 'END'
2997 am__doit:
2998 @echo this is the am__doit target
2999 .PHONY: am__doit
3000 END
3001 # If we don't find an include directive, just comment out the code.
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3003 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3004 am__include="#"
3005 am__quote=
3006 _am_result=none
3007 # First try GNU make style include.
3008 echo "include confinc" > confmf
3009 # Ignore all kinds of additional output from 'make'.
3010 case `$am_make -s -f confmf 2> /dev/null` in #(
3011 *the\ am__doit\ target*)
3012 am__include=include
3013 am__quote=
3014 _am_result=GNU
3015 ;;
3016 esac
3017 # Now try BSD make style include.
3018 if test "$am__include" = "#"; then
3019 echo '.include "confinc"' > confmf
3020 case `$am_make -s -f confmf 2> /dev/null` in #(
3021 *the\ am__doit\ target*)
3022 am__include=.include
3023 am__quote="\""
3024 _am_result=BSD
3025 ;;
3026 esac
3027 fi
3028
3029
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3031 $as_echo "$_am_result" >&6; }
3032 rm -f confinc confmf
3033
3034 # Check whether --enable-dependency-tracking was given.
3035 if test "${enable_dependency_tracking+set}" = set; then :
3036 enableval=$enable_dependency_tracking;
3037 fi
3038
3039 if test "x$enable_dependency_tracking" != xno; then
3040 am_depcomp="$ac_aux_dir/depcomp"
3041 AMDEPBACKSLASH='\'
3042 am__nodep='_no'
3043 fi
3044 if test "x$enable_dependency_tracking" != xno; then
3045 AMDEP_TRUE=
3046 AMDEP_FALSE='#'
3047 else
3048 AMDEP_TRUE='#'
3049 AMDEP_FALSE=
3050 fi
3051
3052
3053 ac_ext=c
3054 ac_cpp='$CPP $CPPFLAGS'
3055 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3056 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3057 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3058 if test -n "$ac_tool_prefix"; then
3059 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3060 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3062 $as_echo_n "checking for $ac_word... " >&6; }
3063 if ${ac_cv_prog_CC+:} false; then :
3064 $as_echo_n "(cached) " >&6
3065 else
3066 if test -n "$CC"; then
3067 ac_cv_prog_CC="$CC" # Let the user override the test.
3068 else
3069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3070 for as_dir in $PATH
3071 do
3072 IFS=$as_save_IFS
3073 test -z "$as_dir" && as_dir=.
3074 for ac_exec_ext in '' $ac_executable_extensions; do
3075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3076 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3078 break 2
3079 fi
3080 done
3081 done
3082 IFS=$as_save_IFS
3083
3084 fi
3085 fi
3086 CC=$ac_cv_prog_CC
3087 if test -n "$CC"; then
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3089 $as_echo "$CC" >&6; }
3090 else
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3092 $as_echo "no" >&6; }
3093 fi
3094
3095
3096 fi
3097 if test -z "$ac_cv_prog_CC"; then
3098 ac_ct_CC=$CC
3099 # Extract the first word of "gcc", so it can be a program name with args.
3100 set dummy gcc; ac_word=$2
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3102 $as_echo_n "checking for $ac_word... " >&6; }
3103 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3104 $as_echo_n "(cached) " >&6
3105 else
3106 if test -n "$ac_ct_CC"; then
3107 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3108 else
3109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3110 for as_dir in $PATH
3111 do
3112 IFS=$as_save_IFS
3113 test -z "$as_dir" && as_dir=.
3114 for ac_exec_ext in '' $ac_executable_extensions; do
3115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3116 ac_cv_prog_ac_ct_CC="gcc"
3117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3118 break 2
3119 fi
3120 done
3121 done
3122 IFS=$as_save_IFS
3123
3124 fi
3125 fi
3126 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3127 if test -n "$ac_ct_CC"; then
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3129 $as_echo "$ac_ct_CC" >&6; }
3130 else
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3132 $as_echo "no" >&6; }
3133 fi
3134
3135 if test "x$ac_ct_CC" = x; then
3136 CC=""
3137 else
3138 case $cross_compiling:$ac_tool_warned in
3139 yes:)
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3141 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3142 ac_tool_warned=yes ;;
3143 esac
3144 CC=$ac_ct_CC
3145 fi
3146 else
3147 CC="$ac_cv_prog_CC"
3148 fi
3149
3150 if test -z "$CC"; then
3151 if test -n "$ac_tool_prefix"; then
3152 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3153 set dummy ${ac_tool_prefix}cc; ac_word=$2
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3155 $as_echo_n "checking for $ac_word... " >&6; }
3156 if ${ac_cv_prog_CC+:} false; then :
3157 $as_echo_n "(cached) " >&6
3158 else
3159 if test -n "$CC"; then
3160 ac_cv_prog_CC="$CC" # Let the user override the test.
3161 else
3162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3163 for as_dir in $PATH
3164 do
3165 IFS=$as_save_IFS
3166 test -z "$as_dir" && as_dir=.
3167 for ac_exec_ext in '' $ac_executable_extensions; do
3168 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3169 ac_cv_prog_CC="${ac_tool_prefix}cc"
3170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3171 break 2
3172 fi
3173 done
3174 done
3175 IFS=$as_save_IFS
3176
3177 fi
3178 fi
3179 CC=$ac_cv_prog_CC
3180 if test -n "$CC"; then
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3182 $as_echo "$CC" >&6; }
3183 else
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3185 $as_echo "no" >&6; }
3186 fi
3187
3188
3189 fi
3190 fi
3191 if test -z "$CC"; then
3192 # Extract the first word of "cc", so it can be a program name with args.
3193 set dummy cc; ac_word=$2
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3195 $as_echo_n "checking for $ac_word... " >&6; }
3196 if ${ac_cv_prog_CC+:} false; then :
3197 $as_echo_n "(cached) " >&6
3198 else
3199 if test -n "$CC"; then
3200 ac_cv_prog_CC="$CC" # Let the user override the test.
3201 else
3202 ac_prog_rejected=no
3203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3204 for as_dir in $PATH
3205 do
3206 IFS=$as_save_IFS
3207 test -z "$as_dir" && as_dir=.
3208 for ac_exec_ext in '' $ac_executable_extensions; do
3209 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3210 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3211 ac_prog_rejected=yes
3212 continue
3213 fi
3214 ac_cv_prog_CC="cc"
3215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3216 break 2
3217 fi
3218 done
3219 done
3220 IFS=$as_save_IFS
3221
3222 if test $ac_prog_rejected = yes; then
3223 # We found a bogon in the path, so make sure we never use it.
3224 set dummy $ac_cv_prog_CC
3225 shift
3226 if test $# != 0; then
3227 # We chose a different compiler from the bogus one.
3228 # However, it has the same basename, so the bogon will be chosen
3229 # first if we set CC to just the basename; use the full file name.
3230 shift
3231 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3232 fi
3233 fi
3234 fi
3235 fi
3236 CC=$ac_cv_prog_CC
3237 if test -n "$CC"; then
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3239 $as_echo "$CC" >&6; }
3240 else
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3242 $as_echo "no" >&6; }
3243 fi
3244
3245
3246 fi
3247 if test -z "$CC"; then
3248 if test -n "$ac_tool_prefix"; then
3249 for ac_prog in cl.exe
3250 do
3251 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3252 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3254 $as_echo_n "checking for $ac_word... " >&6; }
3255 if ${ac_cv_prog_CC+:} false; then :
3256 $as_echo_n "(cached) " >&6
3257 else
3258 if test -n "$CC"; then
3259 ac_cv_prog_CC="$CC" # Let the user override the test.
3260 else
3261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3262 for as_dir in $PATH
3263 do
3264 IFS=$as_save_IFS
3265 test -z "$as_dir" && as_dir=.
3266 for ac_exec_ext in '' $ac_executable_extensions; do
3267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3268 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3270 break 2
3271 fi
3272 done
3273 done
3274 IFS=$as_save_IFS
3275
3276 fi
3277 fi
3278 CC=$ac_cv_prog_CC
3279 if test -n "$CC"; then
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3281 $as_echo "$CC" >&6; }
3282 else
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3284 $as_echo "no" >&6; }
3285 fi
3286
3287
3288 test -n "$CC" && break
3289 done
3290 fi
3291 if test -z "$CC"; then
3292 ac_ct_CC=$CC
3293 for ac_prog in cl.exe
3294 do
3295 # Extract the first word of "$ac_prog", so it can be a program name with args.
3296 set dummy $ac_prog; ac_word=$2
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3298 $as_echo_n "checking for $ac_word... " >&6; }
3299 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3300 $as_echo_n "(cached) " >&6
3301 else
3302 if test -n "$ac_ct_CC"; then
3303 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3304 else
3305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3306 for as_dir in $PATH
3307 do
3308 IFS=$as_save_IFS
3309 test -z "$as_dir" && as_dir=.
3310 for ac_exec_ext in '' $ac_executable_extensions; do
3311 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3312 ac_cv_prog_ac_ct_CC="$ac_prog"
3313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3314 break 2
3315 fi
3316 done
3317 done
3318 IFS=$as_save_IFS
3319
3320 fi
3321 fi
3322 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3323 if test -n "$ac_ct_CC"; then
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3325 $as_echo "$ac_ct_CC" >&6; }
3326 else
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3328 $as_echo "no" >&6; }
3329 fi
3330
3331
3332 test -n "$ac_ct_CC" && break
3333 done
3334
3335 if test "x$ac_ct_CC" = x; then
3336 CC=""
3337 else
3338 case $cross_compiling:$ac_tool_warned in
3339 yes:)
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3341 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3342 ac_tool_warned=yes ;;
3343 esac
3344 CC=$ac_ct_CC
3345 fi
3346 fi
3347
3348 fi
3349
3350
3351 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3352 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3353 as_fn_error $? "no acceptable C compiler found in \$PATH
3354 See \`config.log' for more details" "$LINENO" 5; }
3355
3356 # Provide some information about the compiler.
3357 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3358 set X $ac_compile
3359 ac_compiler=$2
3360 for ac_option in --version -v -V -qversion; do
3361 { { ac_try="$ac_compiler $ac_option >&5"
3362 case "(($ac_try" in
3363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3364 *) ac_try_echo=$ac_try;;
3365 esac
3366 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3367 $as_echo "$ac_try_echo"; } >&5
3368 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3369 ac_status=$?
3370 if test -s conftest.err; then
3371 sed '10a\
3372 ... rest of stderr output deleted ...
3373 10q' conftest.err >conftest.er1
3374 cat conftest.er1 >&5
3375 fi
3376 rm -f conftest.er1 conftest.err
3377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3378 test $ac_status = 0; }
3379 done
3380
3381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3382 /* end confdefs.h. */
3383
3384 int
3385 main ()
3386 {
3387
3388 ;
3389 return 0;
3390 }
3391 _ACEOF
3392 ac_clean_files_save=$ac_clean_files
3393 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3394 # Try to create an executable without -o first, disregard a.out.
3395 # It will help us diagnose broken compilers, and finding out an intuition
3396 # of exeext.
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3398 $as_echo_n "checking whether the C compiler works... " >&6; }
3399 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3400
3401 # The possible output files:
3402 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3403
3404 ac_rmfiles=
3405 for ac_file in $ac_files
3406 do
3407 case $ac_file in
3408 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3409 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3410 esac
3411 done
3412 rm -f $ac_rmfiles
3413
3414 if { { ac_try="$ac_link_default"
3415 case "(($ac_try" in
3416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3417 *) ac_try_echo=$ac_try;;
3418 esac
3419 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3420 $as_echo "$ac_try_echo"; } >&5
3421 (eval "$ac_link_default") 2>&5
3422 ac_status=$?
3423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3424 test $ac_status = 0; }; then :
3425 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3426 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3427 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3428 # so that the user can short-circuit this test for compilers unknown to
3429 # Autoconf.
3430 for ac_file in $ac_files ''
3431 do
3432 test -f "$ac_file" || continue
3433 case $ac_file in
3434 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3435 ;;
3436 [ab].out )
3437 # We found the default executable, but exeext='' is most
3438 # certainly right.
3439 break;;
3440 *.* )
3441 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3442 then :; else
3443 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3444 fi
3445 # We set ac_cv_exeext here because the later test for it is not
3446 # safe: cross compilers may not add the suffix if given an `-o'
3447 # argument, so we may need to know it at that point already.
3448 # Even if this section looks crufty: it has the advantage of
3449 # actually working.
3450 break;;
3451 * )
3452 break;;
3453 esac
3454 done
3455 test "$ac_cv_exeext" = no && ac_cv_exeext=
3456
3457 else
3458 ac_file=''
3459 fi
3460 if test -z "$ac_file"; then :
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3462 $as_echo "no" >&6; }
3463 $as_echo "$as_me: failed program was:" >&5
3464 sed 's/^/| /' conftest.$ac_ext >&5
3465
3466 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3467 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3468 as_fn_error 77 "C compiler cannot create executables
3469 See \`config.log' for more details" "$LINENO" 5; }
3470 else
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3472 $as_echo "yes" >&6; }
3473 fi
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3475 $as_echo_n "checking for C compiler default output file name... " >&6; }
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3477 $as_echo "$ac_file" >&6; }
3478 ac_exeext=$ac_cv_exeext
3479
3480 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3481 ac_clean_files=$ac_clean_files_save
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3483 $as_echo_n "checking for suffix of executables... " >&6; }
3484 if { { ac_try="$ac_link"
3485 case "(($ac_try" in
3486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3487 *) ac_try_echo=$ac_try;;
3488 esac
3489 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3490 $as_echo "$ac_try_echo"; } >&5
3491 (eval "$ac_link") 2>&5
3492 ac_status=$?
3493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3494 test $ac_status = 0; }; then :
3495 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3496 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3497 # work properly (i.e., refer to `conftest.exe'), while it won't with
3498 # `rm'.
3499 for ac_file in conftest.exe conftest conftest.*; do
3500 test -f "$ac_file" || continue
3501 case $ac_file in
3502 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3503 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3504 break;;
3505 * ) break;;
3506 esac
3507 done
3508 else
3509 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3510 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3511 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3512 See \`config.log' for more details" "$LINENO" 5; }
3513 fi
3514 rm -f conftest conftest$ac_cv_exeext
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3516 $as_echo "$ac_cv_exeext" >&6; }
3517
3518 rm -f conftest.$ac_ext
3519 EXEEXT=$ac_cv_exeext
3520 ac_exeext=$EXEEXT
3521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3522 /* end confdefs.h. */
3523 #include <stdio.h>
3524 int
3525 main ()
3526 {
3527 FILE *f = fopen ("conftest.out", "w");
3528 return ferror (f) || fclose (f) != 0;
3529
3530 ;
3531 return 0;
3532 }
3533 _ACEOF
3534 ac_clean_files="$ac_clean_files conftest.out"
3535 # Check that the compiler produces executables we can run. If not, either
3536 # the compiler is broken, or we cross compile.
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3538 $as_echo_n "checking whether we are cross compiling... " >&6; }
3539 if test "$cross_compiling" != yes; then
3540 { { ac_try="$ac_link"
3541 case "(($ac_try" in
3542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3543 *) ac_try_echo=$ac_try;;
3544 esac
3545 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3546 $as_echo "$ac_try_echo"; } >&5
3547 (eval "$ac_link") 2>&5
3548 ac_status=$?
3549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3550 test $ac_status = 0; }
3551 if { ac_try='./conftest$ac_cv_exeext'
3552 { { case "(($ac_try" in
3553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3554 *) ac_try_echo=$ac_try;;
3555 esac
3556 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3557 $as_echo "$ac_try_echo"; } >&5
3558 (eval "$ac_try") 2>&5
3559 ac_status=$?
3560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3561 test $ac_status = 0; }; }; then
3562 cross_compiling=no
3563 else
3564 if test "$cross_compiling" = maybe; then
3565 cross_compiling=yes
3566 else
3567 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3568 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3569 as_fn_error $? "cannot run C compiled programs.
3570 If you meant to cross compile, use \`--host'.
3571 See \`config.log' for more details" "$LINENO" 5; }
3572 fi
3573 fi
3574 fi
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3576 $as_echo "$cross_compiling" >&6; }
3577
3578 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3579 ac_clean_files=$ac_clean_files_save
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3581 $as_echo_n "checking for suffix of object files... " >&6; }
3582 if ${ac_cv_objext+:} false; then :
3583 $as_echo_n "(cached) " >&6
3584 else
3585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3586 /* end confdefs.h. */
3587
3588 int
3589 main ()
3590 {
3591
3592 ;
3593 return 0;
3594 }
3595 _ACEOF
3596 rm -f conftest.o conftest.obj
3597 if { { ac_try="$ac_compile"
3598 case "(($ac_try" in
3599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3600 *) ac_try_echo=$ac_try;;
3601 esac
3602 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3603 $as_echo "$ac_try_echo"; } >&5
3604 (eval "$ac_compile") 2>&5
3605 ac_status=$?
3606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3607 test $ac_status = 0; }; then :
3608 for ac_file in conftest.o conftest.obj conftest.*; do
3609 test -f "$ac_file" || continue;
3610 case $ac_file in
3611 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3612 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3613 break;;
3614 esac
3615 done
3616 else
3617 $as_echo "$as_me: failed program was:" >&5
3618 sed 's/^/| /' conftest.$ac_ext >&5
3619
3620 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3621 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3622 as_fn_error $? "cannot compute suffix of object files: cannot compile
3623 See \`config.log' for more details" "$LINENO" 5; }
3624 fi
3625 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3626 fi
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3628 $as_echo "$ac_cv_objext" >&6; }
3629 OBJEXT=$ac_cv_objext
3630 ac_objext=$OBJEXT
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3632 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3633 if ${ac_cv_c_compiler_gnu+:} false; then :
3634 $as_echo_n "(cached) " >&6
3635 else
3636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3637 /* end confdefs.h. */
3638
3639 int
3640 main ()
3641 {
3642 #ifndef __GNUC__
3643 choke me
3644 #endif
3645
3646 ;
3647 return 0;
3648 }
3649 _ACEOF
3650 if ac_fn_c_try_compile "$LINENO"; then :
3651 ac_compiler_gnu=yes
3652 else
3653 ac_compiler_gnu=no
3654 fi
3655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3656 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3657
3658 fi
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3660 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3661 if test $ac_compiler_gnu = yes; then
3662 GCC=yes
3663 else
3664 GCC=
3665 fi
3666 ac_test_CFLAGS=${CFLAGS+set}
3667 ac_save_CFLAGS=$CFLAGS
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3669 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3670 if ${ac_cv_prog_cc_g+:} false; then :
3671 $as_echo_n "(cached) " >&6
3672 else
3673 ac_save_c_werror_flag=$ac_c_werror_flag
3674 ac_c_werror_flag=yes
3675 ac_cv_prog_cc_g=no
3676 CFLAGS="-g"
3677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3678 /* end confdefs.h. */
3679
3680 int
3681 main ()
3682 {
3683
3684 ;
3685 return 0;
3686 }
3687 _ACEOF
3688 if ac_fn_c_try_compile "$LINENO"; then :
3689 ac_cv_prog_cc_g=yes
3690 else
3691 CFLAGS=""
3692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3693 /* end confdefs.h. */
3694
3695 int
3696 main ()
3697 {
3698
3699 ;
3700 return 0;
3701 }
3702 _ACEOF
3703 if ac_fn_c_try_compile "$LINENO"; then :
3704
3705 else
3706 ac_c_werror_flag=$ac_save_c_werror_flag
3707 CFLAGS="-g"
3708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3709 /* end confdefs.h. */
3710
3711 int
3712 main ()
3713 {
3714
3715 ;
3716 return 0;
3717 }
3718 _ACEOF
3719 if ac_fn_c_try_compile "$LINENO"; then :
3720 ac_cv_prog_cc_g=yes
3721 fi
3722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3723 fi
3724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3725 fi
3726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3727 ac_c_werror_flag=$ac_save_c_werror_flag
3728 fi
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3730 $as_echo "$ac_cv_prog_cc_g" >&6; }
3731 if test "$ac_test_CFLAGS" = set; then
3732 CFLAGS=$ac_save_CFLAGS
3733 elif test $ac_cv_prog_cc_g = yes; then
3734 if test "$GCC" = yes; then
3735 CFLAGS="-g -O2"
3736 else
3737 CFLAGS="-g"
3738 fi
3739 else
3740 if test "$GCC" = yes; then
3741 CFLAGS="-O2"
3742 else
3743 CFLAGS=
3744 fi
3745 fi
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3747 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3748 if ${ac_cv_prog_cc_c89+:} false; then :
3749 $as_echo_n "(cached) " >&6
3750 else
3751 ac_cv_prog_cc_c89=no
3752 ac_save_CC=$CC
3753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3754 /* end confdefs.h. */
3755 #include <stdarg.h>
3756 #include <stdio.h>
3757 struct stat;
3758 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3759 struct buf { int x; };
3760 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3761 static char *e (p, i)
3762 char **p;
3763 int i;
3764 {
3765 return p[i];
3766 }
3767 static char *f (char * (*g) (char **, int), char **p, ...)
3768 {
3769 char *s;
3770 va_list v;
3771 va_start (v,p);
3772 s = g (p, va_arg (v,int));
3773 va_end (v);
3774 return s;
3775 }
3776
3777 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3778 function prototypes and stuff, but not '\xHH' hex character constants.
3779 These don't provoke an error unfortunately, instead are silently treated
3780 as 'x'. The following induces an error, until -std is added to get
3781 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3782 array size at least. It's necessary to write '\x00'==0 to get something
3783 that's true only with -std. */
3784 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3785
3786 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3787 inside strings and character constants. */
3788 #define FOO(x) 'x'
3789 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3790
3791 int test (int i, double x);
3792 struct s1 {int (*f) (int a);};
3793 struct s2 {int (*f) (double a);};
3794 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3795 int argc;
3796 char **argv;
3797 int
3798 main ()
3799 {
3800 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3801 ;
3802 return 0;
3803 }
3804 _ACEOF
3805 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3806 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3807 do
3808 CC="$ac_save_CC $ac_arg"
3809 if ac_fn_c_try_compile "$LINENO"; then :
3810 ac_cv_prog_cc_c89=$ac_arg
3811 fi
3812 rm -f core conftest.err conftest.$ac_objext
3813 test "x$ac_cv_prog_cc_c89" != "xno" && break
3814 done
3815 rm -f conftest.$ac_ext
3816 CC=$ac_save_CC
3817
3818 fi
3819 # AC_CACHE_VAL
3820 case "x$ac_cv_prog_cc_c89" in
3821 x)
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3823 $as_echo "none needed" >&6; } ;;
3824 xno)
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3826 $as_echo "unsupported" >&6; } ;;
3827 *)
3828 CC="$CC $ac_cv_prog_cc_c89"
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3830 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3831 esac
3832 if test "x$ac_cv_prog_cc_c89" != xno; then :
3833
3834 fi
3835
3836 ac_ext=c
3837 ac_cpp='$CPP $CPPFLAGS'
3838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3841
3842 ac_ext=c
3843 ac_cpp='$CPP $CPPFLAGS'
3844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3848 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3849 if ${am_cv_prog_cc_c_o+:} false; then :
3850 $as_echo_n "(cached) " >&6
3851 else
3852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3853 /* end confdefs.h. */
3854
3855 int
3856 main ()
3857 {
3858
3859 ;
3860 return 0;
3861 }
3862 _ACEOF
3863 # Make sure it works both with $CC and with simple cc.
3864 # Following AC_PROG_CC_C_O, we do the test twice because some
3865 # compilers refuse to overwrite an existing .o file with -o,
3866 # though they will create one.
3867 am_cv_prog_cc_c_o=yes
3868 for am_i in 1 2; do
3869 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3870 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3871 ac_status=$?
3872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3873 (exit $ac_status); } \
3874 && test -f conftest2.$ac_objext; then
3875 : OK
3876 else
3877 am_cv_prog_cc_c_o=no
3878 break
3879 fi
3880 done
3881 rm -f core conftest*
3882 unset am_i
3883 fi
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3885 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3886 if test "$am_cv_prog_cc_c_o" != yes; then
3887 # Losing compiler, so override with the script.
3888 # FIXME: It is wrong to rewrite CC.
3889 # But if we don't then we get into trouble of one sort or another.
3890 # A longer-term fix would be to have automake use am__CC in this case,
3891 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3892 CC="$am_aux_dir/compile $CC"
3893 fi
3894 ac_ext=c
3895 ac_cpp='$CPP $CPPFLAGS'
3896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3899
3900
3901 depcc="$CC" am_compiler_list=
3902
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3904 $as_echo_n "checking dependency style of $depcc... " >&6; }
3905 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3906 $as_echo_n "(cached) " >&6
3907 else
3908 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3909 # We make a subdir and do the tests there. Otherwise we can end up
3910 # making bogus files that we don't know about and never remove. For
3911 # instance it was reported that on HP-UX the gcc test will end up
3912 # making a dummy file named 'D' -- because '-MD' means "put the output
3913 # in D".
3914 rm -rf conftest.dir
3915 mkdir conftest.dir
3916 # Copy depcomp to subdir because otherwise we won't find it if we're
3917 # using a relative directory.
3918 cp "$am_depcomp" conftest.dir
3919 cd conftest.dir
3920 # We will build objects and dependencies in a subdirectory because
3921 # it helps to detect inapplicable dependency modes. For instance
3922 # both Tru64's cc and ICC support -MD to output dependencies as a
3923 # side effect of compilation, but ICC will put the dependencies in
3924 # the current directory while Tru64 will put them in the object
3925 # directory.
3926 mkdir sub
3927
3928 am_cv_CC_dependencies_compiler_type=none
3929 if test "$am_compiler_list" = ""; then
3930 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3931 fi
3932 am__universal=false
3933 case " $depcc " in #(
3934 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3935 esac
3936
3937 for depmode in $am_compiler_list; do
3938 # Setup a source with many dependencies, because some compilers
3939 # like to wrap large dependency lists on column 80 (with \), and
3940 # we should not choose a depcomp mode which is confused by this.
3941 #
3942 # We need to recreate these files for each test, as the compiler may
3943 # overwrite some of them when testing with obscure command lines.
3944 # This happens at least with the AIX C compiler.
3945 : > sub/conftest.c
3946 for i in 1 2 3 4 5 6; do
3947 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3948 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3949 # Solaris 10 /bin/sh.
3950 echo '/* dummy */' > sub/conftst$i.h
3951 done
3952 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3953
3954 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3955 # mode. It turns out that the SunPro C++ compiler does not properly
3956 # handle '-M -o', and we need to detect this. Also, some Intel
3957 # versions had trouble with output in subdirs.
3958 am__obj=sub/conftest.${OBJEXT-o}
3959 am__minus_obj="-o $am__obj"
3960 case $depmode in
3961 gcc)
3962 # This depmode causes a compiler race in universal mode.
3963 test "$am__universal" = false || continue
3964 ;;
3965 nosideeffect)
3966 # After this tag, mechanisms are not by side-effect, so they'll
3967 # only be used when explicitly requested.
3968 if test "x$enable_dependency_tracking" = xyes; then
3969 continue
3970 else
3971 break
3972 fi
3973 ;;
3974 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3975 # This compiler won't grok '-c -o', but also, the minuso test has
3976 # not run yet. These depmodes are late enough in the game, and
3977 # so weak that their functioning should not be impacted.
3978 am__obj=conftest.${OBJEXT-o}
3979 am__minus_obj=
3980 ;;
3981 none) break ;;
3982 esac
3983 if depmode=$depmode \
3984 source=sub/conftest.c object=$am__obj \
3985 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3986 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3987 >/dev/null 2>conftest.err &&
3988 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3989 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3990 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3991 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3992 # icc doesn't choke on unknown options, it will just issue warnings
3993 # or remarks (even with -Werror). So we grep stderr for any message
3994 # that says an option was ignored or not supported.
3995 # When given -MP, icc 7.0 and 7.1 complain thusly:
3996 # icc: Command line warning: ignoring option '-M'; no argument required
3997 # The diagnosis changed in icc 8.0:
3998 # icc: Command line remark: option '-MP' not supported
3999 if (grep 'ignoring option' conftest.err ||
4000 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4001 am_cv_CC_dependencies_compiler_type=$depmode
4002 break
4003 fi
4004 fi
4005 done
4006
4007 cd ..
4008 rm -rf conftest.dir
4009 else
4010 am_cv_CC_dependencies_compiler_type=none
4011 fi
4012
4013 fi
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4015 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4016 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4017
4018 if
4019 test "x$enable_dependency_tracking" != xno \
4020 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4021 am__fastdepCC_TRUE=
4022 am__fastdepCC_FALSE='#'
4023 else
4024 am__fastdepCC_TRUE='#'
4025 am__fastdepCC_FALSE=
4026 fi
4027
4028
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4030 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4031 if ${ac_cv_prog_cc_c99+:} false; then :
4032 $as_echo_n "(cached) " >&6
4033 else
4034 ac_cv_prog_cc_c99=no
4035 ac_save_CC=$CC
4036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4037 /* end confdefs.h. */
4038 #include <stdarg.h>
4039 #include <stdbool.h>
4040 #include <stdlib.h>
4041 #include <wchar.h>
4042 #include <stdio.h>
4043
4044 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4045 #define debug(...) fprintf (stderr, __VA_ARGS__)
4046 #define showlist(...) puts (#__VA_ARGS__)
4047 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4048 static void
4049 test_varargs_macros (void)
4050 {
4051 int x = 1234;
4052 int y = 5678;
4053 debug ("Flag");
4054 debug ("X = %d\n", x);
4055 showlist (The first, second, and third items.);
4056 report (x>y, "x is %d but y is %d", x, y);
4057 }
4058
4059 // Check long long types.
4060 #define BIG64 18446744073709551615ull
4061 #define BIG32 4294967295ul
4062 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4063 #if !BIG_OK
4064 your preprocessor is broken;
4065 #endif
4066 #if BIG_OK
4067 #else
4068 your preprocessor is broken;
4069 #endif
4070 static long long int bignum = -9223372036854775807LL;
4071 static unsigned long long int ubignum = BIG64;
4072
4073 struct incomplete_array
4074 {
4075 int datasize;
4076 double data[];
4077 };
4078
4079 struct named_init {
4080 int number;
4081 const wchar_t *name;
4082 double average;
4083 };
4084
4085 typedef const char *ccp;
4086
4087 static inline int
4088 test_restrict (ccp restrict text)
4089 {
4090 // See if C++-style comments work.
4091 // Iterate through items via the restricted pointer.
4092 // Also check for declarations in for loops.
4093 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4094 continue;
4095 return 0;
4096 }
4097
4098 // Check varargs and va_copy.
4099 static void
4100 test_varargs (const char *format, ...)
4101 {
4102 va_list args;
4103 va_start (args, format);
4104 va_list args_copy;
4105 va_copy (args_copy, args);
4106
4107 const char *str;
4108 int number;
4109 float fnumber;
4110
4111 while (*format)
4112 {
4113 switch (*format++)
4114 {
4115 case 's': // string
4116 str = va_arg (args_copy, const char *);
4117 break;
4118 case 'd': // int
4119 number = va_arg (args_copy, int);
4120 break;
4121 case 'f': // float
4122 fnumber = va_arg (args_copy, double);
4123 break;
4124 default:
4125 break;
4126 }
4127 }
4128 va_end (args_copy);
4129 va_end (args);
4130 }
4131
4132 int
4133 main ()
4134 {
4135
4136 // Check bool.
4137 _Bool success = false;
4138
4139 // Check restrict.
4140 if (test_restrict ("String literal") == 0)
4141 success = true;
4142 char *restrict newvar = "Another string";
4143
4144 // Check varargs.
4145 test_varargs ("s, d' f .", "string", 65, 34.234);
4146 test_varargs_macros ();
4147
4148 // Check flexible array members.
4149 struct incomplete_array *ia =
4150 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4151 ia->datasize = 10;
4152 for (int i = 0; i < ia->datasize; ++i)
4153 ia->data[i] = i * 1.234;
4154
4155 // Check named initializers.
4156 struct named_init ni = {
4157 .number = 34,
4158 .name = L"Test wide string",
4159 .average = 543.34343,
4160 };
4161
4162 ni.number = 58;
4163
4164 int dynamic_array[ni.number];
4165 dynamic_array[ni.number - 1] = 543;
4166
4167 // work around unused variable warnings
4168 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4169 || dynamic_array[ni.number - 1] != 543);
4170
4171 ;
4172 return 0;
4173 }
4174 _ACEOF
4175 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4176 do
4177 CC="$ac_save_CC $ac_arg"
4178 if ac_fn_c_try_compile "$LINENO"; then :
4179 ac_cv_prog_cc_c99=$ac_arg
4180 fi
4181 rm -f core conftest.err conftest.$ac_objext
4182 test "x$ac_cv_prog_cc_c99" != "xno" && break
4183 done
4184 rm -f conftest.$ac_ext
4185 CC=$ac_save_CC
4186
4187 fi
4188 # AC_CACHE_VAL
4189 case "x$ac_cv_prog_cc_c99" in
4190 x)
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4192 $as_echo "none needed" >&6; } ;;
4193 xno)
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4195 $as_echo "unsupported" >&6; } ;;
4196 *)
4197 CC="$CC $ac_cv_prog_cc_c99"
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4199 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4200 esac
4201 if test "x$ac_cv_prog_cc_c99" != xno; then :
4202
4203 fi
4204
4205
4206
4207 ac_ext=c
4208 ac_cpp='$CPP $CPPFLAGS'
4209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4211 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4213 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4214 # On Suns, sometimes $CPP names a directory.
4215 if test -n "$CPP" && test -d "$CPP"; then
4216 CPP=
4217 fi
4218 if test -z "$CPP"; then
4219 if ${ac_cv_prog_CPP+:} false; then :
4220 $as_echo_n "(cached) " >&6
4221 else
4222 # Double quotes because CPP needs to be expanded
4223 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4224 do
4225 ac_preproc_ok=false
4226 for ac_c_preproc_warn_flag in '' yes
4227 do
4228 # Use a header file that comes with gcc, so configuring glibc
4229 # with a fresh cross-compiler works.
4230 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4231 # <limits.h> exists even on freestanding compilers.
4232 # On the NeXT, cc -E runs the code through the compiler's parser,
4233 # not just through cpp. "Syntax error" is here to catch this case.
4234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4235 /* end confdefs.h. */
4236 #ifdef __STDC__
4237 # include <limits.h>
4238 #else
4239 # include <assert.h>
4240 #endif
4241 Syntax error
4242 _ACEOF
4243 if ac_fn_c_try_cpp "$LINENO"; then :
4244
4245 else
4246 # Broken: fails on valid input.
4247 continue
4248 fi
4249 rm -f conftest.err conftest.i conftest.$ac_ext
4250
4251 # OK, works on sane cases. Now check whether nonexistent headers
4252 # can be detected and how.
4253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4254 /* end confdefs.h. */
4255 #include <ac_nonexistent.h>
4256 _ACEOF
4257 if ac_fn_c_try_cpp "$LINENO"; then :
4258 # Broken: success on invalid input.
4259 continue
4260 else
4261 # Passes both tests.
4262 ac_preproc_ok=:
4263 break
4264 fi
4265 rm -f conftest.err conftest.i conftest.$ac_ext
4266
4267 done
4268 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4269 rm -f conftest.i conftest.err conftest.$ac_ext
4270 if $ac_preproc_ok; then :
4271 break
4272 fi
4273
4274 done
4275 ac_cv_prog_CPP=$CPP
4276
4277 fi
4278 CPP=$ac_cv_prog_CPP
4279 else
4280 ac_cv_prog_CPP=$CPP
4281 fi
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4283 $as_echo "$CPP" >&6; }
4284 ac_preproc_ok=false
4285 for ac_c_preproc_warn_flag in '' yes
4286 do
4287 # Use a header file that comes with gcc, so configuring glibc
4288 # with a fresh cross-compiler works.
4289 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4290 # <limits.h> exists even on freestanding compilers.
4291 # On the NeXT, cc -E runs the code through the compiler's parser,
4292 # not just through cpp. "Syntax error" is here to catch this case.
4293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4294 /* end confdefs.h. */
4295 #ifdef __STDC__
4296 # include <limits.h>
4297 #else
4298 # include <assert.h>
4299 #endif
4300 Syntax error
4301 _ACEOF
4302 if ac_fn_c_try_cpp "$LINENO"; then :
4303
4304 else
4305 # Broken: fails on valid input.
4306 continue
4307 fi
4308 rm -f conftest.err conftest.i conftest.$ac_ext
4309
4310 # OK, works on sane cases. Now check whether nonexistent headers
4311 # can be detected and how.
4312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4313 /* end confdefs.h. */
4314 #include <ac_nonexistent.h>
4315 _ACEOF
4316 if ac_fn_c_try_cpp "$LINENO"; then :
4317 # Broken: success on invalid input.
4318 continue
4319 else
4320 # Passes both tests.
4321 ac_preproc_ok=:
4322 break
4323 fi
4324 rm -f conftest.err conftest.i conftest.$ac_ext
4325
4326 done
4327 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4328 rm -f conftest.i conftest.err conftest.$ac_ext
4329 if $ac_preproc_ok; then :
4330
4331 else
4332 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4333 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4334 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4335 See \`config.log' for more details" "$LINENO" 5; }
4336 fi
4337
4338 ac_ext=c
4339 ac_cpp='$CPP $CPPFLAGS'
4340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4343
4344
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4346 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4347 if ${ac_cv_path_GREP+:} false; then :
4348 $as_echo_n "(cached) " >&6
4349 else
4350 if test -z "$GREP"; then
4351 ac_path_GREP_found=false
4352 # Loop through the user's path and test for each of PROGNAME-LIST
4353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4354 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4355 do
4356 IFS=$as_save_IFS
4357 test -z "$as_dir" && as_dir=.
4358 for ac_prog in grep ggrep; do
4359 for ac_exec_ext in '' $ac_executable_extensions; do
4360 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4361 as_fn_executable_p "$ac_path_GREP" || continue
4362 # Check for GNU ac_path_GREP and select it if it is found.
4363 # Check for GNU $ac_path_GREP
4364 case `"$ac_path_GREP" --version 2>&1` in
4365 *GNU*)
4366 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4367 *)
4368 ac_count=0
4369 $as_echo_n 0123456789 >"conftest.in"
4370 while :
4371 do
4372 cat "conftest.in" "conftest.in" >"conftest.tmp"
4373 mv "conftest.tmp" "conftest.in"
4374 cp "conftest.in" "conftest.nl"
4375 $as_echo 'GREP' >> "conftest.nl"
4376 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4377 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4378 as_fn_arith $ac_count + 1 && ac_count=$as_val
4379 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4380 # Best one so far, save it but keep looking for a better one
4381 ac_cv_path_GREP="$ac_path_GREP"
4382 ac_path_GREP_max=$ac_count
4383 fi
4384 # 10*(2^10) chars as input seems more than enough
4385 test $ac_count -gt 10 && break
4386 done
4387 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4388 esac
4389
4390 $ac_path_GREP_found && break 3
4391 done
4392 done
4393 done
4394 IFS=$as_save_IFS
4395 if test -z "$ac_cv_path_GREP"; then
4396 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4397 fi
4398 else
4399 ac_cv_path_GREP=$GREP
4400 fi
4401
4402 fi
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4404 $as_echo "$ac_cv_path_GREP" >&6; }
4405 GREP="$ac_cv_path_GREP"
4406
4407
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4409 $as_echo_n "checking for egrep... " >&6; }
4410 if ${ac_cv_path_EGREP+:} false; then :
4411 $as_echo_n "(cached) " >&6
4412 else
4413 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4414 then ac_cv_path_EGREP="$GREP -E"
4415 else
4416 if test -z "$EGREP"; then
4417 ac_path_EGREP_found=false
4418 # Loop through the user's path and test for each of PROGNAME-LIST
4419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4420 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4421 do
4422 IFS=$as_save_IFS
4423 test -z "$as_dir" && as_dir=.
4424 for ac_prog in egrep; do
4425 for ac_exec_ext in '' $ac_executable_extensions; do
4426 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4427 as_fn_executable_p "$ac_path_EGREP" || continue
4428 # Check for GNU ac_path_EGREP and select it if it is found.
4429 # Check for GNU $ac_path_EGREP
4430 case `"$ac_path_EGREP" --version 2>&1` in
4431 *GNU*)
4432 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4433 *)
4434 ac_count=0
4435 $as_echo_n 0123456789 >"conftest.in"
4436 while :
4437 do
4438 cat "conftest.in" "conftest.in" >"conftest.tmp"
4439 mv "conftest.tmp" "conftest.in"
4440 cp "conftest.in" "conftest.nl"
4441 $as_echo 'EGREP' >> "conftest.nl"
4442 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4443 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4444 as_fn_arith $ac_count + 1 && ac_count=$as_val
4445 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4446 # Best one so far, save it but keep looking for a better one
4447 ac_cv_path_EGREP="$ac_path_EGREP"
4448 ac_path_EGREP_max=$ac_count
4449 fi
4450 # 10*(2^10) chars as input seems more than enough
4451 test $ac_count -gt 10 && break
4452 done
4453 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4454 esac
4455
4456 $ac_path_EGREP_found && break 3
4457 done
4458 done
4459 done
4460 IFS=$as_save_IFS
4461 if test -z "$ac_cv_path_EGREP"; then
4462 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4463 fi
4464 else
4465 ac_cv_path_EGREP=$EGREP
4466 fi
4467
4468 fi
4469 fi
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4471 $as_echo "$ac_cv_path_EGREP" >&6; }
4472 EGREP="$ac_cv_path_EGREP"
4473
4474
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4476 $as_echo_n "checking for ANSI C header files... " >&6; }
4477 if ${ac_cv_header_stdc+:} false; then :
4478 $as_echo_n "(cached) " >&6
4479 else
4480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4481 /* end confdefs.h. */
4482 #include <stdlib.h>
4483 #include <stdarg.h>
4484 #include <string.h>
4485 #include <float.h>
4486
4487 int
4488 main ()
4489 {
4490
4491 ;
4492 return 0;
4493 }
4494 _ACEOF
4495 if ac_fn_c_try_compile "$LINENO"; then :
4496 ac_cv_header_stdc=yes
4497 else
4498 ac_cv_header_stdc=no
4499 fi
4500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4501
4502 if test $ac_cv_header_stdc = yes; then
4503 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4505 /* end confdefs.h. */
4506 #include <string.h>
4507
4508 _ACEOF
4509 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4510 $EGREP "memchr" >/dev/null 2>&1; then :
4511
4512 else
4513 ac_cv_header_stdc=no
4514 fi
4515 rm -f conftest*
4516
4517 fi
4518
4519 if test $ac_cv_header_stdc = yes; then
4520 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4522 /* end confdefs.h. */
4523 #include <stdlib.h>
4524
4525 _ACEOF
4526 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4527 $EGREP "free" >/dev/null 2>&1; then :
4528
4529 else
4530 ac_cv_header_stdc=no
4531 fi
4532 rm -f conftest*
4533
4534 fi
4535
4536 if test $ac_cv_header_stdc = yes; then
4537 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4538 if test "$cross_compiling" = yes; then :
4539 :
4540 else
4541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4542 /* end confdefs.h. */
4543 #include <ctype.h>
4544 #include <stdlib.h>
4545 #if ((' ' & 0x0FF) == 0x020)
4546 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4547 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4548 #else
4549 # define ISLOWER(c) \
4550 (('a' <= (c) && (c) <= 'i') \
4551 || ('j' <= (c) && (c) <= 'r') \
4552 || ('s' <= (c) && (c) <= 'z'))
4553 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4554 #endif
4555
4556 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4557 int
4558 main ()
4559 {
4560 int i;
4561 for (i = 0; i < 256; i++)
4562 if (XOR (islower (i), ISLOWER (i))
4563 || toupper (i) != TOUPPER (i))
4564 return 2;
4565 return 0;
4566 }
4567 _ACEOF
4568 if ac_fn_c_try_run "$LINENO"; then :
4569
4570 else
4571 ac_cv_header_stdc=no
4572 fi
4573 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4574 conftest.$ac_objext conftest.beam conftest.$ac_ext
4575 fi
4576
4577 fi
4578 fi
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4580 $as_echo "$ac_cv_header_stdc" >&6; }
4581 if test $ac_cv_header_stdc = yes; then
4582
4583 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4584
4585 fi
4586
4587 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4588 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4589 inttypes.h stdint.h unistd.h
4590 do :
4591 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4592 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4593 "
4594 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4595 cat >>confdefs.h <<_ACEOF
4596 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4597 _ACEOF
4598
4599 fi
4600
4601 done
4602
4603
4604
4605
4606
4607
4608 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4609 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4610 CLANGCC="yes"
4611 else
4612 CLANGCC="no"
4613 fi
4614
4615 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4616 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4617 INTELCC="yes"
4618 else
4619 INTELCC="no"
4620 fi
4621
4622 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4623 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4624 SUNCC="yes"
4625 else
4626 SUNCC="no"
4627 fi
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4638 if test -n "$ac_tool_prefix"; then
4639 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4640 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4642 $as_echo_n "checking for $ac_word... " >&6; }
4643 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4644 $as_echo_n "(cached) " >&6
4645 else
4646 case $PKG_CONFIG in
4647 [\\/]* | ?:[\\/]*)
4648 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4649 ;;
4650 *)
4651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4652 for as_dir in $PATH
4653 do
4654 IFS=$as_save_IFS
4655 test -z "$as_dir" && as_dir=.
4656 for ac_exec_ext in '' $ac_executable_extensions; do
4657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4658 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4660 break 2
4661 fi
4662 done
4663 done
4664 IFS=$as_save_IFS
4665
4666 ;;
4667 esac
4668 fi
4669 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4670 if test -n "$PKG_CONFIG"; then
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4672 $as_echo "$PKG_CONFIG" >&6; }
4673 else
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4675 $as_echo "no" >&6; }
4676 fi
4677
4678
4679 fi
4680 if test -z "$ac_cv_path_PKG_CONFIG"; then
4681 ac_pt_PKG_CONFIG=$PKG_CONFIG
4682 # Extract the first word of "pkg-config", so it can be a program name with args.
4683 set dummy pkg-config; ac_word=$2
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4685 $as_echo_n "checking for $ac_word... " >&6; }
4686 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4687 $as_echo_n "(cached) " >&6
4688 else
4689 case $ac_pt_PKG_CONFIG in
4690 [\\/]* | ?:[\\/]*)
4691 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4692 ;;
4693 *)
4694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4695 for as_dir in $PATH
4696 do
4697 IFS=$as_save_IFS
4698 test -z "$as_dir" && as_dir=.
4699 for ac_exec_ext in '' $ac_executable_extensions; do
4700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4701 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4703 break 2
4704 fi
4705 done
4706 done
4707 IFS=$as_save_IFS
4708
4709 ;;
4710 esac
4711 fi
4712 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4713 if test -n "$ac_pt_PKG_CONFIG"; then
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4715 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4716 else
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4718 $as_echo "no" >&6; }
4719 fi
4720
4721 if test "x$ac_pt_PKG_CONFIG" = x; then
4722 PKG_CONFIG=""
4723 else
4724 case $cross_compiling:$ac_tool_warned in
4725 yes:)
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4727 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4728 ac_tool_warned=yes ;;
4729 esac
4730 PKG_CONFIG=$ac_pt_PKG_CONFIG
4731 fi
4732 else
4733 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4734 fi
4735
4736 fi
4737 if test -n "$PKG_CONFIG"; then
4738 _pkg_min_version=0.9.0
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4740 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4741 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4743 $as_echo "yes" >&6; }
4744 else
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4746 $as_echo "no" >&6; }
4747 PKG_CONFIG=""
4748 fi
4749 fi
4750 # Make sure we can run config.sub.
4751 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4752 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4753
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4755 $as_echo_n "checking build system type... " >&6; }
4756 if ${ac_cv_build+:} false; then :
4757 $as_echo_n "(cached) " >&6
4758 else
4759 ac_build_alias=$build_alias
4760 test "x$ac_build_alias" = x &&
4761 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4762 test "x$ac_build_alias" = x &&
4763 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4764 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4765 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4766
4767 fi
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4769 $as_echo "$ac_cv_build" >&6; }
4770 case $ac_cv_build in
4771 *-*-*) ;;
4772 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4773 esac
4774 build=$ac_cv_build
4775 ac_save_IFS=$IFS; IFS='-'
4776 set x $ac_cv_build
4777 shift
4778 build_cpu=$1
4779 build_vendor=$2
4780 shift; shift
4781 # Remember, the first character of IFS is used to create $*,
4782 # except with old shells:
4783 build_os=$*
4784 IFS=$ac_save_IFS
4785 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4786
4787
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4789 $as_echo_n "checking host system type... " >&6; }
4790 if ${ac_cv_host+:} false; then :
4791 $as_echo_n "(cached) " >&6
4792 else
4793 if test "x$host_alias" = x; then
4794 ac_cv_host=$ac_cv_build
4795 else
4796 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4797 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4798 fi
4799
4800 fi
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4802 $as_echo "$ac_cv_host" >&6; }
4803 case $ac_cv_host in
4804 *-*-*) ;;
4805 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4806 esac
4807 host=$ac_cv_host
4808 ac_save_IFS=$IFS; IFS='-'
4809 set x $ac_cv_host
4810 shift
4811 host_cpu=$1
4812 host_vendor=$2
4813 shift; shift
4814 # Remember, the first character of IFS is used to create $*,
4815 # except with old shells:
4816 host_os=$*
4817 IFS=$ac_save_IFS
4818 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4819
4820
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4822 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4823 if ${ac_cv_path_SED+:} false; then :
4824 $as_echo_n "(cached) " >&6
4825 else
4826 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4827 for ac_i in 1 2 3 4 5 6 7; do
4828 ac_script="$ac_script$as_nl$ac_script"
4829 done
4830 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4831 { ac_script=; unset ac_script;}
4832 if test -z "$SED"; then
4833 ac_path_SED_found=false
4834 # Loop through the user's path and test for each of PROGNAME-LIST
4835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4836 for as_dir in $PATH
4837 do
4838 IFS=$as_save_IFS
4839 test -z "$as_dir" && as_dir=.
4840 for ac_prog in sed gsed; do
4841 for ac_exec_ext in '' $ac_executable_extensions; do
4842 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4843 as_fn_executable_p "$ac_path_SED" || continue
4844 # Check for GNU ac_path_SED and select it if it is found.
4845 # Check for GNU $ac_path_SED
4846 case `"$ac_path_SED" --version 2>&1` in
4847 *GNU*)
4848 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4849 *)
4850 ac_count=0
4851 $as_echo_n 0123456789 >"conftest.in"
4852 while :
4853 do
4854 cat "conftest.in" "conftest.in" >"conftest.tmp"
4855 mv "conftest.tmp" "conftest.in"
4856 cp "conftest.in" "conftest.nl"
4857 $as_echo '' >> "conftest.nl"
4858 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4859 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4860 as_fn_arith $ac_count + 1 && ac_count=$as_val
4861 if test $ac_count -gt ${ac_path_SED_max-0}; then
4862 # Best one so far, save it but keep looking for a better one
4863 ac_cv_path_SED="$ac_path_SED"
4864 ac_path_SED_max=$ac_count
4865 fi
4866 # 10*(2^10) chars as input seems more than enough
4867 test $ac_count -gt 10 && break
4868 done
4869 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4870 esac
4871
4872 $ac_path_SED_found && break 3
4873 done
4874 done
4875 done
4876 IFS=$as_save_IFS
4877 if test -z "$ac_cv_path_SED"; then
4878 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4879 fi
4880 else
4881 ac_cv_path_SED=$SED
4882 fi
4883
4884 fi
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4886 $as_echo "$ac_cv_path_SED" >&6; }
4887 SED="$ac_cv_path_SED"
4888 rm -f conftest.sed
4889
4890
4891
4892
4893
4894
4895 # Check whether --enable-selective-werror was given.
4896 if test "${enable_selective_werror+set}" = set; then :
4897 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4898 else
4899 SELECTIVE_WERROR=yes
4900 fi
4901
4902
4903
4904
4905
4906 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4907 if test "x$SUNCC" = "xyes"; then
4908 BASE_CFLAGS="-v"
4909 else
4910 BASE_CFLAGS=""
4911 fi
4912
4913 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927 xorg_testset_save_CFLAGS="$CFLAGS"
4928
4929 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4930 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4932 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4933 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4934 $as_echo_n "(cached) " >&6
4935 else
4936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4937 /* end confdefs.h. */
4938 int i;
4939 _ACEOF
4940 if ac_fn_c_try_compile "$LINENO"; then :
4941 xorg_cv_cc_flag_unknown_warning_option=yes
4942 else
4943 xorg_cv_cc_flag_unknown_warning_option=no
4944 fi
4945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4946 fi
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4948 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4949 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4950 CFLAGS="$xorg_testset_save_CFLAGS"
4951 fi
4952
4953 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4954 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4955 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4956 fi
4957 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4959 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4960 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4961 $as_echo_n "(cached) " >&6
4962 else
4963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4964 /* end confdefs.h. */
4965 int i;
4966 _ACEOF
4967 if ac_fn_c_try_compile "$LINENO"; then :
4968 xorg_cv_cc_flag_unused_command_line_argument=yes
4969 else
4970 xorg_cv_cc_flag_unused_command_line_argument=no
4971 fi
4972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4973 fi
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4975 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4976 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4977 CFLAGS="$xorg_testset_save_CFLAGS"
4978 fi
4979
4980 found="no"
4981
4982 if test $found = "no" ; then
4983 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4984 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4985 fi
4986
4987 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4988 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4989 fi
4990
4991 CFLAGS="$CFLAGS -Wall"
4992
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4994 $as_echo_n "checking if $CC supports -Wall... " >&6; }
4995 cacheid=xorg_cv_cc_flag__Wall
4996 if eval \${$cacheid+:} false; then :
4997 $as_echo_n "(cached) " >&6
4998 else
4999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5000 /* end confdefs.h. */
5001 int i;
5002 int
5003 main ()
5004 {
5005
5006 ;
5007 return 0;
5008 }
5009 _ACEOF
5010 if ac_fn_c_try_link "$LINENO"; then :
5011 eval $cacheid=yes
5012 else
5013 eval $cacheid=no
5014 fi
5015 rm -f core conftest.err conftest.$ac_objext \
5016 conftest$ac_exeext conftest.$ac_ext
5017 fi
5018
5019
5020 CFLAGS="$xorg_testset_save_CFLAGS"
5021
5022 eval supported=\$$cacheid
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5024 $as_echo "$supported" >&6; }
5025 if test "$supported" = "yes" ; then
5026 BASE_CFLAGS="$BASE_CFLAGS -Wall"
5027 found="yes"
5028 fi
5029 fi
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045 xorg_testset_save_CFLAGS="$CFLAGS"
5046
5047 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5048 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5050 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5051 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5052 $as_echo_n "(cached) " >&6
5053 else
5054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5055 /* end confdefs.h. */
5056 int i;
5057 _ACEOF
5058 if ac_fn_c_try_compile "$LINENO"; then :
5059 xorg_cv_cc_flag_unknown_warning_option=yes
5060 else
5061 xorg_cv_cc_flag_unknown_warning_option=no
5062 fi
5063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5064 fi
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5066 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5067 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5068 CFLAGS="$xorg_testset_save_CFLAGS"
5069 fi
5070
5071 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5072 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5073 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5074 fi
5075 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5077 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5078 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5079 $as_echo_n "(cached) " >&6
5080 else
5081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5082 /* end confdefs.h. */
5083 int i;
5084 _ACEOF
5085 if ac_fn_c_try_compile "$LINENO"; then :
5086 xorg_cv_cc_flag_unused_command_line_argument=yes
5087 else
5088 xorg_cv_cc_flag_unused_command_line_argument=no
5089 fi
5090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5091 fi
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5093 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5094 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5095 CFLAGS="$xorg_testset_save_CFLAGS"
5096 fi
5097
5098 found="no"
5099
5100 if test $found = "no" ; then
5101 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5102 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5103 fi
5104
5105 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5106 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5107 fi
5108
5109 CFLAGS="$CFLAGS -Wpointer-arith"
5110
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5112 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
5113 cacheid=xorg_cv_cc_flag__Wpointer_arith
5114 if eval \${$cacheid+:} false; then :
5115 $as_echo_n "(cached) " >&6
5116 else
5117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5118 /* end confdefs.h. */
5119 int i;
5120 int
5121 main ()
5122 {
5123
5124 ;
5125 return 0;
5126 }
5127 _ACEOF
5128 if ac_fn_c_try_link "$LINENO"; then :
5129 eval $cacheid=yes
5130 else
5131 eval $cacheid=no
5132 fi
5133 rm -f core conftest.err conftest.$ac_objext \
5134 conftest$ac_exeext conftest.$ac_ext
5135 fi
5136
5137
5138 CFLAGS="$xorg_testset_save_CFLAGS"
5139
5140 eval supported=\$$cacheid
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5142 $as_echo "$supported" >&6; }
5143 if test "$supported" = "yes" ; then
5144 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5145 found="yes"
5146 fi
5147 fi
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163 xorg_testset_save_CFLAGS="$CFLAGS"
5164
5165 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5166 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5168 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5169 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5170 $as_echo_n "(cached) " >&6
5171 else
5172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5173 /* end confdefs.h. */
5174 int i;
5175 _ACEOF
5176 if ac_fn_c_try_compile "$LINENO"; then :
5177 xorg_cv_cc_flag_unknown_warning_option=yes
5178 else
5179 xorg_cv_cc_flag_unknown_warning_option=no
5180 fi
5181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5182 fi
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5184 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5185 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5186 CFLAGS="$xorg_testset_save_CFLAGS"
5187 fi
5188
5189 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5190 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5191 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5192 fi
5193 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5195 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5196 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5197 $as_echo_n "(cached) " >&6
5198 else
5199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5200 /* end confdefs.h. */
5201 int i;
5202 _ACEOF
5203 if ac_fn_c_try_compile "$LINENO"; then :
5204 xorg_cv_cc_flag_unused_command_line_argument=yes
5205 else
5206 xorg_cv_cc_flag_unused_command_line_argument=no
5207 fi
5208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5209 fi
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5211 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5212 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5213 CFLAGS="$xorg_testset_save_CFLAGS"
5214 fi
5215
5216 found="no"
5217
5218 if test $found = "no" ; then
5219 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5220 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5221 fi
5222
5223 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5224 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5225 fi
5226
5227 CFLAGS="$CFLAGS -Wmissing-declarations"
5228
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5230 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5231 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5232 if eval \${$cacheid+:} false; then :
5233 $as_echo_n "(cached) " >&6
5234 else
5235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5236 /* end confdefs.h. */
5237 int i;
5238 int
5239 main ()
5240 {
5241
5242 ;
5243 return 0;
5244 }
5245 _ACEOF
5246 if ac_fn_c_try_link "$LINENO"; then :
5247 eval $cacheid=yes
5248 else
5249 eval $cacheid=no
5250 fi
5251 rm -f core conftest.err conftest.$ac_objext \
5252 conftest$ac_exeext conftest.$ac_ext
5253 fi
5254
5255
5256 CFLAGS="$xorg_testset_save_CFLAGS"
5257
5258 eval supported=\$$cacheid
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5260 $as_echo "$supported" >&6; }
5261 if test "$supported" = "yes" ; then
5262 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5263 found="yes"
5264 fi
5265 fi
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281 xorg_testset_save_CFLAGS="$CFLAGS"
5282
5283 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5284 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5286 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5287 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5288 $as_echo_n "(cached) " >&6
5289 else
5290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5291 /* end confdefs.h. */
5292 int i;
5293 _ACEOF
5294 if ac_fn_c_try_compile "$LINENO"; then :
5295 xorg_cv_cc_flag_unknown_warning_option=yes
5296 else
5297 xorg_cv_cc_flag_unknown_warning_option=no
5298 fi
5299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5300 fi
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5302 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5303 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5304 CFLAGS="$xorg_testset_save_CFLAGS"
5305 fi
5306
5307 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5308 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5309 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5310 fi
5311 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5313 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5314 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5315 $as_echo_n "(cached) " >&6
5316 else
5317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5318 /* end confdefs.h. */
5319 int i;
5320 _ACEOF
5321 if ac_fn_c_try_compile "$LINENO"; then :
5322 xorg_cv_cc_flag_unused_command_line_argument=yes
5323 else
5324 xorg_cv_cc_flag_unused_command_line_argument=no
5325 fi
5326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5327 fi
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5329 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5330 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5331 CFLAGS="$xorg_testset_save_CFLAGS"
5332 fi
5333
5334 found="no"
5335
5336 if test $found = "no" ; then
5337 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5338 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5339 fi
5340
5341 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5342 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5343 fi
5344
5345 CFLAGS="$CFLAGS -Wformat=2"
5346
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5348 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5349 cacheid=xorg_cv_cc_flag__Wformat_2
5350 if eval \${$cacheid+:} false; then :
5351 $as_echo_n "(cached) " >&6
5352 else
5353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5354 /* end confdefs.h. */
5355 int i;
5356 int
5357 main ()
5358 {
5359
5360 ;
5361 return 0;
5362 }
5363 _ACEOF
5364 if ac_fn_c_try_link "$LINENO"; then :
5365 eval $cacheid=yes
5366 else
5367 eval $cacheid=no
5368 fi
5369 rm -f core conftest.err conftest.$ac_objext \
5370 conftest$ac_exeext conftest.$ac_ext
5371 fi
5372
5373
5374 CFLAGS="$xorg_testset_save_CFLAGS"
5375
5376 eval supported=\$$cacheid
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5378 $as_echo "$supported" >&6; }
5379 if test "$supported" = "yes" ; then
5380 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5381 found="yes"
5382 fi
5383 fi
5384
5385 if test $found = "no" ; then
5386 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5387 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5388 fi
5389
5390 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5391 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5392 fi
5393
5394 CFLAGS="$CFLAGS -Wformat"
5395
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5397 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
5398 cacheid=xorg_cv_cc_flag__Wformat
5399 if eval \${$cacheid+:} false; then :
5400 $as_echo_n "(cached) " >&6
5401 else
5402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5403 /* end confdefs.h. */
5404 int i;
5405 int
5406 main ()
5407 {
5408
5409 ;
5410 return 0;
5411 }
5412 _ACEOF
5413 if ac_fn_c_try_link "$LINENO"; then :
5414 eval $cacheid=yes
5415 else
5416 eval $cacheid=no
5417 fi
5418 rm -f core conftest.err conftest.$ac_objext \
5419 conftest$ac_exeext conftest.$ac_ext
5420 fi
5421
5422
5423 CFLAGS="$xorg_testset_save_CFLAGS"
5424
5425 eval supported=\$$cacheid
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5427 $as_echo "$supported" >&6; }
5428 if test "$supported" = "yes" ; then
5429 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5430 found="yes"
5431 fi
5432 fi
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450 xorg_testset_save_CFLAGS="$CFLAGS"
5451
5452 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5453 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5455 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5456 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5457 $as_echo_n "(cached) " >&6
5458 else
5459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5460 /* end confdefs.h. */
5461 int i;
5462 _ACEOF
5463 if ac_fn_c_try_compile "$LINENO"; then :
5464 xorg_cv_cc_flag_unknown_warning_option=yes
5465 else
5466 xorg_cv_cc_flag_unknown_warning_option=no
5467 fi
5468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5469 fi
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5471 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5472 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5473 CFLAGS="$xorg_testset_save_CFLAGS"
5474 fi
5475
5476 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5477 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5478 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5479 fi
5480 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5482 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5483 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5484 $as_echo_n "(cached) " >&6
5485 else
5486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5487 /* end confdefs.h. */
5488 int i;
5489 _ACEOF
5490 if ac_fn_c_try_compile "$LINENO"; then :
5491 xorg_cv_cc_flag_unused_command_line_argument=yes
5492 else
5493 xorg_cv_cc_flag_unused_command_line_argument=no
5494 fi
5495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5496 fi
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5498 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5499 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5500 CFLAGS="$xorg_testset_save_CFLAGS"
5501 fi
5502
5503 found="no"
5504
5505 if test $found = "no" ; then
5506 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5507 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5508 fi
5509
5510 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5511 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5512 fi
5513
5514 CFLAGS="$CFLAGS -Wstrict-prototypes"
5515
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5517 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5518 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5519 if eval \${$cacheid+:} false; then :
5520 $as_echo_n "(cached) " >&6
5521 else
5522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5523 /* end confdefs.h. */
5524 int i;
5525 int
5526 main ()
5527 {
5528
5529 ;
5530 return 0;
5531 }
5532 _ACEOF
5533 if ac_fn_c_try_link "$LINENO"; then :
5534 eval $cacheid=yes
5535 else
5536 eval $cacheid=no
5537 fi
5538 rm -f core conftest.err conftest.$ac_objext \
5539 conftest$ac_exeext conftest.$ac_ext
5540 fi
5541
5542
5543 CFLAGS="$xorg_testset_save_CFLAGS"
5544
5545 eval supported=\$$cacheid
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5547 $as_echo "$supported" >&6; }
5548 if test "$supported" = "yes" ; then
5549 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5550 found="yes"
5551 fi
5552 fi
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568 xorg_testset_save_CFLAGS="$CFLAGS"
5569
5570 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5571 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5573 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5574 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5575 $as_echo_n "(cached) " >&6
5576 else
5577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5578 /* end confdefs.h. */
5579 int i;
5580 _ACEOF
5581 if ac_fn_c_try_compile "$LINENO"; then :
5582 xorg_cv_cc_flag_unknown_warning_option=yes
5583 else
5584 xorg_cv_cc_flag_unknown_warning_option=no
5585 fi
5586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5587 fi
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5589 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5590 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5591 CFLAGS="$xorg_testset_save_CFLAGS"
5592 fi
5593
5594 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5595 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5596 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5597 fi
5598 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5600 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5601 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5602 $as_echo_n "(cached) " >&6
5603 else
5604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5605 /* end confdefs.h. */
5606 int i;
5607 _ACEOF
5608 if ac_fn_c_try_compile "$LINENO"; then :
5609 xorg_cv_cc_flag_unused_command_line_argument=yes
5610 else
5611 xorg_cv_cc_flag_unused_command_line_argument=no
5612 fi
5613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5614 fi
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5616 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5617 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5618 CFLAGS="$xorg_testset_save_CFLAGS"
5619 fi
5620
5621 found="no"
5622
5623 if test $found = "no" ; then
5624 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5625 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5626 fi
5627
5628 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5629 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5630 fi
5631
5632 CFLAGS="$CFLAGS -Wmissing-prototypes"
5633
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5635 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5636 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5637 if eval \${$cacheid+:} false; then :
5638 $as_echo_n "(cached) " >&6
5639 else
5640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5641 /* end confdefs.h. */
5642 int i;
5643 int
5644 main ()
5645 {
5646
5647 ;
5648 return 0;
5649 }
5650 _ACEOF
5651 if ac_fn_c_try_link "$LINENO"; then :
5652 eval $cacheid=yes
5653 else
5654 eval $cacheid=no
5655 fi
5656 rm -f core conftest.err conftest.$ac_objext \
5657 conftest$ac_exeext conftest.$ac_ext
5658 fi
5659
5660
5661 CFLAGS="$xorg_testset_save_CFLAGS"
5662
5663 eval supported=\$$cacheid
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5665 $as_echo "$supported" >&6; }
5666 if test "$supported" = "yes" ; then
5667 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5668 found="yes"
5669 fi
5670 fi
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686 xorg_testset_save_CFLAGS="$CFLAGS"
5687
5688 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5689 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5691 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5692 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5693 $as_echo_n "(cached) " >&6
5694 else
5695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5696 /* end confdefs.h. */
5697 int i;
5698 _ACEOF
5699 if ac_fn_c_try_compile "$LINENO"; then :
5700 xorg_cv_cc_flag_unknown_warning_option=yes
5701 else
5702 xorg_cv_cc_flag_unknown_warning_option=no
5703 fi
5704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5705 fi
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5707 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5708 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5709 CFLAGS="$xorg_testset_save_CFLAGS"
5710 fi
5711
5712 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5713 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5714 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5715 fi
5716 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5718 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5719 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5720 $as_echo_n "(cached) " >&6
5721 else
5722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5723 /* end confdefs.h. */
5724 int i;
5725 _ACEOF
5726 if ac_fn_c_try_compile "$LINENO"; then :
5727 xorg_cv_cc_flag_unused_command_line_argument=yes
5728 else
5729 xorg_cv_cc_flag_unused_command_line_argument=no
5730 fi
5731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5732 fi
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5734 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5735 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5736 CFLAGS="$xorg_testset_save_CFLAGS"
5737 fi
5738
5739 found="no"
5740
5741 if test $found = "no" ; then
5742 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5743 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5744 fi
5745
5746 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5747 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5748 fi
5749
5750 CFLAGS="$CFLAGS -Wnested-externs"
5751
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5753 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5754 cacheid=xorg_cv_cc_flag__Wnested_externs
5755 if eval \${$cacheid+:} false; then :
5756 $as_echo_n "(cached) " >&6
5757 else
5758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5759 /* end confdefs.h. */
5760 int i;
5761 int
5762 main ()
5763 {
5764
5765 ;
5766 return 0;
5767 }
5768 _ACEOF
5769 if ac_fn_c_try_link "$LINENO"; then :
5770 eval $cacheid=yes
5771 else
5772 eval $cacheid=no
5773 fi
5774 rm -f core conftest.err conftest.$ac_objext \
5775 conftest$ac_exeext conftest.$ac_ext
5776 fi
5777
5778
5779 CFLAGS="$xorg_testset_save_CFLAGS"
5780
5781 eval supported=\$$cacheid
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5783 $as_echo "$supported" >&6; }
5784 if test "$supported" = "yes" ; then
5785 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5786 found="yes"
5787 fi
5788 fi
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804 xorg_testset_save_CFLAGS="$CFLAGS"
5805
5806 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5807 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5809 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5810 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5811 $as_echo_n "(cached) " >&6
5812 else
5813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5814 /* end confdefs.h. */
5815 int i;
5816 _ACEOF
5817 if ac_fn_c_try_compile "$LINENO"; then :
5818 xorg_cv_cc_flag_unknown_warning_option=yes
5819 else
5820 xorg_cv_cc_flag_unknown_warning_option=no
5821 fi
5822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5823 fi
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5825 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5826 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5827 CFLAGS="$xorg_testset_save_CFLAGS"
5828 fi
5829
5830 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5831 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5832 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5833 fi
5834 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5836 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5837 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5838 $as_echo_n "(cached) " >&6
5839 else
5840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5841 /* end confdefs.h. */
5842 int i;
5843 _ACEOF
5844 if ac_fn_c_try_compile "$LINENO"; then :
5845 xorg_cv_cc_flag_unused_command_line_argument=yes
5846 else
5847 xorg_cv_cc_flag_unused_command_line_argument=no
5848 fi
5849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5850 fi
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5852 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5853 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5854 CFLAGS="$xorg_testset_save_CFLAGS"
5855 fi
5856
5857 found="no"
5858
5859 if test $found = "no" ; then
5860 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5861 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5862 fi
5863
5864 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5865 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5866 fi
5867
5868 CFLAGS="$CFLAGS -Wbad-function-cast"
5869
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5871 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5872 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5873 if eval \${$cacheid+:} false; then :
5874 $as_echo_n "(cached) " >&6
5875 else
5876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5877 /* end confdefs.h. */
5878 int i;
5879 int
5880 main ()
5881 {
5882
5883 ;
5884 return 0;
5885 }
5886 _ACEOF
5887 if ac_fn_c_try_link "$LINENO"; then :
5888 eval $cacheid=yes
5889 else
5890 eval $cacheid=no
5891 fi
5892 rm -f core conftest.err conftest.$ac_objext \
5893 conftest$ac_exeext conftest.$ac_ext
5894 fi
5895
5896
5897 CFLAGS="$xorg_testset_save_CFLAGS"
5898
5899 eval supported=\$$cacheid
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5901 $as_echo "$supported" >&6; }
5902 if test "$supported" = "yes" ; then
5903 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5904 found="yes"
5905 fi
5906 fi
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922 xorg_testset_save_CFLAGS="$CFLAGS"
5923
5924 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5925 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5927 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5928 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5929 $as_echo_n "(cached) " >&6
5930 else
5931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5932 /* end confdefs.h. */
5933 int i;
5934 _ACEOF
5935 if ac_fn_c_try_compile "$LINENO"; then :
5936 xorg_cv_cc_flag_unknown_warning_option=yes
5937 else
5938 xorg_cv_cc_flag_unknown_warning_option=no
5939 fi
5940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5941 fi
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5943 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5944 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5945 CFLAGS="$xorg_testset_save_CFLAGS"
5946 fi
5947
5948 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5949 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5950 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5951 fi
5952 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5954 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5955 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5956 $as_echo_n "(cached) " >&6
5957 else
5958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5959 /* end confdefs.h. */
5960 int i;
5961 _ACEOF
5962 if ac_fn_c_try_compile "$LINENO"; then :
5963 xorg_cv_cc_flag_unused_command_line_argument=yes
5964 else
5965 xorg_cv_cc_flag_unused_command_line_argument=no
5966 fi
5967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5968 fi
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5970 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5971 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5972 CFLAGS="$xorg_testset_save_CFLAGS"
5973 fi
5974
5975 found="no"
5976
5977 if test $found = "no" ; then
5978 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5979 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5980 fi
5981
5982 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5983 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5984 fi
5985
5986 CFLAGS="$CFLAGS -Wold-style-definition"
5987
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5989 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5990 cacheid=xorg_cv_cc_flag__Wold_style_definition
5991 if eval \${$cacheid+:} false; then :
5992 $as_echo_n "(cached) " >&6
5993 else
5994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5995 /* end confdefs.h. */
5996 int i;
5997 int
5998 main ()
5999 {
6000
6001 ;
6002 return 0;
6003 }
6004 _ACEOF
6005 if ac_fn_c_try_link "$LINENO"; then :
6006 eval $cacheid=yes
6007 else
6008 eval $cacheid=no
6009 fi
6010 rm -f core conftest.err conftest.$ac_objext \
6011 conftest$ac_exeext conftest.$ac_ext
6012 fi
6013
6014
6015 CFLAGS="$xorg_testset_save_CFLAGS"
6016
6017 eval supported=\$$cacheid
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6019 $as_echo "$supported" >&6; }
6020 if test "$supported" = "yes" ; then
6021 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6022 found="yes"
6023 fi
6024 fi
6025
6026 if test $found = "no" ; then
6027 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6028 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6029 fi
6030
6031 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6032 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6033 fi
6034
6035 CFLAGS="$CFLAGS -fd"
6036
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6038 $as_echo_n "checking if $CC supports -fd... " >&6; }
6039 cacheid=xorg_cv_cc_flag__fd
6040 if eval \${$cacheid+:} false; then :
6041 $as_echo_n "(cached) " >&6
6042 else
6043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6044 /* end confdefs.h. */
6045 int i;
6046 int
6047 main ()
6048 {
6049
6050 ;
6051 return 0;
6052 }
6053 _ACEOF
6054 if ac_fn_c_try_link "$LINENO"; then :
6055 eval $cacheid=yes
6056 else
6057 eval $cacheid=no
6058 fi
6059 rm -f core conftest.err conftest.$ac_objext \
6060 conftest$ac_exeext conftest.$ac_ext
6061 fi
6062
6063
6064 CFLAGS="$xorg_testset_save_CFLAGS"
6065
6066 eval supported=\$$cacheid
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6068 $as_echo "$supported" >&6; }
6069 if test "$supported" = "yes" ; then
6070 BASE_CFLAGS="$BASE_CFLAGS -fd"
6071 found="yes"
6072 fi
6073 fi
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089 xorg_testset_save_CFLAGS="$CFLAGS"
6090
6091 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6092 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6094 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6095 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6096 $as_echo_n "(cached) " >&6
6097 else
6098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6099 /* end confdefs.h. */
6100 int i;
6101 _ACEOF
6102 if ac_fn_c_try_compile "$LINENO"; then :
6103 xorg_cv_cc_flag_unknown_warning_option=yes
6104 else
6105 xorg_cv_cc_flag_unknown_warning_option=no
6106 fi
6107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6108 fi
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6110 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6111 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6112 CFLAGS="$xorg_testset_save_CFLAGS"
6113 fi
6114
6115 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6116 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6117 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6118 fi
6119 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6121 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6122 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6123 $as_echo_n "(cached) " >&6
6124 else
6125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6126 /* end confdefs.h. */
6127 int i;
6128 _ACEOF
6129 if ac_fn_c_try_compile "$LINENO"; then :
6130 xorg_cv_cc_flag_unused_command_line_argument=yes
6131 else
6132 xorg_cv_cc_flag_unused_command_line_argument=no
6133 fi
6134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6135 fi
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6137 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6138 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6139 CFLAGS="$xorg_testset_save_CFLAGS"
6140 fi
6141
6142 found="no"
6143
6144 if test $found = "no" ; then
6145 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6146 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6147 fi
6148
6149 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6150 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6151 fi
6152
6153 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6154
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6156 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6157 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6158 if eval \${$cacheid+:} false; then :
6159 $as_echo_n "(cached) " >&6
6160 else
6161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6162 /* end confdefs.h. */
6163 int i;
6164 int
6165 main ()
6166 {
6167
6168 ;
6169 return 0;
6170 }
6171 _ACEOF
6172 if ac_fn_c_try_link "$LINENO"; then :
6173 eval $cacheid=yes
6174 else
6175 eval $cacheid=no
6176 fi
6177 rm -f core conftest.err conftest.$ac_objext \
6178 conftest$ac_exeext conftest.$ac_ext
6179 fi
6180
6181
6182 CFLAGS="$xorg_testset_save_CFLAGS"
6183
6184 eval supported=\$$cacheid
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6186 $as_echo "$supported" >&6; }
6187 if test "$supported" = "yes" ; then
6188 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6189 found="yes"
6190 fi
6191 fi
6192
6193
6194
6195
6196
6197 # This chunk adds additional warnings that could catch undesired effects.
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211 xorg_testset_save_CFLAGS="$CFLAGS"
6212
6213 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6214 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6216 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6217 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6218 $as_echo_n "(cached) " >&6
6219 else
6220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6221 /* end confdefs.h. */
6222 int i;
6223 _ACEOF
6224 if ac_fn_c_try_compile "$LINENO"; then :
6225 xorg_cv_cc_flag_unknown_warning_option=yes
6226 else
6227 xorg_cv_cc_flag_unknown_warning_option=no
6228 fi
6229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6230 fi
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6232 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6233 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6234 CFLAGS="$xorg_testset_save_CFLAGS"
6235 fi
6236
6237 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6238 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6239 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6240 fi
6241 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6243 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6244 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6245 $as_echo_n "(cached) " >&6
6246 else
6247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6248 /* end confdefs.h. */
6249 int i;
6250 _ACEOF
6251 if ac_fn_c_try_compile "$LINENO"; then :
6252 xorg_cv_cc_flag_unused_command_line_argument=yes
6253 else
6254 xorg_cv_cc_flag_unused_command_line_argument=no
6255 fi
6256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6257 fi
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6259 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6260 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6261 CFLAGS="$xorg_testset_save_CFLAGS"
6262 fi
6263
6264 found="no"
6265
6266 if test $found = "no" ; then
6267 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6268 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6269 fi
6270
6271 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6272 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6273 fi
6274
6275 CFLAGS="$CFLAGS -Wunused"
6276
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6278 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
6279 cacheid=xorg_cv_cc_flag__Wunused
6280 if eval \${$cacheid+:} false; then :
6281 $as_echo_n "(cached) " >&6
6282 else
6283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6284 /* end confdefs.h. */
6285 int i;
6286 int
6287 main ()
6288 {
6289
6290 ;
6291 return 0;
6292 }
6293 _ACEOF
6294 if ac_fn_c_try_link "$LINENO"; then :
6295 eval $cacheid=yes
6296 else
6297 eval $cacheid=no
6298 fi
6299 rm -f core conftest.err conftest.$ac_objext \
6300 conftest$ac_exeext conftest.$ac_ext
6301 fi
6302
6303
6304 CFLAGS="$xorg_testset_save_CFLAGS"
6305
6306 eval supported=\$$cacheid
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6308 $as_echo "$supported" >&6; }
6309 if test "$supported" = "yes" ; then
6310 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6311 found="yes"
6312 fi
6313 fi
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329 xorg_testset_save_CFLAGS="$CFLAGS"
6330
6331 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6332 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6334 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6335 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6336 $as_echo_n "(cached) " >&6
6337 else
6338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6339 /* end confdefs.h. */
6340 int i;
6341 _ACEOF
6342 if ac_fn_c_try_compile "$LINENO"; then :
6343 xorg_cv_cc_flag_unknown_warning_option=yes
6344 else
6345 xorg_cv_cc_flag_unknown_warning_option=no
6346 fi
6347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6348 fi
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6350 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6351 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6352 CFLAGS="$xorg_testset_save_CFLAGS"
6353 fi
6354
6355 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6356 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6357 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6358 fi
6359 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6361 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6362 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6363 $as_echo_n "(cached) " >&6
6364 else
6365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6366 /* end confdefs.h. */
6367 int i;
6368 _ACEOF
6369 if ac_fn_c_try_compile "$LINENO"; then :
6370 xorg_cv_cc_flag_unused_command_line_argument=yes
6371 else
6372 xorg_cv_cc_flag_unused_command_line_argument=no
6373 fi
6374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6375 fi
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6377 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6378 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6379 CFLAGS="$xorg_testset_save_CFLAGS"
6380 fi
6381
6382 found="no"
6383
6384 if test $found = "no" ; then
6385 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6386 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6387 fi
6388
6389 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6390 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6391 fi
6392
6393 CFLAGS="$CFLAGS -Wuninitialized"
6394
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6396 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6397 cacheid=xorg_cv_cc_flag__Wuninitialized
6398 if eval \${$cacheid+:} false; then :
6399 $as_echo_n "(cached) " >&6
6400 else
6401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6402 /* end confdefs.h. */
6403 int i;
6404 int
6405 main ()
6406 {
6407
6408 ;
6409 return 0;
6410 }
6411 _ACEOF
6412 if ac_fn_c_try_link "$LINENO"; then :
6413 eval $cacheid=yes
6414 else
6415 eval $cacheid=no
6416 fi
6417 rm -f core conftest.err conftest.$ac_objext \
6418 conftest$ac_exeext conftest.$ac_ext
6419 fi
6420
6421
6422 CFLAGS="$xorg_testset_save_CFLAGS"
6423
6424 eval supported=\$$cacheid
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6426 $as_echo "$supported" >&6; }
6427 if test "$supported" = "yes" ; then
6428 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6429 found="yes"
6430 fi
6431 fi
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447 xorg_testset_save_CFLAGS="$CFLAGS"
6448
6449 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6450 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6452 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6453 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6454 $as_echo_n "(cached) " >&6
6455 else
6456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6457 /* end confdefs.h. */
6458 int i;
6459 _ACEOF
6460 if ac_fn_c_try_compile "$LINENO"; then :
6461 xorg_cv_cc_flag_unknown_warning_option=yes
6462 else
6463 xorg_cv_cc_flag_unknown_warning_option=no
6464 fi
6465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6466 fi
6467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6468 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6469 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6470 CFLAGS="$xorg_testset_save_CFLAGS"
6471 fi
6472
6473 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6474 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6475 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6476 fi
6477 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6479 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6480 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6481 $as_echo_n "(cached) " >&6
6482 else
6483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6484 /* end confdefs.h. */
6485 int i;
6486 _ACEOF
6487 if ac_fn_c_try_compile "$LINENO"; then :
6488 xorg_cv_cc_flag_unused_command_line_argument=yes
6489 else
6490 xorg_cv_cc_flag_unused_command_line_argument=no
6491 fi
6492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6493 fi
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6495 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6496 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6497 CFLAGS="$xorg_testset_save_CFLAGS"
6498 fi
6499
6500 found="no"
6501
6502 if test $found = "no" ; then
6503 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6504 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6505 fi
6506
6507 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6508 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6509 fi
6510
6511 CFLAGS="$CFLAGS -Wshadow"
6512
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6514 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6515 cacheid=xorg_cv_cc_flag__Wshadow
6516 if eval \${$cacheid+:} false; then :
6517 $as_echo_n "(cached) " >&6
6518 else
6519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6520 /* end confdefs.h. */
6521 int i;
6522 int
6523 main ()
6524 {
6525
6526 ;
6527 return 0;
6528 }
6529 _ACEOF
6530 if ac_fn_c_try_link "$LINENO"; then :
6531 eval $cacheid=yes
6532 else
6533 eval $cacheid=no
6534 fi
6535 rm -f core conftest.err conftest.$ac_objext \
6536 conftest$ac_exeext conftest.$ac_ext
6537 fi
6538
6539
6540 CFLAGS="$xorg_testset_save_CFLAGS"
6541
6542 eval supported=\$$cacheid
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6544 $as_echo "$supported" >&6; }
6545 if test "$supported" = "yes" ; then
6546 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6547 found="yes"
6548 fi
6549 fi
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565 xorg_testset_save_CFLAGS="$CFLAGS"
6566
6567 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6568 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6570 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6571 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6572 $as_echo_n "(cached) " >&6
6573 else
6574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6575 /* end confdefs.h. */
6576 int i;
6577 _ACEOF
6578 if ac_fn_c_try_compile "$LINENO"; then :
6579 xorg_cv_cc_flag_unknown_warning_option=yes
6580 else
6581 xorg_cv_cc_flag_unknown_warning_option=no
6582 fi
6583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6584 fi
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6586 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6587 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6588 CFLAGS="$xorg_testset_save_CFLAGS"
6589 fi
6590
6591 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6592 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6593 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6594 fi
6595 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6597 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6598 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6599 $as_echo_n "(cached) " >&6
6600 else
6601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6602 /* end confdefs.h. */
6603 int i;
6604 _ACEOF
6605 if ac_fn_c_try_compile "$LINENO"; then :
6606 xorg_cv_cc_flag_unused_command_line_argument=yes
6607 else
6608 xorg_cv_cc_flag_unused_command_line_argument=no
6609 fi
6610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6611 fi
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6613 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6614 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6615 CFLAGS="$xorg_testset_save_CFLAGS"
6616 fi
6617
6618 found="no"
6619
6620 if test $found = "no" ; then
6621 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6622 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6623 fi
6624
6625 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6626 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6627 fi
6628
6629 CFLAGS="$CFLAGS -Wmissing-noreturn"
6630
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6632 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6633 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6634 if eval \${$cacheid+:} false; then :
6635 $as_echo_n "(cached) " >&6
6636 else
6637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6638 /* end confdefs.h. */
6639 int i;
6640 int
6641 main ()
6642 {
6643
6644 ;
6645 return 0;
6646 }
6647 _ACEOF
6648 if ac_fn_c_try_link "$LINENO"; then :
6649 eval $cacheid=yes
6650 else
6651 eval $cacheid=no
6652 fi
6653 rm -f core conftest.err conftest.$ac_objext \
6654 conftest$ac_exeext conftest.$ac_ext
6655 fi
6656
6657
6658 CFLAGS="$xorg_testset_save_CFLAGS"
6659
6660 eval supported=\$$cacheid
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6662 $as_echo "$supported" >&6; }
6663 if test "$supported" = "yes" ; then
6664 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6665 found="yes"
6666 fi
6667 fi
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683 xorg_testset_save_CFLAGS="$CFLAGS"
6684
6685 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6686 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6688 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6689 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6690 $as_echo_n "(cached) " >&6
6691 else
6692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6693 /* end confdefs.h. */
6694 int i;
6695 _ACEOF
6696 if ac_fn_c_try_compile "$LINENO"; then :
6697 xorg_cv_cc_flag_unknown_warning_option=yes
6698 else
6699 xorg_cv_cc_flag_unknown_warning_option=no
6700 fi
6701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6702 fi
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6704 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6705 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6706 CFLAGS="$xorg_testset_save_CFLAGS"
6707 fi
6708
6709 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6710 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6711 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6712 fi
6713 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6715 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6716 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6717 $as_echo_n "(cached) " >&6
6718 else
6719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6720 /* end confdefs.h. */
6721 int i;
6722 _ACEOF
6723 if ac_fn_c_try_compile "$LINENO"; then :
6724 xorg_cv_cc_flag_unused_command_line_argument=yes
6725 else
6726 xorg_cv_cc_flag_unused_command_line_argument=no
6727 fi
6728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6729 fi
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6731 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6732 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6733 CFLAGS="$xorg_testset_save_CFLAGS"
6734 fi
6735
6736 found="no"
6737
6738 if test $found = "no" ; then
6739 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6740 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6741 fi
6742
6743 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6744 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6745 fi
6746
6747 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6748
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6750 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6751 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6752 if eval \${$cacheid+:} false; then :
6753 $as_echo_n "(cached) " >&6
6754 else
6755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6756 /* end confdefs.h. */
6757 int i;
6758 int
6759 main ()
6760 {
6761
6762 ;
6763 return 0;
6764 }
6765 _ACEOF
6766 if ac_fn_c_try_link "$LINENO"; then :
6767 eval $cacheid=yes
6768 else
6769 eval $cacheid=no
6770 fi
6771 rm -f core conftest.err conftest.$ac_objext \
6772 conftest$ac_exeext conftest.$ac_ext
6773 fi
6774
6775
6776 CFLAGS="$xorg_testset_save_CFLAGS"
6777
6778 eval supported=\$$cacheid
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6780 $as_echo "$supported" >&6; }
6781 if test "$supported" = "yes" ; then
6782 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6783 found="yes"
6784 fi
6785 fi
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801 xorg_testset_save_CFLAGS="$CFLAGS"
6802
6803 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6804 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6806 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6807 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6808 $as_echo_n "(cached) " >&6
6809 else
6810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6811 /* end confdefs.h. */
6812 int i;
6813 _ACEOF
6814 if ac_fn_c_try_compile "$LINENO"; then :
6815 xorg_cv_cc_flag_unknown_warning_option=yes
6816 else
6817 xorg_cv_cc_flag_unknown_warning_option=no
6818 fi
6819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6820 fi
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6822 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6823 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6824 CFLAGS="$xorg_testset_save_CFLAGS"
6825 fi
6826
6827 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6828 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6829 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6830 fi
6831 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6833 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6834 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6835 $as_echo_n "(cached) " >&6
6836 else
6837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6838 /* end confdefs.h. */
6839 int i;
6840 _ACEOF
6841 if ac_fn_c_try_compile "$LINENO"; then :
6842 xorg_cv_cc_flag_unused_command_line_argument=yes
6843 else
6844 xorg_cv_cc_flag_unused_command_line_argument=no
6845 fi
6846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6847 fi
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6849 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6850 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6851 CFLAGS="$xorg_testset_save_CFLAGS"
6852 fi
6853
6854 found="no"
6855
6856 if test $found = "no" ; then
6857 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6858 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6859 fi
6860
6861 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6862 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6863 fi
6864
6865 CFLAGS="$CFLAGS -Wredundant-decls"
6866
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6868 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6869 cacheid=xorg_cv_cc_flag__Wredundant_decls
6870 if eval \${$cacheid+:} false; then :
6871 $as_echo_n "(cached) " >&6
6872 else
6873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6874 /* end confdefs.h. */
6875 int i;
6876 int
6877 main ()
6878 {
6879
6880 ;
6881 return 0;
6882 }
6883 _ACEOF
6884 if ac_fn_c_try_link "$LINENO"; then :
6885 eval $cacheid=yes
6886 else
6887 eval $cacheid=no
6888 fi
6889 rm -f core conftest.err conftest.$ac_objext \
6890 conftest$ac_exeext conftest.$ac_ext
6891 fi
6892
6893
6894 CFLAGS="$xorg_testset_save_CFLAGS"
6895
6896 eval supported=\$$cacheid
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6898 $as_echo "$supported" >&6; }
6899 if test "$supported" = "yes" ; then
6900 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6901 found="yes"
6902 fi
6903 fi
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919 xorg_testset_save_CFLAGS="$CFLAGS"
6920
6921 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6922 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6924 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6925 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6926 $as_echo_n "(cached) " >&6
6927 else
6928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6929 /* end confdefs.h. */
6930 int i;
6931 _ACEOF
6932 if ac_fn_c_try_compile "$LINENO"; then :
6933 xorg_cv_cc_flag_unknown_warning_option=yes
6934 else
6935 xorg_cv_cc_flag_unknown_warning_option=no
6936 fi
6937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6938 fi
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6940 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6941 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6942 CFLAGS="$xorg_testset_save_CFLAGS"
6943 fi
6944
6945 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6946 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6947 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6948 fi
6949 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6951 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6952 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6953 $as_echo_n "(cached) " >&6
6954 else
6955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6956 /* end confdefs.h. */
6957 int i;
6958 _ACEOF
6959 if ac_fn_c_try_compile "$LINENO"; then :
6960 xorg_cv_cc_flag_unused_command_line_argument=yes
6961 else
6962 xorg_cv_cc_flag_unused_command_line_argument=no
6963 fi
6964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6965 fi
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6967 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6968 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6969 CFLAGS="$xorg_testset_save_CFLAGS"
6970 fi
6971
6972 found="no"
6973
6974 if test $found = "no" ; then
6975 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6976 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6977 fi
6978
6979 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6980 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6981 fi
6982
6983 CFLAGS="$CFLAGS -Wlogical-op"
6984
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6986 $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
6987 cacheid=xorg_cv_cc_flag__Wlogical_op
6988 if eval \${$cacheid+:} false; then :
6989 $as_echo_n "(cached) " >&6
6990 else
6991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6992 /* end confdefs.h. */
6993 int i;
6994 int
6995 main ()
6996 {
6997
6998 ;
6999 return 0;
7000 }
7001 _ACEOF
7002 if ac_fn_c_try_link "$LINENO"; then :
7003 eval $cacheid=yes
7004 else
7005 eval $cacheid=no
7006 fi
7007 rm -f core conftest.err conftest.$ac_objext \
7008 conftest$ac_exeext conftest.$ac_ext
7009 fi
7010
7011
7012 CFLAGS="$xorg_testset_save_CFLAGS"
7013
7014 eval supported=\$$cacheid
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7016 $as_echo "$supported" >&6; }
7017 if test "$supported" = "yes" ; then
7018 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7019 found="yes"
7020 fi
7021 fi
7022
7023
7024
7025 # These are currently disabled because they are noisy. They will be enabled
7026 # in the future once the codebase is sufficiently modernized to silence
7027 # them. For now, I don't want them to drown out the other warnings.
7028 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7029 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7030 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7031
7032 # Turn some warnings into errors, so we don't accidently get successful builds
7033 # when there are problems that should be fixed.
7034
7035 if test "x$SELECTIVE_WERROR" = "xyes" ; then
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049 xorg_testset_save_CFLAGS="$CFLAGS"
7050
7051 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7052 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7054 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7055 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7056 $as_echo_n "(cached) " >&6
7057 else
7058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7059 /* end confdefs.h. */
7060 int i;
7061 _ACEOF
7062 if ac_fn_c_try_compile "$LINENO"; then :
7063 xorg_cv_cc_flag_unknown_warning_option=yes
7064 else
7065 xorg_cv_cc_flag_unknown_warning_option=no
7066 fi
7067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7068 fi
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7070 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7071 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7072 CFLAGS="$xorg_testset_save_CFLAGS"
7073 fi
7074
7075 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7076 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7077 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7078 fi
7079 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7081 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7082 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7083 $as_echo_n "(cached) " >&6
7084 else
7085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7086 /* end confdefs.h. */
7087 int i;
7088 _ACEOF
7089 if ac_fn_c_try_compile "$LINENO"; then :
7090 xorg_cv_cc_flag_unused_command_line_argument=yes
7091 else
7092 xorg_cv_cc_flag_unused_command_line_argument=no
7093 fi
7094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7095 fi
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7097 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7098 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7099 CFLAGS="$xorg_testset_save_CFLAGS"
7100 fi
7101
7102 found="no"
7103
7104 if test $found = "no" ; then
7105 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7106 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7107 fi
7108
7109 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7110 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7111 fi
7112
7113 CFLAGS="$CFLAGS -Werror=implicit"
7114
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7116 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
7117 cacheid=xorg_cv_cc_flag__Werror_implicit
7118 if eval \${$cacheid+:} false; then :
7119 $as_echo_n "(cached) " >&6
7120 else
7121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7122 /* end confdefs.h. */
7123 int i;
7124 int
7125 main ()
7126 {
7127
7128 ;
7129 return 0;
7130 }
7131 _ACEOF
7132 if ac_fn_c_try_link "$LINENO"; then :
7133 eval $cacheid=yes
7134 else
7135 eval $cacheid=no
7136 fi
7137 rm -f core conftest.err conftest.$ac_objext \
7138 conftest$ac_exeext conftest.$ac_ext
7139 fi
7140
7141
7142 CFLAGS="$xorg_testset_save_CFLAGS"
7143
7144 eval supported=\$$cacheid
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7146 $as_echo "$supported" >&6; }
7147 if test "$supported" = "yes" ; then
7148 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7149 found="yes"
7150 fi
7151 fi
7152
7153 if test $found = "no" ; then
7154 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7155 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7156 fi
7157
7158 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7159 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7160 fi
7161
7162 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7163
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7165 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7166 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7167 if eval \${$cacheid+:} false; then :
7168 $as_echo_n "(cached) " >&6
7169 else
7170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7171 /* end confdefs.h. */
7172 int i;
7173 int
7174 main ()
7175 {
7176
7177 ;
7178 return 0;
7179 }
7180 _ACEOF
7181 if ac_fn_c_try_link "$LINENO"; then :
7182 eval $cacheid=yes
7183 else
7184 eval $cacheid=no
7185 fi
7186 rm -f core conftest.err conftest.$ac_objext \
7187 conftest$ac_exeext conftest.$ac_ext
7188 fi
7189
7190
7191 CFLAGS="$xorg_testset_save_CFLAGS"
7192
7193 eval supported=\$$cacheid
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7195 $as_echo "$supported" >&6; }
7196 if test "$supported" = "yes" ; then
7197 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7198 found="yes"
7199 fi
7200 fi
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216 xorg_testset_save_CFLAGS="$CFLAGS"
7217
7218 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7219 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7221 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7222 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7223 $as_echo_n "(cached) " >&6
7224 else
7225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7226 /* end confdefs.h. */
7227 int i;
7228 _ACEOF
7229 if ac_fn_c_try_compile "$LINENO"; then :
7230 xorg_cv_cc_flag_unknown_warning_option=yes
7231 else
7232 xorg_cv_cc_flag_unknown_warning_option=no
7233 fi
7234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7235 fi
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7237 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7238 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7239 CFLAGS="$xorg_testset_save_CFLAGS"
7240 fi
7241
7242 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7243 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7244 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7245 fi
7246 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7248 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7249 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7250 $as_echo_n "(cached) " >&6
7251 else
7252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7253 /* end confdefs.h. */
7254 int i;
7255 _ACEOF
7256 if ac_fn_c_try_compile "$LINENO"; then :
7257 xorg_cv_cc_flag_unused_command_line_argument=yes
7258 else
7259 xorg_cv_cc_flag_unused_command_line_argument=no
7260 fi
7261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7262 fi
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7264 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7265 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7266 CFLAGS="$xorg_testset_save_CFLAGS"
7267 fi
7268
7269 found="no"
7270
7271 if test $found = "no" ; then
7272 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7273 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7274 fi
7275
7276 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7277 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7278 fi
7279
7280 CFLAGS="$CFLAGS -Werror=nonnull"
7281
7282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7283 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7284 cacheid=xorg_cv_cc_flag__Werror_nonnull
7285 if eval \${$cacheid+:} false; then :
7286 $as_echo_n "(cached) " >&6
7287 else
7288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7289 /* end confdefs.h. */
7290 int i;
7291 int
7292 main ()
7293 {
7294
7295 ;
7296 return 0;
7297 }
7298 _ACEOF
7299 if ac_fn_c_try_link "$LINENO"; then :
7300 eval $cacheid=yes
7301 else
7302 eval $cacheid=no
7303 fi
7304 rm -f core conftest.err conftest.$ac_objext \
7305 conftest$ac_exeext conftest.$ac_ext
7306 fi
7307
7308
7309 CFLAGS="$xorg_testset_save_CFLAGS"
7310
7311 eval supported=\$$cacheid
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7313 $as_echo "$supported" >&6; }
7314 if test "$supported" = "yes" ; then
7315 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7316 found="yes"
7317 fi
7318 fi
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334 xorg_testset_save_CFLAGS="$CFLAGS"
7335
7336 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7337 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7339 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7340 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7341 $as_echo_n "(cached) " >&6
7342 else
7343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7344 /* end confdefs.h. */
7345 int i;
7346 _ACEOF
7347 if ac_fn_c_try_compile "$LINENO"; then :
7348 xorg_cv_cc_flag_unknown_warning_option=yes
7349 else
7350 xorg_cv_cc_flag_unknown_warning_option=no
7351 fi
7352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7353 fi
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7355 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7356 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7357 CFLAGS="$xorg_testset_save_CFLAGS"
7358 fi
7359
7360 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7361 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7362 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7363 fi
7364 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7366 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7367 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7368 $as_echo_n "(cached) " >&6
7369 else
7370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7371 /* end confdefs.h. */
7372 int i;
7373 _ACEOF
7374 if ac_fn_c_try_compile "$LINENO"; then :
7375 xorg_cv_cc_flag_unused_command_line_argument=yes
7376 else
7377 xorg_cv_cc_flag_unused_command_line_argument=no
7378 fi
7379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7380 fi
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7382 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7383 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7384 CFLAGS="$xorg_testset_save_CFLAGS"
7385 fi
7386
7387 found="no"
7388
7389 if test $found = "no" ; then
7390 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7391 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7392 fi
7393
7394 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7395 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7396 fi
7397
7398 CFLAGS="$CFLAGS -Werror=init-self"
7399
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7401 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7402 cacheid=xorg_cv_cc_flag__Werror_init_self
7403 if eval \${$cacheid+:} false; then :
7404 $as_echo_n "(cached) " >&6
7405 else
7406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7407 /* end confdefs.h. */
7408 int i;
7409 int
7410 main ()
7411 {
7412
7413 ;
7414 return 0;
7415 }
7416 _ACEOF
7417 if ac_fn_c_try_link "$LINENO"; then :
7418 eval $cacheid=yes
7419 else
7420 eval $cacheid=no
7421 fi
7422 rm -f core conftest.err conftest.$ac_objext \
7423 conftest$ac_exeext conftest.$ac_ext
7424 fi
7425
7426
7427 CFLAGS="$xorg_testset_save_CFLAGS"
7428
7429 eval supported=\$$cacheid
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7431 $as_echo "$supported" >&6; }
7432 if test "$supported" = "yes" ; then
7433 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7434 found="yes"
7435 fi
7436 fi
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452 xorg_testset_save_CFLAGS="$CFLAGS"
7453
7454 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7455 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7457 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7458 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7459 $as_echo_n "(cached) " >&6
7460 else
7461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7462 /* end confdefs.h. */
7463 int i;
7464 _ACEOF
7465 if ac_fn_c_try_compile "$LINENO"; then :
7466 xorg_cv_cc_flag_unknown_warning_option=yes
7467 else
7468 xorg_cv_cc_flag_unknown_warning_option=no
7469 fi
7470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7471 fi
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7473 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7474 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7475 CFLAGS="$xorg_testset_save_CFLAGS"
7476 fi
7477
7478 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7479 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7480 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7481 fi
7482 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7484 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7485 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7486 $as_echo_n "(cached) " >&6
7487 else
7488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7489 /* end confdefs.h. */
7490 int i;
7491 _ACEOF
7492 if ac_fn_c_try_compile "$LINENO"; then :
7493 xorg_cv_cc_flag_unused_command_line_argument=yes
7494 else
7495 xorg_cv_cc_flag_unused_command_line_argument=no
7496 fi
7497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7498 fi
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7500 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7501 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7502 CFLAGS="$xorg_testset_save_CFLAGS"
7503 fi
7504
7505 found="no"
7506
7507 if test $found = "no" ; then
7508 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7509 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7510 fi
7511
7512 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7513 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7514 fi
7515
7516 CFLAGS="$CFLAGS -Werror=main"
7517
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7519 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7520 cacheid=xorg_cv_cc_flag__Werror_main
7521 if eval \${$cacheid+:} false; then :
7522 $as_echo_n "(cached) " >&6
7523 else
7524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7525 /* end confdefs.h. */
7526 int i;
7527 int
7528 main ()
7529 {
7530
7531 ;
7532 return 0;
7533 }
7534 _ACEOF
7535 if ac_fn_c_try_link "$LINENO"; then :
7536 eval $cacheid=yes
7537 else
7538 eval $cacheid=no
7539 fi
7540 rm -f core conftest.err conftest.$ac_objext \
7541 conftest$ac_exeext conftest.$ac_ext
7542 fi
7543
7544
7545 CFLAGS="$xorg_testset_save_CFLAGS"
7546
7547 eval supported=\$$cacheid
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7549 $as_echo "$supported" >&6; }
7550 if test "$supported" = "yes" ; then
7551 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7552 found="yes"
7553 fi
7554 fi
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570 xorg_testset_save_CFLAGS="$CFLAGS"
7571
7572 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7573 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7575 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7576 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7577 $as_echo_n "(cached) " >&6
7578 else
7579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7580 /* end confdefs.h. */
7581 int i;
7582 _ACEOF
7583 if ac_fn_c_try_compile "$LINENO"; then :
7584 xorg_cv_cc_flag_unknown_warning_option=yes
7585 else
7586 xorg_cv_cc_flag_unknown_warning_option=no
7587 fi
7588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7589 fi
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7591 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7592 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7593 CFLAGS="$xorg_testset_save_CFLAGS"
7594 fi
7595
7596 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7597 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7598 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7599 fi
7600 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7602 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7603 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7604 $as_echo_n "(cached) " >&6
7605 else
7606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7607 /* end confdefs.h. */
7608 int i;
7609 _ACEOF
7610 if ac_fn_c_try_compile "$LINENO"; then :
7611 xorg_cv_cc_flag_unused_command_line_argument=yes
7612 else
7613 xorg_cv_cc_flag_unused_command_line_argument=no
7614 fi
7615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7616 fi
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7618 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7619 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7620 CFLAGS="$xorg_testset_save_CFLAGS"
7621 fi
7622
7623 found="no"
7624
7625 if test $found = "no" ; then
7626 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7627 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7628 fi
7629
7630 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7631 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7632 fi
7633
7634 CFLAGS="$CFLAGS -Werror=missing-braces"
7635
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7637 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7638 cacheid=xorg_cv_cc_flag__Werror_missing_braces
7639 if eval \${$cacheid+:} false; then :
7640 $as_echo_n "(cached) " >&6
7641 else
7642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7643 /* end confdefs.h. */
7644 int i;
7645 int
7646 main ()
7647 {
7648
7649 ;
7650 return 0;
7651 }
7652 _ACEOF
7653 if ac_fn_c_try_link "$LINENO"; then :
7654 eval $cacheid=yes
7655 else
7656 eval $cacheid=no
7657 fi
7658 rm -f core conftest.err conftest.$ac_objext \
7659 conftest$ac_exeext conftest.$ac_ext
7660 fi
7661
7662
7663 CFLAGS="$xorg_testset_save_CFLAGS"
7664
7665 eval supported=\$$cacheid
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7667 $as_echo "$supported" >&6; }
7668 if test "$supported" = "yes" ; then
7669 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7670 found="yes"
7671 fi
7672 fi
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688 xorg_testset_save_CFLAGS="$CFLAGS"
7689
7690 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7691 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7693 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7694 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7695 $as_echo_n "(cached) " >&6
7696 else
7697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7698 /* end confdefs.h. */
7699 int i;
7700 _ACEOF
7701 if ac_fn_c_try_compile "$LINENO"; then :
7702 xorg_cv_cc_flag_unknown_warning_option=yes
7703 else
7704 xorg_cv_cc_flag_unknown_warning_option=no
7705 fi
7706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7707 fi
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7709 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7710 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7711 CFLAGS="$xorg_testset_save_CFLAGS"
7712 fi
7713
7714 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7715 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7716 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7717 fi
7718 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7720 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7721 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7722 $as_echo_n "(cached) " >&6
7723 else
7724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7725 /* end confdefs.h. */
7726 int i;
7727 _ACEOF
7728 if ac_fn_c_try_compile "$LINENO"; then :
7729 xorg_cv_cc_flag_unused_command_line_argument=yes
7730 else
7731 xorg_cv_cc_flag_unused_command_line_argument=no
7732 fi
7733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7734 fi
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7736 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7737 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7738 CFLAGS="$xorg_testset_save_CFLAGS"
7739 fi
7740
7741 found="no"
7742
7743 if test $found = "no" ; then
7744 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7745 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7746 fi
7747
7748 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7749 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7750 fi
7751
7752 CFLAGS="$CFLAGS -Werror=sequence-point"
7753
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7755 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7756 cacheid=xorg_cv_cc_flag__Werror_sequence_point
7757 if eval \${$cacheid+:} false; then :
7758 $as_echo_n "(cached) " >&6
7759 else
7760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7761 /* end confdefs.h. */
7762 int i;
7763 int
7764 main ()
7765 {
7766
7767 ;
7768 return 0;
7769 }
7770 _ACEOF
7771 if ac_fn_c_try_link "$LINENO"; then :
7772 eval $cacheid=yes
7773 else
7774 eval $cacheid=no
7775 fi
7776 rm -f core conftest.err conftest.$ac_objext \
7777 conftest$ac_exeext conftest.$ac_ext
7778 fi
7779
7780
7781 CFLAGS="$xorg_testset_save_CFLAGS"
7782
7783 eval supported=\$$cacheid
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7785 $as_echo "$supported" >&6; }
7786 if test "$supported" = "yes" ; then
7787 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7788 found="yes"
7789 fi
7790 fi
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806 xorg_testset_save_CFLAGS="$CFLAGS"
7807
7808 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7809 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7811 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7812 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7813 $as_echo_n "(cached) " >&6
7814 else
7815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7816 /* end confdefs.h. */
7817 int i;
7818 _ACEOF
7819 if ac_fn_c_try_compile "$LINENO"; then :
7820 xorg_cv_cc_flag_unknown_warning_option=yes
7821 else
7822 xorg_cv_cc_flag_unknown_warning_option=no
7823 fi
7824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7825 fi
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7827 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7828 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7829 CFLAGS="$xorg_testset_save_CFLAGS"
7830 fi
7831
7832 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7833 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7834 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7835 fi
7836 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7838 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7839 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7840 $as_echo_n "(cached) " >&6
7841 else
7842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7843 /* end confdefs.h. */
7844 int i;
7845 _ACEOF
7846 if ac_fn_c_try_compile "$LINENO"; then :
7847 xorg_cv_cc_flag_unused_command_line_argument=yes
7848 else
7849 xorg_cv_cc_flag_unused_command_line_argument=no
7850 fi
7851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7852 fi
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7854 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7855 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7856 CFLAGS="$xorg_testset_save_CFLAGS"
7857 fi
7858
7859 found="no"
7860
7861 if test $found = "no" ; then
7862 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7863 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7864 fi
7865
7866 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7867 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7868 fi
7869
7870 CFLAGS="$CFLAGS -Werror=return-type"
7871
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7873 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7874 cacheid=xorg_cv_cc_flag__Werror_return_type
7875 if eval \${$cacheid+:} false; then :
7876 $as_echo_n "(cached) " >&6
7877 else
7878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7879 /* end confdefs.h. */
7880 int i;
7881 int
7882 main ()
7883 {
7884
7885 ;
7886 return 0;
7887 }
7888 _ACEOF
7889 if ac_fn_c_try_link "$LINENO"; then :
7890 eval $cacheid=yes
7891 else
7892 eval $cacheid=no
7893 fi
7894 rm -f core conftest.err conftest.$ac_objext \
7895 conftest$ac_exeext conftest.$ac_ext
7896 fi
7897
7898
7899 CFLAGS="$xorg_testset_save_CFLAGS"
7900
7901 eval supported=\$$cacheid
7902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7903 $as_echo "$supported" >&6; }
7904 if test "$supported" = "yes" ; then
7905 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7906 found="yes"
7907 fi
7908 fi
7909
7910 if test $found = "no" ; then
7911 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7912 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7913 fi
7914
7915 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7916 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7917 fi
7918
7919 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7920
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7922 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7923 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7924 if eval \${$cacheid+:} false; then :
7925 $as_echo_n "(cached) " >&6
7926 else
7927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7928 /* end confdefs.h. */
7929 int i;
7930 int
7931 main ()
7932 {
7933
7934 ;
7935 return 0;
7936 }
7937 _ACEOF
7938 if ac_fn_c_try_link "$LINENO"; then :
7939 eval $cacheid=yes
7940 else
7941 eval $cacheid=no
7942 fi
7943 rm -f core conftest.err conftest.$ac_objext \
7944 conftest$ac_exeext conftest.$ac_ext
7945 fi
7946
7947
7948 CFLAGS="$xorg_testset_save_CFLAGS"
7949
7950 eval supported=\$$cacheid
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7952 $as_echo "$supported" >&6; }
7953 if test "$supported" = "yes" ; then
7954 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7955 found="yes"
7956 fi
7957 fi
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973 xorg_testset_save_CFLAGS="$CFLAGS"
7974
7975 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7976 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7978 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7979 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7980 $as_echo_n "(cached) " >&6
7981 else
7982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7983 /* end confdefs.h. */
7984 int i;
7985 _ACEOF
7986 if ac_fn_c_try_compile "$LINENO"; then :
7987 xorg_cv_cc_flag_unknown_warning_option=yes
7988 else
7989 xorg_cv_cc_flag_unknown_warning_option=no
7990 fi
7991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7992 fi
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7994 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7995 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7996 CFLAGS="$xorg_testset_save_CFLAGS"
7997 fi
7998
7999 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8000 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8001 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8002 fi
8003 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8005 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8006 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8007 $as_echo_n "(cached) " >&6
8008 else
8009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8010 /* end confdefs.h. */
8011 int i;
8012 _ACEOF
8013 if ac_fn_c_try_compile "$LINENO"; then :
8014 xorg_cv_cc_flag_unused_command_line_argument=yes
8015 else
8016 xorg_cv_cc_flag_unused_command_line_argument=no
8017 fi
8018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8019 fi
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8021 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8022 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8023 CFLAGS="$xorg_testset_save_CFLAGS"
8024 fi
8025
8026 found="no"
8027
8028 if test $found = "no" ; then
8029 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8030 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8031 fi
8032
8033 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8034 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8035 fi
8036
8037 CFLAGS="$CFLAGS -Werror=trigraphs"
8038
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8040 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
8041 cacheid=xorg_cv_cc_flag__Werror_trigraphs
8042 if eval \${$cacheid+:} false; then :
8043 $as_echo_n "(cached) " >&6
8044 else
8045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8046 /* end confdefs.h. */
8047 int i;
8048 int
8049 main ()
8050 {
8051
8052 ;
8053 return 0;
8054 }
8055 _ACEOF
8056 if ac_fn_c_try_link "$LINENO"; then :
8057 eval $cacheid=yes
8058 else
8059 eval $cacheid=no
8060 fi
8061 rm -f core conftest.err conftest.$ac_objext \
8062 conftest$ac_exeext conftest.$ac_ext
8063 fi
8064
8065
8066 CFLAGS="$xorg_testset_save_CFLAGS"
8067
8068 eval supported=\$$cacheid
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8070 $as_echo "$supported" >&6; }
8071 if test "$supported" = "yes" ; then
8072 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8073 found="yes"
8074 fi
8075 fi
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091 xorg_testset_save_CFLAGS="$CFLAGS"
8092
8093 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8094 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8096 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8097 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8098 $as_echo_n "(cached) " >&6
8099 else
8100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8101 /* end confdefs.h. */
8102 int i;
8103 _ACEOF
8104 if ac_fn_c_try_compile "$LINENO"; then :
8105 xorg_cv_cc_flag_unknown_warning_option=yes
8106 else
8107 xorg_cv_cc_flag_unknown_warning_option=no
8108 fi
8109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8110 fi
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8112 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8113 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8114 CFLAGS="$xorg_testset_save_CFLAGS"
8115 fi
8116
8117 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8118 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8119 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8120 fi
8121 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8123 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8124 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8125 $as_echo_n "(cached) " >&6
8126 else
8127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8128 /* end confdefs.h. */
8129 int i;
8130 _ACEOF
8131 if ac_fn_c_try_compile "$LINENO"; then :
8132 xorg_cv_cc_flag_unused_command_line_argument=yes
8133 else
8134 xorg_cv_cc_flag_unused_command_line_argument=no
8135 fi
8136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8137 fi
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8139 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8140 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8141 CFLAGS="$xorg_testset_save_CFLAGS"
8142 fi
8143
8144 found="no"
8145
8146 if test $found = "no" ; then
8147 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8148 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8149 fi
8150
8151 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8152 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8153 fi
8154
8155 CFLAGS="$CFLAGS -Werror=array-bounds"
8156
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8158 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
8159 cacheid=xorg_cv_cc_flag__Werror_array_bounds
8160 if eval \${$cacheid+:} false; then :
8161 $as_echo_n "(cached) " >&6
8162 else
8163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8164 /* end confdefs.h. */
8165 int i;
8166 int
8167 main ()
8168 {
8169
8170 ;
8171 return 0;
8172 }
8173 _ACEOF
8174 if ac_fn_c_try_link "$LINENO"; then :
8175 eval $cacheid=yes
8176 else
8177 eval $cacheid=no
8178 fi
8179 rm -f core conftest.err conftest.$ac_objext \
8180 conftest$ac_exeext conftest.$ac_ext
8181 fi
8182
8183
8184 CFLAGS="$xorg_testset_save_CFLAGS"
8185
8186 eval supported=\$$cacheid
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8188 $as_echo "$supported" >&6; }
8189 if test "$supported" = "yes" ; then
8190 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8191 found="yes"
8192 fi
8193 fi
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209 xorg_testset_save_CFLAGS="$CFLAGS"
8210
8211 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8212 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8214 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8215 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8216 $as_echo_n "(cached) " >&6
8217 else
8218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8219 /* end confdefs.h. */
8220 int i;
8221 _ACEOF
8222 if ac_fn_c_try_compile "$LINENO"; then :
8223 xorg_cv_cc_flag_unknown_warning_option=yes
8224 else
8225 xorg_cv_cc_flag_unknown_warning_option=no
8226 fi
8227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8228 fi
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8230 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8231 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8232 CFLAGS="$xorg_testset_save_CFLAGS"
8233 fi
8234
8235 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8236 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8237 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8238 fi
8239 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8241 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8242 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8243 $as_echo_n "(cached) " >&6
8244 else
8245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8246 /* end confdefs.h. */
8247 int i;
8248 _ACEOF
8249 if ac_fn_c_try_compile "$LINENO"; then :
8250 xorg_cv_cc_flag_unused_command_line_argument=yes
8251 else
8252 xorg_cv_cc_flag_unused_command_line_argument=no
8253 fi
8254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8255 fi
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8257 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8258 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8259 CFLAGS="$xorg_testset_save_CFLAGS"
8260 fi
8261
8262 found="no"
8263
8264 if test $found = "no" ; then
8265 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8266 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8267 fi
8268
8269 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8270 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8271 fi
8272
8273 CFLAGS="$CFLAGS -Werror=write-strings"
8274
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8276 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8277 cacheid=xorg_cv_cc_flag__Werror_write_strings
8278 if eval \${$cacheid+:} false; then :
8279 $as_echo_n "(cached) " >&6
8280 else
8281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8282 /* end confdefs.h. */
8283 int i;
8284 int
8285 main ()
8286 {
8287
8288 ;
8289 return 0;
8290 }
8291 _ACEOF
8292 if ac_fn_c_try_link "$LINENO"; then :
8293 eval $cacheid=yes
8294 else
8295 eval $cacheid=no
8296 fi
8297 rm -f core conftest.err conftest.$ac_objext \
8298 conftest$ac_exeext conftest.$ac_ext
8299 fi
8300
8301
8302 CFLAGS="$xorg_testset_save_CFLAGS"
8303
8304 eval supported=\$$cacheid
8305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8306 $as_echo "$supported" >&6; }
8307 if test "$supported" = "yes" ; then
8308 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8309 found="yes"
8310 fi
8311 fi
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327 xorg_testset_save_CFLAGS="$CFLAGS"
8328
8329 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8330 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8332 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8333 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8334 $as_echo_n "(cached) " >&6
8335 else
8336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8337 /* end confdefs.h. */
8338 int i;
8339 _ACEOF
8340 if ac_fn_c_try_compile "$LINENO"; then :
8341 xorg_cv_cc_flag_unknown_warning_option=yes
8342 else
8343 xorg_cv_cc_flag_unknown_warning_option=no
8344 fi
8345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8346 fi
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8348 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8349 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8350 CFLAGS="$xorg_testset_save_CFLAGS"
8351 fi
8352
8353 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8354 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8355 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8356 fi
8357 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8359 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8360 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8361 $as_echo_n "(cached) " >&6
8362 else
8363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8364 /* end confdefs.h. */
8365 int i;
8366 _ACEOF
8367 if ac_fn_c_try_compile "$LINENO"; then :
8368 xorg_cv_cc_flag_unused_command_line_argument=yes
8369 else
8370 xorg_cv_cc_flag_unused_command_line_argument=no
8371 fi
8372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8373 fi
8374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8375 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8376 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8377 CFLAGS="$xorg_testset_save_CFLAGS"
8378 fi
8379
8380 found="no"
8381
8382 if test $found = "no" ; then
8383 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8384 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8385 fi
8386
8387 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8388 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8389 fi
8390
8391 CFLAGS="$CFLAGS -Werror=address"
8392
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8394 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8395 cacheid=xorg_cv_cc_flag__Werror_address
8396 if eval \${$cacheid+:} false; then :
8397 $as_echo_n "(cached) " >&6
8398 else
8399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8400 /* end confdefs.h. */
8401 int i;
8402 int
8403 main ()
8404 {
8405
8406 ;
8407 return 0;
8408 }
8409 _ACEOF
8410 if ac_fn_c_try_link "$LINENO"; then :
8411 eval $cacheid=yes
8412 else
8413 eval $cacheid=no
8414 fi
8415 rm -f core conftest.err conftest.$ac_objext \
8416 conftest$ac_exeext conftest.$ac_ext
8417 fi
8418
8419
8420 CFLAGS="$xorg_testset_save_CFLAGS"
8421
8422 eval supported=\$$cacheid
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8424 $as_echo "$supported" >&6; }
8425 if test "$supported" = "yes" ; then
8426 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8427 found="yes"
8428 fi
8429 fi
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445 xorg_testset_save_CFLAGS="$CFLAGS"
8446
8447 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8448 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8450 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8451 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8452 $as_echo_n "(cached) " >&6
8453 else
8454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8455 /* end confdefs.h. */
8456 int i;
8457 _ACEOF
8458 if ac_fn_c_try_compile "$LINENO"; then :
8459 xorg_cv_cc_flag_unknown_warning_option=yes
8460 else
8461 xorg_cv_cc_flag_unknown_warning_option=no
8462 fi
8463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8464 fi
8465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8466 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8467 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8468 CFLAGS="$xorg_testset_save_CFLAGS"
8469 fi
8470
8471 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8472 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8473 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8474 fi
8475 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8477 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8478 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8479 $as_echo_n "(cached) " >&6
8480 else
8481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8482 /* end confdefs.h. */
8483 int i;
8484 _ACEOF
8485 if ac_fn_c_try_compile "$LINENO"; then :
8486 xorg_cv_cc_flag_unused_command_line_argument=yes
8487 else
8488 xorg_cv_cc_flag_unused_command_line_argument=no
8489 fi
8490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8491 fi
8492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8493 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8494 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8495 CFLAGS="$xorg_testset_save_CFLAGS"
8496 fi
8497
8498 found="no"
8499
8500 if test $found = "no" ; then
8501 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8502 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8503 fi
8504
8505 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8506 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8507 fi
8508
8509 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8510
8511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8512 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8513 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8514 if eval \${$cacheid+:} false; then :
8515 $as_echo_n "(cached) " >&6
8516 else
8517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8518 /* end confdefs.h. */
8519 int i;
8520 int
8521 main ()
8522 {
8523
8524 ;
8525 return 0;
8526 }
8527 _ACEOF
8528 if ac_fn_c_try_link "$LINENO"; then :
8529 eval $cacheid=yes
8530 else
8531 eval $cacheid=no
8532 fi
8533 rm -f core conftest.err conftest.$ac_objext \
8534 conftest$ac_exeext conftest.$ac_ext
8535 fi
8536
8537
8538 CFLAGS="$xorg_testset_save_CFLAGS"
8539
8540 eval supported=\$$cacheid
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8542 $as_echo "$supported" >&6; }
8543 if test "$supported" = "yes" ; then
8544 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8545 found="yes"
8546 fi
8547 fi
8548
8549 if test $found = "no" ; then
8550 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8551 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8552 fi
8553
8554 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8555 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8556 fi
8557
8558 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8559
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8561 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8562 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8563 if eval \${$cacheid+:} false; then :
8564 $as_echo_n "(cached) " >&6
8565 else
8566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8567 /* end confdefs.h. */
8568 int i;
8569 int
8570 main ()
8571 {
8572
8573 ;
8574 return 0;
8575 }
8576 _ACEOF
8577 if ac_fn_c_try_link "$LINENO"; then :
8578 eval $cacheid=yes
8579 else
8580 eval $cacheid=no
8581 fi
8582 rm -f core conftest.err conftest.$ac_objext \
8583 conftest$ac_exeext conftest.$ac_ext
8584 fi
8585
8586
8587 CFLAGS="$xorg_testset_save_CFLAGS"
8588
8589 eval supported=\$$cacheid
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8591 $as_echo "$supported" >&6; }
8592 if test "$supported" = "yes" ; then
8593 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8594 found="yes"
8595 fi
8596 fi
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612 xorg_testset_save_CFLAGS="$CFLAGS"
8613
8614 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8615 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8617 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8618 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8619 $as_echo_n "(cached) " >&6
8620 else
8621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8622 /* end confdefs.h. */
8623 int i;
8624 _ACEOF
8625 if ac_fn_c_try_compile "$LINENO"; then :
8626 xorg_cv_cc_flag_unknown_warning_option=yes
8627 else
8628 xorg_cv_cc_flag_unknown_warning_option=no
8629 fi
8630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8631 fi
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8633 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8634 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8635 CFLAGS="$xorg_testset_save_CFLAGS"
8636 fi
8637
8638 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8639 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8640 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8641 fi
8642 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8644 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8645 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8646 $as_echo_n "(cached) " >&6
8647 else
8648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8649 /* end confdefs.h. */
8650 int i;
8651 _ACEOF
8652 if ac_fn_c_try_compile "$LINENO"; then :
8653 xorg_cv_cc_flag_unused_command_line_argument=yes
8654 else
8655 xorg_cv_cc_flag_unused_command_line_argument=no
8656 fi
8657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8658 fi
8659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8660 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8661 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8662 CFLAGS="$xorg_testset_save_CFLAGS"
8663 fi
8664
8665 found="no"
8666
8667 if test $found = "no" ; then
8668 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8669 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8670 fi
8671
8672 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8673 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8674 fi
8675
8676 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8677
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8679 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8680 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8681 if eval \${$cacheid+:} false; then :
8682 $as_echo_n "(cached) " >&6
8683 else
8684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8685 /* end confdefs.h. */
8686 int i;
8687 int
8688 main ()
8689 {
8690
8691 ;
8692 return 0;
8693 }
8694 _ACEOF
8695 if ac_fn_c_try_link "$LINENO"; then :
8696 eval $cacheid=yes
8697 else
8698 eval $cacheid=no
8699 fi
8700 rm -f core conftest.err conftest.$ac_objext \
8701 conftest$ac_exeext conftest.$ac_ext
8702 fi
8703
8704
8705 CFLAGS="$xorg_testset_save_CFLAGS"
8706
8707 eval supported=\$$cacheid
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8709 $as_echo "$supported" >&6; }
8710 if test "$supported" = "yes" ; then
8711 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8712 found="yes"
8713 fi
8714 fi
8715
8716 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8717 else
8718 { $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
8719 $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;}
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733 xorg_testset_save_CFLAGS="$CFLAGS"
8734
8735 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8736 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8738 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8739 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8740 $as_echo_n "(cached) " >&6
8741 else
8742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8743 /* end confdefs.h. */
8744 int i;
8745 _ACEOF
8746 if ac_fn_c_try_compile "$LINENO"; then :
8747 xorg_cv_cc_flag_unknown_warning_option=yes
8748 else
8749 xorg_cv_cc_flag_unknown_warning_option=no
8750 fi
8751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8752 fi
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8754 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8755 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8756 CFLAGS="$xorg_testset_save_CFLAGS"
8757 fi
8758
8759 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8760 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8761 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8762 fi
8763 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8765 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8766 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8767 $as_echo_n "(cached) " >&6
8768 else
8769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8770 /* end confdefs.h. */
8771 int i;
8772 _ACEOF
8773 if ac_fn_c_try_compile "$LINENO"; then :
8774 xorg_cv_cc_flag_unused_command_line_argument=yes
8775 else
8776 xorg_cv_cc_flag_unused_command_line_argument=no
8777 fi
8778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8779 fi
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8781 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8782 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8783 CFLAGS="$xorg_testset_save_CFLAGS"
8784 fi
8785
8786 found="no"
8787
8788 if test $found = "no" ; then
8789 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8790 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8791 fi
8792
8793 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8794 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8795 fi
8796
8797 CFLAGS="$CFLAGS -Wimplicit"
8798
8799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8800 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8801 cacheid=xorg_cv_cc_flag__Wimplicit
8802 if eval \${$cacheid+:} false; then :
8803 $as_echo_n "(cached) " >&6
8804 else
8805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8806 /* end confdefs.h. */
8807 int i;
8808 int
8809 main ()
8810 {
8811
8812 ;
8813 return 0;
8814 }
8815 _ACEOF
8816 if ac_fn_c_try_link "$LINENO"; then :
8817 eval $cacheid=yes
8818 else
8819 eval $cacheid=no
8820 fi
8821 rm -f core conftest.err conftest.$ac_objext \
8822 conftest$ac_exeext conftest.$ac_ext
8823 fi
8824
8825
8826 CFLAGS="$xorg_testset_save_CFLAGS"
8827
8828 eval supported=\$$cacheid
8829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8830 $as_echo "$supported" >&6; }
8831 if test "$supported" = "yes" ; then
8832 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8833 found="yes"
8834 fi
8835 fi
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851 xorg_testset_save_CFLAGS="$CFLAGS"
8852
8853 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8854 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8856 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8857 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8858 $as_echo_n "(cached) " >&6
8859 else
8860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8861 /* end confdefs.h. */
8862 int i;
8863 _ACEOF
8864 if ac_fn_c_try_compile "$LINENO"; then :
8865 xorg_cv_cc_flag_unknown_warning_option=yes
8866 else
8867 xorg_cv_cc_flag_unknown_warning_option=no
8868 fi
8869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8870 fi
8871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8872 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8873 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8874 CFLAGS="$xorg_testset_save_CFLAGS"
8875 fi
8876
8877 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8878 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8879 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8880 fi
8881 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8883 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8884 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8885 $as_echo_n "(cached) " >&6
8886 else
8887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8888 /* end confdefs.h. */
8889 int i;
8890 _ACEOF
8891 if ac_fn_c_try_compile "$LINENO"; then :
8892 xorg_cv_cc_flag_unused_command_line_argument=yes
8893 else
8894 xorg_cv_cc_flag_unused_command_line_argument=no
8895 fi
8896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8897 fi
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8899 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8900 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8901 CFLAGS="$xorg_testset_save_CFLAGS"
8902 fi
8903
8904 found="no"
8905
8906 if test $found = "no" ; then
8907 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8908 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8909 fi
8910
8911 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8912 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8913 fi
8914
8915 CFLAGS="$CFLAGS -Wnonnull"
8916
8917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8918 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8919 cacheid=xorg_cv_cc_flag__Wnonnull
8920 if eval \${$cacheid+:} false; then :
8921 $as_echo_n "(cached) " >&6
8922 else
8923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8924 /* end confdefs.h. */
8925 int i;
8926 int
8927 main ()
8928 {
8929
8930 ;
8931 return 0;
8932 }
8933 _ACEOF
8934 if ac_fn_c_try_link "$LINENO"; then :
8935 eval $cacheid=yes
8936 else
8937 eval $cacheid=no
8938 fi
8939 rm -f core conftest.err conftest.$ac_objext \
8940 conftest$ac_exeext conftest.$ac_ext
8941 fi
8942
8943
8944 CFLAGS="$xorg_testset_save_CFLAGS"
8945
8946 eval supported=\$$cacheid
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8948 $as_echo "$supported" >&6; }
8949 if test "$supported" = "yes" ; then
8950 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8951 found="yes"
8952 fi
8953 fi
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969 xorg_testset_save_CFLAGS="$CFLAGS"
8970
8971 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8972 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8974 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8975 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8976 $as_echo_n "(cached) " >&6
8977 else
8978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8979 /* end confdefs.h. */
8980 int i;
8981 _ACEOF
8982 if ac_fn_c_try_compile "$LINENO"; then :
8983 xorg_cv_cc_flag_unknown_warning_option=yes
8984 else
8985 xorg_cv_cc_flag_unknown_warning_option=no
8986 fi
8987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8988 fi
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8990 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8991 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8992 CFLAGS="$xorg_testset_save_CFLAGS"
8993 fi
8994
8995 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8996 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8997 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8998 fi
8999 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9001 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9002 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9003 $as_echo_n "(cached) " >&6
9004 else
9005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9006 /* end confdefs.h. */
9007 int i;
9008 _ACEOF
9009 if ac_fn_c_try_compile "$LINENO"; then :
9010 xorg_cv_cc_flag_unused_command_line_argument=yes
9011 else
9012 xorg_cv_cc_flag_unused_command_line_argument=no
9013 fi
9014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9015 fi
9016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9017 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9018 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9019 CFLAGS="$xorg_testset_save_CFLAGS"
9020 fi
9021
9022 found="no"
9023
9024 if test $found = "no" ; then
9025 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9026 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9027 fi
9028
9029 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9030 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9031 fi
9032
9033 CFLAGS="$CFLAGS -Winit-self"
9034
9035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9036 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
9037 cacheid=xorg_cv_cc_flag__Winit_self
9038 if eval \${$cacheid+:} false; then :
9039 $as_echo_n "(cached) " >&6
9040 else
9041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9042 /* end confdefs.h. */
9043 int i;
9044 int
9045 main ()
9046 {
9047
9048 ;
9049 return 0;
9050 }
9051 _ACEOF
9052 if ac_fn_c_try_link "$LINENO"; then :
9053 eval $cacheid=yes
9054 else
9055 eval $cacheid=no
9056 fi
9057 rm -f core conftest.err conftest.$ac_objext \
9058 conftest$ac_exeext conftest.$ac_ext
9059 fi
9060
9061
9062 CFLAGS="$xorg_testset_save_CFLAGS"
9063
9064 eval supported=\$$cacheid
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9066 $as_echo "$supported" >&6; }
9067 if test "$supported" = "yes" ; then
9068 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9069 found="yes"
9070 fi
9071 fi
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087 xorg_testset_save_CFLAGS="$CFLAGS"
9088
9089 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9090 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9092 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9093 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9094 $as_echo_n "(cached) " >&6
9095 else
9096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9097 /* end confdefs.h. */
9098 int i;
9099 _ACEOF
9100 if ac_fn_c_try_compile "$LINENO"; then :
9101 xorg_cv_cc_flag_unknown_warning_option=yes
9102 else
9103 xorg_cv_cc_flag_unknown_warning_option=no
9104 fi
9105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9106 fi
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9108 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9109 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9110 CFLAGS="$xorg_testset_save_CFLAGS"
9111 fi
9112
9113 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9114 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9115 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9116 fi
9117 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9119 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9120 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9121 $as_echo_n "(cached) " >&6
9122 else
9123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9124 /* end confdefs.h. */
9125 int i;
9126 _ACEOF
9127 if ac_fn_c_try_compile "$LINENO"; then :
9128 xorg_cv_cc_flag_unused_command_line_argument=yes
9129 else
9130 xorg_cv_cc_flag_unused_command_line_argument=no
9131 fi
9132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9133 fi
9134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9135 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9136 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9137 CFLAGS="$xorg_testset_save_CFLAGS"
9138 fi
9139
9140 found="no"
9141
9142 if test $found = "no" ; then
9143 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9144 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9145 fi
9146
9147 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9148 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9149 fi
9150
9151 CFLAGS="$CFLAGS -Wmain"
9152
9153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9154 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
9155 cacheid=xorg_cv_cc_flag__Wmain
9156 if eval \${$cacheid+:} false; then :
9157 $as_echo_n "(cached) " >&6
9158 else
9159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9160 /* end confdefs.h. */
9161 int i;
9162 int
9163 main ()
9164 {
9165
9166 ;
9167 return 0;
9168 }
9169 _ACEOF
9170 if ac_fn_c_try_link "$LINENO"; then :
9171 eval $cacheid=yes
9172 else
9173 eval $cacheid=no
9174 fi
9175 rm -f core conftest.err conftest.$ac_objext \
9176 conftest$ac_exeext conftest.$ac_ext
9177 fi
9178
9179
9180 CFLAGS="$xorg_testset_save_CFLAGS"
9181
9182 eval supported=\$$cacheid
9183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9184 $as_echo "$supported" >&6; }
9185 if test "$supported" = "yes" ; then
9186 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9187 found="yes"
9188 fi
9189 fi
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205 xorg_testset_save_CFLAGS="$CFLAGS"
9206
9207 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9208 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9210 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9211 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9212 $as_echo_n "(cached) " >&6
9213 else
9214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9215 /* end confdefs.h. */
9216 int i;
9217 _ACEOF
9218 if ac_fn_c_try_compile "$LINENO"; then :
9219 xorg_cv_cc_flag_unknown_warning_option=yes
9220 else
9221 xorg_cv_cc_flag_unknown_warning_option=no
9222 fi
9223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9224 fi
9225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9226 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9227 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9228 CFLAGS="$xorg_testset_save_CFLAGS"
9229 fi
9230
9231 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9232 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9233 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9234 fi
9235 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9237 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9238 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9239 $as_echo_n "(cached) " >&6
9240 else
9241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9242 /* end confdefs.h. */
9243 int i;
9244 _ACEOF
9245 if ac_fn_c_try_compile "$LINENO"; then :
9246 xorg_cv_cc_flag_unused_command_line_argument=yes
9247 else
9248 xorg_cv_cc_flag_unused_command_line_argument=no
9249 fi
9250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9251 fi
9252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9253 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9254 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9255 CFLAGS="$xorg_testset_save_CFLAGS"
9256 fi
9257
9258 found="no"
9259
9260 if test $found = "no" ; then
9261 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9262 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9263 fi
9264
9265 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9266 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9267 fi
9268
9269 CFLAGS="$CFLAGS -Wmissing-braces"
9270
9271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9272 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9273 cacheid=xorg_cv_cc_flag__Wmissing_braces
9274 if eval \${$cacheid+:} false; then :
9275 $as_echo_n "(cached) " >&6
9276 else
9277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9278 /* end confdefs.h. */
9279 int i;
9280 int
9281 main ()
9282 {
9283
9284 ;
9285 return 0;
9286 }
9287 _ACEOF
9288 if ac_fn_c_try_link "$LINENO"; then :
9289 eval $cacheid=yes
9290 else
9291 eval $cacheid=no
9292 fi
9293 rm -f core conftest.err conftest.$ac_objext \
9294 conftest$ac_exeext conftest.$ac_ext
9295 fi
9296
9297
9298 CFLAGS="$xorg_testset_save_CFLAGS"
9299
9300 eval supported=\$$cacheid
9301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9302 $as_echo "$supported" >&6; }
9303 if test "$supported" = "yes" ; then
9304 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9305 found="yes"
9306 fi
9307 fi
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323 xorg_testset_save_CFLAGS="$CFLAGS"
9324
9325 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9326 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9328 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9329 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9330 $as_echo_n "(cached) " >&6
9331 else
9332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9333 /* end confdefs.h. */
9334 int i;
9335 _ACEOF
9336 if ac_fn_c_try_compile "$LINENO"; then :
9337 xorg_cv_cc_flag_unknown_warning_option=yes
9338 else
9339 xorg_cv_cc_flag_unknown_warning_option=no
9340 fi
9341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9342 fi
9343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9344 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9345 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9346 CFLAGS="$xorg_testset_save_CFLAGS"
9347 fi
9348
9349 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9350 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9351 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9352 fi
9353 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9355 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9356 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9357 $as_echo_n "(cached) " >&6
9358 else
9359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9360 /* end confdefs.h. */
9361 int i;
9362 _ACEOF
9363 if ac_fn_c_try_compile "$LINENO"; then :
9364 xorg_cv_cc_flag_unused_command_line_argument=yes
9365 else
9366 xorg_cv_cc_flag_unused_command_line_argument=no
9367 fi
9368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9369 fi
9370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9371 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9372 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9373 CFLAGS="$xorg_testset_save_CFLAGS"
9374 fi
9375
9376 found="no"
9377
9378 if test $found = "no" ; then
9379 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9380 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9381 fi
9382
9383 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9384 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9385 fi
9386
9387 CFLAGS="$CFLAGS -Wsequence-point"
9388
9389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9390 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9391 cacheid=xorg_cv_cc_flag__Wsequence_point
9392 if eval \${$cacheid+:} false; then :
9393 $as_echo_n "(cached) " >&6
9394 else
9395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9396 /* end confdefs.h. */
9397 int i;
9398 int
9399 main ()
9400 {
9401
9402 ;
9403 return 0;
9404 }
9405 _ACEOF
9406 if ac_fn_c_try_link "$LINENO"; then :
9407 eval $cacheid=yes
9408 else
9409 eval $cacheid=no
9410 fi
9411 rm -f core conftest.err conftest.$ac_objext \
9412 conftest$ac_exeext conftest.$ac_ext
9413 fi
9414
9415
9416 CFLAGS="$xorg_testset_save_CFLAGS"
9417
9418 eval supported=\$$cacheid
9419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9420 $as_echo "$supported" >&6; }
9421 if test "$supported" = "yes" ; then
9422 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9423 found="yes"
9424 fi
9425 fi
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441 xorg_testset_save_CFLAGS="$CFLAGS"
9442
9443 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9444 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9446 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9447 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9448 $as_echo_n "(cached) " >&6
9449 else
9450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9451 /* end confdefs.h. */
9452 int i;
9453 _ACEOF
9454 if ac_fn_c_try_compile "$LINENO"; then :
9455 xorg_cv_cc_flag_unknown_warning_option=yes
9456 else
9457 xorg_cv_cc_flag_unknown_warning_option=no
9458 fi
9459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9460 fi
9461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9462 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9463 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9464 CFLAGS="$xorg_testset_save_CFLAGS"
9465 fi
9466
9467 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9468 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9469 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9470 fi
9471 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9473 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9474 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9475 $as_echo_n "(cached) " >&6
9476 else
9477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9478 /* end confdefs.h. */
9479 int i;
9480 _ACEOF
9481 if ac_fn_c_try_compile "$LINENO"; then :
9482 xorg_cv_cc_flag_unused_command_line_argument=yes
9483 else
9484 xorg_cv_cc_flag_unused_command_line_argument=no
9485 fi
9486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9487 fi
9488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9489 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9490 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9491 CFLAGS="$xorg_testset_save_CFLAGS"
9492 fi
9493
9494 found="no"
9495
9496 if test $found = "no" ; then
9497 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9498 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9499 fi
9500
9501 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9502 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9503 fi
9504
9505 CFLAGS="$CFLAGS -Wreturn-type"
9506
9507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9508 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9509 cacheid=xorg_cv_cc_flag__Wreturn_type
9510 if eval \${$cacheid+:} false; then :
9511 $as_echo_n "(cached) " >&6
9512 else
9513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9514 /* end confdefs.h. */
9515 int i;
9516 int
9517 main ()
9518 {
9519
9520 ;
9521 return 0;
9522 }
9523 _ACEOF
9524 if ac_fn_c_try_link "$LINENO"; then :
9525 eval $cacheid=yes
9526 else
9527 eval $cacheid=no
9528 fi
9529 rm -f core conftest.err conftest.$ac_objext \
9530 conftest$ac_exeext conftest.$ac_ext
9531 fi
9532
9533
9534 CFLAGS="$xorg_testset_save_CFLAGS"
9535
9536 eval supported=\$$cacheid
9537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9538 $as_echo "$supported" >&6; }
9539 if test "$supported" = "yes" ; then
9540 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9541 found="yes"
9542 fi
9543 fi
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559 xorg_testset_save_CFLAGS="$CFLAGS"
9560
9561 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9562 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9564 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9565 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9566 $as_echo_n "(cached) " >&6
9567 else
9568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9569 /* end confdefs.h. */
9570 int i;
9571 _ACEOF
9572 if ac_fn_c_try_compile "$LINENO"; then :
9573 xorg_cv_cc_flag_unknown_warning_option=yes
9574 else
9575 xorg_cv_cc_flag_unknown_warning_option=no
9576 fi
9577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9578 fi
9579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9580 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9581 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9582 CFLAGS="$xorg_testset_save_CFLAGS"
9583 fi
9584
9585 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9586 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9587 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9588 fi
9589 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9591 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9592 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9593 $as_echo_n "(cached) " >&6
9594 else
9595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9596 /* end confdefs.h. */
9597 int i;
9598 _ACEOF
9599 if ac_fn_c_try_compile "$LINENO"; then :
9600 xorg_cv_cc_flag_unused_command_line_argument=yes
9601 else
9602 xorg_cv_cc_flag_unused_command_line_argument=no
9603 fi
9604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9605 fi
9606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9607 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9608 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9609 CFLAGS="$xorg_testset_save_CFLAGS"
9610 fi
9611
9612 found="no"
9613
9614 if test $found = "no" ; then
9615 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9616 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9617 fi
9618
9619 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9620 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9621 fi
9622
9623 CFLAGS="$CFLAGS -Wtrigraphs"
9624
9625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9626 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9627 cacheid=xorg_cv_cc_flag__Wtrigraphs
9628 if eval \${$cacheid+:} false; then :
9629 $as_echo_n "(cached) " >&6
9630 else
9631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9632 /* end confdefs.h. */
9633 int i;
9634 int
9635 main ()
9636 {
9637
9638 ;
9639 return 0;
9640 }
9641 _ACEOF
9642 if ac_fn_c_try_link "$LINENO"; then :
9643 eval $cacheid=yes
9644 else
9645 eval $cacheid=no
9646 fi
9647 rm -f core conftest.err conftest.$ac_objext \
9648 conftest$ac_exeext conftest.$ac_ext
9649 fi
9650
9651
9652 CFLAGS="$xorg_testset_save_CFLAGS"
9653
9654 eval supported=\$$cacheid
9655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9656 $as_echo "$supported" >&6; }
9657 if test "$supported" = "yes" ; then
9658 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9659 found="yes"
9660 fi
9661 fi
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677 xorg_testset_save_CFLAGS="$CFLAGS"
9678
9679 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9680 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9682 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9683 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9684 $as_echo_n "(cached) " >&6
9685 else
9686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9687 /* end confdefs.h. */
9688 int i;
9689 _ACEOF
9690 if ac_fn_c_try_compile "$LINENO"; then :
9691 xorg_cv_cc_flag_unknown_warning_option=yes
9692 else
9693 xorg_cv_cc_flag_unknown_warning_option=no
9694 fi
9695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9696 fi
9697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9698 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9699 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9700 CFLAGS="$xorg_testset_save_CFLAGS"
9701 fi
9702
9703 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9704 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9705 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9706 fi
9707 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9709 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9710 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9711 $as_echo_n "(cached) " >&6
9712 else
9713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9714 /* end confdefs.h. */
9715 int i;
9716 _ACEOF
9717 if ac_fn_c_try_compile "$LINENO"; then :
9718 xorg_cv_cc_flag_unused_command_line_argument=yes
9719 else
9720 xorg_cv_cc_flag_unused_command_line_argument=no
9721 fi
9722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9723 fi
9724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9725 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9726 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9727 CFLAGS="$xorg_testset_save_CFLAGS"
9728 fi
9729
9730 found="no"
9731
9732 if test $found = "no" ; then
9733 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9734 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9735 fi
9736
9737 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9738 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9739 fi
9740
9741 CFLAGS="$CFLAGS -Warray-bounds"
9742
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9744 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9745 cacheid=xorg_cv_cc_flag__Warray_bounds
9746 if eval \${$cacheid+:} false; then :
9747 $as_echo_n "(cached) " >&6
9748 else
9749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9750 /* end confdefs.h. */
9751 int i;
9752 int
9753 main ()
9754 {
9755
9756 ;
9757 return 0;
9758 }
9759 _ACEOF
9760 if ac_fn_c_try_link "$LINENO"; then :
9761 eval $cacheid=yes
9762 else
9763 eval $cacheid=no
9764 fi
9765 rm -f core conftest.err conftest.$ac_objext \
9766 conftest$ac_exeext conftest.$ac_ext
9767 fi
9768
9769
9770 CFLAGS="$xorg_testset_save_CFLAGS"
9771
9772 eval supported=\$$cacheid
9773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9774 $as_echo "$supported" >&6; }
9775 if test "$supported" = "yes" ; then
9776 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9777 found="yes"
9778 fi
9779 fi
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795 xorg_testset_save_CFLAGS="$CFLAGS"
9796
9797 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9798 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9800 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9801 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9802 $as_echo_n "(cached) " >&6
9803 else
9804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9805 /* end confdefs.h. */
9806 int i;
9807 _ACEOF
9808 if ac_fn_c_try_compile "$LINENO"; then :
9809 xorg_cv_cc_flag_unknown_warning_option=yes
9810 else
9811 xorg_cv_cc_flag_unknown_warning_option=no
9812 fi
9813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9814 fi
9815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9816 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9817 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9818 CFLAGS="$xorg_testset_save_CFLAGS"
9819 fi
9820
9821 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9822 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9823 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9824 fi
9825 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9827 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9828 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9829 $as_echo_n "(cached) " >&6
9830 else
9831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9832 /* end confdefs.h. */
9833 int i;
9834 _ACEOF
9835 if ac_fn_c_try_compile "$LINENO"; then :
9836 xorg_cv_cc_flag_unused_command_line_argument=yes
9837 else
9838 xorg_cv_cc_flag_unused_command_line_argument=no
9839 fi
9840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9841 fi
9842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9843 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9844 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9845 CFLAGS="$xorg_testset_save_CFLAGS"
9846 fi
9847
9848 found="no"
9849
9850 if test $found = "no" ; then
9851 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9852 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9853 fi
9854
9855 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9856 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9857 fi
9858
9859 CFLAGS="$CFLAGS -Wwrite-strings"
9860
9861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9862 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9863 cacheid=xorg_cv_cc_flag__Wwrite_strings
9864 if eval \${$cacheid+:} false; then :
9865 $as_echo_n "(cached) " >&6
9866 else
9867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9868 /* end confdefs.h. */
9869 int i;
9870 int
9871 main ()
9872 {
9873
9874 ;
9875 return 0;
9876 }
9877 _ACEOF
9878 if ac_fn_c_try_link "$LINENO"; then :
9879 eval $cacheid=yes
9880 else
9881 eval $cacheid=no
9882 fi
9883 rm -f core conftest.err conftest.$ac_objext \
9884 conftest$ac_exeext conftest.$ac_ext
9885 fi
9886
9887
9888 CFLAGS="$xorg_testset_save_CFLAGS"
9889
9890 eval supported=\$$cacheid
9891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9892 $as_echo "$supported" >&6; }
9893 if test "$supported" = "yes" ; then
9894 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9895 found="yes"
9896 fi
9897 fi
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913 xorg_testset_save_CFLAGS="$CFLAGS"
9914
9915 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9916 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9918 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9919 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9920 $as_echo_n "(cached) " >&6
9921 else
9922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9923 /* end confdefs.h. */
9924 int i;
9925 _ACEOF
9926 if ac_fn_c_try_compile "$LINENO"; then :
9927 xorg_cv_cc_flag_unknown_warning_option=yes
9928 else
9929 xorg_cv_cc_flag_unknown_warning_option=no
9930 fi
9931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9932 fi
9933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9934 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9935 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9936 CFLAGS="$xorg_testset_save_CFLAGS"
9937 fi
9938
9939 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9940 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9941 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9942 fi
9943 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9945 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9946 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9947 $as_echo_n "(cached) " >&6
9948 else
9949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9950 /* end confdefs.h. */
9951 int i;
9952 _ACEOF
9953 if ac_fn_c_try_compile "$LINENO"; then :
9954 xorg_cv_cc_flag_unused_command_line_argument=yes
9955 else
9956 xorg_cv_cc_flag_unused_command_line_argument=no
9957 fi
9958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9959 fi
9960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9961 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9962 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9963 CFLAGS="$xorg_testset_save_CFLAGS"
9964 fi
9965
9966 found="no"
9967
9968 if test $found = "no" ; then
9969 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9970 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9971 fi
9972
9973 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9974 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9975 fi
9976
9977 CFLAGS="$CFLAGS -Waddress"
9978
9979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9980 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
9981 cacheid=xorg_cv_cc_flag__Waddress
9982 if eval \${$cacheid+:} false; then :
9983 $as_echo_n "(cached) " >&6
9984 else
9985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9986 /* end confdefs.h. */
9987 int i;
9988 int
9989 main ()
9990 {
9991
9992 ;
9993 return 0;
9994 }
9995 _ACEOF
9996 if ac_fn_c_try_link "$LINENO"; then :
9997 eval $cacheid=yes
9998 else
9999 eval $cacheid=no
10000 fi
10001 rm -f core conftest.err conftest.$ac_objext \
10002 conftest$ac_exeext conftest.$ac_ext
10003 fi
10004
10005
10006 CFLAGS="$xorg_testset_save_CFLAGS"
10007
10008 eval supported=\$$cacheid
10009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10010 $as_echo "$supported" >&6; }
10011 if test "$supported" = "yes" ; then
10012 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10013 found="yes"
10014 fi
10015 fi
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031 xorg_testset_save_CFLAGS="$CFLAGS"
10032
10033 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10034 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10036 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10037 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10038 $as_echo_n "(cached) " >&6
10039 else
10040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10041 /* end confdefs.h. */
10042 int i;
10043 _ACEOF
10044 if ac_fn_c_try_compile "$LINENO"; then :
10045 xorg_cv_cc_flag_unknown_warning_option=yes
10046 else
10047 xorg_cv_cc_flag_unknown_warning_option=no
10048 fi
10049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10050 fi
10051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10052 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10053 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10054 CFLAGS="$xorg_testset_save_CFLAGS"
10055 fi
10056
10057 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10058 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10059 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10060 fi
10061 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10063 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10064 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10065 $as_echo_n "(cached) " >&6
10066 else
10067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10068 /* end confdefs.h. */
10069 int i;
10070 _ACEOF
10071 if ac_fn_c_try_compile "$LINENO"; then :
10072 xorg_cv_cc_flag_unused_command_line_argument=yes
10073 else
10074 xorg_cv_cc_flag_unused_command_line_argument=no
10075 fi
10076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10077 fi
10078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10079 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10080 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10081 CFLAGS="$xorg_testset_save_CFLAGS"
10082 fi
10083
10084 found="no"
10085
10086 if test $found = "no" ; then
10087 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10088 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10089 fi
10090
10091 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10092 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10093 fi
10094
10095 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10096
10097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10098 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10099 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10100 if eval \${$cacheid+:} false; then :
10101 $as_echo_n "(cached) " >&6
10102 else
10103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10104 /* end confdefs.h. */
10105 int i;
10106 int
10107 main ()
10108 {
10109
10110 ;
10111 return 0;
10112 }
10113 _ACEOF
10114 if ac_fn_c_try_link "$LINENO"; then :
10115 eval $cacheid=yes
10116 else
10117 eval $cacheid=no
10118 fi
10119 rm -f core conftest.err conftest.$ac_objext \
10120 conftest$ac_exeext conftest.$ac_ext
10121 fi
10122
10123
10124 CFLAGS="$xorg_testset_save_CFLAGS"
10125
10126 eval supported=\$$cacheid
10127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10128 $as_echo "$supported" >&6; }
10129 if test "$supported" = "yes" ; then
10130 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10131 found="yes"
10132 fi
10133 fi
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149 xorg_testset_save_CFLAGS="$CFLAGS"
10150
10151 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10152 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10154 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10155 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10156 $as_echo_n "(cached) " >&6
10157 else
10158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10159 /* end confdefs.h. */
10160 int i;
10161 _ACEOF
10162 if ac_fn_c_try_compile "$LINENO"; then :
10163 xorg_cv_cc_flag_unknown_warning_option=yes
10164 else
10165 xorg_cv_cc_flag_unknown_warning_option=no
10166 fi
10167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10168 fi
10169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10170 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10171 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10172 CFLAGS="$xorg_testset_save_CFLAGS"
10173 fi
10174
10175 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10176 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10177 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10178 fi
10179 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10181 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10182 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10183 $as_echo_n "(cached) " >&6
10184 else
10185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10186 /* end confdefs.h. */
10187 int i;
10188 _ACEOF
10189 if ac_fn_c_try_compile "$LINENO"; then :
10190 xorg_cv_cc_flag_unused_command_line_argument=yes
10191 else
10192 xorg_cv_cc_flag_unused_command_line_argument=no
10193 fi
10194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10195 fi
10196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10197 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10198 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10199 CFLAGS="$xorg_testset_save_CFLAGS"
10200 fi
10201
10202 found="no"
10203
10204 if test $found = "no" ; then
10205 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10206 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10207 fi
10208
10209 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10210 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10211 fi
10212
10213 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10214
10215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10216 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10217 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10218 if eval \${$cacheid+:} false; then :
10219 $as_echo_n "(cached) " >&6
10220 else
10221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10222 /* end confdefs.h. */
10223 int i;
10224 int
10225 main ()
10226 {
10227
10228 ;
10229 return 0;
10230 }
10231 _ACEOF
10232 if ac_fn_c_try_link "$LINENO"; then :
10233 eval $cacheid=yes
10234 else
10235 eval $cacheid=no
10236 fi
10237 rm -f core conftest.err conftest.$ac_objext \
10238 conftest$ac_exeext conftest.$ac_ext
10239 fi
10240
10241
10242 CFLAGS="$xorg_testset_save_CFLAGS"
10243
10244 eval supported=\$$cacheid
10245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10246 $as_echo "$supported" >&6; }
10247 if test "$supported" = "yes" ; then
10248 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10249 found="yes"
10250 fi
10251 fi
10252
10253
10254 fi
10255
10256
10257
10258
10259
10260
10261
10262 CWARNFLAGS="$BASE_CFLAGS"
10263 if test "x$GCC" = xyes ; then
10264 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10265 fi
10266
10267
10268
10269
10270
10271
10272
10273
10274 # Check whether --enable-strict-compilation was given.
10275 if test "${enable_strict_compilation+set}" = set; then :
10276 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10277 else
10278 STRICT_COMPILE=no
10279 fi
10280
10281
10282
10283
10284
10285
10286 STRICT_CFLAGS=""
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300 xorg_testset_save_CFLAGS="$CFLAGS"
10301
10302 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10303 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10305 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10306 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10307 $as_echo_n "(cached) " >&6
10308 else
10309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10310 /* end confdefs.h. */
10311 int i;
10312 _ACEOF
10313 if ac_fn_c_try_compile "$LINENO"; then :
10314 xorg_cv_cc_flag_unknown_warning_option=yes
10315 else
10316 xorg_cv_cc_flag_unknown_warning_option=no
10317 fi
10318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10319 fi
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10321 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10322 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10323 CFLAGS="$xorg_testset_save_CFLAGS"
10324 fi
10325
10326 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10327 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10328 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10329 fi
10330 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10332 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10333 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10334 $as_echo_n "(cached) " >&6
10335 else
10336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10337 /* end confdefs.h. */
10338 int i;
10339 _ACEOF
10340 if ac_fn_c_try_compile "$LINENO"; then :
10341 xorg_cv_cc_flag_unused_command_line_argument=yes
10342 else
10343 xorg_cv_cc_flag_unused_command_line_argument=no
10344 fi
10345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10346 fi
10347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10348 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10349 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10350 CFLAGS="$xorg_testset_save_CFLAGS"
10351 fi
10352
10353 found="no"
10354
10355 if test $found = "no" ; then
10356 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10357 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10358 fi
10359
10360 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10361 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10362 fi
10363
10364 CFLAGS="$CFLAGS -pedantic"
10365
10366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10367 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
10368 cacheid=xorg_cv_cc_flag__pedantic
10369 if eval \${$cacheid+:} false; then :
10370 $as_echo_n "(cached) " >&6
10371 else
10372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10373 /* end confdefs.h. */
10374 int i;
10375 int
10376 main ()
10377 {
10378
10379 ;
10380 return 0;
10381 }
10382 _ACEOF
10383 if ac_fn_c_try_link "$LINENO"; then :
10384 eval $cacheid=yes
10385 else
10386 eval $cacheid=no
10387 fi
10388 rm -f core conftest.err conftest.$ac_objext \
10389 conftest$ac_exeext conftest.$ac_ext
10390 fi
10391
10392
10393 CFLAGS="$xorg_testset_save_CFLAGS"
10394
10395 eval supported=\$$cacheid
10396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10397 $as_echo "$supported" >&6; }
10398 if test "$supported" = "yes" ; then
10399 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10400 found="yes"
10401 fi
10402 fi
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418 xorg_testset_save_CFLAGS="$CFLAGS"
10419
10420 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10421 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10423 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10424 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10425 $as_echo_n "(cached) " >&6
10426 else
10427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10428 /* end confdefs.h. */
10429 int i;
10430 _ACEOF
10431 if ac_fn_c_try_compile "$LINENO"; then :
10432 xorg_cv_cc_flag_unknown_warning_option=yes
10433 else
10434 xorg_cv_cc_flag_unknown_warning_option=no
10435 fi
10436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10437 fi
10438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10439 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10440 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10441 CFLAGS="$xorg_testset_save_CFLAGS"
10442 fi
10443
10444 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10445 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10446 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10447 fi
10448 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10450 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10451 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10452 $as_echo_n "(cached) " >&6
10453 else
10454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10455 /* end confdefs.h. */
10456 int i;
10457 _ACEOF
10458 if ac_fn_c_try_compile "$LINENO"; then :
10459 xorg_cv_cc_flag_unused_command_line_argument=yes
10460 else
10461 xorg_cv_cc_flag_unused_command_line_argument=no
10462 fi
10463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10464 fi
10465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10466 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10467 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10468 CFLAGS="$xorg_testset_save_CFLAGS"
10469 fi
10470
10471 found="no"
10472
10473 if test $found = "no" ; then
10474 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10475 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10476 fi
10477
10478 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10479 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10480 fi
10481
10482 CFLAGS="$CFLAGS -Werror"
10483
10484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10485 $as_echo_n "checking if $CC supports -Werror... " >&6; }
10486 cacheid=xorg_cv_cc_flag__Werror
10487 if eval \${$cacheid+:} false; then :
10488 $as_echo_n "(cached) " >&6
10489 else
10490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10491 /* end confdefs.h. */
10492 int i;
10493 int
10494 main ()
10495 {
10496
10497 ;
10498 return 0;
10499 }
10500 _ACEOF
10501 if ac_fn_c_try_link "$LINENO"; then :
10502 eval $cacheid=yes
10503 else
10504 eval $cacheid=no
10505 fi
10506 rm -f core conftest.err conftest.$ac_objext \
10507 conftest$ac_exeext conftest.$ac_ext
10508 fi
10509
10510
10511 CFLAGS="$xorg_testset_save_CFLAGS"
10512
10513 eval supported=\$$cacheid
10514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10515 $as_echo "$supported" >&6; }
10516 if test "$supported" = "yes" ; then
10517 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10518 found="yes"
10519 fi
10520 fi
10521
10522 if test $found = "no" ; then
10523 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10524 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10525 fi
10526
10527 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10528 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10529 fi
10530
10531 CFLAGS="$CFLAGS -errwarn"
10532
10533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10534 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
10535 cacheid=xorg_cv_cc_flag__errwarn
10536 if eval \${$cacheid+:} false; then :
10537 $as_echo_n "(cached) " >&6
10538 else
10539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10540 /* end confdefs.h. */
10541 int i;
10542 int
10543 main ()
10544 {
10545
10546 ;
10547 return 0;
10548 }
10549 _ACEOF
10550 if ac_fn_c_try_link "$LINENO"; then :
10551 eval $cacheid=yes
10552 else
10553 eval $cacheid=no
10554 fi
10555 rm -f core conftest.err conftest.$ac_objext \
10556 conftest$ac_exeext conftest.$ac_ext
10557 fi
10558
10559
10560 CFLAGS="$xorg_testset_save_CFLAGS"
10561
10562 eval supported=\$$cacheid
10563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10564 $as_echo "$supported" >&6; }
10565 if test "$supported" = "yes" ; then
10566 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10567 found="yes"
10568 fi
10569 fi
10570
10571
10572
10573 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10574 # activate it with -Werror, so we add it here explicitly.
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588 xorg_testset_save_CFLAGS="$CFLAGS"
10589
10590 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10591 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10593 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10594 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10595 $as_echo_n "(cached) " >&6
10596 else
10597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10598 /* end confdefs.h. */
10599 int i;
10600 _ACEOF
10601 if ac_fn_c_try_compile "$LINENO"; then :
10602 xorg_cv_cc_flag_unknown_warning_option=yes
10603 else
10604 xorg_cv_cc_flag_unknown_warning_option=no
10605 fi
10606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10607 fi
10608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10609 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10610 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10611 CFLAGS="$xorg_testset_save_CFLAGS"
10612 fi
10613
10614 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10615 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10616 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10617 fi
10618 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10620 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10621 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10622 $as_echo_n "(cached) " >&6
10623 else
10624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10625 /* end confdefs.h. */
10626 int i;
10627 _ACEOF
10628 if ac_fn_c_try_compile "$LINENO"; then :
10629 xorg_cv_cc_flag_unused_command_line_argument=yes
10630 else
10631 xorg_cv_cc_flag_unused_command_line_argument=no
10632 fi
10633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10634 fi
10635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10636 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10637 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10638 CFLAGS="$xorg_testset_save_CFLAGS"
10639 fi
10640
10641 found="no"
10642
10643 if test $found = "no" ; then
10644 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10645 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10646 fi
10647
10648 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10649 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10650 fi
10651
10652 CFLAGS="$CFLAGS -Werror=attributes"
10653
10654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10655 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10656 cacheid=xorg_cv_cc_flag__Werror_attributes
10657 if eval \${$cacheid+:} false; then :
10658 $as_echo_n "(cached) " >&6
10659 else
10660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10661 /* end confdefs.h. */
10662 int i;
10663 int
10664 main ()
10665 {
10666
10667 ;
10668 return 0;
10669 }
10670 _ACEOF
10671 if ac_fn_c_try_link "$LINENO"; then :
10672 eval $cacheid=yes
10673 else
10674 eval $cacheid=no
10675 fi
10676 rm -f core conftest.err conftest.$ac_objext \
10677 conftest$ac_exeext conftest.$ac_ext
10678 fi
10679
10680
10681 CFLAGS="$xorg_testset_save_CFLAGS"
10682
10683 eval supported=\$$cacheid
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10685 $as_echo "$supported" >&6; }
10686 if test "$supported" = "yes" ; then
10687 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10688 found="yes"
10689 fi
10690 fi
10691
10692
10693
10694 if test "x$STRICT_COMPILE" = "xyes"; then
10695 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10696 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10697 fi
10698
10699
10700
10701
10702
10703
10704 cat >>confdefs.h <<_ACEOF
10705 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10706 _ACEOF
10707
10708 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10709 if test "x$PVM" = "x"; then
10710 PVM="0"
10711 fi
10712
10713 cat >>confdefs.h <<_ACEOF
10714 #define PACKAGE_VERSION_MINOR $PVM
10715 _ACEOF
10716
10717 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10718 if test "x$PVP" = "x"; then
10719 PVP="0"
10720 fi
10721
10722 cat >>confdefs.h <<_ACEOF
10723 #define PACKAGE_VERSION_PATCHLEVEL $PVP
10724 _ACEOF
10725
10726
10727
10728 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10729 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10730 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10731 echo 'git directory not found: installing possibly empty changelog.' >&2)"
10732
10733
10734
10735
10736 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10737 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10738 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10739 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10740 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10741
10742
10743
10744
10745
10746
10747 if test x$APP_MAN_SUFFIX = x ; then
10748 APP_MAN_SUFFIX=1
10749 fi
10750 if test x$APP_MAN_DIR = x ; then
10751 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10752 fi
10753
10754 if test x$LIB_MAN_SUFFIX = x ; then
10755 LIB_MAN_SUFFIX=3
10756 fi
10757 if test x$LIB_MAN_DIR = x ; then
10758 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10759 fi
10760
10761 if test x$FILE_MAN_SUFFIX = x ; then
10762 case $host_os in
10763 solaris*) FILE_MAN_SUFFIX=4 ;;
10764 *) FILE_MAN_SUFFIX=5 ;;
10765 esac
10766 fi
10767 if test x$FILE_MAN_DIR = x ; then
10768 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10769 fi
10770
10771 if test x$MISC_MAN_SUFFIX = x ; then
10772 case $host_os in
10773 solaris*) MISC_MAN_SUFFIX=5 ;;
10774 *) MISC_MAN_SUFFIX=7 ;;
10775 esac
10776 fi
10777 if test x$MISC_MAN_DIR = x ; then
10778 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10779 fi
10780
10781 if test x$DRIVER_MAN_SUFFIX = x ; then
10782 case $host_os in
10783 solaris*) DRIVER_MAN_SUFFIX=7 ;;
10784 *) DRIVER_MAN_SUFFIX=4 ;;
10785 esac
10786 fi
10787 if test x$DRIVER_MAN_DIR = x ; then
10788 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10789 fi
10790
10791 if test x$ADMIN_MAN_SUFFIX = x ; then
10792 case $host_os in
10793 solaris*) ADMIN_MAN_SUFFIX=1m ;;
10794 *) ADMIN_MAN_SUFFIX=8 ;;
10795 esac
10796 fi
10797 if test x$ADMIN_MAN_DIR = x ; then
10798 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10799 fi
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815 XORG_MAN_PAGE="X Version 11"
10816
10817 MAN_SUBSTS="\
10818 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10819 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10820 -e 's|__xservername__|Xorg|g' \
10821 -e 's|__xconfigfile__|xorg.conf|g' \
10822 -e 's|__projectroot__|\$(prefix)|g' \
10823 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
10824 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10825 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10826 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10827 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10828 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10829 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10830
10831
10832
10833 # Check whether --enable-silent-rules was given.
10834 if test "${enable_silent_rules+set}" = set; then :
10835 enableval=$enable_silent_rules;
10836 fi
10837
10838 case $enable_silent_rules in # (((
10839 yes) AM_DEFAULT_VERBOSITY=0;;
10840 no) AM_DEFAULT_VERBOSITY=1;;
10841 *) AM_DEFAULT_VERBOSITY=0;;
10842 esac
10843 am_make=${MAKE-make}
10844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10845 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10846 if ${am_cv_make_support_nested_variables+:} false; then :
10847 $as_echo_n "(cached) " >&6
10848 else
10849 if $as_echo 'TRUE=$(BAR$(V))
10850 BAR0=false
10851 BAR1=true
10852 V=1
10853 am__doit:
10854 @$(TRUE)
10855 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10856 am_cv_make_support_nested_variables=yes
10857 else
10858 am_cv_make_support_nested_variables=no
10859 fi
10860 fi
10861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10862 $as_echo "$am_cv_make_support_nested_variables" >&6; }
10863 if test $am_cv_make_support_nested_variables = yes; then
10864 AM_V='$(V)'
10865 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10866 else
10867 AM_V=$AM_DEFAULT_VERBOSITY
10868 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10869 fi
10870 AM_BACKSLASH='\'
10871
10872
10873
10874 # Initialize libtool
10875 # Check whether --enable-static was given.
10876 if test "${enable_static+set}" = set; then :
10877 enableval=$enable_static; p=${PACKAGE-default}
10878 case $enableval in
10879 yes) enable_static=yes ;;
10880 no) enable_static=no ;;
10881 *)
10882 enable_static=no
10883 # Look at the argument we got. We use all the common list separators.
10884 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10885 for pkg in $enableval; do
10886 IFS=$lt_save_ifs
10887 if test "X$pkg" = "X$p"; then
10888 enable_static=yes
10889 fi
10890 done
10891 IFS=$lt_save_ifs
10892 ;;
10893 esac
10894 else
10895 enable_static=no
10896 fi
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906 case `pwd` in
10907 *\ * | *\ *)
10908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10909 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10910 esac
10911
10912
10913
10914 macro_version='2.4.6'
10915 macro_revision='2.4.6'
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929 ltmain=$ac_aux_dir/ltmain.sh
10930
10931 # Backslashify metacharacters that are still active within
10932 # double-quoted strings.
10933 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10934
10935 # Same as above, but do not quote variable references.
10936 double_quote_subst='s/\(["`\\]\)/\\\1/g'
10937
10938 # Sed substitution to delay expansion of an escaped shell variable in a
10939 # double_quote_subst'ed string.
10940 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10941
10942 # Sed substitution to delay expansion of an escaped single quote.
10943 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10944
10945 # Sed substitution to avoid accidental globbing in evaled expressions
10946 no_glob_subst='s/\*/\\\*/g'
10947
10948 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10949 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
10950 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
10951
10952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
10953 $as_echo_n "checking how to print strings... " >&6; }
10954 # Test print first, because it will be a builtin if present.
10955 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
10956 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
10957 ECHO='print -r --'
10958 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
10959 ECHO='printf %s\n'
10960 else
10961 # Use this function as a fallback that always works.
10962 func_fallback_echo ()
10963 {
10964 eval 'cat <<_LTECHO_EOF
10965 $1
10966 _LTECHO_EOF'
10967 }
10968 ECHO='func_fallback_echo'
10969 fi
10970
10971 # func_echo_all arg...
10972 # Invoke $ECHO with all args, space-separated.
10973 func_echo_all ()
10974 {
10975 $ECHO ""
10976 }
10977
10978 case $ECHO in
10979 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
10980 $as_echo "printf" >&6; } ;;
10981 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
10982 $as_echo "print -r" >&6; } ;;
10983 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
10984 $as_echo "cat" >&6; } ;;
10985 esac
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11001 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11002 if ${ac_cv_path_SED+:} false; then :
11003 $as_echo_n "(cached) " >&6
11004 else
11005 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11006 for ac_i in 1 2 3 4 5 6 7; do
11007 ac_script="$ac_script$as_nl$ac_script"
11008 done
11009 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11010 { ac_script=; unset ac_script;}
11011 if test -z "$SED"; then
11012 ac_path_SED_found=false
11013 # Loop through the user's path and test for each of PROGNAME-LIST
11014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11015 for as_dir in $PATH
11016 do
11017 IFS=$as_save_IFS
11018 test -z "$as_dir" && as_dir=.
11019 for ac_prog in sed gsed; do
11020 for ac_exec_ext in '' $ac_executable_extensions; do
11021 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11022 as_fn_executable_p "$ac_path_SED" || continue
11023 # Check for GNU ac_path_SED and select it if it is found.
11024 # Check for GNU $ac_path_SED
11025 case `"$ac_path_SED" --version 2>&1` in
11026 *GNU*)
11027 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11028 *)
11029 ac_count=0
11030 $as_echo_n 0123456789 >"conftest.in"
11031 while :
11032 do
11033 cat "conftest.in" "conftest.in" >"conftest.tmp"
11034 mv "conftest.tmp" "conftest.in"
11035 cp "conftest.in" "conftest.nl"
11036 $as_echo '' >> "conftest.nl"
11037 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11038 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11039 as_fn_arith $ac_count + 1 && ac_count=$as_val
11040 if test $ac_count -gt ${ac_path_SED_max-0}; then
11041 # Best one so far, save it but keep looking for a better one
11042 ac_cv_path_SED="$ac_path_SED"
11043 ac_path_SED_max=$ac_count
11044 fi
11045 # 10*(2^10) chars as input seems more than enough
11046 test $ac_count -gt 10 && break
11047 done
11048 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11049 esac
11050
11051 $ac_path_SED_found && break 3
11052 done
11053 done
11054 done
11055 IFS=$as_save_IFS
11056 if test -z "$ac_cv_path_SED"; then
11057 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
11058 fi
11059 else
11060 ac_cv_path_SED=$SED
11061 fi
11062
11063 fi
11064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11065 $as_echo "$ac_cv_path_SED" >&6; }
11066 SED="$ac_cv_path_SED"
11067 rm -f conftest.sed
11068
11069 test -z "$SED" && SED=sed
11070 Xsed="$SED -e 1s/^X//"
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11083 $as_echo_n "checking for fgrep... " >&6; }
11084 if ${ac_cv_path_FGREP+:} false; then :
11085 $as_echo_n "(cached) " >&6
11086 else
11087 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11088 then ac_cv_path_FGREP="$GREP -F"
11089 else
11090 if test -z "$FGREP"; then
11091 ac_path_FGREP_found=false
11092 # Loop through the user's path and test for each of PROGNAME-LIST
11093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11094 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11095 do
11096 IFS=$as_save_IFS
11097 test -z "$as_dir" && as_dir=.
11098 for ac_prog in fgrep; do
11099 for ac_exec_ext in '' $ac_executable_extensions; do
11100 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
11101 as_fn_executable_p "$ac_path_FGREP" || continue
11102 # Check for GNU ac_path_FGREP and select it if it is found.
11103 # Check for GNU $ac_path_FGREP
11104 case `"$ac_path_FGREP" --version 2>&1` in
11105 *GNU*)
11106 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11107 *)
11108 ac_count=0
11109 $as_echo_n 0123456789 >"conftest.in"
11110 while :
11111 do
11112 cat "conftest.in" "conftest.in" >"conftest.tmp"
11113 mv "conftest.tmp" "conftest.in"
11114 cp "conftest.in" "conftest.nl"
11115 $as_echo 'FGREP' >> "conftest.nl"
11116 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11117 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11118 as_fn_arith $ac_count + 1 && ac_count=$as_val
11119 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11120 # Best one so far, save it but keep looking for a better one
11121 ac_cv_path_FGREP="$ac_path_FGREP"
11122 ac_path_FGREP_max=$ac_count
11123 fi
11124 # 10*(2^10) chars as input seems more than enough
11125 test $ac_count -gt 10 && break
11126 done
11127 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11128 esac
11129
11130 $ac_path_FGREP_found && break 3
11131 done
11132 done
11133 done
11134 IFS=$as_save_IFS
11135 if test -z "$ac_cv_path_FGREP"; then
11136 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11137 fi
11138 else
11139 ac_cv_path_FGREP=$FGREP
11140 fi
11141
11142 fi
11143 fi
11144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11145 $as_echo "$ac_cv_path_FGREP" >&6; }
11146 FGREP="$ac_cv_path_FGREP"
11147
11148
11149 test -z "$GREP" && GREP=grep
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169 # Check whether --with-gnu-ld was given.
11170 if test "${with_gnu_ld+set}" = set; then :
11171 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
11172 else
11173 with_gnu_ld=no
11174 fi
11175
11176 ac_prog=ld
11177 if test yes = "$GCC"; then
11178 # Check if gcc -print-prog-name=ld gives a path.
11179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11180 $as_echo_n "checking for ld used by $CC... " >&6; }
11181 case $host in
11182 *-*-mingw*)
11183 # gcc leaves a trailing carriage return, which upsets mingw
11184 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11185 *)
11186 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11187 esac
11188 case $ac_prog in
11189 # Accept absolute paths.
11190 [\\/]* | ?:[\\/]*)
11191 re_direlt='/[^/][^/]*/\.\./'
11192 # Canonicalize the pathname of ld
11193 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11194 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11195 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11196 done
11197 test -z "$LD" && LD=$ac_prog
11198 ;;
11199 "")
11200 # If it fails, then pretend we aren't using GCC.
11201 ac_prog=ld
11202 ;;
11203 *)
11204 # If it is relative, then search for the first ld in PATH.
11205 with_gnu_ld=unknown
11206 ;;
11207 esac
11208 elif test yes = "$with_gnu_ld"; then
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11210 $as_echo_n "checking for GNU ld... " >&6; }
11211 else
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11213 $as_echo_n "checking for non-GNU ld... " >&6; }
11214 fi
11215 if ${lt_cv_path_LD+:} false; then :
11216 $as_echo_n "(cached) " >&6
11217 else
11218 if test -z "$LD"; then
11219 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11220 for ac_dir in $PATH; do
11221 IFS=$lt_save_ifs
11222 test -z "$ac_dir" && ac_dir=.
11223 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11224 lt_cv_path_LD=$ac_dir/$ac_prog
11225 # Check to see if the program is GNU ld. I'd rather use --version,
11226 # but apparently some variants of GNU ld only accept -v.
11227 # Break only if it was the GNU/non-GNU ld that we prefer.
11228 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11229 *GNU* | *'with BFD'*)
11230 test no != "$with_gnu_ld" && break
11231 ;;
11232 *)
11233 test yes != "$with_gnu_ld" && break
11234 ;;
11235 esac
11236 fi
11237 done
11238 IFS=$lt_save_ifs
11239 else
11240 lt_cv_path_LD=$LD # Let the user override the test with a path.
11241 fi
11242 fi
11243
11244 LD=$lt_cv_path_LD
11245 if test -n "$LD"; then
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11247 $as_echo "$LD" >&6; }
11248 else
11249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11250 $as_echo "no" >&6; }
11251 fi
11252 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11254 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11255 if ${lt_cv_prog_gnu_ld+:} false; then :
11256 $as_echo_n "(cached) " >&6
11257 else
11258 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11259 case `$LD -v 2>&1 </dev/null` in
11260 *GNU* | *'with BFD'*)
11261 lt_cv_prog_gnu_ld=yes
11262 ;;
11263 *)
11264 lt_cv_prog_gnu_ld=no
11265 ;;
11266 esac
11267 fi
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11269 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11270 with_gnu_ld=$lt_cv_prog_gnu_ld
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11281 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11282 if ${lt_cv_path_NM+:} false; then :
11283 $as_echo_n "(cached) " >&6
11284 else
11285 if test -n "$NM"; then
11286 # Let the user override the test.
11287 lt_cv_path_NM=$NM
11288 else
11289 lt_nm_to_check=${ac_tool_prefix}nm
11290 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11291 lt_nm_to_check="$lt_nm_to_check nm"
11292 fi
11293 for lt_tmp_nm in $lt_nm_to_check; do
11294 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11295 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11296 IFS=$lt_save_ifs
11297 test -z "$ac_dir" && ac_dir=.
11298 tmp_nm=$ac_dir/$lt_tmp_nm
11299 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
11300 # Check to see if the nm accepts a BSD-compat flag.
11301 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
11302 # nm: unknown option "B" ignored
11303 # Tru64's nm complains that /dev/null is an invalid object file
11304 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
11305 case $build_os in
11306 mingw*) lt_bad_file=conftest.nm/nofile ;;
11307 *) lt_bad_file=/dev/null ;;
11308 esac
11309 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
11310 *$lt_bad_file* | *'Invalid file or object type'*)
11311 lt_cv_path_NM="$tmp_nm -B"
11312 break 2
11313 ;;
11314 *)
11315 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11316 */dev/null*)
11317 lt_cv_path_NM="$tmp_nm -p"
11318 break 2
11319 ;;
11320 *)
11321 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11322 continue # so that we can try to find one that supports BSD flags
11323 ;;
11324 esac
11325 ;;
11326 esac
11327 fi
11328 done
11329 IFS=$lt_save_ifs
11330 done
11331 : ${lt_cv_path_NM=no}
11332 fi
11333 fi
11334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11335 $as_echo "$lt_cv_path_NM" >&6; }
11336 if test no != "$lt_cv_path_NM"; then
11337 NM=$lt_cv_path_NM
11338 else
11339 # Didn't find any BSD compatible name lister, look for dumpbin.
11340 if test -n "$DUMPBIN"; then :
11341 # Let the user override the test.
11342 else
11343 if test -n "$ac_tool_prefix"; then
11344 for ac_prog in dumpbin "link -dump"
11345 do
11346 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11347 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11349 $as_echo_n "checking for $ac_word... " >&6; }
11350 if ${ac_cv_prog_DUMPBIN+:} false; then :
11351 $as_echo_n "(cached) " >&6
11352 else
11353 if test -n "$DUMPBIN"; then
11354 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11355 else
11356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11357 for as_dir in $PATH
11358 do
11359 IFS=$as_save_IFS
11360 test -z "$as_dir" && as_dir=.
11361 for ac_exec_ext in '' $ac_executable_extensions; do
11362 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11363 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11365 break 2
11366 fi
11367 done
11368 done
11369 IFS=$as_save_IFS
11370
11371 fi
11372 fi
11373 DUMPBIN=$ac_cv_prog_DUMPBIN
11374 if test -n "$DUMPBIN"; then
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11376 $as_echo "$DUMPBIN" >&6; }
11377 else
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11379 $as_echo "no" >&6; }
11380 fi
11381
11382
11383 test -n "$DUMPBIN" && break
11384 done
11385 fi
11386 if test -z "$DUMPBIN"; then
11387 ac_ct_DUMPBIN=$DUMPBIN
11388 for ac_prog in dumpbin "link -dump"
11389 do
11390 # Extract the first word of "$ac_prog", so it can be a program name with args.
11391 set dummy $ac_prog; ac_word=$2
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11393 $as_echo_n "checking for $ac_word... " >&6; }
11394 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
11395 $as_echo_n "(cached) " >&6
11396 else
11397 if test -n "$ac_ct_DUMPBIN"; then
11398 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11399 else
11400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11401 for as_dir in $PATH
11402 do
11403 IFS=$as_save_IFS
11404 test -z "$as_dir" && as_dir=.
11405 for ac_exec_ext in '' $ac_executable_extensions; do
11406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11407 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11409 break 2
11410 fi
11411 done
11412 done
11413 IFS=$as_save_IFS
11414
11415 fi
11416 fi
11417 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11418 if test -n "$ac_ct_DUMPBIN"; then
11419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11420 $as_echo "$ac_ct_DUMPBIN" >&6; }
11421 else
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11423 $as_echo "no" >&6; }
11424 fi
11425
11426
11427 test -n "$ac_ct_DUMPBIN" && break
11428 done
11429
11430 if test "x$ac_ct_DUMPBIN" = x; then
11431 DUMPBIN=":"
11432 else
11433 case $cross_compiling:$ac_tool_warned in
11434 yes:)
11435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11436 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11437 ac_tool_warned=yes ;;
11438 esac
11439 DUMPBIN=$ac_ct_DUMPBIN
11440 fi
11441 fi
11442
11443 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
11444 *COFF*)
11445 DUMPBIN="$DUMPBIN -symbols -headers"
11446 ;;
11447 *)
11448 DUMPBIN=:
11449 ;;
11450 esac
11451 fi
11452
11453 if test : != "$DUMPBIN"; then
11454 NM=$DUMPBIN
11455 fi
11456 fi
11457 test -z "$NM" && NM=nm
11458
11459
11460
11461
11462
11463
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11465 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
11466 if ${lt_cv_nm_interface+:} false; then :
11467 $as_echo_n "(cached) " >&6
11468 else
11469 lt_cv_nm_interface="BSD nm"
11470 echo "int some_variable = 0;" > conftest.$ac_ext
11471 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11472 (eval "$ac_compile" 2>conftest.err)
11473 cat conftest.err >&5
11474 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11475 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11476 cat conftest.err >&5
11477 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11478 cat conftest.out >&5
11479 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11480 lt_cv_nm_interface="MS dumpbin"
11481 fi
11482 rm -f conftest*
11483 fi
11484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11485 $as_echo "$lt_cv_nm_interface" >&6; }
11486
11487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11488 $as_echo_n "checking whether ln -s works... " >&6; }
11489 LN_S=$as_ln_s
11490 if test "$LN_S" = "ln -s"; then
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11492 $as_echo "yes" >&6; }
11493 else
11494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11495 $as_echo "no, using $LN_S" >&6; }
11496 fi
11497
11498 # find the maximum length of command line arguments
11499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11500 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
11501 if ${lt_cv_sys_max_cmd_len+:} false; then :
11502 $as_echo_n "(cached) " >&6
11503 else
11504 i=0
11505 teststring=ABCD
11506
11507 case $build_os in
11508 msdosdjgpp*)
11509 # On DJGPP, this test can blow up pretty badly due to problems in libc
11510 # (any single argument exceeding 2000 bytes causes a buffer overrun
11511 # during glob expansion). Even if it were fixed, the result of this
11512 # check would be larger than it should be.
11513 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11514 ;;
11515
11516 gnu*)
11517 # Under GNU Hurd, this test is not required because there is
11518 # no limit to the length of command line arguments.
11519 # Libtool will interpret -1 as no limit whatsoever
11520 lt_cv_sys_max_cmd_len=-1;
11521 ;;
11522
11523 cygwin* | mingw* | cegcc*)
11524 # On Win9x/ME, this test blows up -- it succeeds, but takes
11525 # about 5 minutes as the teststring grows exponentially.
11526 # Worse, since 9x/ME are not pre-emptively multitasking,
11527 # you end up with a "frozen" computer, even though with patience
11528 # the test eventually succeeds (with a max line length of 256k).
11529 # Instead, let's just punt: use the minimum linelength reported by
11530 # all of the supported platforms: 8192 (on NT/2K/XP).
11531 lt_cv_sys_max_cmd_len=8192;
11532 ;;
11533
11534 mint*)
11535 # On MiNT this can take a long time and run out of memory.
11536 lt_cv_sys_max_cmd_len=8192;
11537 ;;
11538
11539 amigaos*)
11540 # On AmigaOS with pdksh, this test takes hours, literally.
11541 # So we just punt and use a minimum line length of 8192.
11542 lt_cv_sys_max_cmd_len=8192;
11543 ;;
11544
11545 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
11546 # This has been around since 386BSD, at least. Likely further.
11547 if test -x /sbin/sysctl; then
11548 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11549 elif test -x /usr/sbin/sysctl; then
11550 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11551 else
11552 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
11553 fi
11554 # And add a safety zone
11555 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11556 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11557 ;;
11558
11559 interix*)
11560 # We know the value 262144 and hardcode it with a safety zone (like BSD)
11561 lt_cv_sys_max_cmd_len=196608
11562 ;;
11563
11564 os2*)
11565 # The test takes a long time on OS/2.
11566 lt_cv_sys_max_cmd_len=8192
11567 ;;
11568
11569 osf*)
11570 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11571 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11572 # nice to cause kernel panics so lets avoid the loop below.
11573 # First set a reasonable default.
11574 lt_cv_sys_max_cmd_len=16384
11575 #
11576 if test -x /sbin/sysconfig; then
11577 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11578 *1*) lt_cv_sys_max_cmd_len=-1 ;;
11579 esac
11580 fi
11581 ;;
11582 sco3.2v5*)
11583 lt_cv_sys_max_cmd_len=102400
11584 ;;
11585 sysv5* | sco5v6* | sysv4.2uw2*)
11586 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11587 if test -n "$kargmax"; then
11588 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
11589 else
11590 lt_cv_sys_max_cmd_len=32768
11591 fi
11592 ;;
11593 *)
11594 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11595 if test -n "$lt_cv_sys_max_cmd_len" && \
11596 test undefined != "$lt_cv_sys_max_cmd_len"; then
11597 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11598 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11599 else
11600 # Make teststring a little bigger before we do anything with it.
11601 # a 1K string should be a reasonable start.
11602 for i in 1 2 3 4 5 6 7 8; do
11603 teststring=$teststring$teststring
11604 done
11605 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11606 # If test is not a shell built-in, we'll probably end up computing a
11607 # maximum length that is only half of the actual maximum length, but
11608 # we can't tell.
11609 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
11610 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11611 test 17 != "$i" # 1/2 MB should be enough
11612 do
11613 i=`expr $i + 1`
11614 teststring=$teststring$teststring
11615 done
11616 # Only check the string length outside the loop.
11617 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11618 teststring=
11619 # Add a significant safety factor because C++ compilers can tack on
11620 # massive amounts of additional arguments before passing them to the
11621 # linker. It appears as though 1/2 is a usable value.
11622 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11623 fi
11624 ;;
11625 esac
11626
11627 fi
11628
11629 if test -n "$lt_cv_sys_max_cmd_len"; then
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11631 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11632 else
11633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11634 $as_echo "none" >&6; }
11635 fi
11636 max_cmd_len=$lt_cv_sys_max_cmd_len
11637
11638
11639
11640
11641
11642
11643 : ${CP="cp -f"}
11644 : ${MV="mv -f"}
11645 : ${RM="rm -f"}
11646
11647 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11648 lt_unset=unset
11649 else
11650 lt_unset=false
11651 fi
11652
11653
11654
11655
11656
11657 # test EBCDIC or ASCII
11658 case `echo X|tr X '\101'` in
11659 A) # ASCII based system
11660 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11661 lt_SP2NL='tr \040 \012'
11662 lt_NL2SP='tr \015\012 \040\040'
11663 ;;
11664 *) # EBCDIC based system
11665 lt_SP2NL='tr \100 \n'
11666 lt_NL2SP='tr \r\n \100\100'
11667 ;;
11668 esac
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11679 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11680 if ${lt_cv_to_host_file_cmd+:} false; then :
11681 $as_echo_n "(cached) " >&6
11682 else
11683 case $host in
11684 *-*-mingw* )
11685 case $build in
11686 *-*-mingw* ) # actually msys
11687 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11688 ;;
11689 *-*-cygwin* )
11690 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11691 ;;
11692 * ) # otherwise, assume *nix
11693 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11694 ;;
11695 esac
11696 ;;
11697 *-*-cygwin* )
11698 case $build in
11699 *-*-mingw* ) # actually msys
11700 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11701 ;;
11702 *-*-cygwin* )
11703 lt_cv_to_host_file_cmd=func_convert_file_noop
11704 ;;
11705 * ) # otherwise, assume *nix
11706 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11707 ;;
11708 esac
11709 ;;
11710 * ) # unhandled hosts (and "normal" native builds)
11711 lt_cv_to_host_file_cmd=func_convert_file_noop
11712 ;;
11713 esac
11714
11715 fi
11716
11717 to_host_file_cmd=$lt_cv_to_host_file_cmd
11718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11719 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
11720
11721
11722
11723
11724
11725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11726 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11727 if ${lt_cv_to_tool_file_cmd+:} false; then :
11728 $as_echo_n "(cached) " >&6
11729 else
11730 #assume ordinary cross tools, or native build.
11731 lt_cv_to_tool_file_cmd=func_convert_file_noop
11732 case $host in
11733 *-*-mingw* )
11734 case $build in
11735 *-*-mingw* ) # actually msys
11736 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11737 ;;
11738 esac
11739 ;;
11740 esac
11741
11742 fi
11743
11744 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11746 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11747
11748
11749
11750
11751
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11753 $as_echo_n "checking for $LD option to reload object files... " >&6; }
11754 if ${lt_cv_ld_reload_flag+:} false; then :
11755 $as_echo_n "(cached) " >&6
11756 else
11757 lt_cv_ld_reload_flag='-r'
11758 fi
11759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11760 $as_echo "$lt_cv_ld_reload_flag" >&6; }
11761 reload_flag=$lt_cv_ld_reload_flag
11762 case $reload_flag in
11763 "" | " "*) ;;
11764 *) reload_flag=" $reload_flag" ;;
11765 esac
11766 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11767 case $host_os in
11768 cygwin* | mingw* | pw32* | cegcc*)
11769 if test yes != "$GCC"; then
11770 reload_cmds=false
11771 fi
11772 ;;
11773 darwin*)
11774 if test yes = "$GCC"; then
11775 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
11776 else
11777 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11778 fi
11779 ;;
11780 esac
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790 if test -n "$ac_tool_prefix"; then
11791 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11792 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11794 $as_echo_n "checking for $ac_word... " >&6; }
11795 if ${ac_cv_prog_OBJDUMP+:} false; then :
11796 $as_echo_n "(cached) " >&6
11797 else
11798 if test -n "$OBJDUMP"; then
11799 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11800 else
11801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11802 for as_dir in $PATH
11803 do
11804 IFS=$as_save_IFS
11805 test -z "$as_dir" && as_dir=.
11806 for ac_exec_ext in '' $ac_executable_extensions; do
11807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11808 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11810 break 2
11811 fi
11812 done
11813 done
11814 IFS=$as_save_IFS
11815
11816 fi
11817 fi
11818 OBJDUMP=$ac_cv_prog_OBJDUMP
11819 if test -n "$OBJDUMP"; then
11820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11821 $as_echo "$OBJDUMP" >&6; }
11822 else
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11824 $as_echo "no" >&6; }
11825 fi
11826
11827
11828 fi
11829 if test -z "$ac_cv_prog_OBJDUMP"; then
11830 ac_ct_OBJDUMP=$OBJDUMP
11831 # Extract the first word of "objdump", so it can be a program name with args.
11832 set dummy objdump; ac_word=$2
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11834 $as_echo_n "checking for $ac_word... " >&6; }
11835 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11836 $as_echo_n "(cached) " >&6
11837 else
11838 if test -n "$ac_ct_OBJDUMP"; then
11839 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11840 else
11841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11842 for as_dir in $PATH
11843 do
11844 IFS=$as_save_IFS
11845 test -z "$as_dir" && as_dir=.
11846 for ac_exec_ext in '' $ac_executable_extensions; do
11847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11848 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11850 break 2
11851 fi
11852 done
11853 done
11854 IFS=$as_save_IFS
11855
11856 fi
11857 fi
11858 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11859 if test -n "$ac_ct_OBJDUMP"; then
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11861 $as_echo "$ac_ct_OBJDUMP" >&6; }
11862 else
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11864 $as_echo "no" >&6; }
11865 fi
11866
11867 if test "x$ac_ct_OBJDUMP" = x; then
11868 OBJDUMP="false"
11869 else
11870 case $cross_compiling:$ac_tool_warned in
11871 yes:)
11872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11873 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11874 ac_tool_warned=yes ;;
11875 esac
11876 OBJDUMP=$ac_ct_OBJDUMP
11877 fi
11878 else
11879 OBJDUMP="$ac_cv_prog_OBJDUMP"
11880 fi
11881
11882 test -z "$OBJDUMP" && OBJDUMP=objdump
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11893 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
11894 if ${lt_cv_deplibs_check_method+:} false; then :
11895 $as_echo_n "(cached) " >&6
11896 else
11897 lt_cv_file_magic_cmd='$MAGIC_CMD'
11898 lt_cv_file_magic_test_file=
11899 lt_cv_deplibs_check_method='unknown'
11900 # Need to set the preceding variable on all platforms that support
11901 # interlibrary dependencies.
11902 # 'none' -- dependencies not supported.
11903 # 'unknown' -- same as none, but documents that we really don't know.
11904 # 'pass_all' -- all dependencies passed with no checks.
11905 # 'test_compile' -- check by making test program.
11906 # 'file_magic [[regex]]' -- check by looking for files in library path
11907 # that responds to the $file_magic_cmd with a given extended regex.
11908 # If you have 'file' or equivalent on your system and you're not sure
11909 # whether 'pass_all' will *always* work, you probably want this one.
11910
11911 case $host_os in
11912 aix[4-9]*)
11913 lt_cv_deplibs_check_method=pass_all
11914 ;;
11915
11916 beos*)
11917 lt_cv_deplibs_check_method=pass_all
11918 ;;
11919
11920 bsdi[45]*)
11921 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11922 lt_cv_file_magic_cmd='/usr/bin/file -L'
11923 lt_cv_file_magic_test_file=/shlib/libc.so
11924 ;;
11925
11926 cygwin*)
11927 # func_win32_libid is a shell function defined in ltmain.sh
11928 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11929 lt_cv_file_magic_cmd='func_win32_libid'
11930 ;;
11931
11932 mingw* | pw32*)
11933 # Base MSYS/MinGW do not provide the 'file' command needed by
11934 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11935 # unless we find 'file', for example because we are cross-compiling.
11936 if ( file / ) >/dev/null 2>&1; then
11937 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11938 lt_cv_file_magic_cmd='func_win32_libid'
11939 else
11940 # Keep this pattern in sync with the one in func_win32_libid.
11941 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
11942 lt_cv_file_magic_cmd='$OBJDUMP -f'
11943 fi
11944 ;;
11945
11946 cegcc*)
11947 # use the weaker test based on 'objdump'. See mingw*.
11948 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11949 lt_cv_file_magic_cmd='$OBJDUMP -f'
11950 ;;
11951
11952 darwin* | rhapsody*)
11953 lt_cv_deplibs_check_method=pass_all
11954 ;;
11955
11956 freebsd* | dragonfly*)
11957 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11958 case $host_cpu in
11959 i*86 )
11960 # Not sure whether the presence of OpenBSD here was a mistake.
11961 # Let's accept both of them until this is cleared up.
11962 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11963 lt_cv_file_magic_cmd=/usr/bin/file
11964 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11965 ;;
11966 esac
11967 else
11968 lt_cv_deplibs_check_method=pass_all
11969 fi
11970 ;;
11971
11972 haiku*)
11973 lt_cv_deplibs_check_method=pass_all
11974 ;;
11975
11976 hpux10.20* | hpux11*)
11977 lt_cv_file_magic_cmd=/usr/bin/file
11978 case $host_cpu in
11979 ia64*)
11980 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11981 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11982 ;;
11983 hppa*64*)
11984 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]'
11985 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11986 ;;
11987 *)
11988 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
11989 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11990 ;;
11991 esac
11992 ;;
11993
11994 interix[3-9]*)
11995 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11996 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11997 ;;
11998
11999 irix5* | irix6* | nonstopux*)
12000 case $LD in
12001 *-32|*"-32 ") libmagic=32-bit;;
12002 *-n32|*"-n32 ") libmagic=N32;;
12003 *-64|*"-64 ") libmagic=64-bit;;
12004 *) libmagic=never-match;;
12005 esac
12006 lt_cv_deplibs_check_method=pass_all
12007 ;;
12008
12009 # This must be glibc/ELF.
12010 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12011 lt_cv_deplibs_check_method=pass_all
12012 ;;
12013
12014 netbsd*)
12015 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12016 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12017 else
12018 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12019 fi
12020 ;;
12021
12022 newos6*)
12023 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12024 lt_cv_file_magic_cmd=/usr/bin/file
12025 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12026 ;;
12027
12028 *nto* | *qnx*)
12029 lt_cv_deplibs_check_method=pass_all
12030 ;;
12031
12032 openbsd* | bitrig*)
12033 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12034 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12035 else
12036 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12037 fi
12038 ;;
12039
12040 osf3* | osf4* | osf5*)
12041 lt_cv_deplibs_check_method=pass_all
12042 ;;
12043
12044 rdos*)
12045 lt_cv_deplibs_check_method=pass_all
12046 ;;
12047
12048 solaris*)
12049 lt_cv_deplibs_check_method=pass_all
12050 ;;
12051
12052 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12053 lt_cv_deplibs_check_method=pass_all
12054 ;;
12055
12056 sysv4 | sysv4.3*)
12057 case $host_vendor in
12058 motorola)
12059 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]'
12060 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12061 ;;
12062 ncr)
12063 lt_cv_deplibs_check_method=pass_all
12064 ;;
12065 sequent)
12066 lt_cv_file_magic_cmd='/bin/file'
12067 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12068 ;;
12069 sni)
12070 lt_cv_file_magic_cmd='/bin/file'
12071 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12072 lt_cv_file_magic_test_file=/lib/libc.so
12073 ;;
12074 siemens)
12075 lt_cv_deplibs_check_method=pass_all
12076 ;;
12077 pc)
12078 lt_cv_deplibs_check_method=pass_all
12079 ;;
12080 esac
12081 ;;
12082
12083 tpf*)
12084 lt_cv_deplibs_check_method=pass_all
12085 ;;
12086 os2*)
12087 lt_cv_deplibs_check_method=pass_all
12088 ;;
12089 esac
12090
12091 fi
12092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12093 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12094
12095 file_magic_glob=
12096 want_nocaseglob=no
12097 if test "$build" = "$host"; then
12098 case $host_os in
12099 mingw* | pw32*)
12100 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
12101 want_nocaseglob=yes
12102 else
12103 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
12104 fi
12105 ;;
12106 esac
12107 fi
12108
12109 file_magic_cmd=$lt_cv_file_magic_cmd
12110 deplibs_check_method=$lt_cv_deplibs_check_method
12111 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134 if test -n "$ac_tool_prefix"; then
12135 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12136 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12138 $as_echo_n "checking for $ac_word... " >&6; }
12139 if ${ac_cv_prog_DLLTOOL+:} false; then :
12140 $as_echo_n "(cached) " >&6
12141 else
12142 if test -n "$DLLTOOL"; then
12143 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12144 else
12145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12146 for as_dir in $PATH
12147 do
12148 IFS=$as_save_IFS
12149 test -z "$as_dir" && as_dir=.
12150 for ac_exec_ext in '' $ac_executable_extensions; do
12151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12152 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12154 break 2
12155 fi
12156 done
12157 done
12158 IFS=$as_save_IFS
12159
12160 fi
12161 fi
12162 DLLTOOL=$ac_cv_prog_DLLTOOL
12163 if test -n "$DLLTOOL"; then
12164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12165 $as_echo "$DLLTOOL" >&6; }
12166 else
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12168 $as_echo "no" >&6; }
12169 fi
12170
12171
12172 fi
12173 if test -z "$ac_cv_prog_DLLTOOL"; then
12174 ac_ct_DLLTOOL=$DLLTOOL
12175 # Extract the first word of "dlltool", so it can be a program name with args.
12176 set dummy dlltool; 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_DLLTOOL+:} false; then :
12180 $as_echo_n "(cached) " >&6
12181 else
12182 if test -n "$ac_ct_DLLTOOL"; then
12183 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # 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_DLLTOOL="dlltool"
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_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12203 if test -n "$ac_ct_DLLTOOL"; then
12204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12205 $as_echo "$ac_ct_DLLTOOL" >&6; }
12206 else
12207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12208 $as_echo "no" >&6; }
12209 fi
12210
12211 if test "x$ac_ct_DLLTOOL" = x; then
12212 DLLTOOL="false"
12213 else
12214 case $cross_compiling:$ac_tool_warned in
12215 yes:)
12216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12217 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12218 ac_tool_warned=yes ;;
12219 esac
12220 DLLTOOL=$ac_ct_DLLTOOL
12221 fi
12222 else
12223 DLLTOOL="$ac_cv_prog_DLLTOOL"
12224 fi
12225
12226 test -z "$DLLTOOL" && DLLTOOL=dlltool
12227
12228
12229
12230
12231
12232
12233
12234
12235
12236
12237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12238 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
12239 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
12240 $as_echo_n "(cached) " >&6
12241 else
12242 lt_cv_sharedlib_from_linklib_cmd='unknown'
12243
12244 case $host_os in
12245 cygwin* | mingw* | pw32* | cegcc*)
12246 # two different shell functions defined in ltmain.sh;
12247 # decide which one to use based on capabilities of $DLLTOOL
12248 case `$DLLTOOL --help 2>&1` in
12249 *--identify-strict*)
12250 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12251 ;;
12252 *)
12253 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12254 ;;
12255 esac
12256 ;;
12257 *)
12258 # fallback: assume linklib IS sharedlib
12259 lt_cv_sharedlib_from_linklib_cmd=$ECHO
12260 ;;
12261 esac
12262
12263 fi
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12265 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12266 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12267 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12268
12269
12270
12271
12272
12273
12274
12275 if test -n "$ac_tool_prefix"; then
12276 for ac_prog in ar
12277 do
12278 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12279 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12281 $as_echo_n "checking for $ac_word... " >&6; }
12282 if ${ac_cv_prog_AR+:} false; then :
12283 $as_echo_n "(cached) " >&6
12284 else
12285 if test -n "$AR"; then
12286 ac_cv_prog_AR="$AR" # Let the user override the test.
12287 else
12288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12289 for as_dir in $PATH
12290 do
12291 IFS=$as_save_IFS
12292 test -z "$as_dir" && as_dir=.
12293 for ac_exec_ext in '' $ac_executable_extensions; do
12294 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12295 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
12296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12297 break 2
12298 fi
12299 done
12300 done
12301 IFS=$as_save_IFS
12302
12303 fi
12304 fi
12305 AR=$ac_cv_prog_AR
12306 if test -n "$AR"; then
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12308 $as_echo "$AR" >&6; }
12309 else
12310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12311 $as_echo "no" >&6; }
12312 fi
12313
12314
12315 test -n "$AR" && break
12316 done
12317 fi
12318 if test -z "$AR"; then
12319 ac_ct_AR=$AR
12320 for ac_prog in ar
12321 do
12322 # Extract the first word of "$ac_prog", so it can be a program name with args.
12323 set dummy $ac_prog; ac_word=$2
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12325 $as_echo_n "checking for $ac_word... " >&6; }
12326 if ${ac_cv_prog_ac_ct_AR+:} false; then :
12327 $as_echo_n "(cached) " >&6
12328 else
12329 if test -n "$ac_ct_AR"; then
12330 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12331 else
12332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12333 for as_dir in $PATH
12334 do
12335 IFS=$as_save_IFS
12336 test -z "$as_dir" && as_dir=.
12337 for ac_exec_ext in '' $ac_executable_extensions; do
12338 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12339 ac_cv_prog_ac_ct_AR="$ac_prog"
12340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12341 break 2
12342 fi
12343 done
12344 done
12345 IFS=$as_save_IFS
12346
12347 fi
12348 fi
12349 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12350 if test -n "$ac_ct_AR"; then
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12352 $as_echo "$ac_ct_AR" >&6; }
12353 else
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12355 $as_echo "no" >&6; }
12356 fi
12357
12358
12359 test -n "$ac_ct_AR" && break
12360 done
12361
12362 if test "x$ac_ct_AR" = x; then
12363 AR="false"
12364 else
12365 case $cross_compiling:$ac_tool_warned in
12366 yes:)
12367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12368 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12369 ac_tool_warned=yes ;;
12370 esac
12371 AR=$ac_ct_AR
12372 fi
12373 fi
12374
12375 : ${AR=ar}
12376 : ${AR_FLAGS=cru}
12377
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12389 $as_echo_n "checking for archiver @FILE support... " >&6; }
12390 if ${lt_cv_ar_at_file+:} false; then :
12391 $as_echo_n "(cached) " >&6
12392 else
12393 lt_cv_ar_at_file=no
12394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12395 /* end confdefs.h. */
12396
12397 int
12398 main ()
12399 {
12400
12401 ;
12402 return 0;
12403 }
12404 _ACEOF
12405 if ac_fn_c_try_compile "$LINENO"; then :
12406 echo conftest.$ac_objext > conftest.lst
12407 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12408 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12409 (eval $lt_ar_try) 2>&5
12410 ac_status=$?
12411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12412 test $ac_status = 0; }
12413 if test 0 -eq "$ac_status"; then
12414 # Ensure the archiver fails upon bogus file names.
12415 rm -f conftest.$ac_objext libconftest.a
12416 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12417 (eval $lt_ar_try) 2>&5
12418 ac_status=$?
12419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12420 test $ac_status = 0; }
12421 if test 0 -ne "$ac_status"; then
12422 lt_cv_ar_at_file=@
12423 fi
12424 fi
12425 rm -f conftest.* libconftest.a
12426
12427 fi
12428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12429
12430 fi
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12432 $as_echo "$lt_cv_ar_at_file" >&6; }
12433
12434 if test no = "$lt_cv_ar_at_file"; then
12435 archiver_list_spec=
12436 else
12437 archiver_list_spec=$lt_cv_ar_at_file
12438 fi
12439
12440
12441
12442
12443
12444
12445
12446 if test -n "$ac_tool_prefix"; then
12447 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12448 set dummy ${ac_tool_prefix}strip; ac_word=$2
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12450 $as_echo_n "checking for $ac_word... " >&6; }
12451 if ${ac_cv_prog_STRIP+:} false; then :
12452 $as_echo_n "(cached) " >&6
12453 else
12454 if test -n "$STRIP"; then
12455 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12456 else
12457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12458 for as_dir in $PATH
12459 do
12460 IFS=$as_save_IFS
12461 test -z "$as_dir" && as_dir=.
12462 for ac_exec_ext in '' $ac_executable_extensions; do
12463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12464 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12466 break 2
12467 fi
12468 done
12469 done
12470 IFS=$as_save_IFS
12471
12472 fi
12473 fi
12474 STRIP=$ac_cv_prog_STRIP
12475 if test -n "$STRIP"; then
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12477 $as_echo "$STRIP" >&6; }
12478 else
12479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12480 $as_echo "no" >&6; }
12481 fi
12482
12483
12484 fi
12485 if test -z "$ac_cv_prog_STRIP"; then
12486 ac_ct_STRIP=$STRIP
12487 # Extract the first word of "strip", so it can be a program name with args.
12488 set dummy strip; ac_word=$2
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12490 $as_echo_n "checking for $ac_word... " >&6; }
12491 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12492 $as_echo_n "(cached) " >&6
12493 else
12494 if test -n "$ac_ct_STRIP"; then
12495 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12496 else
12497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12498 for as_dir in $PATH
12499 do
12500 IFS=$as_save_IFS
12501 test -z "$as_dir" && as_dir=.
12502 for ac_exec_ext in '' $ac_executable_extensions; do
12503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12504 ac_cv_prog_ac_ct_STRIP="strip"
12505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12506 break 2
12507 fi
12508 done
12509 done
12510 IFS=$as_save_IFS
12511
12512 fi
12513 fi
12514 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12515 if test -n "$ac_ct_STRIP"; then
12516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12517 $as_echo "$ac_ct_STRIP" >&6; }
12518 else
12519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12520 $as_echo "no" >&6; }
12521 fi
12522
12523 if test "x$ac_ct_STRIP" = x; then
12524 STRIP=":"
12525 else
12526 case $cross_compiling:$ac_tool_warned in
12527 yes:)
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12529 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12530 ac_tool_warned=yes ;;
12531 esac
12532 STRIP=$ac_ct_STRIP
12533 fi
12534 else
12535 STRIP="$ac_cv_prog_STRIP"
12536 fi
12537
12538 test -z "$STRIP" && STRIP=:
12539
12540
12541
12542
12543
12544
12545 if test -n "$ac_tool_prefix"; then
12546 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12547 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12549 $as_echo_n "checking for $ac_word... " >&6; }
12550 if ${ac_cv_prog_RANLIB+:} false; then :
12551 $as_echo_n "(cached) " >&6
12552 else
12553 if test -n "$RANLIB"; then
12554 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12555 else
12556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12557 for as_dir in $PATH
12558 do
12559 IFS=$as_save_IFS
12560 test -z "$as_dir" && as_dir=.
12561 for ac_exec_ext in '' $ac_executable_extensions; do
12562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12563 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12565 break 2
12566 fi
12567 done
12568 done
12569 IFS=$as_save_IFS
12570
12571 fi
12572 fi
12573 RANLIB=$ac_cv_prog_RANLIB
12574 if test -n "$RANLIB"; then
12575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12576 $as_echo "$RANLIB" >&6; }
12577 else
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12579 $as_echo "no" >&6; }
12580 fi
12581
12582
12583 fi
12584 if test -z "$ac_cv_prog_RANLIB"; then
12585 ac_ct_RANLIB=$RANLIB
12586 # Extract the first word of "ranlib", so it can be a program name with args.
12587 set dummy ranlib; ac_word=$2
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12589 $as_echo_n "checking for $ac_word... " >&6; }
12590 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12591 $as_echo_n "(cached) " >&6
12592 else
12593 if test -n "$ac_ct_RANLIB"; then
12594 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12595 else
12596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12597 for as_dir in $PATH
12598 do
12599 IFS=$as_save_IFS
12600 test -z "$as_dir" && as_dir=.
12601 for ac_exec_ext in '' $ac_executable_extensions; do
12602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12603 ac_cv_prog_ac_ct_RANLIB="ranlib"
12604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12605 break 2
12606 fi
12607 done
12608 done
12609 IFS=$as_save_IFS
12610
12611 fi
12612 fi
12613 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12614 if test -n "$ac_ct_RANLIB"; then
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12616 $as_echo "$ac_ct_RANLIB" >&6; }
12617 else
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12619 $as_echo "no" >&6; }
12620 fi
12621
12622 if test "x$ac_ct_RANLIB" = x; then
12623 RANLIB=":"
12624 else
12625 case $cross_compiling:$ac_tool_warned in
12626 yes:)
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12628 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12629 ac_tool_warned=yes ;;
12630 esac
12631 RANLIB=$ac_ct_RANLIB
12632 fi
12633 else
12634 RANLIB="$ac_cv_prog_RANLIB"
12635 fi
12636
12637 test -z "$RANLIB" && RANLIB=:
12638
12639
12640
12641
12642
12643
12644 # Determine commands to create old-style static archives.
12645 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12646 old_postinstall_cmds='chmod 644 $oldlib'
12647 old_postuninstall_cmds=
12648
12649 if test -n "$RANLIB"; then
12650 case $host_os in
12651 bitrig* | openbsd*)
12652 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
12653 ;;
12654 *)
12655 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
12656 ;;
12657 esac
12658 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
12659 fi
12660
12661 case $host_os in
12662 darwin*)
12663 lock_old_archive_extraction=yes ;;
12664 *)
12665 lock_old_archive_extraction=no ;;
12666 esac
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706 # If no C compiler was specified, use CC.
12707 LTCC=${LTCC-"$CC"}
12708
12709 # If no C compiler flags were specified, use CFLAGS.
12710 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12711
12712 # Allow CC to be a program name with arguments.
12713 compiler=$CC
12714
12715
12716 # Check for command to grab the raw symbol name followed by C symbol from nm.
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12718 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12719 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
12720 $as_echo_n "(cached) " >&6
12721 else
12722
12723 # These are sane defaults that work on at least a few old systems.
12724 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
12725
12726 # Character class describing NM global symbol codes.
12727 symcode='[BCDEGRST]'
12728
12729 # Regexp to match symbols that can be accessed directly from C.
12730 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12731
12732 # Define system-specific variables.
12733 case $host_os in
12734 aix*)
12735 symcode='[BCDT]'
12736 ;;
12737 cygwin* | mingw* | pw32* | cegcc*)
12738 symcode='[ABCDGISTW]'
12739 ;;
12740 hpux*)
12741 if test ia64 = "$host_cpu"; then
12742 symcode='[ABCDEGRST]'
12743 fi
12744 ;;
12745 irix* | nonstopux*)
12746 symcode='[BCDEGRST]'
12747 ;;
12748 osf*)
12749 symcode='[BCDEGQRST]'
12750 ;;
12751 solaris*)
12752 symcode='[BDRT]'
12753 ;;
12754 sco3.2v5*)
12755 symcode='[DT]'
12756 ;;
12757 sysv4.2uw2*)
12758 symcode='[DT]'
12759 ;;
12760 sysv5* | sco5v6* | unixware* | OpenUNIX*)
12761 symcode='[ABDT]'
12762 ;;
12763 sysv4)
12764 symcode='[DFNSTU]'
12765 ;;
12766 esac
12767
12768 # If we're using GNU nm, then use its standard symbol codes.
12769 case `$NM -V 2>&1` in
12770 *GNU* | *'with BFD'*)
12771 symcode='[ABCDGIRSTW]' ;;
12772 esac
12773
12774 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12775 # Gets list of data symbols to import.
12776 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
12777 # Adjust the below global symbol transforms to fixup imported variables.
12778 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
12779 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
12780 lt_c_name_lib_hook="\
12781 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
12782 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
12783 else
12784 # Disable hooks by default.
12785 lt_cv_sys_global_symbol_to_import=
12786 lt_cdecl_hook=
12787 lt_c_name_hook=
12788 lt_c_name_lib_hook=
12789 fi
12790
12791 # Transform an extracted symbol line into a proper C declaration.
12792 # Some systems (esp. on ia64) link data and code symbols differently,
12793 # so use this general approach.
12794 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
12795 $lt_cdecl_hook\
12796 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
12797 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
12798
12799 # Transform an extracted symbol line into symbol name and symbol address
12800 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
12801 $lt_c_name_hook\
12802 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
12803 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
12804
12805 # Transform an extracted symbol line into symbol name with lib prefix and
12806 # symbol address.
12807 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
12808 $lt_c_name_lib_hook\
12809 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
12810 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
12811 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
12812
12813 # Handle CRLF in mingw tool chain
12814 opt_cr=
12815 case $build_os in
12816 mingw*)
12817 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12818 ;;
12819 esac
12820
12821 # Try without a prefix underscore, then with it.
12822 for ac_symprfx in "" "_"; do
12823
12824 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12825 symxfrm="\\1 $ac_symprfx\\2 \\2"
12826
12827 # Write the raw and C identifiers.
12828 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12829 # Fake it for dumpbin and say T for any non-static function,
12830 # D for any global variable and I for any imported variable.
12831 # Also find C++ and __fastcall symbols from MSVC++,
12832 # which start with @ or ?.
12833 lt_cv_sys_global_symbol_pipe="$AWK '"\
12834 " {last_section=section; section=\$ 3};"\
12835 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
12836 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12837 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
12838 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
12839 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
12840 " \$ 0!~/External *\|/{next};"\
12841 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12842 " {if(hide[section]) next};"\
12843 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
12844 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
12845 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
12846 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
12847 " ' prfx=^$ac_symprfx"
12848 else
12849 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12850 fi
12851 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
12852
12853 # Check to see that the pipe works correctly.
12854 pipe_works=no
12855
12856 rm -f conftest*
12857 cat > conftest.$ac_ext <<_LT_EOF
12858 #ifdef __cplusplus
12859 extern "C" {
12860 #endif
12861 char nm_test_var;
12862 void nm_test_func(void);
12863 void nm_test_func(void){}
12864 #ifdef __cplusplus
12865 }
12866 #endif
12867 int main(){nm_test_var='a';nm_test_func();return(0);}
12868 _LT_EOF
12869
12870 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12871 (eval $ac_compile) 2>&5
12872 ac_status=$?
12873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12874 test $ac_status = 0; }; then
12875 # Now try to grab the symbols.
12876 nlist=conftest.nm
12877 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12878 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12879 ac_status=$?
12880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12881 test $ac_status = 0; } && test -s "$nlist"; then
12882 # Try sorting and uniquifying the output.
12883 if sort "$nlist" | uniq > "$nlist"T; then
12884 mv -f "$nlist"T "$nlist"
12885 else
12886 rm -f "$nlist"T
12887 fi
12888
12889 # Make sure that we snagged all the symbols we need.
12890 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12891 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12892 cat <<_LT_EOF > conftest.$ac_ext
12893 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
12894 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
12895 /* DATA imports from DLLs on WIN32 can't be const, because runtime
12896 relocations are performed -- see ld's documentation on pseudo-relocs. */
12897 # define LT_DLSYM_CONST
12898 #elif defined __osf__
12899 /* This system does not cope well with relocations in const data. */
12900 # define LT_DLSYM_CONST
12901 #else
12902 # define LT_DLSYM_CONST const
12903 #endif
12904
12905 #ifdef __cplusplus
12906 extern "C" {
12907 #endif
12908
12909 _LT_EOF
12910 # Now generate the symbol file.
12911 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12912
12913 cat <<_LT_EOF >> conftest.$ac_ext
12914
12915 /* The mapping between symbol names and symbols. */
12916 LT_DLSYM_CONST struct {
12917 const char *name;
12918 void *address;
12919 }
12920 lt__PROGRAM__LTX_preloaded_symbols[] =
12921 {
12922 { "@PROGRAM@", (void *) 0 },
12923 _LT_EOF
12924 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12925 cat <<\_LT_EOF >> conftest.$ac_ext
12926 {0, (void *) 0}
12927 };
12928
12929 /* This works around a problem in FreeBSD linker */
12930 #ifdef FREEBSD_WORKAROUND
12931 static const void *lt_preloaded_setup() {
12932 return lt__PROGRAM__LTX_preloaded_symbols;
12933 }
12934 #endif
12935
12936 #ifdef __cplusplus
12937 }
12938 #endif
12939 _LT_EOF
12940 # Now try linking the two files.
12941 mv conftest.$ac_objext conftstm.$ac_objext
12942 lt_globsym_save_LIBS=$LIBS
12943 lt_globsym_save_CFLAGS=$CFLAGS
12944 LIBS=conftstm.$ac_objext
12945 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12946 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12947 (eval $ac_link) 2>&5
12948 ac_status=$?
12949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12950 test $ac_status = 0; } && test -s conftest$ac_exeext; then
12951 pipe_works=yes
12952 fi
12953 LIBS=$lt_globsym_save_LIBS
12954 CFLAGS=$lt_globsym_save_CFLAGS
12955 else
12956 echo "cannot find nm_test_func in $nlist" >&5
12957 fi
12958 else
12959 echo "cannot find nm_test_var in $nlist" >&5
12960 fi
12961 else
12962 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12963 fi
12964 else
12965 echo "$progname: failed program was:" >&5
12966 cat conftest.$ac_ext >&5
12967 fi
12968 rm -rf conftest* conftst*
12969
12970 # Do not use the global_symbol_pipe unless it works.
12971 if test yes = "$pipe_works"; then
12972 break
12973 else
12974 lt_cv_sys_global_symbol_pipe=
12975 fi
12976 done
12977
12978 fi
12979
12980 if test -z "$lt_cv_sys_global_symbol_pipe"; then
12981 lt_cv_sys_global_symbol_to_cdecl=
12982 fi
12983 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12985 $as_echo "failed" >&6; }
12986 else
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12988 $as_echo "ok" >&6; }
12989 fi
12990
12991 # Response file support.
12992 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12993 nm_file_list_spec='@'
12994 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12995 nm_file_list_spec='@'
12996 fi
12997
12998
12999
13000
13001
13002
13003
13004
13005
13006
13007
13008
13009
13010
13011
13012
13013
13014
13015
13016
13017
13018
13019
13020
13021
13022
13023
13024
13025
13026
13027
13028
13029
13030
13031
13032
13033
13034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
13035 $as_echo_n "checking for sysroot... " >&6; }
13036
13037 # Check whether --with-sysroot was given.
13038 if test "${with_sysroot+set}" = set; then :
13039 withval=$with_sysroot;
13040 else
13041 with_sysroot=no
13042 fi
13043
13044
13045 lt_sysroot=
13046 case $with_sysroot in #(
13047 yes)
13048 if test yes = "$GCC"; then
13049 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
13050 fi
13051 ;; #(
13052 /*)
13053 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
13054 ;; #(
13055 no|'')
13056 ;; #(
13057 *)
13058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
13059 $as_echo "$with_sysroot" >&6; }
13060 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
13061 ;;
13062 esac
13063
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
13065 $as_echo "${lt_sysroot:-no}" >&6; }
13066
13067
13068
13069
13070
13071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
13072 $as_echo_n "checking for a working dd... " >&6; }
13073 if ${ac_cv_path_lt_DD+:} false; then :
13074 $as_echo_n "(cached) " >&6
13075 else
13076 printf 0123456789abcdef0123456789abcdef >conftest.i
13077 cat conftest.i conftest.i >conftest2.i
13078 : ${lt_DD:=$DD}
13079 if test -z "$lt_DD"; then
13080 ac_path_lt_DD_found=false
13081 # Loop through the user's path and test for each of PROGNAME-LIST
13082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13083 for as_dir in $PATH
13084 do
13085 IFS=$as_save_IFS
13086 test -z "$as_dir" && as_dir=.
13087 for ac_prog in dd; do
13088 for ac_exec_ext in '' $ac_executable_extensions; do
13089 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
13090 as_fn_executable_p "$ac_path_lt_DD" || continue
13091 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
13092 cmp -s conftest.i conftest.out \
13093 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
13094 fi
13095 $ac_path_lt_DD_found && break 3
13096 done
13097 done
13098 done
13099 IFS=$as_save_IFS
13100 if test -z "$ac_cv_path_lt_DD"; then
13101 :
13102 fi
13103 else
13104 ac_cv_path_lt_DD=$lt_DD
13105 fi
13106
13107 rm -f conftest.i conftest2.i conftest.out
13108 fi
13109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
13110 $as_echo "$ac_cv_path_lt_DD" >&6; }
13111
13112
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
13114 $as_echo_n "checking how to truncate binary pipes... " >&6; }
13115 if ${lt_cv_truncate_bin+:} false; then :
13116 $as_echo_n "(cached) " >&6
13117 else
13118 printf 0123456789abcdef0123456789abcdef >conftest.i
13119 cat conftest.i conftest.i >conftest2.i
13120 lt_cv_truncate_bin=
13121 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
13122 cmp -s conftest.i conftest.out \
13123 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
13124 fi
13125 rm -f conftest.i conftest2.i conftest.out
13126 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
13127 fi
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
13129 $as_echo "$lt_cv_truncate_bin" >&6; }
13130
13131
13132
13133
13134
13135
13136
13137 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
13138 func_cc_basename ()
13139 {
13140 for cc_temp in $*""; do
13141 case $cc_temp in
13142 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13143 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13144 \-*) ;;
13145 *) break;;
13146 esac
13147 done
13148 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13149 }
13150
13151 # Check whether --enable-libtool-lock was given.
13152 if test "${enable_libtool_lock+set}" = set; then :
13153 enableval=$enable_libtool_lock;
13154 fi
13155
13156 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
13157
13158 # Some flags need to be propagated to the compiler or linker for good
13159 # libtool support.
13160 case $host in
13161 ia64-*-hpux*)
13162 # Find out what ABI is being produced by ac_compile, and set mode
13163 # options accordingly.
13164 echo 'int i;' > conftest.$ac_ext
13165 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13166 (eval $ac_compile) 2>&5
13167 ac_status=$?
13168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13169 test $ac_status = 0; }; then
13170 case `/usr/bin/file conftest.$ac_objext` in
13171 *ELF-32*)
13172 HPUX_IA64_MODE=32
13173 ;;
13174 *ELF-64*)
13175 HPUX_IA64_MODE=64
13176 ;;
13177 esac
13178 fi
13179 rm -rf conftest*
13180 ;;
13181 *-*-irix6*)
13182 # Find out what ABI is being produced by ac_compile, and set linker
13183 # options accordingly.
13184 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13185 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13186 (eval $ac_compile) 2>&5
13187 ac_status=$?
13188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13189 test $ac_status = 0; }; then
13190 if test yes = "$lt_cv_prog_gnu_ld"; then
13191 case `/usr/bin/file conftest.$ac_objext` in
13192 *32-bit*)
13193 LD="${LD-ld} -melf32bsmip"
13194 ;;
13195 *N32*)
13196 LD="${LD-ld} -melf32bmipn32"
13197 ;;
13198 *64-bit*)
13199 LD="${LD-ld} -melf64bmip"
13200 ;;
13201 esac
13202 else
13203 case `/usr/bin/file conftest.$ac_objext` in
13204 *32-bit*)
13205 LD="${LD-ld} -32"
13206 ;;
13207 *N32*)
13208 LD="${LD-ld} -n32"
13209 ;;
13210 *64-bit*)
13211 LD="${LD-ld} -64"
13212 ;;
13213 esac
13214 fi
13215 fi
13216 rm -rf conftest*
13217 ;;
13218
13219 mips64*-*linux*)
13220 # Find out what ABI is being produced by ac_compile, and set linker
13221 # options accordingly.
13222 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13223 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13224 (eval $ac_compile) 2>&5
13225 ac_status=$?
13226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13227 test $ac_status = 0; }; then
13228 emul=elf
13229 case `/usr/bin/file conftest.$ac_objext` in
13230 *32-bit*)
13231 emul="${emul}32"
13232 ;;
13233 *64-bit*)
13234 emul="${emul}64"
13235 ;;
13236 esac
13237 case `/usr/bin/file conftest.$ac_objext` in
13238 *MSB*)
13239 emul="${emul}btsmip"
13240 ;;
13241 *LSB*)
13242 emul="${emul}ltsmip"
13243 ;;
13244 esac
13245 case `/usr/bin/file conftest.$ac_objext` in
13246 *N32*)
13247 emul="${emul}n32"
13248 ;;
13249 esac
13250 LD="${LD-ld} -m $emul"
13251 fi
13252 rm -rf conftest*
13253 ;;
13254
13255 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13256 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13257 # Find out what ABI is being produced by ac_compile, and set linker
13258 # options accordingly. Note that the listed cases only cover the
13259 # situations where additional linker options are needed (such as when
13260 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
13261 # vice versa); the common cases where no linker options are needed do
13262 # not appear in the list.
13263 echo 'int i;' > conftest.$ac_ext
13264 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13265 (eval $ac_compile) 2>&5
13266 ac_status=$?
13267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13268 test $ac_status = 0; }; then
13269 case `/usr/bin/file conftest.o` in
13270 *32-bit*)
13271 case $host in
13272 x86_64-*kfreebsd*-gnu)
13273 LD="${LD-ld} -m elf_i386_fbsd"
13274 ;;
13275 x86_64-*linux*)
13276 case `/usr/bin/file conftest.o` in
13277 *x86-64*)
13278 LD="${LD-ld} -m elf32_x86_64"
13279 ;;
13280 *)
13281 LD="${LD-ld} -m elf_i386"
13282 ;;
13283 esac
13284 ;;
13285 powerpc64le-*linux*)
13286 LD="${LD-ld} -m elf32lppclinux"
13287 ;;
13288 powerpc64-*linux*)
13289 LD="${LD-ld} -m elf32ppclinux"
13290 ;;
13291 s390x-*linux*)
13292 LD="${LD-ld} -m elf_s390"
13293 ;;
13294 sparc64-*linux*)
13295 LD="${LD-ld} -m elf32_sparc"
13296 ;;
13297 esac
13298 ;;
13299 *64-bit*)
13300 case $host in
13301 x86_64-*kfreebsd*-gnu)
13302 LD="${LD-ld} -m elf_x86_64_fbsd"
13303 ;;
13304 x86_64-*linux*)
13305 LD="${LD-ld} -m elf_x86_64"
13306 ;;
13307 powerpcle-*linux*)
13308 LD="${LD-ld} -m elf64lppc"
13309 ;;
13310 powerpc-*linux*)
13311 LD="${LD-ld} -m elf64ppc"
13312 ;;
13313 s390*-*linux*|s390*-*tpf*)
13314 LD="${LD-ld} -m elf64_s390"
13315 ;;
13316 sparc*-*linux*)
13317 LD="${LD-ld} -m elf64_sparc"
13318 ;;
13319 esac
13320 ;;
13321 esac
13322 fi
13323 rm -rf conftest*
13324 ;;
13325
13326 *-*-sco3.2v5*)
13327 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13328 SAVE_CFLAGS=$CFLAGS
13329 CFLAGS="$CFLAGS -belf"
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13331 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13332 if ${lt_cv_cc_needs_belf+:} false; then :
13333 $as_echo_n "(cached) " >&6
13334 else
13335 ac_ext=c
13336 ac_cpp='$CPP $CPPFLAGS'
13337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13340
13341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13342 /* end confdefs.h. */
13343
13344 int
13345 main ()
13346 {
13347
13348 ;
13349 return 0;
13350 }
13351 _ACEOF
13352 if ac_fn_c_try_link "$LINENO"; then :
13353 lt_cv_cc_needs_belf=yes
13354 else
13355 lt_cv_cc_needs_belf=no
13356 fi
13357 rm -f core conftest.err conftest.$ac_objext \
13358 conftest$ac_exeext conftest.$ac_ext
13359 ac_ext=c
13360 ac_cpp='$CPP $CPPFLAGS'
13361 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13362 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13363 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13364
13365 fi
13366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13367 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13368 if test yes != "$lt_cv_cc_needs_belf"; then
13369 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13370 CFLAGS=$SAVE_CFLAGS
13371 fi
13372 ;;
13373 *-*solaris*)
13374 # Find out what ABI is being produced by ac_compile, and set linker
13375 # options accordingly.
13376 echo 'int i;' > conftest.$ac_ext
13377 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13378 (eval $ac_compile) 2>&5
13379 ac_status=$?
13380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13381 test $ac_status = 0; }; then
13382 case `/usr/bin/file conftest.o` in
13383 *64-bit*)
13384 case $lt_cv_prog_gnu_ld in
13385 yes*)
13386 case $host in
13387 i?86-*-solaris*|x86_64-*-solaris*)
13388 LD="${LD-ld} -m elf_x86_64"
13389 ;;
13390 sparc*-*-solaris*)
13391 LD="${LD-ld} -m elf64_sparc"
13392 ;;
13393 esac
13394 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
13395 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
13396 LD=${LD-ld}_sol2
13397 fi
13398 ;;
13399 *)
13400 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13401 LD="${LD-ld} -64"
13402 fi
13403 ;;
13404 esac
13405 ;;
13406 esac
13407 fi
13408 rm -rf conftest*
13409 ;;
13410 esac
13411
13412 need_locks=$enable_libtool_lock
13413
13414 if test -n "$ac_tool_prefix"; then
13415 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
13416 set dummy ${ac_tool_prefix}mt; ac_word=$2
13417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13418 $as_echo_n "checking for $ac_word... " >&6; }
13419 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
13420 $as_echo_n "(cached) " >&6
13421 else
13422 if test -n "$MANIFEST_TOOL"; then
13423 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
13424 else
13425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13426 for as_dir in $PATH
13427 do
13428 IFS=$as_save_IFS
13429 test -z "$as_dir" && as_dir=.
13430 for ac_exec_ext in '' $ac_executable_extensions; do
13431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13432 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
13433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13434 break 2
13435 fi
13436 done
13437 done
13438 IFS=$as_save_IFS
13439
13440 fi
13441 fi
13442 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
13443 if test -n "$MANIFEST_TOOL"; then
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
13445 $as_echo "$MANIFEST_TOOL" >&6; }
13446 else
13447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13448 $as_echo "no" >&6; }
13449 fi
13450
13451
13452 fi
13453 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
13454 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
13455 # Extract the first word of "mt", so it can be a program name with args.
13456 set dummy mt; ac_word=$2
13457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13458 $as_echo_n "checking for $ac_word... " >&6; }
13459 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
13460 $as_echo_n "(cached) " >&6
13461 else
13462 if test -n "$ac_ct_MANIFEST_TOOL"; then
13463 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13464 else
13465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13466 for as_dir in $PATH
13467 do
13468 IFS=$as_save_IFS
13469 test -z "$as_dir" && as_dir=.
13470 for ac_exec_ext in '' $ac_executable_extensions; do
13471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13472 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13474 break 2
13475 fi
13476 done
13477 done
13478 IFS=$as_save_IFS
13479
13480 fi
13481 fi
13482 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13483 if test -n "$ac_ct_MANIFEST_TOOL"; then
13484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13485 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
13486 else
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13488 $as_echo "no" >&6; }
13489 fi
13490
13491 if test "x$ac_ct_MANIFEST_TOOL" = x; then
13492 MANIFEST_TOOL=":"
13493 else
13494 case $cross_compiling:$ac_tool_warned in
13495 yes:)
13496 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13497 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13498 ac_tool_warned=yes ;;
13499 esac
13500 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13501 fi
13502 else
13503 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13504 fi
13505
13506 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13508 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13509 if ${lt_cv_path_mainfest_tool+:} false; then :
13510 $as_echo_n "(cached) " >&6
13511 else
13512 lt_cv_path_mainfest_tool=no
13513 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13514 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13515 cat conftest.err >&5
13516 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13517 lt_cv_path_mainfest_tool=yes
13518 fi
13519 rm -f conftest*
13520 fi
13521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13522 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
13523 if test yes != "$lt_cv_path_mainfest_tool"; then
13524 MANIFEST_TOOL=:
13525 fi
13526
13527
13528
13529
13530
13531
13532 case $host_os in
13533 rhapsody* | darwin*)
13534 if test -n "$ac_tool_prefix"; then
13535 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13536 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13538 $as_echo_n "checking for $ac_word... " >&6; }
13539 if ${ac_cv_prog_DSYMUTIL+:} false; then :
13540 $as_echo_n "(cached) " >&6
13541 else
13542 if test -n "$DSYMUTIL"; then
13543 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13544 else
13545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13546 for as_dir in $PATH
13547 do
13548 IFS=$as_save_IFS
13549 test -z "$as_dir" && as_dir=.
13550 for ac_exec_ext in '' $ac_executable_extensions; do
13551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13552 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13554 break 2
13555 fi
13556 done
13557 done
13558 IFS=$as_save_IFS
13559
13560 fi
13561 fi
13562 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13563 if test -n "$DSYMUTIL"; then
13564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13565 $as_echo "$DSYMUTIL" >&6; }
13566 else
13567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13568 $as_echo "no" >&6; }
13569 fi
13570
13571
13572 fi
13573 if test -z "$ac_cv_prog_DSYMUTIL"; then
13574 ac_ct_DSYMUTIL=$DSYMUTIL
13575 # Extract the first word of "dsymutil", so it can be a program name with args.
13576 set dummy dsymutil; ac_word=$2
13577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13578 $as_echo_n "checking for $ac_word... " >&6; }
13579 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
13580 $as_echo_n "(cached) " >&6
13581 else
13582 if test -n "$ac_ct_DSYMUTIL"; then
13583 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13584 else
13585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13586 for as_dir in $PATH
13587 do
13588 IFS=$as_save_IFS
13589 test -z "$as_dir" && as_dir=.
13590 for ac_exec_ext in '' $ac_executable_extensions; do
13591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13592 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13594 break 2
13595 fi
13596 done
13597 done
13598 IFS=$as_save_IFS
13599
13600 fi
13601 fi
13602 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13603 if test -n "$ac_ct_DSYMUTIL"; then
13604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13605 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13606 else
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13608 $as_echo "no" >&6; }
13609 fi
13610
13611 if test "x$ac_ct_DSYMUTIL" = x; then
13612 DSYMUTIL=":"
13613 else
13614 case $cross_compiling:$ac_tool_warned in
13615 yes:)
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13617 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13618 ac_tool_warned=yes ;;
13619 esac
13620 DSYMUTIL=$ac_ct_DSYMUTIL
13621 fi
13622 else
13623 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13624 fi
13625
13626 if test -n "$ac_tool_prefix"; then
13627 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13628 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13630 $as_echo_n "checking for $ac_word... " >&6; }
13631 if ${ac_cv_prog_NMEDIT+:} false; then :
13632 $as_echo_n "(cached) " >&6
13633 else
13634 if test -n "$NMEDIT"; then
13635 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13636 else
13637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13638 for as_dir in $PATH
13639 do
13640 IFS=$as_save_IFS
13641 test -z "$as_dir" && as_dir=.
13642 for ac_exec_ext in '' $ac_executable_extensions; do
13643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13644 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13646 break 2
13647 fi
13648 done
13649 done
13650 IFS=$as_save_IFS
13651
13652 fi
13653 fi
13654 NMEDIT=$ac_cv_prog_NMEDIT
13655 if test -n "$NMEDIT"; then
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13657 $as_echo "$NMEDIT" >&6; }
13658 else
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13660 $as_echo "no" >&6; }
13661 fi
13662
13663
13664 fi
13665 if test -z "$ac_cv_prog_NMEDIT"; then
13666 ac_ct_NMEDIT=$NMEDIT
13667 # Extract the first word of "nmedit", so it can be a program name with args.
13668 set dummy nmedit; ac_word=$2
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13670 $as_echo_n "checking for $ac_word... " >&6; }
13671 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
13672 $as_echo_n "(cached) " >&6
13673 else
13674 if test -n "$ac_ct_NMEDIT"; then
13675 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13676 else
13677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13678 for as_dir in $PATH
13679 do
13680 IFS=$as_save_IFS
13681 test -z "$as_dir" && as_dir=.
13682 for ac_exec_ext in '' $ac_executable_extensions; do
13683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13684 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13686 break 2
13687 fi
13688 done
13689 done
13690 IFS=$as_save_IFS
13691
13692 fi
13693 fi
13694 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13695 if test -n "$ac_ct_NMEDIT"; then
13696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13697 $as_echo "$ac_ct_NMEDIT" >&6; }
13698 else
13699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13700 $as_echo "no" >&6; }
13701 fi
13702
13703 if test "x$ac_ct_NMEDIT" = x; then
13704 NMEDIT=":"
13705 else
13706 case $cross_compiling:$ac_tool_warned in
13707 yes:)
13708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13709 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13710 ac_tool_warned=yes ;;
13711 esac
13712 NMEDIT=$ac_ct_NMEDIT
13713 fi
13714 else
13715 NMEDIT="$ac_cv_prog_NMEDIT"
13716 fi
13717
13718 if test -n "$ac_tool_prefix"; then
13719 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13720 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13722 $as_echo_n "checking for $ac_word... " >&6; }
13723 if ${ac_cv_prog_LIPO+:} false; then :
13724 $as_echo_n "(cached) " >&6
13725 else
13726 if test -n "$LIPO"; then
13727 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13728 else
13729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13730 for as_dir in $PATH
13731 do
13732 IFS=$as_save_IFS
13733 test -z "$as_dir" && as_dir=.
13734 for ac_exec_ext in '' $ac_executable_extensions; do
13735 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13736 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13738 break 2
13739 fi
13740 done
13741 done
13742 IFS=$as_save_IFS
13743
13744 fi
13745 fi
13746 LIPO=$ac_cv_prog_LIPO
13747 if test -n "$LIPO"; then
13748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13749 $as_echo "$LIPO" >&6; }
13750 else
13751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13752 $as_echo "no" >&6; }
13753 fi
13754
13755
13756 fi
13757 if test -z "$ac_cv_prog_LIPO"; then
13758 ac_ct_LIPO=$LIPO
13759 # Extract the first word of "lipo", so it can be a program name with args.
13760 set dummy lipo; ac_word=$2
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13762 $as_echo_n "checking for $ac_word... " >&6; }
13763 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
13764 $as_echo_n "(cached) " >&6
13765 else
13766 if test -n "$ac_ct_LIPO"; then
13767 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13768 else
13769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13770 for as_dir in $PATH
13771 do
13772 IFS=$as_save_IFS
13773 test -z "$as_dir" && as_dir=.
13774 for ac_exec_ext in '' $ac_executable_extensions; do
13775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13776 ac_cv_prog_ac_ct_LIPO="lipo"
13777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13778 break 2
13779 fi
13780 done
13781 done
13782 IFS=$as_save_IFS
13783
13784 fi
13785 fi
13786 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13787 if test -n "$ac_ct_LIPO"; then
13788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13789 $as_echo "$ac_ct_LIPO" >&6; }
13790 else
13791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13792 $as_echo "no" >&6; }
13793 fi
13794
13795 if test "x$ac_ct_LIPO" = x; then
13796 LIPO=":"
13797 else
13798 case $cross_compiling:$ac_tool_warned in
13799 yes:)
13800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13801 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13802 ac_tool_warned=yes ;;
13803 esac
13804 LIPO=$ac_ct_LIPO
13805 fi
13806 else
13807 LIPO="$ac_cv_prog_LIPO"
13808 fi
13809
13810 if test -n "$ac_tool_prefix"; then
13811 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13812 set dummy ${ac_tool_prefix}otool; ac_word=$2
13813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13814 $as_echo_n "checking for $ac_word... " >&6; }
13815 if ${ac_cv_prog_OTOOL+:} false; then :
13816 $as_echo_n "(cached) " >&6
13817 else
13818 if test -n "$OTOOL"; then
13819 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13820 else
13821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13822 for as_dir in $PATH
13823 do
13824 IFS=$as_save_IFS
13825 test -z "$as_dir" && as_dir=.
13826 for ac_exec_ext in '' $ac_executable_extensions; do
13827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13828 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13830 break 2
13831 fi
13832 done
13833 done
13834 IFS=$as_save_IFS
13835
13836 fi
13837 fi
13838 OTOOL=$ac_cv_prog_OTOOL
13839 if test -n "$OTOOL"; then
13840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13841 $as_echo "$OTOOL" >&6; }
13842 else
13843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13844 $as_echo "no" >&6; }
13845 fi
13846
13847
13848 fi
13849 if test -z "$ac_cv_prog_OTOOL"; then
13850 ac_ct_OTOOL=$OTOOL
13851 # Extract the first word of "otool", so it can be a program name with args.
13852 set dummy otool; ac_word=$2
13853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13854 $as_echo_n "checking for $ac_word... " >&6; }
13855 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
13856 $as_echo_n "(cached) " >&6
13857 else
13858 if test -n "$ac_ct_OTOOL"; then
13859 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13860 else
13861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13862 for as_dir in $PATH
13863 do
13864 IFS=$as_save_IFS
13865 test -z "$as_dir" && as_dir=.
13866 for ac_exec_ext in '' $ac_executable_extensions; do
13867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13868 ac_cv_prog_ac_ct_OTOOL="otool"
13869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13870 break 2
13871 fi
13872 done
13873 done
13874 IFS=$as_save_IFS
13875
13876 fi
13877 fi
13878 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13879 if test -n "$ac_ct_OTOOL"; then
13880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13881 $as_echo "$ac_ct_OTOOL" >&6; }
13882 else
13883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13884 $as_echo "no" >&6; }
13885 fi
13886
13887 if test "x$ac_ct_OTOOL" = x; then
13888 OTOOL=":"
13889 else
13890 case $cross_compiling:$ac_tool_warned in
13891 yes:)
13892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13893 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13894 ac_tool_warned=yes ;;
13895 esac
13896 OTOOL=$ac_ct_OTOOL
13897 fi
13898 else
13899 OTOOL="$ac_cv_prog_OTOOL"
13900 fi
13901
13902 if test -n "$ac_tool_prefix"; then
13903 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13904 set dummy ${ac_tool_prefix}otool64; ac_word=$2
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13906 $as_echo_n "checking for $ac_word... " >&6; }
13907 if ${ac_cv_prog_OTOOL64+:} false; then :
13908 $as_echo_n "(cached) " >&6
13909 else
13910 if test -n "$OTOOL64"; then
13911 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13912 else
13913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13914 for as_dir in $PATH
13915 do
13916 IFS=$as_save_IFS
13917 test -z "$as_dir" && as_dir=.
13918 for ac_exec_ext in '' $ac_executable_extensions; do
13919 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13920 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13922 break 2
13923 fi
13924 done
13925 done
13926 IFS=$as_save_IFS
13927
13928 fi
13929 fi
13930 OTOOL64=$ac_cv_prog_OTOOL64
13931 if test -n "$OTOOL64"; then
13932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13933 $as_echo "$OTOOL64" >&6; }
13934 else
13935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13936 $as_echo "no" >&6; }
13937 fi
13938
13939
13940 fi
13941 if test -z "$ac_cv_prog_OTOOL64"; then
13942 ac_ct_OTOOL64=$OTOOL64
13943 # Extract the first word of "otool64", so it can be a program name with args.
13944 set dummy otool64; ac_word=$2
13945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13946 $as_echo_n "checking for $ac_word... " >&6; }
13947 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
13948 $as_echo_n "(cached) " >&6
13949 else
13950 if test -n "$ac_ct_OTOOL64"; then
13951 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13952 else
13953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13954 for as_dir in $PATH
13955 do
13956 IFS=$as_save_IFS
13957 test -z "$as_dir" && as_dir=.
13958 for ac_exec_ext in '' $ac_executable_extensions; do
13959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13960 ac_cv_prog_ac_ct_OTOOL64="otool64"
13961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13962 break 2
13963 fi
13964 done
13965 done
13966 IFS=$as_save_IFS
13967
13968 fi
13969 fi
13970 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13971 if test -n "$ac_ct_OTOOL64"; then
13972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13973 $as_echo "$ac_ct_OTOOL64" >&6; }
13974 else
13975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13976 $as_echo "no" >&6; }
13977 fi
13978
13979 if test "x$ac_ct_OTOOL64" = x; then
13980 OTOOL64=":"
13981 else
13982 case $cross_compiling:$ac_tool_warned in
13983 yes:)
13984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13985 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13986 ac_tool_warned=yes ;;
13987 esac
13988 OTOOL64=$ac_ct_OTOOL64
13989 fi
13990 else
13991 OTOOL64="$ac_cv_prog_OTOOL64"
13992 fi
13993
13994
13995
13996
13997
13998
13999
14000
14001
14002
14003
14004
14005
14006
14007
14008
14009
14010
14011
14012
14013
14014
14015
14016
14017
14018
14019
14020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14021 $as_echo_n "checking for -single_module linker flag... " >&6; }
14022 if ${lt_cv_apple_cc_single_mod+:} false; then :
14023 $as_echo_n "(cached) " >&6
14024 else
14025 lt_cv_apple_cc_single_mod=no
14026 if test -z "$LT_MULTI_MODULE"; then
14027 # By default we will add the -single_module flag. You can override
14028 # by either setting the environment variable LT_MULTI_MODULE
14029 # non-empty at configure time, or by adding -multi_module to the
14030 # link flags.
14031 rm -rf libconftest.dylib*
14032 echo "int foo(void){return 1;}" > conftest.c
14033 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14034 -dynamiclib -Wl,-single_module conftest.c" >&5
14035 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14036 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14037 _lt_result=$?
14038 # If there is a non-empty error log, and "single_module"
14039 # appears in it, assume the flag caused a linker warning
14040 if test -s conftest.err && $GREP single_module conftest.err; then
14041 cat conftest.err >&5
14042 # Otherwise, if the output was created with a 0 exit code from
14043 # the compiler, it worked.
14044 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
14045 lt_cv_apple_cc_single_mod=yes
14046 else
14047 cat conftest.err >&5
14048 fi
14049 rm -rf libconftest.dylib*
14050 rm -f conftest.*
14051 fi
14052 fi
14053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14054 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14055
14056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14057 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14058 if ${lt_cv_ld_exported_symbols_list+:} false; then :
14059 $as_echo_n "(cached) " >&6
14060 else
14061 lt_cv_ld_exported_symbols_list=no
14062 save_LDFLAGS=$LDFLAGS
14063 echo "_main" > conftest.sym
14064 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14066 /* end confdefs.h. */
14067
14068 int
14069 main ()
14070 {
14071
14072 ;
14073 return 0;
14074 }
14075 _ACEOF
14076 if ac_fn_c_try_link "$LINENO"; then :
14077 lt_cv_ld_exported_symbols_list=yes
14078 else
14079 lt_cv_ld_exported_symbols_list=no
14080 fi
14081 rm -f core conftest.err conftest.$ac_objext \
14082 conftest$ac_exeext conftest.$ac_ext
14083 LDFLAGS=$save_LDFLAGS
14084
14085 fi
14086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14087 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14088
14089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14090 $as_echo_n "checking for -force_load linker flag... " >&6; }
14091 if ${lt_cv_ld_force_load+:} false; then :
14092 $as_echo_n "(cached) " >&6
14093 else
14094 lt_cv_ld_force_load=no
14095 cat > conftest.c << _LT_EOF
14096 int forced_loaded() { return 2;}
14097 _LT_EOF
14098 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14099 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14100 echo "$AR cru libconftest.a conftest.o" >&5
14101 $AR cru libconftest.a conftest.o 2>&5
14102 echo "$RANLIB libconftest.a" >&5
14103 $RANLIB libconftest.a 2>&5
14104 cat > conftest.c << _LT_EOF
14105 int main() { return 0;}
14106 _LT_EOF
14107 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14108 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14109 _lt_result=$?
14110 if test -s conftest.err && $GREP force_load conftest.err; then
14111 cat conftest.err >&5
14112 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
14113 lt_cv_ld_force_load=yes
14114 else
14115 cat conftest.err >&5
14116 fi
14117 rm -f conftest.err libconftest.a conftest conftest.c
14118 rm -rf conftest.dSYM
14119
14120 fi
14121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14122 $as_echo "$lt_cv_ld_force_load" >&6; }
14123 case $host_os in
14124 rhapsody* | darwin1.[012])
14125 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
14126 darwin1.*)
14127 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
14128 darwin*) # darwin 5.x on
14129 # if running on 10.5 or later, the deployment target defaults
14130 # to the OS version, if on x86, and 10.4, the deployment
14131 # target defaults to 10.4. Don't you love it?
14132 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14133 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14134 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
14135 10.[012][,.]*)
14136 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
14137 10.*)
14138 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
14139 esac
14140 ;;
14141 esac
14142 if test yes = "$lt_cv_apple_cc_single_mod"; then
14143 _lt_dar_single_mod='$single_module'
14144 fi
14145 if test yes = "$lt_cv_ld_exported_symbols_list"; then
14146 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
14147 else
14148 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
14149 fi
14150 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
14151 _lt_dsymutil='~$DSYMUTIL $lib || :'
14152 else
14153 _lt_dsymutil=
14154 fi
14155 ;;
14156 esac
14157
14158 # func_munge_path_list VARIABLE PATH
14159 # -----------------------------------
14160 # VARIABLE is name of variable containing _space_ separated list of
14161 # directories to be munged by the contents of PATH, which is string
14162 # having a format:
14163 # "DIR[:DIR]:"
14164 # string "DIR[ DIR]" will be prepended to VARIABLE
14165 # ":DIR[:DIR]"
14166 # string "DIR[ DIR]" will be appended to VARIABLE
14167 # "DIRP[:DIRP]::[DIRA:]DIRA"
14168 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
14169 # "DIRA[ DIRA]" will be appended to VARIABLE
14170 # "DIR[:DIR]"
14171 # VARIABLE will be replaced by "DIR[ DIR]"
14172 func_munge_path_list ()
14173 {
14174 case x$2 in
14175 x)
14176 ;;
14177 *:)
14178 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
14179 ;;
14180 x:*)
14181 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
14182 ;;
14183 *::*)
14184 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
14185 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
14186 ;;
14187 *)
14188 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
14189 ;;
14190 esac
14191 }
14192
14193 for ac_header in dlfcn.h
14194 do :
14195 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
14196 "
14197 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
14198 cat >>confdefs.h <<_ACEOF
14199 #define HAVE_DLFCN_H 1
14200 _ACEOF
14201
14202 fi
14203
14204 done
14205
14206
14207
14208
14209
14210 # Set options
14211
14212
14213
14214 enable_dlopen=no
14215
14216
14217 enable_win32_dll=no
14218
14219
14220 # Check whether --enable-shared was given.
14221 if test "${enable_shared+set}" = set; then :
14222 enableval=$enable_shared; p=${PACKAGE-default}
14223 case $enableval in
14224 yes) enable_shared=yes ;;
14225 no) enable_shared=no ;;
14226 *)
14227 enable_shared=no
14228 # Look at the argument we got. We use all the common list separators.
14229 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14230 for pkg in $enableval; do
14231 IFS=$lt_save_ifs
14232 if test "X$pkg" = "X$p"; then
14233 enable_shared=yes
14234 fi
14235 done
14236 IFS=$lt_save_ifs
14237 ;;
14238 esac
14239 else
14240 enable_shared=yes
14241 fi
14242
14243
14244
14245
14246
14247
14248
14249
14250
14251
14252
14253 # Check whether --with-pic was given.
14254 if test "${with_pic+set}" = set; then :
14255 withval=$with_pic; lt_p=${PACKAGE-default}
14256 case $withval in
14257 yes|no) pic_mode=$withval ;;
14258 *)
14259 pic_mode=default
14260 # Look at the argument we got. We use all the common list separators.
14261 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14262 for lt_pkg in $withval; do
14263 IFS=$lt_save_ifs
14264 if test "X$lt_pkg" = "X$lt_p"; then
14265 pic_mode=yes
14266 fi
14267 done
14268 IFS=$lt_save_ifs
14269 ;;
14270 esac
14271 else
14272 pic_mode=default
14273 fi
14274
14275
14276
14277
14278
14279
14280
14281
14282 # Check whether --enable-fast-install was given.
14283 if test "${enable_fast_install+set}" = set; then :
14284 enableval=$enable_fast_install; p=${PACKAGE-default}
14285 case $enableval in
14286 yes) enable_fast_install=yes ;;
14287 no) enable_fast_install=no ;;
14288 *)
14289 enable_fast_install=no
14290 # Look at the argument we got. We use all the common list separators.
14291 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14292 for pkg in $enableval; do
14293 IFS=$lt_save_ifs
14294 if test "X$pkg" = "X$p"; then
14295 enable_fast_install=yes
14296 fi
14297 done
14298 IFS=$lt_save_ifs
14299 ;;
14300 esac
14301 else
14302 enable_fast_install=yes
14303 fi
14304
14305
14306
14307
14308
14309
14310
14311
14312 shared_archive_member_spec=
14313 case $host,$enable_shared in
14314 power*-*-aix[5-9]*,yes)
14315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
14316 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
14317
14318 # Check whether --with-aix-soname was given.
14319 if test "${with_aix_soname+set}" = set; then :
14320 withval=$with_aix_soname; case $withval in
14321 aix|svr4|both)
14322 ;;
14323 *)
14324 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
14325 ;;
14326 esac
14327 lt_cv_with_aix_soname=$with_aix_soname
14328 else
14329 if ${lt_cv_with_aix_soname+:} false; then :
14330 $as_echo_n "(cached) " >&6
14331 else
14332 lt_cv_with_aix_soname=aix
14333 fi
14334
14335 with_aix_soname=$lt_cv_with_aix_soname
14336 fi
14337
14338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
14339 $as_echo "$with_aix_soname" >&6; }
14340 if test aix != "$with_aix_soname"; then
14341 # For the AIX way of multilib, we name the shared archive member
14342 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
14343 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
14344 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
14345 # the AIX toolchain works better with OBJECT_MODE set (default 32).
14346 if test 64 = "${OBJECT_MODE-32}"; then
14347 shared_archive_member_spec=shr_64
14348 else
14349 shared_archive_member_spec=shr
14350 fi
14351 fi
14352 ;;
14353 *)
14354 with_aix_soname=aix
14355 ;;
14356 esac
14357
14358
14359
14360
14361
14362
14363
14364
14365
14366
14367 # This can be used to rebuild libtool when needed
14368 LIBTOOL_DEPS=$ltmain
14369
14370 # Always use our own libtool.
14371 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14372
14373
14374
14375
14376
14377
14378
14379
14380
14381
14382
14383
14384
14385
14386
14387
14388
14389
14390
14391
14392
14393
14394
14395
14396
14397
14398
14399
14400
14401
14402 test -z "$LN_S" && LN_S="ln -s"
14403
14404
14405
14406
14407
14408
14409
14410
14411
14412
14413
14414
14415
14416
14417 if test -n "${ZSH_VERSION+set}"; then
14418 setopt NO_GLOB_SUBST
14419 fi
14420
14421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14422 $as_echo_n "checking for objdir... " >&6; }
14423 if ${lt_cv_objdir+:} false; then :
14424 $as_echo_n "(cached) " >&6
14425 else
14426 rm -f .libs 2>/dev/null
14427 mkdir .libs 2>/dev/null
14428 if test -d .libs; then
14429 lt_cv_objdir=.libs
14430 else
14431 # MS-DOS does not allow filenames that begin with a dot.
14432 lt_cv_objdir=_libs
14433 fi
14434 rmdir .libs 2>/dev/null
14435 fi
14436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14437 $as_echo "$lt_cv_objdir" >&6; }
14438 objdir=$lt_cv_objdir
14439
14440
14441
14442
14443
14444 cat >>confdefs.h <<_ACEOF
14445 #define LT_OBJDIR "$lt_cv_objdir/"
14446 _ACEOF
14447
14448
14449
14450
14451 case $host_os in
14452 aix3*)
14453 # AIX sometimes has problems with the GCC collect2 program. For some
14454 # reason, if we set the COLLECT_NAMES environment variable, the problems
14455 # vanish in a puff of smoke.
14456 if test set != "${COLLECT_NAMES+set}"; then
14457 COLLECT_NAMES=
14458 export COLLECT_NAMES
14459 fi
14460 ;;
14461 esac
14462
14463 # Global variables:
14464 ofile=libtool
14465 can_build_shared=yes
14466
14467 # All known linkers require a '.a' archive for static linking (except MSVC,
14468 # which needs '.lib').
14469 libext=a
14470
14471 with_gnu_ld=$lt_cv_prog_gnu_ld
14472
14473 old_CC=$CC
14474 old_CFLAGS=$CFLAGS
14475
14476 # Set sane defaults for various variables
14477 test -z "$CC" && CC=cc
14478 test -z "$LTCC" && LTCC=$CC
14479 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14480 test -z "$LD" && LD=ld
14481 test -z "$ac_objext" && ac_objext=o
14482
14483 func_cc_basename $compiler
14484 cc_basename=$func_cc_basename_result
14485
14486
14487 # Only perform the check for file, if the check method requires it
14488 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14489 case $deplibs_check_method in
14490 file_magic*)
14491 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14493 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14494 if ${lt_cv_path_MAGIC_CMD+:} false; then :
14495 $as_echo_n "(cached) " >&6
14496 else
14497 case $MAGIC_CMD in
14498 [\\/*] | ?:[\\/]*)
14499 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
14500 ;;
14501 *)
14502 lt_save_MAGIC_CMD=$MAGIC_CMD
14503 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14504 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14505 for ac_dir in $ac_dummy; do
14506 IFS=$lt_save_ifs
14507 test -z "$ac_dir" && ac_dir=.
14508 if test -f "$ac_dir/${ac_tool_prefix}file"; then
14509 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
14510 if test -n "$file_magic_test_file"; then
14511 case $deplibs_check_method in
14512 "file_magic "*)
14513 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14514 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14515 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14516 $EGREP "$file_magic_regex" > /dev/null; then
14517 :
14518 else
14519 cat <<_LT_EOF 1>&2
14520
14521 *** Warning: the command libtool uses to detect shared libraries,
14522 *** $file_magic_cmd, produces output that libtool cannot recognize.
14523 *** The result is that libtool may fail to recognize shared libraries
14524 *** as such. This will affect the creation of libtool libraries that
14525 *** depend on shared libraries, but programs linked with such libtool
14526 *** libraries will work regardless of this problem. Nevertheless, you
14527 *** may want to report the problem to your system manager and/or to
14528 *** bug-libtool (at] gnu.org
14529
14530 _LT_EOF
14531 fi ;;
14532 esac
14533 fi
14534 break
14535 fi
14536 done
14537 IFS=$lt_save_ifs
14538 MAGIC_CMD=$lt_save_MAGIC_CMD
14539 ;;
14540 esac
14541 fi
14542
14543 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14544 if test -n "$MAGIC_CMD"; then
14545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14546 $as_echo "$MAGIC_CMD" >&6; }
14547 else
14548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14549 $as_echo "no" >&6; }
14550 fi
14551
14552
14553
14554
14555
14556 if test -z "$lt_cv_path_MAGIC_CMD"; then
14557 if test -n "$ac_tool_prefix"; then
14558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14559 $as_echo_n "checking for file... " >&6; }
14560 if ${lt_cv_path_MAGIC_CMD+:} false; then :
14561 $as_echo_n "(cached) " >&6
14562 else
14563 case $MAGIC_CMD in
14564 [\\/*] | ?:[\\/]*)
14565 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
14566 ;;
14567 *)
14568 lt_save_MAGIC_CMD=$MAGIC_CMD
14569 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14570 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14571 for ac_dir in $ac_dummy; do
14572 IFS=$lt_save_ifs
14573 test -z "$ac_dir" && ac_dir=.
14574 if test -f "$ac_dir/file"; then
14575 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
14576 if test -n "$file_magic_test_file"; then
14577 case $deplibs_check_method in
14578 "file_magic "*)
14579 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14580 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14581 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14582 $EGREP "$file_magic_regex" > /dev/null; then
14583 :
14584 else
14585 cat <<_LT_EOF 1>&2
14586
14587 *** Warning: the command libtool uses to detect shared libraries,
14588 *** $file_magic_cmd, produces output that libtool cannot recognize.
14589 *** The result is that libtool may fail to recognize shared libraries
14590 *** as such. This will affect the creation of libtool libraries that
14591 *** depend on shared libraries, but programs linked with such libtool
14592 *** libraries will work regardless of this problem. Nevertheless, you
14593 *** may want to report the problem to your system manager and/or to
14594 *** bug-libtool (at] gnu.org
14595
14596 _LT_EOF
14597 fi ;;
14598 esac
14599 fi
14600 break
14601 fi
14602 done
14603 IFS=$lt_save_ifs
14604 MAGIC_CMD=$lt_save_MAGIC_CMD
14605 ;;
14606 esac
14607 fi
14608
14609 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14610 if test -n "$MAGIC_CMD"; then
14611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14612 $as_echo "$MAGIC_CMD" >&6; }
14613 else
14614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14615 $as_echo "no" >&6; }
14616 fi
14617
14618
14619 else
14620 MAGIC_CMD=:
14621 fi
14622 fi
14623
14624 fi
14625 ;;
14626 esac
14627
14628 # Use C for the default configuration in the libtool script
14629
14630 lt_save_CC=$CC
14631 ac_ext=c
14632 ac_cpp='$CPP $CPPFLAGS'
14633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14636
14637
14638 # Source file extension for C test sources.
14639 ac_ext=c
14640
14641 # Object file extension for compiled C test sources.
14642 objext=o
14643 objext=$objext
14644
14645 # Code to be used in simple compile tests
14646 lt_simple_compile_test_code="int some_variable = 0;"
14647
14648 # Code to be used in simple link tests
14649 lt_simple_link_test_code='int main(){return(0);}'
14650
14651
14652
14653
14654
14655
14656
14657 # If no C compiler was specified, use CC.
14658 LTCC=${LTCC-"$CC"}
14659
14660 # If no C compiler flags were specified, use CFLAGS.
14661 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14662
14663 # Allow CC to be a program name with arguments.
14664 compiler=$CC
14665
14666 # Save the default compiler, since it gets overwritten when the other
14667 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14668 compiler_DEFAULT=$CC
14669
14670 # save warnings/boilerplate of simple test code
14671 ac_outfile=conftest.$ac_objext
14672 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14673 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14674 _lt_compiler_boilerplate=`cat conftest.err`
14675 $RM conftest*
14676
14677 ac_outfile=conftest.$ac_objext
14678 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14679 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14680 _lt_linker_boilerplate=`cat conftest.err`
14681 $RM -r conftest*
14682
14683
14684 if test -n "$compiler"; then
14685
14686 lt_prog_compiler_no_builtin_flag=
14687
14688 if test yes = "$GCC"; then
14689 case $cc_basename in
14690 nvcc*)
14691 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14692 *)
14693 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14694 esac
14695
14696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14697 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14698 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
14699 $as_echo_n "(cached) " >&6
14700 else
14701 lt_cv_prog_compiler_rtti_exceptions=no
14702 ac_outfile=conftest.$ac_objext
14703 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14704 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
14705 # Insert the option either (1) after the last *FLAGS variable, or
14706 # (2) before a word containing "conftest.", or (3) at the end.
14707 # Note that $ac_compile itself does not contain backslashes and begins
14708 # with a dollar sign (not a hyphen), so the echo should work correctly.
14709 # The option is referenced via a variable to avoid confusing sed.
14710 lt_compile=`echo "$ac_compile" | $SED \
14711 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14712 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14713 -e 's:$: $lt_compiler_flag:'`
14714 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14715 (eval "$lt_compile" 2>conftest.err)
14716 ac_status=$?
14717 cat conftest.err >&5
14718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14719 if (exit $ac_status) && test -s "$ac_outfile"; then
14720 # The compiler can only warn and ignore the option if not recognized
14721 # So say no if there are warnings other than the usual output.
14722 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14723 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14724 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14725 lt_cv_prog_compiler_rtti_exceptions=yes
14726 fi
14727 fi
14728 $RM conftest*
14729
14730 fi
14731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14732 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14733
14734 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
14735 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14736 else
14737 :
14738 fi
14739
14740 fi
14741
14742
14743
14744
14745
14746
14747 lt_prog_compiler_wl=
14748 lt_prog_compiler_pic=
14749 lt_prog_compiler_static=
14750
14751
14752 if test yes = "$GCC"; then
14753 lt_prog_compiler_wl='-Wl,'
14754 lt_prog_compiler_static='-static'
14755
14756 case $host_os in
14757 aix*)
14758 # All AIX code is PIC.
14759 if test ia64 = "$host_cpu"; then
14760 # AIX 5 now supports IA64 processor
14761 lt_prog_compiler_static='-Bstatic'
14762 fi
14763 lt_prog_compiler_pic='-fPIC'
14764 ;;
14765
14766 amigaos*)
14767 case $host_cpu in
14768 powerpc)
14769 # see comment about AmigaOS4 .so support
14770 lt_prog_compiler_pic='-fPIC'
14771 ;;
14772 m68k)
14773 # FIXME: we need at least 68020 code to build shared libraries, but
14774 # adding the '-m68020' flag to GCC prevents building anything better,
14775 # like '-m68040'.
14776 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14777 ;;
14778 esac
14779 ;;
14780
14781 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14782 # PIC is the default for these OSes.
14783 ;;
14784
14785 mingw* | cygwin* | pw32* | os2* | cegcc*)
14786 # This hack is so that the source file can tell whether it is being
14787 # built for inclusion in a dll (and should export symbols for example).
14788 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14789 # (--disable-auto-import) libraries
14790 lt_prog_compiler_pic='-DDLL_EXPORT'
14791 case $host_os in
14792 os2*)
14793 lt_prog_compiler_static='$wl-static'
14794 ;;
14795 esac
14796 ;;
14797
14798 darwin* | rhapsody*)
14799 # PIC is the default on this platform
14800 # Common symbols not allowed in MH_DYLIB files
14801 lt_prog_compiler_pic='-fno-common'
14802 ;;
14803
14804 haiku*)
14805 # PIC is the default for Haiku.
14806 # The "-static" flag exists, but is broken.
14807 lt_prog_compiler_static=
14808 ;;
14809
14810 hpux*)
14811 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14812 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14813 # sets the default TLS model and affects inlining.
14814 case $host_cpu in
14815 hppa*64*)
14816 # +Z the default
14817 ;;
14818 *)
14819 lt_prog_compiler_pic='-fPIC'
14820 ;;
14821 esac
14822 ;;
14823
14824 interix[3-9]*)
14825 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14826 # Instead, we relocate shared libraries at runtime.
14827 ;;
14828
14829 msdosdjgpp*)
14830 # Just because we use GCC doesn't mean we suddenly get shared libraries
14831 # on systems that don't support them.
14832 lt_prog_compiler_can_build_shared=no
14833 enable_shared=no
14834 ;;
14835
14836 *nto* | *qnx*)
14837 # QNX uses GNU C++, but need to define -shared option too, otherwise
14838 # it will coredump.
14839 lt_prog_compiler_pic='-fPIC -shared'
14840 ;;
14841
14842 sysv4*MP*)
14843 if test -d /usr/nec; then
14844 lt_prog_compiler_pic=-Kconform_pic
14845 fi
14846 ;;
14847
14848 *)
14849 lt_prog_compiler_pic='-fPIC'
14850 ;;
14851 esac
14852
14853 case $cc_basename in
14854 nvcc*) # Cuda Compiler Driver 2.2
14855 lt_prog_compiler_wl='-Xlinker '
14856 if test -n "$lt_prog_compiler_pic"; then
14857 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14858 fi
14859 ;;
14860 esac
14861 else
14862 # PORTME Check for flag to pass linker flags through the system compiler.
14863 case $host_os in
14864 aix*)
14865 lt_prog_compiler_wl='-Wl,'
14866 if test ia64 = "$host_cpu"; then
14867 # AIX 5 now supports IA64 processor
14868 lt_prog_compiler_static='-Bstatic'
14869 else
14870 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14871 fi
14872 ;;
14873
14874 darwin* | rhapsody*)
14875 # PIC is the default on this platform
14876 # Common symbols not allowed in MH_DYLIB files
14877 lt_prog_compiler_pic='-fno-common'
14878 case $cc_basename in
14879 nagfor*)
14880 # NAG Fortran compiler
14881 lt_prog_compiler_wl='-Wl,-Wl,,'
14882 lt_prog_compiler_pic='-PIC'
14883 lt_prog_compiler_static='-Bstatic'
14884 ;;
14885 esac
14886 ;;
14887
14888 mingw* | cygwin* | pw32* | os2* | cegcc*)
14889 # This hack is so that the source file can tell whether it is being
14890 # built for inclusion in a dll (and should export symbols for example).
14891 lt_prog_compiler_pic='-DDLL_EXPORT'
14892 case $host_os in
14893 os2*)
14894 lt_prog_compiler_static='$wl-static'
14895 ;;
14896 esac
14897 ;;
14898
14899 hpux9* | hpux10* | hpux11*)
14900 lt_prog_compiler_wl='-Wl,'
14901 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14902 # not for PA HP-UX.
14903 case $host_cpu in
14904 hppa*64*|ia64*)
14905 # +Z the default
14906 ;;
14907 *)
14908 lt_prog_compiler_pic='+Z'
14909 ;;
14910 esac
14911 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14912 lt_prog_compiler_static='$wl-a ${wl}archive'
14913 ;;
14914
14915 irix5* | irix6* | nonstopux*)
14916 lt_prog_compiler_wl='-Wl,'
14917 # PIC (with -KPIC) is the default.
14918 lt_prog_compiler_static='-non_shared'
14919 ;;
14920
14921 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14922 case $cc_basename in
14923 # old Intel for x86_64, which still supported -KPIC.
14924 ecc*)
14925 lt_prog_compiler_wl='-Wl,'
14926 lt_prog_compiler_pic='-KPIC'
14927 lt_prog_compiler_static='-static'
14928 ;;
14929 # icc used to be incompatible with GCC.
14930 # ICC 10 doesn't accept -KPIC any more.
14931 icc* | ifort*)
14932 lt_prog_compiler_wl='-Wl,'
14933 lt_prog_compiler_pic='-fPIC'
14934 lt_prog_compiler_static='-static'
14935 ;;
14936 # Lahey Fortran 8.1.
14937 lf95*)
14938 lt_prog_compiler_wl='-Wl,'
14939 lt_prog_compiler_pic='--shared'
14940 lt_prog_compiler_static='--static'
14941 ;;
14942 nagfor*)
14943 # NAG Fortran compiler
14944 lt_prog_compiler_wl='-Wl,-Wl,,'
14945 lt_prog_compiler_pic='-PIC'
14946 lt_prog_compiler_static='-Bstatic'
14947 ;;
14948 tcc*)
14949 # Fabrice Bellard et al's Tiny C Compiler
14950 lt_prog_compiler_wl='-Wl,'
14951 lt_prog_compiler_pic='-fPIC'
14952 lt_prog_compiler_static='-static'
14953 ;;
14954 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14955 # Portland Group compilers (*not* the Pentium gcc compiler,
14956 # which looks to be a dead project)
14957 lt_prog_compiler_wl='-Wl,'
14958 lt_prog_compiler_pic='-fpic'
14959 lt_prog_compiler_static='-Bstatic'
14960 ;;
14961 ccc*)
14962 lt_prog_compiler_wl='-Wl,'
14963 # All Alpha code is PIC.
14964 lt_prog_compiler_static='-non_shared'
14965 ;;
14966 xl* | bgxl* | bgf* | mpixl*)
14967 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14968 lt_prog_compiler_wl='-Wl,'
14969 lt_prog_compiler_pic='-qpic'
14970 lt_prog_compiler_static='-qstaticlink'
14971 ;;
14972 *)
14973 case `$CC -V 2>&1 | sed 5q` in
14974 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
14975 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14976 lt_prog_compiler_pic='-KPIC'
14977 lt_prog_compiler_static='-Bstatic'
14978 lt_prog_compiler_wl=''
14979 ;;
14980 *Sun\ F* | *Sun*Fortran*)
14981 lt_prog_compiler_pic='-KPIC'
14982 lt_prog_compiler_static='-Bstatic'
14983 lt_prog_compiler_wl='-Qoption ld '
14984 ;;
14985 *Sun\ C*)
14986 # Sun C 5.9
14987 lt_prog_compiler_pic='-KPIC'
14988 lt_prog_compiler_static='-Bstatic'
14989 lt_prog_compiler_wl='-Wl,'
14990 ;;
14991 *Intel*\ [CF]*Compiler*)
14992 lt_prog_compiler_wl='-Wl,'
14993 lt_prog_compiler_pic='-fPIC'
14994 lt_prog_compiler_static='-static'
14995 ;;
14996 *Portland\ Group*)
14997 lt_prog_compiler_wl='-Wl,'
14998 lt_prog_compiler_pic='-fpic'
14999 lt_prog_compiler_static='-Bstatic'
15000 ;;
15001 esac
15002 ;;
15003 esac
15004 ;;
15005
15006 newsos6)
15007 lt_prog_compiler_pic='-KPIC'
15008 lt_prog_compiler_static='-Bstatic'
15009 ;;
15010
15011 *nto* | *qnx*)
15012 # QNX uses GNU C++, but need to define -shared option too, otherwise
15013 # it will coredump.
15014 lt_prog_compiler_pic='-fPIC -shared'
15015 ;;
15016
15017 osf3* | osf4* | osf5*)
15018 lt_prog_compiler_wl='-Wl,'
15019 # All OSF/1 code is PIC.
15020 lt_prog_compiler_static='-non_shared'
15021 ;;
15022
15023 rdos*)
15024 lt_prog_compiler_static='-non_shared'
15025 ;;
15026
15027 solaris*)
15028 lt_prog_compiler_pic='-KPIC'
15029 lt_prog_compiler_static='-Bstatic'
15030 case $cc_basename in
15031 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
15032 lt_prog_compiler_wl='-Qoption ld ';;
15033 *)
15034 lt_prog_compiler_wl='-Wl,';;
15035 esac
15036 ;;
15037
15038 sunos4*)
15039 lt_prog_compiler_wl='-Qoption ld '
15040 lt_prog_compiler_pic='-PIC'
15041 lt_prog_compiler_static='-Bstatic'
15042 ;;
15043
15044 sysv4 | sysv4.2uw2* | sysv4.3*)
15045 lt_prog_compiler_wl='-Wl,'
15046 lt_prog_compiler_pic='-KPIC'
15047 lt_prog_compiler_static='-Bstatic'
15048 ;;
15049
15050 sysv4*MP*)
15051 if test -d /usr/nec; then
15052 lt_prog_compiler_pic='-Kconform_pic'
15053 lt_prog_compiler_static='-Bstatic'
15054 fi
15055 ;;
15056
15057 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15058 lt_prog_compiler_wl='-Wl,'
15059 lt_prog_compiler_pic='-KPIC'
15060 lt_prog_compiler_static='-Bstatic'
15061 ;;
15062
15063 unicos*)
15064 lt_prog_compiler_wl='-Wl,'
15065 lt_prog_compiler_can_build_shared=no
15066 ;;
15067
15068 uts4*)
15069 lt_prog_compiler_pic='-pic'
15070 lt_prog_compiler_static='-Bstatic'
15071 ;;
15072
15073 *)
15074 lt_prog_compiler_can_build_shared=no
15075 ;;
15076 esac
15077 fi
15078
15079 case $host_os in
15080 # For platforms that do not support PIC, -DPIC is meaningless:
15081 *djgpp*)
15082 lt_prog_compiler_pic=
15083 ;;
15084 *)
15085 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15086 ;;
15087 esac
15088
15089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15090 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15091 if ${lt_cv_prog_compiler_pic+:} false; then :
15092 $as_echo_n "(cached) " >&6
15093 else
15094 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
15095 fi
15096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
15097 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
15098 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
15099
15100 #
15101 # Check to make sure the PIC flag actually works.
15102 #
15103 if test -n "$lt_prog_compiler_pic"; then
15104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15105 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15106 if ${lt_cv_prog_compiler_pic_works+:} false; then :
15107 $as_echo_n "(cached) " >&6
15108 else
15109 lt_cv_prog_compiler_pic_works=no
15110 ac_outfile=conftest.$ac_objext
15111 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15112 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
15113 # Insert the option either (1) after the last *FLAGS variable, or
15114 # (2) before a word containing "conftest.", or (3) at the end.
15115 # Note that $ac_compile itself does not contain backslashes and begins
15116 # with a dollar sign (not a hyphen), so the echo should work correctly.
15117 # The option is referenced via a variable to avoid confusing sed.
15118 lt_compile=`echo "$ac_compile" | $SED \
15119 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15120 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15121 -e 's:$: $lt_compiler_flag:'`
15122 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15123 (eval "$lt_compile" 2>conftest.err)
15124 ac_status=$?
15125 cat conftest.err >&5
15126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15127 if (exit $ac_status) && test -s "$ac_outfile"; then
15128 # The compiler can only warn and ignore the option if not recognized
15129 # So say no if there are warnings other than the usual output.
15130 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15131 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15132 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15133 lt_cv_prog_compiler_pic_works=yes
15134 fi
15135 fi
15136 $RM conftest*
15137
15138 fi
15139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15140 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15141
15142 if test yes = "$lt_cv_prog_compiler_pic_works"; then
15143 case $lt_prog_compiler_pic in
15144 "" | " "*) ;;
15145 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15146 esac
15147 else
15148 lt_prog_compiler_pic=
15149 lt_prog_compiler_can_build_shared=no
15150 fi
15151
15152 fi
15153
15154
15155
15156
15157
15158
15159
15160
15161
15162
15163
15164 #
15165 # Check to make sure the static flag actually works.
15166 #
15167 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15169 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15170 if ${lt_cv_prog_compiler_static_works+:} false; then :
15171 $as_echo_n "(cached) " >&6
15172 else
15173 lt_cv_prog_compiler_static_works=no
15174 save_LDFLAGS=$LDFLAGS
15175 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15176 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15177 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15178 # The linker can only warn and ignore the option if not recognized
15179 # So say no if there are warnings
15180 if test -s conftest.err; then
15181 # Append any errors to the config.log.
15182 cat conftest.err 1>&5
15183 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15184 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15185 if diff conftest.exp conftest.er2 >/dev/null; then
15186 lt_cv_prog_compiler_static_works=yes
15187 fi
15188 else
15189 lt_cv_prog_compiler_static_works=yes
15190 fi
15191 fi
15192 $RM -r conftest*
15193 LDFLAGS=$save_LDFLAGS
15194
15195 fi
15196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15197 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15198
15199 if test yes = "$lt_cv_prog_compiler_static_works"; then
15200 :
15201 else
15202 lt_prog_compiler_static=
15203 fi
15204
15205
15206
15207
15208
15209
15210
15211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15212 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15213 if ${lt_cv_prog_compiler_c_o+:} false; then :
15214 $as_echo_n "(cached) " >&6
15215 else
15216 lt_cv_prog_compiler_c_o=no
15217 $RM -r conftest 2>/dev/null
15218 mkdir conftest
15219 cd conftest
15220 mkdir out
15221 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15222
15223 lt_compiler_flag="-o out/conftest2.$ac_objext"
15224 # Insert the option either (1) after the last *FLAGS variable, or
15225 # (2) before a word containing "conftest.", or (3) at the end.
15226 # Note that $ac_compile itself does not contain backslashes and begins
15227 # with a dollar sign (not a hyphen), so the echo should work correctly.
15228 lt_compile=`echo "$ac_compile" | $SED \
15229 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15230 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15231 -e 's:$: $lt_compiler_flag:'`
15232 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15233 (eval "$lt_compile" 2>out/conftest.err)
15234 ac_status=$?
15235 cat out/conftest.err >&5
15236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15237 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15238 then
15239 # The compiler can only warn and ignore the option if not recognized
15240 # So say no if there are warnings
15241 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15242 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15243 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15244 lt_cv_prog_compiler_c_o=yes
15245 fi
15246 fi
15247 chmod u+w . 2>&5
15248 $RM conftest*
15249 # SGI C++ compiler will create directory out/ii_files/ for
15250 # template instantiation
15251 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15252 $RM out/* && rmdir out
15253 cd ..
15254 $RM -r conftest
15255 $RM conftest*
15256
15257 fi
15258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15259 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15260
15261
15262
15263
15264
15265
15266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15267 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15268 if ${lt_cv_prog_compiler_c_o+:} false; then :
15269 $as_echo_n "(cached) " >&6
15270 else
15271 lt_cv_prog_compiler_c_o=no
15272 $RM -r conftest 2>/dev/null
15273 mkdir conftest
15274 cd conftest
15275 mkdir out
15276 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15277
15278 lt_compiler_flag="-o out/conftest2.$ac_objext"
15279 # Insert the option either (1) after the last *FLAGS variable, or
15280 # (2) before a word containing "conftest.", or (3) at the end.
15281 # Note that $ac_compile itself does not contain backslashes and begins
15282 # with a dollar sign (not a hyphen), so the echo should work correctly.
15283 lt_compile=`echo "$ac_compile" | $SED \
15284 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15285 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15286 -e 's:$: $lt_compiler_flag:'`
15287 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15288 (eval "$lt_compile" 2>out/conftest.err)
15289 ac_status=$?
15290 cat out/conftest.err >&5
15291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15292 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15293 then
15294 # The compiler can only warn and ignore the option if not recognized
15295 # So say no if there are warnings
15296 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15297 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15298 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15299 lt_cv_prog_compiler_c_o=yes
15300 fi
15301 fi
15302 chmod u+w . 2>&5
15303 $RM conftest*
15304 # SGI C++ compiler will create directory out/ii_files/ for
15305 # template instantiation
15306 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15307 $RM out/* && rmdir out
15308 cd ..
15309 $RM -r conftest
15310 $RM conftest*
15311
15312 fi
15313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15314 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15315
15316
15317
15318
15319 hard_links=nottested
15320 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
15321 # do not overwrite the value of need_locks provided by the user
15322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15323 $as_echo_n "checking if we can lock with hard links... " >&6; }
15324 hard_links=yes
15325 $RM conftest*
15326 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15327 touch conftest.a
15328 ln conftest.a conftest.b 2>&5 || hard_links=no
15329 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15331 $as_echo "$hard_links" >&6; }
15332 if test no = "$hard_links"; then
15333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15334 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
15335 need_locks=warn
15336 fi
15337 else
15338 need_locks=no
15339 fi
15340
15341
15342
15343
15344
15345
15346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15347 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15348
15349 runpath_var=
15350 allow_undefined_flag=
15351 always_export_symbols=no
15352 archive_cmds=
15353 archive_expsym_cmds=
15354 compiler_needs_object=no
15355 enable_shared_with_static_runtimes=no
15356 export_dynamic_flag_spec=
15357 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15358 hardcode_automatic=no
15359 hardcode_direct=no
15360 hardcode_direct_absolute=no
15361 hardcode_libdir_flag_spec=
15362 hardcode_libdir_separator=
15363 hardcode_minus_L=no
15364 hardcode_shlibpath_var=unsupported
15365 inherit_rpath=no
15366 link_all_deplibs=unknown
15367 module_cmds=
15368 module_expsym_cmds=
15369 old_archive_from_new_cmds=
15370 old_archive_from_expsyms_cmds=
15371 thread_safe_flag_spec=
15372 whole_archive_flag_spec=
15373 # include_expsyms should be a list of space-separated symbols to be *always*
15374 # included in the symbol list
15375 include_expsyms=
15376 # exclude_expsyms can be an extended regexp of symbols to exclude
15377 # it will be wrapped by ' (' and ')$', so one must not match beginning or
15378 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
15379 # as well as any symbol that contains 'd'.
15380 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15381 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15382 # platforms (ab)use it in PIC code, but their linkers get confused if
15383 # the symbol is explicitly referenced. Since portable code cannot
15384 # rely on this symbol name, it's probably fine to never include it in
15385 # preloaded symbol tables.
15386 # Exclude shared library initialization/finalization symbols.
15387 extract_expsyms_cmds=
15388
15389 case $host_os in
15390 cygwin* | mingw* | pw32* | cegcc*)
15391 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15392 # When not using gcc, we currently assume that we are using
15393 # Microsoft Visual C++.
15394 if test yes != "$GCC"; then
15395 with_gnu_ld=no
15396 fi
15397 ;;
15398 interix*)
15399 # we just hope/assume this is gcc and not c89 (= MSVC++)
15400 with_gnu_ld=yes
15401 ;;
15402 openbsd* | bitrig*)
15403 with_gnu_ld=no
15404 ;;
15405 esac
15406
15407 ld_shlibs=yes
15408
15409 # On some targets, GNU ld is compatible enough with the native linker
15410 # that we're better off using the native interface for both.
15411 lt_use_gnu_ld_interface=no
15412 if test yes = "$with_gnu_ld"; then
15413 case $host_os in
15414 aix*)
15415 # The AIX port of GNU ld has always aspired to compatibility
15416 # with the native linker. However, as the warning in the GNU ld
15417 # block says, versions before 2.19.5* couldn't really create working
15418 # shared libraries, regardless of the interface used.
15419 case `$LD -v 2>&1` in
15420 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15421 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15422 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15423 *)
15424 lt_use_gnu_ld_interface=yes
15425 ;;
15426 esac
15427 ;;
15428 *)
15429 lt_use_gnu_ld_interface=yes
15430 ;;
15431 esac
15432 fi
15433
15434 if test yes = "$lt_use_gnu_ld_interface"; then
15435 # If archive_cmds runs LD, not CC, wlarc should be empty
15436 wlarc='$wl'
15437
15438 # Set some defaults for GNU ld with shared library support. These
15439 # are reset later if shared libraries are not supported. Putting them
15440 # here allows them to be overridden if necessary.
15441 runpath_var=LD_RUN_PATH
15442 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15443 export_dynamic_flag_spec='$wl--export-dynamic'
15444 # ancient GNU ld didn't support --whole-archive et. al.
15445 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15446 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15447 else
15448 whole_archive_flag_spec=
15449 fi
15450 supports_anon_versioning=no
15451 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
15452 *GNU\ gold*) supports_anon_versioning=yes ;;
15453 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15454 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15455 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15456 *\ 2.11.*) ;; # other 2.11 versions
15457 *) supports_anon_versioning=yes ;;
15458 esac
15459
15460 # See if GNU ld supports shared libraries.
15461 case $host_os in
15462 aix[3-9]*)
15463 # On AIX/PPC, the GNU linker is very broken
15464 if test ia64 != "$host_cpu"; then
15465 ld_shlibs=no
15466 cat <<_LT_EOF 1>&2
15467
15468 *** Warning: the GNU linker, at least up to release 2.19, is reported
15469 *** to be unable to reliably create shared libraries on AIX.
15470 *** Therefore, libtool is disabling shared libraries support. If you
15471 *** really care for shared libraries, you may want to install binutils
15472 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15473 *** You will then need to restart the configuration process.
15474
15475 _LT_EOF
15476 fi
15477 ;;
15478
15479 amigaos*)
15480 case $host_cpu in
15481 powerpc)
15482 # see comment about AmigaOS4 .so support
15483 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15484 archive_expsym_cmds=''
15485 ;;
15486 m68k)
15487 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)'
15488 hardcode_libdir_flag_spec='-L$libdir'
15489 hardcode_minus_L=yes
15490 ;;
15491 esac
15492 ;;
15493
15494 beos*)
15495 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15496 allow_undefined_flag=unsupported
15497 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
15498 # support --undefined. This deserves some investigation. FIXME
15499 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15500 else
15501 ld_shlibs=no
15502 fi
15503 ;;
15504
15505 cygwin* | mingw* | pw32* | cegcc*)
15506 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15507 # as there is no search path for DLLs.
15508 hardcode_libdir_flag_spec='-L$libdir'
15509 export_dynamic_flag_spec='$wl--export-all-symbols'
15510 allow_undefined_flag=unsupported
15511 always_export_symbols=no
15512 enable_shared_with_static_runtimes=yes
15513 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'
15514 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15515
15516 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15517 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15518 # If the export-symbols file already is a .def file, use it as
15519 # is; otherwise, prepend EXPORTS...
15520 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
15521 cp $export_symbols $output_objdir/$soname.def;
15522 else
15523 echo EXPORTS > $output_objdir/$soname.def;
15524 cat $export_symbols >> $output_objdir/$soname.def;
15525 fi~
15526 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15527 else
15528 ld_shlibs=no
15529 fi
15530 ;;
15531
15532 haiku*)
15533 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15534 link_all_deplibs=yes
15535 ;;
15536
15537 os2*)
15538 hardcode_libdir_flag_spec='-L$libdir'
15539 hardcode_minus_L=yes
15540 allow_undefined_flag=unsupported
15541 shrext_cmds=.dll
15542 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15543 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15544 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15545 $ECHO EXPORTS >> $output_objdir/$libname.def~
15546 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
15547 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15548 emximp -o $lib $output_objdir/$libname.def'
15549 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15550 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15551 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15552 $ECHO EXPORTS >> $output_objdir/$libname.def~
15553 prefix_cmds="$SED"~
15554 if test EXPORTS = "`$SED 1q $export_symbols`"; then
15555 prefix_cmds="$prefix_cmds -e 1d";
15556 fi~
15557 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
15558 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
15559 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15560 emximp -o $lib $output_objdir/$libname.def'
15561 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
15562 enable_shared_with_static_runtimes=yes
15563 ;;
15564
15565 interix[3-9]*)
15566 hardcode_direct=no
15567 hardcode_shlibpath_var=no
15568 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
15569 export_dynamic_flag_spec='$wl-E'
15570 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15571 # Instead, shared libraries are loaded at an image base (0x10000000 by
15572 # default) and relocated if they conflict, which is a slow very memory
15573 # consuming and fragmenting process. To avoid this, we pick a random,
15574 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15575 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15576 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15577 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'
15578 ;;
15579
15580 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15581 tmp_diet=no
15582 if test linux-dietlibc = "$host_os"; then
15583 case $cc_basename in
15584 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15585 esac
15586 fi
15587 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15588 && test no = "$tmp_diet"
15589 then
15590 tmp_addflag=' $pic_flag'
15591 tmp_sharedflag='-shared'
15592 case $cc_basename,$host_cpu in
15593 pgcc*) # Portland Group C compiler
15594 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'
15595 tmp_addflag=' $pic_flag'
15596 ;;
15597 pgf77* | pgf90* | pgf95* | pgfortran*)
15598 # Portland Group f77 and f90 compilers
15599 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'
15600 tmp_addflag=' $pic_flag -Mnomain' ;;
15601 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15602 tmp_addflag=' -i_dynamic' ;;
15603 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15604 tmp_addflag=' -i_dynamic -nofor_main' ;;
15605 ifc* | ifort*) # Intel Fortran compiler
15606 tmp_addflag=' -nofor_main' ;;
15607 lf95*) # Lahey Fortran 8.1
15608 whole_archive_flag_spec=
15609 tmp_sharedflag='--shared' ;;
15610 nagfor*) # NAGFOR 5.3
15611 tmp_sharedflag='-Wl,-shared' ;;
15612 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15613 tmp_sharedflag='-qmkshrobj'
15614 tmp_addflag= ;;
15615 nvcc*) # Cuda Compiler Driver 2.2
15616 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'
15617 compiler_needs_object=yes
15618 ;;
15619 esac
15620 case `$CC -V 2>&1 | sed 5q` in
15621 *Sun\ C*) # Sun C 5.9
15622 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'
15623 compiler_needs_object=yes
15624 tmp_sharedflag='-G' ;;
15625 *Sun\ F*) # Sun Fortran 8.3
15626 tmp_sharedflag='-G' ;;
15627 esac
15628 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15629
15630 if test yes = "$supports_anon_versioning"; then
15631 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15632 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15633 echo "local: *; };" >> $output_objdir/$libname.ver~
15634 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
15635 fi
15636
15637 case $cc_basename in
15638 tcc*)
15639 export_dynamic_flag_spec='-rdynamic'
15640 ;;
15641 xlf* | bgf* | bgxlf* | mpixlf*)
15642 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15643 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15644 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15645 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
15646 if test yes = "$supports_anon_versioning"; then
15647 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15648 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15649 echo "local: *; };" >> $output_objdir/$libname.ver~
15650 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15651 fi
15652 ;;
15653 esac
15654 else
15655 ld_shlibs=no
15656 fi
15657 ;;
15658
15659 netbsd*)
15660 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15661 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15662 wlarc=
15663 else
15664 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15665 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15666 fi
15667 ;;
15668
15669 solaris*)
15670 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15671 ld_shlibs=no
15672 cat <<_LT_EOF 1>&2
15673
15674 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15675 *** create shared libraries on Solaris systems. Therefore, libtool
15676 *** is disabling shared libraries support. We urge you to upgrade GNU
15677 *** binutils to release 2.9.1 or newer. Another option is to modify
15678 *** your PATH or compiler configuration so that the native linker is
15679 *** used, and then restart.
15680
15681 _LT_EOF
15682 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15683 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15684 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15685 else
15686 ld_shlibs=no
15687 fi
15688 ;;
15689
15690 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15691 case `$LD -v 2>&1` in
15692 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15693 ld_shlibs=no
15694 cat <<_LT_EOF 1>&2
15695
15696 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
15697 *** reliably create shared libraries on SCO systems. Therefore, libtool
15698 *** is disabling shared libraries support. We urge you to upgrade GNU
15699 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15700 *** your PATH or compiler configuration so that the native linker is
15701 *** used, and then restart.
15702
15703 _LT_EOF
15704 ;;
15705 *)
15706 # For security reasons, it is highly recommended that you always
15707 # use absolute paths for naming shared libraries, and exclude the
15708 # DT_RUNPATH tag from executables and libraries. But doing so
15709 # requires that you compile everything twice, which is a pain.
15710 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15711 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15712 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15713 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15714 else
15715 ld_shlibs=no
15716 fi
15717 ;;
15718 esac
15719 ;;
15720
15721 sunos4*)
15722 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15723 wlarc=
15724 hardcode_direct=yes
15725 hardcode_shlibpath_var=no
15726 ;;
15727
15728 *)
15729 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15730 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15731 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15732 else
15733 ld_shlibs=no
15734 fi
15735 ;;
15736 esac
15737
15738 if test no = "$ld_shlibs"; then
15739 runpath_var=
15740 hardcode_libdir_flag_spec=
15741 export_dynamic_flag_spec=
15742 whole_archive_flag_spec=
15743 fi
15744 else
15745 # PORTME fill in a description of your system's linker (not GNU ld)
15746 case $host_os in
15747 aix3*)
15748 allow_undefined_flag=unsupported
15749 always_export_symbols=yes
15750 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'
15751 # Note: this linker hardcodes the directories in LIBPATH if there
15752 # are no directories specified by -L.
15753 hardcode_minus_L=yes
15754 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
15755 # Neither direct hardcoding nor static linking is supported with a
15756 # broken collect2.
15757 hardcode_direct=unsupported
15758 fi
15759 ;;
15760
15761 aix[4-9]*)
15762 if test ia64 = "$host_cpu"; then
15763 # On IA64, the linker does run time linking by default, so we don't
15764 # have to do anything special.
15765 aix_use_runtimelinking=no
15766 exp_sym_flag='-Bexport'
15767 no_entry_flag=
15768 else
15769 # If we're using GNU nm, then we don't want the "-C" option.
15770 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
15771 # Without the "-l" option, or with the "-B" option, AIX nm treats
15772 # weak defined symbols like other global defined symbols, whereas
15773 # GNU nm marks them as "W".
15774 # While the 'weak' keyword is ignored in the Export File, we need
15775 # it in the Import File for the 'aix-soname' feature, so we have
15776 # to replace the "-B" option with "-P" for AIX nm.
15777 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15778 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
15779 else
15780 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
15781 fi
15782 aix_use_runtimelinking=no
15783
15784 # Test if we are trying to use run time linking or normal
15785 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15786 # have runtime linking enabled, and use it for executables.
15787 # For shared libraries, we enable/disable runtime linking
15788 # depending on the kind of the shared library created -
15789 # when "with_aix_soname,aix_use_runtimelinking" is:
15790 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
15791 # "aix,yes" lib.so shared, rtl:yes, for executables
15792 # lib.a static archive
15793 # "both,no" lib.so.V(shr.o) shared, rtl:yes
15794 # lib.a(lib.so.V) shared, rtl:no, for executables
15795 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
15796 # lib.a(lib.so.V) shared, rtl:no
15797 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
15798 # lib.a static archive
15799 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15800 for ld_flag in $LDFLAGS; do
15801 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
15802 aix_use_runtimelinking=yes
15803 break
15804 fi
15805 done
15806 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
15807 # With aix-soname=svr4, we create the lib.so.V shared archives only,
15808 # so we don't have lib.a shared libs to link our executables.
15809 # We have to force runtime linking in this case.
15810 aix_use_runtimelinking=yes
15811 LDFLAGS="$LDFLAGS -Wl,-brtl"
15812 fi
15813 ;;
15814 esac
15815
15816 exp_sym_flag='-bexport'
15817 no_entry_flag='-bnoentry'
15818 fi
15819
15820 # When large executables or shared objects are built, AIX ld can
15821 # have problems creating the table of contents. If linking a library
15822 # or program results in "error TOC overflow" add -mminimal-toc to
15823 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15824 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15825
15826 archive_cmds=''
15827 hardcode_direct=yes
15828 hardcode_direct_absolute=yes
15829 hardcode_libdir_separator=':'
15830 link_all_deplibs=yes
15831 file_list_spec='$wl-f,'
15832 case $with_aix_soname,$aix_use_runtimelinking in
15833 aix,*) ;; # traditional, no import file
15834 svr4,* | *,yes) # use import file
15835 # The Import File defines what to hardcode.
15836 hardcode_direct=no
15837 hardcode_direct_absolute=no
15838 ;;
15839 esac
15840
15841 if test yes = "$GCC"; then
15842 case $host_os in aix4.[012]|aix4.[012].*)
15843 # We only want to do this on AIX 4.2 and lower, the check
15844 # below for broken collect2 doesn't work under 4.3+
15845 collect2name=`$CC -print-prog-name=collect2`
15846 if test -f "$collect2name" &&
15847 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15848 then
15849 # We have reworked collect2
15850 :
15851 else
15852 # We have old collect2
15853 hardcode_direct=unsupported
15854 # It fails to find uninstalled libraries when the uninstalled
15855 # path is not listed in the libpath. Setting hardcode_minus_L
15856 # to unsupported forces relinking
15857 hardcode_minus_L=yes
15858 hardcode_libdir_flag_spec='-L$libdir'
15859 hardcode_libdir_separator=
15860 fi
15861 ;;
15862 esac
15863 shared_flag='-shared'
15864 if test yes = "$aix_use_runtimelinking"; then
15865 shared_flag="$shared_flag "'$wl-G'
15866 fi
15867 # Need to ensure runtime linking is disabled for the traditional
15868 # shared library, or the linker may eventually find shared libraries
15869 # /with/ Import File - we do not want to mix them.
15870 shared_flag_aix='-shared'
15871 shared_flag_svr4='-shared $wl-G'
15872 else
15873 # not using gcc
15874 if test ia64 = "$host_cpu"; then
15875 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15876 # chokes on -Wl,-G. The following line is correct:
15877 shared_flag='-G'
15878 else
15879 if test yes = "$aix_use_runtimelinking"; then
15880 shared_flag='$wl-G'
15881 else
15882 shared_flag='$wl-bM:SRE'
15883 fi
15884 shared_flag_aix='$wl-bM:SRE'
15885 shared_flag_svr4='$wl-G'
15886 fi
15887 fi
15888
15889 export_dynamic_flag_spec='$wl-bexpall'
15890 # It seems that -bexpall does not export symbols beginning with
15891 # underscore (_), so it is better to generate a list of symbols to export.
15892 always_export_symbols=yes
15893 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
15894 # Warning - without using the other runtime loading flags (-brtl),
15895 # -berok will link without error, but may produce a broken library.
15896 allow_undefined_flag='-berok'
15897 # Determine the default libpath from the value encoded in an
15898 # empty executable.
15899 if test set = "${lt_cv_aix_libpath+set}"; then
15900 aix_libpath=$lt_cv_aix_libpath
15901 else
15902 if ${lt_cv_aix_libpath_+:} false; then :
15903 $as_echo_n "(cached) " >&6
15904 else
15905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15906 /* end confdefs.h. */
15907
15908 int
15909 main ()
15910 {
15911
15912 ;
15913 return 0;
15914 }
15915 _ACEOF
15916 if ac_fn_c_try_link "$LINENO"; then :
15917
15918 lt_aix_libpath_sed='
15919 /Import File Strings/,/^$/ {
15920 /^0/ {
15921 s/^0 *\([^ ]*\) *$/\1/
15922 p
15923 }
15924 }'
15925 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15926 # Check for a 64-bit object if we didn't find anything.
15927 if test -z "$lt_cv_aix_libpath_"; then
15928 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15929 fi
15930 fi
15931 rm -f core conftest.err conftest.$ac_objext \
15932 conftest$ac_exeext conftest.$ac_ext
15933 if test -z "$lt_cv_aix_libpath_"; then
15934 lt_cv_aix_libpath_=/usr/lib:/lib
15935 fi
15936
15937 fi
15938
15939 aix_libpath=$lt_cv_aix_libpath_
15940 fi
15941
15942 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
15943 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
15944 else
15945 if test ia64 = "$host_cpu"; then
15946 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
15947 allow_undefined_flag="-z nodefs"
15948 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"
15949 else
15950 # Determine the default libpath from the value encoded in an
15951 # empty executable.
15952 if test set = "${lt_cv_aix_libpath+set}"; then
15953 aix_libpath=$lt_cv_aix_libpath
15954 else
15955 if ${lt_cv_aix_libpath_+:} false; then :
15956 $as_echo_n "(cached) " >&6
15957 else
15958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15959 /* end confdefs.h. */
15960
15961 int
15962 main ()
15963 {
15964
15965 ;
15966 return 0;
15967 }
15968 _ACEOF
15969 if ac_fn_c_try_link "$LINENO"; then :
15970
15971 lt_aix_libpath_sed='
15972 /Import File Strings/,/^$/ {
15973 /^0/ {
15974 s/^0 *\([^ ]*\) *$/\1/
15975 p
15976 }
15977 }'
15978 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15979 # Check for a 64-bit object if we didn't find anything.
15980 if test -z "$lt_cv_aix_libpath_"; then
15981 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15982 fi
15983 fi
15984 rm -f core conftest.err conftest.$ac_objext \
15985 conftest$ac_exeext conftest.$ac_ext
15986 if test -z "$lt_cv_aix_libpath_"; then
15987 lt_cv_aix_libpath_=/usr/lib:/lib
15988 fi
15989
15990 fi
15991
15992 aix_libpath=$lt_cv_aix_libpath_
15993 fi
15994
15995 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
15996 # Warning - without using the other run time loading flags,
15997 # -berok will link without error, but may produce a broken library.
15998 no_undefined_flag=' $wl-bernotok'
15999 allow_undefined_flag=' $wl-berok'
16000 if test yes = "$with_gnu_ld"; then
16001 # We only use this code for GNU lds that support --whole-archive.
16002 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
16003 else
16004 # Exported symbols can be pulled into shared objects from archives
16005 whole_archive_flag_spec='$convenience'
16006 fi
16007 archive_cmds_need_lc=yes
16008 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
16009 # -brtl affects multiple linker settings, -berok does not and is overridden later
16010 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
16011 if test svr4 != "$with_aix_soname"; then
16012 # This is similar to how AIX traditionally builds its shared libraries.
16013 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
16014 fi
16015 if test aix != "$with_aix_soname"; then
16016 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
16017 else
16018 # used by -dlpreopen to get the symbols
16019 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
16020 fi
16021 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
16022 fi
16023 fi
16024 ;;
16025
16026 amigaos*)
16027 case $host_cpu in
16028 powerpc)
16029 # see comment about AmigaOS4 .so support
16030 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16031 archive_expsym_cmds=''
16032 ;;
16033 m68k)
16034 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)'
16035 hardcode_libdir_flag_spec='-L$libdir'
16036 hardcode_minus_L=yes
16037 ;;
16038 esac
16039 ;;
16040
16041 bsdi[45]*)
16042 export_dynamic_flag_spec=-rdynamic
16043 ;;
16044
16045 cygwin* | mingw* | pw32* | cegcc*)
16046 # When not using gcc, we currently assume that we are using
16047 # Microsoft Visual C++.
16048 # hardcode_libdir_flag_spec is actually meaningless, as there is
16049 # no search path for DLLs.
16050 case $cc_basename in
16051 cl*)
16052 # Native MSVC
16053 hardcode_libdir_flag_spec=' '
16054 allow_undefined_flag=unsupported
16055 always_export_symbols=yes
16056 file_list_spec='@'
16057 # Tell ltmain to make .lib files, not .a files.
16058 libext=lib
16059 # Tell ltmain to make .dll files, not .so files.
16060 shrext_cmds=.dll
16061 # FIXME: Setting linknames here is a bad hack.
16062 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
16063 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
16064 cp "$export_symbols" "$output_objdir/$soname.def";
16065 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
16066 else
16067 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
16068 fi~
16069 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
16070 linknames='
16071 # The linker will not automatically build a static lib if we build a DLL.
16072 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
16073 enable_shared_with_static_runtimes=yes
16074 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16075 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16076 # Don't use ranlib
16077 old_postinstall_cmds='chmod 644 $oldlib'
16078 postlink_cmds='lt_outputfile="@OUTPUT@"~
16079 lt_tool_outputfile="@TOOL_OUTPUT@"~
16080 case $lt_outputfile in
16081 *.exe|*.EXE) ;;
16082 *)
16083 lt_outputfile=$lt_outputfile.exe
16084 lt_tool_outputfile=$lt_tool_outputfile.exe
16085 ;;
16086 esac~
16087 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
16088 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
16089 $RM "$lt_outputfile.manifest";
16090 fi'
16091 ;;
16092 *)
16093 # Assume MSVC wrapper
16094 hardcode_libdir_flag_spec=' '
16095 allow_undefined_flag=unsupported
16096 # Tell ltmain to make .lib files, not .a files.
16097 libext=lib
16098 # Tell ltmain to make .dll files, not .so files.
16099 shrext_cmds=.dll
16100 # FIXME: Setting linknames here is a bad hack.
16101 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16102 # The linker will automatically build a .lib file if we build a DLL.
16103 old_archive_from_new_cmds='true'
16104 # FIXME: Should let the user specify the lib program.
16105 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16106 enable_shared_with_static_runtimes=yes
16107 ;;
16108 esac
16109 ;;
16110
16111 darwin* | rhapsody*)
16112
16113
16114 archive_cmds_need_lc=no
16115 hardcode_direct=no
16116 hardcode_automatic=yes
16117 hardcode_shlibpath_var=unsupported
16118 if test yes = "$lt_cv_ld_force_load"; then
16119 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\"`'
16120
16121 else
16122 whole_archive_flag_spec=''
16123 fi
16124 link_all_deplibs=yes
16125 allow_undefined_flag=$_lt_dar_allow_undefined
16126 case $cc_basename in
16127 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
16128 *) _lt_dar_can_shared=$GCC ;;
16129 esac
16130 if test yes = "$_lt_dar_can_shared"; then
16131 output_verbose_link_cmd=func_echo_all
16132 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
16133 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
16134 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"
16135 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"
16136
16137 else
16138 ld_shlibs=no
16139 fi
16140
16141 ;;
16142
16143 dgux*)
16144 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16145 hardcode_libdir_flag_spec='-L$libdir'
16146 hardcode_shlibpath_var=no
16147 ;;
16148
16149 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16150 # support. Future versions do this automatically, but an explicit c++rt0.o
16151 # does not break anything, and helps significantly (at the cost of a little
16152 # extra space).
16153 freebsd2.2*)
16154 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16155 hardcode_libdir_flag_spec='-R$libdir'
16156 hardcode_direct=yes
16157 hardcode_shlibpath_var=no
16158 ;;
16159
16160 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16161 freebsd2.*)
16162 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16163 hardcode_direct=yes
16164 hardcode_minus_L=yes
16165 hardcode_shlibpath_var=no
16166 ;;
16167
16168 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16169 freebsd* | dragonfly*)
16170 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16171 hardcode_libdir_flag_spec='-R$libdir'
16172 hardcode_direct=yes
16173 hardcode_shlibpath_var=no
16174 ;;
16175
16176 hpux9*)
16177 if test yes = "$GCC"; then
16178 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
16179 else
16180 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
16181 fi
16182 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16183 hardcode_libdir_separator=:
16184 hardcode_direct=yes
16185
16186 # hardcode_minus_L: Not really in the search PATH,
16187 # but as the default location of the library.
16188 hardcode_minus_L=yes
16189 export_dynamic_flag_spec='$wl-E'
16190 ;;
16191
16192 hpux10*)
16193 if test yes,no = "$GCC,$with_gnu_ld"; then
16194 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16195 else
16196 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16197 fi
16198 if test no = "$with_gnu_ld"; then
16199 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16200 hardcode_libdir_separator=:
16201 hardcode_direct=yes
16202 hardcode_direct_absolute=yes
16203 export_dynamic_flag_spec='$wl-E'
16204 # hardcode_minus_L: Not really in the search PATH,
16205 # but as the default location of the library.
16206 hardcode_minus_L=yes
16207 fi
16208 ;;
16209
16210 hpux11*)
16211 if test yes,no = "$GCC,$with_gnu_ld"; then
16212 case $host_cpu in
16213 hppa*64*)
16214 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16215 ;;
16216 ia64*)
16217 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16218 ;;
16219 *)
16220 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16221 ;;
16222 esac
16223 else
16224 case $host_cpu in
16225 hppa*64*)
16226 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16227 ;;
16228 ia64*)
16229 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16230 ;;
16231 *)
16232
16233 # Older versions of the 11.00 compiler do not understand -b yet
16234 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16236 $as_echo_n "checking if $CC understands -b... " >&6; }
16237 if ${lt_cv_prog_compiler__b+:} false; then :
16238 $as_echo_n "(cached) " >&6
16239 else
16240 lt_cv_prog_compiler__b=no
16241 save_LDFLAGS=$LDFLAGS
16242 LDFLAGS="$LDFLAGS -b"
16243 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16244 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16245 # The linker can only warn and ignore the option if not recognized
16246 # So say no if there are warnings
16247 if test -s conftest.err; then
16248 # Append any errors to the config.log.
16249 cat conftest.err 1>&5
16250 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16251 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16252 if diff conftest.exp conftest.er2 >/dev/null; then
16253 lt_cv_prog_compiler__b=yes
16254 fi
16255 else
16256 lt_cv_prog_compiler__b=yes
16257 fi
16258 fi
16259 $RM -r conftest*
16260 LDFLAGS=$save_LDFLAGS
16261
16262 fi
16263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16264 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16265
16266 if test yes = "$lt_cv_prog_compiler__b"; then
16267 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16268 else
16269 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16270 fi
16271
16272 ;;
16273 esac
16274 fi
16275 if test no = "$with_gnu_ld"; then
16276 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16277 hardcode_libdir_separator=:
16278
16279 case $host_cpu in
16280 hppa*64*|ia64*)
16281 hardcode_direct=no
16282 hardcode_shlibpath_var=no
16283 ;;
16284 *)
16285 hardcode_direct=yes
16286 hardcode_direct_absolute=yes
16287 export_dynamic_flag_spec='$wl-E'
16288
16289 # hardcode_minus_L: Not really in the search PATH,
16290 # but as the default location of the library.
16291 hardcode_minus_L=yes
16292 ;;
16293 esac
16294 fi
16295 ;;
16296
16297 irix5* | irix6* | nonstopux*)
16298 if test yes = "$GCC"; then
16299 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'
16300 # Try to use the -exported_symbol ld option, if it does not
16301 # work, assume that -exports_file does not work either and
16302 # implicitly export all symbols.
16303 # This should be the same for all languages, so no per-tag cache variable.
16304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
16305 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
16306 if ${lt_cv_irix_exported_symbol+:} false; then :
16307 $as_echo_n "(cached) " >&6
16308 else
16309 save_LDFLAGS=$LDFLAGS
16310 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
16311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16312 /* end confdefs.h. */
16313 int foo (void) { return 0; }
16314 _ACEOF
16315 if ac_fn_c_try_link "$LINENO"; then :
16316 lt_cv_irix_exported_symbol=yes
16317 else
16318 lt_cv_irix_exported_symbol=no
16319 fi
16320 rm -f core conftest.err conftest.$ac_objext \
16321 conftest$ac_exeext conftest.$ac_ext
16322 LDFLAGS=$save_LDFLAGS
16323 fi
16324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
16325 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
16326 if test yes = "$lt_cv_irix_exported_symbol"; then
16327 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'
16328 fi
16329 else
16330 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'
16331 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'
16332 fi
16333 archive_cmds_need_lc='no'
16334 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16335 hardcode_libdir_separator=:
16336 inherit_rpath=yes
16337 link_all_deplibs=yes
16338 ;;
16339
16340 linux*)
16341 case $cc_basename in
16342 tcc*)
16343 # Fabrice Bellard et al's Tiny C Compiler
16344 ld_shlibs=yes
16345 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16346 ;;
16347 esac
16348 ;;
16349
16350 netbsd*)
16351 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16352 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16353 else
16354 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16355 fi
16356 hardcode_libdir_flag_spec='-R$libdir'
16357 hardcode_direct=yes
16358 hardcode_shlibpath_var=no
16359 ;;
16360
16361 newsos6)
16362 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16363 hardcode_direct=yes
16364 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16365 hardcode_libdir_separator=:
16366 hardcode_shlibpath_var=no
16367 ;;
16368
16369 *nto* | *qnx*)
16370 ;;
16371
16372 openbsd* | bitrig*)
16373 if test -f /usr/libexec/ld.so; then
16374 hardcode_direct=yes
16375 hardcode_shlibpath_var=no
16376 hardcode_direct_absolute=yes
16377 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16378 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16379 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
16380 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
16381 export_dynamic_flag_spec='$wl-E'
16382 else
16383 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16384 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
16385 fi
16386 else
16387 ld_shlibs=no
16388 fi
16389 ;;
16390
16391 os2*)
16392 hardcode_libdir_flag_spec='-L$libdir'
16393 hardcode_minus_L=yes
16394 allow_undefined_flag=unsupported
16395 shrext_cmds=.dll
16396 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16397 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16398 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16399 $ECHO EXPORTS >> $output_objdir/$libname.def~
16400 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
16401 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16402 emximp -o $lib $output_objdir/$libname.def'
16403 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16404 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16405 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16406 $ECHO EXPORTS >> $output_objdir/$libname.def~
16407 prefix_cmds="$SED"~
16408 if test EXPORTS = "`$SED 1q $export_symbols`"; then
16409 prefix_cmds="$prefix_cmds -e 1d";
16410 fi~
16411 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
16412 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
16413 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16414 emximp -o $lib $output_objdir/$libname.def'
16415 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
16416 enable_shared_with_static_runtimes=yes
16417 ;;
16418
16419 osf3*)
16420 if test yes = "$GCC"; then
16421 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
16422 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'
16423 else
16424 allow_undefined_flag=' -expect_unresolved \*'
16425 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'
16426 fi
16427 archive_cmds_need_lc='no'
16428 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16429 hardcode_libdir_separator=:
16430 ;;
16431
16432 osf4* | osf5*) # as osf3* with the addition of -msym flag
16433 if test yes = "$GCC"; then
16434 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
16435 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'
16436 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16437 else
16438 allow_undefined_flag=' -expect_unresolved \*'
16439 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'
16440 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~
16441 $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'
16442
16443 # Both c and cxx compiler support -rpath directly
16444 hardcode_libdir_flag_spec='-rpath $libdir'
16445 fi
16446 archive_cmds_need_lc='no'
16447 hardcode_libdir_separator=:
16448 ;;
16449
16450 solaris*)
16451 no_undefined_flag=' -z defs'
16452 if test yes = "$GCC"; then
16453 wlarc='$wl'
16454 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16455 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16456 $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'
16457 else
16458 case `$CC -V 2>&1` in
16459 *"Compilers 5.0"*)
16460 wlarc=''
16461 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
16462 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16463 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16464 ;;
16465 *)
16466 wlarc='$wl'
16467 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16468 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16469 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16470 ;;
16471 esac
16472 fi
16473 hardcode_libdir_flag_spec='-R$libdir'
16474 hardcode_shlibpath_var=no
16475 case $host_os in
16476 solaris2.[0-5] | solaris2.[0-5].*) ;;
16477 *)
16478 # The compiler driver will combine and reorder linker options,
16479 # but understands '-z linker_flag'. GCC discards it without '$wl',
16480 # but is careful enough not to reorder.
16481 # Supported since Solaris 2.6 (maybe 2.5.1?)
16482 if test yes = "$GCC"; then
16483 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
16484 else
16485 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16486 fi
16487 ;;
16488 esac
16489 link_all_deplibs=yes
16490 ;;
16491
16492 sunos4*)
16493 if test sequent = "$host_vendor"; then
16494 # Use $CC to link under sequent, because it throws in some extra .o
16495 # files that make .init and .fini sections work.
16496 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16497 else
16498 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16499 fi
16500 hardcode_libdir_flag_spec='-L$libdir'
16501 hardcode_direct=yes
16502 hardcode_minus_L=yes
16503 hardcode_shlibpath_var=no
16504 ;;
16505
16506 sysv4)
16507 case $host_vendor in
16508 sni)
16509 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16510 hardcode_direct=yes # is this really true???
16511 ;;
16512 siemens)
16513 ## LD is ld it makes a PLAMLIB
16514 ## CC just makes a GrossModule.
16515 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16516 reload_cmds='$CC -r -o $output$reload_objs'
16517 hardcode_direct=no
16518 ;;
16519 motorola)
16520 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16521 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16522 ;;
16523 esac
16524 runpath_var='LD_RUN_PATH'
16525 hardcode_shlibpath_var=no
16526 ;;
16527
16528 sysv4.3*)
16529 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16530 hardcode_shlibpath_var=no
16531 export_dynamic_flag_spec='-Bexport'
16532 ;;
16533
16534 sysv4*MP*)
16535 if test -d /usr/nec; then
16536 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16537 hardcode_shlibpath_var=no
16538 runpath_var=LD_RUN_PATH
16539 hardcode_runpath_var=yes
16540 ld_shlibs=yes
16541 fi
16542 ;;
16543
16544 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16545 no_undefined_flag='$wl-z,text'
16546 archive_cmds_need_lc=no
16547 hardcode_shlibpath_var=no
16548 runpath_var='LD_RUN_PATH'
16549
16550 if test yes = "$GCC"; then
16551 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16552 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16553 else
16554 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16555 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16556 fi
16557 ;;
16558
16559 sysv5* | sco3.2v5* | sco5v6*)
16560 # Note: We CANNOT use -z defs as we might desire, because we do not
16561 # link with -lc, and that would cause any symbols used from libc to
16562 # always be unresolved, which means just about no library would
16563 # ever link correctly. If we're not using GNU ld we use -z text
16564 # though, which does catch some bad symbols but isn't as heavy-handed
16565 # as -z defs.
16566 no_undefined_flag='$wl-z,text'
16567 allow_undefined_flag='$wl-z,nodefs'
16568 archive_cmds_need_lc=no
16569 hardcode_shlibpath_var=no
16570 hardcode_libdir_flag_spec='$wl-R,$libdir'
16571 hardcode_libdir_separator=':'
16572 link_all_deplibs=yes
16573 export_dynamic_flag_spec='$wl-Bexport'
16574 runpath_var='LD_RUN_PATH'
16575
16576 if test yes = "$GCC"; then
16577 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16578 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16579 else
16580 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16581 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16582 fi
16583 ;;
16584
16585 uts4*)
16586 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16587 hardcode_libdir_flag_spec='-L$libdir'
16588 hardcode_shlibpath_var=no
16589 ;;
16590
16591 *)
16592 ld_shlibs=no
16593 ;;
16594 esac
16595
16596 if test sni = "$host_vendor"; then
16597 case $host in
16598 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16599 export_dynamic_flag_spec='$wl-Blargedynsym'
16600 ;;
16601 esac
16602 fi
16603 fi
16604
16605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16606 $as_echo "$ld_shlibs" >&6; }
16607 test no = "$ld_shlibs" && can_build_shared=no
16608
16609 with_gnu_ld=$with_gnu_ld
16610
16611
16612
16613
16614
16615
16616
16617
16618
16619
16620
16621
16622
16623
16624
16625 #
16626 # Do we need to explicitly link libc?
16627 #
16628 case "x$archive_cmds_need_lc" in
16629 x|xyes)
16630 # Assume -lc should be added
16631 archive_cmds_need_lc=yes
16632
16633 if test yes,yes = "$GCC,$enable_shared"; then
16634 case $archive_cmds in
16635 *'~'*)
16636 # FIXME: we may have to deal with multi-command sequences.
16637 ;;
16638 '$CC '*)
16639 # Test whether the compiler implicitly links with -lc since on some
16640 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16641 # to ld, don't add -lc before -lgcc.
16642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16643 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16644 if ${lt_cv_archive_cmds_need_lc+:} false; then :
16645 $as_echo_n "(cached) " >&6
16646 else
16647 $RM conftest*
16648 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16649
16650 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16651 (eval $ac_compile) 2>&5
16652 ac_status=$?
16653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16654 test $ac_status = 0; } 2>conftest.err; then
16655 soname=conftest
16656 lib=conftest
16657 libobjs=conftest.$ac_objext
16658 deplibs=
16659 wl=$lt_prog_compiler_wl
16660 pic_flag=$lt_prog_compiler_pic
16661 compiler_flags=-v
16662 linker_flags=-v
16663 verstring=
16664 output_objdir=.
16665 libname=conftest
16666 lt_save_allow_undefined_flag=$allow_undefined_flag
16667 allow_undefined_flag=
16668 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16669 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16670 ac_status=$?
16671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16672 test $ac_status = 0; }
16673 then
16674 lt_cv_archive_cmds_need_lc=no
16675 else
16676 lt_cv_archive_cmds_need_lc=yes
16677 fi
16678 allow_undefined_flag=$lt_save_allow_undefined_flag
16679 else
16680 cat conftest.err 1>&5
16681 fi
16682 $RM conftest*
16683
16684 fi
16685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16686 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16687 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16688 ;;
16689 esac
16690 fi
16691 ;;
16692 esac
16693
16694
16695
16696
16697
16698
16699
16700
16701
16702
16703
16704
16705
16706
16707
16708
16709
16710
16711
16712
16713
16714
16715
16716
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726
16727
16728
16729
16730
16731
16732
16733
16734
16735
16736
16737
16738
16739
16740
16741
16742
16743
16744
16745
16746
16747
16748
16749
16750
16751
16752
16753
16754
16755
16756
16757
16758
16759
16760
16761
16762
16763
16764
16765
16766
16767
16768
16769
16770
16771
16772
16773
16774
16775
16776
16777
16778
16779
16780
16781
16782
16783
16784
16785
16786
16787
16788
16789
16790
16791
16792
16793
16794
16795
16796
16797
16798
16799
16800
16801
16802
16803
16804
16805
16806
16807
16808
16809
16810
16811
16812
16813
16814
16815
16816
16817
16818
16819
16820
16821
16822
16823
16824
16825
16826
16827
16828
16829
16830
16831
16832
16833
16834
16835
16836
16837
16838
16839
16840
16841
16842
16843
16844
16845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16846 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16847
16848 if test yes = "$GCC"; then
16849 case $host_os in
16850 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
16851 *) lt_awk_arg='/^libraries:/' ;;
16852 esac
16853 case $host_os in
16854 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
16855 *) lt_sed_strip_eq='s|=/|/|g' ;;
16856 esac
16857 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16858 case $lt_search_path_spec in
16859 *\;*)
16860 # if the path contains ";" then we assume it to be the separator
16861 # otherwise default to the standard path separator (i.e. ":") - it is
16862 # assumed that no part of a normal pathname contains ";" but that should
16863 # okay in the real world where ";" in dirpaths is itself problematic.
16864 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16865 ;;
16866 *)
16867 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16868 ;;
16869 esac
16870 # Ok, now we have the path, separated by spaces, we can step through it
16871 # and add multilib dir if necessary...
16872 lt_tmp_lt_search_path_spec=
16873 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16874 # ...but if some path component already ends with the multilib dir we assume
16875 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
16876 case "$lt_multi_os_dir; $lt_search_path_spec " in
16877 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
16878 lt_multi_os_dir=
16879 ;;
16880 esac
16881 for lt_sys_path in $lt_search_path_spec; do
16882 if test -d "$lt_sys_path$lt_multi_os_dir"; then
16883 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
16884 elif test -n "$lt_multi_os_dir"; then
16885 test -d "$lt_sys_path" && \
16886 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16887 fi
16888 done
16889 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16890 BEGIN {RS = " "; FS = "/|\n";} {
16891 lt_foo = "";
16892 lt_count = 0;
16893 for (lt_i = NF; lt_i > 0; lt_i--) {
16894 if ($lt_i != "" && $lt_i != ".") {
16895 if ($lt_i == "..") {
16896 lt_count++;
16897 } else {
16898 if (lt_count == 0) {
16899 lt_foo = "/" $lt_i lt_foo;
16900 } else {
16901 lt_count--;
16902 }
16903 }
16904 }
16905 }
16906 if (lt_foo != "") { lt_freq[lt_foo]++; }
16907 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16908 }'`
16909 # AWK program above erroneously prepends '/' to C:/dos/paths
16910 # for these hosts.
16911 case $host_os in
16912 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16913 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
16914 esac
16915 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16916 else
16917 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16918 fi
16919 library_names_spec=
16920 libname_spec='lib$name'
16921 soname_spec=
16922 shrext_cmds=.so
16923 postinstall_cmds=
16924 postuninstall_cmds=
16925 finish_cmds=
16926 finish_eval=
16927 shlibpath_var=
16928 shlibpath_overrides_runpath=unknown
16929 version_type=none
16930 dynamic_linker="$host_os ld.so"
16931 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16932 need_lib_prefix=unknown
16933 hardcode_into_libs=no
16934
16935 # when you set need_version to no, make sure it does not cause -set_version
16936 # flags to be left without arguments
16937 need_version=unknown
16938
16939
16940
16941 case $host_os in
16942 aix3*)
16943 version_type=linux # correct to gnu/linux during the next big refactor
16944 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
16945 shlibpath_var=LIBPATH
16946
16947 # AIX 3 has no versioning support, so we append a major version to the name.
16948 soname_spec='$libname$release$shared_ext$major'
16949 ;;
16950
16951 aix[4-9]*)
16952 version_type=linux # correct to gnu/linux during the next big refactor
16953 need_lib_prefix=no
16954 need_version=no
16955 hardcode_into_libs=yes
16956 if test ia64 = "$host_cpu"; then
16957 # AIX 5 supports IA64
16958 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
16959 shlibpath_var=LD_LIBRARY_PATH
16960 else
16961 # With GCC up to 2.95.x, collect2 would create an import file
16962 # for dependence libraries. The import file would start with
16963 # the line '#! .'. This would cause the generated library to
16964 # depend on '.', always an invalid library. This was fixed in
16965 # development snapshots of GCC prior to 3.0.
16966 case $host_os in
16967 aix4 | aix4.[01] | aix4.[01].*)
16968 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16969 echo ' yes '
16970 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
16971 :
16972 else
16973 can_build_shared=no
16974 fi
16975 ;;
16976 esac
16977 # Using Import Files as archive members, it is possible to support
16978 # filename-based versioning of shared library archives on AIX. While
16979 # this would work for both with and without runtime linking, it will
16980 # prevent static linking of such archives. So we do filename-based
16981 # shared library versioning with .so extension only, which is used
16982 # when both runtime linking and shared linking is enabled.
16983 # Unfortunately, runtime linking may impact performance, so we do
16984 # not want this to be the default eventually. Also, we use the
16985 # versioned .so libs for executables only if there is the -brtl
16986 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
16987 # To allow for filename-based versioning support, we need to create
16988 # libNAME.so.V as an archive file, containing:
16989 # *) an Import File, referring to the versioned filename of the
16990 # archive as well as the shared archive member, telling the
16991 # bitwidth (32 or 64) of that shared object, and providing the
16992 # list of exported symbols of that shared object, eventually
16993 # decorated with the 'weak' keyword
16994 # *) the shared object with the F_LOADONLY flag set, to really avoid
16995 # it being seen by the linker.
16996 # At run time we better use the real file rather than another symlink,
16997 # but for link time we create the symlink libNAME.so -> libNAME.so.V
16998
16999 case $with_aix_soname,$aix_use_runtimelinking in
17000 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
17001 # soname into executable. Probably we can add versioning support to
17002 # collect2, so additional links can be useful in future.
17003 aix,yes) # traditional libtool
17004 dynamic_linker='AIX unversionable lib.so'
17005 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17006 # instead of lib<name>.a to let people know that these are not
17007 # typical AIX shared libraries.
17008 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17009 ;;
17010 aix,no) # traditional AIX only
17011 dynamic_linker='AIX lib.a(lib.so.V)'
17012 # We preserve .a as extension for shared libraries through AIX4.2
17013 # and later when we are not doing run time linking.
17014 library_names_spec='$libname$release.a $libname.a'
17015 soname_spec='$libname$release$shared_ext$major'
17016 ;;
17017 svr4,*) # full svr4 only
17018 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
17019 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17020 # We do not specify a path in Import Files, so LIBPATH fires.
17021 shlibpath_overrides_runpath=yes
17022 ;;
17023 *,yes) # both, prefer svr4
17024 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
17025 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17026 # unpreferred sharedlib libNAME.a needs extra handling
17027 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
17028 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
17029 # We do not specify a path in Import Files, so LIBPATH fires.
17030 shlibpath_overrides_runpath=yes
17031 ;;
17032 *,no) # both, prefer aix
17033 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
17034 library_names_spec='$libname$release.a $libname.a'
17035 soname_spec='$libname$release$shared_ext$major'
17036 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
17037 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
17038 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
17039 ;;
17040 esac
17041 shlibpath_var=LIBPATH
17042 fi
17043 ;;
17044
17045 amigaos*)
17046 case $host_cpu in
17047 powerpc)
17048 # Since July 2007 AmigaOS4 officially supports .so libraries.
17049 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17050 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17051 ;;
17052 m68k)
17053 library_names_spec='$libname.ixlibrary $libname.a'
17054 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17055 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
17056 ;;
17057 esac
17058 ;;
17059
17060 beos*)
17061 library_names_spec='$libname$shared_ext'
17062 dynamic_linker="$host_os ld.so"
17063 shlibpath_var=LIBRARY_PATH
17064 ;;
17065
17066 bsdi[45]*)
17067 version_type=linux # correct to gnu/linux during the next big refactor
17068 need_version=no
17069 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17070 soname_spec='$libname$release$shared_ext$major'
17071 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17072 shlibpath_var=LD_LIBRARY_PATH
17073 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17074 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17075 # the default ld.so.conf also contains /usr/contrib/lib and
17076 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17077 # libtool to hard-code these into programs
17078 ;;
17079
17080 cygwin* | mingw* | pw32* | cegcc*)
17081 version_type=windows
17082 shrext_cmds=.dll
17083 need_version=no
17084 need_lib_prefix=no
17085
17086 case $GCC,$cc_basename in
17087 yes,*)
17088 # gcc
17089 library_names_spec='$libname.dll.a'
17090 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17091 postinstall_cmds='base_file=`basename \$file`~
17092 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17093 dldir=$destdir/`dirname \$dlpath`~
17094 test -d \$dldir || mkdir -p \$dldir~
17095 $install_prog $dir/$dlname \$dldir/$dlname~
17096 chmod a+x \$dldir/$dlname~
17097 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17098 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17099 fi'
17100 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17101 dlpath=$dir/\$dldll~
17102 $RM \$dlpath'
17103 shlibpath_overrides_runpath=yes
17104
17105 case $host_os in
17106 cygwin*)
17107 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17108 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17109
17110 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17111 ;;
17112 mingw* | cegcc*)
17113 # MinGW DLLs use traditional 'lib' prefix
17114 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17115 ;;
17116 pw32*)
17117 # pw32 DLLs use 'pw' prefix rather than 'lib'
17118 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17119 ;;
17120 esac
17121 dynamic_linker='Win32 ld.exe'
17122 ;;
17123
17124 *,cl*)
17125 # Native MSVC
17126 libname_spec='$name'
17127 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17128 library_names_spec='$libname.dll.lib'
17129
17130 case $build_os in
17131 mingw*)
17132 sys_lib_search_path_spec=
17133 lt_save_ifs=$IFS
17134 IFS=';'
17135 for lt_path in $LIB
17136 do
17137 IFS=$lt_save_ifs
17138 # Let DOS variable expansion print the short 8.3 style file name.
17139 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17140 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17141 done
17142 IFS=$lt_save_ifs
17143 # Convert to MSYS style.
17144 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17145 ;;
17146 cygwin*)
17147 # Convert to unix form, then to dos form, then back to unix form
17148 # but this time dos style (no spaces!) so that the unix form looks
17149 # like /cygdrive/c/PROGRA~1:/cygdr...
17150 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17151 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17152 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17153 ;;
17154 *)
17155 sys_lib_search_path_spec=$LIB
17156 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17157 # It is most probably a Windows format PATH.
17158 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17159 else
17160 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17161 fi
17162 # FIXME: find the short name or the path components, as spaces are
17163 # common. (e.g. "Program Files" -> "PROGRA~1")
17164 ;;
17165 esac
17166
17167 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17168 postinstall_cmds='base_file=`basename \$file`~
17169 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17170 dldir=$destdir/`dirname \$dlpath`~
17171 test -d \$dldir || mkdir -p \$dldir~
17172 $install_prog $dir/$dlname \$dldir/$dlname'
17173 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17174 dlpath=$dir/\$dldll~
17175 $RM \$dlpath'
17176 shlibpath_overrides_runpath=yes
17177 dynamic_linker='Win32 link.exe'
17178 ;;
17179
17180 *)
17181 # Assume MSVC wrapper
17182 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
17183 dynamic_linker='Win32 ld.exe'
17184 ;;
17185 esac
17186 # FIXME: first we should search . and the directory the executable is in
17187 shlibpath_var=PATH
17188 ;;
17189
17190 darwin* | rhapsody*)
17191 dynamic_linker="$host_os dyld"
17192 version_type=darwin
17193 need_lib_prefix=no
17194 need_version=no
17195 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
17196 soname_spec='$libname$release$major$shared_ext'
17197 shlibpath_overrides_runpath=yes
17198 shlibpath_var=DYLD_LIBRARY_PATH
17199 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17200
17201 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17202 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17203 ;;
17204
17205 dgux*)
17206 version_type=linux # correct to gnu/linux during the next big refactor
17207 need_lib_prefix=no
17208 need_version=no
17209 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17210 soname_spec='$libname$release$shared_ext$major'
17211 shlibpath_var=LD_LIBRARY_PATH
17212 ;;
17213
17214 freebsd* | dragonfly*)
17215 # DragonFly does not have aout. When/if they implement a new
17216 # versioning mechanism, adjust this.
17217 if test -x /usr/bin/objformat; then
17218 objformat=`/usr/bin/objformat`
17219 else
17220 case $host_os in
17221 freebsd[23].*) objformat=aout ;;
17222 *) objformat=elf ;;
17223 esac
17224 fi
17225 # Handle Gentoo/FreeBSD as it was Linux
17226 case $host_vendor in
17227 gentoo)
17228 version_type=linux ;;
17229 *)
17230 version_type=freebsd-$objformat ;;
17231 esac
17232
17233 case $version_type in
17234 freebsd-elf*)
17235 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17236 soname_spec='$libname$release$shared_ext$major'
17237 need_version=no
17238 need_lib_prefix=no
17239 ;;
17240 freebsd-*)
17241 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17242 need_version=yes
17243 ;;
17244 linux)
17245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17246 soname_spec='${libname}${release}${shared_ext}$major'
17247 need_lib_prefix=no
17248 need_version=no
17249 ;;
17250 esac
17251 shlibpath_var=LD_LIBRARY_PATH
17252 case $host_os in
17253 freebsd2.*)
17254 shlibpath_overrides_runpath=yes
17255 ;;
17256 freebsd3.[01]* | freebsdelf3.[01]*)
17257 shlibpath_overrides_runpath=yes
17258 hardcode_into_libs=yes
17259 ;;
17260 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17261 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17262 shlibpath_overrides_runpath=no
17263 hardcode_into_libs=yes
17264 ;;
17265 *) # from 4.6 on, and DragonFly
17266 shlibpath_overrides_runpath=yes
17267 hardcode_into_libs=yes
17268 ;;
17269 esac
17270 ;;
17271
17272 haiku*)
17273 version_type=linux # correct to gnu/linux during the next big refactor
17274 need_lib_prefix=no
17275 need_version=no
17276 dynamic_linker="$host_os runtime_loader"
17277 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17278 soname_spec='$libname$release$shared_ext$major'
17279 shlibpath_var=LIBRARY_PATH
17280 shlibpath_overrides_runpath=no
17281 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17282 hardcode_into_libs=yes
17283 ;;
17284
17285 hpux9* | hpux10* | hpux11*)
17286 # Give a soname corresponding to the major version so that dld.sl refuses to
17287 # link against other versions.
17288 version_type=sunos
17289 need_lib_prefix=no
17290 need_version=no
17291 case $host_cpu in
17292 ia64*)
17293 shrext_cmds='.so'
17294 hardcode_into_libs=yes
17295 dynamic_linker="$host_os dld.so"
17296 shlibpath_var=LD_LIBRARY_PATH
17297 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17298 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17299 soname_spec='$libname$release$shared_ext$major'
17300 if test 32 = "$HPUX_IA64_MODE"; then
17301 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17302 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
17303 else
17304 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17305 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
17306 fi
17307 ;;
17308 hppa*64*)
17309 shrext_cmds='.sl'
17310 hardcode_into_libs=yes
17311 dynamic_linker="$host_os dld.sl"
17312 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17313 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17314 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17315 soname_spec='$libname$release$shared_ext$major'
17316 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17317 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17318 ;;
17319 *)
17320 shrext_cmds='.sl'
17321 dynamic_linker="$host_os dld.sl"
17322 shlibpath_var=SHLIB_PATH
17323 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17324 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17325 soname_spec='$libname$release$shared_ext$major'
17326 ;;
17327 esac
17328 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17329 postinstall_cmds='chmod 555 $lib'
17330 # or fails outright, so override atomically:
17331 install_override_mode=555
17332 ;;
17333
17334 interix[3-9]*)
17335 version_type=linux # correct to gnu/linux during the next big refactor
17336 need_lib_prefix=no
17337 need_version=no
17338 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17339 soname_spec='$libname$release$shared_ext$major'
17340 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17341 shlibpath_var=LD_LIBRARY_PATH
17342 shlibpath_overrides_runpath=no
17343 hardcode_into_libs=yes
17344 ;;
17345
17346 irix5* | irix6* | nonstopux*)
17347 case $host_os in
17348 nonstopux*) version_type=nonstopux ;;
17349 *)
17350 if test yes = "$lt_cv_prog_gnu_ld"; then
17351 version_type=linux # correct to gnu/linux during the next big refactor
17352 else
17353 version_type=irix
17354 fi ;;
17355 esac
17356 need_lib_prefix=no
17357 need_version=no
17358 soname_spec='$libname$release$shared_ext$major'
17359 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
17360 case $host_os in
17361 irix5* | nonstopux*)
17362 libsuff= shlibsuff=
17363 ;;
17364 *)
17365 case $LD in # libtool.m4 will add one of these switches to LD
17366 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17367 libsuff= shlibsuff= libmagic=32-bit;;
17368 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17369 libsuff=32 shlibsuff=N32 libmagic=N32;;
17370 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17371 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17372 *) libsuff= shlibsuff= libmagic=never-match;;
17373 esac
17374 ;;
17375 esac
17376 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17377 shlibpath_overrides_runpath=no
17378 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
17379 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
17380 hardcode_into_libs=yes
17381 ;;
17382
17383 # No shared lib support for Linux oldld, aout, or coff.
17384 linux*oldld* | linux*aout* | linux*coff*)
17385 dynamic_linker=no
17386 ;;
17387
17388 linux*android*)
17389 version_type=none # Android doesn't support versioned libraries.
17390 need_lib_prefix=no
17391 need_version=no
17392 library_names_spec='$libname$release$shared_ext'
17393 soname_spec='$libname$release$shared_ext'
17394 finish_cmds=
17395 shlibpath_var=LD_LIBRARY_PATH
17396 shlibpath_overrides_runpath=yes
17397
17398 # This implies no fast_install, which is unacceptable.
17399 # Some rework will be needed to allow for fast_install
17400 # before this can be enabled.
17401 hardcode_into_libs=yes
17402
17403 dynamic_linker='Android linker'
17404 # Don't embed -rpath directories since the linker doesn't support them.
17405 hardcode_libdir_flag_spec='-L$libdir'
17406 ;;
17407
17408 # This must be glibc/ELF.
17409 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17410 version_type=linux # correct to gnu/linux during the next big refactor
17411 need_lib_prefix=no
17412 need_version=no
17413 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17414 soname_spec='$libname$release$shared_ext$major'
17415 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17416 shlibpath_var=LD_LIBRARY_PATH
17417 shlibpath_overrides_runpath=no
17418
17419 # Some binutils ld are patched to set DT_RUNPATH
17420 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17421 $as_echo_n "(cached) " >&6
17422 else
17423 lt_cv_shlibpath_overrides_runpath=no
17424 save_LDFLAGS=$LDFLAGS
17425 save_libdir=$libdir
17426 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17427 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17429 /* end confdefs.h. */
17430
17431 int
17432 main ()
17433 {
17434
17435 ;
17436 return 0;
17437 }
17438 _ACEOF
17439 if ac_fn_c_try_link "$LINENO"; then :
17440 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17441 lt_cv_shlibpath_overrides_runpath=yes
17442 fi
17443 fi
17444 rm -f core conftest.err conftest.$ac_objext \
17445 conftest$ac_exeext conftest.$ac_ext
17446 LDFLAGS=$save_LDFLAGS
17447 libdir=$save_libdir
17448
17449 fi
17450
17451 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17452
17453 # This implies no fast_install, which is unacceptable.
17454 # Some rework will be needed to allow for fast_install
17455 # before this can be enabled.
17456 hardcode_into_libs=yes
17457
17458 # Ideally, we could use ldconfig to report *all* directores which are
17459 # searched for libraries, however this is still not possible. Aside from not
17460 # being certain /sbin/ldconfig is available, command
17461 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
17462 # even though it is searched at run-time. Try to do the best guess by
17463 # appending ld.so.conf contents (and includes) to the search path.
17464 if test -f /etc/ld.so.conf; then
17465 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' ' '`
17466 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17467 fi
17468
17469 # We used to test for /lib/ld.so.1 and disable shared libraries on
17470 # powerpc, because MkLinux only supported shared libraries with the
17471 # GNU dynamic linker. Since this was broken with cross compilers,
17472 # most powerpc-linux boxes support dynamic linking these days and
17473 # people can always --disable-shared, the test was removed, and we
17474 # assume the GNU/Linux dynamic linker is in use.
17475 dynamic_linker='GNU/Linux ld.so'
17476 ;;
17477
17478 netbsd*)
17479 version_type=sunos
17480 need_lib_prefix=no
17481 need_version=no
17482 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17483 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17484 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17485 dynamic_linker='NetBSD (a.out) ld.so'
17486 else
17487 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17488 soname_spec='$libname$release$shared_ext$major'
17489 dynamic_linker='NetBSD ld.elf_so'
17490 fi
17491 shlibpath_var=LD_LIBRARY_PATH
17492 shlibpath_overrides_runpath=yes
17493 hardcode_into_libs=yes
17494 ;;
17495
17496 newsos6)
17497 version_type=linux # correct to gnu/linux during the next big refactor
17498 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17499 shlibpath_var=LD_LIBRARY_PATH
17500 shlibpath_overrides_runpath=yes
17501 ;;
17502
17503 *nto* | *qnx*)
17504 version_type=qnx
17505 need_lib_prefix=no
17506 need_version=no
17507 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17508 soname_spec='$libname$release$shared_ext$major'
17509 shlibpath_var=LD_LIBRARY_PATH
17510 shlibpath_overrides_runpath=no
17511 hardcode_into_libs=yes
17512 dynamic_linker='ldqnx.so'
17513 ;;
17514
17515 openbsd* | bitrig*)
17516 version_type=sunos
17517 sys_lib_dlsearch_path_spec=/usr/lib
17518 need_lib_prefix=no
17519 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17520 need_version=no
17521 else
17522 need_version=yes
17523 fi
17524 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17525 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17526 shlibpath_var=LD_LIBRARY_PATH
17527 shlibpath_overrides_runpath=yes
17528 ;;
17529
17530 os2*)
17531 libname_spec='$name'
17532 version_type=windows
17533 shrext_cmds=.dll
17534 need_version=no
17535 need_lib_prefix=no
17536 # OS/2 can only load a DLL with a base name of 8 characters or less.
17537 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
17538 v=$($ECHO $release$versuffix | tr -d .-);
17539 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
17540 $ECHO $n$v`$shared_ext'
17541 library_names_spec='${libname}_dll.$libext'
17542 dynamic_linker='OS/2 ld.exe'
17543 shlibpath_var=BEGINLIBPATH
17544 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17545 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17546 postinstall_cmds='base_file=`basename \$file`~
17547 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
17548 dldir=$destdir/`dirname \$dlpath`~
17549 test -d \$dldir || mkdir -p \$dldir~
17550 $install_prog $dir/$dlname \$dldir/$dlname~
17551 chmod a+x \$dldir/$dlname~
17552 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17553 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17554 fi'
17555 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
17556 dlpath=$dir/\$dldll~
17557 $RM \$dlpath'
17558 ;;
17559
17560 osf3* | osf4* | osf5*)
17561 version_type=osf
17562 need_lib_prefix=no
17563 need_version=no
17564 soname_spec='$libname$release$shared_ext$major'
17565 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17566 shlibpath_var=LD_LIBRARY_PATH
17567 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17568 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17569 ;;
17570
17571 rdos*)
17572 dynamic_linker=no
17573 ;;
17574
17575 solaris*)
17576 version_type=linux # correct to gnu/linux during the next big refactor
17577 need_lib_prefix=no
17578 need_version=no
17579 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17580 soname_spec='$libname$release$shared_ext$major'
17581 shlibpath_var=LD_LIBRARY_PATH
17582 shlibpath_overrides_runpath=yes
17583 hardcode_into_libs=yes
17584 # ldd complains unless libraries are executable
17585 postinstall_cmds='chmod +x $lib'
17586 ;;
17587
17588 sunos4*)
17589 version_type=sunos
17590 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17591 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17592 shlibpath_var=LD_LIBRARY_PATH
17593 shlibpath_overrides_runpath=yes
17594 if test yes = "$with_gnu_ld"; then
17595 need_lib_prefix=no
17596 fi
17597 need_version=yes
17598 ;;
17599
17600 sysv4 | sysv4.3*)
17601 version_type=linux # correct to gnu/linux during the next big refactor
17602 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17603 soname_spec='$libname$release$shared_ext$major'
17604 shlibpath_var=LD_LIBRARY_PATH
17605 case $host_vendor in
17606 sni)
17607 shlibpath_overrides_runpath=no
17608 need_lib_prefix=no
17609 runpath_var=LD_RUN_PATH
17610 ;;
17611 siemens)
17612 need_lib_prefix=no
17613 ;;
17614 motorola)
17615 need_lib_prefix=no
17616 need_version=no
17617 shlibpath_overrides_runpath=no
17618 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17619 ;;
17620 esac
17621 ;;
17622
17623 sysv4*MP*)
17624 if test -d /usr/nec; then
17625 version_type=linux # correct to gnu/linux during the next big refactor
17626 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
17627 soname_spec='$libname$shared_ext.$major'
17628 shlibpath_var=LD_LIBRARY_PATH
17629 fi
17630 ;;
17631
17632 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17633 version_type=sco
17634 need_lib_prefix=no
17635 need_version=no
17636 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
17637 soname_spec='$libname$release$shared_ext$major'
17638 shlibpath_var=LD_LIBRARY_PATH
17639 shlibpath_overrides_runpath=yes
17640 hardcode_into_libs=yes
17641 if test yes = "$with_gnu_ld"; then
17642 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17643 else
17644 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17645 case $host_os in
17646 sco3.2v5*)
17647 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17648 ;;
17649 esac
17650 fi
17651 sys_lib_dlsearch_path_spec='/usr/lib'
17652 ;;
17653
17654 tpf*)
17655 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17656 version_type=linux # correct to gnu/linux during the next big refactor
17657 need_lib_prefix=no
17658 need_version=no
17659 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17660 shlibpath_var=LD_LIBRARY_PATH
17661 shlibpath_overrides_runpath=no
17662 hardcode_into_libs=yes
17663 ;;
17664
17665 uts4*)
17666 version_type=linux # correct to gnu/linux during the next big refactor
17667 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17668 soname_spec='$libname$release$shared_ext$major'
17669 shlibpath_var=LD_LIBRARY_PATH
17670 ;;
17671
17672 *)
17673 dynamic_linker=no
17674 ;;
17675 esac
17676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17677 $as_echo "$dynamic_linker" >&6; }
17678 test no = "$dynamic_linker" && can_build_shared=no
17679
17680 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17681 if test yes = "$GCC"; then
17682 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17683 fi
17684
17685 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
17686 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
17687 fi
17688
17689 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
17690 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
17691 fi
17692
17693 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
17694 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
17695
17696 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
17697 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
17698
17699 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
17700 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
17701
17702
17703
17704
17705
17706
17707
17708
17709
17710
17711
17712
17713
17714
17715
17716
17717
17718
17719
17720
17721
17722
17723
17724
17725
17726
17727
17728
17729
17730
17731
17732
17733
17734
17735
17736
17737
17738
17739
17740
17741
17742
17743
17744
17745
17746
17747
17748
17749
17750
17751
17752
17753
17754
17755
17756
17757
17758
17759
17760
17761
17762
17763
17764
17765
17766
17767
17768
17769
17770
17771
17772
17773
17774
17775
17776
17777
17778
17779
17780
17781
17782
17783
17784
17785
17786
17787
17788
17789
17790
17791
17792
17793
17794
17795
17796
17797
17798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17799 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17800 hardcode_action=
17801 if test -n "$hardcode_libdir_flag_spec" ||
17802 test -n "$runpath_var" ||
17803 test yes = "$hardcode_automatic"; then
17804
17805 # We can hardcode non-existent directories.
17806 if test no != "$hardcode_direct" &&
17807 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17808 # have to relink, otherwise we might link with an installed library
17809 # when we should be linking with a yet-to-be-installed one
17810 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
17811 test no != "$hardcode_minus_L"; then
17812 # Linking always hardcodes the temporary library directory.
17813 hardcode_action=relink
17814 else
17815 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17816 hardcode_action=immediate
17817 fi
17818 else
17819 # We cannot hardcode anything, or else we can only hardcode existing
17820 # directories.
17821 hardcode_action=unsupported
17822 fi
17823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17824 $as_echo "$hardcode_action" >&6; }
17825
17826 if test relink = "$hardcode_action" ||
17827 test yes = "$inherit_rpath"; then
17828 # Fast installation is not supported
17829 enable_fast_install=no
17830 elif test yes = "$shlibpath_overrides_runpath" ||
17831 test no = "$enable_shared"; then
17832 # Fast installation is not necessary
17833 enable_fast_install=needless
17834 fi
17835
17836
17837
17838
17839
17840
17841 if test yes != "$enable_dlopen"; then
17842 enable_dlopen=unknown
17843 enable_dlopen_self=unknown
17844 enable_dlopen_self_static=unknown
17845 else
17846 lt_cv_dlopen=no
17847 lt_cv_dlopen_libs=
17848
17849 case $host_os in
17850 beos*)
17851 lt_cv_dlopen=load_add_on
17852 lt_cv_dlopen_libs=
17853 lt_cv_dlopen_self=yes
17854 ;;
17855
17856 mingw* | pw32* | cegcc*)
17857 lt_cv_dlopen=LoadLibrary
17858 lt_cv_dlopen_libs=
17859 ;;
17860
17861 cygwin*)
17862 lt_cv_dlopen=dlopen
17863 lt_cv_dlopen_libs=
17864 ;;
17865
17866 darwin*)
17867 # if libdl is installed we need to link against it
17868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17869 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17870 if ${ac_cv_lib_dl_dlopen+:} false; then :
17871 $as_echo_n "(cached) " >&6
17872 else
17873 ac_check_lib_save_LIBS=$LIBS
17874 LIBS="-ldl $LIBS"
17875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17876 /* end confdefs.h. */
17877
17878 /* Override any GCC internal prototype to avoid an error.
17879 Use char because int might match the return type of a GCC
17880 builtin and then its argument prototype would still apply. */
17881 #ifdef __cplusplus
17882 extern "C"
17883 #endif
17884 char dlopen ();
17885 int
17886 main ()
17887 {
17888 return dlopen ();
17889 ;
17890 return 0;
17891 }
17892 _ACEOF
17893 if ac_fn_c_try_link "$LINENO"; then :
17894 ac_cv_lib_dl_dlopen=yes
17895 else
17896 ac_cv_lib_dl_dlopen=no
17897 fi
17898 rm -f core conftest.err conftest.$ac_objext \
17899 conftest$ac_exeext conftest.$ac_ext
17900 LIBS=$ac_check_lib_save_LIBS
17901 fi
17902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17903 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17904 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17905 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
17906 else
17907
17908 lt_cv_dlopen=dyld
17909 lt_cv_dlopen_libs=
17910 lt_cv_dlopen_self=yes
17911
17912 fi
17913
17914 ;;
17915
17916 tpf*)
17917 # Don't try to run any link tests for TPF. We know it's impossible
17918 # because TPF is a cross-compiler, and we know how we open DSOs.
17919 lt_cv_dlopen=dlopen
17920 lt_cv_dlopen_libs=
17921 lt_cv_dlopen_self=no
17922 ;;
17923
17924 *)
17925 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17926 if test "x$ac_cv_func_shl_load" = xyes; then :
17927 lt_cv_dlopen=shl_load
17928 else
17929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17930 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17931 if ${ac_cv_lib_dld_shl_load+:} false; then :
17932 $as_echo_n "(cached) " >&6
17933 else
17934 ac_check_lib_save_LIBS=$LIBS
17935 LIBS="-ldld $LIBS"
17936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17937 /* end confdefs.h. */
17938
17939 /* Override any GCC internal prototype to avoid an error.
17940 Use char because int might match the return type of a GCC
17941 builtin and then its argument prototype would still apply. */
17942 #ifdef __cplusplus
17943 extern "C"
17944 #endif
17945 char shl_load ();
17946 int
17947 main ()
17948 {
17949 return shl_load ();
17950 ;
17951 return 0;
17952 }
17953 _ACEOF
17954 if ac_fn_c_try_link "$LINENO"; then :
17955 ac_cv_lib_dld_shl_load=yes
17956 else
17957 ac_cv_lib_dld_shl_load=no
17958 fi
17959 rm -f core conftest.err conftest.$ac_objext \
17960 conftest$ac_exeext conftest.$ac_ext
17961 LIBS=$ac_check_lib_save_LIBS
17962 fi
17963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17964 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17965 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
17966 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
17967 else
17968 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17969 if test "x$ac_cv_func_dlopen" = xyes; then :
17970 lt_cv_dlopen=dlopen
17971 else
17972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17973 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17974 if ${ac_cv_lib_dl_dlopen+:} false; then :
17975 $as_echo_n "(cached) " >&6
17976 else
17977 ac_check_lib_save_LIBS=$LIBS
17978 LIBS="-ldl $LIBS"
17979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17980 /* end confdefs.h. */
17981
17982 /* Override any GCC internal prototype to avoid an error.
17983 Use char because int might match the return type of a GCC
17984 builtin and then its argument prototype would still apply. */
17985 #ifdef __cplusplus
17986 extern "C"
17987 #endif
17988 char dlopen ();
17989 int
17990 main ()
17991 {
17992 return dlopen ();
17993 ;
17994 return 0;
17995 }
17996 _ACEOF
17997 if ac_fn_c_try_link "$LINENO"; then :
17998 ac_cv_lib_dl_dlopen=yes
17999 else
18000 ac_cv_lib_dl_dlopen=no
18001 fi
18002 rm -f core conftest.err conftest.$ac_objext \
18003 conftest$ac_exeext conftest.$ac_ext
18004 LIBS=$ac_check_lib_save_LIBS
18005 fi
18006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18007 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18008 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
18009 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
18010 else
18011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18012 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18013 if ${ac_cv_lib_svld_dlopen+:} false; then :
18014 $as_echo_n "(cached) " >&6
18015 else
18016 ac_check_lib_save_LIBS=$LIBS
18017 LIBS="-lsvld $LIBS"
18018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18019 /* end confdefs.h. */
18020
18021 /* Override any GCC internal prototype to avoid an error.
18022 Use char because int might match the return type of a GCC
18023 builtin and then its argument prototype would still apply. */
18024 #ifdef __cplusplus
18025 extern "C"
18026 #endif
18027 char dlopen ();
18028 int
18029 main ()
18030 {
18031 return dlopen ();
18032 ;
18033 return 0;
18034 }
18035 _ACEOF
18036 if ac_fn_c_try_link "$LINENO"; then :
18037 ac_cv_lib_svld_dlopen=yes
18038 else
18039 ac_cv_lib_svld_dlopen=no
18040 fi
18041 rm -f core conftest.err conftest.$ac_objext \
18042 conftest$ac_exeext conftest.$ac_ext
18043 LIBS=$ac_check_lib_save_LIBS
18044 fi
18045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18046 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18047 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
18048 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
18049 else
18050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18051 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18052 if ${ac_cv_lib_dld_dld_link+:} false; then :
18053 $as_echo_n "(cached) " >&6
18054 else
18055 ac_check_lib_save_LIBS=$LIBS
18056 LIBS="-ldld $LIBS"
18057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18058 /* end confdefs.h. */
18059
18060 /* Override any GCC internal prototype to avoid an error.
18061 Use char because int might match the return type of a GCC
18062 builtin and then its argument prototype would still apply. */
18063 #ifdef __cplusplus
18064 extern "C"
18065 #endif
18066 char dld_link ();
18067 int
18068 main ()
18069 {
18070 return dld_link ();
18071 ;
18072 return 0;
18073 }
18074 _ACEOF
18075 if ac_fn_c_try_link "$LINENO"; then :
18076 ac_cv_lib_dld_dld_link=yes
18077 else
18078 ac_cv_lib_dld_dld_link=no
18079 fi
18080 rm -f core conftest.err conftest.$ac_objext \
18081 conftest$ac_exeext conftest.$ac_ext
18082 LIBS=$ac_check_lib_save_LIBS
18083 fi
18084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18085 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18086 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
18087 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
18088 fi
18089
18090
18091 fi
18092
18093
18094 fi
18095
18096
18097 fi
18098
18099
18100 fi
18101
18102
18103 fi
18104
18105 ;;
18106 esac
18107
18108 if test no = "$lt_cv_dlopen"; then
18109 enable_dlopen=no
18110 else
18111 enable_dlopen=yes
18112 fi
18113
18114 case $lt_cv_dlopen in
18115 dlopen)
18116 save_CPPFLAGS=$CPPFLAGS
18117 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18118
18119 save_LDFLAGS=$LDFLAGS
18120 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18121
18122 save_LIBS=$LIBS
18123 LIBS="$lt_cv_dlopen_libs $LIBS"
18124
18125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18126 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18127 if ${lt_cv_dlopen_self+:} false; then :
18128 $as_echo_n "(cached) " >&6
18129 else
18130 if test yes = "$cross_compiling"; then :
18131 lt_cv_dlopen_self=cross
18132 else
18133 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18134 lt_status=$lt_dlunknown
18135 cat > conftest.$ac_ext <<_LT_EOF
18136 #line $LINENO "configure"
18137 #include "confdefs.h"
18138
18139 #if HAVE_DLFCN_H
18140 #include <dlfcn.h>
18141 #endif
18142
18143 #include <stdio.h>
18144
18145 #ifdef RTLD_GLOBAL
18146 # define LT_DLGLOBAL RTLD_GLOBAL
18147 #else
18148 # ifdef DL_GLOBAL
18149 # define LT_DLGLOBAL DL_GLOBAL
18150 # else
18151 # define LT_DLGLOBAL 0
18152 # endif
18153 #endif
18154
18155 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18156 find out it does not work in some platform. */
18157 #ifndef LT_DLLAZY_OR_NOW
18158 # ifdef RTLD_LAZY
18159 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18160 # else
18161 # ifdef DL_LAZY
18162 # define LT_DLLAZY_OR_NOW DL_LAZY
18163 # else
18164 # ifdef RTLD_NOW
18165 # define LT_DLLAZY_OR_NOW RTLD_NOW
18166 # else
18167 # ifdef DL_NOW
18168 # define LT_DLLAZY_OR_NOW DL_NOW
18169 # else
18170 # define LT_DLLAZY_OR_NOW 0
18171 # endif
18172 # endif
18173 # endif
18174 # endif
18175 #endif
18176
18177 /* When -fvisibility=hidden is used, assume the code has been annotated
18178 correspondingly for the symbols needed. */
18179 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18180 int fnord () __attribute__((visibility("default")));
18181 #endif
18182
18183 int fnord () { return 42; }
18184 int main ()
18185 {
18186 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18187 int status = $lt_dlunknown;
18188
18189 if (self)
18190 {
18191 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18192 else
18193 {
18194 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18195 else puts (dlerror ());
18196 }
18197 /* dlclose (self); */
18198 }
18199 else
18200 puts (dlerror ());
18201
18202 return status;
18203 }
18204 _LT_EOF
18205 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18206 (eval $ac_link) 2>&5
18207 ac_status=$?
18208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18209 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
18210 (./conftest; exit; ) >&5 2>/dev/null
18211 lt_status=$?
18212 case x$lt_status in
18213 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18214 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18215 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18216 esac
18217 else :
18218 # compilation failed
18219 lt_cv_dlopen_self=no
18220 fi
18221 fi
18222 rm -fr conftest*
18223
18224
18225 fi
18226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18227 $as_echo "$lt_cv_dlopen_self" >&6; }
18228
18229 if test yes = "$lt_cv_dlopen_self"; then
18230 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18232 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18233 if ${lt_cv_dlopen_self_static+:} false; then :
18234 $as_echo_n "(cached) " >&6
18235 else
18236 if test yes = "$cross_compiling"; then :
18237 lt_cv_dlopen_self_static=cross
18238 else
18239 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18240 lt_status=$lt_dlunknown
18241 cat > conftest.$ac_ext <<_LT_EOF
18242 #line $LINENO "configure"
18243 #include "confdefs.h"
18244
18245 #if HAVE_DLFCN_H
18246 #include <dlfcn.h>
18247 #endif
18248
18249 #include <stdio.h>
18250
18251 #ifdef RTLD_GLOBAL
18252 # define LT_DLGLOBAL RTLD_GLOBAL
18253 #else
18254 # ifdef DL_GLOBAL
18255 # define LT_DLGLOBAL DL_GLOBAL
18256 # else
18257 # define LT_DLGLOBAL 0
18258 # endif
18259 #endif
18260
18261 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18262 find out it does not work in some platform. */
18263 #ifndef LT_DLLAZY_OR_NOW
18264 # ifdef RTLD_LAZY
18265 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18266 # else
18267 # ifdef DL_LAZY
18268 # define LT_DLLAZY_OR_NOW DL_LAZY
18269 # else
18270 # ifdef RTLD_NOW
18271 # define LT_DLLAZY_OR_NOW RTLD_NOW
18272 # else
18273 # ifdef DL_NOW
18274 # define LT_DLLAZY_OR_NOW DL_NOW
18275 # else
18276 # define LT_DLLAZY_OR_NOW 0
18277 # endif
18278 # endif
18279 # endif
18280 # endif
18281 #endif
18282
18283 /* When -fvisibility=hidden is used, assume the code has been annotated
18284 correspondingly for the symbols needed. */
18285 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18286 int fnord () __attribute__((visibility("default")));
18287 #endif
18288
18289 int fnord () { return 42; }
18290 int main ()
18291 {
18292 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18293 int status = $lt_dlunknown;
18294
18295 if (self)
18296 {
18297 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18298 else
18299 {
18300 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18301 else puts (dlerror ());
18302 }
18303 /* dlclose (self); */
18304 }
18305 else
18306 puts (dlerror ());
18307
18308 return status;
18309 }
18310 _LT_EOF
18311 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18312 (eval $ac_link) 2>&5
18313 ac_status=$?
18314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18315 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
18316 (./conftest; exit; ) >&5 2>/dev/null
18317 lt_status=$?
18318 case x$lt_status in
18319 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18320 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18321 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18322 esac
18323 else :
18324 # compilation failed
18325 lt_cv_dlopen_self_static=no
18326 fi
18327 fi
18328 rm -fr conftest*
18329
18330
18331 fi
18332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18333 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18334 fi
18335
18336 CPPFLAGS=$save_CPPFLAGS
18337 LDFLAGS=$save_LDFLAGS
18338 LIBS=$save_LIBS
18339 ;;
18340 esac
18341
18342 case $lt_cv_dlopen_self in
18343 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18344 *) enable_dlopen_self=unknown ;;
18345 esac
18346
18347 case $lt_cv_dlopen_self_static in
18348 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18349 *) enable_dlopen_self_static=unknown ;;
18350 esac
18351 fi
18352
18353
18354
18355
18356
18357
18358
18359
18360
18361
18362
18363
18364
18365
18366
18367
18368
18369 striplib=
18370 old_striplib=
18371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18372 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18373 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18374 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18375 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18377 $as_echo "yes" >&6; }
18378 else
18379 # FIXME - insert some real tests, host_os isn't really good enough
18380 case $host_os in
18381 darwin*)
18382 if test -n "$STRIP"; then
18383 striplib="$STRIP -x"
18384 old_striplib="$STRIP -S"
18385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18386 $as_echo "yes" >&6; }
18387 else
18388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18389 $as_echo "no" >&6; }
18390 fi
18391 ;;
18392 *)
18393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18394 $as_echo "no" >&6; }
18395 ;;
18396 esac
18397 fi
18398
18399
18400
18401
18402
18403
18404
18405
18406
18407
18408
18409
18410 # Report what library types will actually be built
18411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18412 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18414 $as_echo "$can_build_shared" >&6; }
18415
18416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18417 $as_echo_n "checking whether to build shared libraries... " >&6; }
18418 test no = "$can_build_shared" && enable_shared=no
18419
18420 # On AIX, shared libraries and static libraries use the same namespace, and
18421 # are all built from PIC.
18422 case $host_os in
18423 aix3*)
18424 test yes = "$enable_shared" && enable_static=no
18425 if test -n "$RANLIB"; then
18426 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18427 postinstall_cmds='$RANLIB $lib'
18428 fi
18429 ;;
18430
18431 aix[4-9]*)
18432 if test ia64 != "$host_cpu"; then
18433 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
18434 yes,aix,yes) ;; # shared object as lib.so file only
18435 yes,svr4,*) ;; # shared object as lib.so archive member only
18436 yes,*) enable_static=no ;; # shared object in lib.a archive as well
18437 esac
18438 fi
18439 ;;
18440 esac
18441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18442 $as_echo "$enable_shared" >&6; }
18443
18444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18445 $as_echo_n "checking whether to build static libraries... " >&6; }
18446 # Make sure either enable_shared or enable_static is yes.
18447 test yes = "$enable_shared" || enable_static=yes
18448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18449 $as_echo "$enable_static" >&6; }
18450
18451
18452
18453
18454 fi
18455 ac_ext=c
18456 ac_cpp='$CPP $CPPFLAGS'
18457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18460
18461 CC=$lt_save_CC
18462
18463
18464
18465
18466
18467
18468
18469
18470
18471
18472
18473
18474
18475
18476
18477 ac_config_commands="$ac_config_commands libtool"
18478
18479
18480
18481
18482 # Only expand once:
18483
18484
18485
18486
18487
18488 # Define a configure option for an alternate module directory
18489
18490 # Check whether --with-xorg-module-dir was given.
18491 if test "${with_xorg_module_dir+set}" = set; then :
18492 withval=$with_xorg_module_dir; moduledir="$withval"
18493 else
18494 moduledir="$libdir/xorg/modules"
18495 fi
18496
18497
18498 # Store the list of server defined optional extensions in REQUIRED_MODULES
18499
18500
18501 SAVE_CFLAGS="$CFLAGS"
18502 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18504 /* end confdefs.h. */
18505
18506 #include "xorg-server.h"
18507 #if !defined RANDR
18508 #error RANDR not defined
18509 #endif
18510
18511 int
18512 main ()
18513 {
18514
18515 ;
18516 return 0;
18517 }
18518 _ACEOF
18519 if ac_fn_c_try_compile "$LINENO"; then :
18520 _EXT_CHECK=yes
18521 else
18522 _EXT_CHECK=no
18523 fi
18524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18525 CFLAGS="$SAVE_CFLAGS"
18526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
18527 $as_echo_n "checking if RANDR is defined... " >&6; }
18528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18529 $as_echo "$_EXT_CHECK" >&6; }
18530 if test "$_EXT_CHECK" != no; then
18531 REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
18532 fi
18533
18534
18535
18536 SAVE_CFLAGS="$CFLAGS"
18537 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18539 /* end confdefs.h. */
18540
18541 #include "xorg-server.h"
18542 #if !defined RENDER
18543 #error RENDER not defined
18544 #endif
18545
18546 int
18547 main ()
18548 {
18549
18550 ;
18551 return 0;
18552 }
18553 _ACEOF
18554 if ac_fn_c_try_compile "$LINENO"; then :
18555 _EXT_CHECK=yes
18556 else
18557 _EXT_CHECK=no
18558 fi
18559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18560 CFLAGS="$SAVE_CFLAGS"
18561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5
18562 $as_echo_n "checking if RENDER is defined... " >&6; }
18563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18564 $as_echo "$_EXT_CHECK" >&6; }
18565 if test "$_EXT_CHECK" != no; then
18566 REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
18567 fi
18568
18569
18570
18571 SAVE_CFLAGS="$CFLAGS"
18572 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18574 /* end confdefs.h. */
18575
18576 #include "xorg-server.h"
18577 #if !defined XV
18578 #error XV not defined
18579 #endif
18580
18581 int
18582 main ()
18583 {
18584
18585 ;
18586 return 0;
18587 }
18588 _ACEOF
18589 if ac_fn_c_try_compile "$LINENO"; then :
18590 _EXT_CHECK=yes
18591 else
18592 _EXT_CHECK=no
18593 fi
18594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18595 CFLAGS="$SAVE_CFLAGS"
18596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5
18597 $as_echo_n "checking if XV is defined... " >&6; }
18598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18599 $as_echo "$_EXT_CHECK" >&6; }
18600 if test "$_EXT_CHECK" != no; then
18601 REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
18602 fi
18603
18604
18605
18606 SAVE_CFLAGS="$CFLAGS"
18607 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18609 /* end confdefs.h. */
18610
18611 #include "xorg-server.h"
18612 #if !defined DPMSExtension
18613 #error DPMSExtension not defined
18614 #endif
18615
18616 int
18617 main ()
18618 {
18619
18620 ;
18621 return 0;
18622 }
18623 _ACEOF
18624 if ac_fn_c_try_compile "$LINENO"; then :
18625 _EXT_CHECK=yes
18626 else
18627 _EXT_CHECK=no
18628 fi
18629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18630 CFLAGS="$SAVE_CFLAGS"
18631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
18632 $as_echo_n "checking if DPMSExtension is defined... " >&6; }
18633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18634 $as_echo "$_EXT_CHECK" >&6; }
18635 if test "$_EXT_CHECK" != no; then
18636 REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
18637 fi
18638
18639
18640 # Obtain compiler/linker options for the driver dependencies
18641
18642 pkg_failed=no
18643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
18644 $as_echo_n "checking for XORG... " >&6; }
18645
18646 if test -n "$XORG_CFLAGS"; then
18647 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
18648 elif test -n "$PKG_CONFIG"; then
18649 if test -n "$PKG_CONFIG" && \
18650 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
18651 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
18652 ac_status=$?
18653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18654 test $ac_status = 0; }; then
18655 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
18656 test "x$?" != "x0" && pkg_failed=yes
18657 else
18658 pkg_failed=yes
18659 fi
18660 else
18661 pkg_failed=untried
18662 fi
18663 if test -n "$XORG_LIBS"; then
18664 pkg_cv_XORG_LIBS="$XORG_LIBS"
18665 elif test -n "$PKG_CONFIG"; then
18666 if test -n "$PKG_CONFIG" && \
18667 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
18668 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
18669 ac_status=$?
18670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18671 test $ac_status = 0; }; then
18672 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
18673 test "x$?" != "x0" && pkg_failed=yes
18674 else
18675 pkg_failed=yes
18676 fi
18677 else
18678 pkg_failed=untried
18679 fi
18680
18681
18682
18683 if test $pkg_failed = yes; then
18684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18685 $as_echo "no" >&6; }
18686
18687 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18688 _pkg_short_errors_supported=yes
18689 else
18690 _pkg_short_errors_supported=no
18691 fi
18692 if test $_pkg_short_errors_supported = yes; then
18693 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
18694 else
18695 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
18696 fi
18697 # Put the nasty error message in config.log where it belongs
18698 echo "$XORG_PKG_ERRORS" >&5
18699
18700 as_fn_error $? "Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met:
18701
18702 $XORG_PKG_ERRORS
18703
18704 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18705 installed software in a non-standard prefix.
18706
18707 Alternatively, you may set the environment variables XORG_CFLAGS
18708 and XORG_LIBS to avoid the need to call pkg-config.
18709 See the pkg-config man page for more details." "$LINENO" 5
18710 elif test $pkg_failed = untried; then
18711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18712 $as_echo "no" >&6; }
18713 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18714 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18715 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18716 is in your PATH or set the PKG_CONFIG environment variable to the full
18717 path to pkg-config.
18718
18719 Alternatively, you may set the environment variables XORG_CFLAGS
18720 and XORG_LIBS to avoid the need to call pkg-config.
18721 See the pkg-config man page for more details.
18722
18723 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18724 See \`config.log' for more details" "$LINENO" 5; }
18725 else
18726 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
18727 XORG_LIBS=$pkg_cv_XORG_LIBS
18728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18729 $as_echo "yes" >&6; }
18730
18731 fi
18732
18733 pkg_failed=no
18734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
18735 $as_echo_n "checking for XEXT... " >&6; }
18736
18737 if test -n "$XEXT_CFLAGS"; then
18738 pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
18739 elif test -n "$PKG_CONFIG"; then
18740 if test -n "$PKG_CONFIG" && \
18741 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
18742 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
18743 ac_status=$?
18744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18745 test $ac_status = 0; }; then
18746 pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null`
18747 test "x$?" != "x0" && pkg_failed=yes
18748 else
18749 pkg_failed=yes
18750 fi
18751 else
18752 pkg_failed=untried
18753 fi
18754 if test -n "$XEXT_LIBS"; then
18755 pkg_cv_XEXT_LIBS="$XEXT_LIBS"
18756 elif test -n "$PKG_CONFIG"; then
18757 if test -n "$PKG_CONFIG" && \
18758 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
18759 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
18760 ac_status=$?
18761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18762 test $ac_status = 0; }; then
18763 pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null`
18764 test "x$?" != "x0" && pkg_failed=yes
18765 else
18766 pkg_failed=yes
18767 fi
18768 else
18769 pkg_failed=untried
18770 fi
18771
18772
18773
18774 if test $pkg_failed = yes; then
18775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18776 $as_echo "no" >&6; }
18777
18778 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18779 _pkg_short_errors_supported=yes
18780 else
18781 _pkg_short_errors_supported=no
18782 fi
18783 if test $_pkg_short_errors_supported = yes; then
18784 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1`
18785 else
18786 XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1`
18787 fi
18788 # Put the nasty error message in config.log where it belongs
18789 echo "$XEXT_PKG_ERRORS" >&5
18790
18791 HAVE_XEXTPROTO_71="no"
18792 elif test $pkg_failed = untried; then
18793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18794 $as_echo "no" >&6; }
18795 HAVE_XEXTPROTO_71="no"
18796 else
18797 XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
18798 XEXT_LIBS=$pkg_cv_XEXT_LIBS
18799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18800 $as_echo "yes" >&6; }
18801 HAVE_XEXTPROTO_71="yes";
18802 $as_echo "#define HAVE_XEXTPROTO_71 1" >>confdefs.h
18803
18804 fi
18805 if test "$HAVE_XEXTPROTO_71" = "yes" ; then
18806 HAVE_XEXTPROTO_71_TRUE=
18807 HAVE_XEXTPROTO_71_FALSE='#'
18808 else
18809 HAVE_XEXTPROTO_71_TRUE='#'
18810 HAVE_XEXTPROTO_71_FALSE=
18811 fi
18812
18813
18814 # Checks for libraries.
18815 SAVE_CPPFLAGS="$CPPFLAGS"
18816 CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
18817 ac_fn_c_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\"
18818 "
18819 if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes; then :
18820 XSERVER_LIBPCIACCESS=yes
18821 else
18822 XSERVER_LIBPCIACCESS=no
18823 fi
18824
18825 CPPFLAGS="$SAVE_CPPFLAGS"
18826
18827
18828 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
18829
18830 pkg_failed=no
18831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
18832 $as_echo_n "checking for PCIACCESS... " >&6; }
18833
18834 if test -n "$PCIACCESS_CFLAGS"; then
18835 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
18836 elif test -n "$PKG_CONFIG"; then
18837 if test -n "$PKG_CONFIG" && \
18838 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
18839 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
18840 ac_status=$?
18841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18842 test $ac_status = 0; }; then
18843 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null`
18844 test "x$?" != "x0" && pkg_failed=yes
18845 else
18846 pkg_failed=yes
18847 fi
18848 else
18849 pkg_failed=untried
18850 fi
18851 if test -n "$PCIACCESS_LIBS"; then
18852 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
18853 elif test -n "$PKG_CONFIG"; then
18854 if test -n "$PKG_CONFIG" && \
18855 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
18856 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
18857 ac_status=$?
18858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18859 test $ac_status = 0; }; then
18860 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null`
18861 test "x$?" != "x0" && pkg_failed=yes
18862 else
18863 pkg_failed=yes
18864 fi
18865 else
18866 pkg_failed=untried
18867 fi
18868
18869
18870
18871 if test $pkg_failed = yes; then
18872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18873 $as_echo "no" >&6; }
18874
18875 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18876 _pkg_short_errors_supported=yes
18877 else
18878 _pkg_short_errors_supported=no
18879 fi
18880 if test $_pkg_short_errors_supported = yes; then
18881 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1`
18882 else
18883 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1`
18884 fi
18885 # Put the nasty error message in config.log where it belongs
18886 echo "$PCIACCESS_PKG_ERRORS" >&5
18887
18888 as_fn_error $? "Package requirements (pciaccess >= 0.8.0) were not met:
18889
18890 $PCIACCESS_PKG_ERRORS
18891
18892 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18893 installed software in a non-standard prefix.
18894
18895 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
18896 and PCIACCESS_LIBS to avoid the need to call pkg-config.
18897 See the pkg-config man page for more details." "$LINENO" 5
18898 elif test $pkg_failed = untried; then
18899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18900 $as_echo "no" >&6; }
18901 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18902 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18903 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18904 is in your PATH or set the PKG_CONFIG environment variable to the full
18905 path to pkg-config.
18906
18907 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
18908 and PCIACCESS_LIBS to avoid the need to call pkg-config.
18909 See the pkg-config man page for more details.
18910
18911 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18912 See \`config.log' for more details" "$LINENO" 5; }
18913 else
18914 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
18915 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
18916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18917 $as_echo "yes" >&6; }
18918
18919 fi
18920 XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS"
18921 fi
18922 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
18923 XSERVER_LIBPCIACCESS_TRUE=
18924 XSERVER_LIBPCIACCESS_FALSE='#'
18925 else
18926 XSERVER_LIBPCIACCESS_TRUE='#'
18927 XSERVER_LIBPCIACCESS_FALSE=
18928 fi
18929
18930
18931 # Check whether --enable-xaa was given.
18932 if test "${enable_xaa+set}" = set; then :
18933 enableval=$enable_xaa; XAA="$enableval"
18934 else
18935 XAA=auto
18936 fi
18937
18938 if test "x$XAA" != xno; then
18939 save_CFLAGS=$CFLAGS
18940 save_CPPFLAGS=$CPPFLAGS
18941 CFLAGS=$XORG_CFLAGS
18942 CPPFLAGS="$XORG_CFLAGS"
18943 for ac_header in xaa.h
18944 do :
18945 ac_fn_c_check_header_mongrel "$LINENO" "xaa.h" "ac_cv_header_xaa_h" "$ac_includes_default"
18946 if test "x$ac_cv_header_xaa_h" = xyes; then :
18947 cat >>confdefs.h <<_ACEOF
18948 #define HAVE_XAA_H 1
18949 _ACEOF
18950 XAA=yes
18951 else
18952 XAA=no
18953 fi
18954
18955 done
18956
18957 CFLAGS=$save_CFLAGS
18958 CPPFLAGS=$save_CPPFLAGS
18959 fi
18960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include XAA support" >&5
18961 $as_echo_n "checking whether to include XAA support... " >&6; }
18962 if test "x$XAA" = xyes; then
18963 XAA_TRUE=
18964 XAA_FALSE='#'
18965 else
18966 XAA_TRUE='#'
18967 XAA_FALSE=
18968 fi
18969
18970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XAA" >&5
18971 $as_echo "$XAA" >&6; }
18972
18973
18974
18975 DRIVER_NAME=s3virge
18976
18977
18978 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
18979
18980 cat >confcache <<\_ACEOF
18981 # This file is a shell script that caches the results of configure
18982 # tests run on this system so they can be shared between configure
18983 # scripts and configure runs, see configure's option --config-cache.
18984 # It is not useful on other systems. If it contains results you don't
18985 # want to keep, you may remove or edit it.
18986 #
18987 # config.status only pays attention to the cache file if you give it
18988 # the --recheck option to rerun configure.
18989 #
18990 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18991 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18992 # following values.
18993
18994 _ACEOF
18995
18996 # The following way of writing the cache mishandles newlines in values,
18997 # but we know of no workaround that is simple, portable, and efficient.
18998 # So, we kill variables containing newlines.
18999 # Ultrix sh set writes to stderr and can't be redirected directly,
19000 # and sets the high bit in the cache file unless we assign to the vars.
19001 (
19002 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19003 eval ac_val=\$$ac_var
19004 case $ac_val in #(
19005 *${as_nl}*)
19006 case $ac_var in #(
19007 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19008 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19009 esac
19010 case $ac_var in #(
19011 _ | IFS | as_nl) ;; #(
19012 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19013 *) { eval $ac_var=; unset $ac_var;} ;;
19014 esac ;;
19015 esac
19016 done
19017
19018 (set) 2>&1 |
19019 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19020 *${as_nl}ac_space=\ *)
19021 # `set' does not quote correctly, so add quotes: double-quote
19022 # substitution turns \\\\ into \\, and sed turns \\ into \.
19023 sed -n \
19024 "s/'/'\\\\''/g;
19025 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19026 ;; #(
19027 *)
19028 # `set' quotes correctly as required by POSIX, so do not add quotes.
19029 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19030 ;;
19031 esac |
19032 sort
19033 ) |
19034 sed '
19035 /^ac_cv_env_/b end
19036 t clear
19037 :clear
19038 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19039 t end
19040 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19041 :end' >>confcache
19042 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19043 if test -w "$cache_file"; then
19044 if test "x$cache_file" != "x/dev/null"; then
19045 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19046 $as_echo "$as_me: updating cache $cache_file" >&6;}
19047 if test ! -f "$cache_file" || test -h "$cache_file"; then
19048 cat confcache >"$cache_file"
19049 else
19050 case $cache_file in #(
19051 */* | ?:*)
19052 mv -f confcache "$cache_file"$$ &&
19053 mv -f "$cache_file"$$ "$cache_file" ;; #(
19054 *)
19055 mv -f confcache "$cache_file" ;;
19056 esac
19057 fi
19058 fi
19059 else
19060 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19061 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19062 fi
19063 fi
19064 rm -f confcache
19065
19066 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19067 # Let make expand exec_prefix.
19068 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19069
19070 DEFS=-DHAVE_CONFIG_H
19071
19072 ac_libobjs=
19073 ac_ltlibobjs=
19074 U=
19075 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19076 # 1. Remove the extension, and $U if already installed.
19077 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19078 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19079 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19080 # will be set to the directory where LIBOBJS objects are built.
19081 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19082 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19083 done
19084 LIBOBJS=$ac_libobjs
19085
19086 LTLIBOBJS=$ac_ltlibobjs
19087
19088
19089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19090 $as_echo_n "checking that generated files are newer than configure... " >&6; }
19091 if test -n "$am_sleep_pid"; then
19092 # Hide warnings about reused PIDs.
19093 wait $am_sleep_pid 2>/dev/null
19094 fi
19095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19096 $as_echo "done" >&6; }
19097 if test -n "$EXEEXT"; then
19098 am__EXEEXT_TRUE=
19099 am__EXEEXT_FALSE='#'
19100 else
19101 am__EXEEXT_TRUE='#'
19102 am__EXEEXT_FALSE=
19103 fi
19104
19105 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19106 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
19107 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19108 fi
19109 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19110 as_fn_error $? "conditional \"AMDEP\" was never defined.
19111 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19112 fi
19113 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19114 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19115 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19116 fi
19117 if test -z "${HAVE_XEXTPROTO_71_TRUE}" && test -z "${HAVE_XEXTPROTO_71_FALSE}"; then
19118 as_fn_error $? "conditional \"HAVE_XEXTPROTO_71\" was never defined.
19119 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19120 fi
19121 if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then
19122 as_fn_error $? "conditional \"XSERVER_LIBPCIACCESS\" was never defined.
19123 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19124 fi
19125 if test -z "${XAA_TRUE}" && test -z "${XAA_FALSE}"; then
19126 as_fn_error $? "conditional \"XAA\" was never defined.
19127 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19128 fi
19129
19130 : "${CONFIG_STATUS=./config.status}"
19131 ac_write_fail=0
19132 ac_clean_files_save=$ac_clean_files
19133 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19134 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19135 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19136 as_write_fail=0
19137 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19138 #! $SHELL
19139 # Generated by $as_me.
19140 # Run this file to recreate the current configuration.
19141 # Compiler output produced by configure, useful for debugging
19142 # configure, is in config.log if it exists.
19143
19144 debug=false
19145 ac_cs_recheck=false
19146 ac_cs_silent=false
19147
19148 SHELL=\${CONFIG_SHELL-$SHELL}
19149 export SHELL
19150 _ASEOF
19151 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19152 ## -------------------- ##
19153 ## M4sh Initialization. ##
19154 ## -------------------- ##
19155
19156 # Be more Bourne compatible
19157 DUALCASE=1; export DUALCASE # for MKS sh
19158 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19159 emulate sh
19160 NULLCMD=:
19161 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19162 # is contrary to our usage. Disable this feature.
19163 alias -g '${1+"$@"}'='"$@"'
19164 setopt NO_GLOB_SUBST
19165 else
19166 case `(set -o) 2>/dev/null` in #(
19167 *posix*) :
19168 set -o posix ;; #(
19169 *) :
19170 ;;
19171 esac
19172 fi
19173
19174
19175 as_nl='
19176 '
19177 export as_nl
19178 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19179 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19180 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19181 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19182 # Prefer a ksh shell builtin over an external printf program on Solaris,
19183 # but without wasting forks for bash or zsh.
19184 if test -z "$BASH_VERSION$ZSH_VERSION" \
19185 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19186 as_echo='print -r --'
19187 as_echo_n='print -rn --'
19188 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19189 as_echo='printf %s\n'
19190 as_echo_n='printf %s'
19191 else
19192 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19193 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19194 as_echo_n='/usr/ucb/echo -n'
19195 else
19196 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19197 as_echo_n_body='eval
19198 arg=$1;
19199 case $arg in #(
19200 *"$as_nl"*)
19201 expr "X$arg" : "X\\(.*\\)$as_nl";
19202 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19203 esac;
19204 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19205 '
19206 export as_echo_n_body
19207 as_echo_n='sh -c $as_echo_n_body as_echo'
19208 fi
19209 export as_echo_body
19210 as_echo='sh -c $as_echo_body as_echo'
19211 fi
19212
19213 # The user is always right.
19214 if test "${PATH_SEPARATOR+set}" != set; then
19215 PATH_SEPARATOR=:
19216 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19217 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19218 PATH_SEPARATOR=';'
19219 }
19220 fi
19221
19222
19223 # IFS
19224 # We need space, tab and new line, in precisely that order. Quoting is
19225 # there to prevent editors from complaining about space-tab.
19226 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19227 # splitting by setting IFS to empty value.)
19228 IFS=" "" $as_nl"
19229
19230 # Find who we are. Look in the path if we contain no directory separator.
19231 as_myself=
19232 case $0 in #((
19233 *[\\/]* ) as_myself=$0 ;;
19234 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19235 for as_dir in $PATH
19236 do
19237 IFS=$as_save_IFS
19238 test -z "$as_dir" && as_dir=.
19239 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19240 done
19241 IFS=$as_save_IFS
19242
19243 ;;
19244 esac
19245 # We did not find ourselves, most probably we were run as `sh COMMAND'
19246 # in which case we are not to be found in the path.
19247 if test "x$as_myself" = x; then
19248 as_myself=$0
19249 fi
19250 if test ! -f "$as_myself"; then
19251 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19252 exit 1
19253 fi
19254
19255 # Unset variables that we do not need and which cause bugs (e.g. in
19256 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19257 # suppresses any "Segmentation fault" message there. '((' could
19258 # trigger a bug in pdksh 5.2.14.
19259 for as_var in BASH_ENV ENV MAIL MAILPATH
19260 do eval test x\${$as_var+set} = xset \
19261 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19262 done
19263 PS1='$ '
19264 PS2='> '
19265 PS4='+ '
19266
19267 # NLS nuisances.
19268 LC_ALL=C
19269 export LC_ALL
19270 LANGUAGE=C
19271 export LANGUAGE
19272
19273 # CDPATH.
19274 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19275
19276
19277 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19278 # ----------------------------------------
19279 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19280 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19281 # script with STATUS, using 1 if that was 0.
19282 as_fn_error ()
19283 {
19284 as_status=$1; test $as_status -eq 0 && as_status=1
19285 if test "$4"; then
19286 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19287 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19288 fi
19289 $as_echo "$as_me: error: $2" >&2
19290 as_fn_exit $as_status
19291 } # as_fn_error
19292
19293
19294 # as_fn_set_status STATUS
19295 # -----------------------
19296 # Set $? to STATUS, without forking.
19297 as_fn_set_status ()
19298 {
19299 return $1
19300 } # as_fn_set_status
19301
19302 # as_fn_exit STATUS
19303 # -----------------
19304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19305 as_fn_exit ()
19306 {
19307 set +e
19308 as_fn_set_status $1
19309 exit $1
19310 } # as_fn_exit
19311
19312 # as_fn_unset VAR
19313 # ---------------
19314 # Portably unset VAR.
19315 as_fn_unset ()
19316 {
19317 { eval $1=; unset $1;}
19318 }
19319 as_unset=as_fn_unset
19320 # as_fn_append VAR VALUE
19321 # ----------------------
19322 # Append the text in VALUE to the end of the definition contained in VAR. Take
19323 # advantage of any shell optimizations that allow amortized linear growth over
19324 # repeated appends, instead of the typical quadratic growth present in naive
19325 # implementations.
19326 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19327 eval 'as_fn_append ()
19328 {
19329 eval $1+=\$2
19330 }'
19331 else
19332 as_fn_append ()
19333 {
19334 eval $1=\$$1\$2
19335 }
19336 fi # as_fn_append
19337
19338 # as_fn_arith ARG...
19339 # ------------------
19340 # Perform arithmetic evaluation on the ARGs, and store the result in the
19341 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19342 # must be portable across $(()) and expr.
19343 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19344 eval 'as_fn_arith ()
19345 {
19346 as_val=$(( $* ))
19347 }'
19348 else
19349 as_fn_arith ()
19350 {
19351 as_val=`expr "$@" || test $? -eq 1`
19352 }
19353 fi # as_fn_arith
19354
19355
19356 if expr a : '\(a\)' >/dev/null 2>&1 &&
19357 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19358 as_expr=expr
19359 else
19360 as_expr=false
19361 fi
19362
19363 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19364 as_basename=basename
19365 else
19366 as_basename=false
19367 fi
19368
19369 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19370 as_dirname=dirname
19371 else
19372 as_dirname=false
19373 fi
19374
19375 as_me=`$as_basename -- "$0" ||
19376 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19377 X"$0" : 'X\(//\)$' \| \
19378 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19379 $as_echo X/"$0" |
19380 sed '/^.*\/\([^/][^/]*\)\/*$/{
19381 s//\1/
19382 q
19383 }
19384 /^X\/\(\/\/\)$/{
19385 s//\1/
19386 q
19387 }
19388 /^X\/\(\/\).*/{
19389 s//\1/
19390 q
19391 }
19392 s/.*/./; q'`
19393
19394 # Avoid depending upon Character Ranges.
19395 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19396 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19397 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19398 as_cr_digits='0123456789'
19399 as_cr_alnum=$as_cr_Letters$as_cr_digits
19400
19401 ECHO_C= ECHO_N= ECHO_T=
19402 case `echo -n x` in #(((((
19403 -n*)
19404 case `echo 'xy\c'` in
19405 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19406 xy) ECHO_C='\c';;
19407 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19408 ECHO_T=' ';;
19409 esac;;
19410 *)
19411 ECHO_N='-n';;
19412 esac
19413
19414 rm -f conf$$ conf$$.exe conf$$.file
19415 if test -d conf$$.dir; then
19416 rm -f conf$$.dir/conf$$.file
19417 else
19418 rm -f conf$$.dir
19419 mkdir conf$$.dir 2>/dev/null
19420 fi
19421 if (echo >conf$$.file) 2>/dev/null; then
19422 if ln -s conf$$.file conf$$ 2>/dev/null; then
19423 as_ln_s='ln -s'
19424 # ... but there are two gotchas:
19425 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19426 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19427 # In both cases, we have to default to `cp -pR'.
19428 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19429 as_ln_s='cp -pR'
19430 elif ln conf$$.file conf$$ 2>/dev/null; then
19431 as_ln_s=ln
19432 else
19433 as_ln_s='cp -pR'
19434 fi
19435 else
19436 as_ln_s='cp -pR'
19437 fi
19438 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19439 rmdir conf$$.dir 2>/dev/null
19440
19441
19442 # as_fn_mkdir_p
19443 # -------------
19444 # Create "$as_dir" as a directory, including parents if necessary.
19445 as_fn_mkdir_p ()
19446 {
19447
19448 case $as_dir in #(
19449 -*) as_dir=./$as_dir;;
19450 esac
19451 test -d "$as_dir" || eval $as_mkdir_p || {
19452 as_dirs=
19453 while :; do
19454 case $as_dir in #(
19455 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19456 *) as_qdir=$as_dir;;
19457 esac
19458 as_dirs="'$as_qdir' $as_dirs"
19459 as_dir=`$as_dirname -- "$as_dir" ||
19460 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19461 X"$as_dir" : 'X\(//\)[^/]' \| \
19462 X"$as_dir" : 'X\(//\)$' \| \
19463 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19464 $as_echo X"$as_dir" |
19465 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19466 s//\1/
19467 q
19468 }
19469 /^X\(\/\/\)[^/].*/{
19470 s//\1/
19471 q
19472 }
19473 /^X\(\/\/\)$/{
19474 s//\1/
19475 q
19476 }
19477 /^X\(\/\).*/{
19478 s//\1/
19479 q
19480 }
19481 s/.*/./; q'`
19482 test -d "$as_dir" && break
19483 done
19484 test -z "$as_dirs" || eval "mkdir $as_dirs"
19485 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19486
19487
19488 } # as_fn_mkdir_p
19489 if mkdir -p . 2>/dev/null; then
19490 as_mkdir_p='mkdir -p "$as_dir"'
19491 else
19492 test -d ./-p && rmdir ./-p
19493 as_mkdir_p=false
19494 fi
19495
19496
19497 # as_fn_executable_p FILE
19498 # -----------------------
19499 # Test if FILE is an executable regular file.
19500 as_fn_executable_p ()
19501 {
19502 test -f "$1" && test -x "$1"
19503 } # as_fn_executable_p
19504 as_test_x='test -x'
19505 as_executable_p=as_fn_executable_p
19506
19507 # Sed expression to map a string onto a valid CPP name.
19508 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19509
19510 # Sed expression to map a string onto a valid variable name.
19511 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19512
19513
19514 exec 6>&1
19515 ## ----------------------------------- ##
19516 ## Main body of $CONFIG_STATUS script. ##
19517 ## ----------------------------------- ##
19518 _ASEOF
19519 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19520
19521 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19522 # Save the log message, to keep $0 and so on meaningful, and to
19523 # report actual input values of CONFIG_FILES etc. instead of their
19524 # values after options handling.
19525 ac_log="
19526 This file was extended by xf86-video-s3virge $as_me 1.10.7, which was
19527 generated by GNU Autoconf 2.69. Invocation command line was
19528
19529 CONFIG_FILES = $CONFIG_FILES
19530 CONFIG_HEADERS = $CONFIG_HEADERS
19531 CONFIG_LINKS = $CONFIG_LINKS
19532 CONFIG_COMMANDS = $CONFIG_COMMANDS
19533 $ $0 $@
19534
19535 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19536 "
19537
19538 _ACEOF
19539
19540 case $ac_config_files in *"
19541 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19542 esac
19543
19544 case $ac_config_headers in *"
19545 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19546 esac
19547
19548
19549 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19550 # Files that config.status was made for.
19551 config_files="$ac_config_files"
19552 config_headers="$ac_config_headers"
19553 config_commands="$ac_config_commands"
19554
19555 _ACEOF
19556
19557 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19558 ac_cs_usage="\
19559 \`$as_me' instantiates files and other configuration actions
19560 from templates according to the current configuration. Unless the files
19561 and actions are specified as TAGs, all are instantiated by default.
19562
19563 Usage: $0 [OPTION]... [TAG]...
19564
19565 -h, --help print this help, then exit
19566 -V, --version print version number and configuration settings, then exit
19567 --config print configuration, then exit
19568 -q, --quiet, --silent
19569 do not print progress messages
19570 -d, --debug don't remove temporary files
19571 --recheck update $as_me by reconfiguring in the same conditions
19572 --file=FILE[:TEMPLATE]
19573 instantiate the configuration file FILE
19574 --header=FILE[:TEMPLATE]
19575 instantiate the configuration header FILE
19576
19577 Configuration files:
19578 $config_files
19579
19580 Configuration headers:
19581 $config_headers
19582
19583 Configuration commands:
19584 $config_commands
19585
19586 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
19587
19588 _ACEOF
19589 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19590 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19591 ac_cs_version="\\
19592 xf86-video-s3virge config.status 1.10.7
19593 configured by $0, generated by GNU Autoconf 2.69,
19594 with options \\"\$ac_cs_config\\"
19595
19596 Copyright (C) 2012 Free Software Foundation, Inc.
19597 This config.status script is free software; the Free Software Foundation
19598 gives unlimited permission to copy, distribute and modify it."
19599
19600 ac_pwd='$ac_pwd'
19601 srcdir='$srcdir'
19602 INSTALL='$INSTALL'
19603 MKDIR_P='$MKDIR_P'
19604 AWK='$AWK'
19605 test -n "\$AWK" || AWK=awk
19606 _ACEOF
19607
19608 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19609 # The default lists apply if the user does not specify any file.
19610 ac_need_defaults=:
19611 while test $# != 0
19612 do
19613 case $1 in
19614 --*=?*)
19615 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19616 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19617 ac_shift=:
19618 ;;
19619 --*=)
19620 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19621 ac_optarg=
19622 ac_shift=:
19623 ;;
19624 *)
19625 ac_option=$1
19626 ac_optarg=$2
19627 ac_shift=shift
19628 ;;
19629 esac
19630
19631 case $ac_option in
19632 # Handling of the options.
19633 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19634 ac_cs_recheck=: ;;
19635 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19636 $as_echo "$ac_cs_version"; exit ;;
19637 --config | --confi | --conf | --con | --co | --c )
19638 $as_echo "$ac_cs_config"; exit ;;
19639 --debug | --debu | --deb | --de | --d | -d )
19640 debug=: ;;
19641 --file | --fil | --fi | --f )
19642 $ac_shift
19643 case $ac_optarg in
19644 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19645 '') as_fn_error $? "missing file argument" ;;
19646 esac
19647 as_fn_append CONFIG_FILES " '$ac_optarg'"
19648 ac_need_defaults=false;;
19649 --header | --heade | --head | --hea )
19650 $ac_shift
19651 case $ac_optarg in
19652 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19653 esac
19654 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19655 ac_need_defaults=false;;
19656 --he | --h)
19657 # Conflict between --help and --header
19658 as_fn_error $? "ambiguous option: \`$1'
19659 Try \`$0 --help' for more information.";;
19660 --help | --hel | -h )
19661 $as_echo "$ac_cs_usage"; exit ;;
19662 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19663 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19664 ac_cs_silent=: ;;
19665
19666 # This is an error.
19667 -*) as_fn_error $? "unrecognized option: \`$1'
19668 Try \`$0 --help' for more information." ;;
19669
19670 *) as_fn_append ac_config_targets " $1"
19671 ac_need_defaults=false ;;
19672
19673 esac
19674 shift
19675 done
19676
19677 ac_configure_extra_args=
19678
19679 if $ac_cs_silent; then
19680 exec 6>/dev/null
19681 ac_configure_extra_args="$ac_configure_extra_args --silent"
19682 fi
19683
19684 _ACEOF
19685 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19686 if \$ac_cs_recheck; then
19687 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19688 shift
19689 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19690 CONFIG_SHELL='$SHELL'
19691 export CONFIG_SHELL
19692 exec "\$@"
19693 fi
19694
19695 _ACEOF
19696 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19697 exec 5>>config.log
19698 {
19699 echo
19700 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19701 ## Running $as_me. ##
19702 _ASBOX
19703 $as_echo "$ac_log"
19704 } >&5
19705
19706 _ACEOF
19707 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19708 #
19709 # INIT-COMMANDS
19710 #
19711 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19712
19713
19714 # The HP-UX ksh and POSIX shell print the target directory to stdout
19715 # if CDPATH is set.
19716 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19717
19718 sed_quote_subst='$sed_quote_subst'
19719 double_quote_subst='$double_quote_subst'
19720 delay_variable_subst='$delay_variable_subst'
19721 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19722 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19723 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19724 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19725 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19726 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19727 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
19728 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19729 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19730 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19731 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19732 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19733 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19734 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19735 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19736 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19737 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19738 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19739 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19740 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19741 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19742 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19743 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19744 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19745 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19746 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19747 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19748 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19749 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19750 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19751 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19752 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19753 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19754 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19755 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19756 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19757 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19758 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19759 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19760 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19761 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19762 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19763 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19764 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19765 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19766 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19767 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19768 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19769 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19770 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19771 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19772 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19773 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19774 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19775 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19776 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19777 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
19778 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19779 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"`'
19780 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
19781 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19782 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19783 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
19784 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19785 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19786 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19787 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19788 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19789 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19790 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19791 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19792 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19793 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19794 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19795 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19796 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19797 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19798 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19799 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19800 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19801 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19802 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19803 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19804 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19805 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19806 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19807 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19808 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19809 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19810 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19811 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19812 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19813 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19814 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19815 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19816 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19817 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19818 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19819 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19820 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19821 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19822 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19823 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19824 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19825 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19826 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19827 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19828 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19829 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19830 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19831 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19832 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19833 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19834 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19835 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19836 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19837 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19838 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19839 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19840 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19841 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19842 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19843 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19844 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19845 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19846 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19847 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19848 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
19849 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
19850 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19851 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19852 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19853 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19854 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19855 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19856
19857 LTCC='$LTCC'
19858 LTCFLAGS='$LTCFLAGS'
19859 compiler='$compiler_DEFAULT'
19860
19861 # A function that is used when there is no print builtin or printf.
19862 func_fallback_echo ()
19863 {
19864 eval 'cat <<_LTECHO_EOF
19865 \$1
19866 _LTECHO_EOF'
19867 }
19868
19869 # Quote evaled strings.
19870 for var in SHELL \
19871 ECHO \
19872 PATH_SEPARATOR \
19873 SED \
19874 GREP \
19875 EGREP \
19876 FGREP \
19877 LD \
19878 NM \
19879 LN_S \
19880 lt_SP2NL \
19881 lt_NL2SP \
19882 reload_flag \
19883 OBJDUMP \
19884 deplibs_check_method \
19885 file_magic_cmd \
19886 file_magic_glob \
19887 want_nocaseglob \
19888 DLLTOOL \
19889 sharedlib_from_linklib_cmd \
19890 AR \
19891 AR_FLAGS \
19892 archiver_list_spec \
19893 STRIP \
19894 RANLIB \
19895 CC \
19896 CFLAGS \
19897 compiler \
19898 lt_cv_sys_global_symbol_pipe \
19899 lt_cv_sys_global_symbol_to_cdecl \
19900 lt_cv_sys_global_symbol_to_import \
19901 lt_cv_sys_global_symbol_to_c_name_address \
19902 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19903 lt_cv_nm_interface \
19904 nm_file_list_spec \
19905 lt_cv_truncate_bin \
19906 lt_prog_compiler_no_builtin_flag \
19907 lt_prog_compiler_pic \
19908 lt_prog_compiler_wl \
19909 lt_prog_compiler_static \
19910 lt_cv_prog_compiler_c_o \
19911 need_locks \
19912 MANIFEST_TOOL \
19913 DSYMUTIL \
19914 NMEDIT \
19915 LIPO \
19916 OTOOL \
19917 OTOOL64 \
19918 shrext_cmds \
19919 export_dynamic_flag_spec \
19920 whole_archive_flag_spec \
19921 compiler_needs_object \
19922 with_gnu_ld \
19923 allow_undefined_flag \
19924 no_undefined_flag \
19925 hardcode_libdir_flag_spec \
19926 hardcode_libdir_separator \
19927 exclude_expsyms \
19928 include_expsyms \
19929 file_list_spec \
19930 variables_saved_for_relink \
19931 libname_spec \
19932 library_names_spec \
19933 soname_spec \
19934 install_override_mode \
19935 finish_eval \
19936 old_striplib \
19937 striplib; do
19938 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19939 *[\\\\\\\`\\"\\\$]*)
19940 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19941 ;;
19942 *)
19943 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19944 ;;
19945 esac
19946 done
19947
19948 # Double-quote double-evaled strings.
19949 for var in reload_cmds \
19950 old_postinstall_cmds \
19951 old_postuninstall_cmds \
19952 old_archive_cmds \
19953 extract_expsyms_cmds \
19954 old_archive_from_new_cmds \
19955 old_archive_from_expsyms_cmds \
19956 archive_cmds \
19957 archive_expsym_cmds \
19958 module_cmds \
19959 module_expsym_cmds \
19960 export_symbols_cmds \
19961 prelink_cmds \
19962 postlink_cmds \
19963 postinstall_cmds \
19964 postuninstall_cmds \
19965 finish_cmds \
19966 sys_lib_search_path_spec \
19967 configure_time_dlsearch_path \
19968 configure_time_lt_sys_library_path; do
19969 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19970 *[\\\\\\\`\\"\\\$]*)
19971 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19972 ;;
19973 *)
19974 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19975 ;;
19976 esac
19977 done
19978
19979 ac_aux_dir='$ac_aux_dir'
19980
19981 # See if we are running on zsh, and set the options that allow our
19982 # commands through without removal of \ escapes INIT.
19983 if test -n "\${ZSH_VERSION+set}"; then
19984 setopt NO_GLOB_SUBST
19985 fi
19986
19987
19988 PACKAGE='$PACKAGE'
19989 VERSION='$VERSION'
19990 RM='$RM'
19991 ofile='$ofile'
19992
19993
19994
19995
19996 _ACEOF
19997
19998 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19999
20000 # Handling of arguments.
20001 for ac_config_target in $ac_config_targets
20002 do
20003 case $ac_config_target in
20004 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20005 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20006 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20007 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20008 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20009 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
20010
20011 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20012 esac
20013 done
20014
20015
20016 # If the user did not use the arguments to specify the items to instantiate,
20017 # then the envvar interface is used. Set only those that are not.
20018 # We use the long form for the default assignment because of an extremely
20019 # bizarre bug on SunOS 4.1.3.
20020 if $ac_need_defaults; then
20021 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20022 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20023 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20024 fi
20025
20026 # Have a temporary directory for convenience. Make it in the build tree
20027 # simply because there is no reason against having it here, and in addition,
20028 # creating and moving files from /tmp can sometimes cause problems.
20029 # Hook for its removal unless debugging.
20030 # Note that there is a small window in which the directory will not be cleaned:
20031 # after its creation but before its name has been assigned to `$tmp'.
20032 $debug ||
20033 {
20034 tmp= ac_tmp=
20035 trap 'exit_status=$?
20036 : "${ac_tmp:=$tmp}"
20037 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20038 ' 0
20039 trap 'as_fn_exit 1' 1 2 13 15
20040 }
20041 # Create a (secure) tmp directory for tmp files.
20042
20043 {
20044 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20045 test -d "$tmp"
20046 } ||
20047 {
20048 tmp=./conf$$-$RANDOM
20049 (umask 077 && mkdir "$tmp")
20050 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20051 ac_tmp=$tmp
20052
20053 # Set up the scripts for CONFIG_FILES section.
20054 # No need to generate them if there are no CONFIG_FILES.
20055 # This happens for instance with `./config.status config.h'.
20056 if test -n "$CONFIG_FILES"; then
20057
20058
20059 ac_cr=`echo X | tr X '\015'`
20060 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20061 # But we know of no other shell where ac_cr would be empty at this
20062 # point, so we can use a bashism as a fallback.
20063 if test "x$ac_cr" = x; then
20064 eval ac_cr=\$\'\\r\'
20065 fi
20066 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20067 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20068 ac_cs_awk_cr='\\r'
20069 else
20070 ac_cs_awk_cr=$ac_cr
20071 fi
20072
20073 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20074 _ACEOF
20075
20076
20077 {
20078 echo "cat >conf$$subs.awk <<_ACEOF" &&
20079 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20080 echo "_ACEOF"
20081 } >conf$$subs.sh ||
20082 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20083 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20084 ac_delim='%!_!# '
20085 for ac_last_try in false false false false false :; do
20086 . ./conf$$subs.sh ||
20087 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20088
20089 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20090 if test $ac_delim_n = $ac_delim_num; then
20091 break
20092 elif $ac_last_try; then
20093 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20094 else
20095 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20096 fi
20097 done
20098 rm -f conf$$subs.sh
20099
20100 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20101 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20102 _ACEOF
20103 sed -n '
20104 h
20105 s/^/S["/; s/!.*/"]=/
20106 p
20107 g
20108 s/^[^!]*!//
20109 :repl
20110 t repl
20111 s/'"$ac_delim"'$//
20112 t delim
20113 :nl
20114 h
20115 s/\(.\{148\}\)..*/\1/
20116 t more1
20117 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20118 p
20119 n
20120 b repl
20121 :more1
20122 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20123 p
20124 g
20125 s/.\{148\}//
20126 t nl
20127 :delim
20128 h
20129 s/\(.\{148\}\)..*/\1/
20130 t more2
20131 s/["\\]/\\&/g; s/^/"/; s/$/"/
20132 p
20133 b
20134 :more2
20135 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20136 p
20137 g
20138 s/.\{148\}//
20139 t delim
20140 ' <conf$$subs.awk | sed '
20141 /^[^""]/{
20142 N
20143 s/\n//
20144 }
20145 ' >>$CONFIG_STATUS || ac_write_fail=1
20146 rm -f conf$$subs.awk
20147 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20148 _ACAWK
20149 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20150 for (key in S) S_is_set[key] = 1
20151 FS = ""
20152
20153 }
20154 {
20155 line = $ 0
20156 nfields = split(line, field, "@")
20157 substed = 0
20158 len = length(field[1])
20159 for (i = 2; i < nfields; i++) {
20160 key = field[i]
20161 keylen = length(key)
20162 if (S_is_set[key]) {
20163 value = S[key]
20164 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20165 len += length(value) + length(field[++i])
20166 substed = 1
20167 } else
20168 len += 1 + keylen
20169 }
20170
20171 print line
20172 }
20173
20174 _ACAWK
20175 _ACEOF
20176 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20177 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20178 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20179 else
20180 cat
20181 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20182 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20183 _ACEOF
20184
20185 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20186 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20187 # trailing colons and then remove the whole line if VPATH becomes empty
20188 # (actually we leave an empty line to preserve line numbers).
20189 if test "x$srcdir" = x.; then
20190 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20191 h
20192 s///
20193 s/^/:/
20194 s/[ ]*$/:/
20195 s/:\$(srcdir):/:/g
20196 s/:\${srcdir}:/:/g
20197 s/:@srcdir@:/:/g
20198 s/^:*//
20199 s/:*$//
20200 x
20201 s/\(=[ ]*\).*/\1/
20202 G
20203 s/\n//
20204 s/^[^=]*=[ ]*$//
20205 }'
20206 fi
20207
20208 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20209 fi # test -n "$CONFIG_FILES"
20210
20211 # Set up the scripts for CONFIG_HEADERS section.
20212 # No need to generate them if there are no CONFIG_HEADERS.
20213 # This happens for instance with `./config.status Makefile'.
20214 if test -n "$CONFIG_HEADERS"; then
20215 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20216 BEGIN {
20217 _ACEOF
20218
20219 # Transform confdefs.h into an awk script `defines.awk', embedded as
20220 # here-document in config.status, that substitutes the proper values into
20221 # config.h.in to produce config.h.
20222
20223 # Create a delimiter string that does not exist in confdefs.h, to ease
20224 # handling of long lines.
20225 ac_delim='%!_!# '
20226 for ac_last_try in false false :; do
20227 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20228 if test -z "$ac_tt"; then
20229 break
20230 elif $ac_last_try; then
20231 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20232 else
20233 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20234 fi
20235 done
20236
20237 # For the awk script, D is an array of macro values keyed by name,
20238 # likewise P contains macro parameters if any. Preserve backslash
20239 # newline sequences.
20240
20241 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20242 sed -n '
20243 s/.\{148\}/&'"$ac_delim"'/g
20244 t rset
20245 :rset
20246 s/^[ ]*#[ ]*define[ ][ ]*/ /
20247 t def
20248 d
20249 :def
20250 s/\\$//
20251 t bsnl
20252 s/["\\]/\\&/g
20253 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20254 D["\1"]=" \3"/p
20255 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20256 d
20257 :bsnl
20258 s/["\\]/\\&/g
20259 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20260 D["\1"]=" \3\\\\\\n"\\/p
20261 t cont
20262 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20263 t cont
20264 d
20265 :cont
20266 n
20267 s/.\{148\}/&'"$ac_delim"'/g
20268 t clear
20269 :clear
20270 s/\\$//
20271 t bsnlc
20272 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20273 d
20274 :bsnlc
20275 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20276 b cont
20277 ' <confdefs.h | sed '
20278 s/'"$ac_delim"'/"\\\
20279 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20280
20281 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20282 for (key in D) D_is_set[key] = 1
20283 FS = ""
20284 }
20285 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20286 line = \$ 0
20287 split(line, arg, " ")
20288 if (arg[1] == "#") {
20289 defundef = arg[2]
20290 mac1 = arg[3]
20291 } else {
20292 defundef = substr(arg[1], 2)
20293 mac1 = arg[2]
20294 }
20295 split(mac1, mac2, "(") #)
20296 macro = mac2[1]
20297 prefix = substr(line, 1, index(line, defundef) - 1)
20298 if (D_is_set[macro]) {
20299 # Preserve the white space surrounding the "#".
20300 print prefix "define", macro P[macro] D[macro]
20301 next
20302 } else {
20303 # Replace #undef with comments. This is necessary, for example,
20304 # in the case of _POSIX_SOURCE, which is predefined and required
20305 # on some systems where configure will not decide to define it.
20306 if (defundef == "undef") {
20307 print "/*", prefix defundef, macro, "*/"
20308 next
20309 }
20310 }
20311 }
20312 { print }
20313 _ACAWK
20314 _ACEOF
20315 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20316 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20317 fi # test -n "$CONFIG_HEADERS"
20318
20319
20320 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20321 shift
20322 for ac_tag
20323 do
20324 case $ac_tag in
20325 :[FHLC]) ac_mode=$ac_tag; continue;;
20326 esac
20327 case $ac_mode$ac_tag in
20328 :[FHL]*:*);;
20329 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20330 :[FH]-) ac_tag=-:-;;
20331 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20332 esac
20333 ac_save_IFS=$IFS
20334 IFS=:
20335 set x $ac_tag
20336 IFS=$ac_save_IFS
20337 shift
20338 ac_file=$1
20339 shift
20340
20341 case $ac_mode in
20342 :L) ac_source=$1;;
20343 :[FH])
20344 ac_file_inputs=
20345 for ac_f
20346 do
20347 case $ac_f in
20348 -) ac_f="$ac_tmp/stdin";;
20349 *) # Look for the file first in the build tree, then in the source tree
20350 # (if the path is not absolute). The absolute path cannot be DOS-style,
20351 # because $ac_f cannot contain `:'.
20352 test -f "$ac_f" ||
20353 case $ac_f in
20354 [\\/$]*) false;;
20355 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20356 esac ||
20357 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20358 esac
20359 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20360 as_fn_append ac_file_inputs " '$ac_f'"
20361 done
20362
20363 # Let's still pretend it is `configure' which instantiates (i.e., don't
20364 # use $as_me), people would be surprised to read:
20365 # /* config.h. Generated by config.status. */
20366 configure_input='Generated from '`
20367 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20368 `' by configure.'
20369 if test x"$ac_file" != x-; then
20370 configure_input="$ac_file. $configure_input"
20371 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20372 $as_echo "$as_me: creating $ac_file" >&6;}
20373 fi
20374 # Neutralize special characters interpreted by sed in replacement strings.
20375 case $configure_input in #(
20376 *\&* | *\|* | *\\* )
20377 ac_sed_conf_input=`$as_echo "$configure_input" |
20378 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20379 *) ac_sed_conf_input=$configure_input;;
20380 esac
20381
20382 case $ac_tag in
20383 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20384 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20385 esac
20386 ;;
20387 esac
20388
20389 ac_dir=`$as_dirname -- "$ac_file" ||
20390 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20391 X"$ac_file" : 'X\(//\)[^/]' \| \
20392 X"$ac_file" : 'X\(//\)$' \| \
20393 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20394 $as_echo X"$ac_file" |
20395 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20396 s//\1/
20397 q
20398 }
20399 /^X\(\/\/\)[^/].*/{
20400 s//\1/
20401 q
20402 }
20403 /^X\(\/\/\)$/{
20404 s//\1/
20405 q
20406 }
20407 /^X\(\/\).*/{
20408 s//\1/
20409 q
20410 }
20411 s/.*/./; q'`
20412 as_dir="$ac_dir"; as_fn_mkdir_p
20413 ac_builddir=.
20414
20415 case "$ac_dir" in
20416 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20417 *)
20418 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20419 # A ".." for each directory in $ac_dir_suffix.
20420 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20421 case $ac_top_builddir_sub in
20422 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20423 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20424 esac ;;
20425 esac
20426 ac_abs_top_builddir=$ac_pwd
20427 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20428 # for backward compatibility:
20429 ac_top_builddir=$ac_top_build_prefix
20430
20431 case $srcdir in
20432 .) # We are building in place.
20433 ac_srcdir=.
20434 ac_top_srcdir=$ac_top_builddir_sub
20435 ac_abs_top_srcdir=$ac_pwd ;;
20436 [\\/]* | ?:[\\/]* ) # Absolute name.
20437 ac_srcdir=$srcdir$ac_dir_suffix;
20438 ac_top_srcdir=$srcdir
20439 ac_abs_top_srcdir=$srcdir ;;
20440 *) # Relative name.
20441 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20442 ac_top_srcdir=$ac_top_build_prefix$srcdir
20443 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20444 esac
20445 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20446
20447
20448 case $ac_mode in
20449 :F)
20450 #
20451 # CONFIG_FILE
20452 #
20453
20454 case $INSTALL in
20455 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20456 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20457 esac
20458 ac_MKDIR_P=$MKDIR_P
20459 case $MKDIR_P in
20460 [\\/$]* | ?:[\\/]* ) ;;
20461 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20462 esac
20463 _ACEOF
20464
20465 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20466 # If the template does not know about datarootdir, expand it.
20467 # FIXME: This hack should be removed a few years after 2.60.
20468 ac_datarootdir_hack=; ac_datarootdir_seen=
20469 ac_sed_dataroot='
20470 /datarootdir/ {
20471 p
20472 q
20473 }
20474 /@datadir@/p
20475 /@docdir@/p
20476 /@infodir@/p
20477 /@localedir@/p
20478 /@mandir@/p'
20479 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20480 *datarootdir*) ac_datarootdir_seen=yes;;
20481 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20483 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20484 _ACEOF
20485 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20486 ac_datarootdir_hack='
20487 s&@datadir@&$datadir&g
20488 s&@docdir@&$docdir&g
20489 s&@infodir@&$infodir&g
20490 s&@localedir@&$localedir&g
20491 s&@mandir@&$mandir&g
20492 s&\\\${datarootdir}&$datarootdir&g' ;;
20493 esac
20494 _ACEOF
20495
20496 # Neutralize VPATH when `$srcdir' = `.'.
20497 # Shell code in configure.ac might set extrasub.
20498 # FIXME: do we really want to maintain this feature?
20499 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20500 ac_sed_extra="$ac_vpsub
20501 $extrasub
20502 _ACEOF
20503 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20504 :t
20505 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20506 s|@configure_input@|$ac_sed_conf_input|;t t
20507 s&@top_builddir@&$ac_top_builddir_sub&;t t
20508 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20509 s&@srcdir@&$ac_srcdir&;t t
20510 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20511 s&@top_srcdir@&$ac_top_srcdir&;t t
20512 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20513 s&@builddir@&$ac_builddir&;t t
20514 s&@abs_builddir@&$ac_abs_builddir&;t t
20515 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20516 s&@INSTALL@&$ac_INSTALL&;t t
20517 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20518 $ac_datarootdir_hack
20519 "
20520 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20521 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20522
20523 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20524 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20525 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20526 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20527 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20528 which seems to be undefined. Please make sure it is defined" >&5
20529 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20530 which seems to be undefined. Please make sure it is defined" >&2;}
20531
20532 rm -f "$ac_tmp/stdin"
20533 case $ac_file in
20534 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20535 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20536 esac \
20537 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20538 ;;
20539 :H)
20540 #
20541 # CONFIG_HEADER
20542 #
20543 if test x"$ac_file" != x-; then
20544 {
20545 $as_echo "/* $configure_input */" \
20546 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20547 } >"$ac_tmp/config.h" \
20548 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20549 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20550 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20551 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20552 else
20553 rm -f "$ac_file"
20554 mv "$ac_tmp/config.h" "$ac_file" \
20555 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20556 fi
20557 else
20558 $as_echo "/* $configure_input */" \
20559 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20560 || as_fn_error $? "could not create -" "$LINENO" 5
20561 fi
20562 # Compute "$ac_file"'s index in $config_headers.
20563 _am_arg="$ac_file"
20564 _am_stamp_count=1
20565 for _am_header in $config_headers :; do
20566 case $_am_header in
20567 $_am_arg | $_am_arg:* )
20568 break ;;
20569 * )
20570 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20571 esac
20572 done
20573 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20574 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20575 X"$_am_arg" : 'X\(//\)[^/]' \| \
20576 X"$_am_arg" : 'X\(//\)$' \| \
20577 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20578 $as_echo X"$_am_arg" |
20579 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20580 s//\1/
20581 q
20582 }
20583 /^X\(\/\/\)[^/].*/{
20584 s//\1/
20585 q
20586 }
20587 /^X\(\/\/\)$/{
20588 s//\1/
20589 q
20590 }
20591 /^X\(\/\).*/{
20592 s//\1/
20593 q
20594 }
20595 s/.*/./; q'`/stamp-h$_am_stamp_count
20596 ;;
20597
20598 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20599 $as_echo "$as_me: executing $ac_file commands" >&6;}
20600 ;;
20601 esac
20602
20603
20604 case $ac_file$ac_mode in
20605 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20606 # Older Autoconf quotes --file arguments for eval, but not when files
20607 # are listed without --file. Let's play safe and only enable the eval
20608 # if we detect the quoting.
20609 case $CONFIG_FILES in
20610 *\'*) eval set x "$CONFIG_FILES" ;;
20611 *) set x $CONFIG_FILES ;;
20612 esac
20613 shift
20614 for mf
20615 do
20616 # Strip MF so we end up with the name of the file.
20617 mf=`echo "$mf" | sed -e 's/:.*$//'`
20618 # Check whether this is an Automake generated Makefile or not.
20619 # We used to match only the files named 'Makefile.in', but
20620 # some people rename them; so instead we look at the file content.
20621 # Grep'ing the first line is not enough: some people post-process
20622 # each Makefile.in and add a new line on top of each file to say so.
20623 # Grep'ing the whole file is not good either: AIX grep has a line
20624 # limit of 2048, but all sed's we know have understand at least 4000.
20625 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20626 dirpart=`$as_dirname -- "$mf" ||
20627 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20628 X"$mf" : 'X\(//\)[^/]' \| \
20629 X"$mf" : 'X\(//\)$' \| \
20630 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20631 $as_echo X"$mf" |
20632 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20633 s//\1/
20634 q
20635 }
20636 /^X\(\/\/\)[^/].*/{
20637 s//\1/
20638 q
20639 }
20640 /^X\(\/\/\)$/{
20641 s//\1/
20642 q
20643 }
20644 /^X\(\/\).*/{
20645 s//\1/
20646 q
20647 }
20648 s/.*/./; q'`
20649 else
20650 continue
20651 fi
20652 # Extract the definition of DEPDIR, am__include, and am__quote
20653 # from the Makefile without running 'make'.
20654 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20655 test -z "$DEPDIR" && continue
20656 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20657 test -z "$am__include" && continue
20658 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20659 # Find all dependency output files, they are included files with
20660 # $(DEPDIR) in their names. We invoke sed twice because it is the
20661 # simplest approach to changing $(DEPDIR) to its actual value in the
20662 # expansion.
20663 for file in `sed -n "
20664 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20665 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
20666 # Make sure the directory exists.
20667 test -f "$dirpart/$file" && continue
20668 fdir=`$as_dirname -- "$file" ||
20669 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20670 X"$file" : 'X\(//\)[^/]' \| \
20671 X"$file" : 'X\(//\)$' \| \
20672 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20673 $as_echo X"$file" |
20674 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20675 s//\1/
20676 q
20677 }
20678 /^X\(\/\/\)[^/].*/{
20679 s//\1/
20680 q
20681 }
20682 /^X\(\/\/\)$/{
20683 s//\1/
20684 q
20685 }
20686 /^X\(\/\).*/{
20687 s//\1/
20688 q
20689 }
20690 s/.*/./; q'`
20691 as_dir=$dirpart/$fdir; as_fn_mkdir_p
20692 # echo "creating $dirpart/$file"
20693 echo '# dummy' > "$dirpart/$file"
20694 done
20695 done
20696 }
20697 ;;
20698 "libtool":C)
20699
20700 # See if we are running on zsh, and set the options that allow our
20701 # commands through without removal of \ escapes.
20702 if test -n "${ZSH_VERSION+set}"; then
20703 setopt NO_GLOB_SUBST
20704 fi
20705
20706 cfgfile=${ofile}T
20707 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20708 $RM "$cfgfile"
20709
20710 cat <<_LT_EOF >> "$cfgfile"
20711 #! $SHELL
20712 # Generated automatically by $as_me ($PACKAGE) $VERSION
20713 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20714 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20715
20716 # Provide generalized library-building support services.
20717 # Written by Gordon Matzigkeit, 1996
20718
20719 # Copyright (C) 2014 Free Software Foundation, Inc.
20720 # This is free software; see the source for copying conditions. There is NO
20721 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20722
20723 # GNU Libtool is free software; you can redistribute it and/or modify
20724 # it under the terms of the GNU General Public License as published by
20725 # the Free Software Foundation; either version 2 of of the License, or
20726 # (at your option) any later version.
20727 #
20728 # As a special exception to the GNU General Public License, if you
20729 # distribute this file as part of a program or library that is built
20730 # using GNU Libtool, you may include this file under the same
20731 # distribution terms that you use for the rest of that program.
20732 #
20733 # GNU Libtool is distributed in the hope that it will be useful, but
20734 # WITHOUT ANY WARRANTY; without even the implied warranty of
20735 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20736 # GNU General Public License for more details.
20737 #
20738 # You should have received a copy of the GNU General Public License
20739 # along with this program. If not, see <http://www.gnu.org/licenses/>.
20740
20741
20742 # The names of the tagged configurations supported by this script.
20743 available_tags=''
20744
20745 # Configured defaults for sys_lib_dlsearch_path munging.
20746 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
20747
20748 # ### BEGIN LIBTOOL CONFIG
20749
20750 # Whether or not to build static libraries.
20751 build_old_libs=$enable_static
20752
20753 # Which release of libtool.m4 was used?
20754 macro_version=$macro_version
20755 macro_revision=$macro_revision
20756
20757 # Whether or not to build shared libraries.
20758 build_libtool_libs=$enable_shared
20759
20760 # What type of objects to build.
20761 pic_mode=$pic_mode
20762
20763 # Whether or not to optimize for fast installation.
20764 fast_install=$enable_fast_install
20765
20766 # Shared archive member basename,for filename based shared library versioning on AIX.
20767 shared_archive_member_spec=$shared_archive_member_spec
20768
20769 # Shell to use when invoking shell scripts.
20770 SHELL=$lt_SHELL
20771
20772 # An echo program that protects backslashes.
20773 ECHO=$lt_ECHO
20774
20775 # The PATH separator for the build system.
20776 PATH_SEPARATOR=$lt_PATH_SEPARATOR
20777
20778 # The host system.
20779 host_alias=$host_alias
20780 host=$host
20781 host_os=$host_os
20782
20783 # The build system.
20784 build_alias=$build_alias
20785 build=$build
20786 build_os=$build_os
20787
20788 # A sed program that does not truncate output.
20789 SED=$lt_SED
20790
20791 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20792 Xsed="\$SED -e 1s/^X//"
20793
20794 # A grep program that handles long lines.
20795 GREP=$lt_GREP
20796
20797 # An ERE matcher.
20798 EGREP=$lt_EGREP
20799
20800 # A literal string matcher.
20801 FGREP=$lt_FGREP
20802
20803 # A BSD- or MS-compatible name lister.
20804 NM=$lt_NM
20805
20806 # Whether we need soft or hard links.
20807 LN_S=$lt_LN_S
20808
20809 # What is the maximum length of a command?
20810 max_cmd_len=$max_cmd_len
20811
20812 # Object file suffix (normally "o").
20813 objext=$ac_objext
20814
20815 # Executable file suffix (normally "").
20816 exeext=$exeext
20817
20818 # whether the shell understands "unset".
20819 lt_unset=$lt_unset
20820
20821 # turn spaces into newlines.
20822 SP2NL=$lt_lt_SP2NL
20823
20824 # turn newlines into spaces.
20825 NL2SP=$lt_lt_NL2SP
20826
20827 # convert \$build file names to \$host format.
20828 to_host_file_cmd=$lt_cv_to_host_file_cmd
20829
20830 # convert \$build files to toolchain format.
20831 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20832
20833 # An object symbol dumper.
20834 OBJDUMP=$lt_OBJDUMP
20835
20836 # Method to check whether dependent libraries are shared objects.
20837 deplibs_check_method=$lt_deplibs_check_method
20838
20839 # Command to use when deplibs_check_method = "file_magic".
20840 file_magic_cmd=$lt_file_magic_cmd
20841
20842 # How to find potential files when deplibs_check_method = "file_magic".
20843 file_magic_glob=$lt_file_magic_glob
20844
20845 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20846 want_nocaseglob=$lt_want_nocaseglob
20847
20848 # DLL creation program.
20849 DLLTOOL=$lt_DLLTOOL
20850
20851 # Command to associate shared and link libraries.
20852 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20853
20854 # The archiver.
20855 AR=$lt_AR
20856
20857 # Flags to create an archive.
20858 AR_FLAGS=$lt_AR_FLAGS
20859
20860 # How to feed a file listing to the archiver.
20861 archiver_list_spec=$lt_archiver_list_spec
20862
20863 # A symbol stripping program.
20864 STRIP=$lt_STRIP
20865
20866 # Commands used to install an old-style archive.
20867 RANLIB=$lt_RANLIB
20868 old_postinstall_cmds=$lt_old_postinstall_cmds
20869 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20870
20871 # Whether to use a lock for old archive extraction.
20872 lock_old_archive_extraction=$lock_old_archive_extraction
20873
20874 # A C compiler.
20875 LTCC=$lt_CC
20876
20877 # LTCC compiler flags.
20878 LTCFLAGS=$lt_CFLAGS
20879
20880 # Take the output of nm and produce a listing of raw symbols and C names.
20881 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20882
20883 # Transform the output of nm in a proper C declaration.
20884 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20885
20886 # Transform the output of nm into a list of symbols to manually relocate.
20887 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
20888
20889 # Transform the output of nm in a C name address pair.
20890 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20891
20892 # Transform the output of nm in a C name address pair when lib prefix is needed.
20893 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20894
20895 # The name lister interface.
20896 nm_interface=$lt_lt_cv_nm_interface
20897
20898 # Specify filename containing input files for \$NM.
20899 nm_file_list_spec=$lt_nm_file_list_spec
20900
20901 # The root where to search for dependent libraries,and where our libraries should be installed.
20902 lt_sysroot=$lt_sysroot
20903
20904 # Command to truncate a binary pipe.
20905 lt_truncate_bin=$lt_lt_cv_truncate_bin
20906
20907 # The name of the directory that contains temporary libtool files.
20908 objdir=$objdir
20909
20910 # Used to examine libraries when file_magic_cmd begins with "file".
20911 MAGIC_CMD=$MAGIC_CMD
20912
20913 # Must we lock files when doing compilation?
20914 need_locks=$lt_need_locks
20915
20916 # Manifest tool.
20917 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20918
20919 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20920 DSYMUTIL=$lt_DSYMUTIL
20921
20922 # Tool to change global to local symbols on Mac OS X.
20923 NMEDIT=$lt_NMEDIT
20924
20925 # Tool to manipulate fat objects and archives on Mac OS X.
20926 LIPO=$lt_LIPO
20927
20928 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20929 OTOOL=$lt_OTOOL
20930
20931 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20932 OTOOL64=$lt_OTOOL64
20933
20934 # Old archive suffix (normally "a").
20935 libext=$libext
20936
20937 # Shared library suffix (normally ".so").
20938 shrext_cmds=$lt_shrext_cmds
20939
20940 # The commands to extract the exported symbol list from a shared archive.
20941 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20942
20943 # Variables whose values should be saved in libtool wrapper scripts and
20944 # restored at link time.
20945 variables_saved_for_relink=$lt_variables_saved_for_relink
20946
20947 # Do we need the "lib" prefix for modules?
20948 need_lib_prefix=$need_lib_prefix
20949
20950 # Do we need a version for libraries?
20951 need_version=$need_version
20952
20953 # Library versioning type.
20954 version_type=$version_type
20955
20956 # Shared library runtime path variable.
20957 runpath_var=$runpath_var
20958
20959 # Shared library path variable.
20960 shlibpath_var=$shlibpath_var
20961
20962 # Is shlibpath searched before the hard-coded library search path?
20963 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20964
20965 # Format of library name prefix.
20966 libname_spec=$lt_libname_spec
20967
20968 # List of archive names. First name is the real one, the rest are links.
20969 # The last name is the one that the linker finds with -lNAME
20970 library_names_spec=$lt_library_names_spec
20971
20972 # The coded name of the library, if different from the real name.
20973 soname_spec=$lt_soname_spec
20974
20975 # Permission mode override for installation of shared libraries.
20976 install_override_mode=$lt_install_override_mode
20977
20978 # Command to use after installation of a shared archive.
20979 postinstall_cmds=$lt_postinstall_cmds
20980
20981 # Command to use after uninstallation of a shared archive.
20982 postuninstall_cmds=$lt_postuninstall_cmds
20983
20984 # Commands used to finish a libtool library installation in a directory.
20985 finish_cmds=$lt_finish_cmds
20986
20987 # As "finish_cmds", except a single script fragment to be evaled but
20988 # not shown.
20989 finish_eval=$lt_finish_eval
20990
20991 # Whether we should hardcode library paths into libraries.
20992 hardcode_into_libs=$hardcode_into_libs
20993
20994 # Compile-time system search path for libraries.
20995 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20996
20997 # Detected run-time system search path for libraries.
20998 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
20999
21000 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
21001 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
21002
21003 # Whether dlopen is supported.
21004 dlopen_support=$enable_dlopen
21005
21006 # Whether dlopen of programs is supported.
21007 dlopen_self=$enable_dlopen_self
21008
21009 # Whether dlopen of statically linked programs is supported.
21010 dlopen_self_static=$enable_dlopen_self_static
21011
21012 # Commands to strip libraries.
21013 old_striplib=$lt_old_striplib
21014 striplib=$lt_striplib
21015
21016
21017 # The linker used to build libraries.
21018 LD=$lt_LD
21019
21020 # How to create reloadable object files.
21021 reload_flag=$lt_reload_flag
21022 reload_cmds=$lt_reload_cmds
21023
21024 # Commands used to build an old-style archive.
21025 old_archive_cmds=$lt_old_archive_cmds
21026
21027 # A language specific compiler.
21028 CC=$lt_compiler
21029
21030 # Is the compiler the GNU compiler?
21031 with_gcc=$GCC
21032
21033 # Compiler flag to turn off builtin functions.
21034 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21035
21036 # Additional compiler flags for building library objects.
21037 pic_flag=$lt_lt_prog_compiler_pic
21038
21039 # How to pass a linker flag through the compiler.
21040 wl=$lt_lt_prog_compiler_wl
21041
21042 # Compiler flag to prevent dynamic linking.
21043 link_static_flag=$lt_lt_prog_compiler_static
21044
21045 # Does compiler simultaneously support -c and -o options?
21046 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21047
21048 # Whether or not to add -lc for building shared libraries.
21049 build_libtool_need_lc=$archive_cmds_need_lc
21050
21051 # Whether or not to disallow shared libs when runtime libs are static.
21052 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21053
21054 # Compiler flag to allow reflexive dlopens.
21055 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21056
21057 # Compiler flag to generate shared objects directly from archives.
21058 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21059
21060 # Whether the compiler copes with passing no objects directly.
21061 compiler_needs_object=$lt_compiler_needs_object
21062
21063 # Create an old-style archive from a shared archive.
21064 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21065
21066 # Create a temporary old-style archive to link instead of a shared archive.
21067 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21068
21069 # Commands used to build a shared archive.
21070 archive_cmds=$lt_archive_cmds
21071 archive_expsym_cmds=$lt_archive_expsym_cmds
21072
21073 # Commands used to build a loadable module if different from building
21074 # a shared archive.
21075 module_cmds=$lt_module_cmds
21076 module_expsym_cmds=$lt_module_expsym_cmds
21077
21078 # Whether we are building with GNU ld or not.
21079 with_gnu_ld=$lt_with_gnu_ld
21080
21081 # Flag that allows shared libraries with undefined symbols to be built.
21082 allow_undefined_flag=$lt_allow_undefined_flag
21083
21084 # Flag that enforces no undefined symbols.
21085 no_undefined_flag=$lt_no_undefined_flag
21086
21087 # Flag to hardcode \$libdir into a binary during linking.
21088 # This must work even if \$libdir does not exist
21089 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21090
21091 # Whether we need a single "-rpath" flag with a separated argument.
21092 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21093
21094 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21095 # DIR into the resulting binary.
21096 hardcode_direct=$hardcode_direct
21097
21098 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21099 # DIR into the resulting binary and the resulting library dependency is
21100 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
21101 # library is relocated.
21102 hardcode_direct_absolute=$hardcode_direct_absolute
21103
21104 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21105 # into the resulting binary.
21106 hardcode_minus_L=$hardcode_minus_L
21107
21108 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21109 # into the resulting binary.
21110 hardcode_shlibpath_var=$hardcode_shlibpath_var
21111
21112 # Set to "yes" if building a shared library automatically hardcodes DIR
21113 # into the library and all subsequent libraries and executables linked
21114 # against it.
21115 hardcode_automatic=$hardcode_automatic
21116
21117 # Set to yes if linker adds runtime paths of dependent libraries
21118 # to runtime path list.
21119 inherit_rpath=$inherit_rpath
21120
21121 # Whether libtool must link a program against all its dependency libraries.
21122 link_all_deplibs=$link_all_deplibs
21123
21124 # Set to "yes" if exported symbols are required.
21125 always_export_symbols=$always_export_symbols
21126
21127 # The commands to list exported symbols.
21128 export_symbols_cmds=$lt_export_symbols_cmds
21129
21130 # Symbols that should not be listed in the preloaded symbols.
21131 exclude_expsyms=$lt_exclude_expsyms
21132
21133 # Symbols that must always be exported.
21134 include_expsyms=$lt_include_expsyms
21135
21136 # Commands necessary for linking programs (against libraries) with templates.
21137 prelink_cmds=$lt_prelink_cmds
21138
21139 # Commands necessary for finishing linking programs.
21140 postlink_cmds=$lt_postlink_cmds
21141
21142 # Specify filename containing input files.
21143 file_list_spec=$lt_file_list_spec
21144
21145 # How to hardcode a shared library path into an executable.
21146 hardcode_action=$hardcode_action
21147
21148 # ### END LIBTOOL CONFIG
21149
21150 _LT_EOF
21151
21152 cat <<'_LT_EOF' >> "$cfgfile"
21153
21154 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
21155
21156 # func_munge_path_list VARIABLE PATH
21157 # -----------------------------------
21158 # VARIABLE is name of variable containing _space_ separated list of
21159 # directories to be munged by the contents of PATH, which is string
21160 # having a format:
21161 # "DIR[:DIR]:"
21162 # string "DIR[ DIR]" will be prepended to VARIABLE
21163 # ":DIR[:DIR]"
21164 # string "DIR[ DIR]" will be appended to VARIABLE
21165 # "DIRP[:DIRP]::[DIRA:]DIRA"
21166 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
21167 # "DIRA[ DIRA]" will be appended to VARIABLE
21168 # "DIR[:DIR]"
21169 # VARIABLE will be replaced by "DIR[ DIR]"
21170 func_munge_path_list ()
21171 {
21172 case x$2 in
21173 x)
21174 ;;
21175 *:)
21176 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
21177 ;;
21178 x:*)
21179 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
21180 ;;
21181 *::*)
21182 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
21183 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
21184 ;;
21185 *)
21186 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
21187 ;;
21188 esac
21189 }
21190
21191
21192 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
21193 func_cc_basename ()
21194 {
21195 for cc_temp in $*""; do
21196 case $cc_temp in
21197 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21198 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21199 \-*) ;;
21200 *) break;;
21201 esac
21202 done
21203 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
21204 }
21205
21206
21207 # ### END FUNCTIONS SHARED WITH CONFIGURE
21208
21209 _LT_EOF
21210
21211 case $host_os in
21212 aix3*)
21213 cat <<\_LT_EOF >> "$cfgfile"
21214 # AIX sometimes has problems with the GCC collect2 program. For some
21215 # reason, if we set the COLLECT_NAMES environment variable, the problems
21216 # vanish in a puff of smoke.
21217 if test set != "${COLLECT_NAMES+set}"; then
21218 COLLECT_NAMES=
21219 export COLLECT_NAMES
21220 fi
21221 _LT_EOF
21222 ;;
21223 esac
21224
21225
21226 ltmain=$ac_aux_dir/ltmain.sh
21227
21228
21229 # We use sed instead of cat because bash on DJGPP gets confused if
21230 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21231 # text mode, it properly converts lines to CR/LF. This bash problem
21232 # is reportedly fixed, but why not run on old versions too?
21233 sed '$q' "$ltmain" >> "$cfgfile" \
21234 || (rm -f "$cfgfile"; exit 1)
21235
21236 mv -f "$cfgfile" "$ofile" ||
21237 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21238 chmod +x "$ofile"
21239
21240 ;;
21241
21242 esac
21243 done # for ac_tag
21244
21245
21246 as_fn_exit 0
21247 _ACEOF
21248 ac_clean_files=$ac_clean_files_save
21249
21250 test $ac_write_fail = 0 ||
21251 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21252
21253
21254 # configure is writing to config.log, and then calls config.status.
21255 # config.status does its own redirection, appending to config.log.
21256 # Unfortunately, on DOS this fails, as config.log is still kept open
21257 # by configure, so config.status won't be able to write to it; its
21258 # output is simply discarded. So we exec the FD to /dev/null,
21259 # effectively closing config.log, so it can be properly (re)opened and
21260 # appended to by config.status. When coming back to configure, we
21261 # need to make the FD available again.
21262 if test "$no_create" != yes; then
21263 ac_cs_success=:
21264 ac_config_status_args=
21265 test "$silent" = yes &&
21266 ac_config_status_args="$ac_config_status_args --quiet"
21267 exec 5>/dev/null
21268 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21269 exec 5>>config.log
21270 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21271 # would make configure fail if this is the last instruction.
21272 $ac_cs_success || as_fn_exit 1
21273 fi
21274 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21276 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21277 fi
21278
21279