configure revision 1.1.1.8 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for xf86-video-tdfx 1.5.0.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-tdfx/issues>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 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://gitlab.freedesktop.org/xorg/driver/xf86-video-tdfx/issues
279 $0: about your system, including any error possibly output
280 $0: before this message. Then install a modern shell, or
281 $0: manually run the script under such a shell if you do
282 $0: have one."
283 fi
284 exit 1
285 fi
286 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302 { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
309 as_fn_set_status ()
310 {
311 return $1
312 } # as_fn_set_status
313
314 # as_fn_exit STATUS
315 # -----------------
316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 as_fn_exit ()
318 {
319 set +e
320 as_fn_set_status $1
321 exit $1
322 } # as_fn_exit
323
324 # as_fn_mkdir_p
325 # -------------
326 # Create "$as_dir" as a directory, including parents if necessary.
327 as_fn_mkdir_p ()
328 {
329
330 case $as_dir in #(
331 -*) as_dir=./$as_dir;;
332 esac
333 test -d "$as_dir" || eval $as_mkdir_p || {
334 as_dirs=
335 while :; do
336 case $as_dir in #(
337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338 *) as_qdir=$as_dir;;
339 esac
340 as_dirs="'$as_qdir' $as_dirs"
341 as_dir=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343 X"$as_dir" : 'X\(//\)[^/]' \| \
344 X"$as_dir" : 'X\(//\)$' \| \
345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 $as_echo X"$as_dir" |
347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)[^/].*/{
352 s//\1/
353 q
354 }
355 /^X\(\/\/\)$/{
356 s//\1/
357 q
358 }
359 /^X\(\/\).*/{
360 s//\1/
361 q
362 }
363 s/.*/./; q'`
364 test -d "$as_dir" && break
365 done
366 test -z "$as_dirs" || eval "mkdir $as_dirs"
367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370 } # as_fn_mkdir_p
371
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
376 {
377 test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
384 # implementations.
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386 eval 'as_fn_append ()
387 {
388 eval $1+=\$2
389 }'
390 else
391 as_fn_append ()
392 {
393 eval $1=\$$1\$2
394 }
395 fi # as_fn_append
396
397 # as_fn_arith ARG...
398 # ------------------
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403 eval 'as_fn_arith ()
404 {
405 as_val=$(( $* ))
406 }'
407 else
408 as_fn_arith ()
409 {
410 as_val=`expr "$@" || test $? -eq 1`
411 }
412 fi # as_fn_arith
413
414
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
420 as_fn_error ()
421 {
422 as_status=$1; test $as_status -eq 0 && as_status=1
423 if test "$4"; then
424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 fi
427 $as_echo "$as_me: error: $2" >&2
428 as_fn_exit $as_status
429 } # as_fn_error
430
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432 test "X`expr 00001 : '.*\(...\)'`" = X001; then
433 as_expr=expr
434 else
435 as_expr=false
436 fi
437
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439 as_basename=basename
440 else
441 as_basename=false
442 fi
443
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445 as_dirname=dirname
446 else
447 as_dirname=false
448 fi
449
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452 X"$0" : 'X\(//\)$' \| \
453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 $as_echo X/"$0" |
455 sed '/^.*\/\([^/][^/]*\)\/*$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\/\)$/{
460 s//\1/
461 q
462 }
463 /^X\/\(\/\).*/{
464 s//\1/
465 q
466 }
467 s/.*/./; q'`
468
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477 as_lineno_1=$LINENO as_lineno_1a=$LINENO
478 as_lineno_2=$LINENO as_lineno_2a=$LINENO
479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
482 sed -n '
483 p
484 /[$]LINENO/=
485 ' <$as_myself |
486 sed '
487 s/[$]LINENO.*/&-/
488 t lineno
489 b
490 :lineno
491 N
492 :loop
493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494 t loop
495 s/-\n.*//
496 ' >$as_me.lineno &&
497 chmod +x "$as_me.lineno" ||
498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501 # already done that, so ensure we don't try to do so again and fall
502 # in an infinite loop. This has already happened in practice.
503 _as_can_reexec=no; export _as_can_reexec
504 # Don't try to exec as it changes $[0], causing all sort of problems
505 # (the dirname of $[0] is not the place where we might find the
506 # original and so on. Autoconf is especially sensitive to this).
507 . "./$as_me.lineno"
508 # Exit status is that of the last command.
509 exit
510 }
511
512 ECHO_C= ECHO_N= ECHO_T=
513 case `echo -n x` in #(((((
514 -n*)
515 case `echo 'xy\c'` in
516 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 xy) ECHO_C='\c';;
518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
519 ECHO_T=' ';;
520 esac;;
521 *)
522 ECHO_N='-n';;
523 esac
524
525 rm -f conf$$ conf$$.exe conf$$.file
526 if test -d conf$$.dir; then
527 rm -f conf$$.dir/conf$$.file
528 else
529 rm -f conf$$.dir
530 mkdir conf$$.dir 2>/dev/null
531 fi
532 if (echo >conf$$.file) 2>/dev/null; then
533 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 as_ln_s='ln -s'
535 # ... but there are two gotchas:
536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538 # In both cases, we have to default to `cp -pR'.
539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 as_ln_s='cp -pR'
541 elif ln conf$$.file conf$$ 2>/dev/null; then
542 as_ln_s=ln
543 else
544 as_ln_s='cp -pR'
545 fi
546 else
547 as_ln_s='cp -pR'
548 fi
549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550 rmdir conf$$.dir 2>/dev/null
551
552 if mkdir -p . 2>/dev/null; then
553 as_mkdir_p='mkdir -p "$as_dir"'
554 else
555 test -d ./-p && rmdir ./-p
556 as_mkdir_p=false
557 fi
558
559 as_test_x='test -x'
560 as_executable_p=as_fn_executable_p
561
562 # Sed expression to map a string onto a valid CPP name.
563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565 # Sed expression to map a string onto a valid variable name.
566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568 SHELL=${CONFIG_SHELL-/bin/sh}
569
570
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-tdfx'
593 PACKAGE_TARNAME='xf86-video-tdfx'
594 PACKAGE_VERSION='1.5.0'
595 PACKAGE_STRING='xf86-video-tdfx 1.5.0'
596 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/driver/xf86-video-tdfx/issues'
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 DRI_LIBS
649 DRI_CFLAGS
650 DRI_FALSE
651 DRI_TRUE
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 AM_BACKSLASH
725 AM_DEFAULT_VERBOSITY
726 AM_DEFAULT_V
727 AM_V
728 am__untar
729 am__tar
730 AMTAR
731 am__leading_dot
732 SET_MAKE
733 AWK
734 mkdir_p
735 MKDIR_P
736 INSTALL_STRIP_PROGRAM
737 STRIP
738 install_sh
739 MAKEINFO
740 AUTOHEADER
741 AUTOMAKE
742 AUTOCONF
743 ACLOCAL
744 VERSION
745 PACKAGE
746 CYGPATH_W
747 am__isrc
748 INSTALL_DATA
749 INSTALL_SCRIPT
750 INSTALL_PROGRAM
751 target_alias
752 host_alias
753 build_alias
754 LIBS
755 ECHO_T
756 ECHO_N
757 ECHO_C
758 DEFS
759 mandir
760 localedir
761 libdir
762 psdir
763 pdfdir
764 dvidir
765 htmldir
766 infodir
767 docdir
768 oldincludedir
769 includedir
770 runstatedir
771 localstatedir
772 sharedstatedir
773 sysconfdir
774 datadir
775 datarootdir
776 libexecdir
777 sbindir
778 bindir
779 program_transform_name
780 prefix
781 exec_prefix
782 PACKAGE_URL
783 PACKAGE_BUGREPORT
784 PACKAGE_STRING
785 PACKAGE_VERSION
786 PACKAGE_TARNAME
787 PACKAGE_NAME
788 PATH_SEPARATOR
789 SHELL'
790 ac_subst_files=''
791 ac_user_opts='
792 enable_option_checking
793 enable_silent_rules
794 enable_dependency_tracking
795 enable_selective_werror
796 enable_strict_compilation
797 enable_static
798 enable_shared
799 with_pic
800 enable_fast_install
801 with_aix_soname
802 with_gnu_ld
803 with_sysroot
804 enable_libtool_lock
805 with_xorg_module_dir
806 enable_dri
807 enable_xaa
808 '
809 ac_precious_vars='build_alias
810 host_alias
811 target_alias
812 CC
813 CFLAGS
814 LDFLAGS
815 LIBS
816 CPPFLAGS
817 CPP
818 PKG_CONFIG
819 PKG_CONFIG_PATH
820 PKG_CONFIG_LIBDIR
821 LT_SYS_LIBRARY_PATH
822 XORG_CFLAGS
823 XORG_LIBS
824 DRI_CFLAGS
825 DRI_LIBS
826 PCIACCESS_CFLAGS
827 PCIACCESS_LIBS'
828
829
830 # Initialize some variables set by options.
831 ac_init_help=
832 ac_init_version=false
833 ac_unrecognized_opts=
834 ac_unrecognized_sep=
835 # The variables have the same names as the options, with
836 # dashes changed to underlines.
837 cache_file=/dev/null
838 exec_prefix=NONE
839 no_create=
840 no_recursion=
841 prefix=NONE
842 program_prefix=NONE
843 program_suffix=NONE
844 program_transform_name=s,x,x,
845 silent=
846 site=
847 srcdir=
848 verbose=
849 x_includes=NONE
850 x_libraries=NONE
851
852 # Installation directory options.
853 # These are left unexpanded so users can "make install exec_prefix=/foo"
854 # and all the variables that are supposed to be based on exec_prefix
855 # by default will actually change.
856 # Use braces instead of parens because sh, perl, etc. also accept them.
857 # (The list follows the same order as the GNU Coding Standards.)
858 bindir='${exec_prefix}/bin'
859 sbindir='${exec_prefix}/sbin'
860 libexecdir='${exec_prefix}/libexec'
861 datarootdir='${prefix}/share'
862 datadir='${datarootdir}'
863 sysconfdir='${prefix}/etc'
864 sharedstatedir='${prefix}/com'
865 localstatedir='${prefix}/var'
866 runstatedir='${localstatedir}/run'
867 includedir='${prefix}/include'
868 oldincludedir='/usr/include'
869 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
870 infodir='${datarootdir}/info'
871 htmldir='${docdir}'
872 dvidir='${docdir}'
873 pdfdir='${docdir}'
874 psdir='${docdir}'
875 libdir='${exec_prefix}/lib'
876 localedir='${datarootdir}/locale'
877 mandir='${datarootdir}/man'
878
879 ac_prev=
880 ac_dashdash=
881 for ac_option
882 do
883 # If the previous option needs an argument, assign it.
884 if test -n "$ac_prev"; then
885 eval $ac_prev=\$ac_option
886 ac_prev=
887 continue
888 fi
889
890 case $ac_option in
891 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
892 *=) ac_optarg= ;;
893 *) ac_optarg=yes ;;
894 esac
895
896 # Accept the important Cygnus configure options, so we can diagnose typos.
897
898 case $ac_dashdash$ac_option in
899 --)
900 ac_dashdash=yes ;;
901
902 -bindir | --bindir | --bindi | --bind | --bin | --bi)
903 ac_prev=bindir ;;
904 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
905 bindir=$ac_optarg ;;
906
907 -build | --build | --buil | --bui | --bu)
908 ac_prev=build_alias ;;
909 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
910 build_alias=$ac_optarg ;;
911
912 -cache-file | --cache-file | --cache-fil | --cache-fi \
913 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
914 ac_prev=cache_file ;;
915 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
916 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
917 cache_file=$ac_optarg ;;
918
919 --config-cache | -C)
920 cache_file=config.cache ;;
921
922 -datadir | --datadir | --datadi | --datad)
923 ac_prev=datadir ;;
924 -datadir=* | --datadir=* | --datadi=* | --datad=*)
925 datadir=$ac_optarg ;;
926
927 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
928 | --dataroo | --dataro | --datar)
929 ac_prev=datarootdir ;;
930 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
931 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
932 datarootdir=$ac_optarg ;;
933
934 -disable-* | --disable-*)
935 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
936 # Reject names that are not valid shell variable names.
937 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
938 as_fn_error $? "invalid feature name: $ac_useropt"
939 ac_useropt_orig=$ac_useropt
940 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
941 case $ac_user_opts in
942 *"
943 "enable_$ac_useropt"
944 "*) ;;
945 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
946 ac_unrecognized_sep=', ';;
947 esac
948 eval enable_$ac_useropt=no ;;
949
950 -docdir | --docdir | --docdi | --doc | --do)
951 ac_prev=docdir ;;
952 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
953 docdir=$ac_optarg ;;
954
955 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
956 ac_prev=dvidir ;;
957 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
958 dvidir=$ac_optarg ;;
959
960 -enable-* | --enable-*)
961 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
962 # Reject names that are not valid shell variable names.
963 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
964 as_fn_error $? "invalid feature name: $ac_useropt"
965 ac_useropt_orig=$ac_useropt
966 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
967 case $ac_user_opts in
968 *"
969 "enable_$ac_useropt"
970 "*) ;;
971 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
972 ac_unrecognized_sep=', ';;
973 esac
974 eval enable_$ac_useropt=\$ac_optarg ;;
975
976 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
977 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
978 | --exec | --exe | --ex)
979 ac_prev=exec_prefix ;;
980 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
981 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
982 | --exec=* | --exe=* | --ex=*)
983 exec_prefix=$ac_optarg ;;
984
985 -gas | --gas | --ga | --g)
986 # Obsolete; use --with-gas.
987 with_gas=yes ;;
988
989 -help | --help | --hel | --he | -h)
990 ac_init_help=long ;;
991 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
992 ac_init_help=recursive ;;
993 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
994 ac_init_help=short ;;
995
996 -host | --host | --hos | --ho)
997 ac_prev=host_alias ;;
998 -host=* | --host=* | --hos=* | --ho=*)
999 host_alias=$ac_optarg ;;
1000
1001 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1002 ac_prev=htmldir ;;
1003 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1004 | --ht=*)
1005 htmldir=$ac_optarg ;;
1006
1007 -includedir | --includedir | --includedi | --included | --include \
1008 | --includ | --inclu | --incl | --inc)
1009 ac_prev=includedir ;;
1010 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1011 | --includ=* | --inclu=* | --incl=* | --inc=*)
1012 includedir=$ac_optarg ;;
1013
1014 -infodir | --infodir | --infodi | --infod | --info | --inf)
1015 ac_prev=infodir ;;
1016 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1017 infodir=$ac_optarg ;;
1018
1019 -libdir | --libdir | --libdi | --libd)
1020 ac_prev=libdir ;;
1021 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1022 libdir=$ac_optarg ;;
1023
1024 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1025 | --libexe | --libex | --libe)
1026 ac_prev=libexecdir ;;
1027 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1028 | --libexe=* | --libex=* | --libe=*)
1029 libexecdir=$ac_optarg ;;
1030
1031 -localedir | --localedir | --localedi | --localed | --locale)
1032 ac_prev=localedir ;;
1033 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1034 localedir=$ac_optarg ;;
1035
1036 -localstatedir | --localstatedir | --localstatedi | --localstated \
1037 | --localstate | --localstat | --localsta | --localst | --locals)
1038 ac_prev=localstatedir ;;
1039 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1040 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1041 localstatedir=$ac_optarg ;;
1042
1043 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1044 ac_prev=mandir ;;
1045 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1046 mandir=$ac_optarg ;;
1047
1048 -nfp | --nfp | --nf)
1049 # Obsolete; use --without-fp.
1050 with_fp=no ;;
1051
1052 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1053 | --no-cr | --no-c | -n)
1054 no_create=yes ;;
1055
1056 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1057 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1058 no_recursion=yes ;;
1059
1060 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1061 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1062 | --oldin | --oldi | --old | --ol | --o)
1063 ac_prev=oldincludedir ;;
1064 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1065 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1066 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1067 oldincludedir=$ac_optarg ;;
1068
1069 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1070 ac_prev=prefix ;;
1071 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1072 prefix=$ac_optarg ;;
1073
1074 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1075 | --program-pre | --program-pr | --program-p)
1076 ac_prev=program_prefix ;;
1077 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1078 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1079 program_prefix=$ac_optarg ;;
1080
1081 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1082 | --program-suf | --program-su | --program-s)
1083 ac_prev=program_suffix ;;
1084 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1085 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1086 program_suffix=$ac_optarg ;;
1087
1088 -program-transform-name | --program-transform-name \
1089 | --program-transform-nam | --program-transform-na \
1090 | --program-transform-n | --program-transform- \
1091 | --program-transform | --program-transfor \
1092 | --program-transfo | --program-transf \
1093 | --program-trans | --program-tran \
1094 | --progr-tra | --program-tr | --program-t)
1095 ac_prev=program_transform_name ;;
1096 -program-transform-name=* | --program-transform-name=* \
1097 | --program-transform-nam=* | --program-transform-na=* \
1098 | --program-transform-n=* | --program-transform-=* \
1099 | --program-transform=* | --program-transfor=* \
1100 | --program-transfo=* | --program-transf=* \
1101 | --program-trans=* | --program-tran=* \
1102 | --progr-tra=* | --program-tr=* | --program-t=*)
1103 program_transform_name=$ac_optarg ;;
1104
1105 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1106 ac_prev=pdfdir ;;
1107 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1108 pdfdir=$ac_optarg ;;
1109
1110 -psdir | --psdir | --psdi | --psd | --ps)
1111 ac_prev=psdir ;;
1112 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1113 psdir=$ac_optarg ;;
1114
1115 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1116 | -silent | --silent | --silen | --sile | --sil)
1117 silent=yes ;;
1118
1119 -runstatedir | --runstatedir | --runstatedi | --runstated \
1120 | --runstate | --runstat | --runsta | --runst | --runs \
1121 | --run | --ru | --r)
1122 ac_prev=runstatedir ;;
1123 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1124 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1125 | --run=* | --ru=* | --r=*)
1126 runstatedir=$ac_optarg ;;
1127
1128 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1129 ac_prev=sbindir ;;
1130 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1131 | --sbi=* | --sb=*)
1132 sbindir=$ac_optarg ;;
1133
1134 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1135 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1136 | --sharedst | --shareds | --shared | --share | --shar \
1137 | --sha | --sh)
1138 ac_prev=sharedstatedir ;;
1139 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1140 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1141 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1142 | --sha=* | --sh=*)
1143 sharedstatedir=$ac_optarg ;;
1144
1145 -site | --site | --sit)
1146 ac_prev=site ;;
1147 -site=* | --site=* | --sit=*)
1148 site=$ac_optarg ;;
1149
1150 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1151 ac_prev=srcdir ;;
1152 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1153 srcdir=$ac_optarg ;;
1154
1155 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1156 | --syscon | --sysco | --sysc | --sys | --sy)
1157 ac_prev=sysconfdir ;;
1158 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1159 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1160 sysconfdir=$ac_optarg ;;
1161
1162 -target | --target | --targe | --targ | --tar | --ta | --t)
1163 ac_prev=target_alias ;;
1164 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1165 target_alias=$ac_optarg ;;
1166
1167 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1168 verbose=yes ;;
1169
1170 -version | --version | --versio | --versi | --vers | -V)
1171 ac_init_version=: ;;
1172
1173 -with-* | --with-*)
1174 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1175 # Reject names that are not valid shell variable names.
1176 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1177 as_fn_error $? "invalid package name: $ac_useropt"
1178 ac_useropt_orig=$ac_useropt
1179 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1180 case $ac_user_opts in
1181 *"
1182 "with_$ac_useropt"
1183 "*) ;;
1184 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1185 ac_unrecognized_sep=', ';;
1186 esac
1187 eval with_$ac_useropt=\$ac_optarg ;;
1188
1189 -without-* | --without-*)
1190 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1191 # Reject names that are not valid shell variable names.
1192 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1193 as_fn_error $? "invalid package name: $ac_useropt"
1194 ac_useropt_orig=$ac_useropt
1195 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1196 case $ac_user_opts in
1197 *"
1198 "with_$ac_useropt"
1199 "*) ;;
1200 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1201 ac_unrecognized_sep=', ';;
1202 esac
1203 eval with_$ac_useropt=no ;;
1204
1205 --x)
1206 # Obsolete; use --with-x.
1207 with_x=yes ;;
1208
1209 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1210 | --x-incl | --x-inc | --x-in | --x-i)
1211 ac_prev=x_includes ;;
1212 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1213 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1214 x_includes=$ac_optarg ;;
1215
1216 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1217 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1218 ac_prev=x_libraries ;;
1219 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1220 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1221 x_libraries=$ac_optarg ;;
1222
1223 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1224 Try \`$0 --help' for more information"
1225 ;;
1226
1227 *=*)
1228 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1229 # Reject names that are not valid shell variable names.
1230 case $ac_envvar in #(
1231 '' | [0-9]* | *[!_$as_cr_alnum]* )
1232 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1233 esac
1234 eval $ac_envvar=\$ac_optarg
1235 export $ac_envvar ;;
1236
1237 *)
1238 # FIXME: should be removed in autoconf 3.0.
1239 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1240 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1241 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1242 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1243 ;;
1244
1245 esac
1246 done
1247
1248 if test -n "$ac_prev"; then
1249 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1250 as_fn_error $? "missing argument to $ac_option"
1251 fi
1252
1253 if test -n "$ac_unrecognized_opts"; then
1254 case $enable_option_checking in
1255 no) ;;
1256 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1257 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1258 esac
1259 fi
1260
1261 # Check all directory arguments for consistency.
1262 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1263 datadir sysconfdir sharedstatedir localstatedir includedir \
1264 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1265 libdir localedir mandir runstatedir
1266 do
1267 eval ac_val=\$$ac_var
1268 # Remove trailing slashes.
1269 case $ac_val in
1270 */ )
1271 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1272 eval $ac_var=\$ac_val;;
1273 esac
1274 # Be sure to have absolute directory names.
1275 case $ac_val in
1276 [\\/$]* | ?:[\\/]* ) continue;;
1277 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1278 esac
1279 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1280 done
1281
1282 # There might be people who depend on the old broken behavior: `$host'
1283 # used to hold the argument of --host etc.
1284 # FIXME: To remove some day.
1285 build=$build_alias
1286 host=$host_alias
1287 target=$target_alias
1288
1289 # FIXME: To remove some day.
1290 if test "x$host_alias" != x; then
1291 if test "x$build_alias" = x; then
1292 cross_compiling=maybe
1293 elif test "x$build_alias" != "x$host_alias"; then
1294 cross_compiling=yes
1295 fi
1296 fi
1297
1298 ac_tool_prefix=
1299 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1300
1301 test "$silent" = yes && exec 6>/dev/null
1302
1303
1304 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1305 ac_ls_di=`ls -di .` &&
1306 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1307 as_fn_error $? "working directory cannot be determined"
1308 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1309 as_fn_error $? "pwd does not report name of working directory"
1310
1311
1312 # Find the source files, if location was not specified.
1313 if test -z "$srcdir"; then
1314 ac_srcdir_defaulted=yes
1315 # Try the directory containing this script, then the parent directory.
1316 ac_confdir=`$as_dirname -- "$as_myself" ||
1317 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1318 X"$as_myself" : 'X\(//\)[^/]' \| \
1319 X"$as_myself" : 'X\(//\)$' \| \
1320 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1321 $as_echo X"$as_myself" |
1322 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1323 s//\1/
1324 q
1325 }
1326 /^X\(\/\/\)[^/].*/{
1327 s//\1/
1328 q
1329 }
1330 /^X\(\/\/\)$/{
1331 s//\1/
1332 q
1333 }
1334 /^X\(\/\).*/{
1335 s//\1/
1336 q
1337 }
1338 s/.*/./; q'`
1339 srcdir=$ac_confdir
1340 if test ! -r "$srcdir/$ac_unique_file"; then
1341 srcdir=..
1342 fi
1343 else
1344 ac_srcdir_defaulted=no
1345 fi
1346 if test ! -r "$srcdir/$ac_unique_file"; then
1347 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1348 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1349 fi
1350 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1351 ac_abs_confdir=`(
1352 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1353 pwd)`
1354 # When building in place, set srcdir=.
1355 if test "$ac_abs_confdir" = "$ac_pwd"; then
1356 srcdir=.
1357 fi
1358 # Remove unnecessary trailing slashes from srcdir.
1359 # Double slashes in file names in object file debugging info
1360 # mess up M-x gdb in Emacs.
1361 case $srcdir in
1362 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1363 esac
1364 for ac_var in $ac_precious_vars; do
1365 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1366 eval ac_env_${ac_var}_value=\$${ac_var}
1367 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1368 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1369 done
1370
1371 #
1372 # Report the --help message.
1373 #
1374 if test "$ac_init_help" = "long"; then
1375 # Omit some internal or obsolete options to make the list less imposing.
1376 # This message is too long to be a string in the A/UX 3.1 sh.
1377 cat <<_ACEOF
1378 \`configure' configures xf86-video-tdfx 1.5.0 to adapt to many kinds of systems.
1379
1380 Usage: $0 [OPTION]... [VAR=VALUE]...
1381
1382 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1383 VAR=VALUE. See below for descriptions of some of the useful variables.
1384
1385 Defaults for the options are specified in brackets.
1386
1387 Configuration:
1388 -h, --help display this help and exit
1389 --help=short display options specific to this package
1390 --help=recursive display the short help of all the included packages
1391 -V, --version display version information and exit
1392 -q, --quiet, --silent do not print \`checking ...' messages
1393 --cache-file=FILE cache test results in FILE [disabled]
1394 -C, --config-cache alias for \`--cache-file=config.cache'
1395 -n, --no-create do not create output files
1396 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1397
1398 Installation directories:
1399 --prefix=PREFIX install architecture-independent files in PREFIX
1400 [$ac_default_prefix]
1401 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1402 [PREFIX]
1403
1404 By default, \`make install' will install all the files in
1405 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1406 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1407 for instance \`--prefix=\$HOME'.
1408
1409 For better control, use the options below.
1410
1411 Fine tuning of the installation directories:
1412 --bindir=DIR user executables [EPREFIX/bin]
1413 --sbindir=DIR system admin executables [EPREFIX/sbin]
1414 --libexecdir=DIR program executables [EPREFIX/libexec]
1415 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1416 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1417 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1418 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1419 --libdir=DIR object code libraries [EPREFIX/lib]
1420 --includedir=DIR C header files [PREFIX/include]
1421 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1422 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1423 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1424 --infodir=DIR info documentation [DATAROOTDIR/info]
1425 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1426 --mandir=DIR man documentation [DATAROOTDIR/man]
1427 --docdir=DIR documentation root [DATAROOTDIR/doc/xf86-video-tdfx]
1428 --htmldir=DIR html documentation [DOCDIR]
1429 --dvidir=DIR dvi documentation [DOCDIR]
1430 --pdfdir=DIR pdf documentation [DOCDIR]
1431 --psdir=DIR ps documentation [DOCDIR]
1432 _ACEOF
1433
1434 cat <<\_ACEOF
1435
1436 Program names:
1437 --program-prefix=PREFIX prepend PREFIX to installed program names
1438 --program-suffix=SUFFIX append SUFFIX to installed program names
1439 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1440
1441 System types:
1442 --build=BUILD configure for building on BUILD [guessed]
1443 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1444 _ACEOF
1445 fi
1446
1447 if test -n "$ac_init_help"; then
1448 case $ac_init_help in
1449 short | recursive ) echo "Configuration of xf86-video-tdfx 1.5.0:";;
1450 esac
1451 cat <<\_ACEOF
1452
1453 Optional Features:
1454 --disable-option-checking ignore unrecognized --enable/--with options
1455 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1456 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1457 --enable-silent-rules less verbose build output (undo: "make V=1")
1458 --disable-silent-rules verbose build output (undo: "make V=0")
1459 --enable-dependency-tracking
1460 do not reject slow dependency extractors
1461 --disable-dependency-tracking
1462 speeds up one-time build
1463 --disable-selective-werror
1464 Turn off selective compiler errors. (default:
1465 enabled)
1466 --enable-strict-compilation
1467 Enable all warnings from compiler and make them
1468 errors (default: disabled)
1469 --enable-static[=PKGS] build static libraries [default=no]
1470 --enable-shared[=PKGS] build shared libraries [default=yes]
1471 --enable-fast-install[=PKGS]
1472 optimize for fast installation [default=yes]
1473 --disable-libtool-lock avoid locking (might break parallel builds)
1474 --disable-dri Disable DRI support [[default=auto]]
1475 --enable-xaa Enable legacy X Acceleration Architecture (XAA)
1476 [default=auto]
1477
1478 Optional Packages:
1479 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1480 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1481 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1482 both]
1483 --with-aix-soname=aix|svr4|both
1484 shared library versioning (aka "SONAME") variant to
1485 provide on AIX, [default=aix].
1486 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1487 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1488 compiler's sysroot if not specified).
1489 --with-xorg-module-dir=DIR
1490 Default xorg module directory
1491 [[default=$libdir/xorg/modules]]
1492
1493 Some influential environment variables:
1494 CC C compiler command
1495 CFLAGS C compiler flags
1496 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1497 nonstandard directory <lib dir>
1498 LIBS libraries to pass to the linker, e.g. -l<library>
1499 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1500 you have headers in a nonstandard directory <include dir>
1501 CPP C preprocessor
1502 PKG_CONFIG path to pkg-config utility
1503 PKG_CONFIG_PATH
1504 directories to add to pkg-config's search path
1505 PKG_CONFIG_LIBDIR
1506 path overriding pkg-config's built-in search path
1507 LT_SYS_LIBRARY_PATH
1508 User-defined run-time library search path.
1509 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1510 XORG_LIBS linker flags for XORG, overriding pkg-config
1511 DRI_CFLAGS C compiler flags for DRI, overriding pkg-config
1512 DRI_LIBS linker flags for DRI, overriding pkg-config
1513 PCIACCESS_CFLAGS
1514 C compiler flags for PCIACCESS, overriding pkg-config
1515 PCIACCESS_LIBS
1516 linker flags for PCIACCESS, overriding pkg-config
1517
1518 Use these variables to override the choices made by `configure' or to help
1519 it to find libraries and programs with nonstandard names/locations.
1520
1521 Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-tdfx/issues>.
1522 _ACEOF
1523 ac_status=$?
1524 fi
1525
1526 if test "$ac_init_help" = "recursive"; then
1527 # If there are subdirs, report their specific --help.
1528 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1529 test -d "$ac_dir" ||
1530 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1531 continue
1532 ac_builddir=.
1533
1534 case "$ac_dir" in
1535 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1536 *)
1537 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1538 # A ".." for each directory in $ac_dir_suffix.
1539 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1540 case $ac_top_builddir_sub in
1541 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1542 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1543 esac ;;
1544 esac
1545 ac_abs_top_builddir=$ac_pwd
1546 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1547 # for backward compatibility:
1548 ac_top_builddir=$ac_top_build_prefix
1549
1550 case $srcdir in
1551 .) # We are building in place.
1552 ac_srcdir=.
1553 ac_top_srcdir=$ac_top_builddir_sub
1554 ac_abs_top_srcdir=$ac_pwd ;;
1555 [\\/]* | ?:[\\/]* ) # Absolute name.
1556 ac_srcdir=$srcdir$ac_dir_suffix;
1557 ac_top_srcdir=$srcdir
1558 ac_abs_top_srcdir=$srcdir ;;
1559 *) # Relative name.
1560 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1561 ac_top_srcdir=$ac_top_build_prefix$srcdir
1562 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1563 esac
1564 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1565
1566 cd "$ac_dir" || { ac_status=$?; continue; }
1567 # Check for guested configure.
1568 if test -f "$ac_srcdir/configure.gnu"; then
1569 echo &&
1570 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1571 elif test -f "$ac_srcdir/configure"; then
1572 echo &&
1573 $SHELL "$ac_srcdir/configure" --help=recursive
1574 else
1575 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1576 fi || ac_status=$?
1577 cd "$ac_pwd" || { ac_status=$?; break; }
1578 done
1579 fi
1580
1581 test -n "$ac_init_help" && exit $ac_status
1582 if $ac_init_version; then
1583 cat <<\_ACEOF
1584 xf86-video-tdfx configure 1.5.0
1585 generated by GNU Autoconf 2.69
1586
1587 Copyright (C) 2012 Free Software Foundation, Inc.
1588 This configure script is free software; the Free Software Foundation
1589 gives unlimited permission to copy, distribute and modify it.
1590 _ACEOF
1591 exit
1592 fi
1593
1594 ## ------------------------ ##
1595 ## Autoconf initialization. ##
1596 ## ------------------------ ##
1597
1598 # ac_fn_c_try_compile LINENO
1599 # --------------------------
1600 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1601 ac_fn_c_try_compile ()
1602 {
1603 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1604 rm -f conftest.$ac_objext
1605 if { { ac_try="$ac_compile"
1606 case "(($ac_try" in
1607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1608 *) ac_try_echo=$ac_try;;
1609 esac
1610 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1611 $as_echo "$ac_try_echo"; } >&5
1612 (eval "$ac_compile") 2>conftest.err
1613 ac_status=$?
1614 if test -s conftest.err; then
1615 grep -v '^ *+' conftest.err >conftest.er1
1616 cat conftest.er1 >&5
1617 mv -f conftest.er1 conftest.err
1618 fi
1619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1620 test $ac_status = 0; } && {
1621 test -z "$ac_c_werror_flag" ||
1622 test ! -s conftest.err
1623 } && test -s conftest.$ac_objext; then :
1624 ac_retval=0
1625 else
1626 $as_echo "$as_me: failed program was:" >&5
1627 sed 's/^/| /' conftest.$ac_ext >&5
1628
1629 ac_retval=1
1630 fi
1631 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1632 as_fn_set_status $ac_retval
1633
1634 } # ac_fn_c_try_compile
1635
1636 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1637 # ---------------------------------------------
1638 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1639 # accordingly.
1640 ac_fn_c_check_decl ()
1641 {
1642 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1643 as_decl_name=`echo $2|sed 's/ *(.*//'`
1644 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1646 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1647 if eval \${$3+:} false; then :
1648 $as_echo_n "(cached) " >&6
1649 else
1650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1651 /* end confdefs.h. */
1652 $4
1653 int
1654 main ()
1655 {
1656 #ifndef $as_decl_name
1657 #ifdef __cplusplus
1658 (void) $as_decl_use;
1659 #else
1660 (void) $as_decl_name;
1661 #endif
1662 #endif
1663
1664 ;
1665 return 0;
1666 }
1667 _ACEOF
1668 if ac_fn_c_try_compile "$LINENO"; then :
1669 eval "$3=yes"
1670 else
1671 eval "$3=no"
1672 fi
1673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1674 fi
1675 eval ac_res=\$$3
1676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1677 $as_echo "$ac_res" >&6; }
1678 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1679
1680 } # ac_fn_c_check_decl
1681
1682 # ac_fn_c_try_cpp LINENO
1683 # ----------------------
1684 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1685 ac_fn_c_try_cpp ()
1686 {
1687 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1688 if { { ac_try="$ac_cpp conftest.$ac_ext"
1689 case "(($ac_try" in
1690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1691 *) ac_try_echo=$ac_try;;
1692 esac
1693 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1694 $as_echo "$ac_try_echo"; } >&5
1695 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1696 ac_status=$?
1697 if test -s conftest.err; then
1698 grep -v '^ *+' conftest.err >conftest.er1
1699 cat conftest.er1 >&5
1700 mv -f conftest.er1 conftest.err
1701 fi
1702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1703 test $ac_status = 0; } > conftest.i && {
1704 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1705 test ! -s conftest.err
1706 }; then :
1707 ac_retval=0
1708 else
1709 $as_echo "$as_me: failed program was:" >&5
1710 sed 's/^/| /' conftest.$ac_ext >&5
1711
1712 ac_retval=1
1713 fi
1714 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1715 as_fn_set_status $ac_retval
1716
1717 } # ac_fn_c_try_cpp
1718
1719 # ac_fn_c_try_run LINENO
1720 # ----------------------
1721 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1722 # that executables *can* be run.
1723 ac_fn_c_try_run ()
1724 {
1725 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1726 if { { ac_try="$ac_link"
1727 case "(($ac_try" in
1728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1729 *) ac_try_echo=$ac_try;;
1730 esac
1731 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1732 $as_echo "$ac_try_echo"; } >&5
1733 (eval "$ac_link") 2>&5
1734 ac_status=$?
1735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1736 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1737 { { case "(($ac_try" in
1738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1739 *) ac_try_echo=$ac_try;;
1740 esac
1741 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1742 $as_echo "$ac_try_echo"; } >&5
1743 (eval "$ac_try") 2>&5
1744 ac_status=$?
1745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1746 test $ac_status = 0; }; }; then :
1747 ac_retval=0
1748 else
1749 $as_echo "$as_me: program exited with status $ac_status" >&5
1750 $as_echo "$as_me: failed program was:" >&5
1751 sed 's/^/| /' conftest.$ac_ext >&5
1752
1753 ac_retval=$ac_status
1754 fi
1755 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1756 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1757 as_fn_set_status $ac_retval
1758
1759 } # ac_fn_c_try_run
1760
1761 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1762 # -------------------------------------------------------
1763 # Tests whether HEADER exists and can be compiled using the include files in
1764 # INCLUDES, setting the cache variable VAR accordingly.
1765 ac_fn_c_check_header_compile ()
1766 {
1767 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1769 $as_echo_n "checking for $2... " >&6; }
1770 if eval \${$3+:} false; then :
1771 $as_echo_n "(cached) " >&6
1772 else
1773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1774 /* end confdefs.h. */
1775 $4
1776 #include <$2>
1777 _ACEOF
1778 if ac_fn_c_try_compile "$LINENO"; then :
1779 eval "$3=yes"
1780 else
1781 eval "$3=no"
1782 fi
1783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1784 fi
1785 eval ac_res=\$$3
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1787 $as_echo "$ac_res" >&6; }
1788 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1789
1790 } # ac_fn_c_check_header_compile
1791
1792 # ac_fn_c_try_link LINENO
1793 # -----------------------
1794 # Try to link conftest.$ac_ext, and return whether this succeeded.
1795 ac_fn_c_try_link ()
1796 {
1797 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1798 rm -f conftest.$ac_objext conftest$ac_exeext
1799 if { { ac_try="$ac_link"
1800 case "(($ac_try" in
1801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1802 *) ac_try_echo=$ac_try;;
1803 esac
1804 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1805 $as_echo "$ac_try_echo"; } >&5
1806 (eval "$ac_link") 2>conftest.err
1807 ac_status=$?
1808 if test -s conftest.err; then
1809 grep -v '^ *+' conftest.err >conftest.er1
1810 cat conftest.er1 >&5
1811 mv -f conftest.er1 conftest.err
1812 fi
1813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1814 test $ac_status = 0; } && {
1815 test -z "$ac_c_werror_flag" ||
1816 test ! -s conftest.err
1817 } && test -s conftest$ac_exeext && {
1818 test "$cross_compiling" = yes ||
1819 test -x conftest$ac_exeext
1820 }; then :
1821 ac_retval=0
1822 else
1823 $as_echo "$as_me: failed program was:" >&5
1824 sed 's/^/| /' conftest.$ac_ext >&5
1825
1826 ac_retval=1
1827 fi
1828 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1829 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1830 # interfere with the next link command; also delete a directory that is
1831 # left behind by Apple's compiler. We do this before executing the actions.
1832 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1833 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1834 as_fn_set_status $ac_retval
1835
1836 } # ac_fn_c_try_link
1837
1838 # ac_fn_c_check_func LINENO FUNC VAR
1839 # ----------------------------------
1840 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1841 ac_fn_c_check_func ()
1842 {
1843 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1845 $as_echo_n "checking for $2... " >&6; }
1846 if eval \${$3+:} false; then :
1847 $as_echo_n "(cached) " >&6
1848 else
1849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1850 /* end confdefs.h. */
1851 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1852 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1853 #define $2 innocuous_$2
1854
1855 /* System header to define __stub macros and hopefully few prototypes,
1856 which can conflict with char $2 (); below.
1857 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1858 <limits.h> exists even on freestanding compilers. */
1859
1860 #ifdef __STDC__
1861 # include <limits.h>
1862 #else
1863 # include <assert.h>
1864 #endif
1865
1866 #undef $2
1867
1868 /* Override any GCC internal prototype to avoid an error.
1869 Use char because int might match the return type of a GCC
1870 builtin and then its argument prototype would still apply. */
1871 #ifdef __cplusplus
1872 extern "C"
1873 #endif
1874 char $2 ();
1875 /* The GNU C library defines this for functions which it implements
1876 to always fail with ENOSYS. Some functions are actually named
1877 something starting with __ and the normal name is an alias. */
1878 #if defined __stub_$2 || defined __stub___$2
1879 choke me
1880 #endif
1881
1882 int
1883 main ()
1884 {
1885 return $2 ();
1886 ;
1887 return 0;
1888 }
1889 _ACEOF
1890 if ac_fn_c_try_link "$LINENO"; then :
1891 eval "$3=yes"
1892 else
1893 eval "$3=no"
1894 fi
1895 rm -f core conftest.err conftest.$ac_objext \
1896 conftest$ac_exeext conftest.$ac_ext
1897 fi
1898 eval ac_res=\$$3
1899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1900 $as_echo "$ac_res" >&6; }
1901 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1902
1903 } # ac_fn_c_check_func
1904
1905 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1906 # -------------------------------------------------------
1907 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1908 # the include files in INCLUDES and setting the cache variable VAR
1909 # accordingly.
1910 ac_fn_c_check_header_mongrel ()
1911 {
1912 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1913 if eval \${$3+:} false; then :
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1915 $as_echo_n "checking for $2... " >&6; }
1916 if eval \${$3+:} false; then :
1917 $as_echo_n "(cached) " >&6
1918 fi
1919 eval ac_res=\$$3
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1921 $as_echo "$ac_res" >&6; }
1922 else
1923 # Is the header compilable?
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1925 $as_echo_n "checking $2 usability... " >&6; }
1926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1927 /* end confdefs.h. */
1928 $4
1929 #include <$2>
1930 _ACEOF
1931 if ac_fn_c_try_compile "$LINENO"; then :
1932 ac_header_compiler=yes
1933 else
1934 ac_header_compiler=no
1935 fi
1936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1938 $as_echo "$ac_header_compiler" >&6; }
1939
1940 # Is the header present?
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1942 $as_echo_n "checking $2 presence... " >&6; }
1943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1944 /* end confdefs.h. */
1945 #include <$2>
1946 _ACEOF
1947 if ac_fn_c_try_cpp "$LINENO"; then :
1948 ac_header_preproc=yes
1949 else
1950 ac_header_preproc=no
1951 fi
1952 rm -f conftest.err conftest.i conftest.$ac_ext
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1954 $as_echo "$ac_header_preproc" >&6; }
1955
1956 # So? What about this header?
1957 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1958 yes:no: )
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1960 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1962 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1963 ;;
1964 no:yes:* )
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1966 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1968 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1970 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1972 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1974 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1975 ( $as_echo "## -------------------------------------------------------------------------------- ##
1976 ## Report this to https://gitlab.freedesktop.org/xorg/driver/xf86-video-tdfx/issues ##
1977 ## -------------------------------------------------------------------------------- ##"
1978 ) | sed "s/^/$as_me: WARNING: /" >&2
1979 ;;
1980 esac
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1982 $as_echo_n "checking for $2... " >&6; }
1983 if eval \${$3+:} false; then :
1984 $as_echo_n "(cached) " >&6
1985 else
1986 eval "$3=\$ac_header_compiler"
1987 fi
1988 eval ac_res=\$$3
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1990 $as_echo "$ac_res" >&6; }
1991 fi
1992 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1993
1994 } # ac_fn_c_check_header_mongrel
1995 cat >config.log <<_ACEOF
1996 This file contains any messages produced by compilers while
1997 running configure, to aid debugging if configure makes a mistake.
1998
1999 It was created by xf86-video-tdfx $as_me 1.5.0, which was
2000 generated by GNU Autoconf 2.69. Invocation command line was
2001
2002 $ $0 $@
2003
2004 _ACEOF
2005 exec 5>>config.log
2006 {
2007 cat <<_ASUNAME
2008 ## --------- ##
2009 ## Platform. ##
2010 ## --------- ##
2011
2012 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2013 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2014 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2015 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2016 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2017
2018 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2019 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2020
2021 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2022 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2023 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2024 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2025 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2026 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2027 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2028
2029 _ASUNAME
2030
2031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2032 for as_dir in $PATH
2033 do
2034 IFS=$as_save_IFS
2035 test -z "$as_dir" && as_dir=.
2036 $as_echo "PATH: $as_dir"
2037 done
2038 IFS=$as_save_IFS
2039
2040 } >&5
2041
2042 cat >&5 <<_ACEOF
2043
2044
2045 ## ----------- ##
2046 ## Core tests. ##
2047 ## ----------- ##
2048
2049 _ACEOF
2050
2051
2052 # Keep a trace of the command line.
2053 # Strip out --no-create and --no-recursion so they do not pile up.
2054 # Strip out --silent because we don't want to record it for future runs.
2055 # Also quote any args containing shell meta-characters.
2056 # Make two passes to allow for proper duplicate-argument suppression.
2057 ac_configure_args=
2058 ac_configure_args0=
2059 ac_configure_args1=
2060 ac_must_keep_next=false
2061 for ac_pass in 1 2
2062 do
2063 for ac_arg
2064 do
2065 case $ac_arg in
2066 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2067 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2068 | -silent | --silent | --silen | --sile | --sil)
2069 continue ;;
2070 *\'*)
2071 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2072 esac
2073 case $ac_pass in
2074 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2075 2)
2076 as_fn_append ac_configure_args1 " '$ac_arg'"
2077 if test $ac_must_keep_next = true; then
2078 ac_must_keep_next=false # Got value, back to normal.
2079 else
2080 case $ac_arg in
2081 *=* | --config-cache | -C | -disable-* | --disable-* \
2082 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2083 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2084 | -with-* | --with-* | -without-* | --without-* | --x)
2085 case "$ac_configure_args0 " in
2086 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2087 esac
2088 ;;
2089 -* ) ac_must_keep_next=true ;;
2090 esac
2091 fi
2092 as_fn_append ac_configure_args " '$ac_arg'"
2093 ;;
2094 esac
2095 done
2096 done
2097 { ac_configure_args0=; unset ac_configure_args0;}
2098 { ac_configure_args1=; unset ac_configure_args1;}
2099
2100 # When interrupted or exit'd, cleanup temporary files, and complete
2101 # config.log. We remove comments because anyway the quotes in there
2102 # would cause problems or look ugly.
2103 # WARNING: Use '\'' to represent an apostrophe within the trap.
2104 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2105 trap 'exit_status=$?
2106 # Save into config.log some information that might help in debugging.
2107 {
2108 echo
2109
2110 $as_echo "## ---------------- ##
2111 ## Cache variables. ##
2112 ## ---------------- ##"
2113 echo
2114 # The following way of writing the cache mishandles newlines in values,
2115 (
2116 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2117 eval ac_val=\$$ac_var
2118 case $ac_val in #(
2119 *${as_nl}*)
2120 case $ac_var in #(
2121 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2122 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2123 esac
2124 case $ac_var in #(
2125 _ | IFS | as_nl) ;; #(
2126 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2127 *) { eval $ac_var=; unset $ac_var;} ;;
2128 esac ;;
2129 esac
2130 done
2131 (set) 2>&1 |
2132 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2133 *${as_nl}ac_space=\ *)
2134 sed -n \
2135 "s/'\''/'\''\\\\'\'''\''/g;
2136 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2137 ;; #(
2138 *)
2139 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2140 ;;
2141 esac |
2142 sort
2143 )
2144 echo
2145
2146 $as_echo "## ----------------- ##
2147 ## Output variables. ##
2148 ## ----------------- ##"
2149 echo
2150 for ac_var in $ac_subst_vars
2151 do
2152 eval ac_val=\$$ac_var
2153 case $ac_val in
2154 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2155 esac
2156 $as_echo "$ac_var='\''$ac_val'\''"
2157 done | sort
2158 echo
2159
2160 if test -n "$ac_subst_files"; then
2161 $as_echo "## ------------------- ##
2162 ## File substitutions. ##
2163 ## ------------------- ##"
2164 echo
2165 for ac_var in $ac_subst_files
2166 do
2167 eval ac_val=\$$ac_var
2168 case $ac_val in
2169 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2170 esac
2171 $as_echo "$ac_var='\''$ac_val'\''"
2172 done | sort
2173 echo
2174 fi
2175
2176 if test -s confdefs.h; then
2177 $as_echo "## ----------- ##
2178 ## confdefs.h. ##
2179 ## ----------- ##"
2180 echo
2181 cat confdefs.h
2182 echo
2183 fi
2184 test "$ac_signal" != 0 &&
2185 $as_echo "$as_me: caught signal $ac_signal"
2186 $as_echo "$as_me: exit $exit_status"
2187 } >&5
2188 rm -f core *.core core.conftest.* &&
2189 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2190 exit $exit_status
2191 ' 0
2192 for ac_signal in 1 2 13 15; do
2193 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2194 done
2195 ac_signal=0
2196
2197 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2198 rm -f -r conftest* confdefs.h
2199
2200 $as_echo "/* confdefs.h */" > confdefs.h
2201
2202 # Predefined preprocessor variables.
2203
2204 cat >>confdefs.h <<_ACEOF
2205 #define PACKAGE_NAME "$PACKAGE_NAME"
2206 _ACEOF
2207
2208 cat >>confdefs.h <<_ACEOF
2209 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2210 _ACEOF
2211
2212 cat >>confdefs.h <<_ACEOF
2213 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2214 _ACEOF
2215
2216 cat >>confdefs.h <<_ACEOF
2217 #define PACKAGE_STRING "$PACKAGE_STRING"
2218 _ACEOF
2219
2220 cat >>confdefs.h <<_ACEOF
2221 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2222 _ACEOF
2223
2224 cat >>confdefs.h <<_ACEOF
2225 #define PACKAGE_URL "$PACKAGE_URL"
2226 _ACEOF
2227
2228
2229 # Let the site file select an alternate cache file if it wants to.
2230 # Prefer an explicitly selected file to automatically selected ones.
2231 ac_site_file1=NONE
2232 ac_site_file2=NONE
2233 if test -n "$CONFIG_SITE"; then
2234 # We do not want a PATH search for config.site.
2235 case $CONFIG_SITE in #((
2236 -*) ac_site_file1=./$CONFIG_SITE;;
2237 */*) ac_site_file1=$CONFIG_SITE;;
2238 *) ac_site_file1=./$CONFIG_SITE;;
2239 esac
2240 elif test "x$prefix" != xNONE; then
2241 ac_site_file1=$prefix/share/config.site
2242 ac_site_file2=$prefix/etc/config.site
2243 else
2244 ac_site_file1=$ac_default_prefix/share/config.site
2245 ac_site_file2=$ac_default_prefix/etc/config.site
2246 fi
2247 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2248 do
2249 test "x$ac_site_file" = xNONE && continue
2250 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2252 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2253 sed 's/^/| /' "$ac_site_file" >&5
2254 . "$ac_site_file" \
2255 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2256 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2257 as_fn_error $? "failed to load site script $ac_site_file
2258 See \`config.log' for more details" "$LINENO" 5; }
2259 fi
2260 done
2261
2262 if test -r "$cache_file"; then
2263 # Some versions of bash will fail to source /dev/null (special files
2264 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2265 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2266 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2267 $as_echo "$as_me: loading cache $cache_file" >&6;}
2268 case $cache_file in
2269 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2270 *) . "./$cache_file";;
2271 esac
2272 fi
2273 else
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2275 $as_echo "$as_me: creating cache $cache_file" >&6;}
2276 >$cache_file
2277 fi
2278
2279 # Check that the precious variables saved in the cache have kept the same
2280 # value.
2281 ac_cache_corrupted=false
2282 for ac_var in $ac_precious_vars; do
2283 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2284 eval ac_new_set=\$ac_env_${ac_var}_set
2285 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2286 eval ac_new_val=\$ac_env_${ac_var}_value
2287 case $ac_old_set,$ac_new_set in
2288 set,)
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2290 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2291 ac_cache_corrupted=: ;;
2292 ,set)
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2294 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2295 ac_cache_corrupted=: ;;
2296 ,);;
2297 *)
2298 if test "x$ac_old_val" != "x$ac_new_val"; then
2299 # differences in whitespace do not lead to failure.
2300 ac_old_val_w=`echo x $ac_old_val`
2301 ac_new_val_w=`echo x $ac_new_val`
2302 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2304 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2305 ac_cache_corrupted=:
2306 else
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2308 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2309 eval $ac_var=\$ac_old_val
2310 fi
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2312 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2314 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2315 fi;;
2316 esac
2317 # Pass precious variables to config.status.
2318 if test "$ac_new_set" = set; then
2319 case $ac_new_val in
2320 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2321 *) ac_arg=$ac_var=$ac_new_val ;;
2322 esac
2323 case " $ac_configure_args " in
2324 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2325 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2326 esac
2327 fi
2328 done
2329 if $ac_cache_corrupted; then
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2331 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2332 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2333 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2334 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2335 fi
2336 ## -------------------- ##
2337 ## Main body of script. ##
2338 ## -------------------- ##
2339
2340 ac_ext=c
2341 ac_cpp='$CPP $CPPFLAGS'
2342 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2343 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2344 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2345
2346
2347
2348 ac_config_headers="$ac_config_headers config.h"
2349
2350 ac_aux_dir=
2351 for ac_dir in . "$srcdir"/.; do
2352 if test -f "$ac_dir/install-sh"; then
2353 ac_aux_dir=$ac_dir
2354 ac_install_sh="$ac_aux_dir/install-sh -c"
2355 break
2356 elif test -f "$ac_dir/install.sh"; then
2357 ac_aux_dir=$ac_dir
2358 ac_install_sh="$ac_aux_dir/install.sh -c"
2359 break
2360 elif test -f "$ac_dir/shtool"; then
2361 ac_aux_dir=$ac_dir
2362 ac_install_sh="$ac_aux_dir/shtool install -c"
2363 break
2364 fi
2365 done
2366 if test -z "$ac_aux_dir"; then
2367 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2368 fi
2369
2370 # These three variables are undocumented and unsupported,
2371 # and are intended to be withdrawn in a future Autoconf release.
2372 # They can cause serious problems if a builder's source tree is in a directory
2373 # whose full name contains unusual characters.
2374 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2375 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2376 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2377
2378
2379
2380 # Initialize Automake
2381 am__api_version='1.15'
2382
2383 # Find a good install program. We prefer a C program (faster),
2384 # so one script is as good as another. But avoid the broken or
2385 # incompatible versions:
2386 # SysV /etc/install, /usr/sbin/install
2387 # SunOS /usr/etc/install
2388 # IRIX /sbin/install
2389 # AIX /bin/install
2390 # AmigaOS /C/install, which installs bootblocks on floppy discs
2391 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2392 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2393 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2394 # OS/2's system install, which has a completely different semantic
2395 # ./install, which can be erroneously created by make from ./install.sh.
2396 # Reject install programs that cannot install multiple files.
2397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2398 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2399 if test -z "$INSTALL"; then
2400 if ${ac_cv_path_install+:} false; then :
2401 $as_echo_n "(cached) " >&6
2402 else
2403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2404 for as_dir in $PATH
2405 do
2406 IFS=$as_save_IFS
2407 test -z "$as_dir" && as_dir=.
2408 # Account for people who put trailing slashes in PATH elements.
2409 case $as_dir/ in #((
2410 ./ | .// | /[cC]/* | \
2411 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2412 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2413 /usr/ucb/* ) ;;
2414 *)
2415 # OSF1 and SCO ODT 3.0 have their own names for install.
2416 # Don't use installbsd from OSF since it installs stuff as root
2417 # by default.
2418 for ac_prog in ginstall scoinst install; do
2419 for ac_exec_ext in '' $ac_executable_extensions; do
2420 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2421 if test $ac_prog = install &&
2422 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2423 # AIX install. It has an incompatible calling convention.
2424 :
2425 elif test $ac_prog = install &&
2426 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2427 # program-specific install script used by HP pwplus--don't use.
2428 :
2429 else
2430 rm -rf conftest.one conftest.two conftest.dir
2431 echo one > conftest.one
2432 echo two > conftest.two
2433 mkdir conftest.dir
2434 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2435 test -s conftest.one && test -s conftest.two &&
2436 test -s conftest.dir/conftest.one &&
2437 test -s conftest.dir/conftest.two
2438 then
2439 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2440 break 3
2441 fi
2442 fi
2443 fi
2444 done
2445 done
2446 ;;
2447 esac
2448
2449 done
2450 IFS=$as_save_IFS
2451
2452 rm -rf conftest.one conftest.two conftest.dir
2453
2454 fi
2455 if test "${ac_cv_path_install+set}" = set; then
2456 INSTALL=$ac_cv_path_install
2457 else
2458 # As a last resort, use the slow shell script. Don't cache a
2459 # value for INSTALL within a source directory, because that will
2460 # break other packages using the cache if that directory is
2461 # removed, or if the value is a relative name.
2462 INSTALL=$ac_install_sh
2463 fi
2464 fi
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2466 $as_echo "$INSTALL" >&6; }
2467
2468 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2469 # It thinks the first close brace ends the variable substitution.
2470 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2471
2472 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2473
2474 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2475
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2477 $as_echo_n "checking whether build environment is sane... " >&6; }
2478 # Reject unsafe characters in $srcdir or the absolute working directory
2479 # name. Accept space and tab only in the latter.
2480 am_lf='
2481 '
2482 case `pwd` in
2483 *[\\\"\#\$\&\'\`$am_lf]*)
2484 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2485 esac
2486 case $srcdir in
2487 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2488 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2489 esac
2490
2491 # Do 'set' in a subshell so we don't clobber the current shell's
2492 # arguments. Must try -L first in case configure is actually a
2493 # symlink; some systems play weird games with the mod time of symlinks
2494 # (eg FreeBSD returns the mod time of the symlink's containing
2495 # directory).
2496 if (
2497 am_has_slept=no
2498 for am_try in 1 2; do
2499 echo "timestamp, slept: $am_has_slept" > conftest.file
2500 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2501 if test "$*" = "X"; then
2502 # -L didn't work.
2503 set X `ls -t "$srcdir/configure" conftest.file`
2504 fi
2505 if test "$*" != "X $srcdir/configure conftest.file" \
2506 && test "$*" != "X conftest.file $srcdir/configure"; then
2507
2508 # If neither matched, then we have a broken ls. This can happen
2509 # if, for instance, CONFIG_SHELL is bash and it inherits a
2510 # broken ls alias from the environment. This has actually
2511 # happened. Such a system could not be considered "sane".
2512 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2513 alias in your environment" "$LINENO" 5
2514 fi
2515 if test "$2" = conftest.file || test $am_try -eq 2; then
2516 break
2517 fi
2518 # Just in case.
2519 sleep 1
2520 am_has_slept=yes
2521 done
2522 test "$2" = conftest.file
2523 )
2524 then
2525 # Ok.
2526 :
2527 else
2528 as_fn_error $? "newly created file is older than distributed files!
2529 Check your system clock" "$LINENO" 5
2530 fi
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2532 $as_echo "yes" >&6; }
2533 # If we didn't sleep, we still need to ensure time stamps of config.status and
2534 # generated files are strictly newer.
2535 am_sleep_pid=
2536 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2537 ( sleep 1 ) &
2538 am_sleep_pid=$!
2539 fi
2540
2541 rm -f conftest.file
2542
2543 test "$program_prefix" != NONE &&
2544 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2545 # Use a double $ so make ignores it.
2546 test "$program_suffix" != NONE &&
2547 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2548 # Double any \ or $.
2549 # By default was `s,x,x', remove it if useless.
2550 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2551 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2552
2553 # Expand $ac_aux_dir to an absolute path.
2554 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2555
2556 if test x"${MISSING+set}" != xset; then
2557 case $am_aux_dir in
2558 *\ * | *\ *)
2559 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2560 *)
2561 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2562 esac
2563 fi
2564 # Use eval to expand $SHELL
2565 if eval "$MISSING --is-lightweight"; then
2566 am_missing_run="$MISSING "
2567 else
2568 am_missing_run=
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2570 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2571 fi
2572
2573 if test x"${install_sh+set}" != xset; then
2574 case $am_aux_dir in
2575 *\ * | *\ *)
2576 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2577 *)
2578 install_sh="\${SHELL} $am_aux_dir/install-sh"
2579 esac
2580 fi
2581
2582 # Installed binaries are usually stripped using 'strip' when the user
2583 # run "make install-strip". However 'strip' might not be the right
2584 # tool to use in cross-compilation environments, therefore Automake
2585 # will honor the 'STRIP' environment variable to overrule this program.
2586 if test "$cross_compiling" != no; then
2587 if test -n "$ac_tool_prefix"; then
2588 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2589 set dummy ${ac_tool_prefix}strip; ac_word=$2
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2591 $as_echo_n "checking for $ac_word... " >&6; }
2592 if ${ac_cv_prog_STRIP+:} false; then :
2593 $as_echo_n "(cached) " >&6
2594 else
2595 if test -n "$STRIP"; then
2596 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2597 else
2598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2599 for as_dir in $PATH
2600 do
2601 IFS=$as_save_IFS
2602 test -z "$as_dir" && as_dir=.
2603 for ac_exec_ext in '' $ac_executable_extensions; do
2604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2605 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2607 break 2
2608 fi
2609 done
2610 done
2611 IFS=$as_save_IFS
2612
2613 fi
2614 fi
2615 STRIP=$ac_cv_prog_STRIP
2616 if test -n "$STRIP"; then
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2618 $as_echo "$STRIP" >&6; }
2619 else
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2621 $as_echo "no" >&6; }
2622 fi
2623
2624
2625 fi
2626 if test -z "$ac_cv_prog_STRIP"; then
2627 ac_ct_STRIP=$STRIP
2628 # Extract the first word of "strip", so it can be a program name with args.
2629 set dummy strip; ac_word=$2
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2631 $as_echo_n "checking for $ac_word... " >&6; }
2632 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2633 $as_echo_n "(cached) " >&6
2634 else
2635 if test -n "$ac_ct_STRIP"; then
2636 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2637 else
2638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2639 for as_dir in $PATH
2640 do
2641 IFS=$as_save_IFS
2642 test -z "$as_dir" && as_dir=.
2643 for ac_exec_ext in '' $ac_executable_extensions; do
2644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2645 ac_cv_prog_ac_ct_STRIP="strip"
2646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2647 break 2
2648 fi
2649 done
2650 done
2651 IFS=$as_save_IFS
2652
2653 fi
2654 fi
2655 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2656 if test -n "$ac_ct_STRIP"; then
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2658 $as_echo "$ac_ct_STRIP" >&6; }
2659 else
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2661 $as_echo "no" >&6; }
2662 fi
2663
2664 if test "x$ac_ct_STRIP" = x; then
2665 STRIP=":"
2666 else
2667 case $cross_compiling:$ac_tool_warned in
2668 yes:)
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2670 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2671 ac_tool_warned=yes ;;
2672 esac
2673 STRIP=$ac_ct_STRIP
2674 fi
2675 else
2676 STRIP="$ac_cv_prog_STRIP"
2677 fi
2678
2679 fi
2680 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2681
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2683 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2684 if test -z "$MKDIR_P"; then
2685 if ${ac_cv_path_mkdir+:} false; then :
2686 $as_echo_n "(cached) " >&6
2687 else
2688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2689 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2690 do
2691 IFS=$as_save_IFS
2692 test -z "$as_dir" && as_dir=.
2693 for ac_prog in mkdir gmkdir; do
2694 for ac_exec_ext in '' $ac_executable_extensions; do
2695 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2696 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2697 'mkdir (GNU coreutils) '* | \
2698 'mkdir (coreutils) '* | \
2699 'mkdir (fileutils) '4.1*)
2700 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2701 break 3;;
2702 esac
2703 done
2704 done
2705 done
2706 IFS=$as_save_IFS
2707
2708 fi
2709
2710 test -d ./--version && rmdir ./--version
2711 if test "${ac_cv_path_mkdir+set}" = set; then
2712 MKDIR_P="$ac_cv_path_mkdir -p"
2713 else
2714 # As a last resort, use the slow shell script. Don't cache a
2715 # value for MKDIR_P within a source directory, because that will
2716 # break other packages using the cache if that directory is
2717 # removed, or if the value is a relative name.
2718 MKDIR_P="$ac_install_sh -d"
2719 fi
2720 fi
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2722 $as_echo "$MKDIR_P" >&6; }
2723
2724 for ac_prog in gawk mawk nawk awk
2725 do
2726 # Extract the first word of "$ac_prog", so it can be a program name with args.
2727 set dummy $ac_prog; ac_word=$2
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2729 $as_echo_n "checking for $ac_word... " >&6; }
2730 if ${ac_cv_prog_AWK+:} false; then :
2731 $as_echo_n "(cached) " >&6
2732 else
2733 if test -n "$AWK"; then
2734 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2735 else
2736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2737 for as_dir in $PATH
2738 do
2739 IFS=$as_save_IFS
2740 test -z "$as_dir" && as_dir=.
2741 for ac_exec_ext in '' $ac_executable_extensions; do
2742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2743 ac_cv_prog_AWK="$ac_prog"
2744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2745 break 2
2746 fi
2747 done
2748 done
2749 IFS=$as_save_IFS
2750
2751 fi
2752 fi
2753 AWK=$ac_cv_prog_AWK
2754 if test -n "$AWK"; then
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2756 $as_echo "$AWK" >&6; }
2757 else
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2759 $as_echo "no" >&6; }
2760 fi
2761
2762
2763 test -n "$AWK" && break
2764 done
2765
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2767 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2768 set x ${MAKE-make}
2769 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2770 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2771 $as_echo_n "(cached) " >&6
2772 else
2773 cat >conftest.make <<\_ACEOF
2774 SHELL = /bin/sh
2775 all:
2776 @echo '@@@%%%=$(MAKE)=@@@%%%'
2777 _ACEOF
2778 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2779 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2780 *@@@%%%=?*=@@@%%%*)
2781 eval ac_cv_prog_make_${ac_make}_set=yes;;
2782 *)
2783 eval ac_cv_prog_make_${ac_make}_set=no;;
2784 esac
2785 rm -f conftest.make
2786 fi
2787 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2789 $as_echo "yes" >&6; }
2790 SET_MAKE=
2791 else
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2793 $as_echo "no" >&6; }
2794 SET_MAKE="MAKE=${MAKE-make}"
2795 fi
2796
2797 rm -rf .tst 2>/dev/null
2798 mkdir .tst 2>/dev/null
2799 if test -d .tst; then
2800 am__leading_dot=.
2801 else
2802 am__leading_dot=_
2803 fi
2804 rmdir .tst 2>/dev/null
2805
2806 # Check whether --enable-silent-rules was given.
2807 if test "${enable_silent_rules+set}" = set; then :
2808 enableval=$enable_silent_rules;
2809 fi
2810
2811 case $enable_silent_rules in # (((
2812 yes) AM_DEFAULT_VERBOSITY=0;;
2813 no) AM_DEFAULT_VERBOSITY=1;;
2814 *) AM_DEFAULT_VERBOSITY=1;;
2815 esac
2816 am_make=${MAKE-make}
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2818 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2819 if ${am_cv_make_support_nested_variables+:} false; then :
2820 $as_echo_n "(cached) " >&6
2821 else
2822 if $as_echo 'TRUE=$(BAR$(V))
2823 BAR0=false
2824 BAR1=true
2825 V=1
2826 am__doit:
2827 @$(TRUE)
2828 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2829 am_cv_make_support_nested_variables=yes
2830 else
2831 am_cv_make_support_nested_variables=no
2832 fi
2833 fi
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2835 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2836 if test $am_cv_make_support_nested_variables = yes; then
2837 AM_V='$(V)'
2838 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2839 else
2840 AM_V=$AM_DEFAULT_VERBOSITY
2841 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2842 fi
2843 AM_BACKSLASH='\'
2844
2845 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2846 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2847 # is not polluted with repeated "-I."
2848 am__isrc=' -I$(srcdir)'
2849 # test to see if srcdir already configured
2850 if test -f $srcdir/config.status; then
2851 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2852 fi
2853 fi
2854
2855 # test whether we have cygpath
2856 if test -z "$CYGPATH_W"; then
2857 if (cygpath --version) >/dev/null 2>/dev/null; then
2858 CYGPATH_W='cygpath -w'
2859 else
2860 CYGPATH_W=echo
2861 fi
2862 fi
2863
2864
2865 # Define the identity of the package.
2866 PACKAGE='xf86-video-tdfx'
2867 VERSION='1.5.0'
2868
2869
2870 cat >>confdefs.h <<_ACEOF
2871 #define PACKAGE "$PACKAGE"
2872 _ACEOF
2873
2874
2875 cat >>confdefs.h <<_ACEOF
2876 #define VERSION "$VERSION"
2877 _ACEOF
2878
2879 # Some tools Automake needs.
2880
2881 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2882
2883
2884 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2885
2886
2887 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2888
2889
2890 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2891
2892
2893 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2894
2895 # For better backward compatibility. To be removed once Automake 1.9.x
2896 # dies out for good. For more background, see:
2897 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2898 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2899 mkdir_p='$(MKDIR_P)'
2900
2901 # We need awk for the "check" target (and possibly the TAP driver). The
2902 # system "awk" is bad on some platforms.
2903 # Always define AMTAR for backward compatibility. Yes, it's still used
2904 # in the wild :-( We should find a proper way to deprecate it ...
2905 AMTAR='$${TAR-tar}'
2906
2907
2908 # We'll loop over all known methods to create a tar archive until one works.
2909 _am_tools='gnutar pax cpio none'
2910
2911 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2912
2913
2914
2915
2916
2917
2918 # POSIX will say in a future version that running "rm -f" with no argument
2919 # is OK; and we want to be able to make that assumption in our Makefile
2920 # recipes. So use an aggressive probe to check that the usage we want is
2921 # actually supported "in the wild" to an acceptable degree.
2922 # See automake bug#10828.
2923 # To make any issue more visible, cause the running configure to be aborted
2924 # by default if the 'rm' program in use doesn't match our expectations; the
2925 # user can still override this though.
2926 if rm -f && rm -fr && rm -rf; then : OK; else
2927 cat >&2 <<'END'
2928 Oops!
2929
2930 Your 'rm' program seems unable to run without file operands specified
2931 on the command line, even when the '-f' option is present. This is contrary
2932 to the behaviour of most rm programs out there, and not conforming with
2933 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2934
2935 Please tell bug-automake@gnu.org about your system, including the value
2936 of your $PATH and any error possibly output before this message. This
2937 can help us improve future automake versions.
2938
2939 END
2940 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2941 echo 'Configuration will proceed anyway, since you have set the' >&2
2942 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2943 echo >&2
2944 else
2945 cat >&2 <<'END'
2946 Aborting the configuration process, to ensure you take notice of the issue.
2947
2948 You can download and install GNU coreutils to get an 'rm' implementation
2949 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2950
2951 If you want to complete the configuration process using your problematic
2952 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2953 to "yes", and re-run configure.
2954
2955 END
2956 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2957 fi
2958 fi
2959
2960
2961 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973 DEPDIR="${am__leading_dot}deps"
2974
2975 ac_config_commands="$ac_config_commands depfiles"
2976
2977
2978 am_make=${MAKE-make}
2979 cat > confinc << 'END'
2980 am__doit:
2981 @echo this is the am__doit target
2982 .PHONY: am__doit
2983 END
2984 # If we don't find an include directive, just comment out the code.
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2986 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2987 am__include="#"
2988 am__quote=
2989 _am_result=none
2990 # First try GNU make style include.
2991 echo "include confinc" > confmf
2992 # Ignore all kinds of additional output from 'make'.
2993 case `$am_make -s -f confmf 2> /dev/null` in #(
2994 *the\ am__doit\ target*)
2995 am__include=include
2996 am__quote=
2997 _am_result=GNU
2998 ;;
2999 esac
3000 # Now try BSD make style include.
3001 if test "$am__include" = "#"; then
3002 echo '.include "confinc"' > confmf
3003 case `$am_make -s -f confmf 2> /dev/null` in #(
3004 *the\ am__doit\ target*)
3005 am__include=.include
3006 am__quote="\""
3007 _am_result=BSD
3008 ;;
3009 esac
3010 fi
3011
3012
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3014 $as_echo "$_am_result" >&6; }
3015 rm -f confinc confmf
3016
3017 # Check whether --enable-dependency-tracking was given.
3018 if test "${enable_dependency_tracking+set}" = set; then :
3019 enableval=$enable_dependency_tracking;
3020 fi
3021
3022 if test "x$enable_dependency_tracking" != xno; then
3023 am_depcomp="$ac_aux_dir/depcomp"
3024 AMDEPBACKSLASH='\'
3025 am__nodep='_no'
3026 fi
3027 if test "x$enable_dependency_tracking" != xno; then
3028 AMDEP_TRUE=
3029 AMDEP_FALSE='#'
3030 else
3031 AMDEP_TRUE='#'
3032 AMDEP_FALSE=
3033 fi
3034
3035
3036 ac_ext=c
3037 ac_cpp='$CPP $CPPFLAGS'
3038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3041 if test -n "$ac_tool_prefix"; then
3042 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3043 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3045 $as_echo_n "checking for $ac_word... " >&6; }
3046 if ${ac_cv_prog_CC+:} false; then :
3047 $as_echo_n "(cached) " >&6
3048 else
3049 if test -n "$CC"; then
3050 ac_cv_prog_CC="$CC" # Let the user override the test.
3051 else
3052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3053 for as_dir in $PATH
3054 do
3055 IFS=$as_save_IFS
3056 test -z "$as_dir" && as_dir=.
3057 for ac_exec_ext in '' $ac_executable_extensions; do
3058 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3059 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3061 break 2
3062 fi
3063 done
3064 done
3065 IFS=$as_save_IFS
3066
3067 fi
3068 fi
3069 CC=$ac_cv_prog_CC
3070 if test -n "$CC"; then
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3072 $as_echo "$CC" >&6; }
3073 else
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3075 $as_echo "no" >&6; }
3076 fi
3077
3078
3079 fi
3080 if test -z "$ac_cv_prog_CC"; then
3081 ac_ct_CC=$CC
3082 # Extract the first word of "gcc", so it can be a program name with args.
3083 set dummy gcc; ac_word=$2
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3085 $as_echo_n "checking for $ac_word... " >&6; }
3086 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3087 $as_echo_n "(cached) " >&6
3088 else
3089 if test -n "$ac_ct_CC"; then
3090 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3091 else
3092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3093 for as_dir in $PATH
3094 do
3095 IFS=$as_save_IFS
3096 test -z "$as_dir" && as_dir=.
3097 for ac_exec_ext in '' $ac_executable_extensions; do
3098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3099 ac_cv_prog_ac_ct_CC="gcc"
3100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3101 break 2
3102 fi
3103 done
3104 done
3105 IFS=$as_save_IFS
3106
3107 fi
3108 fi
3109 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3110 if test -n "$ac_ct_CC"; then
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3112 $as_echo "$ac_ct_CC" >&6; }
3113 else
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3115 $as_echo "no" >&6; }
3116 fi
3117
3118 if test "x$ac_ct_CC" = x; then
3119 CC=""
3120 else
3121 case $cross_compiling:$ac_tool_warned in
3122 yes:)
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3124 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3125 ac_tool_warned=yes ;;
3126 esac
3127 CC=$ac_ct_CC
3128 fi
3129 else
3130 CC="$ac_cv_prog_CC"
3131 fi
3132
3133 if test -z "$CC"; then
3134 if test -n "$ac_tool_prefix"; then
3135 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3136 set dummy ${ac_tool_prefix}cc; ac_word=$2
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3138 $as_echo_n "checking for $ac_word... " >&6; }
3139 if ${ac_cv_prog_CC+:} false; then :
3140 $as_echo_n "(cached) " >&6
3141 else
3142 if test -n "$CC"; then
3143 ac_cv_prog_CC="$CC" # Let the user override the test.
3144 else
3145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3146 for as_dir in $PATH
3147 do
3148 IFS=$as_save_IFS
3149 test -z "$as_dir" && as_dir=.
3150 for ac_exec_ext in '' $ac_executable_extensions; do
3151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3152 ac_cv_prog_CC="${ac_tool_prefix}cc"
3153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3154 break 2
3155 fi
3156 done
3157 done
3158 IFS=$as_save_IFS
3159
3160 fi
3161 fi
3162 CC=$ac_cv_prog_CC
3163 if test -n "$CC"; then
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3165 $as_echo "$CC" >&6; }
3166 else
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3168 $as_echo "no" >&6; }
3169 fi
3170
3171
3172 fi
3173 fi
3174 if test -z "$CC"; then
3175 # Extract the first word of "cc", so it can be a program name with args.
3176 set dummy cc; ac_word=$2
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3178 $as_echo_n "checking for $ac_word... " >&6; }
3179 if ${ac_cv_prog_CC+:} false; then :
3180 $as_echo_n "(cached) " >&6
3181 else
3182 if test -n "$CC"; then
3183 ac_cv_prog_CC="$CC" # Let the user override the test.
3184 else
3185 ac_prog_rejected=no
3186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3187 for as_dir in $PATH
3188 do
3189 IFS=$as_save_IFS
3190 test -z "$as_dir" && as_dir=.
3191 for ac_exec_ext in '' $ac_executable_extensions; do
3192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3193 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3194 ac_prog_rejected=yes
3195 continue
3196 fi
3197 ac_cv_prog_CC="cc"
3198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3199 break 2
3200 fi
3201 done
3202 done
3203 IFS=$as_save_IFS
3204
3205 if test $ac_prog_rejected = yes; then
3206 # We found a bogon in the path, so make sure we never use it.
3207 set dummy $ac_cv_prog_CC
3208 shift
3209 if test $# != 0; then
3210 # We chose a different compiler from the bogus one.
3211 # However, it has the same basename, so the bogon will be chosen
3212 # first if we set CC to just the basename; use the full file name.
3213 shift
3214 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3215 fi
3216 fi
3217 fi
3218 fi
3219 CC=$ac_cv_prog_CC
3220 if test -n "$CC"; then
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3222 $as_echo "$CC" >&6; }
3223 else
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3225 $as_echo "no" >&6; }
3226 fi
3227
3228
3229 fi
3230 if test -z "$CC"; then
3231 if test -n "$ac_tool_prefix"; then
3232 for ac_prog in cl.exe
3233 do
3234 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3235 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3237 $as_echo_n "checking for $ac_word... " >&6; }
3238 if ${ac_cv_prog_CC+:} false; then :
3239 $as_echo_n "(cached) " >&6
3240 else
3241 if test -n "$CC"; then
3242 ac_cv_prog_CC="$CC" # Let the user override the test.
3243 else
3244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3245 for as_dir in $PATH
3246 do
3247 IFS=$as_save_IFS
3248 test -z "$as_dir" && as_dir=.
3249 for ac_exec_ext in '' $ac_executable_extensions; do
3250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3251 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3253 break 2
3254 fi
3255 done
3256 done
3257 IFS=$as_save_IFS
3258
3259 fi
3260 fi
3261 CC=$ac_cv_prog_CC
3262 if test -n "$CC"; then
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3264 $as_echo "$CC" >&6; }
3265 else
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3267 $as_echo "no" >&6; }
3268 fi
3269
3270
3271 test -n "$CC" && break
3272 done
3273 fi
3274 if test -z "$CC"; then
3275 ac_ct_CC=$CC
3276 for ac_prog in cl.exe
3277 do
3278 # Extract the first word of "$ac_prog", so it can be a program name with args.
3279 set dummy $ac_prog; ac_word=$2
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3281 $as_echo_n "checking for $ac_word... " >&6; }
3282 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3283 $as_echo_n "(cached) " >&6
3284 else
3285 if test -n "$ac_ct_CC"; then
3286 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3287 else
3288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3289 for as_dir in $PATH
3290 do
3291 IFS=$as_save_IFS
3292 test -z "$as_dir" && as_dir=.
3293 for ac_exec_ext in '' $ac_executable_extensions; do
3294 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3295 ac_cv_prog_ac_ct_CC="$ac_prog"
3296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3297 break 2
3298 fi
3299 done
3300 done
3301 IFS=$as_save_IFS
3302
3303 fi
3304 fi
3305 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3306 if test -n "$ac_ct_CC"; then
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3308 $as_echo "$ac_ct_CC" >&6; }
3309 else
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3311 $as_echo "no" >&6; }
3312 fi
3313
3314
3315 test -n "$ac_ct_CC" && break
3316 done
3317
3318 if test "x$ac_ct_CC" = x; then
3319 CC=""
3320 else
3321 case $cross_compiling:$ac_tool_warned in
3322 yes:)
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3324 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3325 ac_tool_warned=yes ;;
3326 esac
3327 CC=$ac_ct_CC
3328 fi
3329 fi
3330
3331 fi
3332
3333
3334 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3335 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3336 as_fn_error $? "no acceptable C compiler found in \$PATH
3337 See \`config.log' for more details" "$LINENO" 5; }
3338
3339 # Provide some information about the compiler.
3340 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3341 set X $ac_compile
3342 ac_compiler=$2
3343 for ac_option in --version -v -V -qversion; do
3344 { { ac_try="$ac_compiler $ac_option >&5"
3345 case "(($ac_try" in
3346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3347 *) ac_try_echo=$ac_try;;
3348 esac
3349 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3350 $as_echo "$ac_try_echo"; } >&5
3351 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3352 ac_status=$?
3353 if test -s conftest.err; then
3354 sed '10a\
3355 ... rest of stderr output deleted ...
3356 10q' conftest.err >conftest.er1
3357 cat conftest.er1 >&5
3358 fi
3359 rm -f conftest.er1 conftest.err
3360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3361 test $ac_status = 0; }
3362 done
3363
3364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3365 /* end confdefs.h. */
3366
3367 int
3368 main ()
3369 {
3370
3371 ;
3372 return 0;
3373 }
3374 _ACEOF
3375 ac_clean_files_save=$ac_clean_files
3376 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3377 # Try to create an executable without -o first, disregard a.out.
3378 # It will help us diagnose broken compilers, and finding out an intuition
3379 # of exeext.
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3381 $as_echo_n "checking whether the C compiler works... " >&6; }
3382 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3383
3384 # The possible output files:
3385 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3386
3387 ac_rmfiles=
3388 for ac_file in $ac_files
3389 do
3390 case $ac_file in
3391 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3392 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3393 esac
3394 done
3395 rm -f $ac_rmfiles
3396
3397 if { { ac_try="$ac_link_default"
3398 case "(($ac_try" in
3399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3400 *) ac_try_echo=$ac_try;;
3401 esac
3402 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3403 $as_echo "$ac_try_echo"; } >&5
3404 (eval "$ac_link_default") 2>&5
3405 ac_status=$?
3406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3407 test $ac_status = 0; }; then :
3408 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3409 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3410 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3411 # so that the user can short-circuit this test for compilers unknown to
3412 # Autoconf.
3413 for ac_file in $ac_files ''
3414 do
3415 test -f "$ac_file" || continue
3416 case $ac_file in
3417 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3418 ;;
3419 [ab].out )
3420 # We found the default executable, but exeext='' is most
3421 # certainly right.
3422 break;;
3423 *.* )
3424 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3425 then :; else
3426 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3427 fi
3428 # We set ac_cv_exeext here because the later test for it is not
3429 # safe: cross compilers may not add the suffix if given an `-o'
3430 # argument, so we may need to know it at that point already.
3431 # Even if this section looks crufty: it has the advantage of
3432 # actually working.
3433 break;;
3434 * )
3435 break;;
3436 esac
3437 done
3438 test "$ac_cv_exeext" = no && ac_cv_exeext=
3439
3440 else
3441 ac_file=''
3442 fi
3443 if test -z "$ac_file"; then :
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3445 $as_echo "no" >&6; }
3446 $as_echo "$as_me: failed program was:" >&5
3447 sed 's/^/| /' conftest.$ac_ext >&5
3448
3449 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3450 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3451 as_fn_error 77 "C compiler cannot create executables
3452 See \`config.log' for more details" "$LINENO" 5; }
3453 else
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3455 $as_echo "yes" >&6; }
3456 fi
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3458 $as_echo_n "checking for C compiler default output file name... " >&6; }
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3460 $as_echo "$ac_file" >&6; }
3461 ac_exeext=$ac_cv_exeext
3462
3463 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3464 ac_clean_files=$ac_clean_files_save
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3466 $as_echo_n "checking for suffix of executables... " >&6; }
3467 if { { ac_try="$ac_link"
3468 case "(($ac_try" in
3469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3470 *) ac_try_echo=$ac_try;;
3471 esac
3472 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3473 $as_echo "$ac_try_echo"; } >&5
3474 (eval "$ac_link") 2>&5
3475 ac_status=$?
3476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3477 test $ac_status = 0; }; then :
3478 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3479 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3480 # work properly (i.e., refer to `conftest.exe'), while it won't with
3481 # `rm'.
3482 for ac_file in conftest.exe conftest conftest.*; do
3483 test -f "$ac_file" || continue
3484 case $ac_file in
3485 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3486 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3487 break;;
3488 * ) break;;
3489 esac
3490 done
3491 else
3492 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3493 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3494 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3495 See \`config.log' for more details" "$LINENO" 5; }
3496 fi
3497 rm -f conftest conftest$ac_cv_exeext
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3499 $as_echo "$ac_cv_exeext" >&6; }
3500
3501 rm -f conftest.$ac_ext
3502 EXEEXT=$ac_cv_exeext
3503 ac_exeext=$EXEEXT
3504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3505 /* end confdefs.h. */
3506 #include <stdio.h>
3507 int
3508 main ()
3509 {
3510 FILE *f = fopen ("conftest.out", "w");
3511 return ferror (f) || fclose (f) != 0;
3512
3513 ;
3514 return 0;
3515 }
3516 _ACEOF
3517 ac_clean_files="$ac_clean_files conftest.out"
3518 # Check that the compiler produces executables we can run. If not, either
3519 # the compiler is broken, or we cross compile.
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3521 $as_echo_n "checking whether we are cross compiling... " >&6; }
3522 if test "$cross_compiling" != yes; then
3523 { { ac_try="$ac_link"
3524 case "(($ac_try" in
3525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3526 *) ac_try_echo=$ac_try;;
3527 esac
3528 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3529 $as_echo "$ac_try_echo"; } >&5
3530 (eval "$ac_link") 2>&5
3531 ac_status=$?
3532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3533 test $ac_status = 0; }
3534 if { ac_try='./conftest$ac_cv_exeext'
3535 { { case "(($ac_try" in
3536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3537 *) ac_try_echo=$ac_try;;
3538 esac
3539 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3540 $as_echo "$ac_try_echo"; } >&5
3541 (eval "$ac_try") 2>&5
3542 ac_status=$?
3543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3544 test $ac_status = 0; }; }; then
3545 cross_compiling=no
3546 else
3547 if test "$cross_compiling" = maybe; then
3548 cross_compiling=yes
3549 else
3550 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3551 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3552 as_fn_error $? "cannot run C compiled programs.
3553 If you meant to cross compile, use \`--host'.
3554 See \`config.log' for more details" "$LINENO" 5; }
3555 fi
3556 fi
3557 fi
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3559 $as_echo "$cross_compiling" >&6; }
3560
3561 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3562 ac_clean_files=$ac_clean_files_save
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3564 $as_echo_n "checking for suffix of object files... " >&6; }
3565 if ${ac_cv_objext+:} false; then :
3566 $as_echo_n "(cached) " >&6
3567 else
3568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3569 /* end confdefs.h. */
3570
3571 int
3572 main ()
3573 {
3574
3575 ;
3576 return 0;
3577 }
3578 _ACEOF
3579 rm -f conftest.o conftest.obj
3580 if { { ac_try="$ac_compile"
3581 case "(($ac_try" in
3582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3583 *) ac_try_echo=$ac_try;;
3584 esac
3585 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3586 $as_echo "$ac_try_echo"; } >&5
3587 (eval "$ac_compile") 2>&5
3588 ac_status=$?
3589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3590 test $ac_status = 0; }; then :
3591 for ac_file in conftest.o conftest.obj conftest.*; do
3592 test -f "$ac_file" || continue;
3593 case $ac_file in
3594 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3595 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3596 break;;
3597 esac
3598 done
3599 else
3600 $as_echo "$as_me: failed program was:" >&5
3601 sed 's/^/| /' conftest.$ac_ext >&5
3602
3603 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3604 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3605 as_fn_error $? "cannot compute suffix of object files: cannot compile
3606 See \`config.log' for more details" "$LINENO" 5; }
3607 fi
3608 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3609 fi
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3611 $as_echo "$ac_cv_objext" >&6; }
3612 OBJEXT=$ac_cv_objext
3613 ac_objext=$OBJEXT
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3615 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3616 if ${ac_cv_c_compiler_gnu+:} false; then :
3617 $as_echo_n "(cached) " >&6
3618 else
3619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3620 /* end confdefs.h. */
3621
3622 int
3623 main ()
3624 {
3625 #ifndef __GNUC__
3626 choke me
3627 #endif
3628
3629 ;
3630 return 0;
3631 }
3632 _ACEOF
3633 if ac_fn_c_try_compile "$LINENO"; then :
3634 ac_compiler_gnu=yes
3635 else
3636 ac_compiler_gnu=no
3637 fi
3638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3639 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3640
3641 fi
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3643 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3644 if test $ac_compiler_gnu = yes; then
3645 GCC=yes
3646 else
3647 GCC=
3648 fi
3649 ac_test_CFLAGS=${CFLAGS+set}
3650 ac_save_CFLAGS=$CFLAGS
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3652 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3653 if ${ac_cv_prog_cc_g+:} false; then :
3654 $as_echo_n "(cached) " >&6
3655 else
3656 ac_save_c_werror_flag=$ac_c_werror_flag
3657 ac_c_werror_flag=yes
3658 ac_cv_prog_cc_g=no
3659 CFLAGS="-g"
3660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3661 /* end confdefs.h. */
3662
3663 int
3664 main ()
3665 {
3666
3667 ;
3668 return 0;
3669 }
3670 _ACEOF
3671 if ac_fn_c_try_compile "$LINENO"; then :
3672 ac_cv_prog_cc_g=yes
3673 else
3674 CFLAGS=""
3675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3676 /* end confdefs.h. */
3677
3678 int
3679 main ()
3680 {
3681
3682 ;
3683 return 0;
3684 }
3685 _ACEOF
3686 if ac_fn_c_try_compile "$LINENO"; then :
3687
3688 else
3689 ac_c_werror_flag=$ac_save_c_werror_flag
3690 CFLAGS="-g"
3691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3692 /* end confdefs.h. */
3693
3694 int
3695 main ()
3696 {
3697
3698 ;
3699 return 0;
3700 }
3701 _ACEOF
3702 if ac_fn_c_try_compile "$LINENO"; then :
3703 ac_cv_prog_cc_g=yes
3704 fi
3705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3706 fi
3707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3708 fi
3709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3710 ac_c_werror_flag=$ac_save_c_werror_flag
3711 fi
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3713 $as_echo "$ac_cv_prog_cc_g" >&6; }
3714 if test "$ac_test_CFLAGS" = set; then
3715 CFLAGS=$ac_save_CFLAGS
3716 elif test $ac_cv_prog_cc_g = yes; then
3717 if test "$GCC" = yes; then
3718 CFLAGS="-g -O2"
3719 else
3720 CFLAGS="-g"
3721 fi
3722 else
3723 if test "$GCC" = yes; then
3724 CFLAGS="-O2"
3725 else
3726 CFLAGS=
3727 fi
3728 fi
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3730 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3731 if ${ac_cv_prog_cc_c89+:} false; then :
3732 $as_echo_n "(cached) " >&6
3733 else
3734 ac_cv_prog_cc_c89=no
3735 ac_save_CC=$CC
3736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3737 /* end confdefs.h. */
3738 #include <stdarg.h>
3739 #include <stdio.h>
3740 struct stat;
3741 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3742 struct buf { int x; };
3743 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3744 static char *e (p, i)
3745 char **p;
3746 int i;
3747 {
3748 return p[i];
3749 }
3750 static char *f (char * (*g) (char **, int), char **p, ...)
3751 {
3752 char *s;
3753 va_list v;
3754 va_start (v,p);
3755 s = g (p, va_arg (v,int));
3756 va_end (v);
3757 return s;
3758 }
3759
3760 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3761 function prototypes and stuff, but not '\xHH' hex character constants.
3762 These don't provoke an error unfortunately, instead are silently treated
3763 as 'x'. The following induces an error, until -std is added to get
3764 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3765 array size at least. It's necessary to write '\x00'==0 to get something
3766 that's true only with -std. */
3767 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3768
3769 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3770 inside strings and character constants. */
3771 #define FOO(x) 'x'
3772 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3773
3774 int test (int i, double x);
3775 struct s1 {int (*f) (int a);};
3776 struct s2 {int (*f) (double a);};
3777 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3778 int argc;
3779 char **argv;
3780 int
3781 main ()
3782 {
3783 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3784 ;
3785 return 0;
3786 }
3787 _ACEOF
3788 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3789 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3790 do
3791 CC="$ac_save_CC $ac_arg"
3792 if ac_fn_c_try_compile "$LINENO"; then :
3793 ac_cv_prog_cc_c89=$ac_arg
3794 fi
3795 rm -f core conftest.err conftest.$ac_objext
3796 test "x$ac_cv_prog_cc_c89" != "xno" && break
3797 done
3798 rm -f conftest.$ac_ext
3799 CC=$ac_save_CC
3800
3801 fi
3802 # AC_CACHE_VAL
3803 case "x$ac_cv_prog_cc_c89" in
3804 x)
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3806 $as_echo "none needed" >&6; } ;;
3807 xno)
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3809 $as_echo "unsupported" >&6; } ;;
3810 *)
3811 CC="$CC $ac_cv_prog_cc_c89"
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3813 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3814 esac
3815 if test "x$ac_cv_prog_cc_c89" != xno; then :
3816
3817 fi
3818
3819 ac_ext=c
3820 ac_cpp='$CPP $CPPFLAGS'
3821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3824
3825 ac_ext=c
3826 ac_cpp='$CPP $CPPFLAGS'
3827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3831 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3832 if ${am_cv_prog_cc_c_o+:} false; then :
3833 $as_echo_n "(cached) " >&6
3834 else
3835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3836 /* end confdefs.h. */
3837
3838 int
3839 main ()
3840 {
3841
3842 ;
3843 return 0;
3844 }
3845 _ACEOF
3846 # Make sure it works both with $CC and with simple cc.
3847 # Following AC_PROG_CC_C_O, we do the test twice because some
3848 # compilers refuse to overwrite an existing .o file with -o,
3849 # though they will create one.
3850 am_cv_prog_cc_c_o=yes
3851 for am_i in 1 2; do
3852 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3853 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3854 ac_status=$?
3855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856 (exit $ac_status); } \
3857 && test -f conftest2.$ac_objext; then
3858 : OK
3859 else
3860 am_cv_prog_cc_c_o=no
3861 break
3862 fi
3863 done
3864 rm -f core conftest*
3865 unset am_i
3866 fi
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3868 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3869 if test "$am_cv_prog_cc_c_o" != yes; then
3870 # Losing compiler, so override with the script.
3871 # FIXME: It is wrong to rewrite CC.
3872 # But if we don't then we get into trouble of one sort or another.
3873 # A longer-term fix would be to have automake use am__CC in this case,
3874 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3875 CC="$am_aux_dir/compile $CC"
3876 fi
3877 ac_ext=c
3878 ac_cpp='$CPP $CPPFLAGS'
3879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3882
3883
3884 depcc="$CC" am_compiler_list=
3885
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3887 $as_echo_n "checking dependency style of $depcc... " >&6; }
3888 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3889 $as_echo_n "(cached) " >&6
3890 else
3891 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3892 # We make a subdir and do the tests there. Otherwise we can end up
3893 # making bogus files that we don't know about and never remove. For
3894 # instance it was reported that on HP-UX the gcc test will end up
3895 # making a dummy file named 'D' -- because '-MD' means "put the output
3896 # in D".
3897 rm -rf conftest.dir
3898 mkdir conftest.dir
3899 # Copy depcomp to subdir because otherwise we won't find it if we're
3900 # using a relative directory.
3901 cp "$am_depcomp" conftest.dir
3902 cd conftest.dir
3903 # We will build objects and dependencies in a subdirectory because
3904 # it helps to detect inapplicable dependency modes. For instance
3905 # both Tru64's cc and ICC support -MD to output dependencies as a
3906 # side effect of compilation, but ICC will put the dependencies in
3907 # the current directory while Tru64 will put them in the object
3908 # directory.
3909 mkdir sub
3910
3911 am_cv_CC_dependencies_compiler_type=none
3912 if test "$am_compiler_list" = ""; then
3913 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3914 fi
3915 am__universal=false
3916 case " $depcc " in #(
3917 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3918 esac
3919
3920 for depmode in $am_compiler_list; do
3921 # Setup a source with many dependencies, because some compilers
3922 # like to wrap large dependency lists on column 80 (with \), and
3923 # we should not choose a depcomp mode which is confused by this.
3924 #
3925 # We need to recreate these files for each test, as the compiler may
3926 # overwrite some of them when testing with obscure command lines.
3927 # This happens at least with the AIX C compiler.
3928 : > sub/conftest.c
3929 for i in 1 2 3 4 5 6; do
3930 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3931 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3932 # Solaris 10 /bin/sh.
3933 echo '/* dummy */' > sub/conftst$i.h
3934 done
3935 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3936
3937 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3938 # mode. It turns out that the SunPro C++ compiler does not properly
3939 # handle '-M -o', and we need to detect this. Also, some Intel
3940 # versions had trouble with output in subdirs.
3941 am__obj=sub/conftest.${OBJEXT-o}
3942 am__minus_obj="-o $am__obj"
3943 case $depmode in
3944 gcc)
3945 # This depmode causes a compiler race in universal mode.
3946 test "$am__universal" = false || continue
3947 ;;
3948 nosideeffect)
3949 # After this tag, mechanisms are not by side-effect, so they'll
3950 # only be used when explicitly requested.
3951 if test "x$enable_dependency_tracking" = xyes; then
3952 continue
3953 else
3954 break
3955 fi
3956 ;;
3957 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3958 # This compiler won't grok '-c -o', but also, the minuso test has
3959 # not run yet. These depmodes are late enough in the game, and
3960 # so weak that their functioning should not be impacted.
3961 am__obj=conftest.${OBJEXT-o}
3962 am__minus_obj=
3963 ;;
3964 none) break ;;
3965 esac
3966 if depmode=$depmode \
3967 source=sub/conftest.c object=$am__obj \
3968 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3969 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3970 >/dev/null 2>conftest.err &&
3971 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3972 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3973 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3974 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3975 # icc doesn't choke on unknown options, it will just issue warnings
3976 # or remarks (even with -Werror). So we grep stderr for any message
3977 # that says an option was ignored or not supported.
3978 # When given -MP, icc 7.0 and 7.1 complain thusly:
3979 # icc: Command line warning: ignoring option '-M'; no argument required
3980 # The diagnosis changed in icc 8.0:
3981 # icc: Command line remark: option '-MP' not supported
3982 if (grep 'ignoring option' conftest.err ||
3983 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3984 am_cv_CC_dependencies_compiler_type=$depmode
3985 break
3986 fi
3987 fi
3988 done
3989
3990 cd ..
3991 rm -rf conftest.dir
3992 else
3993 am_cv_CC_dependencies_compiler_type=none
3994 fi
3995
3996 fi
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3998 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3999 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4000
4001 if
4002 test "x$enable_dependency_tracking" != xno \
4003 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4004 am__fastdepCC_TRUE=
4005 am__fastdepCC_FALSE='#'
4006 else
4007 am__fastdepCC_TRUE='#'
4008 am__fastdepCC_FALSE=
4009 fi
4010
4011
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4013 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4014 if ${ac_cv_prog_cc_c99+:} false; then :
4015 $as_echo_n "(cached) " >&6
4016 else
4017 ac_cv_prog_cc_c99=no
4018 ac_save_CC=$CC
4019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4020 /* end confdefs.h. */
4021 #include <stdarg.h>
4022 #include <stdbool.h>
4023 #include <stdlib.h>
4024 #include <wchar.h>
4025 #include <stdio.h>
4026
4027 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4028 #define debug(...) fprintf (stderr, __VA_ARGS__)
4029 #define showlist(...) puts (#__VA_ARGS__)
4030 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4031 static void
4032 test_varargs_macros (void)
4033 {
4034 int x = 1234;
4035 int y = 5678;
4036 debug ("Flag");
4037 debug ("X = %d\n", x);
4038 showlist (The first, second, and third items.);
4039 report (x>y, "x is %d but y is %d", x, y);
4040 }
4041
4042 // Check long long types.
4043 #define BIG64 18446744073709551615ull
4044 #define BIG32 4294967295ul
4045 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4046 #if !BIG_OK
4047 your preprocessor is broken;
4048 #endif
4049 #if BIG_OK
4050 #else
4051 your preprocessor is broken;
4052 #endif
4053 static long long int bignum = -9223372036854775807LL;
4054 static unsigned long long int ubignum = BIG64;
4055
4056 struct incomplete_array
4057 {
4058 int datasize;
4059 double data[];
4060 };
4061
4062 struct named_init {
4063 int number;
4064 const wchar_t *name;
4065 double average;
4066 };
4067
4068 typedef const char *ccp;
4069
4070 static inline int
4071 test_restrict (ccp restrict text)
4072 {
4073 // See if C++-style comments work.
4074 // Iterate through items via the restricted pointer.
4075 // Also check for declarations in for loops.
4076 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4077 continue;
4078 return 0;
4079 }
4080
4081 // Check varargs and va_copy.
4082 static void
4083 test_varargs (const char *format, ...)
4084 {
4085 va_list args;
4086 va_start (args, format);
4087 va_list args_copy;
4088 va_copy (args_copy, args);
4089
4090 const char *str;
4091 int number;
4092 float fnumber;
4093
4094 while (*format)
4095 {
4096 switch (*format++)
4097 {
4098 case 's': // string
4099 str = va_arg (args_copy, const char *);
4100 break;
4101 case 'd': // int
4102 number = va_arg (args_copy, int);
4103 break;
4104 case 'f': // float
4105 fnumber = va_arg (args_copy, double);
4106 break;
4107 default:
4108 break;
4109 }
4110 }
4111 va_end (args_copy);
4112 va_end (args);
4113 }
4114
4115 int
4116 main ()
4117 {
4118
4119 // Check bool.
4120 _Bool success = false;
4121
4122 // Check restrict.
4123 if (test_restrict ("String literal") == 0)
4124 success = true;
4125 char *restrict newvar = "Another string";
4126
4127 // Check varargs.
4128 test_varargs ("s, d' f .", "string", 65, 34.234);
4129 test_varargs_macros ();
4130
4131 // Check flexible array members.
4132 struct incomplete_array *ia =
4133 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4134 ia->datasize = 10;
4135 for (int i = 0; i < ia->datasize; ++i)
4136 ia->data[i] = i * 1.234;
4137
4138 // Check named initializers.
4139 struct named_init ni = {
4140 .number = 34,
4141 .name = L"Test wide string",
4142 .average = 543.34343,
4143 };
4144
4145 ni.number = 58;
4146
4147 int dynamic_array[ni.number];
4148 dynamic_array[ni.number - 1] = 543;
4149
4150 // work around unused variable warnings
4151 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4152 || dynamic_array[ni.number - 1] != 543);
4153
4154 ;
4155 return 0;
4156 }
4157 _ACEOF
4158 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4159 do
4160 CC="$ac_save_CC $ac_arg"
4161 if ac_fn_c_try_compile "$LINENO"; then :
4162 ac_cv_prog_cc_c99=$ac_arg
4163 fi
4164 rm -f core conftest.err conftest.$ac_objext
4165 test "x$ac_cv_prog_cc_c99" != "xno" && break
4166 done
4167 rm -f conftest.$ac_ext
4168 CC=$ac_save_CC
4169
4170 fi
4171 # AC_CACHE_VAL
4172 case "x$ac_cv_prog_cc_c99" in
4173 x)
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4175 $as_echo "none needed" >&6; } ;;
4176 xno)
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4178 $as_echo "unsupported" >&6; } ;;
4179 *)
4180 CC="$CC $ac_cv_prog_cc_c99"
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4182 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4183 esac
4184 if test "x$ac_cv_prog_cc_c99" != xno; then :
4185
4186 fi
4187
4188
4189
4190 ac_ext=c
4191 ac_cpp='$CPP $CPPFLAGS'
4192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4196 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4197 # On Suns, sometimes $CPP names a directory.
4198 if test -n "$CPP" && test -d "$CPP"; then
4199 CPP=
4200 fi
4201 if test -z "$CPP"; then
4202 if ${ac_cv_prog_CPP+:} false; then :
4203 $as_echo_n "(cached) " >&6
4204 else
4205 # Double quotes because CPP needs to be expanded
4206 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4207 do
4208 ac_preproc_ok=false
4209 for ac_c_preproc_warn_flag in '' yes
4210 do
4211 # Use a header file that comes with gcc, so configuring glibc
4212 # with a fresh cross-compiler works.
4213 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4214 # <limits.h> exists even on freestanding compilers.
4215 # On the NeXT, cc -E runs the code through the compiler's parser,
4216 # not just through cpp. "Syntax error" is here to catch this case.
4217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4218 /* end confdefs.h. */
4219 #ifdef __STDC__
4220 # include <limits.h>
4221 #else
4222 # include <assert.h>
4223 #endif
4224 Syntax error
4225 _ACEOF
4226 if ac_fn_c_try_cpp "$LINENO"; then :
4227
4228 else
4229 # Broken: fails on valid input.
4230 continue
4231 fi
4232 rm -f conftest.err conftest.i conftest.$ac_ext
4233
4234 # OK, works on sane cases. Now check whether nonexistent headers
4235 # can be detected and how.
4236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4237 /* end confdefs.h. */
4238 #include <ac_nonexistent.h>
4239 _ACEOF
4240 if ac_fn_c_try_cpp "$LINENO"; then :
4241 # Broken: success on invalid input.
4242 continue
4243 else
4244 # Passes both tests.
4245 ac_preproc_ok=:
4246 break
4247 fi
4248 rm -f conftest.err conftest.i conftest.$ac_ext
4249
4250 done
4251 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4252 rm -f conftest.i conftest.err conftest.$ac_ext
4253 if $ac_preproc_ok; then :
4254 break
4255 fi
4256
4257 done
4258 ac_cv_prog_CPP=$CPP
4259
4260 fi
4261 CPP=$ac_cv_prog_CPP
4262 else
4263 ac_cv_prog_CPP=$CPP
4264 fi
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4266 $as_echo "$CPP" >&6; }
4267 ac_preproc_ok=false
4268 for ac_c_preproc_warn_flag in '' yes
4269 do
4270 # Use a header file that comes with gcc, so configuring glibc
4271 # with a fresh cross-compiler works.
4272 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4273 # <limits.h> exists even on freestanding compilers.
4274 # On the NeXT, cc -E runs the code through the compiler's parser,
4275 # not just through cpp. "Syntax error" is here to catch this case.
4276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4277 /* end confdefs.h. */
4278 #ifdef __STDC__
4279 # include <limits.h>
4280 #else
4281 # include <assert.h>
4282 #endif
4283 Syntax error
4284 _ACEOF
4285 if ac_fn_c_try_cpp "$LINENO"; then :
4286
4287 else
4288 # Broken: fails on valid input.
4289 continue
4290 fi
4291 rm -f conftest.err conftest.i conftest.$ac_ext
4292
4293 # OK, works on sane cases. Now check whether nonexistent headers
4294 # can be detected and how.
4295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4296 /* end confdefs.h. */
4297 #include <ac_nonexistent.h>
4298 _ACEOF
4299 if ac_fn_c_try_cpp "$LINENO"; then :
4300 # Broken: success on invalid input.
4301 continue
4302 else
4303 # Passes both tests.
4304 ac_preproc_ok=:
4305 break
4306 fi
4307 rm -f conftest.err conftest.i conftest.$ac_ext
4308
4309 done
4310 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4311 rm -f conftest.i conftest.err conftest.$ac_ext
4312 if $ac_preproc_ok; then :
4313
4314 else
4315 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4316 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4317 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4318 See \`config.log' for more details" "$LINENO" 5; }
4319 fi
4320
4321 ac_ext=c
4322 ac_cpp='$CPP $CPPFLAGS'
4323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4326
4327
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4329 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4330 if ${ac_cv_path_GREP+:} false; then :
4331 $as_echo_n "(cached) " >&6
4332 else
4333 if test -z "$GREP"; then
4334 ac_path_GREP_found=false
4335 # Loop through the user's path and test for each of PROGNAME-LIST
4336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4337 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4338 do
4339 IFS=$as_save_IFS
4340 test -z "$as_dir" && as_dir=.
4341 for ac_prog in grep ggrep; do
4342 for ac_exec_ext in '' $ac_executable_extensions; do
4343 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4344 as_fn_executable_p "$ac_path_GREP" || continue
4345 # Check for GNU ac_path_GREP and select it if it is found.
4346 # Check for GNU $ac_path_GREP
4347 case `"$ac_path_GREP" --version 2>&1` in
4348 *GNU*)
4349 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4350 *)
4351 ac_count=0
4352 $as_echo_n 0123456789 >"conftest.in"
4353 while :
4354 do
4355 cat "conftest.in" "conftest.in" >"conftest.tmp"
4356 mv "conftest.tmp" "conftest.in"
4357 cp "conftest.in" "conftest.nl"
4358 $as_echo 'GREP' >> "conftest.nl"
4359 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4360 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4361 as_fn_arith $ac_count + 1 && ac_count=$as_val
4362 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4363 # Best one so far, save it but keep looking for a better one
4364 ac_cv_path_GREP="$ac_path_GREP"
4365 ac_path_GREP_max=$ac_count
4366 fi
4367 # 10*(2^10) chars as input seems more than enough
4368 test $ac_count -gt 10 && break
4369 done
4370 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4371 esac
4372
4373 $ac_path_GREP_found && break 3
4374 done
4375 done
4376 done
4377 IFS=$as_save_IFS
4378 if test -z "$ac_cv_path_GREP"; then
4379 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4380 fi
4381 else
4382 ac_cv_path_GREP=$GREP
4383 fi
4384
4385 fi
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4387 $as_echo "$ac_cv_path_GREP" >&6; }
4388 GREP="$ac_cv_path_GREP"
4389
4390
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4392 $as_echo_n "checking for egrep... " >&6; }
4393 if ${ac_cv_path_EGREP+:} false; then :
4394 $as_echo_n "(cached) " >&6
4395 else
4396 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4397 then ac_cv_path_EGREP="$GREP -E"
4398 else
4399 if test -z "$EGREP"; then
4400 ac_path_EGREP_found=false
4401 # Loop through the user's path and test for each of PROGNAME-LIST
4402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4403 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4404 do
4405 IFS=$as_save_IFS
4406 test -z "$as_dir" && as_dir=.
4407 for ac_prog in egrep; do
4408 for ac_exec_ext in '' $ac_executable_extensions; do
4409 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4410 as_fn_executable_p "$ac_path_EGREP" || continue
4411 # Check for GNU ac_path_EGREP and select it if it is found.
4412 # Check for GNU $ac_path_EGREP
4413 case `"$ac_path_EGREP" --version 2>&1` in
4414 *GNU*)
4415 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4416 *)
4417 ac_count=0
4418 $as_echo_n 0123456789 >"conftest.in"
4419 while :
4420 do
4421 cat "conftest.in" "conftest.in" >"conftest.tmp"
4422 mv "conftest.tmp" "conftest.in"
4423 cp "conftest.in" "conftest.nl"
4424 $as_echo 'EGREP' >> "conftest.nl"
4425 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4426 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4427 as_fn_arith $ac_count + 1 && ac_count=$as_val
4428 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4429 # Best one so far, save it but keep looking for a better one
4430 ac_cv_path_EGREP="$ac_path_EGREP"
4431 ac_path_EGREP_max=$ac_count
4432 fi
4433 # 10*(2^10) chars as input seems more than enough
4434 test $ac_count -gt 10 && break
4435 done
4436 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4437 esac
4438
4439 $ac_path_EGREP_found && break 3
4440 done
4441 done
4442 done
4443 IFS=$as_save_IFS
4444 if test -z "$ac_cv_path_EGREP"; then
4445 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4446 fi
4447 else
4448 ac_cv_path_EGREP=$EGREP
4449 fi
4450
4451 fi
4452 fi
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4454 $as_echo "$ac_cv_path_EGREP" >&6; }
4455 EGREP="$ac_cv_path_EGREP"
4456
4457
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4459 $as_echo_n "checking for ANSI C header files... " >&6; }
4460 if ${ac_cv_header_stdc+:} false; then :
4461 $as_echo_n "(cached) " >&6
4462 else
4463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4464 /* end confdefs.h. */
4465 #include <stdlib.h>
4466 #include <stdarg.h>
4467 #include <string.h>
4468 #include <float.h>
4469
4470 int
4471 main ()
4472 {
4473
4474 ;
4475 return 0;
4476 }
4477 _ACEOF
4478 if ac_fn_c_try_compile "$LINENO"; then :
4479 ac_cv_header_stdc=yes
4480 else
4481 ac_cv_header_stdc=no
4482 fi
4483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4484
4485 if test $ac_cv_header_stdc = yes; then
4486 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4488 /* end confdefs.h. */
4489 #include <string.h>
4490
4491 _ACEOF
4492 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4493 $EGREP "memchr" >/dev/null 2>&1; then :
4494
4495 else
4496 ac_cv_header_stdc=no
4497 fi
4498 rm -f conftest*
4499
4500 fi
4501
4502 if test $ac_cv_header_stdc = yes; then
4503 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4505 /* end confdefs.h. */
4506 #include <stdlib.h>
4507
4508 _ACEOF
4509 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4510 $EGREP "free" >/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 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4521 if test "$cross_compiling" = yes; then :
4522 :
4523 else
4524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4525 /* end confdefs.h. */
4526 #include <ctype.h>
4527 #include <stdlib.h>
4528 #if ((' ' & 0x0FF) == 0x020)
4529 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4530 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4531 #else
4532 # define ISLOWER(c) \
4533 (('a' <= (c) && (c) <= 'i') \
4534 || ('j' <= (c) && (c) <= 'r') \
4535 || ('s' <= (c) && (c) <= 'z'))
4536 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4537 #endif
4538
4539 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4540 int
4541 main ()
4542 {
4543 int i;
4544 for (i = 0; i < 256; i++)
4545 if (XOR (islower (i), ISLOWER (i))
4546 || toupper (i) != TOUPPER (i))
4547 return 2;
4548 return 0;
4549 }
4550 _ACEOF
4551 if ac_fn_c_try_run "$LINENO"; then :
4552
4553 else
4554 ac_cv_header_stdc=no
4555 fi
4556 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4557 conftest.$ac_objext conftest.beam conftest.$ac_ext
4558 fi
4559
4560 fi
4561 fi
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4563 $as_echo "$ac_cv_header_stdc" >&6; }
4564 if test $ac_cv_header_stdc = yes; then
4565
4566 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4567
4568 fi
4569
4570 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4571 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4572 inttypes.h stdint.h unistd.h
4573 do :
4574 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4575 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4576 "
4577 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4578 cat >>confdefs.h <<_ACEOF
4579 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4580 _ACEOF
4581
4582 fi
4583
4584 done
4585
4586
4587
4588
4589
4590
4591 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4592 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4593 CLANGCC="yes"
4594 else
4595 CLANGCC="no"
4596 fi
4597
4598 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4599 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4600 INTELCC="yes"
4601 else
4602 INTELCC="no"
4603 fi
4604
4605 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4606 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4607 SUNCC="yes"
4608 else
4609 SUNCC="no"
4610 fi
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4621 if test -n "$ac_tool_prefix"; then
4622 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4623 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4625 $as_echo_n "checking for $ac_word... " >&6; }
4626 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4627 $as_echo_n "(cached) " >&6
4628 else
4629 case $PKG_CONFIG in
4630 [\\/]* | ?:[\\/]*)
4631 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4632 ;;
4633 *)
4634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4635 for as_dir in $PATH
4636 do
4637 IFS=$as_save_IFS
4638 test -z "$as_dir" && as_dir=.
4639 for ac_exec_ext in '' $ac_executable_extensions; do
4640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4641 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4643 break 2
4644 fi
4645 done
4646 done
4647 IFS=$as_save_IFS
4648
4649 ;;
4650 esac
4651 fi
4652 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4653 if test -n "$PKG_CONFIG"; then
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4655 $as_echo "$PKG_CONFIG" >&6; }
4656 else
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4658 $as_echo "no" >&6; }
4659 fi
4660
4661
4662 fi
4663 if test -z "$ac_cv_path_PKG_CONFIG"; then
4664 ac_pt_PKG_CONFIG=$PKG_CONFIG
4665 # Extract the first word of "pkg-config", so it can be a program name with args.
4666 set dummy pkg-config; ac_word=$2
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4668 $as_echo_n "checking for $ac_word... " >&6; }
4669 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4670 $as_echo_n "(cached) " >&6
4671 else
4672 case $ac_pt_PKG_CONFIG in
4673 [\\/]* | ?:[\\/]*)
4674 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4675 ;;
4676 *)
4677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4678 for as_dir in $PATH
4679 do
4680 IFS=$as_save_IFS
4681 test -z "$as_dir" && as_dir=.
4682 for ac_exec_ext in '' $ac_executable_extensions; do
4683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4684 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4686 break 2
4687 fi
4688 done
4689 done
4690 IFS=$as_save_IFS
4691
4692 ;;
4693 esac
4694 fi
4695 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4696 if test -n "$ac_pt_PKG_CONFIG"; then
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4698 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4699 else
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4701 $as_echo "no" >&6; }
4702 fi
4703
4704 if test "x$ac_pt_PKG_CONFIG" = x; then
4705 PKG_CONFIG=""
4706 else
4707 case $cross_compiling:$ac_tool_warned in
4708 yes:)
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4710 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4711 ac_tool_warned=yes ;;
4712 esac
4713 PKG_CONFIG=$ac_pt_PKG_CONFIG
4714 fi
4715 else
4716 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4717 fi
4718
4719 fi
4720 if test -n "$PKG_CONFIG"; then
4721 _pkg_min_version=0.9.0
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4723 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4724 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4726 $as_echo "yes" >&6; }
4727 else
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4729 $as_echo "no" >&6; }
4730 PKG_CONFIG=""
4731 fi
4732 fi
4733 # Make sure we can run config.sub.
4734 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4735 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4736
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4738 $as_echo_n "checking build system type... " >&6; }
4739 if ${ac_cv_build+:} false; then :
4740 $as_echo_n "(cached) " >&6
4741 else
4742 ac_build_alias=$build_alias
4743 test "x$ac_build_alias" = x &&
4744 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4745 test "x$ac_build_alias" = x &&
4746 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4747 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4748 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4749
4750 fi
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4752 $as_echo "$ac_cv_build" >&6; }
4753 case $ac_cv_build in
4754 *-*-*) ;;
4755 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4756 esac
4757 build=$ac_cv_build
4758 ac_save_IFS=$IFS; IFS='-'
4759 set x $ac_cv_build
4760 shift
4761 build_cpu=$1
4762 build_vendor=$2
4763 shift; shift
4764 # Remember, the first character of IFS is used to create $*,
4765 # except with old shells:
4766 build_os=$*
4767 IFS=$ac_save_IFS
4768 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4769
4770
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4772 $as_echo_n "checking host system type... " >&6; }
4773 if ${ac_cv_host+:} false; then :
4774 $as_echo_n "(cached) " >&6
4775 else
4776 if test "x$host_alias" = x; then
4777 ac_cv_host=$ac_cv_build
4778 else
4779 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4780 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4781 fi
4782
4783 fi
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4785 $as_echo "$ac_cv_host" >&6; }
4786 case $ac_cv_host in
4787 *-*-*) ;;
4788 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4789 esac
4790 host=$ac_cv_host
4791 ac_save_IFS=$IFS; IFS='-'
4792 set x $ac_cv_host
4793 shift
4794 host_cpu=$1
4795 host_vendor=$2
4796 shift; shift
4797 # Remember, the first character of IFS is used to create $*,
4798 # except with old shells:
4799 host_os=$*
4800 IFS=$ac_save_IFS
4801 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4802
4803
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4805 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4806 if ${ac_cv_path_SED+:} false; then :
4807 $as_echo_n "(cached) " >&6
4808 else
4809 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4810 for ac_i in 1 2 3 4 5 6 7; do
4811 ac_script="$ac_script$as_nl$ac_script"
4812 done
4813 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4814 { ac_script=; unset ac_script;}
4815 if test -z "$SED"; then
4816 ac_path_SED_found=false
4817 # Loop through the user's path and test for each of PROGNAME-LIST
4818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4819 for as_dir in $PATH
4820 do
4821 IFS=$as_save_IFS
4822 test -z "$as_dir" && as_dir=.
4823 for ac_prog in sed gsed; do
4824 for ac_exec_ext in '' $ac_executable_extensions; do
4825 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4826 as_fn_executable_p "$ac_path_SED" || continue
4827 # Check for GNU ac_path_SED and select it if it is found.
4828 # Check for GNU $ac_path_SED
4829 case `"$ac_path_SED" --version 2>&1` in
4830 *GNU*)
4831 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4832 *)
4833 ac_count=0
4834 $as_echo_n 0123456789 >"conftest.in"
4835 while :
4836 do
4837 cat "conftest.in" "conftest.in" >"conftest.tmp"
4838 mv "conftest.tmp" "conftest.in"
4839 cp "conftest.in" "conftest.nl"
4840 $as_echo '' >> "conftest.nl"
4841 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4842 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4843 as_fn_arith $ac_count + 1 && ac_count=$as_val
4844 if test $ac_count -gt ${ac_path_SED_max-0}; then
4845 # Best one so far, save it but keep looking for a better one
4846 ac_cv_path_SED="$ac_path_SED"
4847 ac_path_SED_max=$ac_count
4848 fi
4849 # 10*(2^10) chars as input seems more than enough
4850 test $ac_count -gt 10 && break
4851 done
4852 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4853 esac
4854
4855 $ac_path_SED_found && break 3
4856 done
4857 done
4858 done
4859 IFS=$as_save_IFS
4860 if test -z "$ac_cv_path_SED"; then
4861 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4862 fi
4863 else
4864 ac_cv_path_SED=$SED
4865 fi
4866
4867 fi
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4869 $as_echo "$ac_cv_path_SED" >&6; }
4870 SED="$ac_cv_path_SED"
4871 rm -f conftest.sed
4872
4873
4874
4875
4876
4877
4878 # Check whether --enable-selective-werror was given.
4879 if test "${enable_selective_werror+set}" = set; then :
4880 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4881 else
4882 SELECTIVE_WERROR=yes
4883 fi
4884
4885
4886
4887
4888
4889 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4890 if test "x$SUNCC" = "xyes"; then
4891 BASE_CFLAGS="-v"
4892 else
4893 BASE_CFLAGS=""
4894 fi
4895
4896 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910 xorg_testset_save_CFLAGS="$CFLAGS"
4911
4912 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4913 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4915 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4916 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4917 $as_echo_n "(cached) " >&6
4918 else
4919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4920 /* end confdefs.h. */
4921 int i;
4922 _ACEOF
4923 if ac_fn_c_try_compile "$LINENO"; then :
4924 xorg_cv_cc_flag_unknown_warning_option=yes
4925 else
4926 xorg_cv_cc_flag_unknown_warning_option=no
4927 fi
4928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4929 fi
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4931 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4932 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4933 CFLAGS="$xorg_testset_save_CFLAGS"
4934 fi
4935
4936 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4937 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4938 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4939 fi
4940 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4942 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4943 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4944 $as_echo_n "(cached) " >&6
4945 else
4946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4947 /* end confdefs.h. */
4948 int i;
4949 _ACEOF
4950 if ac_fn_c_try_compile "$LINENO"; then :
4951 xorg_cv_cc_flag_unused_command_line_argument=yes
4952 else
4953 xorg_cv_cc_flag_unused_command_line_argument=no
4954 fi
4955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4956 fi
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4958 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4959 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4960 CFLAGS="$xorg_testset_save_CFLAGS"
4961 fi
4962
4963 found="no"
4964
4965 if test $found = "no" ; then
4966 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4967 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4968 fi
4969
4970 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4971 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4972 fi
4973
4974 CFLAGS="$CFLAGS -Wall"
4975
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4977 $as_echo_n "checking if $CC supports -Wall... " >&6; }
4978 cacheid=xorg_cv_cc_flag__Wall
4979 if eval \${$cacheid+:} false; then :
4980 $as_echo_n "(cached) " >&6
4981 else
4982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4983 /* end confdefs.h. */
4984 int i;
4985 int
4986 main ()
4987 {
4988
4989 ;
4990 return 0;
4991 }
4992 _ACEOF
4993 if ac_fn_c_try_link "$LINENO"; then :
4994 eval $cacheid=yes
4995 else
4996 eval $cacheid=no
4997 fi
4998 rm -f core conftest.err conftest.$ac_objext \
4999 conftest$ac_exeext conftest.$ac_ext
5000 fi
5001
5002
5003 CFLAGS="$xorg_testset_save_CFLAGS"
5004
5005 eval supported=\$$cacheid
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5007 $as_echo "$supported" >&6; }
5008 if test "$supported" = "yes" ; then
5009 BASE_CFLAGS="$BASE_CFLAGS -Wall"
5010 found="yes"
5011 fi
5012 fi
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028 xorg_testset_save_CFLAGS="$CFLAGS"
5029
5030 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5031 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5033 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5034 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5035 $as_echo_n "(cached) " >&6
5036 else
5037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5038 /* end confdefs.h. */
5039 int i;
5040 _ACEOF
5041 if ac_fn_c_try_compile "$LINENO"; then :
5042 xorg_cv_cc_flag_unknown_warning_option=yes
5043 else
5044 xorg_cv_cc_flag_unknown_warning_option=no
5045 fi
5046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5047 fi
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5049 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5050 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5051 CFLAGS="$xorg_testset_save_CFLAGS"
5052 fi
5053
5054 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5055 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5056 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5057 fi
5058 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5060 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5061 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5062 $as_echo_n "(cached) " >&6
5063 else
5064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5065 /* end confdefs.h. */
5066 int i;
5067 _ACEOF
5068 if ac_fn_c_try_compile "$LINENO"; then :
5069 xorg_cv_cc_flag_unused_command_line_argument=yes
5070 else
5071 xorg_cv_cc_flag_unused_command_line_argument=no
5072 fi
5073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5074 fi
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5076 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5077 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5078 CFLAGS="$xorg_testset_save_CFLAGS"
5079 fi
5080
5081 found="no"
5082
5083 if test $found = "no" ; then
5084 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5085 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5086 fi
5087
5088 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5089 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5090 fi
5091
5092 CFLAGS="$CFLAGS -Wpointer-arith"
5093
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5095 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
5096 cacheid=xorg_cv_cc_flag__Wpointer_arith
5097 if eval \${$cacheid+:} false; then :
5098 $as_echo_n "(cached) " >&6
5099 else
5100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5101 /* end confdefs.h. */
5102 int i;
5103 int
5104 main ()
5105 {
5106
5107 ;
5108 return 0;
5109 }
5110 _ACEOF
5111 if ac_fn_c_try_link "$LINENO"; then :
5112 eval $cacheid=yes
5113 else
5114 eval $cacheid=no
5115 fi
5116 rm -f core conftest.err conftest.$ac_objext \
5117 conftest$ac_exeext conftest.$ac_ext
5118 fi
5119
5120
5121 CFLAGS="$xorg_testset_save_CFLAGS"
5122
5123 eval supported=\$$cacheid
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5125 $as_echo "$supported" >&6; }
5126 if test "$supported" = "yes" ; then
5127 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5128 found="yes"
5129 fi
5130 fi
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146 xorg_testset_save_CFLAGS="$CFLAGS"
5147
5148 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5149 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5151 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5152 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5153 $as_echo_n "(cached) " >&6
5154 else
5155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5156 /* end confdefs.h. */
5157 int i;
5158 _ACEOF
5159 if ac_fn_c_try_compile "$LINENO"; then :
5160 xorg_cv_cc_flag_unknown_warning_option=yes
5161 else
5162 xorg_cv_cc_flag_unknown_warning_option=no
5163 fi
5164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5165 fi
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5167 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5168 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5169 CFLAGS="$xorg_testset_save_CFLAGS"
5170 fi
5171
5172 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5173 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5174 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5175 fi
5176 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5178 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5179 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5180 $as_echo_n "(cached) " >&6
5181 else
5182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5183 /* end confdefs.h. */
5184 int i;
5185 _ACEOF
5186 if ac_fn_c_try_compile "$LINENO"; then :
5187 xorg_cv_cc_flag_unused_command_line_argument=yes
5188 else
5189 xorg_cv_cc_flag_unused_command_line_argument=no
5190 fi
5191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5192 fi
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5194 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5195 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5196 CFLAGS="$xorg_testset_save_CFLAGS"
5197 fi
5198
5199 found="no"
5200
5201 if test $found = "no" ; then
5202 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5203 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5204 fi
5205
5206 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5207 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5208 fi
5209
5210 CFLAGS="$CFLAGS -Wmissing-declarations"
5211
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5213 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5214 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5215 if eval \${$cacheid+:} false; then :
5216 $as_echo_n "(cached) " >&6
5217 else
5218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5219 /* end confdefs.h. */
5220 int i;
5221 int
5222 main ()
5223 {
5224
5225 ;
5226 return 0;
5227 }
5228 _ACEOF
5229 if ac_fn_c_try_link "$LINENO"; then :
5230 eval $cacheid=yes
5231 else
5232 eval $cacheid=no
5233 fi
5234 rm -f core conftest.err conftest.$ac_objext \
5235 conftest$ac_exeext conftest.$ac_ext
5236 fi
5237
5238
5239 CFLAGS="$xorg_testset_save_CFLAGS"
5240
5241 eval supported=\$$cacheid
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5243 $as_echo "$supported" >&6; }
5244 if test "$supported" = "yes" ; then
5245 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5246 found="yes"
5247 fi
5248 fi
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264 xorg_testset_save_CFLAGS="$CFLAGS"
5265
5266 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5267 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5269 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5270 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5271 $as_echo_n "(cached) " >&6
5272 else
5273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5274 /* end confdefs.h. */
5275 int i;
5276 _ACEOF
5277 if ac_fn_c_try_compile "$LINENO"; then :
5278 xorg_cv_cc_flag_unknown_warning_option=yes
5279 else
5280 xorg_cv_cc_flag_unknown_warning_option=no
5281 fi
5282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5283 fi
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5285 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5286 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5287 CFLAGS="$xorg_testset_save_CFLAGS"
5288 fi
5289
5290 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5291 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5292 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5293 fi
5294 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5296 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5297 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5298 $as_echo_n "(cached) " >&6
5299 else
5300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5301 /* end confdefs.h. */
5302 int i;
5303 _ACEOF
5304 if ac_fn_c_try_compile "$LINENO"; then :
5305 xorg_cv_cc_flag_unused_command_line_argument=yes
5306 else
5307 xorg_cv_cc_flag_unused_command_line_argument=no
5308 fi
5309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5310 fi
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5312 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5313 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5314 CFLAGS="$xorg_testset_save_CFLAGS"
5315 fi
5316
5317 found="no"
5318
5319 if test $found = "no" ; then
5320 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5321 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5322 fi
5323
5324 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5325 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5326 fi
5327
5328 CFLAGS="$CFLAGS -Wformat=2"
5329
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5331 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5332 cacheid=xorg_cv_cc_flag__Wformat_2
5333 if eval \${$cacheid+:} false; then :
5334 $as_echo_n "(cached) " >&6
5335 else
5336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5337 /* end confdefs.h. */
5338 int i;
5339 int
5340 main ()
5341 {
5342
5343 ;
5344 return 0;
5345 }
5346 _ACEOF
5347 if ac_fn_c_try_link "$LINENO"; then :
5348 eval $cacheid=yes
5349 else
5350 eval $cacheid=no
5351 fi
5352 rm -f core conftest.err conftest.$ac_objext \
5353 conftest$ac_exeext conftest.$ac_ext
5354 fi
5355
5356
5357 CFLAGS="$xorg_testset_save_CFLAGS"
5358
5359 eval supported=\$$cacheid
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5361 $as_echo "$supported" >&6; }
5362 if test "$supported" = "yes" ; then
5363 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5364 found="yes"
5365 fi
5366 fi
5367
5368 if test $found = "no" ; then
5369 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5370 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5371 fi
5372
5373 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5374 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5375 fi
5376
5377 CFLAGS="$CFLAGS -Wformat"
5378
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5380 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
5381 cacheid=xorg_cv_cc_flag__Wformat
5382 if eval \${$cacheid+:} false; then :
5383 $as_echo_n "(cached) " >&6
5384 else
5385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5386 /* end confdefs.h. */
5387 int i;
5388 int
5389 main ()
5390 {
5391
5392 ;
5393 return 0;
5394 }
5395 _ACEOF
5396 if ac_fn_c_try_link "$LINENO"; then :
5397 eval $cacheid=yes
5398 else
5399 eval $cacheid=no
5400 fi
5401 rm -f core conftest.err conftest.$ac_objext \
5402 conftest$ac_exeext conftest.$ac_ext
5403 fi
5404
5405
5406 CFLAGS="$xorg_testset_save_CFLAGS"
5407
5408 eval supported=\$$cacheid
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5410 $as_echo "$supported" >&6; }
5411 if test "$supported" = "yes" ; then
5412 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5413 found="yes"
5414 fi
5415 fi
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433 xorg_testset_save_CFLAGS="$CFLAGS"
5434
5435 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5436 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5438 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5439 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5440 $as_echo_n "(cached) " >&6
5441 else
5442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5443 /* end confdefs.h. */
5444 int i;
5445 _ACEOF
5446 if ac_fn_c_try_compile "$LINENO"; then :
5447 xorg_cv_cc_flag_unknown_warning_option=yes
5448 else
5449 xorg_cv_cc_flag_unknown_warning_option=no
5450 fi
5451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5452 fi
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5454 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5455 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5456 CFLAGS="$xorg_testset_save_CFLAGS"
5457 fi
5458
5459 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5460 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5461 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5462 fi
5463 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5465 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5466 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5467 $as_echo_n "(cached) " >&6
5468 else
5469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5470 /* end confdefs.h. */
5471 int i;
5472 _ACEOF
5473 if ac_fn_c_try_compile "$LINENO"; then :
5474 xorg_cv_cc_flag_unused_command_line_argument=yes
5475 else
5476 xorg_cv_cc_flag_unused_command_line_argument=no
5477 fi
5478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5479 fi
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5481 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5482 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5483 CFLAGS="$xorg_testset_save_CFLAGS"
5484 fi
5485
5486 found="no"
5487
5488 if test $found = "no" ; then
5489 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5490 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5491 fi
5492
5493 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5494 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5495 fi
5496
5497 CFLAGS="$CFLAGS -Wstrict-prototypes"
5498
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5500 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5501 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5502 if eval \${$cacheid+:} false; then :
5503 $as_echo_n "(cached) " >&6
5504 else
5505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5506 /* end confdefs.h. */
5507 int i;
5508 int
5509 main ()
5510 {
5511
5512 ;
5513 return 0;
5514 }
5515 _ACEOF
5516 if ac_fn_c_try_link "$LINENO"; then :
5517 eval $cacheid=yes
5518 else
5519 eval $cacheid=no
5520 fi
5521 rm -f core conftest.err conftest.$ac_objext \
5522 conftest$ac_exeext conftest.$ac_ext
5523 fi
5524
5525
5526 CFLAGS="$xorg_testset_save_CFLAGS"
5527
5528 eval supported=\$$cacheid
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5530 $as_echo "$supported" >&6; }
5531 if test "$supported" = "yes" ; then
5532 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5533 found="yes"
5534 fi
5535 fi
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551 xorg_testset_save_CFLAGS="$CFLAGS"
5552
5553 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5554 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5556 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5557 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5558 $as_echo_n "(cached) " >&6
5559 else
5560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5561 /* end confdefs.h. */
5562 int i;
5563 _ACEOF
5564 if ac_fn_c_try_compile "$LINENO"; then :
5565 xorg_cv_cc_flag_unknown_warning_option=yes
5566 else
5567 xorg_cv_cc_flag_unknown_warning_option=no
5568 fi
5569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5570 fi
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5572 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5573 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5574 CFLAGS="$xorg_testset_save_CFLAGS"
5575 fi
5576
5577 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5578 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5579 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5580 fi
5581 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5583 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5584 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5585 $as_echo_n "(cached) " >&6
5586 else
5587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5588 /* end confdefs.h. */
5589 int i;
5590 _ACEOF
5591 if ac_fn_c_try_compile "$LINENO"; then :
5592 xorg_cv_cc_flag_unused_command_line_argument=yes
5593 else
5594 xorg_cv_cc_flag_unused_command_line_argument=no
5595 fi
5596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5597 fi
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5599 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5600 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5601 CFLAGS="$xorg_testset_save_CFLAGS"
5602 fi
5603
5604 found="no"
5605
5606 if test $found = "no" ; then
5607 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5608 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5609 fi
5610
5611 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5612 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5613 fi
5614
5615 CFLAGS="$CFLAGS -Wmissing-prototypes"
5616
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5618 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5619 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5620 if eval \${$cacheid+:} false; then :
5621 $as_echo_n "(cached) " >&6
5622 else
5623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5624 /* end confdefs.h. */
5625 int i;
5626 int
5627 main ()
5628 {
5629
5630 ;
5631 return 0;
5632 }
5633 _ACEOF
5634 if ac_fn_c_try_link "$LINENO"; then :
5635 eval $cacheid=yes
5636 else
5637 eval $cacheid=no
5638 fi
5639 rm -f core conftest.err conftest.$ac_objext \
5640 conftest$ac_exeext conftest.$ac_ext
5641 fi
5642
5643
5644 CFLAGS="$xorg_testset_save_CFLAGS"
5645
5646 eval supported=\$$cacheid
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5648 $as_echo "$supported" >&6; }
5649 if test "$supported" = "yes" ; then
5650 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5651 found="yes"
5652 fi
5653 fi
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669 xorg_testset_save_CFLAGS="$CFLAGS"
5670
5671 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5672 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5674 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5675 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5676 $as_echo_n "(cached) " >&6
5677 else
5678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5679 /* end confdefs.h. */
5680 int i;
5681 _ACEOF
5682 if ac_fn_c_try_compile "$LINENO"; then :
5683 xorg_cv_cc_flag_unknown_warning_option=yes
5684 else
5685 xorg_cv_cc_flag_unknown_warning_option=no
5686 fi
5687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5688 fi
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5690 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5691 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5692 CFLAGS="$xorg_testset_save_CFLAGS"
5693 fi
5694
5695 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5696 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5697 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5698 fi
5699 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5701 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5702 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5703 $as_echo_n "(cached) " >&6
5704 else
5705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5706 /* end confdefs.h. */
5707 int i;
5708 _ACEOF
5709 if ac_fn_c_try_compile "$LINENO"; then :
5710 xorg_cv_cc_flag_unused_command_line_argument=yes
5711 else
5712 xorg_cv_cc_flag_unused_command_line_argument=no
5713 fi
5714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5715 fi
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5717 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5718 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5719 CFLAGS="$xorg_testset_save_CFLAGS"
5720 fi
5721
5722 found="no"
5723
5724 if test $found = "no" ; then
5725 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5726 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5727 fi
5728
5729 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5730 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5731 fi
5732
5733 CFLAGS="$CFLAGS -Wnested-externs"
5734
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5736 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5737 cacheid=xorg_cv_cc_flag__Wnested_externs
5738 if eval \${$cacheid+:} false; then :
5739 $as_echo_n "(cached) " >&6
5740 else
5741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5742 /* end confdefs.h. */
5743 int i;
5744 int
5745 main ()
5746 {
5747
5748 ;
5749 return 0;
5750 }
5751 _ACEOF
5752 if ac_fn_c_try_link "$LINENO"; then :
5753 eval $cacheid=yes
5754 else
5755 eval $cacheid=no
5756 fi
5757 rm -f core conftest.err conftest.$ac_objext \
5758 conftest$ac_exeext conftest.$ac_ext
5759 fi
5760
5761
5762 CFLAGS="$xorg_testset_save_CFLAGS"
5763
5764 eval supported=\$$cacheid
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5766 $as_echo "$supported" >&6; }
5767 if test "$supported" = "yes" ; then
5768 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5769 found="yes"
5770 fi
5771 fi
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787 xorg_testset_save_CFLAGS="$CFLAGS"
5788
5789 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5790 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5792 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5793 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5794 $as_echo_n "(cached) " >&6
5795 else
5796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5797 /* end confdefs.h. */
5798 int i;
5799 _ACEOF
5800 if ac_fn_c_try_compile "$LINENO"; then :
5801 xorg_cv_cc_flag_unknown_warning_option=yes
5802 else
5803 xorg_cv_cc_flag_unknown_warning_option=no
5804 fi
5805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5806 fi
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5808 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5809 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5810 CFLAGS="$xorg_testset_save_CFLAGS"
5811 fi
5812
5813 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5814 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5815 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5816 fi
5817 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5819 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5820 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5821 $as_echo_n "(cached) " >&6
5822 else
5823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5824 /* end confdefs.h. */
5825 int i;
5826 _ACEOF
5827 if ac_fn_c_try_compile "$LINENO"; then :
5828 xorg_cv_cc_flag_unused_command_line_argument=yes
5829 else
5830 xorg_cv_cc_flag_unused_command_line_argument=no
5831 fi
5832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5833 fi
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5835 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5836 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5837 CFLAGS="$xorg_testset_save_CFLAGS"
5838 fi
5839
5840 found="no"
5841
5842 if test $found = "no" ; then
5843 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5844 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5845 fi
5846
5847 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5848 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5849 fi
5850
5851 CFLAGS="$CFLAGS -Wbad-function-cast"
5852
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5854 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5855 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5856 if eval \${$cacheid+:} false; then :
5857 $as_echo_n "(cached) " >&6
5858 else
5859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5860 /* end confdefs.h. */
5861 int i;
5862 int
5863 main ()
5864 {
5865
5866 ;
5867 return 0;
5868 }
5869 _ACEOF
5870 if ac_fn_c_try_link "$LINENO"; then :
5871 eval $cacheid=yes
5872 else
5873 eval $cacheid=no
5874 fi
5875 rm -f core conftest.err conftest.$ac_objext \
5876 conftest$ac_exeext conftest.$ac_ext
5877 fi
5878
5879
5880 CFLAGS="$xorg_testset_save_CFLAGS"
5881
5882 eval supported=\$$cacheid
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5884 $as_echo "$supported" >&6; }
5885 if test "$supported" = "yes" ; then
5886 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5887 found="yes"
5888 fi
5889 fi
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905 xorg_testset_save_CFLAGS="$CFLAGS"
5906
5907 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5908 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5910 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5911 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5912 $as_echo_n "(cached) " >&6
5913 else
5914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5915 /* end confdefs.h. */
5916 int i;
5917 _ACEOF
5918 if ac_fn_c_try_compile "$LINENO"; then :
5919 xorg_cv_cc_flag_unknown_warning_option=yes
5920 else
5921 xorg_cv_cc_flag_unknown_warning_option=no
5922 fi
5923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5924 fi
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5926 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5927 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5928 CFLAGS="$xorg_testset_save_CFLAGS"
5929 fi
5930
5931 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5932 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5933 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5934 fi
5935 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5937 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5938 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5939 $as_echo_n "(cached) " >&6
5940 else
5941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5942 /* end confdefs.h. */
5943 int i;
5944 _ACEOF
5945 if ac_fn_c_try_compile "$LINENO"; then :
5946 xorg_cv_cc_flag_unused_command_line_argument=yes
5947 else
5948 xorg_cv_cc_flag_unused_command_line_argument=no
5949 fi
5950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5951 fi
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5953 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5954 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5955 CFLAGS="$xorg_testset_save_CFLAGS"
5956 fi
5957
5958 found="no"
5959
5960 if test $found = "no" ; then
5961 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5962 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5963 fi
5964
5965 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5966 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5967 fi
5968
5969 CFLAGS="$CFLAGS -Wold-style-definition"
5970
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5972 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5973 cacheid=xorg_cv_cc_flag__Wold_style_definition
5974 if eval \${$cacheid+:} false; then :
5975 $as_echo_n "(cached) " >&6
5976 else
5977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5978 /* end confdefs.h. */
5979 int i;
5980 int
5981 main ()
5982 {
5983
5984 ;
5985 return 0;
5986 }
5987 _ACEOF
5988 if ac_fn_c_try_link "$LINENO"; then :
5989 eval $cacheid=yes
5990 else
5991 eval $cacheid=no
5992 fi
5993 rm -f core conftest.err conftest.$ac_objext \
5994 conftest$ac_exeext conftest.$ac_ext
5995 fi
5996
5997
5998 CFLAGS="$xorg_testset_save_CFLAGS"
5999
6000 eval supported=\$$cacheid
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6002 $as_echo "$supported" >&6; }
6003 if test "$supported" = "yes" ; then
6004 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6005 found="yes"
6006 fi
6007 fi
6008
6009 if test $found = "no" ; then
6010 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6011 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6012 fi
6013
6014 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6015 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6016 fi
6017
6018 CFLAGS="$CFLAGS -fd"
6019
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6021 $as_echo_n "checking if $CC supports -fd... " >&6; }
6022 cacheid=xorg_cv_cc_flag__fd
6023 if eval \${$cacheid+:} false; then :
6024 $as_echo_n "(cached) " >&6
6025 else
6026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6027 /* end confdefs.h. */
6028 int i;
6029 int
6030 main ()
6031 {
6032
6033 ;
6034 return 0;
6035 }
6036 _ACEOF
6037 if ac_fn_c_try_link "$LINENO"; then :
6038 eval $cacheid=yes
6039 else
6040 eval $cacheid=no
6041 fi
6042 rm -f core conftest.err conftest.$ac_objext \
6043 conftest$ac_exeext conftest.$ac_ext
6044 fi
6045
6046
6047 CFLAGS="$xorg_testset_save_CFLAGS"
6048
6049 eval supported=\$$cacheid
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6051 $as_echo "$supported" >&6; }
6052 if test "$supported" = "yes" ; then
6053 BASE_CFLAGS="$BASE_CFLAGS -fd"
6054 found="yes"
6055 fi
6056 fi
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072 xorg_testset_save_CFLAGS="$CFLAGS"
6073
6074 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6075 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6077 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6078 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6079 $as_echo_n "(cached) " >&6
6080 else
6081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6082 /* end confdefs.h. */
6083 int i;
6084 _ACEOF
6085 if ac_fn_c_try_compile "$LINENO"; then :
6086 xorg_cv_cc_flag_unknown_warning_option=yes
6087 else
6088 xorg_cv_cc_flag_unknown_warning_option=no
6089 fi
6090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6091 fi
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6093 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6094 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6095 CFLAGS="$xorg_testset_save_CFLAGS"
6096 fi
6097
6098 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6099 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6100 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6101 fi
6102 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6104 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6105 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6106 $as_echo_n "(cached) " >&6
6107 else
6108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6109 /* end confdefs.h. */
6110 int i;
6111 _ACEOF
6112 if ac_fn_c_try_compile "$LINENO"; then :
6113 xorg_cv_cc_flag_unused_command_line_argument=yes
6114 else
6115 xorg_cv_cc_flag_unused_command_line_argument=no
6116 fi
6117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6118 fi
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6120 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6121 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6122 CFLAGS="$xorg_testset_save_CFLAGS"
6123 fi
6124
6125 found="no"
6126
6127 if test $found = "no" ; then
6128 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6129 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6130 fi
6131
6132 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6133 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6134 fi
6135
6136 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6137
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6139 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6140 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6141 if eval \${$cacheid+:} false; then :
6142 $as_echo_n "(cached) " >&6
6143 else
6144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6145 /* end confdefs.h. */
6146 int i;
6147 int
6148 main ()
6149 {
6150
6151 ;
6152 return 0;
6153 }
6154 _ACEOF
6155 if ac_fn_c_try_link "$LINENO"; then :
6156 eval $cacheid=yes
6157 else
6158 eval $cacheid=no
6159 fi
6160 rm -f core conftest.err conftest.$ac_objext \
6161 conftest$ac_exeext conftest.$ac_ext
6162 fi
6163
6164
6165 CFLAGS="$xorg_testset_save_CFLAGS"
6166
6167 eval supported=\$$cacheid
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6169 $as_echo "$supported" >&6; }
6170 if test "$supported" = "yes" ; then
6171 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6172 found="yes"
6173 fi
6174 fi
6175
6176
6177
6178
6179
6180 # This chunk adds additional warnings that could catch undesired effects.
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194 xorg_testset_save_CFLAGS="$CFLAGS"
6195
6196 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6197 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6199 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6200 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6201 $as_echo_n "(cached) " >&6
6202 else
6203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6204 /* end confdefs.h. */
6205 int i;
6206 _ACEOF
6207 if ac_fn_c_try_compile "$LINENO"; then :
6208 xorg_cv_cc_flag_unknown_warning_option=yes
6209 else
6210 xorg_cv_cc_flag_unknown_warning_option=no
6211 fi
6212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6213 fi
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6215 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6216 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6217 CFLAGS="$xorg_testset_save_CFLAGS"
6218 fi
6219
6220 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6221 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6222 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6223 fi
6224 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6226 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6227 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6228 $as_echo_n "(cached) " >&6
6229 else
6230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6231 /* end confdefs.h. */
6232 int i;
6233 _ACEOF
6234 if ac_fn_c_try_compile "$LINENO"; then :
6235 xorg_cv_cc_flag_unused_command_line_argument=yes
6236 else
6237 xorg_cv_cc_flag_unused_command_line_argument=no
6238 fi
6239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6240 fi
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6242 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6243 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6244 CFLAGS="$xorg_testset_save_CFLAGS"
6245 fi
6246
6247 found="no"
6248
6249 if test $found = "no" ; then
6250 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6251 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6252 fi
6253
6254 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6255 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6256 fi
6257
6258 CFLAGS="$CFLAGS -Wunused"
6259
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6261 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
6262 cacheid=xorg_cv_cc_flag__Wunused
6263 if eval \${$cacheid+:} false; then :
6264 $as_echo_n "(cached) " >&6
6265 else
6266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6267 /* end confdefs.h. */
6268 int i;
6269 int
6270 main ()
6271 {
6272
6273 ;
6274 return 0;
6275 }
6276 _ACEOF
6277 if ac_fn_c_try_link "$LINENO"; then :
6278 eval $cacheid=yes
6279 else
6280 eval $cacheid=no
6281 fi
6282 rm -f core conftest.err conftest.$ac_objext \
6283 conftest$ac_exeext conftest.$ac_ext
6284 fi
6285
6286
6287 CFLAGS="$xorg_testset_save_CFLAGS"
6288
6289 eval supported=\$$cacheid
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6291 $as_echo "$supported" >&6; }
6292 if test "$supported" = "yes" ; then
6293 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6294 found="yes"
6295 fi
6296 fi
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312 xorg_testset_save_CFLAGS="$CFLAGS"
6313
6314 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6315 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6317 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6318 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6319 $as_echo_n "(cached) " >&6
6320 else
6321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6322 /* end confdefs.h. */
6323 int i;
6324 _ACEOF
6325 if ac_fn_c_try_compile "$LINENO"; then :
6326 xorg_cv_cc_flag_unknown_warning_option=yes
6327 else
6328 xorg_cv_cc_flag_unknown_warning_option=no
6329 fi
6330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6331 fi
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6333 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6334 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6335 CFLAGS="$xorg_testset_save_CFLAGS"
6336 fi
6337
6338 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6339 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6340 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6341 fi
6342 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6344 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6345 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6346 $as_echo_n "(cached) " >&6
6347 else
6348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6349 /* end confdefs.h. */
6350 int i;
6351 _ACEOF
6352 if ac_fn_c_try_compile "$LINENO"; then :
6353 xorg_cv_cc_flag_unused_command_line_argument=yes
6354 else
6355 xorg_cv_cc_flag_unused_command_line_argument=no
6356 fi
6357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6358 fi
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6360 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6361 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6362 CFLAGS="$xorg_testset_save_CFLAGS"
6363 fi
6364
6365 found="no"
6366
6367 if test $found = "no" ; then
6368 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6369 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6370 fi
6371
6372 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6373 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6374 fi
6375
6376 CFLAGS="$CFLAGS -Wuninitialized"
6377
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6379 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6380 cacheid=xorg_cv_cc_flag__Wuninitialized
6381 if eval \${$cacheid+:} false; then :
6382 $as_echo_n "(cached) " >&6
6383 else
6384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6385 /* end confdefs.h. */
6386 int i;
6387 int
6388 main ()
6389 {
6390
6391 ;
6392 return 0;
6393 }
6394 _ACEOF
6395 if ac_fn_c_try_link "$LINENO"; then :
6396 eval $cacheid=yes
6397 else
6398 eval $cacheid=no
6399 fi
6400 rm -f core conftest.err conftest.$ac_objext \
6401 conftest$ac_exeext conftest.$ac_ext
6402 fi
6403
6404
6405 CFLAGS="$xorg_testset_save_CFLAGS"
6406
6407 eval supported=\$$cacheid
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6409 $as_echo "$supported" >&6; }
6410 if test "$supported" = "yes" ; then
6411 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6412 found="yes"
6413 fi
6414 fi
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430 xorg_testset_save_CFLAGS="$CFLAGS"
6431
6432 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6433 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6435 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6436 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6437 $as_echo_n "(cached) " >&6
6438 else
6439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6440 /* end confdefs.h. */
6441 int i;
6442 _ACEOF
6443 if ac_fn_c_try_compile "$LINENO"; then :
6444 xorg_cv_cc_flag_unknown_warning_option=yes
6445 else
6446 xorg_cv_cc_flag_unknown_warning_option=no
6447 fi
6448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6449 fi
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6451 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6452 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6453 CFLAGS="$xorg_testset_save_CFLAGS"
6454 fi
6455
6456 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6457 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6458 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6459 fi
6460 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6462 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6463 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6464 $as_echo_n "(cached) " >&6
6465 else
6466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6467 /* end confdefs.h. */
6468 int i;
6469 _ACEOF
6470 if ac_fn_c_try_compile "$LINENO"; then :
6471 xorg_cv_cc_flag_unused_command_line_argument=yes
6472 else
6473 xorg_cv_cc_flag_unused_command_line_argument=no
6474 fi
6475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6476 fi
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6478 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6479 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6480 CFLAGS="$xorg_testset_save_CFLAGS"
6481 fi
6482
6483 found="no"
6484
6485 if test $found = "no" ; then
6486 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6487 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6488 fi
6489
6490 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6491 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6492 fi
6493
6494 CFLAGS="$CFLAGS -Wshadow"
6495
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6497 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6498 cacheid=xorg_cv_cc_flag__Wshadow
6499 if eval \${$cacheid+:} false; then :
6500 $as_echo_n "(cached) " >&6
6501 else
6502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6503 /* end confdefs.h. */
6504 int i;
6505 int
6506 main ()
6507 {
6508
6509 ;
6510 return 0;
6511 }
6512 _ACEOF
6513 if ac_fn_c_try_link "$LINENO"; then :
6514 eval $cacheid=yes
6515 else
6516 eval $cacheid=no
6517 fi
6518 rm -f core conftest.err conftest.$ac_objext \
6519 conftest$ac_exeext conftest.$ac_ext
6520 fi
6521
6522
6523 CFLAGS="$xorg_testset_save_CFLAGS"
6524
6525 eval supported=\$$cacheid
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6527 $as_echo "$supported" >&6; }
6528 if test "$supported" = "yes" ; then
6529 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6530 found="yes"
6531 fi
6532 fi
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548 xorg_testset_save_CFLAGS="$CFLAGS"
6549
6550 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6551 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6553 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6554 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6555 $as_echo_n "(cached) " >&6
6556 else
6557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6558 /* end confdefs.h. */
6559 int i;
6560 _ACEOF
6561 if ac_fn_c_try_compile "$LINENO"; then :
6562 xorg_cv_cc_flag_unknown_warning_option=yes
6563 else
6564 xorg_cv_cc_flag_unknown_warning_option=no
6565 fi
6566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6567 fi
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6569 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6570 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6571 CFLAGS="$xorg_testset_save_CFLAGS"
6572 fi
6573
6574 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6575 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6576 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6577 fi
6578 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6580 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6581 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6582 $as_echo_n "(cached) " >&6
6583 else
6584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6585 /* end confdefs.h. */
6586 int i;
6587 _ACEOF
6588 if ac_fn_c_try_compile "$LINENO"; then :
6589 xorg_cv_cc_flag_unused_command_line_argument=yes
6590 else
6591 xorg_cv_cc_flag_unused_command_line_argument=no
6592 fi
6593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6594 fi
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6596 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6597 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6598 CFLAGS="$xorg_testset_save_CFLAGS"
6599 fi
6600
6601 found="no"
6602
6603 if test $found = "no" ; then
6604 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6605 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6606 fi
6607
6608 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6609 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6610 fi
6611
6612 CFLAGS="$CFLAGS -Wmissing-noreturn"
6613
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6615 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6616 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6617 if eval \${$cacheid+:} false; then :
6618 $as_echo_n "(cached) " >&6
6619 else
6620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6621 /* end confdefs.h. */
6622 int i;
6623 int
6624 main ()
6625 {
6626
6627 ;
6628 return 0;
6629 }
6630 _ACEOF
6631 if ac_fn_c_try_link "$LINENO"; then :
6632 eval $cacheid=yes
6633 else
6634 eval $cacheid=no
6635 fi
6636 rm -f core conftest.err conftest.$ac_objext \
6637 conftest$ac_exeext conftest.$ac_ext
6638 fi
6639
6640
6641 CFLAGS="$xorg_testset_save_CFLAGS"
6642
6643 eval supported=\$$cacheid
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6645 $as_echo "$supported" >&6; }
6646 if test "$supported" = "yes" ; then
6647 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6648 found="yes"
6649 fi
6650 fi
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666 xorg_testset_save_CFLAGS="$CFLAGS"
6667
6668 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6669 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6671 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6672 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6673 $as_echo_n "(cached) " >&6
6674 else
6675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6676 /* end confdefs.h. */
6677 int i;
6678 _ACEOF
6679 if ac_fn_c_try_compile "$LINENO"; then :
6680 xorg_cv_cc_flag_unknown_warning_option=yes
6681 else
6682 xorg_cv_cc_flag_unknown_warning_option=no
6683 fi
6684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6685 fi
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6687 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6688 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6689 CFLAGS="$xorg_testset_save_CFLAGS"
6690 fi
6691
6692 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6693 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6694 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6695 fi
6696 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6698 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6699 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6700 $as_echo_n "(cached) " >&6
6701 else
6702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6703 /* end confdefs.h. */
6704 int i;
6705 _ACEOF
6706 if ac_fn_c_try_compile "$LINENO"; then :
6707 xorg_cv_cc_flag_unused_command_line_argument=yes
6708 else
6709 xorg_cv_cc_flag_unused_command_line_argument=no
6710 fi
6711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6712 fi
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6714 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6715 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6716 CFLAGS="$xorg_testset_save_CFLAGS"
6717 fi
6718
6719 found="no"
6720
6721 if test $found = "no" ; then
6722 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6723 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6724 fi
6725
6726 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6727 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6728 fi
6729
6730 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6731
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6733 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6734 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6735 if eval \${$cacheid+:} false; then :
6736 $as_echo_n "(cached) " >&6
6737 else
6738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6739 /* end confdefs.h. */
6740 int i;
6741 int
6742 main ()
6743 {
6744
6745 ;
6746 return 0;
6747 }
6748 _ACEOF
6749 if ac_fn_c_try_link "$LINENO"; then :
6750 eval $cacheid=yes
6751 else
6752 eval $cacheid=no
6753 fi
6754 rm -f core conftest.err conftest.$ac_objext \
6755 conftest$ac_exeext conftest.$ac_ext
6756 fi
6757
6758
6759 CFLAGS="$xorg_testset_save_CFLAGS"
6760
6761 eval supported=\$$cacheid
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6763 $as_echo "$supported" >&6; }
6764 if test "$supported" = "yes" ; then
6765 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6766 found="yes"
6767 fi
6768 fi
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784 xorg_testset_save_CFLAGS="$CFLAGS"
6785
6786 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6787 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6789 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6790 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6791 $as_echo_n "(cached) " >&6
6792 else
6793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6794 /* end confdefs.h. */
6795 int i;
6796 _ACEOF
6797 if ac_fn_c_try_compile "$LINENO"; then :
6798 xorg_cv_cc_flag_unknown_warning_option=yes
6799 else
6800 xorg_cv_cc_flag_unknown_warning_option=no
6801 fi
6802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6803 fi
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6805 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6806 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6807 CFLAGS="$xorg_testset_save_CFLAGS"
6808 fi
6809
6810 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6811 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6812 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6813 fi
6814 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6816 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6817 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6818 $as_echo_n "(cached) " >&6
6819 else
6820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6821 /* end confdefs.h. */
6822 int i;
6823 _ACEOF
6824 if ac_fn_c_try_compile "$LINENO"; then :
6825 xorg_cv_cc_flag_unused_command_line_argument=yes
6826 else
6827 xorg_cv_cc_flag_unused_command_line_argument=no
6828 fi
6829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6830 fi
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6832 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6833 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6834 CFLAGS="$xorg_testset_save_CFLAGS"
6835 fi
6836
6837 found="no"
6838
6839 if test $found = "no" ; then
6840 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6841 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6842 fi
6843
6844 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6845 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6846 fi
6847
6848 CFLAGS="$CFLAGS -Wredundant-decls"
6849
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6851 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6852 cacheid=xorg_cv_cc_flag__Wredundant_decls
6853 if eval \${$cacheid+:} false; then :
6854 $as_echo_n "(cached) " >&6
6855 else
6856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6857 /* end confdefs.h. */
6858 int i;
6859 int
6860 main ()
6861 {
6862
6863 ;
6864 return 0;
6865 }
6866 _ACEOF
6867 if ac_fn_c_try_link "$LINENO"; then :
6868 eval $cacheid=yes
6869 else
6870 eval $cacheid=no
6871 fi
6872 rm -f core conftest.err conftest.$ac_objext \
6873 conftest$ac_exeext conftest.$ac_ext
6874 fi
6875
6876
6877 CFLAGS="$xorg_testset_save_CFLAGS"
6878
6879 eval supported=\$$cacheid
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6881 $as_echo "$supported" >&6; }
6882 if test "$supported" = "yes" ; then
6883 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6884 found="yes"
6885 fi
6886 fi
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902 xorg_testset_save_CFLAGS="$CFLAGS"
6903
6904 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6905 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6907 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6908 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6909 $as_echo_n "(cached) " >&6
6910 else
6911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6912 /* end confdefs.h. */
6913 int i;
6914 _ACEOF
6915 if ac_fn_c_try_compile "$LINENO"; then :
6916 xorg_cv_cc_flag_unknown_warning_option=yes
6917 else
6918 xorg_cv_cc_flag_unknown_warning_option=no
6919 fi
6920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6921 fi
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6923 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6924 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6925 CFLAGS="$xorg_testset_save_CFLAGS"
6926 fi
6927
6928 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6929 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6930 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6931 fi
6932 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6934 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6935 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6936 $as_echo_n "(cached) " >&6
6937 else
6938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6939 /* end confdefs.h. */
6940 int i;
6941 _ACEOF
6942 if ac_fn_c_try_compile "$LINENO"; then :
6943 xorg_cv_cc_flag_unused_command_line_argument=yes
6944 else
6945 xorg_cv_cc_flag_unused_command_line_argument=no
6946 fi
6947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6948 fi
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6950 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6951 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6952 CFLAGS="$xorg_testset_save_CFLAGS"
6953 fi
6954
6955 found="no"
6956
6957 if test $found = "no" ; then
6958 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6959 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6960 fi
6961
6962 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6963 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6964 fi
6965
6966 CFLAGS="$CFLAGS -Wlogical-op"
6967
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6969 $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
6970 cacheid=xorg_cv_cc_flag__Wlogical_op
6971 if eval \${$cacheid+:} false; then :
6972 $as_echo_n "(cached) " >&6
6973 else
6974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6975 /* end confdefs.h. */
6976 int i;
6977 int
6978 main ()
6979 {
6980
6981 ;
6982 return 0;
6983 }
6984 _ACEOF
6985 if ac_fn_c_try_link "$LINENO"; then :
6986 eval $cacheid=yes
6987 else
6988 eval $cacheid=no
6989 fi
6990 rm -f core conftest.err conftest.$ac_objext \
6991 conftest$ac_exeext conftest.$ac_ext
6992 fi
6993
6994
6995 CFLAGS="$xorg_testset_save_CFLAGS"
6996
6997 eval supported=\$$cacheid
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6999 $as_echo "$supported" >&6; }
7000 if test "$supported" = "yes" ; then
7001 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7002 found="yes"
7003 fi
7004 fi
7005
7006
7007
7008 # These are currently disabled because they are noisy. They will be enabled
7009 # in the future once the codebase is sufficiently modernized to silence
7010 # them. For now, I don't want them to drown out the other warnings.
7011 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7012 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7013 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7014
7015 # Turn some warnings into errors, so we don't accidently get successful builds
7016 # when there are problems that should be fixed.
7017
7018 if test "x$SELECTIVE_WERROR" = "xyes" ; then
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032 xorg_testset_save_CFLAGS="$CFLAGS"
7033
7034 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7035 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7037 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7038 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7039 $as_echo_n "(cached) " >&6
7040 else
7041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7042 /* end confdefs.h. */
7043 int i;
7044 _ACEOF
7045 if ac_fn_c_try_compile "$LINENO"; then :
7046 xorg_cv_cc_flag_unknown_warning_option=yes
7047 else
7048 xorg_cv_cc_flag_unknown_warning_option=no
7049 fi
7050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7051 fi
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7053 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7054 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7055 CFLAGS="$xorg_testset_save_CFLAGS"
7056 fi
7057
7058 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7059 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7060 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7061 fi
7062 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7064 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7065 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7066 $as_echo_n "(cached) " >&6
7067 else
7068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7069 /* end confdefs.h. */
7070 int i;
7071 _ACEOF
7072 if ac_fn_c_try_compile "$LINENO"; then :
7073 xorg_cv_cc_flag_unused_command_line_argument=yes
7074 else
7075 xorg_cv_cc_flag_unused_command_line_argument=no
7076 fi
7077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7078 fi
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7080 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7081 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7082 CFLAGS="$xorg_testset_save_CFLAGS"
7083 fi
7084
7085 found="no"
7086
7087 if test $found = "no" ; then
7088 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7089 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7090 fi
7091
7092 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7093 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7094 fi
7095
7096 CFLAGS="$CFLAGS -Werror=implicit"
7097
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7099 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
7100 cacheid=xorg_cv_cc_flag__Werror_implicit
7101 if eval \${$cacheid+:} false; then :
7102 $as_echo_n "(cached) " >&6
7103 else
7104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7105 /* end confdefs.h. */
7106 int i;
7107 int
7108 main ()
7109 {
7110
7111 ;
7112 return 0;
7113 }
7114 _ACEOF
7115 if ac_fn_c_try_link "$LINENO"; then :
7116 eval $cacheid=yes
7117 else
7118 eval $cacheid=no
7119 fi
7120 rm -f core conftest.err conftest.$ac_objext \
7121 conftest$ac_exeext conftest.$ac_ext
7122 fi
7123
7124
7125 CFLAGS="$xorg_testset_save_CFLAGS"
7126
7127 eval supported=\$$cacheid
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7129 $as_echo "$supported" >&6; }
7130 if test "$supported" = "yes" ; then
7131 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7132 found="yes"
7133 fi
7134 fi
7135
7136 if test $found = "no" ; then
7137 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7138 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7139 fi
7140
7141 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7142 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7143 fi
7144
7145 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7146
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7148 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7149 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7150 if eval \${$cacheid+:} false; then :
7151 $as_echo_n "(cached) " >&6
7152 else
7153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7154 /* end confdefs.h. */
7155 int i;
7156 int
7157 main ()
7158 {
7159
7160 ;
7161 return 0;
7162 }
7163 _ACEOF
7164 if ac_fn_c_try_link "$LINENO"; then :
7165 eval $cacheid=yes
7166 else
7167 eval $cacheid=no
7168 fi
7169 rm -f core conftest.err conftest.$ac_objext \
7170 conftest$ac_exeext conftest.$ac_ext
7171 fi
7172
7173
7174 CFLAGS="$xorg_testset_save_CFLAGS"
7175
7176 eval supported=\$$cacheid
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7178 $as_echo "$supported" >&6; }
7179 if test "$supported" = "yes" ; then
7180 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7181 found="yes"
7182 fi
7183 fi
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199 xorg_testset_save_CFLAGS="$CFLAGS"
7200
7201 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7202 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7204 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7205 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7206 $as_echo_n "(cached) " >&6
7207 else
7208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7209 /* end confdefs.h. */
7210 int i;
7211 _ACEOF
7212 if ac_fn_c_try_compile "$LINENO"; then :
7213 xorg_cv_cc_flag_unknown_warning_option=yes
7214 else
7215 xorg_cv_cc_flag_unknown_warning_option=no
7216 fi
7217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7218 fi
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7220 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7221 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7222 CFLAGS="$xorg_testset_save_CFLAGS"
7223 fi
7224
7225 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7226 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7227 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7228 fi
7229 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7231 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7232 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7233 $as_echo_n "(cached) " >&6
7234 else
7235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7236 /* end confdefs.h. */
7237 int i;
7238 _ACEOF
7239 if ac_fn_c_try_compile "$LINENO"; then :
7240 xorg_cv_cc_flag_unused_command_line_argument=yes
7241 else
7242 xorg_cv_cc_flag_unused_command_line_argument=no
7243 fi
7244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7245 fi
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7247 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7248 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7249 CFLAGS="$xorg_testset_save_CFLAGS"
7250 fi
7251
7252 found="no"
7253
7254 if test $found = "no" ; then
7255 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7256 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7257 fi
7258
7259 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7260 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7261 fi
7262
7263 CFLAGS="$CFLAGS -Werror=nonnull"
7264
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7266 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7267 cacheid=xorg_cv_cc_flag__Werror_nonnull
7268 if eval \${$cacheid+:} false; then :
7269 $as_echo_n "(cached) " >&6
7270 else
7271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7272 /* end confdefs.h. */
7273 int i;
7274 int
7275 main ()
7276 {
7277
7278 ;
7279 return 0;
7280 }
7281 _ACEOF
7282 if ac_fn_c_try_link "$LINENO"; then :
7283 eval $cacheid=yes
7284 else
7285 eval $cacheid=no
7286 fi
7287 rm -f core conftest.err conftest.$ac_objext \
7288 conftest$ac_exeext conftest.$ac_ext
7289 fi
7290
7291
7292 CFLAGS="$xorg_testset_save_CFLAGS"
7293
7294 eval supported=\$$cacheid
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7296 $as_echo "$supported" >&6; }
7297 if test "$supported" = "yes" ; then
7298 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7299 found="yes"
7300 fi
7301 fi
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317 xorg_testset_save_CFLAGS="$CFLAGS"
7318
7319 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7320 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7322 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7323 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7324 $as_echo_n "(cached) " >&6
7325 else
7326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7327 /* end confdefs.h. */
7328 int i;
7329 _ACEOF
7330 if ac_fn_c_try_compile "$LINENO"; then :
7331 xorg_cv_cc_flag_unknown_warning_option=yes
7332 else
7333 xorg_cv_cc_flag_unknown_warning_option=no
7334 fi
7335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7336 fi
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7338 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7339 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7340 CFLAGS="$xorg_testset_save_CFLAGS"
7341 fi
7342
7343 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7344 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7345 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7346 fi
7347 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7349 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7350 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7351 $as_echo_n "(cached) " >&6
7352 else
7353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7354 /* end confdefs.h. */
7355 int i;
7356 _ACEOF
7357 if ac_fn_c_try_compile "$LINENO"; then :
7358 xorg_cv_cc_flag_unused_command_line_argument=yes
7359 else
7360 xorg_cv_cc_flag_unused_command_line_argument=no
7361 fi
7362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7363 fi
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7365 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7366 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7367 CFLAGS="$xorg_testset_save_CFLAGS"
7368 fi
7369
7370 found="no"
7371
7372 if test $found = "no" ; then
7373 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7374 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7375 fi
7376
7377 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7378 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7379 fi
7380
7381 CFLAGS="$CFLAGS -Werror=init-self"
7382
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7384 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7385 cacheid=xorg_cv_cc_flag__Werror_init_self
7386 if eval \${$cacheid+:} false; then :
7387 $as_echo_n "(cached) " >&6
7388 else
7389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7390 /* end confdefs.h. */
7391 int i;
7392 int
7393 main ()
7394 {
7395
7396 ;
7397 return 0;
7398 }
7399 _ACEOF
7400 if ac_fn_c_try_link "$LINENO"; then :
7401 eval $cacheid=yes
7402 else
7403 eval $cacheid=no
7404 fi
7405 rm -f core conftest.err conftest.$ac_objext \
7406 conftest$ac_exeext conftest.$ac_ext
7407 fi
7408
7409
7410 CFLAGS="$xorg_testset_save_CFLAGS"
7411
7412 eval supported=\$$cacheid
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7414 $as_echo "$supported" >&6; }
7415 if test "$supported" = "yes" ; then
7416 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7417 found="yes"
7418 fi
7419 fi
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435 xorg_testset_save_CFLAGS="$CFLAGS"
7436
7437 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7438 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7440 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7441 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7442 $as_echo_n "(cached) " >&6
7443 else
7444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7445 /* end confdefs.h. */
7446 int i;
7447 _ACEOF
7448 if ac_fn_c_try_compile "$LINENO"; then :
7449 xorg_cv_cc_flag_unknown_warning_option=yes
7450 else
7451 xorg_cv_cc_flag_unknown_warning_option=no
7452 fi
7453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7454 fi
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7456 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7457 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7458 CFLAGS="$xorg_testset_save_CFLAGS"
7459 fi
7460
7461 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7462 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7463 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7464 fi
7465 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7467 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7468 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7469 $as_echo_n "(cached) " >&6
7470 else
7471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7472 /* end confdefs.h. */
7473 int i;
7474 _ACEOF
7475 if ac_fn_c_try_compile "$LINENO"; then :
7476 xorg_cv_cc_flag_unused_command_line_argument=yes
7477 else
7478 xorg_cv_cc_flag_unused_command_line_argument=no
7479 fi
7480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7481 fi
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7483 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7484 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7485 CFLAGS="$xorg_testset_save_CFLAGS"
7486 fi
7487
7488 found="no"
7489
7490 if test $found = "no" ; then
7491 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7492 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7493 fi
7494
7495 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7496 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7497 fi
7498
7499 CFLAGS="$CFLAGS -Werror=main"
7500
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7502 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7503 cacheid=xorg_cv_cc_flag__Werror_main
7504 if eval \${$cacheid+:} false; then :
7505 $as_echo_n "(cached) " >&6
7506 else
7507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7508 /* end confdefs.h. */
7509 int i;
7510 int
7511 main ()
7512 {
7513
7514 ;
7515 return 0;
7516 }
7517 _ACEOF
7518 if ac_fn_c_try_link "$LINENO"; then :
7519 eval $cacheid=yes
7520 else
7521 eval $cacheid=no
7522 fi
7523 rm -f core conftest.err conftest.$ac_objext \
7524 conftest$ac_exeext conftest.$ac_ext
7525 fi
7526
7527
7528 CFLAGS="$xorg_testset_save_CFLAGS"
7529
7530 eval supported=\$$cacheid
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7532 $as_echo "$supported" >&6; }
7533 if test "$supported" = "yes" ; then
7534 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7535 found="yes"
7536 fi
7537 fi
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553 xorg_testset_save_CFLAGS="$CFLAGS"
7554
7555 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7556 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7558 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7559 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7560 $as_echo_n "(cached) " >&6
7561 else
7562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7563 /* end confdefs.h. */
7564 int i;
7565 _ACEOF
7566 if ac_fn_c_try_compile "$LINENO"; then :
7567 xorg_cv_cc_flag_unknown_warning_option=yes
7568 else
7569 xorg_cv_cc_flag_unknown_warning_option=no
7570 fi
7571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7572 fi
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7574 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7575 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7576 CFLAGS="$xorg_testset_save_CFLAGS"
7577 fi
7578
7579 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7580 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7581 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7582 fi
7583 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7585 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7586 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7587 $as_echo_n "(cached) " >&6
7588 else
7589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7590 /* end confdefs.h. */
7591 int i;
7592 _ACEOF
7593 if ac_fn_c_try_compile "$LINENO"; then :
7594 xorg_cv_cc_flag_unused_command_line_argument=yes
7595 else
7596 xorg_cv_cc_flag_unused_command_line_argument=no
7597 fi
7598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7599 fi
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7601 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7602 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7603 CFLAGS="$xorg_testset_save_CFLAGS"
7604 fi
7605
7606 found="no"
7607
7608 if test $found = "no" ; then
7609 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7610 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7611 fi
7612
7613 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7614 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7615 fi
7616
7617 CFLAGS="$CFLAGS -Werror=missing-braces"
7618
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7620 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7621 cacheid=xorg_cv_cc_flag__Werror_missing_braces
7622 if eval \${$cacheid+:} false; then :
7623 $as_echo_n "(cached) " >&6
7624 else
7625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7626 /* end confdefs.h. */
7627 int i;
7628 int
7629 main ()
7630 {
7631
7632 ;
7633 return 0;
7634 }
7635 _ACEOF
7636 if ac_fn_c_try_link "$LINENO"; then :
7637 eval $cacheid=yes
7638 else
7639 eval $cacheid=no
7640 fi
7641 rm -f core conftest.err conftest.$ac_objext \
7642 conftest$ac_exeext conftest.$ac_ext
7643 fi
7644
7645
7646 CFLAGS="$xorg_testset_save_CFLAGS"
7647
7648 eval supported=\$$cacheid
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7650 $as_echo "$supported" >&6; }
7651 if test "$supported" = "yes" ; then
7652 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7653 found="yes"
7654 fi
7655 fi
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671 xorg_testset_save_CFLAGS="$CFLAGS"
7672
7673 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7674 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7676 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7677 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7678 $as_echo_n "(cached) " >&6
7679 else
7680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7681 /* end confdefs.h. */
7682 int i;
7683 _ACEOF
7684 if ac_fn_c_try_compile "$LINENO"; then :
7685 xorg_cv_cc_flag_unknown_warning_option=yes
7686 else
7687 xorg_cv_cc_flag_unknown_warning_option=no
7688 fi
7689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7690 fi
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7692 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7693 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7694 CFLAGS="$xorg_testset_save_CFLAGS"
7695 fi
7696
7697 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7698 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7699 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7700 fi
7701 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7703 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7704 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7705 $as_echo_n "(cached) " >&6
7706 else
7707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7708 /* end confdefs.h. */
7709 int i;
7710 _ACEOF
7711 if ac_fn_c_try_compile "$LINENO"; then :
7712 xorg_cv_cc_flag_unused_command_line_argument=yes
7713 else
7714 xorg_cv_cc_flag_unused_command_line_argument=no
7715 fi
7716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7717 fi
7718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7719 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7720 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7721 CFLAGS="$xorg_testset_save_CFLAGS"
7722 fi
7723
7724 found="no"
7725
7726 if test $found = "no" ; then
7727 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7728 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7729 fi
7730
7731 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7732 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7733 fi
7734
7735 CFLAGS="$CFLAGS -Werror=sequence-point"
7736
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7738 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7739 cacheid=xorg_cv_cc_flag__Werror_sequence_point
7740 if eval \${$cacheid+:} false; then :
7741 $as_echo_n "(cached) " >&6
7742 else
7743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7744 /* end confdefs.h. */
7745 int i;
7746 int
7747 main ()
7748 {
7749
7750 ;
7751 return 0;
7752 }
7753 _ACEOF
7754 if ac_fn_c_try_link "$LINENO"; then :
7755 eval $cacheid=yes
7756 else
7757 eval $cacheid=no
7758 fi
7759 rm -f core conftest.err conftest.$ac_objext \
7760 conftest$ac_exeext conftest.$ac_ext
7761 fi
7762
7763
7764 CFLAGS="$xorg_testset_save_CFLAGS"
7765
7766 eval supported=\$$cacheid
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7768 $as_echo "$supported" >&6; }
7769 if test "$supported" = "yes" ; then
7770 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7771 found="yes"
7772 fi
7773 fi
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789 xorg_testset_save_CFLAGS="$CFLAGS"
7790
7791 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7792 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7794 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7795 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7796 $as_echo_n "(cached) " >&6
7797 else
7798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7799 /* end confdefs.h. */
7800 int i;
7801 _ACEOF
7802 if ac_fn_c_try_compile "$LINENO"; then :
7803 xorg_cv_cc_flag_unknown_warning_option=yes
7804 else
7805 xorg_cv_cc_flag_unknown_warning_option=no
7806 fi
7807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7808 fi
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7810 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7811 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7812 CFLAGS="$xorg_testset_save_CFLAGS"
7813 fi
7814
7815 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7816 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7817 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7818 fi
7819 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7821 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7822 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7823 $as_echo_n "(cached) " >&6
7824 else
7825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7826 /* end confdefs.h. */
7827 int i;
7828 _ACEOF
7829 if ac_fn_c_try_compile "$LINENO"; then :
7830 xorg_cv_cc_flag_unused_command_line_argument=yes
7831 else
7832 xorg_cv_cc_flag_unused_command_line_argument=no
7833 fi
7834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7835 fi
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7837 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7838 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7839 CFLAGS="$xorg_testset_save_CFLAGS"
7840 fi
7841
7842 found="no"
7843
7844 if test $found = "no" ; then
7845 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7846 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7847 fi
7848
7849 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7850 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7851 fi
7852
7853 CFLAGS="$CFLAGS -Werror=return-type"
7854
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7856 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7857 cacheid=xorg_cv_cc_flag__Werror_return_type
7858 if eval \${$cacheid+:} false; then :
7859 $as_echo_n "(cached) " >&6
7860 else
7861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7862 /* end confdefs.h. */
7863 int i;
7864 int
7865 main ()
7866 {
7867
7868 ;
7869 return 0;
7870 }
7871 _ACEOF
7872 if ac_fn_c_try_link "$LINENO"; then :
7873 eval $cacheid=yes
7874 else
7875 eval $cacheid=no
7876 fi
7877 rm -f core conftest.err conftest.$ac_objext \
7878 conftest$ac_exeext conftest.$ac_ext
7879 fi
7880
7881
7882 CFLAGS="$xorg_testset_save_CFLAGS"
7883
7884 eval supported=\$$cacheid
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7886 $as_echo "$supported" >&6; }
7887 if test "$supported" = "yes" ; then
7888 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7889 found="yes"
7890 fi
7891 fi
7892
7893 if test $found = "no" ; then
7894 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7895 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7896 fi
7897
7898 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7899 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7900 fi
7901
7902 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7903
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7905 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7906 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7907 if eval \${$cacheid+:} false; then :
7908 $as_echo_n "(cached) " >&6
7909 else
7910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7911 /* end confdefs.h. */
7912 int i;
7913 int
7914 main ()
7915 {
7916
7917 ;
7918 return 0;
7919 }
7920 _ACEOF
7921 if ac_fn_c_try_link "$LINENO"; then :
7922 eval $cacheid=yes
7923 else
7924 eval $cacheid=no
7925 fi
7926 rm -f core conftest.err conftest.$ac_objext \
7927 conftest$ac_exeext conftest.$ac_ext
7928 fi
7929
7930
7931 CFLAGS="$xorg_testset_save_CFLAGS"
7932
7933 eval supported=\$$cacheid
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7935 $as_echo "$supported" >&6; }
7936 if test "$supported" = "yes" ; then
7937 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7938 found="yes"
7939 fi
7940 fi
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956 xorg_testset_save_CFLAGS="$CFLAGS"
7957
7958 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7959 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7961 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7962 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7963 $as_echo_n "(cached) " >&6
7964 else
7965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7966 /* end confdefs.h. */
7967 int i;
7968 _ACEOF
7969 if ac_fn_c_try_compile "$LINENO"; then :
7970 xorg_cv_cc_flag_unknown_warning_option=yes
7971 else
7972 xorg_cv_cc_flag_unknown_warning_option=no
7973 fi
7974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7975 fi
7976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7977 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7978 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7979 CFLAGS="$xorg_testset_save_CFLAGS"
7980 fi
7981
7982 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7983 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7984 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7985 fi
7986 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7988 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7989 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7990 $as_echo_n "(cached) " >&6
7991 else
7992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7993 /* end confdefs.h. */
7994 int i;
7995 _ACEOF
7996 if ac_fn_c_try_compile "$LINENO"; then :
7997 xorg_cv_cc_flag_unused_command_line_argument=yes
7998 else
7999 xorg_cv_cc_flag_unused_command_line_argument=no
8000 fi
8001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8002 fi
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8004 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8005 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8006 CFLAGS="$xorg_testset_save_CFLAGS"
8007 fi
8008
8009 found="no"
8010
8011 if test $found = "no" ; then
8012 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8013 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8014 fi
8015
8016 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8017 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8018 fi
8019
8020 CFLAGS="$CFLAGS -Werror=trigraphs"
8021
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8023 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
8024 cacheid=xorg_cv_cc_flag__Werror_trigraphs
8025 if eval \${$cacheid+:} false; then :
8026 $as_echo_n "(cached) " >&6
8027 else
8028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8029 /* end confdefs.h. */
8030 int i;
8031 int
8032 main ()
8033 {
8034
8035 ;
8036 return 0;
8037 }
8038 _ACEOF
8039 if ac_fn_c_try_link "$LINENO"; then :
8040 eval $cacheid=yes
8041 else
8042 eval $cacheid=no
8043 fi
8044 rm -f core conftest.err conftest.$ac_objext \
8045 conftest$ac_exeext conftest.$ac_ext
8046 fi
8047
8048
8049 CFLAGS="$xorg_testset_save_CFLAGS"
8050
8051 eval supported=\$$cacheid
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8053 $as_echo "$supported" >&6; }
8054 if test "$supported" = "yes" ; then
8055 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8056 found="yes"
8057 fi
8058 fi
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074 xorg_testset_save_CFLAGS="$CFLAGS"
8075
8076 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8077 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8079 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8080 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8081 $as_echo_n "(cached) " >&6
8082 else
8083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8084 /* end confdefs.h. */
8085 int i;
8086 _ACEOF
8087 if ac_fn_c_try_compile "$LINENO"; then :
8088 xorg_cv_cc_flag_unknown_warning_option=yes
8089 else
8090 xorg_cv_cc_flag_unknown_warning_option=no
8091 fi
8092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8093 fi
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8095 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8096 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8097 CFLAGS="$xorg_testset_save_CFLAGS"
8098 fi
8099
8100 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8101 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8102 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8103 fi
8104 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8106 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8107 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8108 $as_echo_n "(cached) " >&6
8109 else
8110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8111 /* end confdefs.h. */
8112 int i;
8113 _ACEOF
8114 if ac_fn_c_try_compile "$LINENO"; then :
8115 xorg_cv_cc_flag_unused_command_line_argument=yes
8116 else
8117 xorg_cv_cc_flag_unused_command_line_argument=no
8118 fi
8119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8120 fi
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8122 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8123 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8124 CFLAGS="$xorg_testset_save_CFLAGS"
8125 fi
8126
8127 found="no"
8128
8129 if test $found = "no" ; then
8130 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8131 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8132 fi
8133
8134 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8135 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8136 fi
8137
8138 CFLAGS="$CFLAGS -Werror=array-bounds"
8139
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8141 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
8142 cacheid=xorg_cv_cc_flag__Werror_array_bounds
8143 if eval \${$cacheid+:} false; then :
8144 $as_echo_n "(cached) " >&6
8145 else
8146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8147 /* end confdefs.h. */
8148 int i;
8149 int
8150 main ()
8151 {
8152
8153 ;
8154 return 0;
8155 }
8156 _ACEOF
8157 if ac_fn_c_try_link "$LINENO"; then :
8158 eval $cacheid=yes
8159 else
8160 eval $cacheid=no
8161 fi
8162 rm -f core conftest.err conftest.$ac_objext \
8163 conftest$ac_exeext conftest.$ac_ext
8164 fi
8165
8166
8167 CFLAGS="$xorg_testset_save_CFLAGS"
8168
8169 eval supported=\$$cacheid
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8171 $as_echo "$supported" >&6; }
8172 if test "$supported" = "yes" ; then
8173 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8174 found="yes"
8175 fi
8176 fi
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192 xorg_testset_save_CFLAGS="$CFLAGS"
8193
8194 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8195 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8197 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8198 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8199 $as_echo_n "(cached) " >&6
8200 else
8201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8202 /* end confdefs.h. */
8203 int i;
8204 _ACEOF
8205 if ac_fn_c_try_compile "$LINENO"; then :
8206 xorg_cv_cc_flag_unknown_warning_option=yes
8207 else
8208 xorg_cv_cc_flag_unknown_warning_option=no
8209 fi
8210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8211 fi
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8213 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8214 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8215 CFLAGS="$xorg_testset_save_CFLAGS"
8216 fi
8217
8218 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8219 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8220 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8221 fi
8222 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8224 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8225 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8226 $as_echo_n "(cached) " >&6
8227 else
8228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8229 /* end confdefs.h. */
8230 int i;
8231 _ACEOF
8232 if ac_fn_c_try_compile "$LINENO"; then :
8233 xorg_cv_cc_flag_unused_command_line_argument=yes
8234 else
8235 xorg_cv_cc_flag_unused_command_line_argument=no
8236 fi
8237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8238 fi
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8240 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8241 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8242 CFLAGS="$xorg_testset_save_CFLAGS"
8243 fi
8244
8245 found="no"
8246
8247 if test $found = "no" ; then
8248 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8249 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8250 fi
8251
8252 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8253 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8254 fi
8255
8256 CFLAGS="$CFLAGS -Werror=write-strings"
8257
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8259 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8260 cacheid=xorg_cv_cc_flag__Werror_write_strings
8261 if eval \${$cacheid+:} false; then :
8262 $as_echo_n "(cached) " >&6
8263 else
8264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8265 /* end confdefs.h. */
8266 int i;
8267 int
8268 main ()
8269 {
8270
8271 ;
8272 return 0;
8273 }
8274 _ACEOF
8275 if ac_fn_c_try_link "$LINENO"; then :
8276 eval $cacheid=yes
8277 else
8278 eval $cacheid=no
8279 fi
8280 rm -f core conftest.err conftest.$ac_objext \
8281 conftest$ac_exeext conftest.$ac_ext
8282 fi
8283
8284
8285 CFLAGS="$xorg_testset_save_CFLAGS"
8286
8287 eval supported=\$$cacheid
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8289 $as_echo "$supported" >&6; }
8290 if test "$supported" = "yes" ; then
8291 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8292 found="yes"
8293 fi
8294 fi
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310 xorg_testset_save_CFLAGS="$CFLAGS"
8311
8312 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8313 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8315 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8316 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8317 $as_echo_n "(cached) " >&6
8318 else
8319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8320 /* end confdefs.h. */
8321 int i;
8322 _ACEOF
8323 if ac_fn_c_try_compile "$LINENO"; then :
8324 xorg_cv_cc_flag_unknown_warning_option=yes
8325 else
8326 xorg_cv_cc_flag_unknown_warning_option=no
8327 fi
8328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8329 fi
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8331 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8332 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8333 CFLAGS="$xorg_testset_save_CFLAGS"
8334 fi
8335
8336 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8337 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8338 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8339 fi
8340 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8342 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8343 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8344 $as_echo_n "(cached) " >&6
8345 else
8346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8347 /* end confdefs.h. */
8348 int i;
8349 _ACEOF
8350 if ac_fn_c_try_compile "$LINENO"; then :
8351 xorg_cv_cc_flag_unused_command_line_argument=yes
8352 else
8353 xorg_cv_cc_flag_unused_command_line_argument=no
8354 fi
8355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8356 fi
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8358 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8359 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8360 CFLAGS="$xorg_testset_save_CFLAGS"
8361 fi
8362
8363 found="no"
8364
8365 if test $found = "no" ; then
8366 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8367 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8368 fi
8369
8370 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8371 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8372 fi
8373
8374 CFLAGS="$CFLAGS -Werror=address"
8375
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8377 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8378 cacheid=xorg_cv_cc_flag__Werror_address
8379 if eval \${$cacheid+:} false; then :
8380 $as_echo_n "(cached) " >&6
8381 else
8382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8383 /* end confdefs.h. */
8384 int i;
8385 int
8386 main ()
8387 {
8388
8389 ;
8390 return 0;
8391 }
8392 _ACEOF
8393 if ac_fn_c_try_link "$LINENO"; then :
8394 eval $cacheid=yes
8395 else
8396 eval $cacheid=no
8397 fi
8398 rm -f core conftest.err conftest.$ac_objext \
8399 conftest$ac_exeext conftest.$ac_ext
8400 fi
8401
8402
8403 CFLAGS="$xorg_testset_save_CFLAGS"
8404
8405 eval supported=\$$cacheid
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8407 $as_echo "$supported" >&6; }
8408 if test "$supported" = "yes" ; then
8409 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8410 found="yes"
8411 fi
8412 fi
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428 xorg_testset_save_CFLAGS="$CFLAGS"
8429
8430 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8431 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8433 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8434 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8435 $as_echo_n "(cached) " >&6
8436 else
8437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8438 /* end confdefs.h. */
8439 int i;
8440 _ACEOF
8441 if ac_fn_c_try_compile "$LINENO"; then :
8442 xorg_cv_cc_flag_unknown_warning_option=yes
8443 else
8444 xorg_cv_cc_flag_unknown_warning_option=no
8445 fi
8446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8447 fi
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8449 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8450 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8451 CFLAGS="$xorg_testset_save_CFLAGS"
8452 fi
8453
8454 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8455 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8456 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8457 fi
8458 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8460 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8461 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8462 $as_echo_n "(cached) " >&6
8463 else
8464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8465 /* end confdefs.h. */
8466 int i;
8467 _ACEOF
8468 if ac_fn_c_try_compile "$LINENO"; then :
8469 xorg_cv_cc_flag_unused_command_line_argument=yes
8470 else
8471 xorg_cv_cc_flag_unused_command_line_argument=no
8472 fi
8473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8474 fi
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8476 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8477 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8478 CFLAGS="$xorg_testset_save_CFLAGS"
8479 fi
8480
8481 found="no"
8482
8483 if test $found = "no" ; then
8484 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8485 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8486 fi
8487
8488 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8489 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8490 fi
8491
8492 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8493
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8495 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8496 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8497 if eval \${$cacheid+:} false; then :
8498 $as_echo_n "(cached) " >&6
8499 else
8500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8501 /* end confdefs.h. */
8502 int i;
8503 int
8504 main ()
8505 {
8506
8507 ;
8508 return 0;
8509 }
8510 _ACEOF
8511 if ac_fn_c_try_link "$LINENO"; then :
8512 eval $cacheid=yes
8513 else
8514 eval $cacheid=no
8515 fi
8516 rm -f core conftest.err conftest.$ac_objext \
8517 conftest$ac_exeext conftest.$ac_ext
8518 fi
8519
8520
8521 CFLAGS="$xorg_testset_save_CFLAGS"
8522
8523 eval supported=\$$cacheid
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8525 $as_echo "$supported" >&6; }
8526 if test "$supported" = "yes" ; then
8527 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8528 found="yes"
8529 fi
8530 fi
8531
8532 if test $found = "no" ; then
8533 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8534 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8535 fi
8536
8537 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8538 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8539 fi
8540
8541 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8542
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8544 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8545 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8546 if eval \${$cacheid+:} false; then :
8547 $as_echo_n "(cached) " >&6
8548 else
8549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8550 /* end confdefs.h. */
8551 int i;
8552 int
8553 main ()
8554 {
8555
8556 ;
8557 return 0;
8558 }
8559 _ACEOF
8560 if ac_fn_c_try_link "$LINENO"; then :
8561 eval $cacheid=yes
8562 else
8563 eval $cacheid=no
8564 fi
8565 rm -f core conftest.err conftest.$ac_objext \
8566 conftest$ac_exeext conftest.$ac_ext
8567 fi
8568
8569
8570 CFLAGS="$xorg_testset_save_CFLAGS"
8571
8572 eval supported=\$$cacheid
8573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8574 $as_echo "$supported" >&6; }
8575 if test "$supported" = "yes" ; then
8576 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8577 found="yes"
8578 fi
8579 fi
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595 xorg_testset_save_CFLAGS="$CFLAGS"
8596
8597 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8598 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8600 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8601 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8602 $as_echo_n "(cached) " >&6
8603 else
8604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8605 /* end confdefs.h. */
8606 int i;
8607 _ACEOF
8608 if ac_fn_c_try_compile "$LINENO"; then :
8609 xorg_cv_cc_flag_unknown_warning_option=yes
8610 else
8611 xorg_cv_cc_flag_unknown_warning_option=no
8612 fi
8613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8614 fi
8615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8616 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8617 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8618 CFLAGS="$xorg_testset_save_CFLAGS"
8619 fi
8620
8621 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8622 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8623 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8624 fi
8625 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8627 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8628 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8629 $as_echo_n "(cached) " >&6
8630 else
8631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8632 /* end confdefs.h. */
8633 int i;
8634 _ACEOF
8635 if ac_fn_c_try_compile "$LINENO"; then :
8636 xorg_cv_cc_flag_unused_command_line_argument=yes
8637 else
8638 xorg_cv_cc_flag_unused_command_line_argument=no
8639 fi
8640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8641 fi
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8643 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8644 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8645 CFLAGS="$xorg_testset_save_CFLAGS"
8646 fi
8647
8648 found="no"
8649
8650 if test $found = "no" ; then
8651 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8652 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8653 fi
8654
8655 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8656 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8657 fi
8658
8659 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8660
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8662 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8663 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8664 if eval \${$cacheid+:} false; then :
8665 $as_echo_n "(cached) " >&6
8666 else
8667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8668 /* end confdefs.h. */
8669 int i;
8670 int
8671 main ()
8672 {
8673
8674 ;
8675 return 0;
8676 }
8677 _ACEOF
8678 if ac_fn_c_try_link "$LINENO"; then :
8679 eval $cacheid=yes
8680 else
8681 eval $cacheid=no
8682 fi
8683 rm -f core conftest.err conftest.$ac_objext \
8684 conftest$ac_exeext conftest.$ac_ext
8685 fi
8686
8687
8688 CFLAGS="$xorg_testset_save_CFLAGS"
8689
8690 eval supported=\$$cacheid
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8692 $as_echo "$supported" >&6; }
8693 if test "$supported" = "yes" ; then
8694 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8695 found="yes"
8696 fi
8697 fi
8698
8699 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8700 else
8701 { $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
8702 $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;}
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716 xorg_testset_save_CFLAGS="$CFLAGS"
8717
8718 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8719 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8721 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8722 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8723 $as_echo_n "(cached) " >&6
8724 else
8725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8726 /* end confdefs.h. */
8727 int i;
8728 _ACEOF
8729 if ac_fn_c_try_compile "$LINENO"; then :
8730 xorg_cv_cc_flag_unknown_warning_option=yes
8731 else
8732 xorg_cv_cc_flag_unknown_warning_option=no
8733 fi
8734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8735 fi
8736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8737 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8738 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8739 CFLAGS="$xorg_testset_save_CFLAGS"
8740 fi
8741
8742 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8743 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8744 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8745 fi
8746 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8748 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8749 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8750 $as_echo_n "(cached) " >&6
8751 else
8752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8753 /* end confdefs.h. */
8754 int i;
8755 _ACEOF
8756 if ac_fn_c_try_compile "$LINENO"; then :
8757 xorg_cv_cc_flag_unused_command_line_argument=yes
8758 else
8759 xorg_cv_cc_flag_unused_command_line_argument=no
8760 fi
8761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8762 fi
8763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8764 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8765 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8766 CFLAGS="$xorg_testset_save_CFLAGS"
8767 fi
8768
8769 found="no"
8770
8771 if test $found = "no" ; then
8772 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8773 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8774 fi
8775
8776 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8777 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8778 fi
8779
8780 CFLAGS="$CFLAGS -Wimplicit"
8781
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8783 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8784 cacheid=xorg_cv_cc_flag__Wimplicit
8785 if eval \${$cacheid+:} false; then :
8786 $as_echo_n "(cached) " >&6
8787 else
8788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8789 /* end confdefs.h. */
8790 int i;
8791 int
8792 main ()
8793 {
8794
8795 ;
8796 return 0;
8797 }
8798 _ACEOF
8799 if ac_fn_c_try_link "$LINENO"; then :
8800 eval $cacheid=yes
8801 else
8802 eval $cacheid=no
8803 fi
8804 rm -f core conftest.err conftest.$ac_objext \
8805 conftest$ac_exeext conftest.$ac_ext
8806 fi
8807
8808
8809 CFLAGS="$xorg_testset_save_CFLAGS"
8810
8811 eval supported=\$$cacheid
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8813 $as_echo "$supported" >&6; }
8814 if test "$supported" = "yes" ; then
8815 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8816 found="yes"
8817 fi
8818 fi
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834 xorg_testset_save_CFLAGS="$CFLAGS"
8835
8836 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8837 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8839 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8840 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8841 $as_echo_n "(cached) " >&6
8842 else
8843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8844 /* end confdefs.h. */
8845 int i;
8846 _ACEOF
8847 if ac_fn_c_try_compile "$LINENO"; then :
8848 xorg_cv_cc_flag_unknown_warning_option=yes
8849 else
8850 xorg_cv_cc_flag_unknown_warning_option=no
8851 fi
8852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8853 fi
8854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8855 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8856 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8857 CFLAGS="$xorg_testset_save_CFLAGS"
8858 fi
8859
8860 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8861 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8862 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8863 fi
8864 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8866 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8867 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8868 $as_echo_n "(cached) " >&6
8869 else
8870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8871 /* end confdefs.h. */
8872 int i;
8873 _ACEOF
8874 if ac_fn_c_try_compile "$LINENO"; then :
8875 xorg_cv_cc_flag_unused_command_line_argument=yes
8876 else
8877 xorg_cv_cc_flag_unused_command_line_argument=no
8878 fi
8879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8880 fi
8881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8882 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8883 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8884 CFLAGS="$xorg_testset_save_CFLAGS"
8885 fi
8886
8887 found="no"
8888
8889 if test $found = "no" ; then
8890 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8891 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8892 fi
8893
8894 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8895 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8896 fi
8897
8898 CFLAGS="$CFLAGS -Wnonnull"
8899
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8901 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8902 cacheid=xorg_cv_cc_flag__Wnonnull
8903 if eval \${$cacheid+:} false; then :
8904 $as_echo_n "(cached) " >&6
8905 else
8906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8907 /* end confdefs.h. */
8908 int i;
8909 int
8910 main ()
8911 {
8912
8913 ;
8914 return 0;
8915 }
8916 _ACEOF
8917 if ac_fn_c_try_link "$LINENO"; then :
8918 eval $cacheid=yes
8919 else
8920 eval $cacheid=no
8921 fi
8922 rm -f core conftest.err conftest.$ac_objext \
8923 conftest$ac_exeext conftest.$ac_ext
8924 fi
8925
8926
8927 CFLAGS="$xorg_testset_save_CFLAGS"
8928
8929 eval supported=\$$cacheid
8930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8931 $as_echo "$supported" >&6; }
8932 if test "$supported" = "yes" ; then
8933 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8934 found="yes"
8935 fi
8936 fi
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952 xorg_testset_save_CFLAGS="$CFLAGS"
8953
8954 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8955 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8957 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8958 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8959 $as_echo_n "(cached) " >&6
8960 else
8961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8962 /* end confdefs.h. */
8963 int i;
8964 _ACEOF
8965 if ac_fn_c_try_compile "$LINENO"; then :
8966 xorg_cv_cc_flag_unknown_warning_option=yes
8967 else
8968 xorg_cv_cc_flag_unknown_warning_option=no
8969 fi
8970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8971 fi
8972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8973 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8974 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8975 CFLAGS="$xorg_testset_save_CFLAGS"
8976 fi
8977
8978 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8979 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8980 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8981 fi
8982 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8984 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8985 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8986 $as_echo_n "(cached) " >&6
8987 else
8988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8989 /* end confdefs.h. */
8990 int i;
8991 _ACEOF
8992 if ac_fn_c_try_compile "$LINENO"; then :
8993 xorg_cv_cc_flag_unused_command_line_argument=yes
8994 else
8995 xorg_cv_cc_flag_unused_command_line_argument=no
8996 fi
8997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8998 fi
8999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9000 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9001 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9002 CFLAGS="$xorg_testset_save_CFLAGS"
9003 fi
9004
9005 found="no"
9006
9007 if test $found = "no" ; then
9008 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9009 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9010 fi
9011
9012 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9013 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9014 fi
9015
9016 CFLAGS="$CFLAGS -Winit-self"
9017
9018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9019 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
9020 cacheid=xorg_cv_cc_flag__Winit_self
9021 if eval \${$cacheid+:} false; then :
9022 $as_echo_n "(cached) " >&6
9023 else
9024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9025 /* end confdefs.h. */
9026 int i;
9027 int
9028 main ()
9029 {
9030
9031 ;
9032 return 0;
9033 }
9034 _ACEOF
9035 if ac_fn_c_try_link "$LINENO"; then :
9036 eval $cacheid=yes
9037 else
9038 eval $cacheid=no
9039 fi
9040 rm -f core conftest.err conftest.$ac_objext \
9041 conftest$ac_exeext conftest.$ac_ext
9042 fi
9043
9044
9045 CFLAGS="$xorg_testset_save_CFLAGS"
9046
9047 eval supported=\$$cacheid
9048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9049 $as_echo "$supported" >&6; }
9050 if test "$supported" = "yes" ; then
9051 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9052 found="yes"
9053 fi
9054 fi
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070 xorg_testset_save_CFLAGS="$CFLAGS"
9071
9072 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9073 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9075 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9076 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9077 $as_echo_n "(cached) " >&6
9078 else
9079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9080 /* end confdefs.h. */
9081 int i;
9082 _ACEOF
9083 if ac_fn_c_try_compile "$LINENO"; then :
9084 xorg_cv_cc_flag_unknown_warning_option=yes
9085 else
9086 xorg_cv_cc_flag_unknown_warning_option=no
9087 fi
9088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9089 fi
9090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9091 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9092 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9093 CFLAGS="$xorg_testset_save_CFLAGS"
9094 fi
9095
9096 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9097 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9098 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9099 fi
9100 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9102 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9103 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9104 $as_echo_n "(cached) " >&6
9105 else
9106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9107 /* end confdefs.h. */
9108 int i;
9109 _ACEOF
9110 if ac_fn_c_try_compile "$LINENO"; then :
9111 xorg_cv_cc_flag_unused_command_line_argument=yes
9112 else
9113 xorg_cv_cc_flag_unused_command_line_argument=no
9114 fi
9115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9116 fi
9117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9118 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9119 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9120 CFLAGS="$xorg_testset_save_CFLAGS"
9121 fi
9122
9123 found="no"
9124
9125 if test $found = "no" ; then
9126 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9127 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9128 fi
9129
9130 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9131 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9132 fi
9133
9134 CFLAGS="$CFLAGS -Wmain"
9135
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9137 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
9138 cacheid=xorg_cv_cc_flag__Wmain
9139 if eval \${$cacheid+:} false; then :
9140 $as_echo_n "(cached) " >&6
9141 else
9142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9143 /* end confdefs.h. */
9144 int i;
9145 int
9146 main ()
9147 {
9148
9149 ;
9150 return 0;
9151 }
9152 _ACEOF
9153 if ac_fn_c_try_link "$LINENO"; then :
9154 eval $cacheid=yes
9155 else
9156 eval $cacheid=no
9157 fi
9158 rm -f core conftest.err conftest.$ac_objext \
9159 conftest$ac_exeext conftest.$ac_ext
9160 fi
9161
9162
9163 CFLAGS="$xorg_testset_save_CFLAGS"
9164
9165 eval supported=\$$cacheid
9166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9167 $as_echo "$supported" >&6; }
9168 if test "$supported" = "yes" ; then
9169 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9170 found="yes"
9171 fi
9172 fi
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188 xorg_testset_save_CFLAGS="$CFLAGS"
9189
9190 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9191 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9193 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9194 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9195 $as_echo_n "(cached) " >&6
9196 else
9197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9198 /* end confdefs.h. */
9199 int i;
9200 _ACEOF
9201 if ac_fn_c_try_compile "$LINENO"; then :
9202 xorg_cv_cc_flag_unknown_warning_option=yes
9203 else
9204 xorg_cv_cc_flag_unknown_warning_option=no
9205 fi
9206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9207 fi
9208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9209 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9210 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9211 CFLAGS="$xorg_testset_save_CFLAGS"
9212 fi
9213
9214 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9215 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9216 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9217 fi
9218 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9220 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9221 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9222 $as_echo_n "(cached) " >&6
9223 else
9224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9225 /* end confdefs.h. */
9226 int i;
9227 _ACEOF
9228 if ac_fn_c_try_compile "$LINENO"; then :
9229 xorg_cv_cc_flag_unused_command_line_argument=yes
9230 else
9231 xorg_cv_cc_flag_unused_command_line_argument=no
9232 fi
9233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9234 fi
9235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9236 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9237 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9238 CFLAGS="$xorg_testset_save_CFLAGS"
9239 fi
9240
9241 found="no"
9242
9243 if test $found = "no" ; then
9244 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9245 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9246 fi
9247
9248 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9249 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9250 fi
9251
9252 CFLAGS="$CFLAGS -Wmissing-braces"
9253
9254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9255 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9256 cacheid=xorg_cv_cc_flag__Wmissing_braces
9257 if eval \${$cacheid+:} false; then :
9258 $as_echo_n "(cached) " >&6
9259 else
9260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9261 /* end confdefs.h. */
9262 int i;
9263 int
9264 main ()
9265 {
9266
9267 ;
9268 return 0;
9269 }
9270 _ACEOF
9271 if ac_fn_c_try_link "$LINENO"; then :
9272 eval $cacheid=yes
9273 else
9274 eval $cacheid=no
9275 fi
9276 rm -f core conftest.err conftest.$ac_objext \
9277 conftest$ac_exeext conftest.$ac_ext
9278 fi
9279
9280
9281 CFLAGS="$xorg_testset_save_CFLAGS"
9282
9283 eval supported=\$$cacheid
9284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9285 $as_echo "$supported" >&6; }
9286 if test "$supported" = "yes" ; then
9287 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9288 found="yes"
9289 fi
9290 fi
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306 xorg_testset_save_CFLAGS="$CFLAGS"
9307
9308 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9309 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9311 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9312 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9313 $as_echo_n "(cached) " >&6
9314 else
9315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9316 /* end confdefs.h. */
9317 int i;
9318 _ACEOF
9319 if ac_fn_c_try_compile "$LINENO"; then :
9320 xorg_cv_cc_flag_unknown_warning_option=yes
9321 else
9322 xorg_cv_cc_flag_unknown_warning_option=no
9323 fi
9324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9325 fi
9326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9327 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9328 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9329 CFLAGS="$xorg_testset_save_CFLAGS"
9330 fi
9331
9332 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9333 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9334 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9335 fi
9336 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9338 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9339 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9340 $as_echo_n "(cached) " >&6
9341 else
9342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9343 /* end confdefs.h. */
9344 int i;
9345 _ACEOF
9346 if ac_fn_c_try_compile "$LINENO"; then :
9347 xorg_cv_cc_flag_unused_command_line_argument=yes
9348 else
9349 xorg_cv_cc_flag_unused_command_line_argument=no
9350 fi
9351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9352 fi
9353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9354 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9355 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9356 CFLAGS="$xorg_testset_save_CFLAGS"
9357 fi
9358
9359 found="no"
9360
9361 if test $found = "no" ; then
9362 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9363 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9364 fi
9365
9366 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9367 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9368 fi
9369
9370 CFLAGS="$CFLAGS -Wsequence-point"
9371
9372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9373 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9374 cacheid=xorg_cv_cc_flag__Wsequence_point
9375 if eval \${$cacheid+:} false; then :
9376 $as_echo_n "(cached) " >&6
9377 else
9378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9379 /* end confdefs.h. */
9380 int i;
9381 int
9382 main ()
9383 {
9384
9385 ;
9386 return 0;
9387 }
9388 _ACEOF
9389 if ac_fn_c_try_link "$LINENO"; then :
9390 eval $cacheid=yes
9391 else
9392 eval $cacheid=no
9393 fi
9394 rm -f core conftest.err conftest.$ac_objext \
9395 conftest$ac_exeext conftest.$ac_ext
9396 fi
9397
9398
9399 CFLAGS="$xorg_testset_save_CFLAGS"
9400
9401 eval supported=\$$cacheid
9402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9403 $as_echo "$supported" >&6; }
9404 if test "$supported" = "yes" ; then
9405 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9406 found="yes"
9407 fi
9408 fi
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424 xorg_testset_save_CFLAGS="$CFLAGS"
9425
9426 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9427 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9429 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9430 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9431 $as_echo_n "(cached) " >&6
9432 else
9433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9434 /* end confdefs.h. */
9435 int i;
9436 _ACEOF
9437 if ac_fn_c_try_compile "$LINENO"; then :
9438 xorg_cv_cc_flag_unknown_warning_option=yes
9439 else
9440 xorg_cv_cc_flag_unknown_warning_option=no
9441 fi
9442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9443 fi
9444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9445 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9446 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9447 CFLAGS="$xorg_testset_save_CFLAGS"
9448 fi
9449
9450 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9451 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9452 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9453 fi
9454 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9456 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9457 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9458 $as_echo_n "(cached) " >&6
9459 else
9460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9461 /* end confdefs.h. */
9462 int i;
9463 _ACEOF
9464 if ac_fn_c_try_compile "$LINENO"; then :
9465 xorg_cv_cc_flag_unused_command_line_argument=yes
9466 else
9467 xorg_cv_cc_flag_unused_command_line_argument=no
9468 fi
9469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9470 fi
9471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9472 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9473 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9474 CFLAGS="$xorg_testset_save_CFLAGS"
9475 fi
9476
9477 found="no"
9478
9479 if test $found = "no" ; then
9480 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9481 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9482 fi
9483
9484 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9485 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9486 fi
9487
9488 CFLAGS="$CFLAGS -Wreturn-type"
9489
9490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9491 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9492 cacheid=xorg_cv_cc_flag__Wreturn_type
9493 if eval \${$cacheid+:} false; then :
9494 $as_echo_n "(cached) " >&6
9495 else
9496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9497 /* end confdefs.h. */
9498 int i;
9499 int
9500 main ()
9501 {
9502
9503 ;
9504 return 0;
9505 }
9506 _ACEOF
9507 if ac_fn_c_try_link "$LINENO"; then :
9508 eval $cacheid=yes
9509 else
9510 eval $cacheid=no
9511 fi
9512 rm -f core conftest.err conftest.$ac_objext \
9513 conftest$ac_exeext conftest.$ac_ext
9514 fi
9515
9516
9517 CFLAGS="$xorg_testset_save_CFLAGS"
9518
9519 eval supported=\$$cacheid
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9521 $as_echo "$supported" >&6; }
9522 if test "$supported" = "yes" ; then
9523 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9524 found="yes"
9525 fi
9526 fi
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542 xorg_testset_save_CFLAGS="$CFLAGS"
9543
9544 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9545 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9547 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9548 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9549 $as_echo_n "(cached) " >&6
9550 else
9551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9552 /* end confdefs.h. */
9553 int i;
9554 _ACEOF
9555 if ac_fn_c_try_compile "$LINENO"; then :
9556 xorg_cv_cc_flag_unknown_warning_option=yes
9557 else
9558 xorg_cv_cc_flag_unknown_warning_option=no
9559 fi
9560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9561 fi
9562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9563 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9564 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9565 CFLAGS="$xorg_testset_save_CFLAGS"
9566 fi
9567
9568 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9569 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9570 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9571 fi
9572 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9574 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9575 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9576 $as_echo_n "(cached) " >&6
9577 else
9578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9579 /* end confdefs.h. */
9580 int i;
9581 _ACEOF
9582 if ac_fn_c_try_compile "$LINENO"; then :
9583 xorg_cv_cc_flag_unused_command_line_argument=yes
9584 else
9585 xorg_cv_cc_flag_unused_command_line_argument=no
9586 fi
9587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9588 fi
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9590 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9591 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9592 CFLAGS="$xorg_testset_save_CFLAGS"
9593 fi
9594
9595 found="no"
9596
9597 if test $found = "no" ; then
9598 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9599 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9600 fi
9601
9602 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9603 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9604 fi
9605
9606 CFLAGS="$CFLAGS -Wtrigraphs"
9607
9608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9609 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9610 cacheid=xorg_cv_cc_flag__Wtrigraphs
9611 if eval \${$cacheid+:} false; then :
9612 $as_echo_n "(cached) " >&6
9613 else
9614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9615 /* end confdefs.h. */
9616 int i;
9617 int
9618 main ()
9619 {
9620
9621 ;
9622 return 0;
9623 }
9624 _ACEOF
9625 if ac_fn_c_try_link "$LINENO"; then :
9626 eval $cacheid=yes
9627 else
9628 eval $cacheid=no
9629 fi
9630 rm -f core conftest.err conftest.$ac_objext \
9631 conftest$ac_exeext conftest.$ac_ext
9632 fi
9633
9634
9635 CFLAGS="$xorg_testset_save_CFLAGS"
9636
9637 eval supported=\$$cacheid
9638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9639 $as_echo "$supported" >&6; }
9640 if test "$supported" = "yes" ; then
9641 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9642 found="yes"
9643 fi
9644 fi
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660 xorg_testset_save_CFLAGS="$CFLAGS"
9661
9662 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9663 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9665 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9666 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9667 $as_echo_n "(cached) " >&6
9668 else
9669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9670 /* end confdefs.h. */
9671 int i;
9672 _ACEOF
9673 if ac_fn_c_try_compile "$LINENO"; then :
9674 xorg_cv_cc_flag_unknown_warning_option=yes
9675 else
9676 xorg_cv_cc_flag_unknown_warning_option=no
9677 fi
9678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9679 fi
9680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9681 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9682 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9683 CFLAGS="$xorg_testset_save_CFLAGS"
9684 fi
9685
9686 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9687 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9688 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9689 fi
9690 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9692 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9693 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9694 $as_echo_n "(cached) " >&6
9695 else
9696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9697 /* end confdefs.h. */
9698 int i;
9699 _ACEOF
9700 if ac_fn_c_try_compile "$LINENO"; then :
9701 xorg_cv_cc_flag_unused_command_line_argument=yes
9702 else
9703 xorg_cv_cc_flag_unused_command_line_argument=no
9704 fi
9705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9706 fi
9707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9708 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9709 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9710 CFLAGS="$xorg_testset_save_CFLAGS"
9711 fi
9712
9713 found="no"
9714
9715 if test $found = "no" ; then
9716 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9717 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9718 fi
9719
9720 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9721 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9722 fi
9723
9724 CFLAGS="$CFLAGS -Warray-bounds"
9725
9726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9727 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9728 cacheid=xorg_cv_cc_flag__Warray_bounds
9729 if eval \${$cacheid+:} false; then :
9730 $as_echo_n "(cached) " >&6
9731 else
9732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9733 /* end confdefs.h. */
9734 int i;
9735 int
9736 main ()
9737 {
9738
9739 ;
9740 return 0;
9741 }
9742 _ACEOF
9743 if ac_fn_c_try_link "$LINENO"; then :
9744 eval $cacheid=yes
9745 else
9746 eval $cacheid=no
9747 fi
9748 rm -f core conftest.err conftest.$ac_objext \
9749 conftest$ac_exeext conftest.$ac_ext
9750 fi
9751
9752
9753 CFLAGS="$xorg_testset_save_CFLAGS"
9754
9755 eval supported=\$$cacheid
9756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9757 $as_echo "$supported" >&6; }
9758 if test "$supported" = "yes" ; then
9759 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9760 found="yes"
9761 fi
9762 fi
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778 xorg_testset_save_CFLAGS="$CFLAGS"
9779
9780 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9781 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9783 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9784 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9785 $as_echo_n "(cached) " >&6
9786 else
9787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9788 /* end confdefs.h. */
9789 int i;
9790 _ACEOF
9791 if ac_fn_c_try_compile "$LINENO"; then :
9792 xorg_cv_cc_flag_unknown_warning_option=yes
9793 else
9794 xorg_cv_cc_flag_unknown_warning_option=no
9795 fi
9796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9797 fi
9798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9799 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9800 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9801 CFLAGS="$xorg_testset_save_CFLAGS"
9802 fi
9803
9804 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9805 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9806 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9807 fi
9808 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9810 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9811 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9812 $as_echo_n "(cached) " >&6
9813 else
9814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9815 /* end confdefs.h. */
9816 int i;
9817 _ACEOF
9818 if ac_fn_c_try_compile "$LINENO"; then :
9819 xorg_cv_cc_flag_unused_command_line_argument=yes
9820 else
9821 xorg_cv_cc_flag_unused_command_line_argument=no
9822 fi
9823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9824 fi
9825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9826 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9827 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9828 CFLAGS="$xorg_testset_save_CFLAGS"
9829 fi
9830
9831 found="no"
9832
9833 if test $found = "no" ; then
9834 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9835 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9836 fi
9837
9838 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9839 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9840 fi
9841
9842 CFLAGS="$CFLAGS -Wwrite-strings"
9843
9844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9845 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9846 cacheid=xorg_cv_cc_flag__Wwrite_strings
9847 if eval \${$cacheid+:} false; then :
9848 $as_echo_n "(cached) " >&6
9849 else
9850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9851 /* end confdefs.h. */
9852 int i;
9853 int
9854 main ()
9855 {
9856
9857 ;
9858 return 0;
9859 }
9860 _ACEOF
9861 if ac_fn_c_try_link "$LINENO"; then :
9862 eval $cacheid=yes
9863 else
9864 eval $cacheid=no
9865 fi
9866 rm -f core conftest.err conftest.$ac_objext \
9867 conftest$ac_exeext conftest.$ac_ext
9868 fi
9869
9870
9871 CFLAGS="$xorg_testset_save_CFLAGS"
9872
9873 eval supported=\$$cacheid
9874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9875 $as_echo "$supported" >&6; }
9876 if test "$supported" = "yes" ; then
9877 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9878 found="yes"
9879 fi
9880 fi
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896 xorg_testset_save_CFLAGS="$CFLAGS"
9897
9898 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9899 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9901 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9902 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9903 $as_echo_n "(cached) " >&6
9904 else
9905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9906 /* end confdefs.h. */
9907 int i;
9908 _ACEOF
9909 if ac_fn_c_try_compile "$LINENO"; then :
9910 xorg_cv_cc_flag_unknown_warning_option=yes
9911 else
9912 xorg_cv_cc_flag_unknown_warning_option=no
9913 fi
9914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9915 fi
9916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9917 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9918 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9919 CFLAGS="$xorg_testset_save_CFLAGS"
9920 fi
9921
9922 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9923 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9924 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9925 fi
9926 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9928 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9929 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9930 $as_echo_n "(cached) " >&6
9931 else
9932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9933 /* end confdefs.h. */
9934 int i;
9935 _ACEOF
9936 if ac_fn_c_try_compile "$LINENO"; then :
9937 xorg_cv_cc_flag_unused_command_line_argument=yes
9938 else
9939 xorg_cv_cc_flag_unused_command_line_argument=no
9940 fi
9941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9942 fi
9943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9944 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9945 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9946 CFLAGS="$xorg_testset_save_CFLAGS"
9947 fi
9948
9949 found="no"
9950
9951 if test $found = "no" ; then
9952 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9953 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9954 fi
9955
9956 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9957 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9958 fi
9959
9960 CFLAGS="$CFLAGS -Waddress"
9961
9962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9963 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
9964 cacheid=xorg_cv_cc_flag__Waddress
9965 if eval \${$cacheid+:} false; then :
9966 $as_echo_n "(cached) " >&6
9967 else
9968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9969 /* end confdefs.h. */
9970 int i;
9971 int
9972 main ()
9973 {
9974
9975 ;
9976 return 0;
9977 }
9978 _ACEOF
9979 if ac_fn_c_try_link "$LINENO"; then :
9980 eval $cacheid=yes
9981 else
9982 eval $cacheid=no
9983 fi
9984 rm -f core conftest.err conftest.$ac_objext \
9985 conftest$ac_exeext conftest.$ac_ext
9986 fi
9987
9988
9989 CFLAGS="$xorg_testset_save_CFLAGS"
9990
9991 eval supported=\$$cacheid
9992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9993 $as_echo "$supported" >&6; }
9994 if test "$supported" = "yes" ; then
9995 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9996 found="yes"
9997 fi
9998 fi
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014 xorg_testset_save_CFLAGS="$CFLAGS"
10015
10016 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10017 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10019 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10020 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10021 $as_echo_n "(cached) " >&6
10022 else
10023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10024 /* end confdefs.h. */
10025 int i;
10026 _ACEOF
10027 if ac_fn_c_try_compile "$LINENO"; then :
10028 xorg_cv_cc_flag_unknown_warning_option=yes
10029 else
10030 xorg_cv_cc_flag_unknown_warning_option=no
10031 fi
10032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10033 fi
10034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10035 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10036 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10037 CFLAGS="$xorg_testset_save_CFLAGS"
10038 fi
10039
10040 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10041 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10042 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10043 fi
10044 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10046 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10047 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10048 $as_echo_n "(cached) " >&6
10049 else
10050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10051 /* end confdefs.h. */
10052 int i;
10053 _ACEOF
10054 if ac_fn_c_try_compile "$LINENO"; then :
10055 xorg_cv_cc_flag_unused_command_line_argument=yes
10056 else
10057 xorg_cv_cc_flag_unused_command_line_argument=no
10058 fi
10059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10060 fi
10061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10062 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10063 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10064 CFLAGS="$xorg_testset_save_CFLAGS"
10065 fi
10066
10067 found="no"
10068
10069 if test $found = "no" ; then
10070 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10071 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10072 fi
10073
10074 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10075 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10076 fi
10077
10078 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10079
10080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10081 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10082 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10083 if eval \${$cacheid+:} false; then :
10084 $as_echo_n "(cached) " >&6
10085 else
10086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10087 /* end confdefs.h. */
10088 int i;
10089 int
10090 main ()
10091 {
10092
10093 ;
10094 return 0;
10095 }
10096 _ACEOF
10097 if ac_fn_c_try_link "$LINENO"; then :
10098 eval $cacheid=yes
10099 else
10100 eval $cacheid=no
10101 fi
10102 rm -f core conftest.err conftest.$ac_objext \
10103 conftest$ac_exeext conftest.$ac_ext
10104 fi
10105
10106
10107 CFLAGS="$xorg_testset_save_CFLAGS"
10108
10109 eval supported=\$$cacheid
10110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10111 $as_echo "$supported" >&6; }
10112 if test "$supported" = "yes" ; then
10113 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10114 found="yes"
10115 fi
10116 fi
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132 xorg_testset_save_CFLAGS="$CFLAGS"
10133
10134 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10135 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10137 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10138 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10139 $as_echo_n "(cached) " >&6
10140 else
10141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10142 /* end confdefs.h. */
10143 int i;
10144 _ACEOF
10145 if ac_fn_c_try_compile "$LINENO"; then :
10146 xorg_cv_cc_flag_unknown_warning_option=yes
10147 else
10148 xorg_cv_cc_flag_unknown_warning_option=no
10149 fi
10150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10151 fi
10152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10153 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10154 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10155 CFLAGS="$xorg_testset_save_CFLAGS"
10156 fi
10157
10158 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10159 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10160 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10161 fi
10162 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10164 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10165 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10166 $as_echo_n "(cached) " >&6
10167 else
10168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10169 /* end confdefs.h. */
10170 int i;
10171 _ACEOF
10172 if ac_fn_c_try_compile "$LINENO"; then :
10173 xorg_cv_cc_flag_unused_command_line_argument=yes
10174 else
10175 xorg_cv_cc_flag_unused_command_line_argument=no
10176 fi
10177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10178 fi
10179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10180 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10181 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10182 CFLAGS="$xorg_testset_save_CFLAGS"
10183 fi
10184
10185 found="no"
10186
10187 if test $found = "no" ; then
10188 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10189 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10190 fi
10191
10192 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10193 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10194 fi
10195
10196 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10197
10198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10199 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10200 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10201 if eval \${$cacheid+:} false; then :
10202 $as_echo_n "(cached) " >&6
10203 else
10204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10205 /* end confdefs.h. */
10206 int i;
10207 int
10208 main ()
10209 {
10210
10211 ;
10212 return 0;
10213 }
10214 _ACEOF
10215 if ac_fn_c_try_link "$LINENO"; then :
10216 eval $cacheid=yes
10217 else
10218 eval $cacheid=no
10219 fi
10220 rm -f core conftest.err conftest.$ac_objext \
10221 conftest$ac_exeext conftest.$ac_ext
10222 fi
10223
10224
10225 CFLAGS="$xorg_testset_save_CFLAGS"
10226
10227 eval supported=\$$cacheid
10228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10229 $as_echo "$supported" >&6; }
10230 if test "$supported" = "yes" ; then
10231 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10232 found="yes"
10233 fi
10234 fi
10235
10236
10237 fi
10238
10239
10240
10241
10242
10243
10244
10245 CWARNFLAGS="$BASE_CFLAGS"
10246 if test "x$GCC" = xyes ; then
10247 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10248 fi
10249
10250
10251
10252
10253
10254
10255
10256
10257 # Check whether --enable-strict-compilation was given.
10258 if test "${enable_strict_compilation+set}" = set; then :
10259 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10260 else
10261 STRICT_COMPILE=no
10262 fi
10263
10264
10265
10266
10267
10268
10269 STRICT_CFLAGS=""
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283 xorg_testset_save_CFLAGS="$CFLAGS"
10284
10285 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10286 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10288 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10289 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10290 $as_echo_n "(cached) " >&6
10291 else
10292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10293 /* end confdefs.h. */
10294 int i;
10295 _ACEOF
10296 if ac_fn_c_try_compile "$LINENO"; then :
10297 xorg_cv_cc_flag_unknown_warning_option=yes
10298 else
10299 xorg_cv_cc_flag_unknown_warning_option=no
10300 fi
10301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10302 fi
10303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10304 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10305 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10306 CFLAGS="$xorg_testset_save_CFLAGS"
10307 fi
10308
10309 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10310 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10311 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10312 fi
10313 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10315 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10316 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10317 $as_echo_n "(cached) " >&6
10318 else
10319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10320 /* end confdefs.h. */
10321 int i;
10322 _ACEOF
10323 if ac_fn_c_try_compile "$LINENO"; then :
10324 xorg_cv_cc_flag_unused_command_line_argument=yes
10325 else
10326 xorg_cv_cc_flag_unused_command_line_argument=no
10327 fi
10328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10329 fi
10330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10331 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10332 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10333 CFLAGS="$xorg_testset_save_CFLAGS"
10334 fi
10335
10336 found="no"
10337
10338 if test $found = "no" ; then
10339 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10340 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10341 fi
10342
10343 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10344 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10345 fi
10346
10347 CFLAGS="$CFLAGS -pedantic"
10348
10349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10350 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
10351 cacheid=xorg_cv_cc_flag__pedantic
10352 if eval \${$cacheid+:} false; then :
10353 $as_echo_n "(cached) " >&6
10354 else
10355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10356 /* end confdefs.h. */
10357 int i;
10358 int
10359 main ()
10360 {
10361
10362 ;
10363 return 0;
10364 }
10365 _ACEOF
10366 if ac_fn_c_try_link "$LINENO"; then :
10367 eval $cacheid=yes
10368 else
10369 eval $cacheid=no
10370 fi
10371 rm -f core conftest.err conftest.$ac_objext \
10372 conftest$ac_exeext conftest.$ac_ext
10373 fi
10374
10375
10376 CFLAGS="$xorg_testset_save_CFLAGS"
10377
10378 eval supported=\$$cacheid
10379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10380 $as_echo "$supported" >&6; }
10381 if test "$supported" = "yes" ; then
10382 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10383 found="yes"
10384 fi
10385 fi
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401 xorg_testset_save_CFLAGS="$CFLAGS"
10402
10403 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10404 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10406 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10407 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10408 $as_echo_n "(cached) " >&6
10409 else
10410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10411 /* end confdefs.h. */
10412 int i;
10413 _ACEOF
10414 if ac_fn_c_try_compile "$LINENO"; then :
10415 xorg_cv_cc_flag_unknown_warning_option=yes
10416 else
10417 xorg_cv_cc_flag_unknown_warning_option=no
10418 fi
10419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10420 fi
10421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10422 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10423 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10424 CFLAGS="$xorg_testset_save_CFLAGS"
10425 fi
10426
10427 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10428 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10429 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10430 fi
10431 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10433 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10434 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10435 $as_echo_n "(cached) " >&6
10436 else
10437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10438 /* end confdefs.h. */
10439 int i;
10440 _ACEOF
10441 if ac_fn_c_try_compile "$LINENO"; then :
10442 xorg_cv_cc_flag_unused_command_line_argument=yes
10443 else
10444 xorg_cv_cc_flag_unused_command_line_argument=no
10445 fi
10446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10447 fi
10448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10449 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10450 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10451 CFLAGS="$xorg_testset_save_CFLAGS"
10452 fi
10453
10454 found="no"
10455
10456 if test $found = "no" ; then
10457 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10458 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10459 fi
10460
10461 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10462 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10463 fi
10464
10465 CFLAGS="$CFLAGS -Werror"
10466
10467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10468 $as_echo_n "checking if $CC supports -Werror... " >&6; }
10469 cacheid=xorg_cv_cc_flag__Werror
10470 if eval \${$cacheid+:} false; then :
10471 $as_echo_n "(cached) " >&6
10472 else
10473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10474 /* end confdefs.h. */
10475 int i;
10476 int
10477 main ()
10478 {
10479
10480 ;
10481 return 0;
10482 }
10483 _ACEOF
10484 if ac_fn_c_try_link "$LINENO"; then :
10485 eval $cacheid=yes
10486 else
10487 eval $cacheid=no
10488 fi
10489 rm -f core conftest.err conftest.$ac_objext \
10490 conftest$ac_exeext conftest.$ac_ext
10491 fi
10492
10493
10494 CFLAGS="$xorg_testset_save_CFLAGS"
10495
10496 eval supported=\$$cacheid
10497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10498 $as_echo "$supported" >&6; }
10499 if test "$supported" = "yes" ; then
10500 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10501 found="yes"
10502 fi
10503 fi
10504
10505 if test $found = "no" ; then
10506 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10507 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10508 fi
10509
10510 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10511 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10512 fi
10513
10514 CFLAGS="$CFLAGS -errwarn"
10515
10516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10517 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
10518 cacheid=xorg_cv_cc_flag__errwarn
10519 if eval \${$cacheid+:} false; then :
10520 $as_echo_n "(cached) " >&6
10521 else
10522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10523 /* end confdefs.h. */
10524 int i;
10525 int
10526 main ()
10527 {
10528
10529 ;
10530 return 0;
10531 }
10532 _ACEOF
10533 if ac_fn_c_try_link "$LINENO"; then :
10534 eval $cacheid=yes
10535 else
10536 eval $cacheid=no
10537 fi
10538 rm -f core conftest.err conftest.$ac_objext \
10539 conftest$ac_exeext conftest.$ac_ext
10540 fi
10541
10542
10543 CFLAGS="$xorg_testset_save_CFLAGS"
10544
10545 eval supported=\$$cacheid
10546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10547 $as_echo "$supported" >&6; }
10548 if test "$supported" = "yes" ; then
10549 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10550 found="yes"
10551 fi
10552 fi
10553
10554
10555
10556 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10557 # activate it with -Werror, so we add it here explicitly.
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571 xorg_testset_save_CFLAGS="$CFLAGS"
10572
10573 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10574 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10576 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10577 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10578 $as_echo_n "(cached) " >&6
10579 else
10580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10581 /* end confdefs.h. */
10582 int i;
10583 _ACEOF
10584 if ac_fn_c_try_compile "$LINENO"; then :
10585 xorg_cv_cc_flag_unknown_warning_option=yes
10586 else
10587 xorg_cv_cc_flag_unknown_warning_option=no
10588 fi
10589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10590 fi
10591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10592 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10593 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10594 CFLAGS="$xorg_testset_save_CFLAGS"
10595 fi
10596
10597 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10598 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10599 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10600 fi
10601 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10603 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10604 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10605 $as_echo_n "(cached) " >&6
10606 else
10607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10608 /* end confdefs.h. */
10609 int i;
10610 _ACEOF
10611 if ac_fn_c_try_compile "$LINENO"; then :
10612 xorg_cv_cc_flag_unused_command_line_argument=yes
10613 else
10614 xorg_cv_cc_flag_unused_command_line_argument=no
10615 fi
10616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10617 fi
10618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10619 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10620 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10621 CFLAGS="$xorg_testset_save_CFLAGS"
10622 fi
10623
10624 found="no"
10625
10626 if test $found = "no" ; then
10627 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10628 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10629 fi
10630
10631 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10632 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10633 fi
10634
10635 CFLAGS="$CFLAGS -Werror=attributes"
10636
10637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10638 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10639 cacheid=xorg_cv_cc_flag__Werror_attributes
10640 if eval \${$cacheid+:} false; then :
10641 $as_echo_n "(cached) " >&6
10642 else
10643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10644 /* end confdefs.h. */
10645 int i;
10646 int
10647 main ()
10648 {
10649
10650 ;
10651 return 0;
10652 }
10653 _ACEOF
10654 if ac_fn_c_try_link "$LINENO"; then :
10655 eval $cacheid=yes
10656 else
10657 eval $cacheid=no
10658 fi
10659 rm -f core conftest.err conftest.$ac_objext \
10660 conftest$ac_exeext conftest.$ac_ext
10661 fi
10662
10663
10664 CFLAGS="$xorg_testset_save_CFLAGS"
10665
10666 eval supported=\$$cacheid
10667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10668 $as_echo "$supported" >&6; }
10669 if test "$supported" = "yes" ; then
10670 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10671 found="yes"
10672 fi
10673 fi
10674
10675
10676
10677 if test "x$STRICT_COMPILE" = "xyes"; then
10678 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10679 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10680 fi
10681
10682
10683
10684
10685
10686
10687 cat >>confdefs.h <<_ACEOF
10688 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10689 _ACEOF
10690
10691 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10692 if test "x$PVM" = "x"; then
10693 PVM="0"
10694 fi
10695
10696 cat >>confdefs.h <<_ACEOF
10697 #define PACKAGE_VERSION_MINOR $PVM
10698 _ACEOF
10699
10700 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10701 if test "x$PVP" = "x"; then
10702 PVP="0"
10703 fi
10704
10705 cat >>confdefs.h <<_ACEOF
10706 #define PACKAGE_VERSION_PATCHLEVEL $PVP
10707 _ACEOF
10708
10709
10710
10711 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10712 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10713 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10714 echo 'git directory not found: installing possibly empty changelog.' >&2)"
10715
10716
10717
10718
10719 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10720 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10721 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10722 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10723 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10724
10725
10726
10727
10728
10729
10730 if test x$APP_MAN_SUFFIX = x ; then
10731 APP_MAN_SUFFIX=1
10732 fi
10733 if test x$APP_MAN_DIR = x ; then
10734 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10735 fi
10736
10737 if test x$LIB_MAN_SUFFIX = x ; then
10738 LIB_MAN_SUFFIX=3
10739 fi
10740 if test x$LIB_MAN_DIR = x ; then
10741 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10742 fi
10743
10744 if test x$FILE_MAN_SUFFIX = x ; then
10745 case $host_os in
10746 solaris*) FILE_MAN_SUFFIX=4 ;;
10747 *) FILE_MAN_SUFFIX=5 ;;
10748 esac
10749 fi
10750 if test x$FILE_MAN_DIR = x ; then
10751 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10752 fi
10753
10754 if test x$MISC_MAN_SUFFIX = x ; then
10755 case $host_os in
10756 solaris*) MISC_MAN_SUFFIX=5 ;;
10757 *) MISC_MAN_SUFFIX=7 ;;
10758 esac
10759 fi
10760 if test x$MISC_MAN_DIR = x ; then
10761 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10762 fi
10763
10764 if test x$DRIVER_MAN_SUFFIX = x ; then
10765 case $host_os in
10766 solaris*) DRIVER_MAN_SUFFIX=7 ;;
10767 *) DRIVER_MAN_SUFFIX=4 ;;
10768 esac
10769 fi
10770 if test x$DRIVER_MAN_DIR = x ; then
10771 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10772 fi
10773
10774 if test x$ADMIN_MAN_SUFFIX = x ; then
10775 case $host_os in
10776 solaris*) ADMIN_MAN_SUFFIX=1m ;;
10777 *) ADMIN_MAN_SUFFIX=8 ;;
10778 esac
10779 fi
10780 if test x$ADMIN_MAN_DIR = x ; then
10781 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10782 fi
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798 XORG_MAN_PAGE="X Version 11"
10799
10800 MAN_SUBSTS="\
10801 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10802 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10803 -e 's|__xservername__|Xorg|g' \
10804 -e 's|__xconfigfile__|xorg.conf|g' \
10805 -e 's|__projectroot__|\$(prefix)|g' \
10806 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
10807 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10808 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10809 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10810 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10811 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10812 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10813
10814
10815
10816 # Check whether --enable-silent-rules was given.
10817 if test "${enable_silent_rules+set}" = set; then :
10818 enableval=$enable_silent_rules;
10819 fi
10820
10821 case $enable_silent_rules in # (((
10822 yes) AM_DEFAULT_VERBOSITY=0;;
10823 no) AM_DEFAULT_VERBOSITY=1;;
10824 *) AM_DEFAULT_VERBOSITY=0;;
10825 esac
10826 am_make=${MAKE-make}
10827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10828 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10829 if ${am_cv_make_support_nested_variables+:} false; then :
10830 $as_echo_n "(cached) " >&6
10831 else
10832 if $as_echo 'TRUE=$(BAR$(V))
10833 BAR0=false
10834 BAR1=true
10835 V=1
10836 am__doit:
10837 @$(TRUE)
10838 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10839 am_cv_make_support_nested_variables=yes
10840 else
10841 am_cv_make_support_nested_variables=no
10842 fi
10843 fi
10844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10845 $as_echo "$am_cv_make_support_nested_variables" >&6; }
10846 if test $am_cv_make_support_nested_variables = yes; then
10847 AM_V='$(V)'
10848 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10849 else
10850 AM_V=$AM_DEFAULT_VERBOSITY
10851 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10852 fi
10853 AM_BACKSLASH='\'
10854
10855
10856
10857 # Initialize libtool
10858 # Check whether --enable-static was given.
10859 if test "${enable_static+set}" = set; then :
10860 enableval=$enable_static; p=${PACKAGE-default}
10861 case $enableval in
10862 yes) enable_static=yes ;;
10863 no) enable_static=no ;;
10864 *)
10865 enable_static=no
10866 # Look at the argument we got. We use all the common list separators.
10867 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10868 for pkg in $enableval; do
10869 IFS=$lt_save_ifs
10870 if test "X$pkg" = "X$p"; then
10871 enable_static=yes
10872 fi
10873 done
10874 IFS=$lt_save_ifs
10875 ;;
10876 esac
10877 else
10878 enable_static=no
10879 fi
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889 case `pwd` in
10890 *\ * | *\ *)
10891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10892 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10893 esac
10894
10895
10896
10897 macro_version='2.4.6'
10898 macro_revision='2.4.6'
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912 ltmain=$ac_aux_dir/ltmain.sh
10913
10914 # Backslashify metacharacters that are still active within
10915 # double-quoted strings.
10916 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10917
10918 # Same as above, but do not quote variable references.
10919 double_quote_subst='s/\(["`\\]\)/\\\1/g'
10920
10921 # Sed substitution to delay expansion of an escaped shell variable in a
10922 # double_quote_subst'ed string.
10923 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10924
10925 # Sed substitution to delay expansion of an escaped single quote.
10926 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10927
10928 # Sed substitution to avoid accidental globbing in evaled expressions
10929 no_glob_subst='s/\*/\\\*/g'
10930
10931 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10932 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
10933 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
10934
10935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
10936 $as_echo_n "checking how to print strings... " >&6; }
10937 # Test print first, because it will be a builtin if present.
10938 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
10939 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
10940 ECHO='print -r --'
10941 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
10942 ECHO='printf %s\n'
10943 else
10944 # Use this function as a fallback that always works.
10945 func_fallback_echo ()
10946 {
10947 eval 'cat <<_LTECHO_EOF
10948 $1
10949 _LTECHO_EOF'
10950 }
10951 ECHO='func_fallback_echo'
10952 fi
10953
10954 # func_echo_all arg...
10955 # Invoke $ECHO with all args, space-separated.
10956 func_echo_all ()
10957 {
10958 $ECHO ""
10959 }
10960
10961 case $ECHO in
10962 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
10963 $as_echo "printf" >&6; } ;;
10964 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
10965 $as_echo "print -r" >&6; } ;;
10966 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
10967 $as_echo "cat" >&6; } ;;
10968 esac
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
10984 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
10985 if ${ac_cv_path_SED+:} false; then :
10986 $as_echo_n "(cached) " >&6
10987 else
10988 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
10989 for ac_i in 1 2 3 4 5 6 7; do
10990 ac_script="$ac_script$as_nl$ac_script"
10991 done
10992 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
10993 { ac_script=; unset ac_script;}
10994 if test -z "$SED"; then
10995 ac_path_SED_found=false
10996 # Loop through the user's path and test for each of PROGNAME-LIST
10997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10998 for as_dir in $PATH
10999 do
11000 IFS=$as_save_IFS
11001 test -z "$as_dir" && as_dir=.
11002 for ac_prog in sed gsed; do
11003 for ac_exec_ext in '' $ac_executable_extensions; do
11004 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11005 as_fn_executable_p "$ac_path_SED" || continue
11006 # Check for GNU ac_path_SED and select it if it is found.
11007 # Check for GNU $ac_path_SED
11008 case `"$ac_path_SED" --version 2>&1` in
11009 *GNU*)
11010 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11011 *)
11012 ac_count=0
11013 $as_echo_n 0123456789 >"conftest.in"
11014 while :
11015 do
11016 cat "conftest.in" "conftest.in" >"conftest.tmp"
11017 mv "conftest.tmp" "conftest.in"
11018 cp "conftest.in" "conftest.nl"
11019 $as_echo '' >> "conftest.nl"
11020 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11021 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11022 as_fn_arith $ac_count + 1 && ac_count=$as_val
11023 if test $ac_count -gt ${ac_path_SED_max-0}; then
11024 # Best one so far, save it but keep looking for a better one
11025 ac_cv_path_SED="$ac_path_SED"
11026 ac_path_SED_max=$ac_count
11027 fi
11028 # 10*(2^10) chars as input seems more than enough
11029 test $ac_count -gt 10 && break
11030 done
11031 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11032 esac
11033
11034 $ac_path_SED_found && break 3
11035 done
11036 done
11037 done
11038 IFS=$as_save_IFS
11039 if test -z "$ac_cv_path_SED"; then
11040 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
11041 fi
11042 else
11043 ac_cv_path_SED=$SED
11044 fi
11045
11046 fi
11047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11048 $as_echo "$ac_cv_path_SED" >&6; }
11049 SED="$ac_cv_path_SED"
11050 rm -f conftest.sed
11051
11052 test -z "$SED" && SED=sed
11053 Xsed="$SED -e 1s/^X//"
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11066 $as_echo_n "checking for fgrep... " >&6; }
11067 if ${ac_cv_path_FGREP+:} false; then :
11068 $as_echo_n "(cached) " >&6
11069 else
11070 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11071 then ac_cv_path_FGREP="$GREP -F"
11072 else
11073 if test -z "$FGREP"; then
11074 ac_path_FGREP_found=false
11075 # Loop through the user's path and test for each of PROGNAME-LIST
11076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11077 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11078 do
11079 IFS=$as_save_IFS
11080 test -z "$as_dir" && as_dir=.
11081 for ac_prog in fgrep; do
11082 for ac_exec_ext in '' $ac_executable_extensions; do
11083 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
11084 as_fn_executable_p "$ac_path_FGREP" || continue
11085 # Check for GNU ac_path_FGREP and select it if it is found.
11086 # Check for GNU $ac_path_FGREP
11087 case `"$ac_path_FGREP" --version 2>&1` in
11088 *GNU*)
11089 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11090 *)
11091 ac_count=0
11092 $as_echo_n 0123456789 >"conftest.in"
11093 while :
11094 do
11095 cat "conftest.in" "conftest.in" >"conftest.tmp"
11096 mv "conftest.tmp" "conftest.in"
11097 cp "conftest.in" "conftest.nl"
11098 $as_echo 'FGREP' >> "conftest.nl"
11099 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11100 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11101 as_fn_arith $ac_count + 1 && ac_count=$as_val
11102 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11103 # Best one so far, save it but keep looking for a better one
11104 ac_cv_path_FGREP="$ac_path_FGREP"
11105 ac_path_FGREP_max=$ac_count
11106 fi
11107 # 10*(2^10) chars as input seems more than enough
11108 test $ac_count -gt 10 && break
11109 done
11110 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11111 esac
11112
11113 $ac_path_FGREP_found && break 3
11114 done
11115 done
11116 done
11117 IFS=$as_save_IFS
11118 if test -z "$ac_cv_path_FGREP"; then
11119 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11120 fi
11121 else
11122 ac_cv_path_FGREP=$FGREP
11123 fi
11124
11125 fi
11126 fi
11127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11128 $as_echo "$ac_cv_path_FGREP" >&6; }
11129 FGREP="$ac_cv_path_FGREP"
11130
11131
11132 test -z "$GREP" && GREP=grep
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152 # Check whether --with-gnu-ld was given.
11153 if test "${with_gnu_ld+set}" = set; then :
11154 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
11155 else
11156 with_gnu_ld=no
11157 fi
11158
11159 ac_prog=ld
11160 if test yes = "$GCC"; then
11161 # Check if gcc -print-prog-name=ld gives a path.
11162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11163 $as_echo_n "checking for ld used by $CC... " >&6; }
11164 case $host in
11165 *-*-mingw*)
11166 # gcc leaves a trailing carriage return, which upsets mingw
11167 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11168 *)
11169 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11170 esac
11171 case $ac_prog in
11172 # Accept absolute paths.
11173 [\\/]* | ?:[\\/]*)
11174 re_direlt='/[^/][^/]*/\.\./'
11175 # Canonicalize the pathname of ld
11176 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11177 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11178 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11179 done
11180 test -z "$LD" && LD=$ac_prog
11181 ;;
11182 "")
11183 # If it fails, then pretend we aren't using GCC.
11184 ac_prog=ld
11185 ;;
11186 *)
11187 # If it is relative, then search for the first ld in PATH.
11188 with_gnu_ld=unknown
11189 ;;
11190 esac
11191 elif test yes = "$with_gnu_ld"; then
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11193 $as_echo_n "checking for GNU ld... " >&6; }
11194 else
11195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11196 $as_echo_n "checking for non-GNU ld... " >&6; }
11197 fi
11198 if ${lt_cv_path_LD+:} false; then :
11199 $as_echo_n "(cached) " >&6
11200 else
11201 if test -z "$LD"; then
11202 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11203 for ac_dir in $PATH; do
11204 IFS=$lt_save_ifs
11205 test -z "$ac_dir" && ac_dir=.
11206 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11207 lt_cv_path_LD=$ac_dir/$ac_prog
11208 # Check to see if the program is GNU ld. I'd rather use --version,
11209 # but apparently some variants of GNU ld only accept -v.
11210 # Break only if it was the GNU/non-GNU ld that we prefer.
11211 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11212 *GNU* | *'with BFD'*)
11213 test no != "$with_gnu_ld" && break
11214 ;;
11215 *)
11216 test yes != "$with_gnu_ld" && break
11217 ;;
11218 esac
11219 fi
11220 done
11221 IFS=$lt_save_ifs
11222 else
11223 lt_cv_path_LD=$LD # Let the user override the test with a path.
11224 fi
11225 fi
11226
11227 LD=$lt_cv_path_LD
11228 if test -n "$LD"; then
11229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11230 $as_echo "$LD" >&6; }
11231 else
11232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11233 $as_echo "no" >&6; }
11234 fi
11235 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11237 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11238 if ${lt_cv_prog_gnu_ld+:} false; then :
11239 $as_echo_n "(cached) " >&6
11240 else
11241 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11242 case `$LD -v 2>&1 </dev/null` in
11243 *GNU* | *'with BFD'*)
11244 lt_cv_prog_gnu_ld=yes
11245 ;;
11246 *)
11247 lt_cv_prog_gnu_ld=no
11248 ;;
11249 esac
11250 fi
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11252 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11253 with_gnu_ld=$lt_cv_prog_gnu_ld
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11264 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11265 if ${lt_cv_path_NM+:} false; then :
11266 $as_echo_n "(cached) " >&6
11267 else
11268 if test -n "$NM"; then
11269 # Let the user override the test.
11270 lt_cv_path_NM=$NM
11271 else
11272 lt_nm_to_check=${ac_tool_prefix}nm
11273 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11274 lt_nm_to_check="$lt_nm_to_check nm"
11275 fi
11276 for lt_tmp_nm in $lt_nm_to_check; do
11277 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11278 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11279 IFS=$lt_save_ifs
11280 test -z "$ac_dir" && ac_dir=.
11281 tmp_nm=$ac_dir/$lt_tmp_nm
11282 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
11283 # Check to see if the nm accepts a BSD-compat flag.
11284 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
11285 # nm: unknown option "B" ignored
11286 # Tru64's nm complains that /dev/null is an invalid object file
11287 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
11288 case $build_os in
11289 mingw*) lt_bad_file=conftest.nm/nofile ;;
11290 *) lt_bad_file=/dev/null ;;
11291 esac
11292 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
11293 *$lt_bad_file* | *'Invalid file or object type'*)
11294 lt_cv_path_NM="$tmp_nm -B"
11295 break 2
11296 ;;
11297 *)
11298 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11299 */dev/null*)
11300 lt_cv_path_NM="$tmp_nm -p"
11301 break 2
11302 ;;
11303 *)
11304 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11305 continue # so that we can try to find one that supports BSD flags
11306 ;;
11307 esac
11308 ;;
11309 esac
11310 fi
11311 done
11312 IFS=$lt_save_ifs
11313 done
11314 : ${lt_cv_path_NM=no}
11315 fi
11316 fi
11317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11318 $as_echo "$lt_cv_path_NM" >&6; }
11319 if test no != "$lt_cv_path_NM"; then
11320 NM=$lt_cv_path_NM
11321 else
11322 # Didn't find any BSD compatible name lister, look for dumpbin.
11323 if test -n "$DUMPBIN"; then :
11324 # Let the user override the test.
11325 else
11326 if test -n "$ac_tool_prefix"; then
11327 for ac_prog in dumpbin "link -dump"
11328 do
11329 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11330 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11332 $as_echo_n "checking for $ac_word... " >&6; }
11333 if ${ac_cv_prog_DUMPBIN+:} false; then :
11334 $as_echo_n "(cached) " >&6
11335 else
11336 if test -n "$DUMPBIN"; then
11337 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11338 else
11339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11340 for as_dir in $PATH
11341 do
11342 IFS=$as_save_IFS
11343 test -z "$as_dir" && as_dir=.
11344 for ac_exec_ext in '' $ac_executable_extensions; do
11345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11346 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11348 break 2
11349 fi
11350 done
11351 done
11352 IFS=$as_save_IFS
11353
11354 fi
11355 fi
11356 DUMPBIN=$ac_cv_prog_DUMPBIN
11357 if test -n "$DUMPBIN"; then
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11359 $as_echo "$DUMPBIN" >&6; }
11360 else
11361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11362 $as_echo "no" >&6; }
11363 fi
11364
11365
11366 test -n "$DUMPBIN" && break
11367 done
11368 fi
11369 if test -z "$DUMPBIN"; then
11370 ac_ct_DUMPBIN=$DUMPBIN
11371 for ac_prog in dumpbin "link -dump"
11372 do
11373 # Extract the first word of "$ac_prog", so it can be a program name with args.
11374 set dummy $ac_prog; ac_word=$2
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11376 $as_echo_n "checking for $ac_word... " >&6; }
11377 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
11378 $as_echo_n "(cached) " >&6
11379 else
11380 if test -n "$ac_ct_DUMPBIN"; then
11381 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11382 else
11383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11384 for as_dir in $PATH
11385 do
11386 IFS=$as_save_IFS
11387 test -z "$as_dir" && as_dir=.
11388 for ac_exec_ext in '' $ac_executable_extensions; do
11389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11390 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11392 break 2
11393 fi
11394 done
11395 done
11396 IFS=$as_save_IFS
11397
11398 fi
11399 fi
11400 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11401 if test -n "$ac_ct_DUMPBIN"; then
11402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11403 $as_echo "$ac_ct_DUMPBIN" >&6; }
11404 else
11405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11406 $as_echo "no" >&6; }
11407 fi
11408
11409
11410 test -n "$ac_ct_DUMPBIN" && break
11411 done
11412
11413 if test "x$ac_ct_DUMPBIN" = x; then
11414 DUMPBIN=":"
11415 else
11416 case $cross_compiling:$ac_tool_warned in
11417 yes:)
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11419 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11420 ac_tool_warned=yes ;;
11421 esac
11422 DUMPBIN=$ac_ct_DUMPBIN
11423 fi
11424 fi
11425
11426 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
11427 *COFF*)
11428 DUMPBIN="$DUMPBIN -symbols -headers"
11429 ;;
11430 *)
11431 DUMPBIN=:
11432 ;;
11433 esac
11434 fi
11435
11436 if test : != "$DUMPBIN"; then
11437 NM=$DUMPBIN
11438 fi
11439 fi
11440 test -z "$NM" && NM=nm
11441
11442
11443
11444
11445
11446
11447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11448 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
11449 if ${lt_cv_nm_interface+:} false; then :
11450 $as_echo_n "(cached) " >&6
11451 else
11452 lt_cv_nm_interface="BSD nm"
11453 echo "int some_variable = 0;" > conftest.$ac_ext
11454 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11455 (eval "$ac_compile" 2>conftest.err)
11456 cat conftest.err >&5
11457 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11458 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11459 cat conftest.err >&5
11460 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11461 cat conftest.out >&5
11462 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11463 lt_cv_nm_interface="MS dumpbin"
11464 fi
11465 rm -f conftest*
11466 fi
11467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11468 $as_echo "$lt_cv_nm_interface" >&6; }
11469
11470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11471 $as_echo_n "checking whether ln -s works... " >&6; }
11472 LN_S=$as_ln_s
11473 if test "$LN_S" = "ln -s"; then
11474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11475 $as_echo "yes" >&6; }
11476 else
11477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11478 $as_echo "no, using $LN_S" >&6; }
11479 fi
11480
11481 # find the maximum length of command line arguments
11482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11483 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
11484 if ${lt_cv_sys_max_cmd_len+:} false; then :
11485 $as_echo_n "(cached) " >&6
11486 else
11487 i=0
11488 teststring=ABCD
11489
11490 case $build_os in
11491 msdosdjgpp*)
11492 # On DJGPP, this test can blow up pretty badly due to problems in libc
11493 # (any single argument exceeding 2000 bytes causes a buffer overrun
11494 # during glob expansion). Even if it were fixed, the result of this
11495 # check would be larger than it should be.
11496 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11497 ;;
11498
11499 gnu*)
11500 # Under GNU Hurd, this test is not required because there is
11501 # no limit to the length of command line arguments.
11502 # Libtool will interpret -1 as no limit whatsoever
11503 lt_cv_sys_max_cmd_len=-1;
11504 ;;
11505
11506 cygwin* | mingw* | cegcc*)
11507 # On Win9x/ME, this test blows up -- it succeeds, but takes
11508 # about 5 minutes as the teststring grows exponentially.
11509 # Worse, since 9x/ME are not pre-emptively multitasking,
11510 # you end up with a "frozen" computer, even though with patience
11511 # the test eventually succeeds (with a max line length of 256k).
11512 # Instead, let's just punt: use the minimum linelength reported by
11513 # all of the supported platforms: 8192 (on NT/2K/XP).
11514 lt_cv_sys_max_cmd_len=8192;
11515 ;;
11516
11517 mint*)
11518 # On MiNT this can take a long time and run out of memory.
11519 lt_cv_sys_max_cmd_len=8192;
11520 ;;
11521
11522 amigaos*)
11523 # On AmigaOS with pdksh, this test takes hours, literally.
11524 # So we just punt and use a minimum line length of 8192.
11525 lt_cv_sys_max_cmd_len=8192;
11526 ;;
11527
11528 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
11529 # This has been around since 386BSD, at least. Likely further.
11530 if test -x /sbin/sysctl; then
11531 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11532 elif test -x /usr/sbin/sysctl; then
11533 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11534 else
11535 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
11536 fi
11537 # And add a safety zone
11538 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11539 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11540 ;;
11541
11542 interix*)
11543 # We know the value 262144 and hardcode it with a safety zone (like BSD)
11544 lt_cv_sys_max_cmd_len=196608
11545 ;;
11546
11547 os2*)
11548 # The test takes a long time on OS/2.
11549 lt_cv_sys_max_cmd_len=8192
11550 ;;
11551
11552 osf*)
11553 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11554 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11555 # nice to cause kernel panics so lets avoid the loop below.
11556 # First set a reasonable default.
11557 lt_cv_sys_max_cmd_len=16384
11558 #
11559 if test -x /sbin/sysconfig; then
11560 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11561 *1*) lt_cv_sys_max_cmd_len=-1 ;;
11562 esac
11563 fi
11564 ;;
11565 sco3.2v5*)
11566 lt_cv_sys_max_cmd_len=102400
11567 ;;
11568 sysv5* | sco5v6* | sysv4.2uw2*)
11569 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11570 if test -n "$kargmax"; then
11571 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
11572 else
11573 lt_cv_sys_max_cmd_len=32768
11574 fi
11575 ;;
11576 *)
11577 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11578 if test -n "$lt_cv_sys_max_cmd_len" && \
11579 test undefined != "$lt_cv_sys_max_cmd_len"; then
11580 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11581 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11582 else
11583 # Make teststring a little bigger before we do anything with it.
11584 # a 1K string should be a reasonable start.
11585 for i in 1 2 3 4 5 6 7 8; do
11586 teststring=$teststring$teststring
11587 done
11588 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11589 # If test is not a shell built-in, we'll probably end up computing a
11590 # maximum length that is only half of the actual maximum length, but
11591 # we can't tell.
11592 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
11593 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11594 test 17 != "$i" # 1/2 MB should be enough
11595 do
11596 i=`expr $i + 1`
11597 teststring=$teststring$teststring
11598 done
11599 # Only check the string length outside the loop.
11600 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11601 teststring=
11602 # Add a significant safety factor because C++ compilers can tack on
11603 # massive amounts of additional arguments before passing them to the
11604 # linker. It appears as though 1/2 is a usable value.
11605 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11606 fi
11607 ;;
11608 esac
11609
11610 fi
11611
11612 if test -n "$lt_cv_sys_max_cmd_len"; then
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11614 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11615 else
11616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11617 $as_echo "none" >&6; }
11618 fi
11619 max_cmd_len=$lt_cv_sys_max_cmd_len
11620
11621
11622
11623
11624
11625
11626 : ${CP="cp -f"}
11627 : ${MV="mv -f"}
11628 : ${RM="rm -f"}
11629
11630 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11631 lt_unset=unset
11632 else
11633 lt_unset=false
11634 fi
11635
11636
11637
11638
11639
11640 # test EBCDIC or ASCII
11641 case `echo X|tr X '\101'` in
11642 A) # ASCII based system
11643 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11644 lt_SP2NL='tr \040 \012'
11645 lt_NL2SP='tr \015\012 \040\040'
11646 ;;
11647 *) # EBCDIC based system
11648 lt_SP2NL='tr \100 \n'
11649 lt_NL2SP='tr \r\n \100\100'
11650 ;;
11651 esac
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11662 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11663 if ${lt_cv_to_host_file_cmd+:} false; then :
11664 $as_echo_n "(cached) " >&6
11665 else
11666 case $host in
11667 *-*-mingw* )
11668 case $build in
11669 *-*-mingw* ) # actually msys
11670 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11671 ;;
11672 *-*-cygwin* )
11673 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11674 ;;
11675 * ) # otherwise, assume *nix
11676 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11677 ;;
11678 esac
11679 ;;
11680 *-*-cygwin* )
11681 case $build in
11682 *-*-mingw* ) # actually msys
11683 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11684 ;;
11685 *-*-cygwin* )
11686 lt_cv_to_host_file_cmd=func_convert_file_noop
11687 ;;
11688 * ) # otherwise, assume *nix
11689 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11690 ;;
11691 esac
11692 ;;
11693 * ) # unhandled hosts (and "normal" native builds)
11694 lt_cv_to_host_file_cmd=func_convert_file_noop
11695 ;;
11696 esac
11697
11698 fi
11699
11700 to_host_file_cmd=$lt_cv_to_host_file_cmd
11701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11702 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
11703
11704
11705
11706
11707
11708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11709 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11710 if ${lt_cv_to_tool_file_cmd+:} false; then :
11711 $as_echo_n "(cached) " >&6
11712 else
11713 #assume ordinary cross tools, or native build.
11714 lt_cv_to_tool_file_cmd=func_convert_file_noop
11715 case $host in
11716 *-*-mingw* )
11717 case $build in
11718 *-*-mingw* ) # actually msys
11719 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11720 ;;
11721 esac
11722 ;;
11723 esac
11724
11725 fi
11726
11727 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11729 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11730
11731
11732
11733
11734
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11736 $as_echo_n "checking for $LD option to reload object files... " >&6; }
11737 if ${lt_cv_ld_reload_flag+:} false; then :
11738 $as_echo_n "(cached) " >&6
11739 else
11740 lt_cv_ld_reload_flag='-r'
11741 fi
11742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11743 $as_echo "$lt_cv_ld_reload_flag" >&6; }
11744 reload_flag=$lt_cv_ld_reload_flag
11745 case $reload_flag in
11746 "" | " "*) ;;
11747 *) reload_flag=" $reload_flag" ;;
11748 esac
11749 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11750 case $host_os in
11751 cygwin* | mingw* | pw32* | cegcc*)
11752 if test yes != "$GCC"; then
11753 reload_cmds=false
11754 fi
11755 ;;
11756 darwin*)
11757 if test yes = "$GCC"; then
11758 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
11759 else
11760 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11761 fi
11762 ;;
11763 esac
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773 if test -n "$ac_tool_prefix"; then
11774 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11775 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11777 $as_echo_n "checking for $ac_word... " >&6; }
11778 if ${ac_cv_prog_OBJDUMP+:} false; then :
11779 $as_echo_n "(cached) " >&6
11780 else
11781 if test -n "$OBJDUMP"; then
11782 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11783 else
11784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11785 for as_dir in $PATH
11786 do
11787 IFS=$as_save_IFS
11788 test -z "$as_dir" && as_dir=.
11789 for ac_exec_ext in '' $ac_executable_extensions; do
11790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11791 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11793 break 2
11794 fi
11795 done
11796 done
11797 IFS=$as_save_IFS
11798
11799 fi
11800 fi
11801 OBJDUMP=$ac_cv_prog_OBJDUMP
11802 if test -n "$OBJDUMP"; then
11803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11804 $as_echo "$OBJDUMP" >&6; }
11805 else
11806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11807 $as_echo "no" >&6; }
11808 fi
11809
11810
11811 fi
11812 if test -z "$ac_cv_prog_OBJDUMP"; then
11813 ac_ct_OBJDUMP=$OBJDUMP
11814 # Extract the first word of "objdump", so it can be a program name with args.
11815 set dummy objdump; ac_word=$2
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11817 $as_echo_n "checking for $ac_word... " >&6; }
11818 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11819 $as_echo_n "(cached) " >&6
11820 else
11821 if test -n "$ac_ct_OBJDUMP"; then
11822 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11823 else
11824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11825 for as_dir in $PATH
11826 do
11827 IFS=$as_save_IFS
11828 test -z "$as_dir" && as_dir=.
11829 for ac_exec_ext in '' $ac_executable_extensions; do
11830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11831 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11833 break 2
11834 fi
11835 done
11836 done
11837 IFS=$as_save_IFS
11838
11839 fi
11840 fi
11841 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11842 if test -n "$ac_ct_OBJDUMP"; then
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11844 $as_echo "$ac_ct_OBJDUMP" >&6; }
11845 else
11846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11847 $as_echo "no" >&6; }
11848 fi
11849
11850 if test "x$ac_ct_OBJDUMP" = x; then
11851 OBJDUMP="false"
11852 else
11853 case $cross_compiling:$ac_tool_warned in
11854 yes:)
11855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11856 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11857 ac_tool_warned=yes ;;
11858 esac
11859 OBJDUMP=$ac_ct_OBJDUMP
11860 fi
11861 else
11862 OBJDUMP="$ac_cv_prog_OBJDUMP"
11863 fi
11864
11865 test -z "$OBJDUMP" && OBJDUMP=objdump
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11876 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
11877 if ${lt_cv_deplibs_check_method+:} false; then :
11878 $as_echo_n "(cached) " >&6
11879 else
11880 lt_cv_file_magic_cmd='$MAGIC_CMD'
11881 lt_cv_file_magic_test_file=
11882 lt_cv_deplibs_check_method='unknown'
11883 # Need to set the preceding variable on all platforms that support
11884 # interlibrary dependencies.
11885 # 'none' -- dependencies not supported.
11886 # 'unknown' -- same as none, but documents that we really don't know.
11887 # 'pass_all' -- all dependencies passed with no checks.
11888 # 'test_compile' -- check by making test program.
11889 # 'file_magic [[regex]]' -- check by looking for files in library path
11890 # that responds to the $file_magic_cmd with a given extended regex.
11891 # If you have 'file' or equivalent on your system and you're not sure
11892 # whether 'pass_all' will *always* work, you probably want this one.
11893
11894 case $host_os in
11895 aix[4-9]*)
11896 lt_cv_deplibs_check_method=pass_all
11897 ;;
11898
11899 beos*)
11900 lt_cv_deplibs_check_method=pass_all
11901 ;;
11902
11903 bsdi[45]*)
11904 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11905 lt_cv_file_magic_cmd='/usr/bin/file -L'
11906 lt_cv_file_magic_test_file=/shlib/libc.so
11907 ;;
11908
11909 cygwin*)
11910 # func_win32_libid is a shell function defined in ltmain.sh
11911 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11912 lt_cv_file_magic_cmd='func_win32_libid'
11913 ;;
11914
11915 mingw* | pw32*)
11916 # Base MSYS/MinGW do not provide the 'file' command needed by
11917 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11918 # unless we find 'file', for example because we are cross-compiling.
11919 if ( file / ) >/dev/null 2>&1; then
11920 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11921 lt_cv_file_magic_cmd='func_win32_libid'
11922 else
11923 # Keep this pattern in sync with the one in func_win32_libid.
11924 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
11925 lt_cv_file_magic_cmd='$OBJDUMP -f'
11926 fi
11927 ;;
11928
11929 cegcc*)
11930 # use the weaker test based on 'objdump'. See mingw*.
11931 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11932 lt_cv_file_magic_cmd='$OBJDUMP -f'
11933 ;;
11934
11935 darwin* | rhapsody*)
11936 lt_cv_deplibs_check_method=pass_all
11937 ;;
11938
11939 freebsd* | dragonfly*)
11940 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11941 case $host_cpu in
11942 i*86 )
11943 # Not sure whether the presence of OpenBSD here was a mistake.
11944 # Let's accept both of them until this is cleared up.
11945 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11946 lt_cv_file_magic_cmd=/usr/bin/file
11947 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11948 ;;
11949 esac
11950 else
11951 lt_cv_deplibs_check_method=pass_all
11952 fi
11953 ;;
11954
11955 haiku*)
11956 lt_cv_deplibs_check_method=pass_all
11957 ;;
11958
11959 hpux10.20* | hpux11*)
11960 lt_cv_file_magic_cmd=/usr/bin/file
11961 case $host_cpu in
11962 ia64*)
11963 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11964 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11965 ;;
11966 hppa*64*)
11967 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]'
11968 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11969 ;;
11970 *)
11971 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
11972 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11973 ;;
11974 esac
11975 ;;
11976
11977 interix[3-9]*)
11978 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11979 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11980 ;;
11981
11982 irix5* | irix6* | nonstopux*)
11983 case $LD in
11984 *-32|*"-32 ") libmagic=32-bit;;
11985 *-n32|*"-n32 ") libmagic=N32;;
11986 *-64|*"-64 ") libmagic=64-bit;;
11987 *) libmagic=never-match;;
11988 esac
11989 lt_cv_deplibs_check_method=pass_all
11990 ;;
11991
11992 # This must be glibc/ELF.
11993 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11994 lt_cv_deplibs_check_method=pass_all
11995 ;;
11996
11997 netbsd* | netbsdelf*-gnu)
11998 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11999 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12000 else
12001 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12002 fi
12003 ;;
12004
12005 newos6*)
12006 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12007 lt_cv_file_magic_cmd=/usr/bin/file
12008 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12009 ;;
12010
12011 *nto* | *qnx*)
12012 lt_cv_deplibs_check_method=pass_all
12013 ;;
12014
12015 openbsd* | bitrig*)
12016 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12017 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12018 else
12019 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12020 fi
12021 ;;
12022
12023 osf3* | osf4* | osf5*)
12024 lt_cv_deplibs_check_method=pass_all
12025 ;;
12026
12027 rdos*)
12028 lt_cv_deplibs_check_method=pass_all
12029 ;;
12030
12031 solaris*)
12032 lt_cv_deplibs_check_method=pass_all
12033 ;;
12034
12035 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12036 lt_cv_deplibs_check_method=pass_all
12037 ;;
12038
12039 sysv4 | sysv4.3*)
12040 case $host_vendor in
12041 motorola)
12042 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]'
12043 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12044 ;;
12045 ncr)
12046 lt_cv_deplibs_check_method=pass_all
12047 ;;
12048 sequent)
12049 lt_cv_file_magic_cmd='/bin/file'
12050 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12051 ;;
12052 sni)
12053 lt_cv_file_magic_cmd='/bin/file'
12054 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12055 lt_cv_file_magic_test_file=/lib/libc.so
12056 ;;
12057 siemens)
12058 lt_cv_deplibs_check_method=pass_all
12059 ;;
12060 pc)
12061 lt_cv_deplibs_check_method=pass_all
12062 ;;
12063 esac
12064 ;;
12065
12066 tpf*)
12067 lt_cv_deplibs_check_method=pass_all
12068 ;;
12069 os2*)
12070 lt_cv_deplibs_check_method=pass_all
12071 ;;
12072 esac
12073
12074 fi
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12076 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12077
12078 file_magic_glob=
12079 want_nocaseglob=no
12080 if test "$build" = "$host"; then
12081 case $host_os in
12082 mingw* | pw32*)
12083 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
12084 want_nocaseglob=yes
12085 else
12086 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
12087 fi
12088 ;;
12089 esac
12090 fi
12091
12092 file_magic_cmd=$lt_cv_file_magic_cmd
12093 deplibs_check_method=$lt_cv_deplibs_check_method
12094 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117 if test -n "$ac_tool_prefix"; then
12118 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12119 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12121 $as_echo_n "checking for $ac_word... " >&6; }
12122 if ${ac_cv_prog_DLLTOOL+:} false; then :
12123 $as_echo_n "(cached) " >&6
12124 else
12125 if test -n "$DLLTOOL"; then
12126 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12127 else
12128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12129 for as_dir in $PATH
12130 do
12131 IFS=$as_save_IFS
12132 test -z "$as_dir" && as_dir=.
12133 for ac_exec_ext in '' $ac_executable_extensions; do
12134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12135 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12137 break 2
12138 fi
12139 done
12140 done
12141 IFS=$as_save_IFS
12142
12143 fi
12144 fi
12145 DLLTOOL=$ac_cv_prog_DLLTOOL
12146 if test -n "$DLLTOOL"; then
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12148 $as_echo "$DLLTOOL" >&6; }
12149 else
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12151 $as_echo "no" >&6; }
12152 fi
12153
12154
12155 fi
12156 if test -z "$ac_cv_prog_DLLTOOL"; then
12157 ac_ct_DLLTOOL=$DLLTOOL
12158 # Extract the first word of "dlltool", so it can be a program name with args.
12159 set dummy dlltool; ac_word=$2
12160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12161 $as_echo_n "checking for $ac_word... " >&6; }
12162 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
12163 $as_echo_n "(cached) " >&6
12164 else
12165 if test -n "$ac_ct_DLLTOOL"; then
12166 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12167 else
12168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12169 for as_dir in $PATH
12170 do
12171 IFS=$as_save_IFS
12172 test -z "$as_dir" && as_dir=.
12173 for ac_exec_ext in '' $ac_executable_extensions; do
12174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12175 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12177 break 2
12178 fi
12179 done
12180 done
12181 IFS=$as_save_IFS
12182
12183 fi
12184 fi
12185 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12186 if test -n "$ac_ct_DLLTOOL"; then
12187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12188 $as_echo "$ac_ct_DLLTOOL" >&6; }
12189 else
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12191 $as_echo "no" >&6; }
12192 fi
12193
12194 if test "x$ac_ct_DLLTOOL" = x; then
12195 DLLTOOL="false"
12196 else
12197 case $cross_compiling:$ac_tool_warned in
12198 yes:)
12199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12200 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12201 ac_tool_warned=yes ;;
12202 esac
12203 DLLTOOL=$ac_ct_DLLTOOL
12204 fi
12205 else
12206 DLLTOOL="$ac_cv_prog_DLLTOOL"
12207 fi
12208
12209 test -z "$DLLTOOL" && DLLTOOL=dlltool
12210
12211
12212
12213
12214
12215
12216
12217
12218
12219
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12221 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
12222 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
12223 $as_echo_n "(cached) " >&6
12224 else
12225 lt_cv_sharedlib_from_linklib_cmd='unknown'
12226
12227 case $host_os in
12228 cygwin* | mingw* | pw32* | cegcc*)
12229 # two different shell functions defined in ltmain.sh;
12230 # decide which one to use based on capabilities of $DLLTOOL
12231 case `$DLLTOOL --help 2>&1` in
12232 *--identify-strict*)
12233 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12234 ;;
12235 *)
12236 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12237 ;;
12238 esac
12239 ;;
12240 *)
12241 # fallback: assume linklib IS sharedlib
12242 lt_cv_sharedlib_from_linklib_cmd=$ECHO
12243 ;;
12244 esac
12245
12246 fi
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12248 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12249 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12250 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12251
12252
12253
12254
12255
12256
12257
12258 if test -n "$ac_tool_prefix"; then
12259 for ac_prog in ar
12260 do
12261 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12262 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12264 $as_echo_n "checking for $ac_word... " >&6; }
12265 if ${ac_cv_prog_AR+:} false; then :
12266 $as_echo_n "(cached) " >&6
12267 else
12268 if test -n "$AR"; then
12269 ac_cv_prog_AR="$AR" # Let the user override the test.
12270 else
12271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12272 for as_dir in $PATH
12273 do
12274 IFS=$as_save_IFS
12275 test -z "$as_dir" && as_dir=.
12276 for ac_exec_ext in '' $ac_executable_extensions; do
12277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12278 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
12279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12280 break 2
12281 fi
12282 done
12283 done
12284 IFS=$as_save_IFS
12285
12286 fi
12287 fi
12288 AR=$ac_cv_prog_AR
12289 if test -n "$AR"; then
12290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12291 $as_echo "$AR" >&6; }
12292 else
12293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12294 $as_echo "no" >&6; }
12295 fi
12296
12297
12298 test -n "$AR" && break
12299 done
12300 fi
12301 if test -z "$AR"; then
12302 ac_ct_AR=$AR
12303 for ac_prog in ar
12304 do
12305 # Extract the first word of "$ac_prog", so it can be a program name with args.
12306 set dummy $ac_prog; ac_word=$2
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12308 $as_echo_n "checking for $ac_word... " >&6; }
12309 if ${ac_cv_prog_ac_ct_AR+:} false; then :
12310 $as_echo_n "(cached) " >&6
12311 else
12312 if test -n "$ac_ct_AR"; then
12313 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12314 else
12315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12316 for as_dir in $PATH
12317 do
12318 IFS=$as_save_IFS
12319 test -z "$as_dir" && as_dir=.
12320 for ac_exec_ext in '' $ac_executable_extensions; do
12321 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12322 ac_cv_prog_ac_ct_AR="$ac_prog"
12323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12324 break 2
12325 fi
12326 done
12327 done
12328 IFS=$as_save_IFS
12329
12330 fi
12331 fi
12332 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12333 if test -n "$ac_ct_AR"; then
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12335 $as_echo "$ac_ct_AR" >&6; }
12336 else
12337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12338 $as_echo "no" >&6; }
12339 fi
12340
12341
12342 test -n "$ac_ct_AR" && break
12343 done
12344
12345 if test "x$ac_ct_AR" = x; then
12346 AR="false"
12347 else
12348 case $cross_compiling:$ac_tool_warned in
12349 yes:)
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12351 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12352 ac_tool_warned=yes ;;
12353 esac
12354 AR=$ac_ct_AR
12355 fi
12356 fi
12357
12358 : ${AR=ar}
12359 : ${AR_FLAGS=cru}
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12372 $as_echo_n "checking for archiver @FILE support... " >&6; }
12373 if ${lt_cv_ar_at_file+:} false; then :
12374 $as_echo_n "(cached) " >&6
12375 else
12376 lt_cv_ar_at_file=no
12377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12378 /* end confdefs.h. */
12379
12380 int
12381 main ()
12382 {
12383
12384 ;
12385 return 0;
12386 }
12387 _ACEOF
12388 if ac_fn_c_try_compile "$LINENO"; then :
12389 echo conftest.$ac_objext > conftest.lst
12390 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12391 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12392 (eval $lt_ar_try) 2>&5
12393 ac_status=$?
12394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12395 test $ac_status = 0; }
12396 if test 0 -eq "$ac_status"; then
12397 # Ensure the archiver fails upon bogus file names.
12398 rm -f conftest.$ac_objext libconftest.a
12399 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12400 (eval $lt_ar_try) 2>&5
12401 ac_status=$?
12402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12403 test $ac_status = 0; }
12404 if test 0 -ne "$ac_status"; then
12405 lt_cv_ar_at_file=@
12406 fi
12407 fi
12408 rm -f conftest.* libconftest.a
12409
12410 fi
12411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12412
12413 fi
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12415 $as_echo "$lt_cv_ar_at_file" >&6; }
12416
12417 if test no = "$lt_cv_ar_at_file"; then
12418 archiver_list_spec=
12419 else
12420 archiver_list_spec=$lt_cv_ar_at_file
12421 fi
12422
12423
12424
12425
12426
12427
12428
12429 if test -n "$ac_tool_prefix"; then
12430 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12431 set dummy ${ac_tool_prefix}strip; ac_word=$2
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12433 $as_echo_n "checking for $ac_word... " >&6; }
12434 if ${ac_cv_prog_STRIP+:} false; then :
12435 $as_echo_n "(cached) " >&6
12436 else
12437 if test -n "$STRIP"; then
12438 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12439 else
12440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12441 for as_dir in $PATH
12442 do
12443 IFS=$as_save_IFS
12444 test -z "$as_dir" && as_dir=.
12445 for ac_exec_ext in '' $ac_executable_extensions; do
12446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12447 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12449 break 2
12450 fi
12451 done
12452 done
12453 IFS=$as_save_IFS
12454
12455 fi
12456 fi
12457 STRIP=$ac_cv_prog_STRIP
12458 if test -n "$STRIP"; then
12459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12460 $as_echo "$STRIP" >&6; }
12461 else
12462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12463 $as_echo "no" >&6; }
12464 fi
12465
12466
12467 fi
12468 if test -z "$ac_cv_prog_STRIP"; then
12469 ac_ct_STRIP=$STRIP
12470 # Extract the first word of "strip", so it can be a program name with args.
12471 set dummy strip; ac_word=$2
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12473 $as_echo_n "checking for $ac_word... " >&6; }
12474 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12475 $as_echo_n "(cached) " >&6
12476 else
12477 if test -n "$ac_ct_STRIP"; then
12478 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12479 else
12480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12481 for as_dir in $PATH
12482 do
12483 IFS=$as_save_IFS
12484 test -z "$as_dir" && as_dir=.
12485 for ac_exec_ext in '' $ac_executable_extensions; do
12486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12487 ac_cv_prog_ac_ct_STRIP="strip"
12488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12489 break 2
12490 fi
12491 done
12492 done
12493 IFS=$as_save_IFS
12494
12495 fi
12496 fi
12497 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12498 if test -n "$ac_ct_STRIP"; then
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12500 $as_echo "$ac_ct_STRIP" >&6; }
12501 else
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12503 $as_echo "no" >&6; }
12504 fi
12505
12506 if test "x$ac_ct_STRIP" = x; then
12507 STRIP=":"
12508 else
12509 case $cross_compiling:$ac_tool_warned in
12510 yes:)
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12512 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12513 ac_tool_warned=yes ;;
12514 esac
12515 STRIP=$ac_ct_STRIP
12516 fi
12517 else
12518 STRIP="$ac_cv_prog_STRIP"
12519 fi
12520
12521 test -z "$STRIP" && STRIP=:
12522
12523
12524
12525
12526
12527
12528 if test -n "$ac_tool_prefix"; then
12529 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12530 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12532 $as_echo_n "checking for $ac_word... " >&6; }
12533 if ${ac_cv_prog_RANLIB+:} false; then :
12534 $as_echo_n "(cached) " >&6
12535 else
12536 if test -n "$RANLIB"; then
12537 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12538 else
12539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12540 for as_dir in $PATH
12541 do
12542 IFS=$as_save_IFS
12543 test -z "$as_dir" && as_dir=.
12544 for ac_exec_ext in '' $ac_executable_extensions; do
12545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12546 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12548 break 2
12549 fi
12550 done
12551 done
12552 IFS=$as_save_IFS
12553
12554 fi
12555 fi
12556 RANLIB=$ac_cv_prog_RANLIB
12557 if test -n "$RANLIB"; then
12558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12559 $as_echo "$RANLIB" >&6; }
12560 else
12561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12562 $as_echo "no" >&6; }
12563 fi
12564
12565
12566 fi
12567 if test -z "$ac_cv_prog_RANLIB"; then
12568 ac_ct_RANLIB=$RANLIB
12569 # Extract the first word of "ranlib", so it can be a program name with args.
12570 set dummy ranlib; ac_word=$2
12571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12572 $as_echo_n "checking for $ac_word... " >&6; }
12573 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12574 $as_echo_n "(cached) " >&6
12575 else
12576 if test -n "$ac_ct_RANLIB"; then
12577 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12578 else
12579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12580 for as_dir in $PATH
12581 do
12582 IFS=$as_save_IFS
12583 test -z "$as_dir" && as_dir=.
12584 for ac_exec_ext in '' $ac_executable_extensions; do
12585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12586 ac_cv_prog_ac_ct_RANLIB="ranlib"
12587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12588 break 2
12589 fi
12590 done
12591 done
12592 IFS=$as_save_IFS
12593
12594 fi
12595 fi
12596 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12597 if test -n "$ac_ct_RANLIB"; then
12598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12599 $as_echo "$ac_ct_RANLIB" >&6; }
12600 else
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12602 $as_echo "no" >&6; }
12603 fi
12604
12605 if test "x$ac_ct_RANLIB" = x; then
12606 RANLIB=":"
12607 else
12608 case $cross_compiling:$ac_tool_warned in
12609 yes:)
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12611 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12612 ac_tool_warned=yes ;;
12613 esac
12614 RANLIB=$ac_ct_RANLIB
12615 fi
12616 else
12617 RANLIB="$ac_cv_prog_RANLIB"
12618 fi
12619
12620 test -z "$RANLIB" && RANLIB=:
12621
12622
12623
12624
12625
12626
12627 # Determine commands to create old-style static archives.
12628 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12629 old_postinstall_cmds='chmod 644 $oldlib'
12630 old_postuninstall_cmds=
12631
12632 if test -n "$RANLIB"; then
12633 case $host_os in
12634 bitrig* | openbsd*)
12635 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
12636 ;;
12637 *)
12638 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
12639 ;;
12640 esac
12641 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
12642 fi
12643
12644 case $host_os in
12645 darwin*)
12646 lock_old_archive_extraction=yes ;;
12647 *)
12648 lock_old_archive_extraction=no ;;
12649 esac
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687
12688
12689 # If no C compiler was specified, use CC.
12690 LTCC=${LTCC-"$CC"}
12691
12692 # If no C compiler flags were specified, use CFLAGS.
12693 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12694
12695 # Allow CC to be a program name with arguments.
12696 compiler=$CC
12697
12698
12699 # Check for command to grab the raw symbol name followed by C symbol from nm.
12700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12701 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12702 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
12703 $as_echo_n "(cached) " >&6
12704 else
12705
12706 # These are sane defaults that work on at least a few old systems.
12707 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
12708
12709 # Character class describing NM global symbol codes.
12710 symcode='[BCDEGRST]'
12711
12712 # Regexp to match symbols that can be accessed directly from C.
12713 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12714
12715 # Define system-specific variables.
12716 case $host_os in
12717 aix*)
12718 symcode='[BCDT]'
12719 ;;
12720 cygwin* | mingw* | pw32* | cegcc*)
12721 symcode='[ABCDGISTW]'
12722 ;;
12723 hpux*)
12724 if test ia64 = "$host_cpu"; then
12725 symcode='[ABCDEGRST]'
12726 fi
12727 ;;
12728 irix* | nonstopux*)
12729 symcode='[BCDEGRST]'
12730 ;;
12731 osf*)
12732 symcode='[BCDEGQRST]'
12733 ;;
12734 solaris*)
12735 symcode='[BDRT]'
12736 ;;
12737 sco3.2v5*)
12738 symcode='[DT]'
12739 ;;
12740 sysv4.2uw2*)
12741 symcode='[DT]'
12742 ;;
12743 sysv5* | sco5v6* | unixware* | OpenUNIX*)
12744 symcode='[ABDT]'
12745 ;;
12746 sysv4)
12747 symcode='[DFNSTU]'
12748 ;;
12749 esac
12750
12751 # If we're using GNU nm, then use its standard symbol codes.
12752 case `$NM -V 2>&1` in
12753 *GNU* | *'with BFD'*)
12754 symcode='[ABCDGIRSTW]' ;;
12755 esac
12756
12757 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12758 # Gets list of data symbols to import.
12759 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
12760 # Adjust the below global symbol transforms to fixup imported variables.
12761 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
12762 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
12763 lt_c_name_lib_hook="\
12764 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
12765 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
12766 else
12767 # Disable hooks by default.
12768 lt_cv_sys_global_symbol_to_import=
12769 lt_cdecl_hook=
12770 lt_c_name_hook=
12771 lt_c_name_lib_hook=
12772 fi
12773
12774 # Transform an extracted symbol line into a proper C declaration.
12775 # Some systems (esp. on ia64) link data and code symbols differently,
12776 # so use this general approach.
12777 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
12778 $lt_cdecl_hook\
12779 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
12780 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
12781
12782 # Transform an extracted symbol line into symbol name and symbol address
12783 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
12784 $lt_c_name_hook\
12785 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
12786 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
12787
12788 # Transform an extracted symbol line into symbol name with lib prefix and
12789 # symbol address.
12790 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
12791 $lt_c_name_lib_hook\
12792 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
12793 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
12794 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
12795
12796 # Handle CRLF in mingw tool chain
12797 opt_cr=
12798 case $build_os in
12799 mingw*)
12800 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12801 ;;
12802 esac
12803
12804 # Try without a prefix underscore, then with it.
12805 for ac_symprfx in "" "_"; do
12806
12807 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12808 symxfrm="\\1 $ac_symprfx\\2 \\2"
12809
12810 # Write the raw and C identifiers.
12811 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12812 # Fake it for dumpbin and say T for any non-static function,
12813 # D for any global variable and I for any imported variable.
12814 # Also find C++ and __fastcall symbols from MSVC++,
12815 # which start with @ or ?.
12816 lt_cv_sys_global_symbol_pipe="$AWK '"\
12817 " {last_section=section; section=\$ 3};"\
12818 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
12819 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12820 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
12821 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
12822 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
12823 " \$ 0!~/External *\|/{next};"\
12824 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12825 " {if(hide[section]) next};"\
12826 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
12827 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
12828 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
12829 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
12830 " ' prfx=^$ac_symprfx"
12831 else
12832 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12833 fi
12834 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
12835
12836 # Check to see that the pipe works correctly.
12837 pipe_works=no
12838
12839 rm -f conftest*
12840 cat > conftest.$ac_ext <<_LT_EOF
12841 #ifdef __cplusplus
12842 extern "C" {
12843 #endif
12844 char nm_test_var;
12845 void nm_test_func(void);
12846 void nm_test_func(void){}
12847 #ifdef __cplusplus
12848 }
12849 #endif
12850 int main(){nm_test_var='a';nm_test_func();return(0);}
12851 _LT_EOF
12852
12853 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12854 (eval $ac_compile) 2>&5
12855 ac_status=$?
12856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12857 test $ac_status = 0; }; then
12858 # Now try to grab the symbols.
12859 nlist=conftest.nm
12860 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12861 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12862 ac_status=$?
12863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12864 test $ac_status = 0; } && test -s "$nlist"; then
12865 # Try sorting and uniquifying the output.
12866 if sort "$nlist" | uniq > "$nlist"T; then
12867 mv -f "$nlist"T "$nlist"
12868 else
12869 rm -f "$nlist"T
12870 fi
12871
12872 # Make sure that we snagged all the symbols we need.
12873 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12874 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12875 cat <<_LT_EOF > conftest.$ac_ext
12876 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
12877 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
12878 /* DATA imports from DLLs on WIN32 can't be const, because runtime
12879 relocations are performed -- see ld's documentation on pseudo-relocs. */
12880 # define LT_DLSYM_CONST
12881 #elif defined __osf__
12882 /* This system does not cope well with relocations in const data. */
12883 # define LT_DLSYM_CONST
12884 #else
12885 # define LT_DLSYM_CONST const
12886 #endif
12887
12888 #ifdef __cplusplus
12889 extern "C" {
12890 #endif
12891
12892 _LT_EOF
12893 # Now generate the symbol file.
12894 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12895
12896 cat <<_LT_EOF >> conftest.$ac_ext
12897
12898 /* The mapping between symbol names and symbols. */
12899 LT_DLSYM_CONST struct {
12900 const char *name;
12901 void *address;
12902 }
12903 lt__PROGRAM__LTX_preloaded_symbols[] =
12904 {
12905 { "@PROGRAM@", (void *) 0 },
12906 _LT_EOF
12907 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12908 cat <<\_LT_EOF >> conftest.$ac_ext
12909 {0, (void *) 0}
12910 };
12911
12912 /* This works around a problem in FreeBSD linker */
12913 #ifdef FREEBSD_WORKAROUND
12914 static const void *lt_preloaded_setup() {
12915 return lt__PROGRAM__LTX_preloaded_symbols;
12916 }
12917 #endif
12918
12919 #ifdef __cplusplus
12920 }
12921 #endif
12922 _LT_EOF
12923 # Now try linking the two files.
12924 mv conftest.$ac_objext conftstm.$ac_objext
12925 lt_globsym_save_LIBS=$LIBS
12926 lt_globsym_save_CFLAGS=$CFLAGS
12927 LIBS=conftstm.$ac_objext
12928 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12929 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12930 (eval $ac_link) 2>&5
12931 ac_status=$?
12932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12933 test $ac_status = 0; } && test -s conftest$ac_exeext; then
12934 pipe_works=yes
12935 fi
12936 LIBS=$lt_globsym_save_LIBS
12937 CFLAGS=$lt_globsym_save_CFLAGS
12938 else
12939 echo "cannot find nm_test_func in $nlist" >&5
12940 fi
12941 else
12942 echo "cannot find nm_test_var in $nlist" >&5
12943 fi
12944 else
12945 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12946 fi
12947 else
12948 echo "$progname: failed program was:" >&5
12949 cat conftest.$ac_ext >&5
12950 fi
12951 rm -rf conftest* conftst*
12952
12953 # Do not use the global_symbol_pipe unless it works.
12954 if test yes = "$pipe_works"; then
12955 break
12956 else
12957 lt_cv_sys_global_symbol_pipe=
12958 fi
12959 done
12960
12961 fi
12962
12963 if test -z "$lt_cv_sys_global_symbol_pipe"; then
12964 lt_cv_sys_global_symbol_to_cdecl=
12965 fi
12966 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12968 $as_echo "failed" >&6; }
12969 else
12970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12971 $as_echo "ok" >&6; }
12972 fi
12973
12974 # Response file support.
12975 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12976 nm_file_list_spec='@'
12977 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12978 nm_file_list_spec='@'
12979 fi
12980
12981
12982
12983
12984
12985
12986
12987
12988
12989
12990
12991
12992
12993
12994
12995
12996
12997
12998
12999
13000
13001
13002
13003
13004
13005
13006
13007
13008
13009
13010
13011
13012
13013
13014
13015
13016
13017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
13018 $as_echo_n "checking for sysroot... " >&6; }
13019
13020 # Check whether --with-sysroot was given.
13021 if test "${with_sysroot+set}" = set; then :
13022 withval=$with_sysroot;
13023 else
13024 with_sysroot=no
13025 fi
13026
13027
13028 lt_sysroot=
13029 case $with_sysroot in #(
13030 yes)
13031 if test yes = "$GCC"; then
13032 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
13033 fi
13034 ;; #(
13035 /*)
13036 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
13037 ;; #(
13038 no|'')
13039 ;; #(
13040 *)
13041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
13042 $as_echo "$with_sysroot" >&6; }
13043 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
13044 ;;
13045 esac
13046
13047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
13048 $as_echo "${lt_sysroot:-no}" >&6; }
13049
13050
13051
13052
13053
13054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
13055 $as_echo_n "checking for a working dd... " >&6; }
13056 if ${ac_cv_path_lt_DD+:} false; then :
13057 $as_echo_n "(cached) " >&6
13058 else
13059 printf 0123456789abcdef0123456789abcdef >conftest.i
13060 cat conftest.i conftest.i >conftest2.i
13061 : ${lt_DD:=$DD}
13062 if test -z "$lt_DD"; then
13063 ac_path_lt_DD_found=false
13064 # Loop through the user's path and test for each of PROGNAME-LIST
13065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13066 for as_dir in $PATH
13067 do
13068 IFS=$as_save_IFS
13069 test -z "$as_dir" && as_dir=.
13070 for ac_prog in dd; do
13071 for ac_exec_ext in '' $ac_executable_extensions; do
13072 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
13073 as_fn_executable_p "$ac_path_lt_DD" || continue
13074 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
13075 cmp -s conftest.i conftest.out \
13076 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
13077 fi
13078 $ac_path_lt_DD_found && break 3
13079 done
13080 done
13081 done
13082 IFS=$as_save_IFS
13083 if test -z "$ac_cv_path_lt_DD"; then
13084 :
13085 fi
13086 else
13087 ac_cv_path_lt_DD=$lt_DD
13088 fi
13089
13090 rm -f conftest.i conftest2.i conftest.out
13091 fi
13092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
13093 $as_echo "$ac_cv_path_lt_DD" >&6; }
13094
13095
13096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
13097 $as_echo_n "checking how to truncate binary pipes... " >&6; }
13098 if ${lt_cv_truncate_bin+:} false; then :
13099 $as_echo_n "(cached) " >&6
13100 else
13101 printf 0123456789abcdef0123456789abcdef >conftest.i
13102 cat conftest.i conftest.i >conftest2.i
13103 lt_cv_truncate_bin=
13104 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
13105 cmp -s conftest.i conftest.out \
13106 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
13107 fi
13108 rm -f conftest.i conftest2.i conftest.out
13109 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
13110 fi
13111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
13112 $as_echo "$lt_cv_truncate_bin" >&6; }
13113
13114
13115
13116
13117
13118
13119
13120 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
13121 func_cc_basename ()
13122 {
13123 for cc_temp in $*""; do
13124 case $cc_temp in
13125 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13126 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13127 \-*) ;;
13128 *) break;;
13129 esac
13130 done
13131 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13132 }
13133
13134 # Check whether --enable-libtool-lock was given.
13135 if test "${enable_libtool_lock+set}" = set; then :
13136 enableval=$enable_libtool_lock;
13137 fi
13138
13139 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
13140
13141 # Some flags need to be propagated to the compiler or linker for good
13142 # libtool support.
13143 case $host in
13144 ia64-*-hpux*)
13145 # Find out what ABI is being produced by ac_compile, and set mode
13146 # options accordingly.
13147 echo 'int i;' > conftest.$ac_ext
13148 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13149 (eval $ac_compile) 2>&5
13150 ac_status=$?
13151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13152 test $ac_status = 0; }; then
13153 case `/usr/bin/file conftest.$ac_objext` in
13154 *ELF-32*)
13155 HPUX_IA64_MODE=32
13156 ;;
13157 *ELF-64*)
13158 HPUX_IA64_MODE=64
13159 ;;
13160 esac
13161 fi
13162 rm -rf conftest*
13163 ;;
13164 *-*-irix6*)
13165 # Find out what ABI is being produced by ac_compile, and set linker
13166 # options accordingly.
13167 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13168 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13169 (eval $ac_compile) 2>&5
13170 ac_status=$?
13171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13172 test $ac_status = 0; }; then
13173 if test yes = "$lt_cv_prog_gnu_ld"; then
13174 case `/usr/bin/file conftest.$ac_objext` in
13175 *32-bit*)
13176 LD="${LD-ld} -melf32bsmip"
13177 ;;
13178 *N32*)
13179 LD="${LD-ld} -melf32bmipn32"
13180 ;;
13181 *64-bit*)
13182 LD="${LD-ld} -melf64bmip"
13183 ;;
13184 esac
13185 else
13186 case `/usr/bin/file conftest.$ac_objext` in
13187 *32-bit*)
13188 LD="${LD-ld} -32"
13189 ;;
13190 *N32*)
13191 LD="${LD-ld} -n32"
13192 ;;
13193 *64-bit*)
13194 LD="${LD-ld} -64"
13195 ;;
13196 esac
13197 fi
13198 fi
13199 rm -rf conftest*
13200 ;;
13201
13202 mips64*-*linux*)
13203 # Find out what ABI is being produced by ac_compile, and set linker
13204 # options accordingly.
13205 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13206 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13207 (eval $ac_compile) 2>&5
13208 ac_status=$?
13209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13210 test $ac_status = 0; }; then
13211 emul=elf
13212 case `/usr/bin/file conftest.$ac_objext` in
13213 *32-bit*)
13214 emul="${emul}32"
13215 ;;
13216 *64-bit*)
13217 emul="${emul}64"
13218 ;;
13219 esac
13220 case `/usr/bin/file conftest.$ac_objext` in
13221 *MSB*)
13222 emul="${emul}btsmip"
13223 ;;
13224 *LSB*)
13225 emul="${emul}ltsmip"
13226 ;;
13227 esac
13228 case `/usr/bin/file conftest.$ac_objext` in
13229 *N32*)
13230 emul="${emul}n32"
13231 ;;
13232 esac
13233 LD="${LD-ld} -m $emul"
13234 fi
13235 rm -rf conftest*
13236 ;;
13237
13238 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13239 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13240 # Find out what ABI is being produced by ac_compile, and set linker
13241 # options accordingly. Note that the listed cases only cover the
13242 # situations where additional linker options are needed (such as when
13243 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
13244 # vice versa); the common cases where no linker options are needed do
13245 # not appear in the list.
13246 echo 'int i;' > conftest.$ac_ext
13247 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13248 (eval $ac_compile) 2>&5
13249 ac_status=$?
13250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13251 test $ac_status = 0; }; then
13252 case `/usr/bin/file conftest.o` in
13253 *32-bit*)
13254 case $host in
13255 x86_64-*kfreebsd*-gnu)
13256 LD="${LD-ld} -m elf_i386_fbsd"
13257 ;;
13258 x86_64-*linux*)
13259 case `/usr/bin/file conftest.o` in
13260 *x86-64*)
13261 LD="${LD-ld} -m elf32_x86_64"
13262 ;;
13263 *)
13264 LD="${LD-ld} -m elf_i386"
13265 ;;
13266 esac
13267 ;;
13268 powerpc64le-*linux*)
13269 LD="${LD-ld} -m elf32lppclinux"
13270 ;;
13271 powerpc64-*linux*)
13272 LD="${LD-ld} -m elf32ppclinux"
13273 ;;
13274 s390x-*linux*)
13275 LD="${LD-ld} -m elf_s390"
13276 ;;
13277 sparc64-*linux*)
13278 LD="${LD-ld} -m elf32_sparc"
13279 ;;
13280 esac
13281 ;;
13282 *64-bit*)
13283 case $host in
13284 x86_64-*kfreebsd*-gnu)
13285 LD="${LD-ld} -m elf_x86_64_fbsd"
13286 ;;
13287 x86_64-*linux*)
13288 LD="${LD-ld} -m elf_x86_64"
13289 ;;
13290 powerpcle-*linux*)
13291 LD="${LD-ld} -m elf64lppc"
13292 ;;
13293 powerpc-*linux*)
13294 LD="${LD-ld} -m elf64ppc"
13295 ;;
13296 s390*-*linux*|s390*-*tpf*)
13297 LD="${LD-ld} -m elf64_s390"
13298 ;;
13299 sparc*-*linux*)
13300 LD="${LD-ld} -m elf64_sparc"
13301 ;;
13302 esac
13303 ;;
13304 esac
13305 fi
13306 rm -rf conftest*
13307 ;;
13308
13309 *-*-sco3.2v5*)
13310 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13311 SAVE_CFLAGS=$CFLAGS
13312 CFLAGS="$CFLAGS -belf"
13313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13314 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13315 if ${lt_cv_cc_needs_belf+:} false; then :
13316 $as_echo_n "(cached) " >&6
13317 else
13318 ac_ext=c
13319 ac_cpp='$CPP $CPPFLAGS'
13320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13323
13324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13325 /* end confdefs.h. */
13326
13327 int
13328 main ()
13329 {
13330
13331 ;
13332 return 0;
13333 }
13334 _ACEOF
13335 if ac_fn_c_try_link "$LINENO"; then :
13336 lt_cv_cc_needs_belf=yes
13337 else
13338 lt_cv_cc_needs_belf=no
13339 fi
13340 rm -f core conftest.err conftest.$ac_objext \
13341 conftest$ac_exeext conftest.$ac_ext
13342 ac_ext=c
13343 ac_cpp='$CPP $CPPFLAGS'
13344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13347
13348 fi
13349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13350 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13351 if test yes != "$lt_cv_cc_needs_belf"; then
13352 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13353 CFLAGS=$SAVE_CFLAGS
13354 fi
13355 ;;
13356 *-*solaris*)
13357 # Find out what ABI is being produced by ac_compile, and set linker
13358 # options accordingly.
13359 echo 'int i;' > conftest.$ac_ext
13360 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13361 (eval $ac_compile) 2>&5
13362 ac_status=$?
13363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13364 test $ac_status = 0; }; then
13365 case `/usr/bin/file conftest.o` in
13366 *64-bit*)
13367 case $lt_cv_prog_gnu_ld in
13368 yes*)
13369 case $host in
13370 i?86-*-solaris*|x86_64-*-solaris*)
13371 LD="${LD-ld} -m elf_x86_64"
13372 ;;
13373 sparc*-*-solaris*)
13374 LD="${LD-ld} -m elf64_sparc"
13375 ;;
13376 esac
13377 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
13378 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
13379 LD=${LD-ld}_sol2
13380 fi
13381 ;;
13382 *)
13383 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13384 LD="${LD-ld} -64"
13385 fi
13386 ;;
13387 esac
13388 ;;
13389 esac
13390 fi
13391 rm -rf conftest*
13392 ;;
13393 esac
13394
13395 need_locks=$enable_libtool_lock
13396
13397 if test -n "$ac_tool_prefix"; then
13398 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
13399 set dummy ${ac_tool_prefix}mt; ac_word=$2
13400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13401 $as_echo_n "checking for $ac_word... " >&6; }
13402 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
13403 $as_echo_n "(cached) " >&6
13404 else
13405 if test -n "$MANIFEST_TOOL"; then
13406 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
13407 else
13408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13409 for as_dir in $PATH
13410 do
13411 IFS=$as_save_IFS
13412 test -z "$as_dir" && as_dir=.
13413 for ac_exec_ext in '' $ac_executable_extensions; do
13414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13415 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
13416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13417 break 2
13418 fi
13419 done
13420 done
13421 IFS=$as_save_IFS
13422
13423 fi
13424 fi
13425 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
13426 if test -n "$MANIFEST_TOOL"; then
13427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
13428 $as_echo "$MANIFEST_TOOL" >&6; }
13429 else
13430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13431 $as_echo "no" >&6; }
13432 fi
13433
13434
13435 fi
13436 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
13437 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
13438 # Extract the first word of "mt", so it can be a program name with args.
13439 set dummy mt; ac_word=$2
13440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13441 $as_echo_n "checking for $ac_word... " >&6; }
13442 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
13443 $as_echo_n "(cached) " >&6
13444 else
13445 if test -n "$ac_ct_MANIFEST_TOOL"; then
13446 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13447 else
13448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13449 for as_dir in $PATH
13450 do
13451 IFS=$as_save_IFS
13452 test -z "$as_dir" && as_dir=.
13453 for ac_exec_ext in '' $ac_executable_extensions; do
13454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13455 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13457 break 2
13458 fi
13459 done
13460 done
13461 IFS=$as_save_IFS
13462
13463 fi
13464 fi
13465 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13466 if test -n "$ac_ct_MANIFEST_TOOL"; then
13467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13468 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
13469 else
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13471 $as_echo "no" >&6; }
13472 fi
13473
13474 if test "x$ac_ct_MANIFEST_TOOL" = x; then
13475 MANIFEST_TOOL=":"
13476 else
13477 case $cross_compiling:$ac_tool_warned in
13478 yes:)
13479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13480 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13481 ac_tool_warned=yes ;;
13482 esac
13483 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13484 fi
13485 else
13486 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13487 fi
13488
13489 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13491 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13492 if ${lt_cv_path_mainfest_tool+:} false; then :
13493 $as_echo_n "(cached) " >&6
13494 else
13495 lt_cv_path_mainfest_tool=no
13496 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13497 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13498 cat conftest.err >&5
13499 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13500 lt_cv_path_mainfest_tool=yes
13501 fi
13502 rm -f conftest*
13503 fi
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13505 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
13506 if test yes != "$lt_cv_path_mainfest_tool"; then
13507 MANIFEST_TOOL=:
13508 fi
13509
13510
13511
13512
13513
13514
13515 case $host_os in
13516 rhapsody* | darwin*)
13517 if test -n "$ac_tool_prefix"; then
13518 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13519 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13521 $as_echo_n "checking for $ac_word... " >&6; }
13522 if ${ac_cv_prog_DSYMUTIL+:} false; then :
13523 $as_echo_n "(cached) " >&6
13524 else
13525 if test -n "$DSYMUTIL"; then
13526 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13527 else
13528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13529 for as_dir in $PATH
13530 do
13531 IFS=$as_save_IFS
13532 test -z "$as_dir" && as_dir=.
13533 for ac_exec_ext in '' $ac_executable_extensions; do
13534 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13535 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13537 break 2
13538 fi
13539 done
13540 done
13541 IFS=$as_save_IFS
13542
13543 fi
13544 fi
13545 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13546 if test -n "$DSYMUTIL"; then
13547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13548 $as_echo "$DSYMUTIL" >&6; }
13549 else
13550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13551 $as_echo "no" >&6; }
13552 fi
13553
13554
13555 fi
13556 if test -z "$ac_cv_prog_DSYMUTIL"; then
13557 ac_ct_DSYMUTIL=$DSYMUTIL
13558 # Extract the first word of "dsymutil", so it can be a program name with args.
13559 set dummy dsymutil; ac_word=$2
13560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13561 $as_echo_n "checking for $ac_word... " >&6; }
13562 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
13563 $as_echo_n "(cached) " >&6
13564 else
13565 if test -n "$ac_ct_DSYMUTIL"; then
13566 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13567 else
13568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13569 for as_dir in $PATH
13570 do
13571 IFS=$as_save_IFS
13572 test -z "$as_dir" && as_dir=.
13573 for ac_exec_ext in '' $ac_executable_extensions; do
13574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13575 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13577 break 2
13578 fi
13579 done
13580 done
13581 IFS=$as_save_IFS
13582
13583 fi
13584 fi
13585 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13586 if test -n "$ac_ct_DSYMUTIL"; then
13587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13588 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13589 else
13590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13591 $as_echo "no" >&6; }
13592 fi
13593
13594 if test "x$ac_ct_DSYMUTIL" = x; then
13595 DSYMUTIL=":"
13596 else
13597 case $cross_compiling:$ac_tool_warned in
13598 yes:)
13599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13600 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13601 ac_tool_warned=yes ;;
13602 esac
13603 DSYMUTIL=$ac_ct_DSYMUTIL
13604 fi
13605 else
13606 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13607 fi
13608
13609 if test -n "$ac_tool_prefix"; then
13610 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13611 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13613 $as_echo_n "checking for $ac_word... " >&6; }
13614 if ${ac_cv_prog_NMEDIT+:} false; then :
13615 $as_echo_n "(cached) " >&6
13616 else
13617 if test -n "$NMEDIT"; then
13618 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13619 else
13620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13621 for as_dir in $PATH
13622 do
13623 IFS=$as_save_IFS
13624 test -z "$as_dir" && as_dir=.
13625 for ac_exec_ext in '' $ac_executable_extensions; do
13626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13627 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13629 break 2
13630 fi
13631 done
13632 done
13633 IFS=$as_save_IFS
13634
13635 fi
13636 fi
13637 NMEDIT=$ac_cv_prog_NMEDIT
13638 if test -n "$NMEDIT"; then
13639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13640 $as_echo "$NMEDIT" >&6; }
13641 else
13642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13643 $as_echo "no" >&6; }
13644 fi
13645
13646
13647 fi
13648 if test -z "$ac_cv_prog_NMEDIT"; then
13649 ac_ct_NMEDIT=$NMEDIT
13650 # Extract the first word of "nmedit", so it can be a program name with args.
13651 set dummy nmedit; ac_word=$2
13652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13653 $as_echo_n "checking for $ac_word... " >&6; }
13654 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
13655 $as_echo_n "(cached) " >&6
13656 else
13657 if test -n "$ac_ct_NMEDIT"; then
13658 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13659 else
13660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13661 for as_dir in $PATH
13662 do
13663 IFS=$as_save_IFS
13664 test -z "$as_dir" && as_dir=.
13665 for ac_exec_ext in '' $ac_executable_extensions; do
13666 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13667 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13669 break 2
13670 fi
13671 done
13672 done
13673 IFS=$as_save_IFS
13674
13675 fi
13676 fi
13677 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13678 if test -n "$ac_ct_NMEDIT"; then
13679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13680 $as_echo "$ac_ct_NMEDIT" >&6; }
13681 else
13682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13683 $as_echo "no" >&6; }
13684 fi
13685
13686 if test "x$ac_ct_NMEDIT" = x; then
13687 NMEDIT=":"
13688 else
13689 case $cross_compiling:$ac_tool_warned in
13690 yes:)
13691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13692 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13693 ac_tool_warned=yes ;;
13694 esac
13695 NMEDIT=$ac_ct_NMEDIT
13696 fi
13697 else
13698 NMEDIT="$ac_cv_prog_NMEDIT"
13699 fi
13700
13701 if test -n "$ac_tool_prefix"; then
13702 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13703 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13705 $as_echo_n "checking for $ac_word... " >&6; }
13706 if ${ac_cv_prog_LIPO+:} false; then :
13707 $as_echo_n "(cached) " >&6
13708 else
13709 if test -n "$LIPO"; then
13710 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13711 else
13712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13713 for as_dir in $PATH
13714 do
13715 IFS=$as_save_IFS
13716 test -z "$as_dir" && as_dir=.
13717 for ac_exec_ext in '' $ac_executable_extensions; do
13718 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13719 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13721 break 2
13722 fi
13723 done
13724 done
13725 IFS=$as_save_IFS
13726
13727 fi
13728 fi
13729 LIPO=$ac_cv_prog_LIPO
13730 if test -n "$LIPO"; then
13731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13732 $as_echo "$LIPO" >&6; }
13733 else
13734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13735 $as_echo "no" >&6; }
13736 fi
13737
13738
13739 fi
13740 if test -z "$ac_cv_prog_LIPO"; then
13741 ac_ct_LIPO=$LIPO
13742 # Extract the first word of "lipo", so it can be a program name with args.
13743 set dummy lipo; ac_word=$2
13744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13745 $as_echo_n "checking for $ac_word... " >&6; }
13746 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
13747 $as_echo_n "(cached) " >&6
13748 else
13749 if test -n "$ac_ct_LIPO"; then
13750 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13751 else
13752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13753 for as_dir in $PATH
13754 do
13755 IFS=$as_save_IFS
13756 test -z "$as_dir" && as_dir=.
13757 for ac_exec_ext in '' $ac_executable_extensions; do
13758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13759 ac_cv_prog_ac_ct_LIPO="lipo"
13760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13761 break 2
13762 fi
13763 done
13764 done
13765 IFS=$as_save_IFS
13766
13767 fi
13768 fi
13769 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13770 if test -n "$ac_ct_LIPO"; then
13771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13772 $as_echo "$ac_ct_LIPO" >&6; }
13773 else
13774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13775 $as_echo "no" >&6; }
13776 fi
13777
13778 if test "x$ac_ct_LIPO" = x; then
13779 LIPO=":"
13780 else
13781 case $cross_compiling:$ac_tool_warned in
13782 yes:)
13783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13784 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13785 ac_tool_warned=yes ;;
13786 esac
13787 LIPO=$ac_ct_LIPO
13788 fi
13789 else
13790 LIPO="$ac_cv_prog_LIPO"
13791 fi
13792
13793 if test -n "$ac_tool_prefix"; then
13794 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13795 set dummy ${ac_tool_prefix}otool; ac_word=$2
13796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13797 $as_echo_n "checking for $ac_word... " >&6; }
13798 if ${ac_cv_prog_OTOOL+:} false; then :
13799 $as_echo_n "(cached) " >&6
13800 else
13801 if test -n "$OTOOL"; then
13802 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13803 else
13804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13805 for as_dir in $PATH
13806 do
13807 IFS=$as_save_IFS
13808 test -z "$as_dir" && as_dir=.
13809 for ac_exec_ext in '' $ac_executable_extensions; do
13810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13811 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13813 break 2
13814 fi
13815 done
13816 done
13817 IFS=$as_save_IFS
13818
13819 fi
13820 fi
13821 OTOOL=$ac_cv_prog_OTOOL
13822 if test -n "$OTOOL"; then
13823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13824 $as_echo "$OTOOL" >&6; }
13825 else
13826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13827 $as_echo "no" >&6; }
13828 fi
13829
13830
13831 fi
13832 if test -z "$ac_cv_prog_OTOOL"; then
13833 ac_ct_OTOOL=$OTOOL
13834 # Extract the first word of "otool", so it can be a program name with args.
13835 set dummy otool; ac_word=$2
13836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13837 $as_echo_n "checking for $ac_word... " >&6; }
13838 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
13839 $as_echo_n "(cached) " >&6
13840 else
13841 if test -n "$ac_ct_OTOOL"; then
13842 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13843 else
13844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13845 for as_dir in $PATH
13846 do
13847 IFS=$as_save_IFS
13848 test -z "$as_dir" && as_dir=.
13849 for ac_exec_ext in '' $ac_executable_extensions; do
13850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13851 ac_cv_prog_ac_ct_OTOOL="otool"
13852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13853 break 2
13854 fi
13855 done
13856 done
13857 IFS=$as_save_IFS
13858
13859 fi
13860 fi
13861 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13862 if test -n "$ac_ct_OTOOL"; then
13863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13864 $as_echo "$ac_ct_OTOOL" >&6; }
13865 else
13866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13867 $as_echo "no" >&6; }
13868 fi
13869
13870 if test "x$ac_ct_OTOOL" = x; then
13871 OTOOL=":"
13872 else
13873 case $cross_compiling:$ac_tool_warned in
13874 yes:)
13875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13876 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13877 ac_tool_warned=yes ;;
13878 esac
13879 OTOOL=$ac_ct_OTOOL
13880 fi
13881 else
13882 OTOOL="$ac_cv_prog_OTOOL"
13883 fi
13884
13885 if test -n "$ac_tool_prefix"; then
13886 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13887 set dummy ${ac_tool_prefix}otool64; ac_word=$2
13888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13889 $as_echo_n "checking for $ac_word... " >&6; }
13890 if ${ac_cv_prog_OTOOL64+:} false; then :
13891 $as_echo_n "(cached) " >&6
13892 else
13893 if test -n "$OTOOL64"; then
13894 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13895 else
13896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13897 for as_dir in $PATH
13898 do
13899 IFS=$as_save_IFS
13900 test -z "$as_dir" && as_dir=.
13901 for ac_exec_ext in '' $ac_executable_extensions; do
13902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13903 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13905 break 2
13906 fi
13907 done
13908 done
13909 IFS=$as_save_IFS
13910
13911 fi
13912 fi
13913 OTOOL64=$ac_cv_prog_OTOOL64
13914 if test -n "$OTOOL64"; then
13915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13916 $as_echo "$OTOOL64" >&6; }
13917 else
13918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13919 $as_echo "no" >&6; }
13920 fi
13921
13922
13923 fi
13924 if test -z "$ac_cv_prog_OTOOL64"; then
13925 ac_ct_OTOOL64=$OTOOL64
13926 # Extract the first word of "otool64", so it can be a program name with args.
13927 set dummy otool64; ac_word=$2
13928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13929 $as_echo_n "checking for $ac_word... " >&6; }
13930 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
13931 $as_echo_n "(cached) " >&6
13932 else
13933 if test -n "$ac_ct_OTOOL64"; then
13934 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13935 else
13936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13937 for as_dir in $PATH
13938 do
13939 IFS=$as_save_IFS
13940 test -z "$as_dir" && as_dir=.
13941 for ac_exec_ext in '' $ac_executable_extensions; do
13942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13943 ac_cv_prog_ac_ct_OTOOL64="otool64"
13944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13945 break 2
13946 fi
13947 done
13948 done
13949 IFS=$as_save_IFS
13950
13951 fi
13952 fi
13953 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13954 if test -n "$ac_ct_OTOOL64"; then
13955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13956 $as_echo "$ac_ct_OTOOL64" >&6; }
13957 else
13958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13959 $as_echo "no" >&6; }
13960 fi
13961
13962 if test "x$ac_ct_OTOOL64" = x; then
13963 OTOOL64=":"
13964 else
13965 case $cross_compiling:$ac_tool_warned in
13966 yes:)
13967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13968 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13969 ac_tool_warned=yes ;;
13970 esac
13971 OTOOL64=$ac_ct_OTOOL64
13972 fi
13973 else
13974 OTOOL64="$ac_cv_prog_OTOOL64"
13975 fi
13976
13977
13978
13979
13980
13981
13982
13983
13984
13985
13986
13987
13988
13989
13990
13991
13992
13993
13994
13995
13996
13997
13998
13999
14000
14001
14002
14003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14004 $as_echo_n "checking for -single_module linker flag... " >&6; }
14005 if ${lt_cv_apple_cc_single_mod+:} false; then :
14006 $as_echo_n "(cached) " >&6
14007 else
14008 lt_cv_apple_cc_single_mod=no
14009 if test -z "$LT_MULTI_MODULE"; then
14010 # By default we will add the -single_module flag. You can override
14011 # by either setting the environment variable LT_MULTI_MODULE
14012 # non-empty at configure time, or by adding -multi_module to the
14013 # link flags.
14014 rm -rf libconftest.dylib*
14015 echo "int foo(void){return 1;}" > conftest.c
14016 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14017 -dynamiclib -Wl,-single_module conftest.c" >&5
14018 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14019 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14020 _lt_result=$?
14021 # If there is a non-empty error log, and "single_module"
14022 # appears in it, assume the flag caused a linker warning
14023 if test -s conftest.err && $GREP single_module conftest.err; then
14024 cat conftest.err >&5
14025 # Otherwise, if the output was created with a 0 exit code from
14026 # the compiler, it worked.
14027 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
14028 lt_cv_apple_cc_single_mod=yes
14029 else
14030 cat conftest.err >&5
14031 fi
14032 rm -rf libconftest.dylib*
14033 rm -f conftest.*
14034 fi
14035 fi
14036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14037 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14038
14039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14040 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14041 if ${lt_cv_ld_exported_symbols_list+:} false; then :
14042 $as_echo_n "(cached) " >&6
14043 else
14044 lt_cv_ld_exported_symbols_list=no
14045 save_LDFLAGS=$LDFLAGS
14046 echo "_main" > conftest.sym
14047 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14049 /* end confdefs.h. */
14050
14051 int
14052 main ()
14053 {
14054
14055 ;
14056 return 0;
14057 }
14058 _ACEOF
14059 if ac_fn_c_try_link "$LINENO"; then :
14060 lt_cv_ld_exported_symbols_list=yes
14061 else
14062 lt_cv_ld_exported_symbols_list=no
14063 fi
14064 rm -f core conftest.err conftest.$ac_objext \
14065 conftest$ac_exeext conftest.$ac_ext
14066 LDFLAGS=$save_LDFLAGS
14067
14068 fi
14069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14070 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14071
14072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14073 $as_echo_n "checking for -force_load linker flag... " >&6; }
14074 if ${lt_cv_ld_force_load+:} false; then :
14075 $as_echo_n "(cached) " >&6
14076 else
14077 lt_cv_ld_force_load=no
14078 cat > conftest.c << _LT_EOF
14079 int forced_loaded() { return 2;}
14080 _LT_EOF
14081 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14082 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14083 echo "$AR cru libconftest.a conftest.o" >&5
14084 $AR cru libconftest.a conftest.o 2>&5
14085 echo "$RANLIB libconftest.a" >&5
14086 $RANLIB libconftest.a 2>&5
14087 cat > conftest.c << _LT_EOF
14088 int main() { return 0;}
14089 _LT_EOF
14090 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14091 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14092 _lt_result=$?
14093 if test -s conftest.err && $GREP force_load conftest.err; then
14094 cat conftest.err >&5
14095 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
14096 lt_cv_ld_force_load=yes
14097 else
14098 cat conftest.err >&5
14099 fi
14100 rm -f conftest.err libconftest.a conftest conftest.c
14101 rm -rf conftest.dSYM
14102
14103 fi
14104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14105 $as_echo "$lt_cv_ld_force_load" >&6; }
14106 case $host_os in
14107 rhapsody* | darwin1.[012])
14108 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
14109 darwin1.*)
14110 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
14111 darwin*) # darwin 5.x on
14112 # if running on 10.5 or later, the deployment target defaults
14113 # to the OS version, if on x86, and 10.4, the deployment
14114 # target defaults to 10.4. Don't you love it?
14115 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14116 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14117 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
14118 10.[012][,.]*)
14119 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
14120 10.*)
14121 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
14122 esac
14123 ;;
14124 esac
14125 if test yes = "$lt_cv_apple_cc_single_mod"; then
14126 _lt_dar_single_mod='$single_module'
14127 fi
14128 if test yes = "$lt_cv_ld_exported_symbols_list"; then
14129 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
14130 else
14131 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
14132 fi
14133 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
14134 _lt_dsymutil='~$DSYMUTIL $lib || :'
14135 else
14136 _lt_dsymutil=
14137 fi
14138 ;;
14139 esac
14140
14141 # func_munge_path_list VARIABLE PATH
14142 # -----------------------------------
14143 # VARIABLE is name of variable containing _space_ separated list of
14144 # directories to be munged by the contents of PATH, which is string
14145 # having a format:
14146 # "DIR[:DIR]:"
14147 # string "DIR[ DIR]" will be prepended to VARIABLE
14148 # ":DIR[:DIR]"
14149 # string "DIR[ DIR]" will be appended to VARIABLE
14150 # "DIRP[:DIRP]::[DIRA:]DIRA"
14151 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
14152 # "DIRA[ DIRA]" will be appended to VARIABLE
14153 # "DIR[:DIR]"
14154 # VARIABLE will be replaced by "DIR[ DIR]"
14155 func_munge_path_list ()
14156 {
14157 case x$2 in
14158 x)
14159 ;;
14160 *:)
14161 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
14162 ;;
14163 x:*)
14164 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
14165 ;;
14166 *::*)
14167 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
14168 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
14169 ;;
14170 *)
14171 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
14172 ;;
14173 esac
14174 }
14175
14176 for ac_header in dlfcn.h
14177 do :
14178 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
14179 "
14180 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
14181 cat >>confdefs.h <<_ACEOF
14182 #define HAVE_DLFCN_H 1
14183 _ACEOF
14184
14185 fi
14186
14187 done
14188
14189
14190
14191
14192
14193 # Set options
14194
14195
14196
14197 enable_dlopen=no
14198
14199
14200 enable_win32_dll=no
14201
14202
14203 # Check whether --enable-shared was given.
14204 if test "${enable_shared+set}" = set; then :
14205 enableval=$enable_shared; p=${PACKAGE-default}
14206 case $enableval in
14207 yes) enable_shared=yes ;;
14208 no) enable_shared=no ;;
14209 *)
14210 enable_shared=no
14211 # Look at the argument we got. We use all the common list separators.
14212 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14213 for pkg in $enableval; do
14214 IFS=$lt_save_ifs
14215 if test "X$pkg" = "X$p"; then
14216 enable_shared=yes
14217 fi
14218 done
14219 IFS=$lt_save_ifs
14220 ;;
14221 esac
14222 else
14223 enable_shared=yes
14224 fi
14225
14226
14227
14228
14229
14230
14231
14232
14233
14234
14235
14236 # Check whether --with-pic was given.
14237 if test "${with_pic+set}" = set; then :
14238 withval=$with_pic; lt_p=${PACKAGE-default}
14239 case $withval in
14240 yes|no) pic_mode=$withval ;;
14241 *)
14242 pic_mode=default
14243 # Look at the argument we got. We use all the common list separators.
14244 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14245 for lt_pkg in $withval; do
14246 IFS=$lt_save_ifs
14247 if test "X$lt_pkg" = "X$lt_p"; then
14248 pic_mode=yes
14249 fi
14250 done
14251 IFS=$lt_save_ifs
14252 ;;
14253 esac
14254 else
14255 pic_mode=default
14256 fi
14257
14258
14259
14260
14261
14262
14263
14264
14265 # Check whether --enable-fast-install was given.
14266 if test "${enable_fast_install+set}" = set; then :
14267 enableval=$enable_fast_install; p=${PACKAGE-default}
14268 case $enableval in
14269 yes) enable_fast_install=yes ;;
14270 no) enable_fast_install=no ;;
14271 *)
14272 enable_fast_install=no
14273 # Look at the argument we got. We use all the common list separators.
14274 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14275 for pkg in $enableval; do
14276 IFS=$lt_save_ifs
14277 if test "X$pkg" = "X$p"; then
14278 enable_fast_install=yes
14279 fi
14280 done
14281 IFS=$lt_save_ifs
14282 ;;
14283 esac
14284 else
14285 enable_fast_install=yes
14286 fi
14287
14288
14289
14290
14291
14292
14293
14294
14295 shared_archive_member_spec=
14296 case $host,$enable_shared in
14297 power*-*-aix[5-9]*,yes)
14298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
14299 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
14300
14301 # Check whether --with-aix-soname was given.
14302 if test "${with_aix_soname+set}" = set; then :
14303 withval=$with_aix_soname; case $withval in
14304 aix|svr4|both)
14305 ;;
14306 *)
14307 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
14308 ;;
14309 esac
14310 lt_cv_with_aix_soname=$with_aix_soname
14311 else
14312 if ${lt_cv_with_aix_soname+:} false; then :
14313 $as_echo_n "(cached) " >&6
14314 else
14315 lt_cv_with_aix_soname=aix
14316 fi
14317
14318 with_aix_soname=$lt_cv_with_aix_soname
14319 fi
14320
14321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
14322 $as_echo "$with_aix_soname" >&6; }
14323 if test aix != "$with_aix_soname"; then
14324 # For the AIX way of multilib, we name the shared archive member
14325 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
14326 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
14327 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
14328 # the AIX toolchain works better with OBJECT_MODE set (default 32).
14329 if test 64 = "${OBJECT_MODE-32}"; then
14330 shared_archive_member_spec=shr_64
14331 else
14332 shared_archive_member_spec=shr
14333 fi
14334 fi
14335 ;;
14336 *)
14337 with_aix_soname=aix
14338 ;;
14339 esac
14340
14341
14342
14343
14344
14345
14346
14347
14348
14349
14350 # This can be used to rebuild libtool when needed
14351 LIBTOOL_DEPS=$ltmain
14352
14353 # Always use our own libtool.
14354 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14355
14356
14357
14358
14359
14360
14361
14362
14363
14364
14365
14366
14367
14368
14369
14370
14371
14372
14373
14374
14375
14376
14377
14378
14379
14380
14381
14382
14383
14384
14385 test -z "$LN_S" && LN_S="ln -s"
14386
14387
14388
14389
14390
14391
14392
14393
14394
14395
14396
14397
14398
14399
14400 if test -n "${ZSH_VERSION+set}"; then
14401 setopt NO_GLOB_SUBST
14402 fi
14403
14404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14405 $as_echo_n "checking for objdir... " >&6; }
14406 if ${lt_cv_objdir+:} false; then :
14407 $as_echo_n "(cached) " >&6
14408 else
14409 rm -f .libs 2>/dev/null
14410 mkdir .libs 2>/dev/null
14411 if test -d .libs; then
14412 lt_cv_objdir=.libs
14413 else
14414 # MS-DOS does not allow filenames that begin with a dot.
14415 lt_cv_objdir=_libs
14416 fi
14417 rmdir .libs 2>/dev/null
14418 fi
14419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14420 $as_echo "$lt_cv_objdir" >&6; }
14421 objdir=$lt_cv_objdir
14422
14423
14424
14425
14426
14427 cat >>confdefs.h <<_ACEOF
14428 #define LT_OBJDIR "$lt_cv_objdir/"
14429 _ACEOF
14430
14431
14432
14433
14434 case $host_os in
14435 aix3*)
14436 # AIX sometimes has problems with the GCC collect2 program. For some
14437 # reason, if we set the COLLECT_NAMES environment variable, the problems
14438 # vanish in a puff of smoke.
14439 if test set != "${COLLECT_NAMES+set}"; then
14440 COLLECT_NAMES=
14441 export COLLECT_NAMES
14442 fi
14443 ;;
14444 esac
14445
14446 # Global variables:
14447 ofile=libtool
14448 can_build_shared=yes
14449
14450 # All known linkers require a '.a' archive for static linking (except MSVC,
14451 # which needs '.lib').
14452 libext=a
14453
14454 with_gnu_ld=$lt_cv_prog_gnu_ld
14455
14456 old_CC=$CC
14457 old_CFLAGS=$CFLAGS
14458
14459 # Set sane defaults for various variables
14460 test -z "$CC" && CC=cc
14461 test -z "$LTCC" && LTCC=$CC
14462 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14463 test -z "$LD" && LD=ld
14464 test -z "$ac_objext" && ac_objext=o
14465
14466 func_cc_basename $compiler
14467 cc_basename=$func_cc_basename_result
14468
14469
14470 # Only perform the check for file, if the check method requires it
14471 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14472 case $deplibs_check_method in
14473 file_magic*)
14474 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14476 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14477 if ${lt_cv_path_MAGIC_CMD+:} false; then :
14478 $as_echo_n "(cached) " >&6
14479 else
14480 case $MAGIC_CMD in
14481 [\\/*] | ?:[\\/]*)
14482 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
14483 ;;
14484 *)
14485 lt_save_MAGIC_CMD=$MAGIC_CMD
14486 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14487 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14488 for ac_dir in $ac_dummy; do
14489 IFS=$lt_save_ifs
14490 test -z "$ac_dir" && ac_dir=.
14491 if test -f "$ac_dir/${ac_tool_prefix}file"; then
14492 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
14493 if test -n "$file_magic_test_file"; then
14494 case $deplibs_check_method in
14495 "file_magic "*)
14496 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14497 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14498 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14499 $EGREP "$file_magic_regex" > /dev/null; then
14500 :
14501 else
14502 cat <<_LT_EOF 1>&2
14503
14504 *** Warning: the command libtool uses to detect shared libraries,
14505 *** $file_magic_cmd, produces output that libtool cannot recognize.
14506 *** The result is that libtool may fail to recognize shared libraries
14507 *** as such. This will affect the creation of libtool libraries that
14508 *** depend on shared libraries, but programs linked with such libtool
14509 *** libraries will work regardless of this problem. Nevertheless, you
14510 *** may want to report the problem to your system manager and/or to
14511 *** bug-libtool (at] gnu.org
14512
14513 _LT_EOF
14514 fi ;;
14515 esac
14516 fi
14517 break
14518 fi
14519 done
14520 IFS=$lt_save_ifs
14521 MAGIC_CMD=$lt_save_MAGIC_CMD
14522 ;;
14523 esac
14524 fi
14525
14526 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14527 if test -n "$MAGIC_CMD"; then
14528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14529 $as_echo "$MAGIC_CMD" >&6; }
14530 else
14531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14532 $as_echo "no" >&6; }
14533 fi
14534
14535
14536
14537
14538
14539 if test -z "$lt_cv_path_MAGIC_CMD"; then
14540 if test -n "$ac_tool_prefix"; then
14541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14542 $as_echo_n "checking for file... " >&6; }
14543 if ${lt_cv_path_MAGIC_CMD+:} false; then :
14544 $as_echo_n "(cached) " >&6
14545 else
14546 case $MAGIC_CMD in
14547 [\\/*] | ?:[\\/]*)
14548 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
14549 ;;
14550 *)
14551 lt_save_MAGIC_CMD=$MAGIC_CMD
14552 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14553 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14554 for ac_dir in $ac_dummy; do
14555 IFS=$lt_save_ifs
14556 test -z "$ac_dir" && ac_dir=.
14557 if test -f "$ac_dir/file"; then
14558 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
14559 if test -n "$file_magic_test_file"; then
14560 case $deplibs_check_method in
14561 "file_magic "*)
14562 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14563 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14564 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14565 $EGREP "$file_magic_regex" > /dev/null; then
14566 :
14567 else
14568 cat <<_LT_EOF 1>&2
14569
14570 *** Warning: the command libtool uses to detect shared libraries,
14571 *** $file_magic_cmd, produces output that libtool cannot recognize.
14572 *** The result is that libtool may fail to recognize shared libraries
14573 *** as such. This will affect the creation of libtool libraries that
14574 *** depend on shared libraries, but programs linked with such libtool
14575 *** libraries will work regardless of this problem. Nevertheless, you
14576 *** may want to report the problem to your system manager and/or to
14577 *** bug-libtool (at] gnu.org
14578
14579 _LT_EOF
14580 fi ;;
14581 esac
14582 fi
14583 break
14584 fi
14585 done
14586 IFS=$lt_save_ifs
14587 MAGIC_CMD=$lt_save_MAGIC_CMD
14588 ;;
14589 esac
14590 fi
14591
14592 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14593 if test -n "$MAGIC_CMD"; then
14594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14595 $as_echo "$MAGIC_CMD" >&6; }
14596 else
14597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14598 $as_echo "no" >&6; }
14599 fi
14600
14601
14602 else
14603 MAGIC_CMD=:
14604 fi
14605 fi
14606
14607 fi
14608 ;;
14609 esac
14610
14611 # Use C for the default configuration in the libtool script
14612
14613 lt_save_CC=$CC
14614 ac_ext=c
14615 ac_cpp='$CPP $CPPFLAGS'
14616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14619
14620
14621 # Source file extension for C test sources.
14622 ac_ext=c
14623
14624 # Object file extension for compiled C test sources.
14625 objext=o
14626 objext=$objext
14627
14628 # Code to be used in simple compile tests
14629 lt_simple_compile_test_code="int some_variable = 0;"
14630
14631 # Code to be used in simple link tests
14632 lt_simple_link_test_code='int main(){return(0);}'
14633
14634
14635
14636
14637
14638
14639
14640 # If no C compiler was specified, use CC.
14641 LTCC=${LTCC-"$CC"}
14642
14643 # If no C compiler flags were specified, use CFLAGS.
14644 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14645
14646 # Allow CC to be a program name with arguments.
14647 compiler=$CC
14648
14649 # Save the default compiler, since it gets overwritten when the other
14650 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14651 compiler_DEFAULT=$CC
14652
14653 # save warnings/boilerplate of simple test code
14654 ac_outfile=conftest.$ac_objext
14655 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14656 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14657 _lt_compiler_boilerplate=`cat conftest.err`
14658 $RM conftest*
14659
14660 ac_outfile=conftest.$ac_objext
14661 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14662 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14663 _lt_linker_boilerplate=`cat conftest.err`
14664 $RM -r conftest*
14665
14666
14667 if test -n "$compiler"; then
14668
14669 lt_prog_compiler_no_builtin_flag=
14670
14671 if test yes = "$GCC"; then
14672 case $cc_basename in
14673 nvcc*)
14674 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14675 *)
14676 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14677 esac
14678
14679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14680 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14681 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
14682 $as_echo_n "(cached) " >&6
14683 else
14684 lt_cv_prog_compiler_rtti_exceptions=no
14685 ac_outfile=conftest.$ac_objext
14686 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14687 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
14688 # Insert the option either (1) after the last *FLAGS variable, or
14689 # (2) before a word containing "conftest.", or (3) at the end.
14690 # Note that $ac_compile itself does not contain backslashes and begins
14691 # with a dollar sign (not a hyphen), so the echo should work correctly.
14692 # The option is referenced via a variable to avoid confusing sed.
14693 lt_compile=`echo "$ac_compile" | $SED \
14694 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14695 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14696 -e 's:$: $lt_compiler_flag:'`
14697 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14698 (eval "$lt_compile" 2>conftest.err)
14699 ac_status=$?
14700 cat conftest.err >&5
14701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14702 if (exit $ac_status) && test -s "$ac_outfile"; then
14703 # The compiler can only warn and ignore the option if not recognized
14704 # So say no if there are warnings other than the usual output.
14705 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14706 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14707 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14708 lt_cv_prog_compiler_rtti_exceptions=yes
14709 fi
14710 fi
14711 $RM conftest*
14712
14713 fi
14714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14715 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14716
14717 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
14718 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14719 else
14720 :
14721 fi
14722
14723 fi
14724
14725
14726
14727
14728
14729
14730 lt_prog_compiler_wl=
14731 lt_prog_compiler_pic=
14732 lt_prog_compiler_static=
14733
14734
14735 if test yes = "$GCC"; then
14736 lt_prog_compiler_wl='-Wl,'
14737 lt_prog_compiler_static='-static'
14738
14739 case $host_os in
14740 aix*)
14741 # All AIX code is PIC.
14742 if test ia64 = "$host_cpu"; then
14743 # AIX 5 now supports IA64 processor
14744 lt_prog_compiler_static='-Bstatic'
14745 fi
14746 lt_prog_compiler_pic='-fPIC'
14747 ;;
14748
14749 amigaos*)
14750 case $host_cpu in
14751 powerpc)
14752 # see comment about AmigaOS4 .so support
14753 lt_prog_compiler_pic='-fPIC'
14754 ;;
14755 m68k)
14756 # FIXME: we need at least 68020 code to build shared libraries, but
14757 # adding the '-m68020' flag to GCC prevents building anything better,
14758 # like '-m68040'.
14759 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14760 ;;
14761 esac
14762 ;;
14763
14764 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14765 # PIC is the default for these OSes.
14766 ;;
14767
14768 mingw* | cygwin* | pw32* | os2* | cegcc*)
14769 # This hack is so that the source file can tell whether it is being
14770 # built for inclusion in a dll (and should export symbols for example).
14771 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14772 # (--disable-auto-import) libraries
14773 lt_prog_compiler_pic='-DDLL_EXPORT'
14774 case $host_os in
14775 os2*)
14776 lt_prog_compiler_static='$wl-static'
14777 ;;
14778 esac
14779 ;;
14780
14781 darwin* | rhapsody*)
14782 # PIC is the default on this platform
14783 # Common symbols not allowed in MH_DYLIB files
14784 lt_prog_compiler_pic='-fno-common'
14785 ;;
14786
14787 haiku*)
14788 # PIC is the default for Haiku.
14789 # The "-static" flag exists, but is broken.
14790 lt_prog_compiler_static=
14791 ;;
14792
14793 hpux*)
14794 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14795 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14796 # sets the default TLS model and affects inlining.
14797 case $host_cpu in
14798 hppa*64*)
14799 # +Z the default
14800 ;;
14801 *)
14802 lt_prog_compiler_pic='-fPIC'
14803 ;;
14804 esac
14805 ;;
14806
14807 interix[3-9]*)
14808 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14809 # Instead, we relocate shared libraries at runtime.
14810 ;;
14811
14812 msdosdjgpp*)
14813 # Just because we use GCC doesn't mean we suddenly get shared libraries
14814 # on systems that don't support them.
14815 lt_prog_compiler_can_build_shared=no
14816 enable_shared=no
14817 ;;
14818
14819 *nto* | *qnx*)
14820 # QNX uses GNU C++, but need to define -shared option too, otherwise
14821 # it will coredump.
14822 lt_prog_compiler_pic='-fPIC -shared'
14823 ;;
14824
14825 sysv4*MP*)
14826 if test -d /usr/nec; then
14827 lt_prog_compiler_pic=-Kconform_pic
14828 fi
14829 ;;
14830
14831 *)
14832 lt_prog_compiler_pic='-fPIC'
14833 ;;
14834 esac
14835
14836 case $cc_basename in
14837 nvcc*) # Cuda Compiler Driver 2.2
14838 lt_prog_compiler_wl='-Xlinker '
14839 if test -n "$lt_prog_compiler_pic"; then
14840 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14841 fi
14842 ;;
14843 esac
14844 else
14845 # PORTME Check for flag to pass linker flags through the system compiler.
14846 case $host_os in
14847 aix*)
14848 lt_prog_compiler_wl='-Wl,'
14849 if test ia64 = "$host_cpu"; then
14850 # AIX 5 now supports IA64 processor
14851 lt_prog_compiler_static='-Bstatic'
14852 else
14853 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14854 fi
14855 ;;
14856
14857 darwin* | rhapsody*)
14858 # PIC is the default on this platform
14859 # Common symbols not allowed in MH_DYLIB files
14860 lt_prog_compiler_pic='-fno-common'
14861 case $cc_basename in
14862 nagfor*)
14863 # NAG Fortran compiler
14864 lt_prog_compiler_wl='-Wl,-Wl,,'
14865 lt_prog_compiler_pic='-PIC'
14866 lt_prog_compiler_static='-Bstatic'
14867 ;;
14868 esac
14869 ;;
14870
14871 mingw* | cygwin* | pw32* | os2* | cegcc*)
14872 # This hack is so that the source file can tell whether it is being
14873 # built for inclusion in a dll (and should export symbols for example).
14874 lt_prog_compiler_pic='-DDLL_EXPORT'
14875 case $host_os in
14876 os2*)
14877 lt_prog_compiler_static='$wl-static'
14878 ;;
14879 esac
14880 ;;
14881
14882 hpux9* | hpux10* | hpux11*)
14883 lt_prog_compiler_wl='-Wl,'
14884 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14885 # not for PA HP-UX.
14886 case $host_cpu in
14887 hppa*64*|ia64*)
14888 # +Z the default
14889 ;;
14890 *)
14891 lt_prog_compiler_pic='+Z'
14892 ;;
14893 esac
14894 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14895 lt_prog_compiler_static='$wl-a ${wl}archive'
14896 ;;
14897
14898 irix5* | irix6* | nonstopux*)
14899 lt_prog_compiler_wl='-Wl,'
14900 # PIC (with -KPIC) is the default.
14901 lt_prog_compiler_static='-non_shared'
14902 ;;
14903
14904 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14905 case $cc_basename in
14906 # old Intel for x86_64, which still supported -KPIC.
14907 ecc*)
14908 lt_prog_compiler_wl='-Wl,'
14909 lt_prog_compiler_pic='-KPIC'
14910 lt_prog_compiler_static='-static'
14911 ;;
14912 # icc used to be incompatible with GCC.
14913 # ICC 10 doesn't accept -KPIC any more.
14914 icc* | ifort*)
14915 lt_prog_compiler_wl='-Wl,'
14916 lt_prog_compiler_pic='-fPIC'
14917 lt_prog_compiler_static='-static'
14918 ;;
14919 # Lahey Fortran 8.1.
14920 lf95*)
14921 lt_prog_compiler_wl='-Wl,'
14922 lt_prog_compiler_pic='--shared'
14923 lt_prog_compiler_static='--static'
14924 ;;
14925 nagfor*)
14926 # NAG Fortran compiler
14927 lt_prog_compiler_wl='-Wl,-Wl,,'
14928 lt_prog_compiler_pic='-PIC'
14929 lt_prog_compiler_static='-Bstatic'
14930 ;;
14931 tcc*)
14932 # Fabrice Bellard et al's Tiny C Compiler
14933 lt_prog_compiler_wl='-Wl,'
14934 lt_prog_compiler_pic='-fPIC'
14935 lt_prog_compiler_static='-static'
14936 ;;
14937 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14938 # Portland Group compilers (*not* the Pentium gcc compiler,
14939 # which looks to be a dead project)
14940 lt_prog_compiler_wl='-Wl,'
14941 lt_prog_compiler_pic='-fpic'
14942 lt_prog_compiler_static='-Bstatic'
14943 ;;
14944 ccc*)
14945 lt_prog_compiler_wl='-Wl,'
14946 # All Alpha code is PIC.
14947 lt_prog_compiler_static='-non_shared'
14948 ;;
14949 xl* | bgxl* | bgf* | mpixl*)
14950 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14951 lt_prog_compiler_wl='-Wl,'
14952 lt_prog_compiler_pic='-qpic'
14953 lt_prog_compiler_static='-qstaticlink'
14954 ;;
14955 *)
14956 case `$CC -V 2>&1 | sed 5q` in
14957 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
14958 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14959 lt_prog_compiler_pic='-KPIC'
14960 lt_prog_compiler_static='-Bstatic'
14961 lt_prog_compiler_wl=''
14962 ;;
14963 *Sun\ F* | *Sun*Fortran*)
14964 lt_prog_compiler_pic='-KPIC'
14965 lt_prog_compiler_static='-Bstatic'
14966 lt_prog_compiler_wl='-Qoption ld '
14967 ;;
14968 *Sun\ C*)
14969 # Sun C 5.9
14970 lt_prog_compiler_pic='-KPIC'
14971 lt_prog_compiler_static='-Bstatic'
14972 lt_prog_compiler_wl='-Wl,'
14973 ;;
14974 *Intel*\ [CF]*Compiler*)
14975 lt_prog_compiler_wl='-Wl,'
14976 lt_prog_compiler_pic='-fPIC'
14977 lt_prog_compiler_static='-static'
14978 ;;
14979 *Portland\ Group*)
14980 lt_prog_compiler_wl='-Wl,'
14981 lt_prog_compiler_pic='-fpic'
14982 lt_prog_compiler_static='-Bstatic'
14983 ;;
14984 esac
14985 ;;
14986 esac
14987 ;;
14988
14989 newsos6)
14990 lt_prog_compiler_pic='-KPIC'
14991 lt_prog_compiler_static='-Bstatic'
14992 ;;
14993
14994 *nto* | *qnx*)
14995 # QNX uses GNU C++, but need to define -shared option too, otherwise
14996 # it will coredump.
14997 lt_prog_compiler_pic='-fPIC -shared'
14998 ;;
14999
15000 osf3* | osf4* | osf5*)
15001 lt_prog_compiler_wl='-Wl,'
15002 # All OSF/1 code is PIC.
15003 lt_prog_compiler_static='-non_shared'
15004 ;;
15005
15006 rdos*)
15007 lt_prog_compiler_static='-non_shared'
15008 ;;
15009
15010 solaris*)
15011 lt_prog_compiler_pic='-KPIC'
15012 lt_prog_compiler_static='-Bstatic'
15013 case $cc_basename in
15014 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
15015 lt_prog_compiler_wl='-Qoption ld ';;
15016 *)
15017 lt_prog_compiler_wl='-Wl,';;
15018 esac
15019 ;;
15020
15021 sunos4*)
15022 lt_prog_compiler_wl='-Qoption ld '
15023 lt_prog_compiler_pic='-PIC'
15024 lt_prog_compiler_static='-Bstatic'
15025 ;;
15026
15027 sysv4 | sysv4.2uw2* | sysv4.3*)
15028 lt_prog_compiler_wl='-Wl,'
15029 lt_prog_compiler_pic='-KPIC'
15030 lt_prog_compiler_static='-Bstatic'
15031 ;;
15032
15033 sysv4*MP*)
15034 if test -d /usr/nec; then
15035 lt_prog_compiler_pic='-Kconform_pic'
15036 lt_prog_compiler_static='-Bstatic'
15037 fi
15038 ;;
15039
15040 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15041 lt_prog_compiler_wl='-Wl,'
15042 lt_prog_compiler_pic='-KPIC'
15043 lt_prog_compiler_static='-Bstatic'
15044 ;;
15045
15046 unicos*)
15047 lt_prog_compiler_wl='-Wl,'
15048 lt_prog_compiler_can_build_shared=no
15049 ;;
15050
15051 uts4*)
15052 lt_prog_compiler_pic='-pic'
15053 lt_prog_compiler_static='-Bstatic'
15054 ;;
15055
15056 *)
15057 lt_prog_compiler_can_build_shared=no
15058 ;;
15059 esac
15060 fi
15061
15062 case $host_os in
15063 # For platforms that do not support PIC, -DPIC is meaningless:
15064 *djgpp*)
15065 lt_prog_compiler_pic=
15066 ;;
15067 *)
15068 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15069 ;;
15070 esac
15071
15072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15073 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15074 if ${lt_cv_prog_compiler_pic+:} false; then :
15075 $as_echo_n "(cached) " >&6
15076 else
15077 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
15078 fi
15079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
15080 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
15081 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
15082
15083 #
15084 # Check to make sure the PIC flag actually works.
15085 #
15086 if test -n "$lt_prog_compiler_pic"; then
15087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15088 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15089 if ${lt_cv_prog_compiler_pic_works+:} false; then :
15090 $as_echo_n "(cached) " >&6
15091 else
15092 lt_cv_prog_compiler_pic_works=no
15093 ac_outfile=conftest.$ac_objext
15094 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15095 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
15096 # Insert the option either (1) after the last *FLAGS variable, or
15097 # (2) before a word containing "conftest.", or (3) at the end.
15098 # Note that $ac_compile itself does not contain backslashes and begins
15099 # with a dollar sign (not a hyphen), so the echo should work correctly.
15100 # The option is referenced via a variable to avoid confusing sed.
15101 lt_compile=`echo "$ac_compile" | $SED \
15102 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15103 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15104 -e 's:$: $lt_compiler_flag:'`
15105 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15106 (eval "$lt_compile" 2>conftest.err)
15107 ac_status=$?
15108 cat conftest.err >&5
15109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15110 if (exit $ac_status) && test -s "$ac_outfile"; then
15111 # The compiler can only warn and ignore the option if not recognized
15112 # So say no if there are warnings other than the usual output.
15113 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15114 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15115 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15116 lt_cv_prog_compiler_pic_works=yes
15117 fi
15118 fi
15119 $RM conftest*
15120
15121 fi
15122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15123 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15124
15125 if test yes = "$lt_cv_prog_compiler_pic_works"; then
15126 case $lt_prog_compiler_pic in
15127 "" | " "*) ;;
15128 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15129 esac
15130 else
15131 lt_prog_compiler_pic=
15132 lt_prog_compiler_can_build_shared=no
15133 fi
15134
15135 fi
15136
15137
15138
15139
15140
15141
15142
15143
15144
15145
15146
15147 #
15148 # Check to make sure the static flag actually works.
15149 #
15150 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15152 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15153 if ${lt_cv_prog_compiler_static_works+:} false; then :
15154 $as_echo_n "(cached) " >&6
15155 else
15156 lt_cv_prog_compiler_static_works=no
15157 save_LDFLAGS=$LDFLAGS
15158 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15159 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15160 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15161 # The linker can only warn and ignore the option if not recognized
15162 # So say no if there are warnings
15163 if test -s conftest.err; then
15164 # Append any errors to the config.log.
15165 cat conftest.err 1>&5
15166 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15167 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15168 if diff conftest.exp conftest.er2 >/dev/null; then
15169 lt_cv_prog_compiler_static_works=yes
15170 fi
15171 else
15172 lt_cv_prog_compiler_static_works=yes
15173 fi
15174 fi
15175 $RM -r conftest*
15176 LDFLAGS=$save_LDFLAGS
15177
15178 fi
15179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15180 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15181
15182 if test yes = "$lt_cv_prog_compiler_static_works"; then
15183 :
15184 else
15185 lt_prog_compiler_static=
15186 fi
15187
15188
15189
15190
15191
15192
15193
15194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15195 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15196 if ${lt_cv_prog_compiler_c_o+:} false; then :
15197 $as_echo_n "(cached) " >&6
15198 else
15199 lt_cv_prog_compiler_c_o=no
15200 $RM -r conftest 2>/dev/null
15201 mkdir conftest
15202 cd conftest
15203 mkdir out
15204 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15205
15206 lt_compiler_flag="-o out/conftest2.$ac_objext"
15207 # Insert the option either (1) after the last *FLAGS variable, or
15208 # (2) before a word containing "conftest.", or (3) at the end.
15209 # Note that $ac_compile itself does not contain backslashes and begins
15210 # with a dollar sign (not a hyphen), so the echo should work correctly.
15211 lt_compile=`echo "$ac_compile" | $SED \
15212 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15213 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15214 -e 's:$: $lt_compiler_flag:'`
15215 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15216 (eval "$lt_compile" 2>out/conftest.err)
15217 ac_status=$?
15218 cat out/conftest.err >&5
15219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15220 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15221 then
15222 # The compiler can only warn and ignore the option if not recognized
15223 # So say no if there are warnings
15224 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15225 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15226 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15227 lt_cv_prog_compiler_c_o=yes
15228 fi
15229 fi
15230 chmod u+w . 2>&5
15231 $RM conftest*
15232 # SGI C++ compiler will create directory out/ii_files/ for
15233 # template instantiation
15234 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15235 $RM out/* && rmdir out
15236 cd ..
15237 $RM -r conftest
15238 $RM conftest*
15239
15240 fi
15241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15242 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15243
15244
15245
15246
15247
15248
15249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15250 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15251 if ${lt_cv_prog_compiler_c_o+:} false; then :
15252 $as_echo_n "(cached) " >&6
15253 else
15254 lt_cv_prog_compiler_c_o=no
15255 $RM -r conftest 2>/dev/null
15256 mkdir conftest
15257 cd conftest
15258 mkdir out
15259 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15260
15261 lt_compiler_flag="-o out/conftest2.$ac_objext"
15262 # Insert the option either (1) after the last *FLAGS variable, or
15263 # (2) before a word containing "conftest.", or (3) at the end.
15264 # Note that $ac_compile itself does not contain backslashes and begins
15265 # with a dollar sign (not a hyphen), so the echo should work correctly.
15266 lt_compile=`echo "$ac_compile" | $SED \
15267 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15268 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15269 -e 's:$: $lt_compiler_flag:'`
15270 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15271 (eval "$lt_compile" 2>out/conftest.err)
15272 ac_status=$?
15273 cat out/conftest.err >&5
15274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15275 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15276 then
15277 # The compiler can only warn and ignore the option if not recognized
15278 # So say no if there are warnings
15279 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15280 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15281 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15282 lt_cv_prog_compiler_c_o=yes
15283 fi
15284 fi
15285 chmod u+w . 2>&5
15286 $RM conftest*
15287 # SGI C++ compiler will create directory out/ii_files/ for
15288 # template instantiation
15289 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15290 $RM out/* && rmdir out
15291 cd ..
15292 $RM -r conftest
15293 $RM conftest*
15294
15295 fi
15296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15297 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15298
15299
15300
15301
15302 hard_links=nottested
15303 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
15304 # do not overwrite the value of need_locks provided by the user
15305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15306 $as_echo_n "checking if we can lock with hard links... " >&6; }
15307 hard_links=yes
15308 $RM conftest*
15309 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15310 touch conftest.a
15311 ln conftest.a conftest.b 2>&5 || hard_links=no
15312 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15314 $as_echo "$hard_links" >&6; }
15315 if test no = "$hard_links"; then
15316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15317 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
15318 need_locks=warn
15319 fi
15320 else
15321 need_locks=no
15322 fi
15323
15324
15325
15326
15327
15328
15329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15330 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15331
15332 runpath_var=
15333 allow_undefined_flag=
15334 always_export_symbols=no
15335 archive_cmds=
15336 archive_expsym_cmds=
15337 compiler_needs_object=no
15338 enable_shared_with_static_runtimes=no
15339 export_dynamic_flag_spec=
15340 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15341 hardcode_automatic=no
15342 hardcode_direct=no
15343 hardcode_direct_absolute=no
15344 hardcode_libdir_flag_spec=
15345 hardcode_libdir_separator=
15346 hardcode_minus_L=no
15347 hardcode_shlibpath_var=unsupported
15348 inherit_rpath=no
15349 link_all_deplibs=unknown
15350 module_cmds=
15351 module_expsym_cmds=
15352 old_archive_from_new_cmds=
15353 old_archive_from_expsyms_cmds=
15354 thread_safe_flag_spec=
15355 whole_archive_flag_spec=
15356 # include_expsyms should be a list of space-separated symbols to be *always*
15357 # included in the symbol list
15358 include_expsyms=
15359 # exclude_expsyms can be an extended regexp of symbols to exclude
15360 # it will be wrapped by ' (' and ')$', so one must not match beginning or
15361 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
15362 # as well as any symbol that contains 'd'.
15363 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15364 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15365 # platforms (ab)use it in PIC code, but their linkers get confused if
15366 # the symbol is explicitly referenced. Since portable code cannot
15367 # rely on this symbol name, it's probably fine to never include it in
15368 # preloaded symbol tables.
15369 # Exclude shared library initialization/finalization symbols.
15370 extract_expsyms_cmds=
15371
15372 case $host_os in
15373 cygwin* | mingw* | pw32* | cegcc*)
15374 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15375 # When not using gcc, we currently assume that we are using
15376 # Microsoft Visual C++.
15377 if test yes != "$GCC"; then
15378 with_gnu_ld=no
15379 fi
15380 ;;
15381 interix*)
15382 # we just hope/assume this is gcc and not c89 (= MSVC++)
15383 with_gnu_ld=yes
15384 ;;
15385 openbsd* | bitrig*)
15386 with_gnu_ld=no
15387 ;;
15388 linux* | k*bsd*-gnu | gnu*)
15389 link_all_deplibs=no
15390 ;;
15391 esac
15392
15393 ld_shlibs=yes
15394
15395 # On some targets, GNU ld is compatible enough with the native linker
15396 # that we're better off using the native interface for both.
15397 lt_use_gnu_ld_interface=no
15398 if test yes = "$with_gnu_ld"; then
15399 case $host_os in
15400 aix*)
15401 # The AIX port of GNU ld has always aspired to compatibility
15402 # with the native linker. However, as the warning in the GNU ld
15403 # block says, versions before 2.19.5* couldn't really create working
15404 # shared libraries, regardless of the interface used.
15405 case `$LD -v 2>&1` in
15406 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15407 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15408 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15409 *)
15410 lt_use_gnu_ld_interface=yes
15411 ;;
15412 esac
15413 ;;
15414 *)
15415 lt_use_gnu_ld_interface=yes
15416 ;;
15417 esac
15418 fi
15419
15420 if test yes = "$lt_use_gnu_ld_interface"; then
15421 # If archive_cmds runs LD, not CC, wlarc should be empty
15422 wlarc='$wl'
15423
15424 # Set some defaults for GNU ld with shared library support. These
15425 # are reset later if shared libraries are not supported. Putting them
15426 # here allows them to be overridden if necessary.
15427 runpath_var=LD_RUN_PATH
15428 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15429 export_dynamic_flag_spec='$wl--export-dynamic'
15430 # ancient GNU ld didn't support --whole-archive et. al.
15431 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15432 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15433 else
15434 whole_archive_flag_spec=
15435 fi
15436 supports_anon_versioning=no
15437 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
15438 *GNU\ gold*) supports_anon_versioning=yes ;;
15439 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15440 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15441 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15442 *\ 2.11.*) ;; # other 2.11 versions
15443 *) supports_anon_versioning=yes ;;
15444 esac
15445
15446 # See if GNU ld supports shared libraries.
15447 case $host_os in
15448 aix[3-9]*)
15449 # On AIX/PPC, the GNU linker is very broken
15450 if test ia64 != "$host_cpu"; then
15451 ld_shlibs=no
15452 cat <<_LT_EOF 1>&2
15453
15454 *** Warning: the GNU linker, at least up to release 2.19, is reported
15455 *** to be unable to reliably create shared libraries on AIX.
15456 *** Therefore, libtool is disabling shared libraries support. If you
15457 *** really care for shared libraries, you may want to install binutils
15458 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15459 *** You will then need to restart the configuration process.
15460
15461 _LT_EOF
15462 fi
15463 ;;
15464
15465 amigaos*)
15466 case $host_cpu in
15467 powerpc)
15468 # see comment about AmigaOS4 .so support
15469 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15470 archive_expsym_cmds=''
15471 ;;
15472 m68k)
15473 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)'
15474 hardcode_libdir_flag_spec='-L$libdir'
15475 hardcode_minus_L=yes
15476 ;;
15477 esac
15478 ;;
15479
15480 beos*)
15481 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15482 allow_undefined_flag=unsupported
15483 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
15484 # support --undefined. This deserves some investigation. FIXME
15485 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15486 else
15487 ld_shlibs=no
15488 fi
15489 ;;
15490
15491 cygwin* | mingw* | pw32* | cegcc*)
15492 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15493 # as there is no search path for DLLs.
15494 hardcode_libdir_flag_spec='-L$libdir'
15495 export_dynamic_flag_spec='$wl--export-all-symbols'
15496 allow_undefined_flag=unsupported
15497 always_export_symbols=no
15498 enable_shared_with_static_runtimes=yes
15499 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'
15500 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15501
15502 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15503 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15504 # If the export-symbols file already is a .def file, use it as
15505 # is; otherwise, prepend EXPORTS...
15506 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
15507 cp $export_symbols $output_objdir/$soname.def;
15508 else
15509 echo EXPORTS > $output_objdir/$soname.def;
15510 cat $export_symbols >> $output_objdir/$soname.def;
15511 fi~
15512 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15513 else
15514 ld_shlibs=no
15515 fi
15516 ;;
15517
15518 haiku*)
15519 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15520 link_all_deplibs=yes
15521 ;;
15522
15523 os2*)
15524 hardcode_libdir_flag_spec='-L$libdir'
15525 hardcode_minus_L=yes
15526 allow_undefined_flag=unsupported
15527 shrext_cmds=.dll
15528 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15529 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15530 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15531 $ECHO EXPORTS >> $output_objdir/$libname.def~
15532 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
15533 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15534 emximp -o $lib $output_objdir/$libname.def'
15535 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15536 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15537 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15538 $ECHO EXPORTS >> $output_objdir/$libname.def~
15539 prefix_cmds="$SED"~
15540 if test EXPORTS = "`$SED 1q $export_symbols`"; then
15541 prefix_cmds="$prefix_cmds -e 1d";
15542 fi~
15543 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
15544 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
15545 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15546 emximp -o $lib $output_objdir/$libname.def'
15547 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
15548 enable_shared_with_static_runtimes=yes
15549 ;;
15550
15551 interix[3-9]*)
15552 hardcode_direct=no
15553 hardcode_shlibpath_var=no
15554 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
15555 export_dynamic_flag_spec='$wl-E'
15556 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15557 # Instead, shared libraries are loaded at an image base (0x10000000 by
15558 # default) and relocated if they conflict, which is a slow very memory
15559 # consuming and fragmenting process. To avoid this, we pick a random,
15560 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15561 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15562 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15563 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'
15564 ;;
15565
15566 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15567 tmp_diet=no
15568 if test linux-dietlibc = "$host_os"; then
15569 case $cc_basename in
15570 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15571 esac
15572 fi
15573 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15574 && test no = "$tmp_diet"
15575 then
15576 tmp_addflag=' $pic_flag'
15577 tmp_sharedflag='-shared'
15578 case $cc_basename,$host_cpu in
15579 pgcc*) # Portland Group C compiler
15580 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'
15581 tmp_addflag=' $pic_flag'
15582 ;;
15583 pgf77* | pgf90* | pgf95* | pgfortran*)
15584 # Portland Group f77 and f90 compilers
15585 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'
15586 tmp_addflag=' $pic_flag -Mnomain' ;;
15587 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15588 tmp_addflag=' -i_dynamic' ;;
15589 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15590 tmp_addflag=' -i_dynamic -nofor_main' ;;
15591 ifc* | ifort*) # Intel Fortran compiler
15592 tmp_addflag=' -nofor_main' ;;
15593 lf95*) # Lahey Fortran 8.1
15594 whole_archive_flag_spec=
15595 tmp_sharedflag='--shared' ;;
15596 nagfor*) # NAGFOR 5.3
15597 tmp_sharedflag='-Wl,-shared' ;;
15598 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15599 tmp_sharedflag='-qmkshrobj'
15600 tmp_addflag= ;;
15601 nvcc*) # Cuda Compiler Driver 2.2
15602 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'
15603 compiler_needs_object=yes
15604 ;;
15605 esac
15606 case `$CC -V 2>&1 | sed 5q` in
15607 *Sun\ C*) # Sun C 5.9
15608 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'
15609 compiler_needs_object=yes
15610 tmp_sharedflag='-G' ;;
15611 *Sun\ F*) # Sun Fortran 8.3
15612 tmp_sharedflag='-G' ;;
15613 esac
15614 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15615
15616 if test yes = "$supports_anon_versioning"; then
15617 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15618 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15619 echo "local: *; };" >> $output_objdir/$libname.ver~
15620 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
15621 fi
15622
15623 case $cc_basename in
15624 tcc*)
15625 export_dynamic_flag_spec='-rdynamic'
15626 ;;
15627 xlf* | bgf* | bgxlf* | mpixlf*)
15628 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15629 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15630 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15631 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
15632 if test yes = "$supports_anon_versioning"; then
15633 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15634 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15635 echo "local: *; };" >> $output_objdir/$libname.ver~
15636 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15637 fi
15638 ;;
15639 esac
15640 else
15641 ld_shlibs=no
15642 fi
15643 ;;
15644
15645 netbsd* | netbsdelf*-gnu)
15646 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15647 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15648 wlarc=
15649 else
15650 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15651 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15652 fi
15653 ;;
15654
15655 solaris*)
15656 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15657 ld_shlibs=no
15658 cat <<_LT_EOF 1>&2
15659
15660 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15661 *** create shared libraries on Solaris systems. Therefore, libtool
15662 *** is disabling shared libraries support. We urge you to upgrade GNU
15663 *** binutils to release 2.9.1 or newer. Another option is to modify
15664 *** your PATH or compiler configuration so that the native linker is
15665 *** used, and then restart.
15666
15667 _LT_EOF
15668 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15669 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15670 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15671 else
15672 ld_shlibs=no
15673 fi
15674 ;;
15675
15676 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15677 case `$LD -v 2>&1` in
15678 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15679 ld_shlibs=no
15680 cat <<_LT_EOF 1>&2
15681
15682 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
15683 *** reliably create shared libraries on SCO systems. Therefore, libtool
15684 *** is disabling shared libraries support. We urge you to upgrade GNU
15685 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15686 *** your PATH or compiler configuration so that the native linker is
15687 *** used, and then restart.
15688
15689 _LT_EOF
15690 ;;
15691 *)
15692 # For security reasons, it is highly recommended that you always
15693 # use absolute paths for naming shared libraries, and exclude the
15694 # DT_RUNPATH tag from executables and libraries. But doing so
15695 # requires that you compile everything twice, which is a pain.
15696 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15697 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15698 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15699 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15700 else
15701 ld_shlibs=no
15702 fi
15703 ;;
15704 esac
15705 ;;
15706
15707 sunos4*)
15708 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15709 wlarc=
15710 hardcode_direct=yes
15711 hardcode_shlibpath_var=no
15712 ;;
15713
15714 *)
15715 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15716 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15717 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15718 else
15719 ld_shlibs=no
15720 fi
15721 ;;
15722 esac
15723
15724 if test no = "$ld_shlibs"; then
15725 runpath_var=
15726 hardcode_libdir_flag_spec=
15727 export_dynamic_flag_spec=
15728 whole_archive_flag_spec=
15729 fi
15730 else
15731 # PORTME fill in a description of your system's linker (not GNU ld)
15732 case $host_os in
15733 aix3*)
15734 allow_undefined_flag=unsupported
15735 always_export_symbols=yes
15736 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'
15737 # Note: this linker hardcodes the directories in LIBPATH if there
15738 # are no directories specified by -L.
15739 hardcode_minus_L=yes
15740 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
15741 # Neither direct hardcoding nor static linking is supported with a
15742 # broken collect2.
15743 hardcode_direct=unsupported
15744 fi
15745 ;;
15746
15747 aix[4-9]*)
15748 if test ia64 = "$host_cpu"; then
15749 # On IA64, the linker does run time linking by default, so we don't
15750 # have to do anything special.
15751 aix_use_runtimelinking=no
15752 exp_sym_flag='-Bexport'
15753 no_entry_flag=
15754 else
15755 # If we're using GNU nm, then we don't want the "-C" option.
15756 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
15757 # Without the "-l" option, or with the "-B" option, AIX nm treats
15758 # weak defined symbols like other global defined symbols, whereas
15759 # GNU nm marks them as "W".
15760 # While the 'weak' keyword is ignored in the Export File, we need
15761 # it in the Import File for the 'aix-soname' feature, so we have
15762 # to replace the "-B" option with "-P" for AIX nm.
15763 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15764 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'
15765 else
15766 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'
15767 fi
15768 aix_use_runtimelinking=no
15769
15770 # Test if we are trying to use run time linking or normal
15771 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15772 # have runtime linking enabled, and use it for executables.
15773 # For shared libraries, we enable/disable runtime linking
15774 # depending on the kind of the shared library created -
15775 # when "with_aix_soname,aix_use_runtimelinking" is:
15776 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
15777 # "aix,yes" lib.so shared, rtl:yes, for executables
15778 # lib.a static archive
15779 # "both,no" lib.so.V(shr.o) shared, rtl:yes
15780 # lib.a(lib.so.V) shared, rtl:no, for executables
15781 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
15782 # lib.a(lib.so.V) shared, rtl:no
15783 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
15784 # lib.a static archive
15785 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15786 for ld_flag in $LDFLAGS; do
15787 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
15788 aix_use_runtimelinking=yes
15789 break
15790 fi
15791 done
15792 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
15793 # With aix-soname=svr4, we create the lib.so.V shared archives only,
15794 # so we don't have lib.a shared libs to link our executables.
15795 # We have to force runtime linking in this case.
15796 aix_use_runtimelinking=yes
15797 LDFLAGS="$LDFLAGS -Wl,-brtl"
15798 fi
15799 ;;
15800 esac
15801
15802 exp_sym_flag='-bexport'
15803 no_entry_flag='-bnoentry'
15804 fi
15805
15806 # When large executables or shared objects are built, AIX ld can
15807 # have problems creating the table of contents. If linking a library
15808 # or program results in "error TOC overflow" add -mminimal-toc to
15809 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15810 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15811
15812 archive_cmds=''
15813 hardcode_direct=yes
15814 hardcode_direct_absolute=yes
15815 hardcode_libdir_separator=':'
15816 link_all_deplibs=yes
15817 file_list_spec='$wl-f,'
15818 case $with_aix_soname,$aix_use_runtimelinking in
15819 aix,*) ;; # traditional, no import file
15820 svr4,* | *,yes) # use import file
15821 # The Import File defines what to hardcode.
15822 hardcode_direct=no
15823 hardcode_direct_absolute=no
15824 ;;
15825 esac
15826
15827 if test yes = "$GCC"; then
15828 case $host_os in aix4.[012]|aix4.[012].*)
15829 # We only want to do this on AIX 4.2 and lower, the check
15830 # below for broken collect2 doesn't work under 4.3+
15831 collect2name=`$CC -print-prog-name=collect2`
15832 if test -f "$collect2name" &&
15833 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15834 then
15835 # We have reworked collect2
15836 :
15837 else
15838 # We have old collect2
15839 hardcode_direct=unsupported
15840 # It fails to find uninstalled libraries when the uninstalled
15841 # path is not listed in the libpath. Setting hardcode_minus_L
15842 # to unsupported forces relinking
15843 hardcode_minus_L=yes
15844 hardcode_libdir_flag_spec='-L$libdir'
15845 hardcode_libdir_separator=
15846 fi
15847 ;;
15848 esac
15849 shared_flag='-shared'
15850 if test yes = "$aix_use_runtimelinking"; then
15851 shared_flag="$shared_flag "'$wl-G'
15852 fi
15853 # Need to ensure runtime linking is disabled for the traditional
15854 # shared library, or the linker may eventually find shared libraries
15855 # /with/ Import File - we do not want to mix them.
15856 shared_flag_aix='-shared'
15857 shared_flag_svr4='-shared $wl-G'
15858 else
15859 # not using gcc
15860 if test ia64 = "$host_cpu"; then
15861 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15862 # chokes on -Wl,-G. The following line is correct:
15863 shared_flag='-G'
15864 else
15865 if test yes = "$aix_use_runtimelinking"; then
15866 shared_flag='$wl-G'
15867 else
15868 shared_flag='$wl-bM:SRE'
15869 fi
15870 shared_flag_aix='$wl-bM:SRE'
15871 shared_flag_svr4='$wl-G'
15872 fi
15873 fi
15874
15875 export_dynamic_flag_spec='$wl-bexpall'
15876 # It seems that -bexpall does not export symbols beginning with
15877 # underscore (_), so it is better to generate a list of symbols to export.
15878 always_export_symbols=yes
15879 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
15880 # Warning - without using the other runtime loading flags (-brtl),
15881 # -berok will link without error, but may produce a broken library.
15882 allow_undefined_flag='-berok'
15883 # Determine the default libpath from the value encoded in an
15884 # empty executable.
15885 if test set = "${lt_cv_aix_libpath+set}"; then
15886 aix_libpath=$lt_cv_aix_libpath
15887 else
15888 if ${lt_cv_aix_libpath_+:} false; then :
15889 $as_echo_n "(cached) " >&6
15890 else
15891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15892 /* end confdefs.h. */
15893
15894 int
15895 main ()
15896 {
15897
15898 ;
15899 return 0;
15900 }
15901 _ACEOF
15902 if ac_fn_c_try_link "$LINENO"; then :
15903
15904 lt_aix_libpath_sed='
15905 /Import File Strings/,/^$/ {
15906 /^0/ {
15907 s/^0 *\([^ ]*\) *$/\1/
15908 p
15909 }
15910 }'
15911 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15912 # Check for a 64-bit object if we didn't find anything.
15913 if test -z "$lt_cv_aix_libpath_"; then
15914 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15915 fi
15916 fi
15917 rm -f core conftest.err conftest.$ac_objext \
15918 conftest$ac_exeext conftest.$ac_ext
15919 if test -z "$lt_cv_aix_libpath_"; then
15920 lt_cv_aix_libpath_=/usr/lib:/lib
15921 fi
15922
15923 fi
15924
15925 aix_libpath=$lt_cv_aix_libpath_
15926 fi
15927
15928 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
15929 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
15930 else
15931 if test ia64 = "$host_cpu"; then
15932 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
15933 allow_undefined_flag="-z nodefs"
15934 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"
15935 else
15936 # Determine the default libpath from the value encoded in an
15937 # empty executable.
15938 if test set = "${lt_cv_aix_libpath+set}"; then
15939 aix_libpath=$lt_cv_aix_libpath
15940 else
15941 if ${lt_cv_aix_libpath_+:} false; then :
15942 $as_echo_n "(cached) " >&6
15943 else
15944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15945 /* end confdefs.h. */
15946
15947 int
15948 main ()
15949 {
15950
15951 ;
15952 return 0;
15953 }
15954 _ACEOF
15955 if ac_fn_c_try_link "$LINENO"; then :
15956
15957 lt_aix_libpath_sed='
15958 /Import File Strings/,/^$/ {
15959 /^0/ {
15960 s/^0 *\([^ ]*\) *$/\1/
15961 p
15962 }
15963 }'
15964 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15965 # Check for a 64-bit object if we didn't find anything.
15966 if test -z "$lt_cv_aix_libpath_"; then
15967 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15968 fi
15969 fi
15970 rm -f core conftest.err conftest.$ac_objext \
15971 conftest$ac_exeext conftest.$ac_ext
15972 if test -z "$lt_cv_aix_libpath_"; then
15973 lt_cv_aix_libpath_=/usr/lib:/lib
15974 fi
15975
15976 fi
15977
15978 aix_libpath=$lt_cv_aix_libpath_
15979 fi
15980
15981 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
15982 # Warning - without using the other run time loading flags,
15983 # -berok will link without error, but may produce a broken library.
15984 no_undefined_flag=' $wl-bernotok'
15985 allow_undefined_flag=' $wl-berok'
15986 if test yes = "$with_gnu_ld"; then
15987 # We only use this code for GNU lds that support --whole-archive.
15988 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
15989 else
15990 # Exported symbols can be pulled into shared objects from archives
15991 whole_archive_flag_spec='$convenience'
15992 fi
15993 archive_cmds_need_lc=yes
15994 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
15995 # -brtl affects multiple linker settings, -berok does not and is overridden later
15996 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
15997 if test svr4 != "$with_aix_soname"; then
15998 # This is similar to how AIX traditionally builds its shared libraries.
15999 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'
16000 fi
16001 if test aix != "$with_aix_soname"; then
16002 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'
16003 else
16004 # used by -dlpreopen to get the symbols
16005 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
16006 fi
16007 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
16008 fi
16009 fi
16010 ;;
16011
16012 amigaos*)
16013 case $host_cpu in
16014 powerpc)
16015 # see comment about AmigaOS4 .so support
16016 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16017 archive_expsym_cmds=''
16018 ;;
16019 m68k)
16020 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)'
16021 hardcode_libdir_flag_spec='-L$libdir'
16022 hardcode_minus_L=yes
16023 ;;
16024 esac
16025 ;;
16026
16027 bsdi[45]*)
16028 export_dynamic_flag_spec=-rdynamic
16029 ;;
16030
16031 cygwin* | mingw* | pw32* | cegcc*)
16032 # When not using gcc, we currently assume that we are using
16033 # Microsoft Visual C++.
16034 # hardcode_libdir_flag_spec is actually meaningless, as there is
16035 # no search path for DLLs.
16036 case $cc_basename in
16037 cl*)
16038 # Native MSVC
16039 hardcode_libdir_flag_spec=' '
16040 allow_undefined_flag=unsupported
16041 always_export_symbols=yes
16042 file_list_spec='@'
16043 # Tell ltmain to make .lib files, not .a files.
16044 libext=lib
16045 # Tell ltmain to make .dll files, not .so files.
16046 shrext_cmds=.dll
16047 # FIXME: Setting linknames here is a bad hack.
16048 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
16049 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
16050 cp "$export_symbols" "$output_objdir/$soname.def";
16051 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
16052 else
16053 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
16054 fi~
16055 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
16056 linknames='
16057 # The linker will not automatically build a static lib if we build a DLL.
16058 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
16059 enable_shared_with_static_runtimes=yes
16060 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16061 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16062 # Don't use ranlib
16063 old_postinstall_cmds='chmod 644 $oldlib'
16064 postlink_cmds='lt_outputfile="@OUTPUT@"~
16065 lt_tool_outputfile="@TOOL_OUTPUT@"~
16066 case $lt_outputfile in
16067 *.exe|*.EXE) ;;
16068 *)
16069 lt_outputfile=$lt_outputfile.exe
16070 lt_tool_outputfile=$lt_tool_outputfile.exe
16071 ;;
16072 esac~
16073 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
16074 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
16075 $RM "$lt_outputfile.manifest";
16076 fi'
16077 ;;
16078 *)
16079 # Assume MSVC wrapper
16080 hardcode_libdir_flag_spec=' '
16081 allow_undefined_flag=unsupported
16082 # Tell ltmain to make .lib files, not .a files.
16083 libext=lib
16084 # Tell ltmain to make .dll files, not .so files.
16085 shrext_cmds=.dll
16086 # FIXME: Setting linknames here is a bad hack.
16087 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16088 # The linker will automatically build a .lib file if we build a DLL.
16089 old_archive_from_new_cmds='true'
16090 # FIXME: Should let the user specify the lib program.
16091 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16092 enable_shared_with_static_runtimes=yes
16093 ;;
16094 esac
16095 ;;
16096
16097 darwin* | rhapsody*)
16098
16099
16100 archive_cmds_need_lc=no
16101 hardcode_direct=no
16102 hardcode_automatic=yes
16103 hardcode_shlibpath_var=unsupported
16104 if test yes = "$lt_cv_ld_force_load"; then
16105 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\"`'
16106
16107 else
16108 whole_archive_flag_spec=''
16109 fi
16110 link_all_deplibs=yes
16111 allow_undefined_flag=$_lt_dar_allow_undefined
16112 case $cc_basename in
16113 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
16114 *) _lt_dar_can_shared=$GCC ;;
16115 esac
16116 if test yes = "$_lt_dar_can_shared"; then
16117 output_verbose_link_cmd=func_echo_all
16118 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
16119 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
16120 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"
16121 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"
16122
16123 else
16124 ld_shlibs=no
16125 fi
16126
16127 ;;
16128
16129 dgux*)
16130 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16131 hardcode_libdir_flag_spec='-L$libdir'
16132 hardcode_shlibpath_var=no
16133 ;;
16134
16135 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16136 # support. Future versions do this automatically, but an explicit c++rt0.o
16137 # does not break anything, and helps significantly (at the cost of a little
16138 # extra space).
16139 freebsd2.2*)
16140 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16141 hardcode_libdir_flag_spec='-R$libdir'
16142 hardcode_direct=yes
16143 hardcode_shlibpath_var=no
16144 ;;
16145
16146 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16147 freebsd2.*)
16148 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16149 hardcode_direct=yes
16150 hardcode_minus_L=yes
16151 hardcode_shlibpath_var=no
16152 ;;
16153
16154 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16155 freebsd* | dragonfly*)
16156 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16157 hardcode_libdir_flag_spec='-R$libdir'
16158 hardcode_direct=yes
16159 hardcode_shlibpath_var=no
16160 ;;
16161
16162 hpux9*)
16163 if test yes = "$GCC"; then
16164 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'
16165 else
16166 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'
16167 fi
16168 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16169 hardcode_libdir_separator=:
16170 hardcode_direct=yes
16171
16172 # hardcode_minus_L: Not really in the search PATH,
16173 # but as the default location of the library.
16174 hardcode_minus_L=yes
16175 export_dynamic_flag_spec='$wl-E'
16176 ;;
16177
16178 hpux10*)
16179 if test yes,no = "$GCC,$with_gnu_ld"; then
16180 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16181 else
16182 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16183 fi
16184 if test no = "$with_gnu_ld"; then
16185 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16186 hardcode_libdir_separator=:
16187 hardcode_direct=yes
16188 hardcode_direct_absolute=yes
16189 export_dynamic_flag_spec='$wl-E'
16190 # hardcode_minus_L: Not really in the search PATH,
16191 # but as the default location of the library.
16192 hardcode_minus_L=yes
16193 fi
16194 ;;
16195
16196 hpux11*)
16197 if test yes,no = "$GCC,$with_gnu_ld"; then
16198 case $host_cpu in
16199 hppa*64*)
16200 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16201 ;;
16202 ia64*)
16203 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16204 ;;
16205 *)
16206 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16207 ;;
16208 esac
16209 else
16210 case $host_cpu in
16211 hppa*64*)
16212 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16213 ;;
16214 ia64*)
16215 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16216 ;;
16217 *)
16218
16219 # Older versions of the 11.00 compiler do not understand -b yet
16220 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16222 $as_echo_n "checking if $CC understands -b... " >&6; }
16223 if ${lt_cv_prog_compiler__b+:} false; then :
16224 $as_echo_n "(cached) " >&6
16225 else
16226 lt_cv_prog_compiler__b=no
16227 save_LDFLAGS=$LDFLAGS
16228 LDFLAGS="$LDFLAGS -b"
16229 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16230 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16231 # The linker can only warn and ignore the option if not recognized
16232 # So say no if there are warnings
16233 if test -s conftest.err; then
16234 # Append any errors to the config.log.
16235 cat conftest.err 1>&5
16236 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16237 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16238 if diff conftest.exp conftest.er2 >/dev/null; then
16239 lt_cv_prog_compiler__b=yes
16240 fi
16241 else
16242 lt_cv_prog_compiler__b=yes
16243 fi
16244 fi
16245 $RM -r conftest*
16246 LDFLAGS=$save_LDFLAGS
16247
16248 fi
16249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16250 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16251
16252 if test yes = "$lt_cv_prog_compiler__b"; then
16253 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16254 else
16255 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16256 fi
16257
16258 ;;
16259 esac
16260 fi
16261 if test no = "$with_gnu_ld"; then
16262 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16263 hardcode_libdir_separator=:
16264
16265 case $host_cpu in
16266 hppa*64*|ia64*)
16267 hardcode_direct=no
16268 hardcode_shlibpath_var=no
16269 ;;
16270 *)
16271 hardcode_direct=yes
16272 hardcode_direct_absolute=yes
16273 export_dynamic_flag_spec='$wl-E'
16274
16275 # hardcode_minus_L: Not really in the search PATH,
16276 # but as the default location of the library.
16277 hardcode_minus_L=yes
16278 ;;
16279 esac
16280 fi
16281 ;;
16282
16283 irix5* | irix6* | nonstopux*)
16284 if test yes = "$GCC"; then
16285 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'
16286 # Try to use the -exported_symbol ld option, if it does not
16287 # work, assume that -exports_file does not work either and
16288 # implicitly export all symbols.
16289 # This should be the same for all languages, so no per-tag cache variable.
16290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
16291 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
16292 if ${lt_cv_irix_exported_symbol+:} false; then :
16293 $as_echo_n "(cached) " >&6
16294 else
16295 save_LDFLAGS=$LDFLAGS
16296 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
16297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16298 /* end confdefs.h. */
16299 int foo (void) { return 0; }
16300 _ACEOF
16301 if ac_fn_c_try_link "$LINENO"; then :
16302 lt_cv_irix_exported_symbol=yes
16303 else
16304 lt_cv_irix_exported_symbol=no
16305 fi
16306 rm -f core conftest.err conftest.$ac_objext \
16307 conftest$ac_exeext conftest.$ac_ext
16308 LDFLAGS=$save_LDFLAGS
16309 fi
16310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
16311 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
16312 if test yes = "$lt_cv_irix_exported_symbol"; then
16313 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'
16314 fi
16315 link_all_deplibs=no
16316 else
16317 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'
16318 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'
16319 fi
16320 archive_cmds_need_lc='no'
16321 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16322 hardcode_libdir_separator=:
16323 inherit_rpath=yes
16324 link_all_deplibs=yes
16325 ;;
16326
16327 linux*)
16328 case $cc_basename in
16329 tcc*)
16330 # Fabrice Bellard et al's Tiny C Compiler
16331 ld_shlibs=yes
16332 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16333 ;;
16334 esac
16335 ;;
16336
16337 netbsd* | netbsdelf*-gnu)
16338 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16339 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16340 else
16341 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16342 fi
16343 hardcode_libdir_flag_spec='-R$libdir'
16344 hardcode_direct=yes
16345 hardcode_shlibpath_var=no
16346 ;;
16347
16348 newsos6)
16349 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16350 hardcode_direct=yes
16351 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16352 hardcode_libdir_separator=:
16353 hardcode_shlibpath_var=no
16354 ;;
16355
16356 *nto* | *qnx*)
16357 ;;
16358
16359 openbsd* | bitrig*)
16360 if test -f /usr/libexec/ld.so; then
16361 hardcode_direct=yes
16362 hardcode_shlibpath_var=no
16363 hardcode_direct_absolute=yes
16364 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16365 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16366 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
16367 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
16368 export_dynamic_flag_spec='$wl-E'
16369 else
16370 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16371 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
16372 fi
16373 else
16374 ld_shlibs=no
16375 fi
16376 ;;
16377
16378 os2*)
16379 hardcode_libdir_flag_spec='-L$libdir'
16380 hardcode_minus_L=yes
16381 allow_undefined_flag=unsupported
16382 shrext_cmds=.dll
16383 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16384 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16385 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16386 $ECHO EXPORTS >> $output_objdir/$libname.def~
16387 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
16388 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16389 emximp -o $lib $output_objdir/$libname.def'
16390 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16391 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16392 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16393 $ECHO EXPORTS >> $output_objdir/$libname.def~
16394 prefix_cmds="$SED"~
16395 if test EXPORTS = "`$SED 1q $export_symbols`"; then
16396 prefix_cmds="$prefix_cmds -e 1d";
16397 fi~
16398 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
16399 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
16400 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16401 emximp -o $lib $output_objdir/$libname.def'
16402 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
16403 enable_shared_with_static_runtimes=yes
16404 ;;
16405
16406 osf3*)
16407 if test yes = "$GCC"; then
16408 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
16409 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'
16410 else
16411 allow_undefined_flag=' -expect_unresolved \*'
16412 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'
16413 fi
16414 archive_cmds_need_lc='no'
16415 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16416 hardcode_libdir_separator=:
16417 ;;
16418
16419 osf4* | osf5*) # as osf3* with the addition of -msym flag
16420 if test yes = "$GCC"; then
16421 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
16422 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'
16423 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16424 else
16425 allow_undefined_flag=' -expect_unresolved \*'
16426 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'
16427 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~
16428 $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'
16429
16430 # Both c and cxx compiler support -rpath directly
16431 hardcode_libdir_flag_spec='-rpath $libdir'
16432 fi
16433 archive_cmds_need_lc='no'
16434 hardcode_libdir_separator=:
16435 ;;
16436
16437 solaris*)
16438 no_undefined_flag=' -z defs'
16439 if test yes = "$GCC"; then
16440 wlarc='$wl'
16441 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16442 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16443 $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'
16444 else
16445 case `$CC -V 2>&1` in
16446 *"Compilers 5.0"*)
16447 wlarc=''
16448 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
16449 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16450 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16451 ;;
16452 *)
16453 wlarc='$wl'
16454 archive_cmds='$CC -G$allow_undefined_flag -h $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 -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16457 ;;
16458 esac
16459 fi
16460 hardcode_libdir_flag_spec='-R$libdir'
16461 hardcode_shlibpath_var=no
16462 case $host_os in
16463 solaris2.[0-5] | solaris2.[0-5].*) ;;
16464 *)
16465 # The compiler driver will combine and reorder linker options,
16466 # but understands '-z linker_flag'. GCC discards it without '$wl',
16467 # but is careful enough not to reorder.
16468 # Supported since Solaris 2.6 (maybe 2.5.1?)
16469 if test yes = "$GCC"; then
16470 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
16471 else
16472 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16473 fi
16474 ;;
16475 esac
16476 link_all_deplibs=yes
16477 ;;
16478
16479 sunos4*)
16480 if test sequent = "$host_vendor"; then
16481 # Use $CC to link under sequent, because it throws in some extra .o
16482 # files that make .init and .fini sections work.
16483 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16484 else
16485 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16486 fi
16487 hardcode_libdir_flag_spec='-L$libdir'
16488 hardcode_direct=yes
16489 hardcode_minus_L=yes
16490 hardcode_shlibpath_var=no
16491 ;;
16492
16493 sysv4)
16494 case $host_vendor in
16495 sni)
16496 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16497 hardcode_direct=yes # is this really true???
16498 ;;
16499 siemens)
16500 ## LD is ld it makes a PLAMLIB
16501 ## CC just makes a GrossModule.
16502 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16503 reload_cmds='$CC -r -o $output$reload_objs'
16504 hardcode_direct=no
16505 ;;
16506 motorola)
16507 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16508 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16509 ;;
16510 esac
16511 runpath_var='LD_RUN_PATH'
16512 hardcode_shlibpath_var=no
16513 ;;
16514
16515 sysv4.3*)
16516 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16517 hardcode_shlibpath_var=no
16518 export_dynamic_flag_spec='-Bexport'
16519 ;;
16520
16521 sysv4*MP*)
16522 if test -d /usr/nec; then
16523 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16524 hardcode_shlibpath_var=no
16525 runpath_var=LD_RUN_PATH
16526 hardcode_runpath_var=yes
16527 ld_shlibs=yes
16528 fi
16529 ;;
16530
16531 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16532 no_undefined_flag='$wl-z,text'
16533 archive_cmds_need_lc=no
16534 hardcode_shlibpath_var=no
16535 runpath_var='LD_RUN_PATH'
16536
16537 if test yes = "$GCC"; then
16538 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16539 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16540 else
16541 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16542 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16543 fi
16544 ;;
16545
16546 sysv5* | sco3.2v5* | sco5v6*)
16547 # Note: We CANNOT use -z defs as we might desire, because we do not
16548 # link with -lc, and that would cause any symbols used from libc to
16549 # always be unresolved, which means just about no library would
16550 # ever link correctly. If we're not using GNU ld we use -z text
16551 # though, which does catch some bad symbols but isn't as heavy-handed
16552 # as -z defs.
16553 no_undefined_flag='$wl-z,text'
16554 allow_undefined_flag='$wl-z,nodefs'
16555 archive_cmds_need_lc=no
16556 hardcode_shlibpath_var=no
16557 hardcode_libdir_flag_spec='$wl-R,$libdir'
16558 hardcode_libdir_separator=':'
16559 link_all_deplibs=yes
16560 export_dynamic_flag_spec='$wl-Bexport'
16561 runpath_var='LD_RUN_PATH'
16562
16563 if test yes = "$GCC"; then
16564 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16565 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16566 else
16567 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16568 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16569 fi
16570 ;;
16571
16572 uts4*)
16573 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16574 hardcode_libdir_flag_spec='-L$libdir'
16575 hardcode_shlibpath_var=no
16576 ;;
16577
16578 *)
16579 ld_shlibs=no
16580 ;;
16581 esac
16582
16583 if test sni = "$host_vendor"; then
16584 case $host in
16585 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16586 export_dynamic_flag_spec='$wl-Blargedynsym'
16587 ;;
16588 esac
16589 fi
16590 fi
16591
16592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16593 $as_echo "$ld_shlibs" >&6; }
16594 test no = "$ld_shlibs" && can_build_shared=no
16595
16596 with_gnu_ld=$with_gnu_ld
16597
16598
16599
16600
16601
16602
16603
16604
16605
16606
16607
16608
16609
16610
16611
16612 #
16613 # Do we need to explicitly link libc?
16614 #
16615 case "x$archive_cmds_need_lc" in
16616 x|xyes)
16617 # Assume -lc should be added
16618 archive_cmds_need_lc=yes
16619
16620 if test yes,yes = "$GCC,$enable_shared"; then
16621 case $archive_cmds in
16622 *'~'*)
16623 # FIXME: we may have to deal with multi-command sequences.
16624 ;;
16625 '$CC '*)
16626 # Test whether the compiler implicitly links with -lc since on some
16627 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16628 # to ld, don't add -lc before -lgcc.
16629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16630 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16631 if ${lt_cv_archive_cmds_need_lc+:} false; then :
16632 $as_echo_n "(cached) " >&6
16633 else
16634 $RM conftest*
16635 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16636
16637 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16638 (eval $ac_compile) 2>&5
16639 ac_status=$?
16640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16641 test $ac_status = 0; } 2>conftest.err; then
16642 soname=conftest
16643 lib=conftest
16644 libobjs=conftest.$ac_objext
16645 deplibs=
16646 wl=$lt_prog_compiler_wl
16647 pic_flag=$lt_prog_compiler_pic
16648 compiler_flags=-v
16649 linker_flags=-v
16650 verstring=
16651 output_objdir=.
16652 libname=conftest
16653 lt_save_allow_undefined_flag=$allow_undefined_flag
16654 allow_undefined_flag=
16655 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16656 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16657 ac_status=$?
16658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16659 test $ac_status = 0; }
16660 then
16661 lt_cv_archive_cmds_need_lc=no
16662 else
16663 lt_cv_archive_cmds_need_lc=yes
16664 fi
16665 allow_undefined_flag=$lt_save_allow_undefined_flag
16666 else
16667 cat conftest.err 1>&5
16668 fi
16669 $RM conftest*
16670
16671 fi
16672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16673 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16674 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16675 ;;
16676 esac
16677 fi
16678 ;;
16679 esac
16680
16681
16682
16683
16684
16685
16686
16687
16688
16689
16690
16691
16692
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16833 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16834
16835 if test yes = "$GCC"; then
16836 case $host_os in
16837 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
16838 *) lt_awk_arg='/^libraries:/' ;;
16839 esac
16840 case $host_os in
16841 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
16842 *) lt_sed_strip_eq='s|=/|/|g' ;;
16843 esac
16844 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16845 case $lt_search_path_spec in
16846 *\;*)
16847 # if the path contains ";" then we assume it to be the separator
16848 # otherwise default to the standard path separator (i.e. ":") - it is
16849 # assumed that no part of a normal pathname contains ";" but that should
16850 # okay in the real world where ";" in dirpaths is itself problematic.
16851 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16852 ;;
16853 *)
16854 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16855 ;;
16856 esac
16857 # Ok, now we have the path, separated by spaces, we can step through it
16858 # and add multilib dir if necessary...
16859 lt_tmp_lt_search_path_spec=
16860 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16861 # ...but if some path component already ends with the multilib dir we assume
16862 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
16863 case "$lt_multi_os_dir; $lt_search_path_spec " in
16864 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
16865 lt_multi_os_dir=
16866 ;;
16867 esac
16868 for lt_sys_path in $lt_search_path_spec; do
16869 if test -d "$lt_sys_path$lt_multi_os_dir"; then
16870 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
16871 elif test -n "$lt_multi_os_dir"; then
16872 test -d "$lt_sys_path" && \
16873 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16874 fi
16875 done
16876 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16877 BEGIN {RS = " "; FS = "/|\n";} {
16878 lt_foo = "";
16879 lt_count = 0;
16880 for (lt_i = NF; lt_i > 0; lt_i--) {
16881 if ($lt_i != "" && $lt_i != ".") {
16882 if ($lt_i == "..") {
16883 lt_count++;
16884 } else {
16885 if (lt_count == 0) {
16886 lt_foo = "/" $lt_i lt_foo;
16887 } else {
16888 lt_count--;
16889 }
16890 }
16891 }
16892 }
16893 if (lt_foo != "") { lt_freq[lt_foo]++; }
16894 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16895 }'`
16896 # AWK program above erroneously prepends '/' to C:/dos/paths
16897 # for these hosts.
16898 case $host_os in
16899 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16900 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
16901 esac
16902 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16903 else
16904 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16905 fi
16906 library_names_spec=
16907 libname_spec='lib$name'
16908 soname_spec=
16909 shrext_cmds=.so
16910 postinstall_cmds=
16911 postuninstall_cmds=
16912 finish_cmds=
16913 finish_eval=
16914 shlibpath_var=
16915 shlibpath_overrides_runpath=unknown
16916 version_type=none
16917 dynamic_linker="$host_os ld.so"
16918 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16919 need_lib_prefix=unknown
16920 hardcode_into_libs=no
16921
16922 # when you set need_version to no, make sure it does not cause -set_version
16923 # flags to be left without arguments
16924 need_version=unknown
16925
16926
16927
16928 case $host_os in
16929 aix3*)
16930 version_type=linux # correct to gnu/linux during the next big refactor
16931 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
16932 shlibpath_var=LIBPATH
16933
16934 # AIX 3 has no versioning support, so we append a major version to the name.
16935 soname_spec='$libname$release$shared_ext$major'
16936 ;;
16937
16938 aix[4-9]*)
16939 version_type=linux # correct to gnu/linux during the next big refactor
16940 need_lib_prefix=no
16941 need_version=no
16942 hardcode_into_libs=yes
16943 if test ia64 = "$host_cpu"; then
16944 # AIX 5 supports IA64
16945 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
16946 shlibpath_var=LD_LIBRARY_PATH
16947 else
16948 # With GCC up to 2.95.x, collect2 would create an import file
16949 # for dependence libraries. The import file would start with
16950 # the line '#! .'. This would cause the generated library to
16951 # depend on '.', always an invalid library. This was fixed in
16952 # development snapshots of GCC prior to 3.0.
16953 case $host_os in
16954 aix4 | aix4.[01] | aix4.[01].*)
16955 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16956 echo ' yes '
16957 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
16958 :
16959 else
16960 can_build_shared=no
16961 fi
16962 ;;
16963 esac
16964 # Using Import Files as archive members, it is possible to support
16965 # filename-based versioning of shared library archives on AIX. While
16966 # this would work for both with and without runtime linking, it will
16967 # prevent static linking of such archives. So we do filename-based
16968 # shared library versioning with .so extension only, which is used
16969 # when both runtime linking and shared linking is enabled.
16970 # Unfortunately, runtime linking may impact performance, so we do
16971 # not want this to be the default eventually. Also, we use the
16972 # versioned .so libs for executables only if there is the -brtl
16973 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
16974 # To allow for filename-based versioning support, we need to create
16975 # libNAME.so.V as an archive file, containing:
16976 # *) an Import File, referring to the versioned filename of the
16977 # archive as well as the shared archive member, telling the
16978 # bitwidth (32 or 64) of that shared object, and providing the
16979 # list of exported symbols of that shared object, eventually
16980 # decorated with the 'weak' keyword
16981 # *) the shared object with the F_LOADONLY flag set, to really avoid
16982 # it being seen by the linker.
16983 # At run time we better use the real file rather than another symlink,
16984 # but for link time we create the symlink libNAME.so -> libNAME.so.V
16985
16986 case $with_aix_soname,$aix_use_runtimelinking in
16987 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
16988 # soname into executable. Probably we can add versioning support to
16989 # collect2, so additional links can be useful in future.
16990 aix,yes) # traditional libtool
16991 dynamic_linker='AIX unversionable lib.so'
16992 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16993 # instead of lib<name>.a to let people know that these are not
16994 # typical AIX shared libraries.
16995 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16996 ;;
16997 aix,no) # traditional AIX only
16998 dynamic_linker='AIX lib.a(lib.so.V)'
16999 # We preserve .a as extension for shared libraries through AIX4.2
17000 # and later when we are not doing run time linking.
17001 library_names_spec='$libname$release.a $libname.a'
17002 soname_spec='$libname$release$shared_ext$major'
17003 ;;
17004 svr4,*) # full svr4 only
17005 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
17006 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17007 # We do not specify a path in Import Files, so LIBPATH fires.
17008 shlibpath_overrides_runpath=yes
17009 ;;
17010 *,yes) # both, prefer svr4
17011 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
17012 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17013 # unpreferred sharedlib libNAME.a needs extra handling
17014 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"'
17015 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"'
17016 # We do not specify a path in Import Files, so LIBPATH fires.
17017 shlibpath_overrides_runpath=yes
17018 ;;
17019 *,no) # both, prefer aix
17020 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
17021 library_names_spec='$libname$release.a $libname.a'
17022 soname_spec='$libname$release$shared_ext$major'
17023 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
17024 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)'
17025 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"'
17026 ;;
17027 esac
17028 shlibpath_var=LIBPATH
17029 fi
17030 ;;
17031
17032 amigaos*)
17033 case $host_cpu in
17034 powerpc)
17035 # Since July 2007 AmigaOS4 officially supports .so libraries.
17036 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17037 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17038 ;;
17039 m68k)
17040 library_names_spec='$libname.ixlibrary $libname.a'
17041 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17042 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'
17043 ;;
17044 esac
17045 ;;
17046
17047 beos*)
17048 library_names_spec='$libname$shared_ext'
17049 dynamic_linker="$host_os ld.so"
17050 shlibpath_var=LIBRARY_PATH
17051 ;;
17052
17053 bsdi[45]*)
17054 version_type=linux # correct to gnu/linux during the next big refactor
17055 need_version=no
17056 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17057 soname_spec='$libname$release$shared_ext$major'
17058 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17059 shlibpath_var=LD_LIBRARY_PATH
17060 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17061 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17062 # the default ld.so.conf also contains /usr/contrib/lib and
17063 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17064 # libtool to hard-code these into programs
17065 ;;
17066
17067 cygwin* | mingw* | pw32* | cegcc*)
17068 version_type=windows
17069 shrext_cmds=.dll
17070 need_version=no
17071 need_lib_prefix=no
17072
17073 case $GCC,$cc_basename in
17074 yes,*)
17075 # gcc
17076 library_names_spec='$libname.dll.a'
17077 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17078 postinstall_cmds='base_file=`basename \$file`~
17079 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17080 dldir=$destdir/`dirname \$dlpath`~
17081 test -d \$dldir || mkdir -p \$dldir~
17082 $install_prog $dir/$dlname \$dldir/$dlname~
17083 chmod a+x \$dldir/$dlname~
17084 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17085 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17086 fi'
17087 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17088 dlpath=$dir/\$dldll~
17089 $RM \$dlpath'
17090 shlibpath_overrides_runpath=yes
17091
17092 case $host_os in
17093 cygwin*)
17094 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17095 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17096
17097 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17098 ;;
17099 mingw* | cegcc*)
17100 # MinGW DLLs use traditional 'lib' prefix
17101 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17102 ;;
17103 pw32*)
17104 # pw32 DLLs use 'pw' prefix rather than 'lib'
17105 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17106 ;;
17107 esac
17108 dynamic_linker='Win32 ld.exe'
17109 ;;
17110
17111 *,cl*)
17112 # Native MSVC
17113 libname_spec='$name'
17114 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17115 library_names_spec='$libname.dll.lib'
17116
17117 case $build_os in
17118 mingw*)
17119 sys_lib_search_path_spec=
17120 lt_save_ifs=$IFS
17121 IFS=';'
17122 for lt_path in $LIB
17123 do
17124 IFS=$lt_save_ifs
17125 # Let DOS variable expansion print the short 8.3 style file name.
17126 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17127 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17128 done
17129 IFS=$lt_save_ifs
17130 # Convert to MSYS style.
17131 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17132 ;;
17133 cygwin*)
17134 # Convert to unix form, then to dos form, then back to unix form
17135 # but this time dos style (no spaces!) so that the unix form looks
17136 # like /cygdrive/c/PROGRA~1:/cygdr...
17137 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17138 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17139 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17140 ;;
17141 *)
17142 sys_lib_search_path_spec=$LIB
17143 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17144 # It is most probably a Windows format PATH.
17145 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17146 else
17147 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17148 fi
17149 # FIXME: find the short name or the path components, as spaces are
17150 # common. (e.g. "Program Files" -> "PROGRA~1")
17151 ;;
17152 esac
17153
17154 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17155 postinstall_cmds='base_file=`basename \$file`~
17156 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17157 dldir=$destdir/`dirname \$dlpath`~
17158 test -d \$dldir || mkdir -p \$dldir~
17159 $install_prog $dir/$dlname \$dldir/$dlname'
17160 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17161 dlpath=$dir/\$dldll~
17162 $RM \$dlpath'
17163 shlibpath_overrides_runpath=yes
17164 dynamic_linker='Win32 link.exe'
17165 ;;
17166
17167 *)
17168 # Assume MSVC wrapper
17169 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
17170 dynamic_linker='Win32 ld.exe'
17171 ;;
17172 esac
17173 # FIXME: first we should search . and the directory the executable is in
17174 shlibpath_var=PATH
17175 ;;
17176
17177 darwin* | rhapsody*)
17178 dynamic_linker="$host_os dyld"
17179 version_type=darwin
17180 need_lib_prefix=no
17181 need_version=no
17182 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
17183 soname_spec='$libname$release$major$shared_ext'
17184 shlibpath_overrides_runpath=yes
17185 shlibpath_var=DYLD_LIBRARY_PATH
17186 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17187
17188 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17189 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17190 ;;
17191
17192 dgux*)
17193 version_type=linux # correct to gnu/linux during the next big refactor
17194 need_lib_prefix=no
17195 need_version=no
17196 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17197 soname_spec='$libname$release$shared_ext$major'
17198 shlibpath_var=LD_LIBRARY_PATH
17199 ;;
17200
17201 freebsd* | dragonfly*)
17202 # DragonFly does not have aout. When/if they implement a new
17203 # versioning mechanism, adjust this.
17204 if test -x /usr/bin/objformat; then
17205 objformat=`/usr/bin/objformat`
17206 else
17207 case $host_os in
17208 freebsd[23].*) objformat=aout ;;
17209 *) objformat=elf ;;
17210 esac
17211 fi
17212 version_type=freebsd-$objformat
17213 case $version_type in
17214 freebsd-elf*)
17215 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17216 soname_spec='$libname$release$shared_ext$major'
17217 need_version=no
17218 need_lib_prefix=no
17219 ;;
17220 freebsd-*)
17221 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17222 need_version=yes
17223 ;;
17224 esac
17225 shlibpath_var=LD_LIBRARY_PATH
17226 case $host_os in
17227 freebsd2.*)
17228 shlibpath_overrides_runpath=yes
17229 ;;
17230 freebsd3.[01]* | freebsdelf3.[01]*)
17231 shlibpath_overrides_runpath=yes
17232 hardcode_into_libs=yes
17233 ;;
17234 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17235 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17236 shlibpath_overrides_runpath=no
17237 hardcode_into_libs=yes
17238 ;;
17239 *) # from 4.6 on, and DragonFly
17240 shlibpath_overrides_runpath=yes
17241 hardcode_into_libs=yes
17242 ;;
17243 esac
17244 ;;
17245
17246 haiku*)
17247 version_type=linux # correct to gnu/linux during the next big refactor
17248 need_lib_prefix=no
17249 need_version=no
17250 dynamic_linker="$host_os runtime_loader"
17251 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17252 soname_spec='$libname$release$shared_ext$major'
17253 shlibpath_var=LIBRARY_PATH
17254 shlibpath_overrides_runpath=no
17255 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17256 hardcode_into_libs=yes
17257 ;;
17258
17259 hpux9* | hpux10* | hpux11*)
17260 # Give a soname corresponding to the major version so that dld.sl refuses to
17261 # link against other versions.
17262 version_type=sunos
17263 need_lib_prefix=no
17264 need_version=no
17265 case $host_cpu in
17266 ia64*)
17267 shrext_cmds='.so'
17268 hardcode_into_libs=yes
17269 dynamic_linker="$host_os dld.so"
17270 shlibpath_var=LD_LIBRARY_PATH
17271 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17272 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17273 soname_spec='$libname$release$shared_ext$major'
17274 if test 32 = "$HPUX_IA64_MODE"; then
17275 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17276 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
17277 else
17278 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17279 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
17280 fi
17281 ;;
17282 hppa*64*)
17283 shrext_cmds='.sl'
17284 hardcode_into_libs=yes
17285 dynamic_linker="$host_os dld.sl"
17286 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17287 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17288 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17289 soname_spec='$libname$release$shared_ext$major'
17290 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17291 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17292 ;;
17293 *)
17294 shrext_cmds='.sl'
17295 dynamic_linker="$host_os dld.sl"
17296 shlibpath_var=SHLIB_PATH
17297 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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 ;;
17301 esac
17302 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17303 postinstall_cmds='chmod 555 $lib'
17304 # or fails outright, so override atomically:
17305 install_override_mode=555
17306 ;;
17307
17308 interix[3-9]*)
17309 version_type=linux # correct to gnu/linux during the next big refactor
17310 need_lib_prefix=no
17311 need_version=no
17312 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17313 soname_spec='$libname$release$shared_ext$major'
17314 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17315 shlibpath_var=LD_LIBRARY_PATH
17316 shlibpath_overrides_runpath=no
17317 hardcode_into_libs=yes
17318 ;;
17319
17320 irix5* | irix6* | nonstopux*)
17321 case $host_os in
17322 nonstopux*) version_type=nonstopux ;;
17323 *)
17324 if test yes = "$lt_cv_prog_gnu_ld"; then
17325 version_type=linux # correct to gnu/linux during the next big refactor
17326 else
17327 version_type=irix
17328 fi ;;
17329 esac
17330 need_lib_prefix=no
17331 need_version=no
17332 soname_spec='$libname$release$shared_ext$major'
17333 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
17334 case $host_os in
17335 irix5* | nonstopux*)
17336 libsuff= shlibsuff=
17337 ;;
17338 *)
17339 case $LD in # libtool.m4 will add one of these switches to LD
17340 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17341 libsuff= shlibsuff= libmagic=32-bit;;
17342 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17343 libsuff=32 shlibsuff=N32 libmagic=N32;;
17344 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17345 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17346 *) libsuff= shlibsuff= libmagic=never-match;;
17347 esac
17348 ;;
17349 esac
17350 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17351 shlibpath_overrides_runpath=no
17352 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
17353 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
17354 hardcode_into_libs=yes
17355 ;;
17356
17357 # No shared lib support for Linux oldld, aout, or coff.
17358 linux*oldld* | linux*aout* | linux*coff*)
17359 dynamic_linker=no
17360 ;;
17361
17362 linux*android*)
17363 version_type=none # Android doesn't support versioned libraries.
17364 need_lib_prefix=no
17365 need_version=no
17366 library_names_spec='$libname$release$shared_ext'
17367 soname_spec='$libname$release$shared_ext'
17368 finish_cmds=
17369 shlibpath_var=LD_LIBRARY_PATH
17370 shlibpath_overrides_runpath=yes
17371
17372 # This implies no fast_install, which is unacceptable.
17373 # Some rework will be needed to allow for fast_install
17374 # before this can be enabled.
17375 hardcode_into_libs=yes
17376
17377 dynamic_linker='Android linker'
17378 # Don't embed -rpath directories since the linker doesn't support them.
17379 hardcode_libdir_flag_spec='-L$libdir'
17380 ;;
17381
17382 # This must be glibc/ELF.
17383 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17384 version_type=linux # correct to gnu/linux during the next big refactor
17385 need_lib_prefix=no
17386 need_version=no
17387 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17388 soname_spec='$libname$release$shared_ext$major'
17389 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17390 shlibpath_var=LD_LIBRARY_PATH
17391 shlibpath_overrides_runpath=no
17392
17393 # Some binutils ld are patched to set DT_RUNPATH
17394 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17395 $as_echo_n "(cached) " >&6
17396 else
17397 lt_cv_shlibpath_overrides_runpath=no
17398 save_LDFLAGS=$LDFLAGS
17399 save_libdir=$libdir
17400 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17401 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17403 /* end confdefs.h. */
17404
17405 int
17406 main ()
17407 {
17408
17409 ;
17410 return 0;
17411 }
17412 _ACEOF
17413 if ac_fn_c_try_link "$LINENO"; then :
17414 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17415 lt_cv_shlibpath_overrides_runpath=yes
17416 fi
17417 fi
17418 rm -f core conftest.err conftest.$ac_objext \
17419 conftest$ac_exeext conftest.$ac_ext
17420 LDFLAGS=$save_LDFLAGS
17421 libdir=$save_libdir
17422
17423 fi
17424
17425 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17426
17427 # This implies no fast_install, which is unacceptable.
17428 # Some rework will be needed to allow for fast_install
17429 # before this can be enabled.
17430 hardcode_into_libs=yes
17431
17432 # Ideally, we could use ldconfig to report *all* directores which are
17433 # searched for libraries, however this is still not possible. Aside from not
17434 # being certain /sbin/ldconfig is available, command
17435 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
17436 # even though it is searched at run-time. Try to do the best guess by
17437 # appending ld.so.conf contents (and includes) to the search path.
17438 if test -f /etc/ld.so.conf; then
17439 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' ' '`
17440 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17441 fi
17442
17443 # We used to test for /lib/ld.so.1 and disable shared libraries on
17444 # powerpc, because MkLinux only supported shared libraries with the
17445 # GNU dynamic linker. Since this was broken with cross compilers,
17446 # most powerpc-linux boxes support dynamic linking these days and
17447 # people can always --disable-shared, the test was removed, and we
17448 # assume the GNU/Linux dynamic linker is in use.
17449 dynamic_linker='GNU/Linux ld.so'
17450 ;;
17451
17452 netbsdelf*-gnu)
17453 version_type=linux
17454 need_lib_prefix=no
17455 need_version=no
17456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17457 soname_spec='${libname}${release}${shared_ext}$major'
17458 shlibpath_var=LD_LIBRARY_PATH
17459 shlibpath_overrides_runpath=no
17460 hardcode_into_libs=yes
17461 dynamic_linker='NetBSD ld.elf_so'
17462 ;;
17463
17464 netbsd*)
17465 version_type=sunos
17466 need_lib_prefix=no
17467 need_version=no
17468 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17469 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17470 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17471 dynamic_linker='NetBSD (a.out) ld.so'
17472 else
17473 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17474 soname_spec='$libname$release$shared_ext$major'
17475 dynamic_linker='NetBSD ld.elf_so'
17476 fi
17477 shlibpath_var=LD_LIBRARY_PATH
17478 shlibpath_overrides_runpath=yes
17479 hardcode_into_libs=yes
17480 ;;
17481
17482 newsos6)
17483 version_type=linux # correct to gnu/linux during the next big refactor
17484 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17485 shlibpath_var=LD_LIBRARY_PATH
17486 shlibpath_overrides_runpath=yes
17487 ;;
17488
17489 *nto* | *qnx*)
17490 version_type=qnx
17491 need_lib_prefix=no
17492 need_version=no
17493 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17494 soname_spec='$libname$release$shared_ext$major'
17495 shlibpath_var=LD_LIBRARY_PATH
17496 shlibpath_overrides_runpath=no
17497 hardcode_into_libs=yes
17498 dynamic_linker='ldqnx.so'
17499 ;;
17500
17501 openbsd* | bitrig*)
17502 version_type=sunos
17503 sys_lib_dlsearch_path_spec=/usr/lib
17504 need_lib_prefix=no
17505 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17506 need_version=no
17507 else
17508 need_version=yes
17509 fi
17510 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17511 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17512 shlibpath_var=LD_LIBRARY_PATH
17513 shlibpath_overrides_runpath=yes
17514 ;;
17515
17516 os2*)
17517 libname_spec='$name'
17518 version_type=windows
17519 shrext_cmds=.dll
17520 need_version=no
17521 need_lib_prefix=no
17522 # OS/2 can only load a DLL with a base name of 8 characters or less.
17523 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
17524 v=$($ECHO $release$versuffix | tr -d .-);
17525 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
17526 $ECHO $n$v`$shared_ext'
17527 library_names_spec='${libname}_dll.$libext'
17528 dynamic_linker='OS/2 ld.exe'
17529 shlibpath_var=BEGINLIBPATH
17530 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17531 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17532 postinstall_cmds='base_file=`basename \$file`~
17533 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
17534 dldir=$destdir/`dirname \$dlpath`~
17535 test -d \$dldir || mkdir -p \$dldir~
17536 $install_prog $dir/$dlname \$dldir/$dlname~
17537 chmod a+x \$dldir/$dlname~
17538 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17539 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17540 fi'
17541 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
17542 dlpath=$dir/\$dldll~
17543 $RM \$dlpath'
17544 ;;
17545
17546 osf3* | osf4* | osf5*)
17547 version_type=osf
17548 need_lib_prefix=no
17549 need_version=no
17550 soname_spec='$libname$release$shared_ext$major'
17551 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17552 shlibpath_var=LD_LIBRARY_PATH
17553 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17554 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17555 ;;
17556
17557 rdos*)
17558 dynamic_linker=no
17559 ;;
17560
17561 solaris*)
17562 version_type=linux # correct to gnu/linux during the next big refactor
17563 need_lib_prefix=no
17564 need_version=no
17565 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17566 soname_spec='$libname$release$shared_ext$major'
17567 shlibpath_var=LD_LIBRARY_PATH
17568 shlibpath_overrides_runpath=yes
17569 hardcode_into_libs=yes
17570 # ldd complains unless libraries are executable
17571 postinstall_cmds='chmod +x $lib'
17572 ;;
17573
17574 sunos4*)
17575 version_type=sunos
17576 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17577 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17578 shlibpath_var=LD_LIBRARY_PATH
17579 shlibpath_overrides_runpath=yes
17580 if test yes = "$with_gnu_ld"; then
17581 need_lib_prefix=no
17582 fi
17583 need_version=yes
17584 ;;
17585
17586 sysv4 | sysv4.3*)
17587 version_type=linux # correct to gnu/linux during the next big refactor
17588 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17589 soname_spec='$libname$release$shared_ext$major'
17590 shlibpath_var=LD_LIBRARY_PATH
17591 case $host_vendor in
17592 sni)
17593 shlibpath_overrides_runpath=no
17594 need_lib_prefix=no
17595 runpath_var=LD_RUN_PATH
17596 ;;
17597 siemens)
17598 need_lib_prefix=no
17599 ;;
17600 motorola)
17601 need_lib_prefix=no
17602 need_version=no
17603 shlibpath_overrides_runpath=no
17604 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17605 ;;
17606 esac
17607 ;;
17608
17609 sysv4*MP*)
17610 if test -d /usr/nec; then
17611 version_type=linux # correct to gnu/linux during the next big refactor
17612 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
17613 soname_spec='$libname$shared_ext.$major'
17614 shlibpath_var=LD_LIBRARY_PATH
17615 fi
17616 ;;
17617
17618 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17619 version_type=sco
17620 need_lib_prefix=no
17621 need_version=no
17622 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
17623 soname_spec='$libname$release$shared_ext$major'
17624 shlibpath_var=LD_LIBRARY_PATH
17625 shlibpath_overrides_runpath=yes
17626 hardcode_into_libs=yes
17627 if test yes = "$with_gnu_ld"; then
17628 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17629 else
17630 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17631 case $host_os in
17632 sco3.2v5*)
17633 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17634 ;;
17635 esac
17636 fi
17637 sys_lib_dlsearch_path_spec='/usr/lib'
17638 ;;
17639
17640 tpf*)
17641 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17642 version_type=linux # correct to gnu/linux during the next big refactor
17643 need_lib_prefix=no
17644 need_version=no
17645 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17646 shlibpath_var=LD_LIBRARY_PATH
17647 shlibpath_overrides_runpath=no
17648 hardcode_into_libs=yes
17649 ;;
17650
17651 uts4*)
17652 version_type=linux # correct to gnu/linux during the next big refactor
17653 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17654 soname_spec='$libname$release$shared_ext$major'
17655 shlibpath_var=LD_LIBRARY_PATH
17656 ;;
17657
17658 *)
17659 dynamic_linker=no
17660 ;;
17661 esac
17662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17663 $as_echo "$dynamic_linker" >&6; }
17664 test no = "$dynamic_linker" && can_build_shared=no
17665
17666 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17667 if test yes = "$GCC"; then
17668 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17669 fi
17670
17671 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
17672 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
17673 fi
17674
17675 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
17676 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
17677 fi
17678
17679 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
17680 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
17681
17682 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
17683 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
17684
17685 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
17686 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
17687
17688
17689
17690
17691
17692
17693
17694
17695
17696
17697
17698
17699
17700
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17785 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17786 hardcode_action=
17787 if test -n "$hardcode_libdir_flag_spec" ||
17788 test -n "$runpath_var" ||
17789 test yes = "$hardcode_automatic"; then
17790
17791 # We can hardcode non-existent directories.
17792 if test no != "$hardcode_direct" &&
17793 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17794 # have to relink, otherwise we might link with an installed library
17795 # when we should be linking with a yet-to-be-installed one
17796 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
17797 test no != "$hardcode_minus_L"; then
17798 # Linking always hardcodes the temporary library directory.
17799 hardcode_action=relink
17800 else
17801 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17802 hardcode_action=immediate
17803 fi
17804 else
17805 # We cannot hardcode anything, or else we can only hardcode existing
17806 # directories.
17807 hardcode_action=unsupported
17808 fi
17809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17810 $as_echo "$hardcode_action" >&6; }
17811
17812 if test relink = "$hardcode_action" ||
17813 test yes = "$inherit_rpath"; then
17814 # Fast installation is not supported
17815 enable_fast_install=no
17816 elif test yes = "$shlibpath_overrides_runpath" ||
17817 test no = "$enable_shared"; then
17818 # Fast installation is not necessary
17819 enable_fast_install=needless
17820 fi
17821
17822
17823
17824
17825
17826
17827 if test yes != "$enable_dlopen"; then
17828 enable_dlopen=unknown
17829 enable_dlopen_self=unknown
17830 enable_dlopen_self_static=unknown
17831 else
17832 lt_cv_dlopen=no
17833 lt_cv_dlopen_libs=
17834
17835 case $host_os in
17836 beos*)
17837 lt_cv_dlopen=load_add_on
17838 lt_cv_dlopen_libs=
17839 lt_cv_dlopen_self=yes
17840 ;;
17841
17842 mingw* | pw32* | cegcc*)
17843 lt_cv_dlopen=LoadLibrary
17844 lt_cv_dlopen_libs=
17845 ;;
17846
17847 cygwin*)
17848 lt_cv_dlopen=dlopen
17849 lt_cv_dlopen_libs=
17850 ;;
17851
17852 darwin*)
17853 # if libdl is installed we need to link against it
17854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17855 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17856 if ${ac_cv_lib_dl_dlopen+:} false; then :
17857 $as_echo_n "(cached) " >&6
17858 else
17859 ac_check_lib_save_LIBS=$LIBS
17860 LIBS="-ldl $LIBS"
17861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17862 /* end confdefs.h. */
17863
17864 /* Override any GCC internal prototype to avoid an error.
17865 Use char because int might match the return type of a GCC
17866 builtin and then its argument prototype would still apply. */
17867 #ifdef __cplusplus
17868 extern "C"
17869 #endif
17870 char dlopen ();
17871 int
17872 main ()
17873 {
17874 return dlopen ();
17875 ;
17876 return 0;
17877 }
17878 _ACEOF
17879 if ac_fn_c_try_link "$LINENO"; then :
17880 ac_cv_lib_dl_dlopen=yes
17881 else
17882 ac_cv_lib_dl_dlopen=no
17883 fi
17884 rm -f core conftest.err conftest.$ac_objext \
17885 conftest$ac_exeext conftest.$ac_ext
17886 LIBS=$ac_check_lib_save_LIBS
17887 fi
17888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17889 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17890 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17891 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
17892 else
17893
17894 lt_cv_dlopen=dyld
17895 lt_cv_dlopen_libs=
17896 lt_cv_dlopen_self=yes
17897
17898 fi
17899
17900 ;;
17901
17902 tpf*)
17903 # Don't try to run any link tests for TPF. We know it's impossible
17904 # because TPF is a cross-compiler, and we know how we open DSOs.
17905 lt_cv_dlopen=dlopen
17906 lt_cv_dlopen_libs=
17907 lt_cv_dlopen_self=no
17908 ;;
17909
17910 *)
17911 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17912 if test "x$ac_cv_func_shl_load" = xyes; then :
17913 lt_cv_dlopen=shl_load
17914 else
17915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17916 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17917 if ${ac_cv_lib_dld_shl_load+:} false; then :
17918 $as_echo_n "(cached) " >&6
17919 else
17920 ac_check_lib_save_LIBS=$LIBS
17921 LIBS="-ldld $LIBS"
17922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17923 /* end confdefs.h. */
17924
17925 /* Override any GCC internal prototype to avoid an error.
17926 Use char because int might match the return type of a GCC
17927 builtin and then its argument prototype would still apply. */
17928 #ifdef __cplusplus
17929 extern "C"
17930 #endif
17931 char shl_load ();
17932 int
17933 main ()
17934 {
17935 return shl_load ();
17936 ;
17937 return 0;
17938 }
17939 _ACEOF
17940 if ac_fn_c_try_link "$LINENO"; then :
17941 ac_cv_lib_dld_shl_load=yes
17942 else
17943 ac_cv_lib_dld_shl_load=no
17944 fi
17945 rm -f core conftest.err conftest.$ac_objext \
17946 conftest$ac_exeext conftest.$ac_ext
17947 LIBS=$ac_check_lib_save_LIBS
17948 fi
17949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17950 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17951 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
17952 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
17953 else
17954 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17955 if test "x$ac_cv_func_dlopen" = xyes; then :
17956 lt_cv_dlopen=dlopen
17957 else
17958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17959 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17960 if ${ac_cv_lib_dl_dlopen+:} false; then :
17961 $as_echo_n "(cached) " >&6
17962 else
17963 ac_check_lib_save_LIBS=$LIBS
17964 LIBS="-ldl $LIBS"
17965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17966 /* end confdefs.h. */
17967
17968 /* Override any GCC internal prototype to avoid an error.
17969 Use char because int might match the return type of a GCC
17970 builtin and then its argument prototype would still apply. */
17971 #ifdef __cplusplus
17972 extern "C"
17973 #endif
17974 char dlopen ();
17975 int
17976 main ()
17977 {
17978 return dlopen ();
17979 ;
17980 return 0;
17981 }
17982 _ACEOF
17983 if ac_fn_c_try_link "$LINENO"; then :
17984 ac_cv_lib_dl_dlopen=yes
17985 else
17986 ac_cv_lib_dl_dlopen=no
17987 fi
17988 rm -f core conftest.err conftest.$ac_objext \
17989 conftest$ac_exeext conftest.$ac_ext
17990 LIBS=$ac_check_lib_save_LIBS
17991 fi
17992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17993 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17994 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17995 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
17996 else
17997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17998 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17999 if ${ac_cv_lib_svld_dlopen+:} false; then :
18000 $as_echo_n "(cached) " >&6
18001 else
18002 ac_check_lib_save_LIBS=$LIBS
18003 LIBS="-lsvld $LIBS"
18004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18005 /* end confdefs.h. */
18006
18007 /* Override any GCC internal prototype to avoid an error.
18008 Use char because int might match the return type of a GCC
18009 builtin and then its argument prototype would still apply. */
18010 #ifdef __cplusplus
18011 extern "C"
18012 #endif
18013 char dlopen ();
18014 int
18015 main ()
18016 {
18017 return dlopen ();
18018 ;
18019 return 0;
18020 }
18021 _ACEOF
18022 if ac_fn_c_try_link "$LINENO"; then :
18023 ac_cv_lib_svld_dlopen=yes
18024 else
18025 ac_cv_lib_svld_dlopen=no
18026 fi
18027 rm -f core conftest.err conftest.$ac_objext \
18028 conftest$ac_exeext conftest.$ac_ext
18029 LIBS=$ac_check_lib_save_LIBS
18030 fi
18031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18032 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18033 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
18034 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
18035 else
18036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18037 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18038 if ${ac_cv_lib_dld_dld_link+:} false; then :
18039 $as_echo_n "(cached) " >&6
18040 else
18041 ac_check_lib_save_LIBS=$LIBS
18042 LIBS="-ldld $LIBS"
18043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18044 /* end confdefs.h. */
18045
18046 /* Override any GCC internal prototype to avoid an error.
18047 Use char because int might match the return type of a GCC
18048 builtin and then its argument prototype would still apply. */
18049 #ifdef __cplusplus
18050 extern "C"
18051 #endif
18052 char dld_link ();
18053 int
18054 main ()
18055 {
18056 return dld_link ();
18057 ;
18058 return 0;
18059 }
18060 _ACEOF
18061 if ac_fn_c_try_link "$LINENO"; then :
18062 ac_cv_lib_dld_dld_link=yes
18063 else
18064 ac_cv_lib_dld_dld_link=no
18065 fi
18066 rm -f core conftest.err conftest.$ac_objext \
18067 conftest$ac_exeext conftest.$ac_ext
18068 LIBS=$ac_check_lib_save_LIBS
18069 fi
18070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18071 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18072 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
18073 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
18074 fi
18075
18076
18077 fi
18078
18079
18080 fi
18081
18082
18083 fi
18084
18085
18086 fi
18087
18088
18089 fi
18090
18091 ;;
18092 esac
18093
18094 if test no = "$lt_cv_dlopen"; then
18095 enable_dlopen=no
18096 else
18097 enable_dlopen=yes
18098 fi
18099
18100 case $lt_cv_dlopen in
18101 dlopen)
18102 save_CPPFLAGS=$CPPFLAGS
18103 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18104
18105 save_LDFLAGS=$LDFLAGS
18106 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18107
18108 save_LIBS=$LIBS
18109 LIBS="$lt_cv_dlopen_libs $LIBS"
18110
18111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18112 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18113 if ${lt_cv_dlopen_self+:} false; then :
18114 $as_echo_n "(cached) " >&6
18115 else
18116 if test yes = "$cross_compiling"; then :
18117 lt_cv_dlopen_self=cross
18118 else
18119 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18120 lt_status=$lt_dlunknown
18121 cat > conftest.$ac_ext <<_LT_EOF
18122 #line $LINENO "configure"
18123 #include "confdefs.h"
18124
18125 #if HAVE_DLFCN_H
18126 #include <dlfcn.h>
18127 #endif
18128
18129 #include <stdio.h>
18130
18131 #ifdef RTLD_GLOBAL
18132 # define LT_DLGLOBAL RTLD_GLOBAL
18133 #else
18134 # ifdef DL_GLOBAL
18135 # define LT_DLGLOBAL DL_GLOBAL
18136 # else
18137 # define LT_DLGLOBAL 0
18138 # endif
18139 #endif
18140
18141 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18142 find out it does not work in some platform. */
18143 #ifndef LT_DLLAZY_OR_NOW
18144 # ifdef RTLD_LAZY
18145 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18146 # else
18147 # ifdef DL_LAZY
18148 # define LT_DLLAZY_OR_NOW DL_LAZY
18149 # else
18150 # ifdef RTLD_NOW
18151 # define LT_DLLAZY_OR_NOW RTLD_NOW
18152 # else
18153 # ifdef DL_NOW
18154 # define LT_DLLAZY_OR_NOW DL_NOW
18155 # else
18156 # define LT_DLLAZY_OR_NOW 0
18157 # endif
18158 # endif
18159 # endif
18160 # endif
18161 #endif
18162
18163 /* When -fvisibility=hidden is used, assume the code has been annotated
18164 correspondingly for the symbols needed. */
18165 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18166 int fnord () __attribute__((visibility("default")));
18167 #endif
18168
18169 int fnord () { return 42; }
18170 int main ()
18171 {
18172 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18173 int status = $lt_dlunknown;
18174
18175 if (self)
18176 {
18177 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18178 else
18179 {
18180 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18181 else puts (dlerror ());
18182 }
18183 /* dlclose (self); */
18184 }
18185 else
18186 puts (dlerror ());
18187
18188 return status;
18189 }
18190 _LT_EOF
18191 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18192 (eval $ac_link) 2>&5
18193 ac_status=$?
18194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18195 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
18196 (./conftest; exit; ) >&5 2>/dev/null
18197 lt_status=$?
18198 case x$lt_status in
18199 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18200 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18201 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18202 esac
18203 else :
18204 # compilation failed
18205 lt_cv_dlopen_self=no
18206 fi
18207 fi
18208 rm -fr conftest*
18209
18210
18211 fi
18212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18213 $as_echo "$lt_cv_dlopen_self" >&6; }
18214
18215 if test yes = "$lt_cv_dlopen_self"; then
18216 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18218 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18219 if ${lt_cv_dlopen_self_static+:} false; then :
18220 $as_echo_n "(cached) " >&6
18221 else
18222 if test yes = "$cross_compiling"; then :
18223 lt_cv_dlopen_self_static=cross
18224 else
18225 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18226 lt_status=$lt_dlunknown
18227 cat > conftest.$ac_ext <<_LT_EOF
18228 #line $LINENO "configure"
18229 #include "confdefs.h"
18230
18231 #if HAVE_DLFCN_H
18232 #include <dlfcn.h>
18233 #endif
18234
18235 #include <stdio.h>
18236
18237 #ifdef RTLD_GLOBAL
18238 # define LT_DLGLOBAL RTLD_GLOBAL
18239 #else
18240 # ifdef DL_GLOBAL
18241 # define LT_DLGLOBAL DL_GLOBAL
18242 # else
18243 # define LT_DLGLOBAL 0
18244 # endif
18245 #endif
18246
18247 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18248 find out it does not work in some platform. */
18249 #ifndef LT_DLLAZY_OR_NOW
18250 # ifdef RTLD_LAZY
18251 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18252 # else
18253 # ifdef DL_LAZY
18254 # define LT_DLLAZY_OR_NOW DL_LAZY
18255 # else
18256 # ifdef RTLD_NOW
18257 # define LT_DLLAZY_OR_NOW RTLD_NOW
18258 # else
18259 # ifdef DL_NOW
18260 # define LT_DLLAZY_OR_NOW DL_NOW
18261 # else
18262 # define LT_DLLAZY_OR_NOW 0
18263 # endif
18264 # endif
18265 # endif
18266 # endif
18267 #endif
18268
18269 /* When -fvisibility=hidden is used, assume the code has been annotated
18270 correspondingly for the symbols needed. */
18271 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18272 int fnord () __attribute__((visibility("default")));
18273 #endif
18274
18275 int fnord () { return 42; }
18276 int main ()
18277 {
18278 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18279 int status = $lt_dlunknown;
18280
18281 if (self)
18282 {
18283 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18284 else
18285 {
18286 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18287 else puts (dlerror ());
18288 }
18289 /* dlclose (self); */
18290 }
18291 else
18292 puts (dlerror ());
18293
18294 return status;
18295 }
18296 _LT_EOF
18297 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18298 (eval $ac_link) 2>&5
18299 ac_status=$?
18300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18301 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
18302 (./conftest; exit; ) >&5 2>/dev/null
18303 lt_status=$?
18304 case x$lt_status in
18305 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18306 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18307 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18308 esac
18309 else :
18310 # compilation failed
18311 lt_cv_dlopen_self_static=no
18312 fi
18313 fi
18314 rm -fr conftest*
18315
18316
18317 fi
18318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18319 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18320 fi
18321
18322 CPPFLAGS=$save_CPPFLAGS
18323 LDFLAGS=$save_LDFLAGS
18324 LIBS=$save_LIBS
18325 ;;
18326 esac
18327
18328 case $lt_cv_dlopen_self in
18329 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18330 *) enable_dlopen_self=unknown ;;
18331 esac
18332
18333 case $lt_cv_dlopen_self_static in
18334 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18335 *) enable_dlopen_self_static=unknown ;;
18336 esac
18337 fi
18338
18339
18340
18341
18342
18343
18344
18345
18346
18347
18348
18349
18350
18351
18352
18353
18354
18355 striplib=
18356 old_striplib=
18357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18358 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18359 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18360 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18361 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18363 $as_echo "yes" >&6; }
18364 else
18365 # FIXME - insert some real tests, host_os isn't really good enough
18366 case $host_os in
18367 darwin*)
18368 if test -n "$STRIP"; then
18369 striplib="$STRIP -x"
18370 old_striplib="$STRIP -S"
18371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18372 $as_echo "yes" >&6; }
18373 else
18374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18375 $as_echo "no" >&6; }
18376 fi
18377 ;;
18378 *)
18379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18380 $as_echo "no" >&6; }
18381 ;;
18382 esac
18383 fi
18384
18385
18386
18387
18388
18389
18390
18391
18392
18393
18394
18395
18396 # Report what library types will actually be built
18397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18398 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18400 $as_echo "$can_build_shared" >&6; }
18401
18402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18403 $as_echo_n "checking whether to build shared libraries... " >&6; }
18404 test no = "$can_build_shared" && enable_shared=no
18405
18406 # On AIX, shared libraries and static libraries use the same namespace, and
18407 # are all built from PIC.
18408 case $host_os in
18409 aix3*)
18410 test yes = "$enable_shared" && enable_static=no
18411 if test -n "$RANLIB"; then
18412 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18413 postinstall_cmds='$RANLIB $lib'
18414 fi
18415 ;;
18416
18417 aix[4-9]*)
18418 if test ia64 != "$host_cpu"; then
18419 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
18420 yes,aix,yes) ;; # shared object as lib.so file only
18421 yes,svr4,*) ;; # shared object as lib.so archive member only
18422 yes,*) enable_static=no ;; # shared object in lib.a archive as well
18423 esac
18424 fi
18425 ;;
18426 esac
18427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18428 $as_echo "$enable_shared" >&6; }
18429
18430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18431 $as_echo_n "checking whether to build static libraries... " >&6; }
18432 # Make sure either enable_shared or enable_static is yes.
18433 test yes = "$enable_shared" || enable_static=yes
18434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18435 $as_echo "$enable_static" >&6; }
18436
18437
18438
18439
18440 fi
18441 ac_ext=c
18442 ac_cpp='$CPP $CPPFLAGS'
18443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18446
18447 CC=$lt_save_CC
18448
18449
18450
18451
18452
18453
18454
18455
18456
18457
18458
18459
18460
18461
18462
18463 ac_config_commands="$ac_config_commands libtool"
18464
18465
18466
18467
18468 # Only expand once:
18469
18470
18471
18472
18473
18474 # Define a configure option for an alternate module directory
18475
18476 # Check whether --with-xorg-module-dir was given.
18477 if test "${with_xorg_module_dir+set}" = set; then :
18478 withval=$with_xorg_module_dir; moduledir="$withval"
18479 else
18480 moduledir="$libdir/xorg/modules"
18481 fi
18482
18483
18484 # Check whether --enable-dri was given.
18485 if test "${enable_dri+set}" = set; then :
18486 enableval=$enable_dri; DRI="$enableval"
18487 else
18488 DRI=auto
18489 fi
18490
18491
18492 # Store the list of server defined optional extensions in REQUIRED_MODULES
18493
18494
18495 SAVE_CFLAGS="$CFLAGS"
18496 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18498 /* end confdefs.h. */
18499
18500 #include "xorg-server.h"
18501 #if !defined RANDR
18502 #error RANDR not defined
18503 #endif
18504
18505 int
18506 main ()
18507 {
18508
18509 ;
18510 return 0;
18511 }
18512 _ACEOF
18513 if ac_fn_c_try_compile "$LINENO"; then :
18514 _EXT_CHECK=yes
18515 else
18516 _EXT_CHECK=no
18517 fi
18518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18519 CFLAGS="$SAVE_CFLAGS"
18520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
18521 $as_echo_n "checking if RANDR is defined... " >&6; }
18522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18523 $as_echo "$_EXT_CHECK" >&6; }
18524 if test "$_EXT_CHECK" != no; then
18525 REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
18526 fi
18527
18528
18529
18530 SAVE_CFLAGS="$CFLAGS"
18531 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18533 /* end confdefs.h. */
18534
18535 #include "xorg-server.h"
18536 #if !defined RENDER
18537 #error RENDER not defined
18538 #endif
18539
18540 int
18541 main ()
18542 {
18543
18544 ;
18545 return 0;
18546 }
18547 _ACEOF
18548 if ac_fn_c_try_compile "$LINENO"; then :
18549 _EXT_CHECK=yes
18550 else
18551 _EXT_CHECK=no
18552 fi
18553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18554 CFLAGS="$SAVE_CFLAGS"
18555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5
18556 $as_echo_n "checking if RENDER is defined... " >&6; }
18557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18558 $as_echo "$_EXT_CHECK" >&6; }
18559 if test "$_EXT_CHECK" != no; then
18560 REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
18561 fi
18562
18563
18564
18565 SAVE_CFLAGS="$CFLAGS"
18566 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18568 /* end confdefs.h. */
18569
18570 #include "xorg-server.h"
18571 #if !defined XV
18572 #error XV not defined
18573 #endif
18574
18575 int
18576 main ()
18577 {
18578
18579 ;
18580 return 0;
18581 }
18582 _ACEOF
18583 if ac_fn_c_try_compile "$LINENO"; then :
18584 _EXT_CHECK=yes
18585 else
18586 _EXT_CHECK=no
18587 fi
18588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18589 CFLAGS="$SAVE_CFLAGS"
18590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5
18591 $as_echo_n "checking if XV is defined... " >&6; }
18592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18593 $as_echo "$_EXT_CHECK" >&6; }
18594 if test "$_EXT_CHECK" != no; then
18595 REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
18596 fi
18597
18598
18599
18600 SAVE_CFLAGS="$CFLAGS"
18601 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18603 /* end confdefs.h. */
18604
18605 #include "xorg-server.h"
18606 #if !defined DPMSExtension
18607 #error DPMSExtension not defined
18608 #endif
18609
18610 int
18611 main ()
18612 {
18613
18614 ;
18615 return 0;
18616 }
18617 _ACEOF
18618 if ac_fn_c_try_compile "$LINENO"; then :
18619 _EXT_CHECK=yes
18620 else
18621 _EXT_CHECK=no
18622 fi
18623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18624 CFLAGS="$SAVE_CFLAGS"
18625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
18626 $as_echo_n "checking if DPMSExtension is defined... " >&6; }
18627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18628 $as_echo "$_EXT_CHECK" >&6; }
18629 if test "$_EXT_CHECK" != no; then
18630 REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
18631 fi
18632
18633
18634 # Obtain compiler/linker options for the driver dependencies
18635
18636 pkg_failed=no
18637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
18638 $as_echo_n "checking for XORG... " >&6; }
18639
18640 if test -n "$XORG_CFLAGS"; then
18641 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
18642 elif test -n "$PKG_CONFIG"; then
18643 if test -n "$PKG_CONFIG" && \
18644 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
18645 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
18646 ac_status=$?
18647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18648 test $ac_status = 0; }; then
18649 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
18650 test "x$?" != "x0" && pkg_failed=yes
18651 else
18652 pkg_failed=yes
18653 fi
18654 else
18655 pkg_failed=untried
18656 fi
18657 if test -n "$XORG_LIBS"; then
18658 pkg_cv_XORG_LIBS="$XORG_LIBS"
18659 elif test -n "$PKG_CONFIG"; then
18660 if test -n "$PKG_CONFIG" && \
18661 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
18662 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
18663 ac_status=$?
18664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18665 test $ac_status = 0; }; then
18666 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
18667 test "x$?" != "x0" && pkg_failed=yes
18668 else
18669 pkg_failed=yes
18670 fi
18671 else
18672 pkg_failed=untried
18673 fi
18674
18675
18676
18677 if test $pkg_failed = yes; then
18678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18679 $as_echo "no" >&6; }
18680
18681 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18682 _pkg_short_errors_supported=yes
18683 else
18684 _pkg_short_errors_supported=no
18685 fi
18686 if test $_pkg_short_errors_supported = yes; then
18687 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
18688 else
18689 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
18690 fi
18691 # Put the nasty error message in config.log where it belongs
18692 echo "$XORG_PKG_ERRORS" >&5
18693
18694 as_fn_error $? "Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met:
18695
18696 $XORG_PKG_ERRORS
18697
18698 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18699 installed software in a non-standard prefix.
18700
18701 Alternatively, you may set the environment variables XORG_CFLAGS
18702 and XORG_LIBS to avoid the need to call pkg-config.
18703 See the pkg-config man page for more details." "$LINENO" 5
18704 elif test $pkg_failed = untried; then
18705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18706 $as_echo "no" >&6; }
18707 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18708 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18709 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18710 is in your PATH or set the PKG_CONFIG environment variable to the full
18711 path to pkg-config.
18712
18713 Alternatively, you may set the environment variables XORG_CFLAGS
18714 and XORG_LIBS to avoid the need to call pkg-config.
18715 See the pkg-config man page for more details.
18716
18717 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18718 See \`config.log' for more details" "$LINENO" 5; }
18719 else
18720 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
18721 XORG_LIBS=$pkg_cv_XORG_LIBS
18722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18723 $as_echo "yes" >&6; }
18724
18725 fi
18726 sdkdir=`$PKG_CONFIG --variable=sdkdir xorg-server`
18727
18728 # Checks for libraries.
18729 SAVE_CPPFLAGS="$CPPFLAGS"
18730 CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
18731 ac_fn_c_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\"
18732 "
18733 if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes; then :
18734 XSERVER_LIBPCIACCESS=yes
18735 else
18736 XSERVER_LIBPCIACCESS=no
18737 fi
18738
18739 CPPFLAGS="$SAVE_CPPFLAGS"
18740
18741 if test "$DRI" != no; then
18742 as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/dri.h" | $as_tr_sh`
18743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/dri.h" >&5
18744 $as_echo_n "checking for ${sdkdir}/dri.h... " >&6; }
18745 if eval \${$as_ac_File+:} false; then :
18746 $as_echo_n "(cached) " >&6
18747 else
18748 test "$cross_compiling" = yes &&
18749 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
18750 if test -r "${sdkdir}/dri.h"; then
18751 eval "$as_ac_File=yes"
18752 else
18753 eval "$as_ac_File=no"
18754 fi
18755 fi
18756 eval ac_res=\$$as_ac_File
18757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18758 $as_echo "$ac_res" >&6; }
18759 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
18760 have_dri_h="yes"
18761 else
18762 have_dri_h="no"
18763 fi
18764
18765 as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/sarea.h" | $as_tr_sh`
18766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/sarea.h" >&5
18767 $as_echo_n "checking for ${sdkdir}/sarea.h... " >&6; }
18768 if eval \${$as_ac_File+:} false; then :
18769 $as_echo_n "(cached) " >&6
18770 else
18771 test "$cross_compiling" = yes &&
18772 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
18773 if test -r "${sdkdir}/sarea.h"; then
18774 eval "$as_ac_File=yes"
18775 else
18776 eval "$as_ac_File=no"
18777 fi
18778 fi
18779 eval ac_res=\$$as_ac_File
18780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18781 $as_echo "$ac_res" >&6; }
18782 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
18783 have_sarea_h="yes"
18784 else
18785 have_sarea_h="no"
18786 fi
18787
18788 as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/dristruct.h" | $as_tr_sh`
18789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/dristruct.h" >&5
18790 $as_echo_n "checking for ${sdkdir}/dristruct.h... " >&6; }
18791 if eval \${$as_ac_File+:} false; then :
18792 $as_echo_n "(cached) " >&6
18793 else
18794 test "$cross_compiling" = yes &&
18795 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
18796 if test -r "${sdkdir}/dristruct.h"; then
18797 eval "$as_ac_File=yes"
18798 else
18799 eval "$as_ac_File=no"
18800 fi
18801 fi
18802 eval ac_res=\$$as_ac_File
18803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18804 $as_echo "$ac_res" >&6; }
18805 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
18806 have_dristruct_h="yes"
18807 else
18808 have_dristruct_h="no"
18809 fi
18810
18811 fi
18812
18813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include DRI support" >&5
18814 $as_echo_n "checking whether to include DRI support... " >&6; }
18815 if test x$DRI = xauto; then
18816 if test "$have_dri_h" = yes -a \
18817 "$have_sarea_h" = yes -a \
18818 "$have_dristruct_h" = yes; then
18819 DRI="yes"
18820 else
18821 DRI="no"
18822 fi
18823 fi
18824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DRI" >&5
18825 $as_echo "$DRI" >&6; }
18826
18827 if test x$DRI = xyes; then
18828 DRI_TRUE=
18829 DRI_FALSE='#'
18830 else
18831 DRI_TRUE='#'
18832 DRI_FALSE=
18833 fi
18834
18835 if test "$DRI" = yes; then
18836
18837 pkg_failed=no
18838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRI" >&5
18839 $as_echo_n "checking for DRI... " >&6; }
18840
18841 if test -n "$DRI_CFLAGS"; then
18842 pkg_cv_DRI_CFLAGS="$DRI_CFLAGS"
18843 elif test -n "$PKG_CONFIG"; then
18844 if test -n "$PKG_CONFIG" && \
18845 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.0 xf86driproto\""; } >&5
18846 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.0 xf86driproto") 2>&5
18847 ac_status=$?
18848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18849 test $ac_status = 0; }; then
18850 pkg_cv_DRI_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.0 xf86driproto" 2>/dev/null`
18851 test "x$?" != "x0" && pkg_failed=yes
18852 else
18853 pkg_failed=yes
18854 fi
18855 else
18856 pkg_failed=untried
18857 fi
18858 if test -n "$DRI_LIBS"; then
18859 pkg_cv_DRI_LIBS="$DRI_LIBS"
18860 elif test -n "$PKG_CONFIG"; then
18861 if test -n "$PKG_CONFIG" && \
18862 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.0 xf86driproto\""; } >&5
18863 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.0 xf86driproto") 2>&5
18864 ac_status=$?
18865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18866 test $ac_status = 0; }; then
18867 pkg_cv_DRI_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.0 xf86driproto" 2>/dev/null`
18868 test "x$?" != "x0" && pkg_failed=yes
18869 else
18870 pkg_failed=yes
18871 fi
18872 else
18873 pkg_failed=untried
18874 fi
18875
18876
18877
18878 if test $pkg_failed = yes; then
18879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18880 $as_echo "no" >&6; }
18881
18882 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18883 _pkg_short_errors_supported=yes
18884 else
18885 _pkg_short_errors_supported=no
18886 fi
18887 if test $_pkg_short_errors_supported = yes; then
18888 DRI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 2.0 xf86driproto" 2>&1`
18889 else
18890 DRI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 2.0 xf86driproto" 2>&1`
18891 fi
18892 # Put the nasty error message in config.log where it belongs
18893 echo "$DRI_PKG_ERRORS" >&5
18894
18895 as_fn_error $? "Package requirements (libdrm >= 2.0 xf86driproto) were not met:
18896
18897 $DRI_PKG_ERRORS
18898
18899 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18900 installed software in a non-standard prefix.
18901
18902 Alternatively, you may set the environment variables DRI_CFLAGS
18903 and DRI_LIBS to avoid the need to call pkg-config.
18904 See the pkg-config man page for more details." "$LINENO" 5
18905 elif test $pkg_failed = untried; then
18906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18907 $as_echo "no" >&6; }
18908 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18909 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18910 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18911 is in your PATH or set the PKG_CONFIG environment variable to the full
18912 path to pkg-config.
18913
18914 Alternatively, you may set the environment variables DRI_CFLAGS
18915 and DRI_LIBS to avoid the need to call pkg-config.
18916 See the pkg-config man page for more details.
18917
18918 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18919 See \`config.log' for more details" "$LINENO" 5; }
18920 else
18921 DRI_CFLAGS=$pkg_cv_DRI_CFLAGS
18922 DRI_LIBS=$pkg_cv_DRI_LIBS
18923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18924 $as_echo "yes" >&6; }
18925
18926 fi
18927
18928 $as_echo "#define TDFXDRI 1" >>confdefs.h
18929
18930
18931 $as_echo "#define TDFXDRI_DEVEL 1" >>confdefs.h
18932
18933 fi
18934
18935 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
18936
18937 pkg_failed=no
18938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
18939 $as_echo_n "checking for PCIACCESS... " >&6; }
18940
18941 if test -n "$PCIACCESS_CFLAGS"; then
18942 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
18943 elif test -n "$PKG_CONFIG"; then
18944 if test -n "$PKG_CONFIG" && \
18945 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
18946 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
18947 ac_status=$?
18948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18949 test $ac_status = 0; }; then
18950 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null`
18951 test "x$?" != "x0" && pkg_failed=yes
18952 else
18953 pkg_failed=yes
18954 fi
18955 else
18956 pkg_failed=untried
18957 fi
18958 if test -n "$PCIACCESS_LIBS"; then
18959 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
18960 elif test -n "$PKG_CONFIG"; then
18961 if test -n "$PKG_CONFIG" && \
18962 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
18963 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
18964 ac_status=$?
18965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18966 test $ac_status = 0; }; then
18967 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null`
18968 test "x$?" != "x0" && pkg_failed=yes
18969 else
18970 pkg_failed=yes
18971 fi
18972 else
18973 pkg_failed=untried
18974 fi
18975
18976
18977
18978 if test $pkg_failed = yes; then
18979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18980 $as_echo "no" >&6; }
18981
18982 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18983 _pkg_short_errors_supported=yes
18984 else
18985 _pkg_short_errors_supported=no
18986 fi
18987 if test $_pkg_short_errors_supported = yes; then
18988 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1`
18989 else
18990 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1`
18991 fi
18992 # Put the nasty error message in config.log where it belongs
18993 echo "$PCIACCESS_PKG_ERRORS" >&5
18994
18995 as_fn_error $? "Package requirements (pciaccess >= 0.8.0) were not met:
18996
18997 $PCIACCESS_PKG_ERRORS
18998
18999 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19000 installed software in a non-standard prefix.
19001
19002 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
19003 and PCIACCESS_LIBS to avoid the need to call pkg-config.
19004 See the pkg-config man page for more details." "$LINENO" 5
19005 elif test $pkg_failed = untried; then
19006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19007 $as_echo "no" >&6; }
19008 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19009 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19010 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19011 is in your PATH or set the PKG_CONFIG environment variable to the full
19012 path to pkg-config.
19013
19014 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
19015 and PCIACCESS_LIBS to avoid the need to call pkg-config.
19016 See the pkg-config man page for more details.
19017
19018 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19019 See \`config.log' for more details" "$LINENO" 5; }
19020 else
19021 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
19022 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
19023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19024 $as_echo "yes" >&6; }
19025
19026 fi
19027 XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS"
19028 fi
19029 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
19030 XSERVER_LIBPCIACCESS_TRUE=
19031 XSERVER_LIBPCIACCESS_FALSE='#'
19032 else
19033 XSERVER_LIBPCIACCESS_TRUE='#'
19034 XSERVER_LIBPCIACCESS_FALSE=
19035 fi
19036
19037
19038 # Check whether --enable-xaa was given.
19039 if test "${enable_xaa+set}" = set; then :
19040 enableval=$enable_xaa; XAA="$enableval"
19041 else
19042 XAA=auto
19043 fi
19044
19045 if test "x$XAA" != xno; then
19046 save_CFLAGS=$CFLAGS
19047 save_CPPFLAGS=$CPPFLAGS
19048 CFLAGS=$XORG_CFLAGS
19049 CPPFLAGS="$XORG_CFLAGS"
19050 for ac_header in xaa.h
19051 do :
19052 ac_fn_c_check_header_mongrel "$LINENO" "xaa.h" "ac_cv_header_xaa_h" "$ac_includes_default"
19053 if test "x$ac_cv_header_xaa_h" = xyes; then :
19054 cat >>confdefs.h <<_ACEOF
19055 #define HAVE_XAA_H 1
19056 _ACEOF
19057 XAA=yes
19058 else
19059 XAA=no
19060 fi
19061
19062 done
19063
19064 CFLAGS=$save_CFLAGS
19065 CPPFLAGS=$save_CPPFLAGS
19066 fi
19067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include XAA support" >&5
19068 $as_echo_n "checking whether to include XAA support... " >&6; }
19069 if test "x$XAA" = xyes; then
19070 XAA_TRUE=
19071 XAA_FALSE='#'
19072 else
19073 XAA_TRUE='#'
19074 XAA_FALSE=
19075 fi
19076
19077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XAA" >&5
19078 $as_echo "$XAA" >&6; }
19079
19080
19081
19082 DRIVER_NAME=tdfx
19083
19084
19085 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
19086
19087 cat >confcache <<\_ACEOF
19088 # This file is a shell script that caches the results of configure
19089 # tests run on this system so they can be shared between configure
19090 # scripts and configure runs, see configure's option --config-cache.
19091 # It is not useful on other systems. If it contains results you don't
19092 # want to keep, you may remove or edit it.
19093 #
19094 # config.status only pays attention to the cache file if you give it
19095 # the --recheck option to rerun configure.
19096 #
19097 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19098 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19099 # following values.
19100
19101 _ACEOF
19102
19103 # The following way of writing the cache mishandles newlines in values,
19104 # but we know of no workaround that is simple, portable, and efficient.
19105 # So, we kill variables containing newlines.
19106 # Ultrix sh set writes to stderr and can't be redirected directly,
19107 # and sets the high bit in the cache file unless we assign to the vars.
19108 (
19109 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19110 eval ac_val=\$$ac_var
19111 case $ac_val in #(
19112 *${as_nl}*)
19113 case $ac_var in #(
19114 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19115 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19116 esac
19117 case $ac_var in #(
19118 _ | IFS | as_nl) ;; #(
19119 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19120 *) { eval $ac_var=; unset $ac_var;} ;;
19121 esac ;;
19122 esac
19123 done
19124
19125 (set) 2>&1 |
19126 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19127 *${as_nl}ac_space=\ *)
19128 # `set' does not quote correctly, so add quotes: double-quote
19129 # substitution turns \\\\ into \\, and sed turns \\ into \.
19130 sed -n \
19131 "s/'/'\\\\''/g;
19132 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19133 ;; #(
19134 *)
19135 # `set' quotes correctly as required by POSIX, so do not add quotes.
19136 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19137 ;;
19138 esac |
19139 sort
19140 ) |
19141 sed '
19142 /^ac_cv_env_/b end
19143 t clear
19144 :clear
19145 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19146 t end
19147 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19148 :end' >>confcache
19149 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19150 if test -w "$cache_file"; then
19151 if test "x$cache_file" != "x/dev/null"; then
19152 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19153 $as_echo "$as_me: updating cache $cache_file" >&6;}
19154 if test ! -f "$cache_file" || test -h "$cache_file"; then
19155 cat confcache >"$cache_file"
19156 else
19157 case $cache_file in #(
19158 */* | ?:*)
19159 mv -f confcache "$cache_file"$$ &&
19160 mv -f "$cache_file"$$ "$cache_file" ;; #(
19161 *)
19162 mv -f confcache "$cache_file" ;;
19163 esac
19164 fi
19165 fi
19166 else
19167 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19168 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19169 fi
19170 fi
19171 rm -f confcache
19172
19173 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19174 # Let make expand exec_prefix.
19175 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19176
19177 DEFS=-DHAVE_CONFIG_H
19178
19179 ac_libobjs=
19180 ac_ltlibobjs=
19181 U=
19182 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19183 # 1. Remove the extension, and $U if already installed.
19184 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19185 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19186 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19187 # will be set to the directory where LIBOBJS objects are built.
19188 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19189 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19190 done
19191 LIBOBJS=$ac_libobjs
19192
19193 LTLIBOBJS=$ac_ltlibobjs
19194
19195
19196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19197 $as_echo_n "checking that generated files are newer than configure... " >&6; }
19198 if test -n "$am_sleep_pid"; then
19199 # Hide warnings about reused PIDs.
19200 wait $am_sleep_pid 2>/dev/null
19201 fi
19202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19203 $as_echo "done" >&6; }
19204 if test -n "$EXEEXT"; then
19205 am__EXEEXT_TRUE=
19206 am__EXEEXT_FALSE='#'
19207 else
19208 am__EXEEXT_TRUE='#'
19209 am__EXEEXT_FALSE=
19210 fi
19211
19212 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19213 as_fn_error $? "conditional \"AMDEP\" was never defined.
19214 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19215 fi
19216 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19217 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19218 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19219 fi
19220 if test -z "${DRI_TRUE}" && test -z "${DRI_FALSE}"; then
19221 as_fn_error $? "conditional \"DRI\" was never defined.
19222 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19223 fi
19224 if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then
19225 as_fn_error $? "conditional \"XSERVER_LIBPCIACCESS\" was never defined.
19226 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19227 fi
19228 if test -z "${XAA_TRUE}" && test -z "${XAA_FALSE}"; then
19229 as_fn_error $? "conditional \"XAA\" was never defined.
19230 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19231 fi
19232
19233 : "${CONFIG_STATUS=./config.status}"
19234 ac_write_fail=0
19235 ac_clean_files_save=$ac_clean_files
19236 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19237 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19238 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19239 as_write_fail=0
19240 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19241 #! $SHELL
19242 # Generated by $as_me.
19243 # Run this file to recreate the current configuration.
19244 # Compiler output produced by configure, useful for debugging
19245 # configure, is in config.log if it exists.
19246
19247 debug=false
19248 ac_cs_recheck=false
19249 ac_cs_silent=false
19250
19251 SHELL=\${CONFIG_SHELL-$SHELL}
19252 export SHELL
19253 _ASEOF
19254 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19255 ## -------------------- ##
19256 ## M4sh Initialization. ##
19257 ## -------------------- ##
19258
19259 # Be more Bourne compatible
19260 DUALCASE=1; export DUALCASE # for MKS sh
19261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19262 emulate sh
19263 NULLCMD=:
19264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19265 # is contrary to our usage. Disable this feature.
19266 alias -g '${1+"$@"}'='"$@"'
19267 setopt NO_GLOB_SUBST
19268 else
19269 case `(set -o) 2>/dev/null` in #(
19270 *posix*) :
19271 set -o posix ;; #(
19272 *) :
19273 ;;
19274 esac
19275 fi
19276
19277
19278 as_nl='
19279 '
19280 export as_nl
19281 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19282 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19283 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19284 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19285 # Prefer a ksh shell builtin over an external printf program on Solaris,
19286 # but without wasting forks for bash or zsh.
19287 if test -z "$BASH_VERSION$ZSH_VERSION" \
19288 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19289 as_echo='print -r --'
19290 as_echo_n='print -rn --'
19291 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19292 as_echo='printf %s\n'
19293 as_echo_n='printf %s'
19294 else
19295 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19296 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19297 as_echo_n='/usr/ucb/echo -n'
19298 else
19299 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19300 as_echo_n_body='eval
19301 arg=$1;
19302 case $arg in #(
19303 *"$as_nl"*)
19304 expr "X$arg" : "X\\(.*\\)$as_nl";
19305 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19306 esac;
19307 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19308 '
19309 export as_echo_n_body
19310 as_echo_n='sh -c $as_echo_n_body as_echo'
19311 fi
19312 export as_echo_body
19313 as_echo='sh -c $as_echo_body as_echo'
19314 fi
19315
19316 # The user is always right.
19317 if test "${PATH_SEPARATOR+set}" != set; then
19318 PATH_SEPARATOR=:
19319 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19320 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19321 PATH_SEPARATOR=';'
19322 }
19323 fi
19324
19325
19326 # IFS
19327 # We need space, tab and new line, in precisely that order. Quoting is
19328 # there to prevent editors from complaining about space-tab.
19329 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19330 # splitting by setting IFS to empty value.)
19331 IFS=" "" $as_nl"
19332
19333 # Find who we are. Look in the path if we contain no directory separator.
19334 as_myself=
19335 case $0 in #((
19336 *[\\/]* ) as_myself=$0 ;;
19337 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19338 for as_dir in $PATH
19339 do
19340 IFS=$as_save_IFS
19341 test -z "$as_dir" && as_dir=.
19342 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19343 done
19344 IFS=$as_save_IFS
19345
19346 ;;
19347 esac
19348 # We did not find ourselves, most probably we were run as `sh COMMAND'
19349 # in which case we are not to be found in the path.
19350 if test "x$as_myself" = x; then
19351 as_myself=$0
19352 fi
19353 if test ! -f "$as_myself"; then
19354 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19355 exit 1
19356 fi
19357
19358 # Unset variables that we do not need and which cause bugs (e.g. in
19359 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19360 # suppresses any "Segmentation fault" message there. '((' could
19361 # trigger a bug in pdksh 5.2.14.
19362 for as_var in BASH_ENV ENV MAIL MAILPATH
19363 do eval test x\${$as_var+set} = xset \
19364 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19365 done
19366 PS1='$ '
19367 PS2='> '
19368 PS4='+ '
19369
19370 # NLS nuisances.
19371 LC_ALL=C
19372 export LC_ALL
19373 LANGUAGE=C
19374 export LANGUAGE
19375
19376 # CDPATH.
19377 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19378
19379
19380 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19381 # ----------------------------------------
19382 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19383 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19384 # script with STATUS, using 1 if that was 0.
19385 as_fn_error ()
19386 {
19387 as_status=$1; test $as_status -eq 0 && as_status=1
19388 if test "$4"; then
19389 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19390 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19391 fi
19392 $as_echo "$as_me: error: $2" >&2
19393 as_fn_exit $as_status
19394 } # as_fn_error
19395
19396
19397 # as_fn_set_status STATUS
19398 # -----------------------
19399 # Set $? to STATUS, without forking.
19400 as_fn_set_status ()
19401 {
19402 return $1
19403 } # as_fn_set_status
19404
19405 # as_fn_exit STATUS
19406 # -----------------
19407 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19408 as_fn_exit ()
19409 {
19410 set +e
19411 as_fn_set_status $1
19412 exit $1
19413 } # as_fn_exit
19414
19415 # as_fn_unset VAR
19416 # ---------------
19417 # Portably unset VAR.
19418 as_fn_unset ()
19419 {
19420 { eval $1=; unset $1;}
19421 }
19422 as_unset=as_fn_unset
19423 # as_fn_append VAR VALUE
19424 # ----------------------
19425 # Append the text in VALUE to the end of the definition contained in VAR. Take
19426 # advantage of any shell optimizations that allow amortized linear growth over
19427 # repeated appends, instead of the typical quadratic growth present in naive
19428 # implementations.
19429 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19430 eval 'as_fn_append ()
19431 {
19432 eval $1+=\$2
19433 }'
19434 else
19435 as_fn_append ()
19436 {
19437 eval $1=\$$1\$2
19438 }
19439 fi # as_fn_append
19440
19441 # as_fn_arith ARG...
19442 # ------------------
19443 # Perform arithmetic evaluation on the ARGs, and store the result in the
19444 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19445 # must be portable across $(()) and expr.
19446 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19447 eval 'as_fn_arith ()
19448 {
19449 as_val=$(( $* ))
19450 }'
19451 else
19452 as_fn_arith ()
19453 {
19454 as_val=`expr "$@" || test $? -eq 1`
19455 }
19456 fi # as_fn_arith
19457
19458
19459 if expr a : '\(a\)' >/dev/null 2>&1 &&
19460 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19461 as_expr=expr
19462 else
19463 as_expr=false
19464 fi
19465
19466 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19467 as_basename=basename
19468 else
19469 as_basename=false
19470 fi
19471
19472 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19473 as_dirname=dirname
19474 else
19475 as_dirname=false
19476 fi
19477
19478 as_me=`$as_basename -- "$0" ||
19479 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19480 X"$0" : 'X\(//\)$' \| \
19481 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19482 $as_echo X/"$0" |
19483 sed '/^.*\/\([^/][^/]*\)\/*$/{
19484 s//\1/
19485 q
19486 }
19487 /^X\/\(\/\/\)$/{
19488 s//\1/
19489 q
19490 }
19491 /^X\/\(\/\).*/{
19492 s//\1/
19493 q
19494 }
19495 s/.*/./; q'`
19496
19497 # Avoid depending upon Character Ranges.
19498 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19499 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19500 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19501 as_cr_digits='0123456789'
19502 as_cr_alnum=$as_cr_Letters$as_cr_digits
19503
19504 ECHO_C= ECHO_N= ECHO_T=
19505 case `echo -n x` in #(((((
19506 -n*)
19507 case `echo 'xy\c'` in
19508 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19509 xy) ECHO_C='\c';;
19510 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19511 ECHO_T=' ';;
19512 esac;;
19513 *)
19514 ECHO_N='-n';;
19515 esac
19516
19517 rm -f conf$$ conf$$.exe conf$$.file
19518 if test -d conf$$.dir; then
19519 rm -f conf$$.dir/conf$$.file
19520 else
19521 rm -f conf$$.dir
19522 mkdir conf$$.dir 2>/dev/null
19523 fi
19524 if (echo >conf$$.file) 2>/dev/null; then
19525 if ln -s conf$$.file conf$$ 2>/dev/null; then
19526 as_ln_s='ln -s'
19527 # ... but there are two gotchas:
19528 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19529 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19530 # In both cases, we have to default to `cp -pR'.
19531 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19532 as_ln_s='cp -pR'
19533 elif ln conf$$.file conf$$ 2>/dev/null; then
19534 as_ln_s=ln
19535 else
19536 as_ln_s='cp -pR'
19537 fi
19538 else
19539 as_ln_s='cp -pR'
19540 fi
19541 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19542 rmdir conf$$.dir 2>/dev/null
19543
19544
19545 # as_fn_mkdir_p
19546 # -------------
19547 # Create "$as_dir" as a directory, including parents if necessary.
19548 as_fn_mkdir_p ()
19549 {
19550
19551 case $as_dir in #(
19552 -*) as_dir=./$as_dir;;
19553 esac
19554 test -d "$as_dir" || eval $as_mkdir_p || {
19555 as_dirs=
19556 while :; do
19557 case $as_dir in #(
19558 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19559 *) as_qdir=$as_dir;;
19560 esac
19561 as_dirs="'$as_qdir' $as_dirs"
19562 as_dir=`$as_dirname -- "$as_dir" ||
19563 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19564 X"$as_dir" : 'X\(//\)[^/]' \| \
19565 X"$as_dir" : 'X\(//\)$' \| \
19566 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19567 $as_echo X"$as_dir" |
19568 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19569 s//\1/
19570 q
19571 }
19572 /^X\(\/\/\)[^/].*/{
19573 s//\1/
19574 q
19575 }
19576 /^X\(\/\/\)$/{
19577 s//\1/
19578 q
19579 }
19580 /^X\(\/\).*/{
19581 s//\1/
19582 q
19583 }
19584 s/.*/./; q'`
19585 test -d "$as_dir" && break
19586 done
19587 test -z "$as_dirs" || eval "mkdir $as_dirs"
19588 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19589
19590
19591 } # as_fn_mkdir_p
19592 if mkdir -p . 2>/dev/null; then
19593 as_mkdir_p='mkdir -p "$as_dir"'
19594 else
19595 test -d ./-p && rmdir ./-p
19596 as_mkdir_p=false
19597 fi
19598
19599
19600 # as_fn_executable_p FILE
19601 # -----------------------
19602 # Test if FILE is an executable regular file.
19603 as_fn_executable_p ()
19604 {
19605 test -f "$1" && test -x "$1"
19606 } # as_fn_executable_p
19607 as_test_x='test -x'
19608 as_executable_p=as_fn_executable_p
19609
19610 # Sed expression to map a string onto a valid CPP name.
19611 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19612
19613 # Sed expression to map a string onto a valid variable name.
19614 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19615
19616
19617 exec 6>&1
19618 ## ----------------------------------- ##
19619 ## Main body of $CONFIG_STATUS script. ##
19620 ## ----------------------------------- ##
19621 _ASEOF
19622 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19623
19624 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19625 # Save the log message, to keep $0 and so on meaningful, and to
19626 # report actual input values of CONFIG_FILES etc. instead of their
19627 # values after options handling.
19628 ac_log="
19629 This file was extended by xf86-video-tdfx $as_me 1.5.0, which was
19630 generated by GNU Autoconf 2.69. Invocation command line was
19631
19632 CONFIG_FILES = $CONFIG_FILES
19633 CONFIG_HEADERS = $CONFIG_HEADERS
19634 CONFIG_LINKS = $CONFIG_LINKS
19635 CONFIG_COMMANDS = $CONFIG_COMMANDS
19636 $ $0 $@
19637
19638 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19639 "
19640
19641 _ACEOF
19642
19643 case $ac_config_files in *"
19644 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19645 esac
19646
19647 case $ac_config_headers in *"
19648 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19649 esac
19650
19651
19652 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19653 # Files that config.status was made for.
19654 config_files="$ac_config_files"
19655 config_headers="$ac_config_headers"
19656 config_commands="$ac_config_commands"
19657
19658 _ACEOF
19659
19660 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19661 ac_cs_usage="\
19662 \`$as_me' instantiates files and other configuration actions
19663 from templates according to the current configuration. Unless the files
19664 and actions are specified as TAGs, all are instantiated by default.
19665
19666 Usage: $0 [OPTION]... [TAG]...
19667
19668 -h, --help print this help, then exit
19669 -V, --version print version number and configuration settings, then exit
19670 --config print configuration, then exit
19671 -q, --quiet, --silent
19672 do not print progress messages
19673 -d, --debug don't remove temporary files
19674 --recheck update $as_me by reconfiguring in the same conditions
19675 --file=FILE[:TEMPLATE]
19676 instantiate the configuration file FILE
19677 --header=FILE[:TEMPLATE]
19678 instantiate the configuration header FILE
19679
19680 Configuration files:
19681 $config_files
19682
19683 Configuration headers:
19684 $config_headers
19685
19686 Configuration commands:
19687 $config_commands
19688
19689 Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-tdfx/issues>."
19690
19691 _ACEOF
19692 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19693 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19694 ac_cs_version="\\
19695 xf86-video-tdfx config.status 1.5.0
19696 configured by $0, generated by GNU Autoconf 2.69,
19697 with options \\"\$ac_cs_config\\"
19698
19699 Copyright (C) 2012 Free Software Foundation, Inc.
19700 This config.status script is free software; the Free Software Foundation
19701 gives unlimited permission to copy, distribute and modify it."
19702
19703 ac_pwd='$ac_pwd'
19704 srcdir='$srcdir'
19705 INSTALL='$INSTALL'
19706 MKDIR_P='$MKDIR_P'
19707 AWK='$AWK'
19708 test -n "\$AWK" || AWK=awk
19709 _ACEOF
19710
19711 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19712 # The default lists apply if the user does not specify any file.
19713 ac_need_defaults=:
19714 while test $# != 0
19715 do
19716 case $1 in
19717 --*=?*)
19718 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19719 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19720 ac_shift=:
19721 ;;
19722 --*=)
19723 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19724 ac_optarg=
19725 ac_shift=:
19726 ;;
19727 *)
19728 ac_option=$1
19729 ac_optarg=$2
19730 ac_shift=shift
19731 ;;
19732 esac
19733
19734 case $ac_option in
19735 # Handling of the options.
19736 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19737 ac_cs_recheck=: ;;
19738 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19739 $as_echo "$ac_cs_version"; exit ;;
19740 --config | --confi | --conf | --con | --co | --c )
19741 $as_echo "$ac_cs_config"; exit ;;
19742 --debug | --debu | --deb | --de | --d | -d )
19743 debug=: ;;
19744 --file | --fil | --fi | --f )
19745 $ac_shift
19746 case $ac_optarg in
19747 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19748 '') as_fn_error $? "missing file argument" ;;
19749 esac
19750 as_fn_append CONFIG_FILES " '$ac_optarg'"
19751 ac_need_defaults=false;;
19752 --header | --heade | --head | --hea )
19753 $ac_shift
19754 case $ac_optarg in
19755 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19756 esac
19757 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19758 ac_need_defaults=false;;
19759 --he | --h)
19760 # Conflict between --help and --header
19761 as_fn_error $? "ambiguous option: \`$1'
19762 Try \`$0 --help' for more information.";;
19763 --help | --hel | -h )
19764 $as_echo "$ac_cs_usage"; exit ;;
19765 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19766 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19767 ac_cs_silent=: ;;
19768
19769 # This is an error.
19770 -*) as_fn_error $? "unrecognized option: \`$1'
19771 Try \`$0 --help' for more information." ;;
19772
19773 *) as_fn_append ac_config_targets " $1"
19774 ac_need_defaults=false ;;
19775
19776 esac
19777 shift
19778 done
19779
19780 ac_configure_extra_args=
19781
19782 if $ac_cs_silent; then
19783 exec 6>/dev/null
19784 ac_configure_extra_args="$ac_configure_extra_args --silent"
19785 fi
19786
19787 _ACEOF
19788 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19789 if \$ac_cs_recheck; then
19790 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19791 shift
19792 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19793 CONFIG_SHELL='$SHELL'
19794 export CONFIG_SHELL
19795 exec "\$@"
19796 fi
19797
19798 _ACEOF
19799 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19800 exec 5>>config.log
19801 {
19802 echo
19803 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19804 ## Running $as_me. ##
19805 _ASBOX
19806 $as_echo "$ac_log"
19807 } >&5
19808
19809 _ACEOF
19810 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19811 #
19812 # INIT-COMMANDS
19813 #
19814 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19815
19816
19817 # The HP-UX ksh and POSIX shell print the target directory to stdout
19818 # if CDPATH is set.
19819 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19820
19821 sed_quote_subst='$sed_quote_subst'
19822 double_quote_subst='$double_quote_subst'
19823 delay_variable_subst='$delay_variable_subst'
19824 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19825 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19826 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19827 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19828 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19829 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19830 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
19831 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19832 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19833 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19834 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19835 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19836 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19837 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19838 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19839 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19840 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19841 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19842 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19843 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19844 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19845 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19846 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19847 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19848 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19849 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19850 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19851 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19852 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19853 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19854 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19855 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19856 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19857 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19858 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19859 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19860 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19861 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19862 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19863 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19864 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19865 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19866 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19867 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19868 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19869 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19870 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19871 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19872 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19873 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19874 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19875 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19876 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19877 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19878 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19879 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19880 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
19881 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19882 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"`'
19883 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
19884 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19885 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19886 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
19887 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19888 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19889 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19890 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19891 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19892 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19893 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19894 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19895 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19896 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19897 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19898 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19899 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19900 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19901 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19902 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19903 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19904 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19905 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19906 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19907 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19908 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19909 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19910 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19911 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19912 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19913 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19914 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19915 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19916 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19917 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19918 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19919 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19920 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19921 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19922 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19923 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19924 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19925 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19926 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19927 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19928 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19929 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19930 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19931 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19932 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19933 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19934 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19935 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19936 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19937 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19938 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19939 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19940 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19941 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19942 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19943 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19944 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19945 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19946 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19947 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19948 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19949 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19950 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19951 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
19952 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
19953 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19954 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19955 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19956 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19957 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19958 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19959
19960 LTCC='$LTCC'
19961 LTCFLAGS='$LTCFLAGS'
19962 compiler='$compiler_DEFAULT'
19963
19964 # A function that is used when there is no print builtin or printf.
19965 func_fallback_echo ()
19966 {
19967 eval 'cat <<_LTECHO_EOF
19968 \$1
19969 _LTECHO_EOF'
19970 }
19971
19972 # Quote evaled strings.
19973 for var in SHELL \
19974 ECHO \
19975 PATH_SEPARATOR \
19976 SED \
19977 GREP \
19978 EGREP \
19979 FGREP \
19980 LD \
19981 NM \
19982 LN_S \
19983 lt_SP2NL \
19984 lt_NL2SP \
19985 reload_flag \
19986 OBJDUMP \
19987 deplibs_check_method \
19988 file_magic_cmd \
19989 file_magic_glob \
19990 want_nocaseglob \
19991 DLLTOOL \
19992 sharedlib_from_linklib_cmd \
19993 AR \
19994 AR_FLAGS \
19995 archiver_list_spec \
19996 STRIP \
19997 RANLIB \
19998 CC \
19999 CFLAGS \
20000 compiler \
20001 lt_cv_sys_global_symbol_pipe \
20002 lt_cv_sys_global_symbol_to_cdecl \
20003 lt_cv_sys_global_symbol_to_import \
20004 lt_cv_sys_global_symbol_to_c_name_address \
20005 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20006 lt_cv_nm_interface \
20007 nm_file_list_spec \
20008 lt_cv_truncate_bin \
20009 lt_prog_compiler_no_builtin_flag \
20010 lt_prog_compiler_pic \
20011 lt_prog_compiler_wl \
20012 lt_prog_compiler_static \
20013 lt_cv_prog_compiler_c_o \
20014 need_locks \
20015 MANIFEST_TOOL \
20016 DSYMUTIL \
20017 NMEDIT \
20018 LIPO \
20019 OTOOL \
20020 OTOOL64 \
20021 shrext_cmds \
20022 export_dynamic_flag_spec \
20023 whole_archive_flag_spec \
20024 compiler_needs_object \
20025 with_gnu_ld \
20026 allow_undefined_flag \
20027 no_undefined_flag \
20028 hardcode_libdir_flag_spec \
20029 hardcode_libdir_separator \
20030 exclude_expsyms \
20031 include_expsyms \
20032 file_list_spec \
20033 variables_saved_for_relink \
20034 libname_spec \
20035 library_names_spec \
20036 soname_spec \
20037 install_override_mode \
20038 finish_eval \
20039 old_striplib \
20040 striplib; do
20041 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20042 *[\\\\\\\`\\"\\\$]*)
20043 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20044 ;;
20045 *)
20046 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20047 ;;
20048 esac
20049 done
20050
20051 # Double-quote double-evaled strings.
20052 for var in reload_cmds \
20053 old_postinstall_cmds \
20054 old_postuninstall_cmds \
20055 old_archive_cmds \
20056 extract_expsyms_cmds \
20057 old_archive_from_new_cmds \
20058 old_archive_from_expsyms_cmds \
20059 archive_cmds \
20060 archive_expsym_cmds \
20061 module_cmds \
20062 module_expsym_cmds \
20063 export_symbols_cmds \
20064 prelink_cmds \
20065 postlink_cmds \
20066 postinstall_cmds \
20067 postuninstall_cmds \
20068 finish_cmds \
20069 sys_lib_search_path_spec \
20070 configure_time_dlsearch_path \
20071 configure_time_lt_sys_library_path; do
20072 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20073 *[\\\\\\\`\\"\\\$]*)
20074 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20075 ;;
20076 *)
20077 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20078 ;;
20079 esac
20080 done
20081
20082 ac_aux_dir='$ac_aux_dir'
20083
20084 # See if we are running on zsh, and set the options that allow our
20085 # commands through without removal of \ escapes INIT.
20086 if test -n "\${ZSH_VERSION+set}"; then
20087 setopt NO_GLOB_SUBST
20088 fi
20089
20090
20091 PACKAGE='$PACKAGE'
20092 VERSION='$VERSION'
20093 RM='$RM'
20094 ofile='$ofile'
20095
20096
20097
20098
20099 _ACEOF
20100
20101 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20102
20103 # Handling of arguments.
20104 for ac_config_target in $ac_config_targets
20105 do
20106 case $ac_config_target in
20107 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20108 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20109 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20110 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20111 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20112 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
20113
20114 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20115 esac
20116 done
20117
20118
20119 # If the user did not use the arguments to specify the items to instantiate,
20120 # then the envvar interface is used. Set only those that are not.
20121 # We use the long form for the default assignment because of an extremely
20122 # bizarre bug on SunOS 4.1.3.
20123 if $ac_need_defaults; then
20124 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20125 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20126 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20127 fi
20128
20129 # Have a temporary directory for convenience. Make it in the build tree
20130 # simply because there is no reason against having it here, and in addition,
20131 # creating and moving files from /tmp can sometimes cause problems.
20132 # Hook for its removal unless debugging.
20133 # Note that there is a small window in which the directory will not be cleaned:
20134 # after its creation but before its name has been assigned to `$tmp'.
20135 $debug ||
20136 {
20137 tmp= ac_tmp=
20138 trap 'exit_status=$?
20139 : "${ac_tmp:=$tmp}"
20140 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20141 ' 0
20142 trap 'as_fn_exit 1' 1 2 13 15
20143 }
20144 # Create a (secure) tmp directory for tmp files.
20145
20146 {
20147 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20148 test -d "$tmp"
20149 } ||
20150 {
20151 tmp=./conf$$-$RANDOM
20152 (umask 077 && mkdir "$tmp")
20153 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20154 ac_tmp=$tmp
20155
20156 # Set up the scripts for CONFIG_FILES section.
20157 # No need to generate them if there are no CONFIG_FILES.
20158 # This happens for instance with `./config.status config.h'.
20159 if test -n "$CONFIG_FILES"; then
20160
20161
20162 ac_cr=`echo X | tr X '\015'`
20163 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20164 # But we know of no other shell where ac_cr would be empty at this
20165 # point, so we can use a bashism as a fallback.
20166 if test "x$ac_cr" = x; then
20167 eval ac_cr=\$\'\\r\'
20168 fi
20169 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20170 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20171 ac_cs_awk_cr='\\r'
20172 else
20173 ac_cs_awk_cr=$ac_cr
20174 fi
20175
20176 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20177 _ACEOF
20178
20179
20180 {
20181 echo "cat >conf$$subs.awk <<_ACEOF" &&
20182 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20183 echo "_ACEOF"
20184 } >conf$$subs.sh ||
20185 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20186 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20187 ac_delim='%!_!# '
20188 for ac_last_try in false false false false false :; do
20189 . ./conf$$subs.sh ||
20190 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20191
20192 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20193 if test $ac_delim_n = $ac_delim_num; then
20194 break
20195 elif $ac_last_try; then
20196 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20197 else
20198 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20199 fi
20200 done
20201 rm -f conf$$subs.sh
20202
20203 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20204 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20205 _ACEOF
20206 sed -n '
20207 h
20208 s/^/S["/; s/!.*/"]=/
20209 p
20210 g
20211 s/^[^!]*!//
20212 :repl
20213 t repl
20214 s/'"$ac_delim"'$//
20215 t delim
20216 :nl
20217 h
20218 s/\(.\{148\}\)..*/\1/
20219 t more1
20220 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20221 p
20222 n
20223 b repl
20224 :more1
20225 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20226 p
20227 g
20228 s/.\{148\}//
20229 t nl
20230 :delim
20231 h
20232 s/\(.\{148\}\)..*/\1/
20233 t more2
20234 s/["\\]/\\&/g; s/^/"/; s/$/"/
20235 p
20236 b
20237 :more2
20238 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20239 p
20240 g
20241 s/.\{148\}//
20242 t delim
20243 ' <conf$$subs.awk | sed '
20244 /^[^""]/{
20245 N
20246 s/\n//
20247 }
20248 ' >>$CONFIG_STATUS || ac_write_fail=1
20249 rm -f conf$$subs.awk
20250 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20251 _ACAWK
20252 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20253 for (key in S) S_is_set[key] = 1
20254 FS = ""
20255
20256 }
20257 {
20258 line = $ 0
20259 nfields = split(line, field, "@")
20260 substed = 0
20261 len = length(field[1])
20262 for (i = 2; i < nfields; i++) {
20263 key = field[i]
20264 keylen = length(key)
20265 if (S_is_set[key]) {
20266 value = S[key]
20267 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20268 len += length(value) + length(field[++i])
20269 substed = 1
20270 } else
20271 len += 1 + keylen
20272 }
20273
20274 print line
20275 }
20276
20277 _ACAWK
20278 _ACEOF
20279 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20280 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20281 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20282 else
20283 cat
20284 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20285 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20286 _ACEOF
20287
20288 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20289 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20290 # trailing colons and then remove the whole line if VPATH becomes empty
20291 # (actually we leave an empty line to preserve line numbers).
20292 if test "x$srcdir" = x.; then
20293 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20294 h
20295 s///
20296 s/^/:/
20297 s/[ ]*$/:/
20298 s/:\$(srcdir):/:/g
20299 s/:\${srcdir}:/:/g
20300 s/:@srcdir@:/:/g
20301 s/^:*//
20302 s/:*$//
20303 x
20304 s/\(=[ ]*\).*/\1/
20305 G
20306 s/\n//
20307 s/^[^=]*=[ ]*$//
20308 }'
20309 fi
20310
20311 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20312 fi # test -n "$CONFIG_FILES"
20313
20314 # Set up the scripts for CONFIG_HEADERS section.
20315 # No need to generate them if there are no CONFIG_HEADERS.
20316 # This happens for instance with `./config.status Makefile'.
20317 if test -n "$CONFIG_HEADERS"; then
20318 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20319 BEGIN {
20320 _ACEOF
20321
20322 # Transform confdefs.h into an awk script `defines.awk', embedded as
20323 # here-document in config.status, that substitutes the proper values into
20324 # config.h.in to produce config.h.
20325
20326 # Create a delimiter string that does not exist in confdefs.h, to ease
20327 # handling of long lines.
20328 ac_delim='%!_!# '
20329 for ac_last_try in false false :; do
20330 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20331 if test -z "$ac_tt"; then
20332 break
20333 elif $ac_last_try; then
20334 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20335 else
20336 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20337 fi
20338 done
20339
20340 # For the awk script, D is an array of macro values keyed by name,
20341 # likewise P contains macro parameters if any. Preserve backslash
20342 # newline sequences.
20343
20344 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20345 sed -n '
20346 s/.\{148\}/&'"$ac_delim"'/g
20347 t rset
20348 :rset
20349 s/^[ ]*#[ ]*define[ ][ ]*/ /
20350 t def
20351 d
20352 :def
20353 s/\\$//
20354 t bsnl
20355 s/["\\]/\\&/g
20356 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20357 D["\1"]=" \3"/p
20358 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20359 d
20360 :bsnl
20361 s/["\\]/\\&/g
20362 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20363 D["\1"]=" \3\\\\\\n"\\/p
20364 t cont
20365 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20366 t cont
20367 d
20368 :cont
20369 n
20370 s/.\{148\}/&'"$ac_delim"'/g
20371 t clear
20372 :clear
20373 s/\\$//
20374 t bsnlc
20375 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20376 d
20377 :bsnlc
20378 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20379 b cont
20380 ' <confdefs.h | sed '
20381 s/'"$ac_delim"'/"\\\
20382 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20383
20384 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20385 for (key in D) D_is_set[key] = 1
20386 FS = ""
20387 }
20388 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20389 line = \$ 0
20390 split(line, arg, " ")
20391 if (arg[1] == "#") {
20392 defundef = arg[2]
20393 mac1 = arg[3]
20394 } else {
20395 defundef = substr(arg[1], 2)
20396 mac1 = arg[2]
20397 }
20398 split(mac1, mac2, "(") #)
20399 macro = mac2[1]
20400 prefix = substr(line, 1, index(line, defundef) - 1)
20401 if (D_is_set[macro]) {
20402 # Preserve the white space surrounding the "#".
20403 print prefix "define", macro P[macro] D[macro]
20404 next
20405 } else {
20406 # Replace #undef with comments. This is necessary, for example,
20407 # in the case of _POSIX_SOURCE, which is predefined and required
20408 # on some systems where configure will not decide to define it.
20409 if (defundef == "undef") {
20410 print "/*", prefix defundef, macro, "*/"
20411 next
20412 }
20413 }
20414 }
20415 { print }
20416 _ACAWK
20417 _ACEOF
20418 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20419 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20420 fi # test -n "$CONFIG_HEADERS"
20421
20422
20423 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20424 shift
20425 for ac_tag
20426 do
20427 case $ac_tag in
20428 :[FHLC]) ac_mode=$ac_tag; continue;;
20429 esac
20430 case $ac_mode$ac_tag in
20431 :[FHL]*:*);;
20432 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20433 :[FH]-) ac_tag=-:-;;
20434 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20435 esac
20436 ac_save_IFS=$IFS
20437 IFS=:
20438 set x $ac_tag
20439 IFS=$ac_save_IFS
20440 shift
20441 ac_file=$1
20442 shift
20443
20444 case $ac_mode in
20445 :L) ac_source=$1;;
20446 :[FH])
20447 ac_file_inputs=
20448 for ac_f
20449 do
20450 case $ac_f in
20451 -) ac_f="$ac_tmp/stdin";;
20452 *) # Look for the file first in the build tree, then in the source tree
20453 # (if the path is not absolute). The absolute path cannot be DOS-style,
20454 # because $ac_f cannot contain `:'.
20455 test -f "$ac_f" ||
20456 case $ac_f in
20457 [\\/$]*) false;;
20458 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20459 esac ||
20460 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20461 esac
20462 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20463 as_fn_append ac_file_inputs " '$ac_f'"
20464 done
20465
20466 # Let's still pretend it is `configure' which instantiates (i.e., don't
20467 # use $as_me), people would be surprised to read:
20468 # /* config.h. Generated by config.status. */
20469 configure_input='Generated from '`
20470 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20471 `' by configure.'
20472 if test x"$ac_file" != x-; then
20473 configure_input="$ac_file. $configure_input"
20474 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20475 $as_echo "$as_me: creating $ac_file" >&6;}
20476 fi
20477 # Neutralize special characters interpreted by sed in replacement strings.
20478 case $configure_input in #(
20479 *\&* | *\|* | *\\* )
20480 ac_sed_conf_input=`$as_echo "$configure_input" |
20481 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20482 *) ac_sed_conf_input=$configure_input;;
20483 esac
20484
20485 case $ac_tag in
20486 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20487 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20488 esac
20489 ;;
20490 esac
20491
20492 ac_dir=`$as_dirname -- "$ac_file" ||
20493 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20494 X"$ac_file" : 'X\(//\)[^/]' \| \
20495 X"$ac_file" : 'X\(//\)$' \| \
20496 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20497 $as_echo X"$ac_file" |
20498 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20499 s//\1/
20500 q
20501 }
20502 /^X\(\/\/\)[^/].*/{
20503 s//\1/
20504 q
20505 }
20506 /^X\(\/\/\)$/{
20507 s//\1/
20508 q
20509 }
20510 /^X\(\/\).*/{
20511 s//\1/
20512 q
20513 }
20514 s/.*/./; q'`
20515 as_dir="$ac_dir"; as_fn_mkdir_p
20516 ac_builddir=.
20517
20518 case "$ac_dir" in
20519 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20520 *)
20521 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20522 # A ".." for each directory in $ac_dir_suffix.
20523 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20524 case $ac_top_builddir_sub in
20525 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20526 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20527 esac ;;
20528 esac
20529 ac_abs_top_builddir=$ac_pwd
20530 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20531 # for backward compatibility:
20532 ac_top_builddir=$ac_top_build_prefix
20533
20534 case $srcdir in
20535 .) # We are building in place.
20536 ac_srcdir=.
20537 ac_top_srcdir=$ac_top_builddir_sub
20538 ac_abs_top_srcdir=$ac_pwd ;;
20539 [\\/]* | ?:[\\/]* ) # Absolute name.
20540 ac_srcdir=$srcdir$ac_dir_suffix;
20541 ac_top_srcdir=$srcdir
20542 ac_abs_top_srcdir=$srcdir ;;
20543 *) # Relative name.
20544 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20545 ac_top_srcdir=$ac_top_build_prefix$srcdir
20546 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20547 esac
20548 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20549
20550
20551 case $ac_mode in
20552 :F)
20553 #
20554 # CONFIG_FILE
20555 #
20556
20557 case $INSTALL in
20558 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20559 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20560 esac
20561 ac_MKDIR_P=$MKDIR_P
20562 case $MKDIR_P in
20563 [\\/$]* | ?:[\\/]* ) ;;
20564 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20565 esac
20566 _ACEOF
20567
20568 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20569 # If the template does not know about datarootdir, expand it.
20570 # FIXME: This hack should be removed a few years after 2.60.
20571 ac_datarootdir_hack=; ac_datarootdir_seen=
20572 ac_sed_dataroot='
20573 /datarootdir/ {
20574 p
20575 q
20576 }
20577 /@datadir@/p
20578 /@docdir@/p
20579 /@infodir@/p
20580 /@localedir@/p
20581 /@mandir@/p'
20582 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20583 *datarootdir*) ac_datarootdir_seen=yes;;
20584 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20586 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20587 _ACEOF
20588 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20589 ac_datarootdir_hack='
20590 s&@datadir@&$datadir&g
20591 s&@docdir@&$docdir&g
20592 s&@infodir@&$infodir&g
20593 s&@localedir@&$localedir&g
20594 s&@mandir@&$mandir&g
20595 s&\\\${datarootdir}&$datarootdir&g' ;;
20596 esac
20597 _ACEOF
20598
20599 # Neutralize VPATH when `$srcdir' = `.'.
20600 # Shell code in configure.ac might set extrasub.
20601 # FIXME: do we really want to maintain this feature?
20602 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20603 ac_sed_extra="$ac_vpsub
20604 $extrasub
20605 _ACEOF
20606 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20607 :t
20608 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20609 s|@configure_input@|$ac_sed_conf_input|;t t
20610 s&@top_builddir@&$ac_top_builddir_sub&;t t
20611 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20612 s&@srcdir@&$ac_srcdir&;t t
20613 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20614 s&@top_srcdir@&$ac_top_srcdir&;t t
20615 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20616 s&@builddir@&$ac_builddir&;t t
20617 s&@abs_builddir@&$ac_abs_builddir&;t t
20618 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20619 s&@INSTALL@&$ac_INSTALL&;t t
20620 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20621 $ac_datarootdir_hack
20622 "
20623 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20624 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20625
20626 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20627 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20628 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20629 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20631 which seems to be undefined. Please make sure it is defined" >&5
20632 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20633 which seems to be undefined. Please make sure it is defined" >&2;}
20634
20635 rm -f "$ac_tmp/stdin"
20636 case $ac_file in
20637 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20638 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20639 esac \
20640 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20641 ;;
20642 :H)
20643 #
20644 # CONFIG_HEADER
20645 #
20646 if test x"$ac_file" != x-; then
20647 {
20648 $as_echo "/* $configure_input */" \
20649 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20650 } >"$ac_tmp/config.h" \
20651 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20652 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20653 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20654 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20655 else
20656 rm -f "$ac_file"
20657 mv "$ac_tmp/config.h" "$ac_file" \
20658 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20659 fi
20660 else
20661 $as_echo "/* $configure_input */" \
20662 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20663 || as_fn_error $? "could not create -" "$LINENO" 5
20664 fi
20665 # Compute "$ac_file"'s index in $config_headers.
20666 _am_arg="$ac_file"
20667 _am_stamp_count=1
20668 for _am_header in $config_headers :; do
20669 case $_am_header in
20670 $_am_arg | $_am_arg:* )
20671 break ;;
20672 * )
20673 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20674 esac
20675 done
20676 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20677 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20678 X"$_am_arg" : 'X\(//\)[^/]' \| \
20679 X"$_am_arg" : 'X\(//\)$' \| \
20680 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20681 $as_echo X"$_am_arg" |
20682 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20683 s//\1/
20684 q
20685 }
20686 /^X\(\/\/\)[^/].*/{
20687 s//\1/
20688 q
20689 }
20690 /^X\(\/\/\)$/{
20691 s//\1/
20692 q
20693 }
20694 /^X\(\/\).*/{
20695 s//\1/
20696 q
20697 }
20698 s/.*/./; q'`/stamp-h$_am_stamp_count
20699 ;;
20700
20701 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20702 $as_echo "$as_me: executing $ac_file commands" >&6;}
20703 ;;
20704 esac
20705
20706
20707 case $ac_file$ac_mode in
20708 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20709 # Older Autoconf quotes --file arguments for eval, but not when files
20710 # are listed without --file. Let's play safe and only enable the eval
20711 # if we detect the quoting.
20712 case $CONFIG_FILES in
20713 *\'*) eval set x "$CONFIG_FILES" ;;
20714 *) set x $CONFIG_FILES ;;
20715 esac
20716 shift
20717 for mf
20718 do
20719 # Strip MF so we end up with the name of the file.
20720 mf=`echo "$mf" | sed -e 's/:.*$//'`
20721 # Check whether this is an Automake generated Makefile or not.
20722 # We used to match only the files named 'Makefile.in', but
20723 # some people rename them; so instead we look at the file content.
20724 # Grep'ing the first line is not enough: some people post-process
20725 # each Makefile.in and add a new line on top of each file to say so.
20726 # Grep'ing the whole file is not good either: AIX grep has a line
20727 # limit of 2048, but all sed's we know have understand at least 4000.
20728 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20729 dirpart=`$as_dirname -- "$mf" ||
20730 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20731 X"$mf" : 'X\(//\)[^/]' \| \
20732 X"$mf" : 'X\(//\)$' \| \
20733 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20734 $as_echo X"$mf" |
20735 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20736 s//\1/
20737 q
20738 }
20739 /^X\(\/\/\)[^/].*/{
20740 s//\1/
20741 q
20742 }
20743 /^X\(\/\/\)$/{
20744 s//\1/
20745 q
20746 }
20747 /^X\(\/\).*/{
20748 s//\1/
20749 q
20750 }
20751 s/.*/./; q'`
20752 else
20753 continue
20754 fi
20755 # Extract the definition of DEPDIR, am__include, and am__quote
20756 # from the Makefile without running 'make'.
20757 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20758 test -z "$DEPDIR" && continue
20759 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20760 test -z "$am__include" && continue
20761 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20762 # Find all dependency output files, they are included files with
20763 # $(DEPDIR) in their names. We invoke sed twice because it is the
20764 # simplest approach to changing $(DEPDIR) to its actual value in the
20765 # expansion.
20766 for file in `sed -n "
20767 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20768 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
20769 # Make sure the directory exists.
20770 test -f "$dirpart/$file" && continue
20771 fdir=`$as_dirname -- "$file" ||
20772 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20773 X"$file" : 'X\(//\)[^/]' \| \
20774 X"$file" : 'X\(//\)$' \| \
20775 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20776 $as_echo X"$file" |
20777 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20778 s//\1/
20779 q
20780 }
20781 /^X\(\/\/\)[^/].*/{
20782 s//\1/
20783 q
20784 }
20785 /^X\(\/\/\)$/{
20786 s//\1/
20787 q
20788 }
20789 /^X\(\/\).*/{
20790 s//\1/
20791 q
20792 }
20793 s/.*/./; q'`
20794 as_dir=$dirpart/$fdir; as_fn_mkdir_p
20795 # echo "creating $dirpart/$file"
20796 echo '# dummy' > "$dirpart/$file"
20797 done
20798 done
20799 }
20800 ;;
20801 "libtool":C)
20802
20803 # See if we are running on zsh, and set the options that allow our
20804 # commands through without removal of \ escapes.
20805 if test -n "${ZSH_VERSION+set}"; then
20806 setopt NO_GLOB_SUBST
20807 fi
20808
20809 cfgfile=${ofile}T
20810 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20811 $RM "$cfgfile"
20812
20813 cat <<_LT_EOF >> "$cfgfile"
20814 #! $SHELL
20815 # Generated automatically by $as_me ($PACKAGE) $VERSION
20816 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20817 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20818
20819 # Provide generalized library-building support services.
20820 # Written by Gordon Matzigkeit, 1996
20821
20822 # Copyright (C) 2014 Free Software Foundation, Inc.
20823 # This is free software; see the source for copying conditions. There is NO
20824 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20825
20826 # GNU Libtool is free software; you can redistribute it and/or modify
20827 # it under the terms of the GNU General Public License as published by
20828 # the Free Software Foundation; either version 2 of of the License, or
20829 # (at your option) any later version.
20830 #
20831 # As a special exception to the GNU General Public License, if you
20832 # distribute this file as part of a program or library that is built
20833 # using GNU Libtool, you may include this file under the same
20834 # distribution terms that you use for the rest of that program.
20835 #
20836 # GNU Libtool is distributed in the hope that it will be useful, but
20837 # WITHOUT ANY WARRANTY; without even the implied warranty of
20838 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20839 # GNU General Public License for more details.
20840 #
20841 # You should have received a copy of the GNU General Public License
20842 # along with this program. If not, see <http://www.gnu.org/licenses/>.
20843
20844
20845 # The names of the tagged configurations supported by this script.
20846 available_tags=''
20847
20848 # Configured defaults for sys_lib_dlsearch_path munging.
20849 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
20850
20851 # ### BEGIN LIBTOOL CONFIG
20852
20853 # Whether or not to build static libraries.
20854 build_old_libs=$enable_static
20855
20856 # Which release of libtool.m4 was used?
20857 macro_version=$macro_version
20858 macro_revision=$macro_revision
20859
20860 # Whether or not to build shared libraries.
20861 build_libtool_libs=$enable_shared
20862
20863 # What type of objects to build.
20864 pic_mode=$pic_mode
20865
20866 # Whether or not to optimize for fast installation.
20867 fast_install=$enable_fast_install
20868
20869 # Shared archive member basename,for filename based shared library versioning on AIX.
20870 shared_archive_member_spec=$shared_archive_member_spec
20871
20872 # Shell to use when invoking shell scripts.
20873 SHELL=$lt_SHELL
20874
20875 # An echo program that protects backslashes.
20876 ECHO=$lt_ECHO
20877
20878 # The PATH separator for the build system.
20879 PATH_SEPARATOR=$lt_PATH_SEPARATOR
20880
20881 # The host system.
20882 host_alias=$host_alias
20883 host=$host
20884 host_os=$host_os
20885
20886 # The build system.
20887 build_alias=$build_alias
20888 build=$build
20889 build_os=$build_os
20890
20891 # A sed program that does not truncate output.
20892 SED=$lt_SED
20893
20894 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20895 Xsed="\$SED -e 1s/^X//"
20896
20897 # A grep program that handles long lines.
20898 GREP=$lt_GREP
20899
20900 # An ERE matcher.
20901 EGREP=$lt_EGREP
20902
20903 # A literal string matcher.
20904 FGREP=$lt_FGREP
20905
20906 # A BSD- or MS-compatible name lister.
20907 NM=$lt_NM
20908
20909 # Whether we need soft or hard links.
20910 LN_S=$lt_LN_S
20911
20912 # What is the maximum length of a command?
20913 max_cmd_len=$max_cmd_len
20914
20915 # Object file suffix (normally "o").
20916 objext=$ac_objext
20917
20918 # Executable file suffix (normally "").
20919 exeext=$exeext
20920
20921 # whether the shell understands "unset".
20922 lt_unset=$lt_unset
20923
20924 # turn spaces into newlines.
20925 SP2NL=$lt_lt_SP2NL
20926
20927 # turn newlines into spaces.
20928 NL2SP=$lt_lt_NL2SP
20929
20930 # convert \$build file names to \$host format.
20931 to_host_file_cmd=$lt_cv_to_host_file_cmd
20932
20933 # convert \$build files to toolchain format.
20934 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20935
20936 # An object symbol dumper.
20937 OBJDUMP=$lt_OBJDUMP
20938
20939 # Method to check whether dependent libraries are shared objects.
20940 deplibs_check_method=$lt_deplibs_check_method
20941
20942 # Command to use when deplibs_check_method = "file_magic".
20943 file_magic_cmd=$lt_file_magic_cmd
20944
20945 # How to find potential files when deplibs_check_method = "file_magic".
20946 file_magic_glob=$lt_file_magic_glob
20947
20948 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20949 want_nocaseglob=$lt_want_nocaseglob
20950
20951 # DLL creation program.
20952 DLLTOOL=$lt_DLLTOOL
20953
20954 # Command to associate shared and link libraries.
20955 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20956
20957 # The archiver.
20958 AR=$lt_AR
20959
20960 # Flags to create an archive.
20961 AR_FLAGS=$lt_AR_FLAGS
20962
20963 # How to feed a file listing to the archiver.
20964 archiver_list_spec=$lt_archiver_list_spec
20965
20966 # A symbol stripping program.
20967 STRIP=$lt_STRIP
20968
20969 # Commands used to install an old-style archive.
20970 RANLIB=$lt_RANLIB
20971 old_postinstall_cmds=$lt_old_postinstall_cmds
20972 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20973
20974 # Whether to use a lock for old archive extraction.
20975 lock_old_archive_extraction=$lock_old_archive_extraction
20976
20977 # A C compiler.
20978 LTCC=$lt_CC
20979
20980 # LTCC compiler flags.
20981 LTCFLAGS=$lt_CFLAGS
20982
20983 # Take the output of nm and produce a listing of raw symbols and C names.
20984 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20985
20986 # Transform the output of nm in a proper C declaration.
20987 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20988
20989 # Transform the output of nm into a list of symbols to manually relocate.
20990 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
20991
20992 # Transform the output of nm in a C name address pair.
20993 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20994
20995 # Transform the output of nm in a C name address pair when lib prefix is needed.
20996 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20997
20998 # The name lister interface.
20999 nm_interface=$lt_lt_cv_nm_interface
21000
21001 # Specify filename containing input files for \$NM.
21002 nm_file_list_spec=$lt_nm_file_list_spec
21003
21004 # The root where to search for dependent libraries,and where our libraries should be installed.
21005 lt_sysroot=$lt_sysroot
21006
21007 # Command to truncate a binary pipe.
21008 lt_truncate_bin=$lt_lt_cv_truncate_bin
21009
21010 # The name of the directory that contains temporary libtool files.
21011 objdir=$objdir
21012
21013 # Used to examine libraries when file_magic_cmd begins with "file".
21014 MAGIC_CMD=$MAGIC_CMD
21015
21016 # Must we lock files when doing compilation?
21017 need_locks=$lt_need_locks
21018
21019 # Manifest tool.
21020 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21021
21022 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21023 DSYMUTIL=$lt_DSYMUTIL
21024
21025 # Tool to change global to local symbols on Mac OS X.
21026 NMEDIT=$lt_NMEDIT
21027
21028 # Tool to manipulate fat objects and archives on Mac OS X.
21029 LIPO=$lt_LIPO
21030
21031 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21032 OTOOL=$lt_OTOOL
21033
21034 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21035 OTOOL64=$lt_OTOOL64
21036
21037 # Old archive suffix (normally "a").
21038 libext=$libext
21039
21040 # Shared library suffix (normally ".so").
21041 shrext_cmds=$lt_shrext_cmds
21042
21043 # The commands to extract the exported symbol list from a shared archive.
21044 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21045
21046 # Variables whose values should be saved in libtool wrapper scripts and
21047 # restored at link time.
21048 variables_saved_for_relink=$lt_variables_saved_for_relink
21049
21050 # Do we need the "lib" prefix for modules?
21051 need_lib_prefix=$need_lib_prefix
21052
21053 # Do we need a version for libraries?
21054 need_version=$need_version
21055
21056 # Library versioning type.
21057 version_type=$version_type
21058
21059 # Shared library runtime path variable.
21060 runpath_var=$runpath_var
21061
21062 # Shared library path variable.
21063 shlibpath_var=$shlibpath_var
21064
21065 # Is shlibpath searched before the hard-coded library search path?
21066 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21067
21068 # Format of library name prefix.
21069 libname_spec=$lt_libname_spec
21070
21071 # List of archive names. First name is the real one, the rest are links.
21072 # The last name is the one that the linker finds with -lNAME
21073 library_names_spec=$lt_library_names_spec
21074
21075 # The coded name of the library, if different from the real name.
21076 soname_spec=$lt_soname_spec
21077
21078 # Permission mode override for installation of shared libraries.
21079 install_override_mode=$lt_install_override_mode
21080
21081 # Command to use after installation of a shared archive.
21082 postinstall_cmds=$lt_postinstall_cmds
21083
21084 # Command to use after uninstallation of a shared archive.
21085 postuninstall_cmds=$lt_postuninstall_cmds
21086
21087 # Commands used to finish a libtool library installation in a directory.
21088 finish_cmds=$lt_finish_cmds
21089
21090 # As "finish_cmds", except a single script fragment to be evaled but
21091 # not shown.
21092 finish_eval=$lt_finish_eval
21093
21094 # Whether we should hardcode library paths into libraries.
21095 hardcode_into_libs=$hardcode_into_libs
21096
21097 # Compile-time system search path for libraries.
21098 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21099
21100 # Detected run-time system search path for libraries.
21101 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
21102
21103 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
21104 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
21105
21106 # Whether dlopen is supported.
21107 dlopen_support=$enable_dlopen
21108
21109 # Whether dlopen of programs is supported.
21110 dlopen_self=$enable_dlopen_self
21111
21112 # Whether dlopen of statically linked programs is supported.
21113 dlopen_self_static=$enable_dlopen_self_static
21114
21115 # Commands to strip libraries.
21116 old_striplib=$lt_old_striplib
21117 striplib=$lt_striplib
21118
21119
21120 # The linker used to build libraries.
21121 LD=$lt_LD
21122
21123 # How to create reloadable object files.
21124 reload_flag=$lt_reload_flag
21125 reload_cmds=$lt_reload_cmds
21126
21127 # Commands used to build an old-style archive.
21128 old_archive_cmds=$lt_old_archive_cmds
21129
21130 # A language specific compiler.
21131 CC=$lt_compiler
21132
21133 # Is the compiler the GNU compiler?
21134 with_gcc=$GCC
21135
21136 # Compiler flag to turn off builtin functions.
21137 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21138
21139 # Additional compiler flags for building library objects.
21140 pic_flag=$lt_lt_prog_compiler_pic
21141
21142 # How to pass a linker flag through the compiler.
21143 wl=$lt_lt_prog_compiler_wl
21144
21145 # Compiler flag to prevent dynamic linking.
21146 link_static_flag=$lt_lt_prog_compiler_static
21147
21148 # Does compiler simultaneously support -c and -o options?
21149 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21150
21151 # Whether or not to add -lc for building shared libraries.
21152 build_libtool_need_lc=$archive_cmds_need_lc
21153
21154 # Whether or not to disallow shared libs when runtime libs are static.
21155 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21156
21157 # Compiler flag to allow reflexive dlopens.
21158 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21159
21160 # Compiler flag to generate shared objects directly from archives.
21161 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21162
21163 # Whether the compiler copes with passing no objects directly.
21164 compiler_needs_object=$lt_compiler_needs_object
21165
21166 # Create an old-style archive from a shared archive.
21167 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21168
21169 # Create a temporary old-style archive to link instead of a shared archive.
21170 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21171
21172 # Commands used to build a shared archive.
21173 archive_cmds=$lt_archive_cmds
21174 archive_expsym_cmds=$lt_archive_expsym_cmds
21175
21176 # Commands used to build a loadable module if different from building
21177 # a shared archive.
21178 module_cmds=$lt_module_cmds
21179 module_expsym_cmds=$lt_module_expsym_cmds
21180
21181 # Whether we are building with GNU ld or not.
21182 with_gnu_ld=$lt_with_gnu_ld
21183
21184 # Flag that allows shared libraries with undefined symbols to be built.
21185 allow_undefined_flag=$lt_allow_undefined_flag
21186
21187 # Flag that enforces no undefined symbols.
21188 no_undefined_flag=$lt_no_undefined_flag
21189
21190 # Flag to hardcode \$libdir into a binary during linking.
21191 # This must work even if \$libdir does not exist
21192 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21193
21194 # Whether we need a single "-rpath" flag with a separated argument.
21195 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21196
21197 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21198 # DIR into the resulting binary.
21199 hardcode_direct=$hardcode_direct
21200
21201 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21202 # DIR into the resulting binary and the resulting library dependency is
21203 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
21204 # library is relocated.
21205 hardcode_direct_absolute=$hardcode_direct_absolute
21206
21207 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21208 # into the resulting binary.
21209 hardcode_minus_L=$hardcode_minus_L
21210
21211 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21212 # into the resulting binary.
21213 hardcode_shlibpath_var=$hardcode_shlibpath_var
21214
21215 # Set to "yes" if building a shared library automatically hardcodes DIR
21216 # into the library and all subsequent libraries and executables linked
21217 # against it.
21218 hardcode_automatic=$hardcode_automatic
21219
21220 # Set to yes if linker adds runtime paths of dependent libraries
21221 # to runtime path list.
21222 inherit_rpath=$inherit_rpath
21223
21224 # Whether libtool must link a program against all its dependency libraries.
21225 link_all_deplibs=$link_all_deplibs
21226
21227 # Set to "yes" if exported symbols are required.
21228 always_export_symbols=$always_export_symbols
21229
21230 # The commands to list exported symbols.
21231 export_symbols_cmds=$lt_export_symbols_cmds
21232
21233 # Symbols that should not be listed in the preloaded symbols.
21234 exclude_expsyms=$lt_exclude_expsyms
21235
21236 # Symbols that must always be exported.
21237 include_expsyms=$lt_include_expsyms
21238
21239 # Commands necessary for linking programs (against libraries) with templates.
21240 prelink_cmds=$lt_prelink_cmds
21241
21242 # Commands necessary for finishing linking programs.
21243 postlink_cmds=$lt_postlink_cmds
21244
21245 # Specify filename containing input files.
21246 file_list_spec=$lt_file_list_spec
21247
21248 # How to hardcode a shared library path into an executable.
21249 hardcode_action=$hardcode_action
21250
21251 # ### END LIBTOOL CONFIG
21252
21253 _LT_EOF
21254
21255 cat <<'_LT_EOF' >> "$cfgfile"
21256
21257 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
21258
21259 # func_munge_path_list VARIABLE PATH
21260 # -----------------------------------
21261 # VARIABLE is name of variable containing _space_ separated list of
21262 # directories to be munged by the contents of PATH, which is string
21263 # having a format:
21264 # "DIR[:DIR]:"
21265 # string "DIR[ DIR]" will be prepended to VARIABLE
21266 # ":DIR[:DIR]"
21267 # string "DIR[ DIR]" will be appended to VARIABLE
21268 # "DIRP[:DIRP]::[DIRA:]DIRA"
21269 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
21270 # "DIRA[ DIRA]" will be appended to VARIABLE
21271 # "DIR[:DIR]"
21272 # VARIABLE will be replaced by "DIR[ DIR]"
21273 func_munge_path_list ()
21274 {
21275 case x$2 in
21276 x)
21277 ;;
21278 *:)
21279 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
21280 ;;
21281 x:*)
21282 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
21283 ;;
21284 *::*)
21285 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
21286 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
21287 ;;
21288 *)
21289 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
21290 ;;
21291 esac
21292 }
21293
21294
21295 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
21296 func_cc_basename ()
21297 {
21298 for cc_temp in $*""; do
21299 case $cc_temp in
21300 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21301 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21302 \-*) ;;
21303 *) break;;
21304 esac
21305 done
21306 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
21307 }
21308
21309
21310 # ### END FUNCTIONS SHARED WITH CONFIGURE
21311
21312 _LT_EOF
21313
21314 case $host_os in
21315 aix3*)
21316 cat <<\_LT_EOF >> "$cfgfile"
21317 # AIX sometimes has problems with the GCC collect2 program. For some
21318 # reason, if we set the COLLECT_NAMES environment variable, the problems
21319 # vanish in a puff of smoke.
21320 if test set != "${COLLECT_NAMES+set}"; then
21321 COLLECT_NAMES=
21322 export COLLECT_NAMES
21323 fi
21324 _LT_EOF
21325 ;;
21326 esac
21327
21328
21329 ltmain=$ac_aux_dir/ltmain.sh
21330
21331
21332 # We use sed instead of cat because bash on DJGPP gets confused if
21333 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21334 # text mode, it properly converts lines to CR/LF. This bash problem
21335 # is reportedly fixed, but why not run on old versions too?
21336 sed '$q' "$ltmain" >> "$cfgfile" \
21337 || (rm -f "$cfgfile"; exit 1)
21338
21339 mv -f "$cfgfile" "$ofile" ||
21340 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21341 chmod +x "$ofile"
21342
21343 ;;
21344
21345 esac
21346 done # for ac_tag
21347
21348
21349 as_fn_exit 0
21350 _ACEOF
21351 ac_clean_files=$ac_clean_files_save
21352
21353 test $ac_write_fail = 0 ||
21354 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21355
21356
21357 # configure is writing to config.log, and then calls config.status.
21358 # config.status does its own redirection, appending to config.log.
21359 # Unfortunately, on DOS this fails, as config.log is still kept open
21360 # by configure, so config.status won't be able to write to it; its
21361 # output is simply discarded. So we exec the FD to /dev/null,
21362 # effectively closing config.log, so it can be properly (re)opened and
21363 # appended to by config.status. When coming back to configure, we
21364 # need to make the FD available again.
21365 if test "$no_create" != yes; then
21366 ac_cs_success=:
21367 ac_config_status_args=
21368 test "$silent" = yes &&
21369 ac_config_status_args="$ac_config_status_args --quiet"
21370 exec 5>/dev/null
21371 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21372 exec 5>>config.log
21373 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21374 # would make configure fail if this is the last instruction.
21375 $ac_cs_success || as_fn_exit 1
21376 fi
21377 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21379 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21380 fi
21381
21382