configure revision 1.1.1.9 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for xf86-video-siliconmotion 1.7.9.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/siliconmotion>.
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&component=Driver/siliconmotion
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-siliconmotion'
593 PACKAGE_TARNAME='xf86-video-siliconmotion'
594 PACKAGE_VERSION='1.7.9'
595 PACKAGE_STRING='xf86-video-siliconmotion 1.7.9'
596 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/siliconmotion'
597 PACKAGE_URL=''
598
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 # include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 # include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
634
635 ac_unique_file="Makefile.am"
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 XMODES_FALSE
645 XMODES_TRUE
646 XSERVER_LIBPCIACCESS_FALSE
647 XSERVER_LIBPCIACCESS_TRUE
648 PCIACCESS_LIBS
649 PCIACCESS_CFLAGS
650 HAVE_XEXTPROTO_71_FALSE
651 HAVE_XEXTPROTO_71_TRUE
652 XEXT_LIBS
653 XEXT_CFLAGS
654 XORG_LIBS
655 XORG_CFLAGS
656 LT_SYS_LIBRARY_PATH
657 OTOOL64
658 OTOOL
659 LIPO
660 NMEDIT
661 DSYMUTIL
662 MANIFEST_TOOL
663 RANLIB
664 ac_ct_AR
665 AR
666 DLLTOOL
667 OBJDUMP
668 LN_S
669 NM
670 ac_ct_DUMPBIN
671 DUMPBIN
672 LD
673 FGREP
674 LIBTOOL
675 MAINT
676 MAINTAINER_MODE_FALSE
677 MAINTAINER_MODE_TRUE
678 am__fastdepCC_FALSE
679 am__fastdepCC_TRUE
680 CCDEPMODE
681 am__nodep
682 AMDEPBACKSLASH
683 AMDEP_FALSE
684 AMDEP_TRUE
685 am__quote
686 am__include
687 DEPDIR
688 am__untar
689 am__tar
690 AMTAR
691 am__leading_dot
692 SET_MAKE
693 AWK
694 mkdir_p
695 MKDIR_P
696 INSTALL_STRIP_PROGRAM
697 STRIP
698 install_sh
699 MAKEINFO
700 AUTOHEADER
701 AUTOMAKE
702 AUTOCONF
703 ACLOCAL
704 VERSION
705 PACKAGE
706 CYGPATH_W
707 am__isrc
708 AM_BACKSLASH
709 AM_DEFAULT_VERBOSITY
710 AM_DEFAULT_V
711 AM_V
712 MAN_SUBSTS
713 XORG_MAN_PAGE
714 ADMIN_MAN_DIR
715 DRIVER_MAN_DIR
716 MISC_MAN_DIR
717 FILE_MAN_DIR
718 LIB_MAN_DIR
719 APP_MAN_DIR
720 ADMIN_MAN_SUFFIX
721 DRIVER_MAN_SUFFIX
722 MISC_MAN_SUFFIX
723 FILE_MAN_SUFFIX
724 LIB_MAN_SUFFIX
725 APP_MAN_SUFFIX
726 SED
727 host_os
728 host_vendor
729 host_cpu
730 host
731 build_os
732 build_vendor
733 build_cpu
734 build
735 INSTALL_CMD
736 PKG_CONFIG_LIBDIR
737 PKG_CONFIG_PATH
738 PKG_CONFIG
739 CHANGELOG_CMD
740 STRICT_CFLAGS
741 CWARNFLAGS
742 BASE_CFLAGS
743 EGREP
744 GREP
745 CPP
746 OBJEXT
747 EXEEXT
748 ac_ct_CC
749 CPPFLAGS
750 LDFLAGS
751 CFLAGS
752 CC
753 INSTALL_DATA
754 INSTALL_SCRIPT
755 INSTALL_PROGRAM
756 target_alias
757 host_alias
758 build_alias
759 LIBS
760 ECHO_T
761 ECHO_N
762 ECHO_C
763 DEFS
764 mandir
765 localedir
766 libdir
767 psdir
768 pdfdir
769 dvidir
770 htmldir
771 infodir
772 docdir
773 oldincludedir
774 includedir
775 localstatedir
776 sharedstatedir
777 sysconfdir
778 datadir
779 datarootdir
780 libexecdir
781 sbindir
782 bindir
783 program_transform_name
784 prefix
785 exec_prefix
786 PACKAGE_URL
787 PACKAGE_BUGREPORT
788 PACKAGE_STRING
789 PACKAGE_VERSION
790 PACKAGE_TARNAME
791 PACKAGE_NAME
792 PATH_SEPARATOR
793 SHELL'
794 ac_subst_files=''
795 ac_user_opts='
796 enable_option_checking
797 enable_selective_werror
798 enable_strict_compilation
799 enable_silent_rules
800 enable_dependency_tracking
801 enable_maintainer_mode
802 enable_static
803 enable_shared
804 with_pic
805 enable_fast_install
806 with_aix_soname
807 with_gnu_ld
808 with_sysroot
809 enable_libtool_lock
810 with_xorg_module_dir
811 enable_xaa
812 '
813 ac_precious_vars='build_alias
814 host_alias
815 target_alias
816 CC
817 CFLAGS
818 LDFLAGS
819 LIBS
820 CPPFLAGS
821 CPP
822 PKG_CONFIG
823 PKG_CONFIG_PATH
824 PKG_CONFIG_LIBDIR
825 LT_SYS_LIBRARY_PATH
826 XORG_CFLAGS
827 XORG_LIBS
828 XEXT_CFLAGS
829 XEXT_LIBS
830 PCIACCESS_CFLAGS
831 PCIACCESS_LIBS'
832
833
834 # Initialize some variables set by options.
835 ac_init_help=
836 ac_init_version=false
837 ac_unrecognized_opts=
838 ac_unrecognized_sep=
839 # The variables have the same names as the options, with
840 # dashes changed to underlines.
841 cache_file=/dev/null
842 exec_prefix=NONE
843 no_create=
844 no_recursion=
845 prefix=NONE
846 program_prefix=NONE
847 program_suffix=NONE
848 program_transform_name=s,x,x,
849 silent=
850 site=
851 srcdir=
852 verbose=
853 x_includes=NONE
854 x_libraries=NONE
855
856 # Installation directory options.
857 # These are left unexpanded so users can "make install exec_prefix=/foo"
858 # and all the variables that are supposed to be based on exec_prefix
859 # by default will actually change.
860 # Use braces instead of parens because sh, perl, etc. also accept them.
861 # (The list follows the same order as the GNU Coding Standards.)
862 bindir='${exec_prefix}/bin'
863 sbindir='${exec_prefix}/sbin'
864 libexecdir='${exec_prefix}/libexec'
865 datarootdir='${prefix}/share'
866 datadir='${datarootdir}'
867 sysconfdir='${prefix}/etc'
868 sharedstatedir='${prefix}/com'
869 localstatedir='${prefix}/var'
870 includedir='${prefix}/include'
871 oldincludedir='/usr/include'
872 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
873 infodir='${datarootdir}/info'
874 htmldir='${docdir}'
875 dvidir='${docdir}'
876 pdfdir='${docdir}'
877 psdir='${docdir}'
878 libdir='${exec_prefix}/lib'
879 localedir='${datarootdir}/locale'
880 mandir='${datarootdir}/man'
881
882 ac_prev=
883 ac_dashdash=
884 for ac_option
885 do
886 # If the previous option needs an argument, assign it.
887 if test -n "$ac_prev"; then
888 eval $ac_prev=\$ac_option
889 ac_prev=
890 continue
891 fi
892
893 case $ac_option in
894 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
895 *=) ac_optarg= ;;
896 *) ac_optarg=yes ;;
897 esac
898
899 # Accept the important Cygnus configure options, so we can diagnose typos.
900
901 case $ac_dashdash$ac_option in
902 --)
903 ac_dashdash=yes ;;
904
905 -bindir | --bindir | --bindi | --bind | --bin | --bi)
906 ac_prev=bindir ;;
907 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
908 bindir=$ac_optarg ;;
909
910 -build | --build | --buil | --bui | --bu)
911 ac_prev=build_alias ;;
912 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
913 build_alias=$ac_optarg ;;
914
915 -cache-file | --cache-file | --cache-fil | --cache-fi \
916 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
917 ac_prev=cache_file ;;
918 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
919 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
920 cache_file=$ac_optarg ;;
921
922 --config-cache | -C)
923 cache_file=config.cache ;;
924
925 -datadir | --datadir | --datadi | --datad)
926 ac_prev=datadir ;;
927 -datadir=* | --datadir=* | --datadi=* | --datad=*)
928 datadir=$ac_optarg ;;
929
930 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
931 | --dataroo | --dataro | --datar)
932 ac_prev=datarootdir ;;
933 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
934 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
935 datarootdir=$ac_optarg ;;
936
937 -disable-* | --disable-*)
938 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
939 # Reject names that are not valid shell variable names.
940 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
941 as_fn_error $? "invalid feature name: $ac_useropt"
942 ac_useropt_orig=$ac_useropt
943 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
944 case $ac_user_opts in
945 *"
946 "enable_$ac_useropt"
947 "*) ;;
948 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
949 ac_unrecognized_sep=', ';;
950 esac
951 eval enable_$ac_useropt=no ;;
952
953 -docdir | --docdir | --docdi | --doc | --do)
954 ac_prev=docdir ;;
955 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
956 docdir=$ac_optarg ;;
957
958 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
959 ac_prev=dvidir ;;
960 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
961 dvidir=$ac_optarg ;;
962
963 -enable-* | --enable-*)
964 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
965 # Reject names that are not valid shell variable names.
966 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
967 as_fn_error $? "invalid feature name: $ac_useropt"
968 ac_useropt_orig=$ac_useropt
969 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
970 case $ac_user_opts in
971 *"
972 "enable_$ac_useropt"
973 "*) ;;
974 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
975 ac_unrecognized_sep=', ';;
976 esac
977 eval enable_$ac_useropt=\$ac_optarg ;;
978
979 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
980 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
981 | --exec | --exe | --ex)
982 ac_prev=exec_prefix ;;
983 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
984 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
985 | --exec=* | --exe=* | --ex=*)
986 exec_prefix=$ac_optarg ;;
987
988 -gas | --gas | --ga | --g)
989 # Obsolete; use --with-gas.
990 with_gas=yes ;;
991
992 -help | --help | --hel | --he | -h)
993 ac_init_help=long ;;
994 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
995 ac_init_help=recursive ;;
996 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
997 ac_init_help=short ;;
998
999 -host | --host | --hos | --ho)
1000 ac_prev=host_alias ;;
1001 -host=* | --host=* | --hos=* | --ho=*)
1002 host_alias=$ac_optarg ;;
1003
1004 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1005 ac_prev=htmldir ;;
1006 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1007 | --ht=*)
1008 htmldir=$ac_optarg ;;
1009
1010 -includedir | --includedir | --includedi | --included | --include \
1011 | --includ | --inclu | --incl | --inc)
1012 ac_prev=includedir ;;
1013 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1014 | --includ=* | --inclu=* | --incl=* | --inc=*)
1015 includedir=$ac_optarg ;;
1016
1017 -infodir | --infodir | --infodi | --infod | --info | --inf)
1018 ac_prev=infodir ;;
1019 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1020 infodir=$ac_optarg ;;
1021
1022 -libdir | --libdir | --libdi | --libd)
1023 ac_prev=libdir ;;
1024 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1025 libdir=$ac_optarg ;;
1026
1027 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1028 | --libexe | --libex | --libe)
1029 ac_prev=libexecdir ;;
1030 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1031 | --libexe=* | --libex=* | --libe=*)
1032 libexecdir=$ac_optarg ;;
1033
1034 -localedir | --localedir | --localedi | --localed | --locale)
1035 ac_prev=localedir ;;
1036 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1037 localedir=$ac_optarg ;;
1038
1039 -localstatedir | --localstatedir | --localstatedi | --localstated \
1040 | --localstate | --localstat | --localsta | --localst | --locals)
1041 ac_prev=localstatedir ;;
1042 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1043 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1044 localstatedir=$ac_optarg ;;
1045
1046 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1047 ac_prev=mandir ;;
1048 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1049 mandir=$ac_optarg ;;
1050
1051 -nfp | --nfp | --nf)
1052 # Obsolete; use --without-fp.
1053 with_fp=no ;;
1054
1055 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1056 | --no-cr | --no-c | -n)
1057 no_create=yes ;;
1058
1059 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1060 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1061 no_recursion=yes ;;
1062
1063 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1064 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1065 | --oldin | --oldi | --old | --ol | --o)
1066 ac_prev=oldincludedir ;;
1067 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1068 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1069 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1070 oldincludedir=$ac_optarg ;;
1071
1072 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1073 ac_prev=prefix ;;
1074 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1075 prefix=$ac_optarg ;;
1076
1077 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1078 | --program-pre | --program-pr | --program-p)
1079 ac_prev=program_prefix ;;
1080 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1081 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1082 program_prefix=$ac_optarg ;;
1083
1084 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1085 | --program-suf | --program-su | --program-s)
1086 ac_prev=program_suffix ;;
1087 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1088 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1089 program_suffix=$ac_optarg ;;
1090
1091 -program-transform-name | --program-transform-name \
1092 | --program-transform-nam | --program-transform-na \
1093 | --program-transform-n | --program-transform- \
1094 | --program-transform | --program-transfor \
1095 | --program-transfo | --program-transf \
1096 | --program-trans | --program-tran \
1097 | --progr-tra | --program-tr | --program-t)
1098 ac_prev=program_transform_name ;;
1099 -program-transform-name=* | --program-transform-name=* \
1100 | --program-transform-nam=* | --program-transform-na=* \
1101 | --program-transform-n=* | --program-transform-=* \
1102 | --program-transform=* | --program-transfor=* \
1103 | --program-transfo=* | --program-transf=* \
1104 | --program-trans=* | --program-tran=* \
1105 | --progr-tra=* | --program-tr=* | --program-t=*)
1106 program_transform_name=$ac_optarg ;;
1107
1108 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1109 ac_prev=pdfdir ;;
1110 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1111 pdfdir=$ac_optarg ;;
1112
1113 -psdir | --psdir | --psdi | --psd | --ps)
1114 ac_prev=psdir ;;
1115 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1116 psdir=$ac_optarg ;;
1117
1118 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1119 | -silent | --silent | --silen | --sile | --sil)
1120 silent=yes ;;
1121
1122 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1123 ac_prev=sbindir ;;
1124 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1125 | --sbi=* | --sb=*)
1126 sbindir=$ac_optarg ;;
1127
1128 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1129 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1130 | --sharedst | --shareds | --shared | --share | --shar \
1131 | --sha | --sh)
1132 ac_prev=sharedstatedir ;;
1133 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1134 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1135 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1136 | --sha=* | --sh=*)
1137 sharedstatedir=$ac_optarg ;;
1138
1139 -site | --site | --sit)
1140 ac_prev=site ;;
1141 -site=* | --site=* | --sit=*)
1142 site=$ac_optarg ;;
1143
1144 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1145 ac_prev=srcdir ;;
1146 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1147 srcdir=$ac_optarg ;;
1148
1149 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1150 | --syscon | --sysco | --sysc | --sys | --sy)
1151 ac_prev=sysconfdir ;;
1152 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1153 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1154 sysconfdir=$ac_optarg ;;
1155
1156 -target | --target | --targe | --targ | --tar | --ta | --t)
1157 ac_prev=target_alias ;;
1158 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1159 target_alias=$ac_optarg ;;
1160
1161 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1162 verbose=yes ;;
1163
1164 -version | --version | --versio | --versi | --vers | -V)
1165 ac_init_version=: ;;
1166
1167 -with-* | --with-*)
1168 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1169 # Reject names that are not valid shell variable names.
1170 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1171 as_fn_error $? "invalid package name: $ac_useropt"
1172 ac_useropt_orig=$ac_useropt
1173 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1174 case $ac_user_opts in
1175 *"
1176 "with_$ac_useropt"
1177 "*) ;;
1178 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1179 ac_unrecognized_sep=', ';;
1180 esac
1181 eval with_$ac_useropt=\$ac_optarg ;;
1182
1183 -without-* | --without-*)
1184 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1185 # Reject names that are not valid shell variable names.
1186 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1187 as_fn_error $? "invalid package name: $ac_useropt"
1188 ac_useropt_orig=$ac_useropt
1189 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1190 case $ac_user_opts in
1191 *"
1192 "with_$ac_useropt"
1193 "*) ;;
1194 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1195 ac_unrecognized_sep=', ';;
1196 esac
1197 eval with_$ac_useropt=no ;;
1198
1199 --x)
1200 # Obsolete; use --with-x.
1201 with_x=yes ;;
1202
1203 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1204 | --x-incl | --x-inc | --x-in | --x-i)
1205 ac_prev=x_includes ;;
1206 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1207 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1208 x_includes=$ac_optarg ;;
1209
1210 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1211 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1212 ac_prev=x_libraries ;;
1213 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1214 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1215 x_libraries=$ac_optarg ;;
1216
1217 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1218 Try \`$0 --help' for more information"
1219 ;;
1220
1221 *=*)
1222 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1223 # Reject names that are not valid shell variable names.
1224 case $ac_envvar in #(
1225 '' | [0-9]* | *[!_$as_cr_alnum]* )
1226 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1227 esac
1228 eval $ac_envvar=\$ac_optarg
1229 export $ac_envvar ;;
1230
1231 *)
1232 # FIXME: should be removed in autoconf 3.0.
1233 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1234 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1235 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1236 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1237 ;;
1238
1239 esac
1240 done
1241
1242 if test -n "$ac_prev"; then
1243 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1244 as_fn_error $? "missing argument to $ac_option"
1245 fi
1246
1247 if test -n "$ac_unrecognized_opts"; then
1248 case $enable_option_checking in
1249 no) ;;
1250 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1251 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1252 esac
1253 fi
1254
1255 # Check all directory arguments for consistency.
1256 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1257 datadir sysconfdir sharedstatedir localstatedir includedir \
1258 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1259 libdir localedir mandir
1260 do
1261 eval ac_val=\$$ac_var
1262 # Remove trailing slashes.
1263 case $ac_val in
1264 */ )
1265 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1266 eval $ac_var=\$ac_val;;
1267 esac
1268 # Be sure to have absolute directory names.
1269 case $ac_val in
1270 [\\/$]* | ?:[\\/]* ) continue;;
1271 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1272 esac
1273 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1274 done
1275
1276 # There might be people who depend on the old broken behavior: `$host'
1277 # used to hold the argument of --host etc.
1278 # FIXME: To remove some day.
1279 build=$build_alias
1280 host=$host_alias
1281 target=$target_alias
1282
1283 # FIXME: To remove some day.
1284 if test "x$host_alias" != x; then
1285 if test "x$build_alias" = x; then
1286 cross_compiling=maybe
1287 elif test "x$build_alias" != "x$host_alias"; then
1288 cross_compiling=yes
1289 fi
1290 fi
1291
1292 ac_tool_prefix=
1293 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1294
1295 test "$silent" = yes && exec 6>/dev/null
1296
1297
1298 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1299 ac_ls_di=`ls -di .` &&
1300 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1301 as_fn_error $? "working directory cannot be determined"
1302 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1303 as_fn_error $? "pwd does not report name of working directory"
1304
1305
1306 # Find the source files, if location was not specified.
1307 if test -z "$srcdir"; then
1308 ac_srcdir_defaulted=yes
1309 # Try the directory containing this script, then the parent directory.
1310 ac_confdir=`$as_dirname -- "$as_myself" ||
1311 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1312 X"$as_myself" : 'X\(//\)[^/]' \| \
1313 X"$as_myself" : 'X\(//\)$' \| \
1314 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1315 $as_echo X"$as_myself" |
1316 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1317 s//\1/
1318 q
1319 }
1320 /^X\(\/\/\)[^/].*/{
1321 s//\1/
1322 q
1323 }
1324 /^X\(\/\/\)$/{
1325 s//\1/
1326 q
1327 }
1328 /^X\(\/\).*/{
1329 s//\1/
1330 q
1331 }
1332 s/.*/./; q'`
1333 srcdir=$ac_confdir
1334 if test ! -r "$srcdir/$ac_unique_file"; then
1335 srcdir=..
1336 fi
1337 else
1338 ac_srcdir_defaulted=no
1339 fi
1340 if test ! -r "$srcdir/$ac_unique_file"; then
1341 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1342 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1343 fi
1344 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1345 ac_abs_confdir=`(
1346 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1347 pwd)`
1348 # When building in place, set srcdir=.
1349 if test "$ac_abs_confdir" = "$ac_pwd"; then
1350 srcdir=.
1351 fi
1352 # Remove unnecessary trailing slashes from srcdir.
1353 # Double slashes in file names in object file debugging info
1354 # mess up M-x gdb in Emacs.
1355 case $srcdir in
1356 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1357 esac
1358 for ac_var in $ac_precious_vars; do
1359 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1360 eval ac_env_${ac_var}_value=\$${ac_var}
1361 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1362 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1363 done
1364
1365 #
1366 # Report the --help message.
1367 #
1368 if test "$ac_init_help" = "long"; then
1369 # Omit some internal or obsolete options to make the list less imposing.
1370 # This message is too long to be a string in the A/UX 3.1 sh.
1371 cat <<_ACEOF
1372 \`configure' configures xf86-video-siliconmotion 1.7.9 to adapt to many kinds of systems.
1373
1374 Usage: $0 [OPTION]... [VAR=VALUE]...
1375
1376 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1377 VAR=VALUE. See below for descriptions of some of the useful variables.
1378
1379 Defaults for the options are specified in brackets.
1380
1381 Configuration:
1382 -h, --help display this help and exit
1383 --help=short display options specific to this package
1384 --help=recursive display the short help of all the included packages
1385 -V, --version display version information and exit
1386 -q, --quiet, --silent do not print \`checking ...' messages
1387 --cache-file=FILE cache test results in FILE [disabled]
1388 -C, --config-cache alias for \`--cache-file=config.cache'
1389 -n, --no-create do not create output files
1390 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1391
1392 Installation directories:
1393 --prefix=PREFIX install architecture-independent files in PREFIX
1394 [$ac_default_prefix]
1395 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1396 [PREFIX]
1397
1398 By default, \`make install' will install all the files in
1399 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1400 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1401 for instance \`--prefix=\$HOME'.
1402
1403 For better control, use the options below.
1404
1405 Fine tuning of the installation directories:
1406 --bindir=DIR user executables [EPREFIX/bin]
1407 --sbindir=DIR system admin executables [EPREFIX/sbin]
1408 --libexecdir=DIR program executables [EPREFIX/libexec]
1409 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1410 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1411 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1412 --libdir=DIR object code libraries [EPREFIX/lib]
1413 --includedir=DIR C header files [PREFIX/include]
1414 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1415 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1416 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1417 --infodir=DIR info documentation [DATAROOTDIR/info]
1418 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1419 --mandir=DIR man documentation [DATAROOTDIR/man]
1420 --docdir=DIR documentation root
1421 [DATAROOTDIR/doc/xf86-video-siliconmotion]
1422 --htmldir=DIR html documentation [DOCDIR]
1423 --dvidir=DIR dvi documentation [DOCDIR]
1424 --pdfdir=DIR pdf documentation [DOCDIR]
1425 --psdir=DIR ps documentation [DOCDIR]
1426 _ACEOF
1427
1428 cat <<\_ACEOF
1429
1430 Program names:
1431 --program-prefix=C prepend C to installed program names
1432 --program-suffix=SUFFIX append SUFFIX to installed program names
1433 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1434
1435 System types:
1436 --build=BUILD configure for building on BUILD [guessed]
1437 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1438 _ACEOF
1439 fi
1440
1441 if test -n "$ac_init_help"; then
1442 case $ac_init_help in
1443 short | recursive ) echo "Configuration of xf86-video-siliconmotion 1.7.9:";;
1444 esac
1445 cat <<\_ACEOF
1446
1447 Optional Features:
1448 --disable-option-checking ignore unrecognized --enable/--with options
1449 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1450 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1451 --disable-selective-werror
1452 Turn off selective compiler errors. (default:
1453 enabled)
1454 --enable-strict-compilation
1455 Enable all warnings from compiler and make them
1456 errors (default: disabled)
1457 --enable-silent-rules less verbose build output (undo: "make V=1")
1458 --disable-silent-rules verbose build output (undo: "make V=0")
1459 --enable-dependency-tracking
1460 do not reject slow dependency extractors
1461 --disable-dependency-tracking
1462 speeds up one-time build
1463 --enable-maintainer-mode
1464 enable make rules and dependencies not useful (and
1465 sometimes confusing) to the casual installer
1466 --enable-static[=PKGS] build static libraries [default=no]
1467 --enable-shared[=PKGS] build shared libraries [default=yes]
1468 --enable-fast-install[=PKGS]
1469 optimize for fast installation [default=yes]
1470 --disable-libtool-lock avoid locking (might break parallel builds)
1471 --enable-xaa Enable legacy X Acceleration Architecture (XAA)
1472 [default=auto]
1473
1474 Optional Packages:
1475 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1476 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1477 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1478 both]
1479 --with-aix-soname=aix|svr4|both
1480 shared library versioning (aka "SONAME") variant to
1481 provide on AIX, [default=aix].
1482 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1483 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1484 compiler's sysroot if not specified).
1485 --with-xorg-module-dir=DIR
1486 Default xorg module directory
1487 [[default=$libdir/xorg/modules]]
1488
1489 Some influential environment variables:
1490 CC C compiler command
1491 CFLAGS C compiler flags
1492 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1493 nonstandard directory <lib dir>
1494 LIBS libraries to pass to the linker, e.g. -l<library>
1495 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1496 you have headers in a nonstandard directory <include dir>
1497 CPP C preprocessor
1498 PKG_CONFIG path to pkg-config utility
1499 PKG_CONFIG_PATH
1500 directories to add to pkg-config's search path
1501 PKG_CONFIG_LIBDIR
1502 path overriding pkg-config's built-in search path
1503 LT_SYS_LIBRARY_PATH
1504 User-defined run-time library search path.
1505 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1506 XORG_LIBS linker flags for XORG, overriding pkg-config
1507 XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1508 XEXT_LIBS linker flags for XEXT, overriding pkg-config
1509 PCIACCESS_CFLAGS
1510 C compiler flags for PCIACCESS, overriding pkg-config
1511 PCIACCESS_LIBS
1512 linker flags for PCIACCESS, overriding pkg-config
1513
1514 Use these variables to override the choices made by `configure' or to help
1515 it to find libraries and programs with nonstandard names/locations.
1516
1517 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/siliconmotion>.
1518 _ACEOF
1519 ac_status=$?
1520 fi
1521
1522 if test "$ac_init_help" = "recursive"; then
1523 # If there are subdirs, report their specific --help.
1524 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1525 test -d "$ac_dir" ||
1526 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1527 continue
1528 ac_builddir=.
1529
1530 case "$ac_dir" in
1531 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1532 *)
1533 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1534 # A ".." for each directory in $ac_dir_suffix.
1535 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1536 case $ac_top_builddir_sub in
1537 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1538 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1539 esac ;;
1540 esac
1541 ac_abs_top_builddir=$ac_pwd
1542 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1543 # for backward compatibility:
1544 ac_top_builddir=$ac_top_build_prefix
1545
1546 case $srcdir in
1547 .) # We are building in place.
1548 ac_srcdir=.
1549 ac_top_srcdir=$ac_top_builddir_sub
1550 ac_abs_top_srcdir=$ac_pwd ;;
1551 [\\/]* | ?:[\\/]* ) # Absolute name.
1552 ac_srcdir=$srcdir$ac_dir_suffix;
1553 ac_top_srcdir=$srcdir
1554 ac_abs_top_srcdir=$srcdir ;;
1555 *) # Relative name.
1556 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1557 ac_top_srcdir=$ac_top_build_prefix$srcdir
1558 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1559 esac
1560 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1561
1562 cd "$ac_dir" || { ac_status=$?; continue; }
1563 # Check for guested configure.
1564 if test -f "$ac_srcdir/configure.gnu"; then
1565 echo &&
1566 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1567 elif test -f "$ac_srcdir/configure"; then
1568 echo &&
1569 $SHELL "$ac_srcdir/configure" --help=recursive
1570 else
1571 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1572 fi || ac_status=$?
1573 cd "$ac_pwd" || { ac_status=$?; break; }
1574 done
1575 fi
1576
1577 test -n "$ac_init_help" && exit $ac_status
1578 if $ac_init_version; then
1579 cat <<\_ACEOF
1580 xf86-video-siliconmotion configure 1.7.9
1581 generated by GNU Autoconf 2.69
1582
1583 Copyright (C) 2012 Free Software Foundation, Inc.
1584 This configure script is free software; the Free Software Foundation
1585 gives unlimited permission to copy, distribute and modify it.
1586 _ACEOF
1587 exit
1588 fi
1589
1590 ## ------------------------ ##
1591 ## Autoconf initialization. ##
1592 ## ------------------------ ##
1593
1594 # ac_fn_c_try_compile LINENO
1595 # --------------------------
1596 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1597 ac_fn_c_try_compile ()
1598 {
1599 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1600 rm -f conftest.$ac_objext
1601 if { { ac_try="$ac_compile"
1602 case "(($ac_try" in
1603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1604 *) ac_try_echo=$ac_try;;
1605 esac
1606 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1607 $as_echo "$ac_try_echo"; } >&5
1608 (eval "$ac_compile") 2>conftest.err
1609 ac_status=$?
1610 if test -s conftest.err; then
1611 grep -v '^ *+' conftest.err >conftest.er1
1612 cat conftest.er1 >&5
1613 mv -f conftest.er1 conftest.err
1614 fi
1615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1616 test $ac_status = 0; } && {
1617 test -z "$ac_c_werror_flag" ||
1618 test ! -s conftest.err
1619 } && test -s conftest.$ac_objext; then :
1620 ac_retval=0
1621 else
1622 $as_echo "$as_me: failed program was:" >&5
1623 sed 's/^/| /' conftest.$ac_ext >&5
1624
1625 ac_retval=1
1626 fi
1627 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1628 as_fn_set_status $ac_retval
1629
1630 } # ac_fn_c_try_compile
1631
1632 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1633 # ---------------------------------------------
1634 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1635 # accordingly.
1636 ac_fn_c_check_decl ()
1637 {
1638 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1639 as_decl_name=`echo $2|sed 's/ *(.*//'`
1640 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1642 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1643 if eval \${$3+:} false; then :
1644 $as_echo_n "(cached) " >&6
1645 else
1646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1647 /* end confdefs.h. */
1648 $4
1649 int
1650 main ()
1651 {
1652 #ifndef $as_decl_name
1653 #ifdef __cplusplus
1654 (void) $as_decl_use;
1655 #else
1656 (void) $as_decl_name;
1657 #endif
1658 #endif
1659
1660 ;
1661 return 0;
1662 }
1663 _ACEOF
1664 if ac_fn_c_try_compile "$LINENO"; then :
1665 eval "$3=yes"
1666 else
1667 eval "$3=no"
1668 fi
1669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1670 fi
1671 eval ac_res=\$$3
1672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1673 $as_echo "$ac_res" >&6; }
1674 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1675
1676 } # ac_fn_c_check_decl
1677
1678 # ac_fn_c_try_cpp LINENO
1679 # ----------------------
1680 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1681 ac_fn_c_try_cpp ()
1682 {
1683 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1684 if { { ac_try="$ac_cpp conftest.$ac_ext"
1685 case "(($ac_try" in
1686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1687 *) ac_try_echo=$ac_try;;
1688 esac
1689 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1690 $as_echo "$ac_try_echo"; } >&5
1691 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1692 ac_status=$?
1693 if test -s conftest.err; then
1694 grep -v '^ *+' conftest.err >conftest.er1
1695 cat conftest.er1 >&5
1696 mv -f conftest.er1 conftest.err
1697 fi
1698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1699 test $ac_status = 0; } > conftest.i && {
1700 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1701 test ! -s conftest.err
1702 }; then :
1703 ac_retval=0
1704 else
1705 $as_echo "$as_me: failed program was:" >&5
1706 sed 's/^/| /' conftest.$ac_ext >&5
1707
1708 ac_retval=1
1709 fi
1710 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1711 as_fn_set_status $ac_retval
1712
1713 } # ac_fn_c_try_cpp
1714
1715 # ac_fn_c_try_run LINENO
1716 # ----------------------
1717 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1718 # that executables *can* be run.
1719 ac_fn_c_try_run ()
1720 {
1721 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1722 if { { ac_try="$ac_link"
1723 case "(($ac_try" in
1724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1725 *) ac_try_echo=$ac_try;;
1726 esac
1727 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1728 $as_echo "$ac_try_echo"; } >&5
1729 (eval "$ac_link") 2>&5
1730 ac_status=$?
1731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1732 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1733 { { case "(($ac_try" in
1734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1735 *) ac_try_echo=$ac_try;;
1736 esac
1737 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1738 $as_echo "$ac_try_echo"; } >&5
1739 (eval "$ac_try") 2>&5
1740 ac_status=$?
1741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1742 test $ac_status = 0; }; }; then :
1743 ac_retval=0
1744 else
1745 $as_echo "$as_me: program exited with status $ac_status" >&5
1746 $as_echo "$as_me: failed program was:" >&5
1747 sed 's/^/| /' conftest.$ac_ext >&5
1748
1749 ac_retval=$ac_status
1750 fi
1751 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1752 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1753 as_fn_set_status $ac_retval
1754
1755 } # ac_fn_c_try_run
1756
1757 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1758 # -------------------------------------------------------
1759 # Tests whether HEADER exists and can be compiled using the include files in
1760 # INCLUDES, setting the cache variable VAR accordingly.
1761 ac_fn_c_check_header_compile ()
1762 {
1763 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1765 $as_echo_n "checking for $2... " >&6; }
1766 if eval \${$3+:} false; then :
1767 $as_echo_n "(cached) " >&6
1768 else
1769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1770 /* end confdefs.h. */
1771 $4
1772 #include <$2>
1773 _ACEOF
1774 if ac_fn_c_try_compile "$LINENO"; then :
1775 eval "$3=yes"
1776 else
1777 eval "$3=no"
1778 fi
1779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1780 fi
1781 eval ac_res=\$$3
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1783 $as_echo "$ac_res" >&6; }
1784 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1785
1786 } # ac_fn_c_check_header_compile
1787
1788 # ac_fn_c_try_link LINENO
1789 # -----------------------
1790 # Try to link conftest.$ac_ext, and return whether this succeeded.
1791 ac_fn_c_try_link ()
1792 {
1793 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1794 rm -f conftest.$ac_objext conftest$ac_exeext
1795 if { { ac_try="$ac_link"
1796 case "(($ac_try" in
1797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1798 *) ac_try_echo=$ac_try;;
1799 esac
1800 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1801 $as_echo "$ac_try_echo"; } >&5
1802 (eval "$ac_link") 2>conftest.err
1803 ac_status=$?
1804 if test -s conftest.err; then
1805 grep -v '^ *+' conftest.err >conftest.er1
1806 cat conftest.er1 >&5
1807 mv -f conftest.er1 conftest.err
1808 fi
1809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1810 test $ac_status = 0; } && {
1811 test -z "$ac_c_werror_flag" ||
1812 test ! -s conftest.err
1813 } && test -s conftest$ac_exeext && {
1814 test "$cross_compiling" = yes ||
1815 test -x conftest$ac_exeext
1816 }; then :
1817 ac_retval=0
1818 else
1819 $as_echo "$as_me: failed program was:" >&5
1820 sed 's/^/| /' conftest.$ac_ext >&5
1821
1822 ac_retval=1
1823 fi
1824 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1825 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1826 # interfere with the next link command; also delete a directory that is
1827 # left behind by Apple's compiler. We do this before executing the actions.
1828 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1829 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1830 as_fn_set_status $ac_retval
1831
1832 } # ac_fn_c_try_link
1833
1834 # ac_fn_c_check_func LINENO FUNC VAR
1835 # ----------------------------------
1836 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1837 ac_fn_c_check_func ()
1838 {
1839 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1841 $as_echo_n "checking for $2... " >&6; }
1842 if eval \${$3+:} false; then :
1843 $as_echo_n "(cached) " >&6
1844 else
1845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1846 /* end confdefs.h. */
1847 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1848 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1849 #define $2 innocuous_$2
1850
1851 /* System header to define __stub macros and hopefully few prototypes,
1852 which can conflict with char $2 (); below.
1853 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1854 <limits.h> exists even on freestanding compilers. */
1855
1856 #ifdef __STDC__
1857 # include <limits.h>
1858 #else
1859 # include <assert.h>
1860 #endif
1861
1862 #undef $2
1863
1864 /* Override any GCC internal prototype to avoid an error.
1865 Use char because int might match the return type of a GCC
1866 builtin and then its argument prototype would still apply. */
1867 #ifdef __cplusplus
1868 extern "C"
1869 #endif
1870 char $2 ();
1871 /* The GNU C library defines this for functions which it implements
1872 to always fail with ENOSYS. Some functions are actually named
1873 something starting with __ and the normal name is an alias. */
1874 #if defined __stub_$2 || defined __stub___$2
1875 choke me
1876 #endif
1877
1878 int
1879 main ()
1880 {
1881 return $2 ();
1882 ;
1883 return 0;
1884 }
1885 _ACEOF
1886 if ac_fn_c_try_link "$LINENO"; then :
1887 eval "$3=yes"
1888 else
1889 eval "$3=no"
1890 fi
1891 rm -f core conftest.err conftest.$ac_objext \
1892 conftest$ac_exeext conftest.$ac_ext
1893 fi
1894 eval ac_res=\$$3
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1896 $as_echo "$ac_res" >&6; }
1897 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1898
1899 } # ac_fn_c_check_func
1900
1901 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1902 # -------------------------------------------------------
1903 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1904 # the include files in INCLUDES and setting the cache variable VAR
1905 # accordingly.
1906 ac_fn_c_check_header_mongrel ()
1907 {
1908 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1909 if eval \${$3+:} false; then :
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1911 $as_echo_n "checking for $2... " >&6; }
1912 if eval \${$3+:} false; then :
1913 $as_echo_n "(cached) " >&6
1914 fi
1915 eval ac_res=\$$3
1916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1917 $as_echo "$ac_res" >&6; }
1918 else
1919 # Is the header compilable?
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1921 $as_echo_n "checking $2 usability... " >&6; }
1922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1923 /* end confdefs.h. */
1924 $4
1925 #include <$2>
1926 _ACEOF
1927 if ac_fn_c_try_compile "$LINENO"; then :
1928 ac_header_compiler=yes
1929 else
1930 ac_header_compiler=no
1931 fi
1932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1934 $as_echo "$ac_header_compiler" >&6; }
1935
1936 # Is the header present?
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1938 $as_echo_n "checking $2 presence... " >&6; }
1939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1940 /* end confdefs.h. */
1941 #include <$2>
1942 _ACEOF
1943 if ac_fn_c_try_cpp "$LINENO"; then :
1944 ac_header_preproc=yes
1945 else
1946 ac_header_preproc=no
1947 fi
1948 rm -f conftest.err conftest.i conftest.$ac_ext
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1950 $as_echo "$ac_header_preproc" >&6; }
1951
1952 # So? What about this header?
1953 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1954 yes:no: )
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1956 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1958 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1959 ;;
1960 no:yes:* )
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1962 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1964 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1966 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1968 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1970 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1971 ( $as_echo "## ----------------------------------------------------------------------------------------------------- ##
1972 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/siliconmotion ##
1973 ## ----------------------------------------------------------------------------------------------------- ##"
1974 ) | sed "s/^/$as_me: WARNING: /" >&2
1975 ;;
1976 esac
1977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1978 $as_echo_n "checking for $2... " >&6; }
1979 if eval \${$3+:} false; then :
1980 $as_echo_n "(cached) " >&6
1981 else
1982 eval "$3=\$ac_header_compiler"
1983 fi
1984 eval ac_res=\$$3
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1986 $as_echo "$ac_res" >&6; }
1987 fi
1988 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1989
1990 } # ac_fn_c_check_header_mongrel
1991 cat >config.log <<_ACEOF
1992 This file contains any messages produced by compilers while
1993 running configure, to aid debugging if configure makes a mistake.
1994
1995 It was created by xf86-video-siliconmotion $as_me 1.7.9, which was
1996 generated by GNU Autoconf 2.69. Invocation command line was
1997
1998 $ $0 $@
1999
2000 _ACEOF
2001 exec 5>>config.log
2002 {
2003 cat <<_ASUNAME
2004 ## --------- ##
2005 ## Platform. ##
2006 ## --------- ##
2007
2008 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2009 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2010 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2011 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2012 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2013
2014 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2015 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2016
2017 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2018 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2019 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2020 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2021 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2022 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2023 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2024
2025 _ASUNAME
2026
2027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2028 for as_dir in $PATH
2029 do
2030 IFS=$as_save_IFS
2031 test -z "$as_dir" && as_dir=.
2032 $as_echo "PATH: $as_dir"
2033 done
2034 IFS=$as_save_IFS
2035
2036 } >&5
2037
2038 cat >&5 <<_ACEOF
2039
2040
2041 ## ----------- ##
2042 ## Core tests. ##
2043 ## ----------- ##
2044
2045 _ACEOF
2046
2047
2048 # Keep a trace of the command line.
2049 # Strip out --no-create and --no-recursion so they do not pile up.
2050 # Strip out --silent because we don't want to record it for future runs.
2051 # Also quote any args containing shell meta-characters.
2052 # Make two passes to allow for proper duplicate-argument suppression.
2053 ac_configure_args=
2054 ac_configure_args0=
2055 ac_configure_args1=
2056 ac_must_keep_next=false
2057 for ac_pass in 1 2
2058 do
2059 for ac_arg
2060 do
2061 case $ac_arg in
2062 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2063 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2064 | -silent | --silent | --silen | --sile | --sil)
2065 continue ;;
2066 *\'*)
2067 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2068 esac
2069 case $ac_pass in
2070 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2071 2)
2072 as_fn_append ac_configure_args1 " '$ac_arg'"
2073 if test $ac_must_keep_next = true; then
2074 ac_must_keep_next=false # Got value, back to normal.
2075 else
2076 case $ac_arg in
2077 *=* | --config-cache | -C | -disable-* | --disable-* \
2078 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2079 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2080 | -with-* | --with-* | -without-* | --without-* | --x)
2081 case "$ac_configure_args0 " in
2082 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2083 esac
2084 ;;
2085 -* ) ac_must_keep_next=true ;;
2086 esac
2087 fi
2088 as_fn_append ac_configure_args " '$ac_arg'"
2089 ;;
2090 esac
2091 done
2092 done
2093 { ac_configure_args0=; unset ac_configure_args0;}
2094 { ac_configure_args1=; unset ac_configure_args1;}
2095
2096 # When interrupted or exit'd, cleanup temporary files, and complete
2097 # config.log. We remove comments because anyway the quotes in there
2098 # would cause problems or look ugly.
2099 # WARNING: Use '\'' to represent an apostrophe within the trap.
2100 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2101 trap 'exit_status=$?
2102 # Save into config.log some information that might help in debugging.
2103 {
2104 echo
2105
2106 $as_echo "## ---------------- ##
2107 ## Cache variables. ##
2108 ## ---------------- ##"
2109 echo
2110 # The following way of writing the cache mishandles newlines in values,
2111 (
2112 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2113 eval ac_val=\$$ac_var
2114 case $ac_val in #(
2115 *${as_nl}*)
2116 case $ac_var in #(
2117 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2118 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2119 esac
2120 case $ac_var in #(
2121 _ | IFS | as_nl) ;; #(
2122 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2123 *) { eval $ac_var=; unset $ac_var;} ;;
2124 esac ;;
2125 esac
2126 done
2127 (set) 2>&1 |
2128 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2129 *${as_nl}ac_space=\ *)
2130 sed -n \
2131 "s/'\''/'\''\\\\'\'''\''/g;
2132 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2133 ;; #(
2134 *)
2135 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2136 ;;
2137 esac |
2138 sort
2139 )
2140 echo
2141
2142 $as_echo "## ----------------- ##
2143 ## Output variables. ##
2144 ## ----------------- ##"
2145 echo
2146 for ac_var in $ac_subst_vars
2147 do
2148 eval ac_val=\$$ac_var
2149 case $ac_val in
2150 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2151 esac
2152 $as_echo "$ac_var='\''$ac_val'\''"
2153 done | sort
2154 echo
2155
2156 if test -n "$ac_subst_files"; then
2157 $as_echo "## ------------------- ##
2158 ## File substitutions. ##
2159 ## ------------------- ##"
2160 echo
2161 for ac_var in $ac_subst_files
2162 do
2163 eval ac_val=\$$ac_var
2164 case $ac_val in
2165 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2166 esac
2167 $as_echo "$ac_var='\''$ac_val'\''"
2168 done | sort
2169 echo
2170 fi
2171
2172 if test -s confdefs.h; then
2173 $as_echo "## ----------- ##
2174 ## confdefs.h. ##
2175 ## ----------- ##"
2176 echo
2177 cat confdefs.h
2178 echo
2179 fi
2180 test "$ac_signal" != 0 &&
2181 $as_echo "$as_me: caught signal $ac_signal"
2182 $as_echo "$as_me: exit $exit_status"
2183 } >&5
2184 rm -f core *.core core.conftest.* &&
2185 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2186 exit $exit_status
2187 ' 0
2188 for ac_signal in 1 2 13 15; do
2189 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2190 done
2191 ac_signal=0
2192
2193 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2194 rm -f -r conftest* confdefs.h
2195
2196 $as_echo "/* confdefs.h */" > confdefs.h
2197
2198 # Predefined preprocessor variables.
2199
2200 cat >>confdefs.h <<_ACEOF
2201 #define PACKAGE_NAME "$PACKAGE_NAME"
2202 _ACEOF
2203
2204 cat >>confdefs.h <<_ACEOF
2205 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2206 _ACEOF
2207
2208 cat >>confdefs.h <<_ACEOF
2209 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2210 _ACEOF
2211
2212 cat >>confdefs.h <<_ACEOF
2213 #define PACKAGE_STRING "$PACKAGE_STRING"
2214 _ACEOF
2215
2216 cat >>confdefs.h <<_ACEOF
2217 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2218 _ACEOF
2219
2220 cat >>confdefs.h <<_ACEOF
2221 #define PACKAGE_URL "$PACKAGE_URL"
2222 _ACEOF
2223
2224
2225 # Let the site file select an alternate cache file if it wants to.
2226 # Prefer an explicitly selected file to automatically selected ones.
2227 ac_site_file1=NONE
2228 ac_site_file2=NONE
2229 if test -n "$CONFIG_SITE"; then
2230 # We do not want a PATH search for config.site.
2231 case $CONFIG_SITE in #((
2232 -*) ac_site_file1=./$CONFIG_SITE;;
2233 */*) ac_site_file1=$CONFIG_SITE;;
2234 *) ac_site_file1=./$CONFIG_SITE;;
2235 esac
2236 elif test "x$prefix" != xNONE; then
2237 ac_site_file1=$prefix/share/config.site
2238 ac_site_file2=$prefix/etc/config.site
2239 else
2240 ac_site_file1=$ac_default_prefix/share/config.site
2241 ac_site_file2=$ac_default_prefix/etc/config.site
2242 fi
2243 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2244 do
2245 test "x$ac_site_file" = xNONE && continue
2246 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2248 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2249 sed 's/^/| /' "$ac_site_file" >&5
2250 . "$ac_site_file" \
2251 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2252 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2253 as_fn_error $? "failed to load site script $ac_site_file
2254 See \`config.log' for more details" "$LINENO" 5; }
2255 fi
2256 done
2257
2258 if test -r "$cache_file"; then
2259 # Some versions of bash will fail to source /dev/null (special files
2260 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2261 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2263 $as_echo "$as_me: loading cache $cache_file" >&6;}
2264 case $cache_file in
2265 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2266 *) . "./$cache_file";;
2267 esac
2268 fi
2269 else
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2271 $as_echo "$as_me: creating cache $cache_file" >&6;}
2272 >$cache_file
2273 fi
2274
2275 # Check that the precious variables saved in the cache have kept the same
2276 # value.
2277 ac_cache_corrupted=false
2278 for ac_var in $ac_precious_vars; do
2279 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2280 eval ac_new_set=\$ac_env_${ac_var}_set
2281 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2282 eval ac_new_val=\$ac_env_${ac_var}_value
2283 case $ac_old_set,$ac_new_set in
2284 set,)
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2286 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2287 ac_cache_corrupted=: ;;
2288 ,set)
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2290 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2291 ac_cache_corrupted=: ;;
2292 ,);;
2293 *)
2294 if test "x$ac_old_val" != "x$ac_new_val"; then
2295 # differences in whitespace do not lead to failure.
2296 ac_old_val_w=`echo x $ac_old_val`
2297 ac_new_val_w=`echo x $ac_new_val`
2298 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2300 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2301 ac_cache_corrupted=:
2302 else
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2304 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2305 eval $ac_var=\$ac_old_val
2306 fi
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2308 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2310 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2311 fi;;
2312 esac
2313 # Pass precious variables to config.status.
2314 if test "$ac_new_set" = set; then
2315 case $ac_new_val in
2316 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2317 *) ac_arg=$ac_var=$ac_new_val ;;
2318 esac
2319 case " $ac_configure_args " in
2320 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2321 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2322 esac
2323 fi
2324 done
2325 if $ac_cache_corrupted; then
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2327 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2329 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2330 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2331 fi
2332 ## -------------------- ##
2333 ## Main body of script. ##
2334 ## -------------------- ##
2335
2336 ac_ext=c
2337 ac_cpp='$CPP $CPPFLAGS'
2338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2341
2342
2343
2344 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356 ac_aux_dir=
2357 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2358 if test -f "$ac_dir/install-sh"; then
2359 ac_aux_dir=$ac_dir
2360 ac_install_sh="$ac_aux_dir/install-sh -c"
2361 break
2362 elif test -f "$ac_dir/install.sh"; then
2363 ac_aux_dir=$ac_dir
2364 ac_install_sh="$ac_aux_dir/install.sh -c"
2365 break
2366 elif test -f "$ac_dir/shtool"; then
2367 ac_aux_dir=$ac_dir
2368 ac_install_sh="$ac_aux_dir/shtool install -c"
2369 break
2370 fi
2371 done
2372 if test -z "$ac_aux_dir"; then
2373 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2374 fi
2375
2376 # These three variables are undocumented and unsupported,
2377 # and are intended to be withdrawn in a future Autoconf release.
2378 # They can cause serious problems if a builder's source tree is in a directory
2379 # whose full name contains unusual characters.
2380 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2381 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2382 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2383
2384
2385 # Find a good install program. We prefer a C program (faster),
2386 # so one script is as good as another. But avoid the broken or
2387 # incompatible versions:
2388 # SysV /etc/install, /usr/sbin/install
2389 # SunOS /usr/etc/install
2390 # IRIX /sbin/install
2391 # AIX /bin/install
2392 # AmigaOS /C/install, which installs bootblocks on floppy discs
2393 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2394 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2395 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2396 # OS/2's system install, which has a completely different semantic
2397 # ./install, which can be erroneously created by make from ./install.sh.
2398 # Reject install programs that cannot install multiple files.
2399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2400 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2401 if test -z "$INSTALL"; then
2402 if ${ac_cv_path_install+:} false; then :
2403 $as_echo_n "(cached) " >&6
2404 else
2405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2406 for as_dir in $PATH
2407 do
2408 IFS=$as_save_IFS
2409 test -z "$as_dir" && as_dir=.
2410 # Account for people who put trailing slashes in PATH elements.
2411 case $as_dir/ in #((
2412 ./ | .// | /[cC]/* | \
2413 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2414 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2415 /usr/ucb/* ) ;;
2416 *)
2417 # OSF1 and SCO ODT 3.0 have their own names for install.
2418 # Don't use installbsd from OSF since it installs stuff as root
2419 # by default.
2420 for ac_prog in ginstall scoinst install; do
2421 for ac_exec_ext in '' $ac_executable_extensions; do
2422 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2423 if test $ac_prog = install &&
2424 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2425 # AIX install. It has an incompatible calling convention.
2426 :
2427 elif test $ac_prog = install &&
2428 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2429 # program-specific install script used by HP pwplus--don't use.
2430 :
2431 else
2432 rm -rf conftest.one conftest.two conftest.dir
2433 echo one > conftest.one
2434 echo two > conftest.two
2435 mkdir conftest.dir
2436 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2437 test -s conftest.one && test -s conftest.two &&
2438 test -s conftest.dir/conftest.one &&
2439 test -s conftest.dir/conftest.two
2440 then
2441 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2442 break 3
2443 fi
2444 fi
2445 fi
2446 done
2447 done
2448 ;;
2449 esac
2450
2451 done
2452 IFS=$as_save_IFS
2453
2454 rm -rf conftest.one conftest.two conftest.dir
2455
2456 fi
2457 if test "${ac_cv_path_install+set}" = set; then
2458 INSTALL=$ac_cv_path_install
2459 else
2460 # As a last resort, use the slow shell script. Don't cache a
2461 # value for INSTALL within a source directory, because that will
2462 # break other packages using the cache if that directory is
2463 # removed, or if the value is a relative name.
2464 INSTALL=$ac_install_sh
2465 fi
2466 fi
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2468 $as_echo "$INSTALL" >&6; }
2469
2470 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2471 # It thinks the first close brace ends the variable substitution.
2472 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2473
2474 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2475
2476 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2477
2478 # Expand $ac_aux_dir to an absolute path.
2479 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2480
2481 ac_ext=c
2482 ac_cpp='$CPP $CPPFLAGS'
2483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2486 if test -n "$ac_tool_prefix"; then
2487 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2488 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2490 $as_echo_n "checking for $ac_word... " >&6; }
2491 if ${ac_cv_prog_CC+:} false; then :
2492 $as_echo_n "(cached) " >&6
2493 else
2494 if test -n "$CC"; then
2495 ac_cv_prog_CC="$CC" # Let the user override the test.
2496 else
2497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2498 for as_dir in $PATH
2499 do
2500 IFS=$as_save_IFS
2501 test -z "$as_dir" && as_dir=.
2502 for ac_exec_ext in '' $ac_executable_extensions; do
2503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2504 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2506 break 2
2507 fi
2508 done
2509 done
2510 IFS=$as_save_IFS
2511
2512 fi
2513 fi
2514 CC=$ac_cv_prog_CC
2515 if test -n "$CC"; then
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2517 $as_echo "$CC" >&6; }
2518 else
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2520 $as_echo "no" >&6; }
2521 fi
2522
2523
2524 fi
2525 if test -z "$ac_cv_prog_CC"; then
2526 ac_ct_CC=$CC
2527 # Extract the first word of "gcc", so it can be a program name with args.
2528 set dummy gcc; ac_word=$2
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2530 $as_echo_n "checking for $ac_word... " >&6; }
2531 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2532 $as_echo_n "(cached) " >&6
2533 else
2534 if test -n "$ac_ct_CC"; then
2535 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2536 else
2537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2538 for as_dir in $PATH
2539 do
2540 IFS=$as_save_IFS
2541 test -z "$as_dir" && as_dir=.
2542 for ac_exec_ext in '' $ac_executable_extensions; do
2543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2544 ac_cv_prog_ac_ct_CC="gcc"
2545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2546 break 2
2547 fi
2548 done
2549 done
2550 IFS=$as_save_IFS
2551
2552 fi
2553 fi
2554 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2555 if test -n "$ac_ct_CC"; then
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2557 $as_echo "$ac_ct_CC" >&6; }
2558 else
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2560 $as_echo "no" >&6; }
2561 fi
2562
2563 if test "x$ac_ct_CC" = x; then
2564 CC=""
2565 else
2566 case $cross_compiling:$ac_tool_warned in
2567 yes:)
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2569 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2570 ac_tool_warned=yes ;;
2571 esac
2572 CC=$ac_ct_CC
2573 fi
2574 else
2575 CC="$ac_cv_prog_CC"
2576 fi
2577
2578 if test -z "$CC"; then
2579 if test -n "$ac_tool_prefix"; then
2580 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2581 set dummy ${ac_tool_prefix}cc; ac_word=$2
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2583 $as_echo_n "checking for $ac_word... " >&6; }
2584 if ${ac_cv_prog_CC+:} false; then :
2585 $as_echo_n "(cached) " >&6
2586 else
2587 if test -n "$CC"; then
2588 ac_cv_prog_CC="$CC" # Let the user override the test.
2589 else
2590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2591 for as_dir in $PATH
2592 do
2593 IFS=$as_save_IFS
2594 test -z "$as_dir" && as_dir=.
2595 for ac_exec_ext in '' $ac_executable_extensions; do
2596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2597 ac_cv_prog_CC="${ac_tool_prefix}cc"
2598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2599 break 2
2600 fi
2601 done
2602 done
2603 IFS=$as_save_IFS
2604
2605 fi
2606 fi
2607 CC=$ac_cv_prog_CC
2608 if test -n "$CC"; then
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2610 $as_echo "$CC" >&6; }
2611 else
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2613 $as_echo "no" >&6; }
2614 fi
2615
2616
2617 fi
2618 fi
2619 if test -z "$CC"; then
2620 # Extract the first word of "cc", so it can be a program name with args.
2621 set dummy cc; ac_word=$2
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2623 $as_echo_n "checking for $ac_word... " >&6; }
2624 if ${ac_cv_prog_CC+:} false; then :
2625 $as_echo_n "(cached) " >&6
2626 else
2627 if test -n "$CC"; then
2628 ac_cv_prog_CC="$CC" # Let the user override the test.
2629 else
2630 ac_prog_rejected=no
2631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2632 for as_dir in $PATH
2633 do
2634 IFS=$as_save_IFS
2635 test -z "$as_dir" && as_dir=.
2636 for ac_exec_ext in '' $ac_executable_extensions; do
2637 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2638 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2639 ac_prog_rejected=yes
2640 continue
2641 fi
2642 ac_cv_prog_CC="cc"
2643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2644 break 2
2645 fi
2646 done
2647 done
2648 IFS=$as_save_IFS
2649
2650 if test $ac_prog_rejected = yes; then
2651 # We found a bogon in the path, so make sure we never use it.
2652 set dummy $ac_cv_prog_CC
2653 shift
2654 if test $# != 0; then
2655 # We chose a different compiler from the bogus one.
2656 # However, it has the same basename, so the bogon will be chosen
2657 # first if we set CC to just the basename; use the full file name.
2658 shift
2659 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2660 fi
2661 fi
2662 fi
2663 fi
2664 CC=$ac_cv_prog_CC
2665 if test -n "$CC"; then
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2667 $as_echo "$CC" >&6; }
2668 else
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2670 $as_echo "no" >&6; }
2671 fi
2672
2673
2674 fi
2675 if test -z "$CC"; then
2676 if test -n "$ac_tool_prefix"; then
2677 for ac_prog in cl.exe
2678 do
2679 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2680 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2682 $as_echo_n "checking for $ac_word... " >&6; }
2683 if ${ac_cv_prog_CC+:} false; then :
2684 $as_echo_n "(cached) " >&6
2685 else
2686 if test -n "$CC"; then
2687 ac_cv_prog_CC="$CC" # Let the user override the test.
2688 else
2689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2690 for as_dir in $PATH
2691 do
2692 IFS=$as_save_IFS
2693 test -z "$as_dir" && as_dir=.
2694 for ac_exec_ext in '' $ac_executable_extensions; do
2695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2696 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2698 break 2
2699 fi
2700 done
2701 done
2702 IFS=$as_save_IFS
2703
2704 fi
2705 fi
2706 CC=$ac_cv_prog_CC
2707 if test -n "$CC"; then
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2709 $as_echo "$CC" >&6; }
2710 else
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2712 $as_echo "no" >&6; }
2713 fi
2714
2715
2716 test -n "$CC" && break
2717 done
2718 fi
2719 if test -z "$CC"; then
2720 ac_ct_CC=$CC
2721 for ac_prog in cl.exe
2722 do
2723 # Extract the first word of "$ac_prog", so it can be a program name with args.
2724 set dummy $ac_prog; ac_word=$2
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2726 $as_echo_n "checking for $ac_word... " >&6; }
2727 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2728 $as_echo_n "(cached) " >&6
2729 else
2730 if test -n "$ac_ct_CC"; then
2731 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2732 else
2733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2734 for as_dir in $PATH
2735 do
2736 IFS=$as_save_IFS
2737 test -z "$as_dir" && as_dir=.
2738 for ac_exec_ext in '' $ac_executable_extensions; do
2739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2740 ac_cv_prog_ac_ct_CC="$ac_prog"
2741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2742 break 2
2743 fi
2744 done
2745 done
2746 IFS=$as_save_IFS
2747
2748 fi
2749 fi
2750 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2751 if test -n "$ac_ct_CC"; then
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2753 $as_echo "$ac_ct_CC" >&6; }
2754 else
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2756 $as_echo "no" >&6; }
2757 fi
2758
2759
2760 test -n "$ac_ct_CC" && break
2761 done
2762
2763 if test "x$ac_ct_CC" = x; then
2764 CC=""
2765 else
2766 case $cross_compiling:$ac_tool_warned in
2767 yes:)
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2769 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2770 ac_tool_warned=yes ;;
2771 esac
2772 CC=$ac_ct_CC
2773 fi
2774 fi
2775
2776 fi
2777
2778
2779 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2780 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2781 as_fn_error $? "no acceptable C compiler found in \$PATH
2782 See \`config.log' for more details" "$LINENO" 5; }
2783
2784 # Provide some information about the compiler.
2785 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2786 set X $ac_compile
2787 ac_compiler=$2
2788 for ac_option in --version -v -V -qversion; do
2789 { { ac_try="$ac_compiler $ac_option >&5"
2790 case "(($ac_try" in
2791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2792 *) ac_try_echo=$ac_try;;
2793 esac
2794 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2795 $as_echo "$ac_try_echo"; } >&5
2796 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2797 ac_status=$?
2798 if test -s conftest.err; then
2799 sed '10a\
2800 ... rest of stderr output deleted ...
2801 10q' conftest.err >conftest.er1
2802 cat conftest.er1 >&5
2803 fi
2804 rm -f conftest.er1 conftest.err
2805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2806 test $ac_status = 0; }
2807 done
2808
2809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2810 /* end confdefs.h. */
2811
2812 int
2813 main ()
2814 {
2815
2816 ;
2817 return 0;
2818 }
2819 _ACEOF
2820 ac_clean_files_save=$ac_clean_files
2821 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2822 # Try to create an executable without -o first, disregard a.out.
2823 # It will help us diagnose broken compilers, and finding out an intuition
2824 # of exeext.
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2826 $as_echo_n "checking whether the C compiler works... " >&6; }
2827 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2828
2829 # The possible output files:
2830 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2831
2832 ac_rmfiles=
2833 for ac_file in $ac_files
2834 do
2835 case $ac_file in
2836 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2837 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2838 esac
2839 done
2840 rm -f $ac_rmfiles
2841
2842 if { { ac_try="$ac_link_default"
2843 case "(($ac_try" in
2844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2845 *) ac_try_echo=$ac_try;;
2846 esac
2847 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2848 $as_echo "$ac_try_echo"; } >&5
2849 (eval "$ac_link_default") 2>&5
2850 ac_status=$?
2851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2852 test $ac_status = 0; }; then :
2853 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2854 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2855 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2856 # so that the user can short-circuit this test for compilers unknown to
2857 # Autoconf.
2858 for ac_file in $ac_files ''
2859 do
2860 test -f "$ac_file" || continue
2861 case $ac_file in
2862 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2863 ;;
2864 [ab].out )
2865 # We found the default executable, but exeext='' is most
2866 # certainly right.
2867 break;;
2868 *.* )
2869 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2870 then :; else
2871 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2872 fi
2873 # We set ac_cv_exeext here because the later test for it is not
2874 # safe: cross compilers may not add the suffix if given an `-o'
2875 # argument, so we may need to know it at that point already.
2876 # Even if this section looks crufty: it has the advantage of
2877 # actually working.
2878 break;;
2879 * )
2880 break;;
2881 esac
2882 done
2883 test "$ac_cv_exeext" = no && ac_cv_exeext=
2884
2885 else
2886 ac_file=''
2887 fi
2888 if test -z "$ac_file"; then :
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2890 $as_echo "no" >&6; }
2891 $as_echo "$as_me: failed program was:" >&5
2892 sed 's/^/| /' conftest.$ac_ext >&5
2893
2894 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2895 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2896 as_fn_error 77 "C compiler cannot create executables
2897 See \`config.log' for more details" "$LINENO" 5; }
2898 else
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2900 $as_echo "yes" >&6; }
2901 fi
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2903 $as_echo_n "checking for C compiler default output file name... " >&6; }
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2905 $as_echo "$ac_file" >&6; }
2906 ac_exeext=$ac_cv_exeext
2907
2908 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2909 ac_clean_files=$ac_clean_files_save
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2911 $as_echo_n "checking for suffix of executables... " >&6; }
2912 if { { ac_try="$ac_link"
2913 case "(($ac_try" in
2914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2915 *) ac_try_echo=$ac_try;;
2916 esac
2917 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2918 $as_echo "$ac_try_echo"; } >&5
2919 (eval "$ac_link") 2>&5
2920 ac_status=$?
2921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2922 test $ac_status = 0; }; then :
2923 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2924 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2925 # work properly (i.e., refer to `conftest.exe'), while it won't with
2926 # `rm'.
2927 for ac_file in conftest.exe conftest conftest.*; do
2928 test -f "$ac_file" || continue
2929 case $ac_file in
2930 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2931 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2932 break;;
2933 * ) break;;
2934 esac
2935 done
2936 else
2937 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2938 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2939 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2940 See \`config.log' for more details" "$LINENO" 5; }
2941 fi
2942 rm -f conftest conftest$ac_cv_exeext
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2944 $as_echo "$ac_cv_exeext" >&6; }
2945
2946 rm -f conftest.$ac_ext
2947 EXEEXT=$ac_cv_exeext
2948 ac_exeext=$EXEEXT
2949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2950 /* end confdefs.h. */
2951 #include <stdio.h>
2952 int
2953 main ()
2954 {
2955 FILE *f = fopen ("conftest.out", "w");
2956 return ferror (f) || fclose (f) != 0;
2957
2958 ;
2959 return 0;
2960 }
2961 _ACEOF
2962 ac_clean_files="$ac_clean_files conftest.out"
2963 # Check that the compiler produces executables we can run. If not, either
2964 # the compiler is broken, or we cross compile.
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2966 $as_echo_n "checking whether we are cross compiling... " >&6; }
2967 if test "$cross_compiling" != yes; then
2968 { { ac_try="$ac_link"
2969 case "(($ac_try" in
2970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2971 *) ac_try_echo=$ac_try;;
2972 esac
2973 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2974 $as_echo "$ac_try_echo"; } >&5
2975 (eval "$ac_link") 2>&5
2976 ac_status=$?
2977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2978 test $ac_status = 0; }
2979 if { ac_try='./conftest$ac_cv_exeext'
2980 { { case "(($ac_try" in
2981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2982 *) ac_try_echo=$ac_try;;
2983 esac
2984 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2985 $as_echo "$ac_try_echo"; } >&5
2986 (eval "$ac_try") 2>&5
2987 ac_status=$?
2988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2989 test $ac_status = 0; }; }; then
2990 cross_compiling=no
2991 else
2992 if test "$cross_compiling" = maybe; then
2993 cross_compiling=yes
2994 else
2995 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2996 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2997 as_fn_error $? "cannot run C compiled programs.
2998 If you meant to cross compile, use \`--host'.
2999 See \`config.log' for more details" "$LINENO" 5; }
3000 fi
3001 fi
3002 fi
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3004 $as_echo "$cross_compiling" >&6; }
3005
3006 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3007 ac_clean_files=$ac_clean_files_save
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3009 $as_echo_n "checking for suffix of object files... " >&6; }
3010 if ${ac_cv_objext+:} false; then :
3011 $as_echo_n "(cached) " >&6
3012 else
3013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3014 /* end confdefs.h. */
3015
3016 int
3017 main ()
3018 {
3019
3020 ;
3021 return 0;
3022 }
3023 _ACEOF
3024 rm -f conftest.o conftest.obj
3025 if { { ac_try="$ac_compile"
3026 case "(($ac_try" in
3027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3028 *) ac_try_echo=$ac_try;;
3029 esac
3030 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3031 $as_echo "$ac_try_echo"; } >&5
3032 (eval "$ac_compile") 2>&5
3033 ac_status=$?
3034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3035 test $ac_status = 0; }; then :
3036 for ac_file in conftest.o conftest.obj conftest.*; do
3037 test -f "$ac_file" || continue;
3038 case $ac_file in
3039 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3040 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3041 break;;
3042 esac
3043 done
3044 else
3045 $as_echo "$as_me: failed program was:" >&5
3046 sed 's/^/| /' conftest.$ac_ext >&5
3047
3048 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3049 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3050 as_fn_error $? "cannot compute suffix of object files: cannot compile
3051 See \`config.log' for more details" "$LINENO" 5; }
3052 fi
3053 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3054 fi
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3056 $as_echo "$ac_cv_objext" >&6; }
3057 OBJEXT=$ac_cv_objext
3058 ac_objext=$OBJEXT
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3060 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3061 if ${ac_cv_c_compiler_gnu+:} false; then :
3062 $as_echo_n "(cached) " >&6
3063 else
3064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3065 /* end confdefs.h. */
3066
3067 int
3068 main ()
3069 {
3070 #ifndef __GNUC__
3071 choke me
3072 #endif
3073
3074 ;
3075 return 0;
3076 }
3077 _ACEOF
3078 if ac_fn_c_try_compile "$LINENO"; then :
3079 ac_compiler_gnu=yes
3080 else
3081 ac_compiler_gnu=no
3082 fi
3083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3084 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3085
3086 fi
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3088 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3089 if test $ac_compiler_gnu = yes; then
3090 GCC=yes
3091 else
3092 GCC=
3093 fi
3094 ac_test_CFLAGS=${CFLAGS+set}
3095 ac_save_CFLAGS=$CFLAGS
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3097 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3098 if ${ac_cv_prog_cc_g+:} false; then :
3099 $as_echo_n "(cached) " >&6
3100 else
3101 ac_save_c_werror_flag=$ac_c_werror_flag
3102 ac_c_werror_flag=yes
3103 ac_cv_prog_cc_g=no
3104 CFLAGS="-g"
3105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3106 /* end confdefs.h. */
3107
3108 int
3109 main ()
3110 {
3111
3112 ;
3113 return 0;
3114 }
3115 _ACEOF
3116 if ac_fn_c_try_compile "$LINENO"; then :
3117 ac_cv_prog_cc_g=yes
3118 else
3119 CFLAGS=""
3120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3121 /* end confdefs.h. */
3122
3123 int
3124 main ()
3125 {
3126
3127 ;
3128 return 0;
3129 }
3130 _ACEOF
3131 if ac_fn_c_try_compile "$LINENO"; then :
3132
3133 else
3134 ac_c_werror_flag=$ac_save_c_werror_flag
3135 CFLAGS="-g"
3136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3137 /* end confdefs.h. */
3138
3139 int
3140 main ()
3141 {
3142
3143 ;
3144 return 0;
3145 }
3146 _ACEOF
3147 if ac_fn_c_try_compile "$LINENO"; then :
3148 ac_cv_prog_cc_g=yes
3149 fi
3150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3151 fi
3152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3153 fi
3154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3155 ac_c_werror_flag=$ac_save_c_werror_flag
3156 fi
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3158 $as_echo "$ac_cv_prog_cc_g" >&6; }
3159 if test "$ac_test_CFLAGS" = set; then
3160 CFLAGS=$ac_save_CFLAGS
3161 elif test $ac_cv_prog_cc_g = yes; then
3162 if test "$GCC" = yes; then
3163 CFLAGS="-g -O2"
3164 else
3165 CFLAGS="-g"
3166 fi
3167 else
3168 if test "$GCC" = yes; then
3169 CFLAGS="-O2"
3170 else
3171 CFLAGS=
3172 fi
3173 fi
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3175 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3176 if ${ac_cv_prog_cc_c89+:} false; then :
3177 $as_echo_n "(cached) " >&6
3178 else
3179 ac_cv_prog_cc_c89=no
3180 ac_save_CC=$CC
3181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3182 /* end confdefs.h. */
3183 #include <stdarg.h>
3184 #include <stdio.h>
3185 struct stat;
3186 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3187 struct buf { int x; };
3188 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3189 static char *e (p, i)
3190 char **p;
3191 int i;
3192 {
3193 return p[i];
3194 }
3195 static char *f (char * (*g) (char **, int), char **p, ...)
3196 {
3197 char *s;
3198 va_list v;
3199 va_start (v,p);
3200 s = g (p, va_arg (v,int));
3201 va_end (v);
3202 return s;
3203 }
3204
3205 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3206 function prototypes and stuff, but not '\xHH' hex character constants.
3207 These don't provoke an error unfortunately, instead are silently treated
3208 as 'x'. The following induces an error, until -std is added to get
3209 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3210 array size at least. It's necessary to write '\x00'==0 to get something
3211 that's true only with -std. */
3212 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3213
3214 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3215 inside strings and character constants. */
3216 #define FOO(x) 'x'
3217 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3218
3219 int test (int i, double x);
3220 struct s1 {int (*f) (int a);};
3221 struct s2 {int (*f) (double a);};
3222 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3223 int argc;
3224 char **argv;
3225 int
3226 main ()
3227 {
3228 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3229 ;
3230 return 0;
3231 }
3232 _ACEOF
3233 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3234 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3235 do
3236 CC="$ac_save_CC $ac_arg"
3237 if ac_fn_c_try_compile "$LINENO"; then :
3238 ac_cv_prog_cc_c89=$ac_arg
3239 fi
3240 rm -f core conftest.err conftest.$ac_objext
3241 test "x$ac_cv_prog_cc_c89" != "xno" && break
3242 done
3243 rm -f conftest.$ac_ext
3244 CC=$ac_save_CC
3245
3246 fi
3247 # AC_CACHE_VAL
3248 case "x$ac_cv_prog_cc_c89" in
3249 x)
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3251 $as_echo "none needed" >&6; } ;;
3252 xno)
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3254 $as_echo "unsupported" >&6; } ;;
3255 *)
3256 CC="$CC $ac_cv_prog_cc_c89"
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3258 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3259 esac
3260 if test "x$ac_cv_prog_cc_c89" != xno; then :
3261
3262 fi
3263
3264 ac_ext=c
3265 ac_cpp='$CPP $CPPFLAGS'
3266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3269
3270 ac_ext=c
3271 ac_cpp='$CPP $CPPFLAGS'
3272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3276 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3277 if ${am_cv_prog_cc_c_o+:} false; then :
3278 $as_echo_n "(cached) " >&6
3279 else
3280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3281 /* end confdefs.h. */
3282
3283 int
3284 main ()
3285 {
3286
3287 ;
3288 return 0;
3289 }
3290 _ACEOF
3291 # Make sure it works both with $CC and with simple cc.
3292 # Following AC_PROG_CC_C_O, we do the test twice because some
3293 # compilers refuse to overwrite an existing .o file with -o,
3294 # though they will create one.
3295 am_cv_prog_cc_c_o=yes
3296 for am_i in 1 2; do
3297 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3298 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3299 ac_status=$?
3300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3301 (exit $ac_status); } \
3302 && test -f conftest2.$ac_objext; then
3303 : OK
3304 else
3305 am_cv_prog_cc_c_o=no
3306 break
3307 fi
3308 done
3309 rm -f core conftest*
3310 unset am_i
3311 fi
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3313 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3314 if test "$am_cv_prog_cc_c_o" != yes; then
3315 # Losing compiler, so override with the script.
3316 # FIXME: It is wrong to rewrite CC.
3317 # But if we don't then we get into trouble of one sort or another.
3318 # A longer-term fix would be to have automake use am__CC in this case,
3319 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3320 CC="$am_aux_dir/compile $CC"
3321 fi
3322 ac_ext=c
3323 ac_cpp='$CPP $CPPFLAGS'
3324 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3325 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3326 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3327
3328
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3330 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3331 if ${ac_cv_prog_cc_c99+:} false; then :
3332 $as_echo_n "(cached) " >&6
3333 else
3334 ac_cv_prog_cc_c99=no
3335 ac_save_CC=$CC
3336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3337 /* end confdefs.h. */
3338 #include <stdarg.h>
3339 #include <stdbool.h>
3340 #include <stdlib.h>
3341 #include <wchar.h>
3342 #include <stdio.h>
3343
3344 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3345 #define debug(...) fprintf (stderr, __VA_ARGS__)
3346 #define showlist(...) puts (#__VA_ARGS__)
3347 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3348 static void
3349 test_varargs_macros (void)
3350 {
3351 int x = 1234;
3352 int y = 5678;
3353 debug ("Flag");
3354 debug ("X = %d\n", x);
3355 showlist (The first, second, and third items.);
3356 report (x>y, "x is %d but y is %d", x, y);
3357 }
3358
3359 // Check long long types.
3360 #define BIG64 18446744073709551615ull
3361 #define BIG32 4294967295ul
3362 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3363 #if !BIG_OK
3364 your preprocessor is broken;
3365 #endif
3366 #if BIG_OK
3367 #else
3368 your preprocessor is broken;
3369 #endif
3370 static long long int bignum = -9223372036854775807LL;
3371 static unsigned long long int ubignum = BIG64;
3372
3373 struct incomplete_array
3374 {
3375 int datasize;
3376 double data[];
3377 };
3378
3379 struct named_init {
3380 int number;
3381 const wchar_t *name;
3382 double average;
3383 };
3384
3385 typedef const char *ccp;
3386
3387 static inline int
3388 test_restrict (ccp restrict text)
3389 {
3390 // See if C++-style comments work.
3391 // Iterate through items via the restricted pointer.
3392 // Also check for declarations in for loops.
3393 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3394 continue;
3395 return 0;
3396 }
3397
3398 // Check varargs and va_copy.
3399 static void
3400 test_varargs (const char *format, ...)
3401 {
3402 va_list args;
3403 va_start (args, format);
3404 va_list args_copy;
3405 va_copy (args_copy, args);
3406
3407 const char *str;
3408 int number;
3409 float fnumber;
3410
3411 while (*format)
3412 {
3413 switch (*format++)
3414 {
3415 case 's': // string
3416 str = va_arg (args_copy, const char *);
3417 break;
3418 case 'd': // int
3419 number = va_arg (args_copy, int);
3420 break;
3421 case 'f': // float
3422 fnumber = va_arg (args_copy, double);
3423 break;
3424 default:
3425 break;
3426 }
3427 }
3428 va_end (args_copy);
3429 va_end (args);
3430 }
3431
3432 int
3433 main ()
3434 {
3435
3436 // Check bool.
3437 _Bool success = false;
3438
3439 // Check restrict.
3440 if (test_restrict ("String literal") == 0)
3441 success = true;
3442 char *restrict newvar = "Another string";
3443
3444 // Check varargs.
3445 test_varargs ("s, d' f .", "string", 65, 34.234);
3446 test_varargs_macros ();
3447
3448 // Check flexible array members.
3449 struct incomplete_array *ia =
3450 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3451 ia->datasize = 10;
3452 for (int i = 0; i < ia->datasize; ++i)
3453 ia->data[i] = i * 1.234;
3454
3455 // Check named initializers.
3456 struct named_init ni = {
3457 .number = 34,
3458 .name = L"Test wide string",
3459 .average = 543.34343,
3460 };
3461
3462 ni.number = 58;
3463
3464 int dynamic_array[ni.number];
3465 dynamic_array[ni.number - 1] = 543;
3466
3467 // work around unused variable warnings
3468 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3469 || dynamic_array[ni.number - 1] != 543);
3470
3471 ;
3472 return 0;
3473 }
3474 _ACEOF
3475 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3476 do
3477 CC="$ac_save_CC $ac_arg"
3478 if ac_fn_c_try_compile "$LINENO"; then :
3479 ac_cv_prog_cc_c99=$ac_arg
3480 fi
3481 rm -f core conftest.err conftest.$ac_objext
3482 test "x$ac_cv_prog_cc_c99" != "xno" && break
3483 done
3484 rm -f conftest.$ac_ext
3485 CC=$ac_save_CC
3486
3487 fi
3488 # AC_CACHE_VAL
3489 case "x$ac_cv_prog_cc_c99" in
3490 x)
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3492 $as_echo "none needed" >&6; } ;;
3493 xno)
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3495 $as_echo "unsupported" >&6; } ;;
3496 *)
3497 CC="$CC $ac_cv_prog_cc_c99"
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3499 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3500 esac
3501 if test "x$ac_cv_prog_cc_c99" != xno; then :
3502
3503 fi
3504
3505
3506
3507 ac_ext=c
3508 ac_cpp='$CPP $CPPFLAGS'
3509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3513 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3514 # On Suns, sometimes $CPP names a directory.
3515 if test -n "$CPP" && test -d "$CPP"; then
3516 CPP=
3517 fi
3518 if test -z "$CPP"; then
3519 if ${ac_cv_prog_CPP+:} false; then :
3520 $as_echo_n "(cached) " >&6
3521 else
3522 # Double quotes because CPP needs to be expanded
3523 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3524 do
3525 ac_preproc_ok=false
3526 for ac_c_preproc_warn_flag in '' yes
3527 do
3528 # Use a header file that comes with gcc, so configuring glibc
3529 # with a fresh cross-compiler works.
3530 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3531 # <limits.h> exists even on freestanding compilers.
3532 # On the NeXT, cc -E runs the code through the compiler's parser,
3533 # not just through cpp. "Syntax error" is here to catch this case.
3534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3535 /* end confdefs.h. */
3536 #ifdef __STDC__
3537 # include <limits.h>
3538 #else
3539 # include <assert.h>
3540 #endif
3541 Syntax error
3542 _ACEOF
3543 if ac_fn_c_try_cpp "$LINENO"; then :
3544
3545 else
3546 # Broken: fails on valid input.
3547 continue
3548 fi
3549 rm -f conftest.err conftest.i conftest.$ac_ext
3550
3551 # OK, works on sane cases. Now check whether nonexistent headers
3552 # can be detected and how.
3553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3554 /* end confdefs.h. */
3555 #include <ac_nonexistent.h>
3556 _ACEOF
3557 if ac_fn_c_try_cpp "$LINENO"; then :
3558 # Broken: success on invalid input.
3559 continue
3560 else
3561 # Passes both tests.
3562 ac_preproc_ok=:
3563 break
3564 fi
3565 rm -f conftest.err conftest.i conftest.$ac_ext
3566
3567 done
3568 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3569 rm -f conftest.i conftest.err conftest.$ac_ext
3570 if $ac_preproc_ok; then :
3571 break
3572 fi
3573
3574 done
3575 ac_cv_prog_CPP=$CPP
3576
3577 fi
3578 CPP=$ac_cv_prog_CPP
3579 else
3580 ac_cv_prog_CPP=$CPP
3581 fi
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3583 $as_echo "$CPP" >&6; }
3584 ac_preproc_ok=false
3585 for ac_c_preproc_warn_flag in '' yes
3586 do
3587 # Use a header file that comes with gcc, so configuring glibc
3588 # with a fresh cross-compiler works.
3589 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3590 # <limits.h> exists even on freestanding compilers.
3591 # On the NeXT, cc -E runs the code through the compiler's parser,
3592 # not just through cpp. "Syntax error" is here to catch this case.
3593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3594 /* end confdefs.h. */
3595 #ifdef __STDC__
3596 # include <limits.h>
3597 #else
3598 # include <assert.h>
3599 #endif
3600 Syntax error
3601 _ACEOF
3602 if ac_fn_c_try_cpp "$LINENO"; then :
3603
3604 else
3605 # Broken: fails on valid input.
3606 continue
3607 fi
3608 rm -f conftest.err conftest.i conftest.$ac_ext
3609
3610 # OK, works on sane cases. Now check whether nonexistent headers
3611 # can be detected and how.
3612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3613 /* end confdefs.h. */
3614 #include <ac_nonexistent.h>
3615 _ACEOF
3616 if ac_fn_c_try_cpp "$LINENO"; then :
3617 # Broken: success on invalid input.
3618 continue
3619 else
3620 # Passes both tests.
3621 ac_preproc_ok=:
3622 break
3623 fi
3624 rm -f conftest.err conftest.i conftest.$ac_ext
3625
3626 done
3627 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3628 rm -f conftest.i conftest.err conftest.$ac_ext
3629 if $ac_preproc_ok; then :
3630
3631 else
3632 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3633 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3634 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3635 See \`config.log' for more details" "$LINENO" 5; }
3636 fi
3637
3638 ac_ext=c
3639 ac_cpp='$CPP $CPPFLAGS'
3640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3643
3644
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3646 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3647 if ${ac_cv_path_GREP+:} false; then :
3648 $as_echo_n "(cached) " >&6
3649 else
3650 if test -z "$GREP"; then
3651 ac_path_GREP_found=false
3652 # Loop through the user's path and test for each of PROGNAME-LIST
3653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3654 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3655 do
3656 IFS=$as_save_IFS
3657 test -z "$as_dir" && as_dir=.
3658 for ac_prog in grep ggrep; do
3659 for ac_exec_ext in '' $ac_executable_extensions; do
3660 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3661 as_fn_executable_p "$ac_path_GREP" || continue
3662 # Check for GNU ac_path_GREP and select it if it is found.
3663 # Check for GNU $ac_path_GREP
3664 case `"$ac_path_GREP" --version 2>&1` in
3665 *GNU*)
3666 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3667 *)
3668 ac_count=0
3669 $as_echo_n 0123456789 >"conftest.in"
3670 while :
3671 do
3672 cat "conftest.in" "conftest.in" >"conftest.tmp"
3673 mv "conftest.tmp" "conftest.in"
3674 cp "conftest.in" "conftest.nl"
3675 $as_echo 'GREP' >> "conftest.nl"
3676 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3677 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3678 as_fn_arith $ac_count + 1 && ac_count=$as_val
3679 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3680 # Best one so far, save it but keep looking for a better one
3681 ac_cv_path_GREP="$ac_path_GREP"
3682 ac_path_GREP_max=$ac_count
3683 fi
3684 # 10*(2^10) chars as input seems more than enough
3685 test $ac_count -gt 10 && break
3686 done
3687 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3688 esac
3689
3690 $ac_path_GREP_found && break 3
3691 done
3692 done
3693 done
3694 IFS=$as_save_IFS
3695 if test -z "$ac_cv_path_GREP"; then
3696 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3697 fi
3698 else
3699 ac_cv_path_GREP=$GREP
3700 fi
3701
3702 fi
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3704 $as_echo "$ac_cv_path_GREP" >&6; }
3705 GREP="$ac_cv_path_GREP"
3706
3707
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3709 $as_echo_n "checking for egrep... " >&6; }
3710 if ${ac_cv_path_EGREP+:} false; then :
3711 $as_echo_n "(cached) " >&6
3712 else
3713 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3714 then ac_cv_path_EGREP="$GREP -E"
3715 else
3716 if test -z "$EGREP"; then
3717 ac_path_EGREP_found=false
3718 # Loop through the user's path and test for each of PROGNAME-LIST
3719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3720 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3721 do
3722 IFS=$as_save_IFS
3723 test -z "$as_dir" && as_dir=.
3724 for ac_prog in egrep; do
3725 for ac_exec_ext in '' $ac_executable_extensions; do
3726 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3727 as_fn_executable_p "$ac_path_EGREP" || continue
3728 # Check for GNU ac_path_EGREP and select it if it is found.
3729 # Check for GNU $ac_path_EGREP
3730 case `"$ac_path_EGREP" --version 2>&1` in
3731 *GNU*)
3732 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3733 *)
3734 ac_count=0
3735 $as_echo_n 0123456789 >"conftest.in"
3736 while :
3737 do
3738 cat "conftest.in" "conftest.in" >"conftest.tmp"
3739 mv "conftest.tmp" "conftest.in"
3740 cp "conftest.in" "conftest.nl"
3741 $as_echo 'EGREP' >> "conftest.nl"
3742 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3743 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3744 as_fn_arith $ac_count + 1 && ac_count=$as_val
3745 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3746 # Best one so far, save it but keep looking for a better one
3747 ac_cv_path_EGREP="$ac_path_EGREP"
3748 ac_path_EGREP_max=$ac_count
3749 fi
3750 # 10*(2^10) chars as input seems more than enough
3751 test $ac_count -gt 10 && break
3752 done
3753 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3754 esac
3755
3756 $ac_path_EGREP_found && break 3
3757 done
3758 done
3759 done
3760 IFS=$as_save_IFS
3761 if test -z "$ac_cv_path_EGREP"; then
3762 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3763 fi
3764 else
3765 ac_cv_path_EGREP=$EGREP
3766 fi
3767
3768 fi
3769 fi
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3771 $as_echo "$ac_cv_path_EGREP" >&6; }
3772 EGREP="$ac_cv_path_EGREP"
3773
3774
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3776 $as_echo_n "checking for ANSI C header files... " >&6; }
3777 if ${ac_cv_header_stdc+:} false; then :
3778 $as_echo_n "(cached) " >&6
3779 else
3780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3781 /* end confdefs.h. */
3782 #include <stdlib.h>
3783 #include <stdarg.h>
3784 #include <string.h>
3785 #include <float.h>
3786
3787 int
3788 main ()
3789 {
3790
3791 ;
3792 return 0;
3793 }
3794 _ACEOF
3795 if ac_fn_c_try_compile "$LINENO"; then :
3796 ac_cv_header_stdc=yes
3797 else
3798 ac_cv_header_stdc=no
3799 fi
3800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3801
3802 if test $ac_cv_header_stdc = yes; then
3803 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3805 /* end confdefs.h. */
3806 #include <string.h>
3807
3808 _ACEOF
3809 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3810 $EGREP "memchr" >/dev/null 2>&1; then :
3811
3812 else
3813 ac_cv_header_stdc=no
3814 fi
3815 rm -f conftest*
3816
3817 fi
3818
3819 if test $ac_cv_header_stdc = yes; then
3820 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3822 /* end confdefs.h. */
3823 #include <stdlib.h>
3824
3825 _ACEOF
3826 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3827 $EGREP "free" >/dev/null 2>&1; then :
3828
3829 else
3830 ac_cv_header_stdc=no
3831 fi
3832 rm -f conftest*
3833
3834 fi
3835
3836 if test $ac_cv_header_stdc = yes; then
3837 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3838 if test "$cross_compiling" = yes; then :
3839 :
3840 else
3841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3842 /* end confdefs.h. */
3843 #include <ctype.h>
3844 #include <stdlib.h>
3845 #if ((' ' & 0x0FF) == 0x020)
3846 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3847 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3848 #else
3849 # define ISLOWER(c) \
3850 (('a' <= (c) && (c) <= 'i') \
3851 || ('j' <= (c) && (c) <= 'r') \
3852 || ('s' <= (c) && (c) <= 'z'))
3853 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3854 #endif
3855
3856 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3857 int
3858 main ()
3859 {
3860 int i;
3861 for (i = 0; i < 256; i++)
3862 if (XOR (islower (i), ISLOWER (i))
3863 || toupper (i) != TOUPPER (i))
3864 return 2;
3865 return 0;
3866 }
3867 _ACEOF
3868 if ac_fn_c_try_run "$LINENO"; then :
3869
3870 else
3871 ac_cv_header_stdc=no
3872 fi
3873 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3874 conftest.$ac_objext conftest.beam conftest.$ac_ext
3875 fi
3876
3877 fi
3878 fi
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3880 $as_echo "$ac_cv_header_stdc" >&6; }
3881 if test $ac_cv_header_stdc = yes; then
3882
3883 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3884
3885 fi
3886
3887 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3888 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3889 inttypes.h stdint.h unistd.h
3890 do :
3891 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3892 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3893 "
3894 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3895 cat >>confdefs.h <<_ACEOF
3896 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3897 _ACEOF
3898
3899 fi
3900
3901 done
3902
3903
3904
3905
3906
3907
3908 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
3909 if test "x$ac_cv_have_decl___clang__" = xyes; then :
3910 CLANGCC="yes"
3911 else
3912 CLANGCC="no"
3913 fi
3914
3915 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
3916 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
3917 INTELCC="yes"
3918 else
3919 INTELCC="no"
3920 fi
3921
3922 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
3923 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
3924 SUNCC="yes"
3925 else
3926 SUNCC="no"
3927 fi
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3938 if test -n "$ac_tool_prefix"; then
3939 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3940 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3942 $as_echo_n "checking for $ac_word... " >&6; }
3943 if ${ac_cv_path_PKG_CONFIG+:} false; then :
3944 $as_echo_n "(cached) " >&6
3945 else
3946 case $PKG_CONFIG in
3947 [\\/]* | ?:[\\/]*)
3948 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3949 ;;
3950 *)
3951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3952 for as_dir in $PATH
3953 do
3954 IFS=$as_save_IFS
3955 test -z "$as_dir" && as_dir=.
3956 for ac_exec_ext in '' $ac_executable_extensions; do
3957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3958 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3960 break 2
3961 fi
3962 done
3963 done
3964 IFS=$as_save_IFS
3965
3966 ;;
3967 esac
3968 fi
3969 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3970 if test -n "$PKG_CONFIG"; then
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
3972 $as_echo "$PKG_CONFIG" >&6; }
3973 else
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3975 $as_echo "no" >&6; }
3976 fi
3977
3978
3979 fi
3980 if test -z "$ac_cv_path_PKG_CONFIG"; then
3981 ac_pt_PKG_CONFIG=$PKG_CONFIG
3982 # Extract the first word of "pkg-config", so it can be a program name with args.
3983 set dummy pkg-config; ac_word=$2
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3985 $as_echo_n "checking for $ac_word... " >&6; }
3986 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
3987 $as_echo_n "(cached) " >&6
3988 else
3989 case $ac_pt_PKG_CONFIG in
3990 [\\/]* | ?:[\\/]*)
3991 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3992 ;;
3993 *)
3994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3995 for as_dir in $PATH
3996 do
3997 IFS=$as_save_IFS
3998 test -z "$as_dir" && as_dir=.
3999 for ac_exec_ext in '' $ac_executable_extensions; do
4000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4001 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4003 break 2
4004 fi
4005 done
4006 done
4007 IFS=$as_save_IFS
4008
4009 ;;
4010 esac
4011 fi
4012 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4013 if test -n "$ac_pt_PKG_CONFIG"; then
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4015 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4016 else
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4018 $as_echo "no" >&6; }
4019 fi
4020
4021 if test "x$ac_pt_PKG_CONFIG" = x; then
4022 PKG_CONFIG=""
4023 else
4024 case $cross_compiling:$ac_tool_warned in
4025 yes:)
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4027 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4028 ac_tool_warned=yes ;;
4029 esac
4030 PKG_CONFIG=$ac_pt_PKG_CONFIG
4031 fi
4032 else
4033 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4034 fi
4035
4036 fi
4037 if test -n "$PKG_CONFIG"; then
4038 _pkg_min_version=0.9.0
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4040 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4041 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4043 $as_echo "yes" >&6; }
4044 else
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4046 $as_echo "no" >&6; }
4047 PKG_CONFIG=""
4048 fi
4049 fi
4050 # Make sure we can run config.sub.
4051 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4052 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4053
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4055 $as_echo_n "checking build system type... " >&6; }
4056 if ${ac_cv_build+:} false; then :
4057 $as_echo_n "(cached) " >&6
4058 else
4059 ac_build_alias=$build_alias
4060 test "x$ac_build_alias" = x &&
4061 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4062 test "x$ac_build_alias" = x &&
4063 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4064 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4065 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4066
4067 fi
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4069 $as_echo "$ac_cv_build" >&6; }
4070 case $ac_cv_build in
4071 *-*-*) ;;
4072 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4073 esac
4074 build=$ac_cv_build
4075 ac_save_IFS=$IFS; IFS='-'
4076 set x $ac_cv_build
4077 shift
4078 build_cpu=$1
4079 build_vendor=$2
4080 shift; shift
4081 # Remember, the first character of IFS is used to create $*,
4082 # except with old shells:
4083 build_os=$*
4084 IFS=$ac_save_IFS
4085 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4086
4087
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4089 $as_echo_n "checking host system type... " >&6; }
4090 if ${ac_cv_host+:} false; then :
4091 $as_echo_n "(cached) " >&6
4092 else
4093 if test "x$host_alias" = x; then
4094 ac_cv_host=$ac_cv_build
4095 else
4096 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4097 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4098 fi
4099
4100 fi
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4102 $as_echo "$ac_cv_host" >&6; }
4103 case $ac_cv_host in
4104 *-*-*) ;;
4105 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4106 esac
4107 host=$ac_cv_host
4108 ac_save_IFS=$IFS; IFS='-'
4109 set x $ac_cv_host
4110 shift
4111 host_cpu=$1
4112 host_vendor=$2
4113 shift; shift
4114 # Remember, the first character of IFS is used to create $*,
4115 # except with old shells:
4116 host_os=$*
4117 IFS=$ac_save_IFS
4118 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4119
4120
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4122 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4123 if ${ac_cv_path_SED+:} false; then :
4124 $as_echo_n "(cached) " >&6
4125 else
4126 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4127 for ac_i in 1 2 3 4 5 6 7; do
4128 ac_script="$ac_script$as_nl$ac_script"
4129 done
4130 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4131 { ac_script=; unset ac_script;}
4132 if test -z "$SED"; then
4133 ac_path_SED_found=false
4134 # Loop through the user's path and test for each of PROGNAME-LIST
4135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4136 for as_dir in $PATH
4137 do
4138 IFS=$as_save_IFS
4139 test -z "$as_dir" && as_dir=.
4140 for ac_prog in sed gsed; do
4141 for ac_exec_ext in '' $ac_executable_extensions; do
4142 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4143 as_fn_executable_p "$ac_path_SED" || continue
4144 # Check for GNU ac_path_SED and select it if it is found.
4145 # Check for GNU $ac_path_SED
4146 case `"$ac_path_SED" --version 2>&1` in
4147 *GNU*)
4148 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4149 *)
4150 ac_count=0
4151 $as_echo_n 0123456789 >"conftest.in"
4152 while :
4153 do
4154 cat "conftest.in" "conftest.in" >"conftest.tmp"
4155 mv "conftest.tmp" "conftest.in"
4156 cp "conftest.in" "conftest.nl"
4157 $as_echo '' >> "conftest.nl"
4158 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4159 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4160 as_fn_arith $ac_count + 1 && ac_count=$as_val
4161 if test $ac_count -gt ${ac_path_SED_max-0}; then
4162 # Best one so far, save it but keep looking for a better one
4163 ac_cv_path_SED="$ac_path_SED"
4164 ac_path_SED_max=$ac_count
4165 fi
4166 # 10*(2^10) chars as input seems more than enough
4167 test $ac_count -gt 10 && break
4168 done
4169 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4170 esac
4171
4172 $ac_path_SED_found && break 3
4173 done
4174 done
4175 done
4176 IFS=$as_save_IFS
4177 if test -z "$ac_cv_path_SED"; then
4178 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4179 fi
4180 else
4181 ac_cv_path_SED=$SED
4182 fi
4183
4184 fi
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4186 $as_echo "$ac_cv_path_SED" >&6; }
4187 SED="$ac_cv_path_SED"
4188 rm -f conftest.sed
4189
4190
4191
4192
4193
4194
4195 # Check whether --enable-selective-werror was given.
4196 if test "${enable_selective_werror+set}" = set; then :
4197 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4198 else
4199 SELECTIVE_WERROR=yes
4200 fi
4201
4202
4203
4204
4205
4206 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4207 if test "x$SUNCC" = "xyes"; then
4208 BASE_CFLAGS="-v"
4209 else
4210 BASE_CFLAGS=""
4211 fi
4212
4213 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227 xorg_testset_save_CFLAGS="$CFLAGS"
4228
4229 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4230 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4232 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4233 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4234 $as_echo_n "(cached) " >&6
4235 else
4236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4237 /* end confdefs.h. */
4238 int i;
4239 _ACEOF
4240 if ac_fn_c_try_compile "$LINENO"; then :
4241 xorg_cv_cc_flag_unknown_warning_option=yes
4242 else
4243 xorg_cv_cc_flag_unknown_warning_option=no
4244 fi
4245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4246 fi
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4248 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4249 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4250 CFLAGS="$xorg_testset_save_CFLAGS"
4251 fi
4252
4253 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4254 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4255 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4256 fi
4257 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4259 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4260 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4261 $as_echo_n "(cached) " >&6
4262 else
4263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4264 /* end confdefs.h. */
4265 int i;
4266 _ACEOF
4267 if ac_fn_c_try_compile "$LINENO"; then :
4268 xorg_cv_cc_flag_unused_command_line_argument=yes
4269 else
4270 xorg_cv_cc_flag_unused_command_line_argument=no
4271 fi
4272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4273 fi
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4275 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4276 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4277 CFLAGS="$xorg_testset_save_CFLAGS"
4278 fi
4279
4280 found="no"
4281
4282 if test $found = "no" ; then
4283 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4284 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4285 fi
4286
4287 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4288 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4289 fi
4290
4291 CFLAGS="$CFLAGS -Wall"
4292
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4294 $as_echo_n "checking if $CC supports -Wall... " >&6; }
4295 cacheid=xorg_cv_cc_flag__Wall
4296 if eval \${$cacheid+:} false; then :
4297 $as_echo_n "(cached) " >&6
4298 else
4299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4300 /* end confdefs.h. */
4301 int i;
4302 int
4303 main ()
4304 {
4305
4306 ;
4307 return 0;
4308 }
4309 _ACEOF
4310 if ac_fn_c_try_link "$LINENO"; then :
4311 eval $cacheid=yes
4312 else
4313 eval $cacheid=no
4314 fi
4315 rm -f core conftest.err conftest.$ac_objext \
4316 conftest$ac_exeext conftest.$ac_ext
4317 fi
4318
4319
4320 CFLAGS="$xorg_testset_save_CFLAGS"
4321
4322 eval supported=\$$cacheid
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4324 $as_echo "$supported" >&6; }
4325 if test "$supported" = "yes" ; then
4326 BASE_CFLAGS="$BASE_CFLAGS -Wall"
4327 found="yes"
4328 fi
4329 fi
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345 xorg_testset_save_CFLAGS="$CFLAGS"
4346
4347 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4348 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4350 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4351 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4352 $as_echo_n "(cached) " >&6
4353 else
4354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4355 /* end confdefs.h. */
4356 int i;
4357 _ACEOF
4358 if ac_fn_c_try_compile "$LINENO"; then :
4359 xorg_cv_cc_flag_unknown_warning_option=yes
4360 else
4361 xorg_cv_cc_flag_unknown_warning_option=no
4362 fi
4363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4364 fi
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4366 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4367 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4368 CFLAGS="$xorg_testset_save_CFLAGS"
4369 fi
4370
4371 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4372 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4373 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4374 fi
4375 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4377 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4378 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4379 $as_echo_n "(cached) " >&6
4380 else
4381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4382 /* end confdefs.h. */
4383 int i;
4384 _ACEOF
4385 if ac_fn_c_try_compile "$LINENO"; then :
4386 xorg_cv_cc_flag_unused_command_line_argument=yes
4387 else
4388 xorg_cv_cc_flag_unused_command_line_argument=no
4389 fi
4390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4391 fi
4392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4393 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4394 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4395 CFLAGS="$xorg_testset_save_CFLAGS"
4396 fi
4397
4398 found="no"
4399
4400 if test $found = "no" ; then
4401 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4402 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4403 fi
4404
4405 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4406 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4407 fi
4408
4409 CFLAGS="$CFLAGS -Wpointer-arith"
4410
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4412 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4413 cacheid=xorg_cv_cc_flag__Wpointer_arith
4414 if eval \${$cacheid+:} false; then :
4415 $as_echo_n "(cached) " >&6
4416 else
4417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4418 /* end confdefs.h. */
4419 int i;
4420 int
4421 main ()
4422 {
4423
4424 ;
4425 return 0;
4426 }
4427 _ACEOF
4428 if ac_fn_c_try_link "$LINENO"; then :
4429 eval $cacheid=yes
4430 else
4431 eval $cacheid=no
4432 fi
4433 rm -f core conftest.err conftest.$ac_objext \
4434 conftest$ac_exeext conftest.$ac_ext
4435 fi
4436
4437
4438 CFLAGS="$xorg_testset_save_CFLAGS"
4439
4440 eval supported=\$$cacheid
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4442 $as_echo "$supported" >&6; }
4443 if test "$supported" = "yes" ; then
4444 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4445 found="yes"
4446 fi
4447 fi
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463 xorg_testset_save_CFLAGS="$CFLAGS"
4464
4465 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4466 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4468 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4469 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4470 $as_echo_n "(cached) " >&6
4471 else
4472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4473 /* end confdefs.h. */
4474 int i;
4475 _ACEOF
4476 if ac_fn_c_try_compile "$LINENO"; then :
4477 xorg_cv_cc_flag_unknown_warning_option=yes
4478 else
4479 xorg_cv_cc_flag_unknown_warning_option=no
4480 fi
4481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4482 fi
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4484 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4485 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4486 CFLAGS="$xorg_testset_save_CFLAGS"
4487 fi
4488
4489 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4490 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4491 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4492 fi
4493 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4495 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4496 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4497 $as_echo_n "(cached) " >&6
4498 else
4499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4500 /* end confdefs.h. */
4501 int i;
4502 _ACEOF
4503 if ac_fn_c_try_compile "$LINENO"; then :
4504 xorg_cv_cc_flag_unused_command_line_argument=yes
4505 else
4506 xorg_cv_cc_flag_unused_command_line_argument=no
4507 fi
4508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4509 fi
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4511 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4512 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4513 CFLAGS="$xorg_testset_save_CFLAGS"
4514 fi
4515
4516 found="no"
4517
4518 if test $found = "no" ; then
4519 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4520 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4521 fi
4522
4523 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4524 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4525 fi
4526
4527 CFLAGS="$CFLAGS -Wmissing-declarations"
4528
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
4530 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
4531 cacheid=xorg_cv_cc_flag__Wmissing_declarations
4532 if eval \${$cacheid+:} false; then :
4533 $as_echo_n "(cached) " >&6
4534 else
4535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4536 /* end confdefs.h. */
4537 int i;
4538 int
4539 main ()
4540 {
4541
4542 ;
4543 return 0;
4544 }
4545 _ACEOF
4546 if ac_fn_c_try_link "$LINENO"; then :
4547 eval $cacheid=yes
4548 else
4549 eval $cacheid=no
4550 fi
4551 rm -f core conftest.err conftest.$ac_objext \
4552 conftest$ac_exeext conftest.$ac_ext
4553 fi
4554
4555
4556 CFLAGS="$xorg_testset_save_CFLAGS"
4557
4558 eval supported=\$$cacheid
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4560 $as_echo "$supported" >&6; }
4561 if test "$supported" = "yes" ; then
4562 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
4563 found="yes"
4564 fi
4565 fi
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581 xorg_testset_save_CFLAGS="$CFLAGS"
4582
4583 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4584 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4586 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4587 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4588 $as_echo_n "(cached) " >&6
4589 else
4590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4591 /* end confdefs.h. */
4592 int i;
4593 _ACEOF
4594 if ac_fn_c_try_compile "$LINENO"; then :
4595 xorg_cv_cc_flag_unknown_warning_option=yes
4596 else
4597 xorg_cv_cc_flag_unknown_warning_option=no
4598 fi
4599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4600 fi
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4602 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4603 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4604 CFLAGS="$xorg_testset_save_CFLAGS"
4605 fi
4606
4607 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4608 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4609 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4610 fi
4611 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4613 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4614 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4615 $as_echo_n "(cached) " >&6
4616 else
4617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4618 /* end confdefs.h. */
4619 int i;
4620 _ACEOF
4621 if ac_fn_c_try_compile "$LINENO"; then :
4622 xorg_cv_cc_flag_unused_command_line_argument=yes
4623 else
4624 xorg_cv_cc_flag_unused_command_line_argument=no
4625 fi
4626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4627 fi
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4629 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4630 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4631 CFLAGS="$xorg_testset_save_CFLAGS"
4632 fi
4633
4634 found="no"
4635
4636 if test $found = "no" ; then
4637 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4638 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4639 fi
4640
4641 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4642 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4643 fi
4644
4645 CFLAGS="$CFLAGS -Wformat=2"
4646
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
4648 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
4649 cacheid=xorg_cv_cc_flag__Wformat_2
4650 if eval \${$cacheid+:} false; then :
4651 $as_echo_n "(cached) " >&6
4652 else
4653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4654 /* end confdefs.h. */
4655 int i;
4656 int
4657 main ()
4658 {
4659
4660 ;
4661 return 0;
4662 }
4663 _ACEOF
4664 if ac_fn_c_try_link "$LINENO"; then :
4665 eval $cacheid=yes
4666 else
4667 eval $cacheid=no
4668 fi
4669 rm -f core conftest.err conftest.$ac_objext \
4670 conftest$ac_exeext conftest.$ac_ext
4671 fi
4672
4673
4674 CFLAGS="$xorg_testset_save_CFLAGS"
4675
4676 eval supported=\$$cacheid
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4678 $as_echo "$supported" >&6; }
4679 if test "$supported" = "yes" ; then
4680 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
4681 found="yes"
4682 fi
4683 fi
4684
4685 if test $found = "no" ; then
4686 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4687 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4688 fi
4689
4690 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4691 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4692 fi
4693
4694 CFLAGS="$CFLAGS -Wformat"
4695
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
4697 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
4698 cacheid=xorg_cv_cc_flag__Wformat
4699 if eval \${$cacheid+:} false; then :
4700 $as_echo_n "(cached) " >&6
4701 else
4702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4703 /* end confdefs.h. */
4704 int i;
4705 int
4706 main ()
4707 {
4708
4709 ;
4710 return 0;
4711 }
4712 _ACEOF
4713 if ac_fn_c_try_link "$LINENO"; then :
4714 eval $cacheid=yes
4715 else
4716 eval $cacheid=no
4717 fi
4718 rm -f core conftest.err conftest.$ac_objext \
4719 conftest$ac_exeext conftest.$ac_ext
4720 fi
4721
4722
4723 CFLAGS="$xorg_testset_save_CFLAGS"
4724
4725 eval supported=\$$cacheid
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4727 $as_echo "$supported" >&6; }
4728 if test "$supported" = "yes" ; then
4729 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
4730 found="yes"
4731 fi
4732 fi
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750 xorg_testset_save_CFLAGS="$CFLAGS"
4751
4752 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4753 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4755 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4756 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4757 $as_echo_n "(cached) " >&6
4758 else
4759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4760 /* end confdefs.h. */
4761 int i;
4762 _ACEOF
4763 if ac_fn_c_try_compile "$LINENO"; then :
4764 xorg_cv_cc_flag_unknown_warning_option=yes
4765 else
4766 xorg_cv_cc_flag_unknown_warning_option=no
4767 fi
4768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4769 fi
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4771 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4772 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4773 CFLAGS="$xorg_testset_save_CFLAGS"
4774 fi
4775
4776 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4777 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4778 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4779 fi
4780 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4782 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4783 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4784 $as_echo_n "(cached) " >&6
4785 else
4786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4787 /* end confdefs.h. */
4788 int i;
4789 _ACEOF
4790 if ac_fn_c_try_compile "$LINENO"; then :
4791 xorg_cv_cc_flag_unused_command_line_argument=yes
4792 else
4793 xorg_cv_cc_flag_unused_command_line_argument=no
4794 fi
4795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4796 fi
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4798 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4799 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4800 CFLAGS="$xorg_testset_save_CFLAGS"
4801 fi
4802
4803 found="no"
4804
4805 if test $found = "no" ; then
4806 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4807 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4808 fi
4809
4810 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4811 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4812 fi
4813
4814 CFLAGS="$CFLAGS -Wstrict-prototypes"
4815
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
4817 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
4818 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
4819 if eval \${$cacheid+:} false; then :
4820 $as_echo_n "(cached) " >&6
4821 else
4822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4823 /* end confdefs.h. */
4824 int i;
4825 int
4826 main ()
4827 {
4828
4829 ;
4830 return 0;
4831 }
4832 _ACEOF
4833 if ac_fn_c_try_link "$LINENO"; then :
4834 eval $cacheid=yes
4835 else
4836 eval $cacheid=no
4837 fi
4838 rm -f core conftest.err conftest.$ac_objext \
4839 conftest$ac_exeext conftest.$ac_ext
4840 fi
4841
4842
4843 CFLAGS="$xorg_testset_save_CFLAGS"
4844
4845 eval supported=\$$cacheid
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4847 $as_echo "$supported" >&6; }
4848 if test "$supported" = "yes" ; then
4849 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
4850 found="yes"
4851 fi
4852 fi
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868 xorg_testset_save_CFLAGS="$CFLAGS"
4869
4870 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4871 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4873 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4874 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4875 $as_echo_n "(cached) " >&6
4876 else
4877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4878 /* end confdefs.h. */
4879 int i;
4880 _ACEOF
4881 if ac_fn_c_try_compile "$LINENO"; then :
4882 xorg_cv_cc_flag_unknown_warning_option=yes
4883 else
4884 xorg_cv_cc_flag_unknown_warning_option=no
4885 fi
4886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4887 fi
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4889 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4890 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4891 CFLAGS="$xorg_testset_save_CFLAGS"
4892 fi
4893
4894 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4895 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4896 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4897 fi
4898 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4900 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4901 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4902 $as_echo_n "(cached) " >&6
4903 else
4904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4905 /* end confdefs.h. */
4906 int i;
4907 _ACEOF
4908 if ac_fn_c_try_compile "$LINENO"; then :
4909 xorg_cv_cc_flag_unused_command_line_argument=yes
4910 else
4911 xorg_cv_cc_flag_unused_command_line_argument=no
4912 fi
4913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4914 fi
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4916 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4917 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4918 CFLAGS="$xorg_testset_save_CFLAGS"
4919 fi
4920
4921 found="no"
4922
4923 if test $found = "no" ; then
4924 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4925 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4926 fi
4927
4928 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4929 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4930 fi
4931
4932 CFLAGS="$CFLAGS -Wmissing-prototypes"
4933
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
4935 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
4936 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
4937 if eval \${$cacheid+:} false; then :
4938 $as_echo_n "(cached) " >&6
4939 else
4940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4941 /* end confdefs.h. */
4942 int i;
4943 int
4944 main ()
4945 {
4946
4947 ;
4948 return 0;
4949 }
4950 _ACEOF
4951 if ac_fn_c_try_link "$LINENO"; then :
4952 eval $cacheid=yes
4953 else
4954 eval $cacheid=no
4955 fi
4956 rm -f core conftest.err conftest.$ac_objext \
4957 conftest$ac_exeext conftest.$ac_ext
4958 fi
4959
4960
4961 CFLAGS="$xorg_testset_save_CFLAGS"
4962
4963 eval supported=\$$cacheid
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4965 $as_echo "$supported" >&6; }
4966 if test "$supported" = "yes" ; then
4967 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
4968 found="yes"
4969 fi
4970 fi
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986 xorg_testset_save_CFLAGS="$CFLAGS"
4987
4988 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4989 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4991 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4992 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4993 $as_echo_n "(cached) " >&6
4994 else
4995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4996 /* end confdefs.h. */
4997 int i;
4998 _ACEOF
4999 if ac_fn_c_try_compile "$LINENO"; then :
5000 xorg_cv_cc_flag_unknown_warning_option=yes
5001 else
5002 xorg_cv_cc_flag_unknown_warning_option=no
5003 fi
5004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5005 fi
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5007 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5008 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5009 CFLAGS="$xorg_testset_save_CFLAGS"
5010 fi
5011
5012 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5013 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5014 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5015 fi
5016 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5018 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5019 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5020 $as_echo_n "(cached) " >&6
5021 else
5022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5023 /* end confdefs.h. */
5024 int i;
5025 _ACEOF
5026 if ac_fn_c_try_compile "$LINENO"; then :
5027 xorg_cv_cc_flag_unused_command_line_argument=yes
5028 else
5029 xorg_cv_cc_flag_unused_command_line_argument=no
5030 fi
5031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5032 fi
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5034 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5035 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5036 CFLAGS="$xorg_testset_save_CFLAGS"
5037 fi
5038
5039 found="no"
5040
5041 if test $found = "no" ; then
5042 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5043 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5044 fi
5045
5046 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5047 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5048 fi
5049
5050 CFLAGS="$CFLAGS -Wnested-externs"
5051
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5053 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5054 cacheid=xorg_cv_cc_flag__Wnested_externs
5055 if eval \${$cacheid+:} false; then :
5056 $as_echo_n "(cached) " >&6
5057 else
5058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5059 /* end confdefs.h. */
5060 int i;
5061 int
5062 main ()
5063 {
5064
5065 ;
5066 return 0;
5067 }
5068 _ACEOF
5069 if ac_fn_c_try_link "$LINENO"; then :
5070 eval $cacheid=yes
5071 else
5072 eval $cacheid=no
5073 fi
5074 rm -f core conftest.err conftest.$ac_objext \
5075 conftest$ac_exeext conftest.$ac_ext
5076 fi
5077
5078
5079 CFLAGS="$xorg_testset_save_CFLAGS"
5080
5081 eval supported=\$$cacheid
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5083 $as_echo "$supported" >&6; }
5084 if test "$supported" = "yes" ; then
5085 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5086 found="yes"
5087 fi
5088 fi
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104 xorg_testset_save_CFLAGS="$CFLAGS"
5105
5106 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5107 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5109 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5110 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5111 $as_echo_n "(cached) " >&6
5112 else
5113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5114 /* end confdefs.h. */
5115 int i;
5116 _ACEOF
5117 if ac_fn_c_try_compile "$LINENO"; then :
5118 xorg_cv_cc_flag_unknown_warning_option=yes
5119 else
5120 xorg_cv_cc_flag_unknown_warning_option=no
5121 fi
5122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5123 fi
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5125 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5126 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5127 CFLAGS="$xorg_testset_save_CFLAGS"
5128 fi
5129
5130 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5131 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5132 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5133 fi
5134 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5136 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5137 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5138 $as_echo_n "(cached) " >&6
5139 else
5140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5141 /* end confdefs.h. */
5142 int i;
5143 _ACEOF
5144 if ac_fn_c_try_compile "$LINENO"; then :
5145 xorg_cv_cc_flag_unused_command_line_argument=yes
5146 else
5147 xorg_cv_cc_flag_unused_command_line_argument=no
5148 fi
5149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5150 fi
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5152 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5153 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5154 CFLAGS="$xorg_testset_save_CFLAGS"
5155 fi
5156
5157 found="no"
5158
5159 if test $found = "no" ; then
5160 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5161 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5162 fi
5163
5164 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5165 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5166 fi
5167
5168 CFLAGS="$CFLAGS -Wbad-function-cast"
5169
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5171 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5172 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5173 if eval \${$cacheid+:} false; then :
5174 $as_echo_n "(cached) " >&6
5175 else
5176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5177 /* end confdefs.h. */
5178 int i;
5179 int
5180 main ()
5181 {
5182
5183 ;
5184 return 0;
5185 }
5186 _ACEOF
5187 if ac_fn_c_try_link "$LINENO"; then :
5188 eval $cacheid=yes
5189 else
5190 eval $cacheid=no
5191 fi
5192 rm -f core conftest.err conftest.$ac_objext \
5193 conftest$ac_exeext conftest.$ac_ext
5194 fi
5195
5196
5197 CFLAGS="$xorg_testset_save_CFLAGS"
5198
5199 eval supported=\$$cacheid
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5201 $as_echo "$supported" >&6; }
5202 if test "$supported" = "yes" ; then
5203 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5204 found="yes"
5205 fi
5206 fi
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222 xorg_testset_save_CFLAGS="$CFLAGS"
5223
5224 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5225 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5227 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5228 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5229 $as_echo_n "(cached) " >&6
5230 else
5231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5232 /* end confdefs.h. */
5233 int i;
5234 _ACEOF
5235 if ac_fn_c_try_compile "$LINENO"; then :
5236 xorg_cv_cc_flag_unknown_warning_option=yes
5237 else
5238 xorg_cv_cc_flag_unknown_warning_option=no
5239 fi
5240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5241 fi
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5243 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5244 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5245 CFLAGS="$xorg_testset_save_CFLAGS"
5246 fi
5247
5248 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5249 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5250 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5251 fi
5252 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5254 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5255 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5256 $as_echo_n "(cached) " >&6
5257 else
5258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5259 /* end confdefs.h. */
5260 int i;
5261 _ACEOF
5262 if ac_fn_c_try_compile "$LINENO"; then :
5263 xorg_cv_cc_flag_unused_command_line_argument=yes
5264 else
5265 xorg_cv_cc_flag_unused_command_line_argument=no
5266 fi
5267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5268 fi
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5270 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5271 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5272 CFLAGS="$xorg_testset_save_CFLAGS"
5273 fi
5274
5275 found="no"
5276
5277 if test $found = "no" ; then
5278 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5279 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5280 fi
5281
5282 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5283 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5284 fi
5285
5286 CFLAGS="$CFLAGS -Wold-style-definition"
5287
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5289 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5290 cacheid=xorg_cv_cc_flag__Wold_style_definition
5291 if eval \${$cacheid+:} false; then :
5292 $as_echo_n "(cached) " >&6
5293 else
5294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5295 /* end confdefs.h. */
5296 int i;
5297 int
5298 main ()
5299 {
5300
5301 ;
5302 return 0;
5303 }
5304 _ACEOF
5305 if ac_fn_c_try_link "$LINENO"; then :
5306 eval $cacheid=yes
5307 else
5308 eval $cacheid=no
5309 fi
5310 rm -f core conftest.err conftest.$ac_objext \
5311 conftest$ac_exeext conftest.$ac_ext
5312 fi
5313
5314
5315 CFLAGS="$xorg_testset_save_CFLAGS"
5316
5317 eval supported=\$$cacheid
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5319 $as_echo "$supported" >&6; }
5320 if test "$supported" = "yes" ; then
5321 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5322 found="yes"
5323 fi
5324 fi
5325
5326 if test $found = "no" ; then
5327 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5328 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5329 fi
5330
5331 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5332 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5333 fi
5334
5335 CFLAGS="$CFLAGS -fd"
5336
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
5338 $as_echo_n "checking if $CC supports -fd... " >&6; }
5339 cacheid=xorg_cv_cc_flag__fd
5340 if eval \${$cacheid+:} false; then :
5341 $as_echo_n "(cached) " >&6
5342 else
5343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5344 /* end confdefs.h. */
5345 int i;
5346 int
5347 main ()
5348 {
5349
5350 ;
5351 return 0;
5352 }
5353 _ACEOF
5354 if ac_fn_c_try_link "$LINENO"; then :
5355 eval $cacheid=yes
5356 else
5357 eval $cacheid=no
5358 fi
5359 rm -f core conftest.err conftest.$ac_objext \
5360 conftest$ac_exeext conftest.$ac_ext
5361 fi
5362
5363
5364 CFLAGS="$xorg_testset_save_CFLAGS"
5365
5366 eval supported=\$$cacheid
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5368 $as_echo "$supported" >&6; }
5369 if test "$supported" = "yes" ; then
5370 BASE_CFLAGS="$BASE_CFLAGS -fd"
5371 found="yes"
5372 fi
5373 fi
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389 xorg_testset_save_CFLAGS="$CFLAGS"
5390
5391 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5392 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5394 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5395 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5396 $as_echo_n "(cached) " >&6
5397 else
5398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5399 /* end confdefs.h. */
5400 int i;
5401 _ACEOF
5402 if ac_fn_c_try_compile "$LINENO"; then :
5403 xorg_cv_cc_flag_unknown_warning_option=yes
5404 else
5405 xorg_cv_cc_flag_unknown_warning_option=no
5406 fi
5407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5408 fi
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5410 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5411 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5412 CFLAGS="$xorg_testset_save_CFLAGS"
5413 fi
5414
5415 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5416 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5417 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5418 fi
5419 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5421 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5422 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5423 $as_echo_n "(cached) " >&6
5424 else
5425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5426 /* end confdefs.h. */
5427 int i;
5428 _ACEOF
5429 if ac_fn_c_try_compile "$LINENO"; then :
5430 xorg_cv_cc_flag_unused_command_line_argument=yes
5431 else
5432 xorg_cv_cc_flag_unused_command_line_argument=no
5433 fi
5434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5435 fi
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5437 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5438 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5439 CFLAGS="$xorg_testset_save_CFLAGS"
5440 fi
5441
5442 found="no"
5443
5444 if test $found = "no" ; then
5445 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5446 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5447 fi
5448
5449 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5450 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5451 fi
5452
5453 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5454
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5456 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5457 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5458 if eval \${$cacheid+:} false; then :
5459 $as_echo_n "(cached) " >&6
5460 else
5461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5462 /* end confdefs.h. */
5463 int i;
5464 int
5465 main ()
5466 {
5467
5468 ;
5469 return 0;
5470 }
5471 _ACEOF
5472 if ac_fn_c_try_link "$LINENO"; then :
5473 eval $cacheid=yes
5474 else
5475 eval $cacheid=no
5476 fi
5477 rm -f core conftest.err conftest.$ac_objext \
5478 conftest$ac_exeext conftest.$ac_ext
5479 fi
5480
5481
5482 CFLAGS="$xorg_testset_save_CFLAGS"
5483
5484 eval supported=\$$cacheid
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5486 $as_echo "$supported" >&6; }
5487 if test "$supported" = "yes" ; then
5488 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5489 found="yes"
5490 fi
5491 fi
5492
5493
5494
5495
5496
5497 # This chunk adds additional warnings that could catch undesired effects.
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511 xorg_testset_save_CFLAGS="$CFLAGS"
5512
5513 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5514 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5516 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5517 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5518 $as_echo_n "(cached) " >&6
5519 else
5520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5521 /* end confdefs.h. */
5522 int i;
5523 _ACEOF
5524 if ac_fn_c_try_compile "$LINENO"; then :
5525 xorg_cv_cc_flag_unknown_warning_option=yes
5526 else
5527 xorg_cv_cc_flag_unknown_warning_option=no
5528 fi
5529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5530 fi
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5532 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5533 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5534 CFLAGS="$xorg_testset_save_CFLAGS"
5535 fi
5536
5537 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5538 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5539 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5540 fi
5541 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5543 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5544 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5545 $as_echo_n "(cached) " >&6
5546 else
5547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5548 /* end confdefs.h. */
5549 int i;
5550 _ACEOF
5551 if ac_fn_c_try_compile "$LINENO"; then :
5552 xorg_cv_cc_flag_unused_command_line_argument=yes
5553 else
5554 xorg_cv_cc_flag_unused_command_line_argument=no
5555 fi
5556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5557 fi
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5559 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5560 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5561 CFLAGS="$xorg_testset_save_CFLAGS"
5562 fi
5563
5564 found="no"
5565
5566 if test $found = "no" ; then
5567 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5568 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5569 fi
5570
5571 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5572 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5573 fi
5574
5575 CFLAGS="$CFLAGS -Wunused"
5576
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
5578 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
5579 cacheid=xorg_cv_cc_flag__Wunused
5580 if eval \${$cacheid+:} false; then :
5581 $as_echo_n "(cached) " >&6
5582 else
5583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5584 /* end confdefs.h. */
5585 int i;
5586 int
5587 main ()
5588 {
5589
5590 ;
5591 return 0;
5592 }
5593 _ACEOF
5594 if ac_fn_c_try_link "$LINENO"; then :
5595 eval $cacheid=yes
5596 else
5597 eval $cacheid=no
5598 fi
5599 rm -f core conftest.err conftest.$ac_objext \
5600 conftest$ac_exeext conftest.$ac_ext
5601 fi
5602
5603
5604 CFLAGS="$xorg_testset_save_CFLAGS"
5605
5606 eval supported=\$$cacheid
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5608 $as_echo "$supported" >&6; }
5609 if test "$supported" = "yes" ; then
5610 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
5611 found="yes"
5612 fi
5613 fi
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629 xorg_testset_save_CFLAGS="$CFLAGS"
5630
5631 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5632 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5634 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5635 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5636 $as_echo_n "(cached) " >&6
5637 else
5638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5639 /* end confdefs.h. */
5640 int i;
5641 _ACEOF
5642 if ac_fn_c_try_compile "$LINENO"; then :
5643 xorg_cv_cc_flag_unknown_warning_option=yes
5644 else
5645 xorg_cv_cc_flag_unknown_warning_option=no
5646 fi
5647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5648 fi
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5650 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5651 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5652 CFLAGS="$xorg_testset_save_CFLAGS"
5653 fi
5654
5655 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5656 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5657 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5658 fi
5659 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5661 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5662 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5663 $as_echo_n "(cached) " >&6
5664 else
5665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5666 /* end confdefs.h. */
5667 int i;
5668 _ACEOF
5669 if ac_fn_c_try_compile "$LINENO"; then :
5670 xorg_cv_cc_flag_unused_command_line_argument=yes
5671 else
5672 xorg_cv_cc_flag_unused_command_line_argument=no
5673 fi
5674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5675 fi
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5677 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5678 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5679 CFLAGS="$xorg_testset_save_CFLAGS"
5680 fi
5681
5682 found="no"
5683
5684 if test $found = "no" ; then
5685 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5686 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5687 fi
5688
5689 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5690 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5691 fi
5692
5693 CFLAGS="$CFLAGS -Wuninitialized"
5694
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
5696 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
5697 cacheid=xorg_cv_cc_flag__Wuninitialized
5698 if eval \${$cacheid+:} false; then :
5699 $as_echo_n "(cached) " >&6
5700 else
5701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5702 /* end confdefs.h. */
5703 int i;
5704 int
5705 main ()
5706 {
5707
5708 ;
5709 return 0;
5710 }
5711 _ACEOF
5712 if ac_fn_c_try_link "$LINENO"; then :
5713 eval $cacheid=yes
5714 else
5715 eval $cacheid=no
5716 fi
5717 rm -f core conftest.err conftest.$ac_objext \
5718 conftest$ac_exeext conftest.$ac_ext
5719 fi
5720
5721
5722 CFLAGS="$xorg_testset_save_CFLAGS"
5723
5724 eval supported=\$$cacheid
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5726 $as_echo "$supported" >&6; }
5727 if test "$supported" = "yes" ; then
5728 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
5729 found="yes"
5730 fi
5731 fi
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747 xorg_testset_save_CFLAGS="$CFLAGS"
5748
5749 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5750 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5752 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5753 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5754 $as_echo_n "(cached) " >&6
5755 else
5756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5757 /* end confdefs.h. */
5758 int i;
5759 _ACEOF
5760 if ac_fn_c_try_compile "$LINENO"; then :
5761 xorg_cv_cc_flag_unknown_warning_option=yes
5762 else
5763 xorg_cv_cc_flag_unknown_warning_option=no
5764 fi
5765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5766 fi
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5768 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5769 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5770 CFLAGS="$xorg_testset_save_CFLAGS"
5771 fi
5772
5773 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5774 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5775 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5776 fi
5777 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5779 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5780 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5781 $as_echo_n "(cached) " >&6
5782 else
5783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5784 /* end confdefs.h. */
5785 int i;
5786 _ACEOF
5787 if ac_fn_c_try_compile "$LINENO"; then :
5788 xorg_cv_cc_flag_unused_command_line_argument=yes
5789 else
5790 xorg_cv_cc_flag_unused_command_line_argument=no
5791 fi
5792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5793 fi
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5795 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5796 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5797 CFLAGS="$xorg_testset_save_CFLAGS"
5798 fi
5799
5800 found="no"
5801
5802 if test $found = "no" ; then
5803 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5804 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5805 fi
5806
5807 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5808 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5809 fi
5810
5811 CFLAGS="$CFLAGS -Wshadow"
5812
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
5814 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
5815 cacheid=xorg_cv_cc_flag__Wshadow
5816 if eval \${$cacheid+:} false; then :
5817 $as_echo_n "(cached) " >&6
5818 else
5819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5820 /* end confdefs.h. */
5821 int i;
5822 int
5823 main ()
5824 {
5825
5826 ;
5827 return 0;
5828 }
5829 _ACEOF
5830 if ac_fn_c_try_link "$LINENO"; then :
5831 eval $cacheid=yes
5832 else
5833 eval $cacheid=no
5834 fi
5835 rm -f core conftest.err conftest.$ac_objext \
5836 conftest$ac_exeext conftest.$ac_ext
5837 fi
5838
5839
5840 CFLAGS="$xorg_testset_save_CFLAGS"
5841
5842 eval supported=\$$cacheid
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5844 $as_echo "$supported" >&6; }
5845 if test "$supported" = "yes" ; then
5846 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
5847 found="yes"
5848 fi
5849 fi
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865 xorg_testset_save_CFLAGS="$CFLAGS"
5866
5867 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5868 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5870 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5871 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5872 $as_echo_n "(cached) " >&6
5873 else
5874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5875 /* end confdefs.h. */
5876 int i;
5877 _ACEOF
5878 if ac_fn_c_try_compile "$LINENO"; then :
5879 xorg_cv_cc_flag_unknown_warning_option=yes
5880 else
5881 xorg_cv_cc_flag_unknown_warning_option=no
5882 fi
5883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5884 fi
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5886 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5887 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5888 CFLAGS="$xorg_testset_save_CFLAGS"
5889 fi
5890
5891 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5892 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5893 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5894 fi
5895 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5897 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5898 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5899 $as_echo_n "(cached) " >&6
5900 else
5901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5902 /* end confdefs.h. */
5903 int i;
5904 _ACEOF
5905 if ac_fn_c_try_compile "$LINENO"; then :
5906 xorg_cv_cc_flag_unused_command_line_argument=yes
5907 else
5908 xorg_cv_cc_flag_unused_command_line_argument=no
5909 fi
5910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5911 fi
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5913 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5914 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5915 CFLAGS="$xorg_testset_save_CFLAGS"
5916 fi
5917
5918 found="no"
5919
5920 if test $found = "no" ; then
5921 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5922 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5923 fi
5924
5925 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5926 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5927 fi
5928
5929 CFLAGS="$CFLAGS -Wmissing-noreturn"
5930
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
5932 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
5933 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
5934 if eval \${$cacheid+:} false; then :
5935 $as_echo_n "(cached) " >&6
5936 else
5937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5938 /* end confdefs.h. */
5939 int i;
5940 int
5941 main ()
5942 {
5943
5944 ;
5945 return 0;
5946 }
5947 _ACEOF
5948 if ac_fn_c_try_link "$LINENO"; then :
5949 eval $cacheid=yes
5950 else
5951 eval $cacheid=no
5952 fi
5953 rm -f core conftest.err conftest.$ac_objext \
5954 conftest$ac_exeext conftest.$ac_ext
5955 fi
5956
5957
5958 CFLAGS="$xorg_testset_save_CFLAGS"
5959
5960 eval supported=\$$cacheid
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5962 $as_echo "$supported" >&6; }
5963 if test "$supported" = "yes" ; then
5964 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
5965 found="yes"
5966 fi
5967 fi
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983 xorg_testset_save_CFLAGS="$CFLAGS"
5984
5985 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5986 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5988 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5989 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5990 $as_echo_n "(cached) " >&6
5991 else
5992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5993 /* end confdefs.h. */
5994 int i;
5995 _ACEOF
5996 if ac_fn_c_try_compile "$LINENO"; then :
5997 xorg_cv_cc_flag_unknown_warning_option=yes
5998 else
5999 xorg_cv_cc_flag_unknown_warning_option=no
6000 fi
6001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6002 fi
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6004 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6005 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6006 CFLAGS="$xorg_testset_save_CFLAGS"
6007 fi
6008
6009 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6010 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6011 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6012 fi
6013 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6015 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6016 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6017 $as_echo_n "(cached) " >&6
6018 else
6019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6020 /* end confdefs.h. */
6021 int i;
6022 _ACEOF
6023 if ac_fn_c_try_compile "$LINENO"; then :
6024 xorg_cv_cc_flag_unused_command_line_argument=yes
6025 else
6026 xorg_cv_cc_flag_unused_command_line_argument=no
6027 fi
6028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6029 fi
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6031 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6032 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6033 CFLAGS="$xorg_testset_save_CFLAGS"
6034 fi
6035
6036 found="no"
6037
6038 if test $found = "no" ; then
6039 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6040 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6041 fi
6042
6043 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6044 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6045 fi
6046
6047 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6048
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6050 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6051 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6052 if eval \${$cacheid+:} false; then :
6053 $as_echo_n "(cached) " >&6
6054 else
6055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6056 /* end confdefs.h. */
6057 int i;
6058 int
6059 main ()
6060 {
6061
6062 ;
6063 return 0;
6064 }
6065 _ACEOF
6066 if ac_fn_c_try_link "$LINENO"; then :
6067 eval $cacheid=yes
6068 else
6069 eval $cacheid=no
6070 fi
6071 rm -f core conftest.err conftest.$ac_objext \
6072 conftest$ac_exeext conftest.$ac_ext
6073 fi
6074
6075
6076 CFLAGS="$xorg_testset_save_CFLAGS"
6077
6078 eval supported=\$$cacheid
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6080 $as_echo "$supported" >&6; }
6081 if test "$supported" = "yes" ; then
6082 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6083 found="yes"
6084 fi
6085 fi
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101 xorg_testset_save_CFLAGS="$CFLAGS"
6102
6103 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6104 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6106 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6107 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6108 $as_echo_n "(cached) " >&6
6109 else
6110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6111 /* end confdefs.h. */
6112 int i;
6113 _ACEOF
6114 if ac_fn_c_try_compile "$LINENO"; then :
6115 xorg_cv_cc_flag_unknown_warning_option=yes
6116 else
6117 xorg_cv_cc_flag_unknown_warning_option=no
6118 fi
6119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6120 fi
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6122 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6123 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6124 CFLAGS="$xorg_testset_save_CFLAGS"
6125 fi
6126
6127 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6128 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6129 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6130 fi
6131 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6133 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6134 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6135 $as_echo_n "(cached) " >&6
6136 else
6137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6138 /* end confdefs.h. */
6139 int i;
6140 _ACEOF
6141 if ac_fn_c_try_compile "$LINENO"; then :
6142 xorg_cv_cc_flag_unused_command_line_argument=yes
6143 else
6144 xorg_cv_cc_flag_unused_command_line_argument=no
6145 fi
6146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6147 fi
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6149 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6150 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6151 CFLAGS="$xorg_testset_save_CFLAGS"
6152 fi
6153
6154 found="no"
6155
6156 if test $found = "no" ; then
6157 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6158 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6159 fi
6160
6161 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6162 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6163 fi
6164
6165 CFLAGS="$CFLAGS -Wredundant-decls"
6166
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6168 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6169 cacheid=xorg_cv_cc_flag__Wredundant_decls
6170 if eval \${$cacheid+:} false; then :
6171 $as_echo_n "(cached) " >&6
6172 else
6173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6174 /* end confdefs.h. */
6175 int i;
6176 int
6177 main ()
6178 {
6179
6180 ;
6181 return 0;
6182 }
6183 _ACEOF
6184 if ac_fn_c_try_link "$LINENO"; then :
6185 eval $cacheid=yes
6186 else
6187 eval $cacheid=no
6188 fi
6189 rm -f core conftest.err conftest.$ac_objext \
6190 conftest$ac_exeext conftest.$ac_ext
6191 fi
6192
6193
6194 CFLAGS="$xorg_testset_save_CFLAGS"
6195
6196 eval supported=\$$cacheid
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6198 $as_echo "$supported" >&6; }
6199 if test "$supported" = "yes" ; then
6200 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6201 found="yes"
6202 fi
6203 fi
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219 xorg_testset_save_CFLAGS="$CFLAGS"
6220
6221 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6222 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6224 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6225 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6226 $as_echo_n "(cached) " >&6
6227 else
6228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6229 /* end confdefs.h. */
6230 int i;
6231 _ACEOF
6232 if ac_fn_c_try_compile "$LINENO"; then :
6233 xorg_cv_cc_flag_unknown_warning_option=yes
6234 else
6235 xorg_cv_cc_flag_unknown_warning_option=no
6236 fi
6237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6238 fi
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6240 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6241 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6242 CFLAGS="$xorg_testset_save_CFLAGS"
6243 fi
6244
6245 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6246 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6247 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6248 fi
6249 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6251 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6252 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6253 $as_echo_n "(cached) " >&6
6254 else
6255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6256 /* end confdefs.h. */
6257 int i;
6258 _ACEOF
6259 if ac_fn_c_try_compile "$LINENO"; then :
6260 xorg_cv_cc_flag_unused_command_line_argument=yes
6261 else
6262 xorg_cv_cc_flag_unused_command_line_argument=no
6263 fi
6264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6265 fi
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6267 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6268 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6269 CFLAGS="$xorg_testset_save_CFLAGS"
6270 fi
6271
6272 found="no"
6273
6274 if test $found = "no" ; then
6275 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6276 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6277 fi
6278
6279 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6280 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6281 fi
6282
6283 CFLAGS="$CFLAGS -Wlogical-op"
6284
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6286 $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
6287 cacheid=xorg_cv_cc_flag__Wlogical_op
6288 if eval \${$cacheid+:} false; then :
6289 $as_echo_n "(cached) " >&6
6290 else
6291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6292 /* end confdefs.h. */
6293 int i;
6294 int
6295 main ()
6296 {
6297
6298 ;
6299 return 0;
6300 }
6301 _ACEOF
6302 if ac_fn_c_try_link "$LINENO"; then :
6303 eval $cacheid=yes
6304 else
6305 eval $cacheid=no
6306 fi
6307 rm -f core conftest.err conftest.$ac_objext \
6308 conftest$ac_exeext conftest.$ac_ext
6309 fi
6310
6311
6312 CFLAGS="$xorg_testset_save_CFLAGS"
6313
6314 eval supported=\$$cacheid
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6316 $as_echo "$supported" >&6; }
6317 if test "$supported" = "yes" ; then
6318 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
6319 found="yes"
6320 fi
6321 fi
6322
6323
6324
6325 # These are currently disabled because they are noisy. They will be enabled
6326 # in the future once the codebase is sufficiently modernized to silence
6327 # them. For now, I don't want them to drown out the other warnings.
6328 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6329 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6330 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
6331
6332 # Turn some warnings into errors, so we don't accidently get successful builds
6333 # when there are problems that should be fixed.
6334
6335 if test "x$SELECTIVE_WERROR" = "xyes" ; then
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349 xorg_testset_save_CFLAGS="$CFLAGS"
6350
6351 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6352 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6354 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6355 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6356 $as_echo_n "(cached) " >&6
6357 else
6358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6359 /* end confdefs.h. */
6360 int i;
6361 _ACEOF
6362 if ac_fn_c_try_compile "$LINENO"; then :
6363 xorg_cv_cc_flag_unknown_warning_option=yes
6364 else
6365 xorg_cv_cc_flag_unknown_warning_option=no
6366 fi
6367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6368 fi
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6370 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6371 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6372 CFLAGS="$xorg_testset_save_CFLAGS"
6373 fi
6374
6375 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6376 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6377 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6378 fi
6379 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6381 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6382 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6383 $as_echo_n "(cached) " >&6
6384 else
6385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6386 /* end confdefs.h. */
6387 int i;
6388 _ACEOF
6389 if ac_fn_c_try_compile "$LINENO"; then :
6390 xorg_cv_cc_flag_unused_command_line_argument=yes
6391 else
6392 xorg_cv_cc_flag_unused_command_line_argument=no
6393 fi
6394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6395 fi
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6397 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6398 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6399 CFLAGS="$xorg_testset_save_CFLAGS"
6400 fi
6401
6402 found="no"
6403
6404 if test $found = "no" ; then
6405 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6406 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6407 fi
6408
6409 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6410 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6411 fi
6412
6413 CFLAGS="$CFLAGS -Werror=implicit"
6414
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6416 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6417 cacheid=xorg_cv_cc_flag__Werror_implicit
6418 if eval \${$cacheid+:} false; then :
6419 $as_echo_n "(cached) " >&6
6420 else
6421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6422 /* end confdefs.h. */
6423 int i;
6424 int
6425 main ()
6426 {
6427
6428 ;
6429 return 0;
6430 }
6431 _ACEOF
6432 if ac_fn_c_try_link "$LINENO"; then :
6433 eval $cacheid=yes
6434 else
6435 eval $cacheid=no
6436 fi
6437 rm -f core conftest.err conftest.$ac_objext \
6438 conftest$ac_exeext conftest.$ac_ext
6439 fi
6440
6441
6442 CFLAGS="$xorg_testset_save_CFLAGS"
6443
6444 eval supported=\$$cacheid
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6446 $as_echo "$supported" >&6; }
6447 if test "$supported" = "yes" ; then
6448 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6449 found="yes"
6450 fi
6451 fi
6452
6453 if test $found = "no" ; then
6454 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6455 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6456 fi
6457
6458 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6459 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6460 fi
6461
6462 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6463
6464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6465 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6466 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
6467 if eval \${$cacheid+:} 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 int
6474 main ()
6475 {
6476
6477 ;
6478 return 0;
6479 }
6480 _ACEOF
6481 if ac_fn_c_try_link "$LINENO"; then :
6482 eval $cacheid=yes
6483 else
6484 eval $cacheid=no
6485 fi
6486 rm -f core conftest.err conftest.$ac_objext \
6487 conftest$ac_exeext conftest.$ac_ext
6488 fi
6489
6490
6491 CFLAGS="$xorg_testset_save_CFLAGS"
6492
6493 eval supported=\$$cacheid
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6495 $as_echo "$supported" >&6; }
6496 if test "$supported" = "yes" ; then
6497 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6498 found="yes"
6499 fi
6500 fi
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516 xorg_testset_save_CFLAGS="$CFLAGS"
6517
6518 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6519 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6521 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6522 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6523 $as_echo_n "(cached) " >&6
6524 else
6525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6526 /* end confdefs.h. */
6527 int i;
6528 _ACEOF
6529 if ac_fn_c_try_compile "$LINENO"; then :
6530 xorg_cv_cc_flag_unknown_warning_option=yes
6531 else
6532 xorg_cv_cc_flag_unknown_warning_option=no
6533 fi
6534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6535 fi
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6537 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6538 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6539 CFLAGS="$xorg_testset_save_CFLAGS"
6540 fi
6541
6542 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6543 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6544 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6545 fi
6546 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6548 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6549 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6550 $as_echo_n "(cached) " >&6
6551 else
6552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6553 /* end confdefs.h. */
6554 int i;
6555 _ACEOF
6556 if ac_fn_c_try_compile "$LINENO"; then :
6557 xorg_cv_cc_flag_unused_command_line_argument=yes
6558 else
6559 xorg_cv_cc_flag_unused_command_line_argument=no
6560 fi
6561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6562 fi
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6564 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6565 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6566 CFLAGS="$xorg_testset_save_CFLAGS"
6567 fi
6568
6569 found="no"
6570
6571 if test $found = "no" ; then
6572 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6573 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6574 fi
6575
6576 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6577 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6578 fi
6579
6580 CFLAGS="$CFLAGS -Werror=nonnull"
6581
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
6583 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
6584 cacheid=xorg_cv_cc_flag__Werror_nonnull
6585 if eval \${$cacheid+:} 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 int
6592 main ()
6593 {
6594
6595 ;
6596 return 0;
6597 }
6598 _ACEOF
6599 if ac_fn_c_try_link "$LINENO"; then :
6600 eval $cacheid=yes
6601 else
6602 eval $cacheid=no
6603 fi
6604 rm -f core conftest.err conftest.$ac_objext \
6605 conftest$ac_exeext conftest.$ac_ext
6606 fi
6607
6608
6609 CFLAGS="$xorg_testset_save_CFLAGS"
6610
6611 eval supported=\$$cacheid
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6613 $as_echo "$supported" >&6; }
6614 if test "$supported" = "yes" ; then
6615 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
6616 found="yes"
6617 fi
6618 fi
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634 xorg_testset_save_CFLAGS="$CFLAGS"
6635
6636 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6637 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6639 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6640 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6641 $as_echo_n "(cached) " >&6
6642 else
6643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6644 /* end confdefs.h. */
6645 int i;
6646 _ACEOF
6647 if ac_fn_c_try_compile "$LINENO"; then :
6648 xorg_cv_cc_flag_unknown_warning_option=yes
6649 else
6650 xorg_cv_cc_flag_unknown_warning_option=no
6651 fi
6652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6653 fi
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6655 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6656 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6657 CFLAGS="$xorg_testset_save_CFLAGS"
6658 fi
6659
6660 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6661 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6662 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6663 fi
6664 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6666 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6667 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6668 $as_echo_n "(cached) " >&6
6669 else
6670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6671 /* end confdefs.h. */
6672 int i;
6673 _ACEOF
6674 if ac_fn_c_try_compile "$LINENO"; then :
6675 xorg_cv_cc_flag_unused_command_line_argument=yes
6676 else
6677 xorg_cv_cc_flag_unused_command_line_argument=no
6678 fi
6679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6680 fi
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6682 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6683 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6684 CFLAGS="$xorg_testset_save_CFLAGS"
6685 fi
6686
6687 found="no"
6688
6689 if test $found = "no" ; then
6690 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6691 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6692 fi
6693
6694 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6695 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6696 fi
6697
6698 CFLAGS="$CFLAGS -Werror=init-self"
6699
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
6701 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
6702 cacheid=xorg_cv_cc_flag__Werror_init_self
6703 if eval \${$cacheid+:} 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 int
6710 main ()
6711 {
6712
6713 ;
6714 return 0;
6715 }
6716 _ACEOF
6717 if ac_fn_c_try_link "$LINENO"; then :
6718 eval $cacheid=yes
6719 else
6720 eval $cacheid=no
6721 fi
6722 rm -f core conftest.err conftest.$ac_objext \
6723 conftest$ac_exeext conftest.$ac_ext
6724 fi
6725
6726
6727 CFLAGS="$xorg_testset_save_CFLAGS"
6728
6729 eval supported=\$$cacheid
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6731 $as_echo "$supported" >&6; }
6732 if test "$supported" = "yes" ; then
6733 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
6734 found="yes"
6735 fi
6736 fi
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752 xorg_testset_save_CFLAGS="$CFLAGS"
6753
6754 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6755 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6757 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6758 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6759 $as_echo_n "(cached) " >&6
6760 else
6761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6762 /* end confdefs.h. */
6763 int i;
6764 _ACEOF
6765 if ac_fn_c_try_compile "$LINENO"; then :
6766 xorg_cv_cc_flag_unknown_warning_option=yes
6767 else
6768 xorg_cv_cc_flag_unknown_warning_option=no
6769 fi
6770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6771 fi
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6773 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6774 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6775 CFLAGS="$xorg_testset_save_CFLAGS"
6776 fi
6777
6778 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6779 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6780 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6781 fi
6782 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6784 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6785 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6786 $as_echo_n "(cached) " >&6
6787 else
6788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6789 /* end confdefs.h. */
6790 int i;
6791 _ACEOF
6792 if ac_fn_c_try_compile "$LINENO"; then :
6793 xorg_cv_cc_flag_unused_command_line_argument=yes
6794 else
6795 xorg_cv_cc_flag_unused_command_line_argument=no
6796 fi
6797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6798 fi
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6800 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6801 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6802 CFLAGS="$xorg_testset_save_CFLAGS"
6803 fi
6804
6805 found="no"
6806
6807 if test $found = "no" ; then
6808 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6809 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6810 fi
6811
6812 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6813 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6814 fi
6815
6816 CFLAGS="$CFLAGS -Werror=main"
6817
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
6819 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
6820 cacheid=xorg_cv_cc_flag__Werror_main
6821 if eval \${$cacheid+:} 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 int
6828 main ()
6829 {
6830
6831 ;
6832 return 0;
6833 }
6834 _ACEOF
6835 if ac_fn_c_try_link "$LINENO"; then :
6836 eval $cacheid=yes
6837 else
6838 eval $cacheid=no
6839 fi
6840 rm -f core conftest.err conftest.$ac_objext \
6841 conftest$ac_exeext conftest.$ac_ext
6842 fi
6843
6844
6845 CFLAGS="$xorg_testset_save_CFLAGS"
6846
6847 eval supported=\$$cacheid
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6849 $as_echo "$supported" >&6; }
6850 if test "$supported" = "yes" ; then
6851 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
6852 found="yes"
6853 fi
6854 fi
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870 xorg_testset_save_CFLAGS="$CFLAGS"
6871
6872 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6873 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6875 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6876 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6877 $as_echo_n "(cached) " >&6
6878 else
6879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6880 /* end confdefs.h. */
6881 int i;
6882 _ACEOF
6883 if ac_fn_c_try_compile "$LINENO"; then :
6884 xorg_cv_cc_flag_unknown_warning_option=yes
6885 else
6886 xorg_cv_cc_flag_unknown_warning_option=no
6887 fi
6888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6889 fi
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6891 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6892 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6893 CFLAGS="$xorg_testset_save_CFLAGS"
6894 fi
6895
6896 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6897 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6898 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6899 fi
6900 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6902 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6903 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6904 $as_echo_n "(cached) " >&6
6905 else
6906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6907 /* end confdefs.h. */
6908 int i;
6909 _ACEOF
6910 if ac_fn_c_try_compile "$LINENO"; then :
6911 xorg_cv_cc_flag_unused_command_line_argument=yes
6912 else
6913 xorg_cv_cc_flag_unused_command_line_argument=no
6914 fi
6915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6916 fi
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6918 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6919 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6920 CFLAGS="$xorg_testset_save_CFLAGS"
6921 fi
6922
6923 found="no"
6924
6925 if test $found = "no" ; then
6926 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6927 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6928 fi
6929
6930 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6931 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6932 fi
6933
6934 CFLAGS="$CFLAGS -Werror=missing-braces"
6935
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
6937 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
6938 cacheid=xorg_cv_cc_flag__Werror_missing_braces
6939 if eval \${$cacheid+:} false; then :
6940 $as_echo_n "(cached) " >&6
6941 else
6942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6943 /* end confdefs.h. */
6944 int i;
6945 int
6946 main ()
6947 {
6948
6949 ;
6950 return 0;
6951 }
6952 _ACEOF
6953 if ac_fn_c_try_link "$LINENO"; then :
6954 eval $cacheid=yes
6955 else
6956 eval $cacheid=no
6957 fi
6958 rm -f core conftest.err conftest.$ac_objext \
6959 conftest$ac_exeext conftest.$ac_ext
6960 fi
6961
6962
6963 CFLAGS="$xorg_testset_save_CFLAGS"
6964
6965 eval supported=\$$cacheid
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6967 $as_echo "$supported" >&6; }
6968 if test "$supported" = "yes" ; then
6969 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
6970 found="yes"
6971 fi
6972 fi
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988 xorg_testset_save_CFLAGS="$CFLAGS"
6989
6990 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6991 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6993 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6994 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6995 $as_echo_n "(cached) " >&6
6996 else
6997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6998 /* end confdefs.h. */
6999 int i;
7000 _ACEOF
7001 if ac_fn_c_try_compile "$LINENO"; then :
7002 xorg_cv_cc_flag_unknown_warning_option=yes
7003 else
7004 xorg_cv_cc_flag_unknown_warning_option=no
7005 fi
7006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7007 fi
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7009 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7010 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7011 CFLAGS="$xorg_testset_save_CFLAGS"
7012 fi
7013
7014 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7015 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7016 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7017 fi
7018 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7020 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7021 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7022 $as_echo_n "(cached) " >&6
7023 else
7024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7025 /* end confdefs.h. */
7026 int i;
7027 _ACEOF
7028 if ac_fn_c_try_compile "$LINENO"; then :
7029 xorg_cv_cc_flag_unused_command_line_argument=yes
7030 else
7031 xorg_cv_cc_flag_unused_command_line_argument=no
7032 fi
7033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7034 fi
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7036 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7037 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7038 CFLAGS="$xorg_testset_save_CFLAGS"
7039 fi
7040
7041 found="no"
7042
7043 if test $found = "no" ; then
7044 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7045 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7046 fi
7047
7048 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7049 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7050 fi
7051
7052 CFLAGS="$CFLAGS -Werror=sequence-point"
7053
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7055 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7056 cacheid=xorg_cv_cc_flag__Werror_sequence_point
7057 if eval \${$cacheid+:} false; then :
7058 $as_echo_n "(cached) " >&6
7059 else
7060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7061 /* end confdefs.h. */
7062 int i;
7063 int
7064 main ()
7065 {
7066
7067 ;
7068 return 0;
7069 }
7070 _ACEOF
7071 if ac_fn_c_try_link "$LINENO"; then :
7072 eval $cacheid=yes
7073 else
7074 eval $cacheid=no
7075 fi
7076 rm -f core conftest.err conftest.$ac_objext \
7077 conftest$ac_exeext conftest.$ac_ext
7078 fi
7079
7080
7081 CFLAGS="$xorg_testset_save_CFLAGS"
7082
7083 eval supported=\$$cacheid
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7085 $as_echo "$supported" >&6; }
7086 if test "$supported" = "yes" ; then
7087 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7088 found="yes"
7089 fi
7090 fi
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106 xorg_testset_save_CFLAGS="$CFLAGS"
7107
7108 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7109 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7111 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7112 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7113 $as_echo_n "(cached) " >&6
7114 else
7115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7116 /* end confdefs.h. */
7117 int i;
7118 _ACEOF
7119 if ac_fn_c_try_compile "$LINENO"; then :
7120 xorg_cv_cc_flag_unknown_warning_option=yes
7121 else
7122 xorg_cv_cc_flag_unknown_warning_option=no
7123 fi
7124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7125 fi
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7127 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7128 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7129 CFLAGS="$xorg_testset_save_CFLAGS"
7130 fi
7131
7132 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7133 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7134 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7135 fi
7136 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7138 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7139 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7140 $as_echo_n "(cached) " >&6
7141 else
7142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7143 /* end confdefs.h. */
7144 int i;
7145 _ACEOF
7146 if ac_fn_c_try_compile "$LINENO"; then :
7147 xorg_cv_cc_flag_unused_command_line_argument=yes
7148 else
7149 xorg_cv_cc_flag_unused_command_line_argument=no
7150 fi
7151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7152 fi
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7154 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7155 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7156 CFLAGS="$xorg_testset_save_CFLAGS"
7157 fi
7158
7159 found="no"
7160
7161 if test $found = "no" ; then
7162 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7163 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7164 fi
7165
7166 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7167 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7168 fi
7169
7170 CFLAGS="$CFLAGS -Werror=return-type"
7171
7172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7173 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7174 cacheid=xorg_cv_cc_flag__Werror_return_type
7175 if eval \${$cacheid+:} false; then :
7176 $as_echo_n "(cached) " >&6
7177 else
7178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7179 /* end confdefs.h. */
7180 int i;
7181 int
7182 main ()
7183 {
7184
7185 ;
7186 return 0;
7187 }
7188 _ACEOF
7189 if ac_fn_c_try_link "$LINENO"; then :
7190 eval $cacheid=yes
7191 else
7192 eval $cacheid=no
7193 fi
7194 rm -f core conftest.err conftest.$ac_objext \
7195 conftest$ac_exeext conftest.$ac_ext
7196 fi
7197
7198
7199 CFLAGS="$xorg_testset_save_CFLAGS"
7200
7201 eval supported=\$$cacheid
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7203 $as_echo "$supported" >&6; }
7204 if test "$supported" = "yes" ; then
7205 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7206 found="yes"
7207 fi
7208 fi
7209
7210 if test $found = "no" ; then
7211 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7212 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7213 fi
7214
7215 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7216 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7217 fi
7218
7219 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7220
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7222 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7223 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7224 if eval \${$cacheid+:} false; then :
7225 $as_echo_n "(cached) " >&6
7226 else
7227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7228 /* end confdefs.h. */
7229 int i;
7230 int
7231 main ()
7232 {
7233
7234 ;
7235 return 0;
7236 }
7237 _ACEOF
7238 if ac_fn_c_try_link "$LINENO"; then :
7239 eval $cacheid=yes
7240 else
7241 eval $cacheid=no
7242 fi
7243 rm -f core conftest.err conftest.$ac_objext \
7244 conftest$ac_exeext conftest.$ac_ext
7245 fi
7246
7247
7248 CFLAGS="$xorg_testset_save_CFLAGS"
7249
7250 eval supported=\$$cacheid
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7252 $as_echo "$supported" >&6; }
7253 if test "$supported" = "yes" ; then
7254 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7255 found="yes"
7256 fi
7257 fi
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273 xorg_testset_save_CFLAGS="$CFLAGS"
7274
7275 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7276 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7278 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7279 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7280 $as_echo_n "(cached) " >&6
7281 else
7282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7283 /* end confdefs.h. */
7284 int i;
7285 _ACEOF
7286 if ac_fn_c_try_compile "$LINENO"; then :
7287 xorg_cv_cc_flag_unknown_warning_option=yes
7288 else
7289 xorg_cv_cc_flag_unknown_warning_option=no
7290 fi
7291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7292 fi
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7294 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7295 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7296 CFLAGS="$xorg_testset_save_CFLAGS"
7297 fi
7298
7299 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7300 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7301 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7302 fi
7303 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7305 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7306 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7307 $as_echo_n "(cached) " >&6
7308 else
7309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7310 /* end confdefs.h. */
7311 int i;
7312 _ACEOF
7313 if ac_fn_c_try_compile "$LINENO"; then :
7314 xorg_cv_cc_flag_unused_command_line_argument=yes
7315 else
7316 xorg_cv_cc_flag_unused_command_line_argument=no
7317 fi
7318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7319 fi
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7321 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7322 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7323 CFLAGS="$xorg_testset_save_CFLAGS"
7324 fi
7325
7326 found="no"
7327
7328 if test $found = "no" ; then
7329 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7330 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7331 fi
7332
7333 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7334 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7335 fi
7336
7337 CFLAGS="$CFLAGS -Werror=trigraphs"
7338
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7340 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7341 cacheid=xorg_cv_cc_flag__Werror_trigraphs
7342 if eval \${$cacheid+:} false; then :
7343 $as_echo_n "(cached) " >&6
7344 else
7345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7346 /* end confdefs.h. */
7347 int i;
7348 int
7349 main ()
7350 {
7351
7352 ;
7353 return 0;
7354 }
7355 _ACEOF
7356 if ac_fn_c_try_link "$LINENO"; then :
7357 eval $cacheid=yes
7358 else
7359 eval $cacheid=no
7360 fi
7361 rm -f core conftest.err conftest.$ac_objext \
7362 conftest$ac_exeext conftest.$ac_ext
7363 fi
7364
7365
7366 CFLAGS="$xorg_testset_save_CFLAGS"
7367
7368 eval supported=\$$cacheid
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7370 $as_echo "$supported" >&6; }
7371 if test "$supported" = "yes" ; then
7372 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7373 found="yes"
7374 fi
7375 fi
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391 xorg_testset_save_CFLAGS="$CFLAGS"
7392
7393 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7394 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7396 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7397 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7398 $as_echo_n "(cached) " >&6
7399 else
7400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7401 /* end confdefs.h. */
7402 int i;
7403 _ACEOF
7404 if ac_fn_c_try_compile "$LINENO"; then :
7405 xorg_cv_cc_flag_unknown_warning_option=yes
7406 else
7407 xorg_cv_cc_flag_unknown_warning_option=no
7408 fi
7409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7410 fi
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7412 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7413 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7414 CFLAGS="$xorg_testset_save_CFLAGS"
7415 fi
7416
7417 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7418 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7419 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7420 fi
7421 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7423 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7424 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7425 $as_echo_n "(cached) " >&6
7426 else
7427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7428 /* end confdefs.h. */
7429 int i;
7430 _ACEOF
7431 if ac_fn_c_try_compile "$LINENO"; then :
7432 xorg_cv_cc_flag_unused_command_line_argument=yes
7433 else
7434 xorg_cv_cc_flag_unused_command_line_argument=no
7435 fi
7436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7437 fi
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7439 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7440 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7441 CFLAGS="$xorg_testset_save_CFLAGS"
7442 fi
7443
7444 found="no"
7445
7446 if test $found = "no" ; then
7447 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7448 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7449 fi
7450
7451 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7452 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7453 fi
7454
7455 CFLAGS="$CFLAGS -Werror=array-bounds"
7456
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7458 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
7459 cacheid=xorg_cv_cc_flag__Werror_array_bounds
7460 if eval \${$cacheid+:} false; then :
7461 $as_echo_n "(cached) " >&6
7462 else
7463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7464 /* end confdefs.h. */
7465 int i;
7466 int
7467 main ()
7468 {
7469
7470 ;
7471 return 0;
7472 }
7473 _ACEOF
7474 if ac_fn_c_try_link "$LINENO"; then :
7475 eval $cacheid=yes
7476 else
7477 eval $cacheid=no
7478 fi
7479 rm -f core conftest.err conftest.$ac_objext \
7480 conftest$ac_exeext conftest.$ac_ext
7481 fi
7482
7483
7484 CFLAGS="$xorg_testset_save_CFLAGS"
7485
7486 eval supported=\$$cacheid
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7488 $as_echo "$supported" >&6; }
7489 if test "$supported" = "yes" ; then
7490 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7491 found="yes"
7492 fi
7493 fi
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509 xorg_testset_save_CFLAGS="$CFLAGS"
7510
7511 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7512 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7514 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7515 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7516 $as_echo_n "(cached) " >&6
7517 else
7518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7519 /* end confdefs.h. */
7520 int i;
7521 _ACEOF
7522 if ac_fn_c_try_compile "$LINENO"; then :
7523 xorg_cv_cc_flag_unknown_warning_option=yes
7524 else
7525 xorg_cv_cc_flag_unknown_warning_option=no
7526 fi
7527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7528 fi
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7530 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7531 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7532 CFLAGS="$xorg_testset_save_CFLAGS"
7533 fi
7534
7535 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7536 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7537 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7538 fi
7539 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7541 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7542 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7543 $as_echo_n "(cached) " >&6
7544 else
7545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7546 /* end confdefs.h. */
7547 int i;
7548 _ACEOF
7549 if ac_fn_c_try_compile "$LINENO"; then :
7550 xorg_cv_cc_flag_unused_command_line_argument=yes
7551 else
7552 xorg_cv_cc_flag_unused_command_line_argument=no
7553 fi
7554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7555 fi
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7557 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7558 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7559 CFLAGS="$xorg_testset_save_CFLAGS"
7560 fi
7561
7562 found="no"
7563
7564 if test $found = "no" ; then
7565 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7566 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7567 fi
7568
7569 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7570 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7571 fi
7572
7573 CFLAGS="$CFLAGS -Werror=write-strings"
7574
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
7576 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
7577 cacheid=xorg_cv_cc_flag__Werror_write_strings
7578 if eval \${$cacheid+:} false; then :
7579 $as_echo_n "(cached) " >&6
7580 else
7581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7582 /* end confdefs.h. */
7583 int i;
7584 int
7585 main ()
7586 {
7587
7588 ;
7589 return 0;
7590 }
7591 _ACEOF
7592 if ac_fn_c_try_link "$LINENO"; then :
7593 eval $cacheid=yes
7594 else
7595 eval $cacheid=no
7596 fi
7597 rm -f core conftest.err conftest.$ac_objext \
7598 conftest$ac_exeext conftest.$ac_ext
7599 fi
7600
7601
7602 CFLAGS="$xorg_testset_save_CFLAGS"
7603
7604 eval supported=\$$cacheid
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7606 $as_echo "$supported" >&6; }
7607 if test "$supported" = "yes" ; then
7608 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
7609 found="yes"
7610 fi
7611 fi
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627 xorg_testset_save_CFLAGS="$CFLAGS"
7628
7629 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7630 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7632 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7633 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7634 $as_echo_n "(cached) " >&6
7635 else
7636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7637 /* end confdefs.h. */
7638 int i;
7639 _ACEOF
7640 if ac_fn_c_try_compile "$LINENO"; then :
7641 xorg_cv_cc_flag_unknown_warning_option=yes
7642 else
7643 xorg_cv_cc_flag_unknown_warning_option=no
7644 fi
7645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7646 fi
7647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7648 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7649 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7650 CFLAGS="$xorg_testset_save_CFLAGS"
7651 fi
7652
7653 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7654 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7655 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7656 fi
7657 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7659 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7660 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7661 $as_echo_n "(cached) " >&6
7662 else
7663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7664 /* end confdefs.h. */
7665 int i;
7666 _ACEOF
7667 if ac_fn_c_try_compile "$LINENO"; then :
7668 xorg_cv_cc_flag_unused_command_line_argument=yes
7669 else
7670 xorg_cv_cc_flag_unused_command_line_argument=no
7671 fi
7672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7673 fi
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7675 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7676 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7677 CFLAGS="$xorg_testset_save_CFLAGS"
7678 fi
7679
7680 found="no"
7681
7682 if test $found = "no" ; then
7683 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7684 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7685 fi
7686
7687 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7688 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7689 fi
7690
7691 CFLAGS="$CFLAGS -Werror=address"
7692
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
7694 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
7695 cacheid=xorg_cv_cc_flag__Werror_address
7696 if eval \${$cacheid+:} false; then :
7697 $as_echo_n "(cached) " >&6
7698 else
7699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7700 /* end confdefs.h. */
7701 int i;
7702 int
7703 main ()
7704 {
7705
7706 ;
7707 return 0;
7708 }
7709 _ACEOF
7710 if ac_fn_c_try_link "$LINENO"; then :
7711 eval $cacheid=yes
7712 else
7713 eval $cacheid=no
7714 fi
7715 rm -f core conftest.err conftest.$ac_objext \
7716 conftest$ac_exeext conftest.$ac_ext
7717 fi
7718
7719
7720 CFLAGS="$xorg_testset_save_CFLAGS"
7721
7722 eval supported=\$$cacheid
7723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7724 $as_echo "$supported" >&6; }
7725 if test "$supported" = "yes" ; then
7726 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
7727 found="yes"
7728 fi
7729 fi
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745 xorg_testset_save_CFLAGS="$CFLAGS"
7746
7747 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7748 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7750 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7751 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7752 $as_echo_n "(cached) " >&6
7753 else
7754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7755 /* end confdefs.h. */
7756 int i;
7757 _ACEOF
7758 if ac_fn_c_try_compile "$LINENO"; then :
7759 xorg_cv_cc_flag_unknown_warning_option=yes
7760 else
7761 xorg_cv_cc_flag_unknown_warning_option=no
7762 fi
7763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7764 fi
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7766 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7767 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7768 CFLAGS="$xorg_testset_save_CFLAGS"
7769 fi
7770
7771 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7772 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7773 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7774 fi
7775 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7777 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7778 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7779 $as_echo_n "(cached) " >&6
7780 else
7781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7782 /* end confdefs.h. */
7783 int i;
7784 _ACEOF
7785 if ac_fn_c_try_compile "$LINENO"; then :
7786 xorg_cv_cc_flag_unused_command_line_argument=yes
7787 else
7788 xorg_cv_cc_flag_unused_command_line_argument=no
7789 fi
7790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7791 fi
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7793 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7794 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7795 CFLAGS="$xorg_testset_save_CFLAGS"
7796 fi
7797
7798 found="no"
7799
7800 if test $found = "no" ; then
7801 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7802 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7803 fi
7804
7805 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7806 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7807 fi
7808
7809 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
7810
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
7812 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
7813 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
7814 if eval \${$cacheid+:} false; then :
7815 $as_echo_n "(cached) " >&6
7816 else
7817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7818 /* end confdefs.h. */
7819 int i;
7820 int
7821 main ()
7822 {
7823
7824 ;
7825 return 0;
7826 }
7827 _ACEOF
7828 if ac_fn_c_try_link "$LINENO"; then :
7829 eval $cacheid=yes
7830 else
7831 eval $cacheid=no
7832 fi
7833 rm -f core conftest.err conftest.$ac_objext \
7834 conftest$ac_exeext conftest.$ac_ext
7835 fi
7836
7837
7838 CFLAGS="$xorg_testset_save_CFLAGS"
7839
7840 eval supported=\$$cacheid
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7842 $as_echo "$supported" >&6; }
7843 if test "$supported" = "yes" ; then
7844 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
7845 found="yes"
7846 fi
7847 fi
7848
7849 if test $found = "no" ; then
7850 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7851 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7852 fi
7853
7854 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7855 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7856 fi
7857
7858 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
7859
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
7861 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
7862 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
7863 if eval \${$cacheid+:} false; then :
7864 $as_echo_n "(cached) " >&6
7865 else
7866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7867 /* end confdefs.h. */
7868 int i;
7869 int
7870 main ()
7871 {
7872
7873 ;
7874 return 0;
7875 }
7876 _ACEOF
7877 if ac_fn_c_try_link "$LINENO"; then :
7878 eval $cacheid=yes
7879 else
7880 eval $cacheid=no
7881 fi
7882 rm -f core conftest.err conftest.$ac_objext \
7883 conftest$ac_exeext conftest.$ac_ext
7884 fi
7885
7886
7887 CFLAGS="$xorg_testset_save_CFLAGS"
7888
7889 eval supported=\$$cacheid
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7891 $as_echo "$supported" >&6; }
7892 if test "$supported" = "yes" ; then
7893 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
7894 found="yes"
7895 fi
7896 fi
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912 xorg_testset_save_CFLAGS="$CFLAGS"
7913
7914 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7915 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7917 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7918 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7919 $as_echo_n "(cached) " >&6
7920 else
7921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7922 /* end confdefs.h. */
7923 int i;
7924 _ACEOF
7925 if ac_fn_c_try_compile "$LINENO"; then :
7926 xorg_cv_cc_flag_unknown_warning_option=yes
7927 else
7928 xorg_cv_cc_flag_unknown_warning_option=no
7929 fi
7930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7931 fi
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7933 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7934 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7935 CFLAGS="$xorg_testset_save_CFLAGS"
7936 fi
7937
7938 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7939 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7940 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7941 fi
7942 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7944 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7945 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7946 $as_echo_n "(cached) " >&6
7947 else
7948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7949 /* end confdefs.h. */
7950 int i;
7951 _ACEOF
7952 if ac_fn_c_try_compile "$LINENO"; then :
7953 xorg_cv_cc_flag_unused_command_line_argument=yes
7954 else
7955 xorg_cv_cc_flag_unused_command_line_argument=no
7956 fi
7957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7958 fi
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7960 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7961 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7962 CFLAGS="$xorg_testset_save_CFLAGS"
7963 fi
7964
7965 found="no"
7966
7967 if test $found = "no" ; then
7968 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7969 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7970 fi
7971
7972 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7973 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7974 fi
7975
7976 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
7977
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
7979 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
7980 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
7981 if eval \${$cacheid+:} false; then :
7982 $as_echo_n "(cached) " >&6
7983 else
7984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7985 /* end confdefs.h. */
7986 int i;
7987 int
7988 main ()
7989 {
7990
7991 ;
7992 return 0;
7993 }
7994 _ACEOF
7995 if ac_fn_c_try_link "$LINENO"; then :
7996 eval $cacheid=yes
7997 else
7998 eval $cacheid=no
7999 fi
8000 rm -f core conftest.err conftest.$ac_objext \
8001 conftest$ac_exeext conftest.$ac_ext
8002 fi
8003
8004
8005 CFLAGS="$xorg_testset_save_CFLAGS"
8006
8007 eval supported=\$$cacheid
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8009 $as_echo "$supported" >&6; }
8010 if test "$supported" = "yes" ; then
8011 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8012 found="yes"
8013 fi
8014 fi
8015
8016 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8017 else
8018 { $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
8019 $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;}
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033 xorg_testset_save_CFLAGS="$CFLAGS"
8034
8035 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8036 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8038 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8039 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8040 $as_echo_n "(cached) " >&6
8041 else
8042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8043 /* end confdefs.h. */
8044 int i;
8045 _ACEOF
8046 if ac_fn_c_try_compile "$LINENO"; then :
8047 xorg_cv_cc_flag_unknown_warning_option=yes
8048 else
8049 xorg_cv_cc_flag_unknown_warning_option=no
8050 fi
8051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8052 fi
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8054 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8055 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8056 CFLAGS="$xorg_testset_save_CFLAGS"
8057 fi
8058
8059 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8060 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8061 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8062 fi
8063 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8065 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8066 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8067 $as_echo_n "(cached) " >&6
8068 else
8069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8070 /* end confdefs.h. */
8071 int i;
8072 _ACEOF
8073 if ac_fn_c_try_compile "$LINENO"; then :
8074 xorg_cv_cc_flag_unused_command_line_argument=yes
8075 else
8076 xorg_cv_cc_flag_unused_command_line_argument=no
8077 fi
8078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8079 fi
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8081 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8082 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8083 CFLAGS="$xorg_testset_save_CFLAGS"
8084 fi
8085
8086 found="no"
8087
8088 if test $found = "no" ; then
8089 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8090 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8091 fi
8092
8093 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8094 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8095 fi
8096
8097 CFLAGS="$CFLAGS -Wimplicit"
8098
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8100 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8101 cacheid=xorg_cv_cc_flag__Wimplicit
8102 if eval \${$cacheid+:} false; then :
8103 $as_echo_n "(cached) " >&6
8104 else
8105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8106 /* end confdefs.h. */
8107 int i;
8108 int
8109 main ()
8110 {
8111
8112 ;
8113 return 0;
8114 }
8115 _ACEOF
8116 if ac_fn_c_try_link "$LINENO"; then :
8117 eval $cacheid=yes
8118 else
8119 eval $cacheid=no
8120 fi
8121 rm -f core conftest.err conftest.$ac_objext \
8122 conftest$ac_exeext conftest.$ac_ext
8123 fi
8124
8125
8126 CFLAGS="$xorg_testset_save_CFLAGS"
8127
8128 eval supported=\$$cacheid
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8130 $as_echo "$supported" >&6; }
8131 if test "$supported" = "yes" ; then
8132 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8133 found="yes"
8134 fi
8135 fi
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151 xorg_testset_save_CFLAGS="$CFLAGS"
8152
8153 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8154 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8156 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8157 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8158 $as_echo_n "(cached) " >&6
8159 else
8160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8161 /* end confdefs.h. */
8162 int i;
8163 _ACEOF
8164 if ac_fn_c_try_compile "$LINENO"; then :
8165 xorg_cv_cc_flag_unknown_warning_option=yes
8166 else
8167 xorg_cv_cc_flag_unknown_warning_option=no
8168 fi
8169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8170 fi
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8172 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8173 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8174 CFLAGS="$xorg_testset_save_CFLAGS"
8175 fi
8176
8177 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8178 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8179 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8180 fi
8181 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8183 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8184 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8185 $as_echo_n "(cached) " >&6
8186 else
8187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8188 /* end confdefs.h. */
8189 int i;
8190 _ACEOF
8191 if ac_fn_c_try_compile "$LINENO"; then :
8192 xorg_cv_cc_flag_unused_command_line_argument=yes
8193 else
8194 xorg_cv_cc_flag_unused_command_line_argument=no
8195 fi
8196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8197 fi
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8199 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8200 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8201 CFLAGS="$xorg_testset_save_CFLAGS"
8202 fi
8203
8204 found="no"
8205
8206 if test $found = "no" ; then
8207 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8208 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8209 fi
8210
8211 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8212 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8213 fi
8214
8215 CFLAGS="$CFLAGS -Wnonnull"
8216
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8218 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8219 cacheid=xorg_cv_cc_flag__Wnonnull
8220 if eval \${$cacheid+:} false; then :
8221 $as_echo_n "(cached) " >&6
8222 else
8223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8224 /* end confdefs.h. */
8225 int i;
8226 int
8227 main ()
8228 {
8229
8230 ;
8231 return 0;
8232 }
8233 _ACEOF
8234 if ac_fn_c_try_link "$LINENO"; then :
8235 eval $cacheid=yes
8236 else
8237 eval $cacheid=no
8238 fi
8239 rm -f core conftest.err conftest.$ac_objext \
8240 conftest$ac_exeext conftest.$ac_ext
8241 fi
8242
8243
8244 CFLAGS="$xorg_testset_save_CFLAGS"
8245
8246 eval supported=\$$cacheid
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8248 $as_echo "$supported" >&6; }
8249 if test "$supported" = "yes" ; then
8250 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8251 found="yes"
8252 fi
8253 fi
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269 xorg_testset_save_CFLAGS="$CFLAGS"
8270
8271 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8272 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8274 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8275 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8276 $as_echo_n "(cached) " >&6
8277 else
8278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8279 /* end confdefs.h. */
8280 int i;
8281 _ACEOF
8282 if ac_fn_c_try_compile "$LINENO"; then :
8283 xorg_cv_cc_flag_unknown_warning_option=yes
8284 else
8285 xorg_cv_cc_flag_unknown_warning_option=no
8286 fi
8287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8288 fi
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8290 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8291 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8292 CFLAGS="$xorg_testset_save_CFLAGS"
8293 fi
8294
8295 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8296 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8297 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8298 fi
8299 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8301 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8302 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8303 $as_echo_n "(cached) " >&6
8304 else
8305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8306 /* end confdefs.h. */
8307 int i;
8308 _ACEOF
8309 if ac_fn_c_try_compile "$LINENO"; then :
8310 xorg_cv_cc_flag_unused_command_line_argument=yes
8311 else
8312 xorg_cv_cc_flag_unused_command_line_argument=no
8313 fi
8314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8315 fi
8316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8317 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8318 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8319 CFLAGS="$xorg_testset_save_CFLAGS"
8320 fi
8321
8322 found="no"
8323
8324 if test $found = "no" ; then
8325 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8326 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8327 fi
8328
8329 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8330 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8331 fi
8332
8333 CFLAGS="$CFLAGS -Winit-self"
8334
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8336 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8337 cacheid=xorg_cv_cc_flag__Winit_self
8338 if eval \${$cacheid+:} false; then :
8339 $as_echo_n "(cached) " >&6
8340 else
8341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8342 /* end confdefs.h. */
8343 int i;
8344 int
8345 main ()
8346 {
8347
8348 ;
8349 return 0;
8350 }
8351 _ACEOF
8352 if ac_fn_c_try_link "$LINENO"; then :
8353 eval $cacheid=yes
8354 else
8355 eval $cacheid=no
8356 fi
8357 rm -f core conftest.err conftest.$ac_objext \
8358 conftest$ac_exeext conftest.$ac_ext
8359 fi
8360
8361
8362 CFLAGS="$xorg_testset_save_CFLAGS"
8363
8364 eval supported=\$$cacheid
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8366 $as_echo "$supported" >&6; }
8367 if test "$supported" = "yes" ; then
8368 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8369 found="yes"
8370 fi
8371 fi
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387 xorg_testset_save_CFLAGS="$CFLAGS"
8388
8389 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8390 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8392 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8393 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8394 $as_echo_n "(cached) " >&6
8395 else
8396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8397 /* end confdefs.h. */
8398 int i;
8399 _ACEOF
8400 if ac_fn_c_try_compile "$LINENO"; then :
8401 xorg_cv_cc_flag_unknown_warning_option=yes
8402 else
8403 xorg_cv_cc_flag_unknown_warning_option=no
8404 fi
8405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8406 fi
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8408 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8409 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8410 CFLAGS="$xorg_testset_save_CFLAGS"
8411 fi
8412
8413 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8414 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8415 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8416 fi
8417 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8419 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8420 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8421 $as_echo_n "(cached) " >&6
8422 else
8423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8424 /* end confdefs.h. */
8425 int i;
8426 _ACEOF
8427 if ac_fn_c_try_compile "$LINENO"; then :
8428 xorg_cv_cc_flag_unused_command_line_argument=yes
8429 else
8430 xorg_cv_cc_flag_unused_command_line_argument=no
8431 fi
8432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8433 fi
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8435 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8436 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8437 CFLAGS="$xorg_testset_save_CFLAGS"
8438 fi
8439
8440 found="no"
8441
8442 if test $found = "no" ; then
8443 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8444 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8445 fi
8446
8447 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8448 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8449 fi
8450
8451 CFLAGS="$CFLAGS -Wmain"
8452
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
8454 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
8455 cacheid=xorg_cv_cc_flag__Wmain
8456 if eval \${$cacheid+:} false; then :
8457 $as_echo_n "(cached) " >&6
8458 else
8459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8460 /* end confdefs.h. */
8461 int i;
8462 int
8463 main ()
8464 {
8465
8466 ;
8467 return 0;
8468 }
8469 _ACEOF
8470 if ac_fn_c_try_link "$LINENO"; then :
8471 eval $cacheid=yes
8472 else
8473 eval $cacheid=no
8474 fi
8475 rm -f core conftest.err conftest.$ac_objext \
8476 conftest$ac_exeext conftest.$ac_ext
8477 fi
8478
8479
8480 CFLAGS="$xorg_testset_save_CFLAGS"
8481
8482 eval supported=\$$cacheid
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8484 $as_echo "$supported" >&6; }
8485 if test "$supported" = "yes" ; then
8486 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8487 found="yes"
8488 fi
8489 fi
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505 xorg_testset_save_CFLAGS="$CFLAGS"
8506
8507 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8508 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8510 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8511 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8512 $as_echo_n "(cached) " >&6
8513 else
8514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8515 /* end confdefs.h. */
8516 int i;
8517 _ACEOF
8518 if ac_fn_c_try_compile "$LINENO"; then :
8519 xorg_cv_cc_flag_unknown_warning_option=yes
8520 else
8521 xorg_cv_cc_flag_unknown_warning_option=no
8522 fi
8523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8524 fi
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8526 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8527 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8528 CFLAGS="$xorg_testset_save_CFLAGS"
8529 fi
8530
8531 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8532 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8533 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8534 fi
8535 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8537 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8538 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8539 $as_echo_n "(cached) " >&6
8540 else
8541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8542 /* end confdefs.h. */
8543 int i;
8544 _ACEOF
8545 if ac_fn_c_try_compile "$LINENO"; then :
8546 xorg_cv_cc_flag_unused_command_line_argument=yes
8547 else
8548 xorg_cv_cc_flag_unused_command_line_argument=no
8549 fi
8550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8551 fi
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8553 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8554 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8555 CFLAGS="$xorg_testset_save_CFLAGS"
8556 fi
8557
8558 found="no"
8559
8560 if test $found = "no" ; then
8561 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8562 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8563 fi
8564
8565 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8566 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8567 fi
8568
8569 CFLAGS="$CFLAGS -Wmissing-braces"
8570
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
8572 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
8573 cacheid=xorg_cv_cc_flag__Wmissing_braces
8574 if eval \${$cacheid+:} false; then :
8575 $as_echo_n "(cached) " >&6
8576 else
8577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8578 /* end confdefs.h. */
8579 int i;
8580 int
8581 main ()
8582 {
8583
8584 ;
8585 return 0;
8586 }
8587 _ACEOF
8588 if ac_fn_c_try_link "$LINENO"; then :
8589 eval $cacheid=yes
8590 else
8591 eval $cacheid=no
8592 fi
8593 rm -f core conftest.err conftest.$ac_objext \
8594 conftest$ac_exeext conftest.$ac_ext
8595 fi
8596
8597
8598 CFLAGS="$xorg_testset_save_CFLAGS"
8599
8600 eval supported=\$$cacheid
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8602 $as_echo "$supported" >&6; }
8603 if test "$supported" = "yes" ; then
8604 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
8605 found="yes"
8606 fi
8607 fi
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623 xorg_testset_save_CFLAGS="$CFLAGS"
8624
8625 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8626 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8628 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8629 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8630 $as_echo_n "(cached) " >&6
8631 else
8632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8633 /* end confdefs.h. */
8634 int i;
8635 _ACEOF
8636 if ac_fn_c_try_compile "$LINENO"; then :
8637 xorg_cv_cc_flag_unknown_warning_option=yes
8638 else
8639 xorg_cv_cc_flag_unknown_warning_option=no
8640 fi
8641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8642 fi
8643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8644 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8645 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8646 CFLAGS="$xorg_testset_save_CFLAGS"
8647 fi
8648
8649 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8650 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8651 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8652 fi
8653 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8655 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8656 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8657 $as_echo_n "(cached) " >&6
8658 else
8659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8660 /* end confdefs.h. */
8661 int i;
8662 _ACEOF
8663 if ac_fn_c_try_compile "$LINENO"; then :
8664 xorg_cv_cc_flag_unused_command_line_argument=yes
8665 else
8666 xorg_cv_cc_flag_unused_command_line_argument=no
8667 fi
8668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8669 fi
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8671 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8672 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8673 CFLAGS="$xorg_testset_save_CFLAGS"
8674 fi
8675
8676 found="no"
8677
8678 if test $found = "no" ; then
8679 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8680 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8681 fi
8682
8683 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8684 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8685 fi
8686
8687 CFLAGS="$CFLAGS -Wsequence-point"
8688
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
8690 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
8691 cacheid=xorg_cv_cc_flag__Wsequence_point
8692 if eval \${$cacheid+:} false; then :
8693 $as_echo_n "(cached) " >&6
8694 else
8695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8696 /* end confdefs.h. */
8697 int i;
8698 int
8699 main ()
8700 {
8701
8702 ;
8703 return 0;
8704 }
8705 _ACEOF
8706 if ac_fn_c_try_link "$LINENO"; then :
8707 eval $cacheid=yes
8708 else
8709 eval $cacheid=no
8710 fi
8711 rm -f core conftest.err conftest.$ac_objext \
8712 conftest$ac_exeext conftest.$ac_ext
8713 fi
8714
8715
8716 CFLAGS="$xorg_testset_save_CFLAGS"
8717
8718 eval supported=\$$cacheid
8719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8720 $as_echo "$supported" >&6; }
8721 if test "$supported" = "yes" ; then
8722 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
8723 found="yes"
8724 fi
8725 fi
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741 xorg_testset_save_CFLAGS="$CFLAGS"
8742
8743 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8744 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8746 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8747 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8748 $as_echo_n "(cached) " >&6
8749 else
8750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8751 /* end confdefs.h. */
8752 int i;
8753 _ACEOF
8754 if ac_fn_c_try_compile "$LINENO"; then :
8755 xorg_cv_cc_flag_unknown_warning_option=yes
8756 else
8757 xorg_cv_cc_flag_unknown_warning_option=no
8758 fi
8759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8760 fi
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8762 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8763 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8764 CFLAGS="$xorg_testset_save_CFLAGS"
8765 fi
8766
8767 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8768 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8769 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8770 fi
8771 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8773 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8774 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8775 $as_echo_n "(cached) " >&6
8776 else
8777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8778 /* end confdefs.h. */
8779 int i;
8780 _ACEOF
8781 if ac_fn_c_try_compile "$LINENO"; then :
8782 xorg_cv_cc_flag_unused_command_line_argument=yes
8783 else
8784 xorg_cv_cc_flag_unused_command_line_argument=no
8785 fi
8786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8787 fi
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8789 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8790 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8791 CFLAGS="$xorg_testset_save_CFLAGS"
8792 fi
8793
8794 found="no"
8795
8796 if test $found = "no" ; then
8797 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8798 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8799 fi
8800
8801 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8802 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8803 fi
8804
8805 CFLAGS="$CFLAGS -Wreturn-type"
8806
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
8808 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
8809 cacheid=xorg_cv_cc_flag__Wreturn_type
8810 if eval \${$cacheid+:} false; then :
8811 $as_echo_n "(cached) " >&6
8812 else
8813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8814 /* end confdefs.h. */
8815 int i;
8816 int
8817 main ()
8818 {
8819
8820 ;
8821 return 0;
8822 }
8823 _ACEOF
8824 if ac_fn_c_try_link "$LINENO"; then :
8825 eval $cacheid=yes
8826 else
8827 eval $cacheid=no
8828 fi
8829 rm -f core conftest.err conftest.$ac_objext \
8830 conftest$ac_exeext conftest.$ac_ext
8831 fi
8832
8833
8834 CFLAGS="$xorg_testset_save_CFLAGS"
8835
8836 eval supported=\$$cacheid
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8838 $as_echo "$supported" >&6; }
8839 if test "$supported" = "yes" ; then
8840 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
8841 found="yes"
8842 fi
8843 fi
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859 xorg_testset_save_CFLAGS="$CFLAGS"
8860
8861 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8862 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8864 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8865 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8866 $as_echo_n "(cached) " >&6
8867 else
8868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8869 /* end confdefs.h. */
8870 int i;
8871 _ACEOF
8872 if ac_fn_c_try_compile "$LINENO"; then :
8873 xorg_cv_cc_flag_unknown_warning_option=yes
8874 else
8875 xorg_cv_cc_flag_unknown_warning_option=no
8876 fi
8877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8878 fi
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8880 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8881 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8882 CFLAGS="$xorg_testset_save_CFLAGS"
8883 fi
8884
8885 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8886 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8887 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8888 fi
8889 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8891 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8892 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8893 $as_echo_n "(cached) " >&6
8894 else
8895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8896 /* end confdefs.h. */
8897 int i;
8898 _ACEOF
8899 if ac_fn_c_try_compile "$LINENO"; then :
8900 xorg_cv_cc_flag_unused_command_line_argument=yes
8901 else
8902 xorg_cv_cc_flag_unused_command_line_argument=no
8903 fi
8904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8905 fi
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8907 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8908 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8909 CFLAGS="$xorg_testset_save_CFLAGS"
8910 fi
8911
8912 found="no"
8913
8914 if test $found = "no" ; then
8915 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8916 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8917 fi
8918
8919 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8920 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8921 fi
8922
8923 CFLAGS="$CFLAGS -Wtrigraphs"
8924
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
8926 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
8927 cacheid=xorg_cv_cc_flag__Wtrigraphs
8928 if eval \${$cacheid+:} false; then :
8929 $as_echo_n "(cached) " >&6
8930 else
8931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8932 /* end confdefs.h. */
8933 int i;
8934 int
8935 main ()
8936 {
8937
8938 ;
8939 return 0;
8940 }
8941 _ACEOF
8942 if ac_fn_c_try_link "$LINENO"; then :
8943 eval $cacheid=yes
8944 else
8945 eval $cacheid=no
8946 fi
8947 rm -f core conftest.err conftest.$ac_objext \
8948 conftest$ac_exeext conftest.$ac_ext
8949 fi
8950
8951
8952 CFLAGS="$xorg_testset_save_CFLAGS"
8953
8954 eval supported=\$$cacheid
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8956 $as_echo "$supported" >&6; }
8957 if test "$supported" = "yes" ; then
8958 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
8959 found="yes"
8960 fi
8961 fi
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977 xorg_testset_save_CFLAGS="$CFLAGS"
8978
8979 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8980 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8982 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8983 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8984 $as_echo_n "(cached) " >&6
8985 else
8986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8987 /* end confdefs.h. */
8988 int i;
8989 _ACEOF
8990 if ac_fn_c_try_compile "$LINENO"; then :
8991 xorg_cv_cc_flag_unknown_warning_option=yes
8992 else
8993 xorg_cv_cc_flag_unknown_warning_option=no
8994 fi
8995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8996 fi
8997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8998 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8999 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9000 CFLAGS="$xorg_testset_save_CFLAGS"
9001 fi
9002
9003 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9004 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9005 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9006 fi
9007 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9009 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9010 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9011 $as_echo_n "(cached) " >&6
9012 else
9013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9014 /* end confdefs.h. */
9015 int i;
9016 _ACEOF
9017 if ac_fn_c_try_compile "$LINENO"; then :
9018 xorg_cv_cc_flag_unused_command_line_argument=yes
9019 else
9020 xorg_cv_cc_flag_unused_command_line_argument=no
9021 fi
9022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9023 fi
9024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9025 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9026 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9027 CFLAGS="$xorg_testset_save_CFLAGS"
9028 fi
9029
9030 found="no"
9031
9032 if test $found = "no" ; then
9033 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9034 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9035 fi
9036
9037 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9038 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9039 fi
9040
9041 CFLAGS="$CFLAGS -Warray-bounds"
9042
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9044 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9045 cacheid=xorg_cv_cc_flag__Warray_bounds
9046 if eval \${$cacheid+:} false; then :
9047 $as_echo_n "(cached) " >&6
9048 else
9049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9050 /* end confdefs.h. */
9051 int i;
9052 int
9053 main ()
9054 {
9055
9056 ;
9057 return 0;
9058 }
9059 _ACEOF
9060 if ac_fn_c_try_link "$LINENO"; then :
9061 eval $cacheid=yes
9062 else
9063 eval $cacheid=no
9064 fi
9065 rm -f core conftest.err conftest.$ac_objext \
9066 conftest$ac_exeext conftest.$ac_ext
9067 fi
9068
9069
9070 CFLAGS="$xorg_testset_save_CFLAGS"
9071
9072 eval supported=\$$cacheid
9073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9074 $as_echo "$supported" >&6; }
9075 if test "$supported" = "yes" ; then
9076 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9077 found="yes"
9078 fi
9079 fi
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095 xorg_testset_save_CFLAGS="$CFLAGS"
9096
9097 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9098 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9100 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9101 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9102 $as_echo_n "(cached) " >&6
9103 else
9104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9105 /* end confdefs.h. */
9106 int i;
9107 _ACEOF
9108 if ac_fn_c_try_compile "$LINENO"; then :
9109 xorg_cv_cc_flag_unknown_warning_option=yes
9110 else
9111 xorg_cv_cc_flag_unknown_warning_option=no
9112 fi
9113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9114 fi
9115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9116 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9117 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9118 CFLAGS="$xorg_testset_save_CFLAGS"
9119 fi
9120
9121 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9122 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9123 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9124 fi
9125 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9127 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9128 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9129 $as_echo_n "(cached) " >&6
9130 else
9131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9132 /* end confdefs.h. */
9133 int i;
9134 _ACEOF
9135 if ac_fn_c_try_compile "$LINENO"; then :
9136 xorg_cv_cc_flag_unused_command_line_argument=yes
9137 else
9138 xorg_cv_cc_flag_unused_command_line_argument=no
9139 fi
9140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9141 fi
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9143 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9144 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9145 CFLAGS="$xorg_testset_save_CFLAGS"
9146 fi
9147
9148 found="no"
9149
9150 if test $found = "no" ; then
9151 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9152 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9153 fi
9154
9155 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9156 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9157 fi
9158
9159 CFLAGS="$CFLAGS -Wwrite-strings"
9160
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9162 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9163 cacheid=xorg_cv_cc_flag__Wwrite_strings
9164 if eval \${$cacheid+:} false; then :
9165 $as_echo_n "(cached) " >&6
9166 else
9167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9168 /* end confdefs.h. */
9169 int i;
9170 int
9171 main ()
9172 {
9173
9174 ;
9175 return 0;
9176 }
9177 _ACEOF
9178 if ac_fn_c_try_link "$LINENO"; then :
9179 eval $cacheid=yes
9180 else
9181 eval $cacheid=no
9182 fi
9183 rm -f core conftest.err conftest.$ac_objext \
9184 conftest$ac_exeext conftest.$ac_ext
9185 fi
9186
9187
9188 CFLAGS="$xorg_testset_save_CFLAGS"
9189
9190 eval supported=\$$cacheid
9191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9192 $as_echo "$supported" >&6; }
9193 if test "$supported" = "yes" ; then
9194 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9195 found="yes"
9196 fi
9197 fi
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213 xorg_testset_save_CFLAGS="$CFLAGS"
9214
9215 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9216 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9218 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9219 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9220 $as_echo_n "(cached) " >&6
9221 else
9222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9223 /* end confdefs.h. */
9224 int i;
9225 _ACEOF
9226 if ac_fn_c_try_compile "$LINENO"; then :
9227 xorg_cv_cc_flag_unknown_warning_option=yes
9228 else
9229 xorg_cv_cc_flag_unknown_warning_option=no
9230 fi
9231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9232 fi
9233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9234 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9235 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9236 CFLAGS="$xorg_testset_save_CFLAGS"
9237 fi
9238
9239 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9240 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9241 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9242 fi
9243 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9245 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9246 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9247 $as_echo_n "(cached) " >&6
9248 else
9249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9250 /* end confdefs.h. */
9251 int i;
9252 _ACEOF
9253 if ac_fn_c_try_compile "$LINENO"; then :
9254 xorg_cv_cc_flag_unused_command_line_argument=yes
9255 else
9256 xorg_cv_cc_flag_unused_command_line_argument=no
9257 fi
9258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9259 fi
9260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9261 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9262 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9263 CFLAGS="$xorg_testset_save_CFLAGS"
9264 fi
9265
9266 found="no"
9267
9268 if test $found = "no" ; then
9269 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9270 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9271 fi
9272
9273 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9274 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9275 fi
9276
9277 CFLAGS="$CFLAGS -Waddress"
9278
9279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9280 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
9281 cacheid=xorg_cv_cc_flag__Waddress
9282 if eval \${$cacheid+:} false; then :
9283 $as_echo_n "(cached) " >&6
9284 else
9285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9286 /* end confdefs.h. */
9287 int i;
9288 int
9289 main ()
9290 {
9291
9292 ;
9293 return 0;
9294 }
9295 _ACEOF
9296 if ac_fn_c_try_link "$LINENO"; then :
9297 eval $cacheid=yes
9298 else
9299 eval $cacheid=no
9300 fi
9301 rm -f core conftest.err conftest.$ac_objext \
9302 conftest$ac_exeext conftest.$ac_ext
9303 fi
9304
9305
9306 CFLAGS="$xorg_testset_save_CFLAGS"
9307
9308 eval supported=\$$cacheid
9309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9310 $as_echo "$supported" >&6; }
9311 if test "$supported" = "yes" ; then
9312 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9313 found="yes"
9314 fi
9315 fi
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331 xorg_testset_save_CFLAGS="$CFLAGS"
9332
9333 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9334 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9336 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9337 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9338 $as_echo_n "(cached) " >&6
9339 else
9340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9341 /* end confdefs.h. */
9342 int i;
9343 _ACEOF
9344 if ac_fn_c_try_compile "$LINENO"; then :
9345 xorg_cv_cc_flag_unknown_warning_option=yes
9346 else
9347 xorg_cv_cc_flag_unknown_warning_option=no
9348 fi
9349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9350 fi
9351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9352 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9353 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9354 CFLAGS="$xorg_testset_save_CFLAGS"
9355 fi
9356
9357 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9358 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9359 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9360 fi
9361 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9363 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9364 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9365 $as_echo_n "(cached) " >&6
9366 else
9367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9368 /* end confdefs.h. */
9369 int i;
9370 _ACEOF
9371 if ac_fn_c_try_compile "$LINENO"; then :
9372 xorg_cv_cc_flag_unused_command_line_argument=yes
9373 else
9374 xorg_cv_cc_flag_unused_command_line_argument=no
9375 fi
9376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9377 fi
9378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9379 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9380 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9381 CFLAGS="$xorg_testset_save_CFLAGS"
9382 fi
9383
9384 found="no"
9385
9386 if test $found = "no" ; then
9387 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9388 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9389 fi
9390
9391 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9392 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9393 fi
9394
9395 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9396
9397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9398 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9399 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9400 if eval \${$cacheid+:} false; then :
9401 $as_echo_n "(cached) " >&6
9402 else
9403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9404 /* end confdefs.h. */
9405 int i;
9406 int
9407 main ()
9408 {
9409
9410 ;
9411 return 0;
9412 }
9413 _ACEOF
9414 if ac_fn_c_try_link "$LINENO"; then :
9415 eval $cacheid=yes
9416 else
9417 eval $cacheid=no
9418 fi
9419 rm -f core conftest.err conftest.$ac_objext \
9420 conftest$ac_exeext conftest.$ac_ext
9421 fi
9422
9423
9424 CFLAGS="$xorg_testset_save_CFLAGS"
9425
9426 eval supported=\$$cacheid
9427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9428 $as_echo "$supported" >&6; }
9429 if test "$supported" = "yes" ; then
9430 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9431 found="yes"
9432 fi
9433 fi
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449 xorg_testset_save_CFLAGS="$CFLAGS"
9450
9451 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9452 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9454 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9455 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9456 $as_echo_n "(cached) " >&6
9457 else
9458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9459 /* end confdefs.h. */
9460 int i;
9461 _ACEOF
9462 if ac_fn_c_try_compile "$LINENO"; then :
9463 xorg_cv_cc_flag_unknown_warning_option=yes
9464 else
9465 xorg_cv_cc_flag_unknown_warning_option=no
9466 fi
9467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9468 fi
9469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9470 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9471 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9472 CFLAGS="$xorg_testset_save_CFLAGS"
9473 fi
9474
9475 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9476 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9477 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9478 fi
9479 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9481 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9482 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9483 $as_echo_n "(cached) " >&6
9484 else
9485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9486 /* end confdefs.h. */
9487 int i;
9488 _ACEOF
9489 if ac_fn_c_try_compile "$LINENO"; then :
9490 xorg_cv_cc_flag_unused_command_line_argument=yes
9491 else
9492 xorg_cv_cc_flag_unused_command_line_argument=no
9493 fi
9494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9495 fi
9496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9497 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9498 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9499 CFLAGS="$xorg_testset_save_CFLAGS"
9500 fi
9501
9502 found="no"
9503
9504 if test $found = "no" ; then
9505 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9506 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9507 fi
9508
9509 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9510 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9511 fi
9512
9513 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9514
9515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
9516 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
9517 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
9518 if eval \${$cacheid+:} false; then :
9519 $as_echo_n "(cached) " >&6
9520 else
9521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9522 /* end confdefs.h. */
9523 int i;
9524 int
9525 main ()
9526 {
9527
9528 ;
9529 return 0;
9530 }
9531 _ACEOF
9532 if ac_fn_c_try_link "$LINENO"; then :
9533 eval $cacheid=yes
9534 else
9535 eval $cacheid=no
9536 fi
9537 rm -f core conftest.err conftest.$ac_objext \
9538 conftest$ac_exeext conftest.$ac_ext
9539 fi
9540
9541
9542 CFLAGS="$xorg_testset_save_CFLAGS"
9543
9544 eval supported=\$$cacheid
9545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9546 $as_echo "$supported" >&6; }
9547 if test "$supported" = "yes" ; then
9548 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
9549 found="yes"
9550 fi
9551 fi
9552
9553
9554 fi
9555
9556
9557
9558
9559
9560
9561
9562 CWARNFLAGS="$BASE_CFLAGS"
9563 if test "x$GCC" = xyes ; then
9564 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
9565 fi
9566
9567
9568
9569
9570
9571
9572
9573
9574 # Check whether --enable-strict-compilation was given.
9575 if test "${enable_strict_compilation+set}" = set; then :
9576 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
9577 else
9578 STRICT_COMPILE=no
9579 fi
9580
9581
9582
9583
9584
9585
9586 STRICT_CFLAGS=""
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600 xorg_testset_save_CFLAGS="$CFLAGS"
9601
9602 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9603 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9605 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9606 if ${xorg_cv_cc_flag_unknown_warning_option+:} 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_unknown_warning_option=yes
9615 else
9616 xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
9621 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9622 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9623 CFLAGS="$xorg_testset_save_CFLAGS"
9624 fi
9625
9626 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9627 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9628 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9629 fi
9630 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9632 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9633 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9634 $as_echo_n "(cached) " >&6
9635 else
9636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9637 /* end confdefs.h. */
9638 int i;
9639 _ACEOF
9640 if ac_fn_c_try_compile "$LINENO"; then :
9641 xorg_cv_cc_flag_unused_command_line_argument=yes
9642 else
9643 xorg_cv_cc_flag_unused_command_line_argument=no
9644 fi
9645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9646 fi
9647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9648 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9649 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9650 CFLAGS="$xorg_testset_save_CFLAGS"
9651 fi
9652
9653 found="no"
9654
9655 if test $found = "no" ; then
9656 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9657 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9658 fi
9659
9660 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9661 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9662 fi
9663
9664 CFLAGS="$CFLAGS -pedantic"
9665
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
9667 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
9668 cacheid=xorg_cv_cc_flag__pedantic
9669 if eval \${$cacheid+:} false; then :
9670 $as_echo_n "(cached) " >&6
9671 else
9672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9673 /* end confdefs.h. */
9674 int i;
9675 int
9676 main ()
9677 {
9678
9679 ;
9680 return 0;
9681 }
9682 _ACEOF
9683 if ac_fn_c_try_link "$LINENO"; then :
9684 eval $cacheid=yes
9685 else
9686 eval $cacheid=no
9687 fi
9688 rm -f core conftest.err conftest.$ac_objext \
9689 conftest$ac_exeext conftest.$ac_ext
9690 fi
9691
9692
9693 CFLAGS="$xorg_testset_save_CFLAGS"
9694
9695 eval supported=\$$cacheid
9696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9697 $as_echo "$supported" >&6; }
9698 if test "$supported" = "yes" ; then
9699 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
9700 found="yes"
9701 fi
9702 fi
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718 xorg_testset_save_CFLAGS="$CFLAGS"
9719
9720 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9721 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9723 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9724 if ${xorg_cv_cc_flag_unknown_warning_option+:} 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_unknown_warning_option=yes
9733 else
9734 xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
9739 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9740 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9741 CFLAGS="$xorg_testset_save_CFLAGS"
9742 fi
9743
9744 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9745 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9746 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9747 fi
9748 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9750 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9751 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9752 $as_echo_n "(cached) " >&6
9753 else
9754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9755 /* end confdefs.h. */
9756 int i;
9757 _ACEOF
9758 if ac_fn_c_try_compile "$LINENO"; then :
9759 xorg_cv_cc_flag_unused_command_line_argument=yes
9760 else
9761 xorg_cv_cc_flag_unused_command_line_argument=no
9762 fi
9763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9764 fi
9765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9766 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9767 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9768 CFLAGS="$xorg_testset_save_CFLAGS"
9769 fi
9770
9771 found="no"
9772
9773 if test $found = "no" ; then
9774 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9775 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9776 fi
9777
9778 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9779 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9780 fi
9781
9782 CFLAGS="$CFLAGS -Werror"
9783
9784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
9785 $as_echo_n "checking if $CC supports -Werror... " >&6; }
9786 cacheid=xorg_cv_cc_flag__Werror
9787 if eval \${$cacheid+:} false; then :
9788 $as_echo_n "(cached) " >&6
9789 else
9790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9791 /* end confdefs.h. */
9792 int i;
9793 int
9794 main ()
9795 {
9796
9797 ;
9798 return 0;
9799 }
9800 _ACEOF
9801 if ac_fn_c_try_link "$LINENO"; then :
9802 eval $cacheid=yes
9803 else
9804 eval $cacheid=no
9805 fi
9806 rm -f core conftest.err conftest.$ac_objext \
9807 conftest$ac_exeext conftest.$ac_ext
9808 fi
9809
9810
9811 CFLAGS="$xorg_testset_save_CFLAGS"
9812
9813 eval supported=\$$cacheid
9814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9815 $as_echo "$supported" >&6; }
9816 if test "$supported" = "yes" ; then
9817 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
9818 found="yes"
9819 fi
9820 fi
9821
9822 if test $found = "no" ; then
9823 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9824 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9825 fi
9826
9827 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9828 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9829 fi
9830
9831 CFLAGS="$CFLAGS -errwarn"
9832
9833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
9834 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
9835 cacheid=xorg_cv_cc_flag__errwarn
9836 if eval \${$cacheid+:} false; then :
9837 $as_echo_n "(cached) " >&6
9838 else
9839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9840 /* end confdefs.h. */
9841 int i;
9842 int
9843 main ()
9844 {
9845
9846 ;
9847 return 0;
9848 }
9849 _ACEOF
9850 if ac_fn_c_try_link "$LINENO"; then :
9851 eval $cacheid=yes
9852 else
9853 eval $cacheid=no
9854 fi
9855 rm -f core conftest.err conftest.$ac_objext \
9856 conftest$ac_exeext conftest.$ac_ext
9857 fi
9858
9859
9860 CFLAGS="$xorg_testset_save_CFLAGS"
9861
9862 eval supported=\$$cacheid
9863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9864 $as_echo "$supported" >&6; }
9865 if test "$supported" = "yes" ; then
9866 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
9867 found="yes"
9868 fi
9869 fi
9870
9871
9872
9873 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
9874 # activate it with -Werror, so we add it here explicitly.
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888 xorg_testset_save_CFLAGS="$CFLAGS"
9889
9890 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9891 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9893 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9894 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9895 $as_echo_n "(cached) " >&6
9896 else
9897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9898 /* end confdefs.h. */
9899 int i;
9900 _ACEOF
9901 if ac_fn_c_try_compile "$LINENO"; then :
9902 xorg_cv_cc_flag_unknown_warning_option=yes
9903 else
9904 xorg_cv_cc_flag_unknown_warning_option=no
9905 fi
9906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9907 fi
9908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9909 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9910 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9911 CFLAGS="$xorg_testset_save_CFLAGS"
9912 fi
9913
9914 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9915 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9916 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9917 fi
9918 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9920 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9921 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9922 $as_echo_n "(cached) " >&6
9923 else
9924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9925 /* end confdefs.h. */
9926 int i;
9927 _ACEOF
9928 if ac_fn_c_try_compile "$LINENO"; then :
9929 xorg_cv_cc_flag_unused_command_line_argument=yes
9930 else
9931 xorg_cv_cc_flag_unused_command_line_argument=no
9932 fi
9933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9934 fi
9935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9936 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9937 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9938 CFLAGS="$xorg_testset_save_CFLAGS"
9939 fi
9940
9941 found="no"
9942
9943 if test $found = "no" ; then
9944 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9945 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9946 fi
9947
9948 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9949 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9950 fi
9951
9952 CFLAGS="$CFLAGS -Werror=attributes"
9953
9954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
9955 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
9956 cacheid=xorg_cv_cc_flag__Werror_attributes
9957 if eval \${$cacheid+:} false; then :
9958 $as_echo_n "(cached) " >&6
9959 else
9960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9961 /* end confdefs.h. */
9962 int i;
9963 int
9964 main ()
9965 {
9966
9967 ;
9968 return 0;
9969 }
9970 _ACEOF
9971 if ac_fn_c_try_link "$LINENO"; then :
9972 eval $cacheid=yes
9973 else
9974 eval $cacheid=no
9975 fi
9976 rm -f core conftest.err conftest.$ac_objext \
9977 conftest$ac_exeext conftest.$ac_ext
9978 fi
9979
9980
9981 CFLAGS="$xorg_testset_save_CFLAGS"
9982
9983 eval supported=\$$cacheid
9984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9985 $as_echo "$supported" >&6; }
9986 if test "$supported" = "yes" ; then
9987 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
9988 found="yes"
9989 fi
9990 fi
9991
9992
9993
9994 if test "x$STRICT_COMPILE" = "xyes"; then
9995 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
9996 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
9997 fi
9998
9999
10000
10001
10002
10003
10004 cat >>confdefs.h <<_ACEOF
10005 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10006 _ACEOF
10007
10008 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10009 if test "x$PVM" = "x"; then
10010 PVM="0"
10011 fi
10012
10013 cat >>confdefs.h <<_ACEOF
10014 #define PACKAGE_VERSION_MINOR $PVM
10015 _ACEOF
10016
10017 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10018 if test "x$PVP" = "x"; then
10019 PVP="0"
10020 fi
10021
10022 cat >>confdefs.h <<_ACEOF
10023 #define PACKAGE_VERSION_PATCHLEVEL $PVP
10024 _ACEOF
10025
10026
10027
10028 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10029 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10030 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10031 echo 'git directory not found: installing possibly empty changelog.' >&2)"
10032
10033
10034
10035
10036 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10037 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10038 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10039 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10040 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10041
10042
10043
10044
10045
10046
10047 if test x$APP_MAN_SUFFIX = x ; then
10048 APP_MAN_SUFFIX=1
10049 fi
10050 if test x$APP_MAN_DIR = x ; then
10051 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10052 fi
10053
10054 if test x$LIB_MAN_SUFFIX = x ; then
10055 LIB_MAN_SUFFIX=3
10056 fi
10057 if test x$LIB_MAN_DIR = x ; then
10058 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10059 fi
10060
10061 if test x$FILE_MAN_SUFFIX = x ; then
10062 case $host_os in
10063 solaris*) FILE_MAN_SUFFIX=4 ;;
10064 *) FILE_MAN_SUFFIX=5 ;;
10065 esac
10066 fi
10067 if test x$FILE_MAN_DIR = x ; then
10068 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10069 fi
10070
10071 if test x$MISC_MAN_SUFFIX = x ; then
10072 case $host_os in
10073 solaris*) MISC_MAN_SUFFIX=5 ;;
10074 *) MISC_MAN_SUFFIX=7 ;;
10075 esac
10076 fi
10077 if test x$MISC_MAN_DIR = x ; then
10078 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10079 fi
10080
10081 if test x$DRIVER_MAN_SUFFIX = x ; then
10082 case $host_os in
10083 solaris*) DRIVER_MAN_SUFFIX=7 ;;
10084 *) DRIVER_MAN_SUFFIX=4 ;;
10085 esac
10086 fi
10087 if test x$DRIVER_MAN_DIR = x ; then
10088 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10089 fi
10090
10091 if test x$ADMIN_MAN_SUFFIX = x ; then
10092 case $host_os in
10093 solaris*) ADMIN_MAN_SUFFIX=1m ;;
10094 *) ADMIN_MAN_SUFFIX=8 ;;
10095 esac
10096 fi
10097 if test x$ADMIN_MAN_DIR = x ; then
10098 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10099 fi
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115 XORG_MAN_PAGE="X Version 11"
10116
10117 MAN_SUBSTS="\
10118 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10119 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10120 -e 's|__xservername__|Xorg|g' \
10121 -e 's|__xconfigfile__|xorg.conf|g' \
10122 -e 's|__projectroot__|\$(prefix)|g' \
10123 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
10124 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10125 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10126 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10127 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10128 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10129 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10130
10131
10132
10133 # Check whether --enable-silent-rules was given.
10134 if test "${enable_silent_rules+set}" = set; then :
10135 enableval=$enable_silent_rules;
10136 fi
10137
10138 case $enable_silent_rules in # (((
10139 yes) AM_DEFAULT_VERBOSITY=0;;
10140 no) AM_DEFAULT_VERBOSITY=1;;
10141 *) AM_DEFAULT_VERBOSITY=0;;
10142 esac
10143 am_make=${MAKE-make}
10144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10145 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10146 if ${am_cv_make_support_nested_variables+:} false; then :
10147 $as_echo_n "(cached) " >&6
10148 else
10149 if $as_echo 'TRUE=$(BAR$(V))
10150 BAR0=false
10151 BAR1=true
10152 V=1
10153 am__doit:
10154 @$(TRUE)
10155 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10156 am_cv_make_support_nested_variables=yes
10157 else
10158 am_cv_make_support_nested_variables=no
10159 fi
10160 fi
10161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10162 $as_echo "$am_cv_make_support_nested_variables" >&6; }
10163 if test $am_cv_make_support_nested_variables = yes; then
10164 AM_V='$(V)'
10165 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10166 else
10167 AM_V=$AM_DEFAULT_VERBOSITY
10168 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10169 fi
10170 AM_BACKSLASH='\'
10171
10172
10173
10174
10175 ac_config_headers="$ac_config_headers config.h"
10176
10177 ac_aux_dir=
10178 for ac_dir in . "$srcdir"/.; do
10179 if test -f "$ac_dir/install-sh"; then
10180 ac_aux_dir=$ac_dir
10181 ac_install_sh="$ac_aux_dir/install-sh -c"
10182 break
10183 elif test -f "$ac_dir/install.sh"; then
10184 ac_aux_dir=$ac_dir
10185 ac_install_sh="$ac_aux_dir/install.sh -c"
10186 break
10187 elif test -f "$ac_dir/shtool"; then
10188 ac_aux_dir=$ac_dir
10189 ac_install_sh="$ac_aux_dir/shtool install -c"
10190 break
10191 fi
10192 done
10193 if test -z "$ac_aux_dir"; then
10194 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
10195 fi
10196
10197 # These three variables are undocumented and unsupported,
10198 # and are intended to be withdrawn in a future Autoconf release.
10199 # They can cause serious problems if a builder's source tree is in a directory
10200 # whose full name contains unusual characters.
10201 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
10202 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
10203 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
10204
10205
10206
10207 # Initialize Automake
10208 am__api_version='1.15'
10209
10210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
10211 $as_echo_n "checking whether build environment is sane... " >&6; }
10212 # Reject unsafe characters in $srcdir or the absolute working directory
10213 # name. Accept space and tab only in the latter.
10214 am_lf='
10215 '
10216 case `pwd` in
10217 *[\\\"\#\$\&\'\`$am_lf]*)
10218 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
10219 esac
10220 case $srcdir in
10221 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
10222 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
10223 esac
10224
10225 # Do 'set' in a subshell so we don't clobber the current shell's
10226 # arguments. Must try -L first in case configure is actually a
10227 # symlink; some systems play weird games with the mod time of symlinks
10228 # (eg FreeBSD returns the mod time of the symlink's containing
10229 # directory).
10230 if (
10231 am_has_slept=no
10232 for am_try in 1 2; do
10233 echo "timestamp, slept: $am_has_slept" > conftest.file
10234 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
10235 if test "$*" = "X"; then
10236 # -L didn't work.
10237 set X `ls -t "$srcdir/configure" conftest.file`
10238 fi
10239 if test "$*" != "X $srcdir/configure conftest.file" \
10240 && test "$*" != "X conftest.file $srcdir/configure"; then
10241
10242 # If neither matched, then we have a broken ls. This can happen
10243 # if, for instance, CONFIG_SHELL is bash and it inherits a
10244 # broken ls alias from the environment. This has actually
10245 # happened. Such a system could not be considered "sane".
10246 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
10247 alias in your environment" "$LINENO" 5
10248 fi
10249 if test "$2" = conftest.file || test $am_try -eq 2; then
10250 break
10251 fi
10252 # Just in case.
10253 sleep 1
10254 am_has_slept=yes
10255 done
10256 test "$2" = conftest.file
10257 )
10258 then
10259 # Ok.
10260 :
10261 else
10262 as_fn_error $? "newly created file is older than distributed files!
10263 Check your system clock" "$LINENO" 5
10264 fi
10265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10266 $as_echo "yes" >&6; }
10267 # If we didn't sleep, we still need to ensure time stamps of config.status and
10268 # generated files are strictly newer.
10269 am_sleep_pid=
10270 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
10271 ( sleep 1 ) &
10272 am_sleep_pid=$!
10273 fi
10274
10275 rm -f conftest.file
10276
10277 test "$program_prefix" != NONE &&
10278 program_transform_name="s&^&$program_prefix&;$program_transform_name"
10279 # Use a double $ so make ignores it.
10280 test "$program_suffix" != NONE &&
10281 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
10282 # Double any \ or $.
10283 # By default was `s,x,x', remove it if useless.
10284 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
10285 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
10286
10287 if test x"${MISSING+set}" != xset; then
10288 case $am_aux_dir in
10289 *\ * | *\ *)
10290 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
10291 *)
10292 MISSING="\${SHELL} $am_aux_dir/missing" ;;
10293 esac
10294 fi
10295 # Use eval to expand $SHELL
10296 if eval "$MISSING --is-lightweight"; then
10297 am_missing_run="$MISSING "
10298 else
10299 am_missing_run=
10300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
10301 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
10302 fi
10303
10304 if test x"${install_sh+set}" != xset; then
10305 case $am_aux_dir in
10306 *\ * | *\ *)
10307 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
10308 *)
10309 install_sh="\${SHELL} $am_aux_dir/install-sh"
10310 esac
10311 fi
10312
10313 # Installed binaries are usually stripped using 'strip' when the user
10314 # run "make install-strip". However 'strip' might not be the right
10315 # tool to use in cross-compilation environments, therefore Automake
10316 # will honor the 'STRIP' environment variable to overrule this program.
10317 if test "$cross_compiling" != no; then
10318 if test -n "$ac_tool_prefix"; then
10319 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10320 set dummy ${ac_tool_prefix}strip; ac_word=$2
10321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10322 $as_echo_n "checking for $ac_word... " >&6; }
10323 if ${ac_cv_prog_STRIP+:} false; then :
10324 $as_echo_n "(cached) " >&6
10325 else
10326 if test -n "$STRIP"; then
10327 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10328 else
10329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10330 for as_dir in $PATH
10331 do
10332 IFS=$as_save_IFS
10333 test -z "$as_dir" && as_dir=.
10334 for ac_exec_ext in '' $ac_executable_extensions; do
10335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10336 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10338 break 2
10339 fi
10340 done
10341 done
10342 IFS=$as_save_IFS
10343
10344 fi
10345 fi
10346 STRIP=$ac_cv_prog_STRIP
10347 if test -n "$STRIP"; then
10348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10349 $as_echo "$STRIP" >&6; }
10350 else
10351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10352 $as_echo "no" >&6; }
10353 fi
10354
10355
10356 fi
10357 if test -z "$ac_cv_prog_STRIP"; then
10358 ac_ct_STRIP=$STRIP
10359 # Extract the first word of "strip", so it can be a program name with args.
10360 set dummy strip; ac_word=$2
10361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10362 $as_echo_n "checking for $ac_word... " >&6; }
10363 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
10364 $as_echo_n "(cached) " >&6
10365 else
10366 if test -n "$ac_ct_STRIP"; then
10367 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10368 else
10369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10370 for as_dir in $PATH
10371 do
10372 IFS=$as_save_IFS
10373 test -z "$as_dir" && as_dir=.
10374 for ac_exec_ext in '' $ac_executable_extensions; do
10375 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10376 ac_cv_prog_ac_ct_STRIP="strip"
10377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10378 break 2
10379 fi
10380 done
10381 done
10382 IFS=$as_save_IFS
10383
10384 fi
10385 fi
10386 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10387 if test -n "$ac_ct_STRIP"; then
10388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10389 $as_echo "$ac_ct_STRIP" >&6; }
10390 else
10391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10392 $as_echo "no" >&6; }
10393 fi
10394
10395 if test "x$ac_ct_STRIP" = x; then
10396 STRIP=":"
10397 else
10398 case $cross_compiling:$ac_tool_warned in
10399 yes:)
10400 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10401 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10402 ac_tool_warned=yes ;;
10403 esac
10404 STRIP=$ac_ct_STRIP
10405 fi
10406 else
10407 STRIP="$ac_cv_prog_STRIP"
10408 fi
10409
10410 fi
10411 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
10412
10413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
10414 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
10415 if test -z "$MKDIR_P"; then
10416 if ${ac_cv_path_mkdir+:} false; then :
10417 $as_echo_n "(cached) " >&6
10418 else
10419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10420 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
10421 do
10422 IFS=$as_save_IFS
10423 test -z "$as_dir" && as_dir=.
10424 for ac_prog in mkdir gmkdir; do
10425 for ac_exec_ext in '' $ac_executable_extensions; do
10426 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
10427 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
10428 'mkdir (GNU coreutils) '* | \
10429 'mkdir (coreutils) '* | \
10430 'mkdir (fileutils) '4.1*)
10431 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
10432 break 3;;
10433 esac
10434 done
10435 done
10436 done
10437 IFS=$as_save_IFS
10438
10439 fi
10440
10441 test -d ./--version && rmdir ./--version
10442 if test "${ac_cv_path_mkdir+set}" = set; then
10443 MKDIR_P="$ac_cv_path_mkdir -p"
10444 else
10445 # As a last resort, use the slow shell script. Don't cache a
10446 # value for MKDIR_P within a source directory, because that will
10447 # break other packages using the cache if that directory is
10448 # removed, or if the value is a relative name.
10449 MKDIR_P="$ac_install_sh -d"
10450 fi
10451 fi
10452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
10453 $as_echo "$MKDIR_P" >&6; }
10454
10455 for ac_prog in gawk mawk nawk awk
10456 do
10457 # Extract the first word of "$ac_prog", so it can be a program name with args.
10458 set dummy $ac_prog; ac_word=$2
10459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10460 $as_echo_n "checking for $ac_word... " >&6; }
10461 if ${ac_cv_prog_AWK+:} false; then :
10462 $as_echo_n "(cached) " >&6
10463 else
10464 if test -n "$AWK"; then
10465 ac_cv_prog_AWK="$AWK" # Let the user override the test.
10466 else
10467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10468 for as_dir in $PATH
10469 do
10470 IFS=$as_save_IFS
10471 test -z "$as_dir" && as_dir=.
10472 for ac_exec_ext in '' $ac_executable_extensions; do
10473 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10474 ac_cv_prog_AWK="$ac_prog"
10475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10476 break 2
10477 fi
10478 done
10479 done
10480 IFS=$as_save_IFS
10481
10482 fi
10483 fi
10484 AWK=$ac_cv_prog_AWK
10485 if test -n "$AWK"; then
10486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
10487 $as_echo "$AWK" >&6; }
10488 else
10489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10490 $as_echo "no" >&6; }
10491 fi
10492
10493
10494 test -n "$AWK" && break
10495 done
10496
10497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10498 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
10499 set x ${MAKE-make}
10500 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
10501 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
10502 $as_echo_n "(cached) " >&6
10503 else
10504 cat >conftest.make <<\_ACEOF
10505 SHELL = /bin/sh
10506 all:
10507 @echo '@@@%%%=$(MAKE)=@@@%%%'
10508 _ACEOF
10509 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
10510 case `${MAKE-make} -f conftest.make 2>/dev/null` in
10511 *@@@%%%=?*=@@@%%%*)
10512 eval ac_cv_prog_make_${ac_make}_set=yes;;
10513 *)
10514 eval ac_cv_prog_make_${ac_make}_set=no;;
10515 esac
10516 rm -f conftest.make
10517 fi
10518 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
10519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10520 $as_echo "yes" >&6; }
10521 SET_MAKE=
10522 else
10523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10524 $as_echo "no" >&6; }
10525 SET_MAKE="MAKE=${MAKE-make}"
10526 fi
10527
10528 rm -rf .tst 2>/dev/null
10529 mkdir .tst 2>/dev/null
10530 if test -d .tst; then
10531 am__leading_dot=.
10532 else
10533 am__leading_dot=_
10534 fi
10535 rmdir .tst 2>/dev/null
10536
10537 DEPDIR="${am__leading_dot}deps"
10538
10539 ac_config_commands="$ac_config_commands depfiles"
10540
10541
10542 am_make=${MAKE-make}
10543 cat > confinc << 'END'
10544 am__doit:
10545 @echo this is the am__doit target
10546 .PHONY: am__doit
10547 END
10548 # If we don't find an include directive, just comment out the code.
10549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
10550 $as_echo_n "checking for style of include used by $am_make... " >&6; }
10551 am__include="#"
10552 am__quote=
10553 _am_result=none
10554 # First try GNU make style include.
10555 echo "include confinc" > confmf
10556 # Ignore all kinds of additional output from 'make'.
10557 case `$am_make -s -f confmf 2> /dev/null` in #(
10558 *the\ am__doit\ target*)
10559 am__include=include
10560 am__quote=
10561 _am_result=GNU
10562 ;;
10563 esac
10564 # Now try BSD make style include.
10565 if test "$am__include" = "#"; then
10566 echo '.include "confinc"' > confmf
10567 case `$am_make -s -f confmf 2> /dev/null` in #(
10568 *the\ am__doit\ target*)
10569 am__include=.include
10570 am__quote="\""
10571 _am_result=BSD
10572 ;;
10573 esac
10574 fi
10575
10576
10577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
10578 $as_echo "$_am_result" >&6; }
10579 rm -f confinc confmf
10580
10581 # Check whether --enable-dependency-tracking was given.
10582 if test "${enable_dependency_tracking+set}" = set; then :
10583 enableval=$enable_dependency_tracking;
10584 fi
10585
10586 if test "x$enable_dependency_tracking" != xno; then
10587 am_depcomp="$ac_aux_dir/depcomp"
10588 AMDEPBACKSLASH='\'
10589 am__nodep='_no'
10590 fi
10591 if test "x$enable_dependency_tracking" != xno; then
10592 AMDEP_TRUE=
10593 AMDEP_FALSE='#'
10594 else
10595 AMDEP_TRUE='#'
10596 AMDEP_FALSE=
10597 fi
10598
10599
10600 if test "`cd $srcdir && pwd`" != "`pwd`"; then
10601 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
10602 # is not polluted with repeated "-I."
10603 am__isrc=' -I$(srcdir)'
10604 # test to see if srcdir already configured
10605 if test -f $srcdir/config.status; then
10606 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
10607 fi
10608 fi
10609
10610 # test whether we have cygpath
10611 if test -z "$CYGPATH_W"; then
10612 if (cygpath --version) >/dev/null 2>/dev/null; then
10613 CYGPATH_W='cygpath -w'
10614 else
10615 CYGPATH_W=echo
10616 fi
10617 fi
10618
10619
10620 # Define the identity of the package.
10621 PACKAGE='xf86-video-siliconmotion'
10622 VERSION='1.7.9'
10623
10624
10625 cat >>confdefs.h <<_ACEOF
10626 #define PACKAGE "$PACKAGE"
10627 _ACEOF
10628
10629
10630 cat >>confdefs.h <<_ACEOF
10631 #define VERSION "$VERSION"
10632 _ACEOF
10633
10634 # Some tools Automake needs.
10635
10636 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
10637
10638
10639 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
10640
10641
10642 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
10643
10644
10645 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
10646
10647
10648 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
10649
10650 # For better backward compatibility. To be removed once Automake 1.9.x
10651 # dies out for good. For more background, see:
10652 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
10653 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
10654 mkdir_p='$(MKDIR_P)'
10655
10656 # We need awk for the "check" target (and possibly the TAP driver). The
10657 # system "awk" is bad on some platforms.
10658 # Always define AMTAR for backward compatibility. Yes, it's still used
10659 # in the wild :-( We should find a proper way to deprecate it ...
10660 AMTAR='$${TAR-tar}'
10661
10662
10663 # We'll loop over all known methods to create a tar archive until one works.
10664 _am_tools='gnutar pax cpio none'
10665
10666 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
10667
10668
10669
10670
10671
10672 depcc="$CC" am_compiler_list=
10673
10674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
10675 $as_echo_n "checking dependency style of $depcc... " >&6; }
10676 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
10677 $as_echo_n "(cached) " >&6
10678 else
10679 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
10680 # We make a subdir and do the tests there. Otherwise we can end up
10681 # making bogus files that we don't know about and never remove. For
10682 # instance it was reported that on HP-UX the gcc test will end up
10683 # making a dummy file named 'D' -- because '-MD' means "put the output
10684 # in D".
10685 rm -rf conftest.dir
10686 mkdir conftest.dir
10687 # Copy depcomp to subdir because otherwise we won't find it if we're
10688 # using a relative directory.
10689 cp "$am_depcomp" conftest.dir
10690 cd conftest.dir
10691 # We will build objects and dependencies in a subdirectory because
10692 # it helps to detect inapplicable dependency modes. For instance
10693 # both Tru64's cc and ICC support -MD to output dependencies as a
10694 # side effect of compilation, but ICC will put the dependencies in
10695 # the current directory while Tru64 will put them in the object
10696 # directory.
10697 mkdir sub
10698
10699 am_cv_CC_dependencies_compiler_type=none
10700 if test "$am_compiler_list" = ""; then
10701 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10702 fi
10703 am__universal=false
10704 case " $depcc " in #(
10705 *\ -arch\ *\ -arch\ *) am__universal=true ;;
10706 esac
10707
10708 for depmode in $am_compiler_list; do
10709 # Setup a source with many dependencies, because some compilers
10710 # like to wrap large dependency lists on column 80 (with \), and
10711 # we should not choose a depcomp mode which is confused by this.
10712 #
10713 # We need to recreate these files for each test, as the compiler may
10714 # overwrite some of them when testing with obscure command lines.
10715 # This happens at least with the AIX C compiler.
10716 : > sub/conftest.c
10717 for i in 1 2 3 4 5 6; do
10718 echo '#include "conftst'$i'.h"' >> sub/conftest.c
10719 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
10720 # Solaris 10 /bin/sh.
10721 echo '/* dummy */' > sub/conftst$i.h
10722 done
10723 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
10724
10725 # We check with '-c' and '-o' for the sake of the "dashmstdout"
10726 # mode. It turns out that the SunPro C++ compiler does not properly
10727 # handle '-M -o', and we need to detect this. Also, some Intel
10728 # versions had trouble with output in subdirs.
10729 am__obj=sub/conftest.${OBJEXT-o}
10730 am__minus_obj="-o $am__obj"
10731 case $depmode in
10732 gcc)
10733 # This depmode causes a compiler race in universal mode.
10734 test "$am__universal" = false || continue
10735 ;;
10736 nosideeffect)
10737 # After this tag, mechanisms are not by side-effect, so they'll
10738 # only be used when explicitly requested.
10739 if test "x$enable_dependency_tracking" = xyes; then
10740 continue
10741 else
10742 break
10743 fi
10744 ;;
10745 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
10746 # This compiler won't grok '-c -o', but also, the minuso test has
10747 # not run yet. These depmodes are late enough in the game, and
10748 # so weak that their functioning should not be impacted.
10749 am__obj=conftest.${OBJEXT-o}
10750 am__minus_obj=
10751 ;;
10752 none) break ;;
10753 esac
10754 if depmode=$depmode \
10755 source=sub/conftest.c object=$am__obj \
10756 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10757 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
10758 >/dev/null 2>conftest.err &&
10759 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
10760 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
10761 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
10762 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
10763 # icc doesn't choke on unknown options, it will just issue warnings
10764 # or remarks (even with -Werror). So we grep stderr for any message
10765 # that says an option was ignored or not supported.
10766 # When given -MP, icc 7.0 and 7.1 complain thusly:
10767 # icc: Command line warning: ignoring option '-M'; no argument required
10768 # The diagnosis changed in icc 8.0:
10769 # icc: Command line remark: option '-MP' not supported
10770 if (grep 'ignoring option' conftest.err ||
10771 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
10772 am_cv_CC_dependencies_compiler_type=$depmode
10773 break
10774 fi
10775 fi
10776 done
10777
10778 cd ..
10779 rm -rf conftest.dir
10780 else
10781 am_cv_CC_dependencies_compiler_type=none
10782 fi
10783
10784 fi
10785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
10786 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
10787 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
10788
10789 if
10790 test "x$enable_dependency_tracking" != xno \
10791 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
10792 am__fastdepCC_TRUE=
10793 am__fastdepCC_FALSE='#'
10794 else
10795 am__fastdepCC_TRUE='#'
10796 am__fastdepCC_FALSE=
10797 fi
10798
10799
10800
10801 # POSIX will say in a future version that running "rm -f" with no argument
10802 # is OK; and we want to be able to make that assumption in our Makefile
10803 # recipes. So use an aggressive probe to check that the usage we want is
10804 # actually supported "in the wild" to an acceptable degree.
10805 # See automake bug#10828.
10806 # To make any issue more visible, cause the running configure to be aborted
10807 # by default if the 'rm' program in use doesn't match our expectations; the
10808 # user can still override this though.
10809 if rm -f && rm -fr && rm -rf; then : OK; else
10810 cat >&2 <<'END'
10811 Oops!
10812
10813 Your 'rm' program seems unable to run without file operands specified
10814 on the command line, even when the '-f' option is present. This is contrary
10815 to the behaviour of most rm programs out there, and not conforming with
10816 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
10817
10818 Please tell bug-automake@gnu.org about your system, including the value
10819 of your $PATH and any error possibly output before this message. This
10820 can help us improve future automake versions.
10821
10822 END
10823 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
10824 echo 'Configuration will proceed anyway, since you have set the' >&2
10825 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
10826 echo >&2
10827 else
10828 cat >&2 <<'END'
10829 Aborting the configuration process, to ensure you take notice of the issue.
10830
10831 You can download and install GNU coreutils to get an 'rm' implementation
10832 that behaves properly: <http://www.gnu.org/software/coreutils/>.
10833
10834 If you want to complete the configuration process using your problematic
10835 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
10836 to "yes", and re-run configure.
10837
10838 END
10839 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
10840 fi
10841 fi
10842
10843
10844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
10845 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
10846 # Check whether --enable-maintainer-mode was given.
10847 if test "${enable_maintainer_mode+set}" = set; then :
10848 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
10849 else
10850 USE_MAINTAINER_MODE=no
10851 fi
10852
10853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
10854 $as_echo "$USE_MAINTAINER_MODE" >&6; }
10855 if test $USE_MAINTAINER_MODE = yes; then
10856 MAINTAINER_MODE_TRUE=
10857 MAINTAINER_MODE_FALSE='#'
10858 else
10859 MAINTAINER_MODE_TRUE='#'
10860 MAINTAINER_MODE_FALSE=
10861 fi
10862
10863 MAINT=$MAINTAINER_MODE_TRUE
10864
10865
10866
10867 # Initialize libtool
10868 # Check whether --enable-static was given.
10869 if test "${enable_static+set}" = set; then :
10870 enableval=$enable_static; p=${PACKAGE-default}
10871 case $enableval in
10872 yes) enable_static=yes ;;
10873 no) enable_static=no ;;
10874 *)
10875 enable_static=no
10876 # Look at the argument we got. We use all the common list separators.
10877 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10878 for pkg in $enableval; do
10879 IFS=$lt_save_ifs
10880 if test "X$pkg" = "X$p"; then
10881 enable_static=yes
10882 fi
10883 done
10884 IFS=$lt_save_ifs
10885 ;;
10886 esac
10887 else
10888 enable_static=no
10889 fi
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899 case `pwd` in
10900 *\ * | *\ *)
10901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10902 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10903 esac
10904
10905
10906
10907 macro_version='2.4.6'
10908 macro_revision='2.4.6'
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922 ltmain=$ac_aux_dir/ltmain.sh
10923
10924 # Backslashify metacharacters that are still active within
10925 # double-quoted strings.
10926 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10927
10928 # Same as above, but do not quote variable references.
10929 double_quote_subst='s/\(["`\\]\)/\\\1/g'
10930
10931 # Sed substitution to delay expansion of an escaped shell variable in a
10932 # double_quote_subst'ed string.
10933 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10934
10935 # Sed substitution to delay expansion of an escaped single quote.
10936 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10937
10938 # Sed substitution to avoid accidental globbing in evaled expressions
10939 no_glob_subst='s/\*/\\\*/g'
10940
10941 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10942 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
10943 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
10944
10945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
10946 $as_echo_n "checking how to print strings... " >&6; }
10947 # Test print first, because it will be a builtin if present.
10948 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
10949 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
10950 ECHO='print -r --'
10951 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
10952 ECHO='printf %s\n'
10953 else
10954 # Use this function as a fallback that always works.
10955 func_fallback_echo ()
10956 {
10957 eval 'cat <<_LTECHO_EOF
10958 $1
10959 _LTECHO_EOF'
10960 }
10961 ECHO='func_fallback_echo'
10962 fi
10963
10964 # func_echo_all arg...
10965 # Invoke $ECHO with all args, space-separated.
10966 func_echo_all ()
10967 {
10968 $ECHO ""
10969 }
10970
10971 case $ECHO in
10972 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
10973 $as_echo "printf" >&6; } ;;
10974 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
10975 $as_echo "print -r" >&6; } ;;
10976 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
10977 $as_echo "cat" >&6; } ;;
10978 esac
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
10994 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
10995 if ${ac_cv_path_SED+:} false; then :
10996 $as_echo_n "(cached) " >&6
10997 else
10998 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
10999 for ac_i in 1 2 3 4 5 6 7; do
11000 ac_script="$ac_script$as_nl$ac_script"
11001 done
11002 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11003 { ac_script=; unset ac_script;}
11004 if test -z "$SED"; then
11005 ac_path_SED_found=false
11006 # Loop through the user's path and test for each of PROGNAME-LIST
11007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11008 for as_dir in $PATH
11009 do
11010 IFS=$as_save_IFS
11011 test -z "$as_dir" && as_dir=.
11012 for ac_prog in sed gsed; do
11013 for ac_exec_ext in '' $ac_executable_extensions; do
11014 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11015 as_fn_executable_p "$ac_path_SED" || continue
11016 # Check for GNU ac_path_SED and select it if it is found.
11017 # Check for GNU $ac_path_SED
11018 case `"$ac_path_SED" --version 2>&1` in
11019 *GNU*)
11020 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11021 *)
11022 ac_count=0
11023 $as_echo_n 0123456789 >"conftest.in"
11024 while :
11025 do
11026 cat "conftest.in" "conftest.in" >"conftest.tmp"
11027 mv "conftest.tmp" "conftest.in"
11028 cp "conftest.in" "conftest.nl"
11029 $as_echo '' >> "conftest.nl"
11030 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11031 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11032 as_fn_arith $ac_count + 1 && ac_count=$as_val
11033 if test $ac_count -gt ${ac_path_SED_max-0}; then
11034 # Best one so far, save it but keep looking for a better one
11035 ac_cv_path_SED="$ac_path_SED"
11036 ac_path_SED_max=$ac_count
11037 fi
11038 # 10*(2^10) chars as input seems more than enough
11039 test $ac_count -gt 10 && break
11040 done
11041 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11042 esac
11043
11044 $ac_path_SED_found && break 3
11045 done
11046 done
11047 done
11048 IFS=$as_save_IFS
11049 if test -z "$ac_cv_path_SED"; then
11050 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
11051 fi
11052 else
11053 ac_cv_path_SED=$SED
11054 fi
11055
11056 fi
11057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11058 $as_echo "$ac_cv_path_SED" >&6; }
11059 SED="$ac_cv_path_SED"
11060 rm -f conftest.sed
11061
11062 test -z "$SED" && SED=sed
11063 Xsed="$SED -e 1s/^X//"
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11076 $as_echo_n "checking for fgrep... " >&6; }
11077 if ${ac_cv_path_FGREP+:} false; then :
11078 $as_echo_n "(cached) " >&6
11079 else
11080 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11081 then ac_cv_path_FGREP="$GREP -F"
11082 else
11083 if test -z "$FGREP"; then
11084 ac_path_FGREP_found=false
11085 # Loop through the user's path and test for each of PROGNAME-LIST
11086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11087 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11088 do
11089 IFS=$as_save_IFS
11090 test -z "$as_dir" && as_dir=.
11091 for ac_prog in fgrep; do
11092 for ac_exec_ext in '' $ac_executable_extensions; do
11093 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
11094 as_fn_executable_p "$ac_path_FGREP" || continue
11095 # Check for GNU ac_path_FGREP and select it if it is found.
11096 # Check for GNU $ac_path_FGREP
11097 case `"$ac_path_FGREP" --version 2>&1` in
11098 *GNU*)
11099 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11100 *)
11101 ac_count=0
11102 $as_echo_n 0123456789 >"conftest.in"
11103 while :
11104 do
11105 cat "conftest.in" "conftest.in" >"conftest.tmp"
11106 mv "conftest.tmp" "conftest.in"
11107 cp "conftest.in" "conftest.nl"
11108 $as_echo 'FGREP' >> "conftest.nl"
11109 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11110 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11111 as_fn_arith $ac_count + 1 && ac_count=$as_val
11112 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11113 # Best one so far, save it but keep looking for a better one
11114 ac_cv_path_FGREP="$ac_path_FGREP"
11115 ac_path_FGREP_max=$ac_count
11116 fi
11117 # 10*(2^10) chars as input seems more than enough
11118 test $ac_count -gt 10 && break
11119 done
11120 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11121 esac
11122
11123 $ac_path_FGREP_found && break 3
11124 done
11125 done
11126 done
11127 IFS=$as_save_IFS
11128 if test -z "$ac_cv_path_FGREP"; then
11129 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11130 fi
11131 else
11132 ac_cv_path_FGREP=$FGREP
11133 fi
11134
11135 fi
11136 fi
11137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11138 $as_echo "$ac_cv_path_FGREP" >&6; }
11139 FGREP="$ac_cv_path_FGREP"
11140
11141
11142 test -z "$GREP" && GREP=grep
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162 # Check whether --with-gnu-ld was given.
11163 if test "${with_gnu_ld+set}" = set; then :
11164 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
11165 else
11166 with_gnu_ld=no
11167 fi
11168
11169 ac_prog=ld
11170 if test yes = "$GCC"; then
11171 # Check if gcc -print-prog-name=ld gives a path.
11172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11173 $as_echo_n "checking for ld used by $CC... " >&6; }
11174 case $host in
11175 *-*-mingw*)
11176 # gcc leaves a trailing carriage return, which upsets mingw
11177 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11178 *)
11179 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11180 esac
11181 case $ac_prog in
11182 # Accept absolute paths.
11183 [\\/]* | ?:[\\/]*)
11184 re_direlt='/[^/][^/]*/\.\./'
11185 # Canonicalize the pathname of ld
11186 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11187 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11188 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11189 done
11190 test -z "$LD" && LD=$ac_prog
11191 ;;
11192 "")
11193 # If it fails, then pretend we aren't using GCC.
11194 ac_prog=ld
11195 ;;
11196 *)
11197 # If it is relative, then search for the first ld in PATH.
11198 with_gnu_ld=unknown
11199 ;;
11200 esac
11201 elif test yes = "$with_gnu_ld"; then
11202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11203 $as_echo_n "checking for GNU ld... " >&6; }
11204 else
11205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11206 $as_echo_n "checking for non-GNU ld... " >&6; }
11207 fi
11208 if ${lt_cv_path_LD+:} false; then :
11209 $as_echo_n "(cached) " >&6
11210 else
11211 if test -z "$LD"; then
11212 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11213 for ac_dir in $PATH; do
11214 IFS=$lt_save_ifs
11215 test -z "$ac_dir" && ac_dir=.
11216 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11217 lt_cv_path_LD=$ac_dir/$ac_prog
11218 # Check to see if the program is GNU ld. I'd rather use --version,
11219 # but apparently some variants of GNU ld only accept -v.
11220 # Break only if it was the GNU/non-GNU ld that we prefer.
11221 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11222 *GNU* | *'with BFD'*)
11223 test no != "$with_gnu_ld" && break
11224 ;;
11225 *)
11226 test yes != "$with_gnu_ld" && break
11227 ;;
11228 esac
11229 fi
11230 done
11231 IFS=$lt_save_ifs
11232 else
11233 lt_cv_path_LD=$LD # Let the user override the test with a path.
11234 fi
11235 fi
11236
11237 LD=$lt_cv_path_LD
11238 if test -n "$LD"; then
11239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11240 $as_echo "$LD" >&6; }
11241 else
11242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11243 $as_echo "no" >&6; }
11244 fi
11245 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11247 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11248 if ${lt_cv_prog_gnu_ld+:} false; then :
11249 $as_echo_n "(cached) " >&6
11250 else
11251 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11252 case `$LD -v 2>&1 </dev/null` in
11253 *GNU* | *'with BFD'*)
11254 lt_cv_prog_gnu_ld=yes
11255 ;;
11256 *)
11257 lt_cv_prog_gnu_ld=no
11258 ;;
11259 esac
11260 fi
11261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11262 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11263 with_gnu_ld=$lt_cv_prog_gnu_ld
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11274 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11275 if ${lt_cv_path_NM+:} false; then :
11276 $as_echo_n "(cached) " >&6
11277 else
11278 if test -n "$NM"; then
11279 # Let the user override the test.
11280 lt_cv_path_NM=$NM
11281 else
11282 lt_nm_to_check=${ac_tool_prefix}nm
11283 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11284 lt_nm_to_check="$lt_nm_to_check nm"
11285 fi
11286 for lt_tmp_nm in $lt_nm_to_check; do
11287 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11288 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11289 IFS=$lt_save_ifs
11290 test -z "$ac_dir" && ac_dir=.
11291 tmp_nm=$ac_dir/$lt_tmp_nm
11292 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
11293 # Check to see if the nm accepts a BSD-compat flag.
11294 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
11295 # nm: unknown option "B" ignored
11296 # Tru64's nm complains that /dev/null is an invalid object file
11297 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
11298 case $build_os in
11299 mingw*) lt_bad_file=conftest.nm/nofile ;;
11300 *) lt_bad_file=/dev/null ;;
11301 esac
11302 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
11303 *$lt_bad_file* | *'Invalid file or object type'*)
11304 lt_cv_path_NM="$tmp_nm -B"
11305 break 2
11306 ;;
11307 *)
11308 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11309 */dev/null*)
11310 lt_cv_path_NM="$tmp_nm -p"
11311 break 2
11312 ;;
11313 *)
11314 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11315 continue # so that we can try to find one that supports BSD flags
11316 ;;
11317 esac
11318 ;;
11319 esac
11320 fi
11321 done
11322 IFS=$lt_save_ifs
11323 done
11324 : ${lt_cv_path_NM=no}
11325 fi
11326 fi
11327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11328 $as_echo "$lt_cv_path_NM" >&6; }
11329 if test no != "$lt_cv_path_NM"; then
11330 NM=$lt_cv_path_NM
11331 else
11332 # Didn't find any BSD compatible name lister, look for dumpbin.
11333 if test -n "$DUMPBIN"; then :
11334 # Let the user override the test.
11335 else
11336 if test -n "$ac_tool_prefix"; then
11337 for ac_prog in dumpbin "link -dump"
11338 do
11339 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11340 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11342 $as_echo_n "checking for $ac_word... " >&6; }
11343 if ${ac_cv_prog_DUMPBIN+:} false; then :
11344 $as_echo_n "(cached) " >&6
11345 else
11346 if test -n "$DUMPBIN"; then
11347 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11348 else
11349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11350 for as_dir in $PATH
11351 do
11352 IFS=$as_save_IFS
11353 test -z "$as_dir" && as_dir=.
11354 for ac_exec_ext in '' $ac_executable_extensions; do
11355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11356 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11358 break 2
11359 fi
11360 done
11361 done
11362 IFS=$as_save_IFS
11363
11364 fi
11365 fi
11366 DUMPBIN=$ac_cv_prog_DUMPBIN
11367 if test -n "$DUMPBIN"; then
11368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11369 $as_echo "$DUMPBIN" >&6; }
11370 else
11371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11372 $as_echo "no" >&6; }
11373 fi
11374
11375
11376 test -n "$DUMPBIN" && break
11377 done
11378 fi
11379 if test -z "$DUMPBIN"; then
11380 ac_ct_DUMPBIN=$DUMPBIN
11381 for ac_prog in dumpbin "link -dump"
11382 do
11383 # Extract the first word of "$ac_prog", so it can be a program name with args.
11384 set dummy $ac_prog; ac_word=$2
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11386 $as_echo_n "checking for $ac_word... " >&6; }
11387 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
11388 $as_echo_n "(cached) " >&6
11389 else
11390 if test -n "$ac_ct_DUMPBIN"; then
11391 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11392 else
11393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11394 for as_dir in $PATH
11395 do
11396 IFS=$as_save_IFS
11397 test -z "$as_dir" && as_dir=.
11398 for ac_exec_ext in '' $ac_executable_extensions; do
11399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11400 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11402 break 2
11403 fi
11404 done
11405 done
11406 IFS=$as_save_IFS
11407
11408 fi
11409 fi
11410 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11411 if test -n "$ac_ct_DUMPBIN"; then
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11413 $as_echo "$ac_ct_DUMPBIN" >&6; }
11414 else
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11416 $as_echo "no" >&6; }
11417 fi
11418
11419
11420 test -n "$ac_ct_DUMPBIN" && break
11421 done
11422
11423 if test "x$ac_ct_DUMPBIN" = x; then
11424 DUMPBIN=":"
11425 else
11426 case $cross_compiling:$ac_tool_warned in
11427 yes:)
11428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11429 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11430 ac_tool_warned=yes ;;
11431 esac
11432 DUMPBIN=$ac_ct_DUMPBIN
11433 fi
11434 fi
11435
11436 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
11437 *COFF*)
11438 DUMPBIN="$DUMPBIN -symbols -headers"
11439 ;;
11440 *)
11441 DUMPBIN=:
11442 ;;
11443 esac
11444 fi
11445
11446 if test : != "$DUMPBIN"; then
11447 NM=$DUMPBIN
11448 fi
11449 fi
11450 test -z "$NM" && NM=nm
11451
11452
11453
11454
11455
11456
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11458 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
11459 if ${lt_cv_nm_interface+:} false; then :
11460 $as_echo_n "(cached) " >&6
11461 else
11462 lt_cv_nm_interface="BSD nm"
11463 echo "int some_variable = 0;" > conftest.$ac_ext
11464 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11465 (eval "$ac_compile" 2>conftest.err)
11466 cat conftest.err >&5
11467 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11468 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11469 cat conftest.err >&5
11470 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11471 cat conftest.out >&5
11472 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11473 lt_cv_nm_interface="MS dumpbin"
11474 fi
11475 rm -f conftest*
11476 fi
11477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11478 $as_echo "$lt_cv_nm_interface" >&6; }
11479
11480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11481 $as_echo_n "checking whether ln -s works... " >&6; }
11482 LN_S=$as_ln_s
11483 if test "$LN_S" = "ln -s"; then
11484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11485 $as_echo "yes" >&6; }
11486 else
11487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11488 $as_echo "no, using $LN_S" >&6; }
11489 fi
11490
11491 # find the maximum length of command line arguments
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11493 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
11494 if ${lt_cv_sys_max_cmd_len+:} false; then :
11495 $as_echo_n "(cached) " >&6
11496 else
11497 i=0
11498 teststring=ABCD
11499
11500 case $build_os in
11501 msdosdjgpp*)
11502 # On DJGPP, this test can blow up pretty badly due to problems in libc
11503 # (any single argument exceeding 2000 bytes causes a buffer overrun
11504 # during glob expansion). Even if it were fixed, the result of this
11505 # check would be larger than it should be.
11506 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11507 ;;
11508
11509 gnu*)
11510 # Under GNU Hurd, this test is not required because there is
11511 # no limit to the length of command line arguments.
11512 # Libtool will interpret -1 as no limit whatsoever
11513 lt_cv_sys_max_cmd_len=-1;
11514 ;;
11515
11516 cygwin* | mingw* | cegcc*)
11517 # On Win9x/ME, this test blows up -- it succeeds, but takes
11518 # about 5 minutes as the teststring grows exponentially.
11519 # Worse, since 9x/ME are not pre-emptively multitasking,
11520 # you end up with a "frozen" computer, even though with patience
11521 # the test eventually succeeds (with a max line length of 256k).
11522 # Instead, let's just punt: use the minimum linelength reported by
11523 # all of the supported platforms: 8192 (on NT/2K/XP).
11524 lt_cv_sys_max_cmd_len=8192;
11525 ;;
11526
11527 mint*)
11528 # On MiNT this can take a long time and run out of memory.
11529 lt_cv_sys_max_cmd_len=8192;
11530 ;;
11531
11532 amigaos*)
11533 # On AmigaOS with pdksh, this test takes hours, literally.
11534 # So we just punt and use a minimum line length of 8192.
11535 lt_cv_sys_max_cmd_len=8192;
11536 ;;
11537
11538 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
11539 # This has been around since 386BSD, at least. Likely further.
11540 if test -x /sbin/sysctl; then
11541 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11542 elif test -x /usr/sbin/sysctl; then
11543 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11544 else
11545 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
11546 fi
11547 # And add a safety zone
11548 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11549 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11550 ;;
11551
11552 interix*)
11553 # We know the value 262144 and hardcode it with a safety zone (like BSD)
11554 lt_cv_sys_max_cmd_len=196608
11555 ;;
11556
11557 os2*)
11558 # The test takes a long time on OS/2.
11559 lt_cv_sys_max_cmd_len=8192
11560 ;;
11561
11562 osf*)
11563 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11564 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11565 # nice to cause kernel panics so lets avoid the loop below.
11566 # First set a reasonable default.
11567 lt_cv_sys_max_cmd_len=16384
11568 #
11569 if test -x /sbin/sysconfig; then
11570 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11571 *1*) lt_cv_sys_max_cmd_len=-1 ;;
11572 esac
11573 fi
11574 ;;
11575 sco3.2v5*)
11576 lt_cv_sys_max_cmd_len=102400
11577 ;;
11578 sysv5* | sco5v6* | sysv4.2uw2*)
11579 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11580 if test -n "$kargmax"; then
11581 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
11582 else
11583 lt_cv_sys_max_cmd_len=32768
11584 fi
11585 ;;
11586 *)
11587 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11588 if test -n "$lt_cv_sys_max_cmd_len" && \
11589 test undefined != "$lt_cv_sys_max_cmd_len"; then
11590 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11591 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11592 else
11593 # Make teststring a little bigger before we do anything with it.
11594 # a 1K string should be a reasonable start.
11595 for i in 1 2 3 4 5 6 7 8; do
11596 teststring=$teststring$teststring
11597 done
11598 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11599 # If test is not a shell built-in, we'll probably end up computing a
11600 # maximum length that is only half of the actual maximum length, but
11601 # we can't tell.
11602 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
11603 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11604 test 17 != "$i" # 1/2 MB should be enough
11605 do
11606 i=`expr $i + 1`
11607 teststring=$teststring$teststring
11608 done
11609 # Only check the string length outside the loop.
11610 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11611 teststring=
11612 # Add a significant safety factor because C++ compilers can tack on
11613 # massive amounts of additional arguments before passing them to the
11614 # linker. It appears as though 1/2 is a usable value.
11615 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11616 fi
11617 ;;
11618 esac
11619
11620 fi
11621
11622 if test -n "$lt_cv_sys_max_cmd_len"; then
11623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11624 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11625 else
11626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11627 $as_echo "none" >&6; }
11628 fi
11629 max_cmd_len=$lt_cv_sys_max_cmd_len
11630
11631
11632
11633
11634
11635
11636 : ${CP="cp -f"}
11637 : ${MV="mv -f"}
11638 : ${RM="rm -f"}
11639
11640 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11641 lt_unset=unset
11642 else
11643 lt_unset=false
11644 fi
11645
11646
11647
11648
11649
11650 # test EBCDIC or ASCII
11651 case `echo X|tr X '\101'` in
11652 A) # ASCII based system
11653 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11654 lt_SP2NL='tr \040 \012'
11655 lt_NL2SP='tr \015\012 \040\040'
11656 ;;
11657 *) # EBCDIC based system
11658 lt_SP2NL='tr \100 \n'
11659 lt_NL2SP='tr \r\n \100\100'
11660 ;;
11661 esac
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11672 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11673 if ${lt_cv_to_host_file_cmd+:} false; then :
11674 $as_echo_n "(cached) " >&6
11675 else
11676 case $host in
11677 *-*-mingw* )
11678 case $build in
11679 *-*-mingw* ) # actually msys
11680 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11681 ;;
11682 *-*-cygwin* )
11683 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11684 ;;
11685 * ) # otherwise, assume *nix
11686 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11687 ;;
11688 esac
11689 ;;
11690 *-*-cygwin* )
11691 case $build in
11692 *-*-mingw* ) # actually msys
11693 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11694 ;;
11695 *-*-cygwin* )
11696 lt_cv_to_host_file_cmd=func_convert_file_noop
11697 ;;
11698 * ) # otherwise, assume *nix
11699 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11700 ;;
11701 esac
11702 ;;
11703 * ) # unhandled hosts (and "normal" native builds)
11704 lt_cv_to_host_file_cmd=func_convert_file_noop
11705 ;;
11706 esac
11707
11708 fi
11709
11710 to_host_file_cmd=$lt_cv_to_host_file_cmd
11711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11712 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
11713
11714
11715
11716
11717
11718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11719 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11720 if ${lt_cv_to_tool_file_cmd+:} false; then :
11721 $as_echo_n "(cached) " >&6
11722 else
11723 #assume ordinary cross tools, or native build.
11724 lt_cv_to_tool_file_cmd=func_convert_file_noop
11725 case $host in
11726 *-*-mingw* )
11727 case $build in
11728 *-*-mingw* ) # actually msys
11729 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11730 ;;
11731 esac
11732 ;;
11733 esac
11734
11735 fi
11736
11737 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11739 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11740
11741
11742
11743
11744
11745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11746 $as_echo_n "checking for $LD option to reload object files... " >&6; }
11747 if ${lt_cv_ld_reload_flag+:} false; then :
11748 $as_echo_n "(cached) " >&6
11749 else
11750 lt_cv_ld_reload_flag='-r'
11751 fi
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11753 $as_echo "$lt_cv_ld_reload_flag" >&6; }
11754 reload_flag=$lt_cv_ld_reload_flag
11755 case $reload_flag in
11756 "" | " "*) ;;
11757 *) reload_flag=" $reload_flag" ;;
11758 esac
11759 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11760 case $host_os in
11761 cygwin* | mingw* | pw32* | cegcc*)
11762 if test yes != "$GCC"; then
11763 reload_cmds=false
11764 fi
11765 ;;
11766 darwin*)
11767 if test yes = "$GCC"; then
11768 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
11769 else
11770 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11771 fi
11772 ;;
11773 esac
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783 if test -n "$ac_tool_prefix"; then
11784 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11785 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11787 $as_echo_n "checking for $ac_word... " >&6; }
11788 if ${ac_cv_prog_OBJDUMP+:} false; then :
11789 $as_echo_n "(cached) " >&6
11790 else
11791 if test -n "$OBJDUMP"; then
11792 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11793 else
11794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11795 for as_dir in $PATH
11796 do
11797 IFS=$as_save_IFS
11798 test -z "$as_dir" && as_dir=.
11799 for ac_exec_ext in '' $ac_executable_extensions; do
11800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11801 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11803 break 2
11804 fi
11805 done
11806 done
11807 IFS=$as_save_IFS
11808
11809 fi
11810 fi
11811 OBJDUMP=$ac_cv_prog_OBJDUMP
11812 if test -n "$OBJDUMP"; then
11813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11814 $as_echo "$OBJDUMP" >&6; }
11815 else
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11817 $as_echo "no" >&6; }
11818 fi
11819
11820
11821 fi
11822 if test -z "$ac_cv_prog_OBJDUMP"; then
11823 ac_ct_OBJDUMP=$OBJDUMP
11824 # Extract the first word of "objdump", so it can be a program name with args.
11825 set dummy objdump; ac_word=$2
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11827 $as_echo_n "checking for $ac_word... " >&6; }
11828 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11829 $as_echo_n "(cached) " >&6
11830 else
11831 if test -n "$ac_ct_OBJDUMP"; then
11832 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11833 else
11834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11835 for as_dir in $PATH
11836 do
11837 IFS=$as_save_IFS
11838 test -z "$as_dir" && as_dir=.
11839 for ac_exec_ext in '' $ac_executable_extensions; do
11840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11841 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11843 break 2
11844 fi
11845 done
11846 done
11847 IFS=$as_save_IFS
11848
11849 fi
11850 fi
11851 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11852 if test -n "$ac_ct_OBJDUMP"; then
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11854 $as_echo "$ac_ct_OBJDUMP" >&6; }
11855 else
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11857 $as_echo "no" >&6; }
11858 fi
11859
11860 if test "x$ac_ct_OBJDUMP" = x; then
11861 OBJDUMP="false"
11862 else
11863 case $cross_compiling:$ac_tool_warned in
11864 yes:)
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11866 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11867 ac_tool_warned=yes ;;
11868 esac
11869 OBJDUMP=$ac_ct_OBJDUMP
11870 fi
11871 else
11872 OBJDUMP="$ac_cv_prog_OBJDUMP"
11873 fi
11874
11875 test -z "$OBJDUMP" && OBJDUMP=objdump
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11886 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
11887 if ${lt_cv_deplibs_check_method+:} false; then :
11888 $as_echo_n "(cached) " >&6
11889 else
11890 lt_cv_file_magic_cmd='$MAGIC_CMD'
11891 lt_cv_file_magic_test_file=
11892 lt_cv_deplibs_check_method='unknown'
11893 # Need to set the preceding variable on all platforms that support
11894 # interlibrary dependencies.
11895 # 'none' -- dependencies not supported.
11896 # 'unknown' -- same as none, but documents that we really don't know.
11897 # 'pass_all' -- all dependencies passed with no checks.
11898 # 'test_compile' -- check by making test program.
11899 # 'file_magic [[regex]]' -- check by looking for files in library path
11900 # that responds to the $file_magic_cmd with a given extended regex.
11901 # If you have 'file' or equivalent on your system and you're not sure
11902 # whether 'pass_all' will *always* work, you probably want this one.
11903
11904 case $host_os in
11905 aix[4-9]*)
11906 lt_cv_deplibs_check_method=pass_all
11907 ;;
11908
11909 beos*)
11910 lt_cv_deplibs_check_method=pass_all
11911 ;;
11912
11913 bsdi[45]*)
11914 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11915 lt_cv_file_magic_cmd='/usr/bin/file -L'
11916 lt_cv_file_magic_test_file=/shlib/libc.so
11917 ;;
11918
11919 cygwin*)
11920 # func_win32_libid is a shell function defined in ltmain.sh
11921 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11922 lt_cv_file_magic_cmd='func_win32_libid'
11923 ;;
11924
11925 mingw* | pw32*)
11926 # Base MSYS/MinGW do not provide the 'file' command needed by
11927 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11928 # unless we find 'file', for example because we are cross-compiling.
11929 if ( file / ) >/dev/null 2>&1; then
11930 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11931 lt_cv_file_magic_cmd='func_win32_libid'
11932 else
11933 # Keep this pattern in sync with the one in func_win32_libid.
11934 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
11935 lt_cv_file_magic_cmd='$OBJDUMP -f'
11936 fi
11937 ;;
11938
11939 cegcc*)
11940 # use the weaker test based on 'objdump'. See mingw*.
11941 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11942 lt_cv_file_magic_cmd='$OBJDUMP -f'
11943 ;;
11944
11945 darwin* | rhapsody*)
11946 lt_cv_deplibs_check_method=pass_all
11947 ;;
11948
11949 freebsd* | dragonfly*)
11950 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11951 case $host_cpu in
11952 i*86 )
11953 # Not sure whether the presence of OpenBSD here was a mistake.
11954 # Let's accept both of them until this is cleared up.
11955 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11956 lt_cv_file_magic_cmd=/usr/bin/file
11957 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11958 ;;
11959 esac
11960 else
11961 lt_cv_deplibs_check_method=pass_all
11962 fi
11963 ;;
11964
11965 haiku*)
11966 lt_cv_deplibs_check_method=pass_all
11967 ;;
11968
11969 hpux10.20* | hpux11*)
11970 lt_cv_file_magic_cmd=/usr/bin/file
11971 case $host_cpu in
11972 ia64*)
11973 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11974 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11975 ;;
11976 hppa*64*)
11977 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]'
11978 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11979 ;;
11980 *)
11981 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
11982 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11983 ;;
11984 esac
11985 ;;
11986
11987 interix[3-9]*)
11988 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11989 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11990 ;;
11991
11992 irix5* | irix6* | nonstopux*)
11993 case $LD in
11994 *-32|*"-32 ") libmagic=32-bit;;
11995 *-n32|*"-n32 ") libmagic=N32;;
11996 *-64|*"-64 ") libmagic=64-bit;;
11997 *) libmagic=never-match;;
11998 esac
11999 lt_cv_deplibs_check_method=pass_all
12000 ;;
12001
12002 # This must be glibc/ELF.
12003 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12004 lt_cv_deplibs_check_method=pass_all
12005 ;;
12006
12007 netbsd*)
12008 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12009 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12010 else
12011 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12012 fi
12013 ;;
12014
12015 newos6*)
12016 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12017 lt_cv_file_magic_cmd=/usr/bin/file
12018 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12019 ;;
12020
12021 *nto* | *qnx*)
12022 lt_cv_deplibs_check_method=pass_all
12023 ;;
12024
12025 openbsd* | bitrig*)
12026 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12027 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12028 else
12029 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12030 fi
12031 ;;
12032
12033 osf3* | osf4* | osf5*)
12034 lt_cv_deplibs_check_method=pass_all
12035 ;;
12036
12037 rdos*)
12038 lt_cv_deplibs_check_method=pass_all
12039 ;;
12040
12041 solaris*)
12042 lt_cv_deplibs_check_method=pass_all
12043 ;;
12044
12045 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12046 lt_cv_deplibs_check_method=pass_all
12047 ;;
12048
12049 sysv4 | sysv4.3*)
12050 case $host_vendor in
12051 motorola)
12052 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]'
12053 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12054 ;;
12055 ncr)
12056 lt_cv_deplibs_check_method=pass_all
12057 ;;
12058 sequent)
12059 lt_cv_file_magic_cmd='/bin/file'
12060 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12061 ;;
12062 sni)
12063 lt_cv_file_magic_cmd='/bin/file'
12064 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12065 lt_cv_file_magic_test_file=/lib/libc.so
12066 ;;
12067 siemens)
12068 lt_cv_deplibs_check_method=pass_all
12069 ;;
12070 pc)
12071 lt_cv_deplibs_check_method=pass_all
12072 ;;
12073 esac
12074 ;;
12075
12076 tpf*)
12077 lt_cv_deplibs_check_method=pass_all
12078 ;;
12079 os2*)
12080 lt_cv_deplibs_check_method=pass_all
12081 ;;
12082 esac
12083
12084 fi
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12086 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12087
12088 file_magic_glob=
12089 want_nocaseglob=no
12090 if test "$build" = "$host"; then
12091 case $host_os in
12092 mingw* | pw32*)
12093 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
12094 want_nocaseglob=yes
12095 else
12096 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
12097 fi
12098 ;;
12099 esac
12100 fi
12101
12102 file_magic_cmd=$lt_cv_file_magic_cmd
12103 deplibs_check_method=$lt_cv_deplibs_check_method
12104 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127 if test -n "$ac_tool_prefix"; then
12128 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12129 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12131 $as_echo_n "checking for $ac_word... " >&6; }
12132 if ${ac_cv_prog_DLLTOOL+:} false; then :
12133 $as_echo_n "(cached) " >&6
12134 else
12135 if test -n "$DLLTOOL"; then
12136 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12137 else
12138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12139 for as_dir in $PATH
12140 do
12141 IFS=$as_save_IFS
12142 test -z "$as_dir" && as_dir=.
12143 for ac_exec_ext in '' $ac_executable_extensions; do
12144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12145 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12147 break 2
12148 fi
12149 done
12150 done
12151 IFS=$as_save_IFS
12152
12153 fi
12154 fi
12155 DLLTOOL=$ac_cv_prog_DLLTOOL
12156 if test -n "$DLLTOOL"; then
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12158 $as_echo "$DLLTOOL" >&6; }
12159 else
12160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12161 $as_echo "no" >&6; }
12162 fi
12163
12164
12165 fi
12166 if test -z "$ac_cv_prog_DLLTOOL"; then
12167 ac_ct_DLLTOOL=$DLLTOOL
12168 # Extract the first word of "dlltool", so it can be a program name with args.
12169 set dummy dlltool; ac_word=$2
12170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12171 $as_echo_n "checking for $ac_word... " >&6; }
12172 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
12173 $as_echo_n "(cached) " >&6
12174 else
12175 if test -n "$ac_ct_DLLTOOL"; then
12176 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12177 else
12178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12179 for as_dir in $PATH
12180 do
12181 IFS=$as_save_IFS
12182 test -z "$as_dir" && as_dir=.
12183 for ac_exec_ext in '' $ac_executable_extensions; do
12184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12185 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12187 break 2
12188 fi
12189 done
12190 done
12191 IFS=$as_save_IFS
12192
12193 fi
12194 fi
12195 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12196 if test -n "$ac_ct_DLLTOOL"; then
12197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12198 $as_echo "$ac_ct_DLLTOOL" >&6; }
12199 else
12200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12201 $as_echo "no" >&6; }
12202 fi
12203
12204 if test "x$ac_ct_DLLTOOL" = x; then
12205 DLLTOOL="false"
12206 else
12207 case $cross_compiling:$ac_tool_warned in
12208 yes:)
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12210 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12211 ac_tool_warned=yes ;;
12212 esac
12213 DLLTOOL=$ac_ct_DLLTOOL
12214 fi
12215 else
12216 DLLTOOL="$ac_cv_prog_DLLTOOL"
12217 fi
12218
12219 test -z "$DLLTOOL" && DLLTOOL=dlltool
12220
12221
12222
12223
12224
12225
12226
12227
12228
12229
12230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12231 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
12232 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
12233 $as_echo_n "(cached) " >&6
12234 else
12235 lt_cv_sharedlib_from_linklib_cmd='unknown'
12236
12237 case $host_os in
12238 cygwin* | mingw* | pw32* | cegcc*)
12239 # two different shell functions defined in ltmain.sh;
12240 # decide which one to use based on capabilities of $DLLTOOL
12241 case `$DLLTOOL --help 2>&1` in
12242 *--identify-strict*)
12243 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12244 ;;
12245 *)
12246 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12247 ;;
12248 esac
12249 ;;
12250 *)
12251 # fallback: assume linklib IS sharedlib
12252 lt_cv_sharedlib_from_linklib_cmd=$ECHO
12253 ;;
12254 esac
12255
12256 fi
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12258 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12259 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12260 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12261
12262
12263
12264
12265
12266
12267
12268 if test -n "$ac_tool_prefix"; then
12269 for ac_prog in ar
12270 do
12271 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12272 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12274 $as_echo_n "checking for $ac_word... " >&6; }
12275 if ${ac_cv_prog_AR+:} false; then :
12276 $as_echo_n "(cached) " >&6
12277 else
12278 if test -n "$AR"; then
12279 ac_cv_prog_AR="$AR" # Let the user override the test.
12280 else
12281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12282 for as_dir in $PATH
12283 do
12284 IFS=$as_save_IFS
12285 test -z "$as_dir" && as_dir=.
12286 for ac_exec_ext in '' $ac_executable_extensions; do
12287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12288 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
12289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12290 break 2
12291 fi
12292 done
12293 done
12294 IFS=$as_save_IFS
12295
12296 fi
12297 fi
12298 AR=$ac_cv_prog_AR
12299 if test -n "$AR"; then
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12301 $as_echo "$AR" >&6; }
12302 else
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12304 $as_echo "no" >&6; }
12305 fi
12306
12307
12308 test -n "$AR" && break
12309 done
12310 fi
12311 if test -z "$AR"; then
12312 ac_ct_AR=$AR
12313 for ac_prog in ar
12314 do
12315 # Extract the first word of "$ac_prog", so it can be a program name with args.
12316 set dummy $ac_prog; ac_word=$2
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12318 $as_echo_n "checking for $ac_word... " >&6; }
12319 if ${ac_cv_prog_ac_ct_AR+:} false; then :
12320 $as_echo_n "(cached) " >&6
12321 else
12322 if test -n "$ac_ct_AR"; then
12323 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12324 else
12325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12326 for as_dir in $PATH
12327 do
12328 IFS=$as_save_IFS
12329 test -z "$as_dir" && as_dir=.
12330 for ac_exec_ext in '' $ac_executable_extensions; do
12331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12332 ac_cv_prog_ac_ct_AR="$ac_prog"
12333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12334 break 2
12335 fi
12336 done
12337 done
12338 IFS=$as_save_IFS
12339
12340 fi
12341 fi
12342 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12343 if test -n "$ac_ct_AR"; then
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12345 $as_echo "$ac_ct_AR" >&6; }
12346 else
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12348 $as_echo "no" >&6; }
12349 fi
12350
12351
12352 test -n "$ac_ct_AR" && break
12353 done
12354
12355 if test "x$ac_ct_AR" = x; then
12356 AR="false"
12357 else
12358 case $cross_compiling:$ac_tool_warned in
12359 yes:)
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12361 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12362 ac_tool_warned=yes ;;
12363 esac
12364 AR=$ac_ct_AR
12365 fi
12366 fi
12367
12368 : ${AR=ar}
12369 : ${AR_FLAGS=cru}
12370
12371
12372
12373
12374
12375
12376
12377
12378
12379
12380
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12382 $as_echo_n "checking for archiver @FILE support... " >&6; }
12383 if ${lt_cv_ar_at_file+:} false; then :
12384 $as_echo_n "(cached) " >&6
12385 else
12386 lt_cv_ar_at_file=no
12387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12388 /* end confdefs.h. */
12389
12390 int
12391 main ()
12392 {
12393
12394 ;
12395 return 0;
12396 }
12397 _ACEOF
12398 if ac_fn_c_try_compile "$LINENO"; then :
12399 echo conftest.$ac_objext > conftest.lst
12400 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12401 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12402 (eval $lt_ar_try) 2>&5
12403 ac_status=$?
12404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12405 test $ac_status = 0; }
12406 if test 0 -eq "$ac_status"; then
12407 # Ensure the archiver fails upon bogus file names.
12408 rm -f conftest.$ac_objext libconftest.a
12409 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12410 (eval $lt_ar_try) 2>&5
12411 ac_status=$?
12412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12413 test $ac_status = 0; }
12414 if test 0 -ne "$ac_status"; then
12415 lt_cv_ar_at_file=@
12416 fi
12417 fi
12418 rm -f conftest.* libconftest.a
12419
12420 fi
12421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12422
12423 fi
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12425 $as_echo "$lt_cv_ar_at_file" >&6; }
12426
12427 if test no = "$lt_cv_ar_at_file"; then
12428 archiver_list_spec=
12429 else
12430 archiver_list_spec=$lt_cv_ar_at_file
12431 fi
12432
12433
12434
12435
12436
12437
12438
12439 if test -n "$ac_tool_prefix"; then
12440 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12441 set dummy ${ac_tool_prefix}strip; ac_word=$2
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12443 $as_echo_n "checking for $ac_word... " >&6; }
12444 if ${ac_cv_prog_STRIP+:} false; then :
12445 $as_echo_n "(cached) " >&6
12446 else
12447 if test -n "$STRIP"; then
12448 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12449 else
12450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12451 for as_dir in $PATH
12452 do
12453 IFS=$as_save_IFS
12454 test -z "$as_dir" && as_dir=.
12455 for ac_exec_ext in '' $ac_executable_extensions; do
12456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12457 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12459 break 2
12460 fi
12461 done
12462 done
12463 IFS=$as_save_IFS
12464
12465 fi
12466 fi
12467 STRIP=$ac_cv_prog_STRIP
12468 if test -n "$STRIP"; then
12469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12470 $as_echo "$STRIP" >&6; }
12471 else
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12473 $as_echo "no" >&6; }
12474 fi
12475
12476
12477 fi
12478 if test -z "$ac_cv_prog_STRIP"; then
12479 ac_ct_STRIP=$STRIP
12480 # Extract the first word of "strip", so it can be a program name with args.
12481 set dummy strip; ac_word=$2
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12483 $as_echo_n "checking for $ac_word... " >&6; }
12484 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12485 $as_echo_n "(cached) " >&6
12486 else
12487 if test -n "$ac_ct_STRIP"; then
12488 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12489 else
12490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12491 for as_dir in $PATH
12492 do
12493 IFS=$as_save_IFS
12494 test -z "$as_dir" && as_dir=.
12495 for ac_exec_ext in '' $ac_executable_extensions; do
12496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12497 ac_cv_prog_ac_ct_STRIP="strip"
12498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12499 break 2
12500 fi
12501 done
12502 done
12503 IFS=$as_save_IFS
12504
12505 fi
12506 fi
12507 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12508 if test -n "$ac_ct_STRIP"; then
12509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12510 $as_echo "$ac_ct_STRIP" >&6; }
12511 else
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12513 $as_echo "no" >&6; }
12514 fi
12515
12516 if test "x$ac_ct_STRIP" = x; then
12517 STRIP=":"
12518 else
12519 case $cross_compiling:$ac_tool_warned in
12520 yes:)
12521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12522 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12523 ac_tool_warned=yes ;;
12524 esac
12525 STRIP=$ac_ct_STRIP
12526 fi
12527 else
12528 STRIP="$ac_cv_prog_STRIP"
12529 fi
12530
12531 test -z "$STRIP" && STRIP=:
12532
12533
12534
12535
12536
12537
12538 if test -n "$ac_tool_prefix"; then
12539 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12540 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12542 $as_echo_n "checking for $ac_word... " >&6; }
12543 if ${ac_cv_prog_RANLIB+:} false; then :
12544 $as_echo_n "(cached) " >&6
12545 else
12546 if test -n "$RANLIB"; then
12547 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12548 else
12549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12550 for as_dir in $PATH
12551 do
12552 IFS=$as_save_IFS
12553 test -z "$as_dir" && as_dir=.
12554 for ac_exec_ext in '' $ac_executable_extensions; do
12555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12556 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12558 break 2
12559 fi
12560 done
12561 done
12562 IFS=$as_save_IFS
12563
12564 fi
12565 fi
12566 RANLIB=$ac_cv_prog_RANLIB
12567 if test -n "$RANLIB"; then
12568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12569 $as_echo "$RANLIB" >&6; }
12570 else
12571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12572 $as_echo "no" >&6; }
12573 fi
12574
12575
12576 fi
12577 if test -z "$ac_cv_prog_RANLIB"; then
12578 ac_ct_RANLIB=$RANLIB
12579 # Extract the first word of "ranlib", so it can be a program name with args.
12580 set dummy ranlib; ac_word=$2
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12582 $as_echo_n "checking for $ac_word... " >&6; }
12583 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12584 $as_echo_n "(cached) " >&6
12585 else
12586 if test -n "$ac_ct_RANLIB"; then
12587 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12588 else
12589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12590 for as_dir in $PATH
12591 do
12592 IFS=$as_save_IFS
12593 test -z "$as_dir" && as_dir=.
12594 for ac_exec_ext in '' $ac_executable_extensions; do
12595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12596 ac_cv_prog_ac_ct_RANLIB="ranlib"
12597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12598 break 2
12599 fi
12600 done
12601 done
12602 IFS=$as_save_IFS
12603
12604 fi
12605 fi
12606 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12607 if test -n "$ac_ct_RANLIB"; then
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12609 $as_echo "$ac_ct_RANLIB" >&6; }
12610 else
12611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12612 $as_echo "no" >&6; }
12613 fi
12614
12615 if test "x$ac_ct_RANLIB" = x; then
12616 RANLIB=":"
12617 else
12618 case $cross_compiling:$ac_tool_warned in
12619 yes:)
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12621 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12622 ac_tool_warned=yes ;;
12623 esac
12624 RANLIB=$ac_ct_RANLIB
12625 fi
12626 else
12627 RANLIB="$ac_cv_prog_RANLIB"
12628 fi
12629
12630 test -z "$RANLIB" && RANLIB=:
12631
12632
12633
12634
12635
12636
12637 # Determine commands to create old-style static archives.
12638 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12639 old_postinstall_cmds='chmod 644 $oldlib'
12640 old_postuninstall_cmds=
12641
12642 if test -n "$RANLIB"; then
12643 case $host_os in
12644 bitrig* | openbsd*)
12645 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
12646 ;;
12647 *)
12648 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
12649 ;;
12650 esac
12651 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
12652 fi
12653
12654 case $host_os in
12655 darwin*)
12656 lock_old_archive_extraction=yes ;;
12657 *)
12658 lock_old_archive_extraction=no ;;
12659 esac
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699 # If no C compiler was specified, use CC.
12700 LTCC=${LTCC-"$CC"}
12701
12702 # If no C compiler flags were specified, use CFLAGS.
12703 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12704
12705 # Allow CC to be a program name with arguments.
12706 compiler=$CC
12707
12708
12709 # Check for command to grab the raw symbol name followed by C symbol from nm.
12710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12711 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12712 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
12713 $as_echo_n "(cached) " >&6
12714 else
12715
12716 # These are sane defaults that work on at least a few old systems.
12717 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
12718
12719 # Character class describing NM global symbol codes.
12720 symcode='[BCDEGRST]'
12721
12722 # Regexp to match symbols that can be accessed directly from C.
12723 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12724
12725 # Define system-specific variables.
12726 case $host_os in
12727 aix*)
12728 symcode='[BCDT]'
12729 ;;
12730 cygwin* | mingw* | pw32* | cegcc*)
12731 symcode='[ABCDGISTW]'
12732 ;;
12733 hpux*)
12734 if test ia64 = "$host_cpu"; then
12735 symcode='[ABCDEGRST]'
12736 fi
12737 ;;
12738 irix* | nonstopux*)
12739 symcode='[BCDEGRST]'
12740 ;;
12741 osf*)
12742 symcode='[BCDEGQRST]'
12743 ;;
12744 solaris*)
12745 symcode='[BDRT]'
12746 ;;
12747 sco3.2v5*)
12748 symcode='[DT]'
12749 ;;
12750 sysv4.2uw2*)
12751 symcode='[DT]'
12752 ;;
12753 sysv5* | sco5v6* | unixware* | OpenUNIX*)
12754 symcode='[ABDT]'
12755 ;;
12756 sysv4)
12757 symcode='[DFNSTU]'
12758 ;;
12759 esac
12760
12761 # If we're using GNU nm, then use its standard symbol codes.
12762 case `$NM -V 2>&1` in
12763 *GNU* | *'with BFD'*)
12764 symcode='[ABCDGIRSTW]' ;;
12765 esac
12766
12767 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12768 # Gets list of data symbols to import.
12769 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
12770 # Adjust the below global symbol transforms to fixup imported variables.
12771 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
12772 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
12773 lt_c_name_lib_hook="\
12774 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
12775 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
12776 else
12777 # Disable hooks by default.
12778 lt_cv_sys_global_symbol_to_import=
12779 lt_cdecl_hook=
12780 lt_c_name_hook=
12781 lt_c_name_lib_hook=
12782 fi
12783
12784 # Transform an extracted symbol line into a proper C declaration.
12785 # Some systems (esp. on ia64) link data and code symbols differently,
12786 # so use this general approach.
12787 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
12788 $lt_cdecl_hook\
12789 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
12790 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
12791
12792 # Transform an extracted symbol line into symbol name and symbol address
12793 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
12794 $lt_c_name_hook\
12795 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
12796 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
12797
12798 # Transform an extracted symbol line into symbol name with lib prefix and
12799 # symbol address.
12800 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
12801 $lt_c_name_lib_hook\
12802 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
12803 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
12804 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
12805
12806 # Handle CRLF in mingw tool chain
12807 opt_cr=
12808 case $build_os in
12809 mingw*)
12810 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12811 ;;
12812 esac
12813
12814 # Try without a prefix underscore, then with it.
12815 for ac_symprfx in "" "_"; do
12816
12817 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12818 symxfrm="\\1 $ac_symprfx\\2 \\2"
12819
12820 # Write the raw and C identifiers.
12821 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12822 # Fake it for dumpbin and say T for any non-static function,
12823 # D for any global variable and I for any imported variable.
12824 # Also find C++ and __fastcall symbols from MSVC++,
12825 # which start with @ or ?.
12826 lt_cv_sys_global_symbol_pipe="$AWK '"\
12827 " {last_section=section; section=\$ 3};"\
12828 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
12829 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12830 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
12831 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
12832 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
12833 " \$ 0!~/External *\|/{next};"\
12834 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12835 " {if(hide[section]) next};"\
12836 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
12837 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
12838 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
12839 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
12840 " ' prfx=^$ac_symprfx"
12841 else
12842 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12843 fi
12844 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
12845
12846 # Check to see that the pipe works correctly.
12847 pipe_works=no
12848
12849 rm -f conftest*
12850 cat > conftest.$ac_ext <<_LT_EOF
12851 #ifdef __cplusplus
12852 extern "C" {
12853 #endif
12854 char nm_test_var;
12855 void nm_test_func(void);
12856 void nm_test_func(void){}
12857 #ifdef __cplusplus
12858 }
12859 #endif
12860 int main(){nm_test_var='a';nm_test_func();return(0);}
12861 _LT_EOF
12862
12863 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12864 (eval $ac_compile) 2>&5
12865 ac_status=$?
12866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12867 test $ac_status = 0; }; then
12868 # Now try to grab the symbols.
12869 nlist=conftest.nm
12870 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12871 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12872 ac_status=$?
12873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12874 test $ac_status = 0; } && test -s "$nlist"; then
12875 # Try sorting and uniquifying the output.
12876 if sort "$nlist" | uniq > "$nlist"T; then
12877 mv -f "$nlist"T "$nlist"
12878 else
12879 rm -f "$nlist"T
12880 fi
12881
12882 # Make sure that we snagged all the symbols we need.
12883 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12884 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12885 cat <<_LT_EOF > conftest.$ac_ext
12886 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
12887 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
12888 /* DATA imports from DLLs on WIN32 can't be const, because runtime
12889 relocations are performed -- see ld's documentation on pseudo-relocs. */
12890 # define LT_DLSYM_CONST
12891 #elif defined __osf__
12892 /* This system does not cope well with relocations in const data. */
12893 # define LT_DLSYM_CONST
12894 #else
12895 # define LT_DLSYM_CONST const
12896 #endif
12897
12898 #ifdef __cplusplus
12899 extern "C" {
12900 #endif
12901
12902 _LT_EOF
12903 # Now generate the symbol file.
12904 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12905
12906 cat <<_LT_EOF >> conftest.$ac_ext
12907
12908 /* The mapping between symbol names and symbols. */
12909 LT_DLSYM_CONST struct {
12910 const char *name;
12911 void *address;
12912 }
12913 lt__PROGRAM__LTX_preloaded_symbols[] =
12914 {
12915 { "@PROGRAM@", (void *) 0 },
12916 _LT_EOF
12917 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12918 cat <<\_LT_EOF >> conftest.$ac_ext
12919 {0, (void *) 0}
12920 };
12921
12922 /* This works around a problem in FreeBSD linker */
12923 #ifdef FREEBSD_WORKAROUND
12924 static const void *lt_preloaded_setup() {
12925 return lt__PROGRAM__LTX_preloaded_symbols;
12926 }
12927 #endif
12928
12929 #ifdef __cplusplus
12930 }
12931 #endif
12932 _LT_EOF
12933 # Now try linking the two files.
12934 mv conftest.$ac_objext conftstm.$ac_objext
12935 lt_globsym_save_LIBS=$LIBS
12936 lt_globsym_save_CFLAGS=$CFLAGS
12937 LIBS=conftstm.$ac_objext
12938 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12939 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12940 (eval $ac_link) 2>&5
12941 ac_status=$?
12942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12943 test $ac_status = 0; } && test -s conftest$ac_exeext; then
12944 pipe_works=yes
12945 fi
12946 LIBS=$lt_globsym_save_LIBS
12947 CFLAGS=$lt_globsym_save_CFLAGS
12948 else
12949 echo "cannot find nm_test_func in $nlist" >&5
12950 fi
12951 else
12952 echo "cannot find nm_test_var in $nlist" >&5
12953 fi
12954 else
12955 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12956 fi
12957 else
12958 echo "$progname: failed program was:" >&5
12959 cat conftest.$ac_ext >&5
12960 fi
12961 rm -rf conftest* conftst*
12962
12963 # Do not use the global_symbol_pipe unless it works.
12964 if test yes = "$pipe_works"; then
12965 break
12966 else
12967 lt_cv_sys_global_symbol_pipe=
12968 fi
12969 done
12970
12971 fi
12972
12973 if test -z "$lt_cv_sys_global_symbol_pipe"; then
12974 lt_cv_sys_global_symbol_to_cdecl=
12975 fi
12976 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12978 $as_echo "failed" >&6; }
12979 else
12980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12981 $as_echo "ok" >&6; }
12982 fi
12983
12984 # Response file support.
12985 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12986 nm_file_list_spec='@'
12987 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12988 nm_file_list_spec='@'
12989 fi
12990
12991
12992
12993
12994
12995
12996
12997
12998
12999
13000
13001
13002
13003
13004
13005
13006
13007
13008
13009
13010
13011
13012
13013
13014
13015
13016
13017
13018
13019
13020
13021
13022
13023
13024
13025
13026
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
13028 $as_echo_n "checking for sysroot... " >&6; }
13029
13030 # Check whether --with-sysroot was given.
13031 if test "${with_sysroot+set}" = set; then :
13032 withval=$with_sysroot;
13033 else
13034 with_sysroot=no
13035 fi
13036
13037
13038 lt_sysroot=
13039 case $with_sysroot in #(
13040 yes)
13041 if test yes = "$GCC"; then
13042 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
13043 fi
13044 ;; #(
13045 /*)
13046 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
13047 ;; #(
13048 no|'')
13049 ;; #(
13050 *)
13051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
13052 $as_echo "$with_sysroot" >&6; }
13053 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
13054 ;;
13055 esac
13056
13057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
13058 $as_echo "${lt_sysroot:-no}" >&6; }
13059
13060
13061
13062
13063
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
13065 $as_echo_n "checking for a working dd... " >&6; }
13066 if ${ac_cv_path_lt_DD+:} false; then :
13067 $as_echo_n "(cached) " >&6
13068 else
13069 printf 0123456789abcdef0123456789abcdef >conftest.i
13070 cat conftest.i conftest.i >conftest2.i
13071 : ${lt_DD:=$DD}
13072 if test -z "$lt_DD"; then
13073 ac_path_lt_DD_found=false
13074 # Loop through the user's path and test for each of PROGNAME-LIST
13075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13076 for as_dir in $PATH
13077 do
13078 IFS=$as_save_IFS
13079 test -z "$as_dir" && as_dir=.
13080 for ac_prog in dd; do
13081 for ac_exec_ext in '' $ac_executable_extensions; do
13082 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
13083 as_fn_executable_p "$ac_path_lt_DD" || continue
13084 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
13085 cmp -s conftest.i conftest.out \
13086 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
13087 fi
13088 $ac_path_lt_DD_found && break 3
13089 done
13090 done
13091 done
13092 IFS=$as_save_IFS
13093 if test -z "$ac_cv_path_lt_DD"; then
13094 :
13095 fi
13096 else
13097 ac_cv_path_lt_DD=$lt_DD
13098 fi
13099
13100 rm -f conftest.i conftest2.i conftest.out
13101 fi
13102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
13103 $as_echo "$ac_cv_path_lt_DD" >&6; }
13104
13105
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
13107 $as_echo_n "checking how to truncate binary pipes... " >&6; }
13108 if ${lt_cv_truncate_bin+:} false; then :
13109 $as_echo_n "(cached) " >&6
13110 else
13111 printf 0123456789abcdef0123456789abcdef >conftest.i
13112 cat conftest.i conftest.i >conftest2.i
13113 lt_cv_truncate_bin=
13114 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
13115 cmp -s conftest.i conftest.out \
13116 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
13117 fi
13118 rm -f conftest.i conftest2.i conftest.out
13119 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
13120 fi
13121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
13122 $as_echo "$lt_cv_truncate_bin" >&6; }
13123
13124
13125
13126
13127
13128
13129
13130 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
13131 func_cc_basename ()
13132 {
13133 for cc_temp in $*""; do
13134 case $cc_temp in
13135 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13136 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13137 \-*) ;;
13138 *) break;;
13139 esac
13140 done
13141 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13142 }
13143
13144 # Check whether --enable-libtool-lock was given.
13145 if test "${enable_libtool_lock+set}" = set; then :
13146 enableval=$enable_libtool_lock;
13147 fi
13148
13149 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
13150
13151 # Some flags need to be propagated to the compiler or linker for good
13152 # libtool support.
13153 case $host in
13154 ia64-*-hpux*)
13155 # Find out what ABI is being produced by ac_compile, and set mode
13156 # options accordingly.
13157 echo 'int i;' > conftest.$ac_ext
13158 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13159 (eval $ac_compile) 2>&5
13160 ac_status=$?
13161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13162 test $ac_status = 0; }; then
13163 case `/usr/bin/file conftest.$ac_objext` in
13164 *ELF-32*)
13165 HPUX_IA64_MODE=32
13166 ;;
13167 *ELF-64*)
13168 HPUX_IA64_MODE=64
13169 ;;
13170 esac
13171 fi
13172 rm -rf conftest*
13173 ;;
13174 *-*-irix6*)
13175 # Find out what ABI is being produced by ac_compile, and set linker
13176 # options accordingly.
13177 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13178 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13179 (eval $ac_compile) 2>&5
13180 ac_status=$?
13181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13182 test $ac_status = 0; }; then
13183 if test yes = "$lt_cv_prog_gnu_ld"; then
13184 case `/usr/bin/file conftest.$ac_objext` in
13185 *32-bit*)
13186 LD="${LD-ld} -melf32bsmip"
13187 ;;
13188 *N32*)
13189 LD="${LD-ld} -melf32bmipn32"
13190 ;;
13191 *64-bit*)
13192 LD="${LD-ld} -melf64bmip"
13193 ;;
13194 esac
13195 else
13196 case `/usr/bin/file conftest.$ac_objext` in
13197 *32-bit*)
13198 LD="${LD-ld} -32"
13199 ;;
13200 *N32*)
13201 LD="${LD-ld} -n32"
13202 ;;
13203 *64-bit*)
13204 LD="${LD-ld} -64"
13205 ;;
13206 esac
13207 fi
13208 fi
13209 rm -rf conftest*
13210 ;;
13211
13212 mips64*-*linux*)
13213 # Find out what ABI is being produced by ac_compile, and set linker
13214 # options accordingly.
13215 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13216 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13217 (eval $ac_compile) 2>&5
13218 ac_status=$?
13219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13220 test $ac_status = 0; }; then
13221 emul=elf
13222 case `/usr/bin/file conftest.$ac_objext` in
13223 *32-bit*)
13224 emul="${emul}32"
13225 ;;
13226 *64-bit*)
13227 emul="${emul}64"
13228 ;;
13229 esac
13230 case `/usr/bin/file conftest.$ac_objext` in
13231 *MSB*)
13232 emul="${emul}btsmip"
13233 ;;
13234 *LSB*)
13235 emul="${emul}ltsmip"
13236 ;;
13237 esac
13238 case `/usr/bin/file conftest.$ac_objext` in
13239 *N32*)
13240 emul="${emul}n32"
13241 ;;
13242 esac
13243 LD="${LD-ld} -m $emul"
13244 fi
13245 rm -rf conftest*
13246 ;;
13247
13248 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13249 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13250 # Find out what ABI is being produced by ac_compile, and set linker
13251 # options accordingly. Note that the listed cases only cover the
13252 # situations where additional linker options are needed (such as when
13253 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
13254 # vice versa); the common cases where no linker options are needed do
13255 # not appear in the list.
13256 echo 'int i;' > conftest.$ac_ext
13257 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13258 (eval $ac_compile) 2>&5
13259 ac_status=$?
13260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13261 test $ac_status = 0; }; then
13262 case `/usr/bin/file conftest.o` in
13263 *32-bit*)
13264 case $host in
13265 x86_64-*kfreebsd*-gnu)
13266 LD="${LD-ld} -m elf_i386_fbsd"
13267 ;;
13268 x86_64-*linux*)
13269 case `/usr/bin/file conftest.o` in
13270 *x86-64*)
13271 LD="${LD-ld} -m elf32_x86_64"
13272 ;;
13273 *)
13274 LD="${LD-ld} -m elf_i386"
13275 ;;
13276 esac
13277 ;;
13278 powerpc64le-*linux*)
13279 LD="${LD-ld} -m elf32lppclinux"
13280 ;;
13281 powerpc64-*linux*)
13282 LD="${LD-ld} -m elf32ppclinux"
13283 ;;
13284 s390x-*linux*)
13285 LD="${LD-ld} -m elf_s390"
13286 ;;
13287 sparc64-*linux*)
13288 LD="${LD-ld} -m elf32_sparc"
13289 ;;
13290 esac
13291 ;;
13292 *64-bit*)
13293 case $host in
13294 x86_64-*kfreebsd*-gnu)
13295 LD="${LD-ld} -m elf_x86_64_fbsd"
13296 ;;
13297 x86_64-*linux*)
13298 LD="${LD-ld} -m elf_x86_64"
13299 ;;
13300 powerpcle-*linux*)
13301 LD="${LD-ld} -m elf64lppc"
13302 ;;
13303 powerpc-*linux*)
13304 LD="${LD-ld} -m elf64ppc"
13305 ;;
13306 s390*-*linux*|s390*-*tpf*)
13307 LD="${LD-ld} -m elf64_s390"
13308 ;;
13309 sparc*-*linux*)
13310 LD="${LD-ld} -m elf64_sparc"
13311 ;;
13312 esac
13313 ;;
13314 esac
13315 fi
13316 rm -rf conftest*
13317 ;;
13318
13319 *-*-sco3.2v5*)
13320 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13321 SAVE_CFLAGS=$CFLAGS
13322 CFLAGS="$CFLAGS -belf"
13323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13324 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13325 if ${lt_cv_cc_needs_belf+:} false; then :
13326 $as_echo_n "(cached) " >&6
13327 else
13328 ac_ext=c
13329 ac_cpp='$CPP $CPPFLAGS'
13330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13333
13334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13335 /* end confdefs.h. */
13336
13337 int
13338 main ()
13339 {
13340
13341 ;
13342 return 0;
13343 }
13344 _ACEOF
13345 if ac_fn_c_try_link "$LINENO"; then :
13346 lt_cv_cc_needs_belf=yes
13347 else
13348 lt_cv_cc_needs_belf=no
13349 fi
13350 rm -f core conftest.err conftest.$ac_objext \
13351 conftest$ac_exeext conftest.$ac_ext
13352 ac_ext=c
13353 ac_cpp='$CPP $CPPFLAGS'
13354 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13355 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13356 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13357
13358 fi
13359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13360 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13361 if test yes != "$lt_cv_cc_needs_belf"; then
13362 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13363 CFLAGS=$SAVE_CFLAGS
13364 fi
13365 ;;
13366 *-*solaris*)
13367 # Find out what ABI is being produced by ac_compile, and set linker
13368 # options accordingly.
13369 echo 'int i;' > conftest.$ac_ext
13370 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13371 (eval $ac_compile) 2>&5
13372 ac_status=$?
13373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13374 test $ac_status = 0; }; then
13375 case `/usr/bin/file conftest.o` in
13376 *64-bit*)
13377 case $lt_cv_prog_gnu_ld in
13378 yes*)
13379 case $host in
13380 i?86-*-solaris*|x86_64-*-solaris*)
13381 LD="${LD-ld} -m elf_x86_64"
13382 ;;
13383 sparc*-*-solaris*)
13384 LD="${LD-ld} -m elf64_sparc"
13385 ;;
13386 esac
13387 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
13388 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
13389 LD=${LD-ld}_sol2
13390 fi
13391 ;;
13392 *)
13393 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13394 LD="${LD-ld} -64"
13395 fi
13396 ;;
13397 esac
13398 ;;
13399 esac
13400 fi
13401 rm -rf conftest*
13402 ;;
13403 esac
13404
13405 need_locks=$enable_libtool_lock
13406
13407 if test -n "$ac_tool_prefix"; then
13408 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
13409 set dummy ${ac_tool_prefix}mt; ac_word=$2
13410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13411 $as_echo_n "checking for $ac_word... " >&6; }
13412 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
13413 $as_echo_n "(cached) " >&6
13414 else
13415 if test -n "$MANIFEST_TOOL"; then
13416 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
13417 else
13418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13419 for as_dir in $PATH
13420 do
13421 IFS=$as_save_IFS
13422 test -z "$as_dir" && as_dir=.
13423 for ac_exec_ext in '' $ac_executable_extensions; do
13424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13425 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
13426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13427 break 2
13428 fi
13429 done
13430 done
13431 IFS=$as_save_IFS
13432
13433 fi
13434 fi
13435 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
13436 if test -n "$MANIFEST_TOOL"; then
13437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
13438 $as_echo "$MANIFEST_TOOL" >&6; }
13439 else
13440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13441 $as_echo "no" >&6; }
13442 fi
13443
13444
13445 fi
13446 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
13447 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
13448 # Extract the first word of "mt", so it can be a program name with args.
13449 set dummy mt; ac_word=$2
13450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13451 $as_echo_n "checking for $ac_word... " >&6; }
13452 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
13453 $as_echo_n "(cached) " >&6
13454 else
13455 if test -n "$ac_ct_MANIFEST_TOOL"; then
13456 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13457 else
13458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13459 for as_dir in $PATH
13460 do
13461 IFS=$as_save_IFS
13462 test -z "$as_dir" && as_dir=.
13463 for ac_exec_ext in '' $ac_executable_extensions; do
13464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13465 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13467 break 2
13468 fi
13469 done
13470 done
13471 IFS=$as_save_IFS
13472
13473 fi
13474 fi
13475 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13476 if test -n "$ac_ct_MANIFEST_TOOL"; then
13477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13478 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
13479 else
13480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13481 $as_echo "no" >&6; }
13482 fi
13483
13484 if test "x$ac_ct_MANIFEST_TOOL" = x; then
13485 MANIFEST_TOOL=":"
13486 else
13487 case $cross_compiling:$ac_tool_warned in
13488 yes:)
13489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13490 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13491 ac_tool_warned=yes ;;
13492 esac
13493 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13494 fi
13495 else
13496 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13497 fi
13498
13499 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13501 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13502 if ${lt_cv_path_mainfest_tool+:} false; then :
13503 $as_echo_n "(cached) " >&6
13504 else
13505 lt_cv_path_mainfest_tool=no
13506 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13507 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13508 cat conftest.err >&5
13509 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13510 lt_cv_path_mainfest_tool=yes
13511 fi
13512 rm -f conftest*
13513 fi
13514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13515 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
13516 if test yes != "$lt_cv_path_mainfest_tool"; then
13517 MANIFEST_TOOL=:
13518 fi
13519
13520
13521
13522
13523
13524
13525 case $host_os in
13526 rhapsody* | darwin*)
13527 if test -n "$ac_tool_prefix"; then
13528 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13529 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13531 $as_echo_n "checking for $ac_word... " >&6; }
13532 if ${ac_cv_prog_DSYMUTIL+:} false; then :
13533 $as_echo_n "(cached) " >&6
13534 else
13535 if test -n "$DSYMUTIL"; then
13536 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13537 else
13538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13539 for as_dir in $PATH
13540 do
13541 IFS=$as_save_IFS
13542 test -z "$as_dir" && as_dir=.
13543 for ac_exec_ext in '' $ac_executable_extensions; do
13544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13545 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13547 break 2
13548 fi
13549 done
13550 done
13551 IFS=$as_save_IFS
13552
13553 fi
13554 fi
13555 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13556 if test -n "$DSYMUTIL"; then
13557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13558 $as_echo "$DSYMUTIL" >&6; }
13559 else
13560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13561 $as_echo "no" >&6; }
13562 fi
13563
13564
13565 fi
13566 if test -z "$ac_cv_prog_DSYMUTIL"; then
13567 ac_ct_DSYMUTIL=$DSYMUTIL
13568 # Extract the first word of "dsymutil", so it can be a program name with args.
13569 set dummy dsymutil; ac_word=$2
13570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13571 $as_echo_n "checking for $ac_word... " >&6; }
13572 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
13573 $as_echo_n "(cached) " >&6
13574 else
13575 if test -n "$ac_ct_DSYMUTIL"; then
13576 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13577 else
13578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13579 for as_dir in $PATH
13580 do
13581 IFS=$as_save_IFS
13582 test -z "$as_dir" && as_dir=.
13583 for ac_exec_ext in '' $ac_executable_extensions; do
13584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13585 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13587 break 2
13588 fi
13589 done
13590 done
13591 IFS=$as_save_IFS
13592
13593 fi
13594 fi
13595 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13596 if test -n "$ac_ct_DSYMUTIL"; then
13597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13598 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13599 else
13600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13601 $as_echo "no" >&6; }
13602 fi
13603
13604 if test "x$ac_ct_DSYMUTIL" = x; then
13605 DSYMUTIL=":"
13606 else
13607 case $cross_compiling:$ac_tool_warned in
13608 yes:)
13609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13610 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13611 ac_tool_warned=yes ;;
13612 esac
13613 DSYMUTIL=$ac_ct_DSYMUTIL
13614 fi
13615 else
13616 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13617 fi
13618
13619 if test -n "$ac_tool_prefix"; then
13620 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13621 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13623 $as_echo_n "checking for $ac_word... " >&6; }
13624 if ${ac_cv_prog_NMEDIT+:} false; then :
13625 $as_echo_n "(cached) " >&6
13626 else
13627 if test -n "$NMEDIT"; then
13628 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13629 else
13630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13631 for as_dir in $PATH
13632 do
13633 IFS=$as_save_IFS
13634 test -z "$as_dir" && as_dir=.
13635 for ac_exec_ext in '' $ac_executable_extensions; do
13636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13637 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13639 break 2
13640 fi
13641 done
13642 done
13643 IFS=$as_save_IFS
13644
13645 fi
13646 fi
13647 NMEDIT=$ac_cv_prog_NMEDIT
13648 if test -n "$NMEDIT"; then
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13650 $as_echo "$NMEDIT" >&6; }
13651 else
13652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13653 $as_echo "no" >&6; }
13654 fi
13655
13656
13657 fi
13658 if test -z "$ac_cv_prog_NMEDIT"; then
13659 ac_ct_NMEDIT=$NMEDIT
13660 # Extract the first word of "nmedit", so it can be a program name with args.
13661 set dummy nmedit; ac_word=$2
13662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13663 $as_echo_n "checking for $ac_word... " >&6; }
13664 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
13665 $as_echo_n "(cached) " >&6
13666 else
13667 if test -n "$ac_ct_NMEDIT"; then
13668 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13669 else
13670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13671 for as_dir in $PATH
13672 do
13673 IFS=$as_save_IFS
13674 test -z "$as_dir" && as_dir=.
13675 for ac_exec_ext in '' $ac_executable_extensions; do
13676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13677 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13679 break 2
13680 fi
13681 done
13682 done
13683 IFS=$as_save_IFS
13684
13685 fi
13686 fi
13687 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13688 if test -n "$ac_ct_NMEDIT"; then
13689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13690 $as_echo "$ac_ct_NMEDIT" >&6; }
13691 else
13692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13693 $as_echo "no" >&6; }
13694 fi
13695
13696 if test "x$ac_ct_NMEDIT" = x; then
13697 NMEDIT=":"
13698 else
13699 case $cross_compiling:$ac_tool_warned in
13700 yes:)
13701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13702 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13703 ac_tool_warned=yes ;;
13704 esac
13705 NMEDIT=$ac_ct_NMEDIT
13706 fi
13707 else
13708 NMEDIT="$ac_cv_prog_NMEDIT"
13709 fi
13710
13711 if test -n "$ac_tool_prefix"; then
13712 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13713 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13715 $as_echo_n "checking for $ac_word... " >&6; }
13716 if ${ac_cv_prog_LIPO+:} false; then :
13717 $as_echo_n "(cached) " >&6
13718 else
13719 if test -n "$LIPO"; then
13720 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13721 else
13722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13723 for as_dir in $PATH
13724 do
13725 IFS=$as_save_IFS
13726 test -z "$as_dir" && as_dir=.
13727 for ac_exec_ext in '' $ac_executable_extensions; do
13728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13729 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13731 break 2
13732 fi
13733 done
13734 done
13735 IFS=$as_save_IFS
13736
13737 fi
13738 fi
13739 LIPO=$ac_cv_prog_LIPO
13740 if test -n "$LIPO"; then
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13742 $as_echo "$LIPO" >&6; }
13743 else
13744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13745 $as_echo "no" >&6; }
13746 fi
13747
13748
13749 fi
13750 if test -z "$ac_cv_prog_LIPO"; then
13751 ac_ct_LIPO=$LIPO
13752 # Extract the first word of "lipo", so it can be a program name with args.
13753 set dummy lipo; ac_word=$2
13754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13755 $as_echo_n "checking for $ac_word... " >&6; }
13756 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
13757 $as_echo_n "(cached) " >&6
13758 else
13759 if test -n "$ac_ct_LIPO"; then
13760 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13761 else
13762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13763 for as_dir in $PATH
13764 do
13765 IFS=$as_save_IFS
13766 test -z "$as_dir" && as_dir=.
13767 for ac_exec_ext in '' $ac_executable_extensions; do
13768 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13769 ac_cv_prog_ac_ct_LIPO="lipo"
13770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13771 break 2
13772 fi
13773 done
13774 done
13775 IFS=$as_save_IFS
13776
13777 fi
13778 fi
13779 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13780 if test -n "$ac_ct_LIPO"; then
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13782 $as_echo "$ac_ct_LIPO" >&6; }
13783 else
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13785 $as_echo "no" >&6; }
13786 fi
13787
13788 if test "x$ac_ct_LIPO" = x; then
13789 LIPO=":"
13790 else
13791 case $cross_compiling:$ac_tool_warned in
13792 yes:)
13793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13794 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13795 ac_tool_warned=yes ;;
13796 esac
13797 LIPO=$ac_ct_LIPO
13798 fi
13799 else
13800 LIPO="$ac_cv_prog_LIPO"
13801 fi
13802
13803 if test -n "$ac_tool_prefix"; then
13804 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13805 set dummy ${ac_tool_prefix}otool; ac_word=$2
13806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13807 $as_echo_n "checking for $ac_word... " >&6; }
13808 if ${ac_cv_prog_OTOOL+:} false; then :
13809 $as_echo_n "(cached) " >&6
13810 else
13811 if test -n "$OTOOL"; then
13812 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13813 else
13814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13815 for as_dir in $PATH
13816 do
13817 IFS=$as_save_IFS
13818 test -z "$as_dir" && as_dir=.
13819 for ac_exec_ext in '' $ac_executable_extensions; do
13820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13821 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13823 break 2
13824 fi
13825 done
13826 done
13827 IFS=$as_save_IFS
13828
13829 fi
13830 fi
13831 OTOOL=$ac_cv_prog_OTOOL
13832 if test -n "$OTOOL"; then
13833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13834 $as_echo "$OTOOL" >&6; }
13835 else
13836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13837 $as_echo "no" >&6; }
13838 fi
13839
13840
13841 fi
13842 if test -z "$ac_cv_prog_OTOOL"; then
13843 ac_ct_OTOOL=$OTOOL
13844 # Extract the first word of "otool", so it can be a program name with args.
13845 set dummy otool; ac_word=$2
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13847 $as_echo_n "checking for $ac_word... " >&6; }
13848 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
13849 $as_echo_n "(cached) " >&6
13850 else
13851 if test -n "$ac_ct_OTOOL"; then
13852 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13853 else
13854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13855 for as_dir in $PATH
13856 do
13857 IFS=$as_save_IFS
13858 test -z "$as_dir" && as_dir=.
13859 for ac_exec_ext in '' $ac_executable_extensions; do
13860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13861 ac_cv_prog_ac_ct_OTOOL="otool"
13862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13863 break 2
13864 fi
13865 done
13866 done
13867 IFS=$as_save_IFS
13868
13869 fi
13870 fi
13871 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13872 if test -n "$ac_ct_OTOOL"; then
13873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13874 $as_echo "$ac_ct_OTOOL" >&6; }
13875 else
13876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13877 $as_echo "no" >&6; }
13878 fi
13879
13880 if test "x$ac_ct_OTOOL" = x; then
13881 OTOOL=":"
13882 else
13883 case $cross_compiling:$ac_tool_warned in
13884 yes:)
13885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13886 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13887 ac_tool_warned=yes ;;
13888 esac
13889 OTOOL=$ac_ct_OTOOL
13890 fi
13891 else
13892 OTOOL="$ac_cv_prog_OTOOL"
13893 fi
13894
13895 if test -n "$ac_tool_prefix"; then
13896 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13897 set dummy ${ac_tool_prefix}otool64; ac_word=$2
13898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13899 $as_echo_n "checking for $ac_word... " >&6; }
13900 if ${ac_cv_prog_OTOOL64+:} false; then :
13901 $as_echo_n "(cached) " >&6
13902 else
13903 if test -n "$OTOOL64"; then
13904 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13905 else
13906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13907 for as_dir in $PATH
13908 do
13909 IFS=$as_save_IFS
13910 test -z "$as_dir" && as_dir=.
13911 for ac_exec_ext in '' $ac_executable_extensions; do
13912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13913 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13915 break 2
13916 fi
13917 done
13918 done
13919 IFS=$as_save_IFS
13920
13921 fi
13922 fi
13923 OTOOL64=$ac_cv_prog_OTOOL64
13924 if test -n "$OTOOL64"; then
13925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13926 $as_echo "$OTOOL64" >&6; }
13927 else
13928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13929 $as_echo "no" >&6; }
13930 fi
13931
13932
13933 fi
13934 if test -z "$ac_cv_prog_OTOOL64"; then
13935 ac_ct_OTOOL64=$OTOOL64
13936 # Extract the first word of "otool64", so it can be a program name with args.
13937 set dummy otool64; ac_word=$2
13938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13939 $as_echo_n "checking for $ac_word... " >&6; }
13940 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
13941 $as_echo_n "(cached) " >&6
13942 else
13943 if test -n "$ac_ct_OTOOL64"; then
13944 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13945 else
13946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13947 for as_dir in $PATH
13948 do
13949 IFS=$as_save_IFS
13950 test -z "$as_dir" && as_dir=.
13951 for ac_exec_ext in '' $ac_executable_extensions; do
13952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13953 ac_cv_prog_ac_ct_OTOOL64="otool64"
13954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13955 break 2
13956 fi
13957 done
13958 done
13959 IFS=$as_save_IFS
13960
13961 fi
13962 fi
13963 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13964 if test -n "$ac_ct_OTOOL64"; then
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13966 $as_echo "$ac_ct_OTOOL64" >&6; }
13967 else
13968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13969 $as_echo "no" >&6; }
13970 fi
13971
13972 if test "x$ac_ct_OTOOL64" = x; then
13973 OTOOL64=":"
13974 else
13975 case $cross_compiling:$ac_tool_warned in
13976 yes:)
13977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13978 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13979 ac_tool_warned=yes ;;
13980 esac
13981 OTOOL64=$ac_ct_OTOOL64
13982 fi
13983 else
13984 OTOOL64="$ac_cv_prog_OTOOL64"
13985 fi
13986
13987
13988
13989
13990
13991
13992
13993
13994
13995
13996
13997
13998
13999
14000
14001
14002
14003
14004
14005
14006
14007
14008
14009
14010
14011
14012
14013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14014 $as_echo_n "checking for -single_module linker flag... " >&6; }
14015 if ${lt_cv_apple_cc_single_mod+:} false; then :
14016 $as_echo_n "(cached) " >&6
14017 else
14018 lt_cv_apple_cc_single_mod=no
14019 if test -z "$LT_MULTI_MODULE"; then
14020 # By default we will add the -single_module flag. You can override
14021 # by either setting the environment variable LT_MULTI_MODULE
14022 # non-empty at configure time, or by adding -multi_module to the
14023 # link flags.
14024 rm -rf libconftest.dylib*
14025 echo "int foo(void){return 1;}" > conftest.c
14026 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14027 -dynamiclib -Wl,-single_module conftest.c" >&5
14028 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14029 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14030 _lt_result=$?
14031 # If there is a non-empty error log, and "single_module"
14032 # appears in it, assume the flag caused a linker warning
14033 if test -s conftest.err && $GREP single_module conftest.err; then
14034 cat conftest.err >&5
14035 # Otherwise, if the output was created with a 0 exit code from
14036 # the compiler, it worked.
14037 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
14038 lt_cv_apple_cc_single_mod=yes
14039 else
14040 cat conftest.err >&5
14041 fi
14042 rm -rf libconftest.dylib*
14043 rm -f conftest.*
14044 fi
14045 fi
14046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14047 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14048
14049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14050 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14051 if ${lt_cv_ld_exported_symbols_list+:} false; then :
14052 $as_echo_n "(cached) " >&6
14053 else
14054 lt_cv_ld_exported_symbols_list=no
14055 save_LDFLAGS=$LDFLAGS
14056 echo "_main" > conftest.sym
14057 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14059 /* end confdefs.h. */
14060
14061 int
14062 main ()
14063 {
14064
14065 ;
14066 return 0;
14067 }
14068 _ACEOF
14069 if ac_fn_c_try_link "$LINENO"; then :
14070 lt_cv_ld_exported_symbols_list=yes
14071 else
14072 lt_cv_ld_exported_symbols_list=no
14073 fi
14074 rm -f core conftest.err conftest.$ac_objext \
14075 conftest$ac_exeext conftest.$ac_ext
14076 LDFLAGS=$save_LDFLAGS
14077
14078 fi
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14080 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14081
14082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14083 $as_echo_n "checking for -force_load linker flag... " >&6; }
14084 if ${lt_cv_ld_force_load+:} false; then :
14085 $as_echo_n "(cached) " >&6
14086 else
14087 lt_cv_ld_force_load=no
14088 cat > conftest.c << _LT_EOF
14089 int forced_loaded() { return 2;}
14090 _LT_EOF
14091 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14092 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14093 echo "$AR cru libconftest.a conftest.o" >&5
14094 $AR cru libconftest.a conftest.o 2>&5
14095 echo "$RANLIB libconftest.a" >&5
14096 $RANLIB libconftest.a 2>&5
14097 cat > conftest.c << _LT_EOF
14098 int main() { return 0;}
14099 _LT_EOF
14100 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14101 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14102 _lt_result=$?
14103 if test -s conftest.err && $GREP force_load conftest.err; then
14104 cat conftest.err >&5
14105 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
14106 lt_cv_ld_force_load=yes
14107 else
14108 cat conftest.err >&5
14109 fi
14110 rm -f conftest.err libconftest.a conftest conftest.c
14111 rm -rf conftest.dSYM
14112
14113 fi
14114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14115 $as_echo "$lt_cv_ld_force_load" >&6; }
14116 case $host_os in
14117 rhapsody* | darwin1.[012])
14118 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
14119 darwin1.*)
14120 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
14121 darwin*) # darwin 5.x on
14122 # if running on 10.5 or later, the deployment target defaults
14123 # to the OS version, if on x86, and 10.4, the deployment
14124 # target defaults to 10.4. Don't you love it?
14125 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14126 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14127 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
14128 10.[012][,.]*)
14129 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
14130 10.*)
14131 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
14132 esac
14133 ;;
14134 esac
14135 if test yes = "$lt_cv_apple_cc_single_mod"; then
14136 _lt_dar_single_mod='$single_module'
14137 fi
14138 if test yes = "$lt_cv_ld_exported_symbols_list"; then
14139 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
14140 else
14141 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
14142 fi
14143 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
14144 _lt_dsymutil='~$DSYMUTIL $lib || :'
14145 else
14146 _lt_dsymutil=
14147 fi
14148 ;;
14149 esac
14150
14151 # func_munge_path_list VARIABLE PATH
14152 # -----------------------------------
14153 # VARIABLE is name of variable containing _space_ separated list of
14154 # directories to be munged by the contents of PATH, which is string
14155 # having a format:
14156 # "DIR[:DIR]:"
14157 # string "DIR[ DIR]" will be prepended to VARIABLE
14158 # ":DIR[:DIR]"
14159 # string "DIR[ DIR]" will be appended to VARIABLE
14160 # "DIRP[:DIRP]::[DIRA:]DIRA"
14161 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
14162 # "DIRA[ DIRA]" will be appended to VARIABLE
14163 # "DIR[:DIR]"
14164 # VARIABLE will be replaced by "DIR[ DIR]"
14165 func_munge_path_list ()
14166 {
14167 case x$2 in
14168 x)
14169 ;;
14170 *:)
14171 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
14172 ;;
14173 x:*)
14174 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
14175 ;;
14176 *::*)
14177 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
14178 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
14179 ;;
14180 *)
14181 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
14182 ;;
14183 esac
14184 }
14185
14186 for ac_header in dlfcn.h
14187 do :
14188 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
14189 "
14190 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
14191 cat >>confdefs.h <<_ACEOF
14192 #define HAVE_DLFCN_H 1
14193 _ACEOF
14194
14195 fi
14196
14197 done
14198
14199
14200
14201
14202
14203 # Set options
14204
14205
14206
14207 enable_dlopen=no
14208
14209
14210 enable_win32_dll=no
14211
14212
14213 # Check whether --enable-shared was given.
14214 if test "${enable_shared+set}" = set; then :
14215 enableval=$enable_shared; p=${PACKAGE-default}
14216 case $enableval in
14217 yes) enable_shared=yes ;;
14218 no) enable_shared=no ;;
14219 *)
14220 enable_shared=no
14221 # Look at the argument we got. We use all the common list separators.
14222 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14223 for pkg in $enableval; do
14224 IFS=$lt_save_ifs
14225 if test "X$pkg" = "X$p"; then
14226 enable_shared=yes
14227 fi
14228 done
14229 IFS=$lt_save_ifs
14230 ;;
14231 esac
14232 else
14233 enable_shared=yes
14234 fi
14235
14236
14237
14238
14239
14240
14241
14242
14243
14244
14245
14246 # Check whether --with-pic was given.
14247 if test "${with_pic+set}" = set; then :
14248 withval=$with_pic; lt_p=${PACKAGE-default}
14249 case $withval in
14250 yes|no) pic_mode=$withval ;;
14251 *)
14252 pic_mode=default
14253 # Look at the argument we got. We use all the common list separators.
14254 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14255 for lt_pkg in $withval; do
14256 IFS=$lt_save_ifs
14257 if test "X$lt_pkg" = "X$lt_p"; then
14258 pic_mode=yes
14259 fi
14260 done
14261 IFS=$lt_save_ifs
14262 ;;
14263 esac
14264 else
14265 pic_mode=default
14266 fi
14267
14268
14269
14270
14271
14272
14273
14274
14275 # Check whether --enable-fast-install was given.
14276 if test "${enable_fast_install+set}" = set; then :
14277 enableval=$enable_fast_install; p=${PACKAGE-default}
14278 case $enableval in
14279 yes) enable_fast_install=yes ;;
14280 no) enable_fast_install=no ;;
14281 *)
14282 enable_fast_install=no
14283 # Look at the argument we got. We use all the common list separators.
14284 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14285 for pkg in $enableval; do
14286 IFS=$lt_save_ifs
14287 if test "X$pkg" = "X$p"; then
14288 enable_fast_install=yes
14289 fi
14290 done
14291 IFS=$lt_save_ifs
14292 ;;
14293 esac
14294 else
14295 enable_fast_install=yes
14296 fi
14297
14298
14299
14300
14301
14302
14303
14304
14305 shared_archive_member_spec=
14306 case $host,$enable_shared in
14307 power*-*-aix[5-9]*,yes)
14308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
14309 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
14310
14311 # Check whether --with-aix-soname was given.
14312 if test "${with_aix_soname+set}" = set; then :
14313 withval=$with_aix_soname; case $withval in
14314 aix|svr4|both)
14315 ;;
14316 *)
14317 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
14318 ;;
14319 esac
14320 lt_cv_with_aix_soname=$with_aix_soname
14321 else
14322 if ${lt_cv_with_aix_soname+:} false; then :
14323 $as_echo_n "(cached) " >&6
14324 else
14325 lt_cv_with_aix_soname=aix
14326 fi
14327
14328 with_aix_soname=$lt_cv_with_aix_soname
14329 fi
14330
14331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
14332 $as_echo "$with_aix_soname" >&6; }
14333 if test aix != "$with_aix_soname"; then
14334 # For the AIX way of multilib, we name the shared archive member
14335 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
14336 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
14337 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
14338 # the AIX toolchain works better with OBJECT_MODE set (default 32).
14339 if test 64 = "${OBJECT_MODE-32}"; then
14340 shared_archive_member_spec=shr_64
14341 else
14342 shared_archive_member_spec=shr
14343 fi
14344 fi
14345 ;;
14346 *)
14347 with_aix_soname=aix
14348 ;;
14349 esac
14350
14351
14352
14353
14354
14355
14356
14357
14358
14359
14360 # This can be used to rebuild libtool when needed
14361 LIBTOOL_DEPS=$ltmain
14362
14363 # Always use our own libtool.
14364 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14365
14366
14367
14368
14369
14370
14371
14372
14373
14374
14375
14376
14377
14378
14379
14380
14381
14382
14383
14384
14385
14386
14387
14388
14389
14390
14391
14392
14393
14394
14395 test -z "$LN_S" && LN_S="ln -s"
14396
14397
14398
14399
14400
14401
14402
14403
14404
14405
14406
14407
14408
14409
14410 if test -n "${ZSH_VERSION+set}"; then
14411 setopt NO_GLOB_SUBST
14412 fi
14413
14414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14415 $as_echo_n "checking for objdir... " >&6; }
14416 if ${lt_cv_objdir+:} false; then :
14417 $as_echo_n "(cached) " >&6
14418 else
14419 rm -f .libs 2>/dev/null
14420 mkdir .libs 2>/dev/null
14421 if test -d .libs; then
14422 lt_cv_objdir=.libs
14423 else
14424 # MS-DOS does not allow filenames that begin with a dot.
14425 lt_cv_objdir=_libs
14426 fi
14427 rmdir .libs 2>/dev/null
14428 fi
14429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14430 $as_echo "$lt_cv_objdir" >&6; }
14431 objdir=$lt_cv_objdir
14432
14433
14434
14435
14436
14437 cat >>confdefs.h <<_ACEOF
14438 #define LT_OBJDIR "$lt_cv_objdir/"
14439 _ACEOF
14440
14441
14442
14443
14444 case $host_os in
14445 aix3*)
14446 # AIX sometimes has problems with the GCC collect2 program. For some
14447 # reason, if we set the COLLECT_NAMES environment variable, the problems
14448 # vanish in a puff of smoke.
14449 if test set != "${COLLECT_NAMES+set}"; then
14450 COLLECT_NAMES=
14451 export COLLECT_NAMES
14452 fi
14453 ;;
14454 esac
14455
14456 # Global variables:
14457 ofile=libtool
14458 can_build_shared=yes
14459
14460 # All known linkers require a '.a' archive for static linking (except MSVC,
14461 # which needs '.lib').
14462 libext=a
14463
14464 with_gnu_ld=$lt_cv_prog_gnu_ld
14465
14466 old_CC=$CC
14467 old_CFLAGS=$CFLAGS
14468
14469 # Set sane defaults for various variables
14470 test -z "$CC" && CC=cc
14471 test -z "$LTCC" && LTCC=$CC
14472 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14473 test -z "$LD" && LD=ld
14474 test -z "$ac_objext" && ac_objext=o
14475
14476 func_cc_basename $compiler
14477 cc_basename=$func_cc_basename_result
14478
14479
14480 # Only perform the check for file, if the check method requires it
14481 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14482 case $deplibs_check_method in
14483 file_magic*)
14484 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14486 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14487 if ${lt_cv_path_MAGIC_CMD+:} false; then :
14488 $as_echo_n "(cached) " >&6
14489 else
14490 case $MAGIC_CMD in
14491 [\\/*] | ?:[\\/]*)
14492 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
14493 ;;
14494 *)
14495 lt_save_MAGIC_CMD=$MAGIC_CMD
14496 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14497 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14498 for ac_dir in $ac_dummy; do
14499 IFS=$lt_save_ifs
14500 test -z "$ac_dir" && ac_dir=.
14501 if test -f "$ac_dir/${ac_tool_prefix}file"; then
14502 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
14503 if test -n "$file_magic_test_file"; then
14504 case $deplibs_check_method in
14505 "file_magic "*)
14506 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14507 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14508 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14509 $EGREP "$file_magic_regex" > /dev/null; then
14510 :
14511 else
14512 cat <<_LT_EOF 1>&2
14513
14514 *** Warning: the command libtool uses to detect shared libraries,
14515 *** $file_magic_cmd, produces output that libtool cannot recognize.
14516 *** The result is that libtool may fail to recognize shared libraries
14517 *** as such. This will affect the creation of libtool libraries that
14518 *** depend on shared libraries, but programs linked with such libtool
14519 *** libraries will work regardless of this problem. Nevertheless, you
14520 *** may want to report the problem to your system manager and/or to
14521 *** bug-libtool (at] gnu.org
14522
14523 _LT_EOF
14524 fi ;;
14525 esac
14526 fi
14527 break
14528 fi
14529 done
14530 IFS=$lt_save_ifs
14531 MAGIC_CMD=$lt_save_MAGIC_CMD
14532 ;;
14533 esac
14534 fi
14535
14536 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14537 if test -n "$MAGIC_CMD"; then
14538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14539 $as_echo "$MAGIC_CMD" >&6; }
14540 else
14541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14542 $as_echo "no" >&6; }
14543 fi
14544
14545
14546
14547
14548
14549 if test -z "$lt_cv_path_MAGIC_CMD"; then
14550 if test -n "$ac_tool_prefix"; then
14551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14552 $as_echo_n "checking for file... " >&6; }
14553 if ${lt_cv_path_MAGIC_CMD+:} false; then :
14554 $as_echo_n "(cached) " >&6
14555 else
14556 case $MAGIC_CMD in
14557 [\\/*] | ?:[\\/]*)
14558 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
14559 ;;
14560 *)
14561 lt_save_MAGIC_CMD=$MAGIC_CMD
14562 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14563 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14564 for ac_dir in $ac_dummy; do
14565 IFS=$lt_save_ifs
14566 test -z "$ac_dir" && ac_dir=.
14567 if test -f "$ac_dir/file"; then
14568 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
14569 if test -n "$file_magic_test_file"; then
14570 case $deplibs_check_method in
14571 "file_magic "*)
14572 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14573 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14574 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14575 $EGREP "$file_magic_regex" > /dev/null; then
14576 :
14577 else
14578 cat <<_LT_EOF 1>&2
14579
14580 *** Warning: the command libtool uses to detect shared libraries,
14581 *** $file_magic_cmd, produces output that libtool cannot recognize.
14582 *** The result is that libtool may fail to recognize shared libraries
14583 *** as such. This will affect the creation of libtool libraries that
14584 *** depend on shared libraries, but programs linked with such libtool
14585 *** libraries will work regardless of this problem. Nevertheless, you
14586 *** may want to report the problem to your system manager and/or to
14587 *** bug-libtool (at] gnu.org
14588
14589 _LT_EOF
14590 fi ;;
14591 esac
14592 fi
14593 break
14594 fi
14595 done
14596 IFS=$lt_save_ifs
14597 MAGIC_CMD=$lt_save_MAGIC_CMD
14598 ;;
14599 esac
14600 fi
14601
14602 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14603 if test -n "$MAGIC_CMD"; then
14604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14605 $as_echo "$MAGIC_CMD" >&6; }
14606 else
14607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14608 $as_echo "no" >&6; }
14609 fi
14610
14611
14612 else
14613 MAGIC_CMD=:
14614 fi
14615 fi
14616
14617 fi
14618 ;;
14619 esac
14620
14621 # Use C for the default configuration in the libtool script
14622
14623 lt_save_CC=$CC
14624 ac_ext=c
14625 ac_cpp='$CPP $CPPFLAGS'
14626 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14627 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14628 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14629
14630
14631 # Source file extension for C test sources.
14632 ac_ext=c
14633
14634 # Object file extension for compiled C test sources.
14635 objext=o
14636 objext=$objext
14637
14638 # Code to be used in simple compile tests
14639 lt_simple_compile_test_code="int some_variable = 0;"
14640
14641 # Code to be used in simple link tests
14642 lt_simple_link_test_code='int main(){return(0);}'
14643
14644
14645
14646
14647
14648
14649
14650 # If no C compiler was specified, use CC.
14651 LTCC=${LTCC-"$CC"}
14652
14653 # If no C compiler flags were specified, use CFLAGS.
14654 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14655
14656 # Allow CC to be a program name with arguments.
14657 compiler=$CC
14658
14659 # Save the default compiler, since it gets overwritten when the other
14660 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14661 compiler_DEFAULT=$CC
14662
14663 # save warnings/boilerplate of simple test code
14664 ac_outfile=conftest.$ac_objext
14665 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14666 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14667 _lt_compiler_boilerplate=`cat conftest.err`
14668 $RM conftest*
14669
14670 ac_outfile=conftest.$ac_objext
14671 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14672 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14673 _lt_linker_boilerplate=`cat conftest.err`
14674 $RM -r conftest*
14675
14676
14677 if test -n "$compiler"; then
14678
14679 lt_prog_compiler_no_builtin_flag=
14680
14681 if test yes = "$GCC"; then
14682 case $cc_basename in
14683 nvcc*)
14684 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14685 *)
14686 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14687 esac
14688
14689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14690 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14691 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
14692 $as_echo_n "(cached) " >&6
14693 else
14694 lt_cv_prog_compiler_rtti_exceptions=no
14695 ac_outfile=conftest.$ac_objext
14696 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14697 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
14698 # Insert the option either (1) after the last *FLAGS variable, or
14699 # (2) before a word containing "conftest.", or (3) at the end.
14700 # Note that $ac_compile itself does not contain backslashes and begins
14701 # with a dollar sign (not a hyphen), so the echo should work correctly.
14702 # The option is referenced via a variable to avoid confusing sed.
14703 lt_compile=`echo "$ac_compile" | $SED \
14704 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14705 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14706 -e 's:$: $lt_compiler_flag:'`
14707 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14708 (eval "$lt_compile" 2>conftest.err)
14709 ac_status=$?
14710 cat conftest.err >&5
14711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14712 if (exit $ac_status) && test -s "$ac_outfile"; then
14713 # The compiler can only warn and ignore the option if not recognized
14714 # So say no if there are warnings other than the usual output.
14715 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14716 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14717 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14718 lt_cv_prog_compiler_rtti_exceptions=yes
14719 fi
14720 fi
14721 $RM conftest*
14722
14723 fi
14724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14725 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14726
14727 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
14728 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14729 else
14730 :
14731 fi
14732
14733 fi
14734
14735
14736
14737
14738
14739
14740 lt_prog_compiler_wl=
14741 lt_prog_compiler_pic=
14742 lt_prog_compiler_static=
14743
14744
14745 if test yes = "$GCC"; then
14746 lt_prog_compiler_wl='-Wl,'
14747 lt_prog_compiler_static='-static'
14748
14749 case $host_os in
14750 aix*)
14751 # All AIX code is PIC.
14752 if test ia64 = "$host_cpu"; then
14753 # AIX 5 now supports IA64 processor
14754 lt_prog_compiler_static='-Bstatic'
14755 fi
14756 lt_prog_compiler_pic='-fPIC'
14757 ;;
14758
14759 amigaos*)
14760 case $host_cpu in
14761 powerpc)
14762 # see comment about AmigaOS4 .so support
14763 lt_prog_compiler_pic='-fPIC'
14764 ;;
14765 m68k)
14766 # FIXME: we need at least 68020 code to build shared libraries, but
14767 # adding the '-m68020' flag to GCC prevents building anything better,
14768 # like '-m68040'.
14769 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14770 ;;
14771 esac
14772 ;;
14773
14774 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14775 # PIC is the default for these OSes.
14776 ;;
14777
14778 mingw* | cygwin* | pw32* | os2* | cegcc*)
14779 # This hack is so that the source file can tell whether it is being
14780 # built for inclusion in a dll (and should export symbols for example).
14781 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14782 # (--disable-auto-import) libraries
14783 lt_prog_compiler_pic='-DDLL_EXPORT'
14784 case $host_os in
14785 os2*)
14786 lt_prog_compiler_static='$wl-static'
14787 ;;
14788 esac
14789 ;;
14790
14791 darwin* | rhapsody*)
14792 # PIC is the default on this platform
14793 # Common symbols not allowed in MH_DYLIB files
14794 lt_prog_compiler_pic='-fno-common'
14795 ;;
14796
14797 haiku*)
14798 # PIC is the default for Haiku.
14799 # The "-static" flag exists, but is broken.
14800 lt_prog_compiler_static=
14801 ;;
14802
14803 hpux*)
14804 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14805 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14806 # sets the default TLS model and affects inlining.
14807 case $host_cpu in
14808 hppa*64*)
14809 # +Z the default
14810 ;;
14811 *)
14812 lt_prog_compiler_pic='-fPIC'
14813 ;;
14814 esac
14815 ;;
14816
14817 interix[3-9]*)
14818 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14819 # Instead, we relocate shared libraries at runtime.
14820 ;;
14821
14822 msdosdjgpp*)
14823 # Just because we use GCC doesn't mean we suddenly get shared libraries
14824 # on systems that don't support them.
14825 lt_prog_compiler_can_build_shared=no
14826 enable_shared=no
14827 ;;
14828
14829 *nto* | *qnx*)
14830 # QNX uses GNU C++, but need to define -shared option too, otherwise
14831 # it will coredump.
14832 lt_prog_compiler_pic='-fPIC -shared'
14833 ;;
14834
14835 sysv4*MP*)
14836 if test -d /usr/nec; then
14837 lt_prog_compiler_pic=-Kconform_pic
14838 fi
14839 ;;
14840
14841 *)
14842 lt_prog_compiler_pic='-fPIC'
14843 ;;
14844 esac
14845
14846 case $cc_basename in
14847 nvcc*) # Cuda Compiler Driver 2.2
14848 lt_prog_compiler_wl='-Xlinker '
14849 if test -n "$lt_prog_compiler_pic"; then
14850 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14851 fi
14852 ;;
14853 esac
14854 else
14855 # PORTME Check for flag to pass linker flags through the system compiler.
14856 case $host_os in
14857 aix*)
14858 lt_prog_compiler_wl='-Wl,'
14859 if test ia64 = "$host_cpu"; then
14860 # AIX 5 now supports IA64 processor
14861 lt_prog_compiler_static='-Bstatic'
14862 else
14863 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14864 fi
14865 ;;
14866
14867 darwin* | rhapsody*)
14868 # PIC is the default on this platform
14869 # Common symbols not allowed in MH_DYLIB files
14870 lt_prog_compiler_pic='-fno-common'
14871 case $cc_basename in
14872 nagfor*)
14873 # NAG Fortran compiler
14874 lt_prog_compiler_wl='-Wl,-Wl,,'
14875 lt_prog_compiler_pic='-PIC'
14876 lt_prog_compiler_static='-Bstatic'
14877 ;;
14878 esac
14879 ;;
14880
14881 mingw* | cygwin* | pw32* | os2* | cegcc*)
14882 # This hack is so that the source file can tell whether it is being
14883 # built for inclusion in a dll (and should export symbols for example).
14884 lt_prog_compiler_pic='-DDLL_EXPORT'
14885 case $host_os in
14886 os2*)
14887 lt_prog_compiler_static='$wl-static'
14888 ;;
14889 esac
14890 ;;
14891
14892 hpux9* | hpux10* | hpux11*)
14893 lt_prog_compiler_wl='-Wl,'
14894 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14895 # not for PA HP-UX.
14896 case $host_cpu in
14897 hppa*64*|ia64*)
14898 # +Z the default
14899 ;;
14900 *)
14901 lt_prog_compiler_pic='+Z'
14902 ;;
14903 esac
14904 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14905 lt_prog_compiler_static='$wl-a ${wl}archive'
14906 ;;
14907
14908 irix5* | irix6* | nonstopux*)
14909 lt_prog_compiler_wl='-Wl,'
14910 # PIC (with -KPIC) is the default.
14911 lt_prog_compiler_static='-non_shared'
14912 ;;
14913
14914 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14915 case $cc_basename in
14916 # old Intel for x86_64, which still supported -KPIC.
14917 ecc*)
14918 lt_prog_compiler_wl='-Wl,'
14919 lt_prog_compiler_pic='-KPIC'
14920 lt_prog_compiler_static='-static'
14921 ;;
14922 # icc used to be incompatible with GCC.
14923 # ICC 10 doesn't accept -KPIC any more.
14924 icc* | ifort*)
14925 lt_prog_compiler_wl='-Wl,'
14926 lt_prog_compiler_pic='-fPIC'
14927 lt_prog_compiler_static='-static'
14928 ;;
14929 # Lahey Fortran 8.1.
14930 lf95*)
14931 lt_prog_compiler_wl='-Wl,'
14932 lt_prog_compiler_pic='--shared'
14933 lt_prog_compiler_static='--static'
14934 ;;
14935 nagfor*)
14936 # NAG Fortran compiler
14937 lt_prog_compiler_wl='-Wl,-Wl,,'
14938 lt_prog_compiler_pic='-PIC'
14939 lt_prog_compiler_static='-Bstatic'
14940 ;;
14941 tcc*)
14942 # Fabrice Bellard et al's Tiny C Compiler
14943 lt_prog_compiler_wl='-Wl,'
14944 lt_prog_compiler_pic='-fPIC'
14945 lt_prog_compiler_static='-static'
14946 ;;
14947 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14948 # Portland Group compilers (*not* the Pentium gcc compiler,
14949 # which looks to be a dead project)
14950 lt_prog_compiler_wl='-Wl,'
14951 lt_prog_compiler_pic='-fpic'
14952 lt_prog_compiler_static='-Bstatic'
14953 ;;
14954 ccc*)
14955 lt_prog_compiler_wl='-Wl,'
14956 # All Alpha code is PIC.
14957 lt_prog_compiler_static='-non_shared'
14958 ;;
14959 xl* | bgxl* | bgf* | mpixl*)
14960 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14961 lt_prog_compiler_wl='-Wl,'
14962 lt_prog_compiler_pic='-qpic'
14963 lt_prog_compiler_static='-qstaticlink'
14964 ;;
14965 *)
14966 case `$CC -V 2>&1 | sed 5q` in
14967 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
14968 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14969 lt_prog_compiler_pic='-KPIC'
14970 lt_prog_compiler_static='-Bstatic'
14971 lt_prog_compiler_wl=''
14972 ;;
14973 *Sun\ F* | *Sun*Fortran*)
14974 lt_prog_compiler_pic='-KPIC'
14975 lt_prog_compiler_static='-Bstatic'
14976 lt_prog_compiler_wl='-Qoption ld '
14977 ;;
14978 *Sun\ C*)
14979 # Sun C 5.9
14980 lt_prog_compiler_pic='-KPIC'
14981 lt_prog_compiler_static='-Bstatic'
14982 lt_prog_compiler_wl='-Wl,'
14983 ;;
14984 *Intel*\ [CF]*Compiler*)
14985 lt_prog_compiler_wl='-Wl,'
14986 lt_prog_compiler_pic='-fPIC'
14987 lt_prog_compiler_static='-static'
14988 ;;
14989 *Portland\ Group*)
14990 lt_prog_compiler_wl='-Wl,'
14991 lt_prog_compiler_pic='-fpic'
14992 lt_prog_compiler_static='-Bstatic'
14993 ;;
14994 esac
14995 ;;
14996 esac
14997 ;;
14998
14999 newsos6)
15000 lt_prog_compiler_pic='-KPIC'
15001 lt_prog_compiler_static='-Bstatic'
15002 ;;
15003
15004 *nto* | *qnx*)
15005 # QNX uses GNU C++, but need to define -shared option too, otherwise
15006 # it will coredump.
15007 lt_prog_compiler_pic='-fPIC -shared'
15008 ;;
15009
15010 osf3* | osf4* | osf5*)
15011 lt_prog_compiler_wl='-Wl,'
15012 # All OSF/1 code is PIC.
15013 lt_prog_compiler_static='-non_shared'
15014 ;;
15015
15016 rdos*)
15017 lt_prog_compiler_static='-non_shared'
15018 ;;
15019
15020 solaris*)
15021 lt_prog_compiler_pic='-KPIC'
15022 lt_prog_compiler_static='-Bstatic'
15023 case $cc_basename in
15024 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
15025 lt_prog_compiler_wl='-Qoption ld ';;
15026 *)
15027 lt_prog_compiler_wl='-Wl,';;
15028 esac
15029 ;;
15030
15031 sunos4*)
15032 lt_prog_compiler_wl='-Qoption ld '
15033 lt_prog_compiler_pic='-PIC'
15034 lt_prog_compiler_static='-Bstatic'
15035 ;;
15036
15037 sysv4 | sysv4.2uw2* | sysv4.3*)
15038 lt_prog_compiler_wl='-Wl,'
15039 lt_prog_compiler_pic='-KPIC'
15040 lt_prog_compiler_static='-Bstatic'
15041 ;;
15042
15043 sysv4*MP*)
15044 if test -d /usr/nec; then
15045 lt_prog_compiler_pic='-Kconform_pic'
15046 lt_prog_compiler_static='-Bstatic'
15047 fi
15048 ;;
15049
15050 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15051 lt_prog_compiler_wl='-Wl,'
15052 lt_prog_compiler_pic='-KPIC'
15053 lt_prog_compiler_static='-Bstatic'
15054 ;;
15055
15056 unicos*)
15057 lt_prog_compiler_wl='-Wl,'
15058 lt_prog_compiler_can_build_shared=no
15059 ;;
15060
15061 uts4*)
15062 lt_prog_compiler_pic='-pic'
15063 lt_prog_compiler_static='-Bstatic'
15064 ;;
15065
15066 *)
15067 lt_prog_compiler_can_build_shared=no
15068 ;;
15069 esac
15070 fi
15071
15072 case $host_os in
15073 # For platforms that do not support PIC, -DPIC is meaningless:
15074 *djgpp*)
15075 lt_prog_compiler_pic=
15076 ;;
15077 *)
15078 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15079 ;;
15080 esac
15081
15082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15083 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15084 if ${lt_cv_prog_compiler_pic+:} false; then :
15085 $as_echo_n "(cached) " >&6
15086 else
15087 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
15088 fi
15089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
15090 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
15091 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
15092
15093 #
15094 # Check to make sure the PIC flag actually works.
15095 #
15096 if test -n "$lt_prog_compiler_pic"; then
15097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15098 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15099 if ${lt_cv_prog_compiler_pic_works+:} false; then :
15100 $as_echo_n "(cached) " >&6
15101 else
15102 lt_cv_prog_compiler_pic_works=no
15103 ac_outfile=conftest.$ac_objext
15104 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15105 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
15106 # Insert the option either (1) after the last *FLAGS variable, or
15107 # (2) before a word containing "conftest.", or (3) at the end.
15108 # Note that $ac_compile itself does not contain backslashes and begins
15109 # with a dollar sign (not a hyphen), so the echo should work correctly.
15110 # The option is referenced via a variable to avoid confusing sed.
15111 lt_compile=`echo "$ac_compile" | $SED \
15112 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15113 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15114 -e 's:$: $lt_compiler_flag:'`
15115 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15116 (eval "$lt_compile" 2>conftest.err)
15117 ac_status=$?
15118 cat conftest.err >&5
15119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15120 if (exit $ac_status) && test -s "$ac_outfile"; then
15121 # The compiler can only warn and ignore the option if not recognized
15122 # So say no if there are warnings other than the usual output.
15123 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15124 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15125 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15126 lt_cv_prog_compiler_pic_works=yes
15127 fi
15128 fi
15129 $RM conftest*
15130
15131 fi
15132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15133 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15134
15135 if test yes = "$lt_cv_prog_compiler_pic_works"; then
15136 case $lt_prog_compiler_pic in
15137 "" | " "*) ;;
15138 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15139 esac
15140 else
15141 lt_prog_compiler_pic=
15142 lt_prog_compiler_can_build_shared=no
15143 fi
15144
15145 fi
15146
15147
15148
15149
15150
15151
15152
15153
15154
15155
15156
15157 #
15158 # Check to make sure the static flag actually works.
15159 #
15160 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15162 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15163 if ${lt_cv_prog_compiler_static_works+:} false; then :
15164 $as_echo_n "(cached) " >&6
15165 else
15166 lt_cv_prog_compiler_static_works=no
15167 save_LDFLAGS=$LDFLAGS
15168 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15169 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15170 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15171 # The linker can only warn and ignore the option if not recognized
15172 # So say no if there are warnings
15173 if test -s conftest.err; then
15174 # Append any errors to the config.log.
15175 cat conftest.err 1>&5
15176 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15177 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15178 if diff conftest.exp conftest.er2 >/dev/null; then
15179 lt_cv_prog_compiler_static_works=yes
15180 fi
15181 else
15182 lt_cv_prog_compiler_static_works=yes
15183 fi
15184 fi
15185 $RM -r conftest*
15186 LDFLAGS=$save_LDFLAGS
15187
15188 fi
15189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15190 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15191
15192 if test yes = "$lt_cv_prog_compiler_static_works"; then
15193 :
15194 else
15195 lt_prog_compiler_static=
15196 fi
15197
15198
15199
15200
15201
15202
15203
15204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15205 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15206 if ${lt_cv_prog_compiler_c_o+:} false; then :
15207 $as_echo_n "(cached) " >&6
15208 else
15209 lt_cv_prog_compiler_c_o=no
15210 $RM -r conftest 2>/dev/null
15211 mkdir conftest
15212 cd conftest
15213 mkdir out
15214 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15215
15216 lt_compiler_flag="-o out/conftest2.$ac_objext"
15217 # Insert the option either (1) after the last *FLAGS variable, or
15218 # (2) before a word containing "conftest.", or (3) at the end.
15219 # Note that $ac_compile itself does not contain backslashes and begins
15220 # with a dollar sign (not a hyphen), so the echo should work correctly.
15221 lt_compile=`echo "$ac_compile" | $SED \
15222 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15223 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15224 -e 's:$: $lt_compiler_flag:'`
15225 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15226 (eval "$lt_compile" 2>out/conftest.err)
15227 ac_status=$?
15228 cat out/conftest.err >&5
15229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15230 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15231 then
15232 # The compiler can only warn and ignore the option if not recognized
15233 # So say no if there are warnings
15234 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15235 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15236 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15237 lt_cv_prog_compiler_c_o=yes
15238 fi
15239 fi
15240 chmod u+w . 2>&5
15241 $RM conftest*
15242 # SGI C++ compiler will create directory out/ii_files/ for
15243 # template instantiation
15244 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15245 $RM out/* && rmdir out
15246 cd ..
15247 $RM -r conftest
15248 $RM conftest*
15249
15250 fi
15251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15252 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15253
15254
15255
15256
15257
15258
15259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15260 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15261 if ${lt_cv_prog_compiler_c_o+:} false; then :
15262 $as_echo_n "(cached) " >&6
15263 else
15264 lt_cv_prog_compiler_c_o=no
15265 $RM -r conftest 2>/dev/null
15266 mkdir conftest
15267 cd conftest
15268 mkdir out
15269 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15270
15271 lt_compiler_flag="-o out/conftest2.$ac_objext"
15272 # Insert the option either (1) after the last *FLAGS variable, or
15273 # (2) before a word containing "conftest.", or (3) at the end.
15274 # Note that $ac_compile itself does not contain backslashes and begins
15275 # with a dollar sign (not a hyphen), so the echo should work correctly.
15276 lt_compile=`echo "$ac_compile" | $SED \
15277 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15278 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15279 -e 's:$: $lt_compiler_flag:'`
15280 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15281 (eval "$lt_compile" 2>out/conftest.err)
15282 ac_status=$?
15283 cat out/conftest.err >&5
15284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15285 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15286 then
15287 # The compiler can only warn and ignore the option if not recognized
15288 # So say no if there are warnings
15289 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15290 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15291 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15292 lt_cv_prog_compiler_c_o=yes
15293 fi
15294 fi
15295 chmod u+w . 2>&5
15296 $RM conftest*
15297 # SGI C++ compiler will create directory out/ii_files/ for
15298 # template instantiation
15299 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15300 $RM out/* && rmdir out
15301 cd ..
15302 $RM -r conftest
15303 $RM conftest*
15304
15305 fi
15306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15307 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15308
15309
15310
15311
15312 hard_links=nottested
15313 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
15314 # do not overwrite the value of need_locks provided by the user
15315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15316 $as_echo_n "checking if we can lock with hard links... " >&6; }
15317 hard_links=yes
15318 $RM conftest*
15319 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15320 touch conftest.a
15321 ln conftest.a conftest.b 2>&5 || hard_links=no
15322 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15324 $as_echo "$hard_links" >&6; }
15325 if test no = "$hard_links"; then
15326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15327 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
15328 need_locks=warn
15329 fi
15330 else
15331 need_locks=no
15332 fi
15333
15334
15335
15336
15337
15338
15339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15340 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15341
15342 runpath_var=
15343 allow_undefined_flag=
15344 always_export_symbols=no
15345 archive_cmds=
15346 archive_expsym_cmds=
15347 compiler_needs_object=no
15348 enable_shared_with_static_runtimes=no
15349 export_dynamic_flag_spec=
15350 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15351 hardcode_automatic=no
15352 hardcode_direct=no
15353 hardcode_direct_absolute=no
15354 hardcode_libdir_flag_spec=
15355 hardcode_libdir_separator=
15356 hardcode_minus_L=no
15357 hardcode_shlibpath_var=unsupported
15358 inherit_rpath=no
15359 link_all_deplibs=unknown
15360 module_cmds=
15361 module_expsym_cmds=
15362 old_archive_from_new_cmds=
15363 old_archive_from_expsyms_cmds=
15364 thread_safe_flag_spec=
15365 whole_archive_flag_spec=
15366 # include_expsyms should be a list of space-separated symbols to be *always*
15367 # included in the symbol list
15368 include_expsyms=
15369 # exclude_expsyms can be an extended regexp of symbols to exclude
15370 # it will be wrapped by ' (' and ')$', so one must not match beginning or
15371 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
15372 # as well as any symbol that contains 'd'.
15373 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15374 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15375 # platforms (ab)use it in PIC code, but their linkers get confused if
15376 # the symbol is explicitly referenced. Since portable code cannot
15377 # rely on this symbol name, it's probably fine to never include it in
15378 # preloaded symbol tables.
15379 # Exclude shared library initialization/finalization symbols.
15380 extract_expsyms_cmds=
15381
15382 case $host_os in
15383 cygwin* | mingw* | pw32* | cegcc*)
15384 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15385 # When not using gcc, we currently assume that we are using
15386 # Microsoft Visual C++.
15387 if test yes != "$GCC"; then
15388 with_gnu_ld=no
15389 fi
15390 ;;
15391 interix*)
15392 # we just hope/assume this is gcc and not c89 (= MSVC++)
15393 with_gnu_ld=yes
15394 ;;
15395 openbsd* | bitrig*)
15396 with_gnu_ld=no
15397 ;;
15398 esac
15399
15400 ld_shlibs=yes
15401
15402 # On some targets, GNU ld is compatible enough with the native linker
15403 # that we're better off using the native interface for both.
15404 lt_use_gnu_ld_interface=no
15405 if test yes = "$with_gnu_ld"; then
15406 case $host_os in
15407 aix*)
15408 # The AIX port of GNU ld has always aspired to compatibility
15409 # with the native linker. However, as the warning in the GNU ld
15410 # block says, versions before 2.19.5* couldn't really create working
15411 # shared libraries, regardless of the interface used.
15412 case `$LD -v 2>&1` in
15413 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15414 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15415 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15416 *)
15417 lt_use_gnu_ld_interface=yes
15418 ;;
15419 esac
15420 ;;
15421 *)
15422 lt_use_gnu_ld_interface=yes
15423 ;;
15424 esac
15425 fi
15426
15427 if test yes = "$lt_use_gnu_ld_interface"; then
15428 # If archive_cmds runs LD, not CC, wlarc should be empty
15429 wlarc='$wl'
15430
15431 # Set some defaults for GNU ld with shared library support. These
15432 # are reset later if shared libraries are not supported. Putting them
15433 # here allows them to be overridden if necessary.
15434 runpath_var=LD_RUN_PATH
15435 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15436 export_dynamic_flag_spec='$wl--export-dynamic'
15437 # ancient GNU ld didn't support --whole-archive et. al.
15438 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15439 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15440 else
15441 whole_archive_flag_spec=
15442 fi
15443 supports_anon_versioning=no
15444 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
15445 *GNU\ gold*) supports_anon_versioning=yes ;;
15446 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15447 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15448 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15449 *\ 2.11.*) ;; # other 2.11 versions
15450 *) supports_anon_versioning=yes ;;
15451 esac
15452
15453 # See if GNU ld supports shared libraries.
15454 case $host_os in
15455 aix[3-9]*)
15456 # On AIX/PPC, the GNU linker is very broken
15457 if test ia64 != "$host_cpu"; then
15458 ld_shlibs=no
15459 cat <<_LT_EOF 1>&2
15460
15461 *** Warning: the GNU linker, at least up to release 2.19, is reported
15462 *** to be unable to reliably create shared libraries on AIX.
15463 *** Therefore, libtool is disabling shared libraries support. If you
15464 *** really care for shared libraries, you may want to install binutils
15465 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15466 *** You will then need to restart the configuration process.
15467
15468 _LT_EOF
15469 fi
15470 ;;
15471
15472 amigaos*)
15473 case $host_cpu in
15474 powerpc)
15475 # see comment about AmigaOS4 .so support
15476 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15477 archive_expsym_cmds=''
15478 ;;
15479 m68k)
15480 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)'
15481 hardcode_libdir_flag_spec='-L$libdir'
15482 hardcode_minus_L=yes
15483 ;;
15484 esac
15485 ;;
15486
15487 beos*)
15488 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15489 allow_undefined_flag=unsupported
15490 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
15491 # support --undefined. This deserves some investigation. FIXME
15492 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15493 else
15494 ld_shlibs=no
15495 fi
15496 ;;
15497
15498 cygwin* | mingw* | pw32* | cegcc*)
15499 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15500 # as there is no search path for DLLs.
15501 hardcode_libdir_flag_spec='-L$libdir'
15502 export_dynamic_flag_spec='$wl--export-all-symbols'
15503 allow_undefined_flag=unsupported
15504 always_export_symbols=no
15505 enable_shared_with_static_runtimes=yes
15506 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'
15507 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15508
15509 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15510 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15511 # If the export-symbols file already is a .def file, use it as
15512 # is; otherwise, prepend EXPORTS...
15513 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
15514 cp $export_symbols $output_objdir/$soname.def;
15515 else
15516 echo EXPORTS > $output_objdir/$soname.def;
15517 cat $export_symbols >> $output_objdir/$soname.def;
15518 fi~
15519 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15520 else
15521 ld_shlibs=no
15522 fi
15523 ;;
15524
15525 haiku*)
15526 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15527 link_all_deplibs=yes
15528 ;;
15529
15530 os2*)
15531 hardcode_libdir_flag_spec='-L$libdir'
15532 hardcode_minus_L=yes
15533 allow_undefined_flag=unsupported
15534 shrext_cmds=.dll
15535 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15536 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15537 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15538 $ECHO EXPORTS >> $output_objdir/$libname.def~
15539 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
15540 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15541 emximp -o $lib $output_objdir/$libname.def'
15542 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15543 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15544 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15545 $ECHO EXPORTS >> $output_objdir/$libname.def~
15546 prefix_cmds="$SED"~
15547 if test EXPORTS = "`$SED 1q $export_symbols`"; then
15548 prefix_cmds="$prefix_cmds -e 1d";
15549 fi~
15550 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
15551 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
15552 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15553 emximp -o $lib $output_objdir/$libname.def'
15554 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
15555 enable_shared_with_static_runtimes=yes
15556 ;;
15557
15558 interix[3-9]*)
15559 hardcode_direct=no
15560 hardcode_shlibpath_var=no
15561 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
15562 export_dynamic_flag_spec='$wl-E'
15563 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15564 # Instead, shared libraries are loaded at an image base (0x10000000 by
15565 # default) and relocated if they conflict, which is a slow very memory
15566 # consuming and fragmenting process. To avoid this, we pick a random,
15567 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15568 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15569 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15570 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'
15571 ;;
15572
15573 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15574 tmp_diet=no
15575 if test linux-dietlibc = "$host_os"; then
15576 case $cc_basename in
15577 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15578 esac
15579 fi
15580 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15581 && test no = "$tmp_diet"
15582 then
15583 tmp_addflag=' $pic_flag'
15584 tmp_sharedflag='-shared'
15585 case $cc_basename,$host_cpu in
15586 pgcc*) # Portland Group C compiler
15587 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'
15588 tmp_addflag=' $pic_flag'
15589 ;;
15590 pgf77* | pgf90* | pgf95* | pgfortran*)
15591 # Portland Group f77 and f90 compilers
15592 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'
15593 tmp_addflag=' $pic_flag -Mnomain' ;;
15594 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15595 tmp_addflag=' -i_dynamic' ;;
15596 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15597 tmp_addflag=' -i_dynamic -nofor_main' ;;
15598 ifc* | ifort*) # Intel Fortran compiler
15599 tmp_addflag=' -nofor_main' ;;
15600 lf95*) # Lahey Fortran 8.1
15601 whole_archive_flag_spec=
15602 tmp_sharedflag='--shared' ;;
15603 nagfor*) # NAGFOR 5.3
15604 tmp_sharedflag='-Wl,-shared' ;;
15605 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15606 tmp_sharedflag='-qmkshrobj'
15607 tmp_addflag= ;;
15608 nvcc*) # Cuda Compiler Driver 2.2
15609 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'
15610 compiler_needs_object=yes
15611 ;;
15612 esac
15613 case `$CC -V 2>&1 | sed 5q` in
15614 *Sun\ C*) # Sun C 5.9
15615 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'
15616 compiler_needs_object=yes
15617 tmp_sharedflag='-G' ;;
15618 *Sun\ F*) # Sun Fortran 8.3
15619 tmp_sharedflag='-G' ;;
15620 esac
15621 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15622
15623 if test yes = "$supports_anon_versioning"; then
15624 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15625 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15626 echo "local: *; };" >> $output_objdir/$libname.ver~
15627 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
15628 fi
15629
15630 case $cc_basename in
15631 tcc*)
15632 export_dynamic_flag_spec='-rdynamic'
15633 ;;
15634 xlf* | bgf* | bgxlf* | mpixlf*)
15635 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15636 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15637 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15638 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
15639 if test yes = "$supports_anon_versioning"; then
15640 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15641 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15642 echo "local: *; };" >> $output_objdir/$libname.ver~
15643 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15644 fi
15645 ;;
15646 esac
15647 else
15648 ld_shlibs=no
15649 fi
15650 ;;
15651
15652 netbsd*)
15653 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15654 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15655 wlarc=
15656 else
15657 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15658 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15659 fi
15660 ;;
15661
15662 solaris*)
15663 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15664 ld_shlibs=no
15665 cat <<_LT_EOF 1>&2
15666
15667 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15668 *** create shared libraries on Solaris systems. Therefore, libtool
15669 *** is disabling shared libraries support. We urge you to upgrade GNU
15670 *** binutils to release 2.9.1 or newer. Another option is to modify
15671 *** your PATH or compiler configuration so that the native linker is
15672 *** used, and then restart.
15673
15674 _LT_EOF
15675 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15676 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15677 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15678 else
15679 ld_shlibs=no
15680 fi
15681 ;;
15682
15683 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15684 case `$LD -v 2>&1` in
15685 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15686 ld_shlibs=no
15687 cat <<_LT_EOF 1>&2
15688
15689 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
15690 *** reliably create shared libraries on SCO systems. Therefore, libtool
15691 *** is disabling shared libraries support. We urge you to upgrade GNU
15692 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15693 *** your PATH or compiler configuration so that the native linker is
15694 *** used, and then restart.
15695
15696 _LT_EOF
15697 ;;
15698 *)
15699 # For security reasons, it is highly recommended that you always
15700 # use absolute paths for naming shared libraries, and exclude the
15701 # DT_RUNPATH tag from executables and libraries. But doing so
15702 # requires that you compile everything twice, which is a pain.
15703 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15704 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15705 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15706 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15707 else
15708 ld_shlibs=no
15709 fi
15710 ;;
15711 esac
15712 ;;
15713
15714 sunos4*)
15715 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15716 wlarc=
15717 hardcode_direct=yes
15718 hardcode_shlibpath_var=no
15719 ;;
15720
15721 *)
15722 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15723 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15724 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15725 else
15726 ld_shlibs=no
15727 fi
15728 ;;
15729 esac
15730
15731 if test no = "$ld_shlibs"; then
15732 runpath_var=
15733 hardcode_libdir_flag_spec=
15734 export_dynamic_flag_spec=
15735 whole_archive_flag_spec=
15736 fi
15737 else
15738 # PORTME fill in a description of your system's linker (not GNU ld)
15739 case $host_os in
15740 aix3*)
15741 allow_undefined_flag=unsupported
15742 always_export_symbols=yes
15743 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'
15744 # Note: this linker hardcodes the directories in LIBPATH if there
15745 # are no directories specified by -L.
15746 hardcode_minus_L=yes
15747 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
15748 # Neither direct hardcoding nor static linking is supported with a
15749 # broken collect2.
15750 hardcode_direct=unsupported
15751 fi
15752 ;;
15753
15754 aix[4-9]*)
15755 if test ia64 = "$host_cpu"; then
15756 # On IA64, the linker does run time linking by default, so we don't
15757 # have to do anything special.
15758 aix_use_runtimelinking=no
15759 exp_sym_flag='-Bexport'
15760 no_entry_flag=
15761 else
15762 # If we're using GNU nm, then we don't want the "-C" option.
15763 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
15764 # Without the "-l" option, or with the "-B" option, AIX nm treats
15765 # weak defined symbols like other global defined symbols, whereas
15766 # GNU nm marks them as "W".
15767 # While the 'weak' keyword is ignored in the Export File, we need
15768 # it in the Import File for the 'aix-soname' feature, so we have
15769 # to replace the "-B" option with "-P" for AIX nm.
15770 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15771 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'
15772 else
15773 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'
15774 fi
15775 aix_use_runtimelinking=no
15776
15777 # Test if we are trying to use run time linking or normal
15778 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15779 # have runtime linking enabled, and use it for executables.
15780 # For shared libraries, we enable/disable runtime linking
15781 # depending on the kind of the shared library created -
15782 # when "with_aix_soname,aix_use_runtimelinking" is:
15783 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
15784 # "aix,yes" lib.so shared, rtl:yes, for executables
15785 # lib.a static archive
15786 # "both,no" lib.so.V(shr.o) shared, rtl:yes
15787 # lib.a(lib.so.V) shared, rtl:no, for executables
15788 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
15789 # lib.a(lib.so.V) shared, rtl:no
15790 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
15791 # lib.a static archive
15792 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15793 for ld_flag in $LDFLAGS; do
15794 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
15795 aix_use_runtimelinking=yes
15796 break
15797 fi
15798 done
15799 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
15800 # With aix-soname=svr4, we create the lib.so.V shared archives only,
15801 # so we don't have lib.a shared libs to link our executables.
15802 # We have to force runtime linking in this case.
15803 aix_use_runtimelinking=yes
15804 LDFLAGS="$LDFLAGS -Wl,-brtl"
15805 fi
15806 ;;
15807 esac
15808
15809 exp_sym_flag='-bexport'
15810 no_entry_flag='-bnoentry'
15811 fi
15812
15813 # When large executables or shared objects are built, AIX ld can
15814 # have problems creating the table of contents. If linking a library
15815 # or program results in "error TOC overflow" add -mminimal-toc to
15816 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15817 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15818
15819 archive_cmds=''
15820 hardcode_direct=yes
15821 hardcode_direct_absolute=yes
15822 hardcode_libdir_separator=':'
15823 link_all_deplibs=yes
15824 file_list_spec='$wl-f,'
15825 case $with_aix_soname,$aix_use_runtimelinking in
15826 aix,*) ;; # traditional, no import file
15827 svr4,* | *,yes) # use import file
15828 # The Import File defines what to hardcode.
15829 hardcode_direct=no
15830 hardcode_direct_absolute=no
15831 ;;
15832 esac
15833
15834 if test yes = "$GCC"; then
15835 case $host_os in aix4.[012]|aix4.[012].*)
15836 # We only want to do this on AIX 4.2 and lower, the check
15837 # below for broken collect2 doesn't work under 4.3+
15838 collect2name=`$CC -print-prog-name=collect2`
15839 if test -f "$collect2name" &&
15840 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15841 then
15842 # We have reworked collect2
15843 :
15844 else
15845 # We have old collect2
15846 hardcode_direct=unsupported
15847 # It fails to find uninstalled libraries when the uninstalled
15848 # path is not listed in the libpath. Setting hardcode_minus_L
15849 # to unsupported forces relinking
15850 hardcode_minus_L=yes
15851 hardcode_libdir_flag_spec='-L$libdir'
15852 hardcode_libdir_separator=
15853 fi
15854 ;;
15855 esac
15856 shared_flag='-shared'
15857 if test yes = "$aix_use_runtimelinking"; then
15858 shared_flag="$shared_flag "'$wl-G'
15859 fi
15860 # Need to ensure runtime linking is disabled for the traditional
15861 # shared library, or the linker may eventually find shared libraries
15862 # /with/ Import File - we do not want to mix them.
15863 shared_flag_aix='-shared'
15864 shared_flag_svr4='-shared $wl-G'
15865 else
15866 # not using gcc
15867 if test ia64 = "$host_cpu"; then
15868 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15869 # chokes on -Wl,-G. The following line is correct:
15870 shared_flag='-G'
15871 else
15872 if test yes = "$aix_use_runtimelinking"; then
15873 shared_flag='$wl-G'
15874 else
15875 shared_flag='$wl-bM:SRE'
15876 fi
15877 shared_flag_aix='$wl-bM:SRE'
15878 shared_flag_svr4='$wl-G'
15879 fi
15880 fi
15881
15882 export_dynamic_flag_spec='$wl-bexpall'
15883 # It seems that -bexpall does not export symbols beginning with
15884 # underscore (_), so it is better to generate a list of symbols to export.
15885 always_export_symbols=yes
15886 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
15887 # Warning - without using the other runtime loading flags (-brtl),
15888 # -berok will link without error, but may produce a broken library.
15889 allow_undefined_flag='-berok'
15890 # Determine the default libpath from the value encoded in an
15891 # empty executable.
15892 if test set = "${lt_cv_aix_libpath+set}"; then
15893 aix_libpath=$lt_cv_aix_libpath
15894 else
15895 if ${lt_cv_aix_libpath_+:} false; then :
15896 $as_echo_n "(cached) " >&6
15897 else
15898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15899 /* end confdefs.h. */
15900
15901 int
15902 main ()
15903 {
15904
15905 ;
15906 return 0;
15907 }
15908 _ACEOF
15909 if ac_fn_c_try_link "$LINENO"; then :
15910
15911 lt_aix_libpath_sed='
15912 /Import File Strings/,/^$/ {
15913 /^0/ {
15914 s/^0 *\([^ ]*\) *$/\1/
15915 p
15916 }
15917 }'
15918 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15919 # Check for a 64-bit object if we didn't find anything.
15920 if test -z "$lt_cv_aix_libpath_"; then
15921 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15922 fi
15923 fi
15924 rm -f core conftest.err conftest.$ac_objext \
15925 conftest$ac_exeext conftest.$ac_ext
15926 if test -z "$lt_cv_aix_libpath_"; then
15927 lt_cv_aix_libpath_=/usr/lib:/lib
15928 fi
15929
15930 fi
15931
15932 aix_libpath=$lt_cv_aix_libpath_
15933 fi
15934
15935 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
15936 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
15937 else
15938 if test ia64 = "$host_cpu"; then
15939 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
15940 allow_undefined_flag="-z nodefs"
15941 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"
15942 else
15943 # Determine the default libpath from the value encoded in an
15944 # empty executable.
15945 if test set = "${lt_cv_aix_libpath+set}"; then
15946 aix_libpath=$lt_cv_aix_libpath
15947 else
15948 if ${lt_cv_aix_libpath_+:} false; then :
15949 $as_echo_n "(cached) " >&6
15950 else
15951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15952 /* end confdefs.h. */
15953
15954 int
15955 main ()
15956 {
15957
15958 ;
15959 return 0;
15960 }
15961 _ACEOF
15962 if ac_fn_c_try_link "$LINENO"; then :
15963
15964 lt_aix_libpath_sed='
15965 /Import File Strings/,/^$/ {
15966 /^0/ {
15967 s/^0 *\([^ ]*\) *$/\1/
15968 p
15969 }
15970 }'
15971 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15972 # Check for a 64-bit object if we didn't find anything.
15973 if test -z "$lt_cv_aix_libpath_"; then
15974 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15975 fi
15976 fi
15977 rm -f core conftest.err conftest.$ac_objext \
15978 conftest$ac_exeext conftest.$ac_ext
15979 if test -z "$lt_cv_aix_libpath_"; then
15980 lt_cv_aix_libpath_=/usr/lib:/lib
15981 fi
15982
15983 fi
15984
15985 aix_libpath=$lt_cv_aix_libpath_
15986 fi
15987
15988 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
15989 # Warning - without using the other run time loading flags,
15990 # -berok will link without error, but may produce a broken library.
15991 no_undefined_flag=' $wl-bernotok'
15992 allow_undefined_flag=' $wl-berok'
15993 if test yes = "$with_gnu_ld"; then
15994 # We only use this code for GNU lds that support --whole-archive.
15995 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
15996 else
15997 # Exported symbols can be pulled into shared objects from archives
15998 whole_archive_flag_spec='$convenience'
15999 fi
16000 archive_cmds_need_lc=yes
16001 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
16002 # -brtl affects multiple linker settings, -berok does not and is overridden later
16003 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
16004 if test svr4 != "$with_aix_soname"; then
16005 # This is similar to how AIX traditionally builds its shared libraries.
16006 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'
16007 fi
16008 if test aix != "$with_aix_soname"; then
16009 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'
16010 else
16011 # used by -dlpreopen to get the symbols
16012 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
16013 fi
16014 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
16015 fi
16016 fi
16017 ;;
16018
16019 amigaos*)
16020 case $host_cpu in
16021 powerpc)
16022 # see comment about AmigaOS4 .so support
16023 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16024 archive_expsym_cmds=''
16025 ;;
16026 m68k)
16027 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)'
16028 hardcode_libdir_flag_spec='-L$libdir'
16029 hardcode_minus_L=yes
16030 ;;
16031 esac
16032 ;;
16033
16034 bsdi[45]*)
16035 export_dynamic_flag_spec=-rdynamic
16036 ;;
16037
16038 cygwin* | mingw* | pw32* | cegcc*)
16039 # When not using gcc, we currently assume that we are using
16040 # Microsoft Visual C++.
16041 # hardcode_libdir_flag_spec is actually meaningless, as there is
16042 # no search path for DLLs.
16043 case $cc_basename in
16044 cl*)
16045 # Native MSVC
16046 hardcode_libdir_flag_spec=' '
16047 allow_undefined_flag=unsupported
16048 always_export_symbols=yes
16049 file_list_spec='@'
16050 # Tell ltmain to make .lib files, not .a files.
16051 libext=lib
16052 # Tell ltmain to make .dll files, not .so files.
16053 shrext_cmds=.dll
16054 # FIXME: Setting linknames here is a bad hack.
16055 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
16056 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
16057 cp "$export_symbols" "$output_objdir/$soname.def";
16058 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
16059 else
16060 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
16061 fi~
16062 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
16063 linknames='
16064 # The linker will not automatically build a static lib if we build a DLL.
16065 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
16066 enable_shared_with_static_runtimes=yes
16067 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16068 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16069 # Don't use ranlib
16070 old_postinstall_cmds='chmod 644 $oldlib'
16071 postlink_cmds='lt_outputfile="@OUTPUT@"~
16072 lt_tool_outputfile="@TOOL_OUTPUT@"~
16073 case $lt_outputfile in
16074 *.exe|*.EXE) ;;
16075 *)
16076 lt_outputfile=$lt_outputfile.exe
16077 lt_tool_outputfile=$lt_tool_outputfile.exe
16078 ;;
16079 esac~
16080 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
16081 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
16082 $RM "$lt_outputfile.manifest";
16083 fi'
16084 ;;
16085 *)
16086 # Assume MSVC wrapper
16087 hardcode_libdir_flag_spec=' '
16088 allow_undefined_flag=unsupported
16089 # Tell ltmain to make .lib files, not .a files.
16090 libext=lib
16091 # Tell ltmain to make .dll files, not .so files.
16092 shrext_cmds=.dll
16093 # FIXME: Setting linknames here is a bad hack.
16094 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16095 # The linker will automatically build a .lib file if we build a DLL.
16096 old_archive_from_new_cmds='true'
16097 # FIXME: Should let the user specify the lib program.
16098 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16099 enable_shared_with_static_runtimes=yes
16100 ;;
16101 esac
16102 ;;
16103
16104 darwin* | rhapsody*)
16105
16106
16107 archive_cmds_need_lc=no
16108 hardcode_direct=no
16109 hardcode_automatic=yes
16110 hardcode_shlibpath_var=unsupported
16111 if test yes = "$lt_cv_ld_force_load"; then
16112 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\"`'
16113
16114 else
16115 whole_archive_flag_spec=''
16116 fi
16117 link_all_deplibs=yes
16118 allow_undefined_flag=$_lt_dar_allow_undefined
16119 case $cc_basename in
16120 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
16121 *) _lt_dar_can_shared=$GCC ;;
16122 esac
16123 if test yes = "$_lt_dar_can_shared"; then
16124 output_verbose_link_cmd=func_echo_all
16125 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
16126 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
16127 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"
16128 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"
16129
16130 else
16131 ld_shlibs=no
16132 fi
16133
16134 ;;
16135
16136 dgux*)
16137 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16138 hardcode_libdir_flag_spec='-L$libdir'
16139 hardcode_shlibpath_var=no
16140 ;;
16141
16142 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16143 # support. Future versions do this automatically, but an explicit c++rt0.o
16144 # does not break anything, and helps significantly (at the cost of a little
16145 # extra space).
16146 freebsd2.2*)
16147 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16148 hardcode_libdir_flag_spec='-R$libdir'
16149 hardcode_direct=yes
16150 hardcode_shlibpath_var=no
16151 ;;
16152
16153 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16154 freebsd2.*)
16155 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16156 hardcode_direct=yes
16157 hardcode_minus_L=yes
16158 hardcode_shlibpath_var=no
16159 ;;
16160
16161 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16162 freebsd* | dragonfly*)
16163 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16164 hardcode_libdir_flag_spec='-R$libdir'
16165 hardcode_direct=yes
16166 hardcode_shlibpath_var=no
16167 ;;
16168
16169 hpux9*)
16170 if test yes = "$GCC"; then
16171 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'
16172 else
16173 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'
16174 fi
16175 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16176 hardcode_libdir_separator=:
16177 hardcode_direct=yes
16178
16179 # hardcode_minus_L: Not really in the search PATH,
16180 # but as the default location of the library.
16181 hardcode_minus_L=yes
16182 export_dynamic_flag_spec='$wl-E'
16183 ;;
16184
16185 hpux10*)
16186 if test yes,no = "$GCC,$with_gnu_ld"; then
16187 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16188 else
16189 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16190 fi
16191 if test no = "$with_gnu_ld"; then
16192 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16193 hardcode_libdir_separator=:
16194 hardcode_direct=yes
16195 hardcode_direct_absolute=yes
16196 export_dynamic_flag_spec='$wl-E'
16197 # hardcode_minus_L: Not really in the search PATH,
16198 # but as the default location of the library.
16199 hardcode_minus_L=yes
16200 fi
16201 ;;
16202
16203 hpux11*)
16204 if test yes,no = "$GCC,$with_gnu_ld"; then
16205 case $host_cpu in
16206 hppa*64*)
16207 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16208 ;;
16209 ia64*)
16210 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16211 ;;
16212 *)
16213 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16214 ;;
16215 esac
16216 else
16217 case $host_cpu in
16218 hppa*64*)
16219 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16220 ;;
16221 ia64*)
16222 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16223 ;;
16224 *)
16225
16226 # Older versions of the 11.00 compiler do not understand -b yet
16227 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16229 $as_echo_n "checking if $CC understands -b... " >&6; }
16230 if ${lt_cv_prog_compiler__b+:} false; then :
16231 $as_echo_n "(cached) " >&6
16232 else
16233 lt_cv_prog_compiler__b=no
16234 save_LDFLAGS=$LDFLAGS
16235 LDFLAGS="$LDFLAGS -b"
16236 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16237 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16238 # The linker can only warn and ignore the option if not recognized
16239 # So say no if there are warnings
16240 if test -s conftest.err; then
16241 # Append any errors to the config.log.
16242 cat conftest.err 1>&5
16243 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16244 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16245 if diff conftest.exp conftest.er2 >/dev/null; then
16246 lt_cv_prog_compiler__b=yes
16247 fi
16248 else
16249 lt_cv_prog_compiler__b=yes
16250 fi
16251 fi
16252 $RM -r conftest*
16253 LDFLAGS=$save_LDFLAGS
16254
16255 fi
16256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16257 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16258
16259 if test yes = "$lt_cv_prog_compiler__b"; then
16260 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16261 else
16262 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16263 fi
16264
16265 ;;
16266 esac
16267 fi
16268 if test no = "$with_gnu_ld"; then
16269 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16270 hardcode_libdir_separator=:
16271
16272 case $host_cpu in
16273 hppa*64*|ia64*)
16274 hardcode_direct=no
16275 hardcode_shlibpath_var=no
16276 ;;
16277 *)
16278 hardcode_direct=yes
16279 hardcode_direct_absolute=yes
16280 export_dynamic_flag_spec='$wl-E'
16281
16282 # hardcode_minus_L: Not really in the search PATH,
16283 # but as the default location of the library.
16284 hardcode_minus_L=yes
16285 ;;
16286 esac
16287 fi
16288 ;;
16289
16290 irix5* | irix6* | nonstopux*)
16291 if test yes = "$GCC"; then
16292 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'
16293 # Try to use the -exported_symbol ld option, if it does not
16294 # work, assume that -exports_file does not work either and
16295 # implicitly export all symbols.
16296 # This should be the same for all languages, so no per-tag cache variable.
16297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
16298 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
16299 if ${lt_cv_irix_exported_symbol+:} false; then :
16300 $as_echo_n "(cached) " >&6
16301 else
16302 save_LDFLAGS=$LDFLAGS
16303 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
16304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16305 /* end confdefs.h. */
16306 int foo (void) { return 0; }
16307 _ACEOF
16308 if ac_fn_c_try_link "$LINENO"; then :
16309 lt_cv_irix_exported_symbol=yes
16310 else
16311 lt_cv_irix_exported_symbol=no
16312 fi
16313 rm -f core conftest.err conftest.$ac_objext \
16314 conftest$ac_exeext conftest.$ac_ext
16315 LDFLAGS=$save_LDFLAGS
16316 fi
16317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
16318 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
16319 if test yes = "$lt_cv_irix_exported_symbol"; then
16320 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'
16321 fi
16322 else
16323 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'
16324 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'
16325 fi
16326 archive_cmds_need_lc='no'
16327 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16328 hardcode_libdir_separator=:
16329 inherit_rpath=yes
16330 link_all_deplibs=yes
16331 ;;
16332
16333 linux*)
16334 case $cc_basename in
16335 tcc*)
16336 # Fabrice Bellard et al's Tiny C Compiler
16337 ld_shlibs=yes
16338 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16339 ;;
16340 esac
16341 ;;
16342
16343 netbsd*)
16344 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16345 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16346 else
16347 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16348 fi
16349 hardcode_libdir_flag_spec='-R$libdir'
16350 hardcode_direct=yes
16351 hardcode_shlibpath_var=no
16352 ;;
16353
16354 newsos6)
16355 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16356 hardcode_direct=yes
16357 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16358 hardcode_libdir_separator=:
16359 hardcode_shlibpath_var=no
16360 ;;
16361
16362 *nto* | *qnx*)
16363 ;;
16364
16365 openbsd* | bitrig*)
16366 if test -f /usr/libexec/ld.so; then
16367 hardcode_direct=yes
16368 hardcode_shlibpath_var=no
16369 hardcode_direct_absolute=yes
16370 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16371 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16372 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
16373 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
16374 export_dynamic_flag_spec='$wl-E'
16375 else
16376 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16377 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
16378 fi
16379 else
16380 ld_shlibs=no
16381 fi
16382 ;;
16383
16384 os2*)
16385 hardcode_libdir_flag_spec='-L$libdir'
16386 hardcode_minus_L=yes
16387 allow_undefined_flag=unsupported
16388 shrext_cmds=.dll
16389 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16390 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16391 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16392 $ECHO EXPORTS >> $output_objdir/$libname.def~
16393 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
16394 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16395 emximp -o $lib $output_objdir/$libname.def'
16396 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16397 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16398 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16399 $ECHO EXPORTS >> $output_objdir/$libname.def~
16400 prefix_cmds="$SED"~
16401 if test EXPORTS = "`$SED 1q $export_symbols`"; then
16402 prefix_cmds="$prefix_cmds -e 1d";
16403 fi~
16404 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
16405 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
16406 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16407 emximp -o $lib $output_objdir/$libname.def'
16408 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
16409 enable_shared_with_static_runtimes=yes
16410 ;;
16411
16412 osf3*)
16413 if test yes = "$GCC"; then
16414 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
16415 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'
16416 else
16417 allow_undefined_flag=' -expect_unresolved \*'
16418 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'
16419 fi
16420 archive_cmds_need_lc='no'
16421 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16422 hardcode_libdir_separator=:
16423 ;;
16424
16425 osf4* | osf5*) # as osf3* with the addition of -msym flag
16426 if test yes = "$GCC"; then
16427 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
16428 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'
16429 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16430 else
16431 allow_undefined_flag=' -expect_unresolved \*'
16432 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'
16433 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~
16434 $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'
16435
16436 # Both c and cxx compiler support -rpath directly
16437 hardcode_libdir_flag_spec='-rpath $libdir'
16438 fi
16439 archive_cmds_need_lc='no'
16440 hardcode_libdir_separator=:
16441 ;;
16442
16443 solaris*)
16444 no_undefined_flag=' -z defs'
16445 if test yes = "$GCC"; then
16446 wlarc='$wl'
16447 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16448 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16449 $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'
16450 else
16451 case `$CC -V 2>&1` in
16452 *"Compilers 5.0"*)
16453 wlarc=''
16454 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
16455 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16456 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16457 ;;
16458 *)
16459 wlarc='$wl'
16460 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16461 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16462 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16463 ;;
16464 esac
16465 fi
16466 hardcode_libdir_flag_spec='-R$libdir'
16467 hardcode_shlibpath_var=no
16468 case $host_os in
16469 solaris2.[0-5] | solaris2.[0-5].*) ;;
16470 *)
16471 # The compiler driver will combine and reorder linker options,
16472 # but understands '-z linker_flag'. GCC discards it without '$wl',
16473 # but is careful enough not to reorder.
16474 # Supported since Solaris 2.6 (maybe 2.5.1?)
16475 if test yes = "$GCC"; then
16476 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
16477 else
16478 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16479 fi
16480 ;;
16481 esac
16482 link_all_deplibs=yes
16483 ;;
16484
16485 sunos4*)
16486 if test sequent = "$host_vendor"; then
16487 # Use $CC to link under sequent, because it throws in some extra .o
16488 # files that make .init and .fini sections work.
16489 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16490 else
16491 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16492 fi
16493 hardcode_libdir_flag_spec='-L$libdir'
16494 hardcode_direct=yes
16495 hardcode_minus_L=yes
16496 hardcode_shlibpath_var=no
16497 ;;
16498
16499 sysv4)
16500 case $host_vendor in
16501 sni)
16502 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16503 hardcode_direct=yes # is this really true???
16504 ;;
16505 siemens)
16506 ## LD is ld it makes a PLAMLIB
16507 ## CC just makes a GrossModule.
16508 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16509 reload_cmds='$CC -r -o $output$reload_objs'
16510 hardcode_direct=no
16511 ;;
16512 motorola)
16513 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16514 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16515 ;;
16516 esac
16517 runpath_var='LD_RUN_PATH'
16518 hardcode_shlibpath_var=no
16519 ;;
16520
16521 sysv4.3*)
16522 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16523 hardcode_shlibpath_var=no
16524 export_dynamic_flag_spec='-Bexport'
16525 ;;
16526
16527 sysv4*MP*)
16528 if test -d /usr/nec; then
16529 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16530 hardcode_shlibpath_var=no
16531 runpath_var=LD_RUN_PATH
16532 hardcode_runpath_var=yes
16533 ld_shlibs=yes
16534 fi
16535 ;;
16536
16537 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16538 no_undefined_flag='$wl-z,text'
16539 archive_cmds_need_lc=no
16540 hardcode_shlibpath_var=no
16541 runpath_var='LD_RUN_PATH'
16542
16543 if test yes = "$GCC"; then
16544 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16545 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16546 else
16547 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16548 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16549 fi
16550 ;;
16551
16552 sysv5* | sco3.2v5* | sco5v6*)
16553 # Note: We CANNOT use -z defs as we might desire, because we do not
16554 # link with -lc, and that would cause any symbols used from libc to
16555 # always be unresolved, which means just about no library would
16556 # ever link correctly. If we're not using GNU ld we use -z text
16557 # though, which does catch some bad symbols but isn't as heavy-handed
16558 # as -z defs.
16559 no_undefined_flag='$wl-z,text'
16560 allow_undefined_flag='$wl-z,nodefs'
16561 archive_cmds_need_lc=no
16562 hardcode_shlibpath_var=no
16563 hardcode_libdir_flag_spec='$wl-R,$libdir'
16564 hardcode_libdir_separator=':'
16565 link_all_deplibs=yes
16566 export_dynamic_flag_spec='$wl-Bexport'
16567 runpath_var='LD_RUN_PATH'
16568
16569 if test yes = "$GCC"; then
16570 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16571 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16572 else
16573 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16574 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16575 fi
16576 ;;
16577
16578 uts4*)
16579 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16580 hardcode_libdir_flag_spec='-L$libdir'
16581 hardcode_shlibpath_var=no
16582 ;;
16583
16584 *)
16585 ld_shlibs=no
16586 ;;
16587 esac
16588
16589 if test sni = "$host_vendor"; then
16590 case $host in
16591 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16592 export_dynamic_flag_spec='$wl-Blargedynsym'
16593 ;;
16594 esac
16595 fi
16596 fi
16597
16598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16599 $as_echo "$ld_shlibs" >&6; }
16600 test no = "$ld_shlibs" && can_build_shared=no
16601
16602 with_gnu_ld=$with_gnu_ld
16603
16604
16605
16606
16607
16608
16609
16610
16611
16612
16613
16614
16615
16616
16617
16618 #
16619 # Do we need to explicitly link libc?
16620 #
16621 case "x$archive_cmds_need_lc" in
16622 x|xyes)
16623 # Assume -lc should be added
16624 archive_cmds_need_lc=yes
16625
16626 if test yes,yes = "$GCC,$enable_shared"; then
16627 case $archive_cmds in
16628 *'~'*)
16629 # FIXME: we may have to deal with multi-command sequences.
16630 ;;
16631 '$CC '*)
16632 # Test whether the compiler implicitly links with -lc since on some
16633 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16634 # to ld, don't add -lc before -lgcc.
16635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16636 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16637 if ${lt_cv_archive_cmds_need_lc+:} false; then :
16638 $as_echo_n "(cached) " >&6
16639 else
16640 $RM conftest*
16641 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16642
16643 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16644 (eval $ac_compile) 2>&5
16645 ac_status=$?
16646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16647 test $ac_status = 0; } 2>conftest.err; then
16648 soname=conftest
16649 lib=conftest
16650 libobjs=conftest.$ac_objext
16651 deplibs=
16652 wl=$lt_prog_compiler_wl
16653 pic_flag=$lt_prog_compiler_pic
16654 compiler_flags=-v
16655 linker_flags=-v
16656 verstring=
16657 output_objdir=.
16658 libname=conftest
16659 lt_save_allow_undefined_flag=$allow_undefined_flag
16660 allow_undefined_flag=
16661 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16662 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16663 ac_status=$?
16664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16665 test $ac_status = 0; }
16666 then
16667 lt_cv_archive_cmds_need_lc=no
16668 else
16669 lt_cv_archive_cmds_need_lc=yes
16670 fi
16671 allow_undefined_flag=$lt_save_allow_undefined_flag
16672 else
16673 cat conftest.err 1>&5
16674 fi
16675 $RM conftest*
16676
16677 fi
16678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16679 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16680 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16681 ;;
16682 esac
16683 fi
16684 ;;
16685 esac
16686
16687
16688
16689
16690
16691
16692
16693
16694
16695
16696
16697
16698
16699
16700
16701
16702
16703
16704
16705
16706
16707
16708
16709
16710
16711
16712
16713
16714
16715
16716
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726
16727
16728
16729
16730
16731
16732
16733
16734
16735
16736
16737
16738
16739
16740
16741
16742
16743
16744
16745
16746
16747
16748
16749
16750
16751
16752
16753
16754
16755
16756
16757
16758
16759
16760
16761
16762
16763
16764
16765
16766
16767
16768
16769
16770
16771
16772
16773
16774
16775
16776
16777
16778
16779
16780
16781
16782
16783
16784
16785
16786
16787
16788
16789
16790
16791
16792
16793
16794
16795
16796
16797
16798
16799
16800
16801
16802
16803
16804
16805
16806
16807
16808
16809
16810
16811
16812
16813
16814
16815
16816
16817
16818
16819
16820
16821
16822
16823
16824
16825
16826
16827
16828
16829
16830
16831
16832
16833
16834
16835
16836
16837
16838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16839 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16840
16841 if test yes = "$GCC"; then
16842 case $host_os in
16843 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
16844 *) lt_awk_arg='/^libraries:/' ;;
16845 esac
16846 case $host_os in
16847 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
16848 *) lt_sed_strip_eq='s|=/|/|g' ;;
16849 esac
16850 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16851 case $lt_search_path_spec in
16852 *\;*)
16853 # if the path contains ";" then we assume it to be the separator
16854 # otherwise default to the standard path separator (i.e. ":") - it is
16855 # assumed that no part of a normal pathname contains ";" but that should
16856 # okay in the real world where ";" in dirpaths is itself problematic.
16857 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16858 ;;
16859 *)
16860 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16861 ;;
16862 esac
16863 # Ok, now we have the path, separated by spaces, we can step through it
16864 # and add multilib dir if necessary...
16865 lt_tmp_lt_search_path_spec=
16866 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16867 # ...but if some path component already ends with the multilib dir we assume
16868 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
16869 case "$lt_multi_os_dir; $lt_search_path_spec " in
16870 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
16871 lt_multi_os_dir=
16872 ;;
16873 esac
16874 for lt_sys_path in $lt_search_path_spec; do
16875 if test -d "$lt_sys_path$lt_multi_os_dir"; then
16876 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
16877 elif test -n "$lt_multi_os_dir"; then
16878 test -d "$lt_sys_path" && \
16879 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16880 fi
16881 done
16882 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16883 BEGIN {RS = " "; FS = "/|\n";} {
16884 lt_foo = "";
16885 lt_count = 0;
16886 for (lt_i = NF; lt_i > 0; lt_i--) {
16887 if ($lt_i != "" && $lt_i != ".") {
16888 if ($lt_i == "..") {
16889 lt_count++;
16890 } else {
16891 if (lt_count == 0) {
16892 lt_foo = "/" $lt_i lt_foo;
16893 } else {
16894 lt_count--;
16895 }
16896 }
16897 }
16898 }
16899 if (lt_foo != "") { lt_freq[lt_foo]++; }
16900 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16901 }'`
16902 # AWK program above erroneously prepends '/' to C:/dos/paths
16903 # for these hosts.
16904 case $host_os in
16905 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16906 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
16907 esac
16908 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16909 else
16910 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16911 fi
16912 library_names_spec=
16913 libname_spec='lib$name'
16914 soname_spec=
16915 shrext_cmds=.so
16916 postinstall_cmds=
16917 postuninstall_cmds=
16918 finish_cmds=
16919 finish_eval=
16920 shlibpath_var=
16921 shlibpath_overrides_runpath=unknown
16922 version_type=none
16923 dynamic_linker="$host_os ld.so"
16924 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16925 need_lib_prefix=unknown
16926 hardcode_into_libs=no
16927
16928 # when you set need_version to no, make sure it does not cause -set_version
16929 # flags to be left without arguments
16930 need_version=unknown
16931
16932
16933
16934 case $host_os in
16935 aix3*)
16936 version_type=linux # correct to gnu/linux during the next big refactor
16937 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
16938 shlibpath_var=LIBPATH
16939
16940 # AIX 3 has no versioning support, so we append a major version to the name.
16941 soname_spec='$libname$release$shared_ext$major'
16942 ;;
16943
16944 aix[4-9]*)
16945 version_type=linux # correct to gnu/linux during the next big refactor
16946 need_lib_prefix=no
16947 need_version=no
16948 hardcode_into_libs=yes
16949 if test ia64 = "$host_cpu"; then
16950 # AIX 5 supports IA64
16951 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
16952 shlibpath_var=LD_LIBRARY_PATH
16953 else
16954 # With GCC up to 2.95.x, collect2 would create an import file
16955 # for dependence libraries. The import file would start with
16956 # the line '#! .'. This would cause the generated library to
16957 # depend on '.', always an invalid library. This was fixed in
16958 # development snapshots of GCC prior to 3.0.
16959 case $host_os in
16960 aix4 | aix4.[01] | aix4.[01].*)
16961 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16962 echo ' yes '
16963 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
16964 :
16965 else
16966 can_build_shared=no
16967 fi
16968 ;;
16969 esac
16970 # Using Import Files as archive members, it is possible to support
16971 # filename-based versioning of shared library archives on AIX. While
16972 # this would work for both with and without runtime linking, it will
16973 # prevent static linking of such archives. So we do filename-based
16974 # shared library versioning with .so extension only, which is used
16975 # when both runtime linking and shared linking is enabled.
16976 # Unfortunately, runtime linking may impact performance, so we do
16977 # not want this to be the default eventually. Also, we use the
16978 # versioned .so libs for executables only if there is the -brtl
16979 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
16980 # To allow for filename-based versioning support, we need to create
16981 # libNAME.so.V as an archive file, containing:
16982 # *) an Import File, referring to the versioned filename of the
16983 # archive as well as the shared archive member, telling the
16984 # bitwidth (32 or 64) of that shared object, and providing the
16985 # list of exported symbols of that shared object, eventually
16986 # decorated with the 'weak' keyword
16987 # *) the shared object with the F_LOADONLY flag set, to really avoid
16988 # it being seen by the linker.
16989 # At run time we better use the real file rather than another symlink,
16990 # but for link time we create the symlink libNAME.so -> libNAME.so.V
16991
16992 case $with_aix_soname,$aix_use_runtimelinking in
16993 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
16994 # soname into executable. Probably we can add versioning support to
16995 # collect2, so additional links can be useful in future.
16996 aix,yes) # traditional libtool
16997 dynamic_linker='AIX unversionable lib.so'
16998 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16999 # instead of lib<name>.a to let people know that these are not
17000 # typical AIX shared libraries.
17001 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17002 ;;
17003 aix,no) # traditional AIX only
17004 dynamic_linker='AIX lib.a(lib.so.V)'
17005 # We preserve .a as extension for shared libraries through AIX4.2
17006 # and later when we are not doing run time linking.
17007 library_names_spec='$libname$release.a $libname.a'
17008 soname_spec='$libname$release$shared_ext$major'
17009 ;;
17010 svr4,*) # full svr4 only
17011 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
17012 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17013 # We do not specify a path in Import Files, so LIBPATH fires.
17014 shlibpath_overrides_runpath=yes
17015 ;;
17016 *,yes) # both, prefer svr4
17017 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
17018 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17019 # unpreferred sharedlib libNAME.a needs extra handling
17020 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"'
17021 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"'
17022 # We do not specify a path in Import Files, so LIBPATH fires.
17023 shlibpath_overrides_runpath=yes
17024 ;;
17025 *,no) # both, prefer aix
17026 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
17027 library_names_spec='$libname$release.a $libname.a'
17028 soname_spec='$libname$release$shared_ext$major'
17029 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
17030 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)'
17031 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"'
17032 ;;
17033 esac
17034 shlibpath_var=LIBPATH
17035 fi
17036 ;;
17037
17038 amigaos*)
17039 case $host_cpu in
17040 powerpc)
17041 # Since July 2007 AmigaOS4 officially supports .so libraries.
17042 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17043 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17044 ;;
17045 m68k)
17046 library_names_spec='$libname.ixlibrary $libname.a'
17047 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17048 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'
17049 ;;
17050 esac
17051 ;;
17052
17053 beos*)
17054 library_names_spec='$libname$shared_ext'
17055 dynamic_linker="$host_os ld.so"
17056 shlibpath_var=LIBRARY_PATH
17057 ;;
17058
17059 bsdi[45]*)
17060 version_type=linux # correct to gnu/linux during the next big refactor
17061 need_version=no
17062 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17063 soname_spec='$libname$release$shared_ext$major'
17064 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17065 shlibpath_var=LD_LIBRARY_PATH
17066 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17067 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17068 # the default ld.so.conf also contains /usr/contrib/lib and
17069 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17070 # libtool to hard-code these into programs
17071 ;;
17072
17073 cygwin* | mingw* | pw32* | cegcc*)
17074 version_type=windows
17075 shrext_cmds=.dll
17076 need_version=no
17077 need_lib_prefix=no
17078
17079 case $GCC,$cc_basename in
17080 yes,*)
17081 # gcc
17082 library_names_spec='$libname.dll.a'
17083 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17084 postinstall_cmds='base_file=`basename \$file`~
17085 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17086 dldir=$destdir/`dirname \$dlpath`~
17087 test -d \$dldir || mkdir -p \$dldir~
17088 $install_prog $dir/$dlname \$dldir/$dlname~
17089 chmod a+x \$dldir/$dlname~
17090 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17091 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17092 fi'
17093 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17094 dlpath=$dir/\$dldll~
17095 $RM \$dlpath'
17096 shlibpath_overrides_runpath=yes
17097
17098 case $host_os in
17099 cygwin*)
17100 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17101 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17102
17103 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17104 ;;
17105 mingw* | cegcc*)
17106 # MinGW DLLs use traditional 'lib' prefix
17107 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17108 ;;
17109 pw32*)
17110 # pw32 DLLs use 'pw' prefix rather than 'lib'
17111 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17112 ;;
17113 esac
17114 dynamic_linker='Win32 ld.exe'
17115 ;;
17116
17117 *,cl*)
17118 # Native MSVC
17119 libname_spec='$name'
17120 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17121 library_names_spec='$libname.dll.lib'
17122
17123 case $build_os in
17124 mingw*)
17125 sys_lib_search_path_spec=
17126 lt_save_ifs=$IFS
17127 IFS=';'
17128 for lt_path in $LIB
17129 do
17130 IFS=$lt_save_ifs
17131 # Let DOS variable expansion print the short 8.3 style file name.
17132 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17133 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17134 done
17135 IFS=$lt_save_ifs
17136 # Convert to MSYS style.
17137 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17138 ;;
17139 cygwin*)
17140 # Convert to unix form, then to dos form, then back to unix form
17141 # but this time dos style (no spaces!) so that the unix form looks
17142 # like /cygdrive/c/PROGRA~1:/cygdr...
17143 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17144 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17145 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17146 ;;
17147 *)
17148 sys_lib_search_path_spec=$LIB
17149 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17150 # It is most probably a Windows format PATH.
17151 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17152 else
17153 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17154 fi
17155 # FIXME: find the short name or the path components, as spaces are
17156 # common. (e.g. "Program Files" -> "PROGRA~1")
17157 ;;
17158 esac
17159
17160 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17161 postinstall_cmds='base_file=`basename \$file`~
17162 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17163 dldir=$destdir/`dirname \$dlpath`~
17164 test -d \$dldir || mkdir -p \$dldir~
17165 $install_prog $dir/$dlname \$dldir/$dlname'
17166 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17167 dlpath=$dir/\$dldll~
17168 $RM \$dlpath'
17169 shlibpath_overrides_runpath=yes
17170 dynamic_linker='Win32 link.exe'
17171 ;;
17172
17173 *)
17174 # Assume MSVC wrapper
17175 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
17176 dynamic_linker='Win32 ld.exe'
17177 ;;
17178 esac
17179 # FIXME: first we should search . and the directory the executable is in
17180 shlibpath_var=PATH
17181 ;;
17182
17183 darwin* | rhapsody*)
17184 dynamic_linker="$host_os dyld"
17185 version_type=darwin
17186 need_lib_prefix=no
17187 need_version=no
17188 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
17189 soname_spec='$libname$release$major$shared_ext'
17190 shlibpath_overrides_runpath=yes
17191 shlibpath_var=DYLD_LIBRARY_PATH
17192 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17193
17194 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17195 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17196 ;;
17197
17198 dgux*)
17199 version_type=linux # correct to gnu/linux during the next big refactor
17200 need_lib_prefix=no
17201 need_version=no
17202 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17203 soname_spec='$libname$release$shared_ext$major'
17204 shlibpath_var=LD_LIBRARY_PATH
17205 ;;
17206
17207 freebsd* | dragonfly*)
17208 # DragonFly does not have aout. When/if they implement a new
17209 # versioning mechanism, adjust this.
17210 if test -x /usr/bin/objformat; then
17211 objformat=`/usr/bin/objformat`
17212 else
17213 case $host_os in
17214 freebsd[23].*) objformat=aout ;;
17215 *) objformat=elf ;;
17216 esac
17217 fi
17218 # Handle Gentoo/FreeBSD as it was Linux
17219 case $host_vendor in
17220 gentoo)
17221 version_type=linux ;;
17222 *)
17223 version_type=freebsd-$objformat ;;
17224 esac
17225
17226 case $version_type in
17227 freebsd-elf*)
17228 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17229 soname_spec='$libname$release$shared_ext$major'
17230 need_version=no
17231 need_lib_prefix=no
17232 ;;
17233 freebsd-*)
17234 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17235 need_version=yes
17236 ;;
17237 linux)
17238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17239 soname_spec='${libname}${release}${shared_ext}$major'
17240 need_lib_prefix=no
17241 need_version=no
17242 ;;
17243 esac
17244 shlibpath_var=LD_LIBRARY_PATH
17245 case $host_os in
17246 freebsd2.*)
17247 shlibpath_overrides_runpath=yes
17248 ;;
17249 freebsd3.[01]* | freebsdelf3.[01]*)
17250 shlibpath_overrides_runpath=yes
17251 hardcode_into_libs=yes
17252 ;;
17253 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17254 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17255 shlibpath_overrides_runpath=no
17256 hardcode_into_libs=yes
17257 ;;
17258 *) # from 4.6 on, and DragonFly
17259 shlibpath_overrides_runpath=yes
17260 hardcode_into_libs=yes
17261 ;;
17262 esac
17263 ;;
17264
17265 haiku*)
17266 version_type=linux # correct to gnu/linux during the next big refactor
17267 need_lib_prefix=no
17268 need_version=no
17269 dynamic_linker="$host_os runtime_loader"
17270 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17271 soname_spec='$libname$release$shared_ext$major'
17272 shlibpath_var=LIBRARY_PATH
17273 shlibpath_overrides_runpath=no
17274 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17275 hardcode_into_libs=yes
17276 ;;
17277
17278 hpux9* | hpux10* | hpux11*)
17279 # Give a soname corresponding to the major version so that dld.sl refuses to
17280 # link against other versions.
17281 version_type=sunos
17282 need_lib_prefix=no
17283 need_version=no
17284 case $host_cpu in
17285 ia64*)
17286 shrext_cmds='.so'
17287 hardcode_into_libs=yes
17288 dynamic_linker="$host_os dld.so"
17289 shlibpath_var=LD_LIBRARY_PATH
17290 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17291 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17292 soname_spec='$libname$release$shared_ext$major'
17293 if test 32 = "$HPUX_IA64_MODE"; then
17294 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17295 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
17296 else
17297 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17298 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
17299 fi
17300 ;;
17301 hppa*64*)
17302 shrext_cmds='.sl'
17303 hardcode_into_libs=yes
17304 dynamic_linker="$host_os dld.sl"
17305 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17306 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17307 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17308 soname_spec='$libname$release$shared_ext$major'
17309 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17310 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17311 ;;
17312 *)
17313 shrext_cmds='.sl'
17314 dynamic_linker="$host_os dld.sl"
17315 shlibpath_var=SHLIB_PATH
17316 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17317 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17318 soname_spec='$libname$release$shared_ext$major'
17319 ;;
17320 esac
17321 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17322 postinstall_cmds='chmod 555 $lib'
17323 # or fails outright, so override atomically:
17324 install_override_mode=555
17325 ;;
17326
17327 interix[3-9]*)
17328 version_type=linux # correct to gnu/linux during the next big refactor
17329 need_lib_prefix=no
17330 need_version=no
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='Interix 3.x ld.so.1 (PE, like ELF)'
17334 shlibpath_var=LD_LIBRARY_PATH
17335 shlibpath_overrides_runpath=no
17336 hardcode_into_libs=yes
17337 ;;
17338
17339 irix5* | irix6* | nonstopux*)
17340 case $host_os in
17341 nonstopux*) version_type=nonstopux ;;
17342 *)
17343 if test yes = "$lt_cv_prog_gnu_ld"; then
17344 version_type=linux # correct to gnu/linux during the next big refactor
17345 else
17346 version_type=irix
17347 fi ;;
17348 esac
17349 need_lib_prefix=no
17350 need_version=no
17351 soname_spec='$libname$release$shared_ext$major'
17352 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
17353 case $host_os in
17354 irix5* | nonstopux*)
17355 libsuff= shlibsuff=
17356 ;;
17357 *)
17358 case $LD in # libtool.m4 will add one of these switches to LD
17359 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17360 libsuff= shlibsuff= libmagic=32-bit;;
17361 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17362 libsuff=32 shlibsuff=N32 libmagic=N32;;
17363 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17364 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17365 *) libsuff= shlibsuff= libmagic=never-match;;
17366 esac
17367 ;;
17368 esac
17369 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17370 shlibpath_overrides_runpath=no
17371 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
17372 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
17373 hardcode_into_libs=yes
17374 ;;
17375
17376 # No shared lib support for Linux oldld, aout, or coff.
17377 linux*oldld* | linux*aout* | linux*coff*)
17378 dynamic_linker=no
17379 ;;
17380
17381 linux*android*)
17382 version_type=none # Android doesn't support versioned libraries.
17383 need_lib_prefix=no
17384 need_version=no
17385 library_names_spec='$libname$release$shared_ext'
17386 soname_spec='$libname$release$shared_ext'
17387 finish_cmds=
17388 shlibpath_var=LD_LIBRARY_PATH
17389 shlibpath_overrides_runpath=yes
17390
17391 # This implies no fast_install, which is unacceptable.
17392 # Some rework will be needed to allow for fast_install
17393 # before this can be enabled.
17394 hardcode_into_libs=yes
17395
17396 dynamic_linker='Android linker'
17397 # Don't embed -rpath directories since the linker doesn't support them.
17398 hardcode_libdir_flag_spec='-L$libdir'
17399 ;;
17400
17401 # This must be glibc/ELF.
17402 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17403 version_type=linux # correct to gnu/linux during the next big refactor
17404 need_lib_prefix=no
17405 need_version=no
17406 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17407 soname_spec='$libname$release$shared_ext$major'
17408 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17409 shlibpath_var=LD_LIBRARY_PATH
17410 shlibpath_overrides_runpath=no
17411
17412 # Some binutils ld are patched to set DT_RUNPATH
17413 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17414 $as_echo_n "(cached) " >&6
17415 else
17416 lt_cv_shlibpath_overrides_runpath=no
17417 save_LDFLAGS=$LDFLAGS
17418 save_libdir=$libdir
17419 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17420 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17422 /* end confdefs.h. */
17423
17424 int
17425 main ()
17426 {
17427
17428 ;
17429 return 0;
17430 }
17431 _ACEOF
17432 if ac_fn_c_try_link "$LINENO"; then :
17433 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17434 lt_cv_shlibpath_overrides_runpath=yes
17435 fi
17436 fi
17437 rm -f core conftest.err conftest.$ac_objext \
17438 conftest$ac_exeext conftest.$ac_ext
17439 LDFLAGS=$save_LDFLAGS
17440 libdir=$save_libdir
17441
17442 fi
17443
17444 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17445
17446 # This implies no fast_install, which is unacceptable.
17447 # Some rework will be needed to allow for fast_install
17448 # before this can be enabled.
17449 hardcode_into_libs=yes
17450
17451 # Ideally, we could use ldconfig to report *all* directores which are
17452 # searched for libraries, however this is still not possible. Aside from not
17453 # being certain /sbin/ldconfig is available, command
17454 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
17455 # even though it is searched at run-time. Try to do the best guess by
17456 # appending ld.so.conf contents (and includes) to the search path.
17457 if test -f /etc/ld.so.conf; then
17458 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' ' '`
17459 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17460 fi
17461
17462 # We used to test for /lib/ld.so.1 and disable shared libraries on
17463 # powerpc, because MkLinux only supported shared libraries with the
17464 # GNU dynamic linker. Since this was broken with cross compilers,
17465 # most powerpc-linux boxes support dynamic linking these days and
17466 # people can always --disable-shared, the test was removed, and we
17467 # assume the GNU/Linux dynamic linker is in use.
17468 dynamic_linker='GNU/Linux ld.so'
17469 ;;
17470
17471 netbsd*)
17472 version_type=sunos
17473 need_lib_prefix=no
17474 need_version=no
17475 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17476 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17477 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17478 dynamic_linker='NetBSD (a.out) ld.so'
17479 else
17480 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17481 soname_spec='$libname$release$shared_ext$major'
17482 dynamic_linker='NetBSD ld.elf_so'
17483 fi
17484 shlibpath_var=LD_LIBRARY_PATH
17485 shlibpath_overrides_runpath=yes
17486 hardcode_into_libs=yes
17487 ;;
17488
17489 newsos6)
17490 version_type=linux # correct to gnu/linux during the next big refactor
17491 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17492 shlibpath_var=LD_LIBRARY_PATH
17493 shlibpath_overrides_runpath=yes
17494 ;;
17495
17496 *nto* | *qnx*)
17497 version_type=qnx
17498 need_lib_prefix=no
17499 need_version=no
17500 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17501 soname_spec='$libname$release$shared_ext$major'
17502 shlibpath_var=LD_LIBRARY_PATH
17503 shlibpath_overrides_runpath=no
17504 hardcode_into_libs=yes
17505 dynamic_linker='ldqnx.so'
17506 ;;
17507
17508 openbsd* | bitrig*)
17509 version_type=sunos
17510 sys_lib_dlsearch_path_spec=/usr/lib
17511 need_lib_prefix=no
17512 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17513 need_version=no
17514 else
17515 need_version=yes
17516 fi
17517 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17518 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17519 shlibpath_var=LD_LIBRARY_PATH
17520 shlibpath_overrides_runpath=yes
17521 ;;
17522
17523 os2*)
17524 libname_spec='$name'
17525 version_type=windows
17526 shrext_cmds=.dll
17527 need_version=no
17528 need_lib_prefix=no
17529 # OS/2 can only load a DLL with a base name of 8 characters or less.
17530 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
17531 v=$($ECHO $release$versuffix | tr -d .-);
17532 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
17533 $ECHO $n$v`$shared_ext'
17534 library_names_spec='${libname}_dll.$libext'
17535 dynamic_linker='OS/2 ld.exe'
17536 shlibpath_var=BEGINLIBPATH
17537 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17538 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17539 postinstall_cmds='base_file=`basename \$file`~
17540 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
17541 dldir=$destdir/`dirname \$dlpath`~
17542 test -d \$dldir || mkdir -p \$dldir~
17543 $install_prog $dir/$dlname \$dldir/$dlname~
17544 chmod a+x \$dldir/$dlname~
17545 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17546 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17547 fi'
17548 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
17549 dlpath=$dir/\$dldll~
17550 $RM \$dlpath'
17551 ;;
17552
17553 osf3* | osf4* | osf5*)
17554 version_type=osf
17555 need_lib_prefix=no
17556 need_version=no
17557 soname_spec='$libname$release$shared_ext$major'
17558 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17559 shlibpath_var=LD_LIBRARY_PATH
17560 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17561 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17562 ;;
17563
17564 rdos*)
17565 dynamic_linker=no
17566 ;;
17567
17568 solaris*)
17569 version_type=linux # correct to gnu/linux during the next big refactor
17570 need_lib_prefix=no
17571 need_version=no
17572 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17573 soname_spec='$libname$release$shared_ext$major'
17574 shlibpath_var=LD_LIBRARY_PATH
17575 shlibpath_overrides_runpath=yes
17576 hardcode_into_libs=yes
17577 # ldd complains unless libraries are executable
17578 postinstall_cmds='chmod +x $lib'
17579 ;;
17580
17581 sunos4*)
17582 version_type=sunos
17583 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17584 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17585 shlibpath_var=LD_LIBRARY_PATH
17586 shlibpath_overrides_runpath=yes
17587 if test yes = "$with_gnu_ld"; then
17588 need_lib_prefix=no
17589 fi
17590 need_version=yes
17591 ;;
17592
17593 sysv4 | sysv4.3*)
17594 version_type=linux # correct to gnu/linux during the next big refactor
17595 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17596 soname_spec='$libname$release$shared_ext$major'
17597 shlibpath_var=LD_LIBRARY_PATH
17598 case $host_vendor in
17599 sni)
17600 shlibpath_overrides_runpath=no
17601 need_lib_prefix=no
17602 runpath_var=LD_RUN_PATH
17603 ;;
17604 siemens)
17605 need_lib_prefix=no
17606 ;;
17607 motorola)
17608 need_lib_prefix=no
17609 need_version=no
17610 shlibpath_overrides_runpath=no
17611 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17612 ;;
17613 esac
17614 ;;
17615
17616 sysv4*MP*)
17617 if test -d /usr/nec; then
17618 version_type=linux # correct to gnu/linux during the next big refactor
17619 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
17620 soname_spec='$libname$shared_ext.$major'
17621 shlibpath_var=LD_LIBRARY_PATH
17622 fi
17623 ;;
17624
17625 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17626 version_type=sco
17627 need_lib_prefix=no
17628 need_version=no
17629 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
17630 soname_spec='$libname$release$shared_ext$major'
17631 shlibpath_var=LD_LIBRARY_PATH
17632 shlibpath_overrides_runpath=yes
17633 hardcode_into_libs=yes
17634 if test yes = "$with_gnu_ld"; then
17635 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17636 else
17637 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17638 case $host_os in
17639 sco3.2v5*)
17640 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17641 ;;
17642 esac
17643 fi
17644 sys_lib_dlsearch_path_spec='/usr/lib'
17645 ;;
17646
17647 tpf*)
17648 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17649 version_type=linux # correct to gnu/linux during the next big refactor
17650 need_lib_prefix=no
17651 need_version=no
17652 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17653 shlibpath_var=LD_LIBRARY_PATH
17654 shlibpath_overrides_runpath=no
17655 hardcode_into_libs=yes
17656 ;;
17657
17658 uts4*)
17659 version_type=linux # correct to gnu/linux during the next big refactor
17660 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17661 soname_spec='$libname$release$shared_ext$major'
17662 shlibpath_var=LD_LIBRARY_PATH
17663 ;;
17664
17665 *)
17666 dynamic_linker=no
17667 ;;
17668 esac
17669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17670 $as_echo "$dynamic_linker" >&6; }
17671 test no = "$dynamic_linker" && can_build_shared=no
17672
17673 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17674 if test yes = "$GCC"; then
17675 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17676 fi
17677
17678 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
17679 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
17680 fi
17681
17682 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
17683 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
17684 fi
17685
17686 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
17687 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
17688
17689 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
17690 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
17691
17692 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
17693 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
17694
17695
17696
17697
17698
17699
17700
17701
17702
17703
17704
17705
17706
17707
17708
17709
17710
17711
17712
17713
17714
17715
17716
17717
17718
17719
17720
17721
17722
17723
17724
17725
17726
17727
17728
17729
17730
17731
17732
17733
17734
17735
17736
17737
17738
17739
17740
17741
17742
17743
17744
17745
17746
17747
17748
17749
17750
17751
17752
17753
17754
17755
17756
17757
17758
17759
17760
17761
17762
17763
17764
17765
17766
17767
17768
17769
17770
17771
17772
17773
17774
17775
17776
17777
17778
17779
17780
17781
17782
17783
17784
17785
17786
17787
17788
17789
17790
17791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17792 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17793 hardcode_action=
17794 if test -n "$hardcode_libdir_flag_spec" ||
17795 test -n "$runpath_var" ||
17796 test yes = "$hardcode_automatic"; then
17797
17798 # We can hardcode non-existent directories.
17799 if test no != "$hardcode_direct" &&
17800 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17801 # have to relink, otherwise we might link with an installed library
17802 # when we should be linking with a yet-to-be-installed one
17803 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
17804 test no != "$hardcode_minus_L"; then
17805 # Linking always hardcodes the temporary library directory.
17806 hardcode_action=relink
17807 else
17808 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17809 hardcode_action=immediate
17810 fi
17811 else
17812 # We cannot hardcode anything, or else we can only hardcode existing
17813 # directories.
17814 hardcode_action=unsupported
17815 fi
17816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17817 $as_echo "$hardcode_action" >&6; }
17818
17819 if test relink = "$hardcode_action" ||
17820 test yes = "$inherit_rpath"; then
17821 # Fast installation is not supported
17822 enable_fast_install=no
17823 elif test yes = "$shlibpath_overrides_runpath" ||
17824 test no = "$enable_shared"; then
17825 # Fast installation is not necessary
17826 enable_fast_install=needless
17827 fi
17828
17829
17830
17831
17832
17833
17834 if test yes != "$enable_dlopen"; then
17835 enable_dlopen=unknown
17836 enable_dlopen_self=unknown
17837 enable_dlopen_self_static=unknown
17838 else
17839 lt_cv_dlopen=no
17840 lt_cv_dlopen_libs=
17841
17842 case $host_os in
17843 beos*)
17844 lt_cv_dlopen=load_add_on
17845 lt_cv_dlopen_libs=
17846 lt_cv_dlopen_self=yes
17847 ;;
17848
17849 mingw* | pw32* | cegcc*)
17850 lt_cv_dlopen=LoadLibrary
17851 lt_cv_dlopen_libs=
17852 ;;
17853
17854 cygwin*)
17855 lt_cv_dlopen=dlopen
17856 lt_cv_dlopen_libs=
17857 ;;
17858
17859 darwin*)
17860 # if libdl is installed we need to link against it
17861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17862 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17863 if ${ac_cv_lib_dl_dlopen+:} false; then :
17864 $as_echo_n "(cached) " >&6
17865 else
17866 ac_check_lib_save_LIBS=$LIBS
17867 LIBS="-ldl $LIBS"
17868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17869 /* end confdefs.h. */
17870
17871 /* Override any GCC internal prototype to avoid an error.
17872 Use char because int might match the return type of a GCC
17873 builtin and then its argument prototype would still apply. */
17874 #ifdef __cplusplus
17875 extern "C"
17876 #endif
17877 char dlopen ();
17878 int
17879 main ()
17880 {
17881 return dlopen ();
17882 ;
17883 return 0;
17884 }
17885 _ACEOF
17886 if ac_fn_c_try_link "$LINENO"; then :
17887 ac_cv_lib_dl_dlopen=yes
17888 else
17889 ac_cv_lib_dl_dlopen=no
17890 fi
17891 rm -f core conftest.err conftest.$ac_objext \
17892 conftest$ac_exeext conftest.$ac_ext
17893 LIBS=$ac_check_lib_save_LIBS
17894 fi
17895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17896 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17897 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17898 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
17899 else
17900
17901 lt_cv_dlopen=dyld
17902 lt_cv_dlopen_libs=
17903 lt_cv_dlopen_self=yes
17904
17905 fi
17906
17907 ;;
17908
17909 tpf*)
17910 # Don't try to run any link tests for TPF. We know it's impossible
17911 # because TPF is a cross-compiler, and we know how we open DSOs.
17912 lt_cv_dlopen=dlopen
17913 lt_cv_dlopen_libs=
17914 lt_cv_dlopen_self=no
17915 ;;
17916
17917 *)
17918 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17919 if test "x$ac_cv_func_shl_load" = xyes; then :
17920 lt_cv_dlopen=shl_load
17921 else
17922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17923 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17924 if ${ac_cv_lib_dld_shl_load+:} false; then :
17925 $as_echo_n "(cached) " >&6
17926 else
17927 ac_check_lib_save_LIBS=$LIBS
17928 LIBS="-ldld $LIBS"
17929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17930 /* end confdefs.h. */
17931
17932 /* Override any GCC internal prototype to avoid an error.
17933 Use char because int might match the return type of a GCC
17934 builtin and then its argument prototype would still apply. */
17935 #ifdef __cplusplus
17936 extern "C"
17937 #endif
17938 char shl_load ();
17939 int
17940 main ()
17941 {
17942 return shl_load ();
17943 ;
17944 return 0;
17945 }
17946 _ACEOF
17947 if ac_fn_c_try_link "$LINENO"; then :
17948 ac_cv_lib_dld_shl_load=yes
17949 else
17950 ac_cv_lib_dld_shl_load=no
17951 fi
17952 rm -f core conftest.err conftest.$ac_objext \
17953 conftest$ac_exeext conftest.$ac_ext
17954 LIBS=$ac_check_lib_save_LIBS
17955 fi
17956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17957 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17958 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
17959 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
17960 else
17961 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17962 if test "x$ac_cv_func_dlopen" = xyes; then :
17963 lt_cv_dlopen=dlopen
17964 else
17965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17966 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17967 if ${ac_cv_lib_dl_dlopen+:} false; then :
17968 $as_echo_n "(cached) " >&6
17969 else
17970 ac_check_lib_save_LIBS=$LIBS
17971 LIBS="-ldl $LIBS"
17972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17973 /* end confdefs.h. */
17974
17975 /* Override any GCC internal prototype to avoid an error.
17976 Use char because int might match the return type of a GCC
17977 builtin and then its argument prototype would still apply. */
17978 #ifdef __cplusplus
17979 extern "C"
17980 #endif
17981 char dlopen ();
17982 int
17983 main ()
17984 {
17985 return dlopen ();
17986 ;
17987 return 0;
17988 }
17989 _ACEOF
17990 if ac_fn_c_try_link "$LINENO"; then :
17991 ac_cv_lib_dl_dlopen=yes
17992 else
17993 ac_cv_lib_dl_dlopen=no
17994 fi
17995 rm -f core conftest.err conftest.$ac_objext \
17996 conftest$ac_exeext conftest.$ac_ext
17997 LIBS=$ac_check_lib_save_LIBS
17998 fi
17999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18000 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18001 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
18002 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
18003 else
18004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18005 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18006 if ${ac_cv_lib_svld_dlopen+:} false; then :
18007 $as_echo_n "(cached) " >&6
18008 else
18009 ac_check_lib_save_LIBS=$LIBS
18010 LIBS="-lsvld $LIBS"
18011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18012 /* end confdefs.h. */
18013
18014 /* Override any GCC internal prototype to avoid an error.
18015 Use char because int might match the return type of a GCC
18016 builtin and then its argument prototype would still apply. */
18017 #ifdef __cplusplus
18018 extern "C"
18019 #endif
18020 char dlopen ();
18021 int
18022 main ()
18023 {
18024 return dlopen ();
18025 ;
18026 return 0;
18027 }
18028 _ACEOF
18029 if ac_fn_c_try_link "$LINENO"; then :
18030 ac_cv_lib_svld_dlopen=yes
18031 else
18032 ac_cv_lib_svld_dlopen=no
18033 fi
18034 rm -f core conftest.err conftest.$ac_objext \
18035 conftest$ac_exeext conftest.$ac_ext
18036 LIBS=$ac_check_lib_save_LIBS
18037 fi
18038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18039 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18040 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
18041 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
18042 else
18043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18044 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18045 if ${ac_cv_lib_dld_dld_link+:} false; then :
18046 $as_echo_n "(cached) " >&6
18047 else
18048 ac_check_lib_save_LIBS=$LIBS
18049 LIBS="-ldld $LIBS"
18050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18051 /* end confdefs.h. */
18052
18053 /* Override any GCC internal prototype to avoid an error.
18054 Use char because int might match the return type of a GCC
18055 builtin and then its argument prototype would still apply. */
18056 #ifdef __cplusplus
18057 extern "C"
18058 #endif
18059 char dld_link ();
18060 int
18061 main ()
18062 {
18063 return dld_link ();
18064 ;
18065 return 0;
18066 }
18067 _ACEOF
18068 if ac_fn_c_try_link "$LINENO"; then :
18069 ac_cv_lib_dld_dld_link=yes
18070 else
18071 ac_cv_lib_dld_dld_link=no
18072 fi
18073 rm -f core conftest.err conftest.$ac_objext \
18074 conftest$ac_exeext conftest.$ac_ext
18075 LIBS=$ac_check_lib_save_LIBS
18076 fi
18077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18078 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18079 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
18080 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
18081 fi
18082
18083
18084 fi
18085
18086
18087 fi
18088
18089
18090 fi
18091
18092
18093 fi
18094
18095
18096 fi
18097
18098 ;;
18099 esac
18100
18101 if test no = "$lt_cv_dlopen"; then
18102 enable_dlopen=no
18103 else
18104 enable_dlopen=yes
18105 fi
18106
18107 case $lt_cv_dlopen in
18108 dlopen)
18109 save_CPPFLAGS=$CPPFLAGS
18110 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18111
18112 save_LDFLAGS=$LDFLAGS
18113 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18114
18115 save_LIBS=$LIBS
18116 LIBS="$lt_cv_dlopen_libs $LIBS"
18117
18118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18119 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18120 if ${lt_cv_dlopen_self+:} false; then :
18121 $as_echo_n "(cached) " >&6
18122 else
18123 if test yes = "$cross_compiling"; then :
18124 lt_cv_dlopen_self=cross
18125 else
18126 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18127 lt_status=$lt_dlunknown
18128 cat > conftest.$ac_ext <<_LT_EOF
18129 #line $LINENO "configure"
18130 #include "confdefs.h"
18131
18132 #if HAVE_DLFCN_H
18133 #include <dlfcn.h>
18134 #endif
18135
18136 #include <stdio.h>
18137
18138 #ifdef RTLD_GLOBAL
18139 # define LT_DLGLOBAL RTLD_GLOBAL
18140 #else
18141 # ifdef DL_GLOBAL
18142 # define LT_DLGLOBAL DL_GLOBAL
18143 # else
18144 # define LT_DLGLOBAL 0
18145 # endif
18146 #endif
18147
18148 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18149 find out it does not work in some platform. */
18150 #ifndef LT_DLLAZY_OR_NOW
18151 # ifdef RTLD_LAZY
18152 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18153 # else
18154 # ifdef DL_LAZY
18155 # define LT_DLLAZY_OR_NOW DL_LAZY
18156 # else
18157 # ifdef RTLD_NOW
18158 # define LT_DLLAZY_OR_NOW RTLD_NOW
18159 # else
18160 # ifdef DL_NOW
18161 # define LT_DLLAZY_OR_NOW DL_NOW
18162 # else
18163 # define LT_DLLAZY_OR_NOW 0
18164 # endif
18165 # endif
18166 # endif
18167 # endif
18168 #endif
18169
18170 /* When -fvisibility=hidden is used, assume the code has been annotated
18171 correspondingly for the symbols needed. */
18172 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18173 int fnord () __attribute__((visibility("default")));
18174 #endif
18175
18176 int fnord () { return 42; }
18177 int main ()
18178 {
18179 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18180 int status = $lt_dlunknown;
18181
18182 if (self)
18183 {
18184 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18185 else
18186 {
18187 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18188 else puts (dlerror ());
18189 }
18190 /* dlclose (self); */
18191 }
18192 else
18193 puts (dlerror ());
18194
18195 return status;
18196 }
18197 _LT_EOF
18198 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18199 (eval $ac_link) 2>&5
18200 ac_status=$?
18201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18202 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
18203 (./conftest; exit; ) >&5 2>/dev/null
18204 lt_status=$?
18205 case x$lt_status in
18206 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18207 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18208 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18209 esac
18210 else :
18211 # compilation failed
18212 lt_cv_dlopen_self=no
18213 fi
18214 fi
18215 rm -fr conftest*
18216
18217
18218 fi
18219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18220 $as_echo "$lt_cv_dlopen_self" >&6; }
18221
18222 if test yes = "$lt_cv_dlopen_self"; then
18223 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18225 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18226 if ${lt_cv_dlopen_self_static+:} false; then :
18227 $as_echo_n "(cached) " >&6
18228 else
18229 if test yes = "$cross_compiling"; then :
18230 lt_cv_dlopen_self_static=cross
18231 else
18232 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18233 lt_status=$lt_dlunknown
18234 cat > conftest.$ac_ext <<_LT_EOF
18235 #line $LINENO "configure"
18236 #include "confdefs.h"
18237
18238 #if HAVE_DLFCN_H
18239 #include <dlfcn.h>
18240 #endif
18241
18242 #include <stdio.h>
18243
18244 #ifdef RTLD_GLOBAL
18245 # define LT_DLGLOBAL RTLD_GLOBAL
18246 #else
18247 # ifdef DL_GLOBAL
18248 # define LT_DLGLOBAL DL_GLOBAL
18249 # else
18250 # define LT_DLGLOBAL 0
18251 # endif
18252 #endif
18253
18254 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18255 find out it does not work in some platform. */
18256 #ifndef LT_DLLAZY_OR_NOW
18257 # ifdef RTLD_LAZY
18258 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18259 # else
18260 # ifdef DL_LAZY
18261 # define LT_DLLAZY_OR_NOW DL_LAZY
18262 # else
18263 # ifdef RTLD_NOW
18264 # define LT_DLLAZY_OR_NOW RTLD_NOW
18265 # else
18266 # ifdef DL_NOW
18267 # define LT_DLLAZY_OR_NOW DL_NOW
18268 # else
18269 # define LT_DLLAZY_OR_NOW 0
18270 # endif
18271 # endif
18272 # endif
18273 # endif
18274 #endif
18275
18276 /* When -fvisibility=hidden is used, assume the code has been annotated
18277 correspondingly for the symbols needed. */
18278 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18279 int fnord () __attribute__((visibility("default")));
18280 #endif
18281
18282 int fnord () { return 42; }
18283 int main ()
18284 {
18285 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18286 int status = $lt_dlunknown;
18287
18288 if (self)
18289 {
18290 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18291 else
18292 {
18293 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18294 else puts (dlerror ());
18295 }
18296 /* dlclose (self); */
18297 }
18298 else
18299 puts (dlerror ());
18300
18301 return status;
18302 }
18303 _LT_EOF
18304 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18305 (eval $ac_link) 2>&5
18306 ac_status=$?
18307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18308 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
18309 (./conftest; exit; ) >&5 2>/dev/null
18310 lt_status=$?
18311 case x$lt_status in
18312 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18313 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18314 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18315 esac
18316 else :
18317 # compilation failed
18318 lt_cv_dlopen_self_static=no
18319 fi
18320 fi
18321 rm -fr conftest*
18322
18323
18324 fi
18325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18326 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18327 fi
18328
18329 CPPFLAGS=$save_CPPFLAGS
18330 LDFLAGS=$save_LDFLAGS
18331 LIBS=$save_LIBS
18332 ;;
18333 esac
18334
18335 case $lt_cv_dlopen_self in
18336 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18337 *) enable_dlopen_self=unknown ;;
18338 esac
18339
18340 case $lt_cv_dlopen_self_static in
18341 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18342 *) enable_dlopen_self_static=unknown ;;
18343 esac
18344 fi
18345
18346
18347
18348
18349
18350
18351
18352
18353
18354
18355
18356
18357
18358
18359
18360
18361
18362 striplib=
18363 old_striplib=
18364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18365 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18366 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18367 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18368 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18370 $as_echo "yes" >&6; }
18371 else
18372 # FIXME - insert some real tests, host_os isn't really good enough
18373 case $host_os in
18374 darwin*)
18375 if test -n "$STRIP"; then
18376 striplib="$STRIP -x"
18377 old_striplib="$STRIP -S"
18378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18379 $as_echo "yes" >&6; }
18380 else
18381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18382 $as_echo "no" >&6; }
18383 fi
18384 ;;
18385 *)
18386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18387 $as_echo "no" >&6; }
18388 ;;
18389 esac
18390 fi
18391
18392
18393
18394
18395
18396
18397
18398
18399
18400
18401
18402
18403 # Report what library types will actually be built
18404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18405 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18407 $as_echo "$can_build_shared" >&6; }
18408
18409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18410 $as_echo_n "checking whether to build shared libraries... " >&6; }
18411 test no = "$can_build_shared" && enable_shared=no
18412
18413 # On AIX, shared libraries and static libraries use the same namespace, and
18414 # are all built from PIC.
18415 case $host_os in
18416 aix3*)
18417 test yes = "$enable_shared" && enable_static=no
18418 if test -n "$RANLIB"; then
18419 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18420 postinstall_cmds='$RANLIB $lib'
18421 fi
18422 ;;
18423
18424 aix[4-9]*)
18425 if test ia64 != "$host_cpu"; then
18426 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
18427 yes,aix,yes) ;; # shared object as lib.so file only
18428 yes,svr4,*) ;; # shared object as lib.so archive member only
18429 yes,*) enable_static=no ;; # shared object in lib.a archive as well
18430 esac
18431 fi
18432 ;;
18433 esac
18434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18435 $as_echo "$enable_shared" >&6; }
18436
18437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18438 $as_echo_n "checking whether to build static libraries... " >&6; }
18439 # Make sure either enable_shared or enable_static is yes.
18440 test yes = "$enable_shared" || enable_static=yes
18441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18442 $as_echo "$enable_static" >&6; }
18443
18444
18445
18446
18447 fi
18448 ac_ext=c
18449 ac_cpp='$CPP $CPPFLAGS'
18450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18453
18454 CC=$lt_save_CC
18455
18456
18457
18458
18459
18460
18461
18462
18463
18464
18465
18466
18467
18468
18469
18470 ac_config_commands="$ac_config_commands libtool"
18471
18472
18473
18474
18475 # Only expand once:
18476
18477
18478
18479
18480
18481 # Define a configure option for an alternate module directory
18482
18483 # Check whether --with-xorg-module-dir was given.
18484 if test "${with_xorg_module_dir+set}" = set; then :
18485 withval=$with_xorg_module_dir; moduledir="$withval"
18486 else
18487 moduledir="$libdir/xorg/modules"
18488 fi
18489
18490
18491 # Store the list of server defined optional extensions in REQUIRED_MODULES
18492
18493
18494 SAVE_CFLAGS="$CFLAGS"
18495 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18497 /* end confdefs.h. */
18498
18499 #include "xorg-server.h"
18500 #if !defined XV
18501 #error XV not defined
18502 #endif
18503
18504 int
18505 main ()
18506 {
18507
18508 ;
18509 return 0;
18510 }
18511 _ACEOF
18512 if ac_fn_c_try_compile "$LINENO"; then :
18513 _EXT_CHECK=yes
18514 else
18515 _EXT_CHECK=no
18516 fi
18517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18518 CFLAGS="$SAVE_CFLAGS"
18519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5
18520 $as_echo_n "checking if XV is defined... " >&6; }
18521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18522 $as_echo "$_EXT_CHECK" >&6; }
18523 if test "$_EXT_CHECK" != no; then
18524 REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
18525 fi
18526
18527
18528
18529 SAVE_CFLAGS="$CFLAGS"
18530 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18532 /* end confdefs.h. */
18533
18534 #include "xorg-server.h"
18535 #if !defined DPMSExtension
18536 #error DPMSExtension not defined
18537 #endif
18538
18539 int
18540 main ()
18541 {
18542
18543 ;
18544 return 0;
18545 }
18546 _ACEOF
18547 if ac_fn_c_try_compile "$LINENO"; then :
18548 _EXT_CHECK=yes
18549 else
18550 _EXT_CHECK=no
18551 fi
18552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18553 CFLAGS="$SAVE_CFLAGS"
18554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
18555 $as_echo_n "checking if DPMSExtension is defined... " >&6; }
18556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18557 $as_echo "$_EXT_CHECK" >&6; }
18558 if test "$_EXT_CHECK" != no; then
18559 REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
18560 fi
18561
18562
18563 # Obtain compiler/linker options for the driver dependencies
18564
18565 pkg_failed=no
18566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
18567 $as_echo_n "checking for XORG... " >&6; }
18568
18569 if test -n "$XORG_CFLAGS"; then
18570 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
18571 elif test -n "$PKG_CONFIG"; then
18572 if test -n "$PKG_CONFIG" && \
18573 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
18574 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
18575 ac_status=$?
18576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18577 test $ac_status = 0; }; then
18578 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
18579 test "x$?" != "x0" && pkg_failed=yes
18580 else
18581 pkg_failed=yes
18582 fi
18583 else
18584 pkg_failed=untried
18585 fi
18586 if test -n "$XORG_LIBS"; then
18587 pkg_cv_XORG_LIBS="$XORG_LIBS"
18588 elif test -n "$PKG_CONFIG"; then
18589 if test -n "$PKG_CONFIG" && \
18590 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
18591 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
18592 ac_status=$?
18593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18594 test $ac_status = 0; }; then
18595 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
18596 test "x$?" != "x0" && pkg_failed=yes
18597 else
18598 pkg_failed=yes
18599 fi
18600 else
18601 pkg_failed=untried
18602 fi
18603
18604
18605
18606 if test $pkg_failed = yes; then
18607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18608 $as_echo "no" >&6; }
18609
18610 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18611 _pkg_short_errors_supported=yes
18612 else
18613 _pkg_short_errors_supported=no
18614 fi
18615 if test $_pkg_short_errors_supported = yes; then
18616 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
18617 else
18618 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
18619 fi
18620 # Put the nasty error message in config.log where it belongs
18621 echo "$XORG_PKG_ERRORS" >&5
18622
18623 as_fn_error $? "Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met:
18624
18625 $XORG_PKG_ERRORS
18626
18627 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18628 installed software in a non-standard prefix.
18629
18630 Alternatively, you may set the environment variables XORG_CFLAGS
18631 and XORG_LIBS to avoid the need to call pkg-config.
18632 See the pkg-config man page for more details." "$LINENO" 5
18633 elif test $pkg_failed = untried; then
18634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18635 $as_echo "no" >&6; }
18636 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18637 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18638 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18639 is in your PATH or set the PKG_CONFIG environment variable to the full
18640 path to pkg-config.
18641
18642 Alternatively, you may set the environment variables XORG_CFLAGS
18643 and XORG_LIBS to avoid the need to call pkg-config.
18644 See the pkg-config man page for more details.
18645
18646 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18647 See \`config.log' for more details" "$LINENO" 5; }
18648 else
18649 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
18650 XORG_LIBS=$pkg_cv_XORG_LIBS
18651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18652 $as_echo "yes" >&6; }
18653
18654 fi
18655
18656 pkg_failed=no
18657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
18658 $as_echo_n "checking for XEXT... " >&6; }
18659
18660 if test -n "$XEXT_CFLAGS"; then
18661 pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
18662 elif test -n "$PKG_CONFIG"; then
18663 if test -n "$PKG_CONFIG" && \
18664 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
18665 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
18666 ac_status=$?
18667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18668 test $ac_status = 0; }; then
18669 pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null`
18670 test "x$?" != "x0" && pkg_failed=yes
18671 else
18672 pkg_failed=yes
18673 fi
18674 else
18675 pkg_failed=untried
18676 fi
18677 if test -n "$XEXT_LIBS"; then
18678 pkg_cv_XEXT_LIBS="$XEXT_LIBS"
18679 elif test -n "$PKG_CONFIG"; then
18680 if test -n "$PKG_CONFIG" && \
18681 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
18682 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
18683 ac_status=$?
18684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18685 test $ac_status = 0; }; then
18686 pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null`
18687 test "x$?" != "x0" && pkg_failed=yes
18688 else
18689 pkg_failed=yes
18690 fi
18691 else
18692 pkg_failed=untried
18693 fi
18694
18695
18696
18697 if test $pkg_failed = yes; then
18698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18699 $as_echo "no" >&6; }
18700
18701 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18702 _pkg_short_errors_supported=yes
18703 else
18704 _pkg_short_errors_supported=no
18705 fi
18706 if test $_pkg_short_errors_supported = yes; then
18707 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1`
18708 else
18709 XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1`
18710 fi
18711 # Put the nasty error message in config.log where it belongs
18712 echo "$XEXT_PKG_ERRORS" >&5
18713
18714 HAVE_XEXTPROTO_71="no"
18715 elif test $pkg_failed = untried; then
18716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18717 $as_echo "no" >&6; }
18718 HAVE_XEXTPROTO_71="no"
18719 else
18720 XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
18721 XEXT_LIBS=$pkg_cv_XEXT_LIBS
18722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18723 $as_echo "yes" >&6; }
18724 HAVE_XEXTPROTO_71="yes";
18725 $as_echo "#define HAVE_XEXTPROTO_71 1" >>confdefs.h
18726
18727 fi
18728 if test "$HAVE_XEXTPROTO_71" = "yes" ; then
18729 HAVE_XEXTPROTO_71_TRUE=
18730 HAVE_XEXTPROTO_71_FALSE='#'
18731 else
18732 HAVE_XEXTPROTO_71_TRUE='#'
18733 HAVE_XEXTPROTO_71_FALSE=
18734 fi
18735
18736
18737 # Checks for libraries.
18738 SAVE_CPPFLAGS="$CPPFLAGS"
18739 CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
18740 ac_fn_c_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\"
18741 "
18742 if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes; then :
18743 XSERVER_LIBPCIACCESS=yes
18744 else
18745 XSERVER_LIBPCIACCESS=no
18746 fi
18747
18748 ac_fn_c_check_header_compile "$LINENO" "xf86Modes.h" "ac_cv_header_xf86Modes_h" "#include \"xorg-server.h\"
18749 "
18750 if test "x$ac_cv_header_xf86Modes_h" = xyes; then :
18751 XMODES=yes
18752 else
18753 XMODES=no
18754 fi
18755
18756
18757 CPPFLAGS="$SAVE_CPPFLAGS"
18758
18759 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
18760
18761 pkg_failed=no
18762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
18763 $as_echo_n "checking for PCIACCESS... " >&6; }
18764
18765 if test -n "$PCIACCESS_CFLAGS"; then
18766 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
18767 elif test -n "$PKG_CONFIG"; then
18768 if test -n "$PKG_CONFIG" && \
18769 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
18770 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
18771 ac_status=$?
18772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18773 test $ac_status = 0; }; then
18774 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null`
18775 test "x$?" != "x0" && pkg_failed=yes
18776 else
18777 pkg_failed=yes
18778 fi
18779 else
18780 pkg_failed=untried
18781 fi
18782 if test -n "$PCIACCESS_LIBS"; then
18783 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
18784 elif test -n "$PKG_CONFIG"; then
18785 if test -n "$PKG_CONFIG" && \
18786 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
18787 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
18788 ac_status=$?
18789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18790 test $ac_status = 0; }; then
18791 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null`
18792 test "x$?" != "x0" && pkg_failed=yes
18793 else
18794 pkg_failed=yes
18795 fi
18796 else
18797 pkg_failed=untried
18798 fi
18799
18800
18801
18802 if test $pkg_failed = yes; then
18803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18804 $as_echo "no" >&6; }
18805
18806 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18807 _pkg_short_errors_supported=yes
18808 else
18809 _pkg_short_errors_supported=no
18810 fi
18811 if test $_pkg_short_errors_supported = yes; then
18812 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1`
18813 else
18814 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1`
18815 fi
18816 # Put the nasty error message in config.log where it belongs
18817 echo "$PCIACCESS_PKG_ERRORS" >&5
18818
18819 as_fn_error $? "Package requirements (pciaccess >= 0.8.0) were not met:
18820
18821 $PCIACCESS_PKG_ERRORS
18822
18823 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18824 installed software in a non-standard prefix.
18825
18826 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
18827 and PCIACCESS_LIBS to avoid the need to call pkg-config.
18828 See the pkg-config man page for more details." "$LINENO" 5
18829 elif test $pkg_failed = untried; then
18830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18831 $as_echo "no" >&6; }
18832 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18833 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18834 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18835 is in your PATH or set the PKG_CONFIG environment variable to the full
18836 path to pkg-config.
18837
18838 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
18839 and PCIACCESS_LIBS to avoid the need to call pkg-config.
18840 See the pkg-config man page for more details.
18841
18842 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18843 See \`config.log' for more details" "$LINENO" 5; }
18844 else
18845 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
18846 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
18847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18848 $as_echo "yes" >&6; }
18849
18850 fi
18851 fi
18852 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
18853 XSERVER_LIBPCIACCESS_TRUE=
18854 XSERVER_LIBPCIACCESS_FALSE='#'
18855 else
18856 XSERVER_LIBPCIACCESS_TRUE='#'
18857 XSERVER_LIBPCIACCESS_FALSE=
18858 fi
18859
18860 if test "x$XMODES" = xyes; then
18861 XMODES_TRUE=
18862 XMODES_FALSE='#'
18863 else
18864 XMODES_TRUE='#'
18865 XMODES_FALSE=
18866 fi
18867
18868
18869 if test "x$XMODES" = xyes; then
18870
18871 $as_echo "#define HAVE_XMODES 1" >>confdefs.h
18872
18873 fi
18874 # Check whether --enable-xaa was given.
18875 if test "${enable_xaa+set}" = set; then :
18876 enableval=$enable_xaa; XAA="$enableval"
18877 else
18878 XAA=auto
18879 fi
18880
18881 if test "x$XAA" != xno; then
18882 save_CFLAGS=$CFLAGS
18883 save_CPPFLAGS=$CPPFLAGS
18884 CFLAGS=$XORG_CFLAGS
18885 CPPFLAGS="$XORG_CFLAGS"
18886 for ac_header in xaa.h
18887 do :
18888 ac_fn_c_check_header_mongrel "$LINENO" "xaa.h" "ac_cv_header_xaa_h" "$ac_includes_default"
18889 if test "x$ac_cv_header_xaa_h" = xyes; then :
18890 cat >>confdefs.h <<_ACEOF
18891 #define HAVE_XAA_H 1
18892 _ACEOF
18893 XAA=yes
18894 else
18895 XAA=no
18896 fi
18897
18898 done
18899
18900 CFLAGS=$save_CFLAGS
18901 CPPFLAGS=$save_CPPFLAGS
18902 fi
18903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include XAA support" >&5
18904 $as_echo_n "checking whether to include XAA support... " >&6; }
18905 if test "x$XAA" = xyes; then
18906 XAA_TRUE=
18907 XAA_FALSE='#'
18908 else
18909 XAA_TRUE='#'
18910 XAA_FALSE=
18911 fi
18912
18913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XAA" >&5
18914 $as_echo "$XAA" >&6; }
18915
18916
18917
18918 DRIVER_NAME=siliconmotion
18919
18920
18921 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
18922
18923 cat >confcache <<\_ACEOF
18924 # This file is a shell script that caches the results of configure
18925 # tests run on this system so they can be shared between configure
18926 # scripts and configure runs, see configure's option --config-cache.
18927 # It is not useful on other systems. If it contains results you don't
18928 # want to keep, you may remove or edit it.
18929 #
18930 # config.status only pays attention to the cache file if you give it
18931 # the --recheck option to rerun configure.
18932 #
18933 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18934 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18935 # following values.
18936
18937 _ACEOF
18938
18939 # The following way of writing the cache mishandles newlines in values,
18940 # but we know of no workaround that is simple, portable, and efficient.
18941 # So, we kill variables containing newlines.
18942 # Ultrix sh set writes to stderr and can't be redirected directly,
18943 # and sets the high bit in the cache file unless we assign to the vars.
18944 (
18945 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18946 eval ac_val=\$$ac_var
18947 case $ac_val in #(
18948 *${as_nl}*)
18949 case $ac_var in #(
18950 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18951 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18952 esac
18953 case $ac_var in #(
18954 _ | IFS | as_nl) ;; #(
18955 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18956 *) { eval $ac_var=; unset $ac_var;} ;;
18957 esac ;;
18958 esac
18959 done
18960
18961 (set) 2>&1 |
18962 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18963 *${as_nl}ac_space=\ *)
18964 # `set' does not quote correctly, so add quotes: double-quote
18965 # substitution turns \\\\ into \\, and sed turns \\ into \.
18966 sed -n \
18967 "s/'/'\\\\''/g;
18968 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18969 ;; #(
18970 *)
18971 # `set' quotes correctly as required by POSIX, so do not add quotes.
18972 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18973 ;;
18974 esac |
18975 sort
18976 ) |
18977 sed '
18978 /^ac_cv_env_/b end
18979 t clear
18980 :clear
18981 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18982 t end
18983 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18984 :end' >>confcache
18985 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18986 if test -w "$cache_file"; then
18987 if test "x$cache_file" != "x/dev/null"; then
18988 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18989 $as_echo "$as_me: updating cache $cache_file" >&6;}
18990 if test ! -f "$cache_file" || test -h "$cache_file"; then
18991 cat confcache >"$cache_file"
18992 else
18993 case $cache_file in #(
18994 */* | ?:*)
18995 mv -f confcache "$cache_file"$$ &&
18996 mv -f "$cache_file"$$ "$cache_file" ;; #(
18997 *)
18998 mv -f confcache "$cache_file" ;;
18999 esac
19000 fi
19001 fi
19002 else
19003 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19004 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19005 fi
19006 fi
19007 rm -f confcache
19008
19009 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19010 # Let make expand exec_prefix.
19011 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19012
19013 DEFS=-DHAVE_CONFIG_H
19014
19015 ac_libobjs=
19016 ac_ltlibobjs=
19017 U=
19018 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19019 # 1. Remove the extension, and $U if already installed.
19020 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19021 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19022 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19023 # will be set to the directory where LIBOBJS objects are built.
19024 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19025 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19026 done
19027 LIBOBJS=$ac_libobjs
19028
19029 LTLIBOBJS=$ac_ltlibobjs
19030
19031
19032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19033 $as_echo_n "checking that generated files are newer than configure... " >&6; }
19034 if test -n "$am_sleep_pid"; then
19035 # Hide warnings about reused PIDs.
19036 wait $am_sleep_pid 2>/dev/null
19037 fi
19038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19039 $as_echo "done" >&6; }
19040 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19041 as_fn_error $? "conditional \"AMDEP\" was never defined.
19042 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19043 fi
19044 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19045 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19046 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19047 fi
19048 if test -n "$EXEEXT"; then
19049 am__EXEEXT_TRUE=
19050 am__EXEEXT_FALSE='#'
19051 else
19052 am__EXEEXT_TRUE='#'
19053 am__EXEEXT_FALSE=
19054 fi
19055
19056 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19057 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
19058 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19059 fi
19060 if test -z "${HAVE_XEXTPROTO_71_TRUE}" && test -z "${HAVE_XEXTPROTO_71_FALSE}"; then
19061 as_fn_error $? "conditional \"HAVE_XEXTPROTO_71\" was never defined.
19062 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19063 fi
19064 if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then
19065 as_fn_error $? "conditional \"XSERVER_LIBPCIACCESS\" was never defined.
19066 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19067 fi
19068 if test -z "${XMODES_TRUE}" && test -z "${XMODES_FALSE}"; then
19069 as_fn_error $? "conditional \"XMODES\" was never defined.
19070 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19071 fi
19072 if test -z "${XAA_TRUE}" && test -z "${XAA_FALSE}"; then
19073 as_fn_error $? "conditional \"XAA\" was never defined.
19074 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19075 fi
19076
19077 : "${CONFIG_STATUS=./config.status}"
19078 ac_write_fail=0
19079 ac_clean_files_save=$ac_clean_files
19080 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19081 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19082 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19083 as_write_fail=0
19084 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19085 #! $SHELL
19086 # Generated by $as_me.
19087 # Run this file to recreate the current configuration.
19088 # Compiler output produced by configure, useful for debugging
19089 # configure, is in config.log if it exists.
19090
19091 debug=false
19092 ac_cs_recheck=false
19093 ac_cs_silent=false
19094
19095 SHELL=\${CONFIG_SHELL-$SHELL}
19096 export SHELL
19097 _ASEOF
19098 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19099 ## -------------------- ##
19100 ## M4sh Initialization. ##
19101 ## -------------------- ##
19102
19103 # Be more Bourne compatible
19104 DUALCASE=1; export DUALCASE # for MKS sh
19105 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19106 emulate sh
19107 NULLCMD=:
19108 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19109 # is contrary to our usage. Disable this feature.
19110 alias -g '${1+"$@"}'='"$@"'
19111 setopt NO_GLOB_SUBST
19112 else
19113 case `(set -o) 2>/dev/null` in #(
19114 *posix*) :
19115 set -o posix ;; #(
19116 *) :
19117 ;;
19118 esac
19119 fi
19120
19121
19122 as_nl='
19123 '
19124 export as_nl
19125 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19126 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19127 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19128 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19129 # Prefer a ksh shell builtin over an external printf program on Solaris,
19130 # but without wasting forks for bash or zsh.
19131 if test -z "$BASH_VERSION$ZSH_VERSION" \
19132 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19133 as_echo='print -r --'
19134 as_echo_n='print -rn --'
19135 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19136 as_echo='printf %s\n'
19137 as_echo_n='printf %s'
19138 else
19139 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19140 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19141 as_echo_n='/usr/ucb/echo -n'
19142 else
19143 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19144 as_echo_n_body='eval
19145 arg=$1;
19146 case $arg in #(
19147 *"$as_nl"*)
19148 expr "X$arg" : "X\\(.*\\)$as_nl";
19149 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19150 esac;
19151 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19152 '
19153 export as_echo_n_body
19154 as_echo_n='sh -c $as_echo_n_body as_echo'
19155 fi
19156 export as_echo_body
19157 as_echo='sh -c $as_echo_body as_echo'
19158 fi
19159
19160 # The user is always right.
19161 if test "${PATH_SEPARATOR+set}" != set; then
19162 PATH_SEPARATOR=:
19163 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19164 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19165 PATH_SEPARATOR=';'
19166 }
19167 fi
19168
19169
19170 # IFS
19171 # We need space, tab and new line, in precisely that order. Quoting is
19172 # there to prevent editors from complaining about space-tab.
19173 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19174 # splitting by setting IFS to empty value.)
19175 IFS=" "" $as_nl"
19176
19177 # Find who we are. Look in the path if we contain no directory separator.
19178 as_myself=
19179 case $0 in #((
19180 *[\\/]* ) as_myself=$0 ;;
19181 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19182 for as_dir in $PATH
19183 do
19184 IFS=$as_save_IFS
19185 test -z "$as_dir" && as_dir=.
19186 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19187 done
19188 IFS=$as_save_IFS
19189
19190 ;;
19191 esac
19192 # We did not find ourselves, most probably we were run as `sh COMMAND'
19193 # in which case we are not to be found in the path.
19194 if test "x$as_myself" = x; then
19195 as_myself=$0
19196 fi
19197 if test ! -f "$as_myself"; then
19198 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19199 exit 1
19200 fi
19201
19202 # Unset variables that we do not need and which cause bugs (e.g. in
19203 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19204 # suppresses any "Segmentation fault" message there. '((' could
19205 # trigger a bug in pdksh 5.2.14.
19206 for as_var in BASH_ENV ENV MAIL MAILPATH
19207 do eval test x\${$as_var+set} = xset \
19208 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19209 done
19210 PS1='$ '
19211 PS2='> '
19212 PS4='+ '
19213
19214 # NLS nuisances.
19215 LC_ALL=C
19216 export LC_ALL
19217 LANGUAGE=C
19218 export LANGUAGE
19219
19220 # CDPATH.
19221 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19222
19223
19224 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19225 # ----------------------------------------
19226 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19227 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19228 # script with STATUS, using 1 if that was 0.
19229 as_fn_error ()
19230 {
19231 as_status=$1; test $as_status -eq 0 && as_status=1
19232 if test "$4"; then
19233 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19234 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19235 fi
19236 $as_echo "$as_me: error: $2" >&2
19237 as_fn_exit $as_status
19238 } # as_fn_error
19239
19240
19241 # as_fn_set_status STATUS
19242 # -----------------------
19243 # Set $? to STATUS, without forking.
19244 as_fn_set_status ()
19245 {
19246 return $1
19247 } # as_fn_set_status
19248
19249 # as_fn_exit STATUS
19250 # -----------------
19251 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19252 as_fn_exit ()
19253 {
19254 set +e
19255 as_fn_set_status $1
19256 exit $1
19257 } # as_fn_exit
19258
19259 # as_fn_unset VAR
19260 # ---------------
19261 # Portably unset VAR.
19262 as_fn_unset ()
19263 {
19264 { eval $1=; unset $1;}
19265 }
19266 as_unset=as_fn_unset
19267 # as_fn_append VAR VALUE
19268 # ----------------------
19269 # Append the text in VALUE to the end of the definition contained in VAR. Take
19270 # advantage of any shell optimizations that allow amortized linear growth over
19271 # repeated appends, instead of the typical quadratic growth present in naive
19272 # implementations.
19273 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19274 eval 'as_fn_append ()
19275 {
19276 eval $1+=\$2
19277 }'
19278 else
19279 as_fn_append ()
19280 {
19281 eval $1=\$$1\$2
19282 }
19283 fi # as_fn_append
19284
19285 # as_fn_arith ARG...
19286 # ------------------
19287 # Perform arithmetic evaluation on the ARGs, and store the result in the
19288 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19289 # must be portable across $(()) and expr.
19290 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19291 eval 'as_fn_arith ()
19292 {
19293 as_val=$(( $* ))
19294 }'
19295 else
19296 as_fn_arith ()
19297 {
19298 as_val=`expr "$@" || test $? -eq 1`
19299 }
19300 fi # as_fn_arith
19301
19302
19303 if expr a : '\(a\)' >/dev/null 2>&1 &&
19304 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19305 as_expr=expr
19306 else
19307 as_expr=false
19308 fi
19309
19310 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19311 as_basename=basename
19312 else
19313 as_basename=false
19314 fi
19315
19316 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19317 as_dirname=dirname
19318 else
19319 as_dirname=false
19320 fi
19321
19322 as_me=`$as_basename -- "$0" ||
19323 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19324 X"$0" : 'X\(//\)$' \| \
19325 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19326 $as_echo X/"$0" |
19327 sed '/^.*\/\([^/][^/]*\)\/*$/{
19328 s//\1/
19329 q
19330 }
19331 /^X\/\(\/\/\)$/{
19332 s//\1/
19333 q
19334 }
19335 /^X\/\(\/\).*/{
19336 s//\1/
19337 q
19338 }
19339 s/.*/./; q'`
19340
19341 # Avoid depending upon Character Ranges.
19342 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19343 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19344 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19345 as_cr_digits='0123456789'
19346 as_cr_alnum=$as_cr_Letters$as_cr_digits
19347
19348 ECHO_C= ECHO_N= ECHO_T=
19349 case `echo -n x` in #(((((
19350 -n*)
19351 case `echo 'xy\c'` in
19352 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19353 xy) ECHO_C='\c';;
19354 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19355 ECHO_T=' ';;
19356 esac;;
19357 *)
19358 ECHO_N='-n';;
19359 esac
19360
19361 rm -f conf$$ conf$$.exe conf$$.file
19362 if test -d conf$$.dir; then
19363 rm -f conf$$.dir/conf$$.file
19364 else
19365 rm -f conf$$.dir
19366 mkdir conf$$.dir 2>/dev/null
19367 fi
19368 if (echo >conf$$.file) 2>/dev/null; then
19369 if ln -s conf$$.file conf$$ 2>/dev/null; then
19370 as_ln_s='ln -s'
19371 # ... but there are two gotchas:
19372 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19373 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19374 # In both cases, we have to default to `cp -pR'.
19375 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19376 as_ln_s='cp -pR'
19377 elif ln conf$$.file conf$$ 2>/dev/null; then
19378 as_ln_s=ln
19379 else
19380 as_ln_s='cp -pR'
19381 fi
19382 else
19383 as_ln_s='cp -pR'
19384 fi
19385 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19386 rmdir conf$$.dir 2>/dev/null
19387
19388
19389 # as_fn_mkdir_p
19390 # -------------
19391 # Create "$as_dir" as a directory, including parents if necessary.
19392 as_fn_mkdir_p ()
19393 {
19394
19395 case $as_dir in #(
19396 -*) as_dir=./$as_dir;;
19397 esac
19398 test -d "$as_dir" || eval $as_mkdir_p || {
19399 as_dirs=
19400 while :; do
19401 case $as_dir in #(
19402 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19403 *) as_qdir=$as_dir;;
19404 esac
19405 as_dirs="'$as_qdir' $as_dirs"
19406 as_dir=`$as_dirname -- "$as_dir" ||
19407 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19408 X"$as_dir" : 'X\(//\)[^/]' \| \
19409 X"$as_dir" : 'X\(//\)$' \| \
19410 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19411 $as_echo X"$as_dir" |
19412 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19413 s//\1/
19414 q
19415 }
19416 /^X\(\/\/\)[^/].*/{
19417 s//\1/
19418 q
19419 }
19420 /^X\(\/\/\)$/{
19421 s//\1/
19422 q
19423 }
19424 /^X\(\/\).*/{
19425 s//\1/
19426 q
19427 }
19428 s/.*/./; q'`
19429 test -d "$as_dir" && break
19430 done
19431 test -z "$as_dirs" || eval "mkdir $as_dirs"
19432 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19433
19434
19435 } # as_fn_mkdir_p
19436 if mkdir -p . 2>/dev/null; then
19437 as_mkdir_p='mkdir -p "$as_dir"'
19438 else
19439 test -d ./-p && rmdir ./-p
19440 as_mkdir_p=false
19441 fi
19442
19443
19444 # as_fn_executable_p FILE
19445 # -----------------------
19446 # Test if FILE is an executable regular file.
19447 as_fn_executable_p ()
19448 {
19449 test -f "$1" && test -x "$1"
19450 } # as_fn_executable_p
19451 as_test_x='test -x'
19452 as_executable_p=as_fn_executable_p
19453
19454 # Sed expression to map a string onto a valid CPP name.
19455 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19456
19457 # Sed expression to map a string onto a valid variable name.
19458 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19459
19460
19461 exec 6>&1
19462 ## ----------------------------------- ##
19463 ## Main body of $CONFIG_STATUS script. ##
19464 ## ----------------------------------- ##
19465 _ASEOF
19466 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19467
19468 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19469 # Save the log message, to keep $0 and so on meaningful, and to
19470 # report actual input values of CONFIG_FILES etc. instead of their
19471 # values after options handling.
19472 ac_log="
19473 This file was extended by xf86-video-siliconmotion $as_me 1.7.9, which was
19474 generated by GNU Autoconf 2.69. Invocation command line was
19475
19476 CONFIG_FILES = $CONFIG_FILES
19477 CONFIG_HEADERS = $CONFIG_HEADERS
19478 CONFIG_LINKS = $CONFIG_LINKS
19479 CONFIG_COMMANDS = $CONFIG_COMMANDS
19480 $ $0 $@
19481
19482 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19483 "
19484
19485 _ACEOF
19486
19487 case $ac_config_files in *"
19488 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19489 esac
19490
19491 case $ac_config_headers in *"
19492 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19493 esac
19494
19495
19496 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19497 # Files that config.status was made for.
19498 config_files="$ac_config_files"
19499 config_headers="$ac_config_headers"
19500 config_commands="$ac_config_commands"
19501
19502 _ACEOF
19503
19504 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19505 ac_cs_usage="\
19506 \`$as_me' instantiates files and other configuration actions
19507 from templates according to the current configuration. Unless the files
19508 and actions are specified as TAGs, all are instantiated by default.
19509
19510 Usage: $0 [OPTION]... [TAG]...
19511
19512 -h, --help print this help, then exit
19513 -V, --version print version number and configuration settings, then exit
19514 --config print configuration, then exit
19515 -q, --quiet, --silent
19516 do not print progress messages
19517 -d, --debug don't remove temporary files
19518 --recheck update $as_me by reconfiguring in the same conditions
19519 --file=FILE[:TEMPLATE]
19520 instantiate the configuration file FILE
19521 --header=FILE[:TEMPLATE]
19522 instantiate the configuration header FILE
19523
19524 Configuration files:
19525 $config_files
19526
19527 Configuration headers:
19528 $config_headers
19529
19530 Configuration commands:
19531 $config_commands
19532
19533 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/siliconmotion>."
19534
19535 _ACEOF
19536 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19537 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19538 ac_cs_version="\\
19539 xf86-video-siliconmotion config.status 1.7.9
19540 configured by $0, generated by GNU Autoconf 2.69,
19541 with options \\"\$ac_cs_config\\"
19542
19543 Copyright (C) 2012 Free Software Foundation, Inc.
19544 This config.status script is free software; the Free Software Foundation
19545 gives unlimited permission to copy, distribute and modify it."
19546
19547 ac_pwd='$ac_pwd'
19548 srcdir='$srcdir'
19549 INSTALL='$INSTALL'
19550 MKDIR_P='$MKDIR_P'
19551 AWK='$AWK'
19552 test -n "\$AWK" || AWK=awk
19553 _ACEOF
19554
19555 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19556 # The default lists apply if the user does not specify any file.
19557 ac_need_defaults=:
19558 while test $# != 0
19559 do
19560 case $1 in
19561 --*=?*)
19562 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19563 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19564 ac_shift=:
19565 ;;
19566 --*=)
19567 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19568 ac_optarg=
19569 ac_shift=:
19570 ;;
19571 *)
19572 ac_option=$1
19573 ac_optarg=$2
19574 ac_shift=shift
19575 ;;
19576 esac
19577
19578 case $ac_option in
19579 # Handling of the options.
19580 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19581 ac_cs_recheck=: ;;
19582 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19583 $as_echo "$ac_cs_version"; exit ;;
19584 --config | --confi | --conf | --con | --co | --c )
19585 $as_echo "$ac_cs_config"; exit ;;
19586 --debug | --debu | --deb | --de | --d | -d )
19587 debug=: ;;
19588 --file | --fil | --fi | --f )
19589 $ac_shift
19590 case $ac_optarg in
19591 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19592 '') as_fn_error $? "missing file argument" ;;
19593 esac
19594 as_fn_append CONFIG_FILES " '$ac_optarg'"
19595 ac_need_defaults=false;;
19596 --header | --heade | --head | --hea )
19597 $ac_shift
19598 case $ac_optarg in
19599 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19600 esac
19601 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19602 ac_need_defaults=false;;
19603 --he | --h)
19604 # Conflict between --help and --header
19605 as_fn_error $? "ambiguous option: \`$1'
19606 Try \`$0 --help' for more information.";;
19607 --help | --hel | -h )
19608 $as_echo "$ac_cs_usage"; exit ;;
19609 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19610 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19611 ac_cs_silent=: ;;
19612
19613 # This is an error.
19614 -*) as_fn_error $? "unrecognized option: \`$1'
19615 Try \`$0 --help' for more information." ;;
19616
19617 *) as_fn_append ac_config_targets " $1"
19618 ac_need_defaults=false ;;
19619
19620 esac
19621 shift
19622 done
19623
19624 ac_configure_extra_args=
19625
19626 if $ac_cs_silent; then
19627 exec 6>/dev/null
19628 ac_configure_extra_args="$ac_configure_extra_args --silent"
19629 fi
19630
19631 _ACEOF
19632 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19633 if \$ac_cs_recheck; then
19634 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19635 shift
19636 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19637 CONFIG_SHELL='$SHELL'
19638 export CONFIG_SHELL
19639 exec "\$@"
19640 fi
19641
19642 _ACEOF
19643 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19644 exec 5>>config.log
19645 {
19646 echo
19647 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19648 ## Running $as_me. ##
19649 _ASBOX
19650 $as_echo "$ac_log"
19651 } >&5
19652
19653 _ACEOF
19654 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19655 #
19656 # INIT-COMMANDS
19657 #
19658 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19659
19660
19661 # The HP-UX ksh and POSIX shell print the target directory to stdout
19662 # if CDPATH is set.
19663 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19664
19665 sed_quote_subst='$sed_quote_subst'
19666 double_quote_subst='$double_quote_subst'
19667 delay_variable_subst='$delay_variable_subst'
19668 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19669 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19670 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19671 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19672 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19673 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19674 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
19675 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19676 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19677 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19678 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19679 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19680 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19681 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19682 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19683 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19684 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19685 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19686 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19687 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19688 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19689 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19690 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19691 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19692 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19693 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19694 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19695 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19696 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19697 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19698 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19699 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19700 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19701 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19702 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19703 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19704 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19705 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19706 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19707 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19708 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19709 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19710 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19711 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19712 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19713 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19714 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19715 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19716 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19717 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19718 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19719 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19720 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19721 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19722 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19723 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19724 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
19725 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19726 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"`'
19727 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
19728 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19729 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19730 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
19731 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19732 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19733 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19734 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19735 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19736 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19737 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19738 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19739 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19740 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19741 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19742 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19743 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19744 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19745 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19746 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19747 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19748 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19749 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19750 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19751 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19752 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19753 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19754 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19755 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19756 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19757 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19758 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19759 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19760 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19761 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19762 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19763 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19764 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19765 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19766 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19767 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19768 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19769 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19770 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19771 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19772 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19773 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19774 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19775 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19776 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19777 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19778 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19779 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19780 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19781 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19782 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19783 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19784 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19785 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19786 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19787 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19788 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19789 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19790 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19791 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19792 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19793 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19794 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19795 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
19796 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
19797 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19798 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19799 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19800 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19801 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19802 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19803
19804 LTCC='$LTCC'
19805 LTCFLAGS='$LTCFLAGS'
19806 compiler='$compiler_DEFAULT'
19807
19808 # A function that is used when there is no print builtin or printf.
19809 func_fallback_echo ()
19810 {
19811 eval 'cat <<_LTECHO_EOF
19812 \$1
19813 _LTECHO_EOF'
19814 }
19815
19816 # Quote evaled strings.
19817 for var in SHELL \
19818 ECHO \
19819 PATH_SEPARATOR \
19820 SED \
19821 GREP \
19822 EGREP \
19823 FGREP \
19824 LD \
19825 NM \
19826 LN_S \
19827 lt_SP2NL \
19828 lt_NL2SP \
19829 reload_flag \
19830 OBJDUMP \
19831 deplibs_check_method \
19832 file_magic_cmd \
19833 file_magic_glob \
19834 want_nocaseglob \
19835 DLLTOOL \
19836 sharedlib_from_linklib_cmd \
19837 AR \
19838 AR_FLAGS \
19839 archiver_list_spec \
19840 STRIP \
19841 RANLIB \
19842 CC \
19843 CFLAGS \
19844 compiler \
19845 lt_cv_sys_global_symbol_pipe \
19846 lt_cv_sys_global_symbol_to_cdecl \
19847 lt_cv_sys_global_symbol_to_import \
19848 lt_cv_sys_global_symbol_to_c_name_address \
19849 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19850 lt_cv_nm_interface \
19851 nm_file_list_spec \
19852 lt_cv_truncate_bin \
19853 lt_prog_compiler_no_builtin_flag \
19854 lt_prog_compiler_pic \
19855 lt_prog_compiler_wl \
19856 lt_prog_compiler_static \
19857 lt_cv_prog_compiler_c_o \
19858 need_locks \
19859 MANIFEST_TOOL \
19860 DSYMUTIL \
19861 NMEDIT \
19862 LIPO \
19863 OTOOL \
19864 OTOOL64 \
19865 shrext_cmds \
19866 export_dynamic_flag_spec \
19867 whole_archive_flag_spec \
19868 compiler_needs_object \
19869 with_gnu_ld \
19870 allow_undefined_flag \
19871 no_undefined_flag \
19872 hardcode_libdir_flag_spec \
19873 hardcode_libdir_separator \
19874 exclude_expsyms \
19875 include_expsyms \
19876 file_list_spec \
19877 variables_saved_for_relink \
19878 libname_spec \
19879 library_names_spec \
19880 soname_spec \
19881 install_override_mode \
19882 finish_eval \
19883 old_striplib \
19884 striplib; do
19885 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19886 *[\\\\\\\`\\"\\\$]*)
19887 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19888 ;;
19889 *)
19890 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19891 ;;
19892 esac
19893 done
19894
19895 # Double-quote double-evaled strings.
19896 for var in reload_cmds \
19897 old_postinstall_cmds \
19898 old_postuninstall_cmds \
19899 old_archive_cmds \
19900 extract_expsyms_cmds \
19901 old_archive_from_new_cmds \
19902 old_archive_from_expsyms_cmds \
19903 archive_cmds \
19904 archive_expsym_cmds \
19905 module_cmds \
19906 module_expsym_cmds \
19907 export_symbols_cmds \
19908 prelink_cmds \
19909 postlink_cmds \
19910 postinstall_cmds \
19911 postuninstall_cmds \
19912 finish_cmds \
19913 sys_lib_search_path_spec \
19914 configure_time_dlsearch_path \
19915 configure_time_lt_sys_library_path; do
19916 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19917 *[\\\\\\\`\\"\\\$]*)
19918 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19919 ;;
19920 *)
19921 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19922 ;;
19923 esac
19924 done
19925
19926 ac_aux_dir='$ac_aux_dir'
19927
19928 # See if we are running on zsh, and set the options that allow our
19929 # commands through without removal of \ escapes INIT.
19930 if test -n "\${ZSH_VERSION+set}"; then
19931 setopt NO_GLOB_SUBST
19932 fi
19933
19934
19935 PACKAGE='$PACKAGE'
19936 VERSION='$VERSION'
19937 RM='$RM'
19938 ofile='$ofile'
19939
19940
19941
19942
19943 _ACEOF
19944
19945 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19946
19947 # Handling of arguments.
19948 for ac_config_target in $ac_config_targets
19949 do
19950 case $ac_config_target in
19951 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19952 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19953 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19954 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19955 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19956 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
19957
19958 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19959 esac
19960 done
19961
19962
19963 # If the user did not use the arguments to specify the items to instantiate,
19964 # then the envvar interface is used. Set only those that are not.
19965 # We use the long form for the default assignment because of an extremely
19966 # bizarre bug on SunOS 4.1.3.
19967 if $ac_need_defaults; then
19968 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19969 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19970 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19971 fi
19972
19973 # Have a temporary directory for convenience. Make it in the build tree
19974 # simply because there is no reason against having it here, and in addition,
19975 # creating and moving files from /tmp can sometimes cause problems.
19976 # Hook for its removal unless debugging.
19977 # Note that there is a small window in which the directory will not be cleaned:
19978 # after its creation but before its name has been assigned to `$tmp'.
19979 $debug ||
19980 {
19981 tmp= ac_tmp=
19982 trap 'exit_status=$?
19983 : "${ac_tmp:=$tmp}"
19984 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19985 ' 0
19986 trap 'as_fn_exit 1' 1 2 13 15
19987 }
19988 # Create a (secure) tmp directory for tmp files.
19989
19990 {
19991 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19992 test -d "$tmp"
19993 } ||
19994 {
19995 tmp=./conf$$-$RANDOM
19996 (umask 077 && mkdir "$tmp")
19997 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19998 ac_tmp=$tmp
19999
20000 # Set up the scripts for CONFIG_FILES section.
20001 # No need to generate them if there are no CONFIG_FILES.
20002 # This happens for instance with `./config.status config.h'.
20003 if test -n "$CONFIG_FILES"; then
20004
20005
20006 ac_cr=`echo X | tr X '\015'`
20007 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20008 # But we know of no other shell where ac_cr would be empty at this
20009 # point, so we can use a bashism as a fallback.
20010 if test "x$ac_cr" = x; then
20011 eval ac_cr=\$\'\\r\'
20012 fi
20013 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20014 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20015 ac_cs_awk_cr='\\r'
20016 else
20017 ac_cs_awk_cr=$ac_cr
20018 fi
20019
20020 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20021 _ACEOF
20022
20023
20024 {
20025 echo "cat >conf$$subs.awk <<_ACEOF" &&
20026 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20027 echo "_ACEOF"
20028 } >conf$$subs.sh ||
20029 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20030 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20031 ac_delim='%!_!# '
20032 for ac_last_try in false false false false false :; do
20033 . ./conf$$subs.sh ||
20034 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20035
20036 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20037 if test $ac_delim_n = $ac_delim_num; then
20038 break
20039 elif $ac_last_try; then
20040 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20041 else
20042 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20043 fi
20044 done
20045 rm -f conf$$subs.sh
20046
20047 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20048 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20049 _ACEOF
20050 sed -n '
20051 h
20052 s/^/S["/; s/!.*/"]=/
20053 p
20054 g
20055 s/^[^!]*!//
20056 :repl
20057 t repl
20058 s/'"$ac_delim"'$//
20059 t delim
20060 :nl
20061 h
20062 s/\(.\{148\}\)..*/\1/
20063 t more1
20064 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20065 p
20066 n
20067 b repl
20068 :more1
20069 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20070 p
20071 g
20072 s/.\{148\}//
20073 t nl
20074 :delim
20075 h
20076 s/\(.\{148\}\)..*/\1/
20077 t more2
20078 s/["\\]/\\&/g; s/^/"/; s/$/"/
20079 p
20080 b
20081 :more2
20082 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20083 p
20084 g
20085 s/.\{148\}//
20086 t delim
20087 ' <conf$$subs.awk | sed '
20088 /^[^""]/{
20089 N
20090 s/\n//
20091 }
20092 ' >>$CONFIG_STATUS || ac_write_fail=1
20093 rm -f conf$$subs.awk
20094 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20095 _ACAWK
20096 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20097 for (key in S) S_is_set[key] = 1
20098 FS = ""
20099
20100 }
20101 {
20102 line = $ 0
20103 nfields = split(line, field, "@")
20104 substed = 0
20105 len = length(field[1])
20106 for (i = 2; i < nfields; i++) {
20107 key = field[i]
20108 keylen = length(key)
20109 if (S_is_set[key]) {
20110 value = S[key]
20111 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20112 len += length(value) + length(field[++i])
20113 substed = 1
20114 } else
20115 len += 1 + keylen
20116 }
20117
20118 print line
20119 }
20120
20121 _ACAWK
20122 _ACEOF
20123 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20124 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20125 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20126 else
20127 cat
20128 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20129 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20130 _ACEOF
20131
20132 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20133 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20134 # trailing colons and then remove the whole line if VPATH becomes empty
20135 # (actually we leave an empty line to preserve line numbers).
20136 if test "x$srcdir" = x.; then
20137 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20138 h
20139 s///
20140 s/^/:/
20141 s/[ ]*$/:/
20142 s/:\$(srcdir):/:/g
20143 s/:\${srcdir}:/:/g
20144 s/:@srcdir@:/:/g
20145 s/^:*//
20146 s/:*$//
20147 x
20148 s/\(=[ ]*\).*/\1/
20149 G
20150 s/\n//
20151 s/^[^=]*=[ ]*$//
20152 }'
20153 fi
20154
20155 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20156 fi # test -n "$CONFIG_FILES"
20157
20158 # Set up the scripts for CONFIG_HEADERS section.
20159 # No need to generate them if there are no CONFIG_HEADERS.
20160 # This happens for instance with `./config.status Makefile'.
20161 if test -n "$CONFIG_HEADERS"; then
20162 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20163 BEGIN {
20164 _ACEOF
20165
20166 # Transform confdefs.h into an awk script `defines.awk', embedded as
20167 # here-document in config.status, that substitutes the proper values into
20168 # config.h.in to produce config.h.
20169
20170 # Create a delimiter string that does not exist in confdefs.h, to ease
20171 # handling of long lines.
20172 ac_delim='%!_!# '
20173 for ac_last_try in false false :; do
20174 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20175 if test -z "$ac_tt"; then
20176 break
20177 elif $ac_last_try; then
20178 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20179 else
20180 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20181 fi
20182 done
20183
20184 # For the awk script, D is an array of macro values keyed by name,
20185 # likewise P contains macro parameters if any. Preserve backslash
20186 # newline sequences.
20187
20188 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20189 sed -n '
20190 s/.\{148\}/&'"$ac_delim"'/g
20191 t rset
20192 :rset
20193 s/^[ ]*#[ ]*define[ ][ ]*/ /
20194 t def
20195 d
20196 :def
20197 s/\\$//
20198 t bsnl
20199 s/["\\]/\\&/g
20200 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20201 D["\1"]=" \3"/p
20202 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20203 d
20204 :bsnl
20205 s/["\\]/\\&/g
20206 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20207 D["\1"]=" \3\\\\\\n"\\/p
20208 t cont
20209 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20210 t cont
20211 d
20212 :cont
20213 n
20214 s/.\{148\}/&'"$ac_delim"'/g
20215 t clear
20216 :clear
20217 s/\\$//
20218 t bsnlc
20219 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20220 d
20221 :bsnlc
20222 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20223 b cont
20224 ' <confdefs.h | sed '
20225 s/'"$ac_delim"'/"\\\
20226 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20227
20228 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20229 for (key in D) D_is_set[key] = 1
20230 FS = ""
20231 }
20232 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20233 line = \$ 0
20234 split(line, arg, " ")
20235 if (arg[1] == "#") {
20236 defundef = arg[2]
20237 mac1 = arg[3]
20238 } else {
20239 defundef = substr(arg[1], 2)
20240 mac1 = arg[2]
20241 }
20242 split(mac1, mac2, "(") #)
20243 macro = mac2[1]
20244 prefix = substr(line, 1, index(line, defundef) - 1)
20245 if (D_is_set[macro]) {
20246 # Preserve the white space surrounding the "#".
20247 print prefix "define", macro P[macro] D[macro]
20248 next
20249 } else {
20250 # Replace #undef with comments. This is necessary, for example,
20251 # in the case of _POSIX_SOURCE, which is predefined and required
20252 # on some systems where configure will not decide to define it.
20253 if (defundef == "undef") {
20254 print "/*", prefix defundef, macro, "*/"
20255 next
20256 }
20257 }
20258 }
20259 { print }
20260 _ACAWK
20261 _ACEOF
20262 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20263 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20264 fi # test -n "$CONFIG_HEADERS"
20265
20266
20267 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20268 shift
20269 for ac_tag
20270 do
20271 case $ac_tag in
20272 :[FHLC]) ac_mode=$ac_tag; continue;;
20273 esac
20274 case $ac_mode$ac_tag in
20275 :[FHL]*:*);;
20276 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20277 :[FH]-) ac_tag=-:-;;
20278 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20279 esac
20280 ac_save_IFS=$IFS
20281 IFS=:
20282 set x $ac_tag
20283 IFS=$ac_save_IFS
20284 shift
20285 ac_file=$1
20286 shift
20287
20288 case $ac_mode in
20289 :L) ac_source=$1;;
20290 :[FH])
20291 ac_file_inputs=
20292 for ac_f
20293 do
20294 case $ac_f in
20295 -) ac_f="$ac_tmp/stdin";;
20296 *) # Look for the file first in the build tree, then in the source tree
20297 # (if the path is not absolute). The absolute path cannot be DOS-style,
20298 # because $ac_f cannot contain `:'.
20299 test -f "$ac_f" ||
20300 case $ac_f in
20301 [\\/$]*) false;;
20302 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20303 esac ||
20304 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20305 esac
20306 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20307 as_fn_append ac_file_inputs " '$ac_f'"
20308 done
20309
20310 # Let's still pretend it is `configure' which instantiates (i.e., don't
20311 # use $as_me), people would be surprised to read:
20312 # /* config.h. Generated by config.status. */
20313 configure_input='Generated from '`
20314 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20315 `' by configure.'
20316 if test x"$ac_file" != x-; then
20317 configure_input="$ac_file. $configure_input"
20318 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20319 $as_echo "$as_me: creating $ac_file" >&6;}
20320 fi
20321 # Neutralize special characters interpreted by sed in replacement strings.
20322 case $configure_input in #(
20323 *\&* | *\|* | *\\* )
20324 ac_sed_conf_input=`$as_echo "$configure_input" |
20325 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20326 *) ac_sed_conf_input=$configure_input;;
20327 esac
20328
20329 case $ac_tag in
20330 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20331 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20332 esac
20333 ;;
20334 esac
20335
20336 ac_dir=`$as_dirname -- "$ac_file" ||
20337 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20338 X"$ac_file" : 'X\(//\)[^/]' \| \
20339 X"$ac_file" : 'X\(//\)$' \| \
20340 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20341 $as_echo X"$ac_file" |
20342 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20343 s//\1/
20344 q
20345 }
20346 /^X\(\/\/\)[^/].*/{
20347 s//\1/
20348 q
20349 }
20350 /^X\(\/\/\)$/{
20351 s//\1/
20352 q
20353 }
20354 /^X\(\/\).*/{
20355 s//\1/
20356 q
20357 }
20358 s/.*/./; q'`
20359 as_dir="$ac_dir"; as_fn_mkdir_p
20360 ac_builddir=.
20361
20362 case "$ac_dir" in
20363 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20364 *)
20365 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20366 # A ".." for each directory in $ac_dir_suffix.
20367 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20368 case $ac_top_builddir_sub in
20369 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20370 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20371 esac ;;
20372 esac
20373 ac_abs_top_builddir=$ac_pwd
20374 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20375 # for backward compatibility:
20376 ac_top_builddir=$ac_top_build_prefix
20377
20378 case $srcdir in
20379 .) # We are building in place.
20380 ac_srcdir=.
20381 ac_top_srcdir=$ac_top_builddir_sub
20382 ac_abs_top_srcdir=$ac_pwd ;;
20383 [\\/]* | ?:[\\/]* ) # Absolute name.
20384 ac_srcdir=$srcdir$ac_dir_suffix;
20385 ac_top_srcdir=$srcdir
20386 ac_abs_top_srcdir=$srcdir ;;
20387 *) # Relative name.
20388 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20389 ac_top_srcdir=$ac_top_build_prefix$srcdir
20390 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20391 esac
20392 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20393
20394
20395 case $ac_mode in
20396 :F)
20397 #
20398 # CONFIG_FILE
20399 #
20400
20401 case $INSTALL in
20402 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20403 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20404 esac
20405 ac_MKDIR_P=$MKDIR_P
20406 case $MKDIR_P in
20407 [\\/$]* | ?:[\\/]* ) ;;
20408 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20409 esac
20410 _ACEOF
20411
20412 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20413 # If the template does not know about datarootdir, expand it.
20414 # FIXME: This hack should be removed a few years after 2.60.
20415 ac_datarootdir_hack=; ac_datarootdir_seen=
20416 ac_sed_dataroot='
20417 /datarootdir/ {
20418 p
20419 q
20420 }
20421 /@datadir@/p
20422 /@docdir@/p
20423 /@infodir@/p
20424 /@localedir@/p
20425 /@mandir@/p'
20426 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20427 *datarootdir*) ac_datarootdir_seen=yes;;
20428 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20430 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20431 _ACEOF
20432 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20433 ac_datarootdir_hack='
20434 s&@datadir@&$datadir&g
20435 s&@docdir@&$docdir&g
20436 s&@infodir@&$infodir&g
20437 s&@localedir@&$localedir&g
20438 s&@mandir@&$mandir&g
20439 s&\\\${datarootdir}&$datarootdir&g' ;;
20440 esac
20441 _ACEOF
20442
20443 # Neutralize VPATH when `$srcdir' = `.'.
20444 # Shell code in configure.ac might set extrasub.
20445 # FIXME: do we really want to maintain this feature?
20446 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20447 ac_sed_extra="$ac_vpsub
20448 $extrasub
20449 _ACEOF
20450 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20451 :t
20452 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20453 s|@configure_input@|$ac_sed_conf_input|;t t
20454 s&@top_builddir@&$ac_top_builddir_sub&;t t
20455 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20456 s&@srcdir@&$ac_srcdir&;t t
20457 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20458 s&@top_srcdir@&$ac_top_srcdir&;t t
20459 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20460 s&@builddir@&$ac_builddir&;t t
20461 s&@abs_builddir@&$ac_abs_builddir&;t t
20462 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20463 s&@INSTALL@&$ac_INSTALL&;t t
20464 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20465 $ac_datarootdir_hack
20466 "
20467 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20468 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20469
20470 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20471 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20472 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20473 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20475 which seems to be undefined. Please make sure it is defined" >&5
20476 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20477 which seems to be undefined. Please make sure it is defined" >&2;}
20478
20479 rm -f "$ac_tmp/stdin"
20480 case $ac_file in
20481 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20482 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20483 esac \
20484 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20485 ;;
20486 :H)
20487 #
20488 # CONFIG_HEADER
20489 #
20490 if test x"$ac_file" != x-; then
20491 {
20492 $as_echo "/* $configure_input */" \
20493 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20494 } >"$ac_tmp/config.h" \
20495 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20496 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20497 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20498 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20499 else
20500 rm -f "$ac_file"
20501 mv "$ac_tmp/config.h" "$ac_file" \
20502 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20503 fi
20504 else
20505 $as_echo "/* $configure_input */" \
20506 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20507 || as_fn_error $? "could not create -" "$LINENO" 5
20508 fi
20509 # Compute "$ac_file"'s index in $config_headers.
20510 _am_arg="$ac_file"
20511 _am_stamp_count=1
20512 for _am_header in $config_headers :; do
20513 case $_am_header in
20514 $_am_arg | $_am_arg:* )
20515 break ;;
20516 * )
20517 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20518 esac
20519 done
20520 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20521 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20522 X"$_am_arg" : 'X\(//\)[^/]' \| \
20523 X"$_am_arg" : 'X\(//\)$' \| \
20524 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20525 $as_echo X"$_am_arg" |
20526 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20527 s//\1/
20528 q
20529 }
20530 /^X\(\/\/\)[^/].*/{
20531 s//\1/
20532 q
20533 }
20534 /^X\(\/\/\)$/{
20535 s//\1/
20536 q
20537 }
20538 /^X\(\/\).*/{
20539 s//\1/
20540 q
20541 }
20542 s/.*/./; q'`/stamp-h$_am_stamp_count
20543 ;;
20544
20545 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20546 $as_echo "$as_me: executing $ac_file commands" >&6;}
20547 ;;
20548 esac
20549
20550
20551 case $ac_file$ac_mode in
20552 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20553 # Older Autoconf quotes --file arguments for eval, but not when files
20554 # are listed without --file. Let's play safe and only enable the eval
20555 # if we detect the quoting.
20556 case $CONFIG_FILES in
20557 *\'*) eval set x "$CONFIG_FILES" ;;
20558 *) set x $CONFIG_FILES ;;
20559 esac
20560 shift
20561 for mf
20562 do
20563 # Strip MF so we end up with the name of the file.
20564 mf=`echo "$mf" | sed -e 's/:.*$//'`
20565 # Check whether this is an Automake generated Makefile or not.
20566 # We used to match only the files named 'Makefile.in', but
20567 # some people rename them; so instead we look at the file content.
20568 # Grep'ing the first line is not enough: some people post-process
20569 # each Makefile.in and add a new line on top of each file to say so.
20570 # Grep'ing the whole file is not good either: AIX grep has a line
20571 # limit of 2048, but all sed's we know have understand at least 4000.
20572 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20573 dirpart=`$as_dirname -- "$mf" ||
20574 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20575 X"$mf" : 'X\(//\)[^/]' \| \
20576 X"$mf" : 'X\(//\)$' \| \
20577 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20578 $as_echo X"$mf" |
20579 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20580 s//\1/
20581 q
20582 }
20583 /^X\(\/\/\)[^/].*/{
20584 s//\1/
20585 q
20586 }
20587 /^X\(\/\/\)$/{
20588 s//\1/
20589 q
20590 }
20591 /^X\(\/\).*/{
20592 s//\1/
20593 q
20594 }
20595 s/.*/./; q'`
20596 else
20597 continue
20598 fi
20599 # Extract the definition of DEPDIR, am__include, and am__quote
20600 # from the Makefile without running 'make'.
20601 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20602 test -z "$DEPDIR" && continue
20603 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20604 test -z "$am__include" && continue
20605 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20606 # Find all dependency output files, they are included files with
20607 # $(DEPDIR) in their names. We invoke sed twice because it is the
20608 # simplest approach to changing $(DEPDIR) to its actual value in the
20609 # expansion.
20610 for file in `sed -n "
20611 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20612 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
20613 # Make sure the directory exists.
20614 test -f "$dirpart/$file" && continue
20615 fdir=`$as_dirname -- "$file" ||
20616 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20617 X"$file" : 'X\(//\)[^/]' \| \
20618 X"$file" : 'X\(//\)$' \| \
20619 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20620 $as_echo X"$file" |
20621 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20622 s//\1/
20623 q
20624 }
20625 /^X\(\/\/\)[^/].*/{
20626 s//\1/
20627 q
20628 }
20629 /^X\(\/\/\)$/{
20630 s//\1/
20631 q
20632 }
20633 /^X\(\/\).*/{
20634 s//\1/
20635 q
20636 }
20637 s/.*/./; q'`
20638 as_dir=$dirpart/$fdir; as_fn_mkdir_p
20639 # echo "creating $dirpart/$file"
20640 echo '# dummy' > "$dirpart/$file"
20641 done
20642 done
20643 }
20644 ;;
20645 "libtool":C)
20646
20647 # See if we are running on zsh, and set the options that allow our
20648 # commands through without removal of \ escapes.
20649 if test -n "${ZSH_VERSION+set}"; then
20650 setopt NO_GLOB_SUBST
20651 fi
20652
20653 cfgfile=${ofile}T
20654 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20655 $RM "$cfgfile"
20656
20657 cat <<_LT_EOF >> "$cfgfile"
20658 #! $SHELL
20659 # Generated automatically by $as_me ($PACKAGE) $VERSION
20660 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20661 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20662
20663 # Provide generalized library-building support services.
20664 # Written by Gordon Matzigkeit, 1996
20665
20666 # Copyright (C) 2014 Free Software Foundation, Inc.
20667 # This is free software; see the source for copying conditions. There is NO
20668 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20669
20670 # GNU Libtool is free software; you can redistribute it and/or modify
20671 # it under the terms of the GNU General Public License as published by
20672 # the Free Software Foundation; either version 2 of of the License, or
20673 # (at your option) any later version.
20674 #
20675 # As a special exception to the GNU General Public License, if you
20676 # distribute this file as part of a program or library that is built
20677 # using GNU Libtool, you may include this file under the same
20678 # distribution terms that you use for the rest of that program.
20679 #
20680 # GNU Libtool is distributed in the hope that it will be useful, but
20681 # WITHOUT ANY WARRANTY; without even the implied warranty of
20682 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20683 # GNU General Public License for more details.
20684 #
20685 # You should have received a copy of the GNU General Public License
20686 # along with this program. If not, see <http://www.gnu.org/licenses/>.
20687
20688
20689 # The names of the tagged configurations supported by this script.
20690 available_tags=''
20691
20692 # Configured defaults for sys_lib_dlsearch_path munging.
20693 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
20694
20695 # ### BEGIN LIBTOOL CONFIG
20696
20697 # Whether or not to build static libraries.
20698 build_old_libs=$enable_static
20699
20700 # Which release of libtool.m4 was used?
20701 macro_version=$macro_version
20702 macro_revision=$macro_revision
20703
20704 # Whether or not to build shared libraries.
20705 build_libtool_libs=$enable_shared
20706
20707 # What type of objects to build.
20708 pic_mode=$pic_mode
20709
20710 # Whether or not to optimize for fast installation.
20711 fast_install=$enable_fast_install
20712
20713 # Shared archive member basename,for filename based shared library versioning on AIX.
20714 shared_archive_member_spec=$shared_archive_member_spec
20715
20716 # Shell to use when invoking shell scripts.
20717 SHELL=$lt_SHELL
20718
20719 # An echo program that protects backslashes.
20720 ECHO=$lt_ECHO
20721
20722 # The PATH separator for the build system.
20723 PATH_SEPARATOR=$lt_PATH_SEPARATOR
20724
20725 # The host system.
20726 host_alias=$host_alias
20727 host=$host
20728 host_os=$host_os
20729
20730 # The build system.
20731 build_alias=$build_alias
20732 build=$build
20733 build_os=$build_os
20734
20735 # A sed program that does not truncate output.
20736 SED=$lt_SED
20737
20738 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20739 Xsed="\$SED -e 1s/^X//"
20740
20741 # A grep program that handles long lines.
20742 GREP=$lt_GREP
20743
20744 # An ERE matcher.
20745 EGREP=$lt_EGREP
20746
20747 # A literal string matcher.
20748 FGREP=$lt_FGREP
20749
20750 # A BSD- or MS-compatible name lister.
20751 NM=$lt_NM
20752
20753 # Whether we need soft or hard links.
20754 LN_S=$lt_LN_S
20755
20756 # What is the maximum length of a command?
20757 max_cmd_len=$max_cmd_len
20758
20759 # Object file suffix (normally "o").
20760 objext=$ac_objext
20761
20762 # Executable file suffix (normally "").
20763 exeext=$exeext
20764
20765 # whether the shell understands "unset".
20766 lt_unset=$lt_unset
20767
20768 # turn spaces into newlines.
20769 SP2NL=$lt_lt_SP2NL
20770
20771 # turn newlines into spaces.
20772 NL2SP=$lt_lt_NL2SP
20773
20774 # convert \$build file names to \$host format.
20775 to_host_file_cmd=$lt_cv_to_host_file_cmd
20776
20777 # convert \$build files to toolchain format.
20778 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20779
20780 # An object symbol dumper.
20781 OBJDUMP=$lt_OBJDUMP
20782
20783 # Method to check whether dependent libraries are shared objects.
20784 deplibs_check_method=$lt_deplibs_check_method
20785
20786 # Command to use when deplibs_check_method = "file_magic".
20787 file_magic_cmd=$lt_file_magic_cmd
20788
20789 # How to find potential files when deplibs_check_method = "file_magic".
20790 file_magic_glob=$lt_file_magic_glob
20791
20792 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20793 want_nocaseglob=$lt_want_nocaseglob
20794
20795 # DLL creation program.
20796 DLLTOOL=$lt_DLLTOOL
20797
20798 # Command to associate shared and link libraries.
20799 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20800
20801 # The archiver.
20802 AR=$lt_AR
20803
20804 # Flags to create an archive.
20805 AR_FLAGS=$lt_AR_FLAGS
20806
20807 # How to feed a file listing to the archiver.
20808 archiver_list_spec=$lt_archiver_list_spec
20809
20810 # A symbol stripping program.
20811 STRIP=$lt_STRIP
20812
20813 # Commands used to install an old-style archive.
20814 RANLIB=$lt_RANLIB
20815 old_postinstall_cmds=$lt_old_postinstall_cmds
20816 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20817
20818 # Whether to use a lock for old archive extraction.
20819 lock_old_archive_extraction=$lock_old_archive_extraction
20820
20821 # A C compiler.
20822 LTCC=$lt_CC
20823
20824 # LTCC compiler flags.
20825 LTCFLAGS=$lt_CFLAGS
20826
20827 # Take the output of nm and produce a listing of raw symbols and C names.
20828 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20829
20830 # Transform the output of nm in a proper C declaration.
20831 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20832
20833 # Transform the output of nm into a list of symbols to manually relocate.
20834 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
20835
20836 # Transform the output of nm in a C name address pair.
20837 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20838
20839 # Transform the output of nm in a C name address pair when lib prefix is needed.
20840 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20841
20842 # The name lister interface.
20843 nm_interface=$lt_lt_cv_nm_interface
20844
20845 # Specify filename containing input files for \$NM.
20846 nm_file_list_spec=$lt_nm_file_list_spec
20847
20848 # The root where to search for dependent libraries,and where our libraries should be installed.
20849 lt_sysroot=$lt_sysroot
20850
20851 # Command to truncate a binary pipe.
20852 lt_truncate_bin=$lt_lt_cv_truncate_bin
20853
20854 # The name of the directory that contains temporary libtool files.
20855 objdir=$objdir
20856
20857 # Used to examine libraries when file_magic_cmd begins with "file".
20858 MAGIC_CMD=$MAGIC_CMD
20859
20860 # Must we lock files when doing compilation?
20861 need_locks=$lt_need_locks
20862
20863 # Manifest tool.
20864 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20865
20866 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20867 DSYMUTIL=$lt_DSYMUTIL
20868
20869 # Tool to change global to local symbols on Mac OS X.
20870 NMEDIT=$lt_NMEDIT
20871
20872 # Tool to manipulate fat objects and archives on Mac OS X.
20873 LIPO=$lt_LIPO
20874
20875 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20876 OTOOL=$lt_OTOOL
20877
20878 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20879 OTOOL64=$lt_OTOOL64
20880
20881 # Old archive suffix (normally "a").
20882 libext=$libext
20883
20884 # Shared library suffix (normally ".so").
20885 shrext_cmds=$lt_shrext_cmds
20886
20887 # The commands to extract the exported symbol list from a shared archive.
20888 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20889
20890 # Variables whose values should be saved in libtool wrapper scripts and
20891 # restored at link time.
20892 variables_saved_for_relink=$lt_variables_saved_for_relink
20893
20894 # Do we need the "lib" prefix for modules?
20895 need_lib_prefix=$need_lib_prefix
20896
20897 # Do we need a version for libraries?
20898 need_version=$need_version
20899
20900 # Library versioning type.
20901 version_type=$version_type
20902
20903 # Shared library runtime path variable.
20904 runpath_var=$runpath_var
20905
20906 # Shared library path variable.
20907 shlibpath_var=$shlibpath_var
20908
20909 # Is shlibpath searched before the hard-coded library search path?
20910 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20911
20912 # Format of library name prefix.
20913 libname_spec=$lt_libname_spec
20914
20915 # List of archive names. First name is the real one, the rest are links.
20916 # The last name is the one that the linker finds with -lNAME
20917 library_names_spec=$lt_library_names_spec
20918
20919 # The coded name of the library, if different from the real name.
20920 soname_spec=$lt_soname_spec
20921
20922 # Permission mode override for installation of shared libraries.
20923 install_override_mode=$lt_install_override_mode
20924
20925 # Command to use after installation of a shared archive.
20926 postinstall_cmds=$lt_postinstall_cmds
20927
20928 # Command to use after uninstallation of a shared archive.
20929 postuninstall_cmds=$lt_postuninstall_cmds
20930
20931 # Commands used to finish a libtool library installation in a directory.
20932 finish_cmds=$lt_finish_cmds
20933
20934 # As "finish_cmds", except a single script fragment to be evaled but
20935 # not shown.
20936 finish_eval=$lt_finish_eval
20937
20938 # Whether we should hardcode library paths into libraries.
20939 hardcode_into_libs=$hardcode_into_libs
20940
20941 # Compile-time system search path for libraries.
20942 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20943
20944 # Detected run-time system search path for libraries.
20945 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
20946
20947 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
20948 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
20949
20950 # Whether dlopen is supported.
20951 dlopen_support=$enable_dlopen
20952
20953 # Whether dlopen of programs is supported.
20954 dlopen_self=$enable_dlopen_self
20955
20956 # Whether dlopen of statically linked programs is supported.
20957 dlopen_self_static=$enable_dlopen_self_static
20958
20959 # Commands to strip libraries.
20960 old_striplib=$lt_old_striplib
20961 striplib=$lt_striplib
20962
20963
20964 # The linker used to build libraries.
20965 LD=$lt_LD
20966
20967 # How to create reloadable object files.
20968 reload_flag=$lt_reload_flag
20969 reload_cmds=$lt_reload_cmds
20970
20971 # Commands used to build an old-style archive.
20972 old_archive_cmds=$lt_old_archive_cmds
20973
20974 # A language specific compiler.
20975 CC=$lt_compiler
20976
20977 # Is the compiler the GNU compiler?
20978 with_gcc=$GCC
20979
20980 # Compiler flag to turn off builtin functions.
20981 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20982
20983 # Additional compiler flags for building library objects.
20984 pic_flag=$lt_lt_prog_compiler_pic
20985
20986 # How to pass a linker flag through the compiler.
20987 wl=$lt_lt_prog_compiler_wl
20988
20989 # Compiler flag to prevent dynamic linking.
20990 link_static_flag=$lt_lt_prog_compiler_static
20991
20992 # Does compiler simultaneously support -c and -o options?
20993 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20994
20995 # Whether or not to add -lc for building shared libraries.
20996 build_libtool_need_lc=$archive_cmds_need_lc
20997
20998 # Whether or not to disallow shared libs when runtime libs are static.
20999 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21000
21001 # Compiler flag to allow reflexive dlopens.
21002 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21003
21004 # Compiler flag to generate shared objects directly from archives.
21005 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21006
21007 # Whether the compiler copes with passing no objects directly.
21008 compiler_needs_object=$lt_compiler_needs_object
21009
21010 # Create an old-style archive from a shared archive.
21011 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21012
21013 # Create a temporary old-style archive to link instead of a shared archive.
21014 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21015
21016 # Commands used to build a shared archive.
21017 archive_cmds=$lt_archive_cmds
21018 archive_expsym_cmds=$lt_archive_expsym_cmds
21019
21020 # Commands used to build a loadable module if different from building
21021 # a shared archive.
21022 module_cmds=$lt_module_cmds
21023 module_expsym_cmds=$lt_module_expsym_cmds
21024
21025 # Whether we are building with GNU ld or not.
21026 with_gnu_ld=$lt_with_gnu_ld
21027
21028 # Flag that allows shared libraries with undefined symbols to be built.
21029 allow_undefined_flag=$lt_allow_undefined_flag
21030
21031 # Flag that enforces no undefined symbols.
21032 no_undefined_flag=$lt_no_undefined_flag
21033
21034 # Flag to hardcode \$libdir into a binary during linking.
21035 # This must work even if \$libdir does not exist
21036 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21037
21038 # Whether we need a single "-rpath" flag with a separated argument.
21039 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21040
21041 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21042 # DIR into the resulting binary.
21043 hardcode_direct=$hardcode_direct
21044
21045 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21046 # DIR into the resulting binary and the resulting library dependency is
21047 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
21048 # library is relocated.
21049 hardcode_direct_absolute=$hardcode_direct_absolute
21050
21051 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21052 # into the resulting binary.
21053 hardcode_minus_L=$hardcode_minus_L
21054
21055 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21056 # into the resulting binary.
21057 hardcode_shlibpath_var=$hardcode_shlibpath_var
21058
21059 # Set to "yes" if building a shared library automatically hardcodes DIR
21060 # into the library and all subsequent libraries and executables linked
21061 # against it.
21062 hardcode_automatic=$hardcode_automatic
21063
21064 # Set to yes if linker adds runtime paths of dependent libraries
21065 # to runtime path list.
21066 inherit_rpath=$inherit_rpath
21067
21068 # Whether libtool must link a program against all its dependency libraries.
21069 link_all_deplibs=$link_all_deplibs
21070
21071 # Set to "yes" if exported symbols are required.
21072 always_export_symbols=$always_export_symbols
21073
21074 # The commands to list exported symbols.
21075 export_symbols_cmds=$lt_export_symbols_cmds
21076
21077 # Symbols that should not be listed in the preloaded symbols.
21078 exclude_expsyms=$lt_exclude_expsyms
21079
21080 # Symbols that must always be exported.
21081 include_expsyms=$lt_include_expsyms
21082
21083 # Commands necessary for linking programs (against libraries) with templates.
21084 prelink_cmds=$lt_prelink_cmds
21085
21086 # Commands necessary for finishing linking programs.
21087 postlink_cmds=$lt_postlink_cmds
21088
21089 # Specify filename containing input files.
21090 file_list_spec=$lt_file_list_spec
21091
21092 # How to hardcode a shared library path into an executable.
21093 hardcode_action=$hardcode_action
21094
21095 # ### END LIBTOOL CONFIG
21096
21097 _LT_EOF
21098
21099 cat <<'_LT_EOF' >> "$cfgfile"
21100
21101 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
21102
21103 # func_munge_path_list VARIABLE PATH
21104 # -----------------------------------
21105 # VARIABLE is name of variable containing _space_ separated list of
21106 # directories to be munged by the contents of PATH, which is string
21107 # having a format:
21108 # "DIR[:DIR]:"
21109 # string "DIR[ DIR]" will be prepended to VARIABLE
21110 # ":DIR[:DIR]"
21111 # string "DIR[ DIR]" will be appended to VARIABLE
21112 # "DIRP[:DIRP]::[DIRA:]DIRA"
21113 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
21114 # "DIRA[ DIRA]" will be appended to VARIABLE
21115 # "DIR[:DIR]"
21116 # VARIABLE will be replaced by "DIR[ DIR]"
21117 func_munge_path_list ()
21118 {
21119 case x$2 in
21120 x)
21121 ;;
21122 *:)
21123 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
21124 ;;
21125 x:*)
21126 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
21127 ;;
21128 *::*)
21129 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
21130 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
21131 ;;
21132 *)
21133 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
21134 ;;
21135 esac
21136 }
21137
21138
21139 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
21140 func_cc_basename ()
21141 {
21142 for cc_temp in $*""; do
21143 case $cc_temp in
21144 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21145 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21146 \-*) ;;
21147 *) break;;
21148 esac
21149 done
21150 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
21151 }
21152
21153
21154 # ### END FUNCTIONS SHARED WITH CONFIGURE
21155
21156 _LT_EOF
21157
21158 case $host_os in
21159 aix3*)
21160 cat <<\_LT_EOF >> "$cfgfile"
21161 # AIX sometimes has problems with the GCC collect2 program. For some
21162 # reason, if we set the COLLECT_NAMES environment variable, the problems
21163 # vanish in a puff of smoke.
21164 if test set != "${COLLECT_NAMES+set}"; then
21165 COLLECT_NAMES=
21166 export COLLECT_NAMES
21167 fi
21168 _LT_EOF
21169 ;;
21170 esac
21171
21172
21173 ltmain=$ac_aux_dir/ltmain.sh
21174
21175
21176 # We use sed instead of cat because bash on DJGPP gets confused if
21177 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21178 # text mode, it properly converts lines to CR/LF. This bash problem
21179 # is reportedly fixed, but why not run on old versions too?
21180 sed '$q' "$ltmain" >> "$cfgfile" \
21181 || (rm -f "$cfgfile"; exit 1)
21182
21183 mv -f "$cfgfile" "$ofile" ||
21184 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21185 chmod +x "$ofile"
21186
21187 ;;
21188
21189 esac
21190 done # for ac_tag
21191
21192
21193 as_fn_exit 0
21194 _ACEOF
21195 ac_clean_files=$ac_clean_files_save
21196
21197 test $ac_write_fail = 0 ||
21198 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21199
21200
21201 # configure is writing to config.log, and then calls config.status.
21202 # config.status does its own redirection, appending to config.log.
21203 # Unfortunately, on DOS this fails, as config.log is still kept open
21204 # by configure, so config.status won't be able to write to it; its
21205 # output is simply discarded. So we exec the FD to /dev/null,
21206 # effectively closing config.log, so it can be properly (re)opened and
21207 # appended to by config.status. When coming back to configure, we
21208 # need to make the FD available again.
21209 if test "$no_create" != yes; then
21210 ac_cs_success=:
21211 ac_config_status_args=
21212 test "$silent" = yes &&
21213 ac_config_status_args="$ac_config_status_args --quiet"
21214 exec 5>/dev/null
21215 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21216 exec 5>>config.log
21217 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21218 # would make configure fail if this is the last instruction.
21219 $ac_cs_success || as_fn_exit 1
21220 fi
21221 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21223 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21224 fi
21225
21226