configure revision 1.1.1.6 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for xf86-video-tdfx 1.4.6.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
202
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
214 fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235 fi
236 fi
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
278 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
279 $0: about your system, including any error possibly output
280 $0: before this message. Then install a modern shell, or
281 $0: manually run the script under such a shell if you do
282 $0: have one."
283 fi
284 exit 1
285 fi
286 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302 { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
309 as_fn_set_status ()
310 {
311 return $1
312 } # as_fn_set_status
313
314 # as_fn_exit STATUS
315 # -----------------
316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 as_fn_exit ()
318 {
319 set +e
320 as_fn_set_status $1
321 exit $1
322 } # as_fn_exit
323
324 # as_fn_mkdir_p
325 # -------------
326 # Create "$as_dir" as a directory, including parents if necessary.
327 as_fn_mkdir_p ()
328 {
329
330 case $as_dir in #(
331 -*) as_dir=./$as_dir;;
332 esac
333 test -d "$as_dir" || eval $as_mkdir_p || {
334 as_dirs=
335 while :; do
336 case $as_dir in #(
337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338 *) as_qdir=$as_dir;;
339 esac
340 as_dirs="'$as_qdir' $as_dirs"
341 as_dir=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343 X"$as_dir" : 'X\(//\)[^/]' \| \
344 X"$as_dir" : 'X\(//\)$' \| \
345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 $as_echo X"$as_dir" |
347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)[^/].*/{
352 s//\1/
353 q
354 }
355 /^X\(\/\/\)$/{
356 s//\1/
357 q
358 }
359 /^X\(\/\).*/{
360 s//\1/
361 q
362 }
363 s/.*/./; q'`
364 test -d "$as_dir" && break
365 done
366 test -z "$as_dirs" || eval "mkdir $as_dirs"
367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370 } # as_fn_mkdir_p
371
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
376 {
377 test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
384 # implementations.
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386 eval 'as_fn_append ()
387 {
388 eval $1+=\$2
389 }'
390 else
391 as_fn_append ()
392 {
393 eval $1=\$$1\$2
394 }
395 fi # as_fn_append
396
397 # as_fn_arith ARG...
398 # ------------------
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403 eval 'as_fn_arith ()
404 {
405 as_val=$(( $* ))
406 }'
407 else
408 as_fn_arith ()
409 {
410 as_val=`expr "$@" || test $? -eq 1`
411 }
412 fi # as_fn_arith
413
414
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
420 as_fn_error ()
421 {
422 as_status=$1; test $as_status -eq 0 && as_status=1
423 if test "$4"; then
424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 fi
427 $as_echo "$as_me: error: $2" >&2
428 as_fn_exit $as_status
429 } # as_fn_error
430
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432 test "X`expr 00001 : '.*\(...\)'`" = X001; then
433 as_expr=expr
434 else
435 as_expr=false
436 fi
437
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439 as_basename=basename
440 else
441 as_basename=false
442 fi
443
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445 as_dirname=dirname
446 else
447 as_dirname=false
448 fi
449
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452 X"$0" : 'X\(//\)$' \| \
453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 $as_echo X/"$0" |
455 sed '/^.*\/\([^/][^/]*\)\/*$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\/\)$/{
460 s//\1/
461 q
462 }
463 /^X\/\(\/\).*/{
464 s//\1/
465 q
466 }
467 s/.*/./; q'`
468
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477 as_lineno_1=$LINENO as_lineno_1a=$LINENO
478 as_lineno_2=$LINENO as_lineno_2a=$LINENO
479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
482 sed -n '
483 p
484 /[$]LINENO/=
485 ' <$as_myself |
486 sed '
487 s/[$]LINENO.*/&-/
488 t lineno
489 b
490 :lineno
491 N
492 :loop
493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494 t loop
495 s/-\n.*//
496 ' >$as_me.lineno &&
497 chmod +x "$as_me.lineno" ||
498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501 # already done that, so ensure we don't try to do so again and fall
502 # in an infinite loop. This has already happened in practice.
503 _as_can_reexec=no; export _as_can_reexec
504 # Don't try to exec as it changes $[0], causing all sort of problems
505 # (the dirname of $[0] is not the place where we might find the
506 # original and so on. Autoconf is especially sensitive to this).
507 . "./$as_me.lineno"
508 # Exit status is that of the last command.
509 exit
510 }
511
512 ECHO_C= ECHO_N= ECHO_T=
513 case `echo -n x` in #(((((
514 -n*)
515 case `echo 'xy\c'` in
516 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 xy) ECHO_C='\c';;
518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
519 ECHO_T=' ';;
520 esac;;
521 *)
522 ECHO_N='-n';;
523 esac
524
525 rm -f conf$$ conf$$.exe conf$$.file
526 if test -d conf$$.dir; then
527 rm -f conf$$.dir/conf$$.file
528 else
529 rm -f conf$$.dir
530 mkdir conf$$.dir 2>/dev/null
531 fi
532 if (echo >conf$$.file) 2>/dev/null; then
533 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 as_ln_s='ln -s'
535 # ... but there are two gotchas:
536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538 # In both cases, we have to default to `cp -pR'.
539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 as_ln_s='cp -pR'
541 elif ln conf$$.file conf$$ 2>/dev/null; then
542 as_ln_s=ln
543 else
544 as_ln_s='cp -pR'
545 fi
546 else
547 as_ln_s='cp -pR'
548 fi
549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550 rmdir conf$$.dir 2>/dev/null
551
552 if mkdir -p . 2>/dev/null; then
553 as_mkdir_p='mkdir -p "$as_dir"'
554 else
555 test -d ./-p && rmdir ./-p
556 as_mkdir_p=false
557 fi
558
559 as_test_x='test -x'
560 as_executable_p=as_fn_executable_p
561
562 # Sed expression to map a string onto a valid CPP name.
563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565 # Sed expression to map a string onto a valid variable name.
566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568 SHELL=${CONFIG_SHELL-/bin/sh}
569
570
571 test -n "$DJDIR" || exec 7<&0 </dev/null
572 exec 6>&1
573
574 # Name of the host.
575 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576 # so uname gets run too.
577 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
579 #
580 # Initializations.
581 #
582 ac_default_prefix=/usr/local
583 ac_clean_files=
584 ac_config_libobj_dir=.
585 LIBOBJS=
586 cross_compiling=no
587 subdirs=
588 MFLAGS=
589 MAKEFLAGS=
590
591 # Identity of this package.
592 PACKAGE_NAME='xf86-video-tdfx'
593 PACKAGE_TARNAME='xf86-video-tdfx'
594 PACKAGE_VERSION='1.4.6'
595 PACKAGE_STRING='xf86-video-tdfx 1.4.6'
596 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
597 PACKAGE_URL=''
598
599 ac_unique_file="Makefile.am"
600 # Factoring default headers for most tests.
601 ac_includes_default="\
602 #include <stdio.h>
603 #ifdef HAVE_SYS_TYPES_H
604 # include <sys/types.h>
605 #endif
606 #ifdef HAVE_SYS_STAT_H
607 # include <sys/stat.h>
608 #endif
609 #ifdef STDC_HEADERS
610 # include <stdlib.h>
611 # include <stddef.h>
612 #else
613 # ifdef HAVE_STDLIB_H
614 # include <stdlib.h>
615 # endif
616 #endif
617 #ifdef HAVE_STRING_H
618 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 # include <memory.h>
620 # endif
621 # include <string.h>
622 #endif
623 #ifdef HAVE_STRINGS_H
624 # include <strings.h>
625 #endif
626 #ifdef HAVE_INTTYPES_H
627 # include <inttypes.h>
628 #endif
629 #ifdef HAVE_STDINT_H
630 # include <stdint.h>
631 #endif
632 #ifdef HAVE_UNISTD_H
633 # include <unistd.h>
634 #endif"
635
636 ac_subst_vars='am__EXEEXT_FALSE
637 am__EXEEXT_TRUE
638 LTLIBOBJS
639 LIBOBJS
640 DRIVER_NAME
641 moduledir
642 XAA_FALSE
643 XAA_TRUE
644 XSERVER_LIBPCIACCESS_FALSE
645 XSERVER_LIBPCIACCESS_TRUE
646 PCIACCESS_LIBS
647 PCIACCESS_CFLAGS
648 DRI_LIBS
649 DRI_CFLAGS
650 DRI_FALSE
651 DRI_TRUE
652 XORG_LIBS
653 XORG_CFLAGS
654 OTOOL64
655 OTOOL
656 LIPO
657 NMEDIT
658 DSYMUTIL
659 MANIFEST_TOOL
660 RANLIB
661 ac_ct_AR
662 AR
663 DLLTOOL
664 OBJDUMP
665 LN_S
666 NM
667 ac_ct_DUMPBIN
668 DUMPBIN
669 LD
670 FGREP
671 LIBTOOL
672 MAN_SUBSTS
673 XORG_MAN_PAGE
674 ADMIN_MAN_DIR
675 DRIVER_MAN_DIR
676 MISC_MAN_DIR
677 FILE_MAN_DIR
678 LIB_MAN_DIR
679 APP_MAN_DIR
680 ADMIN_MAN_SUFFIX
681 DRIVER_MAN_SUFFIX
682 MISC_MAN_SUFFIX
683 FILE_MAN_SUFFIX
684 LIB_MAN_SUFFIX
685 APP_MAN_SUFFIX
686 SED
687 host_os
688 host_vendor
689 host_cpu
690 host
691 build_os
692 build_vendor
693 build_cpu
694 build
695 INSTALL_CMD
696 PKG_CONFIG_LIBDIR
697 PKG_CONFIG_PATH
698 PKG_CONFIG
699 CHANGELOG_CMD
700 STRICT_CFLAGS
701 CWARNFLAGS
702 BASE_CFLAGS
703 EGREP
704 GREP
705 CPP
706 am__fastdepCC_FALSE
707 am__fastdepCC_TRUE
708 CCDEPMODE
709 am__nodep
710 AMDEPBACKSLASH
711 AMDEP_FALSE
712 AMDEP_TRUE
713 am__quote
714 am__include
715 DEPDIR
716 OBJEXT
717 EXEEXT
718 ac_ct_CC
719 CPPFLAGS
720 LDFLAGS
721 CFLAGS
722 CC
723 MAINT
724 MAINTAINER_MODE_FALSE
725 MAINTAINER_MODE_TRUE
726 AM_BACKSLASH
727 AM_DEFAULT_VERBOSITY
728 AM_DEFAULT_V
729 AM_V
730 am__untar
731 am__tar
732 AMTAR
733 am__leading_dot
734 SET_MAKE
735 AWK
736 mkdir_p
737 MKDIR_P
738 INSTALL_STRIP_PROGRAM
739 STRIP
740 install_sh
741 MAKEINFO
742 AUTOHEADER
743 AUTOMAKE
744 AUTOCONF
745 ACLOCAL
746 VERSION
747 PACKAGE
748 CYGPATH_W
749 am__isrc
750 INSTALL_DATA
751 INSTALL_SCRIPT
752 INSTALL_PROGRAM
753 target_alias
754 host_alias
755 build_alias
756 LIBS
757 ECHO_T
758 ECHO_N
759 ECHO_C
760 DEFS
761 mandir
762 localedir
763 libdir
764 psdir
765 pdfdir
766 dvidir
767 htmldir
768 infodir
769 docdir
770 oldincludedir
771 includedir
772 localstatedir
773 sharedstatedir
774 sysconfdir
775 datadir
776 datarootdir
777 libexecdir
778 sbindir
779 bindir
780 program_transform_name
781 prefix
782 exec_prefix
783 PACKAGE_URL
784 PACKAGE_BUGREPORT
785 PACKAGE_STRING
786 PACKAGE_VERSION
787 PACKAGE_TARNAME
788 PACKAGE_NAME
789 PATH_SEPARATOR
790 SHELL'
791 ac_subst_files=''
792 ac_user_opts='
793 enable_option_checking
794 enable_silent_rules
795 enable_maintainer_mode
796 enable_dependency_tracking
797 enable_selective_werror
798 enable_strict_compilation
799 enable_static
800 enable_shared
801 with_pic
802 enable_fast_install
803 with_aix_soname
804 with_gnu_ld
805 with_sysroot
806 enable_libtool_lock
807 with_xorg_module_dir
808 enable_dri
809 enable_xaa
810 '
811 ac_precious_vars='build_alias
812 host_alias
813 target_alias
814 CC
815 CFLAGS
816 LDFLAGS
817 LIBS
818 CPPFLAGS
819 CPP
820 PKG_CONFIG
821 PKG_CONFIG_PATH
822 PKG_CONFIG_LIBDIR
823 XORG_CFLAGS
824 XORG_LIBS
825 DRI_CFLAGS
826 DRI_LIBS
827 PCIACCESS_CFLAGS
828 PCIACCESS_LIBS'
829
830
831 # Initialize some variables set by options.
832 ac_init_help=
833 ac_init_version=false
834 ac_unrecognized_opts=
835 ac_unrecognized_sep=
836 # The variables have the same names as the options, with
837 # dashes changed to underlines.
838 cache_file=/dev/null
839 exec_prefix=NONE
840 no_create=
841 no_recursion=
842 prefix=NONE
843 program_prefix=NONE
844 program_suffix=NONE
845 program_transform_name=s,x,x,
846 silent=
847 site=
848 srcdir=
849 verbose=
850 x_includes=NONE
851 x_libraries=NONE
852
853 # Installation directory options.
854 # These are left unexpanded so users can "make install exec_prefix=/foo"
855 # and all the variables that are supposed to be based on exec_prefix
856 # by default will actually change.
857 # Use braces instead of parens because sh, perl, etc. also accept them.
858 # (The list follows the same order as the GNU Coding Standards.)
859 bindir='${exec_prefix}/bin'
860 sbindir='${exec_prefix}/sbin'
861 libexecdir='${exec_prefix}/libexec'
862 datarootdir='${prefix}/share'
863 datadir='${datarootdir}'
864 sysconfdir='${prefix}/etc'
865 sharedstatedir='${prefix}/com'
866 localstatedir='${prefix}/var'
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 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1120 ac_prev=sbindir ;;
1121 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1122 | --sbi=* | --sb=*)
1123 sbindir=$ac_optarg ;;
1124
1125 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1126 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1127 | --sharedst | --shareds | --shared | --share | --shar \
1128 | --sha | --sh)
1129 ac_prev=sharedstatedir ;;
1130 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1131 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1132 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1133 | --sha=* | --sh=*)
1134 sharedstatedir=$ac_optarg ;;
1135
1136 -site | --site | --sit)
1137 ac_prev=site ;;
1138 -site=* | --site=* | --sit=*)
1139 site=$ac_optarg ;;
1140
1141 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1142 ac_prev=srcdir ;;
1143 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1144 srcdir=$ac_optarg ;;
1145
1146 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1147 | --syscon | --sysco | --sysc | --sys | --sy)
1148 ac_prev=sysconfdir ;;
1149 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1150 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1151 sysconfdir=$ac_optarg ;;
1152
1153 -target | --target | --targe | --targ | --tar | --ta | --t)
1154 ac_prev=target_alias ;;
1155 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1156 target_alias=$ac_optarg ;;
1157
1158 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1159 verbose=yes ;;
1160
1161 -version | --version | --versio | --versi | --vers | -V)
1162 ac_init_version=: ;;
1163
1164 -with-* | --with-*)
1165 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1166 # Reject names that are not valid shell variable names.
1167 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1168 as_fn_error $? "invalid package name: $ac_useropt"
1169 ac_useropt_orig=$ac_useropt
1170 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1171 case $ac_user_opts in
1172 *"
1173 "with_$ac_useropt"
1174 "*) ;;
1175 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1176 ac_unrecognized_sep=', ';;
1177 esac
1178 eval with_$ac_useropt=\$ac_optarg ;;
1179
1180 -without-* | --without-*)
1181 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1182 # Reject names that are not valid shell variable names.
1183 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1184 as_fn_error $? "invalid package name: $ac_useropt"
1185 ac_useropt_orig=$ac_useropt
1186 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1187 case $ac_user_opts in
1188 *"
1189 "with_$ac_useropt"
1190 "*) ;;
1191 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1192 ac_unrecognized_sep=', ';;
1193 esac
1194 eval with_$ac_useropt=no ;;
1195
1196 --x)
1197 # Obsolete; use --with-x.
1198 with_x=yes ;;
1199
1200 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1201 | --x-incl | --x-inc | --x-in | --x-i)
1202 ac_prev=x_includes ;;
1203 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1204 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1205 x_includes=$ac_optarg ;;
1206
1207 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1208 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1209 ac_prev=x_libraries ;;
1210 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1211 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1212 x_libraries=$ac_optarg ;;
1213
1214 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1215 Try \`$0 --help' for more information"
1216 ;;
1217
1218 *=*)
1219 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1220 # Reject names that are not valid shell variable names.
1221 case $ac_envvar in #(
1222 '' | [0-9]* | *[!_$as_cr_alnum]* )
1223 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1224 esac
1225 eval $ac_envvar=\$ac_optarg
1226 export $ac_envvar ;;
1227
1228 *)
1229 # FIXME: should be removed in autoconf 3.0.
1230 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1231 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1232 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1233 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1234 ;;
1235
1236 esac
1237 done
1238
1239 if test -n "$ac_prev"; then
1240 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1241 as_fn_error $? "missing argument to $ac_option"
1242 fi
1243
1244 if test -n "$ac_unrecognized_opts"; then
1245 case $enable_option_checking in
1246 no) ;;
1247 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1248 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1249 esac
1250 fi
1251
1252 # Check all directory arguments for consistency.
1253 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1254 datadir sysconfdir sharedstatedir localstatedir includedir \
1255 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1256 libdir localedir mandir
1257 do
1258 eval ac_val=\$$ac_var
1259 # Remove trailing slashes.
1260 case $ac_val in
1261 */ )
1262 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1263 eval $ac_var=\$ac_val;;
1264 esac
1265 # Be sure to have absolute directory names.
1266 case $ac_val in
1267 [\\/$]* | ?:[\\/]* ) continue;;
1268 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1269 esac
1270 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1271 done
1272
1273 # There might be people who depend on the old broken behavior: `$host'
1274 # used to hold the argument of --host etc.
1275 # FIXME: To remove some day.
1276 build=$build_alias
1277 host=$host_alias
1278 target=$target_alias
1279
1280 # FIXME: To remove some day.
1281 if test "x$host_alias" != x; then
1282 if test "x$build_alias" = x; then
1283 cross_compiling=maybe
1284 elif test "x$build_alias" != "x$host_alias"; then
1285 cross_compiling=yes
1286 fi
1287 fi
1288
1289 ac_tool_prefix=
1290 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1291
1292 test "$silent" = yes && exec 6>/dev/null
1293
1294
1295 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1296 ac_ls_di=`ls -di .` &&
1297 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1298 as_fn_error $? "working directory cannot be determined"
1299 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1300 as_fn_error $? "pwd does not report name of working directory"
1301
1302
1303 # Find the source files, if location was not specified.
1304 if test -z "$srcdir"; then
1305 ac_srcdir_defaulted=yes
1306 # Try the directory containing this script, then the parent directory.
1307 ac_confdir=`$as_dirname -- "$as_myself" ||
1308 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1309 X"$as_myself" : 'X\(//\)[^/]' \| \
1310 X"$as_myself" : 'X\(//\)$' \| \
1311 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1312 $as_echo X"$as_myself" |
1313 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1314 s//\1/
1315 q
1316 }
1317 /^X\(\/\/\)[^/].*/{
1318 s//\1/
1319 q
1320 }
1321 /^X\(\/\/\)$/{
1322 s//\1/
1323 q
1324 }
1325 /^X\(\/\).*/{
1326 s//\1/
1327 q
1328 }
1329 s/.*/./; q'`
1330 srcdir=$ac_confdir
1331 if test ! -r "$srcdir/$ac_unique_file"; then
1332 srcdir=..
1333 fi
1334 else
1335 ac_srcdir_defaulted=no
1336 fi
1337 if test ! -r "$srcdir/$ac_unique_file"; then
1338 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1339 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1340 fi
1341 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1342 ac_abs_confdir=`(
1343 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1344 pwd)`
1345 # When building in place, set srcdir=.
1346 if test "$ac_abs_confdir" = "$ac_pwd"; then
1347 srcdir=.
1348 fi
1349 # Remove unnecessary trailing slashes from srcdir.
1350 # Double slashes in file names in object file debugging info
1351 # mess up M-x gdb in Emacs.
1352 case $srcdir in
1353 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1354 esac
1355 for ac_var in $ac_precious_vars; do
1356 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1357 eval ac_env_${ac_var}_value=\$${ac_var}
1358 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1359 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1360 done
1361
1362 #
1363 # Report the --help message.
1364 #
1365 if test "$ac_init_help" = "long"; then
1366 # Omit some internal or obsolete options to make the list less imposing.
1367 # This message is too long to be a string in the A/UX 3.1 sh.
1368 cat <<_ACEOF
1369 \`configure' configures xf86-video-tdfx 1.4.6 to adapt to many kinds of systems.
1370
1371 Usage: $0 [OPTION]... [VAR=VALUE]...
1372
1373 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1374 VAR=VALUE. See below for descriptions of some of the useful variables.
1375
1376 Defaults for the options are specified in brackets.
1377
1378 Configuration:
1379 -h, --help display this help and exit
1380 --help=short display options specific to this package
1381 --help=recursive display the short help of all the included packages
1382 -V, --version display version information and exit
1383 -q, --quiet, --silent do not print \`checking ...' messages
1384 --cache-file=FILE cache test results in FILE [disabled]
1385 -C, --config-cache alias for \`--cache-file=config.cache'
1386 -n, --no-create do not create output files
1387 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1388
1389 Installation directories:
1390 --prefix=PREFIX install architecture-independent files in PREFIX
1391 [$ac_default_prefix]
1392 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1393 [PREFIX]
1394
1395 By default, \`make install' will install all the files in
1396 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1397 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1398 for instance \`--prefix=\$HOME'.
1399
1400 For better control, use the options below.
1401
1402 Fine tuning of the installation directories:
1403 --bindir=DIR user executables [EPREFIX/bin]
1404 --sbindir=DIR system admin executables [EPREFIX/sbin]
1405 --libexecdir=DIR program executables [EPREFIX/libexec]
1406 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1407 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1408 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1409 --libdir=DIR object code libraries [EPREFIX/lib]
1410 --includedir=DIR C header files [PREFIX/include]
1411 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1412 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1413 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1414 --infodir=DIR info documentation [DATAROOTDIR/info]
1415 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1416 --mandir=DIR man documentation [DATAROOTDIR/man]
1417 --docdir=DIR documentation root [DATAROOTDIR/doc/xf86-video-tdfx]
1418 --htmldir=DIR html documentation [DOCDIR]
1419 --dvidir=DIR dvi documentation [DOCDIR]
1420 --pdfdir=DIR pdf documentation [DOCDIR]
1421 --psdir=DIR ps documentation [DOCDIR]
1422 _ACEOF
1423
1424 cat <<\_ACEOF
1425
1426 Program names:
1427 --program-prefix=PREFIX prepend PREFIX to installed program names
1428 --program-suffix=SUFFIX append SUFFIX to installed program names
1429 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1430
1431 System types:
1432 --build=BUILD configure for building on BUILD [guessed]
1433 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1434 _ACEOF
1435 fi
1436
1437 if test -n "$ac_init_help"; then
1438 case $ac_init_help in
1439 short | recursive ) echo "Configuration of xf86-video-tdfx 1.4.6:";;
1440 esac
1441 cat <<\_ACEOF
1442
1443 Optional Features:
1444 --disable-option-checking ignore unrecognized --enable/--with options
1445 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1446 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1447 --enable-silent-rules less verbose build output (undo: "make V=1")
1448 --disable-silent-rules verbose build output (undo: "make V=0")
1449 --enable-maintainer-mode
1450 enable make rules and dependencies not useful (and
1451 sometimes confusing) to the casual installer
1452 --enable-dependency-tracking
1453 do not reject slow dependency extractors
1454 --disable-dependency-tracking
1455 speeds up one-time build
1456 --disable-selective-werror
1457 Turn off selective compiler errors. (default:
1458 enabled)
1459 --enable-strict-compilation
1460 Enable all warnings from compiler and make them
1461 errors (default: disabled)
1462 --enable-static[=PKGS] build static libraries [default=no]
1463 --enable-shared[=PKGS] build shared libraries [default=yes]
1464 --enable-fast-install[=PKGS]
1465 optimize for fast installation [default=yes]
1466 --disable-libtool-lock avoid locking (might break parallel builds)
1467 --disable-dri Disable DRI support [[default=auto]]
1468 --enable-xaa Enable legacy X Acceleration Architecture (XAA)
1469 [default=auto]
1470
1471 Optional Packages:
1472 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1473 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1474 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1475 both]
1476 --with-aix-soname=aix|svr4|both
1477 shared library versioning (aka "SONAME") variant to
1478 provide on AIX, [default=aix].
1479 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1480 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1481 compiler's sysroot if not specified).
1482 --with-xorg-module-dir=DIR
1483 Default xorg module directory
1484 [[default=$libdir/xorg/modules]]
1485
1486 Some influential environment variables:
1487 CC C compiler command
1488 CFLAGS C compiler flags
1489 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1490 nonstandard directory <lib dir>
1491 LIBS libraries to pass to the linker, e.g. -l<library>
1492 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1493 you have headers in a nonstandard directory <include dir>
1494 CPP C preprocessor
1495 PKG_CONFIG path to pkg-config utility
1496 PKG_CONFIG_PATH
1497 directories to add to pkg-config's search path
1498 PKG_CONFIG_LIBDIR
1499 path overriding pkg-config's built-in search path
1500 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1501 XORG_LIBS linker flags for XORG, overriding pkg-config
1502 DRI_CFLAGS C compiler flags for DRI, overriding pkg-config
1503 DRI_LIBS linker flags for DRI, overriding pkg-config
1504 PCIACCESS_CFLAGS
1505 C compiler flags for PCIACCESS, overriding pkg-config
1506 PCIACCESS_LIBS
1507 linker flags for PCIACCESS, overriding pkg-config
1508
1509 Use these variables to override the choices made by `configure' or to help
1510 it to find libraries and programs with nonstandard names/locations.
1511
1512 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1513 _ACEOF
1514 ac_status=$?
1515 fi
1516
1517 if test "$ac_init_help" = "recursive"; then
1518 # If there are subdirs, report their specific --help.
1519 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1520 test -d "$ac_dir" ||
1521 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1522 continue
1523 ac_builddir=.
1524
1525 case "$ac_dir" in
1526 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1527 *)
1528 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1529 # A ".." for each directory in $ac_dir_suffix.
1530 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1531 case $ac_top_builddir_sub in
1532 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1533 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1534 esac ;;
1535 esac
1536 ac_abs_top_builddir=$ac_pwd
1537 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1538 # for backward compatibility:
1539 ac_top_builddir=$ac_top_build_prefix
1540
1541 case $srcdir in
1542 .) # We are building in place.
1543 ac_srcdir=.
1544 ac_top_srcdir=$ac_top_builddir_sub
1545 ac_abs_top_srcdir=$ac_pwd ;;
1546 [\\/]* | ?:[\\/]* ) # Absolute name.
1547 ac_srcdir=$srcdir$ac_dir_suffix;
1548 ac_top_srcdir=$srcdir
1549 ac_abs_top_srcdir=$srcdir ;;
1550 *) # Relative name.
1551 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1552 ac_top_srcdir=$ac_top_build_prefix$srcdir
1553 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1554 esac
1555 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1556
1557 cd "$ac_dir" || { ac_status=$?; continue; }
1558 # Check for guested configure.
1559 if test -f "$ac_srcdir/configure.gnu"; then
1560 echo &&
1561 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1562 elif test -f "$ac_srcdir/configure"; then
1563 echo &&
1564 $SHELL "$ac_srcdir/configure" --help=recursive
1565 else
1566 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1567 fi || ac_status=$?
1568 cd "$ac_pwd" || { ac_status=$?; break; }
1569 done
1570 fi
1571
1572 test -n "$ac_init_help" && exit $ac_status
1573 if $ac_init_version; then
1574 cat <<\_ACEOF
1575 xf86-video-tdfx configure 1.4.6
1576 generated by GNU Autoconf 2.69
1577
1578 Copyright (C) 2012 Free Software Foundation, Inc.
1579 This configure script is free software; the Free Software Foundation
1580 gives unlimited permission to copy, distribute and modify it.
1581 _ACEOF
1582 exit
1583 fi
1584
1585 ## ------------------------ ##
1586 ## Autoconf initialization. ##
1587 ## ------------------------ ##
1588
1589 # ac_fn_c_try_compile LINENO
1590 # --------------------------
1591 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1592 ac_fn_c_try_compile ()
1593 {
1594 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1595 rm -f conftest.$ac_objext
1596 if { { ac_try="$ac_compile"
1597 case "(($ac_try" in
1598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1599 *) ac_try_echo=$ac_try;;
1600 esac
1601 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1602 $as_echo "$ac_try_echo"; } >&5
1603 (eval "$ac_compile") 2>conftest.err
1604 ac_status=$?
1605 if test -s conftest.err; then
1606 grep -v '^ *+' conftest.err >conftest.er1
1607 cat conftest.er1 >&5
1608 mv -f conftest.er1 conftest.err
1609 fi
1610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1611 test $ac_status = 0; } && {
1612 test -z "$ac_c_werror_flag" ||
1613 test ! -s conftest.err
1614 } && test -s conftest.$ac_objext; then :
1615 ac_retval=0
1616 else
1617 $as_echo "$as_me: failed program was:" >&5
1618 sed 's/^/| /' conftest.$ac_ext >&5
1619
1620 ac_retval=1
1621 fi
1622 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1623 as_fn_set_status $ac_retval
1624
1625 } # ac_fn_c_try_compile
1626
1627 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1628 # ---------------------------------------------
1629 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1630 # accordingly.
1631 ac_fn_c_check_decl ()
1632 {
1633 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1634 as_decl_name=`echo $2|sed 's/ *(.*//'`
1635 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1637 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1638 if eval \${$3+:} false; then :
1639 $as_echo_n "(cached) " >&6
1640 else
1641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1642 /* end confdefs.h. */
1643 $4
1644 int
1645 main ()
1646 {
1647 #ifndef $as_decl_name
1648 #ifdef __cplusplus
1649 (void) $as_decl_use;
1650 #else
1651 (void) $as_decl_name;
1652 #endif
1653 #endif
1654
1655 ;
1656 return 0;
1657 }
1658 _ACEOF
1659 if ac_fn_c_try_compile "$LINENO"; then :
1660 eval "$3=yes"
1661 else
1662 eval "$3=no"
1663 fi
1664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1665 fi
1666 eval ac_res=\$$3
1667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1668 $as_echo "$ac_res" >&6; }
1669 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1670
1671 } # ac_fn_c_check_decl
1672
1673 # ac_fn_c_try_cpp LINENO
1674 # ----------------------
1675 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1676 ac_fn_c_try_cpp ()
1677 {
1678 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1679 if { { ac_try="$ac_cpp conftest.$ac_ext"
1680 case "(($ac_try" in
1681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1682 *) ac_try_echo=$ac_try;;
1683 esac
1684 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1685 $as_echo "$ac_try_echo"; } >&5
1686 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1687 ac_status=$?
1688 if test -s conftest.err; then
1689 grep -v '^ *+' conftest.err >conftest.er1
1690 cat conftest.er1 >&5
1691 mv -f conftest.er1 conftest.err
1692 fi
1693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1694 test $ac_status = 0; } > conftest.i && {
1695 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1696 test ! -s conftest.err
1697 }; then :
1698 ac_retval=0
1699 else
1700 $as_echo "$as_me: failed program was:" >&5
1701 sed 's/^/| /' conftest.$ac_ext >&5
1702
1703 ac_retval=1
1704 fi
1705 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1706 as_fn_set_status $ac_retval
1707
1708 } # ac_fn_c_try_cpp
1709
1710 # ac_fn_c_try_run LINENO
1711 # ----------------------
1712 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1713 # that executables *can* be run.
1714 ac_fn_c_try_run ()
1715 {
1716 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1717 if { { ac_try="$ac_link"
1718 case "(($ac_try" in
1719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1720 *) ac_try_echo=$ac_try;;
1721 esac
1722 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1723 $as_echo "$ac_try_echo"; } >&5
1724 (eval "$ac_link") 2>&5
1725 ac_status=$?
1726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1727 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1728 { { case "(($ac_try" in
1729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1730 *) ac_try_echo=$ac_try;;
1731 esac
1732 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1733 $as_echo "$ac_try_echo"; } >&5
1734 (eval "$ac_try") 2>&5
1735 ac_status=$?
1736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1737 test $ac_status = 0; }; }; then :
1738 ac_retval=0
1739 else
1740 $as_echo "$as_me: program exited with status $ac_status" >&5
1741 $as_echo "$as_me: failed program was:" >&5
1742 sed 's/^/| /' conftest.$ac_ext >&5
1743
1744 ac_retval=$ac_status
1745 fi
1746 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1747 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1748 as_fn_set_status $ac_retval
1749
1750 } # ac_fn_c_try_run
1751
1752 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1753 # -------------------------------------------------------
1754 # Tests whether HEADER exists and can be compiled using the include files in
1755 # INCLUDES, setting the cache variable VAR accordingly.
1756 ac_fn_c_check_header_compile ()
1757 {
1758 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1760 $as_echo_n "checking for $2... " >&6; }
1761 if eval \${$3+:} false; then :
1762 $as_echo_n "(cached) " >&6
1763 else
1764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1765 /* end confdefs.h. */
1766 $4
1767 #include <$2>
1768 _ACEOF
1769 if ac_fn_c_try_compile "$LINENO"; then :
1770 eval "$3=yes"
1771 else
1772 eval "$3=no"
1773 fi
1774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1775 fi
1776 eval ac_res=\$$3
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1778 $as_echo "$ac_res" >&6; }
1779 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1780
1781 } # ac_fn_c_check_header_compile
1782
1783 # ac_fn_c_try_link LINENO
1784 # -----------------------
1785 # Try to link conftest.$ac_ext, and return whether this succeeded.
1786 ac_fn_c_try_link ()
1787 {
1788 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1789 rm -f conftest.$ac_objext conftest$ac_exeext
1790 if { { ac_try="$ac_link"
1791 case "(($ac_try" in
1792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1793 *) ac_try_echo=$ac_try;;
1794 esac
1795 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1796 $as_echo "$ac_try_echo"; } >&5
1797 (eval "$ac_link") 2>conftest.err
1798 ac_status=$?
1799 if test -s conftest.err; then
1800 grep -v '^ *+' conftest.err >conftest.er1
1801 cat conftest.er1 >&5
1802 mv -f conftest.er1 conftest.err
1803 fi
1804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1805 test $ac_status = 0; } && {
1806 test -z "$ac_c_werror_flag" ||
1807 test ! -s conftest.err
1808 } && test -s conftest$ac_exeext && {
1809 test "$cross_compiling" = yes ||
1810 test -x conftest$ac_exeext
1811 }; then :
1812 ac_retval=0
1813 else
1814 $as_echo "$as_me: failed program was:" >&5
1815 sed 's/^/| /' conftest.$ac_ext >&5
1816
1817 ac_retval=1
1818 fi
1819 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1820 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1821 # interfere with the next link command; also delete a directory that is
1822 # left behind by Apple's compiler. We do this before executing the actions.
1823 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1824 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1825 as_fn_set_status $ac_retval
1826
1827 } # ac_fn_c_try_link
1828
1829 # ac_fn_c_check_func LINENO FUNC VAR
1830 # ----------------------------------
1831 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1832 ac_fn_c_check_func ()
1833 {
1834 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1836 $as_echo_n "checking for $2... " >&6; }
1837 if eval \${$3+:} false; then :
1838 $as_echo_n "(cached) " >&6
1839 else
1840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1841 /* end confdefs.h. */
1842 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1843 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1844 #define $2 innocuous_$2
1845
1846 /* System header to define __stub macros and hopefully few prototypes,
1847 which can conflict with char $2 (); below.
1848 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1849 <limits.h> exists even on freestanding compilers. */
1850
1851 #ifdef __STDC__
1852 # include <limits.h>
1853 #else
1854 # include <assert.h>
1855 #endif
1856
1857 #undef $2
1858
1859 /* Override any GCC internal prototype to avoid an error.
1860 Use char because int might match the return type of a GCC
1861 builtin and then its argument prototype would still apply. */
1862 #ifdef __cplusplus
1863 extern "C"
1864 #endif
1865 char $2 ();
1866 /* The GNU C library defines this for functions which it implements
1867 to always fail with ENOSYS. Some functions are actually named
1868 something starting with __ and the normal name is an alias. */
1869 #if defined __stub_$2 || defined __stub___$2
1870 choke me
1871 #endif
1872
1873 int
1874 main ()
1875 {
1876 return $2 ();
1877 ;
1878 return 0;
1879 }
1880 _ACEOF
1881 if ac_fn_c_try_link "$LINENO"; then :
1882 eval "$3=yes"
1883 else
1884 eval "$3=no"
1885 fi
1886 rm -f core conftest.err conftest.$ac_objext \
1887 conftest$ac_exeext conftest.$ac_ext
1888 fi
1889 eval ac_res=\$$3
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1891 $as_echo "$ac_res" >&6; }
1892 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1893
1894 } # ac_fn_c_check_func
1895
1896 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1897 # -------------------------------------------------------
1898 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1899 # the include files in INCLUDES and setting the cache variable VAR
1900 # accordingly.
1901 ac_fn_c_check_header_mongrel ()
1902 {
1903 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1904 if eval \${$3+:} false; then :
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1906 $as_echo_n "checking for $2... " >&6; }
1907 if eval \${$3+:} false; then :
1908 $as_echo_n "(cached) " >&6
1909 fi
1910 eval ac_res=\$$3
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1912 $as_echo "$ac_res" >&6; }
1913 else
1914 # Is the header compilable?
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1916 $as_echo_n "checking $2 usability... " >&6; }
1917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1918 /* end confdefs.h. */
1919 $4
1920 #include <$2>
1921 _ACEOF
1922 if ac_fn_c_try_compile "$LINENO"; then :
1923 ac_header_compiler=yes
1924 else
1925 ac_header_compiler=no
1926 fi
1927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1929 $as_echo "$ac_header_compiler" >&6; }
1930
1931 # Is the header present?
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1933 $as_echo_n "checking $2 presence... " >&6; }
1934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1935 /* end confdefs.h. */
1936 #include <$2>
1937 _ACEOF
1938 if ac_fn_c_try_cpp "$LINENO"; then :
1939 ac_header_preproc=yes
1940 else
1941 ac_header_preproc=no
1942 fi
1943 rm -f conftest.err conftest.i conftest.$ac_ext
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1945 $as_echo "$ac_header_preproc" >&6; }
1946
1947 # So? What about this header?
1948 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1949 yes:no: )
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1951 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1953 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1954 ;;
1955 no:yes:* )
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1957 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1959 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1961 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1963 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1965 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1966 ( $as_echo "## ---------------------------------------------------------------------- ##
1967 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
1968 ## ---------------------------------------------------------------------- ##"
1969 ) | sed "s/^/$as_me: WARNING: /" >&2
1970 ;;
1971 esac
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1973 $as_echo_n "checking for $2... " >&6; }
1974 if eval \${$3+:} false; then :
1975 $as_echo_n "(cached) " >&6
1976 else
1977 eval "$3=\$ac_header_compiler"
1978 fi
1979 eval ac_res=\$$3
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1981 $as_echo "$ac_res" >&6; }
1982 fi
1983 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1984
1985 } # ac_fn_c_check_header_mongrel
1986 cat >config.log <<_ACEOF
1987 This file contains any messages produced by compilers while
1988 running configure, to aid debugging if configure makes a mistake.
1989
1990 It was created by xf86-video-tdfx $as_me 1.4.6, which was
1991 generated by GNU Autoconf 2.69. Invocation command line was
1992
1993 $ $0 $@
1994
1995 _ACEOF
1996 exec 5>>config.log
1997 {
1998 cat <<_ASUNAME
1999 ## --------- ##
2000 ## Platform. ##
2001 ## --------- ##
2002
2003 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2004 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2005 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2006 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2007 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2008
2009 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2010 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2011
2012 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2013 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2014 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2015 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2016 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2017 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2018 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2019
2020 _ASUNAME
2021
2022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2023 for as_dir in $PATH
2024 do
2025 IFS=$as_save_IFS
2026 test -z "$as_dir" && as_dir=.
2027 $as_echo "PATH: $as_dir"
2028 done
2029 IFS=$as_save_IFS
2030
2031 } >&5
2032
2033 cat >&5 <<_ACEOF
2034
2035
2036 ## ----------- ##
2037 ## Core tests. ##
2038 ## ----------- ##
2039
2040 _ACEOF
2041
2042
2043 # Keep a trace of the command line.
2044 # Strip out --no-create and --no-recursion so they do not pile up.
2045 # Strip out --silent because we don't want to record it for future runs.
2046 # Also quote any args containing shell meta-characters.
2047 # Make two passes to allow for proper duplicate-argument suppression.
2048 ac_configure_args=
2049 ac_configure_args0=
2050 ac_configure_args1=
2051 ac_must_keep_next=false
2052 for ac_pass in 1 2
2053 do
2054 for ac_arg
2055 do
2056 case $ac_arg in
2057 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2058 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2059 | -silent | --silent | --silen | --sile | --sil)
2060 continue ;;
2061 *\'*)
2062 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2063 esac
2064 case $ac_pass in
2065 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2066 2)
2067 as_fn_append ac_configure_args1 " '$ac_arg'"
2068 if test $ac_must_keep_next = true; then
2069 ac_must_keep_next=false # Got value, back to normal.
2070 else
2071 case $ac_arg in
2072 *=* | --config-cache | -C | -disable-* | --disable-* \
2073 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2074 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2075 | -with-* | --with-* | -without-* | --without-* | --x)
2076 case "$ac_configure_args0 " in
2077 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2078 esac
2079 ;;
2080 -* ) ac_must_keep_next=true ;;
2081 esac
2082 fi
2083 as_fn_append ac_configure_args " '$ac_arg'"
2084 ;;
2085 esac
2086 done
2087 done
2088 { ac_configure_args0=; unset ac_configure_args0;}
2089 { ac_configure_args1=; unset ac_configure_args1;}
2090
2091 # When interrupted or exit'd, cleanup temporary files, and complete
2092 # config.log. We remove comments because anyway the quotes in there
2093 # would cause problems or look ugly.
2094 # WARNING: Use '\'' to represent an apostrophe within the trap.
2095 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2096 trap 'exit_status=$?
2097 # Save into config.log some information that might help in debugging.
2098 {
2099 echo
2100
2101 $as_echo "## ---------------- ##
2102 ## Cache variables. ##
2103 ## ---------------- ##"
2104 echo
2105 # The following way of writing the cache mishandles newlines in values,
2106 (
2107 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2108 eval ac_val=\$$ac_var
2109 case $ac_val in #(
2110 *${as_nl}*)
2111 case $ac_var in #(
2112 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2113 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2114 esac
2115 case $ac_var in #(
2116 _ | IFS | as_nl) ;; #(
2117 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2118 *) { eval $ac_var=; unset $ac_var;} ;;
2119 esac ;;
2120 esac
2121 done
2122 (set) 2>&1 |
2123 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2124 *${as_nl}ac_space=\ *)
2125 sed -n \
2126 "s/'\''/'\''\\\\'\'''\''/g;
2127 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2128 ;; #(
2129 *)
2130 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2131 ;;
2132 esac |
2133 sort
2134 )
2135 echo
2136
2137 $as_echo "## ----------------- ##
2138 ## Output variables. ##
2139 ## ----------------- ##"
2140 echo
2141 for ac_var in $ac_subst_vars
2142 do
2143 eval ac_val=\$$ac_var
2144 case $ac_val in
2145 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2146 esac
2147 $as_echo "$ac_var='\''$ac_val'\''"
2148 done | sort
2149 echo
2150
2151 if test -n "$ac_subst_files"; then
2152 $as_echo "## ------------------- ##
2153 ## File substitutions. ##
2154 ## ------------------- ##"
2155 echo
2156 for ac_var in $ac_subst_files
2157 do
2158 eval ac_val=\$$ac_var
2159 case $ac_val in
2160 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2161 esac
2162 $as_echo "$ac_var='\''$ac_val'\''"
2163 done | sort
2164 echo
2165 fi
2166
2167 if test -s confdefs.h; then
2168 $as_echo "## ----------- ##
2169 ## confdefs.h. ##
2170 ## ----------- ##"
2171 echo
2172 cat confdefs.h
2173 echo
2174 fi
2175 test "$ac_signal" != 0 &&
2176 $as_echo "$as_me: caught signal $ac_signal"
2177 $as_echo "$as_me: exit $exit_status"
2178 } >&5
2179 rm -f core *.core core.conftest.* &&
2180 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2181 exit $exit_status
2182 ' 0
2183 for ac_signal in 1 2 13 15; do
2184 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2185 done
2186 ac_signal=0
2187
2188 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2189 rm -f -r conftest* confdefs.h
2190
2191 $as_echo "/* confdefs.h */" > confdefs.h
2192
2193 # Predefined preprocessor variables.
2194
2195 cat >>confdefs.h <<_ACEOF
2196 #define PACKAGE_NAME "$PACKAGE_NAME"
2197 _ACEOF
2198
2199 cat >>confdefs.h <<_ACEOF
2200 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2201 _ACEOF
2202
2203 cat >>confdefs.h <<_ACEOF
2204 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2205 _ACEOF
2206
2207 cat >>confdefs.h <<_ACEOF
2208 #define PACKAGE_STRING "$PACKAGE_STRING"
2209 _ACEOF
2210
2211 cat >>confdefs.h <<_ACEOF
2212 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2213 _ACEOF
2214
2215 cat >>confdefs.h <<_ACEOF
2216 #define PACKAGE_URL "$PACKAGE_URL"
2217 _ACEOF
2218
2219
2220 # Let the site file select an alternate cache file if it wants to.
2221 # Prefer an explicitly selected file to automatically selected ones.
2222 ac_site_file1=NONE
2223 ac_site_file2=NONE
2224 if test -n "$CONFIG_SITE"; then
2225 # We do not want a PATH search for config.site.
2226 case $CONFIG_SITE in #((
2227 -*) ac_site_file1=./$CONFIG_SITE;;
2228 */*) ac_site_file1=$CONFIG_SITE;;
2229 *) ac_site_file1=./$CONFIG_SITE;;
2230 esac
2231 elif test "x$prefix" != xNONE; then
2232 ac_site_file1=$prefix/share/config.site
2233 ac_site_file2=$prefix/etc/config.site
2234 else
2235 ac_site_file1=$ac_default_prefix/share/config.site
2236 ac_site_file2=$ac_default_prefix/etc/config.site
2237 fi
2238 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2239 do
2240 test "x$ac_site_file" = xNONE && continue
2241 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2243 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2244 sed 's/^/| /' "$ac_site_file" >&5
2245 . "$ac_site_file" \
2246 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2247 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2248 as_fn_error $? "failed to load site script $ac_site_file
2249 See \`config.log' for more details" "$LINENO" 5; }
2250 fi
2251 done
2252
2253 if test -r "$cache_file"; then
2254 # Some versions of bash will fail to source /dev/null (special files
2255 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2256 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2258 $as_echo "$as_me: loading cache $cache_file" >&6;}
2259 case $cache_file in
2260 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2261 *) . "./$cache_file";;
2262 esac
2263 fi
2264 else
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2266 $as_echo "$as_me: creating cache $cache_file" >&6;}
2267 >$cache_file
2268 fi
2269
2270 # Check that the precious variables saved in the cache have kept the same
2271 # value.
2272 ac_cache_corrupted=false
2273 for ac_var in $ac_precious_vars; do
2274 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2275 eval ac_new_set=\$ac_env_${ac_var}_set
2276 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2277 eval ac_new_val=\$ac_env_${ac_var}_value
2278 case $ac_old_set,$ac_new_set in
2279 set,)
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2281 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2282 ac_cache_corrupted=: ;;
2283 ,set)
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2285 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2286 ac_cache_corrupted=: ;;
2287 ,);;
2288 *)
2289 if test "x$ac_old_val" != "x$ac_new_val"; then
2290 # differences in whitespace do not lead to failure.
2291 ac_old_val_w=`echo x $ac_old_val`
2292 ac_new_val_w=`echo x $ac_new_val`
2293 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2295 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2296 ac_cache_corrupted=:
2297 else
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2299 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2300 eval $ac_var=\$ac_old_val
2301 fi
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2303 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2305 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2306 fi;;
2307 esac
2308 # Pass precious variables to config.status.
2309 if test "$ac_new_set" = set; then
2310 case $ac_new_val in
2311 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2312 *) ac_arg=$ac_var=$ac_new_val ;;
2313 esac
2314 case " $ac_configure_args " in
2315 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2316 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2317 esac
2318 fi
2319 done
2320 if $ac_cache_corrupted; then
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2322 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2324 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2325 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2326 fi
2327 ## -------------------- ##
2328 ## Main body of script. ##
2329 ## -------------------- ##
2330
2331 ac_ext=c
2332 ac_cpp='$CPP $CPPFLAGS'
2333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2336
2337
2338
2339 ac_config_headers="$ac_config_headers config.h"
2340
2341 ac_aux_dir=
2342 for ac_dir in . "$srcdir"/.; do
2343 if test -f "$ac_dir/install-sh"; then
2344 ac_aux_dir=$ac_dir
2345 ac_install_sh="$ac_aux_dir/install-sh -c"
2346 break
2347 elif test -f "$ac_dir/install.sh"; then
2348 ac_aux_dir=$ac_dir
2349 ac_install_sh="$ac_aux_dir/install.sh -c"
2350 break
2351 elif test -f "$ac_dir/shtool"; then
2352 ac_aux_dir=$ac_dir
2353 ac_install_sh="$ac_aux_dir/shtool install -c"
2354 break
2355 fi
2356 done
2357 if test -z "$ac_aux_dir"; then
2358 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2359 fi
2360
2361 # These three variables are undocumented and unsupported,
2362 # and are intended to be withdrawn in a future Autoconf release.
2363 # They can cause serious problems if a builder's source tree is in a directory
2364 # whose full name contains unusual characters.
2365 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2366 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2367 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2368
2369
2370
2371 # Initialize Automake
2372 am__api_version='1.13'
2373
2374 # Find a good install program. We prefer a C program (faster),
2375 # so one script is as good as another. But avoid the broken or
2376 # incompatible versions:
2377 # SysV /etc/install, /usr/sbin/install
2378 # SunOS /usr/etc/install
2379 # IRIX /sbin/install
2380 # AIX /bin/install
2381 # AmigaOS /C/install, which installs bootblocks on floppy discs
2382 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2383 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2384 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2385 # OS/2's system install, which has a completely different semantic
2386 # ./install, which can be erroneously created by make from ./install.sh.
2387 # Reject install programs that cannot install multiple files.
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2389 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2390 if test -z "$INSTALL"; then
2391 if ${ac_cv_path_install+:} false; then :
2392 $as_echo_n "(cached) " >&6
2393 else
2394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2395 for as_dir in $PATH
2396 do
2397 IFS=$as_save_IFS
2398 test -z "$as_dir" && as_dir=.
2399 # Account for people who put trailing slashes in PATH elements.
2400 case $as_dir/ in #((
2401 ./ | .// | /[cC]/* | \
2402 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2403 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2404 /usr/ucb/* ) ;;
2405 *)
2406 # OSF1 and SCO ODT 3.0 have their own names for install.
2407 # Don't use installbsd from OSF since it installs stuff as root
2408 # by default.
2409 for ac_prog in ginstall scoinst install; do
2410 for ac_exec_ext in '' $ac_executable_extensions; do
2411 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2412 if test $ac_prog = install &&
2413 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2414 # AIX install. It has an incompatible calling convention.
2415 :
2416 elif test $ac_prog = install &&
2417 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2418 # program-specific install script used by HP pwplus--don't use.
2419 :
2420 else
2421 rm -rf conftest.one conftest.two conftest.dir
2422 echo one > conftest.one
2423 echo two > conftest.two
2424 mkdir conftest.dir
2425 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2426 test -s conftest.one && test -s conftest.two &&
2427 test -s conftest.dir/conftest.one &&
2428 test -s conftest.dir/conftest.two
2429 then
2430 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2431 break 3
2432 fi
2433 fi
2434 fi
2435 done
2436 done
2437 ;;
2438 esac
2439
2440 done
2441 IFS=$as_save_IFS
2442
2443 rm -rf conftest.one conftest.two conftest.dir
2444
2445 fi
2446 if test "${ac_cv_path_install+set}" = set; then
2447 INSTALL=$ac_cv_path_install
2448 else
2449 # As a last resort, use the slow shell script. Don't cache a
2450 # value for INSTALL within a source directory, because that will
2451 # break other packages using the cache if that directory is
2452 # removed, or if the value is a relative name.
2453 INSTALL=$ac_install_sh
2454 fi
2455 fi
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2457 $as_echo "$INSTALL" >&6; }
2458
2459 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2460 # It thinks the first close brace ends the variable substitution.
2461 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2462
2463 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2464
2465 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2466
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2468 $as_echo_n "checking whether build environment is sane... " >&6; }
2469 # Reject unsafe characters in $srcdir or the absolute working directory
2470 # name. Accept space and tab only in the latter.
2471 am_lf='
2472 '
2473 case `pwd` in
2474 *[\\\"\#\$\&\'\`$am_lf]*)
2475 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2476 esac
2477 case $srcdir in
2478 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2479 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2480 esac
2481
2482 # Do 'set' in a subshell so we don't clobber the current shell's
2483 # arguments. Must try -L first in case configure is actually a
2484 # symlink; some systems play weird games with the mod time of symlinks
2485 # (eg FreeBSD returns the mod time of the symlink's containing
2486 # directory).
2487 if (
2488 am_has_slept=no
2489 for am_try in 1 2; do
2490 echo "timestamp, slept: $am_has_slept" > conftest.file
2491 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2492 if test "$*" = "X"; then
2493 # -L didn't work.
2494 set X `ls -t "$srcdir/configure" conftest.file`
2495 fi
2496 if test "$*" != "X $srcdir/configure conftest.file" \
2497 && test "$*" != "X conftest.file $srcdir/configure"; then
2498
2499 # If neither matched, then we have a broken ls. This can happen
2500 # if, for instance, CONFIG_SHELL is bash and it inherits a
2501 # broken ls alias from the environment. This has actually
2502 # happened. Such a system could not be considered "sane".
2503 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2504 alias in your environment" "$LINENO" 5
2505 fi
2506 if test "$2" = conftest.file || test $am_try -eq 2; then
2507 break
2508 fi
2509 # Just in case.
2510 sleep 1
2511 am_has_slept=yes
2512 done
2513 test "$2" = conftest.file
2514 )
2515 then
2516 # Ok.
2517 :
2518 else
2519 as_fn_error $? "newly created file is older than distributed files!
2520 Check your system clock" "$LINENO" 5
2521 fi
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2523 $as_echo "yes" >&6; }
2524 # If we didn't sleep, we still need to ensure time stamps of config.status and
2525 # generated files are strictly newer.
2526 am_sleep_pid=
2527 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2528 ( sleep 1 ) &
2529 am_sleep_pid=$!
2530 fi
2531
2532 rm -f conftest.file
2533
2534 test "$program_prefix" != NONE &&
2535 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2536 # Use a double $ so make ignores it.
2537 test "$program_suffix" != NONE &&
2538 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2539 # Double any \ or $.
2540 # By default was `s,x,x', remove it if useless.
2541 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2542 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2543
2544 # expand $ac_aux_dir to an absolute path
2545 am_aux_dir=`cd $ac_aux_dir && pwd`
2546
2547 if test x"${MISSING+set}" != xset; then
2548 case $am_aux_dir in
2549 *\ * | *\ *)
2550 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2551 *)
2552 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2553 esac
2554 fi
2555 # Use eval to expand $SHELL
2556 if eval "$MISSING --is-lightweight"; then
2557 am_missing_run="$MISSING "
2558 else
2559 am_missing_run=
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2561 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2562 fi
2563
2564 if test x"${install_sh}" != xset; then
2565 case $am_aux_dir in
2566 *\ * | *\ *)
2567 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2568 *)
2569 install_sh="\${SHELL} $am_aux_dir/install-sh"
2570 esac
2571 fi
2572
2573 # Installed binaries are usually stripped using 'strip' when the user
2574 # run "make install-strip". However 'strip' might not be the right
2575 # tool to use in cross-compilation environments, therefore Automake
2576 # will honor the 'STRIP' environment variable to overrule this program.
2577 if test "$cross_compiling" != no; then
2578 if test -n "$ac_tool_prefix"; then
2579 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2580 set dummy ${ac_tool_prefix}strip; ac_word=$2
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2582 $as_echo_n "checking for $ac_word... " >&6; }
2583 if ${ac_cv_prog_STRIP+:} false; then :
2584 $as_echo_n "(cached) " >&6
2585 else
2586 if test -n "$STRIP"; then
2587 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2588 else
2589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2590 for as_dir in $PATH
2591 do
2592 IFS=$as_save_IFS
2593 test -z "$as_dir" && as_dir=.
2594 for ac_exec_ext in '' $ac_executable_extensions; do
2595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2596 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2598 break 2
2599 fi
2600 done
2601 done
2602 IFS=$as_save_IFS
2603
2604 fi
2605 fi
2606 STRIP=$ac_cv_prog_STRIP
2607 if test -n "$STRIP"; then
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2609 $as_echo "$STRIP" >&6; }
2610 else
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2612 $as_echo "no" >&6; }
2613 fi
2614
2615
2616 fi
2617 if test -z "$ac_cv_prog_STRIP"; then
2618 ac_ct_STRIP=$STRIP
2619 # Extract the first word of "strip", so it can be a program name with args.
2620 set dummy strip; ac_word=$2
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2622 $as_echo_n "checking for $ac_word... " >&6; }
2623 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2624 $as_echo_n "(cached) " >&6
2625 else
2626 if test -n "$ac_ct_STRIP"; then
2627 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2628 else
2629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2630 for as_dir in $PATH
2631 do
2632 IFS=$as_save_IFS
2633 test -z "$as_dir" && as_dir=.
2634 for ac_exec_ext in '' $ac_executable_extensions; do
2635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2636 ac_cv_prog_ac_ct_STRIP="strip"
2637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2638 break 2
2639 fi
2640 done
2641 done
2642 IFS=$as_save_IFS
2643
2644 fi
2645 fi
2646 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2647 if test -n "$ac_ct_STRIP"; then
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2649 $as_echo "$ac_ct_STRIP" >&6; }
2650 else
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2652 $as_echo "no" >&6; }
2653 fi
2654
2655 if test "x$ac_ct_STRIP" = x; then
2656 STRIP=":"
2657 else
2658 case $cross_compiling:$ac_tool_warned in
2659 yes:)
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2661 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2662 ac_tool_warned=yes ;;
2663 esac
2664 STRIP=$ac_ct_STRIP
2665 fi
2666 else
2667 STRIP="$ac_cv_prog_STRIP"
2668 fi
2669
2670 fi
2671 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2672
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2674 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2675 if test -z "$MKDIR_P"; then
2676 if ${ac_cv_path_mkdir+:} false; then :
2677 $as_echo_n "(cached) " >&6
2678 else
2679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2680 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2681 do
2682 IFS=$as_save_IFS
2683 test -z "$as_dir" && as_dir=.
2684 for ac_prog in mkdir gmkdir; do
2685 for ac_exec_ext in '' $ac_executable_extensions; do
2686 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2687 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2688 'mkdir (GNU coreutils) '* | \
2689 'mkdir (coreutils) '* | \
2690 'mkdir (fileutils) '4.1*)
2691 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2692 break 3;;
2693 esac
2694 done
2695 done
2696 done
2697 IFS=$as_save_IFS
2698
2699 fi
2700
2701 test -d ./--version && rmdir ./--version
2702 if test "${ac_cv_path_mkdir+set}" = set; then
2703 MKDIR_P="$ac_cv_path_mkdir -p"
2704 else
2705 # As a last resort, use the slow shell script. Don't cache a
2706 # value for MKDIR_P within a source directory, because that will
2707 # break other packages using the cache if that directory is
2708 # removed, or if the value is a relative name.
2709 MKDIR_P="$ac_install_sh -d"
2710 fi
2711 fi
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2713 $as_echo "$MKDIR_P" >&6; }
2714
2715 for ac_prog in gawk mawk nawk awk
2716 do
2717 # Extract the first word of "$ac_prog", so it can be a program name with args.
2718 set dummy $ac_prog; ac_word=$2
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2720 $as_echo_n "checking for $ac_word... " >&6; }
2721 if ${ac_cv_prog_AWK+:} false; then :
2722 $as_echo_n "(cached) " >&6
2723 else
2724 if test -n "$AWK"; then
2725 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2726 else
2727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2728 for as_dir in $PATH
2729 do
2730 IFS=$as_save_IFS
2731 test -z "$as_dir" && as_dir=.
2732 for ac_exec_ext in '' $ac_executable_extensions; do
2733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2734 ac_cv_prog_AWK="$ac_prog"
2735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2736 break 2
2737 fi
2738 done
2739 done
2740 IFS=$as_save_IFS
2741
2742 fi
2743 fi
2744 AWK=$ac_cv_prog_AWK
2745 if test -n "$AWK"; then
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2747 $as_echo "$AWK" >&6; }
2748 else
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2750 $as_echo "no" >&6; }
2751 fi
2752
2753
2754 test -n "$AWK" && break
2755 done
2756
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2758 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2759 set x ${MAKE-make}
2760 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2761 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2762 $as_echo_n "(cached) " >&6
2763 else
2764 cat >conftest.make <<\_ACEOF
2765 SHELL = /bin/sh
2766 all:
2767 @echo '@@@%%%=$(MAKE)=@@@%%%'
2768 _ACEOF
2769 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2770 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2771 *@@@%%%=?*=@@@%%%*)
2772 eval ac_cv_prog_make_${ac_make}_set=yes;;
2773 *)
2774 eval ac_cv_prog_make_${ac_make}_set=no;;
2775 esac
2776 rm -f conftest.make
2777 fi
2778 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2780 $as_echo "yes" >&6; }
2781 SET_MAKE=
2782 else
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2784 $as_echo "no" >&6; }
2785 SET_MAKE="MAKE=${MAKE-make}"
2786 fi
2787
2788 rm -rf .tst 2>/dev/null
2789 mkdir .tst 2>/dev/null
2790 if test -d .tst; then
2791 am__leading_dot=.
2792 else
2793 am__leading_dot=_
2794 fi
2795 rmdir .tst 2>/dev/null
2796
2797 # Check whether --enable-silent-rules was given.
2798 if test "${enable_silent_rules+set}" = set; then :
2799 enableval=$enable_silent_rules;
2800 fi
2801
2802 case $enable_silent_rules in # (((
2803 yes) AM_DEFAULT_VERBOSITY=0;;
2804 no) AM_DEFAULT_VERBOSITY=1;;
2805 *) AM_DEFAULT_VERBOSITY=1;;
2806 esac
2807 am_make=${MAKE-make}
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2809 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2810 if ${am_cv_make_support_nested_variables+:} false; then :
2811 $as_echo_n "(cached) " >&6
2812 else
2813 if $as_echo 'TRUE=$(BAR$(V))
2814 BAR0=false
2815 BAR1=true
2816 V=1
2817 am__doit:
2818 @$(TRUE)
2819 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2820 am_cv_make_support_nested_variables=yes
2821 else
2822 am_cv_make_support_nested_variables=no
2823 fi
2824 fi
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2826 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2827 if test $am_cv_make_support_nested_variables = yes; then
2828 AM_V='$(V)'
2829 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2830 else
2831 AM_V=$AM_DEFAULT_VERBOSITY
2832 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2833 fi
2834 AM_BACKSLASH='\'
2835
2836 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2837 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2838 # is not polluted with repeated "-I."
2839 am__isrc=' -I$(srcdir)'
2840 # test to see if srcdir already configured
2841 if test -f $srcdir/config.status; then
2842 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2843 fi
2844 fi
2845
2846 # test whether we have cygpath
2847 if test -z "$CYGPATH_W"; then
2848 if (cygpath --version) >/dev/null 2>/dev/null; then
2849 CYGPATH_W='cygpath -w'
2850 else
2851 CYGPATH_W=echo
2852 fi
2853 fi
2854
2855
2856 # Define the identity of the package.
2857 PACKAGE='xf86-video-tdfx'
2858 VERSION='1.4.6'
2859
2860
2861 cat >>confdefs.h <<_ACEOF
2862 #define PACKAGE "$PACKAGE"
2863 _ACEOF
2864
2865
2866 cat >>confdefs.h <<_ACEOF
2867 #define VERSION "$VERSION"
2868 _ACEOF
2869
2870 # Some tools Automake needs.
2871
2872 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2873
2874
2875 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2876
2877
2878 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2879
2880
2881 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2882
2883
2884 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2885
2886 # For better backward compatibility. To be removed once Automake 1.9.x
2887 # dies out for good. For more background, see:
2888 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2889 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2890 mkdir_p='$(MKDIR_P)'
2891
2892 # We need awk for the "check" target. The system "awk" is bad on
2893 # some platforms.
2894 # Always define AMTAR for backward compatibility. Yes, it's still used
2895 # in the wild :-( We should find a proper way to deprecate it ...
2896 AMTAR='$${TAR-tar}'
2897
2898
2899 # We'll loop over all known methods to create a tar archive until one works.
2900 _am_tools='gnutar pax cpio none'
2901
2902 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2903
2904
2905
2906
2907
2908
2909
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2911 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2912 # Check whether --enable-maintainer-mode was given.
2913 if test "${enable_maintainer_mode+set}" = set; then :
2914 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2915 else
2916 USE_MAINTAINER_MODE=no
2917 fi
2918
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2920 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2921 if test $USE_MAINTAINER_MODE = yes; then
2922 MAINTAINER_MODE_TRUE=
2923 MAINTAINER_MODE_FALSE='#'
2924 else
2925 MAINTAINER_MODE_TRUE='#'
2926 MAINTAINER_MODE_FALSE=
2927 fi
2928
2929 MAINT=$MAINTAINER_MODE_TRUE
2930
2931
2932
2933 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945 DEPDIR="${am__leading_dot}deps"
2946
2947 ac_config_commands="$ac_config_commands depfiles"
2948
2949
2950 am_make=${MAKE-make}
2951 cat > confinc << 'END'
2952 am__doit:
2953 @echo this is the am__doit target
2954 .PHONY: am__doit
2955 END
2956 # If we don't find an include directive, just comment out the code.
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2958 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2959 am__include="#"
2960 am__quote=
2961 _am_result=none
2962 # First try GNU make style include.
2963 echo "include confinc" > confmf
2964 # Ignore all kinds of additional output from 'make'.
2965 case `$am_make -s -f confmf 2> /dev/null` in #(
2966 *the\ am__doit\ target*)
2967 am__include=include
2968 am__quote=
2969 _am_result=GNU
2970 ;;
2971 esac
2972 # Now try BSD make style include.
2973 if test "$am__include" = "#"; then
2974 echo '.include "confinc"' > confmf
2975 case `$am_make -s -f confmf 2> /dev/null` in #(
2976 *the\ am__doit\ target*)
2977 am__include=.include
2978 am__quote="\""
2979 _am_result=BSD
2980 ;;
2981 esac
2982 fi
2983
2984
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2986 $as_echo "$_am_result" >&6; }
2987 rm -f confinc confmf
2988
2989 # Check whether --enable-dependency-tracking was given.
2990 if test "${enable_dependency_tracking+set}" = set; then :
2991 enableval=$enable_dependency_tracking;
2992 fi
2993
2994 if test "x$enable_dependency_tracking" != xno; then
2995 am_depcomp="$ac_aux_dir/depcomp"
2996 AMDEPBACKSLASH='\'
2997 am__nodep='_no'
2998 fi
2999 if test "x$enable_dependency_tracking" != xno; then
3000 AMDEP_TRUE=
3001 AMDEP_FALSE='#'
3002 else
3003 AMDEP_TRUE='#'
3004 AMDEP_FALSE=
3005 fi
3006
3007
3008 ac_ext=c
3009 ac_cpp='$CPP $CPPFLAGS'
3010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3013 if test -n "$ac_tool_prefix"; then
3014 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3015 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3017 $as_echo_n "checking for $ac_word... " >&6; }
3018 if ${ac_cv_prog_CC+:} false; then :
3019 $as_echo_n "(cached) " >&6
3020 else
3021 if test -n "$CC"; then
3022 ac_cv_prog_CC="$CC" # Let the user override the test.
3023 else
3024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3025 for as_dir in $PATH
3026 do
3027 IFS=$as_save_IFS
3028 test -z "$as_dir" && as_dir=.
3029 for ac_exec_ext in '' $ac_executable_extensions; do
3030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3031 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3033 break 2
3034 fi
3035 done
3036 done
3037 IFS=$as_save_IFS
3038
3039 fi
3040 fi
3041 CC=$ac_cv_prog_CC
3042 if test -n "$CC"; then
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3044 $as_echo "$CC" >&6; }
3045 else
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3047 $as_echo "no" >&6; }
3048 fi
3049
3050
3051 fi
3052 if test -z "$ac_cv_prog_CC"; then
3053 ac_ct_CC=$CC
3054 # Extract the first word of "gcc", so it can be a program name with args.
3055 set dummy gcc; ac_word=$2
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3057 $as_echo_n "checking for $ac_word... " >&6; }
3058 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3059 $as_echo_n "(cached) " >&6
3060 else
3061 if test -n "$ac_ct_CC"; then
3062 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3063 else
3064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3065 for as_dir in $PATH
3066 do
3067 IFS=$as_save_IFS
3068 test -z "$as_dir" && as_dir=.
3069 for ac_exec_ext in '' $ac_executable_extensions; do
3070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3071 ac_cv_prog_ac_ct_CC="gcc"
3072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3073 break 2
3074 fi
3075 done
3076 done
3077 IFS=$as_save_IFS
3078
3079 fi
3080 fi
3081 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3082 if test -n "$ac_ct_CC"; then
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3084 $as_echo "$ac_ct_CC" >&6; }
3085 else
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3087 $as_echo "no" >&6; }
3088 fi
3089
3090 if test "x$ac_ct_CC" = x; then
3091 CC=""
3092 else
3093 case $cross_compiling:$ac_tool_warned in
3094 yes:)
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3096 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3097 ac_tool_warned=yes ;;
3098 esac
3099 CC=$ac_ct_CC
3100 fi
3101 else
3102 CC="$ac_cv_prog_CC"
3103 fi
3104
3105 if test -z "$CC"; then
3106 if test -n "$ac_tool_prefix"; then
3107 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3108 set dummy ${ac_tool_prefix}cc; ac_word=$2
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3110 $as_echo_n "checking for $ac_word... " >&6; }
3111 if ${ac_cv_prog_CC+:} false; then :
3112 $as_echo_n "(cached) " >&6
3113 else
3114 if test -n "$CC"; then
3115 ac_cv_prog_CC="$CC" # Let the user override the test.
3116 else
3117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3118 for as_dir in $PATH
3119 do
3120 IFS=$as_save_IFS
3121 test -z "$as_dir" && as_dir=.
3122 for ac_exec_ext in '' $ac_executable_extensions; do
3123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3124 ac_cv_prog_CC="${ac_tool_prefix}cc"
3125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3126 break 2
3127 fi
3128 done
3129 done
3130 IFS=$as_save_IFS
3131
3132 fi
3133 fi
3134 CC=$ac_cv_prog_CC
3135 if test -n "$CC"; then
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3137 $as_echo "$CC" >&6; }
3138 else
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3140 $as_echo "no" >&6; }
3141 fi
3142
3143
3144 fi
3145 fi
3146 if test -z "$CC"; then
3147 # Extract the first word of "cc", so it can be a program name with args.
3148 set dummy cc; ac_word=$2
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3150 $as_echo_n "checking for $ac_word... " >&6; }
3151 if ${ac_cv_prog_CC+:} false; then :
3152 $as_echo_n "(cached) " >&6
3153 else
3154 if test -n "$CC"; then
3155 ac_cv_prog_CC="$CC" # Let the user override the test.
3156 else
3157 ac_prog_rejected=no
3158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3159 for as_dir in $PATH
3160 do
3161 IFS=$as_save_IFS
3162 test -z "$as_dir" && as_dir=.
3163 for ac_exec_ext in '' $ac_executable_extensions; do
3164 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3165 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3166 ac_prog_rejected=yes
3167 continue
3168 fi
3169 ac_cv_prog_CC="cc"
3170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3171 break 2
3172 fi
3173 done
3174 done
3175 IFS=$as_save_IFS
3176
3177 if test $ac_prog_rejected = yes; then
3178 # We found a bogon in the path, so make sure we never use it.
3179 set dummy $ac_cv_prog_CC
3180 shift
3181 if test $# != 0; then
3182 # We chose a different compiler from the bogus one.
3183 # However, it has the same basename, so the bogon will be chosen
3184 # first if we set CC to just the basename; use the full file name.
3185 shift
3186 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3187 fi
3188 fi
3189 fi
3190 fi
3191 CC=$ac_cv_prog_CC
3192 if test -n "$CC"; then
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3194 $as_echo "$CC" >&6; }
3195 else
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3197 $as_echo "no" >&6; }
3198 fi
3199
3200
3201 fi
3202 if test -z "$CC"; then
3203 if test -n "$ac_tool_prefix"; then
3204 for ac_prog in cl.exe
3205 do
3206 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3207 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3209 $as_echo_n "checking for $ac_word... " >&6; }
3210 if ${ac_cv_prog_CC+:} false; then :
3211 $as_echo_n "(cached) " >&6
3212 else
3213 if test -n "$CC"; then
3214 ac_cv_prog_CC="$CC" # Let the user override the test.
3215 else
3216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3217 for as_dir in $PATH
3218 do
3219 IFS=$as_save_IFS
3220 test -z "$as_dir" && as_dir=.
3221 for ac_exec_ext in '' $ac_executable_extensions; do
3222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3223 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3225 break 2
3226 fi
3227 done
3228 done
3229 IFS=$as_save_IFS
3230
3231 fi
3232 fi
3233 CC=$ac_cv_prog_CC
3234 if test -n "$CC"; then
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3236 $as_echo "$CC" >&6; }
3237 else
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3239 $as_echo "no" >&6; }
3240 fi
3241
3242
3243 test -n "$CC" && break
3244 done
3245 fi
3246 if test -z "$CC"; then
3247 ac_ct_CC=$CC
3248 for ac_prog in cl.exe
3249 do
3250 # Extract the first word of "$ac_prog", so it can be a program name with args.
3251 set dummy $ac_prog; ac_word=$2
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3253 $as_echo_n "checking for $ac_word... " >&6; }
3254 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3255 $as_echo_n "(cached) " >&6
3256 else
3257 if test -n "$ac_ct_CC"; then
3258 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3259 else
3260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3261 for as_dir in $PATH
3262 do
3263 IFS=$as_save_IFS
3264 test -z "$as_dir" && as_dir=.
3265 for ac_exec_ext in '' $ac_executable_extensions; do
3266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3267 ac_cv_prog_ac_ct_CC="$ac_prog"
3268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3269 break 2
3270 fi
3271 done
3272 done
3273 IFS=$as_save_IFS
3274
3275 fi
3276 fi
3277 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3278 if test -n "$ac_ct_CC"; then
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3280 $as_echo "$ac_ct_CC" >&6; }
3281 else
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3283 $as_echo "no" >&6; }
3284 fi
3285
3286
3287 test -n "$ac_ct_CC" && break
3288 done
3289
3290 if test "x$ac_ct_CC" = x; then
3291 CC=""
3292 else
3293 case $cross_compiling:$ac_tool_warned in
3294 yes:)
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3296 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3297 ac_tool_warned=yes ;;
3298 esac
3299 CC=$ac_ct_CC
3300 fi
3301 fi
3302
3303 fi
3304
3305
3306 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3307 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3308 as_fn_error $? "no acceptable C compiler found in \$PATH
3309 See \`config.log' for more details" "$LINENO" 5; }
3310
3311 # Provide some information about the compiler.
3312 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3313 set X $ac_compile
3314 ac_compiler=$2
3315 for ac_option in --version -v -V -qversion; do
3316 { { ac_try="$ac_compiler $ac_option >&5"
3317 case "(($ac_try" in
3318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3319 *) ac_try_echo=$ac_try;;
3320 esac
3321 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3322 $as_echo "$ac_try_echo"; } >&5
3323 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3324 ac_status=$?
3325 if test -s conftest.err; then
3326 sed '10a\
3327 ... rest of stderr output deleted ...
3328 10q' conftest.err >conftest.er1
3329 cat conftest.er1 >&5
3330 fi
3331 rm -f conftest.er1 conftest.err
3332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3333 test $ac_status = 0; }
3334 done
3335
3336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3337 /* end confdefs.h. */
3338
3339 int
3340 main ()
3341 {
3342
3343 ;
3344 return 0;
3345 }
3346 _ACEOF
3347 ac_clean_files_save=$ac_clean_files
3348 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3349 # Try to create an executable without -o first, disregard a.out.
3350 # It will help us diagnose broken compilers, and finding out an intuition
3351 # of exeext.
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3353 $as_echo_n "checking whether the C compiler works... " >&6; }
3354 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3355
3356 # The possible output files:
3357 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3358
3359 ac_rmfiles=
3360 for ac_file in $ac_files
3361 do
3362 case $ac_file in
3363 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3364 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3365 esac
3366 done
3367 rm -f $ac_rmfiles
3368
3369 if { { ac_try="$ac_link_default"
3370 case "(($ac_try" in
3371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3372 *) ac_try_echo=$ac_try;;
3373 esac
3374 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3375 $as_echo "$ac_try_echo"; } >&5
3376 (eval "$ac_link_default") 2>&5
3377 ac_status=$?
3378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3379 test $ac_status = 0; }; then :
3380 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3381 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3382 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3383 # so that the user can short-circuit this test for compilers unknown to
3384 # Autoconf.
3385 for ac_file in $ac_files ''
3386 do
3387 test -f "$ac_file" || continue
3388 case $ac_file in
3389 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3390 ;;
3391 [ab].out )
3392 # We found the default executable, but exeext='' is most
3393 # certainly right.
3394 break;;
3395 *.* )
3396 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3397 then :; else
3398 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3399 fi
3400 # We set ac_cv_exeext here because the later test for it is not
3401 # safe: cross compilers may not add the suffix if given an `-o'
3402 # argument, so we may need to know it at that point already.
3403 # Even if this section looks crufty: it has the advantage of
3404 # actually working.
3405 break;;
3406 * )
3407 break;;
3408 esac
3409 done
3410 test "$ac_cv_exeext" = no && ac_cv_exeext=
3411
3412 else
3413 ac_file=''
3414 fi
3415 if test -z "$ac_file"; then :
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3417 $as_echo "no" >&6; }
3418 $as_echo "$as_me: failed program was:" >&5
3419 sed 's/^/| /' conftest.$ac_ext >&5
3420
3421 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3422 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3423 as_fn_error 77 "C compiler cannot create executables
3424 See \`config.log' for more details" "$LINENO" 5; }
3425 else
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3427 $as_echo "yes" >&6; }
3428 fi
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3430 $as_echo_n "checking for C compiler default output file name... " >&6; }
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3432 $as_echo "$ac_file" >&6; }
3433 ac_exeext=$ac_cv_exeext
3434
3435 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3436 ac_clean_files=$ac_clean_files_save
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3438 $as_echo_n "checking for suffix of executables... " >&6; }
3439 if { { ac_try="$ac_link"
3440 case "(($ac_try" in
3441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3442 *) ac_try_echo=$ac_try;;
3443 esac
3444 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3445 $as_echo "$ac_try_echo"; } >&5
3446 (eval "$ac_link") 2>&5
3447 ac_status=$?
3448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3449 test $ac_status = 0; }; then :
3450 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3451 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3452 # work properly (i.e., refer to `conftest.exe'), while it won't with
3453 # `rm'.
3454 for ac_file in conftest.exe conftest conftest.*; do
3455 test -f "$ac_file" || continue
3456 case $ac_file in
3457 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3458 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3459 break;;
3460 * ) break;;
3461 esac
3462 done
3463 else
3464 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3465 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3466 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3467 See \`config.log' for more details" "$LINENO" 5; }
3468 fi
3469 rm -f conftest conftest$ac_cv_exeext
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3471 $as_echo "$ac_cv_exeext" >&6; }
3472
3473 rm -f conftest.$ac_ext
3474 EXEEXT=$ac_cv_exeext
3475 ac_exeext=$EXEEXT
3476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3477 /* end confdefs.h. */
3478 #include <stdio.h>
3479 int
3480 main ()
3481 {
3482 FILE *f = fopen ("conftest.out", "w");
3483 return ferror (f) || fclose (f) != 0;
3484
3485 ;
3486 return 0;
3487 }
3488 _ACEOF
3489 ac_clean_files="$ac_clean_files conftest.out"
3490 # Check that the compiler produces executables we can run. If not, either
3491 # the compiler is broken, or we cross compile.
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3493 $as_echo_n "checking whether we are cross compiling... " >&6; }
3494 if test "$cross_compiling" != yes; then
3495 { { ac_try="$ac_link"
3496 case "(($ac_try" in
3497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3498 *) ac_try_echo=$ac_try;;
3499 esac
3500 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3501 $as_echo "$ac_try_echo"; } >&5
3502 (eval "$ac_link") 2>&5
3503 ac_status=$?
3504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3505 test $ac_status = 0; }
3506 if { ac_try='./conftest$ac_cv_exeext'
3507 { { case "(($ac_try" in
3508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3509 *) ac_try_echo=$ac_try;;
3510 esac
3511 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3512 $as_echo "$ac_try_echo"; } >&5
3513 (eval "$ac_try") 2>&5
3514 ac_status=$?
3515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3516 test $ac_status = 0; }; }; then
3517 cross_compiling=no
3518 else
3519 if test "$cross_compiling" = maybe; then
3520 cross_compiling=yes
3521 else
3522 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3523 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3524 as_fn_error $? "cannot run C compiled programs.
3525 If you meant to cross compile, use \`--host'.
3526 See \`config.log' for more details" "$LINENO" 5; }
3527 fi
3528 fi
3529 fi
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3531 $as_echo "$cross_compiling" >&6; }
3532
3533 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3534 ac_clean_files=$ac_clean_files_save
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3536 $as_echo_n "checking for suffix of object files... " >&6; }
3537 if ${ac_cv_objext+:} false; then :
3538 $as_echo_n "(cached) " >&6
3539 else
3540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3541 /* end confdefs.h. */
3542
3543 int
3544 main ()
3545 {
3546
3547 ;
3548 return 0;
3549 }
3550 _ACEOF
3551 rm -f conftest.o conftest.obj
3552 if { { ac_try="$ac_compile"
3553 case "(($ac_try" in
3554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3555 *) ac_try_echo=$ac_try;;
3556 esac
3557 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3558 $as_echo "$ac_try_echo"; } >&5
3559 (eval "$ac_compile") 2>&5
3560 ac_status=$?
3561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3562 test $ac_status = 0; }; then :
3563 for ac_file in conftest.o conftest.obj conftest.*; do
3564 test -f "$ac_file" || continue;
3565 case $ac_file in
3566 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3567 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3568 break;;
3569 esac
3570 done
3571 else
3572 $as_echo "$as_me: failed program was:" >&5
3573 sed 's/^/| /' conftest.$ac_ext >&5
3574
3575 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3576 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3577 as_fn_error $? "cannot compute suffix of object files: cannot compile
3578 See \`config.log' for more details" "$LINENO" 5; }
3579 fi
3580 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3581 fi
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3583 $as_echo "$ac_cv_objext" >&6; }
3584 OBJEXT=$ac_cv_objext
3585 ac_objext=$OBJEXT
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3587 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3588 if ${ac_cv_c_compiler_gnu+:} false; then :
3589 $as_echo_n "(cached) " >&6
3590 else
3591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3592 /* end confdefs.h. */
3593
3594 int
3595 main ()
3596 {
3597 #ifndef __GNUC__
3598 choke me
3599 #endif
3600
3601 ;
3602 return 0;
3603 }
3604 _ACEOF
3605 if ac_fn_c_try_compile "$LINENO"; then :
3606 ac_compiler_gnu=yes
3607 else
3608 ac_compiler_gnu=no
3609 fi
3610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3611 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3612
3613 fi
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3615 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3616 if test $ac_compiler_gnu = yes; then
3617 GCC=yes
3618 else
3619 GCC=
3620 fi
3621 ac_test_CFLAGS=${CFLAGS+set}
3622 ac_save_CFLAGS=$CFLAGS
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3624 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3625 if ${ac_cv_prog_cc_g+:} false; then :
3626 $as_echo_n "(cached) " >&6
3627 else
3628 ac_save_c_werror_flag=$ac_c_werror_flag
3629 ac_c_werror_flag=yes
3630 ac_cv_prog_cc_g=no
3631 CFLAGS="-g"
3632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3633 /* end confdefs.h. */
3634
3635 int
3636 main ()
3637 {
3638
3639 ;
3640 return 0;
3641 }
3642 _ACEOF
3643 if ac_fn_c_try_compile "$LINENO"; then :
3644 ac_cv_prog_cc_g=yes
3645 else
3646 CFLAGS=""
3647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3648 /* end confdefs.h. */
3649
3650 int
3651 main ()
3652 {
3653
3654 ;
3655 return 0;
3656 }
3657 _ACEOF
3658 if ac_fn_c_try_compile "$LINENO"; then :
3659
3660 else
3661 ac_c_werror_flag=$ac_save_c_werror_flag
3662 CFLAGS="-g"
3663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3664 /* end confdefs.h. */
3665
3666 int
3667 main ()
3668 {
3669
3670 ;
3671 return 0;
3672 }
3673 _ACEOF
3674 if ac_fn_c_try_compile "$LINENO"; then :
3675 ac_cv_prog_cc_g=yes
3676 fi
3677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3678 fi
3679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3680 fi
3681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3682 ac_c_werror_flag=$ac_save_c_werror_flag
3683 fi
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3685 $as_echo "$ac_cv_prog_cc_g" >&6; }
3686 if test "$ac_test_CFLAGS" = set; then
3687 CFLAGS=$ac_save_CFLAGS
3688 elif test $ac_cv_prog_cc_g = yes; then
3689 if test "$GCC" = yes; then
3690 CFLAGS="-g -O2"
3691 else
3692 CFLAGS="-g"
3693 fi
3694 else
3695 if test "$GCC" = yes; then
3696 CFLAGS="-O2"
3697 else
3698 CFLAGS=
3699 fi
3700 fi
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3702 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3703 if ${ac_cv_prog_cc_c89+:} false; then :
3704 $as_echo_n "(cached) " >&6
3705 else
3706 ac_cv_prog_cc_c89=no
3707 ac_save_CC=$CC
3708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3709 /* end confdefs.h. */
3710 #include <stdarg.h>
3711 #include <stdio.h>
3712 struct stat;
3713 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3714 struct buf { int x; };
3715 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3716 static char *e (p, i)
3717 char **p;
3718 int i;
3719 {
3720 return p[i];
3721 }
3722 static char *f (char * (*g) (char **, int), char **p, ...)
3723 {
3724 char *s;
3725 va_list v;
3726 va_start (v,p);
3727 s = g (p, va_arg (v,int));
3728 va_end (v);
3729 return s;
3730 }
3731
3732 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3733 function prototypes and stuff, but not '\xHH' hex character constants.
3734 These don't provoke an error unfortunately, instead are silently treated
3735 as 'x'. The following induces an error, until -std is added to get
3736 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3737 array size at least. It's necessary to write '\x00'==0 to get something
3738 that's true only with -std. */
3739 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3740
3741 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3742 inside strings and character constants. */
3743 #define FOO(x) 'x'
3744 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3745
3746 int test (int i, double x);
3747 struct s1 {int (*f) (int a);};
3748 struct s2 {int (*f) (double a);};
3749 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3750 int argc;
3751 char **argv;
3752 int
3753 main ()
3754 {
3755 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3756 ;
3757 return 0;
3758 }
3759 _ACEOF
3760 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3761 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3762 do
3763 CC="$ac_save_CC $ac_arg"
3764 if ac_fn_c_try_compile "$LINENO"; then :
3765 ac_cv_prog_cc_c89=$ac_arg
3766 fi
3767 rm -f core conftest.err conftest.$ac_objext
3768 test "x$ac_cv_prog_cc_c89" != "xno" && break
3769 done
3770 rm -f conftest.$ac_ext
3771 CC=$ac_save_CC
3772
3773 fi
3774 # AC_CACHE_VAL
3775 case "x$ac_cv_prog_cc_c89" in
3776 x)
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3778 $as_echo "none needed" >&6; } ;;
3779 xno)
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3781 $as_echo "unsupported" >&6; } ;;
3782 *)
3783 CC="$CC $ac_cv_prog_cc_c89"
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3785 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3786 esac
3787 if test "x$ac_cv_prog_cc_c89" != xno; then :
3788
3789 fi
3790
3791 ac_ext=c
3792 ac_cpp='$CPP $CPPFLAGS'
3793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3796
3797 depcc="$CC" am_compiler_list=
3798
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3800 $as_echo_n "checking dependency style of $depcc... " >&6; }
3801 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3802 $as_echo_n "(cached) " >&6
3803 else
3804 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3805 # We make a subdir and do the tests there. Otherwise we can end up
3806 # making bogus files that we don't know about and never remove. For
3807 # instance it was reported that on HP-UX the gcc test will end up
3808 # making a dummy file named 'D' -- because '-MD' means "put the output
3809 # in D".
3810 rm -rf conftest.dir
3811 mkdir conftest.dir
3812 # Copy depcomp to subdir because otherwise we won't find it if we're
3813 # using a relative directory.
3814 cp "$am_depcomp" conftest.dir
3815 cd conftest.dir
3816 # We will build objects and dependencies in a subdirectory because
3817 # it helps to detect inapplicable dependency modes. For instance
3818 # both Tru64's cc and ICC support -MD to output dependencies as a
3819 # side effect of compilation, but ICC will put the dependencies in
3820 # the current directory while Tru64 will put them in the object
3821 # directory.
3822 mkdir sub
3823
3824 am_cv_CC_dependencies_compiler_type=none
3825 if test "$am_compiler_list" = ""; then
3826 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3827 fi
3828 am__universal=false
3829 case " $depcc " in #(
3830 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3831 esac
3832
3833 for depmode in $am_compiler_list; do
3834 # Setup a source with many dependencies, because some compilers
3835 # like to wrap large dependency lists on column 80 (with \), and
3836 # we should not choose a depcomp mode which is confused by this.
3837 #
3838 # We need to recreate these files for each test, as the compiler may
3839 # overwrite some of them when testing with obscure command lines.
3840 # This happens at least with the AIX C compiler.
3841 : > sub/conftest.c
3842 for i in 1 2 3 4 5 6; do
3843 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3844 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3845 # Solaris 10 /bin/sh.
3846 echo '/* dummy */' > sub/conftst$i.h
3847 done
3848 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3849
3850 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3851 # mode. It turns out that the SunPro C++ compiler does not properly
3852 # handle '-M -o', and we need to detect this. Also, some Intel
3853 # versions had trouble with output in subdirs.
3854 am__obj=sub/conftest.${OBJEXT-o}
3855 am__minus_obj="-o $am__obj"
3856 case $depmode in
3857 gcc)
3858 # This depmode causes a compiler race in universal mode.
3859 test "$am__universal" = false || continue
3860 ;;
3861 nosideeffect)
3862 # After this tag, mechanisms are not by side-effect, so they'll
3863 # only be used when explicitly requested.
3864 if test "x$enable_dependency_tracking" = xyes; then
3865 continue
3866 else
3867 break
3868 fi
3869 ;;
3870 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3871 # This compiler won't grok '-c -o', but also, the minuso test has
3872 # not run yet. These depmodes are late enough in the game, and
3873 # so weak that their functioning should not be impacted.
3874 am__obj=conftest.${OBJEXT-o}
3875 am__minus_obj=
3876 ;;
3877 none) break ;;
3878 esac
3879 if depmode=$depmode \
3880 source=sub/conftest.c object=$am__obj \
3881 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3882 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3883 >/dev/null 2>conftest.err &&
3884 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3885 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3886 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3887 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3888 # icc doesn't choke on unknown options, it will just issue warnings
3889 # or remarks (even with -Werror). So we grep stderr for any message
3890 # that says an option was ignored or not supported.
3891 # When given -MP, icc 7.0 and 7.1 complain thusly:
3892 # icc: Command line warning: ignoring option '-M'; no argument required
3893 # The diagnosis changed in icc 8.0:
3894 # icc: Command line remark: option '-MP' not supported
3895 if (grep 'ignoring option' conftest.err ||
3896 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3897 am_cv_CC_dependencies_compiler_type=$depmode
3898 break
3899 fi
3900 fi
3901 done
3902
3903 cd ..
3904 rm -rf conftest.dir
3905 else
3906 am_cv_CC_dependencies_compiler_type=none
3907 fi
3908
3909 fi
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3911 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3912 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3913
3914 if
3915 test "x$enable_dependency_tracking" != xno \
3916 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3917 am__fastdepCC_TRUE=
3918 am__fastdepCC_FALSE='#'
3919 else
3920 am__fastdepCC_TRUE='#'
3921 am__fastdepCC_FALSE=
3922 fi
3923
3924
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3926 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3927 if ${ac_cv_prog_cc_c99+:} false; then :
3928 $as_echo_n "(cached) " >&6
3929 else
3930 ac_cv_prog_cc_c99=no
3931 ac_save_CC=$CC
3932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3933 /* end confdefs.h. */
3934 #include <stdarg.h>
3935 #include <stdbool.h>
3936 #include <stdlib.h>
3937 #include <wchar.h>
3938 #include <stdio.h>
3939
3940 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3941 #define debug(...) fprintf (stderr, __VA_ARGS__)
3942 #define showlist(...) puts (#__VA_ARGS__)
3943 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3944 static void
3945 test_varargs_macros (void)
3946 {
3947 int x = 1234;
3948 int y = 5678;
3949 debug ("Flag");
3950 debug ("X = %d\n", x);
3951 showlist (The first, second, and third items.);
3952 report (x>y, "x is %d but y is %d", x, y);
3953 }
3954
3955 // Check long long types.
3956 #define BIG64 18446744073709551615ull
3957 #define BIG32 4294967295ul
3958 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3959 #if !BIG_OK
3960 your preprocessor is broken;
3961 #endif
3962 #if BIG_OK
3963 #else
3964 your preprocessor is broken;
3965 #endif
3966 static long long int bignum = -9223372036854775807LL;
3967 static unsigned long long int ubignum = BIG64;
3968
3969 struct incomplete_array
3970 {
3971 int datasize;
3972 double data[];
3973 };
3974
3975 struct named_init {
3976 int number;
3977 const wchar_t *name;
3978 double average;
3979 };
3980
3981 typedef const char *ccp;
3982
3983 static inline int
3984 test_restrict (ccp restrict text)
3985 {
3986 // See if C++-style comments work.
3987 // Iterate through items via the restricted pointer.
3988 // Also check for declarations in for loops.
3989 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3990 continue;
3991 return 0;
3992 }
3993
3994 // Check varargs and va_copy.
3995 static void
3996 test_varargs (const char *format, ...)
3997 {
3998 va_list args;
3999 va_start (args, format);
4000 va_list args_copy;
4001 va_copy (args_copy, args);
4002
4003 const char *str;
4004 int number;
4005 float fnumber;
4006
4007 while (*format)
4008 {
4009 switch (*format++)
4010 {
4011 case 's': // string
4012 str = va_arg (args_copy, const char *);
4013 break;
4014 case 'd': // int
4015 number = va_arg (args_copy, int);
4016 break;
4017 case 'f': // float
4018 fnumber = va_arg (args_copy, double);
4019 break;
4020 default:
4021 break;
4022 }
4023 }
4024 va_end (args_copy);
4025 va_end (args);
4026 }
4027
4028 int
4029 main ()
4030 {
4031
4032 // Check bool.
4033 _Bool success = false;
4034
4035 // Check restrict.
4036 if (test_restrict ("String literal") == 0)
4037 success = true;
4038 char *restrict newvar = "Another string";
4039
4040 // Check varargs.
4041 test_varargs ("s, d' f .", "string", 65, 34.234);
4042 test_varargs_macros ();
4043
4044 // Check flexible array members.
4045 struct incomplete_array *ia =
4046 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4047 ia->datasize = 10;
4048 for (int i = 0; i < ia->datasize; ++i)
4049 ia->data[i] = i * 1.234;
4050
4051 // Check named initializers.
4052 struct named_init ni = {
4053 .number = 34,
4054 .name = L"Test wide string",
4055 .average = 543.34343,
4056 };
4057
4058 ni.number = 58;
4059
4060 int dynamic_array[ni.number];
4061 dynamic_array[ni.number - 1] = 543;
4062
4063 // work around unused variable warnings
4064 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4065 || dynamic_array[ni.number - 1] != 543);
4066
4067 ;
4068 return 0;
4069 }
4070 _ACEOF
4071 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4072 do
4073 CC="$ac_save_CC $ac_arg"
4074 if ac_fn_c_try_compile "$LINENO"; then :
4075 ac_cv_prog_cc_c99=$ac_arg
4076 fi
4077 rm -f core conftest.err conftest.$ac_objext
4078 test "x$ac_cv_prog_cc_c99" != "xno" && break
4079 done
4080 rm -f conftest.$ac_ext
4081 CC=$ac_save_CC
4082
4083 fi
4084 # AC_CACHE_VAL
4085 case "x$ac_cv_prog_cc_c99" in
4086 x)
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4088 $as_echo "none needed" >&6; } ;;
4089 xno)
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4091 $as_echo "unsupported" >&6; } ;;
4092 *)
4093 CC="$CC $ac_cv_prog_cc_c99"
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4095 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4096 esac
4097 if test "x$ac_cv_prog_cc_c99" != xno; then :
4098
4099 fi
4100
4101
4102
4103 ac_ext=c
4104 ac_cpp='$CPP $CPPFLAGS'
4105 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4106 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4107 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4109 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4110 # On Suns, sometimes $CPP names a directory.
4111 if test -n "$CPP" && test -d "$CPP"; then
4112 CPP=
4113 fi
4114 if test -z "$CPP"; then
4115 if ${ac_cv_prog_CPP+:} false; then :
4116 $as_echo_n "(cached) " >&6
4117 else
4118 # Double quotes because CPP needs to be expanded
4119 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4120 do
4121 ac_preproc_ok=false
4122 for ac_c_preproc_warn_flag in '' yes
4123 do
4124 # Use a header file that comes with gcc, so configuring glibc
4125 # with a fresh cross-compiler works.
4126 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4127 # <limits.h> exists even on freestanding compilers.
4128 # On the NeXT, cc -E runs the code through the compiler's parser,
4129 # not just through cpp. "Syntax error" is here to catch this case.
4130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4131 /* end confdefs.h. */
4132 #ifdef __STDC__
4133 # include <limits.h>
4134 #else
4135 # include <assert.h>
4136 #endif
4137 Syntax error
4138 _ACEOF
4139 if ac_fn_c_try_cpp "$LINENO"; then :
4140
4141 else
4142 # Broken: fails on valid input.
4143 continue
4144 fi
4145 rm -f conftest.err conftest.i conftest.$ac_ext
4146
4147 # OK, works on sane cases. Now check whether nonexistent headers
4148 # can be detected and how.
4149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4150 /* end confdefs.h. */
4151 #include <ac_nonexistent.h>
4152 _ACEOF
4153 if ac_fn_c_try_cpp "$LINENO"; then :
4154 # Broken: success on invalid input.
4155 continue
4156 else
4157 # Passes both tests.
4158 ac_preproc_ok=:
4159 break
4160 fi
4161 rm -f conftest.err conftest.i conftest.$ac_ext
4162
4163 done
4164 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4165 rm -f conftest.i conftest.err conftest.$ac_ext
4166 if $ac_preproc_ok; then :
4167 break
4168 fi
4169
4170 done
4171 ac_cv_prog_CPP=$CPP
4172
4173 fi
4174 CPP=$ac_cv_prog_CPP
4175 else
4176 ac_cv_prog_CPP=$CPP
4177 fi
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4179 $as_echo "$CPP" >&6; }
4180 ac_preproc_ok=false
4181 for ac_c_preproc_warn_flag in '' yes
4182 do
4183 # Use a header file that comes with gcc, so configuring glibc
4184 # with a fresh cross-compiler works.
4185 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4186 # <limits.h> exists even on freestanding compilers.
4187 # On the NeXT, cc -E runs the code through the compiler's parser,
4188 # not just through cpp. "Syntax error" is here to catch this case.
4189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4190 /* end confdefs.h. */
4191 #ifdef __STDC__
4192 # include <limits.h>
4193 #else
4194 # include <assert.h>
4195 #endif
4196 Syntax error
4197 _ACEOF
4198 if ac_fn_c_try_cpp "$LINENO"; then :
4199
4200 else
4201 # Broken: fails on valid input.
4202 continue
4203 fi
4204 rm -f conftest.err conftest.i conftest.$ac_ext
4205
4206 # OK, works on sane cases. Now check whether nonexistent headers
4207 # can be detected and how.
4208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4209 /* end confdefs.h. */
4210 #include <ac_nonexistent.h>
4211 _ACEOF
4212 if ac_fn_c_try_cpp "$LINENO"; then :
4213 # Broken: success on invalid input.
4214 continue
4215 else
4216 # Passes both tests.
4217 ac_preproc_ok=:
4218 break
4219 fi
4220 rm -f conftest.err conftest.i conftest.$ac_ext
4221
4222 done
4223 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4224 rm -f conftest.i conftest.err conftest.$ac_ext
4225 if $ac_preproc_ok; then :
4226
4227 else
4228 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4229 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4230 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4231 See \`config.log' for more details" "$LINENO" 5; }
4232 fi
4233
4234 ac_ext=c
4235 ac_cpp='$CPP $CPPFLAGS'
4236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4239
4240
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4242 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4243 if ${ac_cv_path_GREP+:} false; then :
4244 $as_echo_n "(cached) " >&6
4245 else
4246 if test -z "$GREP"; then
4247 ac_path_GREP_found=false
4248 # Loop through the user's path and test for each of PROGNAME-LIST
4249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4250 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4251 do
4252 IFS=$as_save_IFS
4253 test -z "$as_dir" && as_dir=.
4254 for ac_prog in grep ggrep; do
4255 for ac_exec_ext in '' $ac_executable_extensions; do
4256 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4257 as_fn_executable_p "$ac_path_GREP" || continue
4258 # Check for GNU ac_path_GREP and select it if it is found.
4259 # Check for GNU $ac_path_GREP
4260 case `"$ac_path_GREP" --version 2>&1` in
4261 *GNU*)
4262 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4263 *)
4264 ac_count=0
4265 $as_echo_n 0123456789 >"conftest.in"
4266 while :
4267 do
4268 cat "conftest.in" "conftest.in" >"conftest.tmp"
4269 mv "conftest.tmp" "conftest.in"
4270 cp "conftest.in" "conftest.nl"
4271 $as_echo 'GREP' >> "conftest.nl"
4272 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4273 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4274 as_fn_arith $ac_count + 1 && ac_count=$as_val
4275 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4276 # Best one so far, save it but keep looking for a better one
4277 ac_cv_path_GREP="$ac_path_GREP"
4278 ac_path_GREP_max=$ac_count
4279 fi
4280 # 10*(2^10) chars as input seems more than enough
4281 test $ac_count -gt 10 && break
4282 done
4283 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4284 esac
4285
4286 $ac_path_GREP_found && break 3
4287 done
4288 done
4289 done
4290 IFS=$as_save_IFS
4291 if test -z "$ac_cv_path_GREP"; then
4292 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4293 fi
4294 else
4295 ac_cv_path_GREP=$GREP
4296 fi
4297
4298 fi
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4300 $as_echo "$ac_cv_path_GREP" >&6; }
4301 GREP="$ac_cv_path_GREP"
4302
4303
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4305 $as_echo_n "checking for egrep... " >&6; }
4306 if ${ac_cv_path_EGREP+:} false; then :
4307 $as_echo_n "(cached) " >&6
4308 else
4309 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4310 then ac_cv_path_EGREP="$GREP -E"
4311 else
4312 if test -z "$EGREP"; then
4313 ac_path_EGREP_found=false
4314 # Loop through the user's path and test for each of PROGNAME-LIST
4315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4316 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4317 do
4318 IFS=$as_save_IFS
4319 test -z "$as_dir" && as_dir=.
4320 for ac_prog in egrep; do
4321 for ac_exec_ext in '' $ac_executable_extensions; do
4322 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4323 as_fn_executable_p "$ac_path_EGREP" || continue
4324 # Check for GNU ac_path_EGREP and select it if it is found.
4325 # Check for GNU $ac_path_EGREP
4326 case `"$ac_path_EGREP" --version 2>&1` in
4327 *GNU*)
4328 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4329 *)
4330 ac_count=0
4331 $as_echo_n 0123456789 >"conftest.in"
4332 while :
4333 do
4334 cat "conftest.in" "conftest.in" >"conftest.tmp"
4335 mv "conftest.tmp" "conftest.in"
4336 cp "conftest.in" "conftest.nl"
4337 $as_echo 'EGREP' >> "conftest.nl"
4338 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4339 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4340 as_fn_arith $ac_count + 1 && ac_count=$as_val
4341 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4342 # Best one so far, save it but keep looking for a better one
4343 ac_cv_path_EGREP="$ac_path_EGREP"
4344 ac_path_EGREP_max=$ac_count
4345 fi
4346 # 10*(2^10) chars as input seems more than enough
4347 test $ac_count -gt 10 && break
4348 done
4349 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4350 esac
4351
4352 $ac_path_EGREP_found && break 3
4353 done
4354 done
4355 done
4356 IFS=$as_save_IFS
4357 if test -z "$ac_cv_path_EGREP"; then
4358 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4359 fi
4360 else
4361 ac_cv_path_EGREP=$EGREP
4362 fi
4363
4364 fi
4365 fi
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4367 $as_echo "$ac_cv_path_EGREP" >&6; }
4368 EGREP="$ac_cv_path_EGREP"
4369
4370
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4372 $as_echo_n "checking for ANSI C header files... " >&6; }
4373 if ${ac_cv_header_stdc+:} false; then :
4374 $as_echo_n "(cached) " >&6
4375 else
4376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4377 /* end confdefs.h. */
4378 #include <stdlib.h>
4379 #include <stdarg.h>
4380 #include <string.h>
4381 #include <float.h>
4382
4383 int
4384 main ()
4385 {
4386
4387 ;
4388 return 0;
4389 }
4390 _ACEOF
4391 if ac_fn_c_try_compile "$LINENO"; then :
4392 ac_cv_header_stdc=yes
4393 else
4394 ac_cv_header_stdc=no
4395 fi
4396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4397
4398 if test $ac_cv_header_stdc = yes; then
4399 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4401 /* end confdefs.h. */
4402 #include <string.h>
4403
4404 _ACEOF
4405 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4406 $EGREP "memchr" >/dev/null 2>&1; then :
4407
4408 else
4409 ac_cv_header_stdc=no
4410 fi
4411 rm -f conftest*
4412
4413 fi
4414
4415 if test $ac_cv_header_stdc = yes; then
4416 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4418 /* end confdefs.h. */
4419 #include <stdlib.h>
4420
4421 _ACEOF
4422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4423 $EGREP "free" >/dev/null 2>&1; then :
4424
4425 else
4426 ac_cv_header_stdc=no
4427 fi
4428 rm -f conftest*
4429
4430 fi
4431
4432 if test $ac_cv_header_stdc = yes; then
4433 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4434 if test "$cross_compiling" = yes; then :
4435 :
4436 else
4437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4438 /* end confdefs.h. */
4439 #include <ctype.h>
4440 #include <stdlib.h>
4441 #if ((' ' & 0x0FF) == 0x020)
4442 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4443 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4444 #else
4445 # define ISLOWER(c) \
4446 (('a' <= (c) && (c) <= 'i') \
4447 || ('j' <= (c) && (c) <= 'r') \
4448 || ('s' <= (c) && (c) <= 'z'))
4449 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4450 #endif
4451
4452 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4453 int
4454 main ()
4455 {
4456 int i;
4457 for (i = 0; i < 256; i++)
4458 if (XOR (islower (i), ISLOWER (i))
4459 || toupper (i) != TOUPPER (i))
4460 return 2;
4461 return 0;
4462 }
4463 _ACEOF
4464 if ac_fn_c_try_run "$LINENO"; then :
4465
4466 else
4467 ac_cv_header_stdc=no
4468 fi
4469 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4470 conftest.$ac_objext conftest.beam conftest.$ac_ext
4471 fi
4472
4473 fi
4474 fi
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4476 $as_echo "$ac_cv_header_stdc" >&6; }
4477 if test $ac_cv_header_stdc = yes; then
4478
4479 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4480
4481 fi
4482
4483 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4484 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4485 inttypes.h stdint.h unistd.h
4486 do :
4487 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4488 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4489 "
4490 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4491 cat >>confdefs.h <<_ACEOF
4492 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4493 _ACEOF
4494
4495 fi
4496
4497 done
4498
4499
4500
4501
4502
4503
4504 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4505 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4506 CLANGCC="yes"
4507 else
4508 CLANGCC="no"
4509 fi
4510
4511 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4512 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4513 INTELCC="yes"
4514 else
4515 INTELCC="no"
4516 fi
4517
4518 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4519 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4520 SUNCC="yes"
4521 else
4522 SUNCC="no"
4523 fi
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4534 if test -n "$ac_tool_prefix"; then
4535 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4536 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4538 $as_echo_n "checking for $ac_word... " >&6; }
4539 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4540 $as_echo_n "(cached) " >&6
4541 else
4542 case $PKG_CONFIG in
4543 [\\/]* | ?:[\\/]*)
4544 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4545 ;;
4546 *)
4547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4548 for as_dir in $PATH
4549 do
4550 IFS=$as_save_IFS
4551 test -z "$as_dir" && as_dir=.
4552 for ac_exec_ext in '' $ac_executable_extensions; do
4553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4554 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4556 break 2
4557 fi
4558 done
4559 done
4560 IFS=$as_save_IFS
4561
4562 ;;
4563 esac
4564 fi
4565 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4566 if test -n "$PKG_CONFIG"; then
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4568 $as_echo "$PKG_CONFIG" >&6; }
4569 else
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4571 $as_echo "no" >&6; }
4572 fi
4573
4574
4575 fi
4576 if test -z "$ac_cv_path_PKG_CONFIG"; then
4577 ac_pt_PKG_CONFIG=$PKG_CONFIG
4578 # Extract the first word of "pkg-config", so it can be a program name with args.
4579 set dummy pkg-config; ac_word=$2
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4581 $as_echo_n "checking for $ac_word... " >&6; }
4582 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4583 $as_echo_n "(cached) " >&6
4584 else
4585 case $ac_pt_PKG_CONFIG in
4586 [\\/]* | ?:[\\/]*)
4587 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4588 ;;
4589 *)
4590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4591 for as_dir in $PATH
4592 do
4593 IFS=$as_save_IFS
4594 test -z "$as_dir" && as_dir=.
4595 for ac_exec_ext in '' $ac_executable_extensions; do
4596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4597 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4599 break 2
4600 fi
4601 done
4602 done
4603 IFS=$as_save_IFS
4604
4605 ;;
4606 esac
4607 fi
4608 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4609 if test -n "$ac_pt_PKG_CONFIG"; then
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4611 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4612 else
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4614 $as_echo "no" >&6; }
4615 fi
4616
4617 if test "x$ac_pt_PKG_CONFIG" = x; then
4618 PKG_CONFIG=""
4619 else
4620 case $cross_compiling:$ac_tool_warned in
4621 yes:)
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4623 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4624 ac_tool_warned=yes ;;
4625 esac
4626 PKG_CONFIG=$ac_pt_PKG_CONFIG
4627 fi
4628 else
4629 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4630 fi
4631
4632 fi
4633 if test -n "$PKG_CONFIG"; then
4634 _pkg_min_version=0.9.0
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4636 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4637 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4639 $as_echo "yes" >&6; }
4640 else
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4642 $as_echo "no" >&6; }
4643 PKG_CONFIG=""
4644 fi
4645 fi
4646 # Make sure we can run config.sub.
4647 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4648 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4649
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4651 $as_echo_n "checking build system type... " >&6; }
4652 if ${ac_cv_build+:} false; then :
4653 $as_echo_n "(cached) " >&6
4654 else
4655 ac_build_alias=$build_alias
4656 test "x$ac_build_alias" = x &&
4657 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4658 test "x$ac_build_alias" = x &&
4659 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4660 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4661 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4662
4663 fi
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4665 $as_echo "$ac_cv_build" >&6; }
4666 case $ac_cv_build in
4667 *-*-*) ;;
4668 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4669 esac
4670 build=$ac_cv_build
4671 ac_save_IFS=$IFS; IFS='-'
4672 set x $ac_cv_build
4673 shift
4674 build_cpu=$1
4675 build_vendor=$2
4676 shift; shift
4677 # Remember, the first character of IFS is used to create $*,
4678 # except with old shells:
4679 build_os=$*
4680 IFS=$ac_save_IFS
4681 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4682
4683
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4685 $as_echo_n "checking host system type... " >&6; }
4686 if ${ac_cv_host+:} false; then :
4687 $as_echo_n "(cached) " >&6
4688 else
4689 if test "x$host_alias" = x; then
4690 ac_cv_host=$ac_cv_build
4691 else
4692 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4693 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4694 fi
4695
4696 fi
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4698 $as_echo "$ac_cv_host" >&6; }
4699 case $ac_cv_host in
4700 *-*-*) ;;
4701 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4702 esac
4703 host=$ac_cv_host
4704 ac_save_IFS=$IFS; IFS='-'
4705 set x $ac_cv_host
4706 shift
4707 host_cpu=$1
4708 host_vendor=$2
4709 shift; shift
4710 # Remember, the first character of IFS is used to create $*,
4711 # except with old shells:
4712 host_os=$*
4713 IFS=$ac_save_IFS
4714 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4715
4716
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4718 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4719 if ${ac_cv_path_SED+:} false; then :
4720 $as_echo_n "(cached) " >&6
4721 else
4722 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4723 for ac_i in 1 2 3 4 5 6 7; do
4724 ac_script="$ac_script$as_nl$ac_script"
4725 done
4726 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4727 { ac_script=; unset ac_script;}
4728 if test -z "$SED"; then
4729 ac_path_SED_found=false
4730 # Loop through the user's path and test for each of PROGNAME-LIST
4731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4732 for as_dir in $PATH
4733 do
4734 IFS=$as_save_IFS
4735 test -z "$as_dir" && as_dir=.
4736 for ac_prog in sed gsed; do
4737 for ac_exec_ext in '' $ac_executable_extensions; do
4738 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4739 as_fn_executable_p "$ac_path_SED" || continue
4740 # Check for GNU ac_path_SED and select it if it is found.
4741 # Check for GNU $ac_path_SED
4742 case `"$ac_path_SED" --version 2>&1` in
4743 *GNU*)
4744 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4745 *)
4746 ac_count=0
4747 $as_echo_n 0123456789 >"conftest.in"
4748 while :
4749 do
4750 cat "conftest.in" "conftest.in" >"conftest.tmp"
4751 mv "conftest.tmp" "conftest.in"
4752 cp "conftest.in" "conftest.nl"
4753 $as_echo '' >> "conftest.nl"
4754 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4755 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4756 as_fn_arith $ac_count + 1 && ac_count=$as_val
4757 if test $ac_count -gt ${ac_path_SED_max-0}; then
4758 # Best one so far, save it but keep looking for a better one
4759 ac_cv_path_SED="$ac_path_SED"
4760 ac_path_SED_max=$ac_count
4761 fi
4762 # 10*(2^10) chars as input seems more than enough
4763 test $ac_count -gt 10 && break
4764 done
4765 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4766 esac
4767
4768 $ac_path_SED_found && break 3
4769 done
4770 done
4771 done
4772 IFS=$as_save_IFS
4773 if test -z "$ac_cv_path_SED"; then
4774 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4775 fi
4776 else
4777 ac_cv_path_SED=$SED
4778 fi
4779
4780 fi
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4782 $as_echo "$ac_cv_path_SED" >&6; }
4783 SED="$ac_cv_path_SED"
4784 rm -f conftest.sed
4785
4786
4787
4788
4789
4790
4791 # Check whether --enable-selective-werror was given.
4792 if test "${enable_selective_werror+set}" = set; then :
4793 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4794 else
4795 SELECTIVE_WERROR=yes
4796 fi
4797
4798
4799
4800
4801
4802 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4803 if test "x$SUNCC" = "xyes"; then
4804 BASE_CFLAGS="-v"
4805 else
4806 BASE_CFLAGS=""
4807 fi
4808
4809 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823 xorg_testset_save_CFLAGS="$CFLAGS"
4824
4825 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4826 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4828 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4829 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4830 $as_echo_n "(cached) " >&6
4831 else
4832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4833 /* end confdefs.h. */
4834 int i;
4835 _ACEOF
4836 if ac_fn_c_try_compile "$LINENO"; then :
4837 xorg_cv_cc_flag_unknown_warning_option=yes
4838 else
4839 xorg_cv_cc_flag_unknown_warning_option=no
4840 fi
4841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4842 fi
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4844 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4845 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4846 CFLAGS="$xorg_testset_save_CFLAGS"
4847 fi
4848
4849 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4850 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4851 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4852 fi
4853 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4855 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4856 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4857 $as_echo_n "(cached) " >&6
4858 else
4859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4860 /* end confdefs.h. */
4861 int i;
4862 _ACEOF
4863 if ac_fn_c_try_compile "$LINENO"; then :
4864 xorg_cv_cc_flag_unused_command_line_argument=yes
4865 else
4866 xorg_cv_cc_flag_unused_command_line_argument=no
4867 fi
4868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4869 fi
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4871 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4872 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4873 CFLAGS="$xorg_testset_save_CFLAGS"
4874 fi
4875
4876 found="no"
4877
4878 if test $found = "no" ; then
4879 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4880 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4881 fi
4882
4883 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4884 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4885 fi
4886
4887 CFLAGS="$CFLAGS -Wall"
4888
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4890 $as_echo_n "checking if $CC supports -Wall... " >&6; }
4891 cacheid=xorg_cv_cc_flag__Wall
4892 if eval \${$cacheid+:} false; then :
4893 $as_echo_n "(cached) " >&6
4894 else
4895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4896 /* end confdefs.h. */
4897 int i;
4898 int
4899 main ()
4900 {
4901
4902 ;
4903 return 0;
4904 }
4905 _ACEOF
4906 if ac_fn_c_try_link "$LINENO"; then :
4907 eval $cacheid=yes
4908 else
4909 eval $cacheid=no
4910 fi
4911 rm -f core conftest.err conftest.$ac_objext \
4912 conftest$ac_exeext conftest.$ac_ext
4913 fi
4914
4915
4916 CFLAGS="$xorg_testset_save_CFLAGS"
4917
4918 eval supported=\$$cacheid
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4920 $as_echo "$supported" >&6; }
4921 if test "$supported" = "yes" ; then
4922 BASE_CFLAGS="$BASE_CFLAGS -Wall"
4923 found="yes"
4924 fi
4925 fi
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941 xorg_testset_save_CFLAGS="$CFLAGS"
4942
4943 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4944 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4946 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4947 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4948 $as_echo_n "(cached) " >&6
4949 else
4950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4951 /* end confdefs.h. */
4952 int i;
4953 _ACEOF
4954 if ac_fn_c_try_compile "$LINENO"; then :
4955 xorg_cv_cc_flag_unknown_warning_option=yes
4956 else
4957 xorg_cv_cc_flag_unknown_warning_option=no
4958 fi
4959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4960 fi
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4962 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4963 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4964 CFLAGS="$xorg_testset_save_CFLAGS"
4965 fi
4966
4967 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4968 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4969 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4970 fi
4971 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4973 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4974 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4975 $as_echo_n "(cached) " >&6
4976 else
4977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4978 /* end confdefs.h. */
4979 int i;
4980 _ACEOF
4981 if ac_fn_c_try_compile "$LINENO"; then :
4982 xorg_cv_cc_flag_unused_command_line_argument=yes
4983 else
4984 xorg_cv_cc_flag_unused_command_line_argument=no
4985 fi
4986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4987 fi
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4989 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4990 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4991 CFLAGS="$xorg_testset_save_CFLAGS"
4992 fi
4993
4994 found="no"
4995
4996 if test $found = "no" ; then
4997 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4998 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4999 fi
5000
5001 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5002 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5003 fi
5004
5005 CFLAGS="$CFLAGS -Wpointer-arith"
5006
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5008 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
5009 cacheid=xorg_cv_cc_flag__Wpointer_arith
5010 if eval \${$cacheid+:} false; then :
5011 $as_echo_n "(cached) " >&6
5012 else
5013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5014 /* end confdefs.h. */
5015 int i;
5016 int
5017 main ()
5018 {
5019
5020 ;
5021 return 0;
5022 }
5023 _ACEOF
5024 if ac_fn_c_try_link "$LINENO"; then :
5025 eval $cacheid=yes
5026 else
5027 eval $cacheid=no
5028 fi
5029 rm -f core conftest.err conftest.$ac_objext \
5030 conftest$ac_exeext conftest.$ac_ext
5031 fi
5032
5033
5034 CFLAGS="$xorg_testset_save_CFLAGS"
5035
5036 eval supported=\$$cacheid
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5038 $as_echo "$supported" >&6; }
5039 if test "$supported" = "yes" ; then
5040 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5041 found="yes"
5042 fi
5043 fi
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059 xorg_testset_save_CFLAGS="$CFLAGS"
5060
5061 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5062 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5064 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5065 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5066 $as_echo_n "(cached) " >&6
5067 else
5068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5069 /* end confdefs.h. */
5070 int i;
5071 _ACEOF
5072 if ac_fn_c_try_compile "$LINENO"; then :
5073 xorg_cv_cc_flag_unknown_warning_option=yes
5074 else
5075 xorg_cv_cc_flag_unknown_warning_option=no
5076 fi
5077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5078 fi
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5080 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5081 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5082 CFLAGS="$xorg_testset_save_CFLAGS"
5083 fi
5084
5085 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5086 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5087 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5088 fi
5089 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5091 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5092 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5093 $as_echo_n "(cached) " >&6
5094 else
5095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5096 /* end confdefs.h. */
5097 int i;
5098 _ACEOF
5099 if ac_fn_c_try_compile "$LINENO"; then :
5100 xorg_cv_cc_flag_unused_command_line_argument=yes
5101 else
5102 xorg_cv_cc_flag_unused_command_line_argument=no
5103 fi
5104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5105 fi
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5107 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5108 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5109 CFLAGS="$xorg_testset_save_CFLAGS"
5110 fi
5111
5112 found="no"
5113
5114 if test $found = "no" ; then
5115 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5116 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5117 fi
5118
5119 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5120 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5121 fi
5122
5123 CFLAGS="$CFLAGS -Wmissing-declarations"
5124
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5126 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5127 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5128 if eval \${$cacheid+:} false; then :
5129 $as_echo_n "(cached) " >&6
5130 else
5131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5132 /* end confdefs.h. */
5133 int i;
5134 int
5135 main ()
5136 {
5137
5138 ;
5139 return 0;
5140 }
5141 _ACEOF
5142 if ac_fn_c_try_link "$LINENO"; then :
5143 eval $cacheid=yes
5144 else
5145 eval $cacheid=no
5146 fi
5147 rm -f core conftest.err conftest.$ac_objext \
5148 conftest$ac_exeext conftest.$ac_ext
5149 fi
5150
5151
5152 CFLAGS="$xorg_testset_save_CFLAGS"
5153
5154 eval supported=\$$cacheid
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5156 $as_echo "$supported" >&6; }
5157 if test "$supported" = "yes" ; then
5158 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5159 found="yes"
5160 fi
5161 fi
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177 xorg_testset_save_CFLAGS="$CFLAGS"
5178
5179 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5180 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5182 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5183 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5184 $as_echo_n "(cached) " >&6
5185 else
5186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5187 /* end confdefs.h. */
5188 int i;
5189 _ACEOF
5190 if ac_fn_c_try_compile "$LINENO"; then :
5191 xorg_cv_cc_flag_unknown_warning_option=yes
5192 else
5193 xorg_cv_cc_flag_unknown_warning_option=no
5194 fi
5195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5196 fi
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5198 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5199 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5200 CFLAGS="$xorg_testset_save_CFLAGS"
5201 fi
5202
5203 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5204 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5205 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5206 fi
5207 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5209 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5210 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5211 $as_echo_n "(cached) " >&6
5212 else
5213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5214 /* end confdefs.h. */
5215 int i;
5216 _ACEOF
5217 if ac_fn_c_try_compile "$LINENO"; then :
5218 xorg_cv_cc_flag_unused_command_line_argument=yes
5219 else
5220 xorg_cv_cc_flag_unused_command_line_argument=no
5221 fi
5222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5223 fi
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5225 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5226 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5227 CFLAGS="$xorg_testset_save_CFLAGS"
5228 fi
5229
5230 found="no"
5231
5232 if test $found = "no" ; then
5233 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5234 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5235 fi
5236
5237 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5238 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5239 fi
5240
5241 CFLAGS="$CFLAGS -Wformat=2"
5242
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5244 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5245 cacheid=xorg_cv_cc_flag__Wformat_2
5246 if eval \${$cacheid+:} false; then :
5247 $as_echo_n "(cached) " >&6
5248 else
5249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5250 /* end confdefs.h. */
5251 int i;
5252 int
5253 main ()
5254 {
5255
5256 ;
5257 return 0;
5258 }
5259 _ACEOF
5260 if ac_fn_c_try_link "$LINENO"; then :
5261 eval $cacheid=yes
5262 else
5263 eval $cacheid=no
5264 fi
5265 rm -f core conftest.err conftest.$ac_objext \
5266 conftest$ac_exeext conftest.$ac_ext
5267 fi
5268
5269
5270 CFLAGS="$xorg_testset_save_CFLAGS"
5271
5272 eval supported=\$$cacheid
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5274 $as_echo "$supported" >&6; }
5275 if test "$supported" = "yes" ; then
5276 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5277 found="yes"
5278 fi
5279 fi
5280
5281 if test $found = "no" ; then
5282 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5283 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5284 fi
5285
5286 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5287 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5288 fi
5289
5290 CFLAGS="$CFLAGS -Wformat"
5291
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5293 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
5294 cacheid=xorg_cv_cc_flag__Wformat
5295 if eval \${$cacheid+:} false; then :
5296 $as_echo_n "(cached) " >&6
5297 else
5298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5299 /* end confdefs.h. */
5300 int i;
5301 int
5302 main ()
5303 {
5304
5305 ;
5306 return 0;
5307 }
5308 _ACEOF
5309 if ac_fn_c_try_link "$LINENO"; then :
5310 eval $cacheid=yes
5311 else
5312 eval $cacheid=no
5313 fi
5314 rm -f core conftest.err conftest.$ac_objext \
5315 conftest$ac_exeext conftest.$ac_ext
5316 fi
5317
5318
5319 CFLAGS="$xorg_testset_save_CFLAGS"
5320
5321 eval supported=\$$cacheid
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5323 $as_echo "$supported" >&6; }
5324 if test "$supported" = "yes" ; then
5325 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5326 found="yes"
5327 fi
5328 fi
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346 xorg_testset_save_CFLAGS="$CFLAGS"
5347
5348 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5349 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5351 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5352 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5353 $as_echo_n "(cached) " >&6
5354 else
5355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5356 /* end confdefs.h. */
5357 int i;
5358 _ACEOF
5359 if ac_fn_c_try_compile "$LINENO"; then :
5360 xorg_cv_cc_flag_unknown_warning_option=yes
5361 else
5362 xorg_cv_cc_flag_unknown_warning_option=no
5363 fi
5364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5365 fi
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5367 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5368 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5369 CFLAGS="$xorg_testset_save_CFLAGS"
5370 fi
5371
5372 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5373 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5374 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5375 fi
5376 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5378 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5379 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5380 $as_echo_n "(cached) " >&6
5381 else
5382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5383 /* end confdefs.h. */
5384 int i;
5385 _ACEOF
5386 if ac_fn_c_try_compile "$LINENO"; then :
5387 xorg_cv_cc_flag_unused_command_line_argument=yes
5388 else
5389 xorg_cv_cc_flag_unused_command_line_argument=no
5390 fi
5391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5392 fi
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5394 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5395 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5396 CFLAGS="$xorg_testset_save_CFLAGS"
5397 fi
5398
5399 found="no"
5400
5401 if test $found = "no" ; then
5402 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5403 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5404 fi
5405
5406 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5407 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5408 fi
5409
5410 CFLAGS="$CFLAGS -Wstrict-prototypes"
5411
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5413 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5414 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5415 if eval \${$cacheid+:} false; then :
5416 $as_echo_n "(cached) " >&6
5417 else
5418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5419 /* end confdefs.h. */
5420 int i;
5421 int
5422 main ()
5423 {
5424
5425 ;
5426 return 0;
5427 }
5428 _ACEOF
5429 if ac_fn_c_try_link "$LINENO"; then :
5430 eval $cacheid=yes
5431 else
5432 eval $cacheid=no
5433 fi
5434 rm -f core conftest.err conftest.$ac_objext \
5435 conftest$ac_exeext conftest.$ac_ext
5436 fi
5437
5438
5439 CFLAGS="$xorg_testset_save_CFLAGS"
5440
5441 eval supported=\$$cacheid
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5443 $as_echo "$supported" >&6; }
5444 if test "$supported" = "yes" ; then
5445 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5446 found="yes"
5447 fi
5448 fi
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464 xorg_testset_save_CFLAGS="$CFLAGS"
5465
5466 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5467 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5469 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5470 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5471 $as_echo_n "(cached) " >&6
5472 else
5473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5474 /* end confdefs.h. */
5475 int i;
5476 _ACEOF
5477 if ac_fn_c_try_compile "$LINENO"; then :
5478 xorg_cv_cc_flag_unknown_warning_option=yes
5479 else
5480 xorg_cv_cc_flag_unknown_warning_option=no
5481 fi
5482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5483 fi
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5485 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5486 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5487 CFLAGS="$xorg_testset_save_CFLAGS"
5488 fi
5489
5490 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5491 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5492 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5493 fi
5494 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5496 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5497 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5498 $as_echo_n "(cached) " >&6
5499 else
5500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5501 /* end confdefs.h. */
5502 int i;
5503 _ACEOF
5504 if ac_fn_c_try_compile "$LINENO"; then :
5505 xorg_cv_cc_flag_unused_command_line_argument=yes
5506 else
5507 xorg_cv_cc_flag_unused_command_line_argument=no
5508 fi
5509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5510 fi
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5512 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5513 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5514 CFLAGS="$xorg_testset_save_CFLAGS"
5515 fi
5516
5517 found="no"
5518
5519 if test $found = "no" ; then
5520 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5521 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5522 fi
5523
5524 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5525 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5526 fi
5527
5528 CFLAGS="$CFLAGS -Wmissing-prototypes"
5529
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5531 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5532 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5533 if eval \${$cacheid+:} false; then :
5534 $as_echo_n "(cached) " >&6
5535 else
5536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5537 /* end confdefs.h. */
5538 int i;
5539 int
5540 main ()
5541 {
5542
5543 ;
5544 return 0;
5545 }
5546 _ACEOF
5547 if ac_fn_c_try_link "$LINENO"; then :
5548 eval $cacheid=yes
5549 else
5550 eval $cacheid=no
5551 fi
5552 rm -f core conftest.err conftest.$ac_objext \
5553 conftest$ac_exeext conftest.$ac_ext
5554 fi
5555
5556
5557 CFLAGS="$xorg_testset_save_CFLAGS"
5558
5559 eval supported=\$$cacheid
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5561 $as_echo "$supported" >&6; }
5562 if test "$supported" = "yes" ; then
5563 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5564 found="yes"
5565 fi
5566 fi
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582 xorg_testset_save_CFLAGS="$CFLAGS"
5583
5584 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5585 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5587 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5588 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5589 $as_echo_n "(cached) " >&6
5590 else
5591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5592 /* end confdefs.h. */
5593 int i;
5594 _ACEOF
5595 if ac_fn_c_try_compile "$LINENO"; then :
5596 xorg_cv_cc_flag_unknown_warning_option=yes
5597 else
5598 xorg_cv_cc_flag_unknown_warning_option=no
5599 fi
5600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5601 fi
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5603 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5604 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5605 CFLAGS="$xorg_testset_save_CFLAGS"
5606 fi
5607
5608 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5609 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5610 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5611 fi
5612 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5614 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5615 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5616 $as_echo_n "(cached) " >&6
5617 else
5618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5619 /* end confdefs.h. */
5620 int i;
5621 _ACEOF
5622 if ac_fn_c_try_compile "$LINENO"; then :
5623 xorg_cv_cc_flag_unused_command_line_argument=yes
5624 else
5625 xorg_cv_cc_flag_unused_command_line_argument=no
5626 fi
5627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5628 fi
5629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5630 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5631 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5632 CFLAGS="$xorg_testset_save_CFLAGS"
5633 fi
5634
5635 found="no"
5636
5637 if test $found = "no" ; then
5638 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5639 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5640 fi
5641
5642 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5643 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5644 fi
5645
5646 CFLAGS="$CFLAGS -Wnested-externs"
5647
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5649 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5650 cacheid=xorg_cv_cc_flag__Wnested_externs
5651 if eval \${$cacheid+:} false; then :
5652 $as_echo_n "(cached) " >&6
5653 else
5654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5655 /* end confdefs.h. */
5656 int i;
5657 int
5658 main ()
5659 {
5660
5661 ;
5662 return 0;
5663 }
5664 _ACEOF
5665 if ac_fn_c_try_link "$LINENO"; then :
5666 eval $cacheid=yes
5667 else
5668 eval $cacheid=no
5669 fi
5670 rm -f core conftest.err conftest.$ac_objext \
5671 conftest$ac_exeext conftest.$ac_ext
5672 fi
5673
5674
5675 CFLAGS="$xorg_testset_save_CFLAGS"
5676
5677 eval supported=\$$cacheid
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5679 $as_echo "$supported" >&6; }
5680 if test "$supported" = "yes" ; then
5681 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5682 found="yes"
5683 fi
5684 fi
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700 xorg_testset_save_CFLAGS="$CFLAGS"
5701
5702 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5703 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5705 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5706 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5707 $as_echo_n "(cached) " >&6
5708 else
5709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5710 /* end confdefs.h. */
5711 int i;
5712 _ACEOF
5713 if ac_fn_c_try_compile "$LINENO"; then :
5714 xorg_cv_cc_flag_unknown_warning_option=yes
5715 else
5716 xorg_cv_cc_flag_unknown_warning_option=no
5717 fi
5718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5719 fi
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5721 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5722 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5723 CFLAGS="$xorg_testset_save_CFLAGS"
5724 fi
5725
5726 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5727 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5728 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5729 fi
5730 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5732 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5733 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5734 $as_echo_n "(cached) " >&6
5735 else
5736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5737 /* end confdefs.h. */
5738 int i;
5739 _ACEOF
5740 if ac_fn_c_try_compile "$LINENO"; then :
5741 xorg_cv_cc_flag_unused_command_line_argument=yes
5742 else
5743 xorg_cv_cc_flag_unused_command_line_argument=no
5744 fi
5745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5746 fi
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5748 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5749 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5750 CFLAGS="$xorg_testset_save_CFLAGS"
5751 fi
5752
5753 found="no"
5754
5755 if test $found = "no" ; then
5756 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5757 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5758 fi
5759
5760 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5761 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5762 fi
5763
5764 CFLAGS="$CFLAGS -Wbad-function-cast"
5765
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5767 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5768 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5769 if eval \${$cacheid+:} false; then :
5770 $as_echo_n "(cached) " >&6
5771 else
5772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5773 /* end confdefs.h. */
5774 int i;
5775 int
5776 main ()
5777 {
5778
5779 ;
5780 return 0;
5781 }
5782 _ACEOF
5783 if ac_fn_c_try_link "$LINENO"; then :
5784 eval $cacheid=yes
5785 else
5786 eval $cacheid=no
5787 fi
5788 rm -f core conftest.err conftest.$ac_objext \
5789 conftest$ac_exeext conftest.$ac_ext
5790 fi
5791
5792
5793 CFLAGS="$xorg_testset_save_CFLAGS"
5794
5795 eval supported=\$$cacheid
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5797 $as_echo "$supported" >&6; }
5798 if test "$supported" = "yes" ; then
5799 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5800 found="yes"
5801 fi
5802 fi
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818 xorg_testset_save_CFLAGS="$CFLAGS"
5819
5820 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5821 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5823 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5824 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5825 $as_echo_n "(cached) " >&6
5826 else
5827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5828 /* end confdefs.h. */
5829 int i;
5830 _ACEOF
5831 if ac_fn_c_try_compile "$LINENO"; then :
5832 xorg_cv_cc_flag_unknown_warning_option=yes
5833 else
5834 xorg_cv_cc_flag_unknown_warning_option=no
5835 fi
5836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5837 fi
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5839 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5840 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5841 CFLAGS="$xorg_testset_save_CFLAGS"
5842 fi
5843
5844 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5845 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5846 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5847 fi
5848 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5850 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5851 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5852 $as_echo_n "(cached) " >&6
5853 else
5854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5855 /* end confdefs.h. */
5856 int i;
5857 _ACEOF
5858 if ac_fn_c_try_compile "$LINENO"; then :
5859 xorg_cv_cc_flag_unused_command_line_argument=yes
5860 else
5861 xorg_cv_cc_flag_unused_command_line_argument=no
5862 fi
5863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5864 fi
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5866 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5867 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5868 CFLAGS="$xorg_testset_save_CFLAGS"
5869 fi
5870
5871 found="no"
5872
5873 if test $found = "no" ; then
5874 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5875 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5876 fi
5877
5878 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5879 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5880 fi
5881
5882 CFLAGS="$CFLAGS -Wold-style-definition"
5883
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5885 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5886 cacheid=xorg_cv_cc_flag__Wold_style_definition
5887 if eval \${$cacheid+:} false; then :
5888 $as_echo_n "(cached) " >&6
5889 else
5890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5891 /* end confdefs.h. */
5892 int i;
5893 int
5894 main ()
5895 {
5896
5897 ;
5898 return 0;
5899 }
5900 _ACEOF
5901 if ac_fn_c_try_link "$LINENO"; then :
5902 eval $cacheid=yes
5903 else
5904 eval $cacheid=no
5905 fi
5906 rm -f core conftest.err conftest.$ac_objext \
5907 conftest$ac_exeext conftest.$ac_ext
5908 fi
5909
5910
5911 CFLAGS="$xorg_testset_save_CFLAGS"
5912
5913 eval supported=\$$cacheid
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5915 $as_echo "$supported" >&6; }
5916 if test "$supported" = "yes" ; then
5917 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5918 found="yes"
5919 fi
5920 fi
5921
5922 if test $found = "no" ; then
5923 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5924 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5925 fi
5926
5927 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5928 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5929 fi
5930
5931 CFLAGS="$CFLAGS -fd"
5932
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
5934 $as_echo_n "checking if $CC supports -fd... " >&6; }
5935 cacheid=xorg_cv_cc_flag__fd
5936 if eval \${$cacheid+:} false; then :
5937 $as_echo_n "(cached) " >&6
5938 else
5939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5940 /* end confdefs.h. */
5941 int i;
5942 int
5943 main ()
5944 {
5945
5946 ;
5947 return 0;
5948 }
5949 _ACEOF
5950 if ac_fn_c_try_link "$LINENO"; then :
5951 eval $cacheid=yes
5952 else
5953 eval $cacheid=no
5954 fi
5955 rm -f core conftest.err conftest.$ac_objext \
5956 conftest$ac_exeext conftest.$ac_ext
5957 fi
5958
5959
5960 CFLAGS="$xorg_testset_save_CFLAGS"
5961
5962 eval supported=\$$cacheid
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5964 $as_echo "$supported" >&6; }
5965 if test "$supported" = "yes" ; then
5966 BASE_CFLAGS="$BASE_CFLAGS -fd"
5967 found="yes"
5968 fi
5969 fi
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985 xorg_testset_save_CFLAGS="$CFLAGS"
5986
5987 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5988 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5990 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5991 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5992 $as_echo_n "(cached) " >&6
5993 else
5994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5995 /* end confdefs.h. */
5996 int i;
5997 _ACEOF
5998 if ac_fn_c_try_compile "$LINENO"; then :
5999 xorg_cv_cc_flag_unknown_warning_option=yes
6000 else
6001 xorg_cv_cc_flag_unknown_warning_option=no
6002 fi
6003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6004 fi
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6006 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6007 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6008 CFLAGS="$xorg_testset_save_CFLAGS"
6009 fi
6010
6011 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6012 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6013 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6014 fi
6015 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6017 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6018 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6019 $as_echo_n "(cached) " >&6
6020 else
6021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6022 /* end confdefs.h. */
6023 int i;
6024 _ACEOF
6025 if ac_fn_c_try_compile "$LINENO"; then :
6026 xorg_cv_cc_flag_unused_command_line_argument=yes
6027 else
6028 xorg_cv_cc_flag_unused_command_line_argument=no
6029 fi
6030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6031 fi
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6033 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6034 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6035 CFLAGS="$xorg_testset_save_CFLAGS"
6036 fi
6037
6038 found="no"
6039
6040 if test $found = "no" ; then
6041 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6042 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6043 fi
6044
6045 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6046 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6047 fi
6048
6049 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6050
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6052 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6053 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6054 if eval \${$cacheid+:} false; then :
6055 $as_echo_n "(cached) " >&6
6056 else
6057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6058 /* end confdefs.h. */
6059 int i;
6060 int
6061 main ()
6062 {
6063
6064 ;
6065 return 0;
6066 }
6067 _ACEOF
6068 if ac_fn_c_try_link "$LINENO"; then :
6069 eval $cacheid=yes
6070 else
6071 eval $cacheid=no
6072 fi
6073 rm -f core conftest.err conftest.$ac_objext \
6074 conftest$ac_exeext conftest.$ac_ext
6075 fi
6076
6077
6078 CFLAGS="$xorg_testset_save_CFLAGS"
6079
6080 eval supported=\$$cacheid
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6082 $as_echo "$supported" >&6; }
6083 if test "$supported" = "yes" ; then
6084 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6085 found="yes"
6086 fi
6087 fi
6088
6089
6090
6091
6092
6093 # This chunk adds additional warnings that could catch undesired effects.
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107 xorg_testset_save_CFLAGS="$CFLAGS"
6108
6109 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6110 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6112 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6113 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6114 $as_echo_n "(cached) " >&6
6115 else
6116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6117 /* end confdefs.h. */
6118 int i;
6119 _ACEOF
6120 if ac_fn_c_try_compile "$LINENO"; then :
6121 xorg_cv_cc_flag_unknown_warning_option=yes
6122 else
6123 xorg_cv_cc_flag_unknown_warning_option=no
6124 fi
6125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6126 fi
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6128 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6129 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6130 CFLAGS="$xorg_testset_save_CFLAGS"
6131 fi
6132
6133 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6134 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6135 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6136 fi
6137 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6139 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6140 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6141 $as_echo_n "(cached) " >&6
6142 else
6143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6144 /* end confdefs.h. */
6145 int i;
6146 _ACEOF
6147 if ac_fn_c_try_compile "$LINENO"; then :
6148 xorg_cv_cc_flag_unused_command_line_argument=yes
6149 else
6150 xorg_cv_cc_flag_unused_command_line_argument=no
6151 fi
6152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6153 fi
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6155 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6156 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6157 CFLAGS="$xorg_testset_save_CFLAGS"
6158 fi
6159
6160 found="no"
6161
6162 if test $found = "no" ; then
6163 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6164 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6165 fi
6166
6167 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6168 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6169 fi
6170
6171 CFLAGS="$CFLAGS -Wunused"
6172
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6174 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
6175 cacheid=xorg_cv_cc_flag__Wunused
6176 if eval \${$cacheid+:} false; then :
6177 $as_echo_n "(cached) " >&6
6178 else
6179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6180 /* end confdefs.h. */
6181 int i;
6182 int
6183 main ()
6184 {
6185
6186 ;
6187 return 0;
6188 }
6189 _ACEOF
6190 if ac_fn_c_try_link "$LINENO"; then :
6191 eval $cacheid=yes
6192 else
6193 eval $cacheid=no
6194 fi
6195 rm -f core conftest.err conftest.$ac_objext \
6196 conftest$ac_exeext conftest.$ac_ext
6197 fi
6198
6199
6200 CFLAGS="$xorg_testset_save_CFLAGS"
6201
6202 eval supported=\$$cacheid
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6204 $as_echo "$supported" >&6; }
6205 if test "$supported" = "yes" ; then
6206 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6207 found="yes"
6208 fi
6209 fi
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225 xorg_testset_save_CFLAGS="$CFLAGS"
6226
6227 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6228 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6230 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6231 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6232 $as_echo_n "(cached) " >&6
6233 else
6234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6235 /* end confdefs.h. */
6236 int i;
6237 _ACEOF
6238 if ac_fn_c_try_compile "$LINENO"; then :
6239 xorg_cv_cc_flag_unknown_warning_option=yes
6240 else
6241 xorg_cv_cc_flag_unknown_warning_option=no
6242 fi
6243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6244 fi
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6246 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6247 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6248 CFLAGS="$xorg_testset_save_CFLAGS"
6249 fi
6250
6251 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6252 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6253 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6254 fi
6255 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6257 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6258 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6259 $as_echo_n "(cached) " >&6
6260 else
6261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6262 /* end confdefs.h. */
6263 int i;
6264 _ACEOF
6265 if ac_fn_c_try_compile "$LINENO"; then :
6266 xorg_cv_cc_flag_unused_command_line_argument=yes
6267 else
6268 xorg_cv_cc_flag_unused_command_line_argument=no
6269 fi
6270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6271 fi
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6273 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6274 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6275 CFLAGS="$xorg_testset_save_CFLAGS"
6276 fi
6277
6278 found="no"
6279
6280 if test $found = "no" ; then
6281 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6282 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6283 fi
6284
6285 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6286 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6287 fi
6288
6289 CFLAGS="$CFLAGS -Wuninitialized"
6290
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6292 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6293 cacheid=xorg_cv_cc_flag__Wuninitialized
6294 if eval \${$cacheid+:} false; then :
6295 $as_echo_n "(cached) " >&6
6296 else
6297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6298 /* end confdefs.h. */
6299 int i;
6300 int
6301 main ()
6302 {
6303
6304 ;
6305 return 0;
6306 }
6307 _ACEOF
6308 if ac_fn_c_try_link "$LINENO"; then :
6309 eval $cacheid=yes
6310 else
6311 eval $cacheid=no
6312 fi
6313 rm -f core conftest.err conftest.$ac_objext \
6314 conftest$ac_exeext conftest.$ac_ext
6315 fi
6316
6317
6318 CFLAGS="$xorg_testset_save_CFLAGS"
6319
6320 eval supported=\$$cacheid
6321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6322 $as_echo "$supported" >&6; }
6323 if test "$supported" = "yes" ; then
6324 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6325 found="yes"
6326 fi
6327 fi
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343 xorg_testset_save_CFLAGS="$CFLAGS"
6344
6345 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6346 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6348 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6349 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6350 $as_echo_n "(cached) " >&6
6351 else
6352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6353 /* end confdefs.h. */
6354 int i;
6355 _ACEOF
6356 if ac_fn_c_try_compile "$LINENO"; then :
6357 xorg_cv_cc_flag_unknown_warning_option=yes
6358 else
6359 xorg_cv_cc_flag_unknown_warning_option=no
6360 fi
6361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6362 fi
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6364 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6365 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6366 CFLAGS="$xorg_testset_save_CFLAGS"
6367 fi
6368
6369 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6370 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6371 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6372 fi
6373 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6375 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6376 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6377 $as_echo_n "(cached) " >&6
6378 else
6379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6380 /* end confdefs.h. */
6381 int i;
6382 _ACEOF
6383 if ac_fn_c_try_compile "$LINENO"; then :
6384 xorg_cv_cc_flag_unused_command_line_argument=yes
6385 else
6386 xorg_cv_cc_flag_unused_command_line_argument=no
6387 fi
6388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6389 fi
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6391 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6392 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6393 CFLAGS="$xorg_testset_save_CFLAGS"
6394 fi
6395
6396 found="no"
6397
6398 if test $found = "no" ; then
6399 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6400 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6401 fi
6402
6403 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6404 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6405 fi
6406
6407 CFLAGS="$CFLAGS -Wshadow"
6408
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6410 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6411 cacheid=xorg_cv_cc_flag__Wshadow
6412 if eval \${$cacheid+:} false; then :
6413 $as_echo_n "(cached) " >&6
6414 else
6415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6416 /* end confdefs.h. */
6417 int i;
6418 int
6419 main ()
6420 {
6421
6422 ;
6423 return 0;
6424 }
6425 _ACEOF
6426 if ac_fn_c_try_link "$LINENO"; then :
6427 eval $cacheid=yes
6428 else
6429 eval $cacheid=no
6430 fi
6431 rm -f core conftest.err conftest.$ac_objext \
6432 conftest$ac_exeext conftest.$ac_ext
6433 fi
6434
6435
6436 CFLAGS="$xorg_testset_save_CFLAGS"
6437
6438 eval supported=\$$cacheid
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6440 $as_echo "$supported" >&6; }
6441 if test "$supported" = "yes" ; then
6442 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6443 found="yes"
6444 fi
6445 fi
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461 xorg_testset_save_CFLAGS="$CFLAGS"
6462
6463 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6464 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6466 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6467 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6468 $as_echo_n "(cached) " >&6
6469 else
6470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6471 /* end confdefs.h. */
6472 int i;
6473 _ACEOF
6474 if ac_fn_c_try_compile "$LINENO"; then :
6475 xorg_cv_cc_flag_unknown_warning_option=yes
6476 else
6477 xorg_cv_cc_flag_unknown_warning_option=no
6478 fi
6479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6480 fi
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6482 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6483 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6484 CFLAGS="$xorg_testset_save_CFLAGS"
6485 fi
6486
6487 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6488 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6489 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6490 fi
6491 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6493 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6494 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6495 $as_echo_n "(cached) " >&6
6496 else
6497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6498 /* end confdefs.h. */
6499 int i;
6500 _ACEOF
6501 if ac_fn_c_try_compile "$LINENO"; then :
6502 xorg_cv_cc_flag_unused_command_line_argument=yes
6503 else
6504 xorg_cv_cc_flag_unused_command_line_argument=no
6505 fi
6506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6507 fi
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6509 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6510 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6511 CFLAGS="$xorg_testset_save_CFLAGS"
6512 fi
6513
6514 found="no"
6515
6516 if test $found = "no" ; then
6517 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6518 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6519 fi
6520
6521 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6522 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6523 fi
6524
6525 CFLAGS="$CFLAGS -Wmissing-noreturn"
6526
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6528 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6529 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6530 if eval \${$cacheid+:} false; then :
6531 $as_echo_n "(cached) " >&6
6532 else
6533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6534 /* end confdefs.h. */
6535 int i;
6536 int
6537 main ()
6538 {
6539
6540 ;
6541 return 0;
6542 }
6543 _ACEOF
6544 if ac_fn_c_try_link "$LINENO"; then :
6545 eval $cacheid=yes
6546 else
6547 eval $cacheid=no
6548 fi
6549 rm -f core conftest.err conftest.$ac_objext \
6550 conftest$ac_exeext conftest.$ac_ext
6551 fi
6552
6553
6554 CFLAGS="$xorg_testset_save_CFLAGS"
6555
6556 eval supported=\$$cacheid
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6558 $as_echo "$supported" >&6; }
6559 if test "$supported" = "yes" ; then
6560 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6561 found="yes"
6562 fi
6563 fi
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579 xorg_testset_save_CFLAGS="$CFLAGS"
6580
6581 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6582 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6584 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6585 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6586 $as_echo_n "(cached) " >&6
6587 else
6588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6589 /* end confdefs.h. */
6590 int i;
6591 _ACEOF
6592 if ac_fn_c_try_compile "$LINENO"; then :
6593 xorg_cv_cc_flag_unknown_warning_option=yes
6594 else
6595 xorg_cv_cc_flag_unknown_warning_option=no
6596 fi
6597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6598 fi
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6600 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6601 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6602 CFLAGS="$xorg_testset_save_CFLAGS"
6603 fi
6604
6605 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6606 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6607 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6608 fi
6609 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6611 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6612 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6613 $as_echo_n "(cached) " >&6
6614 else
6615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6616 /* end confdefs.h. */
6617 int i;
6618 _ACEOF
6619 if ac_fn_c_try_compile "$LINENO"; then :
6620 xorg_cv_cc_flag_unused_command_line_argument=yes
6621 else
6622 xorg_cv_cc_flag_unused_command_line_argument=no
6623 fi
6624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6625 fi
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6627 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6628 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6629 CFLAGS="$xorg_testset_save_CFLAGS"
6630 fi
6631
6632 found="no"
6633
6634 if test $found = "no" ; then
6635 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6636 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6637 fi
6638
6639 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6640 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6641 fi
6642
6643 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6644
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6646 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6647 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6648 if eval \${$cacheid+:} false; then :
6649 $as_echo_n "(cached) " >&6
6650 else
6651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6652 /* end confdefs.h. */
6653 int i;
6654 int
6655 main ()
6656 {
6657
6658 ;
6659 return 0;
6660 }
6661 _ACEOF
6662 if ac_fn_c_try_link "$LINENO"; then :
6663 eval $cacheid=yes
6664 else
6665 eval $cacheid=no
6666 fi
6667 rm -f core conftest.err conftest.$ac_objext \
6668 conftest$ac_exeext conftest.$ac_ext
6669 fi
6670
6671
6672 CFLAGS="$xorg_testset_save_CFLAGS"
6673
6674 eval supported=\$$cacheid
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6676 $as_echo "$supported" >&6; }
6677 if test "$supported" = "yes" ; then
6678 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6679 found="yes"
6680 fi
6681 fi
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697 xorg_testset_save_CFLAGS="$CFLAGS"
6698
6699 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6700 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6702 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6703 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6704 $as_echo_n "(cached) " >&6
6705 else
6706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6707 /* end confdefs.h. */
6708 int i;
6709 _ACEOF
6710 if ac_fn_c_try_compile "$LINENO"; then :
6711 xorg_cv_cc_flag_unknown_warning_option=yes
6712 else
6713 xorg_cv_cc_flag_unknown_warning_option=no
6714 fi
6715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6716 fi
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6718 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6719 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6720 CFLAGS="$xorg_testset_save_CFLAGS"
6721 fi
6722
6723 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6724 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6725 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6726 fi
6727 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6729 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6730 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6731 $as_echo_n "(cached) " >&6
6732 else
6733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6734 /* end confdefs.h. */
6735 int i;
6736 _ACEOF
6737 if ac_fn_c_try_compile "$LINENO"; then :
6738 xorg_cv_cc_flag_unused_command_line_argument=yes
6739 else
6740 xorg_cv_cc_flag_unused_command_line_argument=no
6741 fi
6742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6743 fi
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6745 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6746 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6747 CFLAGS="$xorg_testset_save_CFLAGS"
6748 fi
6749
6750 found="no"
6751
6752 if test $found = "no" ; then
6753 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6754 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6755 fi
6756
6757 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6758 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6759 fi
6760
6761 CFLAGS="$CFLAGS -Wredundant-decls"
6762
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6764 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6765 cacheid=xorg_cv_cc_flag__Wredundant_decls
6766 if eval \${$cacheid+:} false; then :
6767 $as_echo_n "(cached) " >&6
6768 else
6769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6770 /* end confdefs.h. */
6771 int i;
6772 int
6773 main ()
6774 {
6775
6776 ;
6777 return 0;
6778 }
6779 _ACEOF
6780 if ac_fn_c_try_link "$LINENO"; then :
6781 eval $cacheid=yes
6782 else
6783 eval $cacheid=no
6784 fi
6785 rm -f core conftest.err conftest.$ac_objext \
6786 conftest$ac_exeext conftest.$ac_ext
6787 fi
6788
6789
6790 CFLAGS="$xorg_testset_save_CFLAGS"
6791
6792 eval supported=\$$cacheid
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6794 $as_echo "$supported" >&6; }
6795 if test "$supported" = "yes" ; then
6796 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6797 found="yes"
6798 fi
6799 fi
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815 xorg_testset_save_CFLAGS="$CFLAGS"
6816
6817 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6818 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6820 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6821 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6822 $as_echo_n "(cached) " >&6
6823 else
6824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6825 /* end confdefs.h. */
6826 int i;
6827 _ACEOF
6828 if ac_fn_c_try_compile "$LINENO"; then :
6829 xorg_cv_cc_flag_unknown_warning_option=yes
6830 else
6831 xorg_cv_cc_flag_unknown_warning_option=no
6832 fi
6833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6834 fi
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6836 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6837 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6838 CFLAGS="$xorg_testset_save_CFLAGS"
6839 fi
6840
6841 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6842 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6843 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6844 fi
6845 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6847 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6848 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6849 $as_echo_n "(cached) " >&6
6850 else
6851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6852 /* end confdefs.h. */
6853 int i;
6854 _ACEOF
6855 if ac_fn_c_try_compile "$LINENO"; then :
6856 xorg_cv_cc_flag_unused_command_line_argument=yes
6857 else
6858 xorg_cv_cc_flag_unused_command_line_argument=no
6859 fi
6860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6861 fi
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6863 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6864 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6865 CFLAGS="$xorg_testset_save_CFLAGS"
6866 fi
6867
6868 found="no"
6869
6870 if test $found = "no" ; then
6871 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6872 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6873 fi
6874
6875 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6876 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6877 fi
6878
6879 CFLAGS="$CFLAGS -Wlogical-op"
6880
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6882 $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
6883 cacheid=xorg_cv_cc_flag__Wlogical_op
6884 if eval \${$cacheid+:} false; then :
6885 $as_echo_n "(cached) " >&6
6886 else
6887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6888 /* end confdefs.h. */
6889 int i;
6890 int
6891 main ()
6892 {
6893
6894 ;
6895 return 0;
6896 }
6897 _ACEOF
6898 if ac_fn_c_try_link "$LINENO"; then :
6899 eval $cacheid=yes
6900 else
6901 eval $cacheid=no
6902 fi
6903 rm -f core conftest.err conftest.$ac_objext \
6904 conftest$ac_exeext conftest.$ac_ext
6905 fi
6906
6907
6908 CFLAGS="$xorg_testset_save_CFLAGS"
6909
6910 eval supported=\$$cacheid
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6912 $as_echo "$supported" >&6; }
6913 if test "$supported" = "yes" ; then
6914 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
6915 found="yes"
6916 fi
6917 fi
6918
6919
6920
6921 # These are currently disabled because they are noisy. They will be enabled
6922 # in the future once the codebase is sufficiently modernized to silence
6923 # them. For now, I don't want them to drown out the other warnings.
6924 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6925 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6926 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
6927
6928 # Turn some warnings into errors, so we don't accidently get successful builds
6929 # when there are problems that should be fixed.
6930
6931 if test "x$SELECTIVE_WERROR" = "xyes" ; then
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945 xorg_testset_save_CFLAGS="$CFLAGS"
6946
6947 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6948 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6950 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6951 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6952 $as_echo_n "(cached) " >&6
6953 else
6954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6955 /* end confdefs.h. */
6956 int i;
6957 _ACEOF
6958 if ac_fn_c_try_compile "$LINENO"; then :
6959 xorg_cv_cc_flag_unknown_warning_option=yes
6960 else
6961 xorg_cv_cc_flag_unknown_warning_option=no
6962 fi
6963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6964 fi
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6966 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6967 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6968 CFLAGS="$xorg_testset_save_CFLAGS"
6969 fi
6970
6971 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6972 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6973 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6974 fi
6975 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6977 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6978 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6979 $as_echo_n "(cached) " >&6
6980 else
6981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6982 /* end confdefs.h. */
6983 int i;
6984 _ACEOF
6985 if ac_fn_c_try_compile "$LINENO"; then :
6986 xorg_cv_cc_flag_unused_command_line_argument=yes
6987 else
6988 xorg_cv_cc_flag_unused_command_line_argument=no
6989 fi
6990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6991 fi
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6993 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6994 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6995 CFLAGS="$xorg_testset_save_CFLAGS"
6996 fi
6997
6998 found="no"
6999
7000 if test $found = "no" ; then
7001 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7002 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7003 fi
7004
7005 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7006 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7007 fi
7008
7009 CFLAGS="$CFLAGS -Werror=implicit"
7010
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7012 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
7013 cacheid=xorg_cv_cc_flag__Werror_implicit
7014 if eval \${$cacheid+:} false; then :
7015 $as_echo_n "(cached) " >&6
7016 else
7017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7018 /* end confdefs.h. */
7019 int i;
7020 int
7021 main ()
7022 {
7023
7024 ;
7025 return 0;
7026 }
7027 _ACEOF
7028 if ac_fn_c_try_link "$LINENO"; then :
7029 eval $cacheid=yes
7030 else
7031 eval $cacheid=no
7032 fi
7033 rm -f core conftest.err conftest.$ac_objext \
7034 conftest$ac_exeext conftest.$ac_ext
7035 fi
7036
7037
7038 CFLAGS="$xorg_testset_save_CFLAGS"
7039
7040 eval supported=\$$cacheid
7041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7042 $as_echo "$supported" >&6; }
7043 if test "$supported" = "yes" ; then
7044 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7045 found="yes"
7046 fi
7047 fi
7048
7049 if test $found = "no" ; then
7050 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7051 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7052 fi
7053
7054 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7055 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7056 fi
7057
7058 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7059
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7061 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7062 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7063 if eval \${$cacheid+:} false; then :
7064 $as_echo_n "(cached) " >&6
7065 else
7066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7067 /* end confdefs.h. */
7068 int i;
7069 int
7070 main ()
7071 {
7072
7073 ;
7074 return 0;
7075 }
7076 _ACEOF
7077 if ac_fn_c_try_link "$LINENO"; then :
7078 eval $cacheid=yes
7079 else
7080 eval $cacheid=no
7081 fi
7082 rm -f core conftest.err conftest.$ac_objext \
7083 conftest$ac_exeext conftest.$ac_ext
7084 fi
7085
7086
7087 CFLAGS="$xorg_testset_save_CFLAGS"
7088
7089 eval supported=\$$cacheid
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7091 $as_echo "$supported" >&6; }
7092 if test "$supported" = "yes" ; then
7093 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7094 found="yes"
7095 fi
7096 fi
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112 xorg_testset_save_CFLAGS="$CFLAGS"
7113
7114 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7115 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7117 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7118 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7119 $as_echo_n "(cached) " >&6
7120 else
7121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7122 /* end confdefs.h. */
7123 int i;
7124 _ACEOF
7125 if ac_fn_c_try_compile "$LINENO"; then :
7126 xorg_cv_cc_flag_unknown_warning_option=yes
7127 else
7128 xorg_cv_cc_flag_unknown_warning_option=no
7129 fi
7130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7131 fi
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7133 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7134 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7135 CFLAGS="$xorg_testset_save_CFLAGS"
7136 fi
7137
7138 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7139 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7140 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7141 fi
7142 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7144 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7145 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7146 $as_echo_n "(cached) " >&6
7147 else
7148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7149 /* end confdefs.h. */
7150 int i;
7151 _ACEOF
7152 if ac_fn_c_try_compile "$LINENO"; then :
7153 xorg_cv_cc_flag_unused_command_line_argument=yes
7154 else
7155 xorg_cv_cc_flag_unused_command_line_argument=no
7156 fi
7157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7158 fi
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7160 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7161 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7162 CFLAGS="$xorg_testset_save_CFLAGS"
7163 fi
7164
7165 found="no"
7166
7167 if test $found = "no" ; then
7168 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7169 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7170 fi
7171
7172 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7173 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7174 fi
7175
7176 CFLAGS="$CFLAGS -Werror=nonnull"
7177
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7179 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7180 cacheid=xorg_cv_cc_flag__Werror_nonnull
7181 if eval \${$cacheid+:} false; then :
7182 $as_echo_n "(cached) " >&6
7183 else
7184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7185 /* end confdefs.h. */
7186 int i;
7187 int
7188 main ()
7189 {
7190
7191 ;
7192 return 0;
7193 }
7194 _ACEOF
7195 if ac_fn_c_try_link "$LINENO"; then :
7196 eval $cacheid=yes
7197 else
7198 eval $cacheid=no
7199 fi
7200 rm -f core conftest.err conftest.$ac_objext \
7201 conftest$ac_exeext conftest.$ac_ext
7202 fi
7203
7204
7205 CFLAGS="$xorg_testset_save_CFLAGS"
7206
7207 eval supported=\$$cacheid
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7209 $as_echo "$supported" >&6; }
7210 if test "$supported" = "yes" ; then
7211 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7212 found="yes"
7213 fi
7214 fi
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230 xorg_testset_save_CFLAGS="$CFLAGS"
7231
7232 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7233 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7235 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7236 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7237 $as_echo_n "(cached) " >&6
7238 else
7239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7240 /* end confdefs.h. */
7241 int i;
7242 _ACEOF
7243 if ac_fn_c_try_compile "$LINENO"; then :
7244 xorg_cv_cc_flag_unknown_warning_option=yes
7245 else
7246 xorg_cv_cc_flag_unknown_warning_option=no
7247 fi
7248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7249 fi
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7251 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7252 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7253 CFLAGS="$xorg_testset_save_CFLAGS"
7254 fi
7255
7256 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7257 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7258 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7259 fi
7260 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7262 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7263 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7264 $as_echo_n "(cached) " >&6
7265 else
7266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7267 /* end confdefs.h. */
7268 int i;
7269 _ACEOF
7270 if ac_fn_c_try_compile "$LINENO"; then :
7271 xorg_cv_cc_flag_unused_command_line_argument=yes
7272 else
7273 xorg_cv_cc_flag_unused_command_line_argument=no
7274 fi
7275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7276 fi
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7278 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7279 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7280 CFLAGS="$xorg_testset_save_CFLAGS"
7281 fi
7282
7283 found="no"
7284
7285 if test $found = "no" ; then
7286 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7287 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7288 fi
7289
7290 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7291 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7292 fi
7293
7294 CFLAGS="$CFLAGS -Werror=init-self"
7295
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7297 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7298 cacheid=xorg_cv_cc_flag__Werror_init_self
7299 if eval \${$cacheid+:} false; then :
7300 $as_echo_n "(cached) " >&6
7301 else
7302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7303 /* end confdefs.h. */
7304 int i;
7305 int
7306 main ()
7307 {
7308
7309 ;
7310 return 0;
7311 }
7312 _ACEOF
7313 if ac_fn_c_try_link "$LINENO"; then :
7314 eval $cacheid=yes
7315 else
7316 eval $cacheid=no
7317 fi
7318 rm -f core conftest.err conftest.$ac_objext \
7319 conftest$ac_exeext conftest.$ac_ext
7320 fi
7321
7322
7323 CFLAGS="$xorg_testset_save_CFLAGS"
7324
7325 eval supported=\$$cacheid
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7327 $as_echo "$supported" >&6; }
7328 if test "$supported" = "yes" ; then
7329 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7330 found="yes"
7331 fi
7332 fi
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348 xorg_testset_save_CFLAGS="$CFLAGS"
7349
7350 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7351 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7353 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7354 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7355 $as_echo_n "(cached) " >&6
7356 else
7357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7358 /* end confdefs.h. */
7359 int i;
7360 _ACEOF
7361 if ac_fn_c_try_compile "$LINENO"; then :
7362 xorg_cv_cc_flag_unknown_warning_option=yes
7363 else
7364 xorg_cv_cc_flag_unknown_warning_option=no
7365 fi
7366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7367 fi
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7369 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7370 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7371 CFLAGS="$xorg_testset_save_CFLAGS"
7372 fi
7373
7374 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7375 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7376 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7377 fi
7378 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7380 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7381 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7382 $as_echo_n "(cached) " >&6
7383 else
7384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7385 /* end confdefs.h. */
7386 int i;
7387 _ACEOF
7388 if ac_fn_c_try_compile "$LINENO"; then :
7389 xorg_cv_cc_flag_unused_command_line_argument=yes
7390 else
7391 xorg_cv_cc_flag_unused_command_line_argument=no
7392 fi
7393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7394 fi
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7396 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7397 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7398 CFLAGS="$xorg_testset_save_CFLAGS"
7399 fi
7400
7401 found="no"
7402
7403 if test $found = "no" ; then
7404 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7405 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7406 fi
7407
7408 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7409 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7410 fi
7411
7412 CFLAGS="$CFLAGS -Werror=main"
7413
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7415 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7416 cacheid=xorg_cv_cc_flag__Werror_main
7417 if eval \${$cacheid+:} false; then :
7418 $as_echo_n "(cached) " >&6
7419 else
7420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7421 /* end confdefs.h. */
7422 int i;
7423 int
7424 main ()
7425 {
7426
7427 ;
7428 return 0;
7429 }
7430 _ACEOF
7431 if ac_fn_c_try_link "$LINENO"; then :
7432 eval $cacheid=yes
7433 else
7434 eval $cacheid=no
7435 fi
7436 rm -f core conftest.err conftest.$ac_objext \
7437 conftest$ac_exeext conftest.$ac_ext
7438 fi
7439
7440
7441 CFLAGS="$xorg_testset_save_CFLAGS"
7442
7443 eval supported=\$$cacheid
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7445 $as_echo "$supported" >&6; }
7446 if test "$supported" = "yes" ; then
7447 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7448 found="yes"
7449 fi
7450 fi
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466 xorg_testset_save_CFLAGS="$CFLAGS"
7467
7468 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7469 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7471 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7472 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7473 $as_echo_n "(cached) " >&6
7474 else
7475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7476 /* end confdefs.h. */
7477 int i;
7478 _ACEOF
7479 if ac_fn_c_try_compile "$LINENO"; then :
7480 xorg_cv_cc_flag_unknown_warning_option=yes
7481 else
7482 xorg_cv_cc_flag_unknown_warning_option=no
7483 fi
7484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7485 fi
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7487 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7488 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7489 CFLAGS="$xorg_testset_save_CFLAGS"
7490 fi
7491
7492 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7493 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7494 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7495 fi
7496 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7498 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7499 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7500 $as_echo_n "(cached) " >&6
7501 else
7502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7503 /* end confdefs.h. */
7504 int i;
7505 _ACEOF
7506 if ac_fn_c_try_compile "$LINENO"; then :
7507 xorg_cv_cc_flag_unused_command_line_argument=yes
7508 else
7509 xorg_cv_cc_flag_unused_command_line_argument=no
7510 fi
7511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7512 fi
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7514 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7515 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7516 CFLAGS="$xorg_testset_save_CFLAGS"
7517 fi
7518
7519 found="no"
7520
7521 if test $found = "no" ; then
7522 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7523 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7524 fi
7525
7526 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7527 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7528 fi
7529
7530 CFLAGS="$CFLAGS -Werror=missing-braces"
7531
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7533 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7534 cacheid=xorg_cv_cc_flag__Werror_missing_braces
7535 if eval \${$cacheid+:} false; then :
7536 $as_echo_n "(cached) " >&6
7537 else
7538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7539 /* end confdefs.h. */
7540 int i;
7541 int
7542 main ()
7543 {
7544
7545 ;
7546 return 0;
7547 }
7548 _ACEOF
7549 if ac_fn_c_try_link "$LINENO"; then :
7550 eval $cacheid=yes
7551 else
7552 eval $cacheid=no
7553 fi
7554 rm -f core conftest.err conftest.$ac_objext \
7555 conftest$ac_exeext conftest.$ac_ext
7556 fi
7557
7558
7559 CFLAGS="$xorg_testset_save_CFLAGS"
7560
7561 eval supported=\$$cacheid
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7563 $as_echo "$supported" >&6; }
7564 if test "$supported" = "yes" ; then
7565 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7566 found="yes"
7567 fi
7568 fi
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584 xorg_testset_save_CFLAGS="$CFLAGS"
7585
7586 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7587 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7589 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7590 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7591 $as_echo_n "(cached) " >&6
7592 else
7593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7594 /* end confdefs.h. */
7595 int i;
7596 _ACEOF
7597 if ac_fn_c_try_compile "$LINENO"; then :
7598 xorg_cv_cc_flag_unknown_warning_option=yes
7599 else
7600 xorg_cv_cc_flag_unknown_warning_option=no
7601 fi
7602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7603 fi
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7605 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7606 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7607 CFLAGS="$xorg_testset_save_CFLAGS"
7608 fi
7609
7610 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7611 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7612 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7613 fi
7614 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7616 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7617 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7618 $as_echo_n "(cached) " >&6
7619 else
7620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7621 /* end confdefs.h. */
7622 int i;
7623 _ACEOF
7624 if ac_fn_c_try_compile "$LINENO"; then :
7625 xorg_cv_cc_flag_unused_command_line_argument=yes
7626 else
7627 xorg_cv_cc_flag_unused_command_line_argument=no
7628 fi
7629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7630 fi
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7632 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7633 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7634 CFLAGS="$xorg_testset_save_CFLAGS"
7635 fi
7636
7637 found="no"
7638
7639 if test $found = "no" ; then
7640 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7641 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7642 fi
7643
7644 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7645 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7646 fi
7647
7648 CFLAGS="$CFLAGS -Werror=sequence-point"
7649
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7651 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7652 cacheid=xorg_cv_cc_flag__Werror_sequence_point
7653 if eval \${$cacheid+:} false; then :
7654 $as_echo_n "(cached) " >&6
7655 else
7656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7657 /* end confdefs.h. */
7658 int i;
7659 int
7660 main ()
7661 {
7662
7663 ;
7664 return 0;
7665 }
7666 _ACEOF
7667 if ac_fn_c_try_link "$LINENO"; then :
7668 eval $cacheid=yes
7669 else
7670 eval $cacheid=no
7671 fi
7672 rm -f core conftest.err conftest.$ac_objext \
7673 conftest$ac_exeext conftest.$ac_ext
7674 fi
7675
7676
7677 CFLAGS="$xorg_testset_save_CFLAGS"
7678
7679 eval supported=\$$cacheid
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7681 $as_echo "$supported" >&6; }
7682 if test "$supported" = "yes" ; then
7683 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7684 found="yes"
7685 fi
7686 fi
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702 xorg_testset_save_CFLAGS="$CFLAGS"
7703
7704 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7705 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7707 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7708 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7709 $as_echo_n "(cached) " >&6
7710 else
7711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7712 /* end confdefs.h. */
7713 int i;
7714 _ACEOF
7715 if ac_fn_c_try_compile "$LINENO"; then :
7716 xorg_cv_cc_flag_unknown_warning_option=yes
7717 else
7718 xorg_cv_cc_flag_unknown_warning_option=no
7719 fi
7720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7721 fi
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7723 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7724 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7725 CFLAGS="$xorg_testset_save_CFLAGS"
7726 fi
7727
7728 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7729 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7730 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7731 fi
7732 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7734 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7735 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7736 $as_echo_n "(cached) " >&6
7737 else
7738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7739 /* end confdefs.h. */
7740 int i;
7741 _ACEOF
7742 if ac_fn_c_try_compile "$LINENO"; then :
7743 xorg_cv_cc_flag_unused_command_line_argument=yes
7744 else
7745 xorg_cv_cc_flag_unused_command_line_argument=no
7746 fi
7747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7748 fi
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7750 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7751 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7752 CFLAGS="$xorg_testset_save_CFLAGS"
7753 fi
7754
7755 found="no"
7756
7757 if test $found = "no" ; then
7758 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7759 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7760 fi
7761
7762 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7763 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7764 fi
7765
7766 CFLAGS="$CFLAGS -Werror=return-type"
7767
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7769 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7770 cacheid=xorg_cv_cc_flag__Werror_return_type
7771 if eval \${$cacheid+:} false; then :
7772 $as_echo_n "(cached) " >&6
7773 else
7774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7775 /* end confdefs.h. */
7776 int i;
7777 int
7778 main ()
7779 {
7780
7781 ;
7782 return 0;
7783 }
7784 _ACEOF
7785 if ac_fn_c_try_link "$LINENO"; then :
7786 eval $cacheid=yes
7787 else
7788 eval $cacheid=no
7789 fi
7790 rm -f core conftest.err conftest.$ac_objext \
7791 conftest$ac_exeext conftest.$ac_ext
7792 fi
7793
7794
7795 CFLAGS="$xorg_testset_save_CFLAGS"
7796
7797 eval supported=\$$cacheid
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7799 $as_echo "$supported" >&6; }
7800 if test "$supported" = "yes" ; then
7801 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7802 found="yes"
7803 fi
7804 fi
7805
7806 if test $found = "no" ; then
7807 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7808 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7809 fi
7810
7811 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7812 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7813 fi
7814
7815 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7816
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7818 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7819 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7820 if eval \${$cacheid+:} false; then :
7821 $as_echo_n "(cached) " >&6
7822 else
7823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7824 /* end confdefs.h. */
7825 int i;
7826 int
7827 main ()
7828 {
7829
7830 ;
7831 return 0;
7832 }
7833 _ACEOF
7834 if ac_fn_c_try_link "$LINENO"; then :
7835 eval $cacheid=yes
7836 else
7837 eval $cacheid=no
7838 fi
7839 rm -f core conftest.err conftest.$ac_objext \
7840 conftest$ac_exeext conftest.$ac_ext
7841 fi
7842
7843
7844 CFLAGS="$xorg_testset_save_CFLAGS"
7845
7846 eval supported=\$$cacheid
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7848 $as_echo "$supported" >&6; }
7849 if test "$supported" = "yes" ; then
7850 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7851 found="yes"
7852 fi
7853 fi
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869 xorg_testset_save_CFLAGS="$CFLAGS"
7870
7871 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7872 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7874 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7875 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7876 $as_echo_n "(cached) " >&6
7877 else
7878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7879 /* end confdefs.h. */
7880 int i;
7881 _ACEOF
7882 if ac_fn_c_try_compile "$LINENO"; then :
7883 xorg_cv_cc_flag_unknown_warning_option=yes
7884 else
7885 xorg_cv_cc_flag_unknown_warning_option=no
7886 fi
7887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7888 fi
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7890 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7891 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7892 CFLAGS="$xorg_testset_save_CFLAGS"
7893 fi
7894
7895 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7896 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7897 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7898 fi
7899 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7901 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7902 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7903 $as_echo_n "(cached) " >&6
7904 else
7905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7906 /* end confdefs.h. */
7907 int i;
7908 _ACEOF
7909 if ac_fn_c_try_compile "$LINENO"; then :
7910 xorg_cv_cc_flag_unused_command_line_argument=yes
7911 else
7912 xorg_cv_cc_flag_unused_command_line_argument=no
7913 fi
7914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7915 fi
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7917 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7918 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7919 CFLAGS="$xorg_testset_save_CFLAGS"
7920 fi
7921
7922 found="no"
7923
7924 if test $found = "no" ; then
7925 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7926 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7927 fi
7928
7929 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7930 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7931 fi
7932
7933 CFLAGS="$CFLAGS -Werror=trigraphs"
7934
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7936 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7937 cacheid=xorg_cv_cc_flag__Werror_trigraphs
7938 if eval \${$cacheid+:} false; then :
7939 $as_echo_n "(cached) " >&6
7940 else
7941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7942 /* end confdefs.h. */
7943 int i;
7944 int
7945 main ()
7946 {
7947
7948 ;
7949 return 0;
7950 }
7951 _ACEOF
7952 if ac_fn_c_try_link "$LINENO"; then :
7953 eval $cacheid=yes
7954 else
7955 eval $cacheid=no
7956 fi
7957 rm -f core conftest.err conftest.$ac_objext \
7958 conftest$ac_exeext conftest.$ac_ext
7959 fi
7960
7961
7962 CFLAGS="$xorg_testset_save_CFLAGS"
7963
7964 eval supported=\$$cacheid
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7966 $as_echo "$supported" >&6; }
7967 if test "$supported" = "yes" ; then
7968 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7969 found="yes"
7970 fi
7971 fi
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987 xorg_testset_save_CFLAGS="$CFLAGS"
7988
7989 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7990 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7992 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7993 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7994 $as_echo_n "(cached) " >&6
7995 else
7996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7997 /* end confdefs.h. */
7998 int i;
7999 _ACEOF
8000 if ac_fn_c_try_compile "$LINENO"; then :
8001 xorg_cv_cc_flag_unknown_warning_option=yes
8002 else
8003 xorg_cv_cc_flag_unknown_warning_option=no
8004 fi
8005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8006 fi
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8008 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8009 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8010 CFLAGS="$xorg_testset_save_CFLAGS"
8011 fi
8012
8013 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8014 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8015 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8016 fi
8017 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8019 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8020 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8021 $as_echo_n "(cached) " >&6
8022 else
8023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8024 /* end confdefs.h. */
8025 int i;
8026 _ACEOF
8027 if ac_fn_c_try_compile "$LINENO"; then :
8028 xorg_cv_cc_flag_unused_command_line_argument=yes
8029 else
8030 xorg_cv_cc_flag_unused_command_line_argument=no
8031 fi
8032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8033 fi
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8035 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8036 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8037 CFLAGS="$xorg_testset_save_CFLAGS"
8038 fi
8039
8040 found="no"
8041
8042 if test $found = "no" ; then
8043 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8044 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8045 fi
8046
8047 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8048 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8049 fi
8050
8051 CFLAGS="$CFLAGS -Werror=array-bounds"
8052
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8054 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
8055 cacheid=xorg_cv_cc_flag__Werror_array_bounds
8056 if eval \${$cacheid+:} false; then :
8057 $as_echo_n "(cached) " >&6
8058 else
8059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8060 /* end confdefs.h. */
8061 int i;
8062 int
8063 main ()
8064 {
8065
8066 ;
8067 return 0;
8068 }
8069 _ACEOF
8070 if ac_fn_c_try_link "$LINENO"; then :
8071 eval $cacheid=yes
8072 else
8073 eval $cacheid=no
8074 fi
8075 rm -f core conftest.err conftest.$ac_objext \
8076 conftest$ac_exeext conftest.$ac_ext
8077 fi
8078
8079
8080 CFLAGS="$xorg_testset_save_CFLAGS"
8081
8082 eval supported=\$$cacheid
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8084 $as_echo "$supported" >&6; }
8085 if test "$supported" = "yes" ; then
8086 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8087 found="yes"
8088 fi
8089 fi
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105 xorg_testset_save_CFLAGS="$CFLAGS"
8106
8107 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8108 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8110 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8111 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8112 $as_echo_n "(cached) " >&6
8113 else
8114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8115 /* end confdefs.h. */
8116 int i;
8117 _ACEOF
8118 if ac_fn_c_try_compile "$LINENO"; then :
8119 xorg_cv_cc_flag_unknown_warning_option=yes
8120 else
8121 xorg_cv_cc_flag_unknown_warning_option=no
8122 fi
8123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8124 fi
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8126 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8127 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8128 CFLAGS="$xorg_testset_save_CFLAGS"
8129 fi
8130
8131 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8132 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8133 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8134 fi
8135 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8137 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8138 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8139 $as_echo_n "(cached) " >&6
8140 else
8141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8142 /* end confdefs.h. */
8143 int i;
8144 _ACEOF
8145 if ac_fn_c_try_compile "$LINENO"; then :
8146 xorg_cv_cc_flag_unused_command_line_argument=yes
8147 else
8148 xorg_cv_cc_flag_unused_command_line_argument=no
8149 fi
8150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8151 fi
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8153 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8154 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8155 CFLAGS="$xorg_testset_save_CFLAGS"
8156 fi
8157
8158 found="no"
8159
8160 if test $found = "no" ; then
8161 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8162 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8163 fi
8164
8165 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8166 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8167 fi
8168
8169 CFLAGS="$CFLAGS -Werror=write-strings"
8170
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8172 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8173 cacheid=xorg_cv_cc_flag__Werror_write_strings
8174 if eval \${$cacheid+:} false; then :
8175 $as_echo_n "(cached) " >&6
8176 else
8177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8178 /* end confdefs.h. */
8179 int i;
8180 int
8181 main ()
8182 {
8183
8184 ;
8185 return 0;
8186 }
8187 _ACEOF
8188 if ac_fn_c_try_link "$LINENO"; then :
8189 eval $cacheid=yes
8190 else
8191 eval $cacheid=no
8192 fi
8193 rm -f core conftest.err conftest.$ac_objext \
8194 conftest$ac_exeext conftest.$ac_ext
8195 fi
8196
8197
8198 CFLAGS="$xorg_testset_save_CFLAGS"
8199
8200 eval supported=\$$cacheid
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8202 $as_echo "$supported" >&6; }
8203 if test "$supported" = "yes" ; then
8204 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8205 found="yes"
8206 fi
8207 fi
8208
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223 xorg_testset_save_CFLAGS="$CFLAGS"
8224
8225 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8226 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8228 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8229 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8230 $as_echo_n "(cached) " >&6
8231 else
8232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8233 /* end confdefs.h. */
8234 int i;
8235 _ACEOF
8236 if ac_fn_c_try_compile "$LINENO"; then :
8237 xorg_cv_cc_flag_unknown_warning_option=yes
8238 else
8239 xorg_cv_cc_flag_unknown_warning_option=no
8240 fi
8241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8242 fi
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8244 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8245 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8246 CFLAGS="$xorg_testset_save_CFLAGS"
8247 fi
8248
8249 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8250 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8251 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8252 fi
8253 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8255 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8256 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8257 $as_echo_n "(cached) " >&6
8258 else
8259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8260 /* end confdefs.h. */
8261 int i;
8262 _ACEOF
8263 if ac_fn_c_try_compile "$LINENO"; then :
8264 xorg_cv_cc_flag_unused_command_line_argument=yes
8265 else
8266 xorg_cv_cc_flag_unused_command_line_argument=no
8267 fi
8268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8269 fi
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8271 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8272 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8273 CFLAGS="$xorg_testset_save_CFLAGS"
8274 fi
8275
8276 found="no"
8277
8278 if test $found = "no" ; then
8279 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8280 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8281 fi
8282
8283 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8284 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8285 fi
8286
8287 CFLAGS="$CFLAGS -Werror=address"
8288
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8290 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8291 cacheid=xorg_cv_cc_flag__Werror_address
8292 if eval \${$cacheid+:} false; then :
8293 $as_echo_n "(cached) " >&6
8294 else
8295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8296 /* end confdefs.h. */
8297 int i;
8298 int
8299 main ()
8300 {
8301
8302 ;
8303 return 0;
8304 }
8305 _ACEOF
8306 if ac_fn_c_try_link "$LINENO"; then :
8307 eval $cacheid=yes
8308 else
8309 eval $cacheid=no
8310 fi
8311 rm -f core conftest.err conftest.$ac_objext \
8312 conftest$ac_exeext conftest.$ac_ext
8313 fi
8314
8315
8316 CFLAGS="$xorg_testset_save_CFLAGS"
8317
8318 eval supported=\$$cacheid
8319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8320 $as_echo "$supported" >&6; }
8321 if test "$supported" = "yes" ; then
8322 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8323 found="yes"
8324 fi
8325 fi
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341 xorg_testset_save_CFLAGS="$CFLAGS"
8342
8343 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8344 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8346 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8347 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8348 $as_echo_n "(cached) " >&6
8349 else
8350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8351 /* end confdefs.h. */
8352 int i;
8353 _ACEOF
8354 if ac_fn_c_try_compile "$LINENO"; then :
8355 xorg_cv_cc_flag_unknown_warning_option=yes
8356 else
8357 xorg_cv_cc_flag_unknown_warning_option=no
8358 fi
8359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8360 fi
8361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8362 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8363 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8364 CFLAGS="$xorg_testset_save_CFLAGS"
8365 fi
8366
8367 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8368 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8369 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8370 fi
8371 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8373 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8374 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8375 $as_echo_n "(cached) " >&6
8376 else
8377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8378 /* end confdefs.h. */
8379 int i;
8380 _ACEOF
8381 if ac_fn_c_try_compile "$LINENO"; then :
8382 xorg_cv_cc_flag_unused_command_line_argument=yes
8383 else
8384 xorg_cv_cc_flag_unused_command_line_argument=no
8385 fi
8386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8387 fi
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8389 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8390 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8391 CFLAGS="$xorg_testset_save_CFLAGS"
8392 fi
8393
8394 found="no"
8395
8396 if test $found = "no" ; then
8397 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8398 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8399 fi
8400
8401 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8402 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8403 fi
8404
8405 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8406
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8408 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8409 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8410 if eval \${$cacheid+:} false; then :
8411 $as_echo_n "(cached) " >&6
8412 else
8413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8414 /* end confdefs.h. */
8415 int i;
8416 int
8417 main ()
8418 {
8419
8420 ;
8421 return 0;
8422 }
8423 _ACEOF
8424 if ac_fn_c_try_link "$LINENO"; then :
8425 eval $cacheid=yes
8426 else
8427 eval $cacheid=no
8428 fi
8429 rm -f core conftest.err conftest.$ac_objext \
8430 conftest$ac_exeext conftest.$ac_ext
8431 fi
8432
8433
8434 CFLAGS="$xorg_testset_save_CFLAGS"
8435
8436 eval supported=\$$cacheid
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8438 $as_echo "$supported" >&6; }
8439 if test "$supported" = "yes" ; then
8440 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8441 found="yes"
8442 fi
8443 fi
8444
8445 if test $found = "no" ; then
8446 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8447 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8448 fi
8449
8450 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8451 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8452 fi
8453
8454 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8455
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8457 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8458 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8459 if eval \${$cacheid+:} false; then :
8460 $as_echo_n "(cached) " >&6
8461 else
8462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8463 /* end confdefs.h. */
8464 int i;
8465 int
8466 main ()
8467 {
8468
8469 ;
8470 return 0;
8471 }
8472 _ACEOF
8473 if ac_fn_c_try_link "$LINENO"; then :
8474 eval $cacheid=yes
8475 else
8476 eval $cacheid=no
8477 fi
8478 rm -f core conftest.err conftest.$ac_objext \
8479 conftest$ac_exeext conftest.$ac_ext
8480 fi
8481
8482
8483 CFLAGS="$xorg_testset_save_CFLAGS"
8484
8485 eval supported=\$$cacheid
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8487 $as_echo "$supported" >&6; }
8488 if test "$supported" = "yes" ; then
8489 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8490 found="yes"
8491 fi
8492 fi
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508 xorg_testset_save_CFLAGS="$CFLAGS"
8509
8510 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8511 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8513 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8514 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8515 $as_echo_n "(cached) " >&6
8516 else
8517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8518 /* end confdefs.h. */
8519 int i;
8520 _ACEOF
8521 if ac_fn_c_try_compile "$LINENO"; then :
8522 xorg_cv_cc_flag_unknown_warning_option=yes
8523 else
8524 xorg_cv_cc_flag_unknown_warning_option=no
8525 fi
8526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8527 fi
8528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8529 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8530 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8531 CFLAGS="$xorg_testset_save_CFLAGS"
8532 fi
8533
8534 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8535 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8536 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8537 fi
8538 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8540 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8541 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8542 $as_echo_n "(cached) " >&6
8543 else
8544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8545 /* end confdefs.h. */
8546 int i;
8547 _ACEOF
8548 if ac_fn_c_try_compile "$LINENO"; then :
8549 xorg_cv_cc_flag_unused_command_line_argument=yes
8550 else
8551 xorg_cv_cc_flag_unused_command_line_argument=no
8552 fi
8553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8554 fi
8555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8556 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8557 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8558 CFLAGS="$xorg_testset_save_CFLAGS"
8559 fi
8560
8561 found="no"
8562
8563 if test $found = "no" ; then
8564 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8565 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8566 fi
8567
8568 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8569 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8570 fi
8571
8572 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8573
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8575 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8576 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8577 if eval \${$cacheid+:} false; then :
8578 $as_echo_n "(cached) " >&6
8579 else
8580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8581 /* end confdefs.h. */
8582 int i;
8583 int
8584 main ()
8585 {
8586
8587 ;
8588 return 0;
8589 }
8590 _ACEOF
8591 if ac_fn_c_try_link "$LINENO"; then :
8592 eval $cacheid=yes
8593 else
8594 eval $cacheid=no
8595 fi
8596 rm -f core conftest.err conftest.$ac_objext \
8597 conftest$ac_exeext conftest.$ac_ext
8598 fi
8599
8600
8601 CFLAGS="$xorg_testset_save_CFLAGS"
8602
8603 eval supported=\$$cacheid
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8605 $as_echo "$supported" >&6; }
8606 if test "$supported" = "yes" ; then
8607 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8608 found="yes"
8609 fi
8610 fi
8611
8612 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8613 else
8614 { $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
8615 $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;}
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629 xorg_testset_save_CFLAGS="$CFLAGS"
8630
8631 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8632 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8634 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8635 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8636 $as_echo_n "(cached) " >&6
8637 else
8638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8639 /* end confdefs.h. */
8640 int i;
8641 _ACEOF
8642 if ac_fn_c_try_compile "$LINENO"; then :
8643 xorg_cv_cc_flag_unknown_warning_option=yes
8644 else
8645 xorg_cv_cc_flag_unknown_warning_option=no
8646 fi
8647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8648 fi
8649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8650 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8651 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8652 CFLAGS="$xorg_testset_save_CFLAGS"
8653 fi
8654
8655 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8656 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8657 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8658 fi
8659 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8661 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8662 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8663 $as_echo_n "(cached) " >&6
8664 else
8665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8666 /* end confdefs.h. */
8667 int i;
8668 _ACEOF
8669 if ac_fn_c_try_compile "$LINENO"; then :
8670 xorg_cv_cc_flag_unused_command_line_argument=yes
8671 else
8672 xorg_cv_cc_flag_unused_command_line_argument=no
8673 fi
8674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8675 fi
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8677 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8678 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8679 CFLAGS="$xorg_testset_save_CFLAGS"
8680 fi
8681
8682 found="no"
8683
8684 if test $found = "no" ; then
8685 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8686 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8687 fi
8688
8689 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8690 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8691 fi
8692
8693 CFLAGS="$CFLAGS -Wimplicit"
8694
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8696 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8697 cacheid=xorg_cv_cc_flag__Wimplicit
8698 if eval \${$cacheid+:} false; then :
8699 $as_echo_n "(cached) " >&6
8700 else
8701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8702 /* end confdefs.h. */
8703 int i;
8704 int
8705 main ()
8706 {
8707
8708 ;
8709 return 0;
8710 }
8711 _ACEOF
8712 if ac_fn_c_try_link "$LINENO"; then :
8713 eval $cacheid=yes
8714 else
8715 eval $cacheid=no
8716 fi
8717 rm -f core conftest.err conftest.$ac_objext \
8718 conftest$ac_exeext conftest.$ac_ext
8719 fi
8720
8721
8722 CFLAGS="$xorg_testset_save_CFLAGS"
8723
8724 eval supported=\$$cacheid
8725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8726 $as_echo "$supported" >&6; }
8727 if test "$supported" = "yes" ; then
8728 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8729 found="yes"
8730 fi
8731 fi
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747 xorg_testset_save_CFLAGS="$CFLAGS"
8748
8749 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8750 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8752 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8753 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8754 $as_echo_n "(cached) " >&6
8755 else
8756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8757 /* end confdefs.h. */
8758 int i;
8759 _ACEOF
8760 if ac_fn_c_try_compile "$LINENO"; then :
8761 xorg_cv_cc_flag_unknown_warning_option=yes
8762 else
8763 xorg_cv_cc_flag_unknown_warning_option=no
8764 fi
8765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8766 fi
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8768 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8769 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8770 CFLAGS="$xorg_testset_save_CFLAGS"
8771 fi
8772
8773 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8774 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8775 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8776 fi
8777 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8779 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8780 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8781 $as_echo_n "(cached) " >&6
8782 else
8783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8784 /* end confdefs.h. */
8785 int i;
8786 _ACEOF
8787 if ac_fn_c_try_compile "$LINENO"; then :
8788 xorg_cv_cc_flag_unused_command_line_argument=yes
8789 else
8790 xorg_cv_cc_flag_unused_command_line_argument=no
8791 fi
8792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8793 fi
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8795 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8796 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8797 CFLAGS="$xorg_testset_save_CFLAGS"
8798 fi
8799
8800 found="no"
8801
8802 if test $found = "no" ; then
8803 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8804 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8805 fi
8806
8807 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8808 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8809 fi
8810
8811 CFLAGS="$CFLAGS -Wnonnull"
8812
8813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8814 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8815 cacheid=xorg_cv_cc_flag__Wnonnull
8816 if eval \${$cacheid+:} false; then :
8817 $as_echo_n "(cached) " >&6
8818 else
8819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8820 /* end confdefs.h. */
8821 int i;
8822 int
8823 main ()
8824 {
8825
8826 ;
8827 return 0;
8828 }
8829 _ACEOF
8830 if ac_fn_c_try_link "$LINENO"; then :
8831 eval $cacheid=yes
8832 else
8833 eval $cacheid=no
8834 fi
8835 rm -f core conftest.err conftest.$ac_objext \
8836 conftest$ac_exeext conftest.$ac_ext
8837 fi
8838
8839
8840 CFLAGS="$xorg_testset_save_CFLAGS"
8841
8842 eval supported=\$$cacheid
8843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8844 $as_echo "$supported" >&6; }
8845 if test "$supported" = "yes" ; then
8846 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8847 found="yes"
8848 fi
8849 fi
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865 xorg_testset_save_CFLAGS="$CFLAGS"
8866
8867 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8868 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8870 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8871 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8872 $as_echo_n "(cached) " >&6
8873 else
8874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8875 /* end confdefs.h. */
8876 int i;
8877 _ACEOF
8878 if ac_fn_c_try_compile "$LINENO"; then :
8879 xorg_cv_cc_flag_unknown_warning_option=yes
8880 else
8881 xorg_cv_cc_flag_unknown_warning_option=no
8882 fi
8883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8884 fi
8885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8886 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8887 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8888 CFLAGS="$xorg_testset_save_CFLAGS"
8889 fi
8890
8891 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8892 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8893 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8894 fi
8895 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8897 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8898 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8899 $as_echo_n "(cached) " >&6
8900 else
8901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8902 /* end confdefs.h. */
8903 int i;
8904 _ACEOF
8905 if ac_fn_c_try_compile "$LINENO"; then :
8906 xorg_cv_cc_flag_unused_command_line_argument=yes
8907 else
8908 xorg_cv_cc_flag_unused_command_line_argument=no
8909 fi
8910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8911 fi
8912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8913 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8914 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8915 CFLAGS="$xorg_testset_save_CFLAGS"
8916 fi
8917
8918 found="no"
8919
8920 if test $found = "no" ; then
8921 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8922 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8923 fi
8924
8925 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8926 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8927 fi
8928
8929 CFLAGS="$CFLAGS -Winit-self"
8930
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8932 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8933 cacheid=xorg_cv_cc_flag__Winit_self
8934 if eval \${$cacheid+:} false; then :
8935 $as_echo_n "(cached) " >&6
8936 else
8937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8938 /* end confdefs.h. */
8939 int i;
8940 int
8941 main ()
8942 {
8943
8944 ;
8945 return 0;
8946 }
8947 _ACEOF
8948 if ac_fn_c_try_link "$LINENO"; then :
8949 eval $cacheid=yes
8950 else
8951 eval $cacheid=no
8952 fi
8953 rm -f core conftest.err conftest.$ac_objext \
8954 conftest$ac_exeext conftest.$ac_ext
8955 fi
8956
8957
8958 CFLAGS="$xorg_testset_save_CFLAGS"
8959
8960 eval supported=\$$cacheid
8961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8962 $as_echo "$supported" >&6; }
8963 if test "$supported" = "yes" ; then
8964 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8965 found="yes"
8966 fi
8967 fi
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983 xorg_testset_save_CFLAGS="$CFLAGS"
8984
8985 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8986 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8988 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8989 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8990 $as_echo_n "(cached) " >&6
8991 else
8992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8993 /* end confdefs.h. */
8994 int i;
8995 _ACEOF
8996 if ac_fn_c_try_compile "$LINENO"; then :
8997 xorg_cv_cc_flag_unknown_warning_option=yes
8998 else
8999 xorg_cv_cc_flag_unknown_warning_option=no
9000 fi
9001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9002 fi
9003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9004 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9005 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9006 CFLAGS="$xorg_testset_save_CFLAGS"
9007 fi
9008
9009 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9010 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9011 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9012 fi
9013 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9015 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9016 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9017 $as_echo_n "(cached) " >&6
9018 else
9019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9020 /* end confdefs.h. */
9021 int i;
9022 _ACEOF
9023 if ac_fn_c_try_compile "$LINENO"; then :
9024 xorg_cv_cc_flag_unused_command_line_argument=yes
9025 else
9026 xorg_cv_cc_flag_unused_command_line_argument=no
9027 fi
9028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9029 fi
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9031 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9032 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9033 CFLAGS="$xorg_testset_save_CFLAGS"
9034 fi
9035
9036 found="no"
9037
9038 if test $found = "no" ; then
9039 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9040 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9041 fi
9042
9043 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9044 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9045 fi
9046
9047 CFLAGS="$CFLAGS -Wmain"
9048
9049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9050 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
9051 cacheid=xorg_cv_cc_flag__Wmain
9052 if eval \${$cacheid+:} false; then :
9053 $as_echo_n "(cached) " >&6
9054 else
9055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9056 /* end confdefs.h. */
9057 int i;
9058 int
9059 main ()
9060 {
9061
9062 ;
9063 return 0;
9064 }
9065 _ACEOF
9066 if ac_fn_c_try_link "$LINENO"; then :
9067 eval $cacheid=yes
9068 else
9069 eval $cacheid=no
9070 fi
9071 rm -f core conftest.err conftest.$ac_objext \
9072 conftest$ac_exeext conftest.$ac_ext
9073 fi
9074
9075
9076 CFLAGS="$xorg_testset_save_CFLAGS"
9077
9078 eval supported=\$$cacheid
9079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9080 $as_echo "$supported" >&6; }
9081 if test "$supported" = "yes" ; then
9082 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9083 found="yes"
9084 fi
9085 fi
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101 xorg_testset_save_CFLAGS="$CFLAGS"
9102
9103 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9104 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9106 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9107 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9108 $as_echo_n "(cached) " >&6
9109 else
9110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9111 /* end confdefs.h. */
9112 int i;
9113 _ACEOF
9114 if ac_fn_c_try_compile "$LINENO"; then :
9115 xorg_cv_cc_flag_unknown_warning_option=yes
9116 else
9117 xorg_cv_cc_flag_unknown_warning_option=no
9118 fi
9119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9120 fi
9121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9122 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9123 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9124 CFLAGS="$xorg_testset_save_CFLAGS"
9125 fi
9126
9127 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9128 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9129 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9130 fi
9131 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9133 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9134 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9135 $as_echo_n "(cached) " >&6
9136 else
9137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9138 /* end confdefs.h. */
9139 int i;
9140 _ACEOF
9141 if ac_fn_c_try_compile "$LINENO"; then :
9142 xorg_cv_cc_flag_unused_command_line_argument=yes
9143 else
9144 xorg_cv_cc_flag_unused_command_line_argument=no
9145 fi
9146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9147 fi
9148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9149 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9150 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9151 CFLAGS="$xorg_testset_save_CFLAGS"
9152 fi
9153
9154 found="no"
9155
9156 if test $found = "no" ; then
9157 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9158 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9159 fi
9160
9161 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9162 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9163 fi
9164
9165 CFLAGS="$CFLAGS -Wmissing-braces"
9166
9167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9168 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9169 cacheid=xorg_cv_cc_flag__Wmissing_braces
9170 if eval \${$cacheid+:} false; then :
9171 $as_echo_n "(cached) " >&6
9172 else
9173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9174 /* end confdefs.h. */
9175 int i;
9176 int
9177 main ()
9178 {
9179
9180 ;
9181 return 0;
9182 }
9183 _ACEOF
9184 if ac_fn_c_try_link "$LINENO"; then :
9185 eval $cacheid=yes
9186 else
9187 eval $cacheid=no
9188 fi
9189 rm -f core conftest.err conftest.$ac_objext \
9190 conftest$ac_exeext conftest.$ac_ext
9191 fi
9192
9193
9194 CFLAGS="$xorg_testset_save_CFLAGS"
9195
9196 eval supported=\$$cacheid
9197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9198 $as_echo "$supported" >&6; }
9199 if test "$supported" = "yes" ; then
9200 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9201 found="yes"
9202 fi
9203 fi
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219 xorg_testset_save_CFLAGS="$CFLAGS"
9220
9221 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9222 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9224 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9225 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9226 $as_echo_n "(cached) " >&6
9227 else
9228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9229 /* end confdefs.h. */
9230 int i;
9231 _ACEOF
9232 if ac_fn_c_try_compile "$LINENO"; then :
9233 xorg_cv_cc_flag_unknown_warning_option=yes
9234 else
9235 xorg_cv_cc_flag_unknown_warning_option=no
9236 fi
9237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9238 fi
9239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9240 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9241 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9242 CFLAGS="$xorg_testset_save_CFLAGS"
9243 fi
9244
9245 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9246 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9247 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9248 fi
9249 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9251 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9252 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9253 $as_echo_n "(cached) " >&6
9254 else
9255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9256 /* end confdefs.h. */
9257 int i;
9258 _ACEOF
9259 if ac_fn_c_try_compile "$LINENO"; then :
9260 xorg_cv_cc_flag_unused_command_line_argument=yes
9261 else
9262 xorg_cv_cc_flag_unused_command_line_argument=no
9263 fi
9264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9265 fi
9266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9267 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9268 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9269 CFLAGS="$xorg_testset_save_CFLAGS"
9270 fi
9271
9272 found="no"
9273
9274 if test $found = "no" ; then
9275 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9276 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9277 fi
9278
9279 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9280 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9281 fi
9282
9283 CFLAGS="$CFLAGS -Wsequence-point"
9284
9285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9286 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9287 cacheid=xorg_cv_cc_flag__Wsequence_point
9288 if eval \${$cacheid+:} false; then :
9289 $as_echo_n "(cached) " >&6
9290 else
9291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9292 /* end confdefs.h. */
9293 int i;
9294 int
9295 main ()
9296 {
9297
9298 ;
9299 return 0;
9300 }
9301 _ACEOF
9302 if ac_fn_c_try_link "$LINENO"; then :
9303 eval $cacheid=yes
9304 else
9305 eval $cacheid=no
9306 fi
9307 rm -f core conftest.err conftest.$ac_objext \
9308 conftest$ac_exeext conftest.$ac_ext
9309 fi
9310
9311
9312 CFLAGS="$xorg_testset_save_CFLAGS"
9313
9314 eval supported=\$$cacheid
9315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9316 $as_echo "$supported" >&6; }
9317 if test "$supported" = "yes" ; then
9318 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9319 found="yes"
9320 fi
9321 fi
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337 xorg_testset_save_CFLAGS="$CFLAGS"
9338
9339 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9340 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9342 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9343 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9344 $as_echo_n "(cached) " >&6
9345 else
9346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9347 /* end confdefs.h. */
9348 int i;
9349 _ACEOF
9350 if ac_fn_c_try_compile "$LINENO"; then :
9351 xorg_cv_cc_flag_unknown_warning_option=yes
9352 else
9353 xorg_cv_cc_flag_unknown_warning_option=no
9354 fi
9355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9356 fi
9357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9358 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9359 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9360 CFLAGS="$xorg_testset_save_CFLAGS"
9361 fi
9362
9363 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9364 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9365 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9366 fi
9367 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9369 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9370 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9371 $as_echo_n "(cached) " >&6
9372 else
9373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9374 /* end confdefs.h. */
9375 int i;
9376 _ACEOF
9377 if ac_fn_c_try_compile "$LINENO"; then :
9378 xorg_cv_cc_flag_unused_command_line_argument=yes
9379 else
9380 xorg_cv_cc_flag_unused_command_line_argument=no
9381 fi
9382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9383 fi
9384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9385 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9386 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9387 CFLAGS="$xorg_testset_save_CFLAGS"
9388 fi
9389
9390 found="no"
9391
9392 if test $found = "no" ; then
9393 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9394 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9395 fi
9396
9397 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9398 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9399 fi
9400
9401 CFLAGS="$CFLAGS -Wreturn-type"
9402
9403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9404 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9405 cacheid=xorg_cv_cc_flag__Wreturn_type
9406 if eval \${$cacheid+:} false; then :
9407 $as_echo_n "(cached) " >&6
9408 else
9409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9410 /* end confdefs.h. */
9411 int i;
9412 int
9413 main ()
9414 {
9415
9416 ;
9417 return 0;
9418 }
9419 _ACEOF
9420 if ac_fn_c_try_link "$LINENO"; then :
9421 eval $cacheid=yes
9422 else
9423 eval $cacheid=no
9424 fi
9425 rm -f core conftest.err conftest.$ac_objext \
9426 conftest$ac_exeext conftest.$ac_ext
9427 fi
9428
9429
9430 CFLAGS="$xorg_testset_save_CFLAGS"
9431
9432 eval supported=\$$cacheid
9433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9434 $as_echo "$supported" >&6; }
9435 if test "$supported" = "yes" ; then
9436 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9437 found="yes"
9438 fi
9439 fi
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455 xorg_testset_save_CFLAGS="$CFLAGS"
9456
9457 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9458 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9460 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9461 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9462 $as_echo_n "(cached) " >&6
9463 else
9464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9465 /* end confdefs.h. */
9466 int i;
9467 _ACEOF
9468 if ac_fn_c_try_compile "$LINENO"; then :
9469 xorg_cv_cc_flag_unknown_warning_option=yes
9470 else
9471 xorg_cv_cc_flag_unknown_warning_option=no
9472 fi
9473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9474 fi
9475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9476 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9477 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9478 CFLAGS="$xorg_testset_save_CFLAGS"
9479 fi
9480
9481 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9482 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9483 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9484 fi
9485 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9487 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9488 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9489 $as_echo_n "(cached) " >&6
9490 else
9491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9492 /* end confdefs.h. */
9493 int i;
9494 _ACEOF
9495 if ac_fn_c_try_compile "$LINENO"; then :
9496 xorg_cv_cc_flag_unused_command_line_argument=yes
9497 else
9498 xorg_cv_cc_flag_unused_command_line_argument=no
9499 fi
9500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9501 fi
9502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9503 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9504 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9505 CFLAGS="$xorg_testset_save_CFLAGS"
9506 fi
9507
9508 found="no"
9509
9510 if test $found = "no" ; then
9511 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9512 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9513 fi
9514
9515 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9516 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9517 fi
9518
9519 CFLAGS="$CFLAGS -Wtrigraphs"
9520
9521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9522 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9523 cacheid=xorg_cv_cc_flag__Wtrigraphs
9524 if eval \${$cacheid+:} false; then :
9525 $as_echo_n "(cached) " >&6
9526 else
9527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9528 /* end confdefs.h. */
9529 int i;
9530 int
9531 main ()
9532 {
9533
9534 ;
9535 return 0;
9536 }
9537 _ACEOF
9538 if ac_fn_c_try_link "$LINENO"; then :
9539 eval $cacheid=yes
9540 else
9541 eval $cacheid=no
9542 fi
9543 rm -f core conftest.err conftest.$ac_objext \
9544 conftest$ac_exeext conftest.$ac_ext
9545 fi
9546
9547
9548 CFLAGS="$xorg_testset_save_CFLAGS"
9549
9550 eval supported=\$$cacheid
9551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9552 $as_echo "$supported" >&6; }
9553 if test "$supported" = "yes" ; then
9554 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9555 found="yes"
9556 fi
9557 fi
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573 xorg_testset_save_CFLAGS="$CFLAGS"
9574
9575 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9576 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9578 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9579 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9580 $as_echo_n "(cached) " >&6
9581 else
9582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9583 /* end confdefs.h. */
9584 int i;
9585 _ACEOF
9586 if ac_fn_c_try_compile "$LINENO"; then :
9587 xorg_cv_cc_flag_unknown_warning_option=yes
9588 else
9589 xorg_cv_cc_flag_unknown_warning_option=no
9590 fi
9591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9592 fi
9593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9594 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9595 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9596 CFLAGS="$xorg_testset_save_CFLAGS"
9597 fi
9598
9599 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9600 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9601 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9602 fi
9603 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9605 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9606 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9607 $as_echo_n "(cached) " >&6
9608 else
9609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9610 /* end confdefs.h. */
9611 int i;
9612 _ACEOF
9613 if ac_fn_c_try_compile "$LINENO"; then :
9614 xorg_cv_cc_flag_unused_command_line_argument=yes
9615 else
9616 xorg_cv_cc_flag_unused_command_line_argument=no
9617 fi
9618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9619 fi
9620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9621 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9622 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9623 CFLAGS="$xorg_testset_save_CFLAGS"
9624 fi
9625
9626 found="no"
9627
9628 if test $found = "no" ; then
9629 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9630 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9631 fi
9632
9633 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9634 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9635 fi
9636
9637 CFLAGS="$CFLAGS -Warray-bounds"
9638
9639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9640 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9641 cacheid=xorg_cv_cc_flag__Warray_bounds
9642 if eval \${$cacheid+:} false; then :
9643 $as_echo_n "(cached) " >&6
9644 else
9645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9646 /* end confdefs.h. */
9647 int i;
9648 int
9649 main ()
9650 {
9651
9652 ;
9653 return 0;
9654 }
9655 _ACEOF
9656 if ac_fn_c_try_link "$LINENO"; then :
9657 eval $cacheid=yes
9658 else
9659 eval $cacheid=no
9660 fi
9661 rm -f core conftest.err conftest.$ac_objext \
9662 conftest$ac_exeext conftest.$ac_ext
9663 fi
9664
9665
9666 CFLAGS="$xorg_testset_save_CFLAGS"
9667
9668 eval supported=\$$cacheid
9669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9670 $as_echo "$supported" >&6; }
9671 if test "$supported" = "yes" ; then
9672 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9673 found="yes"
9674 fi
9675 fi
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691 xorg_testset_save_CFLAGS="$CFLAGS"
9692
9693 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9694 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9696 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9697 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9698 $as_echo_n "(cached) " >&6
9699 else
9700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9701 /* end confdefs.h. */
9702 int i;
9703 _ACEOF
9704 if ac_fn_c_try_compile "$LINENO"; then :
9705 xorg_cv_cc_flag_unknown_warning_option=yes
9706 else
9707 xorg_cv_cc_flag_unknown_warning_option=no
9708 fi
9709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9710 fi
9711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9712 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9713 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9714 CFLAGS="$xorg_testset_save_CFLAGS"
9715 fi
9716
9717 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9718 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9719 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9720 fi
9721 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9723 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9724 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9725 $as_echo_n "(cached) " >&6
9726 else
9727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9728 /* end confdefs.h. */
9729 int i;
9730 _ACEOF
9731 if ac_fn_c_try_compile "$LINENO"; then :
9732 xorg_cv_cc_flag_unused_command_line_argument=yes
9733 else
9734 xorg_cv_cc_flag_unused_command_line_argument=no
9735 fi
9736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9737 fi
9738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9739 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9740 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9741 CFLAGS="$xorg_testset_save_CFLAGS"
9742 fi
9743
9744 found="no"
9745
9746 if test $found = "no" ; then
9747 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9748 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9749 fi
9750
9751 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9752 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9753 fi
9754
9755 CFLAGS="$CFLAGS -Wwrite-strings"
9756
9757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9758 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9759 cacheid=xorg_cv_cc_flag__Wwrite_strings
9760 if eval \${$cacheid+:} false; then :
9761 $as_echo_n "(cached) " >&6
9762 else
9763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9764 /* end confdefs.h. */
9765 int i;
9766 int
9767 main ()
9768 {
9769
9770 ;
9771 return 0;
9772 }
9773 _ACEOF
9774 if ac_fn_c_try_link "$LINENO"; then :
9775 eval $cacheid=yes
9776 else
9777 eval $cacheid=no
9778 fi
9779 rm -f core conftest.err conftest.$ac_objext \
9780 conftest$ac_exeext conftest.$ac_ext
9781 fi
9782
9783
9784 CFLAGS="$xorg_testset_save_CFLAGS"
9785
9786 eval supported=\$$cacheid
9787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9788 $as_echo "$supported" >&6; }
9789 if test "$supported" = "yes" ; then
9790 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9791 found="yes"
9792 fi
9793 fi
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809 xorg_testset_save_CFLAGS="$CFLAGS"
9810
9811 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9812 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9814 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9815 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9816 $as_echo_n "(cached) " >&6
9817 else
9818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9819 /* end confdefs.h. */
9820 int i;
9821 _ACEOF
9822 if ac_fn_c_try_compile "$LINENO"; then :
9823 xorg_cv_cc_flag_unknown_warning_option=yes
9824 else
9825 xorg_cv_cc_flag_unknown_warning_option=no
9826 fi
9827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9828 fi
9829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9830 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9831 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9832 CFLAGS="$xorg_testset_save_CFLAGS"
9833 fi
9834
9835 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9836 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9837 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9838 fi
9839 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9841 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9842 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9843 $as_echo_n "(cached) " >&6
9844 else
9845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9846 /* end confdefs.h. */
9847 int i;
9848 _ACEOF
9849 if ac_fn_c_try_compile "$LINENO"; then :
9850 xorg_cv_cc_flag_unused_command_line_argument=yes
9851 else
9852 xorg_cv_cc_flag_unused_command_line_argument=no
9853 fi
9854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9855 fi
9856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9857 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9858 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9859 CFLAGS="$xorg_testset_save_CFLAGS"
9860 fi
9861
9862 found="no"
9863
9864 if test $found = "no" ; then
9865 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9866 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9867 fi
9868
9869 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9870 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9871 fi
9872
9873 CFLAGS="$CFLAGS -Waddress"
9874
9875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9876 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
9877 cacheid=xorg_cv_cc_flag__Waddress
9878 if eval \${$cacheid+:} false; then :
9879 $as_echo_n "(cached) " >&6
9880 else
9881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9882 /* end confdefs.h. */
9883 int i;
9884 int
9885 main ()
9886 {
9887
9888 ;
9889 return 0;
9890 }
9891 _ACEOF
9892 if ac_fn_c_try_link "$LINENO"; then :
9893 eval $cacheid=yes
9894 else
9895 eval $cacheid=no
9896 fi
9897 rm -f core conftest.err conftest.$ac_objext \
9898 conftest$ac_exeext conftest.$ac_ext
9899 fi
9900
9901
9902 CFLAGS="$xorg_testset_save_CFLAGS"
9903
9904 eval supported=\$$cacheid
9905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9906 $as_echo "$supported" >&6; }
9907 if test "$supported" = "yes" ; then
9908 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9909 found="yes"
9910 fi
9911 fi
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927 xorg_testset_save_CFLAGS="$CFLAGS"
9928
9929 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9930 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9932 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9933 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9934 $as_echo_n "(cached) " >&6
9935 else
9936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9937 /* end confdefs.h. */
9938 int i;
9939 _ACEOF
9940 if ac_fn_c_try_compile "$LINENO"; then :
9941 xorg_cv_cc_flag_unknown_warning_option=yes
9942 else
9943 xorg_cv_cc_flag_unknown_warning_option=no
9944 fi
9945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9946 fi
9947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9948 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9949 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9950 CFLAGS="$xorg_testset_save_CFLAGS"
9951 fi
9952
9953 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9954 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9955 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9956 fi
9957 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9959 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9960 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9961 $as_echo_n "(cached) " >&6
9962 else
9963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9964 /* end confdefs.h. */
9965 int i;
9966 _ACEOF
9967 if ac_fn_c_try_compile "$LINENO"; then :
9968 xorg_cv_cc_flag_unused_command_line_argument=yes
9969 else
9970 xorg_cv_cc_flag_unused_command_line_argument=no
9971 fi
9972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9973 fi
9974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9975 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9976 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9977 CFLAGS="$xorg_testset_save_CFLAGS"
9978 fi
9979
9980 found="no"
9981
9982 if test $found = "no" ; then
9983 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9984 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9985 fi
9986
9987 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9988 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9989 fi
9990
9991 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9992
9993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9994 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9995 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9996 if eval \${$cacheid+:} false; then :
9997 $as_echo_n "(cached) " >&6
9998 else
9999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10000 /* end confdefs.h. */
10001 int i;
10002 int
10003 main ()
10004 {
10005
10006 ;
10007 return 0;
10008 }
10009 _ACEOF
10010 if ac_fn_c_try_link "$LINENO"; then :
10011 eval $cacheid=yes
10012 else
10013 eval $cacheid=no
10014 fi
10015 rm -f core conftest.err conftest.$ac_objext \
10016 conftest$ac_exeext conftest.$ac_ext
10017 fi
10018
10019
10020 CFLAGS="$xorg_testset_save_CFLAGS"
10021
10022 eval supported=\$$cacheid
10023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10024 $as_echo "$supported" >&6; }
10025 if test "$supported" = "yes" ; then
10026 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10027 found="yes"
10028 fi
10029 fi
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045 xorg_testset_save_CFLAGS="$CFLAGS"
10046
10047 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10048 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10050 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10051 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10052 $as_echo_n "(cached) " >&6
10053 else
10054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10055 /* end confdefs.h. */
10056 int i;
10057 _ACEOF
10058 if ac_fn_c_try_compile "$LINENO"; then :
10059 xorg_cv_cc_flag_unknown_warning_option=yes
10060 else
10061 xorg_cv_cc_flag_unknown_warning_option=no
10062 fi
10063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10064 fi
10065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10066 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10067 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10068 CFLAGS="$xorg_testset_save_CFLAGS"
10069 fi
10070
10071 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10072 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10073 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10074 fi
10075 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10077 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10078 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10079 $as_echo_n "(cached) " >&6
10080 else
10081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10082 /* end confdefs.h. */
10083 int i;
10084 _ACEOF
10085 if ac_fn_c_try_compile "$LINENO"; then :
10086 xorg_cv_cc_flag_unused_command_line_argument=yes
10087 else
10088 xorg_cv_cc_flag_unused_command_line_argument=no
10089 fi
10090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10091 fi
10092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10093 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10094 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10095 CFLAGS="$xorg_testset_save_CFLAGS"
10096 fi
10097
10098 found="no"
10099
10100 if test $found = "no" ; then
10101 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10102 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10103 fi
10104
10105 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10106 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10107 fi
10108
10109 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10110
10111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10112 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10113 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10114 if eval \${$cacheid+:} false; then :
10115 $as_echo_n "(cached) " >&6
10116 else
10117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10118 /* end confdefs.h. */
10119 int i;
10120 int
10121 main ()
10122 {
10123
10124 ;
10125 return 0;
10126 }
10127 _ACEOF
10128 if ac_fn_c_try_link "$LINENO"; then :
10129 eval $cacheid=yes
10130 else
10131 eval $cacheid=no
10132 fi
10133 rm -f core conftest.err conftest.$ac_objext \
10134 conftest$ac_exeext conftest.$ac_ext
10135 fi
10136
10137
10138 CFLAGS="$xorg_testset_save_CFLAGS"
10139
10140 eval supported=\$$cacheid
10141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10142 $as_echo "$supported" >&6; }
10143 if test "$supported" = "yes" ; then
10144 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10145 found="yes"
10146 fi
10147 fi
10148
10149
10150 fi
10151
10152
10153
10154
10155
10156
10157
10158 CWARNFLAGS="$BASE_CFLAGS"
10159 if test "x$GCC" = xyes ; then
10160 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10161 fi
10162
10163
10164
10165
10166
10167
10168
10169
10170 # Check whether --enable-strict-compilation was given.
10171 if test "${enable_strict_compilation+set}" = set; then :
10172 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10173 else
10174 STRICT_COMPILE=no
10175 fi
10176
10177
10178
10179
10180
10181
10182 STRICT_CFLAGS=""
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196 xorg_testset_save_CFLAGS="$CFLAGS"
10197
10198 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10199 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10201 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10202 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10203 $as_echo_n "(cached) " >&6
10204 else
10205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10206 /* end confdefs.h. */
10207 int i;
10208 _ACEOF
10209 if ac_fn_c_try_compile "$LINENO"; then :
10210 xorg_cv_cc_flag_unknown_warning_option=yes
10211 else
10212 xorg_cv_cc_flag_unknown_warning_option=no
10213 fi
10214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10215 fi
10216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10217 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10218 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10219 CFLAGS="$xorg_testset_save_CFLAGS"
10220 fi
10221
10222 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10223 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10224 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10225 fi
10226 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10228 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10229 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10230 $as_echo_n "(cached) " >&6
10231 else
10232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10233 /* end confdefs.h. */
10234 int i;
10235 _ACEOF
10236 if ac_fn_c_try_compile "$LINENO"; then :
10237 xorg_cv_cc_flag_unused_command_line_argument=yes
10238 else
10239 xorg_cv_cc_flag_unused_command_line_argument=no
10240 fi
10241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10242 fi
10243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10244 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10245 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10246 CFLAGS="$xorg_testset_save_CFLAGS"
10247 fi
10248
10249 found="no"
10250
10251 if test $found = "no" ; then
10252 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10253 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10254 fi
10255
10256 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10257 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10258 fi
10259
10260 CFLAGS="$CFLAGS -pedantic"
10261
10262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10263 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
10264 cacheid=xorg_cv_cc_flag__pedantic
10265 if eval \${$cacheid+:} false; then :
10266 $as_echo_n "(cached) " >&6
10267 else
10268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10269 /* end confdefs.h. */
10270 int i;
10271 int
10272 main ()
10273 {
10274
10275 ;
10276 return 0;
10277 }
10278 _ACEOF
10279 if ac_fn_c_try_link "$LINENO"; then :
10280 eval $cacheid=yes
10281 else
10282 eval $cacheid=no
10283 fi
10284 rm -f core conftest.err conftest.$ac_objext \
10285 conftest$ac_exeext conftest.$ac_ext
10286 fi
10287
10288
10289 CFLAGS="$xorg_testset_save_CFLAGS"
10290
10291 eval supported=\$$cacheid
10292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10293 $as_echo "$supported" >&6; }
10294 if test "$supported" = "yes" ; then
10295 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10296 found="yes"
10297 fi
10298 fi
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314 xorg_testset_save_CFLAGS="$CFLAGS"
10315
10316 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10317 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10319 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10320 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10321 $as_echo_n "(cached) " >&6
10322 else
10323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10324 /* end confdefs.h. */
10325 int i;
10326 _ACEOF
10327 if ac_fn_c_try_compile "$LINENO"; then :
10328 xorg_cv_cc_flag_unknown_warning_option=yes
10329 else
10330 xorg_cv_cc_flag_unknown_warning_option=no
10331 fi
10332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10333 fi
10334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10335 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10336 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10337 CFLAGS="$xorg_testset_save_CFLAGS"
10338 fi
10339
10340 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10341 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10342 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10343 fi
10344 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10346 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10347 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10348 $as_echo_n "(cached) " >&6
10349 else
10350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10351 /* end confdefs.h. */
10352 int i;
10353 _ACEOF
10354 if ac_fn_c_try_compile "$LINENO"; then :
10355 xorg_cv_cc_flag_unused_command_line_argument=yes
10356 else
10357 xorg_cv_cc_flag_unused_command_line_argument=no
10358 fi
10359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10360 fi
10361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10362 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10363 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10364 CFLAGS="$xorg_testset_save_CFLAGS"
10365 fi
10366
10367 found="no"
10368
10369 if test $found = "no" ; then
10370 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10371 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10372 fi
10373
10374 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10375 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10376 fi
10377
10378 CFLAGS="$CFLAGS -Werror"
10379
10380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10381 $as_echo_n "checking if $CC supports -Werror... " >&6; }
10382 cacheid=xorg_cv_cc_flag__Werror
10383 if eval \${$cacheid+:} false; then :
10384 $as_echo_n "(cached) " >&6
10385 else
10386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10387 /* end confdefs.h. */
10388 int i;
10389 int
10390 main ()
10391 {
10392
10393 ;
10394 return 0;
10395 }
10396 _ACEOF
10397 if ac_fn_c_try_link "$LINENO"; then :
10398 eval $cacheid=yes
10399 else
10400 eval $cacheid=no
10401 fi
10402 rm -f core conftest.err conftest.$ac_objext \
10403 conftest$ac_exeext conftest.$ac_ext
10404 fi
10405
10406
10407 CFLAGS="$xorg_testset_save_CFLAGS"
10408
10409 eval supported=\$$cacheid
10410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10411 $as_echo "$supported" >&6; }
10412 if test "$supported" = "yes" ; then
10413 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10414 found="yes"
10415 fi
10416 fi
10417
10418 if test $found = "no" ; then
10419 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10420 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10421 fi
10422
10423 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10424 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10425 fi
10426
10427 CFLAGS="$CFLAGS -errwarn"
10428
10429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10430 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
10431 cacheid=xorg_cv_cc_flag__errwarn
10432 if eval \${$cacheid+:} false; then :
10433 $as_echo_n "(cached) " >&6
10434 else
10435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10436 /* end confdefs.h. */
10437 int i;
10438 int
10439 main ()
10440 {
10441
10442 ;
10443 return 0;
10444 }
10445 _ACEOF
10446 if ac_fn_c_try_link "$LINENO"; then :
10447 eval $cacheid=yes
10448 else
10449 eval $cacheid=no
10450 fi
10451 rm -f core conftest.err conftest.$ac_objext \
10452 conftest$ac_exeext conftest.$ac_ext
10453 fi
10454
10455
10456 CFLAGS="$xorg_testset_save_CFLAGS"
10457
10458 eval supported=\$$cacheid
10459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10460 $as_echo "$supported" >&6; }
10461 if test "$supported" = "yes" ; then
10462 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10463 found="yes"
10464 fi
10465 fi
10466
10467
10468
10469 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10470 # activate it with -Werror, so we add it here explicitly.
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484 xorg_testset_save_CFLAGS="$CFLAGS"
10485
10486 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10487 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10489 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10490 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10491 $as_echo_n "(cached) " >&6
10492 else
10493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10494 /* end confdefs.h. */
10495 int i;
10496 _ACEOF
10497 if ac_fn_c_try_compile "$LINENO"; then :
10498 xorg_cv_cc_flag_unknown_warning_option=yes
10499 else
10500 xorg_cv_cc_flag_unknown_warning_option=no
10501 fi
10502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10503 fi
10504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10505 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10506 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10507 CFLAGS="$xorg_testset_save_CFLAGS"
10508 fi
10509
10510 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10511 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10512 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10513 fi
10514 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10516 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10517 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10518 $as_echo_n "(cached) " >&6
10519 else
10520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10521 /* end confdefs.h. */
10522 int i;
10523 _ACEOF
10524 if ac_fn_c_try_compile "$LINENO"; then :
10525 xorg_cv_cc_flag_unused_command_line_argument=yes
10526 else
10527 xorg_cv_cc_flag_unused_command_line_argument=no
10528 fi
10529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10530 fi
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10532 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10533 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10534 CFLAGS="$xorg_testset_save_CFLAGS"
10535 fi
10536
10537 found="no"
10538
10539 if test $found = "no" ; then
10540 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10541 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10542 fi
10543
10544 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10545 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10546 fi
10547
10548 CFLAGS="$CFLAGS -Werror=attributes"
10549
10550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10551 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10552 cacheid=xorg_cv_cc_flag__Werror_attributes
10553 if eval \${$cacheid+:} false; then :
10554 $as_echo_n "(cached) " >&6
10555 else
10556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10557 /* end confdefs.h. */
10558 int i;
10559 int
10560 main ()
10561 {
10562
10563 ;
10564 return 0;
10565 }
10566 _ACEOF
10567 if ac_fn_c_try_link "$LINENO"; then :
10568 eval $cacheid=yes
10569 else
10570 eval $cacheid=no
10571 fi
10572 rm -f core conftest.err conftest.$ac_objext \
10573 conftest$ac_exeext conftest.$ac_ext
10574 fi
10575
10576
10577 CFLAGS="$xorg_testset_save_CFLAGS"
10578
10579 eval supported=\$$cacheid
10580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10581 $as_echo "$supported" >&6; }
10582 if test "$supported" = "yes" ; then
10583 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10584 found="yes"
10585 fi
10586 fi
10587
10588
10589
10590 if test "x$STRICT_COMPILE" = "xyes"; then
10591 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10592 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10593 fi
10594
10595
10596
10597
10598
10599
10600 cat >>confdefs.h <<_ACEOF
10601 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10602 _ACEOF
10603
10604 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10605 if test "x$PVM" = "x"; then
10606 PVM="0"
10607 fi
10608
10609 cat >>confdefs.h <<_ACEOF
10610 #define PACKAGE_VERSION_MINOR $PVM
10611 _ACEOF
10612
10613 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10614 if test "x$PVP" = "x"; then
10615 PVP="0"
10616 fi
10617
10618 cat >>confdefs.h <<_ACEOF
10619 #define PACKAGE_VERSION_PATCHLEVEL $PVP
10620 _ACEOF
10621
10622
10623
10624 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10625 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10626 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10627 echo 'git directory not found: installing possibly empty changelog.' >&2)"
10628
10629
10630
10631
10632 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10633 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10634 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10635 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10636 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10637
10638
10639
10640
10641
10642
10643 if test x$APP_MAN_SUFFIX = x ; then
10644 APP_MAN_SUFFIX=1
10645 fi
10646 if test x$APP_MAN_DIR = x ; then
10647 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10648 fi
10649
10650 if test x$LIB_MAN_SUFFIX = x ; then
10651 LIB_MAN_SUFFIX=3
10652 fi
10653 if test x$LIB_MAN_DIR = x ; then
10654 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10655 fi
10656
10657 if test x$FILE_MAN_SUFFIX = x ; then
10658 case $host_os in
10659 solaris*) FILE_MAN_SUFFIX=4 ;;
10660 *) FILE_MAN_SUFFIX=5 ;;
10661 esac
10662 fi
10663 if test x$FILE_MAN_DIR = x ; then
10664 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10665 fi
10666
10667 if test x$MISC_MAN_SUFFIX = x ; then
10668 case $host_os in
10669 solaris*) MISC_MAN_SUFFIX=5 ;;
10670 *) MISC_MAN_SUFFIX=7 ;;
10671 esac
10672 fi
10673 if test x$MISC_MAN_DIR = x ; then
10674 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10675 fi
10676
10677 if test x$DRIVER_MAN_SUFFIX = x ; then
10678 case $host_os in
10679 solaris*) DRIVER_MAN_SUFFIX=7 ;;
10680 *) DRIVER_MAN_SUFFIX=4 ;;
10681 esac
10682 fi
10683 if test x$DRIVER_MAN_DIR = x ; then
10684 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10685 fi
10686
10687 if test x$ADMIN_MAN_SUFFIX = x ; then
10688 case $host_os in
10689 solaris*) ADMIN_MAN_SUFFIX=1m ;;
10690 *) ADMIN_MAN_SUFFIX=8 ;;
10691 esac
10692 fi
10693 if test x$ADMIN_MAN_DIR = x ; then
10694 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10695 fi
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711 XORG_MAN_PAGE="X Version 11"
10712
10713 MAN_SUBSTS="\
10714 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10715 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10716 -e 's|__xservername__|Xorg|g' \
10717 -e 's|__xconfigfile__|xorg.conf|g' \
10718 -e 's|__projectroot__|\$(prefix)|g' \
10719 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
10720 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10721 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10722 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10723 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10724 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10725 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10726
10727
10728
10729 # Check whether --enable-silent-rules was given.
10730 if test "${enable_silent_rules+set}" = set; then :
10731 enableval=$enable_silent_rules;
10732 fi
10733
10734 case $enable_silent_rules in # (((
10735 yes) AM_DEFAULT_VERBOSITY=0;;
10736 no) AM_DEFAULT_VERBOSITY=1;;
10737 *) AM_DEFAULT_VERBOSITY=0;;
10738 esac
10739 am_make=${MAKE-make}
10740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10741 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10742 if ${am_cv_make_support_nested_variables+:} false; then :
10743 $as_echo_n "(cached) " >&6
10744 else
10745 if $as_echo 'TRUE=$(BAR$(V))
10746 BAR0=false
10747 BAR1=true
10748 V=1
10749 am__doit:
10750 @$(TRUE)
10751 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10752 am_cv_make_support_nested_variables=yes
10753 else
10754 am_cv_make_support_nested_variables=no
10755 fi
10756 fi
10757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10758 $as_echo "$am_cv_make_support_nested_variables" >&6; }
10759 if test $am_cv_make_support_nested_variables = yes; then
10760 AM_V='$(V)'
10761 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10762 else
10763 AM_V=$AM_DEFAULT_VERBOSITY
10764 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10765 fi
10766 AM_BACKSLASH='\'
10767
10768
10769
10770 # Initialize libtool
10771 # Check whether --enable-static was given.
10772 if test "${enable_static+set}" = set; then :
10773 enableval=$enable_static; p=${PACKAGE-default}
10774 case $enableval in
10775 yes) enable_static=yes ;;
10776 no) enable_static=no ;;
10777 *)
10778 enable_static=no
10779 # Look at the argument we got. We use all the common list separators.
10780 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10781 for pkg in $enableval; do
10782 IFS=$lt_save_ifs
10783 if test "X$pkg" = "X$p"; then
10784 enable_static=yes
10785 fi
10786 done
10787 IFS=$lt_save_ifs
10788 ;;
10789 esac
10790 else
10791 enable_static=no
10792 fi
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802 case `pwd` in
10803 *\ * | *\ *)
10804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10805 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10806 esac
10807
10808
10809
10810 macro_version='2.4.4'
10811 macro_revision='2.4.4'
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825 ltmain=$ac_aux_dir/ltmain.sh
10826
10827 # Backslashify metacharacters that are still active within
10828 # double-quoted strings.
10829 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10830
10831 # Same as above, but do not quote variable references.
10832 double_quote_subst='s/\(["`\\]\)/\\\1/g'
10833
10834 # Sed substitution to delay expansion of an escaped shell variable in a
10835 # double_quote_subst'ed string.
10836 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10837
10838 # Sed substitution to delay expansion of an escaped single quote.
10839 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10840
10841 # Sed substitution to avoid accidental globbing in evaled expressions
10842 no_glob_subst='s/\*/\\\*/g'
10843
10844 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10845 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
10846 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
10847
10848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
10849 $as_echo_n "checking how to print strings... " >&6; }
10850 # Test print first, because it will be a builtin if present.
10851 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
10852 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
10853 ECHO='print -r --'
10854 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
10855 ECHO='printf %s\n'
10856 else
10857 # Use this function as a fallback that always works.
10858 func_fallback_echo ()
10859 {
10860 eval 'cat <<_LTECHO_EOF
10861 $1
10862 _LTECHO_EOF'
10863 }
10864 ECHO='func_fallback_echo'
10865 fi
10866
10867 # func_echo_all arg...
10868 # Invoke $ECHO with all args, space-separated.
10869 func_echo_all ()
10870 {
10871 $ECHO ""
10872 }
10873
10874 case $ECHO in
10875 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
10876 $as_echo "printf" >&6; } ;;
10877 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
10878 $as_echo "print -r" >&6; } ;;
10879 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
10880 $as_echo "cat" >&6; } ;;
10881 esac
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
10897 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
10898 if ${ac_cv_path_SED+:} false; then :
10899 $as_echo_n "(cached) " >&6
10900 else
10901 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
10902 for ac_i in 1 2 3 4 5 6 7; do
10903 ac_script="$ac_script$as_nl$ac_script"
10904 done
10905 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
10906 { ac_script=; unset ac_script;}
10907 if test -z "$SED"; then
10908 ac_path_SED_found=false
10909 # Loop through the user's path and test for each of PROGNAME-LIST
10910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10911 for as_dir in $PATH
10912 do
10913 IFS=$as_save_IFS
10914 test -z "$as_dir" && as_dir=.
10915 for ac_prog in sed gsed; do
10916 for ac_exec_ext in '' $ac_executable_extensions; do
10917 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
10918 as_fn_executable_p "$ac_path_SED" || continue
10919 # Check for GNU ac_path_SED and select it if it is found.
10920 # Check for GNU $ac_path_SED
10921 case `"$ac_path_SED" --version 2>&1` in
10922 *GNU*)
10923 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
10924 *)
10925 ac_count=0
10926 $as_echo_n 0123456789 >"conftest.in"
10927 while :
10928 do
10929 cat "conftest.in" "conftest.in" >"conftest.tmp"
10930 mv "conftest.tmp" "conftest.in"
10931 cp "conftest.in" "conftest.nl"
10932 $as_echo '' >> "conftest.nl"
10933 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
10934 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10935 as_fn_arith $ac_count + 1 && ac_count=$as_val
10936 if test $ac_count -gt ${ac_path_SED_max-0}; then
10937 # Best one so far, save it but keep looking for a better one
10938 ac_cv_path_SED="$ac_path_SED"
10939 ac_path_SED_max=$ac_count
10940 fi
10941 # 10*(2^10) chars as input seems more than enough
10942 test $ac_count -gt 10 && break
10943 done
10944 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10945 esac
10946
10947 $ac_path_SED_found && break 3
10948 done
10949 done
10950 done
10951 IFS=$as_save_IFS
10952 if test -z "$ac_cv_path_SED"; then
10953 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
10954 fi
10955 else
10956 ac_cv_path_SED=$SED
10957 fi
10958
10959 fi
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
10961 $as_echo "$ac_cv_path_SED" >&6; }
10962 SED="$ac_cv_path_SED"
10963 rm -f conftest.sed
10964
10965 test -z "$SED" && SED=sed
10966 Xsed="$SED -e 1s/^X//"
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
10979 $as_echo_n "checking for fgrep... " >&6; }
10980 if ${ac_cv_path_FGREP+:} false; then :
10981 $as_echo_n "(cached) " >&6
10982 else
10983 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
10984 then ac_cv_path_FGREP="$GREP -F"
10985 else
10986 if test -z "$FGREP"; then
10987 ac_path_FGREP_found=false
10988 # Loop through the user's path and test for each of PROGNAME-LIST
10989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10990 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10991 do
10992 IFS=$as_save_IFS
10993 test -z "$as_dir" && as_dir=.
10994 for ac_prog in fgrep; do
10995 for ac_exec_ext in '' $ac_executable_extensions; do
10996 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
10997 as_fn_executable_p "$ac_path_FGREP" || continue
10998 # Check for GNU ac_path_FGREP and select it if it is found.
10999 # Check for GNU $ac_path_FGREP
11000 case `"$ac_path_FGREP" --version 2>&1` in
11001 *GNU*)
11002 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11003 *)
11004 ac_count=0
11005 $as_echo_n 0123456789 >"conftest.in"
11006 while :
11007 do
11008 cat "conftest.in" "conftest.in" >"conftest.tmp"
11009 mv "conftest.tmp" "conftest.in"
11010 cp "conftest.in" "conftest.nl"
11011 $as_echo 'FGREP' >> "conftest.nl"
11012 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11013 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11014 as_fn_arith $ac_count + 1 && ac_count=$as_val
11015 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11016 # Best one so far, save it but keep looking for a better one
11017 ac_cv_path_FGREP="$ac_path_FGREP"
11018 ac_path_FGREP_max=$ac_count
11019 fi
11020 # 10*(2^10) chars as input seems more than enough
11021 test $ac_count -gt 10 && break
11022 done
11023 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11024 esac
11025
11026 $ac_path_FGREP_found && break 3
11027 done
11028 done
11029 done
11030 IFS=$as_save_IFS
11031 if test -z "$ac_cv_path_FGREP"; then
11032 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11033 fi
11034 else
11035 ac_cv_path_FGREP=$FGREP
11036 fi
11037
11038 fi
11039 fi
11040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11041 $as_echo "$ac_cv_path_FGREP" >&6; }
11042 FGREP="$ac_cv_path_FGREP"
11043
11044
11045 test -z "$GREP" && GREP=grep
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065 # Check whether --with-gnu-ld was given.
11066 if test "${with_gnu_ld+set}" = set; then :
11067 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
11068 else
11069 with_gnu_ld=no
11070 fi
11071
11072 ac_prog=ld
11073 if test yes = "$GCC"; then
11074 # Check if gcc -print-prog-name=ld gives a path.
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11076 $as_echo_n "checking for ld used by $CC... " >&6; }
11077 case $host in
11078 *-*-mingw*)
11079 # gcc leaves a trailing carriage return, which upsets mingw
11080 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11081 *)
11082 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11083 esac
11084 case $ac_prog in
11085 # Accept absolute paths.
11086 [\\/]* | ?:[\\/]*)
11087 re_direlt='/[^/][^/]*/\.\./'
11088 # Canonicalize the pathname of ld
11089 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11090 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11091 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11092 done
11093 test -z "$LD" && LD=$ac_prog
11094 ;;
11095 "")
11096 # If it fails, then pretend we aren't using GCC.
11097 ac_prog=ld
11098 ;;
11099 *)
11100 # If it is relative, then search for the first ld in PATH.
11101 with_gnu_ld=unknown
11102 ;;
11103 esac
11104 elif test yes = "$with_gnu_ld"; then
11105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11106 $as_echo_n "checking for GNU ld... " >&6; }
11107 else
11108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11109 $as_echo_n "checking for non-GNU ld... " >&6; }
11110 fi
11111 if ${lt_cv_path_LD+:} false; then :
11112 $as_echo_n "(cached) " >&6
11113 else
11114 if test -z "$LD"; then
11115 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11116 for ac_dir in $PATH; do
11117 IFS=$lt_save_ifs
11118 test -z "$ac_dir" && ac_dir=.
11119 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11120 lt_cv_path_LD=$ac_dir/$ac_prog
11121 # Check to see if the program is GNU ld. I'd rather use --version,
11122 # but apparently some variants of GNU ld only accept -v.
11123 # Break only if it was the GNU/non-GNU ld that we prefer.
11124 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11125 *GNU* | *'with BFD'*)
11126 test no != "$with_gnu_ld" && break
11127 ;;
11128 *)
11129 test yes != "$with_gnu_ld" && break
11130 ;;
11131 esac
11132 fi
11133 done
11134 IFS=$lt_save_ifs
11135 else
11136 lt_cv_path_LD=$LD # Let the user override the test with a path.
11137 fi
11138 fi
11139
11140 LD=$lt_cv_path_LD
11141 if test -n "$LD"; then
11142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11143 $as_echo "$LD" >&6; }
11144 else
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11146 $as_echo "no" >&6; }
11147 fi
11148 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11150 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11151 if ${lt_cv_prog_gnu_ld+:} false; then :
11152 $as_echo_n "(cached) " >&6
11153 else
11154 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11155 case `$LD -v 2>&1 </dev/null` in
11156 *GNU* | *'with BFD'*)
11157 lt_cv_prog_gnu_ld=yes
11158 ;;
11159 *)
11160 lt_cv_prog_gnu_ld=no
11161 ;;
11162 esac
11163 fi
11164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11165 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11166 with_gnu_ld=$lt_cv_prog_gnu_ld
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11177 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11178 if ${lt_cv_path_NM+:} false; then :
11179 $as_echo_n "(cached) " >&6
11180 else
11181 if test -n "$NM"; then
11182 # Let the user override the test.
11183 lt_cv_path_NM=$NM
11184 else
11185 lt_nm_to_check=${ac_tool_prefix}nm
11186 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11187 lt_nm_to_check="$lt_nm_to_check nm"
11188 fi
11189 for lt_tmp_nm in $lt_nm_to_check; do
11190 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11191 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11192 IFS=$lt_save_ifs
11193 test -z "$ac_dir" && ac_dir=.
11194 tmp_nm=$ac_dir/$lt_tmp_nm
11195 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
11196 # Check to see if the nm accepts a BSD-compat flag.
11197 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
11198 # nm: unknown option "B" ignored
11199 # Tru64's nm complains that /dev/null is an invalid object file
11200 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
11201 case $build_os in
11202 mingw*) lt_bad_file=conftest.nm/nofile ;;
11203 *) lt_bad_file=/dev/null ;;
11204 esac
11205 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
11206 *$lt_bad_file* | *'Invalid file or object type'*)
11207 lt_cv_path_NM="$tmp_nm -B"
11208 break 2
11209 ;;
11210 *)
11211 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11212 */dev/null*)
11213 lt_cv_path_NM="$tmp_nm -p"
11214 break 2
11215 ;;
11216 *)
11217 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11218 continue # so that we can try to find one that supports BSD flags
11219 ;;
11220 esac
11221 ;;
11222 esac
11223 fi
11224 done
11225 IFS=$lt_save_ifs
11226 done
11227 : ${lt_cv_path_NM=no}
11228 fi
11229 fi
11230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11231 $as_echo "$lt_cv_path_NM" >&6; }
11232 if test no != "$lt_cv_path_NM"; then
11233 NM=$lt_cv_path_NM
11234 else
11235 # Didn't find any BSD compatible name lister, look for dumpbin.
11236 if test -n "$DUMPBIN"; then :
11237 # Let the user override the test.
11238 else
11239 if test -n "$ac_tool_prefix"; then
11240 for ac_prog in dumpbin "link -dump"
11241 do
11242 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11243 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11245 $as_echo_n "checking for $ac_word... " >&6; }
11246 if ${ac_cv_prog_DUMPBIN+:} false; then :
11247 $as_echo_n "(cached) " >&6
11248 else
11249 if test -n "$DUMPBIN"; then
11250 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11251 else
11252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11253 for as_dir in $PATH
11254 do
11255 IFS=$as_save_IFS
11256 test -z "$as_dir" && as_dir=.
11257 for ac_exec_ext in '' $ac_executable_extensions; do
11258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11259 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11261 break 2
11262 fi
11263 done
11264 done
11265 IFS=$as_save_IFS
11266
11267 fi
11268 fi
11269 DUMPBIN=$ac_cv_prog_DUMPBIN
11270 if test -n "$DUMPBIN"; then
11271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11272 $as_echo "$DUMPBIN" >&6; }
11273 else
11274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11275 $as_echo "no" >&6; }
11276 fi
11277
11278
11279 test -n "$DUMPBIN" && break
11280 done
11281 fi
11282 if test -z "$DUMPBIN"; then
11283 ac_ct_DUMPBIN=$DUMPBIN
11284 for ac_prog in dumpbin "link -dump"
11285 do
11286 # Extract the first word of "$ac_prog", so it can be a program name with args.
11287 set dummy $ac_prog; ac_word=$2
11288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11289 $as_echo_n "checking for $ac_word... " >&6; }
11290 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
11291 $as_echo_n "(cached) " >&6
11292 else
11293 if test -n "$ac_ct_DUMPBIN"; then
11294 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11295 else
11296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11297 for as_dir in $PATH
11298 do
11299 IFS=$as_save_IFS
11300 test -z "$as_dir" && as_dir=.
11301 for ac_exec_ext in '' $ac_executable_extensions; do
11302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11303 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11305 break 2
11306 fi
11307 done
11308 done
11309 IFS=$as_save_IFS
11310
11311 fi
11312 fi
11313 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11314 if test -n "$ac_ct_DUMPBIN"; then
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11316 $as_echo "$ac_ct_DUMPBIN" >&6; }
11317 else
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11319 $as_echo "no" >&6; }
11320 fi
11321
11322
11323 test -n "$ac_ct_DUMPBIN" && break
11324 done
11325
11326 if test "x$ac_ct_DUMPBIN" = x; then
11327 DUMPBIN=":"
11328 else
11329 case $cross_compiling:$ac_tool_warned in
11330 yes:)
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11332 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11333 ac_tool_warned=yes ;;
11334 esac
11335 DUMPBIN=$ac_ct_DUMPBIN
11336 fi
11337 fi
11338
11339 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
11340 *COFF*)
11341 DUMPBIN="$DUMPBIN -symbols -headers"
11342 ;;
11343 *)
11344 DUMPBIN=:
11345 ;;
11346 esac
11347 fi
11348
11349 if test : != "$DUMPBIN"; then
11350 NM=$DUMPBIN
11351 fi
11352 fi
11353 test -z "$NM" && NM=nm
11354
11355
11356
11357
11358
11359
11360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11361 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
11362 if ${lt_cv_nm_interface+:} false; then :
11363 $as_echo_n "(cached) " >&6
11364 else
11365 lt_cv_nm_interface="BSD nm"
11366 echo "int some_variable = 0;" > conftest.$ac_ext
11367 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11368 (eval "$ac_compile" 2>conftest.err)
11369 cat conftest.err >&5
11370 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11371 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11372 cat conftest.err >&5
11373 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11374 cat conftest.out >&5
11375 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11376 lt_cv_nm_interface="MS dumpbin"
11377 fi
11378 rm -f conftest*
11379 fi
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11381 $as_echo "$lt_cv_nm_interface" >&6; }
11382
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11384 $as_echo_n "checking whether ln -s works... " >&6; }
11385 LN_S=$as_ln_s
11386 if test "$LN_S" = "ln -s"; then
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11388 $as_echo "yes" >&6; }
11389 else
11390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11391 $as_echo "no, using $LN_S" >&6; }
11392 fi
11393
11394 # find the maximum length of command line arguments
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11396 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
11397 if ${lt_cv_sys_max_cmd_len+:} false; then :
11398 $as_echo_n "(cached) " >&6
11399 else
11400 i=0
11401 teststring=ABCD
11402
11403 case $build_os in
11404 msdosdjgpp*)
11405 # On DJGPP, this test can blow up pretty badly due to problems in libc
11406 # (any single argument exceeding 2000 bytes causes a buffer overrun
11407 # during glob expansion). Even if it were fixed, the result of this
11408 # check would be larger than it should be.
11409 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11410 ;;
11411
11412 gnu*)
11413 # Under GNU Hurd, this test is not required because there is
11414 # no limit to the length of command line arguments.
11415 # Libtool will interpret -1 as no limit whatsoever
11416 lt_cv_sys_max_cmd_len=-1;
11417 ;;
11418
11419 cygwin* | mingw* | cegcc*)
11420 # On Win9x/ME, this test blows up -- it succeeds, but takes
11421 # about 5 minutes as the teststring grows exponentially.
11422 # Worse, since 9x/ME are not pre-emptively multitasking,
11423 # you end up with a "frozen" computer, even though with patience
11424 # the test eventually succeeds (with a max line length of 256k).
11425 # Instead, let's just punt: use the minimum linelength reported by
11426 # all of the supported platforms: 8192 (on NT/2K/XP).
11427 lt_cv_sys_max_cmd_len=8192;
11428 ;;
11429
11430 mint*)
11431 # On MiNT this can take a long time and run out of memory.
11432 lt_cv_sys_max_cmd_len=8192;
11433 ;;
11434
11435 amigaos*)
11436 # On AmigaOS with pdksh, this test takes hours, literally.
11437 # So we just punt and use a minimum line length of 8192.
11438 lt_cv_sys_max_cmd_len=8192;
11439 ;;
11440
11441 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
11442 # This has been around since 386BSD, at least. Likely further.
11443 if test -x /sbin/sysctl; then
11444 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11445 elif test -x /usr/sbin/sysctl; then
11446 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11447 else
11448 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
11449 fi
11450 # And add a safety zone
11451 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11452 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11453 ;;
11454
11455 interix*)
11456 # We know the value 262144 and hardcode it with a safety zone (like BSD)
11457 lt_cv_sys_max_cmd_len=196608
11458 ;;
11459
11460 os2*)
11461 # The test takes a long time on OS/2.
11462 lt_cv_sys_max_cmd_len=8192
11463 ;;
11464
11465 osf*)
11466 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11467 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11468 # nice to cause kernel panics so lets avoid the loop below.
11469 # First set a reasonable default.
11470 lt_cv_sys_max_cmd_len=16384
11471 #
11472 if test -x /sbin/sysconfig; then
11473 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11474 *1*) lt_cv_sys_max_cmd_len=-1 ;;
11475 esac
11476 fi
11477 ;;
11478 sco3.2v5*)
11479 lt_cv_sys_max_cmd_len=102400
11480 ;;
11481 sysv5* | sco5v6* | sysv4.2uw2*)
11482 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11483 if test -n "$kargmax"; then
11484 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
11485 else
11486 lt_cv_sys_max_cmd_len=32768
11487 fi
11488 ;;
11489 *)
11490 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11491 if test -n "$lt_cv_sys_max_cmd_len" && \
11492 test undefined != "$lt_cv_sys_max_cmd_len"; then
11493 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11494 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11495 else
11496 # Make teststring a little bigger before we do anything with it.
11497 # a 1K string should be a reasonable start.
11498 for i in 1 2 3 4 5 6 7 8; do
11499 teststring=$teststring$teststring
11500 done
11501 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11502 # If test is not a shell built-in, we'll probably end up computing a
11503 # maximum length that is only half of the actual maximum length, but
11504 # we can't tell.
11505 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
11506 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11507 test 17 != "$i" # 1/2 MB should be enough
11508 do
11509 i=`expr $i + 1`
11510 teststring=$teststring$teststring
11511 done
11512 # Only check the string length outside the loop.
11513 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11514 teststring=
11515 # Add a significant safety factor because C++ compilers can tack on
11516 # massive amounts of additional arguments before passing them to the
11517 # linker. It appears as though 1/2 is a usable value.
11518 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11519 fi
11520 ;;
11521 esac
11522
11523 fi
11524
11525 if test -n "$lt_cv_sys_max_cmd_len"; then
11526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11527 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11528 else
11529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11530 $as_echo "none" >&6; }
11531 fi
11532 max_cmd_len=$lt_cv_sys_max_cmd_len
11533
11534
11535
11536
11537
11538
11539 : ${CP="cp -f"}
11540 : ${MV="mv -f"}
11541 : ${RM="rm -f"}
11542
11543 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11544 lt_unset=unset
11545 else
11546 lt_unset=false
11547 fi
11548
11549
11550
11551
11552
11553 # test EBCDIC or ASCII
11554 case `echo X|tr X '\101'` in
11555 A) # ASCII based system
11556 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11557 lt_SP2NL='tr \040 \012'
11558 lt_NL2SP='tr \015\012 \040\040'
11559 ;;
11560 *) # EBCDIC based system
11561 lt_SP2NL='tr \100 \n'
11562 lt_NL2SP='tr \r\n \100\100'
11563 ;;
11564 esac
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11575 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11576 if ${lt_cv_to_host_file_cmd+:} false; then :
11577 $as_echo_n "(cached) " >&6
11578 else
11579 case $host in
11580 *-*-mingw* )
11581 case $build in
11582 *-*-mingw* ) # actually msys
11583 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11584 ;;
11585 *-*-cygwin* )
11586 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11587 ;;
11588 * ) # otherwise, assume *nix
11589 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11590 ;;
11591 esac
11592 ;;
11593 *-*-cygwin* )
11594 case $build in
11595 *-*-mingw* ) # actually msys
11596 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11597 ;;
11598 *-*-cygwin* )
11599 lt_cv_to_host_file_cmd=func_convert_file_noop
11600 ;;
11601 * ) # otherwise, assume *nix
11602 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11603 ;;
11604 esac
11605 ;;
11606 * ) # unhandled hosts (and "normal" native builds)
11607 lt_cv_to_host_file_cmd=func_convert_file_noop
11608 ;;
11609 esac
11610
11611 fi
11612
11613 to_host_file_cmd=$lt_cv_to_host_file_cmd
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11615 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
11616
11617
11618
11619
11620
11621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11622 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11623 if ${lt_cv_to_tool_file_cmd+:} false; then :
11624 $as_echo_n "(cached) " >&6
11625 else
11626 #assume ordinary cross tools, or native build.
11627 lt_cv_to_tool_file_cmd=func_convert_file_noop
11628 case $host in
11629 *-*-mingw* )
11630 case $build in
11631 *-*-mingw* ) # actually msys
11632 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11633 ;;
11634 esac
11635 ;;
11636 esac
11637
11638 fi
11639
11640 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11642 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11643
11644
11645
11646
11647
11648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11649 $as_echo_n "checking for $LD option to reload object files... " >&6; }
11650 if ${lt_cv_ld_reload_flag+:} false; then :
11651 $as_echo_n "(cached) " >&6
11652 else
11653 lt_cv_ld_reload_flag='-r'
11654 fi
11655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11656 $as_echo "$lt_cv_ld_reload_flag" >&6; }
11657 reload_flag=$lt_cv_ld_reload_flag
11658 case $reload_flag in
11659 "" | " "*) ;;
11660 *) reload_flag=" $reload_flag" ;;
11661 esac
11662 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11663 case $host_os in
11664 cygwin* | mingw* | pw32* | cegcc*)
11665 if test yes != "$GCC"; then
11666 reload_cmds=false
11667 fi
11668 ;;
11669 darwin*)
11670 if test yes = "$GCC"; then
11671 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
11672 else
11673 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11674 fi
11675 ;;
11676 esac
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686 if test -n "$ac_tool_prefix"; then
11687 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11688 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11690 $as_echo_n "checking for $ac_word... " >&6; }
11691 if ${ac_cv_prog_OBJDUMP+:} false; then :
11692 $as_echo_n "(cached) " >&6
11693 else
11694 if test -n "$OBJDUMP"; then
11695 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11696 else
11697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11698 for as_dir in $PATH
11699 do
11700 IFS=$as_save_IFS
11701 test -z "$as_dir" && as_dir=.
11702 for ac_exec_ext in '' $ac_executable_extensions; do
11703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11704 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11706 break 2
11707 fi
11708 done
11709 done
11710 IFS=$as_save_IFS
11711
11712 fi
11713 fi
11714 OBJDUMP=$ac_cv_prog_OBJDUMP
11715 if test -n "$OBJDUMP"; then
11716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11717 $as_echo "$OBJDUMP" >&6; }
11718 else
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11720 $as_echo "no" >&6; }
11721 fi
11722
11723
11724 fi
11725 if test -z "$ac_cv_prog_OBJDUMP"; then
11726 ac_ct_OBJDUMP=$OBJDUMP
11727 # Extract the first word of "objdump", so it can be a program name with args.
11728 set dummy objdump; ac_word=$2
11729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11730 $as_echo_n "checking for $ac_word... " >&6; }
11731 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11732 $as_echo_n "(cached) " >&6
11733 else
11734 if test -n "$ac_ct_OBJDUMP"; then
11735 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11736 else
11737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11738 for as_dir in $PATH
11739 do
11740 IFS=$as_save_IFS
11741 test -z "$as_dir" && as_dir=.
11742 for ac_exec_ext in '' $ac_executable_extensions; do
11743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11744 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11746 break 2
11747 fi
11748 done
11749 done
11750 IFS=$as_save_IFS
11751
11752 fi
11753 fi
11754 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11755 if test -n "$ac_ct_OBJDUMP"; then
11756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11757 $as_echo "$ac_ct_OBJDUMP" >&6; }
11758 else
11759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11760 $as_echo "no" >&6; }
11761 fi
11762
11763 if test "x$ac_ct_OBJDUMP" = x; then
11764 OBJDUMP="false"
11765 else
11766 case $cross_compiling:$ac_tool_warned in
11767 yes:)
11768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11769 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11770 ac_tool_warned=yes ;;
11771 esac
11772 OBJDUMP=$ac_ct_OBJDUMP
11773 fi
11774 else
11775 OBJDUMP="$ac_cv_prog_OBJDUMP"
11776 fi
11777
11778 test -z "$OBJDUMP" && OBJDUMP=objdump
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11789 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
11790 if ${lt_cv_deplibs_check_method+:} false; then :
11791 $as_echo_n "(cached) " >&6
11792 else
11793 lt_cv_file_magic_cmd='$MAGIC_CMD'
11794 lt_cv_file_magic_test_file=
11795 lt_cv_deplibs_check_method='unknown'
11796 # Need to set the preceding variable on all platforms that support
11797 # interlibrary dependencies.
11798 # 'none' -- dependencies not supported.
11799 # 'unknown' -- same as none, but documents that we really don't know.
11800 # 'pass_all' -- all dependencies passed with no checks.
11801 # 'test_compile' -- check by making test program.
11802 # 'file_magic [[regex]]' -- check by looking for files in library path
11803 # that responds to the $file_magic_cmd with a given extended regex.
11804 # If you have 'file' or equivalent on your system and you're not sure
11805 # whether 'pass_all' will *always* work, you probably want this one.
11806
11807 case $host_os in
11808 aix[4-9]*)
11809 lt_cv_deplibs_check_method=pass_all
11810 ;;
11811
11812 beos*)
11813 lt_cv_deplibs_check_method=pass_all
11814 ;;
11815
11816 bsdi[45]*)
11817 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11818 lt_cv_file_magic_cmd='/usr/bin/file -L'
11819 lt_cv_file_magic_test_file=/shlib/libc.so
11820 ;;
11821
11822 cygwin*)
11823 # func_win32_libid is a shell function defined in ltmain.sh
11824 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11825 lt_cv_file_magic_cmd='func_win32_libid'
11826 ;;
11827
11828 mingw* | pw32*)
11829 # Base MSYS/MinGW do not provide the 'file' command needed by
11830 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11831 # unless we find 'file', for example because we are cross-compiling.
11832 if ( file / ) >/dev/null 2>&1; then
11833 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11834 lt_cv_file_magic_cmd='func_win32_libid'
11835 else
11836 # Keep this pattern in sync with the one in func_win32_libid.
11837 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
11838 lt_cv_file_magic_cmd='$OBJDUMP -f'
11839 fi
11840 ;;
11841
11842 cegcc*)
11843 # use the weaker test based on 'objdump'. See mingw*.
11844 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11845 lt_cv_file_magic_cmd='$OBJDUMP -f'
11846 ;;
11847
11848 darwin* | rhapsody*)
11849 lt_cv_deplibs_check_method=pass_all
11850 ;;
11851
11852 freebsd* | dragonfly*)
11853 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11854 case $host_cpu in
11855 i*86 )
11856 # Not sure whether the presence of OpenBSD here was a mistake.
11857 # Let's accept both of them until this is cleared up.
11858 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11859 lt_cv_file_magic_cmd=/usr/bin/file
11860 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11861 ;;
11862 esac
11863 else
11864 lt_cv_deplibs_check_method=pass_all
11865 fi
11866 ;;
11867
11868 haiku*)
11869 lt_cv_deplibs_check_method=pass_all
11870 ;;
11871
11872 hpux10.20* | hpux11*)
11873 lt_cv_file_magic_cmd=/usr/bin/file
11874 case $host_cpu in
11875 ia64*)
11876 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11877 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11878 ;;
11879 hppa*64*)
11880 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]'
11881 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11882 ;;
11883 *)
11884 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
11885 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11886 ;;
11887 esac
11888 ;;
11889
11890 interix[3-9]*)
11891 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11892 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11893 ;;
11894
11895 irix5* | irix6* | nonstopux*)
11896 case $LD in
11897 *-32|*"-32 ") libmagic=32-bit;;
11898 *-n32|*"-n32 ") libmagic=N32;;
11899 *-64|*"-64 ") libmagic=64-bit;;
11900 *) libmagic=never-match;;
11901 esac
11902 lt_cv_deplibs_check_method=pass_all
11903 ;;
11904
11905 # This must be glibc/ELF.
11906 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11907 lt_cv_deplibs_check_method=pass_all
11908 ;;
11909
11910 netbsd*)
11911 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11912 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11913 else
11914 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11915 fi
11916 ;;
11917
11918 newos6*)
11919 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11920 lt_cv_file_magic_cmd=/usr/bin/file
11921 lt_cv_file_magic_test_file=/usr/lib/libnls.so
11922 ;;
11923
11924 *nto* | *qnx*)
11925 lt_cv_deplibs_check_method=pass_all
11926 ;;
11927
11928 openbsd* | bitrig*)
11929 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11930 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11931 else
11932 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11933 fi
11934 ;;
11935
11936 osf3* | osf4* | osf5*)
11937 lt_cv_deplibs_check_method=pass_all
11938 ;;
11939
11940 rdos*)
11941 lt_cv_deplibs_check_method=pass_all
11942 ;;
11943
11944 solaris*)
11945 lt_cv_deplibs_check_method=pass_all
11946 ;;
11947
11948 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11949 lt_cv_deplibs_check_method=pass_all
11950 ;;
11951
11952 sysv4 | sysv4.3*)
11953 case $host_vendor in
11954 motorola)
11955 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]'
11956 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11957 ;;
11958 ncr)
11959 lt_cv_deplibs_check_method=pass_all
11960 ;;
11961 sequent)
11962 lt_cv_file_magic_cmd='/bin/file'
11963 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11964 ;;
11965 sni)
11966 lt_cv_file_magic_cmd='/bin/file'
11967 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11968 lt_cv_file_magic_test_file=/lib/libc.so
11969 ;;
11970 siemens)
11971 lt_cv_deplibs_check_method=pass_all
11972 ;;
11973 pc)
11974 lt_cv_deplibs_check_method=pass_all
11975 ;;
11976 esac
11977 ;;
11978
11979 tpf*)
11980 lt_cv_deplibs_check_method=pass_all
11981 ;;
11982 os2*)
11983 lt_cv_deplibs_check_method=pass_all
11984 ;;
11985 esac
11986
11987 fi
11988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11989 $as_echo "$lt_cv_deplibs_check_method" >&6; }
11990
11991 file_magic_glob=
11992 want_nocaseglob=no
11993 if test "$build" = "$host"; then
11994 case $host_os in
11995 mingw* | pw32*)
11996 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11997 want_nocaseglob=yes
11998 else
11999 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
12000 fi
12001 ;;
12002 esac
12003 fi
12004
12005 file_magic_cmd=$lt_cv_file_magic_cmd
12006 deplibs_check_method=$lt_cv_deplibs_check_method
12007 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030 if test -n "$ac_tool_prefix"; then
12031 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12032 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12034 $as_echo_n "checking for $ac_word... " >&6; }
12035 if ${ac_cv_prog_DLLTOOL+:} false; then :
12036 $as_echo_n "(cached) " >&6
12037 else
12038 if test -n "$DLLTOOL"; then
12039 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12040 else
12041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12042 for as_dir in $PATH
12043 do
12044 IFS=$as_save_IFS
12045 test -z "$as_dir" && as_dir=.
12046 for ac_exec_ext in '' $ac_executable_extensions; do
12047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12048 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12050 break 2
12051 fi
12052 done
12053 done
12054 IFS=$as_save_IFS
12055
12056 fi
12057 fi
12058 DLLTOOL=$ac_cv_prog_DLLTOOL
12059 if test -n "$DLLTOOL"; then
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12061 $as_echo "$DLLTOOL" >&6; }
12062 else
12063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12064 $as_echo "no" >&6; }
12065 fi
12066
12067
12068 fi
12069 if test -z "$ac_cv_prog_DLLTOOL"; then
12070 ac_ct_DLLTOOL=$DLLTOOL
12071 # Extract the first word of "dlltool", so it can be a program name with args.
12072 set dummy dlltool; ac_word=$2
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12074 $as_echo_n "checking for $ac_word... " >&6; }
12075 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
12076 $as_echo_n "(cached) " >&6
12077 else
12078 if test -n "$ac_ct_DLLTOOL"; then
12079 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12080 else
12081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12082 for as_dir in $PATH
12083 do
12084 IFS=$as_save_IFS
12085 test -z "$as_dir" && as_dir=.
12086 for ac_exec_ext in '' $ac_executable_extensions; do
12087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12088 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12090 break 2
12091 fi
12092 done
12093 done
12094 IFS=$as_save_IFS
12095
12096 fi
12097 fi
12098 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12099 if test -n "$ac_ct_DLLTOOL"; then
12100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12101 $as_echo "$ac_ct_DLLTOOL" >&6; }
12102 else
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12104 $as_echo "no" >&6; }
12105 fi
12106
12107 if test "x$ac_ct_DLLTOOL" = x; then
12108 DLLTOOL="false"
12109 else
12110 case $cross_compiling:$ac_tool_warned in
12111 yes:)
12112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12113 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12114 ac_tool_warned=yes ;;
12115 esac
12116 DLLTOOL=$ac_ct_DLLTOOL
12117 fi
12118 else
12119 DLLTOOL="$ac_cv_prog_DLLTOOL"
12120 fi
12121
12122 test -z "$DLLTOOL" && DLLTOOL=dlltool
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12134 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
12135 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
12136 $as_echo_n "(cached) " >&6
12137 else
12138 lt_cv_sharedlib_from_linklib_cmd='unknown'
12139
12140 case $host_os in
12141 cygwin* | mingw* | pw32* | cegcc*)
12142 # two different shell functions defined in ltmain.sh;
12143 # decide which one to use based on capabilities of $DLLTOOL
12144 case `$DLLTOOL --help 2>&1` in
12145 *--identify-strict*)
12146 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12147 ;;
12148 *)
12149 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12150 ;;
12151 esac
12152 ;;
12153 *)
12154 # fallback: assume linklib IS sharedlib
12155 lt_cv_sharedlib_from_linklib_cmd=$ECHO
12156 ;;
12157 esac
12158
12159 fi
12160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12161 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12162 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12163 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12164
12165
12166
12167
12168
12169
12170
12171 if test -n "$ac_tool_prefix"; then
12172 for ac_prog in ar
12173 do
12174 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12175 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12177 $as_echo_n "checking for $ac_word... " >&6; }
12178 if ${ac_cv_prog_AR+:} false; then :
12179 $as_echo_n "(cached) " >&6
12180 else
12181 if test -n "$AR"; then
12182 ac_cv_prog_AR="$AR" # Let the user override the test.
12183 else
12184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12185 for as_dir in $PATH
12186 do
12187 IFS=$as_save_IFS
12188 test -z "$as_dir" && as_dir=.
12189 for ac_exec_ext in '' $ac_executable_extensions; do
12190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12191 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
12192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12193 break 2
12194 fi
12195 done
12196 done
12197 IFS=$as_save_IFS
12198
12199 fi
12200 fi
12201 AR=$ac_cv_prog_AR
12202 if test -n "$AR"; then
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12204 $as_echo "$AR" >&6; }
12205 else
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12207 $as_echo "no" >&6; }
12208 fi
12209
12210
12211 test -n "$AR" && break
12212 done
12213 fi
12214 if test -z "$AR"; then
12215 ac_ct_AR=$AR
12216 for ac_prog in ar
12217 do
12218 # Extract the first word of "$ac_prog", so it can be a program name with args.
12219 set dummy $ac_prog; ac_word=$2
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12221 $as_echo_n "checking for $ac_word... " >&6; }
12222 if ${ac_cv_prog_ac_ct_AR+:} false; then :
12223 $as_echo_n "(cached) " >&6
12224 else
12225 if test -n "$ac_ct_AR"; then
12226 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12227 else
12228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12229 for as_dir in $PATH
12230 do
12231 IFS=$as_save_IFS
12232 test -z "$as_dir" && as_dir=.
12233 for ac_exec_ext in '' $ac_executable_extensions; do
12234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12235 ac_cv_prog_ac_ct_AR="$ac_prog"
12236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12237 break 2
12238 fi
12239 done
12240 done
12241 IFS=$as_save_IFS
12242
12243 fi
12244 fi
12245 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12246 if test -n "$ac_ct_AR"; then
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12248 $as_echo "$ac_ct_AR" >&6; }
12249 else
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12251 $as_echo "no" >&6; }
12252 fi
12253
12254
12255 test -n "$ac_ct_AR" && break
12256 done
12257
12258 if test "x$ac_ct_AR" = x; then
12259 AR="false"
12260 else
12261 case $cross_compiling:$ac_tool_warned in
12262 yes:)
12263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12264 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12265 ac_tool_warned=yes ;;
12266 esac
12267 AR=$ac_ct_AR
12268 fi
12269 fi
12270
12271 : ${AR=ar}
12272 : ${AR_FLAGS=cru}
12273
12274
12275
12276
12277
12278
12279
12280
12281
12282
12283
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12285 $as_echo_n "checking for archiver @FILE support... " >&6; }
12286 if ${lt_cv_ar_at_file+:} false; then :
12287 $as_echo_n "(cached) " >&6
12288 else
12289 lt_cv_ar_at_file=no
12290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12291 /* end confdefs.h. */
12292
12293 int
12294 main ()
12295 {
12296
12297 ;
12298 return 0;
12299 }
12300 _ACEOF
12301 if ac_fn_c_try_compile "$LINENO"; then :
12302 echo conftest.$ac_objext > conftest.lst
12303 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12304 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12305 (eval $lt_ar_try) 2>&5
12306 ac_status=$?
12307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12308 test $ac_status = 0; }
12309 if test 0 -eq "$ac_status"; then
12310 # Ensure the archiver fails upon bogus file names.
12311 rm -f conftest.$ac_objext libconftest.a
12312 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12313 (eval $lt_ar_try) 2>&5
12314 ac_status=$?
12315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12316 test $ac_status = 0; }
12317 if test 0 -ne "$ac_status"; then
12318 lt_cv_ar_at_file=@
12319 fi
12320 fi
12321 rm -f conftest.* libconftest.a
12322
12323 fi
12324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12325
12326 fi
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12328 $as_echo "$lt_cv_ar_at_file" >&6; }
12329
12330 if test no = "$lt_cv_ar_at_file"; then
12331 archiver_list_spec=
12332 else
12333 archiver_list_spec=$lt_cv_ar_at_file
12334 fi
12335
12336
12337
12338
12339
12340
12341
12342 if test -n "$ac_tool_prefix"; then
12343 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12344 set dummy ${ac_tool_prefix}strip; ac_word=$2
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12346 $as_echo_n "checking for $ac_word... " >&6; }
12347 if ${ac_cv_prog_STRIP+:} false; then :
12348 $as_echo_n "(cached) " >&6
12349 else
12350 if test -n "$STRIP"; then
12351 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12352 else
12353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12354 for as_dir in $PATH
12355 do
12356 IFS=$as_save_IFS
12357 test -z "$as_dir" && as_dir=.
12358 for ac_exec_ext in '' $ac_executable_extensions; do
12359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12360 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12362 break 2
12363 fi
12364 done
12365 done
12366 IFS=$as_save_IFS
12367
12368 fi
12369 fi
12370 STRIP=$ac_cv_prog_STRIP
12371 if test -n "$STRIP"; then
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12373 $as_echo "$STRIP" >&6; }
12374 else
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12376 $as_echo "no" >&6; }
12377 fi
12378
12379
12380 fi
12381 if test -z "$ac_cv_prog_STRIP"; then
12382 ac_ct_STRIP=$STRIP
12383 # Extract the first word of "strip", so it can be a program name with args.
12384 set dummy strip; ac_word=$2
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12386 $as_echo_n "checking for $ac_word... " >&6; }
12387 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12388 $as_echo_n "(cached) " >&6
12389 else
12390 if test -n "$ac_ct_STRIP"; then
12391 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12392 else
12393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12394 for as_dir in $PATH
12395 do
12396 IFS=$as_save_IFS
12397 test -z "$as_dir" && as_dir=.
12398 for ac_exec_ext in '' $ac_executable_extensions; do
12399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12400 ac_cv_prog_ac_ct_STRIP="strip"
12401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12402 break 2
12403 fi
12404 done
12405 done
12406 IFS=$as_save_IFS
12407
12408 fi
12409 fi
12410 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12411 if test -n "$ac_ct_STRIP"; then
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12413 $as_echo "$ac_ct_STRIP" >&6; }
12414 else
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12416 $as_echo "no" >&6; }
12417 fi
12418
12419 if test "x$ac_ct_STRIP" = x; then
12420 STRIP=":"
12421 else
12422 case $cross_compiling:$ac_tool_warned in
12423 yes:)
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12425 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12426 ac_tool_warned=yes ;;
12427 esac
12428 STRIP=$ac_ct_STRIP
12429 fi
12430 else
12431 STRIP="$ac_cv_prog_STRIP"
12432 fi
12433
12434 test -z "$STRIP" && STRIP=:
12435
12436
12437
12438
12439
12440
12441 if test -n "$ac_tool_prefix"; then
12442 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12443 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12445 $as_echo_n "checking for $ac_word... " >&6; }
12446 if ${ac_cv_prog_RANLIB+:} false; then :
12447 $as_echo_n "(cached) " >&6
12448 else
12449 if test -n "$RANLIB"; then
12450 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12451 else
12452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12453 for as_dir in $PATH
12454 do
12455 IFS=$as_save_IFS
12456 test -z "$as_dir" && as_dir=.
12457 for ac_exec_ext in '' $ac_executable_extensions; do
12458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12459 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12461 break 2
12462 fi
12463 done
12464 done
12465 IFS=$as_save_IFS
12466
12467 fi
12468 fi
12469 RANLIB=$ac_cv_prog_RANLIB
12470 if test -n "$RANLIB"; then
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12472 $as_echo "$RANLIB" >&6; }
12473 else
12474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12475 $as_echo "no" >&6; }
12476 fi
12477
12478
12479 fi
12480 if test -z "$ac_cv_prog_RANLIB"; then
12481 ac_ct_RANLIB=$RANLIB
12482 # Extract the first word of "ranlib", so it can be a program name with args.
12483 set dummy ranlib; ac_word=$2
12484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12485 $as_echo_n "checking for $ac_word... " >&6; }
12486 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12487 $as_echo_n "(cached) " >&6
12488 else
12489 if test -n "$ac_ct_RANLIB"; then
12490 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12491 else
12492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12493 for as_dir in $PATH
12494 do
12495 IFS=$as_save_IFS
12496 test -z "$as_dir" && as_dir=.
12497 for ac_exec_ext in '' $ac_executable_extensions; do
12498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12499 ac_cv_prog_ac_ct_RANLIB="ranlib"
12500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12501 break 2
12502 fi
12503 done
12504 done
12505 IFS=$as_save_IFS
12506
12507 fi
12508 fi
12509 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12510 if test -n "$ac_ct_RANLIB"; then
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12512 $as_echo "$ac_ct_RANLIB" >&6; }
12513 else
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12515 $as_echo "no" >&6; }
12516 fi
12517
12518 if test "x$ac_ct_RANLIB" = x; then
12519 RANLIB=":"
12520 else
12521 case $cross_compiling:$ac_tool_warned in
12522 yes:)
12523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12524 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12525 ac_tool_warned=yes ;;
12526 esac
12527 RANLIB=$ac_ct_RANLIB
12528 fi
12529 else
12530 RANLIB="$ac_cv_prog_RANLIB"
12531 fi
12532
12533 test -z "$RANLIB" && RANLIB=:
12534
12535
12536
12537
12538
12539
12540 # Determine commands to create old-style static archives.
12541 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12542 old_postinstall_cmds='chmod 644 $oldlib'
12543 old_postuninstall_cmds=
12544
12545 if test -n "$RANLIB"; then
12546 case $host_os in
12547 bitrig* | openbsd*)
12548 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
12549 ;;
12550 *)
12551 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
12552 ;;
12553 esac
12554 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
12555 fi
12556
12557 case $host_os in
12558 darwin*)
12559 lock_old_archive_extraction=yes ;;
12560 *)
12561 lock_old_archive_extraction=no ;;
12562 esac
12563
12564
12565
12566
12567
12568
12569
12570
12571
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581
12582
12583
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602 # If no C compiler was specified, use CC.
12603 LTCC=${LTCC-"$CC"}
12604
12605 # If no C compiler flags were specified, use CFLAGS.
12606 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12607
12608 # Allow CC to be a program name with arguments.
12609 compiler=$CC
12610
12611
12612 # Check for command to grab the raw symbol name followed by C symbol from nm.
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12614 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12615 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
12616 $as_echo_n "(cached) " >&6
12617 else
12618
12619 # These are sane defaults that work on at least a few old systems.
12620 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
12621
12622 # Character class describing NM global symbol codes.
12623 symcode='[BCDEGRST]'
12624
12625 # Regexp to match symbols that can be accessed directly from C.
12626 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12627
12628 # Define system-specific variables.
12629 case $host_os in
12630 aix*)
12631 symcode='[BCDT]'
12632 ;;
12633 cygwin* | mingw* | pw32* | cegcc*)
12634 symcode='[ABCDGISTW]'
12635 ;;
12636 hpux*)
12637 if test ia64 = "$host_cpu"; then
12638 symcode='[ABCDEGRST]'
12639 fi
12640 ;;
12641 irix* | nonstopux*)
12642 symcode='[BCDEGRST]'
12643 ;;
12644 osf*)
12645 symcode='[BCDEGQRST]'
12646 ;;
12647 solaris*)
12648 symcode='[BDRT]'
12649 ;;
12650 sco3.2v5*)
12651 symcode='[DT]'
12652 ;;
12653 sysv4.2uw2*)
12654 symcode='[DT]'
12655 ;;
12656 sysv5* | sco5v6* | unixware* | OpenUNIX*)
12657 symcode='[ABDT]'
12658 ;;
12659 sysv4)
12660 symcode='[DFNSTU]'
12661 ;;
12662 esac
12663
12664 # If we're using GNU nm, then use its standard symbol codes.
12665 case `$NM -V 2>&1` in
12666 *GNU* | *'with BFD'*)
12667 symcode='[ABCDGIRSTW]' ;;
12668 esac
12669
12670 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12671 # Gets list of data symbols to import.
12672 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
12673 # Adjust the below global symbol transforms to fixup imported variables.
12674 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
12675 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
12676 lt_c_name_lib_hook="\
12677 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
12678 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
12679 else
12680 # Disable hooks by default.
12681 lt_cv_sys_global_symbol_to_import=
12682 lt_cdecl_hook=
12683 lt_c_name_hook=
12684 lt_c_name_lib_hook=
12685 fi
12686
12687 # Transform an extracted symbol line into a proper C declaration.
12688 # Some systems (esp. on ia64) link data and code symbols differently,
12689 # so use this general approach.
12690 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
12691 $lt_cdecl_hook\
12692 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
12693 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
12694
12695 # Transform an extracted symbol line into symbol name and symbol address
12696 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
12697 $lt_c_name_hook\
12698 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
12699 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
12700
12701 # Transform an extracted symbol line into symbol name with lib prefix and
12702 # symbol address.
12703 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
12704 $lt_c_name_lib_hook\
12705 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
12706 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
12707 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
12708
12709 # Handle CRLF in mingw tool chain
12710 opt_cr=
12711 case $build_os in
12712 mingw*)
12713 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12714 ;;
12715 esac
12716
12717 # Try without a prefix underscore, then with it.
12718 for ac_symprfx in "" "_"; do
12719
12720 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12721 symxfrm="\\1 $ac_symprfx\\2 \\2"
12722
12723 # Write the raw and C identifiers.
12724 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12725 # Fake it for dumpbin and say T for any non-static function,
12726 # D for any global variable and I for any imported variable.
12727 # Also find C++ and __fastcall symbols from MSVC++,
12728 # which start with @ or ?.
12729 lt_cv_sys_global_symbol_pipe="$AWK '"\
12730 " {last_section=section; section=\$ 3};"\
12731 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
12732 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12733 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
12734 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
12735 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
12736 " \$ 0!~/External *\|/{next};"\
12737 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12738 " {if(hide[section]) next};"\
12739 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
12740 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
12741 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
12742 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
12743 " ' prfx=^$ac_symprfx"
12744 else
12745 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12746 fi
12747 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
12748
12749 # Check to see that the pipe works correctly.
12750 pipe_works=no
12751
12752 rm -f conftest*
12753 cat > conftest.$ac_ext <<_LT_EOF
12754 #ifdef __cplusplus
12755 extern "C" {
12756 #endif
12757 char nm_test_var;
12758 void nm_test_func(void);
12759 void nm_test_func(void){}
12760 #ifdef __cplusplus
12761 }
12762 #endif
12763 int main(){nm_test_var='a';nm_test_func();return(0);}
12764 _LT_EOF
12765
12766 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12767 (eval $ac_compile) 2>&5
12768 ac_status=$?
12769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12770 test $ac_status = 0; }; then
12771 # Now try to grab the symbols.
12772 nlist=conftest.nm
12773 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12774 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12775 ac_status=$?
12776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12777 test $ac_status = 0; } && test -s "$nlist"; then
12778 # Try sorting and uniquifying the output.
12779 if sort "$nlist" | uniq > "$nlist"T; then
12780 mv -f "$nlist"T "$nlist"
12781 else
12782 rm -f "$nlist"T
12783 fi
12784
12785 # Make sure that we snagged all the symbols we need.
12786 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12787 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12788 cat <<_LT_EOF > conftest.$ac_ext
12789 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
12790 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
12791 /* DATA imports from DLLs on WIN32 can't be const, because runtime
12792 relocations are performed -- see ld's documentation on pseudo-relocs. */
12793 # define LT_DLSYM_CONST
12794 #elif defined __osf__
12795 /* This system does not cope well with relocations in const data. */
12796 # define LT_DLSYM_CONST
12797 #else
12798 # define LT_DLSYM_CONST const
12799 #endif
12800
12801 #ifdef __cplusplus
12802 extern "C" {
12803 #endif
12804
12805 _LT_EOF
12806 # Now generate the symbol file.
12807 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12808
12809 cat <<_LT_EOF >> conftest.$ac_ext
12810
12811 /* The mapping between symbol names and symbols. */
12812 LT_DLSYM_CONST struct {
12813 const char *name;
12814 void *address;
12815 }
12816 lt__PROGRAM__LTX_preloaded_symbols[] =
12817 {
12818 { "@PROGRAM@", (void *) 0 },
12819 _LT_EOF
12820 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12821 cat <<\_LT_EOF >> conftest.$ac_ext
12822 {0, (void *) 0}
12823 };
12824
12825 /* This works around a problem in FreeBSD linker */
12826 #ifdef FREEBSD_WORKAROUND
12827 static const void *lt_preloaded_setup() {
12828 return lt__PROGRAM__LTX_preloaded_symbols;
12829 }
12830 #endif
12831
12832 #ifdef __cplusplus
12833 }
12834 #endif
12835 _LT_EOF
12836 # Now try linking the two files.
12837 mv conftest.$ac_objext conftstm.$ac_objext
12838 lt_globsym_save_LIBS=$LIBS
12839 lt_globsym_save_CFLAGS=$CFLAGS
12840 LIBS=conftstm.$ac_objext
12841 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12842 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12843 (eval $ac_link) 2>&5
12844 ac_status=$?
12845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12846 test $ac_status = 0; } && test -s conftest$ac_exeext; then
12847 pipe_works=yes
12848 fi
12849 LIBS=$lt_globsym_save_LIBS
12850 CFLAGS=$lt_globsym_save_CFLAGS
12851 else
12852 echo "cannot find nm_test_func in $nlist" >&5
12853 fi
12854 else
12855 echo "cannot find nm_test_var in $nlist" >&5
12856 fi
12857 else
12858 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12859 fi
12860 else
12861 echo "$progname: failed program was:" >&5
12862 cat conftest.$ac_ext >&5
12863 fi
12864 rm -rf conftest* conftst*
12865
12866 # Do not use the global_symbol_pipe unless it works.
12867 if test yes = "$pipe_works"; then
12868 break
12869 else
12870 lt_cv_sys_global_symbol_pipe=
12871 fi
12872 done
12873
12874 fi
12875
12876 if test -z "$lt_cv_sys_global_symbol_pipe"; then
12877 lt_cv_sys_global_symbol_to_cdecl=
12878 fi
12879 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12881 $as_echo "failed" >&6; }
12882 else
12883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12884 $as_echo "ok" >&6; }
12885 fi
12886
12887 # Response file support.
12888 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12889 nm_file_list_spec='@'
12890 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12891 nm_file_list_spec='@'
12892 fi
12893
12894
12895
12896
12897
12898
12899
12900
12901
12902
12903
12904
12905
12906
12907
12908
12909
12910
12911
12912
12913
12914
12915
12916
12917
12918
12919
12920
12921
12922
12923
12924
12925
12926
12927
12928
12929
12930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12931 $as_echo_n "checking for sysroot... " >&6; }
12932
12933 # Check whether --with-sysroot was given.
12934 if test "${with_sysroot+set}" = set; then :
12935 withval=$with_sysroot;
12936 else
12937 with_sysroot=no
12938 fi
12939
12940
12941 lt_sysroot=
12942 case $with_sysroot in #(
12943 yes)
12944 if test yes = "$GCC"; then
12945 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12946 fi
12947 ;; #(
12948 /*)
12949 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12950 ;; #(
12951 no|'')
12952 ;; #(
12953 *)
12954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
12955 $as_echo "$with_sysroot" >&6; }
12956 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12957 ;;
12958 esac
12959
12960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12961 $as_echo "${lt_sysroot:-no}" >&6; }
12962
12963
12964
12965
12966
12967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
12968 $as_echo_n "checking for a working dd... " >&6; }
12969 if ${ac_cv_path_lt_DD+:} false; then :
12970 $as_echo_n "(cached) " >&6
12971 else
12972 printf 0123456789abcdef0123456789abcdef >conftest.i
12973 cat conftest.i conftest.i >conftest2.i
12974 : ${lt_DD:=$DD}
12975 if test -z "$lt_DD"; then
12976 ac_path_lt_DD_found=false
12977 # Loop through the user's path and test for each of PROGNAME-LIST
12978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12979 for as_dir in $PATH
12980 do
12981 IFS=$as_save_IFS
12982 test -z "$as_dir" && as_dir=.
12983 for ac_prog in dd; do
12984 for ac_exec_ext in '' $ac_executable_extensions; do
12985 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
12986 as_fn_executable_p "$ac_path_lt_DD" || continue
12987 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
12988 cmp -s conftest.i conftest.out \
12989 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
12990 fi
12991 $ac_path_lt_DD_found && break 3
12992 done
12993 done
12994 done
12995 IFS=$as_save_IFS
12996 if test -z "$ac_cv_path_lt_DD"; then
12997 :
12998 fi
12999 else
13000 ac_cv_path_lt_DD=$lt_DD
13001 fi
13002
13003 rm -f conftest.i conftest2.i conftest.out
13004 fi
13005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
13006 $as_echo "$ac_cv_path_lt_DD" >&6; }
13007
13008
13009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
13010 $as_echo_n "checking how to truncate binary pipes... " >&6; }
13011 if ${lt_cv_truncate_bin+:} false; then :
13012 $as_echo_n "(cached) " >&6
13013 else
13014 printf 0123456789abcdef0123456789abcdef >conftest.i
13015 cat conftest.i conftest.i >conftest2.i
13016 lt_cv_truncate_bin=
13017 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
13018 cmp -s conftest.i conftest.out \
13019 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
13020 fi
13021 rm -f conftest.i conftest2.i conftest.out
13022 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
13023 fi
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
13025 $as_echo "$lt_cv_truncate_bin" >&6; }
13026
13027
13028
13029
13030
13031
13032 # Check whether --enable-libtool-lock was given.
13033 if test "${enable_libtool_lock+set}" = set; then :
13034 enableval=$enable_libtool_lock;
13035 fi
13036
13037 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
13038
13039 # Some flags need to be propagated to the compiler or linker for good
13040 # libtool support.
13041 case $host in
13042 ia64-*-hpux*)
13043 # Find out what ABI is being produced by ac_compile, and set mode
13044 # options accordingly.
13045 echo 'int i;' > conftest.$ac_ext
13046 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13047 (eval $ac_compile) 2>&5
13048 ac_status=$?
13049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13050 test $ac_status = 0; }; then
13051 case `/usr/bin/file conftest.$ac_objext` in
13052 *ELF-32*)
13053 HPUX_IA64_MODE=32
13054 ;;
13055 *ELF-64*)
13056 HPUX_IA64_MODE=64
13057 ;;
13058 esac
13059 fi
13060 rm -rf conftest*
13061 ;;
13062 *-*-irix6*)
13063 # Find out what ABI is being produced by ac_compile, and set linker
13064 # options accordingly.
13065 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13066 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13067 (eval $ac_compile) 2>&5
13068 ac_status=$?
13069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13070 test $ac_status = 0; }; then
13071 if test yes = "$lt_cv_prog_gnu_ld"; then
13072 case `/usr/bin/file conftest.$ac_objext` in
13073 *32-bit*)
13074 LD="${LD-ld} -melf32bsmip"
13075 ;;
13076 *N32*)
13077 LD="${LD-ld} -melf32bmipn32"
13078 ;;
13079 *64-bit*)
13080 LD="${LD-ld} -melf64bmip"
13081 ;;
13082 esac
13083 else
13084 case `/usr/bin/file conftest.$ac_objext` in
13085 *32-bit*)
13086 LD="${LD-ld} -32"
13087 ;;
13088 *N32*)
13089 LD="${LD-ld} -n32"
13090 ;;
13091 *64-bit*)
13092 LD="${LD-ld} -64"
13093 ;;
13094 esac
13095 fi
13096 fi
13097 rm -rf conftest*
13098 ;;
13099
13100 mips64*-*linux*)
13101 # Find out what ABI is being produced by ac_compile, and set linker
13102 # options accordingly.
13103 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13104 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13105 (eval $ac_compile) 2>&5
13106 ac_status=$?
13107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13108 test $ac_status = 0; }; then
13109 emul=elf
13110 case `/usr/bin/file conftest.$ac_objext` in
13111 *32-bit*)
13112 emul="${emul}32"
13113 ;;
13114 *64-bit*)
13115 emul="${emul}64"
13116 ;;
13117 esac
13118 case `/usr/bin/file conftest.$ac_objext` in
13119 *MSB*)
13120 emul="${emul}btsmip"
13121 ;;
13122 *LSB*)
13123 emul="${emul}ltsmip"
13124 ;;
13125 esac
13126 case `/usr/bin/file conftest.$ac_objext` in
13127 *N32*)
13128 emul="${emul}n32"
13129 ;;
13130 esac
13131 LD="${LD-ld} -m $emul"
13132 fi
13133 rm -rf conftest*
13134 ;;
13135
13136 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13137 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13138 # Find out what ABI is being produced by ac_compile, and set linker
13139 # options accordingly. Note that the listed cases only cover the
13140 # situations where additional linker options are needed (such as when
13141 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
13142 # vice versa); the common cases where no linker options are needed do
13143 # not appear in the list.
13144 echo 'int i;' > conftest.$ac_ext
13145 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13146 (eval $ac_compile) 2>&5
13147 ac_status=$?
13148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13149 test $ac_status = 0; }; then
13150 case `/usr/bin/file conftest.o` in
13151 *32-bit*)
13152 case $host in
13153 x86_64-*kfreebsd*-gnu)
13154 LD="${LD-ld} -m elf_i386_fbsd"
13155 ;;
13156 x86_64-*linux*)
13157 case `/usr/bin/file conftest.o` in
13158 *x86-64*)
13159 LD="${LD-ld} -m elf32_x86_64"
13160 ;;
13161 *)
13162 LD="${LD-ld} -m elf_i386"
13163 ;;
13164 esac
13165 ;;
13166 powerpc64le-*linux*)
13167 LD="${LD-ld} -m elf32lppclinux"
13168 ;;
13169 powerpc64-*linux*)
13170 LD="${LD-ld} -m elf32ppclinux"
13171 ;;
13172 s390x-*linux*)
13173 LD="${LD-ld} -m elf_s390"
13174 ;;
13175 sparc64-*linux*)
13176 LD="${LD-ld} -m elf32_sparc"
13177 ;;
13178 esac
13179 ;;
13180 *64-bit*)
13181 case $host in
13182 x86_64-*kfreebsd*-gnu)
13183 LD="${LD-ld} -m elf_x86_64_fbsd"
13184 ;;
13185 x86_64-*linux*)
13186 LD="${LD-ld} -m elf_x86_64"
13187 ;;
13188 powerpcle-*linux*)
13189 LD="${LD-ld} -m elf64lppc"
13190 ;;
13191 powerpc-*linux*)
13192 LD="${LD-ld} -m elf64ppc"
13193 ;;
13194 s390*-*linux*|s390*-*tpf*)
13195 LD="${LD-ld} -m elf64_s390"
13196 ;;
13197 sparc*-*linux*)
13198 LD="${LD-ld} -m elf64_sparc"
13199 ;;
13200 esac
13201 ;;
13202 esac
13203 fi
13204 rm -rf conftest*
13205 ;;
13206
13207 *-*-sco3.2v5*)
13208 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13209 SAVE_CFLAGS=$CFLAGS
13210 CFLAGS="$CFLAGS -belf"
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13212 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13213 if ${lt_cv_cc_needs_belf+:} false; then :
13214 $as_echo_n "(cached) " >&6
13215 else
13216 ac_ext=c
13217 ac_cpp='$CPP $CPPFLAGS'
13218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13221
13222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13223 /* end confdefs.h. */
13224
13225 int
13226 main ()
13227 {
13228
13229 ;
13230 return 0;
13231 }
13232 _ACEOF
13233 if ac_fn_c_try_link "$LINENO"; then :
13234 lt_cv_cc_needs_belf=yes
13235 else
13236 lt_cv_cc_needs_belf=no
13237 fi
13238 rm -f core conftest.err conftest.$ac_objext \
13239 conftest$ac_exeext conftest.$ac_ext
13240 ac_ext=c
13241 ac_cpp='$CPP $CPPFLAGS'
13242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13245
13246 fi
13247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13248 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13249 if test yes != "$lt_cv_cc_needs_belf"; then
13250 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13251 CFLAGS=$SAVE_CFLAGS
13252 fi
13253 ;;
13254 *-*solaris*)
13255 # Find out what ABI is being produced by ac_compile, and set linker
13256 # options accordingly.
13257 echo 'int i;' > conftest.$ac_ext
13258 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13259 (eval $ac_compile) 2>&5
13260 ac_status=$?
13261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13262 test $ac_status = 0; }; then
13263 case `/usr/bin/file conftest.o` in
13264 *64-bit*)
13265 case $lt_cv_prog_gnu_ld in
13266 yes*)
13267 case $host in
13268 i?86-*-solaris*|x86_64-*-solaris*)
13269 LD="${LD-ld} -m elf_x86_64"
13270 ;;
13271 sparc*-*-solaris*)
13272 LD="${LD-ld} -m elf64_sparc"
13273 ;;
13274 esac
13275 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
13276 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
13277 LD=${LD-ld}_sol2
13278 fi
13279 ;;
13280 *)
13281 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13282 LD="${LD-ld} -64"
13283 fi
13284 ;;
13285 esac
13286 ;;
13287 esac
13288 fi
13289 rm -rf conftest*
13290 ;;
13291 esac
13292
13293 need_locks=$enable_libtool_lock
13294
13295 if test -n "$ac_tool_prefix"; then
13296 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
13297 set dummy ${ac_tool_prefix}mt; ac_word=$2
13298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13299 $as_echo_n "checking for $ac_word... " >&6; }
13300 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
13301 $as_echo_n "(cached) " >&6
13302 else
13303 if test -n "$MANIFEST_TOOL"; then
13304 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
13305 else
13306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13307 for as_dir in $PATH
13308 do
13309 IFS=$as_save_IFS
13310 test -z "$as_dir" && as_dir=.
13311 for ac_exec_ext in '' $ac_executable_extensions; do
13312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13313 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
13314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13315 break 2
13316 fi
13317 done
13318 done
13319 IFS=$as_save_IFS
13320
13321 fi
13322 fi
13323 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
13324 if test -n "$MANIFEST_TOOL"; then
13325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
13326 $as_echo "$MANIFEST_TOOL" >&6; }
13327 else
13328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13329 $as_echo "no" >&6; }
13330 fi
13331
13332
13333 fi
13334 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
13335 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
13336 # Extract the first word of "mt", so it can be a program name with args.
13337 set dummy mt; ac_word=$2
13338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13339 $as_echo_n "checking for $ac_word... " >&6; }
13340 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
13341 $as_echo_n "(cached) " >&6
13342 else
13343 if test -n "$ac_ct_MANIFEST_TOOL"; then
13344 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13345 else
13346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13347 for as_dir in $PATH
13348 do
13349 IFS=$as_save_IFS
13350 test -z "$as_dir" && as_dir=.
13351 for ac_exec_ext in '' $ac_executable_extensions; do
13352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13353 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13355 break 2
13356 fi
13357 done
13358 done
13359 IFS=$as_save_IFS
13360
13361 fi
13362 fi
13363 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13364 if test -n "$ac_ct_MANIFEST_TOOL"; then
13365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13366 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
13367 else
13368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13369 $as_echo "no" >&6; }
13370 fi
13371
13372 if test "x$ac_ct_MANIFEST_TOOL" = x; then
13373 MANIFEST_TOOL=":"
13374 else
13375 case $cross_compiling:$ac_tool_warned in
13376 yes:)
13377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13378 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13379 ac_tool_warned=yes ;;
13380 esac
13381 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13382 fi
13383 else
13384 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13385 fi
13386
13387 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13389 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13390 if ${lt_cv_path_mainfest_tool+:} false; then :
13391 $as_echo_n "(cached) " >&6
13392 else
13393 lt_cv_path_mainfest_tool=no
13394 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13395 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13396 cat conftest.err >&5
13397 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13398 lt_cv_path_mainfest_tool=yes
13399 fi
13400 rm -f conftest*
13401 fi
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13403 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
13404 if test yes != "$lt_cv_path_mainfest_tool"; then
13405 MANIFEST_TOOL=:
13406 fi
13407
13408
13409
13410
13411
13412
13413 case $host_os in
13414 rhapsody* | darwin*)
13415 if test -n "$ac_tool_prefix"; then
13416 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13417 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13419 $as_echo_n "checking for $ac_word... " >&6; }
13420 if ${ac_cv_prog_DSYMUTIL+:} false; then :
13421 $as_echo_n "(cached) " >&6
13422 else
13423 if test -n "$DSYMUTIL"; then
13424 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13425 else
13426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13427 for as_dir in $PATH
13428 do
13429 IFS=$as_save_IFS
13430 test -z "$as_dir" && as_dir=.
13431 for ac_exec_ext in '' $ac_executable_extensions; do
13432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13433 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13435 break 2
13436 fi
13437 done
13438 done
13439 IFS=$as_save_IFS
13440
13441 fi
13442 fi
13443 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13444 if test -n "$DSYMUTIL"; then
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13446 $as_echo "$DSYMUTIL" >&6; }
13447 else
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13449 $as_echo "no" >&6; }
13450 fi
13451
13452
13453 fi
13454 if test -z "$ac_cv_prog_DSYMUTIL"; then
13455 ac_ct_DSYMUTIL=$DSYMUTIL
13456 # Extract the first word of "dsymutil", so it can be a program name with args.
13457 set dummy dsymutil; ac_word=$2
13458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13459 $as_echo_n "checking for $ac_word... " >&6; }
13460 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
13461 $as_echo_n "(cached) " >&6
13462 else
13463 if test -n "$ac_ct_DSYMUTIL"; then
13464 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13465 else
13466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13467 for as_dir in $PATH
13468 do
13469 IFS=$as_save_IFS
13470 test -z "$as_dir" && as_dir=.
13471 for ac_exec_ext in '' $ac_executable_extensions; do
13472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13473 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13475 break 2
13476 fi
13477 done
13478 done
13479 IFS=$as_save_IFS
13480
13481 fi
13482 fi
13483 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13484 if test -n "$ac_ct_DSYMUTIL"; then
13485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13486 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13487 else
13488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13489 $as_echo "no" >&6; }
13490 fi
13491
13492 if test "x$ac_ct_DSYMUTIL" = x; then
13493 DSYMUTIL=":"
13494 else
13495 case $cross_compiling:$ac_tool_warned in
13496 yes:)
13497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13498 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13499 ac_tool_warned=yes ;;
13500 esac
13501 DSYMUTIL=$ac_ct_DSYMUTIL
13502 fi
13503 else
13504 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13505 fi
13506
13507 if test -n "$ac_tool_prefix"; then
13508 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13509 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13511 $as_echo_n "checking for $ac_word... " >&6; }
13512 if ${ac_cv_prog_NMEDIT+:} false; then :
13513 $as_echo_n "(cached) " >&6
13514 else
13515 if test -n "$NMEDIT"; then
13516 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13517 else
13518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13519 for as_dir in $PATH
13520 do
13521 IFS=$as_save_IFS
13522 test -z "$as_dir" && as_dir=.
13523 for ac_exec_ext in '' $ac_executable_extensions; do
13524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13525 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13527 break 2
13528 fi
13529 done
13530 done
13531 IFS=$as_save_IFS
13532
13533 fi
13534 fi
13535 NMEDIT=$ac_cv_prog_NMEDIT
13536 if test -n "$NMEDIT"; then
13537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13538 $as_echo "$NMEDIT" >&6; }
13539 else
13540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13541 $as_echo "no" >&6; }
13542 fi
13543
13544
13545 fi
13546 if test -z "$ac_cv_prog_NMEDIT"; then
13547 ac_ct_NMEDIT=$NMEDIT
13548 # Extract the first word of "nmedit", so it can be a program name with args.
13549 set dummy nmedit; ac_word=$2
13550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13551 $as_echo_n "checking for $ac_word... " >&6; }
13552 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
13553 $as_echo_n "(cached) " >&6
13554 else
13555 if test -n "$ac_ct_NMEDIT"; then
13556 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13557 else
13558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13559 for as_dir in $PATH
13560 do
13561 IFS=$as_save_IFS
13562 test -z "$as_dir" && as_dir=.
13563 for ac_exec_ext in '' $ac_executable_extensions; do
13564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13565 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13567 break 2
13568 fi
13569 done
13570 done
13571 IFS=$as_save_IFS
13572
13573 fi
13574 fi
13575 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13576 if test -n "$ac_ct_NMEDIT"; then
13577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13578 $as_echo "$ac_ct_NMEDIT" >&6; }
13579 else
13580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13581 $as_echo "no" >&6; }
13582 fi
13583
13584 if test "x$ac_ct_NMEDIT" = x; then
13585 NMEDIT=":"
13586 else
13587 case $cross_compiling:$ac_tool_warned in
13588 yes:)
13589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13590 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13591 ac_tool_warned=yes ;;
13592 esac
13593 NMEDIT=$ac_ct_NMEDIT
13594 fi
13595 else
13596 NMEDIT="$ac_cv_prog_NMEDIT"
13597 fi
13598
13599 if test -n "$ac_tool_prefix"; then
13600 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13601 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13603 $as_echo_n "checking for $ac_word... " >&6; }
13604 if ${ac_cv_prog_LIPO+:} false; then :
13605 $as_echo_n "(cached) " >&6
13606 else
13607 if test -n "$LIPO"; then
13608 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13609 else
13610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13611 for as_dir in $PATH
13612 do
13613 IFS=$as_save_IFS
13614 test -z "$as_dir" && as_dir=.
13615 for ac_exec_ext in '' $ac_executable_extensions; do
13616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13617 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13619 break 2
13620 fi
13621 done
13622 done
13623 IFS=$as_save_IFS
13624
13625 fi
13626 fi
13627 LIPO=$ac_cv_prog_LIPO
13628 if test -n "$LIPO"; then
13629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13630 $as_echo "$LIPO" >&6; }
13631 else
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13633 $as_echo "no" >&6; }
13634 fi
13635
13636
13637 fi
13638 if test -z "$ac_cv_prog_LIPO"; then
13639 ac_ct_LIPO=$LIPO
13640 # Extract the first word of "lipo", so it can be a program name with args.
13641 set dummy lipo; ac_word=$2
13642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13643 $as_echo_n "checking for $ac_word... " >&6; }
13644 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
13645 $as_echo_n "(cached) " >&6
13646 else
13647 if test -n "$ac_ct_LIPO"; then
13648 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13649 else
13650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13651 for as_dir in $PATH
13652 do
13653 IFS=$as_save_IFS
13654 test -z "$as_dir" && as_dir=.
13655 for ac_exec_ext in '' $ac_executable_extensions; do
13656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13657 ac_cv_prog_ac_ct_LIPO="lipo"
13658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13659 break 2
13660 fi
13661 done
13662 done
13663 IFS=$as_save_IFS
13664
13665 fi
13666 fi
13667 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13668 if test -n "$ac_ct_LIPO"; then
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13670 $as_echo "$ac_ct_LIPO" >&6; }
13671 else
13672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13673 $as_echo "no" >&6; }
13674 fi
13675
13676 if test "x$ac_ct_LIPO" = x; then
13677 LIPO=":"
13678 else
13679 case $cross_compiling:$ac_tool_warned in
13680 yes:)
13681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13682 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13683 ac_tool_warned=yes ;;
13684 esac
13685 LIPO=$ac_ct_LIPO
13686 fi
13687 else
13688 LIPO="$ac_cv_prog_LIPO"
13689 fi
13690
13691 if test -n "$ac_tool_prefix"; then
13692 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13693 set dummy ${ac_tool_prefix}otool; ac_word=$2
13694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13695 $as_echo_n "checking for $ac_word... " >&6; }
13696 if ${ac_cv_prog_OTOOL+:} false; then :
13697 $as_echo_n "(cached) " >&6
13698 else
13699 if test -n "$OTOOL"; then
13700 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13701 else
13702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13703 for as_dir in $PATH
13704 do
13705 IFS=$as_save_IFS
13706 test -z "$as_dir" && as_dir=.
13707 for ac_exec_ext in '' $ac_executable_extensions; do
13708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13709 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13711 break 2
13712 fi
13713 done
13714 done
13715 IFS=$as_save_IFS
13716
13717 fi
13718 fi
13719 OTOOL=$ac_cv_prog_OTOOL
13720 if test -n "$OTOOL"; then
13721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13722 $as_echo "$OTOOL" >&6; }
13723 else
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13725 $as_echo "no" >&6; }
13726 fi
13727
13728
13729 fi
13730 if test -z "$ac_cv_prog_OTOOL"; then
13731 ac_ct_OTOOL=$OTOOL
13732 # Extract the first word of "otool", so it can be a program name with args.
13733 set dummy otool; ac_word=$2
13734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13735 $as_echo_n "checking for $ac_word... " >&6; }
13736 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
13737 $as_echo_n "(cached) " >&6
13738 else
13739 if test -n "$ac_ct_OTOOL"; then
13740 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13741 else
13742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13743 for as_dir in $PATH
13744 do
13745 IFS=$as_save_IFS
13746 test -z "$as_dir" && as_dir=.
13747 for ac_exec_ext in '' $ac_executable_extensions; do
13748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13749 ac_cv_prog_ac_ct_OTOOL="otool"
13750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13751 break 2
13752 fi
13753 done
13754 done
13755 IFS=$as_save_IFS
13756
13757 fi
13758 fi
13759 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13760 if test -n "$ac_ct_OTOOL"; then
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13762 $as_echo "$ac_ct_OTOOL" >&6; }
13763 else
13764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13765 $as_echo "no" >&6; }
13766 fi
13767
13768 if test "x$ac_ct_OTOOL" = x; then
13769 OTOOL=":"
13770 else
13771 case $cross_compiling:$ac_tool_warned in
13772 yes:)
13773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13774 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13775 ac_tool_warned=yes ;;
13776 esac
13777 OTOOL=$ac_ct_OTOOL
13778 fi
13779 else
13780 OTOOL="$ac_cv_prog_OTOOL"
13781 fi
13782
13783 if test -n "$ac_tool_prefix"; then
13784 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13785 set dummy ${ac_tool_prefix}otool64; ac_word=$2
13786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13787 $as_echo_n "checking for $ac_word... " >&6; }
13788 if ${ac_cv_prog_OTOOL64+:} false; then :
13789 $as_echo_n "(cached) " >&6
13790 else
13791 if test -n "$OTOOL64"; then
13792 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13793 else
13794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13795 for as_dir in $PATH
13796 do
13797 IFS=$as_save_IFS
13798 test -z "$as_dir" && as_dir=.
13799 for ac_exec_ext in '' $ac_executable_extensions; do
13800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13801 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13803 break 2
13804 fi
13805 done
13806 done
13807 IFS=$as_save_IFS
13808
13809 fi
13810 fi
13811 OTOOL64=$ac_cv_prog_OTOOL64
13812 if test -n "$OTOOL64"; then
13813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13814 $as_echo "$OTOOL64" >&6; }
13815 else
13816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13817 $as_echo "no" >&6; }
13818 fi
13819
13820
13821 fi
13822 if test -z "$ac_cv_prog_OTOOL64"; then
13823 ac_ct_OTOOL64=$OTOOL64
13824 # Extract the first word of "otool64", so it can be a program name with args.
13825 set dummy otool64; ac_word=$2
13826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13827 $as_echo_n "checking for $ac_word... " >&6; }
13828 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
13829 $as_echo_n "(cached) " >&6
13830 else
13831 if test -n "$ac_ct_OTOOL64"; then
13832 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13833 else
13834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13835 for as_dir in $PATH
13836 do
13837 IFS=$as_save_IFS
13838 test -z "$as_dir" && as_dir=.
13839 for ac_exec_ext in '' $ac_executable_extensions; do
13840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13841 ac_cv_prog_ac_ct_OTOOL64="otool64"
13842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13843 break 2
13844 fi
13845 done
13846 done
13847 IFS=$as_save_IFS
13848
13849 fi
13850 fi
13851 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13852 if test -n "$ac_ct_OTOOL64"; then
13853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13854 $as_echo "$ac_ct_OTOOL64" >&6; }
13855 else
13856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13857 $as_echo "no" >&6; }
13858 fi
13859
13860 if test "x$ac_ct_OTOOL64" = x; then
13861 OTOOL64=":"
13862 else
13863 case $cross_compiling:$ac_tool_warned in
13864 yes:)
13865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13866 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13867 ac_tool_warned=yes ;;
13868 esac
13869 OTOOL64=$ac_ct_OTOOL64
13870 fi
13871 else
13872 OTOOL64="$ac_cv_prog_OTOOL64"
13873 fi
13874
13875
13876
13877
13878
13879
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13902 $as_echo_n "checking for -single_module linker flag... " >&6; }
13903 if ${lt_cv_apple_cc_single_mod+:} false; then :
13904 $as_echo_n "(cached) " >&6
13905 else
13906 lt_cv_apple_cc_single_mod=no
13907 if test -z "$LT_MULTI_MODULE"; then
13908 # By default we will add the -single_module flag. You can override
13909 # by either setting the environment variable LT_MULTI_MODULE
13910 # non-empty at configure time, or by adding -multi_module to the
13911 # link flags.
13912 rm -rf libconftest.dylib*
13913 echo "int foo(void){return 1;}" > conftest.c
13914 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13915 -dynamiclib -Wl,-single_module conftest.c" >&5
13916 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13917 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13918 _lt_result=$?
13919 # If there is a non-empty error log, and "single_module"
13920 # appears in it, assume the flag caused a linker warning
13921 if test -s conftest.err && $GREP single_module conftest.err; then
13922 cat conftest.err >&5
13923 # Otherwise, if the output was created with a 0 exit code from
13924 # the compiler, it worked.
13925 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
13926 lt_cv_apple_cc_single_mod=yes
13927 else
13928 cat conftest.err >&5
13929 fi
13930 rm -rf libconftest.dylib*
13931 rm -f conftest.*
13932 fi
13933 fi
13934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13935 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13936
13937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13938 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
13939 if ${lt_cv_ld_exported_symbols_list+:} false; then :
13940 $as_echo_n "(cached) " >&6
13941 else
13942 lt_cv_ld_exported_symbols_list=no
13943 save_LDFLAGS=$LDFLAGS
13944 echo "_main" > conftest.sym
13945 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13947 /* end confdefs.h. */
13948
13949 int
13950 main ()
13951 {
13952
13953 ;
13954 return 0;
13955 }
13956 _ACEOF
13957 if ac_fn_c_try_link "$LINENO"; then :
13958 lt_cv_ld_exported_symbols_list=yes
13959 else
13960 lt_cv_ld_exported_symbols_list=no
13961 fi
13962 rm -f core conftest.err conftest.$ac_objext \
13963 conftest$ac_exeext conftest.$ac_ext
13964 LDFLAGS=$save_LDFLAGS
13965
13966 fi
13967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13968 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13969
13970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13971 $as_echo_n "checking for -force_load linker flag... " >&6; }
13972 if ${lt_cv_ld_force_load+:} false; then :
13973 $as_echo_n "(cached) " >&6
13974 else
13975 lt_cv_ld_force_load=no
13976 cat > conftest.c << _LT_EOF
13977 int forced_loaded() { return 2;}
13978 _LT_EOF
13979 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13980 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13981 echo "$AR cru libconftest.a conftest.o" >&5
13982 $AR cru libconftest.a conftest.o 2>&5
13983 echo "$RANLIB libconftest.a" >&5
13984 $RANLIB libconftest.a 2>&5
13985 cat > conftest.c << _LT_EOF
13986 int main() { return 0;}
13987 _LT_EOF
13988 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13989 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13990 _lt_result=$?
13991 if test -s conftest.err && $GREP force_load conftest.err; then
13992 cat conftest.err >&5
13993 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
13994 lt_cv_ld_force_load=yes
13995 else
13996 cat conftest.err >&5
13997 fi
13998 rm -f conftest.err libconftest.a conftest conftest.c
13999 rm -rf conftest.dSYM
14000
14001 fi
14002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14003 $as_echo "$lt_cv_ld_force_load" >&6; }
14004 case $host_os in
14005 rhapsody* | darwin1.[012])
14006 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
14007 darwin1.*)
14008 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
14009 darwin*) # darwin 5.x on
14010 # if running on 10.5 or later, the deployment target defaults
14011 # to the OS version, if on x86, and 10.4, the deployment
14012 # target defaults to 10.4. Don't you love it?
14013 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14014 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14015 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
14016 10.[012][,.]*)
14017 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
14018 10.*)
14019 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
14020 esac
14021 ;;
14022 esac
14023 if test yes = "$lt_cv_apple_cc_single_mod"; then
14024 _lt_dar_single_mod='$single_module'
14025 fi
14026 if test yes = "$lt_cv_ld_exported_symbols_list"; then
14027 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
14028 else
14029 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
14030 fi
14031 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
14032 _lt_dsymutil='~$DSYMUTIL $lib || :'
14033 else
14034 _lt_dsymutil=
14035 fi
14036 ;;
14037 esac
14038
14039 for ac_header in dlfcn.h
14040 do :
14041 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
14042 "
14043 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
14044 cat >>confdefs.h <<_ACEOF
14045 #define HAVE_DLFCN_H 1
14046 _ACEOF
14047
14048 fi
14049
14050 done
14051
14052
14053
14054
14055
14056 # Set options
14057
14058
14059
14060 enable_dlopen=no
14061
14062
14063 enable_win32_dll=no
14064
14065
14066 # Check whether --enable-shared was given.
14067 if test "${enable_shared+set}" = set; then :
14068 enableval=$enable_shared; p=${PACKAGE-default}
14069 case $enableval in
14070 yes) enable_shared=yes ;;
14071 no) enable_shared=no ;;
14072 *)
14073 enable_shared=no
14074 # Look at the argument we got. We use all the common list separators.
14075 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14076 for pkg in $enableval; do
14077 IFS=$lt_save_ifs
14078 if test "X$pkg" = "X$p"; then
14079 enable_shared=yes
14080 fi
14081 done
14082 IFS=$lt_save_ifs
14083 ;;
14084 esac
14085 else
14086 enable_shared=yes
14087 fi
14088
14089
14090
14091
14092
14093
14094
14095
14096
14097
14098
14099 # Check whether --with-pic was given.
14100 if test "${with_pic+set}" = set; then :
14101 withval=$with_pic; lt_p=${PACKAGE-default}
14102 case $withval in
14103 yes|no) pic_mode=$withval ;;
14104 *)
14105 pic_mode=default
14106 # Look at the argument we got. We use all the common list separators.
14107 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14108 for lt_pkg in $withval; do
14109 IFS=$lt_save_ifs
14110 if test "X$lt_pkg" = "X$lt_p"; then
14111 pic_mode=yes
14112 fi
14113 done
14114 IFS=$lt_save_ifs
14115 ;;
14116 esac
14117 else
14118 pic_mode=default
14119 fi
14120
14121
14122
14123
14124
14125
14126
14127
14128 # Check whether --enable-fast-install was given.
14129 if test "${enable_fast_install+set}" = set; then :
14130 enableval=$enable_fast_install; p=${PACKAGE-default}
14131 case $enableval in
14132 yes) enable_fast_install=yes ;;
14133 no) enable_fast_install=no ;;
14134 *)
14135 enable_fast_install=no
14136 # Look at the argument we got. We use all the common list separators.
14137 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14138 for pkg in $enableval; do
14139 IFS=$lt_save_ifs
14140 if test "X$pkg" = "X$p"; then
14141 enable_fast_install=yes
14142 fi
14143 done
14144 IFS=$lt_save_ifs
14145 ;;
14146 esac
14147 else
14148 enable_fast_install=yes
14149 fi
14150
14151
14152
14153
14154
14155
14156
14157
14158 shared_archive_member_spec=
14159 case $host,$enable_shared in
14160 power*-*-aix[5-9]*,yes)
14161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
14162 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
14163
14164 # Check whether --with-aix-soname was given.
14165 if test "${with_aix_soname+set}" = set; then :
14166 withval=$with_aix_soname; case $withval in
14167 aix|svr4|both)
14168 ;;
14169 *)
14170 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
14171 ;;
14172 esac
14173 lt_cv_with_aix_soname=$with_aix_soname
14174 else
14175 if ${lt_cv_with_aix_soname+:} false; then :
14176 $as_echo_n "(cached) " >&6
14177 else
14178 lt_cv_with_aix_soname=aix
14179 fi
14180
14181 with_aix_soname=$lt_cv_with_aix_soname
14182 fi
14183
14184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
14185 $as_echo "$with_aix_soname" >&6; }
14186 if test aix != "$with_aix_soname"; then
14187 # For the AIX way of multilib, we name the shared archive member
14188 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
14189 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
14190 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
14191 # the AIX toolchain works better with OBJECT_MODE set (default 32).
14192 if test 64 = "${OBJECT_MODE-32}"; then
14193 shared_archive_member_spec=shr_64
14194 else
14195 shared_archive_member_spec=shr
14196 fi
14197 fi
14198 ;;
14199 *)
14200 with_aix_soname=aix
14201 ;;
14202 esac
14203
14204
14205
14206
14207
14208
14209
14210
14211
14212
14213 # This can be used to rebuild libtool when needed
14214 LIBTOOL_DEPS=$ltmain
14215
14216 # Always use our own libtool.
14217 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14218
14219
14220
14221
14222
14223
14224
14225
14226
14227
14228
14229
14230
14231
14232
14233
14234
14235
14236
14237
14238
14239
14240
14241
14242
14243
14244
14245
14246
14247
14248 test -z "$LN_S" && LN_S="ln -s"
14249
14250
14251
14252
14253
14254
14255
14256
14257
14258
14259
14260
14261
14262
14263 if test -n "${ZSH_VERSION+set}"; then
14264 setopt NO_GLOB_SUBST
14265 fi
14266
14267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14268 $as_echo_n "checking for objdir... " >&6; }
14269 if ${lt_cv_objdir+:} false; then :
14270 $as_echo_n "(cached) " >&6
14271 else
14272 rm -f .libs 2>/dev/null
14273 mkdir .libs 2>/dev/null
14274 if test -d .libs; then
14275 lt_cv_objdir=.libs
14276 else
14277 # MS-DOS does not allow filenames that begin with a dot.
14278 lt_cv_objdir=_libs
14279 fi
14280 rmdir .libs 2>/dev/null
14281 fi
14282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14283 $as_echo "$lt_cv_objdir" >&6; }
14284 objdir=$lt_cv_objdir
14285
14286
14287
14288
14289
14290 cat >>confdefs.h <<_ACEOF
14291 #define LT_OBJDIR "$lt_cv_objdir/"
14292 _ACEOF
14293
14294
14295
14296
14297 case $host_os in
14298 aix3*)
14299 # AIX sometimes has problems with the GCC collect2 program. For some
14300 # reason, if we set the COLLECT_NAMES environment variable, the problems
14301 # vanish in a puff of smoke.
14302 if test set != "${COLLECT_NAMES+set}"; then
14303 COLLECT_NAMES=
14304 export COLLECT_NAMES
14305 fi
14306 ;;
14307 esac
14308
14309 # Global variables:
14310 ofile=libtool
14311 can_build_shared=yes
14312
14313 # All known linkers require a '.a' archive for static linking (except MSVC,
14314 # which needs '.lib').
14315 libext=a
14316
14317 with_gnu_ld=$lt_cv_prog_gnu_ld
14318
14319 old_CC=$CC
14320 old_CFLAGS=$CFLAGS
14321
14322 # Set sane defaults for various variables
14323 test -z "$CC" && CC=cc
14324 test -z "$LTCC" && LTCC=$CC
14325 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14326 test -z "$LD" && LD=ld
14327 test -z "$ac_objext" && ac_objext=o
14328
14329 for cc_temp in $compiler""; do
14330 case $cc_temp in
14331 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14332 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14333 \-*) ;;
14334 *) break;;
14335 esac
14336 done
14337 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14338
14339
14340 # Only perform the check for file, if the check method requires it
14341 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14342 case $deplibs_check_method in
14343 file_magic*)
14344 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14346 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14347 if ${lt_cv_path_MAGIC_CMD+:} false; then :
14348 $as_echo_n "(cached) " >&6
14349 else
14350 case $MAGIC_CMD in
14351 [\\/*] | ?:[\\/]*)
14352 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
14353 ;;
14354 *)
14355 lt_save_MAGIC_CMD=$MAGIC_CMD
14356 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14357 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14358 for ac_dir in $ac_dummy; do
14359 IFS=$lt_save_ifs
14360 test -z "$ac_dir" && ac_dir=.
14361 if test -f "$ac_dir/${ac_tool_prefix}file"; then
14362 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
14363 if test -n "$file_magic_test_file"; then
14364 case $deplibs_check_method in
14365 "file_magic "*)
14366 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14367 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14368 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14369 $EGREP "$file_magic_regex" > /dev/null; then
14370 :
14371 else
14372 cat <<_LT_EOF 1>&2
14373
14374 *** Warning: the command libtool uses to detect shared libraries,
14375 *** $file_magic_cmd, produces output that libtool cannot recognize.
14376 *** The result is that libtool may fail to recognize shared libraries
14377 *** as such. This will affect the creation of libtool libraries that
14378 *** depend on shared libraries, but programs linked with such libtool
14379 *** libraries will work regardless of this problem. Nevertheless, you
14380 *** may want to report the problem to your system manager and/or to
14381 *** bug-libtool@gnu.org
14382
14383 _LT_EOF
14384 fi ;;
14385 esac
14386 fi
14387 break
14388 fi
14389 done
14390 IFS=$lt_save_ifs
14391 MAGIC_CMD=$lt_save_MAGIC_CMD
14392 ;;
14393 esac
14394 fi
14395
14396 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14397 if test -n "$MAGIC_CMD"; then
14398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14399 $as_echo "$MAGIC_CMD" >&6; }
14400 else
14401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14402 $as_echo "no" >&6; }
14403 fi
14404
14405
14406
14407
14408
14409 if test -z "$lt_cv_path_MAGIC_CMD"; then
14410 if test -n "$ac_tool_prefix"; then
14411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14412 $as_echo_n "checking for file... " >&6; }
14413 if ${lt_cv_path_MAGIC_CMD+:} false; then :
14414 $as_echo_n "(cached) " >&6
14415 else
14416 case $MAGIC_CMD in
14417 [\\/*] | ?:[\\/]*)
14418 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
14419 ;;
14420 *)
14421 lt_save_MAGIC_CMD=$MAGIC_CMD
14422 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14423 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14424 for ac_dir in $ac_dummy; do
14425 IFS=$lt_save_ifs
14426 test -z "$ac_dir" && ac_dir=.
14427 if test -f "$ac_dir/file"; then
14428 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
14429 if test -n "$file_magic_test_file"; then
14430 case $deplibs_check_method in
14431 "file_magic "*)
14432 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14433 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14434 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14435 $EGREP "$file_magic_regex" > /dev/null; then
14436 :
14437 else
14438 cat <<_LT_EOF 1>&2
14439
14440 *** Warning: the command libtool uses to detect shared libraries,
14441 *** $file_magic_cmd, produces output that libtool cannot recognize.
14442 *** The result is that libtool may fail to recognize shared libraries
14443 *** as such. This will affect the creation of libtool libraries that
14444 *** depend on shared libraries, but programs linked with such libtool
14445 *** libraries will work regardless of this problem. Nevertheless, you
14446 *** may want to report the problem to your system manager and/or to
14447 *** bug-libtool@gnu.org
14448
14449 _LT_EOF
14450 fi ;;
14451 esac
14452 fi
14453 break
14454 fi
14455 done
14456 IFS=$lt_save_ifs
14457 MAGIC_CMD=$lt_save_MAGIC_CMD
14458 ;;
14459 esac
14460 fi
14461
14462 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14463 if test -n "$MAGIC_CMD"; then
14464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14465 $as_echo "$MAGIC_CMD" >&6; }
14466 else
14467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14468 $as_echo "no" >&6; }
14469 fi
14470
14471
14472 else
14473 MAGIC_CMD=:
14474 fi
14475 fi
14476
14477 fi
14478 ;;
14479 esac
14480
14481 # Use C for the default configuration in the libtool script
14482
14483 lt_save_CC=$CC
14484 ac_ext=c
14485 ac_cpp='$CPP $CPPFLAGS'
14486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14489
14490
14491 # Source file extension for C test sources.
14492 ac_ext=c
14493
14494 # Object file extension for compiled C test sources.
14495 objext=o
14496 objext=$objext
14497
14498 # Code to be used in simple compile tests
14499 lt_simple_compile_test_code="int some_variable = 0;"
14500
14501 # Code to be used in simple link tests
14502 lt_simple_link_test_code='int main(){return(0);}'
14503
14504
14505
14506
14507
14508
14509
14510 # If no C compiler was specified, use CC.
14511 LTCC=${LTCC-"$CC"}
14512
14513 # If no C compiler flags were specified, use CFLAGS.
14514 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14515
14516 # Allow CC to be a program name with arguments.
14517 compiler=$CC
14518
14519 # Save the default compiler, since it gets overwritten when the other
14520 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14521 compiler_DEFAULT=$CC
14522
14523 # save warnings/boilerplate of simple test code
14524 ac_outfile=conftest.$ac_objext
14525 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14526 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14527 _lt_compiler_boilerplate=`cat conftest.err`
14528 $RM conftest*
14529
14530 ac_outfile=conftest.$ac_objext
14531 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14532 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14533 _lt_linker_boilerplate=`cat conftest.err`
14534 $RM -r conftest*
14535
14536
14537 if test -n "$compiler"; then
14538
14539 lt_prog_compiler_no_builtin_flag=
14540
14541 if test yes = "$GCC"; then
14542 case $cc_basename in
14543 nvcc*)
14544 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14545 *)
14546 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14547 esac
14548
14549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14550 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14551 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
14552 $as_echo_n "(cached) " >&6
14553 else
14554 lt_cv_prog_compiler_rtti_exceptions=no
14555 ac_outfile=conftest.$ac_objext
14556 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14557 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
14558 # Insert the option either (1) after the last *FLAGS variable, or
14559 # (2) before a word containing "conftest.", or (3) at the end.
14560 # Note that $ac_compile itself does not contain backslashes and begins
14561 # with a dollar sign (not a hyphen), so the echo should work correctly.
14562 # The option is referenced via a variable to avoid confusing sed.
14563 lt_compile=`echo "$ac_compile" | $SED \
14564 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14565 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14566 -e 's:$: $lt_compiler_flag:'`
14567 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14568 (eval "$lt_compile" 2>conftest.err)
14569 ac_status=$?
14570 cat conftest.err >&5
14571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14572 if (exit $ac_status) && test -s "$ac_outfile"; then
14573 # The compiler can only warn and ignore the option if not recognized
14574 # So say no if there are warnings other than the usual output.
14575 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14576 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14577 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14578 lt_cv_prog_compiler_rtti_exceptions=yes
14579 fi
14580 fi
14581 $RM conftest*
14582
14583 fi
14584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14585 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14586
14587 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
14588 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14589 else
14590 :
14591 fi
14592
14593 fi
14594
14595
14596
14597
14598
14599
14600 lt_prog_compiler_wl=
14601 lt_prog_compiler_pic=
14602 lt_prog_compiler_static=
14603
14604
14605 if test yes = "$GCC"; then
14606 lt_prog_compiler_wl='-Wl,'
14607 lt_prog_compiler_static='-static'
14608
14609 case $host_os in
14610 aix*)
14611 # All AIX code is PIC.
14612 if test ia64 = "$host_cpu"; then
14613 # AIX 5 now supports IA64 processor
14614 lt_prog_compiler_static='-Bstatic'
14615 fi
14616 lt_prog_compiler_pic='-fPIC'
14617 ;;
14618
14619 amigaos*)
14620 case $host_cpu in
14621 powerpc)
14622 # see comment about AmigaOS4 .so support
14623 lt_prog_compiler_pic='-fPIC'
14624 ;;
14625 m68k)
14626 # FIXME: we need at least 68020 code to build shared libraries, but
14627 # adding the '-m68020' flag to GCC prevents building anything better,
14628 # like '-m68040'.
14629 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14630 ;;
14631 esac
14632 ;;
14633
14634 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14635 # PIC is the default for these OSes.
14636 ;;
14637
14638 mingw* | cygwin* | pw32* | os2* | cegcc*)
14639 # This hack is so that the source file can tell whether it is being
14640 # built for inclusion in a dll (and should export symbols for example).
14641 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14642 # (--disable-auto-import) libraries
14643 lt_prog_compiler_pic='-DDLL_EXPORT'
14644 case $host_os in
14645 os2*)
14646 lt_prog_compiler_static='$wl-static'
14647 ;;
14648 esac
14649 ;;
14650
14651 darwin* | rhapsody*)
14652 # PIC is the default on this platform
14653 # Common symbols not allowed in MH_DYLIB files
14654 lt_prog_compiler_pic='-fno-common'
14655 ;;
14656
14657 haiku*)
14658 # PIC is the default for Haiku.
14659 # The "-static" flag exists, but is broken.
14660 lt_prog_compiler_static=
14661 ;;
14662
14663 hpux*)
14664 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14665 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14666 # sets the default TLS model and affects inlining.
14667 case $host_cpu in
14668 hppa*64*)
14669 # +Z the default
14670 ;;
14671 *)
14672 lt_prog_compiler_pic='-fPIC'
14673 ;;
14674 esac
14675 ;;
14676
14677 interix[3-9]*)
14678 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14679 # Instead, we relocate shared libraries at runtime.
14680 ;;
14681
14682 msdosdjgpp*)
14683 # Just because we use GCC doesn't mean we suddenly get shared libraries
14684 # on systems that don't support them.
14685 lt_prog_compiler_can_build_shared=no
14686 enable_shared=no
14687 ;;
14688
14689 *nto* | *qnx*)
14690 # QNX uses GNU C++, but need to define -shared option too, otherwise
14691 # it will coredump.
14692 lt_prog_compiler_pic='-fPIC -shared'
14693 ;;
14694
14695 sysv4*MP*)
14696 if test -d /usr/nec; then
14697 lt_prog_compiler_pic=-Kconform_pic
14698 fi
14699 ;;
14700
14701 *)
14702 lt_prog_compiler_pic='-fPIC'
14703 ;;
14704 esac
14705
14706 case $cc_basename in
14707 nvcc*) # Cuda Compiler Driver 2.2
14708 lt_prog_compiler_wl='-Xlinker '
14709 if test -n "$lt_prog_compiler_pic"; then
14710 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14711 fi
14712 ;;
14713 esac
14714 else
14715 # PORTME Check for flag to pass linker flags through the system compiler.
14716 case $host_os in
14717 aix*)
14718 lt_prog_compiler_wl='-Wl,'
14719 if test ia64 = "$host_cpu"; then
14720 # AIX 5 now supports IA64 processor
14721 lt_prog_compiler_static='-Bstatic'
14722 else
14723 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14724 fi
14725 ;;
14726
14727 darwin* | rhapsody*)
14728 # PIC is the default on this platform
14729 # Common symbols not allowed in MH_DYLIB files
14730 lt_prog_compiler_pic='-fno-common'
14731 case $cc_basename in
14732 nagfor*)
14733 # NAG Fortran compiler
14734 lt_prog_compiler_wl='-Wl,-Wl,,'
14735 lt_prog_compiler_pic='-PIC'
14736 lt_prog_compiler_static='-Bstatic'
14737 ;;
14738 esac
14739 ;;
14740
14741 mingw* | cygwin* | pw32* | os2* | cegcc*)
14742 # This hack is so that the source file can tell whether it is being
14743 # built for inclusion in a dll (and should export symbols for example).
14744 lt_prog_compiler_pic='-DDLL_EXPORT'
14745 case $host_os in
14746 os2*)
14747 lt_prog_compiler_static='$wl-static'
14748 ;;
14749 esac
14750 ;;
14751
14752 hpux9* | hpux10* | hpux11*)
14753 lt_prog_compiler_wl='-Wl,'
14754 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14755 # not for PA HP-UX.
14756 case $host_cpu in
14757 hppa*64*|ia64*)
14758 # +Z the default
14759 ;;
14760 *)
14761 lt_prog_compiler_pic='+Z'
14762 ;;
14763 esac
14764 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14765 lt_prog_compiler_static='$wl-a ${wl}archive'
14766 ;;
14767
14768 irix5* | irix6* | nonstopux*)
14769 lt_prog_compiler_wl='-Wl,'
14770 # PIC (with -KPIC) is the default.
14771 lt_prog_compiler_static='-non_shared'
14772 ;;
14773
14774 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14775 case $cc_basename in
14776 # old Intel for x86_64, which still supported -KPIC.
14777 ecc*)
14778 lt_prog_compiler_wl='-Wl,'
14779 lt_prog_compiler_pic='-KPIC'
14780 lt_prog_compiler_static='-static'
14781 ;;
14782 # icc used to be incompatible with GCC.
14783 # ICC 10 doesn't accept -KPIC any more.
14784 icc* | ifort*)
14785 lt_prog_compiler_wl='-Wl,'
14786 lt_prog_compiler_pic='-fPIC'
14787 lt_prog_compiler_static='-static'
14788 ;;
14789 # Lahey Fortran 8.1.
14790 lf95*)
14791 lt_prog_compiler_wl='-Wl,'
14792 lt_prog_compiler_pic='--shared'
14793 lt_prog_compiler_static='--static'
14794 ;;
14795 nagfor*)
14796 # NAG Fortran compiler
14797 lt_prog_compiler_wl='-Wl,-Wl,,'
14798 lt_prog_compiler_pic='-PIC'
14799 lt_prog_compiler_static='-Bstatic'
14800 ;;
14801 tcc*)
14802 # Fabrice Bellard et al's Tiny C Compiler
14803 lt_prog_compiler_wl='-Wl,'
14804 lt_prog_compiler_pic='-fPIC'
14805 lt_prog_compiler_static='-static'
14806 ;;
14807 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14808 # Portland Group compilers (*not* the Pentium gcc compiler,
14809 # which looks to be a dead project)
14810 lt_prog_compiler_wl='-Wl,'
14811 lt_prog_compiler_pic='-fpic'
14812 lt_prog_compiler_static='-Bstatic'
14813 ;;
14814 ccc*)
14815 lt_prog_compiler_wl='-Wl,'
14816 # All Alpha code is PIC.
14817 lt_prog_compiler_static='-non_shared'
14818 ;;
14819 xl* | bgxl* | bgf* | mpixl*)
14820 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14821 lt_prog_compiler_wl='-Wl,'
14822 lt_prog_compiler_pic='-qpic'
14823 lt_prog_compiler_static='-qstaticlink'
14824 ;;
14825 *)
14826 case `$CC -V 2>&1 | sed 5q` in
14827 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
14828 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14829 lt_prog_compiler_pic='-KPIC'
14830 lt_prog_compiler_static='-Bstatic'
14831 lt_prog_compiler_wl=''
14832 ;;
14833 *Sun\ F* | *Sun*Fortran*)
14834 lt_prog_compiler_pic='-KPIC'
14835 lt_prog_compiler_static='-Bstatic'
14836 lt_prog_compiler_wl='-Qoption ld '
14837 ;;
14838 *Sun\ C*)
14839 # Sun C 5.9
14840 lt_prog_compiler_pic='-KPIC'
14841 lt_prog_compiler_static='-Bstatic'
14842 lt_prog_compiler_wl='-Wl,'
14843 ;;
14844 *Intel*\ [CF]*Compiler*)
14845 lt_prog_compiler_wl='-Wl,'
14846 lt_prog_compiler_pic='-fPIC'
14847 lt_prog_compiler_static='-static'
14848 ;;
14849 *Portland\ Group*)
14850 lt_prog_compiler_wl='-Wl,'
14851 lt_prog_compiler_pic='-fpic'
14852 lt_prog_compiler_static='-Bstatic'
14853 ;;
14854 esac
14855 ;;
14856 esac
14857 ;;
14858
14859 newsos6)
14860 lt_prog_compiler_pic='-KPIC'
14861 lt_prog_compiler_static='-Bstatic'
14862 ;;
14863
14864 *nto* | *qnx*)
14865 # QNX uses GNU C++, but need to define -shared option too, otherwise
14866 # it will coredump.
14867 lt_prog_compiler_pic='-fPIC -shared'
14868 ;;
14869
14870 osf3* | osf4* | osf5*)
14871 lt_prog_compiler_wl='-Wl,'
14872 # All OSF/1 code is PIC.
14873 lt_prog_compiler_static='-non_shared'
14874 ;;
14875
14876 rdos*)
14877 lt_prog_compiler_static='-non_shared'
14878 ;;
14879
14880 solaris*)
14881 lt_prog_compiler_pic='-KPIC'
14882 lt_prog_compiler_static='-Bstatic'
14883 case $cc_basename in
14884 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
14885 lt_prog_compiler_wl='-Qoption ld ';;
14886 *)
14887 lt_prog_compiler_wl='-Wl,';;
14888 esac
14889 ;;
14890
14891 sunos4*)
14892 lt_prog_compiler_wl='-Qoption ld '
14893 lt_prog_compiler_pic='-PIC'
14894 lt_prog_compiler_static='-Bstatic'
14895 ;;
14896
14897 sysv4 | sysv4.2uw2* | sysv4.3*)
14898 lt_prog_compiler_wl='-Wl,'
14899 lt_prog_compiler_pic='-KPIC'
14900 lt_prog_compiler_static='-Bstatic'
14901 ;;
14902
14903 sysv4*MP*)
14904 if test -d /usr/nec; then
14905 lt_prog_compiler_pic='-Kconform_pic'
14906 lt_prog_compiler_static='-Bstatic'
14907 fi
14908 ;;
14909
14910 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14911 lt_prog_compiler_wl='-Wl,'
14912 lt_prog_compiler_pic='-KPIC'
14913 lt_prog_compiler_static='-Bstatic'
14914 ;;
14915
14916 unicos*)
14917 lt_prog_compiler_wl='-Wl,'
14918 lt_prog_compiler_can_build_shared=no
14919 ;;
14920
14921 uts4*)
14922 lt_prog_compiler_pic='-pic'
14923 lt_prog_compiler_static='-Bstatic'
14924 ;;
14925
14926 *)
14927 lt_prog_compiler_can_build_shared=no
14928 ;;
14929 esac
14930 fi
14931
14932 case $host_os in
14933 # For platforms that do not support PIC, -DPIC is meaningless:
14934 *djgpp*)
14935 lt_prog_compiler_pic=
14936 ;;
14937 *)
14938 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14939 ;;
14940 esac
14941
14942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14943 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14944 if ${lt_cv_prog_compiler_pic+:} false; then :
14945 $as_echo_n "(cached) " >&6
14946 else
14947 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14948 fi
14949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14950 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
14951 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
14952
14953 #
14954 # Check to make sure the PIC flag actually works.
14955 #
14956 if test -n "$lt_prog_compiler_pic"; then
14957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14958 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14959 if ${lt_cv_prog_compiler_pic_works+:} false; then :
14960 $as_echo_n "(cached) " >&6
14961 else
14962 lt_cv_prog_compiler_pic_works=no
14963 ac_outfile=conftest.$ac_objext
14964 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14965 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
14966 # Insert the option either (1) after the last *FLAGS variable, or
14967 # (2) before a word containing "conftest.", or (3) at the end.
14968 # Note that $ac_compile itself does not contain backslashes and begins
14969 # with a dollar sign (not a hyphen), so the echo should work correctly.
14970 # The option is referenced via a variable to avoid confusing sed.
14971 lt_compile=`echo "$ac_compile" | $SED \
14972 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14973 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14974 -e 's:$: $lt_compiler_flag:'`
14975 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14976 (eval "$lt_compile" 2>conftest.err)
14977 ac_status=$?
14978 cat conftest.err >&5
14979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14980 if (exit $ac_status) && test -s "$ac_outfile"; then
14981 # The compiler can only warn and ignore the option if not recognized
14982 # So say no if there are warnings other than the usual output.
14983 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14984 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14985 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14986 lt_cv_prog_compiler_pic_works=yes
14987 fi
14988 fi
14989 $RM conftest*
14990
14991 fi
14992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14993 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14994
14995 if test yes = "$lt_cv_prog_compiler_pic_works"; then
14996 case $lt_prog_compiler_pic in
14997 "" | " "*) ;;
14998 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14999 esac
15000 else
15001 lt_prog_compiler_pic=
15002 lt_prog_compiler_can_build_shared=no
15003 fi
15004
15005 fi
15006
15007
15008
15009
15010
15011
15012
15013
15014
15015
15016
15017 #
15018 # Check to make sure the static flag actually works.
15019 #
15020 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15022 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15023 if ${lt_cv_prog_compiler_static_works+:} false; then :
15024 $as_echo_n "(cached) " >&6
15025 else
15026 lt_cv_prog_compiler_static_works=no
15027 save_LDFLAGS=$LDFLAGS
15028 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15029 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15030 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15031 # The linker can only warn and ignore the option if not recognized
15032 # So say no if there are warnings
15033 if test -s conftest.err; then
15034 # Append any errors to the config.log.
15035 cat conftest.err 1>&5
15036 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15037 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15038 if diff conftest.exp conftest.er2 >/dev/null; then
15039 lt_cv_prog_compiler_static_works=yes
15040 fi
15041 else
15042 lt_cv_prog_compiler_static_works=yes
15043 fi
15044 fi
15045 $RM -r conftest*
15046 LDFLAGS=$save_LDFLAGS
15047
15048 fi
15049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15050 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15051
15052 if test yes = "$lt_cv_prog_compiler_static_works"; then
15053 :
15054 else
15055 lt_prog_compiler_static=
15056 fi
15057
15058
15059
15060
15061
15062
15063
15064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15065 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15066 if ${lt_cv_prog_compiler_c_o+:} false; then :
15067 $as_echo_n "(cached) " >&6
15068 else
15069 lt_cv_prog_compiler_c_o=no
15070 $RM -r conftest 2>/dev/null
15071 mkdir conftest
15072 cd conftest
15073 mkdir out
15074 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15075
15076 lt_compiler_flag="-o out/conftest2.$ac_objext"
15077 # Insert the option either (1) after the last *FLAGS variable, or
15078 # (2) before a word containing "conftest.", or (3) at the end.
15079 # Note that $ac_compile itself does not contain backslashes and begins
15080 # with a dollar sign (not a hyphen), so the echo should work correctly.
15081 lt_compile=`echo "$ac_compile" | $SED \
15082 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15083 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15084 -e 's:$: $lt_compiler_flag:'`
15085 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15086 (eval "$lt_compile" 2>out/conftest.err)
15087 ac_status=$?
15088 cat out/conftest.err >&5
15089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15090 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15091 then
15092 # The compiler can only warn and ignore the option if not recognized
15093 # So say no if there are warnings
15094 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15095 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15096 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15097 lt_cv_prog_compiler_c_o=yes
15098 fi
15099 fi
15100 chmod u+w . 2>&5
15101 $RM conftest*
15102 # SGI C++ compiler will create directory out/ii_files/ for
15103 # template instantiation
15104 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15105 $RM out/* && rmdir out
15106 cd ..
15107 $RM -r conftest
15108 $RM conftest*
15109
15110 fi
15111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15112 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15113
15114
15115
15116
15117
15118
15119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15120 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15121 if ${lt_cv_prog_compiler_c_o+:} false; then :
15122 $as_echo_n "(cached) " >&6
15123 else
15124 lt_cv_prog_compiler_c_o=no
15125 $RM -r conftest 2>/dev/null
15126 mkdir conftest
15127 cd conftest
15128 mkdir out
15129 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15130
15131 lt_compiler_flag="-o out/conftest2.$ac_objext"
15132 # Insert the option either (1) after the last *FLAGS variable, or
15133 # (2) before a word containing "conftest.", or (3) at the end.
15134 # Note that $ac_compile itself does not contain backslashes and begins
15135 # with a dollar sign (not a hyphen), so the echo should work correctly.
15136 lt_compile=`echo "$ac_compile" | $SED \
15137 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15138 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15139 -e 's:$: $lt_compiler_flag:'`
15140 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15141 (eval "$lt_compile" 2>out/conftest.err)
15142 ac_status=$?
15143 cat out/conftest.err >&5
15144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15145 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15146 then
15147 # The compiler can only warn and ignore the option if not recognized
15148 # So say no if there are warnings
15149 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15150 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15151 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15152 lt_cv_prog_compiler_c_o=yes
15153 fi
15154 fi
15155 chmod u+w . 2>&5
15156 $RM conftest*
15157 # SGI C++ compiler will create directory out/ii_files/ for
15158 # template instantiation
15159 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15160 $RM out/* && rmdir out
15161 cd ..
15162 $RM -r conftest
15163 $RM conftest*
15164
15165 fi
15166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15167 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15168
15169
15170
15171
15172 hard_links=nottested
15173 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
15174 # do not overwrite the value of need_locks provided by the user
15175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15176 $as_echo_n "checking if we can lock with hard links... " >&6; }
15177 hard_links=yes
15178 $RM conftest*
15179 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15180 touch conftest.a
15181 ln conftest.a conftest.b 2>&5 || hard_links=no
15182 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15184 $as_echo "$hard_links" >&6; }
15185 if test no = "$hard_links"; then
15186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15187 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
15188 need_locks=warn
15189 fi
15190 else
15191 need_locks=no
15192 fi
15193
15194
15195
15196
15197
15198
15199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15200 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15201
15202 runpath_var=
15203 allow_undefined_flag=
15204 always_export_symbols=no
15205 archive_cmds=
15206 archive_expsym_cmds=
15207 compiler_needs_object=no
15208 enable_shared_with_static_runtimes=no
15209 export_dynamic_flag_spec=
15210 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15211 hardcode_automatic=no
15212 hardcode_direct=no
15213 hardcode_direct_absolute=no
15214 hardcode_libdir_flag_spec=
15215 hardcode_libdir_separator=
15216 hardcode_minus_L=no
15217 hardcode_shlibpath_var=unsupported
15218 inherit_rpath=no
15219 link_all_deplibs=unknown
15220 module_cmds=
15221 module_expsym_cmds=
15222 old_archive_from_new_cmds=
15223 old_archive_from_expsyms_cmds=
15224 thread_safe_flag_spec=
15225 whole_archive_flag_spec=
15226 # include_expsyms should be a list of space-separated symbols to be *always*
15227 # included in the symbol list
15228 include_expsyms=
15229 # exclude_expsyms can be an extended regexp of symbols to exclude
15230 # it will be wrapped by ' (' and ')$', so one must not match beginning or
15231 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
15232 # as well as any symbol that contains 'd'.
15233 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15234 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15235 # platforms (ab)use it in PIC code, but their linkers get confused if
15236 # the symbol is explicitly referenced. Since portable code cannot
15237 # rely on this symbol name, it's probably fine to never include it in
15238 # preloaded symbol tables.
15239 # Exclude shared library initialization/finalization symbols.
15240 extract_expsyms_cmds=
15241
15242 case $host_os in
15243 cygwin* | mingw* | pw32* | cegcc*)
15244 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15245 # When not using gcc, we currently assume that we are using
15246 # Microsoft Visual C++.
15247 if test yes != "$GCC"; then
15248 with_gnu_ld=no
15249 fi
15250 ;;
15251 interix*)
15252 # we just hope/assume this is gcc and not c89 (= MSVC++)
15253 with_gnu_ld=yes
15254 ;;
15255 openbsd* | bitrig*)
15256 with_gnu_ld=no
15257 ;;
15258 esac
15259
15260 ld_shlibs=yes
15261
15262 # On some targets, GNU ld is compatible enough with the native linker
15263 # that we're better off using the native interface for both.
15264 lt_use_gnu_ld_interface=no
15265 if test yes = "$with_gnu_ld"; then
15266 case $host_os in
15267 aix*)
15268 # The AIX port of GNU ld has always aspired to compatibility
15269 # with the native linker. However, as the warning in the GNU ld
15270 # block says, versions before 2.19.5* couldn't really create working
15271 # shared libraries, regardless of the interface used.
15272 case `$LD -v 2>&1` in
15273 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15274 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15275 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15276 *)
15277 lt_use_gnu_ld_interface=yes
15278 ;;
15279 esac
15280 ;;
15281 *)
15282 lt_use_gnu_ld_interface=yes
15283 ;;
15284 esac
15285 fi
15286
15287 if test yes = "$lt_use_gnu_ld_interface"; then
15288 # If archive_cmds runs LD, not CC, wlarc should be empty
15289 wlarc='$wl'
15290
15291 # Set some defaults for GNU ld with shared library support. These
15292 # are reset later if shared libraries are not supported. Putting them
15293 # here allows them to be overridden if necessary.
15294 runpath_var=LD_RUN_PATH
15295 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15296 export_dynamic_flag_spec='$wl--export-dynamic'
15297 # ancient GNU ld didn't support --whole-archive et. al.
15298 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15299 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15300 else
15301 whole_archive_flag_spec=
15302 fi
15303 supports_anon_versioning=no
15304 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
15305 *GNU\ gold*) supports_anon_versioning=yes ;;
15306 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15307 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15308 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15309 *\ 2.11.*) ;; # other 2.11 versions
15310 *) supports_anon_versioning=yes ;;
15311 esac
15312
15313 # See if GNU ld supports shared libraries.
15314 case $host_os in
15315 aix[3-9]*)
15316 # On AIX/PPC, the GNU linker is very broken
15317 if test ia64 != "$host_cpu"; then
15318 ld_shlibs=no
15319 cat <<_LT_EOF 1>&2
15320
15321 *** Warning: the GNU linker, at least up to release 2.19, is reported
15322 *** to be unable to reliably create shared libraries on AIX.
15323 *** Therefore, libtool is disabling shared libraries support. If you
15324 *** really care for shared libraries, you may want to install binutils
15325 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15326 *** You will then need to restart the configuration process.
15327
15328 _LT_EOF
15329 fi
15330 ;;
15331
15332 amigaos*)
15333 case $host_cpu in
15334 powerpc)
15335 # see comment about AmigaOS4 .so support
15336 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15337 archive_expsym_cmds=''
15338 ;;
15339 m68k)
15340 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)'
15341 hardcode_libdir_flag_spec='-L$libdir'
15342 hardcode_minus_L=yes
15343 ;;
15344 esac
15345 ;;
15346
15347 beos*)
15348 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15349 allow_undefined_flag=unsupported
15350 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
15351 # support --undefined. This deserves some investigation. FIXME
15352 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15353 else
15354 ld_shlibs=no
15355 fi
15356 ;;
15357
15358 cygwin* | mingw* | pw32* | cegcc*)
15359 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15360 # as there is no search path for DLLs.
15361 hardcode_libdir_flag_spec='-L$libdir'
15362 export_dynamic_flag_spec='$wl--export-all-symbols'
15363 allow_undefined_flag=unsupported
15364 always_export_symbols=no
15365 enable_shared_with_static_runtimes=yes
15366 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'
15367 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15368
15369 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15370 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15371 # If the export-symbols file already is a .def file, use it as
15372 # is; otherwise, prepend EXPORTS...
15373 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
15374 cp $export_symbols $output_objdir/$soname.def;
15375 else
15376 echo EXPORTS > $output_objdir/$soname.def;
15377 cat $export_symbols >> $output_objdir/$soname.def;
15378 fi~
15379 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15380 else
15381 ld_shlibs=no
15382 fi
15383 ;;
15384
15385 haiku*)
15386 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15387 link_all_deplibs=yes
15388 ;;
15389
15390 os2*)
15391 hardcode_libdir_flag_spec='-L$libdir'
15392 hardcode_minus_L=yes
15393 allow_undefined_flag=unsupported
15394 shrext_cmds=.dll
15395 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15396 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15397 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15398 $ECHO EXPORTS >> $output_objdir/$libname.def~
15399 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
15400 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15401 emximp -o $lib $output_objdir/$libname.def'
15402 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15403 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15404 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15405 $ECHO EXPORTS >> $output_objdir/$libname.def~
15406 prefix_cmds="$SED"~
15407 if test EXPORTS = "`$SED 1q $export_symbols`"; then
15408 prefix_cmds="$prefix_cmds -e 1d";
15409 fi~
15410 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
15411 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
15412 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15413 emximp -o $lib $output_objdir/$libname.def'
15414 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
15415 enable_shared_with_static_runtimes=yes
15416 ;;
15417
15418 interix[3-9]*)
15419 hardcode_direct=no
15420 hardcode_shlibpath_var=no
15421 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
15422 export_dynamic_flag_spec='$wl-E'
15423 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15424 # Instead, shared libraries are loaded at an image base (0x10000000 by
15425 # default) and relocated if they conflict, which is a slow very memory
15426 # consuming and fragmenting process. To avoid this, we pick a random,
15427 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15428 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15429 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15430 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'
15431 ;;
15432
15433 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15434 tmp_diet=no
15435 if test linux-dietlibc = "$host_os"; then
15436 case $cc_basename in
15437 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15438 esac
15439 fi
15440 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15441 && test no = "$tmp_diet"
15442 then
15443 tmp_addflag=' $pic_flag'
15444 tmp_sharedflag='-shared'
15445 case $cc_basename,$host_cpu in
15446 pgcc*) # Portland Group C compiler
15447 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'
15448 tmp_addflag=' $pic_flag'
15449 ;;
15450 pgf77* | pgf90* | pgf95* | pgfortran*)
15451 # Portland Group f77 and f90 compilers
15452 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'
15453 tmp_addflag=' $pic_flag -Mnomain' ;;
15454 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15455 tmp_addflag=' -i_dynamic' ;;
15456 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15457 tmp_addflag=' -i_dynamic -nofor_main' ;;
15458 ifc* | ifort*) # Intel Fortran compiler
15459 tmp_addflag=' -nofor_main' ;;
15460 lf95*) # Lahey Fortran 8.1
15461 whole_archive_flag_spec=
15462 tmp_sharedflag='--shared' ;;
15463 nagfor*) # NAGFOR 5.3
15464 tmp_sharedflag='-Wl,-shared' ;;
15465 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15466 tmp_sharedflag='-qmkshrobj'
15467 tmp_addflag= ;;
15468 nvcc*) # Cuda Compiler Driver 2.2
15469 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'
15470 compiler_needs_object=yes
15471 ;;
15472 esac
15473 case `$CC -V 2>&1 | sed 5q` in
15474 *Sun\ C*) # Sun C 5.9
15475 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'
15476 compiler_needs_object=yes
15477 tmp_sharedflag='-G' ;;
15478 *Sun\ F*) # Sun Fortran 8.3
15479 tmp_sharedflag='-G' ;;
15480 esac
15481 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15482
15483 if test yes = "$supports_anon_versioning"; then
15484 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15485 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15486 echo "local: *; };" >> $output_objdir/$libname.ver~
15487 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
15488 fi
15489
15490 case $cc_basename in
15491 tcc*)
15492 export_dynamic_flag_spec='-rdynamic'
15493 ;;
15494 xlf* | bgf* | bgxlf* | mpixlf*)
15495 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15496 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15497 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15498 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
15499 if test yes = "$supports_anon_versioning"; then
15500 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15501 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15502 echo "local: *; };" >> $output_objdir/$libname.ver~
15503 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15504 fi
15505 ;;
15506 esac
15507 else
15508 ld_shlibs=no
15509 fi
15510 ;;
15511
15512 netbsd*)
15513 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15514 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15515 wlarc=
15516 else
15517 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15518 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15519 fi
15520 ;;
15521
15522 solaris*)
15523 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15524 ld_shlibs=no
15525 cat <<_LT_EOF 1>&2
15526
15527 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15528 *** create shared libraries on Solaris systems. Therefore, libtool
15529 *** is disabling shared libraries support. We urge you to upgrade GNU
15530 *** binutils to release 2.9.1 or newer. Another option is to modify
15531 *** your PATH or compiler configuration so that the native linker is
15532 *** used, and then restart.
15533
15534 _LT_EOF
15535 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15536 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15537 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15538 else
15539 ld_shlibs=no
15540 fi
15541 ;;
15542
15543 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15544 case `$LD -v 2>&1` in
15545 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15546 ld_shlibs=no
15547 cat <<_LT_EOF 1>&2
15548
15549 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
15550 *** reliably create shared libraries on SCO systems. Therefore, libtool
15551 *** is disabling shared libraries support. We urge you to upgrade GNU
15552 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15553 *** your PATH or compiler configuration so that the native linker is
15554 *** used, and then restart.
15555
15556 _LT_EOF
15557 ;;
15558 *)
15559 # For security reasons, it is highly recommended that you always
15560 # use absolute paths for naming shared libraries, and exclude the
15561 # DT_RUNPATH tag from executables and libraries. But doing so
15562 # requires that you compile everything twice, which is a pain.
15563 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15564 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15565 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15566 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15567 else
15568 ld_shlibs=no
15569 fi
15570 ;;
15571 esac
15572 ;;
15573
15574 sunos4*)
15575 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15576 wlarc=
15577 hardcode_direct=yes
15578 hardcode_shlibpath_var=no
15579 ;;
15580
15581 *)
15582 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15583 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15584 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15585 else
15586 ld_shlibs=no
15587 fi
15588 ;;
15589 esac
15590
15591 if test no = "$ld_shlibs"; then
15592 runpath_var=
15593 hardcode_libdir_flag_spec=
15594 export_dynamic_flag_spec=
15595 whole_archive_flag_spec=
15596 fi
15597 else
15598 # PORTME fill in a description of your system's linker (not GNU ld)
15599 case $host_os in
15600 aix3*)
15601 allow_undefined_flag=unsupported
15602 always_export_symbols=yes
15603 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'
15604 # Note: this linker hardcodes the directories in LIBPATH if there
15605 # are no directories specified by -L.
15606 hardcode_minus_L=yes
15607 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
15608 # Neither direct hardcoding nor static linking is supported with a
15609 # broken collect2.
15610 hardcode_direct=unsupported
15611 fi
15612 ;;
15613
15614 aix[4-9]*)
15615 if test ia64 = "$host_cpu"; then
15616 # On IA64, the linker does run time linking by default, so we don't
15617 # have to do anything special.
15618 aix_use_runtimelinking=no
15619 exp_sym_flag='-Bexport'
15620 no_entry_flag=
15621 else
15622 # If we're using GNU nm, then we don't want the "-C" option.
15623 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
15624 # Without the "-l" option, or with the "-B" option, AIX nm treats
15625 # weak defined symbols like other global defined symbols, whereas
15626 # GNU nm marks them as "W".
15627 # While the 'weak' keyword is ignored in the Export File, we need
15628 # it in the Import File for the 'aix-soname' feature, so we have
15629 # to replace the "-B" option with "-P" for AIX nm.
15630 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15631 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'
15632 else
15633 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'
15634 fi
15635 aix_use_runtimelinking=no
15636
15637 # Test if we are trying to use run time linking or normal
15638 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15639 # have runtime linking enabled, and use it for executables.
15640 # For shared libraries, we enable/disable runtime linking
15641 # depending on the kind of the shared library created -
15642 # when "with_aix_soname,aix_use_runtimelinking" is:
15643 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
15644 # "aix,yes" lib.so shared, rtl:yes, for executables
15645 # lib.a static archive
15646 # "both,no" lib.so.V(shr.o) shared, rtl:yes
15647 # lib.a(lib.so.V) shared, rtl:no, for executables
15648 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
15649 # lib.a(lib.so.V) shared, rtl:no
15650 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
15651 # lib.a static archive
15652 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15653 for ld_flag in $LDFLAGS; do
15654 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
15655 aix_use_runtimelinking=yes
15656 break
15657 fi
15658 done
15659 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
15660 # With aix-soname=svr4, we create the lib.so.V shared archives only,
15661 # so we don't have lib.a shared libs to link our executables.
15662 # We have to force runtime linking in this case.
15663 aix_use_runtimelinking=yes
15664 LDFLAGS="$LDFLAGS -Wl,-brtl"
15665 fi
15666 ;;
15667 esac
15668
15669 exp_sym_flag='-bexport'
15670 no_entry_flag='-bnoentry'
15671 fi
15672
15673 # When large executables or shared objects are built, AIX ld can
15674 # have problems creating the table of contents. If linking a library
15675 # or program results in "error TOC overflow" add -mminimal-toc to
15676 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15677 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15678
15679 archive_cmds=''
15680 hardcode_direct=yes
15681 hardcode_direct_absolute=yes
15682 hardcode_libdir_separator=':'
15683 link_all_deplibs=yes
15684 file_list_spec='$wl-f,'
15685 case $with_aix_soname,$aix_use_runtimelinking in
15686 aix,*) ;; # traditional, no import file
15687 svr4,* | *,yes) # use import file
15688 # The Import File defines what to hardcode.
15689 hardcode_direct=no
15690 hardcode_direct_absolute=no
15691 ;;
15692 esac
15693
15694 if test yes = "$GCC"; then
15695 case $host_os in aix4.[012]|aix4.[012].*)
15696 # We only want to do this on AIX 4.2 and lower, the check
15697 # below for broken collect2 doesn't work under 4.3+
15698 collect2name=`$CC -print-prog-name=collect2`
15699 if test -f "$collect2name" &&
15700 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15701 then
15702 # We have reworked collect2
15703 :
15704 else
15705 # We have old collect2
15706 hardcode_direct=unsupported
15707 # It fails to find uninstalled libraries when the uninstalled
15708 # path is not listed in the libpath. Setting hardcode_minus_L
15709 # to unsupported forces relinking
15710 hardcode_minus_L=yes
15711 hardcode_libdir_flag_spec='-L$libdir'
15712 hardcode_libdir_separator=
15713 fi
15714 ;;
15715 esac
15716 shared_flag='-shared'
15717 if test yes = "$aix_use_runtimelinking"; then
15718 shared_flag="$shared_flag "'$wl-G'
15719 fi
15720 # Need to ensure runtime linking is disabled for the traditional
15721 # shared library, or the linker may eventually find shared libraries
15722 # /with/ Import File - we do not want to mix them.
15723 shared_flag_aix='-shared'
15724 shared_flag_svr4='-shared $wl-G'
15725 else
15726 # not using gcc
15727 if test ia64 = "$host_cpu"; then
15728 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15729 # chokes on -Wl,-G. The following line is correct:
15730 shared_flag='-G'
15731 else
15732 if test yes = "$aix_use_runtimelinking"; then
15733 shared_flag='$wl-G'
15734 else
15735 shared_flag='$wl-bM:SRE'
15736 fi
15737 shared_flag_aix='$wl-bM:SRE'
15738 shared_flag_svr4='$wl-G'
15739 fi
15740 fi
15741
15742 export_dynamic_flag_spec='$wl-bexpall'
15743 # It seems that -bexpall does not export symbols beginning with
15744 # underscore (_), so it is better to generate a list of symbols to export.
15745 always_export_symbols=yes
15746 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
15747 # Warning - without using the other runtime loading flags (-brtl),
15748 # -berok will link without error, but may produce a broken library.
15749 allow_undefined_flag='-berok'
15750 # Determine the default libpath from the value encoded in an
15751 # empty executable.
15752 if test set = "${lt_cv_aix_libpath+set}"; then
15753 aix_libpath=$lt_cv_aix_libpath
15754 else
15755 if ${lt_cv_aix_libpath_+:} false; then :
15756 $as_echo_n "(cached) " >&6
15757 else
15758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15759 /* end confdefs.h. */
15760
15761 int
15762 main ()
15763 {
15764
15765 ;
15766 return 0;
15767 }
15768 _ACEOF
15769 if ac_fn_c_try_link "$LINENO"; then :
15770
15771 lt_aix_libpath_sed='
15772 /Import File Strings/,/^$/ {
15773 /^0/ {
15774 s/^0 *\([^ ]*\) *$/\1/
15775 p
15776 }
15777 }'
15778 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15779 # Check for a 64-bit object if we didn't find anything.
15780 if test -z "$lt_cv_aix_libpath_"; then
15781 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15782 fi
15783 fi
15784 rm -f core conftest.err conftest.$ac_objext \
15785 conftest$ac_exeext conftest.$ac_ext
15786 if test -z "$lt_cv_aix_libpath_"; then
15787 lt_cv_aix_libpath_=/usr/lib:/lib
15788 fi
15789
15790 fi
15791
15792 aix_libpath=$lt_cv_aix_libpath_
15793 fi
15794
15795 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
15796 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
15797 else
15798 if test ia64 = "$host_cpu"; then
15799 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
15800 allow_undefined_flag="-z nodefs"
15801 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"
15802 else
15803 # Determine the default libpath from the value encoded in an
15804 # empty executable.
15805 if test set = "${lt_cv_aix_libpath+set}"; then
15806 aix_libpath=$lt_cv_aix_libpath
15807 else
15808 if ${lt_cv_aix_libpath_+:} false; then :
15809 $as_echo_n "(cached) " >&6
15810 else
15811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15812 /* end confdefs.h. */
15813
15814 int
15815 main ()
15816 {
15817
15818 ;
15819 return 0;
15820 }
15821 _ACEOF
15822 if ac_fn_c_try_link "$LINENO"; then :
15823
15824 lt_aix_libpath_sed='
15825 /Import File Strings/,/^$/ {
15826 /^0/ {
15827 s/^0 *\([^ ]*\) *$/\1/
15828 p
15829 }
15830 }'
15831 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15832 # Check for a 64-bit object if we didn't find anything.
15833 if test -z "$lt_cv_aix_libpath_"; then
15834 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15835 fi
15836 fi
15837 rm -f core conftest.err conftest.$ac_objext \
15838 conftest$ac_exeext conftest.$ac_ext
15839 if test -z "$lt_cv_aix_libpath_"; then
15840 lt_cv_aix_libpath_=/usr/lib:/lib
15841 fi
15842
15843 fi
15844
15845 aix_libpath=$lt_cv_aix_libpath_
15846 fi
15847
15848 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
15849 # Warning - without using the other run time loading flags,
15850 # -berok will link without error, but may produce a broken library.
15851 no_undefined_flag=' $wl-bernotok'
15852 allow_undefined_flag=' $wl-berok'
15853 if test yes = "$with_gnu_ld"; then
15854 # We only use this code for GNU lds that support --whole-archive.
15855 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
15856 else
15857 # Exported symbols can be pulled into shared objects from archives
15858 whole_archive_flag_spec='$convenience'
15859 fi
15860 archive_cmds_need_lc=yes
15861 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
15862 # -brtl affects multiple linker settings, -berok does not and is overridden later
15863 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
15864 if test svr4 != "$with_aix_soname"; then
15865 # This is similar to how AIX traditionally builds its shared libraries.
15866 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'
15867 fi
15868 if test aix != "$with_aix_soname"; then
15869 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'
15870 else
15871 # used by -dlpreopen to get the symbols
15872 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
15873 fi
15874 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
15875 fi
15876 fi
15877 ;;
15878
15879 amigaos*)
15880 case $host_cpu in
15881 powerpc)
15882 # see comment about AmigaOS4 .so support
15883 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15884 archive_expsym_cmds=''
15885 ;;
15886 m68k)
15887 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)'
15888 hardcode_libdir_flag_spec='-L$libdir'
15889 hardcode_minus_L=yes
15890 ;;
15891 esac
15892 ;;
15893
15894 bsdi[45]*)
15895 export_dynamic_flag_spec=-rdynamic
15896 ;;
15897
15898 cygwin* | mingw* | pw32* | cegcc*)
15899 # When not using gcc, we currently assume that we are using
15900 # Microsoft Visual C++.
15901 # hardcode_libdir_flag_spec is actually meaningless, as there is
15902 # no search path for DLLs.
15903 case $cc_basename in
15904 cl*)
15905 # Native MSVC
15906 hardcode_libdir_flag_spec=' '
15907 allow_undefined_flag=unsupported
15908 always_export_symbols=yes
15909 file_list_spec='@'
15910 # Tell ltmain to make .lib files, not .a files.
15911 libext=lib
15912 # Tell ltmain to make .dll files, not .so files.
15913 shrext_cmds=.dll
15914 # FIXME: Setting linknames here is a bad hack.
15915 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
15916 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
15917 cp "$export_symbols" "$output_objdir/$soname.def";
15918 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
15919 else
15920 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
15921 fi~
15922 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15923 linknames='
15924 # The linker will not automatically build a static lib if we build a DLL.
15925 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15926 enable_shared_with_static_runtimes=yes
15927 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15928 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15929 # Don't use ranlib
15930 old_postinstall_cmds='chmod 644 $oldlib'
15931 postlink_cmds='lt_outputfile="@OUTPUT@"~
15932 lt_tool_outputfile="@TOOL_OUTPUT@"~
15933 case $lt_outputfile in
15934 *.exe|*.EXE) ;;
15935 *)
15936 lt_outputfile=$lt_outputfile.exe
15937 lt_tool_outputfile=$lt_tool_outputfile.exe
15938 ;;
15939 esac~
15940 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
15941 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15942 $RM "$lt_outputfile.manifest";
15943 fi'
15944 ;;
15945 *)
15946 # Assume MSVC wrapper
15947 hardcode_libdir_flag_spec=' '
15948 allow_undefined_flag=unsupported
15949 # Tell ltmain to make .lib files, not .a files.
15950 libext=lib
15951 # Tell ltmain to make .dll files, not .so files.
15952 shrext_cmds=.dll
15953 # FIXME: Setting linknames here is a bad hack.
15954 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15955 # The linker will automatically build a .lib file if we build a DLL.
15956 old_archive_from_new_cmds='true'
15957 # FIXME: Should let the user specify the lib program.
15958 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15959 enable_shared_with_static_runtimes=yes
15960 ;;
15961 esac
15962 ;;
15963
15964 darwin* | rhapsody*)
15965
15966
15967 archive_cmds_need_lc=no
15968 hardcode_direct=no
15969 hardcode_automatic=yes
15970 hardcode_shlibpath_var=unsupported
15971 if test yes = "$lt_cv_ld_force_load"; then
15972 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\"`'
15973
15974 else
15975 whole_archive_flag_spec=''
15976 fi
15977 link_all_deplibs=yes
15978 allow_undefined_flag=$_lt_dar_allow_undefined
15979 case $cc_basename in
15980 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
15981 *) _lt_dar_can_shared=$GCC ;;
15982 esac
15983 if test yes = "$_lt_dar_can_shared"; then
15984 output_verbose_link_cmd=func_echo_all
15985 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
15986 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
15987 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"
15988 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"
15989
15990 else
15991 ld_shlibs=no
15992 fi
15993
15994 ;;
15995
15996 dgux*)
15997 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15998 hardcode_libdir_flag_spec='-L$libdir'
15999 hardcode_shlibpath_var=no
16000 ;;
16001
16002 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16003 # support. Future versions do this automatically, but an explicit c++rt0.o
16004 # does not break anything, and helps significantly (at the cost of a little
16005 # extra space).
16006 freebsd2.2*)
16007 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16008 hardcode_libdir_flag_spec='-R$libdir'
16009 hardcode_direct=yes
16010 hardcode_shlibpath_var=no
16011 ;;
16012
16013 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16014 freebsd2.*)
16015 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16016 hardcode_direct=yes
16017 hardcode_minus_L=yes
16018 hardcode_shlibpath_var=no
16019 ;;
16020
16021 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16022 freebsd* | dragonfly*)
16023 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16024 hardcode_libdir_flag_spec='-R$libdir'
16025 hardcode_direct=yes
16026 hardcode_shlibpath_var=no
16027 ;;
16028
16029 hpux9*)
16030 if test yes = "$GCC"; then
16031 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'
16032 else
16033 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'
16034 fi
16035 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16036 hardcode_libdir_separator=:
16037 hardcode_direct=yes
16038
16039 # hardcode_minus_L: Not really in the search PATH,
16040 # but as the default location of the library.
16041 hardcode_minus_L=yes
16042 export_dynamic_flag_spec='$wl-E'
16043 ;;
16044
16045 hpux10*)
16046 if test yes,no = "$GCC,$with_gnu_ld"; then
16047 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16048 else
16049 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16050 fi
16051 if test no = "$with_gnu_ld"; then
16052 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16053 hardcode_libdir_separator=:
16054 hardcode_direct=yes
16055 hardcode_direct_absolute=yes
16056 export_dynamic_flag_spec='$wl-E'
16057 # hardcode_minus_L: Not really in the search PATH,
16058 # but as the default location of the library.
16059 hardcode_minus_L=yes
16060 fi
16061 ;;
16062
16063 hpux11*)
16064 if test yes,no = "$GCC,$with_gnu_ld"; then
16065 case $host_cpu in
16066 hppa*64*)
16067 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16068 ;;
16069 ia64*)
16070 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16071 ;;
16072 *)
16073 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16074 ;;
16075 esac
16076 else
16077 case $host_cpu in
16078 hppa*64*)
16079 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16080 ;;
16081 ia64*)
16082 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16083 ;;
16084 *)
16085
16086 # Older versions of the 11.00 compiler do not understand -b yet
16087 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16089 $as_echo_n "checking if $CC understands -b... " >&6; }
16090 if ${lt_cv_prog_compiler__b+:} false; then :
16091 $as_echo_n "(cached) " >&6
16092 else
16093 lt_cv_prog_compiler__b=no
16094 save_LDFLAGS=$LDFLAGS
16095 LDFLAGS="$LDFLAGS -b"
16096 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16097 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16098 # The linker can only warn and ignore the option if not recognized
16099 # So say no if there are warnings
16100 if test -s conftest.err; then
16101 # Append any errors to the config.log.
16102 cat conftest.err 1>&5
16103 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16104 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16105 if diff conftest.exp conftest.er2 >/dev/null; then
16106 lt_cv_prog_compiler__b=yes
16107 fi
16108 else
16109 lt_cv_prog_compiler__b=yes
16110 fi
16111 fi
16112 $RM -r conftest*
16113 LDFLAGS=$save_LDFLAGS
16114
16115 fi
16116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16117 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16118
16119 if test yes = "$lt_cv_prog_compiler__b"; then
16120 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16121 else
16122 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16123 fi
16124
16125 ;;
16126 esac
16127 fi
16128 if test no = "$with_gnu_ld"; then
16129 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16130 hardcode_libdir_separator=:
16131
16132 case $host_cpu in
16133 hppa*64*|ia64*)
16134 hardcode_direct=no
16135 hardcode_shlibpath_var=no
16136 ;;
16137 *)
16138 hardcode_direct=yes
16139 hardcode_direct_absolute=yes
16140 export_dynamic_flag_spec='$wl-E'
16141
16142 # hardcode_minus_L: Not really in the search PATH,
16143 # but as the default location of the library.
16144 hardcode_minus_L=yes
16145 ;;
16146 esac
16147 fi
16148 ;;
16149
16150 irix5* | irix6* | nonstopux*)
16151 if test yes = "$GCC"; then
16152 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'
16153 # Try to use the -exported_symbol ld option, if it does not
16154 # work, assume that -exports_file does not work either and
16155 # implicitly export all symbols.
16156 # This should be the same for all languages, so no per-tag cache variable.
16157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
16158 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
16159 if ${lt_cv_irix_exported_symbol+:} false; then :
16160 $as_echo_n "(cached) " >&6
16161 else
16162 save_LDFLAGS=$LDFLAGS
16163 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
16164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16165 /* end confdefs.h. */
16166 int foo (void) { return 0; }
16167 _ACEOF
16168 if ac_fn_c_try_link "$LINENO"; then :
16169 lt_cv_irix_exported_symbol=yes
16170 else
16171 lt_cv_irix_exported_symbol=no
16172 fi
16173 rm -f core conftest.err conftest.$ac_objext \
16174 conftest$ac_exeext conftest.$ac_ext
16175 LDFLAGS=$save_LDFLAGS
16176 fi
16177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
16178 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
16179 if test yes = "$lt_cv_irix_exported_symbol"; then
16180 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'
16181 fi
16182 else
16183 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'
16184 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'
16185 fi
16186 archive_cmds_need_lc='no'
16187 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16188 hardcode_libdir_separator=:
16189 inherit_rpath=yes
16190 link_all_deplibs=yes
16191 ;;
16192
16193 linux*)
16194 case $cc_basename in
16195 tcc*)
16196 # Fabrice Bellard et al's Tiny C Compiler
16197 ld_shlibs=yes
16198 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16199 ;;
16200 esac
16201 ;;
16202
16203 netbsd*)
16204 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16205 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16206 else
16207 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16208 fi
16209 hardcode_libdir_flag_spec='-R$libdir'
16210 hardcode_direct=yes
16211 hardcode_shlibpath_var=no
16212 ;;
16213
16214 newsos6)
16215 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16216 hardcode_direct=yes
16217 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16218 hardcode_libdir_separator=:
16219 hardcode_shlibpath_var=no
16220 ;;
16221
16222 *nto* | *qnx*)
16223 ;;
16224
16225 openbsd* | bitrig*)
16226 if test -f /usr/libexec/ld.so; then
16227 hardcode_direct=yes
16228 hardcode_shlibpath_var=no
16229 hardcode_direct_absolute=yes
16230 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16231 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16232 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
16233 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
16234 export_dynamic_flag_spec='$wl-E'
16235 else
16236 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16237 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
16238 fi
16239 else
16240 ld_shlibs=no
16241 fi
16242 ;;
16243
16244 os2*)
16245 hardcode_libdir_flag_spec='-L$libdir'
16246 hardcode_minus_L=yes
16247 allow_undefined_flag=unsupported
16248 shrext_cmds=.dll
16249 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16250 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16251 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16252 $ECHO EXPORTS >> $output_objdir/$libname.def~
16253 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
16254 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16255 emximp -o $lib $output_objdir/$libname.def'
16256 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16257 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16258 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16259 $ECHO EXPORTS >> $output_objdir/$libname.def~
16260 prefix_cmds="$SED"~
16261 if test EXPORTS = "`$SED 1q $export_symbols`"; then
16262 prefix_cmds="$prefix_cmds -e 1d";
16263 fi~
16264 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
16265 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
16266 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16267 emximp -o $lib $output_objdir/$libname.def'
16268 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
16269 enable_shared_with_static_runtimes=yes
16270 ;;
16271
16272 osf3*)
16273 if test yes = "$GCC"; then
16274 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
16275 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'
16276 else
16277 allow_undefined_flag=' -expect_unresolved \*'
16278 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'
16279 fi
16280 archive_cmds_need_lc='no'
16281 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16282 hardcode_libdir_separator=:
16283 ;;
16284
16285 osf4* | osf5*) # as osf3* with the addition of -msym flag
16286 if test yes = "$GCC"; then
16287 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
16288 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'
16289 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16290 else
16291 allow_undefined_flag=' -expect_unresolved \*'
16292 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'
16293 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~
16294 $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'
16295
16296 # Both c and cxx compiler support -rpath directly
16297 hardcode_libdir_flag_spec='-rpath $libdir'
16298 fi
16299 archive_cmds_need_lc='no'
16300 hardcode_libdir_separator=:
16301 ;;
16302
16303 solaris*)
16304 no_undefined_flag=' -z defs'
16305 if test yes = "$GCC"; then
16306 wlarc='$wl'
16307 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16308 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16309 $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'
16310 else
16311 case `$CC -V 2>&1` in
16312 *"Compilers 5.0"*)
16313 wlarc=''
16314 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
16315 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16316 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16317 ;;
16318 *)
16319 wlarc='$wl'
16320 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16321 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16322 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16323 ;;
16324 esac
16325 fi
16326 hardcode_libdir_flag_spec='-R$libdir'
16327 hardcode_shlibpath_var=no
16328 case $host_os in
16329 solaris2.[0-5] | solaris2.[0-5].*) ;;
16330 *)
16331 # The compiler driver will combine and reorder linker options,
16332 # but understands '-z linker_flag'. GCC discards it without '$wl',
16333 # but is careful enough not to reorder.
16334 # Supported since Solaris 2.6 (maybe 2.5.1?)
16335 if test yes = "$GCC"; then
16336 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
16337 else
16338 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16339 fi
16340 ;;
16341 esac
16342 link_all_deplibs=yes
16343 ;;
16344
16345 sunos4*)
16346 if test sequent = "$host_vendor"; then
16347 # Use $CC to link under sequent, because it throws in some extra .o
16348 # files that make .init and .fini sections work.
16349 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16350 else
16351 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16352 fi
16353 hardcode_libdir_flag_spec='-L$libdir'
16354 hardcode_direct=yes
16355 hardcode_minus_L=yes
16356 hardcode_shlibpath_var=no
16357 ;;
16358
16359 sysv4)
16360 case $host_vendor in
16361 sni)
16362 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16363 hardcode_direct=yes # is this really true???
16364 ;;
16365 siemens)
16366 ## LD is ld it makes a PLAMLIB
16367 ## CC just makes a GrossModule.
16368 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16369 reload_cmds='$CC -r -o $output$reload_objs'
16370 hardcode_direct=no
16371 ;;
16372 motorola)
16373 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16374 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16375 ;;
16376 esac
16377 runpath_var='LD_RUN_PATH'
16378 hardcode_shlibpath_var=no
16379 ;;
16380
16381 sysv4.3*)
16382 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16383 hardcode_shlibpath_var=no
16384 export_dynamic_flag_spec='-Bexport'
16385 ;;
16386
16387 sysv4*MP*)
16388 if test -d /usr/nec; then
16389 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16390 hardcode_shlibpath_var=no
16391 runpath_var=LD_RUN_PATH
16392 hardcode_runpath_var=yes
16393 ld_shlibs=yes
16394 fi
16395 ;;
16396
16397 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16398 no_undefined_flag='$wl-z,text'
16399 archive_cmds_need_lc=no
16400 hardcode_shlibpath_var=no
16401 runpath_var='LD_RUN_PATH'
16402
16403 if test yes = "$GCC"; then
16404 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16405 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16406 else
16407 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16408 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16409 fi
16410 ;;
16411
16412 sysv5* | sco3.2v5* | sco5v6*)
16413 # Note: We CANNOT use -z defs as we might desire, because we do not
16414 # link with -lc, and that would cause any symbols used from libc to
16415 # always be unresolved, which means just about no library would
16416 # ever link correctly. If we're not using GNU ld we use -z text
16417 # though, which does catch some bad symbols but isn't as heavy-handed
16418 # as -z defs.
16419 no_undefined_flag='$wl-z,text'
16420 allow_undefined_flag='$wl-z,nodefs'
16421 archive_cmds_need_lc=no
16422 hardcode_shlibpath_var=no
16423 hardcode_libdir_flag_spec='$wl-R,$libdir'
16424 hardcode_libdir_separator=':'
16425 link_all_deplibs=yes
16426 export_dynamic_flag_spec='$wl-Bexport'
16427 runpath_var='LD_RUN_PATH'
16428
16429 if test yes = "$GCC"; then
16430 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16431 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16432 else
16433 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16434 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16435 fi
16436 ;;
16437
16438 uts4*)
16439 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16440 hardcode_libdir_flag_spec='-L$libdir'
16441 hardcode_shlibpath_var=no
16442 ;;
16443
16444 *)
16445 ld_shlibs=no
16446 ;;
16447 esac
16448
16449 if test sni = "$host_vendor"; then
16450 case $host in
16451 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16452 export_dynamic_flag_spec='$wl-Blargedynsym'
16453 ;;
16454 esac
16455 fi
16456 fi
16457
16458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16459 $as_echo "$ld_shlibs" >&6; }
16460 test no = "$ld_shlibs" && can_build_shared=no
16461
16462 with_gnu_ld=$with_gnu_ld
16463
16464
16465
16466
16467
16468
16469
16470
16471
16472
16473
16474
16475
16476
16477
16478 #
16479 # Do we need to explicitly link libc?
16480 #
16481 case "x$archive_cmds_need_lc" in
16482 x|xyes)
16483 # Assume -lc should be added
16484 archive_cmds_need_lc=yes
16485
16486 if test yes,yes = "$GCC,$enable_shared"; then
16487 case $archive_cmds in
16488 *'~'*)
16489 # FIXME: we may have to deal with multi-command sequences.
16490 ;;
16491 '$CC '*)
16492 # Test whether the compiler implicitly links with -lc since on some
16493 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16494 # to ld, don't add -lc before -lgcc.
16495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16496 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16497 if ${lt_cv_archive_cmds_need_lc+:} false; then :
16498 $as_echo_n "(cached) " >&6
16499 else
16500 $RM conftest*
16501 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16502
16503 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16504 (eval $ac_compile) 2>&5
16505 ac_status=$?
16506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16507 test $ac_status = 0; } 2>conftest.err; then
16508 soname=conftest
16509 lib=conftest
16510 libobjs=conftest.$ac_objext
16511 deplibs=
16512 wl=$lt_prog_compiler_wl
16513 pic_flag=$lt_prog_compiler_pic
16514 compiler_flags=-v
16515 linker_flags=-v
16516 verstring=
16517 output_objdir=.
16518 libname=conftest
16519 lt_save_allow_undefined_flag=$allow_undefined_flag
16520 allow_undefined_flag=
16521 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16522 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16523 ac_status=$?
16524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16525 test $ac_status = 0; }
16526 then
16527 lt_cv_archive_cmds_need_lc=no
16528 else
16529 lt_cv_archive_cmds_need_lc=yes
16530 fi
16531 allow_undefined_flag=$lt_save_allow_undefined_flag
16532 else
16533 cat conftest.err 1>&5
16534 fi
16535 $RM conftest*
16536
16537 fi
16538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16539 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16540 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16541 ;;
16542 esac
16543 fi
16544 ;;
16545 esac
16546
16547
16548
16549
16550
16551
16552
16553
16554
16555
16556
16557
16558
16559
16560
16561
16562
16563
16564
16565
16566
16567
16568
16569
16570
16571
16572
16573
16574
16575
16576
16577
16578
16579
16580
16581
16582
16583
16584
16585
16586
16587
16588
16589
16590
16591
16592
16593
16594
16595
16596
16597
16598
16599
16600
16601
16602
16603
16604
16605
16606
16607
16608
16609
16610
16611
16612
16613
16614
16615
16616
16617
16618
16619
16620
16621
16622
16623
16624
16625
16626
16627
16628
16629
16630
16631
16632
16633
16634
16635
16636
16637
16638
16639
16640
16641
16642
16643
16644
16645
16646
16647
16648
16649
16650
16651
16652
16653
16654
16655
16656
16657
16658
16659
16660
16661
16662
16663
16664
16665
16666
16667
16668
16669
16670
16671
16672
16673
16674
16675
16676
16677
16678
16679
16680
16681
16682
16683
16684
16685
16686
16687
16688
16689
16690
16691
16692
16693
16694
16695
16696
16697
16698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16699 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16700
16701 if test yes = "$GCC"; then
16702 case $host_os in
16703 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
16704 *) lt_awk_arg='/^libraries:/' ;;
16705 esac
16706 case $host_os in
16707 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
16708 *) lt_sed_strip_eq='s|=/|/|g' ;;
16709 esac
16710 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16711 case $lt_search_path_spec in
16712 *\;*)
16713 # if the path contains ";" then we assume it to be the separator
16714 # otherwise default to the standard path separator (i.e. ":") - it is
16715 # assumed that no part of a normal pathname contains ";" but that should
16716 # okay in the real world where ";" in dirpaths is itself problematic.
16717 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16718 ;;
16719 *)
16720 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16721 ;;
16722 esac
16723 # Ok, now we have the path, separated by spaces, we can step through it
16724 # and add multilib dir if necessary...
16725 lt_tmp_lt_search_path_spec=
16726 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16727 # ...but if some path component already ends with the multilib dir we assume
16728 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
16729 case "$lt_multi_os_dir; $lt_search_path_spec " in
16730 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
16731 lt_multi_os_dir=
16732 ;;
16733 esac
16734 for lt_sys_path in $lt_search_path_spec; do
16735 if test -d "$lt_sys_path$lt_multi_os_dir"; then
16736 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
16737 elif test -n "$lt_multi_os_dir"; then
16738 test -d "$lt_sys_path" && \
16739 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16740 fi
16741 done
16742 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16743 BEGIN {RS = " "; FS = "/|\n";} {
16744 lt_foo = "";
16745 lt_count = 0;
16746 for (lt_i = NF; lt_i > 0; lt_i--) {
16747 if ($lt_i != "" && $lt_i != ".") {
16748 if ($lt_i == "..") {
16749 lt_count++;
16750 } else {
16751 if (lt_count == 0) {
16752 lt_foo = "/" $lt_i lt_foo;
16753 } else {
16754 lt_count--;
16755 }
16756 }
16757 }
16758 }
16759 if (lt_foo != "") { lt_freq[lt_foo]++; }
16760 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16761 }'`
16762 # AWK program above erroneously prepends '/' to C:/dos/paths
16763 # for these hosts.
16764 case $host_os in
16765 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16766 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
16767 esac
16768 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16769 else
16770 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16771 fi
16772 library_names_spec=
16773 libname_spec='lib$name'
16774 soname_spec=
16775 shrext_cmds=.so
16776 postinstall_cmds=
16777 postuninstall_cmds=
16778 finish_cmds=
16779 finish_eval=
16780 shlibpath_var=
16781 shlibpath_overrides_runpath=unknown
16782 version_type=none
16783 dynamic_linker="$host_os ld.so"
16784 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16785 need_lib_prefix=unknown
16786 hardcode_into_libs=no
16787
16788 # when you set need_version to no, make sure it does not cause -set_version
16789 # flags to be left without arguments
16790 need_version=unknown
16791
16792 case $host_os in
16793 aix3*)
16794 version_type=linux # correct to gnu/linux during the next big refactor
16795 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
16796 shlibpath_var=LIBPATH
16797
16798 # AIX 3 has no versioning support, so we append a major version to the name.
16799 soname_spec='$libname$release$shared_ext$major'
16800 ;;
16801
16802 aix[4-9]*)
16803 version_type=linux # correct to gnu/linux during the next big refactor
16804 need_lib_prefix=no
16805 need_version=no
16806 hardcode_into_libs=yes
16807 if test ia64 = "$host_cpu"; then
16808 # AIX 5 supports IA64
16809 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
16810 shlibpath_var=LD_LIBRARY_PATH
16811 else
16812 # With GCC up to 2.95.x, collect2 would create an import file
16813 # for dependence libraries. The import file would start with
16814 # the line '#! .'. This would cause the generated library to
16815 # depend on '.', always an invalid library. This was fixed in
16816 # development snapshots of GCC prior to 3.0.
16817 case $host_os in
16818 aix4 | aix4.[01] | aix4.[01].*)
16819 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16820 echo ' yes '
16821 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
16822 :
16823 else
16824 can_build_shared=no
16825 fi
16826 ;;
16827 esac
16828 # Using Import Files as archive members, it is possible to support
16829 # filename-based versioning of shared library archives on AIX. While
16830 # this would work for both with and without runtime linking, it will
16831 # prevent static linking of such archives. So we do filename-based
16832 # shared library versioning with .so extension only, which is used
16833 # when both runtime linking and shared linking is enabled.
16834 # Unfortunately, runtime linking may impact performance, so we do
16835 # not want this to be the default eventually. Also, we use the
16836 # versioned .so libs for executables only if there is the -brtl
16837 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
16838 # To allow for filename-based versioning support, we need to create
16839 # libNAME.so.V as an archive file, containing:
16840 # *) an Import File, referring to the versioned filename of the
16841 # archive as well as the shared archive member, telling the
16842 # bitwidth (32 or 64) of that shared object, and providing the
16843 # list of exported symbols of that shared object, eventually
16844 # decorated with the 'weak' keyword
16845 # *) the shared object with the F_LOADONLY flag set, to really avoid
16846 # it being seen by the linker.
16847 # At run time we better use the real file rather than another symlink,
16848 # but for link time we create the symlink libNAME.so -> libNAME.so.V
16849
16850 case $with_aix_soname,$aix_use_runtimelinking in
16851 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
16852 # soname into executable. Probably we can add versioning support to
16853 # collect2, so additional links can be useful in future.
16854 aix,yes) # traditional libtool
16855 dynamic_linker='AIX unversionable lib.so'
16856 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16857 # instead of lib<name>.a to let people know that these are not
16858 # typical AIX shared libraries.
16859 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16860 ;;
16861 aix,no) # traditional AIX only
16862 dynamic_linker='AIX lib.a(lib.so.V)'
16863 # We preserve .a as extension for shared libraries through AIX4.2
16864 # and later when we are not doing run time linking.
16865 library_names_spec='$libname$release.a $libname.a'
16866 soname_spec='$libname$release$shared_ext$major'
16867 ;;
16868 svr4,*) # full svr4 only
16869 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
16870 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16871 # We do not specify a path in Import Files, so LIBPATH fires.
16872 shlibpath_overrides_runpath=yes
16873 ;;
16874 *,yes) # both, prefer svr4
16875 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
16876 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16877 # unpreferred sharedlib libNAME.a needs extra handling
16878 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"'
16879 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"'
16880 # We do not specify a path in Import Files, so LIBPATH fires.
16881 shlibpath_overrides_runpath=yes
16882 ;;
16883 *,no) # both, prefer aix
16884 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
16885 library_names_spec='$libname$release.a $libname.a'
16886 soname_spec='$libname$release$shared_ext$major'
16887 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
16888 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)'
16889 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"'
16890 ;;
16891 esac
16892 shlibpath_var=LIBPATH
16893 fi
16894 ;;
16895
16896 amigaos*)
16897 case $host_cpu in
16898 powerpc)
16899 # Since July 2007 AmigaOS4 officially supports .so libraries.
16900 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16901 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16902 ;;
16903 m68k)
16904 library_names_spec='$libname.ixlibrary $libname.a'
16905 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16906 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'
16907 ;;
16908 esac
16909 ;;
16910
16911 beos*)
16912 library_names_spec='$libname$shared_ext'
16913 dynamic_linker="$host_os ld.so"
16914 shlibpath_var=LIBRARY_PATH
16915 ;;
16916
16917 bsdi[45]*)
16918 version_type=linux # correct to gnu/linux during the next big refactor
16919 need_version=no
16920 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16921 soname_spec='$libname$release$shared_ext$major'
16922 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16923 shlibpath_var=LD_LIBRARY_PATH
16924 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16925 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16926 # the default ld.so.conf also contains /usr/contrib/lib and
16927 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16928 # libtool to hard-code these into programs
16929 ;;
16930
16931 cygwin* | mingw* | pw32* | cegcc*)
16932 version_type=windows
16933 shrext_cmds=.dll
16934 need_version=no
16935 need_lib_prefix=no
16936
16937 case $GCC,$cc_basename in
16938 yes,*)
16939 # gcc
16940 library_names_spec='$libname.dll.a'
16941 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16942 postinstall_cmds='base_file=`basename \$file`~
16943 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16944 dldir=$destdir/`dirname \$dlpath`~
16945 test -d \$dldir || mkdir -p \$dldir~
16946 $install_prog $dir/$dlname \$dldir/$dlname~
16947 chmod a+x \$dldir/$dlname~
16948 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16949 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16950 fi'
16951 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16952 dlpath=$dir/\$dldll~
16953 $RM \$dlpath'
16954 shlibpath_overrides_runpath=yes
16955
16956 case $host_os in
16957 cygwin*)
16958 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16959 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16960
16961 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16962 ;;
16963 mingw* | cegcc*)
16964 # MinGW DLLs use traditional 'lib' prefix
16965 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16966 ;;
16967 pw32*)
16968 # pw32 DLLs use 'pw' prefix rather than 'lib'
16969 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16970 ;;
16971 esac
16972 dynamic_linker='Win32 ld.exe'
16973 ;;
16974
16975 *,cl*)
16976 # Native MSVC
16977 libname_spec='$name'
16978 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16979 library_names_spec='$libname.dll.lib'
16980
16981 case $build_os in
16982 mingw*)
16983 sys_lib_search_path_spec=
16984 lt_save_ifs=$IFS
16985 IFS=';'
16986 for lt_path in $LIB
16987 do
16988 IFS=$lt_save_ifs
16989 # Let DOS variable expansion print the short 8.3 style file name.
16990 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16991 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16992 done
16993 IFS=$lt_save_ifs
16994 # Convert to MSYS style.
16995 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16996 ;;
16997 cygwin*)
16998 # Convert to unix form, then to dos form, then back to unix form
16999 # but this time dos style (no spaces!) so that the unix form looks
17000 # like /cygdrive/c/PROGRA~1:/cygdr...
17001 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17002 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17003 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17004 ;;
17005 *)
17006 sys_lib_search_path_spec=$LIB
17007 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17008 # It is most probably a Windows format PATH.
17009 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17010 else
17011 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17012 fi
17013 # FIXME: find the short name or the path components, as spaces are
17014 # common. (e.g. "Program Files" -> "PROGRA~1")
17015 ;;
17016 esac
17017
17018 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17019 postinstall_cmds='base_file=`basename \$file`~
17020 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17021 dldir=$destdir/`dirname \$dlpath`~
17022 test -d \$dldir || mkdir -p \$dldir~
17023 $install_prog $dir/$dlname \$dldir/$dlname'
17024 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17025 dlpath=$dir/\$dldll~
17026 $RM \$dlpath'
17027 shlibpath_overrides_runpath=yes
17028 dynamic_linker='Win32 link.exe'
17029 ;;
17030
17031 *)
17032 # Assume MSVC wrapper
17033 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
17034 dynamic_linker='Win32 ld.exe'
17035 ;;
17036 esac
17037 # FIXME: first we should search . and the directory the executable is in
17038 shlibpath_var=PATH
17039 ;;
17040
17041 darwin* | rhapsody*)
17042 dynamic_linker="$host_os dyld"
17043 version_type=darwin
17044 need_lib_prefix=no
17045 need_version=no
17046 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
17047 soname_spec='$libname$release$major$shared_ext'
17048 shlibpath_overrides_runpath=yes
17049 shlibpath_var=DYLD_LIBRARY_PATH
17050 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17051
17052 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17053 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17054 ;;
17055
17056 dgux*)
17057 version_type=linux # correct to gnu/linux during the next big refactor
17058 need_lib_prefix=no
17059 need_version=no
17060 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17061 soname_spec='$libname$release$shared_ext$major'
17062 shlibpath_var=LD_LIBRARY_PATH
17063 ;;
17064
17065 freebsd* | dragonfly*)
17066 # DragonFly does not have aout. When/if they implement a new
17067 # versioning mechanism, adjust this.
17068 if test -x /usr/bin/objformat; then
17069 objformat=`/usr/bin/objformat`
17070 else
17071 case $host_os in
17072 freebsd[23].*) objformat=aout ;;
17073 *) objformat=elf ;;
17074 esac
17075 fi
17076 # Handle Gentoo/FreeBSD as it was Linux
17077 case $host_vendor in
17078 gentoo)
17079 version_type=linux ;;
17080 *)
17081 version_type=freebsd-$objformat ;;
17082 esac
17083
17084 case $version_type in
17085 freebsd-elf*)
17086 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17087 need_version=no
17088 need_lib_prefix=no
17089 ;;
17090 freebsd-*)
17091 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17092 need_version=yes
17093 ;;
17094 linux)
17095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17096 soname_spec='${libname}${release}${shared_ext}$major'
17097 need_lib_prefix=no
17098 need_version=no
17099 ;;
17100 esac
17101 shlibpath_var=LD_LIBRARY_PATH
17102 case $host_os in
17103 freebsd2.*)
17104 shlibpath_overrides_runpath=yes
17105 ;;
17106 freebsd3.[01]* | freebsdelf3.[01]*)
17107 shlibpath_overrides_runpath=yes
17108 hardcode_into_libs=yes
17109 ;;
17110 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17111 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17112 shlibpath_overrides_runpath=no
17113 hardcode_into_libs=yes
17114 ;;
17115 *) # from 4.6 on, and DragonFly
17116 shlibpath_overrides_runpath=yes
17117 hardcode_into_libs=yes
17118 ;;
17119 esac
17120 ;;
17121
17122 haiku*)
17123 version_type=linux # correct to gnu/linux during the next big refactor
17124 need_lib_prefix=no
17125 need_version=no
17126 dynamic_linker="$host_os runtime_loader"
17127 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17128 soname_spec='$libname$release$shared_ext$major'
17129 shlibpath_var=LIBRARY_PATH
17130 shlibpath_overrides_runpath=no
17131 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17132 hardcode_into_libs=yes
17133 ;;
17134
17135 hpux9* | hpux10* | hpux11*)
17136 # Give a soname corresponding to the major version so that dld.sl refuses to
17137 # link against other versions.
17138 version_type=sunos
17139 need_lib_prefix=no
17140 need_version=no
17141 case $host_cpu in
17142 ia64*)
17143 shrext_cmds='.so'
17144 hardcode_into_libs=yes
17145 dynamic_linker="$host_os dld.so"
17146 shlibpath_var=LD_LIBRARY_PATH
17147 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17148 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17149 soname_spec='$libname$release$shared_ext$major'
17150 if test 32 = "$HPUX_IA64_MODE"; then
17151 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17152 else
17153 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17154 fi
17155 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17156 ;;
17157 hppa*64*)
17158 shrext_cmds='.sl'
17159 hardcode_into_libs=yes
17160 dynamic_linker="$host_os dld.sl"
17161 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17162 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17163 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17164 soname_spec='$libname$release$shared_ext$major'
17165 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17166 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17167 ;;
17168 *)
17169 shrext_cmds='.sl'
17170 dynamic_linker="$host_os dld.sl"
17171 shlibpath_var=SHLIB_PATH
17172 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17173 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17174 soname_spec='$libname$release$shared_ext$major'
17175 ;;
17176 esac
17177 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17178 postinstall_cmds='chmod 555 $lib'
17179 # or fails outright, so override atomically:
17180 install_override_mode=555
17181 ;;
17182
17183 interix[3-9]*)
17184 version_type=linux # correct to gnu/linux during the next big refactor
17185 need_lib_prefix=no
17186 need_version=no
17187 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17188 soname_spec='$libname$release$shared_ext$major'
17189 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17190 shlibpath_var=LD_LIBRARY_PATH
17191 shlibpath_overrides_runpath=no
17192 hardcode_into_libs=yes
17193 ;;
17194
17195 irix5* | irix6* | nonstopux*)
17196 case $host_os in
17197 nonstopux*) version_type=nonstopux ;;
17198 *)
17199 if test yes = "$lt_cv_prog_gnu_ld"; then
17200 version_type=linux # correct to gnu/linux during the next big refactor
17201 else
17202 version_type=irix
17203 fi ;;
17204 esac
17205 need_lib_prefix=no
17206 need_version=no
17207 soname_spec='$libname$release$shared_ext$major'
17208 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
17209 case $host_os in
17210 irix5* | nonstopux*)
17211 libsuff= shlibsuff=
17212 ;;
17213 *)
17214 case $LD in # libtool.m4 will add one of these switches to LD
17215 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17216 libsuff= shlibsuff= libmagic=32-bit;;
17217 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17218 libsuff=32 shlibsuff=N32 libmagic=N32;;
17219 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17220 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17221 *) libsuff= shlibsuff= libmagic=never-match;;
17222 esac
17223 ;;
17224 esac
17225 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17226 shlibpath_overrides_runpath=no
17227 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
17228 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
17229 hardcode_into_libs=yes
17230 ;;
17231
17232 # No shared lib support for Linux oldld, aout, or coff.
17233 linux*oldld* | linux*aout* | linux*coff*)
17234 dynamic_linker=no
17235 ;;
17236
17237 linux*android*)
17238 version_type=none # Android doesn't support versioned libraries.
17239 need_lib_prefix=no
17240 need_version=no
17241 library_names_spec='$libname$release$shared_ext'
17242 soname_spec='$libname$release$shared_ext'
17243 finish_cmds=
17244 shlibpath_var=LD_LIBRARY_PATH
17245 shlibpath_overrides_runpath=yes
17246
17247 # This implies no fast_install, which is unacceptable.
17248 # Some rework will be needed to allow for fast_install
17249 # before this can be enabled.
17250 hardcode_into_libs=yes
17251
17252 dynamic_linker='Android linker'
17253 # Don't embed -rpath directories since the linker doesn't support them.
17254 hardcode_libdir_flag_spec='-L$libdir'
17255 ;;
17256
17257 # This must be glibc/ELF.
17258 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17259 version_type=linux # correct to gnu/linux during the next big refactor
17260 need_lib_prefix=no
17261 need_version=no
17262 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17263 soname_spec='$libname$release$shared_ext$major'
17264 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17265 shlibpath_var=LD_LIBRARY_PATH
17266 shlibpath_overrides_runpath=no
17267
17268 # Some binutils ld are patched to set DT_RUNPATH
17269 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17270 $as_echo_n "(cached) " >&6
17271 else
17272 lt_cv_shlibpath_overrides_runpath=no
17273 save_LDFLAGS=$LDFLAGS
17274 save_libdir=$libdir
17275 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17276 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17278 /* end confdefs.h. */
17279
17280 int
17281 main ()
17282 {
17283
17284 ;
17285 return 0;
17286 }
17287 _ACEOF
17288 if ac_fn_c_try_link "$LINENO"; then :
17289 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17290 lt_cv_shlibpath_overrides_runpath=yes
17291 fi
17292 fi
17293 rm -f core conftest.err conftest.$ac_objext \
17294 conftest$ac_exeext conftest.$ac_ext
17295 LDFLAGS=$save_LDFLAGS
17296 libdir=$save_libdir
17297
17298 fi
17299
17300 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17301
17302 # This implies no fast_install, which is unacceptable.
17303 # Some rework will be needed to allow for fast_install
17304 # before this can be enabled.
17305 hardcode_into_libs=yes
17306
17307 # Append ld.so.conf contents to the search path
17308 if test -f /etc/ld.so.conf; then
17309 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' ' '`
17310 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17311 fi
17312
17313 # We used to test for /lib/ld.so.1 and disable shared libraries on
17314 # powerpc, because MkLinux only supported shared libraries with the
17315 # GNU dynamic linker. Since this was broken with cross compilers,
17316 # most powerpc-linux boxes support dynamic linking these days and
17317 # people can always --disable-shared, the test was removed, and we
17318 # assume the GNU/Linux dynamic linker is in use.
17319 dynamic_linker='GNU/Linux ld.so'
17320 ;;
17321
17322 netbsd*)
17323 version_type=sunos
17324 need_lib_prefix=no
17325 need_version=no
17326 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17327 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17328 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17329 dynamic_linker='NetBSD (a.out) ld.so'
17330 else
17331 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17332 soname_spec='$libname$release$shared_ext$major'
17333 dynamic_linker='NetBSD ld.elf_so'
17334 fi
17335 shlibpath_var=LD_LIBRARY_PATH
17336 shlibpath_overrides_runpath=yes
17337 hardcode_into_libs=yes
17338 ;;
17339
17340 newsos6)
17341 version_type=linux # correct to gnu/linux during the next big refactor
17342 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17343 shlibpath_var=LD_LIBRARY_PATH
17344 shlibpath_overrides_runpath=yes
17345 ;;
17346
17347 *nto* | *qnx*)
17348 version_type=qnx
17349 need_lib_prefix=no
17350 need_version=no
17351 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17352 soname_spec='$libname$release$shared_ext$major'
17353 shlibpath_var=LD_LIBRARY_PATH
17354 shlibpath_overrides_runpath=no
17355 hardcode_into_libs=yes
17356 dynamic_linker='ldqnx.so'
17357 ;;
17358
17359 openbsd* | bitrig*)
17360 version_type=sunos
17361 sys_lib_dlsearch_path_spec=/usr/lib
17362 need_lib_prefix=no
17363 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17364 need_version=no
17365 else
17366 need_version=yes
17367 fi
17368 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17369 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17370 shlibpath_var=LD_LIBRARY_PATH
17371 shlibpath_overrides_runpath=yes
17372 ;;
17373
17374 os2*)
17375 libname_spec='$name'
17376 version_type=windows
17377 shrext_cmds=.dll
17378 need_version=no
17379 need_lib_prefix=no
17380 # OS/2 can only load a DLL with a base name of 8 characters or less.
17381 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
17382 v=$($ECHO $release$versuffix | tr -d .-);
17383 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
17384 $ECHO $n$v`$shared_ext'
17385 library_names_spec='${libname}_dll.$libext'
17386 dynamic_linker='OS/2 ld.exe'
17387 shlibpath_var=BEGINLIBPATH
17388 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17389 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17390 postinstall_cmds='base_file=`basename \$file`~
17391 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
17392 dldir=$destdir/`dirname \$dlpath`~
17393 test -d \$dldir || mkdir -p \$dldir~
17394 $install_prog $dir/$dlname \$dldir/$dlname~
17395 chmod a+x \$dldir/$dlname~
17396 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17397 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17398 fi'
17399 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
17400 dlpath=$dir/\$dldll~
17401 $RM \$dlpath'
17402 ;;
17403
17404 osf3* | osf4* | osf5*)
17405 version_type=osf
17406 need_lib_prefix=no
17407 need_version=no
17408 soname_spec='$libname$release$shared_ext$major'
17409 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17410 shlibpath_var=LD_LIBRARY_PATH
17411 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17412 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17413 ;;
17414
17415 rdos*)
17416 dynamic_linker=no
17417 ;;
17418
17419 solaris*)
17420 version_type=linux # correct to gnu/linux during the next big refactor
17421 need_lib_prefix=no
17422 need_version=no
17423 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17424 soname_spec='$libname$release$shared_ext$major'
17425 shlibpath_var=LD_LIBRARY_PATH
17426 shlibpath_overrides_runpath=yes
17427 hardcode_into_libs=yes
17428 # ldd complains unless libraries are executable
17429 postinstall_cmds='chmod +x $lib'
17430 ;;
17431
17432 sunos4*)
17433 version_type=sunos
17434 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17435 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17436 shlibpath_var=LD_LIBRARY_PATH
17437 shlibpath_overrides_runpath=yes
17438 if test yes = "$with_gnu_ld"; then
17439 need_lib_prefix=no
17440 fi
17441 need_version=yes
17442 ;;
17443
17444 sysv4 | sysv4.3*)
17445 version_type=linux # correct to gnu/linux during the next big refactor
17446 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17447 soname_spec='$libname$release$shared_ext$major'
17448 shlibpath_var=LD_LIBRARY_PATH
17449 case $host_vendor in
17450 sni)
17451 shlibpath_overrides_runpath=no
17452 need_lib_prefix=no
17453 runpath_var=LD_RUN_PATH
17454 ;;
17455 siemens)
17456 need_lib_prefix=no
17457 ;;
17458 motorola)
17459 need_lib_prefix=no
17460 need_version=no
17461 shlibpath_overrides_runpath=no
17462 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17463 ;;
17464 esac
17465 ;;
17466
17467 sysv4*MP*)
17468 if test -d /usr/nec; then
17469 version_type=linux # correct to gnu/linux during the next big refactor
17470 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
17471 soname_spec='$libname$shared_ext.$major'
17472 shlibpath_var=LD_LIBRARY_PATH
17473 fi
17474 ;;
17475
17476 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17477 version_type=sco
17478 need_lib_prefix=no
17479 need_version=no
17480 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
17481 soname_spec='$libname$release$shared_ext$major'
17482 shlibpath_var=LD_LIBRARY_PATH
17483 shlibpath_overrides_runpath=yes
17484 hardcode_into_libs=yes
17485 if test yes = "$with_gnu_ld"; then
17486 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17487 else
17488 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17489 case $host_os in
17490 sco3.2v5*)
17491 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17492 ;;
17493 esac
17494 fi
17495 sys_lib_dlsearch_path_spec='/usr/lib'
17496 ;;
17497
17498 tpf*)
17499 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17500 version_type=linux # correct to gnu/linux during the next big refactor
17501 need_lib_prefix=no
17502 need_version=no
17503 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17504 shlibpath_var=LD_LIBRARY_PATH
17505 shlibpath_overrides_runpath=no
17506 hardcode_into_libs=yes
17507 ;;
17508
17509 uts4*)
17510 version_type=linux # correct to gnu/linux during the next big refactor
17511 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17512 soname_spec='$libname$release$shared_ext$major'
17513 shlibpath_var=LD_LIBRARY_PATH
17514 ;;
17515
17516 *)
17517 dynamic_linker=no
17518 ;;
17519 esac
17520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17521 $as_echo "$dynamic_linker" >&6; }
17522 test no = "$dynamic_linker" && can_build_shared=no
17523
17524 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17525 if test yes = "$GCC"; then
17526 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17527 fi
17528
17529 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
17530 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
17531 fi
17532 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
17533 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
17534 fi
17535
17536
17537
17538
17539
17540
17541
17542
17543
17544
17545
17546
17547
17548
17549
17550
17551
17552
17553
17554
17555
17556
17557
17558
17559
17560
17561
17562
17563
17564
17565
17566
17567
17568
17569
17570
17571
17572
17573
17574
17575
17576
17577
17578
17579
17580
17581
17582
17583
17584
17585
17586
17587
17588
17589
17590
17591
17592
17593
17594
17595
17596
17597
17598
17599
17600
17601
17602
17603
17604
17605
17606
17607
17608
17609
17610
17611
17612
17613
17614
17615
17616
17617
17618
17619
17620
17621
17622
17623
17624
17625
17626
17627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17628 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17629 hardcode_action=
17630 if test -n "$hardcode_libdir_flag_spec" ||
17631 test -n "$runpath_var" ||
17632 test yes = "$hardcode_automatic"; then
17633
17634 # We can hardcode non-existent directories.
17635 if test no != "$hardcode_direct" &&
17636 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17637 # have to relink, otherwise we might link with an installed library
17638 # when we should be linking with a yet-to-be-installed one
17639 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
17640 test no != "$hardcode_minus_L"; then
17641 # Linking always hardcodes the temporary library directory.
17642 hardcode_action=relink
17643 else
17644 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17645 hardcode_action=immediate
17646 fi
17647 else
17648 # We cannot hardcode anything, or else we can only hardcode existing
17649 # directories.
17650 hardcode_action=unsupported
17651 fi
17652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17653 $as_echo "$hardcode_action" >&6; }
17654
17655 if test relink = "$hardcode_action" ||
17656 test yes = "$inherit_rpath"; then
17657 # Fast installation is not supported
17658 enable_fast_install=no
17659 elif test yes = "$shlibpath_overrides_runpath" ||
17660 test no = "$enable_shared"; then
17661 # Fast installation is not necessary
17662 enable_fast_install=needless
17663 fi
17664
17665
17666
17667
17668
17669
17670 if test yes != "$enable_dlopen"; then
17671 enable_dlopen=unknown
17672 enable_dlopen_self=unknown
17673 enable_dlopen_self_static=unknown
17674 else
17675 lt_cv_dlopen=no
17676 lt_cv_dlopen_libs=
17677
17678 case $host_os in
17679 beos*)
17680 lt_cv_dlopen=load_add_on
17681 lt_cv_dlopen_libs=
17682 lt_cv_dlopen_self=yes
17683 ;;
17684
17685 mingw* | pw32* | cegcc*)
17686 lt_cv_dlopen=LoadLibrary
17687 lt_cv_dlopen_libs=
17688 ;;
17689
17690 cygwin*)
17691 lt_cv_dlopen=dlopen
17692 lt_cv_dlopen_libs=
17693 ;;
17694
17695 darwin*)
17696 # if libdl is installed we need to link against it
17697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17698 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17699 if ${ac_cv_lib_dl_dlopen+:} false; then :
17700 $as_echo_n "(cached) " >&6
17701 else
17702 ac_check_lib_save_LIBS=$LIBS
17703 LIBS="-ldl $LIBS"
17704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17705 /* end confdefs.h. */
17706
17707 /* Override any GCC internal prototype to avoid an error.
17708 Use char because int might match the return type of a GCC
17709 builtin and then its argument prototype would still apply. */
17710 #ifdef __cplusplus
17711 extern "C"
17712 #endif
17713 char dlopen ();
17714 int
17715 main ()
17716 {
17717 return dlopen ();
17718 ;
17719 return 0;
17720 }
17721 _ACEOF
17722 if ac_fn_c_try_link "$LINENO"; then :
17723 ac_cv_lib_dl_dlopen=yes
17724 else
17725 ac_cv_lib_dl_dlopen=no
17726 fi
17727 rm -f core conftest.err conftest.$ac_objext \
17728 conftest$ac_exeext conftest.$ac_ext
17729 LIBS=$ac_check_lib_save_LIBS
17730 fi
17731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17732 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17733 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17734 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
17735 else
17736
17737 lt_cv_dlopen=dyld
17738 lt_cv_dlopen_libs=
17739 lt_cv_dlopen_self=yes
17740
17741 fi
17742
17743 ;;
17744
17745 tpf*)
17746 # Don't try to run any link tests for TPF. We know it's impossible
17747 # because TPF is a cross-compiler, and we know how we open DSOs.
17748 lt_cv_dlopen=dlopen
17749 lt_cv_dlopen_libs=
17750 lt_cv_dlopen_self=no
17751 ;;
17752
17753 *)
17754 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17755 if test "x$ac_cv_func_shl_load" = xyes; then :
17756 lt_cv_dlopen=shl_load
17757 else
17758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17759 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17760 if ${ac_cv_lib_dld_shl_load+:} false; then :
17761 $as_echo_n "(cached) " >&6
17762 else
17763 ac_check_lib_save_LIBS=$LIBS
17764 LIBS="-ldld $LIBS"
17765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17766 /* end confdefs.h. */
17767
17768 /* Override any GCC internal prototype to avoid an error.
17769 Use char because int might match the return type of a GCC
17770 builtin and then its argument prototype would still apply. */
17771 #ifdef __cplusplus
17772 extern "C"
17773 #endif
17774 char shl_load ();
17775 int
17776 main ()
17777 {
17778 return shl_load ();
17779 ;
17780 return 0;
17781 }
17782 _ACEOF
17783 if ac_fn_c_try_link "$LINENO"; then :
17784 ac_cv_lib_dld_shl_load=yes
17785 else
17786 ac_cv_lib_dld_shl_load=no
17787 fi
17788 rm -f core conftest.err conftest.$ac_objext \
17789 conftest$ac_exeext conftest.$ac_ext
17790 LIBS=$ac_check_lib_save_LIBS
17791 fi
17792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17793 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17794 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
17795 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
17796 else
17797 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17798 if test "x$ac_cv_func_dlopen" = xyes; then :
17799 lt_cv_dlopen=dlopen
17800 else
17801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17802 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17803 if ${ac_cv_lib_dl_dlopen+:} false; then :
17804 $as_echo_n "(cached) " >&6
17805 else
17806 ac_check_lib_save_LIBS=$LIBS
17807 LIBS="-ldl $LIBS"
17808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17809 /* end confdefs.h. */
17810
17811 /* Override any GCC internal prototype to avoid an error.
17812 Use char because int might match the return type of a GCC
17813 builtin and then its argument prototype would still apply. */
17814 #ifdef __cplusplus
17815 extern "C"
17816 #endif
17817 char dlopen ();
17818 int
17819 main ()
17820 {
17821 return dlopen ();
17822 ;
17823 return 0;
17824 }
17825 _ACEOF
17826 if ac_fn_c_try_link "$LINENO"; then :
17827 ac_cv_lib_dl_dlopen=yes
17828 else
17829 ac_cv_lib_dl_dlopen=no
17830 fi
17831 rm -f core conftest.err conftest.$ac_objext \
17832 conftest$ac_exeext conftest.$ac_ext
17833 LIBS=$ac_check_lib_save_LIBS
17834 fi
17835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17836 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17837 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17838 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
17839 else
17840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17841 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17842 if ${ac_cv_lib_svld_dlopen+:} false; then :
17843 $as_echo_n "(cached) " >&6
17844 else
17845 ac_check_lib_save_LIBS=$LIBS
17846 LIBS="-lsvld $LIBS"
17847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17848 /* end confdefs.h. */
17849
17850 /* Override any GCC internal prototype to avoid an error.
17851 Use char because int might match the return type of a GCC
17852 builtin and then its argument prototype would still apply. */
17853 #ifdef __cplusplus
17854 extern "C"
17855 #endif
17856 char dlopen ();
17857 int
17858 main ()
17859 {
17860 return dlopen ();
17861 ;
17862 return 0;
17863 }
17864 _ACEOF
17865 if ac_fn_c_try_link "$LINENO"; then :
17866 ac_cv_lib_svld_dlopen=yes
17867 else
17868 ac_cv_lib_svld_dlopen=no
17869 fi
17870 rm -f core conftest.err conftest.$ac_objext \
17871 conftest$ac_exeext conftest.$ac_ext
17872 LIBS=$ac_check_lib_save_LIBS
17873 fi
17874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17875 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17876 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
17877 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
17878 else
17879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17880 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17881 if ${ac_cv_lib_dld_dld_link+:} false; then :
17882 $as_echo_n "(cached) " >&6
17883 else
17884 ac_check_lib_save_LIBS=$LIBS
17885 LIBS="-ldld $LIBS"
17886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17887 /* end confdefs.h. */
17888
17889 /* Override any GCC internal prototype to avoid an error.
17890 Use char because int might match the return type of a GCC
17891 builtin and then its argument prototype would still apply. */
17892 #ifdef __cplusplus
17893 extern "C"
17894 #endif
17895 char dld_link ();
17896 int
17897 main ()
17898 {
17899 return dld_link ();
17900 ;
17901 return 0;
17902 }
17903 _ACEOF
17904 if ac_fn_c_try_link "$LINENO"; then :
17905 ac_cv_lib_dld_dld_link=yes
17906 else
17907 ac_cv_lib_dld_dld_link=no
17908 fi
17909 rm -f core conftest.err conftest.$ac_objext \
17910 conftest$ac_exeext conftest.$ac_ext
17911 LIBS=$ac_check_lib_save_LIBS
17912 fi
17913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17914 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17915 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
17916 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
17917 fi
17918
17919
17920 fi
17921
17922
17923 fi
17924
17925
17926 fi
17927
17928
17929 fi
17930
17931
17932 fi
17933
17934 ;;
17935 esac
17936
17937 if test no = "$lt_cv_dlopen"; then
17938 enable_dlopen=no
17939 else
17940 enable_dlopen=yes
17941 fi
17942
17943 case $lt_cv_dlopen in
17944 dlopen)
17945 save_CPPFLAGS=$CPPFLAGS
17946 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17947
17948 save_LDFLAGS=$LDFLAGS
17949 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17950
17951 save_LIBS=$LIBS
17952 LIBS="$lt_cv_dlopen_libs $LIBS"
17953
17954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17955 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17956 if ${lt_cv_dlopen_self+:} false; then :
17957 $as_echo_n "(cached) " >&6
17958 else
17959 if test yes = "$cross_compiling"; then :
17960 lt_cv_dlopen_self=cross
17961 else
17962 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17963 lt_status=$lt_dlunknown
17964 cat > conftest.$ac_ext <<_LT_EOF
17965 #line $LINENO "configure"
17966 #include "confdefs.h"
17967
17968 #if HAVE_DLFCN_H
17969 #include <dlfcn.h>
17970 #endif
17971
17972 #include <stdio.h>
17973
17974 #ifdef RTLD_GLOBAL
17975 # define LT_DLGLOBAL RTLD_GLOBAL
17976 #else
17977 # ifdef DL_GLOBAL
17978 # define LT_DLGLOBAL DL_GLOBAL
17979 # else
17980 # define LT_DLGLOBAL 0
17981 # endif
17982 #endif
17983
17984 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17985 find out it does not work in some platform. */
17986 #ifndef LT_DLLAZY_OR_NOW
17987 # ifdef RTLD_LAZY
17988 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17989 # else
17990 # ifdef DL_LAZY
17991 # define LT_DLLAZY_OR_NOW DL_LAZY
17992 # else
17993 # ifdef RTLD_NOW
17994 # define LT_DLLAZY_OR_NOW RTLD_NOW
17995 # else
17996 # ifdef DL_NOW
17997 # define LT_DLLAZY_OR_NOW DL_NOW
17998 # else
17999 # define LT_DLLAZY_OR_NOW 0
18000 # endif
18001 # endif
18002 # endif
18003 # endif
18004 #endif
18005
18006 /* When -fvisibility=hidden is used, assume the code has been annotated
18007 correspondingly for the symbols needed. */
18008 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18009 int fnord () __attribute__((visibility("default")));
18010 #endif
18011
18012 int fnord () { return 42; }
18013 int main ()
18014 {
18015 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18016 int status = $lt_dlunknown;
18017
18018 if (self)
18019 {
18020 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18021 else
18022 {
18023 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18024 else puts (dlerror ());
18025 }
18026 /* dlclose (self); */
18027 }
18028 else
18029 puts (dlerror ());
18030
18031 return status;
18032 }
18033 _LT_EOF
18034 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18035 (eval $ac_link) 2>&5
18036 ac_status=$?
18037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18038 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
18039 (./conftest; exit; ) >&5 2>/dev/null
18040 lt_status=$?
18041 case x$lt_status in
18042 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18043 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18044 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18045 esac
18046 else :
18047 # compilation failed
18048 lt_cv_dlopen_self=no
18049 fi
18050 fi
18051 rm -fr conftest*
18052
18053
18054 fi
18055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18056 $as_echo "$lt_cv_dlopen_self" >&6; }
18057
18058 if test yes = "$lt_cv_dlopen_self"; then
18059 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18061 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18062 if ${lt_cv_dlopen_self_static+:} false; then :
18063 $as_echo_n "(cached) " >&6
18064 else
18065 if test yes = "$cross_compiling"; then :
18066 lt_cv_dlopen_self_static=cross
18067 else
18068 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18069 lt_status=$lt_dlunknown
18070 cat > conftest.$ac_ext <<_LT_EOF
18071 #line $LINENO "configure"
18072 #include "confdefs.h"
18073
18074 #if HAVE_DLFCN_H
18075 #include <dlfcn.h>
18076 #endif
18077
18078 #include <stdio.h>
18079
18080 #ifdef RTLD_GLOBAL
18081 # define LT_DLGLOBAL RTLD_GLOBAL
18082 #else
18083 # ifdef DL_GLOBAL
18084 # define LT_DLGLOBAL DL_GLOBAL
18085 # else
18086 # define LT_DLGLOBAL 0
18087 # endif
18088 #endif
18089
18090 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18091 find out it does not work in some platform. */
18092 #ifndef LT_DLLAZY_OR_NOW
18093 # ifdef RTLD_LAZY
18094 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18095 # else
18096 # ifdef DL_LAZY
18097 # define LT_DLLAZY_OR_NOW DL_LAZY
18098 # else
18099 # ifdef RTLD_NOW
18100 # define LT_DLLAZY_OR_NOW RTLD_NOW
18101 # else
18102 # ifdef DL_NOW
18103 # define LT_DLLAZY_OR_NOW DL_NOW
18104 # else
18105 # define LT_DLLAZY_OR_NOW 0
18106 # endif
18107 # endif
18108 # endif
18109 # endif
18110 #endif
18111
18112 /* When -fvisibility=hidden is used, assume the code has been annotated
18113 correspondingly for the symbols needed. */
18114 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18115 int fnord () __attribute__((visibility("default")));
18116 #endif
18117
18118 int fnord () { return 42; }
18119 int main ()
18120 {
18121 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18122 int status = $lt_dlunknown;
18123
18124 if (self)
18125 {
18126 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18127 else
18128 {
18129 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18130 else puts (dlerror ());
18131 }
18132 /* dlclose (self); */
18133 }
18134 else
18135 puts (dlerror ());
18136
18137 return status;
18138 }
18139 _LT_EOF
18140 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18141 (eval $ac_link) 2>&5
18142 ac_status=$?
18143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18144 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
18145 (./conftest; exit; ) >&5 2>/dev/null
18146 lt_status=$?
18147 case x$lt_status in
18148 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18149 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18150 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18151 esac
18152 else :
18153 # compilation failed
18154 lt_cv_dlopen_self_static=no
18155 fi
18156 fi
18157 rm -fr conftest*
18158
18159
18160 fi
18161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18162 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18163 fi
18164
18165 CPPFLAGS=$save_CPPFLAGS
18166 LDFLAGS=$save_LDFLAGS
18167 LIBS=$save_LIBS
18168 ;;
18169 esac
18170
18171 case $lt_cv_dlopen_self in
18172 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18173 *) enable_dlopen_self=unknown ;;
18174 esac
18175
18176 case $lt_cv_dlopen_self_static in
18177 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18178 *) enable_dlopen_self_static=unknown ;;
18179 esac
18180 fi
18181
18182
18183
18184
18185
18186
18187
18188
18189
18190
18191
18192
18193
18194
18195
18196
18197
18198 striplib=
18199 old_striplib=
18200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18201 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18202 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18203 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18204 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18206 $as_echo "yes" >&6; }
18207 else
18208 # FIXME - insert some real tests, host_os isn't really good enough
18209 case $host_os in
18210 darwin*)
18211 if test -n "$STRIP"; then
18212 striplib="$STRIP -x"
18213 old_striplib="$STRIP -S"
18214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18215 $as_echo "yes" >&6; }
18216 else
18217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18218 $as_echo "no" >&6; }
18219 fi
18220 ;;
18221 *)
18222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18223 $as_echo "no" >&6; }
18224 ;;
18225 esac
18226 fi
18227
18228
18229
18230
18231
18232
18233
18234
18235
18236
18237
18238
18239 # Report what library types will actually be built
18240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18241 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18243 $as_echo "$can_build_shared" >&6; }
18244
18245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18246 $as_echo_n "checking whether to build shared libraries... " >&6; }
18247 test no = "$can_build_shared" && enable_shared=no
18248
18249 # On AIX, shared libraries and static libraries use the same namespace, and
18250 # are all built from PIC.
18251 case $host_os in
18252 aix3*)
18253 test yes = "$enable_shared" && enable_static=no
18254 if test -n "$RANLIB"; then
18255 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18256 postinstall_cmds='$RANLIB $lib'
18257 fi
18258 ;;
18259
18260 aix[4-9]*)
18261 if test ia64 != "$host_cpu"; then
18262 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
18263 yes,aix,yes) ;; # shared object as lib.so file only
18264 yes,svr4,*) ;; # shared object as lib.so archive member only
18265 yes,*) enable_static=no ;; # shared object in lib.a archive as well
18266 esac
18267 fi
18268 ;;
18269 esac
18270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18271 $as_echo "$enable_shared" >&6; }
18272
18273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18274 $as_echo_n "checking whether to build static libraries... " >&6; }
18275 # Make sure either enable_shared or enable_static is yes.
18276 test yes = "$enable_shared" || enable_static=yes
18277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18278 $as_echo "$enable_static" >&6; }
18279
18280
18281
18282
18283 fi
18284 ac_ext=c
18285 ac_cpp='$CPP $CPPFLAGS'
18286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18287 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18289
18290 CC=$lt_save_CC
18291
18292
18293
18294
18295
18296
18297
18298
18299
18300
18301
18302
18303
18304
18305
18306 ac_config_commands="$ac_config_commands libtool"
18307
18308
18309
18310
18311 # Only expand once:
18312
18313
18314
18315
18316
18317 # Define a configure option for an alternate module directory
18318
18319 # Check whether --with-xorg-module-dir was given.
18320 if test "${with_xorg_module_dir+set}" = set; then :
18321 withval=$with_xorg_module_dir; moduledir="$withval"
18322 else
18323 moduledir="$libdir/xorg/modules"
18324 fi
18325
18326
18327 # Check whether --enable-dri was given.
18328 if test "${enable_dri+set}" = set; then :
18329 enableval=$enable_dri; DRI="$enableval"
18330 else
18331 DRI=auto
18332 fi
18333
18334
18335 # Store the list of server defined optional extensions in REQUIRED_MODULES
18336
18337
18338 SAVE_CFLAGS="$CFLAGS"
18339 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18341 /* end confdefs.h. */
18342
18343 #include "xorg-server.h"
18344 #if !defined RANDR
18345 #error RANDR not defined
18346 #endif
18347
18348 int
18349 main ()
18350 {
18351
18352 ;
18353 return 0;
18354 }
18355 _ACEOF
18356 if ac_fn_c_try_compile "$LINENO"; then :
18357 _EXT_CHECK=yes
18358 else
18359 _EXT_CHECK=no
18360 fi
18361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18362 CFLAGS="$SAVE_CFLAGS"
18363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
18364 $as_echo_n "checking if RANDR is defined... " >&6; }
18365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18366 $as_echo "$_EXT_CHECK" >&6; }
18367 if test "$_EXT_CHECK" != no; then
18368 REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
18369 fi
18370
18371
18372
18373 SAVE_CFLAGS="$CFLAGS"
18374 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18376 /* end confdefs.h. */
18377
18378 #include "xorg-server.h"
18379 #if !defined RENDER
18380 #error RENDER not defined
18381 #endif
18382
18383 int
18384 main ()
18385 {
18386
18387 ;
18388 return 0;
18389 }
18390 _ACEOF
18391 if ac_fn_c_try_compile "$LINENO"; then :
18392 _EXT_CHECK=yes
18393 else
18394 _EXT_CHECK=no
18395 fi
18396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18397 CFLAGS="$SAVE_CFLAGS"
18398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5
18399 $as_echo_n "checking if RENDER is defined... " >&6; }
18400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18401 $as_echo "$_EXT_CHECK" >&6; }
18402 if test "$_EXT_CHECK" != no; then
18403 REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
18404 fi
18405
18406
18407
18408 SAVE_CFLAGS="$CFLAGS"
18409 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18411 /* end confdefs.h. */
18412
18413 #include "xorg-server.h"
18414 #if !defined XV
18415 #error XV not defined
18416 #endif
18417
18418 int
18419 main ()
18420 {
18421
18422 ;
18423 return 0;
18424 }
18425 _ACEOF
18426 if ac_fn_c_try_compile "$LINENO"; then :
18427 _EXT_CHECK=yes
18428 else
18429 _EXT_CHECK=no
18430 fi
18431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18432 CFLAGS="$SAVE_CFLAGS"
18433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5
18434 $as_echo_n "checking if XV is defined... " >&6; }
18435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18436 $as_echo "$_EXT_CHECK" >&6; }
18437 if test "$_EXT_CHECK" != no; then
18438 REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
18439 fi
18440
18441
18442
18443 SAVE_CFLAGS="$CFLAGS"
18444 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18446 /* end confdefs.h. */
18447
18448 #include "xorg-server.h"
18449 #if !defined DPMSExtension
18450 #error DPMSExtension not defined
18451 #endif
18452
18453 int
18454 main ()
18455 {
18456
18457 ;
18458 return 0;
18459 }
18460 _ACEOF
18461 if ac_fn_c_try_compile "$LINENO"; then :
18462 _EXT_CHECK=yes
18463 else
18464 _EXT_CHECK=no
18465 fi
18466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18467 CFLAGS="$SAVE_CFLAGS"
18468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
18469 $as_echo_n "checking if DPMSExtension is defined... " >&6; }
18470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18471 $as_echo "$_EXT_CHECK" >&6; }
18472 if test "$_EXT_CHECK" != no; then
18473 REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
18474 fi
18475
18476
18477 # Obtain compiler/linker options for the driver dependencies
18478
18479 pkg_failed=no
18480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
18481 $as_echo_n "checking for XORG... " >&6; }
18482
18483 if test -n "$XORG_CFLAGS"; then
18484 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
18485 elif test -n "$PKG_CONFIG"; then
18486 if test -n "$PKG_CONFIG" && \
18487 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
18488 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
18489 ac_status=$?
18490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18491 test $ac_status = 0; }; then
18492 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
18493 test "x$?" != "x0" && pkg_failed=yes
18494 else
18495 pkg_failed=yes
18496 fi
18497 else
18498 pkg_failed=untried
18499 fi
18500 if test -n "$XORG_LIBS"; then
18501 pkg_cv_XORG_LIBS="$XORG_LIBS"
18502 elif test -n "$PKG_CONFIG"; then
18503 if test -n "$PKG_CONFIG" && \
18504 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
18505 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
18506 ac_status=$?
18507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18508 test $ac_status = 0; }; then
18509 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
18510 test "x$?" != "x0" && pkg_failed=yes
18511 else
18512 pkg_failed=yes
18513 fi
18514 else
18515 pkg_failed=untried
18516 fi
18517
18518
18519
18520 if test $pkg_failed = yes; then
18521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18522 $as_echo "no" >&6; }
18523
18524 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18525 _pkg_short_errors_supported=yes
18526 else
18527 _pkg_short_errors_supported=no
18528 fi
18529 if test $_pkg_short_errors_supported = yes; then
18530 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
18531 else
18532 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
18533 fi
18534 # Put the nasty error message in config.log where it belongs
18535 echo "$XORG_PKG_ERRORS" >&5
18536
18537 as_fn_error $? "Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met:
18538
18539 $XORG_PKG_ERRORS
18540
18541 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18542 installed software in a non-standard prefix.
18543
18544 Alternatively, you may set the environment variables XORG_CFLAGS
18545 and XORG_LIBS to avoid the need to call pkg-config.
18546 See the pkg-config man page for more details." "$LINENO" 5
18547 elif test $pkg_failed = untried; then
18548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18549 $as_echo "no" >&6; }
18550 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18551 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18552 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18553 is in your PATH or set the PKG_CONFIG environment variable to the full
18554 path to pkg-config.
18555
18556 Alternatively, you may set the environment variables XORG_CFLAGS
18557 and XORG_LIBS to avoid the need to call pkg-config.
18558 See the pkg-config man page for more details.
18559
18560 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18561 See \`config.log' for more details" "$LINENO" 5; }
18562 else
18563 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
18564 XORG_LIBS=$pkg_cv_XORG_LIBS
18565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18566 $as_echo "yes" >&6; }
18567
18568 fi
18569 sdkdir=`$PKG_CONFIG --variable=sdkdir xorg-server`
18570
18571 # Checks for libraries.
18572 SAVE_CPPFLAGS="$CPPFLAGS"
18573 CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
18574 ac_fn_c_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\"
18575 "
18576 if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes; then :
18577 XSERVER_LIBPCIACCESS=yes
18578 else
18579 XSERVER_LIBPCIACCESS=no
18580 fi
18581
18582 CPPFLAGS="$SAVE_CPPFLAGS"
18583
18584 if test "$DRI" != no; then
18585 as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/dri.h" | $as_tr_sh`
18586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/dri.h" >&5
18587 $as_echo_n "checking for ${sdkdir}/dri.h... " >&6; }
18588 if eval \${$as_ac_File+:} false; then :
18589 $as_echo_n "(cached) " >&6
18590 else
18591 test "$cross_compiling" = yes &&
18592 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
18593 if test -r "${sdkdir}/dri.h"; then
18594 eval "$as_ac_File=yes"
18595 else
18596 eval "$as_ac_File=no"
18597 fi
18598 fi
18599 eval ac_res=\$$as_ac_File
18600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18601 $as_echo "$ac_res" >&6; }
18602 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
18603 have_dri_h="yes"
18604 else
18605 have_dri_h="no"
18606 fi
18607
18608 as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/sarea.h" | $as_tr_sh`
18609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/sarea.h" >&5
18610 $as_echo_n "checking for ${sdkdir}/sarea.h... " >&6; }
18611 if eval \${$as_ac_File+:} false; then :
18612 $as_echo_n "(cached) " >&6
18613 else
18614 test "$cross_compiling" = yes &&
18615 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
18616 if test -r "${sdkdir}/sarea.h"; then
18617 eval "$as_ac_File=yes"
18618 else
18619 eval "$as_ac_File=no"
18620 fi
18621 fi
18622 eval ac_res=\$$as_ac_File
18623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18624 $as_echo "$ac_res" >&6; }
18625 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
18626 have_sarea_h="yes"
18627 else
18628 have_sarea_h="no"
18629 fi
18630
18631 as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/dristruct.h" | $as_tr_sh`
18632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/dristruct.h" >&5
18633 $as_echo_n "checking for ${sdkdir}/dristruct.h... " >&6; }
18634 if eval \${$as_ac_File+:} false; then :
18635 $as_echo_n "(cached) " >&6
18636 else
18637 test "$cross_compiling" = yes &&
18638 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
18639 if test -r "${sdkdir}/dristruct.h"; then
18640 eval "$as_ac_File=yes"
18641 else
18642 eval "$as_ac_File=no"
18643 fi
18644 fi
18645 eval ac_res=\$$as_ac_File
18646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18647 $as_echo "$ac_res" >&6; }
18648 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
18649 have_dristruct_h="yes"
18650 else
18651 have_dristruct_h="no"
18652 fi
18653
18654 fi
18655
18656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include DRI support" >&5
18657 $as_echo_n "checking whether to include DRI support... " >&6; }
18658 if test x$DRI = xauto; then
18659 if test "$have_dri_h" = yes -a \
18660 "$have_sarea_h" = yes -a \
18661 "$have_dristruct_h" = yes; then
18662 DRI="yes"
18663 else
18664 DRI="no"
18665 fi
18666 fi
18667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DRI" >&5
18668 $as_echo "$DRI" >&6; }
18669
18670 if test x$DRI = xyes; then
18671 DRI_TRUE=
18672 DRI_FALSE='#'
18673 else
18674 DRI_TRUE='#'
18675 DRI_FALSE=
18676 fi
18677
18678 if test "$DRI" = yes; then
18679
18680 pkg_failed=no
18681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRI" >&5
18682 $as_echo_n "checking for DRI... " >&6; }
18683
18684 if test -n "$DRI_CFLAGS"; then
18685 pkg_cv_DRI_CFLAGS="$DRI_CFLAGS"
18686 elif test -n "$PKG_CONFIG"; then
18687 if test -n "$PKG_CONFIG" && \
18688 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.0 xf86driproto\""; } >&5
18689 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.0 xf86driproto") 2>&5
18690 ac_status=$?
18691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18692 test $ac_status = 0; }; then
18693 pkg_cv_DRI_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.0 xf86driproto" 2>/dev/null`
18694 test "x$?" != "x0" && pkg_failed=yes
18695 else
18696 pkg_failed=yes
18697 fi
18698 else
18699 pkg_failed=untried
18700 fi
18701 if test -n "$DRI_LIBS"; then
18702 pkg_cv_DRI_LIBS="$DRI_LIBS"
18703 elif test -n "$PKG_CONFIG"; then
18704 if test -n "$PKG_CONFIG" && \
18705 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.0 xf86driproto\""; } >&5
18706 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.0 xf86driproto") 2>&5
18707 ac_status=$?
18708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18709 test $ac_status = 0; }; then
18710 pkg_cv_DRI_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.0 xf86driproto" 2>/dev/null`
18711 test "x$?" != "x0" && pkg_failed=yes
18712 else
18713 pkg_failed=yes
18714 fi
18715 else
18716 pkg_failed=untried
18717 fi
18718
18719
18720
18721 if test $pkg_failed = yes; then
18722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18723 $as_echo "no" >&6; }
18724
18725 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18726 _pkg_short_errors_supported=yes
18727 else
18728 _pkg_short_errors_supported=no
18729 fi
18730 if test $_pkg_short_errors_supported = yes; then
18731 DRI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 2.0 xf86driproto" 2>&1`
18732 else
18733 DRI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 2.0 xf86driproto" 2>&1`
18734 fi
18735 # Put the nasty error message in config.log where it belongs
18736 echo "$DRI_PKG_ERRORS" >&5
18737
18738 as_fn_error $? "Package requirements (libdrm >= 2.0 xf86driproto) were not met:
18739
18740 $DRI_PKG_ERRORS
18741
18742 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18743 installed software in a non-standard prefix.
18744
18745 Alternatively, you may set the environment variables DRI_CFLAGS
18746 and DRI_LIBS to avoid the need to call pkg-config.
18747 See the pkg-config man page for more details." "$LINENO" 5
18748 elif test $pkg_failed = untried; then
18749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18750 $as_echo "no" >&6; }
18751 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18752 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18753 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18754 is in your PATH or set the PKG_CONFIG environment variable to the full
18755 path to pkg-config.
18756
18757 Alternatively, you may set the environment variables DRI_CFLAGS
18758 and DRI_LIBS to avoid the need to call pkg-config.
18759 See the pkg-config man page for more details.
18760
18761 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18762 See \`config.log' for more details" "$LINENO" 5; }
18763 else
18764 DRI_CFLAGS=$pkg_cv_DRI_CFLAGS
18765 DRI_LIBS=$pkg_cv_DRI_LIBS
18766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18767 $as_echo "yes" >&6; }
18768
18769 fi
18770
18771 $as_echo "#define TDFXDRI 1" >>confdefs.h
18772
18773
18774 $as_echo "#define TDFXDRI_DEVEL 1" >>confdefs.h
18775
18776 fi
18777
18778 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
18779
18780 pkg_failed=no
18781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
18782 $as_echo_n "checking for PCIACCESS... " >&6; }
18783
18784 if test -n "$PCIACCESS_CFLAGS"; then
18785 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
18786 elif test -n "$PKG_CONFIG"; then
18787 if test -n "$PKG_CONFIG" && \
18788 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
18789 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
18790 ac_status=$?
18791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18792 test $ac_status = 0; }; then
18793 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null`
18794 test "x$?" != "x0" && pkg_failed=yes
18795 else
18796 pkg_failed=yes
18797 fi
18798 else
18799 pkg_failed=untried
18800 fi
18801 if test -n "$PCIACCESS_LIBS"; then
18802 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
18803 elif test -n "$PKG_CONFIG"; then
18804 if test -n "$PKG_CONFIG" && \
18805 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
18806 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
18807 ac_status=$?
18808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18809 test $ac_status = 0; }; then
18810 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null`
18811 test "x$?" != "x0" && pkg_failed=yes
18812 else
18813 pkg_failed=yes
18814 fi
18815 else
18816 pkg_failed=untried
18817 fi
18818
18819
18820
18821 if test $pkg_failed = yes; then
18822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18823 $as_echo "no" >&6; }
18824
18825 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18826 _pkg_short_errors_supported=yes
18827 else
18828 _pkg_short_errors_supported=no
18829 fi
18830 if test $_pkg_short_errors_supported = yes; then
18831 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1`
18832 else
18833 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1`
18834 fi
18835 # Put the nasty error message in config.log where it belongs
18836 echo "$PCIACCESS_PKG_ERRORS" >&5
18837
18838 as_fn_error $? "Package requirements (pciaccess >= 0.8.0) were not met:
18839
18840 $PCIACCESS_PKG_ERRORS
18841
18842 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18843 installed software in a non-standard prefix.
18844
18845 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
18846 and PCIACCESS_LIBS to avoid the need to call pkg-config.
18847 See the pkg-config man page for more details." "$LINENO" 5
18848 elif test $pkg_failed = untried; then
18849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18850 $as_echo "no" >&6; }
18851 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18852 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18853 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18854 is in your PATH or set the PKG_CONFIG environment variable to the full
18855 path to pkg-config.
18856
18857 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
18858 and PCIACCESS_LIBS to avoid the need to call pkg-config.
18859 See the pkg-config man page for more details.
18860
18861 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18862 See \`config.log' for more details" "$LINENO" 5; }
18863 else
18864 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
18865 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
18866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18867 $as_echo "yes" >&6; }
18868
18869 fi
18870 XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS"
18871 fi
18872 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
18873 XSERVER_LIBPCIACCESS_TRUE=
18874 XSERVER_LIBPCIACCESS_FALSE='#'
18875 else
18876 XSERVER_LIBPCIACCESS_TRUE='#'
18877 XSERVER_LIBPCIACCESS_FALSE=
18878 fi
18879
18880
18881 # Check whether --enable-xaa was given.
18882 if test "${enable_xaa+set}" = set; then :
18883 enableval=$enable_xaa; XAA="$enableval"
18884 else
18885 XAA=auto
18886 fi
18887
18888 if test "x$XAA" != xno; then
18889 save_CFLAGS=$CFLAGS
18890 save_CPPFLAGS=$CPPFLAGS
18891 CFLAGS=$XORG_CFLAGS
18892 CPPFLAGS="$XORG_CFLAGS"
18893 for ac_header in xaa.h
18894 do :
18895 ac_fn_c_check_header_mongrel "$LINENO" "xaa.h" "ac_cv_header_xaa_h" "$ac_includes_default"
18896 if test "x$ac_cv_header_xaa_h" = xyes; then :
18897 cat >>confdefs.h <<_ACEOF
18898 #define HAVE_XAA_H 1
18899 _ACEOF
18900 XAA=yes
18901 else
18902 XAA=no
18903 fi
18904
18905 done
18906
18907 CFLAGS=$save_CFLAGS
18908 CPPFLAGS=$save_CPPFLAGS
18909 fi
18910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include XAA support" >&5
18911 $as_echo_n "checking whether to include XAA support... " >&6; }
18912 if test "x$XAA" = xyes; then
18913 XAA_TRUE=
18914 XAA_FALSE='#'
18915 else
18916 XAA_TRUE='#'
18917 XAA_FALSE=
18918 fi
18919
18920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XAA" >&5
18921 $as_echo "$XAA" >&6; }
18922
18923
18924
18925 DRIVER_NAME=tdfx
18926
18927
18928 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
18929
18930 cat >confcache <<\_ACEOF
18931 # This file is a shell script that caches the results of configure
18932 # tests run on this system so they can be shared between configure
18933 # scripts and configure runs, see configure's option --config-cache.
18934 # It is not useful on other systems. If it contains results you don't
18935 # want to keep, you may remove or edit it.
18936 #
18937 # config.status only pays attention to the cache file if you give it
18938 # the --recheck option to rerun configure.
18939 #
18940 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18941 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18942 # following values.
18943
18944 _ACEOF
18945
18946 # The following way of writing the cache mishandles newlines in values,
18947 # but we know of no workaround that is simple, portable, and efficient.
18948 # So, we kill variables containing newlines.
18949 # Ultrix sh set writes to stderr and can't be redirected directly,
18950 # and sets the high bit in the cache file unless we assign to the vars.
18951 (
18952 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18953 eval ac_val=\$$ac_var
18954 case $ac_val in #(
18955 *${as_nl}*)
18956 case $ac_var in #(
18957 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18958 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18959 esac
18960 case $ac_var in #(
18961 _ | IFS | as_nl) ;; #(
18962 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18963 *) { eval $ac_var=; unset $ac_var;} ;;
18964 esac ;;
18965 esac
18966 done
18967
18968 (set) 2>&1 |
18969 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18970 *${as_nl}ac_space=\ *)
18971 # `set' does not quote correctly, so add quotes: double-quote
18972 # substitution turns \\\\ into \\, and sed turns \\ into \.
18973 sed -n \
18974 "s/'/'\\\\''/g;
18975 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18976 ;; #(
18977 *)
18978 # `set' quotes correctly as required by POSIX, so do not add quotes.
18979 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18980 ;;
18981 esac |
18982 sort
18983 ) |
18984 sed '
18985 /^ac_cv_env_/b end
18986 t clear
18987 :clear
18988 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18989 t end
18990 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18991 :end' >>confcache
18992 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18993 if test -w "$cache_file"; then
18994 if test "x$cache_file" != "x/dev/null"; then
18995 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18996 $as_echo "$as_me: updating cache $cache_file" >&6;}
18997 if test ! -f "$cache_file" || test -h "$cache_file"; then
18998 cat confcache >"$cache_file"
18999 else
19000 case $cache_file in #(
19001 */* | ?:*)
19002 mv -f confcache "$cache_file"$$ &&
19003 mv -f "$cache_file"$$ "$cache_file" ;; #(
19004 *)
19005 mv -f confcache "$cache_file" ;;
19006 esac
19007 fi
19008 fi
19009 else
19010 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19011 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19012 fi
19013 fi
19014 rm -f confcache
19015
19016 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19017 # Let make expand exec_prefix.
19018 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19019
19020 DEFS=-DHAVE_CONFIG_H
19021
19022 ac_libobjs=
19023 ac_ltlibobjs=
19024 U=
19025 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19026 # 1. Remove the extension, and $U if already installed.
19027 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19028 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19029 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19030 # will be set to the directory where LIBOBJS objects are built.
19031 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19032 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19033 done
19034 LIBOBJS=$ac_libobjs
19035
19036 LTLIBOBJS=$ac_ltlibobjs
19037
19038
19039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19040 $as_echo_n "checking that generated files are newer than configure... " >&6; }
19041 if test -n "$am_sleep_pid"; then
19042 # Hide warnings about reused PIDs.
19043 wait $am_sleep_pid 2>/dev/null
19044 fi
19045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19046 $as_echo "done" >&6; }
19047 if test -n "$EXEEXT"; then
19048 am__EXEEXT_TRUE=
19049 am__EXEEXT_FALSE='#'
19050 else
19051 am__EXEEXT_TRUE='#'
19052 am__EXEEXT_FALSE=
19053 fi
19054
19055 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19056 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
19057 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19058 fi
19059 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19060 as_fn_error $? "conditional \"AMDEP\" was never defined.
19061 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19062 fi
19063 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19064 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19065 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19066 fi
19067 if test -z "${DRI_TRUE}" && test -z "${DRI_FALSE}"; then
19068 as_fn_error $? "conditional \"DRI\" was never defined.
19069 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19070 fi
19071 if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then
19072 as_fn_error $? "conditional \"XSERVER_LIBPCIACCESS\" was never defined.
19073 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19074 fi
19075 if test -z "${XAA_TRUE}" && test -z "${XAA_FALSE}"; then
19076 as_fn_error $? "conditional \"XAA\" was never defined.
19077 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19078 fi
19079
19080 : "${CONFIG_STATUS=./config.status}"
19081 ac_write_fail=0
19082 ac_clean_files_save=$ac_clean_files
19083 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19084 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19085 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19086 as_write_fail=0
19087 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19088 #! $SHELL
19089 # Generated by $as_me.
19090 # Run this file to recreate the current configuration.
19091 # Compiler output produced by configure, useful for debugging
19092 # configure, is in config.log if it exists.
19093
19094 debug=false
19095 ac_cs_recheck=false
19096 ac_cs_silent=false
19097
19098 SHELL=\${CONFIG_SHELL-$SHELL}
19099 export SHELL
19100 _ASEOF
19101 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19102 ## -------------------- ##
19103 ## M4sh Initialization. ##
19104 ## -------------------- ##
19105
19106 # Be more Bourne compatible
19107 DUALCASE=1; export DUALCASE # for MKS sh
19108 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19109 emulate sh
19110 NULLCMD=:
19111 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19112 # is contrary to our usage. Disable this feature.
19113 alias -g '${1+"$@"}'='"$@"'
19114 setopt NO_GLOB_SUBST
19115 else
19116 case `(set -o) 2>/dev/null` in #(
19117 *posix*) :
19118 set -o posix ;; #(
19119 *) :
19120 ;;
19121 esac
19122 fi
19123
19124
19125 as_nl='
19126 '
19127 export as_nl
19128 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19129 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19130 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19131 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19132 # Prefer a ksh shell builtin over an external printf program on Solaris,
19133 # but without wasting forks for bash or zsh.
19134 if test -z "$BASH_VERSION$ZSH_VERSION" \
19135 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19136 as_echo='print -r --'
19137 as_echo_n='print -rn --'
19138 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19139 as_echo='printf %s\n'
19140 as_echo_n='printf %s'
19141 else
19142 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19143 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19144 as_echo_n='/usr/ucb/echo -n'
19145 else
19146 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19147 as_echo_n_body='eval
19148 arg=$1;
19149 case $arg in #(
19150 *"$as_nl"*)
19151 expr "X$arg" : "X\\(.*\\)$as_nl";
19152 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19153 esac;
19154 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19155 '
19156 export as_echo_n_body
19157 as_echo_n='sh -c $as_echo_n_body as_echo'
19158 fi
19159 export as_echo_body
19160 as_echo='sh -c $as_echo_body as_echo'
19161 fi
19162
19163 # The user is always right.
19164 if test "${PATH_SEPARATOR+set}" != set; then
19165 PATH_SEPARATOR=:
19166 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19167 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19168 PATH_SEPARATOR=';'
19169 }
19170 fi
19171
19172
19173 # IFS
19174 # We need space, tab and new line, in precisely that order. Quoting is
19175 # there to prevent editors from complaining about space-tab.
19176 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19177 # splitting by setting IFS to empty value.)
19178 IFS=" "" $as_nl"
19179
19180 # Find who we are. Look in the path if we contain no directory separator.
19181 as_myself=
19182 case $0 in #((
19183 *[\\/]* ) as_myself=$0 ;;
19184 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19185 for as_dir in $PATH
19186 do
19187 IFS=$as_save_IFS
19188 test -z "$as_dir" && as_dir=.
19189 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19190 done
19191 IFS=$as_save_IFS
19192
19193 ;;
19194 esac
19195 # We did not find ourselves, most probably we were run as `sh COMMAND'
19196 # in which case we are not to be found in the path.
19197 if test "x$as_myself" = x; then
19198 as_myself=$0
19199 fi
19200 if test ! -f "$as_myself"; then
19201 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19202 exit 1
19203 fi
19204
19205 # Unset variables that we do not need and which cause bugs (e.g. in
19206 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19207 # suppresses any "Segmentation fault" message there. '((' could
19208 # trigger a bug in pdksh 5.2.14.
19209 for as_var in BASH_ENV ENV MAIL MAILPATH
19210 do eval test x\${$as_var+set} = xset \
19211 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19212 done
19213 PS1='$ '
19214 PS2='> '
19215 PS4='+ '
19216
19217 # NLS nuisances.
19218 LC_ALL=C
19219 export LC_ALL
19220 LANGUAGE=C
19221 export LANGUAGE
19222
19223 # CDPATH.
19224 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19225
19226
19227 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19228 # ----------------------------------------
19229 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19230 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19231 # script with STATUS, using 1 if that was 0.
19232 as_fn_error ()
19233 {
19234 as_status=$1; test $as_status -eq 0 && as_status=1
19235 if test "$4"; then
19236 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19237 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19238 fi
19239 $as_echo "$as_me: error: $2" >&2
19240 as_fn_exit $as_status
19241 } # as_fn_error
19242
19243
19244 # as_fn_set_status STATUS
19245 # -----------------------
19246 # Set $? to STATUS, without forking.
19247 as_fn_set_status ()
19248 {
19249 return $1
19250 } # as_fn_set_status
19251
19252 # as_fn_exit STATUS
19253 # -----------------
19254 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19255 as_fn_exit ()
19256 {
19257 set +e
19258 as_fn_set_status $1
19259 exit $1
19260 } # as_fn_exit
19261
19262 # as_fn_unset VAR
19263 # ---------------
19264 # Portably unset VAR.
19265 as_fn_unset ()
19266 {
19267 { eval $1=; unset $1;}
19268 }
19269 as_unset=as_fn_unset
19270 # as_fn_append VAR VALUE
19271 # ----------------------
19272 # Append the text in VALUE to the end of the definition contained in VAR. Take
19273 # advantage of any shell optimizations that allow amortized linear growth over
19274 # repeated appends, instead of the typical quadratic growth present in naive
19275 # implementations.
19276 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19277 eval 'as_fn_append ()
19278 {
19279 eval $1+=\$2
19280 }'
19281 else
19282 as_fn_append ()
19283 {
19284 eval $1=\$$1\$2
19285 }
19286 fi # as_fn_append
19287
19288 # as_fn_arith ARG...
19289 # ------------------
19290 # Perform arithmetic evaluation on the ARGs, and store the result in the
19291 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19292 # must be portable across $(()) and expr.
19293 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19294 eval 'as_fn_arith ()
19295 {
19296 as_val=$(( $* ))
19297 }'
19298 else
19299 as_fn_arith ()
19300 {
19301 as_val=`expr "$@" || test $? -eq 1`
19302 }
19303 fi # as_fn_arith
19304
19305
19306 if expr a : '\(a\)' >/dev/null 2>&1 &&
19307 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19308 as_expr=expr
19309 else
19310 as_expr=false
19311 fi
19312
19313 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19314 as_basename=basename
19315 else
19316 as_basename=false
19317 fi
19318
19319 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19320 as_dirname=dirname
19321 else
19322 as_dirname=false
19323 fi
19324
19325 as_me=`$as_basename -- "$0" ||
19326 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19327 X"$0" : 'X\(//\)$' \| \
19328 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19329 $as_echo X/"$0" |
19330 sed '/^.*\/\([^/][^/]*\)\/*$/{
19331 s//\1/
19332 q
19333 }
19334 /^X\/\(\/\/\)$/{
19335 s//\1/
19336 q
19337 }
19338 /^X\/\(\/\).*/{
19339 s//\1/
19340 q
19341 }
19342 s/.*/./; q'`
19343
19344 # Avoid depending upon Character Ranges.
19345 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19346 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19347 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19348 as_cr_digits='0123456789'
19349 as_cr_alnum=$as_cr_Letters$as_cr_digits
19350
19351 ECHO_C= ECHO_N= ECHO_T=
19352 case `echo -n x` in #(((((
19353 -n*)
19354 case `echo 'xy\c'` in
19355 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19356 xy) ECHO_C='\c';;
19357 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19358 ECHO_T=' ';;
19359 esac;;
19360 *)
19361 ECHO_N='-n';;
19362 esac
19363
19364 rm -f conf$$ conf$$.exe conf$$.file
19365 if test -d conf$$.dir; then
19366 rm -f conf$$.dir/conf$$.file
19367 else
19368 rm -f conf$$.dir
19369 mkdir conf$$.dir 2>/dev/null
19370 fi
19371 if (echo >conf$$.file) 2>/dev/null; then
19372 if ln -s conf$$.file conf$$ 2>/dev/null; then
19373 as_ln_s='ln -s'
19374 # ... but there are two gotchas:
19375 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19376 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19377 # In both cases, we have to default to `cp -pR'.
19378 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19379 as_ln_s='cp -pR'
19380 elif ln conf$$.file conf$$ 2>/dev/null; then
19381 as_ln_s=ln
19382 else
19383 as_ln_s='cp -pR'
19384 fi
19385 else
19386 as_ln_s='cp -pR'
19387 fi
19388 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19389 rmdir conf$$.dir 2>/dev/null
19390
19391
19392 # as_fn_mkdir_p
19393 # -------------
19394 # Create "$as_dir" as a directory, including parents if necessary.
19395 as_fn_mkdir_p ()
19396 {
19397
19398 case $as_dir in #(
19399 -*) as_dir=./$as_dir;;
19400 esac
19401 test -d "$as_dir" || eval $as_mkdir_p || {
19402 as_dirs=
19403 while :; do
19404 case $as_dir in #(
19405 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19406 *) as_qdir=$as_dir;;
19407 esac
19408 as_dirs="'$as_qdir' $as_dirs"
19409 as_dir=`$as_dirname -- "$as_dir" ||
19410 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19411 X"$as_dir" : 'X\(//\)[^/]' \| \
19412 X"$as_dir" : 'X\(//\)$' \| \
19413 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19414 $as_echo X"$as_dir" |
19415 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19416 s//\1/
19417 q
19418 }
19419 /^X\(\/\/\)[^/].*/{
19420 s//\1/
19421 q
19422 }
19423 /^X\(\/\/\)$/{
19424 s//\1/
19425 q
19426 }
19427 /^X\(\/\).*/{
19428 s//\1/
19429 q
19430 }
19431 s/.*/./; q'`
19432 test -d "$as_dir" && break
19433 done
19434 test -z "$as_dirs" || eval "mkdir $as_dirs"
19435 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19436
19437
19438 } # as_fn_mkdir_p
19439 if mkdir -p . 2>/dev/null; then
19440 as_mkdir_p='mkdir -p "$as_dir"'
19441 else
19442 test -d ./-p && rmdir ./-p
19443 as_mkdir_p=false
19444 fi
19445
19446
19447 # as_fn_executable_p FILE
19448 # -----------------------
19449 # Test if FILE is an executable regular file.
19450 as_fn_executable_p ()
19451 {
19452 test -f "$1" && test -x "$1"
19453 } # as_fn_executable_p
19454 as_test_x='test -x'
19455 as_executable_p=as_fn_executable_p
19456
19457 # Sed expression to map a string onto a valid CPP name.
19458 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19459
19460 # Sed expression to map a string onto a valid variable name.
19461 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19462
19463
19464 exec 6>&1
19465 ## ----------------------------------- ##
19466 ## Main body of $CONFIG_STATUS script. ##
19467 ## ----------------------------------- ##
19468 _ASEOF
19469 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19470
19471 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19472 # Save the log message, to keep $0 and so on meaningful, and to
19473 # report actual input values of CONFIG_FILES etc. instead of their
19474 # values after options handling.
19475 ac_log="
19476 This file was extended by xf86-video-tdfx $as_me 1.4.6, which was
19477 generated by GNU Autoconf 2.69. Invocation command line was
19478
19479 CONFIG_FILES = $CONFIG_FILES
19480 CONFIG_HEADERS = $CONFIG_HEADERS
19481 CONFIG_LINKS = $CONFIG_LINKS
19482 CONFIG_COMMANDS = $CONFIG_COMMANDS
19483 $ $0 $@
19484
19485 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19486 "
19487
19488 _ACEOF
19489
19490 case $ac_config_files in *"
19491 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19492 esac
19493
19494 case $ac_config_headers in *"
19495 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19496 esac
19497
19498
19499 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19500 # Files that config.status was made for.
19501 config_files="$ac_config_files"
19502 config_headers="$ac_config_headers"
19503 config_commands="$ac_config_commands"
19504
19505 _ACEOF
19506
19507 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19508 ac_cs_usage="\
19509 \`$as_me' instantiates files and other configuration actions
19510 from templates according to the current configuration. Unless the files
19511 and actions are specified as TAGs, all are instantiated by default.
19512
19513 Usage: $0 [OPTION]... [TAG]...
19514
19515 -h, --help print this help, then exit
19516 -V, --version print version number and configuration settings, then exit
19517 --config print configuration, then exit
19518 -q, --quiet, --silent
19519 do not print progress messages
19520 -d, --debug don't remove temporary files
19521 --recheck update $as_me by reconfiguring in the same conditions
19522 --file=FILE[:TEMPLATE]
19523 instantiate the configuration file FILE
19524 --header=FILE[:TEMPLATE]
19525 instantiate the configuration header FILE
19526
19527 Configuration files:
19528 $config_files
19529
19530 Configuration headers:
19531 $config_headers
19532
19533 Configuration commands:
19534 $config_commands
19535
19536 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
19537
19538 _ACEOF
19539 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19540 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19541 ac_cs_version="\\
19542 xf86-video-tdfx config.status 1.4.6
19543 configured by $0, generated by GNU Autoconf 2.69,
19544 with options \\"\$ac_cs_config\\"
19545
19546 Copyright (C) 2012 Free Software Foundation, Inc.
19547 This config.status script is free software; the Free Software Foundation
19548 gives unlimited permission to copy, distribute and modify it."
19549
19550 ac_pwd='$ac_pwd'
19551 srcdir='$srcdir'
19552 INSTALL='$INSTALL'
19553 MKDIR_P='$MKDIR_P'
19554 AWK='$AWK'
19555 test -n "\$AWK" || AWK=awk
19556 _ACEOF
19557
19558 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19559 # The default lists apply if the user does not specify any file.
19560 ac_need_defaults=:
19561 while test $# != 0
19562 do
19563 case $1 in
19564 --*=?*)
19565 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19566 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19567 ac_shift=:
19568 ;;
19569 --*=)
19570 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19571 ac_optarg=
19572 ac_shift=:
19573 ;;
19574 *)
19575 ac_option=$1
19576 ac_optarg=$2
19577 ac_shift=shift
19578 ;;
19579 esac
19580
19581 case $ac_option in
19582 # Handling of the options.
19583 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19584 ac_cs_recheck=: ;;
19585 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19586 $as_echo "$ac_cs_version"; exit ;;
19587 --config | --confi | --conf | --con | --co | --c )
19588 $as_echo "$ac_cs_config"; exit ;;
19589 --debug | --debu | --deb | --de | --d | -d )
19590 debug=: ;;
19591 --file | --fil | --fi | --f )
19592 $ac_shift
19593 case $ac_optarg in
19594 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19595 '') as_fn_error $? "missing file argument" ;;
19596 esac
19597 as_fn_append CONFIG_FILES " '$ac_optarg'"
19598 ac_need_defaults=false;;
19599 --header | --heade | --head | --hea )
19600 $ac_shift
19601 case $ac_optarg in
19602 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19603 esac
19604 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19605 ac_need_defaults=false;;
19606 --he | --h)
19607 # Conflict between --help and --header
19608 as_fn_error $? "ambiguous option: \`$1'
19609 Try \`$0 --help' for more information.";;
19610 --help | --hel | -h )
19611 $as_echo "$ac_cs_usage"; exit ;;
19612 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19613 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19614 ac_cs_silent=: ;;
19615
19616 # This is an error.
19617 -*) as_fn_error $? "unrecognized option: \`$1'
19618 Try \`$0 --help' for more information." ;;
19619
19620 *) as_fn_append ac_config_targets " $1"
19621 ac_need_defaults=false ;;
19622
19623 esac
19624 shift
19625 done
19626
19627 ac_configure_extra_args=
19628
19629 if $ac_cs_silent; then
19630 exec 6>/dev/null
19631 ac_configure_extra_args="$ac_configure_extra_args --silent"
19632 fi
19633
19634 _ACEOF
19635 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19636 if \$ac_cs_recheck; then
19637 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19638 shift
19639 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19640 CONFIG_SHELL='$SHELL'
19641 export CONFIG_SHELL
19642 exec "\$@"
19643 fi
19644
19645 _ACEOF
19646 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19647 exec 5>>config.log
19648 {
19649 echo
19650 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19651 ## Running $as_me. ##
19652 _ASBOX
19653 $as_echo "$ac_log"
19654 } >&5
19655
19656 _ACEOF
19657 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19658 #
19659 # INIT-COMMANDS
19660 #
19661 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19662
19663
19664 # The HP-UX ksh and POSIX shell print the target directory to stdout
19665 # if CDPATH is set.
19666 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19667
19668 sed_quote_subst='$sed_quote_subst'
19669 double_quote_subst='$double_quote_subst'
19670 delay_variable_subst='$delay_variable_subst'
19671 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19672 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19673 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19674 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19675 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19676 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19677 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
19678 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19679 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19680 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19681 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19682 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19683 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19684 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19685 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19686 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19687 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19688 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19689 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19690 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19691 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19692 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19693 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19694 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19695 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19696 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19697 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19698 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19699 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19700 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19701 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19702 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19703 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19704 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19705 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19706 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19707 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19708 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19709 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19710 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19711 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19712 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19713 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19714 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19715 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19716 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19717 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19718 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19719 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19720 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19721 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19722 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19723 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19724 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19725 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19726 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19727 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
19728 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19729 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"`'
19730 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
19731 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19732 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19733 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
19734 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19735 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19736 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19737 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19738 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19739 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19740 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19741 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19742 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19743 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19744 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19745 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19746 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19747 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19748 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19749 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19750 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19751 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19752 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19753 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19754 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19755 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19756 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19757 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19758 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19759 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19760 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19761 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19762 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19763 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19764 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19765 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19766 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19767 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19768 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19769 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19770 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19771 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19772 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19773 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19774 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19775 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19776 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19777 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19778 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19779 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19780 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19781 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19782 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19783 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19784 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19785 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19786 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19787 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19788 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19789 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19790 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19791 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19792 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19793 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19794 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19795 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19796 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19797 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19798 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19799 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19800 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19801 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19802 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19803 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19804 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19805
19806 LTCC='$LTCC'
19807 LTCFLAGS='$LTCFLAGS'
19808 compiler='$compiler_DEFAULT'
19809
19810 # A function that is used when there is no print builtin or printf.
19811 func_fallback_echo ()
19812 {
19813 eval 'cat <<_LTECHO_EOF
19814 \$1
19815 _LTECHO_EOF'
19816 }
19817
19818 # Quote evaled strings.
19819 for var in SHELL \
19820 ECHO \
19821 PATH_SEPARATOR \
19822 SED \
19823 GREP \
19824 EGREP \
19825 FGREP \
19826 LD \
19827 NM \
19828 LN_S \
19829 lt_SP2NL \
19830 lt_NL2SP \
19831 reload_flag \
19832 OBJDUMP \
19833 deplibs_check_method \
19834 file_magic_cmd \
19835 file_magic_glob \
19836 want_nocaseglob \
19837 DLLTOOL \
19838 sharedlib_from_linklib_cmd \
19839 AR \
19840 AR_FLAGS \
19841 archiver_list_spec \
19842 STRIP \
19843 RANLIB \
19844 CC \
19845 CFLAGS \
19846 compiler \
19847 lt_cv_sys_global_symbol_pipe \
19848 lt_cv_sys_global_symbol_to_cdecl \
19849 lt_cv_sys_global_symbol_to_import \
19850 lt_cv_sys_global_symbol_to_c_name_address \
19851 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19852 lt_cv_nm_interface \
19853 nm_file_list_spec \
19854 lt_cv_truncate_bin \
19855 lt_prog_compiler_no_builtin_flag \
19856 lt_prog_compiler_pic \
19857 lt_prog_compiler_wl \
19858 lt_prog_compiler_static \
19859 lt_cv_prog_compiler_c_o \
19860 need_locks \
19861 MANIFEST_TOOL \
19862 DSYMUTIL \
19863 NMEDIT \
19864 LIPO \
19865 OTOOL \
19866 OTOOL64 \
19867 shrext_cmds \
19868 export_dynamic_flag_spec \
19869 whole_archive_flag_spec \
19870 compiler_needs_object \
19871 with_gnu_ld \
19872 allow_undefined_flag \
19873 no_undefined_flag \
19874 hardcode_libdir_flag_spec \
19875 hardcode_libdir_separator \
19876 exclude_expsyms \
19877 include_expsyms \
19878 file_list_spec \
19879 variables_saved_for_relink \
19880 libname_spec \
19881 library_names_spec \
19882 soname_spec \
19883 install_override_mode \
19884 finish_eval \
19885 old_striplib \
19886 striplib; do
19887 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19888 *[\\\\\\\`\\"\\\$]*)
19889 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19890 ;;
19891 *)
19892 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19893 ;;
19894 esac
19895 done
19896
19897 # Double-quote double-evaled strings.
19898 for var in reload_cmds \
19899 old_postinstall_cmds \
19900 old_postuninstall_cmds \
19901 old_archive_cmds \
19902 extract_expsyms_cmds \
19903 old_archive_from_new_cmds \
19904 old_archive_from_expsyms_cmds \
19905 archive_cmds \
19906 archive_expsym_cmds \
19907 module_cmds \
19908 module_expsym_cmds \
19909 export_symbols_cmds \
19910 prelink_cmds \
19911 postlink_cmds \
19912 postinstall_cmds \
19913 postuninstall_cmds \
19914 finish_cmds \
19915 sys_lib_search_path_spec \
19916 sys_lib_dlsearch_path_spec; do
19917 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19918 *[\\\\\\\`\\"\\\$]*)
19919 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19920 ;;
19921 *)
19922 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19923 ;;
19924 esac
19925 done
19926
19927 ac_aux_dir='$ac_aux_dir'
19928
19929 # See if we are running on zsh, and set the options that allow our
19930 # commands through without removal of \ escapes INIT.
19931 if test -n "\${ZSH_VERSION+set}"; then
19932 setopt NO_GLOB_SUBST
19933 fi
19934
19935
19936 PACKAGE='$PACKAGE'
19937 VERSION='$VERSION'
19938 RM='$RM'
19939 ofile='$ofile'
19940
19941
19942
19943
19944 _ACEOF
19945
19946 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19947
19948 # Handling of arguments.
19949 for ac_config_target in $ac_config_targets
19950 do
19951 case $ac_config_target in
19952 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19953 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19954 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19955 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19956 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19957 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
19958
19959 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19960 esac
19961 done
19962
19963
19964 # If the user did not use the arguments to specify the items to instantiate,
19965 # then the envvar interface is used. Set only those that are not.
19966 # We use the long form for the default assignment because of an extremely
19967 # bizarre bug on SunOS 4.1.3.
19968 if $ac_need_defaults; then
19969 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19970 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19971 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19972 fi
19973
19974 # Have a temporary directory for convenience. Make it in the build tree
19975 # simply because there is no reason against having it here, and in addition,
19976 # creating and moving files from /tmp can sometimes cause problems.
19977 # Hook for its removal unless debugging.
19978 # Note that there is a small window in which the directory will not be cleaned:
19979 # after its creation but before its name has been assigned to `$tmp'.
19980 $debug ||
19981 {
19982 tmp= ac_tmp=
19983 trap 'exit_status=$?
19984 : "${ac_tmp:=$tmp}"
19985 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19986 ' 0
19987 trap 'as_fn_exit 1' 1 2 13 15
19988 }
19989 # Create a (secure) tmp directory for tmp files.
19990
19991 {
19992 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19993 test -d "$tmp"
19994 } ||
19995 {
19996 tmp=./conf$$-$RANDOM
19997 (umask 077 && mkdir "$tmp")
19998 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19999 ac_tmp=$tmp
20000
20001 # Set up the scripts for CONFIG_FILES section.
20002 # No need to generate them if there are no CONFIG_FILES.
20003 # This happens for instance with `./config.status config.h'.
20004 if test -n "$CONFIG_FILES"; then
20005
20006
20007 ac_cr=`echo X | tr X '\015'`
20008 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20009 # But we know of no other shell where ac_cr would be empty at this
20010 # point, so we can use a bashism as a fallback.
20011 if test "x$ac_cr" = x; then
20012 eval ac_cr=\$\'\\r\'
20013 fi
20014 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20015 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20016 ac_cs_awk_cr='\\r'
20017 else
20018 ac_cs_awk_cr=$ac_cr
20019 fi
20020
20021 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20022 _ACEOF
20023
20024
20025 {
20026 echo "cat >conf$$subs.awk <<_ACEOF" &&
20027 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20028 echo "_ACEOF"
20029 } >conf$$subs.sh ||
20030 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20031 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20032 ac_delim='%!_!# '
20033 for ac_last_try in false false false false false :; do
20034 . ./conf$$subs.sh ||
20035 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20036
20037 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20038 if test $ac_delim_n = $ac_delim_num; then
20039 break
20040 elif $ac_last_try; then
20041 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20042 else
20043 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20044 fi
20045 done
20046 rm -f conf$$subs.sh
20047
20048 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20049 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20050 _ACEOF
20051 sed -n '
20052 h
20053 s/^/S["/; s/!.*/"]=/
20054 p
20055 g
20056 s/^[^!]*!//
20057 :repl
20058 t repl
20059 s/'"$ac_delim"'$//
20060 t delim
20061 :nl
20062 h
20063 s/\(.\{148\}\)..*/\1/
20064 t more1
20065 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20066 p
20067 n
20068 b repl
20069 :more1
20070 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20071 p
20072 g
20073 s/.\{148\}//
20074 t nl
20075 :delim
20076 h
20077 s/\(.\{148\}\)..*/\1/
20078 t more2
20079 s/["\\]/\\&/g; s/^/"/; s/$/"/
20080 p
20081 b
20082 :more2
20083 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20084 p
20085 g
20086 s/.\{148\}//
20087 t delim
20088 ' <conf$$subs.awk | sed '
20089 /^[^""]/{
20090 N
20091 s/\n//
20092 }
20093 ' >>$CONFIG_STATUS || ac_write_fail=1
20094 rm -f conf$$subs.awk
20095 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20096 _ACAWK
20097 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20098 for (key in S) S_is_set[key] = 1
20099 FS = ""
20100
20101 }
20102 {
20103 line = $ 0
20104 nfields = split(line, field, "@")
20105 substed = 0
20106 len = length(field[1])
20107 for (i = 2; i < nfields; i++) {
20108 key = field[i]
20109 keylen = length(key)
20110 if (S_is_set[key]) {
20111 value = S[key]
20112 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20113 len += length(value) + length(field[++i])
20114 substed = 1
20115 } else
20116 len += 1 + keylen
20117 }
20118
20119 print line
20120 }
20121
20122 _ACAWK
20123 _ACEOF
20124 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20125 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20126 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20127 else
20128 cat
20129 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20130 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20131 _ACEOF
20132
20133 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20134 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20135 # trailing colons and then remove the whole line if VPATH becomes empty
20136 # (actually we leave an empty line to preserve line numbers).
20137 if test "x$srcdir" = x.; then
20138 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20139 h
20140 s///
20141 s/^/:/
20142 s/[ ]*$/:/
20143 s/:\$(srcdir):/:/g
20144 s/:\${srcdir}:/:/g
20145 s/:@srcdir@:/:/g
20146 s/^:*//
20147 s/:*$//
20148 x
20149 s/\(=[ ]*\).*/\1/
20150 G
20151 s/\n//
20152 s/^[^=]*=[ ]*$//
20153 }'
20154 fi
20155
20156 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20157 fi # test -n "$CONFIG_FILES"
20158
20159 # Set up the scripts for CONFIG_HEADERS section.
20160 # No need to generate them if there are no CONFIG_HEADERS.
20161 # This happens for instance with `./config.status Makefile'.
20162 if test -n "$CONFIG_HEADERS"; then
20163 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20164 BEGIN {
20165 _ACEOF
20166
20167 # Transform confdefs.h into an awk script `defines.awk', embedded as
20168 # here-document in config.status, that substitutes the proper values into
20169 # config.h.in to produce config.h.
20170
20171 # Create a delimiter string that does not exist in confdefs.h, to ease
20172 # handling of long lines.
20173 ac_delim='%!_!# '
20174 for ac_last_try in false false :; do
20175 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20176 if test -z "$ac_tt"; then
20177 break
20178 elif $ac_last_try; then
20179 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20180 else
20181 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20182 fi
20183 done
20184
20185 # For the awk script, D is an array of macro values keyed by name,
20186 # likewise P contains macro parameters if any. Preserve backslash
20187 # newline sequences.
20188
20189 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20190 sed -n '
20191 s/.\{148\}/&'"$ac_delim"'/g
20192 t rset
20193 :rset
20194 s/^[ ]*#[ ]*define[ ][ ]*/ /
20195 t def
20196 d
20197 :def
20198 s/\\$//
20199 t bsnl
20200 s/["\\]/\\&/g
20201 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20202 D["\1"]=" \3"/p
20203 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20204 d
20205 :bsnl
20206 s/["\\]/\\&/g
20207 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20208 D["\1"]=" \3\\\\\\n"\\/p
20209 t cont
20210 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20211 t cont
20212 d
20213 :cont
20214 n
20215 s/.\{148\}/&'"$ac_delim"'/g
20216 t clear
20217 :clear
20218 s/\\$//
20219 t bsnlc
20220 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20221 d
20222 :bsnlc
20223 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20224 b cont
20225 ' <confdefs.h | sed '
20226 s/'"$ac_delim"'/"\\\
20227 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20228
20229 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20230 for (key in D) D_is_set[key] = 1
20231 FS = ""
20232 }
20233 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20234 line = \$ 0
20235 split(line, arg, " ")
20236 if (arg[1] == "#") {
20237 defundef = arg[2]
20238 mac1 = arg[3]
20239 } else {
20240 defundef = substr(arg[1], 2)
20241 mac1 = arg[2]
20242 }
20243 split(mac1, mac2, "(") #)
20244 macro = mac2[1]
20245 prefix = substr(line, 1, index(line, defundef) - 1)
20246 if (D_is_set[macro]) {
20247 # Preserve the white space surrounding the "#".
20248 print prefix "define", macro P[macro] D[macro]
20249 next
20250 } else {
20251 # Replace #undef with comments. This is necessary, for example,
20252 # in the case of _POSIX_SOURCE, which is predefined and required
20253 # on some systems where configure will not decide to define it.
20254 if (defundef == "undef") {
20255 print "/*", prefix defundef, macro, "*/"
20256 next
20257 }
20258 }
20259 }
20260 { print }
20261 _ACAWK
20262 _ACEOF
20263 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20264 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20265 fi # test -n "$CONFIG_HEADERS"
20266
20267
20268 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20269 shift
20270 for ac_tag
20271 do
20272 case $ac_tag in
20273 :[FHLC]) ac_mode=$ac_tag; continue;;
20274 esac
20275 case $ac_mode$ac_tag in
20276 :[FHL]*:*);;
20277 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20278 :[FH]-) ac_tag=-:-;;
20279 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20280 esac
20281 ac_save_IFS=$IFS
20282 IFS=:
20283 set x $ac_tag
20284 IFS=$ac_save_IFS
20285 shift
20286 ac_file=$1
20287 shift
20288
20289 case $ac_mode in
20290 :L) ac_source=$1;;
20291 :[FH])
20292 ac_file_inputs=
20293 for ac_f
20294 do
20295 case $ac_f in
20296 -) ac_f="$ac_tmp/stdin";;
20297 *) # Look for the file first in the build tree, then in the source tree
20298 # (if the path is not absolute). The absolute path cannot be DOS-style,
20299 # because $ac_f cannot contain `:'.
20300 test -f "$ac_f" ||
20301 case $ac_f in
20302 [\\/$]*) false;;
20303 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20304 esac ||
20305 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20306 esac
20307 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20308 as_fn_append ac_file_inputs " '$ac_f'"
20309 done
20310
20311 # Let's still pretend it is `configure' which instantiates (i.e., don't
20312 # use $as_me), people would be surprised to read:
20313 # /* config.h. Generated by config.status. */
20314 configure_input='Generated from '`
20315 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20316 `' by configure.'
20317 if test x"$ac_file" != x-; then
20318 configure_input="$ac_file. $configure_input"
20319 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20320 $as_echo "$as_me: creating $ac_file" >&6;}
20321 fi
20322 # Neutralize special characters interpreted by sed in replacement strings.
20323 case $configure_input in #(
20324 *\&* | *\|* | *\\* )
20325 ac_sed_conf_input=`$as_echo "$configure_input" |
20326 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20327 *) ac_sed_conf_input=$configure_input;;
20328 esac
20329
20330 case $ac_tag in
20331 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20332 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20333 esac
20334 ;;
20335 esac
20336
20337 ac_dir=`$as_dirname -- "$ac_file" ||
20338 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20339 X"$ac_file" : 'X\(//\)[^/]' \| \
20340 X"$ac_file" : 'X\(//\)$' \| \
20341 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20342 $as_echo X"$ac_file" |
20343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20344 s//\1/
20345 q
20346 }
20347 /^X\(\/\/\)[^/].*/{
20348 s//\1/
20349 q
20350 }
20351 /^X\(\/\/\)$/{
20352 s//\1/
20353 q
20354 }
20355 /^X\(\/\).*/{
20356 s//\1/
20357 q
20358 }
20359 s/.*/./; q'`
20360 as_dir="$ac_dir"; as_fn_mkdir_p
20361 ac_builddir=.
20362
20363 case "$ac_dir" in
20364 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20365 *)
20366 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20367 # A ".." for each directory in $ac_dir_suffix.
20368 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20369 case $ac_top_builddir_sub in
20370 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20371 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20372 esac ;;
20373 esac
20374 ac_abs_top_builddir=$ac_pwd
20375 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20376 # for backward compatibility:
20377 ac_top_builddir=$ac_top_build_prefix
20378
20379 case $srcdir in
20380 .) # We are building in place.
20381 ac_srcdir=.
20382 ac_top_srcdir=$ac_top_builddir_sub
20383 ac_abs_top_srcdir=$ac_pwd ;;
20384 [\\/]* | ?:[\\/]* ) # Absolute name.
20385 ac_srcdir=$srcdir$ac_dir_suffix;
20386 ac_top_srcdir=$srcdir
20387 ac_abs_top_srcdir=$srcdir ;;
20388 *) # Relative name.
20389 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20390 ac_top_srcdir=$ac_top_build_prefix$srcdir
20391 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20392 esac
20393 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20394
20395
20396 case $ac_mode in
20397 :F)
20398 #
20399 # CONFIG_FILE
20400 #
20401
20402 case $INSTALL in
20403 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20404 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20405 esac
20406 ac_MKDIR_P=$MKDIR_P
20407 case $MKDIR_P in
20408 [\\/$]* | ?:[\\/]* ) ;;
20409 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20410 esac
20411 _ACEOF
20412
20413 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20414 # If the template does not know about datarootdir, expand it.
20415 # FIXME: This hack should be removed a few years after 2.60.
20416 ac_datarootdir_hack=; ac_datarootdir_seen=
20417 ac_sed_dataroot='
20418 /datarootdir/ {
20419 p
20420 q
20421 }
20422 /@datadir@/p
20423 /@docdir@/p
20424 /@infodir@/p
20425 /@localedir@/p
20426 /@mandir@/p'
20427 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20428 *datarootdir*) ac_datarootdir_seen=yes;;
20429 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20431 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20432 _ACEOF
20433 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20434 ac_datarootdir_hack='
20435 s&@datadir@&$datadir&g
20436 s&@docdir@&$docdir&g
20437 s&@infodir@&$infodir&g
20438 s&@localedir@&$localedir&g
20439 s&@mandir@&$mandir&g
20440 s&\\\${datarootdir}&$datarootdir&g' ;;
20441 esac
20442 _ACEOF
20443
20444 # Neutralize VPATH when `$srcdir' = `.'.
20445 # Shell code in configure.ac might set extrasub.
20446 # FIXME: do we really want to maintain this feature?
20447 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20448 ac_sed_extra="$ac_vpsub
20449 $extrasub
20450 _ACEOF
20451 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20452 :t
20453 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20454 s|@configure_input@|$ac_sed_conf_input|;t t
20455 s&@top_builddir@&$ac_top_builddir_sub&;t t
20456 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20457 s&@srcdir@&$ac_srcdir&;t t
20458 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20459 s&@top_srcdir@&$ac_top_srcdir&;t t
20460 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20461 s&@builddir@&$ac_builddir&;t t
20462 s&@abs_builddir@&$ac_abs_builddir&;t t
20463 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20464 s&@INSTALL@&$ac_INSTALL&;t t
20465 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20466 $ac_datarootdir_hack
20467 "
20468 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20469 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20470
20471 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20472 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20473 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20474 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20475 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20476 which seems to be undefined. Please make sure it is defined" >&5
20477 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20478 which seems to be undefined. Please make sure it is defined" >&2;}
20479
20480 rm -f "$ac_tmp/stdin"
20481 case $ac_file in
20482 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20483 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20484 esac \
20485 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20486 ;;
20487 :H)
20488 #
20489 # CONFIG_HEADER
20490 #
20491 if test x"$ac_file" != x-; then
20492 {
20493 $as_echo "/* $configure_input */" \
20494 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20495 } >"$ac_tmp/config.h" \
20496 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20497 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20498 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20499 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20500 else
20501 rm -f "$ac_file"
20502 mv "$ac_tmp/config.h" "$ac_file" \
20503 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20504 fi
20505 else
20506 $as_echo "/* $configure_input */" \
20507 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20508 || as_fn_error $? "could not create -" "$LINENO" 5
20509 fi
20510 # Compute "$ac_file"'s index in $config_headers.
20511 _am_arg="$ac_file"
20512 _am_stamp_count=1
20513 for _am_header in $config_headers :; do
20514 case $_am_header in
20515 $_am_arg | $_am_arg:* )
20516 break ;;
20517 * )
20518 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20519 esac
20520 done
20521 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20522 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20523 X"$_am_arg" : 'X\(//\)[^/]' \| \
20524 X"$_am_arg" : 'X\(//\)$' \| \
20525 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20526 $as_echo X"$_am_arg" |
20527 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20528 s//\1/
20529 q
20530 }
20531 /^X\(\/\/\)[^/].*/{
20532 s//\1/
20533 q
20534 }
20535 /^X\(\/\/\)$/{
20536 s//\1/
20537 q
20538 }
20539 /^X\(\/\).*/{
20540 s//\1/
20541 q
20542 }
20543 s/.*/./; q'`/stamp-h$_am_stamp_count
20544 ;;
20545
20546 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20547 $as_echo "$as_me: executing $ac_file commands" >&6;}
20548 ;;
20549 esac
20550
20551
20552 case $ac_file$ac_mode in
20553 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20554 # Older Autoconf quotes --file arguments for eval, but not when files
20555 # are listed without --file. Let's play safe and only enable the eval
20556 # if we detect the quoting.
20557 case $CONFIG_FILES in
20558 *\'*) eval set x "$CONFIG_FILES" ;;
20559 *) set x $CONFIG_FILES ;;
20560 esac
20561 shift
20562 for mf
20563 do
20564 # Strip MF so we end up with the name of the file.
20565 mf=`echo "$mf" | sed -e 's/:.*$//'`
20566 # Check whether this is an Automake generated Makefile or not.
20567 # We used to match only the files named 'Makefile.in', but
20568 # some people rename them; so instead we look at the file content.
20569 # Grep'ing the first line is not enough: some people post-process
20570 # each Makefile.in and add a new line on top of each file to say so.
20571 # Grep'ing the whole file is not good either: AIX grep has a line
20572 # limit of 2048, but all sed's we know have understand at least 4000.
20573 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20574 dirpart=`$as_dirname -- "$mf" ||
20575 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20576 X"$mf" : 'X\(//\)[^/]' \| \
20577 X"$mf" : 'X\(//\)$' \| \
20578 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20579 $as_echo X"$mf" |
20580 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20581 s//\1/
20582 q
20583 }
20584 /^X\(\/\/\)[^/].*/{
20585 s//\1/
20586 q
20587 }
20588 /^X\(\/\/\)$/{
20589 s//\1/
20590 q
20591 }
20592 /^X\(\/\).*/{
20593 s//\1/
20594 q
20595 }
20596 s/.*/./; q'`
20597 else
20598 continue
20599 fi
20600 # Extract the definition of DEPDIR, am__include, and am__quote
20601 # from the Makefile without running 'make'.
20602 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20603 test -z "$DEPDIR" && continue
20604 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20605 test -z "$am__include" && continue
20606 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20607 # Find all dependency output files, they are included files with
20608 # $(DEPDIR) in their names. We invoke sed twice because it is the
20609 # simplest approach to changing $(DEPDIR) to its actual value in the
20610 # expansion.
20611 for file in `sed -n "
20612 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20613 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
20614 # Make sure the directory exists.
20615 test -f "$dirpart/$file" && continue
20616 fdir=`$as_dirname -- "$file" ||
20617 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20618 X"$file" : 'X\(//\)[^/]' \| \
20619 X"$file" : 'X\(//\)$' \| \
20620 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20621 $as_echo X"$file" |
20622 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20623 s//\1/
20624 q
20625 }
20626 /^X\(\/\/\)[^/].*/{
20627 s//\1/
20628 q
20629 }
20630 /^X\(\/\/\)$/{
20631 s//\1/
20632 q
20633 }
20634 /^X\(\/\).*/{
20635 s//\1/
20636 q
20637 }
20638 s/.*/./; q'`
20639 as_dir=$dirpart/$fdir; as_fn_mkdir_p
20640 # echo "creating $dirpart/$file"
20641 echo '# dummy' > "$dirpart/$file"
20642 done
20643 done
20644 }
20645 ;;
20646 "libtool":C)
20647
20648 # See if we are running on zsh, and set the options that allow our
20649 # commands through without removal of \ escapes.
20650 if test -n "${ZSH_VERSION+set}"; then
20651 setopt NO_GLOB_SUBST
20652 fi
20653
20654 cfgfile=${ofile}T
20655 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20656 $RM "$cfgfile"
20657
20658 cat <<_LT_EOF >> "$cfgfile"
20659 #! $SHELL
20660 # Generated automatically by $as_me ($PACKAGE) $VERSION
20661 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20662 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20663
20664 # Provide generalized library-building support services.
20665 # Written by Gordon Matzigkeit, 1996
20666
20667 # Copyright (C) 2014 Free Software Foundation, Inc.
20668 # This is free software; see the source for copying conditions. There is NO
20669 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20670
20671 # GNU Libtool is free software; you can redistribute it and/or modify
20672 # it under the terms of the GNU General Public License as published by
20673 # the Free Software Foundation; either version 2 of of the License, or
20674 # (at your option) any later version.
20675 #
20676 # As a special exception to the GNU General Public License, if you
20677 # distribute this file as part of a program or library that is built
20678 # using GNU Libtool, you may include this file under the same
20679 # distribution terms that you use for the rest of that program.
20680 #
20681 # GNU Libtool is distributed in the hope that it will be useful, but
20682 # WITHOUT ANY WARRANTY; without even the implied warranty of
20683 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20684 # GNU General Public License for more details.
20685 #
20686 # You should have received a copy of the GNU General Public License
20687 # along with this program. If not, see <http://www.gnu.org/licenses/>.
20688
20689
20690 # The names of the tagged configurations supported by this script.
20691 available_tags=''
20692
20693 # ### BEGIN LIBTOOL CONFIG
20694
20695 # Whether or not to build static libraries.
20696 build_old_libs=$enable_static
20697
20698 # Which release of libtool.m4 was used?
20699 macro_version=$macro_version
20700 macro_revision=$macro_revision
20701
20702 # Whether or not to build shared libraries.
20703 build_libtool_libs=$enable_shared
20704
20705 # What type of objects to build.
20706 pic_mode=$pic_mode
20707
20708 # Whether or not to optimize for fast installation.
20709 fast_install=$enable_fast_install
20710
20711 # Shared archive member basename,for filename based shared library versioning on AIX.
20712 shared_archive_member_spec=$shared_archive_member_spec
20713
20714 # Shell to use when invoking shell scripts.
20715 SHELL=$lt_SHELL
20716
20717 # An echo program that protects backslashes.
20718 ECHO=$lt_ECHO
20719
20720 # The PATH separator for the build system.
20721 PATH_SEPARATOR=$lt_PATH_SEPARATOR
20722
20723 # The host system.
20724 host_alias=$host_alias
20725 host=$host
20726 host_os=$host_os
20727
20728 # The build system.
20729 build_alias=$build_alias
20730 build=$build
20731 build_os=$build_os
20732
20733 # A sed program that does not truncate output.
20734 SED=$lt_SED
20735
20736 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20737 Xsed="\$SED -e 1s/^X//"
20738
20739 # A grep program that handles long lines.
20740 GREP=$lt_GREP
20741
20742 # An ERE matcher.
20743 EGREP=$lt_EGREP
20744
20745 # A literal string matcher.
20746 FGREP=$lt_FGREP
20747
20748 # A BSD- or MS-compatible name lister.
20749 NM=$lt_NM
20750
20751 # Whether we need soft or hard links.
20752 LN_S=$lt_LN_S
20753
20754 # What is the maximum length of a command?
20755 max_cmd_len=$max_cmd_len
20756
20757 # Object file suffix (normally "o").
20758 objext=$ac_objext
20759
20760 # Executable file suffix (normally "").
20761 exeext=$exeext
20762
20763 # whether the shell understands "unset".
20764 lt_unset=$lt_unset
20765
20766 # turn spaces into newlines.
20767 SP2NL=$lt_lt_SP2NL
20768
20769 # turn newlines into spaces.
20770 NL2SP=$lt_lt_NL2SP
20771
20772 # convert \$build file names to \$host format.
20773 to_host_file_cmd=$lt_cv_to_host_file_cmd
20774
20775 # convert \$build files to toolchain format.
20776 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20777
20778 # An object symbol dumper.
20779 OBJDUMP=$lt_OBJDUMP
20780
20781 # Method to check whether dependent libraries are shared objects.
20782 deplibs_check_method=$lt_deplibs_check_method
20783
20784 # Command to use when deplibs_check_method = "file_magic".
20785 file_magic_cmd=$lt_file_magic_cmd
20786
20787 # How to find potential files when deplibs_check_method = "file_magic".
20788 file_magic_glob=$lt_file_magic_glob
20789
20790 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20791 want_nocaseglob=$lt_want_nocaseglob
20792
20793 # DLL creation program.
20794 DLLTOOL=$lt_DLLTOOL
20795
20796 # Command to associate shared and link libraries.
20797 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20798
20799 # The archiver.
20800 AR=$lt_AR
20801
20802 # Flags to create an archive.
20803 AR_FLAGS=$lt_AR_FLAGS
20804
20805 # How to feed a file listing to the archiver.
20806 archiver_list_spec=$lt_archiver_list_spec
20807
20808 # A symbol stripping program.
20809 STRIP=$lt_STRIP
20810
20811 # Commands used to install an old-style archive.
20812 RANLIB=$lt_RANLIB
20813 old_postinstall_cmds=$lt_old_postinstall_cmds
20814 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20815
20816 # Whether to use a lock for old archive extraction.
20817 lock_old_archive_extraction=$lock_old_archive_extraction
20818
20819 # A C compiler.
20820 LTCC=$lt_CC
20821
20822 # LTCC compiler flags.
20823 LTCFLAGS=$lt_CFLAGS
20824
20825 # Take the output of nm and produce a listing of raw symbols and C names.
20826 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20827
20828 # Transform the output of nm in a proper C declaration.
20829 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20830
20831 # Transform the output of nm into a list of symbols to manually relocate.
20832 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
20833
20834 # Transform the output of nm in a C name address pair.
20835 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20836
20837 # Transform the output of nm in a C name address pair when lib prefix is needed.
20838 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20839
20840 # The name lister interface.
20841 nm_interface=$lt_lt_cv_nm_interface
20842
20843 # Specify filename containing input files for \$NM.
20844 nm_file_list_spec=$lt_nm_file_list_spec
20845
20846 # The root where to search for dependent libraries,and where our libraries should be installed.
20847 lt_sysroot=$lt_sysroot
20848
20849 # Command to truncate a binary pipe.
20850 lt_truncate_bin=$lt_lt_cv_truncate_bin
20851
20852 # The name of the directory that contains temporary libtool files.
20853 objdir=$objdir
20854
20855 # Used to examine libraries when file_magic_cmd begins with "file".
20856 MAGIC_CMD=$MAGIC_CMD
20857
20858 # Must we lock files when doing compilation?
20859 need_locks=$lt_need_locks
20860
20861 # Manifest tool.
20862 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20863
20864 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20865 DSYMUTIL=$lt_DSYMUTIL
20866
20867 # Tool to change global to local symbols on Mac OS X.
20868 NMEDIT=$lt_NMEDIT
20869
20870 # Tool to manipulate fat objects and archives on Mac OS X.
20871 LIPO=$lt_LIPO
20872
20873 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20874 OTOOL=$lt_OTOOL
20875
20876 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20877 OTOOL64=$lt_OTOOL64
20878
20879 # Old archive suffix (normally "a").
20880 libext=$libext
20881
20882 # Shared library suffix (normally ".so").
20883 shrext_cmds=$lt_shrext_cmds
20884
20885 # The commands to extract the exported symbol list from a shared archive.
20886 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20887
20888 # Variables whose values should be saved in libtool wrapper scripts and
20889 # restored at link time.
20890 variables_saved_for_relink=$lt_variables_saved_for_relink
20891
20892 # Do we need the "lib" prefix for modules?
20893 need_lib_prefix=$need_lib_prefix
20894
20895 # Do we need a version for libraries?
20896 need_version=$need_version
20897
20898 # Library versioning type.
20899 version_type=$version_type
20900
20901 # Shared library runtime path variable.
20902 runpath_var=$runpath_var
20903
20904 # Shared library path variable.
20905 shlibpath_var=$shlibpath_var
20906
20907 # Is shlibpath searched before the hard-coded library search path?
20908 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20909
20910 # Format of library name prefix.
20911 libname_spec=$lt_libname_spec
20912
20913 # List of archive names. First name is the real one, the rest are links.
20914 # The last name is the one that the linker finds with -lNAME
20915 library_names_spec=$lt_library_names_spec
20916
20917 # The coded name of the library, if different from the real name.
20918 soname_spec=$lt_soname_spec
20919
20920 # Permission mode override for installation of shared libraries.
20921 install_override_mode=$lt_install_override_mode
20922
20923 # Command to use after installation of a shared archive.
20924 postinstall_cmds=$lt_postinstall_cmds
20925
20926 # Command to use after uninstallation of a shared archive.
20927 postuninstall_cmds=$lt_postuninstall_cmds
20928
20929 # Commands used to finish a libtool library installation in a directory.
20930 finish_cmds=$lt_finish_cmds
20931
20932 # As "finish_cmds", except a single script fragment to be evaled but
20933 # not shown.
20934 finish_eval=$lt_finish_eval
20935
20936 # Whether we should hardcode library paths into libraries.
20937 hardcode_into_libs=$hardcode_into_libs
20938
20939 # Compile-time system search path for libraries.
20940 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20941
20942 # Run-time system search path for libraries.
20943 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20944
20945 # Whether dlopen is supported.
20946 dlopen_support=$enable_dlopen
20947
20948 # Whether dlopen of programs is supported.
20949 dlopen_self=$enable_dlopen_self
20950
20951 # Whether dlopen of statically linked programs is supported.
20952 dlopen_self_static=$enable_dlopen_self_static
20953
20954 # Commands to strip libraries.
20955 old_striplib=$lt_old_striplib
20956 striplib=$lt_striplib
20957
20958
20959 # The linker used to build libraries.
20960 LD=$lt_LD
20961
20962 # How to create reloadable object files.
20963 reload_flag=$lt_reload_flag
20964 reload_cmds=$lt_reload_cmds
20965
20966 # Commands used to build an old-style archive.
20967 old_archive_cmds=$lt_old_archive_cmds
20968
20969 # A language specific compiler.
20970 CC=$lt_compiler
20971
20972 # Is the compiler the GNU compiler?
20973 with_gcc=$GCC
20974
20975 # Compiler flag to turn off builtin functions.
20976 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20977
20978 # Additional compiler flags for building library objects.
20979 pic_flag=$lt_lt_prog_compiler_pic
20980
20981 # How to pass a linker flag through the compiler.
20982 wl=$lt_lt_prog_compiler_wl
20983
20984 # Compiler flag to prevent dynamic linking.
20985 link_static_flag=$lt_lt_prog_compiler_static
20986
20987 # Does compiler simultaneously support -c and -o options?
20988 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20989
20990 # Whether or not to add -lc for building shared libraries.
20991 build_libtool_need_lc=$archive_cmds_need_lc
20992
20993 # Whether or not to disallow shared libs when runtime libs are static.
20994 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20995
20996 # Compiler flag to allow reflexive dlopens.
20997 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20998
20999 # Compiler flag to generate shared objects directly from archives.
21000 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21001
21002 # Whether the compiler copes with passing no objects directly.
21003 compiler_needs_object=$lt_compiler_needs_object
21004
21005 # Create an old-style archive from a shared archive.
21006 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21007
21008 # Create a temporary old-style archive to link instead of a shared archive.
21009 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21010
21011 # Commands used to build a shared archive.
21012 archive_cmds=$lt_archive_cmds
21013 archive_expsym_cmds=$lt_archive_expsym_cmds
21014
21015 # Commands used to build a loadable module if different from building
21016 # a shared archive.
21017 module_cmds=$lt_module_cmds
21018 module_expsym_cmds=$lt_module_expsym_cmds
21019
21020 # Whether we are building with GNU ld or not.
21021 with_gnu_ld=$lt_with_gnu_ld
21022
21023 # Flag that allows shared libraries with undefined symbols to be built.
21024 allow_undefined_flag=$lt_allow_undefined_flag
21025
21026 # Flag that enforces no undefined symbols.
21027 no_undefined_flag=$lt_no_undefined_flag
21028
21029 # Flag to hardcode \$libdir into a binary during linking.
21030 # This must work even if \$libdir does not exist
21031 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21032
21033 # Whether we need a single "-rpath" flag with a separated argument.
21034 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21035
21036 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21037 # DIR into the resulting binary.
21038 hardcode_direct=$hardcode_direct
21039
21040 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21041 # DIR into the resulting binary and the resulting library dependency is
21042 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
21043 # library is relocated.
21044 hardcode_direct_absolute=$hardcode_direct_absolute
21045
21046 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21047 # into the resulting binary.
21048 hardcode_minus_L=$hardcode_minus_L
21049
21050 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21051 # into the resulting binary.
21052 hardcode_shlibpath_var=$hardcode_shlibpath_var
21053
21054 # Set to "yes" if building a shared library automatically hardcodes DIR
21055 # into the library and all subsequent libraries and executables linked
21056 # against it.
21057 hardcode_automatic=$hardcode_automatic
21058
21059 # Set to yes if linker adds runtime paths of dependent libraries
21060 # to runtime path list.
21061 inherit_rpath=$inherit_rpath
21062
21063 # Whether libtool must link a program against all its dependency libraries.
21064 link_all_deplibs=$link_all_deplibs
21065
21066 # Set to "yes" if exported symbols are required.
21067 always_export_symbols=$always_export_symbols
21068
21069 # The commands to list exported symbols.
21070 export_symbols_cmds=$lt_export_symbols_cmds
21071
21072 # Symbols that should not be listed in the preloaded symbols.
21073 exclude_expsyms=$lt_exclude_expsyms
21074
21075 # Symbols that must always be exported.
21076 include_expsyms=$lt_include_expsyms
21077
21078 # Commands necessary for linking programs (against libraries) with templates.
21079 prelink_cmds=$lt_prelink_cmds
21080
21081 # Commands necessary for finishing linking programs.
21082 postlink_cmds=$lt_postlink_cmds
21083
21084 # Specify filename containing input files.
21085 file_list_spec=$lt_file_list_spec
21086
21087 # How to hardcode a shared library path into an executable.
21088 hardcode_action=$hardcode_action
21089
21090 # ### END LIBTOOL CONFIG
21091
21092 _LT_EOF
21093
21094 case $host_os in
21095 aix3*)
21096 cat <<\_LT_EOF >> "$cfgfile"
21097 # AIX sometimes has problems with the GCC collect2 program. For some
21098 # reason, if we set the COLLECT_NAMES environment variable, the problems
21099 # vanish in a puff of smoke.
21100 if test set != "${COLLECT_NAMES+set}"; then
21101 COLLECT_NAMES=
21102 export COLLECT_NAMES
21103 fi
21104 _LT_EOF
21105 ;;
21106 esac
21107
21108
21109 ltmain=$ac_aux_dir/ltmain.sh
21110
21111
21112 # We use sed instead of cat because bash on DJGPP gets confused if
21113 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21114 # text mode, it properly converts lines to CR/LF. This bash problem
21115 # is reportedly fixed, but why not run on old versions too?
21116 sed '$q' "$ltmain" >> "$cfgfile" \
21117 || (rm -f "$cfgfile"; exit 1)
21118
21119 mv -f "$cfgfile" "$ofile" ||
21120 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21121 chmod +x "$ofile"
21122
21123 ;;
21124
21125 esac
21126 done # for ac_tag
21127
21128
21129 as_fn_exit 0
21130 _ACEOF
21131 ac_clean_files=$ac_clean_files_save
21132
21133 test $ac_write_fail = 0 ||
21134 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21135
21136
21137 # configure is writing to config.log, and then calls config.status.
21138 # config.status does its own redirection, appending to config.log.
21139 # Unfortunately, on DOS this fails, as config.log is still kept open
21140 # by configure, so config.status won't be able to write to it; its
21141 # output is simply discarded. So we exec the FD to /dev/null,
21142 # effectively closing config.log, so it can be properly (re)opened and
21143 # appended to by config.status. When coming back to configure, we
21144 # need to make the FD available again.
21145 if test "$no_create" != yes; then
21146 ac_cs_success=:
21147 ac_config_status_args=
21148 test "$silent" = yes &&
21149 ac_config_status_args="$ac_config_status_args --quiet"
21150 exec 5>/dev/null
21151 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21152 exec 5>>config.log
21153 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21154 # would make configure fail if this is the last instruction.
21155 $ac_cs_success || as_fn_exit 1
21156 fi
21157 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21159 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21160 fi
21161
21162